1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libevent 2.1.5-beta. 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='libevent' 589PACKAGE_TARNAME='libevent' 590PACKAGE_VERSION='2.1.5-beta' 591PACKAGE_STRING='libevent 2.1.5-beta' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="event.c" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635INSTALL_LIBEVENT_FALSE 636INSTALL_LIBEVENT_TRUE 637LIBEVENT_GC_SECTIONS 638PTHREADS_FALSE 639PTHREADS_TRUE 640PTHREAD_CFLAGS 641PTHREAD_LIBS 642PTHREAD_CC 643acx_pthread_config 644SIGNAL_SUPPORT_FALSE 645SIGNAL_SUPPORT_TRUE 646EVPORT_BACKEND_FALSE 647EVPORT_BACKEND_TRUE 648EPOLL_BACKEND_FALSE 649EPOLL_BACKEND_TRUE 650LIBOBJS 651KQUEUE_BACKEND_FALSE 652KQUEUE_BACKEND_TRUE 653DEVPOLL_BACKEND_FALSE 654DEVPOLL_BACKEND_TRUE 655POLL_BACKEND_FALSE 656POLL_BACKEND_TRUE 657SELECT_BACKEND_FALSE 658SELECT_BACKEND_TRUE 659STRLCPY_IMPL_FALSE 660STRLCPY_IMPL_TRUE 661BUILD_WITH_NO_UNDEFINED_FALSE 662BUILD_WITH_NO_UNDEFINED_TRUE 663BUILD_CYGWIN_FALSE 664BUILD_CYGWIN_TRUE 665BUILD_WIN32_FALSE 666BUILD_WIN32_TRUE 667OPENSSL_FALSE 668OPENSSL_TRUE 669OPENSSL_LIBS 670OPENSSL_INCS 671PKG_CONFIG 672OPENSSL_LIBADD 673EV_LIB_GDI 674EV_LIB_WS32 675ZLIB_REGRESS_FALSE 676ZLIB_REGRESS_TRUE 677ZLIB_LIBS 678BUILD_REGRESS_FALSE 679BUILD_REGRESS_TRUE 680BUILD_SAMPLES_FALSE 681BUILD_SAMPLES_TRUE 682LIBTOOL_DEPS 683OTOOL64 684OTOOL 685LIPO 686NMEDIT 687DSYMUTIL 688MANIFEST_TOOL 689RANLIB 690ac_ct_AR 691AR 692DLLTOOL 693OBJDUMP 694NM 695ac_ct_DUMPBIN 696DUMPBIN 697LD 698FGREP 699LIBTOOL 700SED 701LN_S 702EGREP 703GREP 704CPP 705am__fastdepCC_FALSE 706am__fastdepCC_TRUE 707CCDEPMODE 708am__nodep 709AMDEPBACKSLASH 710AMDEP_FALSE 711AMDEP_TRUE 712am__quote 713am__include 714DEPDIR 715OBJEXT 716EXEEXT 717ac_ct_CC 718CPPFLAGS 719LDFLAGS 720CFLAGS 721CC 722host_os 723host_vendor 724host_cpu 725host 726build_os 727build_vendor 728build_cpu 729build 730AM_BACKSLASH 731AM_DEFAULT_VERBOSITY 732AM_DEFAULT_V 733AM_V 734am__untar 735am__tar 736AMTAR 737am__leading_dot 738SET_MAKE 739AWK 740mkdir_p 741MKDIR_P 742INSTALL_STRIP_PROGRAM 743STRIP 744install_sh 745MAKEINFO 746AUTOHEADER 747AUTOMAKE 748AUTOCONF 749ACLOCAL 750VERSION 751PACKAGE 752CYGPATH_W 753am__isrc 754INSTALL_DATA 755INSTALL_SCRIPT 756INSTALL_PROGRAM 757target_alias 758host_alias 759build_alias 760LIBS 761ECHO_T 762ECHO_N 763ECHO_C 764DEFS 765mandir 766localedir 767libdir 768psdir 769pdfdir 770dvidir 771htmldir 772infodir 773docdir 774oldincludedir 775includedir 776localstatedir 777sharedstatedir 778sysconfdir 779datadir 780datarootdir 781libexecdir 782sbindir 783bindir 784program_transform_name 785prefix 786exec_prefix 787PACKAGE_URL 788PACKAGE_BUGREPORT 789PACKAGE_STRING 790PACKAGE_VERSION 791PACKAGE_TARNAME 792PACKAGE_NAME 793PATH_SEPARATOR 794SHELL' 795ac_subst_files='' 796ac_user_opts=' 797enable_option_checking 798enable_silent_rules 799enable_dependency_tracking 800enable_gcc_warnings 801enable_gcc_hardening 802enable_thread_support 803enable_malloc_replacement 804enable_openssl 805enable_debug_mode 806enable_libevent_install 807enable_libevent_regress 808enable_samples 809enable_function_sections 810enable_verbose_debug 811enable_shared 812enable_static 813with_pic 814enable_fast_install 815with_gnu_ld 816with_sysroot 817enable_libtool_lock 818enable_largefile 819' 820 ac_precious_vars='build_alias 821host_alias 822target_alias 823CC 824CFLAGS 825LDFLAGS 826LIBS 827CPPFLAGS 828CPP' 829 830 831# Initialize some variables set by options. 832ac_init_help= 833ac_init_version=false 834ac_unrecognized_opts= 835ac_unrecognized_sep= 836# The variables have the same names as the options, with 837# dashes changed to underlines. 838cache_file=/dev/null 839exec_prefix=NONE 840no_create= 841no_recursion= 842prefix=NONE 843program_prefix=NONE 844program_suffix=NONE 845program_transform_name=s,x,x, 846silent= 847site= 848srcdir= 849verbose= 850x_includes=NONE 851x_libraries=NONE 852 853# Installation directory options. 854# These are left unexpanded so users can "make install exec_prefix=/foo" 855# and all the variables that are supposed to be based on exec_prefix 856# by default will actually change. 857# Use braces instead of parens because sh, perl, etc. also accept them. 858# (The list follows the same order as the GNU Coding Standards.) 859bindir='${exec_prefix}/bin' 860sbindir='${exec_prefix}/sbin' 861libexecdir='${exec_prefix}/libexec' 862datarootdir='${prefix}/share' 863datadir='${datarootdir}' 864sysconfdir='${prefix}/etc' 865sharedstatedir='${prefix}/com' 866localstatedir='${prefix}/var' 867includedir='${prefix}/include' 868oldincludedir='/usr/include' 869docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 870infodir='${datarootdir}/info' 871htmldir='${docdir}' 872dvidir='${docdir}' 873pdfdir='${docdir}' 874psdir='${docdir}' 875libdir='${exec_prefix}/lib' 876localedir='${datarootdir}/locale' 877mandir='${datarootdir}/man' 878 879ac_prev= 880ac_dashdash= 881for ac_option 882do 883 # If the previous option needs an argument, assign it. 884 if test -n "$ac_prev"; then 885 eval $ac_prev=\$ac_option 886 ac_prev= 887 continue 888 fi 889 890 case $ac_option in 891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 892 *=) ac_optarg= ;; 893 *) ac_optarg=yes ;; 894 esac 895 896 # Accept the important Cygnus configure options, so we can diagnose typos. 897 898 case $ac_dashdash$ac_option in 899 --) 900 ac_dashdash=yes ;; 901 902 -bindir | --bindir | --bindi | --bind | --bin | --bi) 903 ac_prev=bindir ;; 904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 905 bindir=$ac_optarg ;; 906 907 -build | --build | --buil | --bui | --bu) 908 ac_prev=build_alias ;; 909 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 910 build_alias=$ac_optarg ;; 911 912 -cache-file | --cache-file | --cache-fil | --cache-fi \ 913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 914 ac_prev=cache_file ;; 915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 917 cache_file=$ac_optarg ;; 918 919 --config-cache | -C) 920 cache_file=config.cache ;; 921 922 -datadir | --datadir | --datadi | --datad) 923 ac_prev=datadir ;; 924 -datadir=* | --datadir=* | --datadi=* | --datad=*) 925 datadir=$ac_optarg ;; 926 927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 928 | --dataroo | --dataro | --datar) 929 ac_prev=datarootdir ;; 930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 932 datarootdir=$ac_optarg ;; 933 934 -disable-* | --disable-*) 935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 936 # Reject names that are not valid shell variable names. 937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 938 as_fn_error $? "invalid feature name: $ac_useropt" 939 ac_useropt_orig=$ac_useropt 940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 941 case $ac_user_opts in 942 *" 943"enable_$ac_useropt" 944"*) ;; 945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 946 ac_unrecognized_sep=', ';; 947 esac 948 eval enable_$ac_useropt=no ;; 949 950 -docdir | --docdir | --docdi | --doc | --do) 951 ac_prev=docdir ;; 952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 953 docdir=$ac_optarg ;; 954 955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 956 ac_prev=dvidir ;; 957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 958 dvidir=$ac_optarg ;; 959 960 -enable-* | --enable-*) 961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 962 # Reject names that are not valid shell variable names. 963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 964 as_fn_error $? "invalid feature name: $ac_useropt" 965 ac_useropt_orig=$ac_useropt 966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 967 case $ac_user_opts in 968 *" 969"enable_$ac_useropt" 970"*) ;; 971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 972 ac_unrecognized_sep=', ';; 973 esac 974 eval enable_$ac_useropt=\$ac_optarg ;; 975 976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 978 | --exec | --exe | --ex) 979 ac_prev=exec_prefix ;; 980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 982 | --exec=* | --exe=* | --ex=*) 983 exec_prefix=$ac_optarg ;; 984 985 -gas | --gas | --ga | --g) 986 # Obsolete; use --with-gas. 987 with_gas=yes ;; 988 989 -help | --help | --hel | --he | -h) 990 ac_init_help=long ;; 991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 992 ac_init_help=recursive ;; 993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 994 ac_init_help=short ;; 995 996 -host | --host | --hos | --ho) 997 ac_prev=host_alias ;; 998 -host=* | --host=* | --hos=* | --ho=*) 999 host_alias=$ac_optarg ;; 1000 1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1002 ac_prev=htmldir ;; 1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1004 | --ht=*) 1005 htmldir=$ac_optarg ;; 1006 1007 -includedir | --includedir | --includedi | --included | --include \ 1008 | --includ | --inclu | --incl | --inc) 1009 ac_prev=includedir ;; 1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1011 | --includ=* | --inclu=* | --incl=* | --inc=*) 1012 includedir=$ac_optarg ;; 1013 1014 -infodir | --infodir | --infodi | --infod | --info | --inf) 1015 ac_prev=infodir ;; 1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1017 infodir=$ac_optarg ;; 1018 1019 -libdir | --libdir | --libdi | --libd) 1020 ac_prev=libdir ;; 1021 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1022 libdir=$ac_optarg ;; 1023 1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1025 | --libexe | --libex | --libe) 1026 ac_prev=libexecdir ;; 1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1028 | --libexe=* | --libex=* | --libe=*) 1029 libexecdir=$ac_optarg ;; 1030 1031 -localedir | --localedir | --localedi | --localed | --locale) 1032 ac_prev=localedir ;; 1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1034 localedir=$ac_optarg ;; 1035 1036 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1037 | --localstate | --localstat | --localsta | --localst | --locals) 1038 ac_prev=localstatedir ;; 1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1041 localstatedir=$ac_optarg ;; 1042 1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1044 ac_prev=mandir ;; 1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1046 mandir=$ac_optarg ;; 1047 1048 -nfp | --nfp | --nf) 1049 # Obsolete; use --without-fp. 1050 with_fp=no ;; 1051 1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1053 | --no-cr | --no-c | -n) 1054 no_create=yes ;; 1055 1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1058 no_recursion=yes ;; 1059 1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1062 | --oldin | --oldi | --old | --ol | --o) 1063 ac_prev=oldincludedir ;; 1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1067 oldincludedir=$ac_optarg ;; 1068 1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1070 ac_prev=prefix ;; 1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1072 prefix=$ac_optarg ;; 1073 1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1075 | --program-pre | --program-pr | --program-p) 1076 ac_prev=program_prefix ;; 1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1079 program_prefix=$ac_optarg ;; 1080 1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1082 | --program-suf | --program-su | --program-s) 1083 ac_prev=program_suffix ;; 1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1086 program_suffix=$ac_optarg ;; 1087 1088 -program-transform-name | --program-transform-name \ 1089 | --program-transform-nam | --program-transform-na \ 1090 | --program-transform-n | --program-transform- \ 1091 | --program-transform | --program-transfor \ 1092 | --program-transfo | --program-transf \ 1093 | --program-trans | --program-tran \ 1094 | --progr-tra | --program-tr | --program-t) 1095 ac_prev=program_transform_name ;; 1096 -program-transform-name=* | --program-transform-name=* \ 1097 | --program-transform-nam=* | --program-transform-na=* \ 1098 | --program-transform-n=* | --program-transform-=* \ 1099 | --program-transform=* | --program-transfor=* \ 1100 | --program-transfo=* | --program-transf=* \ 1101 | --program-trans=* | --program-tran=* \ 1102 | --progr-tra=* | --program-tr=* | --program-t=*) 1103 program_transform_name=$ac_optarg ;; 1104 1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1106 ac_prev=pdfdir ;; 1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1108 pdfdir=$ac_optarg ;; 1109 1110 -psdir | --psdir | --psdi | --psd | --ps) 1111 ac_prev=psdir ;; 1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1113 psdir=$ac_optarg ;; 1114 1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1116 | -silent | --silent | --silen | --sile | --sil) 1117 silent=yes ;; 1118 1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1120 ac_prev=sbindir ;; 1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1122 | --sbi=* | --sb=*) 1123 sbindir=$ac_optarg ;; 1124 1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1127 | --sharedst | --shareds | --shared | --share | --shar \ 1128 | --sha | --sh) 1129 ac_prev=sharedstatedir ;; 1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1133 | --sha=* | --sh=*) 1134 sharedstatedir=$ac_optarg ;; 1135 1136 -site | --site | --sit) 1137 ac_prev=site ;; 1138 -site=* | --site=* | --sit=*) 1139 site=$ac_optarg ;; 1140 1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1142 ac_prev=srcdir ;; 1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1144 srcdir=$ac_optarg ;; 1145 1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1147 | --syscon | --sysco | --sysc | --sys | --sy) 1148 ac_prev=sysconfdir ;; 1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1151 sysconfdir=$ac_optarg ;; 1152 1153 -target | --target | --targe | --targ | --tar | --ta | --t) 1154 ac_prev=target_alias ;; 1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1156 target_alias=$ac_optarg ;; 1157 1158 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1159 verbose=yes ;; 1160 1161 -version | --version | --versio | --versi | --vers | -V) 1162 ac_init_version=: ;; 1163 1164 -with-* | --with-*) 1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1166 # Reject names that are not valid shell variable names. 1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1168 as_fn_error $? "invalid package name: $ac_useropt" 1169 ac_useropt_orig=$ac_useropt 1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1171 case $ac_user_opts in 1172 *" 1173"with_$ac_useropt" 1174"*) ;; 1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1176 ac_unrecognized_sep=', ';; 1177 esac 1178 eval with_$ac_useropt=\$ac_optarg ;; 1179 1180 -without-* | --without-*) 1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1182 # Reject names that are not valid shell variable names. 1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1184 as_fn_error $? "invalid package name: $ac_useropt" 1185 ac_useropt_orig=$ac_useropt 1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1187 case $ac_user_opts in 1188 *" 1189"with_$ac_useropt" 1190"*) ;; 1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1192 ac_unrecognized_sep=', ';; 1193 esac 1194 eval with_$ac_useropt=no ;; 1195 1196 --x) 1197 # Obsolete; use --with-x. 1198 with_x=yes ;; 1199 1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1201 | --x-incl | --x-inc | --x-in | --x-i) 1202 ac_prev=x_includes ;; 1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1205 x_includes=$ac_optarg ;; 1206 1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1209 ac_prev=x_libraries ;; 1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1212 x_libraries=$ac_optarg ;; 1213 1214 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1215Try \`$0 --help' for more information" 1216 ;; 1217 1218 *=*) 1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1220 # Reject names that are not valid shell variable names. 1221 case $ac_envvar in #( 1222 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1224 esac 1225 eval $ac_envvar=\$ac_optarg 1226 export $ac_envvar ;; 1227 1228 *) 1229 # FIXME: should be removed in autoconf 3.0. 1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1234 ;; 1235 1236 esac 1237done 1238 1239if test -n "$ac_prev"; then 1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1241 as_fn_error $? "missing argument to $ac_option" 1242fi 1243 1244if test -n "$ac_unrecognized_opts"; then 1245 case $enable_option_checking in 1246 no) ;; 1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1249 esac 1250fi 1251 1252# Check all directory arguments for consistency. 1253for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1254 datadir sysconfdir sharedstatedir localstatedir includedir \ 1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1256 libdir localedir mandir 1257do 1258 eval ac_val=\$$ac_var 1259 # Remove trailing slashes. 1260 case $ac_val in 1261 */ ) 1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1263 eval $ac_var=\$ac_val;; 1264 esac 1265 # Be sure to have absolute directory names. 1266 case $ac_val in 1267 [\\/$]* | ?:[\\/]* ) continue;; 1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1269 esac 1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1271done 1272 1273# There might be people who depend on the old broken behavior: `$host' 1274# used to hold the argument of --host etc. 1275# FIXME: To remove some day. 1276build=$build_alias 1277host=$host_alias 1278target=$target_alias 1279 1280# FIXME: To remove some day. 1281if test "x$host_alias" != x; then 1282 if test "x$build_alias" = x; then 1283 cross_compiling=maybe 1284 elif test "x$build_alias" != "x$host_alias"; then 1285 cross_compiling=yes 1286 fi 1287fi 1288 1289ac_tool_prefix= 1290test -n "$host_alias" && ac_tool_prefix=$host_alias- 1291 1292test "$silent" = yes && exec 6>/dev/null 1293 1294 1295ac_pwd=`pwd` && test -n "$ac_pwd" && 1296ac_ls_di=`ls -di .` && 1297ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1298 as_fn_error $? "working directory cannot be determined" 1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1300 as_fn_error $? "pwd does not report name of working directory" 1301 1302 1303# Find the source files, if location was not specified. 1304if test -z "$srcdir"; then 1305 ac_srcdir_defaulted=yes 1306 # Try the directory containing this script, then the parent directory. 1307 ac_confdir=`$as_dirname -- "$as_myself" || 1308$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1309 X"$as_myself" : 'X\(//\)[^/]' \| \ 1310 X"$as_myself" : 'X\(//\)$' \| \ 1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1312$as_echo X"$as_myself" | 1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1314 s//\1/ 1315 q 1316 } 1317 /^X\(\/\/\)[^/].*/{ 1318 s//\1/ 1319 q 1320 } 1321 /^X\(\/\/\)$/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\).*/{ 1326 s//\1/ 1327 q 1328 } 1329 s/.*/./; q'` 1330 srcdir=$ac_confdir 1331 if test ! -r "$srcdir/$ac_unique_file"; then 1332 srcdir=.. 1333 fi 1334else 1335 ac_srcdir_defaulted=no 1336fi 1337if test ! -r "$srcdir/$ac_unique_file"; then 1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1340fi 1341ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1342ac_abs_confdir=`( 1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1344 pwd)` 1345# When building in place, set srcdir=. 1346if test "$ac_abs_confdir" = "$ac_pwd"; then 1347 srcdir=. 1348fi 1349# Remove unnecessary trailing slashes from srcdir. 1350# Double slashes in file names in object file debugging info 1351# mess up M-x gdb in Emacs. 1352case $srcdir in 1353*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1354esac 1355for ac_var in $ac_precious_vars; do 1356 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1357 eval ac_env_${ac_var}_value=\$${ac_var} 1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1359 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1360done 1361 1362# 1363# Report the --help message. 1364# 1365if test "$ac_init_help" = "long"; then 1366 # Omit some internal or obsolete options to make the list less imposing. 1367 # This message is too long to be a string in the A/UX 3.1 sh. 1368 cat <<_ACEOF 1369\`configure' configures libevent 2.1.5-beta to adapt to many kinds of systems. 1370 1371Usage: $0 [OPTION]... [VAR=VALUE]... 1372 1373To assign environment variables (e.g., CC, CFLAGS...), specify them as 1374VAR=VALUE. See below for descriptions of some of the useful variables. 1375 1376Defaults for the options are specified in brackets. 1377 1378Configuration: 1379 -h, --help display this help and exit 1380 --help=short display options specific to this package 1381 --help=recursive display the short help of all the included packages 1382 -V, --version display version information and exit 1383 -q, --quiet, --silent do not print \`checking ...' messages 1384 --cache-file=FILE cache test results in FILE [disabled] 1385 -C, --config-cache alias for \`--cache-file=config.cache' 1386 -n, --no-create do not create output files 1387 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1388 1389Installation directories: 1390 --prefix=PREFIX install architecture-independent files in PREFIX 1391 [$ac_default_prefix] 1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1393 [PREFIX] 1394 1395By default, \`make install' will install all the files in 1396\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1397an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1398for instance \`--prefix=\$HOME'. 1399 1400For better control, use the options below. 1401 1402Fine tuning of the installation directories: 1403 --bindir=DIR user executables [EPREFIX/bin] 1404 --sbindir=DIR system admin executables [EPREFIX/sbin] 1405 --libexecdir=DIR program executables [EPREFIX/libexec] 1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1409 --libdir=DIR object code libraries [EPREFIX/lib] 1410 --includedir=DIR C header files [PREFIX/include] 1411 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1414 --infodir=DIR info documentation [DATAROOTDIR/info] 1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1416 --mandir=DIR man documentation [DATAROOTDIR/man] 1417 --docdir=DIR documentation root [DATAROOTDIR/doc/libevent] 1418 --htmldir=DIR html documentation [DOCDIR] 1419 --dvidir=DIR dvi documentation [DOCDIR] 1420 --pdfdir=DIR pdf documentation [DOCDIR] 1421 --psdir=DIR ps documentation [DOCDIR] 1422_ACEOF 1423 1424 cat <<\_ACEOF 1425 1426Program names: 1427 --program-prefix=PREFIX prepend PREFIX to installed program names 1428 --program-suffix=SUFFIX append SUFFIX to installed program names 1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1430 1431System types: 1432 --build=BUILD configure for building on BUILD [guessed] 1433 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1434_ACEOF 1435fi 1436 1437if test -n "$ac_init_help"; then 1438 case $ac_init_help in 1439 short | recursive ) echo "Configuration of libevent 2.1.5-beta:";; 1440 esac 1441 cat <<\_ACEOF 1442 1443Optional Features: 1444 --disable-option-checking ignore unrecognized --enable/--with options 1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1447 --enable-silent-rules less verbose build output (undo: "make V=1") 1448 --disable-silent-rules verbose build output (undo: "make V=0") 1449 --enable-dependency-tracking 1450 do not reject slow dependency extractors 1451 --disable-dependency-tracking 1452 speeds up one-time build 1453 --disable-gcc-warnings disable verbose warnings with GCC 1454 --enable-gcc-hardening enable compiler security checks 1455 --disable-thread-support 1456 disable support for threading 1457 --disable-malloc-replacement 1458 disable support for replacing the memory mgt 1459 functions 1460 --disable-openssl disable support for openssl encryption 1461 --disable-debug-mode disable support for running in debug mode 1462 --disable-libevent-install, disable installation of libevent 1463 1464 --disable-libevent-regress, skip regress in make check 1465 1466 --disable-samples, skip building of sample programs 1467 1468 --enable-function-sections, make static library allow smaller binaries with --gc-sections 1469 1470 --enable-verbose-debug, verbose debug logging 1471 1472 --enable-shared[=PKGS] build shared libraries [default=yes] 1473 --enable-static[=PKGS] build static libraries [default=yes] 1474 --enable-fast-install[=PKGS] 1475 optimize for fast installation [default=yes] 1476 --disable-libtool-lock avoid locking (might break parallel builds) 1477 --disable-largefile omit support for large files 1478 1479Optional Packages: 1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1482 --with-pic try to use only PIC/non-PIC objects [default=use 1483 both] 1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1485 --with-sysroot=DIR Search for dependent libraries within DIR 1486 (or the compiler's sysroot if not specified). 1487 1488Some influential environment variables: 1489 CC C compiler command 1490 CFLAGS C compiler flags 1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1492 nonstandard directory <lib dir> 1493 LIBS libraries to pass to the linker, e.g. -l<library> 1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1495 you have headers in a nonstandard directory <include dir> 1496 CPP C preprocessor 1497 1498Use these variables to override the choices made by `configure' or to help 1499it to find libraries and programs with nonstandard names/locations. 1500 1501Report bugs to the package provider. 1502_ACEOF 1503ac_status=$? 1504fi 1505 1506if test "$ac_init_help" = "recursive"; then 1507 # If there are subdirs, report their specific --help. 1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1509 test -d "$ac_dir" || 1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1511 continue 1512 ac_builddir=. 1513 1514case "$ac_dir" in 1515.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1516*) 1517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1518 # A ".." for each directory in $ac_dir_suffix. 1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1520 case $ac_top_builddir_sub in 1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1523 esac ;; 1524esac 1525ac_abs_top_builddir=$ac_pwd 1526ac_abs_builddir=$ac_pwd$ac_dir_suffix 1527# for backward compatibility: 1528ac_top_builddir=$ac_top_build_prefix 1529 1530case $srcdir in 1531 .) # We are building in place. 1532 ac_srcdir=. 1533 ac_top_srcdir=$ac_top_builddir_sub 1534 ac_abs_top_srcdir=$ac_pwd ;; 1535 [\\/]* | ?:[\\/]* ) # Absolute name. 1536 ac_srcdir=$srcdir$ac_dir_suffix; 1537 ac_top_srcdir=$srcdir 1538 ac_abs_top_srcdir=$srcdir ;; 1539 *) # Relative name. 1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1541 ac_top_srcdir=$ac_top_build_prefix$srcdir 1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1543esac 1544ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1545 1546 cd "$ac_dir" || { ac_status=$?; continue; } 1547 # Check for guested configure. 1548 if test -f "$ac_srcdir/configure.gnu"; then 1549 echo && 1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1551 elif test -f "$ac_srcdir/configure"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure" --help=recursive 1554 else 1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1556 fi || ac_status=$? 1557 cd "$ac_pwd" || { ac_status=$?; break; } 1558 done 1559fi 1560 1561test -n "$ac_init_help" && exit $ac_status 1562if $ac_init_version; then 1563 cat <<\_ACEOF 1564libevent configure 2.1.5-beta 1565generated by GNU Autoconf 2.69 1566 1567Copyright (C) 2012 Free Software Foundation, Inc. 1568This configure script is free software; the Free Software Foundation 1569gives unlimited permission to copy, distribute and modify it. 1570_ACEOF 1571 exit 1572fi 1573 1574## ------------------------ ## 1575## Autoconf initialization. ## 1576## ------------------------ ## 1577 1578# ac_fn_c_try_compile LINENO 1579# -------------------------- 1580# Try to compile conftest.$ac_ext, and return whether this succeeded. 1581ac_fn_c_try_compile () 1582{ 1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1584 rm -f conftest.$ac_objext 1585 if { { ac_try="$ac_compile" 1586case "(($ac_try" in 1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588 *) ac_try_echo=$ac_try;; 1589esac 1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591$as_echo "$ac_try_echo"; } >&5 1592 (eval "$ac_compile") 2>conftest.err 1593 ac_status=$? 1594 if test -s conftest.err; then 1595 grep -v '^ *+' conftest.err >conftest.er1 1596 cat conftest.er1 >&5 1597 mv -f conftest.er1 conftest.err 1598 fi 1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1600 test $ac_status = 0; } && { 1601 test -z "$ac_c_werror_flag" || 1602 test ! -s conftest.err 1603 } && test -s conftest.$ac_objext; then : 1604 ac_retval=0 1605else 1606 $as_echo "$as_me: failed program was:" >&5 1607sed 's/^/| /' conftest.$ac_ext >&5 1608 1609 ac_retval=1 1610fi 1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1612 as_fn_set_status $ac_retval 1613 1614} # ac_fn_c_try_compile 1615 1616# ac_fn_c_try_cpp LINENO 1617# ---------------------- 1618# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1619ac_fn_c_try_cpp () 1620{ 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 if { { ac_try="$ac_cpp conftest.$ac_ext" 1623case "(($ac_try" in 1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1625 *) ac_try_echo=$ac_try;; 1626esac 1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1628$as_echo "$ac_try_echo"; } >&5 1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1630 ac_status=$? 1631 if test -s conftest.err; then 1632 grep -v '^ *+' conftest.err >conftest.er1 1633 cat conftest.er1 >&5 1634 mv -f conftest.er1 conftest.err 1635 fi 1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1637 test $ac_status = 0; } > conftest.i && { 1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1639 test ! -s conftest.err 1640 }; then : 1641 ac_retval=0 1642else 1643 $as_echo "$as_me: failed program was:" >&5 1644sed 's/^/| /' conftest.$ac_ext >&5 1645 1646 ac_retval=1 1647fi 1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1649 as_fn_set_status $ac_retval 1650 1651} # ac_fn_c_try_cpp 1652 1653# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1654# ------------------------------------------------------- 1655# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1656# the include files in INCLUDES and setting the cache variable VAR 1657# accordingly. 1658ac_fn_c_check_header_mongrel () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 if eval \${$3+:} false; then : 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1663$as_echo_n "checking for $2... " >&6; } 1664if eval \${$3+:} false; then : 1665 $as_echo_n "(cached) " >&6 1666fi 1667eval ac_res=\$$3 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1669$as_echo "$ac_res" >&6; } 1670else 1671 # Is the header compilable? 1672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1673$as_echo_n "checking $2 usability... " >&6; } 1674cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1675/* end confdefs.h. */ 1676$4 1677#include <$2> 1678_ACEOF 1679if ac_fn_c_try_compile "$LINENO"; then : 1680 ac_header_compiler=yes 1681else 1682 ac_header_compiler=no 1683fi 1684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1686$as_echo "$ac_header_compiler" >&6; } 1687 1688# Is the header present? 1689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1690$as_echo_n "checking $2 presence... " >&6; } 1691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1692/* end confdefs.h. */ 1693#include <$2> 1694_ACEOF 1695if ac_fn_c_try_cpp "$LINENO"; then : 1696 ac_header_preproc=yes 1697else 1698 ac_header_preproc=no 1699fi 1700rm -f conftest.err conftest.i conftest.$ac_ext 1701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1702$as_echo "$ac_header_preproc" >&6; } 1703 1704# So? What about this header? 1705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1706 yes:no: ) 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1708$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1710$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1711 ;; 1712 no:yes:* ) 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1714$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1716$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1718$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1720$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1722$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1723 ;; 1724esac 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1726$as_echo_n "checking for $2... " >&6; } 1727if eval \${$3+:} false; then : 1728 $as_echo_n "(cached) " >&6 1729else 1730 eval "$3=\$ac_header_compiler" 1731fi 1732eval ac_res=\$$3 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1734$as_echo "$ac_res" >&6; } 1735fi 1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1737 1738} # ac_fn_c_check_header_mongrel 1739 1740# ac_fn_c_try_run LINENO 1741# ---------------------- 1742# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1743# that executables *can* be run. 1744ac_fn_c_try_run () 1745{ 1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1747 if { { ac_try="$ac_link" 1748case "(($ac_try" in 1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1750 *) ac_try_echo=$ac_try;; 1751esac 1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1753$as_echo "$ac_try_echo"; } >&5 1754 (eval "$ac_link") 2>&5 1755 ac_status=$? 1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1757 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1758 { { case "(($ac_try" in 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1760 *) ac_try_echo=$ac_try;; 1761esac 1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1763$as_echo "$ac_try_echo"; } >&5 1764 (eval "$ac_try") 2>&5 1765 ac_status=$? 1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 test $ac_status = 0; }; }; then : 1768 ac_retval=0 1769else 1770 $as_echo "$as_me: program exited with status $ac_status" >&5 1771 $as_echo "$as_me: failed program was:" >&5 1772sed 's/^/| /' conftest.$ac_ext >&5 1773 1774 ac_retval=$ac_status 1775fi 1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1778 as_fn_set_status $ac_retval 1779 1780} # ac_fn_c_try_run 1781 1782# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1783# ------------------------------------------------------- 1784# Tests whether HEADER exists and can be compiled using the include files in 1785# INCLUDES, setting the cache variable VAR accordingly. 1786ac_fn_c_check_header_compile () 1787{ 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1790$as_echo_n "checking for $2... " >&6; } 1791if eval \${$3+:} false; then : 1792 $as_echo_n "(cached) " >&6 1793else 1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1795/* end confdefs.h. */ 1796$4 1797#include <$2> 1798_ACEOF 1799if ac_fn_c_try_compile "$LINENO"; then : 1800 eval "$3=yes" 1801else 1802 eval "$3=no" 1803fi 1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1805fi 1806eval ac_res=\$$3 1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1808$as_echo "$ac_res" >&6; } 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 1811} # ac_fn_c_check_header_compile 1812 1813# ac_fn_c_try_link LINENO 1814# ----------------------- 1815# Try to link conftest.$ac_ext, and return whether this succeeded. 1816ac_fn_c_try_link () 1817{ 1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1819 rm -f conftest.$ac_objext conftest$ac_exeext 1820 if { { ac_try="$ac_link" 1821case "(($ac_try" in 1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1823 *) ac_try_echo=$ac_try;; 1824esac 1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1826$as_echo "$ac_try_echo"; } >&5 1827 (eval "$ac_link") 2>conftest.err 1828 ac_status=$? 1829 if test -s conftest.err; then 1830 grep -v '^ *+' conftest.err >conftest.er1 1831 cat conftest.er1 >&5 1832 mv -f conftest.er1 conftest.err 1833 fi 1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1835 test $ac_status = 0; } && { 1836 test -z "$ac_c_werror_flag" || 1837 test ! -s conftest.err 1838 } && test -s conftest$ac_exeext && { 1839 test "$cross_compiling" = yes || 1840 test -x conftest$ac_exeext 1841 }; then : 1842 ac_retval=0 1843else 1844 $as_echo "$as_me: failed program was:" >&5 1845sed 's/^/| /' conftest.$ac_ext >&5 1846 1847 ac_retval=1 1848fi 1849 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1850 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1851 # interfere with the next link command; also delete a directory that is 1852 # left behind by Apple's compiler. We do this before executing the actions. 1853 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1855 as_fn_set_status $ac_retval 1856 1857} # ac_fn_c_try_link 1858 1859# ac_fn_c_check_func LINENO FUNC VAR 1860# ---------------------------------- 1861# Tests whether FUNC exists, setting the cache variable VAR accordingly 1862ac_fn_c_check_func () 1863{ 1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1866$as_echo_n "checking for $2... " >&6; } 1867if eval \${$3+:} false; then : 1868 $as_echo_n "(cached) " >&6 1869else 1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1871/* end confdefs.h. */ 1872/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1873 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1874#define $2 innocuous_$2 1875 1876/* System header to define __stub macros and hopefully few prototypes, 1877 which can conflict with char $2 (); below. 1878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1879 <limits.h> exists even on freestanding compilers. */ 1880 1881#ifdef __STDC__ 1882# include <limits.h> 1883#else 1884# include <assert.h> 1885#endif 1886 1887#undef $2 1888 1889/* Override any GCC internal prototype to avoid an error. 1890 Use char because int might match the return type of a GCC 1891 builtin and then its argument prototype would still apply. */ 1892#ifdef __cplusplus 1893extern "C" 1894#endif 1895char $2 (); 1896/* The GNU C library defines this for functions which it implements 1897 to always fail with ENOSYS. Some functions are actually named 1898 something starting with __ and the normal name is an alias. */ 1899#if defined __stub_$2 || defined __stub___$2 1900choke me 1901#endif 1902 1903int 1904main () 1905{ 1906return $2 (); 1907 ; 1908 return 0; 1909} 1910_ACEOF 1911if ac_fn_c_try_link "$LINENO"; then : 1912 eval "$3=yes" 1913else 1914 eval "$3=no" 1915fi 1916rm -f core conftest.err conftest.$ac_objext \ 1917 conftest$ac_exeext conftest.$ac_ext 1918fi 1919eval ac_res=\$$3 1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1921$as_echo "$ac_res" >&6; } 1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1923 1924} # ac_fn_c_check_func 1925 1926# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1927# --------------------------------------------- 1928# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1929# accordingly. 1930ac_fn_c_check_decl () 1931{ 1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1933 as_decl_name=`echo $2|sed 's/ *(.*//'` 1934 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1936$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1937if eval \${$3+:} false; then : 1938 $as_echo_n "(cached) " >&6 1939else 1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941/* end confdefs.h. */ 1942$4 1943int 1944main () 1945{ 1946#ifndef $as_decl_name 1947#ifdef __cplusplus 1948 (void) $as_decl_use; 1949#else 1950 (void) $as_decl_name; 1951#endif 1952#endif 1953 1954 ; 1955 return 0; 1956} 1957_ACEOF 1958if ac_fn_c_try_compile "$LINENO"; then : 1959 eval "$3=yes" 1960else 1961 eval "$3=no" 1962fi 1963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1964fi 1965eval ac_res=\$$3 1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1967$as_echo "$ac_res" >&6; } 1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1969 1970} # ac_fn_c_check_decl 1971 1972# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1973# ------------------------------------------- 1974# Tests whether TYPE exists after having included INCLUDES, setting cache 1975# variable VAR accordingly. 1976ac_fn_c_check_type () 1977{ 1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1980$as_echo_n "checking for $2... " >&6; } 1981if eval \${$3+:} false; then : 1982 $as_echo_n "(cached) " >&6 1983else 1984 eval "$3=no" 1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1986/* end confdefs.h. */ 1987$4 1988int 1989main () 1990{ 1991if (sizeof ($2)) 1992 return 0; 1993 ; 1994 return 0; 1995} 1996_ACEOF 1997if ac_fn_c_try_compile "$LINENO"; then : 1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1999/* end confdefs.h. */ 2000$4 2001int 2002main () 2003{ 2004if (sizeof (($2))) 2005 return 0; 2006 ; 2007 return 0; 2008} 2009_ACEOF 2010if ac_fn_c_try_compile "$LINENO"; then : 2011 2012else 2013 eval "$3=yes" 2014fi 2015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2016fi 2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2018fi 2019eval ac_res=\$$3 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2021$as_echo "$ac_res" >&6; } 2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2023 2024} # ac_fn_c_check_type 2025 2026# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2027# -------------------------------------------- 2028# Tries to find the compile-time value of EXPR in a program that includes 2029# INCLUDES, setting VAR accordingly. Returns whether the value could be 2030# computed 2031ac_fn_c_compute_int () 2032{ 2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2034 if test "$cross_compiling" = yes; then 2035 # Depending upon the size, compute the lo and hi bounds. 2036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2037/* end confdefs.h. */ 2038$4 2039int 2040main () 2041{ 2042static int test_array [1 - 2 * !(($2) >= 0)]; 2043test_array [0] = 0; 2044return test_array [0]; 2045 2046 ; 2047 return 0; 2048} 2049_ACEOF 2050if ac_fn_c_try_compile "$LINENO"; then : 2051 ac_lo=0 ac_mid=0 2052 while :; do 2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2054/* end confdefs.h. */ 2055$4 2056int 2057main () 2058{ 2059static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2060test_array [0] = 0; 2061return test_array [0]; 2062 2063 ; 2064 return 0; 2065} 2066_ACEOF 2067if ac_fn_c_try_compile "$LINENO"; then : 2068 ac_hi=$ac_mid; break 2069else 2070 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2071 if test $ac_lo -le $ac_mid; then 2072 ac_lo= ac_hi= 2073 break 2074 fi 2075 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2076fi 2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2078 done 2079else 2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2081/* end confdefs.h. */ 2082$4 2083int 2084main () 2085{ 2086static int test_array [1 - 2 * !(($2) < 0)]; 2087test_array [0] = 0; 2088return test_array [0]; 2089 2090 ; 2091 return 0; 2092} 2093_ACEOF 2094if ac_fn_c_try_compile "$LINENO"; then : 2095 ac_hi=-1 ac_mid=-1 2096 while :; do 2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2098/* end confdefs.h. */ 2099$4 2100int 2101main () 2102{ 2103static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2104test_array [0] = 0; 2105return test_array [0]; 2106 2107 ; 2108 return 0; 2109} 2110_ACEOF 2111if ac_fn_c_try_compile "$LINENO"; then : 2112 ac_lo=$ac_mid; break 2113else 2114 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2115 if test $ac_mid -le $ac_hi; then 2116 ac_lo= ac_hi= 2117 break 2118 fi 2119 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2120fi 2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2122 done 2123else 2124 ac_lo= ac_hi= 2125fi 2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2127fi 2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2129# Binary search between lo and hi bounds. 2130while test "x$ac_lo" != "x$ac_hi"; do 2131 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2133/* end confdefs.h. */ 2134$4 2135int 2136main () 2137{ 2138static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2139test_array [0] = 0; 2140return test_array [0]; 2141 2142 ; 2143 return 0; 2144} 2145_ACEOF 2146if ac_fn_c_try_compile "$LINENO"; then : 2147 ac_hi=$ac_mid 2148else 2149 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2150fi 2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2152done 2153case $ac_lo in #(( 2154?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2155'') ac_retval=1 ;; 2156esac 2157 else 2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2159/* end confdefs.h. */ 2160$4 2161static long int longval () { return $2; } 2162static unsigned long int ulongval () { return $2; } 2163#include <stdio.h> 2164#include <stdlib.h> 2165int 2166main () 2167{ 2168 2169 FILE *f = fopen ("conftest.val", "w"); 2170 if (! f) 2171 return 1; 2172 if (($2) < 0) 2173 { 2174 long int i = longval (); 2175 if (i != ($2)) 2176 return 1; 2177 fprintf (f, "%ld", i); 2178 } 2179 else 2180 { 2181 unsigned long int i = ulongval (); 2182 if (i != ($2)) 2183 return 1; 2184 fprintf (f, "%lu", i); 2185 } 2186 /* Do not output a trailing newline, as this causes \r\n confusion 2187 on some platforms. */ 2188 return ferror (f) || fclose (f) != 0; 2189 2190 ; 2191 return 0; 2192} 2193_ACEOF 2194if ac_fn_c_try_run "$LINENO"; then : 2195 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2196else 2197 ac_retval=1 2198fi 2199rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2200 conftest.$ac_objext conftest.beam conftest.$ac_ext 2201rm -f conftest.val 2202 2203 fi 2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2205 as_fn_set_status $ac_retval 2206 2207} # ac_fn_c_compute_int 2208 2209# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2210# ---------------------------------------------------- 2211# Tries to find if the field MEMBER exists in type AGGR, after including 2212# INCLUDES, setting cache variable VAR accordingly. 2213ac_fn_c_check_member () 2214{ 2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2217$as_echo_n "checking for $2.$3... " >&6; } 2218if eval \${$4+:} false; then : 2219 $as_echo_n "(cached) " >&6 2220else 2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2222/* end confdefs.h. */ 2223$5 2224int 2225main () 2226{ 2227static $2 ac_aggr; 2228if (ac_aggr.$3) 2229return 0; 2230 ; 2231 return 0; 2232} 2233_ACEOF 2234if ac_fn_c_try_compile "$LINENO"; then : 2235 eval "$4=yes" 2236else 2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2238/* end confdefs.h. */ 2239$5 2240int 2241main () 2242{ 2243static $2 ac_aggr; 2244if (sizeof ac_aggr.$3) 2245return 0; 2246 ; 2247 return 0; 2248} 2249_ACEOF 2250if ac_fn_c_try_compile "$LINENO"; then : 2251 eval "$4=yes" 2252else 2253 eval "$4=no" 2254fi 2255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2256fi 2257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2258fi 2259eval ac_res=\$$4 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2261$as_echo "$ac_res" >&6; } 2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2263 2264} # ac_fn_c_check_member 2265cat >config.log <<_ACEOF 2266This file contains any messages produced by compilers while 2267running configure, to aid debugging if configure makes a mistake. 2268 2269It was created by libevent $as_me 2.1.5-beta, which was 2270generated by GNU Autoconf 2.69. Invocation command line was 2271 2272 $ $0 $@ 2273 2274_ACEOF 2275exec 5>>config.log 2276{ 2277cat <<_ASUNAME 2278## --------- ## 2279## Platform. ## 2280## --------- ## 2281 2282hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2283uname -m = `(uname -m) 2>/dev/null || echo unknown` 2284uname -r = `(uname -r) 2>/dev/null || echo unknown` 2285uname -s = `(uname -s) 2>/dev/null || echo unknown` 2286uname -v = `(uname -v) 2>/dev/null || echo unknown` 2287 2288/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2289/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2290 2291/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2292/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2293/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2294/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2295/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2296/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2297/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2298 2299_ASUNAME 2300 2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2302for as_dir in $PATH 2303do 2304 IFS=$as_save_IFS 2305 test -z "$as_dir" && as_dir=. 2306 $as_echo "PATH: $as_dir" 2307 done 2308IFS=$as_save_IFS 2309 2310} >&5 2311 2312cat >&5 <<_ACEOF 2313 2314 2315## ----------- ## 2316## Core tests. ## 2317## ----------- ## 2318 2319_ACEOF 2320 2321 2322# Keep a trace of the command line. 2323# Strip out --no-create and --no-recursion so they do not pile up. 2324# Strip out --silent because we don't want to record it for future runs. 2325# Also quote any args containing shell meta-characters. 2326# Make two passes to allow for proper duplicate-argument suppression. 2327ac_configure_args= 2328ac_configure_args0= 2329ac_configure_args1= 2330ac_must_keep_next=false 2331for ac_pass in 1 2 2332do 2333 for ac_arg 2334 do 2335 case $ac_arg in 2336 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2338 | -silent | --silent | --silen | --sile | --sil) 2339 continue ;; 2340 *\'*) 2341 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2342 esac 2343 case $ac_pass in 2344 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2345 2) 2346 as_fn_append ac_configure_args1 " '$ac_arg'" 2347 if test $ac_must_keep_next = true; then 2348 ac_must_keep_next=false # Got value, back to normal. 2349 else 2350 case $ac_arg in 2351 *=* | --config-cache | -C | -disable-* | --disable-* \ 2352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2354 | -with-* | --with-* | -without-* | --without-* | --x) 2355 case "$ac_configure_args0 " in 2356 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2357 esac 2358 ;; 2359 -* ) ac_must_keep_next=true ;; 2360 esac 2361 fi 2362 as_fn_append ac_configure_args " '$ac_arg'" 2363 ;; 2364 esac 2365 done 2366done 2367{ ac_configure_args0=; unset ac_configure_args0;} 2368{ ac_configure_args1=; unset ac_configure_args1;} 2369 2370# When interrupted or exit'd, cleanup temporary files, and complete 2371# config.log. We remove comments because anyway the quotes in there 2372# would cause problems or look ugly. 2373# WARNING: Use '\'' to represent an apostrophe within the trap. 2374# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2375trap 'exit_status=$? 2376 # Save into config.log some information that might help in debugging. 2377 { 2378 echo 2379 2380 $as_echo "## ---------------- ## 2381## Cache variables. ## 2382## ---------------- ##" 2383 echo 2384 # The following way of writing the cache mishandles newlines in values, 2385( 2386 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2387 eval ac_val=\$$ac_var 2388 case $ac_val in #( 2389 *${as_nl}*) 2390 case $ac_var in #( 2391 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2392$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2393 esac 2394 case $ac_var in #( 2395 _ | IFS | as_nl) ;; #( 2396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2397 *) { eval $ac_var=; unset $ac_var;} ;; 2398 esac ;; 2399 esac 2400 done 2401 (set) 2>&1 | 2402 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2403 *${as_nl}ac_space=\ *) 2404 sed -n \ 2405 "s/'\''/'\''\\\\'\'''\''/g; 2406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2407 ;; #( 2408 *) 2409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2410 ;; 2411 esac | 2412 sort 2413) 2414 echo 2415 2416 $as_echo "## ----------------- ## 2417## Output variables. ## 2418## ----------------- ##" 2419 echo 2420 for ac_var in $ac_subst_vars 2421 do 2422 eval ac_val=\$$ac_var 2423 case $ac_val in 2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2425 esac 2426 $as_echo "$ac_var='\''$ac_val'\''" 2427 done | sort 2428 echo 2429 2430 if test -n "$ac_subst_files"; then 2431 $as_echo "## ------------------- ## 2432## File substitutions. ## 2433## ------------------- ##" 2434 echo 2435 for ac_var in $ac_subst_files 2436 do 2437 eval ac_val=\$$ac_var 2438 case $ac_val in 2439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2440 esac 2441 $as_echo "$ac_var='\''$ac_val'\''" 2442 done | sort 2443 echo 2444 fi 2445 2446 if test -s confdefs.h; then 2447 $as_echo "## ----------- ## 2448## confdefs.h. ## 2449## ----------- ##" 2450 echo 2451 cat confdefs.h 2452 echo 2453 fi 2454 test "$ac_signal" != 0 && 2455 $as_echo "$as_me: caught signal $ac_signal" 2456 $as_echo "$as_me: exit $exit_status" 2457 } >&5 2458 rm -f core *.core core.conftest.* && 2459 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2460 exit $exit_status 2461' 0 2462for ac_signal in 1 2 13 15; do 2463 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2464done 2465ac_signal=0 2466 2467# confdefs.h avoids OS command line length limits that DEFS can exceed. 2468rm -f -r conftest* confdefs.h 2469 2470$as_echo "/* confdefs.h */" > confdefs.h 2471 2472# Predefined preprocessor variables. 2473 2474cat >>confdefs.h <<_ACEOF 2475#define PACKAGE_NAME "$PACKAGE_NAME" 2476_ACEOF 2477 2478cat >>confdefs.h <<_ACEOF 2479#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2480_ACEOF 2481 2482cat >>confdefs.h <<_ACEOF 2483#define PACKAGE_VERSION "$PACKAGE_VERSION" 2484_ACEOF 2485 2486cat >>confdefs.h <<_ACEOF 2487#define PACKAGE_STRING "$PACKAGE_STRING" 2488_ACEOF 2489 2490cat >>confdefs.h <<_ACEOF 2491#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2492_ACEOF 2493 2494cat >>confdefs.h <<_ACEOF 2495#define PACKAGE_URL "$PACKAGE_URL" 2496_ACEOF 2497 2498 2499# Let the site file select an alternate cache file if it wants to. 2500# Prefer an explicitly selected file to automatically selected ones. 2501ac_site_file1=NONE 2502ac_site_file2=NONE 2503if test -n "$CONFIG_SITE"; then 2504 # We do not want a PATH search for config.site. 2505 case $CONFIG_SITE in #(( 2506 -*) ac_site_file1=./$CONFIG_SITE;; 2507 */*) ac_site_file1=$CONFIG_SITE;; 2508 *) ac_site_file1=./$CONFIG_SITE;; 2509 esac 2510elif test "x$prefix" != xNONE; then 2511 ac_site_file1=$prefix/share/config.site 2512 ac_site_file2=$prefix/etc/config.site 2513else 2514 ac_site_file1=$ac_default_prefix/share/config.site 2515 ac_site_file2=$ac_default_prefix/etc/config.site 2516fi 2517for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2518do 2519 test "x$ac_site_file" = xNONE && continue 2520 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2522$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2523 sed 's/^/| /' "$ac_site_file" >&5 2524 . "$ac_site_file" \ 2525 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2527as_fn_error $? "failed to load site script $ac_site_file 2528See \`config.log' for more details" "$LINENO" 5; } 2529 fi 2530done 2531 2532if test -r "$cache_file"; then 2533 # Some versions of bash will fail to source /dev/null (special files 2534 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2535 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2537$as_echo "$as_me: loading cache $cache_file" >&6;} 2538 case $cache_file in 2539 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2540 *) . "./$cache_file";; 2541 esac 2542 fi 2543else 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2545$as_echo "$as_me: creating cache $cache_file" >&6;} 2546 >$cache_file 2547fi 2548 2549# Check that the precious variables saved in the cache have kept the same 2550# value. 2551ac_cache_corrupted=false 2552for ac_var in $ac_precious_vars; do 2553 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2554 eval ac_new_set=\$ac_env_${ac_var}_set 2555 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2556 eval ac_new_val=\$ac_env_${ac_var}_value 2557 case $ac_old_set,$ac_new_set in 2558 set,) 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2560$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2561 ac_cache_corrupted=: ;; 2562 ,set) 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2564$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2565 ac_cache_corrupted=: ;; 2566 ,);; 2567 *) 2568 if test "x$ac_old_val" != "x$ac_new_val"; then 2569 # differences in whitespace do not lead to failure. 2570 ac_old_val_w=`echo x $ac_old_val` 2571 ac_new_val_w=`echo x $ac_new_val` 2572 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2574$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2575 ac_cache_corrupted=: 2576 else 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2578$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2579 eval $ac_var=\$ac_old_val 2580 fi 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2582$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2584$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2585 fi;; 2586 esac 2587 # Pass precious variables to config.status. 2588 if test "$ac_new_set" = set; then 2589 case $ac_new_val in 2590 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2591 *) ac_arg=$ac_var=$ac_new_val ;; 2592 esac 2593 case " $ac_configure_args " in 2594 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2595 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2596 esac 2597 fi 2598done 2599if $ac_cache_corrupted; then 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2603$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2604 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2605fi 2606## -------------------- ## 2607## Main body of script. ## 2608## -------------------- ## 2609 2610ac_ext=c 2611ac_cpp='$CPP $CPPFLAGS' 2612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2614ac_compiler_gnu=$ac_cv_c_compiler_gnu 2615 2616 2617 2618 2619 2620 2621ac_aux_dir= 2622for ac_dir in build-aux "$srcdir"/build-aux; do 2623 if test -f "$ac_dir/install-sh"; then 2624 ac_aux_dir=$ac_dir 2625 ac_install_sh="$ac_aux_dir/install-sh -c" 2626 break 2627 elif test -f "$ac_dir/install.sh"; then 2628 ac_aux_dir=$ac_dir 2629 ac_install_sh="$ac_aux_dir/install.sh -c" 2630 break 2631 elif test -f "$ac_dir/shtool"; then 2632 ac_aux_dir=$ac_dir 2633 ac_install_sh="$ac_aux_dir/shtool install -c" 2634 break 2635 fi 2636done 2637if test -z "$ac_aux_dir"; then 2638 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2639fi 2640 2641# These three variables are undocumented and unsupported, 2642# and are intended to be withdrawn in a future Autoconf release. 2643# They can cause serious problems if a builder's source tree is in a directory 2644# whose full name contains unusual characters. 2645ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2646ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2647ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2648 2649 2650am__api_version='1.15' 2651 2652# Find a good install program. We prefer a C program (faster), 2653# so one script is as good as another. But avoid the broken or 2654# incompatible versions: 2655# SysV /etc/install, /usr/sbin/install 2656# SunOS /usr/etc/install 2657# IRIX /sbin/install 2658# AIX /bin/install 2659# AmigaOS /C/install, which installs bootblocks on floppy discs 2660# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2661# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2662# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2663# OS/2's system install, which has a completely different semantic 2664# ./install, which can be erroneously created by make from ./install.sh. 2665# Reject install programs that cannot install multiple files. 2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2667$as_echo_n "checking for a BSD-compatible install... " >&6; } 2668if test -z "$INSTALL"; then 2669if ${ac_cv_path_install+:} false; then : 2670 $as_echo_n "(cached) " >&6 2671else 2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2673for as_dir in $PATH 2674do 2675 IFS=$as_save_IFS 2676 test -z "$as_dir" && as_dir=. 2677 # Account for people who put trailing slashes in PATH elements. 2678case $as_dir/ in #(( 2679 ./ | .// | /[cC]/* | \ 2680 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2681 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2682 /usr/ucb/* ) ;; 2683 *) 2684 # OSF1 and SCO ODT 3.0 have their own names for install. 2685 # Don't use installbsd from OSF since it installs stuff as root 2686 # by default. 2687 for ac_prog in ginstall scoinst install; do 2688 for ac_exec_ext in '' $ac_executable_extensions; do 2689 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2690 if test $ac_prog = install && 2691 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2692 # AIX install. It has an incompatible calling convention. 2693 : 2694 elif test $ac_prog = install && 2695 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2696 # program-specific install script used by HP pwplus--don't use. 2697 : 2698 else 2699 rm -rf conftest.one conftest.two conftest.dir 2700 echo one > conftest.one 2701 echo two > conftest.two 2702 mkdir conftest.dir 2703 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2704 test -s conftest.one && test -s conftest.two && 2705 test -s conftest.dir/conftest.one && 2706 test -s conftest.dir/conftest.two 2707 then 2708 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2709 break 3 2710 fi 2711 fi 2712 fi 2713 done 2714 done 2715 ;; 2716esac 2717 2718 done 2719IFS=$as_save_IFS 2720 2721rm -rf conftest.one conftest.two conftest.dir 2722 2723fi 2724 if test "${ac_cv_path_install+set}" = set; then 2725 INSTALL=$ac_cv_path_install 2726 else 2727 # As a last resort, use the slow shell script. Don't cache a 2728 # value for INSTALL within a source directory, because that will 2729 # break other packages using the cache if that directory is 2730 # removed, or if the value is a relative name. 2731 INSTALL=$ac_install_sh 2732 fi 2733fi 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2735$as_echo "$INSTALL" >&6; } 2736 2737# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2738# It thinks the first close brace ends the variable substitution. 2739test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2740 2741test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2742 2743test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2744 2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2746$as_echo_n "checking whether build environment is sane... " >&6; } 2747# Reject unsafe characters in $srcdir or the absolute working directory 2748# name. Accept space and tab only in the latter. 2749am_lf=' 2750' 2751case `pwd` in 2752 *[\\\"\#\$\&\'\`$am_lf]*) 2753 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2754esac 2755case $srcdir in 2756 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2757 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2758esac 2759 2760# Do 'set' in a subshell so we don't clobber the current shell's 2761# arguments. Must try -L first in case configure is actually a 2762# symlink; some systems play weird games with the mod time of symlinks 2763# (eg FreeBSD returns the mod time of the symlink's containing 2764# directory). 2765if ( 2766 am_has_slept=no 2767 for am_try in 1 2; do 2768 echo "timestamp, slept: $am_has_slept" > conftest.file 2769 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2770 if test "$*" = "X"; then 2771 # -L didn't work. 2772 set X `ls -t "$srcdir/configure" conftest.file` 2773 fi 2774 if test "$*" != "X $srcdir/configure conftest.file" \ 2775 && test "$*" != "X conftest.file $srcdir/configure"; then 2776 2777 # If neither matched, then we have a broken ls. This can happen 2778 # if, for instance, CONFIG_SHELL is bash and it inherits a 2779 # broken ls alias from the environment. This has actually 2780 # happened. Such a system could not be considered "sane". 2781 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2782 alias in your environment" "$LINENO" 5 2783 fi 2784 if test "$2" = conftest.file || test $am_try -eq 2; then 2785 break 2786 fi 2787 # Just in case. 2788 sleep 1 2789 am_has_slept=yes 2790 done 2791 test "$2" = conftest.file 2792 ) 2793then 2794 # Ok. 2795 : 2796else 2797 as_fn_error $? "newly created file is older than distributed files! 2798Check your system clock" "$LINENO" 5 2799fi 2800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2801$as_echo "yes" >&6; } 2802# If we didn't sleep, we still need to ensure time stamps of config.status and 2803# generated files are strictly newer. 2804am_sleep_pid= 2805if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2806 ( sleep 1 ) & 2807 am_sleep_pid=$! 2808fi 2809 2810rm -f conftest.file 2811 2812test "$program_prefix" != NONE && 2813 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2814# Use a double $ so make ignores it. 2815test "$program_suffix" != NONE && 2816 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2817# Double any \ or $. 2818# By default was `s,x,x', remove it if useless. 2819ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2820program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2821 2822# Expand $ac_aux_dir to an absolute path. 2823am_aux_dir=`cd "$ac_aux_dir" && pwd` 2824 2825if test x"${MISSING+set}" != xset; then 2826 case $am_aux_dir in 2827 *\ * | *\ *) 2828 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2829 *) 2830 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2831 esac 2832fi 2833# Use eval to expand $SHELL 2834if eval "$MISSING --is-lightweight"; then 2835 am_missing_run="$MISSING " 2836else 2837 am_missing_run= 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2839$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2840fi 2841 2842if test x"${install_sh+set}" != xset; then 2843 case $am_aux_dir in 2844 *\ * | *\ *) 2845 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2846 *) 2847 install_sh="\${SHELL} $am_aux_dir/install-sh" 2848 esac 2849fi 2850 2851# Installed binaries are usually stripped using 'strip' when the user 2852# run "make install-strip". However 'strip' might not be the right 2853# tool to use in cross-compilation environments, therefore Automake 2854# will honor the 'STRIP' environment variable to overrule this program. 2855if test "$cross_compiling" != no; then 2856 if test -n "$ac_tool_prefix"; then 2857 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2858set dummy ${ac_tool_prefix}strip; ac_word=$2 2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2860$as_echo_n "checking for $ac_word... " >&6; } 2861if ${ac_cv_prog_STRIP+:} false; then : 2862 $as_echo_n "(cached) " >&6 2863else 2864 if test -n "$STRIP"; then 2865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2866else 2867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2868for as_dir in $PATH 2869do 2870 IFS=$as_save_IFS 2871 test -z "$as_dir" && as_dir=. 2872 for ac_exec_ext in '' $ac_executable_extensions; do 2873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2874 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2876 break 2 2877 fi 2878done 2879 done 2880IFS=$as_save_IFS 2881 2882fi 2883fi 2884STRIP=$ac_cv_prog_STRIP 2885if test -n "$STRIP"; then 2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2887$as_echo "$STRIP" >&6; } 2888else 2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2890$as_echo "no" >&6; } 2891fi 2892 2893 2894fi 2895if test -z "$ac_cv_prog_STRIP"; then 2896 ac_ct_STRIP=$STRIP 2897 # Extract the first word of "strip", so it can be a program name with args. 2898set dummy strip; ac_word=$2 2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2900$as_echo_n "checking for $ac_word... " >&6; } 2901if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2902 $as_echo_n "(cached) " >&6 2903else 2904 if test -n "$ac_ct_STRIP"; then 2905 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2906else 2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2908for as_dir in $PATH 2909do 2910 IFS=$as_save_IFS 2911 test -z "$as_dir" && as_dir=. 2912 for ac_exec_ext in '' $ac_executable_extensions; do 2913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2914 ac_cv_prog_ac_ct_STRIP="strip" 2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2916 break 2 2917 fi 2918done 2919 done 2920IFS=$as_save_IFS 2921 2922fi 2923fi 2924ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2925if test -n "$ac_ct_STRIP"; then 2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2927$as_echo "$ac_ct_STRIP" >&6; } 2928else 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2930$as_echo "no" >&6; } 2931fi 2932 2933 if test "x$ac_ct_STRIP" = x; then 2934 STRIP=":" 2935 else 2936 case $cross_compiling:$ac_tool_warned in 2937yes:) 2938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2940ac_tool_warned=yes ;; 2941esac 2942 STRIP=$ac_ct_STRIP 2943 fi 2944else 2945 STRIP="$ac_cv_prog_STRIP" 2946fi 2947 2948fi 2949INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2950 2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2952$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2953if test -z "$MKDIR_P"; then 2954 if ${ac_cv_path_mkdir+:} false; then : 2955 $as_echo_n "(cached) " >&6 2956else 2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2958for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2959do 2960 IFS=$as_save_IFS 2961 test -z "$as_dir" && as_dir=. 2962 for ac_prog in mkdir gmkdir; do 2963 for ac_exec_ext in '' $ac_executable_extensions; do 2964 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2965 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2966 'mkdir (GNU coreutils) '* | \ 2967 'mkdir (coreutils) '* | \ 2968 'mkdir (fileutils) '4.1*) 2969 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2970 break 3;; 2971 esac 2972 done 2973 done 2974 done 2975IFS=$as_save_IFS 2976 2977fi 2978 2979 test -d ./--version && rmdir ./--version 2980 if test "${ac_cv_path_mkdir+set}" = set; then 2981 MKDIR_P="$ac_cv_path_mkdir -p" 2982 else 2983 # As a last resort, use the slow shell script. Don't cache a 2984 # value for MKDIR_P within a source directory, because that will 2985 # break other packages using the cache if that directory is 2986 # removed, or if the value is a relative name. 2987 MKDIR_P="$ac_install_sh -d" 2988 fi 2989fi 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2991$as_echo "$MKDIR_P" >&6; } 2992 2993for ac_prog in gawk mawk nawk awk 2994do 2995 # Extract the first word of "$ac_prog", so it can be a program name with args. 2996set dummy $ac_prog; ac_word=$2 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2998$as_echo_n "checking for $ac_word... " >&6; } 2999if ${ac_cv_prog_AWK+:} false; then : 3000 $as_echo_n "(cached) " >&6 3001else 3002 if test -n "$AWK"; then 3003 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3004else 3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3006for as_dir in $PATH 3007do 3008 IFS=$as_save_IFS 3009 test -z "$as_dir" && as_dir=. 3010 for ac_exec_ext in '' $ac_executable_extensions; do 3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3012 ac_cv_prog_AWK="$ac_prog" 3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3014 break 2 3015 fi 3016done 3017 done 3018IFS=$as_save_IFS 3019 3020fi 3021fi 3022AWK=$ac_cv_prog_AWK 3023if test -n "$AWK"; then 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3025$as_echo "$AWK" >&6; } 3026else 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3028$as_echo "no" >&6; } 3029fi 3030 3031 3032 test -n "$AWK" && break 3033done 3034 3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3036$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3037set x ${MAKE-make} 3038ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3039if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3040 $as_echo_n "(cached) " >&6 3041else 3042 cat >conftest.make <<\_ACEOF 3043SHELL = /bin/sh 3044all: 3045 @echo '@@@%%%=$(MAKE)=@@@%%%' 3046_ACEOF 3047# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3048case `${MAKE-make} -f conftest.make 2>/dev/null` in 3049 *@@@%%%=?*=@@@%%%*) 3050 eval ac_cv_prog_make_${ac_make}_set=yes;; 3051 *) 3052 eval ac_cv_prog_make_${ac_make}_set=no;; 3053esac 3054rm -f conftest.make 3055fi 3056if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3058$as_echo "yes" >&6; } 3059 SET_MAKE= 3060else 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3062$as_echo "no" >&6; } 3063 SET_MAKE="MAKE=${MAKE-make}" 3064fi 3065 3066rm -rf .tst 2>/dev/null 3067mkdir .tst 2>/dev/null 3068if test -d .tst; then 3069 am__leading_dot=. 3070else 3071 am__leading_dot=_ 3072fi 3073rmdir .tst 2>/dev/null 3074 3075# Check whether --enable-silent-rules was given. 3076if test "${enable_silent_rules+set}" = set; then : 3077 enableval=$enable_silent_rules; 3078fi 3079 3080case $enable_silent_rules in # ((( 3081 yes) AM_DEFAULT_VERBOSITY=0;; 3082 no) AM_DEFAULT_VERBOSITY=1;; 3083 *) AM_DEFAULT_VERBOSITY=1;; 3084esac 3085am_make=${MAKE-make} 3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3087$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3088if ${am_cv_make_support_nested_variables+:} false; then : 3089 $as_echo_n "(cached) " >&6 3090else 3091 if $as_echo 'TRUE=$(BAR$(V)) 3092BAR0=false 3093BAR1=true 3094V=1 3095am__doit: 3096 @$(TRUE) 3097.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3098 am_cv_make_support_nested_variables=yes 3099else 3100 am_cv_make_support_nested_variables=no 3101fi 3102fi 3103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3104$as_echo "$am_cv_make_support_nested_variables" >&6; } 3105if test $am_cv_make_support_nested_variables = yes; then 3106 AM_V='$(V)' 3107 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3108else 3109 AM_V=$AM_DEFAULT_VERBOSITY 3110 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3111fi 3112AM_BACKSLASH='\' 3113 3114if test "`cd $srcdir && pwd`" != "`pwd`"; then 3115 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3116 # is not polluted with repeated "-I." 3117 am__isrc=' -I$(srcdir)' 3118 # test to see if srcdir already configured 3119 if test -f $srcdir/config.status; then 3120 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3121 fi 3122fi 3123 3124# test whether we have cygpath 3125if test -z "$CYGPATH_W"; then 3126 if (cygpath --version) >/dev/null 2>/dev/null; then 3127 CYGPATH_W='cygpath -w' 3128 else 3129 CYGPATH_W=echo 3130 fi 3131fi 3132 3133 3134# Define the identity of the package. 3135 PACKAGE='libevent' 3136 VERSION='2.1.5-beta' 3137 3138 3139cat >>confdefs.h <<_ACEOF 3140#define PACKAGE "$PACKAGE" 3141_ACEOF 3142 3143 3144cat >>confdefs.h <<_ACEOF 3145#define VERSION "$VERSION" 3146_ACEOF 3147 3148# Some tools Automake needs. 3149 3150ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3151 3152 3153AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3154 3155 3156AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3157 3158 3159AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3160 3161 3162MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3163 3164# For better backward compatibility. To be removed once Automake 1.9.x 3165# dies out for good. For more background, see: 3166# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3167# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3168mkdir_p='$(MKDIR_P)' 3169 3170# We need awk for the "check" target (and possibly the TAP driver). The 3171# system "awk" is bad on some platforms. 3172# Always define AMTAR for backward compatibility. Yes, it's still used 3173# in the wild :-( We should find a proper way to deprecate it ... 3174AMTAR='$${TAR-tar}' 3175 3176 3177# We'll loop over all known methods to create a tar archive until one works. 3178_am_tools='gnutar pax cpio none' 3179 3180am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3181 3182 3183 3184 3185 3186 3187# POSIX will say in a future version that running "rm -f" with no argument 3188# is OK; and we want to be able to make that assumption in our Makefile 3189# recipes. So use an aggressive probe to check that the usage we want is 3190# actually supported "in the wild" to an acceptable degree. 3191# See automake bug#10828. 3192# To make any issue more visible, cause the running configure to be aborted 3193# by default if the 'rm' program in use doesn't match our expectations; the 3194# user can still override this though. 3195if rm -f && rm -fr && rm -rf; then : OK; else 3196 cat >&2 <<'END' 3197Oops! 3198 3199Your 'rm' program seems unable to run without file operands specified 3200on the command line, even when the '-f' option is present. This is contrary 3201to the behaviour of most rm programs out there, and not conforming with 3202the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3203 3204Please tell bug-automake@gnu.org about your system, including the value 3205of your $PATH and any error possibly output before this message. This 3206can help us improve future automake versions. 3207 3208END 3209 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3210 echo 'Configuration will proceed anyway, since you have set the' >&2 3211 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3212 echo >&2 3213 else 3214 cat >&2 <<'END' 3215Aborting the configuration process, to ensure you take notice of the issue. 3216 3217You can download and install GNU coreutils to get an 'rm' implementation 3218that behaves properly: <http://www.gnu.org/software/coreutils/>. 3219 3220If you want to complete the configuration process using your problematic 3221'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3222to "yes", and re-run configure. 3223 3224END 3225 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3226 fi 3227fi 3228 3229# Check whether --enable-silent-rules was given. 3230if test "${enable_silent_rules+set}" = set; then : 3231 enableval=$enable_silent_rules; 3232fi 3233 3234case $enable_silent_rules in # ((( 3235 yes) AM_DEFAULT_VERBOSITY=0;; 3236 no) AM_DEFAULT_VERBOSITY=1;; 3237 *) AM_DEFAULT_VERBOSITY=0;; 3238esac 3239am_make=${MAKE-make} 3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3241$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3242if ${am_cv_make_support_nested_variables+:} false; then : 3243 $as_echo_n "(cached) " >&6 3244else 3245 if $as_echo 'TRUE=$(BAR$(V)) 3246BAR0=false 3247BAR1=true 3248V=1 3249am__doit: 3250 @$(TRUE) 3251.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3252 am_cv_make_support_nested_variables=yes 3253else 3254 am_cv_make_support_nested_variables=no 3255fi 3256fi 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3258$as_echo "$am_cv_make_support_nested_variables" >&6; } 3259if test $am_cv_make_support_nested_variables = yes; then 3260 AM_V='$(V)' 3261 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3262else 3263 AM_V=$AM_DEFAULT_VERBOSITY 3264 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3265fi 3266AM_BACKSLASH='\' 3267 3268ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in" 3269 3270 3271$as_echo "#define NUMERIC_VERSION 0x02010500" >>confdefs.h 3272 3273 3274if test "$prefix" = "NONE"; then 3275 prefix="/usr/local" 3276fi 3277 3278 3279# Make sure we can run config.sub. 3280$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3281 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3282 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3284$as_echo_n "checking build system type... " >&6; } 3285if ${ac_cv_build+:} false; then : 3286 $as_echo_n "(cached) " >&6 3287else 3288 ac_build_alias=$build_alias 3289test "x$ac_build_alias" = x && 3290 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3291test "x$ac_build_alias" = x && 3292 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3293ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3294 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3295 3296fi 3297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3298$as_echo "$ac_cv_build" >&6; } 3299case $ac_cv_build in 3300*-*-*) ;; 3301*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3302esac 3303build=$ac_cv_build 3304ac_save_IFS=$IFS; IFS='-' 3305set x $ac_cv_build 3306shift 3307build_cpu=$1 3308build_vendor=$2 3309shift; shift 3310# Remember, the first character of IFS is used to create $*, 3311# except with old shells: 3312build_os=$* 3313IFS=$ac_save_IFS 3314case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3315 3316 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3318$as_echo_n "checking host system type... " >&6; } 3319if ${ac_cv_host+:} false; then : 3320 $as_echo_n "(cached) " >&6 3321else 3322 if test "x$host_alias" = x; then 3323 ac_cv_host=$ac_cv_build 3324else 3325 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3326 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3327fi 3328 3329fi 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3331$as_echo "$ac_cv_host" >&6; } 3332case $ac_cv_host in 3333*-*-*) ;; 3334*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3335esac 3336host=$ac_cv_host 3337ac_save_IFS=$IFS; IFS='-' 3338set x $ac_cv_host 3339shift 3340host_cpu=$1 3341host_vendor=$2 3342shift; shift 3343# Remember, the first character of IFS is used to create $*, 3344# except with old shells: 3345host_os=$* 3346IFS=$ac_save_IFS 3347case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3348 3349 3350DEPDIR="${am__leading_dot}deps" 3351 3352ac_config_commands="$ac_config_commands depfiles" 3353 3354 3355am_make=${MAKE-make} 3356cat > confinc << 'END' 3357am__doit: 3358 @echo this is the am__doit target 3359.PHONY: am__doit 3360END 3361# If we don't find an include directive, just comment out the code. 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3363$as_echo_n "checking for style of include used by $am_make... " >&6; } 3364am__include="#" 3365am__quote= 3366_am_result=none 3367# First try GNU make style include. 3368echo "include confinc" > confmf 3369# Ignore all kinds of additional output from 'make'. 3370case `$am_make -s -f confmf 2> /dev/null` in #( 3371*the\ am__doit\ target*) 3372 am__include=include 3373 am__quote= 3374 _am_result=GNU 3375 ;; 3376esac 3377# Now try BSD make style include. 3378if test "$am__include" = "#"; then 3379 echo '.include "confinc"' > confmf 3380 case `$am_make -s -f confmf 2> /dev/null` in #( 3381 *the\ am__doit\ target*) 3382 am__include=.include 3383 am__quote="\"" 3384 _am_result=BSD 3385 ;; 3386 esac 3387fi 3388 3389 3390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3391$as_echo "$_am_result" >&6; } 3392rm -f confinc confmf 3393 3394# Check whether --enable-dependency-tracking was given. 3395if test "${enable_dependency_tracking+set}" = set; then : 3396 enableval=$enable_dependency_tracking; 3397fi 3398 3399if test "x$enable_dependency_tracking" != xno; then 3400 am_depcomp="$ac_aux_dir/depcomp" 3401 AMDEPBACKSLASH='\' 3402 am__nodep='_no' 3403fi 3404 if test "x$enable_dependency_tracking" != xno; then 3405 AMDEP_TRUE= 3406 AMDEP_FALSE='#' 3407else 3408 AMDEP_TRUE='#' 3409 AMDEP_FALSE= 3410fi 3411 3412 3413ac_ext=c 3414ac_cpp='$CPP $CPPFLAGS' 3415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3417ac_compiler_gnu=$ac_cv_c_compiler_gnu 3418if test -n "$ac_tool_prefix"; then 3419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3420set dummy ${ac_tool_prefix}gcc; ac_word=$2 3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3422$as_echo_n "checking for $ac_word... " >&6; } 3423if ${ac_cv_prog_CC+:} false; then : 3424 $as_echo_n "(cached) " >&6 3425else 3426 if test -n "$CC"; then 3427 ac_cv_prog_CC="$CC" # Let the user override the test. 3428else 3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3430for as_dir in $PATH 3431do 3432 IFS=$as_save_IFS 3433 test -z "$as_dir" && as_dir=. 3434 for ac_exec_ext in '' $ac_executable_extensions; do 3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3436 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3438 break 2 3439 fi 3440done 3441 done 3442IFS=$as_save_IFS 3443 3444fi 3445fi 3446CC=$ac_cv_prog_CC 3447if test -n "$CC"; then 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3449$as_echo "$CC" >&6; } 3450else 3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3452$as_echo "no" >&6; } 3453fi 3454 3455 3456fi 3457if test -z "$ac_cv_prog_CC"; then 3458 ac_ct_CC=$CC 3459 # Extract the first word of "gcc", so it can be a program name with args. 3460set dummy gcc; ac_word=$2 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3462$as_echo_n "checking for $ac_word... " >&6; } 3463if ${ac_cv_prog_ac_ct_CC+:} false; then : 3464 $as_echo_n "(cached) " >&6 3465else 3466 if test -n "$ac_ct_CC"; then 3467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3468else 3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3470for as_dir in $PATH 3471do 3472 IFS=$as_save_IFS 3473 test -z "$as_dir" && as_dir=. 3474 for ac_exec_ext in '' $ac_executable_extensions; do 3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3476 ac_cv_prog_ac_ct_CC="gcc" 3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3478 break 2 3479 fi 3480done 3481 done 3482IFS=$as_save_IFS 3483 3484fi 3485fi 3486ac_ct_CC=$ac_cv_prog_ac_ct_CC 3487if test -n "$ac_ct_CC"; then 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3489$as_echo "$ac_ct_CC" >&6; } 3490else 3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3492$as_echo "no" >&6; } 3493fi 3494 3495 if test "x$ac_ct_CC" = x; then 3496 CC="" 3497 else 3498 case $cross_compiling:$ac_tool_warned in 3499yes:) 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3502ac_tool_warned=yes ;; 3503esac 3504 CC=$ac_ct_CC 3505 fi 3506else 3507 CC="$ac_cv_prog_CC" 3508fi 3509 3510if test -z "$CC"; then 3511 if test -n "$ac_tool_prefix"; then 3512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3513set dummy ${ac_tool_prefix}cc; ac_word=$2 3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3515$as_echo_n "checking for $ac_word... " >&6; } 3516if ${ac_cv_prog_CC+:} false; then : 3517 $as_echo_n "(cached) " >&6 3518else 3519 if test -n "$CC"; then 3520 ac_cv_prog_CC="$CC" # Let the user override the test. 3521else 3522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3523for as_dir in $PATH 3524do 3525 IFS=$as_save_IFS 3526 test -z "$as_dir" && as_dir=. 3527 for ac_exec_ext in '' $ac_executable_extensions; do 3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3529 ac_cv_prog_CC="${ac_tool_prefix}cc" 3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3531 break 2 3532 fi 3533done 3534 done 3535IFS=$as_save_IFS 3536 3537fi 3538fi 3539CC=$ac_cv_prog_CC 3540if test -n "$CC"; then 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3542$as_echo "$CC" >&6; } 3543else 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3545$as_echo "no" >&6; } 3546fi 3547 3548 3549 fi 3550fi 3551if test -z "$CC"; then 3552 # Extract the first word of "cc", so it can be a program name with args. 3553set dummy cc; ac_word=$2 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3555$as_echo_n "checking for $ac_word... " >&6; } 3556if ${ac_cv_prog_CC+:} false; then : 3557 $as_echo_n "(cached) " >&6 3558else 3559 if test -n "$CC"; then 3560 ac_cv_prog_CC="$CC" # Let the user override the test. 3561else 3562 ac_prog_rejected=no 3563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3564for as_dir in $PATH 3565do 3566 IFS=$as_save_IFS 3567 test -z "$as_dir" && as_dir=. 3568 for ac_exec_ext in '' $ac_executable_extensions; do 3569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3570 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3571 ac_prog_rejected=yes 3572 continue 3573 fi 3574 ac_cv_prog_CC="cc" 3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3576 break 2 3577 fi 3578done 3579 done 3580IFS=$as_save_IFS 3581 3582if test $ac_prog_rejected = yes; then 3583 # We found a bogon in the path, so make sure we never use it. 3584 set dummy $ac_cv_prog_CC 3585 shift 3586 if test $# != 0; then 3587 # We chose a different compiler from the bogus one. 3588 # However, it has the same basename, so the bogon will be chosen 3589 # first if we set CC to just the basename; use the full file name. 3590 shift 3591 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3592 fi 3593fi 3594fi 3595fi 3596CC=$ac_cv_prog_CC 3597if test -n "$CC"; then 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3599$as_echo "$CC" >&6; } 3600else 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3602$as_echo "no" >&6; } 3603fi 3604 3605 3606fi 3607if test -z "$CC"; then 3608 if test -n "$ac_tool_prefix"; then 3609 for ac_prog in cl.exe 3610 do 3611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3612set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3614$as_echo_n "checking for $ac_word... " >&6; } 3615if ${ac_cv_prog_CC+:} false; then : 3616 $as_echo_n "(cached) " >&6 3617else 3618 if test -n "$CC"; then 3619 ac_cv_prog_CC="$CC" # Let the user override the test. 3620else 3621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3622for as_dir in $PATH 3623do 3624 IFS=$as_save_IFS 3625 test -z "$as_dir" && as_dir=. 3626 for ac_exec_ext in '' $ac_executable_extensions; do 3627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3628 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3630 break 2 3631 fi 3632done 3633 done 3634IFS=$as_save_IFS 3635 3636fi 3637fi 3638CC=$ac_cv_prog_CC 3639if test -n "$CC"; then 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3641$as_echo "$CC" >&6; } 3642else 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3644$as_echo "no" >&6; } 3645fi 3646 3647 3648 test -n "$CC" && break 3649 done 3650fi 3651if test -z "$CC"; then 3652 ac_ct_CC=$CC 3653 for ac_prog in cl.exe 3654do 3655 # Extract the first word of "$ac_prog", so it can be a program name with args. 3656set dummy $ac_prog; ac_word=$2 3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3658$as_echo_n "checking for $ac_word... " >&6; } 3659if ${ac_cv_prog_ac_ct_CC+:} false; then : 3660 $as_echo_n "(cached) " >&6 3661else 3662 if test -n "$ac_ct_CC"; then 3663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3664else 3665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3666for as_dir in $PATH 3667do 3668 IFS=$as_save_IFS 3669 test -z "$as_dir" && as_dir=. 3670 for ac_exec_ext in '' $ac_executable_extensions; do 3671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3672 ac_cv_prog_ac_ct_CC="$ac_prog" 3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3674 break 2 3675 fi 3676done 3677 done 3678IFS=$as_save_IFS 3679 3680fi 3681fi 3682ac_ct_CC=$ac_cv_prog_ac_ct_CC 3683if test -n "$ac_ct_CC"; then 3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3685$as_echo "$ac_ct_CC" >&6; } 3686else 3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3688$as_echo "no" >&6; } 3689fi 3690 3691 3692 test -n "$ac_ct_CC" && break 3693done 3694 3695 if test "x$ac_ct_CC" = x; then 3696 CC="" 3697 else 3698 case $cross_compiling:$ac_tool_warned in 3699yes:) 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3702ac_tool_warned=yes ;; 3703esac 3704 CC=$ac_ct_CC 3705 fi 3706fi 3707 3708fi 3709 3710 3711test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3713as_fn_error $? "no acceptable C compiler found in \$PATH 3714See \`config.log' for more details" "$LINENO" 5; } 3715 3716# Provide some information about the compiler. 3717$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3718set X $ac_compile 3719ac_compiler=$2 3720for ac_option in --version -v -V -qversion; do 3721 { { ac_try="$ac_compiler $ac_option >&5" 3722case "(($ac_try" in 3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3724 *) ac_try_echo=$ac_try;; 3725esac 3726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3727$as_echo "$ac_try_echo"; } >&5 3728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3729 ac_status=$? 3730 if test -s conftest.err; then 3731 sed '10a\ 3732... rest of stderr output deleted ... 3733 10q' conftest.err >conftest.er1 3734 cat conftest.er1 >&5 3735 fi 3736 rm -f conftest.er1 conftest.err 3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3738 test $ac_status = 0; } 3739done 3740 3741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3742/* end confdefs.h. */ 3743 3744int 3745main () 3746{ 3747 3748 ; 3749 return 0; 3750} 3751_ACEOF 3752ac_clean_files_save=$ac_clean_files 3753ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3754# Try to create an executable without -o first, disregard a.out. 3755# It will help us diagnose broken compilers, and finding out an intuition 3756# of exeext. 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3758$as_echo_n "checking whether the C compiler works... " >&6; } 3759ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3760 3761# The possible output files: 3762ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3763 3764ac_rmfiles= 3765for ac_file in $ac_files 3766do 3767 case $ac_file in 3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3769 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3770 esac 3771done 3772rm -f $ac_rmfiles 3773 3774if { { ac_try="$ac_link_default" 3775case "(($ac_try" in 3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3777 *) ac_try_echo=$ac_try;; 3778esac 3779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3780$as_echo "$ac_try_echo"; } >&5 3781 (eval "$ac_link_default") 2>&5 3782 ac_status=$? 3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3784 test $ac_status = 0; }; then : 3785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3786# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3787# in a Makefile. We should not override ac_cv_exeext if it was cached, 3788# so that the user can short-circuit this test for compilers unknown to 3789# Autoconf. 3790for ac_file in $ac_files '' 3791do 3792 test -f "$ac_file" || continue 3793 case $ac_file in 3794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3795 ;; 3796 [ab].out ) 3797 # We found the default executable, but exeext='' is most 3798 # certainly right. 3799 break;; 3800 *.* ) 3801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3802 then :; else 3803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3804 fi 3805 # We set ac_cv_exeext here because the later test for it is not 3806 # safe: cross compilers may not add the suffix if given an `-o' 3807 # argument, so we may need to know it at that point already. 3808 # Even if this section looks crufty: it has the advantage of 3809 # actually working. 3810 break;; 3811 * ) 3812 break;; 3813 esac 3814done 3815test "$ac_cv_exeext" = no && ac_cv_exeext= 3816 3817else 3818 ac_file='' 3819fi 3820if test -z "$ac_file"; then : 3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3822$as_echo "no" >&6; } 3823$as_echo "$as_me: failed program was:" >&5 3824sed 's/^/| /' conftest.$ac_ext >&5 3825 3826{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3828as_fn_error 77 "C compiler cannot create executables 3829See \`config.log' for more details" "$LINENO" 5; } 3830else 3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3832$as_echo "yes" >&6; } 3833fi 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3835$as_echo_n "checking for C compiler default output file name... " >&6; } 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3837$as_echo "$ac_file" >&6; } 3838ac_exeext=$ac_cv_exeext 3839 3840rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3841ac_clean_files=$ac_clean_files_save 3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3843$as_echo_n "checking for suffix of executables... " >&6; } 3844if { { ac_try="$ac_link" 3845case "(($ac_try" in 3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3847 *) ac_try_echo=$ac_try;; 3848esac 3849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3850$as_echo "$ac_try_echo"; } >&5 3851 (eval "$ac_link") 2>&5 3852 ac_status=$? 3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3854 test $ac_status = 0; }; then : 3855 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3856# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3857# work properly (i.e., refer to `conftest.exe'), while it won't with 3858# `rm'. 3859for ac_file in conftest.exe conftest conftest.*; do 3860 test -f "$ac_file" || continue 3861 case $ac_file in 3862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3863 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3864 break;; 3865 * ) break;; 3866 esac 3867done 3868else 3869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3871as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3872See \`config.log' for more details" "$LINENO" 5; } 3873fi 3874rm -f conftest conftest$ac_cv_exeext 3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3876$as_echo "$ac_cv_exeext" >&6; } 3877 3878rm -f conftest.$ac_ext 3879EXEEXT=$ac_cv_exeext 3880ac_exeext=$EXEEXT 3881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3882/* end confdefs.h. */ 3883#include <stdio.h> 3884int 3885main () 3886{ 3887FILE *f = fopen ("conftest.out", "w"); 3888 return ferror (f) || fclose (f) != 0; 3889 3890 ; 3891 return 0; 3892} 3893_ACEOF 3894ac_clean_files="$ac_clean_files conftest.out" 3895# Check that the compiler produces executables we can run. If not, either 3896# the compiler is broken, or we cross compile. 3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3898$as_echo_n "checking whether we are cross compiling... " >&6; } 3899if test "$cross_compiling" != yes; then 3900 { { ac_try="$ac_link" 3901case "(($ac_try" in 3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3903 *) ac_try_echo=$ac_try;; 3904esac 3905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3906$as_echo "$ac_try_echo"; } >&5 3907 (eval "$ac_link") 2>&5 3908 ac_status=$? 3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3910 test $ac_status = 0; } 3911 if { ac_try='./conftest$ac_cv_exeext' 3912 { { case "(($ac_try" in 3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3914 *) ac_try_echo=$ac_try;; 3915esac 3916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3917$as_echo "$ac_try_echo"; } >&5 3918 (eval "$ac_try") 2>&5 3919 ac_status=$? 3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3921 test $ac_status = 0; }; }; then 3922 cross_compiling=no 3923 else 3924 if test "$cross_compiling" = maybe; then 3925 cross_compiling=yes 3926 else 3927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3929as_fn_error $? "cannot run C compiled programs. 3930If you meant to cross compile, use \`--host'. 3931See \`config.log' for more details" "$LINENO" 5; } 3932 fi 3933 fi 3934fi 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3936$as_echo "$cross_compiling" >&6; } 3937 3938rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3939ac_clean_files=$ac_clean_files_save 3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3941$as_echo_n "checking for suffix of object files... " >&6; } 3942if ${ac_cv_objext+:} false; then : 3943 $as_echo_n "(cached) " >&6 3944else 3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3946/* end confdefs.h. */ 3947 3948int 3949main () 3950{ 3951 3952 ; 3953 return 0; 3954} 3955_ACEOF 3956rm -f conftest.o conftest.obj 3957if { { ac_try="$ac_compile" 3958case "(($ac_try" in 3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3960 *) ac_try_echo=$ac_try;; 3961esac 3962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3963$as_echo "$ac_try_echo"; } >&5 3964 (eval "$ac_compile") 2>&5 3965 ac_status=$? 3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3967 test $ac_status = 0; }; then : 3968 for ac_file in conftest.o conftest.obj conftest.*; do 3969 test -f "$ac_file" || continue; 3970 case $ac_file in 3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3972 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3973 break;; 3974 esac 3975done 3976else 3977 $as_echo "$as_me: failed program was:" >&5 3978sed 's/^/| /' conftest.$ac_ext >&5 3979 3980{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3982as_fn_error $? "cannot compute suffix of object files: cannot compile 3983See \`config.log' for more details" "$LINENO" 5; } 3984fi 3985rm -f conftest.$ac_cv_objext conftest.$ac_ext 3986fi 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3988$as_echo "$ac_cv_objext" >&6; } 3989OBJEXT=$ac_cv_objext 3990ac_objext=$OBJEXT 3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3992$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3993if ${ac_cv_c_compiler_gnu+:} false; then : 3994 $as_echo_n "(cached) " >&6 3995else 3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3997/* end confdefs.h. */ 3998 3999int 4000main () 4001{ 4002#ifndef __GNUC__ 4003 choke me 4004#endif 4005 4006 ; 4007 return 0; 4008} 4009_ACEOF 4010if ac_fn_c_try_compile "$LINENO"; then : 4011 ac_compiler_gnu=yes 4012else 4013 ac_compiler_gnu=no 4014fi 4015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4016ac_cv_c_compiler_gnu=$ac_compiler_gnu 4017 4018fi 4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4020$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4021if test $ac_compiler_gnu = yes; then 4022 GCC=yes 4023else 4024 GCC= 4025fi 4026ac_test_CFLAGS=${CFLAGS+set} 4027ac_save_CFLAGS=$CFLAGS 4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4029$as_echo_n "checking whether $CC accepts -g... " >&6; } 4030if ${ac_cv_prog_cc_g+:} false; then : 4031 $as_echo_n "(cached) " >&6 4032else 4033 ac_save_c_werror_flag=$ac_c_werror_flag 4034 ac_c_werror_flag=yes 4035 ac_cv_prog_cc_g=no 4036 CFLAGS="-g" 4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4038/* end confdefs.h. */ 4039 4040int 4041main () 4042{ 4043 4044 ; 4045 return 0; 4046} 4047_ACEOF 4048if ac_fn_c_try_compile "$LINENO"; then : 4049 ac_cv_prog_cc_g=yes 4050else 4051 CFLAGS="" 4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4053/* end confdefs.h. */ 4054 4055int 4056main () 4057{ 4058 4059 ; 4060 return 0; 4061} 4062_ACEOF 4063if ac_fn_c_try_compile "$LINENO"; then : 4064 4065else 4066 ac_c_werror_flag=$ac_save_c_werror_flag 4067 CFLAGS="-g" 4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4069/* end confdefs.h. */ 4070 4071int 4072main () 4073{ 4074 4075 ; 4076 return 0; 4077} 4078_ACEOF 4079if ac_fn_c_try_compile "$LINENO"; then : 4080 ac_cv_prog_cc_g=yes 4081fi 4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4083fi 4084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4085fi 4086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4087 ac_c_werror_flag=$ac_save_c_werror_flag 4088fi 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4090$as_echo "$ac_cv_prog_cc_g" >&6; } 4091if test "$ac_test_CFLAGS" = set; then 4092 CFLAGS=$ac_save_CFLAGS 4093elif test $ac_cv_prog_cc_g = yes; then 4094 if test "$GCC" = yes; then 4095 CFLAGS="-g -O2" 4096 else 4097 CFLAGS="-g" 4098 fi 4099else 4100 if test "$GCC" = yes; then 4101 CFLAGS="-O2" 4102 else 4103 CFLAGS= 4104 fi 4105fi 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4107$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4108if ${ac_cv_prog_cc_c89+:} false; then : 4109 $as_echo_n "(cached) " >&6 4110else 4111 ac_cv_prog_cc_c89=no 4112ac_save_CC=$CC 4113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4114/* end confdefs.h. */ 4115#include <stdarg.h> 4116#include <stdio.h> 4117struct stat; 4118/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4119struct buf { int x; }; 4120FILE * (*rcsopen) (struct buf *, struct stat *, int); 4121static char *e (p, i) 4122 char **p; 4123 int i; 4124{ 4125 return p[i]; 4126} 4127static char *f (char * (*g) (char **, int), char **p, ...) 4128{ 4129 char *s; 4130 va_list v; 4131 va_start (v,p); 4132 s = g (p, va_arg (v,int)); 4133 va_end (v); 4134 return s; 4135} 4136 4137/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4138 function prototypes and stuff, but not '\xHH' hex character constants. 4139 These don't provoke an error unfortunately, instead are silently treated 4140 as 'x'. The following induces an error, until -std is added to get 4141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4142 array size at least. It's necessary to write '\x00'==0 to get something 4143 that's true only with -std. */ 4144int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4145 4146/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4147 inside strings and character constants. */ 4148#define FOO(x) 'x' 4149int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4150 4151int test (int i, double x); 4152struct s1 {int (*f) (int a);}; 4153struct s2 {int (*f) (double a);}; 4154int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4155int argc; 4156char **argv; 4157int 4158main () 4159{ 4160return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4161 ; 4162 return 0; 4163} 4164_ACEOF 4165for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4166 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4167do 4168 CC="$ac_save_CC $ac_arg" 4169 if ac_fn_c_try_compile "$LINENO"; then : 4170 ac_cv_prog_cc_c89=$ac_arg 4171fi 4172rm -f core conftest.err conftest.$ac_objext 4173 test "x$ac_cv_prog_cc_c89" != "xno" && break 4174done 4175rm -f conftest.$ac_ext 4176CC=$ac_save_CC 4177 4178fi 4179# AC_CACHE_VAL 4180case "x$ac_cv_prog_cc_c89" in 4181 x) 4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4183$as_echo "none needed" >&6; } ;; 4184 xno) 4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4186$as_echo "unsupported" >&6; } ;; 4187 *) 4188 CC="$CC $ac_cv_prog_cc_c89" 4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4190$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4191esac 4192if test "x$ac_cv_prog_cc_c89" != xno; then : 4193 4194fi 4195 4196ac_ext=c 4197ac_cpp='$CPP $CPPFLAGS' 4198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4200ac_compiler_gnu=$ac_cv_c_compiler_gnu 4201 4202ac_ext=c 4203ac_cpp='$CPP $CPPFLAGS' 4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4206ac_compiler_gnu=$ac_cv_c_compiler_gnu 4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4208$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4209if ${am_cv_prog_cc_c_o+:} false; then : 4210 $as_echo_n "(cached) " >&6 4211else 4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4213/* end confdefs.h. */ 4214 4215int 4216main () 4217{ 4218 4219 ; 4220 return 0; 4221} 4222_ACEOF 4223 # Make sure it works both with $CC and with simple cc. 4224 # Following AC_PROG_CC_C_O, we do the test twice because some 4225 # compilers refuse to overwrite an existing .o file with -o, 4226 # though they will create one. 4227 am_cv_prog_cc_c_o=yes 4228 for am_i in 1 2; do 4229 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4230 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4231 ac_status=$? 4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4233 (exit $ac_status); } \ 4234 && test -f conftest2.$ac_objext; then 4235 : OK 4236 else 4237 am_cv_prog_cc_c_o=no 4238 break 4239 fi 4240 done 4241 rm -f core conftest* 4242 unset am_i 4243fi 4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4245$as_echo "$am_cv_prog_cc_c_o" >&6; } 4246if test "$am_cv_prog_cc_c_o" != yes; then 4247 # Losing compiler, so override with the script. 4248 # FIXME: It is wrong to rewrite CC. 4249 # But if we don't then we get into trouble of one sort or another. 4250 # A longer-term fix would be to have automake use am__CC in this case, 4251 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4252 CC="$am_aux_dir/compile $CC" 4253fi 4254ac_ext=c 4255ac_cpp='$CPP $CPPFLAGS' 4256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4258ac_compiler_gnu=$ac_cv_c_compiler_gnu 4259 4260 4261depcc="$CC" am_compiler_list= 4262 4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4264$as_echo_n "checking dependency style of $depcc... " >&6; } 4265if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4266 $as_echo_n "(cached) " >&6 4267else 4268 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4269 # We make a subdir and do the tests there. Otherwise we can end up 4270 # making bogus files that we don't know about and never remove. For 4271 # instance it was reported that on HP-UX the gcc test will end up 4272 # making a dummy file named 'D' -- because '-MD' means "put the output 4273 # in D". 4274 rm -rf conftest.dir 4275 mkdir conftest.dir 4276 # Copy depcomp to subdir because otherwise we won't find it if we're 4277 # using a relative directory. 4278 cp "$am_depcomp" conftest.dir 4279 cd conftest.dir 4280 # We will build objects and dependencies in a subdirectory because 4281 # it helps to detect inapplicable dependency modes. For instance 4282 # both Tru64's cc and ICC support -MD to output dependencies as a 4283 # side effect of compilation, but ICC will put the dependencies in 4284 # the current directory while Tru64 will put them in the object 4285 # directory. 4286 mkdir sub 4287 4288 am_cv_CC_dependencies_compiler_type=none 4289 if test "$am_compiler_list" = ""; then 4290 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4291 fi 4292 am__universal=false 4293 case " $depcc " in #( 4294 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4295 esac 4296 4297 for depmode in $am_compiler_list; do 4298 # Setup a source with many dependencies, because some compilers 4299 # like to wrap large dependency lists on column 80 (with \), and 4300 # we should not choose a depcomp mode which is confused by this. 4301 # 4302 # We need to recreate these files for each test, as the compiler may 4303 # overwrite some of them when testing with obscure command lines. 4304 # This happens at least with the AIX C compiler. 4305 : > sub/conftest.c 4306 for i in 1 2 3 4 5 6; do 4307 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4308 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4309 # Solaris 10 /bin/sh. 4310 echo '/* dummy */' > sub/conftst$i.h 4311 done 4312 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4313 4314 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4315 # mode. It turns out that the SunPro C++ compiler does not properly 4316 # handle '-M -o', and we need to detect this. Also, some Intel 4317 # versions had trouble with output in subdirs. 4318 am__obj=sub/conftest.${OBJEXT-o} 4319 am__minus_obj="-o $am__obj" 4320 case $depmode in 4321 gcc) 4322 # This depmode causes a compiler race in universal mode. 4323 test "$am__universal" = false || continue 4324 ;; 4325 nosideeffect) 4326 # After this tag, mechanisms are not by side-effect, so they'll 4327 # only be used when explicitly requested. 4328 if test "x$enable_dependency_tracking" = xyes; then 4329 continue 4330 else 4331 break 4332 fi 4333 ;; 4334 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4335 # This compiler won't grok '-c -o', but also, the minuso test has 4336 # not run yet. These depmodes are late enough in the game, and 4337 # so weak that their functioning should not be impacted. 4338 am__obj=conftest.${OBJEXT-o} 4339 am__minus_obj= 4340 ;; 4341 none) break ;; 4342 esac 4343 if depmode=$depmode \ 4344 source=sub/conftest.c object=$am__obj \ 4345 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4346 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4347 >/dev/null 2>conftest.err && 4348 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4349 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4350 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4351 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4352 # icc doesn't choke on unknown options, it will just issue warnings 4353 # or remarks (even with -Werror). So we grep stderr for any message 4354 # that says an option was ignored or not supported. 4355 # When given -MP, icc 7.0 and 7.1 complain thusly: 4356 # icc: Command line warning: ignoring option '-M'; no argument required 4357 # The diagnosis changed in icc 8.0: 4358 # icc: Command line remark: option '-MP' not supported 4359 if (grep 'ignoring option' conftest.err || 4360 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4361 am_cv_CC_dependencies_compiler_type=$depmode 4362 break 4363 fi 4364 fi 4365 done 4366 4367 cd .. 4368 rm -rf conftest.dir 4369else 4370 am_cv_CC_dependencies_compiler_type=none 4371fi 4372 4373fi 4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4375$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4376CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4377 4378 if 4379 test "x$enable_dependency_tracking" != xno \ 4380 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4381 am__fastdepCC_TRUE= 4382 am__fastdepCC_FALSE='#' 4383else 4384 am__fastdepCC_TRUE='#' 4385 am__fastdepCC_FALSE= 4386fi 4387 4388 4389 4390ac_ext=c 4391ac_cpp='$CPP $CPPFLAGS' 4392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4394ac_compiler_gnu=$ac_cv_c_compiler_gnu 4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4396$as_echo_n "checking how to run the C preprocessor... " >&6; } 4397# On Suns, sometimes $CPP names a directory. 4398if test -n "$CPP" && test -d "$CPP"; then 4399 CPP= 4400fi 4401if test -z "$CPP"; then 4402 if ${ac_cv_prog_CPP+:} false; then : 4403 $as_echo_n "(cached) " >&6 4404else 4405 # Double quotes because CPP needs to be expanded 4406 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4407 do 4408 ac_preproc_ok=false 4409for ac_c_preproc_warn_flag in '' yes 4410do 4411 # Use a header file that comes with gcc, so configuring glibc 4412 # with a fresh cross-compiler works. 4413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4414 # <limits.h> exists even on freestanding compilers. 4415 # On the NeXT, cc -E runs the code through the compiler's parser, 4416 # not just through cpp. "Syntax error" is here to catch this case. 4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4418/* end confdefs.h. */ 4419#ifdef __STDC__ 4420# include <limits.h> 4421#else 4422# include <assert.h> 4423#endif 4424 Syntax error 4425_ACEOF 4426if ac_fn_c_try_cpp "$LINENO"; then : 4427 4428else 4429 # Broken: fails on valid input. 4430continue 4431fi 4432rm -f conftest.err conftest.i conftest.$ac_ext 4433 4434 # OK, works on sane cases. Now check whether nonexistent headers 4435 # can be detected and how. 4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4437/* end confdefs.h. */ 4438#include <ac_nonexistent.h> 4439_ACEOF 4440if ac_fn_c_try_cpp "$LINENO"; then : 4441 # Broken: success on invalid input. 4442continue 4443else 4444 # Passes both tests. 4445ac_preproc_ok=: 4446break 4447fi 4448rm -f conftest.err conftest.i conftest.$ac_ext 4449 4450done 4451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4452rm -f conftest.i conftest.err conftest.$ac_ext 4453if $ac_preproc_ok; then : 4454 break 4455fi 4456 4457 done 4458 ac_cv_prog_CPP=$CPP 4459 4460fi 4461 CPP=$ac_cv_prog_CPP 4462else 4463 ac_cv_prog_CPP=$CPP 4464fi 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4466$as_echo "$CPP" >&6; } 4467ac_preproc_ok=false 4468for ac_c_preproc_warn_flag in '' yes 4469do 4470 # Use a header file that comes with gcc, so configuring glibc 4471 # with a fresh cross-compiler works. 4472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4473 # <limits.h> exists even on freestanding compilers. 4474 # On the NeXT, cc -E runs the code through the compiler's parser, 4475 # not just through cpp. "Syntax error" is here to catch this case. 4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4477/* end confdefs.h. */ 4478#ifdef __STDC__ 4479# include <limits.h> 4480#else 4481# include <assert.h> 4482#endif 4483 Syntax error 4484_ACEOF 4485if ac_fn_c_try_cpp "$LINENO"; then : 4486 4487else 4488 # Broken: fails on valid input. 4489continue 4490fi 4491rm -f conftest.err conftest.i conftest.$ac_ext 4492 4493 # OK, works on sane cases. Now check whether nonexistent headers 4494 # can be detected and how. 4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4496/* end confdefs.h. */ 4497#include <ac_nonexistent.h> 4498_ACEOF 4499if ac_fn_c_try_cpp "$LINENO"; then : 4500 # Broken: success on invalid input. 4501continue 4502else 4503 # Passes both tests. 4504ac_preproc_ok=: 4505break 4506fi 4507rm -f conftest.err conftest.i conftest.$ac_ext 4508 4509done 4510# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4511rm -f conftest.i conftest.err conftest.$ac_ext 4512if $ac_preproc_ok; then : 4513 4514else 4515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4517as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4518See \`config.log' for more details" "$LINENO" 5; } 4519fi 4520 4521ac_ext=c 4522ac_cpp='$CPP $CPPFLAGS' 4523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4525ac_compiler_gnu=$ac_cv_c_compiler_gnu 4526 4527 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4529$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4530if ${ac_cv_path_GREP+:} false; then : 4531 $as_echo_n "(cached) " >&6 4532else 4533 if test -z "$GREP"; then 4534 ac_path_GREP_found=false 4535 # Loop through the user's path and test for each of PROGNAME-LIST 4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4537for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4538do 4539 IFS=$as_save_IFS 4540 test -z "$as_dir" && as_dir=. 4541 for ac_prog in grep ggrep; do 4542 for ac_exec_ext in '' $ac_executable_extensions; do 4543 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4544 as_fn_executable_p "$ac_path_GREP" || continue 4545# Check for GNU ac_path_GREP and select it if it is found. 4546 # Check for GNU $ac_path_GREP 4547case `"$ac_path_GREP" --version 2>&1` in 4548*GNU*) 4549 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4550*) 4551 ac_count=0 4552 $as_echo_n 0123456789 >"conftest.in" 4553 while : 4554 do 4555 cat "conftest.in" "conftest.in" >"conftest.tmp" 4556 mv "conftest.tmp" "conftest.in" 4557 cp "conftest.in" "conftest.nl" 4558 $as_echo 'GREP' >> "conftest.nl" 4559 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4561 as_fn_arith $ac_count + 1 && ac_count=$as_val 4562 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4563 # Best one so far, save it but keep looking for a better one 4564 ac_cv_path_GREP="$ac_path_GREP" 4565 ac_path_GREP_max=$ac_count 4566 fi 4567 # 10*(2^10) chars as input seems more than enough 4568 test $ac_count -gt 10 && break 4569 done 4570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4571esac 4572 4573 $ac_path_GREP_found && break 3 4574 done 4575 done 4576 done 4577IFS=$as_save_IFS 4578 if test -z "$ac_cv_path_GREP"; then 4579 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4580 fi 4581else 4582 ac_cv_path_GREP=$GREP 4583fi 4584 4585fi 4586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4587$as_echo "$ac_cv_path_GREP" >&6; } 4588 GREP="$ac_cv_path_GREP" 4589 4590 4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4592$as_echo_n "checking for egrep... " >&6; } 4593if ${ac_cv_path_EGREP+:} false; then : 4594 $as_echo_n "(cached) " >&6 4595else 4596 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4597 then ac_cv_path_EGREP="$GREP -E" 4598 else 4599 if test -z "$EGREP"; then 4600 ac_path_EGREP_found=false 4601 # Loop through the user's path and test for each of PROGNAME-LIST 4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4603for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4604do 4605 IFS=$as_save_IFS 4606 test -z "$as_dir" && as_dir=. 4607 for ac_prog in egrep; do 4608 for ac_exec_ext in '' $ac_executable_extensions; do 4609 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4610 as_fn_executable_p "$ac_path_EGREP" || continue 4611# Check for GNU ac_path_EGREP and select it if it is found. 4612 # Check for GNU $ac_path_EGREP 4613case `"$ac_path_EGREP" --version 2>&1` in 4614*GNU*) 4615 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4616*) 4617 ac_count=0 4618 $as_echo_n 0123456789 >"conftest.in" 4619 while : 4620 do 4621 cat "conftest.in" "conftest.in" >"conftest.tmp" 4622 mv "conftest.tmp" "conftest.in" 4623 cp "conftest.in" "conftest.nl" 4624 $as_echo 'EGREP' >> "conftest.nl" 4625 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4626 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4627 as_fn_arith $ac_count + 1 && ac_count=$as_val 4628 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4629 # Best one so far, save it but keep looking for a better one 4630 ac_cv_path_EGREP="$ac_path_EGREP" 4631 ac_path_EGREP_max=$ac_count 4632 fi 4633 # 10*(2^10) chars as input seems more than enough 4634 test $ac_count -gt 10 && break 4635 done 4636 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4637esac 4638 4639 $ac_path_EGREP_found && break 3 4640 done 4641 done 4642 done 4643IFS=$as_save_IFS 4644 if test -z "$ac_cv_path_EGREP"; then 4645 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4646 fi 4647else 4648 ac_cv_path_EGREP=$EGREP 4649fi 4650 4651 fi 4652fi 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4654$as_echo "$ac_cv_path_EGREP" >&6; } 4655 EGREP="$ac_cv_path_EGREP" 4656 4657 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4659$as_echo_n "checking for ANSI C header files... " >&6; } 4660if ${ac_cv_header_stdc+:} false; then : 4661 $as_echo_n "(cached) " >&6 4662else 4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4664/* end confdefs.h. */ 4665#include <stdlib.h> 4666#include <stdarg.h> 4667#include <string.h> 4668#include <float.h> 4669 4670int 4671main () 4672{ 4673 4674 ; 4675 return 0; 4676} 4677_ACEOF 4678if ac_fn_c_try_compile "$LINENO"; then : 4679 ac_cv_header_stdc=yes 4680else 4681 ac_cv_header_stdc=no 4682fi 4683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4684 4685if test $ac_cv_header_stdc = yes; then 4686 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4688/* end confdefs.h. */ 4689#include <string.h> 4690 4691_ACEOF 4692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4693 $EGREP "memchr" >/dev/null 2>&1; then : 4694 4695else 4696 ac_cv_header_stdc=no 4697fi 4698rm -f conftest* 4699 4700fi 4701 4702if test $ac_cv_header_stdc = yes; then 4703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4705/* end confdefs.h. */ 4706#include <stdlib.h> 4707 4708_ACEOF 4709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4710 $EGREP "free" >/dev/null 2>&1; then : 4711 4712else 4713 ac_cv_header_stdc=no 4714fi 4715rm -f conftest* 4716 4717fi 4718 4719if test $ac_cv_header_stdc = yes; then 4720 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4721 if test "$cross_compiling" = yes; then : 4722 : 4723else 4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4725/* end confdefs.h. */ 4726#include <ctype.h> 4727#include <stdlib.h> 4728#if ((' ' & 0x0FF) == 0x020) 4729# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4730# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4731#else 4732# define ISLOWER(c) \ 4733 (('a' <= (c) && (c) <= 'i') \ 4734 || ('j' <= (c) && (c) <= 'r') \ 4735 || ('s' <= (c) && (c) <= 'z')) 4736# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4737#endif 4738 4739#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4740int 4741main () 4742{ 4743 int i; 4744 for (i = 0; i < 256; i++) 4745 if (XOR (islower (i), ISLOWER (i)) 4746 || toupper (i) != TOUPPER (i)) 4747 return 2; 4748 return 0; 4749} 4750_ACEOF 4751if ac_fn_c_try_run "$LINENO"; then : 4752 4753else 4754 ac_cv_header_stdc=no 4755fi 4756rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4757 conftest.$ac_objext conftest.beam conftest.$ac_ext 4758fi 4759 4760fi 4761fi 4762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4763$as_echo "$ac_cv_header_stdc" >&6; } 4764if test $ac_cv_header_stdc = yes; then 4765 4766$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4767 4768fi 4769 4770# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4771for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4772 inttypes.h stdint.h unistd.h 4773do : 4774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4775ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4776" 4777if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4778 cat >>confdefs.h <<_ACEOF 4779#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4780_ACEOF 4781 4782fi 4783 4784done 4785 4786 4787 4788 4789 4790 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4791if test "x$ac_cv_header_minix_config_h" = xyes; then : 4792 MINIX=yes 4793else 4794 MINIX= 4795fi 4796 4797 4798 if test "$MINIX" = yes; then 4799 4800$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4801 4802 4803$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4804 4805 4806$as_echo "#define _MINIX 1" >>confdefs.h 4807 4808 fi 4809 4810 case "$host_os" in 4811 hpux*) 4812 4813$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 4814 4815 ;; 4816 esac 4817 4818 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4820$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4821if ${ac_cv_safe_to_define___extensions__+:} false; then : 4822 $as_echo_n "(cached) " >&6 4823else 4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4825/* end confdefs.h. */ 4826 4827# define __EXTENSIONS__ 1 4828 $ac_includes_default 4829int 4830main () 4831{ 4832 4833 ; 4834 return 0; 4835} 4836_ACEOF 4837if ac_fn_c_try_compile "$LINENO"; then : 4838 ac_cv_safe_to_define___extensions__=yes 4839else 4840 ac_cv_safe_to_define___extensions__=no 4841fi 4842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4843fi 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4845$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4846 test $ac_cv_safe_to_define___extensions__ = yes && 4847 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4848 4849 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4850 4851 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4852 4853 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4854 4855 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4856 4857 4858 4859 4860 4861 4862 4863#case "$host_os" in 4864# 4865# osf5*) 4866# CFLAGS="$CFLAGS -D_OSF_SOURCE" 4867# ;; 4868#esac 4869 4870 4871 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4873$as_echo_n "checking whether ln -s works... " >&6; } 4874LN_S=$as_ln_s 4875if test "$LN_S" = "ln -s"; then 4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4877$as_echo "yes" >&6; } 4878else 4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4880$as_echo "no, using $LN_S" >&6; } 4881fi 4882 4883# AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE 4884 4885# AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older 4886# versions 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4888$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4889if ${ac_cv_path_SED+:} false; then : 4890 $as_echo_n "(cached) " >&6 4891else 4892 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4893 for ac_i in 1 2 3 4 5 6 7; do 4894 ac_script="$ac_script$as_nl$ac_script" 4895 done 4896 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4897 { ac_script=; unset ac_script;} 4898 if test -z "$SED"; then 4899 ac_path_SED_found=false 4900 # Loop through the user's path and test for each of PROGNAME-LIST 4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4902for as_dir in $PATH 4903do 4904 IFS=$as_save_IFS 4905 test -z "$as_dir" && as_dir=. 4906 for ac_prog in sed gsed; do 4907 for ac_exec_ext in '' $ac_executable_extensions; do 4908 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4909 as_fn_executable_p "$ac_path_SED" || continue 4910# Check for GNU ac_path_SED and select it if it is found. 4911 # Check for GNU $ac_path_SED 4912case `"$ac_path_SED" --version 2>&1` in 4913*GNU*) 4914 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4915*) 4916 ac_count=0 4917 $as_echo_n 0123456789 >"conftest.in" 4918 while : 4919 do 4920 cat "conftest.in" "conftest.in" >"conftest.tmp" 4921 mv "conftest.tmp" "conftest.in" 4922 cp "conftest.in" "conftest.nl" 4923 $as_echo '' >> "conftest.nl" 4924 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4926 as_fn_arith $ac_count + 1 && ac_count=$as_val 4927 if test $ac_count -gt ${ac_path_SED_max-0}; then 4928 # Best one so far, save it but keep looking for a better one 4929 ac_cv_path_SED="$ac_path_SED" 4930 ac_path_SED_max=$ac_count 4931 fi 4932 # 10*(2^10) chars as input seems more than enough 4933 test $ac_count -gt 10 && break 4934 done 4935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4936esac 4937 4938 $ac_path_SED_found && break 3 4939 done 4940 done 4941 done 4942IFS=$as_save_IFS 4943 if test -z "$ac_cv_path_SED"; then 4944 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4945 fi 4946else 4947 ac_cv_path_SED=$SED 4948fi 4949 4950fi 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4952$as_echo "$ac_cv_path_SED" >&6; } 4953 SED="$ac_cv_path_SED" 4954 rm -f conftest.sed 4955 4956 4957if test $ac_cv_c_compiler_gnu = yes; then 4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 4959$as_echo_n "checking whether $CC needs -traditional... " >&6; } 4960if ${ac_cv_prog_gcc_traditional+:} false; then : 4961 $as_echo_n "(cached) " >&6 4962else 4963 ac_pattern="Autoconf.*'x'" 4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4965/* end confdefs.h. */ 4966#include <sgtty.h> 4967Autoconf TIOCGETP 4968_ACEOF 4969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4970 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4971 ac_cv_prog_gcc_traditional=yes 4972else 4973 ac_cv_prog_gcc_traditional=no 4974fi 4975rm -f conftest* 4976 4977 4978 if test $ac_cv_prog_gcc_traditional = no; then 4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4980/* end confdefs.h. */ 4981#include <termio.h> 4982Autoconf TCGETA 4983_ACEOF 4984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4985 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4986 ac_cv_prog_gcc_traditional=yes 4987fi 4988rm -f conftest* 4989 4990 fi 4991fi 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 4993$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 4994 if test $ac_cv_prog_gcc_traditional = yes; then 4995 CC="$CC -traditional" 4996 fi 4997fi 4998 4999 5000# We need to test for at least gcc 2.95 here, because older versions don't 5001# have -fno-strict-aliasing 5002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5003/* end confdefs.h. */ 5004 5005int 5006main () 5007{ 5008 5009#if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95) 5010#error 5011#endif 5012 ; 5013 return 0; 5014} 5015_ACEOF 5016if ac_fn_c_try_compile "$LINENO"; then : 5017 have_gcc295=yes 5018else 5019 have_gcc295=no 5020fi 5021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5022 5023if test "$GCC" = "yes" ; then 5024 # Enable many gcc warnings by default... 5025 CFLAGS="$CFLAGS -Wall" 5026 # And disable the strict-aliasing optimization, since it breaks 5027 # our sockaddr-handling code in strange ways. 5028 if test x$have_gcc295 = xyes; then 5029 CFLAGS="$CFLAGS -fno-strict-aliasing" 5030 fi 5031fi 5032 5033# OS X Lion started deprecating the system openssl. Let's just disable 5034# all deprecation warnings on OS X. 5035case "$host_os" in 5036 5037 darwin*) 5038 CFLAGS="$CFLAGS -Wno-deprecated-declarations" 5039 ;; 5040esac 5041 5042# Check whether --enable-gcc-warnings was given. 5043if test "${enable_gcc_warnings+set}" = set; then : 5044 enableval=$enable_gcc_warnings; 5045fi 5046 5047 5048# Check whether --enable-gcc-hardening was given. 5049if test "${enable_gcc_hardening+set}" = set; then : 5050 enableval=$enable_gcc_hardening; if test x$enableval = xyes; then 5051 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all" 5052 CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector" 5053 CFLAGS="$CFLAGS --param ssp-buffer-size=1" 5054fi 5055fi 5056 5057 5058# Check whether --enable-thread-support was given. 5059if test "${enable_thread_support+set}" = set; then : 5060 enableval=$enable_thread_support; 5061else 5062 enable_thread_support=yes 5063fi 5064 5065# Check whether --enable-malloc-replacement was given. 5066if test "${enable_malloc_replacement+set}" = set; then : 5067 enableval=$enable_malloc_replacement; 5068else 5069 enable_malloc_replacement=yes 5070fi 5071 5072# Check whether --enable-openssl was given. 5073if test "${enable_openssl+set}" = set; then : 5074 enableval=$enable_openssl; 5075else 5076 enable_openssl=yes 5077fi 5078 5079# Check whether --enable-debug-mode was given. 5080if test "${enable_debug_mode+set}" = set; then : 5081 enableval=$enable_debug_mode; 5082else 5083 enable_debug_mode=yes 5084fi 5085 5086# Check whether --enable-libevent-install was given. 5087if test "${enable_libevent_install+set}" = set; then : 5088 enableval=$enable_libevent_install; 5089else 5090 enable_libevent_install=yes 5091fi 5092 5093# Check whether --enable-libevent-regress was given. 5094if test "${enable_libevent_regress+set}" = set; then : 5095 enableval=$enable_libevent_regress; 5096else 5097 enable_libevent_regress=yes 5098fi 5099 5100# Check whether --enable-samples was given. 5101if test "${enable_samples+set}" = set; then : 5102 enableval=$enable_samples; 5103else 5104 enable_samples=yes 5105fi 5106 5107# Check whether --enable-function-sections was given. 5108if test "${enable_function_sections+set}" = set; then : 5109 enableval=$enable_function_sections; 5110else 5111 enable_function_sections=no 5112fi 5113 5114# Check whether --enable-verbose-debug was given. 5115if test "${enable_verbose_debug+set}" = set; then : 5116 enableval=$enable_verbose_debug; 5117else 5118 enable_verbose_debug=no 5119fi 5120 5121 5122 5123case `pwd` in 5124 *\ * | *\ *) 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5126$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5127esac 5128 5129 5130 5131macro_version='2.4.2' 5132macro_revision='1.3337' 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146ltmain="$ac_aux_dir/ltmain.sh" 5147 5148# Backslashify metacharacters that are still active within 5149# double-quoted strings. 5150sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5151 5152# Same as above, but do not quote variable references. 5153double_quote_subst='s/\(["`\\]\)/\\\1/g' 5154 5155# Sed substitution to delay expansion of an escaped shell variable in a 5156# double_quote_subst'ed string. 5157delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5158 5159# Sed substitution to delay expansion of an escaped single quote. 5160delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5161 5162# Sed substitution to avoid accidental globbing in evaled expressions 5163no_glob_subst='s/\*/\\\*/g' 5164 5165ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5166ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5167ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5168 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5170$as_echo_n "checking how to print strings... " >&6; } 5171# Test print first, because it will be a builtin if present. 5172if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5173 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5174 ECHO='print -r --' 5175elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5176 ECHO='printf %s\n' 5177else 5178 # Use this function as a fallback that always works. 5179 func_fallback_echo () 5180 { 5181 eval 'cat <<_LTECHO_EOF 5182$1 5183_LTECHO_EOF' 5184 } 5185 ECHO='func_fallback_echo' 5186fi 5187 5188# func_echo_all arg... 5189# Invoke $ECHO with all args, space-separated. 5190func_echo_all () 5191{ 5192 $ECHO "" 5193} 5194 5195case "$ECHO" in 5196 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5197$as_echo "printf" >&6; } ;; 5198 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5199$as_echo "print -r" >&6; } ;; 5200 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5201$as_echo "cat" >&6; } ;; 5202esac 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5218$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5219if ${ac_cv_path_SED+:} false; then : 5220 $as_echo_n "(cached) " >&6 5221else 5222 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5223 for ac_i in 1 2 3 4 5 6 7; do 5224 ac_script="$ac_script$as_nl$ac_script" 5225 done 5226 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5227 { ac_script=; unset ac_script;} 5228 if test -z "$SED"; then 5229 ac_path_SED_found=false 5230 # Loop through the user's path and test for each of PROGNAME-LIST 5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5232for as_dir in $PATH 5233do 5234 IFS=$as_save_IFS 5235 test -z "$as_dir" && as_dir=. 5236 for ac_prog in sed gsed; do 5237 for ac_exec_ext in '' $ac_executable_extensions; do 5238 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5239 as_fn_executable_p "$ac_path_SED" || continue 5240# Check for GNU ac_path_SED and select it if it is found. 5241 # Check for GNU $ac_path_SED 5242case `"$ac_path_SED" --version 2>&1` in 5243*GNU*) 5244 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5245*) 5246 ac_count=0 5247 $as_echo_n 0123456789 >"conftest.in" 5248 while : 5249 do 5250 cat "conftest.in" "conftest.in" >"conftest.tmp" 5251 mv "conftest.tmp" "conftest.in" 5252 cp "conftest.in" "conftest.nl" 5253 $as_echo '' >> "conftest.nl" 5254 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5256 as_fn_arith $ac_count + 1 && ac_count=$as_val 5257 if test $ac_count -gt ${ac_path_SED_max-0}; then 5258 # Best one so far, save it but keep looking for a better one 5259 ac_cv_path_SED="$ac_path_SED" 5260 ac_path_SED_max=$ac_count 5261 fi 5262 # 10*(2^10) chars as input seems more than enough 5263 test $ac_count -gt 10 && break 5264 done 5265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5266esac 5267 5268 $ac_path_SED_found && break 3 5269 done 5270 done 5271 done 5272IFS=$as_save_IFS 5273 if test -z "$ac_cv_path_SED"; then 5274 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5275 fi 5276else 5277 ac_cv_path_SED=$SED 5278fi 5279 5280fi 5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5282$as_echo "$ac_cv_path_SED" >&6; } 5283 SED="$ac_cv_path_SED" 5284 rm -f conftest.sed 5285 5286test -z "$SED" && SED=sed 5287Xsed="$SED -e 1s/^X//" 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5300$as_echo_n "checking for fgrep... " >&6; } 5301if ${ac_cv_path_FGREP+:} false; then : 5302 $as_echo_n "(cached) " >&6 5303else 5304 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5305 then ac_cv_path_FGREP="$GREP -F" 5306 else 5307 if test -z "$FGREP"; then 5308 ac_path_FGREP_found=false 5309 # Loop through the user's path and test for each of PROGNAME-LIST 5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5311for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5312do 5313 IFS=$as_save_IFS 5314 test -z "$as_dir" && as_dir=. 5315 for ac_prog in fgrep; do 5316 for ac_exec_ext in '' $ac_executable_extensions; do 5317 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5318 as_fn_executable_p "$ac_path_FGREP" || continue 5319# Check for GNU ac_path_FGREP and select it if it is found. 5320 # Check for GNU $ac_path_FGREP 5321case `"$ac_path_FGREP" --version 2>&1` in 5322*GNU*) 5323 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5324*) 5325 ac_count=0 5326 $as_echo_n 0123456789 >"conftest.in" 5327 while : 5328 do 5329 cat "conftest.in" "conftest.in" >"conftest.tmp" 5330 mv "conftest.tmp" "conftest.in" 5331 cp "conftest.in" "conftest.nl" 5332 $as_echo 'FGREP' >> "conftest.nl" 5333 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5335 as_fn_arith $ac_count + 1 && ac_count=$as_val 5336 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5337 # Best one so far, save it but keep looking for a better one 5338 ac_cv_path_FGREP="$ac_path_FGREP" 5339 ac_path_FGREP_max=$ac_count 5340 fi 5341 # 10*(2^10) chars as input seems more than enough 5342 test $ac_count -gt 10 && break 5343 done 5344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5345esac 5346 5347 $ac_path_FGREP_found && break 3 5348 done 5349 done 5350 done 5351IFS=$as_save_IFS 5352 if test -z "$ac_cv_path_FGREP"; then 5353 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5354 fi 5355else 5356 ac_cv_path_FGREP=$FGREP 5357fi 5358 5359 fi 5360fi 5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5362$as_echo "$ac_cv_path_FGREP" >&6; } 5363 FGREP="$ac_cv_path_FGREP" 5364 5365 5366test -z "$GREP" && GREP=grep 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386# Check whether --with-gnu-ld was given. 5387if test "${with_gnu_ld+set}" = set; then : 5388 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5389else 5390 with_gnu_ld=no 5391fi 5392 5393ac_prog=ld 5394if test "$GCC" = yes; then 5395 # Check if gcc -print-prog-name=ld gives a path. 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5397$as_echo_n "checking for ld used by $CC... " >&6; } 5398 case $host in 5399 *-*-mingw*) 5400 # gcc leaves a trailing carriage return which upsets mingw 5401 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5402 *) 5403 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5404 esac 5405 case $ac_prog in 5406 # Accept absolute paths. 5407 [\\/]* | ?:[\\/]*) 5408 re_direlt='/[^/][^/]*/\.\./' 5409 # Canonicalize the pathname of ld 5410 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5411 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5412 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5413 done 5414 test -z "$LD" && LD="$ac_prog" 5415 ;; 5416 "") 5417 # If it fails, then pretend we aren't using GCC. 5418 ac_prog=ld 5419 ;; 5420 *) 5421 # If it is relative, then search for the first ld in PATH. 5422 with_gnu_ld=unknown 5423 ;; 5424 esac 5425elif test "$with_gnu_ld" = yes; then 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5427$as_echo_n "checking for GNU ld... " >&6; } 5428else 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5430$as_echo_n "checking for non-GNU ld... " >&6; } 5431fi 5432if ${lt_cv_path_LD+:} false; then : 5433 $as_echo_n "(cached) " >&6 5434else 5435 if test -z "$LD"; then 5436 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5437 for ac_dir in $PATH; do 5438 IFS="$lt_save_ifs" 5439 test -z "$ac_dir" && ac_dir=. 5440 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5441 lt_cv_path_LD="$ac_dir/$ac_prog" 5442 # Check to see if the program is GNU ld. I'd rather use --version, 5443 # but apparently some variants of GNU ld only accept -v. 5444 # Break only if it was the GNU/non-GNU ld that we prefer. 5445 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5446 *GNU* | *'with BFD'*) 5447 test "$with_gnu_ld" != no && break 5448 ;; 5449 *) 5450 test "$with_gnu_ld" != yes && break 5451 ;; 5452 esac 5453 fi 5454 done 5455 IFS="$lt_save_ifs" 5456else 5457 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5458fi 5459fi 5460 5461LD="$lt_cv_path_LD" 5462if test -n "$LD"; then 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5464$as_echo "$LD" >&6; } 5465else 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5467$as_echo "no" >&6; } 5468fi 5469test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5471$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5472if ${lt_cv_prog_gnu_ld+:} false; then : 5473 $as_echo_n "(cached) " >&6 5474else 5475 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5476case `$LD -v 2>&1 </dev/null` in 5477*GNU* | *'with BFD'*) 5478 lt_cv_prog_gnu_ld=yes 5479 ;; 5480*) 5481 lt_cv_prog_gnu_ld=no 5482 ;; 5483esac 5484fi 5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5486$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5487with_gnu_ld=$lt_cv_prog_gnu_ld 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5498$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5499if ${lt_cv_path_NM+:} false; then : 5500 $as_echo_n "(cached) " >&6 5501else 5502 if test -n "$NM"; then 5503 # Let the user override the test. 5504 lt_cv_path_NM="$NM" 5505else 5506 lt_nm_to_check="${ac_tool_prefix}nm" 5507 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5508 lt_nm_to_check="$lt_nm_to_check nm" 5509 fi 5510 for lt_tmp_nm in $lt_nm_to_check; do 5511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5512 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5513 IFS="$lt_save_ifs" 5514 test -z "$ac_dir" && ac_dir=. 5515 tmp_nm="$ac_dir/$lt_tmp_nm" 5516 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5517 # Check to see if the nm accepts a BSD-compat flag. 5518 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5519 # nm: unknown option "B" ignored 5520 # Tru64's nm complains that /dev/null is an invalid object file 5521 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5522 */dev/null* | *'Invalid file or object type'*) 5523 lt_cv_path_NM="$tmp_nm -B" 5524 break 5525 ;; 5526 *) 5527 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5528 */dev/null*) 5529 lt_cv_path_NM="$tmp_nm -p" 5530 break 5531 ;; 5532 *) 5533 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5534 continue # so that we can try to find one that supports BSD flags 5535 ;; 5536 esac 5537 ;; 5538 esac 5539 fi 5540 done 5541 IFS="$lt_save_ifs" 5542 done 5543 : ${lt_cv_path_NM=no} 5544fi 5545fi 5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5547$as_echo "$lt_cv_path_NM" >&6; } 5548if test "$lt_cv_path_NM" != "no"; then 5549 NM="$lt_cv_path_NM" 5550else 5551 # Didn't find any BSD compatible name lister, look for dumpbin. 5552 if test -n "$DUMPBIN"; then : 5553 # Let the user override the test. 5554 else 5555 if test -n "$ac_tool_prefix"; then 5556 for ac_prog in dumpbin "link -dump" 5557 do 5558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5559set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5561$as_echo_n "checking for $ac_word... " >&6; } 5562if ${ac_cv_prog_DUMPBIN+:} false; then : 5563 $as_echo_n "(cached) " >&6 5564else 5565 if test -n "$DUMPBIN"; then 5566 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5567else 5568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5569for as_dir in $PATH 5570do 5571 IFS=$as_save_IFS 5572 test -z "$as_dir" && as_dir=. 5573 for ac_exec_ext in '' $ac_executable_extensions; do 5574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5575 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5577 break 2 5578 fi 5579done 5580 done 5581IFS=$as_save_IFS 5582 5583fi 5584fi 5585DUMPBIN=$ac_cv_prog_DUMPBIN 5586if test -n "$DUMPBIN"; then 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5588$as_echo "$DUMPBIN" >&6; } 5589else 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5591$as_echo "no" >&6; } 5592fi 5593 5594 5595 test -n "$DUMPBIN" && break 5596 done 5597fi 5598if test -z "$DUMPBIN"; then 5599 ac_ct_DUMPBIN=$DUMPBIN 5600 for ac_prog in dumpbin "link -dump" 5601do 5602 # Extract the first word of "$ac_prog", so it can be a program name with args. 5603set dummy $ac_prog; ac_word=$2 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5605$as_echo_n "checking for $ac_word... " >&6; } 5606if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5607 $as_echo_n "(cached) " >&6 5608else 5609 if test -n "$ac_ct_DUMPBIN"; then 5610 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5611else 5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5613for as_dir in $PATH 5614do 5615 IFS=$as_save_IFS 5616 test -z "$as_dir" && as_dir=. 5617 for ac_exec_ext in '' $ac_executable_extensions; do 5618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5619 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5621 break 2 5622 fi 5623done 5624 done 5625IFS=$as_save_IFS 5626 5627fi 5628fi 5629ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5630if test -n "$ac_ct_DUMPBIN"; then 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5632$as_echo "$ac_ct_DUMPBIN" >&6; } 5633else 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5635$as_echo "no" >&6; } 5636fi 5637 5638 5639 test -n "$ac_ct_DUMPBIN" && break 5640done 5641 5642 if test "x$ac_ct_DUMPBIN" = x; then 5643 DUMPBIN=":" 5644 else 5645 case $cross_compiling:$ac_tool_warned in 5646yes:) 5647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5649ac_tool_warned=yes ;; 5650esac 5651 DUMPBIN=$ac_ct_DUMPBIN 5652 fi 5653fi 5654 5655 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5656 *COFF*) 5657 DUMPBIN="$DUMPBIN -symbols" 5658 ;; 5659 *) 5660 DUMPBIN=: 5661 ;; 5662 esac 5663 fi 5664 5665 if test "$DUMPBIN" != ":"; then 5666 NM="$DUMPBIN" 5667 fi 5668fi 5669test -z "$NM" && NM=nm 5670 5671 5672 5673 5674 5675 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5677$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5678if ${lt_cv_nm_interface+:} false; then : 5679 $as_echo_n "(cached) " >&6 5680else 5681 lt_cv_nm_interface="BSD nm" 5682 echo "int some_variable = 0;" > conftest.$ac_ext 5683 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5684 (eval "$ac_compile" 2>conftest.err) 5685 cat conftest.err >&5 5686 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5687 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5688 cat conftest.err >&5 5689 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5690 cat conftest.out >&5 5691 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5692 lt_cv_nm_interface="MS dumpbin" 5693 fi 5694 rm -f conftest* 5695fi 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5697$as_echo "$lt_cv_nm_interface" >&6; } 5698 5699# find the maximum length of command line arguments 5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5701$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5702if ${lt_cv_sys_max_cmd_len+:} false; then : 5703 $as_echo_n "(cached) " >&6 5704else 5705 i=0 5706 teststring="ABCD" 5707 5708 case $build_os in 5709 msdosdjgpp*) 5710 # On DJGPP, this test can blow up pretty badly due to problems in libc 5711 # (any single argument exceeding 2000 bytes causes a buffer overrun 5712 # during glob expansion). Even if it were fixed, the result of this 5713 # check would be larger than it should be. 5714 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5715 ;; 5716 5717 gnu*) 5718 # Under GNU Hurd, this test is not required because there is 5719 # no limit to the length of command line arguments. 5720 # Libtool will interpret -1 as no limit whatsoever 5721 lt_cv_sys_max_cmd_len=-1; 5722 ;; 5723 5724 cygwin* | mingw* | cegcc*) 5725 # On Win9x/ME, this test blows up -- it succeeds, but takes 5726 # about 5 minutes as the teststring grows exponentially. 5727 # Worse, since 9x/ME are not pre-emptively multitasking, 5728 # you end up with a "frozen" computer, even though with patience 5729 # the test eventually succeeds (with a max line length of 256k). 5730 # Instead, let's just punt: use the minimum linelength reported by 5731 # all of the supported platforms: 8192 (on NT/2K/XP). 5732 lt_cv_sys_max_cmd_len=8192; 5733 ;; 5734 5735 mint*) 5736 # On MiNT this can take a long time and run out of memory. 5737 lt_cv_sys_max_cmd_len=8192; 5738 ;; 5739 5740 amigaos*) 5741 # On AmigaOS with pdksh, this test takes hours, literally. 5742 # So we just punt and use a minimum line length of 8192. 5743 lt_cv_sys_max_cmd_len=8192; 5744 ;; 5745 5746 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5747 # This has been around since 386BSD, at least. Likely further. 5748 if test -x /sbin/sysctl; then 5749 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5750 elif test -x /usr/sbin/sysctl; then 5751 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5752 else 5753 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5754 fi 5755 # And add a safety zone 5756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5758 ;; 5759 5760 interix*) 5761 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5762 lt_cv_sys_max_cmd_len=196608 5763 ;; 5764 5765 osf*) 5766 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5767 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5768 # nice to cause kernel panics so lets avoid the loop below. 5769 # First set a reasonable default. 5770 lt_cv_sys_max_cmd_len=16384 5771 # 5772 if test -x /sbin/sysconfig; then 5773 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5774 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5775 esac 5776 fi 5777 ;; 5778 sco3.2v5*) 5779 lt_cv_sys_max_cmd_len=102400 5780 ;; 5781 sysv5* | sco5v6* | sysv4.2uw2*) 5782 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5783 if test -n "$kargmax"; then 5784 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5785 else 5786 lt_cv_sys_max_cmd_len=32768 5787 fi 5788 ;; 5789 *) 5790 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5791 if test -n "$lt_cv_sys_max_cmd_len"; then 5792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5794 else 5795 # Make teststring a little bigger before we do anything with it. 5796 # a 1K string should be a reasonable start. 5797 for i in 1 2 3 4 5 6 7 8 ; do 5798 teststring=$teststring$teststring 5799 done 5800 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5801 # If test is not a shell built-in, we'll probably end up computing a 5802 # maximum length that is only half of the actual maximum length, but 5803 # we can't tell. 5804 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5805 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5806 test $i != 17 # 1/2 MB should be enough 5807 do 5808 i=`expr $i + 1` 5809 teststring=$teststring$teststring 5810 done 5811 # Only check the string length outside the loop. 5812 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5813 teststring= 5814 # Add a significant safety factor because C++ compilers can tack on 5815 # massive amounts of additional arguments before passing them to the 5816 # linker. It appears as though 1/2 is a usable value. 5817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5818 fi 5819 ;; 5820 esac 5821 5822fi 5823 5824if test -n $lt_cv_sys_max_cmd_len ; then 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5826$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5827else 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5829$as_echo "none" >&6; } 5830fi 5831max_cmd_len=$lt_cv_sys_max_cmd_len 5832 5833 5834 5835 5836 5837 5838: ${CP="cp -f"} 5839: ${MV="mv -f"} 5840: ${RM="rm -f"} 5841 5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5843$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5844# Try some XSI features 5845xsi_shell=no 5846( _lt_dummy="a/b/c" 5847 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5848 = c,a/b,b/c, \ 5849 && eval 'test $(( 1 + 1 )) -eq 2 \ 5850 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5851 && xsi_shell=yes 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5853$as_echo "$xsi_shell" >&6; } 5854 5855 5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5857$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5858lt_shell_append=no 5859( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5860 >/dev/null 2>&1 \ 5861 && lt_shell_append=yes 5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5863$as_echo "$lt_shell_append" >&6; } 5864 5865 5866if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5867 lt_unset=unset 5868else 5869 lt_unset=false 5870fi 5871 5872 5873 5874 5875 5876# test EBCDIC or ASCII 5877case `echo X|tr X '\101'` in 5878 A) # ASCII based system 5879 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5880 lt_SP2NL='tr \040 \012' 5881 lt_NL2SP='tr \015\012 \040\040' 5882 ;; 5883 *) # EBCDIC based system 5884 lt_SP2NL='tr \100 \n' 5885 lt_NL2SP='tr \r\n \100\100' 5886 ;; 5887esac 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5898$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5899if ${lt_cv_to_host_file_cmd+:} false; then : 5900 $as_echo_n "(cached) " >&6 5901else 5902 case $host in 5903 *-*-mingw* ) 5904 case $build in 5905 *-*-mingw* ) # actually msys 5906 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5907 ;; 5908 *-*-cygwin* ) 5909 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5910 ;; 5911 * ) # otherwise, assume *nix 5912 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5913 ;; 5914 esac 5915 ;; 5916 *-*-cygwin* ) 5917 case $build in 5918 *-*-mingw* ) # actually msys 5919 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5920 ;; 5921 *-*-cygwin* ) 5922 lt_cv_to_host_file_cmd=func_convert_file_noop 5923 ;; 5924 * ) # otherwise, assume *nix 5925 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5926 ;; 5927 esac 5928 ;; 5929 * ) # unhandled hosts (and "normal" native builds) 5930 lt_cv_to_host_file_cmd=func_convert_file_noop 5931 ;; 5932esac 5933 5934fi 5935 5936to_host_file_cmd=$lt_cv_to_host_file_cmd 5937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5938$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5939 5940 5941 5942 5943 5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5945$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5946if ${lt_cv_to_tool_file_cmd+:} false; then : 5947 $as_echo_n "(cached) " >&6 5948else 5949 #assume ordinary cross tools, or native build. 5950lt_cv_to_tool_file_cmd=func_convert_file_noop 5951case $host in 5952 *-*-mingw* ) 5953 case $build in 5954 *-*-mingw* ) # actually msys 5955 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5956 ;; 5957 esac 5958 ;; 5959esac 5960 5961fi 5962 5963to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5965$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5966 5967 5968 5969 5970 5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5972$as_echo_n "checking for $LD option to reload object files... " >&6; } 5973if ${lt_cv_ld_reload_flag+:} false; then : 5974 $as_echo_n "(cached) " >&6 5975else 5976 lt_cv_ld_reload_flag='-r' 5977fi 5978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5979$as_echo "$lt_cv_ld_reload_flag" >&6; } 5980reload_flag=$lt_cv_ld_reload_flag 5981case $reload_flag in 5982"" | " "*) ;; 5983*) reload_flag=" $reload_flag" ;; 5984esac 5985reload_cmds='$LD$reload_flag -o $output$reload_objs' 5986case $host_os in 5987 cygwin* | mingw* | pw32* | cegcc*) 5988 if test "$GCC" != yes; then 5989 reload_cmds=false 5990 fi 5991 ;; 5992 darwin*) 5993 if test "$GCC" = yes; then 5994 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5995 else 5996 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5997 fi 5998 ;; 5999esac 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009if test -n "$ac_tool_prefix"; then 6010 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6011set dummy ${ac_tool_prefix}objdump; ac_word=$2 6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6013$as_echo_n "checking for $ac_word... " >&6; } 6014if ${ac_cv_prog_OBJDUMP+:} false; then : 6015 $as_echo_n "(cached) " >&6 6016else 6017 if test -n "$OBJDUMP"; then 6018 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6019else 6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6021for as_dir in $PATH 6022do 6023 IFS=$as_save_IFS 6024 test -z "$as_dir" && as_dir=. 6025 for ac_exec_ext in '' $ac_executable_extensions; do 6026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6027 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6029 break 2 6030 fi 6031done 6032 done 6033IFS=$as_save_IFS 6034 6035fi 6036fi 6037OBJDUMP=$ac_cv_prog_OBJDUMP 6038if test -n "$OBJDUMP"; then 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6040$as_echo "$OBJDUMP" >&6; } 6041else 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6043$as_echo "no" >&6; } 6044fi 6045 6046 6047fi 6048if test -z "$ac_cv_prog_OBJDUMP"; then 6049 ac_ct_OBJDUMP=$OBJDUMP 6050 # Extract the first word of "objdump", so it can be a program name with args. 6051set dummy objdump; ac_word=$2 6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6053$as_echo_n "checking for $ac_word... " >&6; } 6054if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6055 $as_echo_n "(cached) " >&6 6056else 6057 if test -n "$ac_ct_OBJDUMP"; then 6058 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6059else 6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6061for as_dir in $PATH 6062do 6063 IFS=$as_save_IFS 6064 test -z "$as_dir" && as_dir=. 6065 for ac_exec_ext in '' $ac_executable_extensions; do 6066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6067 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6069 break 2 6070 fi 6071done 6072 done 6073IFS=$as_save_IFS 6074 6075fi 6076fi 6077ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6078if test -n "$ac_ct_OBJDUMP"; then 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6080$as_echo "$ac_ct_OBJDUMP" >&6; } 6081else 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6083$as_echo "no" >&6; } 6084fi 6085 6086 if test "x$ac_ct_OBJDUMP" = x; then 6087 OBJDUMP="false" 6088 else 6089 case $cross_compiling:$ac_tool_warned in 6090yes:) 6091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6093ac_tool_warned=yes ;; 6094esac 6095 OBJDUMP=$ac_ct_OBJDUMP 6096 fi 6097else 6098 OBJDUMP="$ac_cv_prog_OBJDUMP" 6099fi 6100 6101test -z "$OBJDUMP" && OBJDUMP=objdump 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6112$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6113if ${lt_cv_deplibs_check_method+:} false; then : 6114 $as_echo_n "(cached) " >&6 6115else 6116 lt_cv_file_magic_cmd='$MAGIC_CMD' 6117lt_cv_file_magic_test_file= 6118lt_cv_deplibs_check_method='unknown' 6119# Need to set the preceding variable on all platforms that support 6120# interlibrary dependencies. 6121# 'none' -- dependencies not supported. 6122# `unknown' -- same as none, but documents that we really don't know. 6123# 'pass_all' -- all dependencies passed with no checks. 6124# 'test_compile' -- check by making test program. 6125# 'file_magic [[regex]]' -- check by looking for files in library path 6126# which responds to the $file_magic_cmd with a given extended regex. 6127# If you have `file' or equivalent on your system and you're not sure 6128# whether `pass_all' will *always* work, you probably want this one. 6129 6130case $host_os in 6131aix[4-9]*) 6132 lt_cv_deplibs_check_method=pass_all 6133 ;; 6134 6135beos*) 6136 lt_cv_deplibs_check_method=pass_all 6137 ;; 6138 6139bsdi[45]*) 6140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6141 lt_cv_file_magic_cmd='/usr/bin/file -L' 6142 lt_cv_file_magic_test_file=/shlib/libc.so 6143 ;; 6144 6145cygwin*) 6146 # func_win32_libid is a shell function defined in ltmain.sh 6147 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6148 lt_cv_file_magic_cmd='func_win32_libid' 6149 ;; 6150 6151mingw* | pw32*) 6152 # Base MSYS/MinGW do not provide the 'file' command needed by 6153 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6154 # unless we find 'file', for example because we are cross-compiling. 6155 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6156 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6157 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6158 lt_cv_file_magic_cmd='func_win32_libid' 6159 else 6160 # Keep this pattern in sync with the one in func_win32_libid. 6161 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6162 lt_cv_file_magic_cmd='$OBJDUMP -f' 6163 fi 6164 ;; 6165 6166cegcc*) 6167 # use the weaker test based on 'objdump'. See mingw*. 6168 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6169 lt_cv_file_magic_cmd='$OBJDUMP -f' 6170 ;; 6171 6172darwin* | rhapsody*) 6173 lt_cv_deplibs_check_method=pass_all 6174 ;; 6175 6176freebsd* | dragonfly*) 6177 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6178 case $host_cpu in 6179 i*86 ) 6180 # Not sure whether the presence of OpenBSD here was a mistake. 6181 # Let's accept both of them until this is cleared up. 6182 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6183 lt_cv_file_magic_cmd=/usr/bin/file 6184 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6185 ;; 6186 esac 6187 else 6188 lt_cv_deplibs_check_method=pass_all 6189 fi 6190 ;; 6191 6192gnu*) 6193 lt_cv_deplibs_check_method=pass_all 6194 ;; 6195 6196haiku*) 6197 lt_cv_deplibs_check_method=pass_all 6198 ;; 6199 6200hpux10.20* | hpux11*) 6201 lt_cv_file_magic_cmd=/usr/bin/file 6202 case $host_cpu in 6203 ia64*) 6204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6205 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6206 ;; 6207 hppa*64*) 6208 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]' 6209 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6210 ;; 6211 *) 6212 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6213 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6214 ;; 6215 esac 6216 ;; 6217 6218interix[3-9]*) 6219 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6221 ;; 6222 6223irix5* | irix6* | nonstopux*) 6224 case $LD in 6225 *-32|*"-32 ") libmagic=32-bit;; 6226 *-n32|*"-n32 ") libmagic=N32;; 6227 *-64|*"-64 ") libmagic=64-bit;; 6228 *) libmagic=never-match;; 6229 esac 6230 lt_cv_deplibs_check_method=pass_all 6231 ;; 6232 6233# This must be Linux ELF. 6234linux* | k*bsd*-gnu | kopensolaris*-gnu) 6235 lt_cv_deplibs_check_method=pass_all 6236 ;; 6237 6238netbsd*) 6239 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6241 else 6242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6243 fi 6244 ;; 6245 6246newos6*) 6247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6248 lt_cv_file_magic_cmd=/usr/bin/file 6249 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6250 ;; 6251 6252*nto* | *qnx*) 6253 lt_cv_deplibs_check_method=pass_all 6254 ;; 6255 6256openbsd*) 6257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6259 else 6260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6261 fi 6262 ;; 6263 6264osf3* | osf4* | osf5*) 6265 lt_cv_deplibs_check_method=pass_all 6266 ;; 6267 6268rdos*) 6269 lt_cv_deplibs_check_method=pass_all 6270 ;; 6271 6272solaris*) 6273 lt_cv_deplibs_check_method=pass_all 6274 ;; 6275 6276sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6277 lt_cv_deplibs_check_method=pass_all 6278 ;; 6279 6280sysv4 | sysv4.3*) 6281 case $host_vendor in 6282 motorola) 6283 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]' 6284 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6285 ;; 6286 ncr) 6287 lt_cv_deplibs_check_method=pass_all 6288 ;; 6289 sequent) 6290 lt_cv_file_magic_cmd='/bin/file' 6291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6292 ;; 6293 sni) 6294 lt_cv_file_magic_cmd='/bin/file' 6295 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6296 lt_cv_file_magic_test_file=/lib/libc.so 6297 ;; 6298 siemens) 6299 lt_cv_deplibs_check_method=pass_all 6300 ;; 6301 pc) 6302 lt_cv_deplibs_check_method=pass_all 6303 ;; 6304 esac 6305 ;; 6306 6307tpf*) 6308 lt_cv_deplibs_check_method=pass_all 6309 ;; 6310esac 6311 6312fi 6313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6314$as_echo "$lt_cv_deplibs_check_method" >&6; } 6315 6316file_magic_glob= 6317want_nocaseglob=no 6318if test "$build" = "$host"; then 6319 case $host_os in 6320 mingw* | pw32*) 6321 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6322 want_nocaseglob=yes 6323 else 6324 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6325 fi 6326 ;; 6327 esac 6328fi 6329 6330file_magic_cmd=$lt_cv_file_magic_cmd 6331deplibs_check_method=$lt_cv_deplibs_check_method 6332test -z "$deplibs_check_method" && deplibs_check_method=unknown 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355if test -n "$ac_tool_prefix"; then 6356 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6357set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6359$as_echo_n "checking for $ac_word... " >&6; } 6360if ${ac_cv_prog_DLLTOOL+:} false; then : 6361 $as_echo_n "(cached) " >&6 6362else 6363 if test -n "$DLLTOOL"; then 6364 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6365else 6366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6367for as_dir in $PATH 6368do 6369 IFS=$as_save_IFS 6370 test -z "$as_dir" && as_dir=. 6371 for ac_exec_ext in '' $ac_executable_extensions; do 6372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6373 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6375 break 2 6376 fi 6377done 6378 done 6379IFS=$as_save_IFS 6380 6381fi 6382fi 6383DLLTOOL=$ac_cv_prog_DLLTOOL 6384if test -n "$DLLTOOL"; then 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6386$as_echo "$DLLTOOL" >&6; } 6387else 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6389$as_echo "no" >&6; } 6390fi 6391 6392 6393fi 6394if test -z "$ac_cv_prog_DLLTOOL"; then 6395 ac_ct_DLLTOOL=$DLLTOOL 6396 # Extract the first word of "dlltool", so it can be a program name with args. 6397set dummy dlltool; ac_word=$2 6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6399$as_echo_n "checking for $ac_word... " >&6; } 6400if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6401 $as_echo_n "(cached) " >&6 6402else 6403 if test -n "$ac_ct_DLLTOOL"; then 6404 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6405else 6406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6407for as_dir in $PATH 6408do 6409 IFS=$as_save_IFS 6410 test -z "$as_dir" && as_dir=. 6411 for ac_exec_ext in '' $ac_executable_extensions; do 6412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6413 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6415 break 2 6416 fi 6417done 6418 done 6419IFS=$as_save_IFS 6420 6421fi 6422fi 6423ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6424if test -n "$ac_ct_DLLTOOL"; then 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6426$as_echo "$ac_ct_DLLTOOL" >&6; } 6427else 6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6429$as_echo "no" >&6; } 6430fi 6431 6432 if test "x$ac_ct_DLLTOOL" = x; then 6433 DLLTOOL="false" 6434 else 6435 case $cross_compiling:$ac_tool_warned in 6436yes:) 6437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6439ac_tool_warned=yes ;; 6440esac 6441 DLLTOOL=$ac_ct_DLLTOOL 6442 fi 6443else 6444 DLLTOOL="$ac_cv_prog_DLLTOOL" 6445fi 6446 6447test -z "$DLLTOOL" && DLLTOOL=dlltool 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6459$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6460if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6461 $as_echo_n "(cached) " >&6 6462else 6463 lt_cv_sharedlib_from_linklib_cmd='unknown' 6464 6465case $host_os in 6466cygwin* | mingw* | pw32* | cegcc*) 6467 # two different shell functions defined in ltmain.sh 6468 # decide which to use based on capabilities of $DLLTOOL 6469 case `$DLLTOOL --help 2>&1` in 6470 *--identify-strict*) 6471 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6472 ;; 6473 *) 6474 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6475 ;; 6476 esac 6477 ;; 6478*) 6479 # fallback: assume linklib IS sharedlib 6480 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6481 ;; 6482esac 6483 6484fi 6485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6486$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6487sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6488test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6489 6490 6491 6492 6493 6494 6495 6496if test -n "$ac_tool_prefix"; then 6497 for ac_prog in ar 6498 do 6499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6500set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6502$as_echo_n "checking for $ac_word... " >&6; } 6503if ${ac_cv_prog_AR+:} false; then : 6504 $as_echo_n "(cached) " >&6 6505else 6506 if test -n "$AR"; then 6507 ac_cv_prog_AR="$AR" # Let the user override the test. 6508else 6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6510for as_dir in $PATH 6511do 6512 IFS=$as_save_IFS 6513 test -z "$as_dir" && as_dir=. 6514 for ac_exec_ext in '' $ac_executable_extensions; do 6515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6516 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6518 break 2 6519 fi 6520done 6521 done 6522IFS=$as_save_IFS 6523 6524fi 6525fi 6526AR=$ac_cv_prog_AR 6527if test -n "$AR"; then 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6529$as_echo "$AR" >&6; } 6530else 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532$as_echo "no" >&6; } 6533fi 6534 6535 6536 test -n "$AR" && break 6537 done 6538fi 6539if test -z "$AR"; then 6540 ac_ct_AR=$AR 6541 for ac_prog in ar 6542do 6543 # Extract the first word of "$ac_prog", so it can be a program name with args. 6544set dummy $ac_prog; ac_word=$2 6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6546$as_echo_n "checking for $ac_word... " >&6; } 6547if ${ac_cv_prog_ac_ct_AR+:} false; then : 6548 $as_echo_n "(cached) " >&6 6549else 6550 if test -n "$ac_ct_AR"; then 6551 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6552else 6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6554for as_dir in $PATH 6555do 6556 IFS=$as_save_IFS 6557 test -z "$as_dir" && as_dir=. 6558 for ac_exec_ext in '' $ac_executable_extensions; do 6559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6560 ac_cv_prog_ac_ct_AR="$ac_prog" 6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6562 break 2 6563 fi 6564done 6565 done 6566IFS=$as_save_IFS 6567 6568fi 6569fi 6570ac_ct_AR=$ac_cv_prog_ac_ct_AR 6571if test -n "$ac_ct_AR"; then 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6573$as_echo "$ac_ct_AR" >&6; } 6574else 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6576$as_echo "no" >&6; } 6577fi 6578 6579 6580 test -n "$ac_ct_AR" && break 6581done 6582 6583 if test "x$ac_ct_AR" = x; then 6584 AR="false" 6585 else 6586 case $cross_compiling:$ac_tool_warned in 6587yes:) 6588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6590ac_tool_warned=yes ;; 6591esac 6592 AR=$ac_ct_AR 6593 fi 6594fi 6595 6596: ${AR=ar} 6597: ${AR_FLAGS=cru} 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6610$as_echo_n "checking for archiver @FILE support... " >&6; } 6611if ${lt_cv_ar_at_file+:} false; then : 6612 $as_echo_n "(cached) " >&6 6613else 6614 lt_cv_ar_at_file=no 6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6616/* end confdefs.h. */ 6617 6618int 6619main () 6620{ 6621 6622 ; 6623 return 0; 6624} 6625_ACEOF 6626if ac_fn_c_try_compile "$LINENO"; then : 6627 echo conftest.$ac_objext > conftest.lst 6628 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6630 (eval $lt_ar_try) 2>&5 6631 ac_status=$? 6632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6633 test $ac_status = 0; } 6634 if test "$ac_status" -eq 0; then 6635 # Ensure the archiver fails upon bogus file names. 6636 rm -f conftest.$ac_objext libconftest.a 6637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6638 (eval $lt_ar_try) 2>&5 6639 ac_status=$? 6640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6641 test $ac_status = 0; } 6642 if test "$ac_status" -ne 0; then 6643 lt_cv_ar_at_file=@ 6644 fi 6645 fi 6646 rm -f conftest.* libconftest.a 6647 6648fi 6649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6650 6651fi 6652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6653$as_echo "$lt_cv_ar_at_file" >&6; } 6654 6655if test "x$lt_cv_ar_at_file" = xno; then 6656 archiver_list_spec= 6657else 6658 archiver_list_spec=$lt_cv_ar_at_file 6659fi 6660 6661 6662 6663 6664 6665 6666 6667if test -n "$ac_tool_prefix"; then 6668 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6669set dummy ${ac_tool_prefix}strip; ac_word=$2 6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6671$as_echo_n "checking for $ac_word... " >&6; } 6672if ${ac_cv_prog_STRIP+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 if test -n "$STRIP"; then 6676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6677else 6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6679for as_dir in $PATH 6680do 6681 IFS=$as_save_IFS 6682 test -z "$as_dir" && as_dir=. 6683 for ac_exec_ext in '' $ac_executable_extensions; do 6684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6685 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6687 break 2 6688 fi 6689done 6690 done 6691IFS=$as_save_IFS 6692 6693fi 6694fi 6695STRIP=$ac_cv_prog_STRIP 6696if test -n "$STRIP"; then 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6698$as_echo "$STRIP" >&6; } 6699else 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6701$as_echo "no" >&6; } 6702fi 6703 6704 6705fi 6706if test -z "$ac_cv_prog_STRIP"; then 6707 ac_ct_STRIP=$STRIP 6708 # Extract the first word of "strip", so it can be a program name with args. 6709set dummy strip; ac_word=$2 6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6711$as_echo_n "checking for $ac_word... " >&6; } 6712if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6713 $as_echo_n "(cached) " >&6 6714else 6715 if test -n "$ac_ct_STRIP"; then 6716 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6717else 6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6719for as_dir in $PATH 6720do 6721 IFS=$as_save_IFS 6722 test -z "$as_dir" && as_dir=. 6723 for ac_exec_ext in '' $ac_executable_extensions; do 6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6725 ac_cv_prog_ac_ct_STRIP="strip" 6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6727 break 2 6728 fi 6729done 6730 done 6731IFS=$as_save_IFS 6732 6733fi 6734fi 6735ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6736if test -n "$ac_ct_STRIP"; then 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6738$as_echo "$ac_ct_STRIP" >&6; } 6739else 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6741$as_echo "no" >&6; } 6742fi 6743 6744 if test "x$ac_ct_STRIP" = x; then 6745 STRIP=":" 6746 else 6747 case $cross_compiling:$ac_tool_warned in 6748yes:) 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6751ac_tool_warned=yes ;; 6752esac 6753 STRIP=$ac_ct_STRIP 6754 fi 6755else 6756 STRIP="$ac_cv_prog_STRIP" 6757fi 6758 6759test -z "$STRIP" && STRIP=: 6760 6761 6762 6763 6764 6765 6766if test -n "$ac_tool_prefix"; then 6767 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6768set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6770$as_echo_n "checking for $ac_word... " >&6; } 6771if ${ac_cv_prog_RANLIB+:} false; then : 6772 $as_echo_n "(cached) " >&6 6773else 6774 if test -n "$RANLIB"; then 6775 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6776else 6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6778for as_dir in $PATH 6779do 6780 IFS=$as_save_IFS 6781 test -z "$as_dir" && as_dir=. 6782 for ac_exec_ext in '' $ac_executable_extensions; do 6783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6784 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6786 break 2 6787 fi 6788done 6789 done 6790IFS=$as_save_IFS 6791 6792fi 6793fi 6794RANLIB=$ac_cv_prog_RANLIB 6795if test -n "$RANLIB"; then 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6797$as_echo "$RANLIB" >&6; } 6798else 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6800$as_echo "no" >&6; } 6801fi 6802 6803 6804fi 6805if test -z "$ac_cv_prog_RANLIB"; then 6806 ac_ct_RANLIB=$RANLIB 6807 # Extract the first word of "ranlib", so it can be a program name with args. 6808set dummy ranlib; ac_word=$2 6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6810$as_echo_n "checking for $ac_word... " >&6; } 6811if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813else 6814 if test -n "$ac_ct_RANLIB"; then 6815 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6816else 6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6818for as_dir in $PATH 6819do 6820 IFS=$as_save_IFS 6821 test -z "$as_dir" && as_dir=. 6822 for ac_exec_ext in '' $ac_executable_extensions; do 6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6824 ac_cv_prog_ac_ct_RANLIB="ranlib" 6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6826 break 2 6827 fi 6828done 6829 done 6830IFS=$as_save_IFS 6831 6832fi 6833fi 6834ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6835if test -n "$ac_ct_RANLIB"; then 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6837$as_echo "$ac_ct_RANLIB" >&6; } 6838else 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6840$as_echo "no" >&6; } 6841fi 6842 6843 if test "x$ac_ct_RANLIB" = x; then 6844 RANLIB=":" 6845 else 6846 case $cross_compiling:$ac_tool_warned in 6847yes:) 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6850ac_tool_warned=yes ;; 6851esac 6852 RANLIB=$ac_ct_RANLIB 6853 fi 6854else 6855 RANLIB="$ac_cv_prog_RANLIB" 6856fi 6857 6858test -z "$RANLIB" && RANLIB=: 6859 6860 6861 6862 6863 6864 6865# Determine commands to create old-style static archives. 6866old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6867old_postinstall_cmds='chmod 644 $oldlib' 6868old_postuninstall_cmds= 6869 6870if test -n "$RANLIB"; then 6871 case $host_os in 6872 openbsd*) 6873 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6874 ;; 6875 *) 6876 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6877 ;; 6878 esac 6879 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6880fi 6881 6882case $host_os in 6883 darwin*) 6884 lock_old_archive_extraction=yes ;; 6885 *) 6886 lock_old_archive_extraction=no ;; 6887esac 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927# If no C compiler was specified, use CC. 6928LTCC=${LTCC-"$CC"} 6929 6930# If no C compiler flags were specified, use CFLAGS. 6931LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6932 6933# Allow CC to be a program name with arguments. 6934compiler=$CC 6935 6936 6937# Check for command to grab the raw symbol name followed by C symbol from nm. 6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6939$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6940if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6941 $as_echo_n "(cached) " >&6 6942else 6943 6944# These are sane defaults that work on at least a few old systems. 6945# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6946 6947# Character class describing NM global symbol codes. 6948symcode='[BCDEGRST]' 6949 6950# Regexp to match symbols that can be accessed directly from C. 6951sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6952 6953# Define system-specific variables. 6954case $host_os in 6955aix*) 6956 symcode='[BCDT]' 6957 ;; 6958cygwin* | mingw* | pw32* | cegcc*) 6959 symcode='[ABCDGISTW]' 6960 ;; 6961hpux*) 6962 if test "$host_cpu" = ia64; then 6963 symcode='[ABCDEGRST]' 6964 fi 6965 ;; 6966irix* | nonstopux*) 6967 symcode='[BCDEGRST]' 6968 ;; 6969osf*) 6970 symcode='[BCDEGQRST]' 6971 ;; 6972solaris*) 6973 symcode='[BDRT]' 6974 ;; 6975sco3.2v5*) 6976 symcode='[DT]' 6977 ;; 6978sysv4.2uw2*) 6979 symcode='[DT]' 6980 ;; 6981sysv5* | sco5v6* | unixware* | OpenUNIX*) 6982 symcode='[ABDT]' 6983 ;; 6984sysv4) 6985 symcode='[DFNSTU]' 6986 ;; 6987esac 6988 6989# If we're using GNU nm, then use its standard symbol codes. 6990case `$NM -V 2>&1` in 6991*GNU* | *'with BFD'*) 6992 symcode='[ABCDGIRSTW]' ;; 6993esac 6994 6995# Transform an extracted symbol line into a proper C declaration. 6996# Some systems (esp. on ia64) link data and code symbols differently, 6997# so use this general approach. 6998lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6999 7000# Transform an extracted symbol line into symbol name and symbol address 7001lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7002lt_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'" 7003 7004# Handle CRLF in mingw tool chain 7005opt_cr= 7006case $build_os in 7007mingw*) 7008 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7009 ;; 7010esac 7011 7012# Try without a prefix underscore, then with it. 7013for ac_symprfx in "" "_"; do 7014 7015 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7016 symxfrm="\\1 $ac_symprfx\\2 \\2" 7017 7018 # Write the raw and C identifiers. 7019 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7020 # Fake it for dumpbin and say T for any non-static function 7021 # and D for any global variable. 7022 # Also find C++ and __fastcall symbols from MSVC++, 7023 # which start with @ or ?. 7024 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7025" {last_section=section; section=\$ 3};"\ 7026" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7027" \$ 0!~/External *\|/{next};"\ 7028" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7029" {if(hide[section]) next};"\ 7030" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7031" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7032" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7033" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7034" ' prfx=^$ac_symprfx" 7035 else 7036 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7037 fi 7038 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7039 7040 # Check to see that the pipe works correctly. 7041 pipe_works=no 7042 7043 rm -f conftest* 7044 cat > conftest.$ac_ext <<_LT_EOF 7045#ifdef __cplusplus 7046extern "C" { 7047#endif 7048char nm_test_var; 7049void nm_test_func(void); 7050void nm_test_func(void){} 7051#ifdef __cplusplus 7052} 7053#endif 7054int main(){nm_test_var='a';nm_test_func();return(0);} 7055_LT_EOF 7056 7057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7058 (eval $ac_compile) 2>&5 7059 ac_status=$? 7060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7061 test $ac_status = 0; }; then 7062 # Now try to grab the symbols. 7063 nlist=conftest.nm 7064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7065 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7066 ac_status=$? 7067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7068 test $ac_status = 0; } && test -s "$nlist"; then 7069 # Try sorting and uniquifying the output. 7070 if sort "$nlist" | uniq > "$nlist"T; then 7071 mv -f "$nlist"T "$nlist" 7072 else 7073 rm -f "$nlist"T 7074 fi 7075 7076 # Make sure that we snagged all the symbols we need. 7077 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7078 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7079 cat <<_LT_EOF > conftest.$ac_ext 7080/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7081#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7082/* DATA imports from DLLs on WIN32 con't be const, because runtime 7083 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7084# define LT_DLSYM_CONST 7085#elif defined(__osf__) 7086/* This system does not cope well with relocations in const data. */ 7087# define LT_DLSYM_CONST 7088#else 7089# define LT_DLSYM_CONST const 7090#endif 7091 7092#ifdef __cplusplus 7093extern "C" { 7094#endif 7095 7096_LT_EOF 7097 # Now generate the symbol file. 7098 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7099 7100 cat <<_LT_EOF >> conftest.$ac_ext 7101 7102/* The mapping between symbol names and symbols. */ 7103LT_DLSYM_CONST struct { 7104 const char *name; 7105 void *address; 7106} 7107lt__PROGRAM__LTX_preloaded_symbols[] = 7108{ 7109 { "@PROGRAM@", (void *) 0 }, 7110_LT_EOF 7111 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7112 cat <<\_LT_EOF >> conftest.$ac_ext 7113 {0, (void *) 0} 7114}; 7115 7116/* This works around a problem in FreeBSD linker */ 7117#ifdef FREEBSD_WORKAROUND 7118static const void *lt_preloaded_setup() { 7119 return lt__PROGRAM__LTX_preloaded_symbols; 7120} 7121#endif 7122 7123#ifdef __cplusplus 7124} 7125#endif 7126_LT_EOF 7127 # Now try linking the two files. 7128 mv conftest.$ac_objext conftstm.$ac_objext 7129 lt_globsym_save_LIBS=$LIBS 7130 lt_globsym_save_CFLAGS=$CFLAGS 7131 LIBS="conftstm.$ac_objext" 7132 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7134 (eval $ac_link) 2>&5 7135 ac_status=$? 7136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7137 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7138 pipe_works=yes 7139 fi 7140 LIBS=$lt_globsym_save_LIBS 7141 CFLAGS=$lt_globsym_save_CFLAGS 7142 else 7143 echo "cannot find nm_test_func in $nlist" >&5 7144 fi 7145 else 7146 echo "cannot find nm_test_var in $nlist" >&5 7147 fi 7148 else 7149 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7150 fi 7151 else 7152 echo "$progname: failed program was:" >&5 7153 cat conftest.$ac_ext >&5 7154 fi 7155 rm -rf conftest* conftst* 7156 7157 # Do not use the global_symbol_pipe unless it works. 7158 if test "$pipe_works" = yes; then 7159 break 7160 else 7161 lt_cv_sys_global_symbol_pipe= 7162 fi 7163done 7164 7165fi 7166 7167if test -z "$lt_cv_sys_global_symbol_pipe"; then 7168 lt_cv_sys_global_symbol_to_cdecl= 7169fi 7170if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7172$as_echo "failed" >&6; } 7173else 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7175$as_echo "ok" >&6; } 7176fi 7177 7178# Response file support. 7179if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7180 nm_file_list_spec='@' 7181elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7182 nm_file_list_spec='@' 7183fi 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7212$as_echo_n "checking for sysroot... " >&6; } 7213 7214# Check whether --with-sysroot was given. 7215if test "${with_sysroot+set}" = set; then : 7216 withval=$with_sysroot; 7217else 7218 with_sysroot=no 7219fi 7220 7221 7222lt_sysroot= 7223case ${with_sysroot} in #( 7224 yes) 7225 if test "$GCC" = yes; then 7226 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7227 fi 7228 ;; #( 7229 /*) 7230 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7231 ;; #( 7232 no|'') 7233 ;; #( 7234 *) 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7236$as_echo "${with_sysroot}" >&6; } 7237 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7238 ;; 7239esac 7240 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7242$as_echo "${lt_sysroot:-no}" >&6; } 7243 7244 7245 7246 7247 7248# Check whether --enable-libtool-lock was given. 7249if test "${enable_libtool_lock+set}" = set; then : 7250 enableval=$enable_libtool_lock; 7251fi 7252 7253test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7254 7255# Some flags need to be propagated to the compiler or linker for good 7256# libtool support. 7257case $host in 7258ia64-*-hpux*) 7259 # Find out which ABI we are using. 7260 echo 'int i;' > conftest.$ac_ext 7261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7262 (eval $ac_compile) 2>&5 7263 ac_status=$? 7264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7265 test $ac_status = 0; }; then 7266 case `/usr/bin/file conftest.$ac_objext` in 7267 *ELF-32*) 7268 HPUX_IA64_MODE="32" 7269 ;; 7270 *ELF-64*) 7271 HPUX_IA64_MODE="64" 7272 ;; 7273 esac 7274 fi 7275 rm -rf conftest* 7276 ;; 7277*-*-irix6*) 7278 # Find out which ABI we are using. 7279 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7281 (eval $ac_compile) 2>&5 7282 ac_status=$? 7283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7284 test $ac_status = 0; }; then 7285 if test "$lt_cv_prog_gnu_ld" = yes; then 7286 case `/usr/bin/file conftest.$ac_objext` in 7287 *32-bit*) 7288 LD="${LD-ld} -melf32bsmip" 7289 ;; 7290 *N32*) 7291 LD="${LD-ld} -melf32bmipn32" 7292 ;; 7293 *64-bit*) 7294 LD="${LD-ld} -melf64bmip" 7295 ;; 7296 esac 7297 else 7298 case `/usr/bin/file conftest.$ac_objext` in 7299 *32-bit*) 7300 LD="${LD-ld} -32" 7301 ;; 7302 *N32*) 7303 LD="${LD-ld} -n32" 7304 ;; 7305 *64-bit*) 7306 LD="${LD-ld} -64" 7307 ;; 7308 esac 7309 fi 7310 fi 7311 rm -rf conftest* 7312 ;; 7313 7314x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7315s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7316 # Find out which ABI we are using. 7317 echo 'int i;' > conftest.$ac_ext 7318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7319 (eval $ac_compile) 2>&5 7320 ac_status=$? 7321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7322 test $ac_status = 0; }; then 7323 case `/usr/bin/file conftest.o` in 7324 *32-bit*) 7325 case $host in 7326 x86_64-*kfreebsd*-gnu) 7327 LD="${LD-ld} -m elf_i386_fbsd" 7328 ;; 7329 x86_64-*linux*) 7330 LD="${LD-ld} -m elf_i386" 7331 ;; 7332 ppc64-*linux*|powerpc64-*linux*) 7333 LD="${LD-ld} -m elf32ppclinux" 7334 ;; 7335 s390x-*linux*) 7336 LD="${LD-ld} -m elf_s390" 7337 ;; 7338 sparc64-*linux*) 7339 LD="${LD-ld} -m elf32_sparc" 7340 ;; 7341 esac 7342 ;; 7343 *64-bit*) 7344 case $host in 7345 x86_64-*kfreebsd*-gnu) 7346 LD="${LD-ld} -m elf_x86_64_fbsd" 7347 ;; 7348 x86_64-*linux*) 7349 LD="${LD-ld} -m elf_x86_64" 7350 ;; 7351 ppc*-*linux*|powerpc*-*linux*) 7352 LD="${LD-ld} -m elf64ppc" 7353 ;; 7354 s390*-*linux*|s390*-*tpf*) 7355 LD="${LD-ld} -m elf64_s390" 7356 ;; 7357 sparc*-*linux*) 7358 LD="${LD-ld} -m elf64_sparc" 7359 ;; 7360 esac 7361 ;; 7362 esac 7363 fi 7364 rm -rf conftest* 7365 ;; 7366 7367*-*-sco3.2v5*) 7368 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7369 SAVE_CFLAGS="$CFLAGS" 7370 CFLAGS="$CFLAGS -belf" 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7372$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7373if ${lt_cv_cc_needs_belf+:} false; then : 7374 $as_echo_n "(cached) " >&6 7375else 7376 ac_ext=c 7377ac_cpp='$CPP $CPPFLAGS' 7378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7380ac_compiler_gnu=$ac_cv_c_compiler_gnu 7381 7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7383/* end confdefs.h. */ 7384 7385int 7386main () 7387{ 7388 7389 ; 7390 return 0; 7391} 7392_ACEOF 7393if ac_fn_c_try_link "$LINENO"; then : 7394 lt_cv_cc_needs_belf=yes 7395else 7396 lt_cv_cc_needs_belf=no 7397fi 7398rm -f core conftest.err conftest.$ac_objext \ 7399 conftest$ac_exeext conftest.$ac_ext 7400 ac_ext=c 7401ac_cpp='$CPP $CPPFLAGS' 7402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7404ac_compiler_gnu=$ac_cv_c_compiler_gnu 7405 7406fi 7407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7408$as_echo "$lt_cv_cc_needs_belf" >&6; } 7409 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7410 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7411 CFLAGS="$SAVE_CFLAGS" 7412 fi 7413 ;; 7414sparc*-*solaris*) 7415 # Find out which ABI we are using. 7416 echo 'int i;' > conftest.$ac_ext 7417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7418 (eval $ac_compile) 2>&5 7419 ac_status=$? 7420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7421 test $ac_status = 0; }; then 7422 case `/usr/bin/file conftest.o` in 7423 *64-bit*) 7424 case $lt_cv_prog_gnu_ld in 7425 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7426 *) 7427 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7428 LD="${LD-ld} -64" 7429 fi 7430 ;; 7431 esac 7432 ;; 7433 esac 7434 fi 7435 rm -rf conftest* 7436 ;; 7437esac 7438 7439need_locks="$enable_libtool_lock" 7440 7441if test -n "$ac_tool_prefix"; then 7442 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7443set dummy ${ac_tool_prefix}mt; ac_word=$2 7444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7445$as_echo_n "checking for $ac_word... " >&6; } 7446if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7447 $as_echo_n "(cached) " >&6 7448else 7449 if test -n "$MANIFEST_TOOL"; then 7450 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7451else 7452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7453for as_dir in $PATH 7454do 7455 IFS=$as_save_IFS 7456 test -z "$as_dir" && as_dir=. 7457 for ac_exec_ext in '' $ac_executable_extensions; do 7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7459 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7461 break 2 7462 fi 7463done 7464 done 7465IFS=$as_save_IFS 7466 7467fi 7468fi 7469MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7470if test -n "$MANIFEST_TOOL"; then 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7472$as_echo "$MANIFEST_TOOL" >&6; } 7473else 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7475$as_echo "no" >&6; } 7476fi 7477 7478 7479fi 7480if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7481 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7482 # Extract the first word of "mt", so it can be a program name with args. 7483set dummy mt; ac_word=$2 7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7485$as_echo_n "checking for $ac_word... " >&6; } 7486if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7487 $as_echo_n "(cached) " >&6 7488else 7489 if test -n "$ac_ct_MANIFEST_TOOL"; then 7490 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7491else 7492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7493for as_dir in $PATH 7494do 7495 IFS=$as_save_IFS 7496 test -z "$as_dir" && as_dir=. 7497 for ac_exec_ext in '' $ac_executable_extensions; do 7498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7499 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7501 break 2 7502 fi 7503done 7504 done 7505IFS=$as_save_IFS 7506 7507fi 7508fi 7509ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7510if test -n "$ac_ct_MANIFEST_TOOL"; then 7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7512$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7513else 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7515$as_echo "no" >&6; } 7516fi 7517 7518 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7519 MANIFEST_TOOL=":" 7520 else 7521 case $cross_compiling:$ac_tool_warned in 7522yes:) 7523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7525ac_tool_warned=yes ;; 7526esac 7527 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7528 fi 7529else 7530 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7531fi 7532 7533test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7535$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7536if ${lt_cv_path_mainfest_tool+:} false; then : 7537 $as_echo_n "(cached) " >&6 7538else 7539 lt_cv_path_mainfest_tool=no 7540 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7541 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7542 cat conftest.err >&5 7543 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7544 lt_cv_path_mainfest_tool=yes 7545 fi 7546 rm -f conftest* 7547fi 7548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7549$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7550if test "x$lt_cv_path_mainfest_tool" != xyes; then 7551 MANIFEST_TOOL=: 7552fi 7553 7554 7555 7556 7557 7558 7559 case $host_os in 7560 rhapsody* | darwin*) 7561 if test -n "$ac_tool_prefix"; then 7562 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7563set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7565$as_echo_n "checking for $ac_word... " >&6; } 7566if ${ac_cv_prog_DSYMUTIL+:} false; then : 7567 $as_echo_n "(cached) " >&6 7568else 7569 if test -n "$DSYMUTIL"; then 7570 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7571else 7572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7573for as_dir in $PATH 7574do 7575 IFS=$as_save_IFS 7576 test -z "$as_dir" && as_dir=. 7577 for ac_exec_ext in '' $ac_executable_extensions; do 7578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7579 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7581 break 2 7582 fi 7583done 7584 done 7585IFS=$as_save_IFS 7586 7587fi 7588fi 7589DSYMUTIL=$ac_cv_prog_DSYMUTIL 7590if test -n "$DSYMUTIL"; then 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7592$as_echo "$DSYMUTIL" >&6; } 7593else 7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7595$as_echo "no" >&6; } 7596fi 7597 7598 7599fi 7600if test -z "$ac_cv_prog_DSYMUTIL"; then 7601 ac_ct_DSYMUTIL=$DSYMUTIL 7602 # Extract the first word of "dsymutil", so it can be a program name with args. 7603set dummy dsymutil; ac_word=$2 7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7605$as_echo_n "checking for $ac_word... " >&6; } 7606if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7607 $as_echo_n "(cached) " >&6 7608else 7609 if test -n "$ac_ct_DSYMUTIL"; then 7610 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7611else 7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7613for as_dir in $PATH 7614do 7615 IFS=$as_save_IFS 7616 test -z "$as_dir" && as_dir=. 7617 for ac_exec_ext in '' $ac_executable_extensions; do 7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7619 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7621 break 2 7622 fi 7623done 7624 done 7625IFS=$as_save_IFS 7626 7627fi 7628fi 7629ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7630if test -n "$ac_ct_DSYMUTIL"; then 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7632$as_echo "$ac_ct_DSYMUTIL" >&6; } 7633else 7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7635$as_echo "no" >&6; } 7636fi 7637 7638 if test "x$ac_ct_DSYMUTIL" = x; then 7639 DSYMUTIL=":" 7640 else 7641 case $cross_compiling:$ac_tool_warned in 7642yes:) 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7645ac_tool_warned=yes ;; 7646esac 7647 DSYMUTIL=$ac_ct_DSYMUTIL 7648 fi 7649else 7650 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7651fi 7652 7653 if test -n "$ac_tool_prefix"; then 7654 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7655set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7657$as_echo_n "checking for $ac_word... " >&6; } 7658if ${ac_cv_prog_NMEDIT+:} false; then : 7659 $as_echo_n "(cached) " >&6 7660else 7661 if test -n "$NMEDIT"; then 7662 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7663else 7664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7665for as_dir in $PATH 7666do 7667 IFS=$as_save_IFS 7668 test -z "$as_dir" && as_dir=. 7669 for ac_exec_ext in '' $ac_executable_extensions; do 7670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7671 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7673 break 2 7674 fi 7675done 7676 done 7677IFS=$as_save_IFS 7678 7679fi 7680fi 7681NMEDIT=$ac_cv_prog_NMEDIT 7682if test -n "$NMEDIT"; then 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7684$as_echo "$NMEDIT" >&6; } 7685else 7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7687$as_echo "no" >&6; } 7688fi 7689 7690 7691fi 7692if test -z "$ac_cv_prog_NMEDIT"; then 7693 ac_ct_NMEDIT=$NMEDIT 7694 # Extract the first word of "nmedit", so it can be a program name with args. 7695set dummy nmedit; ac_word=$2 7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7697$as_echo_n "checking for $ac_word... " >&6; } 7698if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7699 $as_echo_n "(cached) " >&6 7700else 7701 if test -n "$ac_ct_NMEDIT"; then 7702 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7703else 7704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7705for as_dir in $PATH 7706do 7707 IFS=$as_save_IFS 7708 test -z "$as_dir" && as_dir=. 7709 for ac_exec_ext in '' $ac_executable_extensions; do 7710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7711 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7713 break 2 7714 fi 7715done 7716 done 7717IFS=$as_save_IFS 7718 7719fi 7720fi 7721ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7722if test -n "$ac_ct_NMEDIT"; then 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7724$as_echo "$ac_ct_NMEDIT" >&6; } 7725else 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7727$as_echo "no" >&6; } 7728fi 7729 7730 if test "x$ac_ct_NMEDIT" = x; then 7731 NMEDIT=":" 7732 else 7733 case $cross_compiling:$ac_tool_warned in 7734yes:) 7735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7737ac_tool_warned=yes ;; 7738esac 7739 NMEDIT=$ac_ct_NMEDIT 7740 fi 7741else 7742 NMEDIT="$ac_cv_prog_NMEDIT" 7743fi 7744 7745 if test -n "$ac_tool_prefix"; then 7746 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7747set dummy ${ac_tool_prefix}lipo; ac_word=$2 7748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7749$as_echo_n "checking for $ac_word... " >&6; } 7750if ${ac_cv_prog_LIPO+:} false; then : 7751 $as_echo_n "(cached) " >&6 7752else 7753 if test -n "$LIPO"; then 7754 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7755else 7756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7757for as_dir in $PATH 7758do 7759 IFS=$as_save_IFS 7760 test -z "$as_dir" && as_dir=. 7761 for ac_exec_ext in '' $ac_executable_extensions; do 7762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7763 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7765 break 2 7766 fi 7767done 7768 done 7769IFS=$as_save_IFS 7770 7771fi 7772fi 7773LIPO=$ac_cv_prog_LIPO 7774if test -n "$LIPO"; then 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7776$as_echo "$LIPO" >&6; } 7777else 7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7779$as_echo "no" >&6; } 7780fi 7781 7782 7783fi 7784if test -z "$ac_cv_prog_LIPO"; then 7785 ac_ct_LIPO=$LIPO 7786 # Extract the first word of "lipo", so it can be a program name with args. 7787set dummy lipo; ac_word=$2 7788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7789$as_echo_n "checking for $ac_word... " >&6; } 7790if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7791 $as_echo_n "(cached) " >&6 7792else 7793 if test -n "$ac_ct_LIPO"; then 7794 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7795else 7796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7797for as_dir in $PATH 7798do 7799 IFS=$as_save_IFS 7800 test -z "$as_dir" && as_dir=. 7801 for ac_exec_ext in '' $ac_executable_extensions; do 7802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7803 ac_cv_prog_ac_ct_LIPO="lipo" 7804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7805 break 2 7806 fi 7807done 7808 done 7809IFS=$as_save_IFS 7810 7811fi 7812fi 7813ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7814if test -n "$ac_ct_LIPO"; then 7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7816$as_echo "$ac_ct_LIPO" >&6; } 7817else 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7819$as_echo "no" >&6; } 7820fi 7821 7822 if test "x$ac_ct_LIPO" = x; then 7823 LIPO=":" 7824 else 7825 case $cross_compiling:$ac_tool_warned in 7826yes:) 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7829ac_tool_warned=yes ;; 7830esac 7831 LIPO=$ac_ct_LIPO 7832 fi 7833else 7834 LIPO="$ac_cv_prog_LIPO" 7835fi 7836 7837 if test -n "$ac_tool_prefix"; then 7838 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7839set dummy ${ac_tool_prefix}otool; ac_word=$2 7840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7841$as_echo_n "checking for $ac_word... " >&6; } 7842if ${ac_cv_prog_OTOOL+:} false; then : 7843 $as_echo_n "(cached) " >&6 7844else 7845 if test -n "$OTOOL"; then 7846 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7847else 7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7849for as_dir in $PATH 7850do 7851 IFS=$as_save_IFS 7852 test -z "$as_dir" && as_dir=. 7853 for ac_exec_ext in '' $ac_executable_extensions; do 7854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7855 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7857 break 2 7858 fi 7859done 7860 done 7861IFS=$as_save_IFS 7862 7863fi 7864fi 7865OTOOL=$ac_cv_prog_OTOOL 7866if test -n "$OTOOL"; then 7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7868$as_echo "$OTOOL" >&6; } 7869else 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7871$as_echo "no" >&6; } 7872fi 7873 7874 7875fi 7876if test -z "$ac_cv_prog_OTOOL"; then 7877 ac_ct_OTOOL=$OTOOL 7878 # Extract the first word of "otool", so it can be a program name with args. 7879set dummy otool; ac_word=$2 7880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7881$as_echo_n "checking for $ac_word... " >&6; } 7882if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7883 $as_echo_n "(cached) " >&6 7884else 7885 if test -n "$ac_ct_OTOOL"; then 7886 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7887else 7888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7889for as_dir in $PATH 7890do 7891 IFS=$as_save_IFS 7892 test -z "$as_dir" && as_dir=. 7893 for ac_exec_ext in '' $ac_executable_extensions; do 7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7895 ac_cv_prog_ac_ct_OTOOL="otool" 7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7897 break 2 7898 fi 7899done 7900 done 7901IFS=$as_save_IFS 7902 7903fi 7904fi 7905ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7906if test -n "$ac_ct_OTOOL"; then 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7908$as_echo "$ac_ct_OTOOL" >&6; } 7909else 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7911$as_echo "no" >&6; } 7912fi 7913 7914 if test "x$ac_ct_OTOOL" = x; then 7915 OTOOL=":" 7916 else 7917 case $cross_compiling:$ac_tool_warned in 7918yes:) 7919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7921ac_tool_warned=yes ;; 7922esac 7923 OTOOL=$ac_ct_OTOOL 7924 fi 7925else 7926 OTOOL="$ac_cv_prog_OTOOL" 7927fi 7928 7929 if test -n "$ac_tool_prefix"; then 7930 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7931set dummy ${ac_tool_prefix}otool64; ac_word=$2 7932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7933$as_echo_n "checking for $ac_word... " >&6; } 7934if ${ac_cv_prog_OTOOL64+:} false; then : 7935 $as_echo_n "(cached) " >&6 7936else 7937 if test -n "$OTOOL64"; then 7938 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7939else 7940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7941for as_dir in $PATH 7942do 7943 IFS=$as_save_IFS 7944 test -z "$as_dir" && as_dir=. 7945 for ac_exec_ext in '' $ac_executable_extensions; do 7946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7947 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7949 break 2 7950 fi 7951done 7952 done 7953IFS=$as_save_IFS 7954 7955fi 7956fi 7957OTOOL64=$ac_cv_prog_OTOOL64 7958if test -n "$OTOOL64"; then 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7960$as_echo "$OTOOL64" >&6; } 7961else 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7963$as_echo "no" >&6; } 7964fi 7965 7966 7967fi 7968if test -z "$ac_cv_prog_OTOOL64"; then 7969 ac_ct_OTOOL64=$OTOOL64 7970 # Extract the first word of "otool64", so it can be a program name with args. 7971set dummy otool64; ac_word=$2 7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7973$as_echo_n "checking for $ac_word... " >&6; } 7974if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7975 $as_echo_n "(cached) " >&6 7976else 7977 if test -n "$ac_ct_OTOOL64"; then 7978 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7979else 7980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7981for as_dir in $PATH 7982do 7983 IFS=$as_save_IFS 7984 test -z "$as_dir" && as_dir=. 7985 for ac_exec_ext in '' $ac_executable_extensions; do 7986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7987 ac_cv_prog_ac_ct_OTOOL64="otool64" 7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7989 break 2 7990 fi 7991done 7992 done 7993IFS=$as_save_IFS 7994 7995fi 7996fi 7997ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7998if test -n "$ac_ct_OTOOL64"; then 7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8000$as_echo "$ac_ct_OTOOL64" >&6; } 8001else 8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8003$as_echo "no" >&6; } 8004fi 8005 8006 if test "x$ac_ct_OTOOL64" = x; then 8007 OTOOL64=":" 8008 else 8009 case $cross_compiling:$ac_tool_warned in 8010yes:) 8011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8013ac_tool_warned=yes ;; 8014esac 8015 OTOOL64=$ac_ct_OTOOL64 8016 fi 8017else 8018 OTOOL64="$ac_cv_prog_OTOOL64" 8019fi 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8048$as_echo_n "checking for -single_module linker flag... " >&6; } 8049if ${lt_cv_apple_cc_single_mod+:} false; then : 8050 $as_echo_n "(cached) " >&6 8051else 8052 lt_cv_apple_cc_single_mod=no 8053 if test -z "${LT_MULTI_MODULE}"; then 8054 # By default we will add the -single_module flag. You can override 8055 # by either setting the environment variable LT_MULTI_MODULE 8056 # non-empty at configure time, or by adding -multi_module to the 8057 # link flags. 8058 rm -rf libconftest.dylib* 8059 echo "int foo(void){return 1;}" > conftest.c 8060 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8061-dynamiclib -Wl,-single_module conftest.c" >&5 8062 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8063 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8064 _lt_result=$? 8065 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8066 lt_cv_apple_cc_single_mod=yes 8067 else 8068 cat conftest.err >&5 8069 fi 8070 rm -rf libconftest.dylib* 8071 rm -f conftest.* 8072 fi 8073fi 8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8075$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8077$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8078if ${lt_cv_ld_exported_symbols_list+:} false; then : 8079 $as_echo_n "(cached) " >&6 8080else 8081 lt_cv_ld_exported_symbols_list=no 8082 save_LDFLAGS=$LDFLAGS 8083 echo "_main" > conftest.sym 8084 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8086/* end confdefs.h. */ 8087 8088int 8089main () 8090{ 8091 8092 ; 8093 return 0; 8094} 8095_ACEOF 8096if ac_fn_c_try_link "$LINENO"; then : 8097 lt_cv_ld_exported_symbols_list=yes 8098else 8099 lt_cv_ld_exported_symbols_list=no 8100fi 8101rm -f core conftest.err conftest.$ac_objext \ 8102 conftest$ac_exeext conftest.$ac_ext 8103 LDFLAGS="$save_LDFLAGS" 8104 8105fi 8106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8107$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8109$as_echo_n "checking for -force_load linker flag... " >&6; } 8110if ${lt_cv_ld_force_load+:} false; then : 8111 $as_echo_n "(cached) " >&6 8112else 8113 lt_cv_ld_force_load=no 8114 cat > conftest.c << _LT_EOF 8115int forced_loaded() { return 2;} 8116_LT_EOF 8117 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8118 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8119 echo "$AR cru libconftest.a conftest.o" >&5 8120 $AR cru libconftest.a conftest.o 2>&5 8121 echo "$RANLIB libconftest.a" >&5 8122 $RANLIB libconftest.a 2>&5 8123 cat > conftest.c << _LT_EOF 8124int main() { return 0;} 8125_LT_EOF 8126 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8127 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8128 _lt_result=$? 8129 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 8130 lt_cv_ld_force_load=yes 8131 else 8132 cat conftest.err >&5 8133 fi 8134 rm -f conftest.err libconftest.a conftest conftest.c 8135 rm -rf conftest.dSYM 8136 8137fi 8138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8139$as_echo "$lt_cv_ld_force_load" >&6; } 8140 case $host_os in 8141 rhapsody* | darwin1.[012]) 8142 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8143 darwin1.*) 8144 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8145 darwin*) # darwin 5.x on 8146 # if running on 10.5 or later, the deployment target defaults 8147 # to the OS version, if on x86, and 10.4, the deployment 8148 # target defaults to 10.4. Don't you love it? 8149 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8150 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8151 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8152 10.[012]*) 8153 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8154 10.*) 8155 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8156 esac 8157 ;; 8158 esac 8159 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8160 _lt_dar_single_mod='$single_module' 8161 fi 8162 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8163 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8164 else 8165 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8166 fi 8167 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8168 _lt_dsymutil='~$DSYMUTIL $lib || :' 8169 else 8170 _lt_dsymutil= 8171 fi 8172 ;; 8173 esac 8174 8175for ac_header in dlfcn.h 8176do : 8177 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8178" 8179if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8180 cat >>confdefs.h <<_ACEOF 8181#define HAVE_DLFCN_H 1 8182_ACEOF 8183 8184fi 8185 8186done 8187 8188 8189 8190 8191 8192# Set options 8193 8194 8195 8196 enable_dlopen=no 8197 8198 8199 enable_win32_dll=no 8200 8201 8202 # Check whether --enable-shared was given. 8203if test "${enable_shared+set}" = set; then : 8204 enableval=$enable_shared; p=${PACKAGE-default} 8205 case $enableval in 8206 yes) enable_shared=yes ;; 8207 no) enable_shared=no ;; 8208 *) 8209 enable_shared=no 8210 # Look at the argument we got. We use all the common list separators. 8211 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8212 for pkg in $enableval; do 8213 IFS="$lt_save_ifs" 8214 if test "X$pkg" = "X$p"; then 8215 enable_shared=yes 8216 fi 8217 done 8218 IFS="$lt_save_ifs" 8219 ;; 8220 esac 8221else 8222 enable_shared=yes 8223fi 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 # Check whether --enable-static was given. 8234if test "${enable_static+set}" = set; then : 8235 enableval=$enable_static; p=${PACKAGE-default} 8236 case $enableval in 8237 yes) enable_static=yes ;; 8238 no) enable_static=no ;; 8239 *) 8240 enable_static=no 8241 # Look at the argument we got. We use all the common list separators. 8242 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8243 for pkg in $enableval; do 8244 IFS="$lt_save_ifs" 8245 if test "X$pkg" = "X$p"; then 8246 enable_static=yes 8247 fi 8248 done 8249 IFS="$lt_save_ifs" 8250 ;; 8251 esac 8252else 8253 enable_static=yes 8254fi 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265# Check whether --with-pic was given. 8266if test "${with_pic+set}" = set; then : 8267 withval=$with_pic; pic_mode="$withval" 8268else 8269 pic_mode=default 8270fi 8271 8272 8273test -z "$pic_mode" && pic_mode=default 8274 8275 8276 8277 8278 8279 8280 8281 # Check whether --enable-fast-install was given. 8282if test "${enable_fast_install+set}" = set; then : 8283 enableval=$enable_fast_install; p=${PACKAGE-default} 8284 case $enableval in 8285 yes) enable_fast_install=yes ;; 8286 no) enable_fast_install=no ;; 8287 *) 8288 enable_fast_install=no 8289 # Look at the argument we got. We use all the common list separators. 8290 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8291 for pkg in $enableval; do 8292 IFS="$lt_save_ifs" 8293 if test "X$pkg" = "X$p"; then 8294 enable_fast_install=yes 8295 fi 8296 done 8297 IFS="$lt_save_ifs" 8298 ;; 8299 esac 8300else 8301 enable_fast_install=yes 8302fi 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314# This can be used to rebuild libtool when needed 8315LIBTOOL_DEPS="$ltmain" 8316 8317# Always use our own libtool. 8318LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345test -z "$LN_S" && LN_S="ln -s" 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360if test -n "${ZSH_VERSION+set}" ; then 8361 setopt NO_GLOB_SUBST 8362fi 8363 8364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8365$as_echo_n "checking for objdir... " >&6; } 8366if ${lt_cv_objdir+:} false; then : 8367 $as_echo_n "(cached) " >&6 8368else 8369 rm -f .libs 2>/dev/null 8370mkdir .libs 2>/dev/null 8371if test -d .libs; then 8372 lt_cv_objdir=.libs 8373else 8374 # MS-DOS does not allow filenames that begin with a dot. 8375 lt_cv_objdir=_libs 8376fi 8377rmdir .libs 2>/dev/null 8378fi 8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8380$as_echo "$lt_cv_objdir" >&6; } 8381objdir=$lt_cv_objdir 8382 8383 8384 8385 8386 8387cat >>confdefs.h <<_ACEOF 8388#define LT_OBJDIR "$lt_cv_objdir/" 8389_ACEOF 8390 8391 8392 8393 8394case $host_os in 8395aix3*) 8396 # AIX sometimes has problems with the GCC collect2 program. For some 8397 # reason, if we set the COLLECT_NAMES environment variable, the problems 8398 # vanish in a puff of smoke. 8399 if test "X${COLLECT_NAMES+set}" != Xset; then 8400 COLLECT_NAMES= 8401 export COLLECT_NAMES 8402 fi 8403 ;; 8404esac 8405 8406# Global variables: 8407ofile=libtool 8408can_build_shared=yes 8409 8410# All known linkers require a `.a' archive for static linking (except MSVC, 8411# which needs '.lib'). 8412libext=a 8413 8414with_gnu_ld="$lt_cv_prog_gnu_ld" 8415 8416old_CC="$CC" 8417old_CFLAGS="$CFLAGS" 8418 8419# Set sane defaults for various variables 8420test -z "$CC" && CC=cc 8421test -z "$LTCC" && LTCC=$CC 8422test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8423test -z "$LD" && LD=ld 8424test -z "$ac_objext" && ac_objext=o 8425 8426for cc_temp in $compiler""; do 8427 case $cc_temp in 8428 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8429 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8430 \-*) ;; 8431 *) break;; 8432 esac 8433done 8434cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8435 8436 8437# Only perform the check for file, if the check method requires it 8438test -z "$MAGIC_CMD" && MAGIC_CMD=file 8439case $deplibs_check_method in 8440file_magic*) 8441 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8443$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8444if ${lt_cv_path_MAGIC_CMD+:} false; then : 8445 $as_echo_n "(cached) " >&6 8446else 8447 case $MAGIC_CMD in 8448[\\/*] | ?:[\\/]*) 8449 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8450 ;; 8451*) 8452 lt_save_MAGIC_CMD="$MAGIC_CMD" 8453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8454 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8455 for ac_dir in $ac_dummy; do 8456 IFS="$lt_save_ifs" 8457 test -z "$ac_dir" && ac_dir=. 8458 if test -f $ac_dir/${ac_tool_prefix}file; then 8459 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8460 if test -n "$file_magic_test_file"; then 8461 case $deplibs_check_method in 8462 "file_magic "*) 8463 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8464 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8465 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8466 $EGREP "$file_magic_regex" > /dev/null; then 8467 : 8468 else 8469 cat <<_LT_EOF 1>&2 8470 8471*** Warning: the command libtool uses to detect shared libraries, 8472*** $file_magic_cmd, produces output that libtool cannot recognize. 8473*** The result is that libtool may fail to recognize shared libraries 8474*** as such. This will affect the creation of libtool libraries that 8475*** depend on shared libraries, but programs linked with such libtool 8476*** libraries will work regardless of this problem. Nevertheless, you 8477*** may want to report the problem to your system manager and/or to 8478*** bug-libtool@gnu.org 8479 8480_LT_EOF 8481 fi ;; 8482 esac 8483 fi 8484 break 8485 fi 8486 done 8487 IFS="$lt_save_ifs" 8488 MAGIC_CMD="$lt_save_MAGIC_CMD" 8489 ;; 8490esac 8491fi 8492 8493MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8494if test -n "$MAGIC_CMD"; then 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8496$as_echo "$MAGIC_CMD" >&6; } 8497else 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8499$as_echo "no" >&6; } 8500fi 8501 8502 8503 8504 8505 8506if test -z "$lt_cv_path_MAGIC_CMD"; then 8507 if test -n "$ac_tool_prefix"; then 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8509$as_echo_n "checking for file... " >&6; } 8510if ${lt_cv_path_MAGIC_CMD+:} false; then : 8511 $as_echo_n "(cached) " >&6 8512else 8513 case $MAGIC_CMD in 8514[\\/*] | ?:[\\/]*) 8515 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8516 ;; 8517*) 8518 lt_save_MAGIC_CMD="$MAGIC_CMD" 8519 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8520 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8521 for ac_dir in $ac_dummy; do 8522 IFS="$lt_save_ifs" 8523 test -z "$ac_dir" && ac_dir=. 8524 if test -f $ac_dir/file; then 8525 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8526 if test -n "$file_magic_test_file"; then 8527 case $deplibs_check_method in 8528 "file_magic "*) 8529 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8531 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8532 $EGREP "$file_magic_regex" > /dev/null; then 8533 : 8534 else 8535 cat <<_LT_EOF 1>&2 8536 8537*** Warning: the command libtool uses to detect shared libraries, 8538*** $file_magic_cmd, produces output that libtool cannot recognize. 8539*** The result is that libtool may fail to recognize shared libraries 8540*** as such. This will affect the creation of libtool libraries that 8541*** depend on shared libraries, but programs linked with such libtool 8542*** libraries will work regardless of this problem. Nevertheless, you 8543*** may want to report the problem to your system manager and/or to 8544*** bug-libtool@gnu.org 8545 8546_LT_EOF 8547 fi ;; 8548 esac 8549 fi 8550 break 8551 fi 8552 done 8553 IFS="$lt_save_ifs" 8554 MAGIC_CMD="$lt_save_MAGIC_CMD" 8555 ;; 8556esac 8557fi 8558 8559MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8560if test -n "$MAGIC_CMD"; then 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8562$as_echo "$MAGIC_CMD" >&6; } 8563else 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8565$as_echo "no" >&6; } 8566fi 8567 8568 8569 else 8570 MAGIC_CMD=: 8571 fi 8572fi 8573 8574 fi 8575 ;; 8576esac 8577 8578# Use C for the default configuration in the libtool script 8579 8580lt_save_CC="$CC" 8581ac_ext=c 8582ac_cpp='$CPP $CPPFLAGS' 8583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8585ac_compiler_gnu=$ac_cv_c_compiler_gnu 8586 8587 8588# Source file extension for C test sources. 8589ac_ext=c 8590 8591# Object file extension for compiled C test sources. 8592objext=o 8593objext=$objext 8594 8595# Code to be used in simple compile tests 8596lt_simple_compile_test_code="int some_variable = 0;" 8597 8598# Code to be used in simple link tests 8599lt_simple_link_test_code='int main(){return(0);}' 8600 8601 8602 8603 8604 8605 8606 8607# If no C compiler was specified, use CC. 8608LTCC=${LTCC-"$CC"} 8609 8610# If no C compiler flags were specified, use CFLAGS. 8611LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8612 8613# Allow CC to be a program name with arguments. 8614compiler=$CC 8615 8616# Save the default compiler, since it gets overwritten when the other 8617# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8618compiler_DEFAULT=$CC 8619 8620# save warnings/boilerplate of simple test code 8621ac_outfile=conftest.$ac_objext 8622echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8623eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8624_lt_compiler_boilerplate=`cat conftest.err` 8625$RM conftest* 8626 8627ac_outfile=conftest.$ac_objext 8628echo "$lt_simple_link_test_code" >conftest.$ac_ext 8629eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8630_lt_linker_boilerplate=`cat conftest.err` 8631$RM -r conftest* 8632 8633 8634## CAVEAT EMPTOR: 8635## There is no encapsulation within the following macros, do not change 8636## the running order or otherwise move them around unless you know exactly 8637## what you are doing... 8638if test -n "$compiler"; then 8639 8640lt_prog_compiler_no_builtin_flag= 8641 8642if test "$GCC" = yes; then 8643 case $cc_basename in 8644 nvcc*) 8645 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8646 *) 8647 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8648 esac 8649 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8651$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8652if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8653 $as_echo_n "(cached) " >&6 8654else 8655 lt_cv_prog_compiler_rtti_exceptions=no 8656 ac_outfile=conftest.$ac_objext 8657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8658 lt_compiler_flag="-fno-rtti -fno-exceptions" 8659 # Insert the option either (1) after the last *FLAGS variable, or 8660 # (2) before a word containing "conftest.", or (3) at the end. 8661 # Note that $ac_compile itself does not contain backslashes and begins 8662 # with a dollar sign (not a hyphen), so the echo should work correctly. 8663 # The option is referenced via a variable to avoid confusing sed. 8664 lt_compile=`echo "$ac_compile" | $SED \ 8665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8667 -e 's:$: $lt_compiler_flag:'` 8668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8669 (eval "$lt_compile" 2>conftest.err) 8670 ac_status=$? 8671 cat conftest.err >&5 8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8673 if (exit $ac_status) && test -s "$ac_outfile"; then 8674 # The compiler can only warn and ignore the option if not recognized 8675 # So say no if there are warnings other than the usual output. 8676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8679 lt_cv_prog_compiler_rtti_exceptions=yes 8680 fi 8681 fi 8682 $RM conftest* 8683 8684fi 8685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8686$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8687 8688if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8689 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8690else 8691 : 8692fi 8693 8694fi 8695 8696 8697 8698 8699 8700 8701 lt_prog_compiler_wl= 8702lt_prog_compiler_pic= 8703lt_prog_compiler_static= 8704 8705 8706 if test "$GCC" = yes; then 8707 lt_prog_compiler_wl='-Wl,' 8708 lt_prog_compiler_static='-static' 8709 8710 case $host_os in 8711 aix*) 8712 # All AIX code is PIC. 8713 if test "$host_cpu" = ia64; then 8714 # AIX 5 now supports IA64 processor 8715 lt_prog_compiler_static='-Bstatic' 8716 fi 8717 ;; 8718 8719 amigaos*) 8720 case $host_cpu in 8721 powerpc) 8722 # see comment about AmigaOS4 .so support 8723 lt_prog_compiler_pic='-fPIC' 8724 ;; 8725 m68k) 8726 # FIXME: we need at least 68020 code to build shared libraries, but 8727 # adding the `-m68020' flag to GCC prevents building anything better, 8728 # like `-m68040'. 8729 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8730 ;; 8731 esac 8732 ;; 8733 8734 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8735 # PIC is the default for these OSes. 8736 ;; 8737 8738 mingw* | cygwin* | pw32* | os2* | cegcc*) 8739 # This hack is so that the source file can tell whether it is being 8740 # built for inclusion in a dll (and should export symbols for example). 8741 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8742 # (--disable-auto-import) libraries 8743 lt_prog_compiler_pic='-DDLL_EXPORT' 8744 ;; 8745 8746 darwin* | rhapsody*) 8747 # PIC is the default on this platform 8748 # Common symbols not allowed in MH_DYLIB files 8749 lt_prog_compiler_pic='-fno-common' 8750 ;; 8751 8752 haiku*) 8753 # PIC is the default for Haiku. 8754 # The "-static" flag exists, but is broken. 8755 lt_prog_compiler_static= 8756 ;; 8757 8758 hpux*) 8759 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8760 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8761 # sets the default TLS model and affects inlining. 8762 case $host_cpu in 8763 hppa*64*) 8764 # +Z the default 8765 ;; 8766 *) 8767 lt_prog_compiler_pic='-fPIC' 8768 ;; 8769 esac 8770 ;; 8771 8772 interix[3-9]*) 8773 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8774 # Instead, we relocate shared libraries at runtime. 8775 ;; 8776 8777 msdosdjgpp*) 8778 # Just because we use GCC doesn't mean we suddenly get shared libraries 8779 # on systems that don't support them. 8780 lt_prog_compiler_can_build_shared=no 8781 enable_shared=no 8782 ;; 8783 8784 *nto* | *qnx*) 8785 # QNX uses GNU C++, but need to define -shared option too, otherwise 8786 # it will coredump. 8787 lt_prog_compiler_pic='-fPIC -shared' 8788 ;; 8789 8790 sysv4*MP*) 8791 if test -d /usr/nec; then 8792 lt_prog_compiler_pic=-Kconform_pic 8793 fi 8794 ;; 8795 8796 *) 8797 lt_prog_compiler_pic='-fPIC' 8798 ;; 8799 esac 8800 8801 case $cc_basename in 8802 nvcc*) # Cuda Compiler Driver 2.2 8803 lt_prog_compiler_wl='-Xlinker ' 8804 lt_prog_compiler_pic='-Xcompiler -fPIC' 8805 ;; 8806 esac 8807 else 8808 # PORTME Check for flag to pass linker flags through the system compiler. 8809 case $host_os in 8810 aix*) 8811 lt_prog_compiler_wl='-Wl,' 8812 if test "$host_cpu" = ia64; then 8813 # AIX 5 now supports IA64 processor 8814 lt_prog_compiler_static='-Bstatic' 8815 else 8816 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8817 fi 8818 ;; 8819 8820 mingw* | cygwin* | pw32* | os2* | cegcc*) 8821 # This hack is so that the source file can tell whether it is being 8822 # built for inclusion in a dll (and should export symbols for example). 8823 lt_prog_compiler_pic='-DDLL_EXPORT' 8824 ;; 8825 8826 hpux9* | hpux10* | hpux11*) 8827 lt_prog_compiler_wl='-Wl,' 8828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8829 # not for PA HP-UX. 8830 case $host_cpu in 8831 hppa*64*|ia64*) 8832 # +Z the default 8833 ;; 8834 *) 8835 lt_prog_compiler_pic='+Z' 8836 ;; 8837 esac 8838 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8839 lt_prog_compiler_static='${wl}-a ${wl}archive' 8840 ;; 8841 8842 irix5* | irix6* | nonstopux*) 8843 lt_prog_compiler_wl='-Wl,' 8844 # PIC (with -KPIC) is the default. 8845 lt_prog_compiler_static='-non_shared' 8846 ;; 8847 8848 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8849 case $cc_basename in 8850 # old Intel for x86_64 which still supported -KPIC. 8851 ecc*) 8852 lt_prog_compiler_wl='-Wl,' 8853 lt_prog_compiler_pic='-KPIC' 8854 lt_prog_compiler_static='-static' 8855 ;; 8856 # icc used to be incompatible with GCC. 8857 # ICC 10 doesn't accept -KPIC any more. 8858 icc* | ifort*) 8859 lt_prog_compiler_wl='-Wl,' 8860 lt_prog_compiler_pic='-fPIC' 8861 lt_prog_compiler_static='-static' 8862 ;; 8863 # Lahey Fortran 8.1. 8864 lf95*) 8865 lt_prog_compiler_wl='-Wl,' 8866 lt_prog_compiler_pic='--shared' 8867 lt_prog_compiler_static='--static' 8868 ;; 8869 nagfor*) 8870 # NAG Fortran compiler 8871 lt_prog_compiler_wl='-Wl,-Wl,,' 8872 lt_prog_compiler_pic='-PIC' 8873 lt_prog_compiler_static='-Bstatic' 8874 ;; 8875 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8876 # Portland Group compilers (*not* the Pentium gcc compiler, 8877 # which looks to be a dead project) 8878 lt_prog_compiler_wl='-Wl,' 8879 lt_prog_compiler_pic='-fpic' 8880 lt_prog_compiler_static='-Bstatic' 8881 ;; 8882 ccc*) 8883 lt_prog_compiler_wl='-Wl,' 8884 # All Alpha code is PIC. 8885 lt_prog_compiler_static='-non_shared' 8886 ;; 8887 xl* | bgxl* | bgf* | mpixl*) 8888 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8889 lt_prog_compiler_wl='-Wl,' 8890 lt_prog_compiler_pic='-qpic' 8891 lt_prog_compiler_static='-qstaticlink' 8892 ;; 8893 *) 8894 case `$CC -V 2>&1 | sed 5q` in 8895 *Sun\ F* | *Sun*Fortran*) 8896 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8897 lt_prog_compiler_pic='-KPIC' 8898 lt_prog_compiler_static='-Bstatic' 8899 lt_prog_compiler_wl='' 8900 ;; 8901 *Sun\ C*) 8902 # Sun C 5.9 8903 lt_prog_compiler_pic='-KPIC' 8904 lt_prog_compiler_static='-Bstatic' 8905 lt_prog_compiler_wl='-Wl,' 8906 ;; 8907 esac 8908 ;; 8909 esac 8910 ;; 8911 8912 newsos6) 8913 lt_prog_compiler_pic='-KPIC' 8914 lt_prog_compiler_static='-Bstatic' 8915 ;; 8916 8917 *nto* | *qnx*) 8918 # QNX uses GNU C++, but need to define -shared option too, otherwise 8919 # it will coredump. 8920 lt_prog_compiler_pic='-fPIC -shared' 8921 ;; 8922 8923 osf3* | osf4* | osf5*) 8924 lt_prog_compiler_wl='-Wl,' 8925 # All OSF/1 code is PIC. 8926 lt_prog_compiler_static='-non_shared' 8927 ;; 8928 8929 rdos*) 8930 lt_prog_compiler_static='-non_shared' 8931 ;; 8932 8933 solaris*) 8934 lt_prog_compiler_pic='-KPIC' 8935 lt_prog_compiler_static='-Bstatic' 8936 case $cc_basename in 8937 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8938 lt_prog_compiler_wl='-Qoption ld ';; 8939 *) 8940 lt_prog_compiler_wl='-Wl,';; 8941 esac 8942 ;; 8943 8944 sunos4*) 8945 lt_prog_compiler_wl='-Qoption ld ' 8946 lt_prog_compiler_pic='-PIC' 8947 lt_prog_compiler_static='-Bstatic' 8948 ;; 8949 8950 sysv4 | sysv4.2uw2* | sysv4.3*) 8951 lt_prog_compiler_wl='-Wl,' 8952 lt_prog_compiler_pic='-KPIC' 8953 lt_prog_compiler_static='-Bstatic' 8954 ;; 8955 8956 sysv4*MP*) 8957 if test -d /usr/nec ;then 8958 lt_prog_compiler_pic='-Kconform_pic' 8959 lt_prog_compiler_static='-Bstatic' 8960 fi 8961 ;; 8962 8963 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8964 lt_prog_compiler_wl='-Wl,' 8965 lt_prog_compiler_pic='-KPIC' 8966 lt_prog_compiler_static='-Bstatic' 8967 ;; 8968 8969 unicos*) 8970 lt_prog_compiler_wl='-Wl,' 8971 lt_prog_compiler_can_build_shared=no 8972 ;; 8973 8974 uts4*) 8975 lt_prog_compiler_pic='-pic' 8976 lt_prog_compiler_static='-Bstatic' 8977 ;; 8978 8979 *) 8980 lt_prog_compiler_can_build_shared=no 8981 ;; 8982 esac 8983 fi 8984 8985case $host_os in 8986 # For platforms which do not support PIC, -DPIC is meaningless: 8987 *djgpp*) 8988 lt_prog_compiler_pic= 8989 ;; 8990 *) 8991 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8992 ;; 8993esac 8994 8995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8996$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8997if ${lt_cv_prog_compiler_pic+:} false; then : 8998 $as_echo_n "(cached) " >&6 8999else 9000 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9001fi 9002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9003$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9004lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9005 9006# 9007# Check to make sure the PIC flag actually works. 9008# 9009if test -n "$lt_prog_compiler_pic"; then 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9011$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9012if ${lt_cv_prog_compiler_pic_works+:} false; then : 9013 $as_echo_n "(cached) " >&6 9014else 9015 lt_cv_prog_compiler_pic_works=no 9016 ac_outfile=conftest.$ac_objext 9017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9018 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9019 # Insert the option either (1) after the last *FLAGS variable, or 9020 # (2) before a word containing "conftest.", or (3) at the end. 9021 # Note that $ac_compile itself does not contain backslashes and begins 9022 # with a dollar sign (not a hyphen), so the echo should work correctly. 9023 # The option is referenced via a variable to avoid confusing sed. 9024 lt_compile=`echo "$ac_compile" | $SED \ 9025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9027 -e 's:$: $lt_compiler_flag:'` 9028 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9029 (eval "$lt_compile" 2>conftest.err) 9030 ac_status=$? 9031 cat conftest.err >&5 9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9033 if (exit $ac_status) && test -s "$ac_outfile"; then 9034 # The compiler can only warn and ignore the option if not recognized 9035 # So say no if there are warnings other than the usual output. 9036 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9038 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9039 lt_cv_prog_compiler_pic_works=yes 9040 fi 9041 fi 9042 $RM conftest* 9043 9044fi 9045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9046$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9047 9048if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9049 case $lt_prog_compiler_pic in 9050 "" | " "*) ;; 9051 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9052 esac 9053else 9054 lt_prog_compiler_pic= 9055 lt_prog_compiler_can_build_shared=no 9056fi 9057 9058fi 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070# 9071# Check to make sure the static flag actually works. 9072# 9073wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9075$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9076if ${lt_cv_prog_compiler_static_works+:} false; then : 9077 $as_echo_n "(cached) " >&6 9078else 9079 lt_cv_prog_compiler_static_works=no 9080 save_LDFLAGS="$LDFLAGS" 9081 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9082 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9083 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9084 # The linker can only warn and ignore the option if not recognized 9085 # So say no if there are warnings 9086 if test -s conftest.err; then 9087 # Append any errors to the config.log. 9088 cat conftest.err 1>&5 9089 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9091 if diff conftest.exp conftest.er2 >/dev/null; then 9092 lt_cv_prog_compiler_static_works=yes 9093 fi 9094 else 9095 lt_cv_prog_compiler_static_works=yes 9096 fi 9097 fi 9098 $RM -r conftest* 9099 LDFLAGS="$save_LDFLAGS" 9100 9101fi 9102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9103$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9104 9105if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9106 : 9107else 9108 lt_prog_compiler_static= 9109fi 9110 9111 9112 9113 9114 9115 9116 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9118$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9119if ${lt_cv_prog_compiler_c_o+:} false; then : 9120 $as_echo_n "(cached) " >&6 9121else 9122 lt_cv_prog_compiler_c_o=no 9123 $RM -r conftest 2>/dev/null 9124 mkdir conftest 9125 cd conftest 9126 mkdir out 9127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9128 9129 lt_compiler_flag="-o out/conftest2.$ac_objext" 9130 # Insert the option either (1) after the last *FLAGS variable, or 9131 # (2) before a word containing "conftest.", or (3) at the end. 9132 # Note that $ac_compile itself does not contain backslashes and begins 9133 # with a dollar sign (not a hyphen), so the echo should work correctly. 9134 lt_compile=`echo "$ac_compile" | $SED \ 9135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9137 -e 's:$: $lt_compiler_flag:'` 9138 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9139 (eval "$lt_compile" 2>out/conftest.err) 9140 ac_status=$? 9141 cat out/conftest.err >&5 9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9143 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9144 then 9145 # The compiler can only warn and ignore the option if not recognized 9146 # So say no if there are warnings 9147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9148 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9149 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9150 lt_cv_prog_compiler_c_o=yes 9151 fi 9152 fi 9153 chmod u+w . 2>&5 9154 $RM conftest* 9155 # SGI C++ compiler will create directory out/ii_files/ for 9156 # template instantiation 9157 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9158 $RM out/* && rmdir out 9159 cd .. 9160 $RM -r conftest 9161 $RM conftest* 9162 9163fi 9164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9165$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9166 9167 9168 9169 9170 9171 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9173$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9174if ${lt_cv_prog_compiler_c_o+:} false; then : 9175 $as_echo_n "(cached) " >&6 9176else 9177 lt_cv_prog_compiler_c_o=no 9178 $RM -r conftest 2>/dev/null 9179 mkdir conftest 9180 cd conftest 9181 mkdir out 9182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9183 9184 lt_compiler_flag="-o out/conftest2.$ac_objext" 9185 # Insert the option either (1) after the last *FLAGS variable, or 9186 # (2) before a word containing "conftest.", or (3) at the end. 9187 # Note that $ac_compile itself does not contain backslashes and begins 9188 # with a dollar sign (not a hyphen), so the echo should work correctly. 9189 lt_compile=`echo "$ac_compile" | $SED \ 9190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9192 -e 's:$: $lt_compiler_flag:'` 9193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9194 (eval "$lt_compile" 2>out/conftest.err) 9195 ac_status=$? 9196 cat out/conftest.err >&5 9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9198 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9199 then 9200 # The compiler can only warn and ignore the option if not recognized 9201 # So say no if there are warnings 9202 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9203 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9204 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9205 lt_cv_prog_compiler_c_o=yes 9206 fi 9207 fi 9208 chmod u+w . 2>&5 9209 $RM conftest* 9210 # SGI C++ compiler will create directory out/ii_files/ for 9211 # template instantiation 9212 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9213 $RM out/* && rmdir out 9214 cd .. 9215 $RM -r conftest 9216 $RM conftest* 9217 9218fi 9219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9220$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9221 9222 9223 9224 9225hard_links="nottested" 9226if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9227 # do not overwrite the value of need_locks provided by the user 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9229$as_echo_n "checking if we can lock with hard links... " >&6; } 9230 hard_links=yes 9231 $RM conftest* 9232 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9233 touch conftest.a 9234 ln conftest.a conftest.b 2>&5 || hard_links=no 9235 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9237$as_echo "$hard_links" >&6; } 9238 if test "$hard_links" = no; then 9239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9240$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9241 need_locks=warn 9242 fi 9243else 9244 need_locks=no 9245fi 9246 9247 9248 9249 9250 9251 9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9253$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9254 9255 runpath_var= 9256 allow_undefined_flag= 9257 always_export_symbols=no 9258 archive_cmds= 9259 archive_expsym_cmds= 9260 compiler_needs_object=no 9261 enable_shared_with_static_runtimes=no 9262 export_dynamic_flag_spec= 9263 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9264 hardcode_automatic=no 9265 hardcode_direct=no 9266 hardcode_direct_absolute=no 9267 hardcode_libdir_flag_spec= 9268 hardcode_libdir_flag_spec_ld= 9269 hardcode_libdir_separator= 9270 hardcode_minus_L=no 9271 hardcode_shlibpath_var=unsupported 9272 inherit_rpath=no 9273 link_all_deplibs=unknown 9274 module_cmds= 9275 module_expsym_cmds= 9276 old_archive_from_new_cmds= 9277 old_archive_from_expsyms_cmds= 9278 thread_safe_flag_spec= 9279 whole_archive_flag_spec= 9280 # include_expsyms should be a list of space-separated symbols to be *always* 9281 # included in the symbol list 9282 include_expsyms= 9283 # exclude_expsyms can be an extended regexp of symbols to exclude 9284 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9285 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9286 # as well as any symbol that contains `d'. 9287 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9288 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9289 # platforms (ab)use it in PIC code, but their linkers get confused if 9290 # the symbol is explicitly referenced. Since portable code cannot 9291 # rely on this symbol name, it's probably fine to never include it in 9292 # preloaded symbol tables. 9293 # Exclude shared library initialization/finalization symbols. 9294 extract_expsyms_cmds= 9295 9296 case $host_os in 9297 cygwin* | mingw* | pw32* | cegcc*) 9298 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9299 # When not using gcc, we currently assume that we are using 9300 # Microsoft Visual C++. 9301 if test "$GCC" != yes; then 9302 with_gnu_ld=no 9303 fi 9304 ;; 9305 interix*) 9306 # we just hope/assume this is gcc and not c89 (= MSVC++) 9307 with_gnu_ld=yes 9308 ;; 9309 openbsd*) 9310 with_gnu_ld=no 9311 ;; 9312 esac 9313 9314 ld_shlibs=yes 9315 9316 # On some targets, GNU ld is compatible enough with the native linker 9317 # that we're better off using the native interface for both. 9318 lt_use_gnu_ld_interface=no 9319 if test "$with_gnu_ld" = yes; then 9320 case $host_os in 9321 aix*) 9322 # The AIX port of GNU ld has always aspired to compatibility 9323 # with the native linker. However, as the warning in the GNU ld 9324 # block says, versions before 2.19.5* couldn't really create working 9325 # shared libraries, regardless of the interface used. 9326 case `$LD -v 2>&1` in 9327 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9328 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9329 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9330 *) 9331 lt_use_gnu_ld_interface=yes 9332 ;; 9333 esac 9334 ;; 9335 *) 9336 lt_use_gnu_ld_interface=yes 9337 ;; 9338 esac 9339 fi 9340 9341 if test "$lt_use_gnu_ld_interface" = yes; then 9342 # If archive_cmds runs LD, not CC, wlarc should be empty 9343 wlarc='${wl}' 9344 9345 # Set some defaults for GNU ld with shared library support. These 9346 # are reset later if shared libraries are not supported. Putting them 9347 # here allows them to be overridden if necessary. 9348 runpath_var=LD_RUN_PATH 9349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9350 export_dynamic_flag_spec='${wl}--export-dynamic' 9351 # ancient GNU ld didn't support --whole-archive et. al. 9352 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9353 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9354 else 9355 whole_archive_flag_spec= 9356 fi 9357 supports_anon_versioning=no 9358 case `$LD -v 2>&1` in 9359 *GNU\ gold*) supports_anon_versioning=yes ;; 9360 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9361 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9362 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9363 *\ 2.11.*) ;; # other 2.11 versions 9364 *) supports_anon_versioning=yes ;; 9365 esac 9366 9367 # See if GNU ld supports shared libraries. 9368 case $host_os in 9369 aix[3-9]*) 9370 # On AIX/PPC, the GNU linker is very broken 9371 if test "$host_cpu" != ia64; then 9372 ld_shlibs=no 9373 cat <<_LT_EOF 1>&2 9374 9375*** Warning: the GNU linker, at least up to release 2.19, is reported 9376*** to be unable to reliably create shared libraries on AIX. 9377*** Therefore, libtool is disabling shared libraries support. If you 9378*** really care for shared libraries, you may want to install binutils 9379*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9380*** You will then need to restart the configuration process. 9381 9382_LT_EOF 9383 fi 9384 ;; 9385 9386 amigaos*) 9387 case $host_cpu in 9388 powerpc) 9389 # see comment about AmigaOS4 .so support 9390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9391 archive_expsym_cmds='' 9392 ;; 9393 m68k) 9394 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)' 9395 hardcode_libdir_flag_spec='-L$libdir' 9396 hardcode_minus_L=yes 9397 ;; 9398 esac 9399 ;; 9400 9401 beos*) 9402 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9403 allow_undefined_flag=unsupported 9404 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9405 # support --undefined. This deserves some investigation. FIXME 9406 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9407 else 9408 ld_shlibs=no 9409 fi 9410 ;; 9411 9412 cygwin* | mingw* | pw32* | cegcc*) 9413 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9414 # as there is no search path for DLLs. 9415 hardcode_libdir_flag_spec='-L$libdir' 9416 export_dynamic_flag_spec='${wl}--export-all-symbols' 9417 allow_undefined_flag=unsupported 9418 always_export_symbols=no 9419 enable_shared_with_static_runtimes=yes 9420 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' 9421 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9422 9423 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9425 # If the export-symbols file already is a .def file (1st line 9426 # is EXPORTS), use it as is; otherwise, prepend... 9427 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9428 cp $export_symbols $output_objdir/$soname.def; 9429 else 9430 echo EXPORTS > $output_objdir/$soname.def; 9431 cat $export_symbols >> $output_objdir/$soname.def; 9432 fi~ 9433 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9434 else 9435 ld_shlibs=no 9436 fi 9437 ;; 9438 9439 haiku*) 9440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9441 link_all_deplibs=yes 9442 ;; 9443 9444 interix[3-9]*) 9445 hardcode_direct=no 9446 hardcode_shlibpath_var=no 9447 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9448 export_dynamic_flag_spec='${wl}-E' 9449 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9450 # Instead, shared libraries are loaded at an image base (0x10000000 by 9451 # default) and relocated if they conflict, which is a slow very memory 9452 # consuming and fragmenting process. To avoid this, we pick a random, 9453 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9454 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9455 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9456 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' 9457 ;; 9458 9459 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9460 tmp_diet=no 9461 if test "$host_os" = linux-dietlibc; then 9462 case $cc_basename in 9463 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9464 esac 9465 fi 9466 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9467 && test "$tmp_diet" = no 9468 then 9469 tmp_addflag=' $pic_flag' 9470 tmp_sharedflag='-shared' 9471 case $cc_basename,$host_cpu in 9472 pgcc*) # Portland Group C compiler 9473 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' 9474 tmp_addflag=' $pic_flag' 9475 ;; 9476 pgf77* | pgf90* | pgf95* | pgfortran*) 9477 # Portland Group f77 and f90 compilers 9478 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' 9479 tmp_addflag=' $pic_flag -Mnomain' ;; 9480 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9481 tmp_addflag=' -i_dynamic' ;; 9482 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9483 tmp_addflag=' -i_dynamic -nofor_main' ;; 9484 ifc* | ifort*) # Intel Fortran compiler 9485 tmp_addflag=' -nofor_main' ;; 9486 lf95*) # Lahey Fortran 8.1 9487 whole_archive_flag_spec= 9488 tmp_sharedflag='--shared' ;; 9489 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9490 tmp_sharedflag='-qmkshrobj' 9491 tmp_addflag= ;; 9492 nvcc*) # Cuda Compiler Driver 2.2 9493 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' 9494 compiler_needs_object=yes 9495 ;; 9496 esac 9497 case `$CC -V 2>&1 | sed 5q` in 9498 *Sun\ C*) # Sun C 5.9 9499 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' 9500 compiler_needs_object=yes 9501 tmp_sharedflag='-G' ;; 9502 *Sun\ F*) # Sun Fortran 8.3 9503 tmp_sharedflag='-G' ;; 9504 esac 9505 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9506 9507 if test "x$supports_anon_versioning" = xyes; then 9508 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9509 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9510 echo "local: *; };" >> $output_objdir/$libname.ver~ 9511 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9512 fi 9513 9514 case $cc_basename in 9515 xlf* | bgf* | bgxlf* | mpixlf*) 9516 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9517 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9518 hardcode_libdir_flag_spec= 9519 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9520 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9521 if test "x$supports_anon_versioning" = xyes; then 9522 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9523 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9524 echo "local: *; };" >> $output_objdir/$libname.ver~ 9525 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9526 fi 9527 ;; 9528 esac 9529 else 9530 ld_shlibs=no 9531 fi 9532 ;; 9533 9534 netbsd*) 9535 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9536 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9537 wlarc= 9538 else 9539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9540 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9541 fi 9542 ;; 9543 9544 solaris*) 9545 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9546 ld_shlibs=no 9547 cat <<_LT_EOF 1>&2 9548 9549*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9550*** create shared libraries on Solaris systems. Therefore, libtool 9551*** is disabling shared libraries support. We urge you to upgrade GNU 9552*** binutils to release 2.9.1 or newer. Another option is to modify 9553*** your PATH or compiler configuration so that the native linker is 9554*** used, and then restart. 9555 9556_LT_EOF 9557 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9558 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9559 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9560 else 9561 ld_shlibs=no 9562 fi 9563 ;; 9564 9565 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9566 case `$LD -v 2>&1` in 9567 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9568 ld_shlibs=no 9569 cat <<_LT_EOF 1>&2 9570 9571*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9572*** reliably create shared libraries on SCO systems. Therefore, libtool 9573*** is disabling shared libraries support. We urge you to upgrade GNU 9574*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9575*** your PATH or compiler configuration so that the native linker is 9576*** used, and then restart. 9577 9578_LT_EOF 9579 ;; 9580 *) 9581 # For security reasons, it is highly recommended that you always 9582 # use absolute paths for naming shared libraries, and exclude the 9583 # DT_RUNPATH tag from executables and libraries. But doing so 9584 # requires that you compile everything twice, which is a pain. 9585 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9588 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9589 else 9590 ld_shlibs=no 9591 fi 9592 ;; 9593 esac 9594 ;; 9595 9596 sunos4*) 9597 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9598 wlarc= 9599 hardcode_direct=yes 9600 hardcode_shlibpath_var=no 9601 ;; 9602 9603 *) 9604 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9605 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9606 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9607 else 9608 ld_shlibs=no 9609 fi 9610 ;; 9611 esac 9612 9613 if test "$ld_shlibs" = no; then 9614 runpath_var= 9615 hardcode_libdir_flag_spec= 9616 export_dynamic_flag_spec= 9617 whole_archive_flag_spec= 9618 fi 9619 else 9620 # PORTME fill in a description of your system's linker (not GNU ld) 9621 case $host_os in 9622 aix3*) 9623 allow_undefined_flag=unsupported 9624 always_export_symbols=yes 9625 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' 9626 # Note: this linker hardcodes the directories in LIBPATH if there 9627 # are no directories specified by -L. 9628 hardcode_minus_L=yes 9629 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9630 # Neither direct hardcoding nor static linking is supported with a 9631 # broken collect2. 9632 hardcode_direct=unsupported 9633 fi 9634 ;; 9635 9636 aix[4-9]*) 9637 if test "$host_cpu" = ia64; then 9638 # On IA64, the linker does run time linking by default, so we don't 9639 # have to do anything special. 9640 aix_use_runtimelinking=no 9641 exp_sym_flag='-Bexport' 9642 no_entry_flag="" 9643 else 9644 # If we're using GNU nm, then we don't want the "-C" option. 9645 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9646 # Also, AIX nm treats weak defined symbols like other global 9647 # defined symbols, whereas GNU nm marks them as "W". 9648 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9649 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' 9650 else 9651 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' 9652 fi 9653 aix_use_runtimelinking=no 9654 9655 # Test if we are trying to use run time linking or normal 9656 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9657 # need to do runtime linking. 9658 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9659 for ld_flag in $LDFLAGS; do 9660 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9661 aix_use_runtimelinking=yes 9662 break 9663 fi 9664 done 9665 ;; 9666 esac 9667 9668 exp_sym_flag='-bexport' 9669 no_entry_flag='-bnoentry' 9670 fi 9671 9672 # When large executables or shared objects are built, AIX ld can 9673 # have problems creating the table of contents. If linking a library 9674 # or program results in "error TOC overflow" add -mminimal-toc to 9675 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9676 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9677 9678 archive_cmds='' 9679 hardcode_direct=yes 9680 hardcode_direct_absolute=yes 9681 hardcode_libdir_separator=':' 9682 link_all_deplibs=yes 9683 file_list_spec='${wl}-f,' 9684 9685 if test "$GCC" = yes; then 9686 case $host_os in aix4.[012]|aix4.[012].*) 9687 # We only want to do this on AIX 4.2 and lower, the check 9688 # below for broken collect2 doesn't work under 4.3+ 9689 collect2name=`${CC} -print-prog-name=collect2` 9690 if test -f "$collect2name" && 9691 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9692 then 9693 # We have reworked collect2 9694 : 9695 else 9696 # We have old collect2 9697 hardcode_direct=unsupported 9698 # It fails to find uninstalled libraries when the uninstalled 9699 # path is not listed in the libpath. Setting hardcode_minus_L 9700 # to unsupported forces relinking 9701 hardcode_minus_L=yes 9702 hardcode_libdir_flag_spec='-L$libdir' 9703 hardcode_libdir_separator= 9704 fi 9705 ;; 9706 esac 9707 shared_flag='-shared' 9708 if test "$aix_use_runtimelinking" = yes; then 9709 shared_flag="$shared_flag "'${wl}-G' 9710 fi 9711 else 9712 # not using gcc 9713 if test "$host_cpu" = ia64; then 9714 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9715 # chokes on -Wl,-G. The following line is correct: 9716 shared_flag='-G' 9717 else 9718 if test "$aix_use_runtimelinking" = yes; then 9719 shared_flag='${wl}-G' 9720 else 9721 shared_flag='${wl}-bM:SRE' 9722 fi 9723 fi 9724 fi 9725 9726 export_dynamic_flag_spec='${wl}-bexpall' 9727 # It seems that -bexpall does not export symbols beginning with 9728 # underscore (_), so it is better to generate a list of symbols to export. 9729 always_export_symbols=yes 9730 if test "$aix_use_runtimelinking" = yes; then 9731 # Warning - without using the other runtime loading flags (-brtl), 9732 # -berok will link without error, but may produce a broken library. 9733 allow_undefined_flag='-berok' 9734 # Determine the default libpath from the value encoded in an 9735 # empty executable. 9736 if test "${lt_cv_aix_libpath+set}" = set; then 9737 aix_libpath=$lt_cv_aix_libpath 9738else 9739 if ${lt_cv_aix_libpath_+:} false; then : 9740 $as_echo_n "(cached) " >&6 9741else 9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9743/* end confdefs.h. */ 9744 9745int 9746main () 9747{ 9748 9749 ; 9750 return 0; 9751} 9752_ACEOF 9753if ac_fn_c_try_link "$LINENO"; then : 9754 9755 lt_aix_libpath_sed=' 9756 /Import File Strings/,/^$/ { 9757 /^0/ { 9758 s/^0 *\([^ ]*\) *$/\1/ 9759 p 9760 } 9761 }' 9762 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9763 # Check for a 64-bit object if we didn't find anything. 9764 if test -z "$lt_cv_aix_libpath_"; then 9765 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9766 fi 9767fi 9768rm -f core conftest.err conftest.$ac_objext \ 9769 conftest$ac_exeext conftest.$ac_ext 9770 if test -z "$lt_cv_aix_libpath_"; then 9771 lt_cv_aix_libpath_="/usr/lib:/lib" 9772 fi 9773 9774fi 9775 9776 aix_libpath=$lt_cv_aix_libpath_ 9777fi 9778 9779 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9780 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" 9781 else 9782 if test "$host_cpu" = ia64; then 9783 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9784 allow_undefined_flag="-z nodefs" 9785 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" 9786 else 9787 # Determine the default libpath from the value encoded in an 9788 # empty executable. 9789 if test "${lt_cv_aix_libpath+set}" = set; then 9790 aix_libpath=$lt_cv_aix_libpath 9791else 9792 if ${lt_cv_aix_libpath_+:} false; then : 9793 $as_echo_n "(cached) " >&6 9794else 9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9796/* end confdefs.h. */ 9797 9798int 9799main () 9800{ 9801 9802 ; 9803 return 0; 9804} 9805_ACEOF 9806if ac_fn_c_try_link "$LINENO"; then : 9807 9808 lt_aix_libpath_sed=' 9809 /Import File Strings/,/^$/ { 9810 /^0/ { 9811 s/^0 *\([^ ]*\) *$/\1/ 9812 p 9813 } 9814 }' 9815 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9816 # Check for a 64-bit object if we didn't find anything. 9817 if test -z "$lt_cv_aix_libpath_"; then 9818 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9819 fi 9820fi 9821rm -f core conftest.err conftest.$ac_objext \ 9822 conftest$ac_exeext conftest.$ac_ext 9823 if test -z "$lt_cv_aix_libpath_"; then 9824 lt_cv_aix_libpath_="/usr/lib:/lib" 9825 fi 9826 9827fi 9828 9829 aix_libpath=$lt_cv_aix_libpath_ 9830fi 9831 9832 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9833 # Warning - without using the other run time loading flags, 9834 # -berok will link without error, but may produce a broken library. 9835 no_undefined_flag=' ${wl}-bernotok' 9836 allow_undefined_flag=' ${wl}-berok' 9837 if test "$with_gnu_ld" = yes; then 9838 # We only use this code for GNU lds that support --whole-archive. 9839 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9840 else 9841 # Exported symbols can be pulled into shared objects from archives 9842 whole_archive_flag_spec='$convenience' 9843 fi 9844 archive_cmds_need_lc=yes 9845 # This is similar to how AIX traditionally builds its shared libraries. 9846 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' 9847 fi 9848 fi 9849 ;; 9850 9851 amigaos*) 9852 case $host_cpu in 9853 powerpc) 9854 # see comment about AmigaOS4 .so support 9855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9856 archive_expsym_cmds='' 9857 ;; 9858 m68k) 9859 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)' 9860 hardcode_libdir_flag_spec='-L$libdir' 9861 hardcode_minus_L=yes 9862 ;; 9863 esac 9864 ;; 9865 9866 bsdi[45]*) 9867 export_dynamic_flag_spec=-rdynamic 9868 ;; 9869 9870 cygwin* | mingw* | pw32* | cegcc*) 9871 # When not using gcc, we currently assume that we are using 9872 # Microsoft Visual C++. 9873 # hardcode_libdir_flag_spec is actually meaningless, as there is 9874 # no search path for DLLs. 9875 case $cc_basename in 9876 cl*) 9877 # Native MSVC 9878 hardcode_libdir_flag_spec=' ' 9879 allow_undefined_flag=unsupported 9880 always_export_symbols=yes 9881 file_list_spec='@' 9882 # Tell ltmain to make .lib files, not .a files. 9883 libext=lib 9884 # Tell ltmain to make .dll files, not .so files. 9885 shrext_cmds=".dll" 9886 # FIXME: Setting linknames here is a bad hack. 9887 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9888 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9889 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9890 else 9891 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9892 fi~ 9893 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9894 linknames=' 9895 # The linker will not automatically build a static lib if we build a DLL. 9896 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9897 enable_shared_with_static_runtimes=yes 9898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9899 # Don't use ranlib 9900 old_postinstall_cmds='chmod 644 $oldlib' 9901 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9902 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9903 case $lt_outputfile in 9904 *.exe|*.EXE) ;; 9905 *) 9906 lt_outputfile="$lt_outputfile.exe" 9907 lt_tool_outputfile="$lt_tool_outputfile.exe" 9908 ;; 9909 esac~ 9910 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9911 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9912 $RM "$lt_outputfile.manifest"; 9913 fi' 9914 ;; 9915 *) 9916 # Assume MSVC wrapper 9917 hardcode_libdir_flag_spec=' ' 9918 allow_undefined_flag=unsupported 9919 # Tell ltmain to make .lib files, not .a files. 9920 libext=lib 9921 # Tell ltmain to make .dll files, not .so files. 9922 shrext_cmds=".dll" 9923 # FIXME: Setting linknames here is a bad hack. 9924 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9925 # The linker will automatically build a .lib file if we build a DLL. 9926 old_archive_from_new_cmds='true' 9927 # FIXME: Should let the user specify the lib program. 9928 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9929 enable_shared_with_static_runtimes=yes 9930 ;; 9931 esac 9932 ;; 9933 9934 darwin* | rhapsody*) 9935 9936 9937 archive_cmds_need_lc=no 9938 hardcode_direct=no 9939 hardcode_automatic=yes 9940 hardcode_shlibpath_var=unsupported 9941 if test "$lt_cv_ld_force_load" = "yes"; then 9942 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\"`' 9943 else 9944 whole_archive_flag_spec='' 9945 fi 9946 link_all_deplibs=yes 9947 allow_undefined_flag="$_lt_dar_allow_undefined" 9948 case $cc_basename in 9949 ifort*) _lt_dar_can_shared=yes ;; 9950 *) _lt_dar_can_shared=$GCC ;; 9951 esac 9952 if test "$_lt_dar_can_shared" = "yes"; then 9953 output_verbose_link_cmd=func_echo_all 9954 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9955 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9956 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}" 9957 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}" 9958 9959 else 9960 ld_shlibs=no 9961 fi 9962 9963 ;; 9964 9965 dgux*) 9966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9967 hardcode_libdir_flag_spec='-L$libdir' 9968 hardcode_shlibpath_var=no 9969 ;; 9970 9971 freebsd1*) 9972 ld_shlibs=no 9973 ;; 9974 9975 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9976 # support. Future versions do this automatically, but an explicit c++rt0.o 9977 # does not break anything, and helps significantly (at the cost of a little 9978 # extra space). 9979 freebsd2.2*) 9980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9981 hardcode_libdir_flag_spec='-R$libdir' 9982 hardcode_direct=yes 9983 hardcode_shlibpath_var=no 9984 ;; 9985 9986 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9987 freebsd2*) 9988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9989 hardcode_direct=yes 9990 hardcode_minus_L=yes 9991 hardcode_shlibpath_var=no 9992 ;; 9993 9994 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9995 freebsd* | dragonfly*) 9996 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9997 hardcode_libdir_flag_spec='-R$libdir' 9998 hardcode_direct=yes 9999 hardcode_shlibpath_var=no 10000 ;; 10001 10002 hpux9*) 10003 if test "$GCC" = yes; then 10004 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' 10005 else 10006 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' 10007 fi 10008 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10009 hardcode_libdir_separator=: 10010 hardcode_direct=yes 10011 10012 # hardcode_minus_L: Not really in the search PATH, 10013 # but as the default location of the library. 10014 hardcode_minus_L=yes 10015 export_dynamic_flag_spec='${wl}-E' 10016 ;; 10017 10018 hpux10*) 10019 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10020 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10021 else 10022 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10023 fi 10024 if test "$with_gnu_ld" = no; then 10025 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10026 hardcode_libdir_flag_spec_ld='+b $libdir' 10027 hardcode_libdir_separator=: 10028 hardcode_direct=yes 10029 hardcode_direct_absolute=yes 10030 export_dynamic_flag_spec='${wl}-E' 10031 # hardcode_minus_L: Not really in the search PATH, 10032 # but as the default location of the library. 10033 hardcode_minus_L=yes 10034 fi 10035 ;; 10036 10037 hpux11*) 10038 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10039 case $host_cpu in 10040 hppa*64*) 10041 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10042 ;; 10043 ia64*) 10044 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10045 ;; 10046 *) 10047 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10048 ;; 10049 esac 10050 else 10051 case $host_cpu in 10052 hppa*64*) 10053 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10054 ;; 10055 ia64*) 10056 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10057 ;; 10058 *) 10059 10060 # Older versions of the 11.00 compiler do not understand -b yet 10061 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10063$as_echo_n "checking if $CC understands -b... " >&6; } 10064if ${lt_cv_prog_compiler__b+:} false; then : 10065 $as_echo_n "(cached) " >&6 10066else 10067 lt_cv_prog_compiler__b=no 10068 save_LDFLAGS="$LDFLAGS" 10069 LDFLAGS="$LDFLAGS -b" 10070 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10071 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10072 # The linker can only warn and ignore the option if not recognized 10073 # So say no if there are warnings 10074 if test -s conftest.err; then 10075 # Append any errors to the config.log. 10076 cat conftest.err 1>&5 10077 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10079 if diff conftest.exp conftest.er2 >/dev/null; then 10080 lt_cv_prog_compiler__b=yes 10081 fi 10082 else 10083 lt_cv_prog_compiler__b=yes 10084 fi 10085 fi 10086 $RM -r conftest* 10087 LDFLAGS="$save_LDFLAGS" 10088 10089fi 10090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10091$as_echo "$lt_cv_prog_compiler__b" >&6; } 10092 10093if test x"$lt_cv_prog_compiler__b" = xyes; then 10094 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10095else 10096 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10097fi 10098 10099 ;; 10100 esac 10101 fi 10102 if test "$with_gnu_ld" = no; then 10103 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10104 hardcode_libdir_separator=: 10105 10106 case $host_cpu in 10107 hppa*64*|ia64*) 10108 hardcode_direct=no 10109 hardcode_shlibpath_var=no 10110 ;; 10111 *) 10112 hardcode_direct=yes 10113 hardcode_direct_absolute=yes 10114 export_dynamic_flag_spec='${wl}-E' 10115 10116 # hardcode_minus_L: Not really in the search PATH, 10117 # but as the default location of the library. 10118 hardcode_minus_L=yes 10119 ;; 10120 esac 10121 fi 10122 ;; 10123 10124 irix5* | irix6* | nonstopux*) 10125 if test "$GCC" = yes; then 10126 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' 10127 # Try to use the -exported_symbol ld option, if it does not 10128 # work, assume that -exports_file does not work either and 10129 # implicitly export all symbols. 10130 # This should be the same for all languages, so no per-tag cache variable. 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10132$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10133if ${lt_cv_irix_exported_symbol+:} false; then : 10134 $as_echo_n "(cached) " >&6 10135else 10136 save_LDFLAGS="$LDFLAGS" 10137 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10139/* end confdefs.h. */ 10140int foo (void) { return 0; } 10141_ACEOF 10142if ac_fn_c_try_link "$LINENO"; then : 10143 lt_cv_irix_exported_symbol=yes 10144else 10145 lt_cv_irix_exported_symbol=no 10146fi 10147rm -f core conftest.err conftest.$ac_objext \ 10148 conftest$ac_exeext conftest.$ac_ext 10149 LDFLAGS="$save_LDFLAGS" 10150fi 10151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10152$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10153 if test "$lt_cv_irix_exported_symbol" = yes; then 10154 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' 10155 fi 10156 else 10157 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' 10158 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' 10159 fi 10160 archive_cmds_need_lc='no' 10161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10162 hardcode_libdir_separator=: 10163 inherit_rpath=yes 10164 link_all_deplibs=yes 10165 ;; 10166 10167 netbsd*) 10168 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10169 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10170 else 10171 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10172 fi 10173 hardcode_libdir_flag_spec='-R$libdir' 10174 hardcode_direct=yes 10175 hardcode_shlibpath_var=no 10176 ;; 10177 10178 newsos6) 10179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10180 hardcode_direct=yes 10181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10182 hardcode_libdir_separator=: 10183 hardcode_shlibpath_var=no 10184 ;; 10185 10186 *nto* | *qnx*) 10187 ;; 10188 10189 openbsd*) 10190 if test -f /usr/libexec/ld.so; then 10191 hardcode_direct=yes 10192 hardcode_shlibpath_var=no 10193 hardcode_direct_absolute=yes 10194 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10195 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10196 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10197 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10198 export_dynamic_flag_spec='${wl}-E' 10199 else 10200 case $host_os in 10201 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10203 hardcode_libdir_flag_spec='-R$libdir' 10204 ;; 10205 *) 10206 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10207 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10208 ;; 10209 esac 10210 fi 10211 else 10212 ld_shlibs=no 10213 fi 10214 ;; 10215 10216 os2*) 10217 hardcode_libdir_flag_spec='-L$libdir' 10218 hardcode_minus_L=yes 10219 allow_undefined_flag=unsupported 10220 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' 10221 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10222 ;; 10223 10224 osf3*) 10225 if test "$GCC" = yes; then 10226 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10227 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' 10228 else 10229 allow_undefined_flag=' -expect_unresolved \*' 10230 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' 10231 fi 10232 archive_cmds_need_lc='no' 10233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10234 hardcode_libdir_separator=: 10235 ;; 10236 10237 osf4* | osf5*) # as osf3* with the addition of -msym flag 10238 if test "$GCC" = yes; then 10239 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10240 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' 10241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10242 else 10243 allow_undefined_flag=' -expect_unresolved \*' 10244 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' 10245 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~ 10246 $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' 10247 10248 # Both c and cxx compiler support -rpath directly 10249 hardcode_libdir_flag_spec='-rpath $libdir' 10250 fi 10251 archive_cmds_need_lc='no' 10252 hardcode_libdir_separator=: 10253 ;; 10254 10255 solaris*) 10256 no_undefined_flag=' -z defs' 10257 if test "$GCC" = yes; then 10258 wlarc='${wl}' 10259 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10260 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10261 $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' 10262 else 10263 case `$CC -V 2>&1` in 10264 *"Compilers 5.0"*) 10265 wlarc='' 10266 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10268 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10269 ;; 10270 *) 10271 wlarc='${wl}' 10272 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10273 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10274 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10275 ;; 10276 esac 10277 fi 10278 hardcode_libdir_flag_spec='-R$libdir' 10279 hardcode_shlibpath_var=no 10280 case $host_os in 10281 solaris2.[0-5] | solaris2.[0-5].*) ;; 10282 *) 10283 # The compiler driver will combine and reorder linker options, 10284 # but understands `-z linker_flag'. GCC discards it without `$wl', 10285 # but is careful enough not to reorder. 10286 # Supported since Solaris 2.6 (maybe 2.5.1?) 10287 if test "$GCC" = yes; then 10288 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10289 else 10290 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10291 fi 10292 ;; 10293 esac 10294 link_all_deplibs=yes 10295 ;; 10296 10297 sunos4*) 10298 if test "x$host_vendor" = xsequent; then 10299 # Use $CC to link under sequent, because it throws in some extra .o 10300 # files that make .init and .fini sections work. 10301 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10302 else 10303 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10304 fi 10305 hardcode_libdir_flag_spec='-L$libdir' 10306 hardcode_direct=yes 10307 hardcode_minus_L=yes 10308 hardcode_shlibpath_var=no 10309 ;; 10310 10311 sysv4) 10312 case $host_vendor in 10313 sni) 10314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10315 hardcode_direct=yes # is this really true??? 10316 ;; 10317 siemens) 10318 ## LD is ld it makes a PLAMLIB 10319 ## CC just makes a GrossModule. 10320 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10321 reload_cmds='$CC -r -o $output$reload_objs' 10322 hardcode_direct=no 10323 ;; 10324 motorola) 10325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10326 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10327 ;; 10328 esac 10329 runpath_var='LD_RUN_PATH' 10330 hardcode_shlibpath_var=no 10331 ;; 10332 10333 sysv4.3*) 10334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10335 hardcode_shlibpath_var=no 10336 export_dynamic_flag_spec='-Bexport' 10337 ;; 10338 10339 sysv4*MP*) 10340 if test -d /usr/nec; then 10341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10342 hardcode_shlibpath_var=no 10343 runpath_var=LD_RUN_PATH 10344 hardcode_runpath_var=yes 10345 ld_shlibs=yes 10346 fi 10347 ;; 10348 10349 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10350 no_undefined_flag='${wl}-z,text' 10351 archive_cmds_need_lc=no 10352 hardcode_shlibpath_var=no 10353 runpath_var='LD_RUN_PATH' 10354 10355 if test "$GCC" = yes; then 10356 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10357 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10358 else 10359 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10360 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10361 fi 10362 ;; 10363 10364 sysv5* | sco3.2v5* | sco5v6*) 10365 # Note: We can NOT use -z defs as we might desire, because we do not 10366 # link with -lc, and that would cause any symbols used from libc to 10367 # always be unresolved, which means just about no library would 10368 # ever link correctly. If we're not using GNU ld we use -z text 10369 # though, which does catch some bad symbols but isn't as heavy-handed 10370 # as -z defs. 10371 no_undefined_flag='${wl}-z,text' 10372 allow_undefined_flag='${wl}-z,nodefs' 10373 archive_cmds_need_lc=no 10374 hardcode_shlibpath_var=no 10375 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10376 hardcode_libdir_separator=':' 10377 link_all_deplibs=yes 10378 export_dynamic_flag_spec='${wl}-Bexport' 10379 runpath_var='LD_RUN_PATH' 10380 10381 if test "$GCC" = yes; then 10382 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10383 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10384 else 10385 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10386 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10387 fi 10388 ;; 10389 10390 uts4*) 10391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10392 hardcode_libdir_flag_spec='-L$libdir' 10393 hardcode_shlibpath_var=no 10394 ;; 10395 10396 *) 10397 ld_shlibs=no 10398 ;; 10399 esac 10400 10401 if test x$host_vendor = xsni; then 10402 case $host in 10403 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10404 export_dynamic_flag_spec='${wl}-Blargedynsym' 10405 ;; 10406 esac 10407 fi 10408 fi 10409 10410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10411$as_echo "$ld_shlibs" >&6; } 10412test "$ld_shlibs" = no && can_build_shared=no 10413 10414with_gnu_ld=$with_gnu_ld 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430# 10431# Do we need to explicitly link libc? 10432# 10433case "x$archive_cmds_need_lc" in 10434x|xyes) 10435 # Assume -lc should be added 10436 archive_cmds_need_lc=yes 10437 10438 if test "$enable_shared" = yes && test "$GCC" = yes; then 10439 case $archive_cmds in 10440 *'~'*) 10441 # FIXME: we may have to deal with multi-command sequences. 10442 ;; 10443 '$CC '*) 10444 # Test whether the compiler implicitly links with -lc since on some 10445 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10446 # to ld, don't add -lc before -lgcc. 10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10448$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10449if ${lt_cv_archive_cmds_need_lc+:} false; then : 10450 $as_echo_n "(cached) " >&6 10451else 10452 $RM conftest* 10453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10454 10455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10456 (eval $ac_compile) 2>&5 10457 ac_status=$? 10458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10459 test $ac_status = 0; } 2>conftest.err; then 10460 soname=conftest 10461 lib=conftest 10462 libobjs=conftest.$ac_objext 10463 deplibs= 10464 wl=$lt_prog_compiler_wl 10465 pic_flag=$lt_prog_compiler_pic 10466 compiler_flags=-v 10467 linker_flags=-v 10468 verstring= 10469 output_objdir=. 10470 libname=conftest 10471 lt_save_allow_undefined_flag=$allow_undefined_flag 10472 allow_undefined_flag= 10473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10474 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10475 ac_status=$? 10476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10477 test $ac_status = 0; } 10478 then 10479 lt_cv_archive_cmds_need_lc=no 10480 else 10481 lt_cv_archive_cmds_need_lc=yes 10482 fi 10483 allow_undefined_flag=$lt_save_allow_undefined_flag 10484 else 10485 cat conftest.err 1>&5 10486 fi 10487 $RM conftest* 10488 10489fi 10490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10491$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10492 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10493 ;; 10494 esac 10495 fi 10496 ;; 10497esac 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10656$as_echo_n "checking dynamic linker characteristics... " >&6; } 10657 10658if test "$GCC" = yes; then 10659 case $host_os in 10660 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10661 *) lt_awk_arg="/^libraries:/" ;; 10662 esac 10663 case $host_os in 10664 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10665 *) lt_sed_strip_eq="s,=/,/,g" ;; 10666 esac 10667 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10668 case $lt_search_path_spec in 10669 *\;*) 10670 # if the path contains ";" then we assume it to be the separator 10671 # otherwise default to the standard path separator (i.e. ":") - it is 10672 # assumed that no part of a normal pathname contains ";" but that should 10673 # okay in the real world where ";" in dirpaths is itself problematic. 10674 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10675 ;; 10676 *) 10677 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10678 ;; 10679 esac 10680 # Ok, now we have the path, separated by spaces, we can step through it 10681 # and add multilib dir if necessary. 10682 lt_tmp_lt_search_path_spec= 10683 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10684 for lt_sys_path in $lt_search_path_spec; do 10685 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10686 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10687 else 10688 test -d "$lt_sys_path" && \ 10689 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10690 fi 10691 done 10692 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10693BEGIN {RS=" "; FS="/|\n";} { 10694 lt_foo=""; 10695 lt_count=0; 10696 for (lt_i = NF; lt_i > 0; lt_i--) { 10697 if ($lt_i != "" && $lt_i != ".") { 10698 if ($lt_i == "..") { 10699 lt_count++; 10700 } else { 10701 if (lt_count == 0) { 10702 lt_foo="/" $lt_i lt_foo; 10703 } else { 10704 lt_count--; 10705 } 10706 } 10707 } 10708 } 10709 if (lt_foo != "") { lt_freq[lt_foo]++; } 10710 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10711}'` 10712 # AWK program above erroneously prepends '/' to C:/dos/paths 10713 # for these hosts. 10714 case $host_os in 10715 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10716 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10717 esac 10718 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10719else 10720 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10721fi 10722library_names_spec= 10723libname_spec='lib$name' 10724soname_spec= 10725shrext_cmds=".so" 10726postinstall_cmds= 10727postuninstall_cmds= 10728finish_cmds= 10729finish_eval= 10730shlibpath_var= 10731shlibpath_overrides_runpath=unknown 10732version_type=none 10733dynamic_linker="$host_os ld.so" 10734sys_lib_dlsearch_path_spec="/lib /usr/lib" 10735need_lib_prefix=unknown 10736hardcode_into_libs=no 10737 10738# when you set need_version to no, make sure it does not cause -set_version 10739# flags to be left without arguments 10740need_version=unknown 10741 10742case $host_os in 10743aix3*) 10744 version_type=linux 10745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10746 shlibpath_var=LIBPATH 10747 10748 # AIX 3 has no versioning support, so we append a major version to the name. 10749 soname_spec='${libname}${release}${shared_ext}$major' 10750 ;; 10751 10752aix[4-9]*) 10753 version_type=linux 10754 need_lib_prefix=no 10755 need_version=no 10756 hardcode_into_libs=yes 10757 if test "$host_cpu" = ia64; then 10758 # AIX 5 supports IA64 10759 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10760 shlibpath_var=LD_LIBRARY_PATH 10761 else 10762 # With GCC up to 2.95.x, collect2 would create an import file 10763 # for dependence libraries. The import file would start with 10764 # the line `#! .'. This would cause the generated library to 10765 # depend on `.', always an invalid library. This was fixed in 10766 # development snapshots of GCC prior to 3.0. 10767 case $host_os in 10768 aix4 | aix4.[01] | aix4.[01].*) 10769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10770 echo ' yes ' 10771 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10772 : 10773 else 10774 can_build_shared=no 10775 fi 10776 ;; 10777 esac 10778 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10779 # soname into executable. Probably we can add versioning support to 10780 # collect2, so additional links can be useful in future. 10781 if test "$aix_use_runtimelinking" = yes; then 10782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10783 # instead of lib<name>.a to let people know that these are not 10784 # typical AIX shared libraries. 10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10786 else 10787 # We preserve .a as extension for shared libraries through AIX4.2 10788 # and later when we are not doing run time linking. 10789 library_names_spec='${libname}${release}.a $libname.a' 10790 soname_spec='${libname}${release}${shared_ext}$major' 10791 fi 10792 shlibpath_var=LIBPATH 10793 fi 10794 ;; 10795 10796amigaos*) 10797 case $host_cpu in 10798 powerpc) 10799 # Since July 2007 AmigaOS4 officially supports .so libraries. 10800 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10802 ;; 10803 m68k) 10804 library_names_spec='$libname.ixlibrary $libname.a' 10805 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10806 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' 10807 ;; 10808 esac 10809 ;; 10810 10811beos*) 10812 library_names_spec='${libname}${shared_ext}' 10813 dynamic_linker="$host_os ld.so" 10814 shlibpath_var=LIBRARY_PATH 10815 ;; 10816 10817bsdi[45]*) 10818 version_type=linux 10819 need_version=no 10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10821 soname_spec='${libname}${release}${shared_ext}$major' 10822 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10823 shlibpath_var=LD_LIBRARY_PATH 10824 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10825 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10826 # the default ld.so.conf also contains /usr/contrib/lib and 10827 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10828 # libtool to hard-code these into programs 10829 ;; 10830 10831cygwin* | mingw* | pw32* | cegcc*) 10832 version_type=windows 10833 shrext_cmds=".dll" 10834 need_version=no 10835 need_lib_prefix=no 10836 10837 case $GCC,$cc_basename in 10838 yes,*) 10839 # gcc 10840 library_names_spec='$libname.dll.a' 10841 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10842 postinstall_cmds='base_file=`basename \${file}`~ 10843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10844 dldir=$destdir/`dirname \$dlpath`~ 10845 test -d \$dldir || mkdir -p \$dldir~ 10846 $install_prog $dir/$dlname \$dldir/$dlname~ 10847 chmod a+x \$dldir/$dlname~ 10848 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10849 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10850 fi' 10851 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10852 dlpath=$dir/\$dldll~ 10853 $RM \$dlpath' 10854 shlibpath_overrides_runpath=yes 10855 10856 case $host_os in 10857 cygwin*) 10858 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10859 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10860 10861 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10862 ;; 10863 mingw* | cegcc*) 10864 # MinGW DLLs use traditional 'lib' prefix 10865 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10866 ;; 10867 pw32*) 10868 # pw32 DLLs use 'pw' prefix rather than 'lib' 10869 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10870 ;; 10871 esac 10872 dynamic_linker='Win32 ld.exe' 10873 ;; 10874 10875 *,cl*) 10876 # Native MSVC 10877 libname_spec='$name' 10878 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10879 library_names_spec='${libname}.dll.lib' 10880 10881 case $build_os in 10882 mingw*) 10883 sys_lib_search_path_spec= 10884 lt_save_ifs=$IFS 10885 IFS=';' 10886 for lt_path in $LIB 10887 do 10888 IFS=$lt_save_ifs 10889 # Let DOS variable expansion print the short 8.3 style file name. 10890 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10891 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10892 done 10893 IFS=$lt_save_ifs 10894 # Convert to MSYS style. 10895 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10896 ;; 10897 cygwin*) 10898 # Convert to unix form, then to dos form, then back to unix form 10899 # but this time dos style (no spaces!) so that the unix form looks 10900 # like /cygdrive/c/PROGRA~1:/cygdr... 10901 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10902 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10903 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10904 ;; 10905 *) 10906 sys_lib_search_path_spec="$LIB" 10907 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10908 # It is most probably a Windows format PATH. 10909 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10910 else 10911 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10912 fi 10913 # FIXME: find the short name or the path components, as spaces are 10914 # common. (e.g. "Program Files" -> "PROGRA~1") 10915 ;; 10916 esac 10917 10918 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10919 postinstall_cmds='base_file=`basename \${file}`~ 10920 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10921 dldir=$destdir/`dirname \$dlpath`~ 10922 test -d \$dldir || mkdir -p \$dldir~ 10923 $install_prog $dir/$dlname \$dldir/$dlname' 10924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10925 dlpath=$dir/\$dldll~ 10926 $RM \$dlpath' 10927 shlibpath_overrides_runpath=yes 10928 dynamic_linker='Win32 link.exe' 10929 ;; 10930 10931 *) 10932 # Assume MSVC wrapper 10933 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10934 dynamic_linker='Win32 ld.exe' 10935 ;; 10936 esac 10937 # FIXME: first we should search . and the directory the executable is in 10938 shlibpath_var=PATH 10939 ;; 10940 10941darwin* | rhapsody*) 10942 dynamic_linker="$host_os dyld" 10943 version_type=darwin 10944 need_lib_prefix=no 10945 need_version=no 10946 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10947 soname_spec='${libname}${release}${major}$shared_ext' 10948 shlibpath_overrides_runpath=yes 10949 shlibpath_var=DYLD_LIBRARY_PATH 10950 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10951 10952 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10953 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10954 ;; 10955 10956dgux*) 10957 version_type=linux 10958 need_lib_prefix=no 10959 need_version=no 10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10961 soname_spec='${libname}${release}${shared_ext}$major' 10962 shlibpath_var=LD_LIBRARY_PATH 10963 ;; 10964 10965freebsd1*) 10966 dynamic_linker=no 10967 ;; 10968 10969freebsd* | dragonfly*) 10970 # DragonFly does not have aout. When/if they implement a new 10971 # versioning mechanism, adjust this. 10972 if test -x /usr/bin/objformat; then 10973 objformat=`/usr/bin/objformat` 10974 else 10975 case $host_os in 10976 freebsd[123]*) objformat=aout ;; 10977 *) objformat=elf ;; 10978 esac 10979 fi 10980 version_type=freebsd-$objformat 10981 case $version_type in 10982 freebsd-elf*) 10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10984 need_version=no 10985 need_lib_prefix=no 10986 ;; 10987 freebsd-*) 10988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10989 need_version=yes 10990 ;; 10991 esac 10992 shlibpath_var=LD_LIBRARY_PATH 10993 case $host_os in 10994 freebsd2*) 10995 shlibpath_overrides_runpath=yes 10996 ;; 10997 freebsd3.[01]* | freebsdelf3.[01]*) 10998 shlibpath_overrides_runpath=yes 10999 hardcode_into_libs=yes 11000 ;; 11001 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11002 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11003 shlibpath_overrides_runpath=no 11004 hardcode_into_libs=yes 11005 ;; 11006 *) # from 4.6 on, and DragonFly 11007 shlibpath_overrides_runpath=yes 11008 hardcode_into_libs=yes 11009 ;; 11010 esac 11011 ;; 11012 11013gnu*) 11014 version_type=linux 11015 need_lib_prefix=no 11016 need_version=no 11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11018 soname_spec='${libname}${release}${shared_ext}$major' 11019 shlibpath_var=LD_LIBRARY_PATH 11020 hardcode_into_libs=yes 11021 ;; 11022 11023haiku*) 11024 version_type=linux 11025 need_lib_prefix=no 11026 need_version=no 11027 dynamic_linker="$host_os runtime_loader" 11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11029 soname_spec='${libname}${release}${shared_ext}$major' 11030 shlibpath_var=LIBRARY_PATH 11031 shlibpath_overrides_runpath=yes 11032 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11033 hardcode_into_libs=yes 11034 ;; 11035 11036hpux9* | hpux10* | hpux11*) 11037 # Give a soname corresponding to the major version so that dld.sl refuses to 11038 # link against other versions. 11039 version_type=sunos 11040 need_lib_prefix=no 11041 need_version=no 11042 case $host_cpu in 11043 ia64*) 11044 shrext_cmds='.so' 11045 hardcode_into_libs=yes 11046 dynamic_linker="$host_os dld.so" 11047 shlibpath_var=LD_LIBRARY_PATH 11048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11050 soname_spec='${libname}${release}${shared_ext}$major' 11051 if test "X$HPUX_IA64_MODE" = X32; then 11052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11053 else 11054 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11055 fi 11056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11057 ;; 11058 hppa*64*) 11059 shrext_cmds='.sl' 11060 hardcode_into_libs=yes 11061 dynamic_linker="$host_os dld.sl" 11062 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11063 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11065 soname_spec='${libname}${release}${shared_ext}$major' 11066 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11068 ;; 11069 *) 11070 shrext_cmds='.sl' 11071 dynamic_linker="$host_os dld.sl" 11072 shlibpath_var=SHLIB_PATH 11073 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11075 soname_spec='${libname}${release}${shared_ext}$major' 11076 ;; 11077 esac 11078 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11079 postinstall_cmds='chmod 555 $lib' 11080 # or fails outright, so override atomically: 11081 install_override_mode=555 11082 ;; 11083 11084interix[3-9]*) 11085 version_type=linux 11086 need_lib_prefix=no 11087 need_version=no 11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11089 soname_spec='${libname}${release}${shared_ext}$major' 11090 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11091 shlibpath_var=LD_LIBRARY_PATH 11092 shlibpath_overrides_runpath=no 11093 hardcode_into_libs=yes 11094 ;; 11095 11096irix5* | irix6* | nonstopux*) 11097 case $host_os in 11098 nonstopux*) version_type=nonstopux ;; 11099 *) 11100 if test "$lt_cv_prog_gnu_ld" = yes; then 11101 version_type=linux 11102 else 11103 version_type=irix 11104 fi ;; 11105 esac 11106 need_lib_prefix=no 11107 need_version=no 11108 soname_spec='${libname}${release}${shared_ext}$major' 11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11110 case $host_os in 11111 irix5* | nonstopux*) 11112 libsuff= shlibsuff= 11113 ;; 11114 *) 11115 case $LD in # libtool.m4 will add one of these switches to LD 11116 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11117 libsuff= shlibsuff= libmagic=32-bit;; 11118 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11119 libsuff=32 shlibsuff=N32 libmagic=N32;; 11120 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11121 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11122 *) libsuff= shlibsuff= libmagic=never-match;; 11123 esac 11124 ;; 11125 esac 11126 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11127 shlibpath_overrides_runpath=no 11128 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11129 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11130 hardcode_into_libs=yes 11131 ;; 11132 11133# No shared lib support for Linux oldld, aout, or coff. 11134linux*oldld* | linux*aout* | linux*coff*) 11135 dynamic_linker=no 11136 ;; 11137 11138# This must be Linux ELF. 11139linux* | k*bsd*-gnu | kopensolaris*-gnu) 11140 version_type=linux 11141 need_lib_prefix=no 11142 need_version=no 11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11144 soname_spec='${libname}${release}${shared_ext}$major' 11145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11146 shlibpath_var=LD_LIBRARY_PATH 11147 shlibpath_overrides_runpath=no 11148 11149 # Some binutils ld are patched to set DT_RUNPATH 11150 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11151 $as_echo_n "(cached) " >&6 11152else 11153 lt_cv_shlibpath_overrides_runpath=no 11154 save_LDFLAGS=$LDFLAGS 11155 save_libdir=$libdir 11156 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11157 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11159/* end confdefs.h. */ 11160 11161int 11162main () 11163{ 11164 11165 ; 11166 return 0; 11167} 11168_ACEOF 11169if ac_fn_c_try_link "$LINENO"; then : 11170 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11171 lt_cv_shlibpath_overrides_runpath=yes 11172fi 11173fi 11174rm -f core conftest.err conftest.$ac_objext \ 11175 conftest$ac_exeext conftest.$ac_ext 11176 LDFLAGS=$save_LDFLAGS 11177 libdir=$save_libdir 11178 11179fi 11180 11181 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11182 11183 # This implies no fast_install, which is unacceptable. 11184 # Some rework will be needed to allow for fast_install 11185 # before this can be enabled. 11186 hardcode_into_libs=yes 11187 11188 # Append ld.so.conf contents to the search path 11189 if test -f /etc/ld.so.conf; then 11190 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' ' '` 11191 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11192 fi 11193 11194 # We used to test for /lib/ld.so.1 and disable shared libraries on 11195 # powerpc, because MkLinux only supported shared libraries with the 11196 # GNU dynamic linker. Since this was broken with cross compilers, 11197 # most powerpc-linux boxes support dynamic linking these days and 11198 # people can always --disable-shared, the test was removed, and we 11199 # assume the GNU/Linux dynamic linker is in use. 11200 dynamic_linker='GNU/Linux ld.so' 11201 ;; 11202 11203netbsd*) 11204 version_type=sunos 11205 need_lib_prefix=no 11206 need_version=no 11207 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11210 dynamic_linker='NetBSD (a.out) ld.so' 11211 else 11212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11213 soname_spec='${libname}${release}${shared_ext}$major' 11214 dynamic_linker='NetBSD ld.elf_so' 11215 fi 11216 shlibpath_var=LD_LIBRARY_PATH 11217 shlibpath_overrides_runpath=yes 11218 hardcode_into_libs=yes 11219 ;; 11220 11221newsos6) 11222 version_type=linux 11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11224 shlibpath_var=LD_LIBRARY_PATH 11225 shlibpath_overrides_runpath=yes 11226 ;; 11227 11228*nto* | *qnx*) 11229 version_type=qnx 11230 need_lib_prefix=no 11231 need_version=no 11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11233 soname_spec='${libname}${release}${shared_ext}$major' 11234 shlibpath_var=LD_LIBRARY_PATH 11235 shlibpath_overrides_runpath=no 11236 hardcode_into_libs=yes 11237 dynamic_linker='ldqnx.so' 11238 ;; 11239 11240openbsd*) 11241 version_type=sunos 11242 sys_lib_dlsearch_path_spec="/usr/lib" 11243 need_lib_prefix=no 11244 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11245 case $host_os in 11246 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11247 *) need_version=no ;; 11248 esac 11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11251 shlibpath_var=LD_LIBRARY_PATH 11252 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11253 case $host_os in 11254 openbsd2.[89] | openbsd2.[89].*) 11255 shlibpath_overrides_runpath=no 11256 ;; 11257 *) 11258 shlibpath_overrides_runpath=yes 11259 ;; 11260 esac 11261 else 11262 shlibpath_overrides_runpath=yes 11263 fi 11264 ;; 11265 11266os2*) 11267 libname_spec='$name' 11268 shrext_cmds=".dll" 11269 need_lib_prefix=no 11270 library_names_spec='$libname${shared_ext} $libname.a' 11271 dynamic_linker='OS/2 ld.exe' 11272 shlibpath_var=LIBPATH 11273 ;; 11274 11275osf3* | osf4* | osf5*) 11276 version_type=osf 11277 need_lib_prefix=no 11278 need_version=no 11279 soname_spec='${libname}${release}${shared_ext}$major' 11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11281 shlibpath_var=LD_LIBRARY_PATH 11282 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11283 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11284 ;; 11285 11286rdos*) 11287 dynamic_linker=no 11288 ;; 11289 11290solaris*) 11291 version_type=linux 11292 need_lib_prefix=no 11293 need_version=no 11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11295 soname_spec='${libname}${release}${shared_ext}$major' 11296 shlibpath_var=LD_LIBRARY_PATH 11297 shlibpath_overrides_runpath=yes 11298 hardcode_into_libs=yes 11299 # ldd complains unless libraries are executable 11300 postinstall_cmds='chmod +x $lib' 11301 ;; 11302 11303sunos4*) 11304 version_type=sunos 11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11306 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11307 shlibpath_var=LD_LIBRARY_PATH 11308 shlibpath_overrides_runpath=yes 11309 if test "$with_gnu_ld" = yes; then 11310 need_lib_prefix=no 11311 fi 11312 need_version=yes 11313 ;; 11314 11315sysv4 | sysv4.3*) 11316 version_type=linux 11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11318 soname_spec='${libname}${release}${shared_ext}$major' 11319 shlibpath_var=LD_LIBRARY_PATH 11320 case $host_vendor in 11321 sni) 11322 shlibpath_overrides_runpath=no 11323 need_lib_prefix=no 11324 runpath_var=LD_RUN_PATH 11325 ;; 11326 siemens) 11327 need_lib_prefix=no 11328 ;; 11329 motorola) 11330 need_lib_prefix=no 11331 need_version=no 11332 shlibpath_overrides_runpath=no 11333 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11334 ;; 11335 esac 11336 ;; 11337 11338sysv4*MP*) 11339 if test -d /usr/nec ;then 11340 version_type=linux 11341 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11342 soname_spec='$libname${shared_ext}.$major' 11343 shlibpath_var=LD_LIBRARY_PATH 11344 fi 11345 ;; 11346 11347sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11348 version_type=freebsd-elf 11349 need_lib_prefix=no 11350 need_version=no 11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11352 soname_spec='${libname}${release}${shared_ext}$major' 11353 shlibpath_var=LD_LIBRARY_PATH 11354 shlibpath_overrides_runpath=yes 11355 hardcode_into_libs=yes 11356 if test "$with_gnu_ld" = yes; then 11357 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11358 else 11359 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11360 case $host_os in 11361 sco3.2v5*) 11362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11363 ;; 11364 esac 11365 fi 11366 sys_lib_dlsearch_path_spec='/usr/lib' 11367 ;; 11368 11369tpf*) 11370 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11371 version_type=linux 11372 need_lib_prefix=no 11373 need_version=no 11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11375 shlibpath_var=LD_LIBRARY_PATH 11376 shlibpath_overrides_runpath=no 11377 hardcode_into_libs=yes 11378 ;; 11379 11380uts4*) 11381 version_type=linux 11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11383 soname_spec='${libname}${release}${shared_ext}$major' 11384 shlibpath_var=LD_LIBRARY_PATH 11385 ;; 11386 11387*) 11388 dynamic_linker=no 11389 ;; 11390esac 11391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11392$as_echo "$dynamic_linker" >&6; } 11393test "$dynamic_linker" = no && can_build_shared=no 11394 11395variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11396if test "$GCC" = yes; then 11397 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11398fi 11399 11400if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11401 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11402fi 11403if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11404 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11405fi 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11499$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11500hardcode_action= 11501if test -n "$hardcode_libdir_flag_spec" || 11502 test -n "$runpath_var" || 11503 test "X$hardcode_automatic" = "Xyes" ; then 11504 11505 # We can hardcode non-existent directories. 11506 if test "$hardcode_direct" != no && 11507 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11508 # have to relink, otherwise we might link with an installed library 11509 # when we should be linking with a yet-to-be-installed one 11510 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11511 test "$hardcode_minus_L" != no; then 11512 # Linking always hardcodes the temporary library directory. 11513 hardcode_action=relink 11514 else 11515 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11516 hardcode_action=immediate 11517 fi 11518else 11519 # We cannot hardcode anything, or else we can only hardcode existing 11520 # directories. 11521 hardcode_action=unsupported 11522fi 11523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11524$as_echo "$hardcode_action" >&6; } 11525 11526if test "$hardcode_action" = relink || 11527 test "$inherit_rpath" = yes; then 11528 # Fast installation is not supported 11529 enable_fast_install=no 11530elif test "$shlibpath_overrides_runpath" = yes || 11531 test "$enable_shared" = no; then 11532 # Fast installation is not necessary 11533 enable_fast_install=needless 11534fi 11535 11536 11537 11538 11539 11540 11541 if test "x$enable_dlopen" != xyes; then 11542 enable_dlopen=unknown 11543 enable_dlopen_self=unknown 11544 enable_dlopen_self_static=unknown 11545else 11546 lt_cv_dlopen=no 11547 lt_cv_dlopen_libs= 11548 11549 case $host_os in 11550 beos*) 11551 lt_cv_dlopen="load_add_on" 11552 lt_cv_dlopen_libs= 11553 lt_cv_dlopen_self=yes 11554 ;; 11555 11556 mingw* | pw32* | cegcc*) 11557 lt_cv_dlopen="LoadLibrary" 11558 lt_cv_dlopen_libs= 11559 ;; 11560 11561 cygwin*) 11562 lt_cv_dlopen="dlopen" 11563 lt_cv_dlopen_libs= 11564 ;; 11565 11566 darwin*) 11567 # if libdl is installed we need to link against it 11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11569$as_echo_n "checking for dlopen in -ldl... " >&6; } 11570if ${ac_cv_lib_dl_dlopen+:} false; then : 11571 $as_echo_n "(cached) " >&6 11572else 11573 ac_check_lib_save_LIBS=$LIBS 11574LIBS="-ldl $LIBS" 11575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11576/* end confdefs.h. */ 11577 11578/* Override any GCC internal prototype to avoid an error. 11579 Use char because int might match the return type of a GCC 11580 builtin and then its argument prototype would still apply. */ 11581#ifdef __cplusplus 11582extern "C" 11583#endif 11584char dlopen (); 11585int 11586main () 11587{ 11588return dlopen (); 11589 ; 11590 return 0; 11591} 11592_ACEOF 11593if ac_fn_c_try_link "$LINENO"; then : 11594 ac_cv_lib_dl_dlopen=yes 11595else 11596 ac_cv_lib_dl_dlopen=no 11597fi 11598rm -f core conftest.err conftest.$ac_objext \ 11599 conftest$ac_exeext conftest.$ac_ext 11600LIBS=$ac_check_lib_save_LIBS 11601fi 11602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11603$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11604if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11605 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11606else 11607 11608 lt_cv_dlopen="dyld" 11609 lt_cv_dlopen_libs= 11610 lt_cv_dlopen_self=yes 11611 11612fi 11613 11614 ;; 11615 11616 *) 11617 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11618if test "x$ac_cv_func_shl_load" = xyes; then : 11619 lt_cv_dlopen="shl_load" 11620else 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11622$as_echo_n "checking for shl_load in -ldld... " >&6; } 11623if ${ac_cv_lib_dld_shl_load+:} false; then : 11624 $as_echo_n "(cached) " >&6 11625else 11626 ac_check_lib_save_LIBS=$LIBS 11627LIBS="-ldld $LIBS" 11628cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11629/* end confdefs.h. */ 11630 11631/* Override any GCC internal prototype to avoid an error. 11632 Use char because int might match the return type of a GCC 11633 builtin and then its argument prototype would still apply. */ 11634#ifdef __cplusplus 11635extern "C" 11636#endif 11637char shl_load (); 11638int 11639main () 11640{ 11641return shl_load (); 11642 ; 11643 return 0; 11644} 11645_ACEOF 11646if ac_fn_c_try_link "$LINENO"; then : 11647 ac_cv_lib_dld_shl_load=yes 11648else 11649 ac_cv_lib_dld_shl_load=no 11650fi 11651rm -f core conftest.err conftest.$ac_objext \ 11652 conftest$ac_exeext conftest.$ac_ext 11653LIBS=$ac_check_lib_save_LIBS 11654fi 11655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11656$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11657if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11658 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11659else 11660 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11661if test "x$ac_cv_func_dlopen" = xyes; then : 11662 lt_cv_dlopen="dlopen" 11663else 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11665$as_echo_n "checking for dlopen in -ldl... " >&6; } 11666if ${ac_cv_lib_dl_dlopen+:} false; then : 11667 $as_echo_n "(cached) " >&6 11668else 11669 ac_check_lib_save_LIBS=$LIBS 11670LIBS="-ldl $LIBS" 11671cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11672/* end confdefs.h. */ 11673 11674/* Override any GCC internal prototype to avoid an error. 11675 Use char because int might match the return type of a GCC 11676 builtin and then its argument prototype would still apply. */ 11677#ifdef __cplusplus 11678extern "C" 11679#endif 11680char dlopen (); 11681int 11682main () 11683{ 11684return dlopen (); 11685 ; 11686 return 0; 11687} 11688_ACEOF 11689if ac_fn_c_try_link "$LINENO"; then : 11690 ac_cv_lib_dl_dlopen=yes 11691else 11692 ac_cv_lib_dl_dlopen=no 11693fi 11694rm -f core conftest.err conftest.$ac_objext \ 11695 conftest$ac_exeext conftest.$ac_ext 11696LIBS=$ac_check_lib_save_LIBS 11697fi 11698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11699$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11700if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11701 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11702else 11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11704$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11705if ${ac_cv_lib_svld_dlopen+:} false; then : 11706 $as_echo_n "(cached) " >&6 11707else 11708 ac_check_lib_save_LIBS=$LIBS 11709LIBS="-lsvld $LIBS" 11710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11711/* end confdefs.h. */ 11712 11713/* Override any GCC internal prototype to avoid an error. 11714 Use char because int might match the return type of a GCC 11715 builtin and then its argument prototype would still apply. */ 11716#ifdef __cplusplus 11717extern "C" 11718#endif 11719char dlopen (); 11720int 11721main () 11722{ 11723return dlopen (); 11724 ; 11725 return 0; 11726} 11727_ACEOF 11728if ac_fn_c_try_link "$LINENO"; then : 11729 ac_cv_lib_svld_dlopen=yes 11730else 11731 ac_cv_lib_svld_dlopen=no 11732fi 11733rm -f core conftest.err conftest.$ac_objext \ 11734 conftest$ac_exeext conftest.$ac_ext 11735LIBS=$ac_check_lib_save_LIBS 11736fi 11737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11738$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11739if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11741else 11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11743$as_echo_n "checking for dld_link in -ldld... " >&6; } 11744if ${ac_cv_lib_dld_dld_link+:} false; then : 11745 $as_echo_n "(cached) " >&6 11746else 11747 ac_check_lib_save_LIBS=$LIBS 11748LIBS="-ldld $LIBS" 11749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11750/* end confdefs.h. */ 11751 11752/* Override any GCC internal prototype to avoid an error. 11753 Use char because int might match the return type of a GCC 11754 builtin and then its argument prototype would still apply. */ 11755#ifdef __cplusplus 11756extern "C" 11757#endif 11758char dld_link (); 11759int 11760main () 11761{ 11762return dld_link (); 11763 ; 11764 return 0; 11765} 11766_ACEOF 11767if ac_fn_c_try_link "$LINENO"; then : 11768 ac_cv_lib_dld_dld_link=yes 11769else 11770 ac_cv_lib_dld_dld_link=no 11771fi 11772rm -f core conftest.err conftest.$ac_objext \ 11773 conftest$ac_exeext conftest.$ac_ext 11774LIBS=$ac_check_lib_save_LIBS 11775fi 11776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11777$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11778if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11779 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11780fi 11781 11782 11783fi 11784 11785 11786fi 11787 11788 11789fi 11790 11791 11792fi 11793 11794 11795fi 11796 11797 ;; 11798 esac 11799 11800 if test "x$lt_cv_dlopen" != xno; then 11801 enable_dlopen=yes 11802 else 11803 enable_dlopen=no 11804 fi 11805 11806 case $lt_cv_dlopen in 11807 dlopen) 11808 save_CPPFLAGS="$CPPFLAGS" 11809 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11810 11811 save_LDFLAGS="$LDFLAGS" 11812 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11813 11814 save_LIBS="$LIBS" 11815 LIBS="$lt_cv_dlopen_libs $LIBS" 11816 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11818$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11819if ${lt_cv_dlopen_self+:} false; then : 11820 $as_echo_n "(cached) " >&6 11821else 11822 if test "$cross_compiling" = yes; then : 11823 lt_cv_dlopen_self=cross 11824else 11825 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11826 lt_status=$lt_dlunknown 11827 cat > conftest.$ac_ext <<_LT_EOF 11828#line $LINENO "configure" 11829#include "confdefs.h" 11830 11831#if HAVE_DLFCN_H 11832#include <dlfcn.h> 11833#endif 11834 11835#include <stdio.h> 11836 11837#ifdef RTLD_GLOBAL 11838# define LT_DLGLOBAL RTLD_GLOBAL 11839#else 11840# ifdef DL_GLOBAL 11841# define LT_DLGLOBAL DL_GLOBAL 11842# else 11843# define LT_DLGLOBAL 0 11844# endif 11845#endif 11846 11847/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11848 find out it does not work in some platform. */ 11849#ifndef LT_DLLAZY_OR_NOW 11850# ifdef RTLD_LAZY 11851# define LT_DLLAZY_OR_NOW RTLD_LAZY 11852# else 11853# ifdef DL_LAZY 11854# define LT_DLLAZY_OR_NOW DL_LAZY 11855# else 11856# ifdef RTLD_NOW 11857# define LT_DLLAZY_OR_NOW RTLD_NOW 11858# else 11859# ifdef DL_NOW 11860# define LT_DLLAZY_OR_NOW DL_NOW 11861# else 11862# define LT_DLLAZY_OR_NOW 0 11863# endif 11864# endif 11865# endif 11866# endif 11867#endif 11868 11869/* When -fvisbility=hidden is used, assume the code has been annotated 11870 correspondingly for the symbols needed. */ 11871#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11872int fnord () __attribute__((visibility("default"))); 11873#endif 11874 11875int fnord () { return 42; } 11876int main () 11877{ 11878 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11879 int status = $lt_dlunknown; 11880 11881 if (self) 11882 { 11883 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11884 else 11885 { 11886 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11887 else puts (dlerror ()); 11888 } 11889 /* dlclose (self); */ 11890 } 11891 else 11892 puts (dlerror ()); 11893 11894 return status; 11895} 11896_LT_EOF 11897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11898 (eval $ac_link) 2>&5 11899 ac_status=$? 11900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11901 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11902 (./conftest; exit; ) >&5 2>/dev/null 11903 lt_status=$? 11904 case x$lt_status in 11905 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11906 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11907 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11908 esac 11909 else : 11910 # compilation failed 11911 lt_cv_dlopen_self=no 11912 fi 11913fi 11914rm -fr conftest* 11915 11916 11917fi 11918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11919$as_echo "$lt_cv_dlopen_self" >&6; } 11920 11921 if test "x$lt_cv_dlopen_self" = xyes; then 11922 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11924$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11925if ${lt_cv_dlopen_self_static+:} false; then : 11926 $as_echo_n "(cached) " >&6 11927else 11928 if test "$cross_compiling" = yes; then : 11929 lt_cv_dlopen_self_static=cross 11930else 11931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11932 lt_status=$lt_dlunknown 11933 cat > conftest.$ac_ext <<_LT_EOF 11934#line $LINENO "configure" 11935#include "confdefs.h" 11936 11937#if HAVE_DLFCN_H 11938#include <dlfcn.h> 11939#endif 11940 11941#include <stdio.h> 11942 11943#ifdef RTLD_GLOBAL 11944# define LT_DLGLOBAL RTLD_GLOBAL 11945#else 11946# ifdef DL_GLOBAL 11947# define LT_DLGLOBAL DL_GLOBAL 11948# else 11949# define LT_DLGLOBAL 0 11950# endif 11951#endif 11952 11953/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11954 find out it does not work in some platform. */ 11955#ifndef LT_DLLAZY_OR_NOW 11956# ifdef RTLD_LAZY 11957# define LT_DLLAZY_OR_NOW RTLD_LAZY 11958# else 11959# ifdef DL_LAZY 11960# define LT_DLLAZY_OR_NOW DL_LAZY 11961# else 11962# ifdef RTLD_NOW 11963# define LT_DLLAZY_OR_NOW RTLD_NOW 11964# else 11965# ifdef DL_NOW 11966# define LT_DLLAZY_OR_NOW DL_NOW 11967# else 11968# define LT_DLLAZY_OR_NOW 0 11969# endif 11970# endif 11971# endif 11972# endif 11973#endif 11974 11975/* When -fvisbility=hidden is used, assume the code has been annotated 11976 correspondingly for the symbols needed. */ 11977#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11978int fnord () __attribute__((visibility("default"))); 11979#endif 11980 11981int fnord () { return 42; } 11982int main () 11983{ 11984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11985 int status = $lt_dlunknown; 11986 11987 if (self) 11988 { 11989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11990 else 11991 { 11992 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11993 else puts (dlerror ()); 11994 } 11995 /* dlclose (self); */ 11996 } 11997 else 11998 puts (dlerror ()); 11999 12000 return status; 12001} 12002_LT_EOF 12003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12004 (eval $ac_link) 2>&5 12005 ac_status=$? 12006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12007 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12008 (./conftest; exit; ) >&5 2>/dev/null 12009 lt_status=$? 12010 case x$lt_status in 12011 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12012 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12013 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12014 esac 12015 else : 12016 # compilation failed 12017 lt_cv_dlopen_self_static=no 12018 fi 12019fi 12020rm -fr conftest* 12021 12022 12023fi 12024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12025$as_echo "$lt_cv_dlopen_self_static" >&6; } 12026 fi 12027 12028 CPPFLAGS="$save_CPPFLAGS" 12029 LDFLAGS="$save_LDFLAGS" 12030 LIBS="$save_LIBS" 12031 ;; 12032 esac 12033 12034 case $lt_cv_dlopen_self in 12035 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12036 *) enable_dlopen_self=unknown ;; 12037 esac 12038 12039 case $lt_cv_dlopen_self_static in 12040 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12041 *) enable_dlopen_self_static=unknown ;; 12042 esac 12043fi 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061striplib= 12062old_striplib= 12063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12064$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12065if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12066 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12067 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12069$as_echo "yes" >&6; } 12070else 12071# FIXME - insert some real tests, host_os isn't really good enough 12072 case $host_os in 12073 darwin*) 12074 if test -n "$STRIP" ; then 12075 striplib="$STRIP -x" 12076 old_striplib="$STRIP -S" 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12078$as_echo "yes" >&6; } 12079 else 12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12081$as_echo "no" >&6; } 12082 fi 12083 ;; 12084 *) 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12086$as_echo "no" >&6; } 12087 ;; 12088 esac 12089fi 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 # Report which library types will actually be built 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12104$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12106$as_echo "$can_build_shared" >&6; } 12107 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12109$as_echo_n "checking whether to build shared libraries... " >&6; } 12110 test "$can_build_shared" = "no" && enable_shared=no 12111 12112 # On AIX, shared libraries and static libraries use the same namespace, and 12113 # are all built from PIC. 12114 case $host_os in 12115 aix3*) 12116 test "$enable_shared" = yes && enable_static=no 12117 if test -n "$RANLIB"; then 12118 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12119 postinstall_cmds='$RANLIB $lib' 12120 fi 12121 ;; 12122 12123 aix[4-9]*) 12124 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12125 test "$enable_shared" = yes && enable_static=no 12126 fi 12127 ;; 12128 esac 12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12130$as_echo "$enable_shared" >&6; } 12131 12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12133$as_echo_n "checking whether to build static libraries... " >&6; } 12134 # Make sure either enable_shared or enable_static is yes. 12135 test "$enable_shared" = yes || enable_static=yes 12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12137$as_echo "$enable_static" >&6; } 12138 12139 12140 12141 12142fi 12143ac_ext=c 12144ac_cpp='$CPP $CPPFLAGS' 12145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12147ac_compiler_gnu=$ac_cv_c_compiler_gnu 12148 12149CC="$lt_save_CC" 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 ac_config_commands="$ac_config_commands libtool" 12164 12165 12166 12167 12168# Only expand once: 12169 12170 12171 12172 12173 12174 if test "$enable_samples" = "yes"; then 12175 BUILD_SAMPLES_TRUE= 12176 BUILD_SAMPLES_FALSE='#' 12177else 12178 BUILD_SAMPLES_TRUE='#' 12179 BUILD_SAMPLES_FALSE= 12180fi 12181 12182 if test "$enable_libevent_regress" = "yes"; then 12183 BUILD_REGRESS_TRUE= 12184 BUILD_REGRESS_FALSE='#' 12185else 12186 BUILD_REGRESS_TRUE='#' 12187 BUILD_REGRESS_FALSE= 12188fi 12189 12190 12191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 12192$as_echo_n "checking for library containing inet_ntoa... " >&6; } 12193if ${ac_cv_search_inet_ntoa+:} false; then : 12194 $as_echo_n "(cached) " >&6 12195else 12196 ac_func_search_save_LIBS=$LIBS 12197cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12198/* end confdefs.h. */ 12199 12200/* Override any GCC internal prototype to avoid an error. 12201 Use char because int might match the return type of a GCC 12202 builtin and then its argument prototype would still apply. */ 12203#ifdef __cplusplus 12204extern "C" 12205#endif 12206char inet_ntoa (); 12207int 12208main () 12209{ 12210return inet_ntoa (); 12211 ; 12212 return 0; 12213} 12214_ACEOF 12215for ac_lib in '' nsl; do 12216 if test -z "$ac_lib"; then 12217 ac_res="none required" 12218 else 12219 ac_res=-l$ac_lib 12220 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12221 fi 12222 if ac_fn_c_try_link "$LINENO"; then : 12223 ac_cv_search_inet_ntoa=$ac_res 12224fi 12225rm -f core conftest.err conftest.$ac_objext \ 12226 conftest$ac_exeext 12227 if ${ac_cv_search_inet_ntoa+:} false; then : 12228 break 12229fi 12230done 12231if ${ac_cv_search_inet_ntoa+:} false; then : 12232 12233else 12234 ac_cv_search_inet_ntoa=no 12235fi 12236rm conftest.$ac_ext 12237LIBS=$ac_func_search_save_LIBS 12238fi 12239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 12240$as_echo "$ac_cv_search_inet_ntoa" >&6; } 12241ac_res=$ac_cv_search_inet_ntoa 12242if test "$ac_res" != no; then : 12243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12244 12245fi 12246 12247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 12248$as_echo_n "checking for library containing socket... " >&6; } 12249if ${ac_cv_search_socket+:} false; then : 12250 $as_echo_n "(cached) " >&6 12251else 12252 ac_func_search_save_LIBS=$LIBS 12253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12254/* end confdefs.h. */ 12255 12256/* Override any GCC internal prototype to avoid an error. 12257 Use char because int might match the return type of a GCC 12258 builtin and then its argument prototype would still apply. */ 12259#ifdef __cplusplus 12260extern "C" 12261#endif 12262char socket (); 12263int 12264main () 12265{ 12266return socket (); 12267 ; 12268 return 0; 12269} 12270_ACEOF 12271for ac_lib in '' socket; do 12272 if test -z "$ac_lib"; then 12273 ac_res="none required" 12274 else 12275 ac_res=-l$ac_lib 12276 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12277 fi 12278 if ac_fn_c_try_link "$LINENO"; then : 12279 ac_cv_search_socket=$ac_res 12280fi 12281rm -f core conftest.err conftest.$ac_objext \ 12282 conftest$ac_exeext 12283 if ${ac_cv_search_socket+:} false; then : 12284 break 12285fi 12286done 12287if ${ac_cv_search_socket+:} false; then : 12288 12289else 12290 ac_cv_search_socket=no 12291fi 12292rm conftest.$ac_ext 12293LIBS=$ac_func_search_save_LIBS 12294fi 12295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 12296$as_echo "$ac_cv_search_socket" >&6; } 12297ac_res=$ac_cv_search_socket 12298if test "$ac_res" != no; then : 12299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12300 12301fi 12302 12303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 12304$as_echo_n "checking for library containing inet_aton... " >&6; } 12305if ${ac_cv_search_inet_aton+:} false; then : 12306 $as_echo_n "(cached) " >&6 12307else 12308 ac_func_search_save_LIBS=$LIBS 12309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12310/* end confdefs.h. */ 12311 12312/* Override any GCC internal prototype to avoid an error. 12313 Use char because int might match the return type of a GCC 12314 builtin and then its argument prototype would still apply. */ 12315#ifdef __cplusplus 12316extern "C" 12317#endif 12318char inet_aton (); 12319int 12320main () 12321{ 12322return inet_aton (); 12323 ; 12324 return 0; 12325} 12326_ACEOF 12327for ac_lib in '' resolv; do 12328 if test -z "$ac_lib"; then 12329 ac_res="none required" 12330 else 12331 ac_res=-l$ac_lib 12332 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12333 fi 12334 if ac_fn_c_try_link "$LINENO"; then : 12335 ac_cv_search_inet_aton=$ac_res 12336fi 12337rm -f core conftest.err conftest.$ac_objext \ 12338 conftest$ac_exeext 12339 if ${ac_cv_search_inet_aton+:} false; then : 12340 break 12341fi 12342done 12343if ${ac_cv_search_inet_aton+:} false; then : 12344 12345else 12346 ac_cv_search_inet_aton=no 12347fi 12348rm conftest.$ac_ext 12349LIBS=$ac_func_search_save_LIBS 12350fi 12351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 12352$as_echo "$ac_cv_search_inet_aton" >&6; } 12353ac_res=$ac_cv_search_inet_aton 12354if test "$ac_res" != no; then : 12355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12356 12357fi 12358 12359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 12360$as_echo_n "checking for library containing clock_gettime... " >&6; } 12361if ${ac_cv_search_clock_gettime+:} false; then : 12362 $as_echo_n "(cached) " >&6 12363else 12364 ac_func_search_save_LIBS=$LIBS 12365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12366/* end confdefs.h. */ 12367 12368/* Override any GCC internal prototype to avoid an error. 12369 Use char because int might match the return type of a GCC 12370 builtin and then its argument prototype would still apply. */ 12371#ifdef __cplusplus 12372extern "C" 12373#endif 12374char clock_gettime (); 12375int 12376main () 12377{ 12378return clock_gettime (); 12379 ; 12380 return 0; 12381} 12382_ACEOF 12383for ac_lib in '' rt; do 12384 if test -z "$ac_lib"; then 12385 ac_res="none required" 12386 else 12387 ac_res=-l$ac_lib 12388 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12389 fi 12390 if ac_fn_c_try_link "$LINENO"; then : 12391 ac_cv_search_clock_gettime=$ac_res 12392fi 12393rm -f core conftest.err conftest.$ac_objext \ 12394 conftest$ac_exeext 12395 if ${ac_cv_search_clock_gettime+:} false; then : 12396 break 12397fi 12398done 12399if ${ac_cv_search_clock_gettime+:} false; then : 12400 12401else 12402 ac_cv_search_clock_gettime=no 12403fi 12404rm conftest.$ac_ext 12405LIBS=$ac_func_search_save_LIBS 12406fi 12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 12408$as_echo "$ac_cv_search_clock_gettime" >&6; } 12409ac_res=$ac_cv_search_clock_gettime 12410if test "$ac_res" != no; then : 12411 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12412 12413fi 12414 12415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5 12416$as_echo_n "checking for library containing sendfile... " >&6; } 12417if ${ac_cv_search_sendfile+:} false; then : 12418 $as_echo_n "(cached) " >&6 12419else 12420 ac_func_search_save_LIBS=$LIBS 12421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12422/* end confdefs.h. */ 12423 12424/* Override any GCC internal prototype to avoid an error. 12425 Use char because int might match the return type of a GCC 12426 builtin and then its argument prototype would still apply. */ 12427#ifdef __cplusplus 12428extern "C" 12429#endif 12430char sendfile (); 12431int 12432main () 12433{ 12434return sendfile (); 12435 ; 12436 return 0; 12437} 12438_ACEOF 12439for ac_lib in '' sendfile; do 12440 if test -z "$ac_lib"; then 12441 ac_res="none required" 12442 else 12443 ac_res=-l$ac_lib 12444 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12445 fi 12446 if ac_fn_c_try_link "$LINENO"; then : 12447 ac_cv_search_sendfile=$ac_res 12448fi 12449rm -f core conftest.err conftest.$ac_objext \ 12450 conftest$ac_exeext 12451 if ${ac_cv_search_sendfile+:} false; then : 12452 break 12453fi 12454done 12455if ${ac_cv_search_sendfile+:} false; then : 12456 12457else 12458 ac_cv_search_sendfile=no 12459fi 12460rm conftest.$ac_ext 12461LIBS=$ac_func_search_save_LIBS 12462fi 12463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5 12464$as_echo "$ac_cv_search_sendfile" >&6; } 12465ac_res=$ac_cv_search_sendfile 12466if test "$ac_res" != no; then : 12467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12468 12469fi 12470 12471 12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5 12473$as_echo_n "checking for WIN32... " >&6; } 12474cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12475/* end confdefs.h. */ 12476 12477int 12478main () 12479{ 12480 12481#ifndef _WIN32 12482die horribly 12483#endif 12484 12485 ; 12486 return 0; 12487} 12488_ACEOF 12489if ac_fn_c_try_compile "$LINENO"; then : 12490 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12491$as_echo "yes" >&6; } 12492else 12493 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12494$as_echo "no" >&6; } 12495fi 12496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12497 12498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5 12499$as_echo_n "checking for CYGWIN... " >&6; } 12500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12501/* end confdefs.h. */ 12502 12503int 12504main () 12505{ 12506 12507#ifndef __CYGWIN__ 12508die horribly 12509#endif 12510 12511 ; 12512 return 0; 12513} 12514_ACEOF 12515if ac_fn_c_try_compile "$LINENO"; then : 12516 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12517$as_echo "yes" >&6; } 12518else 12519 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12520$as_echo "no" >&6; } 12521fi 12522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12523 12524for ac_header in zlib.h 12525do : 12526 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 12527if test "x$ac_cv_header_zlib_h" = xyes; then : 12528 cat >>confdefs.h <<_ACEOF 12529#define HAVE_ZLIB_H 1 12530_ACEOF 12531 12532fi 12533 12534done 12535 12536 12537if test "x$ac_cv_header_zlib_h" = "xyes"; then 12538save_LIBS="$LIBS" 12539LIBS="" 12540ZLIB_LIBS="" 12541have_zlib=no 12542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5 12543$as_echo_n "checking for library containing inflateEnd... " >&6; } 12544if ${ac_cv_search_inflateEnd+:} false; then : 12545 $as_echo_n "(cached) " >&6 12546else 12547 ac_func_search_save_LIBS=$LIBS 12548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12549/* end confdefs.h. */ 12550 12551/* Override any GCC internal prototype to avoid an error. 12552 Use char because int might match the return type of a GCC 12553 builtin and then its argument prototype would still apply. */ 12554#ifdef __cplusplus 12555extern "C" 12556#endif 12557char inflateEnd (); 12558int 12559main () 12560{ 12561return inflateEnd (); 12562 ; 12563 return 0; 12564} 12565_ACEOF 12566for ac_lib in '' z; do 12567 if test -z "$ac_lib"; then 12568 ac_res="none required" 12569 else 12570 ac_res=-l$ac_lib 12571 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12572 fi 12573 if ac_fn_c_try_link "$LINENO"; then : 12574 ac_cv_search_inflateEnd=$ac_res 12575fi 12576rm -f core conftest.err conftest.$ac_objext \ 12577 conftest$ac_exeext 12578 if ${ac_cv_search_inflateEnd+:} false; then : 12579 break 12580fi 12581done 12582if ${ac_cv_search_inflateEnd+:} false; then : 12583 12584else 12585 ac_cv_search_inflateEnd=no 12586fi 12587rm conftest.$ac_ext 12588LIBS=$ac_func_search_save_LIBS 12589fi 12590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5 12591$as_echo "$ac_cv_search_inflateEnd" >&6; } 12592ac_res=$ac_cv_search_inflateEnd 12593if test "$ac_res" != no; then : 12594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12595 have_zlib=yes 12596 ZLIB_LIBS="$LIBS" 12597 12598$as_echo "#define HAVE_LIBZ 1" >>confdefs.h 12599 12600fi 12601 12602LIBS="$save_LIBS" 12603 12604fi 12605 if test "$have_zlib" = "yes"; then 12606 ZLIB_REGRESS_TRUE= 12607 ZLIB_REGRESS_FALSE='#' 12608else 12609 ZLIB_REGRESS_TRUE='#' 12610 ZLIB_REGRESS_FALSE= 12611fi 12612 12613 12614if test "$bwin32" = true; then 12615 EV_LIB_WS32=-lws2_32 12616 EV_LIB_GDI=-lgdi32 12617else 12618 EV_LIB_WS32= 12619 EV_LIB_GDI= 12620fi 12621 12622 12623 12624 12625# Check whether --enable-largefile was given. 12626if test "${enable_largefile+set}" = set; then : 12627 enableval=$enable_largefile; 12628fi 12629 12630if test "$enable_largefile" != no; then 12631 12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12633$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12634if ${ac_cv_sys_largefile_CC+:} false; then : 12635 $as_echo_n "(cached) " >&6 12636else 12637 ac_cv_sys_largefile_CC=no 12638 if test "$GCC" != yes; then 12639 ac_save_CC=$CC 12640 while :; do 12641 # IRIX 6.2 and later do not support large files by default, 12642 # so use the C compiler's -n32 option if that helps. 12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12644/* end confdefs.h. */ 12645#include <sys/types.h> 12646 /* Check that off_t can represent 2**63 - 1 correctly. 12647 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12648 since some C++ compilers masquerading as C compilers 12649 incorrectly reject 9223372036854775807. */ 12650#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12652 && LARGE_OFF_T % 2147483647 == 1) 12653 ? 1 : -1]; 12654int 12655main () 12656{ 12657 12658 ; 12659 return 0; 12660} 12661_ACEOF 12662 if ac_fn_c_try_compile "$LINENO"; then : 12663 break 12664fi 12665rm -f core conftest.err conftest.$ac_objext 12666 CC="$CC -n32" 12667 if ac_fn_c_try_compile "$LINENO"; then : 12668 ac_cv_sys_largefile_CC=' -n32'; break 12669fi 12670rm -f core conftest.err conftest.$ac_objext 12671 break 12672 done 12673 CC=$ac_save_CC 12674 rm -f conftest.$ac_ext 12675 fi 12676fi 12677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12678$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12679 if test "$ac_cv_sys_largefile_CC" != no; then 12680 CC=$CC$ac_cv_sys_largefile_CC 12681 fi 12682 12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12684$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12685if ${ac_cv_sys_file_offset_bits+:} false; then : 12686 $as_echo_n "(cached) " >&6 12687else 12688 while :; do 12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12690/* end confdefs.h. */ 12691#include <sys/types.h> 12692 /* Check that off_t can represent 2**63 - 1 correctly. 12693 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12694 since some C++ compilers masquerading as C compilers 12695 incorrectly reject 9223372036854775807. */ 12696#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12698 && LARGE_OFF_T % 2147483647 == 1) 12699 ? 1 : -1]; 12700int 12701main () 12702{ 12703 12704 ; 12705 return 0; 12706} 12707_ACEOF 12708if ac_fn_c_try_compile "$LINENO"; then : 12709 ac_cv_sys_file_offset_bits=no; break 12710fi 12711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12713/* end confdefs.h. */ 12714#define _FILE_OFFSET_BITS 64 12715#include <sys/types.h> 12716 /* Check that off_t can represent 2**63 - 1 correctly. 12717 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12718 since some C++ compilers masquerading as C compilers 12719 incorrectly reject 9223372036854775807. */ 12720#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12721 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12722 && LARGE_OFF_T % 2147483647 == 1) 12723 ? 1 : -1]; 12724int 12725main () 12726{ 12727 12728 ; 12729 return 0; 12730} 12731_ACEOF 12732if ac_fn_c_try_compile "$LINENO"; then : 12733 ac_cv_sys_file_offset_bits=64; break 12734fi 12735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12736 ac_cv_sys_file_offset_bits=unknown 12737 break 12738done 12739fi 12740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12741$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12742case $ac_cv_sys_file_offset_bits in #( 12743 no | unknown) ;; 12744 *) 12745cat >>confdefs.h <<_ACEOF 12746#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12747_ACEOF 12748;; 12749esac 12750rm -rf conftest* 12751 if test $ac_cv_sys_file_offset_bits = unknown; then 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12753$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12754if ${ac_cv_sys_large_files+:} false; then : 12755 $as_echo_n "(cached) " >&6 12756else 12757 while :; do 12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12759/* end confdefs.h. */ 12760#include <sys/types.h> 12761 /* Check that off_t can represent 2**63 - 1 correctly. 12762 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12763 since some C++ compilers masquerading as C compilers 12764 incorrectly reject 9223372036854775807. */ 12765#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12767 && LARGE_OFF_T % 2147483647 == 1) 12768 ? 1 : -1]; 12769int 12770main () 12771{ 12772 12773 ; 12774 return 0; 12775} 12776_ACEOF 12777if ac_fn_c_try_compile "$LINENO"; then : 12778 ac_cv_sys_large_files=no; break 12779fi 12780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12782/* end confdefs.h. */ 12783#define _LARGE_FILES 1 12784#include <sys/types.h> 12785 /* Check that off_t can represent 2**63 - 1 correctly. 12786 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12787 since some C++ compilers masquerading as C compilers 12788 incorrectly reject 9223372036854775807. */ 12789#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12791 && LARGE_OFF_T % 2147483647 == 1) 12792 ? 1 : -1]; 12793int 12794main () 12795{ 12796 12797 ; 12798 return 0; 12799} 12800_ACEOF 12801if ac_fn_c_try_compile "$LINENO"; then : 12802 ac_cv_sys_large_files=1; break 12803fi 12804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12805 ac_cv_sys_large_files=unknown 12806 break 12807done 12808fi 12809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12810$as_echo "$ac_cv_sys_large_files" >&6; } 12811case $ac_cv_sys_large_files in #( 12812 no | unknown) ;; 12813 *) 12814cat >>confdefs.h <<_ACEOF 12815#define _LARGE_FILES $ac_cv_sys_large_files 12816_ACEOF 12817;; 12818esac 12819rm -rf conftest* 12820 fi 12821 12822 12823fi 12824 12825 12826 12827 12828ntp_pkgconfig_min_version='0.15.0' 12829if test -n "$ac_tool_prefix"; then 12830 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12831set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12833$as_echo_n "checking for $ac_word... " >&6; } 12834if ${ac_cv_path_PKG_CONFIG+:} false; then : 12835 $as_echo_n "(cached) " >&6 12836else 12837 case $PKG_CONFIG in 12838 [\\/]* | ?:[\\/]*) 12839 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12840 ;; 12841 *) 12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12843for as_dir in $PATH 12844do 12845 IFS=$as_save_IFS 12846 test -z "$as_dir" && as_dir=. 12847 for ac_exec_ext in '' $ac_executable_extensions; do 12848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12849 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12851 break 2 12852 fi 12853done 12854 done 12855IFS=$as_save_IFS 12856 12857 ;; 12858esac 12859fi 12860PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12861if test -n "$PKG_CONFIG"; then 12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12863$as_echo "$PKG_CONFIG" >&6; } 12864else 12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12866$as_echo "no" >&6; } 12867fi 12868 12869 12870fi 12871if test -z "$ac_cv_path_PKG_CONFIG"; then 12872 ac_pt_PKG_CONFIG=$PKG_CONFIG 12873 # Extract the first word of "pkg-config", so it can be a program name with args. 12874set dummy pkg-config; ac_word=$2 12875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12876$as_echo_n "checking for $ac_word... " >&6; } 12877if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12878 $as_echo_n "(cached) " >&6 12879else 12880 case $ac_pt_PKG_CONFIG in 12881 [\\/]* | ?:[\\/]*) 12882 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12883 ;; 12884 *) 12885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12886for as_dir in $PATH 12887do 12888 IFS=$as_save_IFS 12889 test -z "$as_dir" && as_dir=. 12890 for ac_exec_ext in '' $ac_executable_extensions; do 12891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12892 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12894 break 2 12895 fi 12896done 12897 done 12898IFS=$as_save_IFS 12899 12900 ;; 12901esac 12902fi 12903ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12904if test -n "$ac_pt_PKG_CONFIG"; then 12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12906$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12907else 12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12909$as_echo "no" >&6; } 12910fi 12911 12912 if test "x$ac_pt_PKG_CONFIG" = x; then 12913 PKG_CONFIG="" 12914 else 12915 case $cross_compiling:$ac_tool_warned in 12916yes:) 12917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12919ac_tool_warned=yes ;; 12920esac 12921 PKG_CONFIG=$ac_pt_PKG_CONFIG 12922 fi 12923else 12924 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12925fi 12926 12927{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;} 12928{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 12929 12930case "$PKG_CONFIG" in 12931 /*) 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5 12933$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; } 12934 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12936$as_echo "yes" >&6; } 12937 else 12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12939$as_echo "no" >&6; } 12940 PKG_CONFIG="" 12941 fi 12942 ;; 12943esac 12944 12945 12946 12947 12948case "$enable_openssl" in 12949 yes) 12950 have_openssl=no 12951 case "$PKG_CONFIG" in 12952 '') 12953 ;; 12954 *) 12955 OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null` 12956 case "$OPENSSL_LIBS" in 12957 '') ;; 12958 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD" 12959 have_openssl=yes 12960 ;; 12961 esac 12962 OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null` 12963 ;; 12964 esac 12965 case "$have_openssl" in 12966 yes) ;; 12967 *) 12968 save_LIBS="$LIBS" 12969 LIBS="" 12970 OPENSSL_LIBS="" 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5 12972$as_echo_n "checking for library containing SSL_new... " >&6; } 12973if ${ac_cv_search_SSL_new+:} false; then : 12974 $as_echo_n "(cached) " >&6 12975else 12976 ac_func_search_save_LIBS=$LIBS 12977cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12978/* end confdefs.h. */ 12979 12980/* Override any GCC internal prototype to avoid an error. 12981 Use char because int might match the return type of a GCC 12982 builtin and then its argument prototype would still apply. */ 12983#ifdef __cplusplus 12984extern "C" 12985#endif 12986char SSL_new (); 12987int 12988main () 12989{ 12990return SSL_new (); 12991 ; 12992 return 0; 12993} 12994_ACEOF 12995for ac_lib in '' ssl; do 12996 if test -z "$ac_lib"; then 12997 ac_res="none required" 12998 else 12999 ac_res=-l$ac_lib 13000 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS" 13001 fi 13002 if ac_fn_c_try_link "$LINENO"; then : 13003 ac_cv_search_SSL_new=$ac_res 13004fi 13005rm -f core conftest.err conftest.$ac_objext \ 13006 conftest$ac_exeext 13007 if ${ac_cv_search_SSL_new+:} false; then : 13008 break 13009fi 13010done 13011if ${ac_cv_search_SSL_new+:} false; then : 13012 13013else 13014 ac_cv_search_SSL_new=no 13015fi 13016rm conftest.$ac_ext 13017LIBS=$ac_func_search_save_LIBS 13018fi 13019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5 13020$as_echo "$ac_cv_search_SSL_new" >&6; } 13021ac_res=$ac_cv_search_SSL_new 13022if test "$ac_res" != no; then : 13023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13024 have_openssl=yes 13025 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD" 13026else 13027 have_openssl=no 13028fi 13029 13030 LIBS="$save_LIBS" 13031 ;; 13032 esac 13033 13034 13035 case "$have_openssl" in 13036 yes) 13037$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 13038 ;; 13039 esac 13040 ;; 13041esac 13042 13043# check if we have and should use openssl 13044 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then 13045 OPENSSL_TRUE= 13046 OPENSSL_FALSE='#' 13047else 13048 OPENSSL_TRUE='#' 13049 OPENSSL_FALSE= 13050fi 13051 13052 13053 13054for ac_header in \ 13055 arpa/inet.h \ 13056 fcntl.h \ 13057 ifaddrs.h \ 13058 mach/mach_time.h \ 13059 netdb.h \ 13060 netinet/in.h \ 13061 netinet/in6.h \ 13062 netinet/tcp.h \ 13063 poll.h \ 13064 port.h \ 13065 stdarg.h \ 13066 stddef.h \ 13067 sys/devpoll.h \ 13068 sys/epoll.h \ 13069 sys/event.h \ 13070 sys/eventfd.h \ 13071 sys/ioctl.h \ 13072 sys/mman.h \ 13073 sys/param.h \ 13074 sys/queue.h \ 13075 sys/resource.h \ 13076 sys/select.h \ 13077 sys/sendfile.h \ 13078 sys/socket.h \ 13079 sys/stat.h \ 13080 sys/time.h \ 13081 sys/timerfd.h \ 13082 sys/uio.h \ 13083 sys/wait.h \ 13084 13085do : 13086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13087ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13088if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13089 cat >>confdefs.h <<_ACEOF 13090#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13091_ACEOF 13092 13093fi 13094 13095done 13096 13097 13098for ac_header in sys/sysctl.h 13099do : 13100 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 13101#ifdef HAVE_SYS_PARAM_H 13102#include <sys/param.h> 13103#endif 13104 13105" 13106if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 13107 cat >>confdefs.h <<_ACEOF 13108#define HAVE_SYS_SYSCTL_H 1 13109_ACEOF 13110 13111fi 13112 13113done 13114 13115if test "x$ac_cv_header_sys_queue_h" = "xyes"; then 13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5 13117$as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; } 13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13119/* end confdefs.h. */ 13120 13121#include <sys/queue.h> 13122#ifdef TAILQ_FOREACH 13123 yes 13124#endif 13125 13126_ACEOF 13127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13128 $EGREP "yes" >/dev/null 2>&1; then : 13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13130$as_echo "yes" >&6; } 13131 13132$as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h 13133 13134else 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13136$as_echo "no" >&6; } 13137 13138fi 13139rm -f conftest* 13140 13141fi 13142 13143if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5 13145$as_echo_n "checking for timeradd in sys/time.h... " >&6; } 13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13147/* end confdefs.h. */ 13148 13149#include <sys/time.h> 13150#ifdef timeradd 13151 yes 13152#endif 13153 13154_ACEOF 13155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13156 $EGREP "yes" >/dev/null 2>&1; then : 13157 13158$as_echo "#define HAVE_TIMERADD 1" >>confdefs.h 13159 13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13161$as_echo "yes" >&6; } 13162else 13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13164$as_echo "no" >&6; } 13165 13166fi 13167rm -f conftest* 13168 13169fi 13170 13171if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5 13173$as_echo_n "checking for timercmp in sys/time.h... " >&6; } 13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13175/* end confdefs.h. */ 13176 13177#include <sys/time.h> 13178#ifdef timercmp 13179 yes 13180#endif 13181 13182_ACEOF 13183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13184 $EGREP "yes" >/dev/null 2>&1; then : 13185 13186$as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h 13187 13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13189$as_echo "yes" >&6; } 13190else 13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13192$as_echo "no" >&6; } 13193 13194fi 13195rm -f conftest* 13196 13197fi 13198 13199if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5 13201$as_echo_n "checking for timerclear in sys/time.h... " >&6; } 13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13203/* end confdefs.h. */ 13204 13205#include <sys/time.h> 13206#ifdef timerclear 13207 yes 13208#endif 13209 13210_ACEOF 13211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13212 $EGREP "yes" >/dev/null 2>&1; then : 13213 13214$as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h 13215 13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13217$as_echo "yes" >&6; } 13218else 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13220$as_echo "no" >&6; } 13221 13222fi 13223rm -f conftest* 13224 13225fi 13226 13227if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5 13229$as_echo_n "checking for timerisset in sys/time.h... " >&6; } 13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13231/* end confdefs.h. */ 13232 13233#include <sys/time.h> 13234#ifdef timerisset 13235 yes 13236#endif 13237 13238_ACEOF 13239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13240 $EGREP "yes" >/dev/null 2>&1; then : 13241 13242$as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h 13243 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13245$as_echo "yes" >&6; } 13246else 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13248$as_echo "no" >&6; } 13249 13250fi 13251rm -f conftest* 13252 13253fi 13254 13255if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then 13256 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h> 13257 #include <sys/sysctl.h> 13258 13259" 13260if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then : 13261 ac_have_decl=1 13262else 13263 ac_have_decl=0 13264fi 13265 13266cat >>confdefs.h <<_ACEOF 13267#define HAVE_DECL_CTL_KERN $ac_have_decl 13268_ACEOF 13269ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h> 13270 #include <sys/sysctl.h> 13271 13272" 13273if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then : 13274 ac_have_decl=1 13275else 13276 ac_have_decl=0 13277fi 13278 13279cat >>confdefs.h <<_ACEOF 13280#define HAVE_DECL_KERN_RANDOM $ac_have_decl 13281_ACEOF 13282ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h> 13283 #include <sys/sysctl.h> 13284 13285" 13286if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then : 13287 ac_have_decl=1 13288else 13289 ac_have_decl=0 13290fi 13291 13292cat >>confdefs.h <<_ACEOF 13293#define HAVE_DECL_RANDOM_UUID $ac_have_decl 13294_ACEOF 13295ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h> 13296 #include <sys/sysctl.h> 13297 13298" 13299if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then : 13300 ac_have_decl=1 13301else 13302 ac_have_decl=0 13303fi 13304 13305cat >>confdefs.h <<_ACEOF 13306#define HAVE_DECL_KERN_ARND $ac_have_decl 13307_ACEOF 13308 13309fi 13310 13311 if test x$bwin32 = xtrue; then 13312 BUILD_WIN32_TRUE= 13313 BUILD_WIN32_FALSE='#' 13314else 13315 BUILD_WIN32_TRUE='#' 13316 BUILD_WIN32_FALSE= 13317fi 13318 13319 if test x$cygwin = xtrue; then 13320 BUILD_CYGWIN_TRUE= 13321 BUILD_CYGWIN_FALSE='#' 13322else 13323 BUILD_CYGWIN_TRUE='#' 13324 BUILD_CYGWIN_FALSE= 13325fi 13326 13327 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then 13328 BUILD_WITH_NO_UNDEFINED_TRUE= 13329 BUILD_WITH_NO_UNDEFINED_FALSE='#' 13330else 13331 BUILD_WITH_NO_UNDEFINED_TRUE='#' 13332 BUILD_WITH_NO_UNDEFINED_FALSE= 13333fi 13334 13335 13336if test x$bwin32 = xtrue; then 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5 13338$as_echo_n "checking for library containing getservbyname... " >&6; } 13339if ${ac_cv_search_getservbyname+:} false; then : 13340 $as_echo_n "(cached) " >&6 13341else 13342 ac_func_search_save_LIBS=$LIBS 13343cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13344/* end confdefs.h. */ 13345 13346/* Override any GCC internal prototype to avoid an error. 13347 Use char because int might match the return type of a GCC 13348 builtin and then its argument prototype would still apply. */ 13349#ifdef __cplusplus 13350extern "C" 13351#endif 13352char getservbyname (); 13353int 13354main () 13355{ 13356return getservbyname (); 13357 ; 13358 return 0; 13359} 13360_ACEOF 13361for ac_lib in '' ws2_32; do 13362 if test -z "$ac_lib"; then 13363 ac_res="none required" 13364 else 13365 ac_res=-l$ac_lib 13366 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13367 fi 13368 if ac_fn_c_try_link "$LINENO"; then : 13369 ac_cv_search_getservbyname=$ac_res 13370fi 13371rm -f core conftest.err conftest.$ac_objext \ 13372 conftest$ac_exeext 13373 if ${ac_cv_search_getservbyname+:} false; then : 13374 break 13375fi 13376done 13377if ${ac_cv_search_getservbyname+:} false; then : 13378 13379else 13380 ac_cv_search_getservbyname=no 13381fi 13382rm conftest.$ac_ext 13383LIBS=$ac_func_search_save_LIBS 13384fi 13385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5 13386$as_echo "$ac_cv_search_getservbyname" >&6; } 13387ac_res=$ac_cv_search_getservbyname 13388if test "$ac_res" != no; then : 13389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13390 13391fi 13392 13393fi 13394 13395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13396$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13397if ${ac_cv_c_const+:} false; then : 13398 $as_echo_n "(cached) " >&6 13399else 13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13401/* end confdefs.h. */ 13402 13403int 13404main () 13405{ 13406 13407#ifndef __cplusplus 13408 /* Ultrix mips cc rejects this sort of thing. */ 13409 typedef int charset[2]; 13410 const charset cs = { 0, 0 }; 13411 /* SunOS 4.1.1 cc rejects this. */ 13412 char const *const *pcpcc; 13413 char **ppc; 13414 /* NEC SVR4.0.2 mips cc rejects this. */ 13415 struct point {int x, y;}; 13416 static struct point const zero = {0,0}; 13417 /* AIX XL C 1.02.0.0 rejects this. 13418 It does not let you subtract one const X* pointer from another in 13419 an arm of an if-expression whose if-part is not a constant 13420 expression */ 13421 const char *g = "string"; 13422 pcpcc = &g + (g ? g-g : 0); 13423 /* HPUX 7.0 cc rejects these. */ 13424 ++pcpcc; 13425 ppc = (char**) pcpcc; 13426 pcpcc = (char const *const *) ppc; 13427 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13428 char tx; 13429 char *t = &tx; 13430 char const *s = 0 ? (char *) 0 : (char const *) 0; 13431 13432 *t++ = 0; 13433 if (s) return 0; 13434 } 13435 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13436 int x[] = {25, 17}; 13437 const int *foo = &x[0]; 13438 ++foo; 13439 } 13440 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13441 typedef const int *iptr; 13442 iptr p = 0; 13443 ++p; 13444 } 13445 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13446 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13447 struct s { int j; const int *ap[3]; } bx; 13448 struct s *b = &bx; b->j = 5; 13449 } 13450 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13451 const int foo = 10; 13452 if (!foo) return 0; 13453 } 13454 return !cs[0] && !zero.x; 13455#endif 13456 13457 ; 13458 return 0; 13459} 13460_ACEOF 13461if ac_fn_c_try_compile "$LINENO"; then : 13462 ac_cv_c_const=yes 13463else 13464 ac_cv_c_const=no 13465fi 13466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13467fi 13468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13469$as_echo "$ac_cv_c_const" >&6; } 13470if test $ac_cv_c_const = no; then 13471 13472$as_echo "#define const /**/" >>confdefs.h 13473 13474fi 13475 13476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13477$as_echo_n "checking for inline... " >&6; } 13478if ${ac_cv_c_inline+:} false; then : 13479 $as_echo_n "(cached) " >&6 13480else 13481 ac_cv_c_inline=no 13482for ac_kw in inline __inline__ __inline; do 13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13484/* end confdefs.h. */ 13485#ifndef __cplusplus 13486typedef int foo_t; 13487static $ac_kw foo_t static_foo () {return 0; } 13488$ac_kw foo_t foo () {return 0; } 13489#endif 13490 13491_ACEOF 13492if ac_fn_c_try_compile "$LINENO"; then : 13493 ac_cv_c_inline=$ac_kw 13494fi 13495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13496 test "$ac_cv_c_inline" != no && break 13497done 13498 13499fi 13500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13501$as_echo "$ac_cv_c_inline" >&6; } 13502 13503case $ac_cv_c_inline in 13504 inline | yes) ;; 13505 *) 13506 case $ac_cv_c_inline in 13507 no) ac_val=;; 13508 *) ac_val=$ac_cv_c_inline;; 13509 esac 13510 cat >>confdefs.h <<_ACEOF 13511#ifndef __cplusplus 13512#define inline $ac_val 13513#endif 13514_ACEOF 13515 ;; 13516esac 13517 13518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 13519$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 13520if ${ac_cv_header_time+:} false; then : 13521 $as_echo_n "(cached) " >&6 13522else 13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13524/* end confdefs.h. */ 13525#include <sys/types.h> 13526#include <sys/time.h> 13527#include <time.h> 13528 13529int 13530main () 13531{ 13532if ((struct tm *) 0) 13533return 0; 13534 ; 13535 return 0; 13536} 13537_ACEOF 13538if ac_fn_c_try_compile "$LINENO"; then : 13539 ac_cv_header_time=yes 13540else 13541 ac_cv_header_time=no 13542fi 13543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13544fi 13545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 13546$as_echo "$ac_cv_header_time" >&6; } 13547if test $ac_cv_header_time = yes; then 13548 13549$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 13550 13551fi 13552 13553 13554for ac_func in \ 13555 accept4 \ 13556 arc4random \ 13557 arc4random_buf \ 13558 clock_gettime \ 13559 eventfd \ 13560 epoll_create1 \ 13561 fcntl \ 13562 getegid \ 13563 geteuid \ 13564 getifaddrs \ 13565 getnameinfo \ 13566 getprotobynumber \ 13567 gettimeofday \ 13568 inet_ntop \ 13569 inet_pton \ 13570 issetugid \ 13571 mach_absolute_time \ 13572 mmap \ 13573 nanosleep \ 13574 pipe \ 13575 pipe2 \ 13576 putenv \ 13577 sendfile \ 13578 setenv \ 13579 setrlimit \ 13580 sigaction \ 13581 signal \ 13582 splice \ 13583 strlcpy \ 13584 strsep \ 13585 strtok_r \ 13586 strtoll \ 13587 sysctl \ 13588 timerfd_create \ 13589 umask \ 13590 unsetenv \ 13591 usleep \ 13592 vasprintf \ 13593 13594do : 13595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13596ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13597if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13598 cat >>confdefs.h <<_ACEOF 13599#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13600_ACEOF 13601 13602fi 13603done 13604 13605 if test x"$ac_cv_func_strlcpy" = xno; then 13606 STRLCPY_IMPL_TRUE= 13607 STRLCPY_IMPL_FALSE='#' 13608else 13609 STRLCPY_IMPL_TRUE='#' 13610 STRLCPY_IMPL_FALSE= 13611fi 13612 13613 13614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 13615$as_echo_n "checking for getaddrinfo... " >&6; } 13616if ${libevent_cv_getaddrinfo+:} false; then : 13617 $as_echo_n "(cached) " >&6 13618else 13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13620/* end confdefs.h. */ 13621 13622 #ifdef HAVE_NETDB_H 13623 #include <netdb.h> 13624 #endif 13625 13626int 13627main () 13628{ 13629 13630 getaddrinfo; 13631 13632 13633 ; 13634 return 0; 13635} 13636_ACEOF 13637if ac_fn_c_try_link "$LINENO"; then : 13638 libevent_cv_getaddrinfo=yes 13639else 13640 libevent_cv_getaddrinfo=no 13641 13642fi 13643rm -f core conftest.err conftest.$ac_objext \ 13644 conftest$ac_exeext conftest.$ac_ext 13645 13646fi 13647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5 13648$as_echo "$libevent_cv_getaddrinfo" >&6; } 13649if test "$libevent_cv_getaddrinfo" = "yes" ; then 13650 13651$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 13652 13653else 13654 13655for ac_func in getservbyname 13656do : 13657 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname" 13658if test "x$ac_cv_func_getservbyname" = xyes; then : 13659 cat >>confdefs.h <<_ACEOF 13660#define HAVE_GETSERVBYNAME 1 13661_ACEOF 13662 13663fi 13664done 13665 13666# Check for gethostbyname_r in all its glorious incompatible versions. 13667# (This is cut-and-pasted from Tor, which based its logic on 13668# Python's configure.in.) 13669 13670 13671ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 13672if test "x$ac_cv_func_gethostbyname_r" = xyes; then : 13673 13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5 13675$as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; } 13676 OLD_CFLAGS=$CFLAGS 13677 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" 13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13679/* end confdefs.h. */ 13680 13681#include <netdb.h> 13682 13683int 13684main () 13685{ 13686 13687 char *cp1, *cp2; 13688 struct hostent *h1, *h2; 13689 int i1, i2; 13690 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2); 13691 13692 ; 13693 return 0; 13694} 13695_ACEOF 13696if ac_fn_c_try_compile "$LINENO"; then : 13697 13698 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 13699 13700 13701$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h 13702 13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5 13704$as_echo "6" >&6; } 13705 13706else 13707 13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13709/* end confdefs.h. */ 13710 13711#include <netdb.h> 13712 13713int 13714main () 13715{ 13716 13717 char *cp1, *cp2; 13718 struct hostent *h1; 13719 int i1, i2; 13720 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2); 13721 13722 ; 13723 return 0; 13724} 13725_ACEOF 13726if ac_fn_c_try_compile "$LINENO"; then : 13727 13728 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 13729 13730 13731$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h 13732 13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5 13734$as_echo "5" >&6; } 13735 13736else 13737 13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13739/* end confdefs.h. */ 13740 13741#include <netdb.h> 13742 13743int 13744main () 13745{ 13746 13747 char *cp1; 13748 struct hostent *h1; 13749 struct hostent_data hd; 13750 (void) gethostbyname_r(cp1,h1,&hd); 13751 13752 ; 13753 return 0; 13754} 13755_ACEOF 13756if ac_fn_c_try_compile "$LINENO"; then : 13757 13758 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 13759 13760 13761$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h 13762 13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5 13764$as_echo "3" >&6; } 13765 13766else 13767 13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5 13769$as_echo "0" >&6; } 13770 13771fi 13772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13773 13774fi 13775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13776 13777fi 13778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13779 CFLAGS=$OLD_CFLAGS 13780 13781fi 13782 13783 13784fi 13785 13786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5 13787$as_echo_n "checking for F_SETFD in fcntl.h... " >&6; } 13788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13789/* end confdefs.h. */ 13790 13791#define _GNU_SOURCE 13792#include <fcntl.h> 13793#ifdef F_SETFD 13794yes 13795#endif 13796 13797_ACEOF 13798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13799 $EGREP "yes" >/dev/null 2>&1; then : 13800 13801$as_echo "#define HAVE_SETFD 1" >>confdefs.h 13802 13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13804$as_echo "yes" >&6; } 13805else 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13807$as_echo "no" >&6; } 13808fi 13809rm -f conftest* 13810 13811 13812needsignal=no 13813haveselect=no 13814if test x$bwin32 != xtrue; then 13815 for ac_func in select 13816do : 13817 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 13818if test "x$ac_cv_func_select" = xyes; then : 13819 cat >>confdefs.h <<_ACEOF 13820#define HAVE_SELECT 1 13821_ACEOF 13822 haveselect=yes 13823fi 13824done 13825 13826 if test "x$haveselect" = "xyes" ; then 13827 needsignal=yes 13828 fi 13829fi 13830 if test "x$haveselect" = "xyes"; then 13831 SELECT_BACKEND_TRUE= 13832 SELECT_BACKEND_FALSE='#' 13833else 13834 SELECT_BACKEND_TRUE='#' 13835 SELECT_BACKEND_FALSE= 13836fi 13837 13838 13839havepoll=no 13840for ac_func in poll 13841do : 13842 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 13843if test "x$ac_cv_func_poll" = xyes; then : 13844 cat >>confdefs.h <<_ACEOF 13845#define HAVE_POLL 1 13846_ACEOF 13847 havepoll=yes 13848fi 13849done 13850 13851if test "x$havepoll" = "xyes" ; then 13852 needsignal=yes 13853fi 13854 if test "x$havepoll" = "xyes"; then 13855 POLL_BACKEND_TRUE= 13856 POLL_BACKEND_FALSE='#' 13857else 13858 POLL_BACKEND_TRUE='#' 13859 POLL_BACKEND_FALSE= 13860fi 13861 13862 13863havedevpoll=no 13864if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then 13865 13866$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h 13867 13868fi 13869 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then 13870 DEVPOLL_BACKEND_TRUE= 13871 DEVPOLL_BACKEND_FALSE='#' 13872else 13873 DEVPOLL_BACKEND_TRUE='#' 13874 DEVPOLL_BACKEND_FALSE= 13875fi 13876 13877 13878havekqueue=no 13879if test "x$ac_cv_header_sys_event_h" = "xyes"; then 13880 for ac_func in kqueue 13881do : 13882 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" 13883if test "x$ac_cv_func_kqueue" = xyes; then : 13884 cat >>confdefs.h <<_ACEOF 13885#define HAVE_KQUEUE 1 13886_ACEOF 13887 havekqueue=yes 13888fi 13889done 13890 13891 if test "x$havekqueue" = "xyes" ; then 13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5 13893$as_echo_n "checking for working kqueue... " >&6; } 13894 if test "$cross_compiling" = yes; then : 13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13896$as_echo "no" >&6; } 13897else 13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13899/* end confdefs.h. */ 13900#include <sys/types.h> 13901#include <sys/time.h> 13902#include <sys/event.h> 13903#include <stdio.h> 13904#include <unistd.h> 13905#include <fcntl.h> 13906 13907int 13908main(int argc, char **argv) 13909{ 13910 int kq; 13911 int n; 13912 int fd[2]; 13913 struct kevent ev; 13914 struct timespec ts; 13915 char buf[8000]; 13916 13917 if (pipe(fd) == -1) 13918 exit(1); 13919 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1) 13920 exit(1); 13921 13922 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf)) 13923 ; 13924 13925 if ((kq = kqueue()) == -1) 13926 exit(1); 13927 13928 memset(&ev, 0, sizeof(ev)); 13929 ev.ident = fd[1]; 13930 ev.filter = EVFILT_WRITE; 13931 ev.flags = EV_ADD | EV_ENABLE; 13932 n = kevent(kq, &ev, 1, NULL, 0, NULL); 13933 if (n == -1) 13934 exit(1); 13935 13936 read(fd[0], buf, sizeof(buf)); 13937 13938 ts.tv_sec = 0; 13939 ts.tv_nsec = 0; 13940 n = kevent(kq, NULL, 0, &ev, 1, &ts); 13941 if (n == -1 || n == 0) 13942 exit(1); 13943 13944 exit(0); 13945} 13946_ACEOF 13947if ac_fn_c_try_run "$LINENO"; then : 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13949$as_echo "yes" >&6; } 13950 13951$as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h 13952 13953 havekqueue=yes 13954 13955else 13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13957$as_echo "no" >&6; } 13958fi 13959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13960 conftest.$ac_objext conftest.beam conftest.$ac_ext 13961fi 13962 13963 fi 13964fi 13965 if test "x$havekqueue" = "xyes"; then 13966 KQUEUE_BACKEND_TRUE= 13967 KQUEUE_BACKEND_FALSE='#' 13968else 13969 KQUEUE_BACKEND_TRUE='#' 13970 KQUEUE_BACKEND_FALSE= 13971fi 13972 13973 13974haveepollsyscall=no 13975haveepoll=no 13976for ac_func in epoll_ctl 13977do : 13978 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" 13979if test "x$ac_cv_func_epoll_ctl" = xyes; then : 13980 cat >>confdefs.h <<_ACEOF 13981#define HAVE_EPOLL_CTL 1 13982_ACEOF 13983 haveepoll=yes 13984fi 13985done 13986 13987if test "x$haveepoll" = "xyes" ; then 13988 13989$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 13990 13991 needsignal=yes 13992fi 13993if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then 13994 if test "x$haveepoll" = "xno" ; then 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5 13996$as_echo_n "checking for epoll system call... " >&6; } 13997 if test "$cross_compiling" = yes; then : 13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13999$as_echo "no" >&6; } 14000else 14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14002/* end confdefs.h. */ 14003#include <stdint.h> 14004#include <sys/param.h> 14005#include <sys/types.h> 14006#include <sys/syscall.h> 14007#include <sys/epoll.h> 14008#include <unistd.h> 14009 14010int 14011epoll_create(int size) 14012{ 14013 return (syscall(__NR_epoll_create, size)); 14014} 14015 14016int 14017main(int argc, char **argv) 14018{ 14019 int epfd; 14020 14021 epfd = epoll_create(256); 14022 exit (epfd == -1 ? 1 : 0); 14023} 14024_ACEOF 14025if ac_fn_c_try_run "$LINENO"; then : 14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14027$as_echo "yes" >&6; } 14028 14029$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 14030 14031 needsignal=yes 14032 have_epoll=yes 14033 case " $LIBOBJS " in 14034 *" epoll_sub.$ac_objext "* ) ;; 14035 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext" 14036 ;; 14037esac 14038 14039 14040else 14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14042$as_echo "no" >&6; } 14043fi 14044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14045 conftest.$ac_objext conftest.beam conftest.$ac_ext 14046fi 14047 14048 fi 14049fi 14050 if test "x$haveepoll" = "xyes"; then 14051 EPOLL_BACKEND_TRUE= 14052 EPOLL_BACKEND_FALSE='#' 14053else 14054 EPOLL_BACKEND_TRUE='#' 14055 EPOLL_BACKEND_FALSE= 14056fi 14057 14058 14059haveeventports=no 14060for ac_func in port_create 14061do : 14062 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create" 14063if test "x$ac_cv_func_port_create" = xyes; then : 14064 cat >>confdefs.h <<_ACEOF 14065#define HAVE_PORT_CREATE 1 14066_ACEOF 14067 haveeventports=yes 14068fi 14069done 14070 14071if test "x$haveeventports" = "xyes" ; then 14072 14073$as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h 14074 14075 needsignal=yes 14076fi 14077 if test "x$haveeventports" = "xyes"; then 14078 EVPORT_BACKEND_TRUE= 14079 EVPORT_BACKEND_FALSE='#' 14080else 14081 EVPORT_BACKEND_TRUE='#' 14082 EVPORT_BACKEND_FALSE= 14083fi 14084 14085 14086if test "x$bwin32" = "xtrue"; then 14087 needsignal=yes 14088fi 14089 14090 if test "x$needsignal" = "xyes"; then 14091 SIGNAL_SUPPORT_TRUE= 14092 SIGNAL_SUPPORT_FALSE='#' 14093else 14094 SIGNAL_SUPPORT_TRUE='#' 14095 SIGNAL_SUPPORT_FALSE= 14096fi 14097 14098 14099ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 14100if test "x$ac_cv_type_pid_t" = xyes; then : 14101 14102else 14103 14104cat >>confdefs.h <<_ACEOF 14105#define pid_t int 14106_ACEOF 14107 14108fi 14109 14110ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14111if test "x$ac_cv_type_size_t" = xyes; then : 14112 14113else 14114 14115cat >>confdefs.h <<_ACEOF 14116#define size_t unsigned int 14117_ACEOF 14118 14119fi 14120 14121ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14122if test "x$ac_cv_type_ssize_t" = xyes; then : 14123 14124else 14125 14126cat >>confdefs.h <<_ACEOF 14127#define ssize_t int 14128_ACEOF 14129 14130fi 14131 14132 14133ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H 14134#include <stdint.h> 14135#elif defined(HAVE_INTTYPES_H) 14136#include <inttypes.h> 14137#endif 14138#ifdef HAVE_SYS_TYPES_H 14139#include <sys/types.h> 14140#endif 14141" 14142if test "x$ac_cv_type_uint64_t" = xyes; then : 14143 14144cat >>confdefs.h <<_ACEOF 14145#define HAVE_UINT64_T 1 14146_ACEOF 14147 14148 14149fi 14150ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H 14151#include <stdint.h> 14152#elif defined(HAVE_INTTYPES_H) 14153#include <inttypes.h> 14154#endif 14155#ifdef HAVE_SYS_TYPES_H 14156#include <sys/types.h> 14157#endif 14158" 14159if test "x$ac_cv_type_uint32_t" = xyes; then : 14160 14161cat >>confdefs.h <<_ACEOF 14162#define HAVE_UINT32_T 1 14163_ACEOF 14164 14165 14166fi 14167ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H 14168#include <stdint.h> 14169#elif defined(HAVE_INTTYPES_H) 14170#include <inttypes.h> 14171#endif 14172#ifdef HAVE_SYS_TYPES_H 14173#include <sys/types.h> 14174#endif 14175" 14176if test "x$ac_cv_type_uint16_t" = xyes; then : 14177 14178cat >>confdefs.h <<_ACEOF 14179#define HAVE_UINT16_T 1 14180_ACEOF 14181 14182 14183fi 14184ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H 14185#include <stdint.h> 14186#elif defined(HAVE_INTTYPES_H) 14187#include <inttypes.h> 14188#endif 14189#ifdef HAVE_SYS_TYPES_H 14190#include <sys/types.h> 14191#endif 14192" 14193if test "x$ac_cv_type_uint8_t" = xyes; then : 14194 14195cat >>confdefs.h <<_ACEOF 14196#define HAVE_UINT8_T 1 14197_ACEOF 14198 14199 14200fi 14201ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H 14202#include <stdint.h> 14203#elif defined(HAVE_INTTYPES_H) 14204#include <inttypes.h> 14205#endif 14206#ifdef HAVE_SYS_TYPES_H 14207#include <sys/types.h> 14208#endif 14209" 14210if test "x$ac_cv_type_uintptr_t" = xyes; then : 14211 14212cat >>confdefs.h <<_ACEOF 14213#define HAVE_UINTPTR_T 1 14214_ACEOF 14215 14216 14217fi 14218 14219 14220ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H 14221#include <sys/types.h> 14222#endif 14223#ifdef HAVE_SYS_SELECT_H 14224#include <sys/select.h> 14225#endif 14226" 14227if test "x$ac_cv_type_fd_mask" = xyes; then : 14228 14229cat >>confdefs.h <<_ACEOF 14230#define HAVE_FD_MASK 1 14231_ACEOF 14232 14233 14234fi 14235 14236 14237# The cast to long int works around a bug in the HP C Compiler 14238# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14239# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14240# This bug is HP SR number 8606223364. 14241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 14242$as_echo_n "checking size of long long... " >&6; } 14243if ${ac_cv_sizeof_long_long+:} false; then : 14244 $as_echo_n "(cached) " >&6 14245else 14246 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 14247 14248else 14249 if test "$ac_cv_type_long_long" = yes; then 14250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14252as_fn_error 77 "cannot compute sizeof (long long) 14253See \`config.log' for more details" "$LINENO" 5; } 14254 else 14255 ac_cv_sizeof_long_long=0 14256 fi 14257fi 14258 14259fi 14260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 14261$as_echo "$ac_cv_sizeof_long_long" >&6; } 14262 14263 14264 14265cat >>confdefs.h <<_ACEOF 14266#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 14267_ACEOF 14268 14269 14270# The cast to long int works around a bug in the HP C Compiler 14271# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14272# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14273# This bug is HP SR number 8606223364. 14274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14275$as_echo_n "checking size of long... " >&6; } 14276if ${ac_cv_sizeof_long+:} false; then : 14277 $as_echo_n "(cached) " >&6 14278else 14279 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14280 14281else 14282 if test "$ac_cv_type_long" = yes; then 14283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14285as_fn_error 77 "cannot compute sizeof (long) 14286See \`config.log' for more details" "$LINENO" 5; } 14287 else 14288 ac_cv_sizeof_long=0 14289 fi 14290fi 14291 14292fi 14293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14294$as_echo "$ac_cv_sizeof_long" >&6; } 14295 14296 14297 14298cat >>confdefs.h <<_ACEOF 14299#define SIZEOF_LONG $ac_cv_sizeof_long 14300_ACEOF 14301 14302 14303# The cast to long int works around a bug in the HP C Compiler 14304# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14305# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14306# This bug is HP SR number 8606223364. 14307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 14308$as_echo_n "checking size of int... " >&6; } 14309if ${ac_cv_sizeof_int+:} false; then : 14310 $as_echo_n "(cached) " >&6 14311else 14312 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 14313 14314else 14315 if test "$ac_cv_type_int" = yes; then 14316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14318as_fn_error 77 "cannot compute sizeof (int) 14319See \`config.log' for more details" "$LINENO" 5; } 14320 else 14321 ac_cv_sizeof_int=0 14322 fi 14323fi 14324 14325fi 14326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 14327$as_echo "$ac_cv_sizeof_int" >&6; } 14328 14329 14330 14331cat >>confdefs.h <<_ACEOF 14332#define SIZEOF_INT $ac_cv_sizeof_int 14333_ACEOF 14334 14335 14336# The cast to long int works around a bug in the HP C Compiler 14337# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14338# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14339# This bug is HP SR number 8606223364. 14340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 14341$as_echo_n "checking size of short... " >&6; } 14342if ${ac_cv_sizeof_short+:} false; then : 14343 $as_echo_n "(cached) " >&6 14344else 14345 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 14346 14347else 14348 if test "$ac_cv_type_short" = yes; then 14349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14351as_fn_error 77 "cannot compute sizeof (short) 14352See \`config.log' for more details" "$LINENO" 5; } 14353 else 14354 ac_cv_sizeof_short=0 14355 fi 14356fi 14357 14358fi 14359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 14360$as_echo "$ac_cv_sizeof_short" >&6; } 14361 14362 14363 14364cat >>confdefs.h <<_ACEOF 14365#define SIZEOF_SHORT $ac_cv_sizeof_short 14366_ACEOF 14367 14368 14369# The cast to long int works around a bug in the HP C Compiler 14370# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14371# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14372# This bug is HP SR number 8606223364. 14373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 14374$as_echo_n "checking size of size_t... " >&6; } 14375if ${ac_cv_sizeof_size_t+:} false; then : 14376 $as_echo_n "(cached) " >&6 14377else 14378 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 14379 14380else 14381 if test "$ac_cv_type_size_t" = yes; then 14382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14384as_fn_error 77 "cannot compute sizeof (size_t) 14385See \`config.log' for more details" "$LINENO" 5; } 14386 else 14387 ac_cv_sizeof_size_t=0 14388 fi 14389fi 14390 14391fi 14392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 14393$as_echo "$ac_cv_sizeof_size_t" >&6; } 14394 14395 14396 14397cat >>confdefs.h <<_ACEOF 14398#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 14399_ACEOF 14400 14401 14402# The cast to long int works around a bug in the HP C Compiler 14403# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14404# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14405# This bug is HP SR number 8606223364. 14406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 14407$as_echo_n "checking size of void *... " >&6; } 14408if ${ac_cv_sizeof_void_p+:} false; then : 14409 $as_echo_n "(cached) " >&6 14410else 14411 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 14412 14413else 14414 if test "$ac_cv_type_void_p" = yes; then 14415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14417as_fn_error 77 "cannot compute sizeof (void *) 14418See \`config.log' for more details" "$LINENO" 5; } 14419 else 14420 ac_cv_sizeof_void_p=0 14421 fi 14422fi 14423 14424fi 14425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 14426$as_echo "$ac_cv_sizeof_void_p" >&6; } 14427 14428 14429 14430cat >>confdefs.h <<_ACEOF 14431#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 14432_ACEOF 14433 14434 14435# The cast to long int works around a bug in the HP C Compiler 14436# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14437# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14438# This bug is HP SR number 8606223364. 14439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 14440$as_echo_n "checking size of off_t... " >&6; } 14441if ${ac_cv_sizeof_off_t+:} false; then : 14442 $as_echo_n "(cached) " >&6 14443else 14444 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 14445 14446else 14447 if test "$ac_cv_type_off_t" = yes; then 14448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14450as_fn_error 77 "cannot compute sizeof (off_t) 14451See \`config.log' for more details" "$LINENO" 5; } 14452 else 14453 ac_cv_sizeof_off_t=0 14454 fi 14455fi 14456 14457fi 14458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 14459$as_echo "$ac_cv_sizeof_off_t" >&6; } 14460 14461 14462 14463cat >>confdefs.h <<_ACEOF 14464#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 14465_ACEOF 14466 14467 14468 14469ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE 14470#include <sys/types.h> 14471#ifdef HAVE_NETINET_IN_H 14472#include <netinet/in.h> 14473#endif 14474#ifdef HAVE_NETINET_IN6_H 14475#include <netinet/in6.h> 14476#endif 14477#ifdef HAVE_SYS_SOCKET_H 14478#include <sys/socket.h> 14479#endif 14480#ifdef HAVE_NETDB_H 14481#include <netdb.h> 14482#endif 14483#ifdef _WIN32 14484#define WIN32_WINNT 0x400 14485#define _WIN32_WINNT 0x400 14486#define WIN32_LEAN_AND_MEAN 14487#if defined(_MSC_VER) && (_MSC_VER < 1300) 14488#include <winsock.h> 14489#else 14490#include <winsock2.h> 14491#include <ws2tcpip.h> 14492#endif 14493#endif 14494 14495" 14496if test "x$ac_cv_type_struct_in6_addr" = xyes; then : 14497 14498cat >>confdefs.h <<_ACEOF 14499#define HAVE_STRUCT_IN6_ADDR 1 14500_ACEOF 14501 14502 14503fi 14504ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE 14505#include <sys/types.h> 14506#ifdef HAVE_NETINET_IN_H 14507#include <netinet/in.h> 14508#endif 14509#ifdef HAVE_NETINET_IN6_H 14510#include <netinet/in6.h> 14511#endif 14512#ifdef HAVE_SYS_SOCKET_H 14513#include <sys/socket.h> 14514#endif 14515#ifdef HAVE_NETDB_H 14516#include <netdb.h> 14517#endif 14518#ifdef _WIN32 14519#define WIN32_WINNT 0x400 14520#define _WIN32_WINNT 0x400 14521#define WIN32_LEAN_AND_MEAN 14522#if defined(_MSC_VER) && (_MSC_VER < 1300) 14523#include <winsock.h> 14524#else 14525#include <winsock2.h> 14526#include <ws2tcpip.h> 14527#endif 14528#endif 14529 14530" 14531if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : 14532 14533cat >>confdefs.h <<_ACEOF 14534#define HAVE_STRUCT_SOCKADDR_IN6 1 14535_ACEOF 14536 14537 14538fi 14539ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE 14540#include <sys/types.h> 14541#ifdef HAVE_NETINET_IN_H 14542#include <netinet/in.h> 14543#endif 14544#ifdef HAVE_NETINET_IN6_H 14545#include <netinet/in6.h> 14546#endif 14547#ifdef HAVE_SYS_SOCKET_H 14548#include <sys/socket.h> 14549#endif 14550#ifdef HAVE_NETDB_H 14551#include <netdb.h> 14552#endif 14553#ifdef _WIN32 14554#define WIN32_WINNT 0x400 14555#define _WIN32_WINNT 0x400 14556#define WIN32_LEAN_AND_MEAN 14557#if defined(_MSC_VER) && (_MSC_VER < 1300) 14558#include <winsock.h> 14559#else 14560#include <winsock2.h> 14561#include <ws2tcpip.h> 14562#endif 14563#endif 14564 14565" 14566if test "x$ac_cv_type_sa_family_t" = xyes; then : 14567 14568cat >>confdefs.h <<_ACEOF 14569#define HAVE_SA_FAMILY_T 1 14570_ACEOF 14571 14572 14573fi 14574ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE 14575#include <sys/types.h> 14576#ifdef HAVE_NETINET_IN_H 14577#include <netinet/in.h> 14578#endif 14579#ifdef HAVE_NETINET_IN6_H 14580#include <netinet/in6.h> 14581#endif 14582#ifdef HAVE_SYS_SOCKET_H 14583#include <sys/socket.h> 14584#endif 14585#ifdef HAVE_NETDB_H 14586#include <netdb.h> 14587#endif 14588#ifdef _WIN32 14589#define WIN32_WINNT 0x400 14590#define _WIN32_WINNT 0x400 14591#define WIN32_LEAN_AND_MEAN 14592#if defined(_MSC_VER) && (_MSC_VER < 1300) 14593#include <winsock.h> 14594#else 14595#include <winsock2.h> 14596#include <ws2tcpip.h> 14597#endif 14598#endif 14599 14600" 14601if test "x$ac_cv_type_struct_addrinfo" = xyes; then : 14602 14603cat >>confdefs.h <<_ACEOF 14604#define HAVE_STRUCT_ADDRINFO 1 14605_ACEOF 14606 14607 14608fi 14609ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE 14610#include <sys/types.h> 14611#ifdef HAVE_NETINET_IN_H 14612#include <netinet/in.h> 14613#endif 14614#ifdef HAVE_NETINET_IN6_H 14615#include <netinet/in6.h> 14616#endif 14617#ifdef HAVE_SYS_SOCKET_H 14618#include <sys/socket.h> 14619#endif 14620#ifdef HAVE_NETDB_H 14621#include <netdb.h> 14622#endif 14623#ifdef _WIN32 14624#define WIN32_WINNT 0x400 14625#define _WIN32_WINNT 0x400 14626#define WIN32_LEAN_AND_MEAN 14627#if defined(_MSC_VER) && (_MSC_VER < 1300) 14628#include <winsock.h> 14629#else 14630#include <winsock2.h> 14631#include <ws2tcpip.h> 14632#endif 14633#endif 14634 14635" 14636if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 14637 14638cat >>confdefs.h <<_ACEOF 14639#define HAVE_STRUCT_SOCKADDR_STORAGE 1 14640_ACEOF 14641 14642 14643fi 14644 14645ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h> 14646#ifdef HAVE_NETINET_IN_H 14647#include <netinet/in.h> 14648#endif 14649#ifdef HAVE_NETINET_IN6_H 14650#include <netinet/in6.h> 14651#endif 14652#ifdef HAVE_SYS_SOCKET_H 14653#include <sys/socket.h> 14654#endif 14655#ifdef _WIN32 14656#define WIN32_WINNT 0x400 14657#define _WIN32_WINNT 0x400 14658#define WIN32_LEAN_AND_MEAN 14659#if defined(_MSC_VER) && (_MSC_VER < 1300) 14660#include <winsock.h> 14661#else 14662#include <winsock2.h> 14663#include <ws2tcpip.h> 14664#endif 14665#endif 14666 14667" 14668if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then : 14669 14670cat >>confdefs.h <<_ACEOF 14671#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1 14672_ACEOF 14673 14674 14675fi 14676ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h> 14677#ifdef HAVE_NETINET_IN_H 14678#include <netinet/in.h> 14679#endif 14680#ifdef HAVE_NETINET_IN6_H 14681#include <netinet/in6.h> 14682#endif 14683#ifdef HAVE_SYS_SOCKET_H 14684#include <sys/socket.h> 14685#endif 14686#ifdef _WIN32 14687#define WIN32_WINNT 0x400 14688#define _WIN32_WINNT 0x400 14689#define WIN32_LEAN_AND_MEAN 14690#if defined(_MSC_VER) && (_MSC_VER < 1300) 14691#include <winsock.h> 14692#else 14693#include <winsock2.h> 14694#include <ws2tcpip.h> 14695#endif 14696#endif 14697 14698" 14699if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then : 14700 14701cat >>confdefs.h <<_ACEOF 14702#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1 14703_ACEOF 14704 14705 14706fi 14707ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h> 14708#ifdef HAVE_NETINET_IN_H 14709#include <netinet/in.h> 14710#endif 14711#ifdef HAVE_NETINET_IN6_H 14712#include <netinet/in6.h> 14713#endif 14714#ifdef HAVE_SYS_SOCKET_H 14715#include <sys/socket.h> 14716#endif 14717#ifdef _WIN32 14718#define WIN32_WINNT 0x400 14719#define _WIN32_WINNT 0x400 14720#define WIN32_LEAN_AND_MEAN 14721#if defined(_MSC_VER) && (_MSC_VER < 1300) 14722#include <winsock.h> 14723#else 14724#include <winsock2.h> 14725#include <ws2tcpip.h> 14726#endif 14727#endif 14728 14729" 14730if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 14731 14732cat >>confdefs.h <<_ACEOF 14733#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 14734_ACEOF 14735 14736 14737fi 14738ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h> 14739#ifdef HAVE_NETINET_IN_H 14740#include <netinet/in.h> 14741#endif 14742#ifdef HAVE_NETINET_IN6_H 14743#include <netinet/in6.h> 14744#endif 14745#ifdef HAVE_SYS_SOCKET_H 14746#include <sys/socket.h> 14747#endif 14748#ifdef _WIN32 14749#define WIN32_WINNT 0x400 14750#define _WIN32_WINNT 0x400 14751#define WIN32_LEAN_AND_MEAN 14752#if defined(_MSC_VER) && (_MSC_VER < 1300) 14753#include <winsock.h> 14754#else 14755#include <winsock2.h> 14756#include <ws2tcpip.h> 14757#endif 14758#endif 14759 14760" 14761if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then : 14762 14763cat >>confdefs.h <<_ACEOF 14764#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1 14765_ACEOF 14766 14767 14768fi 14769ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h> 14770#ifdef HAVE_NETINET_IN_H 14771#include <netinet/in.h> 14772#endif 14773#ifdef HAVE_NETINET_IN6_H 14774#include <netinet/in6.h> 14775#endif 14776#ifdef HAVE_SYS_SOCKET_H 14777#include <sys/socket.h> 14778#endif 14779#ifdef _WIN32 14780#define WIN32_WINNT 0x400 14781#define _WIN32_WINNT 0x400 14782#define WIN32_LEAN_AND_MEAN 14783#if defined(_MSC_VER) && (_MSC_VER < 1300) 14784#include <winsock.h> 14785#else 14786#include <winsock2.h> 14787#include <ws2tcpip.h> 14788#endif 14789#endif 14790 14791" 14792if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : 14793 14794cat >>confdefs.h <<_ACEOF 14795#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 14796_ACEOF 14797 14798 14799fi 14800ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h> 14801#ifdef HAVE_NETINET_IN_H 14802#include <netinet/in.h> 14803#endif 14804#ifdef HAVE_NETINET_IN6_H 14805#include <netinet/in6.h> 14806#endif 14807#ifdef HAVE_SYS_SOCKET_H 14808#include <sys/socket.h> 14809#endif 14810#ifdef _WIN32 14811#define WIN32_WINNT 0x400 14812#define _WIN32_WINNT 0x400 14813#define WIN32_LEAN_AND_MEAN 14814#if defined(_MSC_VER) && (_MSC_VER < 1300) 14815#include <winsock.h> 14816#else 14817#include <winsock2.h> 14818#include <ws2tcpip.h> 14819#endif 14820#endif 14821 14822" 14823if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then : 14824 14825cat >>confdefs.h <<_ACEOF 14826#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1 14827_ACEOF 14828 14829 14830fi 14831 14832 14833ac_fn_c_check_type "$LINENO" "struct so_linger" "ac_cv_type_struct_so_linger" " 14834#ifdef HAVE_SYS_SOCKET_H 14835#include <sys/socket.h> 14836#endif 14837 14838" 14839if test "x$ac_cv_type_struct_so_linger" = xyes; then : 14840 14841cat >>confdefs.h <<_ACEOF 14842#define HAVE_STRUCT_SO_LINGER 1 14843_ACEOF 14844 14845#define HAVE_SO_LINGER 14846fi 14847 14848 14849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 14850$as_echo_n "checking for socklen_t... " >&6; } 14851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14852/* end confdefs.h. */ 14853 14854 #include <sys/types.h> 14855 #include <sys/socket.h> 14856int 14857main () 14858{ 14859socklen_t x; 14860 ; 14861 return 0; 14862} 14863_ACEOF 14864if ac_fn_c_try_compile "$LINENO"; then : 14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14866$as_echo "yes" >&6; } 14867else 14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14869$as_echo "no" >&6; } 14870 14871$as_echo "#define socklen_t unsigned int" >>confdefs.h 14872 14873 14874fi 14875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14876 14877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5 14878$as_echo_n "checking whether our compiler supports __func__... " >&6; } 14879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14880/* end confdefs.h. */ 14881 14882int 14883main () 14884{ 14885 const char *cp = __func__; 14886 ; 14887 return 0; 14888} 14889_ACEOF 14890if ac_fn_c_try_compile "$LINENO"; then : 14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14892$as_echo "yes" >&6; } 14893else 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14895$as_echo "no" >&6; } 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5 14897$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } 14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14899/* end confdefs.h. */ 14900 14901int 14902main () 14903{ 14904 const char *cp = __FUNCTION__; 14905 ; 14906 return 0; 14907} 14908_ACEOF 14909if ac_fn_c_try_compile "$LINENO"; then : 14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14911$as_echo "yes" >&6; } 14912 14913$as_echo "#define __func__ __FUNCTION__" >>confdefs.h 14914 14915else 14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14917$as_echo "no" >&6; } 14918 14919$as_echo "#define __func__ __FILE__" >>confdefs.h 14920 14921fi 14922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14923fi 14924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14925 14926 14927# check if we can compile with pthreads 14928have_pthreads=no 14929if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then 14930 14931 14932 14933ac_ext=c 14934ac_cpp='$CPP $CPPFLAGS' 14935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14937ac_compiler_gnu=$ac_cv_c_compiler_gnu 14938 14939acx_pthread_ok=no 14940 14941# We used to check for pthread.h first, but this fails if pthread.h 14942# requires special compiler flags (e.g. on True64 or Sequent). 14943# It gets checked for in the link test anyway. 14944 14945# First of all, check if the user has set any of the PTHREAD_LIBS, 14946# etcetera environment variables, and if threads linking works using 14947# them: 14948if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 14949 save_CFLAGS="$CFLAGS" 14950 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14951 save_LIBS="$LIBS" 14952 LIBS="$PTHREAD_LIBS $LIBS" 14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 14954$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14956/* end confdefs.h. */ 14957 14958/* Override any GCC internal prototype to avoid an error. 14959 Use char because int might match the return type of a GCC 14960 builtin and then its argument prototype would still apply. */ 14961#ifdef __cplusplus 14962extern "C" 14963#endif 14964char pthread_join (); 14965int 14966main () 14967{ 14968return pthread_join (); 14969 ; 14970 return 0; 14971} 14972_ACEOF 14973if ac_fn_c_try_link "$LINENO"; then : 14974 acx_pthread_ok=yes 14975fi 14976rm -f core conftest.err conftest.$ac_objext \ 14977 conftest$ac_exeext conftest.$ac_ext 14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 14979$as_echo "$acx_pthread_ok" >&6; } 14980 if test x"$acx_pthread_ok" = xno; then 14981 PTHREAD_LIBS="" 14982 PTHREAD_CFLAGS="" 14983 fi 14984 LIBS="$save_LIBS" 14985 CFLAGS="$save_CFLAGS" 14986fi 14987 14988# We must check for the threads library under a number of different 14989# names; the ordering is very important because some systems 14990# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 14991# libraries is broken (non-POSIX). 14992 14993# Create a list of thread flags to try. Items starting with a "-" are 14994# C compiler flags, and other items are library names, except for "none" 14995# which indicates that we try without any flags at all, and "pthread-config" 14996# which is a program returning the flags for the Pth emulation library. 14997 14998acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 14999 15000# The ordering *is* (sometimes) important. Some notes on the 15001# individual items follow: 15002 15003# pthreads: AIX (must check this before -lpthread) 15004# none: in case threads are in libc; should be tried before -Kthread and 15005# other compiler flags to prevent continual compiler warnings 15006# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15007# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15008# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15009# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15010# -pthreads: Solaris/gcc 15011# -mthreads: Mingw32/gcc, Lynx/gcc 15012# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15013# doesn't hurt to check since this sometimes defines pthreads too; 15014# also defines -D_REENTRANT) 15015# ... -mt is also the pthreads flag for HP/aCC 15016# pthread: Linux, etcetera 15017# --thread-safe: KAI C++ 15018# pthread-config: use pthread-config program (for GNU Pth library) 15019 15020case "${host_cpu}-${host_os}" in 15021 *solaris*) 15022 15023 # On Solaris (at least, for some versions), libc contains stubbed 15024 # (non-functional) versions of the pthreads routines, so link-based 15025 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15026 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15027 # a function called by this macro, so we could check for that, but 15028 # who knows whether they'll stub that too in a future libc.) So, 15029 # we'll just look for -pthreads and -lpthread first: 15030 15031 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 15032 ;; 15033esac 15034 15035if test x"$acx_pthread_ok" = xno; then 15036for flag in $acx_pthread_flags; do 15037 15038 case $flag in 15039 none) 15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15041$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15042 ;; 15043 15044 -*) 15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15046$as_echo_n "checking whether pthreads work with $flag... " >&6; } 15047 PTHREAD_CFLAGS="$flag" 15048 ;; 15049 15050 pthread-config) 15051 # Extract the first word of "pthread-config", so it can be a program name with args. 15052set dummy pthread-config; ac_word=$2 15053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15054$as_echo_n "checking for $ac_word... " >&6; } 15055if ${ac_cv_prog_acx_pthread_config+:} false; then : 15056 $as_echo_n "(cached) " >&6 15057else 15058 if test -n "$acx_pthread_config"; then 15059 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 15060else 15061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15062for as_dir in $PATH 15063do 15064 IFS=$as_save_IFS 15065 test -z "$as_dir" && as_dir=. 15066 for ac_exec_ext in '' $ac_executable_extensions; do 15067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15068 ac_cv_prog_acx_pthread_config="yes" 15069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15070 break 2 15071 fi 15072done 15073 done 15074IFS=$as_save_IFS 15075 15076 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 15077fi 15078fi 15079acx_pthread_config=$ac_cv_prog_acx_pthread_config 15080if test -n "$acx_pthread_config"; then 15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 15082$as_echo "$acx_pthread_config" >&6; } 15083else 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15085$as_echo "no" >&6; } 15086fi 15087 15088 15089 if test x"$acx_pthread_config" = xno; then continue; fi 15090 PTHREAD_CFLAGS="`pthread-config --cflags`" 15091 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15092 ;; 15093 15094 *) 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15096$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15097 PTHREAD_LIBS="-l$flag" 15098 ;; 15099 esac 15100 15101 save_LIBS="$LIBS" 15102 save_CFLAGS="$CFLAGS" 15103 LIBS="$PTHREAD_LIBS $LIBS" 15104 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15105 15106 # Check for various functions. We must include pthread.h, 15107 # since some functions may be macros. (On the Sequent, we 15108 # need a special flag -Kthread to make this header compile.) 15109 # We check for pthread_join because it is in -lpthread on IRIX 15110 # while pthread_create is in libc. We check for pthread_attr_init 15111 # due to DEC craziness with -lpthreads. We check for 15112 # pthread_cleanup_push because it is one of the few pthread 15113 # functions on Solaris that doesn't have a non-functional libc stub. 15114 # We try pthread_create on general principles. 15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15116/* end confdefs.h. */ 15117#include <pthread.h> 15118int 15119main () 15120{ 15121pthread_t th; pthread_join(th, 0); 15122 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15123 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15124 ; 15125 return 0; 15126} 15127_ACEOF 15128if ac_fn_c_try_link "$LINENO"; then : 15129 acx_pthread_ok=yes 15130fi 15131rm -f core conftest.err conftest.$ac_objext \ 15132 conftest$ac_exeext conftest.$ac_ext 15133 15134 LIBS="$save_LIBS" 15135 CFLAGS="$save_CFLAGS" 15136 15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15138$as_echo "$acx_pthread_ok" >&6; } 15139 if test "x$acx_pthread_ok" = xyes; then 15140 break; 15141 fi 15142 15143 PTHREAD_LIBS="" 15144 PTHREAD_CFLAGS="" 15145done 15146fi 15147 15148# Various other checks: 15149if test "x$acx_pthread_ok" = xyes; then 15150 save_LIBS="$LIBS" 15151 LIBS="$PTHREAD_LIBS $LIBS" 15152 save_CFLAGS="$CFLAGS" 15153 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15154 15155 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15157$as_echo_n "checking for joinable pthread attribute... " >&6; } 15158 attr_name=unknown 15159 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15161/* end confdefs.h. */ 15162#include <pthread.h> 15163int 15164main () 15165{ 15166int attr=$attr; return attr; 15167 ; 15168 return 0; 15169} 15170_ACEOF 15171if ac_fn_c_try_link "$LINENO"; then : 15172 attr_name=$attr; break 15173fi 15174rm -f core conftest.err conftest.$ac_objext \ 15175 conftest$ac_exeext conftest.$ac_ext 15176 done 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15178$as_echo "$attr_name" >&6; } 15179 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15180 15181cat >>confdefs.h <<_ACEOF 15182#define PTHREAD_CREATE_JOINABLE $attr_name 15183_ACEOF 15184 15185 fi 15186 15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15188$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15189 flag=no 15190 case "${host_cpu}-${host_os}" in 15191 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 15192 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 15193 esac 15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15195$as_echo "${flag}" >&6; } 15196 if test "x$flag" != xno; then 15197 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15198 fi 15199 15200 LIBS="$save_LIBS" 15201 CFLAGS="$save_CFLAGS" 15202 15203 # More AIX lossage: must compile with xlc_r or cc_r 15204 if test x"$GCC" != xyes; then 15205 for ac_prog in xlc_r cc_r 15206do 15207 # Extract the first word of "$ac_prog", so it can be a program name with args. 15208set dummy $ac_prog; ac_word=$2 15209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15210$as_echo_n "checking for $ac_word... " >&6; } 15211if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15212 $as_echo_n "(cached) " >&6 15213else 15214 if test -n "$PTHREAD_CC"; then 15215 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15216else 15217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15218for as_dir in $PATH 15219do 15220 IFS=$as_save_IFS 15221 test -z "$as_dir" && as_dir=. 15222 for ac_exec_ext in '' $ac_executable_extensions; do 15223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15224 ac_cv_prog_PTHREAD_CC="$ac_prog" 15225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15226 break 2 15227 fi 15228done 15229 done 15230IFS=$as_save_IFS 15231 15232fi 15233fi 15234PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15235if test -n "$PTHREAD_CC"; then 15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15237$as_echo "$PTHREAD_CC" >&6; } 15238else 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15240$as_echo "no" >&6; } 15241fi 15242 15243 15244 test -n "$PTHREAD_CC" && break 15245done 15246test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 15247 15248 else 15249 PTHREAD_CC=$CC 15250 fi 15251else 15252 PTHREAD_CC="$CC" 15253fi 15254 15255 15256 15257 15258 15259# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15260if test x"$acx_pthread_ok" = xyes; then 15261 15262 15263$as_echo "#define HAVE_PTHREADS 1" >>confdefs.h 15264 15265 have_pthreads=yes 15266 : 15267else 15268 acx_pthread_ok=no 15269 15270fi 15271ac_ext=c 15272ac_cpp='$CPP $CPPFLAGS' 15273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15275ac_compiler_gnu=$ac_cv_c_compiler_gnu 15276 15277 15278 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15279 # The cast to long int works around a bug in the HP C Compiler 15280# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15281# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15282# This bug is HP SR number 8606223364. 15283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 15284$as_echo_n "checking size of pthread_t... " >&6; } 15285if ${ac_cv_sizeof_pthread_t+:} false; then : 15286 $as_echo_n "(cached) " >&6 15287else 15288 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default 15289 #include <pthread.h> 15290 15291"; then : 15292 15293else 15294 if test "$ac_cv_type_pthread_t" = yes; then 15295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15297as_fn_error 77 "cannot compute sizeof (pthread_t) 15298See \`config.log' for more details" "$LINENO" 5; } 15299 else 15300 ac_cv_sizeof_pthread_t=0 15301 fi 15302fi 15303 15304fi 15305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 15306$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 15307 15308 15309 15310cat >>confdefs.h <<_ACEOF 15311#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 15312_ACEOF 15313 15314 15315fi 15316 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then 15317 PTHREADS_TRUE= 15318 PTHREADS_FALSE='#' 15319else 15320 PTHREADS_TRUE='#' 15321 PTHREADS_FALSE= 15322fi 15323 15324 15325# check if we should compile locking into the library 15326if test x$enable_thread_support = xno; then 15327 15328$as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h 15329 15330fi 15331 15332# check if we should hard-code the mm functions. 15333if test x$enable_malloc_replacement = xno; then 15334 15335$as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h 15336 15337fi 15338 15339# check if we should hard-code debugging out 15340if test x$enable_debug_mode = xno; then 15341 15342$as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h 15343 15344fi 15345 15346# check if we should enable verbose debugging 15347if test x$enable_verbose_debug = xyes; then 15348 CFLAGS="$CFLAGS -DUSE_DEBUG" 15349fi 15350 15351# check if we have and should use openssl 15352 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then 15353 OPENSSL_TRUE= 15354 OPENSSL_FALSE='#' 15355else 15356 OPENSSL_TRUE='#' 15357 OPENSSL_FALSE= 15358fi 15359 15360 15361# Add some more warnings which we use in development but not in the 15362# released versions. (Some relevant gcc versions can't handle these.) 15363if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then 15364 15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15366/* end confdefs.h. */ 15367 15368int 15369main () 15370{ 15371 15372#if !defined(__GNUC__) || (__GNUC__ < 4) 15373#error 15374#endif 15375 ; 15376 return 0; 15377} 15378_ACEOF 15379if ac_fn_c_try_compile "$LINENO"; then : 15380 have_gcc4=yes 15381else 15382 have_gcc4=no 15383fi 15384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15385 15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15387/* end confdefs.h. */ 15388 15389int 15390main () 15391{ 15392 15393#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2) 15394#error 15395#endif 15396 ; 15397 return 0; 15398} 15399_ACEOF 15400if ac_fn_c_try_compile "$LINENO"; then : 15401 have_gcc42=yes 15402else 15403 have_gcc42=no 15404fi 15405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15406 15407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15408/* end confdefs.h. */ 15409 15410int 15411main () 15412{ 15413 15414#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) 15415#error 15416#endif 15417 ; 15418 return 0; 15419} 15420_ACEOF 15421if ac_fn_c_try_compile "$LINENO"; then : 15422 have_gcc45=yes 15423else 15424 have_gcc45=no 15425fi 15426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15427 15428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15429/* end confdefs.h. */ 15430 15431int 15432main () 15433{ 15434 15435#if !defined(__clang__) 15436#error 15437#endif 15438 ; 15439 return 0; 15440} 15441_ACEOF 15442if ac_fn_c_try_compile "$LINENO"; then : 15443 have_clang=yes 15444else 15445 have_clang=no 15446fi 15447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15448 15449 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum" 15450 if test x$enable_gcc_warnings = xyes; then 15451 CFLAGS="$CFLAGS -Werror" 15452 fi 15453 15454 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing" 15455 15456 if test x$have_gcc4 = xyes ; then 15457 # These warnings break gcc 3.3.5 and work on gcc 4.0.2 15458 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement" 15459 #CFLAGS="$CFLAGS -Wold-style-definition" 15460 fi 15461 15462 if test x$have_gcc42 = xyes ; then 15463 # These warnings break gcc 4.0.2 and work on gcc 4.2 15464 CFLAGS="$CFLAGS -Waddress" 15465 fi 15466 15467 if test x$have_gcc42 = xyes && test x$have_clang = xno; then 15468 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2 15469 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init" 15470 fi 15471 15472 if test x$have_gcc45 = xyes ; then 15473 # These warnings work on gcc 4.5 15474 CFLAGS="$CFLAGS -Wlogical-op" 15475 fi 15476 15477 if test x$have_clang = xyes; then 15478 # Disable the unused-function warnings, because these trigger 15479 # for minheap-internal.h related code. 15480 CFLAGS="$CFLAGS -Wno-unused-function" 15481 15482 # clang on macosx emits warnigns for each directory specified which 15483 # isn't "used" generating a lot of build noise (typically 3 warnings 15484 # per file 15485 case "$host_os" in 15486 darwin*) 15487 CFLAGS="$CFLAGS -Qunused-arguments" 15488 ;; 15489 esac 15490 fi 15491 15492##This will break the world on some 64-bit architectures 15493# CFLAGS="$CFLAGS -Winline" 15494 15495fi 15496 15497LIBEVENT_GC_SECTIONS= 15498if test "$GCC" = yes && test "$enable_function_sections" = yes ; then 15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 15500$as_echo_n "checking if linker supports omitting unused code and data... " >&6; } 15501if ${libevent_cv_gc_sections_runs+:} false; then : 15502 $as_echo_n "(cached) " >&6 15503else 15504 15505 origCFLAGS="$CFLAGS" 15506 CFLAGS="$CFLAGS -Wl,--gc-sections" 15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15508/* end confdefs.h. */ 15509 15510 #include <stdlib.h> 15511 #include <stdio.h> 15512 15513int 15514main () 15515{ 15516 15517 FILE * fpC; 15518 char buf[32]; 15519 size_t cch; 15520 int read_success_once; 15521 15522 fpC = fopen("conftest.c", "r"); 15523 if (NULL == fpC) 15524 exit(1); 15525 do { 15526 cch = fread(buf, sizeof(buf), 1, fpC); 15527 read_success_once |= (0 != cch); 15528 } while (0 != cch); 15529 if (!read_success_once) 15530 exit(2); 15531 if (!feof(fpC)) 15532 exit(3); 15533 if (0 != fclose(fpC)) 15534 exit(4); 15535 15536 exit(EXIT_SUCCESS); 15537 15538 15539 ; 15540 return 0; 15541} 15542_ACEOF 15543if ac_fn_c_try_link "$LINENO"; then : 15544 15545 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 15546 libevent_cv_gc_sections_runs=no 15547 else 15548 libevent_cv_gc_sections_runs=no 15549 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes 15550 fi 15551 15552else 15553 libevent_cv_gc_sections_runs=no 15554 15555fi 15556rm -f core conftest.err conftest.$ac_objext \ 15557 conftest$ac_exeext conftest.$ac_ext 15558 CFLAGS="$origCFLAGS" 15559 { origCFLAGS=; unset origCFLAGS;} 15560 15561 15562fi 15563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5 15564$as_echo "$libevent_cv_gc_sections_runs" >&6; } 15565 case "$libevent_cv_gc_sections_runs" in 15566 yes) 15567 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS" 15568 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections" 15569 ;; 15570 esac 15571fi 15572 15573 15574 if test "$enable_libevent_install" = "yes"; then 15575 INSTALL_LIBEVENT_TRUE= 15576 INSTALL_LIBEVENT_FALSE='#' 15577else 15578 INSTALL_LIBEVENT_TRUE='#' 15579 INSTALL_LIBEVENT_FALSE= 15580fi 15581 15582 15583ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc" 15584 15585ac_config_files="$ac_config_files Makefile" 15586 15587cat >confcache <<\_ACEOF 15588# This file is a shell script that caches the results of configure 15589# tests run on this system so they can be shared between configure 15590# scripts and configure runs, see configure's option --config-cache. 15591# It is not useful on other systems. If it contains results you don't 15592# want to keep, you may remove or edit it. 15593# 15594# config.status only pays attention to the cache file if you give it 15595# the --recheck option to rerun configure. 15596# 15597# `ac_cv_env_foo' variables (set or unset) will be overridden when 15598# loading this file, other *unset* `ac_cv_foo' will be assigned the 15599# following values. 15600 15601_ACEOF 15602 15603# The following way of writing the cache mishandles newlines in values, 15604# but we know of no workaround that is simple, portable, and efficient. 15605# So, we kill variables containing newlines. 15606# Ultrix sh set writes to stderr and can't be redirected directly, 15607# and sets the high bit in the cache file unless we assign to the vars. 15608( 15609 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15610 eval ac_val=\$$ac_var 15611 case $ac_val in #( 15612 *${as_nl}*) 15613 case $ac_var in #( 15614 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15615$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15616 esac 15617 case $ac_var in #( 15618 _ | IFS | as_nl) ;; #( 15619 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15620 *) { eval $ac_var=; unset $ac_var;} ;; 15621 esac ;; 15622 esac 15623 done 15624 15625 (set) 2>&1 | 15626 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15627 *${as_nl}ac_space=\ *) 15628 # `set' does not quote correctly, so add quotes: double-quote 15629 # substitution turns \\\\ into \\, and sed turns \\ into \. 15630 sed -n \ 15631 "s/'/'\\\\''/g; 15632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15633 ;; #( 15634 *) 15635 # `set' quotes correctly as required by POSIX, so do not add quotes. 15636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15637 ;; 15638 esac | 15639 sort 15640) | 15641 sed ' 15642 /^ac_cv_env_/b end 15643 t clear 15644 :clear 15645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15646 t end 15647 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15648 :end' >>confcache 15649if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15650 if test -w "$cache_file"; then 15651 if test "x$cache_file" != "x/dev/null"; then 15652 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15653$as_echo "$as_me: updating cache $cache_file" >&6;} 15654 if test ! -f "$cache_file" || test -h "$cache_file"; then 15655 cat confcache >"$cache_file" 15656 else 15657 case $cache_file in #( 15658 */* | ?:*) 15659 mv -f confcache "$cache_file"$$ && 15660 mv -f "$cache_file"$$ "$cache_file" ;; #( 15661 *) 15662 mv -f confcache "$cache_file" ;; 15663 esac 15664 fi 15665 fi 15666 else 15667 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15668$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15669 fi 15670fi 15671rm -f confcache 15672 15673test "x$prefix" = xNONE && prefix=$ac_default_prefix 15674# Let make expand exec_prefix. 15675test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15676 15677DEFS=-DHAVE_CONFIG_H 15678 15679ac_libobjs= 15680ac_ltlibobjs= 15681U= 15682for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15683 # 1. Remove the extension, and $U if already installed. 15684 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15685 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15686 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15687 # will be set to the directory where LIBOBJS objects are built. 15688 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15689 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15690done 15691LIBOBJS=$ac_libobjs 15692 15693LTLIBOBJS=$ac_ltlibobjs 15694 15695 15696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15697$as_echo_n "checking that generated files are newer than configure... " >&6; } 15698 if test -n "$am_sleep_pid"; then 15699 # Hide warnings about reused PIDs. 15700 wait $am_sleep_pid 2>/dev/null 15701 fi 15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15703$as_echo "done" >&6; } 15704 if test -n "$EXEEXT"; then 15705 am__EXEEXT_TRUE= 15706 am__EXEEXT_FALSE='#' 15707else 15708 am__EXEEXT_TRUE='#' 15709 am__EXEEXT_FALSE= 15710fi 15711 15712if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15713 as_fn_error $? "conditional \"AMDEP\" was never defined. 15714Usually this means the macro was only invoked conditionally." "$LINENO" 5 15715fi 15716if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15717 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15718Usually this means the macro was only invoked conditionally." "$LINENO" 5 15719fi 15720if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then 15721 as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined. 15722Usually this means the macro was only invoked conditionally." "$LINENO" 5 15723fi 15724if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then 15725 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined. 15726Usually this means the macro was only invoked conditionally." "$LINENO" 5 15727fi 15728if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then 15729 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined. 15730Usually this means the macro was only invoked conditionally." "$LINENO" 5 15731fi 15732if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then 15733 as_fn_error $? "conditional \"OPENSSL\" was never defined. 15734Usually this means the macro was only invoked conditionally." "$LINENO" 5 15735fi 15736if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then 15737 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined. 15738Usually this means the macro was only invoked conditionally." "$LINENO" 5 15739fi 15740if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then 15741 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined. 15742Usually this means the macro was only invoked conditionally." "$LINENO" 5 15743fi 15744if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then 15745 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined. 15746Usually this means the macro was only invoked conditionally." "$LINENO" 5 15747fi 15748if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then 15749 as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined. 15750Usually this means the macro was only invoked conditionally." "$LINENO" 5 15751fi 15752if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then 15753 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined. 15754Usually this means the macro was only invoked conditionally." "$LINENO" 5 15755fi 15756if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then 15757 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined. 15758Usually this means the macro was only invoked conditionally." "$LINENO" 5 15759fi 15760if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then 15761 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined. 15762Usually this means the macro was only invoked conditionally." "$LINENO" 5 15763fi 15764if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then 15765 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined. 15766Usually this means the macro was only invoked conditionally." "$LINENO" 5 15767fi 15768if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then 15769 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined. 15770Usually this means the macro was only invoked conditionally." "$LINENO" 5 15771fi 15772if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then 15773 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined. 15774Usually this means the macro was only invoked conditionally." "$LINENO" 5 15775fi 15776if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then 15777 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined. 15778Usually this means the macro was only invoked conditionally." "$LINENO" 5 15779fi 15780if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 15781 as_fn_error $? "conditional \"PTHREADS\" was never defined. 15782Usually this means the macro was only invoked conditionally." "$LINENO" 5 15783fi 15784if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then 15785 as_fn_error $? "conditional \"OPENSSL\" was never defined. 15786Usually this means the macro was only invoked conditionally." "$LINENO" 5 15787fi 15788if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then 15789 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined. 15790Usually this means the macro was only invoked conditionally." "$LINENO" 5 15791fi 15792 15793: "${CONFIG_STATUS=./config.status}" 15794ac_write_fail=0 15795ac_clean_files_save=$ac_clean_files 15796ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15797{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15798$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15799as_write_fail=0 15800cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15801#! $SHELL 15802# Generated by $as_me. 15803# Run this file to recreate the current configuration. 15804# Compiler output produced by configure, useful for debugging 15805# configure, is in config.log if it exists. 15806 15807debug=false 15808ac_cs_recheck=false 15809ac_cs_silent=false 15810 15811SHELL=\${CONFIG_SHELL-$SHELL} 15812export SHELL 15813_ASEOF 15814cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15815## -------------------- ## 15816## M4sh Initialization. ## 15817## -------------------- ## 15818 15819# Be more Bourne compatible 15820DUALCASE=1; export DUALCASE # for MKS sh 15821if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15822 emulate sh 15823 NULLCMD=: 15824 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15825 # is contrary to our usage. Disable this feature. 15826 alias -g '${1+"$@"}'='"$@"' 15827 setopt NO_GLOB_SUBST 15828else 15829 case `(set -o) 2>/dev/null` in #( 15830 *posix*) : 15831 set -o posix ;; #( 15832 *) : 15833 ;; 15834esac 15835fi 15836 15837 15838as_nl=' 15839' 15840export as_nl 15841# Printing a long string crashes Solaris 7 /usr/bin/printf. 15842as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15843as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15844as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15845# Prefer a ksh shell builtin over an external printf program on Solaris, 15846# but without wasting forks for bash or zsh. 15847if test -z "$BASH_VERSION$ZSH_VERSION" \ 15848 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15849 as_echo='print -r --' 15850 as_echo_n='print -rn --' 15851elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15852 as_echo='printf %s\n' 15853 as_echo_n='printf %s' 15854else 15855 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15856 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15857 as_echo_n='/usr/ucb/echo -n' 15858 else 15859 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15860 as_echo_n_body='eval 15861 arg=$1; 15862 case $arg in #( 15863 *"$as_nl"*) 15864 expr "X$arg" : "X\\(.*\\)$as_nl"; 15865 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15866 esac; 15867 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15868 ' 15869 export as_echo_n_body 15870 as_echo_n='sh -c $as_echo_n_body as_echo' 15871 fi 15872 export as_echo_body 15873 as_echo='sh -c $as_echo_body as_echo' 15874fi 15875 15876# The user is always right. 15877if test "${PATH_SEPARATOR+set}" != set; then 15878 PATH_SEPARATOR=: 15879 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15880 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15881 PATH_SEPARATOR=';' 15882 } 15883fi 15884 15885 15886# IFS 15887# We need space, tab and new line, in precisely that order. Quoting is 15888# there to prevent editors from complaining about space-tab. 15889# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15890# splitting by setting IFS to empty value.) 15891IFS=" "" $as_nl" 15892 15893# Find who we are. Look in the path if we contain no directory separator. 15894as_myself= 15895case $0 in #(( 15896 *[\\/]* ) as_myself=$0 ;; 15897 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15898for as_dir in $PATH 15899do 15900 IFS=$as_save_IFS 15901 test -z "$as_dir" && as_dir=. 15902 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15903 done 15904IFS=$as_save_IFS 15905 15906 ;; 15907esac 15908# We did not find ourselves, most probably we were run as `sh COMMAND' 15909# in which case we are not to be found in the path. 15910if test "x$as_myself" = x; then 15911 as_myself=$0 15912fi 15913if test ! -f "$as_myself"; then 15914 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15915 exit 1 15916fi 15917 15918# Unset variables that we do not need and which cause bugs (e.g. in 15919# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15920# suppresses any "Segmentation fault" message there. '((' could 15921# trigger a bug in pdksh 5.2.14. 15922for as_var in BASH_ENV ENV MAIL MAILPATH 15923do eval test x\${$as_var+set} = xset \ 15924 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15925done 15926PS1='$ ' 15927PS2='> ' 15928PS4='+ ' 15929 15930# NLS nuisances. 15931LC_ALL=C 15932export LC_ALL 15933LANGUAGE=C 15934export LANGUAGE 15935 15936# CDPATH. 15937(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15938 15939 15940# as_fn_error STATUS ERROR [LINENO LOG_FD] 15941# ---------------------------------------- 15942# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15943# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15944# script with STATUS, using 1 if that was 0. 15945as_fn_error () 15946{ 15947 as_status=$1; test $as_status -eq 0 && as_status=1 15948 if test "$4"; then 15949 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15950 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15951 fi 15952 $as_echo "$as_me: error: $2" >&2 15953 as_fn_exit $as_status 15954} # as_fn_error 15955 15956 15957# as_fn_set_status STATUS 15958# ----------------------- 15959# Set $? to STATUS, without forking. 15960as_fn_set_status () 15961{ 15962 return $1 15963} # as_fn_set_status 15964 15965# as_fn_exit STATUS 15966# ----------------- 15967# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15968as_fn_exit () 15969{ 15970 set +e 15971 as_fn_set_status $1 15972 exit $1 15973} # as_fn_exit 15974 15975# as_fn_unset VAR 15976# --------------- 15977# Portably unset VAR. 15978as_fn_unset () 15979{ 15980 { eval $1=; unset $1;} 15981} 15982as_unset=as_fn_unset 15983# as_fn_append VAR VALUE 15984# ---------------------- 15985# Append the text in VALUE to the end of the definition contained in VAR. Take 15986# advantage of any shell optimizations that allow amortized linear growth over 15987# repeated appends, instead of the typical quadratic growth present in naive 15988# implementations. 15989if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15990 eval 'as_fn_append () 15991 { 15992 eval $1+=\$2 15993 }' 15994else 15995 as_fn_append () 15996 { 15997 eval $1=\$$1\$2 15998 } 15999fi # as_fn_append 16000 16001# as_fn_arith ARG... 16002# ------------------ 16003# Perform arithmetic evaluation on the ARGs, and store the result in the 16004# global $as_val. Take advantage of shells that can avoid forks. The arguments 16005# must be portable across $(()) and expr. 16006if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16007 eval 'as_fn_arith () 16008 { 16009 as_val=$(( $* )) 16010 }' 16011else 16012 as_fn_arith () 16013 { 16014 as_val=`expr "$@" || test $? -eq 1` 16015 } 16016fi # as_fn_arith 16017 16018 16019if expr a : '\(a\)' >/dev/null 2>&1 && 16020 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16021 as_expr=expr 16022else 16023 as_expr=false 16024fi 16025 16026if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16027 as_basename=basename 16028else 16029 as_basename=false 16030fi 16031 16032if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16033 as_dirname=dirname 16034else 16035 as_dirname=false 16036fi 16037 16038as_me=`$as_basename -- "$0" || 16039$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16040 X"$0" : 'X\(//\)$' \| \ 16041 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16042$as_echo X/"$0" | 16043 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16044 s//\1/ 16045 q 16046 } 16047 /^X\/\(\/\/\)$/{ 16048 s//\1/ 16049 q 16050 } 16051 /^X\/\(\/\).*/{ 16052 s//\1/ 16053 q 16054 } 16055 s/.*/./; q'` 16056 16057# Avoid depending upon Character Ranges. 16058as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16059as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16060as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16061as_cr_digits='0123456789' 16062as_cr_alnum=$as_cr_Letters$as_cr_digits 16063 16064ECHO_C= ECHO_N= ECHO_T= 16065case `echo -n x` in #((((( 16066-n*) 16067 case `echo 'xy\c'` in 16068 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16069 xy) ECHO_C='\c';; 16070 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16071 ECHO_T=' ';; 16072 esac;; 16073*) 16074 ECHO_N='-n';; 16075esac 16076 16077rm -f conf$$ conf$$.exe conf$$.file 16078if test -d conf$$.dir; then 16079 rm -f conf$$.dir/conf$$.file 16080else 16081 rm -f conf$$.dir 16082 mkdir conf$$.dir 2>/dev/null 16083fi 16084if (echo >conf$$.file) 2>/dev/null; then 16085 if ln -s conf$$.file conf$$ 2>/dev/null; then 16086 as_ln_s='ln -s' 16087 # ... but there are two gotchas: 16088 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16089 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16090 # In both cases, we have to default to `cp -pR'. 16091 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16092 as_ln_s='cp -pR' 16093 elif ln conf$$.file conf$$ 2>/dev/null; then 16094 as_ln_s=ln 16095 else 16096 as_ln_s='cp -pR' 16097 fi 16098else 16099 as_ln_s='cp -pR' 16100fi 16101rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16102rmdir conf$$.dir 2>/dev/null 16103 16104 16105# as_fn_mkdir_p 16106# ------------- 16107# Create "$as_dir" as a directory, including parents if necessary. 16108as_fn_mkdir_p () 16109{ 16110 16111 case $as_dir in #( 16112 -*) as_dir=./$as_dir;; 16113 esac 16114 test -d "$as_dir" || eval $as_mkdir_p || { 16115 as_dirs= 16116 while :; do 16117 case $as_dir in #( 16118 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16119 *) as_qdir=$as_dir;; 16120 esac 16121 as_dirs="'$as_qdir' $as_dirs" 16122 as_dir=`$as_dirname -- "$as_dir" || 16123$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16124 X"$as_dir" : 'X\(//\)[^/]' \| \ 16125 X"$as_dir" : 'X\(//\)$' \| \ 16126 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16127$as_echo X"$as_dir" | 16128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16129 s//\1/ 16130 q 16131 } 16132 /^X\(\/\/\)[^/].*/{ 16133 s//\1/ 16134 q 16135 } 16136 /^X\(\/\/\)$/{ 16137 s//\1/ 16138 q 16139 } 16140 /^X\(\/\).*/{ 16141 s//\1/ 16142 q 16143 } 16144 s/.*/./; q'` 16145 test -d "$as_dir" && break 16146 done 16147 test -z "$as_dirs" || eval "mkdir $as_dirs" 16148 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16149 16150 16151} # as_fn_mkdir_p 16152if mkdir -p . 2>/dev/null; then 16153 as_mkdir_p='mkdir -p "$as_dir"' 16154else 16155 test -d ./-p && rmdir ./-p 16156 as_mkdir_p=false 16157fi 16158 16159 16160# as_fn_executable_p FILE 16161# ----------------------- 16162# Test if FILE is an executable regular file. 16163as_fn_executable_p () 16164{ 16165 test -f "$1" && test -x "$1" 16166} # as_fn_executable_p 16167as_test_x='test -x' 16168as_executable_p=as_fn_executable_p 16169 16170# Sed expression to map a string onto a valid CPP name. 16171as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16172 16173# Sed expression to map a string onto a valid variable name. 16174as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16175 16176 16177exec 6>&1 16178## ----------------------------------- ## 16179## Main body of $CONFIG_STATUS script. ## 16180## ----------------------------------- ## 16181_ASEOF 16182test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16183 16184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16185# Save the log message, to keep $0 and so on meaningful, and to 16186# report actual input values of CONFIG_FILES etc. instead of their 16187# values after options handling. 16188ac_log=" 16189This file was extended by libevent $as_me 2.1.5-beta, which was 16190generated by GNU Autoconf 2.69. Invocation command line was 16191 16192 CONFIG_FILES = $CONFIG_FILES 16193 CONFIG_HEADERS = $CONFIG_HEADERS 16194 CONFIG_LINKS = $CONFIG_LINKS 16195 CONFIG_COMMANDS = $CONFIG_COMMANDS 16196 $ $0 $@ 16197 16198on `(hostname || uname -n) 2>/dev/null | sed 1q` 16199" 16200 16201_ACEOF 16202 16203case $ac_config_files in *" 16204"*) set x $ac_config_files; shift; ac_config_files=$*;; 16205esac 16206 16207case $ac_config_headers in *" 16208"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16209esac 16210 16211 16212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16213# Files that config.status was made for. 16214config_files="$ac_config_files" 16215config_headers="$ac_config_headers" 16216config_commands="$ac_config_commands" 16217 16218_ACEOF 16219 16220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16221ac_cs_usage="\ 16222\`$as_me' instantiates files and other configuration actions 16223from templates according to the current configuration. Unless the files 16224and actions are specified as TAGs, all are instantiated by default. 16225 16226Usage: $0 [OPTION]... [TAG]... 16227 16228 -h, --help print this help, then exit 16229 -V, --version print version number and configuration settings, then exit 16230 --config print configuration, then exit 16231 -q, --quiet, --silent 16232 do not print progress messages 16233 -d, --debug don't remove temporary files 16234 --recheck update $as_me by reconfiguring in the same conditions 16235 --file=FILE[:TEMPLATE] 16236 instantiate the configuration file FILE 16237 --header=FILE[:TEMPLATE] 16238 instantiate the configuration header FILE 16239 16240Configuration files: 16241$config_files 16242 16243Configuration headers: 16244$config_headers 16245 16246Configuration commands: 16247$config_commands 16248 16249Report bugs to the package provider." 16250 16251_ACEOF 16252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16253ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16254ac_cs_version="\\ 16255libevent config.status 2.1.5-beta 16256configured by $0, generated by GNU Autoconf 2.69, 16257 with options \\"\$ac_cs_config\\" 16258 16259Copyright (C) 2012 Free Software Foundation, Inc. 16260This config.status script is free software; the Free Software Foundation 16261gives unlimited permission to copy, distribute and modify it." 16262 16263ac_pwd='$ac_pwd' 16264srcdir='$srcdir' 16265INSTALL='$INSTALL' 16266MKDIR_P='$MKDIR_P' 16267AWK='$AWK' 16268test -n "\$AWK" || AWK=awk 16269_ACEOF 16270 16271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16272# The default lists apply if the user does not specify any file. 16273ac_need_defaults=: 16274while test $# != 0 16275do 16276 case $1 in 16277 --*=?*) 16278 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16279 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16280 ac_shift=: 16281 ;; 16282 --*=) 16283 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16284 ac_optarg= 16285 ac_shift=: 16286 ;; 16287 *) 16288 ac_option=$1 16289 ac_optarg=$2 16290 ac_shift=shift 16291 ;; 16292 esac 16293 16294 case $ac_option in 16295 # Handling of the options. 16296 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16297 ac_cs_recheck=: ;; 16298 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16299 $as_echo "$ac_cs_version"; exit ;; 16300 --config | --confi | --conf | --con | --co | --c ) 16301 $as_echo "$ac_cs_config"; exit ;; 16302 --debug | --debu | --deb | --de | --d | -d ) 16303 debug=: ;; 16304 --file | --fil | --fi | --f ) 16305 $ac_shift 16306 case $ac_optarg in 16307 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16308 '') as_fn_error $? "missing file argument" ;; 16309 esac 16310 as_fn_append CONFIG_FILES " '$ac_optarg'" 16311 ac_need_defaults=false;; 16312 --header | --heade | --head | --hea ) 16313 $ac_shift 16314 case $ac_optarg in 16315 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16316 esac 16317 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16318 ac_need_defaults=false;; 16319 --he | --h) 16320 # Conflict between --help and --header 16321 as_fn_error $? "ambiguous option: \`$1' 16322Try \`$0 --help' for more information.";; 16323 --help | --hel | -h ) 16324 $as_echo "$ac_cs_usage"; exit ;; 16325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16326 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16327 ac_cs_silent=: ;; 16328 16329 # This is an error. 16330 -*) as_fn_error $? "unrecognized option: \`$1' 16331Try \`$0 --help' for more information." ;; 16332 16333 *) as_fn_append ac_config_targets " $1" 16334 ac_need_defaults=false ;; 16335 16336 esac 16337 shift 16338done 16339 16340ac_configure_extra_args= 16341 16342if $ac_cs_silent; then 16343 exec 6>/dev/null 16344 ac_configure_extra_args="$ac_configure_extra_args --silent" 16345fi 16346 16347_ACEOF 16348cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16349if \$ac_cs_recheck; then 16350 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16351 shift 16352 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16353 CONFIG_SHELL='$SHELL' 16354 export CONFIG_SHELL 16355 exec "\$@" 16356fi 16357 16358_ACEOF 16359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16360exec 5>>config.log 16361{ 16362 echo 16363 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16364## Running $as_me. ## 16365_ASBOX 16366 $as_echo "$ac_log" 16367} >&5 16368 16369_ACEOF 16370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16371# 16372# INIT-COMMANDS 16373# 16374AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16375 16376 16377# The HP-UX ksh and POSIX shell print the target directory to stdout 16378# if CDPATH is set. 16379(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16380 16381sed_quote_subst='$sed_quote_subst' 16382double_quote_subst='$double_quote_subst' 16383delay_variable_subst='$delay_variable_subst' 16384macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16385macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16386enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16387enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16388pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16389enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16390SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16391ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16392host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16393host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16394host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16395build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16396build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16397build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16398SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16399Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16400GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16401EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16402FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16403LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16404NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16405LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16406max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16407ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16408exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16409lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16410lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16411lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16412lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16413lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16414reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16415reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16416OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16417deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16418file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16419file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16420want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16421DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16422sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16423AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16424AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16425archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16426STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16427RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16428old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16429old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16430old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16431lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16432CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16433CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16434compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16435GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16436lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16437lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16438lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16439lt_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"`' 16440nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16441lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16442objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16443MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16444lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16445lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16446lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16447lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16448lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16449need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16450MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16451DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16452NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16453LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16454OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16455OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16456libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16457shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16458extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16459archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16460enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16461export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16462whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16463compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16464old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16465old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16466archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16467archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16468module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16469module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16470with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16471allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16472no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16473hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16474hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 16475hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16476hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16477hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16478hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16479hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16480hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16481inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16482link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16483always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16484export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16485exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16486include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16487prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16488postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16489file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16490variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16491need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16492need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16493version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16494runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16495shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16496shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16497libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16498library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16499soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16500install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16501postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16502postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16503finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16504finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16505hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16506sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16507sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16508hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16509enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16510enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16511enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16512old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16513striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16514 16515LTCC='$LTCC' 16516LTCFLAGS='$LTCFLAGS' 16517compiler='$compiler_DEFAULT' 16518 16519# A function that is used when there is no print builtin or printf. 16520func_fallback_echo () 16521{ 16522 eval 'cat <<_LTECHO_EOF 16523\$1 16524_LTECHO_EOF' 16525} 16526 16527# Quote evaled strings. 16528for var in SHELL \ 16529ECHO \ 16530SED \ 16531GREP \ 16532EGREP \ 16533FGREP \ 16534LD \ 16535NM \ 16536LN_S \ 16537lt_SP2NL \ 16538lt_NL2SP \ 16539reload_flag \ 16540OBJDUMP \ 16541deplibs_check_method \ 16542file_magic_cmd \ 16543file_magic_glob \ 16544want_nocaseglob \ 16545DLLTOOL \ 16546sharedlib_from_linklib_cmd \ 16547AR \ 16548AR_FLAGS \ 16549archiver_list_spec \ 16550STRIP \ 16551RANLIB \ 16552CC \ 16553CFLAGS \ 16554compiler \ 16555lt_cv_sys_global_symbol_pipe \ 16556lt_cv_sys_global_symbol_to_cdecl \ 16557lt_cv_sys_global_symbol_to_c_name_address \ 16558lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16559nm_file_list_spec \ 16560lt_prog_compiler_no_builtin_flag \ 16561lt_prog_compiler_pic \ 16562lt_prog_compiler_wl \ 16563lt_prog_compiler_static \ 16564lt_cv_prog_compiler_c_o \ 16565need_locks \ 16566MANIFEST_TOOL \ 16567DSYMUTIL \ 16568NMEDIT \ 16569LIPO \ 16570OTOOL \ 16571OTOOL64 \ 16572shrext_cmds \ 16573export_dynamic_flag_spec \ 16574whole_archive_flag_spec \ 16575compiler_needs_object \ 16576with_gnu_ld \ 16577allow_undefined_flag \ 16578no_undefined_flag \ 16579hardcode_libdir_flag_spec \ 16580hardcode_libdir_flag_spec_ld \ 16581hardcode_libdir_separator \ 16582exclude_expsyms \ 16583include_expsyms \ 16584file_list_spec \ 16585variables_saved_for_relink \ 16586libname_spec \ 16587library_names_spec \ 16588soname_spec \ 16589install_override_mode \ 16590finish_eval \ 16591old_striplib \ 16592striplib; do 16593 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16594 *[\\\\\\\`\\"\\\$]*) 16595 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16596 ;; 16597 *) 16598 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16599 ;; 16600 esac 16601done 16602 16603# Double-quote double-evaled strings. 16604for var in reload_cmds \ 16605old_postinstall_cmds \ 16606old_postuninstall_cmds \ 16607old_archive_cmds \ 16608extract_expsyms_cmds \ 16609old_archive_from_new_cmds \ 16610old_archive_from_expsyms_cmds \ 16611archive_cmds \ 16612archive_expsym_cmds \ 16613module_cmds \ 16614module_expsym_cmds \ 16615export_symbols_cmds \ 16616prelink_cmds \ 16617postlink_cmds \ 16618postinstall_cmds \ 16619postuninstall_cmds \ 16620finish_cmds \ 16621sys_lib_search_path_spec \ 16622sys_lib_dlsearch_path_spec; do 16623 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16624 *[\\\\\\\`\\"\\\$]*) 16625 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16626 ;; 16627 *) 16628 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16629 ;; 16630 esac 16631done 16632 16633ac_aux_dir='$ac_aux_dir' 16634xsi_shell='$xsi_shell' 16635lt_shell_append='$lt_shell_append' 16636 16637# See if we are running on zsh, and set the options which allow our 16638# commands through without removal of \ escapes INIT. 16639if test -n "\${ZSH_VERSION+set}" ; then 16640 setopt NO_GLOB_SUBST 16641fi 16642 16643 16644 PACKAGE='$PACKAGE' 16645 VERSION='$VERSION' 16646 TIMESTAMP='$TIMESTAMP' 16647 RM='$RM' 16648 ofile='$ofile' 16649 16650 16651 16652 16653_ACEOF 16654 16655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16656 16657# Handling of arguments. 16658for ac_config_target in $ac_config_targets 16659do 16660 case $ac_config_target in 16661 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16662 "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;; 16663 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16664 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16665 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;; 16666 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;; 16667 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;; 16668 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16669 16670 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16671 esac 16672done 16673 16674 16675# If the user did not use the arguments to specify the items to instantiate, 16676# then the envvar interface is used. Set only those that are not. 16677# We use the long form for the default assignment because of an extremely 16678# bizarre bug on SunOS 4.1.3. 16679if $ac_need_defaults; then 16680 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16681 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16682 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16683fi 16684 16685# Have a temporary directory for convenience. Make it in the build tree 16686# simply because there is no reason against having it here, and in addition, 16687# creating and moving files from /tmp can sometimes cause problems. 16688# Hook for its removal unless debugging. 16689# Note that there is a small window in which the directory will not be cleaned: 16690# after its creation but before its name has been assigned to `$tmp'. 16691$debug || 16692{ 16693 tmp= ac_tmp= 16694 trap 'exit_status=$? 16695 : "${ac_tmp:=$tmp}" 16696 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16697' 0 16698 trap 'as_fn_exit 1' 1 2 13 15 16699} 16700# Create a (secure) tmp directory for tmp files. 16701 16702{ 16703 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16704 test -d "$tmp" 16705} || 16706{ 16707 tmp=./conf$$-$RANDOM 16708 (umask 077 && mkdir "$tmp") 16709} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16710ac_tmp=$tmp 16711 16712# Set up the scripts for CONFIG_FILES section. 16713# No need to generate them if there are no CONFIG_FILES. 16714# This happens for instance with `./config.status config.h'. 16715if test -n "$CONFIG_FILES"; then 16716 16717 16718ac_cr=`echo X | tr X '\015'` 16719# On cygwin, bash can eat \r inside `` if the user requested igncr. 16720# But we know of no other shell where ac_cr would be empty at this 16721# point, so we can use a bashism as a fallback. 16722if test "x$ac_cr" = x; then 16723 eval ac_cr=\$\'\\r\' 16724fi 16725ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16726if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16727 ac_cs_awk_cr='\\r' 16728else 16729 ac_cs_awk_cr=$ac_cr 16730fi 16731 16732echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16733_ACEOF 16734 16735 16736{ 16737 echo "cat >conf$$subs.awk <<_ACEOF" && 16738 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16739 echo "_ACEOF" 16740} >conf$$subs.sh || 16741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16742ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16743ac_delim='%!_!# ' 16744for ac_last_try in false false false false false :; do 16745 . ./conf$$subs.sh || 16746 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16747 16748 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16749 if test $ac_delim_n = $ac_delim_num; then 16750 break 16751 elif $ac_last_try; then 16752 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16753 else 16754 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16755 fi 16756done 16757rm -f conf$$subs.sh 16758 16759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16760cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16761_ACEOF 16762sed -n ' 16763h 16764s/^/S["/; s/!.*/"]=/ 16765p 16766g 16767s/^[^!]*!// 16768:repl 16769t repl 16770s/'"$ac_delim"'$// 16771t delim 16772:nl 16773h 16774s/\(.\{148\}\)..*/\1/ 16775t more1 16776s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16777p 16778n 16779b repl 16780:more1 16781s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16782p 16783g 16784s/.\{148\}// 16785t nl 16786:delim 16787h 16788s/\(.\{148\}\)..*/\1/ 16789t more2 16790s/["\\]/\\&/g; s/^/"/; s/$/"/ 16791p 16792b 16793:more2 16794s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16795p 16796g 16797s/.\{148\}// 16798t delim 16799' <conf$$subs.awk | sed ' 16800/^[^""]/{ 16801 N 16802 s/\n// 16803} 16804' >>$CONFIG_STATUS || ac_write_fail=1 16805rm -f conf$$subs.awk 16806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16807_ACAWK 16808cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16809 for (key in S) S_is_set[key] = 1 16810 FS = "" 16811 16812} 16813{ 16814 line = $ 0 16815 nfields = split(line, field, "@") 16816 substed = 0 16817 len = length(field[1]) 16818 for (i = 2; i < nfields; i++) { 16819 key = field[i] 16820 keylen = length(key) 16821 if (S_is_set[key]) { 16822 value = S[key] 16823 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16824 len += length(value) + length(field[++i]) 16825 substed = 1 16826 } else 16827 len += 1 + keylen 16828 } 16829 16830 print line 16831} 16832 16833_ACAWK 16834_ACEOF 16835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16836if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16837 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16838else 16839 cat 16840fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16841 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16842_ACEOF 16843 16844# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16845# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16846# trailing colons and then remove the whole line if VPATH becomes empty 16847# (actually we leave an empty line to preserve line numbers). 16848if test "x$srcdir" = x.; then 16849 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16850h 16851s/// 16852s/^/:/ 16853s/[ ]*$/:/ 16854s/:\$(srcdir):/:/g 16855s/:\${srcdir}:/:/g 16856s/:@srcdir@:/:/g 16857s/^:*// 16858s/:*$// 16859x 16860s/\(=[ ]*\).*/\1/ 16861G 16862s/\n// 16863s/^[^=]*=[ ]*$// 16864}' 16865fi 16866 16867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16868fi # test -n "$CONFIG_FILES" 16869 16870# Set up the scripts for CONFIG_HEADERS section. 16871# No need to generate them if there are no CONFIG_HEADERS. 16872# This happens for instance with `./config.status Makefile'. 16873if test -n "$CONFIG_HEADERS"; then 16874cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16875BEGIN { 16876_ACEOF 16877 16878# Transform confdefs.h into an awk script `defines.awk', embedded as 16879# here-document in config.status, that substitutes the proper values into 16880# config.h.in to produce config.h. 16881 16882# Create a delimiter string that does not exist in confdefs.h, to ease 16883# handling of long lines. 16884ac_delim='%!_!# ' 16885for ac_last_try in false false :; do 16886 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16887 if test -z "$ac_tt"; then 16888 break 16889 elif $ac_last_try; then 16890 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16891 else 16892 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16893 fi 16894done 16895 16896# For the awk script, D is an array of macro values keyed by name, 16897# likewise P contains macro parameters if any. Preserve backslash 16898# newline sequences. 16899 16900ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16901sed -n ' 16902s/.\{148\}/&'"$ac_delim"'/g 16903t rset 16904:rset 16905s/^[ ]*#[ ]*define[ ][ ]*/ / 16906t def 16907d 16908:def 16909s/\\$// 16910t bsnl 16911s/["\\]/\\&/g 16912s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16913D["\1"]=" \3"/p 16914s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16915d 16916:bsnl 16917s/["\\]/\\&/g 16918s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16919D["\1"]=" \3\\\\\\n"\\/p 16920t cont 16921s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16922t cont 16923d 16924:cont 16925n 16926s/.\{148\}/&'"$ac_delim"'/g 16927t clear 16928:clear 16929s/\\$// 16930t bsnlc 16931s/["\\]/\\&/g; s/^/"/; s/$/"/p 16932d 16933:bsnlc 16934s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16935b cont 16936' <confdefs.h | sed ' 16937s/'"$ac_delim"'/"\\\ 16938"/g' >>$CONFIG_STATUS || ac_write_fail=1 16939 16940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16941 for (key in D) D_is_set[key] = 1 16942 FS = "" 16943} 16944/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16945 line = \$ 0 16946 split(line, arg, " ") 16947 if (arg[1] == "#") { 16948 defundef = arg[2] 16949 mac1 = arg[3] 16950 } else { 16951 defundef = substr(arg[1], 2) 16952 mac1 = arg[2] 16953 } 16954 split(mac1, mac2, "(") #) 16955 macro = mac2[1] 16956 prefix = substr(line, 1, index(line, defundef) - 1) 16957 if (D_is_set[macro]) { 16958 # Preserve the white space surrounding the "#". 16959 print prefix "define", macro P[macro] D[macro] 16960 next 16961 } else { 16962 # Replace #undef with comments. This is necessary, for example, 16963 # in the case of _POSIX_SOURCE, which is predefined and required 16964 # on some systems where configure will not decide to define it. 16965 if (defundef == "undef") { 16966 print "/*", prefix defundef, macro, "*/" 16967 next 16968 } 16969 } 16970} 16971{ print } 16972_ACAWK 16973_ACEOF 16974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16975 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16976fi # test -n "$CONFIG_HEADERS" 16977 16978 16979eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16980shift 16981for ac_tag 16982do 16983 case $ac_tag in 16984 :[FHLC]) ac_mode=$ac_tag; continue;; 16985 esac 16986 case $ac_mode$ac_tag in 16987 :[FHL]*:*);; 16988 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16989 :[FH]-) ac_tag=-:-;; 16990 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16991 esac 16992 ac_save_IFS=$IFS 16993 IFS=: 16994 set x $ac_tag 16995 IFS=$ac_save_IFS 16996 shift 16997 ac_file=$1 16998 shift 16999 17000 case $ac_mode in 17001 :L) ac_source=$1;; 17002 :[FH]) 17003 ac_file_inputs= 17004 for ac_f 17005 do 17006 case $ac_f in 17007 -) ac_f="$ac_tmp/stdin";; 17008 *) # Look for the file first in the build tree, then in the source tree 17009 # (if the path is not absolute). The absolute path cannot be DOS-style, 17010 # because $ac_f cannot contain `:'. 17011 test -f "$ac_f" || 17012 case $ac_f in 17013 [\\/$]*) false;; 17014 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17015 esac || 17016 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17017 esac 17018 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17019 as_fn_append ac_file_inputs " '$ac_f'" 17020 done 17021 17022 # Let's still pretend it is `configure' which instantiates (i.e., don't 17023 # use $as_me), people would be surprised to read: 17024 # /* config.h. Generated by config.status. */ 17025 configure_input='Generated from '` 17026 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17027 `' by configure.' 17028 if test x"$ac_file" != x-; then 17029 configure_input="$ac_file. $configure_input" 17030 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17031$as_echo "$as_me: creating $ac_file" >&6;} 17032 fi 17033 # Neutralize special characters interpreted by sed in replacement strings. 17034 case $configure_input in #( 17035 *\&* | *\|* | *\\* ) 17036 ac_sed_conf_input=`$as_echo "$configure_input" | 17037 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17038 *) ac_sed_conf_input=$configure_input;; 17039 esac 17040 17041 case $ac_tag in 17042 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17043 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17044 esac 17045 ;; 17046 esac 17047 17048 ac_dir=`$as_dirname -- "$ac_file" || 17049$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17050 X"$ac_file" : 'X\(//\)[^/]' \| \ 17051 X"$ac_file" : 'X\(//\)$' \| \ 17052 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17053$as_echo X"$ac_file" | 17054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17055 s//\1/ 17056 q 17057 } 17058 /^X\(\/\/\)[^/].*/{ 17059 s//\1/ 17060 q 17061 } 17062 /^X\(\/\/\)$/{ 17063 s//\1/ 17064 q 17065 } 17066 /^X\(\/\).*/{ 17067 s//\1/ 17068 q 17069 } 17070 s/.*/./; q'` 17071 as_dir="$ac_dir"; as_fn_mkdir_p 17072 ac_builddir=. 17073 17074case "$ac_dir" in 17075.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17076*) 17077 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17078 # A ".." for each directory in $ac_dir_suffix. 17079 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17080 case $ac_top_builddir_sub in 17081 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17082 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17083 esac ;; 17084esac 17085ac_abs_top_builddir=$ac_pwd 17086ac_abs_builddir=$ac_pwd$ac_dir_suffix 17087# for backward compatibility: 17088ac_top_builddir=$ac_top_build_prefix 17089 17090case $srcdir in 17091 .) # We are building in place. 17092 ac_srcdir=. 17093 ac_top_srcdir=$ac_top_builddir_sub 17094 ac_abs_top_srcdir=$ac_pwd ;; 17095 [\\/]* | ?:[\\/]* ) # Absolute name. 17096 ac_srcdir=$srcdir$ac_dir_suffix; 17097 ac_top_srcdir=$srcdir 17098 ac_abs_top_srcdir=$srcdir ;; 17099 *) # Relative name. 17100 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17101 ac_top_srcdir=$ac_top_build_prefix$srcdir 17102 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17103esac 17104ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17105 17106 17107 case $ac_mode in 17108 :F) 17109 # 17110 # CONFIG_FILE 17111 # 17112 17113 case $INSTALL in 17114 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17115 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17116 esac 17117 ac_MKDIR_P=$MKDIR_P 17118 case $MKDIR_P in 17119 [\\/$]* | ?:[\\/]* ) ;; 17120 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17121 esac 17122_ACEOF 17123 17124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17125# If the template does not know about datarootdir, expand it. 17126# FIXME: This hack should be removed a few years after 2.60. 17127ac_datarootdir_hack=; ac_datarootdir_seen= 17128ac_sed_dataroot=' 17129/datarootdir/ { 17130 p 17131 q 17132} 17133/@datadir@/p 17134/@docdir@/p 17135/@infodir@/p 17136/@localedir@/p 17137/@mandir@/p' 17138case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17139*datarootdir*) ac_datarootdir_seen=yes;; 17140*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17142$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17143_ACEOF 17144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17145 ac_datarootdir_hack=' 17146 s&@datadir@&$datadir&g 17147 s&@docdir@&$docdir&g 17148 s&@infodir@&$infodir&g 17149 s&@localedir@&$localedir&g 17150 s&@mandir@&$mandir&g 17151 s&\\\${datarootdir}&$datarootdir&g' ;; 17152esac 17153_ACEOF 17154 17155# Neutralize VPATH when `$srcdir' = `.'. 17156# Shell code in configure.ac might set extrasub. 17157# FIXME: do we really want to maintain this feature? 17158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17159ac_sed_extra="$ac_vpsub 17160$extrasub 17161_ACEOF 17162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17163:t 17164/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17165s|@configure_input@|$ac_sed_conf_input|;t t 17166s&@top_builddir@&$ac_top_builddir_sub&;t t 17167s&@top_build_prefix@&$ac_top_build_prefix&;t t 17168s&@srcdir@&$ac_srcdir&;t t 17169s&@abs_srcdir@&$ac_abs_srcdir&;t t 17170s&@top_srcdir@&$ac_top_srcdir&;t t 17171s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17172s&@builddir@&$ac_builddir&;t t 17173s&@abs_builddir@&$ac_abs_builddir&;t t 17174s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17175s&@INSTALL@&$ac_INSTALL&;t t 17176s&@MKDIR_P@&$ac_MKDIR_P&;t t 17177$ac_datarootdir_hack 17178" 17179eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17180 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17181 17182test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17183 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17184 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17185 "$ac_tmp/out"`; test -z "$ac_out"; } && 17186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17187which seems to be undefined. Please make sure it is defined" >&5 17188$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17189which seems to be undefined. Please make sure it is defined" >&2;} 17190 17191 rm -f "$ac_tmp/stdin" 17192 case $ac_file in 17193 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17194 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17195 esac \ 17196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17197 ;; 17198 :H) 17199 # 17200 # CONFIG_HEADER 17201 # 17202 if test x"$ac_file" != x-; then 17203 { 17204 $as_echo "/* $configure_input */" \ 17205 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17206 } >"$ac_tmp/config.h" \ 17207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17208 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17209 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17210$as_echo "$as_me: $ac_file is unchanged" >&6;} 17211 else 17212 rm -f "$ac_file" 17213 mv "$ac_tmp/config.h" "$ac_file" \ 17214 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17215 fi 17216 else 17217 $as_echo "/* $configure_input */" \ 17218 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17219 || as_fn_error $? "could not create -" "$LINENO" 5 17220 fi 17221# Compute "$ac_file"'s index in $config_headers. 17222_am_arg="$ac_file" 17223_am_stamp_count=1 17224for _am_header in $config_headers :; do 17225 case $_am_header in 17226 $_am_arg | $_am_arg:* ) 17227 break ;; 17228 * ) 17229 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17230 esac 17231done 17232echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17233$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17234 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17235 X"$_am_arg" : 'X\(//\)$' \| \ 17236 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17237$as_echo X"$_am_arg" | 17238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17239 s//\1/ 17240 q 17241 } 17242 /^X\(\/\/\)[^/].*/{ 17243 s//\1/ 17244 q 17245 } 17246 /^X\(\/\/\)$/{ 17247 s//\1/ 17248 q 17249 } 17250 /^X\(\/\).*/{ 17251 s//\1/ 17252 q 17253 } 17254 s/.*/./; q'`/stamp-h$_am_stamp_count 17255 ;; 17256 17257 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17258$as_echo "$as_me: executing $ac_file commands" >&6;} 17259 ;; 17260 esac 17261 17262 17263 case $ac_file$ac_mode in 17264 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17265 # Older Autoconf quotes --file arguments for eval, but not when files 17266 # are listed without --file. Let's play safe and only enable the eval 17267 # if we detect the quoting. 17268 case $CONFIG_FILES in 17269 *\'*) eval set x "$CONFIG_FILES" ;; 17270 *) set x $CONFIG_FILES ;; 17271 esac 17272 shift 17273 for mf 17274 do 17275 # Strip MF so we end up with the name of the file. 17276 mf=`echo "$mf" | sed -e 's/:.*$//'` 17277 # Check whether this is an Automake generated Makefile or not. 17278 # We used to match only the files named 'Makefile.in', but 17279 # some people rename them; so instead we look at the file content. 17280 # Grep'ing the first line is not enough: some people post-process 17281 # each Makefile.in and add a new line on top of each file to say so. 17282 # Grep'ing the whole file is not good either: AIX grep has a line 17283 # limit of 2048, but all sed's we know have understand at least 4000. 17284 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17285 dirpart=`$as_dirname -- "$mf" || 17286$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17287 X"$mf" : 'X\(//\)[^/]' \| \ 17288 X"$mf" : 'X\(//\)$' \| \ 17289 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17290$as_echo X"$mf" | 17291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17292 s//\1/ 17293 q 17294 } 17295 /^X\(\/\/\)[^/].*/{ 17296 s//\1/ 17297 q 17298 } 17299 /^X\(\/\/\)$/{ 17300 s//\1/ 17301 q 17302 } 17303 /^X\(\/\).*/{ 17304 s//\1/ 17305 q 17306 } 17307 s/.*/./; q'` 17308 else 17309 continue 17310 fi 17311 # Extract the definition of DEPDIR, am__include, and am__quote 17312 # from the Makefile without running 'make'. 17313 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17314 test -z "$DEPDIR" && continue 17315 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17316 test -z "$am__include" && continue 17317 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17318 # Find all dependency output files, they are included files with 17319 # $(DEPDIR) in their names. We invoke sed twice because it is the 17320 # simplest approach to changing $(DEPDIR) to its actual value in the 17321 # expansion. 17322 for file in `sed -n " 17323 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17324 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 17325 # Make sure the directory exists. 17326 test -f "$dirpart/$file" && continue 17327 fdir=`$as_dirname -- "$file" || 17328$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17329 X"$file" : 'X\(//\)[^/]' \| \ 17330 X"$file" : 'X\(//\)$' \| \ 17331 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17332$as_echo X"$file" | 17333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17334 s//\1/ 17335 q 17336 } 17337 /^X\(\/\/\)[^/].*/{ 17338 s//\1/ 17339 q 17340 } 17341 /^X\(\/\/\)$/{ 17342 s//\1/ 17343 q 17344 } 17345 /^X\(\/\).*/{ 17346 s//\1/ 17347 q 17348 } 17349 s/.*/./; q'` 17350 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17351 # echo "creating $dirpart/$file" 17352 echo '# dummy' > "$dirpart/$file" 17353 done 17354 done 17355} 17356 ;; 17357 "libtool":C) 17358 17359 # See if we are running on zsh, and set the options which allow our 17360 # commands through without removal of \ escapes. 17361 if test -n "${ZSH_VERSION+set}" ; then 17362 setopt NO_GLOB_SUBST 17363 fi 17364 17365 cfgfile="${ofile}T" 17366 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17367 $RM "$cfgfile" 17368 17369 cat <<_LT_EOF >> "$cfgfile" 17370#! $SHELL 17371 17372# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17373# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17374# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17375# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17376# 17377# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17378# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 17379# Inc. 17380# Written by Gordon Matzigkeit, 1996 17381# 17382# This file is part of GNU Libtool. 17383# 17384# GNU Libtool is free software; you can redistribute it and/or 17385# modify it under the terms of the GNU General Public License as 17386# published by the Free Software Foundation; either version 2 of 17387# the License, or (at your option) any later version. 17388# 17389# As a special exception to the GNU General Public License, 17390# if you distribute this file as part of a program or library that 17391# is built using GNU Libtool, you may include this file under the 17392# same distribution terms that you use for the rest of that program. 17393# 17394# GNU Libtool is distributed in the hope that it will be useful, 17395# but WITHOUT ANY WARRANTY; without even the implied warranty of 17396# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17397# GNU General Public License for more details. 17398# 17399# You should have received a copy of the GNU General Public License 17400# along with GNU Libtool; see the file COPYING. If not, a copy 17401# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17402# obtained by writing to the Free Software Foundation, Inc., 17403# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17404 17405 17406# The names of the tagged configurations supported by this script. 17407available_tags="" 17408 17409# ### BEGIN LIBTOOL CONFIG 17410 17411# Which release of libtool.m4 was used? 17412macro_version=$macro_version 17413macro_revision=$macro_revision 17414 17415# Whether or not to build shared libraries. 17416build_libtool_libs=$enable_shared 17417 17418# Whether or not to build static libraries. 17419build_old_libs=$enable_static 17420 17421# What type of objects to build. 17422pic_mode=$pic_mode 17423 17424# Whether or not to optimize for fast installation. 17425fast_install=$enable_fast_install 17426 17427# Shell to use when invoking shell scripts. 17428SHELL=$lt_SHELL 17429 17430# An echo program that protects backslashes. 17431ECHO=$lt_ECHO 17432 17433# The host system. 17434host_alias=$host_alias 17435host=$host 17436host_os=$host_os 17437 17438# The build system. 17439build_alias=$build_alias 17440build=$build 17441build_os=$build_os 17442 17443# A sed program that does not truncate output. 17444SED=$lt_SED 17445 17446# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17447Xsed="\$SED -e 1s/^X//" 17448 17449# A grep program that handles long lines. 17450GREP=$lt_GREP 17451 17452# An ERE matcher. 17453EGREP=$lt_EGREP 17454 17455# A literal string matcher. 17456FGREP=$lt_FGREP 17457 17458# A BSD- or MS-compatible name lister. 17459NM=$lt_NM 17460 17461# Whether we need soft or hard links. 17462LN_S=$lt_LN_S 17463 17464# What is the maximum length of a command? 17465max_cmd_len=$max_cmd_len 17466 17467# Object file suffix (normally "o"). 17468objext=$ac_objext 17469 17470# Executable file suffix (normally ""). 17471exeext=$exeext 17472 17473# whether the shell understands "unset". 17474lt_unset=$lt_unset 17475 17476# turn spaces into newlines. 17477SP2NL=$lt_lt_SP2NL 17478 17479# turn newlines into spaces. 17480NL2SP=$lt_lt_NL2SP 17481 17482# convert \$build file names to \$host format. 17483to_host_file_cmd=$lt_cv_to_host_file_cmd 17484 17485# convert \$build files to toolchain format. 17486to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17487 17488# An object symbol dumper. 17489OBJDUMP=$lt_OBJDUMP 17490 17491# Method to check whether dependent libraries are shared objects. 17492deplibs_check_method=$lt_deplibs_check_method 17493 17494# Command to use when deplibs_check_method = "file_magic". 17495file_magic_cmd=$lt_file_magic_cmd 17496 17497# How to find potential files when deplibs_check_method = "file_magic". 17498file_magic_glob=$lt_file_magic_glob 17499 17500# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17501want_nocaseglob=$lt_want_nocaseglob 17502 17503# DLL creation program. 17504DLLTOOL=$lt_DLLTOOL 17505 17506# Command to associate shared and link libraries. 17507sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17508 17509# The archiver. 17510AR=$lt_AR 17511 17512# Flags to create an archive. 17513AR_FLAGS=$lt_AR_FLAGS 17514 17515# How to feed a file listing to the archiver. 17516archiver_list_spec=$lt_archiver_list_spec 17517 17518# A symbol stripping program. 17519STRIP=$lt_STRIP 17520 17521# Commands used to install an old-style archive. 17522RANLIB=$lt_RANLIB 17523old_postinstall_cmds=$lt_old_postinstall_cmds 17524old_postuninstall_cmds=$lt_old_postuninstall_cmds 17525 17526# Whether to use a lock for old archive extraction. 17527lock_old_archive_extraction=$lock_old_archive_extraction 17528 17529# A C compiler. 17530LTCC=$lt_CC 17531 17532# LTCC compiler flags. 17533LTCFLAGS=$lt_CFLAGS 17534 17535# Take the output of nm and produce a listing of raw symbols and C names. 17536global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17537 17538# Transform the output of nm in a proper C declaration. 17539global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17540 17541# Transform the output of nm in a C name address pair. 17542global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17543 17544# Transform the output of nm in a C name address pair when lib prefix is needed. 17545global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17546 17547# Specify filename containing input files for \$NM. 17548nm_file_list_spec=$lt_nm_file_list_spec 17549 17550# The root where to search for dependent libraries,and in which our libraries should be installed. 17551lt_sysroot=$lt_sysroot 17552 17553# The name of the directory that contains temporary libtool files. 17554objdir=$objdir 17555 17556# Used to examine libraries when file_magic_cmd begins with "file". 17557MAGIC_CMD=$MAGIC_CMD 17558 17559# Must we lock files when doing compilation? 17560need_locks=$lt_need_locks 17561 17562# Manifest tool. 17563MANIFEST_TOOL=$lt_MANIFEST_TOOL 17564 17565# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17566DSYMUTIL=$lt_DSYMUTIL 17567 17568# Tool to change global to local symbols on Mac OS X. 17569NMEDIT=$lt_NMEDIT 17570 17571# Tool to manipulate fat objects and archives on Mac OS X. 17572LIPO=$lt_LIPO 17573 17574# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17575OTOOL=$lt_OTOOL 17576 17577# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17578OTOOL64=$lt_OTOOL64 17579 17580# Old archive suffix (normally "a"). 17581libext=$libext 17582 17583# Shared library suffix (normally ".so"). 17584shrext_cmds=$lt_shrext_cmds 17585 17586# The commands to extract the exported symbol list from a shared archive. 17587extract_expsyms_cmds=$lt_extract_expsyms_cmds 17588 17589# Variables whose values should be saved in libtool wrapper scripts and 17590# restored at link time. 17591variables_saved_for_relink=$lt_variables_saved_for_relink 17592 17593# Do we need the "lib" prefix for modules? 17594need_lib_prefix=$need_lib_prefix 17595 17596# Do we need a version for libraries? 17597need_version=$need_version 17598 17599# Library versioning type. 17600version_type=$version_type 17601 17602# Shared library runtime path variable. 17603runpath_var=$runpath_var 17604 17605# Shared library path variable. 17606shlibpath_var=$shlibpath_var 17607 17608# Is shlibpath searched before the hard-coded library search path? 17609shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17610 17611# Format of library name prefix. 17612libname_spec=$lt_libname_spec 17613 17614# List of archive names. First name is the real one, the rest are links. 17615# The last name is the one that the linker finds with -lNAME 17616library_names_spec=$lt_library_names_spec 17617 17618# The coded name of the library, if different from the real name. 17619soname_spec=$lt_soname_spec 17620 17621# Permission mode override for installation of shared libraries. 17622install_override_mode=$lt_install_override_mode 17623 17624# Command to use after installation of a shared archive. 17625postinstall_cmds=$lt_postinstall_cmds 17626 17627# Command to use after uninstallation of a shared archive. 17628postuninstall_cmds=$lt_postuninstall_cmds 17629 17630# Commands used to finish a libtool library installation in a directory. 17631finish_cmds=$lt_finish_cmds 17632 17633# As "finish_cmds", except a single script fragment to be evaled but 17634# not shown. 17635finish_eval=$lt_finish_eval 17636 17637# Whether we should hardcode library paths into libraries. 17638hardcode_into_libs=$hardcode_into_libs 17639 17640# Compile-time system search path for libraries. 17641sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17642 17643# Run-time system search path for libraries. 17644sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17645 17646# Whether dlopen is supported. 17647dlopen_support=$enable_dlopen 17648 17649# Whether dlopen of programs is supported. 17650dlopen_self=$enable_dlopen_self 17651 17652# Whether dlopen of statically linked programs is supported. 17653dlopen_self_static=$enable_dlopen_self_static 17654 17655# Commands to strip libraries. 17656old_striplib=$lt_old_striplib 17657striplib=$lt_striplib 17658 17659 17660# The linker used to build libraries. 17661LD=$lt_LD 17662 17663# How to create reloadable object files. 17664reload_flag=$lt_reload_flag 17665reload_cmds=$lt_reload_cmds 17666 17667# Commands used to build an old-style archive. 17668old_archive_cmds=$lt_old_archive_cmds 17669 17670# A language specific compiler. 17671CC=$lt_compiler 17672 17673# Is the compiler the GNU compiler? 17674with_gcc=$GCC 17675 17676# Compiler flag to turn off builtin functions. 17677no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17678 17679# Additional compiler flags for building library objects. 17680pic_flag=$lt_lt_prog_compiler_pic 17681 17682# How to pass a linker flag through the compiler. 17683wl=$lt_lt_prog_compiler_wl 17684 17685# Compiler flag to prevent dynamic linking. 17686link_static_flag=$lt_lt_prog_compiler_static 17687 17688# Does compiler simultaneously support -c and -o options? 17689compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17690 17691# Whether or not to add -lc for building shared libraries. 17692build_libtool_need_lc=$archive_cmds_need_lc 17693 17694# Whether or not to disallow shared libs when runtime libs are static. 17695allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17696 17697# Compiler flag to allow reflexive dlopens. 17698export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17699 17700# Compiler flag to generate shared objects directly from archives. 17701whole_archive_flag_spec=$lt_whole_archive_flag_spec 17702 17703# Whether the compiler copes with passing no objects directly. 17704compiler_needs_object=$lt_compiler_needs_object 17705 17706# Create an old-style archive from a shared archive. 17707old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17708 17709# Create a temporary old-style archive to link instead of a shared archive. 17710old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17711 17712# Commands used to build a shared archive. 17713archive_cmds=$lt_archive_cmds 17714archive_expsym_cmds=$lt_archive_expsym_cmds 17715 17716# Commands used to build a loadable module if different from building 17717# a shared archive. 17718module_cmds=$lt_module_cmds 17719module_expsym_cmds=$lt_module_expsym_cmds 17720 17721# Whether we are building with GNU ld or not. 17722with_gnu_ld=$lt_with_gnu_ld 17723 17724# Flag that allows shared libraries with undefined symbols to be built. 17725allow_undefined_flag=$lt_allow_undefined_flag 17726 17727# Flag that enforces no undefined symbols. 17728no_undefined_flag=$lt_no_undefined_flag 17729 17730# Flag to hardcode \$libdir into a binary during linking. 17731# This must work even if \$libdir does not exist 17732hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17733 17734# If ld is used when linking, flag to hardcode \$libdir into a binary 17735# during linking. This must work even if \$libdir does not exist. 17736hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17737 17738# Whether we need a single "-rpath" flag with a separated argument. 17739hardcode_libdir_separator=$lt_hardcode_libdir_separator 17740 17741# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17742# DIR into the resulting binary. 17743hardcode_direct=$hardcode_direct 17744 17745# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17746# DIR into the resulting binary and the resulting library dependency is 17747# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17748# library is relocated. 17749hardcode_direct_absolute=$hardcode_direct_absolute 17750 17751# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17752# into the resulting binary. 17753hardcode_minus_L=$hardcode_minus_L 17754 17755# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17756# into the resulting binary. 17757hardcode_shlibpath_var=$hardcode_shlibpath_var 17758 17759# Set to "yes" if building a shared library automatically hardcodes DIR 17760# into the library and all subsequent libraries and executables linked 17761# against it. 17762hardcode_automatic=$hardcode_automatic 17763 17764# Set to yes if linker adds runtime paths of dependent libraries 17765# to runtime path list. 17766inherit_rpath=$inherit_rpath 17767 17768# Whether libtool must link a program against all its dependency libraries. 17769link_all_deplibs=$link_all_deplibs 17770 17771# Set to "yes" if exported symbols are required. 17772always_export_symbols=$always_export_symbols 17773 17774# The commands to list exported symbols. 17775export_symbols_cmds=$lt_export_symbols_cmds 17776 17777# Symbols that should not be listed in the preloaded symbols. 17778exclude_expsyms=$lt_exclude_expsyms 17779 17780# Symbols that must always be exported. 17781include_expsyms=$lt_include_expsyms 17782 17783# Commands necessary for linking programs (against libraries) with templates. 17784prelink_cmds=$lt_prelink_cmds 17785 17786# Commands necessary for finishing linking programs. 17787postlink_cmds=$lt_postlink_cmds 17788 17789# Specify filename containing input files. 17790file_list_spec=$lt_file_list_spec 17791 17792# How to hardcode a shared library path into an executable. 17793hardcode_action=$hardcode_action 17794 17795# ### END LIBTOOL CONFIG 17796 17797_LT_EOF 17798 17799 case $host_os in 17800 aix3*) 17801 cat <<\_LT_EOF >> "$cfgfile" 17802# AIX sometimes has problems with the GCC collect2 program. For some 17803# reason, if we set the COLLECT_NAMES environment variable, the problems 17804# vanish in a puff of smoke. 17805if test "X${COLLECT_NAMES+set}" != Xset; then 17806 COLLECT_NAMES= 17807 export COLLECT_NAMES 17808fi 17809_LT_EOF 17810 ;; 17811 esac 17812 17813 17814ltmain="$ac_aux_dir/ltmain.sh" 17815 17816 17817 # We use sed instead of cat because bash on DJGPP gets confused if 17818 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17819 # text mode, it properly converts lines to CR/LF. This bash problem 17820 # is reportedly fixed, but why not run on old versions too? 17821 sed '$q' "$ltmain" >> "$cfgfile" \ 17822 || (rm -f "$cfgfile"; exit 1) 17823 17824 if test x"$xsi_shell" = xyes; then 17825 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 17826func_dirname ()\ 17827{\ 17828\ case ${1} in\ 17829\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17830\ * ) func_dirname_result="${3}" ;;\ 17831\ esac\ 17832} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 17833 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17835test 0 -eq $? || _lt_function_replace_fail=: 17836 17837 17838 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 17839func_basename ()\ 17840{\ 17841\ func_basename_result="${1##*/}"\ 17842} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17843 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17845test 0 -eq $? || _lt_function_replace_fail=: 17846 17847 17848 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 17849func_dirname_and_basename ()\ 17850{\ 17851\ case ${1} in\ 17852\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17853\ * ) func_dirname_result="${3}" ;;\ 17854\ esac\ 17855\ func_basename_result="${1##*/}"\ 17856} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17857 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17859test 0 -eq $? || _lt_function_replace_fail=: 17860 17861 17862 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 17863func_stripname ()\ 17864{\ 17865\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 17866\ # positional parameters, so assign one to ordinary parameter first.\ 17867\ func_stripname_result=${3}\ 17868\ func_stripname_result=${func_stripname_result#"${1}"}\ 17869\ func_stripname_result=${func_stripname_result%"${2}"}\ 17870} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 17871 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17872 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17873test 0 -eq $? || _lt_function_replace_fail=: 17874 17875 17876 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 17877func_split_long_opt ()\ 17878{\ 17879\ func_split_long_opt_name=${1%%=*}\ 17880\ func_split_long_opt_arg=${1#*=}\ 17881} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17882 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17883 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17884test 0 -eq $? || _lt_function_replace_fail=: 17885 17886 17887 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 17888func_split_short_opt ()\ 17889{\ 17890\ func_split_short_opt_arg=${1#??}\ 17891\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 17892} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17893 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17895test 0 -eq $? || _lt_function_replace_fail=: 17896 17897 17898 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 17899func_lo2o ()\ 17900{\ 17901\ case ${1} in\ 17902\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 17903\ *) func_lo2o_result=${1} ;;\ 17904\ esac\ 17905} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 17906 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17908test 0 -eq $? || _lt_function_replace_fail=: 17909 17910 17911 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 17912func_xform ()\ 17913{\ 17914 func_xform_result=${1%.*}.lo\ 17915} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 17916 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17918test 0 -eq $? || _lt_function_replace_fail=: 17919 17920 17921 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 17922func_arith ()\ 17923{\ 17924 func_arith_result=$(( $* ))\ 17925} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 17926 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17928test 0 -eq $? || _lt_function_replace_fail=: 17929 17930 17931 sed -e '/^func_len ()$/,/^} # func_len /c\ 17932func_len ()\ 17933{\ 17934 func_len_result=${#1}\ 17935} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 17936 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17938test 0 -eq $? || _lt_function_replace_fail=: 17939 17940fi 17941 17942if test x"$lt_shell_append" = xyes; then 17943 sed -e '/^func_append ()$/,/^} # func_append /c\ 17944func_append ()\ 17945{\ 17946 eval "${1}+=\\${2}"\ 17947} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 17948 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17950test 0 -eq $? || _lt_function_replace_fail=: 17951 17952 17953 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 17954func_append_quoted ()\ 17955{\ 17956\ func_quote_for_eval "${2}"\ 17957\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 17958} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 17959 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17960 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17961test 0 -eq $? || _lt_function_replace_fail=: 17962 17963 17964 # Save a `func_append' function call where possible by direct use of '+=' 17965 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 17966 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17967 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17968 test 0 -eq $? || _lt_function_replace_fail=: 17969else 17970 # Save a `func_append' function call even when '+=' is not available 17971 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 17972 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17973 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17974 test 0 -eq $? || _lt_function_replace_fail=: 17975fi 17976 17977if test x"$_lt_function_replace_fail" = x":"; then 17978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 17979$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 17980fi 17981 17982 17983 mv -f "$cfgfile" "$ofile" || 17984 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17985 chmod +x "$ofile" 17986 17987 ;; 17988 17989 esac 17990done # for ac_tag 17991 17992 17993as_fn_exit 0 17994_ACEOF 17995ac_clean_files=$ac_clean_files_save 17996 17997test $ac_write_fail = 0 || 17998 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17999 18000 18001# configure is writing to config.log, and then calls config.status. 18002# config.status does its own redirection, appending to config.log. 18003# Unfortunately, on DOS this fails, as config.log is still kept open 18004# by configure, so config.status won't be able to write to it; its 18005# output is simply discarded. So we exec the FD to /dev/null, 18006# effectively closing config.log, so it can be properly (re)opened and 18007# appended to by config.status. When coming back to configure, we 18008# need to make the FD available again. 18009if test "$no_create" != yes; then 18010 ac_cs_success=: 18011 ac_config_status_args= 18012 test "$silent" = yes && 18013 ac_config_status_args="$ac_config_status_args --quiet" 18014 exec 5>/dev/null 18015 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18016 exec 5>>config.log 18017 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18018 # would make configure fail if this is the last instruction. 18019 $ac_cs_success || as_fn_exit 1 18020fi 18021if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18023$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18024fi 18025 18026