1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libevent 2.1.5-beta. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8# Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137if test "x$CONFIG_SHELL" = x; then 138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 139 emulate sh 140 NULLCMD=: 141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 142 # is contrary to our usage. Disable this feature. 143 alias -g '\${1+\"\$@\"}'='\"\$@\"' 144 setopt NO_GLOB_SUBST 145else 146 case \`(set -o) 2>/dev/null\` in #( 147 *posix*) : 148 set -o posix ;; #( 149 *) : 150 ;; 151esac 152fi 153" 154 as_required="as_fn_return () { (exit \$1); } 155as_fn_success () { as_fn_return 0; } 156as_fn_failure () { as_fn_return 1; } 157as_fn_ret_success () { return 0; } 158as_fn_ret_failure () { return 1; } 159 160exitcode=0 161as_fn_success || { exitcode=1; echo as_fn_success failed.; } 162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 166 167else 168 exitcode=1; echo positional parameters were not saved. 169fi 170test x\$exitcode = x0 || exit 1" 171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 175test \$(( 1 + 1 )) = 2 || exit 1 176 177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 PATH=/empty FPATH=/empty; export PATH FPATH 182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 184 if (eval "$as_required") 2>/dev/null; then : 185 as_have_required=yes 186else 187 as_have_required=no 188fi 189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 190 191else 192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 193as_found=false 194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 195do 196 IFS=$as_save_IFS 197 test -z "$as_dir" && as_dir=. 198 as_found=: 199 case $as_dir in #( 200 /*) 201 for as_base in sh bash ksh sh5; do 202 # Try only shells that exist, to save several forks. 203 as_shell=$as_dir/$as_base 204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 206 CONFIG_SHELL=$as_shell as_have_required=yes 207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 break 2 209fi 210fi 211 done;; 212 esac 213 as_found=false 214done 215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 217 CONFIG_SHELL=$SHELL as_have_required=yes 218fi; } 219IFS=$as_save_IFS 220 221 222 if test "x$CONFIG_SHELL" != x; then : 223 # We cannot yet assume a decent shell, so we have to provide a 224 # neutralization value for shells without unset; and this also 225 # works around shells that cannot unset nonexistent variables. 226 # Preserve -v and -x to the replacement shell. 227 BASH_ENV=/dev/null 228 ENV=/dev/null 229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 230 export CONFIG_SHELL 231 case $- in # (((( 232 *v*x* | *x*v* ) as_opts=-vx ;; 233 *v* ) as_opts=-v ;; 234 *x* ) as_opts=-x ;; 235 * ) as_opts= ;; 236 esac 237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 238fi 239 240 if test x$as_have_required = xno; then : 241 $as_echo "$0: This script requires a shell more modern than all" 242 $as_echo "$0: the shells that I found on your system." 243 if test x${ZSH_VERSION+set} = xset ; then 244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 245 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 246 else 247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 248$0: including any error possibly output before this 249$0: message. Then install a modern shell, or manually run 250$0: the script under such a shell if you do have one." 251 fi 252 exit 1 253fi 254fi 255fi 256SHELL=${CONFIG_SHELL-/bin/sh} 257export SHELL 258# Unset more variables known to interfere with behavior of common tools. 259CLICOLOR_FORCE= GREP_OPTIONS= 260unset CLICOLOR_FORCE GREP_OPTIONS 261 262## --------------------- ## 263## M4sh Shell Functions. ## 264## --------------------- ## 265# as_fn_unset VAR 266# --------------- 267# Portably unset VAR. 268as_fn_unset () 269{ 270 { eval $1=; unset $1;} 271} 272as_unset=as_fn_unset 273 274# as_fn_set_status STATUS 275# ----------------------- 276# Set $? to STATUS, without forking. 277as_fn_set_status () 278{ 279 return $1 280} # as_fn_set_status 281 282# as_fn_exit STATUS 283# ----------------- 284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 285as_fn_exit () 286{ 287 set +e 288 as_fn_set_status $1 289 exit $1 290} # as_fn_exit 291 292# as_fn_mkdir_p 293# ------------- 294# Create "$as_dir" as a directory, including parents if necessary. 295as_fn_mkdir_p () 296{ 297 298 case $as_dir in #( 299 -*) as_dir=./$as_dir;; 300 esac 301 test -d "$as_dir" || eval $as_mkdir_p || { 302 as_dirs= 303 while :; do 304 case $as_dir in #( 305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 306 *) as_qdir=$as_dir;; 307 esac 308 as_dirs="'$as_qdir' $as_dirs" 309 as_dir=`$as_dirname -- "$as_dir" || 310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 311 X"$as_dir" : 'X\(//\)[^/]' \| \ 312 X"$as_dir" : 'X\(//\)$' \| \ 313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 314$as_echo X"$as_dir" | 315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)[^/].*/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)$/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\).*/{ 328 s//\1/ 329 q 330 } 331 s/.*/./; q'` 332 test -d "$as_dir" && break 333 done 334 test -z "$as_dirs" || eval "mkdir $as_dirs" 335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 336 337 338} # as_fn_mkdir_p 339# as_fn_append VAR VALUE 340# ---------------------- 341# Append the text in VALUE to the end of the definition contained in VAR. Take 342# advantage of any shell optimizations that allow amortized linear growth over 343# repeated appends, instead of the typical quadratic growth present in naive 344# implementations. 345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 346 eval 'as_fn_append () 347 { 348 eval $1+=\$2 349 }' 350else 351 as_fn_append () 352 { 353 eval $1=\$$1\$2 354 } 355fi # as_fn_append 356 357# as_fn_arith ARG... 358# ------------------ 359# Perform arithmetic evaluation on the ARGs, and store the result in the 360# global $as_val. Take advantage of shells that can avoid forks. The arguments 361# must be portable across $(()) and expr. 362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 363 eval 'as_fn_arith () 364 { 365 as_val=$(( $* )) 366 }' 367else 368 as_fn_arith () 369 { 370 as_val=`expr "$@" || test $? -eq 1` 371 } 372fi # as_fn_arith 373 374 375# as_fn_error STATUS ERROR [LINENO LOG_FD] 376# ---------------------------------------- 377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 379# script with STATUS, using 1 if that was 0. 380as_fn_error () 381{ 382 as_status=$1; test $as_status -eq 0 && as_status=1 383 if test "$4"; then 384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 386 fi 387 $as_echo "$as_me: error: $2" >&2 388 as_fn_exit $as_status 389} # as_fn_error 390 391if expr a : '\(a\)' >/dev/null 2>&1 && 392 test "X`expr 00001 : '.*\(...\)'`" = X001; then 393 as_expr=expr 394else 395 as_expr=false 396fi 397 398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 399 as_basename=basename 400else 401 as_basename=false 402fi 403 404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 405 as_dirname=dirname 406else 407 as_dirname=false 408fi 409 410as_me=`$as_basename -- "$0" || 411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 412 X"$0" : 'X\(//\)$' \| \ 413 X"$0" : 'X\(/\)' \| . 2>/dev/null || 414$as_echo X/"$0" | 415 sed '/^.*\/\([^/][^/]*\)\/*$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\/\)$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\).*/{ 424 s//\1/ 425 q 426 } 427 s/.*/./; q'` 428 429# Avoid depending upon Character Ranges. 430as_cr_letters='abcdefghijklmnopqrstuvwxyz' 431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 432as_cr_Letters=$as_cr_letters$as_cr_LETTERS 433as_cr_digits='0123456789' 434as_cr_alnum=$as_cr_Letters$as_cr_digits 435 436 437 as_lineno_1=$LINENO as_lineno_1a=$LINENO 438 as_lineno_2=$LINENO as_lineno_2a=$LINENO 439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 442 sed -n ' 443 p 444 /[$]LINENO/= 445 ' <$as_myself | 446 sed ' 447 s/[$]LINENO.*/&-/ 448 t lineno 449 b 450 :lineno 451 N 452 :loop 453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 454 t loop 455 s/-\n.*// 456 ' >$as_me.lineno && 457 chmod +x "$as_me.lineno" || 458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 459 460 # Don't try to exec as it changes $[0], causing all sort of problems 461 # (the dirname of $[0] is not the place where we might find the 462 # original and so on. Autoconf is especially sensitive to this). 463 . "./$as_me.lineno" 464 # Exit status is that of the last command. 465 exit 466} 467 468ECHO_C= ECHO_N= ECHO_T= 469case `echo -n x` in #((((( 470-n*) 471 case `echo 'xy\c'` in 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 473 xy) ECHO_C='\c';; 474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 475 ECHO_T=' ';; 476 esac;; 477*) 478 ECHO_N='-n';; 479esac 480 481rm -f conf$$ conf$$.exe conf$$.file 482if test -d conf$$.dir; then 483 rm -f conf$$.dir/conf$$.file 484else 485 rm -f conf$$.dir 486 mkdir conf$$.dir 2>/dev/null 487fi 488if (echo >conf$$.file) 2>/dev/null; then 489 if ln -s conf$$.file conf$$ 2>/dev/null; then 490 as_ln_s='ln -s' 491 # ... but there are two gotchas: 492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 494 # In both cases, we have to default to `cp -p'. 495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 496 as_ln_s='cp -p' 497 elif ln conf$$.file conf$$ 2>/dev/null; then 498 as_ln_s=ln 499 else 500 as_ln_s='cp -p' 501 fi 502else 503 as_ln_s='cp -p' 504fi 505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 506rmdir conf$$.dir 2>/dev/null 507 508if mkdir -p . 2>/dev/null; then 509 as_mkdir_p='mkdir -p "$as_dir"' 510else 511 test -d ./-p && rmdir ./-p 512 as_mkdir_p=false 513fi 514 515if test -x / >/dev/null 2>&1; then 516 as_test_x='test -x' 517else 518 if ls -dL / >/dev/null 2>&1; then 519 as_ls_L_option=L 520 else 521 as_ls_L_option= 522 fi 523 as_test_x=' 524 eval sh -c '\'' 525 if test -d "$1"; then 526 test -d "$1/."; 527 else 528 case $1 in #( 529 -*)set "./$1";; 530 esac; 531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 532 ???[sx]*):;;*)false;;esac;fi 533 '\'' sh 534 ' 535fi 536as_executable_p=$as_test_x 537 538# Sed expression to map a string onto a valid CPP name. 539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 540 541# Sed expression to map a string onto a valid variable name. 542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 543 544SHELL=${CONFIG_SHELL-/bin/sh} 545 546 547test -n "$DJDIR" || exec 7<&0 </dev/null 548exec 6>&1 549 550# Name of the host. 551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 552# so uname gets run too. 553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 554 555# 556# Initializations. 557# 558ac_default_prefix=/usr/local 559ac_clean_files= 560ac_config_libobj_dir=. 561LIBOBJS= 562cross_compiling=no 563subdirs= 564MFLAGS= 565MAKEFLAGS= 566 567# Identity of this package. 568PACKAGE_NAME='libevent' 569PACKAGE_TARNAME='libevent' 570PACKAGE_VERSION='2.1.5-beta' 571PACKAGE_STRING='libevent 2.1.5-beta' 572PACKAGE_BUGREPORT='' 573PACKAGE_URL='' 574 575ac_unique_file="event.c" 576# Factoring default headers for most tests. 577ac_includes_default="\ 578#include <stdio.h> 579#ifdef HAVE_SYS_TYPES_H 580# include <sys/types.h> 581#endif 582#ifdef HAVE_SYS_STAT_H 583# include <sys/stat.h> 584#endif 585#ifdef STDC_HEADERS 586# include <stdlib.h> 587# include <stddef.h> 588#else 589# ifdef HAVE_STDLIB_H 590# include <stdlib.h> 591# endif 592#endif 593#ifdef HAVE_STRING_H 594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 595# include <memory.h> 596# endif 597# include <string.h> 598#endif 599#ifdef HAVE_STRINGS_H 600# include <strings.h> 601#endif 602#ifdef HAVE_INTTYPES_H 603# include <inttypes.h> 604#endif 605#ifdef HAVE_STDINT_H 606# include <stdint.h> 607#endif 608#ifdef HAVE_UNISTD_H 609# include <unistd.h> 610#endif" 611 612ac_subst_vars='am__EXEEXT_FALSE 613am__EXEEXT_TRUE 614LTLIBOBJS 615INSTALL_LIBEVENT_FALSE 616INSTALL_LIBEVENT_TRUE 617LIBEVENT_GC_SECTIONS 618PTHREADS_FALSE 619PTHREADS_TRUE 620PTHREAD_CFLAGS 621PTHREAD_LIBS 622PTHREAD_CC 623acx_pthread_config 624SIGNAL_SUPPORT_FALSE 625SIGNAL_SUPPORT_TRUE 626EVPORT_BACKEND_FALSE 627EVPORT_BACKEND_TRUE 628EPOLL_BACKEND_FALSE 629EPOLL_BACKEND_TRUE 630LIBOBJS 631KQUEUE_BACKEND_FALSE 632KQUEUE_BACKEND_TRUE 633DEVPOLL_BACKEND_FALSE 634DEVPOLL_BACKEND_TRUE 635POLL_BACKEND_FALSE 636POLL_BACKEND_TRUE 637SELECT_BACKEND_FALSE 638SELECT_BACKEND_TRUE 639STRLCPY_IMPL_FALSE 640STRLCPY_IMPL_TRUE 641BUILD_WITH_NO_UNDEFINED_FALSE 642BUILD_WITH_NO_UNDEFINED_TRUE 643BUILD_CYGWIN_FALSE 644BUILD_CYGWIN_TRUE 645BUILD_WIN32_FALSE 646BUILD_WIN32_TRUE 647OPENSSL_FALSE 648OPENSSL_TRUE 649OPENSSL_LIBS 650OPENSSL_INCS 651PKG_CONFIG 652OPENSSL_LIBADD 653EV_LIB_GDI 654EV_LIB_WS32 655ZLIB_REGRESS_FALSE 656ZLIB_REGRESS_TRUE 657ZLIB_LIBS 658BUILD_REGRESS_FALSE 659BUILD_REGRESS_TRUE 660BUILD_SAMPLES_FALSE 661BUILD_SAMPLES_TRUE 662LIBTOOL_DEPS 663OTOOL64 664OTOOL 665LIPO 666NMEDIT 667DSYMUTIL 668MANIFEST_TOOL 669RANLIB 670ac_ct_AR 671AR 672DLLTOOL 673OBJDUMP 674NM 675ac_ct_DUMPBIN 676DUMPBIN 677LD 678FGREP 679LIBTOOL 680SED 681LN_S 682EGREP 683GREP 684CPP 685am__fastdepCC_FALSE 686am__fastdepCC_TRUE 687CCDEPMODE 688AMDEPBACKSLASH 689AMDEP_FALSE 690AMDEP_TRUE 691am__quote 692am__include 693DEPDIR 694OBJEXT 695EXEEXT 696ac_ct_CC 697CPPFLAGS 698LDFLAGS 699CFLAGS 700CC 701host_os 702host_vendor 703host_cpu 704host 705build_os 706build_vendor 707build_cpu 708build 709AM_BACKSLASH 710AM_DEFAULT_VERBOSITY 711am__untar 712am__tar 713AMTAR 714am__leading_dot 715SET_MAKE 716AWK 717mkdir_p 718MKDIR_P 719INSTALL_STRIP_PROGRAM 720STRIP 721install_sh 722MAKEINFO 723AUTOHEADER 724AUTOMAKE 725AUTOCONF 726ACLOCAL 727VERSION 728PACKAGE 729CYGPATH_W 730am__isrc 731INSTALL_DATA 732INSTALL_SCRIPT 733INSTALL_PROGRAM 734target_alias 735host_alias 736build_alias 737LIBS 738ECHO_T 739ECHO_N 740ECHO_C 741DEFS 742mandir 743localedir 744libdir 745psdir 746pdfdir 747dvidir 748htmldir 749infodir 750docdir 751oldincludedir 752includedir 753localstatedir 754sharedstatedir 755sysconfdir 756datadir 757datarootdir 758libexecdir 759sbindir 760bindir 761program_transform_name 762prefix 763exec_prefix 764PACKAGE_URL 765PACKAGE_BUGREPORT 766PACKAGE_STRING 767PACKAGE_VERSION 768PACKAGE_TARNAME 769PACKAGE_NAME 770PATH_SEPARATOR 771SHELL' 772ac_subst_files='' 773ac_user_opts=' 774enable_option_checking 775enable_silent_rules 776enable_dependency_tracking 777enable_gcc_warnings 778enable_gcc_hardening 779enable_thread_support 780enable_malloc_replacement 781enable_openssl 782enable_debug_mode 783enable_libevent_install 784enable_libevent_regress 785enable_samples 786enable_function_sections 787enable_verbose_debug 788enable_shared 789enable_static 790with_pic 791enable_fast_install 792with_gnu_ld 793with_sysroot 794enable_libtool_lock 795enable_largefile 796' 797 ac_precious_vars='build_alias 798host_alias 799target_alias 800CC 801CFLAGS 802LDFLAGS 803LIBS 804CPPFLAGS 805CPP' 806 807 808# Initialize some variables set by options. 809ac_init_help= 810ac_init_version=false 811ac_unrecognized_opts= 812ac_unrecognized_sep= 813# The variables have the same names as the options, with 814# dashes changed to underlines. 815cache_file=/dev/null 816exec_prefix=NONE 817no_create= 818no_recursion= 819prefix=NONE 820program_prefix=NONE 821program_suffix=NONE 822program_transform_name=s,x,x, 823silent= 824site= 825srcdir= 826verbose= 827x_includes=NONE 828x_libraries=NONE 829 830# Installation directory options. 831# These are left unexpanded so users can "make install exec_prefix=/foo" 832# and all the variables that are supposed to be based on exec_prefix 833# by default will actually change. 834# Use braces instead of parens because sh, perl, etc. also accept them. 835# (The list follows the same order as the GNU Coding Standards.) 836bindir='${exec_prefix}/bin' 837sbindir='${exec_prefix}/sbin' 838libexecdir='${exec_prefix}/libexec' 839datarootdir='${prefix}/share' 840datadir='${datarootdir}' 841sysconfdir='${prefix}/etc' 842sharedstatedir='${prefix}/com' 843localstatedir='${prefix}/var' 844includedir='${prefix}/include' 845oldincludedir='/usr/include' 846docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 847infodir='${datarootdir}/info' 848htmldir='${docdir}' 849dvidir='${docdir}' 850pdfdir='${docdir}' 851psdir='${docdir}' 852libdir='${exec_prefix}/lib' 853localedir='${datarootdir}/locale' 854mandir='${datarootdir}/man' 855 856ac_prev= 857ac_dashdash= 858for ac_option 859do 860 # If the previous option needs an argument, assign it. 861 if test -n "$ac_prev"; then 862 eval $ac_prev=\$ac_option 863 ac_prev= 864 continue 865 fi 866 867 case $ac_option in 868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 869 *=) ac_optarg= ;; 870 *) ac_optarg=yes ;; 871 esac 872 873 # Accept the important Cygnus configure options, so we can diagnose typos. 874 875 case $ac_dashdash$ac_option in 876 --) 877 ac_dashdash=yes ;; 878 879 -bindir | --bindir | --bindi | --bind | --bin | --bi) 880 ac_prev=bindir ;; 881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 882 bindir=$ac_optarg ;; 883 884 -build | --build | --buil | --bui | --bu) 885 ac_prev=build_alias ;; 886 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 887 build_alias=$ac_optarg ;; 888 889 -cache-file | --cache-file | --cache-fil | --cache-fi \ 890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 891 ac_prev=cache_file ;; 892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 894 cache_file=$ac_optarg ;; 895 896 --config-cache | -C) 897 cache_file=config.cache ;; 898 899 -datadir | --datadir | --datadi | --datad) 900 ac_prev=datadir ;; 901 -datadir=* | --datadir=* | --datadi=* | --datad=*) 902 datadir=$ac_optarg ;; 903 904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 905 | --dataroo | --dataro | --datar) 906 ac_prev=datarootdir ;; 907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 909 datarootdir=$ac_optarg ;; 910 911 -disable-* | --disable-*) 912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 913 # Reject names that are not valid shell variable names. 914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 915 as_fn_error $? "invalid feature name: $ac_useropt" 916 ac_useropt_orig=$ac_useropt 917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 918 case $ac_user_opts in 919 *" 920"enable_$ac_useropt" 921"*) ;; 922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 923 ac_unrecognized_sep=', ';; 924 esac 925 eval enable_$ac_useropt=no ;; 926 927 -docdir | --docdir | --docdi | --doc | --do) 928 ac_prev=docdir ;; 929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 930 docdir=$ac_optarg ;; 931 932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 933 ac_prev=dvidir ;; 934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 935 dvidir=$ac_optarg ;; 936 937 -enable-* | --enable-*) 938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 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--enable-$ac_useropt_orig" 949 ac_unrecognized_sep=', ';; 950 esac 951 eval enable_$ac_useropt=\$ac_optarg ;; 952 953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 955 | --exec | --exe | --ex) 956 ac_prev=exec_prefix ;; 957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 959 | --exec=* | --exe=* | --ex=*) 960 exec_prefix=$ac_optarg ;; 961 962 -gas | --gas | --ga | --g) 963 # Obsolete; use --with-gas. 964 with_gas=yes ;; 965 966 -help | --help | --hel | --he | -h) 967 ac_init_help=long ;; 968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 969 ac_init_help=recursive ;; 970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 971 ac_init_help=short ;; 972 973 -host | --host | --hos | --ho) 974 ac_prev=host_alias ;; 975 -host=* | --host=* | --hos=* | --ho=*) 976 host_alias=$ac_optarg ;; 977 978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 979 ac_prev=htmldir ;; 980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 981 | --ht=*) 982 htmldir=$ac_optarg ;; 983 984 -includedir | --includedir | --includedi | --included | --include \ 985 | --includ | --inclu | --incl | --inc) 986 ac_prev=includedir ;; 987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 988 | --includ=* | --inclu=* | --incl=* | --inc=*) 989 includedir=$ac_optarg ;; 990 991 -infodir | --infodir | --infodi | --infod | --info | --inf) 992 ac_prev=infodir ;; 993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 994 infodir=$ac_optarg ;; 995 996 -libdir | --libdir | --libdi | --libd) 997 ac_prev=libdir ;; 998 -libdir=* | --libdir=* | --libdi=* | --libd=*) 999 libdir=$ac_optarg ;; 1000 1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1002 | --libexe | --libex | --libe) 1003 ac_prev=libexecdir ;; 1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1005 | --libexe=* | --libex=* | --libe=*) 1006 libexecdir=$ac_optarg ;; 1007 1008 -localedir | --localedir | --localedi | --localed | --locale) 1009 ac_prev=localedir ;; 1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1011 localedir=$ac_optarg ;; 1012 1013 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1014 | --localstate | --localstat | --localsta | --localst | --locals) 1015 ac_prev=localstatedir ;; 1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1018 localstatedir=$ac_optarg ;; 1019 1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1021 ac_prev=mandir ;; 1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1023 mandir=$ac_optarg ;; 1024 1025 -nfp | --nfp | --nf) 1026 # Obsolete; use --without-fp. 1027 with_fp=no ;; 1028 1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1030 | --no-cr | --no-c | -n) 1031 no_create=yes ;; 1032 1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1035 no_recursion=yes ;; 1036 1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1039 | --oldin | --oldi | --old | --ol | --o) 1040 ac_prev=oldincludedir ;; 1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1044 oldincludedir=$ac_optarg ;; 1045 1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1047 ac_prev=prefix ;; 1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1049 prefix=$ac_optarg ;; 1050 1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1052 | --program-pre | --program-pr | --program-p) 1053 ac_prev=program_prefix ;; 1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1056 program_prefix=$ac_optarg ;; 1057 1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1059 | --program-suf | --program-su | --program-s) 1060 ac_prev=program_suffix ;; 1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1063 program_suffix=$ac_optarg ;; 1064 1065 -program-transform-name | --program-transform-name \ 1066 | --program-transform-nam | --program-transform-na \ 1067 | --program-transform-n | --program-transform- \ 1068 | --program-transform | --program-transfor \ 1069 | --program-transfo | --program-transf \ 1070 | --program-trans | --program-tran \ 1071 | --progr-tra | --program-tr | --program-t) 1072 ac_prev=program_transform_name ;; 1073 -program-transform-name=* | --program-transform-name=* \ 1074 | --program-transform-nam=* | --program-transform-na=* \ 1075 | --program-transform-n=* | --program-transform-=* \ 1076 | --program-transform=* | --program-transfor=* \ 1077 | --program-transfo=* | --program-transf=* \ 1078 | --program-trans=* | --program-tran=* \ 1079 | --progr-tra=* | --program-tr=* | --program-t=*) 1080 program_transform_name=$ac_optarg ;; 1081 1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1083 ac_prev=pdfdir ;; 1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1085 pdfdir=$ac_optarg ;; 1086 1087 -psdir | --psdir | --psdi | --psd | --ps) 1088 ac_prev=psdir ;; 1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1090 psdir=$ac_optarg ;; 1091 1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1093 | -silent | --silent | --silen | --sile | --sil) 1094 silent=yes ;; 1095 1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1097 ac_prev=sbindir ;; 1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1099 | --sbi=* | --sb=*) 1100 sbindir=$ac_optarg ;; 1101 1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1104 | --sharedst | --shareds | --shared | --share | --shar \ 1105 | --sha | --sh) 1106 ac_prev=sharedstatedir ;; 1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1110 | --sha=* | --sh=*) 1111 sharedstatedir=$ac_optarg ;; 1112 1113 -site | --site | --sit) 1114 ac_prev=site ;; 1115 -site=* | --site=* | --sit=*) 1116 site=$ac_optarg ;; 1117 1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1119 ac_prev=srcdir ;; 1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1121 srcdir=$ac_optarg ;; 1122 1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1124 | --syscon | --sysco | --sysc | --sys | --sy) 1125 ac_prev=sysconfdir ;; 1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1128 sysconfdir=$ac_optarg ;; 1129 1130 -target | --target | --targe | --targ | --tar | --ta | --t) 1131 ac_prev=target_alias ;; 1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1133 target_alias=$ac_optarg ;; 1134 1135 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1136 verbose=yes ;; 1137 1138 -version | --version | --versio | --versi | --vers | -V) 1139 ac_init_version=: ;; 1140 1141 -with-* | --with-*) 1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1145 as_fn_error $? "invalid package name: $ac_useropt" 1146 ac_useropt_orig=$ac_useropt 1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1148 case $ac_user_opts in 1149 *" 1150"with_$ac_useropt" 1151"*) ;; 1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1153 ac_unrecognized_sep=', ';; 1154 esac 1155 eval with_$ac_useropt=\$ac_optarg ;; 1156 1157 -without-* | --without-*) 1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1159 # Reject names that are not valid shell variable names. 1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1161 as_fn_error $? "invalid package name: $ac_useropt" 1162 ac_useropt_orig=$ac_useropt 1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1164 case $ac_user_opts in 1165 *" 1166"with_$ac_useropt" 1167"*) ;; 1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1169 ac_unrecognized_sep=', ';; 1170 esac 1171 eval with_$ac_useropt=no ;; 1172 1173 --x) 1174 # Obsolete; use --with-x. 1175 with_x=yes ;; 1176 1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1178 | --x-incl | --x-inc | --x-in | --x-i) 1179 ac_prev=x_includes ;; 1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1182 x_includes=$ac_optarg ;; 1183 1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1186 ac_prev=x_libraries ;; 1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1189 x_libraries=$ac_optarg ;; 1190 1191 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1192Try \`$0 --help' for more information" 1193 ;; 1194 1195 *=*) 1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1197 # Reject names that are not valid shell variable names. 1198 case $ac_envvar in #( 1199 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1201 esac 1202 eval $ac_envvar=\$ac_optarg 1203 export $ac_envvar ;; 1204 1205 *) 1206 # FIXME: should be removed in autoconf 3.0. 1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1211 ;; 1212 1213 esac 1214done 1215 1216if test -n "$ac_prev"; then 1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1218 as_fn_error $? "missing argument to $ac_option" 1219fi 1220 1221if test -n "$ac_unrecognized_opts"; then 1222 case $enable_option_checking in 1223 no) ;; 1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1226 esac 1227fi 1228 1229# Check all directory arguments for consistency. 1230for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1231 datadir sysconfdir sharedstatedir localstatedir includedir \ 1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1233 libdir localedir mandir 1234do 1235 eval ac_val=\$$ac_var 1236 # Remove trailing slashes. 1237 case $ac_val in 1238 */ ) 1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1240 eval $ac_var=\$ac_val;; 1241 esac 1242 # Be sure to have absolute directory names. 1243 case $ac_val in 1244 [\\/$]* | ?:[\\/]* ) continue;; 1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1246 esac 1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1248done 1249 1250# There might be people who depend on the old broken behavior: `$host' 1251# used to hold the argument of --host etc. 1252# FIXME: To remove some day. 1253build=$build_alias 1254host=$host_alias 1255target=$target_alias 1256 1257# FIXME: To remove some day. 1258if test "x$host_alias" != x; then 1259 if test "x$build_alias" = x; then 1260 cross_compiling=maybe 1261 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1262 If a cross compiler is detected then cross compile mode will be used" >&2 1263 elif test "x$build_alias" != "x$host_alias"; then 1264 cross_compiling=yes 1265 fi 1266fi 1267 1268ac_tool_prefix= 1269test -n "$host_alias" && ac_tool_prefix=$host_alias- 1270 1271test "$silent" = yes && exec 6>/dev/null 1272 1273 1274ac_pwd=`pwd` && test -n "$ac_pwd" && 1275ac_ls_di=`ls -di .` && 1276ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1277 as_fn_error $? "working directory cannot be determined" 1278test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1279 as_fn_error $? "pwd does not report name of working directory" 1280 1281 1282# Find the source files, if location was not specified. 1283if test -z "$srcdir"; then 1284 ac_srcdir_defaulted=yes 1285 # Try the directory containing this script, then the parent directory. 1286 ac_confdir=`$as_dirname -- "$as_myself" || 1287$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1288 X"$as_myself" : 'X\(//\)[^/]' \| \ 1289 X"$as_myself" : 'X\(//\)$' \| \ 1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1291$as_echo X"$as_myself" | 1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\/\)[^/].*/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\/\)$/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\).*/{ 1305 s//\1/ 1306 q 1307 } 1308 s/.*/./; q'` 1309 srcdir=$ac_confdir 1310 if test ! -r "$srcdir/$ac_unique_file"; then 1311 srcdir=.. 1312 fi 1313else 1314 ac_srcdir_defaulted=no 1315fi 1316if test ! -r "$srcdir/$ac_unique_file"; then 1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1319fi 1320ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1321ac_abs_confdir=`( 1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1323 pwd)` 1324# When building in place, set srcdir=. 1325if test "$ac_abs_confdir" = "$ac_pwd"; then 1326 srcdir=. 1327fi 1328# Remove unnecessary trailing slashes from srcdir. 1329# Double slashes in file names in object file debugging info 1330# mess up M-x gdb in Emacs. 1331case $srcdir in 1332*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1333esac 1334for ac_var in $ac_precious_vars; do 1335 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_env_${ac_var}_value=\$${ac_var} 1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1339done 1340 1341# 1342# Report the --help message. 1343# 1344if test "$ac_init_help" = "long"; then 1345 # Omit some internal or obsolete options to make the list less imposing. 1346 # This message is too long to be a string in the A/UX 3.1 sh. 1347 cat <<_ACEOF 1348\`configure' configures libevent 2.1.5-beta to adapt to many kinds of systems. 1349 1350Usage: $0 [OPTION]... [VAR=VALUE]... 1351 1352To assign environment variables (e.g., CC, CFLAGS...), specify them as 1353VAR=VALUE. See below for descriptions of some of the useful variables. 1354 1355Defaults for the options are specified in brackets. 1356 1357Configuration: 1358 -h, --help display this help and exit 1359 --help=short display options specific to this package 1360 --help=recursive display the short help of all the included packages 1361 -V, --version display version information and exit 1362 -q, --quiet, --silent do not print \`checking ...' messages 1363 --cache-file=FILE cache test results in FILE [disabled] 1364 -C, --config-cache alias for \`--cache-file=config.cache' 1365 -n, --no-create do not create output files 1366 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1367 1368Installation directories: 1369 --prefix=PREFIX install architecture-independent files in PREFIX 1370 [$ac_default_prefix] 1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1372 [PREFIX] 1373 1374By default, \`make install' will install all the files in 1375\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1376an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1377for instance \`--prefix=\$HOME'. 1378 1379For better control, use the options below. 1380 1381Fine tuning of the installation directories: 1382 --bindir=DIR user executables [EPREFIX/bin] 1383 --sbindir=DIR system admin executables [EPREFIX/sbin] 1384 --libexecdir=DIR program executables [EPREFIX/libexec] 1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1388 --libdir=DIR object code libraries [EPREFIX/lib] 1389 --includedir=DIR C header files [PREFIX/include] 1390 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1393 --infodir=DIR info documentation [DATAROOTDIR/info] 1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1395 --mandir=DIR man documentation [DATAROOTDIR/man] 1396 --docdir=DIR documentation root [DATAROOTDIR/doc/libevent] 1397 --htmldir=DIR html documentation [DOCDIR] 1398 --dvidir=DIR dvi documentation [DOCDIR] 1399 --pdfdir=DIR pdf documentation [DOCDIR] 1400 --psdir=DIR ps documentation [DOCDIR] 1401_ACEOF 1402 1403 cat <<\_ACEOF 1404 1405Program names: 1406 --program-prefix=PREFIX prepend PREFIX to installed program names 1407 --program-suffix=SUFFIX append SUFFIX to installed program names 1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1409 1410System types: 1411 --build=BUILD configure for building on BUILD [guessed] 1412 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1413_ACEOF 1414fi 1415 1416if test -n "$ac_init_help"; then 1417 case $ac_init_help in 1418 short | recursive ) echo "Configuration of libevent 2.1.5-beta:";; 1419 esac 1420 cat <<\_ACEOF 1421 1422Optional Features: 1423 --disable-option-checking ignore unrecognized --enable/--with options 1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1426 --enable-silent-rules less verbose build output (undo: `make V=1') 1427 --disable-silent-rules verbose build output (undo: `make V=0') 1428 --disable-dependency-tracking speeds up one-time build 1429 --enable-dependency-tracking do not reject slow dependency extractors 1430 --disable-gcc-warnings disable verbose warnings with GCC 1431 --enable-gcc-hardening enable compiler security checks 1432 --disable-thread-support 1433 disable support for threading 1434 --disable-malloc-replacement 1435 disable support for replacing the memory mgt 1436 functions 1437 --disable-openssl disable support for openssl encryption 1438 --disable-debug-mode disable support for running in debug mode 1439 --disable-libevent-install, disable installation of libevent 1440 1441 --disable-libevent-regress, skip regress in make check 1442 1443 --disable-samples, skip building of sample programs 1444 1445 --enable-function-sections, make static library allow smaller binaries with --gc-sections 1446 1447 --enable-verbose-debug, verbose debug logging 1448 1449 --enable-shared[=PKGS] build shared libraries [default=yes] 1450 --enable-static[=PKGS] build static libraries [default=yes] 1451 --enable-fast-install[=PKGS] 1452 optimize for fast installation [default=yes] 1453 --disable-libtool-lock avoid locking (might break parallel builds) 1454 --disable-largefile omit support for large files 1455 1456Optional Packages: 1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1459 --with-pic try to use only PIC/non-PIC objects [default=use 1460 both] 1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1462 --with-sysroot=DIR Search for dependent libraries within DIR 1463 (or the compiler's sysroot if not specified). 1464 1465Some influential environment variables: 1466 CC C compiler command 1467 CFLAGS C compiler flags 1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1469 nonstandard directory <lib dir> 1470 LIBS libraries to pass to the linker, e.g. -l<library> 1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1472 you have headers in a nonstandard directory <include dir> 1473 CPP C preprocessor 1474 1475Use these variables to override the choices made by `configure' or to help 1476it to find libraries and programs with nonstandard names/locations. 1477 1478Report bugs to the package provider. 1479_ACEOF 1480ac_status=$? 1481fi 1482 1483if test "$ac_init_help" = "recursive"; then 1484 # If there are subdirs, report their specific --help. 1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1486 test -d "$ac_dir" || 1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1488 continue 1489 ac_builddir=. 1490 1491case "$ac_dir" in 1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1493*) 1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1495 # A ".." for each directory in $ac_dir_suffix. 1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1497 case $ac_top_builddir_sub in 1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1500 esac ;; 1501esac 1502ac_abs_top_builddir=$ac_pwd 1503ac_abs_builddir=$ac_pwd$ac_dir_suffix 1504# for backward compatibility: 1505ac_top_builddir=$ac_top_build_prefix 1506 1507case $srcdir in 1508 .) # We are building in place. 1509 ac_srcdir=. 1510 ac_top_srcdir=$ac_top_builddir_sub 1511 ac_abs_top_srcdir=$ac_pwd ;; 1512 [\\/]* | ?:[\\/]* ) # Absolute name. 1513 ac_srcdir=$srcdir$ac_dir_suffix; 1514 ac_top_srcdir=$srcdir 1515 ac_abs_top_srcdir=$srcdir ;; 1516 *) # Relative name. 1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1518 ac_top_srcdir=$ac_top_build_prefix$srcdir 1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1520esac 1521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1522 1523 cd "$ac_dir" || { ac_status=$?; continue; } 1524 # Check for guested configure. 1525 if test -f "$ac_srcdir/configure.gnu"; then 1526 echo && 1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1528 elif test -f "$ac_srcdir/configure"; then 1529 echo && 1530 $SHELL "$ac_srcdir/configure" --help=recursive 1531 else 1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1533 fi || ac_status=$? 1534 cd "$ac_pwd" || { ac_status=$?; break; } 1535 done 1536fi 1537 1538test -n "$ac_init_help" && exit $ac_status 1539if $ac_init_version; then 1540 cat <<\_ACEOF 1541libevent configure 2.1.5-beta 1542generated by GNU Autoconf 2.68 1543 1544Copyright (C) 2010 Free Software Foundation, Inc. 1545This configure script is free software; the Free Software Foundation 1546gives unlimited permission to copy, distribute and modify it. 1547_ACEOF 1548 exit 1549fi 1550 1551## ------------------------ ## 1552## Autoconf initialization. ## 1553## ------------------------ ## 1554 1555# ac_fn_c_try_compile LINENO 1556# -------------------------- 1557# Try to compile conftest.$ac_ext, and return whether this succeeded. 1558ac_fn_c_try_compile () 1559{ 1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1561 rm -f conftest.$ac_objext 1562 if { { ac_try="$ac_compile" 1563case "(($ac_try" in 1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1565 *) ac_try_echo=$ac_try;; 1566esac 1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1568$as_echo "$ac_try_echo"; } >&5 1569 (eval "$ac_compile") 2>conftest.err 1570 ac_status=$? 1571 if test -s conftest.err; then 1572 grep -v '^ *+' conftest.err >conftest.er1 1573 cat conftest.er1 >&5 1574 mv -f conftest.er1 conftest.err 1575 fi 1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1577 test $ac_status = 0; } && { 1578 test -z "$ac_c_werror_flag" || 1579 test ! -s conftest.err 1580 } && test -s conftest.$ac_objext; then : 1581 ac_retval=0 1582else 1583 $as_echo "$as_me: failed program was:" >&5 1584sed 's/^/| /' conftest.$ac_ext >&5 1585 1586 ac_retval=1 1587fi 1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1589 as_fn_set_status $ac_retval 1590 1591} # ac_fn_c_try_compile 1592 1593# ac_fn_c_try_cpp LINENO 1594# ---------------------- 1595# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1596ac_fn_c_try_cpp () 1597{ 1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1599 if { { ac_try="$ac_cpp conftest.$ac_ext" 1600case "(($ac_try" in 1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1602 *) ac_try_echo=$ac_try;; 1603esac 1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1605$as_echo "$ac_try_echo"; } >&5 1606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1607 ac_status=$? 1608 if test -s conftest.err; then 1609 grep -v '^ *+' conftest.err >conftest.er1 1610 cat conftest.er1 >&5 1611 mv -f conftest.er1 conftest.err 1612 fi 1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1614 test $ac_status = 0; } > conftest.i && { 1615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1616 test ! -s conftest.err 1617 }; then : 1618 ac_retval=0 1619else 1620 $as_echo "$as_me: failed program was:" >&5 1621sed 's/^/| /' conftest.$ac_ext >&5 1622 1623 ac_retval=1 1624fi 1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1626 as_fn_set_status $ac_retval 1627 1628} # ac_fn_c_try_cpp 1629 1630# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1631# ------------------------------------------------------- 1632# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1633# the include files in INCLUDES and setting the cache variable VAR 1634# accordingly. 1635ac_fn_c_check_header_mongrel () 1636{ 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638 if eval \${$3+:} false; then : 1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1640$as_echo_n "checking for $2... " >&6; } 1641if eval \${$3+:} false; then : 1642 $as_echo_n "(cached) " >&6 1643fi 1644eval ac_res=\$$3 1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1646$as_echo "$ac_res" >&6; } 1647else 1648 # Is the header compilable? 1649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1650$as_echo_n "checking $2 usability... " >&6; } 1651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1652/* end confdefs.h. */ 1653$4 1654#include <$2> 1655_ACEOF 1656if ac_fn_c_try_compile "$LINENO"; then : 1657 ac_header_compiler=yes 1658else 1659 ac_header_compiler=no 1660fi 1661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1663$as_echo "$ac_header_compiler" >&6; } 1664 1665# Is the header present? 1666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1667$as_echo_n "checking $2 presence... " >&6; } 1668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1669/* end confdefs.h. */ 1670#include <$2> 1671_ACEOF 1672if ac_fn_c_try_cpp "$LINENO"; then : 1673 ac_header_preproc=yes 1674else 1675 ac_header_preproc=no 1676fi 1677rm -f conftest.err conftest.i conftest.$ac_ext 1678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1679$as_echo "$ac_header_preproc" >&6; } 1680 1681# So? What about this header? 1682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1683 yes:no: ) 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1685$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1687$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1688 ;; 1689 no:yes:* ) 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1691$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1693$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1695$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1697$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1699$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1700 ;; 1701esac 1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1703$as_echo_n "checking for $2... " >&6; } 1704if eval \${$3+:} false; then : 1705 $as_echo_n "(cached) " >&6 1706else 1707 eval "$3=\$ac_header_compiler" 1708fi 1709eval ac_res=\$$3 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1711$as_echo "$ac_res" >&6; } 1712fi 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 1715} # ac_fn_c_check_header_mongrel 1716 1717# ac_fn_c_try_run LINENO 1718# ---------------------- 1719# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1720# that executables *can* be run. 1721ac_fn_c_try_run () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 if { { ac_try="$ac_link" 1725case "(($ac_try" in 1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1727 *) ac_try_echo=$ac_try;; 1728esac 1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1730$as_echo "$ac_try_echo"; } >&5 1731 (eval "$ac_link") 2>&5 1732 ac_status=$? 1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1734 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1735 { { case "(($ac_try" in 1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1737 *) ac_try_echo=$ac_try;; 1738esac 1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1740$as_echo "$ac_try_echo"; } >&5 1741 (eval "$ac_try") 2>&5 1742 ac_status=$? 1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1744 test $ac_status = 0; }; }; then : 1745 ac_retval=0 1746else 1747 $as_echo "$as_me: program exited with status $ac_status" >&5 1748 $as_echo "$as_me: failed program was:" >&5 1749sed 's/^/| /' conftest.$ac_ext >&5 1750 1751 ac_retval=$ac_status 1752fi 1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1755 as_fn_set_status $ac_retval 1756 1757} # ac_fn_c_try_run 1758 1759# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1760# ------------------------------------------------------- 1761# Tests whether HEADER exists and can be compiled using the include files in 1762# INCLUDES, setting the cache variable VAR accordingly. 1763ac_fn_c_check_header_compile () 1764{ 1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1767$as_echo_n "checking for $2... " >&6; } 1768if eval \${$3+:} false; then : 1769 $as_echo_n "(cached) " >&6 1770else 1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1772/* end confdefs.h. */ 1773$4 1774#include <$2> 1775_ACEOF 1776if ac_fn_c_try_compile "$LINENO"; then : 1777 eval "$3=yes" 1778else 1779 eval "$3=no" 1780fi 1781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1782fi 1783eval ac_res=\$$3 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1785$as_echo "$ac_res" >&6; } 1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1787 1788} # ac_fn_c_check_header_compile 1789 1790# ac_fn_c_try_link LINENO 1791# ----------------------- 1792# Try to link conftest.$ac_ext, and return whether this succeeded. 1793ac_fn_c_try_link () 1794{ 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 rm -f conftest.$ac_objext conftest$ac_exeext 1797 if { { ac_try="$ac_link" 1798case "(($ac_try" in 1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1800 *) ac_try_echo=$ac_try;; 1801esac 1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1803$as_echo "$ac_try_echo"; } >&5 1804 (eval "$ac_link") 2>conftest.err 1805 ac_status=$? 1806 if test -s conftest.err; then 1807 grep -v '^ *+' conftest.err >conftest.er1 1808 cat conftest.er1 >&5 1809 mv -f conftest.er1 conftest.err 1810 fi 1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1812 test $ac_status = 0; } && { 1813 test -z "$ac_c_werror_flag" || 1814 test ! -s conftest.err 1815 } && test -s conftest$ac_exeext && { 1816 test "$cross_compiling" = yes || 1817 $as_test_x conftest$ac_exeext 1818 }; then : 1819 ac_retval=0 1820else 1821 $as_echo "$as_me: failed program was:" >&5 1822sed 's/^/| /' conftest.$ac_ext >&5 1823 1824 ac_retval=1 1825fi 1826 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1827 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1828 # interfere with the next link command; also delete a directory that is 1829 # left behind by Apple's compiler. We do this before executing the actions. 1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1832 as_fn_set_status $ac_retval 1833 1834} # ac_fn_c_try_link 1835 1836# ac_fn_c_check_func LINENO FUNC VAR 1837# ---------------------------------- 1838# Tests whether FUNC exists, setting the cache variable VAR accordingly 1839ac_fn_c_check_func () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1843$as_echo_n "checking for $2... " >&6; } 1844if eval \${$3+:} false; then : 1845 $as_echo_n "(cached) " >&6 1846else 1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1848/* end confdefs.h. */ 1849/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1850 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1851#define $2 innocuous_$2 1852 1853/* System header to define __stub macros and hopefully few prototypes, 1854 which can conflict with char $2 (); below. 1855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1856 <limits.h> exists even on freestanding compilers. */ 1857 1858#ifdef __STDC__ 1859# include <limits.h> 1860#else 1861# include <assert.h> 1862#endif 1863 1864#undef $2 1865 1866/* Override any GCC internal prototype to avoid an error. 1867 Use char because int might match the return type of a GCC 1868 builtin and then its argument prototype would still apply. */ 1869#ifdef __cplusplus 1870extern "C" 1871#endif 1872char $2 (); 1873/* The GNU C library defines this for functions which it implements 1874 to always fail with ENOSYS. Some functions are actually named 1875 something starting with __ and the normal name is an alias. */ 1876#if defined __stub_$2 || defined __stub___$2 1877choke me 1878#endif 1879 1880int 1881main () 1882{ 1883return $2 (); 1884 ; 1885 return 0; 1886} 1887_ACEOF 1888if ac_fn_c_try_link "$LINENO"; then : 1889 eval "$3=yes" 1890else 1891 eval "$3=no" 1892fi 1893rm -f core conftest.err conftest.$ac_objext \ 1894 conftest$ac_exeext conftest.$ac_ext 1895fi 1896eval ac_res=\$$3 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1898$as_echo "$ac_res" >&6; } 1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1900 1901} # ac_fn_c_check_func 1902 1903# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1904# --------------------------------------------- 1905# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1906# accordingly. 1907ac_fn_c_check_decl () 1908{ 1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1910 as_decl_name=`echo $2|sed 's/ *(.*//'` 1911 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1913$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1914if eval \${$3+:} false; then : 1915 $as_echo_n "(cached) " >&6 1916else 1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1918/* end confdefs.h. */ 1919$4 1920int 1921main () 1922{ 1923#ifndef $as_decl_name 1924#ifdef __cplusplus 1925 (void) $as_decl_use; 1926#else 1927 (void) $as_decl_name; 1928#endif 1929#endif 1930 1931 ; 1932 return 0; 1933} 1934_ACEOF 1935if ac_fn_c_try_compile "$LINENO"; then : 1936 eval "$3=yes" 1937else 1938 eval "$3=no" 1939fi 1940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1941fi 1942eval ac_res=\$$3 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1944$as_echo "$ac_res" >&6; } 1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1946 1947} # ac_fn_c_check_decl 1948 1949# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1950# ------------------------------------------- 1951# Tests whether TYPE exists after having included INCLUDES, setting cache 1952# variable VAR accordingly. 1953ac_fn_c_check_type () 1954{ 1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1957$as_echo_n "checking for $2... " >&6; } 1958if eval \${$3+:} false; then : 1959 $as_echo_n "(cached) " >&6 1960else 1961 eval "$3=no" 1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1963/* end confdefs.h. */ 1964$4 1965int 1966main () 1967{ 1968if (sizeof ($2)) 1969 return 0; 1970 ; 1971 return 0; 1972} 1973_ACEOF 1974if ac_fn_c_try_compile "$LINENO"; then : 1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1976/* end confdefs.h. */ 1977$4 1978int 1979main () 1980{ 1981if (sizeof (($2))) 1982 return 0; 1983 ; 1984 return 0; 1985} 1986_ACEOF 1987if ac_fn_c_try_compile "$LINENO"; then : 1988 1989else 1990 eval "$3=yes" 1991fi 1992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1993fi 1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1995fi 1996eval ac_res=\$$3 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1998$as_echo "$ac_res" >&6; } 1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2000 2001} # ac_fn_c_check_type 2002 2003# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2004# -------------------------------------------- 2005# Tries to find the compile-time value of EXPR in a program that includes 2006# INCLUDES, setting VAR accordingly. Returns whether the value could be 2007# computed 2008ac_fn_c_compute_int () 2009{ 2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2011 if test "$cross_compiling" = yes; then 2012 # Depending upon the size, compute the lo and hi bounds. 2013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2014/* end confdefs.h. */ 2015$4 2016int 2017main () 2018{ 2019static int test_array [1 - 2 * !(($2) >= 0)]; 2020test_array [0] = 0 2021 2022 ; 2023 return 0; 2024} 2025_ACEOF 2026if ac_fn_c_try_compile "$LINENO"; then : 2027 ac_lo=0 ac_mid=0 2028 while :; do 2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2030/* end confdefs.h. */ 2031$4 2032int 2033main () 2034{ 2035static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2036test_array [0] = 0 2037 2038 ; 2039 return 0; 2040} 2041_ACEOF 2042if ac_fn_c_try_compile "$LINENO"; then : 2043 ac_hi=$ac_mid; break 2044else 2045 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2046 if test $ac_lo -le $ac_mid; then 2047 ac_lo= ac_hi= 2048 break 2049 fi 2050 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2051fi 2052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2053 done 2054else 2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2056/* end confdefs.h. */ 2057$4 2058int 2059main () 2060{ 2061static int test_array [1 - 2 * !(($2) < 0)]; 2062test_array [0] = 0 2063 2064 ; 2065 return 0; 2066} 2067_ACEOF 2068if ac_fn_c_try_compile "$LINENO"; then : 2069 ac_hi=-1 ac_mid=-1 2070 while :; do 2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2072/* end confdefs.h. */ 2073$4 2074int 2075main () 2076{ 2077static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2078test_array [0] = 0 2079 2080 ; 2081 return 0; 2082} 2083_ACEOF 2084if ac_fn_c_try_compile "$LINENO"; then : 2085 ac_lo=$ac_mid; break 2086else 2087 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2088 if test $ac_mid -le $ac_hi; then 2089 ac_lo= ac_hi= 2090 break 2091 fi 2092 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2093fi 2094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2095 done 2096else 2097 ac_lo= ac_hi= 2098fi 2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2100fi 2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2102# Binary search between lo and hi bounds. 2103while test "x$ac_lo" != "x$ac_hi"; do 2104 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 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 2113 2114 ; 2115 return 0; 2116} 2117_ACEOF 2118if ac_fn_c_try_compile "$LINENO"; then : 2119 ac_hi=$ac_mid 2120else 2121 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2122fi 2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2124done 2125case $ac_lo in #(( 2126?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2127'') ac_retval=1 ;; 2128esac 2129 else 2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2131/* end confdefs.h. */ 2132$4 2133static long int longval () { return $2; } 2134static unsigned long int ulongval () { return $2; } 2135#include <stdio.h> 2136#include <stdlib.h> 2137int 2138main () 2139{ 2140 2141 FILE *f = fopen ("conftest.val", "w"); 2142 if (! f) 2143 return 1; 2144 if (($2) < 0) 2145 { 2146 long int i = longval (); 2147 if (i != ($2)) 2148 return 1; 2149 fprintf (f, "%ld", i); 2150 } 2151 else 2152 { 2153 unsigned long int i = ulongval (); 2154 if (i != ($2)) 2155 return 1; 2156 fprintf (f, "%lu", i); 2157 } 2158 /* Do not output a trailing newline, as this causes \r\n confusion 2159 on some platforms. */ 2160 return ferror (f) || fclose (f) != 0; 2161 2162 ; 2163 return 0; 2164} 2165_ACEOF 2166if ac_fn_c_try_run "$LINENO"; then : 2167 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2168else 2169 ac_retval=1 2170fi 2171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2172 conftest.$ac_objext conftest.beam conftest.$ac_ext 2173rm -f conftest.val 2174 2175 fi 2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2177 as_fn_set_status $ac_retval 2178 2179} # ac_fn_c_compute_int 2180 2181# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2182# ---------------------------------------------------- 2183# Tries to find if the field MEMBER exists in type AGGR, after including 2184# INCLUDES, setting cache variable VAR accordingly. 2185ac_fn_c_check_member () 2186{ 2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2189$as_echo_n "checking for $2.$3... " >&6; } 2190if eval \${$4+:} false; then : 2191 $as_echo_n "(cached) " >&6 2192else 2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2194/* end confdefs.h. */ 2195$5 2196int 2197main () 2198{ 2199static $2 ac_aggr; 2200if (ac_aggr.$3) 2201return 0; 2202 ; 2203 return 0; 2204} 2205_ACEOF 2206if ac_fn_c_try_compile "$LINENO"; then : 2207 eval "$4=yes" 2208else 2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2210/* end confdefs.h. */ 2211$5 2212int 2213main () 2214{ 2215static $2 ac_aggr; 2216if (sizeof ac_aggr.$3) 2217return 0; 2218 ; 2219 return 0; 2220} 2221_ACEOF 2222if ac_fn_c_try_compile "$LINENO"; then : 2223 eval "$4=yes" 2224else 2225 eval "$4=no" 2226fi 2227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2228fi 2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2230fi 2231eval ac_res=\$$4 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2233$as_echo "$ac_res" >&6; } 2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2235 2236} # ac_fn_c_check_member 2237cat >config.log <<_ACEOF 2238This file contains any messages produced by compilers while 2239running configure, to aid debugging if configure makes a mistake. 2240 2241It was created by libevent $as_me 2.1.5-beta, which was 2242generated by GNU Autoconf 2.68. Invocation command line was 2243 2244 $ $0 $@ 2245 2246_ACEOF 2247exec 5>>config.log 2248{ 2249cat <<_ASUNAME 2250## --------- ## 2251## Platform. ## 2252## --------- ## 2253 2254hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2255uname -m = `(uname -m) 2>/dev/null || echo unknown` 2256uname -r = `(uname -r) 2>/dev/null || echo unknown` 2257uname -s = `(uname -s) 2>/dev/null || echo unknown` 2258uname -v = `(uname -v) 2>/dev/null || echo unknown` 2259 2260/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2261/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2262 2263/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2264/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2265/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2266/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2267/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2268/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2269/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2270 2271_ASUNAME 2272 2273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2274for as_dir in $PATH 2275do 2276 IFS=$as_save_IFS 2277 test -z "$as_dir" && as_dir=. 2278 $as_echo "PATH: $as_dir" 2279 done 2280IFS=$as_save_IFS 2281 2282} >&5 2283 2284cat >&5 <<_ACEOF 2285 2286 2287## ----------- ## 2288## Core tests. ## 2289## ----------- ## 2290 2291_ACEOF 2292 2293 2294# Keep a trace of the command line. 2295# Strip out --no-create and --no-recursion so they do not pile up. 2296# Strip out --silent because we don't want to record it for future runs. 2297# Also quote any args containing shell meta-characters. 2298# Make two passes to allow for proper duplicate-argument suppression. 2299ac_configure_args= 2300ac_configure_args0= 2301ac_configure_args1= 2302ac_must_keep_next=false 2303for ac_pass in 1 2 2304do 2305 for ac_arg 2306 do 2307 case $ac_arg in 2308 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2310 | -silent | --silent | --silen | --sile | --sil) 2311 continue ;; 2312 *\'*) 2313 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2314 esac 2315 case $ac_pass in 2316 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2317 2) 2318 as_fn_append ac_configure_args1 " '$ac_arg'" 2319 if test $ac_must_keep_next = true; then 2320 ac_must_keep_next=false # Got value, back to normal. 2321 else 2322 case $ac_arg in 2323 *=* | --config-cache | -C | -disable-* | --disable-* \ 2324 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2325 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2326 | -with-* | --with-* | -without-* | --without-* | --x) 2327 case "$ac_configure_args0 " in 2328 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2329 esac 2330 ;; 2331 -* ) ac_must_keep_next=true ;; 2332 esac 2333 fi 2334 as_fn_append ac_configure_args " '$ac_arg'" 2335 ;; 2336 esac 2337 done 2338done 2339{ ac_configure_args0=; unset ac_configure_args0;} 2340{ ac_configure_args1=; unset ac_configure_args1;} 2341 2342# When interrupted or exit'd, cleanup temporary files, and complete 2343# config.log. We remove comments because anyway the quotes in there 2344# would cause problems or look ugly. 2345# WARNING: Use '\'' to represent an apostrophe within the trap. 2346# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2347trap 'exit_status=$? 2348 # Save into config.log some information that might help in debugging. 2349 { 2350 echo 2351 2352 $as_echo "## ---------------- ## 2353## Cache variables. ## 2354## ---------------- ##" 2355 echo 2356 # The following way of writing the cache mishandles newlines in values, 2357( 2358 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2359 eval ac_val=\$$ac_var 2360 case $ac_val in #( 2361 *${as_nl}*) 2362 case $ac_var in #( 2363 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2364$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2365 esac 2366 case $ac_var in #( 2367 _ | IFS | as_nl) ;; #( 2368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2369 *) { eval $ac_var=; unset $ac_var;} ;; 2370 esac ;; 2371 esac 2372 done 2373 (set) 2>&1 | 2374 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2375 *${as_nl}ac_space=\ *) 2376 sed -n \ 2377 "s/'\''/'\''\\\\'\'''\''/g; 2378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2379 ;; #( 2380 *) 2381 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2382 ;; 2383 esac | 2384 sort 2385) 2386 echo 2387 2388 $as_echo "## ----------------- ## 2389## Output variables. ## 2390## ----------------- ##" 2391 echo 2392 for ac_var in $ac_subst_vars 2393 do 2394 eval ac_val=\$$ac_var 2395 case $ac_val in 2396 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2397 esac 2398 $as_echo "$ac_var='\''$ac_val'\''" 2399 done | sort 2400 echo 2401 2402 if test -n "$ac_subst_files"; then 2403 $as_echo "## ------------------- ## 2404## File substitutions. ## 2405## ------------------- ##" 2406 echo 2407 for ac_var in $ac_subst_files 2408 do 2409 eval ac_val=\$$ac_var 2410 case $ac_val in 2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2412 esac 2413 $as_echo "$ac_var='\''$ac_val'\''" 2414 done | sort 2415 echo 2416 fi 2417 2418 if test -s confdefs.h; then 2419 $as_echo "## ----------- ## 2420## confdefs.h. ## 2421## ----------- ##" 2422 echo 2423 cat confdefs.h 2424 echo 2425 fi 2426 test "$ac_signal" != 0 && 2427 $as_echo "$as_me: caught signal $ac_signal" 2428 $as_echo "$as_me: exit $exit_status" 2429 } >&5 2430 rm -f core *.core core.conftest.* && 2431 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2432 exit $exit_status 2433' 0 2434for ac_signal in 1 2 13 15; do 2435 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2436done 2437ac_signal=0 2438 2439# confdefs.h avoids OS command line length limits that DEFS can exceed. 2440rm -f -r conftest* confdefs.h 2441 2442$as_echo "/* confdefs.h */" > confdefs.h 2443 2444# Predefined preprocessor variables. 2445 2446cat >>confdefs.h <<_ACEOF 2447#define PACKAGE_NAME "$PACKAGE_NAME" 2448_ACEOF 2449 2450cat >>confdefs.h <<_ACEOF 2451#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2452_ACEOF 2453 2454cat >>confdefs.h <<_ACEOF 2455#define PACKAGE_VERSION "$PACKAGE_VERSION" 2456_ACEOF 2457 2458cat >>confdefs.h <<_ACEOF 2459#define PACKAGE_STRING "$PACKAGE_STRING" 2460_ACEOF 2461 2462cat >>confdefs.h <<_ACEOF 2463#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2464_ACEOF 2465 2466cat >>confdefs.h <<_ACEOF 2467#define PACKAGE_URL "$PACKAGE_URL" 2468_ACEOF 2469 2470 2471# Let the site file select an alternate cache file if it wants to. 2472# Prefer an explicitly selected file to automatically selected ones. 2473ac_site_file1=NONE 2474ac_site_file2=NONE 2475if test -n "$CONFIG_SITE"; then 2476 # We do not want a PATH search for config.site. 2477 case $CONFIG_SITE in #(( 2478 -*) ac_site_file1=./$CONFIG_SITE;; 2479 */*) ac_site_file1=$CONFIG_SITE;; 2480 *) ac_site_file1=./$CONFIG_SITE;; 2481 esac 2482elif test "x$prefix" != xNONE; then 2483 ac_site_file1=$prefix/share/config.site 2484 ac_site_file2=$prefix/etc/config.site 2485else 2486 ac_site_file1=$ac_default_prefix/share/config.site 2487 ac_site_file2=$ac_default_prefix/etc/config.site 2488fi 2489for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2490do 2491 test "x$ac_site_file" = xNONE && continue 2492 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2493 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2494$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2495 sed 's/^/| /' "$ac_site_file" >&5 2496 . "$ac_site_file" \ 2497 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2499as_fn_error $? "failed to load site script $ac_site_file 2500See \`config.log' for more details" "$LINENO" 5; } 2501 fi 2502done 2503 2504if test -r "$cache_file"; then 2505 # Some versions of bash will fail to source /dev/null (special files 2506 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2507 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2509$as_echo "$as_me: loading cache $cache_file" >&6;} 2510 case $cache_file in 2511 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2512 *) . "./$cache_file";; 2513 esac 2514 fi 2515else 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2517$as_echo "$as_me: creating cache $cache_file" >&6;} 2518 >$cache_file 2519fi 2520 2521# Check that the precious variables saved in the cache have kept the same 2522# value. 2523ac_cache_corrupted=false 2524for ac_var in $ac_precious_vars; do 2525 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2526 eval ac_new_set=\$ac_env_${ac_var}_set 2527 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2528 eval ac_new_val=\$ac_env_${ac_var}_value 2529 case $ac_old_set,$ac_new_set in 2530 set,) 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2532$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2533 ac_cache_corrupted=: ;; 2534 ,set) 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2536$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2537 ac_cache_corrupted=: ;; 2538 ,);; 2539 *) 2540 if test "x$ac_old_val" != "x$ac_new_val"; then 2541 # differences in whitespace do not lead to failure. 2542 ac_old_val_w=`echo x $ac_old_val` 2543 ac_new_val_w=`echo x $ac_new_val` 2544 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2546$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2547 ac_cache_corrupted=: 2548 else 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2550$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2551 eval $ac_var=\$ac_old_val 2552 fi 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2554$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2556$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2557 fi;; 2558 esac 2559 # Pass precious variables to config.status. 2560 if test "$ac_new_set" = set; then 2561 case $ac_new_val in 2562 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2563 *) ac_arg=$ac_var=$ac_new_val ;; 2564 esac 2565 case " $ac_configure_args " in 2566 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2567 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2568 esac 2569 fi 2570done 2571if $ac_cache_corrupted; then 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2575$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2576 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2577fi 2578## -------------------- ## 2579## Main body of script. ## 2580## -------------------- ## 2581 2582ac_ext=c 2583ac_cpp='$CPP $CPPFLAGS' 2584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2586ac_compiler_gnu=$ac_cv_c_compiler_gnu 2587 2588 2589 2590 2591 2592 2593ac_aux_dir= 2594for ac_dir in build-aux "$srcdir"/build-aux; do 2595 if test -f "$ac_dir/install-sh"; then 2596 ac_aux_dir=$ac_dir 2597 ac_install_sh="$ac_aux_dir/install-sh -c" 2598 break 2599 elif test -f "$ac_dir/install.sh"; then 2600 ac_aux_dir=$ac_dir 2601 ac_install_sh="$ac_aux_dir/install.sh -c" 2602 break 2603 elif test -f "$ac_dir/shtool"; then 2604 ac_aux_dir=$ac_dir 2605 ac_install_sh="$ac_aux_dir/shtool install -c" 2606 break 2607 fi 2608done 2609if test -z "$ac_aux_dir"; then 2610 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2611fi 2612 2613# These three variables are undocumented and unsupported, 2614# and are intended to be withdrawn in a future Autoconf release. 2615# They can cause serious problems if a builder's source tree is in a directory 2616# whose full name contains unusual characters. 2617ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2618ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2619ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2620 2621 2622am__api_version='1.11' 2623 2624# Find a good install program. We prefer a C program (faster), 2625# so one script is as good as another. But avoid the broken or 2626# incompatible versions: 2627# SysV /etc/install, /usr/sbin/install 2628# SunOS /usr/etc/install 2629# IRIX /sbin/install 2630# AIX /bin/install 2631# AmigaOS /C/install, which installs bootblocks on floppy discs 2632# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2633# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2634# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2635# OS/2's system install, which has a completely different semantic 2636# ./install, which can be erroneously created by make from ./install.sh. 2637# Reject install programs that cannot install multiple files. 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2639$as_echo_n "checking for a BSD-compatible install... " >&6; } 2640if test -z "$INSTALL"; then 2641if ${ac_cv_path_install+:} false; then : 2642 $as_echo_n "(cached) " >&6 2643else 2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2645for as_dir in $PATH 2646do 2647 IFS=$as_save_IFS 2648 test -z "$as_dir" && as_dir=. 2649 # Account for people who put trailing slashes in PATH elements. 2650case $as_dir/ in #(( 2651 ./ | .// | /[cC]/* | \ 2652 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2653 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2654 /usr/ucb/* ) ;; 2655 *) 2656 # OSF1 and SCO ODT 3.0 have their own names for install. 2657 # Don't use installbsd from OSF since it installs stuff as root 2658 # by default. 2659 for ac_prog in ginstall scoinst install; do 2660 for ac_exec_ext in '' $ac_executable_extensions; do 2661 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2662 if test $ac_prog = install && 2663 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2664 # AIX install. It has an incompatible calling convention. 2665 : 2666 elif test $ac_prog = install && 2667 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2668 # program-specific install script used by HP pwplus--don't use. 2669 : 2670 else 2671 rm -rf conftest.one conftest.two conftest.dir 2672 echo one > conftest.one 2673 echo two > conftest.two 2674 mkdir conftest.dir 2675 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2676 test -s conftest.one && test -s conftest.two && 2677 test -s conftest.dir/conftest.one && 2678 test -s conftest.dir/conftest.two 2679 then 2680 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2681 break 3 2682 fi 2683 fi 2684 fi 2685 done 2686 done 2687 ;; 2688esac 2689 2690 done 2691IFS=$as_save_IFS 2692 2693rm -rf conftest.one conftest.two conftest.dir 2694 2695fi 2696 if test "${ac_cv_path_install+set}" = set; then 2697 INSTALL=$ac_cv_path_install 2698 else 2699 # As a last resort, use the slow shell script. Don't cache a 2700 # value for INSTALL within a source directory, because that will 2701 # break other packages using the cache if that directory is 2702 # removed, or if the value is a relative name. 2703 INSTALL=$ac_install_sh 2704 fi 2705fi 2706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2707$as_echo "$INSTALL" >&6; } 2708 2709# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2710# It thinks the first close brace ends the variable substitution. 2711test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2712 2713test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2714 2715test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2716 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2718$as_echo_n "checking whether build environment is sane... " >&6; } 2719# Just in case 2720sleep 1 2721echo timestamp > conftest.file 2722# Reject unsafe characters in $srcdir or the absolute working directory 2723# name. Accept space and tab only in the latter. 2724am_lf=' 2725' 2726case `pwd` in 2727 *[\\\"\#\$\&\'\`$am_lf]*) 2728 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2729esac 2730case $srcdir in 2731 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2732 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2733esac 2734 2735# Do `set' in a subshell so we don't clobber the current shell's 2736# arguments. Must try -L first in case configure is actually a 2737# symlink; some systems play weird games with the mod time of symlinks 2738# (eg FreeBSD returns the mod time of the symlink's containing 2739# directory). 2740if ( 2741 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2742 if test "$*" = "X"; then 2743 # -L didn't work. 2744 set X `ls -t "$srcdir/configure" conftest.file` 2745 fi 2746 rm -f conftest.file 2747 if test "$*" != "X $srcdir/configure conftest.file" \ 2748 && test "$*" != "X conftest.file $srcdir/configure"; then 2749 2750 # If neither matched, then we have a broken ls. This can happen 2751 # if, for instance, CONFIG_SHELL is bash and it inherits a 2752 # broken ls alias from the environment. This has actually 2753 # happened. Such a system could not be considered "sane". 2754 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2755alias in your environment" "$LINENO" 5 2756 fi 2757 2758 test "$2" = conftest.file 2759 ) 2760then 2761 # Ok. 2762 : 2763else 2764 as_fn_error $? "newly created file is older than distributed files! 2765Check your system clock" "$LINENO" 5 2766fi 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2768$as_echo "yes" >&6; } 2769test "$program_prefix" != NONE && 2770 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2771# Use a double $ so make ignores it. 2772test "$program_suffix" != NONE && 2773 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2774# Double any \ or $. 2775# By default was `s,x,x', remove it if useless. 2776ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2777program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2778 2779# expand $ac_aux_dir to an absolute path 2780am_aux_dir=`cd $ac_aux_dir && pwd` 2781 2782if test x"${MISSING+set}" != xset; then 2783 case $am_aux_dir in 2784 *\ * | *\ *) 2785 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2786 *) 2787 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2788 esac 2789fi 2790# Use eval to expand $SHELL 2791if eval "$MISSING --run true"; then 2792 am_missing_run="$MISSING --run " 2793else 2794 am_missing_run= 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2796$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2797fi 2798 2799if test x"${install_sh}" != xset; then 2800 case $am_aux_dir in 2801 *\ * | *\ *) 2802 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2803 *) 2804 install_sh="\${SHELL} $am_aux_dir/install-sh" 2805 esac 2806fi 2807 2808# Installed binaries are usually stripped using `strip' when the user 2809# run `make install-strip'. However `strip' might not be the right 2810# tool to use in cross-compilation environments, therefore Automake 2811# will honor the `STRIP' environment variable to overrule this program. 2812if test "$cross_compiling" != no; then 2813 if test -n "$ac_tool_prefix"; then 2814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2815set dummy ${ac_tool_prefix}strip; ac_word=$2 2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2817$as_echo_n "checking for $ac_word... " >&6; } 2818if ${ac_cv_prog_STRIP+:} false; then : 2819 $as_echo_n "(cached) " >&6 2820else 2821 if test -n "$STRIP"; then 2822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2823else 2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2825for as_dir in $PATH 2826do 2827 IFS=$as_save_IFS 2828 test -z "$as_dir" && as_dir=. 2829 for ac_exec_ext in '' $ac_executable_extensions; do 2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2831 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2833 break 2 2834 fi 2835done 2836 done 2837IFS=$as_save_IFS 2838 2839fi 2840fi 2841STRIP=$ac_cv_prog_STRIP 2842if test -n "$STRIP"; then 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2844$as_echo "$STRIP" >&6; } 2845else 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2847$as_echo "no" >&6; } 2848fi 2849 2850 2851fi 2852if test -z "$ac_cv_prog_STRIP"; then 2853 ac_ct_STRIP=$STRIP 2854 # Extract the first word of "strip", so it can be a program name with args. 2855set dummy strip; ac_word=$2 2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2857$as_echo_n "checking for $ac_word... " >&6; } 2858if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2859 $as_echo_n "(cached) " >&6 2860else 2861 if test -n "$ac_ct_STRIP"; then 2862 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2863else 2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2865for as_dir in $PATH 2866do 2867 IFS=$as_save_IFS 2868 test -z "$as_dir" && as_dir=. 2869 for ac_exec_ext in '' $ac_executable_extensions; do 2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2871 ac_cv_prog_ac_ct_STRIP="strip" 2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2873 break 2 2874 fi 2875done 2876 done 2877IFS=$as_save_IFS 2878 2879fi 2880fi 2881ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2882if test -n "$ac_ct_STRIP"; then 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2884$as_echo "$ac_ct_STRIP" >&6; } 2885else 2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2887$as_echo "no" >&6; } 2888fi 2889 2890 if test "x$ac_ct_STRIP" = x; then 2891 STRIP=":" 2892 else 2893 case $cross_compiling:$ac_tool_warned in 2894yes:) 2895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2897ac_tool_warned=yes ;; 2898esac 2899 STRIP=$ac_ct_STRIP 2900 fi 2901else 2902 STRIP="$ac_cv_prog_STRIP" 2903fi 2904 2905fi 2906INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2907 2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2909$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2910if test -z "$MKDIR_P"; then 2911 if ${ac_cv_path_mkdir+:} false; then : 2912 $as_echo_n "(cached) " >&6 2913else 2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2915for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2916do 2917 IFS=$as_save_IFS 2918 test -z "$as_dir" && as_dir=. 2919 for ac_prog in mkdir gmkdir; do 2920 for ac_exec_ext in '' $ac_executable_extensions; do 2921 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2922 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2923 'mkdir (GNU coreutils) '* | \ 2924 'mkdir (coreutils) '* | \ 2925 'mkdir (fileutils) '4.1*) 2926 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2927 break 3;; 2928 esac 2929 done 2930 done 2931 done 2932IFS=$as_save_IFS 2933 2934fi 2935 2936 test -d ./--version && rmdir ./--version 2937 if test "${ac_cv_path_mkdir+set}" = set; then 2938 MKDIR_P="$ac_cv_path_mkdir -p" 2939 else 2940 # As a last resort, use the slow shell script. Don't cache a 2941 # value for MKDIR_P within a source directory, because that will 2942 # break other packages using the cache if that directory is 2943 # removed, or if the value is a relative name. 2944 MKDIR_P="$ac_install_sh -d" 2945 fi 2946fi 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2948$as_echo "$MKDIR_P" >&6; } 2949 2950mkdir_p="$MKDIR_P" 2951case $mkdir_p in 2952 [\\/$]* | ?:[\\/]*) ;; 2953 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2954esac 2955 2956for ac_prog in gawk mawk nawk awk 2957do 2958 # Extract the first word of "$ac_prog", so it can be a program name with args. 2959set dummy $ac_prog; ac_word=$2 2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2961$as_echo_n "checking for $ac_word... " >&6; } 2962if ${ac_cv_prog_AWK+:} false; then : 2963 $as_echo_n "(cached) " >&6 2964else 2965 if test -n "$AWK"; then 2966 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2967else 2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2969for as_dir in $PATH 2970do 2971 IFS=$as_save_IFS 2972 test -z "$as_dir" && as_dir=. 2973 for ac_exec_ext in '' $ac_executable_extensions; do 2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2975 ac_cv_prog_AWK="$ac_prog" 2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2977 break 2 2978 fi 2979done 2980 done 2981IFS=$as_save_IFS 2982 2983fi 2984fi 2985AWK=$ac_cv_prog_AWK 2986if test -n "$AWK"; then 2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2988$as_echo "$AWK" >&6; } 2989else 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2991$as_echo "no" >&6; } 2992fi 2993 2994 2995 test -n "$AWK" && break 2996done 2997 2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2999$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3000set x ${MAKE-make} 3001ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3002if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3003 $as_echo_n "(cached) " >&6 3004else 3005 cat >conftest.make <<\_ACEOF 3006SHELL = /bin/sh 3007all: 3008 @echo '@@@%%%=$(MAKE)=@@@%%%' 3009_ACEOF 3010# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3011case `${MAKE-make} -f conftest.make 2>/dev/null` in 3012 *@@@%%%=?*=@@@%%%*) 3013 eval ac_cv_prog_make_${ac_make}_set=yes;; 3014 *) 3015 eval ac_cv_prog_make_${ac_make}_set=no;; 3016esac 3017rm -f conftest.make 3018fi 3019if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3021$as_echo "yes" >&6; } 3022 SET_MAKE= 3023else 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3025$as_echo "no" >&6; } 3026 SET_MAKE="MAKE=${MAKE-make}" 3027fi 3028 3029rm -rf .tst 2>/dev/null 3030mkdir .tst 2>/dev/null 3031if test -d .tst; then 3032 am__leading_dot=. 3033else 3034 am__leading_dot=_ 3035fi 3036rmdir .tst 2>/dev/null 3037 3038if test "`cd $srcdir && pwd`" != "`pwd`"; then 3039 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3040 # is not polluted with repeated "-I." 3041 am__isrc=' -I$(srcdir)' 3042 # test to see if srcdir already configured 3043 if test -f $srcdir/config.status; then 3044 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3045 fi 3046fi 3047 3048# test whether we have cygpath 3049if test -z "$CYGPATH_W"; then 3050 if (cygpath --version) >/dev/null 2>/dev/null; then 3051 CYGPATH_W='cygpath -w' 3052 else 3053 CYGPATH_W=echo 3054 fi 3055fi 3056 3057 3058# Define the identity of the package. 3059 PACKAGE='libevent' 3060 VERSION='2.1.5-beta' 3061 3062 3063cat >>confdefs.h <<_ACEOF 3064#define PACKAGE "$PACKAGE" 3065_ACEOF 3066 3067 3068cat >>confdefs.h <<_ACEOF 3069#define VERSION "$VERSION" 3070_ACEOF 3071 3072# Some tools Automake needs. 3073 3074ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3075 3076 3077AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3078 3079 3080AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3081 3082 3083AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3084 3085 3086MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3087 3088# We need awk for the "check" target. The system "awk" is bad on 3089# some platforms. 3090# Always define AMTAR for backward compatibility. 3091 3092AMTAR=${AMTAR-"${am_missing_run}tar"} 3093 3094am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3095 3096 3097 3098 3099 3100# Check whether --enable-silent-rules was given. 3101if test "${enable_silent_rules+set}" = set; then : 3102 enableval=$enable_silent_rules; 3103fi 3104 3105case $enable_silent_rules in 3106yes) AM_DEFAULT_VERBOSITY=0;; 3107no) AM_DEFAULT_VERBOSITY=1;; 3108*) AM_DEFAULT_VERBOSITY=0;; 3109esac 3110AM_BACKSLASH='\' 3111 3112ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in" 3113 3114 3115$as_echo "#define NUMERIC_VERSION 0x02010500" >>confdefs.h 3116 3117 3118if test "$prefix" = "NONE"; then 3119 prefix="/usr/local" 3120fi 3121 3122 3123# Make sure we can run config.sub. 3124$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3125 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3126 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3128$as_echo_n "checking build system type... " >&6; } 3129if ${ac_cv_build+:} false; then : 3130 $as_echo_n "(cached) " >&6 3131else 3132 ac_build_alias=$build_alias 3133test "x$ac_build_alias" = x && 3134 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3135test "x$ac_build_alias" = x && 3136 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3137ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3138 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3139 3140fi 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3142$as_echo "$ac_cv_build" >&6; } 3143case $ac_cv_build in 3144*-*-*) ;; 3145*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3146esac 3147build=$ac_cv_build 3148ac_save_IFS=$IFS; IFS='-' 3149set x $ac_cv_build 3150shift 3151build_cpu=$1 3152build_vendor=$2 3153shift; shift 3154# Remember, the first character of IFS is used to create $*, 3155# except with old shells: 3156build_os=$* 3157IFS=$ac_save_IFS 3158case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3159 3160 3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3162$as_echo_n "checking host system type... " >&6; } 3163if ${ac_cv_host+:} false; then : 3164 $as_echo_n "(cached) " >&6 3165else 3166 if test "x$host_alias" = x; then 3167 ac_cv_host=$ac_cv_build 3168else 3169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3170 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3171fi 3172 3173fi 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3175$as_echo "$ac_cv_host" >&6; } 3176case $ac_cv_host in 3177*-*-*) ;; 3178*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3179esac 3180host=$ac_cv_host 3181ac_save_IFS=$IFS; IFS='-' 3182set x $ac_cv_host 3183shift 3184host_cpu=$1 3185host_vendor=$2 3186shift; shift 3187# Remember, the first character of IFS is used to create $*, 3188# except with old shells: 3189host_os=$* 3190IFS=$ac_save_IFS 3191case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3192 3193 3194DEPDIR="${am__leading_dot}deps" 3195 3196ac_config_commands="$ac_config_commands depfiles" 3197 3198 3199am_make=${MAKE-make} 3200cat > confinc << 'END' 3201am__doit: 3202 @echo this is the am__doit target 3203.PHONY: am__doit 3204END 3205# If we don't find an include directive, just comment out the code. 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3207$as_echo_n "checking for style of include used by $am_make... " >&6; } 3208am__include="#" 3209am__quote= 3210_am_result=none 3211# First try GNU make style include. 3212echo "include confinc" > confmf 3213# Ignore all kinds of additional output from `make'. 3214case `$am_make -s -f confmf 2> /dev/null` in #( 3215*the\ am__doit\ target*) 3216 am__include=include 3217 am__quote= 3218 _am_result=GNU 3219 ;; 3220esac 3221# Now try BSD make style include. 3222if test "$am__include" = "#"; then 3223 echo '.include "confinc"' > confmf 3224 case `$am_make -s -f confmf 2> /dev/null` in #( 3225 *the\ am__doit\ target*) 3226 am__include=.include 3227 am__quote="\"" 3228 _am_result=BSD 3229 ;; 3230 esac 3231fi 3232 3233 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3235$as_echo "$_am_result" >&6; } 3236rm -f confinc confmf 3237 3238# Check whether --enable-dependency-tracking was given. 3239if test "${enable_dependency_tracking+set}" = set; then : 3240 enableval=$enable_dependency_tracking; 3241fi 3242 3243if test "x$enable_dependency_tracking" != xno; then 3244 am_depcomp="$ac_aux_dir/depcomp" 3245 AMDEPBACKSLASH='\' 3246fi 3247 if test "x$enable_dependency_tracking" != xno; then 3248 AMDEP_TRUE= 3249 AMDEP_FALSE='#' 3250else 3251 AMDEP_TRUE='#' 3252 AMDEP_FALSE= 3253fi 3254 3255 3256ac_ext=c 3257ac_cpp='$CPP $CPPFLAGS' 3258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3260ac_compiler_gnu=$ac_cv_c_compiler_gnu 3261if test -n "$ac_tool_prefix"; then 3262 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3263set dummy ${ac_tool_prefix}gcc; ac_word=$2 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3265$as_echo_n "checking for $ac_word... " >&6; } 3266if ${ac_cv_prog_CC+:} false; then : 3267 $as_echo_n "(cached) " >&6 3268else 3269 if test -n "$CC"; then 3270 ac_cv_prog_CC="$CC" # Let the user override the test. 3271else 3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3273for as_dir in $PATH 3274do 3275 IFS=$as_save_IFS 3276 test -z "$as_dir" && as_dir=. 3277 for ac_exec_ext in '' $ac_executable_extensions; do 3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3279 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3281 break 2 3282 fi 3283done 3284 done 3285IFS=$as_save_IFS 3286 3287fi 3288fi 3289CC=$ac_cv_prog_CC 3290if test -n "$CC"; then 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3292$as_echo "$CC" >&6; } 3293else 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3295$as_echo "no" >&6; } 3296fi 3297 3298 3299fi 3300if test -z "$ac_cv_prog_CC"; then 3301 ac_ct_CC=$CC 3302 # Extract the first word of "gcc", so it can be a program name with args. 3303set dummy gcc; ac_word=$2 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3305$as_echo_n "checking for $ac_word... " >&6; } 3306if ${ac_cv_prog_ac_ct_CC+:} false; then : 3307 $as_echo_n "(cached) " >&6 3308else 3309 if test -n "$ac_ct_CC"; then 3310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3311else 3312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3313for as_dir in $PATH 3314do 3315 IFS=$as_save_IFS 3316 test -z "$as_dir" && as_dir=. 3317 for ac_exec_ext in '' $ac_executable_extensions; do 3318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3319 ac_cv_prog_ac_ct_CC="gcc" 3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3321 break 2 3322 fi 3323done 3324 done 3325IFS=$as_save_IFS 3326 3327fi 3328fi 3329ac_ct_CC=$ac_cv_prog_ac_ct_CC 3330if test -n "$ac_ct_CC"; then 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3332$as_echo "$ac_ct_CC" >&6; } 3333else 3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3335$as_echo "no" >&6; } 3336fi 3337 3338 if test "x$ac_ct_CC" = x; then 3339 CC="" 3340 else 3341 case $cross_compiling:$ac_tool_warned in 3342yes:) 3343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3345ac_tool_warned=yes ;; 3346esac 3347 CC=$ac_ct_CC 3348 fi 3349else 3350 CC="$ac_cv_prog_CC" 3351fi 3352 3353if test -z "$CC"; then 3354 if test -n "$ac_tool_prefix"; then 3355 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3356set dummy ${ac_tool_prefix}cc; ac_word=$2 3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3358$as_echo_n "checking for $ac_word... " >&6; } 3359if ${ac_cv_prog_CC+:} false; then : 3360 $as_echo_n "(cached) " >&6 3361else 3362 if test -n "$CC"; then 3363 ac_cv_prog_CC="$CC" # Let the user override the test. 3364else 3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3366for as_dir in $PATH 3367do 3368 IFS=$as_save_IFS 3369 test -z "$as_dir" && as_dir=. 3370 for ac_exec_ext in '' $ac_executable_extensions; do 3371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3372 ac_cv_prog_CC="${ac_tool_prefix}cc" 3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3374 break 2 3375 fi 3376done 3377 done 3378IFS=$as_save_IFS 3379 3380fi 3381fi 3382CC=$ac_cv_prog_CC 3383if test -n "$CC"; then 3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3385$as_echo "$CC" >&6; } 3386else 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3388$as_echo "no" >&6; } 3389fi 3390 3391 3392 fi 3393fi 3394if test -z "$CC"; then 3395 # Extract the first word of "cc", so it can be a program name with args. 3396set dummy cc; ac_word=$2 3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3398$as_echo_n "checking for $ac_word... " >&6; } 3399if ${ac_cv_prog_CC+:} false; then : 3400 $as_echo_n "(cached) " >&6 3401else 3402 if test -n "$CC"; then 3403 ac_cv_prog_CC="$CC" # Let the user override the test. 3404else 3405 ac_prog_rejected=no 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3413 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3414 ac_prog_rejected=yes 3415 continue 3416 fi 3417 ac_cv_prog_CC="cc" 3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3419 break 2 3420 fi 3421done 3422 done 3423IFS=$as_save_IFS 3424 3425if test $ac_prog_rejected = yes; then 3426 # We found a bogon in the path, so make sure we never use it. 3427 set dummy $ac_cv_prog_CC 3428 shift 3429 if test $# != 0; then 3430 # We chose a different compiler from the bogus one. 3431 # However, it has the same basename, so the bogon will be chosen 3432 # first if we set CC to just the basename; use the full file name. 3433 shift 3434 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3435 fi 3436fi 3437fi 3438fi 3439CC=$ac_cv_prog_CC 3440if test -n "$CC"; then 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3442$as_echo "$CC" >&6; } 3443else 3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3445$as_echo "no" >&6; } 3446fi 3447 3448 3449fi 3450if test -z "$CC"; then 3451 if test -n "$ac_tool_prefix"; then 3452 for ac_prog in cl.exe 3453 do 3454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3455set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3457$as_echo_n "checking for $ac_word... " >&6; } 3458if ${ac_cv_prog_CC+:} false; then : 3459 $as_echo_n "(cached) " >&6 3460else 3461 if test -n "$CC"; then 3462 ac_cv_prog_CC="$CC" # Let the user override the test. 3463else 3464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3465for as_dir in $PATH 3466do 3467 IFS=$as_save_IFS 3468 test -z "$as_dir" && as_dir=. 3469 for ac_exec_ext in '' $ac_executable_extensions; do 3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3471 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3473 break 2 3474 fi 3475done 3476 done 3477IFS=$as_save_IFS 3478 3479fi 3480fi 3481CC=$ac_cv_prog_CC 3482if test -n "$CC"; then 3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3484$as_echo "$CC" >&6; } 3485else 3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3487$as_echo "no" >&6; } 3488fi 3489 3490 3491 test -n "$CC" && break 3492 done 3493fi 3494if test -z "$CC"; then 3495 ac_ct_CC=$CC 3496 for ac_prog in cl.exe 3497do 3498 # Extract the first word of "$ac_prog", so it can be a program name with args. 3499set dummy $ac_prog; ac_word=$2 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3501$as_echo_n "checking for $ac_word... " >&6; } 3502if ${ac_cv_prog_ac_ct_CC+:} false; then : 3503 $as_echo_n "(cached) " >&6 3504else 3505 if test -n "$ac_ct_CC"; then 3506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3507else 3508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3509for as_dir in $PATH 3510do 3511 IFS=$as_save_IFS 3512 test -z "$as_dir" && as_dir=. 3513 for ac_exec_ext in '' $ac_executable_extensions; do 3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3515 ac_cv_prog_ac_ct_CC="$ac_prog" 3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3517 break 2 3518 fi 3519done 3520 done 3521IFS=$as_save_IFS 3522 3523fi 3524fi 3525ac_ct_CC=$ac_cv_prog_ac_ct_CC 3526if test -n "$ac_ct_CC"; then 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3528$as_echo "$ac_ct_CC" >&6; } 3529else 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3531$as_echo "no" >&6; } 3532fi 3533 3534 3535 test -n "$ac_ct_CC" && break 3536done 3537 3538 if test "x$ac_ct_CC" = x; then 3539 CC="" 3540 else 3541 case $cross_compiling:$ac_tool_warned in 3542yes:) 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3545ac_tool_warned=yes ;; 3546esac 3547 CC=$ac_ct_CC 3548 fi 3549fi 3550 3551fi 3552 3553 3554test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3556as_fn_error $? "no acceptable C compiler found in \$PATH 3557See \`config.log' for more details" "$LINENO" 5; } 3558 3559# Provide some information about the compiler. 3560$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3561set X $ac_compile 3562ac_compiler=$2 3563for ac_option in --version -v -V -qversion; do 3564 { { ac_try="$ac_compiler $ac_option >&5" 3565case "(($ac_try" in 3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3567 *) ac_try_echo=$ac_try;; 3568esac 3569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3570$as_echo "$ac_try_echo"; } >&5 3571 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3572 ac_status=$? 3573 if test -s conftest.err; then 3574 sed '10a\ 3575... rest of stderr output deleted ... 3576 10q' conftest.err >conftest.er1 3577 cat conftest.er1 >&5 3578 fi 3579 rm -f conftest.er1 conftest.err 3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3581 test $ac_status = 0; } 3582done 3583 3584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3585/* end confdefs.h. */ 3586 3587int 3588main () 3589{ 3590 3591 ; 3592 return 0; 3593} 3594_ACEOF 3595ac_clean_files_save=$ac_clean_files 3596ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3597# Try to create an executable without -o first, disregard a.out. 3598# It will help us diagnose broken compilers, and finding out an intuition 3599# of exeext. 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3601$as_echo_n "checking whether the C compiler works... " >&6; } 3602ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3603 3604# The possible output files: 3605ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3606 3607ac_rmfiles= 3608for ac_file in $ac_files 3609do 3610 case $ac_file in 3611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3612 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3613 esac 3614done 3615rm -f $ac_rmfiles 3616 3617if { { ac_try="$ac_link_default" 3618case "(($ac_try" in 3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3620 *) ac_try_echo=$ac_try;; 3621esac 3622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3623$as_echo "$ac_try_echo"; } >&5 3624 (eval "$ac_link_default") 2>&5 3625 ac_status=$? 3626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3627 test $ac_status = 0; }; then : 3628 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3629# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3630# in a Makefile. We should not override ac_cv_exeext if it was cached, 3631# so that the user can short-circuit this test for compilers unknown to 3632# Autoconf. 3633for ac_file in $ac_files '' 3634do 3635 test -f "$ac_file" || continue 3636 case $ac_file in 3637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3638 ;; 3639 [ab].out ) 3640 # We found the default executable, but exeext='' is most 3641 # certainly right. 3642 break;; 3643 *.* ) 3644 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3645 then :; else 3646 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3647 fi 3648 # We set ac_cv_exeext here because the later test for it is not 3649 # safe: cross compilers may not add the suffix if given an `-o' 3650 # argument, so we may need to know it at that point already. 3651 # Even if this section looks crufty: it has the advantage of 3652 # actually working. 3653 break;; 3654 * ) 3655 break;; 3656 esac 3657done 3658test "$ac_cv_exeext" = no && ac_cv_exeext= 3659 3660else 3661 ac_file='' 3662fi 3663if test -z "$ac_file"; then : 3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3665$as_echo "no" >&6; } 3666$as_echo "$as_me: failed program was:" >&5 3667sed 's/^/| /' conftest.$ac_ext >&5 3668 3669{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3671as_fn_error 77 "C compiler cannot create executables 3672See \`config.log' for more details" "$LINENO" 5; } 3673else 3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3675$as_echo "yes" >&6; } 3676fi 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3678$as_echo_n "checking for C compiler default output file name... " >&6; } 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3680$as_echo "$ac_file" >&6; } 3681ac_exeext=$ac_cv_exeext 3682 3683rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3684ac_clean_files=$ac_clean_files_save 3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3686$as_echo_n "checking for suffix of executables... " >&6; } 3687if { { ac_try="$ac_link" 3688case "(($ac_try" in 3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3690 *) ac_try_echo=$ac_try;; 3691esac 3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3693$as_echo "$ac_try_echo"; } >&5 3694 (eval "$ac_link") 2>&5 3695 ac_status=$? 3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3697 test $ac_status = 0; }; then : 3698 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3699# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3700# work properly (i.e., refer to `conftest.exe'), while it won't with 3701# `rm'. 3702for ac_file in conftest.exe conftest conftest.*; do 3703 test -f "$ac_file" || continue 3704 case $ac_file in 3705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3706 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3707 break;; 3708 * ) break;; 3709 esac 3710done 3711else 3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3714as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3715See \`config.log' for more details" "$LINENO" 5; } 3716fi 3717rm -f conftest conftest$ac_cv_exeext 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3719$as_echo "$ac_cv_exeext" >&6; } 3720 3721rm -f conftest.$ac_ext 3722EXEEXT=$ac_cv_exeext 3723ac_exeext=$EXEEXT 3724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3725/* end confdefs.h. */ 3726#include <stdio.h> 3727int 3728main () 3729{ 3730FILE *f = fopen ("conftest.out", "w"); 3731 return ferror (f) || fclose (f) != 0; 3732 3733 ; 3734 return 0; 3735} 3736_ACEOF 3737ac_clean_files="$ac_clean_files conftest.out" 3738# Check that the compiler produces executables we can run. If not, either 3739# the compiler is broken, or we cross compile. 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3741$as_echo_n "checking whether we are cross compiling... " >&6; } 3742if test "$cross_compiling" != yes; then 3743 { { ac_try="$ac_link" 3744case "(($ac_try" in 3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3746 *) ac_try_echo=$ac_try;; 3747esac 3748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3749$as_echo "$ac_try_echo"; } >&5 3750 (eval "$ac_link") 2>&5 3751 ac_status=$? 3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3753 test $ac_status = 0; } 3754 if { ac_try='./conftest$ac_cv_exeext' 3755 { { case "(($ac_try" in 3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3757 *) ac_try_echo=$ac_try;; 3758esac 3759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3760$as_echo "$ac_try_echo"; } >&5 3761 (eval "$ac_try") 2>&5 3762 ac_status=$? 3763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3764 test $ac_status = 0; }; }; then 3765 cross_compiling=no 3766 else 3767 if test "$cross_compiling" = maybe; then 3768 cross_compiling=yes 3769 else 3770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3772as_fn_error $? "cannot run C compiled programs. 3773If you meant to cross compile, use \`--host'. 3774See \`config.log' for more details" "$LINENO" 5; } 3775 fi 3776 fi 3777fi 3778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3779$as_echo "$cross_compiling" >&6; } 3780 3781rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3782ac_clean_files=$ac_clean_files_save 3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3784$as_echo_n "checking for suffix of object files... " >&6; } 3785if ${ac_cv_objext+:} false; then : 3786 $as_echo_n "(cached) " >&6 3787else 3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3789/* end confdefs.h. */ 3790 3791int 3792main () 3793{ 3794 3795 ; 3796 return 0; 3797} 3798_ACEOF 3799rm -f conftest.o conftest.obj 3800if { { ac_try="$ac_compile" 3801case "(($ac_try" in 3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3803 *) ac_try_echo=$ac_try;; 3804esac 3805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3806$as_echo "$ac_try_echo"; } >&5 3807 (eval "$ac_compile") 2>&5 3808 ac_status=$? 3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3810 test $ac_status = 0; }; then : 3811 for ac_file in conftest.o conftest.obj conftest.*; do 3812 test -f "$ac_file" || continue; 3813 case $ac_file in 3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3815 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3816 break;; 3817 esac 3818done 3819else 3820 $as_echo "$as_me: failed program was:" >&5 3821sed 's/^/| /' conftest.$ac_ext >&5 3822 3823{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3825as_fn_error $? "cannot compute suffix of object files: cannot compile 3826See \`config.log' for more details" "$LINENO" 5; } 3827fi 3828rm -f conftest.$ac_cv_objext conftest.$ac_ext 3829fi 3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3831$as_echo "$ac_cv_objext" >&6; } 3832OBJEXT=$ac_cv_objext 3833ac_objext=$OBJEXT 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3835$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3836if ${ac_cv_c_compiler_gnu+:} false; then : 3837 $as_echo_n "(cached) " >&6 3838else 3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3840/* end confdefs.h. */ 3841 3842int 3843main () 3844{ 3845#ifndef __GNUC__ 3846 choke me 3847#endif 3848 3849 ; 3850 return 0; 3851} 3852_ACEOF 3853if ac_fn_c_try_compile "$LINENO"; then : 3854 ac_compiler_gnu=yes 3855else 3856 ac_compiler_gnu=no 3857fi 3858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3859ac_cv_c_compiler_gnu=$ac_compiler_gnu 3860 3861fi 3862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3863$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3864if test $ac_compiler_gnu = yes; then 3865 GCC=yes 3866else 3867 GCC= 3868fi 3869ac_test_CFLAGS=${CFLAGS+set} 3870ac_save_CFLAGS=$CFLAGS 3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3872$as_echo_n "checking whether $CC accepts -g... " >&6; } 3873if ${ac_cv_prog_cc_g+:} false; then : 3874 $as_echo_n "(cached) " >&6 3875else 3876 ac_save_c_werror_flag=$ac_c_werror_flag 3877 ac_c_werror_flag=yes 3878 ac_cv_prog_cc_g=no 3879 CFLAGS="-g" 3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3881/* end confdefs.h. */ 3882 3883int 3884main () 3885{ 3886 3887 ; 3888 return 0; 3889} 3890_ACEOF 3891if ac_fn_c_try_compile "$LINENO"; then : 3892 ac_cv_prog_cc_g=yes 3893else 3894 CFLAGS="" 3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3896/* end confdefs.h. */ 3897 3898int 3899main () 3900{ 3901 3902 ; 3903 return 0; 3904} 3905_ACEOF 3906if ac_fn_c_try_compile "$LINENO"; then : 3907 3908else 3909 ac_c_werror_flag=$ac_save_c_werror_flag 3910 CFLAGS="-g" 3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3912/* end confdefs.h. */ 3913 3914int 3915main () 3916{ 3917 3918 ; 3919 return 0; 3920} 3921_ACEOF 3922if ac_fn_c_try_compile "$LINENO"; then : 3923 ac_cv_prog_cc_g=yes 3924fi 3925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3926fi 3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3928fi 3929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3930 ac_c_werror_flag=$ac_save_c_werror_flag 3931fi 3932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3933$as_echo "$ac_cv_prog_cc_g" >&6; } 3934if test "$ac_test_CFLAGS" = set; then 3935 CFLAGS=$ac_save_CFLAGS 3936elif test $ac_cv_prog_cc_g = yes; then 3937 if test "$GCC" = yes; then 3938 CFLAGS="-g -O2" 3939 else 3940 CFLAGS="-g" 3941 fi 3942else 3943 if test "$GCC" = yes; then 3944 CFLAGS="-O2" 3945 else 3946 CFLAGS= 3947 fi 3948fi 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3950$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3951if ${ac_cv_prog_cc_c89+:} false; then : 3952 $as_echo_n "(cached) " >&6 3953else 3954 ac_cv_prog_cc_c89=no 3955ac_save_CC=$CC 3956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3957/* end confdefs.h. */ 3958#include <stdarg.h> 3959#include <stdio.h> 3960#include <sys/types.h> 3961#include <sys/stat.h> 3962/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3963struct buf { int x; }; 3964FILE * (*rcsopen) (struct buf *, struct stat *, int); 3965static char *e (p, i) 3966 char **p; 3967 int i; 3968{ 3969 return p[i]; 3970} 3971static char *f (char * (*g) (char **, int), char **p, ...) 3972{ 3973 char *s; 3974 va_list v; 3975 va_start (v,p); 3976 s = g (p, va_arg (v,int)); 3977 va_end (v); 3978 return s; 3979} 3980 3981/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3982 function prototypes and stuff, but not '\xHH' hex character constants. 3983 These don't provoke an error unfortunately, instead are silently treated 3984 as 'x'. The following induces an error, until -std is added to get 3985 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3986 array size at least. It's necessary to write '\x00'==0 to get something 3987 that's true only with -std. */ 3988int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3989 3990/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3991 inside strings and character constants. */ 3992#define FOO(x) 'x' 3993int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3994 3995int test (int i, double x); 3996struct s1 {int (*f) (int a);}; 3997struct s2 {int (*f) (double a);}; 3998int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3999int argc; 4000char **argv; 4001int 4002main () 4003{ 4004return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4005 ; 4006 return 0; 4007} 4008_ACEOF 4009for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4010 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4011do 4012 CC="$ac_save_CC $ac_arg" 4013 if ac_fn_c_try_compile "$LINENO"; then : 4014 ac_cv_prog_cc_c89=$ac_arg 4015fi 4016rm -f core conftest.err conftest.$ac_objext 4017 test "x$ac_cv_prog_cc_c89" != "xno" && break 4018done 4019rm -f conftest.$ac_ext 4020CC=$ac_save_CC 4021 4022fi 4023# AC_CACHE_VAL 4024case "x$ac_cv_prog_cc_c89" in 4025 x) 4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4027$as_echo "none needed" >&6; } ;; 4028 xno) 4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4030$as_echo "unsupported" >&6; } ;; 4031 *) 4032 CC="$CC $ac_cv_prog_cc_c89" 4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4034$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4035esac 4036if test "x$ac_cv_prog_cc_c89" != xno; then : 4037 4038fi 4039 4040ac_ext=c 4041ac_cpp='$CPP $CPPFLAGS' 4042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4044ac_compiler_gnu=$ac_cv_c_compiler_gnu 4045 4046depcc="$CC" am_compiler_list= 4047 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4049$as_echo_n "checking dependency style of $depcc... " >&6; } 4050if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4051 $as_echo_n "(cached) " >&6 4052else 4053 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4054 # We make a subdir and do the tests there. Otherwise we can end up 4055 # making bogus files that we don't know about and never remove. For 4056 # instance it was reported that on HP-UX the gcc test will end up 4057 # making a dummy file named `D' -- because `-MD' means `put the output 4058 # in D'. 4059 mkdir conftest.dir 4060 # Copy depcomp to subdir because otherwise we won't find it if we're 4061 # using a relative directory. 4062 cp "$am_depcomp" conftest.dir 4063 cd conftest.dir 4064 # We will build objects and dependencies in a subdirectory because 4065 # it helps to detect inapplicable dependency modes. For instance 4066 # both Tru64's cc and ICC support -MD to output dependencies as a 4067 # side effect of compilation, but ICC will put the dependencies in 4068 # the current directory while Tru64 will put them in the object 4069 # directory. 4070 mkdir sub 4071 4072 am_cv_CC_dependencies_compiler_type=none 4073 if test "$am_compiler_list" = ""; then 4074 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4075 fi 4076 am__universal=false 4077 case " $depcc " in #( 4078 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4079 esac 4080 4081 for depmode in $am_compiler_list; do 4082 # Setup a source with many dependencies, because some compilers 4083 # like to wrap large dependency lists on column 80 (with \), and 4084 # we should not choose a depcomp mode which is confused by this. 4085 # 4086 # We need to recreate these files for each test, as the compiler may 4087 # overwrite some of them when testing with obscure command lines. 4088 # This happens at least with the AIX C compiler. 4089 : > sub/conftest.c 4090 for i in 1 2 3 4 5 6; do 4091 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4092 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4093 # Solaris 8's {/usr,}/bin/sh. 4094 touch sub/conftst$i.h 4095 done 4096 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4097 4098 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4099 # mode. It turns out that the SunPro C++ compiler does not properly 4100 # handle `-M -o', and we need to detect this. Also, some Intel 4101 # versions had trouble with output in subdirs 4102 am__obj=sub/conftest.${OBJEXT-o} 4103 am__minus_obj="-o $am__obj" 4104 case $depmode in 4105 gcc) 4106 # This depmode causes a compiler race in universal mode. 4107 test "$am__universal" = false || continue 4108 ;; 4109 nosideeffect) 4110 # after this tag, mechanisms are not by side-effect, so they'll 4111 # only be used when explicitly requested 4112 if test "x$enable_dependency_tracking" = xyes; then 4113 continue 4114 else 4115 break 4116 fi 4117 ;; 4118 msvisualcpp | msvcmsys) 4119 # This compiler won't grok `-c -o', but also, the minuso test has 4120 # not run yet. These depmodes are late enough in the game, and 4121 # so weak that their functioning should not be impacted. 4122 am__obj=conftest.${OBJEXT-o} 4123 am__minus_obj= 4124 ;; 4125 none) break ;; 4126 esac 4127 if depmode=$depmode \ 4128 source=sub/conftest.c object=$am__obj \ 4129 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4130 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4131 >/dev/null 2>conftest.err && 4132 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4133 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4134 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4135 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4136 # icc doesn't choke on unknown options, it will just issue warnings 4137 # or remarks (even with -Werror). So we grep stderr for any message 4138 # that says an option was ignored or not supported. 4139 # When given -MP, icc 7.0 and 7.1 complain thusly: 4140 # icc: Command line warning: ignoring option '-M'; no argument required 4141 # The diagnosis changed in icc 8.0: 4142 # icc: Command line remark: option '-MP' not supported 4143 if (grep 'ignoring option' conftest.err || 4144 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4145 am_cv_CC_dependencies_compiler_type=$depmode 4146 break 4147 fi 4148 fi 4149 done 4150 4151 cd .. 4152 rm -rf conftest.dir 4153else 4154 am_cv_CC_dependencies_compiler_type=none 4155fi 4156 4157fi 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4159$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4160CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4161 4162 if 4163 test "x$enable_dependency_tracking" != xno \ 4164 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4165 am__fastdepCC_TRUE= 4166 am__fastdepCC_FALSE='#' 4167else 4168 am__fastdepCC_TRUE='#' 4169 am__fastdepCC_FALSE= 4170fi 4171 4172 4173 4174ac_ext=c 4175ac_cpp='$CPP $CPPFLAGS' 4176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4178ac_compiler_gnu=$ac_cv_c_compiler_gnu 4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4180$as_echo_n "checking how to run the C preprocessor... " >&6; } 4181# On Suns, sometimes $CPP names a directory. 4182if test -n "$CPP" && test -d "$CPP"; then 4183 CPP= 4184fi 4185if test -z "$CPP"; then 4186 if ${ac_cv_prog_CPP+:} false; then : 4187 $as_echo_n "(cached) " >&6 4188else 4189 # Double quotes because CPP needs to be expanded 4190 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4191 do 4192 ac_preproc_ok=false 4193for ac_c_preproc_warn_flag in '' yes 4194do 4195 # Use a header file that comes with gcc, so configuring glibc 4196 # with a fresh cross-compiler works. 4197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4198 # <limits.h> exists even on freestanding compilers. 4199 # On the NeXT, cc -E runs the code through the compiler's parser, 4200 # not just through cpp. "Syntax error" is here to catch this case. 4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4202/* end confdefs.h. */ 4203#ifdef __STDC__ 4204# include <limits.h> 4205#else 4206# include <assert.h> 4207#endif 4208 Syntax error 4209_ACEOF 4210if ac_fn_c_try_cpp "$LINENO"; then : 4211 4212else 4213 # Broken: fails on valid input. 4214continue 4215fi 4216rm -f conftest.err conftest.i conftest.$ac_ext 4217 4218 # OK, works on sane cases. Now check whether nonexistent headers 4219 # can be detected and how. 4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4221/* end confdefs.h. */ 4222#include <ac_nonexistent.h> 4223_ACEOF 4224if ac_fn_c_try_cpp "$LINENO"; then : 4225 # Broken: success on invalid input. 4226continue 4227else 4228 # Passes both tests. 4229ac_preproc_ok=: 4230break 4231fi 4232rm -f conftest.err conftest.i conftest.$ac_ext 4233 4234done 4235# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4236rm -f conftest.i conftest.err conftest.$ac_ext 4237if $ac_preproc_ok; then : 4238 break 4239fi 4240 4241 done 4242 ac_cv_prog_CPP=$CPP 4243 4244fi 4245 CPP=$ac_cv_prog_CPP 4246else 4247 ac_cv_prog_CPP=$CPP 4248fi 4249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4250$as_echo "$CPP" >&6; } 4251ac_preproc_ok=false 4252for ac_c_preproc_warn_flag in '' yes 4253do 4254 # Use a header file that comes with gcc, so configuring glibc 4255 # with a fresh cross-compiler works. 4256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4257 # <limits.h> exists even on freestanding compilers. 4258 # On the NeXT, cc -E runs the code through the compiler's parser, 4259 # not just through cpp. "Syntax error" is here to catch this case. 4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4261/* end confdefs.h. */ 4262#ifdef __STDC__ 4263# include <limits.h> 4264#else 4265# include <assert.h> 4266#endif 4267 Syntax error 4268_ACEOF 4269if ac_fn_c_try_cpp "$LINENO"; then : 4270 4271else 4272 # Broken: fails on valid input. 4273continue 4274fi 4275rm -f conftest.err conftest.i conftest.$ac_ext 4276 4277 # OK, works on sane cases. Now check whether nonexistent headers 4278 # can be detected and how. 4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4280/* end confdefs.h. */ 4281#include <ac_nonexistent.h> 4282_ACEOF 4283if ac_fn_c_try_cpp "$LINENO"; then : 4284 # Broken: success on invalid input. 4285continue 4286else 4287 # Passes both tests. 4288ac_preproc_ok=: 4289break 4290fi 4291rm -f conftest.err conftest.i conftest.$ac_ext 4292 4293done 4294# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4295rm -f conftest.i conftest.err conftest.$ac_ext 4296if $ac_preproc_ok; then : 4297 4298else 4299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4301as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4302See \`config.log' for more details" "$LINENO" 5; } 4303fi 4304 4305ac_ext=c 4306ac_cpp='$CPP $CPPFLAGS' 4307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4309ac_compiler_gnu=$ac_cv_c_compiler_gnu 4310 4311 4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4313$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4314if ${ac_cv_path_GREP+:} false; then : 4315 $as_echo_n "(cached) " >&6 4316else 4317 if test -z "$GREP"; then 4318 ac_path_GREP_found=false 4319 # Loop through the user's path and test for each of PROGNAME-LIST 4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4321for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4322do 4323 IFS=$as_save_IFS 4324 test -z "$as_dir" && as_dir=. 4325 for ac_prog in grep ggrep; do 4326 for ac_exec_ext in '' $ac_executable_extensions; do 4327 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4328 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4329# Check for GNU ac_path_GREP and select it if it is found. 4330 # Check for GNU $ac_path_GREP 4331case `"$ac_path_GREP" --version 2>&1` in 4332*GNU*) 4333 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4334*) 4335 ac_count=0 4336 $as_echo_n 0123456789 >"conftest.in" 4337 while : 4338 do 4339 cat "conftest.in" "conftest.in" >"conftest.tmp" 4340 mv "conftest.tmp" "conftest.in" 4341 cp "conftest.in" "conftest.nl" 4342 $as_echo 'GREP' >> "conftest.nl" 4343 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4345 as_fn_arith $ac_count + 1 && ac_count=$as_val 4346 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4347 # Best one so far, save it but keep looking for a better one 4348 ac_cv_path_GREP="$ac_path_GREP" 4349 ac_path_GREP_max=$ac_count 4350 fi 4351 # 10*(2^10) chars as input seems more than enough 4352 test $ac_count -gt 10 && break 4353 done 4354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4355esac 4356 4357 $ac_path_GREP_found && break 3 4358 done 4359 done 4360 done 4361IFS=$as_save_IFS 4362 if test -z "$ac_cv_path_GREP"; then 4363 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4364 fi 4365else 4366 ac_cv_path_GREP=$GREP 4367fi 4368 4369fi 4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4371$as_echo "$ac_cv_path_GREP" >&6; } 4372 GREP="$ac_cv_path_GREP" 4373 4374 4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4376$as_echo_n "checking for egrep... " >&6; } 4377if ${ac_cv_path_EGREP+:} false; then : 4378 $as_echo_n "(cached) " >&6 4379else 4380 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4381 then ac_cv_path_EGREP="$GREP -E" 4382 else 4383 if test -z "$EGREP"; then 4384 ac_path_EGREP_found=false 4385 # Loop through the user's path and test for each of PROGNAME-LIST 4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4387for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4388do 4389 IFS=$as_save_IFS 4390 test -z "$as_dir" && as_dir=. 4391 for ac_prog in egrep; do 4392 for ac_exec_ext in '' $ac_executable_extensions; do 4393 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4394 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4395# Check for GNU ac_path_EGREP and select it if it is found. 4396 # Check for GNU $ac_path_EGREP 4397case `"$ac_path_EGREP" --version 2>&1` in 4398*GNU*) 4399 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4400*) 4401 ac_count=0 4402 $as_echo_n 0123456789 >"conftest.in" 4403 while : 4404 do 4405 cat "conftest.in" "conftest.in" >"conftest.tmp" 4406 mv "conftest.tmp" "conftest.in" 4407 cp "conftest.in" "conftest.nl" 4408 $as_echo 'EGREP' >> "conftest.nl" 4409 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4411 as_fn_arith $ac_count + 1 && ac_count=$as_val 4412 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4413 # Best one so far, save it but keep looking for a better one 4414 ac_cv_path_EGREP="$ac_path_EGREP" 4415 ac_path_EGREP_max=$ac_count 4416 fi 4417 # 10*(2^10) chars as input seems more than enough 4418 test $ac_count -gt 10 && break 4419 done 4420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4421esac 4422 4423 $ac_path_EGREP_found && break 3 4424 done 4425 done 4426 done 4427IFS=$as_save_IFS 4428 if test -z "$ac_cv_path_EGREP"; then 4429 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4430 fi 4431else 4432 ac_cv_path_EGREP=$EGREP 4433fi 4434 4435 fi 4436fi 4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4438$as_echo "$ac_cv_path_EGREP" >&6; } 4439 EGREP="$ac_cv_path_EGREP" 4440 4441 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4443$as_echo_n "checking for ANSI C header files... " >&6; } 4444if ${ac_cv_header_stdc+:} false; then : 4445 $as_echo_n "(cached) " >&6 4446else 4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4448/* end confdefs.h. */ 4449#include <stdlib.h> 4450#include <stdarg.h> 4451#include <string.h> 4452#include <float.h> 4453 4454int 4455main () 4456{ 4457 4458 ; 4459 return 0; 4460} 4461_ACEOF 4462if ac_fn_c_try_compile "$LINENO"; then : 4463 ac_cv_header_stdc=yes 4464else 4465 ac_cv_header_stdc=no 4466fi 4467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4468 4469if test $ac_cv_header_stdc = yes; then 4470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4472/* end confdefs.h. */ 4473#include <string.h> 4474 4475_ACEOF 4476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4477 $EGREP "memchr" >/dev/null 2>&1; then : 4478 4479else 4480 ac_cv_header_stdc=no 4481fi 4482rm -f conftest* 4483 4484fi 4485 4486if test $ac_cv_header_stdc = yes; then 4487 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4489/* end confdefs.h. */ 4490#include <stdlib.h> 4491 4492_ACEOF 4493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4494 $EGREP "free" >/dev/null 2>&1; then : 4495 4496else 4497 ac_cv_header_stdc=no 4498fi 4499rm -f conftest* 4500 4501fi 4502 4503if test $ac_cv_header_stdc = yes; then 4504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4505 if test "$cross_compiling" = yes; then : 4506 : 4507else 4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4509/* end confdefs.h. */ 4510#include <ctype.h> 4511#include <stdlib.h> 4512#if ((' ' & 0x0FF) == 0x020) 4513# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4514# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4515#else 4516# define ISLOWER(c) \ 4517 (('a' <= (c) && (c) <= 'i') \ 4518 || ('j' <= (c) && (c) <= 'r') \ 4519 || ('s' <= (c) && (c) <= 'z')) 4520# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4521#endif 4522 4523#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4524int 4525main () 4526{ 4527 int i; 4528 for (i = 0; i < 256; i++) 4529 if (XOR (islower (i), ISLOWER (i)) 4530 || toupper (i) != TOUPPER (i)) 4531 return 2; 4532 return 0; 4533} 4534_ACEOF 4535if ac_fn_c_try_run "$LINENO"; then : 4536 4537else 4538 ac_cv_header_stdc=no 4539fi 4540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4541 conftest.$ac_objext conftest.beam conftest.$ac_ext 4542fi 4543 4544fi 4545fi 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4547$as_echo "$ac_cv_header_stdc" >&6; } 4548if test $ac_cv_header_stdc = yes; then 4549 4550$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4551 4552fi 4553 4554# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4555for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4556 inttypes.h stdint.h unistd.h 4557do : 4558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4559ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4560" 4561if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4562 cat >>confdefs.h <<_ACEOF 4563#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4564_ACEOF 4565 4566fi 4567 4568done 4569 4570 4571 4572 4573 4574 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4575if test "x$ac_cv_header_minix_config_h" = xyes; then : 4576 MINIX=yes 4577else 4578 MINIX= 4579fi 4580 4581 4582 if test "$MINIX" = yes; then 4583 4584$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4585 4586 4587$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4588 4589 4590$as_echo "#define _MINIX 1" >>confdefs.h 4591 4592 fi 4593 4594 case "$host_os" in 4595 hpux*) 4596 4597$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 4598 4599 ;; 4600 esac 4601 4602 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4604$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4605if ${ac_cv_safe_to_define___extensions__+:} false; then : 4606 $as_echo_n "(cached) " >&6 4607else 4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4609/* end confdefs.h. */ 4610 4611# define __EXTENSIONS__ 1 4612 $ac_includes_default 4613int 4614main () 4615{ 4616 4617 ; 4618 return 0; 4619} 4620_ACEOF 4621if ac_fn_c_try_compile "$LINENO"; then : 4622 ac_cv_safe_to_define___extensions__=yes 4623else 4624 ac_cv_safe_to_define___extensions__=no 4625fi 4626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4627fi 4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4629$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4630 test $ac_cv_safe_to_define___extensions__ = yes && 4631 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4632 4633 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4634 4635 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4636 4637 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4638 4639 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4640 4641 4642 4643 4644 4645 4646 4647#case "$host_os" in 4648# 4649# osf5*) 4650# CFLAGS="$CFLAGS -D_OSF_SOURCE" 4651# ;; 4652#esac 4653 4654if test "x$CC" != xcc; then 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4656$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4657else 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4659$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4660fi 4661set dummy $CC; ac_cc=`$as_echo "$2" | 4662 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4663if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 4664 $as_echo_n "(cached) " >&6 4665else 4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4667/* end confdefs.h. */ 4668 4669int 4670main () 4671{ 4672 4673 ; 4674 return 0; 4675} 4676_ACEOF 4677# Make sure it works both with $CC and with simple cc. 4678# We do the test twice because some compilers refuse to overwrite an 4679# existing .o file with -o, though they will create one. 4680ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4681rm -f conftest2.* 4682if { { case "(($ac_try" in 4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4684 *) ac_try_echo=$ac_try;; 4685esac 4686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4687$as_echo "$ac_try_echo"; } >&5 4688 (eval "$ac_try") 2>&5 4689 ac_status=$? 4690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4691 test $ac_status = 0; } && 4692 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4694 *) ac_try_echo=$ac_try;; 4695esac 4696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4697$as_echo "$ac_try_echo"; } >&5 4698 (eval "$ac_try") 2>&5 4699 ac_status=$? 4700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4701 test $ac_status = 0; }; 4702then 4703 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4704 if test "x$CC" != xcc; then 4705 # Test first that cc exists at all. 4706 if { ac_try='cc -c conftest.$ac_ext >&5' 4707 { { case "(($ac_try" in 4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4709 *) ac_try_echo=$ac_try;; 4710esac 4711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4712$as_echo "$ac_try_echo"; } >&5 4713 (eval "$ac_try") 2>&5 4714 ac_status=$? 4715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4716 test $ac_status = 0; }; }; then 4717 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4718 rm -f conftest2.* 4719 if { { case "(($ac_try" in 4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4721 *) ac_try_echo=$ac_try;; 4722esac 4723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4724$as_echo "$ac_try_echo"; } >&5 4725 (eval "$ac_try") 2>&5 4726 ac_status=$? 4727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4728 test $ac_status = 0; } && 4729 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4731 *) ac_try_echo=$ac_try;; 4732esac 4733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4734$as_echo "$ac_try_echo"; } >&5 4735 (eval "$ac_try") 2>&5 4736 ac_status=$? 4737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4738 test $ac_status = 0; }; 4739 then 4740 # cc works too. 4741 : 4742 else 4743 # cc exists but doesn't like -o. 4744 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4745 fi 4746 fi 4747 fi 4748else 4749 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4750fi 4751rm -f core conftest* 4752 4753fi 4754if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4756$as_echo "yes" >&6; } 4757else 4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4759$as_echo "no" >&6; } 4760 4761$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 4762 4763fi 4764 4765# FIXME: we rely on the cache variable name because 4766# there is no other way. 4767set dummy $CC 4768am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4769eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 4770if test "$am_t" != yes; then 4771 # Losing compiler, so override with the script. 4772 # FIXME: It is wrong to rewrite CC. 4773 # But if we don't then we get into trouble of one sort or another. 4774 # A longer-term fix would be to have automake use am__CC in this case, 4775 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4776 CC="$am_aux_dir/compile $CC" 4777fi 4778 4779 4780 4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4782$as_echo_n "checking whether ln -s works... " >&6; } 4783LN_S=$as_ln_s 4784if test "$LN_S" = "ln -s"; then 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4786$as_echo "yes" >&6; } 4787else 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4789$as_echo "no, using $LN_S" >&6; } 4790fi 4791 4792# AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE 4793 4794# AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older 4795# versions 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4797$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4798if ${ac_cv_path_SED+:} false; then : 4799 $as_echo_n "(cached) " >&6 4800else 4801 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4802 for ac_i in 1 2 3 4 5 6 7; do 4803 ac_script="$ac_script$as_nl$ac_script" 4804 done 4805 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4806 { ac_script=; unset ac_script;} 4807 if test -z "$SED"; then 4808 ac_path_SED_found=false 4809 # Loop through the user's path and test for each of PROGNAME-LIST 4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4811for as_dir in $PATH 4812do 4813 IFS=$as_save_IFS 4814 test -z "$as_dir" && as_dir=. 4815 for ac_prog in sed gsed; do 4816 for ac_exec_ext in '' $ac_executable_extensions; do 4817 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4818 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4819# Check for GNU ac_path_SED and select it if it is found. 4820 # Check for GNU $ac_path_SED 4821case `"$ac_path_SED" --version 2>&1` in 4822*GNU*) 4823 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4824*) 4825 ac_count=0 4826 $as_echo_n 0123456789 >"conftest.in" 4827 while : 4828 do 4829 cat "conftest.in" "conftest.in" >"conftest.tmp" 4830 mv "conftest.tmp" "conftest.in" 4831 cp "conftest.in" "conftest.nl" 4832 $as_echo '' >> "conftest.nl" 4833 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4835 as_fn_arith $ac_count + 1 && ac_count=$as_val 4836 if test $ac_count -gt ${ac_path_SED_max-0}; then 4837 # Best one so far, save it but keep looking for a better one 4838 ac_cv_path_SED="$ac_path_SED" 4839 ac_path_SED_max=$ac_count 4840 fi 4841 # 10*(2^10) chars as input seems more than enough 4842 test $ac_count -gt 10 && break 4843 done 4844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4845esac 4846 4847 $ac_path_SED_found && break 3 4848 done 4849 done 4850 done 4851IFS=$as_save_IFS 4852 if test -z "$ac_cv_path_SED"; then 4853 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4854 fi 4855else 4856 ac_cv_path_SED=$SED 4857fi 4858 4859fi 4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4861$as_echo "$ac_cv_path_SED" >&6; } 4862 SED="$ac_cv_path_SED" 4863 rm -f conftest.sed 4864 4865 4866if test $ac_cv_c_compiler_gnu = yes; then 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 4868$as_echo_n "checking whether $CC needs -traditional... " >&6; } 4869if ${ac_cv_prog_gcc_traditional+:} false; then : 4870 $as_echo_n "(cached) " >&6 4871else 4872 ac_pattern="Autoconf.*'x'" 4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4874/* end confdefs.h. */ 4875#include <sgtty.h> 4876Autoconf TIOCGETP 4877_ACEOF 4878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4879 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4880 ac_cv_prog_gcc_traditional=yes 4881else 4882 ac_cv_prog_gcc_traditional=no 4883fi 4884rm -f conftest* 4885 4886 4887 if test $ac_cv_prog_gcc_traditional = no; then 4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4889/* end confdefs.h. */ 4890#include <termio.h> 4891Autoconf TCGETA 4892_ACEOF 4893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4894 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4895 ac_cv_prog_gcc_traditional=yes 4896fi 4897rm -f conftest* 4898 4899 fi 4900fi 4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 4902$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 4903 if test $ac_cv_prog_gcc_traditional = yes; then 4904 CC="$CC -traditional" 4905 fi 4906fi 4907 4908 4909# We need to test for at least gcc 2.95 here, because older versions don't 4910# have -fno-strict-aliasing 4911cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4912/* end confdefs.h. */ 4913 4914int 4915main () 4916{ 4917 4918#if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95) 4919#error 4920#endif 4921 ; 4922 return 0; 4923} 4924_ACEOF 4925if ac_fn_c_try_compile "$LINENO"; then : 4926 have_gcc295=yes 4927else 4928 have_gcc295=no 4929fi 4930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4931 4932if test "$GCC" = "yes" ; then 4933 # Enable many gcc warnings by default... 4934 CFLAGS="$CFLAGS -Wall" 4935 # And disable the strict-aliasing optimization, since it breaks 4936 # our sockaddr-handling code in strange ways. 4937 if test x$have_gcc295 = xyes; then 4938 CFLAGS="$CFLAGS -fno-strict-aliasing" 4939 fi 4940fi 4941 4942# OS X Lion started deprecating the system openssl. Let's just disable 4943# all deprecation warnings on OS X. 4944case "$host_os" in 4945 4946 darwin*) 4947 CFLAGS="$CFLAGS -Wno-deprecated-declarations" 4948 ;; 4949esac 4950 4951# Check whether --enable-gcc-warnings was given. 4952if test "${enable_gcc_warnings+set}" = set; then : 4953 enableval=$enable_gcc_warnings; 4954fi 4955 4956 4957# Check whether --enable-gcc-hardening was given. 4958if test "${enable_gcc_hardening+set}" = set; then : 4959 enableval=$enable_gcc_hardening; if test x$enableval = xyes; then 4960 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all" 4961 CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector" 4962 CFLAGS="$CFLAGS --param ssp-buffer-size=1" 4963fi 4964fi 4965 4966 4967# Check whether --enable-thread-support was given. 4968if test "${enable_thread_support+set}" = set; then : 4969 enableval=$enable_thread_support; 4970else 4971 enable_thread_support=yes 4972fi 4973 4974# Check whether --enable-malloc-replacement was given. 4975if test "${enable_malloc_replacement+set}" = set; then : 4976 enableval=$enable_malloc_replacement; 4977else 4978 enable_malloc_replacement=yes 4979fi 4980 4981# Check whether --enable-openssl was given. 4982if test "${enable_openssl+set}" = set; then : 4983 enableval=$enable_openssl; 4984else 4985 enable_openssl=yes 4986fi 4987 4988# Check whether --enable-debug-mode was given. 4989if test "${enable_debug_mode+set}" = set; then : 4990 enableval=$enable_debug_mode; 4991else 4992 enable_debug_mode=yes 4993fi 4994 4995# Check whether --enable-libevent-install was given. 4996if test "${enable_libevent_install+set}" = set; then : 4997 enableval=$enable_libevent_install; 4998else 4999 enable_libevent_install=yes 5000fi 5001 5002# Check whether --enable-libevent-regress was given. 5003if test "${enable_libevent_regress+set}" = set; then : 5004 enableval=$enable_libevent_regress; 5005else 5006 enable_libevent_regress=yes 5007fi 5008 5009# Check whether --enable-samples was given. 5010if test "${enable_samples+set}" = set; then : 5011 enableval=$enable_samples; 5012else 5013 enable_samples=yes 5014fi 5015 5016# Check whether --enable-function-sections was given. 5017if test "${enable_function_sections+set}" = set; then : 5018 enableval=$enable_function_sections; 5019else 5020 enable_function_sections=no 5021fi 5022 5023# Check whether --enable-verbose-debug was given. 5024if test "${enable_verbose_debug+set}" = set; then : 5025 enableval=$enable_verbose_debug; 5026else 5027 enable_verbose_debug=no 5028fi 5029 5030 5031 5032case `pwd` in 5033 *\ * | *\ *) 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5035$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5036esac 5037 5038 5039 5040macro_version='2.4' 5041macro_revision='1.3293' 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055ltmain="$ac_aux_dir/ltmain.sh" 5056 5057# Backslashify metacharacters that are still active within 5058# double-quoted strings. 5059sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5060 5061# Same as above, but do not quote variable references. 5062double_quote_subst='s/\(["`\\]\)/\\\1/g' 5063 5064# Sed substitution to delay expansion of an escaped shell variable in a 5065# double_quote_subst'ed string. 5066delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5067 5068# Sed substitution to delay expansion of an escaped single quote. 5069delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5070 5071# Sed substitution to avoid accidental globbing in evaled expressions 5072no_glob_subst='s/\*/\\\*/g' 5073 5074ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5075ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5076ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5077 5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5079$as_echo_n "checking how to print strings... " >&6; } 5080# Test print first, because it will be a builtin if present. 5081if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5082 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5083 ECHO='print -r --' 5084elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5085 ECHO='printf %s\n' 5086else 5087 # Use this function as a fallback that always works. 5088 func_fallback_echo () 5089 { 5090 eval 'cat <<_LTECHO_EOF 5091$1 5092_LTECHO_EOF' 5093 } 5094 ECHO='func_fallback_echo' 5095fi 5096 5097# func_echo_all arg... 5098# Invoke $ECHO with all args, space-separated. 5099func_echo_all () 5100{ 5101 $ECHO "" 5102} 5103 5104case "$ECHO" in 5105 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5106$as_echo "printf" >&6; } ;; 5107 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5108$as_echo "print -r" >&6; } ;; 5109 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5110$as_echo "cat" >&6; } ;; 5111esac 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5127$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5128if ${ac_cv_path_SED+:} false; then : 5129 $as_echo_n "(cached) " >&6 5130else 5131 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5132 for ac_i in 1 2 3 4 5 6 7; do 5133 ac_script="$ac_script$as_nl$ac_script" 5134 done 5135 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5136 { ac_script=; unset ac_script;} 5137 if test -z "$SED"; then 5138 ac_path_SED_found=false 5139 # Loop through the user's path and test for each of PROGNAME-LIST 5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5141for as_dir in $PATH 5142do 5143 IFS=$as_save_IFS 5144 test -z "$as_dir" && as_dir=. 5145 for ac_prog in sed gsed; do 5146 for ac_exec_ext in '' $ac_executable_extensions; do 5147 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5148 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5149# Check for GNU ac_path_SED and select it if it is found. 5150 # Check for GNU $ac_path_SED 5151case `"$ac_path_SED" --version 2>&1` in 5152*GNU*) 5153 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5154*) 5155 ac_count=0 5156 $as_echo_n 0123456789 >"conftest.in" 5157 while : 5158 do 5159 cat "conftest.in" "conftest.in" >"conftest.tmp" 5160 mv "conftest.tmp" "conftest.in" 5161 cp "conftest.in" "conftest.nl" 5162 $as_echo '' >> "conftest.nl" 5163 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5165 as_fn_arith $ac_count + 1 && ac_count=$as_val 5166 if test $ac_count -gt ${ac_path_SED_max-0}; then 5167 # Best one so far, save it but keep looking for a better one 5168 ac_cv_path_SED="$ac_path_SED" 5169 ac_path_SED_max=$ac_count 5170 fi 5171 # 10*(2^10) chars as input seems more than enough 5172 test $ac_count -gt 10 && break 5173 done 5174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5175esac 5176 5177 $ac_path_SED_found && break 3 5178 done 5179 done 5180 done 5181IFS=$as_save_IFS 5182 if test -z "$ac_cv_path_SED"; then 5183 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5184 fi 5185else 5186 ac_cv_path_SED=$SED 5187fi 5188 5189fi 5190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5191$as_echo "$ac_cv_path_SED" >&6; } 5192 SED="$ac_cv_path_SED" 5193 rm -f conftest.sed 5194 5195test -z "$SED" && SED=sed 5196Xsed="$SED -e 1s/^X//" 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5209$as_echo_n "checking for fgrep... " >&6; } 5210if ${ac_cv_path_FGREP+:} false; then : 5211 $as_echo_n "(cached) " >&6 5212else 5213 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5214 then ac_cv_path_FGREP="$GREP -F" 5215 else 5216 if test -z "$FGREP"; then 5217 ac_path_FGREP_found=false 5218 # Loop through the user's path and test for each of PROGNAME-LIST 5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5220for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5221do 5222 IFS=$as_save_IFS 5223 test -z "$as_dir" && as_dir=. 5224 for ac_prog in fgrep; do 5225 for ac_exec_ext in '' $ac_executable_extensions; do 5226 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5227 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5228# Check for GNU ac_path_FGREP and select it if it is found. 5229 # Check for GNU $ac_path_FGREP 5230case `"$ac_path_FGREP" --version 2>&1` in 5231*GNU*) 5232 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5233*) 5234 ac_count=0 5235 $as_echo_n 0123456789 >"conftest.in" 5236 while : 5237 do 5238 cat "conftest.in" "conftest.in" >"conftest.tmp" 5239 mv "conftest.tmp" "conftest.in" 5240 cp "conftest.in" "conftest.nl" 5241 $as_echo 'FGREP' >> "conftest.nl" 5242 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5244 as_fn_arith $ac_count + 1 && ac_count=$as_val 5245 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5246 # Best one so far, save it but keep looking for a better one 5247 ac_cv_path_FGREP="$ac_path_FGREP" 5248 ac_path_FGREP_max=$ac_count 5249 fi 5250 # 10*(2^10) chars as input seems more than enough 5251 test $ac_count -gt 10 && break 5252 done 5253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5254esac 5255 5256 $ac_path_FGREP_found && break 3 5257 done 5258 done 5259 done 5260IFS=$as_save_IFS 5261 if test -z "$ac_cv_path_FGREP"; then 5262 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5263 fi 5264else 5265 ac_cv_path_FGREP=$FGREP 5266fi 5267 5268 fi 5269fi 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5271$as_echo "$ac_cv_path_FGREP" >&6; } 5272 FGREP="$ac_cv_path_FGREP" 5273 5274 5275test -z "$GREP" && GREP=grep 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295# Check whether --with-gnu-ld was given. 5296if test "${with_gnu_ld+set}" = set; then : 5297 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5298else 5299 with_gnu_ld=no 5300fi 5301 5302ac_prog=ld 5303if test "$GCC" = yes; then 5304 # Check if gcc -print-prog-name=ld gives a path. 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5306$as_echo_n "checking for ld used by $CC... " >&6; } 5307 case $host in 5308 *-*-mingw*) 5309 # gcc leaves a trailing carriage return which upsets mingw 5310 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5311 *) 5312 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5313 esac 5314 case $ac_prog in 5315 # Accept absolute paths. 5316 [\\/]* | ?:[\\/]*) 5317 re_direlt='/[^/][^/]*/\.\./' 5318 # Canonicalize the pathname of ld 5319 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5320 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5321 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5322 done 5323 test -z "$LD" && LD="$ac_prog" 5324 ;; 5325 "") 5326 # If it fails, then pretend we aren't using GCC. 5327 ac_prog=ld 5328 ;; 5329 *) 5330 # If it is relative, then search for the first ld in PATH. 5331 with_gnu_ld=unknown 5332 ;; 5333 esac 5334elif test "$with_gnu_ld" = yes; then 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5336$as_echo_n "checking for GNU ld... " >&6; } 5337else 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5339$as_echo_n "checking for non-GNU ld... " >&6; } 5340fi 5341if ${lt_cv_path_LD+:} false; then : 5342 $as_echo_n "(cached) " >&6 5343else 5344 if test -z "$LD"; then 5345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5346 for ac_dir in $PATH; do 5347 IFS="$lt_save_ifs" 5348 test -z "$ac_dir" && ac_dir=. 5349 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5350 lt_cv_path_LD="$ac_dir/$ac_prog" 5351 # Check to see if the program is GNU ld. I'd rather use --version, 5352 # but apparently some variants of GNU ld only accept -v. 5353 # Break only if it was the GNU/non-GNU ld that we prefer. 5354 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5355 *GNU* | *'with BFD'*) 5356 test "$with_gnu_ld" != no && break 5357 ;; 5358 *) 5359 test "$with_gnu_ld" != yes && break 5360 ;; 5361 esac 5362 fi 5363 done 5364 IFS="$lt_save_ifs" 5365else 5366 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5367fi 5368fi 5369 5370LD="$lt_cv_path_LD" 5371if test -n "$LD"; then 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5373$as_echo "$LD" >&6; } 5374else 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5376$as_echo "no" >&6; } 5377fi 5378test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5380$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5381if ${lt_cv_prog_gnu_ld+:} false; then : 5382 $as_echo_n "(cached) " >&6 5383else 5384 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5385case `$LD -v 2>&1 </dev/null` in 5386*GNU* | *'with BFD'*) 5387 lt_cv_prog_gnu_ld=yes 5388 ;; 5389*) 5390 lt_cv_prog_gnu_ld=no 5391 ;; 5392esac 5393fi 5394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5395$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5396with_gnu_ld=$lt_cv_prog_gnu_ld 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5407$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5408if ${lt_cv_path_NM+:} false; then : 5409 $as_echo_n "(cached) " >&6 5410else 5411 if test -n "$NM"; then 5412 # Let the user override the test. 5413 lt_cv_path_NM="$NM" 5414else 5415 lt_nm_to_check="${ac_tool_prefix}nm" 5416 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5417 lt_nm_to_check="$lt_nm_to_check nm" 5418 fi 5419 for lt_tmp_nm in $lt_nm_to_check; do 5420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5421 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5422 IFS="$lt_save_ifs" 5423 test -z "$ac_dir" && ac_dir=. 5424 tmp_nm="$ac_dir/$lt_tmp_nm" 5425 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5426 # Check to see if the nm accepts a BSD-compat flag. 5427 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5428 # nm: unknown option "B" ignored 5429 # Tru64's nm complains that /dev/null is an invalid object file 5430 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5431 */dev/null* | *'Invalid file or object type'*) 5432 lt_cv_path_NM="$tmp_nm -B" 5433 break 5434 ;; 5435 *) 5436 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5437 */dev/null*) 5438 lt_cv_path_NM="$tmp_nm -p" 5439 break 5440 ;; 5441 *) 5442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5443 continue # so that we can try to find one that supports BSD flags 5444 ;; 5445 esac 5446 ;; 5447 esac 5448 fi 5449 done 5450 IFS="$lt_save_ifs" 5451 done 5452 : ${lt_cv_path_NM=no} 5453fi 5454fi 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5456$as_echo "$lt_cv_path_NM" >&6; } 5457if test "$lt_cv_path_NM" != "no"; then 5458 NM="$lt_cv_path_NM" 5459else 5460 # Didn't find any BSD compatible name lister, look for dumpbin. 5461 if test -n "$DUMPBIN"; then : 5462 # Let the user override the test. 5463 else 5464 if test -n "$ac_tool_prefix"; then 5465 for ac_prog in dumpbin "link -dump" 5466 do 5467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5468set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5470$as_echo_n "checking for $ac_word... " >&6; } 5471if ${ac_cv_prog_DUMPBIN+:} false; then : 5472 $as_echo_n "(cached) " >&6 5473else 5474 if test -n "$DUMPBIN"; then 5475 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5476else 5477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5478for as_dir in $PATH 5479do 5480 IFS=$as_save_IFS 5481 test -z "$as_dir" && as_dir=. 5482 for ac_exec_ext in '' $ac_executable_extensions; do 5483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5484 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5486 break 2 5487 fi 5488done 5489 done 5490IFS=$as_save_IFS 5491 5492fi 5493fi 5494DUMPBIN=$ac_cv_prog_DUMPBIN 5495if test -n "$DUMPBIN"; then 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5497$as_echo "$DUMPBIN" >&6; } 5498else 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5500$as_echo "no" >&6; } 5501fi 5502 5503 5504 test -n "$DUMPBIN" && break 5505 done 5506fi 5507if test -z "$DUMPBIN"; then 5508 ac_ct_DUMPBIN=$DUMPBIN 5509 for ac_prog in dumpbin "link -dump" 5510do 5511 # Extract the first word of "$ac_prog", so it can be a program name with args. 5512set dummy $ac_prog; ac_word=$2 5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5514$as_echo_n "checking for $ac_word... " >&6; } 5515if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5516 $as_echo_n "(cached) " >&6 5517else 5518 if test -n "$ac_ct_DUMPBIN"; then 5519 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5520else 5521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5522for as_dir in $PATH 5523do 5524 IFS=$as_save_IFS 5525 test -z "$as_dir" && as_dir=. 5526 for ac_exec_ext in '' $ac_executable_extensions; do 5527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5528 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5530 break 2 5531 fi 5532done 5533 done 5534IFS=$as_save_IFS 5535 5536fi 5537fi 5538ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5539if test -n "$ac_ct_DUMPBIN"; then 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5541$as_echo "$ac_ct_DUMPBIN" >&6; } 5542else 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5544$as_echo "no" >&6; } 5545fi 5546 5547 5548 test -n "$ac_ct_DUMPBIN" && break 5549done 5550 5551 if test "x$ac_ct_DUMPBIN" = x; then 5552 DUMPBIN=":" 5553 else 5554 case $cross_compiling:$ac_tool_warned in 5555yes:) 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5558ac_tool_warned=yes ;; 5559esac 5560 DUMPBIN=$ac_ct_DUMPBIN 5561 fi 5562fi 5563 5564 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5565 *COFF*) 5566 DUMPBIN="$DUMPBIN -symbols" 5567 ;; 5568 *) 5569 DUMPBIN=: 5570 ;; 5571 esac 5572 fi 5573 5574 if test "$DUMPBIN" != ":"; then 5575 NM="$DUMPBIN" 5576 fi 5577fi 5578test -z "$NM" && NM=nm 5579 5580 5581 5582 5583 5584 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5586$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5587if ${lt_cv_nm_interface+:} false; then : 5588 $as_echo_n "(cached) " >&6 5589else 5590 lt_cv_nm_interface="BSD nm" 5591 echo "int some_variable = 0;" > conftest.$ac_ext 5592 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5593 (eval "$ac_compile" 2>conftest.err) 5594 cat conftest.err >&5 5595 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5596 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5597 cat conftest.err >&5 5598 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5599 cat conftest.out >&5 5600 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5601 lt_cv_nm_interface="MS dumpbin" 5602 fi 5603 rm -f conftest* 5604fi 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5606$as_echo "$lt_cv_nm_interface" >&6; } 5607 5608# find the maximum length of command line arguments 5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5610$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5611if ${lt_cv_sys_max_cmd_len+:} false; then : 5612 $as_echo_n "(cached) " >&6 5613else 5614 i=0 5615 teststring="ABCD" 5616 5617 case $build_os in 5618 msdosdjgpp*) 5619 # On DJGPP, this test can blow up pretty badly due to problems in libc 5620 # (any single argument exceeding 2000 bytes causes a buffer overrun 5621 # during glob expansion). Even if it were fixed, the result of this 5622 # check would be larger than it should be. 5623 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5624 ;; 5625 5626 gnu*) 5627 # Under GNU Hurd, this test is not required because there is 5628 # no limit to the length of command line arguments. 5629 # Libtool will interpret -1 as no limit whatsoever 5630 lt_cv_sys_max_cmd_len=-1; 5631 ;; 5632 5633 cygwin* | mingw* | cegcc*) 5634 # On Win9x/ME, this test blows up -- it succeeds, but takes 5635 # about 5 minutes as the teststring grows exponentially. 5636 # Worse, since 9x/ME are not pre-emptively multitasking, 5637 # you end up with a "frozen" computer, even though with patience 5638 # the test eventually succeeds (with a max line length of 256k). 5639 # Instead, let's just punt: use the minimum linelength reported by 5640 # all of the supported platforms: 8192 (on NT/2K/XP). 5641 lt_cv_sys_max_cmd_len=8192; 5642 ;; 5643 5644 mint*) 5645 # On MiNT this can take a long time and run out of memory. 5646 lt_cv_sys_max_cmd_len=8192; 5647 ;; 5648 5649 amigaos*) 5650 # On AmigaOS with pdksh, this test takes hours, literally. 5651 # So we just punt and use a minimum line length of 8192. 5652 lt_cv_sys_max_cmd_len=8192; 5653 ;; 5654 5655 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5656 # This has been around since 386BSD, at least. Likely further. 5657 if test -x /sbin/sysctl; then 5658 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5659 elif test -x /usr/sbin/sysctl; then 5660 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5661 else 5662 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5663 fi 5664 # And add a safety zone 5665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5667 ;; 5668 5669 interix*) 5670 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5671 lt_cv_sys_max_cmd_len=196608 5672 ;; 5673 5674 osf*) 5675 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5676 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5677 # nice to cause kernel panics so lets avoid the loop below. 5678 # First set a reasonable default. 5679 lt_cv_sys_max_cmd_len=16384 5680 # 5681 if test -x /sbin/sysconfig; then 5682 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5683 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5684 esac 5685 fi 5686 ;; 5687 sco3.2v5*) 5688 lt_cv_sys_max_cmd_len=102400 5689 ;; 5690 sysv5* | sco5v6* | sysv4.2uw2*) 5691 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5692 if test -n "$kargmax"; then 5693 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5694 else 5695 lt_cv_sys_max_cmd_len=32768 5696 fi 5697 ;; 5698 *) 5699 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5700 if test -n "$lt_cv_sys_max_cmd_len"; then 5701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5703 else 5704 # Make teststring a little bigger before we do anything with it. 5705 # a 1K string should be a reasonable start. 5706 for i in 1 2 3 4 5 6 7 8 ; do 5707 teststring=$teststring$teststring 5708 done 5709 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5710 # If test is not a shell built-in, we'll probably end up computing a 5711 # maximum length that is only half of the actual maximum length, but 5712 # we can't tell. 5713 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5714 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5715 test $i != 17 # 1/2 MB should be enough 5716 do 5717 i=`expr $i + 1` 5718 teststring=$teststring$teststring 5719 done 5720 # Only check the string length outside the loop. 5721 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5722 teststring= 5723 # Add a significant safety factor because C++ compilers can tack on 5724 # massive amounts of additional arguments before passing them to the 5725 # linker. It appears as though 1/2 is a usable value. 5726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5727 fi 5728 ;; 5729 esac 5730 5731fi 5732 5733if test -n $lt_cv_sys_max_cmd_len ; then 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5735$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5736else 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5738$as_echo "none" >&6; } 5739fi 5740max_cmd_len=$lt_cv_sys_max_cmd_len 5741 5742 5743 5744 5745 5746 5747: ${CP="cp -f"} 5748: ${MV="mv -f"} 5749: ${RM="rm -f"} 5750 5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5752$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5753# Try some XSI features 5754xsi_shell=no 5755( _lt_dummy="a/b/c" 5756 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5757 = c,a/b,b/c, \ 5758 && eval 'test $(( 1 + 1 )) -eq 2 \ 5759 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5760 && xsi_shell=yes 5761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5762$as_echo "$xsi_shell" >&6; } 5763 5764 5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5766$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5767lt_shell_append=no 5768( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5769 >/dev/null 2>&1 \ 5770 && lt_shell_append=yes 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5772$as_echo "$lt_shell_append" >&6; } 5773 5774 5775if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5776 lt_unset=unset 5777else 5778 lt_unset=false 5779fi 5780 5781 5782 5783 5784 5785# test EBCDIC or ASCII 5786case `echo X|tr X '\101'` in 5787 A) # ASCII based system 5788 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5789 lt_SP2NL='tr \040 \012' 5790 lt_NL2SP='tr \015\012 \040\040' 5791 ;; 5792 *) # EBCDIC based system 5793 lt_SP2NL='tr \100 \n' 5794 lt_NL2SP='tr \r\n \100\100' 5795 ;; 5796esac 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5807$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5808if ${lt_cv_to_host_file_cmd+:} false; then : 5809 $as_echo_n "(cached) " >&6 5810else 5811 case $host in 5812 *-*-mingw* ) 5813 case $build in 5814 *-*-mingw* ) # actually msys 5815 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5816 ;; 5817 *-*-cygwin* ) 5818 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5819 ;; 5820 * ) # otherwise, assume *nix 5821 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5822 ;; 5823 esac 5824 ;; 5825 *-*-cygwin* ) 5826 case $build in 5827 *-*-mingw* ) # actually msys 5828 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5829 ;; 5830 *-*-cygwin* ) 5831 lt_cv_to_host_file_cmd=func_convert_file_noop 5832 ;; 5833 * ) # otherwise, assume *nix 5834 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5835 ;; 5836 esac 5837 ;; 5838 * ) # unhandled hosts (and "normal" native builds) 5839 lt_cv_to_host_file_cmd=func_convert_file_noop 5840 ;; 5841esac 5842 5843fi 5844 5845to_host_file_cmd=$lt_cv_to_host_file_cmd 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5847$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5848 5849 5850 5851 5852 5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5854$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5855if ${lt_cv_to_tool_file_cmd+:} false; then : 5856 $as_echo_n "(cached) " >&6 5857else 5858 #assume ordinary cross tools, or native build. 5859lt_cv_to_tool_file_cmd=func_convert_file_noop 5860case $host in 5861 *-*-mingw* ) 5862 case $build in 5863 *-*-mingw* ) # actually msys 5864 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5865 ;; 5866 esac 5867 ;; 5868esac 5869 5870fi 5871 5872to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5874$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5875 5876 5877 5878 5879 5880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5881$as_echo_n "checking for $LD option to reload object files... " >&6; } 5882if ${lt_cv_ld_reload_flag+:} false; then : 5883 $as_echo_n "(cached) " >&6 5884else 5885 lt_cv_ld_reload_flag='-r' 5886fi 5887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5888$as_echo "$lt_cv_ld_reload_flag" >&6; } 5889reload_flag=$lt_cv_ld_reload_flag 5890case $reload_flag in 5891"" | " "*) ;; 5892*) reload_flag=" $reload_flag" ;; 5893esac 5894reload_cmds='$LD$reload_flag -o $output$reload_objs' 5895case $host_os in 5896 cygwin* | mingw* | pw32* | cegcc*) 5897 if test "$GCC" != yes; then 5898 reload_cmds=false 5899 fi 5900 ;; 5901 darwin*) 5902 if test "$GCC" = yes; then 5903 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5904 else 5905 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5906 fi 5907 ;; 5908esac 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918if test -n "$ac_tool_prefix"; then 5919 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5920set dummy ${ac_tool_prefix}objdump; ac_word=$2 5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5922$as_echo_n "checking for $ac_word... " >&6; } 5923if ${ac_cv_prog_OBJDUMP+:} false; then : 5924 $as_echo_n "(cached) " >&6 5925else 5926 if test -n "$OBJDUMP"; then 5927 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5928else 5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5930for as_dir in $PATH 5931do 5932 IFS=$as_save_IFS 5933 test -z "$as_dir" && as_dir=. 5934 for ac_exec_ext in '' $ac_executable_extensions; do 5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5936 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5938 break 2 5939 fi 5940done 5941 done 5942IFS=$as_save_IFS 5943 5944fi 5945fi 5946OBJDUMP=$ac_cv_prog_OBJDUMP 5947if test -n "$OBJDUMP"; then 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5949$as_echo "$OBJDUMP" >&6; } 5950else 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5952$as_echo "no" >&6; } 5953fi 5954 5955 5956fi 5957if test -z "$ac_cv_prog_OBJDUMP"; then 5958 ac_ct_OBJDUMP=$OBJDUMP 5959 # Extract the first word of "objdump", so it can be a program name with args. 5960set dummy objdump; ac_word=$2 5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5962$as_echo_n "checking for $ac_word... " >&6; } 5963if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5964 $as_echo_n "(cached) " >&6 5965else 5966 if test -n "$ac_ct_OBJDUMP"; then 5967 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5968else 5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5970for as_dir in $PATH 5971do 5972 IFS=$as_save_IFS 5973 test -z "$as_dir" && as_dir=. 5974 for ac_exec_ext in '' $ac_executable_extensions; do 5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5976 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5978 break 2 5979 fi 5980done 5981 done 5982IFS=$as_save_IFS 5983 5984fi 5985fi 5986ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5987if test -n "$ac_ct_OBJDUMP"; then 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5989$as_echo "$ac_ct_OBJDUMP" >&6; } 5990else 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5992$as_echo "no" >&6; } 5993fi 5994 5995 if test "x$ac_ct_OBJDUMP" = x; then 5996 OBJDUMP="false" 5997 else 5998 case $cross_compiling:$ac_tool_warned in 5999yes:) 6000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6002ac_tool_warned=yes ;; 6003esac 6004 OBJDUMP=$ac_ct_OBJDUMP 6005 fi 6006else 6007 OBJDUMP="$ac_cv_prog_OBJDUMP" 6008fi 6009 6010test -z "$OBJDUMP" && OBJDUMP=objdump 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6021$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6022if ${lt_cv_deplibs_check_method+:} false; then : 6023 $as_echo_n "(cached) " >&6 6024else 6025 lt_cv_file_magic_cmd='$MAGIC_CMD' 6026lt_cv_file_magic_test_file= 6027lt_cv_deplibs_check_method='unknown' 6028# Need to set the preceding variable on all platforms that support 6029# interlibrary dependencies. 6030# 'none' -- dependencies not supported. 6031# `unknown' -- same as none, but documents that we really don't know. 6032# 'pass_all' -- all dependencies passed with no checks. 6033# 'test_compile' -- check by making test program. 6034# 'file_magic [[regex]]' -- check by looking for files in library path 6035# which responds to the $file_magic_cmd with a given extended regex. 6036# If you have `file' or equivalent on your system and you're not sure 6037# whether `pass_all' will *always* work, you probably want this one. 6038 6039case $host_os in 6040aix[4-9]*) 6041 lt_cv_deplibs_check_method=pass_all 6042 ;; 6043 6044beos*) 6045 lt_cv_deplibs_check_method=pass_all 6046 ;; 6047 6048bsdi[45]*) 6049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6050 lt_cv_file_magic_cmd='/usr/bin/file -L' 6051 lt_cv_file_magic_test_file=/shlib/libc.so 6052 ;; 6053 6054cygwin*) 6055 # func_win32_libid is a shell function defined in ltmain.sh 6056 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6057 lt_cv_file_magic_cmd='func_win32_libid' 6058 ;; 6059 6060mingw* | pw32*) 6061 # Base MSYS/MinGW do not provide the 'file' command needed by 6062 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6063 # unless we find 'file', for example because we are cross-compiling. 6064 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6065 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6066 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6067 lt_cv_file_magic_cmd='func_win32_libid' 6068 else 6069 # Keep this pattern in sync with the one in func_win32_libid. 6070 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6071 lt_cv_file_magic_cmd='$OBJDUMP -f' 6072 fi 6073 ;; 6074 6075cegcc*) 6076 # use the weaker test based on 'objdump'. See mingw*. 6077 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6078 lt_cv_file_magic_cmd='$OBJDUMP -f' 6079 ;; 6080 6081darwin* | rhapsody*) 6082 lt_cv_deplibs_check_method=pass_all 6083 ;; 6084 6085freebsd* | dragonfly*) 6086 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6087 case $host_cpu in 6088 i*86 ) 6089 # Not sure whether the presence of OpenBSD here was a mistake. 6090 # Let's accept both of them until this is cleared up. 6091 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6092 lt_cv_file_magic_cmd=/usr/bin/file 6093 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6094 ;; 6095 esac 6096 else 6097 lt_cv_deplibs_check_method=pass_all 6098 fi 6099 ;; 6100 6101gnu*) 6102 lt_cv_deplibs_check_method=pass_all 6103 ;; 6104 6105haiku*) 6106 lt_cv_deplibs_check_method=pass_all 6107 ;; 6108 6109hpux10.20* | hpux11*) 6110 lt_cv_file_magic_cmd=/usr/bin/file 6111 case $host_cpu in 6112 ia64*) 6113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6114 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6115 ;; 6116 hppa*64*) 6117 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]' 6118 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6119 ;; 6120 *) 6121 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6122 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6123 ;; 6124 esac 6125 ;; 6126 6127interix[3-9]*) 6128 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6130 ;; 6131 6132irix5* | irix6* | nonstopux*) 6133 case $LD in 6134 *-32|*"-32 ") libmagic=32-bit;; 6135 *-n32|*"-n32 ") libmagic=N32;; 6136 *-64|*"-64 ") libmagic=64-bit;; 6137 *) libmagic=never-match;; 6138 esac 6139 lt_cv_deplibs_check_method=pass_all 6140 ;; 6141 6142# This must be Linux ELF. 6143linux* | k*bsd*-gnu | kopensolaris*-gnu) 6144 lt_cv_deplibs_check_method=pass_all 6145 ;; 6146 6147netbsd*) 6148 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6150 else 6151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6152 fi 6153 ;; 6154 6155newos6*) 6156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6157 lt_cv_file_magic_cmd=/usr/bin/file 6158 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6159 ;; 6160 6161*nto* | *qnx*) 6162 lt_cv_deplibs_check_method=pass_all 6163 ;; 6164 6165openbsd*) 6166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6168 else 6169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6170 fi 6171 ;; 6172 6173osf3* | osf4* | osf5*) 6174 lt_cv_deplibs_check_method=pass_all 6175 ;; 6176 6177rdos*) 6178 lt_cv_deplibs_check_method=pass_all 6179 ;; 6180 6181solaris*) 6182 lt_cv_deplibs_check_method=pass_all 6183 ;; 6184 6185sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6186 lt_cv_deplibs_check_method=pass_all 6187 ;; 6188 6189sysv4 | sysv4.3*) 6190 case $host_vendor in 6191 motorola) 6192 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]' 6193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6194 ;; 6195 ncr) 6196 lt_cv_deplibs_check_method=pass_all 6197 ;; 6198 sequent) 6199 lt_cv_file_magic_cmd='/bin/file' 6200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6201 ;; 6202 sni) 6203 lt_cv_file_magic_cmd='/bin/file' 6204 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6205 lt_cv_file_magic_test_file=/lib/libc.so 6206 ;; 6207 siemens) 6208 lt_cv_deplibs_check_method=pass_all 6209 ;; 6210 pc) 6211 lt_cv_deplibs_check_method=pass_all 6212 ;; 6213 esac 6214 ;; 6215 6216tpf*) 6217 lt_cv_deplibs_check_method=pass_all 6218 ;; 6219esac 6220 6221fi 6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6223$as_echo "$lt_cv_deplibs_check_method" >&6; } 6224 6225file_magic_glob= 6226want_nocaseglob=no 6227if test "$build" = "$host"; then 6228 case $host_os in 6229 mingw* | pw32*) 6230 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6231 want_nocaseglob=yes 6232 else 6233 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6234 fi 6235 ;; 6236 esac 6237fi 6238 6239file_magic_cmd=$lt_cv_file_magic_cmd 6240deplibs_check_method=$lt_cv_deplibs_check_method 6241test -z "$deplibs_check_method" && deplibs_check_method=unknown 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264if test -n "$ac_tool_prefix"; then 6265 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6266set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6268$as_echo_n "checking for $ac_word... " >&6; } 6269if ${ac_cv_prog_DLLTOOL+:} false; then : 6270 $as_echo_n "(cached) " >&6 6271else 6272 if test -n "$DLLTOOL"; then 6273 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6274else 6275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6276for as_dir in $PATH 6277do 6278 IFS=$as_save_IFS 6279 test -z "$as_dir" && as_dir=. 6280 for ac_exec_ext in '' $ac_executable_extensions; do 6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6282 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6284 break 2 6285 fi 6286done 6287 done 6288IFS=$as_save_IFS 6289 6290fi 6291fi 6292DLLTOOL=$ac_cv_prog_DLLTOOL 6293if test -n "$DLLTOOL"; then 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6295$as_echo "$DLLTOOL" >&6; } 6296else 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6298$as_echo "no" >&6; } 6299fi 6300 6301 6302fi 6303if test -z "$ac_cv_prog_DLLTOOL"; then 6304 ac_ct_DLLTOOL=$DLLTOOL 6305 # Extract the first word of "dlltool", so it can be a program name with args. 6306set dummy dlltool; ac_word=$2 6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6308$as_echo_n "checking for $ac_word... " >&6; } 6309if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6310 $as_echo_n "(cached) " >&6 6311else 6312 if test -n "$ac_ct_DLLTOOL"; then 6313 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6314else 6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6316for as_dir in $PATH 6317do 6318 IFS=$as_save_IFS 6319 test -z "$as_dir" && as_dir=. 6320 for ac_exec_ext in '' $ac_executable_extensions; do 6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6322 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6324 break 2 6325 fi 6326done 6327 done 6328IFS=$as_save_IFS 6329 6330fi 6331fi 6332ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6333if test -n "$ac_ct_DLLTOOL"; then 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6335$as_echo "$ac_ct_DLLTOOL" >&6; } 6336else 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6338$as_echo "no" >&6; } 6339fi 6340 6341 if test "x$ac_ct_DLLTOOL" = x; then 6342 DLLTOOL="false" 6343 else 6344 case $cross_compiling:$ac_tool_warned in 6345yes:) 6346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6348ac_tool_warned=yes ;; 6349esac 6350 DLLTOOL=$ac_ct_DLLTOOL 6351 fi 6352else 6353 DLLTOOL="$ac_cv_prog_DLLTOOL" 6354fi 6355 6356test -z "$DLLTOOL" && DLLTOOL=dlltool 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6368$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6369if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 lt_cv_sharedlib_from_linklib_cmd='unknown' 6373 6374case $host_os in 6375cygwin* | mingw* | pw32* | cegcc*) 6376 # two different shell functions defined in ltmain.sh 6377 # decide which to use based on capabilities of $DLLTOOL 6378 case `$DLLTOOL --help 2>&1` in 6379 *--identify-strict*) 6380 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6381 ;; 6382 *) 6383 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6384 ;; 6385 esac 6386 ;; 6387*) 6388 # fallback: assume linklib IS sharedlib 6389 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6390 ;; 6391esac 6392 6393fi 6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6395$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6396sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6397test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6398 6399 6400 6401 6402 6403 6404 6405if test -n "$ac_tool_prefix"; then 6406 for ac_prog in ar 6407 do 6408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6409set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6411$as_echo_n "checking for $ac_word... " >&6; } 6412if ${ac_cv_prog_AR+:} false; then : 6413 $as_echo_n "(cached) " >&6 6414else 6415 if test -n "$AR"; then 6416 ac_cv_prog_AR="$AR" # Let the user override the test. 6417else 6418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6419for as_dir in $PATH 6420do 6421 IFS=$as_save_IFS 6422 test -z "$as_dir" && as_dir=. 6423 for ac_exec_ext in '' $ac_executable_extensions; do 6424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6425 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6427 break 2 6428 fi 6429done 6430 done 6431IFS=$as_save_IFS 6432 6433fi 6434fi 6435AR=$ac_cv_prog_AR 6436if test -n "$AR"; then 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6438$as_echo "$AR" >&6; } 6439else 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6441$as_echo "no" >&6; } 6442fi 6443 6444 6445 test -n "$AR" && break 6446 done 6447fi 6448if test -z "$AR"; then 6449 ac_ct_AR=$AR 6450 for ac_prog in ar 6451do 6452 # Extract the first word of "$ac_prog", so it can be a program name with args. 6453set dummy $ac_prog; ac_word=$2 6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6455$as_echo_n "checking for $ac_word... " >&6; } 6456if ${ac_cv_prog_ac_ct_AR+:} false; then : 6457 $as_echo_n "(cached) " >&6 6458else 6459 if test -n "$ac_ct_AR"; then 6460 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6461else 6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6463for as_dir in $PATH 6464do 6465 IFS=$as_save_IFS 6466 test -z "$as_dir" && as_dir=. 6467 for ac_exec_ext in '' $ac_executable_extensions; do 6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6469 ac_cv_prog_ac_ct_AR="$ac_prog" 6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6471 break 2 6472 fi 6473done 6474 done 6475IFS=$as_save_IFS 6476 6477fi 6478fi 6479ac_ct_AR=$ac_cv_prog_ac_ct_AR 6480if test -n "$ac_ct_AR"; then 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6482$as_echo "$ac_ct_AR" >&6; } 6483else 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6485$as_echo "no" >&6; } 6486fi 6487 6488 6489 test -n "$ac_ct_AR" && break 6490done 6491 6492 if test "x$ac_ct_AR" = x; then 6493 AR="false" 6494 else 6495 case $cross_compiling:$ac_tool_warned in 6496yes:) 6497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6499ac_tool_warned=yes ;; 6500esac 6501 AR=$ac_ct_AR 6502 fi 6503fi 6504 6505: ${AR=ar} 6506: ${AR_FLAGS=cru} 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6519$as_echo_n "checking for archiver @FILE support... " >&6; } 6520if ${lt_cv_ar_at_file+:} false; then : 6521 $as_echo_n "(cached) " >&6 6522else 6523 lt_cv_ar_at_file=no 6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6525/* end confdefs.h. */ 6526 6527int 6528main () 6529{ 6530 6531 ; 6532 return 0; 6533} 6534_ACEOF 6535if ac_fn_c_try_compile "$LINENO"; then : 6536 echo conftest.$ac_objext > conftest.lst 6537 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6539 (eval $lt_ar_try) 2>&5 6540 ac_status=$? 6541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6542 test $ac_status = 0; } 6543 if test "$ac_status" -eq 0; then 6544 # Ensure the archiver fails upon bogus file names. 6545 rm -f conftest.$ac_objext libconftest.a 6546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6547 (eval $lt_ar_try) 2>&5 6548 ac_status=$? 6549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6550 test $ac_status = 0; } 6551 if test "$ac_status" -ne 0; then 6552 lt_cv_ar_at_file=@ 6553 fi 6554 fi 6555 rm -f conftest.* libconftest.a 6556 6557fi 6558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6559 6560fi 6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6562$as_echo "$lt_cv_ar_at_file" >&6; } 6563 6564if test "x$lt_cv_ar_at_file" = xno; then 6565 archiver_list_spec= 6566else 6567 archiver_list_spec=$lt_cv_ar_at_file 6568fi 6569 6570 6571 6572 6573 6574 6575 6576if test -n "$ac_tool_prefix"; then 6577 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6578set dummy ${ac_tool_prefix}strip; ac_word=$2 6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6580$as_echo_n "checking for $ac_word... " >&6; } 6581if ${ac_cv_prog_STRIP+:} false; then : 6582 $as_echo_n "(cached) " >&6 6583else 6584 if test -n "$STRIP"; then 6585 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6586else 6587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6588for as_dir in $PATH 6589do 6590 IFS=$as_save_IFS 6591 test -z "$as_dir" && as_dir=. 6592 for ac_exec_ext in '' $ac_executable_extensions; do 6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6594 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6596 break 2 6597 fi 6598done 6599 done 6600IFS=$as_save_IFS 6601 6602fi 6603fi 6604STRIP=$ac_cv_prog_STRIP 6605if test -n "$STRIP"; then 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6607$as_echo "$STRIP" >&6; } 6608else 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6610$as_echo "no" >&6; } 6611fi 6612 6613 6614fi 6615if test -z "$ac_cv_prog_STRIP"; then 6616 ac_ct_STRIP=$STRIP 6617 # Extract the first word of "strip", so it can be a program name with args. 6618set dummy strip; ac_word=$2 6619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6620$as_echo_n "checking for $ac_word... " >&6; } 6621if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6622 $as_echo_n "(cached) " >&6 6623else 6624 if test -n "$ac_ct_STRIP"; then 6625 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6626else 6627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6628for as_dir in $PATH 6629do 6630 IFS=$as_save_IFS 6631 test -z "$as_dir" && as_dir=. 6632 for ac_exec_ext in '' $ac_executable_extensions; do 6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6634 ac_cv_prog_ac_ct_STRIP="strip" 6635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6636 break 2 6637 fi 6638done 6639 done 6640IFS=$as_save_IFS 6641 6642fi 6643fi 6644ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6645if test -n "$ac_ct_STRIP"; then 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6647$as_echo "$ac_ct_STRIP" >&6; } 6648else 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6650$as_echo "no" >&6; } 6651fi 6652 6653 if test "x$ac_ct_STRIP" = x; then 6654 STRIP=":" 6655 else 6656 case $cross_compiling:$ac_tool_warned in 6657yes:) 6658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6660ac_tool_warned=yes ;; 6661esac 6662 STRIP=$ac_ct_STRIP 6663 fi 6664else 6665 STRIP="$ac_cv_prog_STRIP" 6666fi 6667 6668test -z "$STRIP" && STRIP=: 6669 6670 6671 6672 6673 6674 6675if test -n "$ac_tool_prefix"; then 6676 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6677set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6679$as_echo_n "checking for $ac_word... " >&6; } 6680if ${ac_cv_prog_RANLIB+:} false; then : 6681 $as_echo_n "(cached) " >&6 6682else 6683 if test -n "$RANLIB"; then 6684 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6685else 6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6687for as_dir in $PATH 6688do 6689 IFS=$as_save_IFS 6690 test -z "$as_dir" && as_dir=. 6691 for ac_exec_ext in '' $ac_executable_extensions; do 6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6693 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6695 break 2 6696 fi 6697done 6698 done 6699IFS=$as_save_IFS 6700 6701fi 6702fi 6703RANLIB=$ac_cv_prog_RANLIB 6704if test -n "$RANLIB"; then 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6706$as_echo "$RANLIB" >&6; } 6707else 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6709$as_echo "no" >&6; } 6710fi 6711 6712 6713fi 6714if test -z "$ac_cv_prog_RANLIB"; then 6715 ac_ct_RANLIB=$RANLIB 6716 # Extract the first word of "ranlib", so it can be a program name with args. 6717set dummy ranlib; ac_word=$2 6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6719$as_echo_n "checking for $ac_word... " >&6; } 6720if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6721 $as_echo_n "(cached) " >&6 6722else 6723 if test -n "$ac_ct_RANLIB"; then 6724 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6725else 6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6727for as_dir in $PATH 6728do 6729 IFS=$as_save_IFS 6730 test -z "$as_dir" && as_dir=. 6731 for ac_exec_ext in '' $ac_executable_extensions; do 6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6733 ac_cv_prog_ac_ct_RANLIB="ranlib" 6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6735 break 2 6736 fi 6737done 6738 done 6739IFS=$as_save_IFS 6740 6741fi 6742fi 6743ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6744if test -n "$ac_ct_RANLIB"; then 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6746$as_echo "$ac_ct_RANLIB" >&6; } 6747else 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6749$as_echo "no" >&6; } 6750fi 6751 6752 if test "x$ac_ct_RANLIB" = x; then 6753 RANLIB=":" 6754 else 6755 case $cross_compiling:$ac_tool_warned in 6756yes:) 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6759ac_tool_warned=yes ;; 6760esac 6761 RANLIB=$ac_ct_RANLIB 6762 fi 6763else 6764 RANLIB="$ac_cv_prog_RANLIB" 6765fi 6766 6767test -z "$RANLIB" && RANLIB=: 6768 6769 6770 6771 6772 6773 6774# Determine commands to create old-style static archives. 6775old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6776old_postinstall_cmds='chmod 644 $oldlib' 6777old_postuninstall_cmds= 6778 6779if test -n "$RANLIB"; then 6780 case $host_os in 6781 openbsd*) 6782 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6783 ;; 6784 *) 6785 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6786 ;; 6787 esac 6788 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6789fi 6790 6791case $host_os in 6792 darwin*) 6793 lock_old_archive_extraction=yes ;; 6794 *) 6795 lock_old_archive_extraction=no ;; 6796esac 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836# If no C compiler was specified, use CC. 6837LTCC=${LTCC-"$CC"} 6838 6839# If no C compiler flags were specified, use CFLAGS. 6840LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6841 6842# Allow CC to be a program name with arguments. 6843compiler=$CC 6844 6845 6846# Check for command to grab the raw symbol name followed by C symbol from nm. 6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6848$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6849if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6850 $as_echo_n "(cached) " >&6 6851else 6852 6853# These are sane defaults that work on at least a few old systems. 6854# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6855 6856# Character class describing NM global symbol codes. 6857symcode='[BCDEGRST]' 6858 6859# Regexp to match symbols that can be accessed directly from C. 6860sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6861 6862# Define system-specific variables. 6863case $host_os in 6864aix*) 6865 symcode='[BCDT]' 6866 ;; 6867cygwin* | mingw* | pw32* | cegcc*) 6868 symcode='[ABCDGISTW]' 6869 ;; 6870hpux*) 6871 if test "$host_cpu" = ia64; then 6872 symcode='[ABCDEGRST]' 6873 fi 6874 ;; 6875irix* | nonstopux*) 6876 symcode='[BCDEGRST]' 6877 ;; 6878osf*) 6879 symcode='[BCDEGQRST]' 6880 ;; 6881solaris*) 6882 symcode='[BDRT]' 6883 ;; 6884sco3.2v5*) 6885 symcode='[DT]' 6886 ;; 6887sysv4.2uw2*) 6888 symcode='[DT]' 6889 ;; 6890sysv5* | sco5v6* | unixware* | OpenUNIX*) 6891 symcode='[ABDT]' 6892 ;; 6893sysv4) 6894 symcode='[DFNSTU]' 6895 ;; 6896esac 6897 6898# If we're using GNU nm, then use its standard symbol codes. 6899case `$NM -V 2>&1` in 6900*GNU* | *'with BFD'*) 6901 symcode='[ABCDGIRSTW]' ;; 6902esac 6903 6904# Transform an extracted symbol line into a proper C declaration. 6905# Some systems (esp. on ia64) link data and code symbols differently, 6906# so use this general approach. 6907lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6908 6909# Transform an extracted symbol line into symbol name and symbol address 6910lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6911lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6912 6913# Handle CRLF in mingw tool chain 6914opt_cr= 6915case $build_os in 6916mingw*) 6917 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6918 ;; 6919esac 6920 6921# Try without a prefix underscore, then with it. 6922for ac_symprfx in "" "_"; do 6923 6924 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6925 symxfrm="\\1 $ac_symprfx\\2 \\2" 6926 6927 # Write the raw and C identifiers. 6928 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6929 # Fake it for dumpbin and say T for any non-static function 6930 # and D for any global variable. 6931 # Also find C++ and __fastcall symbols from MSVC++, 6932 # which start with @ or ?. 6933 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6934" {last_section=section; section=\$ 3};"\ 6935" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6936" \$ 0!~/External *\|/{next};"\ 6937" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6938" {if(hide[section]) next};"\ 6939" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6940" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6941" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6942" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6943" ' prfx=^$ac_symprfx" 6944 else 6945 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6946 fi 6947 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6948 6949 # Check to see that the pipe works correctly. 6950 pipe_works=no 6951 6952 rm -f conftest* 6953 cat > conftest.$ac_ext <<_LT_EOF 6954#ifdef __cplusplus 6955extern "C" { 6956#endif 6957char nm_test_var; 6958void nm_test_func(void); 6959void nm_test_func(void){} 6960#ifdef __cplusplus 6961} 6962#endif 6963int main(){nm_test_var='a';nm_test_func();return(0);} 6964_LT_EOF 6965 6966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6967 (eval $ac_compile) 2>&5 6968 ac_status=$? 6969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6970 test $ac_status = 0; }; then 6971 # Now try to grab the symbols. 6972 nlist=conftest.nm 6973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6974 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6975 ac_status=$? 6976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6977 test $ac_status = 0; } && test -s "$nlist"; then 6978 # Try sorting and uniquifying the output. 6979 if sort "$nlist" | uniq > "$nlist"T; then 6980 mv -f "$nlist"T "$nlist" 6981 else 6982 rm -f "$nlist"T 6983 fi 6984 6985 # Make sure that we snagged all the symbols we need. 6986 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6987 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6988 cat <<_LT_EOF > conftest.$ac_ext 6989/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6990#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6991/* DATA imports from DLLs on WIN32 con't be const, because runtime 6992 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6993# define LT_DLSYM_CONST 6994#elif defined(__osf__) 6995/* This system does not cope well with relocations in const data. */ 6996# define LT_DLSYM_CONST 6997#else 6998# define LT_DLSYM_CONST const 6999#endif 7000 7001#ifdef __cplusplus 7002extern "C" { 7003#endif 7004 7005_LT_EOF 7006 # Now generate the symbol file. 7007 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7008 7009 cat <<_LT_EOF >> conftest.$ac_ext 7010 7011/* The mapping between symbol names and symbols. */ 7012LT_DLSYM_CONST struct { 7013 const char *name; 7014 void *address; 7015} 7016lt__PROGRAM__LTX_preloaded_symbols[] = 7017{ 7018 { "@PROGRAM@", (void *) 0 }, 7019_LT_EOF 7020 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7021 cat <<\_LT_EOF >> conftest.$ac_ext 7022 {0, (void *) 0} 7023}; 7024 7025/* This works around a problem in FreeBSD linker */ 7026#ifdef FREEBSD_WORKAROUND 7027static const void *lt_preloaded_setup() { 7028 return lt__PROGRAM__LTX_preloaded_symbols; 7029} 7030#endif 7031 7032#ifdef __cplusplus 7033} 7034#endif 7035_LT_EOF 7036 # Now try linking the two files. 7037 mv conftest.$ac_objext conftstm.$ac_objext 7038 lt_globsym_save_LIBS=$LIBS 7039 lt_globsym_save_CFLAGS=$CFLAGS 7040 LIBS="conftstm.$ac_objext" 7041 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7043 (eval $ac_link) 2>&5 7044 ac_status=$? 7045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7046 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7047 pipe_works=yes 7048 fi 7049 LIBS=$lt_globsym_save_LIBS 7050 CFLAGS=$lt_globsym_save_CFLAGS 7051 else 7052 echo "cannot find nm_test_func in $nlist" >&5 7053 fi 7054 else 7055 echo "cannot find nm_test_var in $nlist" >&5 7056 fi 7057 else 7058 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7059 fi 7060 else 7061 echo "$progname: failed program was:" >&5 7062 cat conftest.$ac_ext >&5 7063 fi 7064 rm -rf conftest* conftst* 7065 7066 # Do not use the global_symbol_pipe unless it works. 7067 if test "$pipe_works" = yes; then 7068 break 7069 else 7070 lt_cv_sys_global_symbol_pipe= 7071 fi 7072done 7073 7074fi 7075 7076if test -z "$lt_cv_sys_global_symbol_pipe"; then 7077 lt_cv_sys_global_symbol_to_cdecl= 7078fi 7079if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7081$as_echo "failed" >&6; } 7082else 7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7084$as_echo "ok" >&6; } 7085fi 7086 7087# Response file support. 7088if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7089 nm_file_list_spec='@' 7090elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7091 nm_file_list_spec='@' 7092fi 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7121$as_echo_n "checking for sysroot... " >&6; } 7122 7123# Check whether --with-sysroot was given. 7124if test "${with_sysroot+set}" = set; then : 7125 withval=$with_sysroot; 7126else 7127 with_sysroot=no 7128fi 7129 7130 7131lt_sysroot= 7132case ${with_sysroot} in #( 7133 yes) 7134 if test "$GCC" = yes; then 7135 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7136 fi 7137 ;; #( 7138 /*) 7139 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7140 ;; #( 7141 no|'') 7142 ;; #( 7143 *) 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7145$as_echo "${with_sysroot}" >&6; } 7146 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7147 ;; 7148esac 7149 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7151$as_echo "${lt_sysroot:-no}" >&6; } 7152 7153 7154 7155 7156 7157# Check whether --enable-libtool-lock was given. 7158if test "${enable_libtool_lock+set}" = set; then : 7159 enableval=$enable_libtool_lock; 7160fi 7161 7162test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7163 7164# Some flags need to be propagated to the compiler or linker for good 7165# libtool support. 7166case $host in 7167ia64-*-hpux*) 7168 # Find out which ABI we are using. 7169 echo 'int i;' > conftest.$ac_ext 7170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7171 (eval $ac_compile) 2>&5 7172 ac_status=$? 7173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7174 test $ac_status = 0; }; then 7175 case `/usr/bin/file conftest.$ac_objext` in 7176 *ELF-32*) 7177 HPUX_IA64_MODE="32" 7178 ;; 7179 *ELF-64*) 7180 HPUX_IA64_MODE="64" 7181 ;; 7182 esac 7183 fi 7184 rm -rf conftest* 7185 ;; 7186*-*-irix6*) 7187 # Find out which ABI we are using. 7188 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7190 (eval $ac_compile) 2>&5 7191 ac_status=$? 7192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7193 test $ac_status = 0; }; then 7194 if test "$lt_cv_prog_gnu_ld" = yes; then 7195 case `/usr/bin/file conftest.$ac_objext` in 7196 *32-bit*) 7197 LD="${LD-ld} -melf32bsmip" 7198 ;; 7199 *N32*) 7200 LD="${LD-ld} -melf32bmipn32" 7201 ;; 7202 *64-bit*) 7203 LD="${LD-ld} -melf64bmip" 7204 ;; 7205 esac 7206 else 7207 case `/usr/bin/file conftest.$ac_objext` in 7208 *32-bit*) 7209 LD="${LD-ld} -32" 7210 ;; 7211 *N32*) 7212 LD="${LD-ld} -n32" 7213 ;; 7214 *64-bit*) 7215 LD="${LD-ld} -64" 7216 ;; 7217 esac 7218 fi 7219 fi 7220 rm -rf conftest* 7221 ;; 7222 7223x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7224s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7225 # Find out which ABI we are using. 7226 echo 'int i;' > conftest.$ac_ext 7227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7228 (eval $ac_compile) 2>&5 7229 ac_status=$? 7230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7231 test $ac_status = 0; }; then 7232 case `/usr/bin/file conftest.o` in 7233 *32-bit*) 7234 case $host in 7235 x86_64-*kfreebsd*-gnu) 7236 LD="${LD-ld} -m elf_i386_fbsd" 7237 ;; 7238 x86_64-*linux*) 7239 LD="${LD-ld} -m elf_i386" 7240 ;; 7241 ppc64-*linux*|powerpc64-*linux*) 7242 LD="${LD-ld} -m elf32ppclinux" 7243 ;; 7244 s390x-*linux*) 7245 LD="${LD-ld} -m elf_s390" 7246 ;; 7247 sparc64-*linux*) 7248 LD="${LD-ld} -m elf32_sparc" 7249 ;; 7250 esac 7251 ;; 7252 *64-bit*) 7253 case $host in 7254 x86_64-*kfreebsd*-gnu) 7255 LD="${LD-ld} -m elf_x86_64_fbsd" 7256 ;; 7257 x86_64-*linux*) 7258 LD="${LD-ld} -m elf_x86_64" 7259 ;; 7260 ppc*-*linux*|powerpc*-*linux*) 7261 LD="${LD-ld} -m elf64ppc" 7262 ;; 7263 s390*-*linux*|s390*-*tpf*) 7264 LD="${LD-ld} -m elf64_s390" 7265 ;; 7266 sparc*-*linux*) 7267 LD="${LD-ld} -m elf64_sparc" 7268 ;; 7269 esac 7270 ;; 7271 esac 7272 fi 7273 rm -rf conftest* 7274 ;; 7275 7276*-*-sco3.2v5*) 7277 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7278 SAVE_CFLAGS="$CFLAGS" 7279 CFLAGS="$CFLAGS -belf" 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7281$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7282if ${lt_cv_cc_needs_belf+:} false; then : 7283 $as_echo_n "(cached) " >&6 7284else 7285 ac_ext=c 7286ac_cpp='$CPP $CPPFLAGS' 7287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7289ac_compiler_gnu=$ac_cv_c_compiler_gnu 7290 7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7292/* end confdefs.h. */ 7293 7294int 7295main () 7296{ 7297 7298 ; 7299 return 0; 7300} 7301_ACEOF 7302if ac_fn_c_try_link "$LINENO"; then : 7303 lt_cv_cc_needs_belf=yes 7304else 7305 lt_cv_cc_needs_belf=no 7306fi 7307rm -f core conftest.err conftest.$ac_objext \ 7308 conftest$ac_exeext conftest.$ac_ext 7309 ac_ext=c 7310ac_cpp='$CPP $CPPFLAGS' 7311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7313ac_compiler_gnu=$ac_cv_c_compiler_gnu 7314 7315fi 7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7317$as_echo "$lt_cv_cc_needs_belf" >&6; } 7318 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7319 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7320 CFLAGS="$SAVE_CFLAGS" 7321 fi 7322 ;; 7323sparc*-*solaris*) 7324 # Find out which ABI we are using. 7325 echo 'int i;' > conftest.$ac_ext 7326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7327 (eval $ac_compile) 2>&5 7328 ac_status=$? 7329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7330 test $ac_status = 0; }; then 7331 case `/usr/bin/file conftest.o` in 7332 *64-bit*) 7333 case $lt_cv_prog_gnu_ld in 7334 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7335 *) 7336 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7337 LD="${LD-ld} -64" 7338 fi 7339 ;; 7340 esac 7341 ;; 7342 esac 7343 fi 7344 rm -rf conftest* 7345 ;; 7346esac 7347 7348need_locks="$enable_libtool_lock" 7349 7350if test -n "$ac_tool_prefix"; then 7351 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7352set dummy ${ac_tool_prefix}mt; ac_word=$2 7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7354$as_echo_n "checking for $ac_word... " >&6; } 7355if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7356 $as_echo_n "(cached) " >&6 7357else 7358 if test -n "$MANIFEST_TOOL"; then 7359 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7360else 7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7362for as_dir in $PATH 7363do 7364 IFS=$as_save_IFS 7365 test -z "$as_dir" && as_dir=. 7366 for ac_exec_ext in '' $ac_executable_extensions; do 7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7368 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7370 break 2 7371 fi 7372done 7373 done 7374IFS=$as_save_IFS 7375 7376fi 7377fi 7378MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7379if test -n "$MANIFEST_TOOL"; then 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7381$as_echo "$MANIFEST_TOOL" >&6; } 7382else 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7384$as_echo "no" >&6; } 7385fi 7386 7387 7388fi 7389if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7390 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7391 # Extract the first word of "mt", so it can be a program name with args. 7392set dummy mt; ac_word=$2 7393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7394$as_echo_n "checking for $ac_word... " >&6; } 7395if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7396 $as_echo_n "(cached) " >&6 7397else 7398 if test -n "$ac_ct_MANIFEST_TOOL"; then 7399 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7400else 7401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7402for as_dir in $PATH 7403do 7404 IFS=$as_save_IFS 7405 test -z "$as_dir" && as_dir=. 7406 for ac_exec_ext in '' $ac_executable_extensions; do 7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7408 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7410 break 2 7411 fi 7412done 7413 done 7414IFS=$as_save_IFS 7415 7416fi 7417fi 7418ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7419if test -n "$ac_ct_MANIFEST_TOOL"; then 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7421$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7422else 7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7424$as_echo "no" >&6; } 7425fi 7426 7427 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7428 MANIFEST_TOOL=":" 7429 else 7430 case $cross_compiling:$ac_tool_warned in 7431yes:) 7432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7434ac_tool_warned=yes ;; 7435esac 7436 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7437 fi 7438else 7439 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7440fi 7441 7442test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7444$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7445if ${lt_cv_path_mainfest_tool+:} false; then : 7446 $as_echo_n "(cached) " >&6 7447else 7448 lt_cv_path_mainfest_tool=no 7449 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7450 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7451 cat conftest.err >&5 7452 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7453 lt_cv_path_mainfest_tool=yes 7454 fi 7455 rm -f conftest* 7456fi 7457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7458$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7459if test "x$lt_cv_path_mainfest_tool" != xyes; then 7460 MANIFEST_TOOL=: 7461fi 7462 7463 7464 7465 7466 7467 7468 case $host_os in 7469 rhapsody* | darwin*) 7470 if test -n "$ac_tool_prefix"; then 7471 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7472set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7474$as_echo_n "checking for $ac_word... " >&6; } 7475if ${ac_cv_prog_DSYMUTIL+:} false; then : 7476 $as_echo_n "(cached) " >&6 7477else 7478 if test -n "$DSYMUTIL"; then 7479 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7480else 7481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7482for as_dir in $PATH 7483do 7484 IFS=$as_save_IFS 7485 test -z "$as_dir" && as_dir=. 7486 for ac_exec_ext in '' $ac_executable_extensions; do 7487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7488 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7490 break 2 7491 fi 7492done 7493 done 7494IFS=$as_save_IFS 7495 7496fi 7497fi 7498DSYMUTIL=$ac_cv_prog_DSYMUTIL 7499if test -n "$DSYMUTIL"; then 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7501$as_echo "$DSYMUTIL" >&6; } 7502else 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7504$as_echo "no" >&6; } 7505fi 7506 7507 7508fi 7509if test -z "$ac_cv_prog_DSYMUTIL"; then 7510 ac_ct_DSYMUTIL=$DSYMUTIL 7511 # Extract the first word of "dsymutil", so it can be a program name with args. 7512set dummy dsymutil; ac_word=$2 7513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7514$as_echo_n "checking for $ac_word... " >&6; } 7515if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7516 $as_echo_n "(cached) " >&6 7517else 7518 if test -n "$ac_ct_DSYMUTIL"; then 7519 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7520else 7521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7522for as_dir in $PATH 7523do 7524 IFS=$as_save_IFS 7525 test -z "$as_dir" && as_dir=. 7526 for ac_exec_ext in '' $ac_executable_extensions; do 7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7528 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7530 break 2 7531 fi 7532done 7533 done 7534IFS=$as_save_IFS 7535 7536fi 7537fi 7538ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7539if test -n "$ac_ct_DSYMUTIL"; then 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7541$as_echo "$ac_ct_DSYMUTIL" >&6; } 7542else 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7544$as_echo "no" >&6; } 7545fi 7546 7547 if test "x$ac_ct_DSYMUTIL" = x; then 7548 DSYMUTIL=":" 7549 else 7550 case $cross_compiling:$ac_tool_warned in 7551yes:) 7552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7554ac_tool_warned=yes ;; 7555esac 7556 DSYMUTIL=$ac_ct_DSYMUTIL 7557 fi 7558else 7559 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7560fi 7561 7562 if test -n "$ac_tool_prefix"; then 7563 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7564set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7566$as_echo_n "checking for $ac_word... " >&6; } 7567if ${ac_cv_prog_NMEDIT+:} false; then : 7568 $as_echo_n "(cached) " >&6 7569else 7570 if test -n "$NMEDIT"; then 7571 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7572else 7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7574for as_dir in $PATH 7575do 7576 IFS=$as_save_IFS 7577 test -z "$as_dir" && as_dir=. 7578 for ac_exec_ext in '' $ac_executable_extensions; do 7579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7580 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7582 break 2 7583 fi 7584done 7585 done 7586IFS=$as_save_IFS 7587 7588fi 7589fi 7590NMEDIT=$ac_cv_prog_NMEDIT 7591if test -n "$NMEDIT"; then 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7593$as_echo "$NMEDIT" >&6; } 7594else 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7596$as_echo "no" >&6; } 7597fi 7598 7599 7600fi 7601if test -z "$ac_cv_prog_NMEDIT"; then 7602 ac_ct_NMEDIT=$NMEDIT 7603 # Extract the first word of "nmedit", so it can be a program name with args. 7604set dummy nmedit; ac_word=$2 7605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7606$as_echo_n "checking for $ac_word... " >&6; } 7607if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7608 $as_echo_n "(cached) " >&6 7609else 7610 if test -n "$ac_ct_NMEDIT"; then 7611 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7612else 7613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7614for as_dir in $PATH 7615do 7616 IFS=$as_save_IFS 7617 test -z "$as_dir" && as_dir=. 7618 for ac_exec_ext in '' $ac_executable_extensions; do 7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7620 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7622 break 2 7623 fi 7624done 7625 done 7626IFS=$as_save_IFS 7627 7628fi 7629fi 7630ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7631if test -n "$ac_ct_NMEDIT"; then 7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7633$as_echo "$ac_ct_NMEDIT" >&6; } 7634else 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7636$as_echo "no" >&6; } 7637fi 7638 7639 if test "x$ac_ct_NMEDIT" = x; then 7640 NMEDIT=":" 7641 else 7642 case $cross_compiling:$ac_tool_warned in 7643yes:) 7644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7646ac_tool_warned=yes ;; 7647esac 7648 NMEDIT=$ac_ct_NMEDIT 7649 fi 7650else 7651 NMEDIT="$ac_cv_prog_NMEDIT" 7652fi 7653 7654 if test -n "$ac_tool_prefix"; then 7655 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7656set dummy ${ac_tool_prefix}lipo; ac_word=$2 7657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7658$as_echo_n "checking for $ac_word... " >&6; } 7659if ${ac_cv_prog_LIPO+:} false; then : 7660 $as_echo_n "(cached) " >&6 7661else 7662 if test -n "$LIPO"; then 7663 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7664else 7665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7666for as_dir in $PATH 7667do 7668 IFS=$as_save_IFS 7669 test -z "$as_dir" && as_dir=. 7670 for ac_exec_ext in '' $ac_executable_extensions; do 7671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7672 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7674 break 2 7675 fi 7676done 7677 done 7678IFS=$as_save_IFS 7679 7680fi 7681fi 7682LIPO=$ac_cv_prog_LIPO 7683if test -n "$LIPO"; then 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7685$as_echo "$LIPO" >&6; } 7686else 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7688$as_echo "no" >&6; } 7689fi 7690 7691 7692fi 7693if test -z "$ac_cv_prog_LIPO"; then 7694 ac_ct_LIPO=$LIPO 7695 # Extract the first word of "lipo", so it can be a program name with args. 7696set dummy lipo; ac_word=$2 7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7698$as_echo_n "checking for $ac_word... " >&6; } 7699if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7700 $as_echo_n "(cached) " >&6 7701else 7702 if test -n "$ac_ct_LIPO"; then 7703 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7704else 7705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7706for as_dir in $PATH 7707do 7708 IFS=$as_save_IFS 7709 test -z "$as_dir" && as_dir=. 7710 for ac_exec_ext in '' $ac_executable_extensions; do 7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7712 ac_cv_prog_ac_ct_LIPO="lipo" 7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7714 break 2 7715 fi 7716done 7717 done 7718IFS=$as_save_IFS 7719 7720fi 7721fi 7722ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7723if test -n "$ac_ct_LIPO"; then 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7725$as_echo "$ac_ct_LIPO" >&6; } 7726else 7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7728$as_echo "no" >&6; } 7729fi 7730 7731 if test "x$ac_ct_LIPO" = x; then 7732 LIPO=":" 7733 else 7734 case $cross_compiling:$ac_tool_warned in 7735yes:) 7736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7738ac_tool_warned=yes ;; 7739esac 7740 LIPO=$ac_ct_LIPO 7741 fi 7742else 7743 LIPO="$ac_cv_prog_LIPO" 7744fi 7745 7746 if test -n "$ac_tool_prefix"; then 7747 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7748set dummy ${ac_tool_prefix}otool; ac_word=$2 7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7750$as_echo_n "checking for $ac_word... " >&6; } 7751if ${ac_cv_prog_OTOOL+:} false; then : 7752 $as_echo_n "(cached) " >&6 7753else 7754 if test -n "$OTOOL"; then 7755 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7756else 7757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7758for as_dir in $PATH 7759do 7760 IFS=$as_save_IFS 7761 test -z "$as_dir" && as_dir=. 7762 for ac_exec_ext in '' $ac_executable_extensions; do 7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7764 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7766 break 2 7767 fi 7768done 7769 done 7770IFS=$as_save_IFS 7771 7772fi 7773fi 7774OTOOL=$ac_cv_prog_OTOOL 7775if test -n "$OTOOL"; then 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7777$as_echo "$OTOOL" >&6; } 7778else 7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7780$as_echo "no" >&6; } 7781fi 7782 7783 7784fi 7785if test -z "$ac_cv_prog_OTOOL"; then 7786 ac_ct_OTOOL=$OTOOL 7787 # Extract the first word of "otool", so it can be a program name with args. 7788set dummy otool; ac_word=$2 7789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7790$as_echo_n "checking for $ac_word... " >&6; } 7791if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7792 $as_echo_n "(cached) " >&6 7793else 7794 if test -n "$ac_ct_OTOOL"; then 7795 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7796else 7797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7798for as_dir in $PATH 7799do 7800 IFS=$as_save_IFS 7801 test -z "$as_dir" && as_dir=. 7802 for ac_exec_ext in '' $ac_executable_extensions; do 7803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7804 ac_cv_prog_ac_ct_OTOOL="otool" 7805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7806 break 2 7807 fi 7808done 7809 done 7810IFS=$as_save_IFS 7811 7812fi 7813fi 7814ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7815if test -n "$ac_ct_OTOOL"; then 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7817$as_echo "$ac_ct_OTOOL" >&6; } 7818else 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7820$as_echo "no" >&6; } 7821fi 7822 7823 if test "x$ac_ct_OTOOL" = x; then 7824 OTOOL=":" 7825 else 7826 case $cross_compiling:$ac_tool_warned in 7827yes:) 7828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7830ac_tool_warned=yes ;; 7831esac 7832 OTOOL=$ac_ct_OTOOL 7833 fi 7834else 7835 OTOOL="$ac_cv_prog_OTOOL" 7836fi 7837 7838 if test -n "$ac_tool_prefix"; then 7839 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7840set dummy ${ac_tool_prefix}otool64; ac_word=$2 7841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7842$as_echo_n "checking for $ac_word... " >&6; } 7843if ${ac_cv_prog_OTOOL64+:} false; then : 7844 $as_echo_n "(cached) " >&6 7845else 7846 if test -n "$OTOOL64"; then 7847 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7848else 7849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7850for as_dir in $PATH 7851do 7852 IFS=$as_save_IFS 7853 test -z "$as_dir" && as_dir=. 7854 for ac_exec_ext in '' $ac_executable_extensions; do 7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7856 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7858 break 2 7859 fi 7860done 7861 done 7862IFS=$as_save_IFS 7863 7864fi 7865fi 7866OTOOL64=$ac_cv_prog_OTOOL64 7867if test -n "$OTOOL64"; then 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7869$as_echo "$OTOOL64" >&6; } 7870else 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7872$as_echo "no" >&6; } 7873fi 7874 7875 7876fi 7877if test -z "$ac_cv_prog_OTOOL64"; then 7878 ac_ct_OTOOL64=$OTOOL64 7879 # Extract the first word of "otool64", so it can be a program name with args. 7880set dummy otool64; ac_word=$2 7881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7882$as_echo_n "checking for $ac_word... " >&6; } 7883if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7884 $as_echo_n "(cached) " >&6 7885else 7886 if test -n "$ac_ct_OTOOL64"; then 7887 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7888else 7889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7890for as_dir in $PATH 7891do 7892 IFS=$as_save_IFS 7893 test -z "$as_dir" && as_dir=. 7894 for ac_exec_ext in '' $ac_executable_extensions; do 7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7896 ac_cv_prog_ac_ct_OTOOL64="otool64" 7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7898 break 2 7899 fi 7900done 7901 done 7902IFS=$as_save_IFS 7903 7904fi 7905fi 7906ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7907if test -n "$ac_ct_OTOOL64"; then 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7909$as_echo "$ac_ct_OTOOL64" >&6; } 7910else 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7912$as_echo "no" >&6; } 7913fi 7914 7915 if test "x$ac_ct_OTOOL64" = x; then 7916 OTOOL64=":" 7917 else 7918 case $cross_compiling:$ac_tool_warned in 7919yes:) 7920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7922ac_tool_warned=yes ;; 7923esac 7924 OTOOL64=$ac_ct_OTOOL64 7925 fi 7926else 7927 OTOOL64="$ac_cv_prog_OTOOL64" 7928fi 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7957$as_echo_n "checking for -single_module linker flag... " >&6; } 7958if ${lt_cv_apple_cc_single_mod+:} false; then : 7959 $as_echo_n "(cached) " >&6 7960else 7961 lt_cv_apple_cc_single_mod=no 7962 if test -z "${LT_MULTI_MODULE}"; then 7963 # By default we will add the -single_module flag. You can override 7964 # by either setting the environment variable LT_MULTI_MODULE 7965 # non-empty at configure time, or by adding -multi_module to the 7966 # link flags. 7967 rm -rf libconftest.dylib* 7968 echo "int foo(void){return 1;}" > conftest.c 7969 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7970-dynamiclib -Wl,-single_module conftest.c" >&5 7971 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7972 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7973 _lt_result=$? 7974 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7975 lt_cv_apple_cc_single_mod=yes 7976 else 7977 cat conftest.err >&5 7978 fi 7979 rm -rf libconftest.dylib* 7980 rm -f conftest.* 7981 fi 7982fi 7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7984$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7986$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7987if ${lt_cv_ld_exported_symbols_list+:} false; then : 7988 $as_echo_n "(cached) " >&6 7989else 7990 lt_cv_ld_exported_symbols_list=no 7991 save_LDFLAGS=$LDFLAGS 7992 echo "_main" > conftest.sym 7993 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7995/* end confdefs.h. */ 7996 7997int 7998main () 7999{ 8000 8001 ; 8002 return 0; 8003} 8004_ACEOF 8005if ac_fn_c_try_link "$LINENO"; then : 8006 lt_cv_ld_exported_symbols_list=yes 8007else 8008 lt_cv_ld_exported_symbols_list=no 8009fi 8010rm -f core conftest.err conftest.$ac_objext \ 8011 conftest$ac_exeext conftest.$ac_ext 8012 LDFLAGS="$save_LDFLAGS" 8013 8014fi 8015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8016$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8018$as_echo_n "checking for -force_load linker flag... " >&6; } 8019if ${lt_cv_ld_force_load+:} false; then : 8020 $as_echo_n "(cached) " >&6 8021else 8022 lt_cv_ld_force_load=no 8023 cat > conftest.c << _LT_EOF 8024int forced_loaded() { return 2;} 8025_LT_EOF 8026 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8027 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8028 echo "$AR cru libconftest.a conftest.o" >&5 8029 $AR cru libconftest.a conftest.o 2>&5 8030 echo "$RANLIB libconftest.a" >&5 8031 $RANLIB libconftest.a 2>&5 8032 cat > conftest.c << _LT_EOF 8033int main() { return 0;} 8034_LT_EOF 8035 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8036 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8037 _lt_result=$? 8038 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 8039 lt_cv_ld_force_load=yes 8040 else 8041 cat conftest.err >&5 8042 fi 8043 rm -f conftest.err libconftest.a conftest conftest.c 8044 rm -rf conftest.dSYM 8045 8046fi 8047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8048$as_echo "$lt_cv_ld_force_load" >&6; } 8049 case $host_os in 8050 rhapsody* | darwin1.[012]) 8051 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8052 darwin1.*) 8053 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8054 darwin*) # darwin 5.x on 8055 # if running on 10.5 or later, the deployment target defaults 8056 # to the OS version, if on x86, and 10.4, the deployment 8057 # target defaults to 10.4. Don't you love it? 8058 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8059 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8060 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8061 10.[012]*) 8062 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8063 10.*) 8064 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8065 esac 8066 ;; 8067 esac 8068 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8069 _lt_dar_single_mod='$single_module' 8070 fi 8071 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8072 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8073 else 8074 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8075 fi 8076 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8077 _lt_dsymutil='~$DSYMUTIL $lib || :' 8078 else 8079 _lt_dsymutil= 8080 fi 8081 ;; 8082 esac 8083 8084for ac_header in dlfcn.h 8085do : 8086 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8087" 8088if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8089 cat >>confdefs.h <<_ACEOF 8090#define HAVE_DLFCN_H 1 8091_ACEOF 8092 8093fi 8094 8095done 8096 8097 8098 8099 8100 8101# Set options 8102 8103 8104 8105 enable_dlopen=no 8106 8107 8108 enable_win32_dll=no 8109 8110 8111 # Check whether --enable-shared was given. 8112if test "${enable_shared+set}" = set; then : 8113 enableval=$enable_shared; p=${PACKAGE-default} 8114 case $enableval in 8115 yes) enable_shared=yes ;; 8116 no) enable_shared=no ;; 8117 *) 8118 enable_shared=no 8119 # Look at the argument we got. We use all the common list separators. 8120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8121 for pkg in $enableval; do 8122 IFS="$lt_save_ifs" 8123 if test "X$pkg" = "X$p"; then 8124 enable_shared=yes 8125 fi 8126 done 8127 IFS="$lt_save_ifs" 8128 ;; 8129 esac 8130else 8131 enable_shared=yes 8132fi 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 # Check whether --enable-static was given. 8143if test "${enable_static+set}" = set; then : 8144 enableval=$enable_static; p=${PACKAGE-default} 8145 case $enableval in 8146 yes) enable_static=yes ;; 8147 no) enable_static=no ;; 8148 *) 8149 enable_static=no 8150 # Look at the argument we got. We use all the common list separators. 8151 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8152 for pkg in $enableval; do 8153 IFS="$lt_save_ifs" 8154 if test "X$pkg" = "X$p"; then 8155 enable_static=yes 8156 fi 8157 done 8158 IFS="$lt_save_ifs" 8159 ;; 8160 esac 8161else 8162 enable_static=yes 8163fi 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174# Check whether --with-pic was given. 8175if test "${with_pic+set}" = set; then : 8176 withval=$with_pic; pic_mode="$withval" 8177else 8178 pic_mode=default 8179fi 8180 8181 8182test -z "$pic_mode" && pic_mode=default 8183 8184 8185 8186 8187 8188 8189 8190 # Check whether --enable-fast-install was given. 8191if test "${enable_fast_install+set}" = set; then : 8192 enableval=$enable_fast_install; p=${PACKAGE-default} 8193 case $enableval in 8194 yes) enable_fast_install=yes ;; 8195 no) enable_fast_install=no ;; 8196 *) 8197 enable_fast_install=no 8198 # Look at the argument we got. We use all the common list separators. 8199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8200 for pkg in $enableval; do 8201 IFS="$lt_save_ifs" 8202 if test "X$pkg" = "X$p"; then 8203 enable_fast_install=yes 8204 fi 8205 done 8206 IFS="$lt_save_ifs" 8207 ;; 8208 esac 8209else 8210 enable_fast_install=yes 8211fi 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223# This can be used to rebuild libtool when needed 8224LIBTOOL_DEPS="$ltmain" 8225 8226# Always use our own libtool. 8227LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254test -z "$LN_S" && LN_S="ln -s" 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269if test -n "${ZSH_VERSION+set}" ; then 8270 setopt NO_GLOB_SUBST 8271fi 8272 8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8274$as_echo_n "checking for objdir... " >&6; } 8275if ${lt_cv_objdir+:} false; then : 8276 $as_echo_n "(cached) " >&6 8277else 8278 rm -f .libs 2>/dev/null 8279mkdir .libs 2>/dev/null 8280if test -d .libs; then 8281 lt_cv_objdir=.libs 8282else 8283 # MS-DOS does not allow filenames that begin with a dot. 8284 lt_cv_objdir=_libs 8285fi 8286rmdir .libs 2>/dev/null 8287fi 8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8289$as_echo "$lt_cv_objdir" >&6; } 8290objdir=$lt_cv_objdir 8291 8292 8293 8294 8295 8296cat >>confdefs.h <<_ACEOF 8297#define LT_OBJDIR "$lt_cv_objdir/" 8298_ACEOF 8299 8300 8301 8302 8303case $host_os in 8304aix3*) 8305 # AIX sometimes has problems with the GCC collect2 program. For some 8306 # reason, if we set the COLLECT_NAMES environment variable, the problems 8307 # vanish in a puff of smoke. 8308 if test "X${COLLECT_NAMES+set}" != Xset; then 8309 COLLECT_NAMES= 8310 export COLLECT_NAMES 8311 fi 8312 ;; 8313esac 8314 8315# Global variables: 8316ofile=libtool 8317can_build_shared=yes 8318 8319# All known linkers require a `.a' archive for static linking (except MSVC, 8320# which needs '.lib'). 8321libext=a 8322 8323with_gnu_ld="$lt_cv_prog_gnu_ld" 8324 8325old_CC="$CC" 8326old_CFLAGS="$CFLAGS" 8327 8328# Set sane defaults for various variables 8329test -z "$CC" && CC=cc 8330test -z "$LTCC" && LTCC=$CC 8331test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8332test -z "$LD" && LD=ld 8333test -z "$ac_objext" && ac_objext=o 8334 8335for cc_temp in $compiler""; do 8336 case $cc_temp in 8337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8339 \-*) ;; 8340 *) break;; 8341 esac 8342done 8343cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8344 8345 8346# Only perform the check for file, if the check method requires it 8347test -z "$MAGIC_CMD" && MAGIC_CMD=file 8348case $deplibs_check_method in 8349file_magic*) 8350 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8352$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8353if ${lt_cv_path_MAGIC_CMD+:} false; then : 8354 $as_echo_n "(cached) " >&6 8355else 8356 case $MAGIC_CMD in 8357[\\/*] | ?:[\\/]*) 8358 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8359 ;; 8360*) 8361 lt_save_MAGIC_CMD="$MAGIC_CMD" 8362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8363 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8364 for ac_dir in $ac_dummy; do 8365 IFS="$lt_save_ifs" 8366 test -z "$ac_dir" && ac_dir=. 8367 if test -f $ac_dir/${ac_tool_prefix}file; then 8368 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8369 if test -n "$file_magic_test_file"; then 8370 case $deplibs_check_method in 8371 "file_magic "*) 8372 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8373 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8374 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8375 $EGREP "$file_magic_regex" > /dev/null; then 8376 : 8377 else 8378 cat <<_LT_EOF 1>&2 8379 8380*** Warning: the command libtool uses to detect shared libraries, 8381*** $file_magic_cmd, produces output that libtool cannot recognize. 8382*** The result is that libtool may fail to recognize shared libraries 8383*** as such. This will affect the creation of libtool libraries that 8384*** depend on shared libraries, but programs linked with such libtool 8385*** libraries will work regardless of this problem. Nevertheless, you 8386*** may want to report the problem to your system manager and/or to 8387*** bug-libtool@gnu.org 8388 8389_LT_EOF 8390 fi ;; 8391 esac 8392 fi 8393 break 8394 fi 8395 done 8396 IFS="$lt_save_ifs" 8397 MAGIC_CMD="$lt_save_MAGIC_CMD" 8398 ;; 8399esac 8400fi 8401 8402MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8403if test -n "$MAGIC_CMD"; then 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8405$as_echo "$MAGIC_CMD" >&6; } 8406else 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8408$as_echo "no" >&6; } 8409fi 8410 8411 8412 8413 8414 8415if test -z "$lt_cv_path_MAGIC_CMD"; then 8416 if test -n "$ac_tool_prefix"; then 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8418$as_echo_n "checking for file... " >&6; } 8419if ${lt_cv_path_MAGIC_CMD+:} false; then : 8420 $as_echo_n "(cached) " >&6 8421else 8422 case $MAGIC_CMD in 8423[\\/*] | ?:[\\/]*) 8424 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8425 ;; 8426*) 8427 lt_save_MAGIC_CMD="$MAGIC_CMD" 8428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8429 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8430 for ac_dir in $ac_dummy; do 8431 IFS="$lt_save_ifs" 8432 test -z "$ac_dir" && ac_dir=. 8433 if test -f $ac_dir/file; then 8434 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8435 if test -n "$file_magic_test_file"; then 8436 case $deplibs_check_method in 8437 "file_magic "*) 8438 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8441 $EGREP "$file_magic_regex" > /dev/null; then 8442 : 8443 else 8444 cat <<_LT_EOF 1>&2 8445 8446*** Warning: the command libtool uses to detect shared libraries, 8447*** $file_magic_cmd, produces output that libtool cannot recognize. 8448*** The result is that libtool may fail to recognize shared libraries 8449*** as such. This will affect the creation of libtool libraries that 8450*** depend on shared libraries, but programs linked with such libtool 8451*** libraries will work regardless of this problem. Nevertheless, you 8452*** may want to report the problem to your system manager and/or to 8453*** bug-libtool@gnu.org 8454 8455_LT_EOF 8456 fi ;; 8457 esac 8458 fi 8459 break 8460 fi 8461 done 8462 IFS="$lt_save_ifs" 8463 MAGIC_CMD="$lt_save_MAGIC_CMD" 8464 ;; 8465esac 8466fi 8467 8468MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8469if test -n "$MAGIC_CMD"; then 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8471$as_echo "$MAGIC_CMD" >&6; } 8472else 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8474$as_echo "no" >&6; } 8475fi 8476 8477 8478 else 8479 MAGIC_CMD=: 8480 fi 8481fi 8482 8483 fi 8484 ;; 8485esac 8486 8487# Use C for the default configuration in the libtool script 8488 8489lt_save_CC="$CC" 8490ac_ext=c 8491ac_cpp='$CPP $CPPFLAGS' 8492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8494ac_compiler_gnu=$ac_cv_c_compiler_gnu 8495 8496 8497# Source file extension for C test sources. 8498ac_ext=c 8499 8500# Object file extension for compiled C test sources. 8501objext=o 8502objext=$objext 8503 8504# Code to be used in simple compile tests 8505lt_simple_compile_test_code="int some_variable = 0;" 8506 8507# Code to be used in simple link tests 8508lt_simple_link_test_code='int main(){return(0);}' 8509 8510 8511 8512 8513 8514 8515 8516# If no C compiler was specified, use CC. 8517LTCC=${LTCC-"$CC"} 8518 8519# If no C compiler flags were specified, use CFLAGS. 8520LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8521 8522# Allow CC to be a program name with arguments. 8523compiler=$CC 8524 8525# Save the default compiler, since it gets overwritten when the other 8526# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8527compiler_DEFAULT=$CC 8528 8529# save warnings/boilerplate of simple test code 8530ac_outfile=conftest.$ac_objext 8531echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8532eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8533_lt_compiler_boilerplate=`cat conftest.err` 8534$RM conftest* 8535 8536ac_outfile=conftest.$ac_objext 8537echo "$lt_simple_link_test_code" >conftest.$ac_ext 8538eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8539_lt_linker_boilerplate=`cat conftest.err` 8540$RM -r conftest* 8541 8542 8543## CAVEAT EMPTOR: 8544## There is no encapsulation within the following macros, do not change 8545## the running order or otherwise move them around unless you know exactly 8546## what you are doing... 8547if test -n "$compiler"; then 8548 8549lt_prog_compiler_no_builtin_flag= 8550 8551if test "$GCC" = yes; then 8552 case $cc_basename in 8553 nvcc*) 8554 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8555 *) 8556 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8557 esac 8558 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8560$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8561if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8562 $as_echo_n "(cached) " >&6 8563else 8564 lt_cv_prog_compiler_rtti_exceptions=no 8565 ac_outfile=conftest.$ac_objext 8566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8567 lt_compiler_flag="-fno-rtti -fno-exceptions" 8568 # Insert the option either (1) after the last *FLAGS variable, or 8569 # (2) before a word containing "conftest.", or (3) at the end. 8570 # Note that $ac_compile itself does not contain backslashes and begins 8571 # with a dollar sign (not a hyphen), so the echo should work correctly. 8572 # The option is referenced via a variable to avoid confusing sed. 8573 lt_compile=`echo "$ac_compile" | $SED \ 8574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8576 -e 's:$: $lt_compiler_flag:'` 8577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8578 (eval "$lt_compile" 2>conftest.err) 8579 ac_status=$? 8580 cat conftest.err >&5 8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8582 if (exit $ac_status) && test -s "$ac_outfile"; then 8583 # The compiler can only warn and ignore the option if not recognized 8584 # So say no if there are warnings other than the usual output. 8585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8587 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8588 lt_cv_prog_compiler_rtti_exceptions=yes 8589 fi 8590 fi 8591 $RM conftest* 8592 8593fi 8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8595$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8596 8597if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8598 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8599else 8600 : 8601fi 8602 8603fi 8604 8605 8606 8607 8608 8609 8610 lt_prog_compiler_wl= 8611lt_prog_compiler_pic= 8612lt_prog_compiler_static= 8613 8614 8615 if test "$GCC" = yes; then 8616 lt_prog_compiler_wl='-Wl,' 8617 lt_prog_compiler_static='-static' 8618 8619 case $host_os in 8620 aix*) 8621 # All AIX code is PIC. 8622 if test "$host_cpu" = ia64; then 8623 # AIX 5 now supports IA64 processor 8624 lt_prog_compiler_static='-Bstatic' 8625 fi 8626 ;; 8627 8628 amigaos*) 8629 case $host_cpu in 8630 powerpc) 8631 # see comment about AmigaOS4 .so support 8632 lt_prog_compiler_pic='-fPIC' 8633 ;; 8634 m68k) 8635 # FIXME: we need at least 68020 code to build shared libraries, but 8636 # adding the `-m68020' flag to GCC prevents building anything better, 8637 # like `-m68040'. 8638 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8639 ;; 8640 esac 8641 ;; 8642 8643 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8644 # PIC is the default for these OSes. 8645 ;; 8646 8647 mingw* | cygwin* | pw32* | os2* | cegcc*) 8648 # This hack is so that the source file can tell whether it is being 8649 # built for inclusion in a dll (and should export symbols for example). 8650 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8651 # (--disable-auto-import) libraries 8652 lt_prog_compiler_pic='-DDLL_EXPORT' 8653 ;; 8654 8655 darwin* | rhapsody*) 8656 # PIC is the default on this platform 8657 # Common symbols not allowed in MH_DYLIB files 8658 lt_prog_compiler_pic='-fno-common' 8659 ;; 8660 8661 haiku*) 8662 # PIC is the default for Haiku. 8663 # The "-static" flag exists, but is broken. 8664 lt_prog_compiler_static= 8665 ;; 8666 8667 hpux*) 8668 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8669 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8670 # sets the default TLS model and affects inlining. 8671 case $host_cpu in 8672 hppa*64*) 8673 # +Z the default 8674 ;; 8675 *) 8676 lt_prog_compiler_pic='-fPIC' 8677 ;; 8678 esac 8679 ;; 8680 8681 interix[3-9]*) 8682 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8683 # Instead, we relocate shared libraries at runtime. 8684 ;; 8685 8686 msdosdjgpp*) 8687 # Just because we use GCC doesn't mean we suddenly get shared libraries 8688 # on systems that don't support them. 8689 lt_prog_compiler_can_build_shared=no 8690 enable_shared=no 8691 ;; 8692 8693 *nto* | *qnx*) 8694 # QNX uses GNU C++, but need to define -shared option too, otherwise 8695 # it will coredump. 8696 lt_prog_compiler_pic='-fPIC -shared' 8697 ;; 8698 8699 sysv4*MP*) 8700 if test -d /usr/nec; then 8701 lt_prog_compiler_pic=-Kconform_pic 8702 fi 8703 ;; 8704 8705 *) 8706 lt_prog_compiler_pic='-fPIC' 8707 ;; 8708 esac 8709 8710 case $cc_basename in 8711 nvcc*) # Cuda Compiler Driver 2.2 8712 lt_prog_compiler_wl='-Xlinker ' 8713 lt_prog_compiler_pic='-Xcompiler -fPIC' 8714 ;; 8715 esac 8716 else 8717 # PORTME Check for flag to pass linker flags through the system compiler. 8718 case $host_os in 8719 aix*) 8720 lt_prog_compiler_wl='-Wl,' 8721 if test "$host_cpu" = ia64; then 8722 # AIX 5 now supports IA64 processor 8723 lt_prog_compiler_static='-Bstatic' 8724 else 8725 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8726 fi 8727 ;; 8728 8729 mingw* | cygwin* | pw32* | os2* | cegcc*) 8730 # This hack is so that the source file can tell whether it is being 8731 # built for inclusion in a dll (and should export symbols for example). 8732 lt_prog_compiler_pic='-DDLL_EXPORT' 8733 ;; 8734 8735 hpux9* | hpux10* | hpux11*) 8736 lt_prog_compiler_wl='-Wl,' 8737 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8738 # not for PA HP-UX. 8739 case $host_cpu in 8740 hppa*64*|ia64*) 8741 # +Z the default 8742 ;; 8743 *) 8744 lt_prog_compiler_pic='+Z' 8745 ;; 8746 esac 8747 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8748 lt_prog_compiler_static='${wl}-a ${wl}archive' 8749 ;; 8750 8751 irix5* | irix6* | nonstopux*) 8752 lt_prog_compiler_wl='-Wl,' 8753 # PIC (with -KPIC) is the default. 8754 lt_prog_compiler_static='-non_shared' 8755 ;; 8756 8757 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8758 case $cc_basename in 8759 # old Intel for x86_64 which still supported -KPIC. 8760 ecc*) 8761 lt_prog_compiler_wl='-Wl,' 8762 lt_prog_compiler_pic='-KPIC' 8763 lt_prog_compiler_static='-static' 8764 ;; 8765 # icc used to be incompatible with GCC. 8766 # ICC 10 doesn't accept -KPIC any more. 8767 icc* | ifort*) 8768 lt_prog_compiler_wl='-Wl,' 8769 lt_prog_compiler_pic='-fPIC' 8770 lt_prog_compiler_static='-static' 8771 ;; 8772 # Lahey Fortran 8.1. 8773 lf95*) 8774 lt_prog_compiler_wl='-Wl,' 8775 lt_prog_compiler_pic='--shared' 8776 lt_prog_compiler_static='--static' 8777 ;; 8778 nagfor*) 8779 # NAG Fortran compiler 8780 lt_prog_compiler_wl='-Wl,-Wl,,' 8781 lt_prog_compiler_pic='-PIC' 8782 lt_prog_compiler_static='-Bstatic' 8783 ;; 8784 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8785 # Portland Group compilers (*not* the Pentium gcc compiler, 8786 # which looks to be a dead project) 8787 lt_prog_compiler_wl='-Wl,' 8788 lt_prog_compiler_pic='-fpic' 8789 lt_prog_compiler_static='-Bstatic' 8790 ;; 8791 ccc*) 8792 lt_prog_compiler_wl='-Wl,' 8793 # All Alpha code is PIC. 8794 lt_prog_compiler_static='-non_shared' 8795 ;; 8796 xl* | bgxl* | bgf* | mpixl*) 8797 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8798 lt_prog_compiler_wl='-Wl,' 8799 lt_prog_compiler_pic='-qpic' 8800 lt_prog_compiler_static='-qstaticlink' 8801 ;; 8802 *) 8803 case `$CC -V 2>&1 | sed 5q` in 8804 *Sun\ F* | *Sun*Fortran*) 8805 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8806 lt_prog_compiler_pic='-KPIC' 8807 lt_prog_compiler_static='-Bstatic' 8808 lt_prog_compiler_wl='' 8809 ;; 8810 *Sun\ C*) 8811 # Sun C 5.9 8812 lt_prog_compiler_pic='-KPIC' 8813 lt_prog_compiler_static='-Bstatic' 8814 lt_prog_compiler_wl='-Wl,' 8815 ;; 8816 esac 8817 ;; 8818 esac 8819 ;; 8820 8821 newsos6) 8822 lt_prog_compiler_pic='-KPIC' 8823 lt_prog_compiler_static='-Bstatic' 8824 ;; 8825 8826 *nto* | *qnx*) 8827 # QNX uses GNU C++, but need to define -shared option too, otherwise 8828 # it will coredump. 8829 lt_prog_compiler_pic='-fPIC -shared' 8830 ;; 8831 8832 osf3* | osf4* | osf5*) 8833 lt_prog_compiler_wl='-Wl,' 8834 # All OSF/1 code is PIC. 8835 lt_prog_compiler_static='-non_shared' 8836 ;; 8837 8838 rdos*) 8839 lt_prog_compiler_static='-non_shared' 8840 ;; 8841 8842 solaris*) 8843 lt_prog_compiler_pic='-KPIC' 8844 lt_prog_compiler_static='-Bstatic' 8845 case $cc_basename in 8846 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8847 lt_prog_compiler_wl='-Qoption ld ';; 8848 *) 8849 lt_prog_compiler_wl='-Wl,';; 8850 esac 8851 ;; 8852 8853 sunos4*) 8854 lt_prog_compiler_wl='-Qoption ld ' 8855 lt_prog_compiler_pic='-PIC' 8856 lt_prog_compiler_static='-Bstatic' 8857 ;; 8858 8859 sysv4 | sysv4.2uw2* | sysv4.3*) 8860 lt_prog_compiler_wl='-Wl,' 8861 lt_prog_compiler_pic='-KPIC' 8862 lt_prog_compiler_static='-Bstatic' 8863 ;; 8864 8865 sysv4*MP*) 8866 if test -d /usr/nec ;then 8867 lt_prog_compiler_pic='-Kconform_pic' 8868 lt_prog_compiler_static='-Bstatic' 8869 fi 8870 ;; 8871 8872 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8873 lt_prog_compiler_wl='-Wl,' 8874 lt_prog_compiler_pic='-KPIC' 8875 lt_prog_compiler_static='-Bstatic' 8876 ;; 8877 8878 unicos*) 8879 lt_prog_compiler_wl='-Wl,' 8880 lt_prog_compiler_can_build_shared=no 8881 ;; 8882 8883 uts4*) 8884 lt_prog_compiler_pic='-pic' 8885 lt_prog_compiler_static='-Bstatic' 8886 ;; 8887 8888 *) 8889 lt_prog_compiler_can_build_shared=no 8890 ;; 8891 esac 8892 fi 8893 8894case $host_os in 8895 # For platforms which do not support PIC, -DPIC is meaningless: 8896 *djgpp*) 8897 lt_prog_compiler_pic= 8898 ;; 8899 *) 8900 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8901 ;; 8902esac 8903 8904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8905$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8906if ${lt_cv_prog_compiler_pic+:} false; then : 8907 $as_echo_n "(cached) " >&6 8908else 8909 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8910fi 8911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8912$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8913lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8914 8915# 8916# Check to make sure the PIC flag actually works. 8917# 8918if test -n "$lt_prog_compiler_pic"; then 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8920$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8921if ${lt_cv_prog_compiler_pic_works+:} false; then : 8922 $as_echo_n "(cached) " >&6 8923else 8924 lt_cv_prog_compiler_pic_works=no 8925 ac_outfile=conftest.$ac_objext 8926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8927 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8928 # Insert the option either (1) after the last *FLAGS variable, or 8929 # (2) before a word containing "conftest.", or (3) at the end. 8930 # Note that $ac_compile itself does not contain backslashes and begins 8931 # with a dollar sign (not a hyphen), so the echo should work correctly. 8932 # The option is referenced via a variable to avoid confusing sed. 8933 lt_compile=`echo "$ac_compile" | $SED \ 8934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8936 -e 's:$: $lt_compiler_flag:'` 8937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8938 (eval "$lt_compile" 2>conftest.err) 8939 ac_status=$? 8940 cat conftest.err >&5 8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8942 if (exit $ac_status) && test -s "$ac_outfile"; then 8943 # The compiler can only warn and ignore the option if not recognized 8944 # So say no if there are warnings other than the usual output. 8945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8948 lt_cv_prog_compiler_pic_works=yes 8949 fi 8950 fi 8951 $RM conftest* 8952 8953fi 8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8955$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8956 8957if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8958 case $lt_prog_compiler_pic in 8959 "" | " "*) ;; 8960 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8961 esac 8962else 8963 lt_prog_compiler_pic= 8964 lt_prog_compiler_can_build_shared=no 8965fi 8966 8967fi 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979# 8980# Check to make sure the static flag actually works. 8981# 8982wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8984$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8985if ${lt_cv_prog_compiler_static_works+:} false; then : 8986 $as_echo_n "(cached) " >&6 8987else 8988 lt_cv_prog_compiler_static_works=no 8989 save_LDFLAGS="$LDFLAGS" 8990 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8991 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8993 # The linker can only warn and ignore the option if not recognized 8994 # So say no if there are warnings 8995 if test -s conftest.err; then 8996 # Append any errors to the config.log. 8997 cat conftest.err 1>&5 8998 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9000 if diff conftest.exp conftest.er2 >/dev/null; then 9001 lt_cv_prog_compiler_static_works=yes 9002 fi 9003 else 9004 lt_cv_prog_compiler_static_works=yes 9005 fi 9006 fi 9007 $RM -r conftest* 9008 LDFLAGS="$save_LDFLAGS" 9009 9010fi 9011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9012$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9013 9014if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9015 : 9016else 9017 lt_prog_compiler_static= 9018fi 9019 9020 9021 9022 9023 9024 9025 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9027$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9028if ${lt_cv_prog_compiler_c_o+:} false; then : 9029 $as_echo_n "(cached) " >&6 9030else 9031 lt_cv_prog_compiler_c_o=no 9032 $RM -r conftest 2>/dev/null 9033 mkdir conftest 9034 cd conftest 9035 mkdir out 9036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9037 9038 lt_compiler_flag="-o out/conftest2.$ac_objext" 9039 # Insert the option either (1) after the last *FLAGS variable, or 9040 # (2) before a word containing "conftest.", or (3) at the end. 9041 # Note that $ac_compile itself does not contain backslashes and begins 9042 # with a dollar sign (not a hyphen), so the echo should work correctly. 9043 lt_compile=`echo "$ac_compile" | $SED \ 9044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9046 -e 's:$: $lt_compiler_flag:'` 9047 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9048 (eval "$lt_compile" 2>out/conftest.err) 9049 ac_status=$? 9050 cat out/conftest.err >&5 9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9052 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9053 then 9054 # The compiler can only warn and ignore the option if not recognized 9055 # So say no if there are warnings 9056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9057 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9058 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9059 lt_cv_prog_compiler_c_o=yes 9060 fi 9061 fi 9062 chmod u+w . 2>&5 9063 $RM conftest* 9064 # SGI C++ compiler will create directory out/ii_files/ for 9065 # template instantiation 9066 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9067 $RM out/* && rmdir out 9068 cd .. 9069 $RM -r conftest 9070 $RM conftest* 9071 9072fi 9073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9074$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9075 9076 9077 9078 9079 9080 9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9082$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9083if ${lt_cv_prog_compiler_c_o+:} false; then : 9084 $as_echo_n "(cached) " >&6 9085else 9086 lt_cv_prog_compiler_c_o=no 9087 $RM -r conftest 2>/dev/null 9088 mkdir conftest 9089 cd conftest 9090 mkdir out 9091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9092 9093 lt_compiler_flag="-o out/conftest2.$ac_objext" 9094 # Insert the option either (1) after the last *FLAGS variable, or 9095 # (2) before a word containing "conftest.", or (3) at the end. 9096 # Note that $ac_compile itself does not contain backslashes and begins 9097 # with a dollar sign (not a hyphen), so the echo should work correctly. 9098 lt_compile=`echo "$ac_compile" | $SED \ 9099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9101 -e 's:$: $lt_compiler_flag:'` 9102 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9103 (eval "$lt_compile" 2>out/conftest.err) 9104 ac_status=$? 9105 cat out/conftest.err >&5 9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9107 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9108 then 9109 # The compiler can only warn and ignore the option if not recognized 9110 # So say no if there are warnings 9111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9112 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9113 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9114 lt_cv_prog_compiler_c_o=yes 9115 fi 9116 fi 9117 chmod u+w . 2>&5 9118 $RM conftest* 9119 # SGI C++ compiler will create directory out/ii_files/ for 9120 # template instantiation 9121 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9122 $RM out/* && rmdir out 9123 cd .. 9124 $RM -r conftest 9125 $RM conftest* 9126 9127fi 9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9129$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9130 9131 9132 9133 9134hard_links="nottested" 9135if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9136 # do not overwrite the value of need_locks provided by the user 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9138$as_echo_n "checking if we can lock with hard links... " >&6; } 9139 hard_links=yes 9140 $RM conftest* 9141 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9142 touch conftest.a 9143 ln conftest.a conftest.b 2>&5 || hard_links=no 9144 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9146$as_echo "$hard_links" >&6; } 9147 if test "$hard_links" = no; then 9148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9149$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9150 need_locks=warn 9151 fi 9152else 9153 need_locks=no 9154fi 9155 9156 9157 9158 9159 9160 9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9162$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9163 9164 runpath_var= 9165 allow_undefined_flag= 9166 always_export_symbols=no 9167 archive_cmds= 9168 archive_expsym_cmds= 9169 compiler_needs_object=no 9170 enable_shared_with_static_runtimes=no 9171 export_dynamic_flag_spec= 9172 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9173 hardcode_automatic=no 9174 hardcode_direct=no 9175 hardcode_direct_absolute=no 9176 hardcode_libdir_flag_spec= 9177 hardcode_libdir_flag_spec_ld= 9178 hardcode_libdir_separator= 9179 hardcode_minus_L=no 9180 hardcode_shlibpath_var=unsupported 9181 inherit_rpath=no 9182 link_all_deplibs=unknown 9183 module_cmds= 9184 module_expsym_cmds= 9185 old_archive_from_new_cmds= 9186 old_archive_from_expsyms_cmds= 9187 thread_safe_flag_spec= 9188 whole_archive_flag_spec= 9189 # include_expsyms should be a list of space-separated symbols to be *always* 9190 # included in the symbol list 9191 include_expsyms= 9192 # exclude_expsyms can be an extended regexp of symbols to exclude 9193 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9194 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9195 # as well as any symbol that contains `d'. 9196 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9197 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9198 # platforms (ab)use it in PIC code, but their linkers get confused if 9199 # the symbol is explicitly referenced. Since portable code cannot 9200 # rely on this symbol name, it's probably fine to never include it in 9201 # preloaded symbol tables. 9202 # Exclude shared library initialization/finalization symbols. 9203 extract_expsyms_cmds= 9204 9205 case $host_os in 9206 cygwin* | mingw* | pw32* | cegcc*) 9207 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9208 # When not using gcc, we currently assume that we are using 9209 # Microsoft Visual C++. 9210 if test "$GCC" != yes; then 9211 with_gnu_ld=no 9212 fi 9213 ;; 9214 interix*) 9215 # we just hope/assume this is gcc and not c89 (= MSVC++) 9216 with_gnu_ld=yes 9217 ;; 9218 openbsd*) 9219 with_gnu_ld=no 9220 ;; 9221 esac 9222 9223 ld_shlibs=yes 9224 9225 # On some targets, GNU ld is compatible enough with the native linker 9226 # that we're better off using the native interface for both. 9227 lt_use_gnu_ld_interface=no 9228 if test "$with_gnu_ld" = yes; then 9229 case $host_os in 9230 aix*) 9231 # The AIX port of GNU ld has always aspired to compatibility 9232 # with the native linker. However, as the warning in the GNU ld 9233 # block says, versions before 2.19.5* couldn't really create working 9234 # shared libraries, regardless of the interface used. 9235 case `$LD -v 2>&1` in 9236 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9237 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9238 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9239 *) 9240 lt_use_gnu_ld_interface=yes 9241 ;; 9242 esac 9243 ;; 9244 *) 9245 lt_use_gnu_ld_interface=yes 9246 ;; 9247 esac 9248 fi 9249 9250 if test "$lt_use_gnu_ld_interface" = yes; then 9251 # If archive_cmds runs LD, not CC, wlarc should be empty 9252 wlarc='${wl}' 9253 9254 # Set some defaults for GNU ld with shared library support. These 9255 # are reset later if shared libraries are not supported. Putting them 9256 # here allows them to be overridden if necessary. 9257 runpath_var=LD_RUN_PATH 9258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9259 export_dynamic_flag_spec='${wl}--export-dynamic' 9260 # ancient GNU ld didn't support --whole-archive et. al. 9261 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9262 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9263 else 9264 whole_archive_flag_spec= 9265 fi 9266 supports_anon_versioning=no 9267 case `$LD -v 2>&1` in 9268 *GNU\ gold*) supports_anon_versioning=yes ;; 9269 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9270 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9271 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9272 *\ 2.11.*) ;; # other 2.11 versions 9273 *) supports_anon_versioning=yes ;; 9274 esac 9275 9276 # See if GNU ld supports shared libraries. 9277 case $host_os in 9278 aix[3-9]*) 9279 # On AIX/PPC, the GNU linker is very broken 9280 if test "$host_cpu" != ia64; then 9281 ld_shlibs=no 9282 cat <<_LT_EOF 1>&2 9283 9284*** Warning: the GNU linker, at least up to release 2.19, is reported 9285*** to be unable to reliably create shared libraries on AIX. 9286*** Therefore, libtool is disabling shared libraries support. If you 9287*** really care for shared libraries, you may want to install binutils 9288*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9289*** You will then need to restart the configuration process. 9290 9291_LT_EOF 9292 fi 9293 ;; 9294 9295 amigaos*) 9296 case $host_cpu in 9297 powerpc) 9298 # see comment about AmigaOS4 .so support 9299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9300 archive_expsym_cmds='' 9301 ;; 9302 m68k) 9303 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)' 9304 hardcode_libdir_flag_spec='-L$libdir' 9305 hardcode_minus_L=yes 9306 ;; 9307 esac 9308 ;; 9309 9310 beos*) 9311 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9312 allow_undefined_flag=unsupported 9313 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9314 # support --undefined. This deserves some investigation. FIXME 9315 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9316 else 9317 ld_shlibs=no 9318 fi 9319 ;; 9320 9321 cygwin* | mingw* | pw32* | cegcc*) 9322 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9323 # as there is no search path for DLLs. 9324 hardcode_libdir_flag_spec='-L$libdir' 9325 export_dynamic_flag_spec='${wl}--export-all-symbols' 9326 allow_undefined_flag=unsupported 9327 always_export_symbols=no 9328 enable_shared_with_static_runtimes=yes 9329 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' 9330 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9331 9332 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9334 # If the export-symbols file already is a .def file (1st line 9335 # is EXPORTS), use it as is; otherwise, prepend... 9336 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9337 cp $export_symbols $output_objdir/$soname.def; 9338 else 9339 echo EXPORTS > $output_objdir/$soname.def; 9340 cat $export_symbols >> $output_objdir/$soname.def; 9341 fi~ 9342 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9343 else 9344 ld_shlibs=no 9345 fi 9346 ;; 9347 9348 haiku*) 9349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9350 link_all_deplibs=yes 9351 ;; 9352 9353 interix[3-9]*) 9354 hardcode_direct=no 9355 hardcode_shlibpath_var=no 9356 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9357 export_dynamic_flag_spec='${wl}-E' 9358 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9359 # Instead, shared libraries are loaded at an image base (0x10000000 by 9360 # default) and relocated if they conflict, which is a slow very memory 9361 # consuming and fragmenting process. To avoid this, we pick a random, 9362 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9363 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9364 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9365 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' 9366 ;; 9367 9368 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9369 tmp_diet=no 9370 if test "$host_os" = linux-dietlibc; then 9371 case $cc_basename in 9372 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9373 esac 9374 fi 9375 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9376 && test "$tmp_diet" = no 9377 then 9378 tmp_addflag=' $pic_flag' 9379 tmp_sharedflag='-shared' 9380 case $cc_basename,$host_cpu in 9381 pgcc*) # Portland Group C compiler 9382 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' 9383 tmp_addflag=' $pic_flag' 9384 ;; 9385 pgf77* | pgf90* | pgf95* | pgfortran*) 9386 # Portland Group f77 and f90 compilers 9387 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' 9388 tmp_addflag=' $pic_flag -Mnomain' ;; 9389 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9390 tmp_addflag=' -i_dynamic' ;; 9391 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9392 tmp_addflag=' -i_dynamic -nofor_main' ;; 9393 ifc* | ifort*) # Intel Fortran compiler 9394 tmp_addflag=' -nofor_main' ;; 9395 lf95*) # Lahey Fortran 8.1 9396 whole_archive_flag_spec= 9397 tmp_sharedflag='--shared' ;; 9398 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9399 tmp_sharedflag='-qmkshrobj' 9400 tmp_addflag= ;; 9401 nvcc*) # Cuda Compiler Driver 2.2 9402 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' 9403 compiler_needs_object=yes 9404 ;; 9405 esac 9406 case `$CC -V 2>&1 | sed 5q` in 9407 *Sun\ C*) # Sun C 5.9 9408 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' 9409 compiler_needs_object=yes 9410 tmp_sharedflag='-G' ;; 9411 *Sun\ F*) # Sun Fortran 8.3 9412 tmp_sharedflag='-G' ;; 9413 esac 9414 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9415 9416 if test "x$supports_anon_versioning" = xyes; then 9417 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9419 echo "local: *; };" >> $output_objdir/$libname.ver~ 9420 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9421 fi 9422 9423 case $cc_basename in 9424 xlf* | bgf* | bgxlf* | mpixlf*) 9425 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9426 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9427 hardcode_libdir_flag_spec= 9428 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9429 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9430 if test "x$supports_anon_versioning" = xyes; then 9431 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9433 echo "local: *; };" >> $output_objdir/$libname.ver~ 9434 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9435 fi 9436 ;; 9437 esac 9438 else 9439 ld_shlibs=no 9440 fi 9441 ;; 9442 9443 netbsd*) 9444 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9445 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9446 wlarc= 9447 else 9448 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9449 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9450 fi 9451 ;; 9452 9453 solaris*) 9454 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9455 ld_shlibs=no 9456 cat <<_LT_EOF 1>&2 9457 9458*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9459*** create shared libraries on Solaris systems. Therefore, libtool 9460*** is disabling shared libraries support. We urge you to upgrade GNU 9461*** binutils to release 2.9.1 or newer. Another option is to modify 9462*** your PATH or compiler configuration so that the native linker is 9463*** used, and then restart. 9464 9465_LT_EOF 9466 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9467 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9468 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9469 else 9470 ld_shlibs=no 9471 fi 9472 ;; 9473 9474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9475 case `$LD -v 2>&1` in 9476 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9477 ld_shlibs=no 9478 cat <<_LT_EOF 1>&2 9479 9480*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9481*** reliably create shared libraries on SCO systems. Therefore, libtool 9482*** is disabling shared libraries support. We urge you to upgrade GNU 9483*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9484*** your PATH or compiler configuration so that the native linker is 9485*** used, and then restart. 9486 9487_LT_EOF 9488 ;; 9489 *) 9490 # For security reasons, it is highly recommended that you always 9491 # use absolute paths for naming shared libraries, and exclude the 9492 # DT_RUNPATH tag from executables and libraries. But doing so 9493 # requires that you compile everything twice, which is a pain. 9494 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9498 else 9499 ld_shlibs=no 9500 fi 9501 ;; 9502 esac 9503 ;; 9504 9505 sunos4*) 9506 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9507 wlarc= 9508 hardcode_direct=yes 9509 hardcode_shlibpath_var=no 9510 ;; 9511 9512 *) 9513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9514 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9515 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9516 else 9517 ld_shlibs=no 9518 fi 9519 ;; 9520 esac 9521 9522 if test "$ld_shlibs" = no; then 9523 runpath_var= 9524 hardcode_libdir_flag_spec= 9525 export_dynamic_flag_spec= 9526 whole_archive_flag_spec= 9527 fi 9528 else 9529 # PORTME fill in a description of your system's linker (not GNU ld) 9530 case $host_os in 9531 aix3*) 9532 allow_undefined_flag=unsupported 9533 always_export_symbols=yes 9534 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' 9535 # Note: this linker hardcodes the directories in LIBPATH if there 9536 # are no directories specified by -L. 9537 hardcode_minus_L=yes 9538 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9539 # Neither direct hardcoding nor static linking is supported with a 9540 # broken collect2. 9541 hardcode_direct=unsupported 9542 fi 9543 ;; 9544 9545 aix[4-9]*) 9546 if test "$host_cpu" = ia64; then 9547 # On IA64, the linker does run time linking by default, so we don't 9548 # have to do anything special. 9549 aix_use_runtimelinking=no 9550 exp_sym_flag='-Bexport' 9551 no_entry_flag="" 9552 else 9553 # If we're using GNU nm, then we don't want the "-C" option. 9554 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9555 # Also, AIX nm treats weak defined symbols like other global 9556 # defined symbols, whereas GNU nm marks them as "W". 9557 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9558 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9559 else 9560 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9561 fi 9562 aix_use_runtimelinking=no 9563 9564 # Test if we are trying to use run time linking or normal 9565 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9566 # need to do runtime linking. 9567 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9568 for ld_flag in $LDFLAGS; do 9569 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9570 aix_use_runtimelinking=yes 9571 break 9572 fi 9573 done 9574 ;; 9575 esac 9576 9577 exp_sym_flag='-bexport' 9578 no_entry_flag='-bnoentry' 9579 fi 9580 9581 # When large executables or shared objects are built, AIX ld can 9582 # have problems creating the table of contents. If linking a library 9583 # or program results in "error TOC overflow" add -mminimal-toc to 9584 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9585 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9586 9587 archive_cmds='' 9588 hardcode_direct=yes 9589 hardcode_direct_absolute=yes 9590 hardcode_libdir_separator=':' 9591 link_all_deplibs=yes 9592 file_list_spec='${wl}-f,' 9593 9594 if test "$GCC" = yes; then 9595 case $host_os in aix4.[012]|aix4.[012].*) 9596 # We only want to do this on AIX 4.2 and lower, the check 9597 # below for broken collect2 doesn't work under 4.3+ 9598 collect2name=`${CC} -print-prog-name=collect2` 9599 if test -f "$collect2name" && 9600 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9601 then 9602 # We have reworked collect2 9603 : 9604 else 9605 # We have old collect2 9606 hardcode_direct=unsupported 9607 # It fails to find uninstalled libraries when the uninstalled 9608 # path is not listed in the libpath. Setting hardcode_minus_L 9609 # to unsupported forces relinking 9610 hardcode_minus_L=yes 9611 hardcode_libdir_flag_spec='-L$libdir' 9612 hardcode_libdir_separator= 9613 fi 9614 ;; 9615 esac 9616 shared_flag='-shared' 9617 if test "$aix_use_runtimelinking" = yes; then 9618 shared_flag="$shared_flag "'${wl}-G' 9619 fi 9620 else 9621 # not using gcc 9622 if test "$host_cpu" = ia64; then 9623 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9624 # chokes on -Wl,-G. The following line is correct: 9625 shared_flag='-G' 9626 else 9627 if test "$aix_use_runtimelinking" = yes; then 9628 shared_flag='${wl}-G' 9629 else 9630 shared_flag='${wl}-bM:SRE' 9631 fi 9632 fi 9633 fi 9634 9635 export_dynamic_flag_spec='${wl}-bexpall' 9636 # It seems that -bexpall does not export symbols beginning with 9637 # underscore (_), so it is better to generate a list of symbols to export. 9638 always_export_symbols=yes 9639 if test "$aix_use_runtimelinking" = yes; then 9640 # Warning - without using the other runtime loading flags (-brtl), 9641 # -berok will link without error, but may produce a broken library. 9642 allow_undefined_flag='-berok' 9643 # Determine the default libpath from the value encoded in an 9644 # empty executable. 9645 if test "${lt_cv_aix_libpath+set}" = set; then 9646 aix_libpath=$lt_cv_aix_libpath 9647else 9648 if ${lt_cv_aix_libpath_+:} false; then : 9649 $as_echo_n "(cached) " >&6 9650else 9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9652/* end confdefs.h. */ 9653 9654int 9655main () 9656{ 9657 9658 ; 9659 return 0; 9660} 9661_ACEOF 9662if ac_fn_c_try_link "$LINENO"; then : 9663 9664 lt_aix_libpath_sed=' 9665 /Import File Strings/,/^$/ { 9666 /^0/ { 9667 s/^0 *\([^ ]*\) *$/\1/ 9668 p 9669 } 9670 }' 9671 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9672 # Check for a 64-bit object if we didn't find anything. 9673 if test -z "$lt_cv_aix_libpath_"; then 9674 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9675 fi 9676fi 9677rm -f core conftest.err conftest.$ac_objext \ 9678 conftest$ac_exeext conftest.$ac_ext 9679 if test -z "$lt_cv_aix_libpath_"; then 9680 lt_cv_aix_libpath_="/usr/lib:/lib" 9681 fi 9682 9683fi 9684 9685 aix_libpath=$lt_cv_aix_libpath_ 9686fi 9687 9688 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9689 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9690 else 9691 if test "$host_cpu" = ia64; then 9692 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9693 allow_undefined_flag="-z nodefs" 9694 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" 9695 else 9696 # Determine the default libpath from the value encoded in an 9697 # empty executable. 9698 if test "${lt_cv_aix_libpath+set}" = set; then 9699 aix_libpath=$lt_cv_aix_libpath 9700else 9701 if ${lt_cv_aix_libpath_+:} false; then : 9702 $as_echo_n "(cached) " >&6 9703else 9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9705/* end confdefs.h. */ 9706 9707int 9708main () 9709{ 9710 9711 ; 9712 return 0; 9713} 9714_ACEOF 9715if ac_fn_c_try_link "$LINENO"; then : 9716 9717 lt_aix_libpath_sed=' 9718 /Import File Strings/,/^$/ { 9719 /^0/ { 9720 s/^0 *\([^ ]*\) *$/\1/ 9721 p 9722 } 9723 }' 9724 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9725 # Check for a 64-bit object if we didn't find anything. 9726 if test -z "$lt_cv_aix_libpath_"; then 9727 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9728 fi 9729fi 9730rm -f core conftest.err conftest.$ac_objext \ 9731 conftest$ac_exeext conftest.$ac_ext 9732 if test -z "$lt_cv_aix_libpath_"; then 9733 lt_cv_aix_libpath_="/usr/lib:/lib" 9734 fi 9735 9736fi 9737 9738 aix_libpath=$lt_cv_aix_libpath_ 9739fi 9740 9741 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9742 # Warning - without using the other run time loading flags, 9743 # -berok will link without error, but may produce a broken library. 9744 no_undefined_flag=' ${wl}-bernotok' 9745 allow_undefined_flag=' ${wl}-berok' 9746 if test "$with_gnu_ld" = yes; then 9747 # We only use this code for GNU lds that support --whole-archive. 9748 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9749 else 9750 # Exported symbols can be pulled into shared objects from archives 9751 whole_archive_flag_spec='$convenience' 9752 fi 9753 archive_cmds_need_lc=yes 9754 # This is similar to how AIX traditionally builds its shared libraries. 9755 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9756 fi 9757 fi 9758 ;; 9759 9760 amigaos*) 9761 case $host_cpu in 9762 powerpc) 9763 # see comment about AmigaOS4 .so support 9764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9765 archive_expsym_cmds='' 9766 ;; 9767 m68k) 9768 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)' 9769 hardcode_libdir_flag_spec='-L$libdir' 9770 hardcode_minus_L=yes 9771 ;; 9772 esac 9773 ;; 9774 9775 bsdi[45]*) 9776 export_dynamic_flag_spec=-rdynamic 9777 ;; 9778 9779 cygwin* | mingw* | pw32* | cegcc*) 9780 # When not using gcc, we currently assume that we are using 9781 # Microsoft Visual C++. 9782 # hardcode_libdir_flag_spec is actually meaningless, as there is 9783 # no search path for DLLs. 9784 case $cc_basename in 9785 cl*) 9786 # Native MSVC 9787 hardcode_libdir_flag_spec=' ' 9788 allow_undefined_flag=unsupported 9789 always_export_symbols=yes 9790 file_list_spec='@' 9791 # Tell ltmain to make .lib files, not .a files. 9792 libext=lib 9793 # Tell ltmain to make .dll files, not .so files. 9794 shrext_cmds=".dll" 9795 # FIXME: Setting linknames here is a bad hack. 9796 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9797 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9798 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9799 else 9800 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9801 fi~ 9802 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9803 linknames=' 9804 # The linker will not automatically build a static lib if we build a DLL. 9805 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9806 enable_shared_with_static_runtimes=yes 9807 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9808 # Don't use ranlib 9809 old_postinstall_cmds='chmod 644 $oldlib' 9810 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9811 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9812 case $lt_outputfile in 9813 *.exe|*.EXE) ;; 9814 *) 9815 lt_outputfile="$lt_outputfile.exe" 9816 lt_tool_outputfile="$lt_tool_outputfile.exe" 9817 ;; 9818 esac~ 9819 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9820 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9821 $RM "$lt_outputfile.manifest"; 9822 fi' 9823 ;; 9824 *) 9825 # Assume MSVC wrapper 9826 hardcode_libdir_flag_spec=' ' 9827 allow_undefined_flag=unsupported 9828 # Tell ltmain to make .lib files, not .a files. 9829 libext=lib 9830 # Tell ltmain to make .dll files, not .so files. 9831 shrext_cmds=".dll" 9832 # FIXME: Setting linknames here is a bad hack. 9833 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9834 # The linker will automatically build a .lib file if we build a DLL. 9835 old_archive_from_new_cmds='true' 9836 # FIXME: Should let the user specify the lib program. 9837 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9838 enable_shared_with_static_runtimes=yes 9839 ;; 9840 esac 9841 ;; 9842 9843 darwin* | rhapsody*) 9844 9845 9846 archive_cmds_need_lc=no 9847 hardcode_direct=no 9848 hardcode_automatic=yes 9849 hardcode_shlibpath_var=unsupported 9850 if test "$lt_cv_ld_force_load" = "yes"; then 9851 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\"`' 9852 else 9853 whole_archive_flag_spec='' 9854 fi 9855 link_all_deplibs=yes 9856 allow_undefined_flag="$_lt_dar_allow_undefined" 9857 case $cc_basename in 9858 ifort*) _lt_dar_can_shared=yes ;; 9859 *) _lt_dar_can_shared=$GCC ;; 9860 esac 9861 if test "$_lt_dar_can_shared" = "yes"; then 9862 output_verbose_link_cmd=func_echo_all 9863 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9864 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9865 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}" 9866 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}" 9867 9868 else 9869 ld_shlibs=no 9870 fi 9871 9872 ;; 9873 9874 dgux*) 9875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9876 hardcode_libdir_flag_spec='-L$libdir' 9877 hardcode_shlibpath_var=no 9878 ;; 9879 9880 freebsd1*) 9881 ld_shlibs=no 9882 ;; 9883 9884 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9885 # support. Future versions do this automatically, but an explicit c++rt0.o 9886 # does not break anything, and helps significantly (at the cost of a little 9887 # extra space). 9888 freebsd2.2*) 9889 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9890 hardcode_libdir_flag_spec='-R$libdir' 9891 hardcode_direct=yes 9892 hardcode_shlibpath_var=no 9893 ;; 9894 9895 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9896 freebsd2*) 9897 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9898 hardcode_direct=yes 9899 hardcode_minus_L=yes 9900 hardcode_shlibpath_var=no 9901 ;; 9902 9903 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9904 freebsd* | dragonfly*) 9905 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9906 hardcode_libdir_flag_spec='-R$libdir' 9907 hardcode_direct=yes 9908 hardcode_shlibpath_var=no 9909 ;; 9910 9911 hpux9*) 9912 if test "$GCC" = yes; then 9913 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9914 else 9915 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9916 fi 9917 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9918 hardcode_libdir_separator=: 9919 hardcode_direct=yes 9920 9921 # hardcode_minus_L: Not really in the search PATH, 9922 # but as the default location of the library. 9923 hardcode_minus_L=yes 9924 export_dynamic_flag_spec='${wl}-E' 9925 ;; 9926 9927 hpux10*) 9928 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9929 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9930 else 9931 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9932 fi 9933 if test "$with_gnu_ld" = no; then 9934 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9935 hardcode_libdir_flag_spec_ld='+b $libdir' 9936 hardcode_libdir_separator=: 9937 hardcode_direct=yes 9938 hardcode_direct_absolute=yes 9939 export_dynamic_flag_spec='${wl}-E' 9940 # hardcode_minus_L: Not really in the search PATH, 9941 # but as the default location of the library. 9942 hardcode_minus_L=yes 9943 fi 9944 ;; 9945 9946 hpux11*) 9947 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9948 case $host_cpu in 9949 hppa*64*) 9950 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9951 ;; 9952 ia64*) 9953 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9954 ;; 9955 *) 9956 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9957 ;; 9958 esac 9959 else 9960 case $host_cpu in 9961 hppa*64*) 9962 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9963 ;; 9964 ia64*) 9965 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9966 ;; 9967 *) 9968 9969 # Older versions of the 11.00 compiler do not understand -b yet 9970 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9972$as_echo_n "checking if $CC understands -b... " >&6; } 9973if ${lt_cv_prog_compiler__b+:} false; then : 9974 $as_echo_n "(cached) " >&6 9975else 9976 lt_cv_prog_compiler__b=no 9977 save_LDFLAGS="$LDFLAGS" 9978 LDFLAGS="$LDFLAGS -b" 9979 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9980 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9981 # The linker can only warn and ignore the option if not recognized 9982 # So say no if there are warnings 9983 if test -s conftest.err; then 9984 # Append any errors to the config.log. 9985 cat conftest.err 1>&5 9986 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9988 if diff conftest.exp conftest.er2 >/dev/null; then 9989 lt_cv_prog_compiler__b=yes 9990 fi 9991 else 9992 lt_cv_prog_compiler__b=yes 9993 fi 9994 fi 9995 $RM -r conftest* 9996 LDFLAGS="$save_LDFLAGS" 9997 9998fi 9999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10000$as_echo "$lt_cv_prog_compiler__b" >&6; } 10001 10002if test x"$lt_cv_prog_compiler__b" = xyes; then 10003 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10004else 10005 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10006fi 10007 10008 ;; 10009 esac 10010 fi 10011 if test "$with_gnu_ld" = no; then 10012 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10013 hardcode_libdir_separator=: 10014 10015 case $host_cpu in 10016 hppa*64*|ia64*) 10017 hardcode_direct=no 10018 hardcode_shlibpath_var=no 10019 ;; 10020 *) 10021 hardcode_direct=yes 10022 hardcode_direct_absolute=yes 10023 export_dynamic_flag_spec='${wl}-E' 10024 10025 # hardcode_minus_L: Not really in the search PATH, 10026 # but as the default location of the library. 10027 hardcode_minus_L=yes 10028 ;; 10029 esac 10030 fi 10031 ;; 10032 10033 irix5* | irix6* | nonstopux*) 10034 if test "$GCC" = yes; then 10035 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' 10036 # Try to use the -exported_symbol ld option, if it does not 10037 # work, assume that -exports_file does not work either and 10038 # implicitly export all symbols. 10039 # This should be the same for all languages, so no per-tag cache variable. 10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10041$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10042if ${lt_cv_irix_exported_symbol+:} false; then : 10043 $as_echo_n "(cached) " >&6 10044else 10045 save_LDFLAGS="$LDFLAGS" 10046 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10048/* end confdefs.h. */ 10049int foo (void) { return 0; } 10050_ACEOF 10051if ac_fn_c_try_link "$LINENO"; then : 10052 lt_cv_irix_exported_symbol=yes 10053else 10054 lt_cv_irix_exported_symbol=no 10055fi 10056rm -f core conftest.err conftest.$ac_objext \ 10057 conftest$ac_exeext conftest.$ac_ext 10058 LDFLAGS="$save_LDFLAGS" 10059fi 10060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10061$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10062 if test "$lt_cv_irix_exported_symbol" = yes; then 10063 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' 10064 fi 10065 else 10066 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' 10067 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' 10068 fi 10069 archive_cmds_need_lc='no' 10070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10071 hardcode_libdir_separator=: 10072 inherit_rpath=yes 10073 link_all_deplibs=yes 10074 ;; 10075 10076 netbsd*) 10077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10079 else 10080 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10081 fi 10082 hardcode_libdir_flag_spec='-R$libdir' 10083 hardcode_direct=yes 10084 hardcode_shlibpath_var=no 10085 ;; 10086 10087 newsos6) 10088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10089 hardcode_direct=yes 10090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10091 hardcode_libdir_separator=: 10092 hardcode_shlibpath_var=no 10093 ;; 10094 10095 *nto* | *qnx*) 10096 ;; 10097 10098 openbsd*) 10099 if test -f /usr/libexec/ld.so; then 10100 hardcode_direct=yes 10101 hardcode_shlibpath_var=no 10102 hardcode_direct_absolute=yes 10103 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10104 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10105 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10106 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10107 export_dynamic_flag_spec='${wl}-E' 10108 else 10109 case $host_os in 10110 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10112 hardcode_libdir_flag_spec='-R$libdir' 10113 ;; 10114 *) 10115 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10117 ;; 10118 esac 10119 fi 10120 else 10121 ld_shlibs=no 10122 fi 10123 ;; 10124 10125 os2*) 10126 hardcode_libdir_flag_spec='-L$libdir' 10127 hardcode_minus_L=yes 10128 allow_undefined_flag=unsupported 10129 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10130 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10131 ;; 10132 10133 osf3*) 10134 if test "$GCC" = yes; then 10135 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10136 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' 10137 else 10138 allow_undefined_flag=' -expect_unresolved \*' 10139 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' 10140 fi 10141 archive_cmds_need_lc='no' 10142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10143 hardcode_libdir_separator=: 10144 ;; 10145 10146 osf4* | osf5*) # as osf3* with the addition of -msym flag 10147 if test "$GCC" = yes; then 10148 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10149 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' 10150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10151 else 10152 allow_undefined_flag=' -expect_unresolved \*' 10153 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' 10154 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~ 10155 $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' 10156 10157 # Both c and cxx compiler support -rpath directly 10158 hardcode_libdir_flag_spec='-rpath $libdir' 10159 fi 10160 archive_cmds_need_lc='no' 10161 hardcode_libdir_separator=: 10162 ;; 10163 10164 solaris*) 10165 no_undefined_flag=' -z defs' 10166 if test "$GCC" = yes; then 10167 wlarc='${wl}' 10168 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10170 $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' 10171 else 10172 case `$CC -V 2>&1` in 10173 *"Compilers 5.0"*) 10174 wlarc='' 10175 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10176 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10178 ;; 10179 *) 10180 wlarc='${wl}' 10181 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10182 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10183 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10184 ;; 10185 esac 10186 fi 10187 hardcode_libdir_flag_spec='-R$libdir' 10188 hardcode_shlibpath_var=no 10189 case $host_os in 10190 solaris2.[0-5] | solaris2.[0-5].*) ;; 10191 *) 10192 # The compiler driver will combine and reorder linker options, 10193 # but understands `-z linker_flag'. GCC discards it without `$wl', 10194 # but is careful enough not to reorder. 10195 # Supported since Solaris 2.6 (maybe 2.5.1?) 10196 if test "$GCC" = yes; then 10197 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10198 else 10199 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10200 fi 10201 ;; 10202 esac 10203 link_all_deplibs=yes 10204 ;; 10205 10206 sunos4*) 10207 if test "x$host_vendor" = xsequent; then 10208 # Use $CC to link under sequent, because it throws in some extra .o 10209 # files that make .init and .fini sections work. 10210 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10211 else 10212 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10213 fi 10214 hardcode_libdir_flag_spec='-L$libdir' 10215 hardcode_direct=yes 10216 hardcode_minus_L=yes 10217 hardcode_shlibpath_var=no 10218 ;; 10219 10220 sysv4) 10221 case $host_vendor in 10222 sni) 10223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10224 hardcode_direct=yes # is this really true??? 10225 ;; 10226 siemens) 10227 ## LD is ld it makes a PLAMLIB 10228 ## CC just makes a GrossModule. 10229 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10230 reload_cmds='$CC -r -o $output$reload_objs' 10231 hardcode_direct=no 10232 ;; 10233 motorola) 10234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10235 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10236 ;; 10237 esac 10238 runpath_var='LD_RUN_PATH' 10239 hardcode_shlibpath_var=no 10240 ;; 10241 10242 sysv4.3*) 10243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10244 hardcode_shlibpath_var=no 10245 export_dynamic_flag_spec='-Bexport' 10246 ;; 10247 10248 sysv4*MP*) 10249 if test -d /usr/nec; then 10250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10251 hardcode_shlibpath_var=no 10252 runpath_var=LD_RUN_PATH 10253 hardcode_runpath_var=yes 10254 ld_shlibs=yes 10255 fi 10256 ;; 10257 10258 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10259 no_undefined_flag='${wl}-z,text' 10260 archive_cmds_need_lc=no 10261 hardcode_shlibpath_var=no 10262 runpath_var='LD_RUN_PATH' 10263 10264 if test "$GCC" = yes; then 10265 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10266 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10267 else 10268 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10269 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10270 fi 10271 ;; 10272 10273 sysv5* | sco3.2v5* | sco5v6*) 10274 # Note: We can NOT use -z defs as we might desire, because we do not 10275 # link with -lc, and that would cause any symbols used from libc to 10276 # always be unresolved, which means just about no library would 10277 # ever link correctly. If we're not using GNU ld we use -z text 10278 # though, which does catch some bad symbols but isn't as heavy-handed 10279 # as -z defs. 10280 no_undefined_flag='${wl}-z,text' 10281 allow_undefined_flag='${wl}-z,nodefs' 10282 archive_cmds_need_lc=no 10283 hardcode_shlibpath_var=no 10284 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10285 hardcode_libdir_separator=':' 10286 link_all_deplibs=yes 10287 export_dynamic_flag_spec='${wl}-Bexport' 10288 runpath_var='LD_RUN_PATH' 10289 10290 if test "$GCC" = yes; then 10291 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10292 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10293 else 10294 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10295 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10296 fi 10297 ;; 10298 10299 uts4*) 10300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10301 hardcode_libdir_flag_spec='-L$libdir' 10302 hardcode_shlibpath_var=no 10303 ;; 10304 10305 *) 10306 ld_shlibs=no 10307 ;; 10308 esac 10309 10310 if test x$host_vendor = xsni; then 10311 case $host in 10312 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10313 export_dynamic_flag_spec='${wl}-Blargedynsym' 10314 ;; 10315 esac 10316 fi 10317 fi 10318 10319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10320$as_echo "$ld_shlibs" >&6; } 10321test "$ld_shlibs" = no && can_build_shared=no 10322 10323with_gnu_ld=$with_gnu_ld 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339# 10340# Do we need to explicitly link libc? 10341# 10342case "x$archive_cmds_need_lc" in 10343x|xyes) 10344 # Assume -lc should be added 10345 archive_cmds_need_lc=yes 10346 10347 if test "$enable_shared" = yes && test "$GCC" = yes; then 10348 case $archive_cmds in 10349 *'~'*) 10350 # FIXME: we may have to deal with multi-command sequences. 10351 ;; 10352 '$CC '*) 10353 # Test whether the compiler implicitly links with -lc since on some 10354 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10355 # to ld, don't add -lc before -lgcc. 10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10357$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10358if ${lt_cv_archive_cmds_need_lc+:} false; then : 10359 $as_echo_n "(cached) " >&6 10360else 10361 $RM conftest* 10362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10363 10364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10365 (eval $ac_compile) 2>&5 10366 ac_status=$? 10367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10368 test $ac_status = 0; } 2>conftest.err; then 10369 soname=conftest 10370 lib=conftest 10371 libobjs=conftest.$ac_objext 10372 deplibs= 10373 wl=$lt_prog_compiler_wl 10374 pic_flag=$lt_prog_compiler_pic 10375 compiler_flags=-v 10376 linker_flags=-v 10377 verstring= 10378 output_objdir=. 10379 libname=conftest 10380 lt_save_allow_undefined_flag=$allow_undefined_flag 10381 allow_undefined_flag= 10382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10383 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10384 ac_status=$? 10385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10386 test $ac_status = 0; } 10387 then 10388 lt_cv_archive_cmds_need_lc=no 10389 else 10390 lt_cv_archive_cmds_need_lc=yes 10391 fi 10392 allow_undefined_flag=$lt_save_allow_undefined_flag 10393 else 10394 cat conftest.err 1>&5 10395 fi 10396 $RM conftest* 10397 10398fi 10399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10400$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10401 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10402 ;; 10403 esac 10404 fi 10405 ;; 10406esac 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10565$as_echo_n "checking dynamic linker characteristics... " >&6; } 10566 10567if test "$GCC" = yes; then 10568 case $host_os in 10569 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10570 *) lt_awk_arg="/^libraries:/" ;; 10571 esac 10572 case $host_os in 10573 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10574 *) lt_sed_strip_eq="s,=/,/,g" ;; 10575 esac 10576 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10577 case $lt_search_path_spec in 10578 *\;*) 10579 # if the path contains ";" then we assume it to be the separator 10580 # otherwise default to the standard path separator (i.e. ":") - it is 10581 # assumed that no part of a normal pathname contains ";" but that should 10582 # okay in the real world where ";" in dirpaths is itself problematic. 10583 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10584 ;; 10585 *) 10586 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10587 ;; 10588 esac 10589 # Ok, now we have the path, separated by spaces, we can step through it 10590 # and add multilib dir if necessary. 10591 lt_tmp_lt_search_path_spec= 10592 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10593 for lt_sys_path in $lt_search_path_spec; do 10594 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10595 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10596 else 10597 test -d "$lt_sys_path" && \ 10598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10599 fi 10600 done 10601 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10602BEGIN {RS=" "; FS="/|\n";} { 10603 lt_foo=""; 10604 lt_count=0; 10605 for (lt_i = NF; lt_i > 0; lt_i--) { 10606 if ($lt_i != "" && $lt_i != ".") { 10607 if ($lt_i == "..") { 10608 lt_count++; 10609 } else { 10610 if (lt_count == 0) { 10611 lt_foo="/" $lt_i lt_foo; 10612 } else { 10613 lt_count--; 10614 } 10615 } 10616 } 10617 } 10618 if (lt_foo != "") { lt_freq[lt_foo]++; } 10619 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10620}'` 10621 # AWK program above erroneously prepends '/' to C:/dos/paths 10622 # for these hosts. 10623 case $host_os in 10624 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10625 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10626 esac 10627 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10628else 10629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10630fi 10631library_names_spec= 10632libname_spec='lib$name' 10633soname_spec= 10634shrext_cmds=".so" 10635postinstall_cmds= 10636postuninstall_cmds= 10637finish_cmds= 10638finish_eval= 10639shlibpath_var= 10640shlibpath_overrides_runpath=unknown 10641version_type=none 10642dynamic_linker="$host_os ld.so" 10643sys_lib_dlsearch_path_spec="/lib /usr/lib" 10644need_lib_prefix=unknown 10645hardcode_into_libs=no 10646 10647# when you set need_version to no, make sure it does not cause -set_version 10648# flags to be left without arguments 10649need_version=unknown 10650 10651case $host_os in 10652aix3*) 10653 version_type=linux 10654 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10655 shlibpath_var=LIBPATH 10656 10657 # AIX 3 has no versioning support, so we append a major version to the name. 10658 soname_spec='${libname}${release}${shared_ext}$major' 10659 ;; 10660 10661aix[4-9]*) 10662 version_type=linux 10663 need_lib_prefix=no 10664 need_version=no 10665 hardcode_into_libs=yes 10666 if test "$host_cpu" = ia64; then 10667 # AIX 5 supports IA64 10668 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10669 shlibpath_var=LD_LIBRARY_PATH 10670 else 10671 # With GCC up to 2.95.x, collect2 would create an import file 10672 # for dependence libraries. The import file would start with 10673 # the line `#! .'. This would cause the generated library to 10674 # depend on `.', always an invalid library. This was fixed in 10675 # development snapshots of GCC prior to 3.0. 10676 case $host_os in 10677 aix4 | aix4.[01] | aix4.[01].*) 10678 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10679 echo ' yes ' 10680 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10681 : 10682 else 10683 can_build_shared=no 10684 fi 10685 ;; 10686 esac 10687 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10688 # soname into executable. Probably we can add versioning support to 10689 # collect2, so additional links can be useful in future. 10690 if test "$aix_use_runtimelinking" = yes; then 10691 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10692 # instead of lib<name>.a to let people know that these are not 10693 # typical AIX shared libraries. 10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10695 else 10696 # We preserve .a as extension for shared libraries through AIX4.2 10697 # and later when we are not doing run time linking. 10698 library_names_spec='${libname}${release}.a $libname.a' 10699 soname_spec='${libname}${release}${shared_ext}$major' 10700 fi 10701 shlibpath_var=LIBPATH 10702 fi 10703 ;; 10704 10705amigaos*) 10706 case $host_cpu in 10707 powerpc) 10708 # Since July 2007 AmigaOS4 officially supports .so libraries. 10709 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10711 ;; 10712 m68k) 10713 library_names_spec='$libname.ixlibrary $libname.a' 10714 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10715 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10716 ;; 10717 esac 10718 ;; 10719 10720beos*) 10721 library_names_spec='${libname}${shared_ext}' 10722 dynamic_linker="$host_os ld.so" 10723 shlibpath_var=LIBRARY_PATH 10724 ;; 10725 10726bsdi[45]*) 10727 version_type=linux 10728 need_version=no 10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10730 soname_spec='${libname}${release}${shared_ext}$major' 10731 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10732 shlibpath_var=LD_LIBRARY_PATH 10733 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10734 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10735 # the default ld.so.conf also contains /usr/contrib/lib and 10736 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10737 # libtool to hard-code these into programs 10738 ;; 10739 10740cygwin* | mingw* | pw32* | cegcc*) 10741 version_type=windows 10742 shrext_cmds=".dll" 10743 need_version=no 10744 need_lib_prefix=no 10745 10746 case $GCC,$cc_basename in 10747 yes,*) 10748 # gcc 10749 library_names_spec='$libname.dll.a' 10750 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10751 postinstall_cmds='base_file=`basename \${file}`~ 10752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10753 dldir=$destdir/`dirname \$dlpath`~ 10754 test -d \$dldir || mkdir -p \$dldir~ 10755 $install_prog $dir/$dlname \$dldir/$dlname~ 10756 chmod a+x \$dldir/$dlname~ 10757 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10758 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10759 fi' 10760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10761 dlpath=$dir/\$dldll~ 10762 $RM \$dlpath' 10763 shlibpath_overrides_runpath=yes 10764 10765 case $host_os in 10766 cygwin*) 10767 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10768 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10769 10770 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10771 ;; 10772 mingw* | cegcc*) 10773 # MinGW DLLs use traditional 'lib' prefix 10774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10775 ;; 10776 pw32*) 10777 # pw32 DLLs use 'pw' prefix rather than 'lib' 10778 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10779 ;; 10780 esac 10781 dynamic_linker='Win32 ld.exe' 10782 ;; 10783 10784 *,cl*) 10785 # Native MSVC 10786 libname_spec='$name' 10787 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10788 library_names_spec='${libname}.dll.lib' 10789 10790 case $build_os in 10791 mingw*) 10792 sys_lib_search_path_spec= 10793 lt_save_ifs=$IFS 10794 IFS=';' 10795 for lt_path in $LIB 10796 do 10797 IFS=$lt_save_ifs 10798 # Let DOS variable expansion print the short 8.3 style file name. 10799 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10800 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10801 done 10802 IFS=$lt_save_ifs 10803 # Convert to MSYS style. 10804 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10805 ;; 10806 cygwin*) 10807 # Convert to unix form, then to dos form, then back to unix form 10808 # but this time dos style (no spaces!) so that the unix form looks 10809 # like /cygdrive/c/PROGRA~1:/cygdr... 10810 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10811 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10812 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10813 ;; 10814 *) 10815 sys_lib_search_path_spec="$LIB" 10816 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10817 # It is most probably a Windows format PATH. 10818 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10819 else 10820 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10821 fi 10822 # FIXME: find the short name or the path components, as spaces are 10823 # common. (e.g. "Program Files" -> "PROGRA~1") 10824 ;; 10825 esac 10826 10827 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10828 postinstall_cmds='base_file=`basename \${file}`~ 10829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10830 dldir=$destdir/`dirname \$dlpath`~ 10831 test -d \$dldir || mkdir -p \$dldir~ 10832 $install_prog $dir/$dlname \$dldir/$dlname' 10833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10834 dlpath=$dir/\$dldll~ 10835 $RM \$dlpath' 10836 shlibpath_overrides_runpath=yes 10837 dynamic_linker='Win32 link.exe' 10838 ;; 10839 10840 *) 10841 # Assume MSVC wrapper 10842 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10843 dynamic_linker='Win32 ld.exe' 10844 ;; 10845 esac 10846 # FIXME: first we should search . and the directory the executable is in 10847 shlibpath_var=PATH 10848 ;; 10849 10850darwin* | rhapsody*) 10851 dynamic_linker="$host_os dyld" 10852 version_type=darwin 10853 need_lib_prefix=no 10854 need_version=no 10855 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10856 soname_spec='${libname}${release}${major}$shared_ext' 10857 shlibpath_overrides_runpath=yes 10858 shlibpath_var=DYLD_LIBRARY_PATH 10859 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10860 10861 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10862 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10863 ;; 10864 10865dgux*) 10866 version_type=linux 10867 need_lib_prefix=no 10868 need_version=no 10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10870 soname_spec='${libname}${release}${shared_ext}$major' 10871 shlibpath_var=LD_LIBRARY_PATH 10872 ;; 10873 10874freebsd1*) 10875 dynamic_linker=no 10876 ;; 10877 10878freebsd* | dragonfly*) 10879 # DragonFly does not have aout. When/if they implement a new 10880 # versioning mechanism, adjust this. 10881 if test -x /usr/bin/objformat; then 10882 objformat=`/usr/bin/objformat` 10883 else 10884 case $host_os in 10885 freebsd[123]*) objformat=aout ;; 10886 *) objformat=elf ;; 10887 esac 10888 fi 10889 version_type=freebsd-$objformat 10890 case $version_type in 10891 freebsd-elf*) 10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10893 need_version=no 10894 need_lib_prefix=no 10895 ;; 10896 freebsd-*) 10897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10898 need_version=yes 10899 ;; 10900 esac 10901 shlibpath_var=LD_LIBRARY_PATH 10902 case $host_os in 10903 freebsd2*) 10904 shlibpath_overrides_runpath=yes 10905 ;; 10906 freebsd3.[01]* | freebsdelf3.[01]*) 10907 shlibpath_overrides_runpath=yes 10908 hardcode_into_libs=yes 10909 ;; 10910 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10911 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10912 shlibpath_overrides_runpath=no 10913 hardcode_into_libs=yes 10914 ;; 10915 *) # from 4.6 on, and DragonFly 10916 shlibpath_overrides_runpath=yes 10917 hardcode_into_libs=yes 10918 ;; 10919 esac 10920 ;; 10921 10922gnu*) 10923 version_type=linux 10924 need_lib_prefix=no 10925 need_version=no 10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10927 soname_spec='${libname}${release}${shared_ext}$major' 10928 shlibpath_var=LD_LIBRARY_PATH 10929 hardcode_into_libs=yes 10930 ;; 10931 10932haiku*) 10933 version_type=linux 10934 need_lib_prefix=no 10935 need_version=no 10936 dynamic_linker="$host_os runtime_loader" 10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10938 soname_spec='${libname}${release}${shared_ext}$major' 10939 shlibpath_var=LIBRARY_PATH 10940 shlibpath_overrides_runpath=yes 10941 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10942 hardcode_into_libs=yes 10943 ;; 10944 10945hpux9* | hpux10* | hpux11*) 10946 # Give a soname corresponding to the major version so that dld.sl refuses to 10947 # link against other versions. 10948 version_type=sunos 10949 need_lib_prefix=no 10950 need_version=no 10951 case $host_cpu in 10952 ia64*) 10953 shrext_cmds='.so' 10954 hardcode_into_libs=yes 10955 dynamic_linker="$host_os dld.so" 10956 shlibpath_var=LD_LIBRARY_PATH 10957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10959 soname_spec='${libname}${release}${shared_ext}$major' 10960 if test "X$HPUX_IA64_MODE" = X32; then 10961 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10962 else 10963 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10964 fi 10965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10966 ;; 10967 hppa*64*) 10968 shrext_cmds='.sl' 10969 hardcode_into_libs=yes 10970 dynamic_linker="$host_os dld.sl" 10971 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10972 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10974 soname_spec='${libname}${release}${shared_ext}$major' 10975 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10977 ;; 10978 *) 10979 shrext_cmds='.sl' 10980 dynamic_linker="$host_os dld.sl" 10981 shlibpath_var=SHLIB_PATH 10982 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10984 soname_spec='${libname}${release}${shared_ext}$major' 10985 ;; 10986 esac 10987 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10988 postinstall_cmds='chmod 555 $lib' 10989 # or fails outright, so override atomically: 10990 install_override_mode=555 10991 ;; 10992 10993interix[3-9]*) 10994 version_type=linux 10995 need_lib_prefix=no 10996 need_version=no 10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10998 soname_spec='${libname}${release}${shared_ext}$major' 10999 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11000 shlibpath_var=LD_LIBRARY_PATH 11001 shlibpath_overrides_runpath=no 11002 hardcode_into_libs=yes 11003 ;; 11004 11005irix5* | irix6* | nonstopux*) 11006 case $host_os in 11007 nonstopux*) version_type=nonstopux ;; 11008 *) 11009 if test "$lt_cv_prog_gnu_ld" = yes; then 11010 version_type=linux 11011 else 11012 version_type=irix 11013 fi ;; 11014 esac 11015 need_lib_prefix=no 11016 need_version=no 11017 soname_spec='${libname}${release}${shared_ext}$major' 11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11019 case $host_os in 11020 irix5* | nonstopux*) 11021 libsuff= shlibsuff= 11022 ;; 11023 *) 11024 case $LD in # libtool.m4 will add one of these switches to LD 11025 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11026 libsuff= shlibsuff= libmagic=32-bit;; 11027 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11028 libsuff=32 shlibsuff=N32 libmagic=N32;; 11029 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11030 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11031 *) libsuff= shlibsuff= libmagic=never-match;; 11032 esac 11033 ;; 11034 esac 11035 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11036 shlibpath_overrides_runpath=no 11037 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11038 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11039 hardcode_into_libs=yes 11040 ;; 11041 11042# No shared lib support for Linux oldld, aout, or coff. 11043linux*oldld* | linux*aout* | linux*coff*) 11044 dynamic_linker=no 11045 ;; 11046 11047# This must be Linux ELF. 11048linux* | k*bsd*-gnu | kopensolaris*-gnu) 11049 version_type=linux 11050 need_lib_prefix=no 11051 need_version=no 11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11053 soname_spec='${libname}${release}${shared_ext}$major' 11054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11055 shlibpath_var=LD_LIBRARY_PATH 11056 shlibpath_overrides_runpath=no 11057 11058 # Some binutils ld are patched to set DT_RUNPATH 11059 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11060 $as_echo_n "(cached) " >&6 11061else 11062 lt_cv_shlibpath_overrides_runpath=no 11063 save_LDFLAGS=$LDFLAGS 11064 save_libdir=$libdir 11065 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11066 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11068/* end confdefs.h. */ 11069 11070int 11071main () 11072{ 11073 11074 ; 11075 return 0; 11076} 11077_ACEOF 11078if ac_fn_c_try_link "$LINENO"; then : 11079 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11080 lt_cv_shlibpath_overrides_runpath=yes 11081fi 11082fi 11083rm -f core conftest.err conftest.$ac_objext \ 11084 conftest$ac_exeext conftest.$ac_ext 11085 LDFLAGS=$save_LDFLAGS 11086 libdir=$save_libdir 11087 11088fi 11089 11090 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11091 11092 # This implies no fast_install, which is unacceptable. 11093 # Some rework will be needed to allow for fast_install 11094 # before this can be enabled. 11095 hardcode_into_libs=yes 11096 11097 # Append ld.so.conf contents to the search path 11098 if test -f /etc/ld.so.conf; then 11099 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' ' '` 11100 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11101 fi 11102 11103 # We used to test for /lib/ld.so.1 and disable shared libraries on 11104 # powerpc, because MkLinux only supported shared libraries with the 11105 # GNU dynamic linker. Since this was broken with cross compilers, 11106 # most powerpc-linux boxes support dynamic linking these days and 11107 # people can always --disable-shared, the test was removed, and we 11108 # assume the GNU/Linux dynamic linker is in use. 11109 dynamic_linker='GNU/Linux ld.so' 11110 ;; 11111 11112netbsd*) 11113 version_type=sunos 11114 need_lib_prefix=no 11115 need_version=no 11116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11119 dynamic_linker='NetBSD (a.out) ld.so' 11120 else 11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11122 soname_spec='${libname}${release}${shared_ext}$major' 11123 dynamic_linker='NetBSD ld.elf_so' 11124 fi 11125 shlibpath_var=LD_LIBRARY_PATH 11126 shlibpath_overrides_runpath=yes 11127 hardcode_into_libs=yes 11128 ;; 11129 11130newsos6) 11131 version_type=linux 11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11133 shlibpath_var=LD_LIBRARY_PATH 11134 shlibpath_overrides_runpath=yes 11135 ;; 11136 11137*nto* | *qnx*) 11138 version_type=qnx 11139 need_lib_prefix=no 11140 need_version=no 11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11142 soname_spec='${libname}${release}${shared_ext}$major' 11143 shlibpath_var=LD_LIBRARY_PATH 11144 shlibpath_overrides_runpath=no 11145 hardcode_into_libs=yes 11146 dynamic_linker='ldqnx.so' 11147 ;; 11148 11149openbsd*) 11150 version_type=sunos 11151 sys_lib_dlsearch_path_spec="/usr/lib" 11152 need_lib_prefix=no 11153 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11154 case $host_os in 11155 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11156 *) need_version=no ;; 11157 esac 11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11160 shlibpath_var=LD_LIBRARY_PATH 11161 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11162 case $host_os in 11163 openbsd2.[89] | openbsd2.[89].*) 11164 shlibpath_overrides_runpath=no 11165 ;; 11166 *) 11167 shlibpath_overrides_runpath=yes 11168 ;; 11169 esac 11170 else 11171 shlibpath_overrides_runpath=yes 11172 fi 11173 ;; 11174 11175os2*) 11176 libname_spec='$name' 11177 shrext_cmds=".dll" 11178 need_lib_prefix=no 11179 library_names_spec='$libname${shared_ext} $libname.a' 11180 dynamic_linker='OS/2 ld.exe' 11181 shlibpath_var=LIBPATH 11182 ;; 11183 11184osf3* | osf4* | osf5*) 11185 version_type=osf 11186 need_lib_prefix=no 11187 need_version=no 11188 soname_spec='${libname}${release}${shared_ext}$major' 11189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11190 shlibpath_var=LD_LIBRARY_PATH 11191 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11192 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11193 ;; 11194 11195rdos*) 11196 dynamic_linker=no 11197 ;; 11198 11199solaris*) 11200 version_type=linux 11201 need_lib_prefix=no 11202 need_version=no 11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11204 soname_spec='${libname}${release}${shared_ext}$major' 11205 shlibpath_var=LD_LIBRARY_PATH 11206 shlibpath_overrides_runpath=yes 11207 hardcode_into_libs=yes 11208 # ldd complains unless libraries are executable 11209 postinstall_cmds='chmod +x $lib' 11210 ;; 11211 11212sunos4*) 11213 version_type=sunos 11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11215 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11216 shlibpath_var=LD_LIBRARY_PATH 11217 shlibpath_overrides_runpath=yes 11218 if test "$with_gnu_ld" = yes; then 11219 need_lib_prefix=no 11220 fi 11221 need_version=yes 11222 ;; 11223 11224sysv4 | sysv4.3*) 11225 version_type=linux 11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11227 soname_spec='${libname}${release}${shared_ext}$major' 11228 shlibpath_var=LD_LIBRARY_PATH 11229 case $host_vendor in 11230 sni) 11231 shlibpath_overrides_runpath=no 11232 need_lib_prefix=no 11233 runpath_var=LD_RUN_PATH 11234 ;; 11235 siemens) 11236 need_lib_prefix=no 11237 ;; 11238 motorola) 11239 need_lib_prefix=no 11240 need_version=no 11241 shlibpath_overrides_runpath=no 11242 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11243 ;; 11244 esac 11245 ;; 11246 11247sysv4*MP*) 11248 if test -d /usr/nec ;then 11249 version_type=linux 11250 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11251 soname_spec='$libname${shared_ext}.$major' 11252 shlibpath_var=LD_LIBRARY_PATH 11253 fi 11254 ;; 11255 11256sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11257 version_type=freebsd-elf 11258 need_lib_prefix=no 11259 need_version=no 11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11261 soname_spec='${libname}${release}${shared_ext}$major' 11262 shlibpath_var=LD_LIBRARY_PATH 11263 shlibpath_overrides_runpath=yes 11264 hardcode_into_libs=yes 11265 if test "$with_gnu_ld" = yes; then 11266 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11267 else 11268 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11269 case $host_os in 11270 sco3.2v5*) 11271 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11272 ;; 11273 esac 11274 fi 11275 sys_lib_dlsearch_path_spec='/usr/lib' 11276 ;; 11277 11278tpf*) 11279 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11280 version_type=linux 11281 need_lib_prefix=no 11282 need_version=no 11283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11284 shlibpath_var=LD_LIBRARY_PATH 11285 shlibpath_overrides_runpath=no 11286 hardcode_into_libs=yes 11287 ;; 11288 11289uts4*) 11290 version_type=linux 11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11292 soname_spec='${libname}${release}${shared_ext}$major' 11293 shlibpath_var=LD_LIBRARY_PATH 11294 ;; 11295 11296*) 11297 dynamic_linker=no 11298 ;; 11299esac 11300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11301$as_echo "$dynamic_linker" >&6; } 11302test "$dynamic_linker" = no && can_build_shared=no 11303 11304variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11305if test "$GCC" = yes; then 11306 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11307fi 11308 11309if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11310 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11311fi 11312if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11313 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11314fi 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11408$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11409hardcode_action= 11410if test -n "$hardcode_libdir_flag_spec" || 11411 test -n "$runpath_var" || 11412 test "X$hardcode_automatic" = "Xyes" ; then 11413 11414 # We can hardcode non-existent directories. 11415 if test "$hardcode_direct" != no && 11416 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11417 # have to relink, otherwise we might link with an installed library 11418 # when we should be linking with a yet-to-be-installed one 11419 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11420 test "$hardcode_minus_L" != no; then 11421 # Linking always hardcodes the temporary library directory. 11422 hardcode_action=relink 11423 else 11424 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11425 hardcode_action=immediate 11426 fi 11427else 11428 # We cannot hardcode anything, or else we can only hardcode existing 11429 # directories. 11430 hardcode_action=unsupported 11431fi 11432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11433$as_echo "$hardcode_action" >&6; } 11434 11435if test "$hardcode_action" = relink || 11436 test "$inherit_rpath" = yes; then 11437 # Fast installation is not supported 11438 enable_fast_install=no 11439elif test "$shlibpath_overrides_runpath" = yes || 11440 test "$enable_shared" = no; then 11441 # Fast installation is not necessary 11442 enable_fast_install=needless 11443fi 11444 11445 11446 11447 11448 11449 11450 if test "x$enable_dlopen" != xyes; then 11451 enable_dlopen=unknown 11452 enable_dlopen_self=unknown 11453 enable_dlopen_self_static=unknown 11454else 11455 lt_cv_dlopen=no 11456 lt_cv_dlopen_libs= 11457 11458 case $host_os in 11459 beos*) 11460 lt_cv_dlopen="load_add_on" 11461 lt_cv_dlopen_libs= 11462 lt_cv_dlopen_self=yes 11463 ;; 11464 11465 mingw* | pw32* | cegcc*) 11466 lt_cv_dlopen="LoadLibrary" 11467 lt_cv_dlopen_libs= 11468 ;; 11469 11470 cygwin*) 11471 lt_cv_dlopen="dlopen" 11472 lt_cv_dlopen_libs= 11473 ;; 11474 11475 darwin*) 11476 # if libdl is installed we need to link against it 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11478$as_echo_n "checking for dlopen in -ldl... " >&6; } 11479if ${ac_cv_lib_dl_dlopen+:} false; then : 11480 $as_echo_n "(cached) " >&6 11481else 11482 ac_check_lib_save_LIBS=$LIBS 11483LIBS="-ldl $LIBS" 11484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11485/* end confdefs.h. */ 11486 11487/* Override any GCC internal prototype to avoid an error. 11488 Use char because int might match the return type of a GCC 11489 builtin and then its argument prototype would still apply. */ 11490#ifdef __cplusplus 11491extern "C" 11492#endif 11493char dlopen (); 11494int 11495main () 11496{ 11497return dlopen (); 11498 ; 11499 return 0; 11500} 11501_ACEOF 11502if ac_fn_c_try_link "$LINENO"; then : 11503 ac_cv_lib_dl_dlopen=yes 11504else 11505 ac_cv_lib_dl_dlopen=no 11506fi 11507rm -f core conftest.err conftest.$ac_objext \ 11508 conftest$ac_exeext conftest.$ac_ext 11509LIBS=$ac_check_lib_save_LIBS 11510fi 11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11512$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11513if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11514 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11515else 11516 11517 lt_cv_dlopen="dyld" 11518 lt_cv_dlopen_libs= 11519 lt_cv_dlopen_self=yes 11520 11521fi 11522 11523 ;; 11524 11525 *) 11526 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11527if test "x$ac_cv_func_shl_load" = xyes; then : 11528 lt_cv_dlopen="shl_load" 11529else 11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11531$as_echo_n "checking for shl_load in -ldld... " >&6; } 11532if ${ac_cv_lib_dld_shl_load+:} false; then : 11533 $as_echo_n "(cached) " >&6 11534else 11535 ac_check_lib_save_LIBS=$LIBS 11536LIBS="-ldld $LIBS" 11537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11538/* end confdefs.h. */ 11539 11540/* Override any GCC internal prototype to avoid an error. 11541 Use char because int might match the return type of a GCC 11542 builtin and then its argument prototype would still apply. */ 11543#ifdef __cplusplus 11544extern "C" 11545#endif 11546char shl_load (); 11547int 11548main () 11549{ 11550return shl_load (); 11551 ; 11552 return 0; 11553} 11554_ACEOF 11555if ac_fn_c_try_link "$LINENO"; then : 11556 ac_cv_lib_dld_shl_load=yes 11557else 11558 ac_cv_lib_dld_shl_load=no 11559fi 11560rm -f core conftest.err conftest.$ac_objext \ 11561 conftest$ac_exeext conftest.$ac_ext 11562LIBS=$ac_check_lib_save_LIBS 11563fi 11564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11565$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11566if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11567 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11568else 11569 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11570if test "x$ac_cv_func_dlopen" = xyes; then : 11571 lt_cv_dlopen="dlopen" 11572else 11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11574$as_echo_n "checking for dlopen in -ldl... " >&6; } 11575if ${ac_cv_lib_dl_dlopen+:} false; then : 11576 $as_echo_n "(cached) " >&6 11577else 11578 ac_check_lib_save_LIBS=$LIBS 11579LIBS="-ldl $LIBS" 11580cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11581/* end confdefs.h. */ 11582 11583/* Override any GCC internal prototype to avoid an error. 11584 Use char because int might match the return type of a GCC 11585 builtin and then its argument prototype would still apply. */ 11586#ifdef __cplusplus 11587extern "C" 11588#endif 11589char dlopen (); 11590int 11591main () 11592{ 11593return dlopen (); 11594 ; 11595 return 0; 11596} 11597_ACEOF 11598if ac_fn_c_try_link "$LINENO"; then : 11599 ac_cv_lib_dl_dlopen=yes 11600else 11601 ac_cv_lib_dl_dlopen=no 11602fi 11603rm -f core conftest.err conftest.$ac_objext \ 11604 conftest$ac_exeext conftest.$ac_ext 11605LIBS=$ac_check_lib_save_LIBS 11606fi 11607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11608$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11609if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11611else 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11613$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11614if ${ac_cv_lib_svld_dlopen+:} false; then : 11615 $as_echo_n "(cached) " >&6 11616else 11617 ac_check_lib_save_LIBS=$LIBS 11618LIBS="-lsvld $LIBS" 11619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11620/* end confdefs.h. */ 11621 11622/* Override any GCC internal prototype to avoid an error. 11623 Use char because int might match the return type of a GCC 11624 builtin and then its argument prototype would still apply. */ 11625#ifdef __cplusplus 11626extern "C" 11627#endif 11628char dlopen (); 11629int 11630main () 11631{ 11632return dlopen (); 11633 ; 11634 return 0; 11635} 11636_ACEOF 11637if ac_fn_c_try_link "$LINENO"; then : 11638 ac_cv_lib_svld_dlopen=yes 11639else 11640 ac_cv_lib_svld_dlopen=no 11641fi 11642rm -f core conftest.err conftest.$ac_objext \ 11643 conftest$ac_exeext conftest.$ac_ext 11644LIBS=$ac_check_lib_save_LIBS 11645fi 11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11647$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11648if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11650else 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11652$as_echo_n "checking for dld_link in -ldld... " >&6; } 11653if ${ac_cv_lib_dld_dld_link+:} false; then : 11654 $as_echo_n "(cached) " >&6 11655else 11656 ac_check_lib_save_LIBS=$LIBS 11657LIBS="-ldld $LIBS" 11658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11659/* end confdefs.h. */ 11660 11661/* Override any GCC internal prototype to avoid an error. 11662 Use char because int might match the return type of a GCC 11663 builtin and then its argument prototype would still apply. */ 11664#ifdef __cplusplus 11665extern "C" 11666#endif 11667char dld_link (); 11668int 11669main () 11670{ 11671return dld_link (); 11672 ; 11673 return 0; 11674} 11675_ACEOF 11676if ac_fn_c_try_link "$LINENO"; then : 11677 ac_cv_lib_dld_dld_link=yes 11678else 11679 ac_cv_lib_dld_dld_link=no 11680fi 11681rm -f core conftest.err conftest.$ac_objext \ 11682 conftest$ac_exeext conftest.$ac_ext 11683LIBS=$ac_check_lib_save_LIBS 11684fi 11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11686$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11687if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11688 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11689fi 11690 11691 11692fi 11693 11694 11695fi 11696 11697 11698fi 11699 11700 11701fi 11702 11703 11704fi 11705 11706 ;; 11707 esac 11708 11709 if test "x$lt_cv_dlopen" != xno; then 11710 enable_dlopen=yes 11711 else 11712 enable_dlopen=no 11713 fi 11714 11715 case $lt_cv_dlopen in 11716 dlopen) 11717 save_CPPFLAGS="$CPPFLAGS" 11718 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11719 11720 save_LDFLAGS="$LDFLAGS" 11721 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11722 11723 save_LIBS="$LIBS" 11724 LIBS="$lt_cv_dlopen_libs $LIBS" 11725 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11727$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11728if ${lt_cv_dlopen_self+:} false; then : 11729 $as_echo_n "(cached) " >&6 11730else 11731 if test "$cross_compiling" = yes; then : 11732 lt_cv_dlopen_self=cross 11733else 11734 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11735 lt_status=$lt_dlunknown 11736 cat > conftest.$ac_ext <<_LT_EOF 11737#line $LINENO "configure" 11738#include "confdefs.h" 11739 11740#if HAVE_DLFCN_H 11741#include <dlfcn.h> 11742#endif 11743 11744#include <stdio.h> 11745 11746#ifdef RTLD_GLOBAL 11747# define LT_DLGLOBAL RTLD_GLOBAL 11748#else 11749# ifdef DL_GLOBAL 11750# define LT_DLGLOBAL DL_GLOBAL 11751# else 11752# define LT_DLGLOBAL 0 11753# endif 11754#endif 11755 11756/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11757 find out it does not work in some platform. */ 11758#ifndef LT_DLLAZY_OR_NOW 11759# ifdef RTLD_LAZY 11760# define LT_DLLAZY_OR_NOW RTLD_LAZY 11761# else 11762# ifdef DL_LAZY 11763# define LT_DLLAZY_OR_NOW DL_LAZY 11764# else 11765# ifdef RTLD_NOW 11766# define LT_DLLAZY_OR_NOW RTLD_NOW 11767# else 11768# ifdef DL_NOW 11769# define LT_DLLAZY_OR_NOW DL_NOW 11770# else 11771# define LT_DLLAZY_OR_NOW 0 11772# endif 11773# endif 11774# endif 11775# endif 11776#endif 11777 11778/* When -fvisbility=hidden is used, assume the code has been annotated 11779 correspondingly for the symbols needed. */ 11780#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11781int fnord () __attribute__((visibility("default"))); 11782#endif 11783 11784int fnord () { return 42; } 11785int main () 11786{ 11787 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11788 int status = $lt_dlunknown; 11789 11790 if (self) 11791 { 11792 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11793 else 11794 { 11795 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11796 else puts (dlerror ()); 11797 } 11798 /* dlclose (self); */ 11799 } 11800 else 11801 puts (dlerror ()); 11802 11803 return status; 11804} 11805_LT_EOF 11806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11807 (eval $ac_link) 2>&5 11808 ac_status=$? 11809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11810 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11811 (./conftest; exit; ) >&5 2>/dev/null 11812 lt_status=$? 11813 case x$lt_status in 11814 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11815 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11816 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11817 esac 11818 else : 11819 # compilation failed 11820 lt_cv_dlopen_self=no 11821 fi 11822fi 11823rm -fr conftest* 11824 11825 11826fi 11827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11828$as_echo "$lt_cv_dlopen_self" >&6; } 11829 11830 if test "x$lt_cv_dlopen_self" = xyes; then 11831 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11833$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11834if ${lt_cv_dlopen_self_static+:} false; then : 11835 $as_echo_n "(cached) " >&6 11836else 11837 if test "$cross_compiling" = yes; then : 11838 lt_cv_dlopen_self_static=cross 11839else 11840 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11841 lt_status=$lt_dlunknown 11842 cat > conftest.$ac_ext <<_LT_EOF 11843#line $LINENO "configure" 11844#include "confdefs.h" 11845 11846#if HAVE_DLFCN_H 11847#include <dlfcn.h> 11848#endif 11849 11850#include <stdio.h> 11851 11852#ifdef RTLD_GLOBAL 11853# define LT_DLGLOBAL RTLD_GLOBAL 11854#else 11855# ifdef DL_GLOBAL 11856# define LT_DLGLOBAL DL_GLOBAL 11857# else 11858# define LT_DLGLOBAL 0 11859# endif 11860#endif 11861 11862/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11863 find out it does not work in some platform. */ 11864#ifndef LT_DLLAZY_OR_NOW 11865# ifdef RTLD_LAZY 11866# define LT_DLLAZY_OR_NOW RTLD_LAZY 11867# else 11868# ifdef DL_LAZY 11869# define LT_DLLAZY_OR_NOW DL_LAZY 11870# else 11871# ifdef RTLD_NOW 11872# define LT_DLLAZY_OR_NOW RTLD_NOW 11873# else 11874# ifdef DL_NOW 11875# define LT_DLLAZY_OR_NOW DL_NOW 11876# else 11877# define LT_DLLAZY_OR_NOW 0 11878# endif 11879# endif 11880# endif 11881# endif 11882#endif 11883 11884/* When -fvisbility=hidden is used, assume the code has been annotated 11885 correspondingly for the symbols needed. */ 11886#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11887int fnord () __attribute__((visibility("default"))); 11888#endif 11889 11890int fnord () { return 42; } 11891int main () 11892{ 11893 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11894 int status = $lt_dlunknown; 11895 11896 if (self) 11897 { 11898 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11899 else 11900 { 11901 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11902 else puts (dlerror ()); 11903 } 11904 /* dlclose (self); */ 11905 } 11906 else 11907 puts (dlerror ()); 11908 11909 return status; 11910} 11911_LT_EOF 11912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11913 (eval $ac_link) 2>&5 11914 ac_status=$? 11915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11916 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11917 (./conftest; exit; ) >&5 2>/dev/null 11918 lt_status=$? 11919 case x$lt_status in 11920 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11921 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11922 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11923 esac 11924 else : 11925 # compilation failed 11926 lt_cv_dlopen_self_static=no 11927 fi 11928fi 11929rm -fr conftest* 11930 11931 11932fi 11933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11934$as_echo "$lt_cv_dlopen_self_static" >&6; } 11935 fi 11936 11937 CPPFLAGS="$save_CPPFLAGS" 11938 LDFLAGS="$save_LDFLAGS" 11939 LIBS="$save_LIBS" 11940 ;; 11941 esac 11942 11943 case $lt_cv_dlopen_self in 11944 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11945 *) enable_dlopen_self=unknown ;; 11946 esac 11947 11948 case $lt_cv_dlopen_self_static in 11949 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11950 *) enable_dlopen_self_static=unknown ;; 11951 esac 11952fi 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970striplib= 11971old_striplib= 11972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11973$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11974if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11975 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11976 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11978$as_echo "yes" >&6; } 11979else 11980# FIXME - insert some real tests, host_os isn't really good enough 11981 case $host_os in 11982 darwin*) 11983 if test -n "$STRIP" ; then 11984 striplib="$STRIP -x" 11985 old_striplib="$STRIP -S" 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11987$as_echo "yes" >&6; } 11988 else 11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11990$as_echo "no" >&6; } 11991 fi 11992 ;; 11993 *) 11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11995$as_echo "no" >&6; } 11996 ;; 11997 esac 11998fi 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 # Report which library types will actually be built 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12013$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12015$as_echo "$can_build_shared" >&6; } 12016 12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12018$as_echo_n "checking whether to build shared libraries... " >&6; } 12019 test "$can_build_shared" = "no" && enable_shared=no 12020 12021 # On AIX, shared libraries and static libraries use the same namespace, and 12022 # are all built from PIC. 12023 case $host_os in 12024 aix3*) 12025 test "$enable_shared" = yes && enable_static=no 12026 if test -n "$RANLIB"; then 12027 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12028 postinstall_cmds='$RANLIB $lib' 12029 fi 12030 ;; 12031 12032 aix[4-9]*) 12033 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12034 test "$enable_shared" = yes && enable_static=no 12035 fi 12036 ;; 12037 esac 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12039$as_echo "$enable_shared" >&6; } 12040 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12042$as_echo_n "checking whether to build static libraries... " >&6; } 12043 # Make sure either enable_shared or enable_static is yes. 12044 test "$enable_shared" = yes || enable_static=yes 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12046$as_echo "$enable_static" >&6; } 12047 12048 12049 12050 12051fi 12052ac_ext=c 12053ac_cpp='$CPP $CPPFLAGS' 12054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12056ac_compiler_gnu=$ac_cv_c_compiler_gnu 12057 12058CC="$lt_save_CC" 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 ac_config_commands="$ac_config_commands libtool" 12073 12074 12075 12076 12077# Only expand once: 12078 12079 12080 12081 12082 12083 if test "$enable_samples" = "yes"; then 12084 BUILD_SAMPLES_TRUE= 12085 BUILD_SAMPLES_FALSE='#' 12086else 12087 BUILD_SAMPLES_TRUE='#' 12088 BUILD_SAMPLES_FALSE= 12089fi 12090 12091 if test "$enable_libevent_regress" = "yes"; then 12092 BUILD_REGRESS_TRUE= 12093 BUILD_REGRESS_FALSE='#' 12094else 12095 BUILD_REGRESS_TRUE='#' 12096 BUILD_REGRESS_FALSE= 12097fi 12098 12099 12100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 12101$as_echo_n "checking for library containing inet_ntoa... " >&6; } 12102if ${ac_cv_search_inet_ntoa+:} false; then : 12103 $as_echo_n "(cached) " >&6 12104else 12105 ac_func_search_save_LIBS=$LIBS 12106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12107/* end confdefs.h. */ 12108 12109/* Override any GCC internal prototype to avoid an error. 12110 Use char because int might match the return type of a GCC 12111 builtin and then its argument prototype would still apply. */ 12112#ifdef __cplusplus 12113extern "C" 12114#endif 12115char inet_ntoa (); 12116int 12117main () 12118{ 12119return inet_ntoa (); 12120 ; 12121 return 0; 12122} 12123_ACEOF 12124for ac_lib in '' nsl; do 12125 if test -z "$ac_lib"; then 12126 ac_res="none required" 12127 else 12128 ac_res=-l$ac_lib 12129 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12130 fi 12131 if ac_fn_c_try_link "$LINENO"; then : 12132 ac_cv_search_inet_ntoa=$ac_res 12133fi 12134rm -f core conftest.err conftest.$ac_objext \ 12135 conftest$ac_exeext 12136 if ${ac_cv_search_inet_ntoa+:} false; then : 12137 break 12138fi 12139done 12140if ${ac_cv_search_inet_ntoa+:} false; then : 12141 12142else 12143 ac_cv_search_inet_ntoa=no 12144fi 12145rm conftest.$ac_ext 12146LIBS=$ac_func_search_save_LIBS 12147fi 12148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 12149$as_echo "$ac_cv_search_inet_ntoa" >&6; } 12150ac_res=$ac_cv_search_inet_ntoa 12151if test "$ac_res" != no; then : 12152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12153 12154fi 12155 12156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 12157$as_echo_n "checking for library containing socket... " >&6; } 12158if ${ac_cv_search_socket+:} false; then : 12159 $as_echo_n "(cached) " >&6 12160else 12161 ac_func_search_save_LIBS=$LIBS 12162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12163/* end confdefs.h. */ 12164 12165/* Override any GCC internal prototype to avoid an error. 12166 Use char because int might match the return type of a GCC 12167 builtin and then its argument prototype would still apply. */ 12168#ifdef __cplusplus 12169extern "C" 12170#endif 12171char socket (); 12172int 12173main () 12174{ 12175return socket (); 12176 ; 12177 return 0; 12178} 12179_ACEOF 12180for ac_lib in '' socket; do 12181 if test -z "$ac_lib"; then 12182 ac_res="none required" 12183 else 12184 ac_res=-l$ac_lib 12185 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12186 fi 12187 if ac_fn_c_try_link "$LINENO"; then : 12188 ac_cv_search_socket=$ac_res 12189fi 12190rm -f core conftest.err conftest.$ac_objext \ 12191 conftest$ac_exeext 12192 if ${ac_cv_search_socket+:} false; then : 12193 break 12194fi 12195done 12196if ${ac_cv_search_socket+:} false; then : 12197 12198else 12199 ac_cv_search_socket=no 12200fi 12201rm conftest.$ac_ext 12202LIBS=$ac_func_search_save_LIBS 12203fi 12204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 12205$as_echo "$ac_cv_search_socket" >&6; } 12206ac_res=$ac_cv_search_socket 12207if test "$ac_res" != no; then : 12208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12209 12210fi 12211 12212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 12213$as_echo_n "checking for library containing inet_aton... " >&6; } 12214if ${ac_cv_search_inet_aton+:} false; then : 12215 $as_echo_n "(cached) " >&6 12216else 12217 ac_func_search_save_LIBS=$LIBS 12218cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12219/* end confdefs.h. */ 12220 12221/* Override any GCC internal prototype to avoid an error. 12222 Use char because int might match the return type of a GCC 12223 builtin and then its argument prototype would still apply. */ 12224#ifdef __cplusplus 12225extern "C" 12226#endif 12227char inet_aton (); 12228int 12229main () 12230{ 12231return inet_aton (); 12232 ; 12233 return 0; 12234} 12235_ACEOF 12236for ac_lib in '' resolv; do 12237 if test -z "$ac_lib"; then 12238 ac_res="none required" 12239 else 12240 ac_res=-l$ac_lib 12241 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12242 fi 12243 if ac_fn_c_try_link "$LINENO"; then : 12244 ac_cv_search_inet_aton=$ac_res 12245fi 12246rm -f core conftest.err conftest.$ac_objext \ 12247 conftest$ac_exeext 12248 if ${ac_cv_search_inet_aton+:} false; then : 12249 break 12250fi 12251done 12252if ${ac_cv_search_inet_aton+:} false; then : 12253 12254else 12255 ac_cv_search_inet_aton=no 12256fi 12257rm conftest.$ac_ext 12258LIBS=$ac_func_search_save_LIBS 12259fi 12260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 12261$as_echo "$ac_cv_search_inet_aton" >&6; } 12262ac_res=$ac_cv_search_inet_aton 12263if test "$ac_res" != no; then : 12264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12265 12266fi 12267 12268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 12269$as_echo_n "checking for library containing clock_gettime... " >&6; } 12270if ${ac_cv_search_clock_gettime+:} false; then : 12271 $as_echo_n "(cached) " >&6 12272else 12273 ac_func_search_save_LIBS=$LIBS 12274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12275/* end confdefs.h. */ 12276 12277/* Override any GCC internal prototype to avoid an error. 12278 Use char because int might match the return type of a GCC 12279 builtin and then its argument prototype would still apply. */ 12280#ifdef __cplusplus 12281extern "C" 12282#endif 12283char clock_gettime (); 12284int 12285main () 12286{ 12287return clock_gettime (); 12288 ; 12289 return 0; 12290} 12291_ACEOF 12292for ac_lib in '' rt; do 12293 if test -z "$ac_lib"; then 12294 ac_res="none required" 12295 else 12296 ac_res=-l$ac_lib 12297 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12298 fi 12299 if ac_fn_c_try_link "$LINENO"; then : 12300 ac_cv_search_clock_gettime=$ac_res 12301fi 12302rm -f core conftest.err conftest.$ac_objext \ 12303 conftest$ac_exeext 12304 if ${ac_cv_search_clock_gettime+:} false; then : 12305 break 12306fi 12307done 12308if ${ac_cv_search_clock_gettime+:} false; then : 12309 12310else 12311 ac_cv_search_clock_gettime=no 12312fi 12313rm conftest.$ac_ext 12314LIBS=$ac_func_search_save_LIBS 12315fi 12316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 12317$as_echo "$ac_cv_search_clock_gettime" >&6; } 12318ac_res=$ac_cv_search_clock_gettime 12319if test "$ac_res" != no; then : 12320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12321 12322fi 12323 12324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5 12325$as_echo_n "checking for library containing sendfile... " >&6; } 12326if ${ac_cv_search_sendfile+:} false; then : 12327 $as_echo_n "(cached) " >&6 12328else 12329 ac_func_search_save_LIBS=$LIBS 12330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12331/* end confdefs.h. */ 12332 12333/* Override any GCC internal prototype to avoid an error. 12334 Use char because int might match the return type of a GCC 12335 builtin and then its argument prototype would still apply. */ 12336#ifdef __cplusplus 12337extern "C" 12338#endif 12339char sendfile (); 12340int 12341main () 12342{ 12343return sendfile (); 12344 ; 12345 return 0; 12346} 12347_ACEOF 12348for ac_lib in '' sendfile; do 12349 if test -z "$ac_lib"; then 12350 ac_res="none required" 12351 else 12352 ac_res=-l$ac_lib 12353 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12354 fi 12355 if ac_fn_c_try_link "$LINENO"; then : 12356 ac_cv_search_sendfile=$ac_res 12357fi 12358rm -f core conftest.err conftest.$ac_objext \ 12359 conftest$ac_exeext 12360 if ${ac_cv_search_sendfile+:} false; then : 12361 break 12362fi 12363done 12364if ${ac_cv_search_sendfile+:} false; then : 12365 12366else 12367 ac_cv_search_sendfile=no 12368fi 12369rm conftest.$ac_ext 12370LIBS=$ac_func_search_save_LIBS 12371fi 12372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5 12373$as_echo "$ac_cv_search_sendfile" >&6; } 12374ac_res=$ac_cv_search_sendfile 12375if test "$ac_res" != no; then : 12376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12377 12378fi 12379 12380 12381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5 12382$as_echo_n "checking for WIN32... " >&6; } 12383cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12384/* end confdefs.h. */ 12385 12386int 12387main () 12388{ 12389 12390#ifndef _WIN32 12391die horribly 12392#endif 12393 12394 ; 12395 return 0; 12396} 12397_ACEOF 12398if ac_fn_c_try_compile "$LINENO"; then : 12399 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12400$as_echo "yes" >&6; } 12401else 12402 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12403$as_echo "no" >&6; } 12404fi 12405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12406 12407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5 12408$as_echo_n "checking for CYGWIN... " >&6; } 12409cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12410/* end confdefs.h. */ 12411 12412int 12413main () 12414{ 12415 12416#ifndef __CYGWIN__ 12417die horribly 12418#endif 12419 12420 ; 12421 return 0; 12422} 12423_ACEOF 12424if ac_fn_c_try_compile "$LINENO"; then : 12425 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12426$as_echo "yes" >&6; } 12427else 12428 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12429$as_echo "no" >&6; } 12430fi 12431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12432 12433for ac_header in zlib.h 12434do : 12435 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 12436if test "x$ac_cv_header_zlib_h" = xyes; then : 12437 cat >>confdefs.h <<_ACEOF 12438#define HAVE_ZLIB_H 1 12439_ACEOF 12440 12441fi 12442 12443done 12444 12445 12446if test "x$ac_cv_header_zlib_h" = "xyes"; then 12447save_LIBS="$LIBS" 12448LIBS="" 12449ZLIB_LIBS="" 12450have_zlib=no 12451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5 12452$as_echo_n "checking for library containing inflateEnd... " >&6; } 12453if ${ac_cv_search_inflateEnd+:} false; then : 12454 $as_echo_n "(cached) " >&6 12455else 12456 ac_func_search_save_LIBS=$LIBS 12457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12458/* end confdefs.h. */ 12459 12460/* Override any GCC internal prototype to avoid an error. 12461 Use char because int might match the return type of a GCC 12462 builtin and then its argument prototype would still apply. */ 12463#ifdef __cplusplus 12464extern "C" 12465#endif 12466char inflateEnd (); 12467int 12468main () 12469{ 12470return inflateEnd (); 12471 ; 12472 return 0; 12473} 12474_ACEOF 12475for ac_lib in '' z; do 12476 if test -z "$ac_lib"; then 12477 ac_res="none required" 12478 else 12479 ac_res=-l$ac_lib 12480 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12481 fi 12482 if ac_fn_c_try_link "$LINENO"; then : 12483 ac_cv_search_inflateEnd=$ac_res 12484fi 12485rm -f core conftest.err conftest.$ac_objext \ 12486 conftest$ac_exeext 12487 if ${ac_cv_search_inflateEnd+:} false; then : 12488 break 12489fi 12490done 12491if ${ac_cv_search_inflateEnd+:} false; then : 12492 12493else 12494 ac_cv_search_inflateEnd=no 12495fi 12496rm conftest.$ac_ext 12497LIBS=$ac_func_search_save_LIBS 12498fi 12499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5 12500$as_echo "$ac_cv_search_inflateEnd" >&6; } 12501ac_res=$ac_cv_search_inflateEnd 12502if test "$ac_res" != no; then : 12503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12504 have_zlib=yes 12505 ZLIB_LIBS="$LIBS" 12506 12507$as_echo "#define HAVE_LIBZ 1" >>confdefs.h 12508 12509fi 12510 12511LIBS="$save_LIBS" 12512 12513fi 12514 if test "$have_zlib" = "yes"; then 12515 ZLIB_REGRESS_TRUE= 12516 ZLIB_REGRESS_FALSE='#' 12517else 12518 ZLIB_REGRESS_TRUE='#' 12519 ZLIB_REGRESS_FALSE= 12520fi 12521 12522 12523if test "$bwin32" = true; then 12524 EV_LIB_WS32=-lws2_32 12525 EV_LIB_GDI=-lgdi32 12526else 12527 EV_LIB_WS32= 12528 EV_LIB_GDI= 12529fi 12530 12531 12532 12533 12534# Check whether --enable-largefile was given. 12535if test "${enable_largefile+set}" = set; then : 12536 enableval=$enable_largefile; 12537fi 12538 12539if test "$enable_largefile" != no; then 12540 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12542$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12543if ${ac_cv_sys_largefile_CC+:} false; then : 12544 $as_echo_n "(cached) " >&6 12545else 12546 ac_cv_sys_largefile_CC=no 12547 if test "$GCC" != yes; then 12548 ac_save_CC=$CC 12549 while :; do 12550 # IRIX 6.2 and later do not support large files by default, 12551 # so use the C compiler's -n32 option if that helps. 12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12553/* end confdefs.h. */ 12554#include <sys/types.h> 12555 /* Check that off_t can represent 2**63 - 1 correctly. 12556 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12557 since some C++ compilers masquerading as C compilers 12558 incorrectly reject 9223372036854775807. */ 12559#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12560 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12561 && LARGE_OFF_T % 2147483647 == 1) 12562 ? 1 : -1]; 12563int 12564main () 12565{ 12566 12567 ; 12568 return 0; 12569} 12570_ACEOF 12571 if ac_fn_c_try_compile "$LINENO"; then : 12572 break 12573fi 12574rm -f core conftest.err conftest.$ac_objext 12575 CC="$CC -n32" 12576 if ac_fn_c_try_compile "$LINENO"; then : 12577 ac_cv_sys_largefile_CC=' -n32'; break 12578fi 12579rm -f core conftest.err conftest.$ac_objext 12580 break 12581 done 12582 CC=$ac_save_CC 12583 rm -f conftest.$ac_ext 12584 fi 12585fi 12586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12587$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12588 if test "$ac_cv_sys_largefile_CC" != no; then 12589 CC=$CC$ac_cv_sys_largefile_CC 12590 fi 12591 12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12593$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12594if ${ac_cv_sys_file_offset_bits+:} false; then : 12595 $as_echo_n "(cached) " >&6 12596else 12597 while :; do 12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12599/* end confdefs.h. */ 12600#include <sys/types.h> 12601 /* Check that off_t can represent 2**63 - 1 correctly. 12602 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12603 since some C++ compilers masquerading as C compilers 12604 incorrectly reject 9223372036854775807. */ 12605#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12606 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12607 && LARGE_OFF_T % 2147483647 == 1) 12608 ? 1 : -1]; 12609int 12610main () 12611{ 12612 12613 ; 12614 return 0; 12615} 12616_ACEOF 12617if ac_fn_c_try_compile "$LINENO"; then : 12618 ac_cv_sys_file_offset_bits=no; break 12619fi 12620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12622/* end confdefs.h. */ 12623#define _FILE_OFFSET_BITS 64 12624#include <sys/types.h> 12625 /* Check that off_t can represent 2**63 - 1 correctly. 12626 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12627 since some C++ compilers masquerading as C compilers 12628 incorrectly reject 9223372036854775807. */ 12629#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12630 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12631 && LARGE_OFF_T % 2147483647 == 1) 12632 ? 1 : -1]; 12633int 12634main () 12635{ 12636 12637 ; 12638 return 0; 12639} 12640_ACEOF 12641if ac_fn_c_try_compile "$LINENO"; then : 12642 ac_cv_sys_file_offset_bits=64; break 12643fi 12644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12645 ac_cv_sys_file_offset_bits=unknown 12646 break 12647done 12648fi 12649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12650$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12651case $ac_cv_sys_file_offset_bits in #( 12652 no | unknown) ;; 12653 *) 12654cat >>confdefs.h <<_ACEOF 12655#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12656_ACEOF 12657;; 12658esac 12659rm -rf conftest* 12660 if test $ac_cv_sys_file_offset_bits = unknown; then 12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12662$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12663if ${ac_cv_sys_large_files+:} false; then : 12664 $as_echo_n "(cached) " >&6 12665else 12666 while :; do 12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12668/* end confdefs.h. */ 12669#include <sys/types.h> 12670 /* Check that off_t can represent 2**63 - 1 correctly. 12671 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12672 since some C++ compilers masquerading as C compilers 12673 incorrectly reject 9223372036854775807. */ 12674#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12676 && LARGE_OFF_T % 2147483647 == 1) 12677 ? 1 : -1]; 12678int 12679main () 12680{ 12681 12682 ; 12683 return 0; 12684} 12685_ACEOF 12686if ac_fn_c_try_compile "$LINENO"; then : 12687 ac_cv_sys_large_files=no; break 12688fi 12689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12691/* end confdefs.h. */ 12692#define _LARGE_FILES 1 12693#include <sys/types.h> 12694 /* Check that off_t can represent 2**63 - 1 correctly. 12695 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12696 since some C++ compilers masquerading as C compilers 12697 incorrectly reject 9223372036854775807. */ 12698#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12700 && LARGE_OFF_T % 2147483647 == 1) 12701 ? 1 : -1]; 12702int 12703main () 12704{ 12705 12706 ; 12707 return 0; 12708} 12709_ACEOF 12710if ac_fn_c_try_compile "$LINENO"; then : 12711 ac_cv_sys_large_files=1; break 12712fi 12713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12714 ac_cv_sys_large_files=unknown 12715 break 12716done 12717fi 12718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12719$as_echo "$ac_cv_sys_large_files" >&6; } 12720case $ac_cv_sys_large_files in #( 12721 no | unknown) ;; 12722 *) 12723cat >>confdefs.h <<_ACEOF 12724#define _LARGE_FILES $ac_cv_sys_large_files 12725_ACEOF 12726;; 12727esac 12728rm -rf conftest* 12729 fi 12730fi 12731 12732 12733 12734 12735ntp_pkgconfig_min_version='0.15.0' 12736if test -n "$ac_tool_prefix"; then 12737 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12738set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12740$as_echo_n "checking for $ac_word... " >&6; } 12741if ${ac_cv_path_PKG_CONFIG+:} false; then : 12742 $as_echo_n "(cached) " >&6 12743else 12744 case $PKG_CONFIG in 12745 [\\/]* | ?:[\\/]*) 12746 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12747 ;; 12748 *) 12749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12750for as_dir in $PATH 12751do 12752 IFS=$as_save_IFS 12753 test -z "$as_dir" && as_dir=. 12754 for ac_exec_ext in '' $ac_executable_extensions; do 12755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12756 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12758 break 2 12759 fi 12760done 12761 done 12762IFS=$as_save_IFS 12763 12764 ;; 12765esac 12766fi 12767PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12768if test -n "$PKG_CONFIG"; then 12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12770$as_echo "$PKG_CONFIG" >&6; } 12771else 12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12773$as_echo "no" >&6; } 12774fi 12775 12776 12777fi 12778if test -z "$ac_cv_path_PKG_CONFIG"; then 12779 ac_pt_PKG_CONFIG=$PKG_CONFIG 12780 # Extract the first word of "pkg-config", so it can be a program name with args. 12781set dummy pkg-config; ac_word=$2 12782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12783$as_echo_n "checking for $ac_word... " >&6; } 12784if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12785 $as_echo_n "(cached) " >&6 12786else 12787 case $ac_pt_PKG_CONFIG in 12788 [\\/]* | ?:[\\/]*) 12789 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12790 ;; 12791 *) 12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12793for as_dir in $PATH 12794do 12795 IFS=$as_save_IFS 12796 test -z "$as_dir" && as_dir=. 12797 for ac_exec_ext in '' $ac_executable_extensions; do 12798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12799 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12801 break 2 12802 fi 12803done 12804 done 12805IFS=$as_save_IFS 12806 12807 ;; 12808esac 12809fi 12810ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12811if test -n "$ac_pt_PKG_CONFIG"; then 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12813$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12814else 12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12816$as_echo "no" >&6; } 12817fi 12818 12819 if test "x$ac_pt_PKG_CONFIG" = x; then 12820 PKG_CONFIG="" 12821 else 12822 case $cross_compiling:$ac_tool_warned in 12823yes:) 12824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12826ac_tool_warned=yes ;; 12827esac 12828 PKG_CONFIG=$ac_pt_PKG_CONFIG 12829 fi 12830else 12831 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12832fi 12833 12834{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;} 12835{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 12836 12837case "$PKG_CONFIG" in 12838 /*) 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5 12840$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; } 12841 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12843$as_echo "yes" >&6; } 12844 else 12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12846$as_echo "no" >&6; } 12847 PKG_CONFIG="" 12848 fi 12849 ;; 12850esac 12851 12852 12853 12854 12855case "$enable_openssl" in 12856 yes) 12857 have_openssl=no 12858 case "$PKG_CONFIG" in 12859 '') 12860 ;; 12861 *) 12862 OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null` 12863 case "$OPENSSL_LIBS" in 12864 '') ;; 12865 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD" 12866 have_openssl=yes 12867 ;; 12868 esac 12869 OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null` 12870 ;; 12871 esac 12872 case "$have_openssl" in 12873 yes) ;; 12874 *) 12875 save_LIBS="$LIBS" 12876 LIBS="" 12877 OPENSSL_LIBS="" 12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5 12879$as_echo_n "checking for library containing SSL_new... " >&6; } 12880if ${ac_cv_search_SSL_new+:} false; then : 12881 $as_echo_n "(cached) " >&6 12882else 12883 ac_func_search_save_LIBS=$LIBS 12884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12885/* end confdefs.h. */ 12886 12887/* Override any GCC internal prototype to avoid an error. 12888 Use char because int might match the return type of a GCC 12889 builtin and then its argument prototype would still apply. */ 12890#ifdef __cplusplus 12891extern "C" 12892#endif 12893char SSL_new (); 12894int 12895main () 12896{ 12897return SSL_new (); 12898 ; 12899 return 0; 12900} 12901_ACEOF 12902for ac_lib in '' ssl; do 12903 if test -z "$ac_lib"; then 12904 ac_res="none required" 12905 else 12906 ac_res=-l$ac_lib 12907 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS" 12908 fi 12909 if ac_fn_c_try_link "$LINENO"; then : 12910 ac_cv_search_SSL_new=$ac_res 12911fi 12912rm -f core conftest.err conftest.$ac_objext \ 12913 conftest$ac_exeext 12914 if ${ac_cv_search_SSL_new+:} false; then : 12915 break 12916fi 12917done 12918if ${ac_cv_search_SSL_new+:} false; then : 12919 12920else 12921 ac_cv_search_SSL_new=no 12922fi 12923rm conftest.$ac_ext 12924LIBS=$ac_func_search_save_LIBS 12925fi 12926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5 12927$as_echo "$ac_cv_search_SSL_new" >&6; } 12928ac_res=$ac_cv_search_SSL_new 12929if test "$ac_res" != no; then : 12930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12931 have_openssl=yes 12932 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD" 12933else 12934 have_openssl=no 12935fi 12936 12937 LIBS="$save_LIBS" 12938 ;; 12939 esac 12940 12941 12942 case "$have_openssl" in 12943 yes) 12944$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 12945 ;; 12946 esac 12947 ;; 12948esac 12949 12950# check if we have and should use openssl 12951 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then 12952 OPENSSL_TRUE= 12953 OPENSSL_FALSE='#' 12954else 12955 OPENSSL_TRUE='#' 12956 OPENSSL_FALSE= 12957fi 12958 12959 12960 12961for ac_header in \ 12962 arpa/inet.h \ 12963 fcntl.h \ 12964 ifaddrs.h \ 12965 mach/mach_time.h \ 12966 netdb.h \ 12967 netinet/in.h \ 12968 netinet/in6.h \ 12969 netinet/tcp.h \ 12970 poll.h \ 12971 port.h \ 12972 stdarg.h \ 12973 stddef.h \ 12974 sys/devpoll.h \ 12975 sys/epoll.h \ 12976 sys/event.h \ 12977 sys/eventfd.h \ 12978 sys/ioctl.h \ 12979 sys/mman.h \ 12980 sys/param.h \ 12981 sys/queue.h \ 12982 sys/resource.h \ 12983 sys/select.h \ 12984 sys/sendfile.h \ 12985 sys/socket.h \ 12986 sys/stat.h \ 12987 sys/time.h \ 12988 sys/timerfd.h \ 12989 sys/uio.h \ 12990 sys/wait.h \ 12991 12992do : 12993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12994ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12995if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12996 cat >>confdefs.h <<_ACEOF 12997#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12998_ACEOF 12999 13000fi 13001 13002done 13003 13004 13005for ac_header in sys/sysctl.h 13006do : 13007 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 13008#ifdef HAVE_SYS_PARAM_H 13009#include <sys/param.h> 13010#endif 13011 13012" 13013if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 13014 cat >>confdefs.h <<_ACEOF 13015#define HAVE_SYS_SYSCTL_H 1 13016_ACEOF 13017 13018fi 13019 13020done 13021 13022if test "x$ac_cv_header_sys_queue_h" = "xyes"; then 13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5 13024$as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; } 13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13026/* end confdefs.h. */ 13027 13028#include <sys/queue.h> 13029#ifdef TAILQ_FOREACH 13030 yes 13031#endif 13032 13033_ACEOF 13034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13035 $EGREP "yes" >/dev/null 2>&1; then : 13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13037$as_echo "yes" >&6; } 13038 13039$as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h 13040 13041else 13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13043$as_echo "no" >&6; } 13044 13045fi 13046rm -f conftest* 13047 13048fi 13049 13050if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5 13052$as_echo_n "checking for timeradd in sys/time.h... " >&6; } 13053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13054/* end confdefs.h. */ 13055 13056#include <sys/time.h> 13057#ifdef timeradd 13058 yes 13059#endif 13060 13061_ACEOF 13062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13063 $EGREP "yes" >/dev/null 2>&1; then : 13064 13065$as_echo "#define HAVE_TIMERADD 1" >>confdefs.h 13066 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13068$as_echo "yes" >&6; } 13069else 13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13071$as_echo "no" >&6; } 13072 13073fi 13074rm -f conftest* 13075 13076fi 13077 13078if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5 13080$as_echo_n "checking for timercmp in sys/time.h... " >&6; } 13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13082/* end confdefs.h. */ 13083 13084#include <sys/time.h> 13085#ifdef timercmp 13086 yes 13087#endif 13088 13089_ACEOF 13090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13091 $EGREP "yes" >/dev/null 2>&1; then : 13092 13093$as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h 13094 13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13096$as_echo "yes" >&6; } 13097else 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13099$as_echo "no" >&6; } 13100 13101fi 13102rm -f conftest* 13103 13104fi 13105 13106if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5 13108$as_echo_n "checking for timerclear in sys/time.h... " >&6; } 13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13110/* end confdefs.h. */ 13111 13112#include <sys/time.h> 13113#ifdef timerclear 13114 yes 13115#endif 13116 13117_ACEOF 13118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13119 $EGREP "yes" >/dev/null 2>&1; then : 13120 13121$as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h 13122 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13124$as_echo "yes" >&6; } 13125else 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13127$as_echo "no" >&6; } 13128 13129fi 13130rm -f conftest* 13131 13132fi 13133 13134if test "x$ac_cv_header_sys_time_h" = "xyes"; then 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5 13136$as_echo_n "checking for timerisset in sys/time.h... " >&6; } 13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13138/* end confdefs.h. */ 13139 13140#include <sys/time.h> 13141#ifdef timerisset 13142 yes 13143#endif 13144 13145_ACEOF 13146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13147 $EGREP "yes" >/dev/null 2>&1; then : 13148 13149$as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h 13150 13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13152$as_echo "yes" >&6; } 13153else 13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13155$as_echo "no" >&6; } 13156 13157fi 13158rm -f conftest* 13159 13160fi 13161 13162if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then 13163 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h> 13164 #include <sys/sysctl.h> 13165 13166" 13167if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then : 13168 ac_have_decl=1 13169else 13170 ac_have_decl=0 13171fi 13172 13173cat >>confdefs.h <<_ACEOF 13174#define HAVE_DECL_CTL_KERN $ac_have_decl 13175_ACEOF 13176ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h> 13177 #include <sys/sysctl.h> 13178 13179" 13180if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then : 13181 ac_have_decl=1 13182else 13183 ac_have_decl=0 13184fi 13185 13186cat >>confdefs.h <<_ACEOF 13187#define HAVE_DECL_KERN_RANDOM $ac_have_decl 13188_ACEOF 13189ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h> 13190 #include <sys/sysctl.h> 13191 13192" 13193if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then : 13194 ac_have_decl=1 13195else 13196 ac_have_decl=0 13197fi 13198 13199cat >>confdefs.h <<_ACEOF 13200#define HAVE_DECL_RANDOM_UUID $ac_have_decl 13201_ACEOF 13202ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h> 13203 #include <sys/sysctl.h> 13204 13205" 13206if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then : 13207 ac_have_decl=1 13208else 13209 ac_have_decl=0 13210fi 13211 13212cat >>confdefs.h <<_ACEOF 13213#define HAVE_DECL_KERN_ARND $ac_have_decl 13214_ACEOF 13215 13216fi 13217 13218 if test x$bwin32 = xtrue; then 13219 BUILD_WIN32_TRUE= 13220 BUILD_WIN32_FALSE='#' 13221else 13222 BUILD_WIN32_TRUE='#' 13223 BUILD_WIN32_FALSE= 13224fi 13225 13226 if test x$cygwin = xtrue; then 13227 BUILD_CYGWIN_TRUE= 13228 BUILD_CYGWIN_FALSE='#' 13229else 13230 BUILD_CYGWIN_TRUE='#' 13231 BUILD_CYGWIN_FALSE= 13232fi 13233 13234 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then 13235 BUILD_WITH_NO_UNDEFINED_TRUE= 13236 BUILD_WITH_NO_UNDEFINED_FALSE='#' 13237else 13238 BUILD_WITH_NO_UNDEFINED_TRUE='#' 13239 BUILD_WITH_NO_UNDEFINED_FALSE= 13240fi 13241 13242 13243if test x$bwin32 = xtrue; then 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5 13245$as_echo_n "checking for library containing getservbyname... " >&6; } 13246if ${ac_cv_search_getservbyname+:} false; then : 13247 $as_echo_n "(cached) " >&6 13248else 13249 ac_func_search_save_LIBS=$LIBS 13250cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13251/* end confdefs.h. */ 13252 13253/* Override any GCC internal prototype to avoid an error. 13254 Use char because int might match the return type of a GCC 13255 builtin and then its argument prototype would still apply. */ 13256#ifdef __cplusplus 13257extern "C" 13258#endif 13259char getservbyname (); 13260int 13261main () 13262{ 13263return getservbyname (); 13264 ; 13265 return 0; 13266} 13267_ACEOF 13268for ac_lib in '' ws2_32; do 13269 if test -z "$ac_lib"; then 13270 ac_res="none required" 13271 else 13272 ac_res=-l$ac_lib 13273 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13274 fi 13275 if ac_fn_c_try_link "$LINENO"; then : 13276 ac_cv_search_getservbyname=$ac_res 13277fi 13278rm -f core conftest.err conftest.$ac_objext \ 13279 conftest$ac_exeext 13280 if ${ac_cv_search_getservbyname+:} false; then : 13281 break 13282fi 13283done 13284if ${ac_cv_search_getservbyname+:} false; then : 13285 13286else 13287 ac_cv_search_getservbyname=no 13288fi 13289rm conftest.$ac_ext 13290LIBS=$ac_func_search_save_LIBS 13291fi 13292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5 13293$as_echo "$ac_cv_search_getservbyname" >&6; } 13294ac_res=$ac_cv_search_getservbyname 13295if test "$ac_res" != no; then : 13296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13297 13298fi 13299 13300fi 13301 13302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13303$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13304if ${ac_cv_c_const+:} false; then : 13305 $as_echo_n "(cached) " >&6 13306else 13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13308/* end confdefs.h. */ 13309 13310int 13311main () 13312{ 13313/* FIXME: Include the comments suggested by Paul. */ 13314#ifndef __cplusplus 13315 /* Ultrix mips cc rejects this. */ 13316 typedef int charset[2]; 13317 const charset cs; 13318 /* SunOS 4.1.1 cc rejects this. */ 13319 char const *const *pcpcc; 13320 char **ppc; 13321 /* NEC SVR4.0.2 mips cc rejects this. */ 13322 struct point {int x, y;}; 13323 static struct point const zero = {0,0}; 13324 /* AIX XL C 1.02.0.0 rejects this. 13325 It does not let you subtract one const X* pointer from another in 13326 an arm of an if-expression whose if-part is not a constant 13327 expression */ 13328 const char *g = "string"; 13329 pcpcc = &g + (g ? g-g : 0); 13330 /* HPUX 7.0 cc rejects these. */ 13331 ++pcpcc; 13332 ppc = (char**) pcpcc; 13333 pcpcc = (char const *const *) ppc; 13334 { /* SCO 3.2v4 cc rejects this. */ 13335 char *t; 13336 char const *s = 0 ? (char *) 0 : (char const *) 0; 13337 13338 *t++ = 0; 13339 if (s) return 0; 13340 } 13341 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13342 int x[] = {25, 17}; 13343 const int *foo = &x[0]; 13344 ++foo; 13345 } 13346 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13347 typedef const int *iptr; 13348 iptr p = 0; 13349 ++p; 13350 } 13351 { /* AIX XL C 1.02.0.0 rejects this saying 13352 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13353 struct s { int j; const int *ap[3]; }; 13354 struct s *b; b->j = 5; 13355 } 13356 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13357 const int foo = 10; 13358 if (!foo) return 0; 13359 } 13360 return !cs[0] && !zero.x; 13361#endif 13362 13363 ; 13364 return 0; 13365} 13366_ACEOF 13367if ac_fn_c_try_compile "$LINENO"; then : 13368 ac_cv_c_const=yes 13369else 13370 ac_cv_c_const=no 13371fi 13372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13373fi 13374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13375$as_echo "$ac_cv_c_const" >&6; } 13376if test $ac_cv_c_const = no; then 13377 13378$as_echo "#define const /**/" >>confdefs.h 13379 13380fi 13381 13382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13383$as_echo_n "checking for inline... " >&6; } 13384if ${ac_cv_c_inline+:} false; then : 13385 $as_echo_n "(cached) " >&6 13386else 13387 ac_cv_c_inline=no 13388for ac_kw in inline __inline__ __inline; do 13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13390/* end confdefs.h. */ 13391#ifndef __cplusplus 13392typedef int foo_t; 13393static $ac_kw foo_t static_foo () {return 0; } 13394$ac_kw foo_t foo () {return 0; } 13395#endif 13396 13397_ACEOF 13398if ac_fn_c_try_compile "$LINENO"; then : 13399 ac_cv_c_inline=$ac_kw 13400fi 13401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13402 test "$ac_cv_c_inline" != no && break 13403done 13404 13405fi 13406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13407$as_echo "$ac_cv_c_inline" >&6; } 13408 13409case $ac_cv_c_inline in 13410 inline | yes) ;; 13411 *) 13412 case $ac_cv_c_inline in 13413 no) ac_val=;; 13414 *) ac_val=$ac_cv_c_inline;; 13415 esac 13416 cat >>confdefs.h <<_ACEOF 13417#ifndef __cplusplus 13418#define inline $ac_val 13419#endif 13420_ACEOF 13421 ;; 13422esac 13423 13424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 13425$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 13426if ${ac_cv_header_time+:} false; then : 13427 $as_echo_n "(cached) " >&6 13428else 13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13430/* end confdefs.h. */ 13431#include <sys/types.h> 13432#include <sys/time.h> 13433#include <time.h> 13434 13435int 13436main () 13437{ 13438if ((struct tm *) 0) 13439return 0; 13440 ; 13441 return 0; 13442} 13443_ACEOF 13444if ac_fn_c_try_compile "$LINENO"; then : 13445 ac_cv_header_time=yes 13446else 13447 ac_cv_header_time=no 13448fi 13449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13450fi 13451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 13452$as_echo "$ac_cv_header_time" >&6; } 13453if test $ac_cv_header_time = yes; then 13454 13455$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 13456 13457fi 13458 13459 13460for ac_func in \ 13461 accept4 \ 13462 arc4random \ 13463 arc4random_buf \ 13464 clock_gettime \ 13465 eventfd \ 13466 epoll_create1 \ 13467 fcntl \ 13468 getegid \ 13469 geteuid \ 13470 getifaddrs \ 13471 getnameinfo \ 13472 getprotobynumber \ 13473 gettimeofday \ 13474 inet_ntop \ 13475 inet_pton \ 13476 issetugid \ 13477 mach_absolute_time \ 13478 mmap \ 13479 nanosleep \ 13480 pipe \ 13481 pipe2 \ 13482 putenv \ 13483 sendfile \ 13484 setenv \ 13485 setrlimit \ 13486 sigaction \ 13487 signal \ 13488 splice \ 13489 strlcpy \ 13490 strsep \ 13491 strtok_r \ 13492 strtoll \ 13493 sysctl \ 13494 timerfd_create \ 13495 umask \ 13496 unsetenv \ 13497 usleep \ 13498 vasprintf \ 13499 13500do : 13501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13502ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13503if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13504 cat >>confdefs.h <<_ACEOF 13505#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13506_ACEOF 13507 13508fi 13509done 13510 13511 if test x"$ac_cv_func_strlcpy" = xno; then 13512 STRLCPY_IMPL_TRUE= 13513 STRLCPY_IMPL_FALSE='#' 13514else 13515 STRLCPY_IMPL_TRUE='#' 13516 STRLCPY_IMPL_FALSE= 13517fi 13518 13519 13520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 13521$as_echo_n "checking for getaddrinfo... " >&6; } 13522if ${libevent_cv_getaddrinfo+:} false; then : 13523 $as_echo_n "(cached) " >&6 13524else 13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13526/* end confdefs.h. */ 13527 13528 #ifdef HAVE_NETDB_H 13529 #include <netdb.h> 13530 #endif 13531 13532int 13533main () 13534{ 13535 13536 getaddrinfo; 13537 13538 13539 ; 13540 return 0; 13541} 13542_ACEOF 13543if ac_fn_c_try_link "$LINENO"; then : 13544 libevent_cv_getaddrinfo=yes 13545else 13546 libevent_cv_getaddrinfo=no 13547 13548fi 13549rm -f core conftest.err conftest.$ac_objext \ 13550 conftest$ac_exeext conftest.$ac_ext 13551 13552fi 13553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5 13554$as_echo "$libevent_cv_getaddrinfo" >&6; } 13555if test "$libevent_cv_getaddrinfo" = "yes" ; then 13556 13557$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 13558 13559else 13560 13561for ac_func in getservbyname 13562do : 13563 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname" 13564if test "x$ac_cv_func_getservbyname" = xyes; then : 13565 cat >>confdefs.h <<_ACEOF 13566#define HAVE_GETSERVBYNAME 1 13567_ACEOF 13568 13569fi 13570done 13571 13572# Check for gethostbyname_r in all its glorious incompatible versions. 13573# (This is cut-and-pasted from Tor, which based its logic on 13574# Python's configure.in.) 13575 13576 13577ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 13578if test "x$ac_cv_func_gethostbyname_r" = xyes; then : 13579 13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5 13581$as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; } 13582 OLD_CFLAGS=$CFLAGS 13583 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" 13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13585/* end confdefs.h. */ 13586 13587#include <netdb.h> 13588 13589int 13590main () 13591{ 13592 13593 char *cp1, *cp2; 13594 struct hostent *h1, *h2; 13595 int i1, i2; 13596 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2); 13597 13598 ; 13599 return 0; 13600} 13601_ACEOF 13602if ac_fn_c_try_compile "$LINENO"; then : 13603 13604 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 13605 13606 13607$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h 13608 13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5 13610$as_echo "6" >&6; } 13611 13612else 13613 13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13615/* end confdefs.h. */ 13616 13617#include <netdb.h> 13618 13619int 13620main () 13621{ 13622 13623 char *cp1, *cp2; 13624 struct hostent *h1; 13625 int i1, i2; 13626 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2); 13627 13628 ; 13629 return 0; 13630} 13631_ACEOF 13632if ac_fn_c_try_compile "$LINENO"; then : 13633 13634 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 13635 13636 13637$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h 13638 13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5 13640$as_echo "5" >&6; } 13641 13642else 13643 13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13645/* end confdefs.h. */ 13646 13647#include <netdb.h> 13648 13649int 13650main () 13651{ 13652 13653 char *cp1; 13654 struct hostent *h1; 13655 struct hostent_data hd; 13656 (void) gethostbyname_r(cp1,h1,&hd); 13657 13658 ; 13659 return 0; 13660} 13661_ACEOF 13662if ac_fn_c_try_compile "$LINENO"; then : 13663 13664 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 13665 13666 13667$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h 13668 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5 13670$as_echo "3" >&6; } 13671 13672else 13673 13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5 13675$as_echo "0" >&6; } 13676 13677fi 13678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13679 13680fi 13681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13682 13683fi 13684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13685 CFLAGS=$OLD_CFLAGS 13686 13687fi 13688 13689 13690fi 13691 13692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5 13693$as_echo_n "checking for F_SETFD in fcntl.h... " >&6; } 13694cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13695/* end confdefs.h. */ 13696 13697#define _GNU_SOURCE 13698#include <fcntl.h> 13699#ifdef F_SETFD 13700yes 13701#endif 13702 13703_ACEOF 13704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13705 $EGREP "yes" >/dev/null 2>&1; then : 13706 13707$as_echo "#define HAVE_SETFD 1" >>confdefs.h 13708 13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13710$as_echo "yes" >&6; } 13711else 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13713$as_echo "no" >&6; } 13714fi 13715rm -f conftest* 13716 13717 13718needsignal=no 13719haveselect=no 13720if test x$bwin32 != xtrue; then 13721 for ac_func in select 13722do : 13723 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 13724if test "x$ac_cv_func_select" = xyes; then : 13725 cat >>confdefs.h <<_ACEOF 13726#define HAVE_SELECT 1 13727_ACEOF 13728 haveselect=yes 13729fi 13730done 13731 13732 if test "x$haveselect" = "xyes" ; then 13733 needsignal=yes 13734 fi 13735fi 13736 if test "x$haveselect" = "xyes"; then 13737 SELECT_BACKEND_TRUE= 13738 SELECT_BACKEND_FALSE='#' 13739else 13740 SELECT_BACKEND_TRUE='#' 13741 SELECT_BACKEND_FALSE= 13742fi 13743 13744 13745havepoll=no 13746for ac_func in poll 13747do : 13748 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 13749if test "x$ac_cv_func_poll" = xyes; then : 13750 cat >>confdefs.h <<_ACEOF 13751#define HAVE_POLL 1 13752_ACEOF 13753 havepoll=yes 13754fi 13755done 13756 13757if test "x$havepoll" = "xyes" ; then 13758 needsignal=yes 13759fi 13760 if test "x$havepoll" = "xyes"; then 13761 POLL_BACKEND_TRUE= 13762 POLL_BACKEND_FALSE='#' 13763else 13764 POLL_BACKEND_TRUE='#' 13765 POLL_BACKEND_FALSE= 13766fi 13767 13768 13769havedevpoll=no 13770if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then 13771 13772$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h 13773 13774fi 13775 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then 13776 DEVPOLL_BACKEND_TRUE= 13777 DEVPOLL_BACKEND_FALSE='#' 13778else 13779 DEVPOLL_BACKEND_TRUE='#' 13780 DEVPOLL_BACKEND_FALSE= 13781fi 13782 13783 13784havekqueue=no 13785if test "x$ac_cv_header_sys_event_h" = "xyes"; then 13786 for ac_func in kqueue 13787do : 13788 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" 13789if test "x$ac_cv_func_kqueue" = xyes; then : 13790 cat >>confdefs.h <<_ACEOF 13791#define HAVE_KQUEUE 1 13792_ACEOF 13793 havekqueue=yes 13794fi 13795done 13796 13797 if test "x$havekqueue" = "xyes" ; then 13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5 13799$as_echo_n "checking for working kqueue... " >&6; } 13800 if test "$cross_compiling" = yes; then : 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13802$as_echo "no" >&6; } 13803else 13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13805/* end confdefs.h. */ 13806#include <sys/types.h> 13807#include <sys/time.h> 13808#include <sys/event.h> 13809#include <stdio.h> 13810#include <unistd.h> 13811#include <fcntl.h> 13812 13813int 13814main(int argc, char **argv) 13815{ 13816 int kq; 13817 int n; 13818 int fd[2]; 13819 struct kevent ev; 13820 struct timespec ts; 13821 char buf[8000]; 13822 13823 if (pipe(fd) == -1) 13824 exit(1); 13825 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1) 13826 exit(1); 13827 13828 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf)) 13829 ; 13830 13831 if ((kq = kqueue()) == -1) 13832 exit(1); 13833 13834 memset(&ev, 0, sizeof(ev)); 13835 ev.ident = fd[1]; 13836 ev.filter = EVFILT_WRITE; 13837 ev.flags = EV_ADD | EV_ENABLE; 13838 n = kevent(kq, &ev, 1, NULL, 0, NULL); 13839 if (n == -1) 13840 exit(1); 13841 13842 read(fd[0], buf, sizeof(buf)); 13843 13844 ts.tv_sec = 0; 13845 ts.tv_nsec = 0; 13846 n = kevent(kq, NULL, 0, &ev, 1, &ts); 13847 if (n == -1 || n == 0) 13848 exit(1); 13849 13850 exit(0); 13851} 13852_ACEOF 13853if ac_fn_c_try_run "$LINENO"; then : 13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13855$as_echo "yes" >&6; } 13856 13857$as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h 13858 13859 havekqueue=yes 13860 13861else 13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13863$as_echo "no" >&6; } 13864fi 13865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13866 conftest.$ac_objext conftest.beam conftest.$ac_ext 13867fi 13868 13869 fi 13870fi 13871 if test "x$havekqueue" = "xyes"; then 13872 KQUEUE_BACKEND_TRUE= 13873 KQUEUE_BACKEND_FALSE='#' 13874else 13875 KQUEUE_BACKEND_TRUE='#' 13876 KQUEUE_BACKEND_FALSE= 13877fi 13878 13879 13880haveepollsyscall=no 13881haveepoll=no 13882for ac_func in epoll_ctl 13883do : 13884 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" 13885if test "x$ac_cv_func_epoll_ctl" = xyes; then : 13886 cat >>confdefs.h <<_ACEOF 13887#define HAVE_EPOLL_CTL 1 13888_ACEOF 13889 haveepoll=yes 13890fi 13891done 13892 13893if test "x$haveepoll" = "xyes" ; then 13894 13895$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 13896 13897 needsignal=yes 13898fi 13899if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then 13900 if test "x$haveepoll" = "xno" ; then 13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5 13902$as_echo_n "checking for epoll system call... " >&6; } 13903 if test "$cross_compiling" = yes; then : 13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13905$as_echo "no" >&6; } 13906else 13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13908/* end confdefs.h. */ 13909#include <stdint.h> 13910#include <sys/param.h> 13911#include <sys/types.h> 13912#include <sys/syscall.h> 13913#include <sys/epoll.h> 13914#include <unistd.h> 13915 13916int 13917epoll_create(int size) 13918{ 13919 return (syscall(__NR_epoll_create, size)); 13920} 13921 13922int 13923main(int argc, char **argv) 13924{ 13925 int epfd; 13926 13927 epfd = epoll_create(256); 13928 exit (epfd == -1 ? 1 : 0); 13929} 13930_ACEOF 13931if ac_fn_c_try_run "$LINENO"; then : 13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13933$as_echo "yes" >&6; } 13934 13935$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 13936 13937 needsignal=yes 13938 have_epoll=yes 13939 case " $LIBOBJS " in 13940 *" epoll_sub.$ac_objext "* ) ;; 13941 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext" 13942 ;; 13943esac 13944 13945 13946else 13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13948$as_echo "no" >&6; } 13949fi 13950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13951 conftest.$ac_objext conftest.beam conftest.$ac_ext 13952fi 13953 13954 fi 13955fi 13956 if test "x$haveepoll" = "xyes"; then 13957 EPOLL_BACKEND_TRUE= 13958 EPOLL_BACKEND_FALSE='#' 13959else 13960 EPOLL_BACKEND_TRUE='#' 13961 EPOLL_BACKEND_FALSE= 13962fi 13963 13964 13965haveeventports=no 13966for ac_func in port_create 13967do : 13968 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create" 13969if test "x$ac_cv_func_port_create" = xyes; then : 13970 cat >>confdefs.h <<_ACEOF 13971#define HAVE_PORT_CREATE 1 13972_ACEOF 13973 haveeventports=yes 13974fi 13975done 13976 13977if test "x$haveeventports" = "xyes" ; then 13978 13979$as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h 13980 13981 needsignal=yes 13982fi 13983 if test "x$haveeventports" = "xyes"; then 13984 EVPORT_BACKEND_TRUE= 13985 EVPORT_BACKEND_FALSE='#' 13986else 13987 EVPORT_BACKEND_TRUE='#' 13988 EVPORT_BACKEND_FALSE= 13989fi 13990 13991 13992if test "x$bwin32" = "xtrue"; then 13993 needsignal=yes 13994fi 13995 13996 if test "x$needsignal" = "xyes"; then 13997 SIGNAL_SUPPORT_TRUE= 13998 SIGNAL_SUPPORT_FALSE='#' 13999else 14000 SIGNAL_SUPPORT_TRUE='#' 14001 SIGNAL_SUPPORT_FALSE= 14002fi 14003 14004 14005ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 14006if test "x$ac_cv_type_pid_t" = xyes; then : 14007 14008else 14009 14010cat >>confdefs.h <<_ACEOF 14011#define pid_t int 14012_ACEOF 14013 14014fi 14015 14016ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14017if test "x$ac_cv_type_size_t" = xyes; then : 14018 14019else 14020 14021cat >>confdefs.h <<_ACEOF 14022#define size_t unsigned int 14023_ACEOF 14024 14025fi 14026 14027ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14028if test "x$ac_cv_type_ssize_t" = xyes; then : 14029 14030else 14031 14032cat >>confdefs.h <<_ACEOF 14033#define ssize_t int 14034_ACEOF 14035 14036fi 14037 14038 14039ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H 14040#include <stdint.h> 14041#elif defined(HAVE_INTTYPES_H) 14042#include <inttypes.h> 14043#endif 14044#ifdef HAVE_SYS_TYPES_H 14045#include <sys/types.h> 14046#endif 14047" 14048if test "x$ac_cv_type_uint64_t" = xyes; then : 14049 14050cat >>confdefs.h <<_ACEOF 14051#define HAVE_UINT64_T 1 14052_ACEOF 14053 14054 14055fi 14056ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H 14057#include <stdint.h> 14058#elif defined(HAVE_INTTYPES_H) 14059#include <inttypes.h> 14060#endif 14061#ifdef HAVE_SYS_TYPES_H 14062#include <sys/types.h> 14063#endif 14064" 14065if test "x$ac_cv_type_uint32_t" = xyes; then : 14066 14067cat >>confdefs.h <<_ACEOF 14068#define HAVE_UINT32_T 1 14069_ACEOF 14070 14071 14072fi 14073ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H 14074#include <stdint.h> 14075#elif defined(HAVE_INTTYPES_H) 14076#include <inttypes.h> 14077#endif 14078#ifdef HAVE_SYS_TYPES_H 14079#include <sys/types.h> 14080#endif 14081" 14082if test "x$ac_cv_type_uint16_t" = xyes; then : 14083 14084cat >>confdefs.h <<_ACEOF 14085#define HAVE_UINT16_T 1 14086_ACEOF 14087 14088 14089fi 14090ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H 14091#include <stdint.h> 14092#elif defined(HAVE_INTTYPES_H) 14093#include <inttypes.h> 14094#endif 14095#ifdef HAVE_SYS_TYPES_H 14096#include <sys/types.h> 14097#endif 14098" 14099if test "x$ac_cv_type_uint8_t" = xyes; then : 14100 14101cat >>confdefs.h <<_ACEOF 14102#define HAVE_UINT8_T 1 14103_ACEOF 14104 14105 14106fi 14107ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H 14108#include <stdint.h> 14109#elif defined(HAVE_INTTYPES_H) 14110#include <inttypes.h> 14111#endif 14112#ifdef HAVE_SYS_TYPES_H 14113#include <sys/types.h> 14114#endif 14115" 14116if test "x$ac_cv_type_uintptr_t" = xyes; then : 14117 14118cat >>confdefs.h <<_ACEOF 14119#define HAVE_UINTPTR_T 1 14120_ACEOF 14121 14122 14123fi 14124 14125 14126ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H 14127#include <sys/types.h> 14128#endif 14129#ifdef HAVE_SYS_SELECT_H 14130#include <sys/select.h> 14131#endif 14132" 14133if test "x$ac_cv_type_fd_mask" = xyes; then : 14134 14135cat >>confdefs.h <<_ACEOF 14136#define HAVE_FD_MASK 1 14137_ACEOF 14138 14139 14140fi 14141 14142 14143# The cast to long int works around a bug in the HP C Compiler 14144# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14145# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14146# This bug is HP SR number 8606223364. 14147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 14148$as_echo_n "checking size of long long... " >&6; } 14149if ${ac_cv_sizeof_long_long+:} false; then : 14150 $as_echo_n "(cached) " >&6 14151else 14152 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 14153 14154else 14155 if test "$ac_cv_type_long_long" = yes; then 14156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14158as_fn_error 77 "cannot compute sizeof (long long) 14159See \`config.log' for more details" "$LINENO" 5; } 14160 else 14161 ac_cv_sizeof_long_long=0 14162 fi 14163fi 14164 14165fi 14166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 14167$as_echo "$ac_cv_sizeof_long_long" >&6; } 14168 14169 14170 14171cat >>confdefs.h <<_ACEOF 14172#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 14173_ACEOF 14174 14175 14176# The cast to long int works around a bug in the HP C Compiler 14177# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14178# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14179# This bug is HP SR number 8606223364. 14180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14181$as_echo_n "checking size of long... " >&6; } 14182if ${ac_cv_sizeof_long+:} false; then : 14183 $as_echo_n "(cached) " >&6 14184else 14185 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14186 14187else 14188 if test "$ac_cv_type_long" = yes; then 14189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14191as_fn_error 77 "cannot compute sizeof (long) 14192See \`config.log' for more details" "$LINENO" 5; } 14193 else 14194 ac_cv_sizeof_long=0 14195 fi 14196fi 14197 14198fi 14199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14200$as_echo "$ac_cv_sizeof_long" >&6; } 14201 14202 14203 14204cat >>confdefs.h <<_ACEOF 14205#define SIZEOF_LONG $ac_cv_sizeof_long 14206_ACEOF 14207 14208 14209# The cast to long int works around a bug in the HP C Compiler 14210# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14211# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14212# This bug is HP SR number 8606223364. 14213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 14214$as_echo_n "checking size of int... " >&6; } 14215if ${ac_cv_sizeof_int+:} false; then : 14216 $as_echo_n "(cached) " >&6 14217else 14218 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 14219 14220else 14221 if test "$ac_cv_type_int" = yes; then 14222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14224as_fn_error 77 "cannot compute sizeof (int) 14225See \`config.log' for more details" "$LINENO" 5; } 14226 else 14227 ac_cv_sizeof_int=0 14228 fi 14229fi 14230 14231fi 14232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 14233$as_echo "$ac_cv_sizeof_int" >&6; } 14234 14235 14236 14237cat >>confdefs.h <<_ACEOF 14238#define SIZEOF_INT $ac_cv_sizeof_int 14239_ACEOF 14240 14241 14242# The cast to long int works around a bug in the HP C Compiler 14243# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14244# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14245# This bug is HP SR number 8606223364. 14246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 14247$as_echo_n "checking size of short... " >&6; } 14248if ${ac_cv_sizeof_short+:} false; then : 14249 $as_echo_n "(cached) " >&6 14250else 14251 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 14252 14253else 14254 if test "$ac_cv_type_short" = yes; then 14255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14257as_fn_error 77 "cannot compute sizeof (short) 14258See \`config.log' for more details" "$LINENO" 5; } 14259 else 14260 ac_cv_sizeof_short=0 14261 fi 14262fi 14263 14264fi 14265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 14266$as_echo "$ac_cv_sizeof_short" >&6; } 14267 14268 14269 14270cat >>confdefs.h <<_ACEOF 14271#define SIZEOF_SHORT $ac_cv_sizeof_short 14272_ACEOF 14273 14274 14275# The cast to long int works around a bug in the HP C Compiler 14276# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14277# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14278# This bug is HP SR number 8606223364. 14279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 14280$as_echo_n "checking size of size_t... " >&6; } 14281if ${ac_cv_sizeof_size_t+:} false; then : 14282 $as_echo_n "(cached) " >&6 14283else 14284 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 14285 14286else 14287 if test "$ac_cv_type_size_t" = yes; then 14288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14290as_fn_error 77 "cannot compute sizeof (size_t) 14291See \`config.log' for more details" "$LINENO" 5; } 14292 else 14293 ac_cv_sizeof_size_t=0 14294 fi 14295fi 14296 14297fi 14298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 14299$as_echo "$ac_cv_sizeof_size_t" >&6; } 14300 14301 14302 14303cat >>confdefs.h <<_ACEOF 14304#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 14305_ACEOF 14306 14307 14308# The cast to long int works around a bug in the HP C Compiler 14309# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14310# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14311# This bug is HP SR number 8606223364. 14312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 14313$as_echo_n "checking size of void *... " >&6; } 14314if ${ac_cv_sizeof_void_p+:} false; then : 14315 $as_echo_n "(cached) " >&6 14316else 14317 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 14318 14319else 14320 if test "$ac_cv_type_void_p" = yes; then 14321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14323as_fn_error 77 "cannot compute sizeof (void *) 14324See \`config.log' for more details" "$LINENO" 5; } 14325 else 14326 ac_cv_sizeof_void_p=0 14327 fi 14328fi 14329 14330fi 14331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 14332$as_echo "$ac_cv_sizeof_void_p" >&6; } 14333 14334 14335 14336cat >>confdefs.h <<_ACEOF 14337#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 14338_ACEOF 14339 14340 14341# The cast to long int works around a bug in the HP C Compiler 14342# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14343# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14344# This bug is HP SR number 8606223364. 14345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 14346$as_echo_n "checking size of off_t... " >&6; } 14347if ${ac_cv_sizeof_off_t+:} false; then : 14348 $as_echo_n "(cached) " >&6 14349else 14350 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 14351 14352else 14353 if test "$ac_cv_type_off_t" = yes; then 14354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14356as_fn_error 77 "cannot compute sizeof (off_t) 14357See \`config.log' for more details" "$LINENO" 5; } 14358 else 14359 ac_cv_sizeof_off_t=0 14360 fi 14361fi 14362 14363fi 14364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 14365$as_echo "$ac_cv_sizeof_off_t" >&6; } 14366 14367 14368 14369cat >>confdefs.h <<_ACEOF 14370#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 14371_ACEOF 14372 14373 14374 14375ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE 14376#include <sys/types.h> 14377#ifdef HAVE_NETINET_IN_H 14378#include <netinet/in.h> 14379#endif 14380#ifdef HAVE_NETINET_IN6_H 14381#include <netinet/in6.h> 14382#endif 14383#ifdef HAVE_SYS_SOCKET_H 14384#include <sys/socket.h> 14385#endif 14386#ifdef HAVE_NETDB_H 14387#include <netdb.h> 14388#endif 14389#ifdef _WIN32 14390#define WIN32_WINNT 0x400 14391#define _WIN32_WINNT 0x400 14392#define WIN32_LEAN_AND_MEAN 14393#if defined(_MSC_VER) && (_MSC_VER < 1300) 14394#include <winsock.h> 14395#else 14396#include <winsock2.h> 14397#include <ws2tcpip.h> 14398#endif 14399#endif 14400 14401" 14402if test "x$ac_cv_type_struct_in6_addr" = xyes; then : 14403 14404cat >>confdefs.h <<_ACEOF 14405#define HAVE_STRUCT_IN6_ADDR 1 14406_ACEOF 14407 14408 14409fi 14410ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE 14411#include <sys/types.h> 14412#ifdef HAVE_NETINET_IN_H 14413#include <netinet/in.h> 14414#endif 14415#ifdef HAVE_NETINET_IN6_H 14416#include <netinet/in6.h> 14417#endif 14418#ifdef HAVE_SYS_SOCKET_H 14419#include <sys/socket.h> 14420#endif 14421#ifdef HAVE_NETDB_H 14422#include <netdb.h> 14423#endif 14424#ifdef _WIN32 14425#define WIN32_WINNT 0x400 14426#define _WIN32_WINNT 0x400 14427#define WIN32_LEAN_AND_MEAN 14428#if defined(_MSC_VER) && (_MSC_VER < 1300) 14429#include <winsock.h> 14430#else 14431#include <winsock2.h> 14432#include <ws2tcpip.h> 14433#endif 14434#endif 14435 14436" 14437if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : 14438 14439cat >>confdefs.h <<_ACEOF 14440#define HAVE_STRUCT_SOCKADDR_IN6 1 14441_ACEOF 14442 14443 14444fi 14445ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE 14446#include <sys/types.h> 14447#ifdef HAVE_NETINET_IN_H 14448#include <netinet/in.h> 14449#endif 14450#ifdef HAVE_NETINET_IN6_H 14451#include <netinet/in6.h> 14452#endif 14453#ifdef HAVE_SYS_SOCKET_H 14454#include <sys/socket.h> 14455#endif 14456#ifdef HAVE_NETDB_H 14457#include <netdb.h> 14458#endif 14459#ifdef _WIN32 14460#define WIN32_WINNT 0x400 14461#define _WIN32_WINNT 0x400 14462#define WIN32_LEAN_AND_MEAN 14463#if defined(_MSC_VER) && (_MSC_VER < 1300) 14464#include <winsock.h> 14465#else 14466#include <winsock2.h> 14467#include <ws2tcpip.h> 14468#endif 14469#endif 14470 14471" 14472if test "x$ac_cv_type_sa_family_t" = xyes; then : 14473 14474cat >>confdefs.h <<_ACEOF 14475#define HAVE_SA_FAMILY_T 1 14476_ACEOF 14477 14478 14479fi 14480ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE 14481#include <sys/types.h> 14482#ifdef HAVE_NETINET_IN_H 14483#include <netinet/in.h> 14484#endif 14485#ifdef HAVE_NETINET_IN6_H 14486#include <netinet/in6.h> 14487#endif 14488#ifdef HAVE_SYS_SOCKET_H 14489#include <sys/socket.h> 14490#endif 14491#ifdef HAVE_NETDB_H 14492#include <netdb.h> 14493#endif 14494#ifdef _WIN32 14495#define WIN32_WINNT 0x400 14496#define _WIN32_WINNT 0x400 14497#define WIN32_LEAN_AND_MEAN 14498#if defined(_MSC_VER) && (_MSC_VER < 1300) 14499#include <winsock.h> 14500#else 14501#include <winsock2.h> 14502#include <ws2tcpip.h> 14503#endif 14504#endif 14505 14506" 14507if test "x$ac_cv_type_struct_addrinfo" = xyes; then : 14508 14509cat >>confdefs.h <<_ACEOF 14510#define HAVE_STRUCT_ADDRINFO 1 14511_ACEOF 14512 14513 14514fi 14515ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE 14516#include <sys/types.h> 14517#ifdef HAVE_NETINET_IN_H 14518#include <netinet/in.h> 14519#endif 14520#ifdef HAVE_NETINET_IN6_H 14521#include <netinet/in6.h> 14522#endif 14523#ifdef HAVE_SYS_SOCKET_H 14524#include <sys/socket.h> 14525#endif 14526#ifdef HAVE_NETDB_H 14527#include <netdb.h> 14528#endif 14529#ifdef _WIN32 14530#define WIN32_WINNT 0x400 14531#define _WIN32_WINNT 0x400 14532#define WIN32_LEAN_AND_MEAN 14533#if defined(_MSC_VER) && (_MSC_VER < 1300) 14534#include <winsock.h> 14535#else 14536#include <winsock2.h> 14537#include <ws2tcpip.h> 14538#endif 14539#endif 14540 14541" 14542if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 14543 14544cat >>confdefs.h <<_ACEOF 14545#define HAVE_STRUCT_SOCKADDR_STORAGE 1 14546_ACEOF 14547 14548 14549fi 14550 14551ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h> 14552#ifdef HAVE_NETINET_IN_H 14553#include <netinet/in.h> 14554#endif 14555#ifdef HAVE_NETINET_IN6_H 14556#include <netinet/in6.h> 14557#endif 14558#ifdef HAVE_SYS_SOCKET_H 14559#include <sys/socket.h> 14560#endif 14561#ifdef _WIN32 14562#define WIN32_WINNT 0x400 14563#define _WIN32_WINNT 0x400 14564#define WIN32_LEAN_AND_MEAN 14565#if defined(_MSC_VER) && (_MSC_VER < 1300) 14566#include <winsock.h> 14567#else 14568#include <winsock2.h> 14569#include <ws2tcpip.h> 14570#endif 14571#endif 14572 14573" 14574if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then : 14575 14576cat >>confdefs.h <<_ACEOF 14577#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1 14578_ACEOF 14579 14580 14581fi 14582ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h> 14583#ifdef HAVE_NETINET_IN_H 14584#include <netinet/in.h> 14585#endif 14586#ifdef HAVE_NETINET_IN6_H 14587#include <netinet/in6.h> 14588#endif 14589#ifdef HAVE_SYS_SOCKET_H 14590#include <sys/socket.h> 14591#endif 14592#ifdef _WIN32 14593#define WIN32_WINNT 0x400 14594#define _WIN32_WINNT 0x400 14595#define WIN32_LEAN_AND_MEAN 14596#if defined(_MSC_VER) && (_MSC_VER < 1300) 14597#include <winsock.h> 14598#else 14599#include <winsock2.h> 14600#include <ws2tcpip.h> 14601#endif 14602#endif 14603 14604" 14605if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then : 14606 14607cat >>confdefs.h <<_ACEOF 14608#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1 14609_ACEOF 14610 14611 14612fi 14613ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h> 14614#ifdef HAVE_NETINET_IN_H 14615#include <netinet/in.h> 14616#endif 14617#ifdef HAVE_NETINET_IN6_H 14618#include <netinet/in6.h> 14619#endif 14620#ifdef HAVE_SYS_SOCKET_H 14621#include <sys/socket.h> 14622#endif 14623#ifdef _WIN32 14624#define WIN32_WINNT 0x400 14625#define _WIN32_WINNT 0x400 14626#define WIN32_LEAN_AND_MEAN 14627#if defined(_MSC_VER) && (_MSC_VER < 1300) 14628#include <winsock.h> 14629#else 14630#include <winsock2.h> 14631#include <ws2tcpip.h> 14632#endif 14633#endif 14634 14635" 14636if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 14637 14638cat >>confdefs.h <<_ACEOF 14639#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 14640_ACEOF 14641 14642 14643fi 14644ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h> 14645#ifdef HAVE_NETINET_IN_H 14646#include <netinet/in.h> 14647#endif 14648#ifdef HAVE_NETINET_IN6_H 14649#include <netinet/in6.h> 14650#endif 14651#ifdef HAVE_SYS_SOCKET_H 14652#include <sys/socket.h> 14653#endif 14654#ifdef _WIN32 14655#define WIN32_WINNT 0x400 14656#define _WIN32_WINNT 0x400 14657#define WIN32_LEAN_AND_MEAN 14658#if defined(_MSC_VER) && (_MSC_VER < 1300) 14659#include <winsock.h> 14660#else 14661#include <winsock2.h> 14662#include <ws2tcpip.h> 14663#endif 14664#endif 14665 14666" 14667if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then : 14668 14669cat >>confdefs.h <<_ACEOF 14670#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1 14671_ACEOF 14672 14673 14674fi 14675ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h> 14676#ifdef HAVE_NETINET_IN_H 14677#include <netinet/in.h> 14678#endif 14679#ifdef HAVE_NETINET_IN6_H 14680#include <netinet/in6.h> 14681#endif 14682#ifdef HAVE_SYS_SOCKET_H 14683#include <sys/socket.h> 14684#endif 14685#ifdef _WIN32 14686#define WIN32_WINNT 0x400 14687#define _WIN32_WINNT 0x400 14688#define WIN32_LEAN_AND_MEAN 14689#if defined(_MSC_VER) && (_MSC_VER < 1300) 14690#include <winsock.h> 14691#else 14692#include <winsock2.h> 14693#include <ws2tcpip.h> 14694#endif 14695#endif 14696 14697" 14698if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : 14699 14700cat >>confdefs.h <<_ACEOF 14701#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 14702_ACEOF 14703 14704 14705fi 14706ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h> 14707#ifdef HAVE_NETINET_IN_H 14708#include <netinet/in.h> 14709#endif 14710#ifdef HAVE_NETINET_IN6_H 14711#include <netinet/in6.h> 14712#endif 14713#ifdef HAVE_SYS_SOCKET_H 14714#include <sys/socket.h> 14715#endif 14716#ifdef _WIN32 14717#define WIN32_WINNT 0x400 14718#define _WIN32_WINNT 0x400 14719#define WIN32_LEAN_AND_MEAN 14720#if defined(_MSC_VER) && (_MSC_VER < 1300) 14721#include <winsock.h> 14722#else 14723#include <winsock2.h> 14724#include <ws2tcpip.h> 14725#endif 14726#endif 14727 14728" 14729if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then : 14730 14731cat >>confdefs.h <<_ACEOF 14732#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1 14733_ACEOF 14734 14735 14736fi 14737 14738 14739ac_fn_c_check_type "$LINENO" "struct so_linger" "ac_cv_type_struct_so_linger" " 14740#ifdef HAVE_SYS_SOCKET_H 14741#include <sys/socket.h> 14742#endif 14743 14744" 14745if test "x$ac_cv_type_struct_so_linger" = xyes; then : 14746 14747cat >>confdefs.h <<_ACEOF 14748#define HAVE_STRUCT_SO_LINGER 1 14749_ACEOF 14750 14751#define HAVE_SO_LINGER 14752fi 14753 14754 14755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 14756$as_echo_n "checking for socklen_t... " >&6; } 14757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14758/* end confdefs.h. */ 14759 14760 #include <sys/types.h> 14761 #include <sys/socket.h> 14762int 14763main () 14764{ 14765socklen_t x; 14766 ; 14767 return 0; 14768} 14769_ACEOF 14770if ac_fn_c_try_compile "$LINENO"; then : 14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14772$as_echo "yes" >&6; } 14773else 14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14775$as_echo "no" >&6; } 14776 14777$as_echo "#define socklen_t unsigned int" >>confdefs.h 14778 14779 14780fi 14781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14782 14783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5 14784$as_echo_n "checking whether our compiler supports __func__... " >&6; } 14785cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14786/* end confdefs.h. */ 14787 14788int 14789main () 14790{ 14791 const char *cp = __func__; 14792 ; 14793 return 0; 14794} 14795_ACEOF 14796if ac_fn_c_try_compile "$LINENO"; then : 14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14798$as_echo "yes" >&6; } 14799else 14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14801$as_echo "no" >&6; } 14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5 14803$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } 14804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14805/* end confdefs.h. */ 14806 14807int 14808main () 14809{ 14810 const char *cp = __FUNCTION__; 14811 ; 14812 return 0; 14813} 14814_ACEOF 14815if ac_fn_c_try_compile "$LINENO"; then : 14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14817$as_echo "yes" >&6; } 14818 14819$as_echo "#define __func__ __FUNCTION__" >>confdefs.h 14820 14821else 14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14823$as_echo "no" >&6; } 14824 14825$as_echo "#define __func__ __FILE__" >>confdefs.h 14826 14827fi 14828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14829fi 14830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14831 14832 14833# check if we can compile with pthreads 14834have_pthreads=no 14835if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then 14836 14837 14838 14839ac_ext=c 14840ac_cpp='$CPP $CPPFLAGS' 14841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14843ac_compiler_gnu=$ac_cv_c_compiler_gnu 14844 14845acx_pthread_ok=no 14846 14847# We used to check for pthread.h first, but this fails if pthread.h 14848# requires special compiler flags (e.g. on True64 or Sequent). 14849# It gets checked for in the link test anyway. 14850 14851# First of all, check if the user has set any of the PTHREAD_LIBS, 14852# etcetera environment variables, and if threads linking works using 14853# them: 14854if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 14855 save_CFLAGS="$CFLAGS" 14856 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14857 save_LIBS="$LIBS" 14858 LIBS="$PTHREAD_LIBS $LIBS" 14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 14860$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14862/* end confdefs.h. */ 14863 14864/* Override any GCC internal prototype to avoid an error. 14865 Use char because int might match the return type of a GCC 14866 builtin and then its argument prototype would still apply. */ 14867#ifdef __cplusplus 14868extern "C" 14869#endif 14870char pthread_join (); 14871int 14872main () 14873{ 14874return pthread_join (); 14875 ; 14876 return 0; 14877} 14878_ACEOF 14879if ac_fn_c_try_link "$LINENO"; then : 14880 acx_pthread_ok=yes 14881fi 14882rm -f core conftest.err conftest.$ac_objext \ 14883 conftest$ac_exeext conftest.$ac_ext 14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 14885$as_echo "$acx_pthread_ok" >&6; } 14886 if test x"$acx_pthread_ok" = xno; then 14887 PTHREAD_LIBS="" 14888 PTHREAD_CFLAGS="" 14889 fi 14890 LIBS="$save_LIBS" 14891 CFLAGS="$save_CFLAGS" 14892fi 14893 14894# We must check for the threads library under a number of different 14895# names; the ordering is very important because some systems 14896# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 14897# libraries is broken (non-POSIX). 14898 14899# Create a list of thread flags to try. Items starting with a "-" are 14900# C compiler flags, and other items are library names, except for "none" 14901# which indicates that we try without any flags at all, and "pthread-config" 14902# which is a program returning the flags for the Pth emulation library. 14903 14904acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 14905 14906# The ordering *is* (sometimes) important. Some notes on the 14907# individual items follow: 14908 14909# pthreads: AIX (must check this before -lpthread) 14910# none: in case threads are in libc; should be tried before -Kthread and 14911# other compiler flags to prevent continual compiler warnings 14912# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 14913# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 14914# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 14915# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 14916# -pthreads: Solaris/gcc 14917# -mthreads: Mingw32/gcc, Lynx/gcc 14918# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 14919# doesn't hurt to check since this sometimes defines pthreads too; 14920# also defines -D_REENTRANT) 14921# ... -mt is also the pthreads flag for HP/aCC 14922# pthread: Linux, etcetera 14923# --thread-safe: KAI C++ 14924# pthread-config: use pthread-config program (for GNU Pth library) 14925 14926case "${host_cpu}-${host_os}" in 14927 *solaris*) 14928 14929 # On Solaris (at least, for some versions), libc contains stubbed 14930 # (non-functional) versions of the pthreads routines, so link-based 14931 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 14932 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 14933 # a function called by this macro, so we could check for that, but 14934 # who knows whether they'll stub that too in a future libc.) So, 14935 # we'll just look for -pthreads and -lpthread first: 14936 14937 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 14938 ;; 14939esac 14940 14941if test x"$acx_pthread_ok" = xno; then 14942for flag in $acx_pthread_flags; do 14943 14944 case $flag in 14945 none) 14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 14947$as_echo_n "checking whether pthreads work without any flags... " >&6; } 14948 ;; 14949 14950 -*) 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 14952$as_echo_n "checking whether pthreads work with $flag... " >&6; } 14953 PTHREAD_CFLAGS="$flag" 14954 ;; 14955 14956 pthread-config) 14957 # Extract the first word of "pthread-config", so it can be a program name with args. 14958set dummy pthread-config; ac_word=$2 14959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14960$as_echo_n "checking for $ac_word... " >&6; } 14961if ${ac_cv_prog_acx_pthread_config+:} false; then : 14962 $as_echo_n "(cached) " >&6 14963else 14964 if test -n "$acx_pthread_config"; then 14965 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 14966else 14967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14968for as_dir in $PATH 14969do 14970 IFS=$as_save_IFS 14971 test -z "$as_dir" && as_dir=. 14972 for ac_exec_ext in '' $ac_executable_extensions; do 14973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14974 ac_cv_prog_acx_pthread_config="yes" 14975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14976 break 2 14977 fi 14978done 14979 done 14980IFS=$as_save_IFS 14981 14982 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 14983fi 14984fi 14985acx_pthread_config=$ac_cv_prog_acx_pthread_config 14986if test -n "$acx_pthread_config"; then 14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 14988$as_echo "$acx_pthread_config" >&6; } 14989else 14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14991$as_echo "no" >&6; } 14992fi 14993 14994 14995 if test x"$acx_pthread_config" = xno; then continue; fi 14996 PTHREAD_CFLAGS="`pthread-config --cflags`" 14997 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 14998 ;; 14999 15000 *) 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15002$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15003 PTHREAD_LIBS="-l$flag" 15004 ;; 15005 esac 15006 15007 save_LIBS="$LIBS" 15008 save_CFLAGS="$CFLAGS" 15009 LIBS="$PTHREAD_LIBS $LIBS" 15010 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15011 15012 # Check for various functions. We must include pthread.h, 15013 # since some functions may be macros. (On the Sequent, we 15014 # need a special flag -Kthread to make this header compile.) 15015 # We check for pthread_join because it is in -lpthread on IRIX 15016 # while pthread_create is in libc. We check for pthread_attr_init 15017 # due to DEC craziness with -lpthreads. We check for 15018 # pthread_cleanup_push because it is one of the few pthread 15019 # functions on Solaris that doesn't have a non-functional libc stub. 15020 # We try pthread_create on general principles. 15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15022/* end confdefs.h. */ 15023#include <pthread.h> 15024int 15025main () 15026{ 15027pthread_t th; pthread_join(th, 0); 15028 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15029 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15030 ; 15031 return 0; 15032} 15033_ACEOF 15034if ac_fn_c_try_link "$LINENO"; then : 15035 acx_pthread_ok=yes 15036fi 15037rm -f core conftest.err conftest.$ac_objext \ 15038 conftest$ac_exeext conftest.$ac_ext 15039 15040 LIBS="$save_LIBS" 15041 CFLAGS="$save_CFLAGS" 15042 15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15044$as_echo "$acx_pthread_ok" >&6; } 15045 if test "x$acx_pthread_ok" = xyes; then 15046 break; 15047 fi 15048 15049 PTHREAD_LIBS="" 15050 PTHREAD_CFLAGS="" 15051done 15052fi 15053 15054# Various other checks: 15055if test "x$acx_pthread_ok" = xyes; then 15056 save_LIBS="$LIBS" 15057 LIBS="$PTHREAD_LIBS $LIBS" 15058 save_CFLAGS="$CFLAGS" 15059 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15060 15061 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15063$as_echo_n "checking for joinable pthread attribute... " >&6; } 15064 attr_name=unknown 15065 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15067/* end confdefs.h. */ 15068#include <pthread.h> 15069int 15070main () 15071{ 15072int attr=$attr; return attr; 15073 ; 15074 return 0; 15075} 15076_ACEOF 15077if ac_fn_c_try_link "$LINENO"; then : 15078 attr_name=$attr; break 15079fi 15080rm -f core conftest.err conftest.$ac_objext \ 15081 conftest$ac_exeext conftest.$ac_ext 15082 done 15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15084$as_echo "$attr_name" >&6; } 15085 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15086 15087cat >>confdefs.h <<_ACEOF 15088#define PTHREAD_CREATE_JOINABLE $attr_name 15089_ACEOF 15090 15091 fi 15092 15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15094$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15095 flag=no 15096 case "${host_cpu}-${host_os}" in 15097 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 15098 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 15099 esac 15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15101$as_echo "${flag}" >&6; } 15102 if test "x$flag" != xno; then 15103 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15104 fi 15105 15106 LIBS="$save_LIBS" 15107 CFLAGS="$save_CFLAGS" 15108 15109 # More AIX lossage: must compile with xlc_r or cc_r 15110 if test x"$GCC" != xyes; then 15111 for ac_prog in xlc_r cc_r 15112do 15113 # Extract the first word of "$ac_prog", so it can be a program name with args. 15114set dummy $ac_prog; ac_word=$2 15115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15116$as_echo_n "checking for $ac_word... " >&6; } 15117if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15118 $as_echo_n "(cached) " >&6 15119else 15120 if test -n "$PTHREAD_CC"; then 15121 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15122else 15123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15124for as_dir in $PATH 15125do 15126 IFS=$as_save_IFS 15127 test -z "$as_dir" && as_dir=. 15128 for ac_exec_ext in '' $ac_executable_extensions; do 15129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15130 ac_cv_prog_PTHREAD_CC="$ac_prog" 15131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15132 break 2 15133 fi 15134done 15135 done 15136IFS=$as_save_IFS 15137 15138fi 15139fi 15140PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15141if test -n "$PTHREAD_CC"; then 15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15143$as_echo "$PTHREAD_CC" >&6; } 15144else 15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15146$as_echo "no" >&6; } 15147fi 15148 15149 15150 test -n "$PTHREAD_CC" && break 15151done 15152test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 15153 15154 else 15155 PTHREAD_CC=$CC 15156 fi 15157else 15158 PTHREAD_CC="$CC" 15159fi 15160 15161 15162 15163 15164 15165# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15166if test x"$acx_pthread_ok" = xyes; then 15167 15168 15169$as_echo "#define HAVE_PTHREADS 1" >>confdefs.h 15170 15171 have_pthreads=yes 15172 : 15173else 15174 acx_pthread_ok=no 15175 15176fi 15177ac_ext=c 15178ac_cpp='$CPP $CPPFLAGS' 15179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15181ac_compiler_gnu=$ac_cv_c_compiler_gnu 15182 15183 15184 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15185 # The cast to long int works around a bug in the HP C Compiler 15186# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15187# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15188# This bug is HP SR number 8606223364. 15189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 15190$as_echo_n "checking size of pthread_t... " >&6; } 15191if ${ac_cv_sizeof_pthread_t+:} false; then : 15192 $as_echo_n "(cached) " >&6 15193else 15194 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default 15195 #include <pthread.h> 15196 15197"; then : 15198 15199else 15200 if test "$ac_cv_type_pthread_t" = yes; then 15201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15203as_fn_error 77 "cannot compute sizeof (pthread_t) 15204See \`config.log' for more details" "$LINENO" 5; } 15205 else 15206 ac_cv_sizeof_pthread_t=0 15207 fi 15208fi 15209 15210fi 15211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 15212$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 15213 15214 15215 15216cat >>confdefs.h <<_ACEOF 15217#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 15218_ACEOF 15219 15220 15221fi 15222 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then 15223 PTHREADS_TRUE= 15224 PTHREADS_FALSE='#' 15225else 15226 PTHREADS_TRUE='#' 15227 PTHREADS_FALSE= 15228fi 15229 15230 15231# check if we should compile locking into the library 15232if test x$enable_thread_support = xno; then 15233 15234$as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h 15235 15236fi 15237 15238# check if we should hard-code the mm functions. 15239if test x$enable_malloc_replacement = xno; then 15240 15241$as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h 15242 15243fi 15244 15245# check if we should hard-code debugging out 15246if test x$enable_debug_mode = xno; then 15247 15248$as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h 15249 15250fi 15251 15252# check if we should enable verbose debugging 15253if test x$enable_verbose_debug = xyes; then 15254 CFLAGS="$CFLAGS -DUSE_DEBUG" 15255fi 15256 15257# check if we have and should use openssl 15258 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then 15259 OPENSSL_TRUE= 15260 OPENSSL_FALSE='#' 15261else 15262 OPENSSL_TRUE='#' 15263 OPENSSL_FALSE= 15264fi 15265 15266 15267# Add some more warnings which we use in development but not in the 15268# released versions. (Some relevant gcc versions can't handle these.) 15269if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then 15270 15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15272/* end confdefs.h. */ 15273 15274int 15275main () 15276{ 15277 15278#if !defined(__GNUC__) || (__GNUC__ < 4) 15279#error 15280#endif 15281 ; 15282 return 0; 15283} 15284_ACEOF 15285if ac_fn_c_try_compile "$LINENO"; then : 15286 have_gcc4=yes 15287else 15288 have_gcc4=no 15289fi 15290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15291 15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15293/* end confdefs.h. */ 15294 15295int 15296main () 15297{ 15298 15299#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2) 15300#error 15301#endif 15302 ; 15303 return 0; 15304} 15305_ACEOF 15306if ac_fn_c_try_compile "$LINENO"; then : 15307 have_gcc42=yes 15308else 15309 have_gcc42=no 15310fi 15311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15312 15313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15314/* end confdefs.h. */ 15315 15316int 15317main () 15318{ 15319 15320#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) 15321#error 15322#endif 15323 ; 15324 return 0; 15325} 15326_ACEOF 15327if ac_fn_c_try_compile "$LINENO"; then : 15328 have_gcc45=yes 15329else 15330 have_gcc45=no 15331fi 15332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15333 15334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15335/* end confdefs.h. */ 15336 15337int 15338main () 15339{ 15340 15341#if !defined(__clang__) 15342#error 15343#endif 15344 ; 15345 return 0; 15346} 15347_ACEOF 15348if ac_fn_c_try_compile "$LINENO"; then : 15349 have_clang=yes 15350else 15351 have_clang=no 15352fi 15353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15354 15355 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" 15356 if test x$enable_gcc_warnings = xyes; then 15357 CFLAGS="$CFLAGS -Werror" 15358 fi 15359 15360 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing" 15361 15362 if test x$have_gcc4 = xyes ; then 15363 # These warnings break gcc 3.3.5 and work on gcc 4.0.2 15364 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement" 15365 #CFLAGS="$CFLAGS -Wold-style-definition" 15366 fi 15367 15368 if test x$have_gcc42 = xyes ; then 15369 # These warnings break gcc 4.0.2 and work on gcc 4.2 15370 CFLAGS="$CFLAGS -Waddress" 15371 fi 15372 15373 if test x$have_gcc42 = xyes && test x$have_clang = xno; then 15374 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2 15375 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init" 15376 fi 15377 15378 if test x$have_gcc45 = xyes ; then 15379 # These warnings work on gcc 4.5 15380 CFLAGS="$CFLAGS -Wlogical-op" 15381 fi 15382 15383 if test x$have_clang = xyes; then 15384 # Disable the unused-function warnings, because these trigger 15385 # for minheap-internal.h related code. 15386 CFLAGS="$CFLAGS -Wno-unused-function" 15387 15388 # clang on macosx emits warnigns for each directory specified which 15389 # isn't "used" generating a lot of build noise (typically 3 warnings 15390 # per file 15391 case "$host_os" in 15392 darwin*) 15393 CFLAGS="$CFLAGS -Qunused-arguments" 15394 ;; 15395 esac 15396 fi 15397 15398##This will break the world on some 64-bit architectures 15399# CFLAGS="$CFLAGS -Winline" 15400 15401fi 15402 15403LIBEVENT_GC_SECTIONS= 15404if test "$GCC" = yes && test "$enable_function_sections" = yes ; then 15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 15406$as_echo_n "checking if linker supports omitting unused code and data... " >&6; } 15407if ${libevent_cv_gc_sections_runs+:} false; then : 15408 $as_echo_n "(cached) " >&6 15409else 15410 15411 origCFLAGS="$CFLAGS" 15412 CFLAGS="$CFLAGS -Wl,--gc-sections" 15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15414/* end confdefs.h. */ 15415 15416 #include <stdlib.h> 15417 #include <stdio.h> 15418 15419int 15420main () 15421{ 15422 15423 FILE * fpC; 15424 char buf[32]; 15425 size_t cch; 15426 int read_success_once; 15427 15428 fpC = fopen("conftest.c", "r"); 15429 if (NULL == fpC) 15430 exit(1); 15431 do { 15432 cch = fread(buf, sizeof(buf), 1, fpC); 15433 read_success_once |= (0 != cch); 15434 } while (0 != cch); 15435 if (!read_success_once) 15436 exit(2); 15437 if (!feof(fpC)) 15438 exit(3); 15439 if (0 != fclose(fpC)) 15440 exit(4); 15441 15442 exit(EXIT_SUCCESS); 15443 15444 15445 ; 15446 return 0; 15447} 15448_ACEOF 15449if ac_fn_c_try_link "$LINENO"; then : 15450 15451 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 15452 libevent_cv_gc_sections_runs=no 15453 else 15454 libevent_cv_gc_sections_runs=no 15455 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes 15456 fi 15457 15458else 15459 libevent_cv_gc_sections_runs=no 15460 15461fi 15462rm -f core conftest.err conftest.$ac_objext \ 15463 conftest$ac_exeext conftest.$ac_ext 15464 CFLAGS="$origCFLAGS" 15465 { origCFLAGS=; unset origCFLAGS;} 15466 15467 15468fi 15469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5 15470$as_echo "$libevent_cv_gc_sections_runs" >&6; } 15471 case "$libevent_cv_gc_sections_runs" in 15472 yes) 15473 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS" 15474 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections" 15475 ;; 15476 esac 15477fi 15478 15479 15480 if test "$enable_libevent_install" = "yes"; then 15481 INSTALL_LIBEVENT_TRUE= 15482 INSTALL_LIBEVENT_FALSE='#' 15483else 15484 INSTALL_LIBEVENT_TRUE='#' 15485 INSTALL_LIBEVENT_FALSE= 15486fi 15487 15488 15489ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc" 15490 15491ac_config_files="$ac_config_files Makefile" 15492 15493cat >confcache <<\_ACEOF 15494# This file is a shell script that caches the results of configure 15495# tests run on this system so they can be shared between configure 15496# scripts and configure runs, see configure's option --config-cache. 15497# It is not useful on other systems. If it contains results you don't 15498# want to keep, you may remove or edit it. 15499# 15500# config.status only pays attention to the cache file if you give it 15501# the --recheck option to rerun configure. 15502# 15503# `ac_cv_env_foo' variables (set or unset) will be overridden when 15504# loading this file, other *unset* `ac_cv_foo' will be assigned the 15505# following values. 15506 15507_ACEOF 15508 15509# The following way of writing the cache mishandles newlines in values, 15510# but we know of no workaround that is simple, portable, and efficient. 15511# So, we kill variables containing newlines. 15512# Ultrix sh set writes to stderr and can't be redirected directly, 15513# and sets the high bit in the cache file unless we assign to the vars. 15514( 15515 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15516 eval ac_val=\$$ac_var 15517 case $ac_val in #( 15518 *${as_nl}*) 15519 case $ac_var in #( 15520 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15521$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15522 esac 15523 case $ac_var in #( 15524 _ | IFS | as_nl) ;; #( 15525 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15526 *) { eval $ac_var=; unset $ac_var;} ;; 15527 esac ;; 15528 esac 15529 done 15530 15531 (set) 2>&1 | 15532 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15533 *${as_nl}ac_space=\ *) 15534 # `set' does not quote correctly, so add quotes: double-quote 15535 # substitution turns \\\\ into \\, and sed turns \\ into \. 15536 sed -n \ 15537 "s/'/'\\\\''/g; 15538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15539 ;; #( 15540 *) 15541 # `set' quotes correctly as required by POSIX, so do not add quotes. 15542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15543 ;; 15544 esac | 15545 sort 15546) | 15547 sed ' 15548 /^ac_cv_env_/b end 15549 t clear 15550 :clear 15551 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15552 t end 15553 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15554 :end' >>confcache 15555if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15556 if test -w "$cache_file"; then 15557 if test "x$cache_file" != "x/dev/null"; then 15558 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15559$as_echo "$as_me: updating cache $cache_file" >&6;} 15560 if test ! -f "$cache_file" || test -h "$cache_file"; then 15561 cat confcache >"$cache_file" 15562 else 15563 case $cache_file in #( 15564 */* | ?:*) 15565 mv -f confcache "$cache_file"$$ && 15566 mv -f "$cache_file"$$ "$cache_file" ;; #( 15567 *) 15568 mv -f confcache "$cache_file" ;; 15569 esac 15570 fi 15571 fi 15572 else 15573 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15574$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15575 fi 15576fi 15577rm -f confcache 15578 15579test "x$prefix" = xNONE && prefix=$ac_default_prefix 15580# Let make expand exec_prefix. 15581test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15582 15583DEFS=-DHAVE_CONFIG_H 15584 15585ac_libobjs= 15586ac_ltlibobjs= 15587U= 15588for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15589 # 1. Remove the extension, and $U if already installed. 15590 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15591 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15592 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15593 # will be set to the directory where LIBOBJS objects are built. 15594 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15595 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15596done 15597LIBOBJS=$ac_libobjs 15598 15599LTLIBOBJS=$ac_ltlibobjs 15600 15601 15602 if test -n "$EXEEXT"; then 15603 am__EXEEXT_TRUE= 15604 am__EXEEXT_FALSE='#' 15605else 15606 am__EXEEXT_TRUE='#' 15607 am__EXEEXT_FALSE= 15608fi 15609 15610if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15611 as_fn_error $? "conditional \"AMDEP\" was never defined. 15612Usually this means the macro was only invoked conditionally." "$LINENO" 5 15613fi 15614if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15615 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15616Usually this means the macro was only invoked conditionally." "$LINENO" 5 15617fi 15618if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then 15619 as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined. 15620Usually this means the macro was only invoked conditionally." "$LINENO" 5 15621fi 15622if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then 15623 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined. 15624Usually this means the macro was only invoked conditionally." "$LINENO" 5 15625fi 15626if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then 15627 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined. 15628Usually this means the macro was only invoked conditionally." "$LINENO" 5 15629fi 15630if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then 15631 as_fn_error $? "conditional \"OPENSSL\" was never defined. 15632Usually this means the macro was only invoked conditionally." "$LINENO" 5 15633fi 15634if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then 15635 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined. 15636Usually this means the macro was only invoked conditionally." "$LINENO" 5 15637fi 15638if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then 15639 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined. 15640Usually this means the macro was only invoked conditionally." "$LINENO" 5 15641fi 15642if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then 15643 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined. 15644Usually this means the macro was only invoked conditionally." "$LINENO" 5 15645fi 15646if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then 15647 as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined. 15648Usually this means the macro was only invoked conditionally." "$LINENO" 5 15649fi 15650if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then 15651 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined. 15652Usually this means the macro was only invoked conditionally." "$LINENO" 5 15653fi 15654if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then 15655 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined. 15656Usually this means the macro was only invoked conditionally." "$LINENO" 5 15657fi 15658if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then 15659 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined. 15660Usually this means the macro was only invoked conditionally." "$LINENO" 5 15661fi 15662if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then 15663 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined. 15664Usually this means the macro was only invoked conditionally." "$LINENO" 5 15665fi 15666if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then 15667 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined. 15668Usually this means the macro was only invoked conditionally." "$LINENO" 5 15669fi 15670if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then 15671 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined. 15672Usually this means the macro was only invoked conditionally." "$LINENO" 5 15673fi 15674if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then 15675 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined. 15676Usually this means the macro was only invoked conditionally." "$LINENO" 5 15677fi 15678if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 15679 as_fn_error $? "conditional \"PTHREADS\" was never defined. 15680Usually this means the macro was only invoked conditionally." "$LINENO" 5 15681fi 15682if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then 15683 as_fn_error $? "conditional \"OPENSSL\" was never defined. 15684Usually this means the macro was only invoked conditionally." "$LINENO" 5 15685fi 15686if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then 15687 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined. 15688Usually this means the macro was only invoked conditionally." "$LINENO" 5 15689fi 15690 15691: "${CONFIG_STATUS=./config.status}" 15692ac_write_fail=0 15693ac_clean_files_save=$ac_clean_files 15694ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15695{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15696$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15697as_write_fail=0 15698cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15699#! $SHELL 15700# Generated by $as_me. 15701# Run this file to recreate the current configuration. 15702# Compiler output produced by configure, useful for debugging 15703# configure, is in config.log if it exists. 15704 15705debug=false 15706ac_cs_recheck=false 15707ac_cs_silent=false 15708 15709SHELL=\${CONFIG_SHELL-$SHELL} 15710export SHELL 15711_ASEOF 15712cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15713## -------------------- ## 15714## M4sh Initialization. ## 15715## -------------------- ## 15716 15717# Be more Bourne compatible 15718DUALCASE=1; export DUALCASE # for MKS sh 15719if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15720 emulate sh 15721 NULLCMD=: 15722 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15723 # is contrary to our usage. Disable this feature. 15724 alias -g '${1+"$@"}'='"$@"' 15725 setopt NO_GLOB_SUBST 15726else 15727 case `(set -o) 2>/dev/null` in #( 15728 *posix*) : 15729 set -o posix ;; #( 15730 *) : 15731 ;; 15732esac 15733fi 15734 15735 15736as_nl=' 15737' 15738export as_nl 15739# Printing a long string crashes Solaris 7 /usr/bin/printf. 15740as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15741as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15742as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15743# Prefer a ksh shell builtin over an external printf program on Solaris, 15744# but without wasting forks for bash or zsh. 15745if test -z "$BASH_VERSION$ZSH_VERSION" \ 15746 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15747 as_echo='print -r --' 15748 as_echo_n='print -rn --' 15749elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15750 as_echo='printf %s\n' 15751 as_echo_n='printf %s' 15752else 15753 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15754 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15755 as_echo_n='/usr/ucb/echo -n' 15756 else 15757 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15758 as_echo_n_body='eval 15759 arg=$1; 15760 case $arg in #( 15761 *"$as_nl"*) 15762 expr "X$arg" : "X\\(.*\\)$as_nl"; 15763 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15764 esac; 15765 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15766 ' 15767 export as_echo_n_body 15768 as_echo_n='sh -c $as_echo_n_body as_echo' 15769 fi 15770 export as_echo_body 15771 as_echo='sh -c $as_echo_body as_echo' 15772fi 15773 15774# The user is always right. 15775if test "${PATH_SEPARATOR+set}" != set; then 15776 PATH_SEPARATOR=: 15777 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15778 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15779 PATH_SEPARATOR=';' 15780 } 15781fi 15782 15783 15784# IFS 15785# We need space, tab and new line, in precisely that order. Quoting is 15786# there to prevent editors from complaining about space-tab. 15787# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15788# splitting by setting IFS to empty value.) 15789IFS=" "" $as_nl" 15790 15791# Find who we are. Look in the path if we contain no directory separator. 15792as_myself= 15793case $0 in #(( 15794 *[\\/]* ) as_myself=$0 ;; 15795 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15796for as_dir in $PATH 15797do 15798 IFS=$as_save_IFS 15799 test -z "$as_dir" && as_dir=. 15800 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15801 done 15802IFS=$as_save_IFS 15803 15804 ;; 15805esac 15806# We did not find ourselves, most probably we were run as `sh COMMAND' 15807# in which case we are not to be found in the path. 15808if test "x$as_myself" = x; then 15809 as_myself=$0 15810fi 15811if test ! -f "$as_myself"; then 15812 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15813 exit 1 15814fi 15815 15816# Unset variables that we do not need and which cause bugs (e.g. in 15817# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15818# suppresses any "Segmentation fault" message there. '((' could 15819# trigger a bug in pdksh 5.2.14. 15820for as_var in BASH_ENV ENV MAIL MAILPATH 15821do eval test x\${$as_var+set} = xset \ 15822 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15823done 15824PS1='$ ' 15825PS2='> ' 15826PS4='+ ' 15827 15828# NLS nuisances. 15829LC_ALL=C 15830export LC_ALL 15831LANGUAGE=C 15832export LANGUAGE 15833 15834# CDPATH. 15835(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15836 15837 15838# as_fn_error STATUS ERROR [LINENO LOG_FD] 15839# ---------------------------------------- 15840# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15841# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15842# script with STATUS, using 1 if that was 0. 15843as_fn_error () 15844{ 15845 as_status=$1; test $as_status -eq 0 && as_status=1 15846 if test "$4"; then 15847 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15848 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15849 fi 15850 $as_echo "$as_me: error: $2" >&2 15851 as_fn_exit $as_status 15852} # as_fn_error 15853 15854 15855# as_fn_set_status STATUS 15856# ----------------------- 15857# Set $? to STATUS, without forking. 15858as_fn_set_status () 15859{ 15860 return $1 15861} # as_fn_set_status 15862 15863# as_fn_exit STATUS 15864# ----------------- 15865# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15866as_fn_exit () 15867{ 15868 set +e 15869 as_fn_set_status $1 15870 exit $1 15871} # as_fn_exit 15872 15873# as_fn_unset VAR 15874# --------------- 15875# Portably unset VAR. 15876as_fn_unset () 15877{ 15878 { eval $1=; unset $1;} 15879} 15880as_unset=as_fn_unset 15881# as_fn_append VAR VALUE 15882# ---------------------- 15883# Append the text in VALUE to the end of the definition contained in VAR. Take 15884# advantage of any shell optimizations that allow amortized linear growth over 15885# repeated appends, instead of the typical quadratic growth present in naive 15886# implementations. 15887if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15888 eval 'as_fn_append () 15889 { 15890 eval $1+=\$2 15891 }' 15892else 15893 as_fn_append () 15894 { 15895 eval $1=\$$1\$2 15896 } 15897fi # as_fn_append 15898 15899# as_fn_arith ARG... 15900# ------------------ 15901# Perform arithmetic evaluation on the ARGs, and store the result in the 15902# global $as_val. Take advantage of shells that can avoid forks. The arguments 15903# must be portable across $(()) and expr. 15904if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15905 eval 'as_fn_arith () 15906 { 15907 as_val=$(( $* )) 15908 }' 15909else 15910 as_fn_arith () 15911 { 15912 as_val=`expr "$@" || test $? -eq 1` 15913 } 15914fi # as_fn_arith 15915 15916 15917if expr a : '\(a\)' >/dev/null 2>&1 && 15918 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15919 as_expr=expr 15920else 15921 as_expr=false 15922fi 15923 15924if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15925 as_basename=basename 15926else 15927 as_basename=false 15928fi 15929 15930if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15931 as_dirname=dirname 15932else 15933 as_dirname=false 15934fi 15935 15936as_me=`$as_basename -- "$0" || 15937$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15938 X"$0" : 'X\(//\)$' \| \ 15939 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15940$as_echo X/"$0" | 15941 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15942 s//\1/ 15943 q 15944 } 15945 /^X\/\(\/\/\)$/{ 15946 s//\1/ 15947 q 15948 } 15949 /^X\/\(\/\).*/{ 15950 s//\1/ 15951 q 15952 } 15953 s/.*/./; q'` 15954 15955# Avoid depending upon Character Ranges. 15956as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15957as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15958as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15959as_cr_digits='0123456789' 15960as_cr_alnum=$as_cr_Letters$as_cr_digits 15961 15962ECHO_C= ECHO_N= ECHO_T= 15963case `echo -n x` in #((((( 15964-n*) 15965 case `echo 'xy\c'` in 15966 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15967 xy) ECHO_C='\c';; 15968 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15969 ECHO_T=' ';; 15970 esac;; 15971*) 15972 ECHO_N='-n';; 15973esac 15974 15975rm -f conf$$ conf$$.exe conf$$.file 15976if test -d conf$$.dir; then 15977 rm -f conf$$.dir/conf$$.file 15978else 15979 rm -f conf$$.dir 15980 mkdir conf$$.dir 2>/dev/null 15981fi 15982if (echo >conf$$.file) 2>/dev/null; then 15983 if ln -s conf$$.file conf$$ 2>/dev/null; then 15984 as_ln_s='ln -s' 15985 # ... but there are two gotchas: 15986 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15987 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15988 # In both cases, we have to default to `cp -p'. 15989 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15990 as_ln_s='cp -p' 15991 elif ln conf$$.file conf$$ 2>/dev/null; then 15992 as_ln_s=ln 15993 else 15994 as_ln_s='cp -p' 15995 fi 15996else 15997 as_ln_s='cp -p' 15998fi 15999rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16000rmdir conf$$.dir 2>/dev/null 16001 16002 16003# as_fn_mkdir_p 16004# ------------- 16005# Create "$as_dir" as a directory, including parents if necessary. 16006as_fn_mkdir_p () 16007{ 16008 16009 case $as_dir in #( 16010 -*) as_dir=./$as_dir;; 16011 esac 16012 test -d "$as_dir" || eval $as_mkdir_p || { 16013 as_dirs= 16014 while :; do 16015 case $as_dir in #( 16016 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16017 *) as_qdir=$as_dir;; 16018 esac 16019 as_dirs="'$as_qdir' $as_dirs" 16020 as_dir=`$as_dirname -- "$as_dir" || 16021$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16022 X"$as_dir" : 'X\(//\)[^/]' \| \ 16023 X"$as_dir" : 'X\(//\)$' \| \ 16024 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16025$as_echo X"$as_dir" | 16026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16027 s//\1/ 16028 q 16029 } 16030 /^X\(\/\/\)[^/].*/{ 16031 s//\1/ 16032 q 16033 } 16034 /^X\(\/\/\)$/{ 16035 s//\1/ 16036 q 16037 } 16038 /^X\(\/\).*/{ 16039 s//\1/ 16040 q 16041 } 16042 s/.*/./; q'` 16043 test -d "$as_dir" && break 16044 done 16045 test -z "$as_dirs" || eval "mkdir $as_dirs" 16046 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16047 16048 16049} # as_fn_mkdir_p 16050if mkdir -p . 2>/dev/null; then 16051 as_mkdir_p='mkdir -p "$as_dir"' 16052else 16053 test -d ./-p && rmdir ./-p 16054 as_mkdir_p=false 16055fi 16056 16057if test -x / >/dev/null 2>&1; then 16058 as_test_x='test -x' 16059else 16060 if ls -dL / >/dev/null 2>&1; then 16061 as_ls_L_option=L 16062 else 16063 as_ls_L_option= 16064 fi 16065 as_test_x=' 16066 eval sh -c '\'' 16067 if test -d "$1"; then 16068 test -d "$1/."; 16069 else 16070 case $1 in #( 16071 -*)set "./$1";; 16072 esac; 16073 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 16074 ???[sx]*):;;*)false;;esac;fi 16075 '\'' sh 16076 ' 16077fi 16078as_executable_p=$as_test_x 16079 16080# Sed expression to map a string onto a valid CPP name. 16081as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16082 16083# Sed expression to map a string onto a valid variable name. 16084as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16085 16086 16087exec 6>&1 16088## ----------------------------------- ## 16089## Main body of $CONFIG_STATUS script. ## 16090## ----------------------------------- ## 16091_ASEOF 16092test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16093 16094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16095# Save the log message, to keep $0 and so on meaningful, and to 16096# report actual input values of CONFIG_FILES etc. instead of their 16097# values after options handling. 16098ac_log=" 16099This file was extended by libevent $as_me 2.1.5-beta, which was 16100generated by GNU Autoconf 2.68. Invocation command line was 16101 16102 CONFIG_FILES = $CONFIG_FILES 16103 CONFIG_HEADERS = $CONFIG_HEADERS 16104 CONFIG_LINKS = $CONFIG_LINKS 16105 CONFIG_COMMANDS = $CONFIG_COMMANDS 16106 $ $0 $@ 16107 16108on `(hostname || uname -n) 2>/dev/null | sed 1q` 16109" 16110 16111_ACEOF 16112 16113case $ac_config_files in *" 16114"*) set x $ac_config_files; shift; ac_config_files=$*;; 16115esac 16116 16117case $ac_config_headers in *" 16118"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16119esac 16120 16121 16122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16123# Files that config.status was made for. 16124config_files="$ac_config_files" 16125config_headers="$ac_config_headers" 16126config_commands="$ac_config_commands" 16127 16128_ACEOF 16129 16130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16131ac_cs_usage="\ 16132\`$as_me' instantiates files and other configuration actions 16133from templates according to the current configuration. Unless the files 16134and actions are specified as TAGs, all are instantiated by default. 16135 16136Usage: $0 [OPTION]... [TAG]... 16137 16138 -h, --help print this help, then exit 16139 -V, --version print version number and configuration settings, then exit 16140 --config print configuration, then exit 16141 -q, --quiet, --silent 16142 do not print progress messages 16143 -d, --debug don't remove temporary files 16144 --recheck update $as_me by reconfiguring in the same conditions 16145 --file=FILE[:TEMPLATE] 16146 instantiate the configuration file FILE 16147 --header=FILE[:TEMPLATE] 16148 instantiate the configuration header FILE 16149 16150Configuration files: 16151$config_files 16152 16153Configuration headers: 16154$config_headers 16155 16156Configuration commands: 16157$config_commands 16158 16159Report bugs to the package provider." 16160 16161_ACEOF 16162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16163ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16164ac_cs_version="\\ 16165libevent config.status 2.1.5-beta 16166configured by $0, generated by GNU Autoconf 2.68, 16167 with options \\"\$ac_cs_config\\" 16168 16169Copyright (C) 2010 Free Software Foundation, Inc. 16170This config.status script is free software; the Free Software Foundation 16171gives unlimited permission to copy, distribute and modify it." 16172 16173ac_pwd='$ac_pwd' 16174srcdir='$srcdir' 16175INSTALL='$INSTALL' 16176MKDIR_P='$MKDIR_P' 16177AWK='$AWK' 16178test -n "\$AWK" || AWK=awk 16179_ACEOF 16180 16181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16182# The default lists apply if the user does not specify any file. 16183ac_need_defaults=: 16184while test $# != 0 16185do 16186 case $1 in 16187 --*=?*) 16188 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16189 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16190 ac_shift=: 16191 ;; 16192 --*=) 16193 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16194 ac_optarg= 16195 ac_shift=: 16196 ;; 16197 *) 16198 ac_option=$1 16199 ac_optarg=$2 16200 ac_shift=shift 16201 ;; 16202 esac 16203 16204 case $ac_option in 16205 # Handling of the options. 16206 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16207 ac_cs_recheck=: ;; 16208 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16209 $as_echo "$ac_cs_version"; exit ;; 16210 --config | --confi | --conf | --con | --co | --c ) 16211 $as_echo "$ac_cs_config"; exit ;; 16212 --debug | --debu | --deb | --de | --d | -d ) 16213 debug=: ;; 16214 --file | --fil | --fi | --f ) 16215 $ac_shift 16216 case $ac_optarg in 16217 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16218 '') as_fn_error $? "missing file argument" ;; 16219 esac 16220 as_fn_append CONFIG_FILES " '$ac_optarg'" 16221 ac_need_defaults=false;; 16222 --header | --heade | --head | --hea ) 16223 $ac_shift 16224 case $ac_optarg in 16225 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16226 esac 16227 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16228 ac_need_defaults=false;; 16229 --he | --h) 16230 # Conflict between --help and --header 16231 as_fn_error $? "ambiguous option: \`$1' 16232Try \`$0 --help' for more information.";; 16233 --help | --hel | -h ) 16234 $as_echo "$ac_cs_usage"; exit ;; 16235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16236 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16237 ac_cs_silent=: ;; 16238 16239 # This is an error. 16240 -*) as_fn_error $? "unrecognized option: \`$1' 16241Try \`$0 --help' for more information." ;; 16242 16243 *) as_fn_append ac_config_targets " $1" 16244 ac_need_defaults=false ;; 16245 16246 esac 16247 shift 16248done 16249 16250ac_configure_extra_args= 16251 16252if $ac_cs_silent; then 16253 exec 6>/dev/null 16254 ac_configure_extra_args="$ac_configure_extra_args --silent" 16255fi 16256 16257_ACEOF 16258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16259if \$ac_cs_recheck; then 16260 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16261 shift 16262 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16263 CONFIG_SHELL='$SHELL' 16264 export CONFIG_SHELL 16265 exec "\$@" 16266fi 16267 16268_ACEOF 16269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16270exec 5>>config.log 16271{ 16272 echo 16273 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16274## Running $as_me. ## 16275_ASBOX 16276 $as_echo "$ac_log" 16277} >&5 16278 16279_ACEOF 16280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16281# 16282# INIT-COMMANDS 16283# 16284AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16285 16286 16287# The HP-UX ksh and POSIX shell print the target directory to stdout 16288# if CDPATH is set. 16289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16290 16291sed_quote_subst='$sed_quote_subst' 16292double_quote_subst='$double_quote_subst' 16293delay_variable_subst='$delay_variable_subst' 16294macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16295macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16296enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16297enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16298pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16299enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16300SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16301ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16302host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16303host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16304host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16305build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16306build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16307build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16308SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16309Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16310GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16311EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16312FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16313LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16314NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16315LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16316max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16317ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16318exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16319lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16320lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16321lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16322lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16323lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16324reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16325reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16326OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16327deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16328file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16329file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16330want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16331DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16332sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16333AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16334AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16335archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16336STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16337RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16338old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16339old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16340old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16341lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16342CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16343CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16344compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16345GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16346lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16347lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16348lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16349lt_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"`' 16350nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16351lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16352objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16353MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16354lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16355lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16356lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16357lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16358lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16359need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16360MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16361DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16362NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16363LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16364OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16365OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16366libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16367shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16368extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16369archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16370enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16371export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16372whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16373compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16374old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16375old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16376archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16377archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16378module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16379module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16380with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16381allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16382no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16383hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16384hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 16385hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16386hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16387hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16388hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16389hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16390hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16391inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16392link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16393always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16394export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16395exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16396include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16397prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16398postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16399file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16400variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16401need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16402need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16403version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16404runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16405shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16406shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16407libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16408library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16409soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16410install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16411postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16412postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16413finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16414finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16415hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16416sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16417sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16418hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16419enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16420enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16421enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16422old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16423striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16424 16425LTCC='$LTCC' 16426LTCFLAGS='$LTCFLAGS' 16427compiler='$compiler_DEFAULT' 16428 16429# A function that is used when there is no print builtin or printf. 16430func_fallback_echo () 16431{ 16432 eval 'cat <<_LTECHO_EOF 16433\$1 16434_LTECHO_EOF' 16435} 16436 16437# Quote evaled strings. 16438for var in SHELL \ 16439ECHO \ 16440SED \ 16441GREP \ 16442EGREP \ 16443FGREP \ 16444LD \ 16445NM \ 16446LN_S \ 16447lt_SP2NL \ 16448lt_NL2SP \ 16449reload_flag \ 16450OBJDUMP \ 16451deplibs_check_method \ 16452file_magic_cmd \ 16453file_magic_glob \ 16454want_nocaseglob \ 16455DLLTOOL \ 16456sharedlib_from_linklib_cmd \ 16457AR \ 16458AR_FLAGS \ 16459archiver_list_spec \ 16460STRIP \ 16461RANLIB \ 16462CC \ 16463CFLAGS \ 16464compiler \ 16465lt_cv_sys_global_symbol_pipe \ 16466lt_cv_sys_global_symbol_to_cdecl \ 16467lt_cv_sys_global_symbol_to_c_name_address \ 16468lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16469nm_file_list_spec \ 16470lt_prog_compiler_no_builtin_flag \ 16471lt_prog_compiler_pic \ 16472lt_prog_compiler_wl \ 16473lt_prog_compiler_static \ 16474lt_cv_prog_compiler_c_o \ 16475need_locks \ 16476MANIFEST_TOOL \ 16477DSYMUTIL \ 16478NMEDIT \ 16479LIPO \ 16480OTOOL \ 16481OTOOL64 \ 16482shrext_cmds \ 16483export_dynamic_flag_spec \ 16484whole_archive_flag_spec \ 16485compiler_needs_object \ 16486with_gnu_ld \ 16487allow_undefined_flag \ 16488no_undefined_flag \ 16489hardcode_libdir_flag_spec \ 16490hardcode_libdir_flag_spec_ld \ 16491hardcode_libdir_separator \ 16492exclude_expsyms \ 16493include_expsyms \ 16494file_list_spec \ 16495variables_saved_for_relink \ 16496libname_spec \ 16497library_names_spec \ 16498soname_spec \ 16499install_override_mode \ 16500finish_eval \ 16501old_striplib \ 16502striplib; do 16503 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16504 *[\\\\\\\`\\"\\\$]*) 16505 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16506 ;; 16507 *) 16508 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16509 ;; 16510 esac 16511done 16512 16513# Double-quote double-evaled strings. 16514for var in reload_cmds \ 16515old_postinstall_cmds \ 16516old_postuninstall_cmds \ 16517old_archive_cmds \ 16518extract_expsyms_cmds \ 16519old_archive_from_new_cmds \ 16520old_archive_from_expsyms_cmds \ 16521archive_cmds \ 16522archive_expsym_cmds \ 16523module_cmds \ 16524module_expsym_cmds \ 16525export_symbols_cmds \ 16526prelink_cmds \ 16527postlink_cmds \ 16528postinstall_cmds \ 16529postuninstall_cmds \ 16530finish_cmds \ 16531sys_lib_search_path_spec \ 16532sys_lib_dlsearch_path_spec; do 16533 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16534 *[\\\\\\\`\\"\\\$]*) 16535 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16536 ;; 16537 *) 16538 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16539 ;; 16540 esac 16541done 16542 16543ac_aux_dir='$ac_aux_dir' 16544xsi_shell='$xsi_shell' 16545lt_shell_append='$lt_shell_append' 16546 16547# See if we are running on zsh, and set the options which allow our 16548# commands through without removal of \ escapes INIT. 16549if test -n "\${ZSH_VERSION+set}" ; then 16550 setopt NO_GLOB_SUBST 16551fi 16552 16553 16554 PACKAGE='$PACKAGE' 16555 VERSION='$VERSION' 16556 TIMESTAMP='$TIMESTAMP' 16557 RM='$RM' 16558 ofile='$ofile' 16559 16560 16561 16562 16563_ACEOF 16564 16565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16566 16567# Handling of arguments. 16568for ac_config_target in $ac_config_targets 16569do 16570 case $ac_config_target in 16571 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16572 "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;; 16573 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16574 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16575 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;; 16576 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;; 16577 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;; 16578 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16579 16580 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16581 esac 16582done 16583 16584 16585# If the user did not use the arguments to specify the items to instantiate, 16586# then the envvar interface is used. Set only those that are not. 16587# We use the long form for the default assignment because of an extremely 16588# bizarre bug on SunOS 4.1.3. 16589if $ac_need_defaults; then 16590 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16591 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16592 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16593fi 16594 16595# Have a temporary directory for convenience. Make it in the build tree 16596# simply because there is no reason against having it here, and in addition, 16597# creating and moving files from /tmp can sometimes cause problems. 16598# Hook for its removal unless debugging. 16599# Note that there is a small window in which the directory will not be cleaned: 16600# after its creation but before its name has been assigned to `$tmp'. 16601$debug || 16602{ 16603 tmp= ac_tmp= 16604 trap 'exit_status=$? 16605 : "${ac_tmp:=$tmp}" 16606 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16607' 0 16608 trap 'as_fn_exit 1' 1 2 13 15 16609} 16610# Create a (secure) tmp directory for tmp files. 16611 16612{ 16613 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16614 test -d "$tmp" 16615} || 16616{ 16617 tmp=./conf$$-$RANDOM 16618 (umask 077 && mkdir "$tmp") 16619} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16620ac_tmp=$tmp 16621 16622# Set up the scripts for CONFIG_FILES section. 16623# No need to generate them if there are no CONFIG_FILES. 16624# This happens for instance with `./config.status config.h'. 16625if test -n "$CONFIG_FILES"; then 16626 16627 16628ac_cr=`echo X | tr X '\015'` 16629# On cygwin, bash can eat \r inside `` if the user requested igncr. 16630# But we know of no other shell where ac_cr would be empty at this 16631# point, so we can use a bashism as a fallback. 16632if test "x$ac_cr" = x; then 16633 eval ac_cr=\$\'\\r\' 16634fi 16635ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16636if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16637 ac_cs_awk_cr='\\r' 16638else 16639 ac_cs_awk_cr=$ac_cr 16640fi 16641 16642echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16643_ACEOF 16644 16645 16646{ 16647 echo "cat >conf$$subs.awk <<_ACEOF" && 16648 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16649 echo "_ACEOF" 16650} >conf$$subs.sh || 16651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16652ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16653ac_delim='%!_!# ' 16654for ac_last_try in false false false false false :; do 16655 . ./conf$$subs.sh || 16656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16657 16658 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16659 if test $ac_delim_n = $ac_delim_num; then 16660 break 16661 elif $ac_last_try; then 16662 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16663 else 16664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16665 fi 16666done 16667rm -f conf$$subs.sh 16668 16669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16670cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16671_ACEOF 16672sed -n ' 16673h 16674s/^/S["/; s/!.*/"]=/ 16675p 16676g 16677s/^[^!]*!// 16678:repl 16679t repl 16680s/'"$ac_delim"'$// 16681t delim 16682:nl 16683h 16684s/\(.\{148\}\)..*/\1/ 16685t more1 16686s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16687p 16688n 16689b repl 16690:more1 16691s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16692p 16693g 16694s/.\{148\}// 16695t nl 16696:delim 16697h 16698s/\(.\{148\}\)..*/\1/ 16699t more2 16700s/["\\]/\\&/g; s/^/"/; s/$/"/ 16701p 16702b 16703:more2 16704s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16705p 16706g 16707s/.\{148\}// 16708t delim 16709' <conf$$subs.awk | sed ' 16710/^[^""]/{ 16711 N 16712 s/\n// 16713} 16714' >>$CONFIG_STATUS || ac_write_fail=1 16715rm -f conf$$subs.awk 16716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16717_ACAWK 16718cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16719 for (key in S) S_is_set[key] = 1 16720 FS = "" 16721 16722} 16723{ 16724 line = $ 0 16725 nfields = split(line, field, "@") 16726 substed = 0 16727 len = length(field[1]) 16728 for (i = 2; i < nfields; i++) { 16729 key = field[i] 16730 keylen = length(key) 16731 if (S_is_set[key]) { 16732 value = S[key] 16733 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16734 len += length(value) + length(field[++i]) 16735 substed = 1 16736 } else 16737 len += 1 + keylen 16738 } 16739 16740 print line 16741} 16742 16743_ACAWK 16744_ACEOF 16745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16746if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16747 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16748else 16749 cat 16750fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16751 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16752_ACEOF 16753 16754# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16755# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16756# trailing colons and then remove the whole line if VPATH becomes empty 16757# (actually we leave an empty line to preserve line numbers). 16758if test "x$srcdir" = x.; then 16759 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16760h 16761s/// 16762s/^/:/ 16763s/[ ]*$/:/ 16764s/:\$(srcdir):/:/g 16765s/:\${srcdir}:/:/g 16766s/:@srcdir@:/:/g 16767s/^:*// 16768s/:*$// 16769x 16770s/\(=[ ]*\).*/\1/ 16771G 16772s/\n// 16773s/^[^=]*=[ ]*$// 16774}' 16775fi 16776 16777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16778fi # test -n "$CONFIG_FILES" 16779 16780# Set up the scripts for CONFIG_HEADERS section. 16781# No need to generate them if there are no CONFIG_HEADERS. 16782# This happens for instance with `./config.status Makefile'. 16783if test -n "$CONFIG_HEADERS"; then 16784cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16785BEGIN { 16786_ACEOF 16787 16788# Transform confdefs.h into an awk script `defines.awk', embedded as 16789# here-document in config.status, that substitutes the proper values into 16790# config.h.in to produce config.h. 16791 16792# Create a delimiter string that does not exist in confdefs.h, to ease 16793# handling of long lines. 16794ac_delim='%!_!# ' 16795for ac_last_try in false false :; do 16796 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16797 if test -z "$ac_tt"; then 16798 break 16799 elif $ac_last_try; then 16800 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16801 else 16802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16803 fi 16804done 16805 16806# For the awk script, D is an array of macro values keyed by name, 16807# likewise P contains macro parameters if any. Preserve backslash 16808# newline sequences. 16809 16810ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16811sed -n ' 16812s/.\{148\}/&'"$ac_delim"'/g 16813t rset 16814:rset 16815s/^[ ]*#[ ]*define[ ][ ]*/ / 16816t def 16817d 16818:def 16819s/\\$// 16820t bsnl 16821s/["\\]/\\&/g 16822s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16823D["\1"]=" \3"/p 16824s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16825d 16826:bsnl 16827s/["\\]/\\&/g 16828s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16829D["\1"]=" \3\\\\\\n"\\/p 16830t cont 16831s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16832t cont 16833d 16834:cont 16835n 16836s/.\{148\}/&'"$ac_delim"'/g 16837t clear 16838:clear 16839s/\\$// 16840t bsnlc 16841s/["\\]/\\&/g; s/^/"/; s/$/"/p 16842d 16843:bsnlc 16844s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16845b cont 16846' <confdefs.h | sed ' 16847s/'"$ac_delim"'/"\\\ 16848"/g' >>$CONFIG_STATUS || ac_write_fail=1 16849 16850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16851 for (key in D) D_is_set[key] = 1 16852 FS = "" 16853} 16854/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16855 line = \$ 0 16856 split(line, arg, " ") 16857 if (arg[1] == "#") { 16858 defundef = arg[2] 16859 mac1 = arg[3] 16860 } else { 16861 defundef = substr(arg[1], 2) 16862 mac1 = arg[2] 16863 } 16864 split(mac1, mac2, "(") #) 16865 macro = mac2[1] 16866 prefix = substr(line, 1, index(line, defundef) - 1) 16867 if (D_is_set[macro]) { 16868 # Preserve the white space surrounding the "#". 16869 print prefix "define", macro P[macro] D[macro] 16870 next 16871 } else { 16872 # Replace #undef with comments. This is necessary, for example, 16873 # in the case of _POSIX_SOURCE, which is predefined and required 16874 # on some systems where configure will not decide to define it. 16875 if (defundef == "undef") { 16876 print "/*", prefix defundef, macro, "*/" 16877 next 16878 } 16879 } 16880} 16881{ print } 16882_ACAWK 16883_ACEOF 16884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16885 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16886fi # test -n "$CONFIG_HEADERS" 16887 16888 16889eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16890shift 16891for ac_tag 16892do 16893 case $ac_tag in 16894 :[FHLC]) ac_mode=$ac_tag; continue;; 16895 esac 16896 case $ac_mode$ac_tag in 16897 :[FHL]*:*);; 16898 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16899 :[FH]-) ac_tag=-:-;; 16900 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16901 esac 16902 ac_save_IFS=$IFS 16903 IFS=: 16904 set x $ac_tag 16905 IFS=$ac_save_IFS 16906 shift 16907 ac_file=$1 16908 shift 16909 16910 case $ac_mode in 16911 :L) ac_source=$1;; 16912 :[FH]) 16913 ac_file_inputs= 16914 for ac_f 16915 do 16916 case $ac_f in 16917 -) ac_f="$ac_tmp/stdin";; 16918 *) # Look for the file first in the build tree, then in the source tree 16919 # (if the path is not absolute). The absolute path cannot be DOS-style, 16920 # because $ac_f cannot contain `:'. 16921 test -f "$ac_f" || 16922 case $ac_f in 16923 [\\/$]*) false;; 16924 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16925 esac || 16926 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16927 esac 16928 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16929 as_fn_append ac_file_inputs " '$ac_f'" 16930 done 16931 16932 # Let's still pretend it is `configure' which instantiates (i.e., don't 16933 # use $as_me), people would be surprised to read: 16934 # /* config.h. Generated by config.status. */ 16935 configure_input='Generated from '` 16936 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16937 `' by configure.' 16938 if test x"$ac_file" != x-; then 16939 configure_input="$ac_file. $configure_input" 16940 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16941$as_echo "$as_me: creating $ac_file" >&6;} 16942 fi 16943 # Neutralize special characters interpreted by sed in replacement strings. 16944 case $configure_input in #( 16945 *\&* | *\|* | *\\* ) 16946 ac_sed_conf_input=`$as_echo "$configure_input" | 16947 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16948 *) ac_sed_conf_input=$configure_input;; 16949 esac 16950 16951 case $ac_tag in 16952 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16954 esac 16955 ;; 16956 esac 16957 16958 ac_dir=`$as_dirname -- "$ac_file" || 16959$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16960 X"$ac_file" : 'X\(//\)[^/]' \| \ 16961 X"$ac_file" : 'X\(//\)$' \| \ 16962 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16963$as_echo X"$ac_file" | 16964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16965 s//\1/ 16966 q 16967 } 16968 /^X\(\/\/\)[^/].*/{ 16969 s//\1/ 16970 q 16971 } 16972 /^X\(\/\/\)$/{ 16973 s//\1/ 16974 q 16975 } 16976 /^X\(\/\).*/{ 16977 s//\1/ 16978 q 16979 } 16980 s/.*/./; q'` 16981 as_dir="$ac_dir"; as_fn_mkdir_p 16982 ac_builddir=. 16983 16984case "$ac_dir" in 16985.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16986*) 16987 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16988 # A ".." for each directory in $ac_dir_suffix. 16989 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16990 case $ac_top_builddir_sub in 16991 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16992 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16993 esac ;; 16994esac 16995ac_abs_top_builddir=$ac_pwd 16996ac_abs_builddir=$ac_pwd$ac_dir_suffix 16997# for backward compatibility: 16998ac_top_builddir=$ac_top_build_prefix 16999 17000case $srcdir in 17001 .) # We are building in place. 17002 ac_srcdir=. 17003 ac_top_srcdir=$ac_top_builddir_sub 17004 ac_abs_top_srcdir=$ac_pwd ;; 17005 [\\/]* | ?:[\\/]* ) # Absolute name. 17006 ac_srcdir=$srcdir$ac_dir_suffix; 17007 ac_top_srcdir=$srcdir 17008 ac_abs_top_srcdir=$srcdir ;; 17009 *) # Relative name. 17010 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17011 ac_top_srcdir=$ac_top_build_prefix$srcdir 17012 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17013esac 17014ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17015 17016 17017 case $ac_mode in 17018 :F) 17019 # 17020 # CONFIG_FILE 17021 # 17022 17023 case $INSTALL in 17024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17025 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17026 esac 17027 ac_MKDIR_P=$MKDIR_P 17028 case $MKDIR_P in 17029 [\\/$]* | ?:[\\/]* ) ;; 17030 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17031 esac 17032_ACEOF 17033 17034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17035# If the template does not know about datarootdir, expand it. 17036# FIXME: This hack should be removed a few years after 2.60. 17037ac_datarootdir_hack=; ac_datarootdir_seen= 17038ac_sed_dataroot=' 17039/datarootdir/ { 17040 p 17041 q 17042} 17043/@datadir@/p 17044/@docdir@/p 17045/@infodir@/p 17046/@localedir@/p 17047/@mandir@/p' 17048case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17049*datarootdir*) ac_datarootdir_seen=yes;; 17050*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17052$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17053_ACEOF 17054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17055 ac_datarootdir_hack=' 17056 s&@datadir@&$datadir&g 17057 s&@docdir@&$docdir&g 17058 s&@infodir@&$infodir&g 17059 s&@localedir@&$localedir&g 17060 s&@mandir@&$mandir&g 17061 s&\\\${datarootdir}&$datarootdir&g' ;; 17062esac 17063_ACEOF 17064 17065# Neutralize VPATH when `$srcdir' = `.'. 17066# Shell code in configure.ac might set extrasub. 17067# FIXME: do we really want to maintain this feature? 17068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17069ac_sed_extra="$ac_vpsub 17070$extrasub 17071_ACEOF 17072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17073:t 17074/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17075s|@configure_input@|$ac_sed_conf_input|;t t 17076s&@top_builddir@&$ac_top_builddir_sub&;t t 17077s&@top_build_prefix@&$ac_top_build_prefix&;t t 17078s&@srcdir@&$ac_srcdir&;t t 17079s&@abs_srcdir@&$ac_abs_srcdir&;t t 17080s&@top_srcdir@&$ac_top_srcdir&;t t 17081s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17082s&@builddir@&$ac_builddir&;t t 17083s&@abs_builddir@&$ac_abs_builddir&;t t 17084s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17085s&@INSTALL@&$ac_INSTALL&;t t 17086s&@MKDIR_P@&$ac_MKDIR_P&;t t 17087$ac_datarootdir_hack 17088" 17089eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17090 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17091 17092test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17093 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17095 "$ac_tmp/out"`; test -z "$ac_out"; } && 17096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17097which seems to be undefined. Please make sure it is defined" >&5 17098$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17099which seems to be undefined. Please make sure it is defined" >&2;} 17100 17101 rm -f "$ac_tmp/stdin" 17102 case $ac_file in 17103 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17104 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17105 esac \ 17106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17107 ;; 17108 :H) 17109 # 17110 # CONFIG_HEADER 17111 # 17112 if test x"$ac_file" != x-; then 17113 { 17114 $as_echo "/* $configure_input */" \ 17115 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17116 } >"$ac_tmp/config.h" \ 17117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17118 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17119 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17120$as_echo "$as_me: $ac_file is unchanged" >&6;} 17121 else 17122 rm -f "$ac_file" 17123 mv "$ac_tmp/config.h" "$ac_file" \ 17124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17125 fi 17126 else 17127 $as_echo "/* $configure_input */" \ 17128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17129 || as_fn_error $? "could not create -" "$LINENO" 5 17130 fi 17131# Compute "$ac_file"'s index in $config_headers. 17132_am_arg="$ac_file" 17133_am_stamp_count=1 17134for _am_header in $config_headers :; do 17135 case $_am_header in 17136 $_am_arg | $_am_arg:* ) 17137 break ;; 17138 * ) 17139 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17140 esac 17141done 17142echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17143$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17144 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17145 X"$_am_arg" : 'X\(//\)$' \| \ 17146 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17147$as_echo X"$_am_arg" | 17148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17149 s//\1/ 17150 q 17151 } 17152 /^X\(\/\/\)[^/].*/{ 17153 s//\1/ 17154 q 17155 } 17156 /^X\(\/\/\)$/{ 17157 s//\1/ 17158 q 17159 } 17160 /^X\(\/\).*/{ 17161 s//\1/ 17162 q 17163 } 17164 s/.*/./; q'`/stamp-h$_am_stamp_count 17165 ;; 17166 17167 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17168$as_echo "$as_me: executing $ac_file commands" >&6;} 17169 ;; 17170 esac 17171 17172 17173 case $ac_file$ac_mode in 17174 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17175 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17176 # are listed without --file. Let's play safe and only enable the eval 17177 # if we detect the quoting. 17178 case $CONFIG_FILES in 17179 *\'*) eval set x "$CONFIG_FILES" ;; 17180 *) set x $CONFIG_FILES ;; 17181 esac 17182 shift 17183 for mf 17184 do 17185 # Strip MF so we end up with the name of the file. 17186 mf=`echo "$mf" | sed -e 's/:.*$//'` 17187 # Check whether this is an Automake generated Makefile or not. 17188 # We used to match only the files named `Makefile.in', but 17189 # some people rename them; so instead we look at the file content. 17190 # Grep'ing the first line is not enough: some people post-process 17191 # each Makefile.in and add a new line on top of each file to say so. 17192 # Grep'ing the whole file is not good either: AIX grep has a line 17193 # limit of 2048, but all sed's we know have understand at least 4000. 17194 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17195 dirpart=`$as_dirname -- "$mf" || 17196$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17197 X"$mf" : 'X\(//\)[^/]' \| \ 17198 X"$mf" : 'X\(//\)$' \| \ 17199 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17200$as_echo X"$mf" | 17201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17202 s//\1/ 17203 q 17204 } 17205 /^X\(\/\/\)[^/].*/{ 17206 s//\1/ 17207 q 17208 } 17209 /^X\(\/\/\)$/{ 17210 s//\1/ 17211 q 17212 } 17213 /^X\(\/\).*/{ 17214 s//\1/ 17215 q 17216 } 17217 s/.*/./; q'` 17218 else 17219 continue 17220 fi 17221 # Extract the definition of DEPDIR, am__include, and am__quote 17222 # from the Makefile without running `make'. 17223 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17224 test -z "$DEPDIR" && continue 17225 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17226 test -z "am__include" && continue 17227 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17228 # When using ansi2knr, U may be empty or an underscore; expand it 17229 U=`sed -n 's/^U = //p' < "$mf"` 17230 # Find all dependency output files, they are included files with 17231 # $(DEPDIR) in their names. We invoke sed twice because it is the 17232 # simplest approach to changing $(DEPDIR) to its actual value in the 17233 # expansion. 17234 for file in `sed -n " 17235 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17236 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17237 # Make sure the directory exists. 17238 test -f "$dirpart/$file" && continue 17239 fdir=`$as_dirname -- "$file" || 17240$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17241 X"$file" : 'X\(//\)[^/]' \| \ 17242 X"$file" : 'X\(//\)$' \| \ 17243 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17244$as_echo X"$file" | 17245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17246 s//\1/ 17247 q 17248 } 17249 /^X\(\/\/\)[^/].*/{ 17250 s//\1/ 17251 q 17252 } 17253 /^X\(\/\/\)$/{ 17254 s//\1/ 17255 q 17256 } 17257 /^X\(\/\).*/{ 17258 s//\1/ 17259 q 17260 } 17261 s/.*/./; q'` 17262 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17263 # echo "creating $dirpart/$file" 17264 echo '# dummy' > "$dirpart/$file" 17265 done 17266 done 17267} 17268 ;; 17269 "libtool":C) 17270 17271 # See if we are running on zsh, and set the options which allow our 17272 # commands through without removal of \ escapes. 17273 if test -n "${ZSH_VERSION+set}" ; then 17274 setopt NO_GLOB_SUBST 17275 fi 17276 17277 cfgfile="${ofile}T" 17278 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17279 $RM "$cfgfile" 17280 17281 cat <<_LT_EOF >> "$cfgfile" 17282#! $SHELL 17283 17284# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17285# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17286# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17287# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17288# 17289# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17290# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 17291# Inc. 17292# Written by Gordon Matzigkeit, 1996 17293# 17294# This file is part of GNU Libtool. 17295# 17296# GNU Libtool is free software; you can redistribute it and/or 17297# modify it under the terms of the GNU General Public License as 17298# published by the Free Software Foundation; either version 2 of 17299# the License, or (at your option) any later version. 17300# 17301# As a special exception to the GNU General Public License, 17302# if you distribute this file as part of a program or library that 17303# is built using GNU Libtool, you may include this file under the 17304# same distribution terms that you use for the rest of that program. 17305# 17306# GNU Libtool is distributed in the hope that it will be useful, 17307# but WITHOUT ANY WARRANTY; without even the implied warranty of 17308# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17309# GNU General Public License for more details. 17310# 17311# You should have received a copy of the GNU General Public License 17312# along with GNU Libtool; see the file COPYING. If not, a copy 17313# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17314# obtained by writing to the Free Software Foundation, Inc., 17315# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17316 17317 17318# The names of the tagged configurations supported by this script. 17319available_tags="" 17320 17321# ### BEGIN LIBTOOL CONFIG 17322 17323# Which release of libtool.m4 was used? 17324macro_version=$macro_version 17325macro_revision=$macro_revision 17326 17327# Whether or not to build shared libraries. 17328build_libtool_libs=$enable_shared 17329 17330# Whether or not to build static libraries. 17331build_old_libs=$enable_static 17332 17333# What type of objects to build. 17334pic_mode=$pic_mode 17335 17336# Whether or not to optimize for fast installation. 17337fast_install=$enable_fast_install 17338 17339# Shell to use when invoking shell scripts. 17340SHELL=$lt_SHELL 17341 17342# An echo program that protects backslashes. 17343ECHO=$lt_ECHO 17344 17345# The host system. 17346host_alias=$host_alias 17347host=$host 17348host_os=$host_os 17349 17350# The build system. 17351build_alias=$build_alias 17352build=$build 17353build_os=$build_os 17354 17355# A sed program that does not truncate output. 17356SED=$lt_SED 17357 17358# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17359Xsed="\$SED -e 1s/^X//" 17360 17361# A grep program that handles long lines. 17362GREP=$lt_GREP 17363 17364# An ERE matcher. 17365EGREP=$lt_EGREP 17366 17367# A literal string matcher. 17368FGREP=$lt_FGREP 17369 17370# A BSD- or MS-compatible name lister. 17371NM=$lt_NM 17372 17373# Whether we need soft or hard links. 17374LN_S=$lt_LN_S 17375 17376# What is the maximum length of a command? 17377max_cmd_len=$max_cmd_len 17378 17379# Object file suffix (normally "o"). 17380objext=$ac_objext 17381 17382# Executable file suffix (normally ""). 17383exeext=$exeext 17384 17385# whether the shell understands "unset". 17386lt_unset=$lt_unset 17387 17388# turn spaces into newlines. 17389SP2NL=$lt_lt_SP2NL 17390 17391# turn newlines into spaces. 17392NL2SP=$lt_lt_NL2SP 17393 17394# convert \$build file names to \$host format. 17395to_host_file_cmd=$lt_cv_to_host_file_cmd 17396 17397# convert \$build files to toolchain format. 17398to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17399 17400# An object symbol dumper. 17401OBJDUMP=$lt_OBJDUMP 17402 17403# Method to check whether dependent libraries are shared objects. 17404deplibs_check_method=$lt_deplibs_check_method 17405 17406# Command to use when deplibs_check_method = "file_magic". 17407file_magic_cmd=$lt_file_magic_cmd 17408 17409# How to find potential files when deplibs_check_method = "file_magic". 17410file_magic_glob=$lt_file_magic_glob 17411 17412# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17413want_nocaseglob=$lt_want_nocaseglob 17414 17415# DLL creation program. 17416DLLTOOL=$lt_DLLTOOL 17417 17418# Command to associate shared and link libraries. 17419sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17420 17421# The archiver. 17422AR=$lt_AR 17423 17424# Flags to create an archive. 17425AR_FLAGS=$lt_AR_FLAGS 17426 17427# How to feed a file listing to the archiver. 17428archiver_list_spec=$lt_archiver_list_spec 17429 17430# A symbol stripping program. 17431STRIP=$lt_STRIP 17432 17433# Commands used to install an old-style archive. 17434RANLIB=$lt_RANLIB 17435old_postinstall_cmds=$lt_old_postinstall_cmds 17436old_postuninstall_cmds=$lt_old_postuninstall_cmds 17437 17438# Whether to use a lock for old archive extraction. 17439lock_old_archive_extraction=$lock_old_archive_extraction 17440 17441# A C compiler. 17442LTCC=$lt_CC 17443 17444# LTCC compiler flags. 17445LTCFLAGS=$lt_CFLAGS 17446 17447# Take the output of nm and produce a listing of raw symbols and C names. 17448global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17449 17450# Transform the output of nm in a proper C declaration. 17451global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17452 17453# Transform the output of nm in a C name address pair. 17454global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17455 17456# Transform the output of nm in a C name address pair when lib prefix is needed. 17457global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17458 17459# Specify filename containing input files for \$NM. 17460nm_file_list_spec=$lt_nm_file_list_spec 17461 17462# The root where to search for dependent libraries,and in which our libraries should be installed. 17463lt_sysroot=$lt_sysroot 17464 17465# The name of the directory that contains temporary libtool files. 17466objdir=$objdir 17467 17468# Used to examine libraries when file_magic_cmd begins with "file". 17469MAGIC_CMD=$MAGIC_CMD 17470 17471# Must we lock files when doing compilation? 17472need_locks=$lt_need_locks 17473 17474# Manifest tool. 17475MANIFEST_TOOL=$lt_MANIFEST_TOOL 17476 17477# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17478DSYMUTIL=$lt_DSYMUTIL 17479 17480# Tool to change global to local symbols on Mac OS X. 17481NMEDIT=$lt_NMEDIT 17482 17483# Tool to manipulate fat objects and archives on Mac OS X. 17484LIPO=$lt_LIPO 17485 17486# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17487OTOOL=$lt_OTOOL 17488 17489# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17490OTOOL64=$lt_OTOOL64 17491 17492# Old archive suffix (normally "a"). 17493libext=$libext 17494 17495# Shared library suffix (normally ".so"). 17496shrext_cmds=$lt_shrext_cmds 17497 17498# The commands to extract the exported symbol list from a shared archive. 17499extract_expsyms_cmds=$lt_extract_expsyms_cmds 17500 17501# Variables whose values should be saved in libtool wrapper scripts and 17502# restored at link time. 17503variables_saved_for_relink=$lt_variables_saved_for_relink 17504 17505# Do we need the "lib" prefix for modules? 17506need_lib_prefix=$need_lib_prefix 17507 17508# Do we need a version for libraries? 17509need_version=$need_version 17510 17511# Library versioning type. 17512version_type=$version_type 17513 17514# Shared library runtime path variable. 17515runpath_var=$runpath_var 17516 17517# Shared library path variable. 17518shlibpath_var=$shlibpath_var 17519 17520# Is shlibpath searched before the hard-coded library search path? 17521shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17522 17523# Format of library name prefix. 17524libname_spec=$lt_libname_spec 17525 17526# List of archive names. First name is the real one, the rest are links. 17527# The last name is the one that the linker finds with -lNAME 17528library_names_spec=$lt_library_names_spec 17529 17530# The coded name of the library, if different from the real name. 17531soname_spec=$lt_soname_spec 17532 17533# Permission mode override for installation of shared libraries. 17534install_override_mode=$lt_install_override_mode 17535 17536# Command to use after installation of a shared archive. 17537postinstall_cmds=$lt_postinstall_cmds 17538 17539# Command to use after uninstallation of a shared archive. 17540postuninstall_cmds=$lt_postuninstall_cmds 17541 17542# Commands used to finish a libtool library installation in a directory. 17543finish_cmds=$lt_finish_cmds 17544 17545# As "finish_cmds", except a single script fragment to be evaled but 17546# not shown. 17547finish_eval=$lt_finish_eval 17548 17549# Whether we should hardcode library paths into libraries. 17550hardcode_into_libs=$hardcode_into_libs 17551 17552# Compile-time system search path for libraries. 17553sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17554 17555# Run-time system search path for libraries. 17556sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17557 17558# Whether dlopen is supported. 17559dlopen_support=$enable_dlopen 17560 17561# Whether dlopen of programs is supported. 17562dlopen_self=$enable_dlopen_self 17563 17564# Whether dlopen of statically linked programs is supported. 17565dlopen_self_static=$enable_dlopen_self_static 17566 17567# Commands to strip libraries. 17568old_striplib=$lt_old_striplib 17569striplib=$lt_striplib 17570 17571 17572# The linker used to build libraries. 17573LD=$lt_LD 17574 17575# How to create reloadable object files. 17576reload_flag=$lt_reload_flag 17577reload_cmds=$lt_reload_cmds 17578 17579# Commands used to build an old-style archive. 17580old_archive_cmds=$lt_old_archive_cmds 17581 17582# A language specific compiler. 17583CC=$lt_compiler 17584 17585# Is the compiler the GNU compiler? 17586with_gcc=$GCC 17587 17588# Compiler flag to turn off builtin functions. 17589no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17590 17591# Additional compiler flags for building library objects. 17592pic_flag=$lt_lt_prog_compiler_pic 17593 17594# How to pass a linker flag through the compiler. 17595wl=$lt_lt_prog_compiler_wl 17596 17597# Compiler flag to prevent dynamic linking. 17598link_static_flag=$lt_lt_prog_compiler_static 17599 17600# Does compiler simultaneously support -c and -o options? 17601compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17602 17603# Whether or not to add -lc for building shared libraries. 17604build_libtool_need_lc=$archive_cmds_need_lc 17605 17606# Whether or not to disallow shared libs when runtime libs are static. 17607allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17608 17609# Compiler flag to allow reflexive dlopens. 17610export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17611 17612# Compiler flag to generate shared objects directly from archives. 17613whole_archive_flag_spec=$lt_whole_archive_flag_spec 17614 17615# Whether the compiler copes with passing no objects directly. 17616compiler_needs_object=$lt_compiler_needs_object 17617 17618# Create an old-style archive from a shared archive. 17619old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17620 17621# Create a temporary old-style archive to link instead of a shared archive. 17622old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17623 17624# Commands used to build a shared archive. 17625archive_cmds=$lt_archive_cmds 17626archive_expsym_cmds=$lt_archive_expsym_cmds 17627 17628# Commands used to build a loadable module if different from building 17629# a shared archive. 17630module_cmds=$lt_module_cmds 17631module_expsym_cmds=$lt_module_expsym_cmds 17632 17633# Whether we are building with GNU ld or not. 17634with_gnu_ld=$lt_with_gnu_ld 17635 17636# Flag that allows shared libraries with undefined symbols to be built. 17637allow_undefined_flag=$lt_allow_undefined_flag 17638 17639# Flag that enforces no undefined symbols. 17640no_undefined_flag=$lt_no_undefined_flag 17641 17642# Flag to hardcode \$libdir into a binary during linking. 17643# This must work even if \$libdir does not exist 17644hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17645 17646# If ld is used when linking, flag to hardcode \$libdir into a binary 17647# during linking. This must work even if \$libdir does not exist. 17648hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17649 17650# Whether we need a single "-rpath" flag with a separated argument. 17651hardcode_libdir_separator=$lt_hardcode_libdir_separator 17652 17653# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17654# DIR into the resulting binary. 17655hardcode_direct=$hardcode_direct 17656 17657# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17658# DIR into the resulting binary and the resulting library dependency is 17659# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17660# library is relocated. 17661hardcode_direct_absolute=$hardcode_direct_absolute 17662 17663# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17664# into the resulting binary. 17665hardcode_minus_L=$hardcode_minus_L 17666 17667# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17668# into the resulting binary. 17669hardcode_shlibpath_var=$hardcode_shlibpath_var 17670 17671# Set to "yes" if building a shared library automatically hardcodes DIR 17672# into the library and all subsequent libraries and executables linked 17673# against it. 17674hardcode_automatic=$hardcode_automatic 17675 17676# Set to yes if linker adds runtime paths of dependent libraries 17677# to runtime path list. 17678inherit_rpath=$inherit_rpath 17679 17680# Whether libtool must link a program against all its dependency libraries. 17681link_all_deplibs=$link_all_deplibs 17682 17683# Set to "yes" if exported symbols are required. 17684always_export_symbols=$always_export_symbols 17685 17686# The commands to list exported symbols. 17687export_symbols_cmds=$lt_export_symbols_cmds 17688 17689# Symbols that should not be listed in the preloaded symbols. 17690exclude_expsyms=$lt_exclude_expsyms 17691 17692# Symbols that must always be exported. 17693include_expsyms=$lt_include_expsyms 17694 17695# Commands necessary for linking programs (against libraries) with templates. 17696prelink_cmds=$lt_prelink_cmds 17697 17698# Commands necessary for finishing linking programs. 17699postlink_cmds=$lt_postlink_cmds 17700 17701# Specify filename containing input files. 17702file_list_spec=$lt_file_list_spec 17703 17704# How to hardcode a shared library path into an executable. 17705hardcode_action=$hardcode_action 17706 17707# ### END LIBTOOL CONFIG 17708 17709_LT_EOF 17710 17711 case $host_os in 17712 aix3*) 17713 cat <<\_LT_EOF >> "$cfgfile" 17714# AIX sometimes has problems with the GCC collect2 program. For some 17715# reason, if we set the COLLECT_NAMES environment variable, the problems 17716# vanish in a puff of smoke. 17717if test "X${COLLECT_NAMES+set}" != Xset; then 17718 COLLECT_NAMES= 17719 export COLLECT_NAMES 17720fi 17721_LT_EOF 17722 ;; 17723 esac 17724 17725 17726ltmain="$ac_aux_dir/ltmain.sh" 17727 17728 17729 # We use sed instead of cat because bash on DJGPP gets confused if 17730 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17731 # text mode, it properly converts lines to CR/LF. This bash problem 17732 # is reportedly fixed, but why not run on old versions too? 17733 sed '$q' "$ltmain" >> "$cfgfile" \ 17734 || (rm -f "$cfgfile"; exit 1) 17735 17736 if test x"$xsi_shell" = xyes; then 17737 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 17738func_dirname ()\ 17739{\ 17740\ case ${1} in\ 17741\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17742\ * ) func_dirname_result="${3}" ;;\ 17743\ esac\ 17744} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 17745 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17747test 0 -eq $? || _lt_function_replace_fail=: 17748 17749 17750 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 17751func_basename ()\ 17752{\ 17753\ func_basename_result="${1##*/}"\ 17754} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17755 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17757test 0 -eq $? || _lt_function_replace_fail=: 17758 17759 17760 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 17761func_dirname_and_basename ()\ 17762{\ 17763\ case ${1} in\ 17764\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17765\ * ) func_dirname_result="${3}" ;;\ 17766\ esac\ 17767\ func_basename_result="${1##*/}"\ 17768} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17769 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17770 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17771test 0 -eq $? || _lt_function_replace_fail=: 17772 17773 17774 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 17775func_stripname ()\ 17776{\ 17777\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 17778\ # positional parameters, so assign one to ordinary parameter first.\ 17779\ func_stripname_result=${3}\ 17780\ func_stripname_result=${func_stripname_result#"${1}"}\ 17781\ func_stripname_result=${func_stripname_result%"${2}"}\ 17782} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 17783 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17784 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17785test 0 -eq $? || _lt_function_replace_fail=: 17786 17787 17788 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 17789func_split_long_opt ()\ 17790{\ 17791\ func_split_long_opt_name=${1%%=*}\ 17792\ func_split_long_opt_arg=${1#*=}\ 17793} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17794 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17795 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17796test 0 -eq $? || _lt_function_replace_fail=: 17797 17798 17799 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 17800func_split_short_opt ()\ 17801{\ 17802\ func_split_short_opt_arg=${1#??}\ 17803\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 17804} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17805 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17806 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17807test 0 -eq $? || _lt_function_replace_fail=: 17808 17809 17810 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 17811func_lo2o ()\ 17812{\ 17813\ case ${1} in\ 17814\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 17815\ *) func_lo2o_result=${1} ;;\ 17816\ esac\ 17817} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 17818 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17819 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17820test 0 -eq $? || _lt_function_replace_fail=: 17821 17822 17823 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 17824func_xform ()\ 17825{\ 17826 func_xform_result=${1%.*}.lo\ 17827} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 17828 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17830test 0 -eq $? || _lt_function_replace_fail=: 17831 17832 17833 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 17834func_arith ()\ 17835{\ 17836 func_arith_result=$(( $* ))\ 17837} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 17838 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17840test 0 -eq $? || _lt_function_replace_fail=: 17841 17842 17843 sed -e '/^func_len ()$/,/^} # func_len /c\ 17844func_len ()\ 17845{\ 17846 func_len_result=${#1}\ 17847} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 17848 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17849 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17850test 0 -eq $? || _lt_function_replace_fail=: 17851 17852fi 17853 17854if test x"$lt_shell_append" = xyes; then 17855 sed -e '/^func_append ()$/,/^} # func_append /c\ 17856func_append ()\ 17857{\ 17858 eval "${1}+=\\${2}"\ 17859} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 17860 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17862test 0 -eq $? || _lt_function_replace_fail=: 17863 17864 17865 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 17866func_append_quoted ()\ 17867{\ 17868\ func_quote_for_eval "${2}"\ 17869\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 17870} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 17871 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17872 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17873test 0 -eq $? || _lt_function_replace_fail=: 17874 17875 17876 # Save a `func_append' function call where possible by direct use of '+=' 17877 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 17878 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17880 test 0 -eq $? || _lt_function_replace_fail=: 17881else 17882 # Save a `func_append' function call even when '+=' is not available 17883 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 17884 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17885 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17886 test 0 -eq $? || _lt_function_replace_fail=: 17887fi 17888 17889if test x"$_lt_function_replace_fail" = x":"; then 17890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 17891$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 17892fi 17893 17894 17895 mv -f "$cfgfile" "$ofile" || 17896 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17897 chmod +x "$ofile" 17898 17899 ;; 17900 17901 esac 17902done # for ac_tag 17903 17904 17905as_fn_exit 0 17906_ACEOF 17907ac_clean_files=$ac_clean_files_save 17908 17909test $ac_write_fail = 0 || 17910 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17911 17912 17913# configure is writing to config.log, and then calls config.status. 17914# config.status does its own redirection, appending to config.log. 17915# Unfortunately, on DOS this fails, as config.log is still kept open 17916# by configure, so config.status won't be able to write to it; its 17917# output is simply discarded. So we exec the FD to /dev/null, 17918# effectively closing config.log, so it can be properly (re)opened and 17919# appended to by config.status. When coming back to configure, we 17920# need to make the FD available again. 17921if test "$no_create" != yes; then 17922 ac_cs_success=: 17923 ac_config_status_args= 17924 test "$silent" = yes && 17925 ac_config_status_args="$ac_config_status_args --quiet" 17926 exec 5>/dev/null 17927 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17928 exec 5>>config.log 17929 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17930 # would make configure fail if this is the last instruction. 17931 $ac_cs_success || as_fn_exit 1 17932fi 17933if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17935$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17936fi 17937 17938