1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libevent 2.1.5-beta. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='libevent' 589PACKAGE_TARNAME='libevent' 590PACKAGE_VERSION='2.1.5-beta' 591PACKAGE_STRING='libevent 2.1.5-beta' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="event.c" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635INSTALL_LIBEVENT_FALSE 636INSTALL_LIBEVENT_TRUE 637LIBEVENT_GC_SECTIONS 638PTHREADS_FALSE 639PTHREADS_TRUE 640PTHREAD_CFLAGS 641PTHREAD_LIBS 642PTHREAD_CC 643acx_pthread_config 644SIGNAL_SUPPORT_FALSE 645SIGNAL_SUPPORT_TRUE 646EVPORT_BACKEND_FALSE 647EVPORT_BACKEND_TRUE 648EPOLL_BACKEND_FALSE 649EPOLL_BACKEND_TRUE 650LIBOBJS 651KQUEUE_BACKEND_FALSE 652KQUEUE_BACKEND_TRUE 653DEVPOLL_BACKEND_FALSE 654DEVPOLL_BACKEND_TRUE 655POLL_BACKEND_FALSE 656POLL_BACKEND_TRUE 657SELECT_BACKEND_FALSE 658SELECT_BACKEND_TRUE 659STRLCPY_IMPL_FALSE 660STRLCPY_IMPL_TRUE 661BUILD_WITH_NO_UNDEFINED_FALSE 662BUILD_WITH_NO_UNDEFINED_TRUE 663BUILD_CYGWIN_FALSE 664BUILD_CYGWIN_TRUE 665BUILD_WIN32_FALSE 666BUILD_WIN32_TRUE 667OPENSSL_FALSE 668OPENSSL_TRUE 669OPENSSL_LIBS 670OPENSSL_INCS 671PKG_CONFIG 672OPENSSL_LIBADD 673EV_LIB_GDI 674EV_LIB_WS32 675ZLIB_REGRESS_FALSE 676ZLIB_REGRESS_TRUE 677ZLIB_LIBS 678BUILD_REGRESS_FALSE 679BUILD_REGRESS_TRUE 680BUILD_SAMPLES_FALSE 681BUILD_SAMPLES_TRUE 682LIBTOOL_DEPS 683LT_SYS_LIBRARY_PATH 684OTOOL64 685OTOOL 686LIPO 687NMEDIT 688DSYMUTIL 689MANIFEST_TOOL 690RANLIB 691ac_ct_AR 692AR 693DLLTOOL 694OBJDUMP 695NM 696ac_ct_DUMPBIN 697DUMPBIN 698LD 699FGREP 700LIBTOOL 701SED 702LN_S 703host_os 704host_vendor 705host_cpu 706host 707build_os 708build_vendor 709build_cpu 710build 711EGREP 712GREP 713CPP 714am__fastdepCC_FALSE 715am__fastdepCC_TRUE 716CCDEPMODE 717am__nodep 718AMDEPBACKSLASH 719AMDEP_FALSE 720AMDEP_TRUE 721am__quote 722am__include 723DEPDIR 724OBJEXT 725EXEEXT 726ac_ct_CC 727CPPFLAGS 728LDFLAGS 729CFLAGS 730CC 731AM_BACKSLASH 732AM_DEFAULT_VERBOSITY 733AM_DEFAULT_V 734AM_V 735am__untar 736am__tar 737AMTAR 738am__leading_dot 739SET_MAKE 740AWK 741mkdir_p 742MKDIR_P 743INSTALL_STRIP_PROGRAM 744STRIP 745install_sh 746MAKEINFO 747AUTOHEADER 748AUTOMAKE 749AUTOCONF 750ACLOCAL 751VERSION 752PACKAGE 753CYGPATH_W 754am__isrc 755INSTALL_DATA 756INSTALL_SCRIPT 757INSTALL_PROGRAM 758target_alias 759host_alias 760build_alias 761LIBS 762ECHO_T 763ECHO_N 764ECHO_C 765DEFS 766mandir 767localedir 768libdir 769psdir 770pdfdir 771dvidir 772htmldir 773infodir 774docdir 775oldincludedir 776includedir 777localstatedir 778sharedstatedir 779sysconfdir 780datadir 781datarootdir 782libexecdir 783sbindir 784bindir 785program_transform_name 786prefix 787exec_prefix 788PACKAGE_URL 789PACKAGE_BUGREPORT 790PACKAGE_STRING 791PACKAGE_VERSION 792PACKAGE_TARNAME 793PACKAGE_NAME 794PATH_SEPARATOR 795SHELL' 796ac_subst_files='' 797ac_user_opts=' 798enable_option_checking 799enable_silent_rules 800enable_dependency_tracking 801enable_gcc_warnings 802enable_gcc_hardening 803enable_thread_support 804enable_malloc_replacement 805enable_openssl 806enable_debug_mode 807enable_libevent_install 808enable_libevent_regress 809enable_samples 810enable_function_sections 811enable_verbose_debug 812enable_shared 813enable_static 814with_pic 815enable_fast_install 816with_aix_soname 817with_gnu_ld 818with_sysroot 819enable_libtool_lock 820enable_largefile 821' 822 ac_precious_vars='build_alias 823host_alias 824target_alias 825CC 826CFLAGS 827LDFLAGS 828LIBS 829CPPFLAGS 830CPP 831LT_SYS_LIBRARY_PATH' 832 833 834# Initialize some variables set by options. 835ac_init_help= 836ac_init_version=false 837ac_unrecognized_opts= 838ac_unrecognized_sep= 839# The variables have the same names as the options, with 840# dashes changed to underlines. 841cache_file=/dev/null 842exec_prefix=NONE 843no_create= 844no_recursion= 845prefix=NONE 846program_prefix=NONE 847program_suffix=NONE 848program_transform_name=s,x,x, 849silent= 850site= 851srcdir= 852verbose= 853x_includes=NONE 854x_libraries=NONE 855 856# Installation directory options. 857# These are left unexpanded so users can "make install exec_prefix=/foo" 858# and all the variables that are supposed to be based on exec_prefix 859# by default will actually change. 860# Use braces instead of parens because sh, perl, etc. also accept them. 861# (The list follows the same order as the GNU Coding Standards.) 862bindir='${exec_prefix}/bin' 863sbindir='${exec_prefix}/sbin' 864libexecdir='${exec_prefix}/libexec' 865datarootdir='${prefix}/share' 866datadir='${datarootdir}' 867sysconfdir='${prefix}/etc' 868sharedstatedir='${prefix}/com' 869localstatedir='${prefix}/var' 870includedir='${prefix}/include' 871oldincludedir='/usr/include' 872docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 873infodir='${datarootdir}/info' 874htmldir='${docdir}' 875dvidir='${docdir}' 876pdfdir='${docdir}' 877psdir='${docdir}' 878libdir='${exec_prefix}/lib' 879localedir='${datarootdir}/locale' 880mandir='${datarootdir}/man' 881 882ac_prev= 883ac_dashdash= 884for ac_option 885do 886 # If the previous option needs an argument, assign it. 887 if test -n "$ac_prev"; then 888 eval $ac_prev=\$ac_option 889 ac_prev= 890 continue 891 fi 892 893 case $ac_option in 894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 895 *=) ac_optarg= ;; 896 *) ac_optarg=yes ;; 897 esac 898 899 # Accept the important Cygnus configure options, so we can diagnose typos. 900 901 case $ac_dashdash$ac_option in 902 --) 903 ac_dashdash=yes ;; 904 905 -bindir | --bindir | --bindi | --bind | --bin | --bi) 906 ac_prev=bindir ;; 907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 908 bindir=$ac_optarg ;; 909 910 -build | --build | --buil | --bui | --bu) 911 ac_prev=build_alias ;; 912 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 913 build_alias=$ac_optarg ;; 914 915 -cache-file | --cache-file | --cache-fil | --cache-fi \ 916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 917 ac_prev=cache_file ;; 918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 920 cache_file=$ac_optarg ;; 921 922 --config-cache | -C) 923 cache_file=config.cache ;; 924 925 -datadir | --datadir | --datadi | --datad) 926 ac_prev=datadir ;; 927 -datadir=* | --datadir=* | --datadi=* | --datad=*) 928 datadir=$ac_optarg ;; 929 930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 931 | --dataroo | --dataro | --datar) 932 ac_prev=datarootdir ;; 933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 935 datarootdir=$ac_optarg ;; 936 937 -disable-* | --disable-*) 938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 939 # Reject names that are not valid shell variable names. 940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 941 as_fn_error $? "invalid feature name: $ac_useropt" 942 ac_useropt_orig=$ac_useropt 943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 944 case $ac_user_opts in 945 *" 946"enable_$ac_useropt" 947"*) ;; 948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 949 ac_unrecognized_sep=', ';; 950 esac 951 eval enable_$ac_useropt=no ;; 952 953 -docdir | --docdir | --docdi | --doc | --do) 954 ac_prev=docdir ;; 955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 956 docdir=$ac_optarg ;; 957 958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 959 ac_prev=dvidir ;; 960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 961 dvidir=$ac_optarg ;; 962 963 -enable-* | --enable-*) 964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 965 # Reject names that are not valid shell variable names. 966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 967 as_fn_error $? "invalid feature name: $ac_useropt" 968 ac_useropt_orig=$ac_useropt 969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 970 case $ac_user_opts in 971 *" 972"enable_$ac_useropt" 973"*) ;; 974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 975 ac_unrecognized_sep=', ';; 976 esac 977 eval enable_$ac_useropt=\$ac_optarg ;; 978 979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 981 | --exec | --exe | --ex) 982 ac_prev=exec_prefix ;; 983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 985 | --exec=* | --exe=* | --ex=*) 986 exec_prefix=$ac_optarg ;; 987 988 -gas | --gas | --ga | --g) 989 # Obsolete; use --with-gas. 990 with_gas=yes ;; 991 992 -help | --help | --hel | --he | -h) 993 ac_init_help=long ;; 994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 995 ac_init_help=recursive ;; 996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 997 ac_init_help=short ;; 998 999 -host | --host | --hos | --ho) 1000 ac_prev=host_alias ;; 1001 -host=* | --host=* | --hos=* | --ho=*) 1002 host_alias=$ac_optarg ;; 1003 1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1005 ac_prev=htmldir ;; 1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1007 | --ht=*) 1008 htmldir=$ac_optarg ;; 1009 1010 -includedir | --includedir | --includedi | --included | --include \ 1011 | --includ | --inclu | --incl | --inc) 1012 ac_prev=includedir ;; 1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1014 | --includ=* | --inclu=* | --incl=* | --inc=*) 1015 includedir=$ac_optarg ;; 1016 1017 -infodir | --infodir | --infodi | --infod | --info | --inf) 1018 ac_prev=infodir ;; 1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1020 infodir=$ac_optarg ;; 1021 1022 -libdir | --libdir | --libdi | --libd) 1023 ac_prev=libdir ;; 1024 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1025 libdir=$ac_optarg ;; 1026 1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1028 | --libexe | --libex | --libe) 1029 ac_prev=libexecdir ;; 1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1031 | --libexe=* | --libex=* | --libe=*) 1032 libexecdir=$ac_optarg ;; 1033 1034 -localedir | --localedir | --localedi | --localed | --locale) 1035 ac_prev=localedir ;; 1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1037 localedir=$ac_optarg ;; 1038 1039 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1040 | --localstate | --localstat | --localsta | --localst | --locals) 1041 ac_prev=localstatedir ;; 1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1044 localstatedir=$ac_optarg ;; 1045 1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1047 ac_prev=mandir ;; 1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1049 mandir=$ac_optarg ;; 1050 1051 -nfp | --nfp | --nf) 1052 # Obsolete; use --without-fp. 1053 with_fp=no ;; 1054 1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1056 | --no-cr | --no-c | -n) 1057 no_create=yes ;; 1058 1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1061 no_recursion=yes ;; 1062 1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1065 | --oldin | --oldi | --old | --ol | --o) 1066 ac_prev=oldincludedir ;; 1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1070 oldincludedir=$ac_optarg ;; 1071 1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1073 ac_prev=prefix ;; 1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1075 prefix=$ac_optarg ;; 1076 1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1078 | --program-pre | --program-pr | --program-p) 1079 ac_prev=program_prefix ;; 1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1082 program_prefix=$ac_optarg ;; 1083 1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1085 | --program-suf | --program-su | --program-s) 1086 ac_prev=program_suffix ;; 1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1089 program_suffix=$ac_optarg ;; 1090 1091 -program-transform-name | --program-transform-name \ 1092 | --program-transform-nam | --program-transform-na \ 1093 | --program-transform-n | --program-transform- \ 1094 | --program-transform | --program-transfor \ 1095 | --program-transfo | --program-transf \ 1096 | --program-trans | --program-tran \ 1097 | --progr-tra | --program-tr | --program-t) 1098 ac_prev=program_transform_name ;; 1099 -program-transform-name=* | --program-transform-name=* \ 1100 | --program-transform-nam=* | --program-transform-na=* \ 1101 | --program-transform-n=* | --program-transform-=* \ 1102 | --program-transform=* | --program-transfor=* \ 1103 | --program-transfo=* | --program-transf=* \ 1104 | --program-trans=* | --program-tran=* \ 1105 | --progr-tra=* | --program-tr=* | --program-t=*) 1106 program_transform_name=$ac_optarg ;; 1107 1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1109 ac_prev=pdfdir ;; 1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1111 pdfdir=$ac_optarg ;; 1112 1113 -psdir | --psdir | --psdi | --psd | --ps) 1114 ac_prev=psdir ;; 1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1116 psdir=$ac_optarg ;; 1117 1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1119 | -silent | --silent | --silen | --sile | --sil) 1120 silent=yes ;; 1121 1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1123 ac_prev=sbindir ;; 1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1125 | --sbi=* | --sb=*) 1126 sbindir=$ac_optarg ;; 1127 1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1130 | --sharedst | --shareds | --shared | --share | --shar \ 1131 | --sha | --sh) 1132 ac_prev=sharedstatedir ;; 1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1136 | --sha=* | --sh=*) 1137 sharedstatedir=$ac_optarg ;; 1138 1139 -site | --site | --sit) 1140 ac_prev=site ;; 1141 -site=* | --site=* | --sit=*) 1142 site=$ac_optarg ;; 1143 1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1145 ac_prev=srcdir ;; 1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1147 srcdir=$ac_optarg ;; 1148 1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1150 | --syscon | --sysco | --sysc | --sys | --sy) 1151 ac_prev=sysconfdir ;; 1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1154 sysconfdir=$ac_optarg ;; 1155 1156 -target | --target | --targe | --targ | --tar | --ta | --t) 1157 ac_prev=target_alias ;; 1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1159 target_alias=$ac_optarg ;; 1160 1161 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1162 verbose=yes ;; 1163 1164 -version | --version | --versio | --versi | --vers | -V) 1165 ac_init_version=: ;; 1166 1167 -with-* | --with-*) 1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1169 # Reject names that are not valid shell variable names. 1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1171 as_fn_error $? "invalid package name: $ac_useropt" 1172 ac_useropt_orig=$ac_useropt 1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1174 case $ac_user_opts in 1175 *" 1176"with_$ac_useropt" 1177"*) ;; 1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1179 ac_unrecognized_sep=', ';; 1180 esac 1181 eval with_$ac_useropt=\$ac_optarg ;; 1182 1183 -without-* | --without-*) 1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1185 # Reject names that are not valid shell variable names. 1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1187 as_fn_error $? "invalid package name: $ac_useropt" 1188 ac_useropt_orig=$ac_useropt 1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1190 case $ac_user_opts in 1191 *" 1192"with_$ac_useropt" 1193"*) ;; 1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1195 ac_unrecognized_sep=', ';; 1196 esac 1197 eval with_$ac_useropt=no ;; 1198 1199 --x) 1200 # Obsolete; use --with-x. 1201 with_x=yes ;; 1202 1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1204 | --x-incl | --x-inc | --x-in | --x-i) 1205 ac_prev=x_includes ;; 1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1208 x_includes=$ac_optarg ;; 1209 1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1212 ac_prev=x_libraries ;; 1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1215 x_libraries=$ac_optarg ;; 1216 1217 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1218Try \`$0 --help' for more information" 1219 ;; 1220 1221 *=*) 1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1223 # Reject names that are not valid shell variable names. 1224 case $ac_envvar in #( 1225 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1227 esac 1228 eval $ac_envvar=\$ac_optarg 1229 export $ac_envvar ;; 1230 1231 *) 1232 # FIXME: should be removed in autoconf 3.0. 1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1237 ;; 1238 1239 esac 1240done 1241 1242if test -n "$ac_prev"; then 1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1244 as_fn_error $? "missing argument to $ac_option" 1245fi 1246 1247if test -n "$ac_unrecognized_opts"; then 1248 case $enable_option_checking in 1249 no) ;; 1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1252 esac 1253fi 1254 1255# Check all directory arguments for consistency. 1256for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1257 datadir sysconfdir sharedstatedir localstatedir includedir \ 1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1259 libdir localedir mandir 1260do 1261 eval ac_val=\$$ac_var 1262 # Remove trailing slashes. 1263 case $ac_val in 1264 */ ) 1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1266 eval $ac_var=\$ac_val;; 1267 esac 1268 # Be sure to have absolute directory names. 1269 case $ac_val in 1270 [\\/$]* | ?:[\\/]* ) continue;; 1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1272 esac 1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1274done 1275 1276# There might be people who depend on the old broken behavior: `$host' 1277# used to hold the argument of --host etc. 1278# FIXME: To remove some day. 1279build=$build_alias 1280host=$host_alias 1281target=$target_alias 1282 1283# FIXME: To remove some day. 1284if test "x$host_alias" != x; then 1285 if test "x$build_alias" = x; then 1286 cross_compiling=maybe 1287 elif test "x$build_alias" != "x$host_alias"; then 1288 cross_compiling=yes 1289 fi 1290fi 1291 1292ac_tool_prefix= 1293test -n "$host_alias" && ac_tool_prefix=$host_alias- 1294 1295test "$silent" = yes && exec 6>/dev/null 1296 1297 1298ac_pwd=`pwd` && test -n "$ac_pwd" && 1299ac_ls_di=`ls -di .` && 1300ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1301 as_fn_error $? "working directory cannot be determined" 1302test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1303 as_fn_error $? "pwd does not report name of working directory" 1304 1305 1306# Find the source files, if location was not specified. 1307if test -z "$srcdir"; then 1308 ac_srcdir_defaulted=yes 1309 # Try the directory containing this script, then the parent directory. 1310 ac_confdir=`$as_dirname -- "$as_myself" || 1311$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1312 X"$as_myself" : 'X\(//\)[^/]' \| \ 1313 X"$as_myself" : 'X\(//\)$' \| \ 1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1315$as_echo X"$as_myself" | 1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1317 s//\1/ 1318 q 1319 } 1320 /^X\(\/\/\)[^/].*/{ 1321 s//\1/ 1322 q 1323 } 1324 /^X\(\/\/\)$/{ 1325 s//\1/ 1326 q 1327 } 1328 /^X\(\/\).*/{ 1329 s//\1/ 1330 q 1331 } 1332 s/.*/./; q'` 1333 srcdir=$ac_confdir 1334 if test ! -r "$srcdir/$ac_unique_file"; then 1335 srcdir=.. 1336 fi 1337else 1338 ac_srcdir_defaulted=no 1339fi 1340if test ! -r "$srcdir/$ac_unique_file"; then 1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1343fi 1344ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1345ac_abs_confdir=`( 1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1347 pwd)` 1348# When building in place, set srcdir=. 1349if test "$ac_abs_confdir" = "$ac_pwd"; then 1350 srcdir=. 1351fi 1352# Remove unnecessary trailing slashes from srcdir. 1353# Double slashes in file names in object file debugging info 1354# mess up M-x gdb in Emacs. 1355case $srcdir in 1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1357esac 1358for ac_var in $ac_precious_vars; do 1359 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1360 eval ac_env_${ac_var}_value=\$${ac_var} 1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1362 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1363done 1364 1365# 1366# Report the --help message. 1367# 1368if test "$ac_init_help" = "long"; then 1369 # Omit some internal or obsolete options to make the list less imposing. 1370 # This message is too long to be a string in the A/UX 3.1 sh. 1371 cat <<_ACEOF 1372\`configure' configures libevent 2.1.5-beta to adapt to many kinds of systems. 1373 1374Usage: $0 [OPTION]... [VAR=VALUE]... 1375 1376To assign environment variables (e.g., CC, CFLAGS...), specify them as 1377VAR=VALUE. See below for descriptions of some of the useful variables. 1378 1379Defaults for the options are specified in brackets. 1380 1381Configuration: 1382 -h, --help display this help and exit 1383 --help=short display options specific to this package 1384 --help=recursive display the short help of all the included packages 1385 -V, --version display version information and exit 1386 -q, --quiet, --silent do not print \`checking ...' messages 1387 --cache-file=FILE cache test results in FILE [disabled] 1388 -C, --config-cache alias for \`--cache-file=config.cache' 1389 -n, --no-create do not create output files 1390 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1391 1392Installation directories: 1393 --prefix=PREFIX install architecture-independent files in PREFIX 1394 [$ac_default_prefix] 1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1396 [PREFIX] 1397 1398By default, \`make install' will install all the files in 1399\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1400an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1401for instance \`--prefix=\$HOME'. 1402 1403For better control, use the options below. 1404 1405Fine tuning of the installation directories: 1406 --bindir=DIR user executables [EPREFIX/bin] 1407 --sbindir=DIR system admin executables [EPREFIX/sbin] 1408 --libexecdir=DIR program executables [EPREFIX/libexec] 1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1412 --libdir=DIR object code libraries [EPREFIX/lib] 1413 --includedir=DIR C header files [PREFIX/include] 1414 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1417 --infodir=DIR info documentation [DATAROOTDIR/info] 1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1419 --mandir=DIR man documentation [DATAROOTDIR/man] 1420 --docdir=DIR documentation root [DATAROOTDIR/doc/libevent] 1421 --htmldir=DIR html documentation [DOCDIR] 1422 --dvidir=DIR dvi documentation [DOCDIR] 1423 --pdfdir=DIR pdf documentation [DOCDIR] 1424 --psdir=DIR ps documentation [DOCDIR] 1425_ACEOF 1426 1427 cat <<\_ACEOF 1428 1429Program names: 1430 --program-prefix=PREFIX prepend PREFIX to installed program names 1431 --program-suffix=SUFFIX append SUFFIX to installed program names 1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1433 1434System types: 1435 --build=BUILD configure for building on BUILD [guessed] 1436 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1437_ACEOF 1438fi 1439 1440if test -n "$ac_init_help"; then 1441 case $ac_init_help in 1442 short | recursive ) echo "Configuration of libevent 2.1.5-beta:";; 1443 esac 1444 cat <<\_ACEOF 1445 1446Optional Features: 1447 --disable-option-checking ignore unrecognized --enable/--with options 1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1450 --enable-silent-rules less verbose build output (undo: "make V=1") 1451 --disable-silent-rules verbose build output (undo: "make V=0") 1452 --enable-dependency-tracking 1453 do not reject slow dependency extractors 1454 --disable-dependency-tracking 1455 speeds up one-time build 1456 --disable-gcc-warnings disable verbose warnings with GCC 1457 --enable-gcc-hardening enable compiler security checks 1458 --disable-thread-support 1459 disable support for threading 1460 --disable-malloc-replacement 1461 disable support for replacing the memory mgt 1462 functions 1463 --disable-openssl disable support for openssl encryption 1464 --disable-debug-mode disable support for running in debug mode 1465 --disable-libevent-install, disable installation of libevent 1466 1467 --disable-libevent-regress, skip regress in make check 1468 1469 --disable-samples, skip building of sample programs 1470 1471 --enable-function-sections, make static library allow smaller binaries with --gc-sections 1472 1473 --enable-verbose-debug, verbose debug logging 1474 1475 --enable-shared[=PKGS] build shared libraries [default=yes] 1476 --enable-static[=PKGS] build static libraries [default=yes] 1477 --enable-fast-install[=PKGS] 1478 optimize for fast installation [default=yes] 1479 --disable-libtool-lock avoid locking (might break parallel builds) 1480 --disable-largefile omit support for large files 1481 1482Optional Packages: 1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1485 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1486 both] 1487 --with-aix-soname=aix|svr4|both 1488 shared library versioning (aka "SONAME") variant to 1489 provide on AIX, [default=aix]. 1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1491 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1492 compiler's sysroot if not specified). 1493 1494Some influential environment variables: 1495 CC C compiler command 1496 CFLAGS C compiler flags 1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1498 nonstandard directory <lib dir> 1499 LIBS libraries to pass to the linker, e.g. -l<library> 1500 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1501 you have headers in a nonstandard directory <include dir> 1502 CPP C preprocessor 1503 LT_SYS_LIBRARY_PATH 1504 User-defined run-time library search path. 1505 1506Use these variables to override the choices made by `configure' or to help 1507it to find libraries and programs with nonstandard names/locations. 1508 1509Report bugs to the package provider. 1510_ACEOF 1511ac_status=$? 1512fi 1513 1514if test "$ac_init_help" = "recursive"; then 1515 # If there are subdirs, report their specific --help. 1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1517 test -d "$ac_dir" || 1518 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1519 continue 1520 ac_builddir=. 1521 1522case "$ac_dir" in 1523.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1524*) 1525 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1526 # A ".." for each directory in $ac_dir_suffix. 1527 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1528 case $ac_top_builddir_sub in 1529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1531 esac ;; 1532esac 1533ac_abs_top_builddir=$ac_pwd 1534ac_abs_builddir=$ac_pwd$ac_dir_suffix 1535# for backward compatibility: 1536ac_top_builddir=$ac_top_build_prefix 1537 1538case $srcdir in 1539 .) # We are building in place. 1540 ac_srcdir=. 1541 ac_top_srcdir=$ac_top_builddir_sub 1542 ac_abs_top_srcdir=$ac_pwd ;; 1543 [\\/]* | ?:[\\/]* ) # Absolute name. 1544 ac_srcdir=$srcdir$ac_dir_suffix; 1545 ac_top_srcdir=$srcdir 1546 ac_abs_top_srcdir=$srcdir ;; 1547 *) # Relative name. 1548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1549 ac_top_srcdir=$ac_top_build_prefix$srcdir 1550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1551esac 1552ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1553 1554 cd "$ac_dir" || { ac_status=$?; continue; } 1555 # Check for guested configure. 1556 if test -f "$ac_srcdir/configure.gnu"; then 1557 echo && 1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1559 elif test -f "$ac_srcdir/configure"; then 1560 echo && 1561 $SHELL "$ac_srcdir/configure" --help=recursive 1562 else 1563 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1564 fi || ac_status=$? 1565 cd "$ac_pwd" || { ac_status=$?; break; } 1566 done 1567fi 1568 1569test -n "$ac_init_help" && exit $ac_status 1570if $ac_init_version; then 1571 cat <<\_ACEOF 1572libevent configure 2.1.5-beta 1573generated by GNU Autoconf 2.69 1574 1575Copyright (C) 2012 Free Software Foundation, Inc. 1576This configure script is free software; the Free Software Foundation 1577gives unlimited permission to copy, distribute and modify it. 1578_ACEOF 1579 exit 1580fi 1581 1582## ------------------------ ## 1583## Autoconf initialization. ## 1584## ------------------------ ## 1585 1586# ac_fn_c_try_compile LINENO 1587# -------------------------- 1588# Try to compile conftest.$ac_ext, and return whether this succeeded. 1589ac_fn_c_try_compile () 1590{ 1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1592 rm -f conftest.$ac_objext 1593 if { { ac_try="$ac_compile" 1594case "(($ac_try" in 1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1596 *) ac_try_echo=$ac_try;; 1597esac 1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1599$as_echo "$ac_try_echo"; } >&5 1600 (eval "$ac_compile") 2>conftest.err 1601 ac_status=$? 1602 if test -s conftest.err; then 1603 grep -v '^ *+' conftest.err >conftest.er1 1604 cat conftest.er1 >&5 1605 mv -f conftest.er1 conftest.err 1606 fi 1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1608 test $ac_status = 0; } && { 1609 test -z "$ac_c_werror_flag" || 1610 test ! -s conftest.err 1611 } && test -s conftest.$ac_objext; then : 1612 ac_retval=0 1613else 1614 $as_echo "$as_me: failed program was:" >&5 1615sed 's/^/| /' conftest.$ac_ext >&5 1616 1617 ac_retval=1 1618fi 1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1620 as_fn_set_status $ac_retval 1621 1622} # ac_fn_c_try_compile 1623 1624# ac_fn_c_try_cpp LINENO 1625# ---------------------- 1626# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1627ac_fn_c_try_cpp () 1628{ 1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1630 if { { ac_try="$ac_cpp conftest.$ac_ext" 1631case "(($ac_try" in 1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1633 *) ac_try_echo=$ac_try;; 1634esac 1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1636$as_echo "$ac_try_echo"; } >&5 1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1638 ac_status=$? 1639 if test -s conftest.err; then 1640 grep -v '^ *+' conftest.err >conftest.er1 1641 cat conftest.er1 >&5 1642 mv -f conftest.er1 conftest.err 1643 fi 1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1645 test $ac_status = 0; } > conftest.i && { 1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1647 test ! -s conftest.err 1648 }; then : 1649 ac_retval=0 1650else 1651 $as_echo "$as_me: failed program was:" >&5 1652sed 's/^/| /' conftest.$ac_ext >&5 1653 1654 ac_retval=1 1655fi 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 as_fn_set_status $ac_retval 1658 1659} # ac_fn_c_try_cpp 1660 1661# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1662# ------------------------------------------------------- 1663# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1664# the include files in INCLUDES and setting the cache variable VAR 1665# accordingly. 1666ac_fn_c_check_header_mongrel () 1667{ 1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1669 if eval \${$3+:} false; then : 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1671$as_echo_n "checking for $2... " >&6; } 1672if eval \${$3+:} false; then : 1673 $as_echo_n "(cached) " >&6 1674fi 1675eval ac_res=\$$3 1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1677$as_echo "$ac_res" >&6; } 1678else 1679 # Is the header compilable? 1680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1681$as_echo_n "checking $2 usability... " >&6; } 1682cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1683/* end confdefs.h. */ 1684$4 1685#include <$2> 1686_ACEOF 1687if ac_fn_c_try_compile "$LINENO"; then : 1688 ac_header_compiler=yes 1689else 1690 ac_header_compiler=no 1691fi 1692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1694$as_echo "$ac_header_compiler" >&6; } 1695 1696# Is the header present? 1697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1698$as_echo_n "checking $2 presence... " >&6; } 1699cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1700/* end confdefs.h. */ 1701#include <$2> 1702_ACEOF 1703if ac_fn_c_try_cpp "$LINENO"; then : 1704 ac_header_preproc=yes 1705else 1706 ac_header_preproc=no 1707fi 1708rm -f conftest.err conftest.i conftest.$ac_ext 1709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1710$as_echo "$ac_header_preproc" >&6; } 1711 1712# So? What about this header? 1713case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1714 yes:no: ) 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1716$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1718$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1719 ;; 1720 no:yes:* ) 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1722$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1724$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1726$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1728$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1730$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1731 ;; 1732esac 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1734$as_echo_n "checking for $2... " >&6; } 1735if eval \${$3+:} false; then : 1736 $as_echo_n "(cached) " >&6 1737else 1738 eval "$3=\$ac_header_compiler" 1739fi 1740eval ac_res=\$$3 1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1742$as_echo "$ac_res" >&6; } 1743fi 1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1745 1746} # ac_fn_c_check_header_mongrel 1747 1748# ac_fn_c_try_run LINENO 1749# ---------------------- 1750# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1751# that executables *can* be run. 1752ac_fn_c_try_run () 1753{ 1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1755 if { { ac_try="$ac_link" 1756case "(($ac_try" in 1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1758 *) ac_try_echo=$ac_try;; 1759esac 1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1761$as_echo "$ac_try_echo"; } >&5 1762 (eval "$ac_link") 2>&5 1763 ac_status=$? 1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1765 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1766 { { case "(($ac_try" in 1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1768 *) ac_try_echo=$ac_try;; 1769esac 1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1771$as_echo "$ac_try_echo"; } >&5 1772 (eval "$ac_try") 2>&5 1773 ac_status=$? 1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1775 test $ac_status = 0; }; }; then : 1776 ac_retval=0 1777else 1778 $as_echo "$as_me: program exited with status $ac_status" >&5 1779 $as_echo "$as_me: failed program was:" >&5 1780sed 's/^/| /' conftest.$ac_ext >&5 1781 1782 ac_retval=$ac_status 1783fi 1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 as_fn_set_status $ac_retval 1787 1788} # ac_fn_c_try_run 1789 1790# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1791# ------------------------------------------------------- 1792# Tests whether HEADER exists and can be compiled using the include files in 1793# INCLUDES, setting the cache variable VAR accordingly. 1794ac_fn_c_check_header_compile () 1795{ 1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1798$as_echo_n "checking for $2... " >&6; } 1799if eval \${$3+:} false; then : 1800 $as_echo_n "(cached) " >&6 1801else 1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1803/* end confdefs.h. */ 1804$4 1805#include <$2> 1806_ACEOF 1807if ac_fn_c_try_compile "$LINENO"; then : 1808 eval "$3=yes" 1809else 1810 eval "$3=no" 1811fi 1812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1813fi 1814eval ac_res=\$$3 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1816$as_echo "$ac_res" >&6; } 1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1818 1819} # ac_fn_c_check_header_compile 1820 1821# ac_fn_c_try_link LINENO 1822# ----------------------- 1823# Try to link conftest.$ac_ext, and return whether this succeeded. 1824ac_fn_c_try_link () 1825{ 1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1827 rm -f conftest.$ac_objext conftest$ac_exeext 1828 if { { ac_try="$ac_link" 1829case "(($ac_try" in 1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1831 *) ac_try_echo=$ac_try;; 1832esac 1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1834$as_echo "$ac_try_echo"; } >&5 1835 (eval "$ac_link") 2>conftest.err 1836 ac_status=$? 1837 if test -s conftest.err; then 1838 grep -v '^ *+' conftest.err >conftest.er1 1839 cat conftest.er1 >&5 1840 mv -f conftest.er1 conftest.err 1841 fi 1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1843 test $ac_status = 0; } && { 1844 test -z "$ac_c_werror_flag" || 1845 test ! -s conftest.err 1846 } && test -s conftest$ac_exeext && { 1847 test "$cross_compiling" = yes || 1848 test -x conftest$ac_exeext 1849 }; then : 1850 ac_retval=0 1851else 1852 $as_echo "$as_me: failed program was:" >&5 1853sed 's/^/| /' conftest.$ac_ext >&5 1854 1855 ac_retval=1 1856fi 1857 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1858 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1859 # interfere with the next link command; also delete a directory that is 1860 # left behind by Apple's compiler. We do this before executing the actions. 1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1863 as_fn_set_status $ac_retval 1864 1865} # ac_fn_c_try_link 1866 1867# ac_fn_c_check_func LINENO FUNC VAR 1868# ---------------------------------- 1869# Tests whether FUNC exists, setting the cache variable VAR accordingly 1870ac_fn_c_check_func () 1871{ 1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1874$as_echo_n "checking for $2... " >&6; } 1875if eval \${$3+:} false; then : 1876 $as_echo_n "(cached) " >&6 1877else 1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1879/* end confdefs.h. */ 1880/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1881 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1882#define $2 innocuous_$2 1883 1884/* System header to define __stub macros and hopefully few prototypes, 1885 which can conflict with char $2 (); below. 1886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1887 <limits.h> exists even on freestanding compilers. */ 1888 1889#ifdef __STDC__ 1890# include <limits.h> 1891#else 1892# include <assert.h> 1893#endif 1894 1895#undef $2 1896 1897/* Override any GCC internal prototype to avoid an error. 1898 Use char because int might match the return type of a GCC 1899 builtin and then its argument prototype would still apply. */ 1900#ifdef __cplusplus 1901extern "C" 1902#endif 1903char $2 (); 1904/* The GNU C library defines this for functions which it implements 1905 to always fail with ENOSYS. Some functions are actually named 1906 something starting with __ and the normal name is an alias. */ 1907#if defined __stub_$2 || defined __stub___$2 1908choke me 1909#endif 1910 1911int 1912main () 1913{ 1914return $2 (); 1915 ; 1916 return 0; 1917} 1918_ACEOF 1919if ac_fn_c_try_link "$LINENO"; then : 1920 eval "$3=yes" 1921else 1922 eval "$3=no" 1923fi 1924rm -f core conftest.err conftest.$ac_objext \ 1925 conftest$ac_exeext conftest.$ac_ext 1926fi 1927eval ac_res=\$$3 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1929$as_echo "$ac_res" >&6; } 1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1931 1932} # ac_fn_c_check_func 1933 1934# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1935# --------------------------------------------- 1936# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1937# accordingly. 1938ac_fn_c_check_decl () 1939{ 1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1941 as_decl_name=`echo $2|sed 's/ *(.*//'` 1942 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1944$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1945if eval \${$3+:} false; then : 1946 $as_echo_n "(cached) " >&6 1947else 1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1949/* end confdefs.h. */ 1950$4 1951int 1952main () 1953{ 1954#ifndef $as_decl_name 1955#ifdef __cplusplus 1956 (void) $as_decl_use; 1957#else 1958 (void) $as_decl_name; 1959#endif 1960#endif 1961 1962 ; 1963 return 0; 1964} 1965_ACEOF 1966if ac_fn_c_try_compile "$LINENO"; then : 1967 eval "$3=yes" 1968else 1969 eval "$3=no" 1970fi 1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1972fi 1973eval ac_res=\$$3 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1975$as_echo "$ac_res" >&6; } 1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1977 1978} # ac_fn_c_check_decl 1979 1980# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1981# ------------------------------------------- 1982# Tests whether TYPE exists after having included INCLUDES, setting cache 1983# variable VAR accordingly. 1984ac_fn_c_check_type () 1985{ 1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1988$as_echo_n "checking for $2... " >&6; } 1989if eval \${$3+:} false; then : 1990 $as_echo_n "(cached) " >&6 1991else 1992 eval "$3=no" 1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1994/* end confdefs.h. */ 1995$4 1996int 1997main () 1998{ 1999if (sizeof ($2)) 2000 return 0; 2001 ; 2002 return 0; 2003} 2004_ACEOF 2005if ac_fn_c_try_compile "$LINENO"; then : 2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2007/* end confdefs.h. */ 2008$4 2009int 2010main () 2011{ 2012if (sizeof (($2))) 2013 return 0; 2014 ; 2015 return 0; 2016} 2017_ACEOF 2018if ac_fn_c_try_compile "$LINENO"; then : 2019 2020else 2021 eval "$3=yes" 2022fi 2023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2024fi 2025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2026fi 2027eval ac_res=\$$3 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2029$as_echo "$ac_res" >&6; } 2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2031 2032} # ac_fn_c_check_type 2033 2034# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2035# -------------------------------------------- 2036# Tries to find the compile-time value of EXPR in a program that includes 2037# INCLUDES, setting VAR accordingly. Returns whether the value could be 2038# computed 2039ac_fn_c_compute_int () 2040{ 2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2042 if test "$cross_compiling" = yes; then 2043 # Depending upon the size, compute the lo and hi bounds. 2044cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2045/* end confdefs.h. */ 2046$4 2047int 2048main () 2049{ 2050static int test_array [1 - 2 * !(($2) >= 0)]; 2051test_array [0] = 0; 2052return test_array [0]; 2053 2054 ; 2055 return 0; 2056} 2057_ACEOF 2058if ac_fn_c_try_compile "$LINENO"; then : 2059 ac_lo=0 ac_mid=0 2060 while :; do 2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2062/* end confdefs.h. */ 2063$4 2064int 2065main () 2066{ 2067static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2068test_array [0] = 0; 2069return test_array [0]; 2070 2071 ; 2072 return 0; 2073} 2074_ACEOF 2075if ac_fn_c_try_compile "$LINENO"; then : 2076 ac_hi=$ac_mid; break 2077else 2078 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2079 if test $ac_lo -le $ac_mid; then 2080 ac_lo= ac_hi= 2081 break 2082 fi 2083 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2084fi 2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2086 done 2087else 2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2089/* end confdefs.h. */ 2090$4 2091int 2092main () 2093{ 2094static int test_array [1 - 2 * !(($2) < 0)]; 2095test_array [0] = 0; 2096return test_array [0]; 2097 2098 ; 2099 return 0; 2100} 2101_ACEOF 2102if ac_fn_c_try_compile "$LINENO"; then : 2103 ac_hi=-1 ac_mid=-1 2104 while :; do 2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2106/* end confdefs.h. */ 2107$4 2108int 2109main () 2110{ 2111static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2112test_array [0] = 0; 2113return test_array [0]; 2114 2115 ; 2116 return 0; 2117} 2118_ACEOF 2119if ac_fn_c_try_compile "$LINENO"; then : 2120 ac_lo=$ac_mid; break 2121else 2122 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2123 if test $ac_mid -le $ac_hi; then 2124 ac_lo= ac_hi= 2125 break 2126 fi 2127 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2128fi 2129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2130 done 2131else 2132 ac_lo= ac_hi= 2133fi 2134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2135fi 2136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2137# Binary search between lo and hi bounds. 2138while test "x$ac_lo" != "x$ac_hi"; do 2139 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2141/* end confdefs.h. */ 2142$4 2143int 2144main () 2145{ 2146static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2147test_array [0] = 0; 2148return test_array [0]; 2149 2150 ; 2151 return 0; 2152} 2153_ACEOF 2154if ac_fn_c_try_compile "$LINENO"; then : 2155 ac_hi=$ac_mid 2156else 2157 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2158fi 2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2160done 2161case $ac_lo in #(( 2162?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2163'') ac_retval=1 ;; 2164esac 2165 else 2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2167/* end confdefs.h. */ 2168$4 2169static long int longval () { return $2; } 2170static unsigned long int ulongval () { return $2; } 2171#include <stdio.h> 2172#include <stdlib.h> 2173int 2174main () 2175{ 2176 2177 FILE *f = fopen ("conftest.val", "w"); 2178 if (! f) 2179 return 1; 2180 if (($2) < 0) 2181 { 2182 long int i = longval (); 2183 if (i != ($2)) 2184 return 1; 2185 fprintf (f, "%ld", i); 2186 } 2187 else 2188 { 2189 unsigned long int i = ulongval (); 2190 if (i != ($2)) 2191 return 1; 2192 fprintf (f, "%lu", i); 2193 } 2194 /* Do not output a trailing newline, as this causes \r\n confusion 2195 on some platforms. */ 2196 return ferror (f) || fclose (f) != 0; 2197 2198 ; 2199 return 0; 2200} 2201_ACEOF 2202if ac_fn_c_try_run "$LINENO"; then : 2203 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2204else 2205 ac_retval=1 2206fi 2207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2208 conftest.$ac_objext conftest.beam conftest.$ac_ext 2209rm -f conftest.val 2210 2211 fi 2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2213 as_fn_set_status $ac_retval 2214 2215} # ac_fn_c_compute_int 2216 2217# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2218# ---------------------------------------------------- 2219# Tries to find if the field MEMBER exists in type AGGR, after including 2220# INCLUDES, setting cache variable VAR accordingly. 2221ac_fn_c_check_member () 2222{ 2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2225$as_echo_n "checking for $2.$3... " >&6; } 2226if eval \${$4+:} false; then : 2227 $as_echo_n "(cached) " >&6 2228else 2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2230/* end confdefs.h. */ 2231$5 2232int 2233main () 2234{ 2235static $2 ac_aggr; 2236if (ac_aggr.$3) 2237return 0; 2238 ; 2239 return 0; 2240} 2241_ACEOF 2242if ac_fn_c_try_compile "$LINENO"; then : 2243 eval "$4=yes" 2244else 2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2246/* end confdefs.h. */ 2247$5 2248int 2249main () 2250{ 2251static $2 ac_aggr; 2252if (sizeof ac_aggr.$3) 2253return 0; 2254 ; 2255 return 0; 2256} 2257_ACEOF 2258if ac_fn_c_try_compile "$LINENO"; then : 2259 eval "$4=yes" 2260else 2261 eval "$4=no" 2262fi 2263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2264fi 2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2266fi 2267eval ac_res=\$$4 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2269$as_echo "$ac_res" >&6; } 2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2271 2272} # ac_fn_c_check_member 2273cat >config.log <<_ACEOF 2274This file contains any messages produced by compilers while 2275running configure, to aid debugging if configure makes a mistake. 2276 2277It was created by libevent $as_me 2.1.5-beta, which was 2278generated by GNU Autoconf 2.69. Invocation command line was 2279 2280 $ $0 $@ 2281 2282_ACEOF 2283exec 5>>config.log 2284{ 2285cat <<_ASUNAME 2286## --------- ## 2287## Platform. ## 2288## --------- ## 2289 2290hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2291uname -m = `(uname -m) 2>/dev/null || echo unknown` 2292uname -r = `(uname -r) 2>/dev/null || echo unknown` 2293uname -s = `(uname -s) 2>/dev/null || echo unknown` 2294uname -v = `(uname -v) 2>/dev/null || echo unknown` 2295 2296/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2297/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2298 2299/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2300/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2301/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2302/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2303/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2304/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2305/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2306 2307_ASUNAME 2308 2309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2310for as_dir in $PATH 2311do 2312 IFS=$as_save_IFS 2313 test -z "$as_dir" && as_dir=. 2314 $as_echo "PATH: $as_dir" 2315 done 2316IFS=$as_save_IFS 2317 2318} >&5 2319 2320cat >&5 <<_ACEOF 2321 2322 2323## ----------- ## 2324## Core tests. ## 2325## ----------- ## 2326 2327_ACEOF 2328 2329 2330# Keep a trace of the command line. 2331# Strip out --no-create and --no-recursion so they do not pile up. 2332# Strip out --silent because we don't want to record it for future runs. 2333# Also quote any args containing shell meta-characters. 2334# Make two passes to allow for proper duplicate-argument suppression. 2335ac_configure_args= 2336ac_configure_args0= 2337ac_configure_args1= 2338ac_must_keep_next=false 2339for ac_pass in 1 2 2340do 2341 for ac_arg 2342 do 2343 case $ac_arg in 2344 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2346 | -silent | --silent | --silen | --sile | --sil) 2347 continue ;; 2348 *\'*) 2349 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2350 esac 2351 case $ac_pass in 2352 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2353 2) 2354 as_fn_append ac_configure_args1 " '$ac_arg'" 2355 if test $ac_must_keep_next = true; then 2356 ac_must_keep_next=false # Got value, back to normal. 2357 else 2358 case $ac_arg in 2359 *=* | --config-cache | -C | -disable-* | --disable-* \ 2360 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2361 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2362 | -with-* | --with-* | -without-* | --without-* | --x) 2363 case "$ac_configure_args0 " in 2364 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2365 esac 2366 ;; 2367 -* ) ac_must_keep_next=true ;; 2368 esac 2369 fi 2370 as_fn_append ac_configure_args " '$ac_arg'" 2371 ;; 2372 esac 2373 done 2374done 2375{ ac_configure_args0=; unset ac_configure_args0;} 2376{ ac_configure_args1=; unset ac_configure_args1;} 2377 2378# When interrupted or exit'd, cleanup temporary files, and complete 2379# config.log. We remove comments because anyway the quotes in there 2380# would cause problems or look ugly. 2381# WARNING: Use '\'' to represent an apostrophe within the trap. 2382# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2383trap 'exit_status=$? 2384 # Save into config.log some information that might help in debugging. 2385 { 2386 echo 2387 2388 $as_echo "## ---------------- ## 2389## Cache variables. ## 2390## ---------------- ##" 2391 echo 2392 # The following way of writing the cache mishandles newlines in values, 2393( 2394 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2395 eval ac_val=\$$ac_var 2396 case $ac_val in #( 2397 *${as_nl}*) 2398 case $ac_var in #( 2399 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2400$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2401 esac 2402 case $ac_var in #( 2403 _ | IFS | as_nl) ;; #( 2404 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2405 *) { eval $ac_var=; unset $ac_var;} ;; 2406 esac ;; 2407 esac 2408 done 2409 (set) 2>&1 | 2410 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2411 *${as_nl}ac_space=\ *) 2412 sed -n \ 2413 "s/'\''/'\''\\\\'\'''\''/g; 2414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2415 ;; #( 2416 *) 2417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2418 ;; 2419 esac | 2420 sort 2421) 2422 echo 2423 2424 $as_echo "## ----------------- ## 2425## Output variables. ## 2426## ----------------- ##" 2427 echo 2428 for ac_var in $ac_subst_vars 2429 do 2430 eval ac_val=\$$ac_var 2431 case $ac_val in 2432 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2433 esac 2434 $as_echo "$ac_var='\''$ac_val'\''" 2435 done | sort 2436 echo 2437 2438 if test -n "$ac_subst_files"; then 2439 $as_echo "## ------------------- ## 2440## File substitutions. ## 2441## ------------------- ##" 2442 echo 2443 for ac_var in $ac_subst_files 2444 do 2445 eval ac_val=\$$ac_var 2446 case $ac_val in 2447 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2448 esac 2449 $as_echo "$ac_var='\''$ac_val'\''" 2450 done | sort 2451 echo 2452 fi 2453 2454 if test -s confdefs.h; then 2455 $as_echo "## ----------- ## 2456## confdefs.h. ## 2457## ----------- ##" 2458 echo 2459 cat confdefs.h 2460 echo 2461 fi 2462 test "$ac_signal" != 0 && 2463 $as_echo "$as_me: caught signal $ac_signal" 2464 $as_echo "$as_me: exit $exit_status" 2465 } >&5 2466 rm -f core *.core core.conftest.* && 2467 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2468 exit $exit_status 2469' 0 2470for ac_signal in 1 2 13 15; do 2471 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2472done 2473ac_signal=0 2474 2475# confdefs.h avoids OS command line length limits that DEFS can exceed. 2476rm -f -r conftest* confdefs.h 2477 2478$as_echo "/* confdefs.h */" > confdefs.h 2479 2480# Predefined preprocessor variables. 2481 2482cat >>confdefs.h <<_ACEOF 2483#define PACKAGE_NAME "$PACKAGE_NAME" 2484_ACEOF 2485 2486cat >>confdefs.h <<_ACEOF 2487#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2488_ACEOF 2489 2490cat >>confdefs.h <<_ACEOF 2491#define PACKAGE_VERSION "$PACKAGE_VERSION" 2492_ACEOF 2493 2494cat >>confdefs.h <<_ACEOF 2495#define PACKAGE_STRING "$PACKAGE_STRING" 2496_ACEOF 2497 2498cat >>confdefs.h <<_ACEOF 2499#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2500_ACEOF 2501 2502cat >>confdefs.h <<_ACEOF 2503#define PACKAGE_URL "$PACKAGE_URL" 2504_ACEOF 2505 2506 2507# Let the site file select an alternate cache file if it wants to. 2508# Prefer an explicitly selected file to automatically selected ones. 2509ac_site_file1=NONE 2510ac_site_file2=NONE 2511if test -n "$CONFIG_SITE"; then 2512 # We do not want a PATH search for config.site. 2513 case $CONFIG_SITE in #(( 2514 -*) ac_site_file1=./$CONFIG_SITE;; 2515 */*) ac_site_file1=$CONFIG_SITE;; 2516 *) ac_site_file1=./$CONFIG_SITE;; 2517 esac 2518elif test "x$prefix" != xNONE; then 2519 ac_site_file1=$prefix/share/config.site 2520 ac_site_file2=$prefix/etc/config.site 2521else 2522 ac_site_file1=$ac_default_prefix/share/config.site 2523 ac_site_file2=$ac_default_prefix/etc/config.site 2524fi 2525for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2526do 2527 test "x$ac_site_file" = xNONE && continue 2528 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2530$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2531 sed 's/^/| /' "$ac_site_file" >&5 2532 . "$ac_site_file" \ 2533 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2535as_fn_error $? "failed to load site script $ac_site_file 2536See \`config.log' for more details" "$LINENO" 5; } 2537 fi 2538done 2539 2540if test -r "$cache_file"; then 2541 # Some versions of bash will fail to source /dev/null (special files 2542 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2543 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2545$as_echo "$as_me: loading cache $cache_file" >&6;} 2546 case $cache_file in 2547 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2548 *) . "./$cache_file";; 2549 esac 2550 fi 2551else 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2553$as_echo "$as_me: creating cache $cache_file" >&6;} 2554 >$cache_file 2555fi 2556 2557# Check that the precious variables saved in the cache have kept the same 2558# value. 2559ac_cache_corrupted=false 2560for ac_var in $ac_precious_vars; do 2561 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2562 eval ac_new_set=\$ac_env_${ac_var}_set 2563 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2564 eval ac_new_val=\$ac_env_${ac_var}_value 2565 case $ac_old_set,$ac_new_set in 2566 set,) 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2568$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2569 ac_cache_corrupted=: ;; 2570 ,set) 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2572$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2573 ac_cache_corrupted=: ;; 2574 ,);; 2575 *) 2576 if test "x$ac_old_val" != "x$ac_new_val"; then 2577 # differences in whitespace do not lead to failure. 2578 ac_old_val_w=`echo x $ac_old_val` 2579 ac_new_val_w=`echo x $ac_new_val` 2580 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2582$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2583 ac_cache_corrupted=: 2584 else 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2586$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2587 eval $ac_var=\$ac_old_val 2588 fi 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2590$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2592$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2593 fi;; 2594 esac 2595 # Pass precious variables to config.status. 2596 if test "$ac_new_set" = set; then 2597 case $ac_new_val in 2598 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2599 *) ac_arg=$ac_var=$ac_new_val ;; 2600 esac 2601 case " $ac_configure_args " in 2602 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2603 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2604 esac 2605 fi 2606done 2607if $ac_cache_corrupted; then 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2611$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2612 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2613fi 2614## -------------------- ## 2615## Main body of script. ## 2616## -------------------- ## 2617 2618ac_ext=c 2619ac_cpp='$CPP $CPPFLAGS' 2620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2622ac_compiler_gnu=$ac_cv_c_compiler_gnu 2623 2624 2625 2626 2627 2628 2629ac_aux_dir= 2630for ac_dir in build-aux "$srcdir"/build-aux; do 2631 if test -f "$ac_dir/install-sh"; then 2632 ac_aux_dir=$ac_dir 2633 ac_install_sh="$ac_aux_dir/install-sh -c" 2634 break 2635 elif test -f "$ac_dir/install.sh"; then 2636 ac_aux_dir=$ac_dir 2637 ac_install_sh="$ac_aux_dir/install.sh -c" 2638 break 2639 elif test -f "$ac_dir/shtool"; then 2640 ac_aux_dir=$ac_dir 2641 ac_install_sh="$ac_aux_dir/shtool install -c" 2642 break 2643 fi 2644done 2645if test -z "$ac_aux_dir"; then 2646 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2647fi 2648 2649# These three variables are undocumented and unsupported, 2650# and are intended to be withdrawn in a future Autoconf release. 2651# They can cause serious problems if a builder's source tree is in a directory 2652# whose full name contains unusual characters. 2653ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2654ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2655ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2656 2657 2658am__api_version='1.15' 2659 2660# Find a good install program. We prefer a C program (faster), 2661# so one script is as good as another. But avoid the broken or 2662# incompatible versions: 2663# SysV /etc/install, /usr/sbin/install 2664# SunOS /usr/etc/install 2665# IRIX /sbin/install 2666# AIX /bin/install 2667# AmigaOS /C/install, which installs bootblocks on floppy discs 2668# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2669# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2670# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2671# OS/2's system install, which has a completely different semantic 2672# ./install, which can be erroneously created by make from ./install.sh. 2673# Reject install programs that cannot install multiple files. 2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2675$as_echo_n "checking for a BSD-compatible install... " >&6; } 2676if test -z "$INSTALL"; then 2677if ${ac_cv_path_install+:} false; then : 2678 $as_echo_n "(cached) " >&6 2679else 2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2681for as_dir in $PATH 2682do 2683 IFS=$as_save_IFS 2684 test -z "$as_dir" && as_dir=. 2685 # Account for people who put trailing slashes in PATH elements. 2686case $as_dir/ in #(( 2687 ./ | .// | /[cC]/* | \ 2688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2689 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2690 /usr/ucb/* ) ;; 2691 *) 2692 # OSF1 and SCO ODT 3.0 have their own names for install. 2693 # Don't use installbsd from OSF since it installs stuff as root 2694 # by default. 2695 for ac_prog in ginstall scoinst install; do 2696 for ac_exec_ext in '' $ac_executable_extensions; do 2697 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2698 if test $ac_prog = install && 2699 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2700 # AIX install. It has an incompatible calling convention. 2701 : 2702 elif test $ac_prog = install && 2703 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2704 # program-specific install script used by HP pwplus--don't use. 2705 : 2706 else 2707 rm -rf conftest.one conftest.two conftest.dir 2708 echo one > conftest.one 2709 echo two > conftest.two 2710 mkdir conftest.dir 2711 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2712 test -s conftest.one && test -s conftest.two && 2713 test -s conftest.dir/conftest.one && 2714 test -s conftest.dir/conftest.two 2715 then 2716 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2717 break 3 2718 fi 2719 fi 2720 fi 2721 done 2722 done 2723 ;; 2724esac 2725 2726 done 2727IFS=$as_save_IFS 2728 2729rm -rf conftest.one conftest.two conftest.dir 2730 2731fi 2732 if test "${ac_cv_path_install+set}" = set; then 2733 INSTALL=$ac_cv_path_install 2734 else 2735 # As a last resort, use the slow shell script. Don't cache a 2736 # value for INSTALL within a source directory, because that will 2737 # break other packages using the cache if that directory is 2738 # removed, or if the value is a relative name. 2739 INSTALL=$ac_install_sh 2740 fi 2741fi 2742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2743$as_echo "$INSTALL" >&6; } 2744 2745# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2746# It thinks the first close brace ends the variable substitution. 2747test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2748 2749test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2750 2751test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2752 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2754$as_echo_n "checking whether build environment is sane... " >&6; } 2755# Reject unsafe characters in $srcdir or the absolute working directory 2756# name. Accept space and tab only in the latter. 2757am_lf=' 2758' 2759case `pwd` in 2760 *[\\\"\#\$\&\'\`$am_lf]*) 2761 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2762esac 2763case $srcdir in 2764 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2765 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2766esac 2767 2768# Do 'set' in a subshell so we don't clobber the current shell's 2769# arguments. Must try -L first in case configure is actually a 2770# symlink; some systems play weird games with the mod time of symlinks 2771# (eg FreeBSD returns the mod time of the symlink's containing 2772# directory). 2773if ( 2774 am_has_slept=no 2775 for am_try in 1 2; do 2776 echo "timestamp, slept: $am_has_slept" > conftest.file 2777 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2778 if test "$*" = "X"; then 2779 # -L didn't work. 2780 set X `ls -t "$srcdir/configure" conftest.file` 2781 fi 2782 if test "$*" != "X $srcdir/configure conftest.file" \ 2783 && test "$*" != "X conftest.file $srcdir/configure"; then 2784 2785 # If neither matched, then we have a broken ls. This can happen 2786 # if, for instance, CONFIG_SHELL is bash and it inherits a 2787 # broken ls alias from the environment. This has actually 2788 # happened. Such a system could not be considered "sane". 2789 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2790 alias in your environment" "$LINENO" 5 2791 fi 2792 if test "$2" = conftest.file || test $am_try -eq 2; then 2793 break 2794 fi 2795 # Just in case. 2796 sleep 1 2797 am_has_slept=yes 2798 done 2799 test "$2" = conftest.file 2800 ) 2801then 2802 # Ok. 2803 : 2804else 2805 as_fn_error $? "newly created file is older than distributed files! 2806Check your system clock" "$LINENO" 5 2807fi 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2809$as_echo "yes" >&6; } 2810# If we didn't sleep, we still need to ensure time stamps of config.status and 2811# generated files are strictly newer. 2812am_sleep_pid= 2813if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2814 ( sleep 1 ) & 2815 am_sleep_pid=$! 2816fi 2817 2818rm -f conftest.file 2819 2820test "$program_prefix" != NONE && 2821 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2822# Use a double $ so make ignores it. 2823test "$program_suffix" != NONE && 2824 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2825# Double any \ or $. 2826# By default was `s,x,x', remove it if useless. 2827ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2828program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2829 2830# Expand $ac_aux_dir to an absolute path. 2831am_aux_dir=`cd "$ac_aux_dir" && pwd` 2832 2833if test x"${MISSING+set}" != xset; then 2834 case $am_aux_dir in 2835 *\ * | *\ *) 2836 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2837 *) 2838 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2839 esac 2840fi 2841# Use eval to expand $SHELL 2842if eval "$MISSING --is-lightweight"; then 2843 am_missing_run="$MISSING " 2844else 2845 am_missing_run= 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2847$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2848fi 2849 2850if test x"${install_sh+set}" != xset; then 2851 case $am_aux_dir in 2852 *\ * | *\ *) 2853 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2854 *) 2855 install_sh="\${SHELL} $am_aux_dir/install-sh" 2856 esac 2857fi 2858 2859# Installed binaries are usually stripped using 'strip' when the user 2860# run "make install-strip". However 'strip' might not be the right 2861# tool to use in cross-compilation environments, therefore Automake 2862# will honor the 'STRIP' environment variable to overrule this program. 2863if test "$cross_compiling" != no; then 2864 if test -n "$ac_tool_prefix"; then 2865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2866set dummy ${ac_tool_prefix}strip; ac_word=$2 2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2868$as_echo_n "checking for $ac_word... " >&6; } 2869if ${ac_cv_prog_STRIP+:} false; then : 2870 $as_echo_n "(cached) " >&6 2871else 2872 if test -n "$STRIP"; then 2873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2874else 2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2876for as_dir in $PATH 2877do 2878 IFS=$as_save_IFS 2879 test -z "$as_dir" && as_dir=. 2880 for ac_exec_ext in '' $ac_executable_extensions; do 2881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2882 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2884 break 2 2885 fi 2886done 2887 done 2888IFS=$as_save_IFS 2889 2890fi 2891fi 2892STRIP=$ac_cv_prog_STRIP 2893if test -n "$STRIP"; then 2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2895$as_echo "$STRIP" >&6; } 2896else 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2898$as_echo "no" >&6; } 2899fi 2900 2901 2902fi 2903if test -z "$ac_cv_prog_STRIP"; then 2904 ac_ct_STRIP=$STRIP 2905 # Extract the first word of "strip", so it can be a program name with args. 2906set dummy strip; ac_word=$2 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2908$as_echo_n "checking for $ac_word... " >&6; } 2909if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2910 $as_echo_n "(cached) " >&6 2911else 2912 if test -n "$ac_ct_STRIP"; then 2913 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2914else 2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2916for as_dir in $PATH 2917do 2918 IFS=$as_save_IFS 2919 test -z "$as_dir" && as_dir=. 2920 for ac_exec_ext in '' $ac_executable_extensions; do 2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2922 ac_cv_prog_ac_ct_STRIP="strip" 2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2924 break 2 2925 fi 2926done 2927 done 2928IFS=$as_save_IFS 2929 2930fi 2931fi 2932ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2933if test -n "$ac_ct_STRIP"; then 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2935$as_echo "$ac_ct_STRIP" >&6; } 2936else 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2938$as_echo "no" >&6; } 2939fi 2940 2941 if test "x$ac_ct_STRIP" = x; then 2942 STRIP=":" 2943 else 2944 case $cross_compiling:$ac_tool_warned in 2945yes:) 2946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2948ac_tool_warned=yes ;; 2949esac 2950 STRIP=$ac_ct_STRIP 2951 fi 2952else 2953 STRIP="$ac_cv_prog_STRIP" 2954fi 2955 2956fi 2957INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2958 2959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2960$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2961if test -z "$MKDIR_P"; then 2962 if ${ac_cv_path_mkdir+:} false; then : 2963 $as_echo_n "(cached) " >&6 2964else 2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2966for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2967do 2968 IFS=$as_save_IFS 2969 test -z "$as_dir" && as_dir=. 2970 for ac_prog in mkdir gmkdir; do 2971 for ac_exec_ext in '' $ac_executable_extensions; do 2972 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2973 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2974 'mkdir (GNU coreutils) '* | \ 2975 'mkdir (coreutils) '* | \ 2976 'mkdir (fileutils) '4.1*) 2977 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2978 break 3;; 2979 esac 2980 done 2981 done 2982 done 2983IFS=$as_save_IFS 2984 2985fi 2986 2987 test -d ./--version && rmdir ./--version 2988 if test "${ac_cv_path_mkdir+set}" = set; then 2989 MKDIR_P="$ac_cv_path_mkdir -p" 2990 else 2991 # As a last resort, use the slow shell script. Don't cache a 2992 # value for MKDIR_P within a source directory, because that will 2993 # break other packages using the cache if that directory is 2994 # removed, or if the value is a relative name. 2995 MKDIR_P="$ac_install_sh -d" 2996 fi 2997fi 2998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2999$as_echo "$MKDIR_P" >&6; } 3000 3001for ac_prog in gawk mawk nawk awk 3002do 3003 # Extract the first word of "$ac_prog", so it can be a program name with args. 3004set dummy $ac_prog; ac_word=$2 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3006$as_echo_n "checking for $ac_word... " >&6; } 3007if ${ac_cv_prog_AWK+:} false; then : 3008 $as_echo_n "(cached) " >&6 3009else 3010 if test -n "$AWK"; then 3011 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3012else 3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3014for as_dir in $PATH 3015do 3016 IFS=$as_save_IFS 3017 test -z "$as_dir" && as_dir=. 3018 for ac_exec_ext in '' $ac_executable_extensions; do 3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3020 ac_cv_prog_AWK="$ac_prog" 3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3022 break 2 3023 fi 3024done 3025 done 3026IFS=$as_save_IFS 3027 3028fi 3029fi 3030AWK=$ac_cv_prog_AWK 3031if test -n "$AWK"; then 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3033$as_echo "$AWK" >&6; } 3034else 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3036$as_echo "no" >&6; } 3037fi 3038 3039 3040 test -n "$AWK" && break 3041done 3042 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3044$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3045set x ${MAKE-make} 3046ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3047if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3048 $as_echo_n "(cached) " >&6 3049else 3050 cat >conftest.make <<\_ACEOF 3051SHELL = /bin/sh 3052all: 3053 @echo '@@@%%%=$(MAKE)=@@@%%%' 3054_ACEOF 3055# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3056case `${MAKE-make} -f conftest.make 2>/dev/null` in 3057 *@@@%%%=?*=@@@%%%*) 3058 eval ac_cv_prog_make_${ac_make}_set=yes;; 3059 *) 3060 eval ac_cv_prog_make_${ac_make}_set=no;; 3061esac 3062rm -f conftest.make 3063fi 3064if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3066$as_echo "yes" >&6; } 3067 SET_MAKE= 3068else 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3070$as_echo "no" >&6; } 3071 SET_MAKE="MAKE=${MAKE-make}" 3072fi 3073 3074rm -rf .tst 2>/dev/null 3075mkdir .tst 2>/dev/null 3076if test -d .tst; then 3077 am__leading_dot=. 3078else 3079 am__leading_dot=_ 3080fi 3081rmdir .tst 2>/dev/null 3082 3083# Check whether --enable-silent-rules was given. 3084if test "${enable_silent_rules+set}" = set; then : 3085 enableval=$enable_silent_rules; 3086fi 3087 3088case $enable_silent_rules in # ((( 3089 yes) AM_DEFAULT_VERBOSITY=0;; 3090 no) AM_DEFAULT_VERBOSITY=1;; 3091 *) AM_DEFAULT_VERBOSITY=1;; 3092esac 3093am_make=${MAKE-make} 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3095$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3096if ${am_cv_make_support_nested_variables+:} false; then : 3097 $as_echo_n "(cached) " >&6 3098else 3099 if $as_echo 'TRUE=$(BAR$(V)) 3100BAR0=false 3101BAR1=true 3102V=1 3103am__doit: 3104 @$(TRUE) 3105.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3106 am_cv_make_support_nested_variables=yes 3107else 3108 am_cv_make_support_nested_variables=no 3109fi 3110fi 3111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3112$as_echo "$am_cv_make_support_nested_variables" >&6; } 3113if test $am_cv_make_support_nested_variables = yes; then 3114 AM_V='$(V)' 3115 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3116else 3117 AM_V=$AM_DEFAULT_VERBOSITY 3118 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3119fi 3120AM_BACKSLASH='\' 3121 3122if test "`cd $srcdir && pwd`" != "`pwd`"; then 3123 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3124 # is not polluted with repeated "-I." 3125 am__isrc=' -I$(srcdir)' 3126 # test to see if srcdir already configured 3127 if test -f $srcdir/config.status; then 3128 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3129 fi 3130fi 3131 3132# test whether we have cygpath 3133if test -z "$CYGPATH_W"; then 3134 if (cygpath --version) >/dev/null 2>/dev/null; then 3135 CYGPATH_W='cygpath -w' 3136 else 3137 CYGPATH_W=echo 3138 fi 3139fi 3140 3141 3142# Define the identity of the package. 3143 PACKAGE='libevent' 3144 VERSION='2.1.5-beta' 3145 3146 3147cat >>confdefs.h <<_ACEOF 3148#define PACKAGE "$PACKAGE" 3149_ACEOF 3150 3151 3152cat >>confdefs.h <<_ACEOF 3153#define VERSION "$VERSION" 3154_ACEOF 3155 3156# Some tools Automake needs. 3157 3158ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3159 3160 3161AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3162 3163 3164AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3165 3166 3167AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3168 3169 3170MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3171 3172# For better backward compatibility. To be removed once Automake 1.9.x 3173# dies out for good. For more background, see: 3174# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3175# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3176mkdir_p='$(MKDIR_P)' 3177 3178# We need awk for the "check" target (and possibly the TAP driver). The 3179# system "awk" is bad on some platforms. 3180# Always define AMTAR for backward compatibility. Yes, it's still used 3181# in the wild :-( We should find a proper way to deprecate it ... 3182AMTAR='$${TAR-tar}' 3183 3184 3185# We'll loop over all known methods to create a tar archive until one works. 3186_am_tools='gnutar pax cpio none' 3187 3188am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3189 3190 3191 3192 3193 3194 3195# POSIX will say in a future version that running "rm -f" with no argument 3196# is OK; and we want to be able to make that assumption in our Makefile 3197# recipes. So use an aggressive probe to check that the usage we want is 3198# actually supported "in the wild" to an acceptable degree. 3199# See automake bug#10828. 3200# To make any issue more visible, cause the running configure to be aborted 3201# by default if the 'rm' program in use doesn't match our expectations; the 3202# user can still override this though. 3203if rm -f && rm -fr && rm -rf; then : OK; else 3204 cat >&2 <<'END' 3205Oops! 3206 3207Your 'rm' program seems unable to run without file operands specified 3208on the command line, even when the '-f' option is present. This is contrary 3209to the behaviour of most rm programs out there, and not conforming with 3210the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3211 3212Please tell bug-automake@gnu.org about your system, including the value 3213of your $PATH and any error possibly output before this message. This 3214can help us improve future automake versions. 3215 3216END 3217 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3218 echo 'Configuration will proceed anyway, since you have set the' >&2 3219 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3220 echo >&2 3221 else 3222 cat >&2 <<'END' 3223Aborting the configuration process, to ensure you take notice of the issue. 3224 3225You can download and install GNU coreutils to get an 'rm' implementation 3226that behaves properly: <http://www.gnu.org/software/coreutils/>. 3227 3228If you want to complete the configuration process using your problematic 3229'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3230to "yes", and re-run configure. 3231 3232END 3233 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3234 fi 3235fi 3236 3237# Check whether --enable-silent-rules was given. 3238if test "${enable_silent_rules+set}" = set; then : 3239 enableval=$enable_silent_rules; 3240fi 3241 3242case $enable_silent_rules in # ((( 3243 yes) AM_DEFAULT_VERBOSITY=0;; 3244 no) AM_DEFAULT_VERBOSITY=1;; 3245 *) AM_DEFAULT_VERBOSITY=0;; 3246esac 3247am_make=${MAKE-make} 3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3249$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3250if ${am_cv_make_support_nested_variables+:} false; then : 3251 $as_echo_n "(cached) " >&6 3252else 3253 if $as_echo 'TRUE=$(BAR$(V)) 3254BAR0=false 3255BAR1=true 3256V=1 3257am__doit: 3258 @$(TRUE) 3259.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3260 am_cv_make_support_nested_variables=yes 3261else 3262 am_cv_make_support_nested_variables=no 3263fi 3264fi 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3266$as_echo "$am_cv_make_support_nested_variables" >&6; } 3267if test $am_cv_make_support_nested_variables = yes; then 3268 AM_V='$(V)' 3269 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3270else 3271 AM_V=$AM_DEFAULT_VERBOSITY 3272 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3273fi 3274AM_BACKSLASH='\' 3275 3276ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in" 3277 3278 3279$as_echo "#define NUMERIC_VERSION 0x02010500" >>confdefs.h 3280 3281 3282if test "$prefix" = "NONE"; then 3283 prefix="/usr/local" 3284fi 3285 3286 3287DEPDIR="${am__leading_dot}deps" 3288 3289ac_config_commands="$ac_config_commands depfiles" 3290 3291 3292am_make=${MAKE-make} 3293cat > confinc << 'END' 3294am__doit: 3295 @echo this is the am__doit target 3296.PHONY: am__doit 3297END 3298# If we don't find an include directive, just comment out the code. 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3300$as_echo_n "checking for style of include used by $am_make... " >&6; } 3301am__include="#" 3302am__quote= 3303_am_result=none 3304# First try GNU make style include. 3305echo "include confinc" > confmf 3306# Ignore all kinds of additional output from 'make'. 3307case `$am_make -s -f confmf 2> /dev/null` in #( 3308*the\ am__doit\ target*) 3309 am__include=include 3310 am__quote= 3311 _am_result=GNU 3312 ;; 3313esac 3314# Now try BSD make style include. 3315if test "$am__include" = "#"; then 3316 echo '.include "confinc"' > confmf 3317 case `$am_make -s -f confmf 2> /dev/null` in #( 3318 *the\ am__doit\ target*) 3319 am__include=.include 3320 am__quote="\"" 3321 _am_result=BSD 3322 ;; 3323 esac 3324fi 3325 3326 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3328$as_echo "$_am_result" >&6; } 3329rm -f confinc confmf 3330 3331# Check whether --enable-dependency-tracking was given. 3332if test "${enable_dependency_tracking+set}" = set; then : 3333 enableval=$enable_dependency_tracking; 3334fi 3335 3336if test "x$enable_dependency_tracking" != xno; then 3337 am_depcomp="$ac_aux_dir/depcomp" 3338 AMDEPBACKSLASH='\' 3339 am__nodep='_no' 3340fi 3341 if test "x$enable_dependency_tracking" != xno; then 3342 AMDEP_TRUE= 3343 AMDEP_FALSE='#' 3344else 3345 AMDEP_TRUE='#' 3346 AMDEP_FALSE= 3347fi 3348 3349 3350ac_ext=c 3351ac_cpp='$CPP $CPPFLAGS' 3352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3354ac_compiler_gnu=$ac_cv_c_compiler_gnu 3355if test -n "$ac_tool_prefix"; then 3356 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3357set dummy ${ac_tool_prefix}gcc; ac_word=$2 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3359$as_echo_n "checking for $ac_word... " >&6; } 3360if ${ac_cv_prog_CC+:} false; then : 3361 $as_echo_n "(cached) " >&6 3362else 3363 if test -n "$CC"; then 3364 ac_cv_prog_CC="$CC" # Let the user override the test. 3365else 3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3367for as_dir in $PATH 3368do 3369 IFS=$as_save_IFS 3370 test -z "$as_dir" && as_dir=. 3371 for ac_exec_ext in '' $ac_executable_extensions; do 3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3373 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3375 break 2 3376 fi 3377done 3378 done 3379IFS=$as_save_IFS 3380 3381fi 3382fi 3383CC=$ac_cv_prog_CC 3384if test -n "$CC"; then 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3386$as_echo "$CC" >&6; } 3387else 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3389$as_echo "no" >&6; } 3390fi 3391 3392 3393fi 3394if test -z "$ac_cv_prog_CC"; then 3395 ac_ct_CC=$CC 3396 # Extract the first word of "gcc", so it can be a program name with args. 3397set dummy gcc; ac_word=$2 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3399$as_echo_n "checking for $ac_word... " >&6; } 3400if ${ac_cv_prog_ac_ct_CC+:} false; then : 3401 $as_echo_n "(cached) " >&6 3402else 3403 if test -n "$ac_ct_CC"; then 3404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3405else 3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3407for as_dir in $PATH 3408do 3409 IFS=$as_save_IFS 3410 test -z "$as_dir" && as_dir=. 3411 for ac_exec_ext in '' $ac_executable_extensions; do 3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3413 ac_cv_prog_ac_ct_CC="gcc" 3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3415 break 2 3416 fi 3417done 3418 done 3419IFS=$as_save_IFS 3420 3421fi 3422fi 3423ac_ct_CC=$ac_cv_prog_ac_ct_CC 3424if test -n "$ac_ct_CC"; then 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3426$as_echo "$ac_ct_CC" >&6; } 3427else 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3429$as_echo "no" >&6; } 3430fi 3431 3432 if test "x$ac_ct_CC" = x; then 3433 CC="" 3434 else 3435 case $cross_compiling:$ac_tool_warned in 3436yes:) 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3439ac_tool_warned=yes ;; 3440esac 3441 CC=$ac_ct_CC 3442 fi 3443else 3444 CC="$ac_cv_prog_CC" 3445fi 3446 3447if test -z "$CC"; then 3448 if test -n "$ac_tool_prefix"; then 3449 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3450set dummy ${ac_tool_prefix}cc; ac_word=$2 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3452$as_echo_n "checking for $ac_word... " >&6; } 3453if ${ac_cv_prog_CC+:} false; then : 3454 $as_echo_n "(cached) " >&6 3455else 3456 if test -n "$CC"; then 3457 ac_cv_prog_CC="$CC" # Let the user override the test. 3458else 3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3460for as_dir in $PATH 3461do 3462 IFS=$as_save_IFS 3463 test -z "$as_dir" && as_dir=. 3464 for ac_exec_ext in '' $ac_executable_extensions; do 3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3466 ac_cv_prog_CC="${ac_tool_prefix}cc" 3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3468 break 2 3469 fi 3470done 3471 done 3472IFS=$as_save_IFS 3473 3474fi 3475fi 3476CC=$ac_cv_prog_CC 3477if test -n "$CC"; then 3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3479$as_echo "$CC" >&6; } 3480else 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3482$as_echo "no" >&6; } 3483fi 3484 3485 3486 fi 3487fi 3488if test -z "$CC"; then 3489 # Extract the first word of "cc", so it can be a program name with args. 3490set dummy cc; ac_word=$2 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3492$as_echo_n "checking for $ac_word... " >&6; } 3493if ${ac_cv_prog_CC+:} false; then : 3494 $as_echo_n "(cached) " >&6 3495else 3496 if test -n "$CC"; then 3497 ac_cv_prog_CC="$CC" # Let the user override the test. 3498else 3499 ac_prog_rejected=no 3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3501for as_dir in $PATH 3502do 3503 IFS=$as_save_IFS 3504 test -z "$as_dir" && as_dir=. 3505 for ac_exec_ext in '' $ac_executable_extensions; do 3506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3507 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3508 ac_prog_rejected=yes 3509 continue 3510 fi 3511 ac_cv_prog_CC="cc" 3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3513 break 2 3514 fi 3515done 3516 done 3517IFS=$as_save_IFS 3518 3519if test $ac_prog_rejected = yes; then 3520 # We found a bogon in the path, so make sure we never use it. 3521 set dummy $ac_cv_prog_CC 3522 shift 3523 if test $# != 0; then 3524 # We chose a different compiler from the bogus one. 3525 # However, it has the same basename, so the bogon will be chosen 3526 # first if we set CC to just the basename; use the full file name. 3527 shift 3528 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3529 fi 3530fi 3531fi 3532fi 3533CC=$ac_cv_prog_CC 3534if test -n "$CC"; then 3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3536$as_echo "$CC" >&6; } 3537else 3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3539$as_echo "no" >&6; } 3540fi 3541 3542 3543fi 3544if test -z "$CC"; then 3545 if test -n "$ac_tool_prefix"; then 3546 for ac_prog in cl.exe 3547 do 3548 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3549set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3551$as_echo_n "checking for $ac_word... " >&6; } 3552if ${ac_cv_prog_CC+:} false; then : 3553 $as_echo_n "(cached) " >&6 3554else 3555 if test -n "$CC"; then 3556 ac_cv_prog_CC="$CC" # Let the user override the test. 3557else 3558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3559for as_dir in $PATH 3560do 3561 IFS=$as_save_IFS 3562 test -z "$as_dir" && as_dir=. 3563 for ac_exec_ext in '' $ac_executable_extensions; do 3564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3565 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3567 break 2 3568 fi 3569done 3570 done 3571IFS=$as_save_IFS 3572 3573fi 3574fi 3575CC=$ac_cv_prog_CC 3576if test -n "$CC"; then 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3578$as_echo "$CC" >&6; } 3579else 3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3581$as_echo "no" >&6; } 3582fi 3583 3584 3585 test -n "$CC" && break 3586 done 3587fi 3588if test -z "$CC"; then 3589 ac_ct_CC=$CC 3590 for ac_prog in cl.exe 3591do 3592 # Extract the first word of "$ac_prog", so it can be a program name with args. 3593set dummy $ac_prog; ac_word=$2 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3595$as_echo_n "checking for $ac_word... " >&6; } 3596if ${ac_cv_prog_ac_ct_CC+:} false; then : 3597 $as_echo_n "(cached) " >&6 3598else 3599 if test -n "$ac_ct_CC"; then 3600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3601else 3602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3603for as_dir in $PATH 3604do 3605 IFS=$as_save_IFS 3606 test -z "$as_dir" && as_dir=. 3607 for ac_exec_ext in '' $ac_executable_extensions; do 3608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3609 ac_cv_prog_ac_ct_CC="$ac_prog" 3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3611 break 2 3612 fi 3613done 3614 done 3615IFS=$as_save_IFS 3616 3617fi 3618fi 3619ac_ct_CC=$ac_cv_prog_ac_ct_CC 3620if test -n "$ac_ct_CC"; then 3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3622$as_echo "$ac_ct_CC" >&6; } 3623else 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3625$as_echo "no" >&6; } 3626fi 3627 3628 3629 test -n "$ac_ct_CC" && break 3630done 3631 3632 if test "x$ac_ct_CC" = x; then 3633 CC="" 3634 else 3635 case $cross_compiling:$ac_tool_warned in 3636yes:) 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3639ac_tool_warned=yes ;; 3640esac 3641 CC=$ac_ct_CC 3642 fi 3643fi 3644 3645fi 3646 3647 3648test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3650as_fn_error $? "no acceptable C compiler found in \$PATH 3651See \`config.log' for more details" "$LINENO" 5; } 3652 3653# Provide some information about the compiler. 3654$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3655set X $ac_compile 3656ac_compiler=$2 3657for ac_option in --version -v -V -qversion; do 3658 { { ac_try="$ac_compiler $ac_option >&5" 3659case "(($ac_try" in 3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3661 *) ac_try_echo=$ac_try;; 3662esac 3663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3664$as_echo "$ac_try_echo"; } >&5 3665 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3666 ac_status=$? 3667 if test -s conftest.err; then 3668 sed '10a\ 3669... rest of stderr output deleted ... 3670 10q' conftest.err >conftest.er1 3671 cat conftest.er1 >&5 3672 fi 3673 rm -f conftest.er1 conftest.err 3674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3675 test $ac_status = 0; } 3676done 3677 3678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3679/* end confdefs.h. */ 3680 3681int 3682main () 3683{ 3684 3685 ; 3686 return 0; 3687} 3688_ACEOF 3689ac_clean_files_save=$ac_clean_files 3690ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3691# Try to create an executable without -o first, disregard a.out. 3692# It will help us diagnose broken compilers, and finding out an intuition 3693# of exeext. 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3695$as_echo_n "checking whether the C compiler works... " >&6; } 3696ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3697 3698# The possible output files: 3699ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3700 3701ac_rmfiles= 3702for ac_file in $ac_files 3703do 3704 case $ac_file in 3705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3706 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3707 esac 3708done 3709rm -f $ac_rmfiles 3710 3711if { { ac_try="$ac_link_default" 3712case "(($ac_try" in 3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3714 *) ac_try_echo=$ac_try;; 3715esac 3716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3717$as_echo "$ac_try_echo"; } >&5 3718 (eval "$ac_link_default") 2>&5 3719 ac_status=$? 3720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3721 test $ac_status = 0; }; then : 3722 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3723# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3724# in a Makefile. We should not override ac_cv_exeext if it was cached, 3725# so that the user can short-circuit this test for compilers unknown to 3726# Autoconf. 3727for ac_file in $ac_files '' 3728do 3729 test -f "$ac_file" || continue 3730 case $ac_file in 3731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3732 ;; 3733 [ab].out ) 3734 # We found the default executable, but exeext='' is most 3735 # certainly right. 3736 break;; 3737 *.* ) 3738 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3739 then :; else 3740 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3741 fi 3742 # We set ac_cv_exeext here because the later test for it is not 3743 # safe: cross compilers may not add the suffix if given an `-o' 3744 # argument, so we may need to know it at that point already. 3745 # Even if this section looks crufty: it has the advantage of 3746 # actually working. 3747 break;; 3748 * ) 3749 break;; 3750 esac 3751done 3752test "$ac_cv_exeext" = no && ac_cv_exeext= 3753 3754else 3755 ac_file='' 3756fi 3757if test -z "$ac_file"; then : 3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3759$as_echo "no" >&6; } 3760$as_echo "$as_me: failed program was:" >&5 3761sed 's/^/| /' conftest.$ac_ext >&5 3762 3763{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3765as_fn_error 77 "C compiler cannot create executables 3766See \`config.log' for more details" "$LINENO" 5; } 3767else 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3769$as_echo "yes" >&6; } 3770fi 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3772$as_echo_n "checking for C compiler default output file name... " >&6; } 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3774$as_echo "$ac_file" >&6; } 3775ac_exeext=$ac_cv_exeext 3776 3777rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3778ac_clean_files=$ac_clean_files_save 3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3780$as_echo_n "checking for suffix of executables... " >&6; } 3781if { { ac_try="$ac_link" 3782case "(($ac_try" in 3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3784 *) ac_try_echo=$ac_try;; 3785esac 3786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3787$as_echo "$ac_try_echo"; } >&5 3788 (eval "$ac_link") 2>&5 3789 ac_status=$? 3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3791 test $ac_status = 0; }; then : 3792 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3793# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3794# work properly (i.e., refer to `conftest.exe'), while it won't with 3795# `rm'. 3796for ac_file in conftest.exe conftest conftest.*; do 3797 test -f "$ac_file" || continue 3798 case $ac_file in 3799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3800 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3801 break;; 3802 * ) break;; 3803 esac 3804done 3805else 3806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3808as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3809See \`config.log' for more details" "$LINENO" 5; } 3810fi 3811rm -f conftest conftest$ac_cv_exeext 3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3813$as_echo "$ac_cv_exeext" >&6; } 3814 3815rm -f conftest.$ac_ext 3816EXEEXT=$ac_cv_exeext 3817ac_exeext=$EXEEXT 3818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3819/* end confdefs.h. */ 3820#include <stdio.h> 3821int 3822main () 3823{ 3824FILE *f = fopen ("conftest.out", "w"); 3825 return ferror (f) || fclose (f) != 0; 3826 3827 ; 3828 return 0; 3829} 3830_ACEOF 3831ac_clean_files="$ac_clean_files conftest.out" 3832# Check that the compiler produces executables we can run. If not, either 3833# the compiler is broken, or we cross compile. 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3835$as_echo_n "checking whether we are cross compiling... " >&6; } 3836if test "$cross_compiling" != yes; then 3837 { { ac_try="$ac_link" 3838case "(($ac_try" in 3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3840 *) ac_try_echo=$ac_try;; 3841esac 3842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3843$as_echo "$ac_try_echo"; } >&5 3844 (eval "$ac_link") 2>&5 3845 ac_status=$? 3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3847 test $ac_status = 0; } 3848 if { ac_try='./conftest$ac_cv_exeext' 3849 { { case "(($ac_try" in 3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3851 *) ac_try_echo=$ac_try;; 3852esac 3853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3854$as_echo "$ac_try_echo"; } >&5 3855 (eval "$ac_try") 2>&5 3856 ac_status=$? 3857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3858 test $ac_status = 0; }; }; then 3859 cross_compiling=no 3860 else 3861 if test "$cross_compiling" = maybe; then 3862 cross_compiling=yes 3863 else 3864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3866as_fn_error $? "cannot run C compiled programs. 3867If you meant to cross compile, use \`--host'. 3868See \`config.log' for more details" "$LINENO" 5; } 3869 fi 3870 fi 3871fi 3872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3873$as_echo "$cross_compiling" >&6; } 3874 3875rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3876ac_clean_files=$ac_clean_files_save 3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3878$as_echo_n "checking for suffix of object files... " >&6; } 3879if ${ac_cv_objext+:} false; then : 3880 $as_echo_n "(cached) " >&6 3881else 3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3883/* end confdefs.h. */ 3884 3885int 3886main () 3887{ 3888 3889 ; 3890 return 0; 3891} 3892_ACEOF 3893rm -f conftest.o conftest.obj 3894if { { ac_try="$ac_compile" 3895case "(($ac_try" in 3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3897 *) ac_try_echo=$ac_try;; 3898esac 3899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3900$as_echo "$ac_try_echo"; } >&5 3901 (eval "$ac_compile") 2>&5 3902 ac_status=$? 3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3904 test $ac_status = 0; }; then : 3905 for ac_file in conftest.o conftest.obj conftest.*; do 3906 test -f "$ac_file" || continue; 3907 case $ac_file in 3908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3909 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3910 break;; 3911 esac 3912done 3913else 3914 $as_echo "$as_me: failed program was:" >&5 3915sed 's/^/| /' conftest.$ac_ext >&5 3916 3917{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3919as_fn_error $? "cannot compute suffix of object files: cannot compile 3920See \`config.log' for more details" "$LINENO" 5; } 3921fi 3922rm -f conftest.$ac_cv_objext conftest.$ac_ext 3923fi 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3925$as_echo "$ac_cv_objext" >&6; } 3926OBJEXT=$ac_cv_objext 3927ac_objext=$OBJEXT 3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3929$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3930if ${ac_cv_c_compiler_gnu+:} false; then : 3931 $as_echo_n "(cached) " >&6 3932else 3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3934/* end confdefs.h. */ 3935 3936int 3937main () 3938{ 3939#ifndef __GNUC__ 3940 choke me 3941#endif 3942 3943 ; 3944 return 0; 3945} 3946_ACEOF 3947if ac_fn_c_try_compile "$LINENO"; then : 3948 ac_compiler_gnu=yes 3949else 3950 ac_compiler_gnu=no 3951fi 3952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3953ac_cv_c_compiler_gnu=$ac_compiler_gnu 3954 3955fi 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3957$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3958if test $ac_compiler_gnu = yes; then 3959 GCC=yes 3960else 3961 GCC= 3962fi 3963ac_test_CFLAGS=${CFLAGS+set} 3964ac_save_CFLAGS=$CFLAGS 3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3966$as_echo_n "checking whether $CC accepts -g... " >&6; } 3967if ${ac_cv_prog_cc_g+:} false; then : 3968 $as_echo_n "(cached) " >&6 3969else 3970 ac_save_c_werror_flag=$ac_c_werror_flag 3971 ac_c_werror_flag=yes 3972 ac_cv_prog_cc_g=no 3973 CFLAGS="-g" 3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3975/* end confdefs.h. */ 3976 3977int 3978main () 3979{ 3980 3981 ; 3982 return 0; 3983} 3984_ACEOF 3985if ac_fn_c_try_compile "$LINENO"; then : 3986 ac_cv_prog_cc_g=yes 3987else 3988 CFLAGS="" 3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3990/* end confdefs.h. */ 3991 3992int 3993main () 3994{ 3995 3996 ; 3997 return 0; 3998} 3999_ACEOF 4000if ac_fn_c_try_compile "$LINENO"; then : 4001 4002else 4003 ac_c_werror_flag=$ac_save_c_werror_flag 4004 CFLAGS="-g" 4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4006/* end confdefs.h. */ 4007 4008int 4009main () 4010{ 4011 4012 ; 4013 return 0; 4014} 4015_ACEOF 4016if ac_fn_c_try_compile "$LINENO"; then : 4017 ac_cv_prog_cc_g=yes 4018fi 4019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4020fi 4021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4022fi 4023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4024 ac_c_werror_flag=$ac_save_c_werror_flag 4025fi 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4027$as_echo "$ac_cv_prog_cc_g" >&6; } 4028if test "$ac_test_CFLAGS" = set; then 4029 CFLAGS=$ac_save_CFLAGS 4030elif test $ac_cv_prog_cc_g = yes; then 4031 if test "$GCC" = yes; then 4032 CFLAGS="-g -O2" 4033 else 4034 CFLAGS="-g" 4035 fi 4036else 4037 if test "$GCC" = yes; then 4038 CFLAGS="-O2" 4039 else 4040 CFLAGS= 4041 fi 4042fi 4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4044$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4045if ${ac_cv_prog_cc_c89+:} false; then : 4046 $as_echo_n "(cached) " >&6 4047else 4048 ac_cv_prog_cc_c89=no 4049ac_save_CC=$CC 4050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4051/* end confdefs.h. */ 4052#include <stdarg.h> 4053#include <stdio.h> 4054struct stat; 4055/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4056struct buf { int x; }; 4057FILE * (*rcsopen) (struct buf *, struct stat *, int); 4058static char *e (p, i) 4059 char **p; 4060 int i; 4061{ 4062 return p[i]; 4063} 4064static char *f (char * (*g) (char **, int), char **p, ...) 4065{ 4066 char *s; 4067 va_list v; 4068 va_start (v,p); 4069 s = g (p, va_arg (v,int)); 4070 va_end (v); 4071 return s; 4072} 4073 4074/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4075 function prototypes and stuff, but not '\xHH' hex character constants. 4076 These don't provoke an error unfortunately, instead are silently treated 4077 as 'x'. The following induces an error, until -std is added to get 4078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4079 array size at least. It's necessary to write '\x00'==0 to get something 4080 that's true only with -std. */ 4081int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4082 4083/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4084 inside strings and character constants. */ 4085#define FOO(x) 'x' 4086int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4087 4088int test (int i, double x); 4089struct s1 {int (*f) (int a);}; 4090struct s2 {int (*f) (double a);}; 4091int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4092int argc; 4093char **argv; 4094int 4095main () 4096{ 4097return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4098 ; 4099 return 0; 4100} 4101_ACEOF 4102for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4103 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4104do 4105 CC="$ac_save_CC $ac_arg" 4106 if ac_fn_c_try_compile "$LINENO"; then : 4107 ac_cv_prog_cc_c89=$ac_arg 4108fi 4109rm -f core conftest.err conftest.$ac_objext 4110 test "x$ac_cv_prog_cc_c89" != "xno" && break 4111done 4112rm -f conftest.$ac_ext 4113CC=$ac_save_CC 4114 4115fi 4116# AC_CACHE_VAL 4117case "x$ac_cv_prog_cc_c89" in 4118 x) 4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4120$as_echo "none needed" >&6; } ;; 4121 xno) 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4123$as_echo "unsupported" >&6; } ;; 4124 *) 4125 CC="$CC $ac_cv_prog_cc_c89" 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4127$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4128esac 4129if test "x$ac_cv_prog_cc_c89" != xno; then : 4130 4131fi 4132 4133ac_ext=c 4134ac_cpp='$CPP $CPPFLAGS' 4135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4137ac_compiler_gnu=$ac_cv_c_compiler_gnu 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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4145$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4146if ${am_cv_prog_cc_c_o+:} false; then : 4147 $as_echo_n "(cached) " >&6 4148else 4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4150/* end confdefs.h. */ 4151 4152int 4153main () 4154{ 4155 4156 ; 4157 return 0; 4158} 4159_ACEOF 4160 # Make sure it works both with $CC and with simple cc. 4161 # Following AC_PROG_CC_C_O, we do the test twice because some 4162 # compilers refuse to overwrite an existing .o file with -o, 4163 # though they will create one. 4164 am_cv_prog_cc_c_o=yes 4165 for am_i in 1 2; do 4166 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4167 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4168 ac_status=$? 4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4170 (exit $ac_status); } \ 4171 && test -f conftest2.$ac_objext; then 4172 : OK 4173 else 4174 am_cv_prog_cc_c_o=no 4175 break 4176 fi 4177 done 4178 rm -f core conftest* 4179 unset am_i 4180fi 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4182$as_echo "$am_cv_prog_cc_c_o" >&6; } 4183if test "$am_cv_prog_cc_c_o" != yes; then 4184 # Losing compiler, so override with the script. 4185 # FIXME: It is wrong to rewrite CC. 4186 # But if we don't then we get into trouble of one sort or another. 4187 # A longer-term fix would be to have automake use am__CC in this case, 4188 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4189 CC="$am_aux_dir/compile $CC" 4190fi 4191ac_ext=c 4192ac_cpp='$CPP $CPPFLAGS' 4193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4195ac_compiler_gnu=$ac_cv_c_compiler_gnu 4196 4197 4198depcc="$CC" am_compiler_list= 4199 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4201$as_echo_n "checking dependency style of $depcc... " >&6; } 4202if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4203 $as_echo_n "(cached) " >&6 4204else 4205 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4206 # We make a subdir and do the tests there. Otherwise we can end up 4207 # making bogus files that we don't know about and never remove. For 4208 # instance it was reported that on HP-UX the gcc test will end up 4209 # making a dummy file named 'D' -- because '-MD' means "put the output 4210 # in D". 4211 rm -rf conftest.dir 4212 mkdir conftest.dir 4213 # Copy depcomp to subdir because otherwise we won't find it if we're 4214 # using a relative directory. 4215 cp "$am_depcomp" conftest.dir 4216 cd conftest.dir 4217 # We will build objects and dependencies in a subdirectory because 4218 # it helps to detect inapplicable dependency modes. For instance 4219 # both Tru64's cc and ICC support -MD to output dependencies as a 4220 # side effect of compilation, but ICC will put the dependencies in 4221 # the current directory while Tru64 will put them in the object 4222 # directory. 4223 mkdir sub 4224 4225 am_cv_CC_dependencies_compiler_type=none 4226 if test "$am_compiler_list" = ""; then 4227 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4228 fi 4229 am__universal=false 4230 case " $depcc " in #( 4231 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4232 esac 4233 4234 for depmode in $am_compiler_list; do 4235 # Setup a source with many dependencies, because some compilers 4236 # like to wrap large dependency lists on column 80 (with \), and 4237 # we should not choose a depcomp mode which is confused by this. 4238 # 4239 # We need to recreate these files for each test, as the compiler may 4240 # overwrite some of them when testing with obscure command lines. 4241 # This happens at least with the AIX C compiler. 4242 : > sub/conftest.c 4243 for i in 1 2 3 4 5 6; do 4244 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4245 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4246 # Solaris 10 /bin/sh. 4247 echo '/* dummy */' > sub/conftst$i.h 4248 done 4249 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4250 4251 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4252 # mode. It turns out that the SunPro C++ compiler does not properly 4253 # handle '-M -o', and we need to detect this. Also, some Intel 4254 # versions had trouble with output in subdirs. 4255 am__obj=sub/conftest.${OBJEXT-o} 4256 am__minus_obj="-o $am__obj" 4257 case $depmode in 4258 gcc) 4259 # This depmode causes a compiler race in universal mode. 4260 test "$am__universal" = false || continue 4261 ;; 4262 nosideeffect) 4263 # After this tag, mechanisms are not by side-effect, so they'll 4264 # only be used when explicitly requested. 4265 if test "x$enable_dependency_tracking" = xyes; then 4266 continue 4267 else 4268 break 4269 fi 4270 ;; 4271 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4272 # This compiler won't grok '-c -o', but also, the minuso test has 4273 # not run yet. These depmodes are late enough in the game, and 4274 # so weak that their functioning should not be impacted. 4275 am__obj=conftest.${OBJEXT-o} 4276 am__minus_obj= 4277 ;; 4278 none) break ;; 4279 esac 4280 if depmode=$depmode \ 4281 source=sub/conftest.c object=$am__obj \ 4282 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4283 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4284 >/dev/null 2>conftest.err && 4285 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4286 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4287 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4288 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4289 # icc doesn't choke on unknown options, it will just issue warnings 4290 # or remarks (even with -Werror). So we grep stderr for any message 4291 # that says an option was ignored or not supported. 4292 # When given -MP, icc 7.0 and 7.1 complain thusly: 4293 # icc: Command line warning: ignoring option '-M'; no argument required 4294 # The diagnosis changed in icc 8.0: 4295 # icc: Command line remark: option '-MP' not supported 4296 if (grep 'ignoring option' conftest.err || 4297 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4298 am_cv_CC_dependencies_compiler_type=$depmode 4299 break 4300 fi 4301 fi 4302 done 4303 4304 cd .. 4305 rm -rf conftest.dir 4306else 4307 am_cv_CC_dependencies_compiler_type=none 4308fi 4309 4310fi 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4312$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4313CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4314 4315 if 4316 test "x$enable_dependency_tracking" != xno \ 4317 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4318 am__fastdepCC_TRUE= 4319 am__fastdepCC_FALSE='#' 4320else 4321 am__fastdepCC_TRUE='#' 4322 am__fastdepCC_FALSE= 4323fi 4324 4325 4326 4327ac_ext=c 4328ac_cpp='$CPP $CPPFLAGS' 4329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4331ac_compiler_gnu=$ac_cv_c_compiler_gnu 4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4333$as_echo_n "checking how to run the C preprocessor... " >&6; } 4334# On Suns, sometimes $CPP names a directory. 4335if test -n "$CPP" && test -d "$CPP"; then 4336 CPP= 4337fi 4338if test -z "$CPP"; then 4339 if ${ac_cv_prog_CPP+:} false; then : 4340 $as_echo_n "(cached) " >&6 4341else 4342 # Double quotes because CPP needs to be expanded 4343 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4344 do 4345 ac_preproc_ok=false 4346for ac_c_preproc_warn_flag in '' yes 4347do 4348 # Use a header file that comes with gcc, so configuring glibc 4349 # with a fresh cross-compiler works. 4350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4351 # <limits.h> exists even on freestanding compilers. 4352 # On the NeXT, cc -E runs the code through the compiler's parser, 4353 # not just through cpp. "Syntax error" is here to catch this case. 4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4355/* end confdefs.h. */ 4356#ifdef __STDC__ 4357# include <limits.h> 4358#else 4359# include <assert.h> 4360#endif 4361 Syntax error 4362_ACEOF 4363if ac_fn_c_try_cpp "$LINENO"; then : 4364 4365else 4366 # Broken: fails on valid input. 4367continue 4368fi 4369rm -f conftest.err conftest.i conftest.$ac_ext 4370 4371 # OK, works on sane cases. Now check whether nonexistent headers 4372 # can be detected and how. 4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4374/* end confdefs.h. */ 4375#include <ac_nonexistent.h> 4376_ACEOF 4377if ac_fn_c_try_cpp "$LINENO"; then : 4378 # Broken: success on invalid input. 4379continue 4380else 4381 # Passes both tests. 4382ac_preproc_ok=: 4383break 4384fi 4385rm -f conftest.err conftest.i conftest.$ac_ext 4386 4387done 4388# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4389rm -f conftest.i conftest.err conftest.$ac_ext 4390if $ac_preproc_ok; then : 4391 break 4392fi 4393 4394 done 4395 ac_cv_prog_CPP=$CPP 4396 4397fi 4398 CPP=$ac_cv_prog_CPP 4399else 4400 ac_cv_prog_CPP=$CPP 4401fi 4402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4403$as_echo "$CPP" >&6; } 4404ac_preproc_ok=false 4405for ac_c_preproc_warn_flag in '' yes 4406do 4407 # Use a header file that comes with gcc, so configuring glibc 4408 # with a fresh cross-compiler works. 4409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4410 # <limits.h> exists even on freestanding compilers. 4411 # On the NeXT, cc -E runs the code through the compiler's parser, 4412 # not just through cpp. "Syntax error" is here to catch this case. 4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4414/* end confdefs.h. */ 4415#ifdef __STDC__ 4416# include <limits.h> 4417#else 4418# include <assert.h> 4419#endif 4420 Syntax error 4421_ACEOF 4422if ac_fn_c_try_cpp "$LINENO"; then : 4423 4424else 4425 # Broken: fails on valid input. 4426continue 4427fi 4428rm -f conftest.err conftest.i conftest.$ac_ext 4429 4430 # OK, works on sane cases. Now check whether nonexistent headers 4431 # can be detected and how. 4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4433/* end confdefs.h. */ 4434#include <ac_nonexistent.h> 4435_ACEOF 4436if ac_fn_c_try_cpp "$LINENO"; then : 4437 # Broken: success on invalid input. 4438continue 4439else 4440 # Passes both tests. 4441ac_preproc_ok=: 4442break 4443fi 4444rm -f conftest.err conftest.i conftest.$ac_ext 4445 4446done 4447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4448rm -f conftest.i conftest.err conftest.$ac_ext 4449if $ac_preproc_ok; then : 4450 4451else 4452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4454as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4455See \`config.log' for more details" "$LINENO" 5; } 4456fi 4457 4458ac_ext=c 4459ac_cpp='$CPP $CPPFLAGS' 4460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4462ac_compiler_gnu=$ac_cv_c_compiler_gnu 4463 4464 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4466$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4467if ${ac_cv_path_GREP+:} false; then : 4468 $as_echo_n "(cached) " >&6 4469else 4470 if test -z "$GREP"; then 4471 ac_path_GREP_found=false 4472 # Loop through the user's path and test for each of PROGNAME-LIST 4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4474for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4475do 4476 IFS=$as_save_IFS 4477 test -z "$as_dir" && as_dir=. 4478 for ac_prog in grep ggrep; do 4479 for ac_exec_ext in '' $ac_executable_extensions; do 4480 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4481 as_fn_executable_p "$ac_path_GREP" || continue 4482# Check for GNU ac_path_GREP and select it if it is found. 4483 # Check for GNU $ac_path_GREP 4484case `"$ac_path_GREP" --version 2>&1` in 4485*GNU*) 4486 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4487*) 4488 ac_count=0 4489 $as_echo_n 0123456789 >"conftest.in" 4490 while : 4491 do 4492 cat "conftest.in" "conftest.in" >"conftest.tmp" 4493 mv "conftest.tmp" "conftest.in" 4494 cp "conftest.in" "conftest.nl" 4495 $as_echo 'GREP' >> "conftest.nl" 4496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4498 as_fn_arith $ac_count + 1 && ac_count=$as_val 4499 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4500 # Best one so far, save it but keep looking for a better one 4501 ac_cv_path_GREP="$ac_path_GREP" 4502 ac_path_GREP_max=$ac_count 4503 fi 4504 # 10*(2^10) chars as input seems more than enough 4505 test $ac_count -gt 10 && break 4506 done 4507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4508esac 4509 4510 $ac_path_GREP_found && break 3 4511 done 4512 done 4513 done 4514IFS=$as_save_IFS 4515 if test -z "$ac_cv_path_GREP"; then 4516 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4517 fi 4518else 4519 ac_cv_path_GREP=$GREP 4520fi 4521 4522fi 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4524$as_echo "$ac_cv_path_GREP" >&6; } 4525 GREP="$ac_cv_path_GREP" 4526 4527 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4529$as_echo_n "checking for egrep... " >&6; } 4530if ${ac_cv_path_EGREP+:} false; then : 4531 $as_echo_n "(cached) " >&6 4532else 4533 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4534 then ac_cv_path_EGREP="$GREP -E" 4535 else 4536 if test -z "$EGREP"; then 4537 ac_path_EGREP_found=false 4538 # Loop through the user's path and test for each of PROGNAME-LIST 4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4540for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4541do 4542 IFS=$as_save_IFS 4543 test -z "$as_dir" && as_dir=. 4544 for ac_prog in egrep; do 4545 for ac_exec_ext in '' $ac_executable_extensions; do 4546 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4547 as_fn_executable_p "$ac_path_EGREP" || continue 4548# Check for GNU ac_path_EGREP and select it if it is found. 4549 # Check for GNU $ac_path_EGREP 4550case `"$ac_path_EGREP" --version 2>&1` in 4551*GNU*) 4552 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4553*) 4554 ac_count=0 4555 $as_echo_n 0123456789 >"conftest.in" 4556 while : 4557 do 4558 cat "conftest.in" "conftest.in" >"conftest.tmp" 4559 mv "conftest.tmp" "conftest.in" 4560 cp "conftest.in" "conftest.nl" 4561 $as_echo 'EGREP' >> "conftest.nl" 4562 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4564 as_fn_arith $ac_count + 1 && ac_count=$as_val 4565 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4566 # Best one so far, save it but keep looking for a better one 4567 ac_cv_path_EGREP="$ac_path_EGREP" 4568 ac_path_EGREP_max=$ac_count 4569 fi 4570 # 10*(2^10) chars as input seems more than enough 4571 test $ac_count -gt 10 && break 4572 done 4573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4574esac 4575 4576 $ac_path_EGREP_found && break 3 4577 done 4578 done 4579 done 4580IFS=$as_save_IFS 4581 if test -z "$ac_cv_path_EGREP"; then 4582 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4583 fi 4584else 4585 ac_cv_path_EGREP=$EGREP 4586fi 4587 4588 fi 4589fi 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4591$as_echo "$ac_cv_path_EGREP" >&6; } 4592 EGREP="$ac_cv_path_EGREP" 4593 4594 4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4596$as_echo_n "checking for ANSI C header files... " >&6; } 4597if ${ac_cv_header_stdc+:} false; then : 4598 $as_echo_n "(cached) " >&6 4599else 4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4601/* end confdefs.h. */ 4602#include <stdlib.h> 4603#include <stdarg.h> 4604#include <string.h> 4605#include <float.h> 4606 4607int 4608main () 4609{ 4610 4611 ; 4612 return 0; 4613} 4614_ACEOF 4615if ac_fn_c_try_compile "$LINENO"; then : 4616 ac_cv_header_stdc=yes 4617else 4618 ac_cv_header_stdc=no 4619fi 4620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4621 4622if test $ac_cv_header_stdc = yes; then 4623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4625/* end confdefs.h. */ 4626#include <string.h> 4627 4628_ACEOF 4629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4630 $EGREP "memchr" >/dev/null 2>&1; then : 4631 4632else 4633 ac_cv_header_stdc=no 4634fi 4635rm -f conftest* 4636 4637fi 4638 4639if test $ac_cv_header_stdc = yes; then 4640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4642/* end confdefs.h. */ 4643#include <stdlib.h> 4644 4645_ACEOF 4646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4647 $EGREP "free" >/dev/null 2>&1; then : 4648 4649else 4650 ac_cv_header_stdc=no 4651fi 4652rm -f conftest* 4653 4654fi 4655 4656if test $ac_cv_header_stdc = yes; then 4657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4658 if test "$cross_compiling" = yes; then : 4659 : 4660else 4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4662/* end confdefs.h. */ 4663#include <ctype.h> 4664#include <stdlib.h> 4665#if ((' ' & 0x0FF) == 0x020) 4666# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4667# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4668#else 4669# define ISLOWER(c) \ 4670 (('a' <= (c) && (c) <= 'i') \ 4671 || ('j' <= (c) && (c) <= 'r') \ 4672 || ('s' <= (c) && (c) <= 'z')) 4673# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4674#endif 4675 4676#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4677int 4678main () 4679{ 4680 int i; 4681 for (i = 0; i < 256; i++) 4682 if (XOR (islower (i), ISLOWER (i)) 4683 || toupper (i) != TOUPPER (i)) 4684 return 2; 4685 return 0; 4686} 4687_ACEOF 4688if ac_fn_c_try_run "$LINENO"; then : 4689 4690else 4691 ac_cv_header_stdc=no 4692fi 4693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4694 conftest.$ac_objext conftest.beam conftest.$ac_ext 4695fi 4696 4697fi 4698fi 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4700$as_echo "$ac_cv_header_stdc" >&6; } 4701if test $ac_cv_header_stdc = yes; then 4702 4703$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4704 4705fi 4706 4707# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4708for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4709 inttypes.h stdint.h unistd.h 4710do : 4711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4712ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4713" 4714if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4715 cat >>confdefs.h <<_ACEOF 4716#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4717_ACEOF 4718 4719fi 4720 4721done 4722 4723 4724 4725 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4726if test "x$ac_cv_header_minix_config_h" = xyes; then : 4727 MINIX=yes 4728else 4729 MINIX= 4730fi 4731 4732 4733 if test "$MINIX" = yes; then 4734 4735$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4736 4737 4738$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4739 4740 4741$as_echo "#define _MINIX 1" >>confdefs.h 4742 4743 fi 4744 4745 4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4747$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4748if ${ac_cv_safe_to_define___extensions__+:} false; then : 4749 $as_echo_n "(cached) " >&6 4750else 4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4752/* end confdefs.h. */ 4753 4754# define __EXTENSIONS__ 1 4755 $ac_includes_default 4756int 4757main () 4758{ 4759 4760 ; 4761 return 0; 4762} 4763_ACEOF 4764if ac_fn_c_try_compile "$LINENO"; then : 4765 ac_cv_safe_to_define___extensions__=yes 4766else 4767 ac_cv_safe_to_define___extensions__=no 4768fi 4769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4770fi 4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4772$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4773 test $ac_cv_safe_to_define___extensions__ = yes && 4774 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4775 4776 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4777 4778 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4779 4780 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4781 4782 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4783 4784 4785 4786 4787# Make sure we can run config.sub. 4788$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4789 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4790 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4792$as_echo_n "checking build system type... " >&6; } 4793if ${ac_cv_build+:} false; then : 4794 $as_echo_n "(cached) " >&6 4795else 4796 ac_build_alias=$build_alias 4797test "x$ac_build_alias" = x && 4798 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4799test "x$ac_build_alias" = x && 4800 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4801ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4802 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4803 4804fi 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4806$as_echo "$ac_cv_build" >&6; } 4807case $ac_cv_build in 4808*-*-*) ;; 4809*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4810esac 4811build=$ac_cv_build 4812ac_save_IFS=$IFS; IFS='-' 4813set x $ac_cv_build 4814shift 4815build_cpu=$1 4816build_vendor=$2 4817shift; shift 4818# Remember, the first character of IFS is used to create $*, 4819# except with old shells: 4820build_os=$* 4821IFS=$ac_save_IFS 4822case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4823 4824 4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4826$as_echo_n "checking host system type... " >&6; } 4827if ${ac_cv_host+:} false; then : 4828 $as_echo_n "(cached) " >&6 4829else 4830 if test "x$host_alias" = x; then 4831 ac_cv_host=$ac_cv_build 4832else 4833 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4834 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4835fi 4836 4837fi 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4839$as_echo "$ac_cv_host" >&6; } 4840case $ac_cv_host in 4841*-*-*) ;; 4842*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4843esac 4844host=$ac_cv_host 4845ac_save_IFS=$IFS; IFS='-' 4846set x $ac_cv_host 4847shift 4848host_cpu=$1 4849host_vendor=$2 4850shift; shift 4851# Remember, the first character of IFS is used to create $*, 4852# except with old shells: 4853host_os=$* 4854IFS=$ac_save_IFS 4855case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4856 4857 4858 4859#case "$host_os" in 4860# 4861# osf5*) 4862# CFLAGS="$CFLAGS -D_OSF_SOURCE" 4863# ;; 4864#esac 4865 4866 4867 4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4869$as_echo_n "checking whether ln -s works... " >&6; } 4870LN_S=$as_ln_s 4871if test "$LN_S" = "ln -s"; then 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4873$as_echo "yes" >&6; } 4874else 4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4876$as_echo "no, using $LN_S" >&6; } 4877fi 4878 4879# AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE 4880 4881# AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older 4882# versions 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4884$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4885if ${ac_cv_path_SED+:} false; then : 4886 $as_echo_n "(cached) " >&6 4887else 4888 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4889 for ac_i in 1 2 3 4 5 6 7; do 4890 ac_script="$ac_script$as_nl$ac_script" 4891 done 4892 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4893 { ac_script=; unset ac_script;} 4894 if test -z "$SED"; then 4895 ac_path_SED_found=false 4896 # Loop through the user's path and test for each of PROGNAME-LIST 4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4898for as_dir in $PATH 4899do 4900 IFS=$as_save_IFS 4901 test -z "$as_dir" && as_dir=. 4902 for ac_prog in sed gsed; do 4903 for ac_exec_ext in '' $ac_executable_extensions; do 4904 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4905 as_fn_executable_p "$ac_path_SED" || continue 4906# Check for GNU ac_path_SED and select it if it is found. 4907 # Check for GNU $ac_path_SED 4908case `"$ac_path_SED" --version 2>&1` in 4909*GNU*) 4910 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4911*) 4912 ac_count=0 4913 $as_echo_n 0123456789 >"conftest.in" 4914 while : 4915 do 4916 cat "conftest.in" "conftest.in" >"conftest.tmp" 4917 mv "conftest.tmp" "conftest.in" 4918 cp "conftest.in" "conftest.nl" 4919 $as_echo '' >> "conftest.nl" 4920 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4922 as_fn_arith $ac_count + 1 && ac_count=$as_val 4923 if test $ac_count -gt ${ac_path_SED_max-0}; then 4924 # Best one so far, save it but keep looking for a better one 4925 ac_cv_path_SED="$ac_path_SED" 4926 ac_path_SED_max=$ac_count 4927 fi 4928 # 10*(2^10) chars as input seems more than enough 4929 test $ac_count -gt 10 && break 4930 done 4931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4932esac 4933 4934 $ac_path_SED_found && break 3 4935 done 4936 done 4937 done 4938IFS=$as_save_IFS 4939 if test -z "$ac_cv_path_SED"; then 4940 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4941 fi 4942else 4943 ac_cv_path_SED=$SED 4944fi 4945 4946fi 4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4948$as_echo "$ac_cv_path_SED" >&6; } 4949 SED="$ac_cv_path_SED" 4950 rm -f conftest.sed 4951 4952 4953if test $ac_cv_c_compiler_gnu = yes; then 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 4955$as_echo_n "checking whether $CC needs -traditional... " >&6; } 4956if ${ac_cv_prog_gcc_traditional+:} false; then : 4957 $as_echo_n "(cached) " >&6 4958else 4959 ac_pattern="Autoconf.*'x'" 4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4961/* end confdefs.h. */ 4962#include <sgtty.h> 4963Autoconf TIOCGETP 4964_ACEOF 4965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4966 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4967 ac_cv_prog_gcc_traditional=yes 4968else 4969 ac_cv_prog_gcc_traditional=no 4970fi 4971rm -f conftest* 4972 4973 4974 if test $ac_cv_prog_gcc_traditional = no; then 4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4976/* end confdefs.h. */ 4977#include <termio.h> 4978Autoconf TCGETA 4979_ACEOF 4980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4981 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4982 ac_cv_prog_gcc_traditional=yes 4983fi 4984rm -f conftest* 4985 4986 fi 4987fi 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 4989$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 4990 if test $ac_cv_prog_gcc_traditional = yes; then 4991 CC="$CC -traditional" 4992 fi 4993fi 4994 4995 4996# We need to test for at least gcc 2.95 here, because older versions don't 4997# have -fno-strict-aliasing 4998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4999/* end confdefs.h. */ 5000 5001int 5002main () 5003{ 5004 5005#if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95) 5006#error 5007#endif 5008 ; 5009 return 0; 5010} 5011_ACEOF 5012if ac_fn_c_try_compile "$LINENO"; then : 5013 have_gcc295=yes 5014else 5015 have_gcc295=no 5016fi 5017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5018 5019if test "$GCC" = "yes" ; then 5020 # Enable many gcc warnings by default... 5021 CFLAGS="$CFLAGS -Wall" 5022 # And disable the strict-aliasing optimization, since it breaks 5023 # our sockaddr-handling code in strange ways. 5024 if test x$have_gcc295 = xyes; then 5025 CFLAGS="$CFLAGS -fno-strict-aliasing" 5026 fi 5027fi 5028 5029# OS X Lion started deprecating the system openssl. Let's just disable 5030# all deprecation warnings on OS X. 5031case "$host_os" in 5032 5033 darwin*) 5034 CFLAGS="$CFLAGS -Wno-deprecated-declarations" 5035 ;; 5036esac 5037 5038# Check whether --enable-gcc-warnings was given. 5039if test "${enable_gcc_warnings+set}" = set; then : 5040 enableval=$enable_gcc_warnings; 5041fi 5042 5043 5044# Check whether --enable-gcc-hardening was given. 5045if test "${enable_gcc_hardening+set}" = set; then : 5046 enableval=$enable_gcc_hardening; if test x$enableval = xyes; then 5047 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all" 5048 CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector" 5049 CFLAGS="$CFLAGS --param ssp-buffer-size=1" 5050fi 5051fi 5052 5053 5054# Check whether --enable-thread-support was given. 5055if test "${enable_thread_support+set}" = set; then : 5056 enableval=$enable_thread_support; 5057else 5058 enable_thread_support=yes 5059fi 5060 5061# Check whether --enable-malloc-replacement was given. 5062if test "${enable_malloc_replacement+set}" = set; then : 5063 enableval=$enable_malloc_replacement; 5064else 5065 enable_malloc_replacement=yes 5066fi 5067 5068# Check whether --enable-openssl was given. 5069if test "${enable_openssl+set}" = set; then : 5070 enableval=$enable_openssl; 5071else 5072 enable_openssl=yes 5073fi 5074 5075# Check whether --enable-debug-mode was given. 5076if test "${enable_debug_mode+set}" = set; then : 5077 enableval=$enable_debug_mode; 5078else 5079 enable_debug_mode=yes 5080fi 5081 5082# Check whether --enable-libevent-install was given. 5083if test "${enable_libevent_install+set}" = set; then : 5084 enableval=$enable_libevent_install; 5085else 5086 enable_libevent_install=yes 5087fi 5088 5089# Check whether --enable-libevent-regress was given. 5090if test "${enable_libevent_regress+set}" = set; then : 5091 enableval=$enable_libevent_regress; 5092else 5093 enable_libevent_regress=yes 5094fi 5095 5096# Check whether --enable-samples was given. 5097if test "${enable_samples+set}" = set; then : 5098 enableval=$enable_samples; 5099else 5100 enable_samples=yes 5101fi 5102 5103# Check whether --enable-function-sections was given. 5104if test "${enable_function_sections+set}" = set; then : 5105 enableval=$enable_function_sections; 5106else 5107 enable_function_sections=no 5108fi 5109 5110# Check whether --enable-verbose-debug was given. 5111if test "${enable_verbose_debug+set}" = set; then : 5112 enableval=$enable_verbose_debug; 5113else 5114 enable_verbose_debug=no 5115fi 5116 5117 5118 5119case `pwd` in 5120 *\ * | *\ *) 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5122$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5123esac 5124 5125 5126 5127macro_version='2.4.6' 5128macro_revision='2.4.6' 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142ltmain=$ac_aux_dir/ltmain.sh 5143 5144# Backslashify metacharacters that are still active within 5145# double-quoted strings. 5146sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5147 5148# Same as above, but do not quote variable references. 5149double_quote_subst='s/\(["`\\]\)/\\\1/g' 5150 5151# Sed substitution to delay expansion of an escaped shell variable in a 5152# double_quote_subst'ed string. 5153delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5154 5155# Sed substitution to delay expansion of an escaped single quote. 5156delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5157 5158# Sed substitution to avoid accidental globbing in evaled expressions 5159no_glob_subst='s/\*/\\\*/g' 5160 5161ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5162ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5163ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5164 5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5166$as_echo_n "checking how to print strings... " >&6; } 5167# Test print first, because it will be a builtin if present. 5168if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5169 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5170 ECHO='print -r --' 5171elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5172 ECHO='printf %s\n' 5173else 5174 # Use this function as a fallback that always works. 5175 func_fallback_echo () 5176 { 5177 eval 'cat <<_LTECHO_EOF 5178$1 5179_LTECHO_EOF' 5180 } 5181 ECHO='func_fallback_echo' 5182fi 5183 5184# func_echo_all arg... 5185# Invoke $ECHO with all args, space-separated. 5186func_echo_all () 5187{ 5188 $ECHO "" 5189} 5190 5191case $ECHO in 5192 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5193$as_echo "printf" >&6; } ;; 5194 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5195$as_echo "print -r" >&6; } ;; 5196 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5197$as_echo "cat" >&6; } ;; 5198esac 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5214$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5215if ${ac_cv_path_SED+:} false; then : 5216 $as_echo_n "(cached) " >&6 5217else 5218 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5219 for ac_i in 1 2 3 4 5 6 7; do 5220 ac_script="$ac_script$as_nl$ac_script" 5221 done 5222 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5223 { ac_script=; unset ac_script;} 5224 if test -z "$SED"; then 5225 ac_path_SED_found=false 5226 # Loop through the user's path and test for each of PROGNAME-LIST 5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5228for as_dir in $PATH 5229do 5230 IFS=$as_save_IFS 5231 test -z "$as_dir" && as_dir=. 5232 for ac_prog in sed gsed; do 5233 for ac_exec_ext in '' $ac_executable_extensions; do 5234 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5235 as_fn_executable_p "$ac_path_SED" || continue 5236# Check for GNU ac_path_SED and select it if it is found. 5237 # Check for GNU $ac_path_SED 5238case `"$ac_path_SED" --version 2>&1` in 5239*GNU*) 5240 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5241*) 5242 ac_count=0 5243 $as_echo_n 0123456789 >"conftest.in" 5244 while : 5245 do 5246 cat "conftest.in" "conftest.in" >"conftest.tmp" 5247 mv "conftest.tmp" "conftest.in" 5248 cp "conftest.in" "conftest.nl" 5249 $as_echo '' >> "conftest.nl" 5250 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5252 as_fn_arith $ac_count + 1 && ac_count=$as_val 5253 if test $ac_count -gt ${ac_path_SED_max-0}; then 5254 # Best one so far, save it but keep looking for a better one 5255 ac_cv_path_SED="$ac_path_SED" 5256 ac_path_SED_max=$ac_count 5257 fi 5258 # 10*(2^10) chars as input seems more than enough 5259 test $ac_count -gt 10 && break 5260 done 5261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5262esac 5263 5264 $ac_path_SED_found && break 3 5265 done 5266 done 5267 done 5268IFS=$as_save_IFS 5269 if test -z "$ac_cv_path_SED"; then 5270 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5271 fi 5272else 5273 ac_cv_path_SED=$SED 5274fi 5275 5276fi 5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5278$as_echo "$ac_cv_path_SED" >&6; } 5279 SED="$ac_cv_path_SED" 5280 rm -f conftest.sed 5281 5282test -z "$SED" && SED=sed 5283Xsed="$SED -e 1s/^X//" 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5296$as_echo_n "checking for fgrep... " >&6; } 5297if ${ac_cv_path_FGREP+:} false; then : 5298 $as_echo_n "(cached) " >&6 5299else 5300 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5301 then ac_cv_path_FGREP="$GREP -F" 5302 else 5303 if test -z "$FGREP"; then 5304 ac_path_FGREP_found=false 5305 # Loop through the user's path and test for each of PROGNAME-LIST 5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5307for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5308do 5309 IFS=$as_save_IFS 5310 test -z "$as_dir" && as_dir=. 5311 for ac_prog in fgrep; do 5312 for ac_exec_ext in '' $ac_executable_extensions; do 5313 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5314 as_fn_executable_p "$ac_path_FGREP" || continue 5315# Check for GNU ac_path_FGREP and select it if it is found. 5316 # Check for GNU $ac_path_FGREP 5317case `"$ac_path_FGREP" --version 2>&1` in 5318*GNU*) 5319 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5320*) 5321 ac_count=0 5322 $as_echo_n 0123456789 >"conftest.in" 5323 while : 5324 do 5325 cat "conftest.in" "conftest.in" >"conftest.tmp" 5326 mv "conftest.tmp" "conftest.in" 5327 cp "conftest.in" "conftest.nl" 5328 $as_echo 'FGREP' >> "conftest.nl" 5329 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5331 as_fn_arith $ac_count + 1 && ac_count=$as_val 5332 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5333 # Best one so far, save it but keep looking for a better one 5334 ac_cv_path_FGREP="$ac_path_FGREP" 5335 ac_path_FGREP_max=$ac_count 5336 fi 5337 # 10*(2^10) chars as input seems more than enough 5338 test $ac_count -gt 10 && break 5339 done 5340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5341esac 5342 5343 $ac_path_FGREP_found && break 3 5344 done 5345 done 5346 done 5347IFS=$as_save_IFS 5348 if test -z "$ac_cv_path_FGREP"; then 5349 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5350 fi 5351else 5352 ac_cv_path_FGREP=$FGREP 5353fi 5354 5355 fi 5356fi 5357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5358$as_echo "$ac_cv_path_FGREP" >&6; } 5359 FGREP="$ac_cv_path_FGREP" 5360 5361 5362test -z "$GREP" && GREP=grep 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382# Check whether --with-gnu-ld was given. 5383if test "${with_gnu_ld+set}" = set; then : 5384 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5385else 5386 with_gnu_ld=no 5387fi 5388 5389ac_prog=ld 5390if test yes = "$GCC"; then 5391 # Check if gcc -print-prog-name=ld gives a path. 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5393$as_echo_n "checking for ld used by $CC... " >&6; } 5394 case $host in 5395 *-*-mingw*) 5396 # gcc leaves a trailing carriage return, which upsets mingw 5397 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5398 *) 5399 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5400 esac 5401 case $ac_prog in 5402 # Accept absolute paths. 5403 [\\/]* | ?:[\\/]*) 5404 re_direlt='/[^/][^/]*/\.\./' 5405 # Canonicalize the pathname of ld 5406 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5407 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5408 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5409 done 5410 test -z "$LD" && LD=$ac_prog 5411 ;; 5412 "") 5413 # If it fails, then pretend we aren't using GCC. 5414 ac_prog=ld 5415 ;; 5416 *) 5417 # If it is relative, then search for the first ld in PATH. 5418 with_gnu_ld=unknown 5419 ;; 5420 esac 5421elif test yes = "$with_gnu_ld"; then 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5423$as_echo_n "checking for GNU ld... " >&6; } 5424else 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5426$as_echo_n "checking for non-GNU ld... " >&6; } 5427fi 5428if ${lt_cv_path_LD+:} false; then : 5429 $as_echo_n "(cached) " >&6 5430else 5431 if test -z "$LD"; then 5432 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5433 for ac_dir in $PATH; do 5434 IFS=$lt_save_ifs 5435 test -z "$ac_dir" && ac_dir=. 5436 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5437 lt_cv_path_LD=$ac_dir/$ac_prog 5438 # Check to see if the program is GNU ld. I'd rather use --version, 5439 # but apparently some variants of GNU ld only accept -v. 5440 # Break only if it was the GNU/non-GNU ld that we prefer. 5441 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5442 *GNU* | *'with BFD'*) 5443 test no != "$with_gnu_ld" && break 5444 ;; 5445 *) 5446 test yes != "$with_gnu_ld" && break 5447 ;; 5448 esac 5449 fi 5450 done 5451 IFS=$lt_save_ifs 5452else 5453 lt_cv_path_LD=$LD # Let the user override the test with a path. 5454fi 5455fi 5456 5457LD=$lt_cv_path_LD 5458if test -n "$LD"; then 5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5460$as_echo "$LD" >&6; } 5461else 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5463$as_echo "no" >&6; } 5464fi 5465test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5467$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5468if ${lt_cv_prog_gnu_ld+:} false; then : 5469 $as_echo_n "(cached) " >&6 5470else 5471 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5472case `$LD -v 2>&1 </dev/null` in 5473*GNU* | *'with BFD'*) 5474 lt_cv_prog_gnu_ld=yes 5475 ;; 5476*) 5477 lt_cv_prog_gnu_ld=no 5478 ;; 5479esac 5480fi 5481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5482$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5483with_gnu_ld=$lt_cv_prog_gnu_ld 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5494$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5495if ${lt_cv_path_NM+:} false; then : 5496 $as_echo_n "(cached) " >&6 5497else 5498 if test -n "$NM"; then 5499 # Let the user override the test. 5500 lt_cv_path_NM=$NM 5501else 5502 lt_nm_to_check=${ac_tool_prefix}nm 5503 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5504 lt_nm_to_check="$lt_nm_to_check nm" 5505 fi 5506 for lt_tmp_nm in $lt_nm_to_check; do 5507 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5508 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5509 IFS=$lt_save_ifs 5510 test -z "$ac_dir" && ac_dir=. 5511 tmp_nm=$ac_dir/$lt_tmp_nm 5512 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5513 # Check to see if the nm accepts a BSD-compat flag. 5514 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5515 # nm: unknown option "B" ignored 5516 # Tru64's nm complains that /dev/null is an invalid object file 5517 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5518 case $build_os in 5519 mingw*) lt_bad_file=conftest.nm/nofile ;; 5520 *) lt_bad_file=/dev/null ;; 5521 esac 5522 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5523 *$lt_bad_file* | *'Invalid file or object type'*) 5524 lt_cv_path_NM="$tmp_nm -B" 5525 break 2 5526 ;; 5527 *) 5528 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5529 */dev/null*) 5530 lt_cv_path_NM="$tmp_nm -p" 5531 break 2 5532 ;; 5533 *) 5534 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5535 continue # so that we can try to find one that supports BSD flags 5536 ;; 5537 esac 5538 ;; 5539 esac 5540 fi 5541 done 5542 IFS=$lt_save_ifs 5543 done 5544 : ${lt_cv_path_NM=no} 5545fi 5546fi 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5548$as_echo "$lt_cv_path_NM" >&6; } 5549if test no != "$lt_cv_path_NM"; then 5550 NM=$lt_cv_path_NM 5551else 5552 # Didn't find any BSD compatible name lister, look for dumpbin. 5553 if test -n "$DUMPBIN"; then : 5554 # Let the user override the test. 5555 else 5556 if test -n "$ac_tool_prefix"; then 5557 for ac_prog in dumpbin "link -dump" 5558 do 5559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5560set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5562$as_echo_n "checking for $ac_word... " >&6; } 5563if ${ac_cv_prog_DUMPBIN+:} false; then : 5564 $as_echo_n "(cached) " >&6 5565else 5566 if test -n "$DUMPBIN"; then 5567 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5568else 5569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5570for as_dir in $PATH 5571do 5572 IFS=$as_save_IFS 5573 test -z "$as_dir" && as_dir=. 5574 for ac_exec_ext in '' $ac_executable_extensions; do 5575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5576 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5578 break 2 5579 fi 5580done 5581 done 5582IFS=$as_save_IFS 5583 5584fi 5585fi 5586DUMPBIN=$ac_cv_prog_DUMPBIN 5587if test -n "$DUMPBIN"; then 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5589$as_echo "$DUMPBIN" >&6; } 5590else 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5592$as_echo "no" >&6; } 5593fi 5594 5595 5596 test -n "$DUMPBIN" && break 5597 done 5598fi 5599if test -z "$DUMPBIN"; then 5600 ac_ct_DUMPBIN=$DUMPBIN 5601 for ac_prog in dumpbin "link -dump" 5602do 5603 # Extract the first word of "$ac_prog", so it can be a program name with args. 5604set dummy $ac_prog; ac_word=$2 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5606$as_echo_n "checking for $ac_word... " >&6; } 5607if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 if test -n "$ac_ct_DUMPBIN"; then 5611 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5612else 5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5614for as_dir in $PATH 5615do 5616 IFS=$as_save_IFS 5617 test -z "$as_dir" && as_dir=. 5618 for ac_exec_ext in '' $ac_executable_extensions; do 5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5620 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5622 break 2 5623 fi 5624done 5625 done 5626IFS=$as_save_IFS 5627 5628fi 5629fi 5630ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5631if test -n "$ac_ct_DUMPBIN"; then 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5633$as_echo "$ac_ct_DUMPBIN" >&6; } 5634else 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5636$as_echo "no" >&6; } 5637fi 5638 5639 5640 test -n "$ac_ct_DUMPBIN" && break 5641done 5642 5643 if test "x$ac_ct_DUMPBIN" = x; then 5644 DUMPBIN=":" 5645 else 5646 case $cross_compiling:$ac_tool_warned in 5647yes:) 5648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5650ac_tool_warned=yes ;; 5651esac 5652 DUMPBIN=$ac_ct_DUMPBIN 5653 fi 5654fi 5655 5656 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5657 *COFF*) 5658 DUMPBIN="$DUMPBIN -symbols -headers" 5659 ;; 5660 *) 5661 DUMPBIN=: 5662 ;; 5663 esac 5664 fi 5665 5666 if test : != "$DUMPBIN"; then 5667 NM=$DUMPBIN 5668 fi 5669fi 5670test -z "$NM" && NM=nm 5671 5672 5673 5674 5675 5676 5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5678$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5679if ${lt_cv_nm_interface+:} false; then : 5680 $as_echo_n "(cached) " >&6 5681else 5682 lt_cv_nm_interface="BSD nm" 5683 echo "int some_variable = 0;" > conftest.$ac_ext 5684 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5685 (eval "$ac_compile" 2>conftest.err) 5686 cat conftest.err >&5 5687 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5688 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5689 cat conftest.err >&5 5690 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5691 cat conftest.out >&5 5692 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5693 lt_cv_nm_interface="MS dumpbin" 5694 fi 5695 rm -f conftest* 5696fi 5697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5698$as_echo "$lt_cv_nm_interface" >&6; } 5699 5700# find the maximum length of command line arguments 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5702$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5703if ${lt_cv_sys_max_cmd_len+:} false; then : 5704 $as_echo_n "(cached) " >&6 5705else 5706 i=0 5707 teststring=ABCD 5708 5709 case $build_os in 5710 msdosdjgpp*) 5711 # On DJGPP, this test can blow up pretty badly due to problems in libc 5712 # (any single argument exceeding 2000 bytes causes a buffer overrun 5713 # during glob expansion). Even if it were fixed, the result of this 5714 # check would be larger than it should be. 5715 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5716 ;; 5717 5718 gnu*) 5719 # Under GNU Hurd, this test is not required because there is 5720 # no limit to the length of command line arguments. 5721 # Libtool will interpret -1 as no limit whatsoever 5722 lt_cv_sys_max_cmd_len=-1; 5723 ;; 5724 5725 cygwin* | mingw* | cegcc*) 5726 # On Win9x/ME, this test blows up -- it succeeds, but takes 5727 # about 5 minutes as the teststring grows exponentially. 5728 # Worse, since 9x/ME are not pre-emptively multitasking, 5729 # you end up with a "frozen" computer, even though with patience 5730 # the test eventually succeeds (with a max line length of 256k). 5731 # Instead, let's just punt: use the minimum linelength reported by 5732 # all of the supported platforms: 8192 (on NT/2K/XP). 5733 lt_cv_sys_max_cmd_len=8192; 5734 ;; 5735 5736 mint*) 5737 # On MiNT this can take a long time and run out of memory. 5738 lt_cv_sys_max_cmd_len=8192; 5739 ;; 5740 5741 amigaos*) 5742 # On AmigaOS with pdksh, this test takes hours, literally. 5743 # So we just punt and use a minimum line length of 8192. 5744 lt_cv_sys_max_cmd_len=8192; 5745 ;; 5746 5747 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5748 # This has been around since 386BSD, at least. Likely further. 5749 if test -x /sbin/sysctl; then 5750 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5751 elif test -x /usr/sbin/sysctl; then 5752 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5753 else 5754 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5755 fi 5756 # And add a safety zone 5757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5759 ;; 5760 5761 interix*) 5762 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5763 lt_cv_sys_max_cmd_len=196608 5764 ;; 5765 5766 os2*) 5767 # The test takes a long time on OS/2. 5768 lt_cv_sys_max_cmd_len=8192 5769 ;; 5770 5771 osf*) 5772 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5773 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5774 # nice to cause kernel panics so lets avoid the loop below. 5775 # First set a reasonable default. 5776 lt_cv_sys_max_cmd_len=16384 5777 # 5778 if test -x /sbin/sysconfig; then 5779 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5780 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5781 esac 5782 fi 5783 ;; 5784 sco3.2v5*) 5785 lt_cv_sys_max_cmd_len=102400 5786 ;; 5787 sysv5* | sco5v6* | sysv4.2uw2*) 5788 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5789 if test -n "$kargmax"; then 5790 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5791 else 5792 lt_cv_sys_max_cmd_len=32768 5793 fi 5794 ;; 5795 *) 5796 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5797 if test -n "$lt_cv_sys_max_cmd_len" && \ 5798 test undefined != "$lt_cv_sys_max_cmd_len"; then 5799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5801 else 5802 # Make teststring a little bigger before we do anything with it. 5803 # a 1K string should be a reasonable start. 5804 for i in 1 2 3 4 5 6 7 8; do 5805 teststring=$teststring$teststring 5806 done 5807 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5808 # If test is not a shell built-in, we'll probably end up computing a 5809 # maximum length that is only half of the actual maximum length, but 5810 # we can't tell. 5811 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5812 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5813 test 17 != "$i" # 1/2 MB should be enough 5814 do 5815 i=`expr $i + 1` 5816 teststring=$teststring$teststring 5817 done 5818 # Only check the string length outside the loop. 5819 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5820 teststring= 5821 # Add a significant safety factor because C++ compilers can tack on 5822 # massive amounts of additional arguments before passing them to the 5823 # linker. It appears as though 1/2 is a usable value. 5824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5825 fi 5826 ;; 5827 esac 5828 5829fi 5830 5831if test -n "$lt_cv_sys_max_cmd_len"; then 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5833$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5834else 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5836$as_echo "none" >&6; } 5837fi 5838max_cmd_len=$lt_cv_sys_max_cmd_len 5839 5840 5841 5842 5843 5844 5845: ${CP="cp -f"} 5846: ${MV="mv -f"} 5847: ${RM="rm -f"} 5848 5849if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5850 lt_unset=unset 5851else 5852 lt_unset=false 5853fi 5854 5855 5856 5857 5858 5859# test EBCDIC or ASCII 5860case `echo X|tr X '\101'` in 5861 A) # ASCII based system 5862 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5863 lt_SP2NL='tr \040 \012' 5864 lt_NL2SP='tr \015\012 \040\040' 5865 ;; 5866 *) # EBCDIC based system 5867 lt_SP2NL='tr \100 \n' 5868 lt_NL2SP='tr \r\n \100\100' 5869 ;; 5870esac 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5881$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5882if ${lt_cv_to_host_file_cmd+:} false; then : 5883 $as_echo_n "(cached) " >&6 5884else 5885 case $host in 5886 *-*-mingw* ) 5887 case $build in 5888 *-*-mingw* ) # actually msys 5889 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5890 ;; 5891 *-*-cygwin* ) 5892 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5893 ;; 5894 * ) # otherwise, assume *nix 5895 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5896 ;; 5897 esac 5898 ;; 5899 *-*-cygwin* ) 5900 case $build in 5901 *-*-mingw* ) # actually msys 5902 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5903 ;; 5904 *-*-cygwin* ) 5905 lt_cv_to_host_file_cmd=func_convert_file_noop 5906 ;; 5907 * ) # otherwise, assume *nix 5908 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5909 ;; 5910 esac 5911 ;; 5912 * ) # unhandled hosts (and "normal" native builds) 5913 lt_cv_to_host_file_cmd=func_convert_file_noop 5914 ;; 5915esac 5916 5917fi 5918 5919to_host_file_cmd=$lt_cv_to_host_file_cmd 5920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5921$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5922 5923 5924 5925 5926 5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5928$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5929if ${lt_cv_to_tool_file_cmd+:} false; then : 5930 $as_echo_n "(cached) " >&6 5931else 5932 #assume ordinary cross tools, or native build. 5933lt_cv_to_tool_file_cmd=func_convert_file_noop 5934case $host in 5935 *-*-mingw* ) 5936 case $build in 5937 *-*-mingw* ) # actually msys 5938 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5939 ;; 5940 esac 5941 ;; 5942esac 5943 5944fi 5945 5946to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5948$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5949 5950 5951 5952 5953 5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5955$as_echo_n "checking for $LD option to reload object files... " >&6; } 5956if ${lt_cv_ld_reload_flag+:} false; then : 5957 $as_echo_n "(cached) " >&6 5958else 5959 lt_cv_ld_reload_flag='-r' 5960fi 5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5962$as_echo "$lt_cv_ld_reload_flag" >&6; } 5963reload_flag=$lt_cv_ld_reload_flag 5964case $reload_flag in 5965"" | " "*) ;; 5966*) reload_flag=" $reload_flag" ;; 5967esac 5968reload_cmds='$LD$reload_flag -o $output$reload_objs' 5969case $host_os in 5970 cygwin* | mingw* | pw32* | cegcc*) 5971 if test yes != "$GCC"; then 5972 reload_cmds=false 5973 fi 5974 ;; 5975 darwin*) 5976 if test yes = "$GCC"; then 5977 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5978 else 5979 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5980 fi 5981 ;; 5982esac 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992if test -n "$ac_tool_prefix"; then 5993 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5994set dummy ${ac_tool_prefix}objdump; ac_word=$2 5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5996$as_echo_n "checking for $ac_word... " >&6; } 5997if ${ac_cv_prog_OBJDUMP+:} false; then : 5998 $as_echo_n "(cached) " >&6 5999else 6000 if test -n "$OBJDUMP"; then 6001 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6002else 6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6004for as_dir in $PATH 6005do 6006 IFS=$as_save_IFS 6007 test -z "$as_dir" && as_dir=. 6008 for ac_exec_ext in '' $ac_executable_extensions; do 6009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6010 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6012 break 2 6013 fi 6014done 6015 done 6016IFS=$as_save_IFS 6017 6018fi 6019fi 6020OBJDUMP=$ac_cv_prog_OBJDUMP 6021if test -n "$OBJDUMP"; then 6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6023$as_echo "$OBJDUMP" >&6; } 6024else 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6026$as_echo "no" >&6; } 6027fi 6028 6029 6030fi 6031if test -z "$ac_cv_prog_OBJDUMP"; then 6032 ac_ct_OBJDUMP=$OBJDUMP 6033 # Extract the first word of "objdump", so it can be a program name with args. 6034set dummy objdump; ac_word=$2 6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6036$as_echo_n "checking for $ac_word... " >&6; } 6037if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6038 $as_echo_n "(cached) " >&6 6039else 6040 if test -n "$ac_ct_OBJDUMP"; then 6041 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6042else 6043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6044for as_dir in $PATH 6045do 6046 IFS=$as_save_IFS 6047 test -z "$as_dir" && as_dir=. 6048 for ac_exec_ext in '' $ac_executable_extensions; do 6049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6050 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6052 break 2 6053 fi 6054done 6055 done 6056IFS=$as_save_IFS 6057 6058fi 6059fi 6060ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6061if test -n "$ac_ct_OBJDUMP"; then 6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6063$as_echo "$ac_ct_OBJDUMP" >&6; } 6064else 6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6066$as_echo "no" >&6; } 6067fi 6068 6069 if test "x$ac_ct_OBJDUMP" = x; then 6070 OBJDUMP="false" 6071 else 6072 case $cross_compiling:$ac_tool_warned in 6073yes:) 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6076ac_tool_warned=yes ;; 6077esac 6078 OBJDUMP=$ac_ct_OBJDUMP 6079 fi 6080else 6081 OBJDUMP="$ac_cv_prog_OBJDUMP" 6082fi 6083 6084test -z "$OBJDUMP" && OBJDUMP=objdump 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6095$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6096if ${lt_cv_deplibs_check_method+:} false; then : 6097 $as_echo_n "(cached) " >&6 6098else 6099 lt_cv_file_magic_cmd='$MAGIC_CMD' 6100lt_cv_file_magic_test_file= 6101lt_cv_deplibs_check_method='unknown' 6102# Need to set the preceding variable on all platforms that support 6103# interlibrary dependencies. 6104# 'none' -- dependencies not supported. 6105# 'unknown' -- same as none, but documents that we really don't know. 6106# 'pass_all' -- all dependencies passed with no checks. 6107# 'test_compile' -- check by making test program. 6108# 'file_magic [[regex]]' -- check by looking for files in library path 6109# that responds to the $file_magic_cmd with a given extended regex. 6110# If you have 'file' or equivalent on your system and you're not sure 6111# whether 'pass_all' will *always* work, you probably want this one. 6112 6113case $host_os in 6114aix[4-9]*) 6115 lt_cv_deplibs_check_method=pass_all 6116 ;; 6117 6118beos*) 6119 lt_cv_deplibs_check_method=pass_all 6120 ;; 6121 6122bsdi[45]*) 6123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6124 lt_cv_file_magic_cmd='/usr/bin/file -L' 6125 lt_cv_file_magic_test_file=/shlib/libc.so 6126 ;; 6127 6128cygwin*) 6129 # func_win32_libid is a shell function defined in ltmain.sh 6130 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6131 lt_cv_file_magic_cmd='func_win32_libid' 6132 ;; 6133 6134mingw* | pw32*) 6135 # Base MSYS/MinGW do not provide the 'file' command needed by 6136 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6137 # unless we find 'file', for example because we are cross-compiling. 6138 if ( file / ) >/dev/null 2>&1; then 6139 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6140 lt_cv_file_magic_cmd='func_win32_libid' 6141 else 6142 # Keep this pattern in sync with the one in func_win32_libid. 6143 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6144 lt_cv_file_magic_cmd='$OBJDUMP -f' 6145 fi 6146 ;; 6147 6148cegcc*) 6149 # use the weaker test based on 'objdump'. See mingw*. 6150 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6151 lt_cv_file_magic_cmd='$OBJDUMP -f' 6152 ;; 6153 6154darwin* | rhapsody*) 6155 lt_cv_deplibs_check_method=pass_all 6156 ;; 6157 6158freebsd* | dragonfly*) 6159 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6160 case $host_cpu in 6161 i*86 ) 6162 # Not sure whether the presence of OpenBSD here was a mistake. 6163 # Let's accept both of them until this is cleared up. 6164 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6165 lt_cv_file_magic_cmd=/usr/bin/file 6166 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6167 ;; 6168 esac 6169 else 6170 lt_cv_deplibs_check_method=pass_all 6171 fi 6172 ;; 6173 6174haiku*) 6175 lt_cv_deplibs_check_method=pass_all 6176 ;; 6177 6178hpux10.20* | hpux11*) 6179 lt_cv_file_magic_cmd=/usr/bin/file 6180 case $host_cpu in 6181 ia64*) 6182 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6183 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6184 ;; 6185 hppa*64*) 6186 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]' 6187 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6188 ;; 6189 *) 6190 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6191 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6192 ;; 6193 esac 6194 ;; 6195 6196interix[3-9]*) 6197 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6199 ;; 6200 6201irix5* | irix6* | nonstopux*) 6202 case $LD in 6203 *-32|*"-32 ") libmagic=32-bit;; 6204 *-n32|*"-n32 ") libmagic=N32;; 6205 *-64|*"-64 ") libmagic=64-bit;; 6206 *) libmagic=never-match;; 6207 esac 6208 lt_cv_deplibs_check_method=pass_all 6209 ;; 6210 6211# This must be glibc/ELF. 6212linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6213 lt_cv_deplibs_check_method=pass_all 6214 ;; 6215 6216netbsd*) 6217 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6219 else 6220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6221 fi 6222 ;; 6223 6224newos6*) 6225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6226 lt_cv_file_magic_cmd=/usr/bin/file 6227 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6228 ;; 6229 6230*nto* | *qnx*) 6231 lt_cv_deplibs_check_method=pass_all 6232 ;; 6233 6234openbsd* | bitrig*) 6235 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6237 else 6238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6239 fi 6240 ;; 6241 6242osf3* | osf4* | osf5*) 6243 lt_cv_deplibs_check_method=pass_all 6244 ;; 6245 6246rdos*) 6247 lt_cv_deplibs_check_method=pass_all 6248 ;; 6249 6250solaris*) 6251 lt_cv_deplibs_check_method=pass_all 6252 ;; 6253 6254sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6255 lt_cv_deplibs_check_method=pass_all 6256 ;; 6257 6258sysv4 | sysv4.3*) 6259 case $host_vendor in 6260 motorola) 6261 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]' 6262 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6263 ;; 6264 ncr) 6265 lt_cv_deplibs_check_method=pass_all 6266 ;; 6267 sequent) 6268 lt_cv_file_magic_cmd='/bin/file' 6269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6270 ;; 6271 sni) 6272 lt_cv_file_magic_cmd='/bin/file' 6273 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6274 lt_cv_file_magic_test_file=/lib/libc.so 6275 ;; 6276 siemens) 6277 lt_cv_deplibs_check_method=pass_all 6278 ;; 6279 pc) 6280 lt_cv_deplibs_check_method=pass_all 6281 ;; 6282 esac 6283 ;; 6284 6285tpf*) 6286 lt_cv_deplibs_check_method=pass_all 6287 ;; 6288os2*) 6289 lt_cv_deplibs_check_method=pass_all 6290 ;; 6291esac 6292 6293fi 6294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6295$as_echo "$lt_cv_deplibs_check_method" >&6; } 6296 6297file_magic_glob= 6298want_nocaseglob=no 6299if test "$build" = "$host"; then 6300 case $host_os in 6301 mingw* | pw32*) 6302 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6303 want_nocaseglob=yes 6304 else 6305 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6306 fi 6307 ;; 6308 esac 6309fi 6310 6311file_magic_cmd=$lt_cv_file_magic_cmd 6312deplibs_check_method=$lt_cv_deplibs_check_method 6313test -z "$deplibs_check_method" && deplibs_check_method=unknown 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336if test -n "$ac_tool_prefix"; then 6337 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6338set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6340$as_echo_n "checking for $ac_word... " >&6; } 6341if ${ac_cv_prog_DLLTOOL+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343else 6344 if test -n "$DLLTOOL"; then 6345 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6346else 6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6348for as_dir in $PATH 6349do 6350 IFS=$as_save_IFS 6351 test -z "$as_dir" && as_dir=. 6352 for ac_exec_ext in '' $ac_executable_extensions; do 6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6354 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6356 break 2 6357 fi 6358done 6359 done 6360IFS=$as_save_IFS 6361 6362fi 6363fi 6364DLLTOOL=$ac_cv_prog_DLLTOOL 6365if test -n "$DLLTOOL"; then 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6367$as_echo "$DLLTOOL" >&6; } 6368else 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6370$as_echo "no" >&6; } 6371fi 6372 6373 6374fi 6375if test -z "$ac_cv_prog_DLLTOOL"; then 6376 ac_ct_DLLTOOL=$DLLTOOL 6377 # Extract the first word of "dlltool", so it can be a program name with args. 6378set dummy dlltool; ac_word=$2 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6380$as_echo_n "checking for $ac_word... " >&6; } 6381if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383else 6384 if test -n "$ac_ct_DLLTOOL"; then 6385 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6386else 6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6388for as_dir in $PATH 6389do 6390 IFS=$as_save_IFS 6391 test -z "$as_dir" && as_dir=. 6392 for ac_exec_ext in '' $ac_executable_extensions; do 6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6394 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6396 break 2 6397 fi 6398done 6399 done 6400IFS=$as_save_IFS 6401 6402fi 6403fi 6404ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6405if test -n "$ac_ct_DLLTOOL"; then 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6407$as_echo "$ac_ct_DLLTOOL" >&6; } 6408else 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6410$as_echo "no" >&6; } 6411fi 6412 6413 if test "x$ac_ct_DLLTOOL" = x; then 6414 DLLTOOL="false" 6415 else 6416 case $cross_compiling:$ac_tool_warned in 6417yes:) 6418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6420ac_tool_warned=yes ;; 6421esac 6422 DLLTOOL=$ac_ct_DLLTOOL 6423 fi 6424else 6425 DLLTOOL="$ac_cv_prog_DLLTOOL" 6426fi 6427 6428test -z "$DLLTOOL" && DLLTOOL=dlltool 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6440$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6441if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6442 $as_echo_n "(cached) " >&6 6443else 6444 lt_cv_sharedlib_from_linklib_cmd='unknown' 6445 6446case $host_os in 6447cygwin* | mingw* | pw32* | cegcc*) 6448 # two different shell functions defined in ltmain.sh; 6449 # decide which one to use based on capabilities of $DLLTOOL 6450 case `$DLLTOOL --help 2>&1` in 6451 *--identify-strict*) 6452 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6453 ;; 6454 *) 6455 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6456 ;; 6457 esac 6458 ;; 6459*) 6460 # fallback: assume linklib IS sharedlib 6461 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6462 ;; 6463esac 6464 6465fi 6466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6467$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6468sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6469test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6470 6471 6472 6473 6474 6475 6476 6477if test -n "$ac_tool_prefix"; then 6478 for ac_prog in ar 6479 do 6480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6481set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6483$as_echo_n "checking for $ac_word... " >&6; } 6484if ${ac_cv_prog_AR+:} false; then : 6485 $as_echo_n "(cached) " >&6 6486else 6487 if test -n "$AR"; then 6488 ac_cv_prog_AR="$AR" # Let the user override the test. 6489else 6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6491for as_dir in $PATH 6492do 6493 IFS=$as_save_IFS 6494 test -z "$as_dir" && as_dir=. 6495 for ac_exec_ext in '' $ac_executable_extensions; do 6496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6497 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6499 break 2 6500 fi 6501done 6502 done 6503IFS=$as_save_IFS 6504 6505fi 6506fi 6507AR=$ac_cv_prog_AR 6508if test -n "$AR"; then 6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6510$as_echo "$AR" >&6; } 6511else 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6513$as_echo "no" >&6; } 6514fi 6515 6516 6517 test -n "$AR" && break 6518 done 6519fi 6520if test -z "$AR"; then 6521 ac_ct_AR=$AR 6522 for ac_prog in ar 6523do 6524 # Extract the first word of "$ac_prog", so it can be a program name with args. 6525set dummy $ac_prog; ac_word=$2 6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6527$as_echo_n "checking for $ac_word... " >&6; } 6528if ${ac_cv_prog_ac_ct_AR+:} false; then : 6529 $as_echo_n "(cached) " >&6 6530else 6531 if test -n "$ac_ct_AR"; then 6532 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6533else 6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6535for as_dir in $PATH 6536do 6537 IFS=$as_save_IFS 6538 test -z "$as_dir" && as_dir=. 6539 for ac_exec_ext in '' $ac_executable_extensions; do 6540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6541 ac_cv_prog_ac_ct_AR="$ac_prog" 6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6543 break 2 6544 fi 6545done 6546 done 6547IFS=$as_save_IFS 6548 6549fi 6550fi 6551ac_ct_AR=$ac_cv_prog_ac_ct_AR 6552if test -n "$ac_ct_AR"; then 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6554$as_echo "$ac_ct_AR" >&6; } 6555else 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6557$as_echo "no" >&6; } 6558fi 6559 6560 6561 test -n "$ac_ct_AR" && break 6562done 6563 6564 if test "x$ac_ct_AR" = x; then 6565 AR="false" 6566 else 6567 case $cross_compiling:$ac_tool_warned in 6568yes:) 6569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6571ac_tool_warned=yes ;; 6572esac 6573 AR=$ac_ct_AR 6574 fi 6575fi 6576 6577: ${AR=ar} 6578: ${AR_FLAGS=cru} 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6591$as_echo_n "checking for archiver @FILE support... " >&6; } 6592if ${lt_cv_ar_at_file+:} false; then : 6593 $as_echo_n "(cached) " >&6 6594else 6595 lt_cv_ar_at_file=no 6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6597/* end confdefs.h. */ 6598 6599int 6600main () 6601{ 6602 6603 ; 6604 return 0; 6605} 6606_ACEOF 6607if ac_fn_c_try_compile "$LINENO"; then : 6608 echo conftest.$ac_objext > conftest.lst 6609 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6611 (eval $lt_ar_try) 2>&5 6612 ac_status=$? 6613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6614 test $ac_status = 0; } 6615 if test 0 -eq "$ac_status"; then 6616 # Ensure the archiver fails upon bogus file names. 6617 rm -f conftest.$ac_objext libconftest.a 6618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6619 (eval $lt_ar_try) 2>&5 6620 ac_status=$? 6621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6622 test $ac_status = 0; } 6623 if test 0 -ne "$ac_status"; then 6624 lt_cv_ar_at_file=@ 6625 fi 6626 fi 6627 rm -f conftest.* libconftest.a 6628 6629fi 6630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6631 6632fi 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6634$as_echo "$lt_cv_ar_at_file" >&6; } 6635 6636if test no = "$lt_cv_ar_at_file"; then 6637 archiver_list_spec= 6638else 6639 archiver_list_spec=$lt_cv_ar_at_file 6640fi 6641 6642 6643 6644 6645 6646 6647 6648if test -n "$ac_tool_prefix"; then 6649 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6650set dummy ${ac_tool_prefix}strip; ac_word=$2 6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6652$as_echo_n "checking for $ac_word... " >&6; } 6653if ${ac_cv_prog_STRIP+:} false; then : 6654 $as_echo_n "(cached) " >&6 6655else 6656 if test -n "$STRIP"; then 6657 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6658else 6659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6660for as_dir in $PATH 6661do 6662 IFS=$as_save_IFS 6663 test -z "$as_dir" && as_dir=. 6664 for ac_exec_ext in '' $ac_executable_extensions; do 6665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6666 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6668 break 2 6669 fi 6670done 6671 done 6672IFS=$as_save_IFS 6673 6674fi 6675fi 6676STRIP=$ac_cv_prog_STRIP 6677if test -n "$STRIP"; then 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6679$as_echo "$STRIP" >&6; } 6680else 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6682$as_echo "no" >&6; } 6683fi 6684 6685 6686fi 6687if test -z "$ac_cv_prog_STRIP"; then 6688 ac_ct_STRIP=$STRIP 6689 # Extract the first word of "strip", so it can be a program name with args. 6690set dummy strip; ac_word=$2 6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6692$as_echo_n "checking for $ac_word... " >&6; } 6693if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6694 $as_echo_n "(cached) " >&6 6695else 6696 if test -n "$ac_ct_STRIP"; then 6697 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6698else 6699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6700for as_dir in $PATH 6701do 6702 IFS=$as_save_IFS 6703 test -z "$as_dir" && as_dir=. 6704 for ac_exec_ext in '' $ac_executable_extensions; do 6705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6706 ac_cv_prog_ac_ct_STRIP="strip" 6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6708 break 2 6709 fi 6710done 6711 done 6712IFS=$as_save_IFS 6713 6714fi 6715fi 6716ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6717if test -n "$ac_ct_STRIP"; then 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6719$as_echo "$ac_ct_STRIP" >&6; } 6720else 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6722$as_echo "no" >&6; } 6723fi 6724 6725 if test "x$ac_ct_STRIP" = x; then 6726 STRIP=":" 6727 else 6728 case $cross_compiling:$ac_tool_warned in 6729yes:) 6730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6732ac_tool_warned=yes ;; 6733esac 6734 STRIP=$ac_ct_STRIP 6735 fi 6736else 6737 STRIP="$ac_cv_prog_STRIP" 6738fi 6739 6740test -z "$STRIP" && STRIP=: 6741 6742 6743 6744 6745 6746 6747if test -n "$ac_tool_prefix"; then 6748 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6749set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6751$as_echo_n "checking for $ac_word... " >&6; } 6752if ${ac_cv_prog_RANLIB+:} false; then : 6753 $as_echo_n "(cached) " >&6 6754else 6755 if test -n "$RANLIB"; then 6756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6757else 6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6759for as_dir in $PATH 6760do 6761 IFS=$as_save_IFS 6762 test -z "$as_dir" && as_dir=. 6763 for ac_exec_ext in '' $ac_executable_extensions; do 6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6765 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6767 break 2 6768 fi 6769done 6770 done 6771IFS=$as_save_IFS 6772 6773fi 6774fi 6775RANLIB=$ac_cv_prog_RANLIB 6776if test -n "$RANLIB"; then 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6778$as_echo "$RANLIB" >&6; } 6779else 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6781$as_echo "no" >&6; } 6782fi 6783 6784 6785fi 6786if test -z "$ac_cv_prog_RANLIB"; then 6787 ac_ct_RANLIB=$RANLIB 6788 # Extract the first word of "ranlib", so it can be a program name with args. 6789set dummy ranlib; ac_word=$2 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6791$as_echo_n "checking for $ac_word... " >&6; } 6792if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6793 $as_echo_n "(cached) " >&6 6794else 6795 if test -n "$ac_ct_RANLIB"; then 6796 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6797else 6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6799for as_dir in $PATH 6800do 6801 IFS=$as_save_IFS 6802 test -z "$as_dir" && as_dir=. 6803 for ac_exec_ext in '' $ac_executable_extensions; do 6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6805 ac_cv_prog_ac_ct_RANLIB="ranlib" 6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6807 break 2 6808 fi 6809done 6810 done 6811IFS=$as_save_IFS 6812 6813fi 6814fi 6815ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6816if test -n "$ac_ct_RANLIB"; then 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6818$as_echo "$ac_ct_RANLIB" >&6; } 6819else 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6821$as_echo "no" >&6; } 6822fi 6823 6824 if test "x$ac_ct_RANLIB" = x; then 6825 RANLIB=":" 6826 else 6827 case $cross_compiling:$ac_tool_warned in 6828yes:) 6829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6831ac_tool_warned=yes ;; 6832esac 6833 RANLIB=$ac_ct_RANLIB 6834 fi 6835else 6836 RANLIB="$ac_cv_prog_RANLIB" 6837fi 6838 6839test -z "$RANLIB" && RANLIB=: 6840 6841 6842 6843 6844 6845 6846# Determine commands to create old-style static archives. 6847old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6848old_postinstall_cmds='chmod 644 $oldlib' 6849old_postuninstall_cmds= 6850 6851if test -n "$RANLIB"; then 6852 case $host_os in 6853 bitrig* | openbsd*) 6854 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6855 ;; 6856 *) 6857 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6858 ;; 6859 esac 6860 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6861fi 6862 6863case $host_os in 6864 darwin*) 6865 lock_old_archive_extraction=yes ;; 6866 *) 6867 lock_old_archive_extraction=no ;; 6868esac 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908# If no C compiler was specified, use CC. 6909LTCC=${LTCC-"$CC"} 6910 6911# If no C compiler flags were specified, use CFLAGS. 6912LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6913 6914# Allow CC to be a program name with arguments. 6915compiler=$CC 6916 6917 6918# Check for command to grab the raw symbol name followed by C symbol from nm. 6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6920$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6921if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6922 $as_echo_n "(cached) " >&6 6923else 6924 6925# These are sane defaults that work on at least a few old systems. 6926# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6927 6928# Character class describing NM global symbol codes. 6929symcode='[BCDEGRST]' 6930 6931# Regexp to match symbols that can be accessed directly from C. 6932sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6933 6934# Define system-specific variables. 6935case $host_os in 6936aix*) 6937 symcode='[BCDT]' 6938 ;; 6939cygwin* | mingw* | pw32* | cegcc*) 6940 symcode='[ABCDGISTW]' 6941 ;; 6942hpux*) 6943 if test ia64 = "$host_cpu"; then 6944 symcode='[ABCDEGRST]' 6945 fi 6946 ;; 6947irix* | nonstopux*) 6948 symcode='[BCDEGRST]' 6949 ;; 6950osf*) 6951 symcode='[BCDEGQRST]' 6952 ;; 6953solaris*) 6954 symcode='[BDRT]' 6955 ;; 6956sco3.2v5*) 6957 symcode='[DT]' 6958 ;; 6959sysv4.2uw2*) 6960 symcode='[DT]' 6961 ;; 6962sysv5* | sco5v6* | unixware* | OpenUNIX*) 6963 symcode='[ABDT]' 6964 ;; 6965sysv4) 6966 symcode='[DFNSTU]' 6967 ;; 6968esac 6969 6970# If we're using GNU nm, then use its standard symbol codes. 6971case `$NM -V 2>&1` in 6972*GNU* | *'with BFD'*) 6973 symcode='[ABCDGIRSTW]' ;; 6974esac 6975 6976if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6977 # Gets list of data symbols to import. 6978 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6979 # Adjust the below global symbol transforms to fixup imported variables. 6980 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6981 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6982 lt_c_name_lib_hook="\ 6983 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6984 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6985else 6986 # Disable hooks by default. 6987 lt_cv_sys_global_symbol_to_import= 6988 lt_cdecl_hook= 6989 lt_c_name_hook= 6990 lt_c_name_lib_hook= 6991fi 6992 6993# Transform an extracted symbol line into a proper C declaration. 6994# Some systems (esp. on ia64) link data and code symbols differently, 6995# so use this general approach. 6996lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6997$lt_cdecl_hook\ 6998" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6999" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7000 7001# Transform an extracted symbol line into symbol name and symbol address 7002lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7003$lt_c_name_hook\ 7004" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7005" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7006 7007# Transform an extracted symbol line into symbol name with lib prefix and 7008# symbol address. 7009lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7010$lt_c_name_lib_hook\ 7011" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7012" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7013" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7014 7015# Handle CRLF in mingw tool chain 7016opt_cr= 7017case $build_os in 7018mingw*) 7019 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7020 ;; 7021esac 7022 7023# Try without a prefix underscore, then with it. 7024for ac_symprfx in "" "_"; do 7025 7026 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7027 symxfrm="\\1 $ac_symprfx\\2 \\2" 7028 7029 # Write the raw and C identifiers. 7030 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7031 # Fake it for dumpbin and say T for any non-static function, 7032 # D for any global variable and I for any imported variable. 7033 # Also find C++ and __fastcall symbols from MSVC++, 7034 # which start with @ or ?. 7035 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7036" {last_section=section; section=\$ 3};"\ 7037" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7038" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7039" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7040" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7041" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7042" \$ 0!~/External *\|/{next};"\ 7043" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7044" {if(hide[section]) next};"\ 7045" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7046" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7047" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7048" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7049" ' prfx=^$ac_symprfx" 7050 else 7051 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7052 fi 7053 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7054 7055 # Check to see that the pipe works correctly. 7056 pipe_works=no 7057 7058 rm -f conftest* 7059 cat > conftest.$ac_ext <<_LT_EOF 7060#ifdef __cplusplus 7061extern "C" { 7062#endif 7063char nm_test_var; 7064void nm_test_func(void); 7065void nm_test_func(void){} 7066#ifdef __cplusplus 7067} 7068#endif 7069int main(){nm_test_var='a';nm_test_func();return(0);} 7070_LT_EOF 7071 7072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7073 (eval $ac_compile) 2>&5 7074 ac_status=$? 7075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7076 test $ac_status = 0; }; then 7077 # Now try to grab the symbols. 7078 nlist=conftest.nm 7079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7080 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7081 ac_status=$? 7082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7083 test $ac_status = 0; } && test -s "$nlist"; then 7084 # Try sorting and uniquifying the output. 7085 if sort "$nlist" | uniq > "$nlist"T; then 7086 mv -f "$nlist"T "$nlist" 7087 else 7088 rm -f "$nlist"T 7089 fi 7090 7091 # Make sure that we snagged all the symbols we need. 7092 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7093 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7094 cat <<_LT_EOF > conftest.$ac_ext 7095/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7096#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7097/* DATA imports from DLLs on WIN32 can't be const, because runtime 7098 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7099# define LT_DLSYM_CONST 7100#elif defined __osf__ 7101/* This system does not cope well with relocations in const data. */ 7102# define LT_DLSYM_CONST 7103#else 7104# define LT_DLSYM_CONST const 7105#endif 7106 7107#ifdef __cplusplus 7108extern "C" { 7109#endif 7110 7111_LT_EOF 7112 # Now generate the symbol file. 7113 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7114 7115 cat <<_LT_EOF >> conftest.$ac_ext 7116 7117/* The mapping between symbol names and symbols. */ 7118LT_DLSYM_CONST struct { 7119 const char *name; 7120 void *address; 7121} 7122lt__PROGRAM__LTX_preloaded_symbols[] = 7123{ 7124 { "@PROGRAM@", (void *) 0 }, 7125_LT_EOF 7126 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7127 cat <<\_LT_EOF >> conftest.$ac_ext 7128 {0, (void *) 0} 7129}; 7130 7131/* This works around a problem in FreeBSD linker */ 7132#ifdef FREEBSD_WORKAROUND 7133static const void *lt_preloaded_setup() { 7134 return lt__PROGRAM__LTX_preloaded_symbols; 7135} 7136#endif 7137 7138#ifdef __cplusplus 7139} 7140#endif 7141_LT_EOF 7142 # Now try linking the two files. 7143 mv conftest.$ac_objext conftstm.$ac_objext 7144 lt_globsym_save_LIBS=$LIBS 7145 lt_globsym_save_CFLAGS=$CFLAGS 7146 LIBS=conftstm.$ac_objext 7147 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7149 (eval $ac_link) 2>&5 7150 ac_status=$? 7151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7152 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7153 pipe_works=yes 7154 fi 7155 LIBS=$lt_globsym_save_LIBS 7156 CFLAGS=$lt_globsym_save_CFLAGS 7157 else 7158 echo "cannot find nm_test_func in $nlist" >&5 7159 fi 7160 else 7161 echo "cannot find nm_test_var in $nlist" >&5 7162 fi 7163 else 7164 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7165 fi 7166 else 7167 echo "$progname: failed program was:" >&5 7168 cat conftest.$ac_ext >&5 7169 fi 7170 rm -rf conftest* conftst* 7171 7172 # Do not use the global_symbol_pipe unless it works. 7173 if test yes = "$pipe_works"; then 7174 break 7175 else 7176 lt_cv_sys_global_symbol_pipe= 7177 fi 7178done 7179 7180fi 7181 7182if test -z "$lt_cv_sys_global_symbol_pipe"; then 7183 lt_cv_sys_global_symbol_to_cdecl= 7184fi 7185if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7187$as_echo "failed" >&6; } 7188else 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7190$as_echo "ok" >&6; } 7191fi 7192 7193# Response file support. 7194if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7195 nm_file_list_spec='@' 7196elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7197 nm_file_list_spec='@' 7198fi 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7237$as_echo_n "checking for sysroot... " >&6; } 7238 7239# Check whether --with-sysroot was given. 7240if test "${with_sysroot+set}" = set; then : 7241 withval=$with_sysroot; 7242else 7243 with_sysroot=no 7244fi 7245 7246 7247lt_sysroot= 7248case $with_sysroot in #( 7249 yes) 7250 if test yes = "$GCC"; then 7251 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7252 fi 7253 ;; #( 7254 /*) 7255 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7256 ;; #( 7257 no|'') 7258 ;; #( 7259 *) 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7261$as_echo "$with_sysroot" >&6; } 7262 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7263 ;; 7264esac 7265 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7267$as_echo "${lt_sysroot:-no}" >&6; } 7268 7269 7270 7271 7272 7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7274$as_echo_n "checking for a working dd... " >&6; } 7275if ${ac_cv_path_lt_DD+:} false; then : 7276 $as_echo_n "(cached) " >&6 7277else 7278 printf 0123456789abcdef0123456789abcdef >conftest.i 7279cat conftest.i conftest.i >conftest2.i 7280: ${lt_DD:=$DD} 7281if test -z "$lt_DD"; then 7282 ac_path_lt_DD_found=false 7283 # Loop through the user's path and test for each of PROGNAME-LIST 7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7285for as_dir in $PATH 7286do 7287 IFS=$as_save_IFS 7288 test -z "$as_dir" && as_dir=. 7289 for ac_prog in dd; do 7290 for ac_exec_ext in '' $ac_executable_extensions; do 7291 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7292 as_fn_executable_p "$ac_path_lt_DD" || continue 7293if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7294 cmp -s conftest.i conftest.out \ 7295 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7296fi 7297 $ac_path_lt_DD_found && break 3 7298 done 7299 done 7300 done 7301IFS=$as_save_IFS 7302 if test -z "$ac_cv_path_lt_DD"; then 7303 : 7304 fi 7305else 7306 ac_cv_path_lt_DD=$lt_DD 7307fi 7308 7309rm -f conftest.i conftest2.i conftest.out 7310fi 7311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7312$as_echo "$ac_cv_path_lt_DD" >&6; } 7313 7314 7315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7316$as_echo_n "checking how to truncate binary pipes... " >&6; } 7317if ${lt_cv_truncate_bin+:} false; then : 7318 $as_echo_n "(cached) " >&6 7319else 7320 printf 0123456789abcdef0123456789abcdef >conftest.i 7321cat conftest.i conftest.i >conftest2.i 7322lt_cv_truncate_bin= 7323if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7324 cmp -s conftest.i conftest.out \ 7325 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7326fi 7327rm -f conftest.i conftest2.i conftest.out 7328test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7329fi 7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7331$as_echo "$lt_cv_truncate_bin" >&6; } 7332 7333 7334 7335 7336 7337 7338 7339# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7340func_cc_basename () 7341{ 7342 for cc_temp in $*""; do 7343 case $cc_temp in 7344 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7345 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7346 \-*) ;; 7347 *) break;; 7348 esac 7349 done 7350 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7351} 7352 7353# Check whether --enable-libtool-lock was given. 7354if test "${enable_libtool_lock+set}" = set; then : 7355 enableval=$enable_libtool_lock; 7356fi 7357 7358test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7359 7360# Some flags need to be propagated to the compiler or linker for good 7361# libtool support. 7362case $host in 7363ia64-*-hpux*) 7364 # Find out what ABI is being produced by ac_compile, and set mode 7365 # options accordingly. 7366 echo 'int i;' > conftest.$ac_ext 7367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7368 (eval $ac_compile) 2>&5 7369 ac_status=$? 7370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7371 test $ac_status = 0; }; then 7372 case `/usr/bin/file conftest.$ac_objext` in 7373 *ELF-32*) 7374 HPUX_IA64_MODE=32 7375 ;; 7376 *ELF-64*) 7377 HPUX_IA64_MODE=64 7378 ;; 7379 esac 7380 fi 7381 rm -rf conftest* 7382 ;; 7383*-*-irix6*) 7384 # Find out what ABI is being produced by ac_compile, and set linker 7385 # options accordingly. 7386 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7388 (eval $ac_compile) 2>&5 7389 ac_status=$? 7390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7391 test $ac_status = 0; }; then 7392 if test yes = "$lt_cv_prog_gnu_ld"; then 7393 case `/usr/bin/file conftest.$ac_objext` in 7394 *32-bit*) 7395 LD="${LD-ld} -melf32bsmip" 7396 ;; 7397 *N32*) 7398 LD="${LD-ld} -melf32bmipn32" 7399 ;; 7400 *64-bit*) 7401 LD="${LD-ld} -melf64bmip" 7402 ;; 7403 esac 7404 else 7405 case `/usr/bin/file conftest.$ac_objext` in 7406 *32-bit*) 7407 LD="${LD-ld} -32" 7408 ;; 7409 *N32*) 7410 LD="${LD-ld} -n32" 7411 ;; 7412 *64-bit*) 7413 LD="${LD-ld} -64" 7414 ;; 7415 esac 7416 fi 7417 fi 7418 rm -rf conftest* 7419 ;; 7420 7421mips64*-*linux*) 7422 # Find out what ABI is being produced by ac_compile, and set linker 7423 # options accordingly. 7424 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7426 (eval $ac_compile) 2>&5 7427 ac_status=$? 7428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7429 test $ac_status = 0; }; then 7430 emul=elf 7431 case `/usr/bin/file conftest.$ac_objext` in 7432 *32-bit*) 7433 emul="${emul}32" 7434 ;; 7435 *64-bit*) 7436 emul="${emul}64" 7437 ;; 7438 esac 7439 case `/usr/bin/file conftest.$ac_objext` in 7440 *MSB*) 7441 emul="${emul}btsmip" 7442 ;; 7443 *LSB*) 7444 emul="${emul}ltsmip" 7445 ;; 7446 esac 7447 case `/usr/bin/file conftest.$ac_objext` in 7448 *N32*) 7449 emul="${emul}n32" 7450 ;; 7451 esac 7452 LD="${LD-ld} -m $emul" 7453 fi 7454 rm -rf conftest* 7455 ;; 7456 7457x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7458s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7459 # Find out what ABI is being produced by ac_compile, and set linker 7460 # options accordingly. Note that the listed cases only cover the 7461 # situations where additional linker options are needed (such as when 7462 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7463 # vice versa); the common cases where no linker options are needed do 7464 # not appear in the list. 7465 echo 'int i;' > conftest.$ac_ext 7466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7467 (eval $ac_compile) 2>&5 7468 ac_status=$? 7469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7470 test $ac_status = 0; }; then 7471 case `/usr/bin/file conftest.o` in 7472 *32-bit*) 7473 case $host in 7474 x86_64-*kfreebsd*-gnu) 7475 LD="${LD-ld} -m elf_i386_fbsd" 7476 ;; 7477 x86_64-*linux*) 7478 case `/usr/bin/file conftest.o` in 7479 *x86-64*) 7480 LD="${LD-ld} -m elf32_x86_64" 7481 ;; 7482 *) 7483 LD="${LD-ld} -m elf_i386" 7484 ;; 7485 esac 7486 ;; 7487 powerpc64le-*linux*) 7488 LD="${LD-ld} -m elf32lppclinux" 7489 ;; 7490 powerpc64-*linux*) 7491 LD="${LD-ld} -m elf32ppclinux" 7492 ;; 7493 s390x-*linux*) 7494 LD="${LD-ld} -m elf_s390" 7495 ;; 7496 sparc64-*linux*) 7497 LD="${LD-ld} -m elf32_sparc" 7498 ;; 7499 esac 7500 ;; 7501 *64-bit*) 7502 case $host in 7503 x86_64-*kfreebsd*-gnu) 7504 LD="${LD-ld} -m elf_x86_64_fbsd" 7505 ;; 7506 x86_64-*linux*) 7507 LD="${LD-ld} -m elf_x86_64" 7508 ;; 7509 powerpcle-*linux*) 7510 LD="${LD-ld} -m elf64lppc" 7511 ;; 7512 powerpc-*linux*) 7513 LD="${LD-ld} -m elf64ppc" 7514 ;; 7515 s390*-*linux*|s390*-*tpf*) 7516 LD="${LD-ld} -m elf64_s390" 7517 ;; 7518 sparc*-*linux*) 7519 LD="${LD-ld} -m elf64_sparc" 7520 ;; 7521 esac 7522 ;; 7523 esac 7524 fi 7525 rm -rf conftest* 7526 ;; 7527 7528*-*-sco3.2v5*) 7529 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7530 SAVE_CFLAGS=$CFLAGS 7531 CFLAGS="$CFLAGS -belf" 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7533$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7534if ${lt_cv_cc_needs_belf+:} false; then : 7535 $as_echo_n "(cached) " >&6 7536else 7537 ac_ext=c 7538ac_cpp='$CPP $CPPFLAGS' 7539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7541ac_compiler_gnu=$ac_cv_c_compiler_gnu 7542 7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7544/* end confdefs.h. */ 7545 7546int 7547main () 7548{ 7549 7550 ; 7551 return 0; 7552} 7553_ACEOF 7554if ac_fn_c_try_link "$LINENO"; then : 7555 lt_cv_cc_needs_belf=yes 7556else 7557 lt_cv_cc_needs_belf=no 7558fi 7559rm -f core conftest.err conftest.$ac_objext \ 7560 conftest$ac_exeext conftest.$ac_ext 7561 ac_ext=c 7562ac_cpp='$CPP $CPPFLAGS' 7563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7565ac_compiler_gnu=$ac_cv_c_compiler_gnu 7566 7567fi 7568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7569$as_echo "$lt_cv_cc_needs_belf" >&6; } 7570 if test yes != "$lt_cv_cc_needs_belf"; then 7571 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7572 CFLAGS=$SAVE_CFLAGS 7573 fi 7574 ;; 7575*-*solaris*) 7576 # Find out what ABI is being produced by ac_compile, and set linker 7577 # options accordingly. 7578 echo 'int i;' > conftest.$ac_ext 7579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7580 (eval $ac_compile) 2>&5 7581 ac_status=$? 7582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7583 test $ac_status = 0; }; then 7584 case `/usr/bin/file conftest.o` in 7585 *64-bit*) 7586 case $lt_cv_prog_gnu_ld in 7587 yes*) 7588 case $host in 7589 i?86-*-solaris*|x86_64-*-solaris*) 7590 LD="${LD-ld} -m elf_x86_64" 7591 ;; 7592 sparc*-*-solaris*) 7593 LD="${LD-ld} -m elf64_sparc" 7594 ;; 7595 esac 7596 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7597 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7598 LD=${LD-ld}_sol2 7599 fi 7600 ;; 7601 *) 7602 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7603 LD="${LD-ld} -64" 7604 fi 7605 ;; 7606 esac 7607 ;; 7608 esac 7609 fi 7610 rm -rf conftest* 7611 ;; 7612esac 7613 7614need_locks=$enable_libtool_lock 7615 7616if test -n "$ac_tool_prefix"; then 7617 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7618set dummy ${ac_tool_prefix}mt; ac_word=$2 7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7620$as_echo_n "checking for $ac_word... " >&6; } 7621if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7622 $as_echo_n "(cached) " >&6 7623else 7624 if test -n "$MANIFEST_TOOL"; then 7625 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7626else 7627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7628for as_dir in $PATH 7629do 7630 IFS=$as_save_IFS 7631 test -z "$as_dir" && as_dir=. 7632 for ac_exec_ext in '' $ac_executable_extensions; do 7633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7634 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7636 break 2 7637 fi 7638done 7639 done 7640IFS=$as_save_IFS 7641 7642fi 7643fi 7644MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7645if test -n "$MANIFEST_TOOL"; then 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7647$as_echo "$MANIFEST_TOOL" >&6; } 7648else 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7650$as_echo "no" >&6; } 7651fi 7652 7653 7654fi 7655if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7656 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7657 # Extract the first word of "mt", so it can be a program name with args. 7658set dummy mt; ac_word=$2 7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7660$as_echo_n "checking for $ac_word... " >&6; } 7661if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7662 $as_echo_n "(cached) " >&6 7663else 7664 if test -n "$ac_ct_MANIFEST_TOOL"; then 7665 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7666else 7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7668for as_dir in $PATH 7669do 7670 IFS=$as_save_IFS 7671 test -z "$as_dir" && as_dir=. 7672 for ac_exec_ext in '' $ac_executable_extensions; do 7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7674 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7676 break 2 7677 fi 7678done 7679 done 7680IFS=$as_save_IFS 7681 7682fi 7683fi 7684ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7685if test -n "$ac_ct_MANIFEST_TOOL"; then 7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7687$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7688else 7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7690$as_echo "no" >&6; } 7691fi 7692 7693 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7694 MANIFEST_TOOL=":" 7695 else 7696 case $cross_compiling:$ac_tool_warned in 7697yes:) 7698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7700ac_tool_warned=yes ;; 7701esac 7702 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7703 fi 7704else 7705 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7706fi 7707 7708test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7710$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7711if ${lt_cv_path_mainfest_tool+:} false; then : 7712 $as_echo_n "(cached) " >&6 7713else 7714 lt_cv_path_mainfest_tool=no 7715 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7716 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7717 cat conftest.err >&5 7718 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7719 lt_cv_path_mainfest_tool=yes 7720 fi 7721 rm -f conftest* 7722fi 7723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7724$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7725if test yes != "$lt_cv_path_mainfest_tool"; then 7726 MANIFEST_TOOL=: 7727fi 7728 7729 7730 7731 7732 7733 7734 case $host_os in 7735 rhapsody* | darwin*) 7736 if test -n "$ac_tool_prefix"; then 7737 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7738set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7740$as_echo_n "checking for $ac_word... " >&6; } 7741if ${ac_cv_prog_DSYMUTIL+:} false; then : 7742 $as_echo_n "(cached) " >&6 7743else 7744 if test -n "$DSYMUTIL"; then 7745 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7746else 7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7748for as_dir in $PATH 7749do 7750 IFS=$as_save_IFS 7751 test -z "$as_dir" && as_dir=. 7752 for ac_exec_ext in '' $ac_executable_extensions; do 7753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7754 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7756 break 2 7757 fi 7758done 7759 done 7760IFS=$as_save_IFS 7761 7762fi 7763fi 7764DSYMUTIL=$ac_cv_prog_DSYMUTIL 7765if test -n "$DSYMUTIL"; then 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7767$as_echo "$DSYMUTIL" >&6; } 7768else 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7770$as_echo "no" >&6; } 7771fi 7772 7773 7774fi 7775if test -z "$ac_cv_prog_DSYMUTIL"; then 7776 ac_ct_DSYMUTIL=$DSYMUTIL 7777 # Extract the first word of "dsymutil", so it can be a program name with args. 7778set dummy dsymutil; ac_word=$2 7779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7780$as_echo_n "checking for $ac_word... " >&6; } 7781if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7782 $as_echo_n "(cached) " >&6 7783else 7784 if test -n "$ac_ct_DSYMUTIL"; then 7785 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7786else 7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7788for as_dir in $PATH 7789do 7790 IFS=$as_save_IFS 7791 test -z "$as_dir" && as_dir=. 7792 for ac_exec_ext in '' $ac_executable_extensions; do 7793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7794 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7796 break 2 7797 fi 7798done 7799 done 7800IFS=$as_save_IFS 7801 7802fi 7803fi 7804ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7805if test -n "$ac_ct_DSYMUTIL"; then 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7807$as_echo "$ac_ct_DSYMUTIL" >&6; } 7808else 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7810$as_echo "no" >&6; } 7811fi 7812 7813 if test "x$ac_ct_DSYMUTIL" = x; then 7814 DSYMUTIL=":" 7815 else 7816 case $cross_compiling:$ac_tool_warned in 7817yes:) 7818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7820ac_tool_warned=yes ;; 7821esac 7822 DSYMUTIL=$ac_ct_DSYMUTIL 7823 fi 7824else 7825 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7826fi 7827 7828 if test -n "$ac_tool_prefix"; then 7829 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7830set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7832$as_echo_n "checking for $ac_word... " >&6; } 7833if ${ac_cv_prog_NMEDIT+:} false; then : 7834 $as_echo_n "(cached) " >&6 7835else 7836 if test -n "$NMEDIT"; then 7837 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7838else 7839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7840for as_dir in $PATH 7841do 7842 IFS=$as_save_IFS 7843 test -z "$as_dir" && as_dir=. 7844 for ac_exec_ext in '' $ac_executable_extensions; do 7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7846 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7848 break 2 7849 fi 7850done 7851 done 7852IFS=$as_save_IFS 7853 7854fi 7855fi 7856NMEDIT=$ac_cv_prog_NMEDIT 7857if test -n "$NMEDIT"; then 7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7859$as_echo "$NMEDIT" >&6; } 7860else 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7862$as_echo "no" >&6; } 7863fi 7864 7865 7866fi 7867if test -z "$ac_cv_prog_NMEDIT"; then 7868 ac_ct_NMEDIT=$NMEDIT 7869 # Extract the first word of "nmedit", so it can be a program name with args. 7870set dummy nmedit; ac_word=$2 7871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7872$as_echo_n "checking for $ac_word... " >&6; } 7873if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7874 $as_echo_n "(cached) " >&6 7875else 7876 if test -n "$ac_ct_NMEDIT"; then 7877 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7878else 7879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7880for as_dir in $PATH 7881do 7882 IFS=$as_save_IFS 7883 test -z "$as_dir" && as_dir=. 7884 for ac_exec_ext in '' $ac_executable_extensions; do 7885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7886 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7888 break 2 7889 fi 7890done 7891 done 7892IFS=$as_save_IFS 7893 7894fi 7895fi 7896ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7897if test -n "$ac_ct_NMEDIT"; then 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7899$as_echo "$ac_ct_NMEDIT" >&6; } 7900else 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7902$as_echo "no" >&6; } 7903fi 7904 7905 if test "x$ac_ct_NMEDIT" = x; then 7906 NMEDIT=":" 7907 else 7908 case $cross_compiling:$ac_tool_warned in 7909yes:) 7910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7912ac_tool_warned=yes ;; 7913esac 7914 NMEDIT=$ac_ct_NMEDIT 7915 fi 7916else 7917 NMEDIT="$ac_cv_prog_NMEDIT" 7918fi 7919 7920 if test -n "$ac_tool_prefix"; then 7921 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7922set dummy ${ac_tool_prefix}lipo; ac_word=$2 7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7924$as_echo_n "checking for $ac_word... " >&6; } 7925if ${ac_cv_prog_LIPO+:} false; then : 7926 $as_echo_n "(cached) " >&6 7927else 7928 if test -n "$LIPO"; then 7929 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7930else 7931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7932for as_dir in $PATH 7933do 7934 IFS=$as_save_IFS 7935 test -z "$as_dir" && as_dir=. 7936 for ac_exec_ext in '' $ac_executable_extensions; do 7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7938 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7940 break 2 7941 fi 7942done 7943 done 7944IFS=$as_save_IFS 7945 7946fi 7947fi 7948LIPO=$ac_cv_prog_LIPO 7949if test -n "$LIPO"; then 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7951$as_echo "$LIPO" >&6; } 7952else 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7954$as_echo "no" >&6; } 7955fi 7956 7957 7958fi 7959if test -z "$ac_cv_prog_LIPO"; then 7960 ac_ct_LIPO=$LIPO 7961 # Extract the first word of "lipo", so it can be a program name with args. 7962set dummy lipo; ac_word=$2 7963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7964$as_echo_n "checking for $ac_word... " >&6; } 7965if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7966 $as_echo_n "(cached) " >&6 7967else 7968 if test -n "$ac_ct_LIPO"; then 7969 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7970else 7971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7972for as_dir in $PATH 7973do 7974 IFS=$as_save_IFS 7975 test -z "$as_dir" && as_dir=. 7976 for ac_exec_ext in '' $ac_executable_extensions; do 7977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7978 ac_cv_prog_ac_ct_LIPO="lipo" 7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7980 break 2 7981 fi 7982done 7983 done 7984IFS=$as_save_IFS 7985 7986fi 7987fi 7988ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7989if test -n "$ac_ct_LIPO"; then 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7991$as_echo "$ac_ct_LIPO" >&6; } 7992else 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7994$as_echo "no" >&6; } 7995fi 7996 7997 if test "x$ac_ct_LIPO" = x; then 7998 LIPO=":" 7999 else 8000 case $cross_compiling:$ac_tool_warned in 8001yes:) 8002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8004ac_tool_warned=yes ;; 8005esac 8006 LIPO=$ac_ct_LIPO 8007 fi 8008else 8009 LIPO="$ac_cv_prog_LIPO" 8010fi 8011 8012 if test -n "$ac_tool_prefix"; then 8013 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8014set dummy ${ac_tool_prefix}otool; ac_word=$2 8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8016$as_echo_n "checking for $ac_word... " >&6; } 8017if ${ac_cv_prog_OTOOL+:} false; then : 8018 $as_echo_n "(cached) " >&6 8019else 8020 if test -n "$OTOOL"; then 8021 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8022else 8023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8024for as_dir in $PATH 8025do 8026 IFS=$as_save_IFS 8027 test -z "$as_dir" && as_dir=. 8028 for ac_exec_ext in '' $ac_executable_extensions; do 8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8030 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8032 break 2 8033 fi 8034done 8035 done 8036IFS=$as_save_IFS 8037 8038fi 8039fi 8040OTOOL=$ac_cv_prog_OTOOL 8041if test -n "$OTOOL"; then 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8043$as_echo "$OTOOL" >&6; } 8044else 8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8046$as_echo "no" >&6; } 8047fi 8048 8049 8050fi 8051if test -z "$ac_cv_prog_OTOOL"; then 8052 ac_ct_OTOOL=$OTOOL 8053 # Extract the first word of "otool", so it can be a program name with args. 8054set dummy otool; ac_word=$2 8055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8056$as_echo_n "checking for $ac_word... " >&6; } 8057if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8058 $as_echo_n "(cached) " >&6 8059else 8060 if test -n "$ac_ct_OTOOL"; then 8061 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8062else 8063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8064for as_dir in $PATH 8065do 8066 IFS=$as_save_IFS 8067 test -z "$as_dir" && as_dir=. 8068 for ac_exec_ext in '' $ac_executable_extensions; do 8069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8070 ac_cv_prog_ac_ct_OTOOL="otool" 8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8072 break 2 8073 fi 8074done 8075 done 8076IFS=$as_save_IFS 8077 8078fi 8079fi 8080ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8081if test -n "$ac_ct_OTOOL"; then 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8083$as_echo "$ac_ct_OTOOL" >&6; } 8084else 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8086$as_echo "no" >&6; } 8087fi 8088 8089 if test "x$ac_ct_OTOOL" = x; then 8090 OTOOL=":" 8091 else 8092 case $cross_compiling:$ac_tool_warned in 8093yes:) 8094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8096ac_tool_warned=yes ;; 8097esac 8098 OTOOL=$ac_ct_OTOOL 8099 fi 8100else 8101 OTOOL="$ac_cv_prog_OTOOL" 8102fi 8103 8104 if test -n "$ac_tool_prefix"; then 8105 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8106set dummy ${ac_tool_prefix}otool64; ac_word=$2 8107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8108$as_echo_n "checking for $ac_word... " >&6; } 8109if ${ac_cv_prog_OTOOL64+:} false; then : 8110 $as_echo_n "(cached) " >&6 8111else 8112 if test -n "$OTOOL64"; then 8113 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8114else 8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8116for as_dir in $PATH 8117do 8118 IFS=$as_save_IFS 8119 test -z "$as_dir" && as_dir=. 8120 for ac_exec_ext in '' $ac_executable_extensions; do 8121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8122 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8124 break 2 8125 fi 8126done 8127 done 8128IFS=$as_save_IFS 8129 8130fi 8131fi 8132OTOOL64=$ac_cv_prog_OTOOL64 8133if test -n "$OTOOL64"; then 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8135$as_echo "$OTOOL64" >&6; } 8136else 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8138$as_echo "no" >&6; } 8139fi 8140 8141 8142fi 8143if test -z "$ac_cv_prog_OTOOL64"; then 8144 ac_ct_OTOOL64=$OTOOL64 8145 # Extract the first word of "otool64", so it can be a program name with args. 8146set dummy otool64; ac_word=$2 8147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8148$as_echo_n "checking for $ac_word... " >&6; } 8149if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8150 $as_echo_n "(cached) " >&6 8151else 8152 if test -n "$ac_ct_OTOOL64"; then 8153 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8154else 8155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8156for as_dir in $PATH 8157do 8158 IFS=$as_save_IFS 8159 test -z "$as_dir" && as_dir=. 8160 for ac_exec_ext in '' $ac_executable_extensions; do 8161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8162 ac_cv_prog_ac_ct_OTOOL64="otool64" 8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8164 break 2 8165 fi 8166done 8167 done 8168IFS=$as_save_IFS 8169 8170fi 8171fi 8172ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8173if test -n "$ac_ct_OTOOL64"; then 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8175$as_echo "$ac_ct_OTOOL64" >&6; } 8176else 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8178$as_echo "no" >&6; } 8179fi 8180 8181 if test "x$ac_ct_OTOOL64" = x; then 8182 OTOOL64=":" 8183 else 8184 case $cross_compiling:$ac_tool_warned in 8185yes:) 8186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8188ac_tool_warned=yes ;; 8189esac 8190 OTOOL64=$ac_ct_OTOOL64 8191 fi 8192else 8193 OTOOL64="$ac_cv_prog_OTOOL64" 8194fi 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8223$as_echo_n "checking for -single_module linker flag... " >&6; } 8224if ${lt_cv_apple_cc_single_mod+:} false; then : 8225 $as_echo_n "(cached) " >&6 8226else 8227 lt_cv_apple_cc_single_mod=no 8228 if test -z "$LT_MULTI_MODULE"; then 8229 # By default we will add the -single_module flag. You can override 8230 # by either setting the environment variable LT_MULTI_MODULE 8231 # non-empty at configure time, or by adding -multi_module to the 8232 # link flags. 8233 rm -rf libconftest.dylib* 8234 echo "int foo(void){return 1;}" > conftest.c 8235 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8236-dynamiclib -Wl,-single_module conftest.c" >&5 8237 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8238 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8239 _lt_result=$? 8240 # If there is a non-empty error log, and "single_module" 8241 # appears in it, assume the flag caused a linker warning 8242 if test -s conftest.err && $GREP single_module conftest.err; then 8243 cat conftest.err >&5 8244 # Otherwise, if the output was created with a 0 exit code from 8245 # the compiler, it worked. 8246 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8247 lt_cv_apple_cc_single_mod=yes 8248 else 8249 cat conftest.err >&5 8250 fi 8251 rm -rf libconftest.dylib* 8252 rm -f conftest.* 8253 fi 8254fi 8255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8256$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8257 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8259$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8260if ${lt_cv_ld_exported_symbols_list+:} false; then : 8261 $as_echo_n "(cached) " >&6 8262else 8263 lt_cv_ld_exported_symbols_list=no 8264 save_LDFLAGS=$LDFLAGS 8265 echo "_main" > conftest.sym 8266 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8268/* end confdefs.h. */ 8269 8270int 8271main () 8272{ 8273 8274 ; 8275 return 0; 8276} 8277_ACEOF 8278if ac_fn_c_try_link "$LINENO"; then : 8279 lt_cv_ld_exported_symbols_list=yes 8280else 8281 lt_cv_ld_exported_symbols_list=no 8282fi 8283rm -f core conftest.err conftest.$ac_objext \ 8284 conftest$ac_exeext conftest.$ac_ext 8285 LDFLAGS=$save_LDFLAGS 8286 8287fi 8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8289$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8290 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8292$as_echo_n "checking for -force_load linker flag... " >&6; } 8293if ${lt_cv_ld_force_load+:} false; then : 8294 $as_echo_n "(cached) " >&6 8295else 8296 lt_cv_ld_force_load=no 8297 cat > conftest.c << _LT_EOF 8298int forced_loaded() { return 2;} 8299_LT_EOF 8300 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8301 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8302 echo "$AR cru libconftest.a conftest.o" >&5 8303 $AR cru libconftest.a conftest.o 2>&5 8304 echo "$RANLIB libconftest.a" >&5 8305 $RANLIB libconftest.a 2>&5 8306 cat > conftest.c << _LT_EOF 8307int main() { return 0;} 8308_LT_EOF 8309 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8310 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8311 _lt_result=$? 8312 if test -s conftest.err && $GREP force_load conftest.err; then 8313 cat conftest.err >&5 8314 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8315 lt_cv_ld_force_load=yes 8316 else 8317 cat conftest.err >&5 8318 fi 8319 rm -f conftest.err libconftest.a conftest conftest.c 8320 rm -rf conftest.dSYM 8321 8322fi 8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8324$as_echo "$lt_cv_ld_force_load" >&6; } 8325 case $host_os in 8326 rhapsody* | darwin1.[012]) 8327 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8328 darwin1.*) 8329 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8330 darwin*) # darwin 5.x on 8331 # if running on 10.5 or later, the deployment target defaults 8332 # to the OS version, if on x86, and 10.4, the deployment 8333 # target defaults to 10.4. Don't you love it? 8334 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8335 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8336 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8337 10.[012][,.]*) 8338 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8339 10.*) 8340 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8341 esac 8342 ;; 8343 esac 8344 if test yes = "$lt_cv_apple_cc_single_mod"; then 8345 _lt_dar_single_mod='$single_module' 8346 fi 8347 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8348 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8349 else 8350 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8351 fi 8352 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8353 _lt_dsymutil='~$DSYMUTIL $lib || :' 8354 else 8355 _lt_dsymutil= 8356 fi 8357 ;; 8358 esac 8359 8360# func_munge_path_list VARIABLE PATH 8361# ----------------------------------- 8362# VARIABLE is name of variable containing _space_ separated list of 8363# directories to be munged by the contents of PATH, which is string 8364# having a format: 8365# "DIR[:DIR]:" 8366# string "DIR[ DIR]" will be prepended to VARIABLE 8367# ":DIR[:DIR]" 8368# string "DIR[ DIR]" will be appended to VARIABLE 8369# "DIRP[:DIRP]::[DIRA:]DIRA" 8370# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8371# "DIRA[ DIRA]" will be appended to VARIABLE 8372# "DIR[:DIR]" 8373# VARIABLE will be replaced by "DIR[ DIR]" 8374func_munge_path_list () 8375{ 8376 case x$2 in 8377 x) 8378 ;; 8379 *:) 8380 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8381 ;; 8382 x:*) 8383 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8384 ;; 8385 *::*) 8386 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8387 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8388 ;; 8389 *) 8390 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8391 ;; 8392 esac 8393} 8394 8395for ac_header in dlfcn.h 8396do : 8397 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8398" 8399if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8400 cat >>confdefs.h <<_ACEOF 8401#define HAVE_DLFCN_H 1 8402_ACEOF 8403 8404fi 8405 8406done 8407 8408 8409 8410 8411 8412# Set options 8413 8414 8415 8416 enable_dlopen=no 8417 8418 8419 enable_win32_dll=no 8420 8421 8422 # Check whether --enable-shared was given. 8423if test "${enable_shared+set}" = set; then : 8424 enableval=$enable_shared; p=${PACKAGE-default} 8425 case $enableval in 8426 yes) enable_shared=yes ;; 8427 no) enable_shared=no ;; 8428 *) 8429 enable_shared=no 8430 # Look at the argument we got. We use all the common list separators. 8431 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8432 for pkg in $enableval; do 8433 IFS=$lt_save_ifs 8434 if test "X$pkg" = "X$p"; then 8435 enable_shared=yes 8436 fi 8437 done 8438 IFS=$lt_save_ifs 8439 ;; 8440 esac 8441else 8442 enable_shared=yes 8443fi 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 # Check whether --enable-static was given. 8454if test "${enable_static+set}" = set; then : 8455 enableval=$enable_static; p=${PACKAGE-default} 8456 case $enableval in 8457 yes) enable_static=yes ;; 8458 no) enable_static=no ;; 8459 *) 8460 enable_static=no 8461 # Look at the argument we got. We use all the common list separators. 8462 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8463 for pkg in $enableval; do 8464 IFS=$lt_save_ifs 8465 if test "X$pkg" = "X$p"; then 8466 enable_static=yes 8467 fi 8468 done 8469 IFS=$lt_save_ifs 8470 ;; 8471 esac 8472else 8473 enable_static=yes 8474fi 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485# Check whether --with-pic was given. 8486if test "${with_pic+set}" = set; then : 8487 withval=$with_pic; lt_p=${PACKAGE-default} 8488 case $withval in 8489 yes|no) pic_mode=$withval ;; 8490 *) 8491 pic_mode=default 8492 # Look at the argument we got. We use all the common list separators. 8493 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8494 for lt_pkg in $withval; do 8495 IFS=$lt_save_ifs 8496 if test "X$lt_pkg" = "X$lt_p"; then 8497 pic_mode=yes 8498 fi 8499 done 8500 IFS=$lt_save_ifs 8501 ;; 8502 esac 8503else 8504 pic_mode=default 8505fi 8506 8507 8508 8509 8510 8511 8512 8513 8514 # Check whether --enable-fast-install was given. 8515if test "${enable_fast_install+set}" = set; then : 8516 enableval=$enable_fast_install; p=${PACKAGE-default} 8517 case $enableval in 8518 yes) enable_fast_install=yes ;; 8519 no) enable_fast_install=no ;; 8520 *) 8521 enable_fast_install=no 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 pkg in $enableval; do 8525 IFS=$lt_save_ifs 8526 if test "X$pkg" = "X$p"; then 8527 enable_fast_install=yes 8528 fi 8529 done 8530 IFS=$lt_save_ifs 8531 ;; 8532 esac 8533else 8534 enable_fast_install=yes 8535fi 8536 8537 8538 8539 8540 8541 8542 8543 8544 shared_archive_member_spec= 8545case $host,$enable_shared in 8546power*-*-aix[5-9]*,yes) 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8548$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8549 8550# Check whether --with-aix-soname was given. 8551if test "${with_aix_soname+set}" = set; then : 8552 withval=$with_aix_soname; case $withval in 8553 aix|svr4|both) 8554 ;; 8555 *) 8556 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8557 ;; 8558 esac 8559 lt_cv_with_aix_soname=$with_aix_soname 8560else 8561 if ${lt_cv_with_aix_soname+:} false; then : 8562 $as_echo_n "(cached) " >&6 8563else 8564 lt_cv_with_aix_soname=aix 8565fi 8566 8567 with_aix_soname=$lt_cv_with_aix_soname 8568fi 8569 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8571$as_echo "$with_aix_soname" >&6; } 8572 if test aix != "$with_aix_soname"; then 8573 # For the AIX way of multilib, we name the shared archive member 8574 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8575 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8576 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8577 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8578 if test 64 = "${OBJECT_MODE-32}"; then 8579 shared_archive_member_spec=shr_64 8580 else 8581 shared_archive_member_spec=shr 8582 fi 8583 fi 8584 ;; 8585*) 8586 with_aix_soname=aix 8587 ;; 8588esac 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599# This can be used to rebuild libtool when needed 8600LIBTOOL_DEPS=$ltmain 8601 8602# Always use our own libtool. 8603LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634test -z "$LN_S" && LN_S="ln -s" 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649if test -n "${ZSH_VERSION+set}"; then 8650 setopt NO_GLOB_SUBST 8651fi 8652 8653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8654$as_echo_n "checking for objdir... " >&6; } 8655if ${lt_cv_objdir+:} false; then : 8656 $as_echo_n "(cached) " >&6 8657else 8658 rm -f .libs 2>/dev/null 8659mkdir .libs 2>/dev/null 8660if test -d .libs; then 8661 lt_cv_objdir=.libs 8662else 8663 # MS-DOS does not allow filenames that begin with a dot. 8664 lt_cv_objdir=_libs 8665fi 8666rmdir .libs 2>/dev/null 8667fi 8668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8669$as_echo "$lt_cv_objdir" >&6; } 8670objdir=$lt_cv_objdir 8671 8672 8673 8674 8675 8676cat >>confdefs.h <<_ACEOF 8677#define LT_OBJDIR "$lt_cv_objdir/" 8678_ACEOF 8679 8680 8681 8682 8683case $host_os in 8684aix3*) 8685 # AIX sometimes has problems with the GCC collect2 program. For some 8686 # reason, if we set the COLLECT_NAMES environment variable, the problems 8687 # vanish in a puff of smoke. 8688 if test set != "${COLLECT_NAMES+set}"; then 8689 COLLECT_NAMES= 8690 export COLLECT_NAMES 8691 fi 8692 ;; 8693esac 8694 8695# Global variables: 8696ofile=libtool 8697can_build_shared=yes 8698 8699# All known linkers require a '.a' archive for static linking (except MSVC, 8700# which needs '.lib'). 8701libext=a 8702 8703with_gnu_ld=$lt_cv_prog_gnu_ld 8704 8705old_CC=$CC 8706old_CFLAGS=$CFLAGS 8707 8708# Set sane defaults for various variables 8709test -z "$CC" && CC=cc 8710test -z "$LTCC" && LTCC=$CC 8711test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8712test -z "$LD" && LD=ld 8713test -z "$ac_objext" && ac_objext=o 8714 8715func_cc_basename $compiler 8716cc_basename=$func_cc_basename_result 8717 8718 8719# Only perform the check for file, if the check method requires it 8720test -z "$MAGIC_CMD" && MAGIC_CMD=file 8721case $deplibs_check_method in 8722file_magic*) 8723 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8725$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8726if ${lt_cv_path_MAGIC_CMD+:} false; then : 8727 $as_echo_n "(cached) " >&6 8728else 8729 case $MAGIC_CMD in 8730[\\/*] | ?:[\\/]*) 8731 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8732 ;; 8733*) 8734 lt_save_MAGIC_CMD=$MAGIC_CMD 8735 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8736 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8737 for ac_dir in $ac_dummy; do 8738 IFS=$lt_save_ifs 8739 test -z "$ac_dir" && ac_dir=. 8740 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8741 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8742 if test -n "$file_magic_test_file"; then 8743 case $deplibs_check_method in 8744 "file_magic "*) 8745 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8746 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8747 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8748 $EGREP "$file_magic_regex" > /dev/null; then 8749 : 8750 else 8751 cat <<_LT_EOF 1>&2 8752 8753*** Warning: the command libtool uses to detect shared libraries, 8754*** $file_magic_cmd, produces output that libtool cannot recognize. 8755*** The result is that libtool may fail to recognize shared libraries 8756*** as such. This will affect the creation of libtool libraries that 8757*** depend on shared libraries, but programs linked with such libtool 8758*** libraries will work regardless of this problem. Nevertheless, you 8759*** may want to report the problem to your system manager and/or to 8760*** bug-libtool@gnu.org 8761 8762_LT_EOF 8763 fi ;; 8764 esac 8765 fi 8766 break 8767 fi 8768 done 8769 IFS=$lt_save_ifs 8770 MAGIC_CMD=$lt_save_MAGIC_CMD 8771 ;; 8772esac 8773fi 8774 8775MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8776if test -n "$MAGIC_CMD"; then 8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8778$as_echo "$MAGIC_CMD" >&6; } 8779else 8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8781$as_echo "no" >&6; } 8782fi 8783 8784 8785 8786 8787 8788if test -z "$lt_cv_path_MAGIC_CMD"; then 8789 if test -n "$ac_tool_prefix"; then 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8791$as_echo_n "checking for file... " >&6; } 8792if ${lt_cv_path_MAGIC_CMD+:} false; then : 8793 $as_echo_n "(cached) " >&6 8794else 8795 case $MAGIC_CMD in 8796[\\/*] | ?:[\\/]*) 8797 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8798 ;; 8799*) 8800 lt_save_MAGIC_CMD=$MAGIC_CMD 8801 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8802 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8803 for ac_dir in $ac_dummy; do 8804 IFS=$lt_save_ifs 8805 test -z "$ac_dir" && ac_dir=. 8806 if test -f "$ac_dir/file"; then 8807 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8808 if test -n "$file_magic_test_file"; then 8809 case $deplibs_check_method in 8810 "file_magic "*) 8811 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8812 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8813 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8814 $EGREP "$file_magic_regex" > /dev/null; then 8815 : 8816 else 8817 cat <<_LT_EOF 1>&2 8818 8819*** Warning: the command libtool uses to detect shared libraries, 8820*** $file_magic_cmd, produces output that libtool cannot recognize. 8821*** The result is that libtool may fail to recognize shared libraries 8822*** as such. This will affect the creation of libtool libraries that 8823*** depend on shared libraries, but programs linked with such libtool 8824*** libraries will work regardless of this problem. Nevertheless, you 8825*** may want to report the problem to your system manager and/or to 8826*** bug-libtool@gnu.org 8827 8828_LT_EOF 8829 fi ;; 8830 esac 8831 fi 8832 break 8833 fi 8834 done 8835 IFS=$lt_save_ifs 8836 MAGIC_CMD=$lt_save_MAGIC_CMD 8837 ;; 8838esac 8839fi 8840 8841MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8842if test -n "$MAGIC_CMD"; then 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8844$as_echo "$MAGIC_CMD" >&6; } 8845else 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8847$as_echo "no" >&6; } 8848fi 8849 8850 8851 else 8852 MAGIC_CMD=: 8853 fi 8854fi 8855 8856 fi 8857 ;; 8858esac 8859 8860# Use C for the default configuration in the libtool script 8861 8862lt_save_CC=$CC 8863ac_ext=c 8864ac_cpp='$CPP $CPPFLAGS' 8865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8867ac_compiler_gnu=$ac_cv_c_compiler_gnu 8868 8869 8870# Source file extension for C test sources. 8871ac_ext=c 8872 8873# Object file extension for compiled C test sources. 8874objext=o 8875objext=$objext 8876 8877# Code to be used in simple compile tests 8878lt_simple_compile_test_code="int some_variable = 0;" 8879 8880# Code to be used in simple link tests 8881lt_simple_link_test_code='int main(){return(0);}' 8882 8883 8884 8885 8886 8887 8888 8889# If no C compiler was specified, use CC. 8890LTCC=${LTCC-"$CC"} 8891 8892# If no C compiler flags were specified, use CFLAGS. 8893LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8894 8895# Allow CC to be a program name with arguments. 8896compiler=$CC 8897 8898# Save the default compiler, since it gets overwritten when the other 8899# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8900compiler_DEFAULT=$CC 8901 8902# save warnings/boilerplate of simple test code 8903ac_outfile=conftest.$ac_objext 8904echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8905eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8906_lt_compiler_boilerplate=`cat conftest.err` 8907$RM conftest* 8908 8909ac_outfile=conftest.$ac_objext 8910echo "$lt_simple_link_test_code" >conftest.$ac_ext 8911eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8912_lt_linker_boilerplate=`cat conftest.err` 8913$RM -r conftest* 8914 8915 8916## CAVEAT EMPTOR: 8917## There is no encapsulation within the following macros, do not change 8918## the running order or otherwise move them around unless you know exactly 8919## what you are doing... 8920if test -n "$compiler"; then 8921 8922lt_prog_compiler_no_builtin_flag= 8923 8924if test yes = "$GCC"; then 8925 case $cc_basename in 8926 nvcc*) 8927 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8928 *) 8929 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8930 esac 8931 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8933$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8934if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8935 $as_echo_n "(cached) " >&6 8936else 8937 lt_cv_prog_compiler_rtti_exceptions=no 8938 ac_outfile=conftest.$ac_objext 8939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8940 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8941 # Insert the option either (1) after the last *FLAGS variable, or 8942 # (2) before a word containing "conftest.", or (3) at the end. 8943 # Note that $ac_compile itself does not contain backslashes and begins 8944 # with a dollar sign (not a hyphen), so the echo should work correctly. 8945 # The option is referenced via a variable to avoid confusing sed. 8946 lt_compile=`echo "$ac_compile" | $SED \ 8947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8949 -e 's:$: $lt_compiler_flag:'` 8950 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8951 (eval "$lt_compile" 2>conftest.err) 8952 ac_status=$? 8953 cat conftest.err >&5 8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8955 if (exit $ac_status) && test -s "$ac_outfile"; then 8956 # The compiler can only warn and ignore the option if not recognized 8957 # So say no if there are warnings other than the usual output. 8958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8960 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8961 lt_cv_prog_compiler_rtti_exceptions=yes 8962 fi 8963 fi 8964 $RM conftest* 8965 8966fi 8967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8968$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8969 8970if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8971 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8972else 8973 : 8974fi 8975 8976fi 8977 8978 8979 8980 8981 8982 8983 lt_prog_compiler_wl= 8984lt_prog_compiler_pic= 8985lt_prog_compiler_static= 8986 8987 8988 if test yes = "$GCC"; then 8989 lt_prog_compiler_wl='-Wl,' 8990 lt_prog_compiler_static='-static' 8991 8992 case $host_os in 8993 aix*) 8994 # All AIX code is PIC. 8995 if test ia64 = "$host_cpu"; then 8996 # AIX 5 now supports IA64 processor 8997 lt_prog_compiler_static='-Bstatic' 8998 fi 8999 lt_prog_compiler_pic='-fPIC' 9000 ;; 9001 9002 amigaos*) 9003 case $host_cpu in 9004 powerpc) 9005 # see comment about AmigaOS4 .so support 9006 lt_prog_compiler_pic='-fPIC' 9007 ;; 9008 m68k) 9009 # FIXME: we need at least 68020 code to build shared libraries, but 9010 # adding the '-m68020' flag to GCC prevents building anything better, 9011 # like '-m68040'. 9012 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9013 ;; 9014 esac 9015 ;; 9016 9017 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9018 # PIC is the default for these OSes. 9019 ;; 9020 9021 mingw* | cygwin* | pw32* | os2* | cegcc*) 9022 # This hack is so that the source file can tell whether it is being 9023 # built for inclusion in a dll (and should export symbols for example). 9024 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9025 # (--disable-auto-import) libraries 9026 lt_prog_compiler_pic='-DDLL_EXPORT' 9027 case $host_os in 9028 os2*) 9029 lt_prog_compiler_static='$wl-static' 9030 ;; 9031 esac 9032 ;; 9033 9034 darwin* | rhapsody*) 9035 # PIC is the default on this platform 9036 # Common symbols not allowed in MH_DYLIB files 9037 lt_prog_compiler_pic='-fno-common' 9038 ;; 9039 9040 haiku*) 9041 # PIC is the default for Haiku. 9042 # The "-static" flag exists, but is broken. 9043 lt_prog_compiler_static= 9044 ;; 9045 9046 hpux*) 9047 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9048 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9049 # sets the default TLS model and affects inlining. 9050 case $host_cpu in 9051 hppa*64*) 9052 # +Z the default 9053 ;; 9054 *) 9055 lt_prog_compiler_pic='-fPIC' 9056 ;; 9057 esac 9058 ;; 9059 9060 interix[3-9]*) 9061 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9062 # Instead, we relocate shared libraries at runtime. 9063 ;; 9064 9065 msdosdjgpp*) 9066 # Just because we use GCC doesn't mean we suddenly get shared libraries 9067 # on systems that don't support them. 9068 lt_prog_compiler_can_build_shared=no 9069 enable_shared=no 9070 ;; 9071 9072 *nto* | *qnx*) 9073 # QNX uses GNU C++, but need to define -shared option too, otherwise 9074 # it will coredump. 9075 lt_prog_compiler_pic='-fPIC -shared' 9076 ;; 9077 9078 sysv4*MP*) 9079 if test -d /usr/nec; then 9080 lt_prog_compiler_pic=-Kconform_pic 9081 fi 9082 ;; 9083 9084 *) 9085 lt_prog_compiler_pic='-fPIC' 9086 ;; 9087 esac 9088 9089 case $cc_basename in 9090 nvcc*) # Cuda Compiler Driver 2.2 9091 lt_prog_compiler_wl='-Xlinker ' 9092 if test -n "$lt_prog_compiler_pic"; then 9093 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9094 fi 9095 ;; 9096 esac 9097 else 9098 # PORTME Check for flag to pass linker flags through the system compiler. 9099 case $host_os in 9100 aix*) 9101 lt_prog_compiler_wl='-Wl,' 9102 if test ia64 = "$host_cpu"; then 9103 # AIX 5 now supports IA64 processor 9104 lt_prog_compiler_static='-Bstatic' 9105 else 9106 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9107 fi 9108 ;; 9109 9110 darwin* | rhapsody*) 9111 # PIC is the default on this platform 9112 # Common symbols not allowed in MH_DYLIB files 9113 lt_prog_compiler_pic='-fno-common' 9114 case $cc_basename in 9115 nagfor*) 9116 # NAG Fortran compiler 9117 lt_prog_compiler_wl='-Wl,-Wl,,' 9118 lt_prog_compiler_pic='-PIC' 9119 lt_prog_compiler_static='-Bstatic' 9120 ;; 9121 esac 9122 ;; 9123 9124 mingw* | cygwin* | pw32* | os2* | cegcc*) 9125 # This hack is so that the source file can tell whether it is being 9126 # built for inclusion in a dll (and should export symbols for example). 9127 lt_prog_compiler_pic='-DDLL_EXPORT' 9128 case $host_os in 9129 os2*) 9130 lt_prog_compiler_static='$wl-static' 9131 ;; 9132 esac 9133 ;; 9134 9135 hpux9* | hpux10* | hpux11*) 9136 lt_prog_compiler_wl='-Wl,' 9137 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9138 # not for PA HP-UX. 9139 case $host_cpu in 9140 hppa*64*|ia64*) 9141 # +Z the default 9142 ;; 9143 *) 9144 lt_prog_compiler_pic='+Z' 9145 ;; 9146 esac 9147 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9148 lt_prog_compiler_static='$wl-a ${wl}archive' 9149 ;; 9150 9151 irix5* | irix6* | nonstopux*) 9152 lt_prog_compiler_wl='-Wl,' 9153 # PIC (with -KPIC) is the default. 9154 lt_prog_compiler_static='-non_shared' 9155 ;; 9156 9157 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9158 case $cc_basename in 9159 # old Intel for x86_64, which still supported -KPIC. 9160 ecc*) 9161 lt_prog_compiler_wl='-Wl,' 9162 lt_prog_compiler_pic='-KPIC' 9163 lt_prog_compiler_static='-static' 9164 ;; 9165 # icc used to be incompatible with GCC. 9166 # ICC 10 doesn't accept -KPIC any more. 9167 icc* | ifort*) 9168 lt_prog_compiler_wl='-Wl,' 9169 lt_prog_compiler_pic='-fPIC' 9170 lt_prog_compiler_static='-static' 9171 ;; 9172 # Lahey Fortran 8.1. 9173 lf95*) 9174 lt_prog_compiler_wl='-Wl,' 9175 lt_prog_compiler_pic='--shared' 9176 lt_prog_compiler_static='--static' 9177 ;; 9178 nagfor*) 9179 # NAG Fortran compiler 9180 lt_prog_compiler_wl='-Wl,-Wl,,' 9181 lt_prog_compiler_pic='-PIC' 9182 lt_prog_compiler_static='-Bstatic' 9183 ;; 9184 tcc*) 9185 # Fabrice Bellard et al's Tiny C Compiler 9186 lt_prog_compiler_wl='-Wl,' 9187 lt_prog_compiler_pic='-fPIC' 9188 lt_prog_compiler_static='-static' 9189 ;; 9190 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9191 # Portland Group compilers (*not* the Pentium gcc compiler, 9192 # which looks to be a dead project) 9193 lt_prog_compiler_wl='-Wl,' 9194 lt_prog_compiler_pic='-fpic' 9195 lt_prog_compiler_static='-Bstatic' 9196 ;; 9197 ccc*) 9198 lt_prog_compiler_wl='-Wl,' 9199 # All Alpha code is PIC. 9200 lt_prog_compiler_static='-non_shared' 9201 ;; 9202 xl* | bgxl* | bgf* | mpixl*) 9203 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9204 lt_prog_compiler_wl='-Wl,' 9205 lt_prog_compiler_pic='-qpic' 9206 lt_prog_compiler_static='-qstaticlink' 9207 ;; 9208 *) 9209 case `$CC -V 2>&1 | sed 5q` in 9210 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9211 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9212 lt_prog_compiler_pic='-KPIC' 9213 lt_prog_compiler_static='-Bstatic' 9214 lt_prog_compiler_wl='' 9215 ;; 9216 *Sun\ F* | *Sun*Fortran*) 9217 lt_prog_compiler_pic='-KPIC' 9218 lt_prog_compiler_static='-Bstatic' 9219 lt_prog_compiler_wl='-Qoption ld ' 9220 ;; 9221 *Sun\ C*) 9222 # Sun C 5.9 9223 lt_prog_compiler_pic='-KPIC' 9224 lt_prog_compiler_static='-Bstatic' 9225 lt_prog_compiler_wl='-Wl,' 9226 ;; 9227 *Intel*\ [CF]*Compiler*) 9228 lt_prog_compiler_wl='-Wl,' 9229 lt_prog_compiler_pic='-fPIC' 9230 lt_prog_compiler_static='-static' 9231 ;; 9232 *Portland\ Group*) 9233 lt_prog_compiler_wl='-Wl,' 9234 lt_prog_compiler_pic='-fpic' 9235 lt_prog_compiler_static='-Bstatic' 9236 ;; 9237 esac 9238 ;; 9239 esac 9240 ;; 9241 9242 newsos6) 9243 lt_prog_compiler_pic='-KPIC' 9244 lt_prog_compiler_static='-Bstatic' 9245 ;; 9246 9247 *nto* | *qnx*) 9248 # QNX uses GNU C++, but need to define -shared option too, otherwise 9249 # it will coredump. 9250 lt_prog_compiler_pic='-fPIC -shared' 9251 ;; 9252 9253 osf3* | osf4* | osf5*) 9254 lt_prog_compiler_wl='-Wl,' 9255 # All OSF/1 code is PIC. 9256 lt_prog_compiler_static='-non_shared' 9257 ;; 9258 9259 rdos*) 9260 lt_prog_compiler_static='-non_shared' 9261 ;; 9262 9263 solaris*) 9264 lt_prog_compiler_pic='-KPIC' 9265 lt_prog_compiler_static='-Bstatic' 9266 case $cc_basename in 9267 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9268 lt_prog_compiler_wl='-Qoption ld ';; 9269 *) 9270 lt_prog_compiler_wl='-Wl,';; 9271 esac 9272 ;; 9273 9274 sunos4*) 9275 lt_prog_compiler_wl='-Qoption ld ' 9276 lt_prog_compiler_pic='-PIC' 9277 lt_prog_compiler_static='-Bstatic' 9278 ;; 9279 9280 sysv4 | sysv4.2uw2* | sysv4.3*) 9281 lt_prog_compiler_wl='-Wl,' 9282 lt_prog_compiler_pic='-KPIC' 9283 lt_prog_compiler_static='-Bstatic' 9284 ;; 9285 9286 sysv4*MP*) 9287 if test -d /usr/nec; then 9288 lt_prog_compiler_pic='-Kconform_pic' 9289 lt_prog_compiler_static='-Bstatic' 9290 fi 9291 ;; 9292 9293 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9294 lt_prog_compiler_wl='-Wl,' 9295 lt_prog_compiler_pic='-KPIC' 9296 lt_prog_compiler_static='-Bstatic' 9297 ;; 9298 9299 unicos*) 9300 lt_prog_compiler_wl='-Wl,' 9301 lt_prog_compiler_can_build_shared=no 9302 ;; 9303 9304 uts4*) 9305 lt_prog_compiler_pic='-pic' 9306 lt_prog_compiler_static='-Bstatic' 9307 ;; 9308 9309 *) 9310 lt_prog_compiler_can_build_shared=no 9311 ;; 9312 esac 9313 fi 9314 9315case $host_os in 9316 # For platforms that do not support PIC, -DPIC is meaningless: 9317 *djgpp*) 9318 lt_prog_compiler_pic= 9319 ;; 9320 *) 9321 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9322 ;; 9323esac 9324 9325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9326$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9327if ${lt_cv_prog_compiler_pic+:} false; then : 9328 $as_echo_n "(cached) " >&6 9329else 9330 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9331fi 9332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9333$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9334lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9335 9336# 9337# Check to make sure the PIC flag actually works. 9338# 9339if test -n "$lt_prog_compiler_pic"; then 9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9341$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9342if ${lt_cv_prog_compiler_pic_works+:} false; then : 9343 $as_echo_n "(cached) " >&6 9344else 9345 lt_cv_prog_compiler_pic_works=no 9346 ac_outfile=conftest.$ac_objext 9347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9348 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9349 # Insert the option either (1) after the last *FLAGS variable, or 9350 # (2) before a word containing "conftest.", or (3) at the end. 9351 # Note that $ac_compile itself does not contain backslashes and begins 9352 # with a dollar sign (not a hyphen), so the echo should work correctly. 9353 # The option is referenced via a variable to avoid confusing sed. 9354 lt_compile=`echo "$ac_compile" | $SED \ 9355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9357 -e 's:$: $lt_compiler_flag:'` 9358 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9359 (eval "$lt_compile" 2>conftest.err) 9360 ac_status=$? 9361 cat conftest.err >&5 9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9363 if (exit $ac_status) && test -s "$ac_outfile"; then 9364 # The compiler can only warn and ignore the option if not recognized 9365 # So say no if there are warnings other than the usual output. 9366 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9368 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9369 lt_cv_prog_compiler_pic_works=yes 9370 fi 9371 fi 9372 $RM conftest* 9373 9374fi 9375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9376$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9377 9378if test yes = "$lt_cv_prog_compiler_pic_works"; then 9379 case $lt_prog_compiler_pic in 9380 "" | " "*) ;; 9381 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9382 esac 9383else 9384 lt_prog_compiler_pic= 9385 lt_prog_compiler_can_build_shared=no 9386fi 9387 9388fi 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400# 9401# Check to make sure the static flag actually works. 9402# 9403wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9405$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9406if ${lt_cv_prog_compiler_static_works+:} false; then : 9407 $as_echo_n "(cached) " >&6 9408else 9409 lt_cv_prog_compiler_static_works=no 9410 save_LDFLAGS=$LDFLAGS 9411 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9412 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9413 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9414 # The linker can only warn and ignore the option if not recognized 9415 # So say no if there are warnings 9416 if test -s conftest.err; then 9417 # Append any errors to the config.log. 9418 cat conftest.err 1>&5 9419 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9421 if diff conftest.exp conftest.er2 >/dev/null; then 9422 lt_cv_prog_compiler_static_works=yes 9423 fi 9424 else 9425 lt_cv_prog_compiler_static_works=yes 9426 fi 9427 fi 9428 $RM -r conftest* 9429 LDFLAGS=$save_LDFLAGS 9430 9431fi 9432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9433$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9434 9435if test yes = "$lt_cv_prog_compiler_static_works"; then 9436 : 9437else 9438 lt_prog_compiler_static= 9439fi 9440 9441 9442 9443 9444 9445 9446 9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9448$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9449if ${lt_cv_prog_compiler_c_o+:} false; then : 9450 $as_echo_n "(cached) " >&6 9451else 9452 lt_cv_prog_compiler_c_o=no 9453 $RM -r conftest 2>/dev/null 9454 mkdir conftest 9455 cd conftest 9456 mkdir out 9457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9458 9459 lt_compiler_flag="-o out/conftest2.$ac_objext" 9460 # Insert the option either (1) after the last *FLAGS variable, or 9461 # (2) before a word containing "conftest.", or (3) at the end. 9462 # Note that $ac_compile itself does not contain backslashes and begins 9463 # with a dollar sign (not a hyphen), so the echo should work correctly. 9464 lt_compile=`echo "$ac_compile" | $SED \ 9465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9467 -e 's:$: $lt_compiler_flag:'` 9468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9469 (eval "$lt_compile" 2>out/conftest.err) 9470 ac_status=$? 9471 cat out/conftest.err >&5 9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9473 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9474 then 9475 # The compiler can only warn and ignore the option if not recognized 9476 # So say no if there are warnings 9477 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9478 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9479 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9480 lt_cv_prog_compiler_c_o=yes 9481 fi 9482 fi 9483 chmod u+w . 2>&5 9484 $RM conftest* 9485 # SGI C++ compiler will create directory out/ii_files/ for 9486 # template instantiation 9487 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9488 $RM out/* && rmdir out 9489 cd .. 9490 $RM -r conftest 9491 $RM conftest* 9492 9493fi 9494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9495$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9496 9497 9498 9499 9500 9501 9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9503$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9504if ${lt_cv_prog_compiler_c_o+:} false; then : 9505 $as_echo_n "(cached) " >&6 9506else 9507 lt_cv_prog_compiler_c_o=no 9508 $RM -r conftest 2>/dev/null 9509 mkdir conftest 9510 cd conftest 9511 mkdir out 9512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9513 9514 lt_compiler_flag="-o out/conftest2.$ac_objext" 9515 # Insert the option either (1) after the last *FLAGS variable, or 9516 # (2) before a word containing "conftest.", or (3) at the end. 9517 # Note that $ac_compile itself does not contain backslashes and begins 9518 # with a dollar sign (not a hyphen), so the echo should work correctly. 9519 lt_compile=`echo "$ac_compile" | $SED \ 9520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9522 -e 's:$: $lt_compiler_flag:'` 9523 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9524 (eval "$lt_compile" 2>out/conftest.err) 9525 ac_status=$? 9526 cat out/conftest.err >&5 9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9528 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9529 then 9530 # The compiler can only warn and ignore the option if not recognized 9531 # So say no if there are warnings 9532 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9533 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9534 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9535 lt_cv_prog_compiler_c_o=yes 9536 fi 9537 fi 9538 chmod u+w . 2>&5 9539 $RM conftest* 9540 # SGI C++ compiler will create directory out/ii_files/ for 9541 # template instantiation 9542 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9543 $RM out/* && rmdir out 9544 cd .. 9545 $RM -r conftest 9546 $RM conftest* 9547 9548fi 9549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9550$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9551 9552 9553 9554 9555hard_links=nottested 9556if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9557 # do not overwrite the value of need_locks provided by the user 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9559$as_echo_n "checking if we can lock with hard links... " >&6; } 9560 hard_links=yes 9561 $RM conftest* 9562 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9563 touch conftest.a 9564 ln conftest.a conftest.b 2>&5 || hard_links=no 9565 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9567$as_echo "$hard_links" >&6; } 9568 if test no = "$hard_links"; then 9569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9570$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9571 need_locks=warn 9572 fi 9573else 9574 need_locks=no 9575fi 9576 9577 9578 9579 9580 9581 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9583$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9584 9585 runpath_var= 9586 allow_undefined_flag= 9587 always_export_symbols=no 9588 archive_cmds= 9589 archive_expsym_cmds= 9590 compiler_needs_object=no 9591 enable_shared_with_static_runtimes=no 9592 export_dynamic_flag_spec= 9593 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9594 hardcode_automatic=no 9595 hardcode_direct=no 9596 hardcode_direct_absolute=no 9597 hardcode_libdir_flag_spec= 9598 hardcode_libdir_separator= 9599 hardcode_minus_L=no 9600 hardcode_shlibpath_var=unsupported 9601 inherit_rpath=no 9602 link_all_deplibs=unknown 9603 module_cmds= 9604 module_expsym_cmds= 9605 old_archive_from_new_cmds= 9606 old_archive_from_expsyms_cmds= 9607 thread_safe_flag_spec= 9608 whole_archive_flag_spec= 9609 # include_expsyms should be a list of space-separated symbols to be *always* 9610 # included in the symbol list 9611 include_expsyms= 9612 # exclude_expsyms can be an extended regexp of symbols to exclude 9613 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9614 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9615 # as well as any symbol that contains 'd'. 9616 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9617 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9618 # platforms (ab)use it in PIC code, but their linkers get confused if 9619 # the symbol is explicitly referenced. Since portable code cannot 9620 # rely on this symbol name, it's probably fine to never include it in 9621 # preloaded symbol tables. 9622 # Exclude shared library initialization/finalization symbols. 9623 extract_expsyms_cmds= 9624 9625 case $host_os in 9626 cygwin* | mingw* | pw32* | cegcc*) 9627 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9628 # When not using gcc, we currently assume that we are using 9629 # Microsoft Visual C++. 9630 if test yes != "$GCC"; then 9631 with_gnu_ld=no 9632 fi 9633 ;; 9634 interix*) 9635 # we just hope/assume this is gcc and not c89 (= MSVC++) 9636 with_gnu_ld=yes 9637 ;; 9638 openbsd* | bitrig*) 9639 with_gnu_ld=no 9640 ;; 9641 esac 9642 9643 ld_shlibs=yes 9644 9645 # On some targets, GNU ld is compatible enough with the native linker 9646 # that we're better off using the native interface for both. 9647 lt_use_gnu_ld_interface=no 9648 if test yes = "$with_gnu_ld"; then 9649 case $host_os in 9650 aix*) 9651 # The AIX port of GNU ld has always aspired to compatibility 9652 # with the native linker. However, as the warning in the GNU ld 9653 # block says, versions before 2.19.5* couldn't really create working 9654 # shared libraries, regardless of the interface used. 9655 case `$LD -v 2>&1` in 9656 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9657 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9658 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9659 *) 9660 lt_use_gnu_ld_interface=yes 9661 ;; 9662 esac 9663 ;; 9664 *) 9665 lt_use_gnu_ld_interface=yes 9666 ;; 9667 esac 9668 fi 9669 9670 if test yes = "$lt_use_gnu_ld_interface"; then 9671 # If archive_cmds runs LD, not CC, wlarc should be empty 9672 wlarc='$wl' 9673 9674 # Set some defaults for GNU ld with shared library support. These 9675 # are reset later if shared libraries are not supported. Putting them 9676 # here allows them to be overridden if necessary. 9677 runpath_var=LD_RUN_PATH 9678 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9679 export_dynamic_flag_spec='$wl--export-dynamic' 9680 # ancient GNU ld didn't support --whole-archive et. al. 9681 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9682 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9683 else 9684 whole_archive_flag_spec= 9685 fi 9686 supports_anon_versioning=no 9687 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9688 *GNU\ gold*) supports_anon_versioning=yes ;; 9689 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9690 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9691 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9692 *\ 2.11.*) ;; # other 2.11 versions 9693 *) supports_anon_versioning=yes ;; 9694 esac 9695 9696 # See if GNU ld supports shared libraries. 9697 case $host_os in 9698 aix[3-9]*) 9699 # On AIX/PPC, the GNU linker is very broken 9700 if test ia64 != "$host_cpu"; then 9701 ld_shlibs=no 9702 cat <<_LT_EOF 1>&2 9703 9704*** Warning: the GNU linker, at least up to release 2.19, is reported 9705*** to be unable to reliably create shared libraries on AIX. 9706*** Therefore, libtool is disabling shared libraries support. If you 9707*** really care for shared libraries, you may want to install binutils 9708*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9709*** You will then need to restart the configuration process. 9710 9711_LT_EOF 9712 fi 9713 ;; 9714 9715 amigaos*) 9716 case $host_cpu in 9717 powerpc) 9718 # see comment about AmigaOS4 .so support 9719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9720 archive_expsym_cmds='' 9721 ;; 9722 m68k) 9723 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)' 9724 hardcode_libdir_flag_spec='-L$libdir' 9725 hardcode_minus_L=yes 9726 ;; 9727 esac 9728 ;; 9729 9730 beos*) 9731 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9732 allow_undefined_flag=unsupported 9733 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9734 # support --undefined. This deserves some investigation. FIXME 9735 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9736 else 9737 ld_shlibs=no 9738 fi 9739 ;; 9740 9741 cygwin* | mingw* | pw32* | cegcc*) 9742 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9743 # as there is no search path for DLLs. 9744 hardcode_libdir_flag_spec='-L$libdir' 9745 export_dynamic_flag_spec='$wl--export-all-symbols' 9746 allow_undefined_flag=unsupported 9747 always_export_symbols=no 9748 enable_shared_with_static_runtimes=yes 9749 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' 9750 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9751 9752 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9754 # If the export-symbols file already is a .def file, use it as 9755 # is; otherwise, prepend EXPORTS... 9756 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9757 cp $export_symbols $output_objdir/$soname.def; 9758 else 9759 echo EXPORTS > $output_objdir/$soname.def; 9760 cat $export_symbols >> $output_objdir/$soname.def; 9761 fi~ 9762 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9763 else 9764 ld_shlibs=no 9765 fi 9766 ;; 9767 9768 haiku*) 9769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9770 link_all_deplibs=yes 9771 ;; 9772 9773 os2*) 9774 hardcode_libdir_flag_spec='-L$libdir' 9775 hardcode_minus_L=yes 9776 allow_undefined_flag=unsupported 9777 shrext_cmds=.dll 9778 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9779 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9780 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9781 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9782 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9783 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9784 emximp -o $lib $output_objdir/$libname.def' 9785 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9786 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9787 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9788 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9789 prefix_cmds="$SED"~ 9790 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9791 prefix_cmds="$prefix_cmds -e 1d"; 9792 fi~ 9793 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9794 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9795 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9796 emximp -o $lib $output_objdir/$libname.def' 9797 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9798 enable_shared_with_static_runtimes=yes 9799 ;; 9800 9801 interix[3-9]*) 9802 hardcode_direct=no 9803 hardcode_shlibpath_var=no 9804 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9805 export_dynamic_flag_spec='$wl-E' 9806 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9807 # Instead, shared libraries are loaded at an image base (0x10000000 by 9808 # default) and relocated if they conflict, which is a slow very memory 9809 # consuming and fragmenting process. To avoid this, we pick a random, 9810 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9811 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9812 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9813 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' 9814 ;; 9815 9816 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9817 tmp_diet=no 9818 if test linux-dietlibc = "$host_os"; then 9819 case $cc_basename in 9820 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9821 esac 9822 fi 9823 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9824 && test no = "$tmp_diet" 9825 then 9826 tmp_addflag=' $pic_flag' 9827 tmp_sharedflag='-shared' 9828 case $cc_basename,$host_cpu in 9829 pgcc*) # Portland Group C compiler 9830 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' 9831 tmp_addflag=' $pic_flag' 9832 ;; 9833 pgf77* | pgf90* | pgf95* | pgfortran*) 9834 # Portland Group f77 and f90 compilers 9835 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' 9836 tmp_addflag=' $pic_flag -Mnomain' ;; 9837 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9838 tmp_addflag=' -i_dynamic' ;; 9839 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9840 tmp_addflag=' -i_dynamic -nofor_main' ;; 9841 ifc* | ifort*) # Intel Fortran compiler 9842 tmp_addflag=' -nofor_main' ;; 9843 lf95*) # Lahey Fortran 8.1 9844 whole_archive_flag_spec= 9845 tmp_sharedflag='--shared' ;; 9846 nagfor*) # NAGFOR 5.3 9847 tmp_sharedflag='-Wl,-shared' ;; 9848 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9849 tmp_sharedflag='-qmkshrobj' 9850 tmp_addflag= ;; 9851 nvcc*) # Cuda Compiler Driver 2.2 9852 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' 9853 compiler_needs_object=yes 9854 ;; 9855 esac 9856 case `$CC -V 2>&1 | sed 5q` in 9857 *Sun\ C*) # Sun C 5.9 9858 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' 9859 compiler_needs_object=yes 9860 tmp_sharedflag='-G' ;; 9861 *Sun\ F*) # Sun Fortran 8.3 9862 tmp_sharedflag='-G' ;; 9863 esac 9864 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9865 9866 if test yes = "$supports_anon_versioning"; then 9867 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9868 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9869 echo "local: *; };" >> $output_objdir/$libname.ver~ 9870 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9871 fi 9872 9873 case $cc_basename in 9874 tcc*) 9875 export_dynamic_flag_spec='-rdynamic' 9876 ;; 9877 xlf* | bgf* | bgxlf* | mpixlf*) 9878 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9879 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9880 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9881 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9882 if test yes = "$supports_anon_versioning"; then 9883 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9884 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9885 echo "local: *; };" >> $output_objdir/$libname.ver~ 9886 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9887 fi 9888 ;; 9889 esac 9890 else 9891 ld_shlibs=no 9892 fi 9893 ;; 9894 9895 netbsd*) 9896 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9897 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9898 wlarc= 9899 else 9900 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9901 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9902 fi 9903 ;; 9904 9905 solaris*) 9906 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9907 ld_shlibs=no 9908 cat <<_LT_EOF 1>&2 9909 9910*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9911*** create shared libraries on Solaris systems. Therefore, libtool 9912*** is disabling shared libraries support. We urge you to upgrade GNU 9913*** binutils to release 2.9.1 or newer. Another option is to modify 9914*** your PATH or compiler configuration so that the native linker is 9915*** used, and then restart. 9916 9917_LT_EOF 9918 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9919 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9920 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9921 else 9922 ld_shlibs=no 9923 fi 9924 ;; 9925 9926 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9927 case `$LD -v 2>&1` in 9928 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9929 ld_shlibs=no 9930 cat <<_LT_EOF 1>&2 9931 9932*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9933*** reliably create shared libraries on SCO systems. Therefore, libtool 9934*** is disabling shared libraries support. We urge you to upgrade GNU 9935*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9936*** your PATH or compiler configuration so that the native linker is 9937*** used, and then restart. 9938 9939_LT_EOF 9940 ;; 9941 *) 9942 # For security reasons, it is highly recommended that you always 9943 # use absolute paths for naming shared libraries, and exclude the 9944 # DT_RUNPATH tag from executables and libraries. But doing so 9945 # requires that you compile everything twice, which is a pain. 9946 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9947 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9949 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9950 else 9951 ld_shlibs=no 9952 fi 9953 ;; 9954 esac 9955 ;; 9956 9957 sunos4*) 9958 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9959 wlarc= 9960 hardcode_direct=yes 9961 hardcode_shlibpath_var=no 9962 ;; 9963 9964 *) 9965 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9966 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9967 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9968 else 9969 ld_shlibs=no 9970 fi 9971 ;; 9972 esac 9973 9974 if test no = "$ld_shlibs"; then 9975 runpath_var= 9976 hardcode_libdir_flag_spec= 9977 export_dynamic_flag_spec= 9978 whole_archive_flag_spec= 9979 fi 9980 else 9981 # PORTME fill in a description of your system's linker (not GNU ld) 9982 case $host_os in 9983 aix3*) 9984 allow_undefined_flag=unsupported 9985 always_export_symbols=yes 9986 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' 9987 # Note: this linker hardcodes the directories in LIBPATH if there 9988 # are no directories specified by -L. 9989 hardcode_minus_L=yes 9990 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9991 # Neither direct hardcoding nor static linking is supported with a 9992 # broken collect2. 9993 hardcode_direct=unsupported 9994 fi 9995 ;; 9996 9997 aix[4-9]*) 9998 if test ia64 = "$host_cpu"; then 9999 # On IA64, the linker does run time linking by default, so we don't 10000 # have to do anything special. 10001 aix_use_runtimelinking=no 10002 exp_sym_flag='-Bexport' 10003 no_entry_flag= 10004 else 10005 # If we're using GNU nm, then we don't want the "-C" option. 10006 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10007 # Without the "-l" option, or with the "-B" option, AIX nm treats 10008 # weak defined symbols like other global defined symbols, whereas 10009 # GNU nm marks them as "W". 10010 # While the 'weak' keyword is ignored in the Export File, we need 10011 # it in the Import File for the 'aix-soname' feature, so we have 10012 # to replace the "-B" option with "-P" for AIX nm. 10013 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10014 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' 10015 else 10016 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 == "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' 10017 fi 10018 aix_use_runtimelinking=no 10019 10020 # Test if we are trying to use run time linking or normal 10021 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10022 # have runtime linking enabled, and use it for executables. 10023 # For shared libraries, we enable/disable runtime linking 10024 # depending on the kind of the shared library created - 10025 # when "with_aix_soname,aix_use_runtimelinking" is: 10026 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10027 # "aix,yes" lib.so shared, rtl:yes, for executables 10028 # lib.a static archive 10029 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10030 # lib.a(lib.so.V) shared, rtl:no, for executables 10031 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10032 # lib.a(lib.so.V) shared, rtl:no 10033 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10034 # lib.a static archive 10035 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10036 for ld_flag in $LDFLAGS; do 10037 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10038 aix_use_runtimelinking=yes 10039 break 10040 fi 10041 done 10042 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10043 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10044 # so we don't have lib.a shared libs to link our executables. 10045 # We have to force runtime linking in this case. 10046 aix_use_runtimelinking=yes 10047 LDFLAGS="$LDFLAGS -Wl,-brtl" 10048 fi 10049 ;; 10050 esac 10051 10052 exp_sym_flag='-bexport' 10053 no_entry_flag='-bnoentry' 10054 fi 10055 10056 # When large executables or shared objects are built, AIX ld can 10057 # have problems creating the table of contents. If linking a library 10058 # or program results in "error TOC overflow" add -mminimal-toc to 10059 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10060 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10061 10062 archive_cmds='' 10063 hardcode_direct=yes 10064 hardcode_direct_absolute=yes 10065 hardcode_libdir_separator=':' 10066 link_all_deplibs=yes 10067 file_list_spec='$wl-f,' 10068 case $with_aix_soname,$aix_use_runtimelinking in 10069 aix,*) ;; # traditional, no import file 10070 svr4,* | *,yes) # use import file 10071 # The Import File defines what to hardcode. 10072 hardcode_direct=no 10073 hardcode_direct_absolute=no 10074 ;; 10075 esac 10076 10077 if test yes = "$GCC"; then 10078 case $host_os in aix4.[012]|aix4.[012].*) 10079 # We only want to do this on AIX 4.2 and lower, the check 10080 # below for broken collect2 doesn't work under 4.3+ 10081 collect2name=`$CC -print-prog-name=collect2` 10082 if test -f "$collect2name" && 10083 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10084 then 10085 # We have reworked collect2 10086 : 10087 else 10088 # We have old collect2 10089 hardcode_direct=unsupported 10090 # It fails to find uninstalled libraries when the uninstalled 10091 # path is not listed in the libpath. Setting hardcode_minus_L 10092 # to unsupported forces relinking 10093 hardcode_minus_L=yes 10094 hardcode_libdir_flag_spec='-L$libdir' 10095 hardcode_libdir_separator= 10096 fi 10097 ;; 10098 esac 10099 shared_flag='-shared' 10100 if test yes = "$aix_use_runtimelinking"; then 10101 shared_flag="$shared_flag "'$wl-G' 10102 fi 10103 # Need to ensure runtime linking is disabled for the traditional 10104 # shared library, or the linker may eventually find shared libraries 10105 # /with/ Import File - we do not want to mix them. 10106 shared_flag_aix='-shared' 10107 shared_flag_svr4='-shared $wl-G' 10108 else 10109 # not using gcc 10110 if test ia64 = "$host_cpu"; then 10111 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10112 # chokes on -Wl,-G. The following line is correct: 10113 shared_flag='-G' 10114 else 10115 if test yes = "$aix_use_runtimelinking"; then 10116 shared_flag='$wl-G' 10117 else 10118 shared_flag='$wl-bM:SRE' 10119 fi 10120 shared_flag_aix='$wl-bM:SRE' 10121 shared_flag_svr4='$wl-G' 10122 fi 10123 fi 10124 10125 export_dynamic_flag_spec='$wl-bexpall' 10126 # It seems that -bexpall does not export symbols beginning with 10127 # underscore (_), so it is better to generate a list of symbols to export. 10128 always_export_symbols=yes 10129 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10130 # Warning - without using the other runtime loading flags (-brtl), 10131 # -berok will link without error, but may produce a broken library. 10132 allow_undefined_flag='-berok' 10133 # Determine the default libpath from the value encoded in an 10134 # empty executable. 10135 if test set = "${lt_cv_aix_libpath+set}"; then 10136 aix_libpath=$lt_cv_aix_libpath 10137else 10138 if ${lt_cv_aix_libpath_+:} false; then : 10139 $as_echo_n "(cached) " >&6 10140else 10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10142/* end confdefs.h. */ 10143 10144int 10145main () 10146{ 10147 10148 ; 10149 return 0; 10150} 10151_ACEOF 10152if ac_fn_c_try_link "$LINENO"; then : 10153 10154 lt_aix_libpath_sed=' 10155 /Import File Strings/,/^$/ { 10156 /^0/ { 10157 s/^0 *\([^ ]*\) *$/\1/ 10158 p 10159 } 10160 }' 10161 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10162 # Check for a 64-bit object if we didn't find anything. 10163 if test -z "$lt_cv_aix_libpath_"; then 10164 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10165 fi 10166fi 10167rm -f core conftest.err conftest.$ac_objext \ 10168 conftest$ac_exeext conftest.$ac_ext 10169 if test -z "$lt_cv_aix_libpath_"; then 10170 lt_cv_aix_libpath_=/usr/lib:/lib 10171 fi 10172 10173fi 10174 10175 aix_libpath=$lt_cv_aix_libpath_ 10176fi 10177 10178 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10179 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 10180 else 10181 if test ia64 = "$host_cpu"; then 10182 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10183 allow_undefined_flag="-z nodefs" 10184 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" 10185 else 10186 # Determine the default libpath from the value encoded in an 10187 # empty executable. 10188 if test set = "${lt_cv_aix_libpath+set}"; then 10189 aix_libpath=$lt_cv_aix_libpath 10190else 10191 if ${lt_cv_aix_libpath_+:} false; then : 10192 $as_echo_n "(cached) " >&6 10193else 10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10195/* end confdefs.h. */ 10196 10197int 10198main () 10199{ 10200 10201 ; 10202 return 0; 10203} 10204_ACEOF 10205if ac_fn_c_try_link "$LINENO"; then : 10206 10207 lt_aix_libpath_sed=' 10208 /Import File Strings/,/^$/ { 10209 /^0/ { 10210 s/^0 *\([^ ]*\) *$/\1/ 10211 p 10212 } 10213 }' 10214 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10215 # Check for a 64-bit object if we didn't find anything. 10216 if test -z "$lt_cv_aix_libpath_"; then 10217 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10218 fi 10219fi 10220rm -f core conftest.err conftest.$ac_objext \ 10221 conftest$ac_exeext conftest.$ac_ext 10222 if test -z "$lt_cv_aix_libpath_"; then 10223 lt_cv_aix_libpath_=/usr/lib:/lib 10224 fi 10225 10226fi 10227 10228 aix_libpath=$lt_cv_aix_libpath_ 10229fi 10230 10231 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10232 # Warning - without using the other run time loading flags, 10233 # -berok will link without error, but may produce a broken library. 10234 no_undefined_flag=' $wl-bernotok' 10235 allow_undefined_flag=' $wl-berok' 10236 if test yes = "$with_gnu_ld"; then 10237 # We only use this code for GNU lds that support --whole-archive. 10238 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10239 else 10240 # Exported symbols can be pulled into shared objects from archives 10241 whole_archive_flag_spec='$convenience' 10242 fi 10243 archive_cmds_need_lc=yes 10244 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10245 # -brtl affects multiple linker settings, -berok does not and is overridden later 10246 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10247 if test svr4 != "$with_aix_soname"; then 10248 # This is similar to how AIX traditionally builds its shared libraries. 10249 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' 10250 fi 10251 if test aix != "$with_aix_soname"; then 10252 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' 10253 else 10254 # used by -dlpreopen to get the symbols 10255 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10256 fi 10257 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10258 fi 10259 fi 10260 ;; 10261 10262 amigaos*) 10263 case $host_cpu in 10264 powerpc) 10265 # see comment about AmigaOS4 .so support 10266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10267 archive_expsym_cmds='' 10268 ;; 10269 m68k) 10270 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)' 10271 hardcode_libdir_flag_spec='-L$libdir' 10272 hardcode_minus_L=yes 10273 ;; 10274 esac 10275 ;; 10276 10277 bsdi[45]*) 10278 export_dynamic_flag_spec=-rdynamic 10279 ;; 10280 10281 cygwin* | mingw* | pw32* | cegcc*) 10282 # When not using gcc, we currently assume that we are using 10283 # Microsoft Visual C++. 10284 # hardcode_libdir_flag_spec is actually meaningless, as there is 10285 # no search path for DLLs. 10286 case $cc_basename in 10287 cl*) 10288 # Native MSVC 10289 hardcode_libdir_flag_spec=' ' 10290 allow_undefined_flag=unsupported 10291 always_export_symbols=yes 10292 file_list_spec='@' 10293 # Tell ltmain to make .lib files, not .a files. 10294 libext=lib 10295 # Tell ltmain to make .dll files, not .so files. 10296 shrext_cmds=.dll 10297 # FIXME: Setting linknames here is a bad hack. 10298 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10299 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10300 cp "$export_symbols" "$output_objdir/$soname.def"; 10301 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10302 else 10303 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10304 fi~ 10305 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10306 linknames=' 10307 # The linker will not automatically build a static lib if we build a DLL. 10308 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10309 enable_shared_with_static_runtimes=yes 10310 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10311 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10312 # Don't use ranlib 10313 old_postinstall_cmds='chmod 644 $oldlib' 10314 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10315 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10316 case $lt_outputfile in 10317 *.exe|*.EXE) ;; 10318 *) 10319 lt_outputfile=$lt_outputfile.exe 10320 lt_tool_outputfile=$lt_tool_outputfile.exe 10321 ;; 10322 esac~ 10323 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10324 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10325 $RM "$lt_outputfile.manifest"; 10326 fi' 10327 ;; 10328 *) 10329 # Assume MSVC wrapper 10330 hardcode_libdir_flag_spec=' ' 10331 allow_undefined_flag=unsupported 10332 # Tell ltmain to make .lib files, not .a files. 10333 libext=lib 10334 # Tell ltmain to make .dll files, not .so files. 10335 shrext_cmds=.dll 10336 # FIXME: Setting linknames here is a bad hack. 10337 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10338 # The linker will automatically build a .lib file if we build a DLL. 10339 old_archive_from_new_cmds='true' 10340 # FIXME: Should let the user specify the lib program. 10341 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10342 enable_shared_with_static_runtimes=yes 10343 ;; 10344 esac 10345 ;; 10346 10347 darwin* | rhapsody*) 10348 10349 10350 archive_cmds_need_lc=no 10351 hardcode_direct=no 10352 hardcode_automatic=yes 10353 hardcode_shlibpath_var=unsupported 10354 if test yes = "$lt_cv_ld_force_load"; then 10355 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\"`' 10356 10357 else 10358 whole_archive_flag_spec='' 10359 fi 10360 link_all_deplibs=yes 10361 allow_undefined_flag=$_lt_dar_allow_undefined 10362 case $cc_basename in 10363 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10364 *) _lt_dar_can_shared=$GCC ;; 10365 esac 10366 if test yes = "$_lt_dar_can_shared"; then 10367 output_verbose_link_cmd=func_echo_all 10368 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10369 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10370 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" 10371 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" 10372 10373 else 10374 ld_shlibs=no 10375 fi 10376 10377 ;; 10378 10379 dgux*) 10380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10381 hardcode_libdir_flag_spec='-L$libdir' 10382 hardcode_shlibpath_var=no 10383 ;; 10384 10385 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10386 # support. Future versions do this automatically, but an explicit c++rt0.o 10387 # does not break anything, and helps significantly (at the cost of a little 10388 # extra space). 10389 freebsd2.2*) 10390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10391 hardcode_libdir_flag_spec='-R$libdir' 10392 hardcode_direct=yes 10393 hardcode_shlibpath_var=no 10394 ;; 10395 10396 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10397 freebsd2.*) 10398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10399 hardcode_direct=yes 10400 hardcode_minus_L=yes 10401 hardcode_shlibpath_var=no 10402 ;; 10403 10404 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10405 freebsd* | dragonfly*) 10406 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10407 hardcode_libdir_flag_spec='-R$libdir' 10408 hardcode_direct=yes 10409 hardcode_shlibpath_var=no 10410 ;; 10411 10412 hpux9*) 10413 if test yes = "$GCC"; then 10414 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' 10415 else 10416 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' 10417 fi 10418 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10419 hardcode_libdir_separator=: 10420 hardcode_direct=yes 10421 10422 # hardcode_minus_L: Not really in the search PATH, 10423 # but as the default location of the library. 10424 hardcode_minus_L=yes 10425 export_dynamic_flag_spec='$wl-E' 10426 ;; 10427 10428 hpux10*) 10429 if test yes,no = "$GCC,$with_gnu_ld"; then 10430 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10431 else 10432 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10433 fi 10434 if test no = "$with_gnu_ld"; then 10435 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10436 hardcode_libdir_separator=: 10437 hardcode_direct=yes 10438 hardcode_direct_absolute=yes 10439 export_dynamic_flag_spec='$wl-E' 10440 # hardcode_minus_L: Not really in the search PATH, 10441 # but as the default location of the library. 10442 hardcode_minus_L=yes 10443 fi 10444 ;; 10445 10446 hpux11*) 10447 if test yes,no = "$GCC,$with_gnu_ld"; then 10448 case $host_cpu in 10449 hppa*64*) 10450 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10451 ;; 10452 ia64*) 10453 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10454 ;; 10455 *) 10456 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10457 ;; 10458 esac 10459 else 10460 case $host_cpu in 10461 hppa*64*) 10462 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10463 ;; 10464 ia64*) 10465 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10466 ;; 10467 *) 10468 10469 # Older versions of the 11.00 compiler do not understand -b yet 10470 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10472$as_echo_n "checking if $CC understands -b... " >&6; } 10473if ${lt_cv_prog_compiler__b+:} false; then : 10474 $as_echo_n "(cached) " >&6 10475else 10476 lt_cv_prog_compiler__b=no 10477 save_LDFLAGS=$LDFLAGS 10478 LDFLAGS="$LDFLAGS -b" 10479 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10481 # The linker can only warn and ignore the option if not recognized 10482 # So say no if there are warnings 10483 if test -s conftest.err; then 10484 # Append any errors to the config.log. 10485 cat conftest.err 1>&5 10486 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10488 if diff conftest.exp conftest.er2 >/dev/null; then 10489 lt_cv_prog_compiler__b=yes 10490 fi 10491 else 10492 lt_cv_prog_compiler__b=yes 10493 fi 10494 fi 10495 $RM -r conftest* 10496 LDFLAGS=$save_LDFLAGS 10497 10498fi 10499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10500$as_echo "$lt_cv_prog_compiler__b" >&6; } 10501 10502if test yes = "$lt_cv_prog_compiler__b"; then 10503 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10504else 10505 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10506fi 10507 10508 ;; 10509 esac 10510 fi 10511 if test no = "$with_gnu_ld"; then 10512 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10513 hardcode_libdir_separator=: 10514 10515 case $host_cpu in 10516 hppa*64*|ia64*) 10517 hardcode_direct=no 10518 hardcode_shlibpath_var=no 10519 ;; 10520 *) 10521 hardcode_direct=yes 10522 hardcode_direct_absolute=yes 10523 export_dynamic_flag_spec='$wl-E' 10524 10525 # hardcode_minus_L: Not really in the search PATH, 10526 # but as the default location of the library. 10527 hardcode_minus_L=yes 10528 ;; 10529 esac 10530 fi 10531 ;; 10532 10533 irix5* | irix6* | nonstopux*) 10534 if test yes = "$GCC"; then 10535 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' 10536 # Try to use the -exported_symbol ld option, if it does not 10537 # work, assume that -exports_file does not work either and 10538 # implicitly export all symbols. 10539 # This should be the same for all languages, so no per-tag cache variable. 10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10541$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10542if ${lt_cv_irix_exported_symbol+:} false; then : 10543 $as_echo_n "(cached) " >&6 10544else 10545 save_LDFLAGS=$LDFLAGS 10546 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10548/* end confdefs.h. */ 10549int foo (void) { return 0; } 10550_ACEOF 10551if ac_fn_c_try_link "$LINENO"; then : 10552 lt_cv_irix_exported_symbol=yes 10553else 10554 lt_cv_irix_exported_symbol=no 10555fi 10556rm -f core conftest.err conftest.$ac_objext \ 10557 conftest$ac_exeext conftest.$ac_ext 10558 LDFLAGS=$save_LDFLAGS 10559fi 10560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10561$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10562 if test yes = "$lt_cv_irix_exported_symbol"; then 10563 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' 10564 fi 10565 else 10566 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' 10567 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' 10568 fi 10569 archive_cmds_need_lc='no' 10570 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10571 hardcode_libdir_separator=: 10572 inherit_rpath=yes 10573 link_all_deplibs=yes 10574 ;; 10575 10576 linux*) 10577 case $cc_basename in 10578 tcc*) 10579 # Fabrice Bellard et al's Tiny C Compiler 10580 ld_shlibs=yes 10581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10582 ;; 10583 esac 10584 ;; 10585 10586 netbsd*) 10587 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10589 else 10590 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10591 fi 10592 hardcode_libdir_flag_spec='-R$libdir' 10593 hardcode_direct=yes 10594 hardcode_shlibpath_var=no 10595 ;; 10596 10597 newsos6) 10598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10599 hardcode_direct=yes 10600 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10601 hardcode_libdir_separator=: 10602 hardcode_shlibpath_var=no 10603 ;; 10604 10605 *nto* | *qnx*) 10606 ;; 10607 10608 openbsd* | bitrig*) 10609 if test -f /usr/libexec/ld.so; then 10610 hardcode_direct=yes 10611 hardcode_shlibpath_var=no 10612 hardcode_direct_absolute=yes 10613 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10615 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10616 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10617 export_dynamic_flag_spec='$wl-E' 10618 else 10619 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10620 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10621 fi 10622 else 10623 ld_shlibs=no 10624 fi 10625 ;; 10626 10627 os2*) 10628 hardcode_libdir_flag_spec='-L$libdir' 10629 hardcode_minus_L=yes 10630 allow_undefined_flag=unsupported 10631 shrext_cmds=.dll 10632 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10633 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10634 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10635 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10636 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10637 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10638 emximp -o $lib $output_objdir/$libname.def' 10639 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10640 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10641 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10642 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10643 prefix_cmds="$SED"~ 10644 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10645 prefix_cmds="$prefix_cmds -e 1d"; 10646 fi~ 10647 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10648 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10649 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10650 emximp -o $lib $output_objdir/$libname.def' 10651 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10652 enable_shared_with_static_runtimes=yes 10653 ;; 10654 10655 osf3*) 10656 if test yes = "$GCC"; then 10657 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10658 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' 10659 else 10660 allow_undefined_flag=' -expect_unresolved \*' 10661 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' 10662 fi 10663 archive_cmds_need_lc='no' 10664 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10665 hardcode_libdir_separator=: 10666 ;; 10667 10668 osf4* | osf5*) # as osf3* with the addition of -msym flag 10669 if test yes = "$GCC"; then 10670 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10671 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' 10672 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10673 else 10674 allow_undefined_flag=' -expect_unresolved \*' 10675 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' 10676 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~ 10677 $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' 10678 10679 # Both c and cxx compiler support -rpath directly 10680 hardcode_libdir_flag_spec='-rpath $libdir' 10681 fi 10682 archive_cmds_need_lc='no' 10683 hardcode_libdir_separator=: 10684 ;; 10685 10686 solaris*) 10687 no_undefined_flag=' -z defs' 10688 if test yes = "$GCC"; then 10689 wlarc='$wl' 10690 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10691 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10692 $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' 10693 else 10694 case `$CC -V 2>&1` in 10695 *"Compilers 5.0"*) 10696 wlarc='' 10697 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10698 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10699 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10700 ;; 10701 *) 10702 wlarc='$wl' 10703 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10704 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10705 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10706 ;; 10707 esac 10708 fi 10709 hardcode_libdir_flag_spec='-R$libdir' 10710 hardcode_shlibpath_var=no 10711 case $host_os in 10712 solaris2.[0-5] | solaris2.[0-5].*) ;; 10713 *) 10714 # The compiler driver will combine and reorder linker options, 10715 # but understands '-z linker_flag'. GCC discards it without '$wl', 10716 # but is careful enough not to reorder. 10717 # Supported since Solaris 2.6 (maybe 2.5.1?) 10718 if test yes = "$GCC"; then 10719 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10720 else 10721 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10722 fi 10723 ;; 10724 esac 10725 link_all_deplibs=yes 10726 ;; 10727 10728 sunos4*) 10729 if test sequent = "$host_vendor"; then 10730 # Use $CC to link under sequent, because it throws in some extra .o 10731 # files that make .init and .fini sections work. 10732 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10733 else 10734 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10735 fi 10736 hardcode_libdir_flag_spec='-L$libdir' 10737 hardcode_direct=yes 10738 hardcode_minus_L=yes 10739 hardcode_shlibpath_var=no 10740 ;; 10741 10742 sysv4) 10743 case $host_vendor in 10744 sni) 10745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10746 hardcode_direct=yes # is this really true??? 10747 ;; 10748 siemens) 10749 ## LD is ld it makes a PLAMLIB 10750 ## CC just makes a GrossModule. 10751 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10752 reload_cmds='$CC -r -o $output$reload_objs' 10753 hardcode_direct=no 10754 ;; 10755 motorola) 10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10757 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10758 ;; 10759 esac 10760 runpath_var='LD_RUN_PATH' 10761 hardcode_shlibpath_var=no 10762 ;; 10763 10764 sysv4.3*) 10765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10766 hardcode_shlibpath_var=no 10767 export_dynamic_flag_spec='-Bexport' 10768 ;; 10769 10770 sysv4*MP*) 10771 if test -d /usr/nec; then 10772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10773 hardcode_shlibpath_var=no 10774 runpath_var=LD_RUN_PATH 10775 hardcode_runpath_var=yes 10776 ld_shlibs=yes 10777 fi 10778 ;; 10779 10780 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10781 no_undefined_flag='$wl-z,text' 10782 archive_cmds_need_lc=no 10783 hardcode_shlibpath_var=no 10784 runpath_var='LD_RUN_PATH' 10785 10786 if test yes = "$GCC"; then 10787 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10788 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10789 else 10790 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10791 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10792 fi 10793 ;; 10794 10795 sysv5* | sco3.2v5* | sco5v6*) 10796 # Note: We CANNOT use -z defs as we might desire, because we do not 10797 # link with -lc, and that would cause any symbols used from libc to 10798 # always be unresolved, which means just about no library would 10799 # ever link correctly. If we're not using GNU ld we use -z text 10800 # though, which does catch some bad symbols but isn't as heavy-handed 10801 # as -z defs. 10802 no_undefined_flag='$wl-z,text' 10803 allow_undefined_flag='$wl-z,nodefs' 10804 archive_cmds_need_lc=no 10805 hardcode_shlibpath_var=no 10806 hardcode_libdir_flag_spec='$wl-R,$libdir' 10807 hardcode_libdir_separator=':' 10808 link_all_deplibs=yes 10809 export_dynamic_flag_spec='$wl-Bexport' 10810 runpath_var='LD_RUN_PATH' 10811 10812 if test yes = "$GCC"; then 10813 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10814 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10815 else 10816 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10817 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10818 fi 10819 ;; 10820 10821 uts4*) 10822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10823 hardcode_libdir_flag_spec='-L$libdir' 10824 hardcode_shlibpath_var=no 10825 ;; 10826 10827 *) 10828 ld_shlibs=no 10829 ;; 10830 esac 10831 10832 if test sni = "$host_vendor"; then 10833 case $host in 10834 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10835 export_dynamic_flag_spec='$wl-Blargedynsym' 10836 ;; 10837 esac 10838 fi 10839 fi 10840 10841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10842$as_echo "$ld_shlibs" >&6; } 10843test no = "$ld_shlibs" && can_build_shared=no 10844 10845with_gnu_ld=$with_gnu_ld 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861# 10862# Do we need to explicitly link libc? 10863# 10864case "x$archive_cmds_need_lc" in 10865x|xyes) 10866 # Assume -lc should be added 10867 archive_cmds_need_lc=yes 10868 10869 if test yes,yes = "$GCC,$enable_shared"; then 10870 case $archive_cmds in 10871 *'~'*) 10872 # FIXME: we may have to deal with multi-command sequences. 10873 ;; 10874 '$CC '*) 10875 # Test whether the compiler implicitly links with -lc since on some 10876 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10877 # to ld, don't add -lc before -lgcc. 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10879$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10880if ${lt_cv_archive_cmds_need_lc+:} false; then : 10881 $as_echo_n "(cached) " >&6 10882else 10883 $RM conftest* 10884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10885 10886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10887 (eval $ac_compile) 2>&5 10888 ac_status=$? 10889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10890 test $ac_status = 0; } 2>conftest.err; then 10891 soname=conftest 10892 lib=conftest 10893 libobjs=conftest.$ac_objext 10894 deplibs= 10895 wl=$lt_prog_compiler_wl 10896 pic_flag=$lt_prog_compiler_pic 10897 compiler_flags=-v 10898 linker_flags=-v 10899 verstring= 10900 output_objdir=. 10901 libname=conftest 10902 lt_save_allow_undefined_flag=$allow_undefined_flag 10903 allow_undefined_flag= 10904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10905 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10906 ac_status=$? 10907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10908 test $ac_status = 0; } 10909 then 10910 lt_cv_archive_cmds_need_lc=no 10911 else 10912 lt_cv_archive_cmds_need_lc=yes 10913 fi 10914 allow_undefined_flag=$lt_save_allow_undefined_flag 10915 else 10916 cat conftest.err 1>&5 10917 fi 10918 $RM conftest* 10919 10920fi 10921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10922$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10923 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10924 ;; 10925 esac 10926 fi 10927 ;; 10928esac 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11082$as_echo_n "checking dynamic linker characteristics... " >&6; } 11083 11084if test yes = "$GCC"; then 11085 case $host_os in 11086 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11087 *) lt_awk_arg='/^libraries:/' ;; 11088 esac 11089 case $host_os in 11090 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11091 *) lt_sed_strip_eq='s|=/|/|g' ;; 11092 esac 11093 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11094 case $lt_search_path_spec in 11095 *\;*) 11096 # if the path contains ";" then we assume it to be the separator 11097 # otherwise default to the standard path separator (i.e. ":") - it is 11098 # assumed that no part of a normal pathname contains ";" but that should 11099 # okay in the real world where ";" in dirpaths is itself problematic. 11100 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11101 ;; 11102 *) 11103 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11104 ;; 11105 esac 11106 # Ok, now we have the path, separated by spaces, we can step through it 11107 # and add multilib dir if necessary... 11108 lt_tmp_lt_search_path_spec= 11109 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11110 # ...but if some path component already ends with the multilib dir we assume 11111 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11112 case "$lt_multi_os_dir; $lt_search_path_spec " in 11113 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11114 lt_multi_os_dir= 11115 ;; 11116 esac 11117 for lt_sys_path in $lt_search_path_spec; do 11118 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11119 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11120 elif test -n "$lt_multi_os_dir"; then 11121 test -d "$lt_sys_path" && \ 11122 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11123 fi 11124 done 11125 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11126BEGIN {RS = " "; FS = "/|\n";} { 11127 lt_foo = ""; 11128 lt_count = 0; 11129 for (lt_i = NF; lt_i > 0; lt_i--) { 11130 if ($lt_i != "" && $lt_i != ".") { 11131 if ($lt_i == "..") { 11132 lt_count++; 11133 } else { 11134 if (lt_count == 0) { 11135 lt_foo = "/" $lt_i lt_foo; 11136 } else { 11137 lt_count--; 11138 } 11139 } 11140 } 11141 } 11142 if (lt_foo != "") { lt_freq[lt_foo]++; } 11143 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11144}'` 11145 # AWK program above erroneously prepends '/' to C:/dos/paths 11146 # for these hosts. 11147 case $host_os in 11148 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11149 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11150 esac 11151 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11152else 11153 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11154fi 11155library_names_spec= 11156libname_spec='lib$name' 11157soname_spec= 11158shrext_cmds=.so 11159postinstall_cmds= 11160postuninstall_cmds= 11161finish_cmds= 11162finish_eval= 11163shlibpath_var= 11164shlibpath_overrides_runpath=unknown 11165version_type=none 11166dynamic_linker="$host_os ld.so" 11167sys_lib_dlsearch_path_spec="/lib /usr/lib" 11168need_lib_prefix=unknown 11169hardcode_into_libs=no 11170 11171# when you set need_version to no, make sure it does not cause -set_version 11172# flags to be left without arguments 11173need_version=unknown 11174 11175 11176 11177case $host_os in 11178aix3*) 11179 version_type=linux # correct to gnu/linux during the next big refactor 11180 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11181 shlibpath_var=LIBPATH 11182 11183 # AIX 3 has no versioning support, so we append a major version to the name. 11184 soname_spec='$libname$release$shared_ext$major' 11185 ;; 11186 11187aix[4-9]*) 11188 version_type=linux # correct to gnu/linux during the next big refactor 11189 need_lib_prefix=no 11190 need_version=no 11191 hardcode_into_libs=yes 11192 if test ia64 = "$host_cpu"; then 11193 # AIX 5 supports IA64 11194 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11195 shlibpath_var=LD_LIBRARY_PATH 11196 else 11197 # With GCC up to 2.95.x, collect2 would create an import file 11198 # for dependence libraries. The import file would start with 11199 # the line '#! .'. This would cause the generated library to 11200 # depend on '.', always an invalid library. This was fixed in 11201 # development snapshots of GCC prior to 3.0. 11202 case $host_os in 11203 aix4 | aix4.[01] | aix4.[01].*) 11204 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11205 echo ' yes ' 11206 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11207 : 11208 else 11209 can_build_shared=no 11210 fi 11211 ;; 11212 esac 11213 # Using Import Files as archive members, it is possible to support 11214 # filename-based versioning of shared library archives on AIX. While 11215 # this would work for both with and without runtime linking, it will 11216 # prevent static linking of such archives. So we do filename-based 11217 # shared library versioning with .so extension only, which is used 11218 # when both runtime linking and shared linking is enabled. 11219 # Unfortunately, runtime linking may impact performance, so we do 11220 # not want this to be the default eventually. Also, we use the 11221 # versioned .so libs for executables only if there is the -brtl 11222 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11223 # To allow for filename-based versioning support, we need to create 11224 # libNAME.so.V as an archive file, containing: 11225 # *) an Import File, referring to the versioned filename of the 11226 # archive as well as the shared archive member, telling the 11227 # bitwidth (32 or 64) of that shared object, and providing the 11228 # list of exported symbols of that shared object, eventually 11229 # decorated with the 'weak' keyword 11230 # *) the shared object with the F_LOADONLY flag set, to really avoid 11231 # it being seen by the linker. 11232 # At run time we better use the real file rather than another symlink, 11233 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11234 11235 case $with_aix_soname,$aix_use_runtimelinking in 11236 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11237 # soname into executable. Probably we can add versioning support to 11238 # collect2, so additional links can be useful in future. 11239 aix,yes) # traditional libtool 11240 dynamic_linker='AIX unversionable lib.so' 11241 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11242 # instead of lib<name>.a to let people know that these are not 11243 # typical AIX shared libraries. 11244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11245 ;; 11246 aix,no) # traditional AIX only 11247 dynamic_linker='AIX lib.a(lib.so.V)' 11248 # We preserve .a as extension for shared libraries through AIX4.2 11249 # and later when we are not doing run time linking. 11250 library_names_spec='$libname$release.a $libname.a' 11251 soname_spec='$libname$release$shared_ext$major' 11252 ;; 11253 svr4,*) # full svr4 only 11254 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11255 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11256 # We do not specify a path in Import Files, so LIBPATH fires. 11257 shlibpath_overrides_runpath=yes 11258 ;; 11259 *,yes) # both, prefer svr4 11260 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11261 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11262 # unpreferred sharedlib libNAME.a needs extra handling 11263 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"' 11264 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"' 11265 # We do not specify a path in Import Files, so LIBPATH fires. 11266 shlibpath_overrides_runpath=yes 11267 ;; 11268 *,no) # both, prefer aix 11269 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11270 library_names_spec='$libname$release.a $libname.a' 11271 soname_spec='$libname$release$shared_ext$major' 11272 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11273 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)' 11274 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"' 11275 ;; 11276 esac 11277 shlibpath_var=LIBPATH 11278 fi 11279 ;; 11280 11281amigaos*) 11282 case $host_cpu in 11283 powerpc) 11284 # Since July 2007 AmigaOS4 officially supports .so libraries. 11285 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11287 ;; 11288 m68k) 11289 library_names_spec='$libname.ixlibrary $libname.a' 11290 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11291 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' 11292 ;; 11293 esac 11294 ;; 11295 11296beos*) 11297 library_names_spec='$libname$shared_ext' 11298 dynamic_linker="$host_os ld.so" 11299 shlibpath_var=LIBRARY_PATH 11300 ;; 11301 11302bsdi[45]*) 11303 version_type=linux # correct to gnu/linux during the next big refactor 11304 need_version=no 11305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11306 soname_spec='$libname$release$shared_ext$major' 11307 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11308 shlibpath_var=LD_LIBRARY_PATH 11309 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11310 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11311 # the default ld.so.conf also contains /usr/contrib/lib and 11312 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11313 # libtool to hard-code these into programs 11314 ;; 11315 11316cygwin* | mingw* | pw32* | cegcc*) 11317 version_type=windows 11318 shrext_cmds=.dll 11319 need_version=no 11320 need_lib_prefix=no 11321 11322 case $GCC,$cc_basename in 11323 yes,*) 11324 # gcc 11325 library_names_spec='$libname.dll.a' 11326 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11327 postinstall_cmds='base_file=`basename \$file`~ 11328 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11329 dldir=$destdir/`dirname \$dlpath`~ 11330 test -d \$dldir || mkdir -p \$dldir~ 11331 $install_prog $dir/$dlname \$dldir/$dlname~ 11332 chmod a+x \$dldir/$dlname~ 11333 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11334 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11335 fi' 11336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11337 dlpath=$dir/\$dldll~ 11338 $RM \$dlpath' 11339 shlibpath_overrides_runpath=yes 11340 11341 case $host_os in 11342 cygwin*) 11343 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11344 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11345 11346 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11347 ;; 11348 mingw* | cegcc*) 11349 # MinGW DLLs use traditional 'lib' prefix 11350 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11351 ;; 11352 pw32*) 11353 # pw32 DLLs use 'pw' prefix rather than 'lib' 11354 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11355 ;; 11356 esac 11357 dynamic_linker='Win32 ld.exe' 11358 ;; 11359 11360 *,cl*) 11361 # Native MSVC 11362 libname_spec='$name' 11363 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11364 library_names_spec='$libname.dll.lib' 11365 11366 case $build_os in 11367 mingw*) 11368 sys_lib_search_path_spec= 11369 lt_save_ifs=$IFS 11370 IFS=';' 11371 for lt_path in $LIB 11372 do 11373 IFS=$lt_save_ifs 11374 # Let DOS variable expansion print the short 8.3 style file name. 11375 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11376 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11377 done 11378 IFS=$lt_save_ifs 11379 # Convert to MSYS style. 11380 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11381 ;; 11382 cygwin*) 11383 # Convert to unix form, then to dos form, then back to unix form 11384 # but this time dos style (no spaces!) so that the unix form looks 11385 # like /cygdrive/c/PROGRA~1:/cygdr... 11386 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11387 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11388 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11389 ;; 11390 *) 11391 sys_lib_search_path_spec=$LIB 11392 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11393 # It is most probably a Windows format PATH. 11394 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11395 else 11396 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11397 fi 11398 # FIXME: find the short name or the path components, as spaces are 11399 # common. (e.g. "Program Files" -> "PROGRA~1") 11400 ;; 11401 esac 11402 11403 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11404 postinstall_cmds='base_file=`basename \$file`~ 11405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11406 dldir=$destdir/`dirname \$dlpath`~ 11407 test -d \$dldir || mkdir -p \$dldir~ 11408 $install_prog $dir/$dlname \$dldir/$dlname' 11409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11410 dlpath=$dir/\$dldll~ 11411 $RM \$dlpath' 11412 shlibpath_overrides_runpath=yes 11413 dynamic_linker='Win32 link.exe' 11414 ;; 11415 11416 *) 11417 # Assume MSVC wrapper 11418 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11419 dynamic_linker='Win32 ld.exe' 11420 ;; 11421 esac 11422 # FIXME: first we should search . and the directory the executable is in 11423 shlibpath_var=PATH 11424 ;; 11425 11426darwin* | rhapsody*) 11427 dynamic_linker="$host_os dyld" 11428 version_type=darwin 11429 need_lib_prefix=no 11430 need_version=no 11431 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11432 soname_spec='$libname$release$major$shared_ext' 11433 shlibpath_overrides_runpath=yes 11434 shlibpath_var=DYLD_LIBRARY_PATH 11435 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11436 11437 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11438 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11439 ;; 11440 11441dgux*) 11442 version_type=linux # correct to gnu/linux during the next big refactor 11443 need_lib_prefix=no 11444 need_version=no 11445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11446 soname_spec='$libname$release$shared_ext$major' 11447 shlibpath_var=LD_LIBRARY_PATH 11448 ;; 11449 11450freebsd* | dragonfly*) 11451 # DragonFly does not have aout. When/if they implement a new 11452 # versioning mechanism, adjust this. 11453 if test -x /usr/bin/objformat; then 11454 objformat=`/usr/bin/objformat` 11455 else 11456 case $host_os in 11457 freebsd[23].*) objformat=aout ;; 11458 *) objformat=elf ;; 11459 esac 11460 fi 11461 version_type=freebsd-$objformat 11462 case $version_type in 11463 freebsd-elf*) 11464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11465 soname_spec='$libname$release$shared_ext$major' 11466 need_version=no 11467 need_lib_prefix=no 11468 ;; 11469 freebsd-*) 11470 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11471 need_version=yes 11472 ;; 11473 esac 11474 shlibpath_var=LD_LIBRARY_PATH 11475 case $host_os in 11476 freebsd2.*) 11477 shlibpath_overrides_runpath=yes 11478 ;; 11479 freebsd3.[01]* | freebsdelf3.[01]*) 11480 shlibpath_overrides_runpath=yes 11481 hardcode_into_libs=yes 11482 ;; 11483 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11484 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11485 shlibpath_overrides_runpath=no 11486 hardcode_into_libs=yes 11487 ;; 11488 *) # from 4.6 on, and DragonFly 11489 shlibpath_overrides_runpath=yes 11490 hardcode_into_libs=yes 11491 ;; 11492 esac 11493 ;; 11494 11495haiku*) 11496 version_type=linux # correct to gnu/linux during the next big refactor 11497 need_lib_prefix=no 11498 need_version=no 11499 dynamic_linker="$host_os runtime_loader" 11500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11501 soname_spec='$libname$release$shared_ext$major' 11502 shlibpath_var=LIBRARY_PATH 11503 shlibpath_overrides_runpath=no 11504 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11505 hardcode_into_libs=yes 11506 ;; 11507 11508hpux9* | hpux10* | hpux11*) 11509 # Give a soname corresponding to the major version so that dld.sl refuses to 11510 # link against other versions. 11511 version_type=sunos 11512 need_lib_prefix=no 11513 need_version=no 11514 case $host_cpu in 11515 ia64*) 11516 shrext_cmds='.so' 11517 hardcode_into_libs=yes 11518 dynamic_linker="$host_os dld.so" 11519 shlibpath_var=LD_LIBRARY_PATH 11520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11522 soname_spec='$libname$release$shared_ext$major' 11523 if test 32 = "$HPUX_IA64_MODE"; then 11524 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11525 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11526 else 11527 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11528 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11529 fi 11530 ;; 11531 hppa*64*) 11532 shrext_cmds='.sl' 11533 hardcode_into_libs=yes 11534 dynamic_linker="$host_os dld.sl" 11535 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11538 soname_spec='$libname$release$shared_ext$major' 11539 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11541 ;; 11542 *) 11543 shrext_cmds='.sl' 11544 dynamic_linker="$host_os dld.sl" 11545 shlibpath_var=SHLIB_PATH 11546 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11548 soname_spec='$libname$release$shared_ext$major' 11549 ;; 11550 esac 11551 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11552 postinstall_cmds='chmod 555 $lib' 11553 # or fails outright, so override atomically: 11554 install_override_mode=555 11555 ;; 11556 11557interix[3-9]*) 11558 version_type=linux # correct to gnu/linux during the next big refactor 11559 need_lib_prefix=no 11560 need_version=no 11561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11562 soname_spec='$libname$release$shared_ext$major' 11563 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11564 shlibpath_var=LD_LIBRARY_PATH 11565 shlibpath_overrides_runpath=no 11566 hardcode_into_libs=yes 11567 ;; 11568 11569irix5* | irix6* | nonstopux*) 11570 case $host_os in 11571 nonstopux*) version_type=nonstopux ;; 11572 *) 11573 if test yes = "$lt_cv_prog_gnu_ld"; then 11574 version_type=linux # correct to gnu/linux during the next big refactor 11575 else 11576 version_type=irix 11577 fi ;; 11578 esac 11579 need_lib_prefix=no 11580 need_version=no 11581 soname_spec='$libname$release$shared_ext$major' 11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11583 case $host_os in 11584 irix5* | nonstopux*) 11585 libsuff= shlibsuff= 11586 ;; 11587 *) 11588 case $LD in # libtool.m4 will add one of these switches to LD 11589 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11590 libsuff= shlibsuff= libmagic=32-bit;; 11591 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11592 libsuff=32 shlibsuff=N32 libmagic=N32;; 11593 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11594 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11595 *) libsuff= shlibsuff= libmagic=never-match;; 11596 esac 11597 ;; 11598 esac 11599 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11600 shlibpath_overrides_runpath=no 11601 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11602 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11603 hardcode_into_libs=yes 11604 ;; 11605 11606# No shared lib support for Linux oldld, aout, or coff. 11607linux*oldld* | linux*aout* | linux*coff*) 11608 dynamic_linker=no 11609 ;; 11610 11611linux*android*) 11612 version_type=none # Android doesn't support versioned libraries. 11613 need_lib_prefix=no 11614 need_version=no 11615 library_names_spec='$libname$release$shared_ext' 11616 soname_spec='$libname$release$shared_ext' 11617 finish_cmds= 11618 shlibpath_var=LD_LIBRARY_PATH 11619 shlibpath_overrides_runpath=yes 11620 11621 # This implies no fast_install, which is unacceptable. 11622 # Some rework will be needed to allow for fast_install 11623 # before this can be enabled. 11624 hardcode_into_libs=yes 11625 11626 dynamic_linker='Android linker' 11627 # Don't embed -rpath directories since the linker doesn't support them. 11628 hardcode_libdir_flag_spec='-L$libdir' 11629 ;; 11630 11631# This must be glibc/ELF. 11632linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11633 version_type=linux # correct to gnu/linux during the next big refactor 11634 need_lib_prefix=no 11635 need_version=no 11636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11637 soname_spec='$libname$release$shared_ext$major' 11638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11639 shlibpath_var=LD_LIBRARY_PATH 11640 shlibpath_overrides_runpath=no 11641 11642 # Some binutils ld are patched to set DT_RUNPATH 11643 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11644 $as_echo_n "(cached) " >&6 11645else 11646 lt_cv_shlibpath_overrides_runpath=no 11647 save_LDFLAGS=$LDFLAGS 11648 save_libdir=$libdir 11649 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11650 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11652/* end confdefs.h. */ 11653 11654int 11655main () 11656{ 11657 11658 ; 11659 return 0; 11660} 11661_ACEOF 11662if ac_fn_c_try_link "$LINENO"; then : 11663 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11664 lt_cv_shlibpath_overrides_runpath=yes 11665fi 11666fi 11667rm -f core conftest.err conftest.$ac_objext \ 11668 conftest$ac_exeext conftest.$ac_ext 11669 LDFLAGS=$save_LDFLAGS 11670 libdir=$save_libdir 11671 11672fi 11673 11674 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11675 11676 # This implies no fast_install, which is unacceptable. 11677 # Some rework will be needed to allow for fast_install 11678 # before this can be enabled. 11679 hardcode_into_libs=yes 11680 11681 # Ideally, we could use ldconfig to report *all* directores which are 11682 # searched for libraries, however this is still not possible. Aside from not 11683 # being certain /sbin/ldconfig is available, command 11684 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11685 # even though it is searched at run-time. Try to do the best guess by 11686 # appending ld.so.conf contents (and includes) to the search path. 11687 if test -f /etc/ld.so.conf; then 11688 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' ' '` 11689 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11690 fi 11691 11692 # We used to test for /lib/ld.so.1 and disable shared libraries on 11693 # powerpc, because MkLinux only supported shared libraries with the 11694 # GNU dynamic linker. Since this was broken with cross compilers, 11695 # most powerpc-linux boxes support dynamic linking these days and 11696 # people can always --disable-shared, the test was removed, and we 11697 # assume the GNU/Linux dynamic linker is in use. 11698 dynamic_linker='GNU/Linux ld.so' 11699 ;; 11700 11701netbsd*) 11702 version_type=sunos 11703 need_lib_prefix=no 11704 need_version=no 11705 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11706 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11708 dynamic_linker='NetBSD (a.out) ld.so' 11709 else 11710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11711 soname_spec='$libname$release$shared_ext$major' 11712 dynamic_linker='NetBSD ld.elf_so' 11713 fi 11714 shlibpath_var=LD_LIBRARY_PATH 11715 shlibpath_overrides_runpath=yes 11716 hardcode_into_libs=yes 11717 ;; 11718 11719newsos6) 11720 version_type=linux # correct to gnu/linux during the next big refactor 11721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11722 shlibpath_var=LD_LIBRARY_PATH 11723 shlibpath_overrides_runpath=yes 11724 ;; 11725 11726*nto* | *qnx*) 11727 version_type=qnx 11728 need_lib_prefix=no 11729 need_version=no 11730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11731 soname_spec='$libname$release$shared_ext$major' 11732 shlibpath_var=LD_LIBRARY_PATH 11733 shlibpath_overrides_runpath=no 11734 hardcode_into_libs=yes 11735 dynamic_linker='ldqnx.so' 11736 ;; 11737 11738openbsd* | bitrig*) 11739 version_type=sunos 11740 sys_lib_dlsearch_path_spec=/usr/lib 11741 need_lib_prefix=no 11742 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11743 need_version=no 11744 else 11745 need_version=yes 11746 fi 11747 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11749 shlibpath_var=LD_LIBRARY_PATH 11750 shlibpath_overrides_runpath=yes 11751 ;; 11752 11753os2*) 11754 libname_spec='$name' 11755 version_type=windows 11756 shrext_cmds=.dll 11757 need_version=no 11758 need_lib_prefix=no 11759 # OS/2 can only load a DLL with a base name of 8 characters or less. 11760 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11761 v=$($ECHO $release$versuffix | tr -d .-); 11762 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11763 $ECHO $n$v`$shared_ext' 11764 library_names_spec='${libname}_dll.$libext' 11765 dynamic_linker='OS/2 ld.exe' 11766 shlibpath_var=BEGINLIBPATH 11767 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11768 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11769 postinstall_cmds='base_file=`basename \$file`~ 11770 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11771 dldir=$destdir/`dirname \$dlpath`~ 11772 test -d \$dldir || mkdir -p \$dldir~ 11773 $install_prog $dir/$dlname \$dldir/$dlname~ 11774 chmod a+x \$dldir/$dlname~ 11775 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11776 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11777 fi' 11778 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11779 dlpath=$dir/\$dldll~ 11780 $RM \$dlpath' 11781 ;; 11782 11783osf3* | osf4* | osf5*) 11784 version_type=osf 11785 need_lib_prefix=no 11786 need_version=no 11787 soname_spec='$libname$release$shared_ext$major' 11788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11789 shlibpath_var=LD_LIBRARY_PATH 11790 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11792 ;; 11793 11794rdos*) 11795 dynamic_linker=no 11796 ;; 11797 11798solaris*) 11799 version_type=linux # correct to gnu/linux during the next big refactor 11800 need_lib_prefix=no 11801 need_version=no 11802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11803 soname_spec='$libname$release$shared_ext$major' 11804 shlibpath_var=LD_LIBRARY_PATH 11805 shlibpath_overrides_runpath=yes 11806 hardcode_into_libs=yes 11807 # ldd complains unless libraries are executable 11808 postinstall_cmds='chmod +x $lib' 11809 ;; 11810 11811sunos4*) 11812 version_type=sunos 11813 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11814 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11815 shlibpath_var=LD_LIBRARY_PATH 11816 shlibpath_overrides_runpath=yes 11817 if test yes = "$with_gnu_ld"; then 11818 need_lib_prefix=no 11819 fi 11820 need_version=yes 11821 ;; 11822 11823sysv4 | sysv4.3*) 11824 version_type=linux # correct to gnu/linux during the next big refactor 11825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11826 soname_spec='$libname$release$shared_ext$major' 11827 shlibpath_var=LD_LIBRARY_PATH 11828 case $host_vendor in 11829 sni) 11830 shlibpath_overrides_runpath=no 11831 need_lib_prefix=no 11832 runpath_var=LD_RUN_PATH 11833 ;; 11834 siemens) 11835 need_lib_prefix=no 11836 ;; 11837 motorola) 11838 need_lib_prefix=no 11839 need_version=no 11840 shlibpath_overrides_runpath=no 11841 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11842 ;; 11843 esac 11844 ;; 11845 11846sysv4*MP*) 11847 if test -d /usr/nec; then 11848 version_type=linux # correct to gnu/linux during the next big refactor 11849 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11850 soname_spec='$libname$shared_ext.$major' 11851 shlibpath_var=LD_LIBRARY_PATH 11852 fi 11853 ;; 11854 11855sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11856 version_type=sco 11857 need_lib_prefix=no 11858 need_version=no 11859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11860 soname_spec='$libname$release$shared_ext$major' 11861 shlibpath_var=LD_LIBRARY_PATH 11862 shlibpath_overrides_runpath=yes 11863 hardcode_into_libs=yes 11864 if test yes = "$with_gnu_ld"; then 11865 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11866 else 11867 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11868 case $host_os in 11869 sco3.2v5*) 11870 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11871 ;; 11872 esac 11873 fi 11874 sys_lib_dlsearch_path_spec='/usr/lib' 11875 ;; 11876 11877tpf*) 11878 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11879 version_type=linux # correct to gnu/linux during the next big refactor 11880 need_lib_prefix=no 11881 need_version=no 11882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11883 shlibpath_var=LD_LIBRARY_PATH 11884 shlibpath_overrides_runpath=no 11885 hardcode_into_libs=yes 11886 ;; 11887 11888uts4*) 11889 version_type=linux # correct to gnu/linux during the next big refactor 11890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11891 soname_spec='$libname$release$shared_ext$major' 11892 shlibpath_var=LD_LIBRARY_PATH 11893 ;; 11894 11895*) 11896 dynamic_linker=no 11897 ;; 11898esac 11899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11900$as_echo "$dynamic_linker" >&6; } 11901test no = "$dynamic_linker" && can_build_shared=no 11902 11903variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11904if test yes = "$GCC"; then 11905 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11906fi 11907 11908if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11909 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11910fi 11911 11912if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11913 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11914fi 11915 11916# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11917configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11918 11919# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11920func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11921 11922# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11923configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12022$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12023hardcode_action= 12024if test -n "$hardcode_libdir_flag_spec" || 12025 test -n "$runpath_var" || 12026 test yes = "$hardcode_automatic"; then 12027 12028 # We can hardcode non-existent directories. 12029 if test no != "$hardcode_direct" && 12030 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12031 # have to relink, otherwise we might link with an installed library 12032 # when we should be linking with a yet-to-be-installed one 12033 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12034 test no != "$hardcode_minus_L"; then 12035 # Linking always hardcodes the temporary library directory. 12036 hardcode_action=relink 12037 else 12038 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12039 hardcode_action=immediate 12040 fi 12041else 12042 # We cannot hardcode anything, or else we can only hardcode existing 12043 # directories. 12044 hardcode_action=unsupported 12045fi 12046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12047$as_echo "$hardcode_action" >&6; } 12048 12049if test relink = "$hardcode_action" || 12050 test yes = "$inherit_rpath"; then 12051 # Fast installation is not supported 12052 enable_fast_install=no 12053elif test yes = "$shlibpath_overrides_runpath" || 12054 test no = "$enable_shared"; then 12055 # Fast installation is not necessary 12056 enable_fast_install=needless 12057fi 12058 12059 12060 12061 12062 12063 12064 if test yes != "$enable_dlopen"; then 12065 enable_dlopen=unknown 12066 enable_dlopen_self=unknown 12067 enable_dlopen_self_static=unknown 12068else 12069 lt_cv_dlopen=no 12070 lt_cv_dlopen_libs= 12071 12072 case $host_os in 12073 beos*) 12074 lt_cv_dlopen=load_add_on 12075 lt_cv_dlopen_libs= 12076 lt_cv_dlopen_self=yes 12077 ;; 12078 12079 mingw* | pw32* | cegcc*) 12080 lt_cv_dlopen=LoadLibrary 12081 lt_cv_dlopen_libs= 12082 ;; 12083 12084 cygwin*) 12085 lt_cv_dlopen=dlopen 12086 lt_cv_dlopen_libs= 12087 ;; 12088 12089 darwin*) 12090 # if libdl is installed we need to link against it 12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12092$as_echo_n "checking for dlopen in -ldl... " >&6; } 12093if ${ac_cv_lib_dl_dlopen+:} false; then : 12094 $as_echo_n "(cached) " >&6 12095else 12096 ac_check_lib_save_LIBS=$LIBS 12097LIBS="-ldl $LIBS" 12098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12099/* end confdefs.h. */ 12100 12101/* Override any GCC internal prototype to avoid an error. 12102 Use char because int might match the return type of a GCC 12103 builtin and then its argument prototype would still apply. */ 12104#ifdef __cplusplus 12105extern "C" 12106#endif 12107char dlopen (); 12108int 12109main () 12110{ 12111return dlopen (); 12112 ; 12113 return 0; 12114} 12115_ACEOF 12116if ac_fn_c_try_link "$LINENO"; then : 12117 ac_cv_lib_dl_dlopen=yes 12118else 12119 ac_cv_lib_dl_dlopen=no 12120fi 12121rm -f core conftest.err conftest.$ac_objext \ 12122 conftest$ac_exeext conftest.$ac_ext 12123LIBS=$ac_check_lib_save_LIBS 12124fi 12125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12126$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12127if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12128 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12129else 12130 12131 lt_cv_dlopen=dyld 12132 lt_cv_dlopen_libs= 12133 lt_cv_dlopen_self=yes 12134 12135fi 12136 12137 ;; 12138 12139 tpf*) 12140 # Don't try to run any link tests for TPF. We know it's impossible 12141 # because TPF is a cross-compiler, and we know how we open DSOs. 12142 lt_cv_dlopen=dlopen 12143 lt_cv_dlopen_libs= 12144 lt_cv_dlopen_self=no 12145 ;; 12146 12147 *) 12148 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12149if test "x$ac_cv_func_shl_load" = xyes; then : 12150 lt_cv_dlopen=shl_load 12151else 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12153$as_echo_n "checking for shl_load in -ldld... " >&6; } 12154if ${ac_cv_lib_dld_shl_load+:} false; then : 12155 $as_echo_n "(cached) " >&6 12156else 12157 ac_check_lib_save_LIBS=$LIBS 12158LIBS="-ldld $LIBS" 12159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12160/* end confdefs.h. */ 12161 12162/* Override any GCC internal prototype to avoid an error. 12163 Use char because int might match the return type of a GCC 12164 builtin and then its argument prototype would still apply. */ 12165#ifdef __cplusplus 12166extern "C" 12167#endif 12168char shl_load (); 12169int 12170main () 12171{ 12172return shl_load (); 12173 ; 12174 return 0; 12175} 12176_ACEOF 12177if ac_fn_c_try_link "$LINENO"; then : 12178 ac_cv_lib_dld_shl_load=yes 12179else 12180 ac_cv_lib_dld_shl_load=no 12181fi 12182rm -f core conftest.err conftest.$ac_objext \ 12183 conftest$ac_exeext conftest.$ac_ext 12184LIBS=$ac_check_lib_save_LIBS 12185fi 12186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12187$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12188if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12189 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12190else 12191 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12192if test "x$ac_cv_func_dlopen" = xyes; then : 12193 lt_cv_dlopen=dlopen 12194else 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12196$as_echo_n "checking for dlopen in -ldl... " >&6; } 12197if ${ac_cv_lib_dl_dlopen+:} false; then : 12198 $as_echo_n "(cached) " >&6 12199else 12200 ac_check_lib_save_LIBS=$LIBS 12201LIBS="-ldl $LIBS" 12202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12203/* end confdefs.h. */ 12204 12205/* Override any GCC internal prototype to avoid an error. 12206 Use char because int might match the return type of a GCC 12207 builtin and then its argument prototype would still apply. */ 12208#ifdef __cplusplus 12209extern "C" 12210#endif 12211char dlopen (); 12212int 12213main () 12214{ 12215return dlopen (); 12216 ; 12217 return 0; 12218} 12219_ACEOF 12220if ac_fn_c_try_link "$LINENO"; then : 12221 ac_cv_lib_dl_dlopen=yes 12222else 12223 ac_cv_lib_dl_dlopen=no 12224fi 12225rm -f core conftest.err conftest.$ac_objext \ 12226 conftest$ac_exeext conftest.$ac_ext 12227LIBS=$ac_check_lib_save_LIBS 12228fi 12229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12230$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12231if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12232 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12233else 12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12235$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12236if ${ac_cv_lib_svld_dlopen+:} false; then : 12237 $as_echo_n "(cached) " >&6 12238else 12239 ac_check_lib_save_LIBS=$LIBS 12240LIBS="-lsvld $LIBS" 12241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12242/* end confdefs.h. */ 12243 12244/* Override any GCC internal prototype to avoid an error. 12245 Use char because int might match the return type of a GCC 12246 builtin and then its argument prototype would still apply. */ 12247#ifdef __cplusplus 12248extern "C" 12249#endif 12250char dlopen (); 12251int 12252main () 12253{ 12254return dlopen (); 12255 ; 12256 return 0; 12257} 12258_ACEOF 12259if ac_fn_c_try_link "$LINENO"; then : 12260 ac_cv_lib_svld_dlopen=yes 12261else 12262 ac_cv_lib_svld_dlopen=no 12263fi 12264rm -f core conftest.err conftest.$ac_objext \ 12265 conftest$ac_exeext conftest.$ac_ext 12266LIBS=$ac_check_lib_save_LIBS 12267fi 12268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12269$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12270if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12271 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12272else 12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12274$as_echo_n "checking for dld_link in -ldld... " >&6; } 12275if ${ac_cv_lib_dld_dld_link+:} false; then : 12276 $as_echo_n "(cached) " >&6 12277else 12278 ac_check_lib_save_LIBS=$LIBS 12279LIBS="-ldld $LIBS" 12280cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12281/* end confdefs.h. */ 12282 12283/* Override any GCC internal prototype to avoid an error. 12284 Use char because int might match the return type of a GCC 12285 builtin and then its argument prototype would still apply. */ 12286#ifdef __cplusplus 12287extern "C" 12288#endif 12289char dld_link (); 12290int 12291main () 12292{ 12293return dld_link (); 12294 ; 12295 return 0; 12296} 12297_ACEOF 12298if ac_fn_c_try_link "$LINENO"; then : 12299 ac_cv_lib_dld_dld_link=yes 12300else 12301 ac_cv_lib_dld_dld_link=no 12302fi 12303rm -f core conftest.err conftest.$ac_objext \ 12304 conftest$ac_exeext conftest.$ac_ext 12305LIBS=$ac_check_lib_save_LIBS 12306fi 12307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12308$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12309if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12310 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12311fi 12312 12313 12314fi 12315 12316 12317fi 12318 12319 12320fi 12321 12322 12323fi 12324 12325 12326fi 12327 12328 ;; 12329 esac 12330 12331 if test no = "$lt_cv_dlopen"; then 12332 enable_dlopen=no 12333 else 12334 enable_dlopen=yes 12335 fi 12336 12337 case $lt_cv_dlopen in 12338 dlopen) 12339 save_CPPFLAGS=$CPPFLAGS 12340 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12341 12342 save_LDFLAGS=$LDFLAGS 12343 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12344 12345 save_LIBS=$LIBS 12346 LIBS="$lt_cv_dlopen_libs $LIBS" 12347 12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12349$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12350if ${lt_cv_dlopen_self+:} false; then : 12351 $as_echo_n "(cached) " >&6 12352else 12353 if test yes = "$cross_compiling"; then : 12354 lt_cv_dlopen_self=cross 12355else 12356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12357 lt_status=$lt_dlunknown 12358 cat > conftest.$ac_ext <<_LT_EOF 12359#line $LINENO "configure" 12360#include "confdefs.h" 12361 12362#if HAVE_DLFCN_H 12363#include <dlfcn.h> 12364#endif 12365 12366#include <stdio.h> 12367 12368#ifdef RTLD_GLOBAL 12369# define LT_DLGLOBAL RTLD_GLOBAL 12370#else 12371# ifdef DL_GLOBAL 12372# define LT_DLGLOBAL DL_GLOBAL 12373# else 12374# define LT_DLGLOBAL 0 12375# endif 12376#endif 12377 12378/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12379 find out it does not work in some platform. */ 12380#ifndef LT_DLLAZY_OR_NOW 12381# ifdef RTLD_LAZY 12382# define LT_DLLAZY_OR_NOW RTLD_LAZY 12383# else 12384# ifdef DL_LAZY 12385# define LT_DLLAZY_OR_NOW DL_LAZY 12386# else 12387# ifdef RTLD_NOW 12388# define LT_DLLAZY_OR_NOW RTLD_NOW 12389# else 12390# ifdef DL_NOW 12391# define LT_DLLAZY_OR_NOW DL_NOW 12392# else 12393# define LT_DLLAZY_OR_NOW 0 12394# endif 12395# endif 12396# endif 12397# endif 12398#endif 12399 12400/* When -fvisibility=hidden is used, assume the code has been annotated 12401 correspondingly for the symbols needed. */ 12402#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12403int fnord () __attribute__((visibility("default"))); 12404#endif 12405 12406int fnord () { return 42; } 12407int main () 12408{ 12409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12410 int status = $lt_dlunknown; 12411 12412 if (self) 12413 { 12414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12415 else 12416 { 12417 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12418 else puts (dlerror ()); 12419 } 12420 /* dlclose (self); */ 12421 } 12422 else 12423 puts (dlerror ()); 12424 12425 return status; 12426} 12427_LT_EOF 12428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12429 (eval $ac_link) 2>&5 12430 ac_status=$? 12431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12432 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12433 (./conftest; exit; ) >&5 2>/dev/null 12434 lt_status=$? 12435 case x$lt_status in 12436 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12437 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12438 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12439 esac 12440 else : 12441 # compilation failed 12442 lt_cv_dlopen_self=no 12443 fi 12444fi 12445rm -fr conftest* 12446 12447 12448fi 12449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12450$as_echo "$lt_cv_dlopen_self" >&6; } 12451 12452 if test yes = "$lt_cv_dlopen_self"; then 12453 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12455$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12456if ${lt_cv_dlopen_self_static+:} false; then : 12457 $as_echo_n "(cached) " >&6 12458else 12459 if test yes = "$cross_compiling"; then : 12460 lt_cv_dlopen_self_static=cross 12461else 12462 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12463 lt_status=$lt_dlunknown 12464 cat > conftest.$ac_ext <<_LT_EOF 12465#line $LINENO "configure" 12466#include "confdefs.h" 12467 12468#if HAVE_DLFCN_H 12469#include <dlfcn.h> 12470#endif 12471 12472#include <stdio.h> 12473 12474#ifdef RTLD_GLOBAL 12475# define LT_DLGLOBAL RTLD_GLOBAL 12476#else 12477# ifdef DL_GLOBAL 12478# define LT_DLGLOBAL DL_GLOBAL 12479# else 12480# define LT_DLGLOBAL 0 12481# endif 12482#endif 12483 12484/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12485 find out it does not work in some platform. */ 12486#ifndef LT_DLLAZY_OR_NOW 12487# ifdef RTLD_LAZY 12488# define LT_DLLAZY_OR_NOW RTLD_LAZY 12489# else 12490# ifdef DL_LAZY 12491# define LT_DLLAZY_OR_NOW DL_LAZY 12492# else 12493# ifdef RTLD_NOW 12494# define LT_DLLAZY_OR_NOW RTLD_NOW 12495# else 12496# ifdef DL_NOW 12497# define LT_DLLAZY_OR_NOW DL_NOW 12498# else 12499# define LT_DLLAZY_OR_NOW 0 12500# endif 12501# endif 12502# endif 12503# endif 12504#endif 12505 12506/* When -fvisibility=hidden is used, assume the code has been annotated 12507 correspondingly for the symbols needed. */ 12508#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12509int fnord () __attribute__((visibility("default"))); 12510#endif 12511 12512int fnord () { return 42; } 12513int main () 12514{ 12515 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12516 int status = $lt_dlunknown; 12517 12518 if (self) 12519 { 12520 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12521 else 12522 { 12523 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12524 else puts (dlerror ()); 12525 } 12526 /* dlclose (self); */ 12527 } 12528 else 12529 puts (dlerror ()); 12530 12531 return status; 12532} 12533_LT_EOF 12534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12535 (eval $ac_link) 2>&5 12536 ac_status=$? 12537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12538 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12539 (./conftest; exit; ) >&5 2>/dev/null 12540 lt_status=$? 12541 case x$lt_status in 12542 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12543 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12544 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12545 esac 12546 else : 12547 # compilation failed 12548 lt_cv_dlopen_self_static=no 12549 fi 12550fi 12551rm -fr conftest* 12552 12553 12554fi 12555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12556$as_echo "$lt_cv_dlopen_self_static" >&6; } 12557 fi 12558 12559 CPPFLAGS=$save_CPPFLAGS 12560 LDFLAGS=$save_LDFLAGS 12561 LIBS=$save_LIBS 12562 ;; 12563 esac 12564 12565 case $lt_cv_dlopen_self in 12566 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12567 *) enable_dlopen_self=unknown ;; 12568 esac 12569 12570 case $lt_cv_dlopen_self_static in 12571 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12572 *) enable_dlopen_self_static=unknown ;; 12573 esac 12574fi 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592striplib= 12593old_striplib= 12594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12595$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12596if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12597 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12598 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12600$as_echo "yes" >&6; } 12601else 12602# FIXME - insert some real tests, host_os isn't really good enough 12603 case $host_os in 12604 darwin*) 12605 if test -n "$STRIP"; then 12606 striplib="$STRIP -x" 12607 old_striplib="$STRIP -S" 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12609$as_echo "yes" >&6; } 12610 else 12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12612$as_echo "no" >&6; } 12613 fi 12614 ;; 12615 *) 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12617$as_echo "no" >&6; } 12618 ;; 12619 esac 12620fi 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 # Report what library types will actually be built 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12635$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12637$as_echo "$can_build_shared" >&6; } 12638 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12640$as_echo_n "checking whether to build shared libraries... " >&6; } 12641 test no = "$can_build_shared" && enable_shared=no 12642 12643 # On AIX, shared libraries and static libraries use the same namespace, and 12644 # are all built from PIC. 12645 case $host_os in 12646 aix3*) 12647 test yes = "$enable_shared" && enable_static=no 12648 if test -n "$RANLIB"; then 12649 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12650 postinstall_cmds='$RANLIB $lib' 12651 fi 12652 ;; 12653 12654 aix[4-9]*) 12655 if test ia64 != "$host_cpu"; then 12656 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12657 yes,aix,yes) ;; # shared object as lib.so file only 12658 yes,svr4,*) ;; # shared object as lib.so archive member only 12659 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12660 esac 12661 fi 12662 ;; 12663 esac 12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12665$as_echo "$enable_shared" >&6; } 12666 12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12668$as_echo_n "checking whether to build static libraries... " >&6; } 12669 # Make sure either enable_shared or enable_static is yes. 12670 test yes = "$enable_shared" || enable_static=yes 12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12672$as_echo "$enable_static" >&6; } 12673 12674 12675 12676 12677fi 12678ac_ext=c 12679ac_cpp='$CPP $CPPFLAGS' 12680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12682ac_compiler_gnu=$ac_cv_c_compiler_gnu 12683 12684CC=$lt_save_CC 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 ac_config_commands="$ac_config_commands libtool" 12701 12702 12703 12704 12705# Only expand once: 12706 12707 12708 12709 12710 12711 if test "$enable_samples" = "yes"; then 12712 BUILD_SAMPLES_TRUE= 12713 BUILD_SAMPLES_FALSE='#' 12714else 12715 BUILD_SAMPLES_TRUE='#' 12716 BUILD_SAMPLES_FALSE= 12717fi 12718 12719 if test "$enable_libevent_regress" = "yes"; then 12720 BUILD_REGRESS_TRUE= 12721 BUILD_REGRESS_FALSE='#' 12722else 12723 BUILD_REGRESS_TRUE='#' 12724 BUILD_REGRESS_FALSE= 12725fi 12726 12727 12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 12729$as_echo_n "checking for library containing inet_ntoa... " >&6; } 12730if ${ac_cv_search_inet_ntoa+:} false; then : 12731 $as_echo_n "(cached) " >&6 12732else 12733 ac_func_search_save_LIBS=$LIBS 12734cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12735/* end confdefs.h. */ 12736 12737/* Override any GCC internal prototype to avoid an error. 12738 Use char because int might match the return type of a GCC 12739 builtin and then its argument prototype would still apply. */ 12740#ifdef __cplusplus 12741extern "C" 12742#endif 12743char inet_ntoa (); 12744int 12745main () 12746{ 12747return inet_ntoa (); 12748 ; 12749 return 0; 12750} 12751_ACEOF 12752for ac_lib in '' nsl; do 12753 if test -z "$ac_lib"; then 12754 ac_res="none required" 12755 else 12756 ac_res=-l$ac_lib 12757 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12758 fi 12759 if ac_fn_c_try_link "$LINENO"; then : 12760 ac_cv_search_inet_ntoa=$ac_res 12761fi 12762rm -f core conftest.err conftest.$ac_objext \ 12763 conftest$ac_exeext 12764 if ${ac_cv_search_inet_ntoa+:} false; then : 12765 break 12766fi 12767done 12768if ${ac_cv_search_inet_ntoa+:} false; then : 12769 12770else 12771 ac_cv_search_inet_ntoa=no 12772fi 12773rm conftest.$ac_ext 12774LIBS=$ac_func_search_save_LIBS 12775fi 12776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 12777$as_echo "$ac_cv_search_inet_ntoa" >&6; } 12778ac_res=$ac_cv_search_inet_ntoa 12779if test "$ac_res" != no; then : 12780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12781 12782fi 12783 12784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 12785$as_echo_n "checking for library containing socket... " >&6; } 12786if ${ac_cv_search_socket+:} false; then : 12787 $as_echo_n "(cached) " >&6 12788else 12789 ac_func_search_save_LIBS=$LIBS 12790cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12791/* end confdefs.h. */ 12792 12793/* Override any GCC internal prototype to avoid an error. 12794 Use char because int might match the return type of a GCC 12795 builtin and then its argument prototype would still apply. */ 12796#ifdef __cplusplus 12797extern "C" 12798#endif 12799char socket (); 12800int 12801main () 12802{ 12803return socket (); 12804 ; 12805 return 0; 12806} 12807_ACEOF 12808for ac_lib in '' socket; do 12809 if test -z "$ac_lib"; then 12810 ac_res="none required" 12811 else 12812 ac_res=-l$ac_lib 12813 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12814 fi 12815 if ac_fn_c_try_link "$LINENO"; then : 12816 ac_cv_search_socket=$ac_res 12817fi 12818rm -f core conftest.err conftest.$ac_objext \ 12819 conftest$ac_exeext 12820 if ${ac_cv_search_socket+:} false; then : 12821 break 12822fi 12823done 12824if ${ac_cv_search_socket+:} false; then : 12825 12826else 12827 ac_cv_search_socket=no 12828fi 12829rm conftest.$ac_ext 12830LIBS=$ac_func_search_save_LIBS 12831fi 12832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 12833$as_echo "$ac_cv_search_socket" >&6; } 12834ac_res=$ac_cv_search_socket 12835if test "$ac_res" != no; then : 12836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12837 12838fi 12839 12840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 12841$as_echo_n "checking for library containing inet_aton... " >&6; } 12842if ${ac_cv_search_inet_aton+:} false; then : 12843 $as_echo_n "(cached) " >&6 12844else 12845 ac_func_search_save_LIBS=$LIBS 12846cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12847/* end confdefs.h. */ 12848 12849/* Override any GCC internal prototype to avoid an error. 12850 Use char because int might match the return type of a GCC 12851 builtin and then its argument prototype would still apply. */ 12852#ifdef __cplusplus 12853extern "C" 12854#endif 12855char inet_aton (); 12856int 12857main () 12858{ 12859return inet_aton (); 12860 ; 12861 return 0; 12862} 12863_ACEOF 12864for ac_lib in '' resolv; do 12865 if test -z "$ac_lib"; then 12866 ac_res="none required" 12867 else 12868 ac_res=-l$ac_lib 12869 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12870 fi 12871 if ac_fn_c_try_link "$LINENO"; then : 12872 ac_cv_search_inet_aton=$ac_res 12873fi 12874rm -f core conftest.err conftest.$ac_objext \ 12875 conftest$ac_exeext 12876 if ${ac_cv_search_inet_aton+:} false; then : 12877 break 12878fi 12879done 12880if ${ac_cv_search_inet_aton+:} false; then : 12881 12882else 12883 ac_cv_search_inet_aton=no 12884fi 12885rm conftest.$ac_ext 12886LIBS=$ac_func_search_save_LIBS 12887fi 12888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 12889$as_echo "$ac_cv_search_inet_aton" >&6; } 12890ac_res=$ac_cv_search_inet_aton 12891if test "$ac_res" != no; then : 12892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12893 12894fi 12895 12896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 12897$as_echo_n "checking for library containing clock_gettime... " >&6; } 12898if ${ac_cv_search_clock_gettime+:} false; then : 12899 $as_echo_n "(cached) " >&6 12900else 12901 ac_func_search_save_LIBS=$LIBS 12902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12903/* end confdefs.h. */ 12904 12905/* Override any GCC internal prototype to avoid an error. 12906 Use char because int might match the return type of a GCC 12907 builtin and then its argument prototype would still apply. */ 12908#ifdef __cplusplus 12909extern "C" 12910#endif 12911char clock_gettime (); 12912int 12913main () 12914{ 12915return clock_gettime (); 12916 ; 12917 return 0; 12918} 12919_ACEOF 12920for ac_lib in '' rt; do 12921 if test -z "$ac_lib"; then 12922 ac_res="none required" 12923 else 12924 ac_res=-l$ac_lib 12925 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12926 fi 12927 if ac_fn_c_try_link "$LINENO"; then : 12928 ac_cv_search_clock_gettime=$ac_res 12929fi 12930rm -f core conftest.err conftest.$ac_objext \ 12931 conftest$ac_exeext 12932 if ${ac_cv_search_clock_gettime+:} false; then : 12933 break 12934fi 12935done 12936if ${ac_cv_search_clock_gettime+:} false; then : 12937 12938else 12939 ac_cv_search_clock_gettime=no 12940fi 12941rm conftest.$ac_ext 12942LIBS=$ac_func_search_save_LIBS 12943fi 12944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 12945$as_echo "$ac_cv_search_clock_gettime" >&6; } 12946ac_res=$ac_cv_search_clock_gettime 12947if test "$ac_res" != no; then : 12948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12949 12950fi 12951 12952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5 12953$as_echo_n "checking for library containing sendfile... " >&6; } 12954if ${ac_cv_search_sendfile+:} false; then : 12955 $as_echo_n "(cached) " >&6 12956else 12957 ac_func_search_save_LIBS=$LIBS 12958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12959/* end confdefs.h. */ 12960 12961/* Override any GCC internal prototype to avoid an error. 12962 Use char because int might match the return type of a GCC 12963 builtin and then its argument prototype would still apply. */ 12964#ifdef __cplusplus 12965extern "C" 12966#endif 12967char sendfile (); 12968int 12969main () 12970{ 12971return sendfile (); 12972 ; 12973 return 0; 12974} 12975_ACEOF 12976for ac_lib in '' sendfile; do 12977 if test -z "$ac_lib"; then 12978 ac_res="none required" 12979 else 12980 ac_res=-l$ac_lib 12981 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12982 fi 12983 if ac_fn_c_try_link "$LINENO"; then : 12984 ac_cv_search_sendfile=$ac_res 12985fi 12986rm -f core conftest.err conftest.$ac_objext \ 12987 conftest$ac_exeext 12988 if ${ac_cv_search_sendfile+:} false; then : 12989 break 12990fi 12991done 12992if ${ac_cv_search_sendfile+:} false; then : 12993 12994else 12995 ac_cv_search_sendfile=no 12996fi 12997rm conftest.$ac_ext 12998LIBS=$ac_func_search_save_LIBS 12999fi 13000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5 13001$as_echo "$ac_cv_search_sendfile" >&6; } 13002ac_res=$ac_cv_search_sendfile 13003if test "$ac_res" != no; then : 13004 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13005 13006fi 13007 13008 13009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5 13010$as_echo_n "checking for WIN32... " >&6; } 13011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13012/* end confdefs.h. */ 13013 13014int 13015main () 13016{ 13017 13018#ifndef _WIN32 13019die horribly 13020#endif 13021 13022 ; 13023 return 0; 13024} 13025_ACEOF 13026if ac_fn_c_try_compile "$LINENO"; then : 13027 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13028$as_echo "yes" >&6; } 13029else 13030 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13031$as_echo "no" >&6; } 13032fi 13033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13034 13035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5 13036$as_echo_n "checking for CYGWIN... " >&6; } 13037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13038/* end confdefs.h. */ 13039 13040int 13041main () 13042{ 13043 13044#ifndef __CYGWIN__ 13045die horribly 13046#endif 13047 13048 ; 13049 return 0; 13050} 13051_ACEOF 13052if ac_fn_c_try_compile "$LINENO"; then : 13053 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13054$as_echo "yes" >&6; } 13055else 13056 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13057$as_echo "no" >&6; } 13058fi 13059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13060 13061for ac_header in zlib.h 13062do : 13063 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 13064if test "x$ac_cv_header_zlib_h" = xyes; then : 13065 cat >>confdefs.h <<_ACEOF 13066#define HAVE_ZLIB_H 1 13067_ACEOF 13068 13069fi 13070 13071done 13072 13073 13074if test "x$ac_cv_header_zlib_h" = "xyes"; then 13075save_LIBS="$LIBS" 13076LIBS="" 13077ZLIB_LIBS="" 13078have_zlib=no 13079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5 13080$as_echo_n "checking for library containing inflateEnd... " >&6; } 13081if ${ac_cv_search_inflateEnd+:} false; then : 13082 $as_echo_n "(cached) " >&6 13083else 13084 ac_func_search_save_LIBS=$LIBS 13085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13086/* end confdefs.h. */ 13087 13088/* Override any GCC internal prototype to avoid an error. 13089 Use char because int might match the return type of a GCC 13090 builtin and then its argument prototype would still apply. */ 13091#ifdef __cplusplus 13092extern "C" 13093#endif 13094char inflateEnd (); 13095int 13096main () 13097{ 13098return inflateEnd (); 13099 ; 13100 return 0; 13101} 13102_ACEOF 13103for ac_lib in '' z; do 13104 if test -z "$ac_lib"; then 13105 ac_res="none required" 13106 else 13107 ac_res=-l$ac_lib 13108 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13109 fi 13110 if ac_fn_c_try_link "$LINENO"; then : 13111 ac_cv_search_inflateEnd=$ac_res 13112fi 13113rm -f core conftest.err conftest.$ac_objext \ 13114 conftest$ac_exeext 13115 if ${ac_cv_search_inflateEnd+:} false; then : 13116 break 13117fi 13118done 13119if ${ac_cv_search_inflateEnd+:} false; then : 13120 13121else 13122 ac_cv_search_inflateEnd=no 13123fi 13124rm conftest.$ac_ext 13125LIBS=$ac_func_search_save_LIBS 13126fi 13127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5 13128$as_echo "$ac_cv_search_inflateEnd" >&6; } 13129ac_res=$ac_cv_search_inflateEnd 13130if test "$ac_res" != no; then : 13131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13132 have_zlib=yes 13133 ZLIB_LIBS="$LIBS" 13134 13135$as_echo "#define HAVE_LIBZ 1" >>confdefs.h 13136 13137fi 13138 13139LIBS="$save_LIBS" 13140 13141fi 13142 if test "$have_zlib" = "yes"; then 13143 ZLIB_REGRESS_TRUE= 13144 ZLIB_REGRESS_FALSE='#' 13145else 13146 ZLIB_REGRESS_TRUE='#' 13147 ZLIB_REGRESS_FALSE= 13148fi 13149 13150 13151if test "$bwin32" = true; then 13152 EV_LIB_WS32=-lws2_32 13153 EV_LIB_GDI=-lgdi32 13154else 13155 EV_LIB_WS32= 13156 EV_LIB_GDI= 13157fi 13158 13159 13160 13161 13162# Check whether --enable-largefile was given. 13163if test "${enable_largefile+set}" = set; then : 13164 enableval=$enable_largefile; 13165fi 13166 13167if test "$enable_largefile" != no; then 13168 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13170$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13171if ${ac_cv_sys_largefile_CC+:} false; then : 13172 $as_echo_n "(cached) " >&6 13173else 13174 ac_cv_sys_largefile_CC=no 13175 if test "$GCC" != yes; then 13176 ac_save_CC=$CC 13177 while :; do 13178 # IRIX 6.2 and later do not support large files by default, 13179 # so use the C compiler's -n32 option if that helps. 13180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13181/* end confdefs.h. */ 13182#include <sys/types.h> 13183 /* Check that off_t can represent 2**63 - 1 correctly. 13184 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13185 since some C++ compilers masquerading as C compilers 13186 incorrectly reject 9223372036854775807. */ 13187#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13188 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13189 && LARGE_OFF_T % 2147483647 == 1) 13190 ? 1 : -1]; 13191int 13192main () 13193{ 13194 13195 ; 13196 return 0; 13197} 13198_ACEOF 13199 if ac_fn_c_try_compile "$LINENO"; then : 13200 break 13201fi 13202rm -f core conftest.err conftest.$ac_objext 13203 CC="$CC -n32" 13204 if ac_fn_c_try_compile "$LINENO"; then : 13205 ac_cv_sys_largefile_CC=' -n32'; break 13206fi 13207rm -f core conftest.err conftest.$ac_objext 13208 break 13209 done 13210 CC=$ac_save_CC 13211 rm -f conftest.$ac_ext 13212 fi 13213fi 13214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13215$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13216 if test "$ac_cv_sys_largefile_CC" != no; then 13217 CC=$CC$ac_cv_sys_largefile_CC 13218 fi 13219 13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13221$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13222if ${ac_cv_sys_file_offset_bits+:} false; then : 13223 $as_echo_n "(cached) " >&6 13224else 13225 while :; do 13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13227/* end confdefs.h. */ 13228#include <sys/types.h> 13229 /* Check that off_t can represent 2**63 - 1 correctly. 13230 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13231 since some C++ compilers masquerading as C compilers 13232 incorrectly reject 9223372036854775807. */ 13233#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13234 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13235 && LARGE_OFF_T % 2147483647 == 1) 13236 ? 1 : -1]; 13237int 13238main () 13239{ 13240 13241 ; 13242 return 0; 13243} 13244_ACEOF 13245if ac_fn_c_try_compile "$LINENO"; then : 13246 ac_cv_sys_file_offset_bits=no; break 13247fi 13248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13250/* end confdefs.h. */ 13251#define _FILE_OFFSET_BITS 64 13252#include <sys/types.h> 13253 /* Check that off_t can represent 2**63 - 1 correctly. 13254 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13255 since some C++ compilers masquerading as C compilers 13256 incorrectly reject 9223372036854775807. */ 13257#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13258 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13259 && LARGE_OFF_T % 2147483647 == 1) 13260 ? 1 : -1]; 13261int 13262main () 13263{ 13264 13265 ; 13266 return 0; 13267} 13268_ACEOF 13269if ac_fn_c_try_compile "$LINENO"; then : 13270 ac_cv_sys_file_offset_bits=64; break 13271fi 13272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13273 ac_cv_sys_file_offset_bits=unknown 13274 break 13275done 13276fi 13277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13278$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13279case $ac_cv_sys_file_offset_bits in #( 13280 no | unknown) ;; 13281 *) 13282cat >>confdefs.h <<_ACEOF 13283#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13284_ACEOF 13285;; 13286esac 13287rm -rf conftest* 13288 if test $ac_cv_sys_file_offset_bits = unknown; then 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13290$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13291if ${ac_cv_sys_large_files+:} false; then : 13292 $as_echo_n "(cached) " >&6 13293else 13294 while :; do 13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13296/* end confdefs.h. */ 13297#include <sys/types.h> 13298 /* Check that off_t can represent 2**63 - 1 correctly. 13299 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13300 since some C++ compilers masquerading as C compilers 13301 incorrectly reject 9223372036854775807. */ 13302#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13303 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13304 && LARGE_OFF_T % 2147483647 == 1) 13305 ? 1 : -1]; 13306int 13307main () 13308{ 13309 13310 ; 13311 return 0; 13312} 13313_ACEOF 13314if ac_fn_c_try_compile "$LINENO"; then : 13315 ac_cv_sys_large_files=no; break 13316fi 13317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13319/* end confdefs.h. */ 13320#define _LARGE_FILES 1 13321#include <sys/types.h> 13322 /* Check that off_t can represent 2**63 - 1 correctly. 13323 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13324 since some C++ compilers masquerading as C compilers 13325 incorrectly reject 9223372036854775807. */ 13326#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13327 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13328 && LARGE_OFF_T % 2147483647 == 1) 13329 ? 1 : -1]; 13330int 13331main () 13332{ 13333 13334 ; 13335 return 0; 13336} 13337_ACEOF 13338if ac_fn_c_try_compile "$LINENO"; then : 13339 ac_cv_sys_large_files=1; break 13340fi 13341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13342 ac_cv_sys_large_files=unknown 13343 break 13344done 13345fi 13346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13347$as_echo "$ac_cv_sys_large_files" >&6; } 13348case $ac_cv_sys_large_files in #( 13349 no | unknown) ;; 13350 *) 13351cat >>confdefs.h <<_ACEOF 13352#define _LARGE_FILES $ac_cv_sys_large_files 13353_ACEOF 13354;; 13355esac 13356rm -rf conftest* 13357 fi 13358 13359 13360fi 13361 13362 13363 13364 13365ntp_pkgconfig_min_version='0.15.0' 13366if test -n "$ac_tool_prefix"; then 13367 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13368set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13370$as_echo_n "checking for $ac_word... " >&6; } 13371if ${ac_cv_path_PKG_CONFIG+:} false; then : 13372 $as_echo_n "(cached) " >&6 13373else 13374 case $PKG_CONFIG in 13375 [\\/]* | ?:[\\/]*) 13376 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13377 ;; 13378 *) 13379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13380for as_dir in $PATH 13381do 13382 IFS=$as_save_IFS 13383 test -z "$as_dir" && as_dir=. 13384 for ac_exec_ext in '' $ac_executable_extensions; do 13385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13386 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13388 break 2 13389 fi 13390done 13391 done 13392IFS=$as_save_IFS 13393 13394 ;; 13395esac 13396fi 13397PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13398if test -n "$PKG_CONFIG"; then 13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13400$as_echo "$PKG_CONFIG" >&6; } 13401else 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13403$as_echo "no" >&6; } 13404fi 13405 13406 13407fi 13408if test -z "$ac_cv_path_PKG_CONFIG"; then 13409 ac_pt_PKG_CONFIG=$PKG_CONFIG 13410 # Extract the first word of "pkg-config", so it can be a program name with args. 13411set dummy pkg-config; ac_word=$2 13412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13413$as_echo_n "checking for $ac_word... " >&6; } 13414if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13415 $as_echo_n "(cached) " >&6 13416else 13417 case $ac_pt_PKG_CONFIG in 13418 [\\/]* | ?:[\\/]*) 13419 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13420 ;; 13421 *) 13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13423for as_dir in $PATH 13424do 13425 IFS=$as_save_IFS 13426 test -z "$as_dir" && as_dir=. 13427 for ac_exec_ext in '' $ac_executable_extensions; do 13428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13429 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13431 break 2 13432 fi 13433done 13434 done 13435IFS=$as_save_IFS 13436 13437 ;; 13438esac 13439fi 13440ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13441if test -n "$ac_pt_PKG_CONFIG"; then 13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13443$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13444else 13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13446$as_echo "no" >&6; } 13447fi 13448 13449 if test "x$ac_pt_PKG_CONFIG" = x; then 13450 PKG_CONFIG="" 13451 else 13452 case $cross_compiling:$ac_tool_warned in 13453yes:) 13454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13456ac_tool_warned=yes ;; 13457esac 13458 PKG_CONFIG=$ac_pt_PKG_CONFIG 13459 fi 13460else 13461 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13462fi 13463 13464{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;} 13465{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 13466 13467case "$PKG_CONFIG" in 13468 /*) 13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5 13470$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; } 13471 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13473$as_echo "yes" >&6; } 13474 else 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13476$as_echo "no" >&6; } 13477 PKG_CONFIG="" 13478 fi 13479 ;; 13480esac 13481 13482 13483 13484 13485case "$enable_openssl" in 13486 yes) 13487 have_openssl=no 13488 case "$PKG_CONFIG" in 13489 '') 13490 ;; 13491 *) 13492 OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null` 13493 case "$OPENSSL_LIBS" in 13494 '') ;; 13495 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD" 13496 have_openssl=yes 13497 ;; 13498 esac 13499 OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null` 13500 ;; 13501 esac 13502 case "$have_openssl" in 13503 yes) ;; 13504 *) 13505 save_LIBS="$LIBS" 13506 LIBS="" 13507 OPENSSL_LIBS="" 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5 13509$as_echo_n "checking for library containing SSL_new... " >&6; } 13510if ${ac_cv_search_SSL_new+:} false; then : 13511 $as_echo_n "(cached) " >&6 13512else 13513 ac_func_search_save_LIBS=$LIBS 13514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13515/* end confdefs.h. */ 13516 13517/* Override any GCC internal prototype to avoid an error. 13518 Use char because int might match the return type of a GCC 13519 builtin and then its argument prototype would still apply. */ 13520#ifdef __cplusplus 13521extern "C" 13522#endif 13523char SSL_new (); 13524int 13525main () 13526{ 13527return SSL_new (); 13528 ; 13529 return 0; 13530} 13531_ACEOF 13532for ac_lib in '' ssl; do 13533 if test -z "$ac_lib"; then 13534 ac_res="none required" 13535 else 13536 ac_res=-l$ac_lib 13537 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS" 13538 fi 13539 if ac_fn_c_try_link "$LINENO"; then : 13540 ac_cv_search_SSL_new=$ac_res 13541fi 13542rm -f core conftest.err conftest.$ac_objext \ 13543 conftest$ac_exeext 13544 if ${ac_cv_search_SSL_new+:} false; then : 13545 break 13546fi 13547done 13548if ${ac_cv_search_SSL_new+:} false; then : 13549 13550else 13551 ac_cv_search_SSL_new=no 13552fi 13553rm conftest.$ac_ext 13554LIBS=$ac_func_search_save_LIBS 13555fi 13556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5 13557$as_echo "$ac_cv_search_SSL_new" >&6; } 13558ac_res=$ac_cv_search_SSL_new 13559if test "$ac_res" != no; then : 13560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13561 have_openssl=yes 13562 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD" 13563else 13564 have_openssl=no 13565fi 13566 13567 LIBS="$save_LIBS" 13568 ;; 13569 esac 13570 13571 13572 case "$have_openssl" in 13573 yes) 13574$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 13575 ;; 13576 esac 13577 ;; 13578esac 13579 13580# check if we have and should use openssl 13581 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then 13582 OPENSSL_TRUE= 13583 OPENSSL_FALSE='#' 13584else 13585 OPENSSL_TRUE='#' 13586 OPENSSL_FALSE= 13587fi 13588 13589 13590 13591for ac_header in \ 13592 arpa/inet.h \ 13593 fcntl.h \ 13594 ifaddrs.h \ 13595 mach/mach_time.h \ 13596 netdb.h \ 13597 netinet/in.h \ 13598 netinet/in6.h \ 13599 netinet/tcp.h \ 13600 poll.h \ 13601 port.h \ 13602 stdarg.h \ 13603 stddef.h \ 13604 sys/devpoll.h \ 13605 sys/epoll.h \ 13606 sys/event.h \ 13607 sys/eventfd.h \ 13608 sys/ioctl.h \ 13609 sys/mman.h \ 13610 sys/param.h \ 13611 sys/queue.h \ 13612 sys/resource.h \ 13613 sys/select.h \ 13614 sys/sendfile.h \ 13615 sys/socket.h \ 13616 sys/stat.h \ 13617 sys/time.h \ 13618 sys/timerfd.h \ 13619 sys/uio.h \ 13620 sys/wait.h \ 13621 13622do : 13623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13624ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13625if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13626 cat >>confdefs.h <<_ACEOF 13627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13628_ACEOF 13629 13630fi 13631 13632done 13633 13634 13635for ac_header in sys/sysctl.h 13636do : 13637 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 13638#ifdef HAVE_SYS_PARAM_H 13639#include <sys/param.h> 13640#endif 13641 13642" 13643if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 13644 cat >>confdefs.h <<_ACEOF 13645#define HAVE_SYS_SYSCTL_H 1 13646_ACEOF 13647 13648fi 13649 13650done 13651 13652if test "x$ac_cv_header_sys_queue_h" = "xyes"; then 13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5 13654$as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; } 13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13656/* end confdefs.h. */ 13657 13658#include <sys/queue.h> 13659#ifdef TAILQ_FOREACH 13660 yes 13661#endif 13662 13663_ACEOF 13664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13665 $EGREP "yes" >/dev/null 2>&1; then : 13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13667$as_echo "yes" >&6; } 13668 13669$as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h 13670 13671else 13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13673$as_echo "no" >&6; } 13674 13675fi 13676rm -f conftest* 13677 13678fi 13679 13680if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5 13682$as_echo_n "checking for timeradd in sys/time.h... " >&6; } 13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13684/* end confdefs.h. */ 13685 13686#include <sys/time.h> 13687#ifdef timeradd 13688 yes 13689#endif 13690 13691_ACEOF 13692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13693 $EGREP "yes" >/dev/null 2>&1; then : 13694 13695$as_echo "#define HAVE_TIMERADD 1" >>confdefs.h 13696 13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13698$as_echo "yes" >&6; } 13699else 13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13701$as_echo "no" >&6; } 13702 13703fi 13704rm -f conftest* 13705 13706fi 13707 13708if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5 13710$as_echo_n "checking for timercmp in sys/time.h... " >&6; } 13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13712/* end confdefs.h. */ 13713 13714#include <sys/time.h> 13715#ifdef timercmp 13716 yes 13717#endif 13718 13719_ACEOF 13720if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13721 $EGREP "yes" >/dev/null 2>&1; then : 13722 13723$as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h 13724 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13726$as_echo "yes" >&6; } 13727else 13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13729$as_echo "no" >&6; } 13730 13731fi 13732rm -f conftest* 13733 13734fi 13735 13736if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5 13738$as_echo_n "checking for timerclear in sys/time.h... " >&6; } 13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13740/* end confdefs.h. */ 13741 13742#include <sys/time.h> 13743#ifdef timerclear 13744 yes 13745#endif 13746 13747_ACEOF 13748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13749 $EGREP "yes" >/dev/null 2>&1; then : 13750 13751$as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h 13752 13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13754$as_echo "yes" >&6; } 13755else 13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13757$as_echo "no" >&6; } 13758 13759fi 13760rm -f conftest* 13761 13762fi 13763 13764if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5 13766$as_echo_n "checking for timerisset in sys/time.h... " >&6; } 13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13768/* end confdefs.h. */ 13769 13770#include <sys/time.h> 13771#ifdef timerisset 13772 yes 13773#endif 13774 13775_ACEOF 13776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13777 $EGREP "yes" >/dev/null 2>&1; then : 13778 13779$as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h 13780 13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13782$as_echo "yes" >&6; } 13783else 13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13785$as_echo "no" >&6; } 13786 13787fi 13788rm -f conftest* 13789 13790fi 13791 13792if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then 13793 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h> 13794 #include <sys/sysctl.h> 13795 13796" 13797if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then : 13798 ac_have_decl=1 13799else 13800 ac_have_decl=0 13801fi 13802 13803cat >>confdefs.h <<_ACEOF 13804#define HAVE_DECL_CTL_KERN $ac_have_decl 13805_ACEOF 13806ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h> 13807 #include <sys/sysctl.h> 13808 13809" 13810if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then : 13811 ac_have_decl=1 13812else 13813 ac_have_decl=0 13814fi 13815 13816cat >>confdefs.h <<_ACEOF 13817#define HAVE_DECL_KERN_RANDOM $ac_have_decl 13818_ACEOF 13819ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h> 13820 #include <sys/sysctl.h> 13821 13822" 13823if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then : 13824 ac_have_decl=1 13825else 13826 ac_have_decl=0 13827fi 13828 13829cat >>confdefs.h <<_ACEOF 13830#define HAVE_DECL_RANDOM_UUID $ac_have_decl 13831_ACEOF 13832ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h> 13833 #include <sys/sysctl.h> 13834 13835" 13836if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then : 13837 ac_have_decl=1 13838else 13839 ac_have_decl=0 13840fi 13841 13842cat >>confdefs.h <<_ACEOF 13843#define HAVE_DECL_KERN_ARND $ac_have_decl 13844_ACEOF 13845 13846fi 13847 13848 if test x$bwin32 = xtrue; then 13849 BUILD_WIN32_TRUE= 13850 BUILD_WIN32_FALSE='#' 13851else 13852 BUILD_WIN32_TRUE='#' 13853 BUILD_WIN32_FALSE= 13854fi 13855 13856 if test x$cygwin = xtrue; then 13857 BUILD_CYGWIN_TRUE= 13858 BUILD_CYGWIN_FALSE='#' 13859else 13860 BUILD_CYGWIN_TRUE='#' 13861 BUILD_CYGWIN_FALSE= 13862fi 13863 13864 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then 13865 BUILD_WITH_NO_UNDEFINED_TRUE= 13866 BUILD_WITH_NO_UNDEFINED_FALSE='#' 13867else 13868 BUILD_WITH_NO_UNDEFINED_TRUE='#' 13869 BUILD_WITH_NO_UNDEFINED_FALSE= 13870fi 13871 13872 13873if test x$bwin32 = xtrue; then 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5 13875$as_echo_n "checking for library containing getservbyname... " >&6; } 13876if ${ac_cv_search_getservbyname+:} false; then : 13877 $as_echo_n "(cached) " >&6 13878else 13879 ac_func_search_save_LIBS=$LIBS 13880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13881/* end confdefs.h. */ 13882 13883/* Override any GCC internal prototype to avoid an error. 13884 Use char because int might match the return type of a GCC 13885 builtin and then its argument prototype would still apply. */ 13886#ifdef __cplusplus 13887extern "C" 13888#endif 13889char getservbyname (); 13890int 13891main () 13892{ 13893return getservbyname (); 13894 ; 13895 return 0; 13896} 13897_ACEOF 13898for ac_lib in '' ws2_32; do 13899 if test -z "$ac_lib"; then 13900 ac_res="none required" 13901 else 13902 ac_res=-l$ac_lib 13903 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13904 fi 13905 if ac_fn_c_try_link "$LINENO"; then : 13906 ac_cv_search_getservbyname=$ac_res 13907fi 13908rm -f core conftest.err conftest.$ac_objext \ 13909 conftest$ac_exeext 13910 if ${ac_cv_search_getservbyname+:} false; then : 13911 break 13912fi 13913done 13914if ${ac_cv_search_getservbyname+:} false; then : 13915 13916else 13917 ac_cv_search_getservbyname=no 13918fi 13919rm conftest.$ac_ext 13920LIBS=$ac_func_search_save_LIBS 13921fi 13922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5 13923$as_echo "$ac_cv_search_getservbyname" >&6; } 13924ac_res=$ac_cv_search_getservbyname 13925if test "$ac_res" != no; then : 13926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13927 13928fi 13929 13930fi 13931 13932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13933$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13934if ${ac_cv_c_const+:} false; then : 13935 $as_echo_n "(cached) " >&6 13936else 13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13938/* end confdefs.h. */ 13939 13940int 13941main () 13942{ 13943 13944#ifndef __cplusplus 13945 /* Ultrix mips cc rejects this sort of thing. */ 13946 typedef int charset[2]; 13947 const charset cs = { 0, 0 }; 13948 /* SunOS 4.1.1 cc rejects this. */ 13949 char const *const *pcpcc; 13950 char **ppc; 13951 /* NEC SVR4.0.2 mips cc rejects this. */ 13952 struct point {int x, y;}; 13953 static struct point const zero = {0,0}; 13954 /* AIX XL C 1.02.0.0 rejects this. 13955 It does not let you subtract one const X* pointer from another in 13956 an arm of an if-expression whose if-part is not a constant 13957 expression */ 13958 const char *g = "string"; 13959 pcpcc = &g + (g ? g-g : 0); 13960 /* HPUX 7.0 cc rejects these. */ 13961 ++pcpcc; 13962 ppc = (char**) pcpcc; 13963 pcpcc = (char const *const *) ppc; 13964 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13965 char tx; 13966 char *t = &tx; 13967 char const *s = 0 ? (char *) 0 : (char const *) 0; 13968 13969 *t++ = 0; 13970 if (s) return 0; 13971 } 13972 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13973 int x[] = {25, 17}; 13974 const int *foo = &x[0]; 13975 ++foo; 13976 } 13977 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13978 typedef const int *iptr; 13979 iptr p = 0; 13980 ++p; 13981 } 13982 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13983 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13984 struct s { int j; const int *ap[3]; } bx; 13985 struct s *b = &bx; b->j = 5; 13986 } 13987 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13988 const int foo = 10; 13989 if (!foo) return 0; 13990 } 13991 return !cs[0] && !zero.x; 13992#endif 13993 13994 ; 13995 return 0; 13996} 13997_ACEOF 13998if ac_fn_c_try_compile "$LINENO"; then : 13999 ac_cv_c_const=yes 14000else 14001 ac_cv_c_const=no 14002fi 14003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14004fi 14005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14006$as_echo "$ac_cv_c_const" >&6; } 14007if test $ac_cv_c_const = no; then 14008 14009$as_echo "#define const /**/" >>confdefs.h 14010 14011fi 14012 14013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 14014$as_echo_n "checking for inline... " >&6; } 14015if ${ac_cv_c_inline+:} false; then : 14016 $as_echo_n "(cached) " >&6 14017else 14018 ac_cv_c_inline=no 14019for ac_kw in inline __inline__ __inline; do 14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14021/* end confdefs.h. */ 14022#ifndef __cplusplus 14023typedef int foo_t; 14024static $ac_kw foo_t static_foo () {return 0; } 14025$ac_kw foo_t foo () {return 0; } 14026#endif 14027 14028_ACEOF 14029if ac_fn_c_try_compile "$LINENO"; then : 14030 ac_cv_c_inline=$ac_kw 14031fi 14032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14033 test "$ac_cv_c_inline" != no && break 14034done 14035 14036fi 14037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 14038$as_echo "$ac_cv_c_inline" >&6; } 14039 14040case $ac_cv_c_inline in 14041 inline | yes) ;; 14042 *) 14043 case $ac_cv_c_inline in 14044 no) ac_val=;; 14045 *) ac_val=$ac_cv_c_inline;; 14046 esac 14047 cat >>confdefs.h <<_ACEOF 14048#ifndef __cplusplus 14049#define inline $ac_val 14050#endif 14051_ACEOF 14052 ;; 14053esac 14054 14055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 14056$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 14057if ${ac_cv_header_time+:} false; then : 14058 $as_echo_n "(cached) " >&6 14059else 14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14061/* end confdefs.h. */ 14062#include <sys/types.h> 14063#include <sys/time.h> 14064#include <time.h> 14065 14066int 14067main () 14068{ 14069if ((struct tm *) 0) 14070return 0; 14071 ; 14072 return 0; 14073} 14074_ACEOF 14075if ac_fn_c_try_compile "$LINENO"; then : 14076 ac_cv_header_time=yes 14077else 14078 ac_cv_header_time=no 14079fi 14080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14081fi 14082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 14083$as_echo "$ac_cv_header_time" >&6; } 14084if test $ac_cv_header_time = yes; then 14085 14086$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 14087 14088fi 14089 14090 14091for ac_func in \ 14092 accept4 \ 14093 arc4random \ 14094 arc4random_buf \ 14095 clock_gettime \ 14096 eventfd \ 14097 epoll_create1 \ 14098 fcntl \ 14099 getegid \ 14100 geteuid \ 14101 getifaddrs \ 14102 getnameinfo \ 14103 getprotobynumber \ 14104 gettimeofday \ 14105 inet_ntop \ 14106 inet_pton \ 14107 issetugid \ 14108 mach_absolute_time \ 14109 mmap \ 14110 nanosleep \ 14111 pipe \ 14112 pipe2 \ 14113 putenv \ 14114 sendfile \ 14115 setenv \ 14116 setrlimit \ 14117 sigaction \ 14118 signal \ 14119 splice \ 14120 strlcpy \ 14121 strsep \ 14122 strtok_r \ 14123 strtoll \ 14124 sysctl \ 14125 timerfd_create \ 14126 umask \ 14127 unsetenv \ 14128 usleep \ 14129 vasprintf \ 14130 14131do : 14132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14133ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14134if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14135 cat >>confdefs.h <<_ACEOF 14136#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14137_ACEOF 14138 14139fi 14140done 14141 14142 if test x"$ac_cv_func_strlcpy" = xno; then 14143 STRLCPY_IMPL_TRUE= 14144 STRLCPY_IMPL_FALSE='#' 14145else 14146 STRLCPY_IMPL_TRUE='#' 14147 STRLCPY_IMPL_FALSE= 14148fi 14149 14150 14151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 14152$as_echo_n "checking for getaddrinfo... " >&6; } 14153if ${libevent_cv_getaddrinfo+:} false; then : 14154 $as_echo_n "(cached) " >&6 14155else 14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14157/* end confdefs.h. */ 14158 14159 #ifdef HAVE_NETDB_H 14160 #include <netdb.h> 14161 #endif 14162 14163int 14164main () 14165{ 14166 14167 getaddrinfo; 14168 14169 14170 ; 14171 return 0; 14172} 14173_ACEOF 14174if ac_fn_c_try_link "$LINENO"; then : 14175 libevent_cv_getaddrinfo=yes 14176else 14177 libevent_cv_getaddrinfo=no 14178 14179fi 14180rm -f core conftest.err conftest.$ac_objext \ 14181 conftest$ac_exeext conftest.$ac_ext 14182 14183fi 14184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5 14185$as_echo "$libevent_cv_getaddrinfo" >&6; } 14186if test "$libevent_cv_getaddrinfo" = "yes" ; then 14187 14188$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 14189 14190else 14191 14192for ac_func in getservbyname 14193do : 14194 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname" 14195if test "x$ac_cv_func_getservbyname" = xyes; then : 14196 cat >>confdefs.h <<_ACEOF 14197#define HAVE_GETSERVBYNAME 1 14198_ACEOF 14199 14200fi 14201done 14202 14203# Check for gethostbyname_r in all its glorious incompatible versions. 14204# (This is cut-and-pasted from Tor, which based its logic on 14205# Python's configure.in.) 14206 14207 14208ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 14209if test "x$ac_cv_func_gethostbyname_r" = xyes; then : 14210 14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5 14212$as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; } 14213 OLD_CFLAGS=$CFLAGS 14214 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" 14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14216/* end confdefs.h. */ 14217 14218#include <netdb.h> 14219 14220int 14221main () 14222{ 14223 14224 char *cp1, *cp2; 14225 struct hostent *h1, *h2; 14226 int i1, i2; 14227 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2); 14228 14229 ; 14230 return 0; 14231} 14232_ACEOF 14233if ac_fn_c_try_compile "$LINENO"; then : 14234 14235 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 14236 14237 14238$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h 14239 14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5 14241$as_echo "6" >&6; } 14242 14243else 14244 14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14246/* end confdefs.h. */ 14247 14248#include <netdb.h> 14249 14250int 14251main () 14252{ 14253 14254 char *cp1, *cp2; 14255 struct hostent *h1; 14256 int i1, i2; 14257 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2); 14258 14259 ; 14260 return 0; 14261} 14262_ACEOF 14263if ac_fn_c_try_compile "$LINENO"; then : 14264 14265 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 14266 14267 14268$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h 14269 14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5 14271$as_echo "5" >&6; } 14272 14273else 14274 14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14276/* end confdefs.h. */ 14277 14278#include <netdb.h> 14279 14280int 14281main () 14282{ 14283 14284 char *cp1; 14285 struct hostent *h1; 14286 struct hostent_data hd; 14287 (void) gethostbyname_r(cp1,h1,&hd); 14288 14289 ; 14290 return 0; 14291} 14292_ACEOF 14293if ac_fn_c_try_compile "$LINENO"; then : 14294 14295 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 14296 14297 14298$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h 14299 14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5 14301$as_echo "3" >&6; } 14302 14303else 14304 14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5 14306$as_echo "0" >&6; } 14307 14308fi 14309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14310 14311fi 14312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14313 14314fi 14315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14316 CFLAGS=$OLD_CFLAGS 14317 14318fi 14319 14320 14321fi 14322 14323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5 14324$as_echo_n "checking for F_SETFD in fcntl.h... " >&6; } 14325cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14326/* end confdefs.h. */ 14327 14328#define _GNU_SOURCE 14329#include <fcntl.h> 14330#ifdef F_SETFD 14331yes 14332#endif 14333 14334_ACEOF 14335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14336 $EGREP "yes" >/dev/null 2>&1; then : 14337 14338$as_echo "#define HAVE_SETFD 1" >>confdefs.h 14339 14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14341$as_echo "yes" >&6; } 14342else 14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14344$as_echo "no" >&6; } 14345fi 14346rm -f conftest* 14347 14348 14349needsignal=no 14350haveselect=no 14351if test x$bwin32 != xtrue; then 14352 for ac_func in select 14353do : 14354 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 14355if test "x$ac_cv_func_select" = xyes; then : 14356 cat >>confdefs.h <<_ACEOF 14357#define HAVE_SELECT 1 14358_ACEOF 14359 haveselect=yes 14360fi 14361done 14362 14363 if test "x$haveselect" = "xyes" ; then 14364 needsignal=yes 14365 fi 14366fi 14367 if test "x$haveselect" = "xyes"; then 14368 SELECT_BACKEND_TRUE= 14369 SELECT_BACKEND_FALSE='#' 14370else 14371 SELECT_BACKEND_TRUE='#' 14372 SELECT_BACKEND_FALSE= 14373fi 14374 14375 14376havepoll=no 14377for ac_func in poll 14378do : 14379 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 14380if test "x$ac_cv_func_poll" = xyes; then : 14381 cat >>confdefs.h <<_ACEOF 14382#define HAVE_POLL 1 14383_ACEOF 14384 havepoll=yes 14385fi 14386done 14387 14388if test "x$havepoll" = "xyes" ; then 14389 needsignal=yes 14390fi 14391 if test "x$havepoll" = "xyes"; then 14392 POLL_BACKEND_TRUE= 14393 POLL_BACKEND_FALSE='#' 14394else 14395 POLL_BACKEND_TRUE='#' 14396 POLL_BACKEND_FALSE= 14397fi 14398 14399 14400havedevpoll=no 14401if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then 14402 14403$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h 14404 14405fi 14406 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then 14407 DEVPOLL_BACKEND_TRUE= 14408 DEVPOLL_BACKEND_FALSE='#' 14409else 14410 DEVPOLL_BACKEND_TRUE='#' 14411 DEVPOLL_BACKEND_FALSE= 14412fi 14413 14414 14415havekqueue=no 14416if test "x$ac_cv_header_sys_event_h" = "xyes"; then 14417 for ac_func in kqueue 14418do : 14419 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" 14420if test "x$ac_cv_func_kqueue" = xyes; then : 14421 cat >>confdefs.h <<_ACEOF 14422#define HAVE_KQUEUE 1 14423_ACEOF 14424 havekqueue=yes 14425fi 14426done 14427 14428 if test "x$havekqueue" = "xyes" ; then 14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5 14430$as_echo_n "checking for working kqueue... " >&6; } 14431 if test "$cross_compiling" = yes; then : 14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14433$as_echo "no" >&6; } 14434else 14435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14436/* end confdefs.h. */ 14437#include <sys/types.h> 14438#include <sys/time.h> 14439#include <sys/event.h> 14440#include <stdio.h> 14441#include <unistd.h> 14442#include <fcntl.h> 14443 14444int 14445main(int argc, char **argv) 14446{ 14447 int kq; 14448 int n; 14449 int fd[2]; 14450 struct kevent ev; 14451 struct timespec ts; 14452 char buf[8000]; 14453 14454 if (pipe(fd) == -1) 14455 exit(1); 14456 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1) 14457 exit(1); 14458 14459 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf)) 14460 ; 14461 14462 if ((kq = kqueue()) == -1) 14463 exit(1); 14464 14465 memset(&ev, 0, sizeof(ev)); 14466 ev.ident = fd[1]; 14467 ev.filter = EVFILT_WRITE; 14468 ev.flags = EV_ADD | EV_ENABLE; 14469 n = kevent(kq, &ev, 1, NULL, 0, NULL); 14470 if (n == -1) 14471 exit(1); 14472 14473 read(fd[0], buf, sizeof(buf)); 14474 14475 ts.tv_sec = 0; 14476 ts.tv_nsec = 0; 14477 n = kevent(kq, NULL, 0, &ev, 1, &ts); 14478 if (n == -1 || n == 0) 14479 exit(1); 14480 14481 exit(0); 14482} 14483_ACEOF 14484if ac_fn_c_try_run "$LINENO"; then : 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14486$as_echo "yes" >&6; } 14487 14488$as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h 14489 14490 havekqueue=yes 14491 14492else 14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14494$as_echo "no" >&6; } 14495fi 14496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14497 conftest.$ac_objext conftest.beam conftest.$ac_ext 14498fi 14499 14500 fi 14501fi 14502 if test "x$havekqueue" = "xyes"; then 14503 KQUEUE_BACKEND_TRUE= 14504 KQUEUE_BACKEND_FALSE='#' 14505else 14506 KQUEUE_BACKEND_TRUE='#' 14507 KQUEUE_BACKEND_FALSE= 14508fi 14509 14510 14511haveepollsyscall=no 14512haveepoll=no 14513for ac_func in epoll_ctl 14514do : 14515 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" 14516if test "x$ac_cv_func_epoll_ctl" = xyes; then : 14517 cat >>confdefs.h <<_ACEOF 14518#define HAVE_EPOLL_CTL 1 14519_ACEOF 14520 haveepoll=yes 14521fi 14522done 14523 14524if test "x$haveepoll" = "xyes" ; then 14525 14526$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 14527 14528 needsignal=yes 14529fi 14530if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then 14531 if test "x$haveepoll" = "xno" ; then 14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5 14533$as_echo_n "checking for epoll system call... " >&6; } 14534 if test "$cross_compiling" = yes; then : 14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14536$as_echo "no" >&6; } 14537else 14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14539/* end confdefs.h. */ 14540#include <stdint.h> 14541#include <sys/param.h> 14542#include <sys/types.h> 14543#include <sys/syscall.h> 14544#include <sys/epoll.h> 14545#include <unistd.h> 14546 14547int 14548epoll_create(int size) 14549{ 14550 return (syscall(__NR_epoll_create, size)); 14551} 14552 14553int 14554main(int argc, char **argv) 14555{ 14556 int epfd; 14557 14558 epfd = epoll_create(256); 14559 exit (epfd == -1 ? 1 : 0); 14560} 14561_ACEOF 14562if ac_fn_c_try_run "$LINENO"; then : 14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14564$as_echo "yes" >&6; } 14565 14566$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 14567 14568 needsignal=yes 14569 have_epoll=yes 14570 case " $LIBOBJS " in 14571 *" epoll_sub.$ac_objext "* ) ;; 14572 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext" 14573 ;; 14574esac 14575 14576 14577else 14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14579$as_echo "no" >&6; } 14580fi 14581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14582 conftest.$ac_objext conftest.beam conftest.$ac_ext 14583fi 14584 14585 fi 14586fi 14587 if test "x$haveepoll" = "xyes"; then 14588 EPOLL_BACKEND_TRUE= 14589 EPOLL_BACKEND_FALSE='#' 14590else 14591 EPOLL_BACKEND_TRUE='#' 14592 EPOLL_BACKEND_FALSE= 14593fi 14594 14595 14596haveeventports=no 14597for ac_func in port_create 14598do : 14599 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create" 14600if test "x$ac_cv_func_port_create" = xyes; then : 14601 cat >>confdefs.h <<_ACEOF 14602#define HAVE_PORT_CREATE 1 14603_ACEOF 14604 haveeventports=yes 14605fi 14606done 14607 14608if test "x$haveeventports" = "xyes" ; then 14609 14610$as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h 14611 14612 needsignal=yes 14613fi 14614 if test "x$haveeventports" = "xyes"; then 14615 EVPORT_BACKEND_TRUE= 14616 EVPORT_BACKEND_FALSE='#' 14617else 14618 EVPORT_BACKEND_TRUE='#' 14619 EVPORT_BACKEND_FALSE= 14620fi 14621 14622 14623if test "x$bwin32" = "xtrue"; then 14624 needsignal=yes 14625fi 14626 14627 if test "x$needsignal" = "xyes"; then 14628 SIGNAL_SUPPORT_TRUE= 14629 SIGNAL_SUPPORT_FALSE='#' 14630else 14631 SIGNAL_SUPPORT_TRUE='#' 14632 SIGNAL_SUPPORT_FALSE= 14633fi 14634 14635 14636ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 14637if test "x$ac_cv_type_pid_t" = xyes; then : 14638 14639else 14640 14641cat >>confdefs.h <<_ACEOF 14642#define pid_t int 14643_ACEOF 14644 14645fi 14646 14647ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14648if test "x$ac_cv_type_size_t" = xyes; then : 14649 14650else 14651 14652cat >>confdefs.h <<_ACEOF 14653#define size_t unsigned int 14654_ACEOF 14655 14656fi 14657 14658ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14659if test "x$ac_cv_type_ssize_t" = xyes; then : 14660 14661else 14662 14663cat >>confdefs.h <<_ACEOF 14664#define ssize_t int 14665_ACEOF 14666 14667fi 14668 14669 14670ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H 14671#include <stdint.h> 14672#elif defined(HAVE_INTTYPES_H) 14673#include <inttypes.h> 14674#endif 14675#ifdef HAVE_SYS_TYPES_H 14676#include <sys/types.h> 14677#endif 14678" 14679if test "x$ac_cv_type_uint64_t" = xyes; then : 14680 14681cat >>confdefs.h <<_ACEOF 14682#define HAVE_UINT64_T 1 14683_ACEOF 14684 14685 14686fi 14687ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H 14688#include <stdint.h> 14689#elif defined(HAVE_INTTYPES_H) 14690#include <inttypes.h> 14691#endif 14692#ifdef HAVE_SYS_TYPES_H 14693#include <sys/types.h> 14694#endif 14695" 14696if test "x$ac_cv_type_uint32_t" = xyes; then : 14697 14698cat >>confdefs.h <<_ACEOF 14699#define HAVE_UINT32_T 1 14700_ACEOF 14701 14702 14703fi 14704ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H 14705#include <stdint.h> 14706#elif defined(HAVE_INTTYPES_H) 14707#include <inttypes.h> 14708#endif 14709#ifdef HAVE_SYS_TYPES_H 14710#include <sys/types.h> 14711#endif 14712" 14713if test "x$ac_cv_type_uint16_t" = xyes; then : 14714 14715cat >>confdefs.h <<_ACEOF 14716#define HAVE_UINT16_T 1 14717_ACEOF 14718 14719 14720fi 14721ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H 14722#include <stdint.h> 14723#elif defined(HAVE_INTTYPES_H) 14724#include <inttypes.h> 14725#endif 14726#ifdef HAVE_SYS_TYPES_H 14727#include <sys/types.h> 14728#endif 14729" 14730if test "x$ac_cv_type_uint8_t" = xyes; then : 14731 14732cat >>confdefs.h <<_ACEOF 14733#define HAVE_UINT8_T 1 14734_ACEOF 14735 14736 14737fi 14738ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H 14739#include <stdint.h> 14740#elif defined(HAVE_INTTYPES_H) 14741#include <inttypes.h> 14742#endif 14743#ifdef HAVE_SYS_TYPES_H 14744#include <sys/types.h> 14745#endif 14746" 14747if test "x$ac_cv_type_uintptr_t" = xyes; then : 14748 14749cat >>confdefs.h <<_ACEOF 14750#define HAVE_UINTPTR_T 1 14751_ACEOF 14752 14753 14754fi 14755 14756 14757ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H 14758#include <sys/types.h> 14759#endif 14760#ifdef HAVE_SYS_SELECT_H 14761#include <sys/select.h> 14762#endif 14763" 14764if test "x$ac_cv_type_fd_mask" = xyes; then : 14765 14766cat >>confdefs.h <<_ACEOF 14767#define HAVE_FD_MASK 1 14768_ACEOF 14769 14770 14771fi 14772 14773 14774# The cast to long int works around a bug in the HP C Compiler 14775# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14776# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14777# This bug is HP SR number 8606223364. 14778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 14779$as_echo_n "checking size of long long... " >&6; } 14780if ${ac_cv_sizeof_long_long+:} false; then : 14781 $as_echo_n "(cached) " >&6 14782else 14783 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 14784 14785else 14786 if test "$ac_cv_type_long_long" = yes; then 14787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14789as_fn_error 77 "cannot compute sizeof (long long) 14790See \`config.log' for more details" "$LINENO" 5; } 14791 else 14792 ac_cv_sizeof_long_long=0 14793 fi 14794fi 14795 14796fi 14797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 14798$as_echo "$ac_cv_sizeof_long_long" >&6; } 14799 14800 14801 14802cat >>confdefs.h <<_ACEOF 14803#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 14804_ACEOF 14805 14806 14807# The cast to long int works around a bug in the HP C Compiler 14808# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14809# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14810# This bug is HP SR number 8606223364. 14811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14812$as_echo_n "checking size of long... " >&6; } 14813if ${ac_cv_sizeof_long+:} false; then : 14814 $as_echo_n "(cached) " >&6 14815else 14816 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14817 14818else 14819 if test "$ac_cv_type_long" = yes; then 14820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14822as_fn_error 77 "cannot compute sizeof (long) 14823See \`config.log' for more details" "$LINENO" 5; } 14824 else 14825 ac_cv_sizeof_long=0 14826 fi 14827fi 14828 14829fi 14830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14831$as_echo "$ac_cv_sizeof_long" >&6; } 14832 14833 14834 14835cat >>confdefs.h <<_ACEOF 14836#define SIZEOF_LONG $ac_cv_sizeof_long 14837_ACEOF 14838 14839 14840# The cast to long int works around a bug in the HP C Compiler 14841# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14842# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14843# This bug is HP SR number 8606223364. 14844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 14845$as_echo_n "checking size of int... " >&6; } 14846if ${ac_cv_sizeof_int+:} false; then : 14847 $as_echo_n "(cached) " >&6 14848else 14849 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 14850 14851else 14852 if test "$ac_cv_type_int" = yes; then 14853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14855as_fn_error 77 "cannot compute sizeof (int) 14856See \`config.log' for more details" "$LINENO" 5; } 14857 else 14858 ac_cv_sizeof_int=0 14859 fi 14860fi 14861 14862fi 14863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 14864$as_echo "$ac_cv_sizeof_int" >&6; } 14865 14866 14867 14868cat >>confdefs.h <<_ACEOF 14869#define SIZEOF_INT $ac_cv_sizeof_int 14870_ACEOF 14871 14872 14873# The cast to long int works around a bug in the HP C Compiler 14874# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14875# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14876# This bug is HP SR number 8606223364. 14877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 14878$as_echo_n "checking size of short... " >&6; } 14879if ${ac_cv_sizeof_short+:} false; then : 14880 $as_echo_n "(cached) " >&6 14881else 14882 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 14883 14884else 14885 if test "$ac_cv_type_short" = yes; then 14886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14888as_fn_error 77 "cannot compute sizeof (short) 14889See \`config.log' for more details" "$LINENO" 5; } 14890 else 14891 ac_cv_sizeof_short=0 14892 fi 14893fi 14894 14895fi 14896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 14897$as_echo "$ac_cv_sizeof_short" >&6; } 14898 14899 14900 14901cat >>confdefs.h <<_ACEOF 14902#define SIZEOF_SHORT $ac_cv_sizeof_short 14903_ACEOF 14904 14905 14906# The cast to long int works around a bug in the HP C Compiler 14907# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14908# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14909# This bug is HP SR number 8606223364. 14910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 14911$as_echo_n "checking size of size_t... " >&6; } 14912if ${ac_cv_sizeof_size_t+:} false; then : 14913 $as_echo_n "(cached) " >&6 14914else 14915 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 14916 14917else 14918 if test "$ac_cv_type_size_t" = yes; then 14919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14921as_fn_error 77 "cannot compute sizeof (size_t) 14922See \`config.log' for more details" "$LINENO" 5; } 14923 else 14924 ac_cv_sizeof_size_t=0 14925 fi 14926fi 14927 14928fi 14929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 14930$as_echo "$ac_cv_sizeof_size_t" >&6; } 14931 14932 14933 14934cat >>confdefs.h <<_ACEOF 14935#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 14936_ACEOF 14937 14938 14939# The cast to long int works around a bug in the HP C Compiler 14940# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14941# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14942# This bug is HP SR number 8606223364. 14943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 14944$as_echo_n "checking size of void *... " >&6; } 14945if ${ac_cv_sizeof_void_p+:} false; then : 14946 $as_echo_n "(cached) " >&6 14947else 14948 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 14949 14950else 14951 if test "$ac_cv_type_void_p" = yes; then 14952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14954as_fn_error 77 "cannot compute sizeof (void *) 14955See \`config.log' for more details" "$LINENO" 5; } 14956 else 14957 ac_cv_sizeof_void_p=0 14958 fi 14959fi 14960 14961fi 14962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 14963$as_echo "$ac_cv_sizeof_void_p" >&6; } 14964 14965 14966 14967cat >>confdefs.h <<_ACEOF 14968#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 14969_ACEOF 14970 14971 14972# The cast to long int works around a bug in the HP C Compiler 14973# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14974# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14975# This bug is HP SR number 8606223364. 14976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 14977$as_echo_n "checking size of off_t... " >&6; } 14978if ${ac_cv_sizeof_off_t+:} false; then : 14979 $as_echo_n "(cached) " >&6 14980else 14981 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 14982 14983else 14984 if test "$ac_cv_type_off_t" = yes; then 14985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14987as_fn_error 77 "cannot compute sizeof (off_t) 14988See \`config.log' for more details" "$LINENO" 5; } 14989 else 14990 ac_cv_sizeof_off_t=0 14991 fi 14992fi 14993 14994fi 14995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 14996$as_echo "$ac_cv_sizeof_off_t" >&6; } 14997 14998 14999 15000cat >>confdefs.h <<_ACEOF 15001#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 15002_ACEOF 15003 15004 15005 15006ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE 15007#include <sys/types.h> 15008#ifdef HAVE_NETINET_IN_H 15009#include <netinet/in.h> 15010#endif 15011#ifdef HAVE_NETINET_IN6_H 15012#include <netinet/in6.h> 15013#endif 15014#ifdef HAVE_SYS_SOCKET_H 15015#include <sys/socket.h> 15016#endif 15017#ifdef HAVE_NETDB_H 15018#include <netdb.h> 15019#endif 15020#ifdef _WIN32 15021#define WIN32_WINNT 0x400 15022#define _WIN32_WINNT 0x400 15023#define WIN32_LEAN_AND_MEAN 15024#if defined(_MSC_VER) && (_MSC_VER < 1300) 15025#include <winsock.h> 15026#else 15027#include <winsock2.h> 15028#include <ws2tcpip.h> 15029#endif 15030#endif 15031 15032" 15033if test "x$ac_cv_type_struct_in6_addr" = xyes; then : 15034 15035cat >>confdefs.h <<_ACEOF 15036#define HAVE_STRUCT_IN6_ADDR 1 15037_ACEOF 15038 15039 15040fi 15041ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE 15042#include <sys/types.h> 15043#ifdef HAVE_NETINET_IN_H 15044#include <netinet/in.h> 15045#endif 15046#ifdef HAVE_NETINET_IN6_H 15047#include <netinet/in6.h> 15048#endif 15049#ifdef HAVE_SYS_SOCKET_H 15050#include <sys/socket.h> 15051#endif 15052#ifdef HAVE_NETDB_H 15053#include <netdb.h> 15054#endif 15055#ifdef _WIN32 15056#define WIN32_WINNT 0x400 15057#define _WIN32_WINNT 0x400 15058#define WIN32_LEAN_AND_MEAN 15059#if defined(_MSC_VER) && (_MSC_VER < 1300) 15060#include <winsock.h> 15061#else 15062#include <winsock2.h> 15063#include <ws2tcpip.h> 15064#endif 15065#endif 15066 15067" 15068if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : 15069 15070cat >>confdefs.h <<_ACEOF 15071#define HAVE_STRUCT_SOCKADDR_IN6 1 15072_ACEOF 15073 15074 15075fi 15076ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE 15077#include <sys/types.h> 15078#ifdef HAVE_NETINET_IN_H 15079#include <netinet/in.h> 15080#endif 15081#ifdef HAVE_NETINET_IN6_H 15082#include <netinet/in6.h> 15083#endif 15084#ifdef HAVE_SYS_SOCKET_H 15085#include <sys/socket.h> 15086#endif 15087#ifdef HAVE_NETDB_H 15088#include <netdb.h> 15089#endif 15090#ifdef _WIN32 15091#define WIN32_WINNT 0x400 15092#define _WIN32_WINNT 0x400 15093#define WIN32_LEAN_AND_MEAN 15094#if defined(_MSC_VER) && (_MSC_VER < 1300) 15095#include <winsock.h> 15096#else 15097#include <winsock2.h> 15098#include <ws2tcpip.h> 15099#endif 15100#endif 15101 15102" 15103if test "x$ac_cv_type_sa_family_t" = xyes; then : 15104 15105cat >>confdefs.h <<_ACEOF 15106#define HAVE_SA_FAMILY_T 1 15107_ACEOF 15108 15109 15110fi 15111ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE 15112#include <sys/types.h> 15113#ifdef HAVE_NETINET_IN_H 15114#include <netinet/in.h> 15115#endif 15116#ifdef HAVE_NETINET_IN6_H 15117#include <netinet/in6.h> 15118#endif 15119#ifdef HAVE_SYS_SOCKET_H 15120#include <sys/socket.h> 15121#endif 15122#ifdef HAVE_NETDB_H 15123#include <netdb.h> 15124#endif 15125#ifdef _WIN32 15126#define WIN32_WINNT 0x400 15127#define _WIN32_WINNT 0x400 15128#define WIN32_LEAN_AND_MEAN 15129#if defined(_MSC_VER) && (_MSC_VER < 1300) 15130#include <winsock.h> 15131#else 15132#include <winsock2.h> 15133#include <ws2tcpip.h> 15134#endif 15135#endif 15136 15137" 15138if test "x$ac_cv_type_struct_addrinfo" = xyes; then : 15139 15140cat >>confdefs.h <<_ACEOF 15141#define HAVE_STRUCT_ADDRINFO 1 15142_ACEOF 15143 15144 15145fi 15146ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE 15147#include <sys/types.h> 15148#ifdef HAVE_NETINET_IN_H 15149#include <netinet/in.h> 15150#endif 15151#ifdef HAVE_NETINET_IN6_H 15152#include <netinet/in6.h> 15153#endif 15154#ifdef HAVE_SYS_SOCKET_H 15155#include <sys/socket.h> 15156#endif 15157#ifdef HAVE_NETDB_H 15158#include <netdb.h> 15159#endif 15160#ifdef _WIN32 15161#define WIN32_WINNT 0x400 15162#define _WIN32_WINNT 0x400 15163#define WIN32_LEAN_AND_MEAN 15164#if defined(_MSC_VER) && (_MSC_VER < 1300) 15165#include <winsock.h> 15166#else 15167#include <winsock2.h> 15168#include <ws2tcpip.h> 15169#endif 15170#endif 15171 15172" 15173if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 15174 15175cat >>confdefs.h <<_ACEOF 15176#define HAVE_STRUCT_SOCKADDR_STORAGE 1 15177_ACEOF 15178 15179 15180fi 15181 15182ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h> 15183#ifdef HAVE_NETINET_IN_H 15184#include <netinet/in.h> 15185#endif 15186#ifdef HAVE_NETINET_IN6_H 15187#include <netinet/in6.h> 15188#endif 15189#ifdef HAVE_SYS_SOCKET_H 15190#include <sys/socket.h> 15191#endif 15192#ifdef _WIN32 15193#define WIN32_WINNT 0x400 15194#define _WIN32_WINNT 0x400 15195#define WIN32_LEAN_AND_MEAN 15196#if defined(_MSC_VER) && (_MSC_VER < 1300) 15197#include <winsock.h> 15198#else 15199#include <winsock2.h> 15200#include <ws2tcpip.h> 15201#endif 15202#endif 15203 15204" 15205if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then : 15206 15207cat >>confdefs.h <<_ACEOF 15208#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1 15209_ACEOF 15210 15211 15212fi 15213ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h> 15214#ifdef HAVE_NETINET_IN_H 15215#include <netinet/in.h> 15216#endif 15217#ifdef HAVE_NETINET_IN6_H 15218#include <netinet/in6.h> 15219#endif 15220#ifdef HAVE_SYS_SOCKET_H 15221#include <sys/socket.h> 15222#endif 15223#ifdef _WIN32 15224#define WIN32_WINNT 0x400 15225#define _WIN32_WINNT 0x400 15226#define WIN32_LEAN_AND_MEAN 15227#if defined(_MSC_VER) && (_MSC_VER < 1300) 15228#include <winsock.h> 15229#else 15230#include <winsock2.h> 15231#include <ws2tcpip.h> 15232#endif 15233#endif 15234 15235" 15236if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then : 15237 15238cat >>confdefs.h <<_ACEOF 15239#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1 15240_ACEOF 15241 15242 15243fi 15244ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h> 15245#ifdef HAVE_NETINET_IN_H 15246#include <netinet/in.h> 15247#endif 15248#ifdef HAVE_NETINET_IN6_H 15249#include <netinet/in6.h> 15250#endif 15251#ifdef HAVE_SYS_SOCKET_H 15252#include <sys/socket.h> 15253#endif 15254#ifdef _WIN32 15255#define WIN32_WINNT 0x400 15256#define _WIN32_WINNT 0x400 15257#define WIN32_LEAN_AND_MEAN 15258#if defined(_MSC_VER) && (_MSC_VER < 1300) 15259#include <winsock.h> 15260#else 15261#include <winsock2.h> 15262#include <ws2tcpip.h> 15263#endif 15264#endif 15265 15266" 15267if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 15268 15269cat >>confdefs.h <<_ACEOF 15270#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 15271_ACEOF 15272 15273 15274fi 15275ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h> 15276#ifdef HAVE_NETINET_IN_H 15277#include <netinet/in.h> 15278#endif 15279#ifdef HAVE_NETINET_IN6_H 15280#include <netinet/in6.h> 15281#endif 15282#ifdef HAVE_SYS_SOCKET_H 15283#include <sys/socket.h> 15284#endif 15285#ifdef _WIN32 15286#define WIN32_WINNT 0x400 15287#define _WIN32_WINNT 0x400 15288#define WIN32_LEAN_AND_MEAN 15289#if defined(_MSC_VER) && (_MSC_VER < 1300) 15290#include <winsock.h> 15291#else 15292#include <winsock2.h> 15293#include <ws2tcpip.h> 15294#endif 15295#endif 15296 15297" 15298if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then : 15299 15300cat >>confdefs.h <<_ACEOF 15301#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1 15302_ACEOF 15303 15304 15305fi 15306ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h> 15307#ifdef HAVE_NETINET_IN_H 15308#include <netinet/in.h> 15309#endif 15310#ifdef HAVE_NETINET_IN6_H 15311#include <netinet/in6.h> 15312#endif 15313#ifdef HAVE_SYS_SOCKET_H 15314#include <sys/socket.h> 15315#endif 15316#ifdef _WIN32 15317#define WIN32_WINNT 0x400 15318#define _WIN32_WINNT 0x400 15319#define WIN32_LEAN_AND_MEAN 15320#if defined(_MSC_VER) && (_MSC_VER < 1300) 15321#include <winsock.h> 15322#else 15323#include <winsock2.h> 15324#include <ws2tcpip.h> 15325#endif 15326#endif 15327 15328" 15329if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : 15330 15331cat >>confdefs.h <<_ACEOF 15332#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 15333_ACEOF 15334 15335 15336fi 15337ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h> 15338#ifdef HAVE_NETINET_IN_H 15339#include <netinet/in.h> 15340#endif 15341#ifdef HAVE_NETINET_IN6_H 15342#include <netinet/in6.h> 15343#endif 15344#ifdef HAVE_SYS_SOCKET_H 15345#include <sys/socket.h> 15346#endif 15347#ifdef _WIN32 15348#define WIN32_WINNT 0x400 15349#define _WIN32_WINNT 0x400 15350#define WIN32_LEAN_AND_MEAN 15351#if defined(_MSC_VER) && (_MSC_VER < 1300) 15352#include <winsock.h> 15353#else 15354#include <winsock2.h> 15355#include <ws2tcpip.h> 15356#endif 15357#endif 15358 15359" 15360if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then : 15361 15362cat >>confdefs.h <<_ACEOF 15363#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1 15364_ACEOF 15365 15366 15367fi 15368 15369 15370ac_fn_c_check_type "$LINENO" "struct so_linger" "ac_cv_type_struct_so_linger" " 15371#ifdef HAVE_SYS_SOCKET_H 15372#include <sys/socket.h> 15373#endif 15374 15375" 15376if test "x$ac_cv_type_struct_so_linger" = xyes; then : 15377 15378cat >>confdefs.h <<_ACEOF 15379#define HAVE_STRUCT_SO_LINGER 1 15380_ACEOF 15381 15382#define HAVE_SO_LINGER 15383fi 15384 15385 15386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 15387$as_echo_n "checking for socklen_t... " >&6; } 15388cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15389/* end confdefs.h. */ 15390 15391 #include <sys/types.h> 15392 #include <sys/socket.h> 15393int 15394main () 15395{ 15396socklen_t x; 15397 ; 15398 return 0; 15399} 15400_ACEOF 15401if ac_fn_c_try_compile "$LINENO"; then : 15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15403$as_echo "yes" >&6; } 15404else 15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15406$as_echo "no" >&6; } 15407 15408$as_echo "#define socklen_t unsigned int" >>confdefs.h 15409 15410 15411fi 15412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15413 15414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5 15415$as_echo_n "checking whether our compiler supports __func__... " >&6; } 15416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15417/* end confdefs.h. */ 15418 15419int 15420main () 15421{ 15422 const char *cp = __func__; 15423 ; 15424 return 0; 15425} 15426_ACEOF 15427if ac_fn_c_try_compile "$LINENO"; then : 15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15429$as_echo "yes" >&6; } 15430else 15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15432$as_echo "no" >&6; } 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5 15434$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } 15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15436/* end confdefs.h. */ 15437 15438int 15439main () 15440{ 15441 const char *cp = __FUNCTION__; 15442 ; 15443 return 0; 15444} 15445_ACEOF 15446if ac_fn_c_try_compile "$LINENO"; then : 15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15448$as_echo "yes" >&6; } 15449 15450$as_echo "#define __func__ __FUNCTION__" >>confdefs.h 15451 15452else 15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15454$as_echo "no" >&6; } 15455 15456$as_echo "#define __func__ __FILE__" >>confdefs.h 15457 15458fi 15459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15460fi 15461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15462 15463 15464# check if we can compile with pthreads 15465have_pthreads=no 15466if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then 15467 15468 15469 15470ac_ext=c 15471ac_cpp='$CPP $CPPFLAGS' 15472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15474ac_compiler_gnu=$ac_cv_c_compiler_gnu 15475 15476acx_pthread_ok=no 15477 15478# We used to check for pthread.h first, but this fails if pthread.h 15479# requires special compiler flags (e.g. on True64 or Sequent). 15480# It gets checked for in the link test anyway. 15481 15482# First of all, check if the user has set any of the PTHREAD_LIBS, 15483# etcetera environment variables, and if threads linking works using 15484# them: 15485if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 15486 save_CFLAGS="$CFLAGS" 15487 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15488 save_LIBS="$LIBS" 15489 LIBS="$PTHREAD_LIBS $LIBS" 15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 15491$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15493/* end confdefs.h. */ 15494 15495/* Override any GCC internal prototype to avoid an error. 15496 Use char because int might match the return type of a GCC 15497 builtin and then its argument prototype would still apply. */ 15498#ifdef __cplusplus 15499extern "C" 15500#endif 15501char pthread_join (); 15502int 15503main () 15504{ 15505return pthread_join (); 15506 ; 15507 return 0; 15508} 15509_ACEOF 15510if ac_fn_c_try_link "$LINENO"; then : 15511 acx_pthread_ok=yes 15512fi 15513rm -f core conftest.err conftest.$ac_objext \ 15514 conftest$ac_exeext conftest.$ac_ext 15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15516$as_echo "$acx_pthread_ok" >&6; } 15517 if test x"$acx_pthread_ok" = xno; then 15518 PTHREAD_LIBS="" 15519 PTHREAD_CFLAGS="" 15520 fi 15521 LIBS="$save_LIBS" 15522 CFLAGS="$save_CFLAGS" 15523fi 15524 15525# We must check for the threads library under a number of different 15526# names; the ordering is very important because some systems 15527# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15528# libraries is broken (non-POSIX). 15529 15530# Create a list of thread flags to try. Items starting with a "-" are 15531# C compiler flags, and other items are library names, except for "none" 15532# which indicates that we try without any flags at all, and "pthread-config" 15533# which is a program returning the flags for the Pth emulation library. 15534 15535acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15536 15537# The ordering *is* (sometimes) important. Some notes on the 15538# individual items follow: 15539 15540# pthreads: AIX (must check this before -lpthread) 15541# none: in case threads are in libc; should be tried before -Kthread and 15542# other compiler flags to prevent continual compiler warnings 15543# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15544# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15545# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15546# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15547# -pthreads: Solaris/gcc 15548# -mthreads: Mingw32/gcc, Lynx/gcc 15549# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15550# doesn't hurt to check since this sometimes defines pthreads too; 15551# also defines -D_REENTRANT) 15552# ... -mt is also the pthreads flag for HP/aCC 15553# pthread: Linux, etcetera 15554# --thread-safe: KAI C++ 15555# pthread-config: use pthread-config program (for GNU Pth library) 15556 15557case "${host_cpu}-${host_os}" in 15558 *solaris*) 15559 15560 # On Solaris (at least, for some versions), libc contains stubbed 15561 # (non-functional) versions of the pthreads routines, so link-based 15562 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15563 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15564 # a function called by this macro, so we could check for that, but 15565 # who knows whether they'll stub that too in a future libc.) So, 15566 # we'll just look for -pthreads and -lpthread first: 15567 15568 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 15569 ;; 15570esac 15571 15572if test x"$acx_pthread_ok" = xno; then 15573for flag in $acx_pthread_flags; do 15574 15575 case $flag in 15576 none) 15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15578$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15579 ;; 15580 15581 -*) 15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15583$as_echo_n "checking whether pthreads work with $flag... " >&6; } 15584 PTHREAD_CFLAGS="$flag" 15585 ;; 15586 15587 pthread-config) 15588 # Extract the first word of "pthread-config", so it can be a program name with args. 15589set dummy pthread-config; ac_word=$2 15590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15591$as_echo_n "checking for $ac_word... " >&6; } 15592if ${ac_cv_prog_acx_pthread_config+:} false; then : 15593 $as_echo_n "(cached) " >&6 15594else 15595 if test -n "$acx_pthread_config"; then 15596 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 15597else 15598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15599for as_dir in $PATH 15600do 15601 IFS=$as_save_IFS 15602 test -z "$as_dir" && as_dir=. 15603 for ac_exec_ext in '' $ac_executable_extensions; do 15604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15605 ac_cv_prog_acx_pthread_config="yes" 15606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15607 break 2 15608 fi 15609done 15610 done 15611IFS=$as_save_IFS 15612 15613 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 15614fi 15615fi 15616acx_pthread_config=$ac_cv_prog_acx_pthread_config 15617if test -n "$acx_pthread_config"; then 15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 15619$as_echo "$acx_pthread_config" >&6; } 15620else 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15622$as_echo "no" >&6; } 15623fi 15624 15625 15626 if test x"$acx_pthread_config" = xno; then continue; fi 15627 PTHREAD_CFLAGS="`pthread-config --cflags`" 15628 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15629 ;; 15630 15631 *) 15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15633$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15634 PTHREAD_LIBS="-l$flag" 15635 ;; 15636 esac 15637 15638 save_LIBS="$LIBS" 15639 save_CFLAGS="$CFLAGS" 15640 LIBS="$PTHREAD_LIBS $LIBS" 15641 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15642 15643 # Check for various functions. We must include pthread.h, 15644 # since some functions may be macros. (On the Sequent, we 15645 # need a special flag -Kthread to make this header compile.) 15646 # We check for pthread_join because it is in -lpthread on IRIX 15647 # while pthread_create is in libc. We check for pthread_attr_init 15648 # due to DEC craziness with -lpthreads. We check for 15649 # pthread_cleanup_push because it is one of the few pthread 15650 # functions on Solaris that doesn't have a non-functional libc stub. 15651 # We try pthread_create on general principles. 15652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15653/* end confdefs.h. */ 15654#include <pthread.h> 15655int 15656main () 15657{ 15658pthread_t th; pthread_join(th, 0); 15659 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15660 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15661 ; 15662 return 0; 15663} 15664_ACEOF 15665if ac_fn_c_try_link "$LINENO"; then : 15666 acx_pthread_ok=yes 15667fi 15668rm -f core conftest.err conftest.$ac_objext \ 15669 conftest$ac_exeext conftest.$ac_ext 15670 15671 LIBS="$save_LIBS" 15672 CFLAGS="$save_CFLAGS" 15673 15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15675$as_echo "$acx_pthread_ok" >&6; } 15676 if test "x$acx_pthread_ok" = xyes; then 15677 break; 15678 fi 15679 15680 PTHREAD_LIBS="" 15681 PTHREAD_CFLAGS="" 15682done 15683fi 15684 15685# Various other checks: 15686if test "x$acx_pthread_ok" = xyes; then 15687 save_LIBS="$LIBS" 15688 LIBS="$PTHREAD_LIBS $LIBS" 15689 save_CFLAGS="$CFLAGS" 15690 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15691 15692 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15694$as_echo_n "checking for joinable pthread attribute... " >&6; } 15695 attr_name=unknown 15696 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15698/* end confdefs.h. */ 15699#include <pthread.h> 15700int 15701main () 15702{ 15703int attr=$attr; return attr; 15704 ; 15705 return 0; 15706} 15707_ACEOF 15708if ac_fn_c_try_link "$LINENO"; then : 15709 attr_name=$attr; break 15710fi 15711rm -f core conftest.err conftest.$ac_objext \ 15712 conftest$ac_exeext conftest.$ac_ext 15713 done 15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15715$as_echo "$attr_name" >&6; } 15716 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15717 15718cat >>confdefs.h <<_ACEOF 15719#define PTHREAD_CREATE_JOINABLE $attr_name 15720_ACEOF 15721 15722 fi 15723 15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15725$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15726 flag=no 15727 case "${host_cpu}-${host_os}" in 15728 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 15729 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 15730 esac 15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15732$as_echo "${flag}" >&6; } 15733 if test "x$flag" != xno; then 15734 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15735 fi 15736 15737 LIBS="$save_LIBS" 15738 CFLAGS="$save_CFLAGS" 15739 15740 # More AIX lossage: must compile with xlc_r or cc_r 15741 if test x"$GCC" != xyes; then 15742 for ac_prog in xlc_r cc_r 15743do 15744 # Extract the first word of "$ac_prog", so it can be a program name with args. 15745set dummy $ac_prog; ac_word=$2 15746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15747$as_echo_n "checking for $ac_word... " >&6; } 15748if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15749 $as_echo_n "(cached) " >&6 15750else 15751 if test -n "$PTHREAD_CC"; then 15752 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15753else 15754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15755for as_dir in $PATH 15756do 15757 IFS=$as_save_IFS 15758 test -z "$as_dir" && as_dir=. 15759 for ac_exec_ext in '' $ac_executable_extensions; do 15760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15761 ac_cv_prog_PTHREAD_CC="$ac_prog" 15762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15763 break 2 15764 fi 15765done 15766 done 15767IFS=$as_save_IFS 15768 15769fi 15770fi 15771PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15772if test -n "$PTHREAD_CC"; then 15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15774$as_echo "$PTHREAD_CC" >&6; } 15775else 15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15777$as_echo "no" >&6; } 15778fi 15779 15780 15781 test -n "$PTHREAD_CC" && break 15782done 15783test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 15784 15785 else 15786 PTHREAD_CC=$CC 15787 fi 15788else 15789 PTHREAD_CC="$CC" 15790fi 15791 15792 15793 15794 15795 15796# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15797if test x"$acx_pthread_ok" = xyes; then 15798 15799 15800$as_echo "#define HAVE_PTHREADS 1" >>confdefs.h 15801 15802 have_pthreads=yes 15803 : 15804else 15805 acx_pthread_ok=no 15806 15807fi 15808ac_ext=c 15809ac_cpp='$CPP $CPPFLAGS' 15810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15812ac_compiler_gnu=$ac_cv_c_compiler_gnu 15813 15814 15815 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15816 # The cast to long int works around a bug in the HP C Compiler 15817# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15818# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15819# This bug is HP SR number 8606223364. 15820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 15821$as_echo_n "checking size of pthread_t... " >&6; } 15822if ${ac_cv_sizeof_pthread_t+:} false; then : 15823 $as_echo_n "(cached) " >&6 15824else 15825 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default 15826 #include <pthread.h> 15827 15828"; then : 15829 15830else 15831 if test "$ac_cv_type_pthread_t" = yes; then 15832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15834as_fn_error 77 "cannot compute sizeof (pthread_t) 15835See \`config.log' for more details" "$LINENO" 5; } 15836 else 15837 ac_cv_sizeof_pthread_t=0 15838 fi 15839fi 15840 15841fi 15842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 15843$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 15844 15845 15846 15847cat >>confdefs.h <<_ACEOF 15848#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 15849_ACEOF 15850 15851 15852fi 15853 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then 15854 PTHREADS_TRUE= 15855 PTHREADS_FALSE='#' 15856else 15857 PTHREADS_TRUE='#' 15858 PTHREADS_FALSE= 15859fi 15860 15861 15862# check if we should compile locking into the library 15863if test x$enable_thread_support = xno; then 15864 15865$as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h 15866 15867fi 15868 15869# check if we should hard-code the mm functions. 15870if test x$enable_malloc_replacement = xno; then 15871 15872$as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h 15873 15874fi 15875 15876# check if we should hard-code debugging out 15877if test x$enable_debug_mode = xno; then 15878 15879$as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h 15880 15881fi 15882 15883# check if we should enable verbose debugging 15884if test x$enable_verbose_debug = xyes; then 15885 CFLAGS="$CFLAGS -DUSE_DEBUG" 15886fi 15887 15888# check if we have and should use openssl 15889 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then 15890 OPENSSL_TRUE= 15891 OPENSSL_FALSE='#' 15892else 15893 OPENSSL_TRUE='#' 15894 OPENSSL_FALSE= 15895fi 15896 15897 15898# Add some more warnings which we use in development but not in the 15899# released versions. (Some relevant gcc versions can't handle these.) 15900if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then 15901 15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15903/* end confdefs.h. */ 15904 15905int 15906main () 15907{ 15908 15909#if !defined(__GNUC__) || (__GNUC__ < 4) 15910#error 15911#endif 15912 ; 15913 return 0; 15914} 15915_ACEOF 15916if ac_fn_c_try_compile "$LINENO"; then : 15917 have_gcc4=yes 15918else 15919 have_gcc4=no 15920fi 15921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15922 15923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15924/* end confdefs.h. */ 15925 15926int 15927main () 15928{ 15929 15930#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2) 15931#error 15932#endif 15933 ; 15934 return 0; 15935} 15936_ACEOF 15937if ac_fn_c_try_compile "$LINENO"; then : 15938 have_gcc42=yes 15939else 15940 have_gcc42=no 15941fi 15942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15943 15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15945/* end confdefs.h. */ 15946 15947int 15948main () 15949{ 15950 15951#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) 15952#error 15953#endif 15954 ; 15955 return 0; 15956} 15957_ACEOF 15958if ac_fn_c_try_compile "$LINENO"; then : 15959 have_gcc45=yes 15960else 15961 have_gcc45=no 15962fi 15963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15964 15965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15966/* end confdefs.h. */ 15967 15968int 15969main () 15970{ 15971 15972#if !defined(__clang__) 15973#error 15974#endif 15975 ; 15976 return 0; 15977} 15978_ACEOF 15979if ac_fn_c_try_compile "$LINENO"; then : 15980 have_clang=yes 15981else 15982 have_clang=no 15983fi 15984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15985 15986 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum" 15987 if test x$enable_gcc_warnings = xyes; then 15988 CFLAGS="$CFLAGS -Werror" 15989 fi 15990 15991 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing" 15992 15993 if test x$have_gcc4 = xyes ; then 15994 # These warnings break gcc 3.3.5 and work on gcc 4.0.2 15995 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement" 15996 #CFLAGS="$CFLAGS -Wold-style-definition" 15997 fi 15998 15999 if test x$have_gcc42 = xyes ; then 16000 # These warnings break gcc 4.0.2 and work on gcc 4.2 16001 CFLAGS="$CFLAGS -Waddress" 16002 fi 16003 16004 if test x$have_gcc42 = xyes && test x$have_clang = xno; then 16005 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2 16006 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init" 16007 fi 16008 16009 if test x$have_gcc45 = xyes ; then 16010 # These warnings work on gcc 4.5 16011 CFLAGS="$CFLAGS -Wlogical-op" 16012 fi 16013 16014 if test x$have_clang = xyes; then 16015 # Disable the unused-function warnings, because these trigger 16016 # for minheap-internal.h related code. 16017 CFLAGS="$CFLAGS -Wno-unused-function" 16018 16019 # clang on macosx emits warnigns for each directory specified which 16020 # isn't "used" generating a lot of build noise (typically 3 warnings 16021 # per file 16022 case "$host_os" in 16023 darwin*) 16024 CFLAGS="$CFLAGS -Qunused-arguments" 16025 ;; 16026 esac 16027 fi 16028 16029##This will break the world on some 64-bit architectures 16030# CFLAGS="$CFLAGS -Winline" 16031 16032fi 16033 16034LIBEVENT_GC_SECTIONS= 16035if test "$GCC" = yes && test "$enable_function_sections" = yes ; then 16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 16037$as_echo_n "checking if linker supports omitting unused code and data... " >&6; } 16038if ${libevent_cv_gc_sections_runs+:} false; then : 16039 $as_echo_n "(cached) " >&6 16040else 16041 16042 origCFLAGS="$CFLAGS" 16043 CFLAGS="$CFLAGS -Wl,--gc-sections" 16044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16045/* end confdefs.h. */ 16046 16047 #include <stdlib.h> 16048 #include <stdio.h> 16049 16050int 16051main () 16052{ 16053 16054 FILE * fpC; 16055 char buf[32]; 16056 size_t cch; 16057 int read_success_once; 16058 16059 fpC = fopen("conftest.c", "r"); 16060 if (NULL == fpC) 16061 exit(1); 16062 do { 16063 cch = fread(buf, sizeof(buf), 1, fpC); 16064 read_success_once |= (0 != cch); 16065 } while (0 != cch); 16066 if (!read_success_once) 16067 exit(2); 16068 if (!feof(fpC)) 16069 exit(3); 16070 if (0 != fclose(fpC)) 16071 exit(4); 16072 16073 exit(EXIT_SUCCESS); 16074 16075 16076 ; 16077 return 0; 16078} 16079_ACEOF 16080if ac_fn_c_try_link "$LINENO"; then : 16081 16082 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 16083 libevent_cv_gc_sections_runs=no 16084 else 16085 libevent_cv_gc_sections_runs=no 16086 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes 16087 fi 16088 16089else 16090 libevent_cv_gc_sections_runs=no 16091 16092fi 16093rm -f core conftest.err conftest.$ac_objext \ 16094 conftest$ac_exeext conftest.$ac_ext 16095 CFLAGS="$origCFLAGS" 16096 { origCFLAGS=; unset origCFLAGS;} 16097 16098 16099fi 16100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5 16101$as_echo "$libevent_cv_gc_sections_runs" >&6; } 16102 case "$libevent_cv_gc_sections_runs" in 16103 yes) 16104 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS" 16105 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections" 16106 ;; 16107 esac 16108fi 16109 16110 16111 if test "$enable_libevent_install" = "yes"; then 16112 INSTALL_LIBEVENT_TRUE= 16113 INSTALL_LIBEVENT_FALSE='#' 16114else 16115 INSTALL_LIBEVENT_TRUE='#' 16116 INSTALL_LIBEVENT_FALSE= 16117fi 16118 16119 16120ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc" 16121 16122ac_config_files="$ac_config_files Makefile" 16123 16124cat >confcache <<\_ACEOF 16125# This file is a shell script that caches the results of configure 16126# tests run on this system so they can be shared between configure 16127# scripts and configure runs, see configure's option --config-cache. 16128# It is not useful on other systems. If it contains results you don't 16129# want to keep, you may remove or edit it. 16130# 16131# config.status only pays attention to the cache file if you give it 16132# the --recheck option to rerun configure. 16133# 16134# `ac_cv_env_foo' variables (set or unset) will be overridden when 16135# loading this file, other *unset* `ac_cv_foo' will be assigned the 16136# following values. 16137 16138_ACEOF 16139 16140# The following way of writing the cache mishandles newlines in values, 16141# but we know of no workaround that is simple, portable, and efficient. 16142# So, we kill variables containing newlines. 16143# Ultrix sh set writes to stderr and can't be redirected directly, 16144# and sets the high bit in the cache file unless we assign to the vars. 16145( 16146 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16147 eval ac_val=\$$ac_var 16148 case $ac_val in #( 16149 *${as_nl}*) 16150 case $ac_var in #( 16151 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16152$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16153 esac 16154 case $ac_var in #( 16155 _ | IFS | as_nl) ;; #( 16156 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16157 *) { eval $ac_var=; unset $ac_var;} ;; 16158 esac ;; 16159 esac 16160 done 16161 16162 (set) 2>&1 | 16163 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16164 *${as_nl}ac_space=\ *) 16165 # `set' does not quote correctly, so add quotes: double-quote 16166 # substitution turns \\\\ into \\, and sed turns \\ into \. 16167 sed -n \ 16168 "s/'/'\\\\''/g; 16169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16170 ;; #( 16171 *) 16172 # `set' quotes correctly as required by POSIX, so do not add quotes. 16173 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16174 ;; 16175 esac | 16176 sort 16177) | 16178 sed ' 16179 /^ac_cv_env_/b end 16180 t clear 16181 :clear 16182 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16183 t end 16184 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16185 :end' >>confcache 16186if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16187 if test -w "$cache_file"; then 16188 if test "x$cache_file" != "x/dev/null"; then 16189 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16190$as_echo "$as_me: updating cache $cache_file" >&6;} 16191 if test ! -f "$cache_file" || test -h "$cache_file"; then 16192 cat confcache >"$cache_file" 16193 else 16194 case $cache_file in #( 16195 */* | ?:*) 16196 mv -f confcache "$cache_file"$$ && 16197 mv -f "$cache_file"$$ "$cache_file" ;; #( 16198 *) 16199 mv -f confcache "$cache_file" ;; 16200 esac 16201 fi 16202 fi 16203 else 16204 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16205$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16206 fi 16207fi 16208rm -f confcache 16209 16210test "x$prefix" = xNONE && prefix=$ac_default_prefix 16211# Let make expand exec_prefix. 16212test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16213 16214DEFS=-DHAVE_CONFIG_H 16215 16216ac_libobjs= 16217ac_ltlibobjs= 16218U= 16219for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16220 # 1. Remove the extension, and $U if already installed. 16221 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16222 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16223 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16224 # will be set to the directory where LIBOBJS objects are built. 16225 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16226 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16227done 16228LIBOBJS=$ac_libobjs 16229 16230LTLIBOBJS=$ac_ltlibobjs 16231 16232 16233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16234$as_echo_n "checking that generated files are newer than configure... " >&6; } 16235 if test -n "$am_sleep_pid"; then 16236 # Hide warnings about reused PIDs. 16237 wait $am_sleep_pid 2>/dev/null 16238 fi 16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16240$as_echo "done" >&6; } 16241 if test -n "$EXEEXT"; then 16242 am__EXEEXT_TRUE= 16243 am__EXEEXT_FALSE='#' 16244else 16245 am__EXEEXT_TRUE='#' 16246 am__EXEEXT_FALSE= 16247fi 16248 16249if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16250 as_fn_error $? "conditional \"AMDEP\" was never defined. 16251Usually this means the macro was only invoked conditionally." "$LINENO" 5 16252fi 16253if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16254 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16255Usually this means the macro was only invoked conditionally." "$LINENO" 5 16256fi 16257if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then 16258 as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined. 16259Usually this means the macro was only invoked conditionally." "$LINENO" 5 16260fi 16261if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then 16262 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined. 16263Usually this means the macro was only invoked conditionally." "$LINENO" 5 16264fi 16265if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then 16266 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined. 16267Usually this means the macro was only invoked conditionally." "$LINENO" 5 16268fi 16269if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then 16270 as_fn_error $? "conditional \"OPENSSL\" was never defined. 16271Usually this means the macro was only invoked conditionally." "$LINENO" 5 16272fi 16273if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then 16274 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined. 16275Usually this means the macro was only invoked conditionally." "$LINENO" 5 16276fi 16277if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then 16278 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined. 16279Usually this means the macro was only invoked conditionally." "$LINENO" 5 16280fi 16281if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then 16282 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined. 16283Usually this means the macro was only invoked conditionally." "$LINENO" 5 16284fi 16285if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then 16286 as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined. 16287Usually this means the macro was only invoked conditionally." "$LINENO" 5 16288fi 16289if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then 16290 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined. 16291Usually this means the macro was only invoked conditionally." "$LINENO" 5 16292fi 16293if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then 16294 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined. 16295Usually this means the macro was only invoked conditionally." "$LINENO" 5 16296fi 16297if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then 16298 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined. 16299Usually this means the macro was only invoked conditionally." "$LINENO" 5 16300fi 16301if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then 16302 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined. 16303Usually this means the macro was only invoked conditionally." "$LINENO" 5 16304fi 16305if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then 16306 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined. 16307Usually this means the macro was only invoked conditionally." "$LINENO" 5 16308fi 16309if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then 16310 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined. 16311Usually this means the macro was only invoked conditionally." "$LINENO" 5 16312fi 16313if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then 16314 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined. 16315Usually this means the macro was only invoked conditionally." "$LINENO" 5 16316fi 16317if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 16318 as_fn_error $? "conditional \"PTHREADS\" was never defined. 16319Usually this means the macro was only invoked conditionally." "$LINENO" 5 16320fi 16321if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then 16322 as_fn_error $? "conditional \"OPENSSL\" was never defined. 16323Usually this means the macro was only invoked conditionally." "$LINENO" 5 16324fi 16325if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then 16326 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined. 16327Usually this means the macro was only invoked conditionally." "$LINENO" 5 16328fi 16329 16330: "${CONFIG_STATUS=./config.status}" 16331ac_write_fail=0 16332ac_clean_files_save=$ac_clean_files 16333ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16334{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16335$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16336as_write_fail=0 16337cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16338#! $SHELL 16339# Generated by $as_me. 16340# Run this file to recreate the current configuration. 16341# Compiler output produced by configure, useful for debugging 16342# configure, is in config.log if it exists. 16343 16344debug=false 16345ac_cs_recheck=false 16346ac_cs_silent=false 16347 16348SHELL=\${CONFIG_SHELL-$SHELL} 16349export SHELL 16350_ASEOF 16351cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16352## -------------------- ## 16353## M4sh Initialization. ## 16354## -------------------- ## 16355 16356# Be more Bourne compatible 16357DUALCASE=1; export DUALCASE # for MKS sh 16358if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16359 emulate sh 16360 NULLCMD=: 16361 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16362 # is contrary to our usage. Disable this feature. 16363 alias -g '${1+"$@"}'='"$@"' 16364 setopt NO_GLOB_SUBST 16365else 16366 case `(set -o) 2>/dev/null` in #( 16367 *posix*) : 16368 set -o posix ;; #( 16369 *) : 16370 ;; 16371esac 16372fi 16373 16374 16375as_nl=' 16376' 16377export as_nl 16378# Printing a long string crashes Solaris 7 /usr/bin/printf. 16379as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16380as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16381as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16382# Prefer a ksh shell builtin over an external printf program on Solaris, 16383# but without wasting forks for bash or zsh. 16384if test -z "$BASH_VERSION$ZSH_VERSION" \ 16385 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16386 as_echo='print -r --' 16387 as_echo_n='print -rn --' 16388elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16389 as_echo='printf %s\n' 16390 as_echo_n='printf %s' 16391else 16392 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16393 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16394 as_echo_n='/usr/ucb/echo -n' 16395 else 16396 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16397 as_echo_n_body='eval 16398 arg=$1; 16399 case $arg in #( 16400 *"$as_nl"*) 16401 expr "X$arg" : "X\\(.*\\)$as_nl"; 16402 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16403 esac; 16404 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16405 ' 16406 export as_echo_n_body 16407 as_echo_n='sh -c $as_echo_n_body as_echo' 16408 fi 16409 export as_echo_body 16410 as_echo='sh -c $as_echo_body as_echo' 16411fi 16412 16413# The user is always right. 16414if test "${PATH_SEPARATOR+set}" != set; then 16415 PATH_SEPARATOR=: 16416 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16417 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16418 PATH_SEPARATOR=';' 16419 } 16420fi 16421 16422 16423# IFS 16424# We need space, tab and new line, in precisely that order. Quoting is 16425# there to prevent editors from complaining about space-tab. 16426# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16427# splitting by setting IFS to empty value.) 16428IFS=" "" $as_nl" 16429 16430# Find who we are. Look in the path if we contain no directory separator. 16431as_myself= 16432case $0 in #(( 16433 *[\\/]* ) as_myself=$0 ;; 16434 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16435for as_dir in $PATH 16436do 16437 IFS=$as_save_IFS 16438 test -z "$as_dir" && as_dir=. 16439 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16440 done 16441IFS=$as_save_IFS 16442 16443 ;; 16444esac 16445# We did not find ourselves, most probably we were run as `sh COMMAND' 16446# in which case we are not to be found in the path. 16447if test "x$as_myself" = x; then 16448 as_myself=$0 16449fi 16450if test ! -f "$as_myself"; then 16451 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16452 exit 1 16453fi 16454 16455# Unset variables that we do not need and which cause bugs (e.g. in 16456# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16457# suppresses any "Segmentation fault" message there. '((' could 16458# trigger a bug in pdksh 5.2.14. 16459for as_var in BASH_ENV ENV MAIL MAILPATH 16460do eval test x\${$as_var+set} = xset \ 16461 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16462done 16463PS1='$ ' 16464PS2='> ' 16465PS4='+ ' 16466 16467# NLS nuisances. 16468LC_ALL=C 16469export LC_ALL 16470LANGUAGE=C 16471export LANGUAGE 16472 16473# CDPATH. 16474(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16475 16476 16477# as_fn_error STATUS ERROR [LINENO LOG_FD] 16478# ---------------------------------------- 16479# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16480# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16481# script with STATUS, using 1 if that was 0. 16482as_fn_error () 16483{ 16484 as_status=$1; test $as_status -eq 0 && as_status=1 16485 if test "$4"; then 16486 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16487 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16488 fi 16489 $as_echo "$as_me: error: $2" >&2 16490 as_fn_exit $as_status 16491} # as_fn_error 16492 16493 16494# as_fn_set_status STATUS 16495# ----------------------- 16496# Set $? to STATUS, without forking. 16497as_fn_set_status () 16498{ 16499 return $1 16500} # as_fn_set_status 16501 16502# as_fn_exit STATUS 16503# ----------------- 16504# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16505as_fn_exit () 16506{ 16507 set +e 16508 as_fn_set_status $1 16509 exit $1 16510} # as_fn_exit 16511 16512# as_fn_unset VAR 16513# --------------- 16514# Portably unset VAR. 16515as_fn_unset () 16516{ 16517 { eval $1=; unset $1;} 16518} 16519as_unset=as_fn_unset 16520# as_fn_append VAR VALUE 16521# ---------------------- 16522# Append the text in VALUE to the end of the definition contained in VAR. Take 16523# advantage of any shell optimizations that allow amortized linear growth over 16524# repeated appends, instead of the typical quadratic growth present in naive 16525# implementations. 16526if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16527 eval 'as_fn_append () 16528 { 16529 eval $1+=\$2 16530 }' 16531else 16532 as_fn_append () 16533 { 16534 eval $1=\$$1\$2 16535 } 16536fi # as_fn_append 16537 16538# as_fn_arith ARG... 16539# ------------------ 16540# Perform arithmetic evaluation on the ARGs, and store the result in the 16541# global $as_val. Take advantage of shells that can avoid forks. The arguments 16542# must be portable across $(()) and expr. 16543if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16544 eval 'as_fn_arith () 16545 { 16546 as_val=$(( $* )) 16547 }' 16548else 16549 as_fn_arith () 16550 { 16551 as_val=`expr "$@" || test $? -eq 1` 16552 } 16553fi # as_fn_arith 16554 16555 16556if expr a : '\(a\)' >/dev/null 2>&1 && 16557 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16558 as_expr=expr 16559else 16560 as_expr=false 16561fi 16562 16563if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16564 as_basename=basename 16565else 16566 as_basename=false 16567fi 16568 16569if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16570 as_dirname=dirname 16571else 16572 as_dirname=false 16573fi 16574 16575as_me=`$as_basename -- "$0" || 16576$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16577 X"$0" : 'X\(//\)$' \| \ 16578 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16579$as_echo X/"$0" | 16580 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16581 s//\1/ 16582 q 16583 } 16584 /^X\/\(\/\/\)$/{ 16585 s//\1/ 16586 q 16587 } 16588 /^X\/\(\/\).*/{ 16589 s//\1/ 16590 q 16591 } 16592 s/.*/./; q'` 16593 16594# Avoid depending upon Character Ranges. 16595as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16596as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16597as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16598as_cr_digits='0123456789' 16599as_cr_alnum=$as_cr_Letters$as_cr_digits 16600 16601ECHO_C= ECHO_N= ECHO_T= 16602case `echo -n x` in #((((( 16603-n*) 16604 case `echo 'xy\c'` in 16605 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16606 xy) ECHO_C='\c';; 16607 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16608 ECHO_T=' ';; 16609 esac;; 16610*) 16611 ECHO_N='-n';; 16612esac 16613 16614rm -f conf$$ conf$$.exe conf$$.file 16615if test -d conf$$.dir; then 16616 rm -f conf$$.dir/conf$$.file 16617else 16618 rm -f conf$$.dir 16619 mkdir conf$$.dir 2>/dev/null 16620fi 16621if (echo >conf$$.file) 2>/dev/null; then 16622 if ln -s conf$$.file conf$$ 2>/dev/null; then 16623 as_ln_s='ln -s' 16624 # ... but there are two gotchas: 16625 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16626 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16627 # In both cases, we have to default to `cp -pR'. 16628 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16629 as_ln_s='cp -pR' 16630 elif ln conf$$.file conf$$ 2>/dev/null; then 16631 as_ln_s=ln 16632 else 16633 as_ln_s='cp -pR' 16634 fi 16635else 16636 as_ln_s='cp -pR' 16637fi 16638rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16639rmdir conf$$.dir 2>/dev/null 16640 16641 16642# as_fn_mkdir_p 16643# ------------- 16644# Create "$as_dir" as a directory, including parents if necessary. 16645as_fn_mkdir_p () 16646{ 16647 16648 case $as_dir in #( 16649 -*) as_dir=./$as_dir;; 16650 esac 16651 test -d "$as_dir" || eval $as_mkdir_p || { 16652 as_dirs= 16653 while :; do 16654 case $as_dir in #( 16655 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16656 *) as_qdir=$as_dir;; 16657 esac 16658 as_dirs="'$as_qdir' $as_dirs" 16659 as_dir=`$as_dirname -- "$as_dir" || 16660$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16661 X"$as_dir" : 'X\(//\)[^/]' \| \ 16662 X"$as_dir" : 'X\(//\)$' \| \ 16663 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16664$as_echo X"$as_dir" | 16665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16666 s//\1/ 16667 q 16668 } 16669 /^X\(\/\/\)[^/].*/{ 16670 s//\1/ 16671 q 16672 } 16673 /^X\(\/\/\)$/{ 16674 s//\1/ 16675 q 16676 } 16677 /^X\(\/\).*/{ 16678 s//\1/ 16679 q 16680 } 16681 s/.*/./; q'` 16682 test -d "$as_dir" && break 16683 done 16684 test -z "$as_dirs" || eval "mkdir $as_dirs" 16685 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16686 16687 16688} # as_fn_mkdir_p 16689if mkdir -p . 2>/dev/null; then 16690 as_mkdir_p='mkdir -p "$as_dir"' 16691else 16692 test -d ./-p && rmdir ./-p 16693 as_mkdir_p=false 16694fi 16695 16696 16697# as_fn_executable_p FILE 16698# ----------------------- 16699# Test if FILE is an executable regular file. 16700as_fn_executable_p () 16701{ 16702 test -f "$1" && test -x "$1" 16703} # as_fn_executable_p 16704as_test_x='test -x' 16705as_executable_p=as_fn_executable_p 16706 16707# Sed expression to map a string onto a valid CPP name. 16708as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16709 16710# Sed expression to map a string onto a valid variable name. 16711as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16712 16713 16714exec 6>&1 16715## ----------------------------------- ## 16716## Main body of $CONFIG_STATUS script. ## 16717## ----------------------------------- ## 16718_ASEOF 16719test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16720 16721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16722# Save the log message, to keep $0 and so on meaningful, and to 16723# report actual input values of CONFIG_FILES etc. instead of their 16724# values after options handling. 16725ac_log=" 16726This file was extended by libevent $as_me 2.1.5-beta, which was 16727generated by GNU Autoconf 2.69. Invocation command line was 16728 16729 CONFIG_FILES = $CONFIG_FILES 16730 CONFIG_HEADERS = $CONFIG_HEADERS 16731 CONFIG_LINKS = $CONFIG_LINKS 16732 CONFIG_COMMANDS = $CONFIG_COMMANDS 16733 $ $0 $@ 16734 16735on `(hostname || uname -n) 2>/dev/null | sed 1q` 16736" 16737 16738_ACEOF 16739 16740case $ac_config_files in *" 16741"*) set x $ac_config_files; shift; ac_config_files=$*;; 16742esac 16743 16744case $ac_config_headers in *" 16745"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16746esac 16747 16748 16749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16750# Files that config.status was made for. 16751config_files="$ac_config_files" 16752config_headers="$ac_config_headers" 16753config_commands="$ac_config_commands" 16754 16755_ACEOF 16756 16757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16758ac_cs_usage="\ 16759\`$as_me' instantiates files and other configuration actions 16760from templates according to the current configuration. Unless the files 16761and actions are specified as TAGs, all are instantiated by default. 16762 16763Usage: $0 [OPTION]... [TAG]... 16764 16765 -h, --help print this help, then exit 16766 -V, --version print version number and configuration settings, then exit 16767 --config print configuration, then exit 16768 -q, --quiet, --silent 16769 do not print progress messages 16770 -d, --debug don't remove temporary files 16771 --recheck update $as_me by reconfiguring in the same conditions 16772 --file=FILE[:TEMPLATE] 16773 instantiate the configuration file FILE 16774 --header=FILE[:TEMPLATE] 16775 instantiate the configuration header FILE 16776 16777Configuration files: 16778$config_files 16779 16780Configuration headers: 16781$config_headers 16782 16783Configuration commands: 16784$config_commands 16785 16786Report bugs to the package provider." 16787 16788_ACEOF 16789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16790ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16791ac_cs_version="\\ 16792libevent config.status 2.1.5-beta 16793configured by $0, generated by GNU Autoconf 2.69, 16794 with options \\"\$ac_cs_config\\" 16795 16796Copyright (C) 2012 Free Software Foundation, Inc. 16797This config.status script is free software; the Free Software Foundation 16798gives unlimited permission to copy, distribute and modify it." 16799 16800ac_pwd='$ac_pwd' 16801srcdir='$srcdir' 16802INSTALL='$INSTALL' 16803MKDIR_P='$MKDIR_P' 16804AWK='$AWK' 16805test -n "\$AWK" || AWK=awk 16806_ACEOF 16807 16808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16809# The default lists apply if the user does not specify any file. 16810ac_need_defaults=: 16811while test $# != 0 16812do 16813 case $1 in 16814 --*=?*) 16815 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16816 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16817 ac_shift=: 16818 ;; 16819 --*=) 16820 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16821 ac_optarg= 16822 ac_shift=: 16823 ;; 16824 *) 16825 ac_option=$1 16826 ac_optarg=$2 16827 ac_shift=shift 16828 ;; 16829 esac 16830 16831 case $ac_option in 16832 # Handling of the options. 16833 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16834 ac_cs_recheck=: ;; 16835 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16836 $as_echo "$ac_cs_version"; exit ;; 16837 --config | --confi | --conf | --con | --co | --c ) 16838 $as_echo "$ac_cs_config"; exit ;; 16839 --debug | --debu | --deb | --de | --d | -d ) 16840 debug=: ;; 16841 --file | --fil | --fi | --f ) 16842 $ac_shift 16843 case $ac_optarg in 16844 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16845 '') as_fn_error $? "missing file argument" ;; 16846 esac 16847 as_fn_append CONFIG_FILES " '$ac_optarg'" 16848 ac_need_defaults=false;; 16849 --header | --heade | --head | --hea ) 16850 $ac_shift 16851 case $ac_optarg in 16852 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16853 esac 16854 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16855 ac_need_defaults=false;; 16856 --he | --h) 16857 # Conflict between --help and --header 16858 as_fn_error $? "ambiguous option: \`$1' 16859Try \`$0 --help' for more information.";; 16860 --help | --hel | -h ) 16861 $as_echo "$ac_cs_usage"; exit ;; 16862 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16863 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16864 ac_cs_silent=: ;; 16865 16866 # This is an error. 16867 -*) as_fn_error $? "unrecognized option: \`$1' 16868Try \`$0 --help' for more information." ;; 16869 16870 *) as_fn_append ac_config_targets " $1" 16871 ac_need_defaults=false ;; 16872 16873 esac 16874 shift 16875done 16876 16877ac_configure_extra_args= 16878 16879if $ac_cs_silent; then 16880 exec 6>/dev/null 16881 ac_configure_extra_args="$ac_configure_extra_args --silent" 16882fi 16883 16884_ACEOF 16885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16886if \$ac_cs_recheck; then 16887 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16888 shift 16889 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16890 CONFIG_SHELL='$SHELL' 16891 export CONFIG_SHELL 16892 exec "\$@" 16893fi 16894 16895_ACEOF 16896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16897exec 5>>config.log 16898{ 16899 echo 16900 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16901## Running $as_me. ## 16902_ASBOX 16903 $as_echo "$ac_log" 16904} >&5 16905 16906_ACEOF 16907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16908# 16909# INIT-COMMANDS 16910# 16911AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16912 16913 16914# The HP-UX ksh and POSIX shell print the target directory to stdout 16915# if CDPATH is set. 16916(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16917 16918sed_quote_subst='$sed_quote_subst' 16919double_quote_subst='$double_quote_subst' 16920delay_variable_subst='$delay_variable_subst' 16921macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16922macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16923enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16924enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16925pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16926enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16927shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 16928SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16929ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16930PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16931host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16932host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16933host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16934build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16935build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16936build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16937SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16938Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16939GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16940EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16941FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16942LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16943NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16944LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16945max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16946ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16947exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16948lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16949lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16950lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16951lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16952lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16953reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16954reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16955OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16956deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16957file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16958file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16959want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16960DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16961sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16962AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16963AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16964archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16965STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16966RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16967old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16968old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16969old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16970lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16971CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16972CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16973compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16974GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16975lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16976lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16977lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 16978lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16979lt_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"`' 16980lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 16981nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16982lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16983lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 16984objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16985MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16986lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16987lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16988lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16989lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16990lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16991need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16992MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16993DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16994NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16995LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16996OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16997OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16998libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16999shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17000extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17001archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17002enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17003export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17004whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17005compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17006old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17007old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17008archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17009archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17010module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17011module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17012with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17013allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17014no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17015hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17016hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17017hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17018hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17019hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17020hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17021hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17022inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17023link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17024always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17025export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17026exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17027include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17028prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17029postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17030file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17031variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17032need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17033need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17034version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17035runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17036shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17037shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17038libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17039library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17040soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17041install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17042postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17043postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17044finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17045finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17046hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17047sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17048configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17049configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17050hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17051enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17052enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17053enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17054old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17055striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17056 17057LTCC='$LTCC' 17058LTCFLAGS='$LTCFLAGS' 17059compiler='$compiler_DEFAULT' 17060 17061# A function that is used when there is no print builtin or printf. 17062func_fallback_echo () 17063{ 17064 eval 'cat <<_LTECHO_EOF 17065\$1 17066_LTECHO_EOF' 17067} 17068 17069# Quote evaled strings. 17070for var in SHELL \ 17071ECHO \ 17072PATH_SEPARATOR \ 17073SED \ 17074GREP \ 17075EGREP \ 17076FGREP \ 17077LD \ 17078NM \ 17079LN_S \ 17080lt_SP2NL \ 17081lt_NL2SP \ 17082reload_flag \ 17083OBJDUMP \ 17084deplibs_check_method \ 17085file_magic_cmd \ 17086file_magic_glob \ 17087want_nocaseglob \ 17088DLLTOOL \ 17089sharedlib_from_linklib_cmd \ 17090AR \ 17091AR_FLAGS \ 17092archiver_list_spec \ 17093STRIP \ 17094RANLIB \ 17095CC \ 17096CFLAGS \ 17097compiler \ 17098lt_cv_sys_global_symbol_pipe \ 17099lt_cv_sys_global_symbol_to_cdecl \ 17100lt_cv_sys_global_symbol_to_import \ 17101lt_cv_sys_global_symbol_to_c_name_address \ 17102lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17103lt_cv_nm_interface \ 17104nm_file_list_spec \ 17105lt_cv_truncate_bin \ 17106lt_prog_compiler_no_builtin_flag \ 17107lt_prog_compiler_pic \ 17108lt_prog_compiler_wl \ 17109lt_prog_compiler_static \ 17110lt_cv_prog_compiler_c_o \ 17111need_locks \ 17112MANIFEST_TOOL \ 17113DSYMUTIL \ 17114NMEDIT \ 17115LIPO \ 17116OTOOL \ 17117OTOOL64 \ 17118shrext_cmds \ 17119export_dynamic_flag_spec \ 17120whole_archive_flag_spec \ 17121compiler_needs_object \ 17122with_gnu_ld \ 17123allow_undefined_flag \ 17124no_undefined_flag \ 17125hardcode_libdir_flag_spec \ 17126hardcode_libdir_separator \ 17127exclude_expsyms \ 17128include_expsyms \ 17129file_list_spec \ 17130variables_saved_for_relink \ 17131libname_spec \ 17132library_names_spec \ 17133soname_spec \ 17134install_override_mode \ 17135finish_eval \ 17136old_striplib \ 17137striplib; do 17138 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17139 *[\\\\\\\`\\"\\\$]*) 17140 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17141 ;; 17142 *) 17143 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17144 ;; 17145 esac 17146done 17147 17148# Double-quote double-evaled strings. 17149for var in reload_cmds \ 17150old_postinstall_cmds \ 17151old_postuninstall_cmds \ 17152old_archive_cmds \ 17153extract_expsyms_cmds \ 17154old_archive_from_new_cmds \ 17155old_archive_from_expsyms_cmds \ 17156archive_cmds \ 17157archive_expsym_cmds \ 17158module_cmds \ 17159module_expsym_cmds \ 17160export_symbols_cmds \ 17161prelink_cmds \ 17162postlink_cmds \ 17163postinstall_cmds \ 17164postuninstall_cmds \ 17165finish_cmds \ 17166sys_lib_search_path_spec \ 17167configure_time_dlsearch_path \ 17168configure_time_lt_sys_library_path; do 17169 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17170 *[\\\\\\\`\\"\\\$]*) 17171 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17172 ;; 17173 *) 17174 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17175 ;; 17176 esac 17177done 17178 17179ac_aux_dir='$ac_aux_dir' 17180 17181# See if we are running on zsh, and set the options that allow our 17182# commands through without removal of \ escapes INIT. 17183if test -n "\${ZSH_VERSION+set}"; then 17184 setopt NO_GLOB_SUBST 17185fi 17186 17187 17188 PACKAGE='$PACKAGE' 17189 VERSION='$VERSION' 17190 RM='$RM' 17191 ofile='$ofile' 17192 17193 17194 17195 17196_ACEOF 17197 17198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17199 17200# Handling of arguments. 17201for ac_config_target in $ac_config_targets 17202do 17203 case $ac_config_target in 17204 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17205 "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;; 17206 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17207 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17208 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;; 17209 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;; 17210 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;; 17211 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17212 17213 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17214 esac 17215done 17216 17217 17218# If the user did not use the arguments to specify the items to instantiate, 17219# then the envvar interface is used. Set only those that are not. 17220# We use the long form for the default assignment because of an extremely 17221# bizarre bug on SunOS 4.1.3. 17222if $ac_need_defaults; then 17223 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17224 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17225 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17226fi 17227 17228# Have a temporary directory for convenience. Make it in the build tree 17229# simply because there is no reason against having it here, and in addition, 17230# creating and moving files from /tmp can sometimes cause problems. 17231# Hook for its removal unless debugging. 17232# Note that there is a small window in which the directory will not be cleaned: 17233# after its creation but before its name has been assigned to `$tmp'. 17234$debug || 17235{ 17236 tmp= ac_tmp= 17237 trap 'exit_status=$? 17238 : "${ac_tmp:=$tmp}" 17239 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17240' 0 17241 trap 'as_fn_exit 1' 1 2 13 15 17242} 17243# Create a (secure) tmp directory for tmp files. 17244 17245{ 17246 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17247 test -d "$tmp" 17248} || 17249{ 17250 tmp=./conf$$-$RANDOM 17251 (umask 077 && mkdir "$tmp") 17252} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17253ac_tmp=$tmp 17254 17255# Set up the scripts for CONFIG_FILES section. 17256# No need to generate them if there are no CONFIG_FILES. 17257# This happens for instance with `./config.status config.h'. 17258if test -n "$CONFIG_FILES"; then 17259 17260 17261ac_cr=`echo X | tr X '\015'` 17262# On cygwin, bash can eat \r inside `` if the user requested igncr. 17263# But we know of no other shell where ac_cr would be empty at this 17264# point, so we can use a bashism as a fallback. 17265if test "x$ac_cr" = x; then 17266 eval ac_cr=\$\'\\r\' 17267fi 17268ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17269if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17270 ac_cs_awk_cr='\\r' 17271else 17272 ac_cs_awk_cr=$ac_cr 17273fi 17274 17275echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17276_ACEOF 17277 17278 17279{ 17280 echo "cat >conf$$subs.awk <<_ACEOF" && 17281 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17282 echo "_ACEOF" 17283} >conf$$subs.sh || 17284 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17285ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17286ac_delim='%!_!# ' 17287for ac_last_try in false false false false false :; do 17288 . ./conf$$subs.sh || 17289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17290 17291 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17292 if test $ac_delim_n = $ac_delim_num; then 17293 break 17294 elif $ac_last_try; then 17295 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17296 else 17297 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17298 fi 17299done 17300rm -f conf$$subs.sh 17301 17302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17303cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17304_ACEOF 17305sed -n ' 17306h 17307s/^/S["/; s/!.*/"]=/ 17308p 17309g 17310s/^[^!]*!// 17311:repl 17312t repl 17313s/'"$ac_delim"'$// 17314t delim 17315:nl 17316h 17317s/\(.\{148\}\)..*/\1/ 17318t more1 17319s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17320p 17321n 17322b repl 17323:more1 17324s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17325p 17326g 17327s/.\{148\}// 17328t nl 17329:delim 17330h 17331s/\(.\{148\}\)..*/\1/ 17332t more2 17333s/["\\]/\\&/g; s/^/"/; s/$/"/ 17334p 17335b 17336:more2 17337s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17338p 17339g 17340s/.\{148\}// 17341t delim 17342' <conf$$subs.awk | sed ' 17343/^[^""]/{ 17344 N 17345 s/\n// 17346} 17347' >>$CONFIG_STATUS || ac_write_fail=1 17348rm -f conf$$subs.awk 17349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17350_ACAWK 17351cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17352 for (key in S) S_is_set[key] = 1 17353 FS = "" 17354 17355} 17356{ 17357 line = $ 0 17358 nfields = split(line, field, "@") 17359 substed = 0 17360 len = length(field[1]) 17361 for (i = 2; i < nfields; i++) { 17362 key = field[i] 17363 keylen = length(key) 17364 if (S_is_set[key]) { 17365 value = S[key] 17366 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17367 len += length(value) + length(field[++i]) 17368 substed = 1 17369 } else 17370 len += 1 + keylen 17371 } 17372 17373 print line 17374} 17375 17376_ACAWK 17377_ACEOF 17378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17379if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17380 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17381else 17382 cat 17383fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17384 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17385_ACEOF 17386 17387# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17388# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17389# trailing colons and then remove the whole line if VPATH becomes empty 17390# (actually we leave an empty line to preserve line numbers). 17391if test "x$srcdir" = x.; then 17392 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17393h 17394s/// 17395s/^/:/ 17396s/[ ]*$/:/ 17397s/:\$(srcdir):/:/g 17398s/:\${srcdir}:/:/g 17399s/:@srcdir@:/:/g 17400s/^:*// 17401s/:*$// 17402x 17403s/\(=[ ]*\).*/\1/ 17404G 17405s/\n// 17406s/^[^=]*=[ ]*$// 17407}' 17408fi 17409 17410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17411fi # test -n "$CONFIG_FILES" 17412 17413# Set up the scripts for CONFIG_HEADERS section. 17414# No need to generate them if there are no CONFIG_HEADERS. 17415# This happens for instance with `./config.status Makefile'. 17416if test -n "$CONFIG_HEADERS"; then 17417cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17418BEGIN { 17419_ACEOF 17420 17421# Transform confdefs.h into an awk script `defines.awk', embedded as 17422# here-document in config.status, that substitutes the proper values into 17423# config.h.in to produce config.h. 17424 17425# Create a delimiter string that does not exist in confdefs.h, to ease 17426# handling of long lines. 17427ac_delim='%!_!# ' 17428for ac_last_try in false false :; do 17429 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17430 if test -z "$ac_tt"; then 17431 break 17432 elif $ac_last_try; then 17433 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17434 else 17435 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17436 fi 17437done 17438 17439# For the awk script, D is an array of macro values keyed by name, 17440# likewise P contains macro parameters if any. Preserve backslash 17441# newline sequences. 17442 17443ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17444sed -n ' 17445s/.\{148\}/&'"$ac_delim"'/g 17446t rset 17447:rset 17448s/^[ ]*#[ ]*define[ ][ ]*/ / 17449t def 17450d 17451:def 17452s/\\$// 17453t bsnl 17454s/["\\]/\\&/g 17455s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17456D["\1"]=" \3"/p 17457s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17458d 17459:bsnl 17460s/["\\]/\\&/g 17461s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17462D["\1"]=" \3\\\\\\n"\\/p 17463t cont 17464s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17465t cont 17466d 17467:cont 17468n 17469s/.\{148\}/&'"$ac_delim"'/g 17470t clear 17471:clear 17472s/\\$// 17473t bsnlc 17474s/["\\]/\\&/g; s/^/"/; s/$/"/p 17475d 17476:bsnlc 17477s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17478b cont 17479' <confdefs.h | sed ' 17480s/'"$ac_delim"'/"\\\ 17481"/g' >>$CONFIG_STATUS || ac_write_fail=1 17482 17483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17484 for (key in D) D_is_set[key] = 1 17485 FS = "" 17486} 17487/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17488 line = \$ 0 17489 split(line, arg, " ") 17490 if (arg[1] == "#") { 17491 defundef = arg[2] 17492 mac1 = arg[3] 17493 } else { 17494 defundef = substr(arg[1], 2) 17495 mac1 = arg[2] 17496 } 17497 split(mac1, mac2, "(") #) 17498 macro = mac2[1] 17499 prefix = substr(line, 1, index(line, defundef) - 1) 17500 if (D_is_set[macro]) { 17501 # Preserve the white space surrounding the "#". 17502 print prefix "define", macro P[macro] D[macro] 17503 next 17504 } else { 17505 # Replace #undef with comments. This is necessary, for example, 17506 # in the case of _POSIX_SOURCE, which is predefined and required 17507 # on some systems where configure will not decide to define it. 17508 if (defundef == "undef") { 17509 print "/*", prefix defundef, macro, "*/" 17510 next 17511 } 17512 } 17513} 17514{ print } 17515_ACAWK 17516_ACEOF 17517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17518 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17519fi # test -n "$CONFIG_HEADERS" 17520 17521 17522eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17523shift 17524for ac_tag 17525do 17526 case $ac_tag in 17527 :[FHLC]) ac_mode=$ac_tag; continue;; 17528 esac 17529 case $ac_mode$ac_tag in 17530 :[FHL]*:*);; 17531 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17532 :[FH]-) ac_tag=-:-;; 17533 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17534 esac 17535 ac_save_IFS=$IFS 17536 IFS=: 17537 set x $ac_tag 17538 IFS=$ac_save_IFS 17539 shift 17540 ac_file=$1 17541 shift 17542 17543 case $ac_mode in 17544 :L) ac_source=$1;; 17545 :[FH]) 17546 ac_file_inputs= 17547 for ac_f 17548 do 17549 case $ac_f in 17550 -) ac_f="$ac_tmp/stdin";; 17551 *) # Look for the file first in the build tree, then in the source tree 17552 # (if the path is not absolute). The absolute path cannot be DOS-style, 17553 # because $ac_f cannot contain `:'. 17554 test -f "$ac_f" || 17555 case $ac_f in 17556 [\\/$]*) false;; 17557 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17558 esac || 17559 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17560 esac 17561 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17562 as_fn_append ac_file_inputs " '$ac_f'" 17563 done 17564 17565 # Let's still pretend it is `configure' which instantiates (i.e., don't 17566 # use $as_me), people would be surprised to read: 17567 # /* config.h. Generated by config.status. */ 17568 configure_input='Generated from '` 17569 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17570 `' by configure.' 17571 if test x"$ac_file" != x-; then 17572 configure_input="$ac_file. $configure_input" 17573 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17574$as_echo "$as_me: creating $ac_file" >&6;} 17575 fi 17576 # Neutralize special characters interpreted by sed in replacement strings. 17577 case $configure_input in #( 17578 *\&* | *\|* | *\\* ) 17579 ac_sed_conf_input=`$as_echo "$configure_input" | 17580 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17581 *) ac_sed_conf_input=$configure_input;; 17582 esac 17583 17584 case $ac_tag in 17585 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17586 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17587 esac 17588 ;; 17589 esac 17590 17591 ac_dir=`$as_dirname -- "$ac_file" || 17592$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17593 X"$ac_file" : 'X\(//\)[^/]' \| \ 17594 X"$ac_file" : 'X\(//\)$' \| \ 17595 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17596$as_echo X"$ac_file" | 17597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17598 s//\1/ 17599 q 17600 } 17601 /^X\(\/\/\)[^/].*/{ 17602 s//\1/ 17603 q 17604 } 17605 /^X\(\/\/\)$/{ 17606 s//\1/ 17607 q 17608 } 17609 /^X\(\/\).*/{ 17610 s//\1/ 17611 q 17612 } 17613 s/.*/./; q'` 17614 as_dir="$ac_dir"; as_fn_mkdir_p 17615 ac_builddir=. 17616 17617case "$ac_dir" in 17618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17619*) 17620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17621 # A ".." for each directory in $ac_dir_suffix. 17622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17623 case $ac_top_builddir_sub in 17624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17626 esac ;; 17627esac 17628ac_abs_top_builddir=$ac_pwd 17629ac_abs_builddir=$ac_pwd$ac_dir_suffix 17630# for backward compatibility: 17631ac_top_builddir=$ac_top_build_prefix 17632 17633case $srcdir in 17634 .) # We are building in place. 17635 ac_srcdir=. 17636 ac_top_srcdir=$ac_top_builddir_sub 17637 ac_abs_top_srcdir=$ac_pwd ;; 17638 [\\/]* | ?:[\\/]* ) # Absolute name. 17639 ac_srcdir=$srcdir$ac_dir_suffix; 17640 ac_top_srcdir=$srcdir 17641 ac_abs_top_srcdir=$srcdir ;; 17642 *) # Relative name. 17643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17644 ac_top_srcdir=$ac_top_build_prefix$srcdir 17645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17646esac 17647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17648 17649 17650 case $ac_mode in 17651 :F) 17652 # 17653 # CONFIG_FILE 17654 # 17655 17656 case $INSTALL in 17657 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17658 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17659 esac 17660 ac_MKDIR_P=$MKDIR_P 17661 case $MKDIR_P in 17662 [\\/$]* | ?:[\\/]* ) ;; 17663 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17664 esac 17665_ACEOF 17666 17667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17668# If the template does not know about datarootdir, expand it. 17669# FIXME: This hack should be removed a few years after 2.60. 17670ac_datarootdir_hack=; ac_datarootdir_seen= 17671ac_sed_dataroot=' 17672/datarootdir/ { 17673 p 17674 q 17675} 17676/@datadir@/p 17677/@docdir@/p 17678/@infodir@/p 17679/@localedir@/p 17680/@mandir@/p' 17681case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17682*datarootdir*) ac_datarootdir_seen=yes;; 17683*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17685$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17686_ACEOF 17687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17688 ac_datarootdir_hack=' 17689 s&@datadir@&$datadir&g 17690 s&@docdir@&$docdir&g 17691 s&@infodir@&$infodir&g 17692 s&@localedir@&$localedir&g 17693 s&@mandir@&$mandir&g 17694 s&\\\${datarootdir}&$datarootdir&g' ;; 17695esac 17696_ACEOF 17697 17698# Neutralize VPATH when `$srcdir' = `.'. 17699# Shell code in configure.ac might set extrasub. 17700# FIXME: do we really want to maintain this feature? 17701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17702ac_sed_extra="$ac_vpsub 17703$extrasub 17704_ACEOF 17705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17706:t 17707/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17708s|@configure_input@|$ac_sed_conf_input|;t t 17709s&@top_builddir@&$ac_top_builddir_sub&;t t 17710s&@top_build_prefix@&$ac_top_build_prefix&;t t 17711s&@srcdir@&$ac_srcdir&;t t 17712s&@abs_srcdir@&$ac_abs_srcdir&;t t 17713s&@top_srcdir@&$ac_top_srcdir&;t t 17714s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17715s&@builddir@&$ac_builddir&;t t 17716s&@abs_builddir@&$ac_abs_builddir&;t t 17717s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17718s&@INSTALL@&$ac_INSTALL&;t t 17719s&@MKDIR_P@&$ac_MKDIR_P&;t t 17720$ac_datarootdir_hack 17721" 17722eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17723 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17724 17725test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17726 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17727 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17728 "$ac_tmp/out"`; test -z "$ac_out"; } && 17729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17730which seems to be undefined. Please make sure it is defined" >&5 17731$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17732which seems to be undefined. Please make sure it is defined" >&2;} 17733 17734 rm -f "$ac_tmp/stdin" 17735 case $ac_file in 17736 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17737 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17738 esac \ 17739 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17740 ;; 17741 :H) 17742 # 17743 # CONFIG_HEADER 17744 # 17745 if test x"$ac_file" != x-; then 17746 { 17747 $as_echo "/* $configure_input */" \ 17748 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17749 } >"$ac_tmp/config.h" \ 17750 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17751 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17752 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17753$as_echo "$as_me: $ac_file is unchanged" >&6;} 17754 else 17755 rm -f "$ac_file" 17756 mv "$ac_tmp/config.h" "$ac_file" \ 17757 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17758 fi 17759 else 17760 $as_echo "/* $configure_input */" \ 17761 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17762 || as_fn_error $? "could not create -" "$LINENO" 5 17763 fi 17764# Compute "$ac_file"'s index in $config_headers. 17765_am_arg="$ac_file" 17766_am_stamp_count=1 17767for _am_header in $config_headers :; do 17768 case $_am_header in 17769 $_am_arg | $_am_arg:* ) 17770 break ;; 17771 * ) 17772 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17773 esac 17774done 17775echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17776$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17777 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17778 X"$_am_arg" : 'X\(//\)$' \| \ 17779 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17780$as_echo X"$_am_arg" | 17781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17782 s//\1/ 17783 q 17784 } 17785 /^X\(\/\/\)[^/].*/{ 17786 s//\1/ 17787 q 17788 } 17789 /^X\(\/\/\)$/{ 17790 s//\1/ 17791 q 17792 } 17793 /^X\(\/\).*/{ 17794 s//\1/ 17795 q 17796 } 17797 s/.*/./; q'`/stamp-h$_am_stamp_count 17798 ;; 17799 17800 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17801$as_echo "$as_me: executing $ac_file commands" >&6;} 17802 ;; 17803 esac 17804 17805 17806 case $ac_file$ac_mode in 17807 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17808 # Older Autoconf quotes --file arguments for eval, but not when files 17809 # are listed without --file. Let's play safe and only enable the eval 17810 # if we detect the quoting. 17811 case $CONFIG_FILES in 17812 *\'*) eval set x "$CONFIG_FILES" ;; 17813 *) set x $CONFIG_FILES ;; 17814 esac 17815 shift 17816 for mf 17817 do 17818 # Strip MF so we end up with the name of the file. 17819 mf=`echo "$mf" | sed -e 's/:.*$//'` 17820 # Check whether this is an Automake generated Makefile or not. 17821 # We used to match only the files named 'Makefile.in', but 17822 # some people rename them; so instead we look at the file content. 17823 # Grep'ing the first line is not enough: some people post-process 17824 # each Makefile.in and add a new line on top of each file to say so. 17825 # Grep'ing the whole file is not good either: AIX grep has a line 17826 # limit of 2048, but all sed's we know have understand at least 4000. 17827 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17828 dirpart=`$as_dirname -- "$mf" || 17829$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17830 X"$mf" : 'X\(//\)[^/]' \| \ 17831 X"$mf" : 'X\(//\)$' \| \ 17832 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17833$as_echo X"$mf" | 17834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17835 s//\1/ 17836 q 17837 } 17838 /^X\(\/\/\)[^/].*/{ 17839 s//\1/ 17840 q 17841 } 17842 /^X\(\/\/\)$/{ 17843 s//\1/ 17844 q 17845 } 17846 /^X\(\/\).*/{ 17847 s//\1/ 17848 q 17849 } 17850 s/.*/./; q'` 17851 else 17852 continue 17853 fi 17854 # Extract the definition of DEPDIR, am__include, and am__quote 17855 # from the Makefile without running 'make'. 17856 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17857 test -z "$DEPDIR" && continue 17858 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17859 test -z "$am__include" && continue 17860 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17861 # Find all dependency output files, they are included files with 17862 # $(DEPDIR) in their names. We invoke sed twice because it is the 17863 # simplest approach to changing $(DEPDIR) to its actual value in the 17864 # expansion. 17865 for file in `sed -n " 17866 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17867 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 17868 # Make sure the directory exists. 17869 test -f "$dirpart/$file" && continue 17870 fdir=`$as_dirname -- "$file" || 17871$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17872 X"$file" : 'X\(//\)[^/]' \| \ 17873 X"$file" : 'X\(//\)$' \| \ 17874 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17875$as_echo X"$file" | 17876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17877 s//\1/ 17878 q 17879 } 17880 /^X\(\/\/\)[^/].*/{ 17881 s//\1/ 17882 q 17883 } 17884 /^X\(\/\/\)$/{ 17885 s//\1/ 17886 q 17887 } 17888 /^X\(\/\).*/{ 17889 s//\1/ 17890 q 17891 } 17892 s/.*/./; q'` 17893 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17894 # echo "creating $dirpart/$file" 17895 echo '# dummy' > "$dirpart/$file" 17896 done 17897 done 17898} 17899 ;; 17900 "libtool":C) 17901 17902 # See if we are running on zsh, and set the options that allow our 17903 # commands through without removal of \ escapes. 17904 if test -n "${ZSH_VERSION+set}"; then 17905 setopt NO_GLOB_SUBST 17906 fi 17907 17908 cfgfile=${ofile}T 17909 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17910 $RM "$cfgfile" 17911 17912 cat <<_LT_EOF >> "$cfgfile" 17913#! $SHELL 17914# Generated automatically by $as_me ($PACKAGE) $VERSION 17915# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17916# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17917 17918# Provide generalized library-building support services. 17919# Written by Gordon Matzigkeit, 1996 17920 17921# Copyright (C) 2014 Free Software Foundation, Inc. 17922# This is free software; see the source for copying conditions. There is NO 17923# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17924 17925# GNU Libtool is free software; you can redistribute it and/or modify 17926# it under the terms of the GNU General Public License as published by 17927# the Free Software Foundation; either version 2 of of the License, or 17928# (at your option) any later version. 17929# 17930# As a special exception to the GNU General Public License, if you 17931# distribute this file as part of a program or library that is built 17932# using GNU Libtool, you may include this file under the same 17933# distribution terms that you use for the rest of that program. 17934# 17935# GNU Libtool is distributed in the hope that it will be useful, but 17936# WITHOUT ANY WARRANTY; without even the implied warranty of 17937# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17938# GNU General Public License for more details. 17939# 17940# You should have received a copy of the GNU General Public License 17941# along with this program. If not, see <http://www.gnu.org/licenses/>. 17942 17943 17944# The names of the tagged configurations supported by this script. 17945available_tags='' 17946 17947# Configured defaults for sys_lib_dlsearch_path munging. 17948: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 17949 17950# ### BEGIN LIBTOOL CONFIG 17951 17952# Which release of libtool.m4 was used? 17953macro_version=$macro_version 17954macro_revision=$macro_revision 17955 17956# Whether or not to build shared libraries. 17957build_libtool_libs=$enable_shared 17958 17959# Whether or not to build static libraries. 17960build_old_libs=$enable_static 17961 17962# What type of objects to build. 17963pic_mode=$pic_mode 17964 17965# Whether or not to optimize for fast installation. 17966fast_install=$enable_fast_install 17967 17968# Shared archive member basename,for filename based shared library versioning on AIX. 17969shared_archive_member_spec=$shared_archive_member_spec 17970 17971# Shell to use when invoking shell scripts. 17972SHELL=$lt_SHELL 17973 17974# An echo program that protects backslashes. 17975ECHO=$lt_ECHO 17976 17977# The PATH separator for the build system. 17978PATH_SEPARATOR=$lt_PATH_SEPARATOR 17979 17980# The host system. 17981host_alias=$host_alias 17982host=$host 17983host_os=$host_os 17984 17985# The build system. 17986build_alias=$build_alias 17987build=$build 17988build_os=$build_os 17989 17990# A sed program that does not truncate output. 17991SED=$lt_SED 17992 17993# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17994Xsed="\$SED -e 1s/^X//" 17995 17996# A grep program that handles long lines. 17997GREP=$lt_GREP 17998 17999# An ERE matcher. 18000EGREP=$lt_EGREP 18001 18002# A literal string matcher. 18003FGREP=$lt_FGREP 18004 18005# A BSD- or MS-compatible name lister. 18006NM=$lt_NM 18007 18008# Whether we need soft or hard links. 18009LN_S=$lt_LN_S 18010 18011# What is the maximum length of a command? 18012max_cmd_len=$max_cmd_len 18013 18014# Object file suffix (normally "o"). 18015objext=$ac_objext 18016 18017# Executable file suffix (normally ""). 18018exeext=$exeext 18019 18020# whether the shell understands "unset". 18021lt_unset=$lt_unset 18022 18023# turn spaces into newlines. 18024SP2NL=$lt_lt_SP2NL 18025 18026# turn newlines into spaces. 18027NL2SP=$lt_lt_NL2SP 18028 18029# convert \$build file names to \$host format. 18030to_host_file_cmd=$lt_cv_to_host_file_cmd 18031 18032# convert \$build files to toolchain format. 18033to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18034 18035# An object symbol dumper. 18036OBJDUMP=$lt_OBJDUMP 18037 18038# Method to check whether dependent libraries are shared objects. 18039deplibs_check_method=$lt_deplibs_check_method 18040 18041# Command to use when deplibs_check_method = "file_magic". 18042file_magic_cmd=$lt_file_magic_cmd 18043 18044# How to find potential files when deplibs_check_method = "file_magic". 18045file_magic_glob=$lt_file_magic_glob 18046 18047# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18048want_nocaseglob=$lt_want_nocaseglob 18049 18050# DLL creation program. 18051DLLTOOL=$lt_DLLTOOL 18052 18053# Command to associate shared and link libraries. 18054sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18055 18056# The archiver. 18057AR=$lt_AR 18058 18059# Flags to create an archive. 18060AR_FLAGS=$lt_AR_FLAGS 18061 18062# How to feed a file listing to the archiver. 18063archiver_list_spec=$lt_archiver_list_spec 18064 18065# A symbol stripping program. 18066STRIP=$lt_STRIP 18067 18068# Commands used to install an old-style archive. 18069RANLIB=$lt_RANLIB 18070old_postinstall_cmds=$lt_old_postinstall_cmds 18071old_postuninstall_cmds=$lt_old_postuninstall_cmds 18072 18073# Whether to use a lock for old archive extraction. 18074lock_old_archive_extraction=$lock_old_archive_extraction 18075 18076# A C compiler. 18077LTCC=$lt_CC 18078 18079# LTCC compiler flags. 18080LTCFLAGS=$lt_CFLAGS 18081 18082# Take the output of nm and produce a listing of raw symbols and C names. 18083global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18084 18085# Transform the output of nm in a proper C declaration. 18086global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18087 18088# Transform the output of nm into a list of symbols to manually relocate. 18089global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18090 18091# Transform the output of nm in a C name address pair. 18092global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18093 18094# Transform the output of nm in a C name address pair when lib prefix is needed. 18095global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18096 18097# The name lister interface. 18098nm_interface=$lt_lt_cv_nm_interface 18099 18100# Specify filename containing input files for \$NM. 18101nm_file_list_spec=$lt_nm_file_list_spec 18102 18103# The root where to search for dependent libraries,and where our libraries should be installed. 18104lt_sysroot=$lt_sysroot 18105 18106# Command to truncate a binary pipe. 18107lt_truncate_bin=$lt_lt_cv_truncate_bin 18108 18109# The name of the directory that contains temporary libtool files. 18110objdir=$objdir 18111 18112# Used to examine libraries when file_magic_cmd begins with "file". 18113MAGIC_CMD=$MAGIC_CMD 18114 18115# Must we lock files when doing compilation? 18116need_locks=$lt_need_locks 18117 18118# Manifest tool. 18119MANIFEST_TOOL=$lt_MANIFEST_TOOL 18120 18121# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18122DSYMUTIL=$lt_DSYMUTIL 18123 18124# Tool to change global to local symbols on Mac OS X. 18125NMEDIT=$lt_NMEDIT 18126 18127# Tool to manipulate fat objects and archives on Mac OS X. 18128LIPO=$lt_LIPO 18129 18130# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18131OTOOL=$lt_OTOOL 18132 18133# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18134OTOOL64=$lt_OTOOL64 18135 18136# Old archive suffix (normally "a"). 18137libext=$libext 18138 18139# Shared library suffix (normally ".so"). 18140shrext_cmds=$lt_shrext_cmds 18141 18142# The commands to extract the exported symbol list from a shared archive. 18143extract_expsyms_cmds=$lt_extract_expsyms_cmds 18144 18145# Variables whose values should be saved in libtool wrapper scripts and 18146# restored at link time. 18147variables_saved_for_relink=$lt_variables_saved_for_relink 18148 18149# Do we need the "lib" prefix for modules? 18150need_lib_prefix=$need_lib_prefix 18151 18152# Do we need a version for libraries? 18153need_version=$need_version 18154 18155# Library versioning type. 18156version_type=$version_type 18157 18158# Shared library runtime path variable. 18159runpath_var=$runpath_var 18160 18161# Shared library path variable. 18162shlibpath_var=$shlibpath_var 18163 18164# Is shlibpath searched before the hard-coded library search path? 18165shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18166 18167# Format of library name prefix. 18168libname_spec=$lt_libname_spec 18169 18170# List of archive names. First name is the real one, the rest are links. 18171# The last name is the one that the linker finds with -lNAME 18172library_names_spec=$lt_library_names_spec 18173 18174# The coded name of the library, if different from the real name. 18175soname_spec=$lt_soname_spec 18176 18177# Permission mode override for installation of shared libraries. 18178install_override_mode=$lt_install_override_mode 18179 18180# Command to use after installation of a shared archive. 18181postinstall_cmds=$lt_postinstall_cmds 18182 18183# Command to use after uninstallation of a shared archive. 18184postuninstall_cmds=$lt_postuninstall_cmds 18185 18186# Commands used to finish a libtool library installation in a directory. 18187finish_cmds=$lt_finish_cmds 18188 18189# As "finish_cmds", except a single script fragment to be evaled but 18190# not shown. 18191finish_eval=$lt_finish_eval 18192 18193# Whether we should hardcode library paths into libraries. 18194hardcode_into_libs=$hardcode_into_libs 18195 18196# Compile-time system search path for libraries. 18197sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18198 18199# Detected run-time system search path for libraries. 18200sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18201 18202# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18203configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18204 18205# Whether dlopen is supported. 18206dlopen_support=$enable_dlopen 18207 18208# Whether dlopen of programs is supported. 18209dlopen_self=$enable_dlopen_self 18210 18211# Whether dlopen of statically linked programs is supported. 18212dlopen_self_static=$enable_dlopen_self_static 18213 18214# Commands to strip libraries. 18215old_striplib=$lt_old_striplib 18216striplib=$lt_striplib 18217 18218 18219# The linker used to build libraries. 18220LD=$lt_LD 18221 18222# How to create reloadable object files. 18223reload_flag=$lt_reload_flag 18224reload_cmds=$lt_reload_cmds 18225 18226# Commands used to build an old-style archive. 18227old_archive_cmds=$lt_old_archive_cmds 18228 18229# A language specific compiler. 18230CC=$lt_compiler 18231 18232# Is the compiler the GNU compiler? 18233with_gcc=$GCC 18234 18235# Compiler flag to turn off builtin functions. 18236no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18237 18238# Additional compiler flags for building library objects. 18239pic_flag=$lt_lt_prog_compiler_pic 18240 18241# How to pass a linker flag through the compiler. 18242wl=$lt_lt_prog_compiler_wl 18243 18244# Compiler flag to prevent dynamic linking. 18245link_static_flag=$lt_lt_prog_compiler_static 18246 18247# Does compiler simultaneously support -c and -o options? 18248compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18249 18250# Whether or not to add -lc for building shared libraries. 18251build_libtool_need_lc=$archive_cmds_need_lc 18252 18253# Whether or not to disallow shared libs when runtime libs are static. 18254allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18255 18256# Compiler flag to allow reflexive dlopens. 18257export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18258 18259# Compiler flag to generate shared objects directly from archives. 18260whole_archive_flag_spec=$lt_whole_archive_flag_spec 18261 18262# Whether the compiler copes with passing no objects directly. 18263compiler_needs_object=$lt_compiler_needs_object 18264 18265# Create an old-style archive from a shared archive. 18266old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18267 18268# Create a temporary old-style archive to link instead of a shared archive. 18269old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18270 18271# Commands used to build a shared archive. 18272archive_cmds=$lt_archive_cmds 18273archive_expsym_cmds=$lt_archive_expsym_cmds 18274 18275# Commands used to build a loadable module if different from building 18276# a shared archive. 18277module_cmds=$lt_module_cmds 18278module_expsym_cmds=$lt_module_expsym_cmds 18279 18280# Whether we are building with GNU ld or not. 18281with_gnu_ld=$lt_with_gnu_ld 18282 18283# Flag that allows shared libraries with undefined symbols to be built. 18284allow_undefined_flag=$lt_allow_undefined_flag 18285 18286# Flag that enforces no undefined symbols. 18287no_undefined_flag=$lt_no_undefined_flag 18288 18289# Flag to hardcode \$libdir into a binary during linking. 18290# This must work even if \$libdir does not exist 18291hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18292 18293# Whether we need a single "-rpath" flag with a separated argument. 18294hardcode_libdir_separator=$lt_hardcode_libdir_separator 18295 18296# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18297# DIR into the resulting binary. 18298hardcode_direct=$hardcode_direct 18299 18300# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18301# DIR into the resulting binary and the resulting library dependency is 18302# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18303# library is relocated. 18304hardcode_direct_absolute=$hardcode_direct_absolute 18305 18306# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18307# into the resulting binary. 18308hardcode_minus_L=$hardcode_minus_L 18309 18310# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18311# into the resulting binary. 18312hardcode_shlibpath_var=$hardcode_shlibpath_var 18313 18314# Set to "yes" if building a shared library automatically hardcodes DIR 18315# into the library and all subsequent libraries and executables linked 18316# against it. 18317hardcode_automatic=$hardcode_automatic 18318 18319# Set to yes if linker adds runtime paths of dependent libraries 18320# to runtime path list. 18321inherit_rpath=$inherit_rpath 18322 18323# Whether libtool must link a program against all its dependency libraries. 18324link_all_deplibs=$link_all_deplibs 18325 18326# Set to "yes" if exported symbols are required. 18327always_export_symbols=$always_export_symbols 18328 18329# The commands to list exported symbols. 18330export_symbols_cmds=$lt_export_symbols_cmds 18331 18332# Symbols that should not be listed in the preloaded symbols. 18333exclude_expsyms=$lt_exclude_expsyms 18334 18335# Symbols that must always be exported. 18336include_expsyms=$lt_include_expsyms 18337 18338# Commands necessary for linking programs (against libraries) with templates. 18339prelink_cmds=$lt_prelink_cmds 18340 18341# Commands necessary for finishing linking programs. 18342postlink_cmds=$lt_postlink_cmds 18343 18344# Specify filename containing input files. 18345file_list_spec=$lt_file_list_spec 18346 18347# How to hardcode a shared library path into an executable. 18348hardcode_action=$hardcode_action 18349 18350# ### END LIBTOOL CONFIG 18351 18352_LT_EOF 18353 18354 cat <<'_LT_EOF' >> "$cfgfile" 18355 18356# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18357 18358# func_munge_path_list VARIABLE PATH 18359# ----------------------------------- 18360# VARIABLE is name of variable containing _space_ separated list of 18361# directories to be munged by the contents of PATH, which is string 18362# having a format: 18363# "DIR[:DIR]:" 18364# string "DIR[ DIR]" will be prepended to VARIABLE 18365# ":DIR[:DIR]" 18366# string "DIR[ DIR]" will be appended to VARIABLE 18367# "DIRP[:DIRP]::[DIRA:]DIRA" 18368# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18369# "DIRA[ DIRA]" will be appended to VARIABLE 18370# "DIR[:DIR]" 18371# VARIABLE will be replaced by "DIR[ DIR]" 18372func_munge_path_list () 18373{ 18374 case x$2 in 18375 x) 18376 ;; 18377 *:) 18378 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18379 ;; 18380 x:*) 18381 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18382 ;; 18383 *::*) 18384 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18385 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18386 ;; 18387 *) 18388 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18389 ;; 18390 esac 18391} 18392 18393 18394# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18395func_cc_basename () 18396{ 18397 for cc_temp in $*""; do 18398 case $cc_temp in 18399 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18400 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18401 \-*) ;; 18402 *) break;; 18403 esac 18404 done 18405 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18406} 18407 18408 18409# ### END FUNCTIONS SHARED WITH CONFIGURE 18410 18411_LT_EOF 18412 18413 case $host_os in 18414 aix3*) 18415 cat <<\_LT_EOF >> "$cfgfile" 18416# AIX sometimes has problems with the GCC collect2 program. For some 18417# reason, if we set the COLLECT_NAMES environment variable, the problems 18418# vanish in a puff of smoke. 18419if test set != "${COLLECT_NAMES+set}"; then 18420 COLLECT_NAMES= 18421 export COLLECT_NAMES 18422fi 18423_LT_EOF 18424 ;; 18425 esac 18426 18427 18428ltmain=$ac_aux_dir/ltmain.sh 18429 18430 18431 # We use sed instead of cat because bash on DJGPP gets confused if 18432 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18433 # text mode, it properly converts lines to CR/LF. This bash problem 18434 # is reportedly fixed, but why not run on old versions too? 18435 sed '$q' "$ltmain" >> "$cfgfile" \ 18436 || (rm -f "$cfgfile"; exit 1) 18437 18438 mv -f "$cfgfile" "$ofile" || 18439 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18440 chmod +x "$ofile" 18441 18442 ;; 18443 18444 esac 18445done # for ac_tag 18446 18447 18448as_fn_exit 0 18449_ACEOF 18450ac_clean_files=$ac_clean_files_save 18451 18452test $ac_write_fail = 0 || 18453 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18454 18455 18456# configure is writing to config.log, and then calls config.status. 18457# config.status does its own redirection, appending to config.log. 18458# Unfortunately, on DOS this fails, as config.log is still kept open 18459# by configure, so config.status won't be able to write to it; its 18460# output is simply discarded. So we exec the FD to /dev/null, 18461# effectively closing config.log, so it can be properly (re)opened and 18462# appended to by config.status. When coming back to configure, we 18463# need to make the FD available again. 18464if test "$no_create" != yes; then 18465 ac_cs_success=: 18466 ac_config_status_args= 18467 test "$silent" = yes && 18468 ac_config_status_args="$ac_config_status_args --quiet" 18469 exec 5>/dev/null 18470 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18471 exec 5>>config.log 18472 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18473 # would make configure fail if this is the last instruction. 18474 $ac_cs_success || as_fn_exit 1 18475fi 18476if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18478$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18479fi 18480 18481