1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libevent 2.1.11-stable. 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.11-stable' 591PACKAGE_STRING='libevent 2.1.11-stable' 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 640THREADS_FALSE 641THREADS_TRUE 642PTHREAD_CFLAGS 643PTHREAD_LIBS 644PTHREAD_CC 645acx_pthread_config 646SIGNAL_SUPPORT_FALSE 647SIGNAL_SUPPORT_TRUE 648EVPORT_BACKEND_FALSE 649EVPORT_BACKEND_TRUE 650EPOLL_BACKEND_FALSE 651EPOLL_BACKEND_TRUE 652LIBOBJS 653KQUEUE_BACKEND_FALSE 654KQUEUE_BACKEND_TRUE 655DEVPOLL_BACKEND_FALSE 656DEVPOLL_BACKEND_TRUE 657POLL_BACKEND_FALSE 658POLL_BACKEND_TRUE 659SELECT_BACKEND_FALSE 660SELECT_BACKEND_TRUE 661STRLCPY_IMPL_FALSE 662STRLCPY_IMPL_TRUE 663BUILD_WITH_NO_UNDEFINED_FALSE 664BUILD_WITH_NO_UNDEFINED_TRUE 665BUILD_MIDIPIX_FALSE 666BUILD_MIDIPIX_TRUE 667BUILD_CYGWIN_FALSE 668BUILD_CYGWIN_TRUE 669BUILD_WIN32_FALSE 670BUILD_WIN32_TRUE 671OPENSSL_FALSE 672OPENSSL_TRUE 673OPENSSL_LIBS 674OPENSSL_INCS 675PKG_CONFIG 676OPENSSL_LIBADD 677EV_LIB_GDI 678EV_LIB_WS32 679ZLIB_REGRESS_FALSE 680ZLIB_REGRESS_TRUE 681ZLIB_LIBS 682BUILD_REGRESS_FALSE 683BUILD_REGRESS_TRUE 684BUILD_SAMPLES_FALSE 685BUILD_SAMPLES_TRUE 686LIBTOOL_DEPS 687LT_SYS_LIBRARY_PATH 688OTOOL64 689OTOOL 690LIPO 691NMEDIT 692DSYMUTIL 693MANIFEST_TOOL 694RANLIB 695ac_ct_AR 696AR 697DLLTOOL 698OBJDUMP 699NM 700ac_ct_DUMPBIN 701DUMPBIN 702LD 703FGREP 704LIBTOOL 705SED 706LN_S 707host_os 708host_vendor 709host_cpu 710host 711build_os 712build_vendor 713build_cpu 714build 715EGREP 716GREP 717CPP 718am__fastdepCC_FALSE 719am__fastdepCC_TRUE 720CCDEPMODE 721am__nodep 722AMDEPBACKSLASH 723AMDEP_FALSE 724AMDEP_TRUE 725am__include 726DEPDIR 727OBJEXT 728EXEEXT 729ac_ct_CC 730CPPFLAGS 731LDFLAGS 732CFLAGS 733CC 734AM_BACKSLASH 735AM_DEFAULT_VERBOSITY 736AM_DEFAULT_V 737AM_V 738am__untar 739am__tar 740AMTAR 741am__leading_dot 742SET_MAKE 743AWK 744mkdir_p 745MKDIR_P 746INSTALL_STRIP_PROGRAM 747STRIP 748install_sh 749MAKEINFO 750AUTOHEADER 751AUTOMAKE 752AUTOCONF 753ACLOCAL 754VERSION 755PACKAGE 756CYGPATH_W 757am__isrc 758INSTALL_DATA 759INSTALL_SCRIPT 760INSTALL_PROGRAM 761target_alias 762host_alias 763build_alias 764LIBS 765ECHO_T 766ECHO_N 767ECHO_C 768DEFS 769mandir 770localedir 771libdir 772psdir 773pdfdir 774dvidir 775htmldir 776infodir 777docdir 778oldincludedir 779includedir 780localstatedir 781sharedstatedir 782sysconfdir 783datadir 784datarootdir 785libexecdir 786sbindir 787bindir 788program_transform_name 789prefix 790exec_prefix 791PACKAGE_URL 792PACKAGE_BUGREPORT 793PACKAGE_STRING 794PACKAGE_VERSION 795PACKAGE_TARNAME 796PACKAGE_NAME 797PATH_SEPARATOR 798SHELL 799am__quote' 800ac_subst_files='' 801ac_user_opts=' 802enable_option_checking 803enable_silent_rules 804enable_dependency_tracking 805enable_gcc_warnings 806enable_gcc_hardening 807enable_thread_support 808enable_malloc_replacement 809enable_openssl 810enable_debug_mode 811enable_libevent_install 812enable_libevent_regress 813enable_samples 814enable_function_sections 815enable_verbose_debug 816enable_clock_gettime 817enable_shared 818enable_static 819with_pic 820enable_fast_install 821with_aix_soname 822with_gnu_ld 823with_sysroot 824enable_libtool_lock 825enable_largefile 826' 827 ac_precious_vars='build_alias 828host_alias 829target_alias 830CC 831CFLAGS 832LDFLAGS 833LIBS 834CPPFLAGS 835CPP 836LT_SYS_LIBRARY_PATH' 837 838 839# Initialize some variables set by options. 840ac_init_help= 841ac_init_version=false 842ac_unrecognized_opts= 843ac_unrecognized_sep= 844# The variables have the same names as the options, with 845# dashes changed to underlines. 846cache_file=/dev/null 847exec_prefix=NONE 848no_create= 849no_recursion= 850prefix=NONE 851program_prefix=NONE 852program_suffix=NONE 853program_transform_name=s,x,x, 854silent= 855site= 856srcdir= 857verbose= 858x_includes=NONE 859x_libraries=NONE 860 861# Installation directory options. 862# These are left unexpanded so users can "make install exec_prefix=/foo" 863# and all the variables that are supposed to be based on exec_prefix 864# by default will actually change. 865# Use braces instead of parens because sh, perl, etc. also accept them. 866# (The list follows the same order as the GNU Coding Standards.) 867bindir='${exec_prefix}/bin' 868sbindir='${exec_prefix}/sbin' 869libexecdir='${exec_prefix}/libexec' 870datarootdir='${prefix}/share' 871datadir='${datarootdir}' 872sysconfdir='${prefix}/etc' 873sharedstatedir='${prefix}/com' 874localstatedir='${prefix}/var' 875includedir='${prefix}/include' 876oldincludedir='/usr/include' 877docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 878infodir='${datarootdir}/info' 879htmldir='${docdir}' 880dvidir='${docdir}' 881pdfdir='${docdir}' 882psdir='${docdir}' 883libdir='${exec_prefix}/lib' 884localedir='${datarootdir}/locale' 885mandir='${datarootdir}/man' 886 887ac_prev= 888ac_dashdash= 889for ac_option 890do 891 # If the previous option needs an argument, assign it. 892 if test -n "$ac_prev"; then 893 eval $ac_prev=\$ac_option 894 ac_prev= 895 continue 896 fi 897 898 case $ac_option in 899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 900 *=) ac_optarg= ;; 901 *) ac_optarg=yes ;; 902 esac 903 904 # Accept the important Cygnus configure options, so we can diagnose typos. 905 906 case $ac_dashdash$ac_option in 907 --) 908 ac_dashdash=yes ;; 909 910 -bindir | --bindir | --bindi | --bind | --bin | --bi) 911 ac_prev=bindir ;; 912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 913 bindir=$ac_optarg ;; 914 915 -build | --build | --buil | --bui | --bu) 916 ac_prev=build_alias ;; 917 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 918 build_alias=$ac_optarg ;; 919 920 -cache-file | --cache-file | --cache-fil | --cache-fi \ 921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 922 ac_prev=cache_file ;; 923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 925 cache_file=$ac_optarg ;; 926 927 --config-cache | -C) 928 cache_file=config.cache ;; 929 930 -datadir | --datadir | --datadi | --datad) 931 ac_prev=datadir ;; 932 -datadir=* | --datadir=* | --datadi=* | --datad=*) 933 datadir=$ac_optarg ;; 934 935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 936 | --dataroo | --dataro | --datar) 937 ac_prev=datarootdir ;; 938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 940 datarootdir=$ac_optarg ;; 941 942 -disable-* | --disable-*) 943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 944 # Reject names that are not valid shell variable names. 945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 946 as_fn_error $? "invalid feature name: $ac_useropt" 947 ac_useropt_orig=$ac_useropt 948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 949 case $ac_user_opts in 950 *" 951"enable_$ac_useropt" 952"*) ;; 953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 954 ac_unrecognized_sep=', ';; 955 esac 956 eval enable_$ac_useropt=no ;; 957 958 -docdir | --docdir | --docdi | --doc | --do) 959 ac_prev=docdir ;; 960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 961 docdir=$ac_optarg ;; 962 963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 964 ac_prev=dvidir ;; 965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 966 dvidir=$ac_optarg ;; 967 968 -enable-* | --enable-*) 969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 970 # Reject names that are not valid shell variable names. 971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 972 as_fn_error $? "invalid feature name: $ac_useropt" 973 ac_useropt_orig=$ac_useropt 974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 975 case $ac_user_opts in 976 *" 977"enable_$ac_useropt" 978"*) ;; 979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 980 ac_unrecognized_sep=', ';; 981 esac 982 eval enable_$ac_useropt=\$ac_optarg ;; 983 984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 986 | --exec | --exe | --ex) 987 ac_prev=exec_prefix ;; 988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 990 | --exec=* | --exe=* | --ex=*) 991 exec_prefix=$ac_optarg ;; 992 993 -gas | --gas | --ga | --g) 994 # Obsolete; use --with-gas. 995 with_gas=yes ;; 996 997 -help | --help | --hel | --he | -h) 998 ac_init_help=long ;; 999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1000 ac_init_help=recursive ;; 1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1002 ac_init_help=short ;; 1003 1004 -host | --host | --hos | --ho) 1005 ac_prev=host_alias ;; 1006 -host=* | --host=* | --hos=* | --ho=*) 1007 host_alias=$ac_optarg ;; 1008 1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1010 ac_prev=htmldir ;; 1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1012 | --ht=*) 1013 htmldir=$ac_optarg ;; 1014 1015 -includedir | --includedir | --includedi | --included | --include \ 1016 | --includ | --inclu | --incl | --inc) 1017 ac_prev=includedir ;; 1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1019 | --includ=* | --inclu=* | --incl=* | --inc=*) 1020 includedir=$ac_optarg ;; 1021 1022 -infodir | --infodir | --infodi | --infod | --info | --inf) 1023 ac_prev=infodir ;; 1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1025 infodir=$ac_optarg ;; 1026 1027 -libdir | --libdir | --libdi | --libd) 1028 ac_prev=libdir ;; 1029 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1030 libdir=$ac_optarg ;; 1031 1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1033 | --libexe | --libex | --libe) 1034 ac_prev=libexecdir ;; 1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1036 | --libexe=* | --libex=* | --libe=*) 1037 libexecdir=$ac_optarg ;; 1038 1039 -localedir | --localedir | --localedi | --localed | --locale) 1040 ac_prev=localedir ;; 1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1042 localedir=$ac_optarg ;; 1043 1044 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1045 | --localstate | --localstat | --localsta | --localst | --locals) 1046 ac_prev=localstatedir ;; 1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1049 localstatedir=$ac_optarg ;; 1050 1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1052 ac_prev=mandir ;; 1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1054 mandir=$ac_optarg ;; 1055 1056 -nfp | --nfp | --nf) 1057 # Obsolete; use --without-fp. 1058 with_fp=no ;; 1059 1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1061 | --no-cr | --no-c | -n) 1062 no_create=yes ;; 1063 1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1066 no_recursion=yes ;; 1067 1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1070 | --oldin | --oldi | --old | --ol | --o) 1071 ac_prev=oldincludedir ;; 1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1075 oldincludedir=$ac_optarg ;; 1076 1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1078 ac_prev=prefix ;; 1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1080 prefix=$ac_optarg ;; 1081 1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1083 | --program-pre | --program-pr | --program-p) 1084 ac_prev=program_prefix ;; 1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1087 program_prefix=$ac_optarg ;; 1088 1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1090 | --program-suf | --program-su | --program-s) 1091 ac_prev=program_suffix ;; 1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1094 program_suffix=$ac_optarg ;; 1095 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 ac_prev=program_transform_name ;; 1104 -program-transform-name=* | --program-transform-name=* \ 1105 | --program-transform-nam=* | --program-transform-na=* \ 1106 | --program-transform-n=* | --program-transform-=* \ 1107 | --program-transform=* | --program-transfor=* \ 1108 | --program-transfo=* | --program-transf=* \ 1109 | --program-trans=* | --program-tran=* \ 1110 | --progr-tra=* | --program-tr=* | --program-t=*) 1111 program_transform_name=$ac_optarg ;; 1112 1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1114 ac_prev=pdfdir ;; 1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1116 pdfdir=$ac_optarg ;; 1117 1118 -psdir | --psdir | --psdi | --psd | --ps) 1119 ac_prev=psdir ;; 1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1121 psdir=$ac_optarg ;; 1122 1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1124 | -silent | --silent | --silen | --sile | --sil) 1125 silent=yes ;; 1126 1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1128 ac_prev=sbindir ;; 1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1130 | --sbi=* | --sb=*) 1131 sbindir=$ac_optarg ;; 1132 1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1135 | --sharedst | --shareds | --shared | --share | --shar \ 1136 | --sha | --sh) 1137 ac_prev=sharedstatedir ;; 1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1141 | --sha=* | --sh=*) 1142 sharedstatedir=$ac_optarg ;; 1143 1144 -site | --site | --sit) 1145 ac_prev=site ;; 1146 -site=* | --site=* | --sit=*) 1147 site=$ac_optarg ;; 1148 1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1150 ac_prev=srcdir ;; 1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1152 srcdir=$ac_optarg ;; 1153 1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1155 | --syscon | --sysco | --sysc | --sys | --sy) 1156 ac_prev=sysconfdir ;; 1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1159 sysconfdir=$ac_optarg ;; 1160 1161 -target | --target | --targe | --targ | --tar | --ta | --t) 1162 ac_prev=target_alias ;; 1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1164 target_alias=$ac_optarg ;; 1165 1166 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1167 verbose=yes ;; 1168 1169 -version | --version | --versio | --versi | --vers | -V) 1170 ac_init_version=: ;; 1171 1172 -with-* | --with-*) 1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1174 # Reject names that are not valid shell variable names. 1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1176 as_fn_error $? "invalid package name: $ac_useropt" 1177 ac_useropt_orig=$ac_useropt 1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1179 case $ac_user_opts in 1180 *" 1181"with_$ac_useropt" 1182"*) ;; 1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1184 ac_unrecognized_sep=', ';; 1185 esac 1186 eval with_$ac_useropt=\$ac_optarg ;; 1187 1188 -without-* | --without-*) 1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1190 # Reject names that are not valid shell variable names. 1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1192 as_fn_error $? "invalid package name: $ac_useropt" 1193 ac_useropt_orig=$ac_useropt 1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1195 case $ac_user_opts in 1196 *" 1197"with_$ac_useropt" 1198"*) ;; 1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1200 ac_unrecognized_sep=', ';; 1201 esac 1202 eval with_$ac_useropt=no ;; 1203 1204 --x) 1205 # Obsolete; use --with-x. 1206 with_x=yes ;; 1207 1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1209 | --x-incl | --x-inc | --x-in | --x-i) 1210 ac_prev=x_includes ;; 1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1213 x_includes=$ac_optarg ;; 1214 1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1217 ac_prev=x_libraries ;; 1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1220 x_libraries=$ac_optarg ;; 1221 1222 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1223Try \`$0 --help' for more information" 1224 ;; 1225 1226 *=*) 1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1228 # Reject names that are not valid shell variable names. 1229 case $ac_envvar in #( 1230 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1232 esac 1233 eval $ac_envvar=\$ac_optarg 1234 export $ac_envvar ;; 1235 1236 *) 1237 # FIXME: should be removed in autoconf 3.0. 1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1242 ;; 1243 1244 esac 1245done 1246 1247if test -n "$ac_prev"; then 1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1249 as_fn_error $? "missing argument to $ac_option" 1250fi 1251 1252if test -n "$ac_unrecognized_opts"; then 1253 case $enable_option_checking in 1254 no) ;; 1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1257 esac 1258fi 1259 1260# Check all directory arguments for consistency. 1261for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1262 datadir sysconfdir sharedstatedir localstatedir includedir \ 1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1264 libdir localedir mandir 1265do 1266 eval ac_val=\$$ac_var 1267 # Remove trailing slashes. 1268 case $ac_val in 1269 */ ) 1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1271 eval $ac_var=\$ac_val;; 1272 esac 1273 # Be sure to have absolute directory names. 1274 case $ac_val in 1275 [\\/$]* | ?:[\\/]* ) continue;; 1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1277 esac 1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1279done 1280 1281# There might be people who depend on the old broken behavior: `$host' 1282# used to hold the argument of --host etc. 1283# FIXME: To remove some day. 1284build=$build_alias 1285host=$host_alias 1286target=$target_alias 1287 1288# FIXME: To remove some day. 1289if test "x$host_alias" != x; then 1290 if test "x$build_alias" = x; then 1291 cross_compiling=maybe 1292 elif test "x$build_alias" != "x$host_alias"; then 1293 cross_compiling=yes 1294 fi 1295fi 1296 1297ac_tool_prefix= 1298test -n "$host_alias" && ac_tool_prefix=$host_alias- 1299 1300test "$silent" = yes && exec 6>/dev/null 1301 1302 1303ac_pwd=`pwd` && test -n "$ac_pwd" && 1304ac_ls_di=`ls -di .` && 1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1306 as_fn_error $? "working directory cannot be determined" 1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1308 as_fn_error $? "pwd does not report name of working directory" 1309 1310 1311# Find the source files, if location was not specified. 1312if test -z "$srcdir"; then 1313 ac_srcdir_defaulted=yes 1314 # Try the directory containing this script, then the parent directory. 1315 ac_confdir=`$as_dirname -- "$as_myself" || 1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1317 X"$as_myself" : 'X\(//\)[^/]' \| \ 1318 X"$as_myself" : 'X\(//\)$' \| \ 1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1320$as_echo X"$as_myself" | 1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\/\)[^/].*/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\/\)$/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\).*/{ 1334 s//\1/ 1335 q 1336 } 1337 s/.*/./; q'` 1338 srcdir=$ac_confdir 1339 if test ! -r "$srcdir/$ac_unique_file"; then 1340 srcdir=.. 1341 fi 1342else 1343 ac_srcdir_defaulted=no 1344fi 1345if test ! -r "$srcdir/$ac_unique_file"; then 1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1348fi 1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1350ac_abs_confdir=`( 1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1352 pwd)` 1353# When building in place, set srcdir=. 1354if test "$ac_abs_confdir" = "$ac_pwd"; then 1355 srcdir=. 1356fi 1357# Remove unnecessary trailing slashes from srcdir. 1358# Double slashes in file names in object file debugging info 1359# mess up M-x gdb in Emacs. 1360case $srcdir in 1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1362esac 1363for ac_var in $ac_precious_vars; do 1364 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1365 eval ac_env_${ac_var}_value=\$${ac_var} 1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1367 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1368done 1369 1370# 1371# Report the --help message. 1372# 1373if test "$ac_init_help" = "long"; then 1374 # Omit some internal or obsolete options to make the list less imposing. 1375 # This message is too long to be a string in the A/UX 3.1 sh. 1376 cat <<_ACEOF 1377\`configure' configures libevent 2.1.11-stable to adapt to many kinds of systems. 1378 1379Usage: $0 [OPTION]... [VAR=VALUE]... 1380 1381To assign environment variables (e.g., CC, CFLAGS...), specify them as 1382VAR=VALUE. See below for descriptions of some of the useful variables. 1383 1384Defaults for the options are specified in brackets. 1385 1386Configuration: 1387 -h, --help display this help and exit 1388 --help=short display options specific to this package 1389 --help=recursive display the short help of all the included packages 1390 -V, --version display version information and exit 1391 -q, --quiet, --silent do not print \`checking ...' messages 1392 --cache-file=FILE cache test results in FILE [disabled] 1393 -C, --config-cache alias for \`--cache-file=config.cache' 1394 -n, --no-create do not create output files 1395 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1396 1397Installation directories: 1398 --prefix=PREFIX install architecture-independent files in PREFIX 1399 [$ac_default_prefix] 1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1401 [PREFIX] 1402 1403By default, \`make install' will install all the files in 1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1405an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1406for instance \`--prefix=\$HOME'. 1407 1408For better control, use the options below. 1409 1410Fine tuning of the installation directories: 1411 --bindir=DIR user executables [EPREFIX/bin] 1412 --sbindir=DIR system admin executables [EPREFIX/sbin] 1413 --libexecdir=DIR program executables [EPREFIX/libexec] 1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1417 --libdir=DIR object code libraries [EPREFIX/lib] 1418 --includedir=DIR C header files [PREFIX/include] 1419 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1422 --infodir=DIR info documentation [DATAROOTDIR/info] 1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1424 --mandir=DIR man documentation [DATAROOTDIR/man] 1425 --docdir=DIR documentation root [DATAROOTDIR/doc/libevent] 1426 --htmldir=DIR html documentation [DOCDIR] 1427 --dvidir=DIR dvi documentation [DOCDIR] 1428 --pdfdir=DIR pdf documentation [DOCDIR] 1429 --psdir=DIR ps documentation [DOCDIR] 1430_ACEOF 1431 1432 cat <<\_ACEOF 1433 1434Program names: 1435 --program-prefix=PREFIX prepend PREFIX to installed program names 1436 --program-suffix=SUFFIX append SUFFIX to installed program names 1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1438 1439System types: 1440 --build=BUILD configure for building on BUILD [guessed] 1441 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1442_ACEOF 1443fi 1444 1445if test -n "$ac_init_help"; then 1446 case $ac_init_help in 1447 short | recursive ) echo "Configuration of libevent 2.1.11-stable:";; 1448 esac 1449 cat <<\_ACEOF 1450 1451Optional Features: 1452 --disable-option-checking ignore unrecognized --enable/--with options 1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1455 --enable-silent-rules less verbose build output (undo: "make V=1") 1456 --disable-silent-rules verbose build output (undo: "make V=0") 1457 --enable-dependency-tracking 1458 do not reject slow dependency extractors 1459 --disable-dependency-tracking 1460 speeds up one-time build 1461 --disable-gcc-warnings disable verbose warnings with GCC 1462 --enable-gcc-hardening enable compiler security checks 1463 --disable-thread-support 1464 disable support for threading 1465 --disable-malloc-replacement 1466 disable support for replacing the memory mgt 1467 functions 1468 --disable-openssl disable support for openssl encryption 1469 --disable-debug-mode disable support for running in debug mode 1470 --disable-libevent-install, disable installation of libevent 1471 1472 --disable-libevent-regress, skip regress in make check 1473 1474 --disable-samples, skip building of sample programs 1475 1476 --enable-function-sections, make static library allow smaller binaries with --gc-sections 1477 1478 --enable-verbose-debug, verbose debug logging 1479 1480 --disable-clock-gettime do not use clock_gettime even if it is available 1481 --enable-shared[=PKGS] build shared libraries [default=yes] 1482 --enable-static[=PKGS] build static libraries [default=yes] 1483 --enable-fast-install[=PKGS] 1484 optimize for fast installation [default=yes] 1485 --disable-libtool-lock avoid locking (might break parallel builds) 1486 --disable-largefile omit support for large files 1487 1488Optional Packages: 1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1491 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1492 both] 1493 --with-aix-soname=aix|svr4|both 1494 shared library versioning (aka "SONAME") variant to 1495 provide on AIX, [default=aix]. 1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1497 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1498 compiler's sysroot if not specified). 1499 1500Some influential environment variables: 1501 CC C compiler command 1502 CFLAGS C compiler flags 1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1504 nonstandard directory <lib dir> 1505 LIBS libraries to pass to the linker, e.g. -l<library> 1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1507 you have headers in a nonstandard directory <include dir> 1508 CPP C preprocessor 1509 LT_SYS_LIBRARY_PATH 1510 User-defined run-time library search path. 1511 1512Use these variables to override the choices made by `configure' or to help 1513it to find libraries and programs with nonstandard names/locations. 1514 1515Report bugs to the package provider. 1516_ACEOF 1517ac_status=$? 1518fi 1519 1520if test "$ac_init_help" = "recursive"; then 1521 # If there are subdirs, report their specific --help. 1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1523 test -d "$ac_dir" || 1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1525 continue 1526 ac_builddir=. 1527 1528case "$ac_dir" in 1529.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1530*) 1531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1532 # A ".." for each directory in $ac_dir_suffix. 1533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1534 case $ac_top_builddir_sub in 1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1537 esac ;; 1538esac 1539ac_abs_top_builddir=$ac_pwd 1540ac_abs_builddir=$ac_pwd$ac_dir_suffix 1541# for backward compatibility: 1542ac_top_builddir=$ac_top_build_prefix 1543 1544case $srcdir in 1545 .) # We are building in place. 1546 ac_srcdir=. 1547 ac_top_srcdir=$ac_top_builddir_sub 1548 ac_abs_top_srcdir=$ac_pwd ;; 1549 [\\/]* | ?:[\\/]* ) # Absolute name. 1550 ac_srcdir=$srcdir$ac_dir_suffix; 1551 ac_top_srcdir=$srcdir 1552 ac_abs_top_srcdir=$srcdir ;; 1553 *) # Relative name. 1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1555 ac_top_srcdir=$ac_top_build_prefix$srcdir 1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1557esac 1558ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1559 1560 cd "$ac_dir" || { ac_status=$?; continue; } 1561 # Check for guested configure. 1562 if test -f "$ac_srcdir/configure.gnu"; then 1563 echo && 1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1565 elif test -f "$ac_srcdir/configure"; then 1566 echo && 1567 $SHELL "$ac_srcdir/configure" --help=recursive 1568 else 1569 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1570 fi || ac_status=$? 1571 cd "$ac_pwd" || { ac_status=$?; break; } 1572 done 1573fi 1574 1575test -n "$ac_init_help" && exit $ac_status 1576if $ac_init_version; then 1577 cat <<\_ACEOF 1578libevent configure 2.1.11-stable 1579generated by GNU Autoconf 2.69 1580 1581Copyright (C) 2012 Free Software Foundation, Inc. 1582This configure script is free software; the Free Software Foundation 1583gives unlimited permission to copy, distribute and modify it. 1584_ACEOF 1585 exit 1586fi 1587 1588## ------------------------ ## 1589## Autoconf initialization. ## 1590## ------------------------ ## 1591 1592# ac_fn_c_try_compile LINENO 1593# -------------------------- 1594# Try to compile conftest.$ac_ext, and return whether this succeeded. 1595ac_fn_c_try_compile () 1596{ 1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1598 rm -f conftest.$ac_objext 1599 if { { ac_try="$ac_compile" 1600case "(($ac_try" in 1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1602 *) ac_try_echo=$ac_try;; 1603esac 1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1605$as_echo "$ac_try_echo"; } >&5 1606 (eval "$ac_compile") 2>conftest.err 1607 ac_status=$? 1608 if test -s conftest.err; then 1609 grep -v '^ *+' conftest.err >conftest.er1 1610 cat conftest.er1 >&5 1611 mv -f conftest.er1 conftest.err 1612 fi 1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1614 test $ac_status = 0; } && { 1615 test -z "$ac_c_werror_flag" || 1616 test ! -s conftest.err 1617 } && test -s conftest.$ac_objext; then : 1618 ac_retval=0 1619else 1620 $as_echo "$as_me: failed program was:" >&5 1621sed 's/^/| /' conftest.$ac_ext >&5 1622 1623 ac_retval=1 1624fi 1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1626 as_fn_set_status $ac_retval 1627 1628} # ac_fn_c_try_compile 1629 1630# ac_fn_c_try_cpp LINENO 1631# ---------------------- 1632# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1633ac_fn_c_try_cpp () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 if { { ac_try="$ac_cpp conftest.$ac_ext" 1637case "(($ac_try" in 1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1639 *) ac_try_echo=$ac_try;; 1640esac 1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1642$as_echo "$ac_try_echo"; } >&5 1643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1644 ac_status=$? 1645 if test -s conftest.err; then 1646 grep -v '^ *+' conftest.err >conftest.er1 1647 cat conftest.er1 >&5 1648 mv -f conftest.er1 conftest.err 1649 fi 1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1651 test $ac_status = 0; } > conftest.i && { 1652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1653 test ! -s conftest.err 1654 }; then : 1655 ac_retval=0 1656else 1657 $as_echo "$as_me: failed program was:" >&5 1658sed 's/^/| /' conftest.$ac_ext >&5 1659 1660 ac_retval=1 1661fi 1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1663 as_fn_set_status $ac_retval 1664 1665} # ac_fn_c_try_cpp 1666 1667# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1668# ------------------------------------------------------- 1669# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1670# the include files in INCLUDES and setting the cache variable VAR 1671# accordingly. 1672ac_fn_c_check_header_mongrel () 1673{ 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 if eval \${$3+:} false; then : 1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1677$as_echo_n "checking for $2... " >&6; } 1678if eval \${$3+:} false; then : 1679 $as_echo_n "(cached) " >&6 1680fi 1681eval ac_res=\$$3 1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1683$as_echo "$ac_res" >&6; } 1684else 1685 # Is the header compilable? 1686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1687$as_echo_n "checking $2 usability... " >&6; } 1688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1689/* end confdefs.h. */ 1690$4 1691#include <$2> 1692_ACEOF 1693if ac_fn_c_try_compile "$LINENO"; then : 1694 ac_header_compiler=yes 1695else 1696 ac_header_compiler=no 1697fi 1698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1700$as_echo "$ac_header_compiler" >&6; } 1701 1702# Is the header present? 1703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1704$as_echo_n "checking $2 presence... " >&6; } 1705cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1706/* end confdefs.h. */ 1707#include <$2> 1708_ACEOF 1709if ac_fn_c_try_cpp "$LINENO"; then : 1710 ac_header_preproc=yes 1711else 1712 ac_header_preproc=no 1713fi 1714rm -f conftest.err conftest.i conftest.$ac_ext 1715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1716$as_echo "$ac_header_preproc" >&6; } 1717 1718# So? What about this header? 1719case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1720 yes:no: ) 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1722$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1724$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1725 ;; 1726 no:yes:* ) 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1728$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1730$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1732$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1734$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1736$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1737 ;; 1738esac 1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1740$as_echo_n "checking for $2... " >&6; } 1741if eval \${$3+:} false; then : 1742 $as_echo_n "(cached) " >&6 1743else 1744 eval "$3=\$ac_header_compiler" 1745fi 1746eval ac_res=\$$3 1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1748$as_echo "$ac_res" >&6; } 1749fi 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 1752} # ac_fn_c_check_header_mongrel 1753 1754# ac_fn_c_try_run LINENO 1755# ---------------------- 1756# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1757# that executables *can* be run. 1758ac_fn_c_try_run () 1759{ 1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1761 if { { ac_try="$ac_link" 1762case "(($ac_try" in 1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1764 *) ac_try_echo=$ac_try;; 1765esac 1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1767$as_echo "$ac_try_echo"; } >&5 1768 (eval "$ac_link") 2>&5 1769 ac_status=$? 1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1772 { { case "(($ac_try" in 1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1774 *) ac_try_echo=$ac_try;; 1775esac 1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1777$as_echo "$ac_try_echo"; } >&5 1778 (eval "$ac_try") 2>&5 1779 ac_status=$? 1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1781 test $ac_status = 0; }; }; then : 1782 ac_retval=0 1783else 1784 $as_echo "$as_me: program exited with status $ac_status" >&5 1785 $as_echo "$as_me: failed program was:" >&5 1786sed 's/^/| /' conftest.$ac_ext >&5 1787 1788 ac_retval=$ac_status 1789fi 1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1792 as_fn_set_status $ac_retval 1793 1794} # ac_fn_c_try_run 1795 1796# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1797# ------------------------------------------------------- 1798# Tests whether HEADER exists and can be compiled using the include files in 1799# INCLUDES, setting the cache variable VAR accordingly. 1800ac_fn_c_check_header_compile () 1801{ 1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1804$as_echo_n "checking for $2... " >&6; } 1805if eval \${$3+:} false; then : 1806 $as_echo_n "(cached) " >&6 1807else 1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1809/* end confdefs.h. */ 1810$4 1811#include <$2> 1812_ACEOF 1813if ac_fn_c_try_compile "$LINENO"; then : 1814 eval "$3=yes" 1815else 1816 eval "$3=no" 1817fi 1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1819fi 1820eval ac_res=\$$3 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1822$as_echo "$ac_res" >&6; } 1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1824 1825} # ac_fn_c_check_header_compile 1826 1827# ac_fn_c_try_link LINENO 1828# ----------------------- 1829# Try to link conftest.$ac_ext, and return whether this succeeded. 1830ac_fn_c_try_link () 1831{ 1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 rm -f conftest.$ac_objext conftest$ac_exeext 1834 if { { ac_try="$ac_link" 1835case "(($ac_try" in 1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1837 *) ac_try_echo=$ac_try;; 1838esac 1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1840$as_echo "$ac_try_echo"; } >&5 1841 (eval "$ac_link") 2>conftest.err 1842 ac_status=$? 1843 if test -s conftest.err; then 1844 grep -v '^ *+' conftest.err >conftest.er1 1845 cat conftest.er1 >&5 1846 mv -f conftest.er1 conftest.err 1847 fi 1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1849 test $ac_status = 0; } && { 1850 test -z "$ac_c_werror_flag" || 1851 test ! -s conftest.err 1852 } && test -s conftest$ac_exeext && { 1853 test "$cross_compiling" = yes || 1854 test -x conftest$ac_exeext 1855 }; then : 1856 ac_retval=0 1857else 1858 $as_echo "$as_me: failed program was:" >&5 1859sed 's/^/| /' conftest.$ac_ext >&5 1860 1861 ac_retval=1 1862fi 1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1865 # interfere with the next link command; also delete a directory that is 1866 # left behind by Apple's compiler. We do this before executing the actions. 1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1869 as_fn_set_status $ac_retval 1870 1871} # ac_fn_c_try_link 1872 1873# ac_fn_c_check_func LINENO FUNC VAR 1874# ---------------------------------- 1875# Tests whether FUNC exists, setting the cache variable VAR accordingly 1876ac_fn_c_check_func () 1877{ 1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1880$as_echo_n "checking for $2... " >&6; } 1881if eval \${$3+:} false; then : 1882 $as_echo_n "(cached) " >&6 1883else 1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1885/* end confdefs.h. */ 1886/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1887 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1888#define $2 innocuous_$2 1889 1890/* System header to define __stub macros and hopefully few prototypes, 1891 which can conflict with char $2 (); below. 1892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1893 <limits.h> exists even on freestanding compilers. */ 1894 1895#ifdef __STDC__ 1896# include <limits.h> 1897#else 1898# include <assert.h> 1899#endif 1900 1901#undef $2 1902 1903/* Override any GCC internal prototype to avoid an error. 1904 Use char because int might match the return type of a GCC 1905 builtin and then its argument prototype would still apply. */ 1906#ifdef __cplusplus 1907extern "C" 1908#endif 1909char $2 (); 1910/* The GNU C library defines this for functions which it implements 1911 to always fail with ENOSYS. Some functions are actually named 1912 something starting with __ and the normal name is an alias. */ 1913#if defined __stub_$2 || defined __stub___$2 1914choke me 1915#endif 1916 1917int 1918main () 1919{ 1920return $2 (); 1921 ; 1922 return 0; 1923} 1924_ACEOF 1925if ac_fn_c_try_link "$LINENO"; then : 1926 eval "$3=yes" 1927else 1928 eval "$3=no" 1929fi 1930rm -f core conftest.err conftest.$ac_objext \ 1931 conftest$ac_exeext conftest.$ac_ext 1932fi 1933eval ac_res=\$$3 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1935$as_echo "$ac_res" >&6; } 1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1937 1938} # ac_fn_c_check_func 1939 1940# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1941# --------------------------------------------- 1942# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1943# accordingly. 1944ac_fn_c_check_decl () 1945{ 1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1947 as_decl_name=`echo $2|sed 's/ *(.*//'` 1948 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1950$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1951if eval \${$3+:} false; then : 1952 $as_echo_n "(cached) " >&6 1953else 1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1955/* end confdefs.h. */ 1956$4 1957int 1958main () 1959{ 1960#ifndef $as_decl_name 1961#ifdef __cplusplus 1962 (void) $as_decl_use; 1963#else 1964 (void) $as_decl_name; 1965#endif 1966#endif 1967 1968 ; 1969 return 0; 1970} 1971_ACEOF 1972if ac_fn_c_try_compile "$LINENO"; then : 1973 eval "$3=yes" 1974else 1975 eval "$3=no" 1976fi 1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1978fi 1979eval ac_res=\$$3 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1981$as_echo "$ac_res" >&6; } 1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1983 1984} # ac_fn_c_check_decl 1985 1986# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1987# ------------------------------------------- 1988# Tests whether TYPE exists after having included INCLUDES, setting cache 1989# variable VAR accordingly. 1990ac_fn_c_check_type () 1991{ 1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1994$as_echo_n "checking for $2... " >&6; } 1995if eval \${$3+:} false; then : 1996 $as_echo_n "(cached) " >&6 1997else 1998 eval "$3=no" 1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2000/* end confdefs.h. */ 2001$4 2002int 2003main () 2004{ 2005if (sizeof ($2)) 2006 return 0; 2007 ; 2008 return 0; 2009} 2010_ACEOF 2011if ac_fn_c_try_compile "$LINENO"; then : 2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2013/* end confdefs.h. */ 2014$4 2015int 2016main () 2017{ 2018if (sizeof (($2))) 2019 return 0; 2020 ; 2021 return 0; 2022} 2023_ACEOF 2024if ac_fn_c_try_compile "$LINENO"; then : 2025 2026else 2027 eval "$3=yes" 2028fi 2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2030fi 2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2032fi 2033eval ac_res=\$$3 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2035$as_echo "$ac_res" >&6; } 2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2037 2038} # ac_fn_c_check_type 2039 2040# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2041# -------------------------------------------- 2042# Tries to find the compile-time value of EXPR in a program that includes 2043# INCLUDES, setting VAR accordingly. Returns whether the value could be 2044# computed 2045ac_fn_c_compute_int () 2046{ 2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2048 if test "$cross_compiling" = yes; then 2049 # Depending upon the size, compute the lo and hi bounds. 2050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2051/* end confdefs.h. */ 2052$4 2053int 2054main () 2055{ 2056static int test_array [1 - 2 * !(($2) >= 0)]; 2057test_array [0] = 0; 2058return test_array [0]; 2059 2060 ; 2061 return 0; 2062} 2063_ACEOF 2064if ac_fn_c_try_compile "$LINENO"; then : 2065 ac_lo=0 ac_mid=0 2066 while :; do 2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2068/* end confdefs.h. */ 2069$4 2070int 2071main () 2072{ 2073static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2074test_array [0] = 0; 2075return test_array [0]; 2076 2077 ; 2078 return 0; 2079} 2080_ACEOF 2081if ac_fn_c_try_compile "$LINENO"; then : 2082 ac_hi=$ac_mid; break 2083else 2084 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2085 if test $ac_lo -le $ac_mid; then 2086 ac_lo= ac_hi= 2087 break 2088 fi 2089 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2090fi 2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2092 done 2093else 2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2095/* end confdefs.h. */ 2096$4 2097int 2098main () 2099{ 2100static int test_array [1 - 2 * !(($2) < 0)]; 2101test_array [0] = 0; 2102return test_array [0]; 2103 2104 ; 2105 return 0; 2106} 2107_ACEOF 2108if ac_fn_c_try_compile "$LINENO"; then : 2109 ac_hi=-1 ac_mid=-1 2110 while :; do 2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2112/* end confdefs.h. */ 2113$4 2114int 2115main () 2116{ 2117static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2118test_array [0] = 0; 2119return test_array [0]; 2120 2121 ; 2122 return 0; 2123} 2124_ACEOF 2125if ac_fn_c_try_compile "$LINENO"; then : 2126 ac_lo=$ac_mid; break 2127else 2128 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2129 if test $ac_mid -le $ac_hi; then 2130 ac_lo= ac_hi= 2131 break 2132 fi 2133 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2134fi 2135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2136 done 2137else 2138 ac_lo= ac_hi= 2139fi 2140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2141fi 2142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2143# Binary search between lo and hi bounds. 2144while test "x$ac_lo" != "x$ac_hi"; do 2145 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2147/* end confdefs.h. */ 2148$4 2149int 2150main () 2151{ 2152static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2153test_array [0] = 0; 2154return test_array [0]; 2155 2156 ; 2157 return 0; 2158} 2159_ACEOF 2160if ac_fn_c_try_compile "$LINENO"; then : 2161 ac_hi=$ac_mid 2162else 2163 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2164fi 2165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2166done 2167case $ac_lo in #(( 2168?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2169'') ac_retval=1 ;; 2170esac 2171 else 2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2173/* end confdefs.h. */ 2174$4 2175static long int longval () { return $2; } 2176static unsigned long int ulongval () { return $2; } 2177#include <stdio.h> 2178#include <stdlib.h> 2179int 2180main () 2181{ 2182 2183 FILE *f = fopen ("conftest.val", "w"); 2184 if (! f) 2185 return 1; 2186 if (($2) < 0) 2187 { 2188 long int i = longval (); 2189 if (i != ($2)) 2190 return 1; 2191 fprintf (f, "%ld", i); 2192 } 2193 else 2194 { 2195 unsigned long int i = ulongval (); 2196 if (i != ($2)) 2197 return 1; 2198 fprintf (f, "%lu", i); 2199 } 2200 /* Do not output a trailing newline, as this causes \r\n confusion 2201 on some platforms. */ 2202 return ferror (f) || fclose (f) != 0; 2203 2204 ; 2205 return 0; 2206} 2207_ACEOF 2208if ac_fn_c_try_run "$LINENO"; then : 2209 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2210else 2211 ac_retval=1 2212fi 2213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2214 conftest.$ac_objext conftest.beam conftest.$ac_ext 2215rm -f conftest.val 2216 2217 fi 2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2219 as_fn_set_status $ac_retval 2220 2221} # ac_fn_c_compute_int 2222 2223# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2224# ---------------------------------------------------- 2225# Tries to find if the field MEMBER exists in type AGGR, after including 2226# INCLUDES, setting cache variable VAR accordingly. 2227ac_fn_c_check_member () 2228{ 2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2231$as_echo_n "checking for $2.$3... " >&6; } 2232if eval \${$4+:} false; then : 2233 $as_echo_n "(cached) " >&6 2234else 2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2236/* end confdefs.h. */ 2237$5 2238int 2239main () 2240{ 2241static $2 ac_aggr; 2242if (ac_aggr.$3) 2243return 0; 2244 ; 2245 return 0; 2246} 2247_ACEOF 2248if ac_fn_c_try_compile "$LINENO"; then : 2249 eval "$4=yes" 2250else 2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2252/* end confdefs.h. */ 2253$5 2254int 2255main () 2256{ 2257static $2 ac_aggr; 2258if (sizeof ac_aggr.$3) 2259return 0; 2260 ; 2261 return 0; 2262} 2263_ACEOF 2264if ac_fn_c_try_compile "$LINENO"; then : 2265 eval "$4=yes" 2266else 2267 eval "$4=no" 2268fi 2269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2270fi 2271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2272fi 2273eval ac_res=\$$4 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2275$as_echo "$ac_res" >&6; } 2276 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2277 2278} # ac_fn_c_check_member 2279cat >config.log <<_ACEOF 2280This file contains any messages produced by compilers while 2281running configure, to aid debugging if configure makes a mistake. 2282 2283It was created by libevent $as_me 2.1.11-stable, which was 2284generated by GNU Autoconf 2.69. Invocation command line was 2285 2286 $ $0 $@ 2287 2288_ACEOF 2289exec 5>>config.log 2290{ 2291cat <<_ASUNAME 2292## --------- ## 2293## Platform. ## 2294## --------- ## 2295 2296hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2297uname -m = `(uname -m) 2>/dev/null || echo unknown` 2298uname -r = `(uname -r) 2>/dev/null || echo unknown` 2299uname -s = `(uname -s) 2>/dev/null || echo unknown` 2300uname -v = `(uname -v) 2>/dev/null || echo unknown` 2301 2302/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2303/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2304 2305/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2306/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2307/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2308/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2309/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2310/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2311/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2312 2313_ASUNAME 2314 2315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2316for as_dir in $PATH 2317do 2318 IFS=$as_save_IFS 2319 test -z "$as_dir" && as_dir=. 2320 $as_echo "PATH: $as_dir" 2321 done 2322IFS=$as_save_IFS 2323 2324} >&5 2325 2326cat >&5 <<_ACEOF 2327 2328 2329## ----------- ## 2330## Core tests. ## 2331## ----------- ## 2332 2333_ACEOF 2334 2335 2336# Keep a trace of the command line. 2337# Strip out --no-create and --no-recursion so they do not pile up. 2338# Strip out --silent because we don't want to record it for future runs. 2339# Also quote any args containing shell meta-characters. 2340# Make two passes to allow for proper duplicate-argument suppression. 2341ac_configure_args= 2342ac_configure_args0= 2343ac_configure_args1= 2344ac_must_keep_next=false 2345for ac_pass in 1 2 2346do 2347 for ac_arg 2348 do 2349 case $ac_arg in 2350 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2352 | -silent | --silent | --silen | --sile | --sil) 2353 continue ;; 2354 *\'*) 2355 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2356 esac 2357 case $ac_pass in 2358 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2359 2) 2360 as_fn_append ac_configure_args1 " '$ac_arg'" 2361 if test $ac_must_keep_next = true; then 2362 ac_must_keep_next=false # Got value, back to normal. 2363 else 2364 case $ac_arg in 2365 *=* | --config-cache | -C | -disable-* | --disable-* \ 2366 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2367 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2368 | -with-* | --with-* | -without-* | --without-* | --x) 2369 case "$ac_configure_args0 " in 2370 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2371 esac 2372 ;; 2373 -* ) ac_must_keep_next=true ;; 2374 esac 2375 fi 2376 as_fn_append ac_configure_args " '$ac_arg'" 2377 ;; 2378 esac 2379 done 2380done 2381{ ac_configure_args0=; unset ac_configure_args0;} 2382{ ac_configure_args1=; unset ac_configure_args1;} 2383 2384# When interrupted or exit'd, cleanup temporary files, and complete 2385# config.log. We remove comments because anyway the quotes in there 2386# would cause problems or look ugly. 2387# WARNING: Use '\'' to represent an apostrophe within the trap. 2388# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2389trap 'exit_status=$? 2390 # Save into config.log some information that might help in debugging. 2391 { 2392 echo 2393 2394 $as_echo "## ---------------- ## 2395## Cache variables. ## 2396## ---------------- ##" 2397 echo 2398 # The following way of writing the cache mishandles newlines in values, 2399( 2400 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2401 eval ac_val=\$$ac_var 2402 case $ac_val in #( 2403 *${as_nl}*) 2404 case $ac_var in #( 2405 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2406$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2407 esac 2408 case $ac_var in #( 2409 _ | IFS | as_nl) ;; #( 2410 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2411 *) { eval $ac_var=; unset $ac_var;} ;; 2412 esac ;; 2413 esac 2414 done 2415 (set) 2>&1 | 2416 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2417 *${as_nl}ac_space=\ *) 2418 sed -n \ 2419 "s/'\''/'\''\\\\'\'''\''/g; 2420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2421 ;; #( 2422 *) 2423 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2424 ;; 2425 esac | 2426 sort 2427) 2428 echo 2429 2430 $as_echo "## ----------------- ## 2431## Output variables. ## 2432## ----------------- ##" 2433 echo 2434 for ac_var in $ac_subst_vars 2435 do 2436 eval ac_val=\$$ac_var 2437 case $ac_val in 2438 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2439 esac 2440 $as_echo "$ac_var='\''$ac_val'\''" 2441 done | sort 2442 echo 2443 2444 if test -n "$ac_subst_files"; then 2445 $as_echo "## ------------------- ## 2446## File substitutions. ## 2447## ------------------- ##" 2448 echo 2449 for ac_var in $ac_subst_files 2450 do 2451 eval ac_val=\$$ac_var 2452 case $ac_val in 2453 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2454 esac 2455 $as_echo "$ac_var='\''$ac_val'\''" 2456 done | sort 2457 echo 2458 fi 2459 2460 if test -s confdefs.h; then 2461 $as_echo "## ----------- ## 2462## confdefs.h. ## 2463## ----------- ##" 2464 echo 2465 cat confdefs.h 2466 echo 2467 fi 2468 test "$ac_signal" != 0 && 2469 $as_echo "$as_me: caught signal $ac_signal" 2470 $as_echo "$as_me: exit $exit_status" 2471 } >&5 2472 rm -f core *.core core.conftest.* && 2473 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2474 exit $exit_status 2475' 0 2476for ac_signal in 1 2 13 15; do 2477 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2478done 2479ac_signal=0 2480 2481# confdefs.h avoids OS command line length limits that DEFS can exceed. 2482rm -f -r conftest* confdefs.h 2483 2484$as_echo "/* confdefs.h */" > confdefs.h 2485 2486# Predefined preprocessor variables. 2487 2488cat >>confdefs.h <<_ACEOF 2489#define PACKAGE_NAME "$PACKAGE_NAME" 2490_ACEOF 2491 2492cat >>confdefs.h <<_ACEOF 2493#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2494_ACEOF 2495 2496cat >>confdefs.h <<_ACEOF 2497#define PACKAGE_VERSION "$PACKAGE_VERSION" 2498_ACEOF 2499 2500cat >>confdefs.h <<_ACEOF 2501#define PACKAGE_STRING "$PACKAGE_STRING" 2502_ACEOF 2503 2504cat >>confdefs.h <<_ACEOF 2505#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2506_ACEOF 2507 2508cat >>confdefs.h <<_ACEOF 2509#define PACKAGE_URL "$PACKAGE_URL" 2510_ACEOF 2511 2512 2513# Let the site file select an alternate cache file if it wants to. 2514# Prefer an explicitly selected file to automatically selected ones. 2515ac_site_file1=NONE 2516ac_site_file2=NONE 2517if test -n "$CONFIG_SITE"; then 2518 # We do not want a PATH search for config.site. 2519 case $CONFIG_SITE in #(( 2520 -*) ac_site_file1=./$CONFIG_SITE;; 2521 */*) ac_site_file1=$CONFIG_SITE;; 2522 *) ac_site_file1=./$CONFIG_SITE;; 2523 esac 2524elif test "x$prefix" != xNONE; then 2525 ac_site_file1=$prefix/share/config.site 2526 ac_site_file2=$prefix/etc/config.site 2527else 2528 ac_site_file1=$ac_default_prefix/share/config.site 2529 ac_site_file2=$ac_default_prefix/etc/config.site 2530fi 2531for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2532do 2533 test "x$ac_site_file" = xNONE && continue 2534 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2536$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2537 sed 's/^/| /' "$ac_site_file" >&5 2538 . "$ac_site_file" \ 2539 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2541as_fn_error $? "failed to load site script $ac_site_file 2542See \`config.log' for more details" "$LINENO" 5; } 2543 fi 2544done 2545 2546if test -r "$cache_file"; then 2547 # Some versions of bash will fail to source /dev/null (special files 2548 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2549 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2551$as_echo "$as_me: loading cache $cache_file" >&6;} 2552 case $cache_file in 2553 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2554 *) . "./$cache_file";; 2555 esac 2556 fi 2557else 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2559$as_echo "$as_me: creating cache $cache_file" >&6;} 2560 >$cache_file 2561fi 2562 2563# Check that the precious variables saved in the cache have kept the same 2564# value. 2565ac_cache_corrupted=false 2566for ac_var in $ac_precious_vars; do 2567 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2568 eval ac_new_set=\$ac_env_${ac_var}_set 2569 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2570 eval ac_new_val=\$ac_env_${ac_var}_value 2571 case $ac_old_set,$ac_new_set in 2572 set,) 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2574$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2575 ac_cache_corrupted=: ;; 2576 ,set) 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2578$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2579 ac_cache_corrupted=: ;; 2580 ,);; 2581 *) 2582 if test "x$ac_old_val" != "x$ac_new_val"; then 2583 # differences in whitespace do not lead to failure. 2584 ac_old_val_w=`echo x $ac_old_val` 2585 ac_new_val_w=`echo x $ac_new_val` 2586 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2588$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2589 ac_cache_corrupted=: 2590 else 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2592$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2593 eval $ac_var=\$ac_old_val 2594 fi 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2596$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2598$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2599 fi;; 2600 esac 2601 # Pass precious variables to config.status. 2602 if test "$ac_new_set" = set; then 2603 case $ac_new_val in 2604 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2605 *) ac_arg=$ac_var=$ac_new_val ;; 2606 esac 2607 case " $ac_configure_args " in 2608 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2609 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2610 esac 2611 fi 2612done 2613if $ac_cache_corrupted; then 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2617$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2618 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2619fi 2620## -------------------- ## 2621## Main body of script. ## 2622## -------------------- ## 2623 2624ac_ext=c 2625ac_cpp='$CPP $CPPFLAGS' 2626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2628ac_compiler_gnu=$ac_cv_c_compiler_gnu 2629 2630 2631 2632 2633 2634 2635am__api_version='1.16' 2636 2637ac_aux_dir= 2638for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2639 if test -f "$ac_dir/install-sh"; then 2640 ac_aux_dir=$ac_dir 2641 ac_install_sh="$ac_aux_dir/install-sh -c" 2642 break 2643 elif test -f "$ac_dir/install.sh"; then 2644 ac_aux_dir=$ac_dir 2645 ac_install_sh="$ac_aux_dir/install.sh -c" 2646 break 2647 elif test -f "$ac_dir/shtool"; then 2648 ac_aux_dir=$ac_dir 2649 ac_install_sh="$ac_aux_dir/shtool install -c" 2650 break 2651 fi 2652done 2653if test -z "$ac_aux_dir"; then 2654 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2655fi 2656 2657# These three variables are undocumented and unsupported, 2658# and are intended to be withdrawn in a future Autoconf release. 2659# They can cause serious problems if a builder's source tree is in a directory 2660# whose full name contains unusual characters. 2661ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2662ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2663ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2664 2665 2666# Find a good install program. We prefer a C program (faster), 2667# so one script is as good as another. But avoid the broken or 2668# incompatible versions: 2669# SysV /etc/install, /usr/sbin/install 2670# SunOS /usr/etc/install 2671# IRIX /sbin/install 2672# AIX /bin/install 2673# AmigaOS /C/install, which installs bootblocks on floppy discs 2674# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2675# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2676# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2677# OS/2's system install, which has a completely different semantic 2678# ./install, which can be erroneously created by make from ./install.sh. 2679# Reject install programs that cannot install multiple files. 2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2681$as_echo_n "checking for a BSD-compatible install... " >&6; } 2682if test -z "$INSTALL"; then 2683if ${ac_cv_path_install+:} false; then : 2684 $as_echo_n "(cached) " >&6 2685else 2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2687for as_dir in $PATH 2688do 2689 IFS=$as_save_IFS 2690 test -z "$as_dir" && as_dir=. 2691 # Account for people who put trailing slashes in PATH elements. 2692case $as_dir/ in #(( 2693 ./ | .// | /[cC]/* | \ 2694 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2695 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2696 /usr/ucb/* ) ;; 2697 *) 2698 # OSF1 and SCO ODT 3.0 have their own names for install. 2699 # Don't use installbsd from OSF since it installs stuff as root 2700 # by default. 2701 for ac_prog in ginstall scoinst install; do 2702 for ac_exec_ext in '' $ac_executable_extensions; do 2703 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2704 if test $ac_prog = install && 2705 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2706 # AIX install. It has an incompatible calling convention. 2707 : 2708 elif test $ac_prog = install && 2709 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2710 # program-specific install script used by HP pwplus--don't use. 2711 : 2712 else 2713 rm -rf conftest.one conftest.two conftest.dir 2714 echo one > conftest.one 2715 echo two > conftest.two 2716 mkdir conftest.dir 2717 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2718 test -s conftest.one && test -s conftest.two && 2719 test -s conftest.dir/conftest.one && 2720 test -s conftest.dir/conftest.two 2721 then 2722 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2723 break 3 2724 fi 2725 fi 2726 fi 2727 done 2728 done 2729 ;; 2730esac 2731 2732 done 2733IFS=$as_save_IFS 2734 2735rm -rf conftest.one conftest.two conftest.dir 2736 2737fi 2738 if test "${ac_cv_path_install+set}" = set; then 2739 INSTALL=$ac_cv_path_install 2740 else 2741 # As a last resort, use the slow shell script. Don't cache a 2742 # value for INSTALL within a source directory, because that will 2743 # break other packages using the cache if that directory is 2744 # removed, or if the value is a relative name. 2745 INSTALL=$ac_install_sh 2746 fi 2747fi 2748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2749$as_echo "$INSTALL" >&6; } 2750 2751# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2752# It thinks the first close brace ends the variable substitution. 2753test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2754 2755test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2756 2757test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2758 2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2760$as_echo_n "checking whether build environment is sane... " >&6; } 2761# Reject unsafe characters in $srcdir or the absolute working directory 2762# name. Accept space and tab only in the latter. 2763am_lf=' 2764' 2765case `pwd` in 2766 *[\\\"\#\$\&\'\`$am_lf]*) 2767 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2768esac 2769case $srcdir in 2770 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2771 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2772esac 2773 2774# Do 'set' in a subshell so we don't clobber the current shell's 2775# arguments. Must try -L first in case configure is actually a 2776# symlink; some systems play weird games with the mod time of symlinks 2777# (eg FreeBSD returns the mod time of the symlink's containing 2778# directory). 2779if ( 2780 am_has_slept=no 2781 for am_try in 1 2; do 2782 echo "timestamp, slept: $am_has_slept" > conftest.file 2783 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2784 if test "$*" = "X"; then 2785 # -L didn't work. 2786 set X `ls -t "$srcdir/configure" conftest.file` 2787 fi 2788 if test "$*" != "X $srcdir/configure conftest.file" \ 2789 && test "$*" != "X conftest.file $srcdir/configure"; then 2790 2791 # If neither matched, then we have a broken ls. This can happen 2792 # if, for instance, CONFIG_SHELL is bash and it inherits a 2793 # broken ls alias from the environment. This has actually 2794 # happened. Such a system could not be considered "sane". 2795 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2796 alias in your environment" "$LINENO" 5 2797 fi 2798 if test "$2" = conftest.file || test $am_try -eq 2; then 2799 break 2800 fi 2801 # Just in case. 2802 sleep 1 2803 am_has_slept=yes 2804 done 2805 test "$2" = conftest.file 2806 ) 2807then 2808 # Ok. 2809 : 2810else 2811 as_fn_error $? "newly created file is older than distributed files! 2812Check your system clock" "$LINENO" 5 2813fi 2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2815$as_echo "yes" >&6; } 2816# If we didn't sleep, we still need to ensure time stamps of config.status and 2817# generated files are strictly newer. 2818am_sleep_pid= 2819if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2820 ( sleep 1 ) & 2821 am_sleep_pid=$! 2822fi 2823 2824rm -f conftest.file 2825 2826test "$program_prefix" != NONE && 2827 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2828# Use a double $ so make ignores it. 2829test "$program_suffix" != NONE && 2830 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2831# Double any \ or $. 2832# By default was `s,x,x', remove it if useless. 2833ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2834program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2835 2836# Expand $ac_aux_dir to an absolute path. 2837am_aux_dir=`cd "$ac_aux_dir" && pwd` 2838 2839if test x"${MISSING+set}" != xset; then 2840 case $am_aux_dir in 2841 *\ * | *\ *) 2842 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2843 *) 2844 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2845 esac 2846fi 2847# Use eval to expand $SHELL 2848if eval "$MISSING --is-lightweight"; then 2849 am_missing_run="$MISSING " 2850else 2851 am_missing_run= 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2853$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2854fi 2855 2856if test x"${install_sh+set}" != xset; then 2857 case $am_aux_dir in 2858 *\ * | *\ *) 2859 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2860 *) 2861 install_sh="\${SHELL} $am_aux_dir/install-sh" 2862 esac 2863fi 2864 2865# Installed binaries are usually stripped using 'strip' when the user 2866# run "make install-strip". However 'strip' might not be the right 2867# tool to use in cross-compilation environments, therefore Automake 2868# will honor the 'STRIP' environment variable to overrule this program. 2869if test "$cross_compiling" != no; then 2870 if test -n "$ac_tool_prefix"; then 2871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2872set dummy ${ac_tool_prefix}strip; ac_word=$2 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2874$as_echo_n "checking for $ac_word... " >&6; } 2875if ${ac_cv_prog_STRIP+:} false; then : 2876 $as_echo_n "(cached) " >&6 2877else 2878 if test -n "$STRIP"; then 2879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2880else 2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882for as_dir in $PATH 2883do 2884 IFS=$as_save_IFS 2885 test -z "$as_dir" && as_dir=. 2886 for ac_exec_ext in '' $ac_executable_extensions; do 2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2888 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2890 break 2 2891 fi 2892done 2893 done 2894IFS=$as_save_IFS 2895 2896fi 2897fi 2898STRIP=$ac_cv_prog_STRIP 2899if test -n "$STRIP"; then 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2901$as_echo "$STRIP" >&6; } 2902else 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2904$as_echo "no" >&6; } 2905fi 2906 2907 2908fi 2909if test -z "$ac_cv_prog_STRIP"; then 2910 ac_ct_STRIP=$STRIP 2911 # Extract the first word of "strip", so it can be a program name with args. 2912set dummy strip; ac_word=$2 2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2914$as_echo_n "checking for $ac_word... " >&6; } 2915if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2916 $as_echo_n "(cached) " >&6 2917else 2918 if test -n "$ac_ct_STRIP"; then 2919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2920else 2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2922for as_dir in $PATH 2923do 2924 IFS=$as_save_IFS 2925 test -z "$as_dir" && as_dir=. 2926 for ac_exec_ext in '' $ac_executable_extensions; do 2927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2928 ac_cv_prog_ac_ct_STRIP="strip" 2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2930 break 2 2931 fi 2932done 2933 done 2934IFS=$as_save_IFS 2935 2936fi 2937fi 2938ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2939if test -n "$ac_ct_STRIP"; then 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2941$as_echo "$ac_ct_STRIP" >&6; } 2942else 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2944$as_echo "no" >&6; } 2945fi 2946 2947 if test "x$ac_ct_STRIP" = x; then 2948 STRIP=":" 2949 else 2950 case $cross_compiling:$ac_tool_warned in 2951yes:) 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2954ac_tool_warned=yes ;; 2955esac 2956 STRIP=$ac_ct_STRIP 2957 fi 2958else 2959 STRIP="$ac_cv_prog_STRIP" 2960fi 2961 2962fi 2963INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2964 2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2966$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2967if test -z "$MKDIR_P"; then 2968 if ${ac_cv_path_mkdir+:} false; then : 2969 $as_echo_n "(cached) " >&6 2970else 2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2972for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2973do 2974 IFS=$as_save_IFS 2975 test -z "$as_dir" && as_dir=. 2976 for ac_prog in mkdir gmkdir; do 2977 for ac_exec_ext in '' $ac_executable_extensions; do 2978 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2979 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2980 'mkdir (GNU coreutils) '* | \ 2981 'mkdir (coreutils) '* | \ 2982 'mkdir (fileutils) '4.1*) 2983 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2984 break 3;; 2985 esac 2986 done 2987 done 2988 done 2989IFS=$as_save_IFS 2990 2991fi 2992 2993 test -d ./--version && rmdir ./--version 2994 if test "${ac_cv_path_mkdir+set}" = set; then 2995 MKDIR_P="$ac_cv_path_mkdir -p" 2996 else 2997 # As a last resort, use the slow shell script. Don't cache a 2998 # value for MKDIR_P within a source directory, because that will 2999 # break other packages using the cache if that directory is 3000 # removed, or if the value is a relative name. 3001 MKDIR_P="$ac_install_sh -d" 3002 fi 3003fi 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3005$as_echo "$MKDIR_P" >&6; } 3006 3007for ac_prog in gawk mawk nawk awk 3008do 3009 # Extract the first word of "$ac_prog", so it can be a program name with args. 3010set dummy $ac_prog; ac_word=$2 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3012$as_echo_n "checking for $ac_word... " >&6; } 3013if ${ac_cv_prog_AWK+:} false; then : 3014 $as_echo_n "(cached) " >&6 3015else 3016 if test -n "$AWK"; then 3017 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3018else 3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3020for as_dir in $PATH 3021do 3022 IFS=$as_save_IFS 3023 test -z "$as_dir" && as_dir=. 3024 for ac_exec_ext in '' $ac_executable_extensions; do 3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3026 ac_cv_prog_AWK="$ac_prog" 3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3028 break 2 3029 fi 3030done 3031 done 3032IFS=$as_save_IFS 3033 3034fi 3035fi 3036AWK=$ac_cv_prog_AWK 3037if test -n "$AWK"; then 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3039$as_echo "$AWK" >&6; } 3040else 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3042$as_echo "no" >&6; } 3043fi 3044 3045 3046 test -n "$AWK" && break 3047done 3048 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3050$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3051set x ${MAKE-make} 3052ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3053if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3054 $as_echo_n "(cached) " >&6 3055else 3056 cat >conftest.make <<\_ACEOF 3057SHELL = /bin/sh 3058all: 3059 @echo '@@@%%%=$(MAKE)=@@@%%%' 3060_ACEOF 3061# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3062case `${MAKE-make} -f conftest.make 2>/dev/null` in 3063 *@@@%%%=?*=@@@%%%*) 3064 eval ac_cv_prog_make_${ac_make}_set=yes;; 3065 *) 3066 eval ac_cv_prog_make_${ac_make}_set=no;; 3067esac 3068rm -f conftest.make 3069fi 3070if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3072$as_echo "yes" >&6; } 3073 SET_MAKE= 3074else 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3076$as_echo "no" >&6; } 3077 SET_MAKE="MAKE=${MAKE-make}" 3078fi 3079 3080rm -rf .tst 2>/dev/null 3081mkdir .tst 2>/dev/null 3082if test -d .tst; then 3083 am__leading_dot=. 3084else 3085 am__leading_dot=_ 3086fi 3087rmdir .tst 2>/dev/null 3088 3089# Check whether --enable-silent-rules was given. 3090if test "${enable_silent_rules+set}" = set; then : 3091 enableval=$enable_silent_rules; 3092fi 3093 3094case $enable_silent_rules in # ((( 3095 yes) AM_DEFAULT_VERBOSITY=0;; 3096 no) AM_DEFAULT_VERBOSITY=1;; 3097 *) AM_DEFAULT_VERBOSITY=1;; 3098esac 3099am_make=${MAKE-make} 3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3101$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3102if ${am_cv_make_support_nested_variables+:} false; then : 3103 $as_echo_n "(cached) " >&6 3104else 3105 if $as_echo 'TRUE=$(BAR$(V)) 3106BAR0=false 3107BAR1=true 3108V=1 3109am__doit: 3110 @$(TRUE) 3111.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3112 am_cv_make_support_nested_variables=yes 3113else 3114 am_cv_make_support_nested_variables=no 3115fi 3116fi 3117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3118$as_echo "$am_cv_make_support_nested_variables" >&6; } 3119if test $am_cv_make_support_nested_variables = yes; then 3120 AM_V='$(V)' 3121 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3122else 3123 AM_V=$AM_DEFAULT_VERBOSITY 3124 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3125fi 3126AM_BACKSLASH='\' 3127 3128if test "`cd $srcdir && pwd`" != "`pwd`"; then 3129 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3130 # is not polluted with repeated "-I." 3131 am__isrc=' -I$(srcdir)' 3132 # test to see if srcdir already configured 3133 if test -f $srcdir/config.status; then 3134 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3135 fi 3136fi 3137 3138# test whether we have cygpath 3139if test -z "$CYGPATH_W"; then 3140 if (cygpath --version) >/dev/null 2>/dev/null; then 3141 CYGPATH_W='cygpath -w' 3142 else 3143 CYGPATH_W=echo 3144 fi 3145fi 3146 3147 3148# Define the identity of the package. 3149 PACKAGE='libevent' 3150 VERSION='2.1.11-stable' 3151 3152 3153cat >>confdefs.h <<_ACEOF 3154#define PACKAGE "$PACKAGE" 3155_ACEOF 3156 3157 3158cat >>confdefs.h <<_ACEOF 3159#define VERSION "$VERSION" 3160_ACEOF 3161 3162# Some tools Automake needs. 3163 3164ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3165 3166 3167AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3168 3169 3170AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3171 3172 3173AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3174 3175 3176MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3177 3178# For better backward compatibility. To be removed once Automake 1.9.x 3179# dies out for good. For more background, see: 3180# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3181# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3182mkdir_p='$(MKDIR_P)' 3183 3184# We need awk for the "check" target (and possibly the TAP driver). The 3185# system "awk" is bad on some platforms. 3186# Always define AMTAR for backward compatibility. Yes, it's still used 3187# in the wild :-( We should find a proper way to deprecate it ... 3188AMTAR='$${TAR-tar}' 3189 3190 3191# We'll loop over all known methods to create a tar archive until one works. 3192_am_tools='gnutar pax cpio none' 3193 3194am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3195 3196 3197 3198 3199 3200 3201# POSIX will say in a future version that running "rm -f" with no argument 3202# is OK; and we want to be able to make that assumption in our Makefile 3203# recipes. So use an aggressive probe to check that the usage we want is 3204# actually supported "in the wild" to an acceptable degree. 3205# See automake bug#10828. 3206# To make any issue more visible, cause the running configure to be aborted 3207# by default if the 'rm' program in use doesn't match our expectations; the 3208# user can still override this though. 3209if rm -f && rm -fr && rm -rf; then : OK; else 3210 cat >&2 <<'END' 3211Oops! 3212 3213Your 'rm' program seems unable to run without file operands specified 3214on the command line, even when the '-f' option is present. This is contrary 3215to the behaviour of most rm programs out there, and not conforming with 3216the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3217 3218Please tell bug-automake@gnu.org about your system, including the value 3219of your $PATH and any error possibly output before this message. This 3220can help us improve future automake versions. 3221 3222END 3223 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3224 echo 'Configuration will proceed anyway, since you have set the' >&2 3225 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3226 echo >&2 3227 else 3228 cat >&2 <<'END' 3229Aborting the configuration process, to ensure you take notice of the issue. 3230 3231You can download and install GNU coreutils to get an 'rm' implementation 3232that behaves properly: <https://www.gnu.org/software/coreutils/>. 3233 3234If you want to complete the configuration process using your problematic 3235'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3236to "yes", and re-run configure. 3237 3238END 3239 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3240 fi 3241fi 3242 3243# Check whether --enable-silent-rules was given. 3244if test "${enable_silent_rules+set}" = set; then : 3245 enableval=$enable_silent_rules; 3246fi 3247 3248case $enable_silent_rules in # ((( 3249 yes) AM_DEFAULT_VERBOSITY=0;; 3250 no) AM_DEFAULT_VERBOSITY=1;; 3251 *) AM_DEFAULT_VERBOSITY=0;; 3252esac 3253am_make=${MAKE-make} 3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3255$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3256if ${am_cv_make_support_nested_variables+:} false; then : 3257 $as_echo_n "(cached) " >&6 3258else 3259 if $as_echo 'TRUE=$(BAR$(V)) 3260BAR0=false 3261BAR1=true 3262V=1 3263am__doit: 3264 @$(TRUE) 3265.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3266 am_cv_make_support_nested_variables=yes 3267else 3268 am_cv_make_support_nested_variables=no 3269fi 3270fi 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3272$as_echo "$am_cv_make_support_nested_variables" >&6; } 3273if test $am_cv_make_support_nested_variables = yes; then 3274 AM_V='$(V)' 3275 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3276else 3277 AM_V=$AM_DEFAULT_VERBOSITY 3278 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3279fi 3280AM_BACKSLASH='\' 3281 3282ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in" 3283 3284 3285$as_echo "#define NUMERIC_VERSION 0x02010b00" >>confdefs.h 3286 3287 3288if test "$prefix" = "NONE"; then 3289 prefix="/usr/local" 3290fi 3291 3292 3293DEPDIR="${am__leading_dot}deps" 3294 3295ac_config_commands="$ac_config_commands depfiles" 3296 3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3298$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3299cat > confinc.mk << 'END' 3300am__doit: 3301 @echo this is the am__doit target >confinc.out 3302.PHONY: am__doit 3303END 3304am__include="#" 3305am__quote= 3306# BSD make does it like this. 3307echo '.include "confinc.mk" # ignored' > confmf.BSD 3308# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3309echo 'include confinc.mk # ignored' > confmf.GNU 3310_am_result=no 3311for s in GNU BSD; do 3312 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3313 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3314 ac_status=$? 3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3316 (exit $ac_status); } 3317 case $?:`cat confinc.out 2>/dev/null` in #( 3318 '0:this is the am__doit target') : 3319 case $s in #( 3320 BSD) : 3321 am__include='.include' am__quote='"' ;; #( 3322 *) : 3323 am__include='include' am__quote='' ;; 3324esac ;; #( 3325 *) : 3326 ;; 3327esac 3328 if test "$am__include" != "#"; then 3329 _am_result="yes ($s style)" 3330 break 3331 fi 3332done 3333rm -f confinc.* confmf.* 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3335$as_echo "${_am_result}" >&6; } 3336 3337# Check whether --enable-dependency-tracking was given. 3338if test "${enable_dependency_tracking+set}" = set; then : 3339 enableval=$enable_dependency_tracking; 3340fi 3341 3342if test "x$enable_dependency_tracking" != xno; then 3343 am_depcomp="$ac_aux_dir/depcomp" 3344 AMDEPBACKSLASH='\' 3345 am__nodep='_no' 3346fi 3347 if test "x$enable_dependency_tracking" != xno; then 3348 AMDEP_TRUE= 3349 AMDEP_FALSE='#' 3350else 3351 AMDEP_TRUE='#' 3352 AMDEP_FALSE= 3353fi 3354 3355 3356ac_ext=c 3357ac_cpp='$CPP $CPPFLAGS' 3358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3360ac_compiler_gnu=$ac_cv_c_compiler_gnu 3361if test -n "$ac_tool_prefix"; then 3362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3363set dummy ${ac_tool_prefix}gcc; ac_word=$2 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3365$as_echo_n "checking for $ac_word... " >&6; } 3366if ${ac_cv_prog_CC+:} false; then : 3367 $as_echo_n "(cached) " >&6 3368else 3369 if test -n "$CC"; then 3370 ac_cv_prog_CC="$CC" # Let the user override the test. 3371else 3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3373for as_dir in $PATH 3374do 3375 IFS=$as_save_IFS 3376 test -z "$as_dir" && as_dir=. 3377 for ac_exec_ext in '' $ac_executable_extensions; do 3378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3379 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3381 break 2 3382 fi 3383done 3384 done 3385IFS=$as_save_IFS 3386 3387fi 3388fi 3389CC=$ac_cv_prog_CC 3390if test -n "$CC"; then 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3392$as_echo "$CC" >&6; } 3393else 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3395$as_echo "no" >&6; } 3396fi 3397 3398 3399fi 3400if test -z "$ac_cv_prog_CC"; then 3401 ac_ct_CC=$CC 3402 # Extract the first word of "gcc", so it can be a program name with args. 3403set dummy gcc; ac_word=$2 3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3405$as_echo_n "checking for $ac_word... " >&6; } 3406if ${ac_cv_prog_ac_ct_CC+:} false; then : 3407 $as_echo_n "(cached) " >&6 3408else 3409 if test -n "$ac_ct_CC"; then 3410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3411else 3412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3413for as_dir in $PATH 3414do 3415 IFS=$as_save_IFS 3416 test -z "$as_dir" && as_dir=. 3417 for ac_exec_ext in '' $ac_executable_extensions; do 3418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3419 ac_cv_prog_ac_ct_CC="gcc" 3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3421 break 2 3422 fi 3423done 3424 done 3425IFS=$as_save_IFS 3426 3427fi 3428fi 3429ac_ct_CC=$ac_cv_prog_ac_ct_CC 3430if test -n "$ac_ct_CC"; then 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3432$as_echo "$ac_ct_CC" >&6; } 3433else 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3435$as_echo "no" >&6; } 3436fi 3437 3438 if test "x$ac_ct_CC" = x; then 3439 CC="" 3440 else 3441 case $cross_compiling:$ac_tool_warned in 3442yes:) 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3445ac_tool_warned=yes ;; 3446esac 3447 CC=$ac_ct_CC 3448 fi 3449else 3450 CC="$ac_cv_prog_CC" 3451fi 3452 3453if test -z "$CC"; then 3454 if test -n "$ac_tool_prefix"; then 3455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3456set dummy ${ac_tool_prefix}cc; ac_word=$2 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3458$as_echo_n "checking for $ac_word... " >&6; } 3459if ${ac_cv_prog_CC+:} false; then : 3460 $as_echo_n "(cached) " >&6 3461else 3462 if test -n "$CC"; then 3463 ac_cv_prog_CC="$CC" # Let the user override the test. 3464else 3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3466for as_dir in $PATH 3467do 3468 IFS=$as_save_IFS 3469 test -z "$as_dir" && as_dir=. 3470 for ac_exec_ext in '' $ac_executable_extensions; do 3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3472 ac_cv_prog_CC="${ac_tool_prefix}cc" 3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3474 break 2 3475 fi 3476done 3477 done 3478IFS=$as_save_IFS 3479 3480fi 3481fi 3482CC=$ac_cv_prog_CC 3483if test -n "$CC"; then 3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3485$as_echo "$CC" >&6; } 3486else 3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3488$as_echo "no" >&6; } 3489fi 3490 3491 3492 fi 3493fi 3494if test -z "$CC"; then 3495 # Extract the first word of "cc", so it can be a program name with args. 3496set dummy cc; ac_word=$2 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3498$as_echo_n "checking for $ac_word... " >&6; } 3499if ${ac_cv_prog_CC+:} false; then : 3500 $as_echo_n "(cached) " >&6 3501else 3502 if test -n "$CC"; then 3503 ac_cv_prog_CC="$CC" # Let the user override the test. 3504else 3505 ac_prog_rejected=no 3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3507for as_dir in $PATH 3508do 3509 IFS=$as_save_IFS 3510 test -z "$as_dir" && as_dir=. 3511 for ac_exec_ext in '' $ac_executable_extensions; do 3512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3514 ac_prog_rejected=yes 3515 continue 3516 fi 3517 ac_cv_prog_CC="cc" 3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3519 break 2 3520 fi 3521done 3522 done 3523IFS=$as_save_IFS 3524 3525if test $ac_prog_rejected = yes; then 3526 # We found a bogon in the path, so make sure we never use it. 3527 set dummy $ac_cv_prog_CC 3528 shift 3529 if test $# != 0; then 3530 # We chose a different compiler from the bogus one. 3531 # However, it has the same basename, so the bogon will be chosen 3532 # first if we set CC to just the basename; use the full file name. 3533 shift 3534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3535 fi 3536fi 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 3549fi 3550if test -z "$CC"; then 3551 if test -n "$ac_tool_prefix"; then 3552 for ac_prog in cl.exe 3553 do 3554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3555set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3557$as_echo_n "checking for $ac_word... " >&6; } 3558if ${ac_cv_prog_CC+:} false; then : 3559 $as_echo_n "(cached) " >&6 3560else 3561 if test -n "$CC"; then 3562 ac_cv_prog_CC="$CC" # Let the user override the test. 3563else 3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3565for as_dir in $PATH 3566do 3567 IFS=$as_save_IFS 3568 test -z "$as_dir" && as_dir=. 3569 for ac_exec_ext in '' $ac_executable_extensions; do 3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3573 break 2 3574 fi 3575done 3576 done 3577IFS=$as_save_IFS 3578 3579fi 3580fi 3581CC=$ac_cv_prog_CC 3582if test -n "$CC"; then 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3584$as_echo "$CC" >&6; } 3585else 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3587$as_echo "no" >&6; } 3588fi 3589 3590 3591 test -n "$CC" && break 3592 done 3593fi 3594if test -z "$CC"; then 3595 ac_ct_CC=$CC 3596 for ac_prog in cl.exe 3597do 3598 # Extract the first word of "$ac_prog", so it can be a program name with args. 3599set dummy $ac_prog; ac_word=$2 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3601$as_echo_n "checking for $ac_word... " >&6; } 3602if ${ac_cv_prog_ac_ct_CC+:} false; then : 3603 $as_echo_n "(cached) " >&6 3604else 3605 if test -n "$ac_ct_CC"; then 3606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3607else 3608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3609for as_dir in $PATH 3610do 3611 IFS=$as_save_IFS 3612 test -z "$as_dir" && as_dir=. 3613 for ac_exec_ext in '' $ac_executable_extensions; do 3614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3615 ac_cv_prog_ac_ct_CC="$ac_prog" 3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3617 break 2 3618 fi 3619done 3620 done 3621IFS=$as_save_IFS 3622 3623fi 3624fi 3625ac_ct_CC=$ac_cv_prog_ac_ct_CC 3626if test -n "$ac_ct_CC"; then 3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3628$as_echo "$ac_ct_CC" >&6; } 3629else 3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3631$as_echo "no" >&6; } 3632fi 3633 3634 3635 test -n "$ac_ct_CC" && break 3636done 3637 3638 if test "x$ac_ct_CC" = x; then 3639 CC="" 3640 else 3641 case $cross_compiling:$ac_tool_warned in 3642yes:) 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3645ac_tool_warned=yes ;; 3646esac 3647 CC=$ac_ct_CC 3648 fi 3649fi 3650 3651fi 3652 3653 3654test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3656as_fn_error $? "no acceptable C compiler found in \$PATH 3657See \`config.log' for more details" "$LINENO" 5; } 3658 3659# Provide some information about the compiler. 3660$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3661set X $ac_compile 3662ac_compiler=$2 3663for ac_option in --version -v -V -qversion; do 3664 { { ac_try="$ac_compiler $ac_option >&5" 3665case "(($ac_try" in 3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3667 *) ac_try_echo=$ac_try;; 3668esac 3669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3670$as_echo "$ac_try_echo"; } >&5 3671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3672 ac_status=$? 3673 if test -s conftest.err; then 3674 sed '10a\ 3675... rest of stderr output deleted ... 3676 10q' conftest.err >conftest.er1 3677 cat conftest.er1 >&5 3678 fi 3679 rm -f conftest.er1 conftest.err 3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3681 test $ac_status = 0; } 3682done 3683 3684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3685/* end confdefs.h. */ 3686 3687int 3688main () 3689{ 3690 3691 ; 3692 return 0; 3693} 3694_ACEOF 3695ac_clean_files_save=$ac_clean_files 3696ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3697# Try to create an executable without -o first, disregard a.out. 3698# It will help us diagnose broken compilers, and finding out an intuition 3699# of exeext. 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3701$as_echo_n "checking whether the C compiler works... " >&6; } 3702ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3703 3704# The possible output files: 3705ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3706 3707ac_rmfiles= 3708for ac_file in $ac_files 3709do 3710 case $ac_file in 3711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3712 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3713 esac 3714done 3715rm -f $ac_rmfiles 3716 3717if { { ac_try="$ac_link_default" 3718case "(($ac_try" in 3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3720 *) ac_try_echo=$ac_try;; 3721esac 3722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3723$as_echo "$ac_try_echo"; } >&5 3724 (eval "$ac_link_default") 2>&5 3725 ac_status=$? 3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3727 test $ac_status = 0; }; then : 3728 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3729# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3730# in a Makefile. We should not override ac_cv_exeext if it was cached, 3731# so that the user can short-circuit this test for compilers unknown to 3732# Autoconf. 3733for ac_file in $ac_files '' 3734do 3735 test -f "$ac_file" || continue 3736 case $ac_file in 3737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3738 ;; 3739 [ab].out ) 3740 # We found the default executable, but exeext='' is most 3741 # certainly right. 3742 break;; 3743 *.* ) 3744 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3745 then :; else 3746 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3747 fi 3748 # We set ac_cv_exeext here because the later test for it is not 3749 # safe: cross compilers may not add the suffix if given an `-o' 3750 # argument, so we may need to know it at that point already. 3751 # Even if this section looks crufty: it has the advantage of 3752 # actually working. 3753 break;; 3754 * ) 3755 break;; 3756 esac 3757done 3758test "$ac_cv_exeext" = no && ac_cv_exeext= 3759 3760else 3761 ac_file='' 3762fi 3763if test -z "$ac_file"; then : 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3765$as_echo "no" >&6; } 3766$as_echo "$as_me: failed program was:" >&5 3767sed 's/^/| /' conftest.$ac_ext >&5 3768 3769{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3771as_fn_error 77 "C compiler cannot create executables 3772See \`config.log' for more details" "$LINENO" 5; } 3773else 3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3775$as_echo "yes" >&6; } 3776fi 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3778$as_echo_n "checking for C compiler default output file name... " >&6; } 3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3780$as_echo "$ac_file" >&6; } 3781ac_exeext=$ac_cv_exeext 3782 3783rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3784ac_clean_files=$ac_clean_files_save 3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3786$as_echo_n "checking for suffix of executables... " >&6; } 3787if { { ac_try="$ac_link" 3788case "(($ac_try" in 3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3790 *) ac_try_echo=$ac_try;; 3791esac 3792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3793$as_echo "$ac_try_echo"; } >&5 3794 (eval "$ac_link") 2>&5 3795 ac_status=$? 3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3797 test $ac_status = 0; }; then : 3798 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3799# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3800# work properly (i.e., refer to `conftest.exe'), while it won't with 3801# `rm'. 3802for ac_file in conftest.exe conftest conftest.*; do 3803 test -f "$ac_file" || continue 3804 case $ac_file in 3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3806 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3807 break;; 3808 * ) break;; 3809 esac 3810done 3811else 3812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3814as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3815See \`config.log' for more details" "$LINENO" 5; } 3816fi 3817rm -f conftest conftest$ac_cv_exeext 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3819$as_echo "$ac_cv_exeext" >&6; } 3820 3821rm -f conftest.$ac_ext 3822EXEEXT=$ac_cv_exeext 3823ac_exeext=$EXEEXT 3824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3825/* end confdefs.h. */ 3826#include <stdio.h> 3827int 3828main () 3829{ 3830FILE *f = fopen ("conftest.out", "w"); 3831 return ferror (f) || fclose (f) != 0; 3832 3833 ; 3834 return 0; 3835} 3836_ACEOF 3837ac_clean_files="$ac_clean_files conftest.out" 3838# Check that the compiler produces executables we can run. If not, either 3839# the compiler is broken, or we cross compile. 3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3841$as_echo_n "checking whether we are cross compiling... " >&6; } 3842if test "$cross_compiling" != yes; then 3843 { { ac_try="$ac_link" 3844case "(($ac_try" in 3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3846 *) ac_try_echo=$ac_try;; 3847esac 3848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3849$as_echo "$ac_try_echo"; } >&5 3850 (eval "$ac_link") 2>&5 3851 ac_status=$? 3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3853 test $ac_status = 0; } 3854 if { ac_try='./conftest$ac_cv_exeext' 3855 { { case "(($ac_try" in 3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3857 *) ac_try_echo=$ac_try;; 3858esac 3859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3860$as_echo "$ac_try_echo"; } >&5 3861 (eval "$ac_try") 2>&5 3862 ac_status=$? 3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3864 test $ac_status = 0; }; }; then 3865 cross_compiling=no 3866 else 3867 if test "$cross_compiling" = maybe; then 3868 cross_compiling=yes 3869 else 3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3872as_fn_error $? "cannot run C compiled programs. 3873If you meant to cross compile, use \`--host'. 3874See \`config.log' for more details" "$LINENO" 5; } 3875 fi 3876 fi 3877fi 3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3879$as_echo "$cross_compiling" >&6; } 3880 3881rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3882ac_clean_files=$ac_clean_files_save 3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3884$as_echo_n "checking for suffix of object files... " >&6; } 3885if ${ac_cv_objext+:} false; then : 3886 $as_echo_n "(cached) " >&6 3887else 3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3889/* end confdefs.h. */ 3890 3891int 3892main () 3893{ 3894 3895 ; 3896 return 0; 3897} 3898_ACEOF 3899rm -f conftest.o conftest.obj 3900if { { ac_try="$ac_compile" 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_compile") 2>&5 3908 ac_status=$? 3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3910 test $ac_status = 0; }; then : 3911 for ac_file in conftest.o conftest.obj conftest.*; do 3912 test -f "$ac_file" || continue; 3913 case $ac_file in 3914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3915 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3916 break;; 3917 esac 3918done 3919else 3920 $as_echo "$as_me: failed program was:" >&5 3921sed 's/^/| /' conftest.$ac_ext >&5 3922 3923{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3925as_fn_error $? "cannot compute suffix of object files: cannot compile 3926See \`config.log' for more details" "$LINENO" 5; } 3927fi 3928rm -f conftest.$ac_cv_objext conftest.$ac_ext 3929fi 3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3931$as_echo "$ac_cv_objext" >&6; } 3932OBJEXT=$ac_cv_objext 3933ac_objext=$OBJEXT 3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3935$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3936if ${ac_cv_c_compiler_gnu+:} false; then : 3937 $as_echo_n "(cached) " >&6 3938else 3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3940/* end confdefs.h. */ 3941 3942int 3943main () 3944{ 3945#ifndef __GNUC__ 3946 choke me 3947#endif 3948 3949 ; 3950 return 0; 3951} 3952_ACEOF 3953if ac_fn_c_try_compile "$LINENO"; then : 3954 ac_compiler_gnu=yes 3955else 3956 ac_compiler_gnu=no 3957fi 3958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3959ac_cv_c_compiler_gnu=$ac_compiler_gnu 3960 3961fi 3962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3963$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3964if test $ac_compiler_gnu = yes; then 3965 GCC=yes 3966else 3967 GCC= 3968fi 3969ac_test_CFLAGS=${CFLAGS+set} 3970ac_save_CFLAGS=$CFLAGS 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3972$as_echo_n "checking whether $CC accepts -g... " >&6; } 3973if ${ac_cv_prog_cc_g+:} false; then : 3974 $as_echo_n "(cached) " >&6 3975else 3976 ac_save_c_werror_flag=$ac_c_werror_flag 3977 ac_c_werror_flag=yes 3978 ac_cv_prog_cc_g=no 3979 CFLAGS="-g" 3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3981/* end confdefs.h. */ 3982 3983int 3984main () 3985{ 3986 3987 ; 3988 return 0; 3989} 3990_ACEOF 3991if ac_fn_c_try_compile "$LINENO"; then : 3992 ac_cv_prog_cc_g=yes 3993else 3994 CFLAGS="" 3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3996/* end confdefs.h. */ 3997 3998int 3999main () 4000{ 4001 4002 ; 4003 return 0; 4004} 4005_ACEOF 4006if ac_fn_c_try_compile "$LINENO"; then : 4007 4008else 4009 ac_c_werror_flag=$ac_save_c_werror_flag 4010 CFLAGS="-g" 4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4012/* end confdefs.h. */ 4013 4014int 4015main () 4016{ 4017 4018 ; 4019 return 0; 4020} 4021_ACEOF 4022if ac_fn_c_try_compile "$LINENO"; then : 4023 ac_cv_prog_cc_g=yes 4024fi 4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4026fi 4027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4028fi 4029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4030 ac_c_werror_flag=$ac_save_c_werror_flag 4031fi 4032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4033$as_echo "$ac_cv_prog_cc_g" >&6; } 4034if test "$ac_test_CFLAGS" = set; then 4035 CFLAGS=$ac_save_CFLAGS 4036elif test $ac_cv_prog_cc_g = yes; then 4037 if test "$GCC" = yes; then 4038 CFLAGS="-g -O2" 4039 else 4040 CFLAGS="-g" 4041 fi 4042else 4043 if test "$GCC" = yes; then 4044 CFLAGS="-O2" 4045 else 4046 CFLAGS= 4047 fi 4048fi 4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4050$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4051if ${ac_cv_prog_cc_c89+:} false; then : 4052 $as_echo_n "(cached) " >&6 4053else 4054 ac_cv_prog_cc_c89=no 4055ac_save_CC=$CC 4056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4057/* end confdefs.h. */ 4058#include <stdarg.h> 4059#include <stdio.h> 4060struct stat; 4061/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4062struct buf { int x; }; 4063FILE * (*rcsopen) (struct buf *, struct stat *, int); 4064static char *e (p, i) 4065 char **p; 4066 int i; 4067{ 4068 return p[i]; 4069} 4070static char *f (char * (*g) (char **, int), char **p, ...) 4071{ 4072 char *s; 4073 va_list v; 4074 va_start (v,p); 4075 s = g (p, va_arg (v,int)); 4076 va_end (v); 4077 return s; 4078} 4079 4080/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4081 function prototypes and stuff, but not '\xHH' hex character constants. 4082 These don't provoke an error unfortunately, instead are silently treated 4083 as 'x'. The following induces an error, until -std is added to get 4084 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4085 array size at least. It's necessary to write '\x00'==0 to get something 4086 that's true only with -std. */ 4087int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4088 4089/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4090 inside strings and character constants. */ 4091#define FOO(x) 'x' 4092int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4093 4094int test (int i, double x); 4095struct s1 {int (*f) (int a);}; 4096struct s2 {int (*f) (double a);}; 4097int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4098int argc; 4099char **argv; 4100int 4101main () 4102{ 4103return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4104 ; 4105 return 0; 4106} 4107_ACEOF 4108for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4109 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4110do 4111 CC="$ac_save_CC $ac_arg" 4112 if ac_fn_c_try_compile "$LINENO"; then : 4113 ac_cv_prog_cc_c89=$ac_arg 4114fi 4115rm -f core conftest.err conftest.$ac_objext 4116 test "x$ac_cv_prog_cc_c89" != "xno" && break 4117done 4118rm -f conftest.$ac_ext 4119CC=$ac_save_CC 4120 4121fi 4122# AC_CACHE_VAL 4123case "x$ac_cv_prog_cc_c89" in 4124 x) 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4126$as_echo "none needed" >&6; } ;; 4127 xno) 4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4129$as_echo "unsupported" >&6; } ;; 4130 *) 4131 CC="$CC $ac_cv_prog_cc_c89" 4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4133$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4134esac 4135if test "x$ac_cv_prog_cc_c89" != xno; then : 4136 4137fi 4138 4139ac_ext=c 4140ac_cpp='$CPP $CPPFLAGS' 4141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4143ac_compiler_gnu=$ac_cv_c_compiler_gnu 4144 4145ac_ext=c 4146ac_cpp='$CPP $CPPFLAGS' 4147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4149ac_compiler_gnu=$ac_cv_c_compiler_gnu 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4151$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4152if ${am_cv_prog_cc_c_o+:} false; then : 4153 $as_echo_n "(cached) " >&6 4154else 4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4156/* end confdefs.h. */ 4157 4158int 4159main () 4160{ 4161 4162 ; 4163 return 0; 4164} 4165_ACEOF 4166 # Make sure it works both with $CC and with simple cc. 4167 # Following AC_PROG_CC_C_O, we do the test twice because some 4168 # compilers refuse to overwrite an existing .o file with -o, 4169 # though they will create one. 4170 am_cv_prog_cc_c_o=yes 4171 for am_i in 1 2; do 4172 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4173 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4174 ac_status=$? 4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4176 (exit $ac_status); } \ 4177 && test -f conftest2.$ac_objext; then 4178 : OK 4179 else 4180 am_cv_prog_cc_c_o=no 4181 break 4182 fi 4183 done 4184 rm -f core conftest* 4185 unset am_i 4186fi 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4188$as_echo "$am_cv_prog_cc_c_o" >&6; } 4189if test "$am_cv_prog_cc_c_o" != yes; then 4190 # Losing compiler, so override with the script. 4191 # FIXME: It is wrong to rewrite CC. 4192 # But if we don't then we get into trouble of one sort or another. 4193 # A longer-term fix would be to have automake use am__CC in this case, 4194 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4195 CC="$am_aux_dir/compile $CC" 4196fi 4197ac_ext=c 4198ac_cpp='$CPP $CPPFLAGS' 4199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4201ac_compiler_gnu=$ac_cv_c_compiler_gnu 4202 4203 4204depcc="$CC" am_compiler_list= 4205 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4207$as_echo_n "checking dependency style of $depcc... " >&6; } 4208if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4209 $as_echo_n "(cached) " >&6 4210else 4211 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4212 # We make a subdir and do the tests there. Otherwise we can end up 4213 # making bogus files that we don't know about and never remove. For 4214 # instance it was reported that on HP-UX the gcc test will end up 4215 # making a dummy file named 'D' -- because '-MD' means "put the output 4216 # in D". 4217 rm -rf conftest.dir 4218 mkdir conftest.dir 4219 # Copy depcomp to subdir because otherwise we won't find it if we're 4220 # using a relative directory. 4221 cp "$am_depcomp" conftest.dir 4222 cd conftest.dir 4223 # We will build objects and dependencies in a subdirectory because 4224 # it helps to detect inapplicable dependency modes. For instance 4225 # both Tru64's cc and ICC support -MD to output dependencies as a 4226 # side effect of compilation, but ICC will put the dependencies in 4227 # the current directory while Tru64 will put them in the object 4228 # directory. 4229 mkdir sub 4230 4231 am_cv_CC_dependencies_compiler_type=none 4232 if test "$am_compiler_list" = ""; then 4233 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4234 fi 4235 am__universal=false 4236 case " $depcc " in #( 4237 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4238 esac 4239 4240 for depmode in $am_compiler_list; do 4241 # Setup a source with many dependencies, because some compilers 4242 # like to wrap large dependency lists on column 80 (with \), and 4243 # we should not choose a depcomp mode which is confused by this. 4244 # 4245 # We need to recreate these files for each test, as the compiler may 4246 # overwrite some of them when testing with obscure command lines. 4247 # This happens at least with the AIX C compiler. 4248 : > sub/conftest.c 4249 for i in 1 2 3 4 5 6; do 4250 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4251 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4252 # Solaris 10 /bin/sh. 4253 echo '/* dummy */' > sub/conftst$i.h 4254 done 4255 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4256 4257 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4258 # mode. It turns out that the SunPro C++ compiler does not properly 4259 # handle '-M -o', and we need to detect this. Also, some Intel 4260 # versions had trouble with output in subdirs. 4261 am__obj=sub/conftest.${OBJEXT-o} 4262 am__minus_obj="-o $am__obj" 4263 case $depmode in 4264 gcc) 4265 # This depmode causes a compiler race in universal mode. 4266 test "$am__universal" = false || continue 4267 ;; 4268 nosideeffect) 4269 # After this tag, mechanisms are not by side-effect, so they'll 4270 # only be used when explicitly requested. 4271 if test "x$enable_dependency_tracking" = xyes; then 4272 continue 4273 else 4274 break 4275 fi 4276 ;; 4277 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4278 # This compiler won't grok '-c -o', but also, the minuso test has 4279 # not run yet. These depmodes are late enough in the game, and 4280 # so weak that their functioning should not be impacted. 4281 am__obj=conftest.${OBJEXT-o} 4282 am__minus_obj= 4283 ;; 4284 none) break ;; 4285 esac 4286 if depmode=$depmode \ 4287 source=sub/conftest.c object=$am__obj \ 4288 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4289 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4290 >/dev/null 2>conftest.err && 4291 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4292 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4293 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4294 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4295 # icc doesn't choke on unknown options, it will just issue warnings 4296 # or remarks (even with -Werror). So we grep stderr for any message 4297 # that says an option was ignored or not supported. 4298 # When given -MP, icc 7.0 and 7.1 complain thusly: 4299 # icc: Command line warning: ignoring option '-M'; no argument required 4300 # The diagnosis changed in icc 8.0: 4301 # icc: Command line remark: option '-MP' not supported 4302 if (grep 'ignoring option' conftest.err || 4303 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4304 am_cv_CC_dependencies_compiler_type=$depmode 4305 break 4306 fi 4307 fi 4308 done 4309 4310 cd .. 4311 rm -rf conftest.dir 4312else 4313 am_cv_CC_dependencies_compiler_type=none 4314fi 4315 4316fi 4317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4318$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4319CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4320 4321 if 4322 test "x$enable_dependency_tracking" != xno \ 4323 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4324 am__fastdepCC_TRUE= 4325 am__fastdepCC_FALSE='#' 4326else 4327 am__fastdepCC_TRUE='#' 4328 am__fastdepCC_FALSE= 4329fi 4330 4331 4332 4333ac_ext=c 4334ac_cpp='$CPP $CPPFLAGS' 4335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4337ac_compiler_gnu=$ac_cv_c_compiler_gnu 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4339$as_echo_n "checking how to run the C preprocessor... " >&6; } 4340# On Suns, sometimes $CPP names a directory. 4341if test -n "$CPP" && test -d "$CPP"; then 4342 CPP= 4343fi 4344if test -z "$CPP"; then 4345 if ${ac_cv_prog_CPP+:} false; then : 4346 $as_echo_n "(cached) " >&6 4347else 4348 # Double quotes because CPP needs to be expanded 4349 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4350 do 4351 ac_preproc_ok=false 4352for ac_c_preproc_warn_flag in '' yes 4353do 4354 # Use a header file that comes with gcc, so configuring glibc 4355 # with a fresh cross-compiler works. 4356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4357 # <limits.h> exists even on freestanding compilers. 4358 # On the NeXT, cc -E runs the code through the compiler's parser, 4359 # not just through cpp. "Syntax error" is here to catch this case. 4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4361/* end confdefs.h. */ 4362#ifdef __STDC__ 4363# include <limits.h> 4364#else 4365# include <assert.h> 4366#endif 4367 Syntax error 4368_ACEOF 4369if ac_fn_c_try_cpp "$LINENO"; then : 4370 4371else 4372 # Broken: fails on valid input. 4373continue 4374fi 4375rm -f conftest.err conftest.i conftest.$ac_ext 4376 4377 # OK, works on sane cases. Now check whether nonexistent headers 4378 # can be detected and how. 4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4380/* end confdefs.h. */ 4381#include <ac_nonexistent.h> 4382_ACEOF 4383if ac_fn_c_try_cpp "$LINENO"; then : 4384 # Broken: success on invalid input. 4385continue 4386else 4387 # Passes both tests. 4388ac_preproc_ok=: 4389break 4390fi 4391rm -f conftest.err conftest.i conftest.$ac_ext 4392 4393done 4394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4395rm -f conftest.i conftest.err conftest.$ac_ext 4396if $ac_preproc_ok; then : 4397 break 4398fi 4399 4400 done 4401 ac_cv_prog_CPP=$CPP 4402 4403fi 4404 CPP=$ac_cv_prog_CPP 4405else 4406 ac_cv_prog_CPP=$CPP 4407fi 4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4409$as_echo "$CPP" >&6; } 4410ac_preproc_ok=false 4411for ac_c_preproc_warn_flag in '' yes 4412do 4413 # Use a header file that comes with gcc, so configuring glibc 4414 # with a fresh cross-compiler works. 4415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4416 # <limits.h> exists even on freestanding compilers. 4417 # On the NeXT, cc -E runs the code through the compiler's parser, 4418 # not just through cpp. "Syntax error" is here to catch this case. 4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4420/* end confdefs.h. */ 4421#ifdef __STDC__ 4422# include <limits.h> 4423#else 4424# include <assert.h> 4425#endif 4426 Syntax error 4427_ACEOF 4428if ac_fn_c_try_cpp "$LINENO"; then : 4429 4430else 4431 # Broken: fails on valid input. 4432continue 4433fi 4434rm -f conftest.err conftest.i conftest.$ac_ext 4435 4436 # OK, works on sane cases. Now check whether nonexistent headers 4437 # can be detected and how. 4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4439/* end confdefs.h. */ 4440#include <ac_nonexistent.h> 4441_ACEOF 4442if ac_fn_c_try_cpp "$LINENO"; then : 4443 # Broken: success on invalid input. 4444continue 4445else 4446 # Passes both tests. 4447ac_preproc_ok=: 4448break 4449fi 4450rm -f conftest.err conftest.i conftest.$ac_ext 4451 4452done 4453# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4454rm -f conftest.i conftest.err conftest.$ac_ext 4455if $ac_preproc_ok; then : 4456 4457else 4458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4460as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4461See \`config.log' for more details" "$LINENO" 5; } 4462fi 4463 4464ac_ext=c 4465ac_cpp='$CPP $CPPFLAGS' 4466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4468ac_compiler_gnu=$ac_cv_c_compiler_gnu 4469 4470 4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4472$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4473if ${ac_cv_path_GREP+:} false; then : 4474 $as_echo_n "(cached) " >&6 4475else 4476 if test -z "$GREP"; then 4477 ac_path_GREP_found=false 4478 # Loop through the user's path and test for each of PROGNAME-LIST 4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4480for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4481do 4482 IFS=$as_save_IFS 4483 test -z "$as_dir" && as_dir=. 4484 for ac_prog in grep ggrep; do 4485 for ac_exec_ext in '' $ac_executable_extensions; do 4486 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4487 as_fn_executable_p "$ac_path_GREP" || continue 4488# Check for GNU ac_path_GREP and select it if it is found. 4489 # Check for GNU $ac_path_GREP 4490case `"$ac_path_GREP" --version 2>&1` in 4491*GNU*) 4492 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4493*) 4494 ac_count=0 4495 $as_echo_n 0123456789 >"conftest.in" 4496 while : 4497 do 4498 cat "conftest.in" "conftest.in" >"conftest.tmp" 4499 mv "conftest.tmp" "conftest.in" 4500 cp "conftest.in" "conftest.nl" 4501 $as_echo 'GREP' >> "conftest.nl" 4502 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4504 as_fn_arith $ac_count + 1 && ac_count=$as_val 4505 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4506 # Best one so far, save it but keep looking for a better one 4507 ac_cv_path_GREP="$ac_path_GREP" 4508 ac_path_GREP_max=$ac_count 4509 fi 4510 # 10*(2^10) chars as input seems more than enough 4511 test $ac_count -gt 10 && break 4512 done 4513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4514esac 4515 4516 $ac_path_GREP_found && break 3 4517 done 4518 done 4519 done 4520IFS=$as_save_IFS 4521 if test -z "$ac_cv_path_GREP"; then 4522 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4523 fi 4524else 4525 ac_cv_path_GREP=$GREP 4526fi 4527 4528fi 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4530$as_echo "$ac_cv_path_GREP" >&6; } 4531 GREP="$ac_cv_path_GREP" 4532 4533 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4535$as_echo_n "checking for egrep... " >&6; } 4536if ${ac_cv_path_EGREP+:} false; then : 4537 $as_echo_n "(cached) " >&6 4538else 4539 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4540 then ac_cv_path_EGREP="$GREP -E" 4541 else 4542 if test -z "$EGREP"; then 4543 ac_path_EGREP_found=false 4544 # Loop through the user's path and test for each of PROGNAME-LIST 4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4546for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4547do 4548 IFS=$as_save_IFS 4549 test -z "$as_dir" && as_dir=. 4550 for ac_prog in egrep; do 4551 for ac_exec_ext in '' $ac_executable_extensions; do 4552 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4553 as_fn_executable_p "$ac_path_EGREP" || continue 4554# Check for GNU ac_path_EGREP and select it if it is found. 4555 # Check for GNU $ac_path_EGREP 4556case `"$ac_path_EGREP" --version 2>&1` in 4557*GNU*) 4558 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4559*) 4560 ac_count=0 4561 $as_echo_n 0123456789 >"conftest.in" 4562 while : 4563 do 4564 cat "conftest.in" "conftest.in" >"conftest.tmp" 4565 mv "conftest.tmp" "conftest.in" 4566 cp "conftest.in" "conftest.nl" 4567 $as_echo 'EGREP' >> "conftest.nl" 4568 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4570 as_fn_arith $ac_count + 1 && ac_count=$as_val 4571 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4572 # Best one so far, save it but keep looking for a better one 4573 ac_cv_path_EGREP="$ac_path_EGREP" 4574 ac_path_EGREP_max=$ac_count 4575 fi 4576 # 10*(2^10) chars as input seems more than enough 4577 test $ac_count -gt 10 && break 4578 done 4579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4580esac 4581 4582 $ac_path_EGREP_found && break 3 4583 done 4584 done 4585 done 4586IFS=$as_save_IFS 4587 if test -z "$ac_cv_path_EGREP"; then 4588 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4589 fi 4590else 4591 ac_cv_path_EGREP=$EGREP 4592fi 4593 4594 fi 4595fi 4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4597$as_echo "$ac_cv_path_EGREP" >&6; } 4598 EGREP="$ac_cv_path_EGREP" 4599 4600 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4602$as_echo_n "checking for ANSI C header files... " >&6; } 4603if ${ac_cv_header_stdc+:} false; then : 4604 $as_echo_n "(cached) " >&6 4605else 4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4607/* end confdefs.h. */ 4608#include <stdlib.h> 4609#include <stdarg.h> 4610#include <string.h> 4611#include <float.h> 4612 4613int 4614main () 4615{ 4616 4617 ; 4618 return 0; 4619} 4620_ACEOF 4621if ac_fn_c_try_compile "$LINENO"; then : 4622 ac_cv_header_stdc=yes 4623else 4624 ac_cv_header_stdc=no 4625fi 4626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4627 4628if test $ac_cv_header_stdc = yes; then 4629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4631/* end confdefs.h. */ 4632#include <string.h> 4633 4634_ACEOF 4635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4636 $EGREP "memchr" >/dev/null 2>&1; then : 4637 4638else 4639 ac_cv_header_stdc=no 4640fi 4641rm -f conftest* 4642 4643fi 4644 4645if test $ac_cv_header_stdc = yes; then 4646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4648/* end confdefs.h. */ 4649#include <stdlib.h> 4650 4651_ACEOF 4652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4653 $EGREP "free" >/dev/null 2>&1; then : 4654 4655else 4656 ac_cv_header_stdc=no 4657fi 4658rm -f conftest* 4659 4660fi 4661 4662if test $ac_cv_header_stdc = yes; then 4663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4664 if test "$cross_compiling" = yes; then : 4665 : 4666else 4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4668/* end confdefs.h. */ 4669#include <ctype.h> 4670#include <stdlib.h> 4671#if ((' ' & 0x0FF) == 0x020) 4672# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4673# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4674#else 4675# define ISLOWER(c) \ 4676 (('a' <= (c) && (c) <= 'i') \ 4677 || ('j' <= (c) && (c) <= 'r') \ 4678 || ('s' <= (c) && (c) <= 'z')) 4679# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4680#endif 4681 4682#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4683int 4684main () 4685{ 4686 int i; 4687 for (i = 0; i < 256; i++) 4688 if (XOR (islower (i), ISLOWER (i)) 4689 || toupper (i) != TOUPPER (i)) 4690 return 2; 4691 return 0; 4692} 4693_ACEOF 4694if ac_fn_c_try_run "$LINENO"; then : 4695 4696else 4697 ac_cv_header_stdc=no 4698fi 4699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4700 conftest.$ac_objext conftest.beam conftest.$ac_ext 4701fi 4702 4703fi 4704fi 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4706$as_echo "$ac_cv_header_stdc" >&6; } 4707if test $ac_cv_header_stdc = yes; then 4708 4709$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4710 4711fi 4712 4713# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4714for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4715 inttypes.h stdint.h unistd.h 4716do : 4717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4718ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4719" 4720if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4721 cat >>confdefs.h <<_ACEOF 4722#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4723_ACEOF 4724 4725fi 4726 4727done 4728 4729 4730 4731 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4732if test "x$ac_cv_header_minix_config_h" = xyes; then : 4733 MINIX=yes 4734else 4735 MINIX= 4736fi 4737 4738 4739 if test "$MINIX" = yes; then 4740 4741$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4742 4743 4744$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4745 4746 4747$as_echo "#define _MINIX 1" >>confdefs.h 4748 4749 fi 4750 4751 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4753$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4754if ${ac_cv_safe_to_define___extensions__+:} false; then : 4755 $as_echo_n "(cached) " >&6 4756else 4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4758/* end confdefs.h. */ 4759 4760# define __EXTENSIONS__ 1 4761 $ac_includes_default 4762int 4763main () 4764{ 4765 4766 ; 4767 return 0; 4768} 4769_ACEOF 4770if ac_fn_c_try_compile "$LINENO"; then : 4771 ac_cv_safe_to_define___extensions__=yes 4772else 4773 ac_cv_safe_to_define___extensions__=no 4774fi 4775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4776fi 4777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4778$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4779 test $ac_cv_safe_to_define___extensions__ = yes && 4780 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4781 4782 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4783 4784 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4785 4786 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4787 4788 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4789 4790 4791 4792 4793# Make sure we can run config.sub. 4794$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4795 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4796 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4798$as_echo_n "checking build system type... " >&6; } 4799if ${ac_cv_build+:} false; then : 4800 $as_echo_n "(cached) " >&6 4801else 4802 ac_build_alias=$build_alias 4803test "x$ac_build_alias" = x && 4804 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4805test "x$ac_build_alias" = x && 4806 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4807ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4808 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4809 4810fi 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4812$as_echo "$ac_cv_build" >&6; } 4813case $ac_cv_build in 4814*-*-*) ;; 4815*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4816esac 4817build=$ac_cv_build 4818ac_save_IFS=$IFS; IFS='-' 4819set x $ac_cv_build 4820shift 4821build_cpu=$1 4822build_vendor=$2 4823shift; shift 4824# Remember, the first character of IFS is used to create $*, 4825# except with old shells: 4826build_os=$* 4827IFS=$ac_save_IFS 4828case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4829 4830 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4832$as_echo_n "checking host system type... " >&6; } 4833if ${ac_cv_host+:} false; then : 4834 $as_echo_n "(cached) " >&6 4835else 4836 if test "x$host_alias" = x; then 4837 ac_cv_host=$ac_cv_build 4838else 4839 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4840 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4841fi 4842 4843fi 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4845$as_echo "$ac_cv_host" >&6; } 4846case $ac_cv_host in 4847*-*-*) ;; 4848*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4849esac 4850host=$ac_cv_host 4851ac_save_IFS=$IFS; IFS='-' 4852set x $ac_cv_host 4853shift 4854host_cpu=$1 4855host_vendor=$2 4856shift; shift 4857# Remember, the first character of IFS is used to create $*, 4858# except with old shells: 4859host_os=$* 4860IFS=$ac_save_IFS 4861case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4862 4863 4864 4865#case "$host_os" in 4866# 4867# osf5*) 4868# CFLAGS="$CFLAGS -D_OSF_SOURCE" 4869# ;; 4870#esac 4871 4872 4873 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4875$as_echo_n "checking whether ln -s works... " >&6; } 4876LN_S=$as_ln_s 4877if test "$LN_S" = "ln -s"; then 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4879$as_echo "yes" >&6; } 4880else 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4882$as_echo "no, using $LN_S" >&6; } 4883fi 4884 4885# AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE 4886 4887# AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older 4888# versions 4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4890$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4891if ${ac_cv_path_SED+:} false; then : 4892 $as_echo_n "(cached) " >&6 4893else 4894 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4895 for ac_i in 1 2 3 4 5 6 7; do 4896 ac_script="$ac_script$as_nl$ac_script" 4897 done 4898 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4899 { ac_script=; unset ac_script;} 4900 if test -z "$SED"; then 4901 ac_path_SED_found=false 4902 # Loop through the user's path and test for each of PROGNAME-LIST 4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4904for as_dir in $PATH 4905do 4906 IFS=$as_save_IFS 4907 test -z "$as_dir" && as_dir=. 4908 for ac_prog in sed gsed; do 4909 for ac_exec_ext in '' $ac_executable_extensions; do 4910 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4911 as_fn_executable_p "$ac_path_SED" || continue 4912# Check for GNU ac_path_SED and select it if it is found. 4913 # Check for GNU $ac_path_SED 4914case `"$ac_path_SED" --version 2>&1` in 4915*GNU*) 4916 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4917*) 4918 ac_count=0 4919 $as_echo_n 0123456789 >"conftest.in" 4920 while : 4921 do 4922 cat "conftest.in" "conftest.in" >"conftest.tmp" 4923 mv "conftest.tmp" "conftest.in" 4924 cp "conftest.in" "conftest.nl" 4925 $as_echo '' >> "conftest.nl" 4926 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4928 as_fn_arith $ac_count + 1 && ac_count=$as_val 4929 if test $ac_count -gt ${ac_path_SED_max-0}; then 4930 # Best one so far, save it but keep looking for a better one 4931 ac_cv_path_SED="$ac_path_SED" 4932 ac_path_SED_max=$ac_count 4933 fi 4934 # 10*(2^10) chars as input seems more than enough 4935 test $ac_count -gt 10 && break 4936 done 4937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4938esac 4939 4940 $ac_path_SED_found && break 3 4941 done 4942 done 4943 done 4944IFS=$as_save_IFS 4945 if test -z "$ac_cv_path_SED"; then 4946 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4947 fi 4948else 4949 ac_cv_path_SED=$SED 4950fi 4951 4952fi 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4954$as_echo "$ac_cv_path_SED" >&6; } 4955 SED="$ac_cv_path_SED" 4956 rm -f conftest.sed 4957 4958 4959if test $ac_cv_c_compiler_gnu = yes; then 4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 4961$as_echo_n "checking whether $CC needs -traditional... " >&6; } 4962if ${ac_cv_prog_gcc_traditional+:} false; then : 4963 $as_echo_n "(cached) " >&6 4964else 4965 ac_pattern="Autoconf.*'x'" 4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4967/* end confdefs.h. */ 4968#include <sgtty.h> 4969Autoconf TIOCGETP 4970_ACEOF 4971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4972 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4973 ac_cv_prog_gcc_traditional=yes 4974else 4975 ac_cv_prog_gcc_traditional=no 4976fi 4977rm -f conftest* 4978 4979 4980 if test $ac_cv_prog_gcc_traditional = no; then 4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4982/* end confdefs.h. */ 4983#include <termio.h> 4984Autoconf TCGETA 4985_ACEOF 4986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4987 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4988 ac_cv_prog_gcc_traditional=yes 4989fi 4990rm -f conftest* 4991 4992 fi 4993fi 4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 4995$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 4996 if test $ac_cv_prog_gcc_traditional = yes; then 4997 CC="$CC -traditional" 4998 fi 4999fi 5000 5001 5002# We need to test for at least gcc 2.95 here, because older versions don't 5003# have -fno-strict-aliasing 5004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5005/* end confdefs.h. */ 5006 5007int 5008main () 5009{ 5010 5011#if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95) 5012#error 5013#endif 5014 ; 5015 return 0; 5016} 5017_ACEOF 5018if ac_fn_c_try_compile "$LINENO"; then : 5019 have_gcc295=yes 5020else 5021 have_gcc295=no 5022fi 5023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5024 5025if test "$GCC" = "yes" ; then 5026 # Enable many gcc warnings by default... 5027 CFLAGS="$CFLAGS -Wall" 5028 # And disable the strict-aliasing optimization, since it breaks 5029 # our sockaddr-handling code in strange ways. 5030 if test x$have_gcc295 = xyes; then 5031 CFLAGS="$CFLAGS -fno-strict-aliasing" 5032 fi 5033fi 5034 5035# OS X Lion started deprecating the system openssl. Let's just disable 5036# all deprecation warnings on OS X; but do so only for gcc... 5037if test "$GCC" = "yes" ; then 5038 case "$host_os" in 5039 darwin*) 5040 CFLAGS="$CFLAGS -Wno-deprecated-declarations" 5041 ;; 5042 esac 5043fi 5044 5045# Check whether --enable-gcc-warnings was given. 5046if test "${enable_gcc_warnings+set}" = set; then : 5047 enableval=$enable_gcc_warnings; 5048fi 5049 5050 5051# Check whether --enable-gcc-hardening was given. 5052if test "${enable_gcc_hardening+set}" = set; then : 5053 enableval=$enable_gcc_hardening; if test x$enableval = xyes; then 5054 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all" 5055 CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector" 5056 CFLAGS="$CFLAGS --param ssp-buffer-size=1" 5057fi 5058fi 5059 5060 5061# Check whether --enable-thread-support was given. 5062if test "${enable_thread_support+set}" = set; then : 5063 enableval=$enable_thread_support; 5064else 5065 enable_thread_support=yes 5066fi 5067 5068# Check whether --enable-malloc-replacement was given. 5069if test "${enable_malloc_replacement+set}" = set; then : 5070 enableval=$enable_malloc_replacement; 5071else 5072 enable_malloc_replacement=yes 5073fi 5074 5075# Check whether --enable-openssl was given. 5076if test "${enable_openssl+set}" = set; then : 5077 enableval=$enable_openssl; 5078else 5079 enable_openssl=yes 5080fi 5081 5082# Check whether --enable-debug-mode was given. 5083if test "${enable_debug_mode+set}" = set; then : 5084 enableval=$enable_debug_mode; 5085else 5086 enable_debug_mode=yes 5087fi 5088 5089# Check whether --enable-libevent-install was given. 5090if test "${enable_libevent_install+set}" = set; then : 5091 enableval=$enable_libevent_install; 5092else 5093 enable_libevent_install=yes 5094fi 5095 5096# Check whether --enable-libevent-regress was given. 5097if test "${enable_libevent_regress+set}" = set; then : 5098 enableval=$enable_libevent_regress; 5099else 5100 enable_libevent_regress=yes 5101fi 5102 5103# Check whether --enable-samples was given. 5104if test "${enable_samples+set}" = set; then : 5105 enableval=$enable_samples; 5106else 5107 enable_samples=yes 5108fi 5109 5110# Check whether --enable-function-sections was given. 5111if test "${enable_function_sections+set}" = set; then : 5112 enableval=$enable_function_sections; 5113else 5114 enable_function_sections=no 5115fi 5116 5117# Check whether --enable-verbose-debug was given. 5118if test "${enable_verbose_debug+set}" = set; then : 5119 enableval=$enable_verbose_debug; 5120else 5121 enable_verbose_debug=no 5122fi 5123 5124# Check whether --enable-clock-gettime was given. 5125if test "${enable_clock_gettime+set}" = set; then : 5126 enableval=$enable_clock_gettime; 5127else 5128 enable_clock_gettime=yes 5129fi 5130 5131 5132 5133case `pwd` in 5134 *\ * | *\ *) 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5136$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5137esac 5138 5139 5140 5141macro_version='2.4.6.42-b88ce' 5142macro_revision='2.4.6.42' 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156ltmain=$ac_aux_dir/ltmain.sh 5157 5158# Backslashify metacharacters that are still active within 5159# double-quoted strings. 5160sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5161 5162# Same as above, but do not quote variable references. 5163double_quote_subst='s/\(["`\\]\)/\\\1/g' 5164 5165# Sed substitution to delay expansion of an escaped shell variable in a 5166# double_quote_subst'ed string. 5167delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5168 5169# Sed substitution to delay expansion of an escaped single quote. 5170delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5171 5172# Sed substitution to avoid accidental globbing in evaled expressions 5173no_glob_subst='s/\*/\\\*/g' 5174 5175ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5176ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5177ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5178 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5180$as_echo_n "checking how to print strings... " >&6; } 5181# Test print first, because it will be a builtin if present. 5182if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5183 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5184 ECHO='print -r --' 5185elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5186 ECHO='printf %s\n' 5187else 5188 # Use this function as a fallback that always works. 5189 func_fallback_echo () 5190 { 5191 eval 'cat <<_LTECHO_EOF 5192$1 5193_LTECHO_EOF' 5194 } 5195 ECHO='func_fallback_echo' 5196fi 5197 5198# func_echo_all arg... 5199# Invoke $ECHO with all args, space-separated. 5200func_echo_all () 5201{ 5202 $ECHO "" 5203} 5204 5205case $ECHO in 5206 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5207$as_echo "printf" >&6; } ;; 5208 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5209$as_echo "print -r" >&6; } ;; 5210 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5211$as_echo "cat" >&6; } ;; 5212esac 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5228$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5229if ${ac_cv_path_SED+:} false; then : 5230 $as_echo_n "(cached) " >&6 5231else 5232 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5233 for ac_i in 1 2 3 4 5 6 7; do 5234 ac_script="$ac_script$as_nl$ac_script" 5235 done 5236 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5237 { ac_script=; unset ac_script;} 5238 if test -z "$SED"; then 5239 ac_path_SED_found=false 5240 # Loop through the user's path and test for each of PROGNAME-LIST 5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5242for as_dir in $PATH 5243do 5244 IFS=$as_save_IFS 5245 test -z "$as_dir" && as_dir=. 5246 for ac_prog in sed gsed; do 5247 for ac_exec_ext in '' $ac_executable_extensions; do 5248 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5249 as_fn_executable_p "$ac_path_SED" || continue 5250# Check for GNU ac_path_SED and select it if it is found. 5251 # Check for GNU $ac_path_SED 5252case `"$ac_path_SED" --version 2>&1` in 5253*GNU*) 5254 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5255*) 5256 ac_count=0 5257 $as_echo_n 0123456789 >"conftest.in" 5258 while : 5259 do 5260 cat "conftest.in" "conftest.in" >"conftest.tmp" 5261 mv "conftest.tmp" "conftest.in" 5262 cp "conftest.in" "conftest.nl" 5263 $as_echo '' >> "conftest.nl" 5264 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5266 as_fn_arith $ac_count + 1 && ac_count=$as_val 5267 if test $ac_count -gt ${ac_path_SED_max-0}; then 5268 # Best one so far, save it but keep looking for a better one 5269 ac_cv_path_SED="$ac_path_SED" 5270 ac_path_SED_max=$ac_count 5271 fi 5272 # 10*(2^10) chars as input seems more than enough 5273 test $ac_count -gt 10 && break 5274 done 5275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5276esac 5277 5278 $ac_path_SED_found && break 3 5279 done 5280 done 5281 done 5282IFS=$as_save_IFS 5283 if test -z "$ac_cv_path_SED"; then 5284 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5285 fi 5286else 5287 ac_cv_path_SED=$SED 5288fi 5289 5290fi 5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5292$as_echo "$ac_cv_path_SED" >&6; } 5293 SED="$ac_cv_path_SED" 5294 rm -f conftest.sed 5295 5296test -z "$SED" && SED=sed 5297Xsed="$SED -e 1s/^X//" 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5310$as_echo_n "checking for fgrep... " >&6; } 5311if ${ac_cv_path_FGREP+:} false; then : 5312 $as_echo_n "(cached) " >&6 5313else 5314 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5315 then ac_cv_path_FGREP="$GREP -F" 5316 else 5317 if test -z "$FGREP"; then 5318 ac_path_FGREP_found=false 5319 # Loop through the user's path and test for each of PROGNAME-LIST 5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5321for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5322do 5323 IFS=$as_save_IFS 5324 test -z "$as_dir" && as_dir=. 5325 for ac_prog in fgrep; do 5326 for ac_exec_ext in '' $ac_executable_extensions; do 5327 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5328 as_fn_executable_p "$ac_path_FGREP" || continue 5329# Check for GNU ac_path_FGREP and select it if it is found. 5330 # Check for GNU $ac_path_FGREP 5331case `"$ac_path_FGREP" --version 2>&1` in 5332*GNU*) 5333 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5334*) 5335 ac_count=0 5336 $as_echo_n 0123456789 >"conftest.in" 5337 while : 5338 do 5339 cat "conftest.in" "conftest.in" >"conftest.tmp" 5340 mv "conftest.tmp" "conftest.in" 5341 cp "conftest.in" "conftest.nl" 5342 $as_echo 'FGREP' >> "conftest.nl" 5343 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5345 as_fn_arith $ac_count + 1 && ac_count=$as_val 5346 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5347 # Best one so far, save it but keep looking for a better one 5348 ac_cv_path_FGREP="$ac_path_FGREP" 5349 ac_path_FGREP_max=$ac_count 5350 fi 5351 # 10*(2^10) chars as input seems more than enough 5352 test $ac_count -gt 10 && break 5353 done 5354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5355esac 5356 5357 $ac_path_FGREP_found && break 3 5358 done 5359 done 5360 done 5361IFS=$as_save_IFS 5362 if test -z "$ac_cv_path_FGREP"; then 5363 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5364 fi 5365else 5366 ac_cv_path_FGREP=$FGREP 5367fi 5368 5369 fi 5370fi 5371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5372$as_echo "$ac_cv_path_FGREP" >&6; } 5373 FGREP="$ac_cv_path_FGREP" 5374 5375 5376test -z "$GREP" && GREP=grep 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396# Check whether --with-gnu-ld was given. 5397if test "${with_gnu_ld+set}" = set; then : 5398 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5399else 5400 with_gnu_ld=no 5401fi 5402 5403ac_prog=ld 5404if test yes = "$GCC"; then 5405 # Check if gcc -print-prog-name=ld gives a path. 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5407$as_echo_n "checking for ld used by $CC... " >&6; } 5408 case $host in 5409 *-*-mingw*) 5410 # gcc leaves a trailing carriage return, which upsets mingw 5411 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5412 *) 5413 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5414 esac 5415 case $ac_prog in 5416 # Accept absolute paths. 5417 [\\/]* | ?:[\\/]*) 5418 re_direlt='/[^/][^/]*/\.\./' 5419 # Canonicalize the pathname of ld 5420 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5421 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5422 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5423 done 5424 test -z "$LD" && LD=$ac_prog 5425 ;; 5426 "") 5427 # If it fails, then pretend we aren't using GCC. 5428 ac_prog=ld 5429 ;; 5430 *) 5431 # If it is relative, then search for the first ld in PATH. 5432 with_gnu_ld=unknown 5433 ;; 5434 esac 5435elif test yes = "$with_gnu_ld"; then 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5437$as_echo_n "checking for GNU ld... " >&6; } 5438else 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5440$as_echo_n "checking for non-GNU ld... " >&6; } 5441fi 5442if ${lt_cv_path_LD+:} false; then : 5443 $as_echo_n "(cached) " >&6 5444else 5445 if test -z "$LD"; then 5446 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5447 for ac_dir in $PATH; do 5448 IFS=$lt_save_ifs 5449 test -z "$ac_dir" && ac_dir=. 5450 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5451 lt_cv_path_LD=$ac_dir/$ac_prog 5452 # Check to see if the program is GNU ld. I'd rather use --version, 5453 # but apparently some variants of GNU ld only accept -v. 5454 # Break only if it was the GNU/non-GNU ld that we prefer. 5455 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5456 *GNU* | *'with BFD'*) 5457 test no != "$with_gnu_ld" && break 5458 ;; 5459 *) 5460 test yes != "$with_gnu_ld" && break 5461 ;; 5462 esac 5463 fi 5464 done 5465 IFS=$lt_save_ifs 5466else 5467 lt_cv_path_LD=$LD # Let the user override the test with a path. 5468fi 5469fi 5470 5471LD=$lt_cv_path_LD 5472if test -n "$LD"; then 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5474$as_echo "$LD" >&6; } 5475else 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5477$as_echo "no" >&6; } 5478fi 5479test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5481$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5482if ${lt_cv_prog_gnu_ld+:} false; then : 5483 $as_echo_n "(cached) " >&6 5484else 5485 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5486case `$LD -v 2>&1 </dev/null` in 5487*GNU* | *'with BFD'*) 5488 lt_cv_prog_gnu_ld=yes 5489 ;; 5490*) 5491 lt_cv_prog_gnu_ld=no 5492 ;; 5493esac 5494fi 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5496$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5497with_gnu_ld=$lt_cv_prog_gnu_ld 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5508$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5509if ${lt_cv_path_NM+:} false; then : 5510 $as_echo_n "(cached) " >&6 5511else 5512 if test -n "$NM"; then 5513 # Let the user override the test. 5514 lt_cv_path_NM=$NM 5515else 5516 lt_nm_to_check=${ac_tool_prefix}nm 5517 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5518 lt_nm_to_check="$lt_nm_to_check nm" 5519 fi 5520 for lt_tmp_nm in $lt_nm_to_check; do 5521 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5522 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5523 IFS=$lt_save_ifs 5524 test -z "$ac_dir" && ac_dir=. 5525 tmp_nm=$ac_dir/$lt_tmp_nm 5526 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5527 # Check to see if the nm accepts a BSD-compat flag. 5528 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5529 # nm: unknown option "B" ignored 5530 # Tru64's nm complains that /dev/null is an invalid object file 5531 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5532 case $build_os in 5533 mingw*) lt_bad_file=conftest.nm/nofile ;; 5534 *) lt_bad_file=/dev/null ;; 5535 esac 5536 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5537 *$lt_bad_file* | *'Invalid file or object type'*) 5538 lt_cv_path_NM="$tmp_nm -B" 5539 break 2 5540 ;; 5541 *) 5542 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5543 */dev/null*) 5544 lt_cv_path_NM="$tmp_nm -p" 5545 break 2 5546 ;; 5547 *) 5548 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5549 continue # so that we can try to find one that supports BSD flags 5550 ;; 5551 esac 5552 ;; 5553 esac 5554 fi 5555 done 5556 IFS=$lt_save_ifs 5557 done 5558 : ${lt_cv_path_NM=no} 5559fi 5560fi 5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5562$as_echo "$lt_cv_path_NM" >&6; } 5563if test no != "$lt_cv_path_NM"; then 5564 NM=$lt_cv_path_NM 5565else 5566 # Didn't find any BSD compatible name lister, look for dumpbin. 5567 if test -n "$DUMPBIN"; then : 5568 # Let the user override the test. 5569 else 5570 if test -n "$ac_tool_prefix"; then 5571 for ac_prog in dumpbin "link -dump" 5572 do 5573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5574set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5576$as_echo_n "checking for $ac_word... " >&6; } 5577if ${ac_cv_prog_DUMPBIN+:} false; then : 5578 $as_echo_n "(cached) " >&6 5579else 5580 if test -n "$DUMPBIN"; then 5581 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5582else 5583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5584for as_dir in $PATH 5585do 5586 IFS=$as_save_IFS 5587 test -z "$as_dir" && as_dir=. 5588 for ac_exec_ext in '' $ac_executable_extensions; do 5589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5590 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5592 break 2 5593 fi 5594done 5595 done 5596IFS=$as_save_IFS 5597 5598fi 5599fi 5600DUMPBIN=$ac_cv_prog_DUMPBIN 5601if test -n "$DUMPBIN"; then 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5603$as_echo "$DUMPBIN" >&6; } 5604else 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5606$as_echo "no" >&6; } 5607fi 5608 5609 5610 test -n "$DUMPBIN" && break 5611 done 5612fi 5613if test -z "$DUMPBIN"; then 5614 ac_ct_DUMPBIN=$DUMPBIN 5615 for ac_prog in dumpbin "link -dump" 5616do 5617 # Extract the first word of "$ac_prog", so it can be a program name with args. 5618set dummy $ac_prog; ac_word=$2 5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5620$as_echo_n "checking for $ac_word... " >&6; } 5621if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5622 $as_echo_n "(cached) " >&6 5623else 5624 if test -n "$ac_ct_DUMPBIN"; then 5625 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5626else 5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5628for as_dir in $PATH 5629do 5630 IFS=$as_save_IFS 5631 test -z "$as_dir" && as_dir=. 5632 for ac_exec_ext in '' $ac_executable_extensions; do 5633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5634 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5636 break 2 5637 fi 5638done 5639 done 5640IFS=$as_save_IFS 5641 5642fi 5643fi 5644ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5645if test -n "$ac_ct_DUMPBIN"; then 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5647$as_echo "$ac_ct_DUMPBIN" >&6; } 5648else 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5650$as_echo "no" >&6; } 5651fi 5652 5653 5654 test -n "$ac_ct_DUMPBIN" && break 5655done 5656 5657 if test "x$ac_ct_DUMPBIN" = x; then 5658 DUMPBIN=":" 5659 else 5660 case $cross_compiling:$ac_tool_warned in 5661yes:) 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5664ac_tool_warned=yes ;; 5665esac 5666 DUMPBIN=$ac_ct_DUMPBIN 5667 fi 5668fi 5669 5670 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5671 *COFF*) 5672 DUMPBIN="$DUMPBIN -symbols -headers" 5673 ;; 5674 *) 5675 DUMPBIN=: 5676 ;; 5677 esac 5678 fi 5679 5680 if test : != "$DUMPBIN"; then 5681 NM=$DUMPBIN 5682 fi 5683fi 5684test -z "$NM" && NM=nm 5685 5686 5687 5688 5689 5690 5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5692$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5693if ${lt_cv_nm_interface+:} false; then : 5694 $as_echo_n "(cached) " >&6 5695else 5696 lt_cv_nm_interface="BSD nm" 5697 echo "int some_variable = 0;" > conftest.$ac_ext 5698 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5699 (eval "$ac_compile" 2>conftest.err) 5700 cat conftest.err >&5 5701 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5702 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5703 cat conftest.err >&5 5704 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5705 cat conftest.out >&5 5706 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5707 lt_cv_nm_interface="MS dumpbin" 5708 fi 5709 rm -f conftest* 5710fi 5711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5712$as_echo "$lt_cv_nm_interface" >&6; } 5713 5714# find the maximum length of command line arguments 5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5716$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5717if ${lt_cv_sys_max_cmd_len+:} false; then : 5718 $as_echo_n "(cached) " >&6 5719else 5720 i=0 5721 teststring=ABCD 5722 5723 case $build_os in 5724 msdosdjgpp*) 5725 # On DJGPP, this test can blow up pretty badly due to problems in libc 5726 # (any single argument exceeding 2000 bytes causes a buffer overrun 5727 # during glob expansion). Even if it were fixed, the result of this 5728 # check would be larger than it should be. 5729 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5730 ;; 5731 5732 gnu*) 5733 # Under GNU Hurd, this test is not required because there is 5734 # no limit to the length of command line arguments. 5735 # Libtool will interpret -1 as no limit whatsoever 5736 lt_cv_sys_max_cmd_len=-1; 5737 ;; 5738 5739 cygwin* | mingw* | cegcc*) 5740 # On Win9x/ME, this test blows up -- it succeeds, but takes 5741 # about 5 minutes as the teststring grows exponentially. 5742 # Worse, since 9x/ME are not pre-emptively multitasking, 5743 # you end up with a "frozen" computer, even though with patience 5744 # the test eventually succeeds (with a max line length of 256k). 5745 # Instead, let's just punt: use the minimum linelength reported by 5746 # all of the supported platforms: 8192 (on NT/2K/XP). 5747 lt_cv_sys_max_cmd_len=8192; 5748 ;; 5749 5750 mint*) 5751 # On MiNT this can take a long time and run out of memory. 5752 lt_cv_sys_max_cmd_len=8192; 5753 ;; 5754 5755 amigaos*) 5756 # On AmigaOS with pdksh, this test takes hours, literally. 5757 # So we just punt and use a minimum line length of 8192. 5758 lt_cv_sys_max_cmd_len=8192; 5759 ;; 5760 5761 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5762 # This has been around since 386BSD, at least. Likely further. 5763 if test -x /sbin/sysctl; then 5764 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5765 elif test -x /usr/sbin/sysctl; then 5766 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5767 else 5768 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5769 fi 5770 # And add a safety zone 5771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5773 ;; 5774 5775 interix*) 5776 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5777 lt_cv_sys_max_cmd_len=196608 5778 ;; 5779 5780 os2*) 5781 # The test takes a long time on OS/2. 5782 lt_cv_sys_max_cmd_len=8192 5783 ;; 5784 5785 osf*) 5786 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5787 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5788 # nice to cause kernel panics so lets avoid the loop below. 5789 # First set a reasonable default. 5790 lt_cv_sys_max_cmd_len=16384 5791 # 5792 if test -x /sbin/sysconfig; then 5793 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5794 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5795 esac 5796 fi 5797 ;; 5798 sco3.2v5*) 5799 lt_cv_sys_max_cmd_len=102400 5800 ;; 5801 sysv5* | sco5v6* | sysv4.2uw2*) 5802 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5803 if test -n "$kargmax"; then 5804 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5805 else 5806 lt_cv_sys_max_cmd_len=32768 5807 fi 5808 ;; 5809 *) 5810 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5811 if test -n "$lt_cv_sys_max_cmd_len" && \ 5812 test undefined != "$lt_cv_sys_max_cmd_len"; then 5813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5815 else 5816 # Make teststring a little bigger before we do anything with it. 5817 # a 1K string should be a reasonable start. 5818 for i in 1 2 3 4 5 6 7 8; do 5819 teststring=$teststring$teststring 5820 done 5821 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5822 # If test is not a shell built-in, we'll probably end up computing a 5823 # maximum length that is only half of the actual maximum length, but 5824 # we can't tell. 5825 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5826 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5827 test 17 != "$i" # 1/2 MB should be enough 5828 do 5829 i=`expr $i + 1` 5830 teststring=$teststring$teststring 5831 done 5832 # Only check the string length outside the loop. 5833 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5834 teststring= 5835 # Add a significant safety factor because C++ compilers can tack on 5836 # massive amounts of additional arguments before passing them to the 5837 # linker. It appears as though 1/2 is a usable value. 5838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5839 fi 5840 ;; 5841 esac 5842 5843fi 5844 5845if test -n "$lt_cv_sys_max_cmd_len"; then 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5847$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5848else 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5850$as_echo "none" >&6; } 5851fi 5852max_cmd_len=$lt_cv_sys_max_cmd_len 5853 5854 5855 5856 5857 5858 5859: ${CP="cp -f"} 5860: ${MV="mv -f"} 5861: ${RM="rm -f"} 5862 5863if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5864 lt_unset=unset 5865else 5866 lt_unset=false 5867fi 5868 5869 5870 5871 5872 5873# test EBCDIC or ASCII 5874case `echo X|tr X '\101'` in 5875 A) # ASCII based system 5876 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5877 lt_SP2NL='tr \040 \012' 5878 lt_NL2SP='tr \015\012 \040\040' 5879 ;; 5880 *) # EBCDIC based system 5881 lt_SP2NL='tr \100 \n' 5882 lt_NL2SP='tr \r\n \100\100' 5883 ;; 5884esac 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5895$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5896if ${lt_cv_to_host_file_cmd+:} false; then : 5897 $as_echo_n "(cached) " >&6 5898else 5899 case $host in 5900 *-*-mingw* ) 5901 case $build in 5902 *-*-mingw* ) # actually msys 5903 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5904 ;; 5905 *-*-cygwin* ) 5906 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5907 ;; 5908 * ) # otherwise, assume *nix 5909 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5910 ;; 5911 esac 5912 ;; 5913 *-*-cygwin* ) 5914 case $build in 5915 *-*-mingw* ) # actually msys 5916 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5917 ;; 5918 *-*-cygwin* ) 5919 lt_cv_to_host_file_cmd=func_convert_file_noop 5920 ;; 5921 * ) # otherwise, assume *nix 5922 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5923 ;; 5924 esac 5925 ;; 5926 * ) # unhandled hosts (and "normal" native builds) 5927 lt_cv_to_host_file_cmd=func_convert_file_noop 5928 ;; 5929esac 5930 5931fi 5932 5933to_host_file_cmd=$lt_cv_to_host_file_cmd 5934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5935$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5936 5937 5938 5939 5940 5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5942$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5943if ${lt_cv_to_tool_file_cmd+:} false; then : 5944 $as_echo_n "(cached) " >&6 5945else 5946 #assume ordinary cross tools, or native build. 5947lt_cv_to_tool_file_cmd=func_convert_file_noop 5948case $host in 5949 *-*-mingw* ) 5950 case $build in 5951 *-*-mingw* ) # actually msys 5952 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5953 ;; 5954 esac 5955 ;; 5956esac 5957 5958fi 5959 5960to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5962$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5963 5964 5965 5966 5967 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5969$as_echo_n "checking for $LD option to reload object files... " >&6; } 5970if ${lt_cv_ld_reload_flag+:} false; then : 5971 $as_echo_n "(cached) " >&6 5972else 5973 lt_cv_ld_reload_flag='-r' 5974fi 5975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5976$as_echo "$lt_cv_ld_reload_flag" >&6; } 5977reload_flag=$lt_cv_ld_reload_flag 5978case $reload_flag in 5979"" | " "*) ;; 5980*) reload_flag=" $reload_flag" ;; 5981esac 5982reload_cmds='$LD$reload_flag -o $output$reload_objs' 5983case $host_os in 5984 cygwin* | mingw* | pw32* | cegcc*) 5985 if test yes != "$GCC"; then 5986 reload_cmds=false 5987 fi 5988 ;; 5989 darwin*) 5990 if test yes = "$GCC"; then 5991 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5992 else 5993 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5994 fi 5995 ;; 5996esac 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006if test -n "$ac_tool_prefix"; then 6007 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6008set dummy ${ac_tool_prefix}objdump; ac_word=$2 6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6010$as_echo_n "checking for $ac_word... " >&6; } 6011if ${ac_cv_prog_OBJDUMP+:} false; then : 6012 $as_echo_n "(cached) " >&6 6013else 6014 if test -n "$OBJDUMP"; then 6015 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6016else 6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6018for as_dir in $PATH 6019do 6020 IFS=$as_save_IFS 6021 test -z "$as_dir" && as_dir=. 6022 for ac_exec_ext in '' $ac_executable_extensions; do 6023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6024 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6026 break 2 6027 fi 6028done 6029 done 6030IFS=$as_save_IFS 6031 6032fi 6033fi 6034OBJDUMP=$ac_cv_prog_OBJDUMP 6035if test -n "$OBJDUMP"; then 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6037$as_echo "$OBJDUMP" >&6; } 6038else 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6040$as_echo "no" >&6; } 6041fi 6042 6043 6044fi 6045if test -z "$ac_cv_prog_OBJDUMP"; then 6046 ac_ct_OBJDUMP=$OBJDUMP 6047 # Extract the first word of "objdump", so it can be a program name with args. 6048set dummy objdump; ac_word=$2 6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6050$as_echo_n "checking for $ac_word... " >&6; } 6051if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6052 $as_echo_n "(cached) " >&6 6053else 6054 if test -n "$ac_ct_OBJDUMP"; then 6055 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6056else 6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6058for as_dir in $PATH 6059do 6060 IFS=$as_save_IFS 6061 test -z "$as_dir" && as_dir=. 6062 for ac_exec_ext in '' $ac_executable_extensions; do 6063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6064 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6066 break 2 6067 fi 6068done 6069 done 6070IFS=$as_save_IFS 6071 6072fi 6073fi 6074ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6075if test -n "$ac_ct_OBJDUMP"; then 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6077$as_echo "$ac_ct_OBJDUMP" >&6; } 6078else 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6080$as_echo "no" >&6; } 6081fi 6082 6083 if test "x$ac_ct_OBJDUMP" = x; then 6084 OBJDUMP="false" 6085 else 6086 case $cross_compiling:$ac_tool_warned in 6087yes:) 6088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6090ac_tool_warned=yes ;; 6091esac 6092 OBJDUMP=$ac_ct_OBJDUMP 6093 fi 6094else 6095 OBJDUMP="$ac_cv_prog_OBJDUMP" 6096fi 6097 6098test -z "$OBJDUMP" && OBJDUMP=objdump 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6109$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6110if ${lt_cv_deplibs_check_method+:} false; then : 6111 $as_echo_n "(cached) " >&6 6112else 6113 lt_cv_file_magic_cmd='$MAGIC_CMD' 6114lt_cv_file_magic_test_file= 6115lt_cv_deplibs_check_method='unknown' 6116# Need to set the preceding variable on all platforms that support 6117# interlibrary dependencies. 6118# 'none' -- dependencies not supported. 6119# 'unknown' -- same as none, but documents that we really don't know. 6120# 'pass_all' -- all dependencies passed with no checks. 6121# 'test_compile' -- check by making test program. 6122# 'file_magic [[regex]]' -- check by looking for files in library path 6123# that responds to the $file_magic_cmd with a given extended regex. 6124# If you have 'file' or equivalent on your system and you're not sure 6125# whether 'pass_all' will *always* work, you probably want this one. 6126 6127case $host_os in 6128aix[4-9]*) 6129 lt_cv_deplibs_check_method=pass_all 6130 ;; 6131 6132beos*) 6133 lt_cv_deplibs_check_method=pass_all 6134 ;; 6135 6136bsdi[45]*) 6137 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6138 lt_cv_file_magic_cmd='/usr/bin/file -L' 6139 lt_cv_file_magic_test_file=/shlib/libc.so 6140 ;; 6141 6142cygwin*) 6143 # func_win32_libid is a shell function defined in ltmain.sh 6144 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6145 lt_cv_file_magic_cmd='func_win32_libid' 6146 ;; 6147 6148mingw* | pw32*) 6149 # Base MSYS/MinGW do not provide the 'file' command needed by 6150 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6151 # unless we find 'file', for example because we are cross-compiling. 6152 if ( file / ) >/dev/null 2>&1; then 6153 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6154 lt_cv_file_magic_cmd='func_win32_libid' 6155 else 6156 # Keep this pattern in sync with the one in func_win32_libid. 6157 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6158 lt_cv_file_magic_cmd='$OBJDUMP -f' 6159 fi 6160 ;; 6161 6162cegcc*) 6163 # use the weaker test based on 'objdump'. See mingw*. 6164 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6165 lt_cv_file_magic_cmd='$OBJDUMP -f' 6166 ;; 6167 6168darwin* | rhapsody*) 6169 lt_cv_deplibs_check_method=pass_all 6170 ;; 6171 6172freebsd* | dragonfly*) 6173 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6174 case $host_cpu in 6175 i*86 ) 6176 # Not sure whether the presence of OpenBSD here was a mistake. 6177 # Let's accept both of them until this is cleared up. 6178 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6179 lt_cv_file_magic_cmd=/usr/bin/file 6180 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6181 ;; 6182 esac 6183 else 6184 lt_cv_deplibs_check_method=pass_all 6185 fi 6186 ;; 6187 6188haiku*) 6189 lt_cv_deplibs_check_method=pass_all 6190 ;; 6191 6192hpux10.20* | hpux11*) 6193 lt_cv_file_magic_cmd=/usr/bin/file 6194 case $host_cpu in 6195 ia64*) 6196 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6197 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6198 ;; 6199 hppa*64*) 6200 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]' 6201 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6202 ;; 6203 *) 6204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6205 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6206 ;; 6207 esac 6208 ;; 6209 6210interix[3-9]*) 6211 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6213 ;; 6214 6215irix5* | irix6* | nonstopux*) 6216 case $LD in 6217 *-32|*"-32 ") libmagic=32-bit;; 6218 *-n32|*"-n32 ") libmagic=N32;; 6219 *-64|*"-64 ") libmagic=64-bit;; 6220 *) libmagic=never-match;; 6221 esac 6222 lt_cv_deplibs_check_method=pass_all 6223 ;; 6224 6225# This must be glibc/ELF. 6226linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6227 lt_cv_deplibs_check_method=pass_all 6228 ;; 6229 6230netbsd*) 6231 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6233 else 6234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6235 fi 6236 ;; 6237 6238newos6*) 6239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6240 lt_cv_file_magic_cmd=/usr/bin/file 6241 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6242 ;; 6243 6244*nto* | *qnx*) 6245 lt_cv_deplibs_check_method=pass_all 6246 ;; 6247 6248openbsd* | bitrig*) 6249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6251 else 6252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6253 fi 6254 ;; 6255 6256osf3* | osf4* | osf5*) 6257 lt_cv_deplibs_check_method=pass_all 6258 ;; 6259 6260rdos*) 6261 lt_cv_deplibs_check_method=pass_all 6262 ;; 6263 6264solaris*) 6265 lt_cv_deplibs_check_method=pass_all 6266 ;; 6267 6268sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6269 lt_cv_deplibs_check_method=pass_all 6270 ;; 6271 6272sysv4 | sysv4.3*) 6273 case $host_vendor in 6274 motorola) 6275 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]' 6276 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6277 ;; 6278 ncr) 6279 lt_cv_deplibs_check_method=pass_all 6280 ;; 6281 sequent) 6282 lt_cv_file_magic_cmd='/bin/file' 6283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6284 ;; 6285 sni) 6286 lt_cv_file_magic_cmd='/bin/file' 6287 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6288 lt_cv_file_magic_test_file=/lib/libc.so 6289 ;; 6290 siemens) 6291 lt_cv_deplibs_check_method=pass_all 6292 ;; 6293 pc) 6294 lt_cv_deplibs_check_method=pass_all 6295 ;; 6296 esac 6297 ;; 6298 6299tpf*) 6300 lt_cv_deplibs_check_method=pass_all 6301 ;; 6302os2*) 6303 lt_cv_deplibs_check_method=pass_all 6304 ;; 6305esac 6306 6307fi 6308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6309$as_echo "$lt_cv_deplibs_check_method" >&6; } 6310 6311file_magic_glob= 6312want_nocaseglob=no 6313if test "$build" = "$host"; then 6314 case $host_os in 6315 mingw* | pw32*) 6316 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6317 want_nocaseglob=yes 6318 else 6319 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6320 fi 6321 ;; 6322 esac 6323fi 6324 6325file_magic_cmd=$lt_cv_file_magic_cmd 6326deplibs_check_method=$lt_cv_deplibs_check_method 6327test -z "$deplibs_check_method" && deplibs_check_method=unknown 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350if test -n "$ac_tool_prefix"; then 6351 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6352set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6354$as_echo_n "checking for $ac_word... " >&6; } 6355if ${ac_cv_prog_DLLTOOL+:} false; then : 6356 $as_echo_n "(cached) " >&6 6357else 6358 if test -n "$DLLTOOL"; then 6359 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6360else 6361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6362for as_dir in $PATH 6363do 6364 IFS=$as_save_IFS 6365 test -z "$as_dir" && as_dir=. 6366 for ac_exec_ext in '' $ac_executable_extensions; do 6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6368 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6370 break 2 6371 fi 6372done 6373 done 6374IFS=$as_save_IFS 6375 6376fi 6377fi 6378DLLTOOL=$ac_cv_prog_DLLTOOL 6379if test -n "$DLLTOOL"; then 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6381$as_echo "$DLLTOOL" >&6; } 6382else 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6384$as_echo "no" >&6; } 6385fi 6386 6387 6388fi 6389if test -z "$ac_cv_prog_DLLTOOL"; then 6390 ac_ct_DLLTOOL=$DLLTOOL 6391 # Extract the first word of "dlltool", so it can be a program name with args. 6392set dummy dlltool; ac_word=$2 6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6394$as_echo_n "checking for $ac_word... " >&6; } 6395if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6396 $as_echo_n "(cached) " >&6 6397else 6398 if test -n "$ac_ct_DLLTOOL"; then 6399 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6400else 6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6402for as_dir in $PATH 6403do 6404 IFS=$as_save_IFS 6405 test -z "$as_dir" && as_dir=. 6406 for ac_exec_ext in '' $ac_executable_extensions; do 6407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6408 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6410 break 2 6411 fi 6412done 6413 done 6414IFS=$as_save_IFS 6415 6416fi 6417fi 6418ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6419if test -n "$ac_ct_DLLTOOL"; then 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6421$as_echo "$ac_ct_DLLTOOL" >&6; } 6422else 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6424$as_echo "no" >&6; } 6425fi 6426 6427 if test "x$ac_ct_DLLTOOL" = x; then 6428 DLLTOOL="false" 6429 else 6430 case $cross_compiling:$ac_tool_warned in 6431yes:) 6432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6434ac_tool_warned=yes ;; 6435esac 6436 DLLTOOL=$ac_ct_DLLTOOL 6437 fi 6438else 6439 DLLTOOL="$ac_cv_prog_DLLTOOL" 6440fi 6441 6442test -z "$DLLTOOL" && DLLTOOL=dlltool 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6454$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6455if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6456 $as_echo_n "(cached) " >&6 6457else 6458 lt_cv_sharedlib_from_linklib_cmd='unknown' 6459 6460case $host_os in 6461cygwin* | mingw* | pw32* | cegcc*) 6462 # two different shell functions defined in ltmain.sh; 6463 # decide which one to use based on capabilities of $DLLTOOL 6464 case `$DLLTOOL --help 2>&1` in 6465 *--identify-strict*) 6466 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6467 ;; 6468 *) 6469 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6470 ;; 6471 esac 6472 ;; 6473*) 6474 # fallback: assume linklib IS sharedlib 6475 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6476 ;; 6477esac 6478 6479fi 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6481$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6482sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6483test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6484 6485 6486 6487 6488 6489 6490 6491if test -n "$ac_tool_prefix"; then 6492 for ac_prog in ar 6493 do 6494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6495set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6497$as_echo_n "checking for $ac_word... " >&6; } 6498if ${ac_cv_prog_AR+:} false; then : 6499 $as_echo_n "(cached) " >&6 6500else 6501 if test -n "$AR"; then 6502 ac_cv_prog_AR="$AR" # Let the user override the test. 6503else 6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6505for as_dir in $PATH 6506do 6507 IFS=$as_save_IFS 6508 test -z "$as_dir" && as_dir=. 6509 for ac_exec_ext in '' $ac_executable_extensions; do 6510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6511 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6513 break 2 6514 fi 6515done 6516 done 6517IFS=$as_save_IFS 6518 6519fi 6520fi 6521AR=$ac_cv_prog_AR 6522if test -n "$AR"; then 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6524$as_echo "$AR" >&6; } 6525else 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6527$as_echo "no" >&6; } 6528fi 6529 6530 6531 test -n "$AR" && break 6532 done 6533fi 6534if test -z "$AR"; then 6535 ac_ct_AR=$AR 6536 for ac_prog in ar 6537do 6538 # Extract the first word of "$ac_prog", so it can be a program name with args. 6539set dummy $ac_prog; ac_word=$2 6540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6541$as_echo_n "checking for $ac_word... " >&6; } 6542if ${ac_cv_prog_ac_ct_AR+:} false; then : 6543 $as_echo_n "(cached) " >&6 6544else 6545 if test -n "$ac_ct_AR"; then 6546 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6547else 6548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6549for as_dir in $PATH 6550do 6551 IFS=$as_save_IFS 6552 test -z "$as_dir" && as_dir=. 6553 for ac_exec_ext in '' $ac_executable_extensions; do 6554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6555 ac_cv_prog_ac_ct_AR="$ac_prog" 6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6557 break 2 6558 fi 6559done 6560 done 6561IFS=$as_save_IFS 6562 6563fi 6564fi 6565ac_ct_AR=$ac_cv_prog_ac_ct_AR 6566if test -n "$ac_ct_AR"; then 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6568$as_echo "$ac_ct_AR" >&6; } 6569else 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6571$as_echo "no" >&6; } 6572fi 6573 6574 6575 test -n "$ac_ct_AR" && break 6576done 6577 6578 if test "x$ac_ct_AR" = x; then 6579 AR="false" 6580 else 6581 case $cross_compiling:$ac_tool_warned in 6582yes:) 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6585ac_tool_warned=yes ;; 6586esac 6587 AR=$ac_ct_AR 6588 fi 6589fi 6590 6591: ${AR=ar} 6592 6593 6594 6595 6596 6597 6598# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6599# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6600# higher priority because thats what people were doing historically (setting 6601# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6602# variable obsoleted/removed. 6603 6604test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6605lt_ar_flags=$AR_FLAGS 6606 6607 6608 6609 6610 6611 6612# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6613# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6614 6615 6616 6617 6618 6619 6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6621$as_echo_n "checking for archiver @FILE support... " >&6; } 6622if ${lt_cv_ar_at_file+:} false; then : 6623 $as_echo_n "(cached) " >&6 6624else 6625 lt_cv_ar_at_file=no 6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6627/* end confdefs.h. */ 6628 6629int 6630main () 6631{ 6632 6633 ; 6634 return 0; 6635} 6636_ACEOF 6637if ac_fn_c_try_compile "$LINENO"; then : 6638 echo conftest.$ac_objext > conftest.lst 6639 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6641 (eval $lt_ar_try) 2>&5 6642 ac_status=$? 6643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6644 test $ac_status = 0; } 6645 if test 0 -eq "$ac_status"; then 6646 # Ensure the archiver fails upon bogus file names. 6647 rm -f conftest.$ac_objext libconftest.a 6648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6649 (eval $lt_ar_try) 2>&5 6650 ac_status=$? 6651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6652 test $ac_status = 0; } 6653 if test 0 -ne "$ac_status"; then 6654 lt_cv_ar_at_file=@ 6655 fi 6656 fi 6657 rm -f conftest.* libconftest.a 6658 6659fi 6660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6661 6662fi 6663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6664$as_echo "$lt_cv_ar_at_file" >&6; } 6665 6666if test no = "$lt_cv_ar_at_file"; then 6667 archiver_list_spec= 6668else 6669 archiver_list_spec=$lt_cv_ar_at_file 6670fi 6671 6672 6673 6674 6675 6676 6677 6678if test -n "$ac_tool_prefix"; then 6679 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6680set dummy ${ac_tool_prefix}strip; ac_word=$2 6681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6682$as_echo_n "checking for $ac_word... " >&6; } 6683if ${ac_cv_prog_STRIP+:} false; then : 6684 $as_echo_n "(cached) " >&6 6685else 6686 if test -n "$STRIP"; then 6687 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6688else 6689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6690for as_dir in $PATH 6691do 6692 IFS=$as_save_IFS 6693 test -z "$as_dir" && as_dir=. 6694 for ac_exec_ext in '' $ac_executable_extensions; do 6695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6696 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6698 break 2 6699 fi 6700done 6701 done 6702IFS=$as_save_IFS 6703 6704fi 6705fi 6706STRIP=$ac_cv_prog_STRIP 6707if test -n "$STRIP"; then 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6709$as_echo "$STRIP" >&6; } 6710else 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6712$as_echo "no" >&6; } 6713fi 6714 6715 6716fi 6717if test -z "$ac_cv_prog_STRIP"; then 6718 ac_ct_STRIP=$STRIP 6719 # Extract the first word of "strip", so it can be a program name with args. 6720set dummy strip; ac_word=$2 6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6722$as_echo_n "checking for $ac_word... " >&6; } 6723if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6724 $as_echo_n "(cached) " >&6 6725else 6726 if test -n "$ac_ct_STRIP"; then 6727 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6728else 6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6730for as_dir in $PATH 6731do 6732 IFS=$as_save_IFS 6733 test -z "$as_dir" && as_dir=. 6734 for ac_exec_ext in '' $ac_executable_extensions; do 6735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6736 ac_cv_prog_ac_ct_STRIP="strip" 6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6738 break 2 6739 fi 6740done 6741 done 6742IFS=$as_save_IFS 6743 6744fi 6745fi 6746ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6747if test -n "$ac_ct_STRIP"; then 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6749$as_echo "$ac_ct_STRIP" >&6; } 6750else 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6752$as_echo "no" >&6; } 6753fi 6754 6755 if test "x$ac_ct_STRIP" = x; then 6756 STRIP=":" 6757 else 6758 case $cross_compiling:$ac_tool_warned in 6759yes:) 6760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6762ac_tool_warned=yes ;; 6763esac 6764 STRIP=$ac_ct_STRIP 6765 fi 6766else 6767 STRIP="$ac_cv_prog_STRIP" 6768fi 6769 6770test -z "$STRIP" && STRIP=: 6771 6772 6773 6774 6775 6776 6777if test -n "$ac_tool_prefix"; then 6778 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6779set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6781$as_echo_n "checking for $ac_word... " >&6; } 6782if ${ac_cv_prog_RANLIB+:} false; then : 6783 $as_echo_n "(cached) " >&6 6784else 6785 if test -n "$RANLIB"; then 6786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6787else 6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6789for as_dir in $PATH 6790do 6791 IFS=$as_save_IFS 6792 test -z "$as_dir" && as_dir=. 6793 for ac_exec_ext in '' $ac_executable_extensions; do 6794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6795 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6797 break 2 6798 fi 6799done 6800 done 6801IFS=$as_save_IFS 6802 6803fi 6804fi 6805RANLIB=$ac_cv_prog_RANLIB 6806if test -n "$RANLIB"; then 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6808$as_echo "$RANLIB" >&6; } 6809else 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6811$as_echo "no" >&6; } 6812fi 6813 6814 6815fi 6816if test -z "$ac_cv_prog_RANLIB"; then 6817 ac_ct_RANLIB=$RANLIB 6818 # Extract the first word of "ranlib", so it can be a program name with args. 6819set dummy ranlib; ac_word=$2 6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6821$as_echo_n "checking for $ac_word... " >&6; } 6822if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6823 $as_echo_n "(cached) " >&6 6824else 6825 if test -n "$ac_ct_RANLIB"; then 6826 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6827else 6828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6829for as_dir in $PATH 6830do 6831 IFS=$as_save_IFS 6832 test -z "$as_dir" && as_dir=. 6833 for ac_exec_ext in '' $ac_executable_extensions; do 6834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6835 ac_cv_prog_ac_ct_RANLIB="ranlib" 6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6837 break 2 6838 fi 6839done 6840 done 6841IFS=$as_save_IFS 6842 6843fi 6844fi 6845ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6846if test -n "$ac_ct_RANLIB"; then 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6848$as_echo "$ac_ct_RANLIB" >&6; } 6849else 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6851$as_echo "no" >&6; } 6852fi 6853 6854 if test "x$ac_ct_RANLIB" = x; then 6855 RANLIB=":" 6856 else 6857 case $cross_compiling:$ac_tool_warned in 6858yes:) 6859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6861ac_tool_warned=yes ;; 6862esac 6863 RANLIB=$ac_ct_RANLIB 6864 fi 6865else 6866 RANLIB="$ac_cv_prog_RANLIB" 6867fi 6868 6869test -z "$RANLIB" && RANLIB=: 6870 6871 6872 6873 6874 6875 6876# Determine commands to create old-style static archives. 6877old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6878old_postinstall_cmds='chmod 644 $oldlib' 6879old_postuninstall_cmds= 6880 6881if test -n "$RANLIB"; then 6882 case $host_os in 6883 bitrig* | openbsd*) 6884 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6885 ;; 6886 *) 6887 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6888 ;; 6889 esac 6890 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6891fi 6892 6893case $host_os in 6894 darwin*) 6895 lock_old_archive_extraction=yes ;; 6896 *) 6897 lock_old_archive_extraction=no ;; 6898esac 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 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938# If no C compiler was specified, use CC. 6939LTCC=${LTCC-"$CC"} 6940 6941# If no C compiler flags were specified, use CFLAGS. 6942LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6943 6944# Allow CC to be a program name with arguments. 6945compiler=$CC 6946 6947 6948# Check for command to grab the raw symbol name followed by C symbol from nm. 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6950$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6951if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6952 $as_echo_n "(cached) " >&6 6953else 6954 6955# These are sane defaults that work on at least a few old systems. 6956# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6957 6958# Character class describing NM global symbol codes. 6959symcode='[BCDEGRST]' 6960 6961# Regexp to match symbols that can be accessed directly from C. 6962sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6963 6964# Define system-specific variables. 6965case $host_os in 6966aix*) 6967 symcode='[BCDT]' 6968 ;; 6969cygwin* | mingw* | pw32* | cegcc*) 6970 symcode='[ABCDGISTW]' 6971 ;; 6972hpux*) 6973 if test ia64 = "$host_cpu"; then 6974 symcode='[ABCDEGRST]' 6975 fi 6976 ;; 6977irix* | nonstopux*) 6978 symcode='[BCDEGRST]' 6979 ;; 6980osf*) 6981 symcode='[BCDEGQRST]' 6982 ;; 6983solaris*) 6984 symcode='[BDRT]' 6985 ;; 6986sco3.2v5*) 6987 symcode='[DT]' 6988 ;; 6989sysv4.2uw2*) 6990 symcode='[DT]' 6991 ;; 6992sysv5* | sco5v6* | unixware* | OpenUNIX*) 6993 symcode='[ABDT]' 6994 ;; 6995sysv4) 6996 symcode='[DFNSTU]' 6997 ;; 6998esac 6999 7000# If we're using GNU nm, then use its standard symbol codes. 7001case `$NM -V 2>&1` in 7002*GNU* | *'with BFD'*) 7003 symcode='[ABCDGIRSTW]' ;; 7004esac 7005 7006if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7007 # Gets list of data symbols to import. 7008 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7009 # Adjust the below global symbol transforms to fixup imported variables. 7010 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7011 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7012 lt_c_name_lib_hook="\ 7013 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7014 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7015else 7016 # Disable hooks by default. 7017 lt_cv_sys_global_symbol_to_import= 7018 lt_cdecl_hook= 7019 lt_c_name_hook= 7020 lt_c_name_lib_hook= 7021fi 7022 7023# Transform an extracted symbol line into a proper C declaration. 7024# Some systems (esp. on ia64) link data and code symbols differently, 7025# so use this general approach. 7026lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7027$lt_cdecl_hook\ 7028" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7029" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7030 7031# Transform an extracted symbol line into symbol name and symbol address 7032lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7033$lt_c_name_hook\ 7034" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7035" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7036 7037# Transform an extracted symbol line into symbol name with lib prefix and 7038# symbol address. 7039lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7040$lt_c_name_lib_hook\ 7041" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7042" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7043" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7044 7045# Handle CRLF in mingw tool chain 7046opt_cr= 7047case $build_os in 7048mingw*) 7049 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7050 ;; 7051esac 7052 7053# Try without a prefix underscore, then with it. 7054for ac_symprfx in "" "_"; do 7055 7056 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7057 symxfrm="\\1 $ac_symprfx\\2 \\2" 7058 7059 # Write the raw and C identifiers. 7060 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7061 # Fake it for dumpbin and say T for any non-static function, 7062 # D for any global variable and I for any imported variable. 7063 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7064 # which start with @ or ?. 7065 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7066" {last_section=section; section=\$ 3};"\ 7067" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7068" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7069" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7070" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7071" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7072" \$ 0!~/External *\|/{next};"\ 7073" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7074" {if(hide[section]) next};"\ 7075" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7076" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7077" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7078" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7079" ' prfx=^$ac_symprfx" 7080 else 7081 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7082 fi 7083 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7084 7085 # Check to see that the pipe works correctly. 7086 pipe_works=no 7087 7088 rm -f conftest* 7089 cat > conftest.$ac_ext <<_LT_EOF 7090#ifdef __cplusplus 7091extern "C" { 7092#endif 7093char nm_test_var; 7094void nm_test_func(void); 7095void nm_test_func(void){} 7096#ifdef __cplusplus 7097} 7098#endif 7099int main(){nm_test_var='a';nm_test_func();return(0);} 7100_LT_EOF 7101 7102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7103 (eval $ac_compile) 2>&5 7104 ac_status=$? 7105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7106 test $ac_status = 0; }; then 7107 # Now try to grab the symbols. 7108 nlist=conftest.nm 7109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7110 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7111 ac_status=$? 7112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7113 test $ac_status = 0; } && test -s "$nlist"; then 7114 # Try sorting and uniquifying the output. 7115 if sort "$nlist" | uniq > "$nlist"T; then 7116 mv -f "$nlist"T "$nlist" 7117 else 7118 rm -f "$nlist"T 7119 fi 7120 7121 # Make sure that we snagged all the symbols we need. 7122 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7123 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7124 cat <<_LT_EOF > conftest.$ac_ext 7125/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7126#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7127/* DATA imports from DLLs on WIN32 can't be const, because runtime 7128 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7129# define LT_DLSYM_CONST 7130#elif defined __osf__ 7131/* This system does not cope well with relocations in const data. */ 7132# define LT_DLSYM_CONST 7133#else 7134# define LT_DLSYM_CONST const 7135#endif 7136 7137#ifdef __cplusplus 7138extern "C" { 7139#endif 7140 7141_LT_EOF 7142 # Now generate the symbol file. 7143 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7144 7145 cat <<_LT_EOF >> conftest.$ac_ext 7146 7147/* The mapping between symbol names and symbols. */ 7148LT_DLSYM_CONST struct { 7149 const char *name; 7150 void *address; 7151} 7152lt__PROGRAM__LTX_preloaded_symbols[] = 7153{ 7154 { "@PROGRAM@", (void *) 0 }, 7155_LT_EOF 7156 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7157 cat <<\_LT_EOF >> conftest.$ac_ext 7158 {0, (void *) 0} 7159}; 7160 7161/* This works around a problem in FreeBSD linker */ 7162#ifdef FREEBSD_WORKAROUND 7163static const void *lt_preloaded_setup() { 7164 return lt__PROGRAM__LTX_preloaded_symbols; 7165} 7166#endif 7167 7168#ifdef __cplusplus 7169} 7170#endif 7171_LT_EOF 7172 # Now try linking the two files. 7173 mv conftest.$ac_objext conftstm.$ac_objext 7174 lt_globsym_save_LIBS=$LIBS 7175 lt_globsym_save_CFLAGS=$CFLAGS 7176 LIBS=conftstm.$ac_objext 7177 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7179 (eval $ac_link) 2>&5 7180 ac_status=$? 7181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7182 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7183 pipe_works=yes 7184 fi 7185 LIBS=$lt_globsym_save_LIBS 7186 CFLAGS=$lt_globsym_save_CFLAGS 7187 else 7188 echo "cannot find nm_test_func in $nlist" >&5 7189 fi 7190 else 7191 echo "cannot find nm_test_var in $nlist" >&5 7192 fi 7193 else 7194 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7195 fi 7196 else 7197 echo "$progname: failed program was:" >&5 7198 cat conftest.$ac_ext >&5 7199 fi 7200 rm -rf conftest* conftst* 7201 7202 # Do not use the global_symbol_pipe unless it works. 7203 if test yes = "$pipe_works"; then 7204 break 7205 else 7206 lt_cv_sys_global_symbol_pipe= 7207 fi 7208done 7209 7210fi 7211 7212if test -z "$lt_cv_sys_global_symbol_pipe"; then 7213 lt_cv_sys_global_symbol_to_cdecl= 7214fi 7215if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7217$as_echo "failed" >&6; } 7218else 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7220$as_echo "ok" >&6; } 7221fi 7222 7223# Response file support. 7224if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7225 nm_file_list_spec='@' 7226elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7227 nm_file_list_spec='@' 7228fi 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7267$as_echo_n "checking for sysroot... " >&6; } 7268 7269# Check whether --with-sysroot was given. 7270if test "${with_sysroot+set}" = set; then : 7271 withval=$with_sysroot; 7272else 7273 with_sysroot=no 7274fi 7275 7276 7277lt_sysroot= 7278case $with_sysroot in #( 7279 yes) 7280 if test yes = "$GCC"; then 7281 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7282 fi 7283 ;; #( 7284 /*) 7285 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7286 ;; #( 7287 no|'') 7288 ;; #( 7289 *) 7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7291$as_echo "$with_sysroot" >&6; } 7292 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7293 ;; 7294esac 7295 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7297$as_echo "${lt_sysroot:-no}" >&6; } 7298 7299 7300 7301 7302 7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7304$as_echo_n "checking for a working dd... " >&6; } 7305if ${ac_cv_path_lt_DD+:} false; then : 7306 $as_echo_n "(cached) " >&6 7307else 7308 printf 0123456789abcdef0123456789abcdef >conftest.i 7309cat conftest.i conftest.i >conftest2.i 7310: ${lt_DD:=$DD} 7311if test -z "$lt_DD"; then 7312 ac_path_lt_DD_found=false 7313 # Loop through the user's path and test for each of PROGNAME-LIST 7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7315for as_dir in $PATH 7316do 7317 IFS=$as_save_IFS 7318 test -z "$as_dir" && as_dir=. 7319 for ac_prog in dd; do 7320 for ac_exec_ext in '' $ac_executable_extensions; do 7321 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7322 as_fn_executable_p "$ac_path_lt_DD" || continue 7323if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7324 cmp -s conftest.i conftest.out \ 7325 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7326fi 7327 $ac_path_lt_DD_found && break 3 7328 done 7329 done 7330 done 7331IFS=$as_save_IFS 7332 if test -z "$ac_cv_path_lt_DD"; then 7333 : 7334 fi 7335else 7336 ac_cv_path_lt_DD=$lt_DD 7337fi 7338 7339rm -f conftest.i conftest2.i conftest.out 7340fi 7341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7342$as_echo "$ac_cv_path_lt_DD" >&6; } 7343 7344 7345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7346$as_echo_n "checking how to truncate binary pipes... " >&6; } 7347if ${lt_cv_truncate_bin+:} false; then : 7348 $as_echo_n "(cached) " >&6 7349else 7350 printf 0123456789abcdef0123456789abcdef >conftest.i 7351cat conftest.i conftest.i >conftest2.i 7352lt_cv_truncate_bin= 7353if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7354 cmp -s conftest.i conftest.out \ 7355 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7356fi 7357rm -f conftest.i conftest2.i conftest.out 7358test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7359fi 7360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7361$as_echo "$lt_cv_truncate_bin" >&6; } 7362 7363 7364 7365 7366 7367 7368 7369# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7370func_cc_basename () 7371{ 7372 for cc_temp in $*""; do 7373 case $cc_temp in 7374 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7375 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7376 \-*) ;; 7377 *) break;; 7378 esac 7379 done 7380 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7381} 7382 7383# Check whether --enable-libtool-lock was given. 7384if test "${enable_libtool_lock+set}" = set; then : 7385 enableval=$enable_libtool_lock; 7386fi 7387 7388test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7389 7390# Some flags need to be propagated to the compiler or linker for good 7391# libtool support. 7392case $host in 7393ia64-*-hpux*) 7394 # Find out what ABI is being produced by ac_compile, and set mode 7395 # options accordingly. 7396 echo 'int i;' > conftest.$ac_ext 7397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7398 (eval $ac_compile) 2>&5 7399 ac_status=$? 7400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7401 test $ac_status = 0; }; then 7402 case `/usr/bin/file conftest.$ac_objext` in 7403 *ELF-32*) 7404 HPUX_IA64_MODE=32 7405 ;; 7406 *ELF-64*) 7407 HPUX_IA64_MODE=64 7408 ;; 7409 esac 7410 fi 7411 rm -rf conftest* 7412 ;; 7413*-*-irix6*) 7414 # Find out what ABI is being produced by ac_compile, and set linker 7415 # options accordingly. 7416 echo '#line '$LINENO' "configure"' > 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 if test yes = "$lt_cv_prog_gnu_ld"; then 7423 case `/usr/bin/file conftest.$ac_objext` in 7424 *32-bit*) 7425 LD="${LD-ld} -melf32bsmip" 7426 ;; 7427 *N32*) 7428 LD="${LD-ld} -melf32bmipn32" 7429 ;; 7430 *64-bit*) 7431 LD="${LD-ld} -melf64bmip" 7432 ;; 7433 esac 7434 else 7435 case `/usr/bin/file conftest.$ac_objext` in 7436 *32-bit*) 7437 LD="${LD-ld} -32" 7438 ;; 7439 *N32*) 7440 LD="${LD-ld} -n32" 7441 ;; 7442 *64-bit*) 7443 LD="${LD-ld} -64" 7444 ;; 7445 esac 7446 fi 7447 fi 7448 rm -rf conftest* 7449 ;; 7450 7451mips64*-*linux*) 7452 # Find out what ABI is being produced by ac_compile, and set linker 7453 # options accordingly. 7454 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7456 (eval $ac_compile) 2>&5 7457 ac_status=$? 7458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7459 test $ac_status = 0; }; then 7460 emul=elf 7461 case `/usr/bin/file conftest.$ac_objext` in 7462 *32-bit*) 7463 emul="${emul}32" 7464 ;; 7465 *64-bit*) 7466 emul="${emul}64" 7467 ;; 7468 esac 7469 case `/usr/bin/file conftest.$ac_objext` in 7470 *MSB*) 7471 emul="${emul}btsmip" 7472 ;; 7473 *LSB*) 7474 emul="${emul}ltsmip" 7475 ;; 7476 esac 7477 case `/usr/bin/file conftest.$ac_objext` in 7478 *N32*) 7479 emul="${emul}n32" 7480 ;; 7481 esac 7482 LD="${LD-ld} -m $emul" 7483 fi 7484 rm -rf conftest* 7485 ;; 7486 7487x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7488s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7489 # Find out what ABI is being produced by ac_compile, and set linker 7490 # options accordingly. Note that the listed cases only cover the 7491 # situations where additional linker options are needed (such as when 7492 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7493 # vice versa); the common cases where no linker options are needed do 7494 # not appear in the list. 7495 echo 'int i;' > conftest.$ac_ext 7496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7497 (eval $ac_compile) 2>&5 7498 ac_status=$? 7499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7500 test $ac_status = 0; }; then 7501 case `/usr/bin/file conftest.o` in 7502 *32-bit*) 7503 case $host in 7504 x86_64-*kfreebsd*-gnu) 7505 LD="${LD-ld} -m elf_i386_fbsd" 7506 ;; 7507 x86_64-*linux*) 7508 case `/usr/bin/file conftest.o` in 7509 *x86-64*) 7510 LD="${LD-ld} -m elf32_x86_64" 7511 ;; 7512 *) 7513 LD="${LD-ld} -m elf_i386" 7514 ;; 7515 esac 7516 ;; 7517 powerpc64le-*linux*) 7518 LD="${LD-ld} -m elf32lppclinux" 7519 ;; 7520 powerpc64-*linux*) 7521 LD="${LD-ld} -m elf32ppclinux" 7522 ;; 7523 s390x-*linux*) 7524 LD="${LD-ld} -m elf_s390" 7525 ;; 7526 sparc64-*linux*) 7527 LD="${LD-ld} -m elf32_sparc" 7528 ;; 7529 esac 7530 ;; 7531 *64-bit*) 7532 case $host in 7533 x86_64-*kfreebsd*-gnu) 7534 LD="${LD-ld} -m elf_x86_64_fbsd" 7535 ;; 7536 x86_64-*linux*) 7537 LD="${LD-ld} -m elf_x86_64" 7538 ;; 7539 powerpcle-*linux*) 7540 LD="${LD-ld} -m elf64lppc" 7541 ;; 7542 powerpc-*linux*) 7543 LD="${LD-ld} -m elf64ppc" 7544 ;; 7545 s390*-*linux*|s390*-*tpf*) 7546 LD="${LD-ld} -m elf64_s390" 7547 ;; 7548 sparc*-*linux*) 7549 LD="${LD-ld} -m elf64_sparc" 7550 ;; 7551 esac 7552 ;; 7553 esac 7554 fi 7555 rm -rf conftest* 7556 ;; 7557 7558*-*-sco3.2v5*) 7559 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7560 SAVE_CFLAGS=$CFLAGS 7561 CFLAGS="$CFLAGS -belf" 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7563$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7564if ${lt_cv_cc_needs_belf+:} false; then : 7565 $as_echo_n "(cached) " >&6 7566else 7567 ac_ext=c 7568ac_cpp='$CPP $CPPFLAGS' 7569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7571ac_compiler_gnu=$ac_cv_c_compiler_gnu 7572 7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7574/* end confdefs.h. */ 7575 7576int 7577main () 7578{ 7579 7580 ; 7581 return 0; 7582} 7583_ACEOF 7584if ac_fn_c_try_link "$LINENO"; then : 7585 lt_cv_cc_needs_belf=yes 7586else 7587 lt_cv_cc_needs_belf=no 7588fi 7589rm -f core conftest.err conftest.$ac_objext \ 7590 conftest$ac_exeext conftest.$ac_ext 7591 ac_ext=c 7592ac_cpp='$CPP $CPPFLAGS' 7593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7595ac_compiler_gnu=$ac_cv_c_compiler_gnu 7596 7597fi 7598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7599$as_echo "$lt_cv_cc_needs_belf" >&6; } 7600 if test yes != "$lt_cv_cc_needs_belf"; then 7601 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7602 CFLAGS=$SAVE_CFLAGS 7603 fi 7604 ;; 7605*-*solaris*) 7606 # Find out what ABI is being produced by ac_compile, and set linker 7607 # options accordingly. 7608 echo 'int i;' > conftest.$ac_ext 7609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7610 (eval $ac_compile) 2>&5 7611 ac_status=$? 7612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7613 test $ac_status = 0; }; then 7614 case `/usr/bin/file conftest.o` in 7615 *64-bit*) 7616 case $lt_cv_prog_gnu_ld in 7617 yes*) 7618 case $host in 7619 i?86-*-solaris*|x86_64-*-solaris*) 7620 LD="${LD-ld} -m elf_x86_64" 7621 ;; 7622 sparc*-*-solaris*) 7623 LD="${LD-ld} -m elf64_sparc" 7624 ;; 7625 esac 7626 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7627 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7628 LD=${LD-ld}_sol2 7629 fi 7630 ;; 7631 *) 7632 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7633 LD="${LD-ld} -64" 7634 fi 7635 ;; 7636 esac 7637 ;; 7638 esac 7639 fi 7640 rm -rf conftest* 7641 ;; 7642esac 7643 7644need_locks=$enable_libtool_lock 7645 7646if test -n "$ac_tool_prefix"; then 7647 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7648set dummy ${ac_tool_prefix}mt; ac_word=$2 7649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7650$as_echo_n "checking for $ac_word... " >&6; } 7651if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7652 $as_echo_n "(cached) " >&6 7653else 7654 if test -n "$MANIFEST_TOOL"; then 7655 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7656else 7657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7658for as_dir in $PATH 7659do 7660 IFS=$as_save_IFS 7661 test -z "$as_dir" && as_dir=. 7662 for ac_exec_ext in '' $ac_executable_extensions; do 7663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7664 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7666 break 2 7667 fi 7668done 7669 done 7670IFS=$as_save_IFS 7671 7672fi 7673fi 7674MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7675if test -n "$MANIFEST_TOOL"; then 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7677$as_echo "$MANIFEST_TOOL" >&6; } 7678else 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7680$as_echo "no" >&6; } 7681fi 7682 7683 7684fi 7685if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7686 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7687 # Extract the first word of "mt", so it can be a program name with args. 7688set dummy mt; ac_word=$2 7689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7690$as_echo_n "checking for $ac_word... " >&6; } 7691if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7692 $as_echo_n "(cached) " >&6 7693else 7694 if test -n "$ac_ct_MANIFEST_TOOL"; then 7695 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7696else 7697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7698for as_dir in $PATH 7699do 7700 IFS=$as_save_IFS 7701 test -z "$as_dir" && as_dir=. 7702 for ac_exec_ext in '' $ac_executable_extensions; do 7703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7704 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7706 break 2 7707 fi 7708done 7709 done 7710IFS=$as_save_IFS 7711 7712fi 7713fi 7714ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7715if test -n "$ac_ct_MANIFEST_TOOL"; then 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7717$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7718else 7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7720$as_echo "no" >&6; } 7721fi 7722 7723 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7724 MANIFEST_TOOL=":" 7725 else 7726 case $cross_compiling:$ac_tool_warned in 7727yes:) 7728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7730ac_tool_warned=yes ;; 7731esac 7732 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7733 fi 7734else 7735 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7736fi 7737 7738test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7740$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7741if ${lt_cv_path_mainfest_tool+:} false; then : 7742 $as_echo_n "(cached) " >&6 7743else 7744 lt_cv_path_mainfest_tool=no 7745 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7746 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7747 cat conftest.err >&5 7748 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7749 lt_cv_path_mainfest_tool=yes 7750 fi 7751 rm -f conftest* 7752fi 7753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7754$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7755if test yes != "$lt_cv_path_mainfest_tool"; then 7756 MANIFEST_TOOL=: 7757fi 7758 7759 7760 7761 7762 7763 7764 case $host_os in 7765 rhapsody* | darwin*) 7766 if test -n "$ac_tool_prefix"; then 7767 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7768set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7770$as_echo_n "checking for $ac_word... " >&6; } 7771if ${ac_cv_prog_DSYMUTIL+:} false; then : 7772 $as_echo_n "(cached) " >&6 7773else 7774 if test -n "$DSYMUTIL"; then 7775 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7776else 7777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7778for as_dir in $PATH 7779do 7780 IFS=$as_save_IFS 7781 test -z "$as_dir" && as_dir=. 7782 for ac_exec_ext in '' $ac_executable_extensions; do 7783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7784 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7786 break 2 7787 fi 7788done 7789 done 7790IFS=$as_save_IFS 7791 7792fi 7793fi 7794DSYMUTIL=$ac_cv_prog_DSYMUTIL 7795if test -n "$DSYMUTIL"; then 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7797$as_echo "$DSYMUTIL" >&6; } 7798else 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7800$as_echo "no" >&6; } 7801fi 7802 7803 7804fi 7805if test -z "$ac_cv_prog_DSYMUTIL"; then 7806 ac_ct_DSYMUTIL=$DSYMUTIL 7807 # Extract the first word of "dsymutil", so it can be a program name with args. 7808set dummy dsymutil; ac_word=$2 7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7810$as_echo_n "checking for $ac_word... " >&6; } 7811if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7812 $as_echo_n "(cached) " >&6 7813else 7814 if test -n "$ac_ct_DSYMUTIL"; then 7815 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7816else 7817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7818for as_dir in $PATH 7819do 7820 IFS=$as_save_IFS 7821 test -z "$as_dir" && as_dir=. 7822 for ac_exec_ext in '' $ac_executable_extensions; do 7823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7824 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7826 break 2 7827 fi 7828done 7829 done 7830IFS=$as_save_IFS 7831 7832fi 7833fi 7834ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7835if test -n "$ac_ct_DSYMUTIL"; then 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7837$as_echo "$ac_ct_DSYMUTIL" >&6; } 7838else 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7840$as_echo "no" >&6; } 7841fi 7842 7843 if test "x$ac_ct_DSYMUTIL" = x; then 7844 DSYMUTIL=":" 7845 else 7846 case $cross_compiling:$ac_tool_warned in 7847yes:) 7848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7850ac_tool_warned=yes ;; 7851esac 7852 DSYMUTIL=$ac_ct_DSYMUTIL 7853 fi 7854else 7855 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7856fi 7857 7858 if test -n "$ac_tool_prefix"; then 7859 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7860set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7862$as_echo_n "checking for $ac_word... " >&6; } 7863if ${ac_cv_prog_NMEDIT+:} false; then : 7864 $as_echo_n "(cached) " >&6 7865else 7866 if test -n "$NMEDIT"; then 7867 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7868else 7869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7870for as_dir in $PATH 7871do 7872 IFS=$as_save_IFS 7873 test -z "$as_dir" && as_dir=. 7874 for ac_exec_ext in '' $ac_executable_extensions; do 7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7876 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7878 break 2 7879 fi 7880done 7881 done 7882IFS=$as_save_IFS 7883 7884fi 7885fi 7886NMEDIT=$ac_cv_prog_NMEDIT 7887if test -n "$NMEDIT"; then 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7889$as_echo "$NMEDIT" >&6; } 7890else 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7892$as_echo "no" >&6; } 7893fi 7894 7895 7896fi 7897if test -z "$ac_cv_prog_NMEDIT"; then 7898 ac_ct_NMEDIT=$NMEDIT 7899 # Extract the first word of "nmedit", so it can be a program name with args. 7900set dummy nmedit; ac_word=$2 7901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7902$as_echo_n "checking for $ac_word... " >&6; } 7903if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7904 $as_echo_n "(cached) " >&6 7905else 7906 if test -n "$ac_ct_NMEDIT"; then 7907 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7908else 7909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7910for as_dir in $PATH 7911do 7912 IFS=$as_save_IFS 7913 test -z "$as_dir" && as_dir=. 7914 for ac_exec_ext in '' $ac_executable_extensions; do 7915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7916 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7918 break 2 7919 fi 7920done 7921 done 7922IFS=$as_save_IFS 7923 7924fi 7925fi 7926ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7927if test -n "$ac_ct_NMEDIT"; then 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7929$as_echo "$ac_ct_NMEDIT" >&6; } 7930else 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7932$as_echo "no" >&6; } 7933fi 7934 7935 if test "x$ac_ct_NMEDIT" = x; then 7936 NMEDIT=":" 7937 else 7938 case $cross_compiling:$ac_tool_warned in 7939yes:) 7940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7942ac_tool_warned=yes ;; 7943esac 7944 NMEDIT=$ac_ct_NMEDIT 7945 fi 7946else 7947 NMEDIT="$ac_cv_prog_NMEDIT" 7948fi 7949 7950 if test -n "$ac_tool_prefix"; then 7951 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7952set dummy ${ac_tool_prefix}lipo; ac_word=$2 7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7954$as_echo_n "checking for $ac_word... " >&6; } 7955if ${ac_cv_prog_LIPO+:} false; then : 7956 $as_echo_n "(cached) " >&6 7957else 7958 if test -n "$LIPO"; then 7959 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7960else 7961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7962for as_dir in $PATH 7963do 7964 IFS=$as_save_IFS 7965 test -z "$as_dir" && as_dir=. 7966 for ac_exec_ext in '' $ac_executable_extensions; do 7967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7968 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7970 break 2 7971 fi 7972done 7973 done 7974IFS=$as_save_IFS 7975 7976fi 7977fi 7978LIPO=$ac_cv_prog_LIPO 7979if test -n "$LIPO"; then 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7981$as_echo "$LIPO" >&6; } 7982else 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7984$as_echo "no" >&6; } 7985fi 7986 7987 7988fi 7989if test -z "$ac_cv_prog_LIPO"; then 7990 ac_ct_LIPO=$LIPO 7991 # Extract the first word of "lipo", so it can be a program name with args. 7992set dummy lipo; ac_word=$2 7993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7994$as_echo_n "checking for $ac_word... " >&6; } 7995if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7996 $as_echo_n "(cached) " >&6 7997else 7998 if test -n "$ac_ct_LIPO"; then 7999 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8000else 8001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8002for as_dir in $PATH 8003do 8004 IFS=$as_save_IFS 8005 test -z "$as_dir" && as_dir=. 8006 for ac_exec_ext in '' $ac_executable_extensions; do 8007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8008 ac_cv_prog_ac_ct_LIPO="lipo" 8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8010 break 2 8011 fi 8012done 8013 done 8014IFS=$as_save_IFS 8015 8016fi 8017fi 8018ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8019if test -n "$ac_ct_LIPO"; then 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8021$as_echo "$ac_ct_LIPO" >&6; } 8022else 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8024$as_echo "no" >&6; } 8025fi 8026 8027 if test "x$ac_ct_LIPO" = x; then 8028 LIPO=":" 8029 else 8030 case $cross_compiling:$ac_tool_warned in 8031yes:) 8032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8034ac_tool_warned=yes ;; 8035esac 8036 LIPO=$ac_ct_LIPO 8037 fi 8038else 8039 LIPO="$ac_cv_prog_LIPO" 8040fi 8041 8042 if test -n "$ac_tool_prefix"; then 8043 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8044set dummy ${ac_tool_prefix}otool; ac_word=$2 8045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8046$as_echo_n "checking for $ac_word... " >&6; } 8047if ${ac_cv_prog_OTOOL+:} false; then : 8048 $as_echo_n "(cached) " >&6 8049else 8050 if test -n "$OTOOL"; then 8051 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8052else 8053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8054for as_dir in $PATH 8055do 8056 IFS=$as_save_IFS 8057 test -z "$as_dir" && as_dir=. 8058 for ac_exec_ext in '' $ac_executable_extensions; do 8059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8060 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8062 break 2 8063 fi 8064done 8065 done 8066IFS=$as_save_IFS 8067 8068fi 8069fi 8070OTOOL=$ac_cv_prog_OTOOL 8071if test -n "$OTOOL"; then 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8073$as_echo "$OTOOL" >&6; } 8074else 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8076$as_echo "no" >&6; } 8077fi 8078 8079 8080fi 8081if test -z "$ac_cv_prog_OTOOL"; then 8082 ac_ct_OTOOL=$OTOOL 8083 # Extract the first word of "otool", so it can be a program name with args. 8084set dummy otool; ac_word=$2 8085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8086$as_echo_n "checking for $ac_word... " >&6; } 8087if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8088 $as_echo_n "(cached) " >&6 8089else 8090 if test -n "$ac_ct_OTOOL"; then 8091 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8092else 8093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8094for as_dir in $PATH 8095do 8096 IFS=$as_save_IFS 8097 test -z "$as_dir" && as_dir=. 8098 for ac_exec_ext in '' $ac_executable_extensions; do 8099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8100 ac_cv_prog_ac_ct_OTOOL="otool" 8101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8102 break 2 8103 fi 8104done 8105 done 8106IFS=$as_save_IFS 8107 8108fi 8109fi 8110ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8111if test -n "$ac_ct_OTOOL"; then 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8113$as_echo "$ac_ct_OTOOL" >&6; } 8114else 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8116$as_echo "no" >&6; } 8117fi 8118 8119 if test "x$ac_ct_OTOOL" = x; then 8120 OTOOL=":" 8121 else 8122 case $cross_compiling:$ac_tool_warned in 8123yes:) 8124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8126ac_tool_warned=yes ;; 8127esac 8128 OTOOL=$ac_ct_OTOOL 8129 fi 8130else 8131 OTOOL="$ac_cv_prog_OTOOL" 8132fi 8133 8134 if test -n "$ac_tool_prefix"; then 8135 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8136set dummy ${ac_tool_prefix}otool64; ac_word=$2 8137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8138$as_echo_n "checking for $ac_word... " >&6; } 8139if ${ac_cv_prog_OTOOL64+:} false; then : 8140 $as_echo_n "(cached) " >&6 8141else 8142 if test -n "$OTOOL64"; then 8143 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8144else 8145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8146for as_dir in $PATH 8147do 8148 IFS=$as_save_IFS 8149 test -z "$as_dir" && as_dir=. 8150 for ac_exec_ext in '' $ac_executable_extensions; do 8151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8152 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8154 break 2 8155 fi 8156done 8157 done 8158IFS=$as_save_IFS 8159 8160fi 8161fi 8162OTOOL64=$ac_cv_prog_OTOOL64 8163if test -n "$OTOOL64"; then 8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8165$as_echo "$OTOOL64" >&6; } 8166else 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8168$as_echo "no" >&6; } 8169fi 8170 8171 8172fi 8173if test -z "$ac_cv_prog_OTOOL64"; then 8174 ac_ct_OTOOL64=$OTOOL64 8175 # Extract the first word of "otool64", so it can be a program name with args. 8176set dummy otool64; ac_word=$2 8177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8178$as_echo_n "checking for $ac_word... " >&6; } 8179if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8180 $as_echo_n "(cached) " >&6 8181else 8182 if test -n "$ac_ct_OTOOL64"; then 8183 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8184else 8185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8186for as_dir in $PATH 8187do 8188 IFS=$as_save_IFS 8189 test -z "$as_dir" && as_dir=. 8190 for ac_exec_ext in '' $ac_executable_extensions; do 8191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8192 ac_cv_prog_ac_ct_OTOOL64="otool64" 8193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8194 break 2 8195 fi 8196done 8197 done 8198IFS=$as_save_IFS 8199 8200fi 8201fi 8202ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8203if test -n "$ac_ct_OTOOL64"; then 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8205$as_echo "$ac_ct_OTOOL64" >&6; } 8206else 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8208$as_echo "no" >&6; } 8209fi 8210 8211 if test "x$ac_ct_OTOOL64" = x; then 8212 OTOOL64=":" 8213 else 8214 case $cross_compiling:$ac_tool_warned in 8215yes:) 8216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8218ac_tool_warned=yes ;; 8219esac 8220 OTOOL64=$ac_ct_OTOOL64 8221 fi 8222else 8223 OTOOL64="$ac_cv_prog_OTOOL64" 8224fi 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8253$as_echo_n "checking for -single_module linker flag... " >&6; } 8254if ${lt_cv_apple_cc_single_mod+:} false; then : 8255 $as_echo_n "(cached) " >&6 8256else 8257 lt_cv_apple_cc_single_mod=no 8258 if test -z "$LT_MULTI_MODULE"; then 8259 # By default we will add the -single_module flag. You can override 8260 # by either setting the environment variable LT_MULTI_MODULE 8261 # non-empty at configure time, or by adding -multi_module to the 8262 # link flags. 8263 rm -rf libconftest.dylib* 8264 echo "int foo(void){return 1;}" > conftest.c 8265 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8266-dynamiclib -Wl,-single_module conftest.c" >&5 8267 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8268 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8269 _lt_result=$? 8270 # If there is a non-empty error log, and "single_module" 8271 # appears in it, assume the flag caused a linker warning 8272 if test -s conftest.err && $GREP single_module conftest.err; then 8273 cat conftest.err >&5 8274 # Otherwise, if the output was created with a 0 exit code from 8275 # the compiler, it worked. 8276 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8277 lt_cv_apple_cc_single_mod=yes 8278 else 8279 cat conftest.err >&5 8280 fi 8281 rm -rf libconftest.dylib* 8282 rm -f conftest.* 8283 fi 8284fi 8285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8286$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8287 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8289$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8290if ${lt_cv_ld_exported_symbols_list+:} false; then : 8291 $as_echo_n "(cached) " >&6 8292else 8293 lt_cv_ld_exported_symbols_list=no 8294 save_LDFLAGS=$LDFLAGS 8295 echo "_main" > conftest.sym 8296 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8298/* end confdefs.h. */ 8299 8300int 8301main () 8302{ 8303 8304 ; 8305 return 0; 8306} 8307_ACEOF 8308if ac_fn_c_try_link "$LINENO"; then : 8309 lt_cv_ld_exported_symbols_list=yes 8310else 8311 lt_cv_ld_exported_symbols_list=no 8312fi 8313rm -f core conftest.err conftest.$ac_objext \ 8314 conftest$ac_exeext conftest.$ac_ext 8315 LDFLAGS=$save_LDFLAGS 8316 8317fi 8318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8319$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8320 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8322$as_echo_n "checking for -force_load linker flag... " >&6; } 8323if ${lt_cv_ld_force_load+:} false; then : 8324 $as_echo_n "(cached) " >&6 8325else 8326 lt_cv_ld_force_load=no 8327 cat > conftest.c << _LT_EOF 8328int forced_loaded() { return 2;} 8329_LT_EOF 8330 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8331 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8332 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8333 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8334 echo "$RANLIB libconftest.a" >&5 8335 $RANLIB libconftest.a 2>&5 8336 cat > conftest.c << _LT_EOF 8337int main() { return 0;} 8338_LT_EOF 8339 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8340 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8341 _lt_result=$? 8342 if test -s conftest.err && $GREP force_load conftest.err; then 8343 cat conftest.err >&5 8344 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8345 lt_cv_ld_force_load=yes 8346 else 8347 cat conftest.err >&5 8348 fi 8349 rm -f conftest.err libconftest.a conftest conftest.c 8350 rm -rf conftest.dSYM 8351 8352fi 8353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8354$as_echo "$lt_cv_ld_force_load" >&6; } 8355 case $host_os in 8356 rhapsody* | darwin1.[012]) 8357 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8358 darwin1.*) 8359 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8360 darwin*) # darwin 5.x on 8361 # if running on 10.5 or later, the deployment target defaults 8362 # to the OS version, if on x86, and 10.4, the deployment 8363 # target defaults to 10.4. Don't you love it? 8364 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8365 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8366 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8367 10.[012][,.]*) 8368 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8369 10.*) 8370 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8371 esac 8372 ;; 8373 esac 8374 if test yes = "$lt_cv_apple_cc_single_mod"; then 8375 _lt_dar_single_mod='$single_module' 8376 fi 8377 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8378 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8379 else 8380 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8381 fi 8382 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8383 _lt_dsymutil='~$DSYMUTIL $lib || :' 8384 else 8385 _lt_dsymutil= 8386 fi 8387 ;; 8388 esac 8389 8390# func_munge_path_list VARIABLE PATH 8391# ----------------------------------- 8392# VARIABLE is name of variable containing _space_ separated list of 8393# directories to be munged by the contents of PATH, which is string 8394# having a format: 8395# "DIR[:DIR]:" 8396# string "DIR[ DIR]" will be prepended to VARIABLE 8397# ":DIR[:DIR]" 8398# string "DIR[ DIR]" will be appended to VARIABLE 8399# "DIRP[:DIRP]::[DIRA:]DIRA" 8400# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8401# "DIRA[ DIRA]" will be appended to VARIABLE 8402# "DIR[:DIR]" 8403# VARIABLE will be replaced by "DIR[ DIR]" 8404func_munge_path_list () 8405{ 8406 case x$2 in 8407 x) 8408 ;; 8409 *:) 8410 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8411 ;; 8412 x:*) 8413 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8414 ;; 8415 *::*) 8416 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8417 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8418 ;; 8419 *) 8420 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8421 ;; 8422 esac 8423} 8424 8425for ac_header in dlfcn.h 8426do : 8427 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8428" 8429if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8430 cat >>confdefs.h <<_ACEOF 8431#define HAVE_DLFCN_H 1 8432_ACEOF 8433 8434fi 8435 8436done 8437 8438 8439 8440 8441 8442# Set options 8443 8444 8445 8446 enable_dlopen=no 8447 8448 8449 enable_win32_dll=no 8450 8451 8452 # Check whether --enable-shared was given. 8453if test "${enable_shared+set}" = set; then : 8454 enableval=$enable_shared; p=${PACKAGE-default} 8455 case $enableval in 8456 yes) enable_shared=yes ;; 8457 no) enable_shared=no ;; 8458 *) 8459 enable_shared=no 8460 # Look at the argument we got. We use all the common list separators. 8461 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8462 for pkg in $enableval; do 8463 IFS=$lt_save_ifs 8464 if test "X$pkg" = "X$p"; then 8465 enable_shared=yes 8466 fi 8467 done 8468 IFS=$lt_save_ifs 8469 ;; 8470 esac 8471else 8472 enable_shared=yes 8473fi 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 # Check whether --enable-static was given. 8484if test "${enable_static+set}" = set; then : 8485 enableval=$enable_static; p=${PACKAGE-default} 8486 case $enableval in 8487 yes) enable_static=yes ;; 8488 no) enable_static=no ;; 8489 *) 8490 enable_static=no 8491 # Look at the argument we got. We use all the common list separators. 8492 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8493 for pkg in $enableval; do 8494 IFS=$lt_save_ifs 8495 if test "X$pkg" = "X$p"; then 8496 enable_static=yes 8497 fi 8498 done 8499 IFS=$lt_save_ifs 8500 ;; 8501 esac 8502else 8503 enable_static=yes 8504fi 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515# Check whether --with-pic was given. 8516if test "${with_pic+set}" = set; then : 8517 withval=$with_pic; lt_p=${PACKAGE-default} 8518 case $withval in 8519 yes|no) pic_mode=$withval ;; 8520 *) 8521 pic_mode=default 8522 # Look at the argument we got. We use all the common list separators. 8523 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8524 for lt_pkg in $withval; do 8525 IFS=$lt_save_ifs 8526 if test "X$lt_pkg" = "X$lt_p"; then 8527 pic_mode=yes 8528 fi 8529 done 8530 IFS=$lt_save_ifs 8531 ;; 8532 esac 8533else 8534 pic_mode=default 8535fi 8536 8537 8538 8539 8540 8541 8542 8543 8544 # Check whether --enable-fast-install was given. 8545if test "${enable_fast_install+set}" = set; then : 8546 enableval=$enable_fast_install; p=${PACKAGE-default} 8547 case $enableval in 8548 yes) enable_fast_install=yes ;; 8549 no) enable_fast_install=no ;; 8550 *) 8551 enable_fast_install=no 8552 # Look at the argument we got. We use all the common list separators. 8553 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8554 for pkg in $enableval; do 8555 IFS=$lt_save_ifs 8556 if test "X$pkg" = "X$p"; then 8557 enable_fast_install=yes 8558 fi 8559 done 8560 IFS=$lt_save_ifs 8561 ;; 8562 esac 8563else 8564 enable_fast_install=yes 8565fi 8566 8567 8568 8569 8570 8571 8572 8573 8574 shared_archive_member_spec= 8575case $host,$enable_shared in 8576power*-*-aix[5-9]*,yes) 8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8578$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8579 8580# Check whether --with-aix-soname was given. 8581if test "${with_aix_soname+set}" = set; then : 8582 withval=$with_aix_soname; case $withval in 8583 aix|svr4|both) 8584 ;; 8585 *) 8586 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8587 ;; 8588 esac 8589 lt_cv_with_aix_soname=$with_aix_soname 8590else 8591 if ${lt_cv_with_aix_soname+:} false; then : 8592 $as_echo_n "(cached) " >&6 8593else 8594 lt_cv_with_aix_soname=aix 8595fi 8596 8597 with_aix_soname=$lt_cv_with_aix_soname 8598fi 8599 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8601$as_echo "$with_aix_soname" >&6; } 8602 if test aix != "$with_aix_soname"; then 8603 # For the AIX way of multilib, we name the shared archive member 8604 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8605 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8606 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8607 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8608 if test 64 = "${OBJECT_MODE-32}"; then 8609 shared_archive_member_spec=shr_64 8610 else 8611 shared_archive_member_spec=shr 8612 fi 8613 fi 8614 ;; 8615*) 8616 with_aix_soname=aix 8617 ;; 8618esac 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629# This can be used to rebuild libtool when needed 8630LIBTOOL_DEPS=$ltmain 8631 8632# Always use our own libtool. 8633LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664test -z "$LN_S" && LN_S="ln -s" 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679if test -n "${ZSH_VERSION+set}"; then 8680 setopt NO_GLOB_SUBST 8681fi 8682 8683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8684$as_echo_n "checking for objdir... " >&6; } 8685if ${lt_cv_objdir+:} false; then : 8686 $as_echo_n "(cached) " >&6 8687else 8688 rm -f .libs 2>/dev/null 8689mkdir .libs 2>/dev/null 8690if test -d .libs; then 8691 lt_cv_objdir=.libs 8692else 8693 # MS-DOS does not allow filenames that begin with a dot. 8694 lt_cv_objdir=_libs 8695fi 8696rmdir .libs 2>/dev/null 8697fi 8698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8699$as_echo "$lt_cv_objdir" >&6; } 8700objdir=$lt_cv_objdir 8701 8702 8703 8704 8705 8706cat >>confdefs.h <<_ACEOF 8707#define LT_OBJDIR "$lt_cv_objdir/" 8708_ACEOF 8709 8710 8711 8712 8713case $host_os in 8714aix3*) 8715 # AIX sometimes has problems with the GCC collect2 program. For some 8716 # reason, if we set the COLLECT_NAMES environment variable, the problems 8717 # vanish in a puff of smoke. 8718 if test set != "${COLLECT_NAMES+set}"; then 8719 COLLECT_NAMES= 8720 export COLLECT_NAMES 8721 fi 8722 ;; 8723esac 8724 8725# Global variables: 8726ofile=libtool 8727can_build_shared=yes 8728 8729# All known linkers require a '.a' archive for static linking (except MSVC and 8730# ICC, which need '.lib'). 8731libext=a 8732 8733with_gnu_ld=$lt_cv_prog_gnu_ld 8734 8735old_CC=$CC 8736old_CFLAGS=$CFLAGS 8737 8738# Set sane defaults for various variables 8739test -z "$CC" && CC=cc 8740test -z "$LTCC" && LTCC=$CC 8741test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8742test -z "$LD" && LD=ld 8743test -z "$ac_objext" && ac_objext=o 8744 8745func_cc_basename $compiler 8746cc_basename=$func_cc_basename_result 8747 8748 8749# Only perform the check for file, if the check method requires it 8750test -z "$MAGIC_CMD" && MAGIC_CMD=file 8751case $deplibs_check_method in 8752file_magic*) 8753 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8755$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8756if ${lt_cv_path_MAGIC_CMD+:} false; then : 8757 $as_echo_n "(cached) " >&6 8758else 8759 case $MAGIC_CMD in 8760[\\/*] | ?:[\\/]*) 8761 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8762 ;; 8763*) 8764 lt_save_MAGIC_CMD=$MAGIC_CMD 8765 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8766 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8767 for ac_dir in $ac_dummy; do 8768 IFS=$lt_save_ifs 8769 test -z "$ac_dir" && ac_dir=. 8770 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8771 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8772 if test -n "$file_magic_test_file"; then 8773 case $deplibs_check_method in 8774 "file_magic "*) 8775 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8776 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8777 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8778 $EGREP "$file_magic_regex" > /dev/null; then 8779 : 8780 else 8781 cat <<_LT_EOF 1>&2 8782 8783*** Warning: the command libtool uses to detect shared libraries, 8784*** $file_magic_cmd, produces output that libtool cannot recognize. 8785*** The result is that libtool may fail to recognize shared libraries 8786*** as such. This will affect the creation of libtool libraries that 8787*** depend on shared libraries, but programs linked with such libtool 8788*** libraries will work regardless of this problem. Nevertheless, you 8789*** may want to report the problem to your system manager and/or to 8790*** bug-libtool@gnu.org 8791 8792_LT_EOF 8793 fi ;; 8794 esac 8795 fi 8796 break 8797 fi 8798 done 8799 IFS=$lt_save_ifs 8800 MAGIC_CMD=$lt_save_MAGIC_CMD 8801 ;; 8802esac 8803fi 8804 8805MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8806if test -n "$MAGIC_CMD"; then 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8808$as_echo "$MAGIC_CMD" >&6; } 8809else 8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8811$as_echo "no" >&6; } 8812fi 8813 8814 8815 8816 8817 8818if test -z "$lt_cv_path_MAGIC_CMD"; then 8819 if test -n "$ac_tool_prefix"; then 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8821$as_echo_n "checking for file... " >&6; } 8822if ${lt_cv_path_MAGIC_CMD+:} false; then : 8823 $as_echo_n "(cached) " >&6 8824else 8825 case $MAGIC_CMD in 8826[\\/*] | ?:[\\/]*) 8827 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8828 ;; 8829*) 8830 lt_save_MAGIC_CMD=$MAGIC_CMD 8831 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8832 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8833 for ac_dir in $ac_dummy; do 8834 IFS=$lt_save_ifs 8835 test -z "$ac_dir" && ac_dir=. 8836 if test -f "$ac_dir/file"; then 8837 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8838 if test -n "$file_magic_test_file"; then 8839 case $deplibs_check_method in 8840 "file_magic "*) 8841 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8842 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8843 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8844 $EGREP "$file_magic_regex" > /dev/null; then 8845 : 8846 else 8847 cat <<_LT_EOF 1>&2 8848 8849*** Warning: the command libtool uses to detect shared libraries, 8850*** $file_magic_cmd, produces output that libtool cannot recognize. 8851*** The result is that libtool may fail to recognize shared libraries 8852*** as such. This will affect the creation of libtool libraries that 8853*** depend on shared libraries, but programs linked with such libtool 8854*** libraries will work regardless of this problem. Nevertheless, you 8855*** may want to report the problem to your system manager and/or to 8856*** bug-libtool@gnu.org 8857 8858_LT_EOF 8859 fi ;; 8860 esac 8861 fi 8862 break 8863 fi 8864 done 8865 IFS=$lt_save_ifs 8866 MAGIC_CMD=$lt_save_MAGIC_CMD 8867 ;; 8868esac 8869fi 8870 8871MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8872if test -n "$MAGIC_CMD"; then 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8874$as_echo "$MAGIC_CMD" >&6; } 8875else 8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8877$as_echo "no" >&6; } 8878fi 8879 8880 8881 else 8882 MAGIC_CMD=: 8883 fi 8884fi 8885 8886 fi 8887 ;; 8888esac 8889 8890# Use C for the default configuration in the libtool script 8891 8892lt_save_CC=$CC 8893ac_ext=c 8894ac_cpp='$CPP $CPPFLAGS' 8895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8897ac_compiler_gnu=$ac_cv_c_compiler_gnu 8898 8899 8900# Source file extension for C test sources. 8901ac_ext=c 8902 8903# Object file extension for compiled C test sources. 8904objext=o 8905objext=$objext 8906 8907# Code to be used in simple compile tests 8908lt_simple_compile_test_code="int some_variable = 0;" 8909 8910# Code to be used in simple link tests 8911lt_simple_link_test_code='int main(){return(0);}' 8912 8913 8914 8915 8916 8917 8918 8919# If no C compiler was specified, use CC. 8920LTCC=${LTCC-"$CC"} 8921 8922# If no C compiler flags were specified, use CFLAGS. 8923LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8924 8925# Allow CC to be a program name with arguments. 8926compiler=$CC 8927 8928# Save the default compiler, since it gets overwritten when the other 8929# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8930compiler_DEFAULT=$CC 8931 8932# save warnings/boilerplate of simple test code 8933ac_outfile=conftest.$ac_objext 8934echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8935eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8936_lt_compiler_boilerplate=`cat conftest.err` 8937$RM conftest* 8938 8939ac_outfile=conftest.$ac_objext 8940echo "$lt_simple_link_test_code" >conftest.$ac_ext 8941eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8942_lt_linker_boilerplate=`cat conftest.err` 8943$RM -r conftest* 8944 8945 8946## CAVEAT EMPTOR: 8947## There is no encapsulation within the following macros, do not change 8948## the running order or otherwise move them around unless you know exactly 8949## what you are doing... 8950if test -n "$compiler"; then 8951 8952lt_prog_compiler_no_builtin_flag= 8953 8954if test yes = "$GCC"; then 8955 case $cc_basename in 8956 nvcc*) 8957 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8958 *) 8959 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8960 esac 8961 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8963$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8964if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8965 $as_echo_n "(cached) " >&6 8966else 8967 lt_cv_prog_compiler_rtti_exceptions=no 8968 ac_outfile=conftest.$ac_objext 8969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8970 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8971 # Insert the option either (1) after the last *FLAGS variable, or 8972 # (2) before a word containing "conftest.", or (3) at the end. 8973 # Note that $ac_compile itself does not contain backslashes and begins 8974 # with a dollar sign (not a hyphen), so the echo should work correctly. 8975 # The option is referenced via a variable to avoid confusing sed. 8976 lt_compile=`echo "$ac_compile" | $SED \ 8977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8979 -e 's:$: $lt_compiler_flag:'` 8980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8981 (eval "$lt_compile" 2>conftest.err) 8982 ac_status=$? 8983 cat conftest.err >&5 8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8985 if (exit $ac_status) && test -s "$ac_outfile"; then 8986 # The compiler can only warn and ignore the option if not recognized 8987 # So say no if there are warnings other than the usual output. 8988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8991 lt_cv_prog_compiler_rtti_exceptions=yes 8992 fi 8993 fi 8994 $RM conftest* 8995 8996fi 8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8998$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8999 9000if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9001 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9002else 9003 : 9004fi 9005 9006fi 9007 9008 9009 9010 9011 9012 9013 lt_prog_compiler_wl= 9014lt_prog_compiler_pic= 9015lt_prog_compiler_static= 9016 9017 9018 if test yes = "$GCC"; then 9019 lt_prog_compiler_wl='-Wl,' 9020 lt_prog_compiler_static='-static' 9021 9022 case $host_os in 9023 aix*) 9024 # All AIX code is PIC. 9025 if test ia64 = "$host_cpu"; then 9026 # AIX 5 now supports IA64 processor 9027 lt_prog_compiler_static='-Bstatic' 9028 fi 9029 lt_prog_compiler_pic='-fPIC' 9030 ;; 9031 9032 amigaos*) 9033 case $host_cpu in 9034 powerpc) 9035 # see comment about AmigaOS4 .so support 9036 lt_prog_compiler_pic='-fPIC' 9037 ;; 9038 m68k) 9039 # FIXME: we need at least 68020 code to build shared libraries, but 9040 # adding the '-m68020' flag to GCC prevents building anything better, 9041 # like '-m68040'. 9042 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9043 ;; 9044 esac 9045 ;; 9046 9047 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9048 # PIC is the default for these OSes. 9049 ;; 9050 9051 mingw* | cygwin* | pw32* | os2* | cegcc*) 9052 # This hack is so that the source file can tell whether it is being 9053 # built for inclusion in a dll (and should export symbols for example). 9054 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9055 # (--disable-auto-import) libraries 9056 lt_prog_compiler_pic='-DDLL_EXPORT' 9057 case $host_os in 9058 os2*) 9059 lt_prog_compiler_static='$wl-static' 9060 ;; 9061 esac 9062 ;; 9063 9064 darwin* | rhapsody*) 9065 # PIC is the default on this platform 9066 # Common symbols not allowed in MH_DYLIB files 9067 lt_prog_compiler_pic='-fno-common' 9068 ;; 9069 9070 haiku*) 9071 # PIC is the default for Haiku. 9072 # The "-static" flag exists, but is broken. 9073 lt_prog_compiler_static= 9074 ;; 9075 9076 hpux*) 9077 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9078 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9079 # sets the default TLS model and affects inlining. 9080 case $host_cpu in 9081 hppa*64*) 9082 # +Z the default 9083 ;; 9084 *) 9085 lt_prog_compiler_pic='-fPIC' 9086 ;; 9087 esac 9088 ;; 9089 9090 interix[3-9]*) 9091 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9092 # Instead, we relocate shared libraries at runtime. 9093 ;; 9094 9095 msdosdjgpp*) 9096 # Just because we use GCC doesn't mean we suddenly get shared libraries 9097 # on systems that don't support them. 9098 lt_prog_compiler_can_build_shared=no 9099 enable_shared=no 9100 ;; 9101 9102 *nto* | *qnx*) 9103 # QNX uses GNU C++, but need to define -shared option too, otherwise 9104 # it will coredump. 9105 lt_prog_compiler_pic='-fPIC -shared' 9106 ;; 9107 9108 sysv4*MP*) 9109 if test -d /usr/nec; then 9110 lt_prog_compiler_pic=-Kconform_pic 9111 fi 9112 ;; 9113 9114 *) 9115 lt_prog_compiler_pic='-fPIC' 9116 ;; 9117 esac 9118 9119 case $cc_basename in 9120 nvcc*) # Cuda Compiler Driver 2.2 9121 lt_prog_compiler_wl='-Xlinker ' 9122 if test -n "$lt_prog_compiler_pic"; then 9123 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9124 fi 9125 ;; 9126 esac 9127 else 9128 # PORTME Check for flag to pass linker flags through the system compiler. 9129 case $host_os in 9130 aix*) 9131 lt_prog_compiler_wl='-Wl,' 9132 if test ia64 = "$host_cpu"; then 9133 # AIX 5 now supports IA64 processor 9134 lt_prog_compiler_static='-Bstatic' 9135 else 9136 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9137 fi 9138 ;; 9139 9140 darwin* | rhapsody*) 9141 # PIC is the default on this platform 9142 # Common symbols not allowed in MH_DYLIB files 9143 lt_prog_compiler_pic='-fno-common' 9144 case $cc_basename in 9145 nagfor*) 9146 # NAG Fortran compiler 9147 lt_prog_compiler_wl='-Wl,-Wl,,' 9148 lt_prog_compiler_pic='-PIC' 9149 lt_prog_compiler_static='-Bstatic' 9150 ;; 9151 esac 9152 ;; 9153 9154 mingw* | cygwin* | pw32* | os2* | cegcc*) 9155 # This hack is so that the source file can tell whether it is being 9156 # built for inclusion in a dll (and should export symbols for example). 9157 lt_prog_compiler_pic='-DDLL_EXPORT' 9158 case $host_os in 9159 os2*) 9160 lt_prog_compiler_static='$wl-static' 9161 ;; 9162 esac 9163 ;; 9164 9165 hpux9* | hpux10* | hpux11*) 9166 lt_prog_compiler_wl='-Wl,' 9167 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9168 # not for PA HP-UX. 9169 case $host_cpu in 9170 hppa*64*|ia64*) 9171 # +Z the default 9172 ;; 9173 *) 9174 lt_prog_compiler_pic='+Z' 9175 ;; 9176 esac 9177 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9178 lt_prog_compiler_static='$wl-a ${wl}archive' 9179 ;; 9180 9181 irix5* | irix6* | nonstopux*) 9182 lt_prog_compiler_wl='-Wl,' 9183 # PIC (with -KPIC) is the default. 9184 lt_prog_compiler_static='-non_shared' 9185 ;; 9186 9187 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9188 case $cc_basename in 9189 # old Intel for x86_64, which still supported -KPIC. 9190 ecc*) 9191 lt_prog_compiler_wl='-Wl,' 9192 lt_prog_compiler_pic='-KPIC' 9193 lt_prog_compiler_static='-static' 9194 ;; 9195 # icc used to be incompatible with GCC. 9196 # ICC 10 doesn't accept -KPIC any more. 9197 icc* | ifort*) 9198 lt_prog_compiler_wl='-Wl,' 9199 lt_prog_compiler_pic='-fPIC' 9200 lt_prog_compiler_static='-static' 9201 ;; 9202 # Lahey Fortran 8.1. 9203 lf95*) 9204 lt_prog_compiler_wl='-Wl,' 9205 lt_prog_compiler_pic='--shared' 9206 lt_prog_compiler_static='--static' 9207 ;; 9208 nagfor*) 9209 # NAG Fortran compiler 9210 lt_prog_compiler_wl='-Wl,-Wl,,' 9211 lt_prog_compiler_pic='-PIC' 9212 lt_prog_compiler_static='-Bstatic' 9213 ;; 9214 tcc*) 9215 # Fabrice Bellard et al's Tiny C Compiler 9216 lt_prog_compiler_wl='-Wl,' 9217 lt_prog_compiler_pic='-fPIC' 9218 lt_prog_compiler_static='-static' 9219 ;; 9220 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9221 # Portland Group compilers (*not* the Pentium gcc compiler, 9222 # which looks to be a dead project) 9223 lt_prog_compiler_wl='-Wl,' 9224 lt_prog_compiler_pic='-fpic' 9225 lt_prog_compiler_static='-Bstatic' 9226 ;; 9227 ccc*) 9228 lt_prog_compiler_wl='-Wl,' 9229 # All Alpha code is PIC. 9230 lt_prog_compiler_static='-non_shared' 9231 ;; 9232 xl* | bgxl* | bgf* | mpixl*) 9233 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9234 lt_prog_compiler_wl='-Wl,' 9235 lt_prog_compiler_pic='-qpic' 9236 lt_prog_compiler_static='-qstaticlink' 9237 ;; 9238 *) 9239 case `$CC -V 2>&1 | sed 5q` in 9240 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9241 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9242 lt_prog_compiler_pic='-KPIC' 9243 lt_prog_compiler_static='-Bstatic' 9244 lt_prog_compiler_wl='' 9245 ;; 9246 *Sun\ F* | *Sun*Fortran*) 9247 lt_prog_compiler_pic='-KPIC' 9248 lt_prog_compiler_static='-Bstatic' 9249 lt_prog_compiler_wl='-Qoption ld ' 9250 ;; 9251 *Sun\ C*) 9252 # Sun C 5.9 9253 lt_prog_compiler_pic='-KPIC' 9254 lt_prog_compiler_static='-Bstatic' 9255 lt_prog_compiler_wl='-Wl,' 9256 ;; 9257 *Intel*\ [CF]*Compiler*) 9258 lt_prog_compiler_wl='-Wl,' 9259 lt_prog_compiler_pic='-fPIC' 9260 lt_prog_compiler_static='-static' 9261 ;; 9262 *Portland\ Group*) 9263 lt_prog_compiler_wl='-Wl,' 9264 lt_prog_compiler_pic='-fpic' 9265 lt_prog_compiler_static='-Bstatic' 9266 ;; 9267 esac 9268 ;; 9269 esac 9270 ;; 9271 9272 newsos6) 9273 lt_prog_compiler_pic='-KPIC' 9274 lt_prog_compiler_static='-Bstatic' 9275 ;; 9276 9277 *nto* | *qnx*) 9278 # QNX uses GNU C++, but need to define -shared option too, otherwise 9279 # it will coredump. 9280 lt_prog_compiler_pic='-fPIC -shared' 9281 ;; 9282 9283 osf3* | osf4* | osf5*) 9284 lt_prog_compiler_wl='-Wl,' 9285 # All OSF/1 code is PIC. 9286 lt_prog_compiler_static='-non_shared' 9287 ;; 9288 9289 rdos*) 9290 lt_prog_compiler_static='-non_shared' 9291 ;; 9292 9293 solaris*) 9294 lt_prog_compiler_pic='-KPIC' 9295 lt_prog_compiler_static='-Bstatic' 9296 case $cc_basename in 9297 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9298 lt_prog_compiler_wl='-Qoption ld ';; 9299 *) 9300 lt_prog_compiler_wl='-Wl,';; 9301 esac 9302 ;; 9303 9304 sunos4*) 9305 lt_prog_compiler_wl='-Qoption ld ' 9306 lt_prog_compiler_pic='-PIC' 9307 lt_prog_compiler_static='-Bstatic' 9308 ;; 9309 9310 sysv4 | sysv4.2uw2* | sysv4.3*) 9311 lt_prog_compiler_wl='-Wl,' 9312 lt_prog_compiler_pic='-KPIC' 9313 lt_prog_compiler_static='-Bstatic' 9314 ;; 9315 9316 sysv4*MP*) 9317 if test -d /usr/nec; then 9318 lt_prog_compiler_pic='-Kconform_pic' 9319 lt_prog_compiler_static='-Bstatic' 9320 fi 9321 ;; 9322 9323 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9324 lt_prog_compiler_wl='-Wl,' 9325 lt_prog_compiler_pic='-KPIC' 9326 lt_prog_compiler_static='-Bstatic' 9327 ;; 9328 9329 unicos*) 9330 lt_prog_compiler_wl='-Wl,' 9331 lt_prog_compiler_can_build_shared=no 9332 ;; 9333 9334 uts4*) 9335 lt_prog_compiler_pic='-pic' 9336 lt_prog_compiler_static='-Bstatic' 9337 ;; 9338 9339 *) 9340 lt_prog_compiler_can_build_shared=no 9341 ;; 9342 esac 9343 fi 9344 9345case $host_os in 9346 # For platforms that do not support PIC, -DPIC is meaningless: 9347 *djgpp*) 9348 lt_prog_compiler_pic= 9349 ;; 9350 *) 9351 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9352 ;; 9353esac 9354 9355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9356$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9357if ${lt_cv_prog_compiler_pic+:} false; then : 9358 $as_echo_n "(cached) " >&6 9359else 9360 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9361fi 9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9363$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9364lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9365 9366# 9367# Check to make sure the PIC flag actually works. 9368# 9369if test -n "$lt_prog_compiler_pic"; then 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9371$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9372if ${lt_cv_prog_compiler_pic_works+:} false; then : 9373 $as_echo_n "(cached) " >&6 9374else 9375 lt_cv_prog_compiler_pic_works=no 9376 ac_outfile=conftest.$ac_objext 9377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9378 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9379 # Insert the option either (1) after the last *FLAGS variable, or 9380 # (2) before a word containing "conftest.", or (3) at the end. 9381 # Note that $ac_compile itself does not contain backslashes and begins 9382 # with a dollar sign (not a hyphen), so the echo should work correctly. 9383 # The option is referenced via a variable to avoid confusing sed. 9384 lt_compile=`echo "$ac_compile" | $SED \ 9385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9387 -e 's:$: $lt_compiler_flag:'` 9388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9389 (eval "$lt_compile" 2>conftest.err) 9390 ac_status=$? 9391 cat conftest.err >&5 9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9393 if (exit $ac_status) && test -s "$ac_outfile"; then 9394 # The compiler can only warn and ignore the option if not recognized 9395 # So say no if there are warnings other than the usual output. 9396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9399 lt_cv_prog_compiler_pic_works=yes 9400 fi 9401 fi 9402 $RM conftest* 9403 9404fi 9405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9406$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9407 9408if test yes = "$lt_cv_prog_compiler_pic_works"; then 9409 case $lt_prog_compiler_pic in 9410 "" | " "*) ;; 9411 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9412 esac 9413else 9414 lt_prog_compiler_pic= 9415 lt_prog_compiler_can_build_shared=no 9416fi 9417 9418fi 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430# 9431# Check to make sure the static flag actually works. 9432# 9433wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9435$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9436if ${lt_cv_prog_compiler_static_works+:} false; then : 9437 $as_echo_n "(cached) " >&6 9438else 9439 lt_cv_prog_compiler_static_works=no 9440 save_LDFLAGS=$LDFLAGS 9441 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9442 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9443 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9444 # The linker can only warn and ignore the option if not recognized 9445 # So say no if there are warnings 9446 if test -s conftest.err; then 9447 # Append any errors to the config.log. 9448 cat conftest.err 1>&5 9449 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9451 if diff conftest.exp conftest.er2 >/dev/null; then 9452 lt_cv_prog_compiler_static_works=yes 9453 fi 9454 else 9455 lt_cv_prog_compiler_static_works=yes 9456 fi 9457 fi 9458 $RM -r conftest* 9459 LDFLAGS=$save_LDFLAGS 9460 9461fi 9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9463$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9464 9465if test yes = "$lt_cv_prog_compiler_static_works"; then 9466 : 9467else 9468 lt_prog_compiler_static= 9469fi 9470 9471 9472 9473 9474 9475 9476 9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9478$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9479if ${lt_cv_prog_compiler_c_o+:} false; then : 9480 $as_echo_n "(cached) " >&6 9481else 9482 lt_cv_prog_compiler_c_o=no 9483 $RM -r conftest 2>/dev/null 9484 mkdir conftest 9485 cd conftest 9486 mkdir out 9487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9488 9489 lt_compiler_flag="-o out/conftest2.$ac_objext" 9490 # Insert the option either (1) after the last *FLAGS variable, or 9491 # (2) before a word containing "conftest.", or (3) at the end. 9492 # Note that $ac_compile itself does not contain backslashes and begins 9493 # with a dollar sign (not a hyphen), so the echo should work correctly. 9494 lt_compile=`echo "$ac_compile" | $SED \ 9495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9497 -e 's:$: $lt_compiler_flag:'` 9498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9499 (eval "$lt_compile" 2>out/conftest.err) 9500 ac_status=$? 9501 cat out/conftest.err >&5 9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9503 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9504 then 9505 # The compiler can only warn and ignore the option if not recognized 9506 # So say no if there are warnings 9507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9510 lt_cv_prog_compiler_c_o=yes 9511 fi 9512 fi 9513 chmod u+w . 2>&5 9514 $RM conftest* 9515 # SGI C++ compiler will create directory out/ii_files/ for 9516 # template instantiation 9517 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9518 $RM out/* && rmdir out 9519 cd .. 9520 $RM -r conftest 9521 $RM conftest* 9522 9523fi 9524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9525$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9526 9527 9528 9529 9530 9531 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9533$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9534if ${lt_cv_prog_compiler_c_o+:} false; then : 9535 $as_echo_n "(cached) " >&6 9536else 9537 lt_cv_prog_compiler_c_o=no 9538 $RM -r conftest 2>/dev/null 9539 mkdir conftest 9540 cd conftest 9541 mkdir out 9542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9543 9544 lt_compiler_flag="-o out/conftest2.$ac_objext" 9545 # Insert the option either (1) after the last *FLAGS variable, or 9546 # (2) before a word containing "conftest.", or (3) at the end. 9547 # Note that $ac_compile itself does not contain backslashes and begins 9548 # with a dollar sign (not a hyphen), so the echo should work correctly. 9549 lt_compile=`echo "$ac_compile" | $SED \ 9550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9552 -e 's:$: $lt_compiler_flag:'` 9553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9554 (eval "$lt_compile" 2>out/conftest.err) 9555 ac_status=$? 9556 cat out/conftest.err >&5 9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9558 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9559 then 9560 # The compiler can only warn and ignore the option if not recognized 9561 # So say no if there are warnings 9562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9563 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9564 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9565 lt_cv_prog_compiler_c_o=yes 9566 fi 9567 fi 9568 chmod u+w . 2>&5 9569 $RM conftest* 9570 # SGI C++ compiler will create directory out/ii_files/ for 9571 # template instantiation 9572 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9573 $RM out/* && rmdir out 9574 cd .. 9575 $RM -r conftest 9576 $RM conftest* 9577 9578fi 9579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9580$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9581 9582 9583 9584 9585hard_links=nottested 9586if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9587 # do not overwrite the value of need_locks provided by the user 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9589$as_echo_n "checking if we can lock with hard links... " >&6; } 9590 hard_links=yes 9591 $RM conftest* 9592 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9593 touch conftest.a 9594 ln conftest.a conftest.b 2>&5 || hard_links=no 9595 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9597$as_echo "$hard_links" >&6; } 9598 if test no = "$hard_links"; then 9599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9600$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9601 need_locks=warn 9602 fi 9603else 9604 need_locks=no 9605fi 9606 9607 9608 9609 9610 9611 9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9613$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9614 9615 runpath_var= 9616 allow_undefined_flag= 9617 always_export_symbols=no 9618 archive_cmds= 9619 archive_expsym_cmds= 9620 compiler_needs_object=no 9621 enable_shared_with_static_runtimes=no 9622 export_dynamic_flag_spec= 9623 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9624 hardcode_automatic=no 9625 hardcode_direct=no 9626 hardcode_direct_absolute=no 9627 hardcode_libdir_flag_spec= 9628 hardcode_libdir_separator= 9629 hardcode_minus_L=no 9630 hardcode_shlibpath_var=unsupported 9631 inherit_rpath=no 9632 link_all_deplibs=unknown 9633 module_cmds= 9634 module_expsym_cmds= 9635 old_archive_from_new_cmds= 9636 old_archive_from_expsyms_cmds= 9637 thread_safe_flag_spec= 9638 whole_archive_flag_spec= 9639 # include_expsyms should be a list of space-separated symbols to be *always* 9640 # included in the symbol list 9641 include_expsyms= 9642 # exclude_expsyms can be an extended regexp of symbols to exclude 9643 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9644 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9645 # as well as any symbol that contains 'd'. 9646 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9647 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9648 # platforms (ab)use it in PIC code, but their linkers get confused if 9649 # the symbol is explicitly referenced. Since portable code cannot 9650 # rely on this symbol name, it's probably fine to never include it in 9651 # preloaded symbol tables. 9652 # Exclude shared library initialization/finalization symbols. 9653 extract_expsyms_cmds= 9654 9655 case $host_os in 9656 cygwin* | mingw* | pw32* | cegcc*) 9657 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9658 # When not using gcc, we currently assume that we are using 9659 # Microsoft Visual C++ or Intel C++ Compiler. 9660 if test yes != "$GCC"; then 9661 with_gnu_ld=no 9662 fi 9663 ;; 9664 interix*) 9665 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9666 with_gnu_ld=yes 9667 ;; 9668 openbsd* | bitrig*) 9669 with_gnu_ld=no 9670 ;; 9671 esac 9672 9673 ld_shlibs=yes 9674 9675 # On some targets, GNU ld is compatible enough with the native linker 9676 # that we're better off using the native interface for both. 9677 lt_use_gnu_ld_interface=no 9678 if test yes = "$with_gnu_ld"; then 9679 case $host_os in 9680 aix*) 9681 # The AIX port of GNU ld has always aspired to compatibility 9682 # with the native linker. However, as the warning in the GNU ld 9683 # block says, versions before 2.19.5* couldn't really create working 9684 # shared libraries, regardless of the interface used. 9685 case `$LD -v 2>&1` in 9686 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9687 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9688 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9689 *) 9690 lt_use_gnu_ld_interface=yes 9691 ;; 9692 esac 9693 ;; 9694 *) 9695 lt_use_gnu_ld_interface=yes 9696 ;; 9697 esac 9698 fi 9699 9700 if test yes = "$lt_use_gnu_ld_interface"; then 9701 # If archive_cmds runs LD, not CC, wlarc should be empty 9702 wlarc='$wl' 9703 9704 # Set some defaults for GNU ld with shared library support. These 9705 # are reset later if shared libraries are not supported. Putting them 9706 # here allows them to be overridden if necessary. 9707 runpath_var=LD_RUN_PATH 9708 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9709 export_dynamic_flag_spec='$wl--export-dynamic' 9710 # ancient GNU ld didn't support --whole-archive et. al. 9711 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9712 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9713 else 9714 whole_archive_flag_spec= 9715 fi 9716 supports_anon_versioning=no 9717 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9718 *GNU\ gold*) supports_anon_versioning=yes ;; 9719 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9720 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9721 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9722 *\ 2.11.*) ;; # other 2.11 versions 9723 *) supports_anon_versioning=yes ;; 9724 esac 9725 9726 # See if GNU ld supports shared libraries. 9727 case $host_os in 9728 aix[3-9]*) 9729 # On AIX/PPC, the GNU linker is very broken 9730 if test ia64 != "$host_cpu"; then 9731 ld_shlibs=no 9732 cat <<_LT_EOF 1>&2 9733 9734*** Warning: the GNU linker, at least up to release 2.19, is reported 9735*** to be unable to reliably create shared libraries on AIX. 9736*** Therefore, libtool is disabling shared libraries support. If you 9737*** really care for shared libraries, you may want to install binutils 9738*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9739*** You will then need to restart the configuration process. 9740 9741_LT_EOF 9742 fi 9743 ;; 9744 9745 amigaos*) 9746 case $host_cpu in 9747 powerpc) 9748 # see comment about AmigaOS4 .so support 9749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9750 archive_expsym_cmds='' 9751 ;; 9752 m68k) 9753 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)' 9754 hardcode_libdir_flag_spec='-L$libdir' 9755 hardcode_minus_L=yes 9756 ;; 9757 esac 9758 ;; 9759 9760 beos*) 9761 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9762 allow_undefined_flag=unsupported 9763 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9764 # support --undefined. This deserves some investigation. FIXME 9765 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9766 else 9767 ld_shlibs=no 9768 fi 9769 ;; 9770 9771 cygwin* | mingw* | pw32* | cegcc*) 9772 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9773 # as there is no search path for DLLs. 9774 hardcode_libdir_flag_spec='-L$libdir' 9775 export_dynamic_flag_spec='$wl--export-all-symbols' 9776 allow_undefined_flag=unsupported 9777 always_export_symbols=no 9778 enable_shared_with_static_runtimes=yes 9779 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' 9780 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9781 9782 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9784 # If the export-symbols file already is a .def file, use it as 9785 # is; otherwise, prepend EXPORTS... 9786 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9787 cp $export_symbols $output_objdir/$soname.def; 9788 else 9789 echo EXPORTS > $output_objdir/$soname.def; 9790 cat $export_symbols >> $output_objdir/$soname.def; 9791 fi~ 9792 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9793 else 9794 ld_shlibs=no 9795 fi 9796 ;; 9797 9798 haiku*) 9799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9800 link_all_deplibs=yes 9801 ;; 9802 9803 os2*) 9804 hardcode_libdir_flag_spec='-L$libdir' 9805 hardcode_minus_L=yes 9806 allow_undefined_flag=unsupported 9807 shrext_cmds=.dll 9808 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9809 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9810 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9811 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9812 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9813 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9814 emximp -o $lib $output_objdir/$libname.def' 9815 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9816 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9817 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9818 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9819 prefix_cmds="$SED"~ 9820 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9821 prefix_cmds="$prefix_cmds -e 1d"; 9822 fi~ 9823 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9824 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9825 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9826 emximp -o $lib $output_objdir/$libname.def' 9827 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9828 enable_shared_with_static_runtimes=yes 9829 file_list_spec='@' 9830 ;; 9831 9832 interix[3-9]*) 9833 hardcode_direct=no 9834 hardcode_shlibpath_var=no 9835 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9836 export_dynamic_flag_spec='$wl-E' 9837 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9838 # Instead, shared libraries are loaded at an image base (0x10000000 by 9839 # default) and relocated if they conflict, which is a slow very memory 9840 # consuming and fragmenting process. To avoid this, we pick a random, 9841 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9842 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9843 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9844 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' 9845 ;; 9846 9847 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9848 tmp_diet=no 9849 if test linux-dietlibc = "$host_os"; then 9850 case $cc_basename in 9851 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9852 esac 9853 fi 9854 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9855 && test no = "$tmp_diet" 9856 then 9857 tmp_addflag=' $pic_flag' 9858 tmp_sharedflag='-shared' 9859 case $cc_basename,$host_cpu in 9860 pgcc*) # Portland Group C compiler 9861 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' 9862 tmp_addflag=' $pic_flag' 9863 ;; 9864 pgf77* | pgf90* | pgf95* | pgfortran*) 9865 # Portland Group f77 and f90 compilers 9866 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' 9867 tmp_addflag=' $pic_flag -Mnomain' ;; 9868 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9869 tmp_addflag=' -i_dynamic' ;; 9870 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9871 tmp_addflag=' -i_dynamic -nofor_main' ;; 9872 ifc* | ifort*) # Intel Fortran compiler 9873 tmp_addflag=' -nofor_main' ;; 9874 lf95*) # Lahey Fortran 8.1 9875 whole_archive_flag_spec= 9876 tmp_sharedflag='--shared' ;; 9877 nagfor*) # NAGFOR 5.3 9878 tmp_sharedflag='-Wl,-shared' ;; 9879 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9880 tmp_sharedflag='-qmkshrobj' 9881 tmp_addflag= ;; 9882 nvcc*) # Cuda Compiler Driver 2.2 9883 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' 9884 compiler_needs_object=yes 9885 ;; 9886 esac 9887 case `$CC -V 2>&1 | sed 5q` in 9888 *Sun\ C*) # Sun C 5.9 9889 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' 9890 compiler_needs_object=yes 9891 tmp_sharedflag='-G' ;; 9892 *Sun\ F*) # Sun Fortran 8.3 9893 tmp_sharedflag='-G' ;; 9894 esac 9895 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9896 9897 if test yes = "$supports_anon_versioning"; then 9898 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9899 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9900 echo "local: *; };" >> $output_objdir/$libname.ver~ 9901 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9902 fi 9903 9904 case $cc_basename in 9905 tcc*) 9906 export_dynamic_flag_spec='-rdynamic' 9907 ;; 9908 xlf* | bgf* | bgxlf* | mpixlf*) 9909 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9910 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9911 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9912 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9913 if test yes = "$supports_anon_versioning"; then 9914 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9915 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9916 echo "local: *; };" >> $output_objdir/$libname.ver~ 9917 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9918 fi 9919 ;; 9920 esac 9921 else 9922 ld_shlibs=no 9923 fi 9924 ;; 9925 9926 netbsd*) 9927 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9928 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9929 wlarc= 9930 else 9931 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9932 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9933 fi 9934 ;; 9935 9936 solaris*) 9937 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9938 ld_shlibs=no 9939 cat <<_LT_EOF 1>&2 9940 9941*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9942*** create shared libraries on Solaris systems. Therefore, libtool 9943*** is disabling shared libraries support. We urge you to upgrade GNU 9944*** binutils to release 2.9.1 or newer. Another option is to modify 9945*** your PATH or compiler configuration so that the native linker is 9946*** used, and then restart. 9947 9948_LT_EOF 9949 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9950 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9951 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9952 else 9953 ld_shlibs=no 9954 fi 9955 ;; 9956 9957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9958 case `$LD -v 2>&1` in 9959 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9960 ld_shlibs=no 9961 cat <<_LT_EOF 1>&2 9962 9963*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9964*** reliably create shared libraries on SCO systems. Therefore, libtool 9965*** is disabling shared libraries support. We urge you to upgrade GNU 9966*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9967*** your PATH or compiler configuration so that the native linker is 9968*** used, and then restart. 9969 9970_LT_EOF 9971 ;; 9972 *) 9973 # For security reasons, it is highly recommended that you always 9974 # use absolute paths for naming shared libraries, and exclude the 9975 # DT_RUNPATH tag from executables and libraries. But doing so 9976 # requires that you compile everything twice, which is a pain. 9977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9978 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9980 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9981 else 9982 ld_shlibs=no 9983 fi 9984 ;; 9985 esac 9986 ;; 9987 9988 sunos4*) 9989 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9990 wlarc= 9991 hardcode_direct=yes 9992 hardcode_shlibpath_var=no 9993 ;; 9994 9995 *) 9996 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9997 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9998 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9999 else 10000 ld_shlibs=no 10001 fi 10002 ;; 10003 esac 10004 10005 if test no = "$ld_shlibs"; then 10006 runpath_var= 10007 hardcode_libdir_flag_spec= 10008 export_dynamic_flag_spec= 10009 whole_archive_flag_spec= 10010 fi 10011 else 10012 # PORTME fill in a description of your system's linker (not GNU ld) 10013 case $host_os in 10014 aix3*) 10015 allow_undefined_flag=unsupported 10016 always_export_symbols=yes 10017 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' 10018 # Note: this linker hardcodes the directories in LIBPATH if there 10019 # are no directories specified by -L. 10020 hardcode_minus_L=yes 10021 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10022 # Neither direct hardcoding nor static linking is supported with a 10023 # broken collect2. 10024 hardcode_direct=unsupported 10025 fi 10026 ;; 10027 10028 aix[4-9]*) 10029 if test ia64 = "$host_cpu"; then 10030 # On IA64, the linker does run time linking by default, so we don't 10031 # have to do anything special. 10032 aix_use_runtimelinking=no 10033 exp_sym_flag='-Bexport' 10034 no_entry_flag= 10035 else 10036 # If we're using GNU nm, then we don't want the "-C" option. 10037 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10038 # Without the "-l" option, or with the "-B" option, AIX nm treats 10039 # weak defined symbols like other global defined symbols, whereas 10040 # GNU nm marks them as "W". 10041 # While the 'weak' keyword is ignored in the Export File, we need 10042 # it in the Import File for the 'aix-soname' feature, so we have 10043 # to replace the "-B" option with "-P" for AIX nm. 10044 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10045 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10046 else 10047 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10048 fi 10049 aix_use_runtimelinking=no 10050 10051 # Test if we are trying to use run time linking or normal 10052 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10053 # have runtime linking enabled, and use it for executables. 10054 # For shared libraries, we enable/disable runtime linking 10055 # depending on the kind of the shared library created - 10056 # when "with_aix_soname,aix_use_runtimelinking" is: 10057 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10058 # "aix,yes" lib.so shared, rtl:yes, for executables 10059 # lib.a static archive 10060 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10061 # lib.a(lib.so.V) shared, rtl:no, for executables 10062 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10063 # lib.a(lib.so.V) shared, rtl:no 10064 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10065 # lib.a static archive 10066 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10067 for ld_flag in $LDFLAGS; do 10068 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10069 aix_use_runtimelinking=yes 10070 break 10071 fi 10072 done 10073 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10074 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10075 # so we don't have lib.a shared libs to link our executables. 10076 # We have to force runtime linking in this case. 10077 aix_use_runtimelinking=yes 10078 LDFLAGS="$LDFLAGS -Wl,-brtl" 10079 fi 10080 ;; 10081 esac 10082 10083 exp_sym_flag='-bexport' 10084 no_entry_flag='-bnoentry' 10085 fi 10086 10087 # When large executables or shared objects are built, AIX ld can 10088 # have problems creating the table of contents. If linking a library 10089 # or program results in "error TOC overflow" add -mminimal-toc to 10090 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10091 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10092 10093 archive_cmds='' 10094 hardcode_direct=yes 10095 hardcode_direct_absolute=yes 10096 hardcode_libdir_separator=':' 10097 link_all_deplibs=yes 10098 file_list_spec='$wl-f,' 10099 case $with_aix_soname,$aix_use_runtimelinking in 10100 aix,*) ;; # traditional, no import file 10101 svr4,* | *,yes) # use import file 10102 # The Import File defines what to hardcode. 10103 hardcode_direct=no 10104 hardcode_direct_absolute=no 10105 ;; 10106 esac 10107 10108 if test yes = "$GCC"; then 10109 case $host_os in aix4.[012]|aix4.[012].*) 10110 # We only want to do this on AIX 4.2 and lower, the check 10111 # below for broken collect2 doesn't work under 4.3+ 10112 collect2name=`$CC -print-prog-name=collect2` 10113 if test -f "$collect2name" && 10114 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10115 then 10116 # We have reworked collect2 10117 : 10118 else 10119 # We have old collect2 10120 hardcode_direct=unsupported 10121 # It fails to find uninstalled libraries when the uninstalled 10122 # path is not listed in the libpath. Setting hardcode_minus_L 10123 # to unsupported forces relinking 10124 hardcode_minus_L=yes 10125 hardcode_libdir_flag_spec='-L$libdir' 10126 hardcode_libdir_separator= 10127 fi 10128 ;; 10129 esac 10130 shared_flag='-shared' 10131 if test yes = "$aix_use_runtimelinking"; then 10132 shared_flag="$shared_flag "'$wl-G' 10133 fi 10134 # Need to ensure runtime linking is disabled for the traditional 10135 # shared library, or the linker may eventually find shared libraries 10136 # /with/ Import File - we do not want to mix them. 10137 shared_flag_aix='-shared' 10138 shared_flag_svr4='-shared $wl-G' 10139 else 10140 # not using gcc 10141 if test ia64 = "$host_cpu"; then 10142 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10143 # chokes on -Wl,-G. The following line is correct: 10144 shared_flag='-G' 10145 else 10146 if test yes = "$aix_use_runtimelinking"; then 10147 shared_flag='$wl-G' 10148 else 10149 shared_flag='$wl-bM:SRE' 10150 fi 10151 shared_flag_aix='$wl-bM:SRE' 10152 shared_flag_svr4='$wl-G' 10153 fi 10154 fi 10155 10156 export_dynamic_flag_spec='$wl-bexpall' 10157 # It seems that -bexpall does not export symbols beginning with 10158 # underscore (_), so it is better to generate a list of symbols to export. 10159 always_export_symbols=yes 10160 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10161 # Warning - without using the other runtime loading flags (-brtl), 10162 # -berok will link without error, but may produce a broken library. 10163 allow_undefined_flag='-berok' 10164 # Determine the default libpath from the value encoded in an 10165 # empty executable. 10166 if test set = "${lt_cv_aix_libpath+set}"; then 10167 aix_libpath=$lt_cv_aix_libpath 10168else 10169 if ${lt_cv_aix_libpath_+:} false; then : 10170 $as_echo_n "(cached) " >&6 10171else 10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10173/* end confdefs.h. */ 10174 10175int 10176main () 10177{ 10178 10179 ; 10180 return 0; 10181} 10182_ACEOF 10183if ac_fn_c_try_link "$LINENO"; then : 10184 10185 lt_aix_libpath_sed=' 10186 /Import File Strings/,/^$/ { 10187 /^0/ { 10188 s/^0 *\([^ ]*\) *$/\1/ 10189 p 10190 } 10191 }' 10192 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10193 # Check for a 64-bit object if we didn't find anything. 10194 if test -z "$lt_cv_aix_libpath_"; then 10195 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10196 fi 10197fi 10198rm -f core conftest.err conftest.$ac_objext \ 10199 conftest$ac_exeext conftest.$ac_ext 10200 if test -z "$lt_cv_aix_libpath_"; then 10201 lt_cv_aix_libpath_=/usr/lib:/lib 10202 fi 10203 10204fi 10205 10206 aix_libpath=$lt_cv_aix_libpath_ 10207fi 10208 10209 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10210 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10211 else 10212 if test ia64 = "$host_cpu"; then 10213 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10214 allow_undefined_flag="-z nodefs" 10215 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" 10216 else 10217 # Determine the default libpath from the value encoded in an 10218 # empty executable. 10219 if test set = "${lt_cv_aix_libpath+set}"; then 10220 aix_libpath=$lt_cv_aix_libpath 10221else 10222 if ${lt_cv_aix_libpath_+:} false; then : 10223 $as_echo_n "(cached) " >&6 10224else 10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10226/* end confdefs.h. */ 10227 10228int 10229main () 10230{ 10231 10232 ; 10233 return 0; 10234} 10235_ACEOF 10236if ac_fn_c_try_link "$LINENO"; then : 10237 10238 lt_aix_libpath_sed=' 10239 /Import File Strings/,/^$/ { 10240 /^0/ { 10241 s/^0 *\([^ ]*\) *$/\1/ 10242 p 10243 } 10244 }' 10245 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10246 # Check for a 64-bit object if we didn't find anything. 10247 if test -z "$lt_cv_aix_libpath_"; then 10248 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10249 fi 10250fi 10251rm -f core conftest.err conftest.$ac_objext \ 10252 conftest$ac_exeext conftest.$ac_ext 10253 if test -z "$lt_cv_aix_libpath_"; then 10254 lt_cv_aix_libpath_=/usr/lib:/lib 10255 fi 10256 10257fi 10258 10259 aix_libpath=$lt_cv_aix_libpath_ 10260fi 10261 10262 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10263 # Warning - without using the other run time loading flags, 10264 # -berok will link without error, but may produce a broken library. 10265 no_undefined_flag=' $wl-bernotok' 10266 allow_undefined_flag=' $wl-berok' 10267 if test yes = "$with_gnu_ld"; then 10268 # We only use this code for GNU lds that support --whole-archive. 10269 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10270 else 10271 # Exported symbols can be pulled into shared objects from archives 10272 whole_archive_flag_spec='$convenience' 10273 fi 10274 archive_cmds_need_lc=yes 10275 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10276 # -brtl affects multiple linker settings, -berok does not and is overridden later 10277 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10278 if test svr4 != "$with_aix_soname"; then 10279 # This is similar to how AIX traditionally builds its shared libraries. 10280 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10281 fi 10282 if test aix != "$with_aix_soname"; then 10283 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10284 else 10285 # used by -dlpreopen to get the symbols 10286 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10287 fi 10288 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10289 fi 10290 fi 10291 ;; 10292 10293 amigaos*) 10294 case $host_cpu in 10295 powerpc) 10296 # see comment about AmigaOS4 .so support 10297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10298 archive_expsym_cmds='' 10299 ;; 10300 m68k) 10301 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)' 10302 hardcode_libdir_flag_spec='-L$libdir' 10303 hardcode_minus_L=yes 10304 ;; 10305 esac 10306 ;; 10307 10308 bsdi[45]*) 10309 export_dynamic_flag_spec=-rdynamic 10310 ;; 10311 10312 cygwin* | mingw* | pw32* | cegcc*) 10313 # When not using gcc, we currently assume that we are using 10314 # Microsoft Visual C++ or Intel C++ Compiler. 10315 # hardcode_libdir_flag_spec is actually meaningless, as there is 10316 # no search path for DLLs. 10317 case $cc_basename in 10318 cl* | icl*) 10319 # Native MSVC or ICC 10320 hardcode_libdir_flag_spec=' ' 10321 allow_undefined_flag=unsupported 10322 always_export_symbols=yes 10323 file_list_spec='@' 10324 # Tell ltmain to make .lib files, not .a files. 10325 libext=lib 10326 # Tell ltmain to make .dll files, not .so files. 10327 shrext_cmds=.dll 10328 # FIXME: Setting linknames here is a bad hack. 10329 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10330 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10331 cp "$export_symbols" "$output_objdir/$soname.def"; 10332 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10333 else 10334 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10335 fi~ 10336 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10337 linknames=' 10338 # The linker will not automatically build a static lib if we build a DLL. 10339 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10340 enable_shared_with_static_runtimes=yes 10341 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10342 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10343 # Don't use ranlib 10344 old_postinstall_cmds='chmod 644 $oldlib' 10345 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10346 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10347 case $lt_outputfile in 10348 *.exe|*.EXE) ;; 10349 *) 10350 lt_outputfile=$lt_outputfile.exe 10351 lt_tool_outputfile=$lt_tool_outputfile.exe 10352 ;; 10353 esac~ 10354 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10355 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10356 $RM "$lt_outputfile.manifest"; 10357 fi' 10358 ;; 10359 *) 10360 # Assume MSVC and ICC wrapper 10361 hardcode_libdir_flag_spec=' ' 10362 allow_undefined_flag=unsupported 10363 # Tell ltmain to make .lib files, not .a files. 10364 libext=lib 10365 # Tell ltmain to make .dll files, not .so files. 10366 shrext_cmds=.dll 10367 # FIXME: Setting linknames here is a bad hack. 10368 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10369 # The linker will automatically build a .lib file if we build a DLL. 10370 old_archive_from_new_cmds='true' 10371 # FIXME: Should let the user specify the lib program. 10372 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10373 enable_shared_with_static_runtimes=yes 10374 ;; 10375 esac 10376 ;; 10377 10378 darwin* | rhapsody*) 10379 10380 10381 archive_cmds_need_lc=no 10382 hardcode_direct=no 10383 hardcode_automatic=yes 10384 hardcode_shlibpath_var=unsupported 10385 if test yes = "$lt_cv_ld_force_load"; then 10386 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\"`' 10387 10388 else 10389 whole_archive_flag_spec='' 10390 fi 10391 link_all_deplibs=yes 10392 allow_undefined_flag=$_lt_dar_allow_undefined 10393 case $cc_basename in 10394 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10395 *) _lt_dar_can_shared=$GCC ;; 10396 esac 10397 if test yes = "$_lt_dar_can_shared"; then 10398 output_verbose_link_cmd=func_echo_all 10399 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10400 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10401 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" 10402 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" 10403 10404 else 10405 ld_shlibs=no 10406 fi 10407 10408 ;; 10409 10410 dgux*) 10411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10412 hardcode_libdir_flag_spec='-L$libdir' 10413 hardcode_shlibpath_var=no 10414 ;; 10415 10416 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10417 # support. Future versions do this automatically, but an explicit c++rt0.o 10418 # does not break anything, and helps significantly (at the cost of a little 10419 # extra space). 10420 freebsd2.2*) 10421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10422 hardcode_libdir_flag_spec='-R$libdir' 10423 hardcode_direct=yes 10424 hardcode_shlibpath_var=no 10425 ;; 10426 10427 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10428 freebsd2.*) 10429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10430 hardcode_direct=yes 10431 hardcode_minus_L=yes 10432 hardcode_shlibpath_var=no 10433 ;; 10434 10435 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10436 freebsd* | dragonfly*) 10437 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10438 hardcode_libdir_flag_spec='-R$libdir' 10439 hardcode_direct=yes 10440 hardcode_shlibpath_var=no 10441 ;; 10442 10443 hpux9*) 10444 if test yes = "$GCC"; then 10445 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10446 else 10447 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10448 fi 10449 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10450 hardcode_libdir_separator=: 10451 hardcode_direct=yes 10452 10453 # hardcode_minus_L: Not really in the search PATH, 10454 # but as the default location of the library. 10455 hardcode_minus_L=yes 10456 export_dynamic_flag_spec='$wl-E' 10457 ;; 10458 10459 hpux10*) 10460 if test yes,no = "$GCC,$with_gnu_ld"; then 10461 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10462 else 10463 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10464 fi 10465 if test no = "$with_gnu_ld"; then 10466 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10467 hardcode_libdir_separator=: 10468 hardcode_direct=yes 10469 hardcode_direct_absolute=yes 10470 export_dynamic_flag_spec='$wl-E' 10471 # hardcode_minus_L: Not really in the search PATH, 10472 # but as the default location of the library. 10473 hardcode_minus_L=yes 10474 fi 10475 ;; 10476 10477 hpux11*) 10478 if test yes,no = "$GCC,$with_gnu_ld"; then 10479 case $host_cpu in 10480 hppa*64*) 10481 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10482 ;; 10483 ia64*) 10484 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10485 ;; 10486 *) 10487 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10488 ;; 10489 esac 10490 else 10491 case $host_cpu in 10492 hppa*64*) 10493 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10494 ;; 10495 ia64*) 10496 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10497 ;; 10498 *) 10499 10500 # Older versions of the 11.00 compiler do not understand -b yet 10501 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10503$as_echo_n "checking if $CC understands -b... " >&6; } 10504if ${lt_cv_prog_compiler__b+:} false; then : 10505 $as_echo_n "(cached) " >&6 10506else 10507 lt_cv_prog_compiler__b=no 10508 save_LDFLAGS=$LDFLAGS 10509 LDFLAGS="$LDFLAGS -b" 10510 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10511 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10512 # The linker can only warn and ignore the option if not recognized 10513 # So say no if there are warnings 10514 if test -s conftest.err; then 10515 # Append any errors to the config.log. 10516 cat conftest.err 1>&5 10517 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10519 if diff conftest.exp conftest.er2 >/dev/null; then 10520 lt_cv_prog_compiler__b=yes 10521 fi 10522 else 10523 lt_cv_prog_compiler__b=yes 10524 fi 10525 fi 10526 $RM -r conftest* 10527 LDFLAGS=$save_LDFLAGS 10528 10529fi 10530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10531$as_echo "$lt_cv_prog_compiler__b" >&6; } 10532 10533if test yes = "$lt_cv_prog_compiler__b"; then 10534 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10535else 10536 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10537fi 10538 10539 ;; 10540 esac 10541 fi 10542 if test no = "$with_gnu_ld"; then 10543 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10544 hardcode_libdir_separator=: 10545 10546 case $host_cpu in 10547 hppa*64*|ia64*) 10548 hardcode_direct=no 10549 hardcode_shlibpath_var=no 10550 ;; 10551 *) 10552 hardcode_direct=yes 10553 hardcode_direct_absolute=yes 10554 export_dynamic_flag_spec='$wl-E' 10555 10556 # hardcode_minus_L: Not really in the search PATH, 10557 # but as the default location of the library. 10558 hardcode_minus_L=yes 10559 ;; 10560 esac 10561 fi 10562 ;; 10563 10564 irix5* | irix6* | nonstopux*) 10565 if test yes = "$GCC"; then 10566 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' 10567 # Try to use the -exported_symbol ld option, if it does not 10568 # work, assume that -exports_file does not work either and 10569 # implicitly export all symbols. 10570 # This should be the same for all languages, so no per-tag cache variable. 10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10572$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10573if ${lt_cv_irix_exported_symbol+:} false; then : 10574 $as_echo_n "(cached) " >&6 10575else 10576 save_LDFLAGS=$LDFLAGS 10577 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10579/* end confdefs.h. */ 10580int foo (void) { return 0; } 10581_ACEOF 10582if ac_fn_c_try_link "$LINENO"; then : 10583 lt_cv_irix_exported_symbol=yes 10584else 10585 lt_cv_irix_exported_symbol=no 10586fi 10587rm -f core conftest.err conftest.$ac_objext \ 10588 conftest$ac_exeext conftest.$ac_ext 10589 LDFLAGS=$save_LDFLAGS 10590fi 10591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10592$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10593 if test yes = "$lt_cv_irix_exported_symbol"; then 10594 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' 10595 fi 10596 else 10597 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' 10598 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' 10599 fi 10600 archive_cmds_need_lc='no' 10601 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10602 hardcode_libdir_separator=: 10603 inherit_rpath=yes 10604 link_all_deplibs=yes 10605 ;; 10606 10607 linux*) 10608 case $cc_basename in 10609 tcc*) 10610 # Fabrice Bellard et al's Tiny C Compiler 10611 ld_shlibs=yes 10612 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10613 ;; 10614 esac 10615 ;; 10616 10617 netbsd*) 10618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10620 else 10621 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10622 fi 10623 hardcode_libdir_flag_spec='-R$libdir' 10624 hardcode_direct=yes 10625 hardcode_shlibpath_var=no 10626 ;; 10627 10628 newsos6) 10629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10630 hardcode_direct=yes 10631 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10632 hardcode_libdir_separator=: 10633 hardcode_shlibpath_var=no 10634 ;; 10635 10636 *nto* | *qnx*) 10637 ;; 10638 10639 openbsd* | bitrig*) 10640 if test -f /usr/libexec/ld.so; then 10641 hardcode_direct=yes 10642 hardcode_shlibpath_var=no 10643 hardcode_direct_absolute=yes 10644 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10645 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10646 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10647 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10648 export_dynamic_flag_spec='$wl-E' 10649 else 10650 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10651 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10652 fi 10653 else 10654 ld_shlibs=no 10655 fi 10656 ;; 10657 10658 os2*) 10659 hardcode_libdir_flag_spec='-L$libdir' 10660 hardcode_minus_L=yes 10661 allow_undefined_flag=unsupported 10662 shrext_cmds=.dll 10663 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10664 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10665 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10666 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10667 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10668 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10669 emximp -o $lib $output_objdir/$libname.def' 10670 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10671 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10672 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10673 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10674 prefix_cmds="$SED"~ 10675 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10676 prefix_cmds="$prefix_cmds -e 1d"; 10677 fi~ 10678 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10679 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10680 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10681 emximp -o $lib $output_objdir/$libname.def' 10682 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10683 enable_shared_with_static_runtimes=yes 10684 file_list_spec='@' 10685 ;; 10686 10687 osf3*) 10688 if test yes = "$GCC"; then 10689 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10690 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' 10691 else 10692 allow_undefined_flag=' -expect_unresolved \*' 10693 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' 10694 fi 10695 archive_cmds_need_lc='no' 10696 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10697 hardcode_libdir_separator=: 10698 ;; 10699 10700 osf4* | osf5*) # as osf3* with the addition of -msym flag 10701 if test yes = "$GCC"; then 10702 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10703 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' 10704 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10705 else 10706 allow_undefined_flag=' -expect_unresolved \*' 10707 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' 10708 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~ 10709 $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' 10710 10711 # Both c and cxx compiler support -rpath directly 10712 hardcode_libdir_flag_spec='-rpath $libdir' 10713 fi 10714 archive_cmds_need_lc='no' 10715 hardcode_libdir_separator=: 10716 ;; 10717 10718 solaris*) 10719 no_undefined_flag=' -z defs' 10720 if test yes = "$GCC"; then 10721 wlarc='$wl' 10722 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10723 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10724 $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' 10725 else 10726 case `$CC -V 2>&1` in 10727 *"Compilers 5.0"*) 10728 wlarc='' 10729 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10730 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10731 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10732 ;; 10733 *) 10734 wlarc='$wl' 10735 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10736 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10737 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10738 ;; 10739 esac 10740 fi 10741 hardcode_libdir_flag_spec='-R$libdir' 10742 hardcode_shlibpath_var=no 10743 case $host_os in 10744 solaris2.[0-5] | solaris2.[0-5].*) ;; 10745 *) 10746 # The compiler driver will combine and reorder linker options, 10747 # but understands '-z linker_flag'. GCC discards it without '$wl', 10748 # but is careful enough not to reorder. 10749 # Supported since Solaris 2.6 (maybe 2.5.1?) 10750 if test yes = "$GCC"; then 10751 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10752 else 10753 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10754 fi 10755 ;; 10756 esac 10757 link_all_deplibs=yes 10758 ;; 10759 10760 sunos4*) 10761 if test sequent = "$host_vendor"; then 10762 # Use $CC to link under sequent, because it throws in some extra .o 10763 # files that make .init and .fini sections work. 10764 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10765 else 10766 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10767 fi 10768 hardcode_libdir_flag_spec='-L$libdir' 10769 hardcode_direct=yes 10770 hardcode_minus_L=yes 10771 hardcode_shlibpath_var=no 10772 ;; 10773 10774 sysv4) 10775 case $host_vendor in 10776 sni) 10777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10778 hardcode_direct=yes # is this really true??? 10779 ;; 10780 siemens) 10781 ## LD is ld it makes a PLAMLIB 10782 ## CC just makes a GrossModule. 10783 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10784 reload_cmds='$CC -r -o $output$reload_objs' 10785 hardcode_direct=no 10786 ;; 10787 motorola) 10788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10789 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10790 ;; 10791 esac 10792 runpath_var='LD_RUN_PATH' 10793 hardcode_shlibpath_var=no 10794 ;; 10795 10796 sysv4.3*) 10797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10798 hardcode_shlibpath_var=no 10799 export_dynamic_flag_spec='-Bexport' 10800 ;; 10801 10802 sysv4*MP*) 10803 if test -d /usr/nec; then 10804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10805 hardcode_shlibpath_var=no 10806 runpath_var=LD_RUN_PATH 10807 hardcode_runpath_var=yes 10808 ld_shlibs=yes 10809 fi 10810 ;; 10811 10812 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10813 no_undefined_flag='$wl-z,text' 10814 archive_cmds_need_lc=no 10815 hardcode_shlibpath_var=no 10816 runpath_var='LD_RUN_PATH' 10817 10818 if test yes = "$GCC"; then 10819 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10820 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10821 else 10822 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10823 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10824 fi 10825 ;; 10826 10827 sysv5* | sco3.2v5* | sco5v6*) 10828 # Note: We CANNOT use -z defs as we might desire, because we do not 10829 # link with -lc, and that would cause any symbols used from libc to 10830 # always be unresolved, which means just about no library would 10831 # ever link correctly. If we're not using GNU ld we use -z text 10832 # though, which does catch some bad symbols but isn't as heavy-handed 10833 # as -z defs. 10834 no_undefined_flag='$wl-z,text' 10835 allow_undefined_flag='$wl-z,nodefs' 10836 archive_cmds_need_lc=no 10837 hardcode_shlibpath_var=no 10838 hardcode_libdir_flag_spec='$wl-R,$libdir' 10839 hardcode_libdir_separator=':' 10840 link_all_deplibs=yes 10841 export_dynamic_flag_spec='$wl-Bexport' 10842 runpath_var='LD_RUN_PATH' 10843 10844 if test yes = "$GCC"; then 10845 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10846 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10847 else 10848 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10849 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10850 fi 10851 ;; 10852 10853 uts4*) 10854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10855 hardcode_libdir_flag_spec='-L$libdir' 10856 hardcode_shlibpath_var=no 10857 ;; 10858 10859 *) 10860 ld_shlibs=no 10861 ;; 10862 esac 10863 10864 if test sni = "$host_vendor"; then 10865 case $host in 10866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10867 export_dynamic_flag_spec='$wl-Blargedynsym' 10868 ;; 10869 esac 10870 fi 10871 fi 10872 10873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10874$as_echo "$ld_shlibs" >&6; } 10875test no = "$ld_shlibs" && can_build_shared=no 10876 10877with_gnu_ld=$with_gnu_ld 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893# 10894# Do we need to explicitly link libc? 10895# 10896case "x$archive_cmds_need_lc" in 10897x|xyes) 10898 # Assume -lc should be added 10899 archive_cmds_need_lc=yes 10900 10901 if test yes,yes = "$GCC,$enable_shared"; then 10902 case $archive_cmds in 10903 *'~'*) 10904 # FIXME: we may have to deal with multi-command sequences. 10905 ;; 10906 '$CC '*) 10907 # Test whether the compiler implicitly links with -lc since on some 10908 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10909 # to ld, don't add -lc before -lgcc. 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10911$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10912if ${lt_cv_archive_cmds_need_lc+:} false; then : 10913 $as_echo_n "(cached) " >&6 10914else 10915 $RM conftest* 10916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10917 10918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10919 (eval $ac_compile) 2>&5 10920 ac_status=$? 10921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10922 test $ac_status = 0; } 2>conftest.err; then 10923 soname=conftest 10924 lib=conftest 10925 libobjs=conftest.$ac_objext 10926 deplibs= 10927 wl=$lt_prog_compiler_wl 10928 pic_flag=$lt_prog_compiler_pic 10929 compiler_flags=-v 10930 linker_flags=-v 10931 verstring= 10932 output_objdir=. 10933 libname=conftest 10934 lt_save_allow_undefined_flag=$allow_undefined_flag 10935 allow_undefined_flag= 10936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10937 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10938 ac_status=$? 10939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10940 test $ac_status = 0; } 10941 then 10942 lt_cv_archive_cmds_need_lc=no 10943 else 10944 lt_cv_archive_cmds_need_lc=yes 10945 fi 10946 allow_undefined_flag=$lt_save_allow_undefined_flag 10947 else 10948 cat conftest.err 1>&5 10949 fi 10950 $RM conftest* 10951 10952fi 10953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10954$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10955 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10956 ;; 10957 esac 10958 fi 10959 ;; 10960esac 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11114$as_echo_n "checking dynamic linker characteristics... " >&6; } 11115 11116if test yes = "$GCC"; then 11117 case $host_os in 11118 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11119 *) lt_awk_arg='/^libraries:/' ;; 11120 esac 11121 case $host_os in 11122 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11123 *) lt_sed_strip_eq='s|=/|/|g' ;; 11124 esac 11125 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11126 case $lt_search_path_spec in 11127 *\;*) 11128 # if the path contains ";" then we assume it to be the separator 11129 # otherwise default to the standard path separator (i.e. ":") - it is 11130 # assumed that no part of a normal pathname contains ";" but that should 11131 # okay in the real world where ";" in dirpaths is itself problematic. 11132 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11133 ;; 11134 *) 11135 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11136 ;; 11137 esac 11138 # Ok, now we have the path, separated by spaces, we can step through it 11139 # and add multilib dir if necessary... 11140 lt_tmp_lt_search_path_spec= 11141 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11142 # ...but if some path component already ends with the multilib dir we assume 11143 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11144 case "$lt_multi_os_dir; $lt_search_path_spec " in 11145 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11146 lt_multi_os_dir= 11147 ;; 11148 esac 11149 for lt_sys_path in $lt_search_path_spec; do 11150 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11151 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11152 elif test -n "$lt_multi_os_dir"; then 11153 test -d "$lt_sys_path" && \ 11154 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11155 fi 11156 done 11157 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11158BEGIN {RS = " "; FS = "/|\n";} { 11159 lt_foo = ""; 11160 lt_count = 0; 11161 for (lt_i = NF; lt_i > 0; lt_i--) { 11162 if ($lt_i != "" && $lt_i != ".") { 11163 if ($lt_i == "..") { 11164 lt_count++; 11165 } else { 11166 if (lt_count == 0) { 11167 lt_foo = "/" $lt_i lt_foo; 11168 } else { 11169 lt_count--; 11170 } 11171 } 11172 } 11173 } 11174 if (lt_foo != "") { lt_freq[lt_foo]++; } 11175 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11176}'` 11177 # AWK program above erroneously prepends '/' to C:/dos/paths 11178 # for these hosts. 11179 case $host_os in 11180 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11181 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11182 esac 11183 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11184else 11185 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11186fi 11187library_names_spec= 11188libname_spec='lib$name' 11189soname_spec= 11190shrext_cmds=.so 11191postinstall_cmds= 11192postuninstall_cmds= 11193finish_cmds= 11194finish_eval= 11195shlibpath_var= 11196shlibpath_overrides_runpath=unknown 11197version_type=none 11198dynamic_linker="$host_os ld.so" 11199sys_lib_dlsearch_path_spec="/lib /usr/lib" 11200need_lib_prefix=unknown 11201hardcode_into_libs=no 11202 11203# when you set need_version to no, make sure it does not cause -set_version 11204# flags to be left without arguments 11205need_version=unknown 11206 11207 11208 11209case $host_os in 11210aix3*) 11211 version_type=linux # correct to gnu/linux during the next big refactor 11212 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11213 shlibpath_var=LIBPATH 11214 11215 # AIX 3 has no versioning support, so we append a major version to the name. 11216 soname_spec='$libname$release$shared_ext$major' 11217 ;; 11218 11219aix[4-9]*) 11220 version_type=linux # correct to gnu/linux during the next big refactor 11221 need_lib_prefix=no 11222 need_version=no 11223 hardcode_into_libs=yes 11224 if test ia64 = "$host_cpu"; then 11225 # AIX 5 supports IA64 11226 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11227 shlibpath_var=LD_LIBRARY_PATH 11228 else 11229 # With GCC up to 2.95.x, collect2 would create an import file 11230 # for dependence libraries. The import file would start with 11231 # the line '#! .'. This would cause the generated library to 11232 # depend on '.', always an invalid library. This was fixed in 11233 # development snapshots of GCC prior to 3.0. 11234 case $host_os in 11235 aix4 | aix4.[01] | aix4.[01].*) 11236 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11237 echo ' yes ' 11238 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11239 : 11240 else 11241 can_build_shared=no 11242 fi 11243 ;; 11244 esac 11245 # Using Import Files as archive members, it is possible to support 11246 # filename-based versioning of shared library archives on AIX. While 11247 # this would work for both with and without runtime linking, it will 11248 # prevent static linking of such archives. So we do filename-based 11249 # shared library versioning with .so extension only, which is used 11250 # when both runtime linking and shared linking is enabled. 11251 # Unfortunately, runtime linking may impact performance, so we do 11252 # not want this to be the default eventually. Also, we use the 11253 # versioned .so libs for executables only if there is the -brtl 11254 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11255 # To allow for filename-based versioning support, we need to create 11256 # libNAME.so.V as an archive file, containing: 11257 # *) an Import File, referring to the versioned filename of the 11258 # archive as well as the shared archive member, telling the 11259 # bitwidth (32 or 64) of that shared object, and providing the 11260 # list of exported symbols of that shared object, eventually 11261 # decorated with the 'weak' keyword 11262 # *) the shared object with the F_LOADONLY flag set, to really avoid 11263 # it being seen by the linker. 11264 # At run time we better use the real file rather than another symlink, 11265 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11266 11267 case $with_aix_soname,$aix_use_runtimelinking in 11268 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11269 # soname into executable. Probably we can add versioning support to 11270 # collect2, so additional links can be useful in future. 11271 aix,yes) # traditional libtool 11272 dynamic_linker='AIX unversionable lib.so' 11273 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11274 # instead of lib<name>.a to let people know that these are not 11275 # typical AIX shared libraries. 11276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11277 ;; 11278 aix,no) # traditional AIX only 11279 dynamic_linker='AIX lib.a(lib.so.V)' 11280 # We preserve .a as extension for shared libraries through AIX4.2 11281 # and later when we are not doing run time linking. 11282 library_names_spec='$libname$release.a $libname.a' 11283 soname_spec='$libname$release$shared_ext$major' 11284 ;; 11285 svr4,*) # full svr4 only 11286 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11287 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11288 # We do not specify a path in Import Files, so LIBPATH fires. 11289 shlibpath_overrides_runpath=yes 11290 ;; 11291 *,yes) # both, prefer svr4 11292 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11293 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11294 # unpreferred sharedlib libNAME.a needs extra handling 11295 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11296 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11297 # We do not specify a path in Import Files, so LIBPATH fires. 11298 shlibpath_overrides_runpath=yes 11299 ;; 11300 *,no) # both, prefer aix 11301 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11302 library_names_spec='$libname$release.a $libname.a' 11303 soname_spec='$libname$release$shared_ext$major' 11304 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11305 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11306 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11307 ;; 11308 esac 11309 shlibpath_var=LIBPATH 11310 fi 11311 ;; 11312 11313amigaos*) 11314 case $host_cpu in 11315 powerpc) 11316 # Since July 2007 AmigaOS4 officially supports .so libraries. 11317 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11319 ;; 11320 m68k) 11321 library_names_spec='$libname.ixlibrary $libname.a' 11322 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11323 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 11324 ;; 11325 esac 11326 ;; 11327 11328beos*) 11329 library_names_spec='$libname$shared_ext' 11330 dynamic_linker="$host_os ld.so" 11331 shlibpath_var=LIBRARY_PATH 11332 ;; 11333 11334bsdi[45]*) 11335 version_type=linux # correct to gnu/linux during the next big refactor 11336 need_version=no 11337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11338 soname_spec='$libname$release$shared_ext$major' 11339 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11340 shlibpath_var=LD_LIBRARY_PATH 11341 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11342 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11343 # the default ld.so.conf also contains /usr/contrib/lib and 11344 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11345 # libtool to hard-code these into programs 11346 ;; 11347 11348cygwin* | mingw* | pw32* | cegcc*) 11349 version_type=windows 11350 shrext_cmds=.dll 11351 need_version=no 11352 need_lib_prefix=no 11353 11354 case $GCC,$cc_basename in 11355 yes,*) 11356 # gcc 11357 library_names_spec='$libname.dll.a' 11358 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11359 postinstall_cmds='base_file=`basename \$file`~ 11360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11361 dldir=$destdir/`dirname \$dlpath`~ 11362 test -d \$dldir || mkdir -p \$dldir~ 11363 $install_prog $dir/$dlname \$dldir/$dlname~ 11364 chmod a+x \$dldir/$dlname~ 11365 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11366 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11367 fi' 11368 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11369 dlpath=$dir/\$dldll~ 11370 $RM \$dlpath' 11371 shlibpath_overrides_runpath=yes 11372 11373 case $host_os in 11374 cygwin*) 11375 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11376 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11377 11378 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11379 ;; 11380 mingw* | cegcc*) 11381 # MinGW DLLs use traditional 'lib' prefix 11382 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11383 ;; 11384 pw32*) 11385 # pw32 DLLs use 'pw' prefix rather than 'lib' 11386 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11387 ;; 11388 esac 11389 dynamic_linker='Win32 ld.exe' 11390 ;; 11391 11392 *,cl* | *,icl*) 11393 # Native MSVC or ICC 11394 libname_spec='$name' 11395 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11396 library_names_spec='$libname.dll.lib' 11397 11398 case $build_os in 11399 mingw*) 11400 sys_lib_search_path_spec= 11401 lt_save_ifs=$IFS 11402 IFS=';' 11403 for lt_path in $LIB 11404 do 11405 IFS=$lt_save_ifs 11406 # Let DOS variable expansion print the short 8.3 style file name. 11407 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11408 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11409 done 11410 IFS=$lt_save_ifs 11411 # Convert to MSYS style. 11412 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11413 ;; 11414 cygwin*) 11415 # Convert to unix form, then to dos form, then back to unix form 11416 # but this time dos style (no spaces!) so that the unix form looks 11417 # like /cygdrive/c/PROGRA~1:/cygdr... 11418 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11419 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11420 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11421 ;; 11422 *) 11423 sys_lib_search_path_spec=$LIB 11424 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11425 # It is most probably a Windows format PATH. 11426 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11427 else 11428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11429 fi 11430 # FIXME: find the short name or the path components, as spaces are 11431 # common. (e.g. "Program Files" -> "PROGRA~1") 11432 ;; 11433 esac 11434 11435 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11436 postinstall_cmds='base_file=`basename \$file`~ 11437 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11438 dldir=$destdir/`dirname \$dlpath`~ 11439 test -d \$dldir || mkdir -p \$dldir~ 11440 $install_prog $dir/$dlname \$dldir/$dlname' 11441 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11442 dlpath=$dir/\$dldll~ 11443 $RM \$dlpath' 11444 shlibpath_overrides_runpath=yes 11445 dynamic_linker='Win32 link.exe' 11446 ;; 11447 11448 *) 11449 # Assume MSVC and ICC wrapper 11450 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11451 dynamic_linker='Win32 ld.exe' 11452 ;; 11453 esac 11454 # FIXME: first we should search . and the directory the executable is in 11455 shlibpath_var=PATH 11456 ;; 11457 11458darwin* | rhapsody*) 11459 dynamic_linker="$host_os dyld" 11460 version_type=darwin 11461 need_lib_prefix=no 11462 need_version=no 11463 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11464 soname_spec='$libname$release$major$shared_ext' 11465 shlibpath_overrides_runpath=yes 11466 shlibpath_var=DYLD_LIBRARY_PATH 11467 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11468 11469 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11470 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11471 ;; 11472 11473dgux*) 11474 version_type=linux # correct to gnu/linux during the next big refactor 11475 need_lib_prefix=no 11476 need_version=no 11477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11478 soname_spec='$libname$release$shared_ext$major' 11479 shlibpath_var=LD_LIBRARY_PATH 11480 ;; 11481 11482freebsd* | dragonfly*) 11483 # DragonFly does not have aout. When/if they implement a new 11484 # versioning mechanism, adjust this. 11485 if test -x /usr/bin/objformat; then 11486 objformat=`/usr/bin/objformat` 11487 else 11488 case $host_os in 11489 freebsd[23].*) objformat=aout ;; 11490 *) objformat=elf ;; 11491 esac 11492 fi 11493 version_type=freebsd-$objformat 11494 case $version_type in 11495 freebsd-elf*) 11496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11497 soname_spec='$libname$release$shared_ext$major' 11498 need_version=no 11499 need_lib_prefix=no 11500 ;; 11501 freebsd-*) 11502 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11503 need_version=yes 11504 ;; 11505 esac 11506 shlibpath_var=LD_LIBRARY_PATH 11507 case $host_os in 11508 freebsd2.*) 11509 shlibpath_overrides_runpath=yes 11510 ;; 11511 freebsd3.[01]* | freebsdelf3.[01]*) 11512 shlibpath_overrides_runpath=yes 11513 hardcode_into_libs=yes 11514 ;; 11515 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11516 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11517 shlibpath_overrides_runpath=no 11518 hardcode_into_libs=yes 11519 ;; 11520 *) # from 4.6 on, and DragonFly 11521 shlibpath_overrides_runpath=yes 11522 hardcode_into_libs=yes 11523 ;; 11524 esac 11525 ;; 11526 11527haiku*) 11528 version_type=linux # correct to gnu/linux during the next big refactor 11529 need_lib_prefix=no 11530 need_version=no 11531 dynamic_linker="$host_os runtime_loader" 11532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11533 soname_spec='$libname$release$shared_ext$major' 11534 shlibpath_var=LIBRARY_PATH 11535 shlibpath_overrides_runpath=no 11536 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11537 hardcode_into_libs=yes 11538 ;; 11539 11540hpux9* | hpux10* | hpux11*) 11541 # Give a soname corresponding to the major version so that dld.sl refuses to 11542 # link against other versions. 11543 version_type=sunos 11544 need_lib_prefix=no 11545 need_version=no 11546 case $host_cpu in 11547 ia64*) 11548 shrext_cmds='.so' 11549 hardcode_into_libs=yes 11550 dynamic_linker="$host_os dld.so" 11551 shlibpath_var=LD_LIBRARY_PATH 11552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11554 soname_spec='$libname$release$shared_ext$major' 11555 if test 32 = "$HPUX_IA64_MODE"; then 11556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11557 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11558 else 11559 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11560 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11561 fi 11562 ;; 11563 hppa*64*) 11564 shrext_cmds='.sl' 11565 hardcode_into_libs=yes 11566 dynamic_linker="$host_os dld.sl" 11567 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11570 soname_spec='$libname$release$shared_ext$major' 11571 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11573 ;; 11574 *) 11575 shrext_cmds='.sl' 11576 dynamic_linker="$host_os dld.sl" 11577 shlibpath_var=SHLIB_PATH 11578 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11580 soname_spec='$libname$release$shared_ext$major' 11581 ;; 11582 esac 11583 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11584 postinstall_cmds='chmod 555 $lib' 11585 # or fails outright, so override atomically: 11586 install_override_mode=555 11587 ;; 11588 11589interix[3-9]*) 11590 version_type=linux # correct to gnu/linux during the next big refactor 11591 need_lib_prefix=no 11592 need_version=no 11593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11594 soname_spec='$libname$release$shared_ext$major' 11595 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11596 shlibpath_var=LD_LIBRARY_PATH 11597 shlibpath_overrides_runpath=no 11598 hardcode_into_libs=yes 11599 ;; 11600 11601irix5* | irix6* | nonstopux*) 11602 case $host_os in 11603 nonstopux*) version_type=nonstopux ;; 11604 *) 11605 if test yes = "$lt_cv_prog_gnu_ld"; then 11606 version_type=linux # correct to gnu/linux during the next big refactor 11607 else 11608 version_type=irix 11609 fi ;; 11610 esac 11611 need_lib_prefix=no 11612 need_version=no 11613 soname_spec='$libname$release$shared_ext$major' 11614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11615 case $host_os in 11616 irix5* | nonstopux*) 11617 libsuff= shlibsuff= 11618 ;; 11619 *) 11620 case $LD in # libtool.m4 will add one of these switches to LD 11621 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11622 libsuff= shlibsuff= libmagic=32-bit;; 11623 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11624 libsuff=32 shlibsuff=N32 libmagic=N32;; 11625 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11626 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11627 *) libsuff= shlibsuff= libmagic=never-match;; 11628 esac 11629 ;; 11630 esac 11631 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11632 shlibpath_overrides_runpath=no 11633 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11634 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11635 hardcode_into_libs=yes 11636 ;; 11637 11638# No shared lib support for Linux oldld, aout, or coff. 11639linux*oldld* | linux*aout* | linux*coff*) 11640 dynamic_linker=no 11641 ;; 11642 11643linux*android*) 11644 version_type=none # Android doesn't support versioned libraries. 11645 need_lib_prefix=no 11646 need_version=no 11647 library_names_spec='$libname$release$shared_ext' 11648 soname_spec='$libname$release$shared_ext' 11649 finish_cmds= 11650 shlibpath_var=LD_LIBRARY_PATH 11651 shlibpath_overrides_runpath=yes 11652 11653 # This implies no fast_install, which is unacceptable. 11654 # Some rework will be needed to allow for fast_install 11655 # before this can be enabled. 11656 hardcode_into_libs=yes 11657 11658 dynamic_linker='Android linker' 11659 # Don't embed -rpath directories since the linker doesn't support them. 11660 hardcode_libdir_flag_spec='-L$libdir' 11661 ;; 11662 11663# This must be glibc/ELF. 11664linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11665 version_type=linux # correct to gnu/linux during the next big refactor 11666 need_lib_prefix=no 11667 need_version=no 11668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11669 soname_spec='$libname$release$shared_ext$major' 11670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11671 shlibpath_var=LD_LIBRARY_PATH 11672 shlibpath_overrides_runpath=no 11673 11674 # Some binutils ld are patched to set DT_RUNPATH 11675 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11676 $as_echo_n "(cached) " >&6 11677else 11678 lt_cv_shlibpath_overrides_runpath=no 11679 save_LDFLAGS=$LDFLAGS 11680 save_libdir=$libdir 11681 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11682 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11684/* end confdefs.h. */ 11685 11686int 11687main () 11688{ 11689 11690 ; 11691 return 0; 11692} 11693_ACEOF 11694if ac_fn_c_try_link "$LINENO"; then : 11695 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11696 lt_cv_shlibpath_overrides_runpath=yes 11697fi 11698fi 11699rm -f core conftest.err conftest.$ac_objext \ 11700 conftest$ac_exeext conftest.$ac_ext 11701 LDFLAGS=$save_LDFLAGS 11702 libdir=$save_libdir 11703 11704fi 11705 11706 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11707 11708 # This implies no fast_install, which is unacceptable. 11709 # Some rework will be needed to allow for fast_install 11710 # before this can be enabled. 11711 hardcode_into_libs=yes 11712 11713 # Ideally, we could use ldconfig to report *all* directores which are 11714 # searched for libraries, however this is still not possible. Aside from not 11715 # being certain /sbin/ldconfig is available, command 11716 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11717 # even though it is searched at run-time. Try to do the best guess by 11718 # appending ld.so.conf contents (and includes) to the search path. 11719 if test -f /etc/ld.so.conf; then 11720 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' ' '` 11721 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11722 fi 11723 11724 # We used to test for /lib/ld.so.1 and disable shared libraries on 11725 # powerpc, because MkLinux only supported shared libraries with the 11726 # GNU dynamic linker. Since this was broken with cross compilers, 11727 # most powerpc-linux boxes support dynamic linking these days and 11728 # people can always --disable-shared, the test was removed, and we 11729 # assume the GNU/Linux dynamic linker is in use. 11730 dynamic_linker='GNU/Linux ld.so' 11731 ;; 11732 11733netbsd*) 11734 version_type=sunos 11735 need_lib_prefix=no 11736 need_version=no 11737 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11738 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11740 dynamic_linker='NetBSD (a.out) ld.so' 11741 else 11742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11743 soname_spec='$libname$release$shared_ext$major' 11744 dynamic_linker='NetBSD ld.elf_so' 11745 fi 11746 shlibpath_var=LD_LIBRARY_PATH 11747 shlibpath_overrides_runpath=yes 11748 hardcode_into_libs=yes 11749 ;; 11750 11751newsos6) 11752 version_type=linux # correct to gnu/linux during the next big refactor 11753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11754 shlibpath_var=LD_LIBRARY_PATH 11755 shlibpath_overrides_runpath=yes 11756 ;; 11757 11758*nto* | *qnx*) 11759 version_type=qnx 11760 need_lib_prefix=no 11761 need_version=no 11762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11763 soname_spec='$libname$release$shared_ext$major' 11764 shlibpath_var=LD_LIBRARY_PATH 11765 shlibpath_overrides_runpath=no 11766 hardcode_into_libs=yes 11767 dynamic_linker='ldqnx.so' 11768 ;; 11769 11770openbsd* | bitrig*) 11771 version_type=sunos 11772 sys_lib_dlsearch_path_spec=/usr/lib 11773 need_lib_prefix=no 11774 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11775 need_version=no 11776 else 11777 need_version=yes 11778 fi 11779 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11781 shlibpath_var=LD_LIBRARY_PATH 11782 shlibpath_overrides_runpath=yes 11783 ;; 11784 11785os2*) 11786 libname_spec='$name' 11787 version_type=windows 11788 shrext_cmds=.dll 11789 need_version=no 11790 need_lib_prefix=no 11791 # OS/2 can only load a DLL with a base name of 8 characters or less. 11792 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11793 v=$($ECHO $release$versuffix | tr -d .-); 11794 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11795 $ECHO $n$v`$shared_ext' 11796 library_names_spec='${libname}_dll.$libext' 11797 dynamic_linker='OS/2 ld.exe' 11798 shlibpath_var=BEGINLIBPATH 11799 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11801 postinstall_cmds='base_file=`basename \$file`~ 11802 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11803 dldir=$destdir/`dirname \$dlpath`~ 11804 test -d \$dldir || mkdir -p \$dldir~ 11805 $install_prog $dir/$dlname \$dldir/$dlname~ 11806 chmod a+x \$dldir/$dlname~ 11807 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11808 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11809 fi' 11810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11811 dlpath=$dir/\$dldll~ 11812 $RM \$dlpath' 11813 ;; 11814 11815osf3* | osf4* | osf5*) 11816 version_type=osf 11817 need_lib_prefix=no 11818 need_version=no 11819 soname_spec='$libname$release$shared_ext$major' 11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11821 shlibpath_var=LD_LIBRARY_PATH 11822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11824 ;; 11825 11826rdos*) 11827 dynamic_linker=no 11828 ;; 11829 11830solaris*) 11831 version_type=linux # correct to gnu/linux during the next big refactor 11832 need_lib_prefix=no 11833 need_version=no 11834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11835 soname_spec='$libname$release$shared_ext$major' 11836 shlibpath_var=LD_LIBRARY_PATH 11837 shlibpath_overrides_runpath=yes 11838 hardcode_into_libs=yes 11839 # ldd complains unless libraries are executable 11840 postinstall_cmds='chmod +x $lib' 11841 ;; 11842 11843sunos4*) 11844 version_type=sunos 11845 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11846 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11847 shlibpath_var=LD_LIBRARY_PATH 11848 shlibpath_overrides_runpath=yes 11849 if test yes = "$with_gnu_ld"; then 11850 need_lib_prefix=no 11851 fi 11852 need_version=yes 11853 ;; 11854 11855sysv4 | sysv4.3*) 11856 version_type=linux # correct to gnu/linux during the next big refactor 11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11858 soname_spec='$libname$release$shared_ext$major' 11859 shlibpath_var=LD_LIBRARY_PATH 11860 case $host_vendor in 11861 sni) 11862 shlibpath_overrides_runpath=no 11863 need_lib_prefix=no 11864 runpath_var=LD_RUN_PATH 11865 ;; 11866 siemens) 11867 need_lib_prefix=no 11868 ;; 11869 motorola) 11870 need_lib_prefix=no 11871 need_version=no 11872 shlibpath_overrides_runpath=no 11873 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11874 ;; 11875 esac 11876 ;; 11877 11878sysv4*MP*) 11879 if test -d /usr/nec; then 11880 version_type=linux # correct to gnu/linux during the next big refactor 11881 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11882 soname_spec='$libname$shared_ext.$major' 11883 shlibpath_var=LD_LIBRARY_PATH 11884 fi 11885 ;; 11886 11887sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11888 version_type=sco 11889 need_lib_prefix=no 11890 need_version=no 11891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11892 soname_spec='$libname$release$shared_ext$major' 11893 shlibpath_var=LD_LIBRARY_PATH 11894 shlibpath_overrides_runpath=yes 11895 hardcode_into_libs=yes 11896 if test yes = "$with_gnu_ld"; then 11897 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11898 else 11899 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11900 case $host_os in 11901 sco3.2v5*) 11902 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11903 ;; 11904 esac 11905 fi 11906 sys_lib_dlsearch_path_spec='/usr/lib' 11907 ;; 11908 11909tpf*) 11910 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11911 version_type=linux # correct to gnu/linux during the next big refactor 11912 need_lib_prefix=no 11913 need_version=no 11914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11915 shlibpath_var=LD_LIBRARY_PATH 11916 shlibpath_overrides_runpath=no 11917 hardcode_into_libs=yes 11918 ;; 11919 11920uts4*) 11921 version_type=linux # correct to gnu/linux during the next big refactor 11922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11923 soname_spec='$libname$release$shared_ext$major' 11924 shlibpath_var=LD_LIBRARY_PATH 11925 ;; 11926 11927*) 11928 dynamic_linker=no 11929 ;; 11930esac 11931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11932$as_echo "$dynamic_linker" >&6; } 11933test no = "$dynamic_linker" && can_build_shared=no 11934 11935variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11936if test yes = "$GCC"; then 11937 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11938fi 11939 11940if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11941 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11942fi 11943 11944if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11945 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11946fi 11947 11948# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11949configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11950 11951# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11952func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11953 11954# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11955configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12054$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12055hardcode_action= 12056if test -n "$hardcode_libdir_flag_spec" || 12057 test -n "$runpath_var" || 12058 test yes = "$hardcode_automatic"; then 12059 12060 # We can hardcode non-existent directories. 12061 if test no != "$hardcode_direct" && 12062 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12063 # have to relink, otherwise we might link with an installed library 12064 # when we should be linking with a yet-to-be-installed one 12065 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12066 test no != "$hardcode_minus_L"; then 12067 # Linking always hardcodes the temporary library directory. 12068 hardcode_action=relink 12069 else 12070 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12071 hardcode_action=immediate 12072 fi 12073else 12074 # We cannot hardcode anything, or else we can only hardcode existing 12075 # directories. 12076 hardcode_action=unsupported 12077fi 12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12079$as_echo "$hardcode_action" >&6; } 12080 12081if test relink = "$hardcode_action" || 12082 test yes = "$inherit_rpath"; then 12083 # Fast installation is not supported 12084 enable_fast_install=no 12085elif test yes = "$shlibpath_overrides_runpath" || 12086 test no = "$enable_shared"; then 12087 # Fast installation is not necessary 12088 enable_fast_install=needless 12089fi 12090 12091 12092 12093 12094 12095 12096 if test yes != "$enable_dlopen"; then 12097 enable_dlopen=unknown 12098 enable_dlopen_self=unknown 12099 enable_dlopen_self_static=unknown 12100else 12101 lt_cv_dlopen=no 12102 lt_cv_dlopen_libs= 12103 12104 case $host_os in 12105 beos*) 12106 lt_cv_dlopen=load_add_on 12107 lt_cv_dlopen_libs= 12108 lt_cv_dlopen_self=yes 12109 ;; 12110 12111 mingw* | pw32* | cegcc*) 12112 lt_cv_dlopen=LoadLibrary 12113 lt_cv_dlopen_libs= 12114 ;; 12115 12116 cygwin*) 12117 lt_cv_dlopen=dlopen 12118 lt_cv_dlopen_libs= 12119 ;; 12120 12121 darwin*) 12122 # if libdl is installed we need to link against it 12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12124$as_echo_n "checking for dlopen in -ldl... " >&6; } 12125if ${ac_cv_lib_dl_dlopen+:} false; then : 12126 $as_echo_n "(cached) " >&6 12127else 12128 ac_check_lib_save_LIBS=$LIBS 12129LIBS="-ldl $LIBS" 12130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12131/* end confdefs.h. */ 12132 12133/* Override any GCC internal prototype to avoid an error. 12134 Use char because int might match the return type of a GCC 12135 builtin and then its argument prototype would still apply. */ 12136#ifdef __cplusplus 12137extern "C" 12138#endif 12139char dlopen (); 12140int 12141main () 12142{ 12143return dlopen (); 12144 ; 12145 return 0; 12146} 12147_ACEOF 12148if ac_fn_c_try_link "$LINENO"; then : 12149 ac_cv_lib_dl_dlopen=yes 12150else 12151 ac_cv_lib_dl_dlopen=no 12152fi 12153rm -f core conftest.err conftest.$ac_objext \ 12154 conftest$ac_exeext conftest.$ac_ext 12155LIBS=$ac_check_lib_save_LIBS 12156fi 12157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12158$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12159if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12160 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12161else 12162 12163 lt_cv_dlopen=dyld 12164 lt_cv_dlopen_libs= 12165 lt_cv_dlopen_self=yes 12166 12167fi 12168 12169 ;; 12170 12171 tpf*) 12172 # Don't try to run any link tests for TPF. We know it's impossible 12173 # because TPF is a cross-compiler, and we know how we open DSOs. 12174 lt_cv_dlopen=dlopen 12175 lt_cv_dlopen_libs= 12176 lt_cv_dlopen_self=no 12177 ;; 12178 12179 *) 12180 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12181if test "x$ac_cv_func_shl_load" = xyes; then : 12182 lt_cv_dlopen=shl_load 12183else 12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12185$as_echo_n "checking for shl_load in -ldld... " >&6; } 12186if ${ac_cv_lib_dld_shl_load+:} false; then : 12187 $as_echo_n "(cached) " >&6 12188else 12189 ac_check_lib_save_LIBS=$LIBS 12190LIBS="-ldld $LIBS" 12191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12192/* end confdefs.h. */ 12193 12194/* Override any GCC internal prototype to avoid an error. 12195 Use char because int might match the return type of a GCC 12196 builtin and then its argument prototype would still apply. */ 12197#ifdef __cplusplus 12198extern "C" 12199#endif 12200char shl_load (); 12201int 12202main () 12203{ 12204return shl_load (); 12205 ; 12206 return 0; 12207} 12208_ACEOF 12209if ac_fn_c_try_link "$LINENO"; then : 12210 ac_cv_lib_dld_shl_load=yes 12211else 12212 ac_cv_lib_dld_shl_load=no 12213fi 12214rm -f core conftest.err conftest.$ac_objext \ 12215 conftest$ac_exeext conftest.$ac_ext 12216LIBS=$ac_check_lib_save_LIBS 12217fi 12218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12219$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12220if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12221 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12222else 12223 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12224if test "x$ac_cv_func_dlopen" = xyes; then : 12225 lt_cv_dlopen=dlopen 12226else 12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12228$as_echo_n "checking for dlopen in -ldl... " >&6; } 12229if ${ac_cv_lib_dl_dlopen+:} false; then : 12230 $as_echo_n "(cached) " >&6 12231else 12232 ac_check_lib_save_LIBS=$LIBS 12233LIBS="-ldl $LIBS" 12234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12235/* end confdefs.h. */ 12236 12237/* Override any GCC internal prototype to avoid an error. 12238 Use char because int might match the return type of a GCC 12239 builtin and then its argument prototype would still apply. */ 12240#ifdef __cplusplus 12241extern "C" 12242#endif 12243char dlopen (); 12244int 12245main () 12246{ 12247return dlopen (); 12248 ; 12249 return 0; 12250} 12251_ACEOF 12252if ac_fn_c_try_link "$LINENO"; then : 12253 ac_cv_lib_dl_dlopen=yes 12254else 12255 ac_cv_lib_dl_dlopen=no 12256fi 12257rm -f core conftest.err conftest.$ac_objext \ 12258 conftest$ac_exeext conftest.$ac_ext 12259LIBS=$ac_check_lib_save_LIBS 12260fi 12261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12262$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12263if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12264 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12265else 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12267$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12268if ${ac_cv_lib_svld_dlopen+:} false; then : 12269 $as_echo_n "(cached) " >&6 12270else 12271 ac_check_lib_save_LIBS=$LIBS 12272LIBS="-lsvld $LIBS" 12273cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12274/* end confdefs.h. */ 12275 12276/* Override any GCC internal prototype to avoid an error. 12277 Use char because int might match the return type of a GCC 12278 builtin and then its argument prototype would still apply. */ 12279#ifdef __cplusplus 12280extern "C" 12281#endif 12282char dlopen (); 12283int 12284main () 12285{ 12286return dlopen (); 12287 ; 12288 return 0; 12289} 12290_ACEOF 12291if ac_fn_c_try_link "$LINENO"; then : 12292 ac_cv_lib_svld_dlopen=yes 12293else 12294 ac_cv_lib_svld_dlopen=no 12295fi 12296rm -f core conftest.err conftest.$ac_objext \ 12297 conftest$ac_exeext conftest.$ac_ext 12298LIBS=$ac_check_lib_save_LIBS 12299fi 12300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12301$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12302if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12303 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12304else 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12306$as_echo_n "checking for dld_link in -ldld... " >&6; } 12307if ${ac_cv_lib_dld_dld_link+:} false; then : 12308 $as_echo_n "(cached) " >&6 12309else 12310 ac_check_lib_save_LIBS=$LIBS 12311LIBS="-ldld $LIBS" 12312cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12313/* end confdefs.h. */ 12314 12315/* Override any GCC internal prototype to avoid an error. 12316 Use char because int might match the return type of a GCC 12317 builtin and then its argument prototype would still apply. */ 12318#ifdef __cplusplus 12319extern "C" 12320#endif 12321char dld_link (); 12322int 12323main () 12324{ 12325return dld_link (); 12326 ; 12327 return 0; 12328} 12329_ACEOF 12330if ac_fn_c_try_link "$LINENO"; then : 12331 ac_cv_lib_dld_dld_link=yes 12332else 12333 ac_cv_lib_dld_dld_link=no 12334fi 12335rm -f core conftest.err conftest.$ac_objext \ 12336 conftest$ac_exeext conftest.$ac_ext 12337LIBS=$ac_check_lib_save_LIBS 12338fi 12339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12340$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12341if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12342 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12343fi 12344 12345 12346fi 12347 12348 12349fi 12350 12351 12352fi 12353 12354 12355fi 12356 12357 12358fi 12359 12360 ;; 12361 esac 12362 12363 if test no = "$lt_cv_dlopen"; then 12364 enable_dlopen=no 12365 else 12366 enable_dlopen=yes 12367 fi 12368 12369 case $lt_cv_dlopen in 12370 dlopen) 12371 save_CPPFLAGS=$CPPFLAGS 12372 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12373 12374 save_LDFLAGS=$LDFLAGS 12375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12376 12377 save_LIBS=$LIBS 12378 LIBS="$lt_cv_dlopen_libs $LIBS" 12379 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12381$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12382if ${lt_cv_dlopen_self+:} false; then : 12383 $as_echo_n "(cached) " >&6 12384else 12385 if test yes = "$cross_compiling"; then : 12386 lt_cv_dlopen_self=cross 12387else 12388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12389 lt_status=$lt_dlunknown 12390 cat > conftest.$ac_ext <<_LT_EOF 12391#line $LINENO "configure" 12392#include "confdefs.h" 12393 12394#if HAVE_DLFCN_H 12395#include <dlfcn.h> 12396#endif 12397 12398#include <stdio.h> 12399 12400#ifdef RTLD_GLOBAL 12401# define LT_DLGLOBAL RTLD_GLOBAL 12402#else 12403# ifdef DL_GLOBAL 12404# define LT_DLGLOBAL DL_GLOBAL 12405# else 12406# define LT_DLGLOBAL 0 12407# endif 12408#endif 12409 12410/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12411 find out it does not work in some platform. */ 12412#ifndef LT_DLLAZY_OR_NOW 12413# ifdef RTLD_LAZY 12414# define LT_DLLAZY_OR_NOW RTLD_LAZY 12415# else 12416# ifdef DL_LAZY 12417# define LT_DLLAZY_OR_NOW DL_LAZY 12418# else 12419# ifdef RTLD_NOW 12420# define LT_DLLAZY_OR_NOW RTLD_NOW 12421# else 12422# ifdef DL_NOW 12423# define LT_DLLAZY_OR_NOW DL_NOW 12424# else 12425# define LT_DLLAZY_OR_NOW 0 12426# endif 12427# endif 12428# endif 12429# endif 12430#endif 12431 12432/* When -fvisibility=hidden is used, assume the code has been annotated 12433 correspondingly for the symbols needed. */ 12434#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12435int fnord () __attribute__((visibility("default"))); 12436#endif 12437 12438int fnord () { return 42; } 12439int main () 12440{ 12441 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12442 int status = $lt_dlunknown; 12443 12444 if (self) 12445 { 12446 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12447 else 12448 { 12449 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12450 else puts (dlerror ()); 12451 } 12452 /* dlclose (self); */ 12453 } 12454 else 12455 puts (dlerror ()); 12456 12457 return status; 12458} 12459_LT_EOF 12460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12461 (eval $ac_link) 2>&5 12462 ac_status=$? 12463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12464 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12465 (./conftest; exit; ) >&5 2>/dev/null 12466 lt_status=$? 12467 case x$lt_status in 12468 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12469 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12470 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12471 esac 12472 else : 12473 # compilation failed 12474 lt_cv_dlopen_self=no 12475 fi 12476fi 12477rm -fr conftest* 12478 12479 12480fi 12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12482$as_echo "$lt_cv_dlopen_self" >&6; } 12483 12484 if test yes = "$lt_cv_dlopen_self"; then 12485 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12487$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12488if ${lt_cv_dlopen_self_static+:} false; then : 12489 $as_echo_n "(cached) " >&6 12490else 12491 if test yes = "$cross_compiling"; then : 12492 lt_cv_dlopen_self_static=cross 12493else 12494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12495 lt_status=$lt_dlunknown 12496 cat > conftest.$ac_ext <<_LT_EOF 12497#line $LINENO "configure" 12498#include "confdefs.h" 12499 12500#if HAVE_DLFCN_H 12501#include <dlfcn.h> 12502#endif 12503 12504#include <stdio.h> 12505 12506#ifdef RTLD_GLOBAL 12507# define LT_DLGLOBAL RTLD_GLOBAL 12508#else 12509# ifdef DL_GLOBAL 12510# define LT_DLGLOBAL DL_GLOBAL 12511# else 12512# define LT_DLGLOBAL 0 12513# endif 12514#endif 12515 12516/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12517 find out it does not work in some platform. */ 12518#ifndef LT_DLLAZY_OR_NOW 12519# ifdef RTLD_LAZY 12520# define LT_DLLAZY_OR_NOW RTLD_LAZY 12521# else 12522# ifdef DL_LAZY 12523# define LT_DLLAZY_OR_NOW DL_LAZY 12524# else 12525# ifdef RTLD_NOW 12526# define LT_DLLAZY_OR_NOW RTLD_NOW 12527# else 12528# ifdef DL_NOW 12529# define LT_DLLAZY_OR_NOW DL_NOW 12530# else 12531# define LT_DLLAZY_OR_NOW 0 12532# endif 12533# endif 12534# endif 12535# endif 12536#endif 12537 12538/* When -fvisibility=hidden is used, assume the code has been annotated 12539 correspondingly for the symbols needed. */ 12540#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12541int fnord () __attribute__((visibility("default"))); 12542#endif 12543 12544int fnord () { return 42; } 12545int main () 12546{ 12547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12548 int status = $lt_dlunknown; 12549 12550 if (self) 12551 { 12552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12553 else 12554 { 12555 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12556 else puts (dlerror ()); 12557 } 12558 /* dlclose (self); */ 12559 } 12560 else 12561 puts (dlerror ()); 12562 12563 return status; 12564} 12565_LT_EOF 12566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12567 (eval $ac_link) 2>&5 12568 ac_status=$? 12569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12570 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12571 (./conftest; exit; ) >&5 2>/dev/null 12572 lt_status=$? 12573 case x$lt_status in 12574 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12575 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12576 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12577 esac 12578 else : 12579 # compilation failed 12580 lt_cv_dlopen_self_static=no 12581 fi 12582fi 12583rm -fr conftest* 12584 12585 12586fi 12587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12588$as_echo "$lt_cv_dlopen_self_static" >&6; } 12589 fi 12590 12591 CPPFLAGS=$save_CPPFLAGS 12592 LDFLAGS=$save_LDFLAGS 12593 LIBS=$save_LIBS 12594 ;; 12595 esac 12596 12597 case $lt_cv_dlopen_self in 12598 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12599 *) enable_dlopen_self=unknown ;; 12600 esac 12601 12602 case $lt_cv_dlopen_self_static in 12603 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12604 *) enable_dlopen_self_static=unknown ;; 12605 esac 12606fi 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624striplib= 12625old_striplib= 12626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12627$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12628if test -z "$STRIP"; then 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12630$as_echo "no" >&6; } 12631else 12632 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12633 old_striplib="$STRIP --strip-debug" 12634 striplib="$STRIP --strip-unneeded" 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12636$as_echo "yes" >&6; } 12637 else 12638 case $host_os in 12639 darwin*) 12640 # FIXME - insert some real tests, host_os isn't really good enough 12641 striplib="$STRIP -x" 12642 old_striplib="$STRIP -S" 12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12644$as_echo "yes" >&6; } 12645 ;; 12646 freebsd*) 12647 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12648 old_striplib="$STRIP --strip-debug" 12649 striplib="$STRIP --strip-unneeded" 12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12651$as_echo "yes" >&6; } 12652 else 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12654$as_echo "no" >&6; } 12655 fi 12656 ;; 12657 *) 12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12659$as_echo "no" >&6; } 12660 ;; 12661 esac 12662 fi 12663fi 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 # Report what library types will actually be built 12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12678$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12680$as_echo "$can_build_shared" >&6; } 12681 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12683$as_echo_n "checking whether to build shared libraries... " >&6; } 12684 test no = "$can_build_shared" && enable_shared=no 12685 12686 # On AIX, shared libraries and static libraries use the same namespace, and 12687 # are all built from PIC. 12688 case $host_os in 12689 aix3*) 12690 test yes = "$enable_shared" && enable_static=no 12691 if test -n "$RANLIB"; then 12692 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12693 postinstall_cmds='$RANLIB $lib' 12694 fi 12695 ;; 12696 12697 aix[4-9]*) 12698 if test ia64 != "$host_cpu"; then 12699 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12700 yes,aix,yes) ;; # shared object as lib.so file only 12701 yes,svr4,*) ;; # shared object as lib.so archive member only 12702 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12703 esac 12704 fi 12705 ;; 12706 esac 12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12708$as_echo "$enable_shared" >&6; } 12709 12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12711$as_echo_n "checking whether to build static libraries... " >&6; } 12712 # Make sure either enable_shared or enable_static is yes. 12713 test yes = "$enable_shared" || enable_static=yes 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12715$as_echo "$enable_static" >&6; } 12716 12717 12718 12719 12720fi 12721ac_ext=c 12722ac_cpp='$CPP $CPPFLAGS' 12723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12725ac_compiler_gnu=$ac_cv_c_compiler_gnu 12726 12727CC=$lt_save_CC 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 ac_config_commands="$ac_config_commands libtool" 12744 12745 12746 12747 12748# Only expand once: 12749 12750 12751 12752 12753 12754 if test "$enable_samples" = "yes"; then 12755 BUILD_SAMPLES_TRUE= 12756 BUILD_SAMPLES_FALSE='#' 12757else 12758 BUILD_SAMPLES_TRUE='#' 12759 BUILD_SAMPLES_FALSE= 12760fi 12761 12762 if test "$enable_libevent_regress" = "yes"; then 12763 BUILD_REGRESS_TRUE= 12764 BUILD_REGRESS_FALSE='#' 12765else 12766 BUILD_REGRESS_TRUE='#' 12767 BUILD_REGRESS_FALSE= 12768fi 12769 12770 12771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 12772$as_echo_n "checking for library containing inet_ntoa... " >&6; } 12773if ${ac_cv_search_inet_ntoa+:} false; then : 12774 $as_echo_n "(cached) " >&6 12775else 12776 ac_func_search_save_LIBS=$LIBS 12777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12778/* end confdefs.h. */ 12779 12780/* Override any GCC internal prototype to avoid an error. 12781 Use char because int might match the return type of a GCC 12782 builtin and then its argument prototype would still apply. */ 12783#ifdef __cplusplus 12784extern "C" 12785#endif 12786char inet_ntoa (); 12787int 12788main () 12789{ 12790return inet_ntoa (); 12791 ; 12792 return 0; 12793} 12794_ACEOF 12795for ac_lib in '' nsl; do 12796 if test -z "$ac_lib"; then 12797 ac_res="none required" 12798 else 12799 ac_res=-l$ac_lib 12800 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12801 fi 12802 if ac_fn_c_try_link "$LINENO"; then : 12803 ac_cv_search_inet_ntoa=$ac_res 12804fi 12805rm -f core conftest.err conftest.$ac_objext \ 12806 conftest$ac_exeext 12807 if ${ac_cv_search_inet_ntoa+:} false; then : 12808 break 12809fi 12810done 12811if ${ac_cv_search_inet_ntoa+:} false; then : 12812 12813else 12814 ac_cv_search_inet_ntoa=no 12815fi 12816rm conftest.$ac_ext 12817LIBS=$ac_func_search_save_LIBS 12818fi 12819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 12820$as_echo "$ac_cv_search_inet_ntoa" >&6; } 12821ac_res=$ac_cv_search_inet_ntoa 12822if test "$ac_res" != no; then : 12823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12824 12825fi 12826 12827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 12828$as_echo_n "checking for library containing socket... " >&6; } 12829if ${ac_cv_search_socket+:} false; then : 12830 $as_echo_n "(cached) " >&6 12831else 12832 ac_func_search_save_LIBS=$LIBS 12833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12834/* end confdefs.h. */ 12835 12836/* Override any GCC internal prototype to avoid an error. 12837 Use char because int might match the return type of a GCC 12838 builtin and then its argument prototype would still apply. */ 12839#ifdef __cplusplus 12840extern "C" 12841#endif 12842char socket (); 12843int 12844main () 12845{ 12846return socket (); 12847 ; 12848 return 0; 12849} 12850_ACEOF 12851for ac_lib in '' socket; do 12852 if test -z "$ac_lib"; then 12853 ac_res="none required" 12854 else 12855 ac_res=-l$ac_lib 12856 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12857 fi 12858 if ac_fn_c_try_link "$LINENO"; then : 12859 ac_cv_search_socket=$ac_res 12860fi 12861rm -f core conftest.err conftest.$ac_objext \ 12862 conftest$ac_exeext 12863 if ${ac_cv_search_socket+:} false; then : 12864 break 12865fi 12866done 12867if ${ac_cv_search_socket+:} false; then : 12868 12869else 12870 ac_cv_search_socket=no 12871fi 12872rm conftest.$ac_ext 12873LIBS=$ac_func_search_save_LIBS 12874fi 12875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 12876$as_echo "$ac_cv_search_socket" >&6; } 12877ac_res=$ac_cv_search_socket 12878if test "$ac_res" != no; then : 12879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12880 12881fi 12882 12883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 12884$as_echo_n "checking for library containing inet_aton... " >&6; } 12885if ${ac_cv_search_inet_aton+:} false; then : 12886 $as_echo_n "(cached) " >&6 12887else 12888 ac_func_search_save_LIBS=$LIBS 12889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12890/* end confdefs.h. */ 12891 12892/* Override any GCC internal prototype to avoid an error. 12893 Use char because int might match the return type of a GCC 12894 builtin and then its argument prototype would still apply. */ 12895#ifdef __cplusplus 12896extern "C" 12897#endif 12898char inet_aton (); 12899int 12900main () 12901{ 12902return inet_aton (); 12903 ; 12904 return 0; 12905} 12906_ACEOF 12907for ac_lib in '' resolv; do 12908 if test -z "$ac_lib"; then 12909 ac_res="none required" 12910 else 12911 ac_res=-l$ac_lib 12912 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12913 fi 12914 if ac_fn_c_try_link "$LINENO"; then : 12915 ac_cv_search_inet_aton=$ac_res 12916fi 12917rm -f core conftest.err conftest.$ac_objext \ 12918 conftest$ac_exeext 12919 if ${ac_cv_search_inet_aton+:} false; then : 12920 break 12921fi 12922done 12923if ${ac_cv_search_inet_aton+:} false; then : 12924 12925else 12926 ac_cv_search_inet_aton=no 12927fi 12928rm conftest.$ac_ext 12929LIBS=$ac_func_search_save_LIBS 12930fi 12931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 12932$as_echo "$ac_cv_search_inet_aton" >&6; } 12933ac_res=$ac_cv_search_inet_aton 12934if test "$ac_res" != no; then : 12935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12936 12937fi 12938 12939if test "x$enable_clock_gettime" = "xyes"; then 12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 12941$as_echo_n "checking for library containing clock_gettime... " >&6; } 12942if ${ac_cv_search_clock_gettime+:} false; then : 12943 $as_echo_n "(cached) " >&6 12944else 12945 ac_func_search_save_LIBS=$LIBS 12946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12947/* end confdefs.h. */ 12948 12949/* Override any GCC internal prototype to avoid an error. 12950 Use char because int might match the return type of a GCC 12951 builtin and then its argument prototype would still apply. */ 12952#ifdef __cplusplus 12953extern "C" 12954#endif 12955char clock_gettime (); 12956int 12957main () 12958{ 12959return clock_gettime (); 12960 ; 12961 return 0; 12962} 12963_ACEOF 12964for ac_lib in '' rt; do 12965 if test -z "$ac_lib"; then 12966 ac_res="none required" 12967 else 12968 ac_res=-l$ac_lib 12969 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12970 fi 12971 if ac_fn_c_try_link "$LINENO"; then : 12972 ac_cv_search_clock_gettime=$ac_res 12973fi 12974rm -f core conftest.err conftest.$ac_objext \ 12975 conftest$ac_exeext 12976 if ${ac_cv_search_clock_gettime+:} false; then : 12977 break 12978fi 12979done 12980if ${ac_cv_search_clock_gettime+:} false; then : 12981 12982else 12983 ac_cv_search_clock_gettime=no 12984fi 12985rm conftest.$ac_ext 12986LIBS=$ac_func_search_save_LIBS 12987fi 12988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 12989$as_echo "$ac_cv_search_clock_gettime" >&6; } 12990ac_res=$ac_cv_search_clock_gettime 12991if test "$ac_res" != no; then : 12992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12993 12994fi 12995 12996 for ac_func in clock_gettime 12997do : 12998 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 12999if test "x$ac_cv_func_clock_gettime" = xyes; then : 13000 cat >>confdefs.h <<_ACEOF 13001#define HAVE_CLOCK_GETTIME 1 13002_ACEOF 13003 13004fi 13005done 13006 13007fi 13008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5 13009$as_echo_n "checking for library containing sendfile... " >&6; } 13010if ${ac_cv_search_sendfile+:} false; then : 13011 $as_echo_n "(cached) " >&6 13012else 13013 ac_func_search_save_LIBS=$LIBS 13014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13015/* end confdefs.h. */ 13016 13017/* Override any GCC internal prototype to avoid an error. 13018 Use char because int might match the return type of a GCC 13019 builtin and then its argument prototype would still apply. */ 13020#ifdef __cplusplus 13021extern "C" 13022#endif 13023char sendfile (); 13024int 13025main () 13026{ 13027return sendfile (); 13028 ; 13029 return 0; 13030} 13031_ACEOF 13032for ac_lib in '' sendfile; do 13033 if test -z "$ac_lib"; then 13034 ac_res="none required" 13035 else 13036 ac_res=-l$ac_lib 13037 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13038 fi 13039 if ac_fn_c_try_link "$LINENO"; then : 13040 ac_cv_search_sendfile=$ac_res 13041fi 13042rm -f core conftest.err conftest.$ac_objext \ 13043 conftest$ac_exeext 13044 if ${ac_cv_search_sendfile+:} false; then : 13045 break 13046fi 13047done 13048if ${ac_cv_search_sendfile+:} false; then : 13049 13050else 13051 ac_cv_search_sendfile=no 13052fi 13053rm conftest.$ac_ext 13054LIBS=$ac_func_search_save_LIBS 13055fi 13056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5 13057$as_echo "$ac_cv_search_sendfile" >&6; } 13058ac_res=$ac_cv_search_sendfile 13059if test "$ac_res" != no; then : 13060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13061 13062fi 13063 13064 13065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5 13066$as_echo_n "checking for WIN32... " >&6; } 13067cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13068/* end confdefs.h. */ 13069 13070int 13071main () 13072{ 13073 13074#ifndef _WIN32 13075die horribly 13076#endif 13077 13078 ; 13079 return 0; 13080} 13081_ACEOF 13082if ac_fn_c_try_compile "$LINENO"; then : 13083 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13084$as_echo "yes" >&6; } 13085else 13086 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13087$as_echo "no" >&6; } 13088fi 13089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13090 13091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MIDIPIX" >&5 13092$as_echo_n "checking for MIDIPIX... " >&6; } 13093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13094/* end confdefs.h. */ 13095 13096int 13097main () 13098{ 13099 13100#ifndef __midipix__ 13101die horribly 13102#endif 13103 13104 ; 13105 return 0; 13106} 13107_ACEOF 13108if ac_fn_c_try_compile "$LINENO"; then : 13109 midipix=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13110$as_echo "yes" >&6; } 13111else 13112 midipix=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13113$as_echo "no" >&6; } 13114fi 13115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13116 13117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5 13118$as_echo_n "checking for CYGWIN... " >&6; } 13119cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13120/* end confdefs.h. */ 13121 13122int 13123main () 13124{ 13125 13126#ifndef __CYGWIN__ 13127die horribly 13128#endif 13129 13130 ; 13131 return 0; 13132} 13133_ACEOF 13134if ac_fn_c_try_compile "$LINENO"; then : 13135 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13136$as_echo "yes" >&6; } 13137else 13138 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13139$as_echo "no" >&6; } 13140fi 13141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13142 13143for ac_header in zlib.h 13144do : 13145 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 13146if test "x$ac_cv_header_zlib_h" = xyes; then : 13147 cat >>confdefs.h <<_ACEOF 13148#define HAVE_ZLIB_H 1 13149_ACEOF 13150 13151fi 13152 13153done 13154 13155 13156if test "x$ac_cv_header_zlib_h" = "xyes"; then 13157save_LIBS="$LIBS" 13158LIBS="" 13159ZLIB_LIBS="" 13160have_zlib=no 13161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5 13162$as_echo_n "checking for library containing inflateEnd... " >&6; } 13163if ${ac_cv_search_inflateEnd+:} false; then : 13164 $as_echo_n "(cached) " >&6 13165else 13166 ac_func_search_save_LIBS=$LIBS 13167cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13168/* end confdefs.h. */ 13169 13170/* Override any GCC internal prototype to avoid an error. 13171 Use char because int might match the return type of a GCC 13172 builtin and then its argument prototype would still apply. */ 13173#ifdef __cplusplus 13174extern "C" 13175#endif 13176char inflateEnd (); 13177int 13178main () 13179{ 13180return inflateEnd (); 13181 ; 13182 return 0; 13183} 13184_ACEOF 13185for ac_lib in '' z; do 13186 if test -z "$ac_lib"; then 13187 ac_res="none required" 13188 else 13189 ac_res=-l$ac_lib 13190 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13191 fi 13192 if ac_fn_c_try_link "$LINENO"; then : 13193 ac_cv_search_inflateEnd=$ac_res 13194fi 13195rm -f core conftest.err conftest.$ac_objext \ 13196 conftest$ac_exeext 13197 if ${ac_cv_search_inflateEnd+:} false; then : 13198 break 13199fi 13200done 13201if ${ac_cv_search_inflateEnd+:} false; then : 13202 13203else 13204 ac_cv_search_inflateEnd=no 13205fi 13206rm conftest.$ac_ext 13207LIBS=$ac_func_search_save_LIBS 13208fi 13209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5 13210$as_echo "$ac_cv_search_inflateEnd" >&6; } 13211ac_res=$ac_cv_search_inflateEnd 13212if test "$ac_res" != no; then : 13213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13214 have_zlib=yes 13215 ZLIB_LIBS="$LIBS" 13216 13217$as_echo "#define HAVE_LIBZ 1" >>confdefs.h 13218 13219fi 13220 13221LIBS="$save_LIBS" 13222 13223fi 13224 if test "$have_zlib" = "yes"; then 13225 ZLIB_REGRESS_TRUE= 13226 ZLIB_REGRESS_FALSE='#' 13227else 13228 ZLIB_REGRESS_TRUE='#' 13229 ZLIB_REGRESS_FALSE= 13230fi 13231 13232 13233if test "$bwin32" = true; then 13234 EV_LIB_WS32=-lws2_32 13235 EV_LIB_GDI=-lgdi32 13236else 13237 EV_LIB_WS32= 13238 EV_LIB_GDI= 13239fi 13240 13241 13242 13243 13244# Check whether --enable-largefile was given. 13245if test "${enable_largefile+set}" = set; then : 13246 enableval=$enable_largefile; 13247fi 13248 13249if test "$enable_largefile" != no; then 13250 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13252$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13253if ${ac_cv_sys_largefile_CC+:} false; then : 13254 $as_echo_n "(cached) " >&6 13255else 13256 ac_cv_sys_largefile_CC=no 13257 if test "$GCC" != yes; then 13258 ac_save_CC=$CC 13259 while :; do 13260 # IRIX 6.2 and later do not support large files by default, 13261 # so use the C compiler's -n32 option if that helps. 13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13263/* end confdefs.h. */ 13264#include <sys/types.h> 13265 /* Check that off_t can represent 2**63 - 1 correctly. 13266 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13267 since some C++ compilers masquerading as C compilers 13268 incorrectly reject 9223372036854775807. */ 13269#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13270 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13271 && LARGE_OFF_T % 2147483647 == 1) 13272 ? 1 : -1]; 13273int 13274main () 13275{ 13276 13277 ; 13278 return 0; 13279} 13280_ACEOF 13281 if ac_fn_c_try_compile "$LINENO"; then : 13282 break 13283fi 13284rm -f core conftest.err conftest.$ac_objext 13285 CC="$CC -n32" 13286 if ac_fn_c_try_compile "$LINENO"; then : 13287 ac_cv_sys_largefile_CC=' -n32'; break 13288fi 13289rm -f core conftest.err conftest.$ac_objext 13290 break 13291 done 13292 CC=$ac_save_CC 13293 rm -f conftest.$ac_ext 13294 fi 13295fi 13296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13297$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13298 if test "$ac_cv_sys_largefile_CC" != no; then 13299 CC=$CC$ac_cv_sys_largefile_CC 13300 fi 13301 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13303$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13304if ${ac_cv_sys_file_offset_bits+:} false; then : 13305 $as_echo_n "(cached) " >&6 13306else 13307 while :; do 13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13309/* end confdefs.h. */ 13310#include <sys/types.h> 13311 /* Check that off_t can represent 2**63 - 1 correctly. 13312 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13313 since some C++ compilers masquerading as C compilers 13314 incorrectly reject 9223372036854775807. */ 13315#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13316 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13317 && LARGE_OFF_T % 2147483647 == 1) 13318 ? 1 : -1]; 13319int 13320main () 13321{ 13322 13323 ; 13324 return 0; 13325} 13326_ACEOF 13327if ac_fn_c_try_compile "$LINENO"; then : 13328 ac_cv_sys_file_offset_bits=no; break 13329fi 13330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13332/* end confdefs.h. */ 13333#define _FILE_OFFSET_BITS 64 13334#include <sys/types.h> 13335 /* Check that off_t can represent 2**63 - 1 correctly. 13336 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13337 since some C++ compilers masquerading as C compilers 13338 incorrectly reject 9223372036854775807. */ 13339#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13341 && LARGE_OFF_T % 2147483647 == 1) 13342 ? 1 : -1]; 13343int 13344main () 13345{ 13346 13347 ; 13348 return 0; 13349} 13350_ACEOF 13351if ac_fn_c_try_compile "$LINENO"; then : 13352 ac_cv_sys_file_offset_bits=64; break 13353fi 13354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13355 ac_cv_sys_file_offset_bits=unknown 13356 break 13357done 13358fi 13359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13360$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13361case $ac_cv_sys_file_offset_bits in #( 13362 no | unknown) ;; 13363 *) 13364cat >>confdefs.h <<_ACEOF 13365#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13366_ACEOF 13367;; 13368esac 13369rm -rf conftest* 13370 if test $ac_cv_sys_file_offset_bits = unknown; then 13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13372$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13373if ${ac_cv_sys_large_files+:} false; then : 13374 $as_echo_n "(cached) " >&6 13375else 13376 while :; do 13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13378/* end confdefs.h. */ 13379#include <sys/types.h> 13380 /* Check that off_t can represent 2**63 - 1 correctly. 13381 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13382 since some C++ compilers masquerading as C compilers 13383 incorrectly reject 9223372036854775807. */ 13384#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13385 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13386 && LARGE_OFF_T % 2147483647 == 1) 13387 ? 1 : -1]; 13388int 13389main () 13390{ 13391 13392 ; 13393 return 0; 13394} 13395_ACEOF 13396if ac_fn_c_try_compile "$LINENO"; then : 13397 ac_cv_sys_large_files=no; break 13398fi 13399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13401/* end confdefs.h. */ 13402#define _LARGE_FILES 1 13403#include <sys/types.h> 13404 /* Check that off_t can represent 2**63 - 1 correctly. 13405 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13406 since some C++ compilers masquerading as C compilers 13407 incorrectly reject 9223372036854775807. */ 13408#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13409 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13410 && LARGE_OFF_T % 2147483647 == 1) 13411 ? 1 : -1]; 13412int 13413main () 13414{ 13415 13416 ; 13417 return 0; 13418} 13419_ACEOF 13420if ac_fn_c_try_compile "$LINENO"; then : 13421 ac_cv_sys_large_files=1; break 13422fi 13423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13424 ac_cv_sys_large_files=unknown 13425 break 13426done 13427fi 13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13429$as_echo "$ac_cv_sys_large_files" >&6; } 13430case $ac_cv_sys_large_files in #( 13431 no | unknown) ;; 13432 *) 13433cat >>confdefs.h <<_ACEOF 13434#define _LARGE_FILES $ac_cv_sys_large_files 13435_ACEOF 13436;; 13437esac 13438rm -rf conftest* 13439 fi 13440 13441 13442fi 13443 13444 13445 13446 13447ntp_pkgconfig_min_version='0.15.0' 13448if test -n "$ac_tool_prefix"; then 13449 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13450set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13452$as_echo_n "checking for $ac_word... " >&6; } 13453if ${ac_cv_path_PKG_CONFIG+:} false; then : 13454 $as_echo_n "(cached) " >&6 13455else 13456 case $PKG_CONFIG in 13457 [\\/]* | ?:[\\/]*) 13458 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13459 ;; 13460 *) 13461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13462for as_dir in $PATH 13463do 13464 IFS=$as_save_IFS 13465 test -z "$as_dir" && as_dir=. 13466 for ac_exec_ext in '' $ac_executable_extensions; do 13467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13468 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13470 break 2 13471 fi 13472done 13473 done 13474IFS=$as_save_IFS 13475 13476 ;; 13477esac 13478fi 13479PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13480if test -n "$PKG_CONFIG"; then 13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13482$as_echo "$PKG_CONFIG" >&6; } 13483else 13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13485$as_echo "no" >&6; } 13486fi 13487 13488 13489fi 13490if test -z "$ac_cv_path_PKG_CONFIG"; then 13491 ac_pt_PKG_CONFIG=$PKG_CONFIG 13492 # Extract the first word of "pkg-config", so it can be a program name with args. 13493set dummy pkg-config; ac_word=$2 13494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13495$as_echo_n "checking for $ac_word... " >&6; } 13496if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13497 $as_echo_n "(cached) " >&6 13498else 13499 case $ac_pt_PKG_CONFIG in 13500 [\\/]* | ?:[\\/]*) 13501 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13502 ;; 13503 *) 13504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13505for as_dir in $PATH 13506do 13507 IFS=$as_save_IFS 13508 test -z "$as_dir" && as_dir=. 13509 for ac_exec_ext in '' $ac_executable_extensions; do 13510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13511 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13513 break 2 13514 fi 13515done 13516 done 13517IFS=$as_save_IFS 13518 13519 ;; 13520esac 13521fi 13522ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13523if test -n "$ac_pt_PKG_CONFIG"; then 13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13525$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13526else 13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13528$as_echo "no" >&6; } 13529fi 13530 13531 if test "x$ac_pt_PKG_CONFIG" = x; then 13532 PKG_CONFIG="" 13533 else 13534 case $cross_compiling:$ac_tool_warned in 13535yes:) 13536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13538ac_tool_warned=yes ;; 13539esac 13540 PKG_CONFIG=$ac_pt_PKG_CONFIG 13541 fi 13542else 13543 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13544fi 13545 13546{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;} 13547{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 13548 13549case "$PKG_CONFIG" in 13550 /*) 13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5 13552$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; } 13553 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13555$as_echo "yes" >&6; } 13556 else 13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13558$as_echo "no" >&6; } 13559 PKG_CONFIG="" 13560 fi 13561 ;; 13562esac 13563 13564 13565 13566 13567case "$enable_openssl" in 13568 yes) 13569 have_openssl=no 13570 case "$PKG_CONFIG" in 13571 '') 13572 ;; 13573 *) 13574 OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null` 13575 case "$OPENSSL_LIBS" in 13576 '') ;; 13577 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD" 13578 have_openssl=yes 13579 ;; 13580 esac 13581 OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null` 13582 ;; 13583 esac 13584 case "$have_openssl" in 13585 yes) ;; 13586 *) 13587 save_LIBS="$LIBS" 13588 LIBS="" 13589 OPENSSL_LIBS="" 13590 for lib in crypto eay32; do 13591 # clear cache 13592 unset ac_cv_search_SSL_new 13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5 13594$as_echo_n "checking for library containing SSL_new... " >&6; } 13595if ${ac_cv_search_SSL_new+:} false; then : 13596 $as_echo_n "(cached) " >&6 13597else 13598 ac_func_search_save_LIBS=$LIBS 13599cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13600/* end confdefs.h. */ 13601 13602/* Override any GCC internal prototype to avoid an error. 13603 Use char because int might match the return type of a GCC 13604 builtin and then its argument prototype would still apply. */ 13605#ifdef __cplusplus 13606extern "C" 13607#endif 13608char SSL_new (); 13609int 13610main () 13611{ 13612return SSL_new (); 13613 ; 13614 return 0; 13615} 13616_ACEOF 13617for ac_lib in '' ssl ssl32; do 13618 if test -z "$ac_lib"; then 13619 ac_res="none required" 13620 else 13621 ac_res=-l$ac_lib 13622 LIBS="-l$ac_lib -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS" 13623 fi 13624 if ac_fn_c_try_link "$LINENO"; then : 13625 ac_cv_search_SSL_new=$ac_res 13626fi 13627rm -f core conftest.err conftest.$ac_objext \ 13628 conftest$ac_exeext 13629 if ${ac_cv_search_SSL_new+:} false; then : 13630 break 13631fi 13632done 13633if ${ac_cv_search_SSL_new+:} false; then : 13634 13635else 13636 ac_cv_search_SSL_new=no 13637fi 13638rm conftest.$ac_ext 13639LIBS=$ac_func_search_save_LIBS 13640fi 13641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5 13642$as_echo "$ac_cv_search_SSL_new" >&6; } 13643ac_res=$ac_cv_search_SSL_new 13644if test "$ac_res" != no; then : 13645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13646 have_openssl=yes 13647 OPENSSL_LIBS="$LIBS -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD" 13648else 13649 have_openssl=no 13650fi 13651 13652 LIBS="$save_LIBS" 13653 test "$have_openssl" = "yes" && break 13654 done 13655 ;; 13656 esac 13657 CPPFLAGS_SAVE=$CPPFLAGS 13658 CPPFLAGS="$CPPFLAGS $OPENSSL_INCS" 13659 for ac_header in openssl/ssl.h 13660do : 13661 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 13662if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 13663 cat >>confdefs.h <<_ACEOF 13664#define HAVE_OPENSSL_SSL_H 1 13665_ACEOF 13666 13667else 13668 have_openssl=no 13669fi 13670 13671done 13672 13673 CPPFLAGS=$CPPFLAGS_SAVE 13674 13675 13676 case "$have_openssl" in 13677 yes) 13678$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 13679 ;; 13680 esac 13681 ;; 13682esac 13683 13684# check if we have and should use openssl 13685 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then 13686 OPENSSL_TRUE= 13687 OPENSSL_FALSE='#' 13688else 13689 OPENSSL_TRUE='#' 13690 OPENSSL_FALSE= 13691fi 13692 13693 13694 13695for ac_header in \ 13696 arpa/inet.h \ 13697 fcntl.h \ 13698 ifaddrs.h \ 13699 mach/mach_time.h \ 13700 netdb.h \ 13701 netinet/in.h \ 13702 netinet/in6.h \ 13703 netinet/tcp.h \ 13704 sys/un.h \ 13705 poll.h \ 13706 port.h \ 13707 stdarg.h \ 13708 stddef.h \ 13709 sys/devpoll.h \ 13710 sys/epoll.h \ 13711 sys/event.h \ 13712 sys/eventfd.h \ 13713 sys/ioctl.h \ 13714 sys/mman.h \ 13715 sys/param.h \ 13716 sys/queue.h \ 13717 sys/resource.h \ 13718 sys/select.h \ 13719 sys/sendfile.h \ 13720 sys/socket.h \ 13721 sys/stat.h \ 13722 sys/time.h \ 13723 sys/timerfd.h \ 13724 sys/uio.h \ 13725 sys/wait.h \ 13726 errno.h \ 13727 13728do : 13729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13730ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13731if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13732 cat >>confdefs.h <<_ACEOF 13733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13734_ACEOF 13735 13736fi 13737 13738done 13739 13740 13741for ac_header in sys/sysctl.h 13742do : 13743 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 13744#ifdef HAVE_SYS_PARAM_H 13745#include <sys/param.h> 13746#endif 13747 13748" 13749if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 13750 cat >>confdefs.h <<_ACEOF 13751#define HAVE_SYS_SYSCTL_H 1 13752_ACEOF 13753 13754fi 13755 13756done 13757 13758if test "x$ac_cv_header_sys_queue_h" = "xyes"; then 13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5 13760$as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; } 13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13762/* end confdefs.h. */ 13763 13764#include <sys/queue.h> 13765#ifdef TAILQ_FOREACH 13766 yes 13767#endif 13768 13769_ACEOF 13770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13771 $EGREP "yes" >/dev/null 2>&1; then : 13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13773$as_echo "yes" >&6; } 13774 13775$as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h 13776 13777else 13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13779$as_echo "no" >&6; } 13780 13781fi 13782rm -f conftest* 13783 13784fi 13785 13786if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5 13788$as_echo_n "checking for timeradd in sys/time.h... " >&6; } 13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13790/* end confdefs.h. */ 13791 13792#include <sys/time.h> 13793#ifdef timeradd 13794 yes 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_TIMERADD 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; } 13808 13809fi 13810rm -f conftest* 13811 13812fi 13813 13814if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5 13816$as_echo_n "checking for timercmp in sys/time.h... " >&6; } 13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13818/* end confdefs.h. */ 13819 13820#include <sys/time.h> 13821#ifdef timercmp 13822 yes 13823#endif 13824 13825_ACEOF 13826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13827 $EGREP "yes" >/dev/null 2>&1; then : 13828 13829$as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h 13830 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13832$as_echo "yes" >&6; } 13833else 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13835$as_echo "no" >&6; } 13836 13837fi 13838rm -f conftest* 13839 13840fi 13841 13842if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5 13844$as_echo_n "checking for timerclear in sys/time.h... " >&6; } 13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13846/* end confdefs.h. */ 13847 13848#include <sys/time.h> 13849#ifdef timerclear 13850 yes 13851#endif 13852 13853_ACEOF 13854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13855 $EGREP "yes" >/dev/null 2>&1; then : 13856 13857$as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h 13858 13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13860$as_echo "yes" >&6; } 13861else 13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13863$as_echo "no" >&6; } 13864 13865fi 13866rm -f conftest* 13867 13868fi 13869 13870if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5 13872$as_echo_n "checking for timerisset in sys/time.h... " >&6; } 13873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13874/* end confdefs.h. */ 13875 13876#include <sys/time.h> 13877#ifdef timerisset 13878 yes 13879#endif 13880 13881_ACEOF 13882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13883 $EGREP "yes" >/dev/null 2>&1; then : 13884 13885$as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h 13886 13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13888$as_echo "yes" >&6; } 13889else 13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13891$as_echo "no" >&6; } 13892 13893fi 13894rm -f conftest* 13895 13896fi 13897 13898if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then 13899 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h> 13900 #include <sys/sysctl.h> 13901 13902" 13903if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then : 13904 ac_have_decl=1 13905else 13906 ac_have_decl=0 13907fi 13908 13909cat >>confdefs.h <<_ACEOF 13910#define HAVE_DECL_CTL_KERN $ac_have_decl 13911_ACEOF 13912ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h> 13913 #include <sys/sysctl.h> 13914 13915" 13916if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then : 13917 ac_have_decl=1 13918else 13919 ac_have_decl=0 13920fi 13921 13922cat >>confdefs.h <<_ACEOF 13923#define HAVE_DECL_KERN_RANDOM $ac_have_decl 13924_ACEOF 13925ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h> 13926 #include <sys/sysctl.h> 13927 13928" 13929if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then : 13930 ac_have_decl=1 13931else 13932 ac_have_decl=0 13933fi 13934 13935cat >>confdefs.h <<_ACEOF 13936#define HAVE_DECL_RANDOM_UUID $ac_have_decl 13937_ACEOF 13938ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h> 13939 #include <sys/sysctl.h> 13940 13941" 13942if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then : 13943 ac_have_decl=1 13944else 13945 ac_have_decl=0 13946fi 13947 13948cat >>confdefs.h <<_ACEOF 13949#define HAVE_DECL_KERN_ARND $ac_have_decl 13950_ACEOF 13951 13952fi 13953 13954 if test x$bwin32 = xtrue; then 13955 BUILD_WIN32_TRUE= 13956 BUILD_WIN32_FALSE='#' 13957else 13958 BUILD_WIN32_TRUE='#' 13959 BUILD_WIN32_FALSE= 13960fi 13961 13962 if test x$cygwin = xtrue; then 13963 BUILD_CYGWIN_TRUE= 13964 BUILD_CYGWIN_FALSE='#' 13965else 13966 BUILD_CYGWIN_TRUE='#' 13967 BUILD_CYGWIN_FALSE= 13968fi 13969 13970 if test x$midipix = xtrue; then 13971 BUILD_MIDIPIX_TRUE= 13972 BUILD_MIDIPIX_FALSE='#' 13973else 13974 BUILD_MIDIPIX_TRUE='#' 13975 BUILD_MIDIPIX_FALSE= 13976fi 13977 13978 if test x$bwin32 = xtrue || test x$cygwin = xtrue || test x$midipix = xtrue; then 13979 BUILD_WITH_NO_UNDEFINED_TRUE= 13980 BUILD_WITH_NO_UNDEFINED_FALSE='#' 13981else 13982 BUILD_WITH_NO_UNDEFINED_TRUE='#' 13983 BUILD_WITH_NO_UNDEFINED_FALSE= 13984fi 13985 13986 13987if test x$bwin32 = xtrue; then 13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5 13989$as_echo_n "checking for library containing getservbyname... " >&6; } 13990if ${ac_cv_search_getservbyname+:} false; then : 13991 $as_echo_n "(cached) " >&6 13992else 13993 ac_func_search_save_LIBS=$LIBS 13994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13995/* end confdefs.h. */ 13996 13997/* Override any GCC internal prototype to avoid an error. 13998 Use char because int might match the return type of a GCC 13999 builtin and then its argument prototype would still apply. */ 14000#ifdef __cplusplus 14001extern "C" 14002#endif 14003char getservbyname (); 14004int 14005main () 14006{ 14007return getservbyname (); 14008 ; 14009 return 0; 14010} 14011_ACEOF 14012for ac_lib in '' ws2_32; do 14013 if test -z "$ac_lib"; then 14014 ac_res="none required" 14015 else 14016 ac_res=-l$ac_lib 14017 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14018 fi 14019 if ac_fn_c_try_link "$LINENO"; then : 14020 ac_cv_search_getservbyname=$ac_res 14021fi 14022rm -f core conftest.err conftest.$ac_objext \ 14023 conftest$ac_exeext 14024 if ${ac_cv_search_getservbyname+:} false; then : 14025 break 14026fi 14027done 14028if ${ac_cv_search_getservbyname+:} false; then : 14029 14030else 14031 ac_cv_search_getservbyname=no 14032fi 14033rm conftest.$ac_ext 14034LIBS=$ac_func_search_save_LIBS 14035fi 14036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5 14037$as_echo "$ac_cv_search_getservbyname" >&6; } 14038ac_res=$ac_cv_search_getservbyname 14039if test "$ac_res" != no; then : 14040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14041 14042fi 14043 14044fi 14045 14046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 14047$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 14048if ${ac_cv_c_const+:} false; then : 14049 $as_echo_n "(cached) " >&6 14050else 14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14052/* end confdefs.h. */ 14053 14054int 14055main () 14056{ 14057 14058#ifndef __cplusplus 14059 /* Ultrix mips cc rejects this sort of thing. */ 14060 typedef int charset[2]; 14061 const charset cs = { 0, 0 }; 14062 /* SunOS 4.1.1 cc rejects this. */ 14063 char const *const *pcpcc; 14064 char **ppc; 14065 /* NEC SVR4.0.2 mips cc rejects this. */ 14066 struct point {int x, y;}; 14067 static struct point const zero = {0,0}; 14068 /* AIX XL C 1.02.0.0 rejects this. 14069 It does not let you subtract one const X* pointer from another in 14070 an arm of an if-expression whose if-part is not a constant 14071 expression */ 14072 const char *g = "string"; 14073 pcpcc = &g + (g ? g-g : 0); 14074 /* HPUX 7.0 cc rejects these. */ 14075 ++pcpcc; 14076 ppc = (char**) pcpcc; 14077 pcpcc = (char const *const *) ppc; 14078 { /* SCO 3.2v4 cc rejects this sort of thing. */ 14079 char tx; 14080 char *t = &tx; 14081 char const *s = 0 ? (char *) 0 : (char const *) 0; 14082 14083 *t++ = 0; 14084 if (s) return 0; 14085 } 14086 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14087 int x[] = {25, 17}; 14088 const int *foo = &x[0]; 14089 ++foo; 14090 } 14091 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14092 typedef const int *iptr; 14093 iptr p = 0; 14094 ++p; 14095 } 14096 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 14097 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14098 struct s { int j; const int *ap[3]; } bx; 14099 struct s *b = &bx; b->j = 5; 14100 } 14101 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14102 const int foo = 10; 14103 if (!foo) return 0; 14104 } 14105 return !cs[0] && !zero.x; 14106#endif 14107 14108 ; 14109 return 0; 14110} 14111_ACEOF 14112if ac_fn_c_try_compile "$LINENO"; then : 14113 ac_cv_c_const=yes 14114else 14115 ac_cv_c_const=no 14116fi 14117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14118fi 14119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14120$as_echo "$ac_cv_c_const" >&6; } 14121if test $ac_cv_c_const = no; then 14122 14123$as_echo "#define const /**/" >>confdefs.h 14124 14125fi 14126 14127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 14128$as_echo_n "checking for inline... " >&6; } 14129if ${ac_cv_c_inline+:} false; then : 14130 $as_echo_n "(cached) " >&6 14131else 14132 ac_cv_c_inline=no 14133for ac_kw in inline __inline__ __inline; do 14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14135/* end confdefs.h. */ 14136#ifndef __cplusplus 14137typedef int foo_t; 14138static $ac_kw foo_t static_foo () {return 0; } 14139$ac_kw foo_t foo () {return 0; } 14140#endif 14141 14142_ACEOF 14143if ac_fn_c_try_compile "$LINENO"; then : 14144 ac_cv_c_inline=$ac_kw 14145fi 14146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14147 test "$ac_cv_c_inline" != no && break 14148done 14149 14150fi 14151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 14152$as_echo "$ac_cv_c_inline" >&6; } 14153 14154case $ac_cv_c_inline in 14155 inline | yes) ;; 14156 *) 14157 case $ac_cv_c_inline in 14158 no) ac_val=;; 14159 *) ac_val=$ac_cv_c_inline;; 14160 esac 14161 cat >>confdefs.h <<_ACEOF 14162#ifndef __cplusplus 14163#define inline $ac_val 14164#endif 14165_ACEOF 14166 ;; 14167esac 14168 14169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 14170$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 14171if ${ac_cv_header_time+:} false; then : 14172 $as_echo_n "(cached) " >&6 14173else 14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14175/* end confdefs.h. */ 14176#include <sys/types.h> 14177#include <sys/time.h> 14178#include <time.h> 14179 14180int 14181main () 14182{ 14183if ((struct tm *) 0) 14184return 0; 14185 ; 14186 return 0; 14187} 14188_ACEOF 14189if ac_fn_c_try_compile "$LINENO"; then : 14190 ac_cv_header_time=yes 14191else 14192 ac_cv_header_time=no 14193fi 14194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14195fi 14196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 14197$as_echo "$ac_cv_header_time" >&6; } 14198if test $ac_cv_header_time = yes; then 14199 14200$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 14201 14202fi 14203 14204 14205for ac_func in \ 14206 accept4 \ 14207 arc4random \ 14208 arc4random_buf \ 14209 arc4random_addrandom \ 14210 eventfd \ 14211 epoll_create1 \ 14212 fcntl \ 14213 getegid \ 14214 geteuid \ 14215 getifaddrs \ 14216 getnameinfo \ 14217 getprotobynumber \ 14218 gettimeofday \ 14219 inet_ntop \ 14220 inet_pton \ 14221 issetugid \ 14222 mach_absolute_time \ 14223 mmap \ 14224 nanosleep \ 14225 pipe \ 14226 pipe2 \ 14227 putenv \ 14228 sendfile \ 14229 setenv \ 14230 setrlimit \ 14231 sigaction \ 14232 signal \ 14233 splice \ 14234 strlcpy \ 14235 strsep \ 14236 strtok_r \ 14237 strtoll \ 14238 sysctl \ 14239 timerfd_create \ 14240 umask \ 14241 unsetenv \ 14242 usleep \ 14243 vasprintf \ 14244 getservbyname \ 14245 14246do : 14247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14248ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14249if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14250 cat >>confdefs.h <<_ACEOF 14251#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14252_ACEOF 14253 14254fi 14255done 14256 14257 if test x"$ac_cv_func_strlcpy" = xno; then 14258 STRLCPY_IMPL_TRUE= 14259 STRLCPY_IMPL_FALSE='#' 14260else 14261 STRLCPY_IMPL_TRUE='#' 14262 STRLCPY_IMPL_FALSE= 14263fi 14264 14265 14266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 14267$as_echo_n "checking for getaddrinfo... " >&6; } 14268if ${libevent_cv_getaddrinfo+:} false; then : 14269 $as_echo_n "(cached) " >&6 14270else 14271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14272/* end confdefs.h. */ 14273 14274 #ifdef HAVE_NETDB_H 14275 #include <netdb.h> 14276 #endif 14277 14278int 14279main () 14280{ 14281 14282 getaddrinfo; 14283 14284 14285 ; 14286 return 0; 14287} 14288_ACEOF 14289if ac_fn_c_try_link "$LINENO"; then : 14290 libevent_cv_getaddrinfo=yes 14291else 14292 libevent_cv_getaddrinfo=no 14293 14294fi 14295rm -f core conftest.err conftest.$ac_objext \ 14296 conftest$ac_exeext conftest.$ac_ext 14297 14298fi 14299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5 14300$as_echo "$libevent_cv_getaddrinfo" >&6; } 14301if test "$libevent_cv_getaddrinfo" = "yes" ; then 14302 14303$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 14304 14305else 14306 14307# Check for gethostbyname_r in all its glorious incompatible versions. 14308# (This is cut-and-pasted from Tor, which based its logic on 14309# Python's configure.in.) 14310 14311 14312ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 14313if test "x$ac_cv_func_gethostbyname_r" = xyes; then : 14314 14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5 14316$as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; } 14317 OLD_CFLAGS=$CFLAGS 14318 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" 14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14320/* end confdefs.h. */ 14321 14322#include <netdb.h> 14323 14324int 14325main () 14326{ 14327 14328 char *cp1, *cp2; 14329 struct hostent *h1, *h2; 14330 int i1, i2; 14331 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2); 14332 14333 ; 14334 return 0; 14335} 14336_ACEOF 14337if ac_fn_c_try_compile "$LINENO"; then : 14338 14339 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 14340 14341 14342$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h 14343 14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5 14345$as_echo "6" >&6; } 14346 14347else 14348 14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14350/* end confdefs.h. */ 14351 14352#include <netdb.h> 14353 14354int 14355main () 14356{ 14357 14358 char *cp1, *cp2; 14359 struct hostent *h1; 14360 int i1, i2; 14361 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2); 14362 14363 ; 14364 return 0; 14365} 14366_ACEOF 14367if ac_fn_c_try_compile "$LINENO"; then : 14368 14369 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 14370 14371 14372$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h 14373 14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5 14375$as_echo "5" >&6; } 14376 14377else 14378 14379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14380/* end confdefs.h. */ 14381 14382#include <netdb.h> 14383 14384int 14385main () 14386{ 14387 14388 char *cp1; 14389 struct hostent *h1; 14390 struct hostent_data hd; 14391 (void) gethostbyname_r(cp1,h1,&hd); 14392 14393 ; 14394 return 0; 14395} 14396_ACEOF 14397if ac_fn_c_try_compile "$LINENO"; then : 14398 14399 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 14400 14401 14402$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h 14403 14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5 14405$as_echo "3" >&6; } 14406 14407else 14408 14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5 14410$as_echo "0" >&6; } 14411 14412fi 14413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14414 14415fi 14416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14417 14418fi 14419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14420 CFLAGS=$OLD_CFLAGS 14421 14422fi 14423 14424 14425fi 14426 14427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5 14428$as_echo_n "checking for F_SETFD in fcntl.h... " >&6; } 14429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14430/* end confdefs.h. */ 14431 14432#define _GNU_SOURCE 1 14433#include <fcntl.h> 14434#ifdef F_SETFD 14435yes 14436#endif 14437 14438_ACEOF 14439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14440 $EGREP "yes" >/dev/null 2>&1; then : 14441 14442$as_echo "#define HAVE_SETFD 1" >>confdefs.h 14443 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14445$as_echo "yes" >&6; } 14446else 14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14448$as_echo "no" >&6; } 14449fi 14450rm -f conftest* 14451 14452 14453needsignal=no 14454haveselect=no 14455if test x$bwin32 != xtrue; then 14456 for ac_func in select 14457do : 14458 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 14459if test "x$ac_cv_func_select" = xyes; then : 14460 cat >>confdefs.h <<_ACEOF 14461#define HAVE_SELECT 1 14462_ACEOF 14463 haveselect=yes 14464fi 14465done 14466 14467 if test "x$haveselect" = "xyes" ; then 14468 needsignal=yes 14469 fi 14470fi 14471 if test "x$haveselect" = "xyes"; then 14472 SELECT_BACKEND_TRUE= 14473 SELECT_BACKEND_FALSE='#' 14474else 14475 SELECT_BACKEND_TRUE='#' 14476 SELECT_BACKEND_FALSE= 14477fi 14478 14479 14480havepoll=no 14481for ac_func in poll 14482do : 14483 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 14484if test "x$ac_cv_func_poll" = xyes; then : 14485 cat >>confdefs.h <<_ACEOF 14486#define HAVE_POLL 1 14487_ACEOF 14488 havepoll=yes 14489fi 14490done 14491 14492if test "x$havepoll" = "xyes" ; then 14493 needsignal=yes 14494fi 14495 if test "x$havepoll" = "xyes"; then 14496 POLL_BACKEND_TRUE= 14497 POLL_BACKEND_FALSE='#' 14498else 14499 POLL_BACKEND_TRUE='#' 14500 POLL_BACKEND_FALSE= 14501fi 14502 14503 14504havedevpoll=no 14505if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then 14506 14507$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h 14508 14509fi 14510 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then 14511 DEVPOLL_BACKEND_TRUE= 14512 DEVPOLL_BACKEND_FALSE='#' 14513else 14514 DEVPOLL_BACKEND_TRUE='#' 14515 DEVPOLL_BACKEND_FALSE= 14516fi 14517 14518 14519havekqueue=no 14520if test "x$ac_cv_header_sys_event_h" = "xyes"; then 14521 for ac_func in kqueue 14522do : 14523 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" 14524if test "x$ac_cv_func_kqueue" = xyes; then : 14525 cat >>confdefs.h <<_ACEOF 14526#define HAVE_KQUEUE 1 14527_ACEOF 14528 havekqueue=yes 14529fi 14530done 14531 14532 if test "x$havekqueue" = "xyes" ; then 14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5 14534$as_echo_n "checking for working kqueue... " >&6; } 14535 if test "$cross_compiling" = yes; then : 14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14537$as_echo "no" >&6; } 14538else 14539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14540/* end confdefs.h. */ 14541#ifdef HAVE_STDLIB_H 14542#include <stdlib.h> 14543#endif 14544#ifdef HAVE_STRING_H 14545#include <string.h> 14546#endif 14547#include <sys/types.h> 14548#include <sys/time.h> 14549#include <sys/event.h> 14550#include <stdio.h> 14551#include <unistd.h> 14552#include <fcntl.h> 14553 14554int 14555main(int argc, char **argv) 14556{ 14557 int kq; 14558 int n; 14559 int fd[2]; 14560 struct kevent ev; 14561 struct timespec ts; 14562 char buf[80000]; 14563 14564 if (pipe(fd) == -1) 14565 exit(1); 14566 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1) 14567 exit(1); 14568 14569 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf)) 14570 ; 14571 14572 if ((kq = kqueue()) == -1) 14573 exit(1); 14574 14575 memset(&ev, 0, sizeof(ev)); 14576 ev.ident = fd[1]; 14577 ev.filter = EVFILT_WRITE; 14578 ev.flags = EV_ADD | EV_ENABLE; 14579 n = kevent(kq, &ev, 1, NULL, 0, NULL); 14580 if (n == -1) 14581 exit(1); 14582 14583 read(fd[0], buf, sizeof(buf)); 14584 14585 ts.tv_sec = 0; 14586 ts.tv_nsec = 0; 14587 n = kevent(kq, NULL, 0, &ev, 1, &ts); 14588 if (n == -1 || n == 0) 14589 exit(1); 14590 14591 exit(0); 14592} 14593_ACEOF 14594if ac_fn_c_try_run "$LINENO"; then : 14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14596$as_echo "yes" >&6; } 14597 14598$as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h 14599 14600 havekqueue=yes 14601 14602else 14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14604$as_echo "no" >&6; } 14605fi 14606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14607 conftest.$ac_objext conftest.beam conftest.$ac_ext 14608fi 14609 14610 fi 14611fi 14612 if test "x$havekqueue" = "xyes"; then 14613 KQUEUE_BACKEND_TRUE= 14614 KQUEUE_BACKEND_FALSE='#' 14615else 14616 KQUEUE_BACKEND_TRUE='#' 14617 KQUEUE_BACKEND_FALSE= 14618fi 14619 14620 14621haveepollsyscall=no 14622haveepoll=no 14623for ac_func in epoll_ctl 14624do : 14625 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" 14626if test "x$ac_cv_func_epoll_ctl" = xyes; then : 14627 cat >>confdefs.h <<_ACEOF 14628#define HAVE_EPOLL_CTL 1 14629_ACEOF 14630 haveepoll=yes 14631fi 14632done 14633 14634if test "x$haveepoll" = "xyes" ; then 14635 14636$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 14637 14638 needsignal=yes 14639fi 14640if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then 14641 if test "x$haveepoll" = "xno" ; then 14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5 14643$as_echo_n "checking for epoll system call... " >&6; } 14644 if test "$cross_compiling" = yes; then : 14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14646$as_echo "no" >&6; } 14647else 14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14649/* end confdefs.h. */ 14650#include <stdint.h> 14651#include <sys/param.h> 14652#include <sys/types.h> 14653#include <sys/syscall.h> 14654#include <sys/epoll.h> 14655#include <unistd.h> 14656 14657int 14658epoll_create(int size) 14659{ 14660 return (syscall(__NR_epoll_create, size)); 14661} 14662 14663int 14664main(int argc, char **argv) 14665{ 14666 int epfd; 14667 14668 epfd = epoll_create(256); 14669 exit (epfd == -1 ? 1 : 0); 14670} 14671_ACEOF 14672if ac_fn_c_try_run "$LINENO"; then : 14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14674$as_echo "yes" >&6; } 14675 14676$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 14677 14678 needsignal=yes 14679 have_epoll=yes 14680 case " $LIBOBJS " in 14681 *" epoll_sub.$ac_objext "* ) ;; 14682 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext" 14683 ;; 14684esac 14685 14686 14687else 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14689$as_echo "no" >&6; } 14690fi 14691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14692 conftest.$ac_objext conftest.beam conftest.$ac_ext 14693fi 14694 14695 fi 14696fi 14697 if test "x$haveepoll" = "xyes"; then 14698 EPOLL_BACKEND_TRUE= 14699 EPOLL_BACKEND_FALSE='#' 14700else 14701 EPOLL_BACKEND_TRUE='#' 14702 EPOLL_BACKEND_FALSE= 14703fi 14704 14705 14706haveeventports=no 14707for ac_func in port_create 14708do : 14709 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create" 14710if test "x$ac_cv_func_port_create" = xyes; then : 14711 cat >>confdefs.h <<_ACEOF 14712#define HAVE_PORT_CREATE 1 14713_ACEOF 14714 haveeventports=yes 14715fi 14716done 14717 14718if test "x$haveeventports" = "xyes" ; then 14719 14720$as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h 14721 14722 needsignal=yes 14723fi 14724 if test "x$haveeventports" = "xyes"; then 14725 EVPORT_BACKEND_TRUE= 14726 EVPORT_BACKEND_FALSE='#' 14727else 14728 EVPORT_BACKEND_TRUE='#' 14729 EVPORT_BACKEND_FALSE= 14730fi 14731 14732 14733if test "x$bwin32" = "xtrue"; then 14734 needsignal=yes 14735fi 14736 14737 if test "x$needsignal" = "xyes"; then 14738 SIGNAL_SUPPORT_TRUE= 14739 SIGNAL_SUPPORT_FALSE='#' 14740else 14741 SIGNAL_SUPPORT_TRUE='#' 14742 SIGNAL_SUPPORT_FALSE= 14743fi 14744 14745 14746ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 14747if test "x$ac_cv_type_pid_t" = xyes; then : 14748 14749else 14750 14751cat >>confdefs.h <<_ACEOF 14752#define pid_t int 14753_ACEOF 14754 14755fi 14756 14757ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14758if test "x$ac_cv_type_size_t" = xyes; then : 14759 14760else 14761 14762cat >>confdefs.h <<_ACEOF 14763#define size_t unsigned int 14764_ACEOF 14765 14766fi 14767 14768ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14769if test "x$ac_cv_type_ssize_t" = xyes; then : 14770 14771else 14772 14773cat >>confdefs.h <<_ACEOF 14774#define ssize_t int 14775_ACEOF 14776 14777fi 14778 14779 14780ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H 14781#include <stdint.h> 14782#elif defined(HAVE_INTTYPES_H) 14783#include <inttypes.h> 14784#endif 14785#ifdef HAVE_SYS_TYPES_H 14786#include <sys/types.h> 14787#endif 14788" 14789if test "x$ac_cv_type_uint64_t" = xyes; then : 14790 14791cat >>confdefs.h <<_ACEOF 14792#define HAVE_UINT64_T 1 14793_ACEOF 14794 14795 14796fi 14797ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H 14798#include <stdint.h> 14799#elif defined(HAVE_INTTYPES_H) 14800#include <inttypes.h> 14801#endif 14802#ifdef HAVE_SYS_TYPES_H 14803#include <sys/types.h> 14804#endif 14805" 14806if test "x$ac_cv_type_uint32_t" = xyes; then : 14807 14808cat >>confdefs.h <<_ACEOF 14809#define HAVE_UINT32_T 1 14810_ACEOF 14811 14812 14813fi 14814ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H 14815#include <stdint.h> 14816#elif defined(HAVE_INTTYPES_H) 14817#include <inttypes.h> 14818#endif 14819#ifdef HAVE_SYS_TYPES_H 14820#include <sys/types.h> 14821#endif 14822" 14823if test "x$ac_cv_type_uint16_t" = xyes; then : 14824 14825cat >>confdefs.h <<_ACEOF 14826#define HAVE_UINT16_T 1 14827_ACEOF 14828 14829 14830fi 14831ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H 14832#include <stdint.h> 14833#elif defined(HAVE_INTTYPES_H) 14834#include <inttypes.h> 14835#endif 14836#ifdef HAVE_SYS_TYPES_H 14837#include <sys/types.h> 14838#endif 14839" 14840if test "x$ac_cv_type_uint8_t" = xyes; then : 14841 14842cat >>confdefs.h <<_ACEOF 14843#define HAVE_UINT8_T 1 14844_ACEOF 14845 14846 14847fi 14848ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H 14849#include <stdint.h> 14850#elif defined(HAVE_INTTYPES_H) 14851#include <inttypes.h> 14852#endif 14853#ifdef HAVE_SYS_TYPES_H 14854#include <sys/types.h> 14855#endif 14856" 14857if test "x$ac_cv_type_uintptr_t" = xyes; then : 14858 14859cat >>confdefs.h <<_ACEOF 14860#define HAVE_UINTPTR_T 1 14861_ACEOF 14862 14863 14864fi 14865 14866 14867ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H 14868#include <sys/types.h> 14869#endif 14870#ifdef HAVE_SYS_SELECT_H 14871#include <sys/select.h> 14872#endif 14873" 14874if test "x$ac_cv_type_fd_mask" = xyes; then : 14875 14876cat >>confdefs.h <<_ACEOF 14877#define HAVE_FD_MASK 1 14878_ACEOF 14879 14880 14881fi 14882 14883 14884# The cast to long int works around a bug in the HP C Compiler 14885# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14886# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14887# This bug is HP SR number 8606223364. 14888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 14889$as_echo_n "checking size of long long... " >&6; } 14890if ${ac_cv_sizeof_long_long+:} false; then : 14891 $as_echo_n "(cached) " >&6 14892else 14893 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 14894 14895else 14896 if test "$ac_cv_type_long_long" = yes; then 14897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14899as_fn_error 77 "cannot compute sizeof (long long) 14900See \`config.log' for more details" "$LINENO" 5; } 14901 else 14902 ac_cv_sizeof_long_long=0 14903 fi 14904fi 14905 14906fi 14907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 14908$as_echo "$ac_cv_sizeof_long_long" >&6; } 14909 14910 14911 14912cat >>confdefs.h <<_ACEOF 14913#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 14914_ACEOF 14915 14916 14917# The cast to long int works around a bug in the HP C Compiler 14918# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14919# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14920# This bug is HP SR number 8606223364. 14921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14922$as_echo_n "checking size of long... " >&6; } 14923if ${ac_cv_sizeof_long+:} false; then : 14924 $as_echo_n "(cached) " >&6 14925else 14926 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14927 14928else 14929 if test "$ac_cv_type_long" = yes; then 14930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14932as_fn_error 77 "cannot compute sizeof (long) 14933See \`config.log' for more details" "$LINENO" 5; } 14934 else 14935 ac_cv_sizeof_long=0 14936 fi 14937fi 14938 14939fi 14940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14941$as_echo "$ac_cv_sizeof_long" >&6; } 14942 14943 14944 14945cat >>confdefs.h <<_ACEOF 14946#define SIZEOF_LONG $ac_cv_sizeof_long 14947_ACEOF 14948 14949 14950# The cast to long int works around a bug in the HP C Compiler 14951# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14952# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14953# This bug is HP SR number 8606223364. 14954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 14955$as_echo_n "checking size of int... " >&6; } 14956if ${ac_cv_sizeof_int+:} false; then : 14957 $as_echo_n "(cached) " >&6 14958else 14959 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 14960 14961else 14962 if test "$ac_cv_type_int" = yes; then 14963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14965as_fn_error 77 "cannot compute sizeof (int) 14966See \`config.log' for more details" "$LINENO" 5; } 14967 else 14968 ac_cv_sizeof_int=0 14969 fi 14970fi 14971 14972fi 14973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 14974$as_echo "$ac_cv_sizeof_int" >&6; } 14975 14976 14977 14978cat >>confdefs.h <<_ACEOF 14979#define SIZEOF_INT $ac_cv_sizeof_int 14980_ACEOF 14981 14982 14983# The cast to long int works around a bug in the HP C Compiler 14984# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14985# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14986# This bug is HP SR number 8606223364. 14987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 14988$as_echo_n "checking size of short... " >&6; } 14989if ${ac_cv_sizeof_short+:} false; then : 14990 $as_echo_n "(cached) " >&6 14991else 14992 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 14993 14994else 14995 if test "$ac_cv_type_short" = yes; then 14996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14998as_fn_error 77 "cannot compute sizeof (short) 14999See \`config.log' for more details" "$LINENO" 5; } 15000 else 15001 ac_cv_sizeof_short=0 15002 fi 15003fi 15004 15005fi 15006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 15007$as_echo "$ac_cv_sizeof_short" >&6; } 15008 15009 15010 15011cat >>confdefs.h <<_ACEOF 15012#define SIZEOF_SHORT $ac_cv_sizeof_short 15013_ACEOF 15014 15015 15016# The cast to long int works around a bug in the HP C Compiler 15017# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15018# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15019# This bug is HP SR number 8606223364. 15020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 15021$as_echo_n "checking size of size_t... " >&6; } 15022if ${ac_cv_sizeof_size_t+:} false; then : 15023 $as_echo_n "(cached) " >&6 15024else 15025 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 15026 15027else 15028 if test "$ac_cv_type_size_t" = yes; then 15029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15031as_fn_error 77 "cannot compute sizeof (size_t) 15032See \`config.log' for more details" "$LINENO" 5; } 15033 else 15034 ac_cv_sizeof_size_t=0 15035 fi 15036fi 15037 15038fi 15039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 15040$as_echo "$ac_cv_sizeof_size_t" >&6; } 15041 15042 15043 15044cat >>confdefs.h <<_ACEOF 15045#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 15046_ACEOF 15047 15048 15049# The cast to long int works around a bug in the HP C Compiler 15050# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15051# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15052# This bug is HP SR number 8606223364. 15053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 15054$as_echo_n "checking size of void *... " >&6; } 15055if ${ac_cv_sizeof_void_p+:} false; then : 15056 $as_echo_n "(cached) " >&6 15057else 15058 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 15059 15060else 15061 if test "$ac_cv_type_void_p" = yes; then 15062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15064as_fn_error 77 "cannot compute sizeof (void *) 15065See \`config.log' for more details" "$LINENO" 5; } 15066 else 15067 ac_cv_sizeof_void_p=0 15068 fi 15069fi 15070 15071fi 15072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 15073$as_echo "$ac_cv_sizeof_void_p" >&6; } 15074 15075 15076 15077cat >>confdefs.h <<_ACEOF 15078#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 15079_ACEOF 15080 15081 15082# The cast to long int works around a bug in the HP C Compiler 15083# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15084# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15085# This bug is HP SR number 8606223364. 15086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 15087$as_echo_n "checking size of off_t... " >&6; } 15088if ${ac_cv_sizeof_off_t+:} false; then : 15089 $as_echo_n "(cached) " >&6 15090else 15091 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 15092 15093else 15094 if test "$ac_cv_type_off_t" = yes; then 15095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15097as_fn_error 77 "cannot compute sizeof (off_t) 15098See \`config.log' for more details" "$LINENO" 5; } 15099 else 15100 ac_cv_sizeof_off_t=0 15101 fi 15102fi 15103 15104fi 15105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 15106$as_echo "$ac_cv_sizeof_off_t" >&6; } 15107 15108 15109 15110cat >>confdefs.h <<_ACEOF 15111#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 15112_ACEOF 15113 15114 15115# The cast to long int works around a bug in the HP C Compiler 15116# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15117# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15118# This bug is HP SR number 8606223364. 15119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 15120$as_echo_n "checking size of time_t... " >&6; } 15121if ${ac_cv_sizeof_time_t+:} false; then : 15122 $as_echo_n "(cached) " >&6 15123else 15124 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 15125 15126else 15127 if test "$ac_cv_type_time_t" = yes; then 15128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15130as_fn_error 77 "cannot compute sizeof (time_t) 15131See \`config.log' for more details" "$LINENO" 5; } 15132 else 15133 ac_cv_sizeof_time_t=0 15134 fi 15135fi 15136 15137fi 15138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 15139$as_echo "$ac_cv_sizeof_time_t" >&6; } 15140 15141 15142 15143cat >>confdefs.h <<_ACEOF 15144#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 15145_ACEOF 15146 15147 15148 15149ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE 1 15150#include <sys/types.h> 15151#ifdef HAVE_NETINET_IN_H 15152#include <netinet/in.h> 15153#endif 15154#ifdef HAVE_NETINET_IN6_H 15155#include <netinet/in6.h> 15156#endif 15157#ifdef HAVE_SYS_UN_H 15158#include <sys/un.h> 15159#endif 15160#ifdef HAVE_SYS_SOCKET_H 15161#include <sys/socket.h> 15162#endif 15163#ifdef HAVE_NETDB_H 15164#include <netdb.h> 15165#endif 15166#ifdef _WIN32 15167#define WIN32_WINNT 0x400 15168#define _WIN32_WINNT 0x400 15169#define WIN32_LEAN_AND_MEAN 15170#if defined(_MSC_VER) && (_MSC_VER < 1300) 15171#include <winsock.h> 15172#else 15173#include <winsock2.h> 15174#include <ws2tcpip.h> 15175#endif 15176#endif 15177 15178" 15179if test "x$ac_cv_type_struct_in6_addr" = xyes; then : 15180 15181cat >>confdefs.h <<_ACEOF 15182#define HAVE_STRUCT_IN6_ADDR 1 15183_ACEOF 15184 15185 15186fi 15187ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE 1 15188#include <sys/types.h> 15189#ifdef HAVE_NETINET_IN_H 15190#include <netinet/in.h> 15191#endif 15192#ifdef HAVE_NETINET_IN6_H 15193#include <netinet/in6.h> 15194#endif 15195#ifdef HAVE_SYS_UN_H 15196#include <sys/un.h> 15197#endif 15198#ifdef HAVE_SYS_SOCKET_H 15199#include <sys/socket.h> 15200#endif 15201#ifdef HAVE_NETDB_H 15202#include <netdb.h> 15203#endif 15204#ifdef _WIN32 15205#define WIN32_WINNT 0x400 15206#define _WIN32_WINNT 0x400 15207#define WIN32_LEAN_AND_MEAN 15208#if defined(_MSC_VER) && (_MSC_VER < 1300) 15209#include <winsock.h> 15210#else 15211#include <winsock2.h> 15212#include <ws2tcpip.h> 15213#endif 15214#endif 15215 15216" 15217if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : 15218 15219cat >>confdefs.h <<_ACEOF 15220#define HAVE_STRUCT_SOCKADDR_IN6 1 15221_ACEOF 15222 15223 15224fi 15225ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#define _GNU_SOURCE 1 15226#include <sys/types.h> 15227#ifdef HAVE_NETINET_IN_H 15228#include <netinet/in.h> 15229#endif 15230#ifdef HAVE_NETINET_IN6_H 15231#include <netinet/in6.h> 15232#endif 15233#ifdef HAVE_SYS_UN_H 15234#include <sys/un.h> 15235#endif 15236#ifdef HAVE_SYS_SOCKET_H 15237#include <sys/socket.h> 15238#endif 15239#ifdef HAVE_NETDB_H 15240#include <netdb.h> 15241#endif 15242#ifdef _WIN32 15243#define WIN32_WINNT 0x400 15244#define _WIN32_WINNT 0x400 15245#define WIN32_LEAN_AND_MEAN 15246#if defined(_MSC_VER) && (_MSC_VER < 1300) 15247#include <winsock.h> 15248#else 15249#include <winsock2.h> 15250#include <ws2tcpip.h> 15251#endif 15252#endif 15253 15254" 15255if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then : 15256 15257cat >>confdefs.h <<_ACEOF 15258#define HAVE_STRUCT_SOCKADDR_UN 1 15259_ACEOF 15260 15261 15262fi 15263ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE 1 15264#include <sys/types.h> 15265#ifdef HAVE_NETINET_IN_H 15266#include <netinet/in.h> 15267#endif 15268#ifdef HAVE_NETINET_IN6_H 15269#include <netinet/in6.h> 15270#endif 15271#ifdef HAVE_SYS_UN_H 15272#include <sys/un.h> 15273#endif 15274#ifdef HAVE_SYS_SOCKET_H 15275#include <sys/socket.h> 15276#endif 15277#ifdef HAVE_NETDB_H 15278#include <netdb.h> 15279#endif 15280#ifdef _WIN32 15281#define WIN32_WINNT 0x400 15282#define _WIN32_WINNT 0x400 15283#define WIN32_LEAN_AND_MEAN 15284#if defined(_MSC_VER) && (_MSC_VER < 1300) 15285#include <winsock.h> 15286#else 15287#include <winsock2.h> 15288#include <ws2tcpip.h> 15289#endif 15290#endif 15291 15292" 15293if test "x$ac_cv_type_sa_family_t" = xyes; then : 15294 15295cat >>confdefs.h <<_ACEOF 15296#define HAVE_SA_FAMILY_T 1 15297_ACEOF 15298 15299 15300fi 15301ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE 1 15302#include <sys/types.h> 15303#ifdef HAVE_NETINET_IN_H 15304#include <netinet/in.h> 15305#endif 15306#ifdef HAVE_NETINET_IN6_H 15307#include <netinet/in6.h> 15308#endif 15309#ifdef HAVE_SYS_UN_H 15310#include <sys/un.h> 15311#endif 15312#ifdef HAVE_SYS_SOCKET_H 15313#include <sys/socket.h> 15314#endif 15315#ifdef HAVE_NETDB_H 15316#include <netdb.h> 15317#endif 15318#ifdef _WIN32 15319#define WIN32_WINNT 0x400 15320#define _WIN32_WINNT 0x400 15321#define WIN32_LEAN_AND_MEAN 15322#if defined(_MSC_VER) && (_MSC_VER < 1300) 15323#include <winsock.h> 15324#else 15325#include <winsock2.h> 15326#include <ws2tcpip.h> 15327#endif 15328#endif 15329 15330" 15331if test "x$ac_cv_type_struct_addrinfo" = xyes; then : 15332 15333cat >>confdefs.h <<_ACEOF 15334#define HAVE_STRUCT_ADDRINFO 1 15335_ACEOF 15336 15337 15338fi 15339ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE 1 15340#include <sys/types.h> 15341#ifdef HAVE_NETINET_IN_H 15342#include <netinet/in.h> 15343#endif 15344#ifdef HAVE_NETINET_IN6_H 15345#include <netinet/in6.h> 15346#endif 15347#ifdef HAVE_SYS_UN_H 15348#include <sys/un.h> 15349#endif 15350#ifdef HAVE_SYS_SOCKET_H 15351#include <sys/socket.h> 15352#endif 15353#ifdef HAVE_NETDB_H 15354#include <netdb.h> 15355#endif 15356#ifdef _WIN32 15357#define WIN32_WINNT 0x400 15358#define _WIN32_WINNT 0x400 15359#define WIN32_LEAN_AND_MEAN 15360#if defined(_MSC_VER) && (_MSC_VER < 1300) 15361#include <winsock.h> 15362#else 15363#include <winsock2.h> 15364#include <ws2tcpip.h> 15365#endif 15366#endif 15367 15368" 15369if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 15370 15371cat >>confdefs.h <<_ACEOF 15372#define HAVE_STRUCT_SOCKADDR_STORAGE 1 15373_ACEOF 15374 15375 15376fi 15377 15378ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h> 15379#ifdef HAVE_NETINET_IN_H 15380#include <netinet/in.h> 15381#endif 15382#ifdef HAVE_NETINET_IN6_H 15383#include <netinet/in6.h> 15384#endif 15385#ifdef HAVE_SYS_SOCKET_H 15386#include <sys/socket.h> 15387#endif 15388#ifdef _WIN32 15389#define WIN32_WINNT 0x400 15390#define _WIN32_WINNT 0x400 15391#define WIN32_LEAN_AND_MEAN 15392#if defined(_MSC_VER) && (_MSC_VER < 1300) 15393#include <winsock.h> 15394#else 15395#include <winsock2.h> 15396#include <ws2tcpip.h> 15397#endif 15398#endif 15399 15400" 15401if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then : 15402 15403cat >>confdefs.h <<_ACEOF 15404#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1 15405_ACEOF 15406 15407 15408fi 15409ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h> 15410#ifdef HAVE_NETINET_IN_H 15411#include <netinet/in.h> 15412#endif 15413#ifdef HAVE_NETINET_IN6_H 15414#include <netinet/in6.h> 15415#endif 15416#ifdef HAVE_SYS_SOCKET_H 15417#include <sys/socket.h> 15418#endif 15419#ifdef _WIN32 15420#define WIN32_WINNT 0x400 15421#define _WIN32_WINNT 0x400 15422#define WIN32_LEAN_AND_MEAN 15423#if defined(_MSC_VER) && (_MSC_VER < 1300) 15424#include <winsock.h> 15425#else 15426#include <winsock2.h> 15427#include <ws2tcpip.h> 15428#endif 15429#endif 15430 15431" 15432if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then : 15433 15434cat >>confdefs.h <<_ACEOF 15435#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1 15436_ACEOF 15437 15438 15439fi 15440ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h> 15441#ifdef HAVE_NETINET_IN_H 15442#include <netinet/in.h> 15443#endif 15444#ifdef HAVE_NETINET_IN6_H 15445#include <netinet/in6.h> 15446#endif 15447#ifdef HAVE_SYS_SOCKET_H 15448#include <sys/socket.h> 15449#endif 15450#ifdef _WIN32 15451#define WIN32_WINNT 0x400 15452#define _WIN32_WINNT 0x400 15453#define WIN32_LEAN_AND_MEAN 15454#if defined(_MSC_VER) && (_MSC_VER < 1300) 15455#include <winsock.h> 15456#else 15457#include <winsock2.h> 15458#include <ws2tcpip.h> 15459#endif 15460#endif 15461 15462" 15463if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 15464 15465cat >>confdefs.h <<_ACEOF 15466#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 15467_ACEOF 15468 15469 15470fi 15471ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h> 15472#ifdef HAVE_NETINET_IN_H 15473#include <netinet/in.h> 15474#endif 15475#ifdef HAVE_NETINET_IN6_H 15476#include <netinet/in6.h> 15477#endif 15478#ifdef HAVE_SYS_SOCKET_H 15479#include <sys/socket.h> 15480#endif 15481#ifdef _WIN32 15482#define WIN32_WINNT 0x400 15483#define _WIN32_WINNT 0x400 15484#define WIN32_LEAN_AND_MEAN 15485#if defined(_MSC_VER) && (_MSC_VER < 1300) 15486#include <winsock.h> 15487#else 15488#include <winsock2.h> 15489#include <ws2tcpip.h> 15490#endif 15491#endif 15492 15493" 15494if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then : 15495 15496cat >>confdefs.h <<_ACEOF 15497#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1 15498_ACEOF 15499 15500 15501fi 15502ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h> 15503#ifdef HAVE_NETINET_IN_H 15504#include <netinet/in.h> 15505#endif 15506#ifdef HAVE_NETINET_IN6_H 15507#include <netinet/in6.h> 15508#endif 15509#ifdef HAVE_SYS_SOCKET_H 15510#include <sys/socket.h> 15511#endif 15512#ifdef _WIN32 15513#define WIN32_WINNT 0x400 15514#define _WIN32_WINNT 0x400 15515#define WIN32_LEAN_AND_MEAN 15516#if defined(_MSC_VER) && (_MSC_VER < 1300) 15517#include <winsock.h> 15518#else 15519#include <winsock2.h> 15520#include <ws2tcpip.h> 15521#endif 15522#endif 15523 15524" 15525if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : 15526 15527cat >>confdefs.h <<_ACEOF 15528#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 15529_ACEOF 15530 15531 15532fi 15533ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h> 15534#ifdef HAVE_NETINET_IN_H 15535#include <netinet/in.h> 15536#endif 15537#ifdef HAVE_NETINET_IN6_H 15538#include <netinet/in6.h> 15539#endif 15540#ifdef HAVE_SYS_SOCKET_H 15541#include <sys/socket.h> 15542#endif 15543#ifdef _WIN32 15544#define WIN32_WINNT 0x400 15545#define _WIN32_WINNT 0x400 15546#define WIN32_LEAN_AND_MEAN 15547#if defined(_MSC_VER) && (_MSC_VER < 1300) 15548#include <winsock.h> 15549#else 15550#include <winsock2.h> 15551#include <ws2tcpip.h> 15552#endif 15553#endif 15554 15555" 15556if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then : 15557 15558cat >>confdefs.h <<_ACEOF 15559#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1 15560_ACEOF 15561 15562 15563fi 15564 15565 15566ac_fn_c_check_type "$LINENO" "struct linger" "ac_cv_type_struct_linger" " 15567#ifdef HAVE_SYS_SOCKET_H 15568#include <sys/socket.h> 15569#endif 15570 15571" 15572if test "x$ac_cv_type_struct_linger" = xyes; then : 15573 15574cat >>confdefs.h <<_ACEOF 15575#define HAVE_STRUCT_LINGER 1 15576_ACEOF 15577 15578 15579fi 15580 15581 15582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 15583$as_echo_n "checking for socklen_t... " >&6; } 15584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15585/* end confdefs.h. */ 15586 15587 #include <sys/types.h> 15588 #ifdef _WIN32 15589 #include <ws2tcpip.h> 15590 #else 15591 #include <sys/socket.h> 15592 #endif 15593int 15594main () 15595{ 15596socklen_t x; 15597 ; 15598 return 0; 15599} 15600_ACEOF 15601if ac_fn_c_try_compile "$LINENO"; then : 15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15603$as_echo "yes" >&6; } 15604else 15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15606$as_echo "no" >&6; } 15607 15608$as_echo "#define socklen_t unsigned int" >>confdefs.h 15609 15610 15611fi 15612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15613 15614# __func__/__FUNCTION__ is not a macros in general 15615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5 15616$as_echo_n "checking whether our compiler supports __func__... " >&6; } 15617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15618/* end confdefs.h. */ 15619 15620int 15621main () 15622{ 15623 const char *cp = __func__; 15624 ; 15625 return 0; 15626} 15627_ACEOF 15628if ac_fn_c_try_compile "$LINENO"; then : 15629 15630$as_echo "#define HAVE___func__ 1" >>confdefs.h 15631 15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15633$as_echo "yes" >&6; } 15634 15635else 15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15637$as_echo "no" >&6; } 15638 15639fi 15640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5 15642$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } 15643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15644/* end confdefs.h. */ 15645 15646int 15647main () 15648{ 15649 const char *cp = __FUNCTION__; 15650 ; 15651 return 0; 15652} 15653_ACEOF 15654if ac_fn_c_try_compile "$LINENO"; then : 15655 15656$as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h 15657 15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15659$as_echo "yes" >&6; } 15660 15661else 15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15663$as_echo "no" >&6; } 15664 15665fi 15666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15667 15668# check if we can compile with pthreads 15669have_pthreads=no 15670if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then 15671 15672 15673 15674ac_ext=c 15675ac_cpp='$CPP $CPPFLAGS' 15676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15678ac_compiler_gnu=$ac_cv_c_compiler_gnu 15679 15680acx_pthread_ok=no 15681 15682# We used to check for pthread.h first, but this fails if pthread.h 15683# requires special compiler flags (e.g. on True64 or Sequent). 15684# It gets checked for in the link test anyway. 15685 15686# First of all, check if the user has set any of the PTHREAD_LIBS, 15687# etcetera environment variables, and if threads linking works using 15688# them: 15689if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 15690 save_CFLAGS="$CFLAGS" 15691 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15692 save_LIBS="$LIBS" 15693 LIBS="$PTHREAD_LIBS $LIBS" 15694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 15695$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 15696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15697/* end confdefs.h. */ 15698 15699/* Override any GCC internal prototype to avoid an error. 15700 Use char because int might match the return type of a GCC 15701 builtin and then its argument prototype would still apply. */ 15702#ifdef __cplusplus 15703extern "C" 15704#endif 15705char pthread_join (); 15706int 15707main () 15708{ 15709return pthread_join (); 15710 ; 15711 return 0; 15712} 15713_ACEOF 15714if ac_fn_c_try_link "$LINENO"; then : 15715 acx_pthread_ok=yes 15716fi 15717rm -f core conftest.err conftest.$ac_objext \ 15718 conftest$ac_exeext conftest.$ac_ext 15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15720$as_echo "$acx_pthread_ok" >&6; } 15721 if test x"$acx_pthread_ok" = xno; then 15722 PTHREAD_LIBS="" 15723 PTHREAD_CFLAGS="" 15724 fi 15725 LIBS="$save_LIBS" 15726 CFLAGS="$save_CFLAGS" 15727fi 15728 15729# We must check for the threads library under a number of different 15730# names; the ordering is very important because some systems 15731# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15732# libraries is broken (non-POSIX). 15733 15734# Create a list of thread flags to try. Items starting with a "-" are 15735# C compiler flags, and other items are library names, except for "none" 15736# which indicates that we try without any flags at all, and "pthread-config" 15737# which is a program returning the flags for the Pth emulation library. 15738 15739acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15740 15741# The ordering *is* (sometimes) important. Some notes on the 15742# individual items follow: 15743 15744# pthreads: AIX (must check this before -lpthread) 15745# none: in case threads are in libc; should be tried before -Kthread and 15746# other compiler flags to prevent continual compiler warnings 15747# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15748# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15749# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15750# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15751# -pthreads: Solaris/gcc 15752# -mthreads: Mingw32/gcc, Lynx/gcc 15753# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15754# doesn't hurt to check since this sometimes defines pthreads too; 15755# also defines -D_REENTRANT) 15756# ... -mt is also the pthreads flag for HP/aCC 15757# pthread: Linux, etcetera 15758# --thread-safe: KAI C++ 15759# pthread-config: use pthread-config program (for GNU Pth library) 15760 15761case "${host_cpu}-${host_os}" in 15762 *solaris*) 15763 15764 # On Solaris (at least, for some versions), libc contains stubbed 15765 # (non-functional) versions of the pthreads routines, so link-based 15766 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15767 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15768 # a function called by this macro, so we could check for that, but 15769 # who knows whether they'll stub that too in a future libc.) So, 15770 # we'll just look for -pthreads and -lpthread first: 15771 15772 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 15773 ;; 15774esac 15775 15776if test x"$acx_pthread_ok" = xno; then 15777for flag in $acx_pthread_flags; do 15778 15779 case $flag in 15780 none) 15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15782$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15783 ;; 15784 15785 -*) 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15787$as_echo_n "checking whether pthreads work with $flag... " >&6; } 15788 PTHREAD_CFLAGS="$flag" 15789 ;; 15790 15791 pthread-config) 15792 # Extract the first word of "pthread-config", so it can be a program name with args. 15793set dummy pthread-config; ac_word=$2 15794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15795$as_echo_n "checking for $ac_word... " >&6; } 15796if ${ac_cv_prog_acx_pthread_config+:} false; then : 15797 $as_echo_n "(cached) " >&6 15798else 15799 if test -n "$acx_pthread_config"; then 15800 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 15801else 15802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15803for as_dir in $PATH 15804do 15805 IFS=$as_save_IFS 15806 test -z "$as_dir" && as_dir=. 15807 for ac_exec_ext in '' $ac_executable_extensions; do 15808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15809 ac_cv_prog_acx_pthread_config="yes" 15810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15811 break 2 15812 fi 15813done 15814 done 15815IFS=$as_save_IFS 15816 15817 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 15818fi 15819fi 15820acx_pthread_config=$ac_cv_prog_acx_pthread_config 15821if test -n "$acx_pthread_config"; then 15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 15823$as_echo "$acx_pthread_config" >&6; } 15824else 15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15826$as_echo "no" >&6; } 15827fi 15828 15829 15830 if test x"$acx_pthread_config" = xno; then continue; fi 15831 PTHREAD_CFLAGS="`pthread-config --cflags`" 15832 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15833 ;; 15834 15835 *) 15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15837$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15838 PTHREAD_LIBS="-l$flag" 15839 ;; 15840 esac 15841 15842 save_LIBS="$LIBS" 15843 save_CFLAGS="$CFLAGS" 15844 LIBS="$PTHREAD_LIBS $LIBS" 15845 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15846 15847 # Check for various functions. We must include pthread.h, 15848 # since some functions may be macros. (On the Sequent, we 15849 # need a special flag -Kthread to make this header compile.) 15850 # We check for pthread_join because it is in -lpthread on IRIX 15851 # while pthread_create is in libc. We check for pthread_attr_init 15852 # due to DEC craziness with -lpthreads. We check for 15853 # pthread_cleanup_push because it is one of the few pthread 15854 # functions on Solaris that doesn't have a non-functional libc stub. 15855 # We try pthread_create on general principles. 15856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15857/* end confdefs.h. */ 15858#include <pthread.h> 15859int 15860main () 15861{ 15862pthread_t th; pthread_join(th, 0); 15863 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15864 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15865 ; 15866 return 0; 15867} 15868_ACEOF 15869if ac_fn_c_try_link "$LINENO"; then : 15870 acx_pthread_ok=yes 15871fi 15872rm -f core conftest.err conftest.$ac_objext \ 15873 conftest$ac_exeext conftest.$ac_ext 15874 15875 LIBS="$save_LIBS" 15876 CFLAGS="$save_CFLAGS" 15877 15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15879$as_echo "$acx_pthread_ok" >&6; } 15880 if test "x$acx_pthread_ok" = xyes; then 15881 break; 15882 fi 15883 15884 PTHREAD_LIBS="" 15885 PTHREAD_CFLAGS="" 15886done 15887fi 15888 15889# Various other checks: 15890if test "x$acx_pthread_ok" = xyes; then 15891 save_LIBS="$LIBS" 15892 LIBS="$PTHREAD_LIBS $LIBS" 15893 save_CFLAGS="$CFLAGS" 15894 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15895 15896 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15898$as_echo_n "checking for joinable pthread attribute... " >&6; } 15899 attr_name=unknown 15900 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15902/* end confdefs.h. */ 15903#include <pthread.h> 15904int 15905main () 15906{ 15907int attr=$attr; return attr; 15908 ; 15909 return 0; 15910} 15911_ACEOF 15912if ac_fn_c_try_link "$LINENO"; then : 15913 attr_name=$attr; break 15914fi 15915rm -f core conftest.err conftest.$ac_objext \ 15916 conftest$ac_exeext conftest.$ac_ext 15917 done 15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15919$as_echo "$attr_name" >&6; } 15920 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15921 15922cat >>confdefs.h <<_ACEOF 15923#define PTHREAD_CREATE_JOINABLE $attr_name 15924_ACEOF 15925 15926 fi 15927 15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15929$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15930 flag=no 15931 case "${host_cpu}-${host_os}" in 15932 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 15933 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 15934 esac 15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15936$as_echo "${flag}" >&6; } 15937 if test "x$flag" != xno; then 15938 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15939 fi 15940 15941 LIBS="$save_LIBS" 15942 CFLAGS="$save_CFLAGS" 15943 15944 # More AIX lossage: must compile with xlc_r or cc_r 15945 if test x"$GCC" != xyes; then 15946 for ac_prog in xlc_r cc_r 15947do 15948 # Extract the first word of "$ac_prog", so it can be a program name with args. 15949set dummy $ac_prog; ac_word=$2 15950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15951$as_echo_n "checking for $ac_word... " >&6; } 15952if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15953 $as_echo_n "(cached) " >&6 15954else 15955 if test -n "$PTHREAD_CC"; then 15956 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15957else 15958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15959for as_dir in $PATH 15960do 15961 IFS=$as_save_IFS 15962 test -z "$as_dir" && as_dir=. 15963 for ac_exec_ext in '' $ac_executable_extensions; do 15964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15965 ac_cv_prog_PTHREAD_CC="$ac_prog" 15966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15967 break 2 15968 fi 15969done 15970 done 15971IFS=$as_save_IFS 15972 15973fi 15974fi 15975PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15976if test -n "$PTHREAD_CC"; then 15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15978$as_echo "$PTHREAD_CC" >&6; } 15979else 15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15981$as_echo "no" >&6; } 15982fi 15983 15984 15985 test -n "$PTHREAD_CC" && break 15986done 15987test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 15988 15989 else 15990 PTHREAD_CC=$CC 15991 fi 15992else 15993 PTHREAD_CC="$CC" 15994fi 15995 15996 15997 15998 15999 16000# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 16001if test x"$acx_pthread_ok" = xyes; then 16002 16003 16004$as_echo "#define HAVE_PTHREADS 1" >>confdefs.h 16005 16006 have_pthreads=yes 16007 : 16008else 16009 acx_pthread_ok=no 16010 16011fi 16012ac_ext=c 16013ac_cpp='$CPP $CPPFLAGS' 16014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16016ac_compiler_gnu=$ac_cv_c_compiler_gnu 16017 16018 16019 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16020 # The cast to long int works around a bug in the HP C Compiler 16021# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16022# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16023# This bug is HP SR number 8606223364. 16024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 16025$as_echo_n "checking size of pthread_t... " >&6; } 16026if ${ac_cv_sizeof_pthread_t+:} false; then : 16027 $as_echo_n "(cached) " >&6 16028else 16029 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default 16030 #include <pthread.h> 16031 16032"; then : 16033 16034else 16035 if test "$ac_cv_type_pthread_t" = yes; then 16036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16038as_fn_error 77 "cannot compute sizeof (pthread_t) 16039See \`config.log' for more details" "$LINENO" 5; } 16040 else 16041 ac_cv_sizeof_pthread_t=0 16042 fi 16043fi 16044 16045fi 16046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 16047$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 16048 16049 16050 16051cat >>confdefs.h <<_ACEOF 16052#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 16053_ACEOF 16054 16055 16056fi 16057 if test "$enable_thread_support" != "no"; then 16058 THREADS_TRUE= 16059 THREADS_FALSE='#' 16060else 16061 THREADS_TRUE='#' 16062 THREADS_FALSE= 16063fi 16064 16065 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then 16066 PTHREADS_TRUE= 16067 PTHREADS_FALSE='#' 16068else 16069 PTHREADS_TRUE='#' 16070 PTHREADS_FALSE= 16071fi 16072 16073 16074# check if we should compile locking into the library 16075if test x$enable_thread_support = xno; then 16076 16077$as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h 16078 16079fi 16080 16081# check if we should hard-code the mm functions. 16082if test x$enable_malloc_replacement = xno; then 16083 16084$as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h 16085 16086fi 16087 16088# check if we should hard-code debugging out 16089if test x$enable_debug_mode = xno; then 16090 16091$as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h 16092 16093fi 16094 16095# check if we should enable verbose debugging 16096if test x$enable_verbose_debug = xyes; then 16097 CFLAGS="$CFLAGS -DUSE_DEBUG" 16098fi 16099 16100# check if we have and should use openssl 16101 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then 16102 OPENSSL_TRUE= 16103 OPENSSL_FALSE='#' 16104else 16105 OPENSSL_TRUE='#' 16106 OPENSSL_FALSE= 16107fi 16108 16109 16110# Add some more warnings which we use in development but not in the 16111# released versions. (Some relevant gcc versions can't handle these.) 16112if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then 16113 16114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16115/* end confdefs.h. */ 16116 16117int 16118main () 16119{ 16120 16121#if !defined(__GNUC__) || (__GNUC__ < 4) 16122#error 16123#endif 16124 ; 16125 return 0; 16126} 16127_ACEOF 16128if ac_fn_c_try_compile "$LINENO"; then : 16129 have_gcc4=yes 16130else 16131 have_gcc4=no 16132fi 16133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16134 16135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16136/* end confdefs.h. */ 16137 16138int 16139main () 16140{ 16141 16142#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2) 16143#error 16144#endif 16145 ; 16146 return 0; 16147} 16148_ACEOF 16149if ac_fn_c_try_compile "$LINENO"; then : 16150 have_gcc42=yes 16151else 16152 have_gcc42=no 16153fi 16154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16155 16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16157/* end confdefs.h. */ 16158 16159int 16160main () 16161{ 16162 16163#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) 16164#error 16165#endif 16166 ; 16167 return 0; 16168} 16169_ACEOF 16170if ac_fn_c_try_compile "$LINENO"; then : 16171 have_gcc45=yes 16172else 16173 have_gcc45=no 16174fi 16175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16176 16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16178/* end confdefs.h. */ 16179 16180int 16181main () 16182{ 16183 16184#if !defined(__clang__) 16185#error 16186#endif 16187 ; 16188 return 0; 16189} 16190_ACEOF 16191if ac_fn_c_try_compile "$LINENO"; then : 16192 have_clang=yes 16193else 16194 have_clang=no 16195fi 16196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16197 16198 # -W is the same as -Wextra 16199 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast" 16200 if test x$enable_gcc_warnings = xyes; then 16201 CFLAGS="$CFLAGS -Werror" 16202 fi 16203 16204 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing" 16205 16206 if test x$have_gcc4 = xyes ; then 16207 # These warnings break gcc 3.3.5 and work on gcc 4.0.2 16208 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement" 16209 #CFLAGS="$CFLAGS -Wold-style-definition" 16210 fi 16211 16212 if test x$have_gcc42 = xyes ; then 16213 # These warnings break gcc 4.0.2 and work on gcc 4.2 16214 CFLAGS="$CFLAGS -Waddress" 16215 fi 16216 16217 if test x$have_gcc42 = xyes && test x$have_clang = xno; then 16218 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2 16219 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init" 16220 fi 16221 16222 if test x$have_gcc45 = xyes ; then 16223 # These warnings work on gcc 4.5 16224 CFLAGS="$CFLAGS -Wlogical-op" 16225 fi 16226 16227 if test x$have_clang = xyes; then 16228 # Disable the unused-function warnings, because these trigger 16229 # for minheap-internal.h related code. 16230 CFLAGS="$CFLAGS -Wno-unused-function" 16231 16232 # clang on macosx emits warnings for each directory specified which 16233 # isn't "used" generating a lot of build noise (typically 3 warnings 16234 # per file 16235 case "$host_os" in 16236 darwin*) 16237 CFLAGS="$CFLAGS -Qunused-arguments" 16238 ;; 16239 esac 16240 fi 16241 16242##This will break the world on some 64-bit architectures 16243# CFLAGS="$CFLAGS -Winline" 16244 16245fi 16246 16247LIBEVENT_GC_SECTIONS= 16248if test "$GCC" = yes && test "$enable_function_sections" = yes ; then 16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 16250$as_echo_n "checking if linker supports omitting unused code and data... " >&6; } 16251if ${libevent_cv_gc_sections_runs+:} false; then : 16252 $as_echo_n "(cached) " >&6 16253else 16254 16255 origCFLAGS="$CFLAGS" 16256 CFLAGS="$CFLAGS -Wl,--gc-sections" 16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16258/* end confdefs.h. */ 16259 16260 #include <stdlib.h> 16261 #include <stdio.h> 16262 16263int 16264main () 16265{ 16266 16267 FILE * fpC; 16268 char buf[32]; 16269 size_t cch; 16270 int read_success_once; 16271 16272 fpC = fopen("conftest.c", "r"); 16273 if (NULL == fpC) 16274 exit(1); 16275 do { 16276 cch = fread(buf, sizeof(buf), 1, fpC); 16277 read_success_once |= (0 != cch); 16278 } while (0 != cch); 16279 if (!read_success_once) 16280 exit(2); 16281 if (!feof(fpC)) 16282 exit(3); 16283 if (0 != fclose(fpC)) 16284 exit(4); 16285 16286 exit(EXIT_SUCCESS); 16287 16288 16289 ; 16290 return 0; 16291} 16292_ACEOF 16293if ac_fn_c_try_link "$LINENO"; then : 16294 16295 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 16296 libevent_cv_gc_sections_runs=no 16297 else 16298 libevent_cv_gc_sections_runs=no 16299 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes 16300 fi 16301 16302else 16303 libevent_cv_gc_sections_runs=no 16304 16305fi 16306rm -f core conftest.err conftest.$ac_objext \ 16307 conftest$ac_exeext conftest.$ac_ext 16308 CFLAGS="$origCFLAGS" 16309 { origCFLAGS=; unset origCFLAGS;} 16310 16311 16312fi 16313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5 16314$as_echo "$libevent_cv_gc_sections_runs" >&6; } 16315 case "$libevent_cv_gc_sections_runs" in 16316 yes) 16317 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS" 16318 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections" 16319 ;; 16320 esac 16321fi 16322 16323 16324 if test "$enable_libevent_install" = "yes"; then 16325 INSTALL_LIBEVENT_TRUE= 16326 INSTALL_LIBEVENT_FALSE='#' 16327else 16328 INSTALL_LIBEVENT_TRUE='#' 16329 INSTALL_LIBEVENT_FALSE= 16330fi 16331 16332 16333ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc libevent_core.pc libevent_extra.pc" 16334 16335ac_config_files="$ac_config_files Makefile" 16336 16337cat >confcache <<\_ACEOF 16338# This file is a shell script that caches the results of configure 16339# tests run on this system so they can be shared between configure 16340# scripts and configure runs, see configure's option --config-cache. 16341# It is not useful on other systems. If it contains results you don't 16342# want to keep, you may remove or edit it. 16343# 16344# config.status only pays attention to the cache file if you give it 16345# the --recheck option to rerun configure. 16346# 16347# `ac_cv_env_foo' variables (set or unset) will be overridden when 16348# loading this file, other *unset* `ac_cv_foo' will be assigned the 16349# following values. 16350 16351_ACEOF 16352 16353# The following way of writing the cache mishandles newlines in values, 16354# but we know of no workaround that is simple, portable, and efficient. 16355# So, we kill variables containing newlines. 16356# Ultrix sh set writes to stderr and can't be redirected directly, 16357# and sets the high bit in the cache file unless we assign to the vars. 16358( 16359 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16360 eval ac_val=\$$ac_var 16361 case $ac_val in #( 16362 *${as_nl}*) 16363 case $ac_var in #( 16364 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16365$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16366 esac 16367 case $ac_var in #( 16368 _ | IFS | as_nl) ;; #( 16369 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16370 *) { eval $ac_var=; unset $ac_var;} ;; 16371 esac ;; 16372 esac 16373 done 16374 16375 (set) 2>&1 | 16376 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16377 *${as_nl}ac_space=\ *) 16378 # `set' does not quote correctly, so add quotes: double-quote 16379 # substitution turns \\\\ into \\, and sed turns \\ into \. 16380 sed -n \ 16381 "s/'/'\\\\''/g; 16382 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16383 ;; #( 16384 *) 16385 # `set' quotes correctly as required by POSIX, so do not add quotes. 16386 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16387 ;; 16388 esac | 16389 sort 16390) | 16391 sed ' 16392 /^ac_cv_env_/b end 16393 t clear 16394 :clear 16395 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16396 t end 16397 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16398 :end' >>confcache 16399if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16400 if test -w "$cache_file"; then 16401 if test "x$cache_file" != "x/dev/null"; then 16402 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16403$as_echo "$as_me: updating cache $cache_file" >&6;} 16404 if test ! -f "$cache_file" || test -h "$cache_file"; then 16405 cat confcache >"$cache_file" 16406 else 16407 case $cache_file in #( 16408 */* | ?:*) 16409 mv -f confcache "$cache_file"$$ && 16410 mv -f "$cache_file"$$ "$cache_file" ;; #( 16411 *) 16412 mv -f confcache "$cache_file" ;; 16413 esac 16414 fi 16415 fi 16416 else 16417 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16418$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16419 fi 16420fi 16421rm -f confcache 16422 16423test "x$prefix" = xNONE && prefix=$ac_default_prefix 16424# Let make expand exec_prefix. 16425test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16426 16427DEFS=-DHAVE_CONFIG_H 16428 16429ac_libobjs= 16430ac_ltlibobjs= 16431U= 16432for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16433 # 1. Remove the extension, and $U if already installed. 16434 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16435 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16436 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16437 # will be set to the directory where LIBOBJS objects are built. 16438 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16439 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16440done 16441LIBOBJS=$ac_libobjs 16442 16443LTLIBOBJS=$ac_ltlibobjs 16444 16445 16446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16447$as_echo_n "checking that generated files are newer than configure... " >&6; } 16448 if test -n "$am_sleep_pid"; then 16449 # Hide warnings about reused PIDs. 16450 wait $am_sleep_pid 2>/dev/null 16451 fi 16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16453$as_echo "done" >&6; } 16454 if test -n "$EXEEXT"; then 16455 am__EXEEXT_TRUE= 16456 am__EXEEXT_FALSE='#' 16457else 16458 am__EXEEXT_TRUE='#' 16459 am__EXEEXT_FALSE= 16460fi 16461 16462if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16463 as_fn_error $? "conditional \"AMDEP\" was never defined. 16464Usually this means the macro was only invoked conditionally." "$LINENO" 5 16465fi 16466if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16467 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16468Usually this means the macro was only invoked conditionally." "$LINENO" 5 16469fi 16470if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then 16471 as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined. 16472Usually this means the macro was only invoked conditionally." "$LINENO" 5 16473fi 16474if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then 16475 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined. 16476Usually this means the macro was only invoked conditionally." "$LINENO" 5 16477fi 16478if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then 16479 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined. 16480Usually this means the macro was only invoked conditionally." "$LINENO" 5 16481fi 16482if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then 16483 as_fn_error $? "conditional \"OPENSSL\" was never defined. 16484Usually this means the macro was only invoked conditionally." "$LINENO" 5 16485fi 16486if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then 16487 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined. 16488Usually this means the macro was only invoked conditionally." "$LINENO" 5 16489fi 16490if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then 16491 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined. 16492Usually this means the macro was only invoked conditionally." "$LINENO" 5 16493fi 16494if test -z "${BUILD_MIDIPIX_TRUE}" && test -z "${BUILD_MIDIPIX_FALSE}"; then 16495 as_fn_error $? "conditional \"BUILD_MIDIPIX\" was never defined. 16496Usually this means the macro was only invoked conditionally." "$LINENO" 5 16497fi 16498if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then 16499 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined. 16500Usually this means the macro was only invoked conditionally." "$LINENO" 5 16501fi 16502if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then 16503 as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined. 16504Usually this means the macro was only invoked conditionally." "$LINENO" 5 16505fi 16506if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then 16507 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined. 16508Usually this means the macro was only invoked conditionally." "$LINENO" 5 16509fi 16510if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then 16511 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined. 16512Usually this means the macro was only invoked conditionally." "$LINENO" 5 16513fi 16514if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then 16515 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined. 16516Usually this means the macro was only invoked conditionally." "$LINENO" 5 16517fi 16518if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then 16519 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined. 16520Usually this means the macro was only invoked conditionally." "$LINENO" 5 16521fi 16522if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then 16523 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined. 16524Usually this means the macro was only invoked conditionally." "$LINENO" 5 16525fi 16526if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then 16527 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined. 16528Usually this means the macro was only invoked conditionally." "$LINENO" 5 16529fi 16530if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then 16531 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined. 16532Usually this means the macro was only invoked conditionally." "$LINENO" 5 16533fi 16534if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then 16535 as_fn_error $? "conditional \"THREADS\" was never defined. 16536Usually this means the macro was only invoked conditionally." "$LINENO" 5 16537fi 16538if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 16539 as_fn_error $? "conditional \"PTHREADS\" was never defined. 16540Usually this means the macro was only invoked conditionally." "$LINENO" 5 16541fi 16542if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then 16543 as_fn_error $? "conditional \"OPENSSL\" was never defined. 16544Usually this means the macro was only invoked conditionally." "$LINENO" 5 16545fi 16546if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then 16547 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined. 16548Usually this means the macro was only invoked conditionally." "$LINENO" 5 16549fi 16550 16551: "${CONFIG_STATUS=./config.status}" 16552ac_write_fail=0 16553ac_clean_files_save=$ac_clean_files 16554ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16555{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16556$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16557as_write_fail=0 16558cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16559#! $SHELL 16560# Generated by $as_me. 16561# Run this file to recreate the current configuration. 16562# Compiler output produced by configure, useful for debugging 16563# configure, is in config.log if it exists. 16564 16565debug=false 16566ac_cs_recheck=false 16567ac_cs_silent=false 16568 16569SHELL=\${CONFIG_SHELL-$SHELL} 16570export SHELL 16571_ASEOF 16572cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16573## -------------------- ## 16574## M4sh Initialization. ## 16575## -------------------- ## 16576 16577# Be more Bourne compatible 16578DUALCASE=1; export DUALCASE # for MKS sh 16579if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16580 emulate sh 16581 NULLCMD=: 16582 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16583 # is contrary to our usage. Disable this feature. 16584 alias -g '${1+"$@"}'='"$@"' 16585 setopt NO_GLOB_SUBST 16586else 16587 case `(set -o) 2>/dev/null` in #( 16588 *posix*) : 16589 set -o posix ;; #( 16590 *) : 16591 ;; 16592esac 16593fi 16594 16595 16596as_nl=' 16597' 16598export as_nl 16599# Printing a long string crashes Solaris 7 /usr/bin/printf. 16600as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16601as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16602as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16603# Prefer a ksh shell builtin over an external printf program on Solaris, 16604# but without wasting forks for bash or zsh. 16605if test -z "$BASH_VERSION$ZSH_VERSION" \ 16606 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16607 as_echo='print -r --' 16608 as_echo_n='print -rn --' 16609elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16610 as_echo='printf %s\n' 16611 as_echo_n='printf %s' 16612else 16613 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16614 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16615 as_echo_n='/usr/ucb/echo -n' 16616 else 16617 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16618 as_echo_n_body='eval 16619 arg=$1; 16620 case $arg in #( 16621 *"$as_nl"*) 16622 expr "X$arg" : "X\\(.*\\)$as_nl"; 16623 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16624 esac; 16625 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16626 ' 16627 export as_echo_n_body 16628 as_echo_n='sh -c $as_echo_n_body as_echo' 16629 fi 16630 export as_echo_body 16631 as_echo='sh -c $as_echo_body as_echo' 16632fi 16633 16634# The user is always right. 16635if test "${PATH_SEPARATOR+set}" != set; then 16636 PATH_SEPARATOR=: 16637 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16638 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16639 PATH_SEPARATOR=';' 16640 } 16641fi 16642 16643 16644# IFS 16645# We need space, tab and new line, in precisely that order. Quoting is 16646# there to prevent editors from complaining about space-tab. 16647# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16648# splitting by setting IFS to empty value.) 16649IFS=" "" $as_nl" 16650 16651# Find who we are. Look in the path if we contain no directory separator. 16652as_myself= 16653case $0 in #(( 16654 *[\\/]* ) as_myself=$0 ;; 16655 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16656for as_dir in $PATH 16657do 16658 IFS=$as_save_IFS 16659 test -z "$as_dir" && as_dir=. 16660 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16661 done 16662IFS=$as_save_IFS 16663 16664 ;; 16665esac 16666# We did not find ourselves, most probably we were run as `sh COMMAND' 16667# in which case we are not to be found in the path. 16668if test "x$as_myself" = x; then 16669 as_myself=$0 16670fi 16671if test ! -f "$as_myself"; then 16672 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16673 exit 1 16674fi 16675 16676# Unset variables that we do not need and which cause bugs (e.g. in 16677# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16678# suppresses any "Segmentation fault" message there. '((' could 16679# trigger a bug in pdksh 5.2.14. 16680for as_var in BASH_ENV ENV MAIL MAILPATH 16681do eval test x\${$as_var+set} = xset \ 16682 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16683done 16684PS1='$ ' 16685PS2='> ' 16686PS4='+ ' 16687 16688# NLS nuisances. 16689LC_ALL=C 16690export LC_ALL 16691LANGUAGE=C 16692export LANGUAGE 16693 16694# CDPATH. 16695(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16696 16697 16698# as_fn_error STATUS ERROR [LINENO LOG_FD] 16699# ---------------------------------------- 16700# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16701# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16702# script with STATUS, using 1 if that was 0. 16703as_fn_error () 16704{ 16705 as_status=$1; test $as_status -eq 0 && as_status=1 16706 if test "$4"; then 16707 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16708 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16709 fi 16710 $as_echo "$as_me: error: $2" >&2 16711 as_fn_exit $as_status 16712} # as_fn_error 16713 16714 16715# as_fn_set_status STATUS 16716# ----------------------- 16717# Set $? to STATUS, without forking. 16718as_fn_set_status () 16719{ 16720 return $1 16721} # as_fn_set_status 16722 16723# as_fn_exit STATUS 16724# ----------------- 16725# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16726as_fn_exit () 16727{ 16728 set +e 16729 as_fn_set_status $1 16730 exit $1 16731} # as_fn_exit 16732 16733# as_fn_unset VAR 16734# --------------- 16735# Portably unset VAR. 16736as_fn_unset () 16737{ 16738 { eval $1=; unset $1;} 16739} 16740as_unset=as_fn_unset 16741# as_fn_append VAR VALUE 16742# ---------------------- 16743# Append the text in VALUE to the end of the definition contained in VAR. Take 16744# advantage of any shell optimizations that allow amortized linear growth over 16745# repeated appends, instead of the typical quadratic growth present in naive 16746# implementations. 16747if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16748 eval 'as_fn_append () 16749 { 16750 eval $1+=\$2 16751 }' 16752else 16753 as_fn_append () 16754 { 16755 eval $1=\$$1\$2 16756 } 16757fi # as_fn_append 16758 16759# as_fn_arith ARG... 16760# ------------------ 16761# Perform arithmetic evaluation on the ARGs, and store the result in the 16762# global $as_val. Take advantage of shells that can avoid forks. The arguments 16763# must be portable across $(()) and expr. 16764if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16765 eval 'as_fn_arith () 16766 { 16767 as_val=$(( $* )) 16768 }' 16769else 16770 as_fn_arith () 16771 { 16772 as_val=`expr "$@" || test $? -eq 1` 16773 } 16774fi # as_fn_arith 16775 16776 16777if expr a : '\(a\)' >/dev/null 2>&1 && 16778 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16779 as_expr=expr 16780else 16781 as_expr=false 16782fi 16783 16784if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16785 as_basename=basename 16786else 16787 as_basename=false 16788fi 16789 16790if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16791 as_dirname=dirname 16792else 16793 as_dirname=false 16794fi 16795 16796as_me=`$as_basename -- "$0" || 16797$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16798 X"$0" : 'X\(//\)$' \| \ 16799 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16800$as_echo X/"$0" | 16801 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16802 s//\1/ 16803 q 16804 } 16805 /^X\/\(\/\/\)$/{ 16806 s//\1/ 16807 q 16808 } 16809 /^X\/\(\/\).*/{ 16810 s//\1/ 16811 q 16812 } 16813 s/.*/./; q'` 16814 16815# Avoid depending upon Character Ranges. 16816as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16817as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16818as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16819as_cr_digits='0123456789' 16820as_cr_alnum=$as_cr_Letters$as_cr_digits 16821 16822ECHO_C= ECHO_N= ECHO_T= 16823case `echo -n x` in #((((( 16824-n*) 16825 case `echo 'xy\c'` in 16826 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16827 xy) ECHO_C='\c';; 16828 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16829 ECHO_T=' ';; 16830 esac;; 16831*) 16832 ECHO_N='-n';; 16833esac 16834 16835rm -f conf$$ conf$$.exe conf$$.file 16836if test -d conf$$.dir; then 16837 rm -f conf$$.dir/conf$$.file 16838else 16839 rm -f conf$$.dir 16840 mkdir conf$$.dir 2>/dev/null 16841fi 16842if (echo >conf$$.file) 2>/dev/null; then 16843 if ln -s conf$$.file conf$$ 2>/dev/null; then 16844 as_ln_s='ln -s' 16845 # ... but there are two gotchas: 16846 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16847 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16848 # In both cases, we have to default to `cp -pR'. 16849 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16850 as_ln_s='cp -pR' 16851 elif ln conf$$.file conf$$ 2>/dev/null; then 16852 as_ln_s=ln 16853 else 16854 as_ln_s='cp -pR' 16855 fi 16856else 16857 as_ln_s='cp -pR' 16858fi 16859rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16860rmdir conf$$.dir 2>/dev/null 16861 16862 16863# as_fn_mkdir_p 16864# ------------- 16865# Create "$as_dir" as a directory, including parents if necessary. 16866as_fn_mkdir_p () 16867{ 16868 16869 case $as_dir in #( 16870 -*) as_dir=./$as_dir;; 16871 esac 16872 test -d "$as_dir" || eval $as_mkdir_p || { 16873 as_dirs= 16874 while :; do 16875 case $as_dir in #( 16876 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16877 *) as_qdir=$as_dir;; 16878 esac 16879 as_dirs="'$as_qdir' $as_dirs" 16880 as_dir=`$as_dirname -- "$as_dir" || 16881$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16882 X"$as_dir" : 'X\(//\)[^/]' \| \ 16883 X"$as_dir" : 'X\(//\)$' \| \ 16884 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16885$as_echo X"$as_dir" | 16886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16887 s//\1/ 16888 q 16889 } 16890 /^X\(\/\/\)[^/].*/{ 16891 s//\1/ 16892 q 16893 } 16894 /^X\(\/\/\)$/{ 16895 s//\1/ 16896 q 16897 } 16898 /^X\(\/\).*/{ 16899 s//\1/ 16900 q 16901 } 16902 s/.*/./; q'` 16903 test -d "$as_dir" && break 16904 done 16905 test -z "$as_dirs" || eval "mkdir $as_dirs" 16906 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16907 16908 16909} # as_fn_mkdir_p 16910if mkdir -p . 2>/dev/null; then 16911 as_mkdir_p='mkdir -p "$as_dir"' 16912else 16913 test -d ./-p && rmdir ./-p 16914 as_mkdir_p=false 16915fi 16916 16917 16918# as_fn_executable_p FILE 16919# ----------------------- 16920# Test if FILE is an executable regular file. 16921as_fn_executable_p () 16922{ 16923 test -f "$1" && test -x "$1" 16924} # as_fn_executable_p 16925as_test_x='test -x' 16926as_executable_p=as_fn_executable_p 16927 16928# Sed expression to map a string onto a valid CPP name. 16929as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16930 16931# Sed expression to map a string onto a valid variable name. 16932as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16933 16934 16935exec 6>&1 16936## ----------------------------------- ## 16937## Main body of $CONFIG_STATUS script. ## 16938## ----------------------------------- ## 16939_ASEOF 16940test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16941 16942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16943# Save the log message, to keep $0 and so on meaningful, and to 16944# report actual input values of CONFIG_FILES etc. instead of their 16945# values after options handling. 16946ac_log=" 16947This file was extended by libevent $as_me 2.1.11-stable, which was 16948generated by GNU Autoconf 2.69. Invocation command line was 16949 16950 CONFIG_FILES = $CONFIG_FILES 16951 CONFIG_HEADERS = $CONFIG_HEADERS 16952 CONFIG_LINKS = $CONFIG_LINKS 16953 CONFIG_COMMANDS = $CONFIG_COMMANDS 16954 $ $0 $@ 16955 16956on `(hostname || uname -n) 2>/dev/null | sed 1q` 16957" 16958 16959_ACEOF 16960 16961case $ac_config_files in *" 16962"*) set x $ac_config_files; shift; ac_config_files=$*;; 16963esac 16964 16965case $ac_config_headers in *" 16966"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16967esac 16968 16969 16970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16971# Files that config.status was made for. 16972config_files="$ac_config_files" 16973config_headers="$ac_config_headers" 16974config_commands="$ac_config_commands" 16975 16976_ACEOF 16977 16978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16979ac_cs_usage="\ 16980\`$as_me' instantiates files and other configuration actions 16981from templates according to the current configuration. Unless the files 16982and actions are specified as TAGs, all are instantiated by default. 16983 16984Usage: $0 [OPTION]... [TAG]... 16985 16986 -h, --help print this help, then exit 16987 -V, --version print version number and configuration settings, then exit 16988 --config print configuration, then exit 16989 -q, --quiet, --silent 16990 do not print progress messages 16991 -d, --debug don't remove temporary files 16992 --recheck update $as_me by reconfiguring in the same conditions 16993 --file=FILE[:TEMPLATE] 16994 instantiate the configuration file FILE 16995 --header=FILE[:TEMPLATE] 16996 instantiate the configuration header FILE 16997 16998Configuration files: 16999$config_files 17000 17001Configuration headers: 17002$config_headers 17003 17004Configuration commands: 17005$config_commands 17006 17007Report bugs to the package provider." 17008 17009_ACEOF 17010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17011ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17012ac_cs_version="\\ 17013libevent config.status 2.1.11-stable 17014configured by $0, generated by GNU Autoconf 2.69, 17015 with options \\"\$ac_cs_config\\" 17016 17017Copyright (C) 2012 Free Software Foundation, Inc. 17018This config.status script is free software; the Free Software Foundation 17019gives unlimited permission to copy, distribute and modify it." 17020 17021ac_pwd='$ac_pwd' 17022srcdir='$srcdir' 17023INSTALL='$INSTALL' 17024MKDIR_P='$MKDIR_P' 17025AWK='$AWK' 17026test -n "\$AWK" || AWK=awk 17027_ACEOF 17028 17029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17030# The default lists apply if the user does not specify any file. 17031ac_need_defaults=: 17032while test $# != 0 17033do 17034 case $1 in 17035 --*=?*) 17036 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17037 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17038 ac_shift=: 17039 ;; 17040 --*=) 17041 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17042 ac_optarg= 17043 ac_shift=: 17044 ;; 17045 *) 17046 ac_option=$1 17047 ac_optarg=$2 17048 ac_shift=shift 17049 ;; 17050 esac 17051 17052 case $ac_option in 17053 # Handling of the options. 17054 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17055 ac_cs_recheck=: ;; 17056 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17057 $as_echo "$ac_cs_version"; exit ;; 17058 --config | --confi | --conf | --con | --co | --c ) 17059 $as_echo "$ac_cs_config"; exit ;; 17060 --debug | --debu | --deb | --de | --d | -d ) 17061 debug=: ;; 17062 --file | --fil | --fi | --f ) 17063 $ac_shift 17064 case $ac_optarg in 17065 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17066 '') as_fn_error $? "missing file argument" ;; 17067 esac 17068 as_fn_append CONFIG_FILES " '$ac_optarg'" 17069 ac_need_defaults=false;; 17070 --header | --heade | --head | --hea ) 17071 $ac_shift 17072 case $ac_optarg in 17073 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17074 esac 17075 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17076 ac_need_defaults=false;; 17077 --he | --h) 17078 # Conflict between --help and --header 17079 as_fn_error $? "ambiguous option: \`$1' 17080Try \`$0 --help' for more information.";; 17081 --help | --hel | -h ) 17082 $as_echo "$ac_cs_usage"; exit ;; 17083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17084 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17085 ac_cs_silent=: ;; 17086 17087 # This is an error. 17088 -*) as_fn_error $? "unrecognized option: \`$1' 17089Try \`$0 --help' for more information." ;; 17090 17091 *) as_fn_append ac_config_targets " $1" 17092 ac_need_defaults=false ;; 17093 17094 esac 17095 shift 17096done 17097 17098ac_configure_extra_args= 17099 17100if $ac_cs_silent; then 17101 exec 6>/dev/null 17102 ac_configure_extra_args="$ac_configure_extra_args --silent" 17103fi 17104 17105_ACEOF 17106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17107if \$ac_cs_recheck; then 17108 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17109 shift 17110 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17111 CONFIG_SHELL='$SHELL' 17112 export CONFIG_SHELL 17113 exec "\$@" 17114fi 17115 17116_ACEOF 17117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17118exec 5>>config.log 17119{ 17120 echo 17121 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17122## Running $as_me. ## 17123_ASBOX 17124 $as_echo "$ac_log" 17125} >&5 17126 17127_ACEOF 17128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17129# 17130# INIT-COMMANDS 17131# 17132AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 17133 17134 17135# The HP-UX ksh and POSIX shell print the target directory to stdout 17136# if CDPATH is set. 17137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17138 17139sed_quote_subst='$sed_quote_subst' 17140double_quote_subst='$double_quote_subst' 17141delay_variable_subst='$delay_variable_subst' 17142macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17143macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17144enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17145enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17146pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17147enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17148shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17149SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17150ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17151PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17152host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17153host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17154host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17155build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17156build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17157build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17158SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17159Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17160GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17161EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17162FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17163LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17164NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17165LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17166max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17167ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17168exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17169lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17170lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17171lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17172lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17173lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17174reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17175reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17176OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17177deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17178file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17179file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17180want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17181DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17182sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17183AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17184lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 17185AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17186archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17187STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17188RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17189old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17190old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17191old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17192lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17193CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17194CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17195compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17196GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17197lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17198lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17199lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17200lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17201lt_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"`' 17202lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17203nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17204lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17205lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17206objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17207MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17208lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17209lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17210lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17211lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17212lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17213need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17214MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17215DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17216NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17217LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17218OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17219OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17220libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17221shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17222extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17223archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17224enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17225export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17226whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17227compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17228old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17229old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17230archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17231archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17232module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17233module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17234with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17235allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17236no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17237hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17238hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17239hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17240hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17241hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17242hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17243hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17244inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17245link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17246always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17247export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17248exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17249include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17250prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17251postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17252file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17253variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17254need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17255need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17256version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17257runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17258shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17259shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17260libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17261library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17262soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17263install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17264postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17265postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17266finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17267finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17268hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17269sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17270configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17271configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17272hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17273enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17274enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17275enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17276old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17277striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17278 17279LTCC='$LTCC' 17280LTCFLAGS='$LTCFLAGS' 17281compiler='$compiler_DEFAULT' 17282 17283# A function that is used when there is no print builtin or printf. 17284func_fallback_echo () 17285{ 17286 eval 'cat <<_LTECHO_EOF 17287\$1 17288_LTECHO_EOF' 17289} 17290 17291# Quote evaled strings. 17292for var in SHELL \ 17293ECHO \ 17294PATH_SEPARATOR \ 17295SED \ 17296GREP \ 17297EGREP \ 17298FGREP \ 17299LD \ 17300NM \ 17301LN_S \ 17302lt_SP2NL \ 17303lt_NL2SP \ 17304reload_flag \ 17305OBJDUMP \ 17306deplibs_check_method \ 17307file_magic_cmd \ 17308file_magic_glob \ 17309want_nocaseglob \ 17310DLLTOOL \ 17311sharedlib_from_linklib_cmd \ 17312AR \ 17313archiver_list_spec \ 17314STRIP \ 17315RANLIB \ 17316CC \ 17317CFLAGS \ 17318compiler \ 17319lt_cv_sys_global_symbol_pipe \ 17320lt_cv_sys_global_symbol_to_cdecl \ 17321lt_cv_sys_global_symbol_to_import \ 17322lt_cv_sys_global_symbol_to_c_name_address \ 17323lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17324lt_cv_nm_interface \ 17325nm_file_list_spec \ 17326lt_cv_truncate_bin \ 17327lt_prog_compiler_no_builtin_flag \ 17328lt_prog_compiler_pic \ 17329lt_prog_compiler_wl \ 17330lt_prog_compiler_static \ 17331lt_cv_prog_compiler_c_o \ 17332need_locks \ 17333MANIFEST_TOOL \ 17334DSYMUTIL \ 17335NMEDIT \ 17336LIPO \ 17337OTOOL \ 17338OTOOL64 \ 17339shrext_cmds \ 17340export_dynamic_flag_spec \ 17341whole_archive_flag_spec \ 17342compiler_needs_object \ 17343with_gnu_ld \ 17344allow_undefined_flag \ 17345no_undefined_flag \ 17346hardcode_libdir_flag_spec \ 17347hardcode_libdir_separator \ 17348exclude_expsyms \ 17349include_expsyms \ 17350file_list_spec \ 17351variables_saved_for_relink \ 17352libname_spec \ 17353library_names_spec \ 17354soname_spec \ 17355install_override_mode \ 17356finish_eval \ 17357old_striplib \ 17358striplib; do 17359 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17360 *[\\\\\\\`\\"\\\$]*) 17361 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17362 ;; 17363 *) 17364 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17365 ;; 17366 esac 17367done 17368 17369# Double-quote double-evaled strings. 17370for var in reload_cmds \ 17371old_postinstall_cmds \ 17372old_postuninstall_cmds \ 17373old_archive_cmds \ 17374extract_expsyms_cmds \ 17375old_archive_from_new_cmds \ 17376old_archive_from_expsyms_cmds \ 17377archive_cmds \ 17378archive_expsym_cmds \ 17379module_cmds \ 17380module_expsym_cmds \ 17381export_symbols_cmds \ 17382prelink_cmds \ 17383postlink_cmds \ 17384postinstall_cmds \ 17385postuninstall_cmds \ 17386finish_cmds \ 17387sys_lib_search_path_spec \ 17388configure_time_dlsearch_path \ 17389configure_time_lt_sys_library_path; do 17390 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17391 *[\\\\\\\`\\"\\\$]*) 17392 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17393 ;; 17394 *) 17395 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17396 ;; 17397 esac 17398done 17399 17400ac_aux_dir='$ac_aux_dir' 17401 17402# See if we are running on zsh, and set the options that allow our 17403# commands through without removal of \ escapes INIT. 17404if test -n "\${ZSH_VERSION+set}"; then 17405 setopt NO_GLOB_SUBST 17406fi 17407 17408 17409 PACKAGE='$PACKAGE' 17410 VERSION='$VERSION' 17411 RM='$RM' 17412 ofile='$ofile' 17413 17414 17415 17416 17417_ACEOF 17418 17419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17420 17421# Handling of arguments. 17422for ac_config_target in $ac_config_targets 17423do 17424 case $ac_config_target in 17425 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17426 "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;; 17427 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17428 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17429 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;; 17430 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;; 17431 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;; 17432 "libevent_core.pc") CONFIG_FILES="$CONFIG_FILES libevent_core.pc" ;; 17433 "libevent_extra.pc") CONFIG_FILES="$CONFIG_FILES libevent_extra.pc" ;; 17434 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17435 17436 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17437 esac 17438done 17439 17440 17441# If the user did not use the arguments to specify the items to instantiate, 17442# then the envvar interface is used. Set only those that are not. 17443# We use the long form for the default assignment because of an extremely 17444# bizarre bug on SunOS 4.1.3. 17445if $ac_need_defaults; then 17446 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17447 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17448 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17449fi 17450 17451# Have a temporary directory for convenience. Make it in the build tree 17452# simply because there is no reason against having it here, and in addition, 17453# creating and moving files from /tmp can sometimes cause problems. 17454# Hook for its removal unless debugging. 17455# Note that there is a small window in which the directory will not be cleaned: 17456# after its creation but before its name has been assigned to `$tmp'. 17457$debug || 17458{ 17459 tmp= ac_tmp= 17460 trap 'exit_status=$? 17461 : "${ac_tmp:=$tmp}" 17462 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17463' 0 17464 trap 'as_fn_exit 1' 1 2 13 15 17465} 17466# Create a (secure) tmp directory for tmp files. 17467 17468{ 17469 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17470 test -d "$tmp" 17471} || 17472{ 17473 tmp=./conf$$-$RANDOM 17474 (umask 077 && mkdir "$tmp") 17475} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17476ac_tmp=$tmp 17477 17478# Set up the scripts for CONFIG_FILES section. 17479# No need to generate them if there are no CONFIG_FILES. 17480# This happens for instance with `./config.status config.h'. 17481if test -n "$CONFIG_FILES"; then 17482 17483 17484ac_cr=`echo X | tr X '\015'` 17485# On cygwin, bash can eat \r inside `` if the user requested igncr. 17486# But we know of no other shell where ac_cr would be empty at this 17487# point, so we can use a bashism as a fallback. 17488if test "x$ac_cr" = x; then 17489 eval ac_cr=\$\'\\r\' 17490fi 17491ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17492if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17493 ac_cs_awk_cr='\\r' 17494else 17495 ac_cs_awk_cr=$ac_cr 17496fi 17497 17498echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17499_ACEOF 17500 17501 17502{ 17503 echo "cat >conf$$subs.awk <<_ACEOF" && 17504 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17505 echo "_ACEOF" 17506} >conf$$subs.sh || 17507 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17508ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17509ac_delim='%!_!# ' 17510for ac_last_try in false false false false false :; do 17511 . ./conf$$subs.sh || 17512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17513 17514 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17515 if test $ac_delim_n = $ac_delim_num; then 17516 break 17517 elif $ac_last_try; then 17518 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17519 else 17520 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17521 fi 17522done 17523rm -f conf$$subs.sh 17524 17525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17526cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17527_ACEOF 17528sed -n ' 17529h 17530s/^/S["/; s/!.*/"]=/ 17531p 17532g 17533s/^[^!]*!// 17534:repl 17535t repl 17536s/'"$ac_delim"'$// 17537t delim 17538:nl 17539h 17540s/\(.\{148\}\)..*/\1/ 17541t more1 17542s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17543p 17544n 17545b repl 17546:more1 17547s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17548p 17549g 17550s/.\{148\}// 17551t nl 17552:delim 17553h 17554s/\(.\{148\}\)..*/\1/ 17555t more2 17556s/["\\]/\\&/g; s/^/"/; s/$/"/ 17557p 17558b 17559:more2 17560s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17561p 17562g 17563s/.\{148\}// 17564t delim 17565' <conf$$subs.awk | sed ' 17566/^[^""]/{ 17567 N 17568 s/\n// 17569} 17570' >>$CONFIG_STATUS || ac_write_fail=1 17571rm -f conf$$subs.awk 17572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17573_ACAWK 17574cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17575 for (key in S) S_is_set[key] = 1 17576 FS = "" 17577 17578} 17579{ 17580 line = $ 0 17581 nfields = split(line, field, "@") 17582 substed = 0 17583 len = length(field[1]) 17584 for (i = 2; i < nfields; i++) { 17585 key = field[i] 17586 keylen = length(key) 17587 if (S_is_set[key]) { 17588 value = S[key] 17589 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17590 len += length(value) + length(field[++i]) 17591 substed = 1 17592 } else 17593 len += 1 + keylen 17594 } 17595 17596 print line 17597} 17598 17599_ACAWK 17600_ACEOF 17601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17602if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17603 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17604else 17605 cat 17606fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17607 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17608_ACEOF 17609 17610# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17611# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17612# trailing colons and then remove the whole line if VPATH becomes empty 17613# (actually we leave an empty line to preserve line numbers). 17614if test "x$srcdir" = x.; then 17615 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17616h 17617s/// 17618s/^/:/ 17619s/[ ]*$/:/ 17620s/:\$(srcdir):/:/g 17621s/:\${srcdir}:/:/g 17622s/:@srcdir@:/:/g 17623s/^:*// 17624s/:*$// 17625x 17626s/\(=[ ]*\).*/\1/ 17627G 17628s/\n// 17629s/^[^=]*=[ ]*$// 17630}' 17631fi 17632 17633cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17634fi # test -n "$CONFIG_FILES" 17635 17636# Set up the scripts for CONFIG_HEADERS section. 17637# No need to generate them if there are no CONFIG_HEADERS. 17638# This happens for instance with `./config.status Makefile'. 17639if test -n "$CONFIG_HEADERS"; then 17640cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17641BEGIN { 17642_ACEOF 17643 17644# Transform confdefs.h into an awk script `defines.awk', embedded as 17645# here-document in config.status, that substitutes the proper values into 17646# config.h.in to produce config.h. 17647 17648# Create a delimiter string that does not exist in confdefs.h, to ease 17649# handling of long lines. 17650ac_delim='%!_!# ' 17651for ac_last_try in false false :; do 17652 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17653 if test -z "$ac_tt"; then 17654 break 17655 elif $ac_last_try; then 17656 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17657 else 17658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17659 fi 17660done 17661 17662# For the awk script, D is an array of macro values keyed by name, 17663# likewise P contains macro parameters if any. Preserve backslash 17664# newline sequences. 17665 17666ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17667sed -n ' 17668s/.\{148\}/&'"$ac_delim"'/g 17669t rset 17670:rset 17671s/^[ ]*#[ ]*define[ ][ ]*/ / 17672t def 17673d 17674:def 17675s/\\$// 17676t bsnl 17677s/["\\]/\\&/g 17678s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17679D["\1"]=" \3"/p 17680s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17681d 17682:bsnl 17683s/["\\]/\\&/g 17684s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17685D["\1"]=" \3\\\\\\n"\\/p 17686t cont 17687s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17688t cont 17689d 17690:cont 17691n 17692s/.\{148\}/&'"$ac_delim"'/g 17693t clear 17694:clear 17695s/\\$// 17696t bsnlc 17697s/["\\]/\\&/g; s/^/"/; s/$/"/p 17698d 17699:bsnlc 17700s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17701b cont 17702' <confdefs.h | sed ' 17703s/'"$ac_delim"'/"\\\ 17704"/g' >>$CONFIG_STATUS || ac_write_fail=1 17705 17706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17707 for (key in D) D_is_set[key] = 1 17708 FS = "" 17709} 17710/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17711 line = \$ 0 17712 split(line, arg, " ") 17713 if (arg[1] == "#") { 17714 defundef = arg[2] 17715 mac1 = arg[3] 17716 } else { 17717 defundef = substr(arg[1], 2) 17718 mac1 = arg[2] 17719 } 17720 split(mac1, mac2, "(") #) 17721 macro = mac2[1] 17722 prefix = substr(line, 1, index(line, defundef) - 1) 17723 if (D_is_set[macro]) { 17724 # Preserve the white space surrounding the "#". 17725 print prefix "define", macro P[macro] D[macro] 17726 next 17727 } else { 17728 # Replace #undef with comments. This is necessary, for example, 17729 # in the case of _POSIX_SOURCE, which is predefined and required 17730 # on some systems where configure will not decide to define it. 17731 if (defundef == "undef") { 17732 print "/*", prefix defundef, macro, "*/" 17733 next 17734 } 17735 } 17736} 17737{ print } 17738_ACAWK 17739_ACEOF 17740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17741 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17742fi # test -n "$CONFIG_HEADERS" 17743 17744 17745eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17746shift 17747for ac_tag 17748do 17749 case $ac_tag in 17750 :[FHLC]) ac_mode=$ac_tag; continue;; 17751 esac 17752 case $ac_mode$ac_tag in 17753 :[FHL]*:*);; 17754 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17755 :[FH]-) ac_tag=-:-;; 17756 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17757 esac 17758 ac_save_IFS=$IFS 17759 IFS=: 17760 set x $ac_tag 17761 IFS=$ac_save_IFS 17762 shift 17763 ac_file=$1 17764 shift 17765 17766 case $ac_mode in 17767 :L) ac_source=$1;; 17768 :[FH]) 17769 ac_file_inputs= 17770 for ac_f 17771 do 17772 case $ac_f in 17773 -) ac_f="$ac_tmp/stdin";; 17774 *) # Look for the file first in the build tree, then in the source tree 17775 # (if the path is not absolute). The absolute path cannot be DOS-style, 17776 # because $ac_f cannot contain `:'. 17777 test -f "$ac_f" || 17778 case $ac_f in 17779 [\\/$]*) false;; 17780 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17781 esac || 17782 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17783 esac 17784 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17785 as_fn_append ac_file_inputs " '$ac_f'" 17786 done 17787 17788 # Let's still pretend it is `configure' which instantiates (i.e., don't 17789 # use $as_me), people would be surprised to read: 17790 # /* config.h. Generated by config.status. */ 17791 configure_input='Generated from '` 17792 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17793 `' by configure.' 17794 if test x"$ac_file" != x-; then 17795 configure_input="$ac_file. $configure_input" 17796 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17797$as_echo "$as_me: creating $ac_file" >&6;} 17798 fi 17799 # Neutralize special characters interpreted by sed in replacement strings. 17800 case $configure_input in #( 17801 *\&* | *\|* | *\\* ) 17802 ac_sed_conf_input=`$as_echo "$configure_input" | 17803 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17804 *) ac_sed_conf_input=$configure_input;; 17805 esac 17806 17807 case $ac_tag in 17808 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17809 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17810 esac 17811 ;; 17812 esac 17813 17814 ac_dir=`$as_dirname -- "$ac_file" || 17815$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17816 X"$ac_file" : 'X\(//\)[^/]' \| \ 17817 X"$ac_file" : 'X\(//\)$' \| \ 17818 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17819$as_echo X"$ac_file" | 17820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17821 s//\1/ 17822 q 17823 } 17824 /^X\(\/\/\)[^/].*/{ 17825 s//\1/ 17826 q 17827 } 17828 /^X\(\/\/\)$/{ 17829 s//\1/ 17830 q 17831 } 17832 /^X\(\/\).*/{ 17833 s//\1/ 17834 q 17835 } 17836 s/.*/./; q'` 17837 as_dir="$ac_dir"; as_fn_mkdir_p 17838 ac_builddir=. 17839 17840case "$ac_dir" in 17841.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17842*) 17843 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17844 # A ".." for each directory in $ac_dir_suffix. 17845 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17846 case $ac_top_builddir_sub in 17847 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17848 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17849 esac ;; 17850esac 17851ac_abs_top_builddir=$ac_pwd 17852ac_abs_builddir=$ac_pwd$ac_dir_suffix 17853# for backward compatibility: 17854ac_top_builddir=$ac_top_build_prefix 17855 17856case $srcdir in 17857 .) # We are building in place. 17858 ac_srcdir=. 17859 ac_top_srcdir=$ac_top_builddir_sub 17860 ac_abs_top_srcdir=$ac_pwd ;; 17861 [\\/]* | ?:[\\/]* ) # Absolute name. 17862 ac_srcdir=$srcdir$ac_dir_suffix; 17863 ac_top_srcdir=$srcdir 17864 ac_abs_top_srcdir=$srcdir ;; 17865 *) # Relative name. 17866 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17867 ac_top_srcdir=$ac_top_build_prefix$srcdir 17868 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17869esac 17870ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17871 17872 17873 case $ac_mode in 17874 :F) 17875 # 17876 # CONFIG_FILE 17877 # 17878 17879 case $INSTALL in 17880 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17881 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17882 esac 17883 ac_MKDIR_P=$MKDIR_P 17884 case $MKDIR_P in 17885 [\\/$]* | ?:[\\/]* ) ;; 17886 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17887 esac 17888_ACEOF 17889 17890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17891# If the template does not know about datarootdir, expand it. 17892# FIXME: This hack should be removed a few years after 2.60. 17893ac_datarootdir_hack=; ac_datarootdir_seen= 17894ac_sed_dataroot=' 17895/datarootdir/ { 17896 p 17897 q 17898} 17899/@datadir@/p 17900/@docdir@/p 17901/@infodir@/p 17902/@localedir@/p 17903/@mandir@/p' 17904case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17905*datarootdir*) ac_datarootdir_seen=yes;; 17906*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17908$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17909_ACEOF 17910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17911 ac_datarootdir_hack=' 17912 s&@datadir@&$datadir&g 17913 s&@docdir@&$docdir&g 17914 s&@infodir@&$infodir&g 17915 s&@localedir@&$localedir&g 17916 s&@mandir@&$mandir&g 17917 s&\\\${datarootdir}&$datarootdir&g' ;; 17918esac 17919_ACEOF 17920 17921# Neutralize VPATH when `$srcdir' = `.'. 17922# Shell code in configure.ac might set extrasub. 17923# FIXME: do we really want to maintain this feature? 17924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17925ac_sed_extra="$ac_vpsub 17926$extrasub 17927_ACEOF 17928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17929:t 17930/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17931s|@configure_input@|$ac_sed_conf_input|;t t 17932s&@top_builddir@&$ac_top_builddir_sub&;t t 17933s&@top_build_prefix@&$ac_top_build_prefix&;t t 17934s&@srcdir@&$ac_srcdir&;t t 17935s&@abs_srcdir@&$ac_abs_srcdir&;t t 17936s&@top_srcdir@&$ac_top_srcdir&;t t 17937s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17938s&@builddir@&$ac_builddir&;t t 17939s&@abs_builddir@&$ac_abs_builddir&;t t 17940s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17941s&@INSTALL@&$ac_INSTALL&;t t 17942s&@MKDIR_P@&$ac_MKDIR_P&;t t 17943$ac_datarootdir_hack 17944" 17945eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17946 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17947 17948test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17949 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17950 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17951 "$ac_tmp/out"`; test -z "$ac_out"; } && 17952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17953which seems to be undefined. Please make sure it is defined" >&5 17954$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17955which seems to be undefined. Please make sure it is defined" >&2;} 17956 17957 rm -f "$ac_tmp/stdin" 17958 case $ac_file in 17959 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17960 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17961 esac \ 17962 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17963 ;; 17964 :H) 17965 # 17966 # CONFIG_HEADER 17967 # 17968 if test x"$ac_file" != x-; then 17969 { 17970 $as_echo "/* $configure_input */" \ 17971 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17972 } >"$ac_tmp/config.h" \ 17973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17974 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17975 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17976$as_echo "$as_me: $ac_file is unchanged" >&6;} 17977 else 17978 rm -f "$ac_file" 17979 mv "$ac_tmp/config.h" "$ac_file" \ 17980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17981 fi 17982 else 17983 $as_echo "/* $configure_input */" \ 17984 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17985 || as_fn_error $? "could not create -" "$LINENO" 5 17986 fi 17987# Compute "$ac_file"'s index in $config_headers. 17988_am_arg="$ac_file" 17989_am_stamp_count=1 17990for _am_header in $config_headers :; do 17991 case $_am_header in 17992 $_am_arg | $_am_arg:* ) 17993 break ;; 17994 * ) 17995 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17996 esac 17997done 17998echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17999$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18000 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18001 X"$_am_arg" : 'X\(//\)$' \| \ 18002 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18003$as_echo X"$_am_arg" | 18004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18005 s//\1/ 18006 q 18007 } 18008 /^X\(\/\/\)[^/].*/{ 18009 s//\1/ 18010 q 18011 } 18012 /^X\(\/\/\)$/{ 18013 s//\1/ 18014 q 18015 } 18016 /^X\(\/\).*/{ 18017 s//\1/ 18018 q 18019 } 18020 s/.*/./; q'`/stamp-h$_am_stamp_count 18021 ;; 18022 18023 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18024$as_echo "$as_me: executing $ac_file commands" >&6;} 18025 ;; 18026 esac 18027 18028 18029 case $ac_file$ac_mode in 18030 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18031 # Older Autoconf quotes --file arguments for eval, but not when files 18032 # are listed without --file. Let's play safe and only enable the eval 18033 # if we detect the quoting. 18034 # TODO: see whether this extra hack can be removed once we start 18035 # requiring Autoconf 2.70 or later. 18036 case $CONFIG_FILES in #( 18037 *\'*) : 18038 eval set x "$CONFIG_FILES" ;; #( 18039 *) : 18040 set x $CONFIG_FILES ;; #( 18041 *) : 18042 ;; 18043esac 18044 shift 18045 # Used to flag and report bootstrapping failures. 18046 am_rc=0 18047 for am_mf 18048 do 18049 # Strip MF so we end up with the name of the file. 18050 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 18051 # Check whether this is an Automake generated Makefile which includes 18052 # dependency-tracking related rules and includes. 18053 # Grep'ing the whole file directly is not great: AIX grep has a line 18054 # limit of 2048, but all sed's we know have understand at least 4000. 18055 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 18056 || continue 18057 am_dirpart=`$as_dirname -- "$am_mf" || 18058$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18059 X"$am_mf" : 'X\(//\)[^/]' \| \ 18060 X"$am_mf" : 'X\(//\)$' \| \ 18061 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18062$as_echo X"$am_mf" | 18063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18064 s//\1/ 18065 q 18066 } 18067 /^X\(\/\/\)[^/].*/{ 18068 s//\1/ 18069 q 18070 } 18071 /^X\(\/\/\)$/{ 18072 s//\1/ 18073 q 18074 } 18075 /^X\(\/\).*/{ 18076 s//\1/ 18077 q 18078 } 18079 s/.*/./; q'` 18080 am_filepart=`$as_basename -- "$am_mf" || 18081$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 18082 X"$am_mf" : 'X\(//\)$' \| \ 18083 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18084$as_echo X/"$am_mf" | 18085 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18086 s//\1/ 18087 q 18088 } 18089 /^X\/\(\/\/\)$/{ 18090 s//\1/ 18091 q 18092 } 18093 /^X\/\(\/\).*/{ 18094 s//\1/ 18095 q 18096 } 18097 s/.*/./; q'` 18098 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 18099 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18100 | $MAKE -f - am--depfiles" >&5 18101 (cd "$am_dirpart" \ 18102 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18103 | $MAKE -f - am--depfiles) >&5 2>&5 18104 ac_status=$? 18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18106 (exit $ac_status); } || am_rc=$? 18107 done 18108 if test $am_rc -ne 0; then 18109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18111as_fn_error $? "Something went wrong bootstrapping makefile fragments 18112 for automatic dependency tracking. Try re-running configure with the 18113 '--disable-dependency-tracking' option to at least be able to build 18114 the package (albeit without support for automatic dependency tracking). 18115See \`config.log' for more details" "$LINENO" 5; } 18116 fi 18117 { am_dirpart=; unset am_dirpart;} 18118 { am_filepart=; unset am_filepart;} 18119 { am_mf=; unset am_mf;} 18120 { am_rc=; unset am_rc;} 18121 rm -f conftest-deps.mk 18122} 18123 ;; 18124 "libtool":C) 18125 18126 # See if we are running on zsh, and set the options that allow our 18127 # commands through without removal of \ escapes. 18128 if test -n "${ZSH_VERSION+set}"; then 18129 setopt NO_GLOB_SUBST 18130 fi 18131 18132 cfgfile=${ofile}T 18133 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18134 $RM "$cfgfile" 18135 18136 cat <<_LT_EOF >> "$cfgfile" 18137#! $SHELL 18138# Generated automatically by $as_me ($PACKAGE) $VERSION 18139# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18140# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18141 18142# Provide generalized library-building support services. 18143# Written by Gordon Matzigkeit, 1996 18144 18145# Copyright (C) 2014 Free Software Foundation, Inc. 18146# This is free software; see the source for copying conditions. There is NO 18147# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18148 18149# GNU Libtool is free software; you can redistribute it and/or modify 18150# it under the terms of the GNU General Public License as published by 18151# the Free Software Foundation; either version 2 of of the License, or 18152# (at your option) any later version. 18153# 18154# As a special exception to the GNU General Public License, if you 18155# distribute this file as part of a program or library that is built 18156# using GNU Libtool, you may include this file under the same 18157# distribution terms that you use for the rest of that program. 18158# 18159# GNU Libtool is distributed in the hope that it will be useful, but 18160# WITHOUT ANY WARRANTY; without even the implied warranty of 18161# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18162# GNU General Public License for more details. 18163# 18164# You should have received a copy of the GNU General Public License 18165# along with this program. If not, see <http://www.gnu.org/licenses/>. 18166 18167 18168# The names of the tagged configurations supported by this script. 18169available_tags='' 18170 18171# Configured defaults for sys_lib_dlsearch_path munging. 18172: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18173 18174# ### BEGIN LIBTOOL CONFIG 18175 18176# Which release of libtool.m4 was used? 18177macro_version=$macro_version 18178macro_revision=$macro_revision 18179 18180# Whether or not to build shared libraries. 18181build_libtool_libs=$enable_shared 18182 18183# Whether or not to build static libraries. 18184build_old_libs=$enable_static 18185 18186# What type of objects to build. 18187pic_mode=$pic_mode 18188 18189# Whether or not to optimize for fast installation. 18190fast_install=$enable_fast_install 18191 18192# Shared archive member basename,for filename based shared library versioning on AIX. 18193shared_archive_member_spec=$shared_archive_member_spec 18194 18195# Shell to use when invoking shell scripts. 18196SHELL=$lt_SHELL 18197 18198# An echo program that protects backslashes. 18199ECHO=$lt_ECHO 18200 18201# The PATH separator for the build system. 18202PATH_SEPARATOR=$lt_PATH_SEPARATOR 18203 18204# The host system. 18205host_alias=$host_alias 18206host=$host 18207host_os=$host_os 18208 18209# The build system. 18210build_alias=$build_alias 18211build=$build 18212build_os=$build_os 18213 18214# A sed program that does not truncate output. 18215SED=$lt_SED 18216 18217# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18218Xsed="\$SED -e 1s/^X//" 18219 18220# A grep program that handles long lines. 18221GREP=$lt_GREP 18222 18223# An ERE matcher. 18224EGREP=$lt_EGREP 18225 18226# A literal string matcher. 18227FGREP=$lt_FGREP 18228 18229# A BSD- or MS-compatible name lister. 18230NM=$lt_NM 18231 18232# Whether we need soft or hard links. 18233LN_S=$lt_LN_S 18234 18235# What is the maximum length of a command? 18236max_cmd_len=$max_cmd_len 18237 18238# Object file suffix (normally "o"). 18239objext=$ac_objext 18240 18241# Executable file suffix (normally ""). 18242exeext=$exeext 18243 18244# whether the shell understands "unset". 18245lt_unset=$lt_unset 18246 18247# turn spaces into newlines. 18248SP2NL=$lt_lt_SP2NL 18249 18250# turn newlines into spaces. 18251NL2SP=$lt_lt_NL2SP 18252 18253# convert \$build file names to \$host format. 18254to_host_file_cmd=$lt_cv_to_host_file_cmd 18255 18256# convert \$build files to toolchain format. 18257to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18258 18259# An object symbol dumper. 18260OBJDUMP=$lt_OBJDUMP 18261 18262# Method to check whether dependent libraries are shared objects. 18263deplibs_check_method=$lt_deplibs_check_method 18264 18265# Command to use when deplibs_check_method = "file_magic". 18266file_magic_cmd=$lt_file_magic_cmd 18267 18268# How to find potential files when deplibs_check_method = "file_magic". 18269file_magic_glob=$lt_file_magic_glob 18270 18271# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18272want_nocaseglob=$lt_want_nocaseglob 18273 18274# DLL creation program. 18275DLLTOOL=$lt_DLLTOOL 18276 18277# Command to associate shared and link libraries. 18278sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18279 18280# The archiver. 18281AR=$lt_AR 18282 18283# Flags to create an archive (by configure). 18284lt_ar_flags=$lt_ar_flags 18285 18286# Flags to create an archive. 18287AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 18288 18289# How to feed a file listing to the archiver. 18290archiver_list_spec=$lt_archiver_list_spec 18291 18292# A symbol stripping program. 18293STRIP=$lt_STRIP 18294 18295# Commands used to install an old-style archive. 18296RANLIB=$lt_RANLIB 18297old_postinstall_cmds=$lt_old_postinstall_cmds 18298old_postuninstall_cmds=$lt_old_postuninstall_cmds 18299 18300# Whether to use a lock for old archive extraction. 18301lock_old_archive_extraction=$lock_old_archive_extraction 18302 18303# A C compiler. 18304LTCC=$lt_CC 18305 18306# LTCC compiler flags. 18307LTCFLAGS=$lt_CFLAGS 18308 18309# Take the output of nm and produce a listing of raw symbols and C names. 18310global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18311 18312# Transform the output of nm in a proper C declaration. 18313global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18314 18315# Transform the output of nm into a list of symbols to manually relocate. 18316global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18317 18318# Transform the output of nm in a C name address pair. 18319global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18320 18321# Transform the output of nm in a C name address pair when lib prefix is needed. 18322global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18323 18324# The name lister interface. 18325nm_interface=$lt_lt_cv_nm_interface 18326 18327# Specify filename containing input files for \$NM. 18328nm_file_list_spec=$lt_nm_file_list_spec 18329 18330# The root where to search for dependent libraries,and where our libraries should be installed. 18331lt_sysroot=$lt_sysroot 18332 18333# Command to truncate a binary pipe. 18334lt_truncate_bin=$lt_lt_cv_truncate_bin 18335 18336# The name of the directory that contains temporary libtool files. 18337objdir=$objdir 18338 18339# Used to examine libraries when file_magic_cmd begins with "file". 18340MAGIC_CMD=$MAGIC_CMD 18341 18342# Must we lock files when doing compilation? 18343need_locks=$lt_need_locks 18344 18345# Manifest tool. 18346MANIFEST_TOOL=$lt_MANIFEST_TOOL 18347 18348# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18349DSYMUTIL=$lt_DSYMUTIL 18350 18351# Tool to change global to local symbols on Mac OS X. 18352NMEDIT=$lt_NMEDIT 18353 18354# Tool to manipulate fat objects and archives on Mac OS X. 18355LIPO=$lt_LIPO 18356 18357# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18358OTOOL=$lt_OTOOL 18359 18360# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18361OTOOL64=$lt_OTOOL64 18362 18363# Old archive suffix (normally "a"). 18364libext=$libext 18365 18366# Shared library suffix (normally ".so"). 18367shrext_cmds=$lt_shrext_cmds 18368 18369# The commands to extract the exported symbol list from a shared archive. 18370extract_expsyms_cmds=$lt_extract_expsyms_cmds 18371 18372# Variables whose values should be saved in libtool wrapper scripts and 18373# restored at link time. 18374variables_saved_for_relink=$lt_variables_saved_for_relink 18375 18376# Do we need the "lib" prefix for modules? 18377need_lib_prefix=$need_lib_prefix 18378 18379# Do we need a version for libraries? 18380need_version=$need_version 18381 18382# Library versioning type. 18383version_type=$version_type 18384 18385# Shared library runtime path variable. 18386runpath_var=$runpath_var 18387 18388# Shared library path variable. 18389shlibpath_var=$shlibpath_var 18390 18391# Is shlibpath searched before the hard-coded library search path? 18392shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18393 18394# Format of library name prefix. 18395libname_spec=$lt_libname_spec 18396 18397# List of archive names. First name is the real one, the rest are links. 18398# The last name is the one that the linker finds with -lNAME 18399library_names_spec=$lt_library_names_spec 18400 18401# The coded name of the library, if different from the real name. 18402soname_spec=$lt_soname_spec 18403 18404# Permission mode override for installation of shared libraries. 18405install_override_mode=$lt_install_override_mode 18406 18407# Command to use after installation of a shared archive. 18408postinstall_cmds=$lt_postinstall_cmds 18409 18410# Command to use after uninstallation of a shared archive. 18411postuninstall_cmds=$lt_postuninstall_cmds 18412 18413# Commands used to finish a libtool library installation in a directory. 18414finish_cmds=$lt_finish_cmds 18415 18416# As "finish_cmds", except a single script fragment to be evaled but 18417# not shown. 18418finish_eval=$lt_finish_eval 18419 18420# Whether we should hardcode library paths into libraries. 18421hardcode_into_libs=$hardcode_into_libs 18422 18423# Compile-time system search path for libraries. 18424sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18425 18426# Detected run-time system search path for libraries. 18427sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18428 18429# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18430configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18431 18432# Whether dlopen is supported. 18433dlopen_support=$enable_dlopen 18434 18435# Whether dlopen of programs is supported. 18436dlopen_self=$enable_dlopen_self 18437 18438# Whether dlopen of statically linked programs is supported. 18439dlopen_self_static=$enable_dlopen_self_static 18440 18441# Commands to strip libraries. 18442old_striplib=$lt_old_striplib 18443striplib=$lt_striplib 18444 18445 18446# The linker used to build libraries. 18447LD=$lt_LD 18448 18449# How to create reloadable object files. 18450reload_flag=$lt_reload_flag 18451reload_cmds=$lt_reload_cmds 18452 18453# Commands used to build an old-style archive. 18454old_archive_cmds=$lt_old_archive_cmds 18455 18456# A language specific compiler. 18457CC=$lt_compiler 18458 18459# Is the compiler the GNU compiler? 18460with_gcc=$GCC 18461 18462# Compiler flag to turn off builtin functions. 18463no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18464 18465# Additional compiler flags for building library objects. 18466pic_flag=$lt_lt_prog_compiler_pic 18467 18468# How to pass a linker flag through the compiler. 18469wl=$lt_lt_prog_compiler_wl 18470 18471# Compiler flag to prevent dynamic linking. 18472link_static_flag=$lt_lt_prog_compiler_static 18473 18474# Does compiler simultaneously support -c and -o options? 18475compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18476 18477# Whether or not to add -lc for building shared libraries. 18478build_libtool_need_lc=$archive_cmds_need_lc 18479 18480# Whether or not to disallow shared libs when runtime libs are static. 18481allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18482 18483# Compiler flag to allow reflexive dlopens. 18484export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18485 18486# Compiler flag to generate shared objects directly from archives. 18487whole_archive_flag_spec=$lt_whole_archive_flag_spec 18488 18489# Whether the compiler copes with passing no objects directly. 18490compiler_needs_object=$lt_compiler_needs_object 18491 18492# Create an old-style archive from a shared archive. 18493old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18494 18495# Create a temporary old-style archive to link instead of a shared archive. 18496old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18497 18498# Commands used to build a shared archive. 18499archive_cmds=$lt_archive_cmds 18500archive_expsym_cmds=$lt_archive_expsym_cmds 18501 18502# Commands used to build a loadable module if different from building 18503# a shared archive. 18504module_cmds=$lt_module_cmds 18505module_expsym_cmds=$lt_module_expsym_cmds 18506 18507# Whether we are building with GNU ld or not. 18508with_gnu_ld=$lt_with_gnu_ld 18509 18510# Flag that allows shared libraries with undefined symbols to be built. 18511allow_undefined_flag=$lt_allow_undefined_flag 18512 18513# Flag that enforces no undefined symbols. 18514no_undefined_flag=$lt_no_undefined_flag 18515 18516# Flag to hardcode \$libdir into a binary during linking. 18517# This must work even if \$libdir does not exist 18518hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18519 18520# Whether we need a single "-rpath" flag with a separated argument. 18521hardcode_libdir_separator=$lt_hardcode_libdir_separator 18522 18523# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18524# DIR into the resulting binary. 18525hardcode_direct=$hardcode_direct 18526 18527# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18528# DIR into the resulting binary and the resulting library dependency is 18529# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18530# library is relocated. 18531hardcode_direct_absolute=$hardcode_direct_absolute 18532 18533# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18534# into the resulting binary. 18535hardcode_minus_L=$hardcode_minus_L 18536 18537# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18538# into the resulting binary. 18539hardcode_shlibpath_var=$hardcode_shlibpath_var 18540 18541# Set to "yes" if building a shared library automatically hardcodes DIR 18542# into the library and all subsequent libraries and executables linked 18543# against it. 18544hardcode_automatic=$hardcode_automatic 18545 18546# Set to yes if linker adds runtime paths of dependent libraries 18547# to runtime path list. 18548inherit_rpath=$inherit_rpath 18549 18550# Whether libtool must link a program against all its dependency libraries. 18551link_all_deplibs=$link_all_deplibs 18552 18553# Set to "yes" if exported symbols are required. 18554always_export_symbols=$always_export_symbols 18555 18556# The commands to list exported symbols. 18557export_symbols_cmds=$lt_export_symbols_cmds 18558 18559# Symbols that should not be listed in the preloaded symbols. 18560exclude_expsyms=$lt_exclude_expsyms 18561 18562# Symbols that must always be exported. 18563include_expsyms=$lt_include_expsyms 18564 18565# Commands necessary for linking programs (against libraries) with templates. 18566prelink_cmds=$lt_prelink_cmds 18567 18568# Commands necessary for finishing linking programs. 18569postlink_cmds=$lt_postlink_cmds 18570 18571# Specify filename containing input files. 18572file_list_spec=$lt_file_list_spec 18573 18574# How to hardcode a shared library path into an executable. 18575hardcode_action=$hardcode_action 18576 18577# ### END LIBTOOL CONFIG 18578 18579_LT_EOF 18580 18581 cat <<'_LT_EOF' >> "$cfgfile" 18582 18583# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18584 18585# func_munge_path_list VARIABLE PATH 18586# ----------------------------------- 18587# VARIABLE is name of variable containing _space_ separated list of 18588# directories to be munged by the contents of PATH, which is string 18589# having a format: 18590# "DIR[:DIR]:" 18591# string "DIR[ DIR]" will be prepended to VARIABLE 18592# ":DIR[:DIR]" 18593# string "DIR[ DIR]" will be appended to VARIABLE 18594# "DIRP[:DIRP]::[DIRA:]DIRA" 18595# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18596# "DIRA[ DIRA]" will be appended to VARIABLE 18597# "DIR[:DIR]" 18598# VARIABLE will be replaced by "DIR[ DIR]" 18599func_munge_path_list () 18600{ 18601 case x$2 in 18602 x) 18603 ;; 18604 *:) 18605 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18606 ;; 18607 x:*) 18608 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18609 ;; 18610 *::*) 18611 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18612 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18613 ;; 18614 *) 18615 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18616 ;; 18617 esac 18618} 18619 18620 18621# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18622func_cc_basename () 18623{ 18624 for cc_temp in $*""; do 18625 case $cc_temp in 18626 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18627 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18628 \-*) ;; 18629 *) break;; 18630 esac 18631 done 18632 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18633} 18634 18635 18636# ### END FUNCTIONS SHARED WITH CONFIGURE 18637 18638_LT_EOF 18639 18640 case $host_os in 18641 aix3*) 18642 cat <<\_LT_EOF >> "$cfgfile" 18643# AIX sometimes has problems with the GCC collect2 program. For some 18644# reason, if we set the COLLECT_NAMES environment variable, the problems 18645# vanish in a puff of smoke. 18646if test set != "${COLLECT_NAMES+set}"; then 18647 COLLECT_NAMES= 18648 export COLLECT_NAMES 18649fi 18650_LT_EOF 18651 ;; 18652 esac 18653 18654 18655ltmain=$ac_aux_dir/ltmain.sh 18656 18657 18658 # We use sed instead of cat because bash on DJGPP gets confused if 18659 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18660 # text mode, it properly converts lines to CR/LF. This bash problem 18661 # is reportedly fixed, but why not run on old versions too? 18662 sed '$q' "$ltmain" >> "$cfgfile" \ 18663 || (rm -f "$cfgfile"; exit 1) 18664 18665 mv -f "$cfgfile" "$ofile" || 18666 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18667 chmod +x "$ofile" 18668 18669 ;; 18670 18671 esac 18672done # for ac_tag 18673 18674 18675as_fn_exit 0 18676_ACEOF 18677ac_clean_files=$ac_clean_files_save 18678 18679test $ac_write_fail = 0 || 18680 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18681 18682 18683# configure is writing to config.log, and then calls config.status. 18684# config.status does its own redirection, appending to config.log. 18685# Unfortunately, on DOS this fails, as config.log is still kept open 18686# by configure, so config.status won't be able to write to it; its 18687# output is simply discarded. So we exec the FD to /dev/null, 18688# effectively closing config.log, so it can be properly (re)opened and 18689# appended to by config.status. When coming back to configure, we 18690# need to make the FD available again. 18691if test "$no_create" != yes; then 18692 ac_cs_success=: 18693 ac_config_status_args= 18694 test "$silent" = yes && 18695 ac_config_status_args="$ac_config_status_args --quiet" 18696 exec 5>/dev/null 18697 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18698 exec 5>>config.log 18699 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18700 # would make configure fail if this is the last instruction. 18701 $ac_cs_success || as_fn_exit 1 18702fi 18703if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18705$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18706fi 18707 18708