1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles.
| 1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles.
|
3# Generated by GNU Autoconf 2.69 for sntp 4.2.8p11.
| 3# Generated by GNU Autoconf 2.69 for sntp 4.2.8p12.
|
4# 5# Report bugs to <http://bugs.ntp.org./>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software 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 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://bugs.ntp.org./ about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='sntp' 592PACKAGE_TARNAME='sntp'
| 4# 5# Report bugs to <http://bugs.ntp.org./>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software 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 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://bugs.ntp.org./ about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='sntp' 592PACKAGE_TARNAME='sntp'
|
593PACKAGE_VERSION='4.2.8p11' 594PACKAGE_STRING='sntp 4.2.8p11'
| 593PACKAGE_VERSION='4.2.8p12' 594PACKAGE_STRING='sntp 4.2.8p12'
|
595PACKAGE_BUGREPORT='http://bugs.ntp.org./' 596PACKAGE_URL='http://www.ntp.org./' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_header_list= 635enable_option_checking=no 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639BUILD_TEST_KODFILE_FALSE 640BUILD_TEST_KODFILE_TRUE 641BUILD_TEST_KODDATABASE_FALSE 642BUILD_TEST_KODDATABASE_TRUE 643UNITYBUILD_AVAILABLE_FALSE 644UNITYBUILD_AVAILABLE_TRUE 645PATH_RUBY 646VER_SUFFIX 647LIB_SYSLOG 648subdirs 649BUILD_LIBEVENT_FALSE 650BUILD_LIBEVENT_TRUE 651LDADD_LIBEVENT 652CPPFLAGS_LIBEVENT 653CFLAGS_LIBEVENT 654PKG_CONFIG 655NTP_FORCE_LIBEVENT_DIST 656LIBOPTS_DIR 657LIBOPTS_CFLAGS 658LIBOPTS_LDADD 659NEED_LIBOPTS_FALSE 660NEED_LIBOPTS_TRUE 661INSTALL_LIBOPTS_FALSE 662INSTALL_LIBOPTS_TRUE 663POSIX_SHELL 664GL_GENERATE_STDNORETURN_H_FALSE 665GL_GENERATE_STDNORETURN_H_TRUE 666STDNORETURN_H 667BUILD_SNTP_FALSE 668BUILD_SNTP_TRUE 669SNTP 670LIBTOOL_DEPS 671LT_SYS_LIBRARY_PATH 672OTOOL64 673OTOOL 674LIPO 675NMEDIT 676DSYMUTIL 677MANIFEST_TOOL 678RANLIB 679DLLTOOL 680OBJDUMP 681LN_S 682NM 683ac_ct_DUMPBIN 684DUMPBIN 685LIBTOOL 686LIBOBJS 687PTHREADS_FALSE 688PTHREADS_TRUE 689LIBISC_PTHREADS_NOTHREADS 690PTHREAD_LIBS 691LTHREAD_LIBS 692BUILD_THREAD 693HAVE_INLINE 694LDADD_LIBUTIL 695ALLOCA 696LIBM 697EDITLINE_LIBS 698LD 699FGREP 700SED 701LDADD_LIBNTP 702NTP_CROSSCOMPILE_FALSE 703NTP_CROSSCOMPILE_TRUE 704ac_ct_AR 705AR 706INSTALL_UPDATE_LEAP_FALSE 707INSTALL_UPDATE_LEAP_TRUE 708UPDATE_LEAP_NI 709UPDATE_LEAP_MS 710UPDATE_LEAP_DS 711UPDATE_LEAP_DL 712UPDATE_LEAP_DB 713TIMETRIM_NI 714TIMETRIM_MS 715TIMETRIM_DS 716TIMETRIM_DL 717TIMETRIM_DB 718TICKADJ_NI 719TICKADJ_MS 720TICKADJ_DS 721TICKADJ_DL 722TICKADJ_DB 723SNTP_NI 724SNTP_MS 725SNTP_DS 726SNTP_DL 727SNTP_DB 728NTP_WAIT_NI 729NTP_WAIT_MS 730NTP_WAIT_DS 731NTP_WAIT_DL 732NTP_WAIT_DB 733NTP_KEYGEN_NI 734NTP_KEYGEN_MS 735NTP_KEYGEN_DS 736NTP_KEYGEN_DL 737NTP_KEYGEN_DB 738NTPTRACE_NI 739NTPTRACE_MS 740NTPTRACE_DS 741NTPTRACE_DL 742NTPTRACE_DB 743NTPTIME_NI 744NTPTIME_MS 745NTPTIME_DS 746NTPTIME_DL 747NTPTIME_DB 748INSTALL_NTPSWEEP_FALSE 749INSTALL_NTPSWEEP_TRUE 750NTPSWEEP_NI 751NTPSWEEP_MS 752NTPSWEEP_DS 753NTPSWEEP_DL 754NTPSWEEP_DB 755NTPSNMPD_NI 756NTPSNMPD_MS 757NTPSNMPD_DS 758NTPSNMPD_DL 759NTPSNMPD_DB 760NTPQ_NI 761NTPQ_MS 762NTPQ_DS 763NTPQ_DL 764NTPQ_DB 765NTPD_NI 766NTPD_MS 767NTPD_DS 768NTPD_DL 769NTPD_DB 770NTPDSIM_NI 771NTPDSIM_MS 772NTPDSIM_DS 773NTPDSIM_DL 774NTPDSIM_DB 775NTPDC_NI 776NTPDC_MS 777NTPDC_DS 778NTPDC_DL 779NTPDC_DB 780NTPDATE_NI 781NTPDATE_MS 782NTPDATE_DS 783NTPDATE_DL 784NTPDATE_DB 785MANTAGFMT 786CALC_TICKADJ_NI 787CALC_TICKADJ_MS 788CALC_TICKADJ_DS 789CALC_TICKADJ_DL 790CALC_TICKADJ_DB 791WANT_CALC_TICKADJ_MS_FALSE 792WANT_CALC_TICKADJ_MS_TRUE 793NTP_HARD_LDFLAGS 794NTP_HARD_CPPFLAGS 795NTP_HARD_CFLAGS 796LDFLAGS_NTP 797LDADD_NTP 798CPPFLAGS_NTP 799CFLAGS_NTP 800EGREP 801GREP 802CPP 803am__fastdepCC_FALSE 804am__fastdepCC_TRUE 805CCDEPMODE 806am__nodep 807AMDEPBACKSLASH 808AMDEP_FALSE 809AMDEP_TRUE 810am__quote 811am__include 812DEPDIR 813OBJEXT 814EXEEXT 815ac_ct_CC 816CPPFLAGS 817LDFLAGS 818CFLAGS 819CC 820host_os 821host_vendor 822host_cpu 823host 824build_os 825build_vendor 826build_cpu 827build 828AM_BACKSLASH 829AM_DEFAULT_VERBOSITY 830AM_DEFAULT_V 831AM_V 832am__untar 833am__tar 834AMTAR 835am__leading_dot 836SET_MAKE 837AWK 838mkdir_p 839MKDIR_P 840INSTALL_STRIP_PROGRAM 841STRIP 842install_sh 843MAKEINFO 844AUTOHEADER 845AUTOMAKE 846AUTOCONF 847ACLOCAL 848VERSION 849PACKAGE 850CYGPATH_W 851am__isrc 852INSTALL_DATA 853INSTALL_SCRIPT 854INSTALL_PROGRAM 855target_alias 856host_alias 857build_alias 858LIBS 859ECHO_T 860ECHO_N 861ECHO_C 862DEFS 863mandir 864localedir 865libdir 866psdir 867pdfdir 868dvidir 869htmldir 870infodir 871docdir 872oldincludedir 873includedir 874localstatedir 875sharedstatedir 876sysconfdir 877datadir 878datarootdir 879libexecdir 880sbindir 881bindir 882program_transform_name 883prefix 884exec_prefix 885PACKAGE_URL 886PACKAGE_BUGREPORT 887PACKAGE_STRING 888PACKAGE_VERSION 889PACKAGE_TARNAME 890PACKAGE_NAME 891PATH_SEPARATOR 892SHELL' 893ac_subst_files='' 894ac_user_opts=' 895enable_option_checking 896enable_silent_rules 897enable_dependency_tracking 898with_hardenfile 899with_locfile 900with_gnu_ld 901with_lineeditlibs 902enable_debugging 903enable_thread_support 904with_threads 905with_yielding_select 906enable_c99_snprintf 907enable_clockctl 908enable_linuxcaps 909enable_solarisprivs
| 595PACKAGE_BUGREPORT='http://bugs.ntp.org./' 596PACKAGE_URL='http://www.ntp.org./' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_header_list= 635enable_option_checking=no 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639BUILD_TEST_KODFILE_FALSE 640BUILD_TEST_KODFILE_TRUE 641BUILD_TEST_KODDATABASE_FALSE 642BUILD_TEST_KODDATABASE_TRUE 643UNITYBUILD_AVAILABLE_FALSE 644UNITYBUILD_AVAILABLE_TRUE 645PATH_RUBY 646VER_SUFFIX 647LIB_SYSLOG 648subdirs 649BUILD_LIBEVENT_FALSE 650BUILD_LIBEVENT_TRUE 651LDADD_LIBEVENT 652CPPFLAGS_LIBEVENT 653CFLAGS_LIBEVENT 654PKG_CONFIG 655NTP_FORCE_LIBEVENT_DIST 656LIBOPTS_DIR 657LIBOPTS_CFLAGS 658LIBOPTS_LDADD 659NEED_LIBOPTS_FALSE 660NEED_LIBOPTS_TRUE 661INSTALL_LIBOPTS_FALSE 662INSTALL_LIBOPTS_TRUE 663POSIX_SHELL 664GL_GENERATE_STDNORETURN_H_FALSE 665GL_GENERATE_STDNORETURN_H_TRUE 666STDNORETURN_H 667BUILD_SNTP_FALSE 668BUILD_SNTP_TRUE 669SNTP 670LIBTOOL_DEPS 671LT_SYS_LIBRARY_PATH 672OTOOL64 673OTOOL 674LIPO 675NMEDIT 676DSYMUTIL 677MANIFEST_TOOL 678RANLIB 679DLLTOOL 680OBJDUMP 681LN_S 682NM 683ac_ct_DUMPBIN 684DUMPBIN 685LIBTOOL 686LIBOBJS 687PTHREADS_FALSE 688PTHREADS_TRUE 689LIBISC_PTHREADS_NOTHREADS 690PTHREAD_LIBS 691LTHREAD_LIBS 692BUILD_THREAD 693HAVE_INLINE 694LDADD_LIBUTIL 695ALLOCA 696LIBM 697EDITLINE_LIBS 698LD 699FGREP 700SED 701LDADD_LIBNTP 702NTP_CROSSCOMPILE_FALSE 703NTP_CROSSCOMPILE_TRUE 704ac_ct_AR 705AR 706INSTALL_UPDATE_LEAP_FALSE 707INSTALL_UPDATE_LEAP_TRUE 708UPDATE_LEAP_NI 709UPDATE_LEAP_MS 710UPDATE_LEAP_DS 711UPDATE_LEAP_DL 712UPDATE_LEAP_DB 713TIMETRIM_NI 714TIMETRIM_MS 715TIMETRIM_DS 716TIMETRIM_DL 717TIMETRIM_DB 718TICKADJ_NI 719TICKADJ_MS 720TICKADJ_DS 721TICKADJ_DL 722TICKADJ_DB 723SNTP_NI 724SNTP_MS 725SNTP_DS 726SNTP_DL 727SNTP_DB 728NTP_WAIT_NI 729NTP_WAIT_MS 730NTP_WAIT_DS 731NTP_WAIT_DL 732NTP_WAIT_DB 733NTP_KEYGEN_NI 734NTP_KEYGEN_MS 735NTP_KEYGEN_DS 736NTP_KEYGEN_DL 737NTP_KEYGEN_DB 738NTPTRACE_NI 739NTPTRACE_MS 740NTPTRACE_DS 741NTPTRACE_DL 742NTPTRACE_DB 743NTPTIME_NI 744NTPTIME_MS 745NTPTIME_DS 746NTPTIME_DL 747NTPTIME_DB 748INSTALL_NTPSWEEP_FALSE 749INSTALL_NTPSWEEP_TRUE 750NTPSWEEP_NI 751NTPSWEEP_MS 752NTPSWEEP_DS 753NTPSWEEP_DL 754NTPSWEEP_DB 755NTPSNMPD_NI 756NTPSNMPD_MS 757NTPSNMPD_DS 758NTPSNMPD_DL 759NTPSNMPD_DB 760NTPQ_NI 761NTPQ_MS 762NTPQ_DS 763NTPQ_DL 764NTPQ_DB 765NTPD_NI 766NTPD_MS 767NTPD_DS 768NTPD_DL 769NTPD_DB 770NTPDSIM_NI 771NTPDSIM_MS 772NTPDSIM_DS 773NTPDSIM_DL 774NTPDSIM_DB 775NTPDC_NI 776NTPDC_MS 777NTPDC_DS 778NTPDC_DL 779NTPDC_DB 780NTPDATE_NI 781NTPDATE_MS 782NTPDATE_DS 783NTPDATE_DL 784NTPDATE_DB 785MANTAGFMT 786CALC_TICKADJ_NI 787CALC_TICKADJ_MS 788CALC_TICKADJ_DS 789CALC_TICKADJ_DL 790CALC_TICKADJ_DB 791WANT_CALC_TICKADJ_MS_FALSE 792WANT_CALC_TICKADJ_MS_TRUE 793NTP_HARD_LDFLAGS 794NTP_HARD_CPPFLAGS 795NTP_HARD_CFLAGS 796LDFLAGS_NTP 797LDADD_NTP 798CPPFLAGS_NTP 799CFLAGS_NTP 800EGREP 801GREP 802CPP 803am__fastdepCC_FALSE 804am__fastdepCC_TRUE 805CCDEPMODE 806am__nodep 807AMDEPBACKSLASH 808AMDEP_FALSE 809AMDEP_TRUE 810am__quote 811am__include 812DEPDIR 813OBJEXT 814EXEEXT 815ac_ct_CC 816CPPFLAGS 817LDFLAGS 818CFLAGS 819CC 820host_os 821host_vendor 822host_cpu 823host 824build_os 825build_vendor 826build_cpu 827build 828AM_BACKSLASH 829AM_DEFAULT_VERBOSITY 830AM_DEFAULT_V 831AM_V 832am__untar 833am__tar 834AMTAR 835am__leading_dot 836SET_MAKE 837AWK 838mkdir_p 839MKDIR_P 840INSTALL_STRIP_PROGRAM 841STRIP 842install_sh 843MAKEINFO 844AUTOHEADER 845AUTOMAKE 846AUTOCONF 847ACLOCAL 848VERSION 849PACKAGE 850CYGPATH_W 851am__isrc 852INSTALL_DATA 853INSTALL_SCRIPT 854INSTALL_PROGRAM 855target_alias 856host_alias 857build_alias 858LIBS 859ECHO_T 860ECHO_N 861ECHO_C 862DEFS 863mandir 864localedir 865libdir 866psdir 867pdfdir 868dvidir 869htmldir 870infodir 871docdir 872oldincludedir 873includedir 874localstatedir 875sharedstatedir 876sysconfdir 877datadir 878datarootdir 879libexecdir 880sbindir 881bindir 882program_transform_name 883prefix 884exec_prefix 885PACKAGE_URL 886PACKAGE_BUGREPORT 887PACKAGE_STRING 888PACKAGE_VERSION 889PACKAGE_TARNAME 890PACKAGE_NAME 891PATH_SEPARATOR 892SHELL' 893ac_subst_files='' 894ac_user_opts=' 895enable_option_checking 896enable_silent_rules 897enable_dependency_tracking 898with_hardenfile 899with_locfile 900with_gnu_ld 901with_lineeditlibs 902enable_debugging 903enable_thread_support 904with_threads 905with_yielding_select 906enable_c99_snprintf 907enable_clockctl 908enable_linuxcaps 909enable_solarisprivs
|
| 910enable_trustedbsd_mac
|
910enable_shared 911enable_static 912with_pic 913enable_fast_install 914with_aix_soname 915with_sysroot 916enable_libtool_lock 917with_sntp 918enable_nls 919enable_local_libopts 920enable_libopts_install 921with_autoopts_config 922with_regex_header 923with_libregex 924with_libregex_cflags 925with_libregex_libs 926enable_optional_args 927enable_local_libevent 928with_crypto 929with_openssl_libdir 930with_openssl_incdir 931with_rpath 932enable_ipv6 933with_kame 934enable_getifaddrs 935enable_problem_tests 936' 937 ac_precious_vars='build_alias 938host_alias 939target_alias 940CC 941CFLAGS 942LDFLAGS 943LIBS 944CPPFLAGS 945CPP 946LT_SYS_LIBRARY_PATH' 947ac_subdirs_all='libevent' 948 949# Initialize some variables set by options. 950ac_init_help= 951ac_init_version=false 952ac_unrecognized_opts= 953ac_unrecognized_sep= 954# The variables have the same names as the options, with 955# dashes changed to underlines. 956cache_file=/dev/null 957exec_prefix=NONE 958no_create= 959no_recursion= 960prefix=NONE 961program_prefix=NONE 962program_suffix=NONE 963program_transform_name=s,x,x, 964silent= 965site= 966srcdir= 967verbose= 968x_includes=NONE 969x_libraries=NONE 970 971# Installation directory options. 972# These are left unexpanded so users can "make install exec_prefix=/foo" 973# and all the variables that are supposed to be based on exec_prefix 974# by default will actually change. 975# Use braces instead of parens because sh, perl, etc. also accept them. 976# (The list follows the same order as the GNU Coding Standards.) 977bindir='${exec_prefix}/bin' 978sbindir='${exec_prefix}/sbin' 979libexecdir='${exec_prefix}/libexec' 980datarootdir='${prefix}/share' 981datadir='${datarootdir}' 982sysconfdir='${prefix}/etc' 983sharedstatedir='${prefix}/com' 984localstatedir='${prefix}/var' 985includedir='${prefix}/include' 986oldincludedir='/usr/include' 987docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 988infodir='${datarootdir}/info' 989htmldir='${docdir}' 990dvidir='${docdir}' 991pdfdir='${docdir}' 992psdir='${docdir}' 993libdir='${exec_prefix}/lib' 994localedir='${datarootdir}/locale' 995mandir='${datarootdir}/man' 996 997ac_prev= 998ac_dashdash= 999for ac_option 1000do 1001 # If the previous option needs an argument, assign it. 1002 if test -n "$ac_prev"; then 1003 eval $ac_prev=\$ac_option 1004 ac_prev= 1005 continue 1006 fi 1007 1008 case $ac_option in 1009 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1010 *=) ac_optarg= ;; 1011 *) ac_optarg=yes ;; 1012 esac 1013 1014 # Accept the important Cygnus configure options, so we can diagnose typos. 1015 1016 case $ac_dashdash$ac_option in 1017 --) 1018 ac_dashdash=yes ;; 1019 1020 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1021 ac_prev=bindir ;; 1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1023 bindir=$ac_optarg ;; 1024 1025 -build | --build | --buil | --bui | --bu) 1026 ac_prev=build_alias ;; 1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1028 build_alias=$ac_optarg ;; 1029 1030 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1032 ac_prev=cache_file ;; 1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1035 cache_file=$ac_optarg ;; 1036 1037 --config-cache | -C) 1038 cache_file=config.cache ;; 1039 1040 -datadir | --datadir | --datadi | --datad) 1041 ac_prev=datadir ;; 1042 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1043 datadir=$ac_optarg ;; 1044 1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1046 | --dataroo | --dataro | --datar) 1047 ac_prev=datarootdir ;; 1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1050 datarootdir=$ac_optarg ;; 1051 1052 -disable-* | --disable-*) 1053 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1054 # Reject names that are not valid shell variable names. 1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1056 as_fn_error $? "invalid feature name: $ac_useropt" 1057 ac_useropt_orig=$ac_useropt 1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1059 case $ac_user_opts in 1060 *" 1061"enable_$ac_useropt" 1062"*) ;; 1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1064 ac_unrecognized_sep=', ';; 1065 esac 1066 eval enable_$ac_useropt=no ;; 1067 1068 -docdir | --docdir | --docdi | --doc | --do) 1069 ac_prev=docdir ;; 1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1071 docdir=$ac_optarg ;; 1072 1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1074 ac_prev=dvidir ;; 1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1076 dvidir=$ac_optarg ;; 1077 1078 -enable-* | --enable-*) 1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1080 # Reject names that are not valid shell variable names. 1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1082 as_fn_error $? "invalid feature name: $ac_useropt" 1083 ac_useropt_orig=$ac_useropt 1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1085 case $ac_user_opts in 1086 *" 1087"enable_$ac_useropt" 1088"*) ;; 1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1090 ac_unrecognized_sep=', ';; 1091 esac 1092 eval enable_$ac_useropt=\$ac_optarg ;; 1093 1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1096 | --exec | --exe | --ex) 1097 ac_prev=exec_prefix ;; 1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1100 | --exec=* | --exe=* | --ex=*) 1101 exec_prefix=$ac_optarg ;; 1102 1103 -gas | --gas | --ga | --g) 1104 # Obsolete; use --with-gas. 1105 with_gas=yes ;; 1106 1107 -help | --help | --hel | --he | -h) 1108 ac_init_help=long ;; 1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1110 ac_init_help=recursive ;; 1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1112 ac_init_help=short ;; 1113 1114 -host | --host | --hos | --ho) 1115 ac_prev=host_alias ;; 1116 -host=* | --host=* | --hos=* | --ho=*) 1117 host_alias=$ac_optarg ;; 1118 1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1120 ac_prev=htmldir ;; 1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1122 | --ht=*) 1123 htmldir=$ac_optarg ;; 1124 1125 -includedir | --includedir | --includedi | --included | --include \ 1126 | --includ | --inclu | --incl | --inc) 1127 ac_prev=includedir ;; 1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1129 | --includ=* | --inclu=* | --incl=* | --inc=*) 1130 includedir=$ac_optarg ;; 1131 1132 -infodir | --infodir | --infodi | --infod | --info | --inf) 1133 ac_prev=infodir ;; 1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1135 infodir=$ac_optarg ;; 1136 1137 -libdir | --libdir | --libdi | --libd) 1138 ac_prev=libdir ;; 1139 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1140 libdir=$ac_optarg ;; 1141 1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1143 | --libexe | --libex | --libe) 1144 ac_prev=libexecdir ;; 1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1146 | --libexe=* | --libex=* | --libe=*) 1147 libexecdir=$ac_optarg ;; 1148 1149 -localedir | --localedir | --localedi | --localed | --locale) 1150 ac_prev=localedir ;; 1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1152 localedir=$ac_optarg ;; 1153 1154 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1155 | --localstate | --localstat | --localsta | --localst | --locals) 1156 ac_prev=localstatedir ;; 1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1159 localstatedir=$ac_optarg ;; 1160 1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1162 ac_prev=mandir ;; 1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1164 mandir=$ac_optarg ;; 1165 1166 -nfp | --nfp | --nf) 1167 # Obsolete; use --without-fp. 1168 with_fp=no ;; 1169 1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1171 | --no-cr | --no-c | -n) 1172 no_create=yes ;; 1173 1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1176 no_recursion=yes ;; 1177 1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1180 | --oldin | --oldi | --old | --ol | --o) 1181 ac_prev=oldincludedir ;; 1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1185 oldincludedir=$ac_optarg ;; 1186 1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1188 ac_prev=prefix ;; 1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1190 prefix=$ac_optarg ;; 1191 1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1193 | --program-pre | --program-pr | --program-p) 1194 ac_prev=program_prefix ;; 1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1197 program_prefix=$ac_optarg ;; 1198 1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1200 | --program-suf | --program-su | --program-s) 1201 ac_prev=program_suffix ;; 1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1204 program_suffix=$ac_optarg ;; 1205 1206 -program-transform-name | --program-transform-name \ 1207 | --program-transform-nam | --program-transform-na \ 1208 | --program-transform-n | --program-transform- \ 1209 | --program-transform | --program-transfor \ 1210 | --program-transfo | --program-transf \ 1211 | --program-trans | --program-tran \ 1212 | --progr-tra | --program-tr | --program-t) 1213 ac_prev=program_transform_name ;; 1214 -program-transform-name=* | --program-transform-name=* \ 1215 | --program-transform-nam=* | --program-transform-na=* \ 1216 | --program-transform-n=* | --program-transform-=* \ 1217 | --program-transform=* | --program-transfor=* \ 1218 | --program-transfo=* | --program-transf=* \ 1219 | --program-trans=* | --program-tran=* \ 1220 | --progr-tra=* | --program-tr=* | --program-t=*) 1221 program_transform_name=$ac_optarg ;; 1222 1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1224 ac_prev=pdfdir ;; 1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1226 pdfdir=$ac_optarg ;; 1227 1228 -psdir | --psdir | --psdi | --psd | --ps) 1229 ac_prev=psdir ;; 1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1231 psdir=$ac_optarg ;; 1232 1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1234 | -silent | --silent | --silen | --sile | --sil) 1235 silent=yes ;; 1236 1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1238 ac_prev=sbindir ;; 1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1240 | --sbi=* | --sb=*) 1241 sbindir=$ac_optarg ;; 1242 1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1245 | --sharedst | --shareds | --shared | --share | --shar \ 1246 | --sha | --sh) 1247 ac_prev=sharedstatedir ;; 1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1251 | --sha=* | --sh=*) 1252 sharedstatedir=$ac_optarg ;; 1253 1254 -site | --site | --sit) 1255 ac_prev=site ;; 1256 -site=* | --site=* | --sit=*) 1257 site=$ac_optarg ;; 1258 1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1260 ac_prev=srcdir ;; 1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1262 srcdir=$ac_optarg ;; 1263 1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1265 | --syscon | --sysco | --sysc | --sys | --sy) 1266 ac_prev=sysconfdir ;; 1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1269 sysconfdir=$ac_optarg ;; 1270 1271 -target | --target | --targe | --targ | --tar | --ta | --t) 1272 ac_prev=target_alias ;; 1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1274 target_alias=$ac_optarg ;; 1275 1276 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1277 verbose=yes ;; 1278 1279 -version | --version | --versio | --versi | --vers | -V) 1280 ac_init_version=: ;; 1281 1282 -with-* | --with-*) 1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1284 # Reject names that are not valid shell variable names. 1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1286 as_fn_error $? "invalid package name: $ac_useropt" 1287 ac_useropt_orig=$ac_useropt 1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1289 case $ac_user_opts in 1290 *" 1291"with_$ac_useropt" 1292"*) ;; 1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1294 ac_unrecognized_sep=', ';; 1295 esac 1296 eval with_$ac_useropt=\$ac_optarg ;; 1297 1298 -without-* | --without-*) 1299 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1300 # Reject names that are not valid shell variable names. 1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1302 as_fn_error $? "invalid package name: $ac_useropt" 1303 ac_useropt_orig=$ac_useropt 1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1305 case $ac_user_opts in 1306 *" 1307"with_$ac_useropt" 1308"*) ;; 1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1310 ac_unrecognized_sep=', ';; 1311 esac 1312 eval with_$ac_useropt=no ;; 1313 1314 --x) 1315 # Obsolete; use --with-x. 1316 with_x=yes ;; 1317 1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1319 | --x-incl | --x-inc | --x-in | --x-i) 1320 ac_prev=x_includes ;; 1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1323 x_includes=$ac_optarg ;; 1324 1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1327 ac_prev=x_libraries ;; 1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1330 x_libraries=$ac_optarg ;; 1331 1332 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1333Try \`$0 --help' for more information" 1334 ;; 1335 1336 *=*) 1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1338 # Reject names that are not valid shell variable names. 1339 case $ac_envvar in #( 1340 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1341 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1342 esac 1343 eval $ac_envvar=\$ac_optarg 1344 export $ac_envvar ;; 1345 1346 *) 1347 # FIXME: should be removed in autoconf 3.0. 1348 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1350 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1351 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1352 ;; 1353 1354 esac 1355done 1356 1357if test -n "$ac_prev"; then 1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1359 as_fn_error $? "missing argument to $ac_option" 1360fi 1361 1362if test -n "$ac_unrecognized_opts"; then 1363 case $enable_option_checking in 1364 no) ;; 1365 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1366 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1367 esac 1368fi 1369 1370# Check all directory arguments for consistency. 1371for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1372 datadir sysconfdir sharedstatedir localstatedir includedir \ 1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1374 libdir localedir mandir 1375do 1376 eval ac_val=\$$ac_var 1377 # Remove trailing slashes. 1378 case $ac_val in 1379 */ ) 1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1381 eval $ac_var=\$ac_val;; 1382 esac 1383 # Be sure to have absolute directory names. 1384 case $ac_val in 1385 [\\/$]* | ?:[\\/]* ) continue;; 1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1387 esac 1388 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1389done 1390 1391# There might be people who depend on the old broken behavior: `$host' 1392# used to hold the argument of --host etc. 1393# FIXME: To remove some day. 1394build=$build_alias 1395host=$host_alias 1396target=$target_alias 1397 1398# FIXME: To remove some day. 1399if test "x$host_alias" != x; then 1400 if test "x$build_alias" = x; then 1401 cross_compiling=maybe 1402 elif test "x$build_alias" != "x$host_alias"; then 1403 cross_compiling=yes 1404 fi 1405fi 1406 1407ac_tool_prefix= 1408test -n "$host_alias" && ac_tool_prefix=$host_alias- 1409 1410test "$silent" = yes && exec 6>/dev/null 1411 1412 1413ac_pwd=`pwd` && test -n "$ac_pwd" && 1414ac_ls_di=`ls -di .` && 1415ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1416 as_fn_error $? "working directory cannot be determined" 1417test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1418 as_fn_error $? "pwd does not report name of working directory" 1419 1420 1421# Find the source files, if location was not specified. 1422if test -z "$srcdir"; then 1423 ac_srcdir_defaulted=yes 1424 # Try the directory containing this script, then the parent directory. 1425 ac_confdir=`$as_dirname -- "$as_myself" || 1426$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1427 X"$as_myself" : 'X\(//\)[^/]' \| \ 1428 X"$as_myself" : 'X\(//\)$' \| \ 1429 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1430$as_echo X"$as_myself" | 1431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1432 s//\1/ 1433 q 1434 } 1435 /^X\(\/\/\)[^/].*/{ 1436 s//\1/ 1437 q 1438 } 1439 /^X\(\/\/\)$/{ 1440 s//\1/ 1441 q 1442 } 1443 /^X\(\/\).*/{ 1444 s//\1/ 1445 q 1446 } 1447 s/.*/./; q'` 1448 srcdir=$ac_confdir 1449 if test ! -r "$srcdir/$ac_unique_file"; then 1450 srcdir=.. 1451 fi 1452else 1453 ac_srcdir_defaulted=no 1454fi 1455if test ! -r "$srcdir/$ac_unique_file"; then 1456 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1457 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1458fi 1459ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1460ac_abs_confdir=`( 1461 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1462 pwd)` 1463# When building in place, set srcdir=. 1464if test "$ac_abs_confdir" = "$ac_pwd"; then 1465 srcdir=. 1466fi 1467# Remove unnecessary trailing slashes from srcdir. 1468# Double slashes in file names in object file debugging info 1469# mess up M-x gdb in Emacs. 1470case $srcdir in 1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1472esac 1473for ac_var in $ac_precious_vars; do 1474 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1475 eval ac_env_${ac_var}_value=\$${ac_var} 1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1477 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1478done 1479 1480# 1481# Report the --help message. 1482# 1483if test "$ac_init_help" = "long"; then 1484 # Omit some internal or obsolete options to make the list less imposing. 1485 # This message is too long to be a string in the A/UX 3.1 sh. 1486 cat <<_ACEOF
| 911enable_shared 912enable_static 913with_pic 914enable_fast_install 915with_aix_soname 916with_sysroot 917enable_libtool_lock 918with_sntp 919enable_nls 920enable_local_libopts 921enable_libopts_install 922with_autoopts_config 923with_regex_header 924with_libregex 925with_libregex_cflags 926with_libregex_libs 927enable_optional_args 928enable_local_libevent 929with_crypto 930with_openssl_libdir 931with_openssl_incdir 932with_rpath 933enable_ipv6 934with_kame 935enable_getifaddrs 936enable_problem_tests 937' 938 ac_precious_vars='build_alias 939host_alias 940target_alias 941CC 942CFLAGS 943LDFLAGS 944LIBS 945CPPFLAGS 946CPP 947LT_SYS_LIBRARY_PATH' 948ac_subdirs_all='libevent' 949 950# Initialize some variables set by options. 951ac_init_help= 952ac_init_version=false 953ac_unrecognized_opts= 954ac_unrecognized_sep= 955# The variables have the same names as the options, with 956# dashes changed to underlines. 957cache_file=/dev/null 958exec_prefix=NONE 959no_create= 960no_recursion= 961prefix=NONE 962program_prefix=NONE 963program_suffix=NONE 964program_transform_name=s,x,x, 965silent= 966site= 967srcdir= 968verbose= 969x_includes=NONE 970x_libraries=NONE 971 972# Installation directory options. 973# These are left unexpanded so users can "make install exec_prefix=/foo" 974# and all the variables that are supposed to be based on exec_prefix 975# by default will actually change. 976# Use braces instead of parens because sh, perl, etc. also accept them. 977# (The list follows the same order as the GNU Coding Standards.) 978bindir='${exec_prefix}/bin' 979sbindir='${exec_prefix}/sbin' 980libexecdir='${exec_prefix}/libexec' 981datarootdir='${prefix}/share' 982datadir='${datarootdir}' 983sysconfdir='${prefix}/etc' 984sharedstatedir='${prefix}/com' 985localstatedir='${prefix}/var' 986includedir='${prefix}/include' 987oldincludedir='/usr/include' 988docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 989infodir='${datarootdir}/info' 990htmldir='${docdir}' 991dvidir='${docdir}' 992pdfdir='${docdir}' 993psdir='${docdir}' 994libdir='${exec_prefix}/lib' 995localedir='${datarootdir}/locale' 996mandir='${datarootdir}/man' 997 998ac_prev= 999ac_dashdash= 1000for ac_option 1001do 1002 # If the previous option needs an argument, assign it. 1003 if test -n "$ac_prev"; then 1004 eval $ac_prev=\$ac_option 1005 ac_prev= 1006 continue 1007 fi 1008 1009 case $ac_option in 1010 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1011 *=) ac_optarg= ;; 1012 *) ac_optarg=yes ;; 1013 esac 1014 1015 # Accept the important Cygnus configure options, so we can diagnose typos. 1016 1017 case $ac_dashdash$ac_option in 1018 --) 1019 ac_dashdash=yes ;; 1020 1021 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1022 ac_prev=bindir ;; 1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1024 bindir=$ac_optarg ;; 1025 1026 -build | --build | --buil | --bui | --bu) 1027 ac_prev=build_alias ;; 1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1029 build_alias=$ac_optarg ;; 1030 1031 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1033 ac_prev=cache_file ;; 1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1036 cache_file=$ac_optarg ;; 1037 1038 --config-cache | -C) 1039 cache_file=config.cache ;; 1040 1041 -datadir | --datadir | --datadi | --datad) 1042 ac_prev=datadir ;; 1043 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1044 datadir=$ac_optarg ;; 1045 1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1047 | --dataroo | --dataro | --datar) 1048 ac_prev=datarootdir ;; 1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1051 datarootdir=$ac_optarg ;; 1052 1053 -disable-* | --disable-*) 1054 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1057 as_fn_error $? "invalid feature name: $ac_useropt" 1058 ac_useropt_orig=$ac_useropt 1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1060 case $ac_user_opts in 1061 *" 1062"enable_$ac_useropt" 1063"*) ;; 1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1065 ac_unrecognized_sep=', ';; 1066 esac 1067 eval enable_$ac_useropt=no ;; 1068 1069 -docdir | --docdir | --docdi | --doc | --do) 1070 ac_prev=docdir ;; 1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1072 docdir=$ac_optarg ;; 1073 1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1075 ac_prev=dvidir ;; 1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1077 dvidir=$ac_optarg ;; 1078 1079 -enable-* | --enable-*) 1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1081 # Reject names that are not valid shell variable names. 1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1083 as_fn_error $? "invalid feature name: $ac_useropt" 1084 ac_useropt_orig=$ac_useropt 1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1086 case $ac_user_opts in 1087 *" 1088"enable_$ac_useropt" 1089"*) ;; 1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1091 ac_unrecognized_sep=', ';; 1092 esac 1093 eval enable_$ac_useropt=\$ac_optarg ;; 1094 1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1097 | --exec | --exe | --ex) 1098 ac_prev=exec_prefix ;; 1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1101 | --exec=* | --exe=* | --ex=*) 1102 exec_prefix=$ac_optarg ;; 1103 1104 -gas | --gas | --ga | --g) 1105 # Obsolete; use --with-gas. 1106 with_gas=yes ;; 1107 1108 -help | --help | --hel | --he | -h) 1109 ac_init_help=long ;; 1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1111 ac_init_help=recursive ;; 1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1113 ac_init_help=short ;; 1114 1115 -host | --host | --hos | --ho) 1116 ac_prev=host_alias ;; 1117 -host=* | --host=* | --hos=* | --ho=*) 1118 host_alias=$ac_optarg ;; 1119 1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1121 ac_prev=htmldir ;; 1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1123 | --ht=*) 1124 htmldir=$ac_optarg ;; 1125 1126 -includedir | --includedir | --includedi | --included | --include \ 1127 | --includ | --inclu | --incl | --inc) 1128 ac_prev=includedir ;; 1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1130 | --includ=* | --inclu=* | --incl=* | --inc=*) 1131 includedir=$ac_optarg ;; 1132 1133 -infodir | --infodir | --infodi | --infod | --info | --inf) 1134 ac_prev=infodir ;; 1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1136 infodir=$ac_optarg ;; 1137 1138 -libdir | --libdir | --libdi | --libd) 1139 ac_prev=libdir ;; 1140 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1141 libdir=$ac_optarg ;; 1142 1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1144 | --libexe | --libex | --libe) 1145 ac_prev=libexecdir ;; 1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1147 | --libexe=* | --libex=* | --libe=*) 1148 libexecdir=$ac_optarg ;; 1149 1150 -localedir | --localedir | --localedi | --localed | --locale) 1151 ac_prev=localedir ;; 1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1153 localedir=$ac_optarg ;; 1154 1155 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1156 | --localstate | --localstat | --localsta | --localst | --locals) 1157 ac_prev=localstatedir ;; 1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1160 localstatedir=$ac_optarg ;; 1161 1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1163 ac_prev=mandir ;; 1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1165 mandir=$ac_optarg ;; 1166 1167 -nfp | --nfp | --nf) 1168 # Obsolete; use --without-fp. 1169 with_fp=no ;; 1170 1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1172 | --no-cr | --no-c | -n) 1173 no_create=yes ;; 1174 1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1177 no_recursion=yes ;; 1178 1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1181 | --oldin | --oldi | --old | --ol | --o) 1182 ac_prev=oldincludedir ;; 1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1186 oldincludedir=$ac_optarg ;; 1187 1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1189 ac_prev=prefix ;; 1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1191 prefix=$ac_optarg ;; 1192 1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1194 | --program-pre | --program-pr | --program-p) 1195 ac_prev=program_prefix ;; 1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1198 program_prefix=$ac_optarg ;; 1199 1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1201 | --program-suf | --program-su | --program-s) 1202 ac_prev=program_suffix ;; 1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1205 program_suffix=$ac_optarg ;; 1206 1207 -program-transform-name | --program-transform-name \ 1208 | --program-transform-nam | --program-transform-na \ 1209 | --program-transform-n | --program-transform- \ 1210 | --program-transform | --program-transfor \ 1211 | --program-transfo | --program-transf \ 1212 | --program-trans | --program-tran \ 1213 | --progr-tra | --program-tr | --program-t) 1214 ac_prev=program_transform_name ;; 1215 -program-transform-name=* | --program-transform-name=* \ 1216 | --program-transform-nam=* | --program-transform-na=* \ 1217 | --program-transform-n=* | --program-transform-=* \ 1218 | --program-transform=* | --program-transfor=* \ 1219 | --program-transfo=* | --program-transf=* \ 1220 | --program-trans=* | --program-tran=* \ 1221 | --progr-tra=* | --program-tr=* | --program-t=*) 1222 program_transform_name=$ac_optarg ;; 1223 1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1225 ac_prev=pdfdir ;; 1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1227 pdfdir=$ac_optarg ;; 1228 1229 -psdir | --psdir | --psdi | --psd | --ps) 1230 ac_prev=psdir ;; 1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1232 psdir=$ac_optarg ;; 1233 1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1235 | -silent | --silent | --silen | --sile | --sil) 1236 silent=yes ;; 1237 1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1239 ac_prev=sbindir ;; 1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1241 | --sbi=* | --sb=*) 1242 sbindir=$ac_optarg ;; 1243 1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1246 | --sharedst | --shareds | --shared | --share | --shar \ 1247 | --sha | --sh) 1248 ac_prev=sharedstatedir ;; 1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1252 | --sha=* | --sh=*) 1253 sharedstatedir=$ac_optarg ;; 1254 1255 -site | --site | --sit) 1256 ac_prev=site ;; 1257 -site=* | --site=* | --sit=*) 1258 site=$ac_optarg ;; 1259 1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1261 ac_prev=srcdir ;; 1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1263 srcdir=$ac_optarg ;; 1264 1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1266 | --syscon | --sysco | --sysc | --sys | --sy) 1267 ac_prev=sysconfdir ;; 1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1270 sysconfdir=$ac_optarg ;; 1271 1272 -target | --target | --targe | --targ | --tar | --ta | --t) 1273 ac_prev=target_alias ;; 1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1275 target_alias=$ac_optarg ;; 1276 1277 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1278 verbose=yes ;; 1279 1280 -version | --version | --versio | --versi | --vers | -V) 1281 ac_init_version=: ;; 1282 1283 -with-* | --with-*) 1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1285 # Reject names that are not valid shell variable names. 1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1287 as_fn_error $? "invalid package name: $ac_useropt" 1288 ac_useropt_orig=$ac_useropt 1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1290 case $ac_user_opts in 1291 *" 1292"with_$ac_useropt" 1293"*) ;; 1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1295 ac_unrecognized_sep=', ';; 1296 esac 1297 eval with_$ac_useropt=\$ac_optarg ;; 1298 1299 -without-* | --without-*) 1300 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1301 # Reject names that are not valid shell variable names. 1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1303 as_fn_error $? "invalid package name: $ac_useropt" 1304 ac_useropt_orig=$ac_useropt 1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1306 case $ac_user_opts in 1307 *" 1308"with_$ac_useropt" 1309"*) ;; 1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1311 ac_unrecognized_sep=', ';; 1312 esac 1313 eval with_$ac_useropt=no ;; 1314 1315 --x) 1316 # Obsolete; use --with-x. 1317 with_x=yes ;; 1318 1319 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1320 | --x-incl | --x-inc | --x-in | --x-i) 1321 ac_prev=x_includes ;; 1322 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1323 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1324 x_includes=$ac_optarg ;; 1325 1326 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1327 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1328 ac_prev=x_libraries ;; 1329 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1330 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1331 x_libraries=$ac_optarg ;; 1332 1333 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1334Try \`$0 --help' for more information" 1335 ;; 1336 1337 *=*) 1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1339 # Reject names that are not valid shell variable names. 1340 case $ac_envvar in #( 1341 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1342 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1343 esac 1344 eval $ac_envvar=\$ac_optarg 1345 export $ac_envvar ;; 1346 1347 *) 1348 # FIXME: should be removed in autoconf 3.0. 1349 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1351 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1352 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1353 ;; 1354 1355 esac 1356done 1357 1358if test -n "$ac_prev"; then 1359 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1360 as_fn_error $? "missing argument to $ac_option" 1361fi 1362 1363if test -n "$ac_unrecognized_opts"; then 1364 case $enable_option_checking in 1365 no) ;; 1366 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1367 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1368 esac 1369fi 1370 1371# Check all directory arguments for consistency. 1372for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1373 datadir sysconfdir sharedstatedir localstatedir includedir \ 1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1375 libdir localedir mandir 1376do 1377 eval ac_val=\$$ac_var 1378 # Remove trailing slashes. 1379 case $ac_val in 1380 */ ) 1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1382 eval $ac_var=\$ac_val;; 1383 esac 1384 # Be sure to have absolute directory names. 1385 case $ac_val in 1386 [\\/$]* | ?:[\\/]* ) continue;; 1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1388 esac 1389 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1390done 1391 1392# There might be people who depend on the old broken behavior: `$host' 1393# used to hold the argument of --host etc. 1394# FIXME: To remove some day. 1395build=$build_alias 1396host=$host_alias 1397target=$target_alias 1398 1399# FIXME: To remove some day. 1400if test "x$host_alias" != x; then 1401 if test "x$build_alias" = x; then 1402 cross_compiling=maybe 1403 elif test "x$build_alias" != "x$host_alias"; then 1404 cross_compiling=yes 1405 fi 1406fi 1407 1408ac_tool_prefix= 1409test -n "$host_alias" && ac_tool_prefix=$host_alias- 1410 1411test "$silent" = yes && exec 6>/dev/null 1412 1413 1414ac_pwd=`pwd` && test -n "$ac_pwd" && 1415ac_ls_di=`ls -di .` && 1416ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1417 as_fn_error $? "working directory cannot be determined" 1418test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1419 as_fn_error $? "pwd does not report name of working directory" 1420 1421 1422# Find the source files, if location was not specified. 1423if test -z "$srcdir"; then 1424 ac_srcdir_defaulted=yes 1425 # Try the directory containing this script, then the parent directory. 1426 ac_confdir=`$as_dirname -- "$as_myself" || 1427$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1428 X"$as_myself" : 'X\(//\)[^/]' \| \ 1429 X"$as_myself" : 'X\(//\)$' \| \ 1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1431$as_echo X"$as_myself" | 1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1433 s//\1/ 1434 q 1435 } 1436 /^X\(\/\/\)[^/].*/{ 1437 s//\1/ 1438 q 1439 } 1440 /^X\(\/\/\)$/{ 1441 s//\1/ 1442 q 1443 } 1444 /^X\(\/\).*/{ 1445 s//\1/ 1446 q 1447 } 1448 s/.*/./; q'` 1449 srcdir=$ac_confdir 1450 if test ! -r "$srcdir/$ac_unique_file"; then 1451 srcdir=.. 1452 fi 1453else 1454 ac_srcdir_defaulted=no 1455fi 1456if test ! -r "$srcdir/$ac_unique_file"; then 1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1458 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1459fi 1460ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1461ac_abs_confdir=`( 1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1463 pwd)` 1464# When building in place, set srcdir=. 1465if test "$ac_abs_confdir" = "$ac_pwd"; then 1466 srcdir=. 1467fi 1468# Remove unnecessary trailing slashes from srcdir. 1469# Double slashes in file names in object file debugging info 1470# mess up M-x gdb in Emacs. 1471case $srcdir in 1472*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1473esac 1474for ac_var in $ac_precious_vars; do 1475 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1476 eval ac_env_${ac_var}_value=\$${ac_var} 1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1478 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1479done 1480 1481# 1482# Report the --help message. 1483# 1484if test "$ac_init_help" = "long"; then 1485 # Omit some internal or obsolete options to make the list less imposing. 1486 # This message is too long to be a string in the A/UX 3.1 sh. 1487 cat <<_ACEOF
|
1487\`configure' configures sntp 4.2.8p11 to adapt to many kinds of systems.
| 1488\`configure' configures sntp 4.2.8p12 to adapt to many kinds of systems.
|
1488 1489Usage: $0 [OPTION]... [VAR=VALUE]... 1490 1491To assign environment variables (e.g., CC, CFLAGS...), specify them as 1492VAR=VALUE. See below for descriptions of some of the useful variables. 1493 1494Defaults for the options are specified in brackets. 1495 1496Configuration: 1497 -h, --help display this help and exit 1498 --help=short display options specific to this package 1499 --help=recursive display the short help of all the included packages 1500 -V, --version display version information and exit 1501 -q, --quiet, --silent do not print \`checking ...' messages 1502 --cache-file=FILE cache test results in FILE [disabled] 1503 -C, --config-cache alias for \`--cache-file=config.cache' 1504 -n, --no-create do not create output files 1505 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1506 1507Installation directories: 1508 --prefix=PREFIX install architecture-independent files in PREFIX 1509 [$ac_default_prefix] 1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1511 [PREFIX] 1512 1513By default, \`make install' will install all the files in 1514\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1515an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1516for instance \`--prefix=\$HOME'. 1517 1518For better control, use the options below. 1519 1520Fine tuning of the installation directories: 1521 --bindir=DIR user executables [EPREFIX/bin] 1522 --sbindir=DIR system admin executables [EPREFIX/sbin] 1523 --libexecdir=DIR program executables [EPREFIX/libexec] 1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1527 --libdir=DIR object code libraries [EPREFIX/lib] 1528 --includedir=DIR C header files [PREFIX/include] 1529 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1532 --infodir=DIR info documentation [DATAROOTDIR/info] 1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1534 --mandir=DIR man documentation [DATAROOTDIR/man] 1535 --docdir=DIR documentation root [DATAROOTDIR/doc/sntp] 1536 --htmldir=DIR html documentation [DOCDIR] 1537 --dvidir=DIR dvi documentation [DOCDIR] 1538 --pdfdir=DIR pdf documentation [DOCDIR] 1539 --psdir=DIR ps documentation [DOCDIR] 1540_ACEOF 1541 1542 cat <<\_ACEOF 1543 1544Program names: 1545 --program-prefix=PREFIX prepend PREFIX to installed program names 1546 --program-suffix=SUFFIX append SUFFIX to installed program names 1547 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1548 1549System types: 1550 --build=BUILD configure for building on BUILD [guessed] 1551 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1552_ACEOF 1553fi 1554 1555if test -n "$ac_init_help"; then 1556 case $ac_init_help in
| 1489 1490Usage: $0 [OPTION]... [VAR=VALUE]... 1491 1492To assign environment variables (e.g., CC, CFLAGS...), specify them as 1493VAR=VALUE. See below for descriptions of some of the useful variables. 1494 1495Defaults for the options are specified in brackets. 1496 1497Configuration: 1498 -h, --help display this help and exit 1499 --help=short display options specific to this package 1500 --help=recursive display the short help of all the included packages 1501 -V, --version display version information and exit 1502 -q, --quiet, --silent do not print \`checking ...' messages 1503 --cache-file=FILE cache test results in FILE [disabled] 1504 -C, --config-cache alias for \`--cache-file=config.cache' 1505 -n, --no-create do not create output files 1506 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1507 1508Installation directories: 1509 --prefix=PREFIX install architecture-independent files in PREFIX 1510 [$ac_default_prefix] 1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1512 [PREFIX] 1513 1514By default, \`make install' will install all the files in 1515\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1516an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1517for instance \`--prefix=\$HOME'. 1518 1519For better control, use the options below. 1520 1521Fine tuning of the installation directories: 1522 --bindir=DIR user executables [EPREFIX/bin] 1523 --sbindir=DIR system admin executables [EPREFIX/sbin] 1524 --libexecdir=DIR program executables [EPREFIX/libexec] 1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1528 --libdir=DIR object code libraries [EPREFIX/lib] 1529 --includedir=DIR C header files [PREFIX/include] 1530 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1533 --infodir=DIR info documentation [DATAROOTDIR/info] 1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1535 --mandir=DIR man documentation [DATAROOTDIR/man] 1536 --docdir=DIR documentation root [DATAROOTDIR/doc/sntp] 1537 --htmldir=DIR html documentation [DOCDIR] 1538 --dvidir=DIR dvi documentation [DOCDIR] 1539 --pdfdir=DIR pdf documentation [DOCDIR] 1540 --psdir=DIR ps documentation [DOCDIR] 1541_ACEOF 1542 1543 cat <<\_ACEOF 1544 1545Program names: 1546 --program-prefix=PREFIX prepend PREFIX to installed program names 1547 --program-suffix=SUFFIX append SUFFIX to installed program names 1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1549 1550System types: 1551 --build=BUILD configure for building on BUILD [guessed] 1552 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1553_ACEOF 1554fi 1555 1556if test -n "$ac_init_help"; then 1557 case $ac_init_help in
|
1557 short | recursive ) echo "Configuration of sntp 4.2.8p11:";;
| 1558 short | recursive ) echo "Configuration of sntp 4.2.8p12:";;
|
1558 esac 1559 cat <<\_ACEOF 1560 1561Optional Features: 1562 --disable-option-checking ignore unrecognized --enable/--with options 1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1565 --enable-silent-rules less verbose build output (undo: "make V=1") 1566 --disable-silent-rules verbose build output (undo: "make V=0") 1567 --enable-dependency-tracking 1568 do not reject slow dependency extractors 1569 --disable-dependency-tracking 1570 speeds up one-time build 1571 defaults: + yes, - no, s system-specific 1572 --enable-debugging + include ntpd debugging code 1573 --enable-thread-support s use threads (+ if available) 1574 --enable-c99-snprintf s force replacement 1575 --enable-clockctl s Use /dev/clockctl for non-root clock control 1576 --enable-linuxcaps + Use Linux capabilities for non-root clock control 1577 --enable-solarisprivs + Use Solaris privileges for non-root clock control
| 1559 esac 1560 cat <<\_ACEOF 1561 1562Optional Features: 1563 --disable-option-checking ignore unrecognized --enable/--with options 1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1566 --enable-silent-rules less verbose build output (undo: "make V=1") 1567 --disable-silent-rules verbose build output (undo: "make V=0") 1568 --enable-dependency-tracking 1569 do not reject slow dependency extractors 1570 --disable-dependency-tracking 1571 speeds up one-time build 1572 defaults: + yes, - no, s system-specific 1573 --enable-debugging + include ntpd debugging code 1574 --enable-thread-support s use threads (+ if available) 1575 --enable-c99-snprintf s force replacement 1576 --enable-clockctl s Use /dev/clockctl for non-root clock control 1577 --enable-linuxcaps + Use Linux capabilities for non-root clock control 1578 --enable-solarisprivs + Use Solaris privileges for non-root clock control
|
| 1579 --enable-trustedbsd-mac s Use TrustedBSD MAC policy for non-root clock 1580 control
|
1578 --enable-shared[=PKGS] build shared libraries [default=no] 1579 --enable-static[=PKGS] build static libraries [default=yes] 1580 --enable-fast-install[=PKGS] 1581 optimize for fast installation [default=yes] 1582 --disable-libtool-lock avoid locking (might break parallel builds) 1583 --disable-nls disable nls support in libopts 1584 --enable-local-libopts Use the supplied libopts tearoff code 1585 --enable-libopts-install 1586 Install libopts with client installation 1587 --disable-optional-args not wanting optional option args 1588 --enable-local-libevent Force using the supplied libevent tearoff code 1589 --enable-ipv6 s use IPv6? 1590 1591 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]]. 1592 --enable-problem-tests + enable tests with undiagnosed problems 1593 1594Optional Packages: 1595 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1597 --with-hardenfile=XXX os-specific or "/dev/null" 1598 --with-locfile=XXX os-specific or "legacy" 1599 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1600 --with-lineeditlibs edit,editline (readline may be specified if desired) 1601 --with-threads with threads [auto] 1602 --with-yielding-select with yielding select [auto] 1603 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1604 both] 1605 --with-aix-soname=aix|svr4|both 1606 shared library versioning (aka "SONAME") variant to 1607 provide on AIX, [default=aix]. 1608 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1609 compiler's sysroot if not specified). 1610 --without-sntp - disable building sntp and sntp/tests 1611 --with-autoopts-config specify the config-info script 1612 --with-regex-header a reg expr header is specified 1613 --with-libregex libregex installation prefix 1614 --with-libregex-cflags libregex compile flags 1615 --with-libregex-libs libregex link command arguments 1616 --with-crypto + =openssl,libcrypto 1617 1618 --with-openssl-libdir + =/something/reasonable 1619 1620 --with-openssl-incdir + =/something/reasonable 1621 1622 --without-rpath s Disable auto-added -R linker paths 1623 1624 --with-kame - =/usr/local/v6 1625 1626Some influential environment variables: 1627 CC C compiler command 1628 CFLAGS C compiler flags 1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1630 nonstandard directory <lib dir> 1631 LIBS libraries to pass to the linker, e.g. -l<library> 1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1633 you have headers in a nonstandard directory <include dir> 1634 CPP C preprocessor 1635 LT_SYS_LIBRARY_PATH 1636 User-defined run-time library search path. 1637 1638Use these variables to override the choices made by `configure' or to help 1639it to find libraries and programs with nonstandard names/locations. 1640 1641Report bugs to <http://bugs.ntp.org./>. 1642sntp home page: <http://www.ntp.org./>. 1643_ACEOF 1644ac_status=$? 1645fi 1646 1647if test "$ac_init_help" = "recursive"; then 1648 # If there are subdirs, report their specific --help. 1649 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1650 test -d "$ac_dir" || 1651 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1652 continue 1653 ac_builddir=. 1654 1655case "$ac_dir" in 1656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1657*) 1658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1659 # A ".." for each directory in $ac_dir_suffix. 1660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1661 case $ac_top_builddir_sub in 1662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1664 esac ;; 1665esac 1666ac_abs_top_builddir=$ac_pwd 1667ac_abs_builddir=$ac_pwd$ac_dir_suffix 1668# for backward compatibility: 1669ac_top_builddir=$ac_top_build_prefix 1670 1671case $srcdir in 1672 .) # We are building in place. 1673 ac_srcdir=. 1674 ac_top_srcdir=$ac_top_builddir_sub 1675 ac_abs_top_srcdir=$ac_pwd ;; 1676 [\\/]* | ?:[\\/]* ) # Absolute name. 1677 ac_srcdir=$srcdir$ac_dir_suffix; 1678 ac_top_srcdir=$srcdir 1679 ac_abs_top_srcdir=$srcdir ;; 1680 *) # Relative name. 1681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1682 ac_top_srcdir=$ac_top_build_prefix$srcdir 1683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1684esac 1685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1686 1687 cd "$ac_dir" || { ac_status=$?; continue; } 1688 # Check for guested configure. 1689 if test -f "$ac_srcdir/configure.gnu"; then 1690 echo && 1691 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1692 elif test -f "$ac_srcdir/configure"; then 1693 echo && 1694 $SHELL "$ac_srcdir/configure" --help=recursive 1695 else 1696 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1697 fi || ac_status=$? 1698 cd "$ac_pwd" || { ac_status=$?; break; } 1699 done 1700fi 1701 1702test -n "$ac_init_help" && exit $ac_status 1703if $ac_init_version; then 1704 cat <<\_ACEOF
| 1581 --enable-shared[=PKGS] build shared libraries [default=no] 1582 --enable-static[=PKGS] build static libraries [default=yes] 1583 --enable-fast-install[=PKGS] 1584 optimize for fast installation [default=yes] 1585 --disable-libtool-lock avoid locking (might break parallel builds) 1586 --disable-nls disable nls support in libopts 1587 --enable-local-libopts Use the supplied libopts tearoff code 1588 --enable-libopts-install 1589 Install libopts with client installation 1590 --disable-optional-args not wanting optional option args 1591 --enable-local-libevent Force using the supplied libevent tearoff code 1592 --enable-ipv6 s use IPv6? 1593 1594 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]]. 1595 --enable-problem-tests + enable tests with undiagnosed problems 1596 1597Optional Packages: 1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1600 --with-hardenfile=XXX os-specific or "/dev/null" 1601 --with-locfile=XXX os-specific or "legacy" 1602 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1603 --with-lineeditlibs edit,editline (readline may be specified if desired) 1604 --with-threads with threads [auto] 1605 --with-yielding-select with yielding select [auto] 1606 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1607 both] 1608 --with-aix-soname=aix|svr4|both 1609 shared library versioning (aka "SONAME") variant to 1610 provide on AIX, [default=aix]. 1611 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1612 compiler's sysroot if not specified). 1613 --without-sntp - disable building sntp and sntp/tests 1614 --with-autoopts-config specify the config-info script 1615 --with-regex-header a reg expr header is specified 1616 --with-libregex libregex installation prefix 1617 --with-libregex-cflags libregex compile flags 1618 --with-libregex-libs libregex link command arguments 1619 --with-crypto + =openssl,libcrypto 1620 1621 --with-openssl-libdir + =/something/reasonable 1622 1623 --with-openssl-incdir + =/something/reasonable 1624 1625 --without-rpath s Disable auto-added -R linker paths 1626 1627 --with-kame - =/usr/local/v6 1628 1629Some influential environment variables: 1630 CC C compiler command 1631 CFLAGS C compiler flags 1632 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1633 nonstandard directory <lib dir> 1634 LIBS libraries to pass to the linker, e.g. -l<library> 1635 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1636 you have headers in a nonstandard directory <include dir> 1637 CPP C preprocessor 1638 LT_SYS_LIBRARY_PATH 1639 User-defined run-time library search path. 1640 1641Use these variables to override the choices made by `configure' or to help 1642it to find libraries and programs with nonstandard names/locations. 1643 1644Report bugs to <http://bugs.ntp.org./>. 1645sntp home page: <http://www.ntp.org./>. 1646_ACEOF 1647ac_status=$? 1648fi 1649 1650if test "$ac_init_help" = "recursive"; then 1651 # If there are subdirs, report their specific --help. 1652 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1653 test -d "$ac_dir" || 1654 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1655 continue 1656 ac_builddir=. 1657 1658case "$ac_dir" in 1659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1660*) 1661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1662 # A ".." for each directory in $ac_dir_suffix. 1663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1664 case $ac_top_builddir_sub in 1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1667 esac ;; 1668esac 1669ac_abs_top_builddir=$ac_pwd 1670ac_abs_builddir=$ac_pwd$ac_dir_suffix 1671# for backward compatibility: 1672ac_top_builddir=$ac_top_build_prefix 1673 1674case $srcdir in 1675 .) # We are building in place. 1676 ac_srcdir=. 1677 ac_top_srcdir=$ac_top_builddir_sub 1678 ac_abs_top_srcdir=$ac_pwd ;; 1679 [\\/]* | ?:[\\/]* ) # Absolute name. 1680 ac_srcdir=$srcdir$ac_dir_suffix; 1681 ac_top_srcdir=$srcdir 1682 ac_abs_top_srcdir=$srcdir ;; 1683 *) # Relative name. 1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1685 ac_top_srcdir=$ac_top_build_prefix$srcdir 1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1687esac 1688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1689 1690 cd "$ac_dir" || { ac_status=$?; continue; } 1691 # Check for guested configure. 1692 if test -f "$ac_srcdir/configure.gnu"; then 1693 echo && 1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1695 elif test -f "$ac_srcdir/configure"; then 1696 echo && 1697 $SHELL "$ac_srcdir/configure" --help=recursive 1698 else 1699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1700 fi || ac_status=$? 1701 cd "$ac_pwd" || { ac_status=$?; break; } 1702 done 1703fi 1704 1705test -n "$ac_init_help" && exit $ac_status 1706if $ac_init_version; then 1707 cat <<\_ACEOF
|
1705sntp configure 4.2.8p11
| 1708sntp configure 4.2.8p12
|
1706generated by GNU Autoconf 2.69 1707 1708Copyright (C) 2012 Free Software Foundation, Inc. 1709This configure script is free software; the Free Software Foundation 1710gives unlimited permission to copy, distribute and modify it. 1711_ACEOF 1712 exit 1713fi 1714 1715## ------------------------ ## 1716## Autoconf initialization. ## 1717## ------------------------ ## 1718 1719# ac_fn_c_try_compile LINENO 1720# -------------------------- 1721# Try to compile conftest.$ac_ext, and return whether this succeeded. 1722ac_fn_c_try_compile () 1723{ 1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 rm -f conftest.$ac_objext 1726 if { { ac_try="$ac_compile" 1727case "(($ac_try" in 1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1729 *) ac_try_echo=$ac_try;; 1730esac 1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1732$as_echo "$ac_try_echo"; } >&5 1733 (eval "$ac_compile") 2>conftest.err 1734 ac_status=$? 1735 if test -s conftest.err; then 1736 grep -v '^ *+' conftest.err >conftest.er1 1737 cat conftest.er1 >&5 1738 mv -f conftest.er1 conftest.err 1739 fi 1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1741 test $ac_status = 0; } && { 1742 test -z "$ac_c_werror_flag" || 1743 test ! -s conftest.err 1744 } && test -s conftest.$ac_objext; then : 1745 ac_retval=0 1746else 1747 $as_echo "$as_me: failed program was:" >&5 1748sed 's/^/| /' conftest.$ac_ext >&5 1749 1750 ac_retval=1 1751fi 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 as_fn_set_status $ac_retval 1754 1755} # ac_fn_c_try_compile 1756 1757# ac_fn_c_try_cpp LINENO 1758# ---------------------- 1759# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1760ac_fn_c_try_cpp () 1761{ 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1763 if { { ac_try="$ac_cpp conftest.$ac_ext" 1764case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767esac 1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769$as_echo "$ac_try_echo"; } >&5 1770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1771 ac_status=$? 1772 if test -s conftest.err; then 1773 grep -v '^ *+' conftest.err >conftest.er1 1774 cat conftest.er1 >&5 1775 mv -f conftest.er1 conftest.err 1776 fi 1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } > conftest.i && { 1779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1780 test ! -s conftest.err 1781 }; then : 1782 ac_retval=0 1783else 1784 $as_echo "$as_me: failed program was:" >&5 1785sed 's/^/| /' conftest.$ac_ext >&5 1786 1787 ac_retval=1 1788fi 1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1790 as_fn_set_status $ac_retval 1791 1792} # ac_fn_c_try_cpp 1793 1794# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1795# ------------------------------------------------------- 1796# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1797# the include files in INCLUDES and setting the cache variable VAR 1798# accordingly. 1799ac_fn_c_check_header_mongrel () 1800{ 1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1802 if eval \${$3+:} false; then : 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1804$as_echo_n "checking for $2... " >&6; } 1805if eval \${$3+:} false; then : 1806 $as_echo_n "(cached) " >&6 1807fi 1808eval ac_res=\$$3 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1810$as_echo "$ac_res" >&6; } 1811else 1812 # Is the header compilable? 1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1814$as_echo_n "checking $2 usability... " >&6; } 1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1816/* end confdefs.h. */ 1817$4 1818#include <$2> 1819_ACEOF 1820if ac_fn_c_try_compile "$LINENO"; then : 1821 ac_header_compiler=yes 1822else 1823 ac_header_compiler=no 1824fi 1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1827$as_echo "$ac_header_compiler" >&6; } 1828 1829# Is the header present? 1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1831$as_echo_n "checking $2 presence... " >&6; } 1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1833/* end confdefs.h. */ 1834#include <$2> 1835_ACEOF 1836if ac_fn_c_try_cpp "$LINENO"; then : 1837 ac_header_preproc=yes 1838else 1839 ac_header_preproc=no 1840fi 1841rm -f conftest.err conftest.i conftest.$ac_ext 1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1843$as_echo "$ac_header_preproc" >&6; } 1844 1845# So? What about this header? 1846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1847 yes:no: ) 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1849$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1851$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1852 ;; 1853 no:yes:* ) 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1855$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1857$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1859$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1861$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1864( $as_echo "## ------------------------------------ ## 1865## Report this to http://bugs.ntp.org./ ## 1866## ------------------------------------ ##" 1867 ) | sed "s/^/$as_me: WARNING: /" >&2 1868 ;; 1869esac 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1871$as_echo_n "checking for $2... " >&6; } 1872if eval \${$3+:} false; then : 1873 $as_echo_n "(cached) " >&6 1874else 1875 eval "$3=\$ac_header_compiler" 1876fi 1877eval ac_res=\$$3 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1879$as_echo "$ac_res" >&6; } 1880fi 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1882 1883} # ac_fn_c_check_header_mongrel 1884 1885# ac_fn_c_try_run LINENO 1886# ---------------------- 1887# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1888# that executables *can* be run. 1889ac_fn_c_try_run () 1890{ 1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1892 if { { ac_try="$ac_link" 1893case "(($ac_try" in 1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1895 *) ac_try_echo=$ac_try;; 1896esac 1897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1898$as_echo "$ac_try_echo"; } >&5 1899 (eval "$ac_link") 2>&5 1900 ac_status=$? 1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1902 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1903 { { case "(($ac_try" in 1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1905 *) ac_try_echo=$ac_try;; 1906esac 1907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1908$as_echo "$ac_try_echo"; } >&5 1909 (eval "$ac_try") 2>&5 1910 ac_status=$? 1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1912 test $ac_status = 0; }; }; then : 1913 ac_retval=0 1914else 1915 $as_echo "$as_me: program exited with status $ac_status" >&5 1916 $as_echo "$as_me: failed program was:" >&5 1917sed 's/^/| /' conftest.$ac_ext >&5 1918 1919 ac_retval=$ac_status 1920fi 1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1923 as_fn_set_status $ac_retval 1924 1925} # ac_fn_c_try_run 1926 1927# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1928# ------------------------------------------------------- 1929# Tests whether HEADER exists and can be compiled using the include files in 1930# INCLUDES, setting the cache variable VAR accordingly. 1931ac_fn_c_check_header_compile () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1935$as_echo_n "checking for $2... " >&6; } 1936if eval \${$3+:} false; then : 1937 $as_echo_n "(cached) " >&6 1938else 1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940/* end confdefs.h. */ 1941$4 1942#include <$2> 1943_ACEOF 1944if ac_fn_c_try_compile "$LINENO"; then : 1945 eval "$3=yes" 1946else 1947 eval "$3=no" 1948fi 1949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1950fi 1951eval ac_res=\$$3 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1953$as_echo "$ac_res" >&6; } 1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1955 1956} # ac_fn_c_check_header_compile 1957 1958# ac_fn_c_try_link LINENO 1959# ----------------------- 1960# Try to link conftest.$ac_ext, and return whether this succeeded. 1961ac_fn_c_try_link () 1962{ 1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1964 rm -f conftest.$ac_objext conftest$ac_exeext 1965 if { { ac_try="$ac_link" 1966case "(($ac_try" in 1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1968 *) ac_try_echo=$ac_try;; 1969esac 1970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1971$as_echo "$ac_try_echo"; } >&5 1972 (eval "$ac_link") 2>conftest.err 1973 ac_status=$? 1974 if test -s conftest.err; then 1975 grep -v '^ *+' conftest.err >conftest.er1 1976 cat conftest.er1 >&5 1977 mv -f conftest.er1 conftest.err 1978 fi 1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1980 test $ac_status = 0; } && { 1981 test -z "$ac_c_werror_flag" || 1982 test ! -s conftest.err 1983 } && test -s conftest$ac_exeext && { 1984 test "$cross_compiling" = yes || 1985 test -x conftest$ac_exeext 1986 }; then : 1987 ac_retval=0 1988else 1989 $as_echo "$as_me: failed program was:" >&5 1990sed 's/^/| /' conftest.$ac_ext >&5 1991 1992 ac_retval=1 1993fi 1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1996 # interfere with the next link command; also delete a directory that is 1997 # left behind by Apple's compiler. We do this before executing the actions. 1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2000 as_fn_set_status $ac_retval 2001 2002} # ac_fn_c_try_link 2003 2004# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2005# ------------------------------------------- 2006# Tests whether TYPE exists after having included INCLUDES, setting cache 2007# variable VAR accordingly. 2008ac_fn_c_check_type () 2009{ 2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2012$as_echo_n "checking for $2... " >&6; } 2013if eval \${$3+:} false; then : 2014 $as_echo_n "(cached) " >&6 2015else 2016 eval "$3=no" 2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2018/* end confdefs.h. */ 2019$4 2020int 2021main () 2022{ 2023if (sizeof ($2)) 2024 return 0; 2025 ; 2026 return 0; 2027} 2028_ACEOF 2029if ac_fn_c_try_compile "$LINENO"; then : 2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2031/* end confdefs.h. */ 2032$4 2033int 2034main () 2035{ 2036if (sizeof (($2))) 2037 return 0; 2038 ; 2039 return 0; 2040} 2041_ACEOF 2042if ac_fn_c_try_compile "$LINENO"; then : 2043 2044else 2045 eval "$3=yes" 2046fi 2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2048fi 2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2050fi 2051eval ac_res=\$$3 2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2053$as_echo "$ac_res" >&6; } 2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2055 2056} # ac_fn_c_check_type 2057 2058# ac_fn_c_check_func LINENO FUNC VAR 2059# ---------------------------------- 2060# Tests whether FUNC exists, setting the cache variable VAR accordingly 2061ac_fn_c_check_func () 2062{ 2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2065$as_echo_n "checking for $2... " >&6; } 2066if eval \${$3+:} false; then : 2067 $as_echo_n "(cached) " >&6 2068else 2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2070/* end confdefs.h. */ 2071/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2072 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2073#define $2 innocuous_$2 2074 2075/* System header to define __stub macros and hopefully few prototypes, 2076 which can conflict with char $2 (); below. 2077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2078 <limits.h> exists even on freestanding compilers. */ 2079 2080#ifdef __STDC__ 2081# include <limits.h> 2082#else 2083# include <assert.h> 2084#endif 2085 2086#undef $2 2087 2088/* Override any GCC internal prototype to avoid an error. 2089 Use char because int might match the return type of a GCC 2090 builtin and then its argument prototype would still apply. */ 2091#ifdef __cplusplus 2092extern "C" 2093#endif 2094char $2 (); 2095/* The GNU C library defines this for functions which it implements 2096 to always fail with ENOSYS. Some functions are actually named 2097 something starting with __ and the normal name is an alias. */ 2098#if defined __stub_$2 || defined __stub___$2 2099choke me 2100#endif 2101 2102int 2103main () 2104{ 2105return $2 (); 2106 ; 2107 return 0; 2108} 2109_ACEOF 2110if ac_fn_c_try_link "$LINENO"; then : 2111 eval "$3=yes" 2112else 2113 eval "$3=no" 2114fi 2115rm -f core conftest.err conftest.$ac_objext \ 2116 conftest$ac_exeext conftest.$ac_ext 2117fi 2118eval ac_res=\$$3 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2120$as_echo "$ac_res" >&6; } 2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2122 2123} # ac_fn_c_check_func 2124 2125# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2126# --------------------------------------------- 2127# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2128# accordingly. 2129ac_fn_c_check_decl () 2130{ 2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2132 as_decl_name=`echo $2|sed 's/ *(.*//'` 2133 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2135$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2136if eval \${$3+:} false; then : 2137 $as_echo_n "(cached) " >&6 2138else 2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2140/* end confdefs.h. */ 2141$4 2142int 2143main () 2144{ 2145#ifndef $as_decl_name 2146#ifdef __cplusplus 2147 (void) $as_decl_use; 2148#else 2149 (void) $as_decl_name; 2150#endif 2151#endif 2152 2153 ; 2154 return 0; 2155} 2156_ACEOF 2157if ac_fn_c_try_compile "$LINENO"; then : 2158 eval "$3=yes" 2159else 2160 eval "$3=no" 2161fi 2162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2163fi 2164eval ac_res=\$$3 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2166$as_echo "$ac_res" >&6; } 2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2168 2169} # ac_fn_c_check_decl 2170 2171# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2172# -------------------------------------------- 2173# Tries to find the compile-time value of EXPR in a program that includes 2174# INCLUDES, setting VAR accordingly. Returns whether the value could be 2175# computed 2176ac_fn_c_compute_int () 2177{ 2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2179 if test "$cross_compiling" = yes; then 2180 # Depending upon the size, compute the lo and hi bounds. 2181cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2182/* end confdefs.h. */ 2183$4 2184int 2185main () 2186{ 2187static int test_array [1 - 2 * !(($2) >= 0)]; 2188test_array [0] = 0; 2189return test_array [0]; 2190 2191 ; 2192 return 0; 2193} 2194_ACEOF 2195if ac_fn_c_try_compile "$LINENO"; then : 2196 ac_lo=0 ac_mid=0 2197 while :; do 2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2199/* end confdefs.h. */ 2200$4 2201int 2202main () 2203{ 2204static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2205test_array [0] = 0; 2206return test_array [0]; 2207 2208 ; 2209 return 0; 2210} 2211_ACEOF 2212if ac_fn_c_try_compile "$LINENO"; then : 2213 ac_hi=$ac_mid; break 2214else 2215 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2216 if test $ac_lo -le $ac_mid; then 2217 ac_lo= ac_hi= 2218 break 2219 fi 2220 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2221fi 2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2223 done 2224else 2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2226/* end confdefs.h. */ 2227$4 2228int 2229main () 2230{ 2231static int test_array [1 - 2 * !(($2) < 0)]; 2232test_array [0] = 0; 2233return test_array [0]; 2234 2235 ; 2236 return 0; 2237} 2238_ACEOF 2239if ac_fn_c_try_compile "$LINENO"; then : 2240 ac_hi=-1 ac_mid=-1 2241 while :; do 2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2243/* end confdefs.h. */ 2244$4 2245int 2246main () 2247{ 2248static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2249test_array [0] = 0; 2250return test_array [0]; 2251 2252 ; 2253 return 0; 2254} 2255_ACEOF 2256if ac_fn_c_try_compile "$LINENO"; then : 2257 ac_lo=$ac_mid; break 2258else 2259 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2260 if test $ac_mid -le $ac_hi; then 2261 ac_lo= ac_hi= 2262 break 2263 fi 2264 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2265fi 2266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2267 done 2268else 2269 ac_lo= ac_hi= 2270fi 2271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2272fi 2273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2274# Binary search between lo and hi bounds. 2275while test "x$ac_lo" != "x$ac_hi"; do 2276 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2278/* end confdefs.h. */ 2279$4 2280int 2281main () 2282{ 2283static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2284test_array [0] = 0; 2285return test_array [0]; 2286 2287 ; 2288 return 0; 2289} 2290_ACEOF 2291if ac_fn_c_try_compile "$LINENO"; then : 2292 ac_hi=$ac_mid 2293else 2294 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2295fi 2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2297done 2298case $ac_lo in #(( 2299?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2300'') ac_retval=1 ;; 2301esac 2302 else 2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2304/* end confdefs.h. */ 2305$4 2306static long int longval () { return $2; } 2307static unsigned long int ulongval () { return $2; } 2308#include <stdio.h> 2309#include <stdlib.h> 2310int 2311main () 2312{ 2313 2314 FILE *f = fopen ("conftest.val", "w"); 2315 if (! f) 2316 return 1; 2317 if (($2) < 0) 2318 { 2319 long int i = longval (); 2320 if (i != ($2)) 2321 return 1; 2322 fprintf (f, "%ld", i); 2323 } 2324 else 2325 { 2326 unsigned long int i = ulongval (); 2327 if (i != ($2)) 2328 return 1; 2329 fprintf (f, "%lu", i); 2330 } 2331 /* Do not output a trailing newline, as this causes \r\n confusion 2332 on some platforms. */ 2333 return ferror (f) || fclose (f) != 0; 2334 2335 ; 2336 return 0; 2337} 2338_ACEOF 2339if ac_fn_c_try_run "$LINENO"; then : 2340 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2341else 2342 ac_retval=1 2343fi 2344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2345 conftest.$ac_objext conftest.beam conftest.$ac_ext 2346rm -f conftest.val 2347 2348 fi 2349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2350 as_fn_set_status $ac_retval 2351 2352} # ac_fn_c_compute_int 2353 2354# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2355# ---------------------------------------------------- 2356# Tries to find if the field MEMBER exists in type AGGR, after including 2357# INCLUDES, setting cache variable VAR accordingly. 2358ac_fn_c_check_member () 2359{ 2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2362$as_echo_n "checking for $2.$3... " >&6; } 2363if eval \${$4+:} false; then : 2364 $as_echo_n "(cached) " >&6 2365else 2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2367/* end confdefs.h. */ 2368$5 2369int 2370main () 2371{ 2372static $2 ac_aggr; 2373if (ac_aggr.$3) 2374return 0; 2375 ; 2376 return 0; 2377} 2378_ACEOF 2379if ac_fn_c_try_compile "$LINENO"; then : 2380 eval "$4=yes" 2381else 2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2383/* end confdefs.h. */ 2384$5 2385int 2386main () 2387{ 2388static $2 ac_aggr; 2389if (sizeof ac_aggr.$3) 2390return 0; 2391 ; 2392 return 0; 2393} 2394_ACEOF 2395if ac_fn_c_try_compile "$LINENO"; then : 2396 eval "$4=yes" 2397else 2398 eval "$4=no" 2399fi 2400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2401fi 2402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2403fi 2404eval ac_res=\$$4 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2406$as_echo "$ac_res" >&6; } 2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2408 2409} # ac_fn_c_check_member 2410cat >config.log <<_ACEOF 2411This file contains any messages produced by compilers while 2412running configure, to aid debugging if configure makes a mistake. 2413
| 1709generated by GNU Autoconf 2.69 1710 1711Copyright (C) 2012 Free Software Foundation, Inc. 1712This configure script is free software; the Free Software Foundation 1713gives unlimited permission to copy, distribute and modify it. 1714_ACEOF 1715 exit 1716fi 1717 1718## ------------------------ ## 1719## Autoconf initialization. ## 1720## ------------------------ ## 1721 1722# ac_fn_c_try_compile LINENO 1723# -------------------------- 1724# Try to compile conftest.$ac_ext, and return whether this succeeded. 1725ac_fn_c_try_compile () 1726{ 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728 rm -f conftest.$ac_objext 1729 if { { ac_try="$ac_compile" 1730case "(($ac_try" in 1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1732 *) ac_try_echo=$ac_try;; 1733esac 1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1735$as_echo "$ac_try_echo"; } >&5 1736 (eval "$ac_compile") 2>conftest.err 1737 ac_status=$? 1738 if test -s conftest.err; then 1739 grep -v '^ *+' conftest.err >conftest.er1 1740 cat conftest.er1 >&5 1741 mv -f conftest.er1 conftest.err 1742 fi 1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1744 test $ac_status = 0; } && { 1745 test -z "$ac_c_werror_flag" || 1746 test ! -s conftest.err 1747 } && test -s conftest.$ac_objext; then : 1748 ac_retval=0 1749else 1750 $as_echo "$as_me: failed program was:" >&5 1751sed 's/^/| /' conftest.$ac_ext >&5 1752 1753 ac_retval=1 1754fi 1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1756 as_fn_set_status $ac_retval 1757 1758} # ac_fn_c_try_compile 1759 1760# ac_fn_c_try_cpp LINENO 1761# ---------------------- 1762# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1763ac_fn_c_try_cpp () 1764{ 1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1766 if { { ac_try="$ac_cpp conftest.$ac_ext" 1767case "(($ac_try" in 1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1769 *) ac_try_echo=$ac_try;; 1770esac 1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1772$as_echo "$ac_try_echo"; } >&5 1773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1774 ac_status=$? 1775 if test -s conftest.err; then 1776 grep -v '^ *+' conftest.err >conftest.er1 1777 cat conftest.er1 >&5 1778 mv -f conftest.er1 conftest.err 1779 fi 1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1781 test $ac_status = 0; } > conftest.i && { 1782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1783 test ! -s conftest.err 1784 }; then : 1785 ac_retval=0 1786else 1787 $as_echo "$as_me: failed program was:" >&5 1788sed 's/^/| /' conftest.$ac_ext >&5 1789 1790 ac_retval=1 1791fi 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1793 as_fn_set_status $ac_retval 1794 1795} # ac_fn_c_try_cpp 1796 1797# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1798# ------------------------------------------------------- 1799# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1800# the include files in INCLUDES and setting the cache variable VAR 1801# accordingly. 1802ac_fn_c_check_header_mongrel () 1803{ 1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1805 if eval \${$3+:} false; then : 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1807$as_echo_n "checking for $2... " >&6; } 1808if eval \${$3+:} false; then : 1809 $as_echo_n "(cached) " >&6 1810fi 1811eval ac_res=\$$3 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1813$as_echo "$ac_res" >&6; } 1814else 1815 # Is the header compilable? 1816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1817$as_echo_n "checking $2 usability... " >&6; } 1818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1819/* end confdefs.h. */ 1820$4 1821#include <$2> 1822_ACEOF 1823if ac_fn_c_try_compile "$LINENO"; then : 1824 ac_header_compiler=yes 1825else 1826 ac_header_compiler=no 1827fi 1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1830$as_echo "$ac_header_compiler" >&6; } 1831 1832# Is the header present? 1833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1834$as_echo_n "checking $2 presence... " >&6; } 1835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1836/* end confdefs.h. */ 1837#include <$2> 1838_ACEOF 1839if ac_fn_c_try_cpp "$LINENO"; then : 1840 ac_header_preproc=yes 1841else 1842 ac_header_preproc=no 1843fi 1844rm -f conftest.err conftest.i conftest.$ac_ext 1845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1846$as_echo "$ac_header_preproc" >&6; } 1847 1848# So? What about this header? 1849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1850 yes:no: ) 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1852$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1854$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1855 ;; 1856 no:yes:* ) 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1858$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1860$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1862$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1864$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1866$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1867( $as_echo "## ------------------------------------ ## 1868## Report this to http://bugs.ntp.org./ ## 1869## ------------------------------------ ##" 1870 ) | sed "s/^/$as_me: WARNING: /" >&2 1871 ;; 1872esac 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1874$as_echo_n "checking for $2... " >&6; } 1875if eval \${$3+:} false; then : 1876 $as_echo_n "(cached) " >&6 1877else 1878 eval "$3=\$ac_header_compiler" 1879fi 1880eval ac_res=\$$3 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1882$as_echo "$ac_res" >&6; } 1883fi 1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1885 1886} # ac_fn_c_check_header_mongrel 1887 1888# ac_fn_c_try_run LINENO 1889# ---------------------- 1890# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1891# that executables *can* be run. 1892ac_fn_c_try_run () 1893{ 1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1895 if { { ac_try="$ac_link" 1896case "(($ac_try" in 1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1898 *) ac_try_echo=$ac_try;; 1899esac 1900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1901$as_echo "$ac_try_echo"; } >&5 1902 (eval "$ac_link") 2>&5 1903 ac_status=$? 1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1905 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1906 { { case "(($ac_try" in 1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1908 *) ac_try_echo=$ac_try;; 1909esac 1910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1911$as_echo "$ac_try_echo"; } >&5 1912 (eval "$ac_try") 2>&5 1913 ac_status=$? 1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1915 test $ac_status = 0; }; }; then : 1916 ac_retval=0 1917else 1918 $as_echo "$as_me: program exited with status $ac_status" >&5 1919 $as_echo "$as_me: failed program was:" >&5 1920sed 's/^/| /' conftest.$ac_ext >&5 1921 1922 ac_retval=$ac_status 1923fi 1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1926 as_fn_set_status $ac_retval 1927 1928} # ac_fn_c_try_run 1929 1930# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1931# ------------------------------------------------------- 1932# Tests whether HEADER exists and can be compiled using the include files in 1933# INCLUDES, setting the cache variable VAR accordingly. 1934ac_fn_c_check_header_compile () 1935{ 1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1938$as_echo_n "checking for $2... " >&6; } 1939if eval \${$3+:} false; then : 1940 $as_echo_n "(cached) " >&6 1941else 1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944$4 1945#include <$2> 1946_ACEOF 1947if ac_fn_c_try_compile "$LINENO"; then : 1948 eval "$3=yes" 1949else 1950 eval "$3=no" 1951fi 1952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1953fi 1954eval ac_res=\$$3 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1956$as_echo "$ac_res" >&6; } 1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1958 1959} # ac_fn_c_check_header_compile 1960 1961# ac_fn_c_try_link LINENO 1962# ----------------------- 1963# Try to link conftest.$ac_ext, and return whether this succeeded. 1964ac_fn_c_try_link () 1965{ 1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1967 rm -f conftest.$ac_objext conftest$ac_exeext 1968 if { { ac_try="$ac_link" 1969case "(($ac_try" in 1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1971 *) ac_try_echo=$ac_try;; 1972esac 1973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1974$as_echo "$ac_try_echo"; } >&5 1975 (eval "$ac_link") 2>conftest.err 1976 ac_status=$? 1977 if test -s conftest.err; then 1978 grep -v '^ *+' conftest.err >conftest.er1 1979 cat conftest.er1 >&5 1980 mv -f conftest.er1 conftest.err 1981 fi 1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1983 test $ac_status = 0; } && { 1984 test -z "$ac_c_werror_flag" || 1985 test ! -s conftest.err 1986 } && test -s conftest$ac_exeext && { 1987 test "$cross_compiling" = yes || 1988 test -x conftest$ac_exeext 1989 }; then : 1990 ac_retval=0 1991else 1992 $as_echo "$as_me: failed program was:" >&5 1993sed 's/^/| /' conftest.$ac_ext >&5 1994 1995 ac_retval=1 1996fi 1997 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1998 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1999 # interfere with the next link command; also delete a directory that is 2000 # left behind by Apple's compiler. We do this before executing the actions. 2001 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2003 as_fn_set_status $ac_retval 2004 2005} # ac_fn_c_try_link 2006 2007# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2008# ------------------------------------------- 2009# Tests whether TYPE exists after having included INCLUDES, setting cache 2010# variable VAR accordingly. 2011ac_fn_c_check_type () 2012{ 2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2015$as_echo_n "checking for $2... " >&6; } 2016if eval \${$3+:} false; then : 2017 $as_echo_n "(cached) " >&6 2018else 2019 eval "$3=no" 2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2021/* end confdefs.h. */ 2022$4 2023int 2024main () 2025{ 2026if (sizeof ($2)) 2027 return 0; 2028 ; 2029 return 0; 2030} 2031_ACEOF 2032if ac_fn_c_try_compile "$LINENO"; then : 2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2034/* end confdefs.h. */ 2035$4 2036int 2037main () 2038{ 2039if (sizeof (($2))) 2040 return 0; 2041 ; 2042 return 0; 2043} 2044_ACEOF 2045if ac_fn_c_try_compile "$LINENO"; then : 2046 2047else 2048 eval "$3=yes" 2049fi 2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2051fi 2052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2053fi 2054eval ac_res=\$$3 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2056$as_echo "$ac_res" >&6; } 2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2058 2059} # ac_fn_c_check_type 2060 2061# ac_fn_c_check_func LINENO FUNC VAR 2062# ---------------------------------- 2063# Tests whether FUNC exists, setting the cache variable VAR accordingly 2064ac_fn_c_check_func () 2065{ 2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2068$as_echo_n "checking for $2... " >&6; } 2069if eval \${$3+:} false; then : 2070 $as_echo_n "(cached) " >&6 2071else 2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2073/* end confdefs.h. */ 2074/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2075 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2076#define $2 innocuous_$2 2077 2078/* System header to define __stub macros and hopefully few prototypes, 2079 which can conflict with char $2 (); below. 2080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2081 <limits.h> exists even on freestanding compilers. */ 2082 2083#ifdef __STDC__ 2084# include <limits.h> 2085#else 2086# include <assert.h> 2087#endif 2088 2089#undef $2 2090 2091/* Override any GCC internal prototype to avoid an error. 2092 Use char because int might match the return type of a GCC 2093 builtin and then its argument prototype would still apply. */ 2094#ifdef __cplusplus 2095extern "C" 2096#endif 2097char $2 (); 2098/* The GNU C library defines this for functions which it implements 2099 to always fail with ENOSYS. Some functions are actually named 2100 something starting with __ and the normal name is an alias. */ 2101#if defined __stub_$2 || defined __stub___$2 2102choke me 2103#endif 2104 2105int 2106main () 2107{ 2108return $2 (); 2109 ; 2110 return 0; 2111} 2112_ACEOF 2113if ac_fn_c_try_link "$LINENO"; then : 2114 eval "$3=yes" 2115else 2116 eval "$3=no" 2117fi 2118rm -f core conftest.err conftest.$ac_objext \ 2119 conftest$ac_exeext conftest.$ac_ext 2120fi 2121eval ac_res=\$$3 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2123$as_echo "$ac_res" >&6; } 2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2125 2126} # ac_fn_c_check_func 2127 2128# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2129# --------------------------------------------- 2130# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2131# accordingly. 2132ac_fn_c_check_decl () 2133{ 2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2135 as_decl_name=`echo $2|sed 's/ *(.*//'` 2136 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2138$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2139if eval \${$3+:} false; then : 2140 $as_echo_n "(cached) " >&6 2141else 2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2143/* end confdefs.h. */ 2144$4 2145int 2146main () 2147{ 2148#ifndef $as_decl_name 2149#ifdef __cplusplus 2150 (void) $as_decl_use; 2151#else 2152 (void) $as_decl_name; 2153#endif 2154#endif 2155 2156 ; 2157 return 0; 2158} 2159_ACEOF 2160if ac_fn_c_try_compile "$LINENO"; then : 2161 eval "$3=yes" 2162else 2163 eval "$3=no" 2164fi 2165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2166fi 2167eval ac_res=\$$3 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2169$as_echo "$ac_res" >&6; } 2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2171 2172} # ac_fn_c_check_decl 2173 2174# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2175# -------------------------------------------- 2176# Tries to find the compile-time value of EXPR in a program that includes 2177# INCLUDES, setting VAR accordingly. Returns whether the value could be 2178# computed 2179ac_fn_c_compute_int () 2180{ 2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2182 if test "$cross_compiling" = yes; then 2183 # Depending upon the size, compute the lo and hi bounds. 2184cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2185/* end confdefs.h. */ 2186$4 2187int 2188main () 2189{ 2190static int test_array [1 - 2 * !(($2) >= 0)]; 2191test_array [0] = 0; 2192return test_array [0]; 2193 2194 ; 2195 return 0; 2196} 2197_ACEOF 2198if ac_fn_c_try_compile "$LINENO"; then : 2199 ac_lo=0 ac_mid=0 2200 while :; do 2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2202/* end confdefs.h. */ 2203$4 2204int 2205main () 2206{ 2207static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2208test_array [0] = 0; 2209return test_array [0]; 2210 2211 ; 2212 return 0; 2213} 2214_ACEOF 2215if ac_fn_c_try_compile "$LINENO"; then : 2216 ac_hi=$ac_mid; break 2217else 2218 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2219 if test $ac_lo -le $ac_mid; then 2220 ac_lo= ac_hi= 2221 break 2222 fi 2223 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2224fi 2225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2226 done 2227else 2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2229/* end confdefs.h. */ 2230$4 2231int 2232main () 2233{ 2234static int test_array [1 - 2 * !(($2) < 0)]; 2235test_array [0] = 0; 2236return test_array [0]; 2237 2238 ; 2239 return 0; 2240} 2241_ACEOF 2242if ac_fn_c_try_compile "$LINENO"; then : 2243 ac_hi=-1 ac_mid=-1 2244 while :; do 2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2246/* end confdefs.h. */ 2247$4 2248int 2249main () 2250{ 2251static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2252test_array [0] = 0; 2253return test_array [0]; 2254 2255 ; 2256 return 0; 2257} 2258_ACEOF 2259if ac_fn_c_try_compile "$LINENO"; then : 2260 ac_lo=$ac_mid; break 2261else 2262 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2263 if test $ac_mid -le $ac_hi; then 2264 ac_lo= ac_hi= 2265 break 2266 fi 2267 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2268fi 2269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2270 done 2271else 2272 ac_lo= ac_hi= 2273fi 2274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2275fi 2276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2277# Binary search between lo and hi bounds. 2278while test "x$ac_lo" != "x$ac_hi"; do 2279 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2281/* end confdefs.h. */ 2282$4 2283int 2284main () 2285{ 2286static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2287test_array [0] = 0; 2288return test_array [0]; 2289 2290 ; 2291 return 0; 2292} 2293_ACEOF 2294if ac_fn_c_try_compile "$LINENO"; then : 2295 ac_hi=$ac_mid 2296else 2297 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2298fi 2299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2300done 2301case $ac_lo in #(( 2302?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2303'') ac_retval=1 ;; 2304esac 2305 else 2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2307/* end confdefs.h. */ 2308$4 2309static long int longval () { return $2; } 2310static unsigned long int ulongval () { return $2; } 2311#include <stdio.h> 2312#include <stdlib.h> 2313int 2314main () 2315{ 2316 2317 FILE *f = fopen ("conftest.val", "w"); 2318 if (! f) 2319 return 1; 2320 if (($2) < 0) 2321 { 2322 long int i = longval (); 2323 if (i != ($2)) 2324 return 1; 2325 fprintf (f, "%ld", i); 2326 } 2327 else 2328 { 2329 unsigned long int i = ulongval (); 2330 if (i != ($2)) 2331 return 1; 2332 fprintf (f, "%lu", i); 2333 } 2334 /* Do not output a trailing newline, as this causes \r\n confusion 2335 on some platforms. */ 2336 return ferror (f) || fclose (f) != 0; 2337 2338 ; 2339 return 0; 2340} 2341_ACEOF 2342if ac_fn_c_try_run "$LINENO"; then : 2343 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2344else 2345 ac_retval=1 2346fi 2347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2348 conftest.$ac_objext conftest.beam conftest.$ac_ext 2349rm -f conftest.val 2350 2351 fi 2352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2353 as_fn_set_status $ac_retval 2354 2355} # ac_fn_c_compute_int 2356 2357# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2358# ---------------------------------------------------- 2359# Tries to find if the field MEMBER exists in type AGGR, after including 2360# INCLUDES, setting cache variable VAR accordingly. 2361ac_fn_c_check_member () 2362{ 2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2365$as_echo_n "checking for $2.$3... " >&6; } 2366if eval \${$4+:} false; then : 2367 $as_echo_n "(cached) " >&6 2368else 2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2370/* end confdefs.h. */ 2371$5 2372int 2373main () 2374{ 2375static $2 ac_aggr; 2376if (ac_aggr.$3) 2377return 0; 2378 ; 2379 return 0; 2380} 2381_ACEOF 2382if ac_fn_c_try_compile "$LINENO"; then : 2383 eval "$4=yes" 2384else 2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2386/* end confdefs.h. */ 2387$5 2388int 2389main () 2390{ 2391static $2 ac_aggr; 2392if (sizeof ac_aggr.$3) 2393return 0; 2394 ; 2395 return 0; 2396} 2397_ACEOF 2398if ac_fn_c_try_compile "$LINENO"; then : 2399 eval "$4=yes" 2400else 2401 eval "$4=no" 2402fi 2403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2404fi 2405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2406fi 2407eval ac_res=\$$4 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2409$as_echo "$ac_res" >&6; } 2410 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2411 2412} # ac_fn_c_check_member 2413cat >config.log <<_ACEOF 2414This file contains any messages produced by compilers while 2415running configure, to aid debugging if configure makes a mistake. 2416
|
2414It was created by sntp $as_me 4.2.8p11, which was
| 2417It was created by sntp $as_me 4.2.8p12, which was
|
2415generated by GNU Autoconf 2.69. Invocation command line was 2416 2417 $ $0 $@ 2418 2419_ACEOF 2420exec 5>>config.log 2421{ 2422cat <<_ASUNAME 2423## --------- ## 2424## Platform. ## 2425## --------- ## 2426 2427hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2428uname -m = `(uname -m) 2>/dev/null || echo unknown` 2429uname -r = `(uname -r) 2>/dev/null || echo unknown` 2430uname -s = `(uname -s) 2>/dev/null || echo unknown` 2431uname -v = `(uname -v) 2>/dev/null || echo unknown` 2432 2433/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2434/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2435 2436/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2437/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2438/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2439/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2440/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2441/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2442/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2443 2444_ASUNAME 2445 2446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2447for as_dir in $PATH 2448do 2449 IFS=$as_save_IFS 2450 test -z "$as_dir" && as_dir=. 2451 $as_echo "PATH: $as_dir" 2452 done 2453IFS=$as_save_IFS 2454 2455} >&5 2456 2457cat >&5 <<_ACEOF 2458 2459 2460## ----------- ## 2461## Core tests. ## 2462## ----------- ## 2463 2464_ACEOF 2465 2466 2467# Keep a trace of the command line. 2468# Strip out --no-create and --no-recursion so they do not pile up. 2469# Strip out --silent because we don't want to record it for future runs. 2470# Also quote any args containing shell meta-characters. 2471# Make two passes to allow for proper duplicate-argument suppression. 2472ac_configure_args= 2473ac_configure_args0= 2474ac_configure_args1= 2475ac_must_keep_next=false 2476for ac_pass in 1 2 2477do 2478 for ac_arg 2479 do 2480 case $ac_arg in 2481 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2483 | -silent | --silent | --silen | --sile | --sil) 2484 continue ;; 2485 *\'*) 2486 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2487 esac 2488 case $ac_pass in 2489 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2490 2) 2491 as_fn_append ac_configure_args1 " '$ac_arg'" 2492 if test $ac_must_keep_next = true; then 2493 ac_must_keep_next=false # Got value, back to normal. 2494 else 2495 case $ac_arg in 2496 *=* | --config-cache | -C | -disable-* | --disable-* \ 2497 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2498 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2499 | -with-* | --with-* | -without-* | --without-* | --x) 2500 case "$ac_configure_args0 " in 2501 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2502 esac 2503 ;; 2504 -* ) ac_must_keep_next=true ;; 2505 esac 2506 fi 2507 as_fn_append ac_configure_args " '$ac_arg'" 2508 ;; 2509 esac 2510 done 2511done 2512{ ac_configure_args0=; unset ac_configure_args0;} 2513{ ac_configure_args1=; unset ac_configure_args1;} 2514 2515# When interrupted or exit'd, cleanup temporary files, and complete 2516# config.log. We remove comments because anyway the quotes in there 2517# would cause problems or look ugly. 2518# WARNING: Use '\'' to represent an apostrophe within the trap. 2519# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2520trap 'exit_status=$? 2521 # Save into config.log some information that might help in debugging. 2522 { 2523 echo 2524 2525 $as_echo "## ---------------- ## 2526## Cache variables. ## 2527## ---------------- ##" 2528 echo 2529 # The following way of writing the cache mishandles newlines in values, 2530( 2531 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2532 eval ac_val=\$$ac_var 2533 case $ac_val in #( 2534 *${as_nl}*) 2535 case $ac_var in #( 2536 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2537$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2538 esac 2539 case $ac_var in #( 2540 _ | IFS | as_nl) ;; #( 2541 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2542 *) { eval $ac_var=; unset $ac_var;} ;; 2543 esac ;; 2544 esac 2545 done 2546 (set) 2>&1 | 2547 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2548 *${as_nl}ac_space=\ *) 2549 sed -n \ 2550 "s/'\''/'\''\\\\'\'''\''/g; 2551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2552 ;; #( 2553 *) 2554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2555 ;; 2556 esac | 2557 sort 2558) 2559 echo 2560 2561 $as_echo "## ----------------- ## 2562## Output variables. ## 2563## ----------------- ##" 2564 echo 2565 for ac_var in $ac_subst_vars 2566 do 2567 eval ac_val=\$$ac_var 2568 case $ac_val in 2569 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2570 esac 2571 $as_echo "$ac_var='\''$ac_val'\''" 2572 done | sort 2573 echo 2574 2575 if test -n "$ac_subst_files"; then 2576 $as_echo "## ------------------- ## 2577## File substitutions. ## 2578## ------------------- ##" 2579 echo 2580 for ac_var in $ac_subst_files 2581 do 2582 eval ac_val=\$$ac_var 2583 case $ac_val in 2584 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2585 esac 2586 $as_echo "$ac_var='\''$ac_val'\''" 2587 done | sort 2588 echo 2589 fi 2590 2591 if test -s confdefs.h; then 2592 $as_echo "## ----------- ## 2593## confdefs.h. ## 2594## ----------- ##" 2595 echo 2596 cat confdefs.h 2597 echo 2598 fi 2599 test "$ac_signal" != 0 && 2600 $as_echo "$as_me: caught signal $ac_signal" 2601 $as_echo "$as_me: exit $exit_status" 2602 } >&5 2603 rm -f core *.core core.conftest.* && 2604 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2605 exit $exit_status 2606' 0 2607for ac_signal in 1 2 13 15; do 2608 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2609done 2610ac_signal=0 2611 2612# confdefs.h avoids OS command line length limits that DEFS can exceed. 2613rm -f -r conftest* confdefs.h 2614 2615$as_echo "/* confdefs.h */" > confdefs.h 2616 2617# Predefined preprocessor variables. 2618 2619cat >>confdefs.h <<_ACEOF 2620#define PACKAGE_NAME "$PACKAGE_NAME" 2621_ACEOF 2622 2623cat >>confdefs.h <<_ACEOF 2624#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2625_ACEOF 2626 2627cat >>confdefs.h <<_ACEOF 2628#define PACKAGE_VERSION "$PACKAGE_VERSION" 2629_ACEOF 2630 2631cat >>confdefs.h <<_ACEOF 2632#define PACKAGE_STRING "$PACKAGE_STRING" 2633_ACEOF 2634 2635cat >>confdefs.h <<_ACEOF 2636#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2637_ACEOF 2638 2639cat >>confdefs.h <<_ACEOF 2640#define PACKAGE_URL "$PACKAGE_URL" 2641_ACEOF 2642 2643 2644# Let the site file select an alternate cache file if it wants to. 2645# Prefer an explicitly selected file to automatically selected ones. 2646ac_site_file1=NONE 2647ac_site_file2=NONE 2648if test -n "$CONFIG_SITE"; then 2649 # We do not want a PATH search for config.site. 2650 case $CONFIG_SITE in #(( 2651 -*) ac_site_file1=./$CONFIG_SITE;; 2652 */*) ac_site_file1=$CONFIG_SITE;; 2653 *) ac_site_file1=./$CONFIG_SITE;; 2654 esac 2655elif test "x$prefix" != xNONE; then 2656 ac_site_file1=$prefix/share/config.site 2657 ac_site_file2=$prefix/etc/config.site 2658else 2659 ac_site_file1=$ac_default_prefix/share/config.site 2660 ac_site_file2=$ac_default_prefix/etc/config.site 2661fi 2662for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2663do 2664 test "x$ac_site_file" = xNONE && continue 2665 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2667$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2668 sed 's/^/| /' "$ac_site_file" >&5 2669 . "$ac_site_file" \ 2670 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2672as_fn_error $? "failed to load site script $ac_site_file 2673See \`config.log' for more details" "$LINENO" 5; } 2674 fi 2675done 2676 2677if test -r "$cache_file"; then 2678 # Some versions of bash will fail to source /dev/null (special files 2679 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2680 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2682$as_echo "$as_me: loading cache $cache_file" >&6;} 2683 case $cache_file in 2684 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2685 *) . "./$cache_file";; 2686 esac 2687 fi 2688else 2689 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2690$as_echo "$as_me: creating cache $cache_file" >&6;} 2691 >$cache_file 2692fi 2693 2694as_fn_append ac_header_list " stdarg.h" 2695# Check that the precious variables saved in the cache have kept the same 2696# value. 2697ac_cache_corrupted=false 2698for ac_var in $ac_precious_vars; do 2699 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2700 eval ac_new_set=\$ac_env_${ac_var}_set 2701 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2702 eval ac_new_val=\$ac_env_${ac_var}_value 2703 case $ac_old_set,$ac_new_set in 2704 set,) 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2706$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2707 ac_cache_corrupted=: ;; 2708 ,set) 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2710$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2711 ac_cache_corrupted=: ;; 2712 ,);; 2713 *) 2714 if test "x$ac_old_val" != "x$ac_new_val"; then 2715 # differences in whitespace do not lead to failure. 2716 ac_old_val_w=`echo x $ac_old_val` 2717 ac_new_val_w=`echo x $ac_new_val` 2718 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2720$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2721 ac_cache_corrupted=: 2722 else 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2724$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2725 eval $ac_var=\$ac_old_val 2726 fi 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2728$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2729 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2730$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2731 fi;; 2732 esac 2733 # Pass precious variables to config.status. 2734 if test "$ac_new_set" = set; then 2735 case $ac_new_val in 2736 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2737 *) ac_arg=$ac_var=$ac_new_val ;; 2738 esac 2739 case " $ac_configure_args " in 2740 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2741 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2742 esac 2743 fi 2744done 2745if $ac_cache_corrupted; then 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2749$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2750 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2751fi 2752## -------------------- ## 2753## Main body of script. ## 2754## -------------------- ## 2755 2756ac_ext=c 2757ac_cpp='$CPP $CPPFLAGS' 2758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2760ac_compiler_gnu=$ac_cv_c_compiler_gnu 2761 2762 2763 2764ac_aux_dir= 2765for ac_dir in libevent/build-aux "$srcdir"/libevent/build-aux; do 2766 if test -f "$ac_dir/install-sh"; then 2767 ac_aux_dir=$ac_dir 2768 ac_install_sh="$ac_aux_dir/install-sh -c" 2769 break 2770 elif test -f "$ac_dir/install.sh"; then 2771 ac_aux_dir=$ac_dir 2772 ac_install_sh="$ac_aux_dir/install.sh -c" 2773 break 2774 elif test -f "$ac_dir/shtool"; then 2775 ac_aux_dir=$ac_dir 2776 ac_install_sh="$ac_aux_dir/shtool install -c" 2777 break 2778 fi 2779done 2780if test -z "$ac_aux_dir"; then 2781 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libevent/build-aux \"$srcdir\"/libevent/build-aux" "$LINENO" 5 2782fi 2783 2784# These three variables are undocumented and unsupported, 2785# and are intended to be withdrawn in a future Autoconf release. 2786# They can cause serious problems if a builder's source tree is in a directory 2787# whose full name contains unusual characters. 2788ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2789ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2790ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2791 2792 2793ac_ext=c 2794ac_cpp='$CPP $CPPFLAGS' 2795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2797ac_compiler_gnu=$ac_cv_c_compiler_gnu 2798 2799 2800# Bump sntp_configure_cache_version for each change to configure.ac or 2801# .m4 files which invalidates cached values from previous configure 2802# runs. 2803# 2804# If the change affects cache variables used only by the main NTP 2805# configure.ac, then only its version number should be bumped, while 2806# the subdir configure.ac version numbers should be unchanged. The 2807# same is true for a test/variable that is used only by one subdir 2808# being changed incompatibly; only that subdir's cache version needs 2809# bumping. 2810# 2811# If a change affects variables shared by all NTP configure scripts, 2812# please bump the version numbers of each. If you are not sure, the 2813# safe choice is to bump all on any cache-invalidating change. 2814# 2815# In order to avoid the risk of version stamp collision between -stable 2816# and -dev branches, do not simply increment the version, instead use 2817# the date YYYYMMDD optionally with -HHMM if there is more than one 2818# bump in a day. 2819 2820sntp_configure_cache_version=20120806 2821 2822# When the version of config.cache and configure do not 2823# match, NTP_CACHEVERSION will flush the cache. 2824 2825 2826 2827 ntp_cache_flush=1 2828 2829 case "$ntp_cv_sntp_cache_version" in 2830 $sntp_configure_cache_version) 2831 # same version, good 2832 ntp_cache_flush=0 2833 ;; 2834 '') 2835 # No cache, predates ntp_cv_sntp_cache_version, or is empty. 2836 case "$cache_file" in 2837 /dev/null) 2838 ntp_cache_flush=0 2839 ;; 2840 *) 2841 case "$NTP_CACHEVERSION_PARENT" in 2842 '') 2843 # Do not clear the cache immediately after it is created 2844 # empty as it is noisy. Differentiate a newly-created 2845 # config.cache from one predating the cache version 2846 # mechanism by looking for the first cached variable set 2847 # by Autoconf 2848 case "$ac_cv_path_install" in 2849 '') 2850 # empty config.cache file 2851 ntp_cache_flush=0 2852 esac 2853 ;; 2854 *) 2855 # Parent configure just created cache from empty, 2856 # flushing would be counterproductive. 2857 ntp_cache_flush=0; 2858 ;; 2859 esac 2860 esac 2861 ;; 2862 *) 2863 # configure cache version mismatches config.cache version 2864 ;; 2865 esac 2866 2867 case "$ntp_cache_flush" in 2868 1) 2869 c_version="${ntp_cv_sntp_cache_version:-(no version found)}" 2870 2871 # Do we flush all variables or exclude others' version stamps? 2872 2873 case "$NTP_CACHEVERSION_PARENT" in 2874 '') 2875 # Clear all *_cv_* variables including our child subdirs' 2876 # ntp_cv_*_cache_version variables. This prevents subdir 2877 # configure scripts from noticing a version mismatch just 2878 # after the top configure in the invocation cleared and 2879 # recreated the cache. 2880 2881 c_varname_list=`set | 2882 sed -n -e 's/=.*$//' \ 2883 -e '/_cv_/p' 2884 ` 2885 ;; 2886 *) 2887 # This is not the top configure this particular invocation. 2888 # Clear all *_cv_* variables sparing the version stamps 2889 # of other configure scripts, so we don't trigger 2890 # useless repeated clearings. 2891 2892 c_varname_list=`set | 2893 sed -n -e 's/=.*$//' \ 2894 -e '/ntp_cv_.*_cache_version/d' \ 2895 -e '/_cv_/p' 2896 ` 2897 esac 2898 2899 for c_varname in $c_varname_list 2900 do 2901 { eval $c_varname=; unset $c_varname; } 2902 done 2903 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5 2905$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;} 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5 2907$as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;} 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5 2909$as_echo "$as_me: $cache_file version: $c_version" >&6;} 2910 { c_varname=; unset c_varname;} 2911 { c_varname_list=; unset c_varname_list;} 2912 { c_version=; unset c_version;} 2913 esac 2914 2915 { ntp_cache_flush=; unset ntp_cache_flush;} 2916 2917 # save configure version in config.cache for next time 2918 ntp_cv_sntp_cache_version="$sntp_configure_cache_version" 2919 2920 # let any subdir configure.ac NTP_CACHEVERSION invocations 2921 # know they are not the top level. 2922 NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT 2923 2924 2925am__api_version='1.15' 2926 2927# Find a good install program. We prefer a C program (faster), 2928# so one script is as good as another. But avoid the broken or 2929# incompatible versions: 2930# SysV /etc/install, /usr/sbin/install 2931# SunOS /usr/etc/install 2932# IRIX /sbin/install 2933# AIX /bin/install 2934# AmigaOS /C/install, which installs bootblocks on floppy discs 2935# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2936# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2937# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2938# OS/2's system install, which has a completely different semantic 2939# ./install, which can be erroneously created by make from ./install.sh. 2940# Reject install programs that cannot install multiple files. 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2942$as_echo_n "checking for a BSD-compatible install... " >&6; } 2943if test -z "$INSTALL"; then 2944if ${ac_cv_path_install+:} false; then : 2945 $as_echo_n "(cached) " >&6 2946else 2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2948for as_dir in $PATH 2949do 2950 IFS=$as_save_IFS 2951 test -z "$as_dir" && as_dir=. 2952 # Account for people who put trailing slashes in PATH elements. 2953case $as_dir/ in #(( 2954 ./ | .// | /[cC]/* | \ 2955 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2956 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2957 /usr/ucb/* ) ;; 2958 *) 2959 # OSF1 and SCO ODT 3.0 have their own names for install. 2960 # Don't use installbsd from OSF since it installs stuff as root 2961 # by default. 2962 for ac_prog in ginstall scoinst install; do 2963 for ac_exec_ext in '' $ac_executable_extensions; do 2964 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2965 if test $ac_prog = install && 2966 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2967 # AIX install. It has an incompatible calling convention. 2968 : 2969 elif test $ac_prog = install && 2970 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2971 # program-specific install script used by HP pwplus--don't use. 2972 : 2973 else 2974 rm -rf conftest.one conftest.two conftest.dir 2975 echo one > conftest.one 2976 echo two > conftest.two 2977 mkdir conftest.dir 2978 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2979 test -s conftest.one && test -s conftest.two && 2980 test -s conftest.dir/conftest.one && 2981 test -s conftest.dir/conftest.two 2982 then 2983 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2984 break 3 2985 fi 2986 fi 2987 fi 2988 done 2989 done 2990 ;; 2991esac 2992 2993 done 2994IFS=$as_save_IFS 2995 2996rm -rf conftest.one conftest.two conftest.dir 2997 2998fi 2999 if test "${ac_cv_path_install+set}" = set; then 3000 INSTALL=$ac_cv_path_install 3001 else 3002 # As a last resort, use the slow shell script. Don't cache a 3003 # value for INSTALL within a source directory, because that will 3004 # break other packages using the cache if that directory is 3005 # removed, or if the value is a relative name. 3006 INSTALL=$ac_install_sh 3007 fi 3008fi 3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3010$as_echo "$INSTALL" >&6; } 3011 3012# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3013# It thinks the first close brace ends the variable substitution. 3014test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3015 3016test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3017 3018test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3019 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3021$as_echo_n "checking whether build environment is sane... " >&6; } 3022# Reject unsafe characters in $srcdir or the absolute working directory 3023# name. Accept space and tab only in the latter. 3024am_lf=' 3025' 3026case `pwd` in 3027 *[\\\"\#\$\&\'\`$am_lf]*) 3028 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3029esac 3030case $srcdir in 3031 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3032 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3033esac 3034 3035# Do 'set' in a subshell so we don't clobber the current shell's 3036# arguments. Must try -L first in case configure is actually a 3037# symlink; some systems play weird games with the mod time of symlinks 3038# (eg FreeBSD returns the mod time of the symlink's containing 3039# directory). 3040if ( 3041 am_has_slept=no 3042 for am_try in 1 2; do 3043 echo "timestamp, slept: $am_has_slept" > conftest.file 3044 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3045 if test "$*" = "X"; then 3046 # -L didn't work. 3047 set X `ls -t "$srcdir/configure" conftest.file` 3048 fi 3049 if test "$*" != "X $srcdir/configure conftest.file" \ 3050 && test "$*" != "X conftest.file $srcdir/configure"; then 3051 3052 # If neither matched, then we have a broken ls. This can happen 3053 # if, for instance, CONFIG_SHELL is bash and it inherits a 3054 # broken ls alias from the environment. This has actually 3055 # happened. Such a system could not be considered "sane". 3056 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3057 alias in your environment" "$LINENO" 5 3058 fi 3059 if test "$2" = conftest.file || test $am_try -eq 2; then 3060 break 3061 fi 3062 # Just in case. 3063 sleep 1 3064 am_has_slept=yes 3065 done 3066 test "$2" = conftest.file 3067 ) 3068then 3069 # Ok. 3070 : 3071else 3072 as_fn_error $? "newly created file is older than distributed files! 3073Check your system clock" "$LINENO" 5 3074fi 3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3076$as_echo "yes" >&6; } 3077# If we didn't sleep, we still need to ensure time stamps of config.status and 3078# generated files are strictly newer. 3079am_sleep_pid= 3080if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3081 ( sleep 1 ) & 3082 am_sleep_pid=$! 3083fi 3084 3085rm -f conftest.file 3086 3087test "$program_prefix" != NONE && 3088 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3089# Use a double $ so make ignores it. 3090test "$program_suffix" != NONE && 3091 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3092# Double any \ or $. 3093# By default was `s,x,x', remove it if useless. 3094ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3095program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3096 3097# Expand $ac_aux_dir to an absolute path. 3098am_aux_dir=`cd "$ac_aux_dir" && pwd` 3099 3100if test x"${MISSING+set}" != xset; then 3101 case $am_aux_dir in 3102 *\ * | *\ *) 3103 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3104 *) 3105 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3106 esac 3107fi 3108# Use eval to expand $SHELL 3109if eval "$MISSING --is-lightweight"; then 3110 am_missing_run="$MISSING " 3111else 3112 am_missing_run= 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3114$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3115fi 3116 3117if test x"${install_sh+set}" != xset; then 3118 case $am_aux_dir in 3119 *\ * | *\ *) 3120 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3121 *) 3122 install_sh="\${SHELL} $am_aux_dir/install-sh" 3123 esac 3124fi 3125 3126# Installed binaries are usually stripped using 'strip' when the user 3127# run "make install-strip". However 'strip' might not be the right 3128# tool to use in cross-compilation environments, therefore Automake 3129# will honor the 'STRIP' environment variable to overrule this program. 3130if test "$cross_compiling" != no; then 3131 if test -n "$ac_tool_prefix"; then 3132 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3133set dummy ${ac_tool_prefix}strip; ac_word=$2 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3135$as_echo_n "checking for $ac_word... " >&6; } 3136if ${ac_cv_prog_STRIP+:} false; then : 3137 $as_echo_n "(cached) " >&6 3138else 3139 if test -n "$STRIP"; then 3140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3141else 3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3143for as_dir in $PATH 3144do 3145 IFS=$as_save_IFS 3146 test -z "$as_dir" && as_dir=. 3147 for ac_exec_ext in '' $ac_executable_extensions; do 3148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3149 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3151 break 2 3152 fi 3153done 3154 done 3155IFS=$as_save_IFS 3156 3157fi 3158fi 3159STRIP=$ac_cv_prog_STRIP 3160if test -n "$STRIP"; then 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3162$as_echo "$STRIP" >&6; } 3163else 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3165$as_echo "no" >&6; } 3166fi 3167 3168 3169fi 3170if test -z "$ac_cv_prog_STRIP"; then 3171 ac_ct_STRIP=$STRIP 3172 # Extract the first word of "strip", so it can be a program name with args. 3173set dummy strip; ac_word=$2 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3175$as_echo_n "checking for $ac_word... " >&6; } 3176if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3177 $as_echo_n "(cached) " >&6 3178else 3179 if test -n "$ac_ct_STRIP"; then 3180 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3181else 3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3183for as_dir in $PATH 3184do 3185 IFS=$as_save_IFS 3186 test -z "$as_dir" && as_dir=. 3187 for ac_exec_ext in '' $ac_executable_extensions; do 3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3189 ac_cv_prog_ac_ct_STRIP="strip" 3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3191 break 2 3192 fi 3193done 3194 done 3195IFS=$as_save_IFS 3196 3197fi 3198fi 3199ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3200if test -n "$ac_ct_STRIP"; then 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3202$as_echo "$ac_ct_STRIP" >&6; } 3203else 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3205$as_echo "no" >&6; } 3206fi 3207 3208 if test "x$ac_ct_STRIP" = x; then 3209 STRIP=":" 3210 else 3211 case $cross_compiling:$ac_tool_warned in 3212yes:) 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3215ac_tool_warned=yes ;; 3216esac 3217 STRIP=$ac_ct_STRIP 3218 fi 3219else 3220 STRIP="$ac_cv_prog_STRIP" 3221fi 3222 3223fi 3224INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3225 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3227$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3228if test -z "$MKDIR_P"; then 3229 if ${ac_cv_path_mkdir+:} false; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3233for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3234do 3235 IFS=$as_save_IFS 3236 test -z "$as_dir" && as_dir=. 3237 for ac_prog in mkdir gmkdir; do 3238 for ac_exec_ext in '' $ac_executable_extensions; do 3239 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3240 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3241 'mkdir (GNU coreutils) '* | \ 3242 'mkdir (coreutils) '* | \ 3243 'mkdir (fileutils) '4.1*) 3244 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3245 break 3;; 3246 esac 3247 done 3248 done 3249 done 3250IFS=$as_save_IFS 3251 3252fi 3253 3254 test -d ./--version && rmdir ./--version 3255 if test "${ac_cv_path_mkdir+set}" = set; then 3256 MKDIR_P="$ac_cv_path_mkdir -p" 3257 else 3258 # As a last resort, use the slow shell script. Don't cache a 3259 # value for MKDIR_P within a source directory, because that will 3260 # break other packages using the cache if that directory is 3261 # removed, or if the value is a relative name. 3262 MKDIR_P="$ac_install_sh -d" 3263 fi 3264fi 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3266$as_echo "$MKDIR_P" >&6; } 3267 3268for ac_prog in gawk mawk nawk awk 3269do 3270 # Extract the first word of "$ac_prog", so it can be a program name with args. 3271set dummy $ac_prog; ac_word=$2 3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3273$as_echo_n "checking for $ac_word... " >&6; } 3274if ${ac_cv_prog_AWK+:} false; then : 3275 $as_echo_n "(cached) " >&6 3276else 3277 if test -n "$AWK"; then 3278 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3279else 3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3281for as_dir in $PATH 3282do 3283 IFS=$as_save_IFS 3284 test -z "$as_dir" && as_dir=. 3285 for ac_exec_ext in '' $ac_executable_extensions; do 3286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3287 ac_cv_prog_AWK="$ac_prog" 3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3289 break 2 3290 fi 3291done 3292 done 3293IFS=$as_save_IFS 3294 3295fi 3296fi 3297AWK=$ac_cv_prog_AWK 3298if test -n "$AWK"; then 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3300$as_echo "$AWK" >&6; } 3301else 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3303$as_echo "no" >&6; } 3304fi 3305 3306 3307 test -n "$AWK" && break 3308done 3309 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3311$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3312set x ${MAKE-make} 3313ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3314if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3315 $as_echo_n "(cached) " >&6 3316else 3317 cat >conftest.make <<\_ACEOF 3318SHELL = /bin/sh 3319all: 3320 @echo '@@@%%%=$(MAKE)=@@@%%%' 3321_ACEOF 3322# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3323case `${MAKE-make} -f conftest.make 2>/dev/null` in 3324 *@@@%%%=?*=@@@%%%*) 3325 eval ac_cv_prog_make_${ac_make}_set=yes;; 3326 *) 3327 eval ac_cv_prog_make_${ac_make}_set=no;; 3328esac 3329rm -f conftest.make 3330fi 3331if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3333$as_echo "yes" >&6; } 3334 SET_MAKE= 3335else 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3337$as_echo "no" >&6; } 3338 SET_MAKE="MAKE=${MAKE-make}" 3339fi 3340 3341rm -rf .tst 2>/dev/null 3342mkdir .tst 2>/dev/null 3343if test -d .tst; then 3344 am__leading_dot=. 3345else 3346 am__leading_dot=_ 3347fi 3348rmdir .tst 2>/dev/null 3349 3350# Check whether --enable-silent-rules was given. 3351if test "${enable_silent_rules+set}" = set; then : 3352 enableval=$enable_silent_rules; 3353fi 3354 3355case $enable_silent_rules in # ((( 3356 yes) AM_DEFAULT_VERBOSITY=0;; 3357 no) AM_DEFAULT_VERBOSITY=1;; 3358 *) AM_DEFAULT_VERBOSITY=1;; 3359esac 3360am_make=${MAKE-make} 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3362$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3363if ${am_cv_make_support_nested_variables+:} false; then : 3364 $as_echo_n "(cached) " >&6 3365else 3366 if $as_echo 'TRUE=$(BAR$(V)) 3367BAR0=false 3368BAR1=true 3369V=1 3370am__doit: 3371 @$(TRUE) 3372.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3373 am_cv_make_support_nested_variables=yes 3374else 3375 am_cv_make_support_nested_variables=no 3376fi 3377fi 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3379$as_echo "$am_cv_make_support_nested_variables" >&6; } 3380if test $am_cv_make_support_nested_variables = yes; then 3381 AM_V='$(V)' 3382 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3383else 3384 AM_V=$AM_DEFAULT_VERBOSITY 3385 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3386fi 3387AM_BACKSLASH='\' 3388 3389if test "`cd $srcdir && pwd`" != "`pwd`"; then 3390 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3391 # is not polluted with repeated "-I." 3392 am__isrc=' -I$(srcdir)' 3393 # test to see if srcdir already configured 3394 if test -f $srcdir/config.status; then 3395 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3396 fi 3397fi 3398 3399# test whether we have cygpath 3400if test -z "$CYGPATH_W"; then 3401 if (cygpath --version) >/dev/null 2>/dev/null; then 3402 CYGPATH_W='cygpath -w' 3403 else 3404 CYGPATH_W=echo 3405 fi 3406fi 3407 3408 3409# Define the identity of the package. 3410 PACKAGE='sntp'
| 2418generated by GNU Autoconf 2.69. Invocation command line was 2419 2420 $ $0 $@ 2421 2422_ACEOF 2423exec 5>>config.log 2424{ 2425cat <<_ASUNAME 2426## --------- ## 2427## Platform. ## 2428## --------- ## 2429 2430hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2431uname -m = `(uname -m) 2>/dev/null || echo unknown` 2432uname -r = `(uname -r) 2>/dev/null || echo unknown` 2433uname -s = `(uname -s) 2>/dev/null || echo unknown` 2434uname -v = `(uname -v) 2>/dev/null || echo unknown` 2435 2436/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2437/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2438 2439/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2440/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2441/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2442/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2443/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2444/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2445/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2446 2447_ASUNAME 2448 2449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2450for as_dir in $PATH 2451do 2452 IFS=$as_save_IFS 2453 test -z "$as_dir" && as_dir=. 2454 $as_echo "PATH: $as_dir" 2455 done 2456IFS=$as_save_IFS 2457 2458} >&5 2459 2460cat >&5 <<_ACEOF 2461 2462 2463## ----------- ## 2464## Core tests. ## 2465## ----------- ## 2466 2467_ACEOF 2468 2469 2470# Keep a trace of the command line. 2471# Strip out --no-create and --no-recursion so they do not pile up. 2472# Strip out --silent because we don't want to record it for future runs. 2473# Also quote any args containing shell meta-characters. 2474# Make two passes to allow for proper duplicate-argument suppression. 2475ac_configure_args= 2476ac_configure_args0= 2477ac_configure_args1= 2478ac_must_keep_next=false 2479for ac_pass in 1 2 2480do 2481 for ac_arg 2482 do 2483 case $ac_arg in 2484 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2486 | -silent | --silent | --silen | --sile | --sil) 2487 continue ;; 2488 *\'*) 2489 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2490 esac 2491 case $ac_pass in 2492 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2493 2) 2494 as_fn_append ac_configure_args1 " '$ac_arg'" 2495 if test $ac_must_keep_next = true; then 2496 ac_must_keep_next=false # Got value, back to normal. 2497 else 2498 case $ac_arg in 2499 *=* | --config-cache | -C | -disable-* | --disable-* \ 2500 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2501 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2502 | -with-* | --with-* | -without-* | --without-* | --x) 2503 case "$ac_configure_args0 " in 2504 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2505 esac 2506 ;; 2507 -* ) ac_must_keep_next=true ;; 2508 esac 2509 fi 2510 as_fn_append ac_configure_args " '$ac_arg'" 2511 ;; 2512 esac 2513 done 2514done 2515{ ac_configure_args0=; unset ac_configure_args0;} 2516{ ac_configure_args1=; unset ac_configure_args1;} 2517 2518# When interrupted or exit'd, cleanup temporary files, and complete 2519# config.log. We remove comments because anyway the quotes in there 2520# would cause problems or look ugly. 2521# WARNING: Use '\'' to represent an apostrophe within the trap. 2522# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2523trap 'exit_status=$? 2524 # Save into config.log some information that might help in debugging. 2525 { 2526 echo 2527 2528 $as_echo "## ---------------- ## 2529## Cache variables. ## 2530## ---------------- ##" 2531 echo 2532 # The following way of writing the cache mishandles newlines in values, 2533( 2534 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2535 eval ac_val=\$$ac_var 2536 case $ac_val in #( 2537 *${as_nl}*) 2538 case $ac_var in #( 2539 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2540$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2541 esac 2542 case $ac_var in #( 2543 _ | IFS | as_nl) ;; #( 2544 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2545 *) { eval $ac_var=; unset $ac_var;} ;; 2546 esac ;; 2547 esac 2548 done 2549 (set) 2>&1 | 2550 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2551 *${as_nl}ac_space=\ *) 2552 sed -n \ 2553 "s/'\''/'\''\\\\'\'''\''/g; 2554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2555 ;; #( 2556 *) 2557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2558 ;; 2559 esac | 2560 sort 2561) 2562 echo 2563 2564 $as_echo "## ----------------- ## 2565## Output variables. ## 2566## ----------------- ##" 2567 echo 2568 for ac_var in $ac_subst_vars 2569 do 2570 eval ac_val=\$$ac_var 2571 case $ac_val in 2572 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2573 esac 2574 $as_echo "$ac_var='\''$ac_val'\''" 2575 done | sort 2576 echo 2577 2578 if test -n "$ac_subst_files"; then 2579 $as_echo "## ------------------- ## 2580## File substitutions. ## 2581## ------------------- ##" 2582 echo 2583 for ac_var in $ac_subst_files 2584 do 2585 eval ac_val=\$$ac_var 2586 case $ac_val in 2587 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2588 esac 2589 $as_echo "$ac_var='\''$ac_val'\''" 2590 done | sort 2591 echo 2592 fi 2593 2594 if test -s confdefs.h; then 2595 $as_echo "## ----------- ## 2596## confdefs.h. ## 2597## ----------- ##" 2598 echo 2599 cat confdefs.h 2600 echo 2601 fi 2602 test "$ac_signal" != 0 && 2603 $as_echo "$as_me: caught signal $ac_signal" 2604 $as_echo "$as_me: exit $exit_status" 2605 } >&5 2606 rm -f core *.core core.conftest.* && 2607 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2608 exit $exit_status 2609' 0 2610for ac_signal in 1 2 13 15; do 2611 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2612done 2613ac_signal=0 2614 2615# confdefs.h avoids OS command line length limits that DEFS can exceed. 2616rm -f -r conftest* confdefs.h 2617 2618$as_echo "/* confdefs.h */" > confdefs.h 2619 2620# Predefined preprocessor variables. 2621 2622cat >>confdefs.h <<_ACEOF 2623#define PACKAGE_NAME "$PACKAGE_NAME" 2624_ACEOF 2625 2626cat >>confdefs.h <<_ACEOF 2627#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2628_ACEOF 2629 2630cat >>confdefs.h <<_ACEOF 2631#define PACKAGE_VERSION "$PACKAGE_VERSION" 2632_ACEOF 2633 2634cat >>confdefs.h <<_ACEOF 2635#define PACKAGE_STRING "$PACKAGE_STRING" 2636_ACEOF 2637 2638cat >>confdefs.h <<_ACEOF 2639#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2640_ACEOF 2641 2642cat >>confdefs.h <<_ACEOF 2643#define PACKAGE_URL "$PACKAGE_URL" 2644_ACEOF 2645 2646 2647# Let the site file select an alternate cache file if it wants to. 2648# Prefer an explicitly selected file to automatically selected ones. 2649ac_site_file1=NONE 2650ac_site_file2=NONE 2651if test -n "$CONFIG_SITE"; then 2652 # We do not want a PATH search for config.site. 2653 case $CONFIG_SITE in #(( 2654 -*) ac_site_file1=./$CONFIG_SITE;; 2655 */*) ac_site_file1=$CONFIG_SITE;; 2656 *) ac_site_file1=./$CONFIG_SITE;; 2657 esac 2658elif test "x$prefix" != xNONE; then 2659 ac_site_file1=$prefix/share/config.site 2660 ac_site_file2=$prefix/etc/config.site 2661else 2662 ac_site_file1=$ac_default_prefix/share/config.site 2663 ac_site_file2=$ac_default_prefix/etc/config.site 2664fi 2665for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2666do 2667 test "x$ac_site_file" = xNONE && continue 2668 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2670$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2671 sed 's/^/| /' "$ac_site_file" >&5 2672 . "$ac_site_file" \ 2673 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2675as_fn_error $? "failed to load site script $ac_site_file 2676See \`config.log' for more details" "$LINENO" 5; } 2677 fi 2678done 2679 2680if test -r "$cache_file"; then 2681 # Some versions of bash will fail to source /dev/null (special files 2682 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2683 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2685$as_echo "$as_me: loading cache $cache_file" >&6;} 2686 case $cache_file in 2687 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2688 *) . "./$cache_file";; 2689 esac 2690 fi 2691else 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2693$as_echo "$as_me: creating cache $cache_file" >&6;} 2694 >$cache_file 2695fi 2696 2697as_fn_append ac_header_list " stdarg.h" 2698# Check that the precious variables saved in the cache have kept the same 2699# value. 2700ac_cache_corrupted=false 2701for ac_var in $ac_precious_vars; do 2702 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2703 eval ac_new_set=\$ac_env_${ac_var}_set 2704 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2705 eval ac_new_val=\$ac_env_${ac_var}_value 2706 case $ac_old_set,$ac_new_set in 2707 set,) 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2709$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2710 ac_cache_corrupted=: ;; 2711 ,set) 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2713$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2714 ac_cache_corrupted=: ;; 2715 ,);; 2716 *) 2717 if test "x$ac_old_val" != "x$ac_new_val"; then 2718 # differences in whitespace do not lead to failure. 2719 ac_old_val_w=`echo x $ac_old_val` 2720 ac_new_val_w=`echo x $ac_new_val` 2721 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2723$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2724 ac_cache_corrupted=: 2725 else 2726 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2727$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2728 eval $ac_var=\$ac_old_val 2729 fi 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2731$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2733$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2734 fi;; 2735 esac 2736 # Pass precious variables to config.status. 2737 if test "$ac_new_set" = set; then 2738 case $ac_new_val in 2739 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2740 *) ac_arg=$ac_var=$ac_new_val ;; 2741 esac 2742 case " $ac_configure_args " in 2743 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2744 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2745 esac 2746 fi 2747done 2748if $ac_cache_corrupted; then 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2752$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2753 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2754fi 2755## -------------------- ## 2756## Main body of script. ## 2757## -------------------- ## 2758 2759ac_ext=c 2760ac_cpp='$CPP $CPPFLAGS' 2761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2763ac_compiler_gnu=$ac_cv_c_compiler_gnu 2764 2765 2766 2767ac_aux_dir= 2768for ac_dir in libevent/build-aux "$srcdir"/libevent/build-aux; do 2769 if test -f "$ac_dir/install-sh"; then 2770 ac_aux_dir=$ac_dir 2771 ac_install_sh="$ac_aux_dir/install-sh -c" 2772 break 2773 elif test -f "$ac_dir/install.sh"; then 2774 ac_aux_dir=$ac_dir 2775 ac_install_sh="$ac_aux_dir/install.sh -c" 2776 break 2777 elif test -f "$ac_dir/shtool"; then 2778 ac_aux_dir=$ac_dir 2779 ac_install_sh="$ac_aux_dir/shtool install -c" 2780 break 2781 fi 2782done 2783if test -z "$ac_aux_dir"; then 2784 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libevent/build-aux \"$srcdir\"/libevent/build-aux" "$LINENO" 5 2785fi 2786 2787# These three variables are undocumented and unsupported, 2788# and are intended to be withdrawn in a future Autoconf release. 2789# They can cause serious problems if a builder's source tree is in a directory 2790# whose full name contains unusual characters. 2791ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2792ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2793ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2794 2795 2796ac_ext=c 2797ac_cpp='$CPP $CPPFLAGS' 2798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2800ac_compiler_gnu=$ac_cv_c_compiler_gnu 2801 2802 2803# Bump sntp_configure_cache_version for each change to configure.ac or 2804# .m4 files which invalidates cached values from previous configure 2805# runs. 2806# 2807# If the change affects cache variables used only by the main NTP 2808# configure.ac, then only its version number should be bumped, while 2809# the subdir configure.ac version numbers should be unchanged. The 2810# same is true for a test/variable that is used only by one subdir 2811# being changed incompatibly; only that subdir's cache version needs 2812# bumping. 2813# 2814# If a change affects variables shared by all NTP configure scripts, 2815# please bump the version numbers of each. If you are not sure, the 2816# safe choice is to bump all on any cache-invalidating change. 2817# 2818# In order to avoid the risk of version stamp collision between -stable 2819# and -dev branches, do not simply increment the version, instead use 2820# the date YYYYMMDD optionally with -HHMM if there is more than one 2821# bump in a day. 2822 2823sntp_configure_cache_version=20120806 2824 2825# When the version of config.cache and configure do not 2826# match, NTP_CACHEVERSION will flush the cache. 2827 2828 2829 2830 ntp_cache_flush=1 2831 2832 case "$ntp_cv_sntp_cache_version" in 2833 $sntp_configure_cache_version) 2834 # same version, good 2835 ntp_cache_flush=0 2836 ;; 2837 '') 2838 # No cache, predates ntp_cv_sntp_cache_version, or is empty. 2839 case "$cache_file" in 2840 /dev/null) 2841 ntp_cache_flush=0 2842 ;; 2843 *) 2844 case "$NTP_CACHEVERSION_PARENT" in 2845 '') 2846 # Do not clear the cache immediately after it is created 2847 # empty as it is noisy. Differentiate a newly-created 2848 # config.cache from one predating the cache version 2849 # mechanism by looking for the first cached variable set 2850 # by Autoconf 2851 case "$ac_cv_path_install" in 2852 '') 2853 # empty config.cache file 2854 ntp_cache_flush=0 2855 esac 2856 ;; 2857 *) 2858 # Parent configure just created cache from empty, 2859 # flushing would be counterproductive. 2860 ntp_cache_flush=0; 2861 ;; 2862 esac 2863 esac 2864 ;; 2865 *) 2866 # configure cache version mismatches config.cache version 2867 ;; 2868 esac 2869 2870 case "$ntp_cache_flush" in 2871 1) 2872 c_version="${ntp_cv_sntp_cache_version:-(no version found)}" 2873 2874 # Do we flush all variables or exclude others' version stamps? 2875 2876 case "$NTP_CACHEVERSION_PARENT" in 2877 '') 2878 # Clear all *_cv_* variables including our child subdirs' 2879 # ntp_cv_*_cache_version variables. This prevents subdir 2880 # configure scripts from noticing a version mismatch just 2881 # after the top configure in the invocation cleared and 2882 # recreated the cache. 2883 2884 c_varname_list=`set | 2885 sed -n -e 's/=.*$//' \ 2886 -e '/_cv_/p' 2887 ` 2888 ;; 2889 *) 2890 # This is not the top configure this particular invocation. 2891 # Clear all *_cv_* variables sparing the version stamps 2892 # of other configure scripts, so we don't trigger 2893 # useless repeated clearings. 2894 2895 c_varname_list=`set | 2896 sed -n -e 's/=.*$//' \ 2897 -e '/ntp_cv_.*_cache_version/d' \ 2898 -e '/_cv_/p' 2899 ` 2900 esac 2901 2902 for c_varname in $c_varname_list 2903 do 2904 { eval $c_varname=; unset $c_varname; } 2905 done 2906 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5 2908$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;} 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5 2910$as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;} 2911 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5 2912$as_echo "$as_me: $cache_file version: $c_version" >&6;} 2913 { c_varname=; unset c_varname;} 2914 { c_varname_list=; unset c_varname_list;} 2915 { c_version=; unset c_version;} 2916 esac 2917 2918 { ntp_cache_flush=; unset ntp_cache_flush;} 2919 2920 # save configure version in config.cache for next time 2921 ntp_cv_sntp_cache_version="$sntp_configure_cache_version" 2922 2923 # let any subdir configure.ac NTP_CACHEVERSION invocations 2924 # know they are not the top level. 2925 NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT 2926 2927 2928am__api_version='1.15' 2929 2930# Find a good install program. We prefer a C program (faster), 2931# so one script is as good as another. But avoid the broken or 2932# incompatible versions: 2933# SysV /etc/install, /usr/sbin/install 2934# SunOS /usr/etc/install 2935# IRIX /sbin/install 2936# AIX /bin/install 2937# AmigaOS /C/install, which installs bootblocks on floppy discs 2938# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2939# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2940# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2941# OS/2's system install, which has a completely different semantic 2942# ./install, which can be erroneously created by make from ./install.sh. 2943# Reject install programs that cannot install multiple files. 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2945$as_echo_n "checking for a BSD-compatible install... " >&6; } 2946if test -z "$INSTALL"; then 2947if ${ac_cv_path_install+:} false; then : 2948 $as_echo_n "(cached) " >&6 2949else 2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951for as_dir in $PATH 2952do 2953 IFS=$as_save_IFS 2954 test -z "$as_dir" && as_dir=. 2955 # Account for people who put trailing slashes in PATH elements. 2956case $as_dir/ in #(( 2957 ./ | .// | /[cC]/* | \ 2958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2959 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2960 /usr/ucb/* ) ;; 2961 *) 2962 # OSF1 and SCO ODT 3.0 have their own names for install. 2963 # Don't use installbsd from OSF since it installs stuff as root 2964 # by default. 2965 for ac_prog in ginstall scoinst install; do 2966 for ac_exec_ext in '' $ac_executable_extensions; do 2967 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2968 if test $ac_prog = install && 2969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2970 # AIX install. It has an incompatible calling convention. 2971 : 2972 elif test $ac_prog = install && 2973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2974 # program-specific install script used by HP pwplus--don't use. 2975 : 2976 else 2977 rm -rf conftest.one conftest.two conftest.dir 2978 echo one > conftest.one 2979 echo two > conftest.two 2980 mkdir conftest.dir 2981 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2982 test -s conftest.one && test -s conftest.two && 2983 test -s conftest.dir/conftest.one && 2984 test -s conftest.dir/conftest.two 2985 then 2986 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2987 break 3 2988 fi 2989 fi 2990 fi 2991 done 2992 done 2993 ;; 2994esac 2995 2996 done 2997IFS=$as_save_IFS 2998 2999rm -rf conftest.one conftest.two conftest.dir 3000 3001fi 3002 if test "${ac_cv_path_install+set}" = set; then 3003 INSTALL=$ac_cv_path_install 3004 else 3005 # As a last resort, use the slow shell script. Don't cache a 3006 # value for INSTALL within a source directory, because that will 3007 # break other packages using the cache if that directory is 3008 # removed, or if the value is a relative name. 3009 INSTALL=$ac_install_sh 3010 fi 3011fi 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3013$as_echo "$INSTALL" >&6; } 3014 3015# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3016# It thinks the first close brace ends the variable substitution. 3017test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3018 3019test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3020 3021test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3022 3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3024$as_echo_n "checking whether build environment is sane... " >&6; } 3025# Reject unsafe characters in $srcdir or the absolute working directory 3026# name. Accept space and tab only in the latter. 3027am_lf=' 3028' 3029case `pwd` in 3030 *[\\\"\#\$\&\'\`$am_lf]*) 3031 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3032esac 3033case $srcdir in 3034 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3035 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3036esac 3037 3038# Do 'set' in a subshell so we don't clobber the current shell's 3039# arguments. Must try -L first in case configure is actually a 3040# symlink; some systems play weird games with the mod time of symlinks 3041# (eg FreeBSD returns the mod time of the symlink's containing 3042# directory). 3043if ( 3044 am_has_slept=no 3045 for am_try in 1 2; do 3046 echo "timestamp, slept: $am_has_slept" > conftest.file 3047 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3048 if test "$*" = "X"; then 3049 # -L didn't work. 3050 set X `ls -t "$srcdir/configure" conftest.file` 3051 fi 3052 if test "$*" != "X $srcdir/configure conftest.file" \ 3053 && test "$*" != "X conftest.file $srcdir/configure"; then 3054 3055 # If neither matched, then we have a broken ls. This can happen 3056 # if, for instance, CONFIG_SHELL is bash and it inherits a 3057 # broken ls alias from the environment. This has actually 3058 # happened. Such a system could not be considered "sane". 3059 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3060 alias in your environment" "$LINENO" 5 3061 fi 3062 if test "$2" = conftest.file || test $am_try -eq 2; then 3063 break 3064 fi 3065 # Just in case. 3066 sleep 1 3067 am_has_slept=yes 3068 done 3069 test "$2" = conftest.file 3070 ) 3071then 3072 # Ok. 3073 : 3074else 3075 as_fn_error $? "newly created file is older than distributed files! 3076Check your system clock" "$LINENO" 5 3077fi 3078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3079$as_echo "yes" >&6; } 3080# If we didn't sleep, we still need to ensure time stamps of config.status and 3081# generated files are strictly newer. 3082am_sleep_pid= 3083if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3084 ( sleep 1 ) & 3085 am_sleep_pid=$! 3086fi 3087 3088rm -f conftest.file 3089 3090test "$program_prefix" != NONE && 3091 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3092# Use a double $ so make ignores it. 3093test "$program_suffix" != NONE && 3094 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3095# Double any \ or $. 3096# By default was `s,x,x', remove it if useless. 3097ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3098program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3099 3100# Expand $ac_aux_dir to an absolute path. 3101am_aux_dir=`cd "$ac_aux_dir" && pwd` 3102 3103if test x"${MISSING+set}" != xset; then 3104 case $am_aux_dir in 3105 *\ * | *\ *) 3106 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3107 *) 3108 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3109 esac 3110fi 3111# Use eval to expand $SHELL 3112if eval "$MISSING --is-lightweight"; then 3113 am_missing_run="$MISSING " 3114else 3115 am_missing_run= 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3117$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3118fi 3119 3120if test x"${install_sh+set}" != xset; then 3121 case $am_aux_dir in 3122 *\ * | *\ *) 3123 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3124 *) 3125 install_sh="\${SHELL} $am_aux_dir/install-sh" 3126 esac 3127fi 3128 3129# Installed binaries are usually stripped using 'strip' when the user 3130# run "make install-strip". However 'strip' might not be the right 3131# tool to use in cross-compilation environments, therefore Automake 3132# will honor the 'STRIP' environment variable to overrule this program. 3133if test "$cross_compiling" != no; then 3134 if test -n "$ac_tool_prefix"; then 3135 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3136set dummy ${ac_tool_prefix}strip; ac_word=$2 3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3138$as_echo_n "checking for $ac_word... " >&6; } 3139if ${ac_cv_prog_STRIP+:} false; then : 3140 $as_echo_n "(cached) " >&6 3141else 3142 if test -n "$STRIP"; then 3143 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3144else 3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3146for as_dir in $PATH 3147do 3148 IFS=$as_save_IFS 3149 test -z "$as_dir" && as_dir=. 3150 for ac_exec_ext in '' $ac_executable_extensions; do 3151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3152 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3154 break 2 3155 fi 3156done 3157 done 3158IFS=$as_save_IFS 3159 3160fi 3161fi 3162STRIP=$ac_cv_prog_STRIP 3163if test -n "$STRIP"; then 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3165$as_echo "$STRIP" >&6; } 3166else 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3168$as_echo "no" >&6; } 3169fi 3170 3171 3172fi 3173if test -z "$ac_cv_prog_STRIP"; then 3174 ac_ct_STRIP=$STRIP 3175 # Extract the first word of "strip", so it can be a program name with args. 3176set dummy strip; ac_word=$2 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3178$as_echo_n "checking for $ac_word... " >&6; } 3179if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3180 $as_echo_n "(cached) " >&6 3181else 3182 if test -n "$ac_ct_STRIP"; then 3183 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3184else 3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3186for as_dir in $PATH 3187do 3188 IFS=$as_save_IFS 3189 test -z "$as_dir" && as_dir=. 3190 for ac_exec_ext in '' $ac_executable_extensions; do 3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3192 ac_cv_prog_ac_ct_STRIP="strip" 3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3194 break 2 3195 fi 3196done 3197 done 3198IFS=$as_save_IFS 3199 3200fi 3201fi 3202ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3203if test -n "$ac_ct_STRIP"; then 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3205$as_echo "$ac_ct_STRIP" >&6; } 3206else 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3208$as_echo "no" >&6; } 3209fi 3210 3211 if test "x$ac_ct_STRIP" = x; then 3212 STRIP=":" 3213 else 3214 case $cross_compiling:$ac_tool_warned in 3215yes:) 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3218ac_tool_warned=yes ;; 3219esac 3220 STRIP=$ac_ct_STRIP 3221 fi 3222else 3223 STRIP="$ac_cv_prog_STRIP" 3224fi 3225 3226fi 3227INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3228 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3230$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3231if test -z "$MKDIR_P"; then 3232 if ${ac_cv_path_mkdir+:} false; then : 3233 $as_echo_n "(cached) " >&6 3234else 3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3236for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3237do 3238 IFS=$as_save_IFS 3239 test -z "$as_dir" && as_dir=. 3240 for ac_prog in mkdir gmkdir; do 3241 for ac_exec_ext in '' $ac_executable_extensions; do 3242 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3243 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3244 'mkdir (GNU coreutils) '* | \ 3245 'mkdir (coreutils) '* | \ 3246 'mkdir (fileutils) '4.1*) 3247 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3248 break 3;; 3249 esac 3250 done 3251 done 3252 done 3253IFS=$as_save_IFS 3254 3255fi 3256 3257 test -d ./--version && rmdir ./--version 3258 if test "${ac_cv_path_mkdir+set}" = set; then 3259 MKDIR_P="$ac_cv_path_mkdir -p" 3260 else 3261 # As a last resort, use the slow shell script. Don't cache a 3262 # value for MKDIR_P within a source directory, because that will 3263 # break other packages using the cache if that directory is 3264 # removed, or if the value is a relative name. 3265 MKDIR_P="$ac_install_sh -d" 3266 fi 3267fi 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3269$as_echo "$MKDIR_P" >&6; } 3270 3271for ac_prog in gawk mawk nawk awk 3272do 3273 # Extract the first word of "$ac_prog", so it can be a program name with args. 3274set dummy $ac_prog; ac_word=$2 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3276$as_echo_n "checking for $ac_word... " >&6; } 3277if ${ac_cv_prog_AWK+:} false; then : 3278 $as_echo_n "(cached) " >&6 3279else 3280 if test -n "$AWK"; then 3281 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3282else 3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3284for as_dir in $PATH 3285do 3286 IFS=$as_save_IFS 3287 test -z "$as_dir" && as_dir=. 3288 for ac_exec_ext in '' $ac_executable_extensions; do 3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3290 ac_cv_prog_AWK="$ac_prog" 3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3292 break 2 3293 fi 3294done 3295 done 3296IFS=$as_save_IFS 3297 3298fi 3299fi 3300AWK=$ac_cv_prog_AWK 3301if test -n "$AWK"; then 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3303$as_echo "$AWK" >&6; } 3304else 3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3306$as_echo "no" >&6; } 3307fi 3308 3309 3310 test -n "$AWK" && break 3311done 3312 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3314$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3315set x ${MAKE-make} 3316ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3317if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3318 $as_echo_n "(cached) " >&6 3319else 3320 cat >conftest.make <<\_ACEOF 3321SHELL = /bin/sh 3322all: 3323 @echo '@@@%%%=$(MAKE)=@@@%%%' 3324_ACEOF 3325# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3326case `${MAKE-make} -f conftest.make 2>/dev/null` in 3327 *@@@%%%=?*=@@@%%%*) 3328 eval ac_cv_prog_make_${ac_make}_set=yes;; 3329 *) 3330 eval ac_cv_prog_make_${ac_make}_set=no;; 3331esac 3332rm -f conftest.make 3333fi 3334if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3336$as_echo "yes" >&6; } 3337 SET_MAKE= 3338else 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3340$as_echo "no" >&6; } 3341 SET_MAKE="MAKE=${MAKE-make}" 3342fi 3343 3344rm -rf .tst 2>/dev/null 3345mkdir .tst 2>/dev/null 3346if test -d .tst; then 3347 am__leading_dot=. 3348else 3349 am__leading_dot=_ 3350fi 3351rmdir .tst 2>/dev/null 3352 3353# Check whether --enable-silent-rules was given. 3354if test "${enable_silent_rules+set}" = set; then : 3355 enableval=$enable_silent_rules; 3356fi 3357 3358case $enable_silent_rules in # ((( 3359 yes) AM_DEFAULT_VERBOSITY=0;; 3360 no) AM_DEFAULT_VERBOSITY=1;; 3361 *) AM_DEFAULT_VERBOSITY=1;; 3362esac 3363am_make=${MAKE-make} 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3365$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3366if ${am_cv_make_support_nested_variables+:} false; then : 3367 $as_echo_n "(cached) " >&6 3368else 3369 if $as_echo 'TRUE=$(BAR$(V)) 3370BAR0=false 3371BAR1=true 3372V=1 3373am__doit: 3374 @$(TRUE) 3375.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3376 am_cv_make_support_nested_variables=yes 3377else 3378 am_cv_make_support_nested_variables=no 3379fi 3380fi 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3382$as_echo "$am_cv_make_support_nested_variables" >&6; } 3383if test $am_cv_make_support_nested_variables = yes; then 3384 AM_V='$(V)' 3385 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3386else 3387 AM_V=$AM_DEFAULT_VERBOSITY 3388 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3389fi 3390AM_BACKSLASH='\' 3391 3392if test "`cd $srcdir && pwd`" != "`pwd`"; then 3393 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3394 # is not polluted with repeated "-I." 3395 am__isrc=' -I$(srcdir)' 3396 # test to see if srcdir already configured 3397 if test -f $srcdir/config.status; then 3398 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3399 fi 3400fi 3401 3402# test whether we have cygpath 3403if test -z "$CYGPATH_W"; then 3404 if (cygpath --version) >/dev/null 2>/dev/null; then 3405 CYGPATH_W='cygpath -w' 3406 else 3407 CYGPATH_W=echo 3408 fi 3409fi 3410 3411 3412# Define the identity of the package. 3413 PACKAGE='sntp'
|
3411 VERSION='4.2.8p11'
| 3414 VERSION='4.2.8p12'
|
3412 3413 3414cat >>confdefs.h <<_ACEOF 3415#define PACKAGE "$PACKAGE" 3416_ACEOF 3417 3418 3419cat >>confdefs.h <<_ACEOF 3420#define VERSION "$VERSION" 3421_ACEOF 3422 3423# Some tools Automake needs. 3424 3425ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3426 3427 3428AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3429 3430 3431AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3432 3433 3434AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3435 3436 3437MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3438 3439# For better backward compatibility. To be removed once Automake 1.9.x 3440# dies out for good. For more background, see: 3441# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3442# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3443mkdir_p='$(MKDIR_P)' 3444 3445# We need awk for the "check" target (and possibly the TAP driver). The 3446# system "awk" is bad on some platforms. 3447# Always define AMTAR for backward compatibility. Yes, it's still used 3448# in the wild :-( We should find a proper way to deprecate it ... 3449AMTAR='$${TAR-tar}' 3450 3451 3452# We'll loop over all known methods to create a tar archive until one works. 3453_am_tools='gnutar pax cpio none' 3454 3455am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3456 3457 3458 3459 3460 3461 3462# POSIX will say in a future version that running "rm -f" with no argument 3463# is OK; and we want to be able to make that assumption in our Makefile 3464# recipes. So use an aggressive probe to check that the usage we want is 3465# actually supported "in the wild" to an acceptable degree. 3466# See automake bug#10828. 3467# To make any issue more visible, cause the running configure to be aborted 3468# by default if the 'rm' program in use doesn't match our expectations; the 3469# user can still override this though. 3470if rm -f && rm -fr && rm -rf; then : OK; else 3471 cat >&2 <<'END' 3472Oops! 3473 3474Your 'rm' program seems unable to run without file operands specified 3475on the command line, even when the '-f' option is present. This is contrary 3476to the behaviour of most rm programs out there, and not conforming with 3477the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3478 3479Please tell bug-automake@gnu.org about your system, including the value 3480of your $PATH and any error possibly output before this message. This 3481can help us improve future automake versions. 3482 3483END 3484 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3485 echo 'Configuration will proceed anyway, since you have set the' >&2 3486 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3487 echo >&2 3488 else 3489 cat >&2 <<'END' 3490Aborting the configuration process, to ensure you take notice of the issue. 3491 3492You can download and install GNU coreutils to get an 'rm' implementation 3493that behaves properly: <http://www.gnu.org/software/coreutils/>. 3494 3495If you want to complete the configuration process using your problematic 3496'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3497to "yes", and re-run configure. 3498 3499END 3500 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3501 fi 3502fi 3503 3504# Check whether --enable-silent-rules was given. 3505if test "${enable_silent_rules+set}" = set; then : 3506 enableval=$enable_silent_rules; 3507fi 3508 3509case $enable_silent_rules in # ((( 3510 yes) AM_DEFAULT_VERBOSITY=0;; 3511 no) AM_DEFAULT_VERBOSITY=1;; 3512 *) AM_DEFAULT_VERBOSITY=0;; 3513esac 3514am_make=${MAKE-make} 3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3516$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3517if ${am_cv_make_support_nested_variables+:} false; then : 3518 $as_echo_n "(cached) " >&6 3519else 3520 if $as_echo 'TRUE=$(BAR$(V)) 3521BAR0=false 3522BAR1=true 3523V=1 3524am__doit: 3525 @$(TRUE) 3526.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3527 am_cv_make_support_nested_variables=yes 3528else 3529 am_cv_make_support_nested_variables=no 3530fi 3531fi 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3533$as_echo "$am_cv_make_support_nested_variables" >&6; } 3534if test $am_cv_make_support_nested_variables = yes; then 3535 AM_V='$(V)' 3536 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3537else 3538 AM_V=$AM_DEFAULT_VERBOSITY 3539 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3540fi 3541AM_BACKSLASH='\' 3542 3543 3544# Make sure we can run config.sub. 3545$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3546 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3547 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3549$as_echo_n "checking build system type... " >&6; } 3550if ${ac_cv_build+:} false; then : 3551 $as_echo_n "(cached) " >&6 3552else 3553 ac_build_alias=$build_alias 3554test "x$ac_build_alias" = x && 3555 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3556test "x$ac_build_alias" = x && 3557 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3558ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3559 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3560 3561fi 3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3563$as_echo "$ac_cv_build" >&6; } 3564case $ac_cv_build in 3565*-*-*) ;; 3566*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3567esac 3568build=$ac_cv_build 3569ac_save_IFS=$IFS; IFS='-' 3570set x $ac_cv_build 3571shift 3572build_cpu=$1 3573build_vendor=$2 3574shift; shift 3575# Remember, the first character of IFS is used to create $*, 3576# except with old shells: 3577build_os=$* 3578IFS=$ac_save_IFS 3579case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3580 3581 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3583$as_echo_n "checking host system type... " >&6; } 3584if ${ac_cv_host+:} false; then : 3585 $as_echo_n "(cached) " >&6 3586else 3587 if test "x$host_alias" = x; then 3588 ac_cv_host=$ac_cv_build 3589else 3590 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3591 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3592fi 3593 3594fi 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3596$as_echo "$ac_cv_host" >&6; } 3597case $ac_cv_host in 3598*-*-*) ;; 3599*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3600esac 3601host=$ac_cv_host 3602ac_save_IFS=$IFS; IFS='-' 3603set x $ac_cv_host 3604shift 3605host_cpu=$1 3606host_vendor=$2 3607shift; shift 3608# Remember, the first character of IFS is used to create $*, 3609# except with old shells: 3610host_os=$* 3611IFS=$ac_save_IFS 3612case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3613 3614 3615 3616cat >>confdefs.h <<_ACEOF 3617#define STR_SYSTEM "$host" 3618_ACEOF 3619 3620ac_config_headers="$ac_config_headers config.h" 3621 3622 3623DEPDIR="${am__leading_dot}deps" 3624 3625ac_config_commands="$ac_config_commands depfiles" 3626 3627 3628am_make=${MAKE-make} 3629cat > confinc << 'END' 3630am__doit: 3631 @echo this is the am__doit target 3632.PHONY: am__doit 3633END 3634# If we don't find an include directive, just comment out the code. 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3636$as_echo_n "checking for style of include used by $am_make... " >&6; } 3637am__include="#" 3638am__quote= 3639_am_result=none 3640# First try GNU make style include. 3641echo "include confinc" > confmf 3642# Ignore all kinds of additional output from 'make'. 3643case `$am_make -s -f confmf 2> /dev/null` in #( 3644*the\ am__doit\ target*) 3645 am__include=include 3646 am__quote= 3647 _am_result=GNU 3648 ;; 3649esac 3650# Now try BSD make style include. 3651if test "$am__include" = "#"; then 3652 echo '.include "confinc"' > confmf 3653 case `$am_make -s -f confmf 2> /dev/null` in #( 3654 *the\ am__doit\ target*) 3655 am__include=.include 3656 am__quote="\"" 3657 _am_result=BSD 3658 ;; 3659 esac 3660fi 3661 3662 3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3664$as_echo "$_am_result" >&6; } 3665rm -f confinc confmf 3666 3667# Check whether --enable-dependency-tracking was given. 3668if test "${enable_dependency_tracking+set}" = set; then : 3669 enableval=$enable_dependency_tracking; 3670fi 3671 3672if test "x$enable_dependency_tracking" != xno; then 3673 am_depcomp="$ac_aux_dir/depcomp" 3674 AMDEPBACKSLASH='\' 3675 am__nodep='_no' 3676fi 3677 if test "x$enable_dependency_tracking" != xno; then 3678 AMDEP_TRUE= 3679 AMDEP_FALSE='#' 3680else 3681 AMDEP_TRUE='#' 3682 AMDEP_FALSE= 3683fi 3684 3685 3686 3687case "$build" in 3688 *-*-freebsd1?.*) 3689 cclist=cc 3690 ;; 3691 *) 3692 cclist="cc gcc" 3693 ;; 3694esac 3695 3696 3697#AC_USE_SYSTEM_EXTENSIONS 3698 3699ac_ext=c 3700ac_cpp='$CPP $CPPFLAGS' 3701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3703ac_compiler_gnu=$ac_cv_c_compiler_gnu 3704if test -n "$ac_tool_prefix"; then 3705 for ac_prog in $cclist 3706 do 3707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3708set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3710$as_echo_n "checking for $ac_word... " >&6; } 3711if ${ac_cv_prog_CC+:} false; then : 3712 $as_echo_n "(cached) " >&6 3713else 3714 if test -n "$CC"; then 3715 ac_cv_prog_CC="$CC" # Let the user override the test. 3716else 3717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3718for as_dir in $PATH 3719do 3720 IFS=$as_save_IFS 3721 test -z "$as_dir" && as_dir=. 3722 for ac_exec_ext in '' $ac_executable_extensions; do 3723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3726 break 2 3727 fi 3728done 3729 done 3730IFS=$as_save_IFS 3731 3732fi 3733fi 3734CC=$ac_cv_prog_CC 3735if test -n "$CC"; then 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3737$as_echo "$CC" >&6; } 3738else 3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3740$as_echo "no" >&6; } 3741fi 3742 3743 3744 test -n "$CC" && break 3745 done 3746fi 3747if test -z "$CC"; then 3748 ac_ct_CC=$CC 3749 for ac_prog in $cclist 3750do 3751 # Extract the first word of "$ac_prog", so it can be a program name with args. 3752set dummy $ac_prog; ac_word=$2 3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3754$as_echo_n "checking for $ac_word... " >&6; } 3755if ${ac_cv_prog_ac_ct_CC+:} false; then : 3756 $as_echo_n "(cached) " >&6 3757else 3758 if test -n "$ac_ct_CC"; then 3759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3760else 3761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3762for as_dir in $PATH 3763do 3764 IFS=$as_save_IFS 3765 test -z "$as_dir" && as_dir=. 3766 for ac_exec_ext in '' $ac_executable_extensions; do 3767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3768 ac_cv_prog_ac_ct_CC="$ac_prog" 3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3770 break 2 3771 fi 3772done 3773 done 3774IFS=$as_save_IFS 3775 3776fi 3777fi 3778ac_ct_CC=$ac_cv_prog_ac_ct_CC 3779if test -n "$ac_ct_CC"; then 3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3781$as_echo "$ac_ct_CC" >&6; } 3782else 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3784$as_echo "no" >&6; } 3785fi 3786 3787 3788 test -n "$ac_ct_CC" && break 3789done 3790 3791 if test "x$ac_ct_CC" = x; then 3792 CC="" 3793 else 3794 case $cross_compiling:$ac_tool_warned in 3795yes:) 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3798ac_tool_warned=yes ;; 3799esac 3800 CC=$ac_ct_CC 3801 fi 3802fi 3803 3804 3805test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3807as_fn_error $? "no acceptable C compiler found in \$PATH 3808See \`config.log' for more details" "$LINENO" 5; } 3809 3810# Provide some information about the compiler. 3811$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3812set X $ac_compile 3813ac_compiler=$2 3814for ac_option in --version -v -V -qversion; do 3815 { { ac_try="$ac_compiler $ac_option >&5" 3816case "(($ac_try" in 3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3818 *) ac_try_echo=$ac_try;; 3819esac 3820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3821$as_echo "$ac_try_echo"; } >&5 3822 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3823 ac_status=$? 3824 if test -s conftest.err; then 3825 sed '10a\ 3826... rest of stderr output deleted ... 3827 10q' conftest.err >conftest.er1 3828 cat conftest.er1 >&5 3829 fi 3830 rm -f conftest.er1 conftest.err 3831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3832 test $ac_status = 0; } 3833done 3834 3835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3836/* end confdefs.h. */ 3837 3838int 3839main () 3840{ 3841 3842 ; 3843 return 0; 3844} 3845_ACEOF 3846ac_clean_files_save=$ac_clean_files 3847ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3848# Try to create an executable without -o first, disregard a.out. 3849# It will help us diagnose broken compilers, and finding out an intuition 3850# of exeext. 3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3852$as_echo_n "checking whether the C compiler works... " >&6; } 3853ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3854 3855# The possible output files: 3856ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3857 3858ac_rmfiles= 3859for ac_file in $ac_files 3860do 3861 case $ac_file in 3862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3863 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3864 esac 3865done 3866rm -f $ac_rmfiles 3867 3868if { { ac_try="$ac_link_default" 3869case "(($ac_try" in 3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3871 *) ac_try_echo=$ac_try;; 3872esac 3873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3874$as_echo "$ac_try_echo"; } >&5 3875 (eval "$ac_link_default") 2>&5 3876 ac_status=$? 3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3878 test $ac_status = 0; }; then : 3879 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3880# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3881# in a Makefile. We should not override ac_cv_exeext if it was cached, 3882# so that the user can short-circuit this test for compilers unknown to 3883# Autoconf. 3884for ac_file in $ac_files '' 3885do 3886 test -f "$ac_file" || continue 3887 case $ac_file in 3888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3889 ;; 3890 [ab].out ) 3891 # We found the default executable, but exeext='' is most 3892 # certainly right. 3893 break;; 3894 *.* ) 3895 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3896 then :; else 3897 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3898 fi 3899 # We set ac_cv_exeext here because the later test for it is not 3900 # safe: cross compilers may not add the suffix if given an `-o' 3901 # argument, so we may need to know it at that point already. 3902 # Even if this section looks crufty: it has the advantage of 3903 # actually working. 3904 break;; 3905 * ) 3906 break;; 3907 esac 3908done 3909test "$ac_cv_exeext" = no && ac_cv_exeext= 3910 3911else 3912 ac_file='' 3913fi 3914if test -z "$ac_file"; then : 3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3916$as_echo "no" >&6; } 3917$as_echo "$as_me: failed program was:" >&5 3918sed 's/^/| /' conftest.$ac_ext >&5 3919 3920{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3922as_fn_error 77 "C compiler cannot create executables 3923See \`config.log' for more details" "$LINENO" 5; } 3924else 3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3926$as_echo "yes" >&6; } 3927fi 3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3929$as_echo_n "checking for C compiler default output file name... " >&6; } 3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3931$as_echo "$ac_file" >&6; } 3932ac_exeext=$ac_cv_exeext 3933 3934rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3935ac_clean_files=$ac_clean_files_save 3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3937$as_echo_n "checking for suffix of executables... " >&6; } 3938if { { ac_try="$ac_link" 3939case "(($ac_try" in 3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3941 *) ac_try_echo=$ac_try;; 3942esac 3943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3944$as_echo "$ac_try_echo"; } >&5 3945 (eval "$ac_link") 2>&5 3946 ac_status=$? 3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3948 test $ac_status = 0; }; then : 3949 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3950# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3951# work properly (i.e., refer to `conftest.exe'), while it won't with 3952# `rm'. 3953for ac_file in conftest.exe conftest conftest.*; do 3954 test -f "$ac_file" || continue 3955 case $ac_file in 3956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3957 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3958 break;; 3959 * ) break;; 3960 esac 3961done 3962else 3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3965as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3966See \`config.log' for more details" "$LINENO" 5; } 3967fi 3968rm -f conftest conftest$ac_cv_exeext 3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3970$as_echo "$ac_cv_exeext" >&6; } 3971 3972rm -f conftest.$ac_ext 3973EXEEXT=$ac_cv_exeext 3974ac_exeext=$EXEEXT 3975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3976/* end confdefs.h. */ 3977#include <stdio.h> 3978int 3979main () 3980{ 3981FILE *f = fopen ("conftest.out", "w"); 3982 return ferror (f) || fclose (f) != 0; 3983 3984 ; 3985 return 0; 3986} 3987_ACEOF 3988ac_clean_files="$ac_clean_files conftest.out" 3989# Check that the compiler produces executables we can run. If not, either 3990# the compiler is broken, or we cross compile. 3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3992$as_echo_n "checking whether we are cross compiling... " >&6; } 3993if test "$cross_compiling" != yes; then 3994 { { ac_try="$ac_link" 3995case "(($ac_try" in 3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3997 *) ac_try_echo=$ac_try;; 3998esac 3999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4000$as_echo "$ac_try_echo"; } >&5 4001 (eval "$ac_link") 2>&5 4002 ac_status=$? 4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4004 test $ac_status = 0; } 4005 if { ac_try='./conftest$ac_cv_exeext' 4006 { { case "(($ac_try" in 4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4008 *) ac_try_echo=$ac_try;; 4009esac 4010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4011$as_echo "$ac_try_echo"; } >&5 4012 (eval "$ac_try") 2>&5 4013 ac_status=$? 4014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4015 test $ac_status = 0; }; }; then 4016 cross_compiling=no 4017 else 4018 if test "$cross_compiling" = maybe; then 4019 cross_compiling=yes 4020 else 4021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4023as_fn_error $? "cannot run C compiled programs. 4024If you meant to cross compile, use \`--host'. 4025See \`config.log' for more details" "$LINENO" 5; } 4026 fi 4027 fi 4028fi 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4030$as_echo "$cross_compiling" >&6; } 4031 4032rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4033ac_clean_files=$ac_clean_files_save 4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4035$as_echo_n "checking for suffix of object files... " >&6; } 4036if ${ac_cv_objext+:} false; then : 4037 $as_echo_n "(cached) " >&6 4038else 4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4040/* end confdefs.h. */ 4041 4042int 4043main () 4044{ 4045 4046 ; 4047 return 0; 4048} 4049_ACEOF 4050rm -f conftest.o conftest.obj 4051if { { ac_try="$ac_compile" 4052case "(($ac_try" in 4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4054 *) ac_try_echo=$ac_try;; 4055esac 4056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4057$as_echo "$ac_try_echo"; } >&5 4058 (eval "$ac_compile") 2>&5 4059 ac_status=$? 4060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4061 test $ac_status = 0; }; then : 4062 for ac_file in conftest.o conftest.obj conftest.*; do 4063 test -f "$ac_file" || continue; 4064 case $ac_file in 4065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4066 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4067 break;; 4068 esac 4069done 4070else 4071 $as_echo "$as_me: failed program was:" >&5 4072sed 's/^/| /' conftest.$ac_ext >&5 4073 4074{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4076as_fn_error $? "cannot compute suffix of object files: cannot compile 4077See \`config.log' for more details" "$LINENO" 5; } 4078fi 4079rm -f conftest.$ac_cv_objext conftest.$ac_ext 4080fi 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4082$as_echo "$ac_cv_objext" >&6; } 4083OBJEXT=$ac_cv_objext 4084ac_objext=$OBJEXT 4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4086$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4087if ${ac_cv_c_compiler_gnu+:} false; then : 4088 $as_echo_n "(cached) " >&6 4089else 4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4091/* end confdefs.h. */ 4092 4093int 4094main () 4095{ 4096#ifndef __GNUC__ 4097 choke me 4098#endif 4099 4100 ; 4101 return 0; 4102} 4103_ACEOF 4104if ac_fn_c_try_compile "$LINENO"; then : 4105 ac_compiler_gnu=yes 4106else 4107 ac_compiler_gnu=no 4108fi 4109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4110ac_cv_c_compiler_gnu=$ac_compiler_gnu 4111 4112fi 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4114$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4115if test $ac_compiler_gnu = yes; then 4116 GCC=yes 4117else 4118 GCC= 4119fi 4120ac_test_CFLAGS=${CFLAGS+set} 4121ac_save_CFLAGS=$CFLAGS 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4123$as_echo_n "checking whether $CC accepts -g... " >&6; } 4124if ${ac_cv_prog_cc_g+:} false; then : 4125 $as_echo_n "(cached) " >&6 4126else 4127 ac_save_c_werror_flag=$ac_c_werror_flag 4128 ac_c_werror_flag=yes 4129 ac_cv_prog_cc_g=no 4130 CFLAGS="-g" 4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4132/* end confdefs.h. */ 4133 4134int 4135main () 4136{ 4137 4138 ; 4139 return 0; 4140} 4141_ACEOF 4142if ac_fn_c_try_compile "$LINENO"; then : 4143 ac_cv_prog_cc_g=yes 4144else 4145 CFLAGS="" 4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4147/* end confdefs.h. */ 4148 4149int 4150main () 4151{ 4152 4153 ; 4154 return 0; 4155} 4156_ACEOF 4157if ac_fn_c_try_compile "$LINENO"; then : 4158 4159else 4160 ac_c_werror_flag=$ac_save_c_werror_flag 4161 CFLAGS="-g" 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163/* end confdefs.h. */ 4164 4165int 4166main () 4167{ 4168 4169 ; 4170 return 0; 4171} 4172_ACEOF 4173if ac_fn_c_try_compile "$LINENO"; then : 4174 ac_cv_prog_cc_g=yes 4175fi 4176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4177fi 4178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4179fi 4180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4181 ac_c_werror_flag=$ac_save_c_werror_flag 4182fi 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4184$as_echo "$ac_cv_prog_cc_g" >&6; } 4185if test "$ac_test_CFLAGS" = set; then 4186 CFLAGS=$ac_save_CFLAGS 4187elif test $ac_cv_prog_cc_g = yes; then 4188 if test "$GCC" = yes; then 4189 CFLAGS="-g -O2" 4190 else 4191 CFLAGS="-g" 4192 fi 4193else 4194 if test "$GCC" = yes; then 4195 CFLAGS="-O2" 4196 else 4197 CFLAGS= 4198 fi 4199fi 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4201$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4202if ${ac_cv_prog_cc_c89+:} false; then : 4203 $as_echo_n "(cached) " >&6 4204else 4205 ac_cv_prog_cc_c89=no 4206ac_save_CC=$CC 4207cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4208/* end confdefs.h. */ 4209#include <stdarg.h> 4210#include <stdio.h> 4211struct stat; 4212/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4213struct buf { int x; }; 4214FILE * (*rcsopen) (struct buf *, struct stat *, int); 4215static char *e (p, i) 4216 char **p; 4217 int i; 4218{ 4219 return p[i]; 4220} 4221static char *f (char * (*g) (char **, int), char **p, ...) 4222{ 4223 char *s; 4224 va_list v; 4225 va_start (v,p); 4226 s = g (p, va_arg (v,int)); 4227 va_end (v); 4228 return s; 4229} 4230 4231/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4232 function prototypes and stuff, but not '\xHH' hex character constants. 4233 These don't provoke an error unfortunately, instead are silently treated 4234 as 'x'. The following induces an error, until -std is added to get 4235 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4236 array size at least. It's necessary to write '\x00'==0 to get something 4237 that's true only with -std. */ 4238int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4239 4240/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4241 inside strings and character constants. */ 4242#define FOO(x) 'x' 4243int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4244 4245int test (int i, double x); 4246struct s1 {int (*f) (int a);}; 4247struct s2 {int (*f) (double a);}; 4248int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4249int argc; 4250char **argv; 4251int 4252main () 4253{ 4254return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4255 ; 4256 return 0; 4257} 4258_ACEOF 4259for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4260 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4261do 4262 CC="$ac_save_CC $ac_arg" 4263 if ac_fn_c_try_compile "$LINENO"; then : 4264 ac_cv_prog_cc_c89=$ac_arg 4265fi 4266rm -f core conftest.err conftest.$ac_objext 4267 test "x$ac_cv_prog_cc_c89" != "xno" && break 4268done 4269rm -f conftest.$ac_ext 4270CC=$ac_save_CC 4271 4272fi 4273# AC_CACHE_VAL 4274case "x$ac_cv_prog_cc_c89" in 4275 x) 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4277$as_echo "none needed" >&6; } ;; 4278 xno) 4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4280$as_echo "unsupported" >&6; } ;; 4281 *) 4282 CC="$CC $ac_cv_prog_cc_c89" 4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4284$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4285esac 4286if test "x$ac_cv_prog_cc_c89" != xno; then : 4287 4288fi 4289 4290ac_ext=c 4291ac_cpp='$CPP $CPPFLAGS' 4292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4294ac_compiler_gnu=$ac_cv_c_compiler_gnu 4295 4296ac_ext=c 4297ac_cpp='$CPP $CPPFLAGS' 4298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4300ac_compiler_gnu=$ac_cv_c_compiler_gnu 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4302$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4303if ${am_cv_prog_cc_c_o+:} false; then : 4304 $as_echo_n "(cached) " >&6 4305else 4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4307/* end confdefs.h. */ 4308 4309int 4310main () 4311{ 4312 4313 ; 4314 return 0; 4315} 4316_ACEOF 4317 # Make sure it works both with $CC and with simple cc. 4318 # Following AC_PROG_CC_C_O, we do the test twice because some 4319 # compilers refuse to overwrite an existing .o file with -o, 4320 # though they will create one. 4321 am_cv_prog_cc_c_o=yes 4322 for am_i in 1 2; do 4323 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4324 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4325 ac_status=$? 4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4327 (exit $ac_status); } \ 4328 && test -f conftest2.$ac_objext; then 4329 : OK 4330 else 4331 am_cv_prog_cc_c_o=no 4332 break 4333 fi 4334 done 4335 rm -f core conftest* 4336 unset am_i 4337fi 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4339$as_echo "$am_cv_prog_cc_c_o" >&6; } 4340if test "$am_cv_prog_cc_c_o" != yes; then 4341 # Losing compiler, so override with the script. 4342 # FIXME: It is wrong to rewrite CC. 4343 # But if we don't then we get into trouble of one sort or another. 4344 # A longer-term fix would be to have automake use am__CC in this case, 4345 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4346 CC="$am_aux_dir/compile $CC" 4347fi 4348ac_ext=c 4349ac_cpp='$CPP $CPPFLAGS' 4350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4352ac_compiler_gnu=$ac_cv_c_compiler_gnu 4353 4354 4355depcc="$CC" am_compiler_list= 4356 4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4358$as_echo_n "checking dependency style of $depcc... " >&6; } 4359if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4360 $as_echo_n "(cached) " >&6 4361else 4362 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4363 # We make a subdir and do the tests there. Otherwise we can end up 4364 # making bogus files that we don't know about and never remove. For 4365 # instance it was reported that on HP-UX the gcc test will end up 4366 # making a dummy file named 'D' -- because '-MD' means "put the output 4367 # in D". 4368 rm -rf conftest.dir 4369 mkdir conftest.dir 4370 # Copy depcomp to subdir because otherwise we won't find it if we're 4371 # using a relative directory. 4372 cp "$am_depcomp" conftest.dir 4373 cd conftest.dir 4374 # We will build objects and dependencies in a subdirectory because 4375 # it helps to detect inapplicable dependency modes. For instance 4376 # both Tru64's cc and ICC support -MD to output dependencies as a 4377 # side effect of compilation, but ICC will put the dependencies in 4378 # the current directory while Tru64 will put them in the object 4379 # directory. 4380 mkdir sub 4381 4382 am_cv_CC_dependencies_compiler_type=none 4383 if test "$am_compiler_list" = ""; then 4384 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4385 fi 4386 am__universal=false 4387 case " $depcc " in #( 4388 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4389 esac 4390 4391 for depmode in $am_compiler_list; do 4392 # Setup a source with many dependencies, because some compilers 4393 # like to wrap large dependency lists on column 80 (with \), and 4394 # we should not choose a depcomp mode which is confused by this. 4395 # 4396 # We need to recreate these files for each test, as the compiler may 4397 # overwrite some of them when testing with obscure command lines. 4398 # This happens at least with the AIX C compiler. 4399 : > sub/conftest.c 4400 for i in 1 2 3 4 5 6; do 4401 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4402 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4403 # Solaris 10 /bin/sh. 4404 echo '/* dummy */' > sub/conftst$i.h 4405 done 4406 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4407 4408 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4409 # mode. It turns out that the SunPro C++ compiler does not properly 4410 # handle '-M -o', and we need to detect this. Also, some Intel 4411 # versions had trouble with output in subdirs. 4412 am__obj=sub/conftest.${OBJEXT-o} 4413 am__minus_obj="-o $am__obj" 4414 case $depmode in 4415 gcc) 4416 # This depmode causes a compiler race in universal mode. 4417 test "$am__universal" = false || continue 4418 ;; 4419 nosideeffect) 4420 # After this tag, mechanisms are not by side-effect, so they'll 4421 # only be used when explicitly requested. 4422 if test "x$enable_dependency_tracking" = xyes; then 4423 continue 4424 else 4425 break 4426 fi 4427 ;; 4428 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4429 # This compiler won't grok '-c -o', but also, the minuso test has 4430 # not run yet. These depmodes are late enough in the game, and 4431 # so weak that their functioning should not be impacted. 4432 am__obj=conftest.${OBJEXT-o} 4433 am__minus_obj= 4434 ;; 4435 none) break ;; 4436 esac 4437 if depmode=$depmode \ 4438 source=sub/conftest.c object=$am__obj \ 4439 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4440 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4441 >/dev/null 2>conftest.err && 4442 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4443 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4444 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4445 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4446 # icc doesn't choke on unknown options, it will just issue warnings 4447 # or remarks (even with -Werror). So we grep stderr for any message 4448 # that says an option was ignored or not supported. 4449 # When given -MP, icc 7.0 and 7.1 complain thusly: 4450 # icc: Command line warning: ignoring option '-M'; no argument required 4451 # The diagnosis changed in icc 8.0: 4452 # icc: Command line remark: option '-MP' not supported 4453 if (grep 'ignoring option' conftest.err || 4454 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4455 am_cv_CC_dependencies_compiler_type=$depmode 4456 break 4457 fi 4458 fi 4459 done 4460 4461 cd .. 4462 rm -rf conftest.dir 4463else 4464 am_cv_CC_dependencies_compiler_type=none 4465fi 4466 4467fi 4468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4469$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4470CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4471 4472 if 4473 test "x$enable_dependency_tracking" != xno \ 4474 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4475 am__fastdepCC_TRUE= 4476 am__fastdepCC_FALSE='#' 4477else 4478 am__fastdepCC_TRUE='#' 4479 am__fastdepCC_FALSE= 4480fi 4481 4482 4483 4484 4485 4486ac_ext=c 4487ac_cpp='$CPP $CPPFLAGS' 4488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4490ac_compiler_gnu=$ac_cv_c_compiler_gnu 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4492$as_echo_n "checking how to run the C preprocessor... " >&6; } 4493# On Suns, sometimes $CPP names a directory. 4494if test -n "$CPP" && test -d "$CPP"; then 4495 CPP= 4496fi 4497if test -z "$CPP"; then 4498 if ${ac_cv_prog_CPP+:} false; then : 4499 $as_echo_n "(cached) " >&6 4500else 4501 # Double quotes because CPP needs to be expanded 4502 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4503 do 4504 ac_preproc_ok=false 4505for ac_c_preproc_warn_flag in '' yes 4506do 4507 # Use a header file that comes with gcc, so configuring glibc 4508 # with a fresh cross-compiler works. 4509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4510 # <limits.h> exists even on freestanding compilers. 4511 # On the NeXT, cc -E runs the code through the compiler's parser, 4512 # not just through cpp. "Syntax error" is here to catch this case. 4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4514/* end confdefs.h. */ 4515#ifdef __STDC__ 4516# include <limits.h> 4517#else 4518# include <assert.h> 4519#endif 4520 Syntax error 4521_ACEOF 4522if ac_fn_c_try_cpp "$LINENO"; then : 4523 4524else 4525 # Broken: fails on valid input. 4526continue 4527fi 4528rm -f conftest.err conftest.i conftest.$ac_ext 4529 4530 # OK, works on sane cases. Now check whether nonexistent headers 4531 # can be detected and how. 4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4533/* end confdefs.h. */ 4534#include <ac_nonexistent.h> 4535_ACEOF 4536if ac_fn_c_try_cpp "$LINENO"; then : 4537 # Broken: success on invalid input. 4538continue 4539else 4540 # Passes both tests. 4541ac_preproc_ok=: 4542break 4543fi 4544rm -f conftest.err conftest.i conftest.$ac_ext 4545 4546done 4547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4548rm -f conftest.i conftest.err conftest.$ac_ext 4549if $ac_preproc_ok; then : 4550 break 4551fi 4552 4553 done 4554 ac_cv_prog_CPP=$CPP 4555 4556fi 4557 CPP=$ac_cv_prog_CPP 4558else 4559 ac_cv_prog_CPP=$CPP 4560fi 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4562$as_echo "$CPP" >&6; } 4563ac_preproc_ok=false 4564for ac_c_preproc_warn_flag in '' yes 4565do 4566 # Use a header file that comes with gcc, so configuring glibc 4567 # with a fresh cross-compiler works. 4568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4569 # <limits.h> exists even on freestanding compilers. 4570 # On the NeXT, cc -E runs the code through the compiler's parser, 4571 # not just through cpp. "Syntax error" is here to catch this case. 4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4573/* end confdefs.h. */ 4574#ifdef __STDC__ 4575# include <limits.h> 4576#else 4577# include <assert.h> 4578#endif 4579 Syntax error 4580_ACEOF 4581if ac_fn_c_try_cpp "$LINENO"; then : 4582 4583else 4584 # Broken: fails on valid input. 4585continue 4586fi 4587rm -f conftest.err conftest.i conftest.$ac_ext 4588 4589 # OK, works on sane cases. Now check whether nonexistent headers 4590 # can be detected and how. 4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4592/* end confdefs.h. */ 4593#include <ac_nonexistent.h> 4594_ACEOF 4595if ac_fn_c_try_cpp "$LINENO"; then : 4596 # Broken: success on invalid input. 4597continue 4598else 4599 # Passes both tests. 4600ac_preproc_ok=: 4601break 4602fi 4603rm -f conftest.err conftest.i conftest.$ac_ext 4604 4605done 4606# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4607rm -f conftest.i conftest.err conftest.$ac_ext 4608if $ac_preproc_ok; then : 4609 4610else 4611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4613as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4614See \`config.log' for more details" "$LINENO" 5; } 4615fi 4616 4617ac_ext=c 4618ac_cpp='$CPP $CPPFLAGS' 4619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4621ac_compiler_gnu=$ac_cv_c_compiler_gnu 4622 4623 4624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4625$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4626if ${ac_cv_path_GREP+:} false; then : 4627 $as_echo_n "(cached) " >&6 4628else 4629 if test -z "$GREP"; then 4630 ac_path_GREP_found=false 4631 # Loop through the user's path and test for each of PROGNAME-LIST 4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4633for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4634do 4635 IFS=$as_save_IFS 4636 test -z "$as_dir" && as_dir=. 4637 for ac_prog in grep ggrep; do 4638 for ac_exec_ext in '' $ac_executable_extensions; do 4639 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4640 as_fn_executable_p "$ac_path_GREP" || continue 4641# Check for GNU ac_path_GREP and select it if it is found. 4642 # Check for GNU $ac_path_GREP 4643case `"$ac_path_GREP" --version 2>&1` in 4644*GNU*) 4645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4646*) 4647 ac_count=0 4648 $as_echo_n 0123456789 >"conftest.in" 4649 while : 4650 do 4651 cat "conftest.in" "conftest.in" >"conftest.tmp" 4652 mv "conftest.tmp" "conftest.in" 4653 cp "conftest.in" "conftest.nl" 4654 $as_echo 'GREP' >> "conftest.nl" 4655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4657 as_fn_arith $ac_count + 1 && ac_count=$as_val 4658 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4659 # Best one so far, save it but keep looking for a better one 4660 ac_cv_path_GREP="$ac_path_GREP" 4661 ac_path_GREP_max=$ac_count 4662 fi 4663 # 10*(2^10) chars as input seems more than enough 4664 test $ac_count -gt 10 && break 4665 done 4666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4667esac 4668 4669 $ac_path_GREP_found && break 3 4670 done 4671 done 4672 done 4673IFS=$as_save_IFS 4674 if test -z "$ac_cv_path_GREP"; then 4675 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4676 fi 4677else 4678 ac_cv_path_GREP=$GREP 4679fi 4680 4681fi 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4683$as_echo "$ac_cv_path_GREP" >&6; } 4684 GREP="$ac_cv_path_GREP" 4685 4686 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4688$as_echo_n "checking for egrep... " >&6; } 4689if ${ac_cv_path_EGREP+:} false; then : 4690 $as_echo_n "(cached) " >&6 4691else 4692 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4693 then ac_cv_path_EGREP="$GREP -E" 4694 else 4695 if test -z "$EGREP"; then 4696 ac_path_EGREP_found=false 4697 # Loop through the user's path and test for each of PROGNAME-LIST 4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4699for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4700do 4701 IFS=$as_save_IFS 4702 test -z "$as_dir" && as_dir=. 4703 for ac_prog in egrep; do 4704 for ac_exec_ext in '' $ac_executable_extensions; do 4705 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4706 as_fn_executable_p "$ac_path_EGREP" || continue 4707# Check for GNU ac_path_EGREP and select it if it is found. 4708 # Check for GNU $ac_path_EGREP 4709case `"$ac_path_EGREP" --version 2>&1` in 4710*GNU*) 4711 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4712*) 4713 ac_count=0 4714 $as_echo_n 0123456789 >"conftest.in" 4715 while : 4716 do 4717 cat "conftest.in" "conftest.in" >"conftest.tmp" 4718 mv "conftest.tmp" "conftest.in" 4719 cp "conftest.in" "conftest.nl" 4720 $as_echo 'EGREP' >> "conftest.nl" 4721 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4723 as_fn_arith $ac_count + 1 && ac_count=$as_val 4724 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4725 # Best one so far, save it but keep looking for a better one 4726 ac_cv_path_EGREP="$ac_path_EGREP" 4727 ac_path_EGREP_max=$ac_count 4728 fi 4729 # 10*(2^10) chars as input seems more than enough 4730 test $ac_count -gt 10 && break 4731 done 4732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4733esac 4734 4735 $ac_path_EGREP_found && break 3 4736 done 4737 done 4738 done 4739IFS=$as_save_IFS 4740 if test -z "$ac_cv_path_EGREP"; then 4741 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4742 fi 4743else 4744 ac_cv_path_EGREP=$EGREP 4745fi 4746 4747 fi 4748fi 4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4750$as_echo "$ac_cv_path_EGREP" >&6; } 4751 EGREP="$ac_cv_path_EGREP" 4752 4753 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4755$as_echo_n "checking for ANSI C header files... " >&6; } 4756if ${ac_cv_header_stdc+:} false; then : 4757 $as_echo_n "(cached) " >&6 4758else 4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4760/* end confdefs.h. */ 4761#include <stdlib.h> 4762#include <stdarg.h> 4763#include <string.h> 4764#include <float.h> 4765 4766int 4767main () 4768{ 4769 4770 ; 4771 return 0; 4772} 4773_ACEOF 4774if ac_fn_c_try_compile "$LINENO"; then : 4775 ac_cv_header_stdc=yes 4776else 4777 ac_cv_header_stdc=no 4778fi 4779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4780 4781if test $ac_cv_header_stdc = yes; then 4782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4784/* end confdefs.h. */ 4785#include <string.h> 4786 4787_ACEOF 4788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4789 $EGREP "memchr" >/dev/null 2>&1; then : 4790 4791else 4792 ac_cv_header_stdc=no 4793fi 4794rm -f conftest* 4795 4796fi 4797 4798if test $ac_cv_header_stdc = yes; then 4799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4801/* end confdefs.h. */ 4802#include <stdlib.h> 4803 4804_ACEOF 4805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4806 $EGREP "free" >/dev/null 2>&1; then : 4807 4808else 4809 ac_cv_header_stdc=no 4810fi 4811rm -f conftest* 4812 4813fi 4814 4815if test $ac_cv_header_stdc = yes; then 4816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4817 if test "$cross_compiling" = yes; then : 4818 : 4819else 4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4821/* end confdefs.h. */ 4822#include <ctype.h> 4823#include <stdlib.h> 4824#if ((' ' & 0x0FF) == 0x020) 4825# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4826# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4827#else 4828# define ISLOWER(c) \ 4829 (('a' <= (c) && (c) <= 'i') \ 4830 || ('j' <= (c) && (c) <= 'r') \ 4831 || ('s' <= (c) && (c) <= 'z')) 4832# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4833#endif 4834 4835#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4836int 4837main () 4838{ 4839 int i; 4840 for (i = 0; i < 256; i++) 4841 if (XOR (islower (i), ISLOWER (i)) 4842 || toupper (i) != TOUPPER (i)) 4843 return 2; 4844 return 0; 4845} 4846_ACEOF 4847if ac_fn_c_try_run "$LINENO"; then : 4848 4849else 4850 ac_cv_header_stdc=no 4851fi 4852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4853 conftest.$ac_objext conftest.beam conftest.$ac_ext 4854fi 4855 4856fi 4857fi 4858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4859$as_echo "$ac_cv_header_stdc" >&6; } 4860if test $ac_cv_header_stdc = yes; then 4861 4862$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4863 4864fi 4865 4866# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4867for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4868 inttypes.h stdint.h unistd.h 4869do : 4870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4871ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4872" 4873if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4874 cat >>confdefs.h <<_ACEOF 4875#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4876_ACEOF 4877 4878fi 4879 4880done 4881 4882 4883 4884 4885 4886 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4887if test "x$ac_cv_header_minix_config_h" = xyes; then : 4888 MINIX=yes 4889else 4890 MINIX= 4891fi 4892 4893 4894 if test "$MINIX" = yes; then 4895 4896$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4897 4898 4899$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4900 4901 4902$as_echo "#define _MINIX 1" >>confdefs.h 4903 4904 fi 4905 4906 case "$host_os" in 4907 hpux*) 4908 4909$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 4910 4911 ;; 4912 esac 4913 4914 4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4916$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4917if ${ac_cv_safe_to_define___extensions__+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4921/* end confdefs.h. */ 4922 4923# define __EXTENSIONS__ 1 4924 $ac_includes_default 4925int 4926main () 4927{ 4928 4929 ; 4930 return 0; 4931} 4932_ACEOF 4933if ac_fn_c_try_compile "$LINENO"; then : 4934 ac_cv_safe_to_define___extensions__=yes 4935else 4936 ac_cv_safe_to_define___extensions__=no 4937fi 4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4939fi 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4941$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4942 test $ac_cv_safe_to_define___extensions__ = yes && 4943 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4944 4945 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4946 4947 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4948 4949 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4950 4951 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4952 4953 4954 4955 case $ac_cv_prog_cc_stdc in #( 4956 no) : 4957 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4958 *) : 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4960$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4961if ${ac_cv_prog_cc_c99+:} false; then : 4962 $as_echo_n "(cached) " >&6 4963else 4964 ac_cv_prog_cc_c99=no 4965ac_save_CC=$CC 4966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4967/* end confdefs.h. */ 4968#include <stdarg.h> 4969#include <stdbool.h> 4970#include <stdlib.h> 4971#include <wchar.h> 4972#include <stdio.h> 4973 4974// Check varargs macros. These examples are taken from C99 6.10.3.5. 4975#define debug(...) fprintf (stderr, __VA_ARGS__) 4976#define showlist(...) puts (#__VA_ARGS__) 4977#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4978static void 4979test_varargs_macros (void) 4980{ 4981 int x = 1234; 4982 int y = 5678; 4983 debug ("Flag"); 4984 debug ("X = %d\n", x); 4985 showlist (The first, second, and third items.); 4986 report (x>y, "x is %d but y is %d", x, y); 4987} 4988 4989// Check long long types. 4990#define BIG64 18446744073709551615ull 4991#define BIG32 4294967295ul 4992#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4993#if !BIG_OK 4994 your preprocessor is broken; 4995#endif 4996#if BIG_OK 4997#else 4998 your preprocessor is broken; 4999#endif 5000static long long int bignum = -9223372036854775807LL; 5001static unsigned long long int ubignum = BIG64; 5002 5003struct incomplete_array 5004{ 5005 int datasize; 5006 double data[]; 5007}; 5008 5009struct named_init { 5010 int number; 5011 const wchar_t *name; 5012 double average; 5013}; 5014 5015typedef const char *ccp; 5016 5017static inline int 5018test_restrict (ccp restrict text) 5019{ 5020 // See if C++-style comments work. 5021 // Iterate through items via the restricted pointer. 5022 // Also check for declarations in for loops. 5023 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5024 continue; 5025 return 0; 5026} 5027 5028// Check varargs and va_copy. 5029static void 5030test_varargs (const char *format, ...) 5031{ 5032 va_list args; 5033 va_start (args, format); 5034 va_list args_copy; 5035 va_copy (args_copy, args); 5036 5037 const char *str; 5038 int number; 5039 float fnumber; 5040 5041 while (*format) 5042 { 5043 switch (*format++) 5044 { 5045 case 's': // string 5046 str = va_arg (args_copy, const char *); 5047 break; 5048 case 'd': // int 5049 number = va_arg (args_copy, int); 5050 break; 5051 case 'f': // float 5052 fnumber = va_arg (args_copy, double); 5053 break; 5054 default: 5055 break; 5056 } 5057 } 5058 va_end (args_copy); 5059 va_end (args); 5060} 5061 5062int 5063main () 5064{ 5065 5066 // Check bool. 5067 _Bool success = false; 5068 5069 // Check restrict. 5070 if (test_restrict ("String literal") == 0) 5071 success = true; 5072 char *restrict newvar = "Another string"; 5073 5074 // Check varargs. 5075 test_varargs ("s, d' f .", "string", 65, 34.234); 5076 test_varargs_macros (); 5077 5078 // Check flexible array members. 5079 struct incomplete_array *ia = 5080 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5081 ia->datasize = 10; 5082 for (int i = 0; i < ia->datasize; ++i) 5083 ia->data[i] = i * 1.234; 5084 5085 // Check named initializers. 5086 struct named_init ni = { 5087 .number = 34, 5088 .name = L"Test wide string", 5089 .average = 543.34343, 5090 }; 5091 5092 ni.number = 58; 5093 5094 int dynamic_array[ni.number]; 5095 dynamic_array[ni.number - 1] = 543; 5096 5097 // work around unused variable warnings 5098 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5099 || dynamic_array[ni.number - 1] != 543); 5100 5101 ; 5102 return 0; 5103} 5104_ACEOF 5105for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5106do 5107 CC="$ac_save_CC $ac_arg" 5108 if ac_fn_c_try_compile "$LINENO"; then : 5109 ac_cv_prog_cc_c99=$ac_arg 5110fi 5111rm -f core conftest.err conftest.$ac_objext 5112 test "x$ac_cv_prog_cc_c99" != "xno" && break 5113done 5114rm -f conftest.$ac_ext 5115CC=$ac_save_CC 5116 5117fi 5118# AC_CACHE_VAL 5119case "x$ac_cv_prog_cc_c99" in 5120 x) 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5122$as_echo "none needed" >&6; } ;; 5123 xno) 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5125$as_echo "unsupported" >&6; } ;; 5126 *) 5127 CC="$CC $ac_cv_prog_cc_c99" 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5129$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5130esac 5131if test "x$ac_cv_prog_cc_c99" != xno; then : 5132 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5133else 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5135$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5136if ${ac_cv_prog_cc_c89+:} false; then : 5137 $as_echo_n "(cached) " >&6 5138else 5139 ac_cv_prog_cc_c89=no 5140ac_save_CC=$CC 5141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5142/* end confdefs.h. */ 5143#include <stdarg.h> 5144#include <stdio.h> 5145struct stat; 5146/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5147struct buf { int x; }; 5148FILE * (*rcsopen) (struct buf *, struct stat *, int); 5149static char *e (p, i) 5150 char **p; 5151 int i; 5152{ 5153 return p[i]; 5154} 5155static char *f (char * (*g) (char **, int), char **p, ...) 5156{ 5157 char *s; 5158 va_list v; 5159 va_start (v,p); 5160 s = g (p, va_arg (v,int)); 5161 va_end (v); 5162 return s; 5163} 5164 5165/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5166 function prototypes and stuff, but not '\xHH' hex character constants. 5167 These don't provoke an error unfortunately, instead are silently treated 5168 as 'x'. The following induces an error, until -std is added to get 5169 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5170 array size at least. It's necessary to write '\x00'==0 to get something 5171 that's true only with -std. */ 5172int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5173 5174/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5175 inside strings and character constants. */ 5176#define FOO(x) 'x' 5177int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5178 5179int test (int i, double x); 5180struct s1 {int (*f) (int a);}; 5181struct s2 {int (*f) (double a);}; 5182int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5183int argc; 5184char **argv; 5185int 5186main () 5187{ 5188return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5189 ; 5190 return 0; 5191} 5192_ACEOF 5193for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5194 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5195do 5196 CC="$ac_save_CC $ac_arg" 5197 if ac_fn_c_try_compile "$LINENO"; then : 5198 ac_cv_prog_cc_c89=$ac_arg 5199fi 5200rm -f core conftest.err conftest.$ac_objext 5201 test "x$ac_cv_prog_cc_c89" != "xno" && break 5202done 5203rm -f conftest.$ac_ext 5204CC=$ac_save_CC 5205 5206fi 5207# AC_CACHE_VAL 5208case "x$ac_cv_prog_cc_c89" in 5209 x) 5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5211$as_echo "none needed" >&6; } ;; 5212 xno) 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5214$as_echo "unsupported" >&6; } ;; 5215 *) 5216 CC="$CC $ac_cv_prog_cc_c89" 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5218$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5219esac 5220if test "x$ac_cv_prog_cc_c89" != xno; then : 5221 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5222else 5223 ac_cv_prog_cc_stdc=no 5224fi 5225 5226fi 5227 ;; 5228esac 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 5230$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 5231 if ${ac_cv_prog_cc_stdc+:} false; then : 5232 $as_echo_n "(cached) " >&6 5233fi 5234 5235 case $ac_cv_prog_cc_stdc in #( 5236 no) : 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5238$as_echo "unsupported" >&6; } ;; #( 5239 '') : 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5241$as_echo "none needed" >&6; } ;; #( 5242 *) : 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 5244$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 5245esac 5246 5247 5248 5249 5250 5251# Ralf Wildenhues: With per-target flags we need CC_C_O 5252# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O 5253 5254if test $ac_cv_c_compiler_gnu = yes; then 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 5256$as_echo_n "checking whether $CC needs -traditional... " >&6; } 5257if ${ac_cv_prog_gcc_traditional+:} false; then : 5258 $as_echo_n "(cached) " >&6 5259else 5260 ac_pattern="Autoconf.*'x'" 5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5262/* end confdefs.h. */ 5263#include <sgtty.h> 5264Autoconf TIOCGETP 5265_ACEOF 5266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5267 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5268 ac_cv_prog_gcc_traditional=yes 5269else 5270 ac_cv_prog_gcc_traditional=no 5271fi 5272rm -f conftest* 5273 5274 5275 if test $ac_cv_prog_gcc_traditional = no; then 5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5277/* end confdefs.h. */ 5278#include <termio.h> 5279Autoconf TCGETA 5280_ACEOF 5281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5282 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5283 ac_cv_prog_gcc_traditional=yes 5284fi 5285rm -f conftest* 5286 5287 fi 5288fi 5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 5290$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 5291 if test $ac_cv_prog_gcc_traditional = yes; then 5292 CC="$CC -traditional" 5293 fi 5294fi 5295 5296 5297 5298CFLAGS_NTP= 5299CPPFLAGS_NTP= 5300LDADD_NTP= 5301LDFLAGS_NTP= 5302 5303 5304 5305 5306 5307case "$ac_cv_prog_cc_c89" in 5308 no) 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 5310 version 4.2.5 and higher." >&5 5311$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 5312 version 4.2.5 and higher." >&2;} 5313 ;; 5314esac 5315 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5 5317$as_echo_n "checking if $CC can handle #warning... " >&6; } 5318if ${ntp_cv_cpp_warning+:} false; then : 5319 $as_echo_n "(cached) " >&6 5320else 5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5322/* end confdefs.h. */ 5323 5324int 5325main () 5326{ 5327#warning foo 5328 ; 5329 return 0; 5330} 5331_ACEOF 5332if ac_fn_c_try_compile "$LINENO"; then : 5333 ntp_cv_cpp_warning=yes 5334else 5335 ntp_cv_cpp_warning=no 5336 5337fi 5338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5339 5340fi 5341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5 5342$as_echo "$ntp_cv_cpp_warning" >&6; } 5343case "$ntp_cv_cpp_warning" in 5344 no) 5345 5346$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h 5347 5348esac 5349 5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5 5351$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; } 5352if ${ntp_cv_cc_attribute+:} false; then : 5353 $as_echo_n "(cached) " >&6 5354else 5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5356/* end confdefs.h. */ 5357 5358int 5359main () 5360{ 5361void foo(void) __attribute__((__noreturn__)); 5362 5363 ; 5364 return 0; 5365} 5366_ACEOF 5367if ac_fn_c_try_compile "$LINENO"; then : 5368 ntp_cv_cc_attribute=yes 5369else 5370 ntp_cv_cc_attribute=no 5371 5372fi 5373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5374 5375fi 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5 5377$as_echo "$ntp_cv_cc_attribute" >&6; } 5378case "$ntp_cv_cc_attribute" in 5379 yes) 5380 5381$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h 5382 5383esac 5384 5385 5386case "$GCC" in 5387 yes) 5388 SAVED_CFLAGS="$CFLAGS" 5389 CFLAGS="$CFLAGS -Wstrict-overflow" 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5 5391$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; } 5392if ${ntp_cv_gcc_Wstrict_overflow+:} false; then : 5393 $as_echo_n "(cached) " >&6 5394else 5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5396/* end confdefs.h. */ 5397 5398int 5399main () 5400{ 5401 5402 ; 5403 return 0; 5404} 5405_ACEOF 5406if ac_fn_c_try_compile "$LINENO"; then : 5407 ntp_cv_gcc_Wstrict_overflow=yes 5408else 5409 ntp_cv_gcc_Wstrict_overflow=no 5410 5411fi 5412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5413 5414fi 5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5 5416$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; } 5417 # 5418 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the 5419 # flag to CFLAGS. 5420 # 5421 CFLAGS="$SAVED_CFLAGS -Winit-self" 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5 5423$as_echo_n "checking if $CC can handle -Winit-self... " >&6; } 5424if ${ntp_cv_gcc_Winit_self+:} false; then : 5425 $as_echo_n "(cached) " >&6 5426else 5427 5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5429/* end confdefs.h. */ 5430 5431int 5432main () 5433{ 5434 5435 ; 5436 return 0; 5437} 5438_ACEOF 5439if ac_fn_c_try_compile "$LINENO"; then : 5440 ntp_cv_gcc_Winit_self=yes 5441else 5442 ntp_cv_gcc_Winit_self=no 5443 5444fi 5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5446 5447 5448fi 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5 5450$as_echo "$ntp_cv_gcc_Winit_self" >&6; } 5451 CFLAGS="$SAVED_CFLAGS" 5452 { SAVED_CFLAGS=; unset SAVED_CFLAGS;} 5453 # 5454 # $ntp_cv_gcc_Winit_self is tested later to add the 5455 # flag to CFLAGS_NTP. 5456 # 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 5458$as_echo_n "checking if linker supports omitting unused code and data... " >&6; } 5459if ${ntp_cv_gc_sections_runs+:} false; then : 5460 $as_echo_n "(cached) " >&6 5461else 5462 5463 origCFLAGS="$CFLAGS" 5464 CFLAGS="$CFLAGS -Wl,--gc-sections" 5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5466/* end confdefs.h. */ 5467 5468 #include <stdlib.h> 5469 #include <stdio.h> 5470 5471int 5472main () 5473{ 5474 5475 FILE * fpC; 5476 char buf[32]; 5477 size_t cch; 5478 int read_success_once; 5479 5480 fpC = fopen("conftest.c", "r"); 5481 if (NULL == fpC) 5482 exit(1); 5483 do { 5484 cch = fread(buf, sizeof(buf), 1, fpC); 5485 read_success_once |= (0 != cch); 5486 } while (0 != cch); 5487 if (!read_success_once) 5488 exit(2); 5489 if (!feof(fpC)) 5490 exit(3); 5491 if (0 != fclose(fpC)) 5492 exit(4); 5493 5494 exit(EXIT_SUCCESS); 5495 5496 5497 ; 5498 return 0; 5499} 5500_ACEOF 5501if ac_fn_c_try_link "$LINENO"; then : 5502 5503 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 5504 ntp_cv_gc_sections_runs=no 5505 else 5506 ntp_cv_gc_sections_runs=no 5507 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes 5508 fi 5509 5510else 5511 ntp_cv_gc_sections_runs=no 5512 5513fi 5514rm -f core conftest.err conftest.$ac_objext \ 5515 conftest$ac_exeext conftest.$ac_ext 5516 CFLAGS="$origCFLAGS" 5517 { origCFLAGS=; unset origCFLAGS;} 5518 5519 5520fi 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5 5522$as_echo "$ntp_cv_gc_sections_runs" >&6; } 5523 case "$ntp_cv_gc_sections_runs" in 5524 yes) 5525 LDADD_LIBNTP="-Wl,--gc-sections" 5526 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections" 5527 ;; 5528 no) 5529 LDADD_LIBNTP= 5530 ;; 5531 esac 5532 CFLAGS_NTP="$CFLAGS_NTP -Wall" 5533 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align" 5534 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual" 5535 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion" 5536 # CFLAGS_NTP="$CFLAGS_NTP -Werror" 5537 # CFLAGS_NTP="$CFLAGS_NTP -Wextra" 5538 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal" 5539 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes" 5540 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith" 5541 CFLAGS_NTP="$CFLAGS_NTP -Wshadow" 5542 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional" 5543 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings" 5544 case "$ntp_cv_gcc_Winit_self" in 5545 yes) 5546 CFLAGS_NTP="$CFLAGS_NTP -Winit-self" 5547 esac 5548 case "$ntp_cv_gcc_Wstrict_overflow" in 5549 yes) 5550 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow" 5551 esac 5552 # -W[no-]strict-prototypes might be added by NTP_OPENSSL 5553esac 5554 5555 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5 5557$as_echo_n "checking additional compiler flags... " >&6; } 5558 # allow ntp_os_cflags to be preset to skip this stuff 5559 case "${ntp_os_cflags+set}" in 5560 set) 5561 ;; 5562 *) 5563 ntp_os_cflags= 5564 case "$host_os" in 5565 aix[1-3]*) 5566 ;; 5567 aix4.[0-2]*) 5568 # turn on additional headers 5569 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE" 5570 ;; 5571 aix5.3*) 5572 # avoid circular dependencies in yp headers, and more 5573 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE" 5574 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT" 5575 ;; 5576 aix*) 5577 # XXX Only verified thru AIX6. 5578 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing. 5579 # avoid circular dependencies in yp headers 5580 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995 5581 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004 5582 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008 5583 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600" 5584 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS" 5585 ;; 5586 amigaos) 5587 ntp_os_cflags="-DSYS_AMIGA" 5588 ;; 5589 darwin*|macosx*|rhapsody*) 5590 ntp_os_cflags="-D_P1003_1B_VISIBLE" 5591 ;; 5592 hpux10.*) # at least for hppa2.0-hp-hpux10.20 5593 case "$GCC" in 5594 yes) 5595 ;; 5596 *) 5597 # use Ansi compiler on HPUX, and some -Wp magic 5598 ntp_os_cflags="-Ae -Wp,-H18816" 5599 ;; 5600 esac 5601 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L" 5602 ;; 5603 hpux*) 5604 case "$GCC" in 5605 yes) 5606 ;; 5607 *) 5608 # use Ansi compiler on HPUX 5609 ntp_os_cflags="-Ae" 5610 esac 5611 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L" 5612 ;; 5613 irix6*) 5614 case "$CC" in 5615 cc) 5616 # do not use 64-bit compiler 5617 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84" 5618 esac 5619 ;; 5620 nextstep3) 5621 ntp_os_cflags="-posix" 5622 ;; 5623 solaris1*|solaris2.[0-5]|solaris2.5.*) 5624 ;; 5625 sunos[34]*|sunos5.[0-5]|sunos5.5.*) 5626 ;; 5627 solaris2*|sunos5*) 5628 # turn on 64-bit file offset interface 5629 ntp_os_cflags="-D_LARGEFILE64_SOURCE" 5630 ;; 5631 vxworks*) 5632 case "$build" in 5633 $host) 5634 ;; 5635 *) 5636 # Quick and dirty sanity check 5637 case "$VX_KERNEL" in 5638 '') 5639 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5 5640 esac 5641 ntp_os_cflags="-DSYS_VXWORKS" 5642 esac 5643 ;; 5644 esac 5645 esac 5646 case "$ntp_os_cflags" in 5647 '') 5648 ntp_os_cflags_msg="none needed" 5649 ;; 5650 *) 5651 ntp_os_cflags_msg="$ntp_os_cflags" 5652 esac 5653 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags" 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5 5655$as_echo "$ntp_os_cflags_msg" >&6; } 5656 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;} 5657 ### 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5 5659$as_echo_n "checking additional linker flags... " >&6; } 5660 # HMS: The following might still need tweaking 5661 # allow ntp_os_ldflags to be preset to skip this stuff 5662 case "${ntp_os_ldflags+set}" in 5663 set) 5664 ;; 5665 *) 5666 ntp_os_ldflags= 5667 case "$host_os" in 5668 hpux*) 5669 case "$GCC" in 5670 yes) 5671 ntp_os_ldflags="-Wl,+allowdups" 5672 ;; 5673 esac 5674 ;; 5675 esac 5676 ;; 5677 esac 5678 case "$ntp_os_ldflags" in 5679 '') 5680 ntp_os_ldflags_msg="none needed" 5681 ;; 5682 *) 5683 ntp_os_ldflags_msg="$ntp_os_ldflags" 5684 esac 5685 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags" 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5 5687$as_echo "$ntp_os_ldflags_msg" >&6; } 5688 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;} 5689 5690 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5692$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 5693if ${ac_cv_c_bigendian+:} false; then : 5694 $as_echo_n "(cached) " >&6 5695else 5696 ac_cv_c_bigendian=unknown 5697 # See if we're dealing with a universal compiler. 5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5699/* end confdefs.h. */ 5700#ifndef __APPLE_CC__ 5701 not a universal capable compiler 5702 #endif 5703 typedef int dummy; 5704 5705_ACEOF 5706if ac_fn_c_try_compile "$LINENO"; then : 5707 5708 # Check for potential -arch flags. It is not universal unless 5709 # there are at least two -arch flags with different values. 5710 ac_arch= 5711 ac_prev= 5712 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5713 if test -n "$ac_prev"; then 5714 case $ac_word in 5715 i?86 | x86_64 | ppc | ppc64) 5716 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5717 ac_arch=$ac_word 5718 else 5719 ac_cv_c_bigendian=universal 5720 break 5721 fi 5722 ;; 5723 esac 5724 ac_prev= 5725 elif test "x$ac_word" = "x-arch"; then 5726 ac_prev=arch 5727 fi 5728 done 5729fi 5730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5731 if test $ac_cv_c_bigendian = unknown; then 5732 # See if sys/param.h defines the BYTE_ORDER macro. 5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5734/* end confdefs.h. */ 5735#include <sys/types.h> 5736 #include <sys/param.h> 5737 5738int 5739main () 5740{ 5741#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5742 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5743 && LITTLE_ENDIAN) 5744 bogus endian macros 5745 #endif 5746 5747 ; 5748 return 0; 5749} 5750_ACEOF 5751if ac_fn_c_try_compile "$LINENO"; then : 5752 # It does; now see whether it defined to BIG_ENDIAN or not. 5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5754/* end confdefs.h. */ 5755#include <sys/types.h> 5756 #include <sys/param.h> 5757 5758int 5759main () 5760{ 5761#if BYTE_ORDER != BIG_ENDIAN 5762 not big endian 5763 #endif 5764 5765 ; 5766 return 0; 5767} 5768_ACEOF 5769if ac_fn_c_try_compile "$LINENO"; then : 5770 ac_cv_c_bigendian=yes 5771else 5772 ac_cv_c_bigendian=no 5773fi 5774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5775fi 5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5777 fi 5778 if test $ac_cv_c_bigendian = unknown; then 5779 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5781/* end confdefs.h. */ 5782#include <limits.h> 5783 5784int 5785main () 5786{ 5787#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5788 bogus endian macros 5789 #endif 5790 5791 ; 5792 return 0; 5793} 5794_ACEOF 5795if ac_fn_c_try_compile "$LINENO"; then : 5796 # It does; now see whether it defined to _BIG_ENDIAN or not. 5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5798/* end confdefs.h. */ 5799#include <limits.h> 5800 5801int 5802main () 5803{ 5804#ifndef _BIG_ENDIAN 5805 not big endian 5806 #endif 5807 5808 ; 5809 return 0; 5810} 5811_ACEOF 5812if ac_fn_c_try_compile "$LINENO"; then : 5813 ac_cv_c_bigendian=yes 5814else 5815 ac_cv_c_bigendian=no 5816fi 5817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5818fi 5819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5820 fi 5821 if test $ac_cv_c_bigendian = unknown; then 5822 # Compile a test program. 5823 if test "$cross_compiling" = yes; then : 5824 # Try to guess by grepping values from an object file. 5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5826/* end confdefs.h. */ 5827short int ascii_mm[] = 5828 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5829 short int ascii_ii[] = 5830 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5831 int use_ascii (int i) { 5832 return ascii_mm[i] + ascii_ii[i]; 5833 } 5834 short int ebcdic_ii[] = 5835 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5836 short int ebcdic_mm[] = 5837 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5838 int use_ebcdic (int i) { 5839 return ebcdic_mm[i] + ebcdic_ii[i]; 5840 } 5841 extern int foo; 5842 5843int 5844main () 5845{ 5846return use_ascii (foo) == use_ebcdic (foo); 5847 ; 5848 return 0; 5849} 5850_ACEOF 5851if ac_fn_c_try_compile "$LINENO"; then : 5852 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 5853 ac_cv_c_bigendian=yes 5854 fi 5855 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5856 if test "$ac_cv_c_bigendian" = unknown; then 5857 ac_cv_c_bigendian=no 5858 else 5859 # finding both strings is unlikely to happen, but who knows? 5860 ac_cv_c_bigendian=unknown 5861 fi 5862 fi 5863fi 5864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5865else 5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5867/* end confdefs.h. */ 5868$ac_includes_default 5869int 5870main () 5871{ 5872 5873 /* Are we little or big endian? From Harbison&Steele. */ 5874 union 5875 { 5876 long int l; 5877 char c[sizeof (long int)]; 5878 } u; 5879 u.l = 1; 5880 return u.c[sizeof (long int) - 1] == 1; 5881 5882 ; 5883 return 0; 5884} 5885_ACEOF 5886if ac_fn_c_try_run "$LINENO"; then : 5887 ac_cv_c_bigendian=no 5888else 5889 ac_cv_c_bigendian=yes 5890fi 5891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5892 conftest.$ac_objext conftest.beam conftest.$ac_ext 5893fi 5894 5895 fi 5896fi 5897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5898$as_echo "$ac_cv_c_bigendian" >&6; } 5899 case $ac_cv_c_bigendian in #( 5900 yes) 5901 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 5902;; #( 5903 no) 5904 ;; #( 5905 universal) 5906 5907$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5908 5909 ;; #( 5910 *) 5911 as_fn_error $? "unknown endianness 5912 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5913 esac 5914 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 5916$as_echo_n "checking for working volatile... " >&6; } 5917if ${ac_cv_c_volatile+:} false; then : 5918 $as_echo_n "(cached) " >&6 5919else 5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5921/* end confdefs.h. */ 5922 5923int 5924main () 5925{ 5926 5927volatile int x; 5928int * volatile y = (int *) 0; 5929return !x && !y; 5930 ; 5931 return 0; 5932} 5933_ACEOF 5934if ac_fn_c_try_compile "$LINENO"; then : 5935 ac_cv_c_volatile=yes 5936else 5937 ac_cv_c_volatile=no 5938fi 5939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5940fi 5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 5942$as_echo "$ac_cv_c_volatile" >&6; } 5943if test $ac_cv_c_volatile = no; then 5944 5945$as_echo "#define volatile /**/" >>confdefs.h 5946 5947fi 5948 5949ac_ext=c 5950ac_cpp='$CPP $CPPFLAGS' 5951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5953ac_compiler_gnu=$ac_cv_c_compiler_gnu 5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5955$as_echo_n "checking how to run the C preprocessor... " >&6; } 5956# On Suns, sometimes $CPP names a directory. 5957if test -n "$CPP" && test -d "$CPP"; then 5958 CPP= 5959fi 5960if test -z "$CPP"; then 5961 if ${ac_cv_prog_CPP+:} false; then : 5962 $as_echo_n "(cached) " >&6 5963else 5964 # Double quotes because CPP needs to be expanded 5965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5966 do 5967 ac_preproc_ok=false 5968for ac_c_preproc_warn_flag in '' yes 5969do 5970 # Use a header file that comes with gcc, so configuring glibc 5971 # with a fresh cross-compiler works. 5972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5973 # <limits.h> exists even on freestanding compilers. 5974 # On the NeXT, cc -E runs the code through the compiler's parser, 5975 # not just through cpp. "Syntax error" is here to catch this case. 5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5977/* end confdefs.h. */ 5978#ifdef __STDC__ 5979# include <limits.h> 5980#else 5981# include <assert.h> 5982#endif 5983 Syntax error 5984_ACEOF 5985if ac_fn_c_try_cpp "$LINENO"; then : 5986 5987else 5988 # Broken: fails on valid input. 5989continue 5990fi 5991rm -f conftest.err conftest.i conftest.$ac_ext 5992 5993 # OK, works on sane cases. Now check whether nonexistent headers 5994 # can be detected and how. 5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5996/* end confdefs.h. */ 5997#include <ac_nonexistent.h> 5998_ACEOF 5999if ac_fn_c_try_cpp "$LINENO"; then : 6000 # Broken: success on invalid input. 6001continue 6002else 6003 # Passes both tests. 6004ac_preproc_ok=: 6005break 6006fi 6007rm -f conftest.err conftest.i conftest.$ac_ext 6008 6009done 6010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6011rm -f conftest.i conftest.err conftest.$ac_ext 6012if $ac_preproc_ok; then : 6013 break 6014fi 6015 6016 done 6017 ac_cv_prog_CPP=$CPP 6018 6019fi 6020 CPP=$ac_cv_prog_CPP 6021else 6022 ac_cv_prog_CPP=$CPP 6023fi 6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6025$as_echo "$CPP" >&6; } 6026ac_preproc_ok=false 6027for ac_c_preproc_warn_flag in '' yes 6028do 6029 # Use a header file that comes with gcc, so configuring glibc 6030 # with a fresh cross-compiler works. 6031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6032 # <limits.h> exists even on freestanding compilers. 6033 # On the NeXT, cc -E runs the code through the compiler's parser, 6034 # not just through cpp. "Syntax error" is here to catch this case. 6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6036/* end confdefs.h. */ 6037#ifdef __STDC__ 6038# include <limits.h> 6039#else 6040# include <assert.h> 6041#endif 6042 Syntax error 6043_ACEOF 6044if ac_fn_c_try_cpp "$LINENO"; then : 6045 6046else 6047 # Broken: fails on valid input. 6048continue 6049fi 6050rm -f conftest.err conftest.i conftest.$ac_ext 6051 6052 # OK, works on sane cases. Now check whether nonexistent headers 6053 # can be detected and how. 6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6055/* end confdefs.h. */ 6056#include <ac_nonexistent.h> 6057_ACEOF 6058if ac_fn_c_try_cpp "$LINENO"; then : 6059 # Broken: success on invalid input. 6060continue 6061else 6062 # Passes both tests. 6063ac_preproc_ok=: 6064break 6065fi 6066rm -f conftest.err conftest.i conftest.$ac_ext 6067 6068done 6069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6070rm -f conftest.i conftest.err conftest.$ac_ext 6071if $ac_preproc_ok; then : 6072 6073else 6074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6076as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6077See \`config.log' for more details" "$LINENO" 5; } 6078fi 6079 6080ac_ext=c 6081ac_cpp='$CPP $CPPFLAGS' 6082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6084ac_compiler_gnu=$ac_cv_c_compiler_gnu 6085 6086 6087 6088 6089 6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5 6091$as_echo_n "checking for compile/link hardening flags... " >&6; } 6092 6093 6094# Check whether --with-hardenfile was given. 6095if test "${with_hardenfile+set}" = set; then : 6096 withval=$with_hardenfile; 6097else 6098 with_hardenfile=no 6099 6100fi 6101 6102 6103( \ 6104 SENTINEL_DIR="$PWD" && \ 6105 cd $srcdir/ && \ 6106 case "$with_hardenfile" in \ 6107 yes|no|'') \ 6108 scripts/genHardFlags -d "$SENTINEL_DIR" \ 6109 ;; \ 6110 *) \ 6111 scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile" \ 6112 ;; \ 6113 esac \ 6114) > genHardFlags.i 2> genHardFlags.err 6115. ./genHardFlags.i 6116 6117case "$GENHARDFLAG" in 6118 OK) 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5 6120$as_echo "in file $GENHARDFLAGFILE" >&6; } 6121 rm genHardFlags.err genHardFlags.i 6122 ;; 6123 *) 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5 6125$as_echo "failed." >&6; } 6126 as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5 6127 ;; 6128esac 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5 6139$as_echo_n "checking for install dir and man conventions... " >&6; } 6140 6141 6142# Check whether --with-locfile was given. 6143if test "${with_locfile+set}" = set; then : 6144 withval=$with_locfile; 6145else 6146 with_locfile=no 6147 6148fi 6149 6150 6151( \ 6152 SENTINEL_DIR="$PWD" && \ 6153 cd $srcdir/ && \ 6154 case "$with_locfile" in \ 6155 yes|no|'') \ 6156 scripts/genLocInfo -d "$SENTINEL_DIR" \ 6157 ;; \ 6158 *) \ 6159 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \ 6160 ;; \ 6161 esac \ 6162) > genLocInfo.i 2> genLocInfo.err 6163. ./genLocInfo.i 6164 6165case "$GENLOCINFO" in 6166 OK) 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5 6168$as_echo "in file $GENLOCINFOFILE" >&6; } 6169 rm genLocInfo.err genLocInfo.i 6170 ;; 6171 *) 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5 6173$as_echo "failed." >&6; } 6174 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5 6175 ;; 6176esac 6177 6178 if test "$CALC_TICKADJ_MS" ; then 6179 WANT_CALC_TICKADJ_MS_TRUE= 6180 WANT_CALC_TICKADJ_MS_FALSE='#' 6181else 6182 WANT_CALC_TICKADJ_MS_TRUE='#' 6183 WANT_CALC_TICKADJ_MS_FALSE= 6184fi 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 if test -z "$NTPSWEEP_NI" ; then 6229 INSTALL_NTPSWEEP_TRUE= 6230 INSTALL_NTPSWEEP_FALSE='#' 6231else 6232 INSTALL_NTPSWEEP_TRUE='#' 6233 INSTALL_NTPSWEEP_FALSE= 6234fi 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 if test -z "$UPDATE_LEAP_NI" ; then 6277 INSTALL_UPDATE_LEAP_TRUE= 6278 INSTALL_UPDATE_LEAP_FALSE='#' 6279else 6280 INSTALL_UPDATE_LEAP_TRUE='#' 6281 INSTALL_UPDATE_LEAP_FALSE= 6282fi 6283 6284 6285 6286 6287if test -n "$ac_tool_prefix"; then 6288 for ac_prog in ar lib "link -lib" 6289 do 6290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6291set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6293$as_echo_n "checking for $ac_word... " >&6; } 6294if ${ac_cv_prog_AR+:} false; then : 6295 $as_echo_n "(cached) " >&6 6296else 6297 if test -n "$AR"; then 6298 ac_cv_prog_AR="$AR" # Let the user override the test. 6299else 6300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6301for as_dir in $PATH 6302do 6303 IFS=$as_save_IFS 6304 test -z "$as_dir" && as_dir=. 6305 for ac_exec_ext in '' $ac_executable_extensions; do 6306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6307 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6309 break 2 6310 fi 6311done 6312 done 6313IFS=$as_save_IFS 6314 6315fi 6316fi 6317AR=$ac_cv_prog_AR 6318if test -n "$AR"; then 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6320$as_echo "$AR" >&6; } 6321else 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6323$as_echo "no" >&6; } 6324fi 6325 6326 6327 test -n "$AR" && break 6328 done 6329fi 6330if test -z "$AR"; then 6331 ac_ct_AR=$AR 6332 for ac_prog in ar lib "link -lib" 6333do 6334 # Extract the first word of "$ac_prog", so it can be a program name with args. 6335set dummy $ac_prog; ac_word=$2 6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6337$as_echo_n "checking for $ac_word... " >&6; } 6338if ${ac_cv_prog_ac_ct_AR+:} false; then : 6339 $as_echo_n "(cached) " >&6 6340else 6341 if test -n "$ac_ct_AR"; then 6342 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6343else 6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6345for as_dir in $PATH 6346do 6347 IFS=$as_save_IFS 6348 test -z "$as_dir" && as_dir=. 6349 for ac_exec_ext in '' $ac_executable_extensions; do 6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6351 ac_cv_prog_ac_ct_AR="$ac_prog" 6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6353 break 2 6354 fi 6355done 6356 done 6357IFS=$as_save_IFS 6358 6359fi 6360fi 6361ac_ct_AR=$ac_cv_prog_ac_ct_AR 6362if test -n "$ac_ct_AR"; then 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6364$as_echo "$ac_ct_AR" >&6; } 6365else 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6367$as_echo "no" >&6; } 6368fi 6369 6370 6371 test -n "$ac_ct_AR" && break 6372done 6373 6374 if test "x$ac_ct_AR" = x; then 6375 AR="false" 6376 else 6377 case $cross_compiling:$ac_tool_warned in 6378yes:) 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6381ac_tool_warned=yes ;; 6382esac 6383 AR=$ac_ct_AR 6384 fi 6385fi 6386 6387: ${AR=ar} 6388 6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 6390$as_echo_n "checking the archiver ($AR) interface... " >&6; } 6391if ${am_cv_ar_interface+:} false; then : 6392 $as_echo_n "(cached) " >&6 6393else 6394 ac_ext=c 6395ac_cpp='$CPP $CPPFLAGS' 6396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6398ac_compiler_gnu=$ac_cv_c_compiler_gnu 6399 6400 am_cv_ar_interface=ar 6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6402/* end confdefs.h. */ 6403int some_variable = 0; 6404_ACEOF 6405if ac_fn_c_try_compile "$LINENO"; then : 6406 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 6407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6408 (eval $am_ar_try) 2>&5 6409 ac_status=$? 6410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6411 test $ac_status = 0; } 6412 if test "$ac_status" -eq 0; then 6413 am_cv_ar_interface=ar 6414 else 6415 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 6416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6417 (eval $am_ar_try) 2>&5 6418 ac_status=$? 6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6420 test $ac_status = 0; } 6421 if test "$ac_status" -eq 0; then 6422 am_cv_ar_interface=lib 6423 else 6424 am_cv_ar_interface=unknown 6425 fi 6426 fi 6427 rm -f conftest.lib libconftest.a 6428 6429fi 6430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6431 ac_ext=c 6432ac_cpp='$CPP $CPPFLAGS' 6433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6435ac_compiler_gnu=$ac_cv_c_compiler_gnu 6436 6437fi 6438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 6439$as_echo "$am_cv_ar_interface" >&6; } 6440 6441case $am_cv_ar_interface in 6442ar) 6443 ;; 6444lib) 6445 # Microsoft lib, so override with the ar-lib wrapper script. 6446 # FIXME: It is wrong to rewrite AR. 6447 # But if we don't then we get into trouble of one sort or another. 6448 # A longer-term fix would be to have automake use am__AR in this case, 6449 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 6450 # similar. 6451 AR="$am_aux_dir/ar-lib $AR" 6452 ;; 6453unknown) 6454 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 6455 ;; 6456esac 6457 6458 6459 6460 6461 6462# Expose a cross-compilation indicator to makefiles 6463 if test $build != $host; then 6464 NTP_CROSSCOMPILE_TRUE= 6465 NTP_CROSSCOMPILE_FALSE='#' 6466else 6467 NTP_CROSSCOMPILE_TRUE='#' 6468 NTP_CROSSCOMPILE_FALSE= 6469fi 6470 6471 6472 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6474$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6475if ${ac_cv_path_SED+:} false; then : 6476 $as_echo_n "(cached) " >&6 6477else 6478 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6479 for ac_i in 1 2 3 4 5 6 7; do 6480 ac_script="$ac_script$as_nl$ac_script" 6481 done 6482 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6483 { ac_script=; unset ac_script;} 6484 if test -z "$SED"; then 6485 ac_path_SED_found=false 6486 # Loop through the user's path and test for each of PROGNAME-LIST 6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6488for as_dir in $PATH 6489do 6490 IFS=$as_save_IFS 6491 test -z "$as_dir" && as_dir=. 6492 for ac_prog in sed gsed; do 6493 for ac_exec_ext in '' $ac_executable_extensions; do 6494 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6495 as_fn_executable_p "$ac_path_SED" || continue 6496# Check for GNU ac_path_SED and select it if it is found. 6497 # Check for GNU $ac_path_SED 6498case `"$ac_path_SED" --version 2>&1` in 6499*GNU*) 6500 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6501*) 6502 ac_count=0 6503 $as_echo_n 0123456789 >"conftest.in" 6504 while : 6505 do 6506 cat "conftest.in" "conftest.in" >"conftest.tmp" 6507 mv "conftest.tmp" "conftest.in" 6508 cp "conftest.in" "conftest.nl" 6509 $as_echo '' >> "conftest.nl" 6510 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6512 as_fn_arith $ac_count + 1 && ac_count=$as_val 6513 if test $ac_count -gt ${ac_path_SED_max-0}; then 6514 # Best one so far, save it but keep looking for a better one 6515 ac_cv_path_SED="$ac_path_SED" 6516 ac_path_SED_max=$ac_count 6517 fi 6518 # 10*(2^10) chars as input seems more than enough 6519 test $ac_count -gt 10 && break 6520 done 6521 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6522esac 6523 6524 $ac_path_SED_found && break 3 6525 done 6526 done 6527 done 6528IFS=$as_save_IFS 6529 if test -z "$ac_cv_path_SED"; then 6530 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6531 fi 6532else 6533 ac_cv_path_SED=$SED 6534fi 6535 6536fi 6537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6538$as_echo "$ac_cv_path_SED" >&6; } 6539 SED="$ac_cv_path_SED" 6540 rm -f conftest.sed 6541 6542test -z "$SED" && SED=sed 6543Xsed="$SED -e 1s/^X//" 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6556$as_echo_n "checking for fgrep... " >&6; } 6557if ${ac_cv_path_FGREP+:} false; then : 6558 $as_echo_n "(cached) " >&6 6559else 6560 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6561 then ac_cv_path_FGREP="$GREP -F" 6562 else 6563 if test -z "$FGREP"; then 6564 ac_path_FGREP_found=false 6565 # Loop through the user's path and test for each of PROGNAME-LIST 6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6567for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6568do 6569 IFS=$as_save_IFS 6570 test -z "$as_dir" && as_dir=. 6571 for ac_prog in fgrep; do 6572 for ac_exec_ext in '' $ac_executable_extensions; do 6573 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6574 as_fn_executable_p "$ac_path_FGREP" || continue 6575# Check for GNU ac_path_FGREP and select it if it is found. 6576 # Check for GNU $ac_path_FGREP 6577case `"$ac_path_FGREP" --version 2>&1` in 6578*GNU*) 6579 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6580*) 6581 ac_count=0 6582 $as_echo_n 0123456789 >"conftest.in" 6583 while : 6584 do 6585 cat "conftest.in" "conftest.in" >"conftest.tmp" 6586 mv "conftest.tmp" "conftest.in" 6587 cp "conftest.in" "conftest.nl" 6588 $as_echo 'FGREP' >> "conftest.nl" 6589 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6590 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6591 as_fn_arith $ac_count + 1 && ac_count=$as_val 6592 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6593 # Best one so far, save it but keep looking for a better one 6594 ac_cv_path_FGREP="$ac_path_FGREP" 6595 ac_path_FGREP_max=$ac_count 6596 fi 6597 # 10*(2^10) chars as input seems more than enough 6598 test $ac_count -gt 10 && break 6599 done 6600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6601esac 6602 6603 $ac_path_FGREP_found && break 3 6604 done 6605 done 6606 done 6607IFS=$as_save_IFS 6608 if test -z "$ac_cv_path_FGREP"; then 6609 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6610 fi 6611else 6612 ac_cv_path_FGREP=$FGREP 6613fi 6614 6615 fi 6616fi 6617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6618$as_echo "$ac_cv_path_FGREP" >&6; } 6619 FGREP="$ac_cv_path_FGREP" 6620 6621 6622test -z "$GREP" && GREP=grep 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6641ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6642ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6643 6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6645$as_echo_n "checking how to print strings... " >&6; } 6646# Test print first, because it will be a builtin if present. 6647if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6648 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6649 ECHO='print -r --' 6650elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6651 ECHO='printf %s\n' 6652else 6653 # Use this function as a fallback that always works. 6654 func_fallback_echo () 6655 { 6656 eval 'cat <<_LTECHO_EOF 6657$1 6658_LTECHO_EOF' 6659 } 6660 ECHO='func_fallback_echo' 6661fi 6662 6663# func_echo_all arg... 6664# Invoke $ECHO with all args, space-separated. 6665func_echo_all () 6666{ 6667 $ECHO "" 6668} 6669 6670case $ECHO in 6671 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6672$as_echo "printf" >&6; } ;; 6673 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6674$as_echo "print -r" >&6; } ;; 6675 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6676$as_echo "cat" >&6; } ;; 6677esac 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 6693if test "x$ac_cv_type_pid_t" = xyes; then : 6694 6695else 6696 6697cat >>confdefs.h <<_ACEOF 6698#define pid_t int 6699_ACEOF 6700 6701fi 6702 6703ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 6704if test "x$ac_cv_type_size_t" = xyes; then : 6705 6706else 6707 6708cat >>confdefs.h <<_ACEOF 6709#define size_t unsigned int 6710_ACEOF 6711 6712fi 6713 6714 6715 # Check whether --enable-c99-snprintf was given. 6716if test "${enable_c99_snprintf+set}" = set; then : 6717 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval 6718else 6719 force_c99_snprintf=no 6720 6721fi 6722 6723 case "$force_c99_snprintf" in 6724 yes) 6725 hw_force_rpl_snprintf=yes 6726 hw_force_rpl_vsnprintf=yes 6727 esac 6728 6729 6730 6731 6732 6733 6734 for ac_header in $ac_header_list 6735do : 6736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6737ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6738" 6739if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6740 cat >>confdefs.h <<_ACEOF 6741#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6742_ACEOF 6743 6744fi 6745 6746done 6747 6748 6749 6750 6751 6752 6753 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 6755$as_echo_n "checking for unsigned long long int... " >&6; } 6756if ${ac_cv_type_unsigned_long_long_int+:} false; then : 6757 $as_echo_n "(cached) " >&6 6758else 6759 ac_cv_type_unsigned_long_long_int=yes 6760 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6762/* end confdefs.h. */ 6763 6764 /* For now, do not test the preprocessor; as of 2007 there are too many 6765 implementations with broken preprocessors. Perhaps this can 6766 be revisited in 2012. In the meantime, code should not expect 6767 #if to work with literals wider than 32 bits. */ 6768 /* Test literals. */ 6769 long long int ll = 9223372036854775807ll; 6770 long long int nll = -9223372036854775807LL; 6771 unsigned long long int ull = 18446744073709551615ULL; 6772 /* Test constant expressions. */ 6773 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 6774 ? 1 : -1)]; 6775 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 6776 ? 1 : -1)]; 6777 int i = 63; 6778int 6779main () 6780{ 6781/* Test availability of runtime routines for shift and division. */ 6782 long long int llmax = 9223372036854775807ll; 6783 unsigned long long int ullmax = 18446744073709551615ull; 6784 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 6785 | (llmax / ll) | (llmax % ll) 6786 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 6787 | (ullmax / ull) | (ullmax % ull)); 6788 ; 6789 return 0; 6790} 6791 6792_ACEOF 6793if ac_fn_c_try_link "$LINENO"; then : 6794 6795else 6796 ac_cv_type_unsigned_long_long_int=no 6797fi 6798rm -f core conftest.err conftest.$ac_objext \ 6799 conftest$ac_exeext conftest.$ac_ext 6800 fi 6801fi 6802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 6803$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 6804 if test $ac_cv_type_unsigned_long_long_int = yes; then 6805 6806$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 6807 6808 fi 6809 6810 6811 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 6812if test "x$ac_cv_func_vsnprintf" = xyes; then : 6813 hw_cv_func_vsnprintf=yes 6814else 6815 hw_cv_func_vsnprintf=no 6816fi 6817 6818 if test "$hw_cv_func_vsnprintf" = yes; then : 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5 6820$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; } 6821if ${hw_cv_func_vsnprintf_c99+:} false; then : 6822 $as_echo_n "(cached) " >&6 6823else 6824 if test "$cross_compiling" = yes; then : 6825 hw_cv_func_vsnprintf_c99=no 6826else 6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6828/* end confdefs.h. */ 6829#if HAVE_STDARG_H 6830 #include <stdarg.h> 6831 #endif 6832 #include <stdio.h> 6833 static int testprintf(char *buf, size_t size, const char *format, ...) 6834 { 6835 int result; 6836 va_list ap; 6837 va_start(ap, format); 6838 result = vsnprintf(buf, size, format, ap); 6839 va_end(ap); 6840 return result; 6841 } 6842int 6843main () 6844{ 6845char buf[43]; 6846 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 6847 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 6848 buf[0] != 'T' || buf[3] != '\0') 6849 return 1; 6850 ; 6851 return 0; 6852} 6853_ACEOF 6854if ac_fn_c_try_run "$LINENO"; then : 6855 hw_cv_func_vsnprintf_c99=yes 6856else 6857 hw_cv_func_vsnprintf_c99=no 6858fi 6859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6860 conftest.$ac_objext conftest.beam conftest.$ac_ext 6861fi 6862 6863fi 6864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5 6865$as_echo "$hw_cv_func_vsnprintf_c99" >&6; } 6866else 6867 hw_cv_func_vsnprintf_c99=no 6868fi 6869 6870$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 6871 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5 6873$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; } 6874 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then : 6875 hw_use_rpl_vsnprintf=yes 6876else 6877 hw_use_rpl_vsnprintf=no 6878fi 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5 6880$as_echo "$hw_use_rpl_vsnprintf" >&6; } 6881 if test "$hw_use_rpl_vsnprintf" = yes; then : 6882 6883$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h 6884 6885 if test ${hw_nodef_vsnprintf=no} = no; then : 6886 6887$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h 6888 6889fi 6890 for ac_header in inttypes.h locale.h stddef.h stdint.h 6891do : 6892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6893ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6894if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6895 cat >>confdefs.h <<_ACEOF 6896#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6897_ACEOF 6898 6899fi 6900 6901done 6902 6903 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 6904" 6905if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then : 6906 6907cat >>confdefs.h <<_ACEOF 6908#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1 6909_ACEOF 6910 6911 6912fi 6913ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h> 6914" 6915if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then : 6916 6917cat >>confdefs.h <<_ACEOF 6918#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1 6919_ACEOF 6920 6921 6922fi 6923 6924 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 6926$as_echo_n "checking for long double... " >&6; } 6927if ${ac_cv_type_long_double+:} false; then : 6928 $as_echo_n "(cached) " >&6 6929else 6930 if test "$GCC" = yes; then 6931 ac_cv_type_long_double=yes 6932 else 6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6934/* end confdefs.h. */ 6935/* The Stardent Vistra knows sizeof (long double), but does 6936 not support it. */ 6937 long double foo = 0.0L; 6938int 6939main () 6940{ 6941static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 6942 sizeof (double) <= sizeof (long double))]; 6943test_array [0] = 0; 6944return test_array [0]; 6945 6946 ; 6947 return 0; 6948} 6949_ACEOF 6950if ac_fn_c_try_compile "$LINENO"; then : 6951 ac_cv_type_long_double=yes 6952else 6953 ac_cv_type_long_double=no 6954fi 6955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6956 fi 6957fi 6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 6959$as_echo "$ac_cv_type_long_double" >&6; } 6960 if test $ac_cv_type_long_double = yes; then 6961 6962$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 6963 6964 fi 6965 6966 6967 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 6969$as_echo_n "checking for long long int... " >&6; } 6970if ${ac_cv_type_long_long_int+:} false; then : 6971 $as_echo_n "(cached) " >&6 6972else 6973 ac_cv_type_long_long_int=yes 6974 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 6975 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 6976 if test $ac_cv_type_long_long_int = yes; then 6977 if test "$cross_compiling" = yes; then : 6978 : 6979else 6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6981/* end confdefs.h. */ 6982#include <limits.h> 6983 #ifndef LLONG_MAX 6984 # define HALF \ 6985 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 6986 # define LLONG_MAX (HALF - 1 + HALF) 6987 #endif 6988int 6989main () 6990{ 6991long long int n = 1; 6992 int i; 6993 for (i = 0; ; i++) 6994 { 6995 long long int m = n << i; 6996 if (m >> i != n) 6997 return 1; 6998 if (LLONG_MAX / 2 < m) 6999 break; 7000 } 7001 return 0; 7002 ; 7003 return 0; 7004} 7005_ACEOF 7006if ac_fn_c_try_run "$LINENO"; then : 7007 7008else 7009 ac_cv_type_long_long_int=no 7010fi 7011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7012 conftest.$ac_objext conftest.beam conftest.$ac_ext 7013fi 7014 7015 fi 7016 fi 7017fi 7018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 7019$as_echo "$ac_cv_type_long_long_int" >&6; } 7020 if test $ac_cv_type_long_long_int = yes; then 7021 7022$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 7023 7024 fi 7025 7026 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 7028$as_echo_n "checking for unsigned long long int... " >&6; } 7029if ${ac_cv_type_unsigned_long_long_int+:} false; then : 7030 $as_echo_n "(cached) " >&6 7031else 7032 ac_cv_type_unsigned_long_long_int=yes 7033 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7035/* end confdefs.h. */ 7036 7037 /* For now, do not test the preprocessor; as of 2007 there are too many 7038 implementations with broken preprocessors. Perhaps this can 7039 be revisited in 2012. In the meantime, code should not expect 7040 #if to work with literals wider than 32 bits. */ 7041 /* Test literals. */ 7042 long long int ll = 9223372036854775807ll; 7043 long long int nll = -9223372036854775807LL; 7044 unsigned long long int ull = 18446744073709551615ULL; 7045 /* Test constant expressions. */ 7046 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 7047 ? 1 : -1)]; 7048 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 7049 ? 1 : -1)]; 7050 int i = 63; 7051int 7052main () 7053{ 7054/* Test availability of runtime routines for shift and division. */ 7055 long long int llmax = 9223372036854775807ll; 7056 unsigned long long int ullmax = 18446744073709551615ull; 7057 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 7058 | (llmax / ll) | (llmax % ll) 7059 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 7060 | (ullmax / ull) | (ullmax % ull)); 7061 ; 7062 return 0; 7063} 7064 7065_ACEOF 7066if ac_fn_c_try_link "$LINENO"; then : 7067 7068else 7069 ac_cv_type_unsigned_long_long_int=no 7070fi 7071rm -f core conftest.err conftest.$ac_objext \ 7072 conftest$ac_exeext conftest.$ac_ext 7073 fi 7074fi 7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 7076$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 7077 if test $ac_cv_type_unsigned_long_long_int = yes; then 7078 7079$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 7080 7081 fi 7082 7083 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7084if test "x$ac_cv_type_size_t" = xyes; then : 7085 7086else 7087 7088cat >>confdefs.h <<_ACEOF 7089#define size_t unsigned int 7090_ACEOF 7091 7092fi 7093 7094 7095 7096 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 7097if test "x$ac_cv_type_intmax_t" = xyes; then : 7098 7099$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 7100 7101else 7102 test $ac_cv_type_long_long_int = yes \ 7103 && ac_type='long long int' \ 7104 || ac_type='long int' 7105 7106cat >>confdefs.h <<_ACEOF 7107#define intmax_t $ac_type 7108_ACEOF 7109 7110fi 7111 7112 7113 7114 7115 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 7116if test "x$ac_cv_type_uintmax_t" = xyes; then : 7117 7118$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 7119 7120else 7121 test $ac_cv_type_unsigned_long_long_int = yes \ 7122 && ac_type='unsigned long long int' \ 7123 || ac_type='unsigned long int' 7124 7125cat >>confdefs.h <<_ACEOF 7126#define uintmax_t $ac_type 7127_ACEOF 7128 7129fi 7130 7131 7132 7133 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 7134if test "x$ac_cv_type_uintptr_t" = xyes; then : 7135 7136$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 7137 7138else 7139 for ac_type in 'unsigned int' 'unsigned long int' \ 7140 'unsigned long long int'; do 7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7142/* end confdefs.h. */ 7143$ac_includes_default 7144int 7145main () 7146{ 7147static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 7148test_array [0] = 0; 7149return test_array [0]; 7150 7151 ; 7152 return 0; 7153} 7154_ACEOF 7155if ac_fn_c_try_compile "$LINENO"; then : 7156 7157cat >>confdefs.h <<_ACEOF 7158#define uintptr_t $ac_type 7159_ACEOF 7160 7161 ac_type= 7162fi 7163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7164 test -z "$ac_type" && break 7165 done 7166fi 7167 7168 7169 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 7170if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 7171 7172cat >>confdefs.h <<_ACEOF 7173#define HAVE_PTRDIFF_T 1 7174_ACEOF 7175 7176 7177fi 7178 7179 for ac_func in localeconv 7180do : 7181 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv" 7182if test "x$ac_cv_func_localeconv" = xyes; then : 7183 cat >>confdefs.h <<_ACEOF 7184#define HAVE_LOCALECONV 1 7185_ACEOF 7186 7187fi 7188done 7189 7190 7191 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 7193$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 7194if ${ac_cv_c_const+:} false; then : 7195 $as_echo_n "(cached) " >&6 7196else 7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7198/* end confdefs.h. */ 7199 7200int 7201main () 7202{ 7203 7204#ifndef __cplusplus 7205 /* Ultrix mips cc rejects this sort of thing. */ 7206 typedef int charset[2]; 7207 const charset cs = { 0, 0 }; 7208 /* SunOS 4.1.1 cc rejects this. */ 7209 char const *const *pcpcc; 7210 char **ppc; 7211 /* NEC SVR4.0.2 mips cc rejects this. */ 7212 struct point {int x, y;}; 7213 static struct point const zero = {0,0}; 7214 /* AIX XL C 1.02.0.0 rejects this. 7215 It does not let you subtract one const X* pointer from another in 7216 an arm of an if-expression whose if-part is not a constant 7217 expression */ 7218 const char *g = "string"; 7219 pcpcc = &g + (g ? g-g : 0); 7220 /* HPUX 7.0 cc rejects these. */ 7221 ++pcpcc; 7222 ppc = (char**) pcpcc; 7223 pcpcc = (char const *const *) ppc; 7224 { /* SCO 3.2v4 cc rejects this sort of thing. */ 7225 char tx; 7226 char *t = &tx; 7227 char const *s = 0 ? (char *) 0 : (char const *) 0; 7228 7229 *t++ = 0; 7230 if (s) return 0; 7231 } 7232 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7233 int x[] = {25, 17}; 7234 const int *foo = &x[0]; 7235 ++foo; 7236 } 7237 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7238 typedef const int *iptr; 7239 iptr p = 0; 7240 ++p; 7241 } 7242 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 7243 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7244 struct s { int j; const int *ap[3]; } bx; 7245 struct s *b = &bx; b->j = 5; 7246 } 7247 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7248 const int foo = 10; 7249 if (!foo) return 0; 7250 } 7251 return !cs[0] && !zero.x; 7252#endif 7253 7254 ; 7255 return 0; 7256} 7257_ACEOF 7258if ac_fn_c_try_compile "$LINENO"; then : 7259 ac_cv_c_const=yes 7260else 7261 ac_cv_c_const=no 7262fi 7263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7264fi 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 7266$as_echo "$ac_cv_c_const" >&6; } 7267if test $ac_cv_c_const = no; then 7268 7269$as_echo "#define const /**/" >>confdefs.h 7270 7271fi 7272 7273 7274 7275 7276 case " $LIBOBJS " in 7277 *" snprintf.$ac_objext "* ) ;; 7278 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 7279 ;; 7280esac 7281 7282 _hw_cv_func_xprintf_replace_done=yes 7283fi 7284 7285fi 7286 7287 7288 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 7289if test "x$ac_cv_func_snprintf" = xyes; then : 7290 hw_cv_func_snprintf=yes 7291else 7292 hw_cv_func_snprintf=no 7293fi 7294 7295 if test "$hw_cv_func_snprintf" = yes; then : 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5 7297$as_echo_n "checking whether snprintf is C99 compliant... " >&6; } 7298if ${hw_cv_func_snprintf_c99+:} false; then : 7299 $as_echo_n "(cached) " >&6 7300else 7301 if test "$cross_compiling" = yes; then : 7302 hw_cv_func_snprintf_c99=no 7303else 7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7305/* end confdefs.h. */ 7306#include <stdio.h> 7307int 7308main () 7309{ 7310char buf[43]; 7311 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 7312 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 7313 buf[0] != 'T' || buf[3] != '\0') 7314 return 1; 7315 ; 7316 return 0; 7317} 7318_ACEOF 7319if ac_fn_c_try_run "$LINENO"; then : 7320 hw_cv_func_snprintf_c99=yes 7321else 7322 hw_cv_func_snprintf_c99=no 7323fi 7324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7325 conftest.$ac_objext conftest.beam conftest.$ac_ext 7326fi 7327 7328fi 7329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5 7330$as_echo "$hw_cv_func_snprintf_c99" >&6; } 7331else 7332 hw_cv_func_snprintf_c99=no 7333fi 7334 7335$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 7336 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5 7338$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; } 7339 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then : 7340 hw_use_rpl_snprintf=yes 7341else 7342 hw_use_rpl_snprintf=no 7343fi 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5 7345$as_echo "$hw_use_rpl_snprintf" >&6; } 7346 if test "$hw_use_rpl_snprintf" = yes; then : 7347 7348$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h 7349 7350 if test ${hw_nodef_snprintf=no} = no; then : 7351 7352$as_echo "#define snprintf rpl_snprintf" >>confdefs.h 7353 7354fi 7355 7356 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 7358$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 7359if ${ac_cv_c_const+:} false; then : 7360 $as_echo_n "(cached) " >&6 7361else 7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7363/* end confdefs.h. */ 7364 7365int 7366main () 7367{ 7368 7369#ifndef __cplusplus 7370 /* Ultrix mips cc rejects this sort of thing. */ 7371 typedef int charset[2]; 7372 const charset cs = { 0, 0 }; 7373 /* SunOS 4.1.1 cc rejects this. */ 7374 char const *const *pcpcc; 7375 char **ppc; 7376 /* NEC SVR4.0.2 mips cc rejects this. */ 7377 struct point {int x, y;}; 7378 static struct point const zero = {0,0}; 7379 /* AIX XL C 1.02.0.0 rejects this. 7380 It does not let you subtract one const X* pointer from another in 7381 an arm of an if-expression whose if-part is not a constant 7382 expression */ 7383 const char *g = "string"; 7384 pcpcc = &g + (g ? g-g : 0); 7385 /* HPUX 7.0 cc rejects these. */ 7386 ++pcpcc; 7387 ppc = (char**) pcpcc; 7388 pcpcc = (char const *const *) ppc; 7389 { /* SCO 3.2v4 cc rejects this sort of thing. */ 7390 char tx; 7391 char *t = &tx; 7392 char const *s = 0 ? (char *) 0 : (char const *) 0; 7393 7394 *t++ = 0; 7395 if (s) return 0; 7396 } 7397 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7398 int x[] = {25, 17}; 7399 const int *foo = &x[0]; 7400 ++foo; 7401 } 7402 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7403 typedef const int *iptr; 7404 iptr p = 0; 7405 ++p; 7406 } 7407 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 7408 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7409 struct s { int j; const int *ap[3]; } bx; 7410 struct s *b = &bx; b->j = 5; 7411 } 7412 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7413 const int foo = 10; 7414 if (!foo) return 0; 7415 } 7416 return !cs[0] && !zero.x; 7417#endif 7418 7419 ; 7420 return 0; 7421} 7422_ACEOF 7423if ac_fn_c_try_compile "$LINENO"; then : 7424 ac_cv_c_const=yes 7425else 7426 ac_cv_c_const=no 7427fi 7428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7429fi 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 7431$as_echo "$ac_cv_c_const" >&6; } 7432if test $ac_cv_c_const = no; then 7433 7434$as_echo "#define const /**/" >>confdefs.h 7435 7436fi 7437 7438 7439 7440 7441 case " $LIBOBJS " in 7442 *" snprintf.$ac_objext "* ) ;; 7443 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 7444 ;; 7445esac 7446 7447 _hw_cv_func_xprintf_replace_done=yes 7448fi 7449 7450fi 7451 7452 7453 7454 7455 7456# HMS: Save $LIBS and empty it. 7457# any LIBS we add here should go in to LDADD_LIBNTP 7458 7459__LIBS=$LIBS 7460LIBS= 7461 7462 7463 7464# [Bug 2332] because we need to know if we are using GNU ld... 7465 7466 7467# Check whether --with-gnu-ld was given. 7468if test "${with_gnu_ld+set}" = set; then : 7469 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7470else 7471 with_gnu_ld=no 7472fi 7473 7474ac_prog=ld 7475if test yes = "$GCC"; then 7476 # Check if gcc -print-prog-name=ld gives a path. 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7478$as_echo_n "checking for ld used by $CC... " >&6; } 7479 case $host in 7480 *-*-mingw*) 7481 # gcc leaves a trailing carriage return, which upsets mingw 7482 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7483 *) 7484 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7485 esac 7486 case $ac_prog in 7487 # Accept absolute paths. 7488 [\\/]* | ?:[\\/]*) 7489 re_direlt='/[^/][^/]*/\.\./' 7490 # Canonicalize the pathname of ld 7491 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7492 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7493 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7494 done 7495 test -z "$LD" && LD=$ac_prog 7496 ;; 7497 "") 7498 # If it fails, then pretend we aren't using GCC. 7499 ac_prog=ld 7500 ;; 7501 *) 7502 # If it is relative, then search for the first ld in PATH. 7503 with_gnu_ld=unknown 7504 ;; 7505 esac 7506elif test yes = "$with_gnu_ld"; then 7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7508$as_echo_n "checking for GNU ld... " >&6; } 7509else 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7511$as_echo_n "checking for non-GNU ld... " >&6; } 7512fi 7513if ${lt_cv_path_LD+:} false; then : 7514 $as_echo_n "(cached) " >&6 7515else 7516 if test -z "$LD"; then 7517 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7518 for ac_dir in $PATH; do 7519 IFS=$lt_save_ifs 7520 test -z "$ac_dir" && ac_dir=. 7521 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7522 lt_cv_path_LD=$ac_dir/$ac_prog 7523 # Check to see if the program is GNU ld. I'd rather use --version, 7524 # but apparently some variants of GNU ld only accept -v. 7525 # Break only if it was the GNU/non-GNU ld that we prefer. 7526 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7527 *GNU* | *'with BFD'*) 7528 test no != "$with_gnu_ld" && break 7529 ;; 7530 *) 7531 test yes != "$with_gnu_ld" && break 7532 ;; 7533 esac 7534 fi 7535 done 7536 IFS=$lt_save_ifs 7537else 7538 lt_cv_path_LD=$LD # Let the user override the test with a path. 7539fi 7540fi 7541 7542LD=$lt_cv_path_LD 7543if test -n "$LD"; then 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7545$as_echo "$LD" >&6; } 7546else 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7548$as_echo "no" >&6; } 7549fi 7550test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7552$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7553if ${lt_cv_prog_gnu_ld+:} false; then : 7554 $as_echo_n "(cached) " >&6 7555else 7556 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7557case `$LD -v 2>&1 </dev/null` in 7558*GNU* | *'with BFD'*) 7559 lt_cv_prog_gnu_ld=yes 7560 ;; 7561*) 7562 lt_cv_prog_gnu_ld=no 7563 ;; 7564esac 7565fi 7566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7567$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7568with_gnu_ld=$lt_cv_prog_gnu_ld 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5 7581$as_echo_n "checking for directory path separator... " >&6; } 7582if ${ntp_cv_dir_sep+:} false; then : 7583 $as_echo_n "(cached) " >&6 7584else 7585 7586 case "$ntp_cv_dir_sep" in 7587 '') 7588 case "$host_os" in 7589 *djgpp | *mingw32* | *emx*) 7590 ntp_cv_dir_sep="'\\'" 7591 ;; 7592 *) 7593 ntp_cv_dir_sep="'/'" 7594 ;; 7595 esac 7596 esac 7597 7598 7599fi 7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5 7601$as_echo "$ntp_cv_dir_sep" >&6; } 7602 7603cat >>confdefs.h <<_ACEOF 7604#define DIR_SEP $ntp_cv_dir_sep 7605_ACEOF 7606 7607 7608 7609 NTP_ORIG_LIBS="$LIBS" 7610 7611# Check whether --with-lineeditlibs was given. 7612if test "${with_lineeditlibs+set}" = set; then : 7613 withval=$with_lineeditlibs; use_lineeditlibs="$withval" 7614else 7615 use_lineeditlibs="edit,editline" 7616 7617fi 7618 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5 7620$as_echo_n "checking line editing libraries... " >&6; } 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5 7622$as_echo "$use_lineeditlibs" >&6; } 7623 case "$use_lineeditlibs" in 7624 no) 7625 ntp_lib_lineedit=no 7626 ;; 7627 *) 7628 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do 7629 for term_lib in "" termcap curses ncurses; do 7630 case "$term_lib" in 7631 '') 7632 TRY_LIB="-l$lineedit_lib" 7633 ;; 7634 *) 7635 TRY_LIB="-l$lineedit_lib -l$term_lib" 7636 ;; 7637 esac 7638 LIBS="$NTP_ORIG_LIBS $TRY_LIB" 7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5 7640$as_echo_n "checking for readline() with $TRY_LIB... " >&6; } 7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7642/* end confdefs.h. */ 7643 7644/* Override any GCC internal prototype to avoid an error. 7645 Use char because int might match the return type of a GCC 7646 builtin and then its argument prototype would still apply. */ 7647#ifdef __cplusplus 7648extern "C" 7649#endif 7650char readline (); 7651int 7652main () 7653{ 7654return readline (); 7655 ; 7656 return 0; 7657} 7658_ACEOF 7659if ac_fn_c_try_link "$LINENO"; then : 7660 ntp_lib_lineedit="$TRY_LIB" 7661fi 7662rm -f core conftest.err conftest.$ac_objext \ 7663 conftest$ac_exeext conftest.$ac_ext 7664 case "$ntp_lib_lineedit" in 7665 '') 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7667$as_echo "no" >&6; } 7668 ;; 7669 *) 7670 # Use readline() 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7672$as_echo "yes" >&6; } 7673 break 7674 esac 7675 case "$term_lib" in 7676 '') 7677 # do not try el_gets without a terminal library 7678 ;; 7679 *) 7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5 7681$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; } 7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7683/* end confdefs.h. */ 7684 7685/* Override any GCC internal prototype to avoid an error. 7686 Use char because int might match the return type of a GCC 7687 builtin and then its argument prototype would still apply. */ 7688#ifdef __cplusplus 7689extern "C" 7690#endif 7691char el_gets (); 7692int 7693main () 7694{ 7695return el_gets (); 7696 ; 7697 return 0; 7698} 7699_ACEOF 7700if ac_fn_c_try_link "$LINENO"; then : 7701 ntp_lib_lineedit="$TRY_LIB" 7702fi 7703rm -f core conftest.err conftest.$ac_objext \ 7704 conftest$ac_exeext conftest.$ac_ext 7705 case "$ntp_lib_lineedit" in 7706 '') 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7708$as_echo "no" >&6; } 7709 ;; 7710 *) # Use el_gets() 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7712$as_echo "yes" >&6; } 7713 break 7714 ;; 7715 esac # $ntp_lib_lineedit 7716 esac # $term_lib 7717 done 7718 case "$ntp_lib_lineedit" in 7719 '') 7720 ;; 7721 *) 7722 break 7723 ;; 7724 esac 7725 done 7726 LIBS="$NTP_ORIG_LIBS" 7727 ;; 7728 esac # $use_lineeditlibs 7729 7730 case "$ntp_lib_lineedit" in 7731 '') 7732 ntp_lib_lineedit="no" 7733 ;; 7734 no) 7735 ;; 7736 *) 7737 EDITLINE_LIBS="$ntp_lib_lineedit" 7738 7739 ;; 7740 esac # $ntp_lib_lineedit 7741 7742 case "$ntp_lib_lineedit" in 7743 no) 7744 ;; 7745 *) 7746 for ac_header in readline.h readline/readline.h histedit.h 7747do : 7748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7749ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7750if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7751 cat >>confdefs.h <<_ACEOF 7752#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7753_ACEOF 7754 7755fi 7756 7757done 7758 7759 for ac_header in history.h readline/history.h 7760do : 7761 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7762ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7763if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7764 cat >>confdefs.h <<_ACEOF 7765#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7766_ACEOF 7767 7768fi 7769 7770done 7771 7772 7773 case "$ac_cv_header_histedit_h" in 7774 yes) 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5 7776$as_echo_n "checking number of arguments to el_init()... " >&6; } 7777if ${ntp_cv_el_init_args+:} false; then : 7778 $as_echo_n "(cached) " >&6 7779else 7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7781/* end confdefs.h. */ 7782 7783 #include <stdio.h> 7784 #include <histedit.h> 7785 7786int 7787main () 7788{ 7789 7790 el_init("conftest", stdin, stdout, stderr); 7791 7792 7793 ; 7794 return 0; 7795} 7796_ACEOF 7797if ac_fn_c_try_compile "$LINENO"; then : 7798 ntp_cv_el_init_args=4 7799else 7800 ntp_cv_el_init_args=3 7801 7802fi 7803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7804 7805fi 7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5 7807$as_echo "$ntp_cv_el_init_args" >&6; } 7808 7809cat >>confdefs.h <<_ACEOF 7810#define EL_INIT_ARGS $ntp_cv_el_init_args 7811_ACEOF 7812 7813 esac 7814 7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 7816$as_echo_n "checking whether readline supports history... " >&6; } 7817 7818 ntp_lib_lineedit_history="no" 7819 ORIG_LIBS="$LIBS" 7820 LIBS="$ORIG_LIBS $ntp_lib_lineedit" 7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7822/* end confdefs.h. */ 7823 7824/* Override any GCC internal prototype to avoid an error. 7825 Use char because int might match the return type of a GCC 7826 builtin and then its argument prototype would still apply. */ 7827#ifdef __cplusplus 7828extern "C" 7829#endif 7830char add_history (); 7831int 7832main () 7833{ 7834return add_history (); 7835 ; 7836 return 0; 7837} 7838_ACEOF 7839if ac_fn_c_try_link "$LINENO"; then : 7840 ntp_lib_lineedit_history="yes" 7841fi 7842rm -f core conftest.err conftest.$ac_objext \ 7843 conftest$ac_exeext conftest.$ac_ext 7844 LIBS="$ORIG_LIBS" 7845 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5 7847$as_echo "$ntp_lib_lineedit_history" >&6; } 7848 7849 case "$ntp_lib_lineedit_history" in 7850 yes) 7851 7852$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h 7853 7854 esac 7855 esac # $ntp_lib_lineedit 7856 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;} 7857 { ORIG_LIBS=; unset ORIG_LIBS;} 7858 { TRY_LIB=; unset TRY_LIB;} 7859 { use_lineeditlibs=; unset use_lineeditlibs;} 7860 7861 7862LIBM= 7863case "$host" in 7864 *-*-darwin*) 7865 ;; 7866 *) 7867 _libs=$LIBS 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5 7869$as_echo_n "checking for library containing cos... " >&6; } 7870if ${ac_cv_search_cos+:} false; then : 7871 $as_echo_n "(cached) " >&6 7872else 7873 ac_func_search_save_LIBS=$LIBS 7874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7875/* end confdefs.h. */ 7876 7877/* Override any GCC internal prototype to avoid an error. 7878 Use char because int might match the return type of a GCC 7879 builtin and then its argument prototype would still apply. */ 7880#ifdef __cplusplus 7881extern "C" 7882#endif 7883char cos (); 7884int 7885main () 7886{ 7887return cos (); 7888 ; 7889 return 0; 7890} 7891_ACEOF 7892for ac_lib in '' m; do 7893 if test -z "$ac_lib"; then 7894 ac_res="none required" 7895 else 7896 ac_res=-l$ac_lib 7897 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7898 fi 7899 if ac_fn_c_try_link "$LINENO"; then : 7900 ac_cv_search_cos=$ac_res 7901fi 7902rm -f core conftest.err conftest.$ac_objext \ 7903 conftest$ac_exeext 7904 if ${ac_cv_search_cos+:} false; then : 7905 break 7906fi 7907done 7908if ${ac_cv_search_cos+:} false; then : 7909 7910else 7911 ac_cv_search_cos=no 7912fi 7913rm conftest.$ac_ext 7914LIBS=$ac_func_search_save_LIBS 7915fi 7916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5 7917$as_echo "$ac_cv_search_cos" >&6; } 7918ac_res=$ac_cv_search_cos 7919if test "$ac_res" != no; then : 7920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7921 LIBM="-lm" 7922fi 7923 7924 LIBS=$_libs 7925 ;; 7926esac 7927 7928{ _libs=; unset _libs;} 7929 7930 7931for ac_header in vfork.h 7932do : 7933 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 7934if test "x$ac_cv_header_vfork_h" = xyes; then : 7935 cat >>confdefs.h <<_ACEOF 7936#define HAVE_VFORK_H 1 7937_ACEOF 7938 7939fi 7940 7941done 7942 7943for ac_func in fork vfork 7944do : 7945 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7946ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7947if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7948 cat >>confdefs.h <<_ACEOF 7949#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7950_ACEOF 7951 7952fi 7953done 7954 7955if test "x$ac_cv_func_fork" = xyes; then 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 7957$as_echo_n "checking for working fork... " >&6; } 7958if ${ac_cv_func_fork_works+:} false; then : 7959 $as_echo_n "(cached) " >&6 7960else 7961 if test "$cross_compiling" = yes; then : 7962 ac_cv_func_fork_works=cross 7963else 7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7965/* end confdefs.h. */ 7966$ac_includes_default 7967int 7968main () 7969{ 7970 7971 /* By Ruediger Kuhlmann. */ 7972 return fork () < 0; 7973 7974 ; 7975 return 0; 7976} 7977_ACEOF 7978if ac_fn_c_try_run "$LINENO"; then : 7979 ac_cv_func_fork_works=yes 7980else 7981 ac_cv_func_fork_works=no 7982fi 7983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7984 conftest.$ac_objext conftest.beam conftest.$ac_ext 7985fi 7986 7987fi 7988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 7989$as_echo "$ac_cv_func_fork_works" >&6; } 7990 7991else 7992 ac_cv_func_fork_works=$ac_cv_func_fork 7993fi 7994if test "x$ac_cv_func_fork_works" = xcross; then 7995 case $host in 7996 *-*-amigaos* | *-*-msdosdjgpp*) 7997 # Override, as these systems have only a dummy fork() stub 7998 ac_cv_func_fork_works=no 7999 ;; 8000 *) 8001 ac_cv_func_fork_works=yes 8002 ;; 8003 esac 8004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 8005$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 8006fi 8007ac_cv_func_vfork_works=$ac_cv_func_vfork 8008if test "x$ac_cv_func_vfork" = xyes; then 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 8010$as_echo_n "checking for working vfork... " >&6; } 8011if ${ac_cv_func_vfork_works+:} false; then : 8012 $as_echo_n "(cached) " >&6 8013else 8014 if test "$cross_compiling" = yes; then : 8015 ac_cv_func_vfork_works=cross 8016else 8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8018/* end confdefs.h. */ 8019/* Thanks to Paul Eggert for this test. */ 8020$ac_includes_default 8021#include <sys/wait.h> 8022#ifdef HAVE_VFORK_H 8023# include <vfork.h> 8024#endif 8025/* On some sparc systems, changes by the child to local and incoming 8026 argument registers are propagated back to the parent. The compiler 8027 is told about this with #include <vfork.h>, but some compilers 8028 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 8029 static variable whose address is put into a register that is 8030 clobbered by the vfork. */ 8031static void 8032#ifdef __cplusplus 8033sparc_address_test (int arg) 8034# else 8035sparc_address_test (arg) int arg; 8036#endif 8037{ 8038 static pid_t child; 8039 if (!child) { 8040 child = vfork (); 8041 if (child < 0) { 8042 perror ("vfork"); 8043 _exit(2); 8044 } 8045 if (!child) { 8046 arg = getpid(); 8047 write(-1, "", 0); 8048 _exit (arg); 8049 } 8050 } 8051} 8052 8053int 8054main () 8055{ 8056 pid_t parent = getpid (); 8057 pid_t child; 8058 8059 sparc_address_test (0); 8060 8061 child = vfork (); 8062 8063 if (child == 0) { 8064 /* Here is another test for sparc vfork register problems. This 8065 test uses lots of local variables, at least as many local 8066 variables as main has allocated so far including compiler 8067 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 8068 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 8069 reuse the register of parent for one of the local variables, 8070 since it will think that parent can't possibly be used any more 8071 in this routine. Assigning to the local variable will thus 8072 munge parent in the parent process. */ 8073 pid_t 8074 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 8075 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 8076 /* Convince the compiler that p..p7 are live; otherwise, it might 8077 use the same hardware register for all 8 local variables. */ 8078 if (p != p1 || p != p2 || p != p3 || p != p4 8079 || p != p5 || p != p6 || p != p7) 8080 _exit(1); 8081 8082 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 8083 from child file descriptors. If the child closes a descriptor 8084 before it execs or exits, this munges the parent's descriptor 8085 as well. Test for this by closing stdout in the child. */ 8086 _exit(close(fileno(stdout)) != 0); 8087 } else { 8088 int status; 8089 struct stat st; 8090 8091 while (wait(&status) != child) 8092 ; 8093 return ( 8094 /* Was there some problem with vforking? */ 8095 child < 0 8096 8097 /* Did the child fail? (This shouldn't happen.) */ 8098 || status 8099 8100 /* Did the vfork/compiler bug occur? */ 8101 || parent != getpid() 8102 8103 /* Did the file descriptor bug occur? */ 8104 || fstat(fileno(stdout), &st) != 0 8105 ); 8106 } 8107} 8108_ACEOF 8109if ac_fn_c_try_run "$LINENO"; then : 8110 ac_cv_func_vfork_works=yes 8111else 8112 ac_cv_func_vfork_works=no 8113fi 8114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8115 conftest.$ac_objext conftest.beam conftest.$ac_ext 8116fi 8117 8118fi 8119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 8120$as_echo "$ac_cv_func_vfork_works" >&6; } 8121 8122fi; 8123if test "x$ac_cv_func_fork_works" = xcross; then 8124 ac_cv_func_vfork_works=$ac_cv_func_vfork 8125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 8126$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 8127fi 8128 8129if test "x$ac_cv_func_vfork_works" = xyes; then 8130 8131$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 8132 8133else 8134 8135$as_echo "#define vfork fork" >>confdefs.h 8136 8137fi 8138if test "x$ac_cv_func_fork_works" = xyes; then 8139 8140$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 8141 8142fi 8143 8144# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8145# for constant arguments. Useless! 8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 8147$as_echo_n "checking for working alloca.h... " >&6; } 8148if ${ac_cv_working_alloca_h+:} false; then : 8149 $as_echo_n "(cached) " >&6 8150else 8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8152/* end confdefs.h. */ 8153#include <alloca.h> 8154int 8155main () 8156{ 8157char *p = (char *) alloca (2 * sizeof (int)); 8158 if (p) return 0; 8159 ; 8160 return 0; 8161} 8162_ACEOF 8163if ac_fn_c_try_link "$LINENO"; then : 8164 ac_cv_working_alloca_h=yes 8165else 8166 ac_cv_working_alloca_h=no 8167fi 8168rm -f core conftest.err conftest.$ac_objext \ 8169 conftest$ac_exeext conftest.$ac_ext 8170fi 8171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 8172$as_echo "$ac_cv_working_alloca_h" >&6; } 8173if test $ac_cv_working_alloca_h = yes; then 8174 8175$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 8176 8177fi 8178 8179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 8180$as_echo_n "checking for alloca... " >&6; } 8181if ${ac_cv_func_alloca_works+:} false; then : 8182 $as_echo_n "(cached) " >&6 8183else 8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8185/* end confdefs.h. */ 8186#ifdef __GNUC__ 8187# define alloca __builtin_alloca 8188#else 8189# ifdef _MSC_VER 8190# include <malloc.h> 8191# define alloca _alloca 8192# else 8193# ifdef HAVE_ALLOCA_H 8194# include <alloca.h> 8195# else 8196# ifdef _AIX 8197 #pragma alloca 8198# else 8199# ifndef alloca /* predefined by HP cc +Olibcalls */ 8200void *alloca (size_t); 8201# endif 8202# endif 8203# endif 8204# endif 8205#endif 8206 8207int 8208main () 8209{ 8210char *p = (char *) alloca (1); 8211 if (p) return 0; 8212 ; 8213 return 0; 8214} 8215_ACEOF 8216if ac_fn_c_try_link "$LINENO"; then : 8217 ac_cv_func_alloca_works=yes 8218else 8219 ac_cv_func_alloca_works=no 8220fi 8221rm -f core conftest.err conftest.$ac_objext \ 8222 conftest$ac_exeext conftest.$ac_ext 8223fi 8224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 8225$as_echo "$ac_cv_func_alloca_works" >&6; } 8226 8227if test $ac_cv_func_alloca_works = yes; then 8228 8229$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 8230 8231else 8232 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 8233# that cause trouble. Some versions do not even contain alloca or 8234# contain a buggy version. If you still want to use their alloca, 8235# use ar to extract alloca.o from them instead of compiling alloca.c. 8236 8237ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 8238 8239$as_echo "#define C_ALLOCA 1" >>confdefs.h 8240 8241 8242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 8243$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 8244if ${ac_cv_os_cray+:} false; then : 8245 $as_echo_n "(cached) " >&6 8246else 8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8248/* end confdefs.h. */ 8249#if defined CRAY && ! defined CRAY2 8250webecray 8251#else 8252wenotbecray 8253#endif 8254 8255_ACEOF 8256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8257 $EGREP "webecray" >/dev/null 2>&1; then : 8258 ac_cv_os_cray=yes 8259else 8260 ac_cv_os_cray=no 8261fi 8262rm -f conftest* 8263 8264fi 8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 8266$as_echo "$ac_cv_os_cray" >&6; } 8267if test $ac_cv_os_cray = yes; then 8268 for ac_func in _getb67 GETB67 getb67; do 8269 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8270ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8271if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8272 8273cat >>confdefs.h <<_ACEOF 8274#define CRAY_STACKSEG_END $ac_func 8275_ACEOF 8276 8277 break 8278fi 8279 8280 done 8281fi 8282 8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 8284$as_echo_n "checking stack direction for C alloca... " >&6; } 8285if ${ac_cv_c_stack_direction+:} false; then : 8286 $as_echo_n "(cached) " >&6 8287else 8288 if test "$cross_compiling" = yes; then : 8289 ac_cv_c_stack_direction=0 8290else 8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8292/* end confdefs.h. */ 8293$ac_includes_default 8294int 8295find_stack_direction (int *addr, int depth) 8296{ 8297 int dir, dummy = 0; 8298 if (! addr) 8299 addr = &dummy; 8300 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 8301 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 8302 return dir + dummy; 8303} 8304 8305int 8306main (int argc, char **argv) 8307{ 8308 return find_stack_direction (0, argc + !argv + 20) < 0; 8309} 8310_ACEOF 8311if ac_fn_c_try_run "$LINENO"; then : 8312 ac_cv_c_stack_direction=1 8313else 8314 ac_cv_c_stack_direction=-1 8315fi 8316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8317 conftest.$ac_objext conftest.beam conftest.$ac_ext 8318fi 8319 8320fi 8321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 8322$as_echo "$ac_cv_c_stack_direction" >&6; } 8323cat >>confdefs.h <<_ACEOF 8324#define STACK_DIRECTION $ac_cv_c_stack_direction 8325_ACEOF 8326 8327 8328fi 8329 8330ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 8331if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 8332 ac_have_decl=1 8333else 8334 ac_have_decl=0 8335fi 8336 8337cat >>confdefs.h <<_ACEOF 8338#define HAVE_DECL_STRERROR_R $ac_have_decl 8339_ACEOF 8340 8341for ac_func in strerror_r 8342do : 8343 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 8344if test "x$ac_cv_func_strerror_r" = xyes; then : 8345 cat >>confdefs.h <<_ACEOF 8346#define HAVE_STRERROR_R 1 8347_ACEOF 8348 8349fi 8350done 8351 8352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 8353$as_echo_n "checking whether strerror_r returns char *... " >&6; } 8354if ${ac_cv_func_strerror_r_char_p+:} false; then : 8355 $as_echo_n "(cached) " >&6 8356else 8357 8358 ac_cv_func_strerror_r_char_p=no 8359 if test $ac_cv_have_decl_strerror_r = yes; then 8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8361/* end confdefs.h. */ 8362$ac_includes_default 8363int 8364main () 8365{ 8366 8367 char buf[100]; 8368 char x = *strerror_r (0, buf, sizeof buf); 8369 char *p = strerror_r (0, buf, sizeof buf); 8370 return !p || x; 8371 8372 ; 8373 return 0; 8374} 8375_ACEOF 8376if ac_fn_c_try_compile "$LINENO"; then : 8377 ac_cv_func_strerror_r_char_p=yes 8378fi 8379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8380 else 8381 # strerror_r is not declared. Choose between 8382 # systems that have relatively inaccessible declarations for the 8383 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 8384 # former has a strerror_r that returns char*, while the latter 8385 # has a strerror_r that returns `int'. 8386 # This test should segfault on the DEC system. 8387 if test "$cross_compiling" = yes; then : 8388 : 8389else 8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8391/* end confdefs.h. */ 8392$ac_includes_default 8393 extern char *strerror_r (); 8394int 8395main () 8396{ 8397char buf[100]; 8398 char x = *strerror_r (0, buf, sizeof buf); 8399 return ! isalpha (x); 8400 ; 8401 return 0; 8402} 8403_ACEOF 8404if ac_fn_c_try_run "$LINENO"; then : 8405 ac_cv_func_strerror_r_char_p=yes 8406fi 8407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8408 conftest.$ac_objext conftest.beam conftest.$ac_ext 8409fi 8410 8411 fi 8412 8413fi 8414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 8415$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 8416if test $ac_cv_func_strerror_r_char_p = yes; then 8417 8418$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 8419 8420fi 8421 8422 8423ac_busted_vpath_in_make=no 8424case "$build" in 8425 *-*-irix6.1*) # 64 bit only 8426 # busted vpath? 8427 ;; 8428 *-*-irix6*) # 6.2 (and later?) 8429 ac_busted_vpath_in_make=yes 8430 ;; 8431 *-*-solaris2.5.1) 8432 ac_busted_vpath_in_make=yes 8433 ;; 8434 *-*-unicosmp*) 8435 ac_busted_vpath_in_make=yes 8436 ;; 8437esac 8438 8439case "$ac_busted_vpath_in_make$srcdir" in 8440 yes.|no*) 8441 ;; 8442 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in 8443 '') 8444 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5 8445 esac 8446 ;; 8447esac 8448 8449case "$host" in 8450 *-*-aix4*) 8451 # Bug 2516: 8452 # Was *-*-aix[[4-9]]* 8453 # XXX only verified thru AIX6. But... 8454 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason 8455 # that this support would be in 5.3, removed in 6, and added back. 8456 # 8457 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub 8458 # (returning ENOSYS). I didn't check 4.2. If, in the future, 8459 # IBM pulls its thumbs out long enough to implement clock_settime, 8460 # this conditional will need to change. Maybe use AC_TRY_RUN 8461 # instead to try to set the time to itself and check errno. 8462 ;; 8463 *) 8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 8465$as_echo_n "checking for library containing clock_gettime... " >&6; } 8466if ${ac_cv_search_clock_gettime+:} false; then : 8467 $as_echo_n "(cached) " >&6 8468else 8469 ac_func_search_save_LIBS=$LIBS 8470cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8471/* end confdefs.h. */ 8472 8473/* Override any GCC internal prototype to avoid an error. 8474 Use char because int might match the return type of a GCC 8475 builtin and then its argument prototype would still apply. */ 8476#ifdef __cplusplus 8477extern "C" 8478#endif 8479char clock_gettime (); 8480int 8481main () 8482{ 8483return clock_gettime (); 8484 ; 8485 return 0; 8486} 8487_ACEOF 8488for ac_lib in '' rt; do 8489 if test -z "$ac_lib"; then 8490 ac_res="none required" 8491 else 8492 ac_res=-l$ac_lib 8493 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8494 fi 8495 if ac_fn_c_try_link "$LINENO"; then : 8496 ac_cv_search_clock_gettime=$ac_res 8497fi 8498rm -f core conftest.err conftest.$ac_objext \ 8499 conftest$ac_exeext 8500 if ${ac_cv_search_clock_gettime+:} false; then : 8501 break 8502fi 8503done 8504if ${ac_cv_search_clock_gettime+:} false; then : 8505 8506else 8507 ac_cv_search_clock_gettime=no 8508fi 8509rm conftest.$ac_ext 8510LIBS=$ac_func_search_save_LIBS 8511fi 8512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 8513$as_echo "$ac_cv_search_clock_gettime" >&6; } 8514ac_res=$ac_cv_search_clock_gettime 8515if test "$ac_res" != no; then : 8516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8517 case "$ac_cv_search_clock_gettime" in 8518 'none required') ;; 8519 no) ;; 8520 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;; 8521 esac 8522 8523fi 8524 8525 for ac_func in clock_getres clock_gettime clock_settime 8526do : 8527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8528ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8529if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8530 cat >>confdefs.h <<_ACEOF 8531#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8532_ACEOF 8533 8534fi 8535done 8536 8537 ;; 8538esac 8539 8540for ac_func in getclock stime timegm strlcpy strlcat 8541do : 8542 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8543ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8544if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8545 cat >>confdefs.h <<_ACEOF 8546#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8547_ACEOF 8548 8549fi 8550done 8551 8552 8553# Bug 2713 8554LDADD_LIBUTIL= 8555 8556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5 8557$as_echo_n "checking for library containing snprintb... " >&6; } 8558if ${ac_cv_search_snprintb+:} false; then : 8559 $as_echo_n "(cached) " >&6 8560else 8561 ac_func_search_save_LIBS=$LIBS 8562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8563/* end confdefs.h. */ 8564 8565/* Override any GCC internal prototype to avoid an error. 8566 Use char because int might match the return type of a GCC 8567 builtin and then its argument prototype would still apply. */ 8568#ifdef __cplusplus 8569extern "C" 8570#endif 8571char snprintb (); 8572int 8573main () 8574{ 8575return snprintb (); 8576 ; 8577 return 0; 8578} 8579_ACEOF 8580for ac_lib in '' util; do 8581 if test -z "$ac_lib"; then 8582 ac_res="none required" 8583 else 8584 ac_res=-l$ac_lib 8585 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8586 fi 8587 if ac_fn_c_try_link "$LINENO"; then : 8588 ac_cv_search_snprintb=$ac_res 8589fi 8590rm -f core conftest.err conftest.$ac_objext \ 8591 conftest$ac_exeext 8592 if ${ac_cv_search_snprintb+:} false; then : 8593 break 8594fi 8595done 8596if ${ac_cv_search_snprintb+:} false; then : 8597 8598else 8599 ac_cv_search_snprintb=no 8600fi 8601rm conftest.$ac_ext 8602LIBS=$ac_func_search_save_LIBS 8603fi 8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5 8605$as_echo "$ac_cv_search_snprintb" >&6; } 8606ac_res=$ac_cv_search_snprintb 8607if test "$ac_res" != no; then : 8608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8609 case "$ac_cv_search_snprintb" in 8610 'none required') ;; 8611 no) ;; 8612 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;; 8613 esac 8614 8615$as_echo "#define USE_SNPRINTB 1" >>confdefs.h 8616 8617fi 8618 8619 8620# 8621for ac_header in errno.h sys/socket.h sys/types.h time.h 8622do : 8623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8624ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8625if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8626 cat >>confdefs.h <<_ACEOF 8627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8628_ACEOF 8629 8630fi 8631 8632done 8633 8634for ac_header in net/if.h 8635do : 8636 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 8637 #ifdef HAVE_SYS_SOCKET_H 8638 # include <sys/socket.h> 8639 #endif 8640 8641" 8642if test "x$ac_cv_header_net_if_h" = xyes; then : 8643 cat >>confdefs.h <<_ACEOF 8644#define HAVE_NET_IF_H 1 8645_ACEOF 8646 8647fi 8648 8649done 8650 8651case "$host" in 8652 *-hp-hpux*) 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5 8654$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; } 8655if ${ntp_cv_predecl_mpinfou+:} false; then : 8656 $as_echo_n "(cached) " >&6 8657else 8658 8659 np_cv_predecl_mpinfou=no 8660 case "$ac_cv_header_net_if_h" in 8661 no) 8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8663/* end confdefs.h. */ 8664 8665 typedef union mpinfou { 8666 struct pdk_mpinfo *pdkptr; 8667 struct mpinfo *pikptr; 8668 } mpinfou_t; 8669 #ifdef HAVE_SYS_SOCKET_H 8670 # include <sys/socket.h> 8671 #endif 8672 #include <net/if.h> 8673 8674int 8675main () 8676{ 8677 8678 8679 8680 ; 8681 return 0; 8682} 8683_ACEOF 8684if ac_fn_c_try_compile "$LINENO"; then : 8685 8686 ntp_cv_predecl_mpinfou=yes 8687 ac_cv_header_net_if_h=yes 8688 8689 8690fi 8691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8692 esac 8693 8694 8695fi 8696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5 8697$as_echo "$ntp_cv_predecl_mpinfou" >&6; } 8698 case "$ntp_cv_predecl_mpinfou" in 8699 yes) 8700 cat >>confdefs.h <<_ACEOF 8701#ifndef MPINFOU_PREDECLARED 8702# define MPINFOU_PREDECLARED 8703typedef union mpinfou { 8704 struct pdk_mpinfo *pdkptr; 8705 struct mpinfo *pikptr; 8706} mpinfou_t; 8707#endif 8708_ACEOF 8709 8710 esac 8711esac 8712 8713case "$host" in 8714 *-linux*) 8715 for ac_header in linux/if_addr.h 8716do : 8717 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" " 8718 #ifdef HAVE_SYS_SOCKET_H 8719 # include <sys/socket.h> 8720 #endif 8721 8722" 8723if test "x$ac_cv_header_linux_if_addr_h" = xyes; then : 8724 cat >>confdefs.h <<_ACEOF 8725#define HAVE_LINUX_IF_ADDR_H 1 8726_ACEOF 8727 8728fi 8729 8730done 8731 8732 8733$as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h 8734 8735esac 8736 8737for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h 8738do : 8739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8740ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8741if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8742 cat >>confdefs.h <<_ACEOF 8743#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8744_ACEOF 8745 8746fi 8747 8748done 8749 8750# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576 8751for ac_header in sys/sysctl.h 8752do : 8753 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 8754 #if defined HAVE_SYS_PARAM_H 8755 # include <sys/param.h> 8756 #endif 8757 8758" 8759if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 8760 cat >>confdefs.h <<_ACEOF 8761#define HAVE_SYS_SYSCTL_H 1 8762_ACEOF 8763 8764fi 8765 8766done 8767 8768for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h 8769do : 8770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8771ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8772if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8773 cat >>confdefs.h <<_ACEOF 8774#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8775_ACEOF 8776 8777fi 8778 8779done 8780 8781 8782for ac_header in resolv.h 8783do : 8784 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " 8785 #ifdef HAVE_SYS_TYPES_H 8786 # include <sys/types.h> 8787 #endif 8788 #ifdef HAVE_NETINET_IN_H 8789 # include <netinet/in.h> 8790 #endif 8791 #ifdef HAVE_ARPA_NAMESER_H 8792 # include <arpa/nameser.h> 8793 #endif 8794 8795" 8796if test "x$ac_cv_header_resolv_h" = xyes; then : 8797 cat >>confdefs.h <<_ACEOF 8798#define HAVE_RESOLV_H 1 8799_ACEOF 8800 8801fi 8802 8803done 8804 8805 8806for ac_header in net/if_var.h 8807do : 8808 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" " 8809 #if HAVE_SYS_TYPES_H 8810 # include <sys/types.h> 8811 #endif 8812 #ifdef HAVE_SYS_SOCKET_H 8813 # include <sys/socket.h> 8814 #endif 8815 #ifdef HAVE_NETINET_IN_H 8816 # include <netinet/in.h> 8817 #endif 8818 #ifdef HAVE_NET_IF_H 8819 # include <net/if.h> 8820 #endif 8821 8822" 8823if test "x$ac_cv_header_net_if_var_h" = xyes; then : 8824 cat >>confdefs.h <<_ACEOF 8825#define HAVE_NET_IF_VAR_H 1 8826_ACEOF 8827 8828fi 8829 8830done 8831 8832 8833for ac_header in netinet/ip.h netinet/in_var.h 8834do : 8835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8836ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 8837 #ifdef HAVE_SYS_TYPES_H 8838 # include <sys/types.h> 8839 #endif 8840 #ifdef HAVE_SYS_SOCKET_H 8841 # include <sys/socket.h> 8842 #endif 8843 #ifdef HAVE_NET_IF_H 8844 # include <net/if.h> 8845 #endif 8846 #ifdef HAVE_NETINET_IN_H 8847 # include <netinet/in.h> 8848 #endif 8849 #ifdef HAVE_NET_IF_VAR_H 8850 # include <net/if_var.h> 8851 #endif 8852 #ifdef HAVE_NETINET_IN_SYSTM_H 8853 # include <netinet/in_systm.h> 8854 #endif 8855 8856" 8857if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8858 cat >>confdefs.h <<_ACEOF 8859#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8860_ACEOF 8861 8862fi 8863 8864done 8865 8866 8867# HMS: Do we need to check for -lsocket before or after these tests? 8868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 8869$as_echo_n "checking for library containing inet_pton... " >&6; } 8870if ${ac_cv_search_inet_pton+:} false; then : 8871 $as_echo_n "(cached) " >&6 8872else 8873 ac_func_search_save_LIBS=$LIBS 8874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8875/* end confdefs.h. */ 8876 8877/* Override any GCC internal prototype to avoid an error. 8878 Use char because int might match the return type of a GCC 8879 builtin and then its argument prototype would still apply. */ 8880#ifdef __cplusplus 8881extern "C" 8882#endif 8883char inet_pton (); 8884int 8885main () 8886{ 8887return inet_pton (); 8888 ; 8889 return 0; 8890} 8891_ACEOF 8892for ac_lib in '' nsl; do 8893 if test -z "$ac_lib"; then 8894 ac_res="none required" 8895 else 8896 ac_res=-l$ac_lib 8897 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8898 fi 8899 if ac_fn_c_try_link "$LINENO"; then : 8900 ac_cv_search_inet_pton=$ac_res 8901fi 8902rm -f core conftest.err conftest.$ac_objext \ 8903 conftest$ac_exeext 8904 if ${ac_cv_search_inet_pton+:} false; then : 8905 break 8906fi 8907done 8908if ${ac_cv_search_inet_pton+:} false; then : 8909 8910else 8911 ac_cv_search_inet_pton=no 8912fi 8913rm conftest.$ac_ext 8914LIBS=$ac_func_search_save_LIBS 8915fi 8916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 8917$as_echo "$ac_cv_search_inet_pton" >&6; } 8918ac_res=$ac_cv_search_inet_pton 8919if test "$ac_res" != no; then : 8920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8921 case "$ac_cv_search_inet_pton" in 8922 'none required') ;; 8923 no) ;; 8924 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;; 8925 esac 8926 8927fi 8928 8929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 8930$as_echo_n "checking for library containing inet_ntop... " >&6; } 8931if ${ac_cv_search_inet_ntop+:} false; then : 8932 $as_echo_n "(cached) " >&6 8933else 8934 ac_func_search_save_LIBS=$LIBS 8935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8936/* end confdefs.h. */ 8937 8938/* Override any GCC internal prototype to avoid an error. 8939 Use char because int might match the return type of a GCC 8940 builtin and then its argument prototype would still apply. */ 8941#ifdef __cplusplus 8942extern "C" 8943#endif 8944char inet_ntop (); 8945int 8946main () 8947{ 8948return inet_ntop (); 8949 ; 8950 return 0; 8951} 8952_ACEOF 8953for ac_lib in '' resolv; do 8954 if test -z "$ac_lib"; then 8955 ac_res="none required" 8956 else 8957 ac_res=-l$ac_lib 8958 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS" 8959 fi 8960 if ac_fn_c_try_link "$LINENO"; then : 8961 ac_cv_search_inet_ntop=$ac_res 8962fi 8963rm -f core conftest.err conftest.$ac_objext \ 8964 conftest$ac_exeext 8965 if ${ac_cv_search_inet_ntop+:} false; then : 8966 break 8967fi 8968done 8969if ${ac_cv_search_inet_ntop+:} false; then : 8970 8971else 8972 ac_cv_search_inet_ntop=no 8973fi 8974rm conftest.$ac_ext 8975LIBS=$ac_func_search_save_LIBS 8976fi 8977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 8978$as_echo "$ac_cv_search_inet_ntop" >&6; } 8979ac_res=$ac_cv_search_inet_ntop 8980if test "$ac_res" != no; then : 8981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8982 case "$ac_cv_search_inet_ntop" in 8983 'none required') ;; 8984 no) ;; 8985 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;; 8986 esac 8987 8988fi 8989 8990 8991# [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to 8992# avoid keying on the OS name: If we find socket functions in 8993# libsocket, next try for them in libxnet without libsocket, if found, 8994# list both. If we simply tested libxnet first, we would find the 8995# functions there and never add libsocket. See also [Bug 660] 8996# http://bugs.ntp.org/show_bug.cgi?id=660#c9 8997saved_LIBS=$LIBS 8998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 8999$as_echo_n "checking for library containing setsockopt... " >&6; } 9000if ${ac_cv_search_setsockopt+:} false; then : 9001 $as_echo_n "(cached) " >&6 9002else 9003 ac_func_search_save_LIBS=$LIBS 9004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9005/* end confdefs.h. */ 9006 9007/* Override any GCC internal prototype to avoid an error. 9008 Use char because int might match the return type of a GCC 9009 builtin and then its argument prototype would still apply. */ 9010#ifdef __cplusplus 9011extern "C" 9012#endif 9013char setsockopt (); 9014int 9015main () 9016{ 9017return setsockopt (); 9018 ; 9019 return 0; 9020} 9021_ACEOF 9022for ac_lib in '' socket; do 9023 if test -z "$ac_lib"; then 9024 ac_res="none required" 9025 else 9026 ac_res=-l$ac_lib 9027 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9028 fi 9029 if ac_fn_c_try_link "$LINENO"; then : 9030 ac_cv_search_setsockopt=$ac_res 9031fi 9032rm -f core conftest.err conftest.$ac_objext \ 9033 conftest$ac_exeext 9034 if ${ac_cv_search_setsockopt+:} false; then : 9035 break 9036fi 9037done 9038if ${ac_cv_search_setsockopt+:} false; then : 9039 9040else 9041 ac_cv_search_setsockopt=no 9042fi 9043rm conftest.$ac_ext 9044LIBS=$ac_func_search_save_LIBS 9045fi 9046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 9047$as_echo "$ac_cv_search_setsockopt" >&6; } 9048ac_res=$ac_cv_search_setsockopt 9049if test "$ac_res" != no; then : 9050 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9051 case "$ac_cv_search_setsockopt" in 9052 'none required') ;; 9053 no) ;; 9054 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;; 9055 esac 9056 9057fi 9058 9059case "$ac_cv_search_setsockopt" in 9060 -lsocket) 9061 LIBS="$saved_LIBS" 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5 9063$as_echo_n "checking for library containing getsockopt... " >&6; } 9064if ${ac_cv_search_getsockopt+:} false; then : 9065 $as_echo_n "(cached) " >&6 9066else 9067 ac_func_search_save_LIBS=$LIBS 9068cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9069/* end confdefs.h. */ 9070 9071/* Override any GCC internal prototype to avoid an error. 9072 Use char because int might match the return type of a GCC 9073 builtin and then its argument prototype would still apply. */ 9074#ifdef __cplusplus 9075extern "C" 9076#endif 9077char getsockopt (); 9078int 9079main () 9080{ 9081return getsockopt (); 9082 ; 9083 return 0; 9084} 9085_ACEOF 9086for ac_lib in '' xnet; do 9087 if test -z "$ac_lib"; then 9088 ac_res="none required" 9089 else 9090 ac_res=-l$ac_lib 9091 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9092 fi 9093 if ac_fn_c_try_link "$LINENO"; then : 9094 ac_cv_search_getsockopt=$ac_res 9095fi 9096rm -f core conftest.err conftest.$ac_objext \ 9097 conftest$ac_exeext 9098 if ${ac_cv_search_getsockopt+:} false; then : 9099 break 9100fi 9101done 9102if ${ac_cv_search_getsockopt+:} false; then : 9103 9104else 9105 ac_cv_search_getsockopt=no 9106fi 9107rm conftest.$ac_ext 9108LIBS=$ac_func_search_save_LIBS 9109fi 9110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5 9111$as_echo "$ac_cv_search_getsockopt" >&6; } 9112ac_res=$ac_cv_search_getsockopt 9113if test "$ac_res" != no; then : 9114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9115 case "$ac_cv_search_getsockopt" in 9116 'none required') ;; 9117 no) ;; 9118 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;; 9119 esac 9120 9121fi 9122 9123 # XXX Possible trouble here - reading the comments above and looking at the 9124 # code below I wonder if we'll add -lxnet when we don't need it. 9125 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's 9126 # there when it is not needed? 9127 case "$ac_cv_search_getsockopt" in 9128 -lxnet) 9129 LIBS="-lxnet -lsocket $saved_LIBS" 9130 ;; 9131 *) LIBS="-lsocket $saved_LIBS" 9132 ;; 9133 esac 9134 ;; 9135esac 9136{ saved_LIBS=; unset saved_LIBS;} 9137 9138# Bug 2427 - look for recvmsg here. 9139for ac_func in recvmsg 9140do : 9141 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 9142if test "x$ac_cv_func_recvmsg" = xyes; then : 9143 cat >>confdefs.h <<_ACEOF 9144#define HAVE_RECVMSG 1 9145_ACEOF 9146 9147fi 9148done 9149 9150 9151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 9152$as_echo_n "checking for inline... " >&6; } 9153if ${ac_cv_c_inline+:} false; then : 9154 $as_echo_n "(cached) " >&6 9155else 9156 ac_cv_c_inline=no 9157for ac_kw in inline __inline__ __inline; do 9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9159/* end confdefs.h. */ 9160#ifndef __cplusplus 9161typedef int foo_t; 9162static $ac_kw foo_t static_foo () {return 0; } 9163$ac_kw foo_t foo () {return 0; } 9164#endif 9165 9166_ACEOF 9167if ac_fn_c_try_compile "$LINENO"; then : 9168 ac_cv_c_inline=$ac_kw 9169fi 9170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9171 test "$ac_cv_c_inline" != no && break 9172done 9173 9174fi 9175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 9176$as_echo "$ac_cv_c_inline" >&6; } 9177 9178case $ac_cv_c_inline in 9179 inline | yes) ;; 9180 *) 9181 case $ac_cv_c_inline in 9182 no) ac_val=;; 9183 *) ac_val=$ac_cv_c_inline;; 9184 esac 9185 cat >>confdefs.h <<_ACEOF 9186#ifndef __cplusplus 9187#define inline $ac_val 9188#endif 9189_ACEOF 9190 ;; 9191esac 9192 9193 9194case "$ac_cv_c_inline" in 9195 '') 9196 ;; 9197 *) 9198 9199$as_echo "#define HAVE_INLINE 1" >>confdefs.h 9200 9201 9202esac 9203 9204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 9205$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 9206if ${ac_cv_header_time+:} false; then : 9207 $as_echo_n "(cached) " >&6 9208else 9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9210/* end confdefs.h. */ 9211#include <sys/types.h> 9212#include <sys/time.h> 9213#include <time.h> 9214 9215int 9216main () 9217{ 9218if ((struct tm *) 0) 9219return 0; 9220 ; 9221 return 0; 9222} 9223_ACEOF 9224if ac_fn_c_try_compile "$LINENO"; then : 9225 ac_cv_header_time=yes 9226else 9227 ac_cv_header_time=no 9228fi 9229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9230fi 9231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 9232$as_echo "$ac_cv_header_time" >&6; } 9233if test $ac_cv_header_time = yes; then 9234 9235$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 9236 9237fi 9238 9239# The cast to long int works around a bug in the HP C Compiler 9240# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9241# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9242# This bug is HP SR number 8606223364. 9243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 9244$as_echo_n "checking size of time_t... " >&6; } 9245if ${ac_cv_sizeof_time_t+:} false; then : 9246 $as_echo_n "(cached) " >&6 9247else 9248 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 9249 9250else 9251 if test "$ac_cv_type_time_t" = yes; then 9252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9254as_fn_error 77 "cannot compute sizeof (time_t) 9255See \`config.log' for more details" "$LINENO" 5; } 9256 else 9257 ac_cv_sizeof_time_t=0 9258 fi 9259fi 9260 9261fi 9262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 9263$as_echo "$ac_cv_sizeof_time_t" >&6; } 9264 9265 9266 9267cat >>confdefs.h <<_ACEOF 9268#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 9269_ACEOF 9270 9271 9272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 9273$as_echo_n "checking whether char is unsigned... " >&6; } 9274if ${ac_cv_c_char_unsigned+:} false; then : 9275 $as_echo_n "(cached) " >&6 9276else 9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9278/* end confdefs.h. */ 9279$ac_includes_default 9280int 9281main () 9282{ 9283static int test_array [1 - 2 * !(((char) -1) < 0)]; 9284test_array [0] = 0; 9285return test_array [0]; 9286 9287 ; 9288 return 0; 9289} 9290_ACEOF 9291if ac_fn_c_try_compile "$LINENO"; then : 9292 ac_cv_c_char_unsigned=no 9293else 9294 ac_cv_c_char_unsigned=yes 9295fi 9296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9297fi 9298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 9299$as_echo "$ac_cv_c_char_unsigned" >&6; } 9300if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 9301 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 9302 9303fi 9304 # The cast to long int works around a bug in the HP C Compiler 9305# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9306# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9307# This bug is HP SR number 8606223364. 9308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5 9309$as_echo_n "checking size of signed char... " >&6; } 9310if ${ac_cv_sizeof_signed_char+:} false; then : 9311 $as_echo_n "(cached) " >&6 9312else 9313 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then : 9314 9315else 9316 if test "$ac_cv_type_signed_char" = yes; then 9317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9319as_fn_error 77 "cannot compute sizeof (signed char) 9320See \`config.log' for more details" "$LINENO" 5; } 9321 else 9322 ac_cv_sizeof_signed_char=0 9323 fi 9324fi 9325 9326fi 9327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5 9328$as_echo "$ac_cv_sizeof_signed_char" >&6; } 9329 9330 9331 9332cat >>confdefs.h <<_ACEOF 9333#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 9334_ACEOF 9335 9336 9337ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default" 9338if test "x$ac_cv_type_s_char" = xyes; then : 9339 9340cat >>confdefs.h <<_ACEOF 9341#define HAVE_S_CHAR 1 9342_ACEOF 9343 9344 9345fi 9346ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 9347if test "x$ac_cv_type_long_long" = xyes; then : 9348 9349cat >>confdefs.h <<_ACEOF 9350#define HAVE_LONG_LONG 1 9351_ACEOF 9352 9353 9354fi 9355 9356# The cast to long int works around a bug in the HP C Compiler 9357# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9358# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9359# This bug is HP SR number 8606223364. 9360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 9361$as_echo_n "checking size of short... " >&6; } 9362if ${ac_cv_sizeof_short+:} false; then : 9363 $as_echo_n "(cached) " >&6 9364else 9365 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 9366 9367else 9368 if test "$ac_cv_type_short" = yes; then 9369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9371as_fn_error 77 "cannot compute sizeof (short) 9372See \`config.log' for more details" "$LINENO" 5; } 9373 else 9374 ac_cv_sizeof_short=0 9375 fi 9376fi 9377 9378fi 9379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 9380$as_echo "$ac_cv_sizeof_short" >&6; } 9381 9382 9383 9384cat >>confdefs.h <<_ACEOF 9385#define SIZEOF_SHORT $ac_cv_sizeof_short 9386_ACEOF 9387 9388 9389# The cast to long int works around a bug in the HP C Compiler 9390# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9391# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9392# This bug is HP SR number 8606223364. 9393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 9394$as_echo_n "checking size of int... " >&6; } 9395if ${ac_cv_sizeof_int+:} false; then : 9396 $as_echo_n "(cached) " >&6 9397else 9398 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 9399 9400else 9401 if test "$ac_cv_type_int" = yes; then 9402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9404as_fn_error 77 "cannot compute sizeof (int) 9405See \`config.log' for more details" "$LINENO" 5; } 9406 else 9407 ac_cv_sizeof_int=0 9408 fi 9409fi 9410 9411fi 9412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 9413$as_echo "$ac_cv_sizeof_int" >&6; } 9414 9415 9416 9417cat >>confdefs.h <<_ACEOF 9418#define SIZEOF_INT $ac_cv_sizeof_int 9419_ACEOF 9420 9421 9422# The cast to long int works around a bug in the HP C Compiler 9423# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9424# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9425# This bug is HP SR number 8606223364. 9426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 9427$as_echo_n "checking size of long... " >&6; } 9428if ${ac_cv_sizeof_long+:} false; then : 9429 $as_echo_n "(cached) " >&6 9430else 9431 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 9432 9433else 9434 if test "$ac_cv_type_long" = yes; then 9435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9437as_fn_error 77 "cannot compute sizeof (long) 9438See \`config.log' for more details" "$LINENO" 5; } 9439 else 9440 ac_cv_sizeof_long=0 9441 fi 9442fi 9443 9444fi 9445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 9446$as_echo "$ac_cv_sizeof_long" >&6; } 9447 9448 9449 9450cat >>confdefs.h <<_ACEOF 9451#define SIZEOF_LONG $ac_cv_sizeof_long 9452_ACEOF 9453 9454 9455 9456case "$ac_cv_type_long_long" in 9457 no) 9458 ;; 9459 *) 9460 # The cast to long int works around a bug in the HP C Compiler 9461# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9462# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9463# This bug is HP SR number 8606223364. 9464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 9465$as_echo_n "checking size of long long... " >&6; } 9466if ${ac_cv_sizeof_long_long+:} false; then : 9467 $as_echo_n "(cached) " >&6 9468else 9469 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 9470 9471else 9472 if test "$ac_cv_type_long_long" = yes; then 9473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9475as_fn_error 77 "cannot compute sizeof (long long) 9476See \`config.log' for more details" "$LINENO" 5; } 9477 else 9478 ac_cv_sizeof_long_long=0 9479 fi 9480fi 9481 9482fi 9483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 9484$as_echo "$ac_cv_sizeof_long_long" >&6; } 9485 9486 9487 9488cat >>confdefs.h <<_ACEOF 9489#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 9490_ACEOF 9491 9492 9493 ;; 9494esac 9495 9496case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in 9497 *yes) 9498 # We have a typedef for s_char. Might as well believe it... 9499 ;; 9500 no0no) 9501 # We have signed chars, can't say 'signed char', no s_char typedef. 9502 9503$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 9504 9505 ;; 9506 no1no) 9507 # We have signed chars, can say 'signed char', no s_char typedef. 9508 9509$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 9510 9511 ;; 9512 yes0no) 9513 # We have unsigned chars, can't say 'signed char', no s_char typedef. 9514 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5 9515 ;; 9516 yes1no) 9517 # We have unsigned chars, can say 'signed char', no s_char typedef. 9518 9519$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 9520 9521 ;; 9522esac 9523 9524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 9525$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 9526if ${ac_cv_type_uid_t+:} false; then : 9527 $as_echo_n "(cached) " >&6 9528else 9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9530/* end confdefs.h. */ 9531#include <sys/types.h> 9532 9533_ACEOF 9534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9535 $EGREP "uid_t" >/dev/null 2>&1; then : 9536 ac_cv_type_uid_t=yes 9537else 9538 ac_cv_type_uid_t=no 9539fi 9540rm -f conftest* 9541 9542fi 9543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 9544$as_echo "$ac_cv_type_uid_t" >&6; } 9545if test $ac_cv_type_uid_t = no; then 9546 9547$as_echo "#define uid_t int" >>confdefs.h 9548 9549 9550$as_echo "#define gid_t int" >>confdefs.h 9551 9552fi 9553 9554 9555 9556 9557 9558 9559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5 9560$as_echo_n "checking if we're including debugging code... " >&6; } 9561# Check whether --enable-debugging was given. 9562if test "${enable_debugging+set}" = set; then : 9563 enableval=$enable_debugging; ntp_ok=$enableval 9564else 9565 ntp_ok=yes 9566 9567fi 9568 9569case "$ntp_ok" in 9570 yes) 9571 9572$as_echo "#define DEBUG 1" >>confdefs.h 9573 9574esac 9575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 9576$as_echo "$ntp_ok" >&6; } 9577 9578 9579 9580# check if we can compile with pthreads 9581for ac_header in semaphore.h 9582do : 9583 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" 9584if test "x$ac_cv_header_semaphore_h" = xyes; then : 9585 cat >>confdefs.h <<_ACEOF 9586#define HAVE_SEMAPHORE_H 1 9587_ACEOF 9588 9589fi 9590 9591done 9592 9593for ac_func in socketpair 9594do : 9595 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" 9596if test "x$ac_cv_func_socketpair" = xyes; then : 9597 cat >>confdefs.h <<_ACEOF 9598#define HAVE_SOCKETPAIR 1 9599_ACEOF 9600 9601fi 9602done 9603 9604# Check whether --enable-thread-support was given. 9605if test "${enable_thread_support+set}" = set; then : 9606 enableval=$enable_thread_support; 9607else 9608 enable_thread_support=yes 9609 9610fi 9611 9612have_pthreads=no 9613case "$enable_thread_support" in 9614 no) ;; 9615 *) 9616 ol_found_pthreads=no 9617 9618 9619 9620ac_ext=c 9621ac_cpp='$CPP $CPPFLAGS' 9622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9624ac_compiler_gnu=$ac_cv_c_compiler_gnu 9625 9626# OpenLDAP --with-threads 9627 9628# Check whether --with-threads was given. 9629if test "${with_threads+set}" = set; then : 9630 withval=$with_threads; 9631 ol_arg=invalid 9632 for ol_val in auto nt posix mach pth lwp yes no manual ; do 9633 if test "$withval" = "$ol_val" ; then 9634 ol_arg="$ol_val" 9635 fi 9636 done 9637 if test "$ol_arg" = "invalid" ; then 9638 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5 9639 fi 9640 ol_with_threads="$ol_arg" 9641 9642else 9643 ol_with_threads="auto" 9644fi 9645# end --with-threads 9646 9647 9648case "$ol_with_threads$host" in 9649 auto*-*-solaris2.[0-6]) 9650 ol_with_threads=no 9651 ;; 9652esac 9653 9654 9655ol_aix_threads=no 9656case "$host" in 9657*-*-aix*) if test -z "$CC" ; then 9658 case "$ol_with_threads" in 9659 auto | yes | posix) ol_aix_threads=yes ;; 9660 esac 9661 fi 9662;; 9663esac 9664 9665if test $ol_aix_threads = yes ; then 9666 if test -z "${CC}" ; then 9667 for ac_prog in cc_r xlc_r cc 9668do 9669 # Extract the first word of "$ac_prog", so it can be a program name with args. 9670set dummy $ac_prog; ac_word=$2 9671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9672$as_echo_n "checking for $ac_word... " >&6; } 9673if ${ac_cv_prog_CC+:} false; then : 9674 $as_echo_n "(cached) " >&6 9675else 9676 if test -n "$CC"; then 9677 ac_cv_prog_CC="$CC" # Let the user override the test. 9678else 9679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9680for as_dir in $PATH 9681do 9682 IFS=$as_save_IFS 9683 test -z "$as_dir" && as_dir=. 9684 for ac_exec_ext in '' $ac_executable_extensions; do 9685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9686 ac_cv_prog_CC="$ac_prog" 9687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9688 break 2 9689 fi 9690done 9691 done 9692IFS=$as_save_IFS 9693 9694fi 9695fi 9696CC=$ac_cv_prog_CC 9697if test -n "$CC"; then 9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 9699$as_echo "$CC" >&6; } 9700else 9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9702$as_echo "no" >&6; } 9703fi 9704 9705 9706 test -n "$CC" && break 9707done 9708 9709 9710 if test "$CC" = cc ; then 9711 if test $ol_with_threads != auto ; then 9712 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5 9713 else 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5 9715$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;} 9716 fi 9717 ol_with_threads=no 9718 fi 9719 fi 9720 9721 case ${CC} in cc_r | xlc_r) 9722 ol_with_threads=posix 9723 ol_cv_pthread_create=yes 9724 ;; 9725 esac 9726fi 9727 9728ol_link_threads=no 9729# OpenLDAP --with-yielding_select 9730 9731# Check whether --with-yielding_select was given. 9732if test "${with_yielding_select+set}" = set; then : 9733 withval=$with_yielding_select; 9734 ol_arg=invalid 9735 for ol_val in auto yes no manual ; do 9736 if test "$withval" = "$ol_val" ; then 9737 ol_arg="$ol_val" 9738 fi 9739 done 9740 if test "$ol_arg" = "invalid" ; then 9741 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5 9742 fi 9743 ol_with_yielding_select="$ol_arg" 9744 9745else 9746 ol_with_yielding_select="auto" 9747fi 9748# end --with-yielding_select 9749 9750 9751case $ol_with_threads in auto | yes | nt) 9752 9753 9754 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread" 9755if test "x$ac_cv_func__beginthread" = xyes; then : 9756 9757fi 9758 9759 9760 if test $ac_cv_func__beginthread = yes ; then 9761 9762$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h 9763 9764 ol_cv_nt_threads=yes 9765 fi 9766 9767 9768 if test "$ol_cv_nt_threads" = yes ; then 9769 ol_link_threads=nt 9770 ol_with_threads=found 9771 ol_with_yielding_select=yes 9772 9773 9774$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h 9775 9776 9777$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h 9778 9779 fi 9780 9781 if test $ol_with_threads = nt ; then 9782 as_fn_error $? "could not locate NT Threads" "$LINENO" 5 9783 fi 9784 ;; 9785esac 9786 9787case $ol_with_threads in auto | yes | posix) 9788 9789 for ac_header in pthread.h 9790do : 9791 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 9792if test "x$ac_cv_header_pthread_h" = xyes; then : 9793 cat >>confdefs.h <<_ACEOF 9794#define HAVE_PTHREAD_H 1 9795_ACEOF 9796 9797fi 9798 9799done 9800 9801 9802 if test $ac_cv_header_pthread_h = yes ; then 9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5 9804$as_echo_n "checking POSIX thread version... " >&6; } 9805if ${ol_cv_pthread_version+:} false; then : 9806 $as_echo_n "(cached) " >&6 9807else 9808 9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9810/* end confdefs.h. */ 9811 9812# include <pthread.h> 9813 9814int 9815main () 9816{ 9817 9818 int i = PTHREAD_CREATE_JOINABLE; 9819 9820 ; 9821 return 0; 9822} 9823_ACEOF 9824if ac_fn_c_try_compile "$LINENO"; then : 9825 9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9827/* end confdefs.h. */ 9828#include <pthread.h> 9829 9830_ACEOF 9831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9832 $EGREP "pthread_detach" >/dev/null 2>&1; then : 9833 ol_cv_pthread_version=10 9834else 9835 ol_cv_pthread_version=8 9836fi 9837rm -f conftest* 9838 9839else 9840 9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9842/* end confdefs.h. */ 9843 9844# include <pthread.h> 9845# ifdef PTHREAD_CREATE_UNDETACHED 9846 draft7 9847# endif 9848 9849_ACEOF 9850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9851 $EGREP "draft7" >/dev/null 2>&1; then : 9852 ol_cv_pthread_version=7 9853else 9854 9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9856/* end confdefs.h. */ 9857#include <pthread.h> 9858 9859_ACEOF 9860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9861 $EGREP "pthread_attr_init" >/dev/null 2>&1; then : 9862 ol_cv_pthread_version=6 9863else 9864 9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9866/* end confdefs.h. */ 9867 9868# include <pthread.h> 9869#ifdef PTHREAD_MUTEX_INITIALIZER 9870 draft5 9871#endif 9872 9873_ACEOF 9874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9875 $EGREP "draft5" >/dev/null 2>&1; then : 9876 ol_cv_pthread_version=5 9877else 9878 ol_cv_pthread_version=4 9879fi 9880rm -f conftest* 9881 9882fi 9883rm -f conftest* 9884 9885fi 9886rm -f conftest* 9887 9888fi 9889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9890 9891fi 9892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5 9893$as_echo "$ol_cv_pthread_version" >&6; } 9894 9895 9896 if test $ol_cv_pthread_version != 0 ; then 9897 9898cat >>confdefs.h <<_ACEOF 9899#define HAVE_PTHREADS $ol_cv_pthread_version 9900_ACEOF 9901 9902 else 9903 as_fn_error $? "unknown pthread version" "$LINENO" 5 9904 fi 9905 9906 # consider threads found 9907 ol_with_threads=found 9908 9909 9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 9911$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 9912if ${ol_cv_header_linux_threads+:} false; then : 9913 $as_echo_n "(cached) " >&6 9914else 9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9916/* end confdefs.h. */ 9917#include <pthread.h> 9918_ACEOF 9919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9920 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 9921 ol_cv_header_linux_threads=yes 9922else 9923 ol_cv_header_linux_threads=no 9924fi 9925rm -f conftest* 9926 9927 9928fi 9929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 9930$as_echo "$ol_cv_header_linux_threads" >&6; } 9931 if test $ol_cv_header_linux_threads = yes; then 9932 9933$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 9934 9935 fi 9936 9937 9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5 9939$as_echo_n "checking for GNU Pth pthread.h... " >&6; } 9940if ${ol_cv_header_gnu_pth_pthread_h+:} false; then : 9941 $as_echo_n "(cached) " >&6 9942else 9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9944/* end confdefs.h. */ 9945#include <pthread.h> 9946#ifdef _POSIX_THREAD_IS_GNU_PTH 9947 __gnu_pth__; 9948#endif 9949 9950_ACEOF 9951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9952 $EGREP "__gnu_pth__" >/dev/null 2>&1; then : 9953 ol_cv_header_gnu_pth_pthread_h=yes 9954else 9955 ol_cv_header_gnu_pth_pthread_h=no 9956fi 9957rm -f conftest* 9958 9959 9960fi 9961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5 9962$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; } 9963 9964 9965 if test $ol_cv_header_gnu_pth_pthread_h = no ; then 9966 for ac_header in sched.h 9967do : 9968 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 9969if test "x$ac_cv_header_sched_h" = xyes; then : 9970 cat >>confdefs.h <<_ACEOF 9971#define HAVE_SCHED_H 1 9972_ACEOF 9973 9974fi 9975 9976done 9977 9978 fi 9979 9980 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5 9982$as_echo_n "checking for pthread_create in default libraries... " >&6; } 9983if ${ol_cv_pthread_create+:} false; then : 9984 $as_echo_n "(cached) " >&6 9985else 9986 9987 if test "$cross_compiling" = yes; then : 9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9989/* end confdefs.h. */ 9990 9991/* pthread test headers */ 9992#include <pthread.h> 9993#if HAVE_PTHREADS < 7 9994#include <errno.h> 9995#endif 9996#ifndef NULL 9997#define NULL (void*)0 9998#endif 9999 10000static void *task(p) 10001 void *p; 10002{ 10003 return (void *) (p == NULL); 10004} 10005 10006int 10007main () 10008{ 10009 10010 /* pthread test function */ 10011#ifndef PTHREAD_CREATE_DETACHED 10012#define PTHREAD_CREATE_DETACHED 1 10013#endif 10014 pthread_t t; 10015 int status; 10016 int detach = PTHREAD_CREATE_DETACHED; 10017 10018#if HAVE_PTHREADS > 4 10019 /* Final pthreads */ 10020 pthread_attr_t attr; 10021 10022 status = pthread_attr_init(&attr); 10023 if( status ) return status; 10024 10025#if HAVE_PTHREADS < 7 10026 status = pthread_attr_setdetachstate(&attr, &detach); 10027 if( status < 0 ) status = errno; 10028#else 10029 status = pthread_attr_setdetachstate(&attr, detach); 10030#endif 10031 if( status ) return status; 10032 status = pthread_create( &t, &attr, task, NULL ); 10033#if HAVE_PTHREADS < 7 10034 if( status < 0 ) status = errno; 10035#endif 10036 if( status ) return status; 10037#else 10038 /* Draft 4 pthreads */ 10039 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10040 if( status ) return errno; 10041 10042 /* give thread a chance to complete */ 10043 /* it should remain joinable and hence detachable */ 10044 sleep( 1 ); 10045 10046 status = pthread_detach( &t ); 10047 if( status ) return errno; 10048#endif 10049 10050#ifdef HAVE_LINUX_THREADS 10051 pthread_kill_other_threads_np(); 10052#endif 10053 10054 return 0; 10055 10056 ; 10057 return 0; 10058} 10059_ACEOF 10060if ac_fn_c_try_link "$LINENO"; then : 10061 ol_cv_pthread_create=yes 10062else 10063 ol_cv_pthread_create=no 10064fi 10065rm -f core conftest.err conftest.$ac_objext \ 10066 conftest$ac_exeext conftest.$ac_ext 10067else 10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10069/* end confdefs.h. */ 10070 10071 10072/* pthread test headers */ 10073#include <pthread.h> 10074#if HAVE_PTHREADS < 7 10075#include <errno.h> 10076#endif 10077#ifndef NULL 10078#define NULL (void*)0 10079#endif 10080 10081static void *task(p) 10082 void *p; 10083{ 10084 return (void *) (p == NULL); 10085} 10086 10087 10088int main(argc, argv) 10089 int argc; 10090 char **argv; 10091{ 10092 10093 /* pthread test function */ 10094#ifndef PTHREAD_CREATE_DETACHED 10095#define PTHREAD_CREATE_DETACHED 1 10096#endif 10097 pthread_t t; 10098 int status; 10099 int detach = PTHREAD_CREATE_DETACHED; 10100 10101#if HAVE_PTHREADS > 4 10102 /* Final pthreads */ 10103 pthread_attr_t attr; 10104 10105 status = pthread_attr_init(&attr); 10106 if( status ) return status; 10107 10108#if HAVE_PTHREADS < 7 10109 status = pthread_attr_setdetachstate(&attr, &detach); 10110 if( status < 0 ) status = errno; 10111#else 10112 status = pthread_attr_setdetachstate(&attr, detach); 10113#endif 10114 if( status ) return status; 10115 status = pthread_create( &t, &attr, task, NULL ); 10116#if HAVE_PTHREADS < 7 10117 if( status < 0 ) status = errno; 10118#endif 10119 if( status ) return status; 10120#else 10121 /* Draft 4 pthreads */ 10122 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10123 if( status ) return errno; 10124 10125 /* give thread a chance to complete */ 10126 /* it should remain joinable and hence detachable */ 10127 sleep( 1 ); 10128 10129 status = pthread_detach( &t ); 10130 if( status ) return errno; 10131#endif 10132 10133#ifdef HAVE_LINUX_THREADS 10134 pthread_kill_other_threads_np(); 10135#endif 10136 10137 return 0; 10138 10139} 10140 10141_ACEOF 10142if ac_fn_c_try_run "$LINENO"; then : 10143 ol_cv_pthread_create=yes 10144else 10145 ol_cv_pthread_create=no 10146fi 10147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10148 conftest.$ac_objext conftest.beam conftest.$ac_ext 10149fi 10150 10151fi 10152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5 10153$as_echo "$ol_cv_pthread_create" >&6; } 10154 10155 if test $ol_cv_pthread_create != no ; then 10156 ol_link_threads=posix 10157 ol_link_pthreads="" 10158 fi 10159 10160 # Pthread try link: -kthread (ol_cv_pthread_kthread) 10161if test "$ol_link_threads" = no ; then 10162 # try -kthread 10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5 10164$as_echo_n "checking for pthread link with -kthread... " >&6; } 10165if ${ol_cv_pthread_kthread+:} false; then : 10166 $as_echo_n "(cached) " >&6 10167else 10168 10169 # save the flags 10170 ol_LIBS="$LIBS" 10171 LIBS="-kthread $LIBS" 10172 10173 if test "$cross_compiling" = yes; then : 10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10175/* end confdefs.h. */ 10176 10177/* pthread test headers */ 10178#include <pthread.h> 10179#if HAVE_PTHREADS < 7 10180#include <errno.h> 10181#endif 10182#ifndef NULL 10183#define NULL (void*)0 10184#endif 10185 10186static void *task(p) 10187 void *p; 10188{ 10189 return (void *) (p == NULL); 10190} 10191 10192int 10193main () 10194{ 10195 10196 /* pthread test function */ 10197#ifndef PTHREAD_CREATE_DETACHED 10198#define PTHREAD_CREATE_DETACHED 1 10199#endif 10200 pthread_t t; 10201 int status; 10202 int detach = PTHREAD_CREATE_DETACHED; 10203 10204#if HAVE_PTHREADS > 4 10205 /* Final pthreads */ 10206 pthread_attr_t attr; 10207 10208 status = pthread_attr_init(&attr); 10209 if( status ) return status; 10210 10211#if HAVE_PTHREADS < 7 10212 status = pthread_attr_setdetachstate(&attr, &detach); 10213 if( status < 0 ) status = errno; 10214#else 10215 status = pthread_attr_setdetachstate(&attr, detach); 10216#endif 10217 if( status ) return status; 10218 status = pthread_create( &t, &attr, task, NULL ); 10219#if HAVE_PTHREADS < 7 10220 if( status < 0 ) status = errno; 10221#endif 10222 if( status ) return status; 10223#else 10224 /* Draft 4 pthreads */ 10225 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10226 if( status ) return errno; 10227 10228 /* give thread a chance to complete */ 10229 /* it should remain joinable and hence detachable */ 10230 sleep( 1 ); 10231 10232 status = pthread_detach( &t ); 10233 if( status ) return errno; 10234#endif 10235 10236#ifdef HAVE_LINUX_THREADS 10237 pthread_kill_other_threads_np(); 10238#endif 10239 10240 return 0; 10241 10242 ; 10243 return 0; 10244} 10245_ACEOF 10246if ac_fn_c_try_link "$LINENO"; then : 10247 ol_cv_pthread_kthread=yes 10248else 10249 ol_cv_pthread_kthread=no 10250fi 10251rm -f core conftest.err conftest.$ac_objext \ 10252 conftest$ac_exeext conftest.$ac_ext 10253else 10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10255/* end confdefs.h. */ 10256 10257 10258/* pthread test headers */ 10259#include <pthread.h> 10260#if HAVE_PTHREADS < 7 10261#include <errno.h> 10262#endif 10263#ifndef NULL 10264#define NULL (void*)0 10265#endif 10266 10267static void *task(p) 10268 void *p; 10269{ 10270 return (void *) (p == NULL); 10271} 10272 10273 10274int main(argc, argv) 10275 int argc; 10276 char **argv; 10277{ 10278 10279 /* pthread test function */ 10280#ifndef PTHREAD_CREATE_DETACHED 10281#define PTHREAD_CREATE_DETACHED 1 10282#endif 10283 pthread_t t; 10284 int status; 10285 int detach = PTHREAD_CREATE_DETACHED; 10286 10287#if HAVE_PTHREADS > 4 10288 /* Final pthreads */ 10289 pthread_attr_t attr; 10290 10291 status = pthread_attr_init(&attr); 10292 if( status ) return status; 10293 10294#if HAVE_PTHREADS < 7 10295 status = pthread_attr_setdetachstate(&attr, &detach); 10296 if( status < 0 ) status = errno; 10297#else 10298 status = pthread_attr_setdetachstate(&attr, detach); 10299#endif 10300 if( status ) return status; 10301 status = pthread_create( &t, &attr, task, NULL ); 10302#if HAVE_PTHREADS < 7 10303 if( status < 0 ) status = errno; 10304#endif 10305 if( status ) return status; 10306#else 10307 /* Draft 4 pthreads */ 10308 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10309 if( status ) return errno; 10310 10311 /* give thread a chance to complete */ 10312 /* it should remain joinable and hence detachable */ 10313 sleep( 1 ); 10314 10315 status = pthread_detach( &t ); 10316 if( status ) return errno; 10317#endif 10318 10319#ifdef HAVE_LINUX_THREADS 10320 pthread_kill_other_threads_np(); 10321#endif 10322 10323 return 0; 10324 10325} 10326 10327_ACEOF 10328if ac_fn_c_try_run "$LINENO"; then : 10329 ol_cv_pthread_kthread=yes 10330else 10331 ol_cv_pthread_kthread=no 10332fi 10333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10334 conftest.$ac_objext conftest.beam conftest.$ac_ext 10335fi 10336 10337 10338 # restore the LIBS 10339 LIBS="$ol_LIBS" 10340 10341fi 10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5 10343$as_echo "$ol_cv_pthread_kthread" >&6; } 10344 10345 if test $ol_cv_pthread_kthread = yes ; then 10346 ol_link_pthreads="-kthread" 10347 ol_link_threads=posix 10348 fi 10349fi 10350 10351 # Pthread try link: -pthread (ol_cv_pthread_pthread) 10352if test "$ol_link_threads" = no ; then 10353 # try -pthread 10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5 10355$as_echo_n "checking for pthread link with -pthread... " >&6; } 10356if ${ol_cv_pthread_pthread+:} false; then : 10357 $as_echo_n "(cached) " >&6 10358else 10359 10360 # save the flags 10361 ol_LIBS="$LIBS" 10362 LIBS="-pthread $LIBS" 10363 10364 if test "$cross_compiling" = yes; then : 10365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10366/* end confdefs.h. */ 10367 10368/* pthread test headers */ 10369#include <pthread.h> 10370#if HAVE_PTHREADS < 7 10371#include <errno.h> 10372#endif 10373#ifndef NULL 10374#define NULL (void*)0 10375#endif 10376 10377static void *task(p) 10378 void *p; 10379{ 10380 return (void *) (p == NULL); 10381} 10382 10383int 10384main () 10385{ 10386 10387 /* pthread test function */ 10388#ifndef PTHREAD_CREATE_DETACHED 10389#define PTHREAD_CREATE_DETACHED 1 10390#endif 10391 pthread_t t; 10392 int status; 10393 int detach = PTHREAD_CREATE_DETACHED; 10394 10395#if HAVE_PTHREADS > 4 10396 /* Final pthreads */ 10397 pthread_attr_t attr; 10398 10399 status = pthread_attr_init(&attr); 10400 if( status ) return status; 10401 10402#if HAVE_PTHREADS < 7 10403 status = pthread_attr_setdetachstate(&attr, &detach); 10404 if( status < 0 ) status = errno; 10405#else 10406 status = pthread_attr_setdetachstate(&attr, detach); 10407#endif 10408 if( status ) return status; 10409 status = pthread_create( &t, &attr, task, NULL ); 10410#if HAVE_PTHREADS < 7 10411 if( status < 0 ) status = errno; 10412#endif 10413 if( status ) return status; 10414#else 10415 /* Draft 4 pthreads */ 10416 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10417 if( status ) return errno; 10418 10419 /* give thread a chance to complete */ 10420 /* it should remain joinable and hence detachable */ 10421 sleep( 1 ); 10422 10423 status = pthread_detach( &t ); 10424 if( status ) return errno; 10425#endif 10426 10427#ifdef HAVE_LINUX_THREADS 10428 pthread_kill_other_threads_np(); 10429#endif 10430 10431 return 0; 10432 10433 ; 10434 return 0; 10435} 10436_ACEOF 10437if ac_fn_c_try_link "$LINENO"; then : 10438 ol_cv_pthread_pthread=yes 10439else 10440 ol_cv_pthread_pthread=no 10441fi 10442rm -f core conftest.err conftest.$ac_objext \ 10443 conftest$ac_exeext conftest.$ac_ext 10444else 10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10446/* end confdefs.h. */ 10447 10448 10449/* pthread test headers */ 10450#include <pthread.h> 10451#if HAVE_PTHREADS < 7 10452#include <errno.h> 10453#endif 10454#ifndef NULL 10455#define NULL (void*)0 10456#endif 10457 10458static void *task(p) 10459 void *p; 10460{ 10461 return (void *) (p == NULL); 10462} 10463 10464 10465int main(argc, argv) 10466 int argc; 10467 char **argv; 10468{ 10469 10470 /* pthread test function */ 10471#ifndef PTHREAD_CREATE_DETACHED 10472#define PTHREAD_CREATE_DETACHED 1 10473#endif 10474 pthread_t t; 10475 int status; 10476 int detach = PTHREAD_CREATE_DETACHED; 10477 10478#if HAVE_PTHREADS > 4 10479 /* Final pthreads */ 10480 pthread_attr_t attr; 10481 10482 status = pthread_attr_init(&attr); 10483 if( status ) return status; 10484 10485#if HAVE_PTHREADS < 7 10486 status = pthread_attr_setdetachstate(&attr, &detach); 10487 if( status < 0 ) status = errno; 10488#else 10489 status = pthread_attr_setdetachstate(&attr, detach); 10490#endif 10491 if( status ) return status; 10492 status = pthread_create( &t, &attr, task, NULL ); 10493#if HAVE_PTHREADS < 7 10494 if( status < 0 ) status = errno; 10495#endif 10496 if( status ) return status; 10497#else 10498 /* Draft 4 pthreads */ 10499 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10500 if( status ) return errno; 10501 10502 /* give thread a chance to complete */ 10503 /* it should remain joinable and hence detachable */ 10504 sleep( 1 ); 10505 10506 status = pthread_detach( &t ); 10507 if( status ) return errno; 10508#endif 10509 10510#ifdef HAVE_LINUX_THREADS 10511 pthread_kill_other_threads_np(); 10512#endif 10513 10514 return 0; 10515 10516} 10517 10518_ACEOF 10519if ac_fn_c_try_run "$LINENO"; then : 10520 ol_cv_pthread_pthread=yes 10521else 10522 ol_cv_pthread_pthread=no 10523fi 10524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10525 conftest.$ac_objext conftest.beam conftest.$ac_ext 10526fi 10527 10528 10529 # restore the LIBS 10530 LIBS="$ol_LIBS" 10531 10532fi 10533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5 10534$as_echo "$ol_cv_pthread_pthread" >&6; } 10535 10536 if test $ol_cv_pthread_pthread = yes ; then 10537 ol_link_pthreads="-pthread" 10538 ol_link_threads=posix 10539 fi 10540fi 10541 10542 # Pthread try link: -pthreads (ol_cv_pthread_pthreads) 10543if test "$ol_link_threads" = no ; then 10544 # try -pthreads 10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5 10546$as_echo_n "checking for pthread link with -pthreads... " >&6; } 10547if ${ol_cv_pthread_pthreads+:} false; then : 10548 $as_echo_n "(cached) " >&6 10549else 10550 10551 # save the flags 10552 ol_LIBS="$LIBS" 10553 LIBS="-pthreads $LIBS" 10554 10555 if test "$cross_compiling" = yes; then : 10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10557/* end confdefs.h. */ 10558 10559/* pthread test headers */ 10560#include <pthread.h> 10561#if HAVE_PTHREADS < 7 10562#include <errno.h> 10563#endif 10564#ifndef NULL 10565#define NULL (void*)0 10566#endif 10567 10568static void *task(p) 10569 void *p; 10570{ 10571 return (void *) (p == NULL); 10572} 10573 10574int 10575main () 10576{ 10577 10578 /* pthread test function */ 10579#ifndef PTHREAD_CREATE_DETACHED 10580#define PTHREAD_CREATE_DETACHED 1 10581#endif 10582 pthread_t t; 10583 int status; 10584 int detach = PTHREAD_CREATE_DETACHED; 10585 10586#if HAVE_PTHREADS > 4 10587 /* Final pthreads */ 10588 pthread_attr_t attr; 10589 10590 status = pthread_attr_init(&attr); 10591 if( status ) return status; 10592 10593#if HAVE_PTHREADS < 7 10594 status = pthread_attr_setdetachstate(&attr, &detach); 10595 if( status < 0 ) status = errno; 10596#else 10597 status = pthread_attr_setdetachstate(&attr, detach); 10598#endif 10599 if( status ) return status; 10600 status = pthread_create( &t, &attr, task, NULL ); 10601#if HAVE_PTHREADS < 7 10602 if( status < 0 ) status = errno; 10603#endif 10604 if( status ) return status; 10605#else 10606 /* Draft 4 pthreads */ 10607 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10608 if( status ) return errno; 10609 10610 /* give thread a chance to complete */ 10611 /* it should remain joinable and hence detachable */ 10612 sleep( 1 ); 10613 10614 status = pthread_detach( &t ); 10615 if( status ) return errno; 10616#endif 10617 10618#ifdef HAVE_LINUX_THREADS 10619 pthread_kill_other_threads_np(); 10620#endif 10621 10622 return 0; 10623 10624 ; 10625 return 0; 10626} 10627_ACEOF 10628if ac_fn_c_try_link "$LINENO"; then : 10629 ol_cv_pthread_pthreads=yes 10630else 10631 ol_cv_pthread_pthreads=no 10632fi 10633rm -f core conftest.err conftest.$ac_objext \ 10634 conftest$ac_exeext conftest.$ac_ext 10635else 10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10637/* end confdefs.h. */ 10638 10639 10640/* pthread test headers */ 10641#include <pthread.h> 10642#if HAVE_PTHREADS < 7 10643#include <errno.h> 10644#endif 10645#ifndef NULL 10646#define NULL (void*)0 10647#endif 10648 10649static void *task(p) 10650 void *p; 10651{ 10652 return (void *) (p == NULL); 10653} 10654 10655 10656int main(argc, argv) 10657 int argc; 10658 char **argv; 10659{ 10660 10661 /* pthread test function */ 10662#ifndef PTHREAD_CREATE_DETACHED 10663#define PTHREAD_CREATE_DETACHED 1 10664#endif 10665 pthread_t t; 10666 int status; 10667 int detach = PTHREAD_CREATE_DETACHED; 10668 10669#if HAVE_PTHREADS > 4 10670 /* Final pthreads */ 10671 pthread_attr_t attr; 10672 10673 status = pthread_attr_init(&attr); 10674 if( status ) return status; 10675 10676#if HAVE_PTHREADS < 7 10677 status = pthread_attr_setdetachstate(&attr, &detach); 10678 if( status < 0 ) status = errno; 10679#else 10680 status = pthread_attr_setdetachstate(&attr, detach); 10681#endif 10682 if( status ) return status; 10683 status = pthread_create( &t, &attr, task, NULL ); 10684#if HAVE_PTHREADS < 7 10685 if( status < 0 ) status = errno; 10686#endif 10687 if( status ) return status; 10688#else 10689 /* Draft 4 pthreads */ 10690 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10691 if( status ) return errno; 10692 10693 /* give thread a chance to complete */ 10694 /* it should remain joinable and hence detachable */ 10695 sleep( 1 ); 10696 10697 status = pthread_detach( &t ); 10698 if( status ) return errno; 10699#endif 10700 10701#ifdef HAVE_LINUX_THREADS 10702 pthread_kill_other_threads_np(); 10703#endif 10704 10705 return 0; 10706 10707} 10708 10709_ACEOF 10710if ac_fn_c_try_run "$LINENO"; then : 10711 ol_cv_pthread_pthreads=yes 10712else 10713 ol_cv_pthread_pthreads=no 10714fi 10715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10716 conftest.$ac_objext conftest.beam conftest.$ac_ext 10717fi 10718 10719 10720 # restore the LIBS 10721 LIBS="$ol_LIBS" 10722 10723fi 10724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5 10725$as_echo "$ol_cv_pthread_pthreads" >&6; } 10726 10727 if test $ol_cv_pthread_pthreads = yes ; then 10728 ol_link_pthreads="-pthreads" 10729 ol_link_threads=posix 10730 fi 10731fi 10732 10733 # Pthread try link: -mthreads (ol_cv_pthread_mthreads) 10734if test "$ol_link_threads" = no ; then 10735 # try -mthreads 10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5 10737$as_echo_n "checking for pthread link with -mthreads... " >&6; } 10738if ${ol_cv_pthread_mthreads+:} false; then : 10739 $as_echo_n "(cached) " >&6 10740else 10741 10742 # save the flags 10743 ol_LIBS="$LIBS" 10744 LIBS="-mthreads $LIBS" 10745 10746 if test "$cross_compiling" = yes; then : 10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10748/* end confdefs.h. */ 10749 10750/* pthread test headers */ 10751#include <pthread.h> 10752#if HAVE_PTHREADS < 7 10753#include <errno.h> 10754#endif 10755#ifndef NULL 10756#define NULL (void*)0 10757#endif 10758 10759static void *task(p) 10760 void *p; 10761{ 10762 return (void *) (p == NULL); 10763} 10764 10765int 10766main () 10767{ 10768 10769 /* pthread test function */ 10770#ifndef PTHREAD_CREATE_DETACHED 10771#define PTHREAD_CREATE_DETACHED 1 10772#endif 10773 pthread_t t; 10774 int status; 10775 int detach = PTHREAD_CREATE_DETACHED; 10776 10777#if HAVE_PTHREADS > 4 10778 /* Final pthreads */ 10779 pthread_attr_t attr; 10780 10781 status = pthread_attr_init(&attr); 10782 if( status ) return status; 10783 10784#if HAVE_PTHREADS < 7 10785 status = pthread_attr_setdetachstate(&attr, &detach); 10786 if( status < 0 ) status = errno; 10787#else 10788 status = pthread_attr_setdetachstate(&attr, detach); 10789#endif 10790 if( status ) return status; 10791 status = pthread_create( &t, &attr, task, NULL ); 10792#if HAVE_PTHREADS < 7 10793 if( status < 0 ) status = errno; 10794#endif 10795 if( status ) return status; 10796#else 10797 /* Draft 4 pthreads */ 10798 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10799 if( status ) return errno; 10800 10801 /* give thread a chance to complete */ 10802 /* it should remain joinable and hence detachable */ 10803 sleep( 1 ); 10804 10805 status = pthread_detach( &t ); 10806 if( status ) return errno; 10807#endif 10808 10809#ifdef HAVE_LINUX_THREADS 10810 pthread_kill_other_threads_np(); 10811#endif 10812 10813 return 0; 10814 10815 ; 10816 return 0; 10817} 10818_ACEOF 10819if ac_fn_c_try_link "$LINENO"; then : 10820 ol_cv_pthread_mthreads=yes 10821else 10822 ol_cv_pthread_mthreads=no 10823fi 10824rm -f core conftest.err conftest.$ac_objext \ 10825 conftest$ac_exeext conftest.$ac_ext 10826else 10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10828/* end confdefs.h. */ 10829 10830 10831/* pthread test headers */ 10832#include <pthread.h> 10833#if HAVE_PTHREADS < 7 10834#include <errno.h> 10835#endif 10836#ifndef NULL 10837#define NULL (void*)0 10838#endif 10839 10840static void *task(p) 10841 void *p; 10842{ 10843 return (void *) (p == NULL); 10844} 10845 10846 10847int main(argc, argv) 10848 int argc; 10849 char **argv; 10850{ 10851 10852 /* pthread test function */ 10853#ifndef PTHREAD_CREATE_DETACHED 10854#define PTHREAD_CREATE_DETACHED 1 10855#endif 10856 pthread_t t; 10857 int status; 10858 int detach = PTHREAD_CREATE_DETACHED; 10859 10860#if HAVE_PTHREADS > 4 10861 /* Final pthreads */ 10862 pthread_attr_t attr; 10863 10864 status = pthread_attr_init(&attr); 10865 if( status ) return status; 10866 10867#if HAVE_PTHREADS < 7 10868 status = pthread_attr_setdetachstate(&attr, &detach); 10869 if( status < 0 ) status = errno; 10870#else 10871 status = pthread_attr_setdetachstate(&attr, detach); 10872#endif 10873 if( status ) return status; 10874 status = pthread_create( &t, &attr, task, NULL ); 10875#if HAVE_PTHREADS < 7 10876 if( status < 0 ) status = errno; 10877#endif 10878 if( status ) return status; 10879#else 10880 /* Draft 4 pthreads */ 10881 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10882 if( status ) return errno; 10883 10884 /* give thread a chance to complete */ 10885 /* it should remain joinable and hence detachable */ 10886 sleep( 1 ); 10887 10888 status = pthread_detach( &t ); 10889 if( status ) return errno; 10890#endif 10891 10892#ifdef HAVE_LINUX_THREADS 10893 pthread_kill_other_threads_np(); 10894#endif 10895 10896 return 0; 10897 10898} 10899 10900_ACEOF 10901if ac_fn_c_try_run "$LINENO"; then : 10902 ol_cv_pthread_mthreads=yes 10903else 10904 ol_cv_pthread_mthreads=no 10905fi 10906rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10907 conftest.$ac_objext conftest.beam conftest.$ac_ext 10908fi 10909 10910 10911 # restore the LIBS 10912 LIBS="$ol_LIBS" 10913 10914fi 10915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5 10916$as_echo "$ol_cv_pthread_mthreads" >&6; } 10917 10918 if test $ol_cv_pthread_mthreads = yes ; then 10919 ol_link_pthreads="-mthreads" 10920 ol_link_threads=posix 10921 fi 10922fi 10923 10924 # Pthread try link: -thread (ol_cv_pthread_thread) 10925if test "$ol_link_threads" = no ; then 10926 # try -thread 10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5 10928$as_echo_n "checking for pthread link with -thread... " >&6; } 10929if ${ol_cv_pthread_thread+:} false; then : 10930 $as_echo_n "(cached) " >&6 10931else 10932 10933 # save the flags 10934 ol_LIBS="$LIBS" 10935 LIBS="-thread $LIBS" 10936 10937 if test "$cross_compiling" = yes; then : 10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10939/* end confdefs.h. */ 10940 10941/* pthread test headers */ 10942#include <pthread.h> 10943#if HAVE_PTHREADS < 7 10944#include <errno.h> 10945#endif 10946#ifndef NULL 10947#define NULL (void*)0 10948#endif 10949 10950static void *task(p) 10951 void *p; 10952{ 10953 return (void *) (p == NULL); 10954} 10955 10956int 10957main () 10958{ 10959 10960 /* pthread test function */ 10961#ifndef PTHREAD_CREATE_DETACHED 10962#define PTHREAD_CREATE_DETACHED 1 10963#endif 10964 pthread_t t; 10965 int status; 10966 int detach = PTHREAD_CREATE_DETACHED; 10967 10968#if HAVE_PTHREADS > 4 10969 /* Final pthreads */ 10970 pthread_attr_t attr; 10971 10972 status = pthread_attr_init(&attr); 10973 if( status ) return status; 10974 10975#if HAVE_PTHREADS < 7 10976 status = pthread_attr_setdetachstate(&attr, &detach); 10977 if( status < 0 ) status = errno; 10978#else 10979 status = pthread_attr_setdetachstate(&attr, detach); 10980#endif 10981 if( status ) return status; 10982 status = pthread_create( &t, &attr, task, NULL ); 10983#if HAVE_PTHREADS < 7 10984 if( status < 0 ) status = errno; 10985#endif 10986 if( status ) return status; 10987#else 10988 /* Draft 4 pthreads */ 10989 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10990 if( status ) return errno; 10991 10992 /* give thread a chance to complete */ 10993 /* it should remain joinable and hence detachable */ 10994 sleep( 1 ); 10995 10996 status = pthread_detach( &t ); 10997 if( status ) return errno; 10998#endif 10999 11000#ifdef HAVE_LINUX_THREADS 11001 pthread_kill_other_threads_np(); 11002#endif 11003 11004 return 0; 11005 11006 ; 11007 return 0; 11008} 11009_ACEOF 11010if ac_fn_c_try_link "$LINENO"; then : 11011 ol_cv_pthread_thread=yes 11012else 11013 ol_cv_pthread_thread=no 11014fi 11015rm -f core conftest.err conftest.$ac_objext \ 11016 conftest$ac_exeext conftest.$ac_ext 11017else 11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11019/* end confdefs.h. */ 11020 11021 11022/* pthread test headers */ 11023#include <pthread.h> 11024#if HAVE_PTHREADS < 7 11025#include <errno.h> 11026#endif 11027#ifndef NULL 11028#define NULL (void*)0 11029#endif 11030 11031static void *task(p) 11032 void *p; 11033{ 11034 return (void *) (p == NULL); 11035} 11036 11037 11038int main(argc, argv) 11039 int argc; 11040 char **argv; 11041{ 11042 11043 /* pthread test function */ 11044#ifndef PTHREAD_CREATE_DETACHED 11045#define PTHREAD_CREATE_DETACHED 1 11046#endif 11047 pthread_t t; 11048 int status; 11049 int detach = PTHREAD_CREATE_DETACHED; 11050 11051#if HAVE_PTHREADS > 4 11052 /* Final pthreads */ 11053 pthread_attr_t attr; 11054 11055 status = pthread_attr_init(&attr); 11056 if( status ) return status; 11057 11058#if HAVE_PTHREADS < 7 11059 status = pthread_attr_setdetachstate(&attr, &detach); 11060 if( status < 0 ) status = errno; 11061#else 11062 status = pthread_attr_setdetachstate(&attr, detach); 11063#endif 11064 if( status ) return status; 11065 status = pthread_create( &t, &attr, task, NULL ); 11066#if HAVE_PTHREADS < 7 11067 if( status < 0 ) status = errno; 11068#endif 11069 if( status ) return status; 11070#else 11071 /* Draft 4 pthreads */ 11072 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11073 if( status ) return errno; 11074 11075 /* give thread a chance to complete */ 11076 /* it should remain joinable and hence detachable */ 11077 sleep( 1 ); 11078 11079 status = pthread_detach( &t ); 11080 if( status ) return errno; 11081#endif 11082 11083#ifdef HAVE_LINUX_THREADS 11084 pthread_kill_other_threads_np(); 11085#endif 11086 11087 return 0; 11088 11089} 11090 11091_ACEOF 11092if ac_fn_c_try_run "$LINENO"; then : 11093 ol_cv_pthread_thread=yes 11094else 11095 ol_cv_pthread_thread=no 11096fi 11097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11098 conftest.$ac_objext conftest.beam conftest.$ac_ext 11099fi 11100 11101 11102 # restore the LIBS 11103 LIBS="$ol_LIBS" 11104 11105fi 11106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5 11107$as_echo "$ol_cv_pthread_thread" >&6; } 11108 11109 if test $ol_cv_pthread_thread = yes ; then 11110 ol_link_pthreads="-thread" 11111 ol_link_threads=posix 11112 fi 11113fi 11114 11115 11116 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r) 11117if test "$ol_link_threads" = no ; then 11118 # try -lpthread -lmach -lexc -lc_r 11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5 11120$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; } 11121if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then : 11122 $as_echo_n "(cached) " >&6 11123else 11124 11125 # save the flags 11126 ol_LIBS="$LIBS" 11127 LIBS="-lpthread -lmach -lexc -lc_r $LIBS" 11128 11129 if test "$cross_compiling" = yes; then : 11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11131/* end confdefs.h. */ 11132 11133/* pthread test headers */ 11134#include <pthread.h> 11135#if HAVE_PTHREADS < 7 11136#include <errno.h> 11137#endif 11138#ifndef NULL 11139#define NULL (void*)0 11140#endif 11141 11142static void *task(p) 11143 void *p; 11144{ 11145 return (void *) (p == NULL); 11146} 11147 11148int 11149main () 11150{ 11151 11152 /* pthread test function */ 11153#ifndef PTHREAD_CREATE_DETACHED 11154#define PTHREAD_CREATE_DETACHED 1 11155#endif 11156 pthread_t t; 11157 int status; 11158 int detach = PTHREAD_CREATE_DETACHED; 11159 11160#if HAVE_PTHREADS > 4 11161 /* Final pthreads */ 11162 pthread_attr_t attr; 11163 11164 status = pthread_attr_init(&attr); 11165 if( status ) return status; 11166 11167#if HAVE_PTHREADS < 7 11168 status = pthread_attr_setdetachstate(&attr, &detach); 11169 if( status < 0 ) status = errno; 11170#else 11171 status = pthread_attr_setdetachstate(&attr, detach); 11172#endif 11173 if( status ) return status; 11174 status = pthread_create( &t, &attr, task, NULL ); 11175#if HAVE_PTHREADS < 7 11176 if( status < 0 ) status = errno; 11177#endif 11178 if( status ) return status; 11179#else 11180 /* Draft 4 pthreads */ 11181 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11182 if( status ) return errno; 11183 11184 /* give thread a chance to complete */ 11185 /* it should remain joinable and hence detachable */ 11186 sleep( 1 ); 11187 11188 status = pthread_detach( &t ); 11189 if( status ) return errno; 11190#endif 11191 11192#ifdef HAVE_LINUX_THREADS 11193 pthread_kill_other_threads_np(); 11194#endif 11195 11196 return 0; 11197 11198 ; 11199 return 0; 11200} 11201_ACEOF 11202if ac_fn_c_try_link "$LINENO"; then : 11203 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 11204else 11205 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 11206fi 11207rm -f core conftest.err conftest.$ac_objext \ 11208 conftest$ac_exeext conftest.$ac_ext 11209else 11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11211/* end confdefs.h. */ 11212 11213 11214/* pthread test headers */ 11215#include <pthread.h> 11216#if HAVE_PTHREADS < 7 11217#include <errno.h> 11218#endif 11219#ifndef NULL 11220#define NULL (void*)0 11221#endif 11222 11223static void *task(p) 11224 void *p; 11225{ 11226 return (void *) (p == NULL); 11227} 11228 11229 11230int main(argc, argv) 11231 int argc; 11232 char **argv; 11233{ 11234 11235 /* pthread test function */ 11236#ifndef PTHREAD_CREATE_DETACHED 11237#define PTHREAD_CREATE_DETACHED 1 11238#endif 11239 pthread_t t; 11240 int status; 11241 int detach = PTHREAD_CREATE_DETACHED; 11242 11243#if HAVE_PTHREADS > 4 11244 /* Final pthreads */ 11245 pthread_attr_t attr; 11246 11247 status = pthread_attr_init(&attr); 11248 if( status ) return status; 11249 11250#if HAVE_PTHREADS < 7 11251 status = pthread_attr_setdetachstate(&attr, &detach); 11252 if( status < 0 ) status = errno; 11253#else 11254 status = pthread_attr_setdetachstate(&attr, detach); 11255#endif 11256 if( status ) return status; 11257 status = pthread_create( &t, &attr, task, NULL ); 11258#if HAVE_PTHREADS < 7 11259 if( status < 0 ) status = errno; 11260#endif 11261 if( status ) return status; 11262#else 11263 /* Draft 4 pthreads */ 11264 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11265 if( status ) return errno; 11266 11267 /* give thread a chance to complete */ 11268 /* it should remain joinable and hence detachable */ 11269 sleep( 1 ); 11270 11271 status = pthread_detach( &t ); 11272 if( status ) return errno; 11273#endif 11274 11275#ifdef HAVE_LINUX_THREADS 11276 pthread_kill_other_threads_np(); 11277#endif 11278 11279 return 0; 11280 11281} 11282 11283_ACEOF 11284if ac_fn_c_try_run "$LINENO"; then : 11285 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 11286else 11287 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 11288fi 11289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11290 conftest.$ac_objext conftest.beam conftest.$ac_ext 11291fi 11292 11293 11294 # restore the LIBS 11295 LIBS="$ol_LIBS" 11296 11297fi 11298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5 11299$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; } 11300 11301 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then 11302 ol_link_pthreads="-lpthread -lmach -lexc -lc_r" 11303 ol_link_threads=posix 11304 fi 11305fi 11306 11307 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc) 11308if test "$ol_link_threads" = no ; then 11309 # try -lpthread -lmach -lexc 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5 11311$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; } 11312if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then : 11313 $as_echo_n "(cached) " >&6 11314else 11315 11316 # save the flags 11317 ol_LIBS="$LIBS" 11318 LIBS="-lpthread -lmach -lexc $LIBS" 11319 11320 if test "$cross_compiling" = yes; then : 11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11322/* end confdefs.h. */ 11323 11324/* pthread test headers */ 11325#include <pthread.h> 11326#if HAVE_PTHREADS < 7 11327#include <errno.h> 11328#endif 11329#ifndef NULL 11330#define NULL (void*)0 11331#endif 11332 11333static void *task(p) 11334 void *p; 11335{ 11336 return (void *) (p == NULL); 11337} 11338 11339int 11340main () 11341{ 11342 11343 /* pthread test function */ 11344#ifndef PTHREAD_CREATE_DETACHED 11345#define PTHREAD_CREATE_DETACHED 1 11346#endif 11347 pthread_t t; 11348 int status; 11349 int detach = PTHREAD_CREATE_DETACHED; 11350 11351#if HAVE_PTHREADS > 4 11352 /* Final pthreads */ 11353 pthread_attr_t attr; 11354 11355 status = pthread_attr_init(&attr); 11356 if( status ) return status; 11357 11358#if HAVE_PTHREADS < 7 11359 status = pthread_attr_setdetachstate(&attr, &detach); 11360 if( status < 0 ) status = errno; 11361#else 11362 status = pthread_attr_setdetachstate(&attr, detach); 11363#endif 11364 if( status ) return status; 11365 status = pthread_create( &t, &attr, task, NULL ); 11366#if HAVE_PTHREADS < 7 11367 if( status < 0 ) status = errno; 11368#endif 11369 if( status ) return status; 11370#else 11371 /* Draft 4 pthreads */ 11372 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11373 if( status ) return errno; 11374 11375 /* give thread a chance to complete */ 11376 /* it should remain joinable and hence detachable */ 11377 sleep( 1 ); 11378 11379 status = pthread_detach( &t ); 11380 if( status ) return errno; 11381#endif 11382 11383#ifdef HAVE_LINUX_THREADS 11384 pthread_kill_other_threads_np(); 11385#endif 11386 11387 return 0; 11388 11389 ; 11390 return 0; 11391} 11392_ACEOF 11393if ac_fn_c_try_link "$LINENO"; then : 11394 ol_cv_pthread_lpthread_lmach_lexc=yes 11395else 11396 ol_cv_pthread_lpthread_lmach_lexc=no 11397fi 11398rm -f core conftest.err conftest.$ac_objext \ 11399 conftest$ac_exeext conftest.$ac_ext 11400else 11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11402/* end confdefs.h. */ 11403 11404 11405/* pthread test headers */ 11406#include <pthread.h> 11407#if HAVE_PTHREADS < 7 11408#include <errno.h> 11409#endif 11410#ifndef NULL 11411#define NULL (void*)0 11412#endif 11413 11414static void *task(p) 11415 void *p; 11416{ 11417 return (void *) (p == NULL); 11418} 11419 11420 11421int main(argc, argv) 11422 int argc; 11423 char **argv; 11424{ 11425 11426 /* pthread test function */ 11427#ifndef PTHREAD_CREATE_DETACHED 11428#define PTHREAD_CREATE_DETACHED 1 11429#endif 11430 pthread_t t; 11431 int status; 11432 int detach = PTHREAD_CREATE_DETACHED; 11433 11434#if HAVE_PTHREADS > 4 11435 /* Final pthreads */ 11436 pthread_attr_t attr; 11437 11438 status = pthread_attr_init(&attr); 11439 if( status ) return status; 11440 11441#if HAVE_PTHREADS < 7 11442 status = pthread_attr_setdetachstate(&attr, &detach); 11443 if( status < 0 ) status = errno; 11444#else 11445 status = pthread_attr_setdetachstate(&attr, detach); 11446#endif 11447 if( status ) return status; 11448 status = pthread_create( &t, &attr, task, NULL ); 11449#if HAVE_PTHREADS < 7 11450 if( status < 0 ) status = errno; 11451#endif 11452 if( status ) return status; 11453#else 11454 /* Draft 4 pthreads */ 11455 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11456 if( status ) return errno; 11457 11458 /* give thread a chance to complete */ 11459 /* it should remain joinable and hence detachable */ 11460 sleep( 1 ); 11461 11462 status = pthread_detach( &t ); 11463 if( status ) return errno; 11464#endif 11465 11466#ifdef HAVE_LINUX_THREADS 11467 pthread_kill_other_threads_np(); 11468#endif 11469 11470 return 0; 11471 11472} 11473 11474_ACEOF 11475if ac_fn_c_try_run "$LINENO"; then : 11476 ol_cv_pthread_lpthread_lmach_lexc=yes 11477else 11478 ol_cv_pthread_lpthread_lmach_lexc=no 11479fi 11480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11481 conftest.$ac_objext conftest.beam conftest.$ac_ext 11482fi 11483 11484 11485 # restore the LIBS 11486 LIBS="$ol_LIBS" 11487 11488fi 11489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5 11490$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; } 11491 11492 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then 11493 ol_link_pthreads="-lpthread -lmach -lexc" 11494 ol_link_threads=posix 11495 fi 11496fi 11497 11498 11499 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff) 11500if test "$ol_link_threads" = no ; then 11501 # try -lpthread -Wl,-woff,85 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5 11503$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; } 11504if ${ol_cv_pthread_lib_lpthread_woff+:} false; then : 11505 $as_echo_n "(cached) " >&6 11506else 11507 11508 # save the flags 11509 ol_LIBS="$LIBS" 11510 LIBS="-lpthread -Wl,-woff,85 $LIBS" 11511 11512 if test "$cross_compiling" = yes; then : 11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11514/* end confdefs.h. */ 11515 11516/* pthread test headers */ 11517#include <pthread.h> 11518#if HAVE_PTHREADS < 7 11519#include <errno.h> 11520#endif 11521#ifndef NULL 11522#define NULL (void*)0 11523#endif 11524 11525static void *task(p) 11526 void *p; 11527{ 11528 return (void *) (p == NULL); 11529} 11530 11531int 11532main () 11533{ 11534 11535 /* pthread test function */ 11536#ifndef PTHREAD_CREATE_DETACHED 11537#define PTHREAD_CREATE_DETACHED 1 11538#endif 11539 pthread_t t; 11540 int status; 11541 int detach = PTHREAD_CREATE_DETACHED; 11542 11543#if HAVE_PTHREADS > 4 11544 /* Final pthreads */ 11545 pthread_attr_t attr; 11546 11547 status = pthread_attr_init(&attr); 11548 if( status ) return status; 11549 11550#if HAVE_PTHREADS < 7 11551 status = pthread_attr_setdetachstate(&attr, &detach); 11552 if( status < 0 ) status = errno; 11553#else 11554 status = pthread_attr_setdetachstate(&attr, detach); 11555#endif 11556 if( status ) return status; 11557 status = pthread_create( &t, &attr, task, NULL ); 11558#if HAVE_PTHREADS < 7 11559 if( status < 0 ) status = errno; 11560#endif 11561 if( status ) return status; 11562#else 11563 /* Draft 4 pthreads */ 11564 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11565 if( status ) return errno; 11566 11567 /* give thread a chance to complete */ 11568 /* it should remain joinable and hence detachable */ 11569 sleep( 1 ); 11570 11571 status = pthread_detach( &t ); 11572 if( status ) return errno; 11573#endif 11574 11575#ifdef HAVE_LINUX_THREADS 11576 pthread_kill_other_threads_np(); 11577#endif 11578 11579 return 0; 11580 11581 ; 11582 return 0; 11583} 11584_ACEOF 11585if ac_fn_c_try_link "$LINENO"; then : 11586 ol_cv_pthread_lib_lpthread_woff=yes 11587else 11588 ol_cv_pthread_lib_lpthread_woff=no 11589fi 11590rm -f core conftest.err conftest.$ac_objext \ 11591 conftest$ac_exeext conftest.$ac_ext 11592else 11593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11594/* end confdefs.h. */ 11595 11596 11597/* pthread test headers */ 11598#include <pthread.h> 11599#if HAVE_PTHREADS < 7 11600#include <errno.h> 11601#endif 11602#ifndef NULL 11603#define NULL (void*)0 11604#endif 11605 11606static void *task(p) 11607 void *p; 11608{ 11609 return (void *) (p == NULL); 11610} 11611 11612 11613int main(argc, argv) 11614 int argc; 11615 char **argv; 11616{ 11617 11618 /* pthread test function */ 11619#ifndef PTHREAD_CREATE_DETACHED 11620#define PTHREAD_CREATE_DETACHED 1 11621#endif 11622 pthread_t t; 11623 int status; 11624 int detach = PTHREAD_CREATE_DETACHED; 11625 11626#if HAVE_PTHREADS > 4 11627 /* Final pthreads */ 11628 pthread_attr_t attr; 11629 11630 status = pthread_attr_init(&attr); 11631 if( status ) return status; 11632 11633#if HAVE_PTHREADS < 7 11634 status = pthread_attr_setdetachstate(&attr, &detach); 11635 if( status < 0 ) status = errno; 11636#else 11637 status = pthread_attr_setdetachstate(&attr, detach); 11638#endif 11639 if( status ) return status; 11640 status = pthread_create( &t, &attr, task, NULL ); 11641#if HAVE_PTHREADS < 7 11642 if( status < 0 ) status = errno; 11643#endif 11644 if( status ) return status; 11645#else 11646 /* Draft 4 pthreads */ 11647 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11648 if( status ) return errno; 11649 11650 /* give thread a chance to complete */ 11651 /* it should remain joinable and hence detachable */ 11652 sleep( 1 ); 11653 11654 status = pthread_detach( &t ); 11655 if( status ) return errno; 11656#endif 11657 11658#ifdef HAVE_LINUX_THREADS 11659 pthread_kill_other_threads_np(); 11660#endif 11661 11662 return 0; 11663 11664} 11665 11666_ACEOF 11667if ac_fn_c_try_run "$LINENO"; then : 11668 ol_cv_pthread_lib_lpthread_woff=yes 11669else 11670 ol_cv_pthread_lib_lpthread_woff=no 11671fi 11672rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11673 conftest.$ac_objext conftest.beam conftest.$ac_ext 11674fi 11675 11676 11677 # restore the LIBS 11678 LIBS="$ol_LIBS" 11679 11680fi 11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5 11682$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; } 11683 11684 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then 11685 ol_link_pthreads="-lpthread -Wl,-woff,85" 11686 ol_link_threads=posix 11687 fi 11688fi 11689 11690 11691 # Pthread try link: -lpthread (ol_cv_pthread_lpthread) 11692if test "$ol_link_threads" = no ; then 11693 # try -lpthread 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5 11695$as_echo_n "checking for pthread link with -lpthread... " >&6; } 11696if ${ol_cv_pthread_lpthread+:} false; then : 11697 $as_echo_n "(cached) " >&6 11698else 11699 11700 # save the flags 11701 ol_LIBS="$LIBS" 11702 LIBS="-lpthread $LIBS" 11703 11704 if test "$cross_compiling" = yes; then : 11705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11706/* end confdefs.h. */ 11707 11708/* pthread test headers */ 11709#include <pthread.h> 11710#if HAVE_PTHREADS < 7 11711#include <errno.h> 11712#endif 11713#ifndef NULL 11714#define NULL (void*)0 11715#endif 11716 11717static void *task(p) 11718 void *p; 11719{ 11720 return (void *) (p == NULL); 11721} 11722 11723int 11724main () 11725{ 11726 11727 /* pthread test function */ 11728#ifndef PTHREAD_CREATE_DETACHED 11729#define PTHREAD_CREATE_DETACHED 1 11730#endif 11731 pthread_t t; 11732 int status; 11733 int detach = PTHREAD_CREATE_DETACHED; 11734 11735#if HAVE_PTHREADS > 4 11736 /* Final pthreads */ 11737 pthread_attr_t attr; 11738 11739 status = pthread_attr_init(&attr); 11740 if( status ) return status; 11741 11742#if HAVE_PTHREADS < 7 11743 status = pthread_attr_setdetachstate(&attr, &detach); 11744 if( status < 0 ) status = errno; 11745#else 11746 status = pthread_attr_setdetachstate(&attr, detach); 11747#endif 11748 if( status ) return status; 11749 status = pthread_create( &t, &attr, task, NULL ); 11750#if HAVE_PTHREADS < 7 11751 if( status < 0 ) status = errno; 11752#endif 11753 if( status ) return status; 11754#else 11755 /* Draft 4 pthreads */ 11756 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11757 if( status ) return errno; 11758 11759 /* give thread a chance to complete */ 11760 /* it should remain joinable and hence detachable */ 11761 sleep( 1 ); 11762 11763 status = pthread_detach( &t ); 11764 if( status ) return errno; 11765#endif 11766 11767#ifdef HAVE_LINUX_THREADS 11768 pthread_kill_other_threads_np(); 11769#endif 11770 11771 return 0; 11772 11773 ; 11774 return 0; 11775} 11776_ACEOF 11777if ac_fn_c_try_link "$LINENO"; then : 11778 ol_cv_pthread_lpthread=yes 11779else 11780 ol_cv_pthread_lpthread=no 11781fi 11782rm -f core conftest.err conftest.$ac_objext \ 11783 conftest$ac_exeext conftest.$ac_ext 11784else 11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11786/* end confdefs.h. */ 11787 11788 11789/* pthread test headers */ 11790#include <pthread.h> 11791#if HAVE_PTHREADS < 7 11792#include <errno.h> 11793#endif 11794#ifndef NULL 11795#define NULL (void*)0 11796#endif 11797 11798static void *task(p) 11799 void *p; 11800{ 11801 return (void *) (p == NULL); 11802} 11803 11804 11805int main(argc, argv) 11806 int argc; 11807 char **argv; 11808{ 11809 11810 /* pthread test function */ 11811#ifndef PTHREAD_CREATE_DETACHED 11812#define PTHREAD_CREATE_DETACHED 1 11813#endif 11814 pthread_t t; 11815 int status; 11816 int detach = PTHREAD_CREATE_DETACHED; 11817 11818#if HAVE_PTHREADS > 4 11819 /* Final pthreads */ 11820 pthread_attr_t attr; 11821 11822 status = pthread_attr_init(&attr); 11823 if( status ) return status; 11824 11825#if HAVE_PTHREADS < 7 11826 status = pthread_attr_setdetachstate(&attr, &detach); 11827 if( status < 0 ) status = errno; 11828#else 11829 status = pthread_attr_setdetachstate(&attr, detach); 11830#endif 11831 if( status ) return status; 11832 status = pthread_create( &t, &attr, task, NULL ); 11833#if HAVE_PTHREADS < 7 11834 if( status < 0 ) status = errno; 11835#endif 11836 if( status ) return status; 11837#else 11838 /* Draft 4 pthreads */ 11839 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11840 if( status ) return errno; 11841 11842 /* give thread a chance to complete */ 11843 /* it should remain joinable and hence detachable */ 11844 sleep( 1 ); 11845 11846 status = pthread_detach( &t ); 11847 if( status ) return errno; 11848#endif 11849 11850#ifdef HAVE_LINUX_THREADS 11851 pthread_kill_other_threads_np(); 11852#endif 11853 11854 return 0; 11855 11856} 11857 11858_ACEOF 11859if ac_fn_c_try_run "$LINENO"; then : 11860 ol_cv_pthread_lpthread=yes 11861else 11862 ol_cv_pthread_lpthread=no 11863fi 11864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11865 conftest.$ac_objext conftest.beam conftest.$ac_ext 11866fi 11867 11868 11869 # restore the LIBS 11870 LIBS="$ol_LIBS" 11871 11872fi 11873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5 11874$as_echo "$ol_cv_pthread_lpthread" >&6; } 11875 11876 if test $ol_cv_pthread_lpthread = yes ; then 11877 ol_link_pthreads="-lpthread" 11878 ol_link_threads=posix 11879 fi 11880fi 11881 11882 # Pthread try link: -lc_r (ol_cv_pthread_lc_r) 11883if test "$ol_link_threads" = no ; then 11884 # try -lc_r 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5 11886$as_echo_n "checking for pthread link with -lc_r... " >&6; } 11887if ${ol_cv_pthread_lc_r+:} false; then : 11888 $as_echo_n "(cached) " >&6 11889else 11890 11891 # save the flags 11892 ol_LIBS="$LIBS" 11893 LIBS="-lc_r $LIBS" 11894 11895 if test "$cross_compiling" = yes; then : 11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11897/* end confdefs.h. */ 11898 11899/* pthread test headers */ 11900#include <pthread.h> 11901#if HAVE_PTHREADS < 7 11902#include <errno.h> 11903#endif 11904#ifndef NULL 11905#define NULL (void*)0 11906#endif 11907 11908static void *task(p) 11909 void *p; 11910{ 11911 return (void *) (p == NULL); 11912} 11913 11914int 11915main () 11916{ 11917 11918 /* pthread test function */ 11919#ifndef PTHREAD_CREATE_DETACHED 11920#define PTHREAD_CREATE_DETACHED 1 11921#endif 11922 pthread_t t; 11923 int status; 11924 int detach = PTHREAD_CREATE_DETACHED; 11925 11926#if HAVE_PTHREADS > 4 11927 /* Final pthreads */ 11928 pthread_attr_t attr; 11929 11930 status = pthread_attr_init(&attr); 11931 if( status ) return status; 11932 11933#if HAVE_PTHREADS < 7 11934 status = pthread_attr_setdetachstate(&attr, &detach); 11935 if( status < 0 ) status = errno; 11936#else 11937 status = pthread_attr_setdetachstate(&attr, detach); 11938#endif 11939 if( status ) return status; 11940 status = pthread_create( &t, &attr, task, NULL ); 11941#if HAVE_PTHREADS < 7 11942 if( status < 0 ) status = errno; 11943#endif 11944 if( status ) return status; 11945#else 11946 /* Draft 4 pthreads */ 11947 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11948 if( status ) return errno; 11949 11950 /* give thread a chance to complete */ 11951 /* it should remain joinable and hence detachable */ 11952 sleep( 1 ); 11953 11954 status = pthread_detach( &t ); 11955 if( status ) return errno; 11956#endif 11957 11958#ifdef HAVE_LINUX_THREADS 11959 pthread_kill_other_threads_np(); 11960#endif 11961 11962 return 0; 11963 11964 ; 11965 return 0; 11966} 11967_ACEOF 11968if ac_fn_c_try_link "$LINENO"; then : 11969 ol_cv_pthread_lc_r=yes 11970else 11971 ol_cv_pthread_lc_r=no 11972fi 11973rm -f core conftest.err conftest.$ac_objext \ 11974 conftest$ac_exeext conftest.$ac_ext 11975else 11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11977/* end confdefs.h. */ 11978 11979 11980/* pthread test headers */ 11981#include <pthread.h> 11982#if HAVE_PTHREADS < 7 11983#include <errno.h> 11984#endif 11985#ifndef NULL 11986#define NULL (void*)0 11987#endif 11988 11989static void *task(p) 11990 void *p; 11991{ 11992 return (void *) (p == NULL); 11993} 11994 11995 11996int main(argc, argv) 11997 int argc; 11998 char **argv; 11999{ 12000 12001 /* pthread test function */ 12002#ifndef PTHREAD_CREATE_DETACHED 12003#define PTHREAD_CREATE_DETACHED 1 12004#endif 12005 pthread_t t; 12006 int status; 12007 int detach = PTHREAD_CREATE_DETACHED; 12008 12009#if HAVE_PTHREADS > 4 12010 /* Final pthreads */ 12011 pthread_attr_t attr; 12012 12013 status = pthread_attr_init(&attr); 12014 if( status ) return status; 12015 12016#if HAVE_PTHREADS < 7 12017 status = pthread_attr_setdetachstate(&attr, &detach); 12018 if( status < 0 ) status = errno; 12019#else 12020 status = pthread_attr_setdetachstate(&attr, detach); 12021#endif 12022 if( status ) return status; 12023 status = pthread_create( &t, &attr, task, NULL ); 12024#if HAVE_PTHREADS < 7 12025 if( status < 0 ) status = errno; 12026#endif 12027 if( status ) return status; 12028#else 12029 /* Draft 4 pthreads */ 12030 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12031 if( status ) return errno; 12032 12033 /* give thread a chance to complete */ 12034 /* it should remain joinable and hence detachable */ 12035 sleep( 1 ); 12036 12037 status = pthread_detach( &t ); 12038 if( status ) return errno; 12039#endif 12040 12041#ifdef HAVE_LINUX_THREADS 12042 pthread_kill_other_threads_np(); 12043#endif 12044 12045 return 0; 12046 12047} 12048 12049_ACEOF 12050if ac_fn_c_try_run "$LINENO"; then : 12051 ol_cv_pthread_lc_r=yes 12052else 12053 ol_cv_pthread_lc_r=no 12054fi 12055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12056 conftest.$ac_objext conftest.beam conftest.$ac_ext 12057fi 12058 12059 12060 # restore the LIBS 12061 LIBS="$ol_LIBS" 12062 12063fi 12064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5 12065$as_echo "$ol_cv_pthread_lc_r" >&6; } 12066 12067 if test $ol_cv_pthread_lc_r = yes ; then 12068 ol_link_pthreads="-lc_r" 12069 ol_link_threads=posix 12070 fi 12071fi 12072 12073 12074 # Pthread try link: -threads (ol_cv_pthread_threads) 12075if test "$ol_link_threads" = no ; then 12076 # try -threads 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5 12078$as_echo_n "checking for pthread link with -threads... " >&6; } 12079if ${ol_cv_pthread_threads+:} false; then : 12080 $as_echo_n "(cached) " >&6 12081else 12082 12083 # save the flags 12084 ol_LIBS="$LIBS" 12085 LIBS="-threads $LIBS" 12086 12087 if test "$cross_compiling" = yes; then : 12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12089/* end confdefs.h. */ 12090 12091/* pthread test headers */ 12092#include <pthread.h> 12093#if HAVE_PTHREADS < 7 12094#include <errno.h> 12095#endif 12096#ifndef NULL 12097#define NULL (void*)0 12098#endif 12099 12100static void *task(p) 12101 void *p; 12102{ 12103 return (void *) (p == NULL); 12104} 12105 12106int 12107main () 12108{ 12109 12110 /* pthread test function */ 12111#ifndef PTHREAD_CREATE_DETACHED 12112#define PTHREAD_CREATE_DETACHED 1 12113#endif 12114 pthread_t t; 12115 int status; 12116 int detach = PTHREAD_CREATE_DETACHED; 12117 12118#if HAVE_PTHREADS > 4 12119 /* Final pthreads */ 12120 pthread_attr_t attr; 12121 12122 status = pthread_attr_init(&attr); 12123 if( status ) return status; 12124 12125#if HAVE_PTHREADS < 7 12126 status = pthread_attr_setdetachstate(&attr, &detach); 12127 if( status < 0 ) status = errno; 12128#else 12129 status = pthread_attr_setdetachstate(&attr, detach); 12130#endif 12131 if( status ) return status; 12132 status = pthread_create( &t, &attr, task, NULL ); 12133#if HAVE_PTHREADS < 7 12134 if( status < 0 ) status = errno; 12135#endif 12136 if( status ) return status; 12137#else 12138 /* Draft 4 pthreads */ 12139 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12140 if( status ) return errno; 12141 12142 /* give thread a chance to complete */ 12143 /* it should remain joinable and hence detachable */ 12144 sleep( 1 ); 12145 12146 status = pthread_detach( &t ); 12147 if( status ) return errno; 12148#endif 12149 12150#ifdef HAVE_LINUX_THREADS 12151 pthread_kill_other_threads_np(); 12152#endif 12153 12154 return 0; 12155 12156 ; 12157 return 0; 12158} 12159_ACEOF 12160if ac_fn_c_try_link "$LINENO"; then : 12161 ol_cv_pthread_threads=yes 12162else 12163 ol_cv_pthread_threads=no 12164fi 12165rm -f core conftest.err conftest.$ac_objext \ 12166 conftest$ac_exeext conftest.$ac_ext 12167else 12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12169/* end confdefs.h. */ 12170 12171 12172/* pthread test headers */ 12173#include <pthread.h> 12174#if HAVE_PTHREADS < 7 12175#include <errno.h> 12176#endif 12177#ifndef NULL 12178#define NULL (void*)0 12179#endif 12180 12181static void *task(p) 12182 void *p; 12183{ 12184 return (void *) (p == NULL); 12185} 12186 12187 12188int main(argc, argv) 12189 int argc; 12190 char **argv; 12191{ 12192 12193 /* pthread test function */ 12194#ifndef PTHREAD_CREATE_DETACHED 12195#define PTHREAD_CREATE_DETACHED 1 12196#endif 12197 pthread_t t; 12198 int status; 12199 int detach = PTHREAD_CREATE_DETACHED; 12200 12201#if HAVE_PTHREADS > 4 12202 /* Final pthreads */ 12203 pthread_attr_t attr; 12204 12205 status = pthread_attr_init(&attr); 12206 if( status ) return status; 12207 12208#if HAVE_PTHREADS < 7 12209 status = pthread_attr_setdetachstate(&attr, &detach); 12210 if( status < 0 ) status = errno; 12211#else 12212 status = pthread_attr_setdetachstate(&attr, detach); 12213#endif 12214 if( status ) return status; 12215 status = pthread_create( &t, &attr, task, NULL ); 12216#if HAVE_PTHREADS < 7 12217 if( status < 0 ) status = errno; 12218#endif 12219 if( status ) return status; 12220#else 12221 /* Draft 4 pthreads */ 12222 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12223 if( status ) return errno; 12224 12225 /* give thread a chance to complete */ 12226 /* it should remain joinable and hence detachable */ 12227 sleep( 1 ); 12228 12229 status = pthread_detach( &t ); 12230 if( status ) return errno; 12231#endif 12232 12233#ifdef HAVE_LINUX_THREADS 12234 pthread_kill_other_threads_np(); 12235#endif 12236 12237 return 0; 12238 12239} 12240 12241_ACEOF 12242if ac_fn_c_try_run "$LINENO"; then : 12243 ol_cv_pthread_threads=yes 12244else 12245 ol_cv_pthread_threads=no 12246fi 12247rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12248 conftest.$ac_objext conftest.beam conftest.$ac_ext 12249fi 12250 12251 12252 # restore the LIBS 12253 LIBS="$ol_LIBS" 12254 12255fi 12256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5 12257$as_echo "$ol_cv_pthread_threads" >&6; } 12258 12259 if test $ol_cv_pthread_threads = yes ; then 12260 ol_link_pthreads="-threads" 12261 ol_link_threads=posix 12262 fi 12263fi 12264 12265 12266 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r) 12267if test "$ol_link_threads" = no ; then 12268 # try -lpthreads -lmach -lexc -lc_r 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5 12270$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; } 12271if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then : 12272 $as_echo_n "(cached) " >&6 12273else 12274 12275 # save the flags 12276 ol_LIBS="$LIBS" 12277 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS" 12278 12279 if test "$cross_compiling" = yes; then : 12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12281/* end confdefs.h. */ 12282 12283/* pthread test headers */ 12284#include <pthread.h> 12285#if HAVE_PTHREADS < 7 12286#include <errno.h> 12287#endif 12288#ifndef NULL 12289#define NULL (void*)0 12290#endif 12291 12292static void *task(p) 12293 void *p; 12294{ 12295 return (void *) (p == NULL); 12296} 12297 12298int 12299main () 12300{ 12301 12302 /* pthread test function */ 12303#ifndef PTHREAD_CREATE_DETACHED 12304#define PTHREAD_CREATE_DETACHED 1 12305#endif 12306 pthread_t t; 12307 int status; 12308 int detach = PTHREAD_CREATE_DETACHED; 12309 12310#if HAVE_PTHREADS > 4 12311 /* Final pthreads */ 12312 pthread_attr_t attr; 12313 12314 status = pthread_attr_init(&attr); 12315 if( status ) return status; 12316 12317#if HAVE_PTHREADS < 7 12318 status = pthread_attr_setdetachstate(&attr, &detach); 12319 if( status < 0 ) status = errno; 12320#else 12321 status = pthread_attr_setdetachstate(&attr, detach); 12322#endif 12323 if( status ) return status; 12324 status = pthread_create( &t, &attr, task, NULL ); 12325#if HAVE_PTHREADS < 7 12326 if( status < 0 ) status = errno; 12327#endif 12328 if( status ) return status; 12329#else 12330 /* Draft 4 pthreads */ 12331 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12332 if( status ) return errno; 12333 12334 /* give thread a chance to complete */ 12335 /* it should remain joinable and hence detachable */ 12336 sleep( 1 ); 12337 12338 status = pthread_detach( &t ); 12339 if( status ) return errno; 12340#endif 12341 12342#ifdef HAVE_LINUX_THREADS 12343 pthread_kill_other_threads_np(); 12344#endif 12345 12346 return 0; 12347 12348 ; 12349 return 0; 12350} 12351_ACEOF 12352if ac_fn_c_try_link "$LINENO"; then : 12353 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 12354else 12355 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 12356fi 12357rm -f core conftest.err conftest.$ac_objext \ 12358 conftest$ac_exeext conftest.$ac_ext 12359else 12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12361/* end confdefs.h. */ 12362 12363 12364/* pthread test headers */ 12365#include <pthread.h> 12366#if HAVE_PTHREADS < 7 12367#include <errno.h> 12368#endif 12369#ifndef NULL 12370#define NULL (void*)0 12371#endif 12372 12373static void *task(p) 12374 void *p; 12375{ 12376 return (void *) (p == NULL); 12377} 12378 12379 12380int main(argc, argv) 12381 int argc; 12382 char **argv; 12383{ 12384 12385 /* pthread test function */ 12386#ifndef PTHREAD_CREATE_DETACHED 12387#define PTHREAD_CREATE_DETACHED 1 12388#endif 12389 pthread_t t; 12390 int status; 12391 int detach = PTHREAD_CREATE_DETACHED; 12392 12393#if HAVE_PTHREADS > 4 12394 /* Final pthreads */ 12395 pthread_attr_t attr; 12396 12397 status = pthread_attr_init(&attr); 12398 if( status ) return status; 12399 12400#if HAVE_PTHREADS < 7 12401 status = pthread_attr_setdetachstate(&attr, &detach); 12402 if( status < 0 ) status = errno; 12403#else 12404 status = pthread_attr_setdetachstate(&attr, detach); 12405#endif 12406 if( status ) return status; 12407 status = pthread_create( &t, &attr, task, NULL ); 12408#if HAVE_PTHREADS < 7 12409 if( status < 0 ) status = errno; 12410#endif 12411 if( status ) return status; 12412#else 12413 /* Draft 4 pthreads */ 12414 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12415 if( status ) return errno; 12416 12417 /* give thread a chance to complete */ 12418 /* it should remain joinable and hence detachable */ 12419 sleep( 1 ); 12420 12421 status = pthread_detach( &t ); 12422 if( status ) return errno; 12423#endif 12424 12425#ifdef HAVE_LINUX_THREADS 12426 pthread_kill_other_threads_np(); 12427#endif 12428 12429 return 0; 12430 12431} 12432 12433_ACEOF 12434if ac_fn_c_try_run "$LINENO"; then : 12435 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 12436else 12437 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 12438fi 12439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12440 conftest.$ac_objext conftest.beam conftest.$ac_ext 12441fi 12442 12443 12444 # restore the LIBS 12445 LIBS="$ol_LIBS" 12446 12447fi 12448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5 12449$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; } 12450 12451 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then 12452 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r" 12453 ol_link_threads=posix 12454 fi 12455fi 12456 12457 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc) 12458if test "$ol_link_threads" = no ; then 12459 # try -lpthreads -lmach -lexc 12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5 12461$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; } 12462if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then : 12463 $as_echo_n "(cached) " >&6 12464else 12465 12466 # save the flags 12467 ol_LIBS="$LIBS" 12468 LIBS="-lpthreads -lmach -lexc $LIBS" 12469 12470 if test "$cross_compiling" = yes; then : 12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12472/* end confdefs.h. */ 12473 12474/* pthread test headers */ 12475#include <pthread.h> 12476#if HAVE_PTHREADS < 7 12477#include <errno.h> 12478#endif 12479#ifndef NULL 12480#define NULL (void*)0 12481#endif 12482 12483static void *task(p) 12484 void *p; 12485{ 12486 return (void *) (p == NULL); 12487} 12488 12489int 12490main () 12491{ 12492 12493 /* pthread test function */ 12494#ifndef PTHREAD_CREATE_DETACHED 12495#define PTHREAD_CREATE_DETACHED 1 12496#endif 12497 pthread_t t; 12498 int status; 12499 int detach = PTHREAD_CREATE_DETACHED; 12500 12501#if HAVE_PTHREADS > 4 12502 /* Final pthreads */ 12503 pthread_attr_t attr; 12504 12505 status = pthread_attr_init(&attr); 12506 if( status ) return status; 12507 12508#if HAVE_PTHREADS < 7 12509 status = pthread_attr_setdetachstate(&attr, &detach); 12510 if( status < 0 ) status = errno; 12511#else 12512 status = pthread_attr_setdetachstate(&attr, detach); 12513#endif 12514 if( status ) return status; 12515 status = pthread_create( &t, &attr, task, NULL ); 12516#if HAVE_PTHREADS < 7 12517 if( status < 0 ) status = errno; 12518#endif 12519 if( status ) return status; 12520#else 12521 /* Draft 4 pthreads */ 12522 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12523 if( status ) return errno; 12524 12525 /* give thread a chance to complete */ 12526 /* it should remain joinable and hence detachable */ 12527 sleep( 1 ); 12528 12529 status = pthread_detach( &t ); 12530 if( status ) return errno; 12531#endif 12532 12533#ifdef HAVE_LINUX_THREADS 12534 pthread_kill_other_threads_np(); 12535#endif 12536 12537 return 0; 12538 12539 ; 12540 return 0; 12541} 12542_ACEOF 12543if ac_fn_c_try_link "$LINENO"; then : 12544 ol_cv_pthread_lpthreads_lmach_lexc=yes 12545else 12546 ol_cv_pthread_lpthreads_lmach_lexc=no 12547fi 12548rm -f core conftest.err conftest.$ac_objext \ 12549 conftest$ac_exeext conftest.$ac_ext 12550else 12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12552/* end confdefs.h. */ 12553 12554 12555/* pthread test headers */ 12556#include <pthread.h> 12557#if HAVE_PTHREADS < 7 12558#include <errno.h> 12559#endif 12560#ifndef NULL 12561#define NULL (void*)0 12562#endif 12563 12564static void *task(p) 12565 void *p; 12566{ 12567 return (void *) (p == NULL); 12568} 12569 12570 12571int main(argc, argv) 12572 int argc; 12573 char **argv; 12574{ 12575 12576 /* pthread test function */ 12577#ifndef PTHREAD_CREATE_DETACHED 12578#define PTHREAD_CREATE_DETACHED 1 12579#endif 12580 pthread_t t; 12581 int status; 12582 int detach = PTHREAD_CREATE_DETACHED; 12583 12584#if HAVE_PTHREADS > 4 12585 /* Final pthreads */ 12586 pthread_attr_t attr; 12587 12588 status = pthread_attr_init(&attr); 12589 if( status ) return status; 12590 12591#if HAVE_PTHREADS < 7 12592 status = pthread_attr_setdetachstate(&attr, &detach); 12593 if( status < 0 ) status = errno; 12594#else 12595 status = pthread_attr_setdetachstate(&attr, detach); 12596#endif 12597 if( status ) return status; 12598 status = pthread_create( &t, &attr, task, NULL ); 12599#if HAVE_PTHREADS < 7 12600 if( status < 0 ) status = errno; 12601#endif 12602 if( status ) return status; 12603#else 12604 /* Draft 4 pthreads */ 12605 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12606 if( status ) return errno; 12607 12608 /* give thread a chance to complete */ 12609 /* it should remain joinable and hence detachable */ 12610 sleep( 1 ); 12611 12612 status = pthread_detach( &t ); 12613 if( status ) return errno; 12614#endif 12615 12616#ifdef HAVE_LINUX_THREADS 12617 pthread_kill_other_threads_np(); 12618#endif 12619 12620 return 0; 12621 12622} 12623 12624_ACEOF 12625if ac_fn_c_try_run "$LINENO"; then : 12626 ol_cv_pthread_lpthreads_lmach_lexc=yes 12627else 12628 ol_cv_pthread_lpthreads_lmach_lexc=no 12629fi 12630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12631 conftest.$ac_objext conftest.beam conftest.$ac_ext 12632fi 12633 12634 12635 # restore the LIBS 12636 LIBS="$ol_LIBS" 12637 12638fi 12639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5 12640$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; } 12641 12642 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then 12643 ol_link_pthreads="-lpthreads -lmach -lexc" 12644 ol_link_threads=posix 12645 fi 12646fi 12647 12648 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc) 12649if test "$ol_link_threads" = no ; then 12650 # try -lpthreads -lexc 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5 12652$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; } 12653if ${ol_cv_pthread_lpthreads_lexc+:} false; then : 12654 $as_echo_n "(cached) " >&6 12655else 12656 12657 # save the flags 12658 ol_LIBS="$LIBS" 12659 LIBS="-lpthreads -lexc $LIBS" 12660 12661 if test "$cross_compiling" = yes; then : 12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12663/* end confdefs.h. */ 12664 12665/* pthread test headers */ 12666#include <pthread.h> 12667#if HAVE_PTHREADS < 7 12668#include <errno.h> 12669#endif 12670#ifndef NULL 12671#define NULL (void*)0 12672#endif 12673 12674static void *task(p) 12675 void *p; 12676{ 12677 return (void *) (p == NULL); 12678} 12679 12680int 12681main () 12682{ 12683 12684 /* pthread test function */ 12685#ifndef PTHREAD_CREATE_DETACHED 12686#define PTHREAD_CREATE_DETACHED 1 12687#endif 12688 pthread_t t; 12689 int status; 12690 int detach = PTHREAD_CREATE_DETACHED; 12691 12692#if HAVE_PTHREADS > 4 12693 /* Final pthreads */ 12694 pthread_attr_t attr; 12695 12696 status = pthread_attr_init(&attr); 12697 if( status ) return status; 12698 12699#if HAVE_PTHREADS < 7 12700 status = pthread_attr_setdetachstate(&attr, &detach); 12701 if( status < 0 ) status = errno; 12702#else 12703 status = pthread_attr_setdetachstate(&attr, detach); 12704#endif 12705 if( status ) return status; 12706 status = pthread_create( &t, &attr, task, NULL ); 12707#if HAVE_PTHREADS < 7 12708 if( status < 0 ) status = errno; 12709#endif 12710 if( status ) return status; 12711#else 12712 /* Draft 4 pthreads */ 12713 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12714 if( status ) return errno; 12715 12716 /* give thread a chance to complete */ 12717 /* it should remain joinable and hence detachable */ 12718 sleep( 1 ); 12719 12720 status = pthread_detach( &t ); 12721 if( status ) return errno; 12722#endif 12723 12724#ifdef HAVE_LINUX_THREADS 12725 pthread_kill_other_threads_np(); 12726#endif 12727 12728 return 0; 12729 12730 ; 12731 return 0; 12732} 12733_ACEOF 12734if ac_fn_c_try_link "$LINENO"; then : 12735 ol_cv_pthread_lpthreads_lexc=yes 12736else 12737 ol_cv_pthread_lpthreads_lexc=no 12738fi 12739rm -f core conftest.err conftest.$ac_objext \ 12740 conftest$ac_exeext conftest.$ac_ext 12741else 12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12743/* end confdefs.h. */ 12744 12745 12746/* pthread test headers */ 12747#include <pthread.h> 12748#if HAVE_PTHREADS < 7 12749#include <errno.h> 12750#endif 12751#ifndef NULL 12752#define NULL (void*)0 12753#endif 12754 12755static void *task(p) 12756 void *p; 12757{ 12758 return (void *) (p == NULL); 12759} 12760 12761 12762int main(argc, argv) 12763 int argc; 12764 char **argv; 12765{ 12766 12767 /* pthread test function */ 12768#ifndef PTHREAD_CREATE_DETACHED 12769#define PTHREAD_CREATE_DETACHED 1 12770#endif 12771 pthread_t t; 12772 int status; 12773 int detach = PTHREAD_CREATE_DETACHED; 12774 12775#if HAVE_PTHREADS > 4 12776 /* Final pthreads */ 12777 pthread_attr_t attr; 12778 12779 status = pthread_attr_init(&attr); 12780 if( status ) return status; 12781 12782#if HAVE_PTHREADS < 7 12783 status = pthread_attr_setdetachstate(&attr, &detach); 12784 if( status < 0 ) status = errno; 12785#else 12786 status = pthread_attr_setdetachstate(&attr, detach); 12787#endif 12788 if( status ) return status; 12789 status = pthread_create( &t, &attr, task, NULL ); 12790#if HAVE_PTHREADS < 7 12791 if( status < 0 ) status = errno; 12792#endif 12793 if( status ) return status; 12794#else 12795 /* Draft 4 pthreads */ 12796 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12797 if( status ) return errno; 12798 12799 /* give thread a chance to complete */ 12800 /* it should remain joinable and hence detachable */ 12801 sleep( 1 ); 12802 12803 status = pthread_detach( &t ); 12804 if( status ) return errno; 12805#endif 12806 12807#ifdef HAVE_LINUX_THREADS 12808 pthread_kill_other_threads_np(); 12809#endif 12810 12811 return 0; 12812 12813} 12814 12815_ACEOF 12816if ac_fn_c_try_run "$LINENO"; then : 12817 ol_cv_pthread_lpthreads_lexc=yes 12818else 12819 ol_cv_pthread_lpthreads_lexc=no 12820fi 12821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12822 conftest.$ac_objext conftest.beam conftest.$ac_ext 12823fi 12824 12825 12826 # restore the LIBS 12827 LIBS="$ol_LIBS" 12828 12829fi 12830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5 12831$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; } 12832 12833 if test $ol_cv_pthread_lpthreads_lexc = yes ; then 12834 ol_link_pthreads="-lpthreads -lexc" 12835 ol_link_threads=posix 12836 fi 12837fi 12838 12839 12840 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads) 12841if test "$ol_link_threads" = no ; then 12842 # try -lpthreads 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5 12844$as_echo_n "checking for pthread link with -lpthreads... " >&6; } 12845if ${ol_cv_pthread_lib_lpthreads+:} false; then : 12846 $as_echo_n "(cached) " >&6 12847else 12848 12849 # save the flags 12850 ol_LIBS="$LIBS" 12851 LIBS="-lpthreads $LIBS" 12852 12853 if test "$cross_compiling" = yes; then : 12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12855/* end confdefs.h. */ 12856 12857/* pthread test headers */ 12858#include <pthread.h> 12859#if HAVE_PTHREADS < 7 12860#include <errno.h> 12861#endif 12862#ifndef NULL 12863#define NULL (void*)0 12864#endif 12865 12866static void *task(p) 12867 void *p; 12868{ 12869 return (void *) (p == NULL); 12870} 12871 12872int 12873main () 12874{ 12875 12876 /* pthread test function */ 12877#ifndef PTHREAD_CREATE_DETACHED 12878#define PTHREAD_CREATE_DETACHED 1 12879#endif 12880 pthread_t t; 12881 int status; 12882 int detach = PTHREAD_CREATE_DETACHED; 12883 12884#if HAVE_PTHREADS > 4 12885 /* Final pthreads */ 12886 pthread_attr_t attr; 12887 12888 status = pthread_attr_init(&attr); 12889 if( status ) return status; 12890 12891#if HAVE_PTHREADS < 7 12892 status = pthread_attr_setdetachstate(&attr, &detach); 12893 if( status < 0 ) status = errno; 12894#else 12895 status = pthread_attr_setdetachstate(&attr, detach); 12896#endif 12897 if( status ) return status; 12898 status = pthread_create( &t, &attr, task, NULL ); 12899#if HAVE_PTHREADS < 7 12900 if( status < 0 ) status = errno; 12901#endif 12902 if( status ) return status; 12903#else 12904 /* Draft 4 pthreads */ 12905 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12906 if( status ) return errno; 12907 12908 /* give thread a chance to complete */ 12909 /* it should remain joinable and hence detachable */ 12910 sleep( 1 ); 12911 12912 status = pthread_detach( &t ); 12913 if( status ) return errno; 12914#endif 12915 12916#ifdef HAVE_LINUX_THREADS 12917 pthread_kill_other_threads_np(); 12918#endif 12919 12920 return 0; 12921 12922 ; 12923 return 0; 12924} 12925_ACEOF 12926if ac_fn_c_try_link "$LINENO"; then : 12927 ol_cv_pthread_lib_lpthreads=yes 12928else 12929 ol_cv_pthread_lib_lpthreads=no 12930fi 12931rm -f core conftest.err conftest.$ac_objext \ 12932 conftest$ac_exeext conftest.$ac_ext 12933else 12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12935/* end confdefs.h. */ 12936 12937 12938/* pthread test headers */ 12939#include <pthread.h> 12940#if HAVE_PTHREADS < 7 12941#include <errno.h> 12942#endif 12943#ifndef NULL 12944#define NULL (void*)0 12945#endif 12946 12947static void *task(p) 12948 void *p; 12949{ 12950 return (void *) (p == NULL); 12951} 12952 12953 12954int main(argc, argv) 12955 int argc; 12956 char **argv; 12957{ 12958 12959 /* pthread test function */ 12960#ifndef PTHREAD_CREATE_DETACHED 12961#define PTHREAD_CREATE_DETACHED 1 12962#endif 12963 pthread_t t; 12964 int status; 12965 int detach = PTHREAD_CREATE_DETACHED; 12966 12967#if HAVE_PTHREADS > 4 12968 /* Final pthreads */ 12969 pthread_attr_t attr; 12970 12971 status = pthread_attr_init(&attr); 12972 if( status ) return status; 12973 12974#if HAVE_PTHREADS < 7 12975 status = pthread_attr_setdetachstate(&attr, &detach); 12976 if( status < 0 ) status = errno; 12977#else 12978 status = pthread_attr_setdetachstate(&attr, detach); 12979#endif 12980 if( status ) return status; 12981 status = pthread_create( &t, &attr, task, NULL ); 12982#if HAVE_PTHREADS < 7 12983 if( status < 0 ) status = errno; 12984#endif 12985 if( status ) return status; 12986#else 12987 /* Draft 4 pthreads */ 12988 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12989 if( status ) return errno; 12990 12991 /* give thread a chance to complete */ 12992 /* it should remain joinable and hence detachable */ 12993 sleep( 1 ); 12994 12995 status = pthread_detach( &t ); 12996 if( status ) return errno; 12997#endif 12998 12999#ifdef HAVE_LINUX_THREADS 13000 pthread_kill_other_threads_np(); 13001#endif 13002 13003 return 0; 13004 13005} 13006 13007_ACEOF 13008if ac_fn_c_try_run "$LINENO"; then : 13009 ol_cv_pthread_lib_lpthreads=yes 13010else 13011 ol_cv_pthread_lib_lpthreads=no 13012fi 13013rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13014 conftest.$ac_objext conftest.beam conftest.$ac_ext 13015fi 13016 13017 13018 # restore the LIBS 13019 LIBS="$ol_LIBS" 13020 13021fi 13022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5 13023$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; } 13024 13025 if test $ol_cv_pthread_lib_lpthreads = yes ; then 13026 ol_link_pthreads="-lpthreads" 13027 ol_link_threads=posix 13028 fi 13029fi 13030 13031 13032{ $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5 13033$as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;} 13034 13035 if test $ol_link_threads != no ; then 13036 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads" 13037 13038 save_CPPFLAGS="$CPPFLAGS" 13039 save_LIBS="$LIBS" 13040 LIBS="$LTHREAD_LIBS $LIBS" 13041 13042 for ac_func in sched_yield pthread_yield thr_yield 13043do : 13044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13045ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13046if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13047 cat >>confdefs.h <<_ACEOF 13048#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13049_ACEOF 13050 13051fi 13052done 13053 13054 13055 if test $ac_cv_func_sched_yield = no && 13056 test $ac_cv_func_pthread_yield = no && 13057 test $ac_cv_func_thr_yield = no ; then 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 13059$as_echo_n "checking for sched_yield in -lrt... " >&6; } 13060if ${ac_cv_lib_rt_sched_yield+:} false; then : 13061 $as_echo_n "(cached) " >&6 13062else 13063 ac_check_lib_save_LIBS=$LIBS 13064LIBS="-lrt $LIBS" 13065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13066/* end confdefs.h. */ 13067 13068/* Override any GCC internal prototype to avoid an error. 13069 Use char because int might match the return type of a GCC 13070 builtin and then its argument prototype would still apply. */ 13071#ifdef __cplusplus 13072extern "C" 13073#endif 13074char sched_yield (); 13075int 13076main () 13077{ 13078return sched_yield (); 13079 ; 13080 return 0; 13081} 13082_ACEOF 13083if ac_fn_c_try_link "$LINENO"; then : 13084 ac_cv_lib_rt_sched_yield=yes 13085else 13086 ac_cv_lib_rt_sched_yield=no 13087fi 13088rm -f core conftest.err conftest.$ac_objext \ 13089 conftest$ac_exeext conftest.$ac_ext 13090LIBS=$ac_check_lib_save_LIBS 13091fi 13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 13093$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 13094if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 13095 LTHREAD_LIBS="$LTHREAD_LIBS -lrt" 13096 13097$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h 13098 13099 ac_cv_func_sched_yield=yes 13100else 13101 ac_cv_func_sched_yield=no 13102fi 13103 13104 fi 13105 if test $ac_cv_func_sched_yield = no && 13106 test $ac_cv_func_pthread_yield = no && 13107 test "$ac_cv_func_thr_yield" = no ; then 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5 13109$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;} 13110 fi 13111 13112 for ac_func in pthread_kill 13113do : 13114 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill" 13115if test "x$ac_cv_func_pthread_kill" = xyes; then : 13116 cat >>confdefs.h <<_ACEOF 13117#define HAVE_PTHREAD_KILL 1 13118_ACEOF 13119 13120fi 13121done 13122 13123 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5 13125$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; } 13126if ${ol_cv_func_pthread_rwlock_destroy+:} false; then : 13127 $as_echo_n "(cached) " >&6 13128else 13129 13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13131/* end confdefs.h. */ 13132 13133#include <pthread.h> 13134pthread_rwlock_t rwlock; 13135 13136int 13137main () 13138{ 13139pthread_rwlock_destroy(&rwlock); 13140 ; 13141 return 0; 13142} 13143_ACEOF 13144if ac_fn_c_try_link "$LINENO"; then : 13145 ol_cv_func_pthread_rwlock_destroy=yes 13146else 13147 ol_cv_func_pthread_rwlock_destroy=no 13148fi 13149rm -f core conftest.err conftest.$ac_objext \ 13150 conftest$ac_exeext conftest.$ac_ext 13151 13152fi 13153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5 13154$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; } 13155 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then 13156 13157$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h 13158 13159 fi 13160 13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5 13162$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; } 13163if ${ol_cv_func_pthread_detach+:} false; then : 13164 $as_echo_n "(cached) " >&6 13165else 13166 13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13168/* end confdefs.h. */ 13169 13170#include <pthread.h> 13171#ifndef NULL 13172#define NULL (void*)0 13173#endif 13174 13175int 13176main () 13177{ 13178pthread_detach(NULL); 13179 ; 13180 return 0; 13181} 13182_ACEOF 13183if ac_fn_c_try_link "$LINENO"; then : 13184 ol_cv_func_pthread_detach=yes 13185else 13186 ol_cv_func_pthread_detach=no 13187fi 13188rm -f core conftest.err conftest.$ac_objext \ 13189 conftest$ac_exeext conftest.$ac_ext 13190 13191fi 13192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5 13193$as_echo "$ol_cv_func_pthread_detach" >&6; } 13194 13195 if test $ol_cv_func_pthread_detach = no ; then 13196 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5 13197 fi 13198 13199 13200$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h 13201 13202 13203 for ac_func in \ 13204 pthread_setconcurrency \ 13205 pthread_getconcurrency \ 13206 thr_setconcurrency \ 13207 thr_getconcurrency \ 13208 13209do : 13210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13211ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13212if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13213 cat >>confdefs.h <<_ACEOF 13214#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13215_ACEOF 13216 13217fi 13218done 13219 13220 13221 13222 for ac_func in pthread_kill_other_threads_np 13223do : 13224 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np" 13225if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then : 13226 cat >>confdefs.h <<_ACEOF 13227#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1 13228_ACEOF 13229 13230fi 13231done 13232 13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5 13234$as_echo_n "checking for LinuxThreads implementation... " >&6; } 13235if ${ol_cv_sys_linux_threads+:} false; then : 13236 $as_echo_n "(cached) " >&6 13237else 13238 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np 13239fi 13240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5 13241$as_echo "$ol_cv_sys_linux_threads" >&6; } 13242 13243 13244 13245 13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5 13247$as_echo_n "checking for LinuxThreads consistency... " >&6; } 13248if ${ol_cv_linux_threads+:} false; then : 13249 $as_echo_n "(cached) " >&6 13250else 13251 13252 if test $ol_cv_header_linux_threads = yes && 13253 test $ol_cv_sys_linux_threads = yes; then 13254 ol_cv_linux_threads=yes 13255 elif test $ol_cv_header_linux_threads = no && 13256 test $ol_cv_sys_linux_threads = no; then 13257 ol_cv_linux_threads=no 13258 else 13259 ol_cv_linux_threads=error 13260 fi 13261 13262fi 13263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5 13264$as_echo "$ol_cv_linux_threads" >&6; } 13265 13266 13267 if test $ol_cv_linux_threads = error; then 13268 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5; 13269 fi 13270 13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5 13272$as_echo_n "checking if pthread_create() works... " >&6; } 13273if ${ol_cv_pthread_create_works+:} false; then : 13274 $as_echo_n "(cached) " >&6 13275else 13276 13277 if test "$cross_compiling" = yes; then : 13278 ol_cv_pthread_create_works=yes 13279else 13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13281/* end confdefs.h. */ 13282 13283 13284/* pthread test headers */ 13285#include <pthread.h> 13286#if HAVE_PTHREADS < 7 13287#include <errno.h> 13288#endif 13289#ifndef NULL 13290#define NULL (void*)0 13291#endif 13292 13293static void *task(p) 13294 void *p; 13295{ 13296 return (void *) (p == NULL); 13297} 13298 13299 13300int main(argc, argv) 13301 int argc; 13302 char **argv; 13303{ 13304 13305 /* pthread test function */ 13306#ifndef PTHREAD_CREATE_DETACHED 13307#define PTHREAD_CREATE_DETACHED 1 13308#endif 13309 pthread_t t; 13310 int status; 13311 int detach = PTHREAD_CREATE_DETACHED; 13312 13313#if HAVE_PTHREADS > 4 13314 /* Final pthreads */ 13315 pthread_attr_t attr; 13316 13317 status = pthread_attr_init(&attr); 13318 if( status ) return status; 13319 13320#if HAVE_PTHREADS < 7 13321 status = pthread_attr_setdetachstate(&attr, &detach); 13322 if( status < 0 ) status = errno; 13323#else 13324 status = pthread_attr_setdetachstate(&attr, detach); 13325#endif 13326 if( status ) return status; 13327 status = pthread_create( &t, &attr, task, NULL ); 13328#if HAVE_PTHREADS < 7 13329 if( status < 0 ) status = errno; 13330#endif 13331 if( status ) return status; 13332#else 13333 /* Draft 4 pthreads */ 13334 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13335 if( status ) return errno; 13336 13337 /* give thread a chance to complete */ 13338 /* it should remain joinable and hence detachable */ 13339 sleep( 1 ); 13340 13341 status = pthread_detach( &t ); 13342 if( status ) return errno; 13343#endif 13344 13345#ifdef HAVE_LINUX_THREADS 13346 pthread_kill_other_threads_np(); 13347#endif 13348 13349 return 0; 13350 13351} 13352 13353_ACEOF 13354if ac_fn_c_try_run "$LINENO"; then : 13355 ol_cv_pthread_create_works=yes 13356else 13357 ol_cv_pthread_create_works=no 13358fi 13359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13360 conftest.$ac_objext conftest.beam conftest.$ac_ext 13361fi 13362 13363fi 13364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5 13365$as_echo "$ol_cv_pthread_create_works" >&6; } 13366 13367 if test $ol_cv_pthread_create_works = no ; then 13368 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5 13369 fi 13370 13371 ol_replace_broken_yield=no 13372 13373 if test $ol_replace_broken_yield = yes ; then 13374 13375$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h 13376 13377 fi 13378 13379 if test x$ol_with_yielding_select = xauto ; then 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5 13381$as_echo_n "checking if select yields when using pthreads... " >&6; } 13382if ${ol_cv_pthread_select_yields+:} false; then : 13383 $as_echo_n "(cached) " >&6 13384else 13385 13386 if test "$cross_compiling" = yes; then : 13387 ol_cv_pthread_select_yields=cross 13388else 13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13390/* end confdefs.h. */ 13391 13392#include <sys/types.h> 13393#include <sys/time.h> 13394#include <unistd.h> 13395#include <pthread.h> 13396#ifndef NULL 13397#define NULL (void*) 0 13398#endif 13399 13400static int fildes[2]; 13401 13402static void *task(p) 13403 void *p; 13404{ 13405 int i; 13406 struct timeval tv; 13407 13408 fd_set rfds; 13409 13410 tv.tv_sec=10; 13411 tv.tv_usec=0; 13412 13413 FD_ZERO(&rfds); 13414 FD_SET(fildes[0], &rfds); 13415 13416 /* we're not interested in any fds */ 13417 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv); 13418 13419 if(i < 0) { 13420 perror("select"); 13421 exit(10); 13422 } 13423 13424 exit(0); /* if we exit here, the select blocked the whole process */ 13425} 13426 13427int main(argc, argv) 13428 int argc; 13429 char **argv; 13430{ 13431 pthread_t t; 13432 13433 /* create a pipe to select */ 13434 if(pipe(&fildes[0])) { 13435 perror("select"); 13436 exit(1); 13437 } 13438 13439#ifdef HAVE_PTHREAD_SETCONCURRENCY 13440 (void) pthread_setconcurrency(2); 13441#else 13442#ifdef HAVE_THR_SETCONCURRENCY 13443 /* Set Solaris LWP concurrency to 2 */ 13444 thr_setconcurrency(2); 13445#endif 13446#endif 13447 13448#if HAVE_PTHREADS < 6 13449 pthread_create(&t, pthread_attr_default, task, NULL); 13450#else 13451 pthread_create(&t, NULL, task, NULL); 13452#endif 13453 13454 /* make sure task runs first */ 13455#ifdef HAVE_THR_YIELD 13456 thr_yield(); 13457#elif defined( HAVE_SCHED_YIELD ) 13458 sched_yield(); 13459#elif defined( HAVE_PTHREAD_YIELD ) 13460 pthread_yield(); 13461#endif 13462 13463 exit(2); 13464} 13465_ACEOF 13466if ac_fn_c_try_run "$LINENO"; then : 13467 ol_cv_pthread_select_yields=no 13468else 13469 ol_cv_pthread_select_yields=yes 13470fi 13471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13472 conftest.$ac_objext conftest.beam conftest.$ac_ext 13473fi 13474 13475fi 13476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5 13477$as_echo "$ol_cv_pthread_select_yields" >&6; } 13478 13479 if test $ol_cv_pthread_select_yields = cross ; then 13480 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5 13481 fi 13482 13483 if test $ol_cv_pthread_select_yields = yes ; then 13484 ol_with_yielding_select=yes 13485 fi 13486 fi 13487 13488 CPPFLAGS="$save_CPPFLAGS" 13489 LIBS="$save_LIBS" 13490 else 13491 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5 13492 fi 13493 fi 13494 13495 if test $ol_with_threads = posix ; then 13496 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5 13497 fi 13498 ;; 13499esac 13500 13501case $ol_with_threads in auto | yes | mach) 13502 13503 for ac_header in mach/cthreads.h cthreads.h 13504do : 13505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13506ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13507if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13508 cat >>confdefs.h <<_ACEOF 13509#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13510_ACEOF 13511 13512fi 13513 13514done 13515 13516 if test $ac_cv_header_mach_cthreads_h = yes ; then 13517 ol_with_threads=found 13518 13519 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 13520if test "x$ac_cv_func_cthread_fork" = xyes; then : 13521 ol_link_threads=yes 13522fi 13523 13524 13525 if test $ol_link_threads = no ; then 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5 13527$as_echo_n "checking for cthread_fork with -all_load... " >&6; } 13528if ${ol_cv_cthread_all_load+:} false; then : 13529 $as_echo_n "(cached) " >&6 13530else 13531 13532 save_LIBS="$LIBS" 13533 LIBS="-all_load $LIBS" 13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13535/* end confdefs.h. */ 13536#include <mach/cthreads.h> 13537int 13538main () 13539{ 13540 13541 cthread_fork((void *)0, (void *)0); 13542 13543 ; 13544 return 0; 13545} 13546_ACEOF 13547if ac_fn_c_try_link "$LINENO"; then : 13548 ol_cv_cthread_all_load=yes 13549else 13550 ol_cv_cthread_all_load=no 13551fi 13552rm -f core conftest.err conftest.$ac_objext \ 13553 conftest$ac_exeext conftest.$ac_ext 13554 LIBS="$save_LIBS" 13555 13556fi 13557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5 13558$as_echo "$ol_cv_cthread_all_load" >&6; } 13559 13560 if test $ol_cv_cthread_all_load = yes ; then 13561 LTHREAD_LIBS="$LTHREAD_LIBS -all_load" 13562 ol_link_threads=mach 13563 ol_with_threads=found 13564 fi 13565 fi 13566 13567 elif test $ac_cv_header_cthreads_h = yes ; then 13568 13569 ol_with_threads=found 13570 13571 save_LIBS="$LIBS" 13572 LIBS="$LIBS -lthreads" 13573 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 13574if test "x$ac_cv_func_cthread_fork" = xyes; then : 13575 ol_link_threads=yes 13576fi 13577 13578 LIBS="$save_LIBS" 13579 13580 if test $ol_link_threads = yes ; then 13581 LTHREAD_LIBS="-lthreads" 13582 ol_link_threads=mach 13583 ol_with_threads=found 13584 else 13585 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 13586 fi 13587 13588 elif test $ol_with_threads = mach ; then 13589 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5 13590 fi 13591 13592 if test $ol_link_threads = mach ; then 13593 13594$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h 13595 13596 elif test $ol_with_threads = found ; then 13597 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 13598 fi 13599 ;; 13600esac 13601 13602case $ol_with_threads in auto | yes | pth) 13603 13604 for ac_header in pth.h 13605do : 13606 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default" 13607if test "x$ac_cv_header_pth_h" = xyes; then : 13608 cat >>confdefs.h <<_ACEOF 13609#define HAVE_PTH_H 1 13610_ACEOF 13611 13612fi 13613 13614done 13615 13616 13617 if test $ac_cv_header_pth_h = yes ; then 13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5 13619$as_echo_n "checking for pth_version in -lpth... " >&6; } 13620if ${ac_cv_lib_pth_pth_version+:} false; then : 13621 $as_echo_n "(cached) " >&6 13622else 13623 ac_check_lib_save_LIBS=$LIBS 13624LIBS="-lpth $LIBS" 13625cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13626/* end confdefs.h. */ 13627 13628/* Override any GCC internal prototype to avoid an error. 13629 Use char because int might match the return type of a GCC 13630 builtin and then its argument prototype would still apply. */ 13631#ifdef __cplusplus 13632extern "C" 13633#endif 13634char pth_version (); 13635int 13636main () 13637{ 13638return pth_version (); 13639 ; 13640 return 0; 13641} 13642_ACEOF 13643if ac_fn_c_try_link "$LINENO"; then : 13644 ac_cv_lib_pth_pth_version=yes 13645else 13646 ac_cv_lib_pth_pth_version=no 13647fi 13648rm -f core conftest.err conftest.$ac_objext \ 13649 conftest$ac_exeext conftest.$ac_ext 13650LIBS=$ac_check_lib_save_LIBS 13651fi 13652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5 13653$as_echo "$ac_cv_lib_pth_pth_version" >&6; } 13654if test "x$ac_cv_lib_pth_pth_version" = xyes; then : 13655 have_pth=yes 13656else 13657 have_pth=no 13658fi 13659 13660 13661 if test $have_pth = yes ; then 13662 13663$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h 13664 13665 LTHREAD_LIBS="$LTHREAD_LIBS -lpth" 13666 ol_link_threads=pth 13667 ol_with_threads=found 13668 13669 if test x$ol_with_yielding_select = xauto ; then 13670 ol_with_yielding_select=yes 13671 fi 13672 fi 13673 fi 13674 ;; 13675esac 13676 13677case $ol_with_threads in auto | yes | lwp) 13678 13679 for ac_header in thread.h synch.h 13680do : 13681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13682ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13683if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13684 cat >>confdefs.h <<_ACEOF 13685#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13686_ACEOF 13687 13688fi 13689 13690done 13691 13692 if test $ac_cv_header_thread_h = yes && 13693 test $ac_cv_header_synch_h = yes ; then 13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 13695$as_echo_n "checking for thr_create in -lthread... " >&6; } 13696if ${ac_cv_lib_thread_thr_create+:} false; then : 13697 $as_echo_n "(cached) " >&6 13698else 13699 ac_check_lib_save_LIBS=$LIBS 13700LIBS="-lthread $LIBS" 13701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13702/* end confdefs.h. */ 13703 13704/* Override any GCC internal prototype to avoid an error. 13705 Use char because int might match the return type of a GCC 13706 builtin and then its argument prototype would still apply. */ 13707#ifdef __cplusplus 13708extern "C" 13709#endif 13710char thr_create (); 13711int 13712main () 13713{ 13714return thr_create (); 13715 ; 13716 return 0; 13717} 13718_ACEOF 13719if ac_fn_c_try_link "$LINENO"; then : 13720 ac_cv_lib_thread_thr_create=yes 13721else 13722 ac_cv_lib_thread_thr_create=no 13723fi 13724rm -f core conftest.err conftest.$ac_objext \ 13725 conftest$ac_exeext conftest.$ac_ext 13726LIBS=$ac_check_lib_save_LIBS 13727fi 13728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 13729$as_echo "$ac_cv_lib_thread_thr_create" >&6; } 13730if test "x$ac_cv_lib_thread_thr_create" = xyes; then : 13731 have_thr=yes 13732else 13733 have_thr=no 13734fi 13735 13736 13737 if test $have_thr = yes ; then 13738 13739$as_echo "#define HAVE_THR 1" >>confdefs.h 13740 13741 LTHREAD_LIBS="$LTHREAD_LIBS -lthread" 13742 ol_link_threads=thr 13743 13744 if test x$ol_with_yielding_select = xauto ; then 13745 ol_with_yielding_select=yes 13746 fi 13747 13748 for ac_func in \ 13749 thr_setconcurrency \ 13750 thr_getconcurrency \ 13751 13752do : 13753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13754ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13755if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13756 cat >>confdefs.h <<_ACEOF 13757#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13758_ACEOF 13759 13760fi 13761done 13762 13763 fi 13764 fi 13765 13766 for ac_header in lwp/lwp.h 13767do : 13768 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 13769if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 13770 cat >>confdefs.h <<_ACEOF 13771#define HAVE_LWP_LWP_H 1 13772_ACEOF 13773 13774fi 13775 13776done 13777 13778 if test $ac_cv_header_lwp_lwp_h = yes ; then 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5 13780$as_echo_n "checking for lwp_create in -llwp... " >&6; } 13781if ${ac_cv_lib_lwp_lwp_create+:} false; then : 13782 $as_echo_n "(cached) " >&6 13783else 13784 ac_check_lib_save_LIBS=$LIBS 13785LIBS="-llwp $LIBS" 13786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13787/* end confdefs.h. */ 13788 13789/* Override any GCC internal prototype to avoid an error. 13790 Use char because int might match the return type of a GCC 13791 builtin and then its argument prototype would still apply. */ 13792#ifdef __cplusplus 13793extern "C" 13794#endif 13795char lwp_create (); 13796int 13797main () 13798{ 13799return lwp_create (); 13800 ; 13801 return 0; 13802} 13803_ACEOF 13804if ac_fn_c_try_link "$LINENO"; then : 13805 ac_cv_lib_lwp_lwp_create=yes 13806else 13807 ac_cv_lib_lwp_lwp_create=no 13808fi 13809rm -f core conftest.err conftest.$ac_objext \ 13810 conftest$ac_exeext conftest.$ac_ext 13811LIBS=$ac_check_lib_save_LIBS 13812fi 13813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5 13814$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; } 13815if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then : 13816 have_lwp=yes 13817else 13818 have_lwp=no 13819fi 13820 13821 13822 if test $have_lwp = yes ; then 13823 13824$as_echo "#define HAVE_LWP 1" >>confdefs.h 13825 13826 LTHREAD_LIBS="$LTHREAD_LIBS -llwp" 13827 ol_link_threads=lwp 13828 13829 if test x$ol_with_yielding_select = xauto ; then 13830 ol_with_yielding_select=no 13831 fi 13832 fi 13833 fi 13834 ;; 13835esac 13836 13837if test $ol_with_yielding_select = yes ; then 13838 13839$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h 13840 13841fi 13842 13843if test $ol_with_threads = manual ; then 13844 ol_link_threads=yes 13845 13846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5 13847$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;} 13848 13849 for ac_header in pthread.h sched.h 13850do : 13851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13852ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13853if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13854 cat >>confdefs.h <<_ACEOF 13855#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13856_ACEOF 13857 13858fi 13859 13860done 13861 13862 for ac_func in sched_yield pthread_yield 13863do : 13864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13865ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13866if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13867 cat >>confdefs.h <<_ACEOF 13868#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13869_ACEOF 13870 13871fi 13872done 13873 13874 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 13876$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 13877if ${ol_cv_header_linux_threads+:} false; then : 13878 $as_echo_n "(cached) " >&6 13879else 13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13881/* end confdefs.h. */ 13882#include <pthread.h> 13883_ACEOF 13884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13885 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 13886 ol_cv_header_linux_threads=yes 13887else 13888 ol_cv_header_linux_threads=no 13889fi 13890rm -f conftest* 13891 13892 13893fi 13894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 13895$as_echo "$ol_cv_header_linux_threads" >&6; } 13896 if test $ol_cv_header_linux_threads = yes; then 13897 13898$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 13899 13900 fi 13901 13902 13903 for ac_header in mach/cthreads.h 13904do : 13905 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" 13906if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : 13907 cat >>confdefs.h <<_ACEOF 13908#define HAVE_MACH_CTHREADS_H 1 13909_ACEOF 13910 13911fi 13912 13913done 13914 13915 for ac_header in lwp/lwp.h 13916do : 13917 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 13918if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 13919 cat >>confdefs.h <<_ACEOF 13920#define HAVE_LWP_LWP_H 1 13921_ACEOF 13922 13923fi 13924 13925done 13926 13927 for ac_header in thread.h synch.h 13928do : 13929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13930ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13931if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13932 cat >>confdefs.h <<_ACEOF 13933#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13934_ACEOF 13935 13936fi 13937 13938done 13939 13940fi 13941 13942if test $ol_link_threads != no && test $ol_link_threads != nt ; then 13943 13944$as_echo "#define REENTRANT 1" >>confdefs.h 13945 13946 13947$as_echo "#define _REENTRANT 1" >>confdefs.h 13948 13949 13950$as_echo "#define THREAD_SAFE 1" >>confdefs.h 13951 13952 13953$as_echo "#define _THREAD_SAFE 1" >>confdefs.h 13954 13955 13956$as_echo "#define THREADSAFE 1" >>confdefs.h 13957 13958 13959$as_echo "#define _THREADSAFE 1" >>confdefs.h 13960 13961 13962$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h 13963 13964 13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5 13966$as_echo_n "checking for thread specific errno... " >&6; } 13967if ${ol_cv_errno_thread_specific+:} false; then : 13968 $as_echo_n "(cached) " >&6 13969else 13970 13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13972/* end confdefs.h. */ 13973#include <errno.h> 13974int 13975main () 13976{ 13977errno = 0; 13978 ; 13979 return 0; 13980} 13981_ACEOF 13982if ac_fn_c_try_link "$LINENO"; then : 13983 ol_cv_errno_thread_specific=yes 13984else 13985 ol_cv_errno_thread_specific=no 13986fi 13987rm -f core conftest.err conftest.$ac_objext \ 13988 conftest$ac_exeext conftest.$ac_ext 13989 13990fi 13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5 13992$as_echo "$ol_cv_errno_thread_specific" >&6; } 13993 13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5 13995$as_echo_n "checking for thread specific h_errno... " >&6; } 13996if ${ol_cv_h_errno_thread_specific+:} false; then : 13997 $as_echo_n "(cached) " >&6 13998else 13999 14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14001/* end confdefs.h. */ 14002#include <netdb.h> 14003int 14004main () 14005{ 14006h_errno = 0; 14007 ; 14008 return 0; 14009} 14010_ACEOF 14011if ac_fn_c_try_link "$LINENO"; then : 14012 ol_cv_h_errno_thread_specific=yes 14013else 14014 ol_cv_h_errno_thread_specific=no 14015fi 14016rm -f core conftest.err conftest.$ac_objext \ 14017 conftest$ac_exeext conftest.$ac_ext 14018 14019fi 14020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5 14021$as_echo "$ol_cv_h_errno_thread_specific" >&6; } 14022 14023 if test $ol_cv_errno_thread_specific != yes || 14024 test $ol_cv_h_errno_thread_specific != yes ; then 14025 LIBS="$LTHREAD_LIBS $LIBS" 14026 LTHREAD_LIBS="" 14027 fi 14028 14029fi 14030 14031if test $ol_link_threads = no ; then 14032 if test $ol_with_threads = yes ; then 14033 as_fn_error $? "no suitable thread support" "$LINENO" 5 14034 fi 14035 14036 if test $ol_with_threads = auto ; then 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5 14038$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;} 14039 ol_with_threads=no 14040 fi 14041 14042 14043$as_echo "#define NO_THREADS 1" >>confdefs.h 14044 14045 LTHREAD_LIBS="" 14046 BUILD_THREAD=no 14047else 14048 BUILD_THREAD=yes 14049fi 14050 14051if test $ol_link_threads != no ; then 14052 14053$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h 14054 14055fi 14056 14057# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 14058case "$ol_with_threads" in 14059 no) 14060 ol_pthread_ok=no 14061 14062 ;; 14063 *) 14064 ol_found_pthreads=yes 14065 ;; 14066esac 14067 14068ac_ext=c 14069ac_cpp='$CPP $CPPFLAGS' 14070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14072ac_compiler_gnu=$ac_cv_c_compiler_gnu 14073 14074 14075 14076 14077 14078 14079 case "$ol_found_pthreads" in 14080 yes) 14081 saved_LIBS="$LIBS" 14082 LIBS="$LTHREAD_LIBS $LIBS" 14083 saved_CFLAGS="$CFLAGS" 14084 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 14085 for ac_func in sem_timedwait 14086do : 14087 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" 14088if test "x$ac_cv_func_sem_timedwait" = xyes; then : 14089 cat >>confdefs.h <<_ACEOF 14090#define HAVE_SEM_TIMEDWAIT 1 14091_ACEOF 14092 14093fi 14094done 14095 14096 LIBS="$saved_LIBS" 14097 { saved_LIBS=; unset saved_LIBS;} 14098 CFLAGS="$saved_CFLAGS" 14099 { saved_CFLAGS=; unset saved_CFLAGS;} 14100 case "$ac_cv_func_sem_timedwait" in 14101 yes) 14102 PTHREAD_LIBS="$LTHREAD_LIBS" 14103 have_pthreads=yes 14104 esac 14105 esac 14106esac 14107 14108case "$have_pthreads" in 14109 yes) 14110 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS" 14111 saved_LIBS="$LIBS" 14112 LIBS="$LTHREAD_LIBS $LIBS" 14113 saved_CFLAGS="$CFLAGS" 14114 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 14115 # The cast to long int works around a bug in the HP C Compiler 14116# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14117# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14118# This bug is HP SR number 8606223364. 14119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 14120$as_echo_n "checking size of pthread_t... " >&6; } 14121if ${ac_cv_sizeof_pthread_t+:} false; then : 14122 $as_echo_n "(cached) " >&6 14123else 14124 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 14125 $ac_includes_default 14126 #include <pthread.h> 14127 14128 14129"; then : 14130 14131else 14132 if test "$ac_cv_type_pthread_t" = yes; then 14133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14135as_fn_error 77 "cannot compute sizeof (pthread_t) 14136See \`config.log' for more details" "$LINENO" 5; } 14137 else 14138 ac_cv_sizeof_pthread_t=0 14139 fi 14140fi 14141 14142fi 14143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 14144$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 14145 14146 14147 14148cat >>confdefs.h <<_ACEOF 14149#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 14150_ACEOF 14151 14152 14153 LIBISC_PTHREADS_NOTHREADS=pthreads 14154 14155$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h 14156 14157 # 14158 # We'd like to use sigwait() too 14159 # 14160 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" 14161if test "x$ac_cv_func_sigwait" = xyes; then : 14162 have_sigwait=yes 14163else 14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5 14165$as_echo_n "checking for sigwait in -lc... " >&6; } 14166if ${ac_cv_lib_c_sigwait+:} false; then : 14167 $as_echo_n "(cached) " >&6 14168else 14169 ac_check_lib_save_LIBS=$LIBS 14170LIBS="-lc $LIBS" 14171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14172/* end confdefs.h. */ 14173 14174/* Override any GCC internal prototype to avoid an error. 14175 Use char because int might match the return type of a GCC 14176 builtin and then its argument prototype would still apply. */ 14177#ifdef __cplusplus 14178extern "C" 14179#endif 14180char sigwait (); 14181int 14182main () 14183{ 14184return sigwait (); 14185 ; 14186 return 0; 14187} 14188_ACEOF 14189if ac_fn_c_try_link "$LINENO"; then : 14190 ac_cv_lib_c_sigwait=yes 14191else 14192 ac_cv_lib_c_sigwait=no 14193fi 14194rm -f core conftest.err conftest.$ac_objext \ 14195 conftest$ac_exeext conftest.$ac_ext 14196LIBS=$ac_check_lib_save_LIBS 14197fi 14198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5 14199$as_echo "$ac_cv_lib_c_sigwait" >&6; } 14200if test "x$ac_cv_lib_c_sigwait" = xyes; then : 14201 have_sigwait=yes 14202else 14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5 14204$as_echo_n "checking for sigwait in -lpthread... " >&6; } 14205if ${ac_cv_lib_pthread_sigwait+:} false; then : 14206 $as_echo_n "(cached) " >&6 14207else 14208 ac_check_lib_save_LIBS=$LIBS 14209LIBS="-lpthread $LIBS" 14210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14211/* end confdefs.h. */ 14212 14213/* Override any GCC internal prototype to avoid an error. 14214 Use char because int might match the return type of a GCC 14215 builtin and then its argument prototype would still apply. */ 14216#ifdef __cplusplus 14217extern "C" 14218#endif 14219char sigwait (); 14220int 14221main () 14222{ 14223return sigwait (); 14224 ; 14225 return 0; 14226} 14227_ACEOF 14228if ac_fn_c_try_link "$LINENO"; then : 14229 ac_cv_lib_pthread_sigwait=yes 14230else 14231 ac_cv_lib_pthread_sigwait=no 14232fi 14233rm -f core conftest.err conftest.$ac_objext \ 14234 conftest$ac_exeext conftest.$ac_ext 14235LIBS=$ac_check_lib_save_LIBS 14236fi 14237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5 14238$as_echo "$ac_cv_lib_pthread_sigwait" >&6; } 14239if test "x$ac_cv_lib_pthread_sigwait" = xyes; then : 14240 have_sigwait=yes 14241else 14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5 14243$as_echo_n "checking for _Psigwait in -lpthread... " >&6; } 14244if ${ac_cv_lib_pthread__Psigwait+:} false; then : 14245 $as_echo_n "(cached) " >&6 14246else 14247 ac_check_lib_save_LIBS=$LIBS 14248LIBS="-lpthread $LIBS" 14249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14250/* end confdefs.h. */ 14251 14252/* Override any GCC internal prototype to avoid an error. 14253 Use char because int might match the return type of a GCC 14254 builtin and then its argument prototype would still apply. */ 14255#ifdef __cplusplus 14256extern "C" 14257#endif 14258char _Psigwait (); 14259int 14260main () 14261{ 14262return _Psigwait (); 14263 ; 14264 return 0; 14265} 14266_ACEOF 14267if ac_fn_c_try_link "$LINENO"; then : 14268 ac_cv_lib_pthread__Psigwait=yes 14269else 14270 ac_cv_lib_pthread__Psigwait=no 14271fi 14272rm -f core conftest.err conftest.$ac_objext \ 14273 conftest$ac_exeext conftest.$ac_ext 14274LIBS=$ac_check_lib_save_LIBS 14275fi 14276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5 14277$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; } 14278if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then : 14279 have_sigwait=yes 14280else 14281 have_sigwait=no 14282 14283fi 14284 14285 14286fi 14287 14288 14289fi 14290 14291 14292fi 14293 14294 case "$host:$have_sigwait" in 14295 *-freebsd*:no) 14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5 14297$as_echo_n "checking for sigwait in -lc_r... " >&6; } 14298if ${ac_cv_lib_c_r_sigwait+:} false; then : 14299 $as_echo_n "(cached) " >&6 14300else 14301 ac_check_lib_save_LIBS=$LIBS 14302LIBS="-lc_r $LIBS" 14303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14304/* end confdefs.h. */ 14305 14306/* Override any GCC internal prototype to avoid an error. 14307 Use char because int might match the return type of a GCC 14308 builtin and then its argument prototype would still apply. */ 14309#ifdef __cplusplus 14310extern "C" 14311#endif 14312char sigwait (); 14313int 14314main () 14315{ 14316return sigwait (); 14317 ; 14318 return 0; 14319} 14320_ACEOF 14321if ac_fn_c_try_link "$LINENO"; then : 14322 ac_cv_lib_c_r_sigwait=yes 14323else 14324 ac_cv_lib_c_r_sigwait=no 14325fi 14326rm -f core conftest.err conftest.$ac_objext \ 14327 conftest$ac_exeext conftest.$ac_ext 14328LIBS=$ac_check_lib_save_LIBS 14329fi 14330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5 14331$as_echo "$ac_cv_lib_c_r_sigwait" >&6; } 14332if test "x$ac_cv_lib_c_r_sigwait" = xyes; then : 14333 have_sigwait=yes 14334 14335fi 14336 14337 esac 14338 case "$have_sigwait" in 14339 yes) 14340 ac_cv_func_sigwait=yes 14341 14342$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 14343 14344 esac 14345 14346 for ac_func in pthread_attr_getstacksize 14347do : 14348 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize" 14349if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then : 14350 cat >>confdefs.h <<_ACEOF 14351#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 14352_ACEOF 14353 14354fi 14355done 14356 14357 for ac_func in pthread_attr_setstacksize sysconf 14358do : 14359 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14360ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14361if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14362 cat >>confdefs.h <<_ACEOF 14363#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14364_ACEOF 14365 14366fi 14367done 14368 14369 14370 case "$host" in 14371 *-freebsd5.[012]|*-freebsd5.[012].*) 14372 ;; 14373 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*) 14374 14375$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h 14376 14377 ;; 14378 *-bsdi3.*|*-bsdi4.0*) 14379 14380$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h 14381 14382 ;; 14383 *-linux*) 14384 14385$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h 14386 14387 ;; 14388 *-solaris*) 14389 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 14390 14391 for ac_func in pthread_setconcurrency 14392do : 14393 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency" 14394if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then : 14395 cat >>confdefs.h <<_ACEOF 14396#define HAVE_PTHREAD_SETCONCURRENCY 1 14397_ACEOF 14398 14399fi 14400done 14401 14402 case "$ac_cv_func_pthread_setconcurrency" in 14403 yes) 14404 14405$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h 14406 14407 esac 14408 ;; 14409 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 14410 14411$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h 14412 14413 ;; 14414 esac 14415 hack_shutup_pthreadonceinit=no 14416 case "$host" in 14417 *-aix5.[123].*) 14418 hack_shutup_pthreadonceinit=yes 14419 ;; 14420 *-solaris2.[89]) 14421 hack_shutup_pthreadonceinit=yes 14422 ;; 14423 *-solaris2.1[0-9]) 14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5 14425$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; } 14426if ${ntp_cv_braces_around_pthread_once_init+:} false; then : 14427 $as_echo_n "(cached) " >&6 14428else 14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14430/* end confdefs.h. */ 14431 14432 #include <pthread.h> 14433 14434int 14435main () 14436{ 14437 14438 static pthread_once_t once_test = 14439 PTHREAD_ONCE_INIT; 14440 14441 14442 ; 14443 return 0; 14444} 14445_ACEOF 14446if ac_fn_c_try_compile "$LINENO"; then : 14447 ntp_cv_braces_around_pthread_once_init=no 14448else 14449 ntp_cv_braces_around_pthread_once_init=yes 14450 14451fi 14452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14453 14454fi 14455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5 14456$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; } 14457 case "$ntp_cv_braces_around_pthread_once_init" in 14458 yes) 14459 hack_shutup_pthreadonceinit=yes 14460 esac 14461 ;; 14462 esac 14463 case "$hack_shutup_pthreadonceinit" in 14464 yes) 14465 14466$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h 14467 14468 esac 14469 LIBS="$saved_LIBS" 14470 { saved_LIBS=; unset saved_LIBS;} 14471 CFLAGS="$saved_CFLAGS" 14472 { saved_CFLAGS=; unset saved_CFLAGS;} 14473 ;; 14474 *) 14475 LIBISC_PTHREADS_NOTHREADS=nothreads 14476 ;; 14477esac 14478 14479 if test "$have_pthreads" != "no"; then 14480 PTHREADS_TRUE= 14481 PTHREADS_FALSE='#' 14482else 14483 PTHREADS_TRUE='#' 14484 PTHREADS_FALSE= 14485fi 14486 14487 14488 14489 14490 14491 14492 14493case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in 14494 no:yes) 14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5 14496$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; } 14497if ${ntp_cv_vsnprintf_percent_m+:} false; then : 14498 $as_echo_n "(cached) " >&6 14499else 14500 if test "$cross_compiling" = yes; then : 14501 ntp_cv_vsnprintf_percent_m=no 14502 14503else 14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14505/* end confdefs.h. */ 14506 14507 #include <stdarg.h> 14508 #include <errno.h> 14509 #include <stdio.h> 14510 #include <string.h> 14511 14512 int call_vsnprintf( 14513 char * dst, 14514 size_t sz, 14515 const char *fmt, 14516 ... 14517 ); 14518 14519 int call_vsnprintf( 14520 char * dst, 14521 size_t sz, 14522 const char *fmt, 14523 ... 14524 ) 14525 { 14526 va_list ap; 14527 int rc; 14528 14529 va_start(ap, fmt); 14530 rc = vsnprintf(dst, sz, fmt, ap); 14531 va_end(ap); 14532 14533 return rc; 14534 } 14535 14536int 14537main () 14538{ 14539 14540 char sbuf[512]; 14541 char pbuf[512]; 14542 int slen; 14543 14544 strcpy(sbuf, strerror(ENOENT)); 14545 errno = ENOENT; 14546 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m", 14547 "wrong"); 14548 return strcmp(sbuf, pbuf); 14549 14550 14551 ; 14552 return 0; 14553} 14554_ACEOF 14555if ac_fn_c_try_run "$LINENO"; then : 14556 ntp_cv_vsnprintf_percent_m=yes 14557else 14558 ntp_cv_vsnprintf_percent_m=no 14559fi 14560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14561 conftest.$ac_objext conftest.beam conftest.$ac_ext 14562fi 14563 14564 14565fi 14566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5 14567$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; } 14568 case "$ntp_cv_vsnprintf_percent_m" in 14569 yes) 14570 14571$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h 14572 14573 esac 14574esac 14575 14576for ac_header in sys/clockctl.h 14577do : 14578 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default" 14579if test "x$ac_cv_header_sys_clockctl_h" = xyes; then : 14580 cat >>confdefs.h <<_ACEOF 14581#define HAVE_SYS_CLOCKCTL_H 1 14582_ACEOF 14583 14584fi 14585 14586done 14587 14588 14589# Check whether --enable-clockctl was given. 14590if test "${enable_clockctl+set}" = set; then : 14591 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval 14592else 14593 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h 14594 14595fi 14596 14597 14598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5 14599$as_echo_n "checking if we should use /dev/clockctl... " >&6; } 14600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5 14601$as_echo "$ntp_use_dev_clockctl" >&6; } 14602 14603 14604for ac_header in sys/capability.h sys/prctl.h 14605do : 14606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14607ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14608if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14609 cat >>confdefs.h <<_ACEOF 14610#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14611_ACEOF 14612 14613fi 14614 14615done 14616 14617 14618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5 14619$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; } 14620 14621case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in 14622 yesyes) 14623 case "$host" in 14624 mips-sgi-irix*) 14625 ntp_have_linuxcaps=no 14626 ;; 14627 *) ntp_have_linuxcaps=yes 14628 ;; 14629 esac 14630 ;; 14631 *) 14632 ntp_have_linuxcaps=no 14633 ;; 14634esac 14635 14636# Check whether --enable-linuxcaps was given. 14637if test "${enable_linuxcaps+set}" = set; then : 14638 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval 14639 14640fi 14641 14642 14643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5 14644$as_echo "$ntp_have_linuxcaps" >&6; } 14645 14646case "$ntp_have_linuxcaps" in 14647 yes) 14648 14649$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h 14650 14651 LIBS="$LIBS -lcap" 14652 ;; 14653esac 14654 14655 14656for ac_header in priv.h 14657do : 14658 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" 14659if test "x$ac_cv_header_priv_h" = xyes; then : 14660 cat >>confdefs.h <<_ACEOF 14661#define HAVE_PRIV_H 1 14662_ACEOF 14663 14664fi 14665 14666done 14667 14668case "$ac_cv_header_priv_h" in 14669 yes) 14670 case "$host" in 14671 *-solaris*) 14672 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" 14673if test "x$ac_cv_func_setppriv" = xyes; then : 14674 ntp_have_solarisprivs=yes 14675else 14676 ntp_have_solarisprivs=no 14677 14678fi 14679 14680 ;; 14681 esac 14682esac 14683 14684# Check whether --enable-solarisprivs was given. 14685if test "${enable_solarisprivs+set}" = set; then : 14686 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval 14687 14688fi 14689 14690 14691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5 14692$as_echo_n "checking if we have solaris privileges... " >&6; } 14693 14694case "$ntp_have_solarisprivs" in 14695 yes) 14696 14697$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h 14698 14699esac 14700 14701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5 14702$as_echo "$ntp_have_solarisprivs" >&6; } 14703
| 3415 3416 3417cat >>confdefs.h <<_ACEOF 3418#define PACKAGE "$PACKAGE" 3419_ACEOF 3420 3421 3422cat >>confdefs.h <<_ACEOF 3423#define VERSION "$VERSION" 3424_ACEOF 3425 3426# Some tools Automake needs. 3427 3428ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3429 3430 3431AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3432 3433 3434AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3435 3436 3437AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3438 3439 3440MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3441 3442# For better backward compatibility. To be removed once Automake 1.9.x 3443# dies out for good. For more background, see: 3444# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3445# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3446mkdir_p='$(MKDIR_P)' 3447 3448# We need awk for the "check" target (and possibly the TAP driver). The 3449# system "awk" is bad on some platforms. 3450# Always define AMTAR for backward compatibility. Yes, it's still used 3451# in the wild :-( We should find a proper way to deprecate it ... 3452AMTAR='$${TAR-tar}' 3453 3454 3455# We'll loop over all known methods to create a tar archive until one works. 3456_am_tools='gnutar pax cpio none' 3457 3458am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3459 3460 3461 3462 3463 3464 3465# POSIX will say in a future version that running "rm -f" with no argument 3466# is OK; and we want to be able to make that assumption in our Makefile 3467# recipes. So use an aggressive probe to check that the usage we want is 3468# actually supported "in the wild" to an acceptable degree. 3469# See automake bug#10828. 3470# To make any issue more visible, cause the running configure to be aborted 3471# by default if the 'rm' program in use doesn't match our expectations; the 3472# user can still override this though. 3473if rm -f && rm -fr && rm -rf; then : OK; else 3474 cat >&2 <<'END' 3475Oops! 3476 3477Your 'rm' program seems unable to run without file operands specified 3478on the command line, even when the '-f' option is present. This is contrary 3479to the behaviour of most rm programs out there, and not conforming with 3480the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3481 3482Please tell bug-automake@gnu.org about your system, including the value 3483of your $PATH and any error possibly output before this message. This 3484can help us improve future automake versions. 3485 3486END 3487 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3488 echo 'Configuration will proceed anyway, since you have set the' >&2 3489 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3490 echo >&2 3491 else 3492 cat >&2 <<'END' 3493Aborting the configuration process, to ensure you take notice of the issue. 3494 3495You can download and install GNU coreutils to get an 'rm' implementation 3496that behaves properly: <http://www.gnu.org/software/coreutils/>. 3497 3498If you want to complete the configuration process using your problematic 3499'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3500to "yes", and re-run configure. 3501 3502END 3503 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3504 fi 3505fi 3506 3507# Check whether --enable-silent-rules was given. 3508if test "${enable_silent_rules+set}" = set; then : 3509 enableval=$enable_silent_rules; 3510fi 3511 3512case $enable_silent_rules in # ((( 3513 yes) AM_DEFAULT_VERBOSITY=0;; 3514 no) AM_DEFAULT_VERBOSITY=1;; 3515 *) AM_DEFAULT_VERBOSITY=0;; 3516esac 3517am_make=${MAKE-make} 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3519$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3520if ${am_cv_make_support_nested_variables+:} false; then : 3521 $as_echo_n "(cached) " >&6 3522else 3523 if $as_echo 'TRUE=$(BAR$(V)) 3524BAR0=false 3525BAR1=true 3526V=1 3527am__doit: 3528 @$(TRUE) 3529.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3530 am_cv_make_support_nested_variables=yes 3531else 3532 am_cv_make_support_nested_variables=no 3533fi 3534fi 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3536$as_echo "$am_cv_make_support_nested_variables" >&6; } 3537if test $am_cv_make_support_nested_variables = yes; then 3538 AM_V='$(V)' 3539 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3540else 3541 AM_V=$AM_DEFAULT_VERBOSITY 3542 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3543fi 3544AM_BACKSLASH='\' 3545 3546 3547# Make sure we can run config.sub. 3548$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3549 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3550 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3552$as_echo_n "checking build system type... " >&6; } 3553if ${ac_cv_build+:} false; then : 3554 $as_echo_n "(cached) " >&6 3555else 3556 ac_build_alias=$build_alias 3557test "x$ac_build_alias" = x && 3558 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3559test "x$ac_build_alias" = x && 3560 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3561ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3562 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3563 3564fi 3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3566$as_echo "$ac_cv_build" >&6; } 3567case $ac_cv_build in 3568*-*-*) ;; 3569*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3570esac 3571build=$ac_cv_build 3572ac_save_IFS=$IFS; IFS='-' 3573set x $ac_cv_build 3574shift 3575build_cpu=$1 3576build_vendor=$2 3577shift; shift 3578# Remember, the first character of IFS is used to create $*, 3579# except with old shells: 3580build_os=$* 3581IFS=$ac_save_IFS 3582case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3583 3584 3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3586$as_echo_n "checking host system type... " >&6; } 3587if ${ac_cv_host+:} false; then : 3588 $as_echo_n "(cached) " >&6 3589else 3590 if test "x$host_alias" = x; then 3591 ac_cv_host=$ac_cv_build 3592else 3593 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3594 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3595fi 3596 3597fi 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3599$as_echo "$ac_cv_host" >&6; } 3600case $ac_cv_host in 3601*-*-*) ;; 3602*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3603esac 3604host=$ac_cv_host 3605ac_save_IFS=$IFS; IFS='-' 3606set x $ac_cv_host 3607shift 3608host_cpu=$1 3609host_vendor=$2 3610shift; shift 3611# Remember, the first character of IFS is used to create $*, 3612# except with old shells: 3613host_os=$* 3614IFS=$ac_save_IFS 3615case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3616 3617 3618 3619cat >>confdefs.h <<_ACEOF 3620#define STR_SYSTEM "$host" 3621_ACEOF 3622 3623ac_config_headers="$ac_config_headers config.h" 3624 3625 3626DEPDIR="${am__leading_dot}deps" 3627 3628ac_config_commands="$ac_config_commands depfiles" 3629 3630 3631am_make=${MAKE-make} 3632cat > confinc << 'END' 3633am__doit: 3634 @echo this is the am__doit target 3635.PHONY: am__doit 3636END 3637# If we don't find an include directive, just comment out the code. 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3639$as_echo_n "checking for style of include used by $am_make... " >&6; } 3640am__include="#" 3641am__quote= 3642_am_result=none 3643# First try GNU make style include. 3644echo "include confinc" > confmf 3645# Ignore all kinds of additional output from 'make'. 3646case `$am_make -s -f confmf 2> /dev/null` in #( 3647*the\ am__doit\ target*) 3648 am__include=include 3649 am__quote= 3650 _am_result=GNU 3651 ;; 3652esac 3653# Now try BSD make style include. 3654if test "$am__include" = "#"; then 3655 echo '.include "confinc"' > confmf 3656 case `$am_make -s -f confmf 2> /dev/null` in #( 3657 *the\ am__doit\ target*) 3658 am__include=.include 3659 am__quote="\"" 3660 _am_result=BSD 3661 ;; 3662 esac 3663fi 3664 3665 3666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3667$as_echo "$_am_result" >&6; } 3668rm -f confinc confmf 3669 3670# Check whether --enable-dependency-tracking was given. 3671if test "${enable_dependency_tracking+set}" = set; then : 3672 enableval=$enable_dependency_tracking; 3673fi 3674 3675if test "x$enable_dependency_tracking" != xno; then 3676 am_depcomp="$ac_aux_dir/depcomp" 3677 AMDEPBACKSLASH='\' 3678 am__nodep='_no' 3679fi 3680 if test "x$enable_dependency_tracking" != xno; then 3681 AMDEP_TRUE= 3682 AMDEP_FALSE='#' 3683else 3684 AMDEP_TRUE='#' 3685 AMDEP_FALSE= 3686fi 3687 3688 3689 3690case "$build" in 3691 *-*-freebsd1?.*) 3692 cclist=cc 3693 ;; 3694 *) 3695 cclist="cc gcc" 3696 ;; 3697esac 3698 3699 3700#AC_USE_SYSTEM_EXTENSIONS 3701 3702ac_ext=c 3703ac_cpp='$CPP $CPPFLAGS' 3704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3706ac_compiler_gnu=$ac_cv_c_compiler_gnu 3707if test -n "$ac_tool_prefix"; then 3708 for ac_prog in $cclist 3709 do 3710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3711set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3713$as_echo_n "checking for $ac_word... " >&6; } 3714if ${ac_cv_prog_CC+:} false; then : 3715 $as_echo_n "(cached) " >&6 3716else 3717 if test -n "$CC"; then 3718 ac_cv_prog_CC="$CC" # Let the user override the test. 3719else 3720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3721for as_dir in $PATH 3722do 3723 IFS=$as_save_IFS 3724 test -z "$as_dir" && as_dir=. 3725 for ac_exec_ext in '' $ac_executable_extensions; do 3726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3727 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3729 break 2 3730 fi 3731done 3732 done 3733IFS=$as_save_IFS 3734 3735fi 3736fi 3737CC=$ac_cv_prog_CC 3738if test -n "$CC"; then 3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3740$as_echo "$CC" >&6; } 3741else 3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3743$as_echo "no" >&6; } 3744fi 3745 3746 3747 test -n "$CC" && break 3748 done 3749fi 3750if test -z "$CC"; then 3751 ac_ct_CC=$CC 3752 for ac_prog in $cclist 3753do 3754 # Extract the first word of "$ac_prog", so it can be a program name with args. 3755set dummy $ac_prog; ac_word=$2 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3757$as_echo_n "checking for $ac_word... " >&6; } 3758if ${ac_cv_prog_ac_ct_CC+:} false; then : 3759 $as_echo_n "(cached) " >&6 3760else 3761 if test -n "$ac_ct_CC"; then 3762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3763else 3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3765for as_dir in $PATH 3766do 3767 IFS=$as_save_IFS 3768 test -z "$as_dir" && as_dir=. 3769 for ac_exec_ext in '' $ac_executable_extensions; do 3770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3771 ac_cv_prog_ac_ct_CC="$ac_prog" 3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3773 break 2 3774 fi 3775done 3776 done 3777IFS=$as_save_IFS 3778 3779fi 3780fi 3781ac_ct_CC=$ac_cv_prog_ac_ct_CC 3782if test -n "$ac_ct_CC"; then 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3784$as_echo "$ac_ct_CC" >&6; } 3785else 3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3787$as_echo "no" >&6; } 3788fi 3789 3790 3791 test -n "$ac_ct_CC" && break 3792done 3793 3794 if test "x$ac_ct_CC" = x; then 3795 CC="" 3796 else 3797 case $cross_compiling:$ac_tool_warned in 3798yes:) 3799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3801ac_tool_warned=yes ;; 3802esac 3803 CC=$ac_ct_CC 3804 fi 3805fi 3806 3807 3808test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3810as_fn_error $? "no acceptable C compiler found in \$PATH 3811See \`config.log' for more details" "$LINENO" 5; } 3812 3813# Provide some information about the compiler. 3814$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3815set X $ac_compile 3816ac_compiler=$2 3817for ac_option in --version -v -V -qversion; do 3818 { { ac_try="$ac_compiler $ac_option >&5" 3819case "(($ac_try" in 3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3821 *) ac_try_echo=$ac_try;; 3822esac 3823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3824$as_echo "$ac_try_echo"; } >&5 3825 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3826 ac_status=$? 3827 if test -s conftest.err; then 3828 sed '10a\ 3829... rest of stderr output deleted ... 3830 10q' conftest.err >conftest.er1 3831 cat conftest.er1 >&5 3832 fi 3833 rm -f conftest.er1 conftest.err 3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3835 test $ac_status = 0; } 3836done 3837 3838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3839/* end confdefs.h. */ 3840 3841int 3842main () 3843{ 3844 3845 ; 3846 return 0; 3847} 3848_ACEOF 3849ac_clean_files_save=$ac_clean_files 3850ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3851# Try to create an executable without -o first, disregard a.out. 3852# It will help us diagnose broken compilers, and finding out an intuition 3853# of exeext. 3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3855$as_echo_n "checking whether the C compiler works... " >&6; } 3856ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3857 3858# The possible output files: 3859ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3860 3861ac_rmfiles= 3862for ac_file in $ac_files 3863do 3864 case $ac_file in 3865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3866 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3867 esac 3868done 3869rm -f $ac_rmfiles 3870 3871if { { ac_try="$ac_link_default" 3872case "(($ac_try" in 3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3874 *) ac_try_echo=$ac_try;; 3875esac 3876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3877$as_echo "$ac_try_echo"; } >&5 3878 (eval "$ac_link_default") 2>&5 3879 ac_status=$? 3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3881 test $ac_status = 0; }; then : 3882 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3883# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3884# in a Makefile. We should not override ac_cv_exeext if it was cached, 3885# so that the user can short-circuit this test for compilers unknown to 3886# Autoconf. 3887for ac_file in $ac_files '' 3888do 3889 test -f "$ac_file" || continue 3890 case $ac_file in 3891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3892 ;; 3893 [ab].out ) 3894 # We found the default executable, but exeext='' is most 3895 # certainly right. 3896 break;; 3897 *.* ) 3898 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3899 then :; else 3900 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3901 fi 3902 # We set ac_cv_exeext here because the later test for it is not 3903 # safe: cross compilers may not add the suffix if given an `-o' 3904 # argument, so we may need to know it at that point already. 3905 # Even if this section looks crufty: it has the advantage of 3906 # actually working. 3907 break;; 3908 * ) 3909 break;; 3910 esac 3911done 3912test "$ac_cv_exeext" = no && ac_cv_exeext= 3913 3914else 3915 ac_file='' 3916fi 3917if test -z "$ac_file"; then : 3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3919$as_echo "no" >&6; } 3920$as_echo "$as_me: failed program was:" >&5 3921sed 's/^/| /' conftest.$ac_ext >&5 3922 3923{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3925as_fn_error 77 "C compiler cannot create executables 3926See \`config.log' for more details" "$LINENO" 5; } 3927else 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3929$as_echo "yes" >&6; } 3930fi 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3932$as_echo_n "checking for C compiler default output file name... " >&6; } 3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3934$as_echo "$ac_file" >&6; } 3935ac_exeext=$ac_cv_exeext 3936 3937rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3938ac_clean_files=$ac_clean_files_save 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3940$as_echo_n "checking for suffix of executables... " >&6; } 3941if { { ac_try="$ac_link" 3942case "(($ac_try" in 3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3944 *) ac_try_echo=$ac_try;; 3945esac 3946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3947$as_echo "$ac_try_echo"; } >&5 3948 (eval "$ac_link") 2>&5 3949 ac_status=$? 3950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3951 test $ac_status = 0; }; then : 3952 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3953# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3954# work properly (i.e., refer to `conftest.exe'), while it won't with 3955# `rm'. 3956for ac_file in conftest.exe conftest conftest.*; do 3957 test -f "$ac_file" || continue 3958 case $ac_file in 3959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3960 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3961 break;; 3962 * ) break;; 3963 esac 3964done 3965else 3966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3968as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3969See \`config.log' for more details" "$LINENO" 5; } 3970fi 3971rm -f conftest conftest$ac_cv_exeext 3972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3973$as_echo "$ac_cv_exeext" >&6; } 3974 3975rm -f conftest.$ac_ext 3976EXEEXT=$ac_cv_exeext 3977ac_exeext=$EXEEXT 3978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3979/* end confdefs.h. */ 3980#include <stdio.h> 3981int 3982main () 3983{ 3984FILE *f = fopen ("conftest.out", "w"); 3985 return ferror (f) || fclose (f) != 0; 3986 3987 ; 3988 return 0; 3989} 3990_ACEOF 3991ac_clean_files="$ac_clean_files conftest.out" 3992# Check that the compiler produces executables we can run. If not, either 3993# the compiler is broken, or we cross compile. 3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3995$as_echo_n "checking whether we are cross compiling... " >&6; } 3996if test "$cross_compiling" != yes; then 3997 { { ac_try="$ac_link" 3998case "(($ac_try" in 3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4000 *) ac_try_echo=$ac_try;; 4001esac 4002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4003$as_echo "$ac_try_echo"; } >&5 4004 (eval "$ac_link") 2>&5 4005 ac_status=$? 4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4007 test $ac_status = 0; } 4008 if { ac_try='./conftest$ac_cv_exeext' 4009 { { case "(($ac_try" in 4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4011 *) ac_try_echo=$ac_try;; 4012esac 4013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4014$as_echo "$ac_try_echo"; } >&5 4015 (eval "$ac_try") 2>&5 4016 ac_status=$? 4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4018 test $ac_status = 0; }; }; then 4019 cross_compiling=no 4020 else 4021 if test "$cross_compiling" = maybe; then 4022 cross_compiling=yes 4023 else 4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4026as_fn_error $? "cannot run C compiled programs. 4027If you meant to cross compile, use \`--host'. 4028See \`config.log' for more details" "$LINENO" 5; } 4029 fi 4030 fi 4031fi 4032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4033$as_echo "$cross_compiling" >&6; } 4034 4035rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4036ac_clean_files=$ac_clean_files_save 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4038$as_echo_n "checking for suffix of object files... " >&6; } 4039if ${ac_cv_objext+:} false; then : 4040 $as_echo_n "(cached) " >&6 4041else 4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4043/* end confdefs.h. */ 4044 4045int 4046main () 4047{ 4048 4049 ; 4050 return 0; 4051} 4052_ACEOF 4053rm -f conftest.o conftest.obj 4054if { { ac_try="$ac_compile" 4055case "(($ac_try" in 4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4057 *) ac_try_echo=$ac_try;; 4058esac 4059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4060$as_echo "$ac_try_echo"; } >&5 4061 (eval "$ac_compile") 2>&5 4062 ac_status=$? 4063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4064 test $ac_status = 0; }; then : 4065 for ac_file in conftest.o conftest.obj conftest.*; do 4066 test -f "$ac_file" || continue; 4067 case $ac_file in 4068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4069 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4070 break;; 4071 esac 4072done 4073else 4074 $as_echo "$as_me: failed program was:" >&5 4075sed 's/^/| /' conftest.$ac_ext >&5 4076 4077{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4079as_fn_error $? "cannot compute suffix of object files: cannot compile 4080See \`config.log' for more details" "$LINENO" 5; } 4081fi 4082rm -f conftest.$ac_cv_objext conftest.$ac_ext 4083fi 4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4085$as_echo "$ac_cv_objext" >&6; } 4086OBJEXT=$ac_cv_objext 4087ac_objext=$OBJEXT 4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4089$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4090if ${ac_cv_c_compiler_gnu+:} false; then : 4091 $as_echo_n "(cached) " >&6 4092else 4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4094/* end confdefs.h. */ 4095 4096int 4097main () 4098{ 4099#ifndef __GNUC__ 4100 choke me 4101#endif 4102 4103 ; 4104 return 0; 4105} 4106_ACEOF 4107if ac_fn_c_try_compile "$LINENO"; then : 4108 ac_compiler_gnu=yes 4109else 4110 ac_compiler_gnu=no 4111fi 4112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4113ac_cv_c_compiler_gnu=$ac_compiler_gnu 4114 4115fi 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4117$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4118if test $ac_compiler_gnu = yes; then 4119 GCC=yes 4120else 4121 GCC= 4122fi 4123ac_test_CFLAGS=${CFLAGS+set} 4124ac_save_CFLAGS=$CFLAGS 4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4126$as_echo_n "checking whether $CC accepts -g... " >&6; } 4127if ${ac_cv_prog_cc_g+:} false; then : 4128 $as_echo_n "(cached) " >&6 4129else 4130 ac_save_c_werror_flag=$ac_c_werror_flag 4131 ac_c_werror_flag=yes 4132 ac_cv_prog_cc_g=no 4133 CFLAGS="-g" 4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4135/* end confdefs.h. */ 4136 4137int 4138main () 4139{ 4140 4141 ; 4142 return 0; 4143} 4144_ACEOF 4145if ac_fn_c_try_compile "$LINENO"; then : 4146 ac_cv_prog_cc_g=yes 4147else 4148 CFLAGS="" 4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4150/* end confdefs.h. */ 4151 4152int 4153main () 4154{ 4155 4156 ; 4157 return 0; 4158} 4159_ACEOF 4160if ac_fn_c_try_compile "$LINENO"; then : 4161 4162else 4163 ac_c_werror_flag=$ac_save_c_werror_flag 4164 CFLAGS="-g" 4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4166/* end confdefs.h. */ 4167 4168int 4169main () 4170{ 4171 4172 ; 4173 return 0; 4174} 4175_ACEOF 4176if ac_fn_c_try_compile "$LINENO"; then : 4177 ac_cv_prog_cc_g=yes 4178fi 4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4180fi 4181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4182fi 4183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4184 ac_c_werror_flag=$ac_save_c_werror_flag 4185fi 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4187$as_echo "$ac_cv_prog_cc_g" >&6; } 4188if test "$ac_test_CFLAGS" = set; then 4189 CFLAGS=$ac_save_CFLAGS 4190elif test $ac_cv_prog_cc_g = yes; then 4191 if test "$GCC" = yes; then 4192 CFLAGS="-g -O2" 4193 else 4194 CFLAGS="-g" 4195 fi 4196else 4197 if test "$GCC" = yes; then 4198 CFLAGS="-O2" 4199 else 4200 CFLAGS= 4201 fi 4202fi 4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4204$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4205if ${ac_cv_prog_cc_c89+:} false; then : 4206 $as_echo_n "(cached) " >&6 4207else 4208 ac_cv_prog_cc_c89=no 4209ac_save_CC=$CC 4210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4211/* end confdefs.h. */ 4212#include <stdarg.h> 4213#include <stdio.h> 4214struct stat; 4215/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4216struct buf { int x; }; 4217FILE * (*rcsopen) (struct buf *, struct stat *, int); 4218static char *e (p, i) 4219 char **p; 4220 int i; 4221{ 4222 return p[i]; 4223} 4224static char *f (char * (*g) (char **, int), char **p, ...) 4225{ 4226 char *s; 4227 va_list v; 4228 va_start (v,p); 4229 s = g (p, va_arg (v,int)); 4230 va_end (v); 4231 return s; 4232} 4233 4234/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4235 function prototypes and stuff, but not '\xHH' hex character constants. 4236 These don't provoke an error unfortunately, instead are silently treated 4237 as 'x'. The following induces an error, until -std is added to get 4238 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4239 array size at least. It's necessary to write '\x00'==0 to get something 4240 that's true only with -std. */ 4241int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4242 4243/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4244 inside strings and character constants. */ 4245#define FOO(x) 'x' 4246int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4247 4248int test (int i, double x); 4249struct s1 {int (*f) (int a);}; 4250struct s2 {int (*f) (double a);}; 4251int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4252int argc; 4253char **argv; 4254int 4255main () 4256{ 4257return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4258 ; 4259 return 0; 4260} 4261_ACEOF 4262for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4263 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4264do 4265 CC="$ac_save_CC $ac_arg" 4266 if ac_fn_c_try_compile "$LINENO"; then : 4267 ac_cv_prog_cc_c89=$ac_arg 4268fi 4269rm -f core conftest.err conftest.$ac_objext 4270 test "x$ac_cv_prog_cc_c89" != "xno" && break 4271done 4272rm -f conftest.$ac_ext 4273CC=$ac_save_CC 4274 4275fi 4276# AC_CACHE_VAL 4277case "x$ac_cv_prog_cc_c89" in 4278 x) 4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4280$as_echo "none needed" >&6; } ;; 4281 xno) 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4283$as_echo "unsupported" >&6; } ;; 4284 *) 4285 CC="$CC $ac_cv_prog_cc_c89" 4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4287$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4288esac 4289if test "x$ac_cv_prog_cc_c89" != xno; then : 4290 4291fi 4292 4293ac_ext=c 4294ac_cpp='$CPP $CPPFLAGS' 4295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4297ac_compiler_gnu=$ac_cv_c_compiler_gnu 4298 4299ac_ext=c 4300ac_cpp='$CPP $CPPFLAGS' 4301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4303ac_compiler_gnu=$ac_cv_c_compiler_gnu 4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4305$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4306if ${am_cv_prog_cc_c_o+:} false; then : 4307 $as_echo_n "(cached) " >&6 4308else 4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4310/* end confdefs.h. */ 4311 4312int 4313main () 4314{ 4315 4316 ; 4317 return 0; 4318} 4319_ACEOF 4320 # Make sure it works both with $CC and with simple cc. 4321 # Following AC_PROG_CC_C_O, we do the test twice because some 4322 # compilers refuse to overwrite an existing .o file with -o, 4323 # though they will create one. 4324 am_cv_prog_cc_c_o=yes 4325 for am_i in 1 2; do 4326 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4327 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4328 ac_status=$? 4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4330 (exit $ac_status); } \ 4331 && test -f conftest2.$ac_objext; then 4332 : OK 4333 else 4334 am_cv_prog_cc_c_o=no 4335 break 4336 fi 4337 done 4338 rm -f core conftest* 4339 unset am_i 4340fi 4341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4342$as_echo "$am_cv_prog_cc_c_o" >&6; } 4343if test "$am_cv_prog_cc_c_o" != yes; then 4344 # Losing compiler, so override with the script. 4345 # FIXME: It is wrong to rewrite CC. 4346 # But if we don't then we get into trouble of one sort or another. 4347 # A longer-term fix would be to have automake use am__CC in this case, 4348 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4349 CC="$am_aux_dir/compile $CC" 4350fi 4351ac_ext=c 4352ac_cpp='$CPP $CPPFLAGS' 4353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4355ac_compiler_gnu=$ac_cv_c_compiler_gnu 4356 4357 4358depcc="$CC" am_compiler_list= 4359 4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4361$as_echo_n "checking dependency style of $depcc... " >&6; } 4362if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4363 $as_echo_n "(cached) " >&6 4364else 4365 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4366 # We make a subdir and do the tests there. Otherwise we can end up 4367 # making bogus files that we don't know about and never remove. For 4368 # instance it was reported that on HP-UX the gcc test will end up 4369 # making a dummy file named 'D' -- because '-MD' means "put the output 4370 # in D". 4371 rm -rf conftest.dir 4372 mkdir conftest.dir 4373 # Copy depcomp to subdir because otherwise we won't find it if we're 4374 # using a relative directory. 4375 cp "$am_depcomp" conftest.dir 4376 cd conftest.dir 4377 # We will build objects and dependencies in a subdirectory because 4378 # it helps to detect inapplicable dependency modes. For instance 4379 # both Tru64's cc and ICC support -MD to output dependencies as a 4380 # side effect of compilation, but ICC will put the dependencies in 4381 # the current directory while Tru64 will put them in the object 4382 # directory. 4383 mkdir sub 4384 4385 am_cv_CC_dependencies_compiler_type=none 4386 if test "$am_compiler_list" = ""; then 4387 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4388 fi 4389 am__universal=false 4390 case " $depcc " in #( 4391 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4392 esac 4393 4394 for depmode in $am_compiler_list; do 4395 # Setup a source with many dependencies, because some compilers 4396 # like to wrap large dependency lists on column 80 (with \), and 4397 # we should not choose a depcomp mode which is confused by this. 4398 # 4399 # We need to recreate these files for each test, as the compiler may 4400 # overwrite some of them when testing with obscure command lines. 4401 # This happens at least with the AIX C compiler. 4402 : > sub/conftest.c 4403 for i in 1 2 3 4 5 6; do 4404 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4405 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4406 # Solaris 10 /bin/sh. 4407 echo '/* dummy */' > sub/conftst$i.h 4408 done 4409 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4410 4411 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4412 # mode. It turns out that the SunPro C++ compiler does not properly 4413 # handle '-M -o', and we need to detect this. Also, some Intel 4414 # versions had trouble with output in subdirs. 4415 am__obj=sub/conftest.${OBJEXT-o} 4416 am__minus_obj="-o $am__obj" 4417 case $depmode in 4418 gcc) 4419 # This depmode causes a compiler race in universal mode. 4420 test "$am__universal" = false || continue 4421 ;; 4422 nosideeffect) 4423 # After this tag, mechanisms are not by side-effect, so they'll 4424 # only be used when explicitly requested. 4425 if test "x$enable_dependency_tracking" = xyes; then 4426 continue 4427 else 4428 break 4429 fi 4430 ;; 4431 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4432 # This compiler won't grok '-c -o', but also, the minuso test has 4433 # not run yet. These depmodes are late enough in the game, and 4434 # so weak that their functioning should not be impacted. 4435 am__obj=conftest.${OBJEXT-o} 4436 am__minus_obj= 4437 ;; 4438 none) break ;; 4439 esac 4440 if depmode=$depmode \ 4441 source=sub/conftest.c object=$am__obj \ 4442 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4443 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4444 >/dev/null 2>conftest.err && 4445 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4446 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4447 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4448 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4449 # icc doesn't choke on unknown options, it will just issue warnings 4450 # or remarks (even with -Werror). So we grep stderr for any message 4451 # that says an option was ignored or not supported. 4452 # When given -MP, icc 7.0 and 7.1 complain thusly: 4453 # icc: Command line warning: ignoring option '-M'; no argument required 4454 # The diagnosis changed in icc 8.0: 4455 # icc: Command line remark: option '-MP' not supported 4456 if (grep 'ignoring option' conftest.err || 4457 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4458 am_cv_CC_dependencies_compiler_type=$depmode 4459 break 4460 fi 4461 fi 4462 done 4463 4464 cd .. 4465 rm -rf conftest.dir 4466else 4467 am_cv_CC_dependencies_compiler_type=none 4468fi 4469 4470fi 4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4472$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4473CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4474 4475 if 4476 test "x$enable_dependency_tracking" != xno \ 4477 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4478 am__fastdepCC_TRUE= 4479 am__fastdepCC_FALSE='#' 4480else 4481 am__fastdepCC_TRUE='#' 4482 am__fastdepCC_FALSE= 4483fi 4484 4485 4486 4487 4488 4489ac_ext=c 4490ac_cpp='$CPP $CPPFLAGS' 4491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4493ac_compiler_gnu=$ac_cv_c_compiler_gnu 4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4495$as_echo_n "checking how to run the C preprocessor... " >&6; } 4496# On Suns, sometimes $CPP names a directory. 4497if test -n "$CPP" && test -d "$CPP"; then 4498 CPP= 4499fi 4500if test -z "$CPP"; then 4501 if ${ac_cv_prog_CPP+:} false; then : 4502 $as_echo_n "(cached) " >&6 4503else 4504 # Double quotes because CPP needs to be expanded 4505 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4506 do 4507 ac_preproc_ok=false 4508for ac_c_preproc_warn_flag in '' yes 4509do 4510 # Use a header file that comes with gcc, so configuring glibc 4511 # with a fresh cross-compiler works. 4512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4513 # <limits.h> exists even on freestanding compilers. 4514 # On the NeXT, cc -E runs the code through the compiler's parser, 4515 # not just through cpp. "Syntax error" is here to catch this case. 4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4517/* end confdefs.h. */ 4518#ifdef __STDC__ 4519# include <limits.h> 4520#else 4521# include <assert.h> 4522#endif 4523 Syntax error 4524_ACEOF 4525if ac_fn_c_try_cpp "$LINENO"; then : 4526 4527else 4528 # Broken: fails on valid input. 4529continue 4530fi 4531rm -f conftest.err conftest.i conftest.$ac_ext 4532 4533 # OK, works on sane cases. Now check whether nonexistent headers 4534 # can be detected and how. 4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4536/* end confdefs.h. */ 4537#include <ac_nonexistent.h> 4538_ACEOF 4539if ac_fn_c_try_cpp "$LINENO"; then : 4540 # Broken: success on invalid input. 4541continue 4542else 4543 # Passes both tests. 4544ac_preproc_ok=: 4545break 4546fi 4547rm -f conftest.err conftest.i conftest.$ac_ext 4548 4549done 4550# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4551rm -f conftest.i conftest.err conftest.$ac_ext 4552if $ac_preproc_ok; then : 4553 break 4554fi 4555 4556 done 4557 ac_cv_prog_CPP=$CPP 4558 4559fi 4560 CPP=$ac_cv_prog_CPP 4561else 4562 ac_cv_prog_CPP=$CPP 4563fi 4564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4565$as_echo "$CPP" >&6; } 4566ac_preproc_ok=false 4567for ac_c_preproc_warn_flag in '' yes 4568do 4569 # Use a header file that comes with gcc, so configuring glibc 4570 # with a fresh cross-compiler works. 4571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4572 # <limits.h> exists even on freestanding compilers. 4573 # On the NeXT, cc -E runs the code through the compiler's parser, 4574 # not just through cpp. "Syntax error" is here to catch this case. 4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4576/* end confdefs.h. */ 4577#ifdef __STDC__ 4578# include <limits.h> 4579#else 4580# include <assert.h> 4581#endif 4582 Syntax error 4583_ACEOF 4584if ac_fn_c_try_cpp "$LINENO"; then : 4585 4586else 4587 # Broken: fails on valid input. 4588continue 4589fi 4590rm -f conftest.err conftest.i conftest.$ac_ext 4591 4592 # OK, works on sane cases. Now check whether nonexistent headers 4593 # can be detected and how. 4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4595/* end confdefs.h. */ 4596#include <ac_nonexistent.h> 4597_ACEOF 4598if ac_fn_c_try_cpp "$LINENO"; then : 4599 # Broken: success on invalid input. 4600continue 4601else 4602 # Passes both tests. 4603ac_preproc_ok=: 4604break 4605fi 4606rm -f conftest.err conftest.i conftest.$ac_ext 4607 4608done 4609# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4610rm -f conftest.i conftest.err conftest.$ac_ext 4611if $ac_preproc_ok; then : 4612 4613else 4614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4616as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4617See \`config.log' for more details" "$LINENO" 5; } 4618fi 4619 4620ac_ext=c 4621ac_cpp='$CPP $CPPFLAGS' 4622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4624ac_compiler_gnu=$ac_cv_c_compiler_gnu 4625 4626 4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4628$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4629if ${ac_cv_path_GREP+:} false; then : 4630 $as_echo_n "(cached) " >&6 4631else 4632 if test -z "$GREP"; then 4633 ac_path_GREP_found=false 4634 # Loop through the user's path and test for each of PROGNAME-LIST 4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4636for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4637do 4638 IFS=$as_save_IFS 4639 test -z "$as_dir" && as_dir=. 4640 for ac_prog in grep ggrep; do 4641 for ac_exec_ext in '' $ac_executable_extensions; do 4642 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4643 as_fn_executable_p "$ac_path_GREP" || continue 4644# Check for GNU ac_path_GREP and select it if it is found. 4645 # Check for GNU $ac_path_GREP 4646case `"$ac_path_GREP" --version 2>&1` in 4647*GNU*) 4648 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4649*) 4650 ac_count=0 4651 $as_echo_n 0123456789 >"conftest.in" 4652 while : 4653 do 4654 cat "conftest.in" "conftest.in" >"conftest.tmp" 4655 mv "conftest.tmp" "conftest.in" 4656 cp "conftest.in" "conftest.nl" 4657 $as_echo 'GREP' >> "conftest.nl" 4658 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4660 as_fn_arith $ac_count + 1 && ac_count=$as_val 4661 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4662 # Best one so far, save it but keep looking for a better one 4663 ac_cv_path_GREP="$ac_path_GREP" 4664 ac_path_GREP_max=$ac_count 4665 fi 4666 # 10*(2^10) chars as input seems more than enough 4667 test $ac_count -gt 10 && break 4668 done 4669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4670esac 4671 4672 $ac_path_GREP_found && break 3 4673 done 4674 done 4675 done 4676IFS=$as_save_IFS 4677 if test -z "$ac_cv_path_GREP"; then 4678 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4679 fi 4680else 4681 ac_cv_path_GREP=$GREP 4682fi 4683 4684fi 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4686$as_echo "$ac_cv_path_GREP" >&6; } 4687 GREP="$ac_cv_path_GREP" 4688 4689 4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4691$as_echo_n "checking for egrep... " >&6; } 4692if ${ac_cv_path_EGREP+:} false; then : 4693 $as_echo_n "(cached) " >&6 4694else 4695 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4696 then ac_cv_path_EGREP="$GREP -E" 4697 else 4698 if test -z "$EGREP"; then 4699 ac_path_EGREP_found=false 4700 # Loop through the user's path and test for each of PROGNAME-LIST 4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4702for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4703do 4704 IFS=$as_save_IFS 4705 test -z "$as_dir" && as_dir=. 4706 for ac_prog in egrep; do 4707 for ac_exec_ext in '' $ac_executable_extensions; do 4708 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4709 as_fn_executable_p "$ac_path_EGREP" || continue 4710# Check for GNU ac_path_EGREP and select it if it is found. 4711 # Check for GNU $ac_path_EGREP 4712case `"$ac_path_EGREP" --version 2>&1` in 4713*GNU*) 4714 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4715*) 4716 ac_count=0 4717 $as_echo_n 0123456789 >"conftest.in" 4718 while : 4719 do 4720 cat "conftest.in" "conftest.in" >"conftest.tmp" 4721 mv "conftest.tmp" "conftest.in" 4722 cp "conftest.in" "conftest.nl" 4723 $as_echo 'EGREP' >> "conftest.nl" 4724 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4726 as_fn_arith $ac_count + 1 && ac_count=$as_val 4727 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4728 # Best one so far, save it but keep looking for a better one 4729 ac_cv_path_EGREP="$ac_path_EGREP" 4730 ac_path_EGREP_max=$ac_count 4731 fi 4732 # 10*(2^10) chars as input seems more than enough 4733 test $ac_count -gt 10 && break 4734 done 4735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4736esac 4737 4738 $ac_path_EGREP_found && break 3 4739 done 4740 done 4741 done 4742IFS=$as_save_IFS 4743 if test -z "$ac_cv_path_EGREP"; then 4744 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4745 fi 4746else 4747 ac_cv_path_EGREP=$EGREP 4748fi 4749 4750 fi 4751fi 4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4753$as_echo "$ac_cv_path_EGREP" >&6; } 4754 EGREP="$ac_cv_path_EGREP" 4755 4756 4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4758$as_echo_n "checking for ANSI C header files... " >&6; } 4759if ${ac_cv_header_stdc+:} false; then : 4760 $as_echo_n "(cached) " >&6 4761else 4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4763/* end confdefs.h. */ 4764#include <stdlib.h> 4765#include <stdarg.h> 4766#include <string.h> 4767#include <float.h> 4768 4769int 4770main () 4771{ 4772 4773 ; 4774 return 0; 4775} 4776_ACEOF 4777if ac_fn_c_try_compile "$LINENO"; then : 4778 ac_cv_header_stdc=yes 4779else 4780 ac_cv_header_stdc=no 4781fi 4782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4783 4784if test $ac_cv_header_stdc = yes; then 4785 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4787/* end confdefs.h. */ 4788#include <string.h> 4789 4790_ACEOF 4791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4792 $EGREP "memchr" >/dev/null 2>&1; then : 4793 4794else 4795 ac_cv_header_stdc=no 4796fi 4797rm -f conftest* 4798 4799fi 4800 4801if test $ac_cv_header_stdc = yes; then 4802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4804/* end confdefs.h. */ 4805#include <stdlib.h> 4806 4807_ACEOF 4808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4809 $EGREP "free" >/dev/null 2>&1; then : 4810 4811else 4812 ac_cv_header_stdc=no 4813fi 4814rm -f conftest* 4815 4816fi 4817 4818if test $ac_cv_header_stdc = yes; then 4819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4820 if test "$cross_compiling" = yes; then : 4821 : 4822else 4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4824/* end confdefs.h. */ 4825#include <ctype.h> 4826#include <stdlib.h> 4827#if ((' ' & 0x0FF) == 0x020) 4828# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4829# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4830#else 4831# define ISLOWER(c) \ 4832 (('a' <= (c) && (c) <= 'i') \ 4833 || ('j' <= (c) && (c) <= 'r') \ 4834 || ('s' <= (c) && (c) <= 'z')) 4835# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4836#endif 4837 4838#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4839int 4840main () 4841{ 4842 int i; 4843 for (i = 0; i < 256; i++) 4844 if (XOR (islower (i), ISLOWER (i)) 4845 || toupper (i) != TOUPPER (i)) 4846 return 2; 4847 return 0; 4848} 4849_ACEOF 4850if ac_fn_c_try_run "$LINENO"; then : 4851 4852else 4853 ac_cv_header_stdc=no 4854fi 4855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4856 conftest.$ac_objext conftest.beam conftest.$ac_ext 4857fi 4858 4859fi 4860fi 4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4862$as_echo "$ac_cv_header_stdc" >&6; } 4863if test $ac_cv_header_stdc = yes; then 4864 4865$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4866 4867fi 4868 4869# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4870for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4871 inttypes.h stdint.h unistd.h 4872do : 4873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4874ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4875" 4876if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4877 cat >>confdefs.h <<_ACEOF 4878#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4879_ACEOF 4880 4881fi 4882 4883done 4884 4885 4886 4887 4888 4889 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4890if test "x$ac_cv_header_minix_config_h" = xyes; then : 4891 MINIX=yes 4892else 4893 MINIX= 4894fi 4895 4896 4897 if test "$MINIX" = yes; then 4898 4899$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4900 4901 4902$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4903 4904 4905$as_echo "#define _MINIX 1" >>confdefs.h 4906 4907 fi 4908 4909 case "$host_os" in 4910 hpux*) 4911 4912$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 4913 4914 ;; 4915 esac 4916 4917 4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4919$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4920if ${ac_cv_safe_to_define___extensions__+:} false; then : 4921 $as_echo_n "(cached) " >&6 4922else 4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4924/* end confdefs.h. */ 4925 4926# define __EXTENSIONS__ 1 4927 $ac_includes_default 4928int 4929main () 4930{ 4931 4932 ; 4933 return 0; 4934} 4935_ACEOF 4936if ac_fn_c_try_compile "$LINENO"; then : 4937 ac_cv_safe_to_define___extensions__=yes 4938else 4939 ac_cv_safe_to_define___extensions__=no 4940fi 4941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4942fi 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4944$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4945 test $ac_cv_safe_to_define___extensions__ = yes && 4946 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4947 4948 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4949 4950 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4951 4952 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4953 4954 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4955 4956 4957 4958 case $ac_cv_prog_cc_stdc in #( 4959 no) : 4960 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4961 *) : 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4963$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4964if ${ac_cv_prog_cc_c99+:} false; then : 4965 $as_echo_n "(cached) " >&6 4966else 4967 ac_cv_prog_cc_c99=no 4968ac_save_CC=$CC 4969cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4970/* end confdefs.h. */ 4971#include <stdarg.h> 4972#include <stdbool.h> 4973#include <stdlib.h> 4974#include <wchar.h> 4975#include <stdio.h> 4976 4977// Check varargs macros. These examples are taken from C99 6.10.3.5. 4978#define debug(...) fprintf (stderr, __VA_ARGS__) 4979#define showlist(...) puts (#__VA_ARGS__) 4980#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4981static void 4982test_varargs_macros (void) 4983{ 4984 int x = 1234; 4985 int y = 5678; 4986 debug ("Flag"); 4987 debug ("X = %d\n", x); 4988 showlist (The first, second, and third items.); 4989 report (x>y, "x is %d but y is %d", x, y); 4990} 4991 4992// Check long long types. 4993#define BIG64 18446744073709551615ull 4994#define BIG32 4294967295ul 4995#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4996#if !BIG_OK 4997 your preprocessor is broken; 4998#endif 4999#if BIG_OK 5000#else 5001 your preprocessor is broken; 5002#endif 5003static long long int bignum = -9223372036854775807LL; 5004static unsigned long long int ubignum = BIG64; 5005 5006struct incomplete_array 5007{ 5008 int datasize; 5009 double data[]; 5010}; 5011 5012struct named_init { 5013 int number; 5014 const wchar_t *name; 5015 double average; 5016}; 5017 5018typedef const char *ccp; 5019 5020static inline int 5021test_restrict (ccp restrict text) 5022{ 5023 // See if C++-style comments work. 5024 // Iterate through items via the restricted pointer. 5025 // Also check for declarations in for loops. 5026 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5027 continue; 5028 return 0; 5029} 5030 5031// Check varargs and va_copy. 5032static void 5033test_varargs (const char *format, ...) 5034{ 5035 va_list args; 5036 va_start (args, format); 5037 va_list args_copy; 5038 va_copy (args_copy, args); 5039 5040 const char *str; 5041 int number; 5042 float fnumber; 5043 5044 while (*format) 5045 { 5046 switch (*format++) 5047 { 5048 case 's': // string 5049 str = va_arg (args_copy, const char *); 5050 break; 5051 case 'd': // int 5052 number = va_arg (args_copy, int); 5053 break; 5054 case 'f': // float 5055 fnumber = va_arg (args_copy, double); 5056 break; 5057 default: 5058 break; 5059 } 5060 } 5061 va_end (args_copy); 5062 va_end (args); 5063} 5064 5065int 5066main () 5067{ 5068 5069 // Check bool. 5070 _Bool success = false; 5071 5072 // Check restrict. 5073 if (test_restrict ("String literal") == 0) 5074 success = true; 5075 char *restrict newvar = "Another string"; 5076 5077 // Check varargs. 5078 test_varargs ("s, d' f .", "string", 65, 34.234); 5079 test_varargs_macros (); 5080 5081 // Check flexible array members. 5082 struct incomplete_array *ia = 5083 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5084 ia->datasize = 10; 5085 for (int i = 0; i < ia->datasize; ++i) 5086 ia->data[i] = i * 1.234; 5087 5088 // Check named initializers. 5089 struct named_init ni = { 5090 .number = 34, 5091 .name = L"Test wide string", 5092 .average = 543.34343, 5093 }; 5094 5095 ni.number = 58; 5096 5097 int dynamic_array[ni.number]; 5098 dynamic_array[ni.number - 1] = 543; 5099 5100 // work around unused variable warnings 5101 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5102 || dynamic_array[ni.number - 1] != 543); 5103 5104 ; 5105 return 0; 5106} 5107_ACEOF 5108for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5109do 5110 CC="$ac_save_CC $ac_arg" 5111 if ac_fn_c_try_compile "$LINENO"; then : 5112 ac_cv_prog_cc_c99=$ac_arg 5113fi 5114rm -f core conftest.err conftest.$ac_objext 5115 test "x$ac_cv_prog_cc_c99" != "xno" && break 5116done 5117rm -f conftest.$ac_ext 5118CC=$ac_save_CC 5119 5120fi 5121# AC_CACHE_VAL 5122case "x$ac_cv_prog_cc_c99" in 5123 x) 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5125$as_echo "none needed" >&6; } ;; 5126 xno) 5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5128$as_echo "unsupported" >&6; } ;; 5129 *) 5130 CC="$CC $ac_cv_prog_cc_c99" 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5132$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5133esac 5134if test "x$ac_cv_prog_cc_c99" != xno; then : 5135 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5136else 5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5138$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5139if ${ac_cv_prog_cc_c89+:} false; then : 5140 $as_echo_n "(cached) " >&6 5141else 5142 ac_cv_prog_cc_c89=no 5143ac_save_CC=$CC 5144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5145/* end confdefs.h. */ 5146#include <stdarg.h> 5147#include <stdio.h> 5148struct stat; 5149/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5150struct buf { int x; }; 5151FILE * (*rcsopen) (struct buf *, struct stat *, int); 5152static char *e (p, i) 5153 char **p; 5154 int i; 5155{ 5156 return p[i]; 5157} 5158static char *f (char * (*g) (char **, int), char **p, ...) 5159{ 5160 char *s; 5161 va_list v; 5162 va_start (v,p); 5163 s = g (p, va_arg (v,int)); 5164 va_end (v); 5165 return s; 5166} 5167 5168/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5169 function prototypes and stuff, but not '\xHH' hex character constants. 5170 These don't provoke an error unfortunately, instead are silently treated 5171 as 'x'. The following induces an error, until -std is added to get 5172 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5173 array size at least. It's necessary to write '\x00'==0 to get something 5174 that's true only with -std. */ 5175int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5176 5177/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5178 inside strings and character constants. */ 5179#define FOO(x) 'x' 5180int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5181 5182int test (int i, double x); 5183struct s1 {int (*f) (int a);}; 5184struct s2 {int (*f) (double a);}; 5185int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5186int argc; 5187char **argv; 5188int 5189main () 5190{ 5191return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5192 ; 5193 return 0; 5194} 5195_ACEOF 5196for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5197 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5198do 5199 CC="$ac_save_CC $ac_arg" 5200 if ac_fn_c_try_compile "$LINENO"; then : 5201 ac_cv_prog_cc_c89=$ac_arg 5202fi 5203rm -f core conftest.err conftest.$ac_objext 5204 test "x$ac_cv_prog_cc_c89" != "xno" && break 5205done 5206rm -f conftest.$ac_ext 5207CC=$ac_save_CC 5208 5209fi 5210# AC_CACHE_VAL 5211case "x$ac_cv_prog_cc_c89" in 5212 x) 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5214$as_echo "none needed" >&6; } ;; 5215 xno) 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5217$as_echo "unsupported" >&6; } ;; 5218 *) 5219 CC="$CC $ac_cv_prog_cc_c89" 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5221$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5222esac 5223if test "x$ac_cv_prog_cc_c89" != xno; then : 5224 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5225else 5226 ac_cv_prog_cc_stdc=no 5227fi 5228 5229fi 5230 ;; 5231esac 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 5233$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 5234 if ${ac_cv_prog_cc_stdc+:} false; then : 5235 $as_echo_n "(cached) " >&6 5236fi 5237 5238 case $ac_cv_prog_cc_stdc in #( 5239 no) : 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5241$as_echo "unsupported" >&6; } ;; #( 5242 '') : 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5244$as_echo "none needed" >&6; } ;; #( 5245 *) : 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 5247$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 5248esac 5249 5250 5251 5252 5253 5254# Ralf Wildenhues: With per-target flags we need CC_C_O 5255# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O 5256 5257if test $ac_cv_c_compiler_gnu = yes; then 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 5259$as_echo_n "checking whether $CC needs -traditional... " >&6; } 5260if ${ac_cv_prog_gcc_traditional+:} false; then : 5261 $as_echo_n "(cached) " >&6 5262else 5263 ac_pattern="Autoconf.*'x'" 5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5265/* end confdefs.h. */ 5266#include <sgtty.h> 5267Autoconf TIOCGETP 5268_ACEOF 5269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5270 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5271 ac_cv_prog_gcc_traditional=yes 5272else 5273 ac_cv_prog_gcc_traditional=no 5274fi 5275rm -f conftest* 5276 5277 5278 if test $ac_cv_prog_gcc_traditional = no; then 5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5280/* end confdefs.h. */ 5281#include <termio.h> 5282Autoconf TCGETA 5283_ACEOF 5284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5285 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5286 ac_cv_prog_gcc_traditional=yes 5287fi 5288rm -f conftest* 5289 5290 fi 5291fi 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 5293$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 5294 if test $ac_cv_prog_gcc_traditional = yes; then 5295 CC="$CC -traditional" 5296 fi 5297fi 5298 5299 5300 5301CFLAGS_NTP= 5302CPPFLAGS_NTP= 5303LDADD_NTP= 5304LDFLAGS_NTP= 5305 5306 5307 5308 5309 5310case "$ac_cv_prog_cc_c89" in 5311 no) 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 5313 version 4.2.5 and higher." >&5 5314$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 5315 version 4.2.5 and higher." >&2;} 5316 ;; 5317esac 5318 5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5 5320$as_echo_n "checking if $CC can handle #warning... " >&6; } 5321if ${ntp_cv_cpp_warning+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323else 5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5325/* end confdefs.h. */ 5326 5327int 5328main () 5329{ 5330#warning foo 5331 ; 5332 return 0; 5333} 5334_ACEOF 5335if ac_fn_c_try_compile "$LINENO"; then : 5336 ntp_cv_cpp_warning=yes 5337else 5338 ntp_cv_cpp_warning=no 5339 5340fi 5341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5342 5343fi 5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5 5345$as_echo "$ntp_cv_cpp_warning" >&6; } 5346case "$ntp_cv_cpp_warning" in 5347 no) 5348 5349$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h 5350 5351esac 5352 5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5 5354$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; } 5355if ${ntp_cv_cc_attribute+:} false; then : 5356 $as_echo_n "(cached) " >&6 5357else 5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5359/* end confdefs.h. */ 5360 5361int 5362main () 5363{ 5364void foo(void) __attribute__((__noreturn__)); 5365 5366 ; 5367 return 0; 5368} 5369_ACEOF 5370if ac_fn_c_try_compile "$LINENO"; then : 5371 ntp_cv_cc_attribute=yes 5372else 5373 ntp_cv_cc_attribute=no 5374 5375fi 5376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5377 5378fi 5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5 5380$as_echo "$ntp_cv_cc_attribute" >&6; } 5381case "$ntp_cv_cc_attribute" in 5382 yes) 5383 5384$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h 5385 5386esac 5387 5388 5389case "$GCC" in 5390 yes) 5391 SAVED_CFLAGS="$CFLAGS" 5392 CFLAGS="$CFLAGS -Wstrict-overflow" 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5 5394$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; } 5395if ${ntp_cv_gcc_Wstrict_overflow+:} false; then : 5396 $as_echo_n "(cached) " >&6 5397else 5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5399/* end confdefs.h. */ 5400 5401int 5402main () 5403{ 5404 5405 ; 5406 return 0; 5407} 5408_ACEOF 5409if ac_fn_c_try_compile "$LINENO"; then : 5410 ntp_cv_gcc_Wstrict_overflow=yes 5411else 5412 ntp_cv_gcc_Wstrict_overflow=no 5413 5414fi 5415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5416 5417fi 5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5 5419$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; } 5420 # 5421 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the 5422 # flag to CFLAGS. 5423 # 5424 CFLAGS="$SAVED_CFLAGS -Winit-self" 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5 5426$as_echo_n "checking if $CC can handle -Winit-self... " >&6; } 5427if ${ntp_cv_gcc_Winit_self+:} false; then : 5428 $as_echo_n "(cached) " >&6 5429else 5430 5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5432/* end confdefs.h. */ 5433 5434int 5435main () 5436{ 5437 5438 ; 5439 return 0; 5440} 5441_ACEOF 5442if ac_fn_c_try_compile "$LINENO"; then : 5443 ntp_cv_gcc_Winit_self=yes 5444else 5445 ntp_cv_gcc_Winit_self=no 5446 5447fi 5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5449 5450 5451fi 5452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5 5453$as_echo "$ntp_cv_gcc_Winit_self" >&6; } 5454 CFLAGS="$SAVED_CFLAGS" 5455 { SAVED_CFLAGS=; unset SAVED_CFLAGS;} 5456 # 5457 # $ntp_cv_gcc_Winit_self is tested later to add the 5458 # flag to CFLAGS_NTP. 5459 # 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 5461$as_echo_n "checking if linker supports omitting unused code and data... " >&6; } 5462if ${ntp_cv_gc_sections_runs+:} false; then : 5463 $as_echo_n "(cached) " >&6 5464else 5465 5466 origCFLAGS="$CFLAGS" 5467 CFLAGS="$CFLAGS -Wl,--gc-sections" 5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5469/* end confdefs.h. */ 5470 5471 #include <stdlib.h> 5472 #include <stdio.h> 5473 5474int 5475main () 5476{ 5477 5478 FILE * fpC; 5479 char buf[32]; 5480 size_t cch; 5481 int read_success_once; 5482 5483 fpC = fopen("conftest.c", "r"); 5484 if (NULL == fpC) 5485 exit(1); 5486 do { 5487 cch = fread(buf, sizeof(buf), 1, fpC); 5488 read_success_once |= (0 != cch); 5489 } while (0 != cch); 5490 if (!read_success_once) 5491 exit(2); 5492 if (!feof(fpC)) 5493 exit(3); 5494 if (0 != fclose(fpC)) 5495 exit(4); 5496 5497 exit(EXIT_SUCCESS); 5498 5499 5500 ; 5501 return 0; 5502} 5503_ACEOF 5504if ac_fn_c_try_link "$LINENO"; then : 5505 5506 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 5507 ntp_cv_gc_sections_runs=no 5508 else 5509 ntp_cv_gc_sections_runs=no 5510 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes 5511 fi 5512 5513else 5514 ntp_cv_gc_sections_runs=no 5515 5516fi 5517rm -f core conftest.err conftest.$ac_objext \ 5518 conftest$ac_exeext conftest.$ac_ext 5519 CFLAGS="$origCFLAGS" 5520 { origCFLAGS=; unset origCFLAGS;} 5521 5522 5523fi 5524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5 5525$as_echo "$ntp_cv_gc_sections_runs" >&6; } 5526 case "$ntp_cv_gc_sections_runs" in 5527 yes) 5528 LDADD_LIBNTP="-Wl,--gc-sections" 5529 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections" 5530 ;; 5531 no) 5532 LDADD_LIBNTP= 5533 ;; 5534 esac 5535 CFLAGS_NTP="$CFLAGS_NTP -Wall" 5536 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align" 5537 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual" 5538 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion" 5539 # CFLAGS_NTP="$CFLAGS_NTP -Werror" 5540 # CFLAGS_NTP="$CFLAGS_NTP -Wextra" 5541 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal" 5542 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes" 5543 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith" 5544 CFLAGS_NTP="$CFLAGS_NTP -Wshadow" 5545 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional" 5546 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings" 5547 case "$ntp_cv_gcc_Winit_self" in 5548 yes) 5549 CFLAGS_NTP="$CFLAGS_NTP -Winit-self" 5550 esac 5551 case "$ntp_cv_gcc_Wstrict_overflow" in 5552 yes) 5553 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow" 5554 esac 5555 # -W[no-]strict-prototypes might be added by NTP_OPENSSL 5556esac 5557 5558 5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5 5560$as_echo_n "checking additional compiler flags... " >&6; } 5561 # allow ntp_os_cflags to be preset to skip this stuff 5562 case "${ntp_os_cflags+set}" in 5563 set) 5564 ;; 5565 *) 5566 ntp_os_cflags= 5567 case "$host_os" in 5568 aix[1-3]*) 5569 ;; 5570 aix4.[0-2]*) 5571 # turn on additional headers 5572 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE" 5573 ;; 5574 aix5.3*) 5575 # avoid circular dependencies in yp headers, and more 5576 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE" 5577 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT" 5578 ;; 5579 aix*) 5580 # XXX Only verified thru AIX6. 5581 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing. 5582 # avoid circular dependencies in yp headers 5583 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995 5584 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004 5585 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008 5586 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600" 5587 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS" 5588 ;; 5589 amigaos) 5590 ntp_os_cflags="-DSYS_AMIGA" 5591 ;; 5592 darwin*|macosx*|rhapsody*) 5593 ntp_os_cflags="-D_P1003_1B_VISIBLE" 5594 ;; 5595 hpux10.*) # at least for hppa2.0-hp-hpux10.20 5596 case "$GCC" in 5597 yes) 5598 ;; 5599 *) 5600 # use Ansi compiler on HPUX, and some -Wp magic 5601 ntp_os_cflags="-Ae -Wp,-H18816" 5602 ;; 5603 esac 5604 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L" 5605 ;; 5606 hpux*) 5607 case "$GCC" in 5608 yes) 5609 ;; 5610 *) 5611 # use Ansi compiler on HPUX 5612 ntp_os_cflags="-Ae" 5613 esac 5614 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L" 5615 ;; 5616 irix6*) 5617 case "$CC" in 5618 cc) 5619 # do not use 64-bit compiler 5620 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84" 5621 esac 5622 ;; 5623 nextstep3) 5624 ntp_os_cflags="-posix" 5625 ;; 5626 solaris1*|solaris2.[0-5]|solaris2.5.*) 5627 ;; 5628 sunos[34]*|sunos5.[0-5]|sunos5.5.*) 5629 ;; 5630 solaris2*|sunos5*) 5631 # turn on 64-bit file offset interface 5632 ntp_os_cflags="-D_LARGEFILE64_SOURCE" 5633 ;; 5634 vxworks*) 5635 case "$build" in 5636 $host) 5637 ;; 5638 *) 5639 # Quick and dirty sanity check 5640 case "$VX_KERNEL" in 5641 '') 5642 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5 5643 esac 5644 ntp_os_cflags="-DSYS_VXWORKS" 5645 esac 5646 ;; 5647 esac 5648 esac 5649 case "$ntp_os_cflags" in 5650 '') 5651 ntp_os_cflags_msg="none needed" 5652 ;; 5653 *) 5654 ntp_os_cflags_msg="$ntp_os_cflags" 5655 esac 5656 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags" 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5 5658$as_echo "$ntp_os_cflags_msg" >&6; } 5659 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;} 5660 ### 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5 5662$as_echo_n "checking additional linker flags... " >&6; } 5663 # HMS: The following might still need tweaking 5664 # allow ntp_os_ldflags to be preset to skip this stuff 5665 case "${ntp_os_ldflags+set}" in 5666 set) 5667 ;; 5668 *) 5669 ntp_os_ldflags= 5670 case "$host_os" in 5671 hpux*) 5672 case "$GCC" in 5673 yes) 5674 ntp_os_ldflags="-Wl,+allowdups" 5675 ;; 5676 esac 5677 ;; 5678 esac 5679 ;; 5680 esac 5681 case "$ntp_os_ldflags" in 5682 '') 5683 ntp_os_ldflags_msg="none needed" 5684 ;; 5685 *) 5686 ntp_os_ldflags_msg="$ntp_os_ldflags" 5687 esac 5688 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags" 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5 5690$as_echo "$ntp_os_ldflags_msg" >&6; } 5691 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;} 5692 5693 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5695$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 5696if ${ac_cv_c_bigendian+:} false; then : 5697 $as_echo_n "(cached) " >&6 5698else 5699 ac_cv_c_bigendian=unknown 5700 # See if we're dealing with a universal compiler. 5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5702/* end confdefs.h. */ 5703#ifndef __APPLE_CC__ 5704 not a universal capable compiler 5705 #endif 5706 typedef int dummy; 5707 5708_ACEOF 5709if ac_fn_c_try_compile "$LINENO"; then : 5710 5711 # Check for potential -arch flags. It is not universal unless 5712 # there are at least two -arch flags with different values. 5713 ac_arch= 5714 ac_prev= 5715 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5716 if test -n "$ac_prev"; then 5717 case $ac_word in 5718 i?86 | x86_64 | ppc | ppc64) 5719 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5720 ac_arch=$ac_word 5721 else 5722 ac_cv_c_bigendian=universal 5723 break 5724 fi 5725 ;; 5726 esac 5727 ac_prev= 5728 elif test "x$ac_word" = "x-arch"; then 5729 ac_prev=arch 5730 fi 5731 done 5732fi 5733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5734 if test $ac_cv_c_bigendian = unknown; then 5735 # See if sys/param.h defines the BYTE_ORDER macro. 5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5737/* end confdefs.h. */ 5738#include <sys/types.h> 5739 #include <sys/param.h> 5740 5741int 5742main () 5743{ 5744#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5745 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5746 && LITTLE_ENDIAN) 5747 bogus endian macros 5748 #endif 5749 5750 ; 5751 return 0; 5752} 5753_ACEOF 5754if ac_fn_c_try_compile "$LINENO"; then : 5755 # It does; now see whether it defined to BIG_ENDIAN or not. 5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5757/* end confdefs.h. */ 5758#include <sys/types.h> 5759 #include <sys/param.h> 5760 5761int 5762main () 5763{ 5764#if BYTE_ORDER != BIG_ENDIAN 5765 not big endian 5766 #endif 5767 5768 ; 5769 return 0; 5770} 5771_ACEOF 5772if ac_fn_c_try_compile "$LINENO"; then : 5773 ac_cv_c_bigendian=yes 5774else 5775 ac_cv_c_bigendian=no 5776fi 5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5778fi 5779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5780 fi 5781 if test $ac_cv_c_bigendian = unknown; then 5782 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5784/* end confdefs.h. */ 5785#include <limits.h> 5786 5787int 5788main () 5789{ 5790#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5791 bogus endian macros 5792 #endif 5793 5794 ; 5795 return 0; 5796} 5797_ACEOF 5798if ac_fn_c_try_compile "$LINENO"; then : 5799 # It does; now see whether it defined to _BIG_ENDIAN or not. 5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5801/* end confdefs.h. */ 5802#include <limits.h> 5803 5804int 5805main () 5806{ 5807#ifndef _BIG_ENDIAN 5808 not big endian 5809 #endif 5810 5811 ; 5812 return 0; 5813} 5814_ACEOF 5815if ac_fn_c_try_compile "$LINENO"; then : 5816 ac_cv_c_bigendian=yes 5817else 5818 ac_cv_c_bigendian=no 5819fi 5820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5821fi 5822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5823 fi 5824 if test $ac_cv_c_bigendian = unknown; then 5825 # Compile a test program. 5826 if test "$cross_compiling" = yes; then : 5827 # Try to guess by grepping values from an object file. 5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5829/* end confdefs.h. */ 5830short int ascii_mm[] = 5831 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5832 short int ascii_ii[] = 5833 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5834 int use_ascii (int i) { 5835 return ascii_mm[i] + ascii_ii[i]; 5836 } 5837 short int ebcdic_ii[] = 5838 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5839 short int ebcdic_mm[] = 5840 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5841 int use_ebcdic (int i) { 5842 return ebcdic_mm[i] + ebcdic_ii[i]; 5843 } 5844 extern int foo; 5845 5846int 5847main () 5848{ 5849return use_ascii (foo) == use_ebcdic (foo); 5850 ; 5851 return 0; 5852} 5853_ACEOF 5854if ac_fn_c_try_compile "$LINENO"; then : 5855 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 5856 ac_cv_c_bigendian=yes 5857 fi 5858 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5859 if test "$ac_cv_c_bigendian" = unknown; then 5860 ac_cv_c_bigendian=no 5861 else 5862 # finding both strings is unlikely to happen, but who knows? 5863 ac_cv_c_bigendian=unknown 5864 fi 5865 fi 5866fi 5867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5868else 5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5870/* end confdefs.h. */ 5871$ac_includes_default 5872int 5873main () 5874{ 5875 5876 /* Are we little or big endian? From Harbison&Steele. */ 5877 union 5878 { 5879 long int l; 5880 char c[sizeof (long int)]; 5881 } u; 5882 u.l = 1; 5883 return u.c[sizeof (long int) - 1] == 1; 5884 5885 ; 5886 return 0; 5887} 5888_ACEOF 5889if ac_fn_c_try_run "$LINENO"; then : 5890 ac_cv_c_bigendian=no 5891else 5892 ac_cv_c_bigendian=yes 5893fi 5894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5895 conftest.$ac_objext conftest.beam conftest.$ac_ext 5896fi 5897 5898 fi 5899fi 5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5901$as_echo "$ac_cv_c_bigendian" >&6; } 5902 case $ac_cv_c_bigendian in #( 5903 yes) 5904 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 5905;; #( 5906 no) 5907 ;; #( 5908 universal) 5909 5910$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5911 5912 ;; #( 5913 *) 5914 as_fn_error $? "unknown endianness 5915 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5916 esac 5917 5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 5919$as_echo_n "checking for working volatile... " >&6; } 5920if ${ac_cv_c_volatile+:} false; then : 5921 $as_echo_n "(cached) " >&6 5922else 5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5924/* end confdefs.h. */ 5925 5926int 5927main () 5928{ 5929 5930volatile int x; 5931int * volatile y = (int *) 0; 5932return !x && !y; 5933 ; 5934 return 0; 5935} 5936_ACEOF 5937if ac_fn_c_try_compile "$LINENO"; then : 5938 ac_cv_c_volatile=yes 5939else 5940 ac_cv_c_volatile=no 5941fi 5942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5943fi 5944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 5945$as_echo "$ac_cv_c_volatile" >&6; } 5946if test $ac_cv_c_volatile = no; then 5947 5948$as_echo "#define volatile /**/" >>confdefs.h 5949 5950fi 5951 5952ac_ext=c 5953ac_cpp='$CPP $CPPFLAGS' 5954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5956ac_compiler_gnu=$ac_cv_c_compiler_gnu 5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5958$as_echo_n "checking how to run the C preprocessor... " >&6; } 5959# On Suns, sometimes $CPP names a directory. 5960if test -n "$CPP" && test -d "$CPP"; then 5961 CPP= 5962fi 5963if test -z "$CPP"; then 5964 if ${ac_cv_prog_CPP+:} false; then : 5965 $as_echo_n "(cached) " >&6 5966else 5967 # Double quotes because CPP needs to be expanded 5968 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5969 do 5970 ac_preproc_ok=false 5971for ac_c_preproc_warn_flag in '' yes 5972do 5973 # Use a header file that comes with gcc, so configuring glibc 5974 # with a fresh cross-compiler works. 5975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5976 # <limits.h> exists even on freestanding compilers. 5977 # On the NeXT, cc -E runs the code through the compiler's parser, 5978 # not just through cpp. "Syntax error" is here to catch this case. 5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5980/* end confdefs.h. */ 5981#ifdef __STDC__ 5982# include <limits.h> 5983#else 5984# include <assert.h> 5985#endif 5986 Syntax error 5987_ACEOF 5988if ac_fn_c_try_cpp "$LINENO"; then : 5989 5990else 5991 # Broken: fails on valid input. 5992continue 5993fi 5994rm -f conftest.err conftest.i conftest.$ac_ext 5995 5996 # OK, works on sane cases. Now check whether nonexistent headers 5997 # can be detected and how. 5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5999/* end confdefs.h. */ 6000#include <ac_nonexistent.h> 6001_ACEOF 6002if ac_fn_c_try_cpp "$LINENO"; then : 6003 # Broken: success on invalid input. 6004continue 6005else 6006 # Passes both tests. 6007ac_preproc_ok=: 6008break 6009fi 6010rm -f conftest.err conftest.i conftest.$ac_ext 6011 6012done 6013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6014rm -f conftest.i conftest.err conftest.$ac_ext 6015if $ac_preproc_ok; then : 6016 break 6017fi 6018 6019 done 6020 ac_cv_prog_CPP=$CPP 6021 6022fi 6023 CPP=$ac_cv_prog_CPP 6024else 6025 ac_cv_prog_CPP=$CPP 6026fi 6027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6028$as_echo "$CPP" >&6; } 6029ac_preproc_ok=false 6030for ac_c_preproc_warn_flag in '' yes 6031do 6032 # Use a header file that comes with gcc, so configuring glibc 6033 # with a fresh cross-compiler works. 6034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6035 # <limits.h> exists even on freestanding compilers. 6036 # On the NeXT, cc -E runs the code through the compiler's parser, 6037 # not just through cpp. "Syntax error" is here to catch this case. 6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6039/* end confdefs.h. */ 6040#ifdef __STDC__ 6041# include <limits.h> 6042#else 6043# include <assert.h> 6044#endif 6045 Syntax error 6046_ACEOF 6047if ac_fn_c_try_cpp "$LINENO"; then : 6048 6049else 6050 # Broken: fails on valid input. 6051continue 6052fi 6053rm -f conftest.err conftest.i conftest.$ac_ext 6054 6055 # OK, works on sane cases. Now check whether nonexistent headers 6056 # can be detected and how. 6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6058/* end confdefs.h. */ 6059#include <ac_nonexistent.h> 6060_ACEOF 6061if ac_fn_c_try_cpp "$LINENO"; then : 6062 # Broken: success on invalid input. 6063continue 6064else 6065 # Passes both tests. 6066ac_preproc_ok=: 6067break 6068fi 6069rm -f conftest.err conftest.i conftest.$ac_ext 6070 6071done 6072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6073rm -f conftest.i conftest.err conftest.$ac_ext 6074if $ac_preproc_ok; then : 6075 6076else 6077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6079as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6080See \`config.log' for more details" "$LINENO" 5; } 6081fi 6082 6083ac_ext=c 6084ac_cpp='$CPP $CPPFLAGS' 6085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6087ac_compiler_gnu=$ac_cv_c_compiler_gnu 6088 6089 6090 6091 6092 6093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5 6094$as_echo_n "checking for compile/link hardening flags... " >&6; } 6095 6096 6097# Check whether --with-hardenfile was given. 6098if test "${with_hardenfile+set}" = set; then : 6099 withval=$with_hardenfile; 6100else 6101 with_hardenfile=no 6102 6103fi 6104 6105 6106( \ 6107 SENTINEL_DIR="$PWD" && \ 6108 cd $srcdir/ && \ 6109 case "$with_hardenfile" in \ 6110 yes|no|'') \ 6111 scripts/genHardFlags -d "$SENTINEL_DIR" \ 6112 ;; \ 6113 *) \ 6114 scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile" \ 6115 ;; \ 6116 esac \ 6117) > genHardFlags.i 2> genHardFlags.err 6118. ./genHardFlags.i 6119 6120case "$GENHARDFLAG" in 6121 OK) 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5 6123$as_echo "in file $GENHARDFLAGFILE" >&6; } 6124 rm genHardFlags.err genHardFlags.i 6125 ;; 6126 *) 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5 6128$as_echo "failed." >&6; } 6129 as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5 6130 ;; 6131esac 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5 6142$as_echo_n "checking for install dir and man conventions... " >&6; } 6143 6144 6145# Check whether --with-locfile was given. 6146if test "${with_locfile+set}" = set; then : 6147 withval=$with_locfile; 6148else 6149 with_locfile=no 6150 6151fi 6152 6153 6154( \ 6155 SENTINEL_DIR="$PWD" && \ 6156 cd $srcdir/ && \ 6157 case "$with_locfile" in \ 6158 yes|no|'') \ 6159 scripts/genLocInfo -d "$SENTINEL_DIR" \ 6160 ;; \ 6161 *) \ 6162 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \ 6163 ;; \ 6164 esac \ 6165) > genLocInfo.i 2> genLocInfo.err 6166. ./genLocInfo.i 6167 6168case "$GENLOCINFO" in 6169 OK) 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5 6171$as_echo "in file $GENLOCINFOFILE" >&6; } 6172 rm genLocInfo.err genLocInfo.i 6173 ;; 6174 *) 6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5 6176$as_echo "failed." >&6; } 6177 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5 6178 ;; 6179esac 6180 6181 if test "$CALC_TICKADJ_MS" ; then 6182 WANT_CALC_TICKADJ_MS_TRUE= 6183 WANT_CALC_TICKADJ_MS_FALSE='#' 6184else 6185 WANT_CALC_TICKADJ_MS_TRUE='#' 6186 WANT_CALC_TICKADJ_MS_FALSE= 6187fi 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 if test -z "$NTPSWEEP_NI" ; then 6232 INSTALL_NTPSWEEP_TRUE= 6233 INSTALL_NTPSWEEP_FALSE='#' 6234else 6235 INSTALL_NTPSWEEP_TRUE='#' 6236 INSTALL_NTPSWEEP_FALSE= 6237fi 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 if test -z "$UPDATE_LEAP_NI" ; then 6280 INSTALL_UPDATE_LEAP_TRUE= 6281 INSTALL_UPDATE_LEAP_FALSE='#' 6282else 6283 INSTALL_UPDATE_LEAP_TRUE='#' 6284 INSTALL_UPDATE_LEAP_FALSE= 6285fi 6286 6287 6288 6289 6290if test -n "$ac_tool_prefix"; then 6291 for ac_prog in ar lib "link -lib" 6292 do 6293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6294set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6296$as_echo_n "checking for $ac_word... " >&6; } 6297if ${ac_cv_prog_AR+:} false; then : 6298 $as_echo_n "(cached) " >&6 6299else 6300 if test -n "$AR"; then 6301 ac_cv_prog_AR="$AR" # Let the user override the test. 6302else 6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6304for as_dir in $PATH 6305do 6306 IFS=$as_save_IFS 6307 test -z "$as_dir" && as_dir=. 6308 for ac_exec_ext in '' $ac_executable_extensions; do 6309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6310 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6312 break 2 6313 fi 6314done 6315 done 6316IFS=$as_save_IFS 6317 6318fi 6319fi 6320AR=$ac_cv_prog_AR 6321if test -n "$AR"; then 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6323$as_echo "$AR" >&6; } 6324else 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6326$as_echo "no" >&6; } 6327fi 6328 6329 6330 test -n "$AR" && break 6331 done 6332fi 6333if test -z "$AR"; then 6334 ac_ct_AR=$AR 6335 for ac_prog in ar lib "link -lib" 6336do 6337 # Extract the first word of "$ac_prog", so it can be a program name with args. 6338set dummy $ac_prog; ac_word=$2 6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6340$as_echo_n "checking for $ac_word... " >&6; } 6341if ${ac_cv_prog_ac_ct_AR+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343else 6344 if test -n "$ac_ct_AR"; then 6345 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6346else 6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6348for as_dir in $PATH 6349do 6350 IFS=$as_save_IFS 6351 test -z "$as_dir" && as_dir=. 6352 for ac_exec_ext in '' $ac_executable_extensions; do 6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6354 ac_cv_prog_ac_ct_AR="$ac_prog" 6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6356 break 2 6357 fi 6358done 6359 done 6360IFS=$as_save_IFS 6361 6362fi 6363fi 6364ac_ct_AR=$ac_cv_prog_ac_ct_AR 6365if test -n "$ac_ct_AR"; then 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6367$as_echo "$ac_ct_AR" >&6; } 6368else 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6370$as_echo "no" >&6; } 6371fi 6372 6373 6374 test -n "$ac_ct_AR" && break 6375done 6376 6377 if test "x$ac_ct_AR" = x; then 6378 AR="false" 6379 else 6380 case $cross_compiling:$ac_tool_warned in 6381yes:) 6382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6384ac_tool_warned=yes ;; 6385esac 6386 AR=$ac_ct_AR 6387 fi 6388fi 6389 6390: ${AR=ar} 6391 6392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 6393$as_echo_n "checking the archiver ($AR) interface... " >&6; } 6394if ${am_cv_ar_interface+:} false; then : 6395 $as_echo_n "(cached) " >&6 6396else 6397 ac_ext=c 6398ac_cpp='$CPP $CPPFLAGS' 6399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6401ac_compiler_gnu=$ac_cv_c_compiler_gnu 6402 6403 am_cv_ar_interface=ar 6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6405/* end confdefs.h. */ 6406int some_variable = 0; 6407_ACEOF 6408if ac_fn_c_try_compile "$LINENO"; then : 6409 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 6410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6411 (eval $am_ar_try) 2>&5 6412 ac_status=$? 6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6414 test $ac_status = 0; } 6415 if test "$ac_status" -eq 0; then 6416 am_cv_ar_interface=ar 6417 else 6418 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 6419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6420 (eval $am_ar_try) 2>&5 6421 ac_status=$? 6422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6423 test $ac_status = 0; } 6424 if test "$ac_status" -eq 0; then 6425 am_cv_ar_interface=lib 6426 else 6427 am_cv_ar_interface=unknown 6428 fi 6429 fi 6430 rm -f conftest.lib libconftest.a 6431 6432fi 6433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6434 ac_ext=c 6435ac_cpp='$CPP $CPPFLAGS' 6436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6438ac_compiler_gnu=$ac_cv_c_compiler_gnu 6439 6440fi 6441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 6442$as_echo "$am_cv_ar_interface" >&6; } 6443 6444case $am_cv_ar_interface in 6445ar) 6446 ;; 6447lib) 6448 # Microsoft lib, so override with the ar-lib wrapper script. 6449 # FIXME: It is wrong to rewrite AR. 6450 # But if we don't then we get into trouble of one sort or another. 6451 # A longer-term fix would be to have automake use am__AR in this case, 6452 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 6453 # similar. 6454 AR="$am_aux_dir/ar-lib $AR" 6455 ;; 6456unknown) 6457 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 6458 ;; 6459esac 6460 6461 6462 6463 6464 6465# Expose a cross-compilation indicator to makefiles 6466 if test $build != $host; then 6467 NTP_CROSSCOMPILE_TRUE= 6468 NTP_CROSSCOMPILE_FALSE='#' 6469else 6470 NTP_CROSSCOMPILE_TRUE='#' 6471 NTP_CROSSCOMPILE_FALSE= 6472fi 6473 6474 6475 6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6477$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6478if ${ac_cv_path_SED+:} false; then : 6479 $as_echo_n "(cached) " >&6 6480else 6481 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6482 for ac_i in 1 2 3 4 5 6 7; do 6483 ac_script="$ac_script$as_nl$ac_script" 6484 done 6485 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6486 { ac_script=; unset ac_script;} 6487 if test -z "$SED"; then 6488 ac_path_SED_found=false 6489 # Loop through the user's path and test for each of PROGNAME-LIST 6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6491for as_dir in $PATH 6492do 6493 IFS=$as_save_IFS 6494 test -z "$as_dir" && as_dir=. 6495 for ac_prog in sed gsed; do 6496 for ac_exec_ext in '' $ac_executable_extensions; do 6497 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6498 as_fn_executable_p "$ac_path_SED" || continue 6499# Check for GNU ac_path_SED and select it if it is found. 6500 # Check for GNU $ac_path_SED 6501case `"$ac_path_SED" --version 2>&1` in 6502*GNU*) 6503 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6504*) 6505 ac_count=0 6506 $as_echo_n 0123456789 >"conftest.in" 6507 while : 6508 do 6509 cat "conftest.in" "conftest.in" >"conftest.tmp" 6510 mv "conftest.tmp" "conftest.in" 6511 cp "conftest.in" "conftest.nl" 6512 $as_echo '' >> "conftest.nl" 6513 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6515 as_fn_arith $ac_count + 1 && ac_count=$as_val 6516 if test $ac_count -gt ${ac_path_SED_max-0}; then 6517 # Best one so far, save it but keep looking for a better one 6518 ac_cv_path_SED="$ac_path_SED" 6519 ac_path_SED_max=$ac_count 6520 fi 6521 # 10*(2^10) chars as input seems more than enough 6522 test $ac_count -gt 10 && break 6523 done 6524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6525esac 6526 6527 $ac_path_SED_found && break 3 6528 done 6529 done 6530 done 6531IFS=$as_save_IFS 6532 if test -z "$ac_cv_path_SED"; then 6533 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6534 fi 6535else 6536 ac_cv_path_SED=$SED 6537fi 6538 6539fi 6540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6541$as_echo "$ac_cv_path_SED" >&6; } 6542 SED="$ac_cv_path_SED" 6543 rm -f conftest.sed 6544 6545test -z "$SED" && SED=sed 6546Xsed="$SED -e 1s/^X//" 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6559$as_echo_n "checking for fgrep... " >&6; } 6560if ${ac_cv_path_FGREP+:} false; then : 6561 $as_echo_n "(cached) " >&6 6562else 6563 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6564 then ac_cv_path_FGREP="$GREP -F" 6565 else 6566 if test -z "$FGREP"; then 6567 ac_path_FGREP_found=false 6568 # Loop through the user's path and test for each of PROGNAME-LIST 6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6570for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6571do 6572 IFS=$as_save_IFS 6573 test -z "$as_dir" && as_dir=. 6574 for ac_prog in fgrep; do 6575 for ac_exec_ext in '' $ac_executable_extensions; do 6576 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6577 as_fn_executable_p "$ac_path_FGREP" || continue 6578# Check for GNU ac_path_FGREP and select it if it is found. 6579 # Check for GNU $ac_path_FGREP 6580case `"$ac_path_FGREP" --version 2>&1` in 6581*GNU*) 6582 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6583*) 6584 ac_count=0 6585 $as_echo_n 0123456789 >"conftest.in" 6586 while : 6587 do 6588 cat "conftest.in" "conftest.in" >"conftest.tmp" 6589 mv "conftest.tmp" "conftest.in" 6590 cp "conftest.in" "conftest.nl" 6591 $as_echo 'FGREP' >> "conftest.nl" 6592 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6594 as_fn_arith $ac_count + 1 && ac_count=$as_val 6595 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6596 # Best one so far, save it but keep looking for a better one 6597 ac_cv_path_FGREP="$ac_path_FGREP" 6598 ac_path_FGREP_max=$ac_count 6599 fi 6600 # 10*(2^10) chars as input seems more than enough 6601 test $ac_count -gt 10 && break 6602 done 6603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6604esac 6605 6606 $ac_path_FGREP_found && break 3 6607 done 6608 done 6609 done 6610IFS=$as_save_IFS 6611 if test -z "$ac_cv_path_FGREP"; then 6612 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6613 fi 6614else 6615 ac_cv_path_FGREP=$FGREP 6616fi 6617 6618 fi 6619fi 6620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6621$as_echo "$ac_cv_path_FGREP" >&6; } 6622 FGREP="$ac_cv_path_FGREP" 6623 6624 6625test -z "$GREP" && GREP=grep 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6644ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6645ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6646 6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6648$as_echo_n "checking how to print strings... " >&6; } 6649# Test print first, because it will be a builtin if present. 6650if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6651 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6652 ECHO='print -r --' 6653elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6654 ECHO='printf %s\n' 6655else 6656 # Use this function as a fallback that always works. 6657 func_fallback_echo () 6658 { 6659 eval 'cat <<_LTECHO_EOF 6660$1 6661_LTECHO_EOF' 6662 } 6663 ECHO='func_fallback_echo' 6664fi 6665 6666# func_echo_all arg... 6667# Invoke $ECHO with all args, space-separated. 6668func_echo_all () 6669{ 6670 $ECHO "" 6671} 6672 6673case $ECHO in 6674 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6675$as_echo "printf" >&6; } ;; 6676 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6677$as_echo "print -r" >&6; } ;; 6678 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6679$as_echo "cat" >&6; } ;; 6680esac 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 6696if test "x$ac_cv_type_pid_t" = xyes; then : 6697 6698else 6699 6700cat >>confdefs.h <<_ACEOF 6701#define pid_t int 6702_ACEOF 6703 6704fi 6705 6706ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 6707if test "x$ac_cv_type_size_t" = xyes; then : 6708 6709else 6710 6711cat >>confdefs.h <<_ACEOF 6712#define size_t unsigned int 6713_ACEOF 6714 6715fi 6716 6717 6718 # Check whether --enable-c99-snprintf was given. 6719if test "${enable_c99_snprintf+set}" = set; then : 6720 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval 6721else 6722 force_c99_snprintf=no 6723 6724fi 6725 6726 case "$force_c99_snprintf" in 6727 yes) 6728 hw_force_rpl_snprintf=yes 6729 hw_force_rpl_vsnprintf=yes 6730 esac 6731 6732 6733 6734 6735 6736 6737 for ac_header in $ac_header_list 6738do : 6739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6740ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6741" 6742if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6743 cat >>confdefs.h <<_ACEOF 6744#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6745_ACEOF 6746 6747fi 6748 6749done 6750 6751 6752 6753 6754 6755 6756 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 6758$as_echo_n "checking for unsigned long long int... " >&6; } 6759if ${ac_cv_type_unsigned_long_long_int+:} false; then : 6760 $as_echo_n "(cached) " >&6 6761else 6762 ac_cv_type_unsigned_long_long_int=yes 6763 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6765/* end confdefs.h. */ 6766 6767 /* For now, do not test the preprocessor; as of 2007 there are too many 6768 implementations with broken preprocessors. Perhaps this can 6769 be revisited in 2012. In the meantime, code should not expect 6770 #if to work with literals wider than 32 bits. */ 6771 /* Test literals. */ 6772 long long int ll = 9223372036854775807ll; 6773 long long int nll = -9223372036854775807LL; 6774 unsigned long long int ull = 18446744073709551615ULL; 6775 /* Test constant expressions. */ 6776 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 6777 ? 1 : -1)]; 6778 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 6779 ? 1 : -1)]; 6780 int i = 63; 6781int 6782main () 6783{ 6784/* Test availability of runtime routines for shift and division. */ 6785 long long int llmax = 9223372036854775807ll; 6786 unsigned long long int ullmax = 18446744073709551615ull; 6787 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 6788 | (llmax / ll) | (llmax % ll) 6789 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 6790 | (ullmax / ull) | (ullmax % ull)); 6791 ; 6792 return 0; 6793} 6794 6795_ACEOF 6796if ac_fn_c_try_link "$LINENO"; then : 6797 6798else 6799 ac_cv_type_unsigned_long_long_int=no 6800fi 6801rm -f core conftest.err conftest.$ac_objext \ 6802 conftest$ac_exeext conftest.$ac_ext 6803 fi 6804fi 6805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 6806$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 6807 if test $ac_cv_type_unsigned_long_long_int = yes; then 6808 6809$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 6810 6811 fi 6812 6813 6814 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 6815if test "x$ac_cv_func_vsnprintf" = xyes; then : 6816 hw_cv_func_vsnprintf=yes 6817else 6818 hw_cv_func_vsnprintf=no 6819fi 6820 6821 if test "$hw_cv_func_vsnprintf" = yes; then : 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5 6823$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; } 6824if ${hw_cv_func_vsnprintf_c99+:} false; then : 6825 $as_echo_n "(cached) " >&6 6826else 6827 if test "$cross_compiling" = yes; then : 6828 hw_cv_func_vsnprintf_c99=no 6829else 6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6831/* end confdefs.h. */ 6832#if HAVE_STDARG_H 6833 #include <stdarg.h> 6834 #endif 6835 #include <stdio.h> 6836 static int testprintf(char *buf, size_t size, const char *format, ...) 6837 { 6838 int result; 6839 va_list ap; 6840 va_start(ap, format); 6841 result = vsnprintf(buf, size, format, ap); 6842 va_end(ap); 6843 return result; 6844 } 6845int 6846main () 6847{ 6848char buf[43]; 6849 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 6850 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 6851 buf[0] != 'T' || buf[3] != '\0') 6852 return 1; 6853 ; 6854 return 0; 6855} 6856_ACEOF 6857if ac_fn_c_try_run "$LINENO"; then : 6858 hw_cv_func_vsnprintf_c99=yes 6859else 6860 hw_cv_func_vsnprintf_c99=no 6861fi 6862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6863 conftest.$ac_objext conftest.beam conftest.$ac_ext 6864fi 6865 6866fi 6867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5 6868$as_echo "$hw_cv_func_vsnprintf_c99" >&6; } 6869else 6870 hw_cv_func_vsnprintf_c99=no 6871fi 6872 6873$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 6874 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5 6876$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; } 6877 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then : 6878 hw_use_rpl_vsnprintf=yes 6879else 6880 hw_use_rpl_vsnprintf=no 6881fi 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5 6883$as_echo "$hw_use_rpl_vsnprintf" >&6; } 6884 if test "$hw_use_rpl_vsnprintf" = yes; then : 6885 6886$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h 6887 6888 if test ${hw_nodef_vsnprintf=no} = no; then : 6889 6890$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h 6891 6892fi 6893 for ac_header in inttypes.h locale.h stddef.h stdint.h 6894do : 6895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6896ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6897if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6898 cat >>confdefs.h <<_ACEOF 6899#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6900_ACEOF 6901 6902fi 6903 6904done 6905 6906 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 6907" 6908if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then : 6909 6910cat >>confdefs.h <<_ACEOF 6911#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1 6912_ACEOF 6913 6914 6915fi 6916ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h> 6917" 6918if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then : 6919 6920cat >>confdefs.h <<_ACEOF 6921#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1 6922_ACEOF 6923 6924 6925fi 6926 6927 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 6929$as_echo_n "checking for long double... " >&6; } 6930if ${ac_cv_type_long_double+:} false; then : 6931 $as_echo_n "(cached) " >&6 6932else 6933 if test "$GCC" = yes; then 6934 ac_cv_type_long_double=yes 6935 else 6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6937/* end confdefs.h. */ 6938/* The Stardent Vistra knows sizeof (long double), but does 6939 not support it. */ 6940 long double foo = 0.0L; 6941int 6942main () 6943{ 6944static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 6945 sizeof (double) <= sizeof (long double))]; 6946test_array [0] = 0; 6947return test_array [0]; 6948 6949 ; 6950 return 0; 6951} 6952_ACEOF 6953if ac_fn_c_try_compile "$LINENO"; then : 6954 ac_cv_type_long_double=yes 6955else 6956 ac_cv_type_long_double=no 6957fi 6958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6959 fi 6960fi 6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 6962$as_echo "$ac_cv_type_long_double" >&6; } 6963 if test $ac_cv_type_long_double = yes; then 6964 6965$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 6966 6967 fi 6968 6969 6970 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 6972$as_echo_n "checking for long long int... " >&6; } 6973if ${ac_cv_type_long_long_int+:} false; then : 6974 $as_echo_n "(cached) " >&6 6975else 6976 ac_cv_type_long_long_int=yes 6977 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 6978 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 6979 if test $ac_cv_type_long_long_int = yes; then 6980 if test "$cross_compiling" = yes; then : 6981 : 6982else 6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6984/* end confdefs.h. */ 6985#include <limits.h> 6986 #ifndef LLONG_MAX 6987 # define HALF \ 6988 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 6989 # define LLONG_MAX (HALF - 1 + HALF) 6990 #endif 6991int 6992main () 6993{ 6994long long int n = 1; 6995 int i; 6996 for (i = 0; ; i++) 6997 { 6998 long long int m = n << i; 6999 if (m >> i != n) 7000 return 1; 7001 if (LLONG_MAX / 2 < m) 7002 break; 7003 } 7004 return 0; 7005 ; 7006 return 0; 7007} 7008_ACEOF 7009if ac_fn_c_try_run "$LINENO"; then : 7010 7011else 7012 ac_cv_type_long_long_int=no 7013fi 7014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7015 conftest.$ac_objext conftest.beam conftest.$ac_ext 7016fi 7017 7018 fi 7019 fi 7020fi 7021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 7022$as_echo "$ac_cv_type_long_long_int" >&6; } 7023 if test $ac_cv_type_long_long_int = yes; then 7024 7025$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 7026 7027 fi 7028 7029 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 7031$as_echo_n "checking for unsigned long long int... " >&6; } 7032if ${ac_cv_type_unsigned_long_long_int+:} false; then : 7033 $as_echo_n "(cached) " >&6 7034else 7035 ac_cv_type_unsigned_long_long_int=yes 7036 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7038/* end confdefs.h. */ 7039 7040 /* For now, do not test the preprocessor; as of 2007 there are too many 7041 implementations with broken preprocessors. Perhaps this can 7042 be revisited in 2012. In the meantime, code should not expect 7043 #if to work with literals wider than 32 bits. */ 7044 /* Test literals. */ 7045 long long int ll = 9223372036854775807ll; 7046 long long int nll = -9223372036854775807LL; 7047 unsigned long long int ull = 18446744073709551615ULL; 7048 /* Test constant expressions. */ 7049 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 7050 ? 1 : -1)]; 7051 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 7052 ? 1 : -1)]; 7053 int i = 63; 7054int 7055main () 7056{ 7057/* Test availability of runtime routines for shift and division. */ 7058 long long int llmax = 9223372036854775807ll; 7059 unsigned long long int ullmax = 18446744073709551615ull; 7060 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 7061 | (llmax / ll) | (llmax % ll) 7062 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 7063 | (ullmax / ull) | (ullmax % ull)); 7064 ; 7065 return 0; 7066} 7067 7068_ACEOF 7069if ac_fn_c_try_link "$LINENO"; then : 7070 7071else 7072 ac_cv_type_unsigned_long_long_int=no 7073fi 7074rm -f core conftest.err conftest.$ac_objext \ 7075 conftest$ac_exeext conftest.$ac_ext 7076 fi 7077fi 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 7079$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 7080 if test $ac_cv_type_unsigned_long_long_int = yes; then 7081 7082$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 7083 7084 fi 7085 7086 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7087if test "x$ac_cv_type_size_t" = xyes; then : 7088 7089else 7090 7091cat >>confdefs.h <<_ACEOF 7092#define size_t unsigned int 7093_ACEOF 7094 7095fi 7096 7097 7098 7099 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 7100if test "x$ac_cv_type_intmax_t" = xyes; then : 7101 7102$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 7103 7104else 7105 test $ac_cv_type_long_long_int = yes \ 7106 && ac_type='long long int' \ 7107 || ac_type='long int' 7108 7109cat >>confdefs.h <<_ACEOF 7110#define intmax_t $ac_type 7111_ACEOF 7112 7113fi 7114 7115 7116 7117 7118 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 7119if test "x$ac_cv_type_uintmax_t" = xyes; then : 7120 7121$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 7122 7123else 7124 test $ac_cv_type_unsigned_long_long_int = yes \ 7125 && ac_type='unsigned long long int' \ 7126 || ac_type='unsigned long int' 7127 7128cat >>confdefs.h <<_ACEOF 7129#define uintmax_t $ac_type 7130_ACEOF 7131 7132fi 7133 7134 7135 7136 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 7137if test "x$ac_cv_type_uintptr_t" = xyes; then : 7138 7139$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 7140 7141else 7142 for ac_type in 'unsigned int' 'unsigned long int' \ 7143 'unsigned long long int'; do 7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7145/* end confdefs.h. */ 7146$ac_includes_default 7147int 7148main () 7149{ 7150static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 7151test_array [0] = 0; 7152return test_array [0]; 7153 7154 ; 7155 return 0; 7156} 7157_ACEOF 7158if ac_fn_c_try_compile "$LINENO"; then : 7159 7160cat >>confdefs.h <<_ACEOF 7161#define uintptr_t $ac_type 7162_ACEOF 7163 7164 ac_type= 7165fi 7166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7167 test -z "$ac_type" && break 7168 done 7169fi 7170 7171 7172 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 7173if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 7174 7175cat >>confdefs.h <<_ACEOF 7176#define HAVE_PTRDIFF_T 1 7177_ACEOF 7178 7179 7180fi 7181 7182 for ac_func in localeconv 7183do : 7184 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv" 7185if test "x$ac_cv_func_localeconv" = xyes; then : 7186 cat >>confdefs.h <<_ACEOF 7187#define HAVE_LOCALECONV 1 7188_ACEOF 7189 7190fi 7191done 7192 7193 7194 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 7196$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 7197if ${ac_cv_c_const+:} false; then : 7198 $as_echo_n "(cached) " >&6 7199else 7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7201/* end confdefs.h. */ 7202 7203int 7204main () 7205{ 7206 7207#ifndef __cplusplus 7208 /* Ultrix mips cc rejects this sort of thing. */ 7209 typedef int charset[2]; 7210 const charset cs = { 0, 0 }; 7211 /* SunOS 4.1.1 cc rejects this. */ 7212 char const *const *pcpcc; 7213 char **ppc; 7214 /* NEC SVR4.0.2 mips cc rejects this. */ 7215 struct point {int x, y;}; 7216 static struct point const zero = {0,0}; 7217 /* AIX XL C 1.02.0.0 rejects this. 7218 It does not let you subtract one const X* pointer from another in 7219 an arm of an if-expression whose if-part is not a constant 7220 expression */ 7221 const char *g = "string"; 7222 pcpcc = &g + (g ? g-g : 0); 7223 /* HPUX 7.0 cc rejects these. */ 7224 ++pcpcc; 7225 ppc = (char**) pcpcc; 7226 pcpcc = (char const *const *) ppc; 7227 { /* SCO 3.2v4 cc rejects this sort of thing. */ 7228 char tx; 7229 char *t = &tx; 7230 char const *s = 0 ? (char *) 0 : (char const *) 0; 7231 7232 *t++ = 0; 7233 if (s) return 0; 7234 } 7235 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7236 int x[] = {25, 17}; 7237 const int *foo = &x[0]; 7238 ++foo; 7239 } 7240 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7241 typedef const int *iptr; 7242 iptr p = 0; 7243 ++p; 7244 } 7245 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 7246 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7247 struct s { int j; const int *ap[3]; } bx; 7248 struct s *b = &bx; b->j = 5; 7249 } 7250 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7251 const int foo = 10; 7252 if (!foo) return 0; 7253 } 7254 return !cs[0] && !zero.x; 7255#endif 7256 7257 ; 7258 return 0; 7259} 7260_ACEOF 7261if ac_fn_c_try_compile "$LINENO"; then : 7262 ac_cv_c_const=yes 7263else 7264 ac_cv_c_const=no 7265fi 7266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7267fi 7268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 7269$as_echo "$ac_cv_c_const" >&6; } 7270if test $ac_cv_c_const = no; then 7271 7272$as_echo "#define const /**/" >>confdefs.h 7273 7274fi 7275 7276 7277 7278 7279 case " $LIBOBJS " in 7280 *" snprintf.$ac_objext "* ) ;; 7281 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 7282 ;; 7283esac 7284 7285 _hw_cv_func_xprintf_replace_done=yes 7286fi 7287 7288fi 7289 7290 7291 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 7292if test "x$ac_cv_func_snprintf" = xyes; then : 7293 hw_cv_func_snprintf=yes 7294else 7295 hw_cv_func_snprintf=no 7296fi 7297 7298 if test "$hw_cv_func_snprintf" = yes; then : 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5 7300$as_echo_n "checking whether snprintf is C99 compliant... " >&6; } 7301if ${hw_cv_func_snprintf_c99+:} false; then : 7302 $as_echo_n "(cached) " >&6 7303else 7304 if test "$cross_compiling" = yes; then : 7305 hw_cv_func_snprintf_c99=no 7306else 7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7308/* end confdefs.h. */ 7309#include <stdio.h> 7310int 7311main () 7312{ 7313char buf[43]; 7314 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 7315 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 7316 buf[0] != 'T' || buf[3] != '\0') 7317 return 1; 7318 ; 7319 return 0; 7320} 7321_ACEOF 7322if ac_fn_c_try_run "$LINENO"; then : 7323 hw_cv_func_snprintf_c99=yes 7324else 7325 hw_cv_func_snprintf_c99=no 7326fi 7327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7328 conftest.$ac_objext conftest.beam conftest.$ac_ext 7329fi 7330 7331fi 7332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5 7333$as_echo "$hw_cv_func_snprintf_c99" >&6; } 7334else 7335 hw_cv_func_snprintf_c99=no 7336fi 7337 7338$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 7339 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5 7341$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; } 7342 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then : 7343 hw_use_rpl_snprintf=yes 7344else 7345 hw_use_rpl_snprintf=no 7346fi 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5 7348$as_echo "$hw_use_rpl_snprintf" >&6; } 7349 if test "$hw_use_rpl_snprintf" = yes; then : 7350 7351$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h 7352 7353 if test ${hw_nodef_snprintf=no} = no; then : 7354 7355$as_echo "#define snprintf rpl_snprintf" >>confdefs.h 7356 7357fi 7358 7359 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 7361$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 7362if ${ac_cv_c_const+:} false; then : 7363 $as_echo_n "(cached) " >&6 7364else 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367 7368int 7369main () 7370{ 7371 7372#ifndef __cplusplus 7373 /* Ultrix mips cc rejects this sort of thing. */ 7374 typedef int charset[2]; 7375 const charset cs = { 0, 0 }; 7376 /* SunOS 4.1.1 cc rejects this. */ 7377 char const *const *pcpcc; 7378 char **ppc; 7379 /* NEC SVR4.0.2 mips cc rejects this. */ 7380 struct point {int x, y;}; 7381 static struct point const zero = {0,0}; 7382 /* AIX XL C 1.02.0.0 rejects this. 7383 It does not let you subtract one const X* pointer from another in 7384 an arm of an if-expression whose if-part is not a constant 7385 expression */ 7386 const char *g = "string"; 7387 pcpcc = &g + (g ? g-g : 0); 7388 /* HPUX 7.0 cc rejects these. */ 7389 ++pcpcc; 7390 ppc = (char**) pcpcc; 7391 pcpcc = (char const *const *) ppc; 7392 { /* SCO 3.2v4 cc rejects this sort of thing. */ 7393 char tx; 7394 char *t = &tx; 7395 char const *s = 0 ? (char *) 0 : (char const *) 0; 7396 7397 *t++ = 0; 7398 if (s) return 0; 7399 } 7400 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7401 int x[] = {25, 17}; 7402 const int *foo = &x[0]; 7403 ++foo; 7404 } 7405 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7406 typedef const int *iptr; 7407 iptr p = 0; 7408 ++p; 7409 } 7410 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 7411 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7412 struct s { int j; const int *ap[3]; } bx; 7413 struct s *b = &bx; b->j = 5; 7414 } 7415 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7416 const int foo = 10; 7417 if (!foo) return 0; 7418 } 7419 return !cs[0] && !zero.x; 7420#endif 7421 7422 ; 7423 return 0; 7424} 7425_ACEOF 7426if ac_fn_c_try_compile "$LINENO"; then : 7427 ac_cv_c_const=yes 7428else 7429 ac_cv_c_const=no 7430fi 7431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7432fi 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 7434$as_echo "$ac_cv_c_const" >&6; } 7435if test $ac_cv_c_const = no; then 7436 7437$as_echo "#define const /**/" >>confdefs.h 7438 7439fi 7440 7441 7442 7443 7444 case " $LIBOBJS " in 7445 *" snprintf.$ac_objext "* ) ;; 7446 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 7447 ;; 7448esac 7449 7450 _hw_cv_func_xprintf_replace_done=yes 7451fi 7452 7453fi 7454 7455 7456 7457 7458 7459# HMS: Save $LIBS and empty it. 7460# any LIBS we add here should go in to LDADD_LIBNTP 7461 7462__LIBS=$LIBS 7463LIBS= 7464 7465 7466 7467# [Bug 2332] because we need to know if we are using GNU ld... 7468 7469 7470# Check whether --with-gnu-ld was given. 7471if test "${with_gnu_ld+set}" = set; then : 7472 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7473else 7474 with_gnu_ld=no 7475fi 7476 7477ac_prog=ld 7478if test yes = "$GCC"; then 7479 # Check if gcc -print-prog-name=ld gives a path. 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7481$as_echo_n "checking for ld used by $CC... " >&6; } 7482 case $host in 7483 *-*-mingw*) 7484 # gcc leaves a trailing carriage return, which upsets mingw 7485 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7486 *) 7487 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7488 esac 7489 case $ac_prog in 7490 # Accept absolute paths. 7491 [\\/]* | ?:[\\/]*) 7492 re_direlt='/[^/][^/]*/\.\./' 7493 # Canonicalize the pathname of ld 7494 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7495 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7496 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7497 done 7498 test -z "$LD" && LD=$ac_prog 7499 ;; 7500 "") 7501 # If it fails, then pretend we aren't using GCC. 7502 ac_prog=ld 7503 ;; 7504 *) 7505 # If it is relative, then search for the first ld in PATH. 7506 with_gnu_ld=unknown 7507 ;; 7508 esac 7509elif test yes = "$with_gnu_ld"; then 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7511$as_echo_n "checking for GNU ld... " >&6; } 7512else 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7514$as_echo_n "checking for non-GNU ld... " >&6; } 7515fi 7516if ${lt_cv_path_LD+:} false; then : 7517 $as_echo_n "(cached) " >&6 7518else 7519 if test -z "$LD"; then 7520 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7521 for ac_dir in $PATH; do 7522 IFS=$lt_save_ifs 7523 test -z "$ac_dir" && ac_dir=. 7524 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7525 lt_cv_path_LD=$ac_dir/$ac_prog 7526 # Check to see if the program is GNU ld. I'd rather use --version, 7527 # but apparently some variants of GNU ld only accept -v. 7528 # Break only if it was the GNU/non-GNU ld that we prefer. 7529 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7530 *GNU* | *'with BFD'*) 7531 test no != "$with_gnu_ld" && break 7532 ;; 7533 *) 7534 test yes != "$with_gnu_ld" && break 7535 ;; 7536 esac 7537 fi 7538 done 7539 IFS=$lt_save_ifs 7540else 7541 lt_cv_path_LD=$LD # Let the user override the test with a path. 7542fi 7543fi 7544 7545LD=$lt_cv_path_LD 7546if test -n "$LD"; then 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7548$as_echo "$LD" >&6; } 7549else 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7551$as_echo "no" >&6; } 7552fi 7553test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7555$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7556if ${lt_cv_prog_gnu_ld+:} false; then : 7557 $as_echo_n "(cached) " >&6 7558else 7559 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7560case `$LD -v 2>&1 </dev/null` in 7561*GNU* | *'with BFD'*) 7562 lt_cv_prog_gnu_ld=yes 7563 ;; 7564*) 7565 lt_cv_prog_gnu_ld=no 7566 ;; 7567esac 7568fi 7569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7570$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7571with_gnu_ld=$lt_cv_prog_gnu_ld 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5 7584$as_echo_n "checking for directory path separator... " >&6; } 7585if ${ntp_cv_dir_sep+:} false; then : 7586 $as_echo_n "(cached) " >&6 7587else 7588 7589 case "$ntp_cv_dir_sep" in 7590 '') 7591 case "$host_os" in 7592 *djgpp | *mingw32* | *emx*) 7593 ntp_cv_dir_sep="'\\'" 7594 ;; 7595 *) 7596 ntp_cv_dir_sep="'/'" 7597 ;; 7598 esac 7599 esac 7600 7601 7602fi 7603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5 7604$as_echo "$ntp_cv_dir_sep" >&6; } 7605 7606cat >>confdefs.h <<_ACEOF 7607#define DIR_SEP $ntp_cv_dir_sep 7608_ACEOF 7609 7610 7611 7612 NTP_ORIG_LIBS="$LIBS" 7613 7614# Check whether --with-lineeditlibs was given. 7615if test "${with_lineeditlibs+set}" = set; then : 7616 withval=$with_lineeditlibs; use_lineeditlibs="$withval" 7617else 7618 use_lineeditlibs="edit,editline" 7619 7620fi 7621 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5 7623$as_echo_n "checking line editing libraries... " >&6; } 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5 7625$as_echo "$use_lineeditlibs" >&6; } 7626 case "$use_lineeditlibs" in 7627 no) 7628 ntp_lib_lineedit=no 7629 ;; 7630 *) 7631 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do 7632 for term_lib in "" termcap curses ncurses; do 7633 case "$term_lib" in 7634 '') 7635 TRY_LIB="-l$lineedit_lib" 7636 ;; 7637 *) 7638 TRY_LIB="-l$lineedit_lib -l$term_lib" 7639 ;; 7640 esac 7641 LIBS="$NTP_ORIG_LIBS $TRY_LIB" 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5 7643$as_echo_n "checking for readline() with $TRY_LIB... " >&6; } 7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7645/* end confdefs.h. */ 7646 7647/* Override any GCC internal prototype to avoid an error. 7648 Use char because int might match the return type of a GCC 7649 builtin and then its argument prototype would still apply. */ 7650#ifdef __cplusplus 7651extern "C" 7652#endif 7653char readline (); 7654int 7655main () 7656{ 7657return readline (); 7658 ; 7659 return 0; 7660} 7661_ACEOF 7662if ac_fn_c_try_link "$LINENO"; then : 7663 ntp_lib_lineedit="$TRY_LIB" 7664fi 7665rm -f core conftest.err conftest.$ac_objext \ 7666 conftest$ac_exeext conftest.$ac_ext 7667 case "$ntp_lib_lineedit" in 7668 '') 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7670$as_echo "no" >&6; } 7671 ;; 7672 *) 7673 # Use readline() 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7675$as_echo "yes" >&6; } 7676 break 7677 esac 7678 case "$term_lib" in 7679 '') 7680 # do not try el_gets without a terminal library 7681 ;; 7682 *) 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5 7684$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; } 7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7686/* end confdefs.h. */ 7687 7688/* Override any GCC internal prototype to avoid an error. 7689 Use char because int might match the return type of a GCC 7690 builtin and then its argument prototype would still apply. */ 7691#ifdef __cplusplus 7692extern "C" 7693#endif 7694char el_gets (); 7695int 7696main () 7697{ 7698return el_gets (); 7699 ; 7700 return 0; 7701} 7702_ACEOF 7703if ac_fn_c_try_link "$LINENO"; then : 7704 ntp_lib_lineedit="$TRY_LIB" 7705fi 7706rm -f core conftest.err conftest.$ac_objext \ 7707 conftest$ac_exeext conftest.$ac_ext 7708 case "$ntp_lib_lineedit" in 7709 '') 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7711$as_echo "no" >&6; } 7712 ;; 7713 *) # Use el_gets() 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7715$as_echo "yes" >&6; } 7716 break 7717 ;; 7718 esac # $ntp_lib_lineedit 7719 esac # $term_lib 7720 done 7721 case "$ntp_lib_lineedit" in 7722 '') 7723 ;; 7724 *) 7725 break 7726 ;; 7727 esac 7728 done 7729 LIBS="$NTP_ORIG_LIBS" 7730 ;; 7731 esac # $use_lineeditlibs 7732 7733 case "$ntp_lib_lineedit" in 7734 '') 7735 ntp_lib_lineedit="no" 7736 ;; 7737 no) 7738 ;; 7739 *) 7740 EDITLINE_LIBS="$ntp_lib_lineedit" 7741 7742 ;; 7743 esac # $ntp_lib_lineedit 7744 7745 case "$ntp_lib_lineedit" in 7746 no) 7747 ;; 7748 *) 7749 for ac_header in readline.h readline/readline.h histedit.h 7750do : 7751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7752ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7753if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7754 cat >>confdefs.h <<_ACEOF 7755#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7756_ACEOF 7757 7758fi 7759 7760done 7761 7762 for ac_header in history.h readline/history.h 7763do : 7764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7765ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7766if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7767 cat >>confdefs.h <<_ACEOF 7768#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7769_ACEOF 7770 7771fi 7772 7773done 7774 7775 7776 case "$ac_cv_header_histedit_h" in 7777 yes) 7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5 7779$as_echo_n "checking number of arguments to el_init()... " >&6; } 7780if ${ntp_cv_el_init_args+:} false; then : 7781 $as_echo_n "(cached) " >&6 7782else 7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7784/* end confdefs.h. */ 7785 7786 #include <stdio.h> 7787 #include <histedit.h> 7788 7789int 7790main () 7791{ 7792 7793 el_init("conftest", stdin, stdout, stderr); 7794 7795 7796 ; 7797 return 0; 7798} 7799_ACEOF 7800if ac_fn_c_try_compile "$LINENO"; then : 7801 ntp_cv_el_init_args=4 7802else 7803 ntp_cv_el_init_args=3 7804 7805fi 7806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7807 7808fi 7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5 7810$as_echo "$ntp_cv_el_init_args" >&6; } 7811 7812cat >>confdefs.h <<_ACEOF 7813#define EL_INIT_ARGS $ntp_cv_el_init_args 7814_ACEOF 7815 7816 esac 7817 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 7819$as_echo_n "checking whether readline supports history... " >&6; } 7820 7821 ntp_lib_lineedit_history="no" 7822 ORIG_LIBS="$LIBS" 7823 LIBS="$ORIG_LIBS $ntp_lib_lineedit" 7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7825/* end confdefs.h. */ 7826 7827/* Override any GCC internal prototype to avoid an error. 7828 Use char because int might match the return type of a GCC 7829 builtin and then its argument prototype would still apply. */ 7830#ifdef __cplusplus 7831extern "C" 7832#endif 7833char add_history (); 7834int 7835main () 7836{ 7837return add_history (); 7838 ; 7839 return 0; 7840} 7841_ACEOF 7842if ac_fn_c_try_link "$LINENO"; then : 7843 ntp_lib_lineedit_history="yes" 7844fi 7845rm -f core conftest.err conftest.$ac_objext \ 7846 conftest$ac_exeext conftest.$ac_ext 7847 LIBS="$ORIG_LIBS" 7848 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5 7850$as_echo "$ntp_lib_lineedit_history" >&6; } 7851 7852 case "$ntp_lib_lineedit_history" in 7853 yes) 7854 7855$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h 7856 7857 esac 7858 esac # $ntp_lib_lineedit 7859 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;} 7860 { ORIG_LIBS=; unset ORIG_LIBS;} 7861 { TRY_LIB=; unset TRY_LIB;} 7862 { use_lineeditlibs=; unset use_lineeditlibs;} 7863 7864 7865LIBM= 7866case "$host" in 7867 *-*-darwin*) 7868 ;; 7869 *) 7870 _libs=$LIBS 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5 7872$as_echo_n "checking for library containing cos... " >&6; } 7873if ${ac_cv_search_cos+:} false; then : 7874 $as_echo_n "(cached) " >&6 7875else 7876 ac_func_search_save_LIBS=$LIBS 7877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7878/* end confdefs.h. */ 7879 7880/* Override any GCC internal prototype to avoid an error. 7881 Use char because int might match the return type of a GCC 7882 builtin and then its argument prototype would still apply. */ 7883#ifdef __cplusplus 7884extern "C" 7885#endif 7886char cos (); 7887int 7888main () 7889{ 7890return cos (); 7891 ; 7892 return 0; 7893} 7894_ACEOF 7895for ac_lib in '' m; do 7896 if test -z "$ac_lib"; then 7897 ac_res="none required" 7898 else 7899 ac_res=-l$ac_lib 7900 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7901 fi 7902 if ac_fn_c_try_link "$LINENO"; then : 7903 ac_cv_search_cos=$ac_res 7904fi 7905rm -f core conftest.err conftest.$ac_objext \ 7906 conftest$ac_exeext 7907 if ${ac_cv_search_cos+:} false; then : 7908 break 7909fi 7910done 7911if ${ac_cv_search_cos+:} false; then : 7912 7913else 7914 ac_cv_search_cos=no 7915fi 7916rm conftest.$ac_ext 7917LIBS=$ac_func_search_save_LIBS 7918fi 7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5 7920$as_echo "$ac_cv_search_cos" >&6; } 7921ac_res=$ac_cv_search_cos 7922if test "$ac_res" != no; then : 7923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7924 LIBM="-lm" 7925fi 7926 7927 LIBS=$_libs 7928 ;; 7929esac 7930 7931{ _libs=; unset _libs;} 7932 7933 7934for ac_header in vfork.h 7935do : 7936 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 7937if test "x$ac_cv_header_vfork_h" = xyes; then : 7938 cat >>confdefs.h <<_ACEOF 7939#define HAVE_VFORK_H 1 7940_ACEOF 7941 7942fi 7943 7944done 7945 7946for ac_func in fork vfork 7947do : 7948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7949ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7950if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7951 cat >>confdefs.h <<_ACEOF 7952#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7953_ACEOF 7954 7955fi 7956done 7957 7958if test "x$ac_cv_func_fork" = xyes; then 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 7960$as_echo_n "checking for working fork... " >&6; } 7961if ${ac_cv_func_fork_works+:} false; then : 7962 $as_echo_n "(cached) " >&6 7963else 7964 if test "$cross_compiling" = yes; then : 7965 ac_cv_func_fork_works=cross 7966else 7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7968/* end confdefs.h. */ 7969$ac_includes_default 7970int 7971main () 7972{ 7973 7974 /* By Ruediger Kuhlmann. */ 7975 return fork () < 0; 7976 7977 ; 7978 return 0; 7979} 7980_ACEOF 7981if ac_fn_c_try_run "$LINENO"; then : 7982 ac_cv_func_fork_works=yes 7983else 7984 ac_cv_func_fork_works=no 7985fi 7986rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7987 conftest.$ac_objext conftest.beam conftest.$ac_ext 7988fi 7989 7990fi 7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 7992$as_echo "$ac_cv_func_fork_works" >&6; } 7993 7994else 7995 ac_cv_func_fork_works=$ac_cv_func_fork 7996fi 7997if test "x$ac_cv_func_fork_works" = xcross; then 7998 case $host in 7999 *-*-amigaos* | *-*-msdosdjgpp*) 8000 # Override, as these systems have only a dummy fork() stub 8001 ac_cv_func_fork_works=no 8002 ;; 8003 *) 8004 ac_cv_func_fork_works=yes 8005 ;; 8006 esac 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 8008$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 8009fi 8010ac_cv_func_vfork_works=$ac_cv_func_vfork 8011if test "x$ac_cv_func_vfork" = xyes; then 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 8013$as_echo_n "checking for working vfork... " >&6; } 8014if ${ac_cv_func_vfork_works+:} false; then : 8015 $as_echo_n "(cached) " >&6 8016else 8017 if test "$cross_compiling" = yes; then : 8018 ac_cv_func_vfork_works=cross 8019else 8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8021/* end confdefs.h. */ 8022/* Thanks to Paul Eggert for this test. */ 8023$ac_includes_default 8024#include <sys/wait.h> 8025#ifdef HAVE_VFORK_H 8026# include <vfork.h> 8027#endif 8028/* On some sparc systems, changes by the child to local and incoming 8029 argument registers are propagated back to the parent. The compiler 8030 is told about this with #include <vfork.h>, but some compilers 8031 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 8032 static variable whose address is put into a register that is 8033 clobbered by the vfork. */ 8034static void 8035#ifdef __cplusplus 8036sparc_address_test (int arg) 8037# else 8038sparc_address_test (arg) int arg; 8039#endif 8040{ 8041 static pid_t child; 8042 if (!child) { 8043 child = vfork (); 8044 if (child < 0) { 8045 perror ("vfork"); 8046 _exit(2); 8047 } 8048 if (!child) { 8049 arg = getpid(); 8050 write(-1, "", 0); 8051 _exit (arg); 8052 } 8053 } 8054} 8055 8056int 8057main () 8058{ 8059 pid_t parent = getpid (); 8060 pid_t child; 8061 8062 sparc_address_test (0); 8063 8064 child = vfork (); 8065 8066 if (child == 0) { 8067 /* Here is another test for sparc vfork register problems. This 8068 test uses lots of local variables, at least as many local 8069 variables as main has allocated so far including compiler 8070 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 8071 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 8072 reuse the register of parent for one of the local variables, 8073 since it will think that parent can't possibly be used any more 8074 in this routine. Assigning to the local variable will thus 8075 munge parent in the parent process. */ 8076 pid_t 8077 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 8078 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 8079 /* Convince the compiler that p..p7 are live; otherwise, it might 8080 use the same hardware register for all 8 local variables. */ 8081 if (p != p1 || p != p2 || p != p3 || p != p4 8082 || p != p5 || p != p6 || p != p7) 8083 _exit(1); 8084 8085 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 8086 from child file descriptors. If the child closes a descriptor 8087 before it execs or exits, this munges the parent's descriptor 8088 as well. Test for this by closing stdout in the child. */ 8089 _exit(close(fileno(stdout)) != 0); 8090 } else { 8091 int status; 8092 struct stat st; 8093 8094 while (wait(&status) != child) 8095 ; 8096 return ( 8097 /* Was there some problem with vforking? */ 8098 child < 0 8099 8100 /* Did the child fail? (This shouldn't happen.) */ 8101 || status 8102 8103 /* Did the vfork/compiler bug occur? */ 8104 || parent != getpid() 8105 8106 /* Did the file descriptor bug occur? */ 8107 || fstat(fileno(stdout), &st) != 0 8108 ); 8109 } 8110} 8111_ACEOF 8112if ac_fn_c_try_run "$LINENO"; then : 8113 ac_cv_func_vfork_works=yes 8114else 8115 ac_cv_func_vfork_works=no 8116fi 8117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8118 conftest.$ac_objext conftest.beam conftest.$ac_ext 8119fi 8120 8121fi 8122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 8123$as_echo "$ac_cv_func_vfork_works" >&6; } 8124 8125fi; 8126if test "x$ac_cv_func_fork_works" = xcross; then 8127 ac_cv_func_vfork_works=$ac_cv_func_vfork 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 8129$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 8130fi 8131 8132if test "x$ac_cv_func_vfork_works" = xyes; then 8133 8134$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 8135 8136else 8137 8138$as_echo "#define vfork fork" >>confdefs.h 8139 8140fi 8141if test "x$ac_cv_func_fork_works" = xyes; then 8142 8143$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 8144 8145fi 8146 8147# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8148# for constant arguments. Useless! 8149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 8150$as_echo_n "checking for working alloca.h... " >&6; } 8151if ${ac_cv_working_alloca_h+:} false; then : 8152 $as_echo_n "(cached) " >&6 8153else 8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8155/* end confdefs.h. */ 8156#include <alloca.h> 8157int 8158main () 8159{ 8160char *p = (char *) alloca (2 * sizeof (int)); 8161 if (p) return 0; 8162 ; 8163 return 0; 8164} 8165_ACEOF 8166if ac_fn_c_try_link "$LINENO"; then : 8167 ac_cv_working_alloca_h=yes 8168else 8169 ac_cv_working_alloca_h=no 8170fi 8171rm -f core conftest.err conftest.$ac_objext \ 8172 conftest$ac_exeext conftest.$ac_ext 8173fi 8174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 8175$as_echo "$ac_cv_working_alloca_h" >&6; } 8176if test $ac_cv_working_alloca_h = yes; then 8177 8178$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 8179 8180fi 8181 8182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 8183$as_echo_n "checking for alloca... " >&6; } 8184if ${ac_cv_func_alloca_works+:} false; then : 8185 $as_echo_n "(cached) " >&6 8186else 8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8188/* end confdefs.h. */ 8189#ifdef __GNUC__ 8190# define alloca __builtin_alloca 8191#else 8192# ifdef _MSC_VER 8193# include <malloc.h> 8194# define alloca _alloca 8195# else 8196# ifdef HAVE_ALLOCA_H 8197# include <alloca.h> 8198# else 8199# ifdef _AIX 8200 #pragma alloca 8201# else 8202# ifndef alloca /* predefined by HP cc +Olibcalls */ 8203void *alloca (size_t); 8204# endif 8205# endif 8206# endif 8207# endif 8208#endif 8209 8210int 8211main () 8212{ 8213char *p = (char *) alloca (1); 8214 if (p) return 0; 8215 ; 8216 return 0; 8217} 8218_ACEOF 8219if ac_fn_c_try_link "$LINENO"; then : 8220 ac_cv_func_alloca_works=yes 8221else 8222 ac_cv_func_alloca_works=no 8223fi 8224rm -f core conftest.err conftest.$ac_objext \ 8225 conftest$ac_exeext conftest.$ac_ext 8226fi 8227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 8228$as_echo "$ac_cv_func_alloca_works" >&6; } 8229 8230if test $ac_cv_func_alloca_works = yes; then 8231 8232$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 8233 8234else 8235 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 8236# that cause trouble. Some versions do not even contain alloca or 8237# contain a buggy version. If you still want to use their alloca, 8238# use ar to extract alloca.o from them instead of compiling alloca.c. 8239 8240ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 8241 8242$as_echo "#define C_ALLOCA 1" >>confdefs.h 8243 8244 8245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 8246$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 8247if ${ac_cv_os_cray+:} false; then : 8248 $as_echo_n "(cached) " >&6 8249else 8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8251/* end confdefs.h. */ 8252#if defined CRAY && ! defined CRAY2 8253webecray 8254#else 8255wenotbecray 8256#endif 8257 8258_ACEOF 8259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8260 $EGREP "webecray" >/dev/null 2>&1; then : 8261 ac_cv_os_cray=yes 8262else 8263 ac_cv_os_cray=no 8264fi 8265rm -f conftest* 8266 8267fi 8268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 8269$as_echo "$ac_cv_os_cray" >&6; } 8270if test $ac_cv_os_cray = yes; then 8271 for ac_func in _getb67 GETB67 getb67; do 8272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8273ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8274if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8275 8276cat >>confdefs.h <<_ACEOF 8277#define CRAY_STACKSEG_END $ac_func 8278_ACEOF 8279 8280 break 8281fi 8282 8283 done 8284fi 8285 8286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 8287$as_echo_n "checking stack direction for C alloca... " >&6; } 8288if ${ac_cv_c_stack_direction+:} false; then : 8289 $as_echo_n "(cached) " >&6 8290else 8291 if test "$cross_compiling" = yes; then : 8292 ac_cv_c_stack_direction=0 8293else 8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8295/* end confdefs.h. */ 8296$ac_includes_default 8297int 8298find_stack_direction (int *addr, int depth) 8299{ 8300 int dir, dummy = 0; 8301 if (! addr) 8302 addr = &dummy; 8303 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 8304 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 8305 return dir + dummy; 8306} 8307 8308int 8309main (int argc, char **argv) 8310{ 8311 return find_stack_direction (0, argc + !argv + 20) < 0; 8312} 8313_ACEOF 8314if ac_fn_c_try_run "$LINENO"; then : 8315 ac_cv_c_stack_direction=1 8316else 8317 ac_cv_c_stack_direction=-1 8318fi 8319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8320 conftest.$ac_objext conftest.beam conftest.$ac_ext 8321fi 8322 8323fi 8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 8325$as_echo "$ac_cv_c_stack_direction" >&6; } 8326cat >>confdefs.h <<_ACEOF 8327#define STACK_DIRECTION $ac_cv_c_stack_direction 8328_ACEOF 8329 8330 8331fi 8332 8333ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 8334if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 8335 ac_have_decl=1 8336else 8337 ac_have_decl=0 8338fi 8339 8340cat >>confdefs.h <<_ACEOF 8341#define HAVE_DECL_STRERROR_R $ac_have_decl 8342_ACEOF 8343 8344for ac_func in strerror_r 8345do : 8346 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 8347if test "x$ac_cv_func_strerror_r" = xyes; then : 8348 cat >>confdefs.h <<_ACEOF 8349#define HAVE_STRERROR_R 1 8350_ACEOF 8351 8352fi 8353done 8354 8355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 8356$as_echo_n "checking whether strerror_r returns char *... " >&6; } 8357if ${ac_cv_func_strerror_r_char_p+:} false; then : 8358 $as_echo_n "(cached) " >&6 8359else 8360 8361 ac_cv_func_strerror_r_char_p=no 8362 if test $ac_cv_have_decl_strerror_r = yes; then 8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8364/* end confdefs.h. */ 8365$ac_includes_default 8366int 8367main () 8368{ 8369 8370 char buf[100]; 8371 char x = *strerror_r (0, buf, sizeof buf); 8372 char *p = strerror_r (0, buf, sizeof buf); 8373 return !p || x; 8374 8375 ; 8376 return 0; 8377} 8378_ACEOF 8379if ac_fn_c_try_compile "$LINENO"; then : 8380 ac_cv_func_strerror_r_char_p=yes 8381fi 8382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8383 else 8384 # strerror_r is not declared. Choose between 8385 # systems that have relatively inaccessible declarations for the 8386 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 8387 # former has a strerror_r that returns char*, while the latter 8388 # has a strerror_r that returns `int'. 8389 # This test should segfault on the DEC system. 8390 if test "$cross_compiling" = yes; then : 8391 : 8392else 8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8394/* end confdefs.h. */ 8395$ac_includes_default 8396 extern char *strerror_r (); 8397int 8398main () 8399{ 8400char buf[100]; 8401 char x = *strerror_r (0, buf, sizeof buf); 8402 return ! isalpha (x); 8403 ; 8404 return 0; 8405} 8406_ACEOF 8407if ac_fn_c_try_run "$LINENO"; then : 8408 ac_cv_func_strerror_r_char_p=yes 8409fi 8410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8411 conftest.$ac_objext conftest.beam conftest.$ac_ext 8412fi 8413 8414 fi 8415 8416fi 8417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 8418$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 8419if test $ac_cv_func_strerror_r_char_p = yes; then 8420 8421$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 8422 8423fi 8424 8425 8426ac_busted_vpath_in_make=no 8427case "$build" in 8428 *-*-irix6.1*) # 64 bit only 8429 # busted vpath? 8430 ;; 8431 *-*-irix6*) # 6.2 (and later?) 8432 ac_busted_vpath_in_make=yes 8433 ;; 8434 *-*-solaris2.5.1) 8435 ac_busted_vpath_in_make=yes 8436 ;; 8437 *-*-unicosmp*) 8438 ac_busted_vpath_in_make=yes 8439 ;; 8440esac 8441 8442case "$ac_busted_vpath_in_make$srcdir" in 8443 yes.|no*) 8444 ;; 8445 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in 8446 '') 8447 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5 8448 esac 8449 ;; 8450esac 8451 8452case "$host" in 8453 *-*-aix4*) 8454 # Bug 2516: 8455 # Was *-*-aix[[4-9]]* 8456 # XXX only verified thru AIX6. But... 8457 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason 8458 # that this support would be in 5.3, removed in 6, and added back. 8459 # 8460 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub 8461 # (returning ENOSYS). I didn't check 4.2. If, in the future, 8462 # IBM pulls its thumbs out long enough to implement clock_settime, 8463 # this conditional will need to change. Maybe use AC_TRY_RUN 8464 # instead to try to set the time to itself and check errno. 8465 ;; 8466 *) 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 8468$as_echo_n "checking for library containing clock_gettime... " >&6; } 8469if ${ac_cv_search_clock_gettime+:} false; then : 8470 $as_echo_n "(cached) " >&6 8471else 8472 ac_func_search_save_LIBS=$LIBS 8473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8474/* end confdefs.h. */ 8475 8476/* Override any GCC internal prototype to avoid an error. 8477 Use char because int might match the return type of a GCC 8478 builtin and then its argument prototype would still apply. */ 8479#ifdef __cplusplus 8480extern "C" 8481#endif 8482char clock_gettime (); 8483int 8484main () 8485{ 8486return clock_gettime (); 8487 ; 8488 return 0; 8489} 8490_ACEOF 8491for ac_lib in '' rt; do 8492 if test -z "$ac_lib"; then 8493 ac_res="none required" 8494 else 8495 ac_res=-l$ac_lib 8496 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8497 fi 8498 if ac_fn_c_try_link "$LINENO"; then : 8499 ac_cv_search_clock_gettime=$ac_res 8500fi 8501rm -f core conftest.err conftest.$ac_objext \ 8502 conftest$ac_exeext 8503 if ${ac_cv_search_clock_gettime+:} false; then : 8504 break 8505fi 8506done 8507if ${ac_cv_search_clock_gettime+:} false; then : 8508 8509else 8510 ac_cv_search_clock_gettime=no 8511fi 8512rm conftest.$ac_ext 8513LIBS=$ac_func_search_save_LIBS 8514fi 8515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 8516$as_echo "$ac_cv_search_clock_gettime" >&6; } 8517ac_res=$ac_cv_search_clock_gettime 8518if test "$ac_res" != no; then : 8519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8520 case "$ac_cv_search_clock_gettime" in 8521 'none required') ;; 8522 no) ;; 8523 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;; 8524 esac 8525 8526fi 8527 8528 for ac_func in clock_getres clock_gettime clock_settime 8529do : 8530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8531ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8532if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8533 cat >>confdefs.h <<_ACEOF 8534#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8535_ACEOF 8536 8537fi 8538done 8539 8540 ;; 8541esac 8542 8543for ac_func in getclock stime timegm strlcpy strlcat 8544do : 8545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8546ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8547if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8548 cat >>confdefs.h <<_ACEOF 8549#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8550_ACEOF 8551 8552fi 8553done 8554 8555 8556# Bug 2713 8557LDADD_LIBUTIL= 8558 8559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5 8560$as_echo_n "checking for library containing snprintb... " >&6; } 8561if ${ac_cv_search_snprintb+:} false; then : 8562 $as_echo_n "(cached) " >&6 8563else 8564 ac_func_search_save_LIBS=$LIBS 8565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8566/* end confdefs.h. */ 8567 8568/* Override any GCC internal prototype to avoid an error. 8569 Use char because int might match the return type of a GCC 8570 builtin and then its argument prototype would still apply. */ 8571#ifdef __cplusplus 8572extern "C" 8573#endif 8574char snprintb (); 8575int 8576main () 8577{ 8578return snprintb (); 8579 ; 8580 return 0; 8581} 8582_ACEOF 8583for ac_lib in '' util; do 8584 if test -z "$ac_lib"; then 8585 ac_res="none required" 8586 else 8587 ac_res=-l$ac_lib 8588 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8589 fi 8590 if ac_fn_c_try_link "$LINENO"; then : 8591 ac_cv_search_snprintb=$ac_res 8592fi 8593rm -f core conftest.err conftest.$ac_objext \ 8594 conftest$ac_exeext 8595 if ${ac_cv_search_snprintb+:} false; then : 8596 break 8597fi 8598done 8599if ${ac_cv_search_snprintb+:} false; then : 8600 8601else 8602 ac_cv_search_snprintb=no 8603fi 8604rm conftest.$ac_ext 8605LIBS=$ac_func_search_save_LIBS 8606fi 8607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5 8608$as_echo "$ac_cv_search_snprintb" >&6; } 8609ac_res=$ac_cv_search_snprintb 8610if test "$ac_res" != no; then : 8611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8612 case "$ac_cv_search_snprintb" in 8613 'none required') ;; 8614 no) ;; 8615 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;; 8616 esac 8617 8618$as_echo "#define USE_SNPRINTB 1" >>confdefs.h 8619 8620fi 8621 8622 8623# 8624for ac_header in errno.h sys/socket.h sys/types.h time.h 8625do : 8626 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8627ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8628if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8629 cat >>confdefs.h <<_ACEOF 8630#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8631_ACEOF 8632 8633fi 8634 8635done 8636 8637for ac_header in net/if.h 8638do : 8639 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 8640 #ifdef HAVE_SYS_SOCKET_H 8641 # include <sys/socket.h> 8642 #endif 8643 8644" 8645if test "x$ac_cv_header_net_if_h" = xyes; then : 8646 cat >>confdefs.h <<_ACEOF 8647#define HAVE_NET_IF_H 1 8648_ACEOF 8649 8650fi 8651 8652done 8653 8654case "$host" in 8655 *-hp-hpux*) 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5 8657$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; } 8658if ${ntp_cv_predecl_mpinfou+:} false; then : 8659 $as_echo_n "(cached) " >&6 8660else 8661 8662 np_cv_predecl_mpinfou=no 8663 case "$ac_cv_header_net_if_h" in 8664 no) 8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8666/* end confdefs.h. */ 8667 8668 typedef union mpinfou { 8669 struct pdk_mpinfo *pdkptr; 8670 struct mpinfo *pikptr; 8671 } mpinfou_t; 8672 #ifdef HAVE_SYS_SOCKET_H 8673 # include <sys/socket.h> 8674 #endif 8675 #include <net/if.h> 8676 8677int 8678main () 8679{ 8680 8681 8682 8683 ; 8684 return 0; 8685} 8686_ACEOF 8687if ac_fn_c_try_compile "$LINENO"; then : 8688 8689 ntp_cv_predecl_mpinfou=yes 8690 ac_cv_header_net_if_h=yes 8691 8692 8693fi 8694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8695 esac 8696 8697 8698fi 8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5 8700$as_echo "$ntp_cv_predecl_mpinfou" >&6; } 8701 case "$ntp_cv_predecl_mpinfou" in 8702 yes) 8703 cat >>confdefs.h <<_ACEOF 8704#ifndef MPINFOU_PREDECLARED 8705# define MPINFOU_PREDECLARED 8706typedef union mpinfou { 8707 struct pdk_mpinfo *pdkptr; 8708 struct mpinfo *pikptr; 8709} mpinfou_t; 8710#endif 8711_ACEOF 8712 8713 esac 8714esac 8715 8716case "$host" in 8717 *-linux*) 8718 for ac_header in linux/if_addr.h 8719do : 8720 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" " 8721 #ifdef HAVE_SYS_SOCKET_H 8722 # include <sys/socket.h> 8723 #endif 8724 8725" 8726if test "x$ac_cv_header_linux_if_addr_h" = xyes; then : 8727 cat >>confdefs.h <<_ACEOF 8728#define HAVE_LINUX_IF_ADDR_H 1 8729_ACEOF 8730 8731fi 8732 8733done 8734 8735 8736$as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h 8737 8738esac 8739 8740for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h 8741do : 8742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8743ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8744if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8745 cat >>confdefs.h <<_ACEOF 8746#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8747_ACEOF 8748 8749fi 8750 8751done 8752 8753# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576 8754for ac_header in sys/sysctl.h 8755do : 8756 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 8757 #if defined HAVE_SYS_PARAM_H 8758 # include <sys/param.h> 8759 #endif 8760 8761" 8762if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 8763 cat >>confdefs.h <<_ACEOF 8764#define HAVE_SYS_SYSCTL_H 1 8765_ACEOF 8766 8767fi 8768 8769done 8770 8771for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h 8772do : 8773 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8774ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8775if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8776 cat >>confdefs.h <<_ACEOF 8777#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8778_ACEOF 8779 8780fi 8781 8782done 8783 8784 8785for ac_header in resolv.h 8786do : 8787 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " 8788 #ifdef HAVE_SYS_TYPES_H 8789 # include <sys/types.h> 8790 #endif 8791 #ifdef HAVE_NETINET_IN_H 8792 # include <netinet/in.h> 8793 #endif 8794 #ifdef HAVE_ARPA_NAMESER_H 8795 # include <arpa/nameser.h> 8796 #endif 8797 8798" 8799if test "x$ac_cv_header_resolv_h" = xyes; then : 8800 cat >>confdefs.h <<_ACEOF 8801#define HAVE_RESOLV_H 1 8802_ACEOF 8803 8804fi 8805 8806done 8807 8808 8809for ac_header in net/if_var.h 8810do : 8811 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" " 8812 #if HAVE_SYS_TYPES_H 8813 # include <sys/types.h> 8814 #endif 8815 #ifdef HAVE_SYS_SOCKET_H 8816 # include <sys/socket.h> 8817 #endif 8818 #ifdef HAVE_NETINET_IN_H 8819 # include <netinet/in.h> 8820 #endif 8821 #ifdef HAVE_NET_IF_H 8822 # include <net/if.h> 8823 #endif 8824 8825" 8826if test "x$ac_cv_header_net_if_var_h" = xyes; then : 8827 cat >>confdefs.h <<_ACEOF 8828#define HAVE_NET_IF_VAR_H 1 8829_ACEOF 8830 8831fi 8832 8833done 8834 8835 8836for ac_header in netinet/ip.h netinet/in_var.h 8837do : 8838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8839ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 8840 #ifdef HAVE_SYS_TYPES_H 8841 # include <sys/types.h> 8842 #endif 8843 #ifdef HAVE_SYS_SOCKET_H 8844 # include <sys/socket.h> 8845 #endif 8846 #ifdef HAVE_NET_IF_H 8847 # include <net/if.h> 8848 #endif 8849 #ifdef HAVE_NETINET_IN_H 8850 # include <netinet/in.h> 8851 #endif 8852 #ifdef HAVE_NET_IF_VAR_H 8853 # include <net/if_var.h> 8854 #endif 8855 #ifdef HAVE_NETINET_IN_SYSTM_H 8856 # include <netinet/in_systm.h> 8857 #endif 8858 8859" 8860if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8861 cat >>confdefs.h <<_ACEOF 8862#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8863_ACEOF 8864 8865fi 8866 8867done 8868 8869 8870# HMS: Do we need to check for -lsocket before or after these tests? 8871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 8872$as_echo_n "checking for library containing inet_pton... " >&6; } 8873if ${ac_cv_search_inet_pton+:} false; then : 8874 $as_echo_n "(cached) " >&6 8875else 8876 ac_func_search_save_LIBS=$LIBS 8877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8878/* end confdefs.h. */ 8879 8880/* Override any GCC internal prototype to avoid an error. 8881 Use char because int might match the return type of a GCC 8882 builtin and then its argument prototype would still apply. */ 8883#ifdef __cplusplus 8884extern "C" 8885#endif 8886char inet_pton (); 8887int 8888main () 8889{ 8890return inet_pton (); 8891 ; 8892 return 0; 8893} 8894_ACEOF 8895for ac_lib in '' nsl; do 8896 if test -z "$ac_lib"; then 8897 ac_res="none required" 8898 else 8899 ac_res=-l$ac_lib 8900 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8901 fi 8902 if ac_fn_c_try_link "$LINENO"; then : 8903 ac_cv_search_inet_pton=$ac_res 8904fi 8905rm -f core conftest.err conftest.$ac_objext \ 8906 conftest$ac_exeext 8907 if ${ac_cv_search_inet_pton+:} false; then : 8908 break 8909fi 8910done 8911if ${ac_cv_search_inet_pton+:} false; then : 8912 8913else 8914 ac_cv_search_inet_pton=no 8915fi 8916rm conftest.$ac_ext 8917LIBS=$ac_func_search_save_LIBS 8918fi 8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 8920$as_echo "$ac_cv_search_inet_pton" >&6; } 8921ac_res=$ac_cv_search_inet_pton 8922if test "$ac_res" != no; then : 8923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8924 case "$ac_cv_search_inet_pton" in 8925 'none required') ;; 8926 no) ;; 8927 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;; 8928 esac 8929 8930fi 8931 8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 8933$as_echo_n "checking for library containing inet_ntop... " >&6; } 8934if ${ac_cv_search_inet_ntop+:} false; then : 8935 $as_echo_n "(cached) " >&6 8936else 8937 ac_func_search_save_LIBS=$LIBS 8938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8939/* end confdefs.h. */ 8940 8941/* Override any GCC internal prototype to avoid an error. 8942 Use char because int might match the return type of a GCC 8943 builtin and then its argument prototype would still apply. */ 8944#ifdef __cplusplus 8945extern "C" 8946#endif 8947char inet_ntop (); 8948int 8949main () 8950{ 8951return inet_ntop (); 8952 ; 8953 return 0; 8954} 8955_ACEOF 8956for ac_lib in '' resolv; do 8957 if test -z "$ac_lib"; then 8958 ac_res="none required" 8959 else 8960 ac_res=-l$ac_lib 8961 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS" 8962 fi 8963 if ac_fn_c_try_link "$LINENO"; then : 8964 ac_cv_search_inet_ntop=$ac_res 8965fi 8966rm -f core conftest.err conftest.$ac_objext \ 8967 conftest$ac_exeext 8968 if ${ac_cv_search_inet_ntop+:} false; then : 8969 break 8970fi 8971done 8972if ${ac_cv_search_inet_ntop+:} false; then : 8973 8974else 8975 ac_cv_search_inet_ntop=no 8976fi 8977rm conftest.$ac_ext 8978LIBS=$ac_func_search_save_LIBS 8979fi 8980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 8981$as_echo "$ac_cv_search_inet_ntop" >&6; } 8982ac_res=$ac_cv_search_inet_ntop 8983if test "$ac_res" != no; then : 8984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8985 case "$ac_cv_search_inet_ntop" in 8986 'none required') ;; 8987 no) ;; 8988 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;; 8989 esac 8990 8991fi 8992 8993 8994# [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to 8995# avoid keying on the OS name: If we find socket functions in 8996# libsocket, next try for them in libxnet without libsocket, if found, 8997# list both. If we simply tested libxnet first, we would find the 8998# functions there and never add libsocket. See also [Bug 660] 8999# http://bugs.ntp.org/show_bug.cgi?id=660#c9 9000saved_LIBS=$LIBS 9001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 9002$as_echo_n "checking for library containing setsockopt... " >&6; } 9003if ${ac_cv_search_setsockopt+:} false; then : 9004 $as_echo_n "(cached) " >&6 9005else 9006 ac_func_search_save_LIBS=$LIBS 9007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9008/* end confdefs.h. */ 9009 9010/* Override any GCC internal prototype to avoid an error. 9011 Use char because int might match the return type of a GCC 9012 builtin and then its argument prototype would still apply. */ 9013#ifdef __cplusplus 9014extern "C" 9015#endif 9016char setsockopt (); 9017int 9018main () 9019{ 9020return setsockopt (); 9021 ; 9022 return 0; 9023} 9024_ACEOF 9025for ac_lib in '' socket; do 9026 if test -z "$ac_lib"; then 9027 ac_res="none required" 9028 else 9029 ac_res=-l$ac_lib 9030 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9031 fi 9032 if ac_fn_c_try_link "$LINENO"; then : 9033 ac_cv_search_setsockopt=$ac_res 9034fi 9035rm -f core conftest.err conftest.$ac_objext \ 9036 conftest$ac_exeext 9037 if ${ac_cv_search_setsockopt+:} false; then : 9038 break 9039fi 9040done 9041if ${ac_cv_search_setsockopt+:} false; then : 9042 9043else 9044 ac_cv_search_setsockopt=no 9045fi 9046rm conftest.$ac_ext 9047LIBS=$ac_func_search_save_LIBS 9048fi 9049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 9050$as_echo "$ac_cv_search_setsockopt" >&6; } 9051ac_res=$ac_cv_search_setsockopt 9052if test "$ac_res" != no; then : 9053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9054 case "$ac_cv_search_setsockopt" in 9055 'none required') ;; 9056 no) ;; 9057 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;; 9058 esac 9059 9060fi 9061 9062case "$ac_cv_search_setsockopt" in 9063 -lsocket) 9064 LIBS="$saved_LIBS" 9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5 9066$as_echo_n "checking for library containing getsockopt... " >&6; } 9067if ${ac_cv_search_getsockopt+:} false; then : 9068 $as_echo_n "(cached) " >&6 9069else 9070 ac_func_search_save_LIBS=$LIBS 9071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9072/* end confdefs.h. */ 9073 9074/* Override any GCC internal prototype to avoid an error. 9075 Use char because int might match the return type of a GCC 9076 builtin and then its argument prototype would still apply. */ 9077#ifdef __cplusplus 9078extern "C" 9079#endif 9080char getsockopt (); 9081int 9082main () 9083{ 9084return getsockopt (); 9085 ; 9086 return 0; 9087} 9088_ACEOF 9089for ac_lib in '' xnet; do 9090 if test -z "$ac_lib"; then 9091 ac_res="none required" 9092 else 9093 ac_res=-l$ac_lib 9094 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9095 fi 9096 if ac_fn_c_try_link "$LINENO"; then : 9097 ac_cv_search_getsockopt=$ac_res 9098fi 9099rm -f core conftest.err conftest.$ac_objext \ 9100 conftest$ac_exeext 9101 if ${ac_cv_search_getsockopt+:} false; then : 9102 break 9103fi 9104done 9105if ${ac_cv_search_getsockopt+:} false; then : 9106 9107else 9108 ac_cv_search_getsockopt=no 9109fi 9110rm conftest.$ac_ext 9111LIBS=$ac_func_search_save_LIBS 9112fi 9113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5 9114$as_echo "$ac_cv_search_getsockopt" >&6; } 9115ac_res=$ac_cv_search_getsockopt 9116if test "$ac_res" != no; then : 9117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9118 case "$ac_cv_search_getsockopt" in 9119 'none required') ;; 9120 no) ;; 9121 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;; 9122 esac 9123 9124fi 9125 9126 # XXX Possible trouble here - reading the comments above and looking at the 9127 # code below I wonder if we'll add -lxnet when we don't need it. 9128 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's 9129 # there when it is not needed? 9130 case "$ac_cv_search_getsockopt" in 9131 -lxnet) 9132 LIBS="-lxnet -lsocket $saved_LIBS" 9133 ;; 9134 *) LIBS="-lsocket $saved_LIBS" 9135 ;; 9136 esac 9137 ;; 9138esac 9139{ saved_LIBS=; unset saved_LIBS;} 9140 9141# Bug 2427 - look for recvmsg here. 9142for ac_func in recvmsg 9143do : 9144 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 9145if test "x$ac_cv_func_recvmsg" = xyes; then : 9146 cat >>confdefs.h <<_ACEOF 9147#define HAVE_RECVMSG 1 9148_ACEOF 9149 9150fi 9151done 9152 9153 9154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 9155$as_echo_n "checking for inline... " >&6; } 9156if ${ac_cv_c_inline+:} false; then : 9157 $as_echo_n "(cached) " >&6 9158else 9159 ac_cv_c_inline=no 9160for ac_kw in inline __inline__ __inline; do 9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9162/* end confdefs.h. */ 9163#ifndef __cplusplus 9164typedef int foo_t; 9165static $ac_kw foo_t static_foo () {return 0; } 9166$ac_kw foo_t foo () {return 0; } 9167#endif 9168 9169_ACEOF 9170if ac_fn_c_try_compile "$LINENO"; then : 9171 ac_cv_c_inline=$ac_kw 9172fi 9173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9174 test "$ac_cv_c_inline" != no && break 9175done 9176 9177fi 9178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 9179$as_echo "$ac_cv_c_inline" >&6; } 9180 9181case $ac_cv_c_inline in 9182 inline | yes) ;; 9183 *) 9184 case $ac_cv_c_inline in 9185 no) ac_val=;; 9186 *) ac_val=$ac_cv_c_inline;; 9187 esac 9188 cat >>confdefs.h <<_ACEOF 9189#ifndef __cplusplus 9190#define inline $ac_val 9191#endif 9192_ACEOF 9193 ;; 9194esac 9195 9196 9197case "$ac_cv_c_inline" in 9198 '') 9199 ;; 9200 *) 9201 9202$as_echo "#define HAVE_INLINE 1" >>confdefs.h 9203 9204 9205esac 9206 9207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 9208$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 9209if ${ac_cv_header_time+:} false; then : 9210 $as_echo_n "(cached) " >&6 9211else 9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9213/* end confdefs.h. */ 9214#include <sys/types.h> 9215#include <sys/time.h> 9216#include <time.h> 9217 9218int 9219main () 9220{ 9221if ((struct tm *) 0) 9222return 0; 9223 ; 9224 return 0; 9225} 9226_ACEOF 9227if ac_fn_c_try_compile "$LINENO"; then : 9228 ac_cv_header_time=yes 9229else 9230 ac_cv_header_time=no 9231fi 9232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9233fi 9234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 9235$as_echo "$ac_cv_header_time" >&6; } 9236if test $ac_cv_header_time = yes; then 9237 9238$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 9239 9240fi 9241 9242# The cast to long int works around a bug in the HP C Compiler 9243# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9244# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9245# This bug is HP SR number 8606223364. 9246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 9247$as_echo_n "checking size of time_t... " >&6; } 9248if ${ac_cv_sizeof_time_t+:} false; then : 9249 $as_echo_n "(cached) " >&6 9250else 9251 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 9252 9253else 9254 if test "$ac_cv_type_time_t" = yes; then 9255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9257as_fn_error 77 "cannot compute sizeof (time_t) 9258See \`config.log' for more details" "$LINENO" 5; } 9259 else 9260 ac_cv_sizeof_time_t=0 9261 fi 9262fi 9263 9264fi 9265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 9266$as_echo "$ac_cv_sizeof_time_t" >&6; } 9267 9268 9269 9270cat >>confdefs.h <<_ACEOF 9271#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 9272_ACEOF 9273 9274 9275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 9276$as_echo_n "checking whether char is unsigned... " >&6; } 9277if ${ac_cv_c_char_unsigned+:} false; then : 9278 $as_echo_n "(cached) " >&6 9279else 9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9281/* end confdefs.h. */ 9282$ac_includes_default 9283int 9284main () 9285{ 9286static int test_array [1 - 2 * !(((char) -1) < 0)]; 9287test_array [0] = 0; 9288return test_array [0]; 9289 9290 ; 9291 return 0; 9292} 9293_ACEOF 9294if ac_fn_c_try_compile "$LINENO"; then : 9295 ac_cv_c_char_unsigned=no 9296else 9297 ac_cv_c_char_unsigned=yes 9298fi 9299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9300fi 9301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 9302$as_echo "$ac_cv_c_char_unsigned" >&6; } 9303if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 9304 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 9305 9306fi 9307 # The cast to long int works around a bug in the HP C Compiler 9308# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9309# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9310# This bug is HP SR number 8606223364. 9311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5 9312$as_echo_n "checking size of signed char... " >&6; } 9313if ${ac_cv_sizeof_signed_char+:} false; then : 9314 $as_echo_n "(cached) " >&6 9315else 9316 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then : 9317 9318else 9319 if test "$ac_cv_type_signed_char" = yes; then 9320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9322as_fn_error 77 "cannot compute sizeof (signed char) 9323See \`config.log' for more details" "$LINENO" 5; } 9324 else 9325 ac_cv_sizeof_signed_char=0 9326 fi 9327fi 9328 9329fi 9330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5 9331$as_echo "$ac_cv_sizeof_signed_char" >&6; } 9332 9333 9334 9335cat >>confdefs.h <<_ACEOF 9336#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 9337_ACEOF 9338 9339 9340ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default" 9341if test "x$ac_cv_type_s_char" = xyes; then : 9342 9343cat >>confdefs.h <<_ACEOF 9344#define HAVE_S_CHAR 1 9345_ACEOF 9346 9347 9348fi 9349ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 9350if test "x$ac_cv_type_long_long" = xyes; then : 9351 9352cat >>confdefs.h <<_ACEOF 9353#define HAVE_LONG_LONG 1 9354_ACEOF 9355 9356 9357fi 9358 9359# The cast to long int works around a bug in the HP C Compiler 9360# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9361# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9362# This bug is HP SR number 8606223364. 9363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 9364$as_echo_n "checking size of short... " >&6; } 9365if ${ac_cv_sizeof_short+:} false; then : 9366 $as_echo_n "(cached) " >&6 9367else 9368 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 9369 9370else 9371 if test "$ac_cv_type_short" = yes; then 9372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9374as_fn_error 77 "cannot compute sizeof (short) 9375See \`config.log' for more details" "$LINENO" 5; } 9376 else 9377 ac_cv_sizeof_short=0 9378 fi 9379fi 9380 9381fi 9382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 9383$as_echo "$ac_cv_sizeof_short" >&6; } 9384 9385 9386 9387cat >>confdefs.h <<_ACEOF 9388#define SIZEOF_SHORT $ac_cv_sizeof_short 9389_ACEOF 9390 9391 9392# The cast to long int works around a bug in the HP C Compiler 9393# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9394# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9395# This bug is HP SR number 8606223364. 9396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 9397$as_echo_n "checking size of int... " >&6; } 9398if ${ac_cv_sizeof_int+:} false; then : 9399 $as_echo_n "(cached) " >&6 9400else 9401 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 9402 9403else 9404 if test "$ac_cv_type_int" = yes; then 9405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9407as_fn_error 77 "cannot compute sizeof (int) 9408See \`config.log' for more details" "$LINENO" 5; } 9409 else 9410 ac_cv_sizeof_int=0 9411 fi 9412fi 9413 9414fi 9415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 9416$as_echo "$ac_cv_sizeof_int" >&6; } 9417 9418 9419 9420cat >>confdefs.h <<_ACEOF 9421#define SIZEOF_INT $ac_cv_sizeof_int 9422_ACEOF 9423 9424 9425# The cast to long int works around a bug in the HP C Compiler 9426# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9427# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9428# This bug is HP SR number 8606223364. 9429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 9430$as_echo_n "checking size of long... " >&6; } 9431if ${ac_cv_sizeof_long+:} false; then : 9432 $as_echo_n "(cached) " >&6 9433else 9434 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 9435 9436else 9437 if test "$ac_cv_type_long" = yes; then 9438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9440as_fn_error 77 "cannot compute sizeof (long) 9441See \`config.log' for more details" "$LINENO" 5; } 9442 else 9443 ac_cv_sizeof_long=0 9444 fi 9445fi 9446 9447fi 9448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 9449$as_echo "$ac_cv_sizeof_long" >&6; } 9450 9451 9452 9453cat >>confdefs.h <<_ACEOF 9454#define SIZEOF_LONG $ac_cv_sizeof_long 9455_ACEOF 9456 9457 9458 9459case "$ac_cv_type_long_long" in 9460 no) 9461 ;; 9462 *) 9463 # The cast to long int works around a bug in the HP C Compiler 9464# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9465# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9466# This bug is HP SR number 8606223364. 9467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 9468$as_echo_n "checking size of long long... " >&6; } 9469if ${ac_cv_sizeof_long_long+:} false; then : 9470 $as_echo_n "(cached) " >&6 9471else 9472 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 9473 9474else 9475 if test "$ac_cv_type_long_long" = yes; then 9476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9478as_fn_error 77 "cannot compute sizeof (long long) 9479See \`config.log' for more details" "$LINENO" 5; } 9480 else 9481 ac_cv_sizeof_long_long=0 9482 fi 9483fi 9484 9485fi 9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 9487$as_echo "$ac_cv_sizeof_long_long" >&6; } 9488 9489 9490 9491cat >>confdefs.h <<_ACEOF 9492#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 9493_ACEOF 9494 9495 9496 ;; 9497esac 9498 9499case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in 9500 *yes) 9501 # We have a typedef for s_char. Might as well believe it... 9502 ;; 9503 no0no) 9504 # We have signed chars, can't say 'signed char', no s_char typedef. 9505 9506$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 9507 9508 ;; 9509 no1no) 9510 # We have signed chars, can say 'signed char', no s_char typedef. 9511 9512$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 9513 9514 ;; 9515 yes0no) 9516 # We have unsigned chars, can't say 'signed char', no s_char typedef. 9517 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5 9518 ;; 9519 yes1no) 9520 # We have unsigned chars, can say 'signed char', no s_char typedef. 9521 9522$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 9523 9524 ;; 9525esac 9526 9527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 9528$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 9529if ${ac_cv_type_uid_t+:} false; then : 9530 $as_echo_n "(cached) " >&6 9531else 9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533/* end confdefs.h. */ 9534#include <sys/types.h> 9535 9536_ACEOF 9537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9538 $EGREP "uid_t" >/dev/null 2>&1; then : 9539 ac_cv_type_uid_t=yes 9540else 9541 ac_cv_type_uid_t=no 9542fi 9543rm -f conftest* 9544 9545fi 9546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 9547$as_echo "$ac_cv_type_uid_t" >&6; } 9548if test $ac_cv_type_uid_t = no; then 9549 9550$as_echo "#define uid_t int" >>confdefs.h 9551 9552 9553$as_echo "#define gid_t int" >>confdefs.h 9554 9555fi 9556 9557 9558 9559 9560 9561 9562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5 9563$as_echo_n "checking if we're including debugging code... " >&6; } 9564# Check whether --enable-debugging was given. 9565if test "${enable_debugging+set}" = set; then : 9566 enableval=$enable_debugging; ntp_ok=$enableval 9567else 9568 ntp_ok=yes 9569 9570fi 9571 9572case "$ntp_ok" in 9573 yes) 9574 9575$as_echo "#define DEBUG 1" >>confdefs.h 9576 9577esac 9578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 9579$as_echo "$ntp_ok" >&6; } 9580 9581 9582 9583# check if we can compile with pthreads 9584for ac_header in semaphore.h 9585do : 9586 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" 9587if test "x$ac_cv_header_semaphore_h" = xyes; then : 9588 cat >>confdefs.h <<_ACEOF 9589#define HAVE_SEMAPHORE_H 1 9590_ACEOF 9591 9592fi 9593 9594done 9595 9596for ac_func in socketpair 9597do : 9598 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" 9599if test "x$ac_cv_func_socketpair" = xyes; then : 9600 cat >>confdefs.h <<_ACEOF 9601#define HAVE_SOCKETPAIR 1 9602_ACEOF 9603 9604fi 9605done 9606 9607# Check whether --enable-thread-support was given. 9608if test "${enable_thread_support+set}" = set; then : 9609 enableval=$enable_thread_support; 9610else 9611 enable_thread_support=yes 9612 9613fi 9614 9615have_pthreads=no 9616case "$enable_thread_support" in 9617 no) ;; 9618 *) 9619 ol_found_pthreads=no 9620 9621 9622 9623ac_ext=c 9624ac_cpp='$CPP $CPPFLAGS' 9625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9627ac_compiler_gnu=$ac_cv_c_compiler_gnu 9628 9629# OpenLDAP --with-threads 9630 9631# Check whether --with-threads was given. 9632if test "${with_threads+set}" = set; then : 9633 withval=$with_threads; 9634 ol_arg=invalid 9635 for ol_val in auto nt posix mach pth lwp yes no manual ; do 9636 if test "$withval" = "$ol_val" ; then 9637 ol_arg="$ol_val" 9638 fi 9639 done 9640 if test "$ol_arg" = "invalid" ; then 9641 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5 9642 fi 9643 ol_with_threads="$ol_arg" 9644 9645else 9646 ol_with_threads="auto" 9647fi 9648# end --with-threads 9649 9650 9651case "$ol_with_threads$host" in 9652 auto*-*-solaris2.[0-6]) 9653 ol_with_threads=no 9654 ;; 9655esac 9656 9657 9658ol_aix_threads=no 9659case "$host" in 9660*-*-aix*) if test -z "$CC" ; then 9661 case "$ol_with_threads" in 9662 auto | yes | posix) ol_aix_threads=yes ;; 9663 esac 9664 fi 9665;; 9666esac 9667 9668if test $ol_aix_threads = yes ; then 9669 if test -z "${CC}" ; then 9670 for ac_prog in cc_r xlc_r cc 9671do 9672 # Extract the first word of "$ac_prog", so it can be a program name with args. 9673set dummy $ac_prog; ac_word=$2 9674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9675$as_echo_n "checking for $ac_word... " >&6; } 9676if ${ac_cv_prog_CC+:} false; then : 9677 $as_echo_n "(cached) " >&6 9678else 9679 if test -n "$CC"; then 9680 ac_cv_prog_CC="$CC" # Let the user override the test. 9681else 9682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9683for as_dir in $PATH 9684do 9685 IFS=$as_save_IFS 9686 test -z "$as_dir" && as_dir=. 9687 for ac_exec_ext in '' $ac_executable_extensions; do 9688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9689 ac_cv_prog_CC="$ac_prog" 9690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9691 break 2 9692 fi 9693done 9694 done 9695IFS=$as_save_IFS 9696 9697fi 9698fi 9699CC=$ac_cv_prog_CC 9700if test -n "$CC"; then 9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 9702$as_echo "$CC" >&6; } 9703else 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9705$as_echo "no" >&6; } 9706fi 9707 9708 9709 test -n "$CC" && break 9710done 9711 9712 9713 if test "$CC" = cc ; then 9714 if test $ol_with_threads != auto ; then 9715 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5 9716 else 9717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5 9718$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;} 9719 fi 9720 ol_with_threads=no 9721 fi 9722 fi 9723 9724 case ${CC} in cc_r | xlc_r) 9725 ol_with_threads=posix 9726 ol_cv_pthread_create=yes 9727 ;; 9728 esac 9729fi 9730 9731ol_link_threads=no 9732# OpenLDAP --with-yielding_select 9733 9734# Check whether --with-yielding_select was given. 9735if test "${with_yielding_select+set}" = set; then : 9736 withval=$with_yielding_select; 9737 ol_arg=invalid 9738 for ol_val in auto yes no manual ; do 9739 if test "$withval" = "$ol_val" ; then 9740 ol_arg="$ol_val" 9741 fi 9742 done 9743 if test "$ol_arg" = "invalid" ; then 9744 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5 9745 fi 9746 ol_with_yielding_select="$ol_arg" 9747 9748else 9749 ol_with_yielding_select="auto" 9750fi 9751# end --with-yielding_select 9752 9753 9754case $ol_with_threads in auto | yes | nt) 9755 9756 9757 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread" 9758if test "x$ac_cv_func__beginthread" = xyes; then : 9759 9760fi 9761 9762 9763 if test $ac_cv_func__beginthread = yes ; then 9764 9765$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h 9766 9767 ol_cv_nt_threads=yes 9768 fi 9769 9770 9771 if test "$ol_cv_nt_threads" = yes ; then 9772 ol_link_threads=nt 9773 ol_with_threads=found 9774 ol_with_yielding_select=yes 9775 9776 9777$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h 9778 9779 9780$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h 9781 9782 fi 9783 9784 if test $ol_with_threads = nt ; then 9785 as_fn_error $? "could not locate NT Threads" "$LINENO" 5 9786 fi 9787 ;; 9788esac 9789 9790case $ol_with_threads in auto | yes | posix) 9791 9792 for ac_header in pthread.h 9793do : 9794 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 9795if test "x$ac_cv_header_pthread_h" = xyes; then : 9796 cat >>confdefs.h <<_ACEOF 9797#define HAVE_PTHREAD_H 1 9798_ACEOF 9799 9800fi 9801 9802done 9803 9804 9805 if test $ac_cv_header_pthread_h = yes ; then 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5 9807$as_echo_n "checking POSIX thread version... " >&6; } 9808if ${ol_cv_pthread_version+:} false; then : 9809 $as_echo_n "(cached) " >&6 9810else 9811 9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9813/* end confdefs.h. */ 9814 9815# include <pthread.h> 9816 9817int 9818main () 9819{ 9820 9821 int i = PTHREAD_CREATE_JOINABLE; 9822 9823 ; 9824 return 0; 9825} 9826_ACEOF 9827if ac_fn_c_try_compile "$LINENO"; then : 9828 9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9830/* end confdefs.h. */ 9831#include <pthread.h> 9832 9833_ACEOF 9834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9835 $EGREP "pthread_detach" >/dev/null 2>&1; then : 9836 ol_cv_pthread_version=10 9837else 9838 ol_cv_pthread_version=8 9839fi 9840rm -f conftest* 9841 9842else 9843 9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9845/* end confdefs.h. */ 9846 9847# include <pthread.h> 9848# ifdef PTHREAD_CREATE_UNDETACHED 9849 draft7 9850# endif 9851 9852_ACEOF 9853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9854 $EGREP "draft7" >/dev/null 2>&1; then : 9855 ol_cv_pthread_version=7 9856else 9857 9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9859/* end confdefs.h. */ 9860#include <pthread.h> 9861 9862_ACEOF 9863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9864 $EGREP "pthread_attr_init" >/dev/null 2>&1; then : 9865 ol_cv_pthread_version=6 9866else 9867 9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9869/* end confdefs.h. */ 9870 9871# include <pthread.h> 9872#ifdef PTHREAD_MUTEX_INITIALIZER 9873 draft5 9874#endif 9875 9876_ACEOF 9877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9878 $EGREP "draft5" >/dev/null 2>&1; then : 9879 ol_cv_pthread_version=5 9880else 9881 ol_cv_pthread_version=4 9882fi 9883rm -f conftest* 9884 9885fi 9886rm -f conftest* 9887 9888fi 9889rm -f conftest* 9890 9891fi 9892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9893 9894fi 9895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5 9896$as_echo "$ol_cv_pthread_version" >&6; } 9897 9898 9899 if test $ol_cv_pthread_version != 0 ; then 9900 9901cat >>confdefs.h <<_ACEOF 9902#define HAVE_PTHREADS $ol_cv_pthread_version 9903_ACEOF 9904 9905 else 9906 as_fn_error $? "unknown pthread version" "$LINENO" 5 9907 fi 9908 9909 # consider threads found 9910 ol_with_threads=found 9911 9912 9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 9914$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 9915if ${ol_cv_header_linux_threads+:} false; then : 9916 $as_echo_n "(cached) " >&6 9917else 9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9919/* end confdefs.h. */ 9920#include <pthread.h> 9921_ACEOF 9922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9923 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 9924 ol_cv_header_linux_threads=yes 9925else 9926 ol_cv_header_linux_threads=no 9927fi 9928rm -f conftest* 9929 9930 9931fi 9932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 9933$as_echo "$ol_cv_header_linux_threads" >&6; } 9934 if test $ol_cv_header_linux_threads = yes; then 9935 9936$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 9937 9938 fi 9939 9940 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5 9942$as_echo_n "checking for GNU Pth pthread.h... " >&6; } 9943if ${ol_cv_header_gnu_pth_pthread_h+:} false; then : 9944 $as_echo_n "(cached) " >&6 9945else 9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9947/* end confdefs.h. */ 9948#include <pthread.h> 9949#ifdef _POSIX_THREAD_IS_GNU_PTH 9950 __gnu_pth__; 9951#endif 9952 9953_ACEOF 9954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9955 $EGREP "__gnu_pth__" >/dev/null 2>&1; then : 9956 ol_cv_header_gnu_pth_pthread_h=yes 9957else 9958 ol_cv_header_gnu_pth_pthread_h=no 9959fi 9960rm -f conftest* 9961 9962 9963fi 9964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5 9965$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; } 9966 9967 9968 if test $ol_cv_header_gnu_pth_pthread_h = no ; then 9969 for ac_header in sched.h 9970do : 9971 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 9972if test "x$ac_cv_header_sched_h" = xyes; then : 9973 cat >>confdefs.h <<_ACEOF 9974#define HAVE_SCHED_H 1 9975_ACEOF 9976 9977fi 9978 9979done 9980 9981 fi 9982 9983 9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5 9985$as_echo_n "checking for pthread_create in default libraries... " >&6; } 9986if ${ol_cv_pthread_create+:} false; then : 9987 $as_echo_n "(cached) " >&6 9988else 9989 9990 if test "$cross_compiling" = yes; then : 9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9992/* end confdefs.h. */ 9993 9994/* pthread test headers */ 9995#include <pthread.h> 9996#if HAVE_PTHREADS < 7 9997#include <errno.h> 9998#endif 9999#ifndef NULL 10000#define NULL (void*)0 10001#endif 10002 10003static void *task(p) 10004 void *p; 10005{ 10006 return (void *) (p == NULL); 10007} 10008 10009int 10010main () 10011{ 10012 10013 /* pthread test function */ 10014#ifndef PTHREAD_CREATE_DETACHED 10015#define PTHREAD_CREATE_DETACHED 1 10016#endif 10017 pthread_t t; 10018 int status; 10019 int detach = PTHREAD_CREATE_DETACHED; 10020 10021#if HAVE_PTHREADS > 4 10022 /* Final pthreads */ 10023 pthread_attr_t attr; 10024 10025 status = pthread_attr_init(&attr); 10026 if( status ) return status; 10027 10028#if HAVE_PTHREADS < 7 10029 status = pthread_attr_setdetachstate(&attr, &detach); 10030 if( status < 0 ) status = errno; 10031#else 10032 status = pthread_attr_setdetachstate(&attr, detach); 10033#endif 10034 if( status ) return status; 10035 status = pthread_create( &t, &attr, task, NULL ); 10036#if HAVE_PTHREADS < 7 10037 if( status < 0 ) status = errno; 10038#endif 10039 if( status ) return status; 10040#else 10041 /* Draft 4 pthreads */ 10042 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10043 if( status ) return errno; 10044 10045 /* give thread a chance to complete */ 10046 /* it should remain joinable and hence detachable */ 10047 sleep( 1 ); 10048 10049 status = pthread_detach( &t ); 10050 if( status ) return errno; 10051#endif 10052 10053#ifdef HAVE_LINUX_THREADS 10054 pthread_kill_other_threads_np(); 10055#endif 10056 10057 return 0; 10058 10059 ; 10060 return 0; 10061} 10062_ACEOF 10063if ac_fn_c_try_link "$LINENO"; then : 10064 ol_cv_pthread_create=yes 10065else 10066 ol_cv_pthread_create=no 10067fi 10068rm -f core conftest.err conftest.$ac_objext \ 10069 conftest$ac_exeext conftest.$ac_ext 10070else 10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10072/* end confdefs.h. */ 10073 10074 10075/* pthread test headers */ 10076#include <pthread.h> 10077#if HAVE_PTHREADS < 7 10078#include <errno.h> 10079#endif 10080#ifndef NULL 10081#define NULL (void*)0 10082#endif 10083 10084static void *task(p) 10085 void *p; 10086{ 10087 return (void *) (p == NULL); 10088} 10089 10090 10091int main(argc, argv) 10092 int argc; 10093 char **argv; 10094{ 10095 10096 /* pthread test function */ 10097#ifndef PTHREAD_CREATE_DETACHED 10098#define PTHREAD_CREATE_DETACHED 1 10099#endif 10100 pthread_t t; 10101 int status; 10102 int detach = PTHREAD_CREATE_DETACHED; 10103 10104#if HAVE_PTHREADS > 4 10105 /* Final pthreads */ 10106 pthread_attr_t attr; 10107 10108 status = pthread_attr_init(&attr); 10109 if( status ) return status; 10110 10111#if HAVE_PTHREADS < 7 10112 status = pthread_attr_setdetachstate(&attr, &detach); 10113 if( status < 0 ) status = errno; 10114#else 10115 status = pthread_attr_setdetachstate(&attr, detach); 10116#endif 10117 if( status ) return status; 10118 status = pthread_create( &t, &attr, task, NULL ); 10119#if HAVE_PTHREADS < 7 10120 if( status < 0 ) status = errno; 10121#endif 10122 if( status ) return status; 10123#else 10124 /* Draft 4 pthreads */ 10125 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10126 if( status ) return errno; 10127 10128 /* give thread a chance to complete */ 10129 /* it should remain joinable and hence detachable */ 10130 sleep( 1 ); 10131 10132 status = pthread_detach( &t ); 10133 if( status ) return errno; 10134#endif 10135 10136#ifdef HAVE_LINUX_THREADS 10137 pthread_kill_other_threads_np(); 10138#endif 10139 10140 return 0; 10141 10142} 10143 10144_ACEOF 10145if ac_fn_c_try_run "$LINENO"; then : 10146 ol_cv_pthread_create=yes 10147else 10148 ol_cv_pthread_create=no 10149fi 10150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10151 conftest.$ac_objext conftest.beam conftest.$ac_ext 10152fi 10153 10154fi 10155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5 10156$as_echo "$ol_cv_pthread_create" >&6; } 10157 10158 if test $ol_cv_pthread_create != no ; then 10159 ol_link_threads=posix 10160 ol_link_pthreads="" 10161 fi 10162 10163 # Pthread try link: -kthread (ol_cv_pthread_kthread) 10164if test "$ol_link_threads" = no ; then 10165 # try -kthread 10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5 10167$as_echo_n "checking for pthread link with -kthread... " >&6; } 10168if ${ol_cv_pthread_kthread+:} false; then : 10169 $as_echo_n "(cached) " >&6 10170else 10171 10172 # save the flags 10173 ol_LIBS="$LIBS" 10174 LIBS="-kthread $LIBS" 10175 10176 if test "$cross_compiling" = yes; then : 10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10178/* end confdefs.h. */ 10179 10180/* pthread test headers */ 10181#include <pthread.h> 10182#if HAVE_PTHREADS < 7 10183#include <errno.h> 10184#endif 10185#ifndef NULL 10186#define NULL (void*)0 10187#endif 10188 10189static void *task(p) 10190 void *p; 10191{ 10192 return (void *) (p == NULL); 10193} 10194 10195int 10196main () 10197{ 10198 10199 /* pthread test function */ 10200#ifndef PTHREAD_CREATE_DETACHED 10201#define PTHREAD_CREATE_DETACHED 1 10202#endif 10203 pthread_t t; 10204 int status; 10205 int detach = PTHREAD_CREATE_DETACHED; 10206 10207#if HAVE_PTHREADS > 4 10208 /* Final pthreads */ 10209 pthread_attr_t attr; 10210 10211 status = pthread_attr_init(&attr); 10212 if( status ) return status; 10213 10214#if HAVE_PTHREADS < 7 10215 status = pthread_attr_setdetachstate(&attr, &detach); 10216 if( status < 0 ) status = errno; 10217#else 10218 status = pthread_attr_setdetachstate(&attr, detach); 10219#endif 10220 if( status ) return status; 10221 status = pthread_create( &t, &attr, task, NULL ); 10222#if HAVE_PTHREADS < 7 10223 if( status < 0 ) status = errno; 10224#endif 10225 if( status ) return status; 10226#else 10227 /* Draft 4 pthreads */ 10228 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10229 if( status ) return errno; 10230 10231 /* give thread a chance to complete */ 10232 /* it should remain joinable and hence detachable */ 10233 sleep( 1 ); 10234 10235 status = pthread_detach( &t ); 10236 if( status ) return errno; 10237#endif 10238 10239#ifdef HAVE_LINUX_THREADS 10240 pthread_kill_other_threads_np(); 10241#endif 10242 10243 return 0; 10244 10245 ; 10246 return 0; 10247} 10248_ACEOF 10249if ac_fn_c_try_link "$LINENO"; then : 10250 ol_cv_pthread_kthread=yes 10251else 10252 ol_cv_pthread_kthread=no 10253fi 10254rm -f core conftest.err conftest.$ac_objext \ 10255 conftest$ac_exeext conftest.$ac_ext 10256else 10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10258/* end confdefs.h. */ 10259 10260 10261/* pthread test headers */ 10262#include <pthread.h> 10263#if HAVE_PTHREADS < 7 10264#include <errno.h> 10265#endif 10266#ifndef NULL 10267#define NULL (void*)0 10268#endif 10269 10270static void *task(p) 10271 void *p; 10272{ 10273 return (void *) (p == NULL); 10274} 10275 10276 10277int main(argc, argv) 10278 int argc; 10279 char **argv; 10280{ 10281 10282 /* pthread test function */ 10283#ifndef PTHREAD_CREATE_DETACHED 10284#define PTHREAD_CREATE_DETACHED 1 10285#endif 10286 pthread_t t; 10287 int status; 10288 int detach = PTHREAD_CREATE_DETACHED; 10289 10290#if HAVE_PTHREADS > 4 10291 /* Final pthreads */ 10292 pthread_attr_t attr; 10293 10294 status = pthread_attr_init(&attr); 10295 if( status ) return status; 10296 10297#if HAVE_PTHREADS < 7 10298 status = pthread_attr_setdetachstate(&attr, &detach); 10299 if( status < 0 ) status = errno; 10300#else 10301 status = pthread_attr_setdetachstate(&attr, detach); 10302#endif 10303 if( status ) return status; 10304 status = pthread_create( &t, &attr, task, NULL ); 10305#if HAVE_PTHREADS < 7 10306 if( status < 0 ) status = errno; 10307#endif 10308 if( status ) return status; 10309#else 10310 /* Draft 4 pthreads */ 10311 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10312 if( status ) return errno; 10313 10314 /* give thread a chance to complete */ 10315 /* it should remain joinable and hence detachable */ 10316 sleep( 1 ); 10317 10318 status = pthread_detach( &t ); 10319 if( status ) return errno; 10320#endif 10321 10322#ifdef HAVE_LINUX_THREADS 10323 pthread_kill_other_threads_np(); 10324#endif 10325 10326 return 0; 10327 10328} 10329 10330_ACEOF 10331if ac_fn_c_try_run "$LINENO"; then : 10332 ol_cv_pthread_kthread=yes 10333else 10334 ol_cv_pthread_kthread=no 10335fi 10336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10337 conftest.$ac_objext conftest.beam conftest.$ac_ext 10338fi 10339 10340 10341 # restore the LIBS 10342 LIBS="$ol_LIBS" 10343 10344fi 10345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5 10346$as_echo "$ol_cv_pthread_kthread" >&6; } 10347 10348 if test $ol_cv_pthread_kthread = yes ; then 10349 ol_link_pthreads="-kthread" 10350 ol_link_threads=posix 10351 fi 10352fi 10353 10354 # Pthread try link: -pthread (ol_cv_pthread_pthread) 10355if test "$ol_link_threads" = no ; then 10356 # try -pthread 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5 10358$as_echo_n "checking for pthread link with -pthread... " >&6; } 10359if ${ol_cv_pthread_pthread+:} false; then : 10360 $as_echo_n "(cached) " >&6 10361else 10362 10363 # save the flags 10364 ol_LIBS="$LIBS" 10365 LIBS="-pthread $LIBS" 10366 10367 if test "$cross_compiling" = yes; then : 10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10369/* end confdefs.h. */ 10370 10371/* pthread test headers */ 10372#include <pthread.h> 10373#if HAVE_PTHREADS < 7 10374#include <errno.h> 10375#endif 10376#ifndef NULL 10377#define NULL (void*)0 10378#endif 10379 10380static void *task(p) 10381 void *p; 10382{ 10383 return (void *) (p == NULL); 10384} 10385 10386int 10387main () 10388{ 10389 10390 /* pthread test function */ 10391#ifndef PTHREAD_CREATE_DETACHED 10392#define PTHREAD_CREATE_DETACHED 1 10393#endif 10394 pthread_t t; 10395 int status; 10396 int detach = PTHREAD_CREATE_DETACHED; 10397 10398#if HAVE_PTHREADS > 4 10399 /* Final pthreads */ 10400 pthread_attr_t attr; 10401 10402 status = pthread_attr_init(&attr); 10403 if( status ) return status; 10404 10405#if HAVE_PTHREADS < 7 10406 status = pthread_attr_setdetachstate(&attr, &detach); 10407 if( status < 0 ) status = errno; 10408#else 10409 status = pthread_attr_setdetachstate(&attr, detach); 10410#endif 10411 if( status ) return status; 10412 status = pthread_create( &t, &attr, task, NULL ); 10413#if HAVE_PTHREADS < 7 10414 if( status < 0 ) status = errno; 10415#endif 10416 if( status ) return status; 10417#else 10418 /* Draft 4 pthreads */ 10419 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10420 if( status ) return errno; 10421 10422 /* give thread a chance to complete */ 10423 /* it should remain joinable and hence detachable */ 10424 sleep( 1 ); 10425 10426 status = pthread_detach( &t ); 10427 if( status ) return errno; 10428#endif 10429 10430#ifdef HAVE_LINUX_THREADS 10431 pthread_kill_other_threads_np(); 10432#endif 10433 10434 return 0; 10435 10436 ; 10437 return 0; 10438} 10439_ACEOF 10440if ac_fn_c_try_link "$LINENO"; then : 10441 ol_cv_pthread_pthread=yes 10442else 10443 ol_cv_pthread_pthread=no 10444fi 10445rm -f core conftest.err conftest.$ac_objext \ 10446 conftest$ac_exeext conftest.$ac_ext 10447else 10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10449/* end confdefs.h. */ 10450 10451 10452/* pthread test headers */ 10453#include <pthread.h> 10454#if HAVE_PTHREADS < 7 10455#include <errno.h> 10456#endif 10457#ifndef NULL 10458#define NULL (void*)0 10459#endif 10460 10461static void *task(p) 10462 void *p; 10463{ 10464 return (void *) (p == NULL); 10465} 10466 10467 10468int main(argc, argv) 10469 int argc; 10470 char **argv; 10471{ 10472 10473 /* pthread test function */ 10474#ifndef PTHREAD_CREATE_DETACHED 10475#define PTHREAD_CREATE_DETACHED 1 10476#endif 10477 pthread_t t; 10478 int status; 10479 int detach = PTHREAD_CREATE_DETACHED; 10480 10481#if HAVE_PTHREADS > 4 10482 /* Final pthreads */ 10483 pthread_attr_t attr; 10484 10485 status = pthread_attr_init(&attr); 10486 if( status ) return status; 10487 10488#if HAVE_PTHREADS < 7 10489 status = pthread_attr_setdetachstate(&attr, &detach); 10490 if( status < 0 ) status = errno; 10491#else 10492 status = pthread_attr_setdetachstate(&attr, detach); 10493#endif 10494 if( status ) return status; 10495 status = pthread_create( &t, &attr, task, NULL ); 10496#if HAVE_PTHREADS < 7 10497 if( status < 0 ) status = errno; 10498#endif 10499 if( status ) return status; 10500#else 10501 /* Draft 4 pthreads */ 10502 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10503 if( status ) return errno; 10504 10505 /* give thread a chance to complete */ 10506 /* it should remain joinable and hence detachable */ 10507 sleep( 1 ); 10508 10509 status = pthread_detach( &t ); 10510 if( status ) return errno; 10511#endif 10512 10513#ifdef HAVE_LINUX_THREADS 10514 pthread_kill_other_threads_np(); 10515#endif 10516 10517 return 0; 10518 10519} 10520 10521_ACEOF 10522if ac_fn_c_try_run "$LINENO"; then : 10523 ol_cv_pthread_pthread=yes 10524else 10525 ol_cv_pthread_pthread=no 10526fi 10527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10528 conftest.$ac_objext conftest.beam conftest.$ac_ext 10529fi 10530 10531 10532 # restore the LIBS 10533 LIBS="$ol_LIBS" 10534 10535fi 10536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5 10537$as_echo "$ol_cv_pthread_pthread" >&6; } 10538 10539 if test $ol_cv_pthread_pthread = yes ; then 10540 ol_link_pthreads="-pthread" 10541 ol_link_threads=posix 10542 fi 10543fi 10544 10545 # Pthread try link: -pthreads (ol_cv_pthread_pthreads) 10546if test "$ol_link_threads" = no ; then 10547 # try -pthreads 10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5 10549$as_echo_n "checking for pthread link with -pthreads... " >&6; } 10550if ${ol_cv_pthread_pthreads+:} false; then : 10551 $as_echo_n "(cached) " >&6 10552else 10553 10554 # save the flags 10555 ol_LIBS="$LIBS" 10556 LIBS="-pthreads $LIBS" 10557 10558 if test "$cross_compiling" = yes; then : 10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10560/* end confdefs.h. */ 10561 10562/* pthread test headers */ 10563#include <pthread.h> 10564#if HAVE_PTHREADS < 7 10565#include <errno.h> 10566#endif 10567#ifndef NULL 10568#define NULL (void*)0 10569#endif 10570 10571static void *task(p) 10572 void *p; 10573{ 10574 return (void *) (p == NULL); 10575} 10576 10577int 10578main () 10579{ 10580 10581 /* pthread test function */ 10582#ifndef PTHREAD_CREATE_DETACHED 10583#define PTHREAD_CREATE_DETACHED 1 10584#endif 10585 pthread_t t; 10586 int status; 10587 int detach = PTHREAD_CREATE_DETACHED; 10588 10589#if HAVE_PTHREADS > 4 10590 /* Final pthreads */ 10591 pthread_attr_t attr; 10592 10593 status = pthread_attr_init(&attr); 10594 if( status ) return status; 10595 10596#if HAVE_PTHREADS < 7 10597 status = pthread_attr_setdetachstate(&attr, &detach); 10598 if( status < 0 ) status = errno; 10599#else 10600 status = pthread_attr_setdetachstate(&attr, detach); 10601#endif 10602 if( status ) return status; 10603 status = pthread_create( &t, &attr, task, NULL ); 10604#if HAVE_PTHREADS < 7 10605 if( status < 0 ) status = errno; 10606#endif 10607 if( status ) return status; 10608#else 10609 /* Draft 4 pthreads */ 10610 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10611 if( status ) return errno; 10612 10613 /* give thread a chance to complete */ 10614 /* it should remain joinable and hence detachable */ 10615 sleep( 1 ); 10616 10617 status = pthread_detach( &t ); 10618 if( status ) return errno; 10619#endif 10620 10621#ifdef HAVE_LINUX_THREADS 10622 pthread_kill_other_threads_np(); 10623#endif 10624 10625 return 0; 10626 10627 ; 10628 return 0; 10629} 10630_ACEOF 10631if ac_fn_c_try_link "$LINENO"; then : 10632 ol_cv_pthread_pthreads=yes 10633else 10634 ol_cv_pthread_pthreads=no 10635fi 10636rm -f core conftest.err conftest.$ac_objext \ 10637 conftest$ac_exeext conftest.$ac_ext 10638else 10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10640/* end confdefs.h. */ 10641 10642 10643/* pthread test headers */ 10644#include <pthread.h> 10645#if HAVE_PTHREADS < 7 10646#include <errno.h> 10647#endif 10648#ifndef NULL 10649#define NULL (void*)0 10650#endif 10651 10652static void *task(p) 10653 void *p; 10654{ 10655 return (void *) (p == NULL); 10656} 10657 10658 10659int main(argc, argv) 10660 int argc; 10661 char **argv; 10662{ 10663 10664 /* pthread test function */ 10665#ifndef PTHREAD_CREATE_DETACHED 10666#define PTHREAD_CREATE_DETACHED 1 10667#endif 10668 pthread_t t; 10669 int status; 10670 int detach = PTHREAD_CREATE_DETACHED; 10671 10672#if HAVE_PTHREADS > 4 10673 /* Final pthreads */ 10674 pthread_attr_t attr; 10675 10676 status = pthread_attr_init(&attr); 10677 if( status ) return status; 10678 10679#if HAVE_PTHREADS < 7 10680 status = pthread_attr_setdetachstate(&attr, &detach); 10681 if( status < 0 ) status = errno; 10682#else 10683 status = pthread_attr_setdetachstate(&attr, detach); 10684#endif 10685 if( status ) return status; 10686 status = pthread_create( &t, &attr, task, NULL ); 10687#if HAVE_PTHREADS < 7 10688 if( status < 0 ) status = errno; 10689#endif 10690 if( status ) return status; 10691#else 10692 /* Draft 4 pthreads */ 10693 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10694 if( status ) return errno; 10695 10696 /* give thread a chance to complete */ 10697 /* it should remain joinable and hence detachable */ 10698 sleep( 1 ); 10699 10700 status = pthread_detach( &t ); 10701 if( status ) return errno; 10702#endif 10703 10704#ifdef HAVE_LINUX_THREADS 10705 pthread_kill_other_threads_np(); 10706#endif 10707 10708 return 0; 10709 10710} 10711 10712_ACEOF 10713if ac_fn_c_try_run "$LINENO"; then : 10714 ol_cv_pthread_pthreads=yes 10715else 10716 ol_cv_pthread_pthreads=no 10717fi 10718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10719 conftest.$ac_objext conftest.beam conftest.$ac_ext 10720fi 10721 10722 10723 # restore the LIBS 10724 LIBS="$ol_LIBS" 10725 10726fi 10727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5 10728$as_echo "$ol_cv_pthread_pthreads" >&6; } 10729 10730 if test $ol_cv_pthread_pthreads = yes ; then 10731 ol_link_pthreads="-pthreads" 10732 ol_link_threads=posix 10733 fi 10734fi 10735 10736 # Pthread try link: -mthreads (ol_cv_pthread_mthreads) 10737if test "$ol_link_threads" = no ; then 10738 # try -mthreads 10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5 10740$as_echo_n "checking for pthread link with -mthreads... " >&6; } 10741if ${ol_cv_pthread_mthreads+:} false; then : 10742 $as_echo_n "(cached) " >&6 10743else 10744 10745 # save the flags 10746 ol_LIBS="$LIBS" 10747 LIBS="-mthreads $LIBS" 10748 10749 if test "$cross_compiling" = yes; then : 10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10751/* end confdefs.h. */ 10752 10753/* pthread test headers */ 10754#include <pthread.h> 10755#if HAVE_PTHREADS < 7 10756#include <errno.h> 10757#endif 10758#ifndef NULL 10759#define NULL (void*)0 10760#endif 10761 10762static void *task(p) 10763 void *p; 10764{ 10765 return (void *) (p == NULL); 10766} 10767 10768int 10769main () 10770{ 10771 10772 /* pthread test function */ 10773#ifndef PTHREAD_CREATE_DETACHED 10774#define PTHREAD_CREATE_DETACHED 1 10775#endif 10776 pthread_t t; 10777 int status; 10778 int detach = PTHREAD_CREATE_DETACHED; 10779 10780#if HAVE_PTHREADS > 4 10781 /* Final pthreads */ 10782 pthread_attr_t attr; 10783 10784 status = pthread_attr_init(&attr); 10785 if( status ) return status; 10786 10787#if HAVE_PTHREADS < 7 10788 status = pthread_attr_setdetachstate(&attr, &detach); 10789 if( status < 0 ) status = errno; 10790#else 10791 status = pthread_attr_setdetachstate(&attr, detach); 10792#endif 10793 if( status ) return status; 10794 status = pthread_create( &t, &attr, task, NULL ); 10795#if HAVE_PTHREADS < 7 10796 if( status < 0 ) status = errno; 10797#endif 10798 if( status ) return status; 10799#else 10800 /* Draft 4 pthreads */ 10801 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10802 if( status ) return errno; 10803 10804 /* give thread a chance to complete */ 10805 /* it should remain joinable and hence detachable */ 10806 sleep( 1 ); 10807 10808 status = pthread_detach( &t ); 10809 if( status ) return errno; 10810#endif 10811 10812#ifdef HAVE_LINUX_THREADS 10813 pthread_kill_other_threads_np(); 10814#endif 10815 10816 return 0; 10817 10818 ; 10819 return 0; 10820} 10821_ACEOF 10822if ac_fn_c_try_link "$LINENO"; then : 10823 ol_cv_pthread_mthreads=yes 10824else 10825 ol_cv_pthread_mthreads=no 10826fi 10827rm -f core conftest.err conftest.$ac_objext \ 10828 conftest$ac_exeext conftest.$ac_ext 10829else 10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10831/* end confdefs.h. */ 10832 10833 10834/* pthread test headers */ 10835#include <pthread.h> 10836#if HAVE_PTHREADS < 7 10837#include <errno.h> 10838#endif 10839#ifndef NULL 10840#define NULL (void*)0 10841#endif 10842 10843static void *task(p) 10844 void *p; 10845{ 10846 return (void *) (p == NULL); 10847} 10848 10849 10850int main(argc, argv) 10851 int argc; 10852 char **argv; 10853{ 10854 10855 /* pthread test function */ 10856#ifndef PTHREAD_CREATE_DETACHED 10857#define PTHREAD_CREATE_DETACHED 1 10858#endif 10859 pthread_t t; 10860 int status; 10861 int detach = PTHREAD_CREATE_DETACHED; 10862 10863#if HAVE_PTHREADS > 4 10864 /* Final pthreads */ 10865 pthread_attr_t attr; 10866 10867 status = pthread_attr_init(&attr); 10868 if( status ) return status; 10869 10870#if HAVE_PTHREADS < 7 10871 status = pthread_attr_setdetachstate(&attr, &detach); 10872 if( status < 0 ) status = errno; 10873#else 10874 status = pthread_attr_setdetachstate(&attr, detach); 10875#endif 10876 if( status ) return status; 10877 status = pthread_create( &t, &attr, task, NULL ); 10878#if HAVE_PTHREADS < 7 10879 if( status < 0 ) status = errno; 10880#endif 10881 if( status ) return status; 10882#else 10883 /* Draft 4 pthreads */ 10884 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10885 if( status ) return errno; 10886 10887 /* give thread a chance to complete */ 10888 /* it should remain joinable and hence detachable */ 10889 sleep( 1 ); 10890 10891 status = pthread_detach( &t ); 10892 if( status ) return errno; 10893#endif 10894 10895#ifdef HAVE_LINUX_THREADS 10896 pthread_kill_other_threads_np(); 10897#endif 10898 10899 return 0; 10900 10901} 10902 10903_ACEOF 10904if ac_fn_c_try_run "$LINENO"; then : 10905 ol_cv_pthread_mthreads=yes 10906else 10907 ol_cv_pthread_mthreads=no 10908fi 10909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10910 conftest.$ac_objext conftest.beam conftest.$ac_ext 10911fi 10912 10913 10914 # restore the LIBS 10915 LIBS="$ol_LIBS" 10916 10917fi 10918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5 10919$as_echo "$ol_cv_pthread_mthreads" >&6; } 10920 10921 if test $ol_cv_pthread_mthreads = yes ; then 10922 ol_link_pthreads="-mthreads" 10923 ol_link_threads=posix 10924 fi 10925fi 10926 10927 # Pthread try link: -thread (ol_cv_pthread_thread) 10928if test "$ol_link_threads" = no ; then 10929 # try -thread 10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5 10931$as_echo_n "checking for pthread link with -thread... " >&6; } 10932if ${ol_cv_pthread_thread+:} false; then : 10933 $as_echo_n "(cached) " >&6 10934else 10935 10936 # save the flags 10937 ol_LIBS="$LIBS" 10938 LIBS="-thread $LIBS" 10939 10940 if test "$cross_compiling" = yes; then : 10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10942/* end confdefs.h. */ 10943 10944/* pthread test headers */ 10945#include <pthread.h> 10946#if HAVE_PTHREADS < 7 10947#include <errno.h> 10948#endif 10949#ifndef NULL 10950#define NULL (void*)0 10951#endif 10952 10953static void *task(p) 10954 void *p; 10955{ 10956 return (void *) (p == NULL); 10957} 10958 10959int 10960main () 10961{ 10962 10963 /* pthread test function */ 10964#ifndef PTHREAD_CREATE_DETACHED 10965#define PTHREAD_CREATE_DETACHED 1 10966#endif 10967 pthread_t t; 10968 int status; 10969 int detach = PTHREAD_CREATE_DETACHED; 10970 10971#if HAVE_PTHREADS > 4 10972 /* Final pthreads */ 10973 pthread_attr_t attr; 10974 10975 status = pthread_attr_init(&attr); 10976 if( status ) return status; 10977 10978#if HAVE_PTHREADS < 7 10979 status = pthread_attr_setdetachstate(&attr, &detach); 10980 if( status < 0 ) status = errno; 10981#else 10982 status = pthread_attr_setdetachstate(&attr, detach); 10983#endif 10984 if( status ) return status; 10985 status = pthread_create( &t, &attr, task, NULL ); 10986#if HAVE_PTHREADS < 7 10987 if( status < 0 ) status = errno; 10988#endif 10989 if( status ) return status; 10990#else 10991 /* Draft 4 pthreads */ 10992 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10993 if( status ) return errno; 10994 10995 /* give thread a chance to complete */ 10996 /* it should remain joinable and hence detachable */ 10997 sleep( 1 ); 10998 10999 status = pthread_detach( &t ); 11000 if( status ) return errno; 11001#endif 11002 11003#ifdef HAVE_LINUX_THREADS 11004 pthread_kill_other_threads_np(); 11005#endif 11006 11007 return 0; 11008 11009 ; 11010 return 0; 11011} 11012_ACEOF 11013if ac_fn_c_try_link "$LINENO"; then : 11014 ol_cv_pthread_thread=yes 11015else 11016 ol_cv_pthread_thread=no 11017fi 11018rm -f core conftest.err conftest.$ac_objext \ 11019 conftest$ac_exeext conftest.$ac_ext 11020else 11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11022/* end confdefs.h. */ 11023 11024 11025/* pthread test headers */ 11026#include <pthread.h> 11027#if HAVE_PTHREADS < 7 11028#include <errno.h> 11029#endif 11030#ifndef NULL 11031#define NULL (void*)0 11032#endif 11033 11034static void *task(p) 11035 void *p; 11036{ 11037 return (void *) (p == NULL); 11038} 11039 11040 11041int main(argc, argv) 11042 int argc; 11043 char **argv; 11044{ 11045 11046 /* pthread test function */ 11047#ifndef PTHREAD_CREATE_DETACHED 11048#define PTHREAD_CREATE_DETACHED 1 11049#endif 11050 pthread_t t; 11051 int status; 11052 int detach = PTHREAD_CREATE_DETACHED; 11053 11054#if HAVE_PTHREADS > 4 11055 /* Final pthreads */ 11056 pthread_attr_t attr; 11057 11058 status = pthread_attr_init(&attr); 11059 if( status ) return status; 11060 11061#if HAVE_PTHREADS < 7 11062 status = pthread_attr_setdetachstate(&attr, &detach); 11063 if( status < 0 ) status = errno; 11064#else 11065 status = pthread_attr_setdetachstate(&attr, detach); 11066#endif 11067 if( status ) return status; 11068 status = pthread_create( &t, &attr, task, NULL ); 11069#if HAVE_PTHREADS < 7 11070 if( status < 0 ) status = errno; 11071#endif 11072 if( status ) return status; 11073#else 11074 /* Draft 4 pthreads */ 11075 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11076 if( status ) return errno; 11077 11078 /* give thread a chance to complete */ 11079 /* it should remain joinable and hence detachable */ 11080 sleep( 1 ); 11081 11082 status = pthread_detach( &t ); 11083 if( status ) return errno; 11084#endif 11085 11086#ifdef HAVE_LINUX_THREADS 11087 pthread_kill_other_threads_np(); 11088#endif 11089 11090 return 0; 11091 11092} 11093 11094_ACEOF 11095if ac_fn_c_try_run "$LINENO"; then : 11096 ol_cv_pthread_thread=yes 11097else 11098 ol_cv_pthread_thread=no 11099fi 11100rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11101 conftest.$ac_objext conftest.beam conftest.$ac_ext 11102fi 11103 11104 11105 # restore the LIBS 11106 LIBS="$ol_LIBS" 11107 11108fi 11109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5 11110$as_echo "$ol_cv_pthread_thread" >&6; } 11111 11112 if test $ol_cv_pthread_thread = yes ; then 11113 ol_link_pthreads="-thread" 11114 ol_link_threads=posix 11115 fi 11116fi 11117 11118 11119 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r) 11120if test "$ol_link_threads" = no ; then 11121 # try -lpthread -lmach -lexc -lc_r 11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5 11123$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; } 11124if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then : 11125 $as_echo_n "(cached) " >&6 11126else 11127 11128 # save the flags 11129 ol_LIBS="$LIBS" 11130 LIBS="-lpthread -lmach -lexc -lc_r $LIBS" 11131 11132 if test "$cross_compiling" = yes; then : 11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11134/* end confdefs.h. */ 11135 11136/* pthread test headers */ 11137#include <pthread.h> 11138#if HAVE_PTHREADS < 7 11139#include <errno.h> 11140#endif 11141#ifndef NULL 11142#define NULL (void*)0 11143#endif 11144 11145static void *task(p) 11146 void *p; 11147{ 11148 return (void *) (p == NULL); 11149} 11150 11151int 11152main () 11153{ 11154 11155 /* pthread test function */ 11156#ifndef PTHREAD_CREATE_DETACHED 11157#define PTHREAD_CREATE_DETACHED 1 11158#endif 11159 pthread_t t; 11160 int status; 11161 int detach = PTHREAD_CREATE_DETACHED; 11162 11163#if HAVE_PTHREADS > 4 11164 /* Final pthreads */ 11165 pthread_attr_t attr; 11166 11167 status = pthread_attr_init(&attr); 11168 if( status ) return status; 11169 11170#if HAVE_PTHREADS < 7 11171 status = pthread_attr_setdetachstate(&attr, &detach); 11172 if( status < 0 ) status = errno; 11173#else 11174 status = pthread_attr_setdetachstate(&attr, detach); 11175#endif 11176 if( status ) return status; 11177 status = pthread_create( &t, &attr, task, NULL ); 11178#if HAVE_PTHREADS < 7 11179 if( status < 0 ) status = errno; 11180#endif 11181 if( status ) return status; 11182#else 11183 /* Draft 4 pthreads */ 11184 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11185 if( status ) return errno; 11186 11187 /* give thread a chance to complete */ 11188 /* it should remain joinable and hence detachable */ 11189 sleep( 1 ); 11190 11191 status = pthread_detach( &t ); 11192 if( status ) return errno; 11193#endif 11194 11195#ifdef HAVE_LINUX_THREADS 11196 pthread_kill_other_threads_np(); 11197#endif 11198 11199 return 0; 11200 11201 ; 11202 return 0; 11203} 11204_ACEOF 11205if ac_fn_c_try_link "$LINENO"; then : 11206 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 11207else 11208 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 11209fi 11210rm -f core conftest.err conftest.$ac_objext \ 11211 conftest$ac_exeext conftest.$ac_ext 11212else 11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11214/* end confdefs.h. */ 11215 11216 11217/* pthread test headers */ 11218#include <pthread.h> 11219#if HAVE_PTHREADS < 7 11220#include <errno.h> 11221#endif 11222#ifndef NULL 11223#define NULL (void*)0 11224#endif 11225 11226static void *task(p) 11227 void *p; 11228{ 11229 return (void *) (p == NULL); 11230} 11231 11232 11233int main(argc, argv) 11234 int argc; 11235 char **argv; 11236{ 11237 11238 /* pthread test function */ 11239#ifndef PTHREAD_CREATE_DETACHED 11240#define PTHREAD_CREATE_DETACHED 1 11241#endif 11242 pthread_t t; 11243 int status; 11244 int detach = PTHREAD_CREATE_DETACHED; 11245 11246#if HAVE_PTHREADS > 4 11247 /* Final pthreads */ 11248 pthread_attr_t attr; 11249 11250 status = pthread_attr_init(&attr); 11251 if( status ) return status; 11252 11253#if HAVE_PTHREADS < 7 11254 status = pthread_attr_setdetachstate(&attr, &detach); 11255 if( status < 0 ) status = errno; 11256#else 11257 status = pthread_attr_setdetachstate(&attr, detach); 11258#endif 11259 if( status ) return status; 11260 status = pthread_create( &t, &attr, task, NULL ); 11261#if HAVE_PTHREADS < 7 11262 if( status < 0 ) status = errno; 11263#endif 11264 if( status ) return status; 11265#else 11266 /* Draft 4 pthreads */ 11267 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11268 if( status ) return errno; 11269 11270 /* give thread a chance to complete */ 11271 /* it should remain joinable and hence detachable */ 11272 sleep( 1 ); 11273 11274 status = pthread_detach( &t ); 11275 if( status ) return errno; 11276#endif 11277 11278#ifdef HAVE_LINUX_THREADS 11279 pthread_kill_other_threads_np(); 11280#endif 11281 11282 return 0; 11283 11284} 11285 11286_ACEOF 11287if ac_fn_c_try_run "$LINENO"; then : 11288 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 11289else 11290 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 11291fi 11292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11293 conftest.$ac_objext conftest.beam conftest.$ac_ext 11294fi 11295 11296 11297 # restore the LIBS 11298 LIBS="$ol_LIBS" 11299 11300fi 11301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5 11302$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; } 11303 11304 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then 11305 ol_link_pthreads="-lpthread -lmach -lexc -lc_r" 11306 ol_link_threads=posix 11307 fi 11308fi 11309 11310 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc) 11311if test "$ol_link_threads" = no ; then 11312 # try -lpthread -lmach -lexc 11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5 11314$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; } 11315if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then : 11316 $as_echo_n "(cached) " >&6 11317else 11318 11319 # save the flags 11320 ol_LIBS="$LIBS" 11321 LIBS="-lpthread -lmach -lexc $LIBS" 11322 11323 if test "$cross_compiling" = yes; then : 11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11325/* end confdefs.h. */ 11326 11327/* pthread test headers */ 11328#include <pthread.h> 11329#if HAVE_PTHREADS < 7 11330#include <errno.h> 11331#endif 11332#ifndef NULL 11333#define NULL (void*)0 11334#endif 11335 11336static void *task(p) 11337 void *p; 11338{ 11339 return (void *) (p == NULL); 11340} 11341 11342int 11343main () 11344{ 11345 11346 /* pthread test function */ 11347#ifndef PTHREAD_CREATE_DETACHED 11348#define PTHREAD_CREATE_DETACHED 1 11349#endif 11350 pthread_t t; 11351 int status; 11352 int detach = PTHREAD_CREATE_DETACHED; 11353 11354#if HAVE_PTHREADS > 4 11355 /* Final pthreads */ 11356 pthread_attr_t attr; 11357 11358 status = pthread_attr_init(&attr); 11359 if( status ) return status; 11360 11361#if HAVE_PTHREADS < 7 11362 status = pthread_attr_setdetachstate(&attr, &detach); 11363 if( status < 0 ) status = errno; 11364#else 11365 status = pthread_attr_setdetachstate(&attr, detach); 11366#endif 11367 if( status ) return status; 11368 status = pthread_create( &t, &attr, task, NULL ); 11369#if HAVE_PTHREADS < 7 11370 if( status < 0 ) status = errno; 11371#endif 11372 if( status ) return status; 11373#else 11374 /* Draft 4 pthreads */ 11375 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11376 if( status ) return errno; 11377 11378 /* give thread a chance to complete */ 11379 /* it should remain joinable and hence detachable */ 11380 sleep( 1 ); 11381 11382 status = pthread_detach( &t ); 11383 if( status ) return errno; 11384#endif 11385 11386#ifdef HAVE_LINUX_THREADS 11387 pthread_kill_other_threads_np(); 11388#endif 11389 11390 return 0; 11391 11392 ; 11393 return 0; 11394} 11395_ACEOF 11396if ac_fn_c_try_link "$LINENO"; then : 11397 ol_cv_pthread_lpthread_lmach_lexc=yes 11398else 11399 ol_cv_pthread_lpthread_lmach_lexc=no 11400fi 11401rm -f core conftest.err conftest.$ac_objext \ 11402 conftest$ac_exeext conftest.$ac_ext 11403else 11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11405/* end confdefs.h. */ 11406 11407 11408/* pthread test headers */ 11409#include <pthread.h> 11410#if HAVE_PTHREADS < 7 11411#include <errno.h> 11412#endif 11413#ifndef NULL 11414#define NULL (void*)0 11415#endif 11416 11417static void *task(p) 11418 void *p; 11419{ 11420 return (void *) (p == NULL); 11421} 11422 11423 11424int main(argc, argv) 11425 int argc; 11426 char **argv; 11427{ 11428 11429 /* pthread test function */ 11430#ifndef PTHREAD_CREATE_DETACHED 11431#define PTHREAD_CREATE_DETACHED 1 11432#endif 11433 pthread_t t; 11434 int status; 11435 int detach = PTHREAD_CREATE_DETACHED; 11436 11437#if HAVE_PTHREADS > 4 11438 /* Final pthreads */ 11439 pthread_attr_t attr; 11440 11441 status = pthread_attr_init(&attr); 11442 if( status ) return status; 11443 11444#if HAVE_PTHREADS < 7 11445 status = pthread_attr_setdetachstate(&attr, &detach); 11446 if( status < 0 ) status = errno; 11447#else 11448 status = pthread_attr_setdetachstate(&attr, detach); 11449#endif 11450 if( status ) return status; 11451 status = pthread_create( &t, &attr, task, NULL ); 11452#if HAVE_PTHREADS < 7 11453 if( status < 0 ) status = errno; 11454#endif 11455 if( status ) return status; 11456#else 11457 /* Draft 4 pthreads */ 11458 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11459 if( status ) return errno; 11460 11461 /* give thread a chance to complete */ 11462 /* it should remain joinable and hence detachable */ 11463 sleep( 1 ); 11464 11465 status = pthread_detach( &t ); 11466 if( status ) return errno; 11467#endif 11468 11469#ifdef HAVE_LINUX_THREADS 11470 pthread_kill_other_threads_np(); 11471#endif 11472 11473 return 0; 11474 11475} 11476 11477_ACEOF 11478if ac_fn_c_try_run "$LINENO"; then : 11479 ol_cv_pthread_lpthread_lmach_lexc=yes 11480else 11481 ol_cv_pthread_lpthread_lmach_lexc=no 11482fi 11483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11484 conftest.$ac_objext conftest.beam conftest.$ac_ext 11485fi 11486 11487 11488 # restore the LIBS 11489 LIBS="$ol_LIBS" 11490 11491fi 11492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5 11493$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; } 11494 11495 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then 11496 ol_link_pthreads="-lpthread -lmach -lexc" 11497 ol_link_threads=posix 11498 fi 11499fi 11500 11501 11502 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff) 11503if test "$ol_link_threads" = no ; then 11504 # try -lpthread -Wl,-woff,85 11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5 11506$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; } 11507if ${ol_cv_pthread_lib_lpthread_woff+:} false; then : 11508 $as_echo_n "(cached) " >&6 11509else 11510 11511 # save the flags 11512 ol_LIBS="$LIBS" 11513 LIBS="-lpthread -Wl,-woff,85 $LIBS" 11514 11515 if test "$cross_compiling" = yes; then : 11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11517/* end confdefs.h. */ 11518 11519/* pthread test headers */ 11520#include <pthread.h> 11521#if HAVE_PTHREADS < 7 11522#include <errno.h> 11523#endif 11524#ifndef NULL 11525#define NULL (void*)0 11526#endif 11527 11528static void *task(p) 11529 void *p; 11530{ 11531 return (void *) (p == NULL); 11532} 11533 11534int 11535main () 11536{ 11537 11538 /* pthread test function */ 11539#ifndef PTHREAD_CREATE_DETACHED 11540#define PTHREAD_CREATE_DETACHED 1 11541#endif 11542 pthread_t t; 11543 int status; 11544 int detach = PTHREAD_CREATE_DETACHED; 11545 11546#if HAVE_PTHREADS > 4 11547 /* Final pthreads */ 11548 pthread_attr_t attr; 11549 11550 status = pthread_attr_init(&attr); 11551 if( status ) return status; 11552 11553#if HAVE_PTHREADS < 7 11554 status = pthread_attr_setdetachstate(&attr, &detach); 11555 if( status < 0 ) status = errno; 11556#else 11557 status = pthread_attr_setdetachstate(&attr, detach); 11558#endif 11559 if( status ) return status; 11560 status = pthread_create( &t, &attr, task, NULL ); 11561#if HAVE_PTHREADS < 7 11562 if( status < 0 ) status = errno; 11563#endif 11564 if( status ) return status; 11565#else 11566 /* Draft 4 pthreads */ 11567 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11568 if( status ) return errno; 11569 11570 /* give thread a chance to complete */ 11571 /* it should remain joinable and hence detachable */ 11572 sleep( 1 ); 11573 11574 status = pthread_detach( &t ); 11575 if( status ) return errno; 11576#endif 11577 11578#ifdef HAVE_LINUX_THREADS 11579 pthread_kill_other_threads_np(); 11580#endif 11581 11582 return 0; 11583 11584 ; 11585 return 0; 11586} 11587_ACEOF 11588if ac_fn_c_try_link "$LINENO"; then : 11589 ol_cv_pthread_lib_lpthread_woff=yes 11590else 11591 ol_cv_pthread_lib_lpthread_woff=no 11592fi 11593rm -f core conftest.err conftest.$ac_objext \ 11594 conftest$ac_exeext conftest.$ac_ext 11595else 11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11597/* end confdefs.h. */ 11598 11599 11600/* pthread test headers */ 11601#include <pthread.h> 11602#if HAVE_PTHREADS < 7 11603#include <errno.h> 11604#endif 11605#ifndef NULL 11606#define NULL (void*)0 11607#endif 11608 11609static void *task(p) 11610 void *p; 11611{ 11612 return (void *) (p == NULL); 11613} 11614 11615 11616int main(argc, argv) 11617 int argc; 11618 char **argv; 11619{ 11620 11621 /* pthread test function */ 11622#ifndef PTHREAD_CREATE_DETACHED 11623#define PTHREAD_CREATE_DETACHED 1 11624#endif 11625 pthread_t t; 11626 int status; 11627 int detach = PTHREAD_CREATE_DETACHED; 11628 11629#if HAVE_PTHREADS > 4 11630 /* Final pthreads */ 11631 pthread_attr_t attr; 11632 11633 status = pthread_attr_init(&attr); 11634 if( status ) return status; 11635 11636#if HAVE_PTHREADS < 7 11637 status = pthread_attr_setdetachstate(&attr, &detach); 11638 if( status < 0 ) status = errno; 11639#else 11640 status = pthread_attr_setdetachstate(&attr, detach); 11641#endif 11642 if( status ) return status; 11643 status = pthread_create( &t, &attr, task, NULL ); 11644#if HAVE_PTHREADS < 7 11645 if( status < 0 ) status = errno; 11646#endif 11647 if( status ) return status; 11648#else 11649 /* Draft 4 pthreads */ 11650 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11651 if( status ) return errno; 11652 11653 /* give thread a chance to complete */ 11654 /* it should remain joinable and hence detachable */ 11655 sleep( 1 ); 11656 11657 status = pthread_detach( &t ); 11658 if( status ) return errno; 11659#endif 11660 11661#ifdef HAVE_LINUX_THREADS 11662 pthread_kill_other_threads_np(); 11663#endif 11664 11665 return 0; 11666 11667} 11668 11669_ACEOF 11670if ac_fn_c_try_run "$LINENO"; then : 11671 ol_cv_pthread_lib_lpthread_woff=yes 11672else 11673 ol_cv_pthread_lib_lpthread_woff=no 11674fi 11675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11676 conftest.$ac_objext conftest.beam conftest.$ac_ext 11677fi 11678 11679 11680 # restore the LIBS 11681 LIBS="$ol_LIBS" 11682 11683fi 11684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5 11685$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; } 11686 11687 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then 11688 ol_link_pthreads="-lpthread -Wl,-woff,85" 11689 ol_link_threads=posix 11690 fi 11691fi 11692 11693 11694 # Pthread try link: -lpthread (ol_cv_pthread_lpthread) 11695if test "$ol_link_threads" = no ; then 11696 # try -lpthread 11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5 11698$as_echo_n "checking for pthread link with -lpthread... " >&6; } 11699if ${ol_cv_pthread_lpthread+:} false; then : 11700 $as_echo_n "(cached) " >&6 11701else 11702 11703 # save the flags 11704 ol_LIBS="$LIBS" 11705 LIBS="-lpthread $LIBS" 11706 11707 if test "$cross_compiling" = yes; then : 11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11709/* end confdefs.h. */ 11710 11711/* pthread test headers */ 11712#include <pthread.h> 11713#if HAVE_PTHREADS < 7 11714#include <errno.h> 11715#endif 11716#ifndef NULL 11717#define NULL (void*)0 11718#endif 11719 11720static void *task(p) 11721 void *p; 11722{ 11723 return (void *) (p == NULL); 11724} 11725 11726int 11727main () 11728{ 11729 11730 /* pthread test function */ 11731#ifndef PTHREAD_CREATE_DETACHED 11732#define PTHREAD_CREATE_DETACHED 1 11733#endif 11734 pthread_t t; 11735 int status; 11736 int detach = PTHREAD_CREATE_DETACHED; 11737 11738#if HAVE_PTHREADS > 4 11739 /* Final pthreads */ 11740 pthread_attr_t attr; 11741 11742 status = pthread_attr_init(&attr); 11743 if( status ) return status; 11744 11745#if HAVE_PTHREADS < 7 11746 status = pthread_attr_setdetachstate(&attr, &detach); 11747 if( status < 0 ) status = errno; 11748#else 11749 status = pthread_attr_setdetachstate(&attr, detach); 11750#endif 11751 if( status ) return status; 11752 status = pthread_create( &t, &attr, task, NULL ); 11753#if HAVE_PTHREADS < 7 11754 if( status < 0 ) status = errno; 11755#endif 11756 if( status ) return status; 11757#else 11758 /* Draft 4 pthreads */ 11759 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11760 if( status ) return errno; 11761 11762 /* give thread a chance to complete */ 11763 /* it should remain joinable and hence detachable */ 11764 sleep( 1 ); 11765 11766 status = pthread_detach( &t ); 11767 if( status ) return errno; 11768#endif 11769 11770#ifdef HAVE_LINUX_THREADS 11771 pthread_kill_other_threads_np(); 11772#endif 11773 11774 return 0; 11775 11776 ; 11777 return 0; 11778} 11779_ACEOF 11780if ac_fn_c_try_link "$LINENO"; then : 11781 ol_cv_pthread_lpthread=yes 11782else 11783 ol_cv_pthread_lpthread=no 11784fi 11785rm -f core conftest.err conftest.$ac_objext \ 11786 conftest$ac_exeext conftest.$ac_ext 11787else 11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11789/* end confdefs.h. */ 11790 11791 11792/* pthread test headers */ 11793#include <pthread.h> 11794#if HAVE_PTHREADS < 7 11795#include <errno.h> 11796#endif 11797#ifndef NULL 11798#define NULL (void*)0 11799#endif 11800 11801static void *task(p) 11802 void *p; 11803{ 11804 return (void *) (p == NULL); 11805} 11806 11807 11808int main(argc, argv) 11809 int argc; 11810 char **argv; 11811{ 11812 11813 /* pthread test function */ 11814#ifndef PTHREAD_CREATE_DETACHED 11815#define PTHREAD_CREATE_DETACHED 1 11816#endif 11817 pthread_t t; 11818 int status; 11819 int detach = PTHREAD_CREATE_DETACHED; 11820 11821#if HAVE_PTHREADS > 4 11822 /* Final pthreads */ 11823 pthread_attr_t attr; 11824 11825 status = pthread_attr_init(&attr); 11826 if( status ) return status; 11827 11828#if HAVE_PTHREADS < 7 11829 status = pthread_attr_setdetachstate(&attr, &detach); 11830 if( status < 0 ) status = errno; 11831#else 11832 status = pthread_attr_setdetachstate(&attr, detach); 11833#endif 11834 if( status ) return status; 11835 status = pthread_create( &t, &attr, task, NULL ); 11836#if HAVE_PTHREADS < 7 11837 if( status < 0 ) status = errno; 11838#endif 11839 if( status ) return status; 11840#else 11841 /* Draft 4 pthreads */ 11842 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11843 if( status ) return errno; 11844 11845 /* give thread a chance to complete */ 11846 /* it should remain joinable and hence detachable */ 11847 sleep( 1 ); 11848 11849 status = pthread_detach( &t ); 11850 if( status ) return errno; 11851#endif 11852 11853#ifdef HAVE_LINUX_THREADS 11854 pthread_kill_other_threads_np(); 11855#endif 11856 11857 return 0; 11858 11859} 11860 11861_ACEOF 11862if ac_fn_c_try_run "$LINENO"; then : 11863 ol_cv_pthread_lpthread=yes 11864else 11865 ol_cv_pthread_lpthread=no 11866fi 11867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11868 conftest.$ac_objext conftest.beam conftest.$ac_ext 11869fi 11870 11871 11872 # restore the LIBS 11873 LIBS="$ol_LIBS" 11874 11875fi 11876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5 11877$as_echo "$ol_cv_pthread_lpthread" >&6; } 11878 11879 if test $ol_cv_pthread_lpthread = yes ; then 11880 ol_link_pthreads="-lpthread" 11881 ol_link_threads=posix 11882 fi 11883fi 11884 11885 # Pthread try link: -lc_r (ol_cv_pthread_lc_r) 11886if test "$ol_link_threads" = no ; then 11887 # try -lc_r 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5 11889$as_echo_n "checking for pthread link with -lc_r... " >&6; } 11890if ${ol_cv_pthread_lc_r+:} false; then : 11891 $as_echo_n "(cached) " >&6 11892else 11893 11894 # save the flags 11895 ol_LIBS="$LIBS" 11896 LIBS="-lc_r $LIBS" 11897 11898 if test "$cross_compiling" = yes; then : 11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11900/* end confdefs.h. */ 11901 11902/* pthread test headers */ 11903#include <pthread.h> 11904#if HAVE_PTHREADS < 7 11905#include <errno.h> 11906#endif 11907#ifndef NULL 11908#define NULL (void*)0 11909#endif 11910 11911static void *task(p) 11912 void *p; 11913{ 11914 return (void *) (p == NULL); 11915} 11916 11917int 11918main () 11919{ 11920 11921 /* pthread test function */ 11922#ifndef PTHREAD_CREATE_DETACHED 11923#define PTHREAD_CREATE_DETACHED 1 11924#endif 11925 pthread_t t; 11926 int status; 11927 int detach = PTHREAD_CREATE_DETACHED; 11928 11929#if HAVE_PTHREADS > 4 11930 /* Final pthreads */ 11931 pthread_attr_t attr; 11932 11933 status = pthread_attr_init(&attr); 11934 if( status ) return status; 11935 11936#if HAVE_PTHREADS < 7 11937 status = pthread_attr_setdetachstate(&attr, &detach); 11938 if( status < 0 ) status = errno; 11939#else 11940 status = pthread_attr_setdetachstate(&attr, detach); 11941#endif 11942 if( status ) return status; 11943 status = pthread_create( &t, &attr, task, NULL ); 11944#if HAVE_PTHREADS < 7 11945 if( status < 0 ) status = errno; 11946#endif 11947 if( status ) return status; 11948#else 11949 /* Draft 4 pthreads */ 11950 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11951 if( status ) return errno; 11952 11953 /* give thread a chance to complete */ 11954 /* it should remain joinable and hence detachable */ 11955 sleep( 1 ); 11956 11957 status = pthread_detach( &t ); 11958 if( status ) return errno; 11959#endif 11960 11961#ifdef HAVE_LINUX_THREADS 11962 pthread_kill_other_threads_np(); 11963#endif 11964 11965 return 0; 11966 11967 ; 11968 return 0; 11969} 11970_ACEOF 11971if ac_fn_c_try_link "$LINENO"; then : 11972 ol_cv_pthread_lc_r=yes 11973else 11974 ol_cv_pthread_lc_r=no 11975fi 11976rm -f core conftest.err conftest.$ac_objext \ 11977 conftest$ac_exeext conftest.$ac_ext 11978else 11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11980/* end confdefs.h. */ 11981 11982 11983/* pthread test headers */ 11984#include <pthread.h> 11985#if HAVE_PTHREADS < 7 11986#include <errno.h> 11987#endif 11988#ifndef NULL 11989#define NULL (void*)0 11990#endif 11991 11992static void *task(p) 11993 void *p; 11994{ 11995 return (void *) (p == NULL); 11996} 11997 11998 11999int main(argc, argv) 12000 int argc; 12001 char **argv; 12002{ 12003 12004 /* pthread test function */ 12005#ifndef PTHREAD_CREATE_DETACHED 12006#define PTHREAD_CREATE_DETACHED 1 12007#endif 12008 pthread_t t; 12009 int status; 12010 int detach = PTHREAD_CREATE_DETACHED; 12011 12012#if HAVE_PTHREADS > 4 12013 /* Final pthreads */ 12014 pthread_attr_t attr; 12015 12016 status = pthread_attr_init(&attr); 12017 if( status ) return status; 12018 12019#if HAVE_PTHREADS < 7 12020 status = pthread_attr_setdetachstate(&attr, &detach); 12021 if( status < 0 ) status = errno; 12022#else 12023 status = pthread_attr_setdetachstate(&attr, detach); 12024#endif 12025 if( status ) return status; 12026 status = pthread_create( &t, &attr, task, NULL ); 12027#if HAVE_PTHREADS < 7 12028 if( status < 0 ) status = errno; 12029#endif 12030 if( status ) return status; 12031#else 12032 /* Draft 4 pthreads */ 12033 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12034 if( status ) return errno; 12035 12036 /* give thread a chance to complete */ 12037 /* it should remain joinable and hence detachable */ 12038 sleep( 1 ); 12039 12040 status = pthread_detach( &t ); 12041 if( status ) return errno; 12042#endif 12043 12044#ifdef HAVE_LINUX_THREADS 12045 pthread_kill_other_threads_np(); 12046#endif 12047 12048 return 0; 12049 12050} 12051 12052_ACEOF 12053if ac_fn_c_try_run "$LINENO"; then : 12054 ol_cv_pthread_lc_r=yes 12055else 12056 ol_cv_pthread_lc_r=no 12057fi 12058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12059 conftest.$ac_objext conftest.beam conftest.$ac_ext 12060fi 12061 12062 12063 # restore the LIBS 12064 LIBS="$ol_LIBS" 12065 12066fi 12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5 12068$as_echo "$ol_cv_pthread_lc_r" >&6; } 12069 12070 if test $ol_cv_pthread_lc_r = yes ; then 12071 ol_link_pthreads="-lc_r" 12072 ol_link_threads=posix 12073 fi 12074fi 12075 12076 12077 # Pthread try link: -threads (ol_cv_pthread_threads) 12078if test "$ol_link_threads" = no ; then 12079 # try -threads 12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5 12081$as_echo_n "checking for pthread link with -threads... " >&6; } 12082if ${ol_cv_pthread_threads+:} false; then : 12083 $as_echo_n "(cached) " >&6 12084else 12085 12086 # save the flags 12087 ol_LIBS="$LIBS" 12088 LIBS="-threads $LIBS" 12089 12090 if test "$cross_compiling" = yes; then : 12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12092/* end confdefs.h. */ 12093 12094/* pthread test headers */ 12095#include <pthread.h> 12096#if HAVE_PTHREADS < 7 12097#include <errno.h> 12098#endif 12099#ifndef NULL 12100#define NULL (void*)0 12101#endif 12102 12103static void *task(p) 12104 void *p; 12105{ 12106 return (void *) (p == NULL); 12107} 12108 12109int 12110main () 12111{ 12112 12113 /* pthread test function */ 12114#ifndef PTHREAD_CREATE_DETACHED 12115#define PTHREAD_CREATE_DETACHED 1 12116#endif 12117 pthread_t t; 12118 int status; 12119 int detach = PTHREAD_CREATE_DETACHED; 12120 12121#if HAVE_PTHREADS > 4 12122 /* Final pthreads */ 12123 pthread_attr_t attr; 12124 12125 status = pthread_attr_init(&attr); 12126 if( status ) return status; 12127 12128#if HAVE_PTHREADS < 7 12129 status = pthread_attr_setdetachstate(&attr, &detach); 12130 if( status < 0 ) status = errno; 12131#else 12132 status = pthread_attr_setdetachstate(&attr, detach); 12133#endif 12134 if( status ) return status; 12135 status = pthread_create( &t, &attr, task, NULL ); 12136#if HAVE_PTHREADS < 7 12137 if( status < 0 ) status = errno; 12138#endif 12139 if( status ) return status; 12140#else 12141 /* Draft 4 pthreads */ 12142 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12143 if( status ) return errno; 12144 12145 /* give thread a chance to complete */ 12146 /* it should remain joinable and hence detachable */ 12147 sleep( 1 ); 12148 12149 status = pthread_detach( &t ); 12150 if( status ) return errno; 12151#endif 12152 12153#ifdef HAVE_LINUX_THREADS 12154 pthread_kill_other_threads_np(); 12155#endif 12156 12157 return 0; 12158 12159 ; 12160 return 0; 12161} 12162_ACEOF 12163if ac_fn_c_try_link "$LINENO"; then : 12164 ol_cv_pthread_threads=yes 12165else 12166 ol_cv_pthread_threads=no 12167fi 12168rm -f core conftest.err conftest.$ac_objext \ 12169 conftest$ac_exeext conftest.$ac_ext 12170else 12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12172/* end confdefs.h. */ 12173 12174 12175/* pthread test headers */ 12176#include <pthread.h> 12177#if HAVE_PTHREADS < 7 12178#include <errno.h> 12179#endif 12180#ifndef NULL 12181#define NULL (void*)0 12182#endif 12183 12184static void *task(p) 12185 void *p; 12186{ 12187 return (void *) (p == NULL); 12188} 12189 12190 12191int main(argc, argv) 12192 int argc; 12193 char **argv; 12194{ 12195 12196 /* pthread test function */ 12197#ifndef PTHREAD_CREATE_DETACHED 12198#define PTHREAD_CREATE_DETACHED 1 12199#endif 12200 pthread_t t; 12201 int status; 12202 int detach = PTHREAD_CREATE_DETACHED; 12203 12204#if HAVE_PTHREADS > 4 12205 /* Final pthreads */ 12206 pthread_attr_t attr; 12207 12208 status = pthread_attr_init(&attr); 12209 if( status ) return status; 12210 12211#if HAVE_PTHREADS < 7 12212 status = pthread_attr_setdetachstate(&attr, &detach); 12213 if( status < 0 ) status = errno; 12214#else 12215 status = pthread_attr_setdetachstate(&attr, detach); 12216#endif 12217 if( status ) return status; 12218 status = pthread_create( &t, &attr, task, NULL ); 12219#if HAVE_PTHREADS < 7 12220 if( status < 0 ) status = errno; 12221#endif 12222 if( status ) return status; 12223#else 12224 /* Draft 4 pthreads */ 12225 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12226 if( status ) return errno; 12227 12228 /* give thread a chance to complete */ 12229 /* it should remain joinable and hence detachable */ 12230 sleep( 1 ); 12231 12232 status = pthread_detach( &t ); 12233 if( status ) return errno; 12234#endif 12235 12236#ifdef HAVE_LINUX_THREADS 12237 pthread_kill_other_threads_np(); 12238#endif 12239 12240 return 0; 12241 12242} 12243 12244_ACEOF 12245if ac_fn_c_try_run "$LINENO"; then : 12246 ol_cv_pthread_threads=yes 12247else 12248 ol_cv_pthread_threads=no 12249fi 12250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12251 conftest.$ac_objext conftest.beam conftest.$ac_ext 12252fi 12253 12254 12255 # restore the LIBS 12256 LIBS="$ol_LIBS" 12257 12258fi 12259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5 12260$as_echo "$ol_cv_pthread_threads" >&6; } 12261 12262 if test $ol_cv_pthread_threads = yes ; then 12263 ol_link_pthreads="-threads" 12264 ol_link_threads=posix 12265 fi 12266fi 12267 12268 12269 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r) 12270if test "$ol_link_threads" = no ; then 12271 # try -lpthreads -lmach -lexc -lc_r 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5 12273$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; } 12274if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then : 12275 $as_echo_n "(cached) " >&6 12276else 12277 12278 # save the flags 12279 ol_LIBS="$LIBS" 12280 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS" 12281 12282 if test "$cross_compiling" = yes; then : 12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12284/* end confdefs.h. */ 12285 12286/* pthread test headers */ 12287#include <pthread.h> 12288#if HAVE_PTHREADS < 7 12289#include <errno.h> 12290#endif 12291#ifndef NULL 12292#define NULL (void*)0 12293#endif 12294 12295static void *task(p) 12296 void *p; 12297{ 12298 return (void *) (p == NULL); 12299} 12300 12301int 12302main () 12303{ 12304 12305 /* pthread test function */ 12306#ifndef PTHREAD_CREATE_DETACHED 12307#define PTHREAD_CREATE_DETACHED 1 12308#endif 12309 pthread_t t; 12310 int status; 12311 int detach = PTHREAD_CREATE_DETACHED; 12312 12313#if HAVE_PTHREADS > 4 12314 /* Final pthreads */ 12315 pthread_attr_t attr; 12316 12317 status = pthread_attr_init(&attr); 12318 if( status ) return status; 12319 12320#if HAVE_PTHREADS < 7 12321 status = pthread_attr_setdetachstate(&attr, &detach); 12322 if( status < 0 ) status = errno; 12323#else 12324 status = pthread_attr_setdetachstate(&attr, detach); 12325#endif 12326 if( status ) return status; 12327 status = pthread_create( &t, &attr, task, NULL ); 12328#if HAVE_PTHREADS < 7 12329 if( status < 0 ) status = errno; 12330#endif 12331 if( status ) return status; 12332#else 12333 /* Draft 4 pthreads */ 12334 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12335 if( status ) return errno; 12336 12337 /* give thread a chance to complete */ 12338 /* it should remain joinable and hence detachable */ 12339 sleep( 1 ); 12340 12341 status = pthread_detach( &t ); 12342 if( status ) return errno; 12343#endif 12344 12345#ifdef HAVE_LINUX_THREADS 12346 pthread_kill_other_threads_np(); 12347#endif 12348 12349 return 0; 12350 12351 ; 12352 return 0; 12353} 12354_ACEOF 12355if ac_fn_c_try_link "$LINENO"; then : 12356 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 12357else 12358 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 12359fi 12360rm -f core conftest.err conftest.$ac_objext \ 12361 conftest$ac_exeext conftest.$ac_ext 12362else 12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12364/* end confdefs.h. */ 12365 12366 12367/* pthread test headers */ 12368#include <pthread.h> 12369#if HAVE_PTHREADS < 7 12370#include <errno.h> 12371#endif 12372#ifndef NULL 12373#define NULL (void*)0 12374#endif 12375 12376static void *task(p) 12377 void *p; 12378{ 12379 return (void *) (p == NULL); 12380} 12381 12382 12383int main(argc, argv) 12384 int argc; 12385 char **argv; 12386{ 12387 12388 /* pthread test function */ 12389#ifndef PTHREAD_CREATE_DETACHED 12390#define PTHREAD_CREATE_DETACHED 1 12391#endif 12392 pthread_t t; 12393 int status; 12394 int detach = PTHREAD_CREATE_DETACHED; 12395 12396#if HAVE_PTHREADS > 4 12397 /* Final pthreads */ 12398 pthread_attr_t attr; 12399 12400 status = pthread_attr_init(&attr); 12401 if( status ) return status; 12402 12403#if HAVE_PTHREADS < 7 12404 status = pthread_attr_setdetachstate(&attr, &detach); 12405 if( status < 0 ) status = errno; 12406#else 12407 status = pthread_attr_setdetachstate(&attr, detach); 12408#endif 12409 if( status ) return status; 12410 status = pthread_create( &t, &attr, task, NULL ); 12411#if HAVE_PTHREADS < 7 12412 if( status < 0 ) status = errno; 12413#endif 12414 if( status ) return status; 12415#else 12416 /* Draft 4 pthreads */ 12417 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12418 if( status ) return errno; 12419 12420 /* give thread a chance to complete */ 12421 /* it should remain joinable and hence detachable */ 12422 sleep( 1 ); 12423 12424 status = pthread_detach( &t ); 12425 if( status ) return errno; 12426#endif 12427 12428#ifdef HAVE_LINUX_THREADS 12429 pthread_kill_other_threads_np(); 12430#endif 12431 12432 return 0; 12433 12434} 12435 12436_ACEOF 12437if ac_fn_c_try_run "$LINENO"; then : 12438 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 12439else 12440 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 12441fi 12442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12443 conftest.$ac_objext conftest.beam conftest.$ac_ext 12444fi 12445 12446 12447 # restore the LIBS 12448 LIBS="$ol_LIBS" 12449 12450fi 12451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5 12452$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; } 12453 12454 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then 12455 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r" 12456 ol_link_threads=posix 12457 fi 12458fi 12459 12460 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc) 12461if test "$ol_link_threads" = no ; then 12462 # try -lpthreads -lmach -lexc 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5 12464$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; } 12465if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then : 12466 $as_echo_n "(cached) " >&6 12467else 12468 12469 # save the flags 12470 ol_LIBS="$LIBS" 12471 LIBS="-lpthreads -lmach -lexc $LIBS" 12472 12473 if test "$cross_compiling" = yes; then : 12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12475/* end confdefs.h. */ 12476 12477/* pthread test headers */ 12478#include <pthread.h> 12479#if HAVE_PTHREADS < 7 12480#include <errno.h> 12481#endif 12482#ifndef NULL 12483#define NULL (void*)0 12484#endif 12485 12486static void *task(p) 12487 void *p; 12488{ 12489 return (void *) (p == NULL); 12490} 12491 12492int 12493main () 12494{ 12495 12496 /* pthread test function */ 12497#ifndef PTHREAD_CREATE_DETACHED 12498#define PTHREAD_CREATE_DETACHED 1 12499#endif 12500 pthread_t t; 12501 int status; 12502 int detach = PTHREAD_CREATE_DETACHED; 12503 12504#if HAVE_PTHREADS > 4 12505 /* Final pthreads */ 12506 pthread_attr_t attr; 12507 12508 status = pthread_attr_init(&attr); 12509 if( status ) return status; 12510 12511#if HAVE_PTHREADS < 7 12512 status = pthread_attr_setdetachstate(&attr, &detach); 12513 if( status < 0 ) status = errno; 12514#else 12515 status = pthread_attr_setdetachstate(&attr, detach); 12516#endif 12517 if( status ) return status; 12518 status = pthread_create( &t, &attr, task, NULL ); 12519#if HAVE_PTHREADS < 7 12520 if( status < 0 ) status = errno; 12521#endif 12522 if( status ) return status; 12523#else 12524 /* Draft 4 pthreads */ 12525 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12526 if( status ) return errno; 12527 12528 /* give thread a chance to complete */ 12529 /* it should remain joinable and hence detachable */ 12530 sleep( 1 ); 12531 12532 status = pthread_detach( &t ); 12533 if( status ) return errno; 12534#endif 12535 12536#ifdef HAVE_LINUX_THREADS 12537 pthread_kill_other_threads_np(); 12538#endif 12539 12540 return 0; 12541 12542 ; 12543 return 0; 12544} 12545_ACEOF 12546if ac_fn_c_try_link "$LINENO"; then : 12547 ol_cv_pthread_lpthreads_lmach_lexc=yes 12548else 12549 ol_cv_pthread_lpthreads_lmach_lexc=no 12550fi 12551rm -f core conftest.err conftest.$ac_objext \ 12552 conftest$ac_exeext conftest.$ac_ext 12553else 12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12555/* end confdefs.h. */ 12556 12557 12558/* pthread test headers */ 12559#include <pthread.h> 12560#if HAVE_PTHREADS < 7 12561#include <errno.h> 12562#endif 12563#ifndef NULL 12564#define NULL (void*)0 12565#endif 12566 12567static void *task(p) 12568 void *p; 12569{ 12570 return (void *) (p == NULL); 12571} 12572 12573 12574int main(argc, argv) 12575 int argc; 12576 char **argv; 12577{ 12578 12579 /* pthread test function */ 12580#ifndef PTHREAD_CREATE_DETACHED 12581#define PTHREAD_CREATE_DETACHED 1 12582#endif 12583 pthread_t t; 12584 int status; 12585 int detach = PTHREAD_CREATE_DETACHED; 12586 12587#if HAVE_PTHREADS > 4 12588 /* Final pthreads */ 12589 pthread_attr_t attr; 12590 12591 status = pthread_attr_init(&attr); 12592 if( status ) return status; 12593 12594#if HAVE_PTHREADS < 7 12595 status = pthread_attr_setdetachstate(&attr, &detach); 12596 if( status < 0 ) status = errno; 12597#else 12598 status = pthread_attr_setdetachstate(&attr, detach); 12599#endif 12600 if( status ) return status; 12601 status = pthread_create( &t, &attr, task, NULL ); 12602#if HAVE_PTHREADS < 7 12603 if( status < 0 ) status = errno; 12604#endif 12605 if( status ) return status; 12606#else 12607 /* Draft 4 pthreads */ 12608 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12609 if( status ) return errno; 12610 12611 /* give thread a chance to complete */ 12612 /* it should remain joinable and hence detachable */ 12613 sleep( 1 ); 12614 12615 status = pthread_detach( &t ); 12616 if( status ) return errno; 12617#endif 12618 12619#ifdef HAVE_LINUX_THREADS 12620 pthread_kill_other_threads_np(); 12621#endif 12622 12623 return 0; 12624 12625} 12626 12627_ACEOF 12628if ac_fn_c_try_run "$LINENO"; then : 12629 ol_cv_pthread_lpthreads_lmach_lexc=yes 12630else 12631 ol_cv_pthread_lpthreads_lmach_lexc=no 12632fi 12633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12634 conftest.$ac_objext conftest.beam conftest.$ac_ext 12635fi 12636 12637 12638 # restore the LIBS 12639 LIBS="$ol_LIBS" 12640 12641fi 12642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5 12643$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; } 12644 12645 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then 12646 ol_link_pthreads="-lpthreads -lmach -lexc" 12647 ol_link_threads=posix 12648 fi 12649fi 12650 12651 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc) 12652if test "$ol_link_threads" = no ; then 12653 # try -lpthreads -lexc 12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5 12655$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; } 12656if ${ol_cv_pthread_lpthreads_lexc+:} false; then : 12657 $as_echo_n "(cached) " >&6 12658else 12659 12660 # save the flags 12661 ol_LIBS="$LIBS" 12662 LIBS="-lpthreads -lexc $LIBS" 12663 12664 if test "$cross_compiling" = yes; then : 12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12666/* end confdefs.h. */ 12667 12668/* pthread test headers */ 12669#include <pthread.h> 12670#if HAVE_PTHREADS < 7 12671#include <errno.h> 12672#endif 12673#ifndef NULL 12674#define NULL (void*)0 12675#endif 12676 12677static void *task(p) 12678 void *p; 12679{ 12680 return (void *) (p == NULL); 12681} 12682 12683int 12684main () 12685{ 12686 12687 /* pthread test function */ 12688#ifndef PTHREAD_CREATE_DETACHED 12689#define PTHREAD_CREATE_DETACHED 1 12690#endif 12691 pthread_t t; 12692 int status; 12693 int detach = PTHREAD_CREATE_DETACHED; 12694 12695#if HAVE_PTHREADS > 4 12696 /* Final pthreads */ 12697 pthread_attr_t attr; 12698 12699 status = pthread_attr_init(&attr); 12700 if( status ) return status; 12701 12702#if HAVE_PTHREADS < 7 12703 status = pthread_attr_setdetachstate(&attr, &detach); 12704 if( status < 0 ) status = errno; 12705#else 12706 status = pthread_attr_setdetachstate(&attr, detach); 12707#endif 12708 if( status ) return status; 12709 status = pthread_create( &t, &attr, task, NULL ); 12710#if HAVE_PTHREADS < 7 12711 if( status < 0 ) status = errno; 12712#endif 12713 if( status ) return status; 12714#else 12715 /* Draft 4 pthreads */ 12716 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12717 if( status ) return errno; 12718 12719 /* give thread a chance to complete */ 12720 /* it should remain joinable and hence detachable */ 12721 sleep( 1 ); 12722 12723 status = pthread_detach( &t ); 12724 if( status ) return errno; 12725#endif 12726 12727#ifdef HAVE_LINUX_THREADS 12728 pthread_kill_other_threads_np(); 12729#endif 12730 12731 return 0; 12732 12733 ; 12734 return 0; 12735} 12736_ACEOF 12737if ac_fn_c_try_link "$LINENO"; then : 12738 ol_cv_pthread_lpthreads_lexc=yes 12739else 12740 ol_cv_pthread_lpthreads_lexc=no 12741fi 12742rm -f core conftest.err conftest.$ac_objext \ 12743 conftest$ac_exeext conftest.$ac_ext 12744else 12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12746/* end confdefs.h. */ 12747 12748 12749/* pthread test headers */ 12750#include <pthread.h> 12751#if HAVE_PTHREADS < 7 12752#include <errno.h> 12753#endif 12754#ifndef NULL 12755#define NULL (void*)0 12756#endif 12757 12758static void *task(p) 12759 void *p; 12760{ 12761 return (void *) (p == NULL); 12762} 12763 12764 12765int main(argc, argv) 12766 int argc; 12767 char **argv; 12768{ 12769 12770 /* pthread test function */ 12771#ifndef PTHREAD_CREATE_DETACHED 12772#define PTHREAD_CREATE_DETACHED 1 12773#endif 12774 pthread_t t; 12775 int status; 12776 int detach = PTHREAD_CREATE_DETACHED; 12777 12778#if HAVE_PTHREADS > 4 12779 /* Final pthreads */ 12780 pthread_attr_t attr; 12781 12782 status = pthread_attr_init(&attr); 12783 if( status ) return status; 12784 12785#if HAVE_PTHREADS < 7 12786 status = pthread_attr_setdetachstate(&attr, &detach); 12787 if( status < 0 ) status = errno; 12788#else 12789 status = pthread_attr_setdetachstate(&attr, detach); 12790#endif 12791 if( status ) return status; 12792 status = pthread_create( &t, &attr, task, NULL ); 12793#if HAVE_PTHREADS < 7 12794 if( status < 0 ) status = errno; 12795#endif 12796 if( status ) return status; 12797#else 12798 /* Draft 4 pthreads */ 12799 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12800 if( status ) return errno; 12801 12802 /* give thread a chance to complete */ 12803 /* it should remain joinable and hence detachable */ 12804 sleep( 1 ); 12805 12806 status = pthread_detach( &t ); 12807 if( status ) return errno; 12808#endif 12809 12810#ifdef HAVE_LINUX_THREADS 12811 pthread_kill_other_threads_np(); 12812#endif 12813 12814 return 0; 12815 12816} 12817 12818_ACEOF 12819if ac_fn_c_try_run "$LINENO"; then : 12820 ol_cv_pthread_lpthreads_lexc=yes 12821else 12822 ol_cv_pthread_lpthreads_lexc=no 12823fi 12824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12825 conftest.$ac_objext conftest.beam conftest.$ac_ext 12826fi 12827 12828 12829 # restore the LIBS 12830 LIBS="$ol_LIBS" 12831 12832fi 12833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5 12834$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; } 12835 12836 if test $ol_cv_pthread_lpthreads_lexc = yes ; then 12837 ol_link_pthreads="-lpthreads -lexc" 12838 ol_link_threads=posix 12839 fi 12840fi 12841 12842 12843 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads) 12844if test "$ol_link_threads" = no ; then 12845 # try -lpthreads 12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5 12847$as_echo_n "checking for pthread link with -lpthreads... " >&6; } 12848if ${ol_cv_pthread_lib_lpthreads+:} false; then : 12849 $as_echo_n "(cached) " >&6 12850else 12851 12852 # save the flags 12853 ol_LIBS="$LIBS" 12854 LIBS="-lpthreads $LIBS" 12855 12856 if test "$cross_compiling" = yes; then : 12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12858/* end confdefs.h. */ 12859 12860/* pthread test headers */ 12861#include <pthread.h> 12862#if HAVE_PTHREADS < 7 12863#include <errno.h> 12864#endif 12865#ifndef NULL 12866#define NULL (void*)0 12867#endif 12868 12869static void *task(p) 12870 void *p; 12871{ 12872 return (void *) (p == NULL); 12873} 12874 12875int 12876main () 12877{ 12878 12879 /* pthread test function */ 12880#ifndef PTHREAD_CREATE_DETACHED 12881#define PTHREAD_CREATE_DETACHED 1 12882#endif 12883 pthread_t t; 12884 int status; 12885 int detach = PTHREAD_CREATE_DETACHED; 12886 12887#if HAVE_PTHREADS > 4 12888 /* Final pthreads */ 12889 pthread_attr_t attr; 12890 12891 status = pthread_attr_init(&attr); 12892 if( status ) return status; 12893 12894#if HAVE_PTHREADS < 7 12895 status = pthread_attr_setdetachstate(&attr, &detach); 12896 if( status < 0 ) status = errno; 12897#else 12898 status = pthread_attr_setdetachstate(&attr, detach); 12899#endif 12900 if( status ) return status; 12901 status = pthread_create( &t, &attr, task, NULL ); 12902#if HAVE_PTHREADS < 7 12903 if( status < 0 ) status = errno; 12904#endif 12905 if( status ) return status; 12906#else 12907 /* Draft 4 pthreads */ 12908 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12909 if( status ) return errno; 12910 12911 /* give thread a chance to complete */ 12912 /* it should remain joinable and hence detachable */ 12913 sleep( 1 ); 12914 12915 status = pthread_detach( &t ); 12916 if( status ) return errno; 12917#endif 12918 12919#ifdef HAVE_LINUX_THREADS 12920 pthread_kill_other_threads_np(); 12921#endif 12922 12923 return 0; 12924 12925 ; 12926 return 0; 12927} 12928_ACEOF 12929if ac_fn_c_try_link "$LINENO"; then : 12930 ol_cv_pthread_lib_lpthreads=yes 12931else 12932 ol_cv_pthread_lib_lpthreads=no 12933fi 12934rm -f core conftest.err conftest.$ac_objext \ 12935 conftest$ac_exeext conftest.$ac_ext 12936else 12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12938/* end confdefs.h. */ 12939 12940 12941/* pthread test headers */ 12942#include <pthread.h> 12943#if HAVE_PTHREADS < 7 12944#include <errno.h> 12945#endif 12946#ifndef NULL 12947#define NULL (void*)0 12948#endif 12949 12950static void *task(p) 12951 void *p; 12952{ 12953 return (void *) (p == NULL); 12954} 12955 12956 12957int main(argc, argv) 12958 int argc; 12959 char **argv; 12960{ 12961 12962 /* pthread test function */ 12963#ifndef PTHREAD_CREATE_DETACHED 12964#define PTHREAD_CREATE_DETACHED 1 12965#endif 12966 pthread_t t; 12967 int status; 12968 int detach = PTHREAD_CREATE_DETACHED; 12969 12970#if HAVE_PTHREADS > 4 12971 /* Final pthreads */ 12972 pthread_attr_t attr; 12973 12974 status = pthread_attr_init(&attr); 12975 if( status ) return status; 12976 12977#if HAVE_PTHREADS < 7 12978 status = pthread_attr_setdetachstate(&attr, &detach); 12979 if( status < 0 ) status = errno; 12980#else 12981 status = pthread_attr_setdetachstate(&attr, detach); 12982#endif 12983 if( status ) return status; 12984 status = pthread_create( &t, &attr, task, NULL ); 12985#if HAVE_PTHREADS < 7 12986 if( status < 0 ) status = errno; 12987#endif 12988 if( status ) return status; 12989#else 12990 /* Draft 4 pthreads */ 12991 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12992 if( status ) return errno; 12993 12994 /* give thread a chance to complete */ 12995 /* it should remain joinable and hence detachable */ 12996 sleep( 1 ); 12997 12998 status = pthread_detach( &t ); 12999 if( status ) return errno; 13000#endif 13001 13002#ifdef HAVE_LINUX_THREADS 13003 pthread_kill_other_threads_np(); 13004#endif 13005 13006 return 0; 13007 13008} 13009 13010_ACEOF 13011if ac_fn_c_try_run "$LINENO"; then : 13012 ol_cv_pthread_lib_lpthreads=yes 13013else 13014 ol_cv_pthread_lib_lpthreads=no 13015fi 13016rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13017 conftest.$ac_objext conftest.beam conftest.$ac_ext 13018fi 13019 13020 13021 # restore the LIBS 13022 LIBS="$ol_LIBS" 13023 13024fi 13025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5 13026$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; } 13027 13028 if test $ol_cv_pthread_lib_lpthreads = yes ; then 13029 ol_link_pthreads="-lpthreads" 13030 ol_link_threads=posix 13031 fi 13032fi 13033 13034 13035{ $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5 13036$as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;} 13037 13038 if test $ol_link_threads != no ; then 13039 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads" 13040 13041 save_CPPFLAGS="$CPPFLAGS" 13042 save_LIBS="$LIBS" 13043 LIBS="$LTHREAD_LIBS $LIBS" 13044 13045 for ac_func in sched_yield pthread_yield thr_yield 13046do : 13047 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13048ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13049if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13050 cat >>confdefs.h <<_ACEOF 13051#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13052_ACEOF 13053 13054fi 13055done 13056 13057 13058 if test $ac_cv_func_sched_yield = no && 13059 test $ac_cv_func_pthread_yield = no && 13060 test $ac_cv_func_thr_yield = no ; then 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 13062$as_echo_n "checking for sched_yield in -lrt... " >&6; } 13063if ${ac_cv_lib_rt_sched_yield+:} false; then : 13064 $as_echo_n "(cached) " >&6 13065else 13066 ac_check_lib_save_LIBS=$LIBS 13067LIBS="-lrt $LIBS" 13068cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13069/* end confdefs.h. */ 13070 13071/* Override any GCC internal prototype to avoid an error. 13072 Use char because int might match the return type of a GCC 13073 builtin and then its argument prototype would still apply. */ 13074#ifdef __cplusplus 13075extern "C" 13076#endif 13077char sched_yield (); 13078int 13079main () 13080{ 13081return sched_yield (); 13082 ; 13083 return 0; 13084} 13085_ACEOF 13086if ac_fn_c_try_link "$LINENO"; then : 13087 ac_cv_lib_rt_sched_yield=yes 13088else 13089 ac_cv_lib_rt_sched_yield=no 13090fi 13091rm -f core conftest.err conftest.$ac_objext \ 13092 conftest$ac_exeext conftest.$ac_ext 13093LIBS=$ac_check_lib_save_LIBS 13094fi 13095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 13096$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 13097if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 13098 LTHREAD_LIBS="$LTHREAD_LIBS -lrt" 13099 13100$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h 13101 13102 ac_cv_func_sched_yield=yes 13103else 13104 ac_cv_func_sched_yield=no 13105fi 13106 13107 fi 13108 if test $ac_cv_func_sched_yield = no && 13109 test $ac_cv_func_pthread_yield = no && 13110 test "$ac_cv_func_thr_yield" = no ; then 13111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5 13112$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;} 13113 fi 13114 13115 for ac_func in pthread_kill 13116do : 13117 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill" 13118if test "x$ac_cv_func_pthread_kill" = xyes; then : 13119 cat >>confdefs.h <<_ACEOF 13120#define HAVE_PTHREAD_KILL 1 13121_ACEOF 13122 13123fi 13124done 13125 13126 13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5 13128$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; } 13129if ${ol_cv_func_pthread_rwlock_destroy+:} false; then : 13130 $as_echo_n "(cached) " >&6 13131else 13132 13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13134/* end confdefs.h. */ 13135 13136#include <pthread.h> 13137pthread_rwlock_t rwlock; 13138 13139int 13140main () 13141{ 13142pthread_rwlock_destroy(&rwlock); 13143 ; 13144 return 0; 13145} 13146_ACEOF 13147if ac_fn_c_try_link "$LINENO"; then : 13148 ol_cv_func_pthread_rwlock_destroy=yes 13149else 13150 ol_cv_func_pthread_rwlock_destroy=no 13151fi 13152rm -f core conftest.err conftest.$ac_objext \ 13153 conftest$ac_exeext conftest.$ac_ext 13154 13155fi 13156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5 13157$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; } 13158 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then 13159 13160$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h 13161 13162 fi 13163 13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5 13165$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; } 13166if ${ol_cv_func_pthread_detach+:} false; then : 13167 $as_echo_n "(cached) " >&6 13168else 13169 13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13171/* end confdefs.h. */ 13172 13173#include <pthread.h> 13174#ifndef NULL 13175#define NULL (void*)0 13176#endif 13177 13178int 13179main () 13180{ 13181pthread_detach(NULL); 13182 ; 13183 return 0; 13184} 13185_ACEOF 13186if ac_fn_c_try_link "$LINENO"; then : 13187 ol_cv_func_pthread_detach=yes 13188else 13189 ol_cv_func_pthread_detach=no 13190fi 13191rm -f core conftest.err conftest.$ac_objext \ 13192 conftest$ac_exeext conftest.$ac_ext 13193 13194fi 13195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5 13196$as_echo "$ol_cv_func_pthread_detach" >&6; } 13197 13198 if test $ol_cv_func_pthread_detach = no ; then 13199 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5 13200 fi 13201 13202 13203$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h 13204 13205 13206 for ac_func in \ 13207 pthread_setconcurrency \ 13208 pthread_getconcurrency \ 13209 thr_setconcurrency \ 13210 thr_getconcurrency \ 13211 13212do : 13213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13214ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13215if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13216 cat >>confdefs.h <<_ACEOF 13217#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13218_ACEOF 13219 13220fi 13221done 13222 13223 13224 13225 for ac_func in pthread_kill_other_threads_np 13226do : 13227 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np" 13228if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then : 13229 cat >>confdefs.h <<_ACEOF 13230#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1 13231_ACEOF 13232 13233fi 13234done 13235 13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5 13237$as_echo_n "checking for LinuxThreads implementation... " >&6; } 13238if ${ol_cv_sys_linux_threads+:} false; then : 13239 $as_echo_n "(cached) " >&6 13240else 13241 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np 13242fi 13243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5 13244$as_echo "$ol_cv_sys_linux_threads" >&6; } 13245 13246 13247 13248 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5 13250$as_echo_n "checking for LinuxThreads consistency... " >&6; } 13251if ${ol_cv_linux_threads+:} false; then : 13252 $as_echo_n "(cached) " >&6 13253else 13254 13255 if test $ol_cv_header_linux_threads = yes && 13256 test $ol_cv_sys_linux_threads = yes; then 13257 ol_cv_linux_threads=yes 13258 elif test $ol_cv_header_linux_threads = no && 13259 test $ol_cv_sys_linux_threads = no; then 13260 ol_cv_linux_threads=no 13261 else 13262 ol_cv_linux_threads=error 13263 fi 13264 13265fi 13266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5 13267$as_echo "$ol_cv_linux_threads" >&6; } 13268 13269 13270 if test $ol_cv_linux_threads = error; then 13271 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5; 13272 fi 13273 13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5 13275$as_echo_n "checking if pthread_create() works... " >&6; } 13276if ${ol_cv_pthread_create_works+:} false; then : 13277 $as_echo_n "(cached) " >&6 13278else 13279 13280 if test "$cross_compiling" = yes; then : 13281 ol_cv_pthread_create_works=yes 13282else 13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13284/* end confdefs.h. */ 13285 13286 13287/* pthread test headers */ 13288#include <pthread.h> 13289#if HAVE_PTHREADS < 7 13290#include <errno.h> 13291#endif 13292#ifndef NULL 13293#define NULL (void*)0 13294#endif 13295 13296static void *task(p) 13297 void *p; 13298{ 13299 return (void *) (p == NULL); 13300} 13301 13302 13303int main(argc, argv) 13304 int argc; 13305 char **argv; 13306{ 13307 13308 /* pthread test function */ 13309#ifndef PTHREAD_CREATE_DETACHED 13310#define PTHREAD_CREATE_DETACHED 1 13311#endif 13312 pthread_t t; 13313 int status; 13314 int detach = PTHREAD_CREATE_DETACHED; 13315 13316#if HAVE_PTHREADS > 4 13317 /* Final pthreads */ 13318 pthread_attr_t attr; 13319 13320 status = pthread_attr_init(&attr); 13321 if( status ) return status; 13322 13323#if HAVE_PTHREADS < 7 13324 status = pthread_attr_setdetachstate(&attr, &detach); 13325 if( status < 0 ) status = errno; 13326#else 13327 status = pthread_attr_setdetachstate(&attr, detach); 13328#endif 13329 if( status ) return status; 13330 status = pthread_create( &t, &attr, task, NULL ); 13331#if HAVE_PTHREADS < 7 13332 if( status < 0 ) status = errno; 13333#endif 13334 if( status ) return status; 13335#else 13336 /* Draft 4 pthreads */ 13337 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13338 if( status ) return errno; 13339 13340 /* give thread a chance to complete */ 13341 /* it should remain joinable and hence detachable */ 13342 sleep( 1 ); 13343 13344 status = pthread_detach( &t ); 13345 if( status ) return errno; 13346#endif 13347 13348#ifdef HAVE_LINUX_THREADS 13349 pthread_kill_other_threads_np(); 13350#endif 13351 13352 return 0; 13353 13354} 13355 13356_ACEOF 13357if ac_fn_c_try_run "$LINENO"; then : 13358 ol_cv_pthread_create_works=yes 13359else 13360 ol_cv_pthread_create_works=no 13361fi 13362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13363 conftest.$ac_objext conftest.beam conftest.$ac_ext 13364fi 13365 13366fi 13367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5 13368$as_echo "$ol_cv_pthread_create_works" >&6; } 13369 13370 if test $ol_cv_pthread_create_works = no ; then 13371 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5 13372 fi 13373 13374 ol_replace_broken_yield=no 13375 13376 if test $ol_replace_broken_yield = yes ; then 13377 13378$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h 13379 13380 fi 13381 13382 if test x$ol_with_yielding_select = xauto ; then 13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5 13384$as_echo_n "checking if select yields when using pthreads... " >&6; } 13385if ${ol_cv_pthread_select_yields+:} false; then : 13386 $as_echo_n "(cached) " >&6 13387else 13388 13389 if test "$cross_compiling" = yes; then : 13390 ol_cv_pthread_select_yields=cross 13391else 13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13393/* end confdefs.h. */ 13394 13395#include <sys/types.h> 13396#include <sys/time.h> 13397#include <unistd.h> 13398#include <pthread.h> 13399#ifndef NULL 13400#define NULL (void*) 0 13401#endif 13402 13403static int fildes[2]; 13404 13405static void *task(p) 13406 void *p; 13407{ 13408 int i; 13409 struct timeval tv; 13410 13411 fd_set rfds; 13412 13413 tv.tv_sec=10; 13414 tv.tv_usec=0; 13415 13416 FD_ZERO(&rfds); 13417 FD_SET(fildes[0], &rfds); 13418 13419 /* we're not interested in any fds */ 13420 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv); 13421 13422 if(i < 0) { 13423 perror("select"); 13424 exit(10); 13425 } 13426 13427 exit(0); /* if we exit here, the select blocked the whole process */ 13428} 13429 13430int main(argc, argv) 13431 int argc; 13432 char **argv; 13433{ 13434 pthread_t t; 13435 13436 /* create a pipe to select */ 13437 if(pipe(&fildes[0])) { 13438 perror("select"); 13439 exit(1); 13440 } 13441 13442#ifdef HAVE_PTHREAD_SETCONCURRENCY 13443 (void) pthread_setconcurrency(2); 13444#else 13445#ifdef HAVE_THR_SETCONCURRENCY 13446 /* Set Solaris LWP concurrency to 2 */ 13447 thr_setconcurrency(2); 13448#endif 13449#endif 13450 13451#if HAVE_PTHREADS < 6 13452 pthread_create(&t, pthread_attr_default, task, NULL); 13453#else 13454 pthread_create(&t, NULL, task, NULL); 13455#endif 13456 13457 /* make sure task runs first */ 13458#ifdef HAVE_THR_YIELD 13459 thr_yield(); 13460#elif defined( HAVE_SCHED_YIELD ) 13461 sched_yield(); 13462#elif defined( HAVE_PTHREAD_YIELD ) 13463 pthread_yield(); 13464#endif 13465 13466 exit(2); 13467} 13468_ACEOF 13469if ac_fn_c_try_run "$LINENO"; then : 13470 ol_cv_pthread_select_yields=no 13471else 13472 ol_cv_pthread_select_yields=yes 13473fi 13474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13475 conftest.$ac_objext conftest.beam conftest.$ac_ext 13476fi 13477 13478fi 13479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5 13480$as_echo "$ol_cv_pthread_select_yields" >&6; } 13481 13482 if test $ol_cv_pthread_select_yields = cross ; then 13483 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5 13484 fi 13485 13486 if test $ol_cv_pthread_select_yields = yes ; then 13487 ol_with_yielding_select=yes 13488 fi 13489 fi 13490 13491 CPPFLAGS="$save_CPPFLAGS" 13492 LIBS="$save_LIBS" 13493 else 13494 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5 13495 fi 13496 fi 13497 13498 if test $ol_with_threads = posix ; then 13499 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5 13500 fi 13501 ;; 13502esac 13503 13504case $ol_with_threads in auto | yes | mach) 13505 13506 for ac_header in mach/cthreads.h cthreads.h 13507do : 13508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13509ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13510if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13511 cat >>confdefs.h <<_ACEOF 13512#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13513_ACEOF 13514 13515fi 13516 13517done 13518 13519 if test $ac_cv_header_mach_cthreads_h = yes ; then 13520 ol_with_threads=found 13521 13522 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 13523if test "x$ac_cv_func_cthread_fork" = xyes; then : 13524 ol_link_threads=yes 13525fi 13526 13527 13528 if test $ol_link_threads = no ; then 13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5 13530$as_echo_n "checking for cthread_fork with -all_load... " >&6; } 13531if ${ol_cv_cthread_all_load+:} false; then : 13532 $as_echo_n "(cached) " >&6 13533else 13534 13535 save_LIBS="$LIBS" 13536 LIBS="-all_load $LIBS" 13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13538/* end confdefs.h. */ 13539#include <mach/cthreads.h> 13540int 13541main () 13542{ 13543 13544 cthread_fork((void *)0, (void *)0); 13545 13546 ; 13547 return 0; 13548} 13549_ACEOF 13550if ac_fn_c_try_link "$LINENO"; then : 13551 ol_cv_cthread_all_load=yes 13552else 13553 ol_cv_cthread_all_load=no 13554fi 13555rm -f core conftest.err conftest.$ac_objext \ 13556 conftest$ac_exeext conftest.$ac_ext 13557 LIBS="$save_LIBS" 13558 13559fi 13560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5 13561$as_echo "$ol_cv_cthread_all_load" >&6; } 13562 13563 if test $ol_cv_cthread_all_load = yes ; then 13564 LTHREAD_LIBS="$LTHREAD_LIBS -all_load" 13565 ol_link_threads=mach 13566 ol_with_threads=found 13567 fi 13568 fi 13569 13570 elif test $ac_cv_header_cthreads_h = yes ; then 13571 13572 ol_with_threads=found 13573 13574 save_LIBS="$LIBS" 13575 LIBS="$LIBS -lthreads" 13576 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 13577if test "x$ac_cv_func_cthread_fork" = xyes; then : 13578 ol_link_threads=yes 13579fi 13580 13581 LIBS="$save_LIBS" 13582 13583 if test $ol_link_threads = yes ; then 13584 LTHREAD_LIBS="-lthreads" 13585 ol_link_threads=mach 13586 ol_with_threads=found 13587 else 13588 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 13589 fi 13590 13591 elif test $ol_with_threads = mach ; then 13592 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5 13593 fi 13594 13595 if test $ol_link_threads = mach ; then 13596 13597$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h 13598 13599 elif test $ol_with_threads = found ; then 13600 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 13601 fi 13602 ;; 13603esac 13604 13605case $ol_with_threads in auto | yes | pth) 13606 13607 for ac_header in pth.h 13608do : 13609 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default" 13610if test "x$ac_cv_header_pth_h" = xyes; then : 13611 cat >>confdefs.h <<_ACEOF 13612#define HAVE_PTH_H 1 13613_ACEOF 13614 13615fi 13616 13617done 13618 13619 13620 if test $ac_cv_header_pth_h = yes ; then 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5 13622$as_echo_n "checking for pth_version in -lpth... " >&6; } 13623if ${ac_cv_lib_pth_pth_version+:} false; then : 13624 $as_echo_n "(cached) " >&6 13625else 13626 ac_check_lib_save_LIBS=$LIBS 13627LIBS="-lpth $LIBS" 13628cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13629/* end confdefs.h. */ 13630 13631/* Override any GCC internal prototype to avoid an error. 13632 Use char because int might match the return type of a GCC 13633 builtin and then its argument prototype would still apply. */ 13634#ifdef __cplusplus 13635extern "C" 13636#endif 13637char pth_version (); 13638int 13639main () 13640{ 13641return pth_version (); 13642 ; 13643 return 0; 13644} 13645_ACEOF 13646if ac_fn_c_try_link "$LINENO"; then : 13647 ac_cv_lib_pth_pth_version=yes 13648else 13649 ac_cv_lib_pth_pth_version=no 13650fi 13651rm -f core conftest.err conftest.$ac_objext \ 13652 conftest$ac_exeext conftest.$ac_ext 13653LIBS=$ac_check_lib_save_LIBS 13654fi 13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5 13656$as_echo "$ac_cv_lib_pth_pth_version" >&6; } 13657if test "x$ac_cv_lib_pth_pth_version" = xyes; then : 13658 have_pth=yes 13659else 13660 have_pth=no 13661fi 13662 13663 13664 if test $have_pth = yes ; then 13665 13666$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h 13667 13668 LTHREAD_LIBS="$LTHREAD_LIBS -lpth" 13669 ol_link_threads=pth 13670 ol_with_threads=found 13671 13672 if test x$ol_with_yielding_select = xauto ; then 13673 ol_with_yielding_select=yes 13674 fi 13675 fi 13676 fi 13677 ;; 13678esac 13679 13680case $ol_with_threads in auto | yes | lwp) 13681 13682 for ac_header in thread.h synch.h 13683do : 13684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13685ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13686if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13687 cat >>confdefs.h <<_ACEOF 13688#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13689_ACEOF 13690 13691fi 13692 13693done 13694 13695 if test $ac_cv_header_thread_h = yes && 13696 test $ac_cv_header_synch_h = yes ; then 13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 13698$as_echo_n "checking for thr_create in -lthread... " >&6; } 13699if ${ac_cv_lib_thread_thr_create+:} false; then : 13700 $as_echo_n "(cached) " >&6 13701else 13702 ac_check_lib_save_LIBS=$LIBS 13703LIBS="-lthread $LIBS" 13704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13705/* end confdefs.h. */ 13706 13707/* Override any GCC internal prototype to avoid an error. 13708 Use char because int might match the return type of a GCC 13709 builtin and then its argument prototype would still apply. */ 13710#ifdef __cplusplus 13711extern "C" 13712#endif 13713char thr_create (); 13714int 13715main () 13716{ 13717return thr_create (); 13718 ; 13719 return 0; 13720} 13721_ACEOF 13722if ac_fn_c_try_link "$LINENO"; then : 13723 ac_cv_lib_thread_thr_create=yes 13724else 13725 ac_cv_lib_thread_thr_create=no 13726fi 13727rm -f core conftest.err conftest.$ac_objext \ 13728 conftest$ac_exeext conftest.$ac_ext 13729LIBS=$ac_check_lib_save_LIBS 13730fi 13731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 13732$as_echo "$ac_cv_lib_thread_thr_create" >&6; } 13733if test "x$ac_cv_lib_thread_thr_create" = xyes; then : 13734 have_thr=yes 13735else 13736 have_thr=no 13737fi 13738 13739 13740 if test $have_thr = yes ; then 13741 13742$as_echo "#define HAVE_THR 1" >>confdefs.h 13743 13744 LTHREAD_LIBS="$LTHREAD_LIBS -lthread" 13745 ol_link_threads=thr 13746 13747 if test x$ol_with_yielding_select = xauto ; then 13748 ol_with_yielding_select=yes 13749 fi 13750 13751 for ac_func in \ 13752 thr_setconcurrency \ 13753 thr_getconcurrency \ 13754 13755do : 13756 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13757ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13758if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13759 cat >>confdefs.h <<_ACEOF 13760#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13761_ACEOF 13762 13763fi 13764done 13765 13766 fi 13767 fi 13768 13769 for ac_header in lwp/lwp.h 13770do : 13771 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 13772if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 13773 cat >>confdefs.h <<_ACEOF 13774#define HAVE_LWP_LWP_H 1 13775_ACEOF 13776 13777fi 13778 13779done 13780 13781 if test $ac_cv_header_lwp_lwp_h = yes ; then 13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5 13783$as_echo_n "checking for lwp_create in -llwp... " >&6; } 13784if ${ac_cv_lib_lwp_lwp_create+:} false; then : 13785 $as_echo_n "(cached) " >&6 13786else 13787 ac_check_lib_save_LIBS=$LIBS 13788LIBS="-llwp $LIBS" 13789cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13790/* end confdefs.h. */ 13791 13792/* Override any GCC internal prototype to avoid an error. 13793 Use char because int might match the return type of a GCC 13794 builtin and then its argument prototype would still apply. */ 13795#ifdef __cplusplus 13796extern "C" 13797#endif 13798char lwp_create (); 13799int 13800main () 13801{ 13802return lwp_create (); 13803 ; 13804 return 0; 13805} 13806_ACEOF 13807if ac_fn_c_try_link "$LINENO"; then : 13808 ac_cv_lib_lwp_lwp_create=yes 13809else 13810 ac_cv_lib_lwp_lwp_create=no 13811fi 13812rm -f core conftest.err conftest.$ac_objext \ 13813 conftest$ac_exeext conftest.$ac_ext 13814LIBS=$ac_check_lib_save_LIBS 13815fi 13816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5 13817$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; } 13818if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then : 13819 have_lwp=yes 13820else 13821 have_lwp=no 13822fi 13823 13824 13825 if test $have_lwp = yes ; then 13826 13827$as_echo "#define HAVE_LWP 1" >>confdefs.h 13828 13829 LTHREAD_LIBS="$LTHREAD_LIBS -llwp" 13830 ol_link_threads=lwp 13831 13832 if test x$ol_with_yielding_select = xauto ; then 13833 ol_with_yielding_select=no 13834 fi 13835 fi 13836 fi 13837 ;; 13838esac 13839 13840if test $ol_with_yielding_select = yes ; then 13841 13842$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h 13843 13844fi 13845 13846if test $ol_with_threads = manual ; then 13847 ol_link_threads=yes 13848 13849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5 13850$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;} 13851 13852 for ac_header in pthread.h sched.h 13853do : 13854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13855ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13856if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13857 cat >>confdefs.h <<_ACEOF 13858#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13859_ACEOF 13860 13861fi 13862 13863done 13864 13865 for ac_func in sched_yield pthread_yield 13866do : 13867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13868ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13869if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13870 cat >>confdefs.h <<_ACEOF 13871#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13872_ACEOF 13873 13874fi 13875done 13876 13877 13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 13879$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 13880if ${ol_cv_header_linux_threads+:} false; then : 13881 $as_echo_n "(cached) " >&6 13882else 13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13884/* end confdefs.h. */ 13885#include <pthread.h> 13886_ACEOF 13887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13888 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 13889 ol_cv_header_linux_threads=yes 13890else 13891 ol_cv_header_linux_threads=no 13892fi 13893rm -f conftest* 13894 13895 13896fi 13897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 13898$as_echo "$ol_cv_header_linux_threads" >&6; } 13899 if test $ol_cv_header_linux_threads = yes; then 13900 13901$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 13902 13903 fi 13904 13905 13906 for ac_header in mach/cthreads.h 13907do : 13908 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" 13909if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : 13910 cat >>confdefs.h <<_ACEOF 13911#define HAVE_MACH_CTHREADS_H 1 13912_ACEOF 13913 13914fi 13915 13916done 13917 13918 for ac_header in lwp/lwp.h 13919do : 13920 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 13921if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 13922 cat >>confdefs.h <<_ACEOF 13923#define HAVE_LWP_LWP_H 1 13924_ACEOF 13925 13926fi 13927 13928done 13929 13930 for ac_header in thread.h synch.h 13931do : 13932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13933ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13934if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13935 cat >>confdefs.h <<_ACEOF 13936#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13937_ACEOF 13938 13939fi 13940 13941done 13942 13943fi 13944 13945if test $ol_link_threads != no && test $ol_link_threads != nt ; then 13946 13947$as_echo "#define REENTRANT 1" >>confdefs.h 13948 13949 13950$as_echo "#define _REENTRANT 1" >>confdefs.h 13951 13952 13953$as_echo "#define THREAD_SAFE 1" >>confdefs.h 13954 13955 13956$as_echo "#define _THREAD_SAFE 1" >>confdefs.h 13957 13958 13959$as_echo "#define THREADSAFE 1" >>confdefs.h 13960 13961 13962$as_echo "#define _THREADSAFE 1" >>confdefs.h 13963 13964 13965$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h 13966 13967 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5 13969$as_echo_n "checking for thread specific errno... " >&6; } 13970if ${ol_cv_errno_thread_specific+:} false; then : 13971 $as_echo_n "(cached) " >&6 13972else 13973 13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13975/* end confdefs.h. */ 13976#include <errno.h> 13977int 13978main () 13979{ 13980errno = 0; 13981 ; 13982 return 0; 13983} 13984_ACEOF 13985if ac_fn_c_try_link "$LINENO"; then : 13986 ol_cv_errno_thread_specific=yes 13987else 13988 ol_cv_errno_thread_specific=no 13989fi 13990rm -f core conftest.err conftest.$ac_objext \ 13991 conftest$ac_exeext conftest.$ac_ext 13992 13993fi 13994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5 13995$as_echo "$ol_cv_errno_thread_specific" >&6; } 13996 13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5 13998$as_echo_n "checking for thread specific h_errno... " >&6; } 13999if ${ol_cv_h_errno_thread_specific+:} false; then : 14000 $as_echo_n "(cached) " >&6 14001else 14002 14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14004/* end confdefs.h. */ 14005#include <netdb.h> 14006int 14007main () 14008{ 14009h_errno = 0; 14010 ; 14011 return 0; 14012} 14013_ACEOF 14014if ac_fn_c_try_link "$LINENO"; then : 14015 ol_cv_h_errno_thread_specific=yes 14016else 14017 ol_cv_h_errno_thread_specific=no 14018fi 14019rm -f core conftest.err conftest.$ac_objext \ 14020 conftest$ac_exeext conftest.$ac_ext 14021 14022fi 14023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5 14024$as_echo "$ol_cv_h_errno_thread_specific" >&6; } 14025 14026 if test $ol_cv_errno_thread_specific != yes || 14027 test $ol_cv_h_errno_thread_specific != yes ; then 14028 LIBS="$LTHREAD_LIBS $LIBS" 14029 LTHREAD_LIBS="" 14030 fi 14031 14032fi 14033 14034if test $ol_link_threads = no ; then 14035 if test $ol_with_threads = yes ; then 14036 as_fn_error $? "no suitable thread support" "$LINENO" 5 14037 fi 14038 14039 if test $ol_with_threads = auto ; then 14040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5 14041$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;} 14042 ol_with_threads=no 14043 fi 14044 14045 14046$as_echo "#define NO_THREADS 1" >>confdefs.h 14047 14048 LTHREAD_LIBS="" 14049 BUILD_THREAD=no 14050else 14051 BUILD_THREAD=yes 14052fi 14053 14054if test $ol_link_threads != no ; then 14055 14056$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h 14057 14058fi 14059 14060# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 14061case "$ol_with_threads" in 14062 no) 14063 ol_pthread_ok=no 14064 14065 ;; 14066 *) 14067 ol_found_pthreads=yes 14068 ;; 14069esac 14070 14071ac_ext=c 14072ac_cpp='$CPP $CPPFLAGS' 14073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14075ac_compiler_gnu=$ac_cv_c_compiler_gnu 14076 14077 14078 14079 14080 14081 14082 case "$ol_found_pthreads" in 14083 yes) 14084 saved_LIBS="$LIBS" 14085 LIBS="$LTHREAD_LIBS $LIBS" 14086 saved_CFLAGS="$CFLAGS" 14087 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 14088 for ac_func in sem_timedwait 14089do : 14090 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" 14091if test "x$ac_cv_func_sem_timedwait" = xyes; then : 14092 cat >>confdefs.h <<_ACEOF 14093#define HAVE_SEM_TIMEDWAIT 1 14094_ACEOF 14095 14096fi 14097done 14098 14099 LIBS="$saved_LIBS" 14100 { saved_LIBS=; unset saved_LIBS;} 14101 CFLAGS="$saved_CFLAGS" 14102 { saved_CFLAGS=; unset saved_CFLAGS;} 14103 case "$ac_cv_func_sem_timedwait" in 14104 yes) 14105 PTHREAD_LIBS="$LTHREAD_LIBS" 14106 have_pthreads=yes 14107 esac 14108 esac 14109esac 14110 14111case "$have_pthreads" in 14112 yes) 14113 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS" 14114 saved_LIBS="$LIBS" 14115 LIBS="$LTHREAD_LIBS $LIBS" 14116 saved_CFLAGS="$CFLAGS" 14117 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 14118 # The cast to long int works around a bug in the HP C Compiler 14119# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14120# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14121# This bug is HP SR number 8606223364. 14122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 14123$as_echo_n "checking size of pthread_t... " >&6; } 14124if ${ac_cv_sizeof_pthread_t+:} false; then : 14125 $as_echo_n "(cached) " >&6 14126else 14127 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 14128 $ac_includes_default 14129 #include <pthread.h> 14130 14131 14132"; then : 14133 14134else 14135 if test "$ac_cv_type_pthread_t" = yes; then 14136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14138as_fn_error 77 "cannot compute sizeof (pthread_t) 14139See \`config.log' for more details" "$LINENO" 5; } 14140 else 14141 ac_cv_sizeof_pthread_t=0 14142 fi 14143fi 14144 14145fi 14146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 14147$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 14148 14149 14150 14151cat >>confdefs.h <<_ACEOF 14152#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 14153_ACEOF 14154 14155 14156 LIBISC_PTHREADS_NOTHREADS=pthreads 14157 14158$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h 14159 14160 # 14161 # We'd like to use sigwait() too 14162 # 14163 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" 14164if test "x$ac_cv_func_sigwait" = xyes; then : 14165 have_sigwait=yes 14166else 14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5 14168$as_echo_n "checking for sigwait in -lc... " >&6; } 14169if ${ac_cv_lib_c_sigwait+:} false; then : 14170 $as_echo_n "(cached) " >&6 14171else 14172 ac_check_lib_save_LIBS=$LIBS 14173LIBS="-lc $LIBS" 14174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14175/* end confdefs.h. */ 14176 14177/* Override any GCC internal prototype to avoid an error. 14178 Use char because int might match the return type of a GCC 14179 builtin and then its argument prototype would still apply. */ 14180#ifdef __cplusplus 14181extern "C" 14182#endif 14183char sigwait (); 14184int 14185main () 14186{ 14187return sigwait (); 14188 ; 14189 return 0; 14190} 14191_ACEOF 14192if ac_fn_c_try_link "$LINENO"; then : 14193 ac_cv_lib_c_sigwait=yes 14194else 14195 ac_cv_lib_c_sigwait=no 14196fi 14197rm -f core conftest.err conftest.$ac_objext \ 14198 conftest$ac_exeext conftest.$ac_ext 14199LIBS=$ac_check_lib_save_LIBS 14200fi 14201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5 14202$as_echo "$ac_cv_lib_c_sigwait" >&6; } 14203if test "x$ac_cv_lib_c_sigwait" = xyes; then : 14204 have_sigwait=yes 14205else 14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5 14207$as_echo_n "checking for sigwait in -lpthread... " >&6; } 14208if ${ac_cv_lib_pthread_sigwait+:} false; then : 14209 $as_echo_n "(cached) " >&6 14210else 14211 ac_check_lib_save_LIBS=$LIBS 14212LIBS="-lpthread $LIBS" 14213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14214/* end confdefs.h. */ 14215 14216/* Override any GCC internal prototype to avoid an error. 14217 Use char because int might match the return type of a GCC 14218 builtin and then its argument prototype would still apply. */ 14219#ifdef __cplusplus 14220extern "C" 14221#endif 14222char sigwait (); 14223int 14224main () 14225{ 14226return sigwait (); 14227 ; 14228 return 0; 14229} 14230_ACEOF 14231if ac_fn_c_try_link "$LINENO"; then : 14232 ac_cv_lib_pthread_sigwait=yes 14233else 14234 ac_cv_lib_pthread_sigwait=no 14235fi 14236rm -f core conftest.err conftest.$ac_objext \ 14237 conftest$ac_exeext conftest.$ac_ext 14238LIBS=$ac_check_lib_save_LIBS 14239fi 14240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5 14241$as_echo "$ac_cv_lib_pthread_sigwait" >&6; } 14242if test "x$ac_cv_lib_pthread_sigwait" = xyes; then : 14243 have_sigwait=yes 14244else 14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5 14246$as_echo_n "checking for _Psigwait in -lpthread... " >&6; } 14247if ${ac_cv_lib_pthread__Psigwait+:} false; then : 14248 $as_echo_n "(cached) " >&6 14249else 14250 ac_check_lib_save_LIBS=$LIBS 14251LIBS="-lpthread $LIBS" 14252cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14253/* end confdefs.h. */ 14254 14255/* Override any GCC internal prototype to avoid an error. 14256 Use char because int might match the return type of a GCC 14257 builtin and then its argument prototype would still apply. */ 14258#ifdef __cplusplus 14259extern "C" 14260#endif 14261char _Psigwait (); 14262int 14263main () 14264{ 14265return _Psigwait (); 14266 ; 14267 return 0; 14268} 14269_ACEOF 14270if ac_fn_c_try_link "$LINENO"; then : 14271 ac_cv_lib_pthread__Psigwait=yes 14272else 14273 ac_cv_lib_pthread__Psigwait=no 14274fi 14275rm -f core conftest.err conftest.$ac_objext \ 14276 conftest$ac_exeext conftest.$ac_ext 14277LIBS=$ac_check_lib_save_LIBS 14278fi 14279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5 14280$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; } 14281if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then : 14282 have_sigwait=yes 14283else 14284 have_sigwait=no 14285 14286fi 14287 14288 14289fi 14290 14291 14292fi 14293 14294 14295fi 14296 14297 case "$host:$have_sigwait" in 14298 *-freebsd*:no) 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5 14300$as_echo_n "checking for sigwait in -lc_r... " >&6; } 14301if ${ac_cv_lib_c_r_sigwait+:} false; then : 14302 $as_echo_n "(cached) " >&6 14303else 14304 ac_check_lib_save_LIBS=$LIBS 14305LIBS="-lc_r $LIBS" 14306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14307/* end confdefs.h. */ 14308 14309/* Override any GCC internal prototype to avoid an error. 14310 Use char because int might match the return type of a GCC 14311 builtin and then its argument prototype would still apply. */ 14312#ifdef __cplusplus 14313extern "C" 14314#endif 14315char sigwait (); 14316int 14317main () 14318{ 14319return sigwait (); 14320 ; 14321 return 0; 14322} 14323_ACEOF 14324if ac_fn_c_try_link "$LINENO"; then : 14325 ac_cv_lib_c_r_sigwait=yes 14326else 14327 ac_cv_lib_c_r_sigwait=no 14328fi 14329rm -f core conftest.err conftest.$ac_objext \ 14330 conftest$ac_exeext conftest.$ac_ext 14331LIBS=$ac_check_lib_save_LIBS 14332fi 14333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5 14334$as_echo "$ac_cv_lib_c_r_sigwait" >&6; } 14335if test "x$ac_cv_lib_c_r_sigwait" = xyes; then : 14336 have_sigwait=yes 14337 14338fi 14339 14340 esac 14341 case "$have_sigwait" in 14342 yes) 14343 ac_cv_func_sigwait=yes 14344 14345$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 14346 14347 esac 14348 14349 for ac_func in pthread_attr_getstacksize 14350do : 14351 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize" 14352if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then : 14353 cat >>confdefs.h <<_ACEOF 14354#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 14355_ACEOF 14356 14357fi 14358done 14359 14360 for ac_func in pthread_attr_setstacksize sysconf 14361do : 14362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14363ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14364if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14365 cat >>confdefs.h <<_ACEOF 14366#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14367_ACEOF 14368 14369fi 14370done 14371 14372 14373 case "$host" in 14374 *-freebsd5.[012]|*-freebsd5.[012].*) 14375 ;; 14376 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*) 14377 14378$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h 14379 14380 ;; 14381 *-bsdi3.*|*-bsdi4.0*) 14382 14383$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h 14384 14385 ;; 14386 *-linux*) 14387 14388$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h 14389 14390 ;; 14391 *-solaris*) 14392 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 14393 14394 for ac_func in pthread_setconcurrency 14395do : 14396 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency" 14397if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then : 14398 cat >>confdefs.h <<_ACEOF 14399#define HAVE_PTHREAD_SETCONCURRENCY 1 14400_ACEOF 14401 14402fi 14403done 14404 14405 case "$ac_cv_func_pthread_setconcurrency" in 14406 yes) 14407 14408$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h 14409 14410 esac 14411 ;; 14412 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 14413 14414$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h 14415 14416 ;; 14417 esac 14418 hack_shutup_pthreadonceinit=no 14419 case "$host" in 14420 *-aix5.[123].*) 14421 hack_shutup_pthreadonceinit=yes 14422 ;; 14423 *-solaris2.[89]) 14424 hack_shutup_pthreadonceinit=yes 14425 ;; 14426 *-solaris2.1[0-9]) 14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5 14428$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; } 14429if ${ntp_cv_braces_around_pthread_once_init+:} false; then : 14430 $as_echo_n "(cached) " >&6 14431else 14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14433/* end confdefs.h. */ 14434 14435 #include <pthread.h> 14436 14437int 14438main () 14439{ 14440 14441 static pthread_once_t once_test = 14442 PTHREAD_ONCE_INIT; 14443 14444 14445 ; 14446 return 0; 14447} 14448_ACEOF 14449if ac_fn_c_try_compile "$LINENO"; then : 14450 ntp_cv_braces_around_pthread_once_init=no 14451else 14452 ntp_cv_braces_around_pthread_once_init=yes 14453 14454fi 14455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14456 14457fi 14458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5 14459$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; } 14460 case "$ntp_cv_braces_around_pthread_once_init" in 14461 yes) 14462 hack_shutup_pthreadonceinit=yes 14463 esac 14464 ;; 14465 esac 14466 case "$hack_shutup_pthreadonceinit" in 14467 yes) 14468 14469$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h 14470 14471 esac 14472 LIBS="$saved_LIBS" 14473 { saved_LIBS=; unset saved_LIBS;} 14474 CFLAGS="$saved_CFLAGS" 14475 { saved_CFLAGS=; unset saved_CFLAGS;} 14476 ;; 14477 *) 14478 LIBISC_PTHREADS_NOTHREADS=nothreads 14479 ;; 14480esac 14481 14482 if test "$have_pthreads" != "no"; then 14483 PTHREADS_TRUE= 14484 PTHREADS_FALSE='#' 14485else 14486 PTHREADS_TRUE='#' 14487 PTHREADS_FALSE= 14488fi 14489 14490 14491 14492 14493 14494 14495 14496case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in 14497 no:yes) 14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5 14499$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; } 14500if ${ntp_cv_vsnprintf_percent_m+:} false; then : 14501 $as_echo_n "(cached) " >&6 14502else 14503 if test "$cross_compiling" = yes; then : 14504 ntp_cv_vsnprintf_percent_m=no 14505 14506else 14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14508/* end confdefs.h. */ 14509 14510 #include <stdarg.h> 14511 #include <errno.h> 14512 #include <stdio.h> 14513 #include <string.h> 14514 14515 int call_vsnprintf( 14516 char * dst, 14517 size_t sz, 14518 const char *fmt, 14519 ... 14520 ); 14521 14522 int call_vsnprintf( 14523 char * dst, 14524 size_t sz, 14525 const char *fmt, 14526 ... 14527 ) 14528 { 14529 va_list ap; 14530 int rc; 14531 14532 va_start(ap, fmt); 14533 rc = vsnprintf(dst, sz, fmt, ap); 14534 va_end(ap); 14535 14536 return rc; 14537 } 14538 14539int 14540main () 14541{ 14542 14543 char sbuf[512]; 14544 char pbuf[512]; 14545 int slen; 14546 14547 strcpy(sbuf, strerror(ENOENT)); 14548 errno = ENOENT; 14549 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m", 14550 "wrong"); 14551 return strcmp(sbuf, pbuf); 14552 14553 14554 ; 14555 return 0; 14556} 14557_ACEOF 14558if ac_fn_c_try_run "$LINENO"; then : 14559 ntp_cv_vsnprintf_percent_m=yes 14560else 14561 ntp_cv_vsnprintf_percent_m=no 14562fi 14563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14564 conftest.$ac_objext conftest.beam conftest.$ac_ext 14565fi 14566 14567 14568fi 14569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5 14570$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; } 14571 case "$ntp_cv_vsnprintf_percent_m" in 14572 yes) 14573 14574$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h 14575 14576 esac 14577esac 14578 14579for ac_header in sys/clockctl.h 14580do : 14581 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default" 14582if test "x$ac_cv_header_sys_clockctl_h" = xyes; then : 14583 cat >>confdefs.h <<_ACEOF 14584#define HAVE_SYS_CLOCKCTL_H 1 14585_ACEOF 14586 14587fi 14588 14589done 14590 14591 14592# Check whether --enable-clockctl was given. 14593if test "${enable_clockctl+set}" = set; then : 14594 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval 14595else 14596 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h 14597 14598fi 14599 14600 14601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5 14602$as_echo_n "checking if we should use /dev/clockctl... " >&6; } 14603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5 14604$as_echo "$ntp_use_dev_clockctl" >&6; } 14605 14606 14607for ac_header in sys/capability.h sys/prctl.h 14608do : 14609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14610ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14611if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14612 cat >>confdefs.h <<_ACEOF 14613#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14614_ACEOF 14615 14616fi 14617 14618done 14619 14620 14621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5 14622$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; } 14623 14624case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in 14625 yesyes) 14626 case "$host" in 14627 mips-sgi-irix*) 14628 ntp_have_linuxcaps=no 14629 ;; 14630 *) ntp_have_linuxcaps=yes 14631 ;; 14632 esac 14633 ;; 14634 *) 14635 ntp_have_linuxcaps=no 14636 ;; 14637esac 14638 14639# Check whether --enable-linuxcaps was given. 14640if test "${enable_linuxcaps+set}" = set; then : 14641 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval 14642 14643fi 14644 14645 14646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5 14647$as_echo "$ntp_have_linuxcaps" >&6; } 14648 14649case "$ntp_have_linuxcaps" in 14650 yes) 14651 14652$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h 14653 14654 LIBS="$LIBS -lcap" 14655 ;; 14656esac 14657 14658 14659for ac_header in priv.h 14660do : 14661 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" 14662if test "x$ac_cv_header_priv_h" = xyes; then : 14663 cat >>confdefs.h <<_ACEOF 14664#define HAVE_PRIV_H 1 14665_ACEOF 14666 14667fi 14668 14669done 14670 14671case "$ac_cv_header_priv_h" in 14672 yes) 14673 case "$host" in 14674 *-solaris*) 14675 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" 14676if test "x$ac_cv_func_setppriv" = xyes; then : 14677 ntp_have_solarisprivs=yes 14678else 14679 ntp_have_solarisprivs=no 14680 14681fi 14682 14683 ;; 14684 esac 14685esac 14686 14687# Check whether --enable-solarisprivs was given. 14688if test "${enable_solarisprivs+set}" = set; then : 14689 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval 14690 14691fi 14692 14693 14694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5 14695$as_echo_n "checking if we have solaris privileges... " >&6; } 14696 14697case "$ntp_have_solarisprivs" in 14698 yes) 14699 14700$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h 14701 14702esac 14703 14704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5 14705$as_echo "$ntp_have_solarisprivs" >&6; } 14706
|
14704case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
| 14707for ac_header in sys/mac.h 14708do : 14709 ac_fn_c_check_header_mongrel "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default" 14710if test "x$ac_cv_header_sys_mac_h" = xyes; then : 14711 cat >>confdefs.h <<_ACEOF 14712#define HAVE_SYS_MAC_H 1 14713_ACEOF 14714 14715fi 14716 14717done 14718 14719 14720# Check whether --enable-trustedbsd_mac was given. 14721if test "${enable_trustedbsd_mac+set}" = set; then : 14722 enableval=$enable_trustedbsd_mac; ntp_use_trustedbsd_mac=$enableval 14723 14724fi 14725 14726 14727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use TrustedBSD MAC privileges" >&5 14728$as_echo_n "checking if we should use TrustedBSD MAC privileges... " >&6; } 14729 14730case "$ntp_use_trustedbsd_mac$ac_cv_header_sys_mac_h" in 14731 yesyes) 14732 14733$as_echo "#define HAVE_TRUSTEDBSD_MAC 1" >>confdefs.h 14734 14735esac 14736 14737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_trustedbsd_mac" >&5 14738$as_echo "$ntp_use_trustedbsd_mac" >&6; } 14739 14740case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs$ntp_use_trustedbsd_mac" in
|
14705 *yes*) 14706 14707$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h 14708 14709esac 14710 14711case "$host" in 14712 *-*-darwin*) 14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 14714$as_echo_n "checking for library containing res_9_init... " >&6; } 14715if ${ac_cv_search_res_9_init+:} false; then : 14716 $as_echo_n "(cached) " >&6 14717else 14718 ac_func_search_save_LIBS=$LIBS 14719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14720/* end confdefs.h. */ 14721 14722/* Override any GCC internal prototype to avoid an error. 14723 Use char because int might match the return type of a GCC 14724 builtin and then its argument prototype would still apply. */ 14725#ifdef __cplusplus 14726extern "C" 14727#endif 14728char res_9_init (); 14729int 14730main () 14731{ 14732return res_9_init (); 14733 ; 14734 return 0; 14735} 14736_ACEOF 14737for ac_lib in '' resolv; do 14738 if test -z "$ac_lib"; then 14739 ac_res="none required" 14740 else 14741 ac_res=-l$ac_lib 14742 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14743 fi 14744 if ac_fn_c_try_link "$LINENO"; then : 14745 ac_cv_search_res_9_init=$ac_res 14746fi 14747rm -f core conftest.err conftest.$ac_objext \ 14748 conftest$ac_exeext 14749 if ${ac_cv_search_res_9_init+:} false; then : 14750 break 14751fi 14752done 14753if ${ac_cv_search_res_9_init+:} false; then : 14754 14755else 14756 ac_cv_search_res_9_init=no 14757fi 14758rm conftest.$ac_ext 14759LIBS=$ac_func_search_save_LIBS 14760fi 14761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 14762$as_echo "$ac_cv_search_res_9_init" >&6; } 14763ac_res=$ac_cv_search_res_9_init 14764if test "$ac_res" != no; then : 14765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14766 14767fi 14768 14769 ;; 14770 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 14771$as_echo_n "checking for library containing res_init... " >&6; } 14772if ${ac_cv_search_res_init+:} false; then : 14773 $as_echo_n "(cached) " >&6 14774else 14775 ac_func_search_save_LIBS=$LIBS 14776cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14777/* end confdefs.h. */ 14778 14779/* Override any GCC internal prototype to avoid an error. 14780 Use char because int might match the return type of a GCC 14781 builtin and then its argument prototype would still apply. */ 14782#ifdef __cplusplus 14783extern "C" 14784#endif 14785char res_init (); 14786int 14787main () 14788{ 14789return res_init (); 14790 ; 14791 return 0; 14792} 14793_ACEOF 14794for ac_lib in '' resolv; do 14795 if test -z "$ac_lib"; then 14796 ac_res="none required" 14797 else 14798 ac_res=-l$ac_lib 14799 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14800 fi 14801 if ac_fn_c_try_link "$LINENO"; then : 14802 ac_cv_search_res_init=$ac_res 14803fi 14804rm -f core conftest.err conftest.$ac_objext \ 14805 conftest$ac_exeext 14806 if ${ac_cv_search_res_init+:} false; then : 14807 break 14808fi 14809done 14810if ${ac_cv_search_res_init+:} false; then : 14811 14812else 14813 ac_cv_search_res_init=no 14814fi 14815rm conftest.$ac_ext 14816LIBS=$ac_func_search_save_LIBS 14817fi 14818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 14819$as_echo "$ac_cv_search_res_init" >&6; } 14820ac_res=$ac_cv_search_res_init 14821if test "$ac_res" != no; then : 14822 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14823 14824fi 14825 14826 ;; 14827esac 14828for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h 14829do : 14830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14831ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H 14832# include <sys/types.h> 14833#endif 14834#ifdef HAVE_NETINET_IN_H 14835# include <netinet/in.h> /* inet_ functions / structs */ 14836#endif 14837#ifdef HAVE_ARPA_NAMESER_H 14838# include <arpa/nameser.h> /* DNS HEADER struct */ 14839#endif 14840#ifdef HAVE_NETDB_H 14841# include <netdb.h> 14842#endif 14843" 14844if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14845 cat >>confdefs.h <<_ACEOF 14846#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14847_ACEOF 14848 14849fi 14850 14851done 14852 14853 14854#HMS: Why do we do this check so "early"? 14855for ac_func in res_init 14856do : 14857 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init" 14858if test "x$ac_cv_func_res_init" = xyes; then : 14859 cat >>confdefs.h <<_ACEOF 14860#define HAVE_RES_INIT 1 14861_ACEOF 14862 14863else 14864 for ac_func in __res_init 14865do : 14866 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init" 14867if test "x$ac_cv_func___res_init" = xyes; then : 14868 cat >>confdefs.h <<_ACEOF 14869#define HAVE___RES_INIT 1 14870_ACEOF 14871 14872fi 14873done 14874 14875fi 14876done 14877 14878 14879# We also need -lsocket, but we have tested for that already. 14880ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 14881if test "x$ac_cv_func_inet_ntop" = xyes; then : 14882 14883else 14884 14885$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h 14886 14887fi 14888 14889ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 14890if test "x$ac_cv_func_inet_pton" = xyes; then : 14891 14892else 14893 14894$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h 14895 14896fi 14897 14898 14899ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 14900if test "x$ac_cv_type_uintptr_t" = xyes; then : 14901 14902cat >>confdefs.h <<_ACEOF 14903#define HAVE_UINTPTR_T 1 14904_ACEOF 14905 14906 14907fi 14908ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default" 14909if test "x$ac_cv_type_int32" = xyes; then : 14910 14911cat >>confdefs.h <<_ACEOF 14912#define HAVE_INT32 1 14913_ACEOF 14914 14915 14916fi 14917ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default" 14918if test "x$ac_cv_type_u_int32" = xyes; then : 14919 14920cat >>confdefs.h <<_ACEOF 14921#define HAVE_U_INT32 1 14922_ACEOF 14923 14924 14925fi 14926 14927 14928 14929 14930case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in 14931 no::yes) 14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5 14933$as_echo_n "checking for int32 with DNS headers included... " >&6; } 14934if ${ntp_cv_type_int32_with_dns+:} false; then : 14935 $as_echo_n "(cached) " >&6 14936else 14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14938/* end confdefs.h. */ 14939 14940 #ifdef HAVE_ARPA_NAMESER_H 14941 # include <arpa/nameser.h> 14942 #endif 14943 #include <resolv.h> 14944 14945int 14946main () 14947{ 14948 14949 size_t cb = sizeof(int32); 14950 14951 14952 ; 14953 return 0; 14954} 14955_ACEOF 14956if ac_fn_c_try_compile "$LINENO"; then : 14957 ntp_cv_type_int32_with_dns=yes 14958else 14959 ntp_cv_type_int32_with_dns=no 14960 14961fi 14962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14963 14964fi 14965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5 14966$as_echo "$ntp_cv_type_int32_with_dns" >&6; } 14967 case "$ntp_cv_type_int32_with_dns" in 14968 yes) 14969 14970$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h 14971 14972 esac 14973esac 14974 14975case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in 14976 no::yes) 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5 14978$as_echo_n "checking for u_int32 with DNS headers included... " >&6; } 14979if ${ntp_cv_type_u_int32_with_dns+:} false; then : 14980 $as_echo_n "(cached) " >&6 14981else 14982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14983/* end confdefs.h. */ 14984 14985 #ifdef HAVE_ARPA_NAMESER_H 14986 # include <arpa/nameser.h> 14987 #endif 14988 #include <resolv.h> 14989 14990int 14991main () 14992{ 14993 14994 size_t cb = sizeof(u_int32); 14995 14996 14997 ; 14998 return 0; 14999} 15000_ACEOF 15001if ac_fn_c_try_compile "$LINENO"; then : 15002 ntp_cv_type_u_int32_with_dns=yes 15003else 15004 ntp_cv_type_u_int32_with_dns=no 15005 15006fi 15007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15008 15009fi 15010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5 15011$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; } 15012 case "$ntp_cv_type_u_int32_with_dns" in 15013 yes) 15014 15015$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h 15016 15017 esac 15018esac 15019 15020for ac_header in sys/timepps.h 15021do : 15022 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" " 15023 #ifdef HAVE_SYS_TIME_H 15024 # include <sys/time.h> 15025 #endif 15026 #ifdef HAVE_ERRNO_H 15027 # include <errno.h> 15028 #endif 15029 15030 15031" 15032if test "x$ac_cv_header_sys_timepps_h" = xyes; then : 15033 cat >>confdefs.h <<_ACEOF 15034#define HAVE_SYS_TIMEPPS_H 1 15035_ACEOF 15036 15037fi 15038 15039done 15040 15041 15042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5 15043$as_echo_n "checking for struct timespec... " >&6; } 15044if ${ntp_cv_struct_timespec+:} false; then : 15045 $as_echo_n "(cached) " >&6 15046else 15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15048/* end confdefs.h. */ 15049 15050 #include <sys/time.h> 15051 /* Under SunOS, timespec is in sys/timepps.h, 15052 which needs errno.h and FRAC */ 15053 #ifdef HAVE_ERRNO_H 15054 # include <errno.h> 15055 #endif 15056 #ifdef HAVE_SYS_TIMEPPS_H 15057 # define FRAC 4294967296 15058 # include <sys/timepps.h> 15059 #endif 15060 15061int 15062main () 15063{ 15064 15065 struct timespec n; 15066 15067 15068 ; 15069 return 0; 15070} 15071_ACEOF 15072if ac_fn_c_try_compile "$LINENO"; then : 15073 ntp_cv_struct_timespec=yes 15074else 15075 ntp_cv_struct_timespec=no 15076 15077fi 15078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15079 15080fi 15081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5 15082$as_echo "$ntp_cv_struct_timespec" >&6; } 15083case "$ntp_cv_struct_timespec" in 15084 yes) 15085 15086$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 15087 15088esac 15089 15090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5 15091$as_echo_n "checking for struct ntptimeval... " >&6; } 15092if ${ntp_cv_struct_ntptimeval+:} false; then : 15093 $as_echo_n "(cached) " >&6 15094else 15095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15096/* end confdefs.h. */ 15097 15098 #include <sys/time.h> 15099 #include <sys/timex.h> 15100 15101int 15102main () 15103{ 15104 15105 struct ntptimeval n; 15106 15107 15108 ; 15109 return 0; 15110} 15111_ACEOF 15112if ac_fn_c_try_compile "$LINENO"; then : 15113 ntp_cv_struct_ntptimeval=yes 15114else 15115 ntp_cv_struct_ntptimeval=no 15116 15117fi 15118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15119 15120fi 15121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5 15122$as_echo "$ntp_cv_struct_ntptimeval" >&6; } 15123case "$ntp_cv_struct_ntptimeval" in 15124 yes) 15125 15126$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h 15127 15128esac 15129 15130for ac_header in md5.h 15131do : 15132 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" " 15133 #ifdef HAVE_SYS_TYPES_H 15134 # include <sys/types.h> 15135 #endif 15136 15137 15138" 15139if test "x$ac_cv_header_md5_h" = xyes; then : 15140 cat >>confdefs.h <<_ACEOF 15141#define HAVE_MD5_H 1 15142_ACEOF 15143 15144fi 15145 15146done 15147 15148 15149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5 15150$as_echo_n "checking for library containing MD5Init... " >&6; } 15151if ${ac_cv_search_MD5Init+:} false; then : 15152 $as_echo_n "(cached) " >&6 15153else 15154 ac_func_search_save_LIBS=$LIBS 15155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15156/* end confdefs.h. */ 15157 15158/* Override any GCC internal prototype to avoid an error. 15159 Use char because int might match the return type of a GCC 15160 builtin and then its argument prototype would still apply. */ 15161#ifdef __cplusplus 15162extern "C" 15163#endif 15164char MD5Init (); 15165int 15166main () 15167{ 15168return MD5Init (); 15169 ; 15170 return 0; 15171} 15172_ACEOF 15173for ac_lib in '' md5 md; do 15174 if test -z "$ac_lib"; then 15175 ac_res="none required" 15176 else 15177 ac_res=-l$ac_lib 15178 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15179 fi 15180 if ac_fn_c_try_link "$LINENO"; then : 15181 ac_cv_search_MD5Init=$ac_res 15182fi 15183rm -f core conftest.err conftest.$ac_objext \ 15184 conftest$ac_exeext 15185 if ${ac_cv_search_MD5Init+:} false; then : 15186 break 15187fi 15188done 15189if ${ac_cv_search_MD5Init+:} false; then : 15190 15191else 15192 ac_cv_search_MD5Init=no 15193fi 15194rm conftest.$ac_ext 15195LIBS=$ac_func_search_save_LIBS 15196fi 15197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5 15198$as_echo "$ac_cv_search_MD5Init" >&6; } 15199ac_res=$ac_cv_search_MD5Init 15200if test "$ac_res" != no; then : 15201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15202 15203fi 15204 15205for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec 15206do : 15207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15208ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15209if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15210 cat >>confdefs.h <<_ACEOF 15211#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15212_ACEOF 15213 15214fi 15215done 15216 15217 15218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5 15219$as_echo_n "checking for SIGIO... " >&6; } 15220if ${ntp_cv_hdr_def_sigio+:} false; then : 15221 $as_echo_n "(cached) " >&6 15222else 15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15224/* end confdefs.h. */ 15225 15226 #include <signal.h> 15227 15228 #ifndef SIGIO 15229 # error 15230 #endif 15231 15232_ACEOF 15233if ac_fn_c_try_cpp "$LINENO"; then : 15234 ntp_cv_hdr_def_sigio=yes 15235else 15236 ntp_cv_hdr_def_sigio=no 15237 15238fi 15239rm -f conftest.err conftest.i conftest.$ac_ext 15240 15241fi 15242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5 15243$as_echo "$ntp_cv_hdr_def_sigio" >&6; } 15244 15245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5 15246$as_echo_n "checking if we want to use SIGIO... " >&6; } 15247ans=no 15248case "$ntp_cv_hdr_def_sigio" in 15249 yes) 15250 ans=yes 15251 case "$host" in 15252 alpha*-dec-osf4*|alpha*-dec-osf5*) 15253 ans=no 15254 ;; 15255 *-convex-*) 15256 ans=no 15257 ;; 15258 *-dec-*) 15259 ans=no 15260 ;; 15261 *-pc-cygwin*) 15262 ans=no 15263 ;; 15264 *-sni-sysv*) 15265 ans=no 15266 ;; 15267 *-stratus-vos) 15268 ans=no 15269 ;; 15270 *-univel-sysv*) 15271 ans=no 15272 ;; 15273 *-*-irix6*) 15274 ans=no 15275 ;; 15276 *-*-freebsd*) 15277 ans=no 15278 ;; 15279 *-*-*linux*) 15280 ans=no 15281 ;; 15282 *-*-unicosmp*) 15283 ans=no 15284 ;; 15285 *-*-kfreebsd*) 15286 ans=no 15287 ;; 15288 m68k-*-mint*) 15289 ans=no 15290 ;; 15291 esac 15292 ;; 15293esac 15294case "$ans" in 15295 yes) 15296 15297$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h 15298 15299esac 15300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 15301$as_echo "$ans" >&6; } 15302 15303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5 15304$as_echo_n "checking for SIGPOLL... " >&6; } 15305if ${ntp_cv_hdr_def_sigpoll+:} false; then : 15306 $as_echo_n "(cached) " >&6 15307else 15308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15309/* end confdefs.h. */ 15310 15311 #include <signal.h> 15312 15313 #ifndef SIGPOLL 15314 # error 15315 #endif 15316 15317_ACEOF 15318if ac_fn_c_try_cpp "$LINENO"; then : 15319 ntp_cv_hdr_def_sigpoll=yes 15320else 15321 ntp_cv_hdr_def_sigpoll=no 15322 15323fi 15324rm -f conftest.err conftest.i conftest.$ac_ext 15325 15326fi 15327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5 15328$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; } 15329 15330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5 15331$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; } 15332ans=no 15333case "$ntp_cv_hdr_def_sigpoll" in 15334 yes) 15335 case "$host" in 15336 mips-sgi-irix*) 15337 ans=no 15338 ;; 15339 vax-dec-bsd) 15340 ans=no 15341 ;; 15342 *-pc-cygwin*) 15343 ans=no 15344 ;; 15345 *-sni-sysv*) 15346 ans=no 15347 ;; 15348 *-stratus-vos) 15349 ans=no 15350 ;; 15351 *-*-aix[4-9]*) 15352 # XXX Only verified thru AIX6 15353 ans=no 15354 ;; 15355 *-*-hpux*) 15356 ans=no 15357 ;; 15358 *-*-*linux*) 15359 ans=no 15360 ;; 15361 *-*-osf*) 15362 ans=no 15363 ;; 15364 *-*-qnx*) 15365 ans=no 15366 ;; 15367 *-*-sunos*) 15368 ans=no 15369 ;; 15370 *-*-solaris*) 15371 ans=no 15372 ;; 15373 *-*-ultrix*) 15374 ans=no 15375 ;; 15376 *-*-unicosmp*) 15377 ans=no 15378 ;; 15379 *-*-kfreebsd*) 15380 ans=no 15381 ;; 15382 *) ans=yes 15383 ;; 15384 esac 15385 ;; 15386esac 15387case "$ans" in 15388 yes) 15389 15390$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h 15391 15392esac 15393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 15394$as_echo "$ans" >&6; } 15395 15396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5 15397$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; } 15398ans=no 15399case "$ntp_cv_hdr_def_sigpoll" in 15400 yes) 15401 case "$host" in 15402 mips-sgi-irix*) 15403 ans=no 15404 ;; 15405 vax-dec-bsd) 15406 ans=no 15407 ;; 15408 *-pc-cygwin*) 15409 ans=no 15410 ;; 15411 *-sni-sysv*) 15412 ans=no 15413 ;; 15414 *-stratus-vos) 15415 ans=no 15416 ;; 15417 *-*-aix[4-9]*) 15418 # XXX Only verified thru AIX6 15419 ans=no 15420 ;; 15421 *-*-hpux*) 15422 ans=no 15423 ;; 15424 *-*-*linux*) 15425 ans=no 15426 ;; 15427 *-*-osf*) 15428 ans=no 15429 ;; 15430 *-*-sunos*) 15431 ans=no 15432 ;; 15433 *-*-ultrix*) 15434 ans=no 15435 ;; 15436 *-*-qnx*) 15437 ans=no 15438 ;; 15439 *-*-unicosmp*) 15440 ans=no 15441 ;; 15442 *-*-kfreebsd*) 15443 ans=no 15444 ;; 15445 *) ans=yes 15446 ;; 15447 esac 15448 ;; 15449esac 15450case "$ans" in 15451 yes) 15452 15453$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h 15454 15455esac 15456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 15457$as_echo "$ans" >&6; } 15458 15459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5 15460$as_echo_n "checking number of arguments to gettimeofday()... " >&6; } 15461if ${ntp_cv_func_Xettimeofday_nargs+:} false; then : 15462 $as_echo_n "(cached) " >&6 15463else 15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15465/* end confdefs.h. */ 15466 15467 #include <sys/time.h> 15468 15469int 15470main () 15471{ 15472 15473 gettimeofday(0, 0); 15474 settimeofday(0, 0); 15475 15476 15477 ; 15478 return 0; 15479} 15480_ACEOF 15481if ac_fn_c_try_compile "$LINENO"; then : 15482 ntp_cv_func_Xettimeofday_nargs=2 15483else 15484 ntp_cv_func_Xettimeofday_nargs=1 15485 15486fi 15487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15488 15489fi 15490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5 15491$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; } 15492case "$ntp_cv_func_Xettimeofday_nargs" in 15493 1) 15494 15495$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h 15496 15497esac 15498 15499for ac_func in settimeofday 15500do : 15501 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday" 15502if test "x$ac_cv_func_settimeofday" = xyes; then : 15503 cat >>confdefs.h <<_ACEOF 15504#define HAVE_SETTIMEOFDAY 1 15505_ACEOF 15506 15507else 15508 15509 case "$host" in 15510 *-*-mpeix*) ac_cv_func_settimeofday=yes 15511 esac 15512 15513fi 15514done 15515 15516 15517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5 15518$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; } 15519ntp_warning='GRONK' 15520ans=none 15521case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in 15522 yes*) 15523 ntp_warning='' 15524 ans='clock_settime()' 15525 ;; 15526 noyes*) 15527 ntp_warning='But clock_settime() would be better (if we had it)' 15528 ans='settimeofday()' 15529 ;; 15530 nonoyes) 15531 ntp_warning='Which is the worst of the three' 15532 ans='stime()' 15533 ;; 15534 *) 15535 case "$build" in 15536 $host) 15537 ntp_warning='Which leaves us with nothing to use!' 15538 esac 15539esac 15540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 15541$as_echo "$ans" >&6; } 15542case "$ntp_warning" in 15543 '') 15544 ;; 15545 *) 15546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5 15547$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;} 15548 ;; 15549esac 15550 15551 15552LDADD_LIBNTP="$LDADD_LIBNTP $LIBS" 15553LIBS=$__LIBS 15554{ __LIBS=; unset __LIBS;} 15555 15556 15557 15558# Check whether --enable-shared was given. 15559if test "${enable_shared+set}" = set; then : 15560 enableval=$enable_shared; p=${PACKAGE-default} 15561 case $enableval in 15562 yes) enable_shared=yes ;; 15563 no) enable_shared=no ;; 15564 *) 15565 enable_shared=no 15566 # Look at the argument we got. We use all the common list separators. 15567 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15568 for pkg in $enableval; do 15569 IFS=$lt_save_ifs 15570 if test "X$pkg" = "X$p"; then 15571 enable_shared=yes 15572 fi 15573 done 15574 IFS=$lt_save_ifs 15575 ;; 15576 esac 15577else 15578 enable_shared=no 15579fi 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589case `pwd` in 15590 *\ * | *\ *) 15591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 15592$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 15593esac 15594 15595 15596 15597macro_version='2.4.6' 15598macro_revision='2.4.6' 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612ltmain=$ac_aux_dir/ltmain.sh 15613 15614# Backslashify metacharacters that are still active within 15615# double-quoted strings. 15616sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 15617 15618# Same as above, but do not quote variable references. 15619double_quote_subst='s/\(["`\\]\)/\\\1/g' 15620 15621# Sed substitution to delay expansion of an escaped shell variable in a 15622# double_quote_subst'ed string. 15623delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 15624 15625# Sed substitution to delay expansion of an escaped single quote. 15626delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 15627 15628# Sed substitution to avoid accidental globbing in evaled expressions 15629no_glob_subst='s/\*/\\\*/g' 15630 15631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 15632$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 15633if ${lt_cv_path_NM+:} false; then : 15634 $as_echo_n "(cached) " >&6 15635else 15636 if test -n "$NM"; then 15637 # Let the user override the test. 15638 lt_cv_path_NM=$NM 15639else 15640 lt_nm_to_check=${ac_tool_prefix}nm 15641 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 15642 lt_nm_to_check="$lt_nm_to_check nm" 15643 fi 15644 for lt_tmp_nm in $lt_nm_to_check; do 15645 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15646 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 15647 IFS=$lt_save_ifs 15648 test -z "$ac_dir" && ac_dir=. 15649 tmp_nm=$ac_dir/$lt_tmp_nm 15650 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 15651 # Check to see if the nm accepts a BSD-compat flag. 15652 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 15653 # nm: unknown option "B" ignored 15654 # Tru64's nm complains that /dev/null is an invalid object file 15655 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 15656 case $build_os in 15657 mingw*) lt_bad_file=conftest.nm/nofile ;; 15658 *) lt_bad_file=/dev/null ;; 15659 esac 15660 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 15661 *$lt_bad_file* | *'Invalid file or object type'*) 15662 lt_cv_path_NM="$tmp_nm -B" 15663 break 2 15664 ;; 15665 *) 15666 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 15667 */dev/null*) 15668 lt_cv_path_NM="$tmp_nm -p" 15669 break 2 15670 ;; 15671 *) 15672 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 15673 continue # so that we can try to find one that supports BSD flags 15674 ;; 15675 esac 15676 ;; 15677 esac 15678 fi 15679 done 15680 IFS=$lt_save_ifs 15681 done 15682 : ${lt_cv_path_NM=no} 15683fi 15684fi 15685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 15686$as_echo "$lt_cv_path_NM" >&6; } 15687if test no != "$lt_cv_path_NM"; then 15688 NM=$lt_cv_path_NM 15689else 15690 # Didn't find any BSD compatible name lister, look for dumpbin. 15691 if test -n "$DUMPBIN"; then : 15692 # Let the user override the test. 15693 else 15694 if test -n "$ac_tool_prefix"; then 15695 for ac_prog in dumpbin "link -dump" 15696 do 15697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 15698set dummy $ac_tool_prefix$ac_prog; ac_word=$2 15699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15700$as_echo_n "checking for $ac_word... " >&6; } 15701if ${ac_cv_prog_DUMPBIN+:} false; then : 15702 $as_echo_n "(cached) " >&6 15703else 15704 if test -n "$DUMPBIN"; then 15705 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 15706else 15707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15708for as_dir in $PATH 15709do 15710 IFS=$as_save_IFS 15711 test -z "$as_dir" && as_dir=. 15712 for ac_exec_ext in '' $ac_executable_extensions; do 15713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15714 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 15715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15716 break 2 15717 fi 15718done 15719 done 15720IFS=$as_save_IFS 15721 15722fi 15723fi 15724DUMPBIN=$ac_cv_prog_DUMPBIN 15725if test -n "$DUMPBIN"; then 15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 15727$as_echo "$DUMPBIN" >&6; } 15728else 15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15730$as_echo "no" >&6; } 15731fi 15732 15733 15734 test -n "$DUMPBIN" && break 15735 done 15736fi 15737if test -z "$DUMPBIN"; then 15738 ac_ct_DUMPBIN=$DUMPBIN 15739 for ac_prog in dumpbin "link -dump" 15740do 15741 # Extract the first word of "$ac_prog", so it can be a program name with args. 15742set dummy $ac_prog; ac_word=$2 15743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15744$as_echo_n "checking for $ac_word... " >&6; } 15745if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 15746 $as_echo_n "(cached) " >&6 15747else 15748 if test -n "$ac_ct_DUMPBIN"; then 15749 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 15750else 15751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15752for as_dir in $PATH 15753do 15754 IFS=$as_save_IFS 15755 test -z "$as_dir" && as_dir=. 15756 for ac_exec_ext in '' $ac_executable_extensions; do 15757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15758 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 15759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15760 break 2 15761 fi 15762done 15763 done 15764IFS=$as_save_IFS 15765 15766fi 15767fi 15768ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 15769if test -n "$ac_ct_DUMPBIN"; then 15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 15771$as_echo "$ac_ct_DUMPBIN" >&6; } 15772else 15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15774$as_echo "no" >&6; } 15775fi 15776 15777 15778 test -n "$ac_ct_DUMPBIN" && break 15779done 15780 15781 if test "x$ac_ct_DUMPBIN" = x; then 15782 DUMPBIN=":" 15783 else 15784 case $cross_compiling:$ac_tool_warned in 15785yes:) 15786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15788ac_tool_warned=yes ;; 15789esac 15790 DUMPBIN=$ac_ct_DUMPBIN 15791 fi 15792fi 15793 15794 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 15795 *COFF*) 15796 DUMPBIN="$DUMPBIN -symbols -headers" 15797 ;; 15798 *) 15799 DUMPBIN=: 15800 ;; 15801 esac 15802 fi 15803 15804 if test : != "$DUMPBIN"; then 15805 NM=$DUMPBIN 15806 fi 15807fi 15808test -z "$NM" && NM=nm 15809 15810 15811 15812 15813 15814 15815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 15816$as_echo_n "checking the name lister ($NM) interface... " >&6; } 15817if ${lt_cv_nm_interface+:} false; then : 15818 $as_echo_n "(cached) " >&6 15819else 15820 lt_cv_nm_interface="BSD nm" 15821 echo "int some_variable = 0;" > conftest.$ac_ext 15822 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 15823 (eval "$ac_compile" 2>conftest.err) 15824 cat conftest.err >&5 15825 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 15826 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 15827 cat conftest.err >&5 15828 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 15829 cat conftest.out >&5 15830 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 15831 lt_cv_nm_interface="MS dumpbin" 15832 fi 15833 rm -f conftest* 15834fi 15835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 15836$as_echo "$lt_cv_nm_interface" >&6; } 15837 15838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 15839$as_echo_n "checking whether ln -s works... " >&6; } 15840LN_S=$as_ln_s 15841if test "$LN_S" = "ln -s"; then 15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15843$as_echo "yes" >&6; } 15844else 15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 15846$as_echo "no, using $LN_S" >&6; } 15847fi 15848 15849# find the maximum length of command line arguments 15850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 15851$as_echo_n "checking the maximum length of command line arguments... " >&6; } 15852if ${lt_cv_sys_max_cmd_len+:} false; then : 15853 $as_echo_n "(cached) " >&6 15854else 15855 i=0 15856 teststring=ABCD 15857 15858 case $build_os in 15859 msdosdjgpp*) 15860 # On DJGPP, this test can blow up pretty badly due to problems in libc 15861 # (any single argument exceeding 2000 bytes causes a buffer overrun 15862 # during glob expansion). Even if it were fixed, the result of this 15863 # check would be larger than it should be. 15864 lt_cv_sys_max_cmd_len=12288; # 12K is about right 15865 ;; 15866 15867 gnu*) 15868 # Under GNU Hurd, this test is not required because there is 15869 # no limit to the length of command line arguments. 15870 # Libtool will interpret -1 as no limit whatsoever 15871 lt_cv_sys_max_cmd_len=-1; 15872 ;; 15873 15874 cygwin* | mingw* | cegcc*) 15875 # On Win9x/ME, this test blows up -- it succeeds, but takes 15876 # about 5 minutes as the teststring grows exponentially. 15877 # Worse, since 9x/ME are not pre-emptively multitasking, 15878 # you end up with a "frozen" computer, even though with patience 15879 # the test eventually succeeds (with a max line length of 256k). 15880 # Instead, let's just punt: use the minimum linelength reported by 15881 # all of the supported platforms: 8192 (on NT/2K/XP). 15882 lt_cv_sys_max_cmd_len=8192; 15883 ;; 15884 15885 mint*) 15886 # On MiNT this can take a long time and run out of memory. 15887 lt_cv_sys_max_cmd_len=8192; 15888 ;; 15889 15890 amigaos*) 15891 # On AmigaOS with pdksh, this test takes hours, literally. 15892 # So we just punt and use a minimum line length of 8192. 15893 lt_cv_sys_max_cmd_len=8192; 15894 ;; 15895 15896 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 15897 # This has been around since 386BSD, at least. Likely further. 15898 if test -x /sbin/sysctl; then 15899 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 15900 elif test -x /usr/sbin/sysctl; then 15901 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 15902 else 15903 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 15904 fi 15905 # And add a safety zone 15906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 15907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 15908 ;; 15909 15910 interix*) 15911 # We know the value 262144 and hardcode it with a safety zone (like BSD) 15912 lt_cv_sys_max_cmd_len=196608 15913 ;; 15914 15915 os2*) 15916 # The test takes a long time on OS/2. 15917 lt_cv_sys_max_cmd_len=8192 15918 ;; 15919 15920 osf*) 15921 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 15922 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 15923 # nice to cause kernel panics so lets avoid the loop below. 15924 # First set a reasonable default. 15925 lt_cv_sys_max_cmd_len=16384 15926 # 15927 if test -x /sbin/sysconfig; then 15928 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 15929 *1*) lt_cv_sys_max_cmd_len=-1 ;; 15930 esac 15931 fi 15932 ;; 15933 sco3.2v5*) 15934 lt_cv_sys_max_cmd_len=102400 15935 ;; 15936 sysv5* | sco5v6* | sysv4.2uw2*) 15937 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 15938 if test -n "$kargmax"; then 15939 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 15940 else 15941 lt_cv_sys_max_cmd_len=32768 15942 fi 15943 ;; 15944 *) 15945 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 15946 if test -n "$lt_cv_sys_max_cmd_len" && \ 15947 test undefined != "$lt_cv_sys_max_cmd_len"; then 15948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 15949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 15950 else 15951 # Make teststring a little bigger before we do anything with it. 15952 # a 1K string should be a reasonable start. 15953 for i in 1 2 3 4 5 6 7 8; do 15954 teststring=$teststring$teststring 15955 done 15956 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 15957 # If test is not a shell built-in, we'll probably end up computing a 15958 # maximum length that is only half of the actual maximum length, but 15959 # we can't tell. 15960 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 15961 = "X$teststring$teststring"; } >/dev/null 2>&1 && 15962 test 17 != "$i" # 1/2 MB should be enough 15963 do 15964 i=`expr $i + 1` 15965 teststring=$teststring$teststring 15966 done 15967 # Only check the string length outside the loop. 15968 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 15969 teststring= 15970 # Add a significant safety factor because C++ compilers can tack on 15971 # massive amounts of additional arguments before passing them to the 15972 # linker. It appears as though 1/2 is a usable value. 15973 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 15974 fi 15975 ;; 15976 esac 15977 15978fi 15979 15980if test -n "$lt_cv_sys_max_cmd_len"; then 15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 15982$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 15983else 15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 15985$as_echo "none" >&6; } 15986fi 15987max_cmd_len=$lt_cv_sys_max_cmd_len 15988 15989 15990 15991 15992 15993 15994: ${CP="cp -f"} 15995: ${MV="mv -f"} 15996: ${RM="rm -f"} 15997 15998if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 15999 lt_unset=unset 16000else 16001 lt_unset=false 16002fi 16003 16004 16005 16006 16007 16008# test EBCDIC or ASCII 16009case `echo X|tr X '\101'` in 16010 A) # ASCII based system 16011 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 16012 lt_SP2NL='tr \040 \012' 16013 lt_NL2SP='tr \015\012 \040\040' 16014 ;; 16015 *) # EBCDIC based system 16016 lt_SP2NL='tr \100 \n' 16017 lt_NL2SP='tr \r\n \100\100' 16018 ;; 16019esac 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 16030$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 16031if ${lt_cv_to_host_file_cmd+:} false; then : 16032 $as_echo_n "(cached) " >&6 16033else 16034 case $host in 16035 *-*-mingw* ) 16036 case $build in 16037 *-*-mingw* ) # actually msys 16038 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 16039 ;; 16040 *-*-cygwin* ) 16041 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 16042 ;; 16043 * ) # otherwise, assume *nix 16044 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 16045 ;; 16046 esac 16047 ;; 16048 *-*-cygwin* ) 16049 case $build in 16050 *-*-mingw* ) # actually msys 16051 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 16052 ;; 16053 *-*-cygwin* ) 16054 lt_cv_to_host_file_cmd=func_convert_file_noop 16055 ;; 16056 * ) # otherwise, assume *nix 16057 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 16058 ;; 16059 esac 16060 ;; 16061 * ) # unhandled hosts (and "normal" native builds) 16062 lt_cv_to_host_file_cmd=func_convert_file_noop 16063 ;; 16064esac 16065 16066fi 16067 16068to_host_file_cmd=$lt_cv_to_host_file_cmd 16069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 16070$as_echo "$lt_cv_to_host_file_cmd" >&6; } 16071 16072 16073 16074 16075 16076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 16077$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 16078if ${lt_cv_to_tool_file_cmd+:} false; then : 16079 $as_echo_n "(cached) " >&6 16080else 16081 #assume ordinary cross tools, or native build. 16082lt_cv_to_tool_file_cmd=func_convert_file_noop 16083case $host in 16084 *-*-mingw* ) 16085 case $build in 16086 *-*-mingw* ) # actually msys 16087 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 16088 ;; 16089 esac 16090 ;; 16091esac 16092 16093fi 16094 16095to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 16097$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 16098 16099 16100 16101 16102 16103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 16104$as_echo_n "checking for $LD option to reload object files... " >&6; } 16105if ${lt_cv_ld_reload_flag+:} false; then : 16106 $as_echo_n "(cached) " >&6 16107else 16108 lt_cv_ld_reload_flag='-r' 16109fi 16110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 16111$as_echo "$lt_cv_ld_reload_flag" >&6; } 16112reload_flag=$lt_cv_ld_reload_flag 16113case $reload_flag in 16114"" | " "*) ;; 16115*) reload_flag=" $reload_flag" ;; 16116esac 16117reload_cmds='$LD$reload_flag -o $output$reload_objs' 16118case $host_os in 16119 cygwin* | mingw* | pw32* | cegcc*) 16120 if test yes != "$GCC"; then 16121 reload_cmds=false 16122 fi 16123 ;; 16124 darwin*) 16125 if test yes = "$GCC"; then 16126 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 16127 else 16128 reload_cmds='$LD$reload_flag -o $output$reload_objs' 16129 fi 16130 ;; 16131esac 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141if test -n "$ac_tool_prefix"; then 16142 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 16143set dummy ${ac_tool_prefix}objdump; ac_word=$2 16144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16145$as_echo_n "checking for $ac_word... " >&6; } 16146if ${ac_cv_prog_OBJDUMP+:} false; then : 16147 $as_echo_n "(cached) " >&6 16148else 16149 if test -n "$OBJDUMP"; then 16150 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 16151else 16152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16153for as_dir in $PATH 16154do 16155 IFS=$as_save_IFS 16156 test -z "$as_dir" && as_dir=. 16157 for ac_exec_ext in '' $ac_executable_extensions; do 16158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16159 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 16160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16161 break 2 16162 fi 16163done 16164 done 16165IFS=$as_save_IFS 16166 16167fi 16168fi 16169OBJDUMP=$ac_cv_prog_OBJDUMP 16170if test -n "$OBJDUMP"; then 16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 16172$as_echo "$OBJDUMP" >&6; } 16173else 16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16175$as_echo "no" >&6; } 16176fi 16177 16178 16179fi 16180if test -z "$ac_cv_prog_OBJDUMP"; then 16181 ac_ct_OBJDUMP=$OBJDUMP 16182 # Extract the first word of "objdump", so it can be a program name with args. 16183set dummy objdump; ac_word=$2 16184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16185$as_echo_n "checking for $ac_word... " >&6; } 16186if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 16187 $as_echo_n "(cached) " >&6 16188else 16189 if test -n "$ac_ct_OBJDUMP"; then 16190 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 16191else 16192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16193for as_dir in $PATH 16194do 16195 IFS=$as_save_IFS 16196 test -z "$as_dir" && as_dir=. 16197 for ac_exec_ext in '' $ac_executable_extensions; do 16198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16199 ac_cv_prog_ac_ct_OBJDUMP="objdump" 16200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16201 break 2 16202 fi 16203done 16204 done 16205IFS=$as_save_IFS 16206 16207fi 16208fi 16209ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 16210if test -n "$ac_ct_OBJDUMP"; then 16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 16212$as_echo "$ac_ct_OBJDUMP" >&6; } 16213else 16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16215$as_echo "no" >&6; } 16216fi 16217 16218 if test "x$ac_ct_OBJDUMP" = x; then 16219 OBJDUMP="false" 16220 else 16221 case $cross_compiling:$ac_tool_warned in 16222yes:) 16223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16225ac_tool_warned=yes ;; 16226esac 16227 OBJDUMP=$ac_ct_OBJDUMP 16228 fi 16229else 16230 OBJDUMP="$ac_cv_prog_OBJDUMP" 16231fi 16232 16233test -z "$OBJDUMP" && OBJDUMP=objdump 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 16244$as_echo_n "checking how to recognize dependent libraries... " >&6; } 16245if ${lt_cv_deplibs_check_method+:} false; then : 16246 $as_echo_n "(cached) " >&6 16247else 16248 lt_cv_file_magic_cmd='$MAGIC_CMD' 16249lt_cv_file_magic_test_file= 16250lt_cv_deplibs_check_method='unknown' 16251# Need to set the preceding variable on all platforms that support 16252# interlibrary dependencies. 16253# 'none' -- dependencies not supported. 16254# 'unknown' -- same as none, but documents that we really don't know. 16255# 'pass_all' -- all dependencies passed with no checks. 16256# 'test_compile' -- check by making test program. 16257# 'file_magic [[regex]]' -- check by looking for files in library path 16258# that responds to the $file_magic_cmd with a given extended regex. 16259# If you have 'file' or equivalent on your system and you're not sure 16260# whether 'pass_all' will *always* work, you probably want this one. 16261 16262case $host_os in 16263aix[4-9]*) 16264 lt_cv_deplibs_check_method=pass_all 16265 ;; 16266 16267beos*) 16268 lt_cv_deplibs_check_method=pass_all 16269 ;; 16270 16271bsdi[45]*) 16272 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 16273 lt_cv_file_magic_cmd='/usr/bin/file -L' 16274 lt_cv_file_magic_test_file=/shlib/libc.so 16275 ;; 16276 16277cygwin*) 16278 # func_win32_libid is a shell function defined in ltmain.sh 16279 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 16280 lt_cv_file_magic_cmd='func_win32_libid' 16281 ;; 16282 16283mingw* | pw32*) 16284 # Base MSYS/MinGW do not provide the 'file' command needed by 16285 # func_win32_libid shell function, so use a weaker test based on 'objdump', 16286 # unless we find 'file', for example because we are cross-compiling. 16287 if ( file / ) >/dev/null 2>&1; then 16288 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 16289 lt_cv_file_magic_cmd='func_win32_libid' 16290 else 16291 # Keep this pattern in sync with the one in func_win32_libid. 16292 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 16293 lt_cv_file_magic_cmd='$OBJDUMP -f' 16294 fi 16295 ;; 16296 16297cegcc*) 16298 # use the weaker test based on 'objdump'. See mingw*. 16299 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 16300 lt_cv_file_magic_cmd='$OBJDUMP -f' 16301 ;; 16302 16303darwin* | rhapsody*) 16304 lt_cv_deplibs_check_method=pass_all 16305 ;; 16306 16307freebsd* | dragonfly*) 16308 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 16309 case $host_cpu in 16310 i*86 ) 16311 # Not sure whether the presence of OpenBSD here was a mistake. 16312 # Let's accept both of them until this is cleared up. 16313 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 16314 lt_cv_file_magic_cmd=/usr/bin/file 16315 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 16316 ;; 16317 esac 16318 else 16319 lt_cv_deplibs_check_method=pass_all 16320 fi 16321 ;; 16322 16323haiku*) 16324 lt_cv_deplibs_check_method=pass_all 16325 ;; 16326 16327hpux10.20* | hpux11*) 16328 lt_cv_file_magic_cmd=/usr/bin/file 16329 case $host_cpu in 16330 ia64*) 16331 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 16332 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 16333 ;; 16334 hppa*64*) 16335 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]' 16336 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 16337 ;; 16338 *) 16339 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 16340 lt_cv_file_magic_test_file=/usr/lib/libc.sl 16341 ;; 16342 esac 16343 ;; 16344 16345interix[3-9]*) 16346 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 16347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 16348 ;; 16349 16350irix5* | irix6* | nonstopux*) 16351 case $LD in 16352 *-32|*"-32 ") libmagic=32-bit;; 16353 *-n32|*"-n32 ") libmagic=N32;; 16354 *-64|*"-64 ") libmagic=64-bit;; 16355 *) libmagic=never-match;; 16356 esac 16357 lt_cv_deplibs_check_method=pass_all 16358 ;; 16359 16360# This must be glibc/ELF. 16361linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16362 lt_cv_deplibs_check_method=pass_all 16363 ;; 16364 16365netbsd*) 16366 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 16367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 16368 else 16369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 16370 fi 16371 ;; 16372 16373newos6*) 16374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 16375 lt_cv_file_magic_cmd=/usr/bin/file 16376 lt_cv_file_magic_test_file=/usr/lib/libnls.so 16377 ;; 16378 16379*nto* | *qnx*) 16380 lt_cv_deplibs_check_method=pass_all 16381 ;; 16382 16383openbsd* | bitrig*) 16384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 16386 else 16387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 16388 fi 16389 ;; 16390 16391osf3* | osf4* | osf5*) 16392 lt_cv_deplibs_check_method=pass_all 16393 ;; 16394 16395rdos*) 16396 lt_cv_deplibs_check_method=pass_all 16397 ;; 16398 16399solaris*) 16400 lt_cv_deplibs_check_method=pass_all 16401 ;; 16402 16403sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16404 lt_cv_deplibs_check_method=pass_all 16405 ;; 16406 16407sysv4 | sysv4.3*) 16408 case $host_vendor in 16409 motorola) 16410 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]' 16411 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 16412 ;; 16413 ncr) 16414 lt_cv_deplibs_check_method=pass_all 16415 ;; 16416 sequent) 16417 lt_cv_file_magic_cmd='/bin/file' 16418 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 16419 ;; 16420 sni) 16421 lt_cv_file_magic_cmd='/bin/file' 16422 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 16423 lt_cv_file_magic_test_file=/lib/libc.so 16424 ;; 16425 siemens) 16426 lt_cv_deplibs_check_method=pass_all 16427 ;; 16428 pc) 16429 lt_cv_deplibs_check_method=pass_all 16430 ;; 16431 esac 16432 ;; 16433 16434tpf*) 16435 lt_cv_deplibs_check_method=pass_all 16436 ;; 16437os2*) 16438 lt_cv_deplibs_check_method=pass_all 16439 ;; 16440esac 16441 16442fi 16443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 16444$as_echo "$lt_cv_deplibs_check_method" >&6; } 16445 16446file_magic_glob= 16447want_nocaseglob=no 16448if test "$build" = "$host"; then 16449 case $host_os in 16450 mingw* | pw32*) 16451 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 16452 want_nocaseglob=yes 16453 else 16454 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 16455 fi 16456 ;; 16457 esac 16458fi 16459 16460file_magic_cmd=$lt_cv_file_magic_cmd 16461deplibs_check_method=$lt_cv_deplibs_check_method 16462test -z "$deplibs_check_method" && deplibs_check_method=unknown 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485if test -n "$ac_tool_prefix"; then 16486 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 16487set dummy ${ac_tool_prefix}dlltool; ac_word=$2 16488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16489$as_echo_n "checking for $ac_word... " >&6; } 16490if ${ac_cv_prog_DLLTOOL+:} false; then : 16491 $as_echo_n "(cached) " >&6 16492else 16493 if test -n "$DLLTOOL"; then 16494 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 16495else 16496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16497for as_dir in $PATH 16498do 16499 IFS=$as_save_IFS 16500 test -z "$as_dir" && as_dir=. 16501 for ac_exec_ext in '' $ac_executable_extensions; do 16502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16503 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 16504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16505 break 2 16506 fi 16507done 16508 done 16509IFS=$as_save_IFS 16510 16511fi 16512fi 16513DLLTOOL=$ac_cv_prog_DLLTOOL 16514if test -n "$DLLTOOL"; then 16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 16516$as_echo "$DLLTOOL" >&6; } 16517else 16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16519$as_echo "no" >&6; } 16520fi 16521 16522 16523fi 16524if test -z "$ac_cv_prog_DLLTOOL"; then 16525 ac_ct_DLLTOOL=$DLLTOOL 16526 # Extract the first word of "dlltool", so it can be a program name with args. 16527set dummy dlltool; ac_word=$2 16528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16529$as_echo_n "checking for $ac_word... " >&6; } 16530if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 16531 $as_echo_n "(cached) " >&6 16532else 16533 if test -n "$ac_ct_DLLTOOL"; then 16534 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 16535else 16536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16537for as_dir in $PATH 16538do 16539 IFS=$as_save_IFS 16540 test -z "$as_dir" && as_dir=. 16541 for ac_exec_ext in '' $ac_executable_extensions; do 16542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16543 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 16544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16545 break 2 16546 fi 16547done 16548 done 16549IFS=$as_save_IFS 16550 16551fi 16552fi 16553ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 16554if test -n "$ac_ct_DLLTOOL"; then 16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 16556$as_echo "$ac_ct_DLLTOOL" >&6; } 16557else 16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16559$as_echo "no" >&6; } 16560fi 16561 16562 if test "x$ac_ct_DLLTOOL" = x; then 16563 DLLTOOL="false" 16564 else 16565 case $cross_compiling:$ac_tool_warned in 16566yes:) 16567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16569ac_tool_warned=yes ;; 16570esac 16571 DLLTOOL=$ac_ct_DLLTOOL 16572 fi 16573else 16574 DLLTOOL="$ac_cv_prog_DLLTOOL" 16575fi 16576 16577test -z "$DLLTOOL" && DLLTOOL=dlltool 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 16589$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 16590if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 16591 $as_echo_n "(cached) " >&6 16592else 16593 lt_cv_sharedlib_from_linklib_cmd='unknown' 16594 16595case $host_os in 16596cygwin* | mingw* | pw32* | cegcc*) 16597 # two different shell functions defined in ltmain.sh; 16598 # decide which one to use based on capabilities of $DLLTOOL 16599 case `$DLLTOOL --help 2>&1` in 16600 *--identify-strict*) 16601 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 16602 ;; 16603 *) 16604 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 16605 ;; 16606 esac 16607 ;; 16608*) 16609 # fallback: assume linklib IS sharedlib 16610 lt_cv_sharedlib_from_linklib_cmd=$ECHO 16611 ;; 16612esac 16613 16614fi 16615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 16616$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 16617sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 16618test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 16619 16620 16621 16622 16623 16624 16625 16626if test -n "$ac_tool_prefix"; then 16627 for ac_prog in ar 16628 do 16629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 16630set dummy $ac_tool_prefix$ac_prog; ac_word=$2 16631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16632$as_echo_n "checking for $ac_word... " >&6; } 16633if ${ac_cv_prog_AR+:} false; then : 16634 $as_echo_n "(cached) " >&6 16635else 16636 if test -n "$AR"; then 16637 ac_cv_prog_AR="$AR" # Let the user override the test. 16638else 16639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16640for as_dir in $PATH 16641do 16642 IFS=$as_save_IFS 16643 test -z "$as_dir" && as_dir=. 16644 for ac_exec_ext in '' $ac_executable_extensions; do 16645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16646 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 16647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16648 break 2 16649 fi 16650done 16651 done 16652IFS=$as_save_IFS 16653 16654fi 16655fi 16656AR=$ac_cv_prog_AR 16657if test -n "$AR"; then 16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 16659$as_echo "$AR" >&6; } 16660else 16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16662$as_echo "no" >&6; } 16663fi 16664 16665 16666 test -n "$AR" && break 16667 done 16668fi 16669if test -z "$AR"; then 16670 ac_ct_AR=$AR 16671 for ac_prog in ar 16672do 16673 # Extract the first word of "$ac_prog", so it can be a program name with args. 16674set dummy $ac_prog; ac_word=$2 16675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16676$as_echo_n "checking for $ac_word... " >&6; } 16677if ${ac_cv_prog_ac_ct_AR+:} false; then : 16678 $as_echo_n "(cached) " >&6 16679else 16680 if test -n "$ac_ct_AR"; then 16681 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 16682else 16683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16684for as_dir in $PATH 16685do 16686 IFS=$as_save_IFS 16687 test -z "$as_dir" && as_dir=. 16688 for ac_exec_ext in '' $ac_executable_extensions; do 16689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16690 ac_cv_prog_ac_ct_AR="$ac_prog" 16691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16692 break 2 16693 fi 16694done 16695 done 16696IFS=$as_save_IFS 16697 16698fi 16699fi 16700ac_ct_AR=$ac_cv_prog_ac_ct_AR 16701if test -n "$ac_ct_AR"; then 16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 16703$as_echo "$ac_ct_AR" >&6; } 16704else 16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16706$as_echo "no" >&6; } 16707fi 16708 16709 16710 test -n "$ac_ct_AR" && break 16711done 16712 16713 if test "x$ac_ct_AR" = x; then 16714 AR="false" 16715 else 16716 case $cross_compiling:$ac_tool_warned in 16717yes:) 16718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16720ac_tool_warned=yes ;; 16721esac 16722 AR=$ac_ct_AR 16723 fi 16724fi 16725 16726: ${AR=ar} 16727: ${AR_FLAGS=cru} 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 16740$as_echo_n "checking for archiver @FILE support... " >&6; } 16741if ${lt_cv_ar_at_file+:} false; then : 16742 $as_echo_n "(cached) " >&6 16743else 16744 lt_cv_ar_at_file=no 16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16746/* end confdefs.h. */ 16747 16748int 16749main () 16750{ 16751 16752 ; 16753 return 0; 16754} 16755_ACEOF 16756if ac_fn_c_try_compile "$LINENO"; then : 16757 echo conftest.$ac_objext > conftest.lst 16758 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 16759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 16760 (eval $lt_ar_try) 2>&5 16761 ac_status=$? 16762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16763 test $ac_status = 0; } 16764 if test 0 -eq "$ac_status"; then 16765 # Ensure the archiver fails upon bogus file names. 16766 rm -f conftest.$ac_objext libconftest.a 16767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 16768 (eval $lt_ar_try) 2>&5 16769 ac_status=$? 16770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16771 test $ac_status = 0; } 16772 if test 0 -ne "$ac_status"; then 16773 lt_cv_ar_at_file=@ 16774 fi 16775 fi 16776 rm -f conftest.* libconftest.a 16777 16778fi 16779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16780 16781fi 16782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 16783$as_echo "$lt_cv_ar_at_file" >&6; } 16784 16785if test no = "$lt_cv_ar_at_file"; then 16786 archiver_list_spec= 16787else 16788 archiver_list_spec=$lt_cv_ar_at_file 16789fi 16790 16791 16792 16793 16794 16795 16796 16797if test -n "$ac_tool_prefix"; then 16798 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 16799set dummy ${ac_tool_prefix}strip; ac_word=$2 16800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16801$as_echo_n "checking for $ac_word... " >&6; } 16802if ${ac_cv_prog_STRIP+:} false; then : 16803 $as_echo_n "(cached) " >&6 16804else 16805 if test -n "$STRIP"; then 16806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 16807else 16808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16809for as_dir in $PATH 16810do 16811 IFS=$as_save_IFS 16812 test -z "$as_dir" && as_dir=. 16813 for ac_exec_ext in '' $ac_executable_extensions; do 16814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16815 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 16816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16817 break 2 16818 fi 16819done 16820 done 16821IFS=$as_save_IFS 16822 16823fi 16824fi 16825STRIP=$ac_cv_prog_STRIP 16826if test -n "$STRIP"; then 16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 16828$as_echo "$STRIP" >&6; } 16829else 16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16831$as_echo "no" >&6; } 16832fi 16833 16834 16835fi 16836if test -z "$ac_cv_prog_STRIP"; then 16837 ac_ct_STRIP=$STRIP 16838 # Extract the first word of "strip", so it can be a program name with args. 16839set dummy strip; ac_word=$2 16840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16841$as_echo_n "checking for $ac_word... " >&6; } 16842if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 16843 $as_echo_n "(cached) " >&6 16844else 16845 if test -n "$ac_ct_STRIP"; then 16846 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 16847else 16848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16849for as_dir in $PATH 16850do 16851 IFS=$as_save_IFS 16852 test -z "$as_dir" && as_dir=. 16853 for ac_exec_ext in '' $ac_executable_extensions; do 16854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16855 ac_cv_prog_ac_ct_STRIP="strip" 16856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16857 break 2 16858 fi 16859done 16860 done 16861IFS=$as_save_IFS 16862 16863fi 16864fi 16865ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 16866if test -n "$ac_ct_STRIP"; then 16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 16868$as_echo "$ac_ct_STRIP" >&6; } 16869else 16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16871$as_echo "no" >&6; } 16872fi 16873 16874 if test "x$ac_ct_STRIP" = x; then 16875 STRIP=":" 16876 else 16877 case $cross_compiling:$ac_tool_warned in 16878yes:) 16879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16881ac_tool_warned=yes ;; 16882esac 16883 STRIP=$ac_ct_STRIP 16884 fi 16885else 16886 STRIP="$ac_cv_prog_STRIP" 16887fi 16888 16889test -z "$STRIP" && STRIP=: 16890 16891 16892 16893 16894 16895 16896if test -n "$ac_tool_prefix"; then 16897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 16898set dummy ${ac_tool_prefix}ranlib; ac_word=$2 16899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16900$as_echo_n "checking for $ac_word... " >&6; } 16901if ${ac_cv_prog_RANLIB+:} false; then : 16902 $as_echo_n "(cached) " >&6 16903else 16904 if test -n "$RANLIB"; then 16905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 16906else 16907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16908for as_dir in $PATH 16909do 16910 IFS=$as_save_IFS 16911 test -z "$as_dir" && as_dir=. 16912 for ac_exec_ext in '' $ac_executable_extensions; do 16913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 16915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16916 break 2 16917 fi 16918done 16919 done 16920IFS=$as_save_IFS 16921 16922fi 16923fi 16924RANLIB=$ac_cv_prog_RANLIB 16925if test -n "$RANLIB"; then 16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 16927$as_echo "$RANLIB" >&6; } 16928else 16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16930$as_echo "no" >&6; } 16931fi 16932 16933 16934fi 16935if test -z "$ac_cv_prog_RANLIB"; then 16936 ac_ct_RANLIB=$RANLIB 16937 # Extract the first word of "ranlib", so it can be a program name with args. 16938set dummy ranlib; ac_word=$2 16939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16940$as_echo_n "checking for $ac_word... " >&6; } 16941if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 16942 $as_echo_n "(cached) " >&6 16943else 16944 if test -n "$ac_ct_RANLIB"; then 16945 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 16946else 16947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16948for as_dir in $PATH 16949do 16950 IFS=$as_save_IFS 16951 test -z "$as_dir" && as_dir=. 16952 for ac_exec_ext in '' $ac_executable_extensions; do 16953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16954 ac_cv_prog_ac_ct_RANLIB="ranlib" 16955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16956 break 2 16957 fi 16958done 16959 done 16960IFS=$as_save_IFS 16961 16962fi 16963fi 16964ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 16965if test -n "$ac_ct_RANLIB"; then 16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 16967$as_echo "$ac_ct_RANLIB" >&6; } 16968else 16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16970$as_echo "no" >&6; } 16971fi 16972 16973 if test "x$ac_ct_RANLIB" = x; then 16974 RANLIB=":" 16975 else 16976 case $cross_compiling:$ac_tool_warned in 16977yes:) 16978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16980ac_tool_warned=yes ;; 16981esac 16982 RANLIB=$ac_ct_RANLIB 16983 fi 16984else 16985 RANLIB="$ac_cv_prog_RANLIB" 16986fi 16987 16988test -z "$RANLIB" && RANLIB=: 16989 16990 16991 16992 16993 16994 16995# Determine commands to create old-style static archives. 16996old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 16997old_postinstall_cmds='chmod 644 $oldlib' 16998old_postuninstall_cmds= 16999 17000if test -n "$RANLIB"; then 17001 case $host_os in 17002 bitrig* | openbsd*) 17003 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 17004 ;; 17005 *) 17006 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 17007 ;; 17008 esac 17009 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 17010fi 17011 17012case $host_os in 17013 darwin*) 17014 lock_old_archive_extraction=yes ;; 17015 *) 17016 lock_old_archive_extraction=no ;; 17017esac 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057# If no C compiler was specified, use CC. 17058LTCC=${LTCC-"$CC"} 17059 17060# If no C compiler flags were specified, use CFLAGS. 17061LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17062 17063# Allow CC to be a program name with arguments. 17064compiler=$CC 17065 17066 17067# Check for command to grab the raw symbol name followed by C symbol from nm. 17068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 17069$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 17070if ${lt_cv_sys_global_symbol_pipe+:} false; then : 17071 $as_echo_n "(cached) " >&6 17072else 17073 17074# These are sane defaults that work on at least a few old systems. 17075# [They come from Ultrix. What could be older than Ultrix?!! ;)] 17076 17077# Character class describing NM global symbol codes. 17078symcode='[BCDEGRST]' 17079 17080# Regexp to match symbols that can be accessed directly from C. 17081sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 17082 17083# Define system-specific variables. 17084case $host_os in 17085aix*) 17086 symcode='[BCDT]' 17087 ;; 17088cygwin* | mingw* | pw32* | cegcc*) 17089 symcode='[ABCDGISTW]' 17090 ;; 17091hpux*) 17092 if test ia64 = "$host_cpu"; then 17093 symcode='[ABCDEGRST]' 17094 fi 17095 ;; 17096irix* | nonstopux*) 17097 symcode='[BCDEGRST]' 17098 ;; 17099osf*) 17100 symcode='[BCDEGQRST]' 17101 ;; 17102solaris*) 17103 symcode='[BDRT]' 17104 ;; 17105sco3.2v5*) 17106 symcode='[DT]' 17107 ;; 17108sysv4.2uw2*) 17109 symcode='[DT]' 17110 ;; 17111sysv5* | sco5v6* | unixware* | OpenUNIX*) 17112 symcode='[ABDT]' 17113 ;; 17114sysv4) 17115 symcode='[DFNSTU]' 17116 ;; 17117esac 17118 17119# If we're using GNU nm, then use its standard symbol codes. 17120case `$NM -V 2>&1` in 17121*GNU* | *'with BFD'*) 17122 symcode='[ABCDGIRSTW]' ;; 17123esac 17124 17125if test "$lt_cv_nm_interface" = "MS dumpbin"; then 17126 # Gets list of data symbols to import. 17127 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 17128 # Adjust the below global symbol transforms to fixup imported variables. 17129 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 17130 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 17131 lt_c_name_lib_hook="\ 17132 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 17133 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 17134else 17135 # Disable hooks by default. 17136 lt_cv_sys_global_symbol_to_import= 17137 lt_cdecl_hook= 17138 lt_c_name_hook= 17139 lt_c_name_lib_hook= 17140fi 17141 17142# Transform an extracted symbol line into a proper C declaration. 17143# Some systems (esp. on ia64) link data and code symbols differently, 17144# so use this general approach. 17145lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 17146$lt_cdecl_hook\ 17147" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 17148" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 17149 17150# Transform an extracted symbol line into symbol name and symbol address 17151lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 17152$lt_c_name_hook\ 17153" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 17154" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 17155 17156# Transform an extracted symbol line into symbol name with lib prefix and 17157# symbol address. 17158lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 17159$lt_c_name_lib_hook\ 17160" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 17161" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 17162" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 17163 17164# Handle CRLF in mingw tool chain 17165opt_cr= 17166case $build_os in 17167mingw*) 17168 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 17169 ;; 17170esac 17171 17172# Try without a prefix underscore, then with it. 17173for ac_symprfx in "" "_"; do 17174 17175 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 17176 symxfrm="\\1 $ac_symprfx\\2 \\2" 17177 17178 # Write the raw and C identifiers. 17179 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 17180 # Fake it for dumpbin and say T for any non-static function, 17181 # D for any global variable and I for any imported variable. 17182 # Also find C++ and __fastcall symbols from MSVC++, 17183 # which start with @ or ?. 17184 lt_cv_sys_global_symbol_pipe="$AWK '"\ 17185" {last_section=section; section=\$ 3};"\ 17186" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 17187" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 17188" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 17189" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 17190" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 17191" \$ 0!~/External *\|/{next};"\ 17192" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 17193" {if(hide[section]) next};"\ 17194" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 17195" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 17196" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 17197" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 17198" ' prfx=^$ac_symprfx" 17199 else 17200 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 17201 fi 17202 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 17203 17204 # Check to see that the pipe works correctly. 17205 pipe_works=no 17206 17207 rm -f conftest* 17208 cat > conftest.$ac_ext <<_LT_EOF 17209#ifdef __cplusplus 17210extern "C" { 17211#endif 17212char nm_test_var; 17213void nm_test_func(void); 17214void nm_test_func(void){} 17215#ifdef __cplusplus 17216} 17217#endif 17218int main(){nm_test_var='a';nm_test_func();return(0);} 17219_LT_EOF 17220 17221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17222 (eval $ac_compile) 2>&5 17223 ac_status=$? 17224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17225 test $ac_status = 0; }; then 17226 # Now try to grab the symbols. 17227 nlist=conftest.nm 17228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 17229 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 17230 ac_status=$? 17231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17232 test $ac_status = 0; } && test -s "$nlist"; then 17233 # Try sorting and uniquifying the output. 17234 if sort "$nlist" | uniq > "$nlist"T; then 17235 mv -f "$nlist"T "$nlist" 17236 else 17237 rm -f "$nlist"T 17238 fi 17239 17240 # Make sure that we snagged all the symbols we need. 17241 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 17242 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 17243 cat <<_LT_EOF > conftest.$ac_ext 17244/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 17245#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 17246/* DATA imports from DLLs on WIN32 can't be const, because runtime 17247 relocations are performed -- see ld's documentation on pseudo-relocs. */ 17248# define LT_DLSYM_CONST 17249#elif defined __osf__ 17250/* This system does not cope well with relocations in const data. */ 17251# define LT_DLSYM_CONST 17252#else 17253# define LT_DLSYM_CONST const 17254#endif 17255 17256#ifdef __cplusplus 17257extern "C" { 17258#endif 17259 17260_LT_EOF 17261 # Now generate the symbol file. 17262 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 17263 17264 cat <<_LT_EOF >> conftest.$ac_ext 17265 17266/* The mapping between symbol names and symbols. */ 17267LT_DLSYM_CONST struct { 17268 const char *name; 17269 void *address; 17270} 17271lt__PROGRAM__LTX_preloaded_symbols[] = 17272{ 17273 { "@PROGRAM@", (void *) 0 }, 17274_LT_EOF 17275 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 17276 cat <<\_LT_EOF >> conftest.$ac_ext 17277 {0, (void *) 0} 17278}; 17279 17280/* This works around a problem in FreeBSD linker */ 17281#ifdef FREEBSD_WORKAROUND 17282static const void *lt_preloaded_setup() { 17283 return lt__PROGRAM__LTX_preloaded_symbols; 17284} 17285#endif 17286 17287#ifdef __cplusplus 17288} 17289#endif 17290_LT_EOF 17291 # Now try linking the two files. 17292 mv conftest.$ac_objext conftstm.$ac_objext 17293 lt_globsym_save_LIBS=$LIBS 17294 lt_globsym_save_CFLAGS=$CFLAGS 17295 LIBS=conftstm.$ac_objext 17296 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 17297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17298 (eval $ac_link) 2>&5 17299 ac_status=$? 17300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17301 test $ac_status = 0; } && test -s conftest$ac_exeext; then 17302 pipe_works=yes 17303 fi 17304 LIBS=$lt_globsym_save_LIBS 17305 CFLAGS=$lt_globsym_save_CFLAGS 17306 else 17307 echo "cannot find nm_test_func in $nlist" >&5 17308 fi 17309 else 17310 echo "cannot find nm_test_var in $nlist" >&5 17311 fi 17312 else 17313 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 17314 fi 17315 else 17316 echo "$progname: failed program was:" >&5 17317 cat conftest.$ac_ext >&5 17318 fi 17319 rm -rf conftest* conftst* 17320 17321 # Do not use the global_symbol_pipe unless it works. 17322 if test yes = "$pipe_works"; then 17323 break 17324 else 17325 lt_cv_sys_global_symbol_pipe= 17326 fi 17327done 17328 17329fi 17330 17331if test -z "$lt_cv_sys_global_symbol_pipe"; then 17332 lt_cv_sys_global_symbol_to_cdecl= 17333fi 17334if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 17336$as_echo "failed" >&6; } 17337else 17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 17339$as_echo "ok" >&6; } 17340fi 17341 17342# Response file support. 17343if test "$lt_cv_nm_interface" = "MS dumpbin"; then 17344 nm_file_list_spec='@' 17345elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 17346 nm_file_list_spec='@' 17347fi 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17386$as_echo_n "checking for sysroot... " >&6; } 17387 17388# Check whether --with-sysroot was given. 17389if test "${with_sysroot+set}" = set; then : 17390 withval=$with_sysroot; 17391else 17392 with_sysroot=no 17393fi 17394 17395 17396lt_sysroot= 17397case $with_sysroot in #( 17398 yes) 17399 if test yes = "$GCC"; then 17400 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 17401 fi 17402 ;; #( 17403 /*) 17404 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 17405 ;; #( 17406 no|'') 17407 ;; #( 17408 *) 17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 17410$as_echo "$with_sysroot" >&6; } 17411 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 17412 ;; 17413esac 17414 17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 17416$as_echo "${lt_sysroot:-no}" >&6; } 17417 17418 17419 17420 17421 17422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 17423$as_echo_n "checking for a working dd... " >&6; } 17424if ${ac_cv_path_lt_DD+:} false; then : 17425 $as_echo_n "(cached) " >&6 17426else 17427 printf 0123456789abcdef0123456789abcdef >conftest.i 17428cat conftest.i conftest.i >conftest2.i 17429: ${lt_DD:=$DD} 17430if test -z "$lt_DD"; then 17431 ac_path_lt_DD_found=false 17432 # Loop through the user's path and test for each of PROGNAME-LIST 17433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17434for as_dir in $PATH 17435do 17436 IFS=$as_save_IFS 17437 test -z "$as_dir" && as_dir=. 17438 for ac_prog in dd; do 17439 for ac_exec_ext in '' $ac_executable_extensions; do 17440 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 17441 as_fn_executable_p "$ac_path_lt_DD" || continue 17442if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 17443 cmp -s conftest.i conftest.out \ 17444 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 17445fi 17446 $ac_path_lt_DD_found && break 3 17447 done 17448 done 17449 done 17450IFS=$as_save_IFS 17451 if test -z "$ac_cv_path_lt_DD"; then 17452 : 17453 fi 17454else 17455 ac_cv_path_lt_DD=$lt_DD 17456fi 17457 17458rm -f conftest.i conftest2.i conftest.out 17459fi 17460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 17461$as_echo "$ac_cv_path_lt_DD" >&6; } 17462 17463 17464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 17465$as_echo_n "checking how to truncate binary pipes... " >&6; } 17466if ${lt_cv_truncate_bin+:} false; then : 17467 $as_echo_n "(cached) " >&6 17468else 17469 printf 0123456789abcdef0123456789abcdef >conftest.i 17470cat conftest.i conftest.i >conftest2.i 17471lt_cv_truncate_bin= 17472if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 17473 cmp -s conftest.i conftest.out \ 17474 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 17475fi 17476rm -f conftest.i conftest2.i conftest.out 17477test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 17478fi 17479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 17480$as_echo "$lt_cv_truncate_bin" >&6; } 17481 17482 17483 17484 17485 17486 17487 17488# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 17489func_cc_basename () 17490{ 17491 for cc_temp in $*""; do 17492 case $cc_temp in 17493 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17494 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17495 \-*) ;; 17496 *) break;; 17497 esac 17498 done 17499 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 17500} 17501 17502# Check whether --enable-libtool-lock was given. 17503if test "${enable_libtool_lock+set}" = set; then : 17504 enableval=$enable_libtool_lock; 17505fi 17506 17507test no = "$enable_libtool_lock" || enable_libtool_lock=yes 17508 17509# Some flags need to be propagated to the compiler or linker for good 17510# libtool support. 17511case $host in 17512ia64-*-hpux*) 17513 # Find out what ABI is being produced by ac_compile, and set mode 17514 # options accordingly. 17515 echo 'int i;' > conftest.$ac_ext 17516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17517 (eval $ac_compile) 2>&5 17518 ac_status=$? 17519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17520 test $ac_status = 0; }; then 17521 case `/usr/bin/file conftest.$ac_objext` in 17522 *ELF-32*) 17523 HPUX_IA64_MODE=32 17524 ;; 17525 *ELF-64*) 17526 HPUX_IA64_MODE=64 17527 ;; 17528 esac 17529 fi 17530 rm -rf conftest* 17531 ;; 17532*-*-irix6*) 17533 # Find out what ABI is being produced by ac_compile, and set linker 17534 # options accordingly. 17535 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 17536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17537 (eval $ac_compile) 2>&5 17538 ac_status=$? 17539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17540 test $ac_status = 0; }; then 17541 if test yes = "$lt_cv_prog_gnu_ld"; then 17542 case `/usr/bin/file conftest.$ac_objext` in 17543 *32-bit*) 17544 LD="${LD-ld} -melf32bsmip" 17545 ;; 17546 *N32*) 17547 LD="${LD-ld} -melf32bmipn32" 17548 ;; 17549 *64-bit*) 17550 LD="${LD-ld} -melf64bmip" 17551 ;; 17552 esac 17553 else 17554 case `/usr/bin/file conftest.$ac_objext` in 17555 *32-bit*) 17556 LD="${LD-ld} -32" 17557 ;; 17558 *N32*) 17559 LD="${LD-ld} -n32" 17560 ;; 17561 *64-bit*) 17562 LD="${LD-ld} -64" 17563 ;; 17564 esac 17565 fi 17566 fi 17567 rm -rf conftest* 17568 ;; 17569 17570mips64*-*linux*) 17571 # Find out what ABI is being produced by ac_compile, and set linker 17572 # options accordingly. 17573 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 17574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17575 (eval $ac_compile) 2>&5 17576 ac_status=$? 17577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17578 test $ac_status = 0; }; then 17579 emul=elf 17580 case `/usr/bin/file conftest.$ac_objext` in 17581 *32-bit*) 17582 emul="${emul}32" 17583 ;; 17584 *64-bit*) 17585 emul="${emul}64" 17586 ;; 17587 esac 17588 case `/usr/bin/file conftest.$ac_objext` in 17589 *MSB*) 17590 emul="${emul}btsmip" 17591 ;; 17592 *LSB*) 17593 emul="${emul}ltsmip" 17594 ;; 17595 esac 17596 case `/usr/bin/file conftest.$ac_objext` in 17597 *N32*) 17598 emul="${emul}n32" 17599 ;; 17600 esac 17601 LD="${LD-ld} -m $emul" 17602 fi 17603 rm -rf conftest* 17604 ;; 17605 17606x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 17607s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 17608 # Find out what ABI is being produced by ac_compile, and set linker 17609 # options accordingly. Note that the listed cases only cover the 17610 # situations where additional linker options are needed (such as when 17611 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 17612 # vice versa); the common cases where no linker options are needed do 17613 # not appear in the list. 17614 echo 'int i;' > conftest.$ac_ext 17615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17616 (eval $ac_compile) 2>&5 17617 ac_status=$? 17618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17619 test $ac_status = 0; }; then 17620 case `/usr/bin/file conftest.o` in 17621 *32-bit*) 17622 case $host in 17623 x86_64-*kfreebsd*-gnu) 17624 LD="${LD-ld} -m elf_i386_fbsd" 17625 ;; 17626 x86_64-*linux*) 17627 case `/usr/bin/file conftest.o` in 17628 *x86-64*) 17629 LD="${LD-ld} -m elf32_x86_64" 17630 ;; 17631 *) 17632 LD="${LD-ld} -m elf_i386" 17633 ;; 17634 esac 17635 ;; 17636 powerpc64le-*linux*) 17637 LD="${LD-ld} -m elf32lppclinux" 17638 ;; 17639 powerpc64-*linux*) 17640 LD="${LD-ld} -m elf32ppclinux" 17641 ;; 17642 s390x-*linux*) 17643 LD="${LD-ld} -m elf_s390" 17644 ;; 17645 sparc64-*linux*) 17646 LD="${LD-ld} -m elf32_sparc" 17647 ;; 17648 esac 17649 ;; 17650 *64-bit*) 17651 case $host in 17652 x86_64-*kfreebsd*-gnu) 17653 LD="${LD-ld} -m elf_x86_64_fbsd" 17654 ;; 17655 x86_64-*linux*) 17656 LD="${LD-ld} -m elf_x86_64" 17657 ;; 17658 powerpcle-*linux*) 17659 LD="${LD-ld} -m elf64lppc" 17660 ;; 17661 powerpc-*linux*) 17662 LD="${LD-ld} -m elf64ppc" 17663 ;; 17664 s390*-*linux*|s390*-*tpf*) 17665 LD="${LD-ld} -m elf64_s390" 17666 ;; 17667 sparc*-*linux*) 17668 LD="${LD-ld} -m elf64_sparc" 17669 ;; 17670 esac 17671 ;; 17672 esac 17673 fi 17674 rm -rf conftest* 17675 ;; 17676 17677*-*-sco3.2v5*) 17678 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 17679 SAVE_CFLAGS=$CFLAGS 17680 CFLAGS="$CFLAGS -belf" 17681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 17682$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 17683if ${lt_cv_cc_needs_belf+:} false; then : 17684 $as_echo_n "(cached) " >&6 17685else 17686 ac_ext=c 17687ac_cpp='$CPP $CPPFLAGS' 17688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17690ac_compiler_gnu=$ac_cv_c_compiler_gnu 17691 17692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17693/* end confdefs.h. */ 17694 17695int 17696main () 17697{ 17698 17699 ; 17700 return 0; 17701} 17702_ACEOF 17703if ac_fn_c_try_link "$LINENO"; then : 17704 lt_cv_cc_needs_belf=yes 17705else 17706 lt_cv_cc_needs_belf=no 17707fi 17708rm -f core conftest.err conftest.$ac_objext \ 17709 conftest$ac_exeext conftest.$ac_ext 17710 ac_ext=c 17711ac_cpp='$CPP $CPPFLAGS' 17712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17714ac_compiler_gnu=$ac_cv_c_compiler_gnu 17715 17716fi 17717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 17718$as_echo "$lt_cv_cc_needs_belf" >&6; } 17719 if test yes != "$lt_cv_cc_needs_belf"; then 17720 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 17721 CFLAGS=$SAVE_CFLAGS 17722 fi 17723 ;; 17724*-*solaris*) 17725 # Find out what ABI is being produced by ac_compile, and set linker 17726 # options accordingly. 17727 echo 'int i;' > conftest.$ac_ext 17728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17729 (eval $ac_compile) 2>&5 17730 ac_status=$? 17731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17732 test $ac_status = 0; }; then 17733 case `/usr/bin/file conftest.o` in 17734 *64-bit*) 17735 case $lt_cv_prog_gnu_ld in 17736 yes*) 17737 case $host in 17738 i?86-*-solaris*|x86_64-*-solaris*) 17739 LD="${LD-ld} -m elf_x86_64" 17740 ;; 17741 sparc*-*-solaris*) 17742 LD="${LD-ld} -m elf64_sparc" 17743 ;; 17744 esac 17745 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 17746 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 17747 LD=${LD-ld}_sol2 17748 fi 17749 ;; 17750 *) 17751 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 17752 LD="${LD-ld} -64" 17753 fi 17754 ;; 17755 esac 17756 ;; 17757 esac 17758 fi 17759 rm -rf conftest* 17760 ;; 17761esac 17762 17763need_locks=$enable_libtool_lock 17764 17765if test -n "$ac_tool_prefix"; then 17766 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 17767set dummy ${ac_tool_prefix}mt; ac_word=$2 17768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17769$as_echo_n "checking for $ac_word... " >&6; } 17770if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 17771 $as_echo_n "(cached) " >&6 17772else 17773 if test -n "$MANIFEST_TOOL"; then 17774 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 17775else 17776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17777for as_dir in $PATH 17778do 17779 IFS=$as_save_IFS 17780 test -z "$as_dir" && as_dir=. 17781 for ac_exec_ext in '' $ac_executable_extensions; do 17782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17783 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 17784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17785 break 2 17786 fi 17787done 17788 done 17789IFS=$as_save_IFS 17790 17791fi 17792fi 17793MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 17794if test -n "$MANIFEST_TOOL"; then 17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 17796$as_echo "$MANIFEST_TOOL" >&6; } 17797else 17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17799$as_echo "no" >&6; } 17800fi 17801 17802 17803fi 17804if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 17805 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 17806 # Extract the first word of "mt", so it can be a program name with args. 17807set dummy mt; ac_word=$2 17808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17809$as_echo_n "checking for $ac_word... " >&6; } 17810if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 17811 $as_echo_n "(cached) " >&6 17812else 17813 if test -n "$ac_ct_MANIFEST_TOOL"; then 17814 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 17815else 17816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17817for as_dir in $PATH 17818do 17819 IFS=$as_save_IFS 17820 test -z "$as_dir" && as_dir=. 17821 for ac_exec_ext in '' $ac_executable_extensions; do 17822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17823 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 17824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17825 break 2 17826 fi 17827done 17828 done 17829IFS=$as_save_IFS 17830 17831fi 17832fi 17833ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 17834if test -n "$ac_ct_MANIFEST_TOOL"; then 17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 17836$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 17837else 17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17839$as_echo "no" >&6; } 17840fi 17841 17842 if test "x$ac_ct_MANIFEST_TOOL" = x; then 17843 MANIFEST_TOOL=":" 17844 else 17845 case $cross_compiling:$ac_tool_warned in 17846yes:) 17847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17849ac_tool_warned=yes ;; 17850esac 17851 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 17852 fi 17853else 17854 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 17855fi 17856 17857test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 17858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 17859$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 17860if ${lt_cv_path_mainfest_tool+:} false; then : 17861 $as_echo_n "(cached) " >&6 17862else 17863 lt_cv_path_mainfest_tool=no 17864 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 17865 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 17866 cat conftest.err >&5 17867 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 17868 lt_cv_path_mainfest_tool=yes 17869 fi 17870 rm -f conftest* 17871fi 17872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 17873$as_echo "$lt_cv_path_mainfest_tool" >&6; } 17874if test yes != "$lt_cv_path_mainfest_tool"; then 17875 MANIFEST_TOOL=: 17876fi 17877 17878 17879 17880 17881 17882 17883 case $host_os in 17884 rhapsody* | darwin*) 17885 if test -n "$ac_tool_prefix"; then 17886 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 17887set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 17888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17889$as_echo_n "checking for $ac_word... " >&6; } 17890if ${ac_cv_prog_DSYMUTIL+:} false; then : 17891 $as_echo_n "(cached) " >&6 17892else 17893 if test -n "$DSYMUTIL"; then 17894 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 17895else 17896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17897for as_dir in $PATH 17898do 17899 IFS=$as_save_IFS 17900 test -z "$as_dir" && as_dir=. 17901 for ac_exec_ext in '' $ac_executable_extensions; do 17902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17903 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 17904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17905 break 2 17906 fi 17907done 17908 done 17909IFS=$as_save_IFS 17910 17911fi 17912fi 17913DSYMUTIL=$ac_cv_prog_DSYMUTIL 17914if test -n "$DSYMUTIL"; then 17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 17916$as_echo "$DSYMUTIL" >&6; } 17917else 17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17919$as_echo "no" >&6; } 17920fi 17921 17922 17923fi 17924if test -z "$ac_cv_prog_DSYMUTIL"; then 17925 ac_ct_DSYMUTIL=$DSYMUTIL 17926 # Extract the first word of "dsymutil", so it can be a program name with args. 17927set dummy dsymutil; ac_word=$2 17928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17929$as_echo_n "checking for $ac_word... " >&6; } 17930if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 17931 $as_echo_n "(cached) " >&6 17932else 17933 if test -n "$ac_ct_DSYMUTIL"; then 17934 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 17935else 17936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17937for as_dir in $PATH 17938do 17939 IFS=$as_save_IFS 17940 test -z "$as_dir" && as_dir=. 17941 for ac_exec_ext in '' $ac_executable_extensions; do 17942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17943 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 17944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17945 break 2 17946 fi 17947done 17948 done 17949IFS=$as_save_IFS 17950 17951fi 17952fi 17953ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 17954if test -n "$ac_ct_DSYMUTIL"; then 17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 17956$as_echo "$ac_ct_DSYMUTIL" >&6; } 17957else 17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17959$as_echo "no" >&6; } 17960fi 17961 17962 if test "x$ac_ct_DSYMUTIL" = x; then 17963 DSYMUTIL=":" 17964 else 17965 case $cross_compiling:$ac_tool_warned in 17966yes:) 17967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17969ac_tool_warned=yes ;; 17970esac 17971 DSYMUTIL=$ac_ct_DSYMUTIL 17972 fi 17973else 17974 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 17975fi 17976 17977 if test -n "$ac_tool_prefix"; then 17978 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 17979set dummy ${ac_tool_prefix}nmedit; ac_word=$2 17980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17981$as_echo_n "checking for $ac_word... " >&6; } 17982if ${ac_cv_prog_NMEDIT+:} false; then : 17983 $as_echo_n "(cached) " >&6 17984else 17985 if test -n "$NMEDIT"; then 17986 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 17987else 17988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17989for as_dir in $PATH 17990do 17991 IFS=$as_save_IFS 17992 test -z "$as_dir" && as_dir=. 17993 for ac_exec_ext in '' $ac_executable_extensions; do 17994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17995 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 17996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17997 break 2 17998 fi 17999done 18000 done 18001IFS=$as_save_IFS 18002 18003fi 18004fi 18005NMEDIT=$ac_cv_prog_NMEDIT 18006if test -n "$NMEDIT"; then 18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 18008$as_echo "$NMEDIT" >&6; } 18009else 18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18011$as_echo "no" >&6; } 18012fi 18013 18014 18015fi 18016if test -z "$ac_cv_prog_NMEDIT"; then 18017 ac_ct_NMEDIT=$NMEDIT 18018 # Extract the first word of "nmedit", so it can be a program name with args. 18019set dummy nmedit; ac_word=$2 18020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18021$as_echo_n "checking for $ac_word... " >&6; } 18022if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 18023 $as_echo_n "(cached) " >&6 18024else 18025 if test -n "$ac_ct_NMEDIT"; then 18026 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 18027else 18028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18029for as_dir in $PATH 18030do 18031 IFS=$as_save_IFS 18032 test -z "$as_dir" && as_dir=. 18033 for ac_exec_ext in '' $ac_executable_extensions; do 18034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18035 ac_cv_prog_ac_ct_NMEDIT="nmedit" 18036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18037 break 2 18038 fi 18039done 18040 done 18041IFS=$as_save_IFS 18042 18043fi 18044fi 18045ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 18046if test -n "$ac_ct_NMEDIT"; then 18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 18048$as_echo "$ac_ct_NMEDIT" >&6; } 18049else 18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18051$as_echo "no" >&6; } 18052fi 18053 18054 if test "x$ac_ct_NMEDIT" = x; then 18055 NMEDIT=":" 18056 else 18057 case $cross_compiling:$ac_tool_warned in 18058yes:) 18059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18061ac_tool_warned=yes ;; 18062esac 18063 NMEDIT=$ac_ct_NMEDIT 18064 fi 18065else 18066 NMEDIT="$ac_cv_prog_NMEDIT" 18067fi 18068 18069 if test -n "$ac_tool_prefix"; then 18070 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 18071set dummy ${ac_tool_prefix}lipo; ac_word=$2 18072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18073$as_echo_n "checking for $ac_word... " >&6; } 18074if ${ac_cv_prog_LIPO+:} false; then : 18075 $as_echo_n "(cached) " >&6 18076else 18077 if test -n "$LIPO"; then 18078 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 18079else 18080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18081for as_dir in $PATH 18082do 18083 IFS=$as_save_IFS 18084 test -z "$as_dir" && as_dir=. 18085 for ac_exec_ext in '' $ac_executable_extensions; do 18086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18087 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 18088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18089 break 2 18090 fi 18091done 18092 done 18093IFS=$as_save_IFS 18094 18095fi 18096fi 18097LIPO=$ac_cv_prog_LIPO 18098if test -n "$LIPO"; then 18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 18100$as_echo "$LIPO" >&6; } 18101else 18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18103$as_echo "no" >&6; } 18104fi 18105 18106 18107fi 18108if test -z "$ac_cv_prog_LIPO"; then 18109 ac_ct_LIPO=$LIPO 18110 # Extract the first word of "lipo", so it can be a program name with args. 18111set dummy lipo; ac_word=$2 18112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18113$as_echo_n "checking for $ac_word... " >&6; } 18114if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 18115 $as_echo_n "(cached) " >&6 18116else 18117 if test -n "$ac_ct_LIPO"; then 18118 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 18119else 18120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18121for as_dir in $PATH 18122do 18123 IFS=$as_save_IFS 18124 test -z "$as_dir" && as_dir=. 18125 for ac_exec_ext in '' $ac_executable_extensions; do 18126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18127 ac_cv_prog_ac_ct_LIPO="lipo" 18128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18129 break 2 18130 fi 18131done 18132 done 18133IFS=$as_save_IFS 18134 18135fi 18136fi 18137ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 18138if test -n "$ac_ct_LIPO"; then 18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 18140$as_echo "$ac_ct_LIPO" >&6; } 18141else 18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18143$as_echo "no" >&6; } 18144fi 18145 18146 if test "x$ac_ct_LIPO" = x; then 18147 LIPO=":" 18148 else 18149 case $cross_compiling:$ac_tool_warned in 18150yes:) 18151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18153ac_tool_warned=yes ;; 18154esac 18155 LIPO=$ac_ct_LIPO 18156 fi 18157else 18158 LIPO="$ac_cv_prog_LIPO" 18159fi 18160 18161 if test -n "$ac_tool_prefix"; then 18162 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 18163set dummy ${ac_tool_prefix}otool; ac_word=$2 18164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18165$as_echo_n "checking for $ac_word... " >&6; } 18166if ${ac_cv_prog_OTOOL+:} false; then : 18167 $as_echo_n "(cached) " >&6 18168else 18169 if test -n "$OTOOL"; then 18170 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 18171else 18172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18173for as_dir in $PATH 18174do 18175 IFS=$as_save_IFS 18176 test -z "$as_dir" && as_dir=. 18177 for ac_exec_ext in '' $ac_executable_extensions; do 18178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18179 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 18180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18181 break 2 18182 fi 18183done 18184 done 18185IFS=$as_save_IFS 18186 18187fi 18188fi 18189OTOOL=$ac_cv_prog_OTOOL 18190if test -n "$OTOOL"; then 18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18192$as_echo "$OTOOL" >&6; } 18193else 18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18195$as_echo "no" >&6; } 18196fi 18197 18198 18199fi 18200if test -z "$ac_cv_prog_OTOOL"; then 18201 ac_ct_OTOOL=$OTOOL 18202 # Extract the first word of "otool", so it can be a program name with args. 18203set dummy otool; ac_word=$2 18204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18205$as_echo_n "checking for $ac_word... " >&6; } 18206if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 18207 $as_echo_n "(cached) " >&6 18208else 18209 if test -n "$ac_ct_OTOOL"; then 18210 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 18211else 18212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18213for as_dir in $PATH 18214do 18215 IFS=$as_save_IFS 18216 test -z "$as_dir" && as_dir=. 18217 for ac_exec_ext in '' $ac_executable_extensions; do 18218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18219 ac_cv_prog_ac_ct_OTOOL="otool" 18220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18221 break 2 18222 fi 18223done 18224 done 18225IFS=$as_save_IFS 18226 18227fi 18228fi 18229ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 18230if test -n "$ac_ct_OTOOL"; then 18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 18232$as_echo "$ac_ct_OTOOL" >&6; } 18233else 18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18235$as_echo "no" >&6; } 18236fi 18237 18238 if test "x$ac_ct_OTOOL" = x; then 18239 OTOOL=":" 18240 else 18241 case $cross_compiling:$ac_tool_warned in 18242yes:) 18243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18245ac_tool_warned=yes ;; 18246esac 18247 OTOOL=$ac_ct_OTOOL 18248 fi 18249else 18250 OTOOL="$ac_cv_prog_OTOOL" 18251fi 18252 18253 if test -n "$ac_tool_prefix"; then 18254 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 18255set dummy ${ac_tool_prefix}otool64; ac_word=$2 18256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18257$as_echo_n "checking for $ac_word... " >&6; } 18258if ${ac_cv_prog_OTOOL64+:} false; then : 18259 $as_echo_n "(cached) " >&6 18260else 18261 if test -n "$OTOOL64"; then 18262 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 18263else 18264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18265for as_dir in $PATH 18266do 18267 IFS=$as_save_IFS 18268 test -z "$as_dir" && as_dir=. 18269 for ac_exec_ext in '' $ac_executable_extensions; do 18270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18271 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 18272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18273 break 2 18274 fi 18275done 18276 done 18277IFS=$as_save_IFS 18278 18279fi 18280fi 18281OTOOL64=$ac_cv_prog_OTOOL64 18282if test -n "$OTOOL64"; then 18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 18284$as_echo "$OTOOL64" >&6; } 18285else 18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18287$as_echo "no" >&6; } 18288fi 18289 18290 18291fi 18292if test -z "$ac_cv_prog_OTOOL64"; then 18293 ac_ct_OTOOL64=$OTOOL64 18294 # Extract the first word of "otool64", so it can be a program name with args. 18295set dummy otool64; ac_word=$2 18296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18297$as_echo_n "checking for $ac_word... " >&6; } 18298if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 18299 $as_echo_n "(cached) " >&6 18300else 18301 if test -n "$ac_ct_OTOOL64"; then 18302 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 18303else 18304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18305for as_dir in $PATH 18306do 18307 IFS=$as_save_IFS 18308 test -z "$as_dir" && as_dir=. 18309 for ac_exec_ext in '' $ac_executable_extensions; do 18310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18311 ac_cv_prog_ac_ct_OTOOL64="otool64" 18312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18313 break 2 18314 fi 18315done 18316 done 18317IFS=$as_save_IFS 18318 18319fi 18320fi 18321ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 18322if test -n "$ac_ct_OTOOL64"; then 18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 18324$as_echo "$ac_ct_OTOOL64" >&6; } 18325else 18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18327$as_echo "no" >&6; } 18328fi 18329 18330 if test "x$ac_ct_OTOOL64" = x; then 18331 OTOOL64=":" 18332 else 18333 case $cross_compiling:$ac_tool_warned in 18334yes:) 18335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18337ac_tool_warned=yes ;; 18338esac 18339 OTOOL64=$ac_ct_OTOOL64 18340 fi 18341else 18342 OTOOL64="$ac_cv_prog_OTOOL64" 18343fi 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 18372$as_echo_n "checking for -single_module linker flag... " >&6; } 18373if ${lt_cv_apple_cc_single_mod+:} false; then : 18374 $as_echo_n "(cached) " >&6 18375else 18376 lt_cv_apple_cc_single_mod=no 18377 if test -z "$LT_MULTI_MODULE"; then 18378 # By default we will add the -single_module flag. You can override 18379 # by either setting the environment variable LT_MULTI_MODULE 18380 # non-empty at configure time, or by adding -multi_module to the 18381 # link flags. 18382 rm -rf libconftest.dylib* 18383 echo "int foo(void){return 1;}" > conftest.c 18384 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 18385-dynamiclib -Wl,-single_module conftest.c" >&5 18386 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 18387 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 18388 _lt_result=$? 18389 # If there is a non-empty error log, and "single_module" 18390 # appears in it, assume the flag caused a linker warning 18391 if test -s conftest.err && $GREP single_module conftest.err; then 18392 cat conftest.err >&5 18393 # Otherwise, if the output was created with a 0 exit code from 18394 # the compiler, it worked. 18395 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 18396 lt_cv_apple_cc_single_mod=yes 18397 else 18398 cat conftest.err >&5 18399 fi 18400 rm -rf libconftest.dylib* 18401 rm -f conftest.* 18402 fi 18403fi 18404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 18405$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 18406 18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 18408$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 18409if ${lt_cv_ld_exported_symbols_list+:} false; then : 18410 $as_echo_n "(cached) " >&6 18411else 18412 lt_cv_ld_exported_symbols_list=no 18413 save_LDFLAGS=$LDFLAGS 18414 echo "_main" > conftest.sym 18415 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 18416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18417/* end confdefs.h. */ 18418 18419int 18420main () 18421{ 18422 18423 ; 18424 return 0; 18425} 18426_ACEOF 18427if ac_fn_c_try_link "$LINENO"; then : 18428 lt_cv_ld_exported_symbols_list=yes 18429else 18430 lt_cv_ld_exported_symbols_list=no 18431fi 18432rm -f core conftest.err conftest.$ac_objext \ 18433 conftest$ac_exeext conftest.$ac_ext 18434 LDFLAGS=$save_LDFLAGS 18435 18436fi 18437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 18438$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 18439 18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 18441$as_echo_n "checking for -force_load linker flag... " >&6; } 18442if ${lt_cv_ld_force_load+:} false; then : 18443 $as_echo_n "(cached) " >&6 18444else 18445 lt_cv_ld_force_load=no 18446 cat > conftest.c << _LT_EOF 18447int forced_loaded() { return 2;} 18448_LT_EOF 18449 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 18450 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 18451 echo "$AR cru libconftest.a conftest.o" >&5 18452 $AR cru libconftest.a conftest.o 2>&5 18453 echo "$RANLIB libconftest.a" >&5 18454 $RANLIB libconftest.a 2>&5 18455 cat > conftest.c << _LT_EOF 18456int main() { return 0;} 18457_LT_EOF 18458 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 18459 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 18460 _lt_result=$? 18461 if test -s conftest.err && $GREP force_load conftest.err; then 18462 cat conftest.err >&5 18463 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 18464 lt_cv_ld_force_load=yes 18465 else 18466 cat conftest.err >&5 18467 fi 18468 rm -f conftest.err libconftest.a conftest conftest.c 18469 rm -rf conftest.dSYM 18470 18471fi 18472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 18473$as_echo "$lt_cv_ld_force_load" >&6; } 18474 case $host_os in 18475 rhapsody* | darwin1.[012]) 18476 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 18477 darwin1.*) 18478 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 18479 darwin*) # darwin 5.x on 18480 # if running on 10.5 or later, the deployment target defaults 18481 # to the OS version, if on x86, and 10.4, the deployment 18482 # target defaults to 10.4. Don't you love it? 18483 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 18484 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 18485 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 18486 10.[012][,.]*) 18487 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 18488 10.*) 18489 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 18490 esac 18491 ;; 18492 esac 18493 if test yes = "$lt_cv_apple_cc_single_mod"; then 18494 _lt_dar_single_mod='$single_module' 18495 fi 18496 if test yes = "$lt_cv_ld_exported_symbols_list"; then 18497 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 18498 else 18499 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 18500 fi 18501 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 18502 _lt_dsymutil='~$DSYMUTIL $lib || :' 18503 else 18504 _lt_dsymutil= 18505 fi 18506 ;; 18507 esac 18508 18509# func_munge_path_list VARIABLE PATH 18510# ----------------------------------- 18511# VARIABLE is name of variable containing _space_ separated list of 18512# directories to be munged by the contents of PATH, which is string 18513# having a format: 18514# "DIR[:DIR]:" 18515# string "DIR[ DIR]" will be prepended to VARIABLE 18516# ":DIR[:DIR]" 18517# string "DIR[ DIR]" will be appended to VARIABLE 18518# "DIRP[:DIRP]::[DIRA:]DIRA" 18519# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18520# "DIRA[ DIRA]" will be appended to VARIABLE 18521# "DIR[:DIR]" 18522# VARIABLE will be replaced by "DIR[ DIR]" 18523func_munge_path_list () 18524{ 18525 case x$2 in 18526 x) 18527 ;; 18528 *:) 18529 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18530 ;; 18531 x:*) 18532 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18533 ;; 18534 *::*) 18535 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18536 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18537 ;; 18538 *) 18539 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18540 ;; 18541 esac 18542} 18543 18544for ac_header in dlfcn.h 18545do : 18546 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 18547" 18548if test "x$ac_cv_header_dlfcn_h" = xyes; then : 18549 cat >>confdefs.h <<_ACEOF 18550#define HAVE_DLFCN_H 1 18551_ACEOF 18552 18553fi 18554 18555done 18556 18557 18558 18559 18560 18561# Set options 18562 18563 18564 18565 enable_dlopen=no 18566 18567 18568 enable_win32_dll=no 18569 18570 18571 18572 # Check whether --enable-static was given. 18573if test "${enable_static+set}" = set; then : 18574 enableval=$enable_static; p=${PACKAGE-default} 18575 case $enableval in 18576 yes) enable_static=yes ;; 18577 no) enable_static=no ;; 18578 *) 18579 enable_static=no 18580 # Look at the argument we got. We use all the common list separators. 18581 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 18582 for pkg in $enableval; do 18583 IFS=$lt_save_ifs 18584 if test "X$pkg" = "X$p"; then 18585 enable_static=yes 18586 fi 18587 done 18588 IFS=$lt_save_ifs 18589 ;; 18590 esac 18591else 18592 enable_static=yes 18593fi 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604# Check whether --with-pic was given. 18605if test "${with_pic+set}" = set; then : 18606 withval=$with_pic; lt_p=${PACKAGE-default} 18607 case $withval in 18608 yes|no) pic_mode=$withval ;; 18609 *) 18610 pic_mode=default 18611 # Look at the argument we got. We use all the common list separators. 18612 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 18613 for lt_pkg in $withval; do 18614 IFS=$lt_save_ifs 18615 if test "X$lt_pkg" = "X$lt_p"; then 18616 pic_mode=yes 18617 fi 18618 done 18619 IFS=$lt_save_ifs 18620 ;; 18621 esac 18622else 18623 pic_mode=default 18624fi 18625 18626 18627 18628 18629 18630 18631 18632 18633 # Check whether --enable-fast-install was given. 18634if test "${enable_fast_install+set}" = set; then : 18635 enableval=$enable_fast_install; p=${PACKAGE-default} 18636 case $enableval in 18637 yes) enable_fast_install=yes ;; 18638 no) enable_fast_install=no ;; 18639 *) 18640 enable_fast_install=no 18641 # Look at the argument we got. We use all the common list separators. 18642 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 18643 for pkg in $enableval; do 18644 IFS=$lt_save_ifs 18645 if test "X$pkg" = "X$p"; then 18646 enable_fast_install=yes 18647 fi 18648 done 18649 IFS=$lt_save_ifs 18650 ;; 18651 esac 18652else 18653 enable_fast_install=yes 18654fi 18655 18656 18657 18658 18659 18660 18661 18662 18663 shared_archive_member_spec= 18664case $host,$enable_shared in 18665power*-*-aix[5-9]*,yes) 18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 18667$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 18668 18669# Check whether --with-aix-soname was given. 18670if test "${with_aix_soname+set}" = set; then : 18671 withval=$with_aix_soname; case $withval in 18672 aix|svr4|both) 18673 ;; 18674 *) 18675 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 18676 ;; 18677 esac 18678 lt_cv_with_aix_soname=$with_aix_soname 18679else 18680 if ${lt_cv_with_aix_soname+:} false; then : 18681 $as_echo_n "(cached) " >&6 18682else 18683 lt_cv_with_aix_soname=aix 18684fi 18685 18686 with_aix_soname=$lt_cv_with_aix_soname 18687fi 18688 18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 18690$as_echo "$with_aix_soname" >&6; } 18691 if test aix != "$with_aix_soname"; then 18692 # For the AIX way of multilib, we name the shared archive member 18693 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 18694 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 18695 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 18696 # the AIX toolchain works better with OBJECT_MODE set (default 32). 18697 if test 64 = "${OBJECT_MODE-32}"; then 18698 shared_archive_member_spec=shr_64 18699 else 18700 shared_archive_member_spec=shr 18701 fi 18702 fi 18703 ;; 18704*) 18705 with_aix_soname=aix 18706 ;; 18707esac 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718# This can be used to rebuild libtool when needed 18719LIBTOOL_DEPS=$ltmain 18720 18721# Always use our own libtool. 18722LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753test -z "$LN_S" && LN_S="ln -s" 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764 18765 18766 18767 18768if test -n "${ZSH_VERSION+set}"; then 18769 setopt NO_GLOB_SUBST 18770fi 18771 18772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 18773$as_echo_n "checking for objdir... " >&6; } 18774if ${lt_cv_objdir+:} false; then : 18775 $as_echo_n "(cached) " >&6 18776else 18777 rm -f .libs 2>/dev/null 18778mkdir .libs 2>/dev/null 18779if test -d .libs; then 18780 lt_cv_objdir=.libs 18781else 18782 # MS-DOS does not allow filenames that begin with a dot. 18783 lt_cv_objdir=_libs 18784fi 18785rmdir .libs 2>/dev/null 18786fi 18787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 18788$as_echo "$lt_cv_objdir" >&6; } 18789objdir=$lt_cv_objdir 18790 18791 18792 18793 18794 18795cat >>confdefs.h <<_ACEOF 18796#define LT_OBJDIR "$lt_cv_objdir/" 18797_ACEOF 18798 18799 18800 18801 18802case $host_os in 18803aix3*) 18804 # AIX sometimes has problems with the GCC collect2 program. For some 18805 # reason, if we set the COLLECT_NAMES environment variable, the problems 18806 # vanish in a puff of smoke. 18807 if test set != "${COLLECT_NAMES+set}"; then 18808 COLLECT_NAMES= 18809 export COLLECT_NAMES 18810 fi 18811 ;; 18812esac 18813 18814# Global variables: 18815ofile=libtool 18816can_build_shared=yes 18817 18818# All known linkers require a '.a' archive for static linking (except MSVC, 18819# which needs '.lib'). 18820libext=a 18821 18822with_gnu_ld=$lt_cv_prog_gnu_ld 18823 18824old_CC=$CC 18825old_CFLAGS=$CFLAGS 18826 18827# Set sane defaults for various variables 18828test -z "$CC" && CC=cc 18829test -z "$LTCC" && LTCC=$CC 18830test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 18831test -z "$LD" && LD=ld 18832test -z "$ac_objext" && ac_objext=o 18833 18834func_cc_basename $compiler 18835cc_basename=$func_cc_basename_result 18836 18837 18838# Only perform the check for file, if the check method requires it 18839test -z "$MAGIC_CMD" && MAGIC_CMD=file 18840case $deplibs_check_method in 18841file_magic*) 18842 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 18843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 18844$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 18845if ${lt_cv_path_MAGIC_CMD+:} false; then : 18846 $as_echo_n "(cached) " >&6 18847else 18848 case $MAGIC_CMD in 18849[\\/*] | ?:[\\/]*) 18850 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 18851 ;; 18852*) 18853 lt_save_MAGIC_CMD=$MAGIC_CMD 18854 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 18855 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 18856 for ac_dir in $ac_dummy; do 18857 IFS=$lt_save_ifs 18858 test -z "$ac_dir" && ac_dir=. 18859 if test -f "$ac_dir/${ac_tool_prefix}file"; then 18860 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 18861 if test -n "$file_magic_test_file"; then 18862 case $deplibs_check_method in 18863 "file_magic "*) 18864 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 18865 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18866 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 18867 $EGREP "$file_magic_regex" > /dev/null; then 18868 : 18869 else 18870 cat <<_LT_EOF 1>&2 18871 18872*** Warning: the command libtool uses to detect shared libraries, 18873*** $file_magic_cmd, produces output that libtool cannot recognize. 18874*** The result is that libtool may fail to recognize shared libraries 18875*** as such. This will affect the creation of libtool libraries that 18876*** depend on shared libraries, but programs linked with such libtool 18877*** libraries will work regardless of this problem. Nevertheless, you 18878*** may want to report the problem to your system manager and/or to 18879*** bug-libtool@gnu.org 18880 18881_LT_EOF 18882 fi ;; 18883 esac 18884 fi 18885 break 18886 fi 18887 done 18888 IFS=$lt_save_ifs 18889 MAGIC_CMD=$lt_save_MAGIC_CMD 18890 ;; 18891esac 18892fi 18893 18894MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18895if test -n "$MAGIC_CMD"; then 18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 18897$as_echo "$MAGIC_CMD" >&6; } 18898else 18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18900$as_echo "no" >&6; } 18901fi 18902 18903 18904 18905 18906 18907if test -z "$lt_cv_path_MAGIC_CMD"; then 18908 if test -n "$ac_tool_prefix"; then 18909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 18910$as_echo_n "checking for file... " >&6; } 18911if ${lt_cv_path_MAGIC_CMD+:} false; then : 18912 $as_echo_n "(cached) " >&6 18913else 18914 case $MAGIC_CMD in 18915[\\/*] | ?:[\\/]*) 18916 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 18917 ;; 18918*) 18919 lt_save_MAGIC_CMD=$MAGIC_CMD 18920 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 18921 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 18922 for ac_dir in $ac_dummy; do 18923 IFS=$lt_save_ifs 18924 test -z "$ac_dir" && ac_dir=. 18925 if test -f "$ac_dir/file"; then 18926 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 18927 if test -n "$file_magic_test_file"; then 18928 case $deplibs_check_method in 18929 "file_magic "*) 18930 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 18931 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18932 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 18933 $EGREP "$file_magic_regex" > /dev/null; then 18934 : 18935 else 18936 cat <<_LT_EOF 1>&2 18937 18938*** Warning: the command libtool uses to detect shared libraries, 18939*** $file_magic_cmd, produces output that libtool cannot recognize. 18940*** The result is that libtool may fail to recognize shared libraries 18941*** as such. This will affect the creation of libtool libraries that 18942*** depend on shared libraries, but programs linked with such libtool 18943*** libraries will work regardless of this problem. Nevertheless, you 18944*** may want to report the problem to your system manager and/or to 18945*** bug-libtool@gnu.org 18946 18947_LT_EOF 18948 fi ;; 18949 esac 18950 fi 18951 break 18952 fi 18953 done 18954 IFS=$lt_save_ifs 18955 MAGIC_CMD=$lt_save_MAGIC_CMD 18956 ;; 18957esac 18958fi 18959 18960MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18961if test -n "$MAGIC_CMD"; then 18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 18963$as_echo "$MAGIC_CMD" >&6; } 18964else 18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18966$as_echo "no" >&6; } 18967fi 18968 18969 18970 else 18971 MAGIC_CMD=: 18972 fi 18973fi 18974 18975 fi 18976 ;; 18977esac 18978 18979# Use C for the default configuration in the libtool script 18980 18981lt_save_CC=$CC 18982ac_ext=c 18983ac_cpp='$CPP $CPPFLAGS' 18984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18986ac_compiler_gnu=$ac_cv_c_compiler_gnu 18987 18988 18989# Source file extension for C test sources. 18990ac_ext=c 18991 18992# Object file extension for compiled C test sources. 18993objext=o 18994objext=$objext 18995 18996# Code to be used in simple compile tests 18997lt_simple_compile_test_code="int some_variable = 0;" 18998 18999# Code to be used in simple link tests 19000lt_simple_link_test_code='int main(){return(0);}' 19001 19002 19003 19004 19005 19006 19007 19008# If no C compiler was specified, use CC. 19009LTCC=${LTCC-"$CC"} 19010 19011# If no C compiler flags were specified, use CFLAGS. 19012LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19013 19014# Allow CC to be a program name with arguments. 19015compiler=$CC 19016 19017# Save the default compiler, since it gets overwritten when the other 19018# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 19019compiler_DEFAULT=$CC 19020 19021# save warnings/boilerplate of simple test code 19022ac_outfile=conftest.$ac_objext 19023echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19024eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19025_lt_compiler_boilerplate=`cat conftest.err` 19026$RM conftest* 19027 19028ac_outfile=conftest.$ac_objext 19029echo "$lt_simple_link_test_code" >conftest.$ac_ext 19030eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19031_lt_linker_boilerplate=`cat conftest.err` 19032$RM -r conftest* 19033 19034 19035## CAVEAT EMPTOR: 19036## There is no encapsulation within the following macros, do not change 19037## the running order or otherwise move them around unless you know exactly 19038## what you are doing... 19039if test -n "$compiler"; then 19040 19041lt_prog_compiler_no_builtin_flag= 19042 19043if test yes = "$GCC"; then 19044 case $cc_basename in 19045 nvcc*) 19046 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 19047 *) 19048 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 19049 esac 19050 19051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 19052$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 19053if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 19054 $as_echo_n "(cached) " >&6 19055else 19056 lt_cv_prog_compiler_rtti_exceptions=no 19057 ac_outfile=conftest.$ac_objext 19058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19059 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 19060 # Insert the option either (1) after the last *FLAGS variable, or 19061 # (2) before a word containing "conftest.", or (3) at the end. 19062 # Note that $ac_compile itself does not contain backslashes and begins 19063 # with a dollar sign (not a hyphen), so the echo should work correctly. 19064 # The option is referenced via a variable to avoid confusing sed. 19065 lt_compile=`echo "$ac_compile" | $SED \ 19066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19068 -e 's:$: $lt_compiler_flag:'` 19069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19070 (eval "$lt_compile" 2>conftest.err) 19071 ac_status=$? 19072 cat conftest.err >&5 19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19074 if (exit $ac_status) && test -s "$ac_outfile"; then 19075 # The compiler can only warn and ignore the option if not recognized 19076 # So say no if there are warnings other than the usual output. 19077 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19079 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19080 lt_cv_prog_compiler_rtti_exceptions=yes 19081 fi 19082 fi 19083 $RM conftest* 19084 19085fi 19086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 19087$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 19088 19089if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 19090 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 19091else 19092 : 19093fi 19094 19095fi 19096 19097 19098 19099 19100 19101 19102 lt_prog_compiler_wl= 19103lt_prog_compiler_pic= 19104lt_prog_compiler_static= 19105 19106 19107 if test yes = "$GCC"; then 19108 lt_prog_compiler_wl='-Wl,' 19109 lt_prog_compiler_static='-static' 19110 19111 case $host_os in 19112 aix*) 19113 # All AIX code is PIC. 19114 if test ia64 = "$host_cpu"; then 19115 # AIX 5 now supports IA64 processor 19116 lt_prog_compiler_static='-Bstatic' 19117 fi 19118 lt_prog_compiler_pic='-fPIC' 19119 ;; 19120 19121 amigaos*) 19122 case $host_cpu in 19123 powerpc) 19124 # see comment about AmigaOS4 .so support 19125 lt_prog_compiler_pic='-fPIC' 19126 ;; 19127 m68k) 19128 # FIXME: we need at least 68020 code to build shared libraries, but 19129 # adding the '-m68020' flag to GCC prevents building anything better, 19130 # like '-m68040'. 19131 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 19132 ;; 19133 esac 19134 ;; 19135 19136 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19137 # PIC is the default for these OSes. 19138 ;; 19139 19140 mingw* | cygwin* | pw32* | os2* | cegcc*) 19141 # This hack is so that the source file can tell whether it is being 19142 # built for inclusion in a dll (and should export symbols for example). 19143 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19144 # (--disable-auto-import) libraries 19145 lt_prog_compiler_pic='-DDLL_EXPORT' 19146 case $host_os in 19147 os2*) 19148 lt_prog_compiler_static='$wl-static' 19149 ;; 19150 esac 19151 ;; 19152 19153 darwin* | rhapsody*) 19154 # PIC is the default on this platform 19155 # Common symbols not allowed in MH_DYLIB files 19156 lt_prog_compiler_pic='-fno-common' 19157 ;; 19158 19159 haiku*) 19160 # PIC is the default for Haiku. 19161 # The "-static" flag exists, but is broken. 19162 lt_prog_compiler_static= 19163 ;; 19164 19165 hpux*) 19166 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 19167 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 19168 # sets the default TLS model and affects inlining. 19169 case $host_cpu in 19170 hppa*64*) 19171 # +Z the default 19172 ;; 19173 *) 19174 lt_prog_compiler_pic='-fPIC' 19175 ;; 19176 esac 19177 ;; 19178 19179 interix[3-9]*) 19180 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19181 # Instead, we relocate shared libraries at runtime. 19182 ;; 19183 19184 msdosdjgpp*) 19185 # Just because we use GCC doesn't mean we suddenly get shared libraries 19186 # on systems that don't support them. 19187 lt_prog_compiler_can_build_shared=no 19188 enable_shared=no 19189 ;; 19190 19191 *nto* | *qnx*) 19192 # QNX uses GNU C++, but need to define -shared option too, otherwise 19193 # it will coredump. 19194 lt_prog_compiler_pic='-fPIC -shared' 19195 ;; 19196 19197 sysv4*MP*) 19198 if test -d /usr/nec; then 19199 lt_prog_compiler_pic=-Kconform_pic 19200 fi 19201 ;; 19202 19203 *) 19204 lt_prog_compiler_pic='-fPIC' 19205 ;; 19206 esac 19207 19208 case $cc_basename in 19209 nvcc*) # Cuda Compiler Driver 2.2 19210 lt_prog_compiler_wl='-Xlinker ' 19211 if test -n "$lt_prog_compiler_pic"; then 19212 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 19213 fi 19214 ;; 19215 esac 19216 else 19217 # PORTME Check for flag to pass linker flags through the system compiler. 19218 case $host_os in 19219 aix*) 19220 lt_prog_compiler_wl='-Wl,' 19221 if test ia64 = "$host_cpu"; then 19222 # AIX 5 now supports IA64 processor 19223 lt_prog_compiler_static='-Bstatic' 19224 else 19225 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 19226 fi 19227 ;; 19228 19229 darwin* | rhapsody*) 19230 # PIC is the default on this platform 19231 # Common symbols not allowed in MH_DYLIB files 19232 lt_prog_compiler_pic='-fno-common' 19233 case $cc_basename in 19234 nagfor*) 19235 # NAG Fortran compiler 19236 lt_prog_compiler_wl='-Wl,-Wl,,' 19237 lt_prog_compiler_pic='-PIC' 19238 lt_prog_compiler_static='-Bstatic' 19239 ;; 19240 esac 19241 ;; 19242 19243 mingw* | cygwin* | pw32* | os2* | cegcc*) 19244 # This hack is so that the source file can tell whether it is being 19245 # built for inclusion in a dll (and should export symbols for example). 19246 lt_prog_compiler_pic='-DDLL_EXPORT' 19247 case $host_os in 19248 os2*) 19249 lt_prog_compiler_static='$wl-static' 19250 ;; 19251 esac 19252 ;; 19253 19254 hpux9* | hpux10* | hpux11*) 19255 lt_prog_compiler_wl='-Wl,' 19256 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19257 # not for PA HP-UX. 19258 case $host_cpu in 19259 hppa*64*|ia64*) 19260 # +Z the default 19261 ;; 19262 *) 19263 lt_prog_compiler_pic='+Z' 19264 ;; 19265 esac 19266 # Is there a better lt_prog_compiler_static that works with the bundled CC? 19267 lt_prog_compiler_static='$wl-a ${wl}archive' 19268 ;; 19269 19270 irix5* | irix6* | nonstopux*) 19271 lt_prog_compiler_wl='-Wl,' 19272 # PIC (with -KPIC) is the default. 19273 lt_prog_compiler_static='-non_shared' 19274 ;; 19275 19276 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19277 case $cc_basename in 19278 # old Intel for x86_64, which still supported -KPIC. 19279 ecc*) 19280 lt_prog_compiler_wl='-Wl,' 19281 lt_prog_compiler_pic='-KPIC' 19282 lt_prog_compiler_static='-static' 19283 ;; 19284 # icc used to be incompatible with GCC. 19285 # ICC 10 doesn't accept -KPIC any more. 19286 icc* | ifort*) 19287 lt_prog_compiler_wl='-Wl,' 19288 lt_prog_compiler_pic='-fPIC' 19289 lt_prog_compiler_static='-static' 19290 ;; 19291 # Lahey Fortran 8.1. 19292 lf95*) 19293 lt_prog_compiler_wl='-Wl,' 19294 lt_prog_compiler_pic='--shared' 19295 lt_prog_compiler_static='--static' 19296 ;; 19297 nagfor*) 19298 # NAG Fortran compiler 19299 lt_prog_compiler_wl='-Wl,-Wl,,' 19300 lt_prog_compiler_pic='-PIC' 19301 lt_prog_compiler_static='-Bstatic' 19302 ;; 19303 tcc*) 19304 # Fabrice Bellard et al's Tiny C Compiler 19305 lt_prog_compiler_wl='-Wl,' 19306 lt_prog_compiler_pic='-fPIC' 19307 lt_prog_compiler_static='-static' 19308 ;; 19309 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 19310 # Portland Group compilers (*not* the Pentium gcc compiler, 19311 # which looks to be a dead project) 19312 lt_prog_compiler_wl='-Wl,' 19313 lt_prog_compiler_pic='-fpic' 19314 lt_prog_compiler_static='-Bstatic' 19315 ;; 19316 ccc*) 19317 lt_prog_compiler_wl='-Wl,' 19318 # All Alpha code is PIC. 19319 lt_prog_compiler_static='-non_shared' 19320 ;; 19321 xl* | bgxl* | bgf* | mpixl*) 19322 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 19323 lt_prog_compiler_wl='-Wl,' 19324 lt_prog_compiler_pic='-qpic' 19325 lt_prog_compiler_static='-qstaticlink' 19326 ;; 19327 *) 19328 case `$CC -V 2>&1 | sed 5q` in 19329 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 19330 # Sun Fortran 8.3 passes all unrecognized flags to the linker 19331 lt_prog_compiler_pic='-KPIC' 19332 lt_prog_compiler_static='-Bstatic' 19333 lt_prog_compiler_wl='' 19334 ;; 19335 *Sun\ F* | *Sun*Fortran*) 19336 lt_prog_compiler_pic='-KPIC' 19337 lt_prog_compiler_static='-Bstatic' 19338 lt_prog_compiler_wl='-Qoption ld ' 19339 ;; 19340 *Sun\ C*) 19341 # Sun C 5.9 19342 lt_prog_compiler_pic='-KPIC' 19343 lt_prog_compiler_static='-Bstatic' 19344 lt_prog_compiler_wl='-Wl,' 19345 ;; 19346 *Intel*\ [CF]*Compiler*) 19347 lt_prog_compiler_wl='-Wl,' 19348 lt_prog_compiler_pic='-fPIC' 19349 lt_prog_compiler_static='-static' 19350 ;; 19351 *Portland\ Group*) 19352 lt_prog_compiler_wl='-Wl,' 19353 lt_prog_compiler_pic='-fpic' 19354 lt_prog_compiler_static='-Bstatic' 19355 ;; 19356 esac 19357 ;; 19358 esac 19359 ;; 19360 19361 newsos6) 19362 lt_prog_compiler_pic='-KPIC' 19363 lt_prog_compiler_static='-Bstatic' 19364 ;; 19365 19366 *nto* | *qnx*) 19367 # QNX uses GNU C++, but need to define -shared option too, otherwise 19368 # it will coredump. 19369 lt_prog_compiler_pic='-fPIC -shared' 19370 ;; 19371 19372 osf3* | osf4* | osf5*) 19373 lt_prog_compiler_wl='-Wl,' 19374 # All OSF/1 code is PIC. 19375 lt_prog_compiler_static='-non_shared' 19376 ;; 19377 19378 rdos*) 19379 lt_prog_compiler_static='-non_shared' 19380 ;; 19381 19382 solaris*) 19383 lt_prog_compiler_pic='-KPIC' 19384 lt_prog_compiler_static='-Bstatic' 19385 case $cc_basename in 19386 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 19387 lt_prog_compiler_wl='-Qoption ld ';; 19388 *) 19389 lt_prog_compiler_wl='-Wl,';; 19390 esac 19391 ;; 19392 19393 sunos4*) 19394 lt_prog_compiler_wl='-Qoption ld ' 19395 lt_prog_compiler_pic='-PIC' 19396 lt_prog_compiler_static='-Bstatic' 19397 ;; 19398 19399 sysv4 | sysv4.2uw2* | sysv4.3*) 19400 lt_prog_compiler_wl='-Wl,' 19401 lt_prog_compiler_pic='-KPIC' 19402 lt_prog_compiler_static='-Bstatic' 19403 ;; 19404 19405 sysv4*MP*) 19406 if test -d /usr/nec; then 19407 lt_prog_compiler_pic='-Kconform_pic' 19408 lt_prog_compiler_static='-Bstatic' 19409 fi 19410 ;; 19411 19412 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19413 lt_prog_compiler_wl='-Wl,' 19414 lt_prog_compiler_pic='-KPIC' 19415 lt_prog_compiler_static='-Bstatic' 19416 ;; 19417 19418 unicos*) 19419 lt_prog_compiler_wl='-Wl,' 19420 lt_prog_compiler_can_build_shared=no 19421 ;; 19422 19423 uts4*) 19424 lt_prog_compiler_pic='-pic' 19425 lt_prog_compiler_static='-Bstatic' 19426 ;; 19427 19428 *) 19429 lt_prog_compiler_can_build_shared=no 19430 ;; 19431 esac 19432 fi 19433 19434case $host_os in 19435 # For platforms that do not support PIC, -DPIC is meaningless: 19436 *djgpp*) 19437 lt_prog_compiler_pic= 19438 ;; 19439 *) 19440 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 19441 ;; 19442esac 19443 19444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 19445$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 19446if ${lt_cv_prog_compiler_pic+:} false; then : 19447 $as_echo_n "(cached) " >&6 19448else 19449 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 19450fi 19451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 19452$as_echo "$lt_cv_prog_compiler_pic" >&6; } 19453lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 19454 19455# 19456# Check to make sure the PIC flag actually works. 19457# 19458if test -n "$lt_prog_compiler_pic"; then 19459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 19460$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 19461if ${lt_cv_prog_compiler_pic_works+:} false; then : 19462 $as_echo_n "(cached) " >&6 19463else 19464 lt_cv_prog_compiler_pic_works=no 19465 ac_outfile=conftest.$ac_objext 19466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19467 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 19468 # Insert the option either (1) after the last *FLAGS variable, or 19469 # (2) before a word containing "conftest.", or (3) at the end. 19470 # Note that $ac_compile itself does not contain backslashes and begins 19471 # with a dollar sign (not a hyphen), so the echo should work correctly. 19472 # The option is referenced via a variable to avoid confusing sed. 19473 lt_compile=`echo "$ac_compile" | $SED \ 19474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19476 -e 's:$: $lt_compiler_flag:'` 19477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19478 (eval "$lt_compile" 2>conftest.err) 19479 ac_status=$? 19480 cat conftest.err >&5 19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19482 if (exit $ac_status) && test -s "$ac_outfile"; then 19483 # The compiler can only warn and ignore the option if not recognized 19484 # So say no if there are warnings other than the usual output. 19485 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19487 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19488 lt_cv_prog_compiler_pic_works=yes 19489 fi 19490 fi 19491 $RM conftest* 19492 19493fi 19494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 19495$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 19496 19497if test yes = "$lt_cv_prog_compiler_pic_works"; then 19498 case $lt_prog_compiler_pic in 19499 "" | " "*) ;; 19500 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 19501 esac 19502else 19503 lt_prog_compiler_pic= 19504 lt_prog_compiler_can_build_shared=no 19505fi 19506 19507fi 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519# 19520# Check to make sure the static flag actually works. 19521# 19522wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 19523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19524$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19525if ${lt_cv_prog_compiler_static_works+:} false; then : 19526 $as_echo_n "(cached) " >&6 19527else 19528 lt_cv_prog_compiler_static_works=no 19529 save_LDFLAGS=$LDFLAGS 19530 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19531 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19532 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19533 # The linker can only warn and ignore the option if not recognized 19534 # So say no if there are warnings 19535 if test -s conftest.err; then 19536 # Append any errors to the config.log. 19537 cat conftest.err 1>&5 19538 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19540 if diff conftest.exp conftest.er2 >/dev/null; then 19541 lt_cv_prog_compiler_static_works=yes 19542 fi 19543 else 19544 lt_cv_prog_compiler_static_works=yes 19545 fi 19546 fi 19547 $RM -r conftest* 19548 LDFLAGS=$save_LDFLAGS 19549 19550fi 19551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 19552$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 19553 19554if test yes = "$lt_cv_prog_compiler_static_works"; then 19555 : 19556else 19557 lt_prog_compiler_static= 19558fi 19559 19560 19561 19562 19563 19564 19565 19566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19567$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19568if ${lt_cv_prog_compiler_c_o+:} false; then : 19569 $as_echo_n "(cached) " >&6 19570else 19571 lt_cv_prog_compiler_c_o=no 19572 $RM -r conftest 2>/dev/null 19573 mkdir conftest 19574 cd conftest 19575 mkdir out 19576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19577 19578 lt_compiler_flag="-o out/conftest2.$ac_objext" 19579 # Insert the option either (1) after the last *FLAGS variable, or 19580 # (2) before a word containing "conftest.", or (3) at the end. 19581 # Note that $ac_compile itself does not contain backslashes and begins 19582 # with a dollar sign (not a hyphen), so the echo should work correctly. 19583 lt_compile=`echo "$ac_compile" | $SED \ 19584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19586 -e 's:$: $lt_compiler_flag:'` 19587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19588 (eval "$lt_compile" 2>out/conftest.err) 19589 ac_status=$? 19590 cat out/conftest.err >&5 19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19592 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19593 then 19594 # The compiler can only warn and ignore the option if not recognized 19595 # So say no if there are warnings 19596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19599 lt_cv_prog_compiler_c_o=yes 19600 fi 19601 fi 19602 chmod u+w . 2>&5 19603 $RM conftest* 19604 # SGI C++ compiler will create directory out/ii_files/ for 19605 # template instantiation 19606 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19607 $RM out/* && rmdir out 19608 cd .. 19609 $RM -r conftest 19610 $RM conftest* 19611 19612fi 19613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 19614$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 19615 19616 19617 19618 19619 19620 19621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19622$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19623if ${lt_cv_prog_compiler_c_o+:} false; then : 19624 $as_echo_n "(cached) " >&6 19625else 19626 lt_cv_prog_compiler_c_o=no 19627 $RM -r conftest 2>/dev/null 19628 mkdir conftest 19629 cd conftest 19630 mkdir out 19631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19632 19633 lt_compiler_flag="-o out/conftest2.$ac_objext" 19634 # Insert the option either (1) after the last *FLAGS variable, or 19635 # (2) before a word containing "conftest.", or (3) at the end. 19636 # Note that $ac_compile itself does not contain backslashes and begins 19637 # with a dollar sign (not a hyphen), so the echo should work correctly. 19638 lt_compile=`echo "$ac_compile" | $SED \ 19639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19641 -e 's:$: $lt_compiler_flag:'` 19642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19643 (eval "$lt_compile" 2>out/conftest.err) 19644 ac_status=$? 19645 cat out/conftest.err >&5 19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19647 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19648 then 19649 # The compiler can only warn and ignore the option if not recognized 19650 # So say no if there are warnings 19651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19652 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19653 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19654 lt_cv_prog_compiler_c_o=yes 19655 fi 19656 fi 19657 chmod u+w . 2>&5 19658 $RM conftest* 19659 # SGI C++ compiler will create directory out/ii_files/ for 19660 # template instantiation 19661 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19662 $RM out/* && rmdir out 19663 cd .. 19664 $RM -r conftest 19665 $RM conftest* 19666 19667fi 19668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 19669$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 19670 19671 19672 19673 19674hard_links=nottested 19675if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 19676 # do not overwrite the value of need_locks provided by the user 19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 19678$as_echo_n "checking if we can lock with hard links... " >&6; } 19679 hard_links=yes 19680 $RM conftest* 19681 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19682 touch conftest.a 19683 ln conftest.a conftest.b 2>&5 || hard_links=no 19684 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 19686$as_echo "$hard_links" >&6; } 19687 if test no = "$hard_links"; then 19688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 19689$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 19690 need_locks=warn 19691 fi 19692else 19693 need_locks=no 19694fi 19695 19696 19697 19698 19699 19700 19701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19702$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19703 19704 runpath_var= 19705 allow_undefined_flag= 19706 always_export_symbols=no 19707 archive_cmds= 19708 archive_expsym_cmds= 19709 compiler_needs_object=no 19710 enable_shared_with_static_runtimes=no 19711 export_dynamic_flag_spec= 19712 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19713 hardcode_automatic=no 19714 hardcode_direct=no 19715 hardcode_direct_absolute=no 19716 hardcode_libdir_flag_spec= 19717 hardcode_libdir_separator= 19718 hardcode_minus_L=no 19719 hardcode_shlibpath_var=unsupported 19720 inherit_rpath=no 19721 link_all_deplibs=unknown 19722 module_cmds= 19723 module_expsym_cmds= 19724 old_archive_from_new_cmds= 19725 old_archive_from_expsyms_cmds= 19726 thread_safe_flag_spec= 19727 whole_archive_flag_spec= 19728 # include_expsyms should be a list of space-separated symbols to be *always* 19729 # included in the symbol list 19730 include_expsyms= 19731 # exclude_expsyms can be an extended regexp of symbols to exclude 19732 # it will be wrapped by ' (' and ')$', so one must not match beginning or 19733 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 19734 # as well as any symbol that contains 'd'. 19735 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19736 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 19737 # platforms (ab)use it in PIC code, but their linkers get confused if 19738 # the symbol is explicitly referenced. Since portable code cannot 19739 # rely on this symbol name, it's probably fine to never include it in 19740 # preloaded symbol tables. 19741 # Exclude shared library initialization/finalization symbols. 19742 extract_expsyms_cmds= 19743 19744 case $host_os in 19745 cygwin* | mingw* | pw32* | cegcc*) 19746 # FIXME: the MSVC++ port hasn't been tested in a loooong time 19747 # When not using gcc, we currently assume that we are using 19748 # Microsoft Visual C++. 19749 if test yes != "$GCC"; then 19750 with_gnu_ld=no 19751 fi 19752 ;; 19753 interix*) 19754 # we just hope/assume this is gcc and not c89 (= MSVC++) 19755 with_gnu_ld=yes 19756 ;; 19757 openbsd* | bitrig*) 19758 with_gnu_ld=no 19759 ;; 19760 esac 19761 19762 ld_shlibs=yes 19763 19764 # On some targets, GNU ld is compatible enough with the native linker 19765 # that we're better off using the native interface for both. 19766 lt_use_gnu_ld_interface=no 19767 if test yes = "$with_gnu_ld"; then 19768 case $host_os in 19769 aix*) 19770 # The AIX port of GNU ld has always aspired to compatibility 19771 # with the native linker. However, as the warning in the GNU ld 19772 # block says, versions before 2.19.5* couldn't really create working 19773 # shared libraries, regardless of the interface used. 19774 case `$LD -v 2>&1` in 19775 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 19776 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 19777 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 19778 *) 19779 lt_use_gnu_ld_interface=yes 19780 ;; 19781 esac 19782 ;; 19783 *) 19784 lt_use_gnu_ld_interface=yes 19785 ;; 19786 esac 19787 fi 19788 19789 if test yes = "$lt_use_gnu_ld_interface"; then 19790 # If archive_cmds runs LD, not CC, wlarc should be empty 19791 wlarc='$wl' 19792 19793 # Set some defaults for GNU ld with shared library support. These 19794 # are reset later if shared libraries are not supported. Putting them 19795 # here allows them to be overridden if necessary. 19796 runpath_var=LD_RUN_PATH 19797 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19798 export_dynamic_flag_spec='$wl--export-dynamic' 19799 # ancient GNU ld didn't support --whole-archive et. al. 19800 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 19801 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 19802 else 19803 whole_archive_flag_spec= 19804 fi 19805 supports_anon_versioning=no 19806 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 19807 *GNU\ gold*) supports_anon_versioning=yes ;; 19808 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 19809 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 19810 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 19811 *\ 2.11.*) ;; # other 2.11 versions 19812 *) supports_anon_versioning=yes ;; 19813 esac 19814 19815 # See if GNU ld supports shared libraries. 19816 case $host_os in 19817 aix[3-9]*) 19818 # On AIX/PPC, the GNU linker is very broken 19819 if test ia64 != "$host_cpu"; then 19820 ld_shlibs=no 19821 cat <<_LT_EOF 1>&2 19822 19823*** Warning: the GNU linker, at least up to release 2.19, is reported 19824*** to be unable to reliably create shared libraries on AIX. 19825*** Therefore, libtool is disabling shared libraries support. If you 19826*** really care for shared libraries, you may want to install binutils 19827*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 19828*** You will then need to restart the configuration process. 19829 19830_LT_EOF 19831 fi 19832 ;; 19833 19834 amigaos*) 19835 case $host_cpu in 19836 powerpc) 19837 # see comment about AmigaOS4 .so support 19838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19839 archive_expsym_cmds='' 19840 ;; 19841 m68k) 19842 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)' 19843 hardcode_libdir_flag_spec='-L$libdir' 19844 hardcode_minus_L=yes 19845 ;; 19846 esac 19847 ;; 19848 19849 beos*) 19850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19851 allow_undefined_flag=unsupported 19852 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19853 # support --undefined. This deserves some investigation. FIXME 19854 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19855 else 19856 ld_shlibs=no 19857 fi 19858 ;; 19859 19860 cygwin* | mingw* | pw32* | cegcc*) 19861 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 19862 # as there is no search path for DLLs. 19863 hardcode_libdir_flag_spec='-L$libdir' 19864 export_dynamic_flag_spec='$wl--export-all-symbols' 19865 allow_undefined_flag=unsupported 19866 always_export_symbols=no 19867 enable_shared_with_static_runtimes=yes 19868 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' 19869 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 19870 19871 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19873 # If the export-symbols file already is a .def file, use it as 19874 # is; otherwise, prepend EXPORTS... 19875 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19876 cp $export_symbols $output_objdir/$soname.def; 19877 else 19878 echo EXPORTS > $output_objdir/$soname.def; 19879 cat $export_symbols >> $output_objdir/$soname.def; 19880 fi~ 19881 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19882 else 19883 ld_shlibs=no 19884 fi 19885 ;; 19886 19887 haiku*) 19888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19889 link_all_deplibs=yes 19890 ;; 19891 19892 os2*) 19893 hardcode_libdir_flag_spec='-L$libdir' 19894 hardcode_minus_L=yes 19895 allow_undefined_flag=unsupported 19896 shrext_cmds=.dll 19897 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19898 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19899 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19900 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19901 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19902 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19903 emximp -o $lib $output_objdir/$libname.def' 19904 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19905 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19906 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19907 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19908 prefix_cmds="$SED"~ 19909 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19910 prefix_cmds="$prefix_cmds -e 1d"; 19911 fi~ 19912 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19913 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19914 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19915 emximp -o $lib $output_objdir/$libname.def' 19916 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19917 enable_shared_with_static_runtimes=yes 19918 ;; 19919 19920 interix[3-9]*) 19921 hardcode_direct=no 19922 hardcode_shlibpath_var=no 19923 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 19924 export_dynamic_flag_spec='$wl-E' 19925 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19926 # Instead, shared libraries are loaded at an image base (0x10000000 by 19927 # default) and relocated if they conflict, which is a slow very memory 19928 # consuming and fragmenting process. To avoid this, we pick a random, 19929 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19930 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19931 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 19932 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' 19933 ;; 19934 19935 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 19936 tmp_diet=no 19937 if test linux-dietlibc = "$host_os"; then 19938 case $cc_basename in 19939 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 19940 esac 19941 fi 19942 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 19943 && test no = "$tmp_diet" 19944 then 19945 tmp_addflag=' $pic_flag' 19946 tmp_sharedflag='-shared' 19947 case $cc_basename,$host_cpu in 19948 pgcc*) # Portland Group C compiler 19949 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' 19950 tmp_addflag=' $pic_flag' 19951 ;; 19952 pgf77* | pgf90* | pgf95* | pgfortran*) 19953 # Portland Group f77 and f90 compilers 19954 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' 19955 tmp_addflag=' $pic_flag -Mnomain' ;; 19956 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 19957 tmp_addflag=' -i_dynamic' ;; 19958 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 19959 tmp_addflag=' -i_dynamic -nofor_main' ;; 19960 ifc* | ifort*) # Intel Fortran compiler 19961 tmp_addflag=' -nofor_main' ;; 19962 lf95*) # Lahey Fortran 8.1 19963 whole_archive_flag_spec= 19964 tmp_sharedflag='--shared' ;; 19965 nagfor*) # NAGFOR 5.3 19966 tmp_sharedflag='-Wl,-shared' ;; 19967 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 19968 tmp_sharedflag='-qmkshrobj' 19969 tmp_addflag= ;; 19970 nvcc*) # Cuda Compiler Driver 2.2 19971 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' 19972 compiler_needs_object=yes 19973 ;; 19974 esac 19975 case `$CC -V 2>&1 | sed 5q` in 19976 *Sun\ C*) # Sun C 5.9 19977 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' 19978 compiler_needs_object=yes 19979 tmp_sharedflag='-G' ;; 19980 *Sun\ F*) # Sun Fortran 8.3 19981 tmp_sharedflag='-G' ;; 19982 esac 19983 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19984 19985 if test yes = "$supports_anon_versioning"; then 19986 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 19987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19988 echo "local: *; };" >> $output_objdir/$libname.ver~ 19989 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 19990 fi 19991 19992 case $cc_basename in 19993 tcc*) 19994 export_dynamic_flag_spec='-rdynamic' 19995 ;; 19996 xlf* | bgf* | bgxlf* | mpixlf*) 19997 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 19998 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 19999 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20000 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 20001 if test yes = "$supports_anon_versioning"; then 20002 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 20003 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 20004 echo "local: *; };" >> $output_objdir/$libname.ver~ 20005 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 20006 fi 20007 ;; 20008 esac 20009 else 20010 ld_shlibs=no 20011 fi 20012 ;; 20013 20014 netbsd*) 20015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20016 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 20017 wlarc= 20018 else 20019 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20020 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 20021 fi 20022 ;; 20023 20024 solaris*) 20025 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 20026 ld_shlibs=no 20027 cat <<_LT_EOF 1>&2 20028 20029*** Warning: The releases 2.8.* of the GNU linker cannot reliably 20030*** create shared libraries on Solaris systems. Therefore, libtool 20031*** is disabling shared libraries support. We urge you to upgrade GNU 20032*** binutils to release 2.9.1 or newer. Another option is to modify 20033*** your PATH or compiler configuration so that the native linker is 20034*** used, and then restart. 20035 20036_LT_EOF 20037 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20038 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20039 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 20040 else 20041 ld_shlibs=no 20042 fi 20043 ;; 20044 20045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 20046 case `$LD -v 2>&1` in 20047 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 20048 ld_shlibs=no 20049 cat <<_LT_EOF 1>&2 20050 20051*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 20052*** reliably create shared libraries on SCO systems. Therefore, libtool 20053*** is disabling shared libraries support. We urge you to upgrade GNU 20054*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 20055*** your PATH or compiler configuration so that the native linker is 20056*** used, and then restart. 20057 20058_LT_EOF 20059 ;; 20060 *) 20061 # For security reasons, it is highly recommended that you always 20062 # use absolute paths for naming shared libraries, and exclude the 20063 # DT_RUNPATH tag from executables and libraries. But doing so 20064 # requires that you compile everything twice, which is a pain. 20065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20066 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20068 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 20069 else 20070 ld_shlibs=no 20071 fi 20072 ;; 20073 esac 20074 ;; 20075 20076 sunos4*) 20077 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20078 wlarc= 20079 hardcode_direct=yes 20080 hardcode_shlibpath_var=no 20081 ;; 20082 20083 *) 20084 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20085 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20086 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 20087 else 20088 ld_shlibs=no 20089 fi 20090 ;; 20091 esac 20092 20093 if test no = "$ld_shlibs"; then 20094 runpath_var= 20095 hardcode_libdir_flag_spec= 20096 export_dynamic_flag_spec= 20097 whole_archive_flag_spec= 20098 fi 20099 else 20100 # PORTME fill in a description of your system's linker (not GNU ld) 20101 case $host_os in 20102 aix3*) 20103 allow_undefined_flag=unsupported 20104 always_export_symbols=yes 20105 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' 20106 # Note: this linker hardcodes the directories in LIBPATH if there 20107 # are no directories specified by -L. 20108 hardcode_minus_L=yes 20109 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 20110 # Neither direct hardcoding nor static linking is supported with a 20111 # broken collect2. 20112 hardcode_direct=unsupported 20113 fi 20114 ;; 20115 20116 aix[4-9]*) 20117 if test ia64 = "$host_cpu"; then 20118 # On IA64, the linker does run time linking by default, so we don't 20119 # have to do anything special. 20120 aix_use_runtimelinking=no 20121 exp_sym_flag='-Bexport' 20122 no_entry_flag= 20123 else 20124 # If we're using GNU nm, then we don't want the "-C" option. 20125 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 20126 # Without the "-l" option, or with the "-B" option, AIX nm treats 20127 # weak defined symbols like other global defined symbols, whereas 20128 # GNU nm marks them as "W". 20129 # While the 'weak' keyword is ignored in the Export File, we need 20130 # it in the Import File for the 'aix-soname' feature, so we have 20131 # to replace the "-B" option with "-P" for AIX nm. 20132 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 20133 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 20134 else 20135 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 20136 fi 20137 aix_use_runtimelinking=no 20138 20139 # Test if we are trying to use run time linking or normal 20140 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 20141 # have runtime linking enabled, and use it for executables. 20142 # For shared libraries, we enable/disable runtime linking 20143 # depending on the kind of the shared library created - 20144 # when "with_aix_soname,aix_use_runtimelinking" is: 20145 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 20146 # "aix,yes" lib.so shared, rtl:yes, for executables 20147 # lib.a static archive 20148 # "both,no" lib.so.V(shr.o) shared, rtl:yes 20149 # lib.a(lib.so.V) shared, rtl:no, for executables 20150 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 20151 # lib.a(lib.so.V) shared, rtl:no 20152 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 20153 # lib.a static archive 20154 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 20155 for ld_flag in $LDFLAGS; do 20156 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 20157 aix_use_runtimelinking=yes 20158 break 20159 fi 20160 done 20161 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 20162 # With aix-soname=svr4, we create the lib.so.V shared archives only, 20163 # so we don't have lib.a shared libs to link our executables. 20164 # We have to force runtime linking in this case. 20165 aix_use_runtimelinking=yes 20166 LDFLAGS="$LDFLAGS -Wl,-brtl" 20167 fi 20168 ;; 20169 esac 20170 20171 exp_sym_flag='-bexport' 20172 no_entry_flag='-bnoentry' 20173 fi 20174 20175 # When large executables or shared objects are built, AIX ld can 20176 # have problems creating the table of contents. If linking a library 20177 # or program results in "error TOC overflow" add -mminimal-toc to 20178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 20179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 20180 20181 archive_cmds='' 20182 hardcode_direct=yes 20183 hardcode_direct_absolute=yes 20184 hardcode_libdir_separator=':' 20185 link_all_deplibs=yes 20186 file_list_spec='$wl-f,' 20187 case $with_aix_soname,$aix_use_runtimelinking in 20188 aix,*) ;; # traditional, no import file 20189 svr4,* | *,yes) # use import file 20190 # The Import File defines what to hardcode. 20191 hardcode_direct=no 20192 hardcode_direct_absolute=no 20193 ;; 20194 esac 20195 20196 if test yes = "$GCC"; then 20197 case $host_os in aix4.[012]|aix4.[012].*) 20198 # We only want to do this on AIX 4.2 and lower, the check 20199 # below for broken collect2 doesn't work under 4.3+ 20200 collect2name=`$CC -print-prog-name=collect2` 20201 if test -f "$collect2name" && 20202 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 20203 then 20204 # We have reworked collect2 20205 : 20206 else 20207 # We have old collect2 20208 hardcode_direct=unsupported 20209 # It fails to find uninstalled libraries when the uninstalled 20210 # path is not listed in the libpath. Setting hardcode_minus_L 20211 # to unsupported forces relinking 20212 hardcode_minus_L=yes 20213 hardcode_libdir_flag_spec='-L$libdir' 20214 hardcode_libdir_separator= 20215 fi 20216 ;; 20217 esac 20218 shared_flag='-shared' 20219 if test yes = "$aix_use_runtimelinking"; then 20220 shared_flag="$shared_flag "'$wl-G' 20221 fi 20222 # Need to ensure runtime linking is disabled for the traditional 20223 # shared library, or the linker may eventually find shared libraries 20224 # /with/ Import File - we do not want to mix them. 20225 shared_flag_aix='-shared' 20226 shared_flag_svr4='-shared $wl-G' 20227 else 20228 # not using gcc 20229 if test ia64 = "$host_cpu"; then 20230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20231 # chokes on -Wl,-G. The following line is correct: 20232 shared_flag='-G' 20233 else 20234 if test yes = "$aix_use_runtimelinking"; then 20235 shared_flag='$wl-G' 20236 else 20237 shared_flag='$wl-bM:SRE' 20238 fi 20239 shared_flag_aix='$wl-bM:SRE' 20240 shared_flag_svr4='$wl-G' 20241 fi 20242 fi 20243 20244 export_dynamic_flag_spec='$wl-bexpall' 20245 # It seems that -bexpall does not export symbols beginning with 20246 # underscore (_), so it is better to generate a list of symbols to export. 20247 always_export_symbols=yes 20248 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 20249 # Warning - without using the other runtime loading flags (-brtl), 20250 # -berok will link without error, but may produce a broken library. 20251 allow_undefined_flag='-berok' 20252 # Determine the default libpath from the value encoded in an 20253 # empty executable. 20254 if test set = "${lt_cv_aix_libpath+set}"; then 20255 aix_libpath=$lt_cv_aix_libpath 20256else 20257 if ${lt_cv_aix_libpath_+:} false; then : 20258 $as_echo_n "(cached) " >&6 20259else 20260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20261/* end confdefs.h. */ 20262 20263int 20264main () 20265{ 20266 20267 ; 20268 return 0; 20269} 20270_ACEOF 20271if ac_fn_c_try_link "$LINENO"; then : 20272 20273 lt_aix_libpath_sed=' 20274 /Import File Strings/,/^$/ { 20275 /^0/ { 20276 s/^0 *\([^ ]*\) *$/\1/ 20277 p 20278 } 20279 }' 20280 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20281 # Check for a 64-bit object if we didn't find anything. 20282 if test -z "$lt_cv_aix_libpath_"; then 20283 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20284 fi 20285fi 20286rm -f core conftest.err conftest.$ac_objext \ 20287 conftest$ac_exeext conftest.$ac_ext 20288 if test -z "$lt_cv_aix_libpath_"; then 20289 lt_cv_aix_libpath_=/usr/lib:/lib 20290 fi 20291 20292fi 20293 20294 aix_libpath=$lt_cv_aix_libpath_ 20295fi 20296 20297 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 20298 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 20299 else 20300 if test ia64 = "$host_cpu"; then 20301 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 20302 allow_undefined_flag="-z nodefs" 20303 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" 20304 else 20305 # Determine the default libpath from the value encoded in an 20306 # empty executable. 20307 if test set = "${lt_cv_aix_libpath+set}"; then 20308 aix_libpath=$lt_cv_aix_libpath 20309else 20310 if ${lt_cv_aix_libpath_+:} false; then : 20311 $as_echo_n "(cached) " >&6 20312else 20313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20314/* end confdefs.h. */ 20315 20316int 20317main () 20318{ 20319 20320 ; 20321 return 0; 20322} 20323_ACEOF 20324if ac_fn_c_try_link "$LINENO"; then : 20325 20326 lt_aix_libpath_sed=' 20327 /Import File Strings/,/^$/ { 20328 /^0/ { 20329 s/^0 *\([^ ]*\) *$/\1/ 20330 p 20331 } 20332 }' 20333 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20334 # Check for a 64-bit object if we didn't find anything. 20335 if test -z "$lt_cv_aix_libpath_"; then 20336 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20337 fi 20338fi 20339rm -f core conftest.err conftest.$ac_objext \ 20340 conftest$ac_exeext conftest.$ac_ext 20341 if test -z "$lt_cv_aix_libpath_"; then 20342 lt_cv_aix_libpath_=/usr/lib:/lib 20343 fi 20344 20345fi 20346 20347 aix_libpath=$lt_cv_aix_libpath_ 20348fi 20349 20350 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 20351 # Warning - without using the other run time loading flags, 20352 # -berok will link without error, but may produce a broken library. 20353 no_undefined_flag=' $wl-bernotok' 20354 allow_undefined_flag=' $wl-berok' 20355 if test yes = "$with_gnu_ld"; then 20356 # We only use this code for GNU lds that support --whole-archive. 20357 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 20358 else 20359 # Exported symbols can be pulled into shared objects from archives 20360 whole_archive_flag_spec='$convenience' 20361 fi 20362 archive_cmds_need_lc=yes 20363 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 20364 # -brtl affects multiple linker settings, -berok does not and is overridden later 20365 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 20366 if test svr4 != "$with_aix_soname"; then 20367 # This is similar to how AIX traditionally builds its shared libraries. 20368 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 20369 fi 20370 if test aix != "$with_aix_soname"; then 20371 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 20372 else 20373 # used by -dlpreopen to get the symbols 20374 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 20375 fi 20376 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 20377 fi 20378 fi 20379 ;; 20380 20381 amigaos*) 20382 case $host_cpu in 20383 powerpc) 20384 # see comment about AmigaOS4 .so support 20385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20386 archive_expsym_cmds='' 20387 ;; 20388 m68k) 20389 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)' 20390 hardcode_libdir_flag_spec='-L$libdir' 20391 hardcode_minus_L=yes 20392 ;; 20393 esac 20394 ;; 20395 20396 bsdi[45]*) 20397 export_dynamic_flag_spec=-rdynamic 20398 ;; 20399 20400 cygwin* | mingw* | pw32* | cegcc*) 20401 # When not using gcc, we currently assume that we are using 20402 # Microsoft Visual C++. 20403 # hardcode_libdir_flag_spec is actually meaningless, as there is 20404 # no search path for DLLs. 20405 case $cc_basename in 20406 cl*) 20407 # Native MSVC 20408 hardcode_libdir_flag_spec=' ' 20409 allow_undefined_flag=unsupported 20410 always_export_symbols=yes 20411 file_list_spec='@' 20412 # Tell ltmain to make .lib files, not .a files. 20413 libext=lib 20414 # Tell ltmain to make .dll files, not .so files. 20415 shrext_cmds=.dll 20416 # FIXME: Setting linknames here is a bad hack. 20417 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 20418 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 20419 cp "$export_symbols" "$output_objdir/$soname.def"; 20420 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 20421 else 20422 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 20423 fi~ 20424 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 20425 linknames=' 20426 # The linker will not automatically build a static lib if we build a DLL. 20427 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 20428 enable_shared_with_static_runtimes=yes 20429 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 20430 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 20431 # Don't use ranlib 20432 old_postinstall_cmds='chmod 644 $oldlib' 20433 postlink_cmds='lt_outputfile="@OUTPUT@"~ 20434 lt_tool_outputfile="@TOOL_OUTPUT@"~ 20435 case $lt_outputfile in 20436 *.exe|*.EXE) ;; 20437 *) 20438 lt_outputfile=$lt_outputfile.exe 20439 lt_tool_outputfile=$lt_tool_outputfile.exe 20440 ;; 20441 esac~ 20442 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 20443 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 20444 $RM "$lt_outputfile.manifest"; 20445 fi' 20446 ;; 20447 *) 20448 # Assume MSVC wrapper 20449 hardcode_libdir_flag_spec=' ' 20450 allow_undefined_flag=unsupported 20451 # Tell ltmain to make .lib files, not .a files. 20452 libext=lib 20453 # Tell ltmain to make .dll files, not .so files. 20454 shrext_cmds=.dll 20455 # FIXME: Setting linknames here is a bad hack. 20456 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 20457 # The linker will automatically build a .lib file if we build a DLL. 20458 old_archive_from_new_cmds='true' 20459 # FIXME: Should let the user specify the lib program. 20460 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 20461 enable_shared_with_static_runtimes=yes 20462 ;; 20463 esac 20464 ;; 20465 20466 darwin* | rhapsody*) 20467 20468 20469 archive_cmds_need_lc=no 20470 hardcode_direct=no 20471 hardcode_automatic=yes 20472 hardcode_shlibpath_var=unsupported 20473 if test yes = "$lt_cv_ld_force_load"; then 20474 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\"`' 20475 20476 else 20477 whole_archive_flag_spec='' 20478 fi 20479 link_all_deplibs=yes 20480 allow_undefined_flag=$_lt_dar_allow_undefined 20481 case $cc_basename in 20482 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 20483 *) _lt_dar_can_shared=$GCC ;; 20484 esac 20485 if test yes = "$_lt_dar_can_shared"; then 20486 output_verbose_link_cmd=func_echo_all 20487 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 20488 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 20489 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" 20490 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" 20491 20492 else 20493 ld_shlibs=no 20494 fi 20495 20496 ;; 20497 20498 dgux*) 20499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20500 hardcode_libdir_flag_spec='-L$libdir' 20501 hardcode_shlibpath_var=no 20502 ;; 20503 20504 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 20505 # support. Future versions do this automatically, but an explicit c++rt0.o 20506 # does not break anything, and helps significantly (at the cost of a little 20507 # extra space). 20508 freebsd2.2*) 20509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 20510 hardcode_libdir_flag_spec='-R$libdir' 20511 hardcode_direct=yes 20512 hardcode_shlibpath_var=no 20513 ;; 20514 20515 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 20516 freebsd2.*) 20517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20518 hardcode_direct=yes 20519 hardcode_minus_L=yes 20520 hardcode_shlibpath_var=no 20521 ;; 20522 20523 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 20524 freebsd* | dragonfly*) 20525 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20526 hardcode_libdir_flag_spec='-R$libdir' 20527 hardcode_direct=yes 20528 hardcode_shlibpath_var=no 20529 ;; 20530 20531 hpux9*) 20532 if test yes = "$GCC"; then 20533 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 20534 else 20535 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 20536 fi 20537 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 20538 hardcode_libdir_separator=: 20539 hardcode_direct=yes 20540 20541 # hardcode_minus_L: Not really in the search PATH, 20542 # but as the default location of the library. 20543 hardcode_minus_L=yes 20544 export_dynamic_flag_spec='$wl-E' 20545 ;; 20546 20547 hpux10*) 20548 if test yes,no = "$GCC,$with_gnu_ld"; then 20549 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20550 else 20551 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20552 fi 20553 if test no = "$with_gnu_ld"; then 20554 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 20555 hardcode_libdir_separator=: 20556 hardcode_direct=yes 20557 hardcode_direct_absolute=yes 20558 export_dynamic_flag_spec='$wl-E' 20559 # hardcode_minus_L: Not really in the search PATH, 20560 # but as the default location of the library. 20561 hardcode_minus_L=yes 20562 fi 20563 ;; 20564 20565 hpux11*) 20566 if test yes,no = "$GCC,$with_gnu_ld"; then 20567 case $host_cpu in 20568 hppa*64*) 20569 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20570 ;; 20571 ia64*) 20572 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20573 ;; 20574 *) 20575 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20576 ;; 20577 esac 20578 else 20579 case $host_cpu in 20580 hppa*64*) 20581 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20582 ;; 20583 ia64*) 20584 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20585 ;; 20586 *) 20587 20588 # Older versions of the 11.00 compiler do not understand -b yet 20589 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 20591$as_echo_n "checking if $CC understands -b... " >&6; } 20592if ${lt_cv_prog_compiler__b+:} false; then : 20593 $as_echo_n "(cached) " >&6 20594else 20595 lt_cv_prog_compiler__b=no 20596 save_LDFLAGS=$LDFLAGS 20597 LDFLAGS="$LDFLAGS -b" 20598 echo "$lt_simple_link_test_code" > conftest.$ac_ext 20599 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 20600 # The linker can only warn and ignore the option if not recognized 20601 # So say no if there are warnings 20602 if test -s conftest.err; then 20603 # Append any errors to the config.log. 20604 cat conftest.err 1>&5 20605 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 20606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20607 if diff conftest.exp conftest.er2 >/dev/null; then 20608 lt_cv_prog_compiler__b=yes 20609 fi 20610 else 20611 lt_cv_prog_compiler__b=yes 20612 fi 20613 fi 20614 $RM -r conftest* 20615 LDFLAGS=$save_LDFLAGS 20616 20617fi 20618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 20619$as_echo "$lt_cv_prog_compiler__b" >&6; } 20620 20621if test yes = "$lt_cv_prog_compiler__b"; then 20622 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20623else 20624 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20625fi 20626 20627 ;; 20628 esac 20629 fi 20630 if test no = "$with_gnu_ld"; then 20631 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 20632 hardcode_libdir_separator=: 20633 20634 case $host_cpu in 20635 hppa*64*|ia64*) 20636 hardcode_direct=no 20637 hardcode_shlibpath_var=no 20638 ;; 20639 *) 20640 hardcode_direct=yes 20641 hardcode_direct_absolute=yes 20642 export_dynamic_flag_spec='$wl-E' 20643 20644 # hardcode_minus_L: Not really in the search PATH, 20645 # but as the default location of the library. 20646 hardcode_minus_L=yes 20647 ;; 20648 esac 20649 fi 20650 ;; 20651 20652 irix5* | irix6* | nonstopux*) 20653 if test yes = "$GCC"; then 20654 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' 20655 # Try to use the -exported_symbol ld option, if it does not 20656 # work, assume that -exports_file does not work either and 20657 # implicitly export all symbols. 20658 # This should be the same for all languages, so no per-tag cache variable. 20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 20660$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 20661if ${lt_cv_irix_exported_symbol+:} false; then : 20662 $as_echo_n "(cached) " >&6 20663else 20664 save_LDFLAGS=$LDFLAGS 20665 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 20666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20667/* end confdefs.h. */ 20668int foo (void) { return 0; } 20669_ACEOF 20670if ac_fn_c_try_link "$LINENO"; then : 20671 lt_cv_irix_exported_symbol=yes 20672else 20673 lt_cv_irix_exported_symbol=no 20674fi 20675rm -f core conftest.err conftest.$ac_objext \ 20676 conftest$ac_exeext conftest.$ac_ext 20677 LDFLAGS=$save_LDFLAGS 20678fi 20679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 20680$as_echo "$lt_cv_irix_exported_symbol" >&6; } 20681 if test yes = "$lt_cv_irix_exported_symbol"; then 20682 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' 20683 fi 20684 else 20685 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' 20686 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' 20687 fi 20688 archive_cmds_need_lc='no' 20689 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20690 hardcode_libdir_separator=: 20691 inherit_rpath=yes 20692 link_all_deplibs=yes 20693 ;; 20694 20695 linux*) 20696 case $cc_basename in 20697 tcc*) 20698 # Fabrice Bellard et al's Tiny C Compiler 20699 ld_shlibs=yes 20700 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20701 ;; 20702 esac 20703 ;; 20704 20705 netbsd*) 20706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 20708 else 20709 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 20710 fi 20711 hardcode_libdir_flag_spec='-R$libdir' 20712 hardcode_direct=yes 20713 hardcode_shlibpath_var=no 20714 ;; 20715 20716 newsos6) 20717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20718 hardcode_direct=yes 20719 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20720 hardcode_libdir_separator=: 20721 hardcode_shlibpath_var=no 20722 ;; 20723 20724 *nto* | *qnx*) 20725 ;; 20726 20727 openbsd* | bitrig*) 20728 if test -f /usr/libexec/ld.so; then 20729 hardcode_direct=yes 20730 hardcode_shlibpath_var=no 20731 hardcode_direct_absolute=yes 20732 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 20733 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20734 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 20735 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 20736 export_dynamic_flag_spec='$wl-E' 20737 else 20738 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20739 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 20740 fi 20741 else 20742 ld_shlibs=no 20743 fi 20744 ;; 20745 20746 os2*) 20747 hardcode_libdir_flag_spec='-L$libdir' 20748 hardcode_minus_L=yes 20749 allow_undefined_flag=unsupported 20750 shrext_cmds=.dll 20751 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20752 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20753 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20754 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20755 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 20756 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20757 emximp -o $lib $output_objdir/$libname.def' 20758 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20759 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20760 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20761 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20762 prefix_cmds="$SED"~ 20763 if test EXPORTS = "`$SED 1q $export_symbols`"; then 20764 prefix_cmds="$prefix_cmds -e 1d"; 20765 fi~ 20766 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 20767 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 20768 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20769 emximp -o $lib $output_objdir/$libname.def' 20770 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 20771 enable_shared_with_static_runtimes=yes 20772 ;; 20773 20774 osf3*) 20775 if test yes = "$GCC"; then 20776 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 20777 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' 20778 else 20779 allow_undefined_flag=' -expect_unresolved \*' 20780 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' 20781 fi 20782 archive_cmds_need_lc='no' 20783 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20784 hardcode_libdir_separator=: 20785 ;; 20786 20787 osf4* | osf5*) # as osf3* with the addition of -msym flag 20788 if test yes = "$GCC"; then 20789 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 20790 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' 20791 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20792 else 20793 allow_undefined_flag=' -expect_unresolved \*' 20794 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' 20795 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~ 20796 $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' 20797 20798 # Both c and cxx compiler support -rpath directly 20799 hardcode_libdir_flag_spec='-rpath $libdir' 20800 fi 20801 archive_cmds_need_lc='no' 20802 hardcode_libdir_separator=: 20803 ;; 20804 20805 solaris*) 20806 no_undefined_flag=' -z defs' 20807 if test yes = "$GCC"; then 20808 wlarc='$wl' 20809 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20810 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20811 $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' 20812 else 20813 case `$CC -V 2>&1` in 20814 *"Compilers 5.0"*) 20815 wlarc='' 20816 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 20817 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20818 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 20819 ;; 20820 *) 20821 wlarc='$wl' 20822 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 20823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20824 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 20825 ;; 20826 esac 20827 fi 20828 hardcode_libdir_flag_spec='-R$libdir' 20829 hardcode_shlibpath_var=no 20830 case $host_os in 20831 solaris2.[0-5] | solaris2.[0-5].*) ;; 20832 *) 20833 # The compiler driver will combine and reorder linker options, 20834 # but understands '-z linker_flag'. GCC discards it without '$wl', 20835 # but is careful enough not to reorder. 20836 # Supported since Solaris 2.6 (maybe 2.5.1?) 20837 if test yes = "$GCC"; then 20838 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 20839 else 20840 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 20841 fi 20842 ;; 20843 esac 20844 link_all_deplibs=yes 20845 ;; 20846 20847 sunos4*) 20848 if test sequent = "$host_vendor"; then 20849 # Use $CC to link under sequent, because it throws in some extra .o 20850 # files that make .init and .fini sections work. 20851 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 20852 else 20853 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 20854 fi 20855 hardcode_libdir_flag_spec='-L$libdir' 20856 hardcode_direct=yes 20857 hardcode_minus_L=yes 20858 hardcode_shlibpath_var=no 20859 ;; 20860 20861 sysv4) 20862 case $host_vendor in 20863 sni) 20864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20865 hardcode_direct=yes # is this really true??? 20866 ;; 20867 siemens) 20868 ## LD is ld it makes a PLAMLIB 20869 ## CC just makes a GrossModule. 20870 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 20871 reload_cmds='$CC -r -o $output$reload_objs' 20872 hardcode_direct=no 20873 ;; 20874 motorola) 20875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20876 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 20877 ;; 20878 esac 20879 runpath_var='LD_RUN_PATH' 20880 hardcode_shlibpath_var=no 20881 ;; 20882 20883 sysv4.3*) 20884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20885 hardcode_shlibpath_var=no 20886 export_dynamic_flag_spec='-Bexport' 20887 ;; 20888 20889 sysv4*MP*) 20890 if test -d /usr/nec; then 20891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20892 hardcode_shlibpath_var=no 20893 runpath_var=LD_RUN_PATH 20894 hardcode_runpath_var=yes 20895 ld_shlibs=yes 20896 fi 20897 ;; 20898 20899 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20900 no_undefined_flag='$wl-z,text' 20901 archive_cmds_need_lc=no 20902 hardcode_shlibpath_var=no 20903 runpath_var='LD_RUN_PATH' 20904 20905 if test yes = "$GCC"; then 20906 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20907 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20908 else 20909 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20910 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20911 fi 20912 ;; 20913 20914 sysv5* | sco3.2v5* | sco5v6*) 20915 # Note: We CANNOT use -z defs as we might desire, because we do not 20916 # link with -lc, and that would cause any symbols used from libc to 20917 # always be unresolved, which means just about no library would 20918 # ever link correctly. If we're not using GNU ld we use -z text 20919 # though, which does catch some bad symbols but isn't as heavy-handed 20920 # as -z defs. 20921 no_undefined_flag='$wl-z,text' 20922 allow_undefined_flag='$wl-z,nodefs' 20923 archive_cmds_need_lc=no 20924 hardcode_shlibpath_var=no 20925 hardcode_libdir_flag_spec='$wl-R,$libdir' 20926 hardcode_libdir_separator=':' 20927 link_all_deplibs=yes 20928 export_dynamic_flag_spec='$wl-Bexport' 20929 runpath_var='LD_RUN_PATH' 20930 20931 if test yes = "$GCC"; then 20932 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20933 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20934 else 20935 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20936 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20937 fi 20938 ;; 20939 20940 uts4*) 20941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20942 hardcode_libdir_flag_spec='-L$libdir' 20943 hardcode_shlibpath_var=no 20944 ;; 20945 20946 *) 20947 ld_shlibs=no 20948 ;; 20949 esac 20950 20951 if test sni = "$host_vendor"; then 20952 case $host in 20953 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 20954 export_dynamic_flag_spec='$wl-Blargedynsym' 20955 ;; 20956 esac 20957 fi 20958 fi 20959 20960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 20961$as_echo "$ld_shlibs" >&6; } 20962test no = "$ld_shlibs" && can_build_shared=no 20963 20964with_gnu_ld=$with_gnu_ld 20965 20966 20967 20968 20969 20970 20971 20972 20973 20974 20975 20976 20977 20978 20979 20980# 20981# Do we need to explicitly link libc? 20982# 20983case "x$archive_cmds_need_lc" in 20984x|xyes) 20985 # Assume -lc should be added 20986 archive_cmds_need_lc=yes 20987 20988 if test yes,yes = "$GCC,$enable_shared"; then 20989 case $archive_cmds in 20990 *'~'*) 20991 # FIXME: we may have to deal with multi-command sequences. 20992 ;; 20993 '$CC '*) 20994 # Test whether the compiler implicitly links with -lc since on some 20995 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20996 # to ld, don't add -lc before -lgcc. 20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 20998$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 20999if ${lt_cv_archive_cmds_need_lc+:} false; then : 21000 $as_echo_n "(cached) " >&6 21001else 21002 $RM conftest* 21003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21004 21005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21006 (eval $ac_compile) 2>&5 21007 ac_status=$? 21008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21009 test $ac_status = 0; } 2>conftest.err; then 21010 soname=conftest 21011 lib=conftest 21012 libobjs=conftest.$ac_objext 21013 deplibs= 21014 wl=$lt_prog_compiler_wl 21015 pic_flag=$lt_prog_compiler_pic 21016 compiler_flags=-v 21017 linker_flags=-v 21018 verstring= 21019 output_objdir=. 21020 libname=conftest 21021 lt_save_allow_undefined_flag=$allow_undefined_flag 21022 allow_undefined_flag= 21023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 21024 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 21025 ac_status=$? 21026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21027 test $ac_status = 0; } 21028 then 21029 lt_cv_archive_cmds_need_lc=no 21030 else 21031 lt_cv_archive_cmds_need_lc=yes 21032 fi 21033 allow_undefined_flag=$lt_save_allow_undefined_flag 21034 else 21035 cat conftest.err 1>&5 21036 fi 21037 $RM conftest* 21038 21039fi 21040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 21041$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 21042 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 21043 ;; 21044 esac 21045 fi 21046 ;; 21047esac 21048 21049 21050 21051 21052 21053 21054 21055 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 21094 21095 21096 21097 21098 21099 21100 21101 21102 21103 21104 21105 21106 21107 21108 21109 21110 21111 21112 21113 21114 21115 21116 21117 21118 21119 21120 21121 21122 21123 21124 21125 21126 21127 21128 21129 21130 21131 21132 21133 21134 21135 21136 21137 21138 21139 21140 21141 21142 21143 21144 21145 21146 21147 21148 21149 21150 21151 21152 21153 21154 21155 21156 21157 21158 21159 21160 21161 21162 21163 21164 21165 21166 21167 21168 21169 21170 21171 21172 21173 21174 21175 21176 21177 21178 21179 21180 21181 21182 21183 21184 21185 21186 21187 21188 21189 21190 21191 21192 21193 21194 21195 21196 21197 21198 21199 21200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 21201$as_echo_n "checking dynamic linker characteristics... " >&6; } 21202 21203if test yes = "$GCC"; then 21204 case $host_os in 21205 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 21206 *) lt_awk_arg='/^libraries:/' ;; 21207 esac 21208 case $host_os in 21209 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 21210 *) lt_sed_strip_eq='s|=/|/|g' ;; 21211 esac 21212 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 21213 case $lt_search_path_spec in 21214 *\;*) 21215 # if the path contains ";" then we assume it to be the separator 21216 # otherwise default to the standard path separator (i.e. ":") - it is 21217 # assumed that no part of a normal pathname contains ";" but that should 21218 # okay in the real world where ";" in dirpaths is itself problematic. 21219 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 21220 ;; 21221 *) 21222 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 21223 ;; 21224 esac 21225 # Ok, now we have the path, separated by spaces, we can step through it 21226 # and add multilib dir if necessary... 21227 lt_tmp_lt_search_path_spec= 21228 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 21229 # ...but if some path component already ends with the multilib dir we assume 21230 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 21231 case "$lt_multi_os_dir; $lt_search_path_spec " in 21232 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 21233 lt_multi_os_dir= 21234 ;; 21235 esac 21236 for lt_sys_path in $lt_search_path_spec; do 21237 if test -d "$lt_sys_path$lt_multi_os_dir"; then 21238 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 21239 elif test -n "$lt_multi_os_dir"; then 21240 test -d "$lt_sys_path" && \ 21241 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 21242 fi 21243 done 21244 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 21245BEGIN {RS = " "; FS = "/|\n";} { 21246 lt_foo = ""; 21247 lt_count = 0; 21248 for (lt_i = NF; lt_i > 0; lt_i--) { 21249 if ($lt_i != "" && $lt_i != ".") { 21250 if ($lt_i == "..") { 21251 lt_count++; 21252 } else { 21253 if (lt_count == 0) { 21254 lt_foo = "/" $lt_i lt_foo; 21255 } else { 21256 lt_count--; 21257 } 21258 } 21259 } 21260 } 21261 if (lt_foo != "") { lt_freq[lt_foo]++; } 21262 if (lt_freq[lt_foo] == 1) { print lt_foo; } 21263}'` 21264 # AWK program above erroneously prepends '/' to C:/dos/paths 21265 # for these hosts. 21266 case $host_os in 21267 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 21268 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 21269 esac 21270 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 21271else 21272 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21273fi 21274library_names_spec= 21275libname_spec='lib$name' 21276soname_spec= 21277shrext_cmds=.so 21278postinstall_cmds= 21279postuninstall_cmds= 21280finish_cmds= 21281finish_eval= 21282shlibpath_var= 21283shlibpath_overrides_runpath=unknown 21284version_type=none 21285dynamic_linker="$host_os ld.so" 21286sys_lib_dlsearch_path_spec="/lib /usr/lib" 21287need_lib_prefix=unknown 21288hardcode_into_libs=no 21289 21290# when you set need_version to no, make sure it does not cause -set_version 21291# flags to be left without arguments 21292need_version=unknown 21293 21294 21295 21296case $host_os in 21297aix3*) 21298 version_type=linux # correct to gnu/linux during the next big refactor 21299 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 21300 shlibpath_var=LIBPATH 21301 21302 # AIX 3 has no versioning support, so we append a major version to the name. 21303 soname_spec='$libname$release$shared_ext$major' 21304 ;; 21305 21306aix[4-9]*) 21307 version_type=linux # correct to gnu/linux during the next big refactor 21308 need_lib_prefix=no 21309 need_version=no 21310 hardcode_into_libs=yes 21311 if test ia64 = "$host_cpu"; then 21312 # AIX 5 supports IA64 21313 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 21314 shlibpath_var=LD_LIBRARY_PATH 21315 else 21316 # With GCC up to 2.95.x, collect2 would create an import file 21317 # for dependence libraries. The import file would start with 21318 # the line '#! .'. This would cause the generated library to 21319 # depend on '.', always an invalid library. This was fixed in 21320 # development snapshots of GCC prior to 3.0. 21321 case $host_os in 21322 aix4 | aix4.[01] | aix4.[01].*) 21323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21324 echo ' yes ' 21325 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 21326 : 21327 else 21328 can_build_shared=no 21329 fi 21330 ;; 21331 esac 21332 # Using Import Files as archive members, it is possible to support 21333 # filename-based versioning of shared library archives on AIX. While 21334 # this would work for both with and without runtime linking, it will 21335 # prevent static linking of such archives. So we do filename-based 21336 # shared library versioning with .so extension only, which is used 21337 # when both runtime linking and shared linking is enabled. 21338 # Unfortunately, runtime linking may impact performance, so we do 21339 # not want this to be the default eventually. Also, we use the 21340 # versioned .so libs for executables only if there is the -brtl 21341 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 21342 # To allow for filename-based versioning support, we need to create 21343 # libNAME.so.V as an archive file, containing: 21344 # *) an Import File, referring to the versioned filename of the 21345 # archive as well as the shared archive member, telling the 21346 # bitwidth (32 or 64) of that shared object, and providing the 21347 # list of exported symbols of that shared object, eventually 21348 # decorated with the 'weak' keyword 21349 # *) the shared object with the F_LOADONLY flag set, to really avoid 21350 # it being seen by the linker. 21351 # At run time we better use the real file rather than another symlink, 21352 # but for link time we create the symlink libNAME.so -> libNAME.so.V 21353 21354 case $with_aix_soname,$aix_use_runtimelinking in 21355 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 21356 # soname into executable. Probably we can add versioning support to 21357 # collect2, so additional links can be useful in future. 21358 aix,yes) # traditional libtool 21359 dynamic_linker='AIX unversionable lib.so' 21360 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21361 # instead of lib<name>.a to let people know that these are not 21362 # typical AIX shared libraries. 21363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21364 ;; 21365 aix,no) # traditional AIX only 21366 dynamic_linker='AIX lib.a(lib.so.V)' 21367 # We preserve .a as extension for shared libraries through AIX4.2 21368 # and later when we are not doing run time linking. 21369 library_names_spec='$libname$release.a $libname.a' 21370 soname_spec='$libname$release$shared_ext$major' 21371 ;; 21372 svr4,*) # full svr4 only 21373 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 21374 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21375 # We do not specify a path in Import Files, so LIBPATH fires. 21376 shlibpath_overrides_runpath=yes 21377 ;; 21378 *,yes) # both, prefer svr4 21379 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 21380 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21381 # unpreferred sharedlib libNAME.a needs extra handling 21382 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 21383 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 21384 # We do not specify a path in Import Files, so LIBPATH fires. 21385 shlibpath_overrides_runpath=yes 21386 ;; 21387 *,no) # both, prefer aix 21388 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 21389 library_names_spec='$libname$release.a $libname.a' 21390 soname_spec='$libname$release$shared_ext$major' 21391 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 21392 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 21393 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 21394 ;; 21395 esac 21396 shlibpath_var=LIBPATH 21397 fi 21398 ;; 21399 21400amigaos*) 21401 case $host_cpu in 21402 powerpc) 21403 # Since July 2007 AmigaOS4 officially supports .so libraries. 21404 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21406 ;; 21407 m68k) 21408 library_names_spec='$libname.ixlibrary $libname.a' 21409 # Create ${libname}_ixlibrary.a entries in /sys/libs. 21410 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 21411 ;; 21412 esac 21413 ;; 21414 21415beos*) 21416 library_names_spec='$libname$shared_ext' 21417 dynamic_linker="$host_os ld.so" 21418 shlibpath_var=LIBRARY_PATH 21419 ;; 21420 21421bsdi[45]*) 21422 version_type=linux # correct to gnu/linux during the next big refactor 21423 need_version=no 21424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21425 soname_spec='$libname$release$shared_ext$major' 21426 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 21427 shlibpath_var=LD_LIBRARY_PATH 21428 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 21429 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 21430 # the default ld.so.conf also contains /usr/contrib/lib and 21431 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 21432 # libtool to hard-code these into programs 21433 ;; 21434 21435cygwin* | mingw* | pw32* | cegcc*) 21436 version_type=windows 21437 shrext_cmds=.dll 21438 need_version=no 21439 need_lib_prefix=no 21440 21441 case $GCC,$cc_basename in 21442 yes,*) 21443 # gcc 21444 library_names_spec='$libname.dll.a' 21445 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21446 postinstall_cmds='base_file=`basename \$file`~ 21447 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21448 dldir=$destdir/`dirname \$dlpath`~ 21449 test -d \$dldir || mkdir -p \$dldir~ 21450 $install_prog $dir/$dlname \$dldir/$dlname~ 21451 chmod a+x \$dldir/$dlname~ 21452 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21453 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21454 fi' 21455 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21456 dlpath=$dir/\$dldll~ 21457 $RM \$dlpath' 21458 shlibpath_overrides_runpath=yes 21459 21460 case $host_os in 21461 cygwin*) 21462 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 21463 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21464 21465 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 21466 ;; 21467 mingw* | cegcc*) 21468 # MinGW DLLs use traditional 'lib' prefix 21469 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21470 ;; 21471 pw32*) 21472 # pw32 DLLs use 'pw' prefix rather than 'lib' 21473 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21474 ;; 21475 esac 21476 dynamic_linker='Win32 ld.exe' 21477 ;; 21478 21479 *,cl*) 21480 # Native MSVC 21481 libname_spec='$name' 21482 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21483 library_names_spec='$libname.dll.lib' 21484 21485 case $build_os in 21486 mingw*) 21487 sys_lib_search_path_spec= 21488 lt_save_ifs=$IFS 21489 IFS=';' 21490 for lt_path in $LIB 21491 do 21492 IFS=$lt_save_ifs 21493 # Let DOS variable expansion print the short 8.3 style file name. 21494 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 21495 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 21496 done 21497 IFS=$lt_save_ifs 21498 # Convert to MSYS style. 21499 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 21500 ;; 21501 cygwin*) 21502 # Convert to unix form, then to dos form, then back to unix form 21503 # but this time dos style (no spaces!) so that the unix form looks 21504 # like /cygdrive/c/PROGRA~1:/cygdr... 21505 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 21506 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 21507 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21508 ;; 21509 *) 21510 sys_lib_search_path_spec=$LIB 21511 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 21512 # It is most probably a Windows format PATH. 21513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 21514 else 21515 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21516 fi 21517 # FIXME: find the short name or the path components, as spaces are 21518 # common. (e.g. "Program Files" -> "PROGRA~1") 21519 ;; 21520 esac 21521 21522 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21523 postinstall_cmds='base_file=`basename \$file`~ 21524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21525 dldir=$destdir/`dirname \$dlpath`~ 21526 test -d \$dldir || mkdir -p \$dldir~ 21527 $install_prog $dir/$dlname \$dldir/$dlname' 21528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21529 dlpath=$dir/\$dldll~ 21530 $RM \$dlpath' 21531 shlibpath_overrides_runpath=yes 21532 dynamic_linker='Win32 link.exe' 21533 ;; 21534 21535 *) 21536 # Assume MSVC wrapper 21537 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 21538 dynamic_linker='Win32 ld.exe' 21539 ;; 21540 esac 21541 # FIXME: first we should search . and the directory the executable is in 21542 shlibpath_var=PATH 21543 ;; 21544 21545darwin* | rhapsody*) 21546 dynamic_linker="$host_os dyld" 21547 version_type=darwin 21548 need_lib_prefix=no 21549 need_version=no 21550 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 21551 soname_spec='$libname$release$major$shared_ext' 21552 shlibpath_overrides_runpath=yes 21553 shlibpath_var=DYLD_LIBRARY_PATH 21554 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 21555 21556 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 21557 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 21558 ;; 21559 21560dgux*) 21561 version_type=linux # correct to gnu/linux during the next big refactor 21562 need_lib_prefix=no 21563 need_version=no 21564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21565 soname_spec='$libname$release$shared_ext$major' 21566 shlibpath_var=LD_LIBRARY_PATH 21567 ;; 21568 21569freebsd* | dragonfly*) 21570 # DragonFly does not have aout. When/if they implement a new 21571 # versioning mechanism, adjust this. 21572 if test -x /usr/bin/objformat; then 21573 objformat=`/usr/bin/objformat` 21574 else 21575 case $host_os in 21576 freebsd[23].*) objformat=aout ;; 21577 *) objformat=elf ;; 21578 esac 21579 fi 21580 version_type=freebsd-$objformat 21581 case $version_type in 21582 freebsd-elf*) 21583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21584 soname_spec='$libname$release$shared_ext$major' 21585 need_version=no 21586 need_lib_prefix=no 21587 ;; 21588 freebsd-*) 21589 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21590 need_version=yes 21591 ;; 21592 esac 21593 shlibpath_var=LD_LIBRARY_PATH 21594 case $host_os in 21595 freebsd2.*) 21596 shlibpath_overrides_runpath=yes 21597 ;; 21598 freebsd3.[01]* | freebsdelf3.[01]*) 21599 shlibpath_overrides_runpath=yes 21600 hardcode_into_libs=yes 21601 ;; 21602 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 21603 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 21604 shlibpath_overrides_runpath=no 21605 hardcode_into_libs=yes 21606 ;; 21607 *) # from 4.6 on, and DragonFly 21608 shlibpath_overrides_runpath=yes 21609 hardcode_into_libs=yes 21610 ;; 21611 esac 21612 ;; 21613 21614haiku*) 21615 version_type=linux # correct to gnu/linux during the next big refactor 21616 need_lib_prefix=no 21617 need_version=no 21618 dynamic_linker="$host_os runtime_loader" 21619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21620 soname_spec='$libname$release$shared_ext$major' 21621 shlibpath_var=LIBRARY_PATH 21622 shlibpath_overrides_runpath=no 21623 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 21624 hardcode_into_libs=yes 21625 ;; 21626 21627hpux9* | hpux10* | hpux11*) 21628 # Give a soname corresponding to the major version so that dld.sl refuses to 21629 # link against other versions. 21630 version_type=sunos 21631 need_lib_prefix=no 21632 need_version=no 21633 case $host_cpu in 21634 ia64*) 21635 shrext_cmds='.so' 21636 hardcode_into_libs=yes 21637 dynamic_linker="$host_os dld.so" 21638 shlibpath_var=LD_LIBRARY_PATH 21639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21641 soname_spec='$libname$release$shared_ext$major' 21642 if test 32 = "$HPUX_IA64_MODE"; then 21643 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 21644 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 21645 else 21646 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 21647 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 21648 fi 21649 ;; 21650 hppa*64*) 21651 shrext_cmds='.sl' 21652 hardcode_into_libs=yes 21653 dynamic_linker="$host_os dld.sl" 21654 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 21655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21657 soname_spec='$libname$release$shared_ext$major' 21658 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 21659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21660 ;; 21661 *) 21662 shrext_cmds='.sl' 21663 dynamic_linker="$host_os dld.sl" 21664 shlibpath_var=SHLIB_PATH 21665 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 21666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21667 soname_spec='$libname$release$shared_ext$major' 21668 ;; 21669 esac 21670 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 21671 postinstall_cmds='chmod 555 $lib' 21672 # or fails outright, so override atomically: 21673 install_override_mode=555 21674 ;; 21675 21676interix[3-9]*) 21677 version_type=linux # correct to gnu/linux during the next big refactor 21678 need_lib_prefix=no 21679 need_version=no 21680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21681 soname_spec='$libname$release$shared_ext$major' 21682 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 21683 shlibpath_var=LD_LIBRARY_PATH 21684 shlibpath_overrides_runpath=no 21685 hardcode_into_libs=yes 21686 ;; 21687 21688irix5* | irix6* | nonstopux*) 21689 case $host_os in 21690 nonstopux*) version_type=nonstopux ;; 21691 *) 21692 if test yes = "$lt_cv_prog_gnu_ld"; then 21693 version_type=linux # correct to gnu/linux during the next big refactor 21694 else 21695 version_type=irix 21696 fi ;; 21697 esac 21698 need_lib_prefix=no 21699 need_version=no 21700 soname_spec='$libname$release$shared_ext$major' 21701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 21702 case $host_os in 21703 irix5* | nonstopux*) 21704 libsuff= shlibsuff= 21705 ;; 21706 *) 21707 case $LD in # libtool.m4 will add one of these switches to LD 21708 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21709 libsuff= shlibsuff= libmagic=32-bit;; 21710 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21711 libsuff=32 shlibsuff=N32 libmagic=N32;; 21712 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21713 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21714 *) libsuff= shlibsuff= libmagic=never-match;; 21715 esac 21716 ;; 21717 esac 21718 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21719 shlibpath_overrides_runpath=no 21720 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 21721 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 21722 hardcode_into_libs=yes 21723 ;; 21724 21725# No shared lib support for Linux oldld, aout, or coff. 21726linux*oldld* | linux*aout* | linux*coff*) 21727 dynamic_linker=no 21728 ;; 21729 21730linux*android*) 21731 version_type=none # Android doesn't support versioned libraries. 21732 need_lib_prefix=no 21733 need_version=no 21734 library_names_spec='$libname$release$shared_ext' 21735 soname_spec='$libname$release$shared_ext' 21736 finish_cmds= 21737 shlibpath_var=LD_LIBRARY_PATH 21738 shlibpath_overrides_runpath=yes 21739 21740 # This implies no fast_install, which is unacceptable. 21741 # Some rework will be needed to allow for fast_install 21742 # before this can be enabled. 21743 hardcode_into_libs=yes 21744 21745 dynamic_linker='Android linker' 21746 # Don't embed -rpath directories since the linker doesn't support them. 21747 hardcode_libdir_flag_spec='-L$libdir' 21748 ;; 21749 21750# This must be glibc/ELF. 21751linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21752 version_type=linux # correct to gnu/linux during the next big refactor 21753 need_lib_prefix=no 21754 need_version=no 21755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21756 soname_spec='$libname$release$shared_ext$major' 21757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21758 shlibpath_var=LD_LIBRARY_PATH 21759 shlibpath_overrides_runpath=no 21760 21761 # Some binutils ld are patched to set DT_RUNPATH 21762 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 21763 $as_echo_n "(cached) " >&6 21764else 21765 lt_cv_shlibpath_overrides_runpath=no 21766 save_LDFLAGS=$LDFLAGS 21767 save_libdir=$libdir 21768 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 21769 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 21770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21771/* end confdefs.h. */ 21772 21773int 21774main () 21775{ 21776 21777 ; 21778 return 0; 21779} 21780_ACEOF 21781if ac_fn_c_try_link "$LINENO"; then : 21782 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 21783 lt_cv_shlibpath_overrides_runpath=yes 21784fi 21785fi 21786rm -f core conftest.err conftest.$ac_objext \ 21787 conftest$ac_exeext conftest.$ac_ext 21788 LDFLAGS=$save_LDFLAGS 21789 libdir=$save_libdir 21790 21791fi 21792 21793 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 21794 21795 # This implies no fast_install, which is unacceptable. 21796 # Some rework will be needed to allow for fast_install 21797 # before this can be enabled. 21798 hardcode_into_libs=yes 21799 21800 # Ideally, we could use ldconfig to report *all* directores which are 21801 # searched for libraries, however this is still not possible. Aside from not 21802 # being certain /sbin/ldconfig is available, command 21803 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 21804 # even though it is searched at run-time. Try to do the best guess by 21805 # appending ld.so.conf contents (and includes) to the search path. 21806 if test -f /etc/ld.so.conf; then 21807 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' ' '` 21808 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 21809 fi 21810 21811 # We used to test for /lib/ld.so.1 and disable shared libraries on 21812 # powerpc, because MkLinux only supported shared libraries with the 21813 # GNU dynamic linker. Since this was broken with cross compilers, 21814 # most powerpc-linux boxes support dynamic linking these days and 21815 # people can always --disable-shared, the test was removed, and we 21816 # assume the GNU/Linux dynamic linker is in use. 21817 dynamic_linker='GNU/Linux ld.so' 21818 ;; 21819 21820netbsd*) 21821 version_type=sunos 21822 need_lib_prefix=no 21823 need_version=no 21824 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21825 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21827 dynamic_linker='NetBSD (a.out) ld.so' 21828 else 21829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21830 soname_spec='$libname$release$shared_ext$major' 21831 dynamic_linker='NetBSD ld.elf_so' 21832 fi 21833 shlibpath_var=LD_LIBRARY_PATH 21834 shlibpath_overrides_runpath=yes 21835 hardcode_into_libs=yes 21836 ;; 21837 21838newsos6) 21839 version_type=linux # correct to gnu/linux during the next big refactor 21840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21841 shlibpath_var=LD_LIBRARY_PATH 21842 shlibpath_overrides_runpath=yes 21843 ;; 21844 21845*nto* | *qnx*) 21846 version_type=qnx 21847 need_lib_prefix=no 21848 need_version=no 21849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21850 soname_spec='$libname$release$shared_ext$major' 21851 shlibpath_var=LD_LIBRARY_PATH 21852 shlibpath_overrides_runpath=no 21853 hardcode_into_libs=yes 21854 dynamic_linker='ldqnx.so' 21855 ;; 21856 21857openbsd* | bitrig*) 21858 version_type=sunos 21859 sys_lib_dlsearch_path_spec=/usr/lib 21860 need_lib_prefix=no 21861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 21862 need_version=no 21863 else 21864 need_version=yes 21865 fi 21866 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21868 shlibpath_var=LD_LIBRARY_PATH 21869 shlibpath_overrides_runpath=yes 21870 ;; 21871 21872os2*) 21873 libname_spec='$name' 21874 version_type=windows 21875 shrext_cmds=.dll 21876 need_version=no 21877 need_lib_prefix=no 21878 # OS/2 can only load a DLL with a base name of 8 characters or less. 21879 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 21880 v=$($ECHO $release$versuffix | tr -d .-); 21881 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 21882 $ECHO $n$v`$shared_ext' 21883 library_names_spec='${libname}_dll.$libext' 21884 dynamic_linker='OS/2 ld.exe' 21885 shlibpath_var=BEGINLIBPATH 21886 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21888 postinstall_cmds='base_file=`basename \$file`~ 21889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 21890 dldir=$destdir/`dirname \$dlpath`~ 21891 test -d \$dldir || mkdir -p \$dldir~ 21892 $install_prog $dir/$dlname \$dldir/$dlname~ 21893 chmod a+x \$dldir/$dlname~ 21894 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21895 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21896 fi' 21897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 21898 dlpath=$dir/\$dldll~ 21899 $RM \$dlpath' 21900 ;; 21901 21902osf3* | osf4* | osf5*) 21903 version_type=osf 21904 need_lib_prefix=no 21905 need_version=no 21906 soname_spec='$libname$release$shared_ext$major' 21907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21908 shlibpath_var=LD_LIBRARY_PATH 21909 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21911 ;; 21912 21913rdos*) 21914 dynamic_linker=no 21915 ;; 21916 21917solaris*) 21918 version_type=linux # correct to gnu/linux during the next big refactor 21919 need_lib_prefix=no 21920 need_version=no 21921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21922 soname_spec='$libname$release$shared_ext$major' 21923 shlibpath_var=LD_LIBRARY_PATH 21924 shlibpath_overrides_runpath=yes 21925 hardcode_into_libs=yes 21926 # ldd complains unless libraries are executable 21927 postinstall_cmds='chmod +x $lib' 21928 ;; 21929 21930sunos4*) 21931 version_type=sunos 21932 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21933 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21934 shlibpath_var=LD_LIBRARY_PATH 21935 shlibpath_overrides_runpath=yes 21936 if test yes = "$with_gnu_ld"; then 21937 need_lib_prefix=no 21938 fi 21939 need_version=yes 21940 ;; 21941 21942sysv4 | sysv4.3*) 21943 version_type=linux # correct to gnu/linux during the next big refactor 21944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21945 soname_spec='$libname$release$shared_ext$major' 21946 shlibpath_var=LD_LIBRARY_PATH 21947 case $host_vendor in 21948 sni) 21949 shlibpath_overrides_runpath=no 21950 need_lib_prefix=no 21951 runpath_var=LD_RUN_PATH 21952 ;; 21953 siemens) 21954 need_lib_prefix=no 21955 ;; 21956 motorola) 21957 need_lib_prefix=no 21958 need_version=no 21959 shlibpath_overrides_runpath=no 21960 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21961 ;; 21962 esac 21963 ;; 21964 21965sysv4*MP*) 21966 if test -d /usr/nec; then 21967 version_type=linux # correct to gnu/linux during the next big refactor 21968 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 21969 soname_spec='$libname$shared_ext.$major' 21970 shlibpath_var=LD_LIBRARY_PATH 21971 fi 21972 ;; 21973 21974sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 21975 version_type=sco 21976 need_lib_prefix=no 21977 need_version=no 21978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 21979 soname_spec='$libname$release$shared_ext$major' 21980 shlibpath_var=LD_LIBRARY_PATH 21981 shlibpath_overrides_runpath=yes 21982 hardcode_into_libs=yes 21983 if test yes = "$with_gnu_ld"; then 21984 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 21985 else 21986 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 21987 case $host_os in 21988 sco3.2v5*) 21989 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 21990 ;; 21991 esac 21992 fi 21993 sys_lib_dlsearch_path_spec='/usr/lib' 21994 ;; 21995 21996tpf*) 21997 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 21998 version_type=linux # correct to gnu/linux during the next big refactor 21999 need_lib_prefix=no 22000 need_version=no 22001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22002 shlibpath_var=LD_LIBRARY_PATH 22003 shlibpath_overrides_runpath=no 22004 hardcode_into_libs=yes 22005 ;; 22006 22007uts4*) 22008 version_type=linux # correct to gnu/linux during the next big refactor 22009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22010 soname_spec='$libname$release$shared_ext$major' 22011 shlibpath_var=LD_LIBRARY_PATH 22012 ;; 22013 22014*) 22015 dynamic_linker=no 22016 ;; 22017esac 22018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 22019$as_echo "$dynamic_linker" >&6; } 22020test no = "$dynamic_linker" && can_build_shared=no 22021 22022variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 22023if test yes = "$GCC"; then 22024 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 22025fi 22026 22027if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 22028 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 22029fi 22030 22031if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 22032 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 22033fi 22034 22035# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 22036configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 22037 22038# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 22039func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 22040 22041# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 22042configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 22043 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055 22056 22057 22058 22059 22060 22061 22062 22063 22064 22065 22066 22067 22068 22069 22070 22071 22072 22073 22074 22075 22076 22077 22078 22079 22080 22081 22082 22083 22084 22085 22086 22087 22088 22089 22090 22091 22092 22093 22094 22095 22096 22097 22098 22099 22100 22101 22102 22103 22104 22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 22116 22117 22118 22119 22120 22121 22122 22123 22124 22125 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135 22136 22137 22138 22139 22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 22141$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 22142hardcode_action= 22143if test -n "$hardcode_libdir_flag_spec" || 22144 test -n "$runpath_var" || 22145 test yes = "$hardcode_automatic"; then 22146 22147 # We can hardcode non-existent directories. 22148 if test no != "$hardcode_direct" && 22149 # If the only mechanism to avoid hardcoding is shlibpath_var, we 22150 # have to relink, otherwise we might link with an installed library 22151 # when we should be linking with a yet-to-be-installed one 22152 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 22153 test no != "$hardcode_minus_L"; then 22154 # Linking always hardcodes the temporary library directory. 22155 hardcode_action=relink 22156 else 22157 # We can link without hardcoding, and we can hardcode nonexisting dirs. 22158 hardcode_action=immediate 22159 fi 22160else 22161 # We cannot hardcode anything, or else we can only hardcode existing 22162 # directories. 22163 hardcode_action=unsupported 22164fi 22165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 22166$as_echo "$hardcode_action" >&6; } 22167 22168if test relink = "$hardcode_action" || 22169 test yes = "$inherit_rpath"; then 22170 # Fast installation is not supported 22171 enable_fast_install=no 22172elif test yes = "$shlibpath_overrides_runpath" || 22173 test no = "$enable_shared"; then 22174 # Fast installation is not necessary 22175 enable_fast_install=needless 22176fi 22177 22178 22179 22180 22181 22182 22183 if test yes != "$enable_dlopen"; then 22184 enable_dlopen=unknown 22185 enable_dlopen_self=unknown 22186 enable_dlopen_self_static=unknown 22187else 22188 lt_cv_dlopen=no 22189 lt_cv_dlopen_libs= 22190 22191 case $host_os in 22192 beos*) 22193 lt_cv_dlopen=load_add_on 22194 lt_cv_dlopen_libs= 22195 lt_cv_dlopen_self=yes 22196 ;; 22197 22198 mingw* | pw32* | cegcc*) 22199 lt_cv_dlopen=LoadLibrary 22200 lt_cv_dlopen_libs= 22201 ;; 22202 22203 cygwin*) 22204 lt_cv_dlopen=dlopen 22205 lt_cv_dlopen_libs= 22206 ;; 22207 22208 darwin*) 22209 # if libdl is installed we need to link against it 22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 22211$as_echo_n "checking for dlopen in -ldl... " >&6; } 22212if ${ac_cv_lib_dl_dlopen+:} false; then : 22213 $as_echo_n "(cached) " >&6 22214else 22215 ac_check_lib_save_LIBS=$LIBS 22216LIBS="-ldl $LIBS" 22217cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22218/* end confdefs.h. */ 22219 22220/* Override any GCC internal prototype to avoid an error. 22221 Use char because int might match the return type of a GCC 22222 builtin and then its argument prototype would still apply. */ 22223#ifdef __cplusplus 22224extern "C" 22225#endif 22226char dlopen (); 22227int 22228main () 22229{ 22230return dlopen (); 22231 ; 22232 return 0; 22233} 22234_ACEOF 22235if ac_fn_c_try_link "$LINENO"; then : 22236 ac_cv_lib_dl_dlopen=yes 22237else 22238 ac_cv_lib_dl_dlopen=no 22239fi 22240rm -f core conftest.err conftest.$ac_objext \ 22241 conftest$ac_exeext conftest.$ac_ext 22242LIBS=$ac_check_lib_save_LIBS 22243fi 22244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22245$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 22246if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 22247 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 22248else 22249 22250 lt_cv_dlopen=dyld 22251 lt_cv_dlopen_libs= 22252 lt_cv_dlopen_self=yes 22253 22254fi 22255 22256 ;; 22257 22258 tpf*) 22259 # Don't try to run any link tests for TPF. We know it's impossible 22260 # because TPF is a cross-compiler, and we know how we open DSOs. 22261 lt_cv_dlopen=dlopen 22262 lt_cv_dlopen_libs= 22263 lt_cv_dlopen_self=no 22264 ;; 22265 22266 *) 22267 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 22268if test "x$ac_cv_func_shl_load" = xyes; then : 22269 lt_cv_dlopen=shl_load 22270else 22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 22272$as_echo_n "checking for shl_load in -ldld... " >&6; } 22273if ${ac_cv_lib_dld_shl_load+:} false; then : 22274 $as_echo_n "(cached) " >&6 22275else 22276 ac_check_lib_save_LIBS=$LIBS 22277LIBS="-ldld $LIBS" 22278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22279/* end confdefs.h. */ 22280 22281/* Override any GCC internal prototype to avoid an error. 22282 Use char because int might match the return type of a GCC 22283 builtin and then its argument prototype would still apply. */ 22284#ifdef __cplusplus 22285extern "C" 22286#endif 22287char shl_load (); 22288int 22289main () 22290{ 22291return shl_load (); 22292 ; 22293 return 0; 22294} 22295_ACEOF 22296if ac_fn_c_try_link "$LINENO"; then : 22297 ac_cv_lib_dld_shl_load=yes 22298else 22299 ac_cv_lib_dld_shl_load=no 22300fi 22301rm -f core conftest.err conftest.$ac_objext \ 22302 conftest$ac_exeext conftest.$ac_ext 22303LIBS=$ac_check_lib_save_LIBS 22304fi 22305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 22306$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 22307if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 22308 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 22309else 22310 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 22311if test "x$ac_cv_func_dlopen" = xyes; then : 22312 lt_cv_dlopen=dlopen 22313else 22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 22315$as_echo_n "checking for dlopen in -ldl... " >&6; } 22316if ${ac_cv_lib_dl_dlopen+:} false; then : 22317 $as_echo_n "(cached) " >&6 22318else 22319 ac_check_lib_save_LIBS=$LIBS 22320LIBS="-ldl $LIBS" 22321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22322/* end confdefs.h. */ 22323 22324/* Override any GCC internal prototype to avoid an error. 22325 Use char because int might match the return type of a GCC 22326 builtin and then its argument prototype would still apply. */ 22327#ifdef __cplusplus 22328extern "C" 22329#endif 22330char dlopen (); 22331int 22332main () 22333{ 22334return dlopen (); 22335 ; 22336 return 0; 22337} 22338_ACEOF 22339if ac_fn_c_try_link "$LINENO"; then : 22340 ac_cv_lib_dl_dlopen=yes 22341else 22342 ac_cv_lib_dl_dlopen=no 22343fi 22344rm -f core conftest.err conftest.$ac_objext \ 22345 conftest$ac_exeext conftest.$ac_ext 22346LIBS=$ac_check_lib_save_LIBS 22347fi 22348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22349$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 22350if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 22351 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 22352else 22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 22354$as_echo_n "checking for dlopen in -lsvld... " >&6; } 22355if ${ac_cv_lib_svld_dlopen+:} false; then : 22356 $as_echo_n "(cached) " >&6 22357else 22358 ac_check_lib_save_LIBS=$LIBS 22359LIBS="-lsvld $LIBS" 22360cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22361/* end confdefs.h. */ 22362 22363/* Override any GCC internal prototype to avoid an error. 22364 Use char because int might match the return type of a GCC 22365 builtin and then its argument prototype would still apply. */ 22366#ifdef __cplusplus 22367extern "C" 22368#endif 22369char dlopen (); 22370int 22371main () 22372{ 22373return dlopen (); 22374 ; 22375 return 0; 22376} 22377_ACEOF 22378if ac_fn_c_try_link "$LINENO"; then : 22379 ac_cv_lib_svld_dlopen=yes 22380else 22381 ac_cv_lib_svld_dlopen=no 22382fi 22383rm -f core conftest.err conftest.$ac_objext \ 22384 conftest$ac_exeext conftest.$ac_ext 22385LIBS=$ac_check_lib_save_LIBS 22386fi 22387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 22388$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 22389if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 22390 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 22391else 22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 22393$as_echo_n "checking for dld_link in -ldld... " >&6; } 22394if ${ac_cv_lib_dld_dld_link+:} false; then : 22395 $as_echo_n "(cached) " >&6 22396else 22397 ac_check_lib_save_LIBS=$LIBS 22398LIBS="-ldld $LIBS" 22399cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22400/* end confdefs.h. */ 22401 22402/* Override any GCC internal prototype to avoid an error. 22403 Use char because int might match the return type of a GCC 22404 builtin and then its argument prototype would still apply. */ 22405#ifdef __cplusplus 22406extern "C" 22407#endif 22408char dld_link (); 22409int 22410main () 22411{ 22412return dld_link (); 22413 ; 22414 return 0; 22415} 22416_ACEOF 22417if ac_fn_c_try_link "$LINENO"; then : 22418 ac_cv_lib_dld_dld_link=yes 22419else 22420 ac_cv_lib_dld_dld_link=no 22421fi 22422rm -f core conftest.err conftest.$ac_objext \ 22423 conftest$ac_exeext conftest.$ac_ext 22424LIBS=$ac_check_lib_save_LIBS 22425fi 22426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 22427$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 22428if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 22429 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 22430fi 22431 22432 22433fi 22434 22435 22436fi 22437 22438 22439fi 22440 22441 22442fi 22443 22444 22445fi 22446 22447 ;; 22448 esac 22449 22450 if test no = "$lt_cv_dlopen"; then 22451 enable_dlopen=no 22452 else 22453 enable_dlopen=yes 22454 fi 22455 22456 case $lt_cv_dlopen in 22457 dlopen) 22458 save_CPPFLAGS=$CPPFLAGS 22459 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 22460 22461 save_LDFLAGS=$LDFLAGS 22462 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 22463 22464 save_LIBS=$LIBS 22465 LIBS="$lt_cv_dlopen_libs $LIBS" 22466 22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 22468$as_echo_n "checking whether a program can dlopen itself... " >&6; } 22469if ${lt_cv_dlopen_self+:} false; then : 22470 $as_echo_n "(cached) " >&6 22471else 22472 if test yes = "$cross_compiling"; then : 22473 lt_cv_dlopen_self=cross 22474else 22475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 22476 lt_status=$lt_dlunknown 22477 cat > conftest.$ac_ext <<_LT_EOF 22478#line $LINENO "configure" 22479#include "confdefs.h" 22480 22481#if HAVE_DLFCN_H 22482#include <dlfcn.h> 22483#endif 22484 22485#include <stdio.h> 22486 22487#ifdef RTLD_GLOBAL 22488# define LT_DLGLOBAL RTLD_GLOBAL 22489#else 22490# ifdef DL_GLOBAL 22491# define LT_DLGLOBAL DL_GLOBAL 22492# else 22493# define LT_DLGLOBAL 0 22494# endif 22495#endif 22496 22497/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 22498 find out it does not work in some platform. */ 22499#ifndef LT_DLLAZY_OR_NOW 22500# ifdef RTLD_LAZY 22501# define LT_DLLAZY_OR_NOW RTLD_LAZY 22502# else 22503# ifdef DL_LAZY 22504# define LT_DLLAZY_OR_NOW DL_LAZY 22505# else 22506# ifdef RTLD_NOW 22507# define LT_DLLAZY_OR_NOW RTLD_NOW 22508# else 22509# ifdef DL_NOW 22510# define LT_DLLAZY_OR_NOW DL_NOW 22511# else 22512# define LT_DLLAZY_OR_NOW 0 22513# endif 22514# endif 22515# endif 22516# endif 22517#endif 22518 22519/* When -fvisibility=hidden is used, assume the code has been annotated 22520 correspondingly for the symbols needed. */ 22521#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 22522int fnord () __attribute__((visibility("default"))); 22523#endif 22524 22525int fnord () { return 42; } 22526int main () 22527{ 22528 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 22529 int status = $lt_dlunknown; 22530 22531 if (self) 22532 { 22533 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 22534 else 22535 { 22536 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 22537 else puts (dlerror ()); 22538 } 22539 /* dlclose (self); */ 22540 } 22541 else 22542 puts (dlerror ()); 22543 22544 return status; 22545} 22546_LT_EOF 22547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 22548 (eval $ac_link) 2>&5 22549 ac_status=$? 22550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22551 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 22552 (./conftest; exit; ) >&5 2>/dev/null 22553 lt_status=$? 22554 case x$lt_status in 22555 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 22556 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 22557 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 22558 esac 22559 else : 22560 # compilation failed 22561 lt_cv_dlopen_self=no 22562 fi 22563fi 22564rm -fr conftest* 22565 22566 22567fi 22568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 22569$as_echo "$lt_cv_dlopen_self" >&6; } 22570 22571 if test yes = "$lt_cv_dlopen_self"; then 22572 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 22574$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 22575if ${lt_cv_dlopen_self_static+:} false; then : 22576 $as_echo_n "(cached) " >&6 22577else 22578 if test yes = "$cross_compiling"; then : 22579 lt_cv_dlopen_self_static=cross 22580else 22581 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 22582 lt_status=$lt_dlunknown 22583 cat > conftest.$ac_ext <<_LT_EOF 22584#line $LINENO "configure" 22585#include "confdefs.h" 22586 22587#if HAVE_DLFCN_H 22588#include <dlfcn.h> 22589#endif 22590 22591#include <stdio.h> 22592 22593#ifdef RTLD_GLOBAL 22594# define LT_DLGLOBAL RTLD_GLOBAL 22595#else 22596# ifdef DL_GLOBAL 22597# define LT_DLGLOBAL DL_GLOBAL 22598# else 22599# define LT_DLGLOBAL 0 22600# endif 22601#endif 22602 22603/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 22604 find out it does not work in some platform. */ 22605#ifndef LT_DLLAZY_OR_NOW 22606# ifdef RTLD_LAZY 22607# define LT_DLLAZY_OR_NOW RTLD_LAZY 22608# else 22609# ifdef DL_LAZY 22610# define LT_DLLAZY_OR_NOW DL_LAZY 22611# else 22612# ifdef RTLD_NOW 22613# define LT_DLLAZY_OR_NOW RTLD_NOW 22614# else 22615# ifdef DL_NOW 22616# define LT_DLLAZY_OR_NOW DL_NOW 22617# else 22618# define LT_DLLAZY_OR_NOW 0 22619# endif 22620# endif 22621# endif 22622# endif 22623#endif 22624 22625/* When -fvisibility=hidden is used, assume the code has been annotated 22626 correspondingly for the symbols needed. */ 22627#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 22628int fnord () __attribute__((visibility("default"))); 22629#endif 22630 22631int fnord () { return 42; } 22632int main () 22633{ 22634 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 22635 int status = $lt_dlunknown; 22636 22637 if (self) 22638 { 22639 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 22640 else 22641 { 22642 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 22643 else puts (dlerror ()); 22644 } 22645 /* dlclose (self); */ 22646 } 22647 else 22648 puts (dlerror ()); 22649 22650 return status; 22651} 22652_LT_EOF 22653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 22654 (eval $ac_link) 2>&5 22655 ac_status=$? 22656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22657 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 22658 (./conftest; exit; ) >&5 2>/dev/null 22659 lt_status=$? 22660 case x$lt_status in 22661 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 22662 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 22663 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 22664 esac 22665 else : 22666 # compilation failed 22667 lt_cv_dlopen_self_static=no 22668 fi 22669fi 22670rm -fr conftest* 22671 22672 22673fi 22674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 22675$as_echo "$lt_cv_dlopen_self_static" >&6; } 22676 fi 22677 22678 CPPFLAGS=$save_CPPFLAGS 22679 LDFLAGS=$save_LDFLAGS 22680 LIBS=$save_LIBS 22681 ;; 22682 esac 22683 22684 case $lt_cv_dlopen_self in 22685 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 22686 *) enable_dlopen_self=unknown ;; 22687 esac 22688 22689 case $lt_cv_dlopen_self_static in 22690 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 22691 *) enable_dlopen_self_static=unknown ;; 22692 esac 22693fi 22694 22695 22696 22697 22698 22699 22700 22701 22702 22703 22704 22705 22706 22707 22708 22709 22710 22711striplib= 22712old_striplib= 22713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 22714$as_echo_n "checking whether stripping libraries is possible... " >&6; } 22715if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 22716 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 22717 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22719$as_echo "yes" >&6; } 22720else 22721# FIXME - insert some real tests, host_os isn't really good enough 22722 case $host_os in 22723 darwin*) 22724 if test -n "$STRIP"; then 22725 striplib="$STRIP -x" 22726 old_striplib="$STRIP -S" 22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22728$as_echo "yes" >&6; } 22729 else 22730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22731$as_echo "no" >&6; } 22732 fi 22733 ;; 22734 *) 22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22736$as_echo "no" >&6; } 22737 ;; 22738 esac 22739fi 22740 22741 22742 22743 22744 22745 22746 22747 22748 22749 22750 22751 22752 # Report what library types will actually be built 22753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 22754$as_echo_n "checking if libtool supports shared libraries... " >&6; } 22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 22756$as_echo "$can_build_shared" >&6; } 22757 22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 22759$as_echo_n "checking whether to build shared libraries... " >&6; } 22760 test no = "$can_build_shared" && enable_shared=no 22761 22762 # On AIX, shared libraries and static libraries use the same namespace, and 22763 # are all built from PIC. 22764 case $host_os in 22765 aix3*) 22766 test yes = "$enable_shared" && enable_static=no 22767 if test -n "$RANLIB"; then 22768 archive_cmds="$archive_cmds~\$RANLIB \$lib" 22769 postinstall_cmds='$RANLIB $lib' 22770 fi 22771 ;; 22772 22773 aix[4-9]*) 22774 if test ia64 != "$host_cpu"; then 22775 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 22776 yes,aix,yes) ;; # shared object as lib.so file only 22777 yes,svr4,*) ;; # shared object as lib.so archive member only 22778 yes,*) enable_static=no ;; # shared object in lib.a archive as well 22779 esac 22780 fi 22781 ;; 22782 esac 22783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 22784$as_echo "$enable_shared" >&6; } 22785 22786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 22787$as_echo_n "checking whether to build static libraries... " >&6; } 22788 # Make sure either enable_shared or enable_static is yes. 22789 test yes = "$enable_shared" || enable_static=yes 22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 22791$as_echo "$enable_static" >&6; } 22792 22793 22794 22795 22796fi 22797ac_ext=c 22798ac_cpp='$CPP $CPPFLAGS' 22799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22801ac_compiler_gnu=$ac_cv_c_compiler_gnu 22802 22803CC=$lt_save_CC 22804 22805 22806 22807 22808 22809 22810 22811 22812 22813 22814 22815 22816 22817 22818 22819 ac_config_commands="$ac_config_commands libtool" 22820 22821 22822 22823 22824# Only expand once: 22825 22826 22827 22828 22829 22830 22831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5 22832$as_echo_n "checking if sntp will be built... " >&6; } 22833 22834# Check whether --with-sntp was given. 22835if test "${with_sntp+set}" = set; then : 22836 withval=$with_sntp; 22837else 22838 with_sntp="${withsntp=yes}" 22839 22840fi 22841 22842case "$with_sntp" in 22843 no) 22844 SNTP= 22845 ;; 22846 *) 22847 SNTP=sntp 22848 ;; 22849esac 22850 22851 if test -n "$SNTP"; then 22852 BUILD_SNTP_TRUE= 22853 BUILD_SNTP_FALSE='#' 22854else 22855 BUILD_SNTP_TRUE='#' 22856 BUILD_SNTP_FALSE= 22857fi 22858 22859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5 22860$as_echo "$with_sntp" >&6; } 22861 22862 22863 22864case "$SNTP" in 22865 '') 22866 SNTP_DB= 22867 SNTP_DL= 22868 SNTP_DS= 22869 ;; 22870esac 22871 22872### 22873 22874# NTP has (so far) been relying on leading-edge autogen. 22875# Therefore, by default: 22876# - use the version we ship with 22877# - do not install it 22878# - build a static copy (AC_DISABLE_SHARED - done earlier) 22879case "${enable_local_libopts+set}" in 22880 set) ;; 22881 *) enable_local_libopts=yes ;; 22882esac 22883case "${enable_libopts_install+set}" in 22884 set) ;; 22885 *) enable_libopts_install=no ;; 22886esac 22887enable_nls=no 22888 22889 22890 ac_header_dirent=no 22891for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 22892 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 22893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 22894$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 22895if eval \${$as_ac_Header+:} false; then : 22896 $as_echo_n "(cached) " >&6 22897else 22898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22899/* end confdefs.h. */ 22900#include <sys/types.h> 22901#include <$ac_hdr> 22902 22903int 22904main () 22905{ 22906if ((DIR *) 0) 22907return 0; 22908 ; 22909 return 0; 22910} 22911_ACEOF 22912if ac_fn_c_try_compile "$LINENO"; then : 22913 eval "$as_ac_Header=yes" 22914else 22915 eval "$as_ac_Header=no" 22916fi 22917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22918fi 22919eval ac_res=\$$as_ac_Header 22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22921$as_echo "$ac_res" >&6; } 22922if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22923 cat >>confdefs.h <<_ACEOF 22924#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 22925_ACEOF 22926 22927ac_header_dirent=$ac_hdr; break 22928fi 22929 22930done 22931# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 22932if test $ac_header_dirent = dirent.h; then 22933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22934$as_echo_n "checking for library containing opendir... " >&6; } 22935if ${ac_cv_search_opendir+:} false; then : 22936 $as_echo_n "(cached) " >&6 22937else 22938 ac_func_search_save_LIBS=$LIBS 22939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22940/* end confdefs.h. */ 22941 22942/* Override any GCC internal prototype to avoid an error. 22943 Use char because int might match the return type of a GCC 22944 builtin and then its argument prototype would still apply. */ 22945#ifdef __cplusplus 22946extern "C" 22947#endif 22948char opendir (); 22949int 22950main () 22951{ 22952return opendir (); 22953 ; 22954 return 0; 22955} 22956_ACEOF 22957for ac_lib in '' dir; do 22958 if test -z "$ac_lib"; then 22959 ac_res="none required" 22960 else 22961 ac_res=-l$ac_lib 22962 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22963 fi 22964 if ac_fn_c_try_link "$LINENO"; then : 22965 ac_cv_search_opendir=$ac_res 22966fi 22967rm -f core conftest.err conftest.$ac_objext \ 22968 conftest$ac_exeext 22969 if ${ac_cv_search_opendir+:} false; then : 22970 break 22971fi 22972done 22973if ${ac_cv_search_opendir+:} false; then : 22974 22975else 22976 ac_cv_search_opendir=no 22977fi 22978rm conftest.$ac_ext 22979LIBS=$ac_func_search_save_LIBS 22980fi 22981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 22982$as_echo "$ac_cv_search_opendir" >&6; } 22983ac_res=$ac_cv_search_opendir 22984if test "$ac_res" != no; then : 22985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22986 22987fi 22988 22989else 22990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22991$as_echo_n "checking for library containing opendir... " >&6; } 22992if ${ac_cv_search_opendir+:} false; then : 22993 $as_echo_n "(cached) " >&6 22994else 22995 ac_func_search_save_LIBS=$LIBS 22996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22997/* end confdefs.h. */ 22998 22999/* Override any GCC internal prototype to avoid an error. 23000 Use char because int might match the return type of a GCC 23001 builtin and then its argument prototype would still apply. */ 23002#ifdef __cplusplus 23003extern "C" 23004#endif 23005char opendir (); 23006int 23007main () 23008{ 23009return opendir (); 23010 ; 23011 return 0; 23012} 23013_ACEOF 23014for ac_lib in '' x; do 23015 if test -z "$ac_lib"; then 23016 ac_res="none required" 23017 else 23018 ac_res=-l$ac_lib 23019 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23020 fi 23021 if ac_fn_c_try_link "$LINENO"; then : 23022 ac_cv_search_opendir=$ac_res 23023fi 23024rm -f core conftest.err conftest.$ac_objext \ 23025 conftest$ac_exeext 23026 if ${ac_cv_search_opendir+:} false; then : 23027 break 23028fi 23029done 23030if ${ac_cv_search_opendir+:} false; then : 23031 23032else 23033 ac_cv_search_opendir=no 23034fi 23035rm conftest.$ac_ext 23036LIBS=$ac_func_search_save_LIBS 23037fi 23038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23039$as_echo "$ac_cv_search_opendir" >&6; } 23040ac_res=$ac_cv_search_opendir 23041if test "$ac_res" != no; then : 23042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23043 23044fi 23045 23046fi 23047 23048 23049 # ================= 23050 # AC_CHECK_HEADERS 23051 # ================= 23052 for ac_header in \ 23053 sys/mman.h sys/param.h sys/poll.h sys/procset.h \ 23054 sys/select.h sys/socket.h sys/stropts.h sys/time.h \ 23055 sys/un.h sys/wait.h dlfcn.h errno.h \ 23056 fcntl.h libgen.h libintl.h memory.h \ 23057 netinet/in.h setjmp.h stdbool.h sysexits.h \ 23058 unistd.h utime.h 23059do : 23060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23061ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23062if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23063 cat >>confdefs.h <<_ACEOF 23064#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23065_ACEOF 23066 23067fi 23068 23069done 23070 23071 23072 for ac_header in stdarg.h varargs.h 23073do : 23074 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23075ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23076if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23077 cat >>confdefs.h <<_ACEOF 23078#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23079_ACEOF 23080 lo_have_arg_hdr=true;break 23081else 23082 lo_have_arg_hdr=false 23083fi 23084 23085done 23086 23087 23088 for ac_header in string.h strings.h 23089do : 23090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23091ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23092if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23093 cat >>confdefs.h <<_ACEOF 23094#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23095_ACEOF 23096 lo_have_str_hdr=true;break 23097else 23098 lo_have_str_hdr=false 23099fi 23100 23101done 23102 23103 23104 for ac_header in limits.h sys/limits.h values.h 23105do : 23106 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23107ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23108if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23109 cat >>confdefs.h <<_ACEOF 23110#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23111_ACEOF 23112 lo_have_lim_hdr=true;break 23113else 23114 lo_have_lim_hdr=false 23115fi 23116 23117done 23118 23119 23120 for ac_header in inttypes.h stdint.h 23121do : 23122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23123ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23124if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23125 cat >>confdefs.h <<_ACEOF 23126#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23127_ACEOF 23128 lo_have_typ_hdr=true;break 23129else 23130 lo_have_typ_hdr=false 23131fi 23132 23133done 23134 23135 23136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5 23137$as_echo_n "checking for working stdnoreturn.h... " >&6; } 23138if ${gl_cv_header_working_stdnoreturn_h+:} false; then : 23139 $as_echo_n "(cached) " >&6 23140else 23141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23142/* end confdefs.h. */ 23143#include <stdlib.h> 23144 #include <stdnoreturn.h> 23145 /* Do not check for 'noreturn' after the return type. 23146 C11 allows it, but it's rarely done that way 23147 and circa-2012 bleeding-edge GCC rejects it when given 23148 -Werror=old-style-declaration. */ 23149 noreturn void foo1 (void) { exit (0); } 23150 _Noreturn void foo2 (void) { exit (0); } 23151 int testit (int argc, char **argv) { 23152 if (argc & 1) 23153 return 0; 23154 (argv[0][0] ? foo1 : foo2) (); 23155 } 23156 23157int 23158main () 23159{ 23160 23161 ; 23162 return 0; 23163} 23164_ACEOF 23165if ac_fn_c_try_compile "$LINENO"; then : 23166 gl_cv_header_working_stdnoreturn_h=yes 23167else 23168 gl_cv_header_working_stdnoreturn_h=no 23169fi 23170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23171fi 23172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5 23173$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; } 23174 23175 if test $gl_cv_header_working_stdnoreturn_h = yes; then 23176 STDNORETURN_H='' 23177 else 23178 STDNORETURN_H='stdnoreturn.h' 23179 fi 23180 23181 23182 if test -n "$STDNORETURN_H"; then 23183 GL_GENERATE_STDNORETURN_H_TRUE= 23184 GL_GENERATE_STDNORETURN_H_FALSE='#' 23185else 23186 GL_GENERATE_STDNORETURN_H_TRUE='#' 23187 GL_GENERATE_STDNORETURN_H_FALSE= 23188fi 23189 23190 23191 23192 # ---------------------------------------------------------------------- 23193 # check for various programs used during the build. 23194 # On OS/X, "wchar.h" needs "runetype.h" to work properly. 23195 # ---------------------------------------------------------------------- 23196 for ac_header in runetype.h wchar.h 23197do : 23198 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23199ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 23200 $ac_includes_default 23201 #if HAVE_RUNETYPE_H 23202 # include <runetype.h> 23203 #endif 23204 23205" 23206if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23207 cat >>confdefs.h <<_ACEOF 23208#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23209_ACEOF 23210 23211fi 23212 23213done 23214 23215 23216 # Check whether --enable-nls was given. 23217if test "${enable_nls+set}" = set; then : 23218 enableval=$enable_nls; 23219fi 23220 23221 if test "x$enable_nls" != "xno" && \ 23222 test "X${ac_cv_header_libintl_h}" = Xyes; then : 23223 23224 23225$as_echo "#define ENABLE_NLS 1" >>confdefs.h 23226 23227fi 23228 23229 # -------------------------------------------- 23230 # Verify certain entries from AC_CHECK_HEADERS 23231 # -------------------------------------------- 23232 ${lo_have_arg_hdr} || \ 23233 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5 23234 23235 ${lo_have_str_hdr} || \ 23236 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5 23237 23238 ${lo_have_lim_hdr} || \ 23239 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5 23240 23241 ${lo_have_typ_hdr} || \ 23242 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5 23243 23244 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp 23245 do eval as_ac_var=\${ac_cv_header_${f}_h} 23246 test "X${as_ac_var}" = Xyes || { 23247 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5 23248 } 23249 done 23250 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \ 23251 echo '#include <stdint.h>' > inttypes.h 23252 23253 # ---------------------------------------------------------------------- 23254 # Checks for typedefs 23255 # ---------------------------------------------------------------------- 23256 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default" 23257if test "x$ac_cv_type_wchar_t" = xyes; then : 23258 23259cat >>confdefs.h <<_ACEOF 23260#define HAVE_WCHAR_T 1 23261_ACEOF 23262 23263 23264fi 23265 23266 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" " 23267 $ac_includes_default 23268 #if HAVE_RUNETYPE_H 23269 # include <runetype.h> 23270 #endif 23271 #if HAVE_WCHAR_H 23272 # include <wchar.h> 23273 #endif 23274 23275" 23276if test "x$ac_cv_type_wint_t" = xyes; then : 23277 23278cat >>confdefs.h <<_ACEOF 23279#define HAVE_WINT_T 1 23280_ACEOF 23281 23282 23283fi 23284 23285 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 23286if test "x$ac_cv_type_int8_t" = xyes; then : 23287 23288cat >>confdefs.h <<_ACEOF 23289#define HAVE_INT8_T 1 23290_ACEOF 23291 23292 23293fi 23294ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 23295if test "x$ac_cv_type_uint8_t" = xyes; then : 23296 23297cat >>confdefs.h <<_ACEOF 23298#define HAVE_UINT8_T 1 23299_ACEOF 23300 23301 23302fi 23303ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 23304if test "x$ac_cv_type_int16_t" = xyes; then : 23305 23306cat >>confdefs.h <<_ACEOF 23307#define HAVE_INT16_T 1 23308_ACEOF 23309 23310 23311fi 23312ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 23313if test "x$ac_cv_type_uint16_t" = xyes; then : 23314 23315cat >>confdefs.h <<_ACEOF 23316#define HAVE_UINT16_T 1 23317_ACEOF 23318 23319 23320fi 23321ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 23322if test "x$ac_cv_type_int32_t" = xyes; then : 23323 23324cat >>confdefs.h <<_ACEOF 23325#define HAVE_INT32_T 1 23326_ACEOF 23327 23328 23329fi 23330ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 23331if test "x$ac_cv_type_uint32_t" = xyes; then : 23332 23333cat >>confdefs.h <<_ACEOF 23334#define HAVE_UINT32_T 1 23335_ACEOF 23336 23337 23338fi 23339ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 23340if test "x$ac_cv_type_intptr_t" = xyes; then : 23341 23342cat >>confdefs.h <<_ACEOF 23343#define HAVE_INTPTR_T 1 23344_ACEOF 23345 23346 23347fi 23348ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 23349if test "x$ac_cv_type_uintptr_t" = xyes; then : 23350 23351cat >>confdefs.h <<_ACEOF 23352#define HAVE_UINTPTR_T 1 23353_ACEOF 23354 23355 23356fi 23357ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 23358if test "x$ac_cv_type_uint_t" = xyes; then : 23359 23360cat >>confdefs.h <<_ACEOF 23361#define HAVE_UINT_T 1 23362_ACEOF 23363 23364 23365fi 23366ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 23367if test "x$ac_cv_type_pid_t" = xyes; then : 23368 23369cat >>confdefs.h <<_ACEOF 23370#define HAVE_PID_T 1 23371_ACEOF 23372 23373 23374fi 23375ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 23376if test "x$ac_cv_type_size_t" = xyes; then : 23377 23378cat >>confdefs.h <<_ACEOF 23379#define HAVE_SIZE_T 1 23380_ACEOF 23381 23382 23383fi 23384ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 23385if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 23386 23387cat >>confdefs.h <<_ACEOF 23388#define HAVE_PTRDIFF_T 1 23389_ACEOF 23390 23391 23392fi 23393 23394 # The cast to long int works around a bug in the HP C Compiler 23395# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23396# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23397# This bug is HP SR number 8606223364. 23398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5 23399$as_echo_n "checking size of char *... " >&6; } 23400if ${ac_cv_sizeof_char_p+:} false; then : 23401 $as_echo_n "(cached) " >&6 23402else 23403 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then : 23404 23405else 23406 if test "$ac_cv_type_char_p" = yes; then 23407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23409as_fn_error 77 "cannot compute sizeof (char *) 23410See \`config.log' for more details" "$LINENO" 5; } 23411 else 23412 ac_cv_sizeof_char_p=0 23413 fi 23414fi 23415 23416fi 23417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5 23418$as_echo "$ac_cv_sizeof_char_p" >&6; } 23419 23420 23421 23422cat >>confdefs.h <<_ACEOF 23423#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p 23424_ACEOF 23425 23426 23427 # The cast to long int works around a bug in the HP C Compiler 23428# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23429# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23430# This bug is HP SR number 8606223364. 23431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 23432$as_echo_n "checking size of int... " >&6; } 23433if ${ac_cv_sizeof_int+:} false; then : 23434 $as_echo_n "(cached) " >&6 23435else 23436 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 23437 23438else 23439 if test "$ac_cv_type_int" = yes; then 23440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23442as_fn_error 77 "cannot compute sizeof (int) 23443See \`config.log' for more details" "$LINENO" 5; } 23444 else 23445 ac_cv_sizeof_int=0 23446 fi 23447fi 23448 23449fi 23450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 23451$as_echo "$ac_cv_sizeof_int" >&6; } 23452 23453 23454 23455cat >>confdefs.h <<_ACEOF 23456#define SIZEOF_INT $ac_cv_sizeof_int 23457_ACEOF 23458 23459 23460 # The cast to long int works around a bug in the HP C Compiler 23461# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23462# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23463# This bug is HP SR number 8606223364. 23464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 23465$as_echo_n "checking size of long... " >&6; } 23466if ${ac_cv_sizeof_long+:} false; then : 23467 $as_echo_n "(cached) " >&6 23468else 23469 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 23470 23471else 23472 if test "$ac_cv_type_long" = yes; then 23473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23475as_fn_error 77 "cannot compute sizeof (long) 23476See \`config.log' for more details" "$LINENO" 5; } 23477 else 23478 ac_cv_sizeof_long=0 23479 fi 23480fi 23481 23482fi 23483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 23484$as_echo "$ac_cv_sizeof_long" >&6; } 23485 23486 23487 23488cat >>confdefs.h <<_ACEOF 23489#define SIZEOF_LONG $ac_cv_sizeof_long 23490_ACEOF 23491 23492 23493 # The cast to long int works around a bug in the HP C Compiler 23494# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23495# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23496# This bug is HP SR number 8606223364. 23497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 23498$as_echo_n "checking size of short... " >&6; } 23499if ${ac_cv_sizeof_short+:} false; then : 23500 $as_echo_n "(cached) " >&6 23501else 23502 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 23503 23504else 23505 if test "$ac_cv_type_short" = yes; then 23506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23508as_fn_error 77 "cannot compute sizeof (short) 23509See \`config.log' for more details" "$LINENO" 5; } 23510 else 23511 ac_cv_sizeof_short=0 23512 fi 23513fi 23514 23515fi 23516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 23517$as_echo "$ac_cv_sizeof_short" >&6; } 23518 23519 23520 23521cat >>confdefs.h <<_ACEOF 23522#define SIZEOF_SHORT $ac_cv_sizeof_short 23523_ACEOF 23524 23525 23526 23527 # ------------ 23528 # AC_CHECK_LIB 23529 # ------------ 23530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5 23531$as_echo_n "checking for pathfind in -lgen... " >&6; } 23532if ${ac_cv_lib_gen_pathfind+:} false; then : 23533 $as_echo_n "(cached) " >&6 23534else 23535 ac_check_lib_save_LIBS=$LIBS 23536LIBS="-lgen $LIBS" 23537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23538/* end confdefs.h. */ 23539 23540/* Override any GCC internal prototype to avoid an error. 23541 Use char because int might match the return type of a GCC 23542 builtin and then its argument prototype would still apply. */ 23543#ifdef __cplusplus 23544extern "C" 23545#endif 23546char pathfind (); 23547int 23548main () 23549{ 23550return pathfind (); 23551 ; 23552 return 0; 23553} 23554_ACEOF 23555if ac_fn_c_try_link "$LINENO"; then : 23556 ac_cv_lib_gen_pathfind=yes 23557else 23558 ac_cv_lib_gen_pathfind=no 23559fi 23560rm -f core conftest.err conftest.$ac_objext \ 23561 conftest$ac_exeext conftest.$ac_ext 23562LIBS=$ac_check_lib_save_LIBS 23563fi 23564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5 23565$as_echo "$ac_cv_lib_gen_pathfind" >&6; } 23566if test "x$ac_cv_lib_gen_pathfind" = xyes; then : 23567 cat >>confdefs.h <<_ACEOF 23568#define HAVE_LIBGEN 1 23569_ACEOF 23570 23571 LIBS="-lgen $LIBS" 23572 23573fi 23574 23575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5 23576$as_echo_n "checking for gettext in -lintl... " >&6; } 23577if ${ac_cv_lib_intl_gettext+:} false; then : 23578 $as_echo_n "(cached) " >&6 23579else 23580 ac_check_lib_save_LIBS=$LIBS 23581LIBS="-lintl $LIBS" 23582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23583/* end confdefs.h. */ 23584 23585/* Override any GCC internal prototype to avoid an error. 23586 Use char because int might match the return type of a GCC 23587 builtin and then its argument prototype would still apply. */ 23588#ifdef __cplusplus 23589extern "C" 23590#endif 23591char gettext (); 23592int 23593main () 23594{ 23595return gettext (); 23596 ; 23597 return 0; 23598} 23599_ACEOF 23600if ac_fn_c_try_link "$LINENO"; then : 23601 ac_cv_lib_intl_gettext=yes 23602else 23603 ac_cv_lib_intl_gettext=no 23604fi 23605rm -f core conftest.err conftest.$ac_objext \ 23606 conftest$ac_exeext conftest.$ac_ext 23607LIBS=$ac_check_lib_save_LIBS 23608fi 23609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5 23610$as_echo "$ac_cv_lib_intl_gettext" >&6; } 23611if test "x$ac_cv_lib_intl_gettext" = xyes; then : 23612 cat >>confdefs.h <<_ACEOF 23613#define HAVE_LIBINTL 1 23614_ACEOF 23615 23616 LIBS="-lintl $LIBS" 23617 23618fi 23619 23620 for ac_func in vprintf 23621do : 23622 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 23623if test "x$ac_cv_func_vprintf" = xyes; then : 23624 cat >>confdefs.h <<_ACEOF 23625#define HAVE_VPRINTF 1 23626_ACEOF 23627 23628ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 23629if test "x$ac_cv_func__doprnt" = xyes; then : 23630 23631$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 23632 23633fi 23634 23635fi 23636done 23637 23638 23639 for ac_header in vfork.h 23640do : 23641 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 23642if test "x$ac_cv_header_vfork_h" = xyes; then : 23643 cat >>confdefs.h <<_ACEOF 23644#define HAVE_VFORK_H 1 23645_ACEOF 23646 23647fi 23648 23649done 23650 23651for ac_func in fork vfork 23652do : 23653 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23654ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23655if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 23656 cat >>confdefs.h <<_ACEOF 23657#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23658_ACEOF 23659 23660fi 23661done 23662 23663if test "x$ac_cv_func_fork" = xyes; then 23664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 23665$as_echo_n "checking for working fork... " >&6; } 23666if ${ac_cv_func_fork_works+:} false; then : 23667 $as_echo_n "(cached) " >&6 23668else 23669 if test "$cross_compiling" = yes; then : 23670 ac_cv_func_fork_works=cross 23671else 23672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23673/* end confdefs.h. */ 23674$ac_includes_default 23675int 23676main () 23677{ 23678 23679 /* By Ruediger Kuhlmann. */ 23680 return fork () < 0; 23681 23682 ; 23683 return 0; 23684} 23685_ACEOF 23686if ac_fn_c_try_run "$LINENO"; then : 23687 ac_cv_func_fork_works=yes 23688else 23689 ac_cv_func_fork_works=no 23690fi 23691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23692 conftest.$ac_objext conftest.beam conftest.$ac_ext 23693fi 23694 23695fi 23696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 23697$as_echo "$ac_cv_func_fork_works" >&6; } 23698 23699else 23700 ac_cv_func_fork_works=$ac_cv_func_fork 23701fi 23702if test "x$ac_cv_func_fork_works" = xcross; then 23703 case $host in 23704 *-*-amigaos* | *-*-msdosdjgpp*) 23705 # Override, as these systems have only a dummy fork() stub 23706 ac_cv_func_fork_works=no 23707 ;; 23708 *) 23709 ac_cv_func_fork_works=yes 23710 ;; 23711 esac 23712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 23713$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 23714fi 23715ac_cv_func_vfork_works=$ac_cv_func_vfork 23716if test "x$ac_cv_func_vfork" = xyes; then 23717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 23718$as_echo_n "checking for working vfork... " >&6; } 23719if ${ac_cv_func_vfork_works+:} false; then : 23720 $as_echo_n "(cached) " >&6 23721else 23722 if test "$cross_compiling" = yes; then : 23723 ac_cv_func_vfork_works=cross 23724else 23725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23726/* end confdefs.h. */ 23727/* Thanks to Paul Eggert for this test. */ 23728$ac_includes_default 23729#include <sys/wait.h> 23730#ifdef HAVE_VFORK_H 23731# include <vfork.h> 23732#endif 23733/* On some sparc systems, changes by the child to local and incoming 23734 argument registers are propagated back to the parent. The compiler 23735 is told about this with #include <vfork.h>, but some compilers 23736 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 23737 static variable whose address is put into a register that is 23738 clobbered by the vfork. */ 23739static void 23740#ifdef __cplusplus 23741sparc_address_test (int arg) 23742# else 23743sparc_address_test (arg) int arg; 23744#endif 23745{ 23746 static pid_t child; 23747 if (!child) { 23748 child = vfork (); 23749 if (child < 0) { 23750 perror ("vfork"); 23751 _exit(2); 23752 } 23753 if (!child) { 23754 arg = getpid(); 23755 write(-1, "", 0); 23756 _exit (arg); 23757 } 23758 } 23759} 23760 23761int 23762main () 23763{ 23764 pid_t parent = getpid (); 23765 pid_t child; 23766 23767 sparc_address_test (0); 23768 23769 child = vfork (); 23770 23771 if (child == 0) { 23772 /* Here is another test for sparc vfork register problems. This 23773 test uses lots of local variables, at least as many local 23774 variables as main has allocated so far including compiler 23775 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 23776 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 23777 reuse the register of parent for one of the local variables, 23778 since it will think that parent can't possibly be used any more 23779 in this routine. Assigning to the local variable will thus 23780 munge parent in the parent process. */ 23781 pid_t 23782 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 23783 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 23784 /* Convince the compiler that p..p7 are live; otherwise, it might 23785 use the same hardware register for all 8 local variables. */ 23786 if (p != p1 || p != p2 || p != p3 || p != p4 23787 || p != p5 || p != p6 || p != p7) 23788 _exit(1); 23789 23790 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 23791 from child file descriptors. If the child closes a descriptor 23792 before it execs or exits, this munges the parent's descriptor 23793 as well. Test for this by closing stdout in the child. */ 23794 _exit(close(fileno(stdout)) != 0); 23795 } else { 23796 int status; 23797 struct stat st; 23798 23799 while (wait(&status) != child) 23800 ; 23801 return ( 23802 /* Was there some problem with vforking? */ 23803 child < 0 23804 23805 /* Did the child fail? (This shouldn't happen.) */ 23806 || status 23807 23808 /* Did the vfork/compiler bug occur? */ 23809 || parent != getpid() 23810 23811 /* Did the file descriptor bug occur? */ 23812 || fstat(fileno(stdout), &st) != 0 23813 ); 23814 } 23815} 23816_ACEOF 23817if ac_fn_c_try_run "$LINENO"; then : 23818 ac_cv_func_vfork_works=yes 23819else 23820 ac_cv_func_vfork_works=no 23821fi 23822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23823 conftest.$ac_objext conftest.beam conftest.$ac_ext 23824fi 23825 23826fi 23827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 23828$as_echo "$ac_cv_func_vfork_works" >&6; } 23829 23830fi; 23831if test "x$ac_cv_func_fork_works" = xcross; then 23832 ac_cv_func_vfork_works=$ac_cv_func_vfork 23833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 23834$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 23835fi 23836 23837if test "x$ac_cv_func_vfork_works" = xyes; then 23838 23839$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 23840 23841else 23842 23843$as_echo "#define vfork fork" >>confdefs.h 23844 23845fi 23846if test "x$ac_cv_func_fork_works" = xyes; then 23847 23848$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 23849 23850fi 23851 23852 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \ 23853 strrchr strsignal fchmod fstat chmod 23854do : 23855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23856ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23857if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 23858 cat >>confdefs.h <<_ACEOF 23859#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23860_ACEOF 23861 23862fi 23863done 23864 23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 23866$as_echo_n "checking for a sed that does not truncate output... " >&6; } 23867if ${ac_cv_path_SED+:} false; then : 23868 $as_echo_n "(cached) " >&6 23869else 23870 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 23871 for ac_i in 1 2 3 4 5 6 7; do 23872 ac_script="$ac_script$as_nl$ac_script" 23873 done 23874 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 23875 { ac_script=; unset ac_script;} 23876 if test -z "$SED"; then 23877 ac_path_SED_found=false 23878 # Loop through the user's path and test for each of PROGNAME-LIST 23879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23880for as_dir in $PATH 23881do 23882 IFS=$as_save_IFS 23883 test -z "$as_dir" && as_dir=. 23884 for ac_prog in sed gsed; do 23885 for ac_exec_ext in '' $ac_executable_extensions; do 23886 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 23887 as_fn_executable_p "$ac_path_SED" || continue 23888# Check for GNU ac_path_SED and select it if it is found. 23889 # Check for GNU $ac_path_SED 23890case `"$ac_path_SED" --version 2>&1` in 23891*GNU*) 23892 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 23893*) 23894 ac_count=0 23895 $as_echo_n 0123456789 >"conftest.in" 23896 while : 23897 do 23898 cat "conftest.in" "conftest.in" >"conftest.tmp" 23899 mv "conftest.tmp" "conftest.in" 23900 cp "conftest.in" "conftest.nl" 23901 $as_echo '' >> "conftest.nl" 23902 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 23903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 23904 as_fn_arith $ac_count + 1 && ac_count=$as_val 23905 if test $ac_count -gt ${ac_path_SED_max-0}; then 23906 # Best one so far, save it but keep looking for a better one 23907 ac_cv_path_SED="$ac_path_SED" 23908 ac_path_SED_max=$ac_count 23909 fi 23910 # 10*(2^10) chars as input seems more than enough 23911 test $ac_count -gt 10 && break 23912 done 23913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 23914esac 23915 23916 $ac_path_SED_found && break 3 23917 done 23918 done 23919 done 23920IFS=$as_save_IFS 23921 if test -z "$ac_cv_path_SED"; then 23922 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 23923 fi 23924else 23925 ac_cv_path_SED=$SED 23926fi 23927 23928fi 23929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 23930$as_echo "$ac_cv_path_SED" >&6; } 23931 SED="$ac_cv_path_SED" 23932 rm -f conftest.sed 23933 23934 while : 23935 do 23936 POSIX_SHELL=`which bash` 23937 test -x "$POSIX_SHELL" && break 23938 POSIX_SHELL=`which dash` 23939 test -x "$POSIX_SHELL" && break 23940 POSIX_SHELL=/usr/xpg4/bin/sh 23941 test -x "$POSIX_SHELL" && break 23942 POSIX_SHELL=`/bin/sh -c ' 23943 exec 2>/dev/null 23944 if ! true ; then exit 1 ; fi 23945 echo /bin/sh'` 23946 test -x "$POSIX_SHELL" && break 23947 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5 23948 done 23949 23950cat >>confdefs.h <<_ACEOF 23951#define POSIX_SHELL "${POSIX_SHELL}" 23952_ACEOF 23953 23954 23955 23956 23957 23958 LIBOPTS_BUILD_BLOCKED='' 23959 23960 23961 NEED_LIBOPTS_DIR='' 23962 23963 # Check whether --enable-local-libopts was given. 23964if test "${enable_local_libopts+set}" = set; then : 23965 enableval=$enable_local_libopts; 23966 if test x$enableval = xyes ; then 23967 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5 23968$as_echo "$as_me: Using supplied libopts tearoff" >&6;} 23969 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 23970 NEED_LIBOPTS_DIR=true 23971 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 23972 fi 23973fi 23974 23975 23976 # Check whether --enable-libopts-install was given. 23977if test "${enable_libopts_install+set}" = set; then : 23978 enableval=$enable_libopts_install; 23979fi 23980 23981 if test "X${enable_libopts_install}" = Xyes; then 23982 INSTALL_LIBOPTS_TRUE= 23983 INSTALL_LIBOPTS_FALSE='#' 23984else 23985 INSTALL_LIBOPTS_TRUE='#' 23986 INSTALL_LIBOPTS_FALSE= 23987fi 23988 23989 23990 if test -z "${NEED_LIBOPTS_DIR}" ; then 23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5 23992$as_echo_n "checking whether autoopts-config can be found... " >&6; } 23993 23994# Check whether --with-autoopts-config was given. 23995if test "${with_autoopts_config+set}" = set; then : 23996 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config} 23997else 23998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5 23999$as_echo_n "checking whether autoopts-config is specified... " >&6; } 24000if ${lo_cv_with_autoopts_config+:} false; then : 24001 $as_echo_n "(cached) " >&6 24002else 24003 if autoopts-config --help 2>/dev/null 1>&2 24004 then lo_cv_with_autoopts_config=autoopts-config 24005 elif libopts-config --help 2>/dev/null 1>&2 24006 then lo_cv_with_autoopts_config=libopts-config 24007 else lo_cv_with_autoopts_config=no ; fi 24008fi 24009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5 24010$as_echo "$lo_cv_with_autoopts_config" >&6; } 24011 24012fi 24013 # end of AC_ARG_WITH 24014 24015 if ${lo_cv_test_autoopts+:} false; then : 24016 $as_echo_n "(cached) " >&6 24017else 24018 24019 if test -z "${lo_cv_with_autoopts_config}" \ 24020 -o X"${lo_cv_with_autoopts_config}" = Xno 24021 then 24022 if autoopts-config --help 2>/dev/null 1>&2 24023 then lo_cv_with_autoopts_config=autoopts-config 24024 elif libopts-config --help 2>/dev/null 1>&2 24025 then lo_cv_with_autoopts_config=libopts-config 24026 else lo_cv_with_autoopts_config=false ; fi 24027 fi 24028 lo_cv_test_autoopts=` 24029 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null 24030 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}" 24031 then lo_cv_test_autoopts=no ; fi 24032 24033fi 24034 # end of CACHE_VAL 24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5 24036$as_echo "${lo_cv_test_autoopts}" >&6; } 24037 24038 if test "X${lo_cv_test_autoopts}" != Xno 24039 then 24040 LIBOPTS_LDADD="${lo_cv_test_autoopts}" 24041 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`" 24042 else 24043 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 24044 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 24045 NEED_LIBOPTS_DIR=true 24046 fi 24047 fi # end of if test -z "${NEED_LIBOPTS_DIR}" 24048 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then 24049 NEED_LIBOPTS_DIR='' 24050 fi 24051 if test -n "${NEED_LIBOPTS_DIR}"; then 24052 NEED_LIBOPTS_TRUE= 24053 NEED_LIBOPTS_FALSE='#' 24054else 24055 NEED_LIBOPTS_TRUE='#' 24056 NEED_LIBOPTS_FALSE= 24057fi 24058 24059 24060 24061 LIBOPTS_DIR=libopts 24062 24063 24064# end of AC_DEFUN of LIBOPTS_CHECK_COMMON 24065 24066 24067 if test -z "$NEED_LIBOPTS_TRUE"; then : 24068 24069 24070 24071 # Check to see if a reg expr header is specified. 24072 24073 24074# Check whether --with-regex-header was given. 24075if test "${with_regex_header+set}" = set; then : 24076 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header} 24077else 24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5 24079$as_echo_n "checking whether a reg expr header is specified... " >&6; } 24080if ${libopts_cv_with_regex_header+:} false; then : 24081 $as_echo_n "(cached) " >&6 24082else 24083 libopts_cv_with_regex_header=no 24084fi 24085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5 24086$as_echo "$libopts_cv_with_regex_header" >&6; } 24087 24088fi 24089 # end of AC_ARG_WITH 24090 if test "X${libopts_cv_with_regex_header}" != Xno 24091 then 24092 cat >>confdefs.h <<_ACEOF 24093#define REGEX_HEADER <${libopts_cv_with_regex_header}> 24094_ACEOF 24095 24096 else 24097 24098$as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h 24099 24100 fi 24101 24102 24103 24104 # Check to see if a working libregex can be found. 24105 24106 24107# Check whether --with-libregex was given. 24108if test "${with_libregex+set}" = set; then : 24109 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex} 24110else 24111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5 24112$as_echo_n "checking whether with-libregex was specified... " >&6; } 24113if ${libopts_cv_with_libregex_root+:} false; then : 24114 $as_echo_n "(cached) " >&6 24115else 24116 libopts_cv_with_libregex_root=no 24117fi 24118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5 24119$as_echo "$libopts_cv_with_libregex_root" >&6; } 24120 24121fi 24122 # end of AC_ARG_WITH libregex 24123 24124 if test "${with_libregex+set}" = set && \ 24125 test "X${withval}" = Xno 24126 then ## disabled by request 24127 libopts_cv_with_libregex_root=no 24128 libopts_cv_with_libregex_cflags=no 24129 libopts_cv_with_libregex_libs=no 24130 else 24131 24132 24133# Check whether --with-libregex-cflags was given. 24134if test "${with_libregex_cflags+set}" = set; then : 24135 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags} 24136else 24137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5 24138$as_echo_n "checking whether with-libregex-cflags was specified... " >&6; } 24139if ${libopts_cv_with_libregex_cflags+:} false; then : 24140 $as_echo_n "(cached) " >&6 24141else 24142 libopts_cv_with_libregex_cflags=no 24143fi 24144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5 24145$as_echo "$libopts_cv_with_libregex_cflags" >&6; } 24146 24147fi 24148 # end of AC_ARG_WITH libregex-cflags 24149 24150 24151# Check whether --with-libregex-libs was given. 24152if test "${with_libregex_libs+set}" = set; then : 24153 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs} 24154else 24155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5 24156$as_echo_n "checking whether with-libregex-libs was specified... " >&6; } 24157if ${libopts_cv_with_libregex_libs+:} false; then : 24158 $as_echo_n "(cached) " >&6 24159else 24160 libopts_cv_with_libregex_libs=no 24161fi 24162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5 24163$as_echo "$libopts_cv_with_libregex_libs" >&6; } 24164 24165fi 24166 # end of AC_ARG_WITH libregex-libs 24167 24168 case "X${libopts_cv_with_libregex_cflags}" in 24169 Xyes|Xno|X ) 24170 case "X${libopts_cv_with_libregex_root}" in 24171 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;; 24172 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;; 24173 esac 24174 esac 24175 case "X${libopts_cv_with_libregex_libs}" in 24176 Xyes|Xno|X ) 24177 case "X${libopts_cv_with_libregex_root}" in 24178 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;; 24179 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;; 24180 esac 24181 esac 24182 libopts_save_CPPFLAGS="${CPPFLAGS}" 24183 libopts_save_LIBS="${LIBS}" 24184 case "X${libopts_cv_with_libregex_cflags}" in 24185 Xyes|Xno|X ) 24186 libopts_cv_with_libregex_cflags="" ;; 24187 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;; 24188 esac 24189 case "X${libopts_cv_with_libregex_libs}" in 24190 Xyes|Xno|X ) 24191 libopts_cv_with_libregex_libs="" ;; 24192 * ) 24193 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;; 24194 esac 24195 LIBREGEX_CFLAGS="" 24196 LIBREGEX_LIBS="" 24197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5 24198$as_echo_n "checking whether libregex functions properly... " >&6; } 24199 if ${libopts_cv_with_libregex+:} false; then : 24200 $as_echo_n "(cached) " >&6 24201else 24202 24203 if test "$cross_compiling" = yes; then : 24204 libopts_cv_with_libregex=no 24205else 24206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24207/* end confdefs.h. */ 24208#include <stdio.h> 24209#include <stdlib.h> 24210#include <sys/types.h> 24211#include REGEX_HEADER 24212static regex_t re; 24213void comp_re(char const * pzPat) { 24214 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE ); 24215 if (res == 0) return; 24216 exit( res ); } 24217int main() { 24218 regmatch_t m[2]; 24219 comp_re( "^.*\$" ); 24220 comp_re( "()|no.*" ); 24221 comp_re( "." ); 24222 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1; 24223 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) { 24224 fputs( "error: regex -->.<-- did not match\n", stderr ); 24225 return 1; 24226 } 24227 return 0; } 24228_ACEOF 24229if ac_fn_c_try_run "$LINENO"; then : 24230 libopts_cv_with_libregex=yes 24231else 24232 libopts_cv_with_libregex=no 24233fi 24234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24235 conftest.$ac_objext conftest.beam conftest.$ac_ext 24236fi 24237 # end of AC_RUN_IFELSE 24238 24239fi 24240 # end of AC_CACHE_VAL for libopts_cv_with_libregex 24241 fi ## disabled by request 24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5 24243$as_echo "${libopts_cv_with_libregex}" >&6; } 24244 if test "X${libopts_cv_with_libregex}" != Xno 24245 then 24246 24247$as_echo "#define WITH_LIBREGEX 1" >>confdefs.h 24248 24249 else 24250 CPPFLAGS="${libopts_save_CPPFLAGS}" 24251 LIBS="${libopts_save_LIBS}" 24252 libopts_cv_with_libregex_root=no 24253libopts_cv_with_libregex_cflags=no 24254libopts_cv_with_libregex_libs=no 24255libopts_cv_with_libregex=no 24256 fi 24257 24258 24259 24260 # Check to see if pathfind(3) works. 24261 24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5 24263$as_echo_n "checking whether pathfind(3) works... " >&6; } 24264 if ${libopts_cv_run_pathfind+:} false; then : 24265 $as_echo_n "(cached) " >&6 24266else 24267 24268 if test "$cross_compiling" = yes; then : 24269 libopts_cv_run_pathfind=no 24270 24271else 24272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24273/* end confdefs.h. */ 24274#include <string.h> 24275#include <stdlib.h> 24276int main (int argc, char ** argv) { 24277 char * pz = pathfind( getenv( "PATH" ), "sh", "x" ); 24278 return (pz == 0) ? 1 : 0; 24279} 24280_ACEOF 24281if ac_fn_c_try_run "$LINENO"; then : 24282 libopts_cv_run_pathfind=yes 24283else 24284 libopts_cv_run_pathfind=no 24285fi 24286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24287 conftest.$ac_objext conftest.beam conftest.$ac_ext 24288fi 24289 # end of RUN_IFELSE 24290 24291fi 24292 # end of AC_CACHE_VAL for libopts_cv_run_pathfind 24293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5 24294$as_echo "${libopts_cv_run_pathfind}" >&6; } 24295 if test "X${libopts_cv_run_pathfind}" != Xno 24296 then 24297 24298$as_echo "#define HAVE_PATHFIND 1" >>confdefs.h 24299 24300 fi 24301 24302 24303 24304 # Check to see if /dev/zero is readable device. 24305 24306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5 24307$as_echo_n "checking whether /dev/zero is readable device... " >&6; } 24308 if ${libopts_cv_test_dev_zero+:} false; then : 24309 $as_echo_n "(cached) " >&6 24310else 24311 24312 libopts_cv_test_dev_zero=`exec 2> /dev/null 24313dzero=\`ls -lL /dev/zero | egrep ^c......r\` 24314test -z "${dzero}" && exit 1 24315echo ${dzero}` 24316 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero" 24317 then libopts_cv_test_dev_zero=no 24318 fi 24319 24320fi 24321 # end of CACHE_VAL of libopts_cv_test_dev_zero 24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5 24323$as_echo "${libopts_cv_test_dev_zero}" >&6; } 24324 if test "X${libopts_cv_test_dev_zero}" != Xno 24325 then 24326 24327$as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h 24328 24329 fi 24330 24331 24332 24333 # Check to see if we have a functional realpath(3C). 24334 24335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5 24336$as_echo_n "checking whether we have a functional realpath(3C)... " >&6; } 24337 if ${libopts_cv_run_realpath+:} false; then : 24338 $as_echo_n "(cached) " >&6 24339else 24340 24341 if test "$cross_compiling" = yes; then : 24342 libopts_cv_run_realpath=no 24343 24344else 24345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24346/* end confdefs.h. */ 24347#include <limits.h> 24348#include <stdlib.h> 24349int main (int argc, char ** argv) { 24350#ifndef PATH_MAX 24351choke me!! 24352#else 24353 char zPath[PATH_MAX+1]; 24354#endif 24355 char *pz = realpath(argv[0], zPath); 24356 return (pz == zPath) ? 0 : 1; 24357} 24358_ACEOF 24359if ac_fn_c_try_run "$LINENO"; then : 24360 libopts_cv_run_realpath=yes 24361else 24362 libopts_cv_run_realpath=no 24363fi 24364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24365 conftest.$ac_objext conftest.beam conftest.$ac_ext 24366fi 24367 # end of RUN_IFELSE 24368 24369fi 24370 # end of AC_CACHE_VAL for libopts_cv_run_realpath 24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5 24372$as_echo "${libopts_cv_run_realpath}" >&6; } 24373 if test "X${libopts_cv_run_realpath}" != Xno 24374 then 24375 24376$as_echo "#define HAVE_REALPATH 1" >>confdefs.h 24377 24378 fi 24379 24380 24381 24382 # Check to see if strftime() works. 24383 24384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5 24385$as_echo_n "checking whether strftime() works... " >&6; } 24386 if ${libopts_cv_run_strftime+:} false; then : 24387 $as_echo_n "(cached) " >&6 24388else 24389 24390 if test "$cross_compiling" = yes; then : 24391 libopts_cv_run_strftime=no 24392 24393else 24394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24395/* end confdefs.h. */ 24396#include <time.h> 24397#include <string.h> 24398char t_buf[ 64 ]; 24399int main() { 24400 static char const z[] = "Thursday Aug 28 240"; 24401 struct tm tm; 24402 tm.tm_sec = 36; /* seconds after the minute [0, 61] */ 24403 tm.tm_min = 44; /* minutes after the hour [0, 59] */ 24404 tm.tm_hour = 12; /* hour since midnight [0, 23] */ 24405 tm.tm_mday = 28; /* day of the month [1, 31] */ 24406 tm.tm_mon = 7; /* months since January [0, 11] */ 24407 tm.tm_year = 86; /* years since 1900 */ 24408 tm.tm_wday = 4; /* days since Sunday [0, 6] */ 24409 tm.tm_yday = 239; /* days since January 1 [0, 365] */ 24410 tm.tm_isdst = 1; /* flag for daylight savings time */ 24411 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm ); 24412 return (strcmp( t_buf, z ) != 0); } 24413_ACEOF 24414if ac_fn_c_try_run "$LINENO"; then : 24415 libopts_cv_run_strftime=yes 24416else 24417 libopts_cv_run_strftime=no 24418fi 24419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24420 conftest.$ac_objext conftest.beam conftest.$ac_ext 24421fi 24422 # end of RUN_IFELSE 24423 24424fi 24425 # end of AC_CACHE_VAL for libopts_cv_run_strftime 24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5 24427$as_echo "${libopts_cv_run_strftime}" >&6; } 24428 if test "X${libopts_cv_run_strftime}" != Xno 24429 then 24430 24431$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 24432 24433 fi 24434 24435 24436 24437 # Check to see if fopen accepts "b" mode. 24438 24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5 24440$as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; } 24441 if ${libopts_cv_run_fopen_binary+:} false; then : 24442 $as_echo_n "(cached) " >&6 24443else 24444 24445 if test "$cross_compiling" = yes; then : 24446 libopts_cv_run_fopen_binary=no 24447 24448else 24449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24450/* end confdefs.h. */ 24451#include <stdio.h> 24452int main (int argc, char ** argv) { 24453FILE * fp = fopen("conftest.$ac_ext", "rb"); 24454return (fp == NULL) ? 1 : fclose(fp); } 24455_ACEOF 24456if ac_fn_c_try_run "$LINENO"; then : 24457 libopts_cv_run_fopen_binary=yes 24458else 24459 libopts_cv_run_fopen_binary=no 24460fi 24461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24462 conftest.$ac_objext conftest.beam conftest.$ac_ext 24463fi 24464 # end of RUN_IFELSE 24465 24466fi 24467 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary 24468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5 24469$as_echo "${libopts_cv_run_fopen_binary}" >&6; } 24470 if test "X${libopts_cv_run_fopen_binary}" != Xno 24471 then 24472 24473$as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h 24474 24475 else 24476 24477$as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h 24478 24479 fi 24480 24481 24482 24483 # Check to see if fopen accepts "t" mode. 24484 24485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5 24486$as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; } 24487 if ${libopts_cv_run_fopen_text+:} false; then : 24488 $as_echo_n "(cached) " >&6 24489else 24490 24491 if test "$cross_compiling" = yes; then : 24492 libopts_cv_run_fopen_text=no 24493 24494else 24495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24496/* end confdefs.h. */ 24497#include <stdio.h> 24498int main (int argc, char ** argv) { 24499FILE * fp = fopen("conftest.$ac_ext", "rt"); 24500return (fp == NULL) ? 1 : fclose(fp); } 24501_ACEOF 24502if ac_fn_c_try_run "$LINENO"; then : 24503 libopts_cv_run_fopen_text=yes 24504else 24505 libopts_cv_run_fopen_text=no 24506fi 24507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24508 conftest.$ac_objext conftest.beam conftest.$ac_ext 24509fi 24510 # end of RUN_IFELSE 24511 24512fi 24513 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text 24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5 24515$as_echo "${libopts_cv_run_fopen_text}" >&6; } 24516 if test "X${libopts_cv_run_fopen_text}" != Xno 24517 then 24518 24519$as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h 24520 24521 else 24522 24523$as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h 24524 24525 fi 24526 24527 24528 24529 # Check to see if not wanting optional option args. 24530 24531 # Check whether --enable-optional-args was given. 24532if test "${enable_optional_args+set}" = set; then : 24533 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args} 24534else 24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5 24536$as_echo_n "checking whether not wanting optional option args... " >&6; } 24537if ${libopts_cv_enable_optional_args+:} false; then : 24538 $as_echo_n "(cached) " >&6 24539else 24540 libopts_cv_enable_optional_args=yes 24541fi 24542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5 24543$as_echo "$libopts_cv_enable_optional_args" >&6; } 24544 24545fi 24546 # end of AC_ARG_ENABLE 24547 if test "X${libopts_cv_enable_optional_args}" = Xno 24548 then 24549 24550$as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h 24551 24552 fi 24553 24554 24555 24556 24557 24558 fi 24559 ac_config_files="$ac_config_files libopts/Makefile" 24560 24561 # end of AC_DEFUN of LIBOPTS_CHECK 24562 24563 24564# From when we only used libevent for sntp: 24565#AM_COND_IF( 24566# [BUILD_SNTP], 24567# [NTP_LIBEVENT_CHECK], 24568# [NTP_LIBEVENT_CHECK_NOBUILD] 24569#) 24570 24571 24572 24573ntp_pkgconfig_min_version='0.15.0' 24574if test -n "$ac_tool_prefix"; then 24575 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24576set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24578$as_echo_n "checking for $ac_word... " >&6; } 24579if ${ac_cv_path_PKG_CONFIG+:} false; then : 24580 $as_echo_n "(cached) " >&6 24581else 24582 case $PKG_CONFIG in 24583 [\\/]* | ?:[\\/]*) 24584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24585 ;; 24586 *) 24587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24588for as_dir in $PATH 24589do 24590 IFS=$as_save_IFS 24591 test -z "$as_dir" && as_dir=. 24592 for ac_exec_ext in '' $ac_executable_extensions; do 24593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24594 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24596 break 2 24597 fi 24598done 24599 done 24600IFS=$as_save_IFS 24601 24602 ;; 24603esac 24604fi 24605PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24606if test -n "$PKG_CONFIG"; then 24607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24608$as_echo "$PKG_CONFIG" >&6; } 24609else 24610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24611$as_echo "no" >&6; } 24612fi 24613 24614 24615fi 24616if test -z "$ac_cv_path_PKG_CONFIG"; then 24617 ac_pt_PKG_CONFIG=$PKG_CONFIG 24618 # Extract the first word of "pkg-config", so it can be a program name with args. 24619set dummy pkg-config; ac_word=$2 24620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24621$as_echo_n "checking for $ac_word... " >&6; } 24622if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24623 $as_echo_n "(cached) " >&6 24624else 24625 case $ac_pt_PKG_CONFIG in 24626 [\\/]* | ?:[\\/]*) 24627 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24628 ;; 24629 *) 24630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24631for as_dir in $PATH 24632do 24633 IFS=$as_save_IFS 24634 test -z "$as_dir" && as_dir=. 24635 for ac_exec_ext in '' $ac_executable_extensions; do 24636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24637 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24639 break 2 24640 fi 24641done 24642 done 24643IFS=$as_save_IFS 24644 24645 ;; 24646esac 24647fi 24648ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24649if test -n "$ac_pt_PKG_CONFIG"; then 24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24651$as_echo "$ac_pt_PKG_CONFIG" >&6; } 24652else 24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24654$as_echo "no" >&6; } 24655fi 24656 24657 if test "x$ac_pt_PKG_CONFIG" = x; then 24658 PKG_CONFIG="" 24659 else 24660 case $cross_compiling:$ac_tool_warned in 24661yes:) 24662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24664ac_tool_warned=yes ;; 24665esac 24666 PKG_CONFIG=$ac_pt_PKG_CONFIG 24667 fi 24668else 24669 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24670fi 24671 24672{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;} 24673{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 24674 24675case "$PKG_CONFIG" in 24676 /*) 24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5 24678$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; } 24679 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 24680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24681$as_echo "yes" >&6; } 24682 else 24683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24684$as_echo "no" >&6; } 24685 PKG_CONFIG="" 24686 fi 24687 ;; 24688esac 24689 24690 24691 24692 24693# Check whether --enable-local-libevent was given. 24694if test "${enable_local_libevent+set}" = set; then : 24695 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval 24696else 24697 ntp_use_local_libevent=${ntp_use_local_libevent-detect} 24698 24699fi 24700 24701 24702 24703 24704 24705 24706 24707 24708 24709 24710ntp_libevent_min_version=2 24711ntp_libevent_tearoff=libevent 24712 24713 24714 24715 24716 24717case "$ntp_use_local_libevent" in 24718 yes) 24719 ;; 24720 *) # If we have (a good enough) pkg-config, see if it can find libevent 24721 case "$PKG_CONFIG" in 24722 /*) 24723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5 24724$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; } 24725 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent 24726 then 24727 ntp_use_local_libevent=no 24728 ntp_libevent_version="`$PKG_CONFIG --modversion libevent`" 24729 case "$ntp_libevent_version" in 24730 *.*) ;; 24731 *) ntp_libevent_version='(unknown)' ;; 24732 esac 24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5 24734$as_echo "yes, version $ntp_libevent_version" >&6; } 24735 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads` 24736 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent` 24737 # HMS: I hope the following is accurate. 24738 # We don't need -levent, we only need -levent_core. 24739 # While we could grab only the -L stuff, there *might* be 24740 # other flags there we want. Originally we just removed -levent 24741 # but then somebody decided to install -levent-2.0 24742 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'` 24743 # So now we dance... 24744 LDADD_LIBEVENT= 24745 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads` 24746 do 24747 case "$i" in 24748 -D*) ;; 24749 -levent*) ;; 24750 *) case "$LDADD_LIBEVENT" in 24751 '') LDADD_LIBEVENT="$i" ;; 24752 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;; 24753 esac 24754 ;; 24755 esac 24756 done 24757 case "$LIBISC_PTHREADS_NOTHREADS" in 24758 pthreads) 24759 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads" 24760 esac 24761 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core" 24762 else 24763 ntp_use_local_libevent=yes 24764 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS 24765 # is "pthreads"? 24766 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads` 24767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24768$as_echo "no" >&6; } 24769 fi 24770 ;; 24771 *) 24772 ntp_use_local_libevent=yes 24773 ;; 24774 esac 24775 ;; 24776esac 24777 24778case "$ntp_use_local_libevent" in 24779 yes) 24780 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5 24781$as_echo "$as_me: Using libevent tearoff" >&6;} 24782 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include" 24783 case "$LIBISC_PTHREADS_NOTHREADS" in 24784 pthreads) 24785 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 24786 ;; 24787 *) 24788 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 24789 esac 24790esac 24791 24792 24793 if test "x$ntp_use_local_libevent" = "xyes"; then 24794 BUILD_LIBEVENT_TRUE= 24795 BUILD_LIBEVENT_FALSE='#' 24796else 24797 BUILD_LIBEVENT_TRUE='#' 24798 BUILD_LIBEVENT_FALSE= 24799fi 24800 24801 24802 24803 24804case "$ntp_libevent_tearoff" in 24805 libevent) 24806 ;; 24807 *) 24808 as_fn_error $? "ntp_libevent.m4 dir must be libevent, not $ntp_libevent_tearoff" "$LINENO" 5 24809 ;; 24810esac 24811 24812case "$ntp_use_local_libevent" in 24813 yes) 24814 ac_configure_args=" --disable-openssl${ac_configure_args}" 24815 ac_configure_args=" --disable-shared${ac_configure_args}" 24816 ac_configure_args=" --disable-libevent-regress${ac_configure_args}" 24817 ac_configure_args=" --disable-libevent-install${ac_configure_args}" 24818 ac_configure_args=" --enable-silent-rules${ac_configure_args}" 24819 ac_configure_args=" --enable-function-sections${ac_configure_args}" 24820 ac_configure_args=" LEP_CFLAGS='${NTP_HARD_CFLAGS}'${ac_configure_args}" 24821 ac_configure_args=" LEP_CPPFLAGS='${NTP_HARD_CPPFLAGS}'${ac_configure_args}" 24822 ac_configure_args=" LEP_LDFLAGS='${NTP_HARD_LDFLAGS}'${ac_configure_args}" 24823 subdirs="$subdirs libevent" 24824 24825 ;; 24826 *) 24827 NTP_FORCE_LIBEVENT_DIST=libevent 24828 ;; 24829esac 24830 24831 24832 24833# Checks for libraries. 24834 24835 24836LIB_SYSLOG='' 24837 24838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5 24839$as_echo_n "checking for library containing openlog... " >&6; } 24840if ${ac_cv_search_openlog+:} false; then : 24841 $as_echo_n "(cached) " >&6 24842else 24843 ac_func_search_save_LIBS=$LIBS 24844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24845/* end confdefs.h. */ 24846 24847/* Override any GCC internal prototype to avoid an error. 24848 Use char because int might match the return type of a GCC 24849 builtin and then its argument prototype would still apply. */ 24850#ifdef __cplusplus 24851extern "C" 24852#endif 24853char openlog (); 24854int 24855main () 24856{ 24857return openlog (); 24858 ; 24859 return 0; 24860} 24861_ACEOF 24862for ac_lib in '' gen syslog; do 24863 if test -z "$ac_lib"; then 24864 ac_res="none required" 24865 else 24866 ac_res=-l$ac_lib 24867 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24868 fi 24869 if ac_fn_c_try_link "$LINENO"; then : 24870 ac_cv_search_openlog=$ac_res 24871fi 24872rm -f core conftest.err conftest.$ac_objext \ 24873 conftest$ac_exeext 24874 if ${ac_cv_search_openlog+:} false; then : 24875 break 24876fi 24877done 24878if ${ac_cv_search_openlog+:} false; then : 24879 24880else 24881 ac_cv_search_openlog=no 24882fi 24883rm conftest.$ac_ext 24884LIBS=$ac_func_search_save_LIBS 24885fi 24886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5 24887$as_echo "$ac_cv_search_openlog" >&6; } 24888ac_res=$ac_cv_search_openlog 24889if test "$ac_res" != no; then : 24890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24891 case "$ac_cv_search_openlog" in 24892 'none required') ;; 24893 no) ;; 24894 *) LIB_SYSLOG="$ac_cv_search_openlog $LIB_SYSLOG" ;; 24895 esac 24896 24897fi 24898 24899 24900# Checks for header files. 24901for ac_header in netdb.h string.h strings.h syslog.h 24902do : 24903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24904ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24905if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24906 cat >>confdefs.h <<_ACEOF 24907#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24908_ACEOF 24909 24910fi 24911 24912done 24913 24914 24915 24916for ac_header in sysexits.h 24917do : 24918 ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default" 24919if test "x$ac_cv_header_sysexits_h" = xyes; then : 24920 cat >>confdefs.h <<_ACEOF 24921#define HAVE_SYSEXITS_H 1 24922_ACEOF 24923 24924else 24925 24926 24927$as_echo "#define EX_OK 0" >>confdefs.h 24928 24929 24930$as_echo "#define EX_SOFTWARE 70" >>confdefs.h 24931 24932 24933fi 24934 24935done 24936 24937 24938 24939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5 24940$as_echo_n "checking for facilitynames in syslog.h... " >&6; } 24941if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then : 24942 $as_echo_n "(cached) " >&6 24943else 24944 24945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24946/* end confdefs.h. */ 24947 24948#define SYSLOG_NAMES 24949#include <stdlib.h> 24950#include <syslog.h> 24951 24952int 24953main () 24954{ 24955 void *fnames; fnames = facilitynames; 24956 ; 24957 return 0; 24958} 24959_ACEOF 24960if ac_fn_c_try_compile "$LINENO"; then : 24961 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes 24962else 24963 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no 24964fi 24965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24966fi 24967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5 24968$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; } 24969case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in 24970 yes) 24971 24972$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h 24973 24974 ;; 24975 no) 24976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5 24977$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;} 24978 ;; 24979 cross) 24980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5 24981$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;} 24982 ;; 24983esac 24984 24985 24986# Checks for typedefs, structures, and compiler characteristics. 24987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 24988$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 24989if ${ac_cv_header_stdbool_h+:} false; then : 24990 $as_echo_n "(cached) " >&6 24991else 24992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24993/* end confdefs.h. */ 24994 24995 #include <stdbool.h> 24996 #ifndef bool 24997 "error: bool is not defined" 24998 #endif 24999 #ifndef false 25000 "error: false is not defined" 25001 #endif 25002 #if false 25003 "error: false is not 0" 25004 #endif 25005 #ifndef true 25006 "error: true is not defined" 25007 #endif 25008 #if true != 1 25009 "error: true is not 1" 25010 #endif 25011 #ifndef __bool_true_false_are_defined 25012 "error: __bool_true_false_are_defined is not defined" 25013 #endif 25014 25015 struct s { _Bool s: 1; _Bool t; } s; 25016 25017 char a[true == 1 ? 1 : -1]; 25018 char b[false == 0 ? 1 : -1]; 25019 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 25020 char d[(bool) 0.5 == true ? 1 : -1]; 25021 /* See body of main program for 'e'. */ 25022 char f[(_Bool) 0.0 == false ? 1 : -1]; 25023 char g[true]; 25024 char h[sizeof (_Bool)]; 25025 char i[sizeof s.t]; 25026 enum { j = false, k = true, l = false * true, m = true * 256 }; 25027 /* The following fails for 25028 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 25029 _Bool n[m]; 25030 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 25031 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 25032 /* Catch a bug in an HP-UX C compiler. See 25033 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 25034 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 25035 */ 25036 _Bool q = true; 25037 _Bool *pq = &q; 25038 25039int 25040main () 25041{ 25042 25043 bool e = &s; 25044 *pq |= q; 25045 *pq |= ! q; 25046 /* Refer to every declared value, to avoid compiler optimizations. */ 25047 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 25048 + !m + !n + !o + !p + !q + !pq); 25049 25050 ; 25051 return 0; 25052} 25053_ACEOF 25054if ac_fn_c_try_compile "$LINENO"; then : 25055 ac_cv_header_stdbool_h=yes 25056else 25057 ac_cv_header_stdbool_h=no 25058fi 25059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25060fi 25061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 25062$as_echo "$ac_cv_header_stdbool_h" >&6; } 25063 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 25064if test "x$ac_cv_type__Bool" = xyes; then : 25065 25066cat >>confdefs.h <<_ACEOF 25067#define HAVE__BOOL 1 25068_ACEOF 25069 25070 25071fi 25072 25073 25074if test $ac_cv_header_stdbool_h = yes; then 25075 25076$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 25077 25078fi 25079 25080 25081 25082 25083 25084VER_SUFFIX= 25085 25086 25087 25088 25089# Check whether --with-crypto was given. 25090if test "${with_crypto+set}" = set; then : 25091 withval=$with_crypto; 25092fi 25093 25094 25095# Check whether --with-openssl-libdir was given. 25096if test "${with_openssl_libdir+set}" = set; then : 25097 withval=$with_openssl_libdir; 25098fi 25099 25100 25101# Check whether --with-openssl-incdir was given. 25102if test "${with_openssl_incdir+set}" = set; then : 25103 withval=$with_openssl_incdir; 25104fi 25105 25106 25107# Check whether --with-rpath was given. 25108if test "${with_rpath+set}" = set; then : 25109 withval=$with_rpath; 25110fi 25111 25112 25113ntp_openssl=no 25114ntp_openssl_from_pkg_config=no 25115 25116with_crypto=${with_crypto:-openssl,libcrypto} 25117case "$with_crypto" in 25118 yes) 25119 with_crypto=openssl,libcrypto 25120esac 25121 25122 25123case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in 25124 no:*) ;; 25125 *:notempty:notgiven:notgiven) 25126 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do 25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5 25128$as_echo_n "checking pkg-config for $pkg... " >&6; } 25129 if $PKG_CONFIG --exists $pkg ; then 25130 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`" 25131 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`" 25132 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`" 25133 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`" 25134 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`" 25135 VER_SUFFIX=o 25136 ntp_openssl=yes 25137 ntp_openssl_from_pkg_config=yes 25138 ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`" 25139 case "$ntp_openssl_version" in 25140 *.*) ;; 25141 *) ntp_openssl_version='(unknown)' ;; 25142 esac 25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5 25144$as_echo "yes, version $ntp_openssl_version" >&6; } 25145 25146 break 25147 fi 25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25149$as_echo "no" >&6; } 25150 done 25151esac 25152case "$with_crypto:$ntp_openssl" in 25153 no:*) ;; 25154 *:no) 25155 need_dash_r= 25156 need_dash_Wlrpath= 25157 case "${with_rpath-notgiven}" in 25158 yes) 25159 # Lame - what to do if we need -Wl... but not -R? 25160 need_dash_r=1 25161 ;; 25162 notgiven) 25163 case "$host" in 25164 *-*-linux*) 25165 # This may really only be true for gcc 25166 need_dash_Wlrpath=1 25167 ;; 25168 *-*-netbsd*) 25169 need_dash_r=1 25170 ;; 25171 *-*-solaris*) 25172 need_dash_r=1 25173 ;; 25174 esac 25175 ;; 25176 esac 25177 25178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5 25179$as_echo_n "checking for openssl library directory... " >&6; } 25180 with_openssl_libdir=${with_openssl_libdir-notgiven} 25181 case "$with_openssl_libdir" in 25182 notgiven) 25183 case "$build" in 25184 $host) 25185 with_openssl_libdir=default 25186 ;; 25187 *) 25188 with_openssl_libdir=no 25189 ;; 25190 esac 25191 esac 25192 case "$with_openssl_libdir" in 25193 default) 25194 # Look in: 25195 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib" 25196 with_openssl_libdir="$with_openssl_libdir /usr/local/lib" 25197 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib" 25198 esac 25199 case "$with_openssl_libdir" in 25200 no) 25201 ;; 25202 *) # Look for libcrypto.a and libssl.a: 25203 for i in $with_openssl_libdir no 25204 do 25205 case "$host" in 25206 *-*-darwin*) 25207 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break 25208 ;; 25209 *) 25210 test -f $i/libcrypto.so -a -f $i/libssl.so && break 25211 test -f $i/libcrypto.a -a -f $i/libssl.a && break 25212 ;; 25213 esac 25214 done 25215 openssl_libdir=$i 25216 ;; 25217 esac 25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5 25219$as_echo "$openssl_libdir" >&6; } 25220 case "$openssl_libdir" in 25221 no) 25222 openssl_libdir= 25223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5 25224$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;} 25225 esac 25226 25227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5 25228$as_echo_n "checking for openssl include directory... " >&6; } 25229 with_openssl_incdir=${with_openssl_incdir-notgiven} 25230 case "$with_openssl_incdir" in 25231 notgiven) 25232 # Look in: 25233 with_openssl_incdir="/usr/include /usr/sfw/include" 25234 with_openssl_incdir="$with_openssl_incdir /usr/local/include" 25235 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include" 25236 esac 25237 case "$with_openssl_incdir" in 25238 no) 25239 ;; 25240 *) # look for openssl/evp.h: 25241 for i in $with_openssl_incdir no 25242 do 25243 test -f $i/openssl/evp.h && break 25244 done 25245 openssl_incdir=$i 25246 ;; 25247 esac 25248 { i=; unset i;} 25249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5 25250$as_echo "$openssl_incdir" >&6; } 25251 case "$openssl_incdir" in 25252 no) 25253 openssl_incdir= 25254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5 25255$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;} 25256 esac 25257 if test -z "$openssl_libdir" -o -z "$openssl_incdir" 25258 then 25259 ntp_openssl=no 25260 else 25261 ntp_openssl=yes 25262 VER_SUFFIX=o 25263 fi 25264 case "$ntp_openssl" in 25265 yes) 25266 # We have OpenSSL inc/lib dirs - use them. 25267 case "$openssl_incdir" in 25268 /usr/include) 25269 ;; 25270 *) 25271 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir" 25272 ;; 25273 esac 25274 case "$openssl_libdir" in 25275 /usr/lib) 25276 ;; 25277 *) 25278 LDADD_NTP="$LDADD_NTP -L$openssl_libdir" 25279 case "$need_dash_r" in 25280 1) 25281 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir" 25282 esac 25283 case "$need_dash_Wlrpath" in 25284 1) 25285 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir" 25286 esac 25287 ;; 25288 esac 25289 LDADD_NTP="$LDADD_NTP -lcrypto" 25290 esac 25291esac 25292 25293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5 25294$as_echo_n "checking if we will use crypto... " >&6; } 25295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5 25296$as_echo "$ntp_openssl" >&6; } 25297 25298case "$ntp_openssl" in 25299 yes)
| 14741 *yes*) 14742 14743$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h 14744 14745esac 14746 14747case "$host" in 14748 *-*-darwin*) 14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 14750$as_echo_n "checking for library containing res_9_init... " >&6; } 14751if ${ac_cv_search_res_9_init+:} false; then : 14752 $as_echo_n "(cached) " >&6 14753else 14754 ac_func_search_save_LIBS=$LIBS 14755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14756/* end confdefs.h. */ 14757 14758/* Override any GCC internal prototype to avoid an error. 14759 Use char because int might match the return type of a GCC 14760 builtin and then its argument prototype would still apply. */ 14761#ifdef __cplusplus 14762extern "C" 14763#endif 14764char res_9_init (); 14765int 14766main () 14767{ 14768return res_9_init (); 14769 ; 14770 return 0; 14771} 14772_ACEOF 14773for ac_lib in '' resolv; do 14774 if test -z "$ac_lib"; then 14775 ac_res="none required" 14776 else 14777 ac_res=-l$ac_lib 14778 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14779 fi 14780 if ac_fn_c_try_link "$LINENO"; then : 14781 ac_cv_search_res_9_init=$ac_res 14782fi 14783rm -f core conftest.err conftest.$ac_objext \ 14784 conftest$ac_exeext 14785 if ${ac_cv_search_res_9_init+:} false; then : 14786 break 14787fi 14788done 14789if ${ac_cv_search_res_9_init+:} false; then : 14790 14791else 14792 ac_cv_search_res_9_init=no 14793fi 14794rm conftest.$ac_ext 14795LIBS=$ac_func_search_save_LIBS 14796fi 14797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 14798$as_echo "$ac_cv_search_res_9_init" >&6; } 14799ac_res=$ac_cv_search_res_9_init 14800if test "$ac_res" != no; then : 14801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14802 14803fi 14804 14805 ;; 14806 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 14807$as_echo_n "checking for library containing res_init... " >&6; } 14808if ${ac_cv_search_res_init+:} false; then : 14809 $as_echo_n "(cached) " >&6 14810else 14811 ac_func_search_save_LIBS=$LIBS 14812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14813/* end confdefs.h. */ 14814 14815/* Override any GCC internal prototype to avoid an error. 14816 Use char because int might match the return type of a GCC 14817 builtin and then its argument prototype would still apply. */ 14818#ifdef __cplusplus 14819extern "C" 14820#endif 14821char res_init (); 14822int 14823main () 14824{ 14825return res_init (); 14826 ; 14827 return 0; 14828} 14829_ACEOF 14830for ac_lib in '' resolv; do 14831 if test -z "$ac_lib"; then 14832 ac_res="none required" 14833 else 14834 ac_res=-l$ac_lib 14835 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14836 fi 14837 if ac_fn_c_try_link "$LINENO"; then : 14838 ac_cv_search_res_init=$ac_res 14839fi 14840rm -f core conftest.err conftest.$ac_objext \ 14841 conftest$ac_exeext 14842 if ${ac_cv_search_res_init+:} false; then : 14843 break 14844fi 14845done 14846if ${ac_cv_search_res_init+:} false; then : 14847 14848else 14849 ac_cv_search_res_init=no 14850fi 14851rm conftest.$ac_ext 14852LIBS=$ac_func_search_save_LIBS 14853fi 14854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 14855$as_echo "$ac_cv_search_res_init" >&6; } 14856ac_res=$ac_cv_search_res_init 14857if test "$ac_res" != no; then : 14858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14859 14860fi 14861 14862 ;; 14863esac 14864for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h 14865do : 14866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14867ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H 14868# include <sys/types.h> 14869#endif 14870#ifdef HAVE_NETINET_IN_H 14871# include <netinet/in.h> /* inet_ functions / structs */ 14872#endif 14873#ifdef HAVE_ARPA_NAMESER_H 14874# include <arpa/nameser.h> /* DNS HEADER struct */ 14875#endif 14876#ifdef HAVE_NETDB_H 14877# include <netdb.h> 14878#endif 14879" 14880if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14881 cat >>confdefs.h <<_ACEOF 14882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14883_ACEOF 14884 14885fi 14886 14887done 14888 14889 14890#HMS: Why do we do this check so "early"? 14891for ac_func in res_init 14892do : 14893 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init" 14894if test "x$ac_cv_func_res_init" = xyes; then : 14895 cat >>confdefs.h <<_ACEOF 14896#define HAVE_RES_INIT 1 14897_ACEOF 14898 14899else 14900 for ac_func in __res_init 14901do : 14902 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init" 14903if test "x$ac_cv_func___res_init" = xyes; then : 14904 cat >>confdefs.h <<_ACEOF 14905#define HAVE___RES_INIT 1 14906_ACEOF 14907 14908fi 14909done 14910 14911fi 14912done 14913 14914 14915# We also need -lsocket, but we have tested for that already. 14916ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 14917if test "x$ac_cv_func_inet_ntop" = xyes; then : 14918 14919else 14920 14921$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h 14922 14923fi 14924 14925ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 14926if test "x$ac_cv_func_inet_pton" = xyes; then : 14927 14928else 14929 14930$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h 14931 14932fi 14933 14934 14935ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 14936if test "x$ac_cv_type_uintptr_t" = xyes; then : 14937 14938cat >>confdefs.h <<_ACEOF 14939#define HAVE_UINTPTR_T 1 14940_ACEOF 14941 14942 14943fi 14944ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default" 14945if test "x$ac_cv_type_int32" = xyes; then : 14946 14947cat >>confdefs.h <<_ACEOF 14948#define HAVE_INT32 1 14949_ACEOF 14950 14951 14952fi 14953ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default" 14954if test "x$ac_cv_type_u_int32" = xyes; then : 14955 14956cat >>confdefs.h <<_ACEOF 14957#define HAVE_U_INT32 1 14958_ACEOF 14959 14960 14961fi 14962 14963 14964 14965 14966case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in 14967 no::yes) 14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5 14969$as_echo_n "checking for int32 with DNS headers included... " >&6; } 14970if ${ntp_cv_type_int32_with_dns+:} false; then : 14971 $as_echo_n "(cached) " >&6 14972else 14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14974/* end confdefs.h. */ 14975 14976 #ifdef HAVE_ARPA_NAMESER_H 14977 # include <arpa/nameser.h> 14978 #endif 14979 #include <resolv.h> 14980 14981int 14982main () 14983{ 14984 14985 size_t cb = sizeof(int32); 14986 14987 14988 ; 14989 return 0; 14990} 14991_ACEOF 14992if ac_fn_c_try_compile "$LINENO"; then : 14993 ntp_cv_type_int32_with_dns=yes 14994else 14995 ntp_cv_type_int32_with_dns=no 14996 14997fi 14998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14999 15000fi 15001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5 15002$as_echo "$ntp_cv_type_int32_with_dns" >&6; } 15003 case "$ntp_cv_type_int32_with_dns" in 15004 yes) 15005 15006$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h 15007 15008 esac 15009esac 15010 15011case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in 15012 no::yes) 15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5 15014$as_echo_n "checking for u_int32 with DNS headers included... " >&6; } 15015if ${ntp_cv_type_u_int32_with_dns+:} false; then : 15016 $as_echo_n "(cached) " >&6 15017else 15018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15019/* end confdefs.h. */ 15020 15021 #ifdef HAVE_ARPA_NAMESER_H 15022 # include <arpa/nameser.h> 15023 #endif 15024 #include <resolv.h> 15025 15026int 15027main () 15028{ 15029 15030 size_t cb = sizeof(u_int32); 15031 15032 15033 ; 15034 return 0; 15035} 15036_ACEOF 15037if ac_fn_c_try_compile "$LINENO"; then : 15038 ntp_cv_type_u_int32_with_dns=yes 15039else 15040 ntp_cv_type_u_int32_with_dns=no 15041 15042fi 15043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15044 15045fi 15046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5 15047$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; } 15048 case "$ntp_cv_type_u_int32_with_dns" in 15049 yes) 15050 15051$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h 15052 15053 esac 15054esac 15055 15056for ac_header in sys/timepps.h 15057do : 15058 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" " 15059 #ifdef HAVE_SYS_TIME_H 15060 # include <sys/time.h> 15061 #endif 15062 #ifdef HAVE_ERRNO_H 15063 # include <errno.h> 15064 #endif 15065 15066 15067" 15068if test "x$ac_cv_header_sys_timepps_h" = xyes; then : 15069 cat >>confdefs.h <<_ACEOF 15070#define HAVE_SYS_TIMEPPS_H 1 15071_ACEOF 15072 15073fi 15074 15075done 15076 15077 15078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5 15079$as_echo_n "checking for struct timespec... " >&6; } 15080if ${ntp_cv_struct_timespec+:} false; then : 15081 $as_echo_n "(cached) " >&6 15082else 15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15084/* end confdefs.h. */ 15085 15086 #include <sys/time.h> 15087 /* Under SunOS, timespec is in sys/timepps.h, 15088 which needs errno.h and FRAC */ 15089 #ifdef HAVE_ERRNO_H 15090 # include <errno.h> 15091 #endif 15092 #ifdef HAVE_SYS_TIMEPPS_H 15093 # define FRAC 4294967296 15094 # include <sys/timepps.h> 15095 #endif 15096 15097int 15098main () 15099{ 15100 15101 struct timespec n; 15102 15103 15104 ; 15105 return 0; 15106} 15107_ACEOF 15108if ac_fn_c_try_compile "$LINENO"; then : 15109 ntp_cv_struct_timespec=yes 15110else 15111 ntp_cv_struct_timespec=no 15112 15113fi 15114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15115 15116fi 15117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5 15118$as_echo "$ntp_cv_struct_timespec" >&6; } 15119case "$ntp_cv_struct_timespec" in 15120 yes) 15121 15122$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 15123 15124esac 15125 15126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5 15127$as_echo_n "checking for struct ntptimeval... " >&6; } 15128if ${ntp_cv_struct_ntptimeval+:} false; then : 15129 $as_echo_n "(cached) " >&6 15130else 15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15132/* end confdefs.h. */ 15133 15134 #include <sys/time.h> 15135 #include <sys/timex.h> 15136 15137int 15138main () 15139{ 15140 15141 struct ntptimeval n; 15142 15143 15144 ; 15145 return 0; 15146} 15147_ACEOF 15148if ac_fn_c_try_compile "$LINENO"; then : 15149 ntp_cv_struct_ntptimeval=yes 15150else 15151 ntp_cv_struct_ntptimeval=no 15152 15153fi 15154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15155 15156fi 15157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5 15158$as_echo "$ntp_cv_struct_ntptimeval" >&6; } 15159case "$ntp_cv_struct_ntptimeval" in 15160 yes) 15161 15162$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h 15163 15164esac 15165 15166for ac_header in md5.h 15167do : 15168 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" " 15169 #ifdef HAVE_SYS_TYPES_H 15170 # include <sys/types.h> 15171 #endif 15172 15173 15174" 15175if test "x$ac_cv_header_md5_h" = xyes; then : 15176 cat >>confdefs.h <<_ACEOF 15177#define HAVE_MD5_H 1 15178_ACEOF 15179 15180fi 15181 15182done 15183 15184 15185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5 15186$as_echo_n "checking for library containing MD5Init... " >&6; } 15187if ${ac_cv_search_MD5Init+:} false; then : 15188 $as_echo_n "(cached) " >&6 15189else 15190 ac_func_search_save_LIBS=$LIBS 15191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15192/* end confdefs.h. */ 15193 15194/* Override any GCC internal prototype to avoid an error. 15195 Use char because int might match the return type of a GCC 15196 builtin and then its argument prototype would still apply. */ 15197#ifdef __cplusplus 15198extern "C" 15199#endif 15200char MD5Init (); 15201int 15202main () 15203{ 15204return MD5Init (); 15205 ; 15206 return 0; 15207} 15208_ACEOF 15209for ac_lib in '' md5 md; do 15210 if test -z "$ac_lib"; then 15211 ac_res="none required" 15212 else 15213 ac_res=-l$ac_lib 15214 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15215 fi 15216 if ac_fn_c_try_link "$LINENO"; then : 15217 ac_cv_search_MD5Init=$ac_res 15218fi 15219rm -f core conftest.err conftest.$ac_objext \ 15220 conftest$ac_exeext 15221 if ${ac_cv_search_MD5Init+:} false; then : 15222 break 15223fi 15224done 15225if ${ac_cv_search_MD5Init+:} false; then : 15226 15227else 15228 ac_cv_search_MD5Init=no 15229fi 15230rm conftest.$ac_ext 15231LIBS=$ac_func_search_save_LIBS 15232fi 15233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5 15234$as_echo "$ac_cv_search_MD5Init" >&6; } 15235ac_res=$ac_cv_search_MD5Init 15236if test "$ac_res" != no; then : 15237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15238 15239fi 15240 15241for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec 15242do : 15243 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15244ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15245if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15246 cat >>confdefs.h <<_ACEOF 15247#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15248_ACEOF 15249 15250fi 15251done 15252 15253 15254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5 15255$as_echo_n "checking for SIGIO... " >&6; } 15256if ${ntp_cv_hdr_def_sigio+:} false; then : 15257 $as_echo_n "(cached) " >&6 15258else 15259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15260/* end confdefs.h. */ 15261 15262 #include <signal.h> 15263 15264 #ifndef SIGIO 15265 # error 15266 #endif 15267 15268_ACEOF 15269if ac_fn_c_try_cpp "$LINENO"; then : 15270 ntp_cv_hdr_def_sigio=yes 15271else 15272 ntp_cv_hdr_def_sigio=no 15273 15274fi 15275rm -f conftest.err conftest.i conftest.$ac_ext 15276 15277fi 15278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5 15279$as_echo "$ntp_cv_hdr_def_sigio" >&6; } 15280 15281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5 15282$as_echo_n "checking if we want to use SIGIO... " >&6; } 15283ans=no 15284case "$ntp_cv_hdr_def_sigio" in 15285 yes) 15286 ans=yes 15287 case "$host" in 15288 alpha*-dec-osf4*|alpha*-dec-osf5*) 15289 ans=no 15290 ;; 15291 *-convex-*) 15292 ans=no 15293 ;; 15294 *-dec-*) 15295 ans=no 15296 ;; 15297 *-pc-cygwin*) 15298 ans=no 15299 ;; 15300 *-sni-sysv*) 15301 ans=no 15302 ;; 15303 *-stratus-vos) 15304 ans=no 15305 ;; 15306 *-univel-sysv*) 15307 ans=no 15308 ;; 15309 *-*-irix6*) 15310 ans=no 15311 ;; 15312 *-*-freebsd*) 15313 ans=no 15314 ;; 15315 *-*-*linux*) 15316 ans=no 15317 ;; 15318 *-*-unicosmp*) 15319 ans=no 15320 ;; 15321 *-*-kfreebsd*) 15322 ans=no 15323 ;; 15324 m68k-*-mint*) 15325 ans=no 15326 ;; 15327 esac 15328 ;; 15329esac 15330case "$ans" in 15331 yes) 15332 15333$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h 15334 15335esac 15336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 15337$as_echo "$ans" >&6; } 15338 15339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5 15340$as_echo_n "checking for SIGPOLL... " >&6; } 15341if ${ntp_cv_hdr_def_sigpoll+:} false; then : 15342 $as_echo_n "(cached) " >&6 15343else 15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15345/* end confdefs.h. */ 15346 15347 #include <signal.h> 15348 15349 #ifndef SIGPOLL 15350 # error 15351 #endif 15352 15353_ACEOF 15354if ac_fn_c_try_cpp "$LINENO"; then : 15355 ntp_cv_hdr_def_sigpoll=yes 15356else 15357 ntp_cv_hdr_def_sigpoll=no 15358 15359fi 15360rm -f conftest.err conftest.i conftest.$ac_ext 15361 15362fi 15363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5 15364$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; } 15365 15366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5 15367$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; } 15368ans=no 15369case "$ntp_cv_hdr_def_sigpoll" in 15370 yes) 15371 case "$host" in 15372 mips-sgi-irix*) 15373 ans=no 15374 ;; 15375 vax-dec-bsd) 15376 ans=no 15377 ;; 15378 *-pc-cygwin*) 15379 ans=no 15380 ;; 15381 *-sni-sysv*) 15382 ans=no 15383 ;; 15384 *-stratus-vos) 15385 ans=no 15386 ;; 15387 *-*-aix[4-9]*) 15388 # XXX Only verified thru AIX6 15389 ans=no 15390 ;; 15391 *-*-hpux*) 15392 ans=no 15393 ;; 15394 *-*-*linux*) 15395 ans=no 15396 ;; 15397 *-*-osf*) 15398 ans=no 15399 ;; 15400 *-*-qnx*) 15401 ans=no 15402 ;; 15403 *-*-sunos*) 15404 ans=no 15405 ;; 15406 *-*-solaris*) 15407 ans=no 15408 ;; 15409 *-*-ultrix*) 15410 ans=no 15411 ;; 15412 *-*-unicosmp*) 15413 ans=no 15414 ;; 15415 *-*-kfreebsd*) 15416 ans=no 15417 ;; 15418 *) ans=yes 15419 ;; 15420 esac 15421 ;; 15422esac 15423case "$ans" in 15424 yes) 15425 15426$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h 15427 15428esac 15429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 15430$as_echo "$ans" >&6; } 15431 15432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5 15433$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; } 15434ans=no 15435case "$ntp_cv_hdr_def_sigpoll" in 15436 yes) 15437 case "$host" in 15438 mips-sgi-irix*) 15439 ans=no 15440 ;; 15441 vax-dec-bsd) 15442 ans=no 15443 ;; 15444 *-pc-cygwin*) 15445 ans=no 15446 ;; 15447 *-sni-sysv*) 15448 ans=no 15449 ;; 15450 *-stratus-vos) 15451 ans=no 15452 ;; 15453 *-*-aix[4-9]*) 15454 # XXX Only verified thru AIX6 15455 ans=no 15456 ;; 15457 *-*-hpux*) 15458 ans=no 15459 ;; 15460 *-*-*linux*) 15461 ans=no 15462 ;; 15463 *-*-osf*) 15464 ans=no 15465 ;; 15466 *-*-sunos*) 15467 ans=no 15468 ;; 15469 *-*-ultrix*) 15470 ans=no 15471 ;; 15472 *-*-qnx*) 15473 ans=no 15474 ;; 15475 *-*-unicosmp*) 15476 ans=no 15477 ;; 15478 *-*-kfreebsd*) 15479 ans=no 15480 ;; 15481 *) ans=yes 15482 ;; 15483 esac 15484 ;; 15485esac 15486case "$ans" in 15487 yes) 15488 15489$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h 15490 15491esac 15492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 15493$as_echo "$ans" >&6; } 15494 15495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5 15496$as_echo_n "checking number of arguments to gettimeofday()... " >&6; } 15497if ${ntp_cv_func_Xettimeofday_nargs+:} false; then : 15498 $as_echo_n "(cached) " >&6 15499else 15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15501/* end confdefs.h. */ 15502 15503 #include <sys/time.h> 15504 15505int 15506main () 15507{ 15508 15509 gettimeofday(0, 0); 15510 settimeofday(0, 0); 15511 15512 15513 ; 15514 return 0; 15515} 15516_ACEOF 15517if ac_fn_c_try_compile "$LINENO"; then : 15518 ntp_cv_func_Xettimeofday_nargs=2 15519else 15520 ntp_cv_func_Xettimeofday_nargs=1 15521 15522fi 15523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15524 15525fi 15526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5 15527$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; } 15528case "$ntp_cv_func_Xettimeofday_nargs" in 15529 1) 15530 15531$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h 15532 15533esac 15534 15535for ac_func in settimeofday 15536do : 15537 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday" 15538if test "x$ac_cv_func_settimeofday" = xyes; then : 15539 cat >>confdefs.h <<_ACEOF 15540#define HAVE_SETTIMEOFDAY 1 15541_ACEOF 15542 15543else 15544 15545 case "$host" in 15546 *-*-mpeix*) ac_cv_func_settimeofday=yes 15547 esac 15548 15549fi 15550done 15551 15552 15553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5 15554$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; } 15555ntp_warning='GRONK' 15556ans=none 15557case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in 15558 yes*) 15559 ntp_warning='' 15560 ans='clock_settime()' 15561 ;; 15562 noyes*) 15563 ntp_warning='But clock_settime() would be better (if we had it)' 15564 ans='settimeofday()' 15565 ;; 15566 nonoyes) 15567 ntp_warning='Which is the worst of the three' 15568 ans='stime()' 15569 ;; 15570 *) 15571 case "$build" in 15572 $host) 15573 ntp_warning='Which leaves us with nothing to use!' 15574 esac 15575esac 15576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 15577$as_echo "$ans" >&6; } 15578case "$ntp_warning" in 15579 '') 15580 ;; 15581 *) 15582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5 15583$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;} 15584 ;; 15585esac 15586 15587 15588LDADD_LIBNTP="$LDADD_LIBNTP $LIBS" 15589LIBS=$__LIBS 15590{ __LIBS=; unset __LIBS;} 15591 15592 15593 15594# Check whether --enable-shared was given. 15595if test "${enable_shared+set}" = set; then : 15596 enableval=$enable_shared; p=${PACKAGE-default} 15597 case $enableval in 15598 yes) enable_shared=yes ;; 15599 no) enable_shared=no ;; 15600 *) 15601 enable_shared=no 15602 # Look at the argument we got. We use all the common list separators. 15603 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15604 for pkg in $enableval; do 15605 IFS=$lt_save_ifs 15606 if test "X$pkg" = "X$p"; then 15607 enable_shared=yes 15608 fi 15609 done 15610 IFS=$lt_save_ifs 15611 ;; 15612 esac 15613else 15614 enable_shared=no 15615fi 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625case `pwd` in 15626 *\ * | *\ *) 15627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 15628$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 15629esac 15630 15631 15632 15633macro_version='2.4.6' 15634macro_revision='2.4.6' 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648ltmain=$ac_aux_dir/ltmain.sh 15649 15650# Backslashify metacharacters that are still active within 15651# double-quoted strings. 15652sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 15653 15654# Same as above, but do not quote variable references. 15655double_quote_subst='s/\(["`\\]\)/\\\1/g' 15656 15657# Sed substitution to delay expansion of an escaped shell variable in a 15658# double_quote_subst'ed string. 15659delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 15660 15661# Sed substitution to delay expansion of an escaped single quote. 15662delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 15663 15664# Sed substitution to avoid accidental globbing in evaled expressions 15665no_glob_subst='s/\*/\\\*/g' 15666 15667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 15668$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 15669if ${lt_cv_path_NM+:} false; then : 15670 $as_echo_n "(cached) " >&6 15671else 15672 if test -n "$NM"; then 15673 # Let the user override the test. 15674 lt_cv_path_NM=$NM 15675else 15676 lt_nm_to_check=${ac_tool_prefix}nm 15677 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 15678 lt_nm_to_check="$lt_nm_to_check nm" 15679 fi 15680 for lt_tmp_nm in $lt_nm_to_check; do 15681 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15682 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 15683 IFS=$lt_save_ifs 15684 test -z "$ac_dir" && ac_dir=. 15685 tmp_nm=$ac_dir/$lt_tmp_nm 15686 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 15687 # Check to see if the nm accepts a BSD-compat flag. 15688 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 15689 # nm: unknown option "B" ignored 15690 # Tru64's nm complains that /dev/null is an invalid object file 15691 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 15692 case $build_os in 15693 mingw*) lt_bad_file=conftest.nm/nofile ;; 15694 *) lt_bad_file=/dev/null ;; 15695 esac 15696 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 15697 *$lt_bad_file* | *'Invalid file or object type'*) 15698 lt_cv_path_NM="$tmp_nm -B" 15699 break 2 15700 ;; 15701 *) 15702 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 15703 */dev/null*) 15704 lt_cv_path_NM="$tmp_nm -p" 15705 break 2 15706 ;; 15707 *) 15708 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 15709 continue # so that we can try to find one that supports BSD flags 15710 ;; 15711 esac 15712 ;; 15713 esac 15714 fi 15715 done 15716 IFS=$lt_save_ifs 15717 done 15718 : ${lt_cv_path_NM=no} 15719fi 15720fi 15721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 15722$as_echo "$lt_cv_path_NM" >&6; } 15723if test no != "$lt_cv_path_NM"; then 15724 NM=$lt_cv_path_NM 15725else 15726 # Didn't find any BSD compatible name lister, look for dumpbin. 15727 if test -n "$DUMPBIN"; then : 15728 # Let the user override the test. 15729 else 15730 if test -n "$ac_tool_prefix"; then 15731 for ac_prog in dumpbin "link -dump" 15732 do 15733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 15734set dummy $ac_tool_prefix$ac_prog; ac_word=$2 15735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15736$as_echo_n "checking for $ac_word... " >&6; } 15737if ${ac_cv_prog_DUMPBIN+:} false; then : 15738 $as_echo_n "(cached) " >&6 15739else 15740 if test -n "$DUMPBIN"; then 15741 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 15742else 15743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15744for as_dir in $PATH 15745do 15746 IFS=$as_save_IFS 15747 test -z "$as_dir" && as_dir=. 15748 for ac_exec_ext in '' $ac_executable_extensions; do 15749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15750 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 15751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15752 break 2 15753 fi 15754done 15755 done 15756IFS=$as_save_IFS 15757 15758fi 15759fi 15760DUMPBIN=$ac_cv_prog_DUMPBIN 15761if test -n "$DUMPBIN"; then 15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 15763$as_echo "$DUMPBIN" >&6; } 15764else 15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15766$as_echo "no" >&6; } 15767fi 15768 15769 15770 test -n "$DUMPBIN" && break 15771 done 15772fi 15773if test -z "$DUMPBIN"; then 15774 ac_ct_DUMPBIN=$DUMPBIN 15775 for ac_prog in dumpbin "link -dump" 15776do 15777 # Extract the first word of "$ac_prog", so it can be a program name with args. 15778set dummy $ac_prog; ac_word=$2 15779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15780$as_echo_n "checking for $ac_word... " >&6; } 15781if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 15782 $as_echo_n "(cached) " >&6 15783else 15784 if test -n "$ac_ct_DUMPBIN"; then 15785 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 15786else 15787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15788for as_dir in $PATH 15789do 15790 IFS=$as_save_IFS 15791 test -z "$as_dir" && as_dir=. 15792 for ac_exec_ext in '' $ac_executable_extensions; do 15793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15794 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 15795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15796 break 2 15797 fi 15798done 15799 done 15800IFS=$as_save_IFS 15801 15802fi 15803fi 15804ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 15805if test -n "$ac_ct_DUMPBIN"; then 15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 15807$as_echo "$ac_ct_DUMPBIN" >&6; } 15808else 15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15810$as_echo "no" >&6; } 15811fi 15812 15813 15814 test -n "$ac_ct_DUMPBIN" && break 15815done 15816 15817 if test "x$ac_ct_DUMPBIN" = x; then 15818 DUMPBIN=":" 15819 else 15820 case $cross_compiling:$ac_tool_warned in 15821yes:) 15822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15824ac_tool_warned=yes ;; 15825esac 15826 DUMPBIN=$ac_ct_DUMPBIN 15827 fi 15828fi 15829 15830 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 15831 *COFF*) 15832 DUMPBIN="$DUMPBIN -symbols -headers" 15833 ;; 15834 *) 15835 DUMPBIN=: 15836 ;; 15837 esac 15838 fi 15839 15840 if test : != "$DUMPBIN"; then 15841 NM=$DUMPBIN 15842 fi 15843fi 15844test -z "$NM" && NM=nm 15845 15846 15847 15848 15849 15850 15851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 15852$as_echo_n "checking the name lister ($NM) interface... " >&6; } 15853if ${lt_cv_nm_interface+:} false; then : 15854 $as_echo_n "(cached) " >&6 15855else 15856 lt_cv_nm_interface="BSD nm" 15857 echo "int some_variable = 0;" > conftest.$ac_ext 15858 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 15859 (eval "$ac_compile" 2>conftest.err) 15860 cat conftest.err >&5 15861 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 15862 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 15863 cat conftest.err >&5 15864 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 15865 cat conftest.out >&5 15866 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 15867 lt_cv_nm_interface="MS dumpbin" 15868 fi 15869 rm -f conftest* 15870fi 15871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 15872$as_echo "$lt_cv_nm_interface" >&6; } 15873 15874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 15875$as_echo_n "checking whether ln -s works... " >&6; } 15876LN_S=$as_ln_s 15877if test "$LN_S" = "ln -s"; then 15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15879$as_echo "yes" >&6; } 15880else 15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 15882$as_echo "no, using $LN_S" >&6; } 15883fi 15884 15885# find the maximum length of command line arguments 15886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 15887$as_echo_n "checking the maximum length of command line arguments... " >&6; } 15888if ${lt_cv_sys_max_cmd_len+:} false; then : 15889 $as_echo_n "(cached) " >&6 15890else 15891 i=0 15892 teststring=ABCD 15893 15894 case $build_os in 15895 msdosdjgpp*) 15896 # On DJGPP, this test can blow up pretty badly due to problems in libc 15897 # (any single argument exceeding 2000 bytes causes a buffer overrun 15898 # during glob expansion). Even if it were fixed, the result of this 15899 # check would be larger than it should be. 15900 lt_cv_sys_max_cmd_len=12288; # 12K is about right 15901 ;; 15902 15903 gnu*) 15904 # Under GNU Hurd, this test is not required because there is 15905 # no limit to the length of command line arguments. 15906 # Libtool will interpret -1 as no limit whatsoever 15907 lt_cv_sys_max_cmd_len=-1; 15908 ;; 15909 15910 cygwin* | mingw* | cegcc*) 15911 # On Win9x/ME, this test blows up -- it succeeds, but takes 15912 # about 5 minutes as the teststring grows exponentially. 15913 # Worse, since 9x/ME are not pre-emptively multitasking, 15914 # you end up with a "frozen" computer, even though with patience 15915 # the test eventually succeeds (with a max line length of 256k). 15916 # Instead, let's just punt: use the minimum linelength reported by 15917 # all of the supported platforms: 8192 (on NT/2K/XP). 15918 lt_cv_sys_max_cmd_len=8192; 15919 ;; 15920 15921 mint*) 15922 # On MiNT this can take a long time and run out of memory. 15923 lt_cv_sys_max_cmd_len=8192; 15924 ;; 15925 15926 amigaos*) 15927 # On AmigaOS with pdksh, this test takes hours, literally. 15928 # So we just punt and use a minimum line length of 8192. 15929 lt_cv_sys_max_cmd_len=8192; 15930 ;; 15931 15932 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 15933 # This has been around since 386BSD, at least. Likely further. 15934 if test -x /sbin/sysctl; then 15935 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 15936 elif test -x /usr/sbin/sysctl; then 15937 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 15938 else 15939 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 15940 fi 15941 # And add a safety zone 15942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 15943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 15944 ;; 15945 15946 interix*) 15947 # We know the value 262144 and hardcode it with a safety zone (like BSD) 15948 lt_cv_sys_max_cmd_len=196608 15949 ;; 15950 15951 os2*) 15952 # The test takes a long time on OS/2. 15953 lt_cv_sys_max_cmd_len=8192 15954 ;; 15955 15956 osf*) 15957 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 15958 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 15959 # nice to cause kernel panics so lets avoid the loop below. 15960 # First set a reasonable default. 15961 lt_cv_sys_max_cmd_len=16384 15962 # 15963 if test -x /sbin/sysconfig; then 15964 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 15965 *1*) lt_cv_sys_max_cmd_len=-1 ;; 15966 esac 15967 fi 15968 ;; 15969 sco3.2v5*) 15970 lt_cv_sys_max_cmd_len=102400 15971 ;; 15972 sysv5* | sco5v6* | sysv4.2uw2*) 15973 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 15974 if test -n "$kargmax"; then 15975 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 15976 else 15977 lt_cv_sys_max_cmd_len=32768 15978 fi 15979 ;; 15980 *) 15981 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 15982 if test -n "$lt_cv_sys_max_cmd_len" && \ 15983 test undefined != "$lt_cv_sys_max_cmd_len"; then 15984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 15985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 15986 else 15987 # Make teststring a little bigger before we do anything with it. 15988 # a 1K string should be a reasonable start. 15989 for i in 1 2 3 4 5 6 7 8; do 15990 teststring=$teststring$teststring 15991 done 15992 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 15993 # If test is not a shell built-in, we'll probably end up computing a 15994 # maximum length that is only half of the actual maximum length, but 15995 # we can't tell. 15996 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 15997 = "X$teststring$teststring"; } >/dev/null 2>&1 && 15998 test 17 != "$i" # 1/2 MB should be enough 15999 do 16000 i=`expr $i + 1` 16001 teststring=$teststring$teststring 16002 done 16003 # Only check the string length outside the loop. 16004 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 16005 teststring= 16006 # Add a significant safety factor because C++ compilers can tack on 16007 # massive amounts of additional arguments before passing them to the 16008 # linker. It appears as though 1/2 is a usable value. 16009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 16010 fi 16011 ;; 16012 esac 16013 16014fi 16015 16016if test -n "$lt_cv_sys_max_cmd_len"; then 16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 16018$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 16019else 16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 16021$as_echo "none" >&6; } 16022fi 16023max_cmd_len=$lt_cv_sys_max_cmd_len 16024 16025 16026 16027 16028 16029 16030: ${CP="cp -f"} 16031: ${MV="mv -f"} 16032: ${RM="rm -f"} 16033 16034if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 16035 lt_unset=unset 16036else 16037 lt_unset=false 16038fi 16039 16040 16041 16042 16043 16044# test EBCDIC or ASCII 16045case `echo X|tr X '\101'` in 16046 A) # ASCII based system 16047 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 16048 lt_SP2NL='tr \040 \012' 16049 lt_NL2SP='tr \015\012 \040\040' 16050 ;; 16051 *) # EBCDIC based system 16052 lt_SP2NL='tr \100 \n' 16053 lt_NL2SP='tr \r\n \100\100' 16054 ;; 16055esac 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 16066$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 16067if ${lt_cv_to_host_file_cmd+:} false; then : 16068 $as_echo_n "(cached) " >&6 16069else 16070 case $host in 16071 *-*-mingw* ) 16072 case $build in 16073 *-*-mingw* ) # actually msys 16074 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 16075 ;; 16076 *-*-cygwin* ) 16077 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 16078 ;; 16079 * ) # otherwise, assume *nix 16080 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 16081 ;; 16082 esac 16083 ;; 16084 *-*-cygwin* ) 16085 case $build in 16086 *-*-mingw* ) # actually msys 16087 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 16088 ;; 16089 *-*-cygwin* ) 16090 lt_cv_to_host_file_cmd=func_convert_file_noop 16091 ;; 16092 * ) # otherwise, assume *nix 16093 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 16094 ;; 16095 esac 16096 ;; 16097 * ) # unhandled hosts (and "normal" native builds) 16098 lt_cv_to_host_file_cmd=func_convert_file_noop 16099 ;; 16100esac 16101 16102fi 16103 16104to_host_file_cmd=$lt_cv_to_host_file_cmd 16105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 16106$as_echo "$lt_cv_to_host_file_cmd" >&6; } 16107 16108 16109 16110 16111 16112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 16113$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 16114if ${lt_cv_to_tool_file_cmd+:} false; then : 16115 $as_echo_n "(cached) " >&6 16116else 16117 #assume ordinary cross tools, or native build. 16118lt_cv_to_tool_file_cmd=func_convert_file_noop 16119case $host in 16120 *-*-mingw* ) 16121 case $build in 16122 *-*-mingw* ) # actually msys 16123 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 16124 ;; 16125 esac 16126 ;; 16127esac 16128 16129fi 16130 16131to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 16133$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 16134 16135 16136 16137 16138 16139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 16140$as_echo_n "checking for $LD option to reload object files... " >&6; } 16141if ${lt_cv_ld_reload_flag+:} false; then : 16142 $as_echo_n "(cached) " >&6 16143else 16144 lt_cv_ld_reload_flag='-r' 16145fi 16146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 16147$as_echo "$lt_cv_ld_reload_flag" >&6; } 16148reload_flag=$lt_cv_ld_reload_flag 16149case $reload_flag in 16150"" | " "*) ;; 16151*) reload_flag=" $reload_flag" ;; 16152esac 16153reload_cmds='$LD$reload_flag -o $output$reload_objs' 16154case $host_os in 16155 cygwin* | mingw* | pw32* | cegcc*) 16156 if test yes != "$GCC"; then 16157 reload_cmds=false 16158 fi 16159 ;; 16160 darwin*) 16161 if test yes = "$GCC"; then 16162 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 16163 else 16164 reload_cmds='$LD$reload_flag -o $output$reload_objs' 16165 fi 16166 ;; 16167esac 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177if test -n "$ac_tool_prefix"; then 16178 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 16179set dummy ${ac_tool_prefix}objdump; ac_word=$2 16180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16181$as_echo_n "checking for $ac_word... " >&6; } 16182if ${ac_cv_prog_OBJDUMP+:} false; then : 16183 $as_echo_n "(cached) " >&6 16184else 16185 if test -n "$OBJDUMP"; then 16186 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 16187else 16188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16189for as_dir in $PATH 16190do 16191 IFS=$as_save_IFS 16192 test -z "$as_dir" && as_dir=. 16193 for ac_exec_ext in '' $ac_executable_extensions; do 16194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16195 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 16196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16197 break 2 16198 fi 16199done 16200 done 16201IFS=$as_save_IFS 16202 16203fi 16204fi 16205OBJDUMP=$ac_cv_prog_OBJDUMP 16206if test -n "$OBJDUMP"; then 16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 16208$as_echo "$OBJDUMP" >&6; } 16209else 16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16211$as_echo "no" >&6; } 16212fi 16213 16214 16215fi 16216if test -z "$ac_cv_prog_OBJDUMP"; then 16217 ac_ct_OBJDUMP=$OBJDUMP 16218 # Extract the first word of "objdump", so it can be a program name with args. 16219set dummy objdump; ac_word=$2 16220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16221$as_echo_n "checking for $ac_word... " >&6; } 16222if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 16223 $as_echo_n "(cached) " >&6 16224else 16225 if test -n "$ac_ct_OBJDUMP"; then 16226 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 16227else 16228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16229for as_dir in $PATH 16230do 16231 IFS=$as_save_IFS 16232 test -z "$as_dir" && as_dir=. 16233 for ac_exec_ext in '' $ac_executable_extensions; do 16234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16235 ac_cv_prog_ac_ct_OBJDUMP="objdump" 16236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16237 break 2 16238 fi 16239done 16240 done 16241IFS=$as_save_IFS 16242 16243fi 16244fi 16245ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 16246if test -n "$ac_ct_OBJDUMP"; then 16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 16248$as_echo "$ac_ct_OBJDUMP" >&6; } 16249else 16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16251$as_echo "no" >&6; } 16252fi 16253 16254 if test "x$ac_ct_OBJDUMP" = x; then 16255 OBJDUMP="false" 16256 else 16257 case $cross_compiling:$ac_tool_warned in 16258yes:) 16259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16261ac_tool_warned=yes ;; 16262esac 16263 OBJDUMP=$ac_ct_OBJDUMP 16264 fi 16265else 16266 OBJDUMP="$ac_cv_prog_OBJDUMP" 16267fi 16268 16269test -z "$OBJDUMP" && OBJDUMP=objdump 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 16280$as_echo_n "checking how to recognize dependent libraries... " >&6; } 16281if ${lt_cv_deplibs_check_method+:} false; then : 16282 $as_echo_n "(cached) " >&6 16283else 16284 lt_cv_file_magic_cmd='$MAGIC_CMD' 16285lt_cv_file_magic_test_file= 16286lt_cv_deplibs_check_method='unknown' 16287# Need to set the preceding variable on all platforms that support 16288# interlibrary dependencies. 16289# 'none' -- dependencies not supported. 16290# 'unknown' -- same as none, but documents that we really don't know. 16291# 'pass_all' -- all dependencies passed with no checks. 16292# 'test_compile' -- check by making test program. 16293# 'file_magic [[regex]]' -- check by looking for files in library path 16294# that responds to the $file_magic_cmd with a given extended regex. 16295# If you have 'file' or equivalent on your system and you're not sure 16296# whether 'pass_all' will *always* work, you probably want this one. 16297 16298case $host_os in 16299aix[4-9]*) 16300 lt_cv_deplibs_check_method=pass_all 16301 ;; 16302 16303beos*) 16304 lt_cv_deplibs_check_method=pass_all 16305 ;; 16306 16307bsdi[45]*) 16308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 16309 lt_cv_file_magic_cmd='/usr/bin/file -L' 16310 lt_cv_file_magic_test_file=/shlib/libc.so 16311 ;; 16312 16313cygwin*) 16314 # func_win32_libid is a shell function defined in ltmain.sh 16315 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 16316 lt_cv_file_magic_cmd='func_win32_libid' 16317 ;; 16318 16319mingw* | pw32*) 16320 # Base MSYS/MinGW do not provide the 'file' command needed by 16321 # func_win32_libid shell function, so use a weaker test based on 'objdump', 16322 # unless we find 'file', for example because we are cross-compiling. 16323 if ( file / ) >/dev/null 2>&1; then 16324 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 16325 lt_cv_file_magic_cmd='func_win32_libid' 16326 else 16327 # Keep this pattern in sync with the one in func_win32_libid. 16328 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 16329 lt_cv_file_magic_cmd='$OBJDUMP -f' 16330 fi 16331 ;; 16332 16333cegcc*) 16334 # use the weaker test based on 'objdump'. See mingw*. 16335 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 16336 lt_cv_file_magic_cmd='$OBJDUMP -f' 16337 ;; 16338 16339darwin* | rhapsody*) 16340 lt_cv_deplibs_check_method=pass_all 16341 ;; 16342 16343freebsd* | dragonfly*) 16344 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 16345 case $host_cpu in 16346 i*86 ) 16347 # Not sure whether the presence of OpenBSD here was a mistake. 16348 # Let's accept both of them until this is cleared up. 16349 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 16350 lt_cv_file_magic_cmd=/usr/bin/file 16351 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 16352 ;; 16353 esac 16354 else 16355 lt_cv_deplibs_check_method=pass_all 16356 fi 16357 ;; 16358 16359haiku*) 16360 lt_cv_deplibs_check_method=pass_all 16361 ;; 16362 16363hpux10.20* | hpux11*) 16364 lt_cv_file_magic_cmd=/usr/bin/file 16365 case $host_cpu in 16366 ia64*) 16367 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 16368 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 16369 ;; 16370 hppa*64*) 16371 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]' 16372 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 16373 ;; 16374 *) 16375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 16376 lt_cv_file_magic_test_file=/usr/lib/libc.sl 16377 ;; 16378 esac 16379 ;; 16380 16381interix[3-9]*) 16382 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 16383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 16384 ;; 16385 16386irix5* | irix6* | nonstopux*) 16387 case $LD in 16388 *-32|*"-32 ") libmagic=32-bit;; 16389 *-n32|*"-n32 ") libmagic=N32;; 16390 *-64|*"-64 ") libmagic=64-bit;; 16391 *) libmagic=never-match;; 16392 esac 16393 lt_cv_deplibs_check_method=pass_all 16394 ;; 16395 16396# This must be glibc/ELF. 16397linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16398 lt_cv_deplibs_check_method=pass_all 16399 ;; 16400 16401netbsd*) 16402 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 16403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 16404 else 16405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 16406 fi 16407 ;; 16408 16409newos6*) 16410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 16411 lt_cv_file_magic_cmd=/usr/bin/file 16412 lt_cv_file_magic_test_file=/usr/lib/libnls.so 16413 ;; 16414 16415*nto* | *qnx*) 16416 lt_cv_deplibs_check_method=pass_all 16417 ;; 16418 16419openbsd* | bitrig*) 16420 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 16422 else 16423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 16424 fi 16425 ;; 16426 16427osf3* | osf4* | osf5*) 16428 lt_cv_deplibs_check_method=pass_all 16429 ;; 16430 16431rdos*) 16432 lt_cv_deplibs_check_method=pass_all 16433 ;; 16434 16435solaris*) 16436 lt_cv_deplibs_check_method=pass_all 16437 ;; 16438 16439sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16440 lt_cv_deplibs_check_method=pass_all 16441 ;; 16442 16443sysv4 | sysv4.3*) 16444 case $host_vendor in 16445 motorola) 16446 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]' 16447 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 16448 ;; 16449 ncr) 16450 lt_cv_deplibs_check_method=pass_all 16451 ;; 16452 sequent) 16453 lt_cv_file_magic_cmd='/bin/file' 16454 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 16455 ;; 16456 sni) 16457 lt_cv_file_magic_cmd='/bin/file' 16458 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 16459 lt_cv_file_magic_test_file=/lib/libc.so 16460 ;; 16461 siemens) 16462 lt_cv_deplibs_check_method=pass_all 16463 ;; 16464 pc) 16465 lt_cv_deplibs_check_method=pass_all 16466 ;; 16467 esac 16468 ;; 16469 16470tpf*) 16471 lt_cv_deplibs_check_method=pass_all 16472 ;; 16473os2*) 16474 lt_cv_deplibs_check_method=pass_all 16475 ;; 16476esac 16477 16478fi 16479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 16480$as_echo "$lt_cv_deplibs_check_method" >&6; } 16481 16482file_magic_glob= 16483want_nocaseglob=no 16484if test "$build" = "$host"; then 16485 case $host_os in 16486 mingw* | pw32*) 16487 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 16488 want_nocaseglob=yes 16489 else 16490 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 16491 fi 16492 ;; 16493 esac 16494fi 16495 16496file_magic_cmd=$lt_cv_file_magic_cmd 16497deplibs_check_method=$lt_cv_deplibs_check_method 16498test -z "$deplibs_check_method" && deplibs_check_method=unknown 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521if test -n "$ac_tool_prefix"; then 16522 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 16523set dummy ${ac_tool_prefix}dlltool; ac_word=$2 16524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16525$as_echo_n "checking for $ac_word... " >&6; } 16526if ${ac_cv_prog_DLLTOOL+:} false; then : 16527 $as_echo_n "(cached) " >&6 16528else 16529 if test -n "$DLLTOOL"; then 16530 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 16531else 16532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16533for as_dir in $PATH 16534do 16535 IFS=$as_save_IFS 16536 test -z "$as_dir" && as_dir=. 16537 for ac_exec_ext in '' $ac_executable_extensions; do 16538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16539 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 16540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16541 break 2 16542 fi 16543done 16544 done 16545IFS=$as_save_IFS 16546 16547fi 16548fi 16549DLLTOOL=$ac_cv_prog_DLLTOOL 16550if test -n "$DLLTOOL"; then 16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 16552$as_echo "$DLLTOOL" >&6; } 16553else 16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16555$as_echo "no" >&6; } 16556fi 16557 16558 16559fi 16560if test -z "$ac_cv_prog_DLLTOOL"; then 16561 ac_ct_DLLTOOL=$DLLTOOL 16562 # Extract the first word of "dlltool", so it can be a program name with args. 16563set dummy dlltool; ac_word=$2 16564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16565$as_echo_n "checking for $ac_word... " >&6; } 16566if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 16567 $as_echo_n "(cached) " >&6 16568else 16569 if test -n "$ac_ct_DLLTOOL"; then 16570 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 16571else 16572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16573for as_dir in $PATH 16574do 16575 IFS=$as_save_IFS 16576 test -z "$as_dir" && as_dir=. 16577 for ac_exec_ext in '' $ac_executable_extensions; do 16578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16579 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 16580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16581 break 2 16582 fi 16583done 16584 done 16585IFS=$as_save_IFS 16586 16587fi 16588fi 16589ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 16590if test -n "$ac_ct_DLLTOOL"; then 16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 16592$as_echo "$ac_ct_DLLTOOL" >&6; } 16593else 16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16595$as_echo "no" >&6; } 16596fi 16597 16598 if test "x$ac_ct_DLLTOOL" = x; then 16599 DLLTOOL="false" 16600 else 16601 case $cross_compiling:$ac_tool_warned in 16602yes:) 16603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16605ac_tool_warned=yes ;; 16606esac 16607 DLLTOOL=$ac_ct_DLLTOOL 16608 fi 16609else 16610 DLLTOOL="$ac_cv_prog_DLLTOOL" 16611fi 16612 16613test -z "$DLLTOOL" && DLLTOOL=dlltool 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 16625$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 16626if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 16627 $as_echo_n "(cached) " >&6 16628else 16629 lt_cv_sharedlib_from_linklib_cmd='unknown' 16630 16631case $host_os in 16632cygwin* | mingw* | pw32* | cegcc*) 16633 # two different shell functions defined in ltmain.sh; 16634 # decide which one to use based on capabilities of $DLLTOOL 16635 case `$DLLTOOL --help 2>&1` in 16636 *--identify-strict*) 16637 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 16638 ;; 16639 *) 16640 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 16641 ;; 16642 esac 16643 ;; 16644*) 16645 # fallback: assume linklib IS sharedlib 16646 lt_cv_sharedlib_from_linklib_cmd=$ECHO 16647 ;; 16648esac 16649 16650fi 16651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 16652$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 16653sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 16654test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 16655 16656 16657 16658 16659 16660 16661 16662if test -n "$ac_tool_prefix"; then 16663 for ac_prog in ar 16664 do 16665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 16666set dummy $ac_tool_prefix$ac_prog; ac_word=$2 16667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16668$as_echo_n "checking for $ac_word... " >&6; } 16669if ${ac_cv_prog_AR+:} false; then : 16670 $as_echo_n "(cached) " >&6 16671else 16672 if test -n "$AR"; then 16673 ac_cv_prog_AR="$AR" # Let the user override the test. 16674else 16675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16676for as_dir in $PATH 16677do 16678 IFS=$as_save_IFS 16679 test -z "$as_dir" && as_dir=. 16680 for ac_exec_ext in '' $ac_executable_extensions; do 16681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16682 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 16683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16684 break 2 16685 fi 16686done 16687 done 16688IFS=$as_save_IFS 16689 16690fi 16691fi 16692AR=$ac_cv_prog_AR 16693if test -n "$AR"; then 16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 16695$as_echo "$AR" >&6; } 16696else 16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16698$as_echo "no" >&6; } 16699fi 16700 16701 16702 test -n "$AR" && break 16703 done 16704fi 16705if test -z "$AR"; then 16706 ac_ct_AR=$AR 16707 for ac_prog in ar 16708do 16709 # Extract the first word of "$ac_prog", so it can be a program name with args. 16710set dummy $ac_prog; ac_word=$2 16711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16712$as_echo_n "checking for $ac_word... " >&6; } 16713if ${ac_cv_prog_ac_ct_AR+:} false; then : 16714 $as_echo_n "(cached) " >&6 16715else 16716 if test -n "$ac_ct_AR"; then 16717 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 16718else 16719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16720for as_dir in $PATH 16721do 16722 IFS=$as_save_IFS 16723 test -z "$as_dir" && as_dir=. 16724 for ac_exec_ext in '' $ac_executable_extensions; do 16725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16726 ac_cv_prog_ac_ct_AR="$ac_prog" 16727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16728 break 2 16729 fi 16730done 16731 done 16732IFS=$as_save_IFS 16733 16734fi 16735fi 16736ac_ct_AR=$ac_cv_prog_ac_ct_AR 16737if test -n "$ac_ct_AR"; then 16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 16739$as_echo "$ac_ct_AR" >&6; } 16740else 16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16742$as_echo "no" >&6; } 16743fi 16744 16745 16746 test -n "$ac_ct_AR" && break 16747done 16748 16749 if test "x$ac_ct_AR" = x; then 16750 AR="false" 16751 else 16752 case $cross_compiling:$ac_tool_warned in 16753yes:) 16754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16756ac_tool_warned=yes ;; 16757esac 16758 AR=$ac_ct_AR 16759 fi 16760fi 16761 16762: ${AR=ar} 16763: ${AR_FLAGS=cru} 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 16776$as_echo_n "checking for archiver @FILE support... " >&6; } 16777if ${lt_cv_ar_at_file+:} false; then : 16778 $as_echo_n "(cached) " >&6 16779else 16780 lt_cv_ar_at_file=no 16781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16782/* end confdefs.h. */ 16783 16784int 16785main () 16786{ 16787 16788 ; 16789 return 0; 16790} 16791_ACEOF 16792if ac_fn_c_try_compile "$LINENO"; then : 16793 echo conftest.$ac_objext > conftest.lst 16794 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 16795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 16796 (eval $lt_ar_try) 2>&5 16797 ac_status=$? 16798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16799 test $ac_status = 0; } 16800 if test 0 -eq "$ac_status"; then 16801 # Ensure the archiver fails upon bogus file names. 16802 rm -f conftest.$ac_objext libconftest.a 16803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 16804 (eval $lt_ar_try) 2>&5 16805 ac_status=$? 16806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16807 test $ac_status = 0; } 16808 if test 0 -ne "$ac_status"; then 16809 lt_cv_ar_at_file=@ 16810 fi 16811 fi 16812 rm -f conftest.* libconftest.a 16813 16814fi 16815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16816 16817fi 16818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 16819$as_echo "$lt_cv_ar_at_file" >&6; } 16820 16821if test no = "$lt_cv_ar_at_file"; then 16822 archiver_list_spec= 16823else 16824 archiver_list_spec=$lt_cv_ar_at_file 16825fi 16826 16827 16828 16829 16830 16831 16832 16833if test -n "$ac_tool_prefix"; then 16834 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 16835set dummy ${ac_tool_prefix}strip; ac_word=$2 16836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16837$as_echo_n "checking for $ac_word... " >&6; } 16838if ${ac_cv_prog_STRIP+:} false; then : 16839 $as_echo_n "(cached) " >&6 16840else 16841 if test -n "$STRIP"; then 16842 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 16843else 16844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16845for as_dir in $PATH 16846do 16847 IFS=$as_save_IFS 16848 test -z "$as_dir" && as_dir=. 16849 for ac_exec_ext in '' $ac_executable_extensions; do 16850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16851 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 16852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16853 break 2 16854 fi 16855done 16856 done 16857IFS=$as_save_IFS 16858 16859fi 16860fi 16861STRIP=$ac_cv_prog_STRIP 16862if test -n "$STRIP"; then 16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 16864$as_echo "$STRIP" >&6; } 16865else 16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16867$as_echo "no" >&6; } 16868fi 16869 16870 16871fi 16872if test -z "$ac_cv_prog_STRIP"; then 16873 ac_ct_STRIP=$STRIP 16874 # Extract the first word of "strip", so it can be a program name with args. 16875set dummy strip; ac_word=$2 16876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16877$as_echo_n "checking for $ac_word... " >&6; } 16878if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 16879 $as_echo_n "(cached) " >&6 16880else 16881 if test -n "$ac_ct_STRIP"; then 16882 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 16883else 16884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16885for as_dir in $PATH 16886do 16887 IFS=$as_save_IFS 16888 test -z "$as_dir" && as_dir=. 16889 for ac_exec_ext in '' $ac_executable_extensions; do 16890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16891 ac_cv_prog_ac_ct_STRIP="strip" 16892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16893 break 2 16894 fi 16895done 16896 done 16897IFS=$as_save_IFS 16898 16899fi 16900fi 16901ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 16902if test -n "$ac_ct_STRIP"; then 16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 16904$as_echo "$ac_ct_STRIP" >&6; } 16905else 16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16907$as_echo "no" >&6; } 16908fi 16909 16910 if test "x$ac_ct_STRIP" = x; then 16911 STRIP=":" 16912 else 16913 case $cross_compiling:$ac_tool_warned in 16914yes:) 16915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16917ac_tool_warned=yes ;; 16918esac 16919 STRIP=$ac_ct_STRIP 16920 fi 16921else 16922 STRIP="$ac_cv_prog_STRIP" 16923fi 16924 16925test -z "$STRIP" && STRIP=: 16926 16927 16928 16929 16930 16931 16932if test -n "$ac_tool_prefix"; then 16933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 16934set dummy ${ac_tool_prefix}ranlib; ac_word=$2 16935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16936$as_echo_n "checking for $ac_word... " >&6; } 16937if ${ac_cv_prog_RANLIB+:} false; then : 16938 $as_echo_n "(cached) " >&6 16939else 16940 if test -n "$RANLIB"; then 16941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 16942else 16943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16944for as_dir in $PATH 16945do 16946 IFS=$as_save_IFS 16947 test -z "$as_dir" && as_dir=. 16948 for ac_exec_ext in '' $ac_executable_extensions; do 16949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16950 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 16951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16952 break 2 16953 fi 16954done 16955 done 16956IFS=$as_save_IFS 16957 16958fi 16959fi 16960RANLIB=$ac_cv_prog_RANLIB 16961if test -n "$RANLIB"; then 16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 16963$as_echo "$RANLIB" >&6; } 16964else 16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16966$as_echo "no" >&6; } 16967fi 16968 16969 16970fi 16971if test -z "$ac_cv_prog_RANLIB"; then 16972 ac_ct_RANLIB=$RANLIB 16973 # Extract the first word of "ranlib", so it can be a program name with args. 16974set dummy ranlib; ac_word=$2 16975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16976$as_echo_n "checking for $ac_word... " >&6; } 16977if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 16978 $as_echo_n "(cached) " >&6 16979else 16980 if test -n "$ac_ct_RANLIB"; then 16981 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 16982else 16983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16984for as_dir in $PATH 16985do 16986 IFS=$as_save_IFS 16987 test -z "$as_dir" && as_dir=. 16988 for ac_exec_ext in '' $ac_executable_extensions; do 16989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16990 ac_cv_prog_ac_ct_RANLIB="ranlib" 16991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16992 break 2 16993 fi 16994done 16995 done 16996IFS=$as_save_IFS 16997 16998fi 16999fi 17000ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 17001if test -n "$ac_ct_RANLIB"; then 17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 17003$as_echo "$ac_ct_RANLIB" >&6; } 17004else 17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17006$as_echo "no" >&6; } 17007fi 17008 17009 if test "x$ac_ct_RANLIB" = x; then 17010 RANLIB=":" 17011 else 17012 case $cross_compiling:$ac_tool_warned in 17013yes:) 17014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17016ac_tool_warned=yes ;; 17017esac 17018 RANLIB=$ac_ct_RANLIB 17019 fi 17020else 17021 RANLIB="$ac_cv_prog_RANLIB" 17022fi 17023 17024test -z "$RANLIB" && RANLIB=: 17025 17026 17027 17028 17029 17030 17031# Determine commands to create old-style static archives. 17032old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 17033old_postinstall_cmds='chmod 644 $oldlib' 17034old_postuninstall_cmds= 17035 17036if test -n "$RANLIB"; then 17037 case $host_os in 17038 bitrig* | openbsd*) 17039 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 17040 ;; 17041 *) 17042 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 17043 ;; 17044 esac 17045 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 17046fi 17047 17048case $host_os in 17049 darwin*) 17050 lock_old_archive_extraction=yes ;; 17051 *) 17052 lock_old_archive_extraction=no ;; 17053esac 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093# If no C compiler was specified, use CC. 17094LTCC=${LTCC-"$CC"} 17095 17096# If no C compiler flags were specified, use CFLAGS. 17097LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17098 17099# Allow CC to be a program name with arguments. 17100compiler=$CC 17101 17102 17103# Check for command to grab the raw symbol name followed by C symbol from nm. 17104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 17105$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 17106if ${lt_cv_sys_global_symbol_pipe+:} false; then : 17107 $as_echo_n "(cached) " >&6 17108else 17109 17110# These are sane defaults that work on at least a few old systems. 17111# [They come from Ultrix. What could be older than Ultrix?!! ;)] 17112 17113# Character class describing NM global symbol codes. 17114symcode='[BCDEGRST]' 17115 17116# Regexp to match symbols that can be accessed directly from C. 17117sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 17118 17119# Define system-specific variables. 17120case $host_os in 17121aix*) 17122 symcode='[BCDT]' 17123 ;; 17124cygwin* | mingw* | pw32* | cegcc*) 17125 symcode='[ABCDGISTW]' 17126 ;; 17127hpux*) 17128 if test ia64 = "$host_cpu"; then 17129 symcode='[ABCDEGRST]' 17130 fi 17131 ;; 17132irix* | nonstopux*) 17133 symcode='[BCDEGRST]' 17134 ;; 17135osf*) 17136 symcode='[BCDEGQRST]' 17137 ;; 17138solaris*) 17139 symcode='[BDRT]' 17140 ;; 17141sco3.2v5*) 17142 symcode='[DT]' 17143 ;; 17144sysv4.2uw2*) 17145 symcode='[DT]' 17146 ;; 17147sysv5* | sco5v6* | unixware* | OpenUNIX*) 17148 symcode='[ABDT]' 17149 ;; 17150sysv4) 17151 symcode='[DFNSTU]' 17152 ;; 17153esac 17154 17155# If we're using GNU nm, then use its standard symbol codes. 17156case `$NM -V 2>&1` in 17157*GNU* | *'with BFD'*) 17158 symcode='[ABCDGIRSTW]' ;; 17159esac 17160 17161if test "$lt_cv_nm_interface" = "MS dumpbin"; then 17162 # Gets list of data symbols to import. 17163 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 17164 # Adjust the below global symbol transforms to fixup imported variables. 17165 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 17166 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 17167 lt_c_name_lib_hook="\ 17168 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 17169 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 17170else 17171 # Disable hooks by default. 17172 lt_cv_sys_global_symbol_to_import= 17173 lt_cdecl_hook= 17174 lt_c_name_hook= 17175 lt_c_name_lib_hook= 17176fi 17177 17178# Transform an extracted symbol line into a proper C declaration. 17179# Some systems (esp. on ia64) link data and code symbols differently, 17180# so use this general approach. 17181lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 17182$lt_cdecl_hook\ 17183" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 17184" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 17185 17186# Transform an extracted symbol line into symbol name and symbol address 17187lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 17188$lt_c_name_hook\ 17189" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 17190" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 17191 17192# Transform an extracted symbol line into symbol name with lib prefix and 17193# symbol address. 17194lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 17195$lt_c_name_lib_hook\ 17196" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 17197" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 17198" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 17199 17200# Handle CRLF in mingw tool chain 17201opt_cr= 17202case $build_os in 17203mingw*) 17204 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 17205 ;; 17206esac 17207 17208# Try without a prefix underscore, then with it. 17209for ac_symprfx in "" "_"; do 17210 17211 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 17212 symxfrm="\\1 $ac_symprfx\\2 \\2" 17213 17214 # Write the raw and C identifiers. 17215 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 17216 # Fake it for dumpbin and say T for any non-static function, 17217 # D for any global variable and I for any imported variable. 17218 # Also find C++ and __fastcall symbols from MSVC++, 17219 # which start with @ or ?. 17220 lt_cv_sys_global_symbol_pipe="$AWK '"\ 17221" {last_section=section; section=\$ 3};"\ 17222" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 17223" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 17224" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 17225" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 17226" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 17227" \$ 0!~/External *\|/{next};"\ 17228" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 17229" {if(hide[section]) next};"\ 17230" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 17231" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 17232" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 17233" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 17234" ' prfx=^$ac_symprfx" 17235 else 17236 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 17237 fi 17238 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 17239 17240 # Check to see that the pipe works correctly. 17241 pipe_works=no 17242 17243 rm -f conftest* 17244 cat > conftest.$ac_ext <<_LT_EOF 17245#ifdef __cplusplus 17246extern "C" { 17247#endif 17248char nm_test_var; 17249void nm_test_func(void); 17250void nm_test_func(void){} 17251#ifdef __cplusplus 17252} 17253#endif 17254int main(){nm_test_var='a';nm_test_func();return(0);} 17255_LT_EOF 17256 17257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17258 (eval $ac_compile) 2>&5 17259 ac_status=$? 17260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17261 test $ac_status = 0; }; then 17262 # Now try to grab the symbols. 17263 nlist=conftest.nm 17264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 17265 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 17266 ac_status=$? 17267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17268 test $ac_status = 0; } && test -s "$nlist"; then 17269 # Try sorting and uniquifying the output. 17270 if sort "$nlist" | uniq > "$nlist"T; then 17271 mv -f "$nlist"T "$nlist" 17272 else 17273 rm -f "$nlist"T 17274 fi 17275 17276 # Make sure that we snagged all the symbols we need. 17277 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 17278 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 17279 cat <<_LT_EOF > conftest.$ac_ext 17280/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 17281#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 17282/* DATA imports from DLLs on WIN32 can't be const, because runtime 17283 relocations are performed -- see ld's documentation on pseudo-relocs. */ 17284# define LT_DLSYM_CONST 17285#elif defined __osf__ 17286/* This system does not cope well with relocations in const data. */ 17287# define LT_DLSYM_CONST 17288#else 17289# define LT_DLSYM_CONST const 17290#endif 17291 17292#ifdef __cplusplus 17293extern "C" { 17294#endif 17295 17296_LT_EOF 17297 # Now generate the symbol file. 17298 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 17299 17300 cat <<_LT_EOF >> conftest.$ac_ext 17301 17302/* The mapping between symbol names and symbols. */ 17303LT_DLSYM_CONST struct { 17304 const char *name; 17305 void *address; 17306} 17307lt__PROGRAM__LTX_preloaded_symbols[] = 17308{ 17309 { "@PROGRAM@", (void *) 0 }, 17310_LT_EOF 17311 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 17312 cat <<\_LT_EOF >> conftest.$ac_ext 17313 {0, (void *) 0} 17314}; 17315 17316/* This works around a problem in FreeBSD linker */ 17317#ifdef FREEBSD_WORKAROUND 17318static const void *lt_preloaded_setup() { 17319 return lt__PROGRAM__LTX_preloaded_symbols; 17320} 17321#endif 17322 17323#ifdef __cplusplus 17324} 17325#endif 17326_LT_EOF 17327 # Now try linking the two files. 17328 mv conftest.$ac_objext conftstm.$ac_objext 17329 lt_globsym_save_LIBS=$LIBS 17330 lt_globsym_save_CFLAGS=$CFLAGS 17331 LIBS=conftstm.$ac_objext 17332 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 17333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17334 (eval $ac_link) 2>&5 17335 ac_status=$? 17336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17337 test $ac_status = 0; } && test -s conftest$ac_exeext; then 17338 pipe_works=yes 17339 fi 17340 LIBS=$lt_globsym_save_LIBS 17341 CFLAGS=$lt_globsym_save_CFLAGS 17342 else 17343 echo "cannot find nm_test_func in $nlist" >&5 17344 fi 17345 else 17346 echo "cannot find nm_test_var in $nlist" >&5 17347 fi 17348 else 17349 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 17350 fi 17351 else 17352 echo "$progname: failed program was:" >&5 17353 cat conftest.$ac_ext >&5 17354 fi 17355 rm -rf conftest* conftst* 17356 17357 # Do not use the global_symbol_pipe unless it works. 17358 if test yes = "$pipe_works"; then 17359 break 17360 else 17361 lt_cv_sys_global_symbol_pipe= 17362 fi 17363done 17364 17365fi 17366 17367if test -z "$lt_cv_sys_global_symbol_pipe"; then 17368 lt_cv_sys_global_symbol_to_cdecl= 17369fi 17370if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 17372$as_echo "failed" >&6; } 17373else 17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 17375$as_echo "ok" >&6; } 17376fi 17377 17378# Response file support. 17379if test "$lt_cv_nm_interface" = "MS dumpbin"; then 17380 nm_file_list_spec='@' 17381elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 17382 nm_file_list_spec='@' 17383fi 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17422$as_echo_n "checking for sysroot... " >&6; } 17423 17424# Check whether --with-sysroot was given. 17425if test "${with_sysroot+set}" = set; then : 17426 withval=$with_sysroot; 17427else 17428 with_sysroot=no 17429fi 17430 17431 17432lt_sysroot= 17433case $with_sysroot in #( 17434 yes) 17435 if test yes = "$GCC"; then 17436 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 17437 fi 17438 ;; #( 17439 /*) 17440 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 17441 ;; #( 17442 no|'') 17443 ;; #( 17444 *) 17445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 17446$as_echo "$with_sysroot" >&6; } 17447 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 17448 ;; 17449esac 17450 17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 17452$as_echo "${lt_sysroot:-no}" >&6; } 17453 17454 17455 17456 17457 17458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 17459$as_echo_n "checking for a working dd... " >&6; } 17460if ${ac_cv_path_lt_DD+:} false; then : 17461 $as_echo_n "(cached) " >&6 17462else 17463 printf 0123456789abcdef0123456789abcdef >conftest.i 17464cat conftest.i conftest.i >conftest2.i 17465: ${lt_DD:=$DD} 17466if test -z "$lt_DD"; then 17467 ac_path_lt_DD_found=false 17468 # Loop through the user's path and test for each of PROGNAME-LIST 17469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17470for as_dir in $PATH 17471do 17472 IFS=$as_save_IFS 17473 test -z "$as_dir" && as_dir=. 17474 for ac_prog in dd; do 17475 for ac_exec_ext in '' $ac_executable_extensions; do 17476 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 17477 as_fn_executable_p "$ac_path_lt_DD" || continue 17478if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 17479 cmp -s conftest.i conftest.out \ 17480 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 17481fi 17482 $ac_path_lt_DD_found && break 3 17483 done 17484 done 17485 done 17486IFS=$as_save_IFS 17487 if test -z "$ac_cv_path_lt_DD"; then 17488 : 17489 fi 17490else 17491 ac_cv_path_lt_DD=$lt_DD 17492fi 17493 17494rm -f conftest.i conftest2.i conftest.out 17495fi 17496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 17497$as_echo "$ac_cv_path_lt_DD" >&6; } 17498 17499 17500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 17501$as_echo_n "checking how to truncate binary pipes... " >&6; } 17502if ${lt_cv_truncate_bin+:} false; then : 17503 $as_echo_n "(cached) " >&6 17504else 17505 printf 0123456789abcdef0123456789abcdef >conftest.i 17506cat conftest.i conftest.i >conftest2.i 17507lt_cv_truncate_bin= 17508if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 17509 cmp -s conftest.i conftest.out \ 17510 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 17511fi 17512rm -f conftest.i conftest2.i conftest.out 17513test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 17514fi 17515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 17516$as_echo "$lt_cv_truncate_bin" >&6; } 17517 17518 17519 17520 17521 17522 17523 17524# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 17525func_cc_basename () 17526{ 17527 for cc_temp in $*""; do 17528 case $cc_temp in 17529 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17530 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17531 \-*) ;; 17532 *) break;; 17533 esac 17534 done 17535 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 17536} 17537 17538# Check whether --enable-libtool-lock was given. 17539if test "${enable_libtool_lock+set}" = set; then : 17540 enableval=$enable_libtool_lock; 17541fi 17542 17543test no = "$enable_libtool_lock" || enable_libtool_lock=yes 17544 17545# Some flags need to be propagated to the compiler or linker for good 17546# libtool support. 17547case $host in 17548ia64-*-hpux*) 17549 # Find out what ABI is being produced by ac_compile, and set mode 17550 # options accordingly. 17551 echo 'int i;' > conftest.$ac_ext 17552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17553 (eval $ac_compile) 2>&5 17554 ac_status=$? 17555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17556 test $ac_status = 0; }; then 17557 case `/usr/bin/file conftest.$ac_objext` in 17558 *ELF-32*) 17559 HPUX_IA64_MODE=32 17560 ;; 17561 *ELF-64*) 17562 HPUX_IA64_MODE=64 17563 ;; 17564 esac 17565 fi 17566 rm -rf conftest* 17567 ;; 17568*-*-irix6*) 17569 # Find out what ABI is being produced by ac_compile, and set linker 17570 # options accordingly. 17571 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 17572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17573 (eval $ac_compile) 2>&5 17574 ac_status=$? 17575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17576 test $ac_status = 0; }; then 17577 if test yes = "$lt_cv_prog_gnu_ld"; then 17578 case `/usr/bin/file conftest.$ac_objext` in 17579 *32-bit*) 17580 LD="${LD-ld} -melf32bsmip" 17581 ;; 17582 *N32*) 17583 LD="${LD-ld} -melf32bmipn32" 17584 ;; 17585 *64-bit*) 17586 LD="${LD-ld} -melf64bmip" 17587 ;; 17588 esac 17589 else 17590 case `/usr/bin/file conftest.$ac_objext` in 17591 *32-bit*) 17592 LD="${LD-ld} -32" 17593 ;; 17594 *N32*) 17595 LD="${LD-ld} -n32" 17596 ;; 17597 *64-bit*) 17598 LD="${LD-ld} -64" 17599 ;; 17600 esac 17601 fi 17602 fi 17603 rm -rf conftest* 17604 ;; 17605 17606mips64*-*linux*) 17607 # Find out what ABI is being produced by ac_compile, and set linker 17608 # options accordingly. 17609 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 17610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17611 (eval $ac_compile) 2>&5 17612 ac_status=$? 17613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17614 test $ac_status = 0; }; then 17615 emul=elf 17616 case `/usr/bin/file conftest.$ac_objext` in 17617 *32-bit*) 17618 emul="${emul}32" 17619 ;; 17620 *64-bit*) 17621 emul="${emul}64" 17622 ;; 17623 esac 17624 case `/usr/bin/file conftest.$ac_objext` in 17625 *MSB*) 17626 emul="${emul}btsmip" 17627 ;; 17628 *LSB*) 17629 emul="${emul}ltsmip" 17630 ;; 17631 esac 17632 case `/usr/bin/file conftest.$ac_objext` in 17633 *N32*) 17634 emul="${emul}n32" 17635 ;; 17636 esac 17637 LD="${LD-ld} -m $emul" 17638 fi 17639 rm -rf conftest* 17640 ;; 17641 17642x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 17643s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 17644 # Find out what ABI is being produced by ac_compile, and set linker 17645 # options accordingly. Note that the listed cases only cover the 17646 # situations where additional linker options are needed (such as when 17647 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 17648 # vice versa); the common cases where no linker options are needed do 17649 # not appear in the list. 17650 echo 'int i;' > conftest.$ac_ext 17651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17652 (eval $ac_compile) 2>&5 17653 ac_status=$? 17654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17655 test $ac_status = 0; }; then 17656 case `/usr/bin/file conftest.o` in 17657 *32-bit*) 17658 case $host in 17659 x86_64-*kfreebsd*-gnu) 17660 LD="${LD-ld} -m elf_i386_fbsd" 17661 ;; 17662 x86_64-*linux*) 17663 case `/usr/bin/file conftest.o` in 17664 *x86-64*) 17665 LD="${LD-ld} -m elf32_x86_64" 17666 ;; 17667 *) 17668 LD="${LD-ld} -m elf_i386" 17669 ;; 17670 esac 17671 ;; 17672 powerpc64le-*linux*) 17673 LD="${LD-ld} -m elf32lppclinux" 17674 ;; 17675 powerpc64-*linux*) 17676 LD="${LD-ld} -m elf32ppclinux" 17677 ;; 17678 s390x-*linux*) 17679 LD="${LD-ld} -m elf_s390" 17680 ;; 17681 sparc64-*linux*) 17682 LD="${LD-ld} -m elf32_sparc" 17683 ;; 17684 esac 17685 ;; 17686 *64-bit*) 17687 case $host in 17688 x86_64-*kfreebsd*-gnu) 17689 LD="${LD-ld} -m elf_x86_64_fbsd" 17690 ;; 17691 x86_64-*linux*) 17692 LD="${LD-ld} -m elf_x86_64" 17693 ;; 17694 powerpcle-*linux*) 17695 LD="${LD-ld} -m elf64lppc" 17696 ;; 17697 powerpc-*linux*) 17698 LD="${LD-ld} -m elf64ppc" 17699 ;; 17700 s390*-*linux*|s390*-*tpf*) 17701 LD="${LD-ld} -m elf64_s390" 17702 ;; 17703 sparc*-*linux*) 17704 LD="${LD-ld} -m elf64_sparc" 17705 ;; 17706 esac 17707 ;; 17708 esac 17709 fi 17710 rm -rf conftest* 17711 ;; 17712 17713*-*-sco3.2v5*) 17714 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 17715 SAVE_CFLAGS=$CFLAGS 17716 CFLAGS="$CFLAGS -belf" 17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 17718$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 17719if ${lt_cv_cc_needs_belf+:} false; then : 17720 $as_echo_n "(cached) " >&6 17721else 17722 ac_ext=c 17723ac_cpp='$CPP $CPPFLAGS' 17724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17726ac_compiler_gnu=$ac_cv_c_compiler_gnu 17727 17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17729/* end confdefs.h. */ 17730 17731int 17732main () 17733{ 17734 17735 ; 17736 return 0; 17737} 17738_ACEOF 17739if ac_fn_c_try_link "$LINENO"; then : 17740 lt_cv_cc_needs_belf=yes 17741else 17742 lt_cv_cc_needs_belf=no 17743fi 17744rm -f core conftest.err conftest.$ac_objext \ 17745 conftest$ac_exeext conftest.$ac_ext 17746 ac_ext=c 17747ac_cpp='$CPP $CPPFLAGS' 17748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17750ac_compiler_gnu=$ac_cv_c_compiler_gnu 17751 17752fi 17753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 17754$as_echo "$lt_cv_cc_needs_belf" >&6; } 17755 if test yes != "$lt_cv_cc_needs_belf"; then 17756 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 17757 CFLAGS=$SAVE_CFLAGS 17758 fi 17759 ;; 17760*-*solaris*) 17761 # Find out what ABI is being produced by ac_compile, and set linker 17762 # options accordingly. 17763 echo 'int i;' > conftest.$ac_ext 17764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17765 (eval $ac_compile) 2>&5 17766 ac_status=$? 17767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17768 test $ac_status = 0; }; then 17769 case `/usr/bin/file conftest.o` in 17770 *64-bit*) 17771 case $lt_cv_prog_gnu_ld in 17772 yes*) 17773 case $host in 17774 i?86-*-solaris*|x86_64-*-solaris*) 17775 LD="${LD-ld} -m elf_x86_64" 17776 ;; 17777 sparc*-*-solaris*) 17778 LD="${LD-ld} -m elf64_sparc" 17779 ;; 17780 esac 17781 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 17782 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 17783 LD=${LD-ld}_sol2 17784 fi 17785 ;; 17786 *) 17787 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 17788 LD="${LD-ld} -64" 17789 fi 17790 ;; 17791 esac 17792 ;; 17793 esac 17794 fi 17795 rm -rf conftest* 17796 ;; 17797esac 17798 17799need_locks=$enable_libtool_lock 17800 17801if test -n "$ac_tool_prefix"; then 17802 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 17803set dummy ${ac_tool_prefix}mt; ac_word=$2 17804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17805$as_echo_n "checking for $ac_word... " >&6; } 17806if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 17807 $as_echo_n "(cached) " >&6 17808else 17809 if test -n "$MANIFEST_TOOL"; then 17810 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 17811else 17812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17813for as_dir in $PATH 17814do 17815 IFS=$as_save_IFS 17816 test -z "$as_dir" && as_dir=. 17817 for ac_exec_ext in '' $ac_executable_extensions; do 17818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17819 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 17820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17821 break 2 17822 fi 17823done 17824 done 17825IFS=$as_save_IFS 17826 17827fi 17828fi 17829MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 17830if test -n "$MANIFEST_TOOL"; then 17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 17832$as_echo "$MANIFEST_TOOL" >&6; } 17833else 17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17835$as_echo "no" >&6; } 17836fi 17837 17838 17839fi 17840if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 17841 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 17842 # Extract the first word of "mt", so it can be a program name with args. 17843set dummy mt; ac_word=$2 17844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17845$as_echo_n "checking for $ac_word... " >&6; } 17846if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 17847 $as_echo_n "(cached) " >&6 17848else 17849 if test -n "$ac_ct_MANIFEST_TOOL"; then 17850 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 17851else 17852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17853for as_dir in $PATH 17854do 17855 IFS=$as_save_IFS 17856 test -z "$as_dir" && as_dir=. 17857 for ac_exec_ext in '' $ac_executable_extensions; do 17858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17859 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 17860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17861 break 2 17862 fi 17863done 17864 done 17865IFS=$as_save_IFS 17866 17867fi 17868fi 17869ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 17870if test -n "$ac_ct_MANIFEST_TOOL"; then 17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 17872$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 17873else 17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17875$as_echo "no" >&6; } 17876fi 17877 17878 if test "x$ac_ct_MANIFEST_TOOL" = x; then 17879 MANIFEST_TOOL=":" 17880 else 17881 case $cross_compiling:$ac_tool_warned in 17882yes:) 17883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17885ac_tool_warned=yes ;; 17886esac 17887 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 17888 fi 17889else 17890 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 17891fi 17892 17893test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 17894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 17895$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 17896if ${lt_cv_path_mainfest_tool+:} false; then : 17897 $as_echo_n "(cached) " >&6 17898else 17899 lt_cv_path_mainfest_tool=no 17900 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 17901 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 17902 cat conftest.err >&5 17903 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 17904 lt_cv_path_mainfest_tool=yes 17905 fi 17906 rm -f conftest* 17907fi 17908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 17909$as_echo "$lt_cv_path_mainfest_tool" >&6; } 17910if test yes != "$lt_cv_path_mainfest_tool"; then 17911 MANIFEST_TOOL=: 17912fi 17913 17914 17915 17916 17917 17918 17919 case $host_os in 17920 rhapsody* | darwin*) 17921 if test -n "$ac_tool_prefix"; then 17922 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 17923set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 17924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17925$as_echo_n "checking for $ac_word... " >&6; } 17926if ${ac_cv_prog_DSYMUTIL+:} false; then : 17927 $as_echo_n "(cached) " >&6 17928else 17929 if test -n "$DSYMUTIL"; then 17930 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 17931else 17932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17933for as_dir in $PATH 17934do 17935 IFS=$as_save_IFS 17936 test -z "$as_dir" && as_dir=. 17937 for ac_exec_ext in '' $ac_executable_extensions; do 17938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17939 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 17940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17941 break 2 17942 fi 17943done 17944 done 17945IFS=$as_save_IFS 17946 17947fi 17948fi 17949DSYMUTIL=$ac_cv_prog_DSYMUTIL 17950if test -n "$DSYMUTIL"; then 17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 17952$as_echo "$DSYMUTIL" >&6; } 17953else 17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17955$as_echo "no" >&6; } 17956fi 17957 17958 17959fi 17960if test -z "$ac_cv_prog_DSYMUTIL"; then 17961 ac_ct_DSYMUTIL=$DSYMUTIL 17962 # Extract the first word of "dsymutil", so it can be a program name with args. 17963set dummy dsymutil; ac_word=$2 17964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17965$as_echo_n "checking for $ac_word... " >&6; } 17966if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 17967 $as_echo_n "(cached) " >&6 17968else 17969 if test -n "$ac_ct_DSYMUTIL"; then 17970 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 17971else 17972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17973for as_dir in $PATH 17974do 17975 IFS=$as_save_IFS 17976 test -z "$as_dir" && as_dir=. 17977 for ac_exec_ext in '' $ac_executable_extensions; do 17978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17979 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 17980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17981 break 2 17982 fi 17983done 17984 done 17985IFS=$as_save_IFS 17986 17987fi 17988fi 17989ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 17990if test -n "$ac_ct_DSYMUTIL"; then 17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 17992$as_echo "$ac_ct_DSYMUTIL" >&6; } 17993else 17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17995$as_echo "no" >&6; } 17996fi 17997 17998 if test "x$ac_ct_DSYMUTIL" = x; then 17999 DSYMUTIL=":" 18000 else 18001 case $cross_compiling:$ac_tool_warned in 18002yes:) 18003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18005ac_tool_warned=yes ;; 18006esac 18007 DSYMUTIL=$ac_ct_DSYMUTIL 18008 fi 18009else 18010 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 18011fi 18012 18013 if test -n "$ac_tool_prefix"; then 18014 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 18015set dummy ${ac_tool_prefix}nmedit; ac_word=$2 18016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18017$as_echo_n "checking for $ac_word... " >&6; } 18018if ${ac_cv_prog_NMEDIT+:} false; then : 18019 $as_echo_n "(cached) " >&6 18020else 18021 if test -n "$NMEDIT"; then 18022 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 18023else 18024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18025for as_dir in $PATH 18026do 18027 IFS=$as_save_IFS 18028 test -z "$as_dir" && as_dir=. 18029 for ac_exec_ext in '' $ac_executable_extensions; do 18030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18031 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 18032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18033 break 2 18034 fi 18035done 18036 done 18037IFS=$as_save_IFS 18038 18039fi 18040fi 18041NMEDIT=$ac_cv_prog_NMEDIT 18042if test -n "$NMEDIT"; then 18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 18044$as_echo "$NMEDIT" >&6; } 18045else 18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18047$as_echo "no" >&6; } 18048fi 18049 18050 18051fi 18052if test -z "$ac_cv_prog_NMEDIT"; then 18053 ac_ct_NMEDIT=$NMEDIT 18054 # Extract the first word of "nmedit", so it can be a program name with args. 18055set dummy nmedit; ac_word=$2 18056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18057$as_echo_n "checking for $ac_word... " >&6; } 18058if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 18059 $as_echo_n "(cached) " >&6 18060else 18061 if test -n "$ac_ct_NMEDIT"; then 18062 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 18063else 18064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18065for as_dir in $PATH 18066do 18067 IFS=$as_save_IFS 18068 test -z "$as_dir" && as_dir=. 18069 for ac_exec_ext in '' $ac_executable_extensions; do 18070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18071 ac_cv_prog_ac_ct_NMEDIT="nmedit" 18072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18073 break 2 18074 fi 18075done 18076 done 18077IFS=$as_save_IFS 18078 18079fi 18080fi 18081ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 18082if test -n "$ac_ct_NMEDIT"; then 18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 18084$as_echo "$ac_ct_NMEDIT" >&6; } 18085else 18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18087$as_echo "no" >&6; } 18088fi 18089 18090 if test "x$ac_ct_NMEDIT" = x; then 18091 NMEDIT=":" 18092 else 18093 case $cross_compiling:$ac_tool_warned in 18094yes:) 18095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18097ac_tool_warned=yes ;; 18098esac 18099 NMEDIT=$ac_ct_NMEDIT 18100 fi 18101else 18102 NMEDIT="$ac_cv_prog_NMEDIT" 18103fi 18104 18105 if test -n "$ac_tool_prefix"; then 18106 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 18107set dummy ${ac_tool_prefix}lipo; ac_word=$2 18108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18109$as_echo_n "checking for $ac_word... " >&6; } 18110if ${ac_cv_prog_LIPO+:} false; then : 18111 $as_echo_n "(cached) " >&6 18112else 18113 if test -n "$LIPO"; then 18114 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 18115else 18116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18117for as_dir in $PATH 18118do 18119 IFS=$as_save_IFS 18120 test -z "$as_dir" && as_dir=. 18121 for ac_exec_ext in '' $ac_executable_extensions; do 18122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18123 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 18124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18125 break 2 18126 fi 18127done 18128 done 18129IFS=$as_save_IFS 18130 18131fi 18132fi 18133LIPO=$ac_cv_prog_LIPO 18134if test -n "$LIPO"; then 18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 18136$as_echo "$LIPO" >&6; } 18137else 18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18139$as_echo "no" >&6; } 18140fi 18141 18142 18143fi 18144if test -z "$ac_cv_prog_LIPO"; then 18145 ac_ct_LIPO=$LIPO 18146 # Extract the first word of "lipo", so it can be a program name with args. 18147set dummy lipo; ac_word=$2 18148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18149$as_echo_n "checking for $ac_word... " >&6; } 18150if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 18151 $as_echo_n "(cached) " >&6 18152else 18153 if test -n "$ac_ct_LIPO"; then 18154 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 18155else 18156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18157for as_dir in $PATH 18158do 18159 IFS=$as_save_IFS 18160 test -z "$as_dir" && as_dir=. 18161 for ac_exec_ext in '' $ac_executable_extensions; do 18162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18163 ac_cv_prog_ac_ct_LIPO="lipo" 18164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18165 break 2 18166 fi 18167done 18168 done 18169IFS=$as_save_IFS 18170 18171fi 18172fi 18173ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 18174if test -n "$ac_ct_LIPO"; then 18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 18176$as_echo "$ac_ct_LIPO" >&6; } 18177else 18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18179$as_echo "no" >&6; } 18180fi 18181 18182 if test "x$ac_ct_LIPO" = x; then 18183 LIPO=":" 18184 else 18185 case $cross_compiling:$ac_tool_warned in 18186yes:) 18187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18189ac_tool_warned=yes ;; 18190esac 18191 LIPO=$ac_ct_LIPO 18192 fi 18193else 18194 LIPO="$ac_cv_prog_LIPO" 18195fi 18196 18197 if test -n "$ac_tool_prefix"; then 18198 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 18199set dummy ${ac_tool_prefix}otool; ac_word=$2 18200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18201$as_echo_n "checking for $ac_word... " >&6; } 18202if ${ac_cv_prog_OTOOL+:} false; then : 18203 $as_echo_n "(cached) " >&6 18204else 18205 if test -n "$OTOOL"; then 18206 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 18207else 18208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18209for as_dir in $PATH 18210do 18211 IFS=$as_save_IFS 18212 test -z "$as_dir" && as_dir=. 18213 for ac_exec_ext in '' $ac_executable_extensions; do 18214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18215 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 18216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18217 break 2 18218 fi 18219done 18220 done 18221IFS=$as_save_IFS 18222 18223fi 18224fi 18225OTOOL=$ac_cv_prog_OTOOL 18226if test -n "$OTOOL"; then 18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18228$as_echo "$OTOOL" >&6; } 18229else 18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18231$as_echo "no" >&6; } 18232fi 18233 18234 18235fi 18236if test -z "$ac_cv_prog_OTOOL"; then 18237 ac_ct_OTOOL=$OTOOL 18238 # Extract the first word of "otool", so it can be a program name with args. 18239set dummy otool; ac_word=$2 18240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18241$as_echo_n "checking for $ac_word... " >&6; } 18242if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 18243 $as_echo_n "(cached) " >&6 18244else 18245 if test -n "$ac_ct_OTOOL"; then 18246 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 18247else 18248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18249for as_dir in $PATH 18250do 18251 IFS=$as_save_IFS 18252 test -z "$as_dir" && as_dir=. 18253 for ac_exec_ext in '' $ac_executable_extensions; do 18254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18255 ac_cv_prog_ac_ct_OTOOL="otool" 18256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18257 break 2 18258 fi 18259done 18260 done 18261IFS=$as_save_IFS 18262 18263fi 18264fi 18265ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 18266if test -n "$ac_ct_OTOOL"; then 18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 18268$as_echo "$ac_ct_OTOOL" >&6; } 18269else 18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18271$as_echo "no" >&6; } 18272fi 18273 18274 if test "x$ac_ct_OTOOL" = x; then 18275 OTOOL=":" 18276 else 18277 case $cross_compiling:$ac_tool_warned in 18278yes:) 18279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18281ac_tool_warned=yes ;; 18282esac 18283 OTOOL=$ac_ct_OTOOL 18284 fi 18285else 18286 OTOOL="$ac_cv_prog_OTOOL" 18287fi 18288 18289 if test -n "$ac_tool_prefix"; then 18290 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 18291set dummy ${ac_tool_prefix}otool64; ac_word=$2 18292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18293$as_echo_n "checking for $ac_word... " >&6; } 18294if ${ac_cv_prog_OTOOL64+:} false; then : 18295 $as_echo_n "(cached) " >&6 18296else 18297 if test -n "$OTOOL64"; then 18298 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 18299else 18300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18301for as_dir in $PATH 18302do 18303 IFS=$as_save_IFS 18304 test -z "$as_dir" && as_dir=. 18305 for ac_exec_ext in '' $ac_executable_extensions; do 18306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18307 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 18308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18309 break 2 18310 fi 18311done 18312 done 18313IFS=$as_save_IFS 18314 18315fi 18316fi 18317OTOOL64=$ac_cv_prog_OTOOL64 18318if test -n "$OTOOL64"; then 18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 18320$as_echo "$OTOOL64" >&6; } 18321else 18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18323$as_echo "no" >&6; } 18324fi 18325 18326 18327fi 18328if test -z "$ac_cv_prog_OTOOL64"; then 18329 ac_ct_OTOOL64=$OTOOL64 18330 # Extract the first word of "otool64", so it can be a program name with args. 18331set dummy otool64; ac_word=$2 18332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18333$as_echo_n "checking for $ac_word... " >&6; } 18334if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 18335 $as_echo_n "(cached) " >&6 18336else 18337 if test -n "$ac_ct_OTOOL64"; then 18338 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 18339else 18340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18341for as_dir in $PATH 18342do 18343 IFS=$as_save_IFS 18344 test -z "$as_dir" && as_dir=. 18345 for ac_exec_ext in '' $ac_executable_extensions; do 18346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18347 ac_cv_prog_ac_ct_OTOOL64="otool64" 18348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18349 break 2 18350 fi 18351done 18352 done 18353IFS=$as_save_IFS 18354 18355fi 18356fi 18357ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 18358if test -n "$ac_ct_OTOOL64"; then 18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 18360$as_echo "$ac_ct_OTOOL64" >&6; } 18361else 18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18363$as_echo "no" >&6; } 18364fi 18365 18366 if test "x$ac_ct_OTOOL64" = x; then 18367 OTOOL64=":" 18368 else 18369 case $cross_compiling:$ac_tool_warned in 18370yes:) 18371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18373ac_tool_warned=yes ;; 18374esac 18375 OTOOL64=$ac_ct_OTOOL64 18376 fi 18377else 18378 OTOOL64="$ac_cv_prog_OTOOL64" 18379fi 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 18408$as_echo_n "checking for -single_module linker flag... " >&6; } 18409if ${lt_cv_apple_cc_single_mod+:} false; then : 18410 $as_echo_n "(cached) " >&6 18411else 18412 lt_cv_apple_cc_single_mod=no 18413 if test -z "$LT_MULTI_MODULE"; then 18414 # By default we will add the -single_module flag. You can override 18415 # by either setting the environment variable LT_MULTI_MODULE 18416 # non-empty at configure time, or by adding -multi_module to the 18417 # link flags. 18418 rm -rf libconftest.dylib* 18419 echo "int foo(void){return 1;}" > conftest.c 18420 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 18421-dynamiclib -Wl,-single_module conftest.c" >&5 18422 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 18423 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 18424 _lt_result=$? 18425 # If there is a non-empty error log, and "single_module" 18426 # appears in it, assume the flag caused a linker warning 18427 if test -s conftest.err && $GREP single_module conftest.err; then 18428 cat conftest.err >&5 18429 # Otherwise, if the output was created with a 0 exit code from 18430 # the compiler, it worked. 18431 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 18432 lt_cv_apple_cc_single_mod=yes 18433 else 18434 cat conftest.err >&5 18435 fi 18436 rm -rf libconftest.dylib* 18437 rm -f conftest.* 18438 fi 18439fi 18440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 18441$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 18442 18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 18444$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 18445if ${lt_cv_ld_exported_symbols_list+:} false; then : 18446 $as_echo_n "(cached) " >&6 18447else 18448 lt_cv_ld_exported_symbols_list=no 18449 save_LDFLAGS=$LDFLAGS 18450 echo "_main" > conftest.sym 18451 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 18452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18453/* end confdefs.h. */ 18454 18455int 18456main () 18457{ 18458 18459 ; 18460 return 0; 18461} 18462_ACEOF 18463if ac_fn_c_try_link "$LINENO"; then : 18464 lt_cv_ld_exported_symbols_list=yes 18465else 18466 lt_cv_ld_exported_symbols_list=no 18467fi 18468rm -f core conftest.err conftest.$ac_objext \ 18469 conftest$ac_exeext conftest.$ac_ext 18470 LDFLAGS=$save_LDFLAGS 18471 18472fi 18473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 18474$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 18475 18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 18477$as_echo_n "checking for -force_load linker flag... " >&6; } 18478if ${lt_cv_ld_force_load+:} false; then : 18479 $as_echo_n "(cached) " >&6 18480else 18481 lt_cv_ld_force_load=no 18482 cat > conftest.c << _LT_EOF 18483int forced_loaded() { return 2;} 18484_LT_EOF 18485 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 18486 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 18487 echo "$AR cru libconftest.a conftest.o" >&5 18488 $AR cru libconftest.a conftest.o 2>&5 18489 echo "$RANLIB libconftest.a" >&5 18490 $RANLIB libconftest.a 2>&5 18491 cat > conftest.c << _LT_EOF 18492int main() { return 0;} 18493_LT_EOF 18494 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 18495 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 18496 _lt_result=$? 18497 if test -s conftest.err && $GREP force_load conftest.err; then 18498 cat conftest.err >&5 18499 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 18500 lt_cv_ld_force_load=yes 18501 else 18502 cat conftest.err >&5 18503 fi 18504 rm -f conftest.err libconftest.a conftest conftest.c 18505 rm -rf conftest.dSYM 18506 18507fi 18508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 18509$as_echo "$lt_cv_ld_force_load" >&6; } 18510 case $host_os in 18511 rhapsody* | darwin1.[012]) 18512 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 18513 darwin1.*) 18514 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 18515 darwin*) # darwin 5.x on 18516 # if running on 10.5 or later, the deployment target defaults 18517 # to the OS version, if on x86, and 10.4, the deployment 18518 # target defaults to 10.4. Don't you love it? 18519 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 18520 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 18521 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 18522 10.[012][,.]*) 18523 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 18524 10.*) 18525 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 18526 esac 18527 ;; 18528 esac 18529 if test yes = "$lt_cv_apple_cc_single_mod"; then 18530 _lt_dar_single_mod='$single_module' 18531 fi 18532 if test yes = "$lt_cv_ld_exported_symbols_list"; then 18533 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 18534 else 18535 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 18536 fi 18537 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 18538 _lt_dsymutil='~$DSYMUTIL $lib || :' 18539 else 18540 _lt_dsymutil= 18541 fi 18542 ;; 18543 esac 18544 18545# func_munge_path_list VARIABLE PATH 18546# ----------------------------------- 18547# VARIABLE is name of variable containing _space_ separated list of 18548# directories to be munged by the contents of PATH, which is string 18549# having a format: 18550# "DIR[:DIR]:" 18551# string "DIR[ DIR]" will be prepended to VARIABLE 18552# ":DIR[:DIR]" 18553# string "DIR[ DIR]" will be appended to VARIABLE 18554# "DIRP[:DIRP]::[DIRA:]DIRA" 18555# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18556# "DIRA[ DIRA]" will be appended to VARIABLE 18557# "DIR[:DIR]" 18558# VARIABLE will be replaced by "DIR[ DIR]" 18559func_munge_path_list () 18560{ 18561 case x$2 in 18562 x) 18563 ;; 18564 *:) 18565 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18566 ;; 18567 x:*) 18568 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18569 ;; 18570 *::*) 18571 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18572 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18573 ;; 18574 *) 18575 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18576 ;; 18577 esac 18578} 18579 18580for ac_header in dlfcn.h 18581do : 18582 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 18583" 18584if test "x$ac_cv_header_dlfcn_h" = xyes; then : 18585 cat >>confdefs.h <<_ACEOF 18586#define HAVE_DLFCN_H 1 18587_ACEOF 18588 18589fi 18590 18591done 18592 18593 18594 18595 18596 18597# Set options 18598 18599 18600 18601 enable_dlopen=no 18602 18603 18604 enable_win32_dll=no 18605 18606 18607 18608 # Check whether --enable-static was given. 18609if test "${enable_static+set}" = set; then : 18610 enableval=$enable_static; p=${PACKAGE-default} 18611 case $enableval in 18612 yes) enable_static=yes ;; 18613 no) enable_static=no ;; 18614 *) 18615 enable_static=no 18616 # Look at the argument we got. We use all the common list separators. 18617 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 18618 for pkg in $enableval; do 18619 IFS=$lt_save_ifs 18620 if test "X$pkg" = "X$p"; then 18621 enable_static=yes 18622 fi 18623 done 18624 IFS=$lt_save_ifs 18625 ;; 18626 esac 18627else 18628 enable_static=yes 18629fi 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640# Check whether --with-pic was given. 18641if test "${with_pic+set}" = set; then : 18642 withval=$with_pic; lt_p=${PACKAGE-default} 18643 case $withval in 18644 yes|no) pic_mode=$withval ;; 18645 *) 18646 pic_mode=default 18647 # Look at the argument we got. We use all the common list separators. 18648 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 18649 for lt_pkg in $withval; do 18650 IFS=$lt_save_ifs 18651 if test "X$lt_pkg" = "X$lt_p"; then 18652 pic_mode=yes 18653 fi 18654 done 18655 IFS=$lt_save_ifs 18656 ;; 18657 esac 18658else 18659 pic_mode=default 18660fi 18661 18662 18663 18664 18665 18666 18667 18668 18669 # Check whether --enable-fast-install was given. 18670if test "${enable_fast_install+set}" = set; then : 18671 enableval=$enable_fast_install; p=${PACKAGE-default} 18672 case $enableval in 18673 yes) enable_fast_install=yes ;; 18674 no) enable_fast_install=no ;; 18675 *) 18676 enable_fast_install=no 18677 # Look at the argument we got. We use all the common list separators. 18678 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 18679 for pkg in $enableval; do 18680 IFS=$lt_save_ifs 18681 if test "X$pkg" = "X$p"; then 18682 enable_fast_install=yes 18683 fi 18684 done 18685 IFS=$lt_save_ifs 18686 ;; 18687 esac 18688else 18689 enable_fast_install=yes 18690fi 18691 18692 18693 18694 18695 18696 18697 18698 18699 shared_archive_member_spec= 18700case $host,$enable_shared in 18701power*-*-aix[5-9]*,yes) 18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 18703$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 18704 18705# Check whether --with-aix-soname was given. 18706if test "${with_aix_soname+set}" = set; then : 18707 withval=$with_aix_soname; case $withval in 18708 aix|svr4|both) 18709 ;; 18710 *) 18711 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 18712 ;; 18713 esac 18714 lt_cv_with_aix_soname=$with_aix_soname 18715else 18716 if ${lt_cv_with_aix_soname+:} false; then : 18717 $as_echo_n "(cached) " >&6 18718else 18719 lt_cv_with_aix_soname=aix 18720fi 18721 18722 with_aix_soname=$lt_cv_with_aix_soname 18723fi 18724 18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 18726$as_echo "$with_aix_soname" >&6; } 18727 if test aix != "$with_aix_soname"; then 18728 # For the AIX way of multilib, we name the shared archive member 18729 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 18730 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 18731 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 18732 # the AIX toolchain works better with OBJECT_MODE set (default 32). 18733 if test 64 = "${OBJECT_MODE-32}"; then 18734 shared_archive_member_spec=shr_64 18735 else 18736 shared_archive_member_spec=shr 18737 fi 18738 fi 18739 ;; 18740*) 18741 with_aix_soname=aix 18742 ;; 18743esac 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754# This can be used to rebuild libtool when needed 18755LIBTOOL_DEPS=$ltmain 18756 18757# Always use our own libtool. 18758LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18759 18760 18761 18762 18763 18764 18765 18766 18767 18768 18769 18770 18771 18772 18773 18774 18775 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789test -z "$LN_S" && LN_S="ln -s" 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803 18804if test -n "${ZSH_VERSION+set}"; then 18805 setopt NO_GLOB_SUBST 18806fi 18807 18808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 18809$as_echo_n "checking for objdir... " >&6; } 18810if ${lt_cv_objdir+:} false; then : 18811 $as_echo_n "(cached) " >&6 18812else 18813 rm -f .libs 2>/dev/null 18814mkdir .libs 2>/dev/null 18815if test -d .libs; then 18816 lt_cv_objdir=.libs 18817else 18818 # MS-DOS does not allow filenames that begin with a dot. 18819 lt_cv_objdir=_libs 18820fi 18821rmdir .libs 2>/dev/null 18822fi 18823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 18824$as_echo "$lt_cv_objdir" >&6; } 18825objdir=$lt_cv_objdir 18826 18827 18828 18829 18830 18831cat >>confdefs.h <<_ACEOF 18832#define LT_OBJDIR "$lt_cv_objdir/" 18833_ACEOF 18834 18835 18836 18837 18838case $host_os in 18839aix3*) 18840 # AIX sometimes has problems with the GCC collect2 program. For some 18841 # reason, if we set the COLLECT_NAMES environment variable, the problems 18842 # vanish in a puff of smoke. 18843 if test set != "${COLLECT_NAMES+set}"; then 18844 COLLECT_NAMES= 18845 export COLLECT_NAMES 18846 fi 18847 ;; 18848esac 18849 18850# Global variables: 18851ofile=libtool 18852can_build_shared=yes 18853 18854# All known linkers require a '.a' archive for static linking (except MSVC, 18855# which needs '.lib'). 18856libext=a 18857 18858with_gnu_ld=$lt_cv_prog_gnu_ld 18859 18860old_CC=$CC 18861old_CFLAGS=$CFLAGS 18862 18863# Set sane defaults for various variables 18864test -z "$CC" && CC=cc 18865test -z "$LTCC" && LTCC=$CC 18866test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 18867test -z "$LD" && LD=ld 18868test -z "$ac_objext" && ac_objext=o 18869 18870func_cc_basename $compiler 18871cc_basename=$func_cc_basename_result 18872 18873 18874# Only perform the check for file, if the check method requires it 18875test -z "$MAGIC_CMD" && MAGIC_CMD=file 18876case $deplibs_check_method in 18877file_magic*) 18878 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 18880$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 18881if ${lt_cv_path_MAGIC_CMD+:} false; then : 18882 $as_echo_n "(cached) " >&6 18883else 18884 case $MAGIC_CMD in 18885[\\/*] | ?:[\\/]*) 18886 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 18887 ;; 18888*) 18889 lt_save_MAGIC_CMD=$MAGIC_CMD 18890 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 18891 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 18892 for ac_dir in $ac_dummy; do 18893 IFS=$lt_save_ifs 18894 test -z "$ac_dir" && ac_dir=. 18895 if test -f "$ac_dir/${ac_tool_prefix}file"; then 18896 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 18897 if test -n "$file_magic_test_file"; then 18898 case $deplibs_check_method in 18899 "file_magic "*) 18900 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 18901 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 18903 $EGREP "$file_magic_regex" > /dev/null; then 18904 : 18905 else 18906 cat <<_LT_EOF 1>&2 18907 18908*** Warning: the command libtool uses to detect shared libraries, 18909*** $file_magic_cmd, produces output that libtool cannot recognize. 18910*** The result is that libtool may fail to recognize shared libraries 18911*** as such. This will affect the creation of libtool libraries that 18912*** depend on shared libraries, but programs linked with such libtool 18913*** libraries will work regardless of this problem. Nevertheless, you 18914*** may want to report the problem to your system manager and/or to 18915*** bug-libtool@gnu.org 18916 18917_LT_EOF 18918 fi ;; 18919 esac 18920 fi 18921 break 18922 fi 18923 done 18924 IFS=$lt_save_ifs 18925 MAGIC_CMD=$lt_save_MAGIC_CMD 18926 ;; 18927esac 18928fi 18929 18930MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18931if test -n "$MAGIC_CMD"; then 18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 18933$as_echo "$MAGIC_CMD" >&6; } 18934else 18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18936$as_echo "no" >&6; } 18937fi 18938 18939 18940 18941 18942 18943if test -z "$lt_cv_path_MAGIC_CMD"; then 18944 if test -n "$ac_tool_prefix"; then 18945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 18946$as_echo_n "checking for file... " >&6; } 18947if ${lt_cv_path_MAGIC_CMD+:} false; then : 18948 $as_echo_n "(cached) " >&6 18949else 18950 case $MAGIC_CMD in 18951[\\/*] | ?:[\\/]*) 18952 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 18953 ;; 18954*) 18955 lt_save_MAGIC_CMD=$MAGIC_CMD 18956 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 18957 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 18958 for ac_dir in $ac_dummy; do 18959 IFS=$lt_save_ifs 18960 test -z "$ac_dir" && ac_dir=. 18961 if test -f "$ac_dir/file"; then 18962 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 18963 if test -n "$file_magic_test_file"; then 18964 case $deplibs_check_method in 18965 "file_magic "*) 18966 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 18967 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18968 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 18969 $EGREP "$file_magic_regex" > /dev/null; then 18970 : 18971 else 18972 cat <<_LT_EOF 1>&2 18973 18974*** Warning: the command libtool uses to detect shared libraries, 18975*** $file_magic_cmd, produces output that libtool cannot recognize. 18976*** The result is that libtool may fail to recognize shared libraries 18977*** as such. This will affect the creation of libtool libraries that 18978*** depend on shared libraries, but programs linked with such libtool 18979*** libraries will work regardless of this problem. Nevertheless, you 18980*** may want to report the problem to your system manager and/or to 18981*** bug-libtool@gnu.org 18982 18983_LT_EOF 18984 fi ;; 18985 esac 18986 fi 18987 break 18988 fi 18989 done 18990 IFS=$lt_save_ifs 18991 MAGIC_CMD=$lt_save_MAGIC_CMD 18992 ;; 18993esac 18994fi 18995 18996MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18997if test -n "$MAGIC_CMD"; then 18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 18999$as_echo "$MAGIC_CMD" >&6; } 19000else 19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19002$as_echo "no" >&6; } 19003fi 19004 19005 19006 else 19007 MAGIC_CMD=: 19008 fi 19009fi 19010 19011 fi 19012 ;; 19013esac 19014 19015# Use C for the default configuration in the libtool script 19016 19017lt_save_CC=$CC 19018ac_ext=c 19019ac_cpp='$CPP $CPPFLAGS' 19020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19022ac_compiler_gnu=$ac_cv_c_compiler_gnu 19023 19024 19025# Source file extension for C test sources. 19026ac_ext=c 19027 19028# Object file extension for compiled C test sources. 19029objext=o 19030objext=$objext 19031 19032# Code to be used in simple compile tests 19033lt_simple_compile_test_code="int some_variable = 0;" 19034 19035# Code to be used in simple link tests 19036lt_simple_link_test_code='int main(){return(0);}' 19037 19038 19039 19040 19041 19042 19043 19044# If no C compiler was specified, use CC. 19045LTCC=${LTCC-"$CC"} 19046 19047# If no C compiler flags were specified, use CFLAGS. 19048LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19049 19050# Allow CC to be a program name with arguments. 19051compiler=$CC 19052 19053# Save the default compiler, since it gets overwritten when the other 19054# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 19055compiler_DEFAULT=$CC 19056 19057# save warnings/boilerplate of simple test code 19058ac_outfile=conftest.$ac_objext 19059echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19060eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19061_lt_compiler_boilerplate=`cat conftest.err` 19062$RM conftest* 19063 19064ac_outfile=conftest.$ac_objext 19065echo "$lt_simple_link_test_code" >conftest.$ac_ext 19066eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19067_lt_linker_boilerplate=`cat conftest.err` 19068$RM -r conftest* 19069 19070 19071## CAVEAT EMPTOR: 19072## There is no encapsulation within the following macros, do not change 19073## the running order or otherwise move them around unless you know exactly 19074## what you are doing... 19075if test -n "$compiler"; then 19076 19077lt_prog_compiler_no_builtin_flag= 19078 19079if test yes = "$GCC"; then 19080 case $cc_basename in 19081 nvcc*) 19082 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 19083 *) 19084 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 19085 esac 19086 19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 19088$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 19089if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 19090 $as_echo_n "(cached) " >&6 19091else 19092 lt_cv_prog_compiler_rtti_exceptions=no 19093 ac_outfile=conftest.$ac_objext 19094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19095 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 19096 # Insert the option either (1) after the last *FLAGS variable, or 19097 # (2) before a word containing "conftest.", or (3) at the end. 19098 # Note that $ac_compile itself does not contain backslashes and begins 19099 # with a dollar sign (not a hyphen), so the echo should work correctly. 19100 # The option is referenced via a variable to avoid confusing sed. 19101 lt_compile=`echo "$ac_compile" | $SED \ 19102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19104 -e 's:$: $lt_compiler_flag:'` 19105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19106 (eval "$lt_compile" 2>conftest.err) 19107 ac_status=$? 19108 cat conftest.err >&5 19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19110 if (exit $ac_status) && test -s "$ac_outfile"; then 19111 # The compiler can only warn and ignore the option if not recognized 19112 # So say no if there are warnings other than the usual output. 19113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19116 lt_cv_prog_compiler_rtti_exceptions=yes 19117 fi 19118 fi 19119 $RM conftest* 19120 19121fi 19122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 19123$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 19124 19125if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 19126 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 19127else 19128 : 19129fi 19130 19131fi 19132 19133 19134 19135 19136 19137 19138 lt_prog_compiler_wl= 19139lt_prog_compiler_pic= 19140lt_prog_compiler_static= 19141 19142 19143 if test yes = "$GCC"; then 19144 lt_prog_compiler_wl='-Wl,' 19145 lt_prog_compiler_static='-static' 19146 19147 case $host_os in 19148 aix*) 19149 # All AIX code is PIC. 19150 if test ia64 = "$host_cpu"; then 19151 # AIX 5 now supports IA64 processor 19152 lt_prog_compiler_static='-Bstatic' 19153 fi 19154 lt_prog_compiler_pic='-fPIC' 19155 ;; 19156 19157 amigaos*) 19158 case $host_cpu in 19159 powerpc) 19160 # see comment about AmigaOS4 .so support 19161 lt_prog_compiler_pic='-fPIC' 19162 ;; 19163 m68k) 19164 # FIXME: we need at least 68020 code to build shared libraries, but 19165 # adding the '-m68020' flag to GCC prevents building anything better, 19166 # like '-m68040'. 19167 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 19168 ;; 19169 esac 19170 ;; 19171 19172 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19173 # PIC is the default for these OSes. 19174 ;; 19175 19176 mingw* | cygwin* | pw32* | os2* | cegcc*) 19177 # This hack is so that the source file can tell whether it is being 19178 # built for inclusion in a dll (and should export symbols for example). 19179 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19180 # (--disable-auto-import) libraries 19181 lt_prog_compiler_pic='-DDLL_EXPORT' 19182 case $host_os in 19183 os2*) 19184 lt_prog_compiler_static='$wl-static' 19185 ;; 19186 esac 19187 ;; 19188 19189 darwin* | rhapsody*) 19190 # PIC is the default on this platform 19191 # Common symbols not allowed in MH_DYLIB files 19192 lt_prog_compiler_pic='-fno-common' 19193 ;; 19194 19195 haiku*) 19196 # PIC is the default for Haiku. 19197 # The "-static" flag exists, but is broken. 19198 lt_prog_compiler_static= 19199 ;; 19200 19201 hpux*) 19202 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 19203 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 19204 # sets the default TLS model and affects inlining. 19205 case $host_cpu in 19206 hppa*64*) 19207 # +Z the default 19208 ;; 19209 *) 19210 lt_prog_compiler_pic='-fPIC' 19211 ;; 19212 esac 19213 ;; 19214 19215 interix[3-9]*) 19216 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19217 # Instead, we relocate shared libraries at runtime. 19218 ;; 19219 19220 msdosdjgpp*) 19221 # Just because we use GCC doesn't mean we suddenly get shared libraries 19222 # on systems that don't support them. 19223 lt_prog_compiler_can_build_shared=no 19224 enable_shared=no 19225 ;; 19226 19227 *nto* | *qnx*) 19228 # QNX uses GNU C++, but need to define -shared option too, otherwise 19229 # it will coredump. 19230 lt_prog_compiler_pic='-fPIC -shared' 19231 ;; 19232 19233 sysv4*MP*) 19234 if test -d /usr/nec; then 19235 lt_prog_compiler_pic=-Kconform_pic 19236 fi 19237 ;; 19238 19239 *) 19240 lt_prog_compiler_pic='-fPIC' 19241 ;; 19242 esac 19243 19244 case $cc_basename in 19245 nvcc*) # Cuda Compiler Driver 2.2 19246 lt_prog_compiler_wl='-Xlinker ' 19247 if test -n "$lt_prog_compiler_pic"; then 19248 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 19249 fi 19250 ;; 19251 esac 19252 else 19253 # PORTME Check for flag to pass linker flags through the system compiler. 19254 case $host_os in 19255 aix*) 19256 lt_prog_compiler_wl='-Wl,' 19257 if test ia64 = "$host_cpu"; then 19258 # AIX 5 now supports IA64 processor 19259 lt_prog_compiler_static='-Bstatic' 19260 else 19261 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 19262 fi 19263 ;; 19264 19265 darwin* | rhapsody*) 19266 # PIC is the default on this platform 19267 # Common symbols not allowed in MH_DYLIB files 19268 lt_prog_compiler_pic='-fno-common' 19269 case $cc_basename in 19270 nagfor*) 19271 # NAG Fortran compiler 19272 lt_prog_compiler_wl='-Wl,-Wl,,' 19273 lt_prog_compiler_pic='-PIC' 19274 lt_prog_compiler_static='-Bstatic' 19275 ;; 19276 esac 19277 ;; 19278 19279 mingw* | cygwin* | pw32* | os2* | cegcc*) 19280 # This hack is so that the source file can tell whether it is being 19281 # built for inclusion in a dll (and should export symbols for example). 19282 lt_prog_compiler_pic='-DDLL_EXPORT' 19283 case $host_os in 19284 os2*) 19285 lt_prog_compiler_static='$wl-static' 19286 ;; 19287 esac 19288 ;; 19289 19290 hpux9* | hpux10* | hpux11*) 19291 lt_prog_compiler_wl='-Wl,' 19292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19293 # not for PA HP-UX. 19294 case $host_cpu in 19295 hppa*64*|ia64*) 19296 # +Z the default 19297 ;; 19298 *) 19299 lt_prog_compiler_pic='+Z' 19300 ;; 19301 esac 19302 # Is there a better lt_prog_compiler_static that works with the bundled CC? 19303 lt_prog_compiler_static='$wl-a ${wl}archive' 19304 ;; 19305 19306 irix5* | irix6* | nonstopux*) 19307 lt_prog_compiler_wl='-Wl,' 19308 # PIC (with -KPIC) is the default. 19309 lt_prog_compiler_static='-non_shared' 19310 ;; 19311 19312 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19313 case $cc_basename in 19314 # old Intel for x86_64, which still supported -KPIC. 19315 ecc*) 19316 lt_prog_compiler_wl='-Wl,' 19317 lt_prog_compiler_pic='-KPIC' 19318 lt_prog_compiler_static='-static' 19319 ;; 19320 # icc used to be incompatible with GCC. 19321 # ICC 10 doesn't accept -KPIC any more. 19322 icc* | ifort*) 19323 lt_prog_compiler_wl='-Wl,' 19324 lt_prog_compiler_pic='-fPIC' 19325 lt_prog_compiler_static='-static' 19326 ;; 19327 # Lahey Fortran 8.1. 19328 lf95*) 19329 lt_prog_compiler_wl='-Wl,' 19330 lt_prog_compiler_pic='--shared' 19331 lt_prog_compiler_static='--static' 19332 ;; 19333 nagfor*) 19334 # NAG Fortran compiler 19335 lt_prog_compiler_wl='-Wl,-Wl,,' 19336 lt_prog_compiler_pic='-PIC' 19337 lt_prog_compiler_static='-Bstatic' 19338 ;; 19339 tcc*) 19340 # Fabrice Bellard et al's Tiny C Compiler 19341 lt_prog_compiler_wl='-Wl,' 19342 lt_prog_compiler_pic='-fPIC' 19343 lt_prog_compiler_static='-static' 19344 ;; 19345 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 19346 # Portland Group compilers (*not* the Pentium gcc compiler, 19347 # which looks to be a dead project) 19348 lt_prog_compiler_wl='-Wl,' 19349 lt_prog_compiler_pic='-fpic' 19350 lt_prog_compiler_static='-Bstatic' 19351 ;; 19352 ccc*) 19353 lt_prog_compiler_wl='-Wl,' 19354 # All Alpha code is PIC. 19355 lt_prog_compiler_static='-non_shared' 19356 ;; 19357 xl* | bgxl* | bgf* | mpixl*) 19358 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 19359 lt_prog_compiler_wl='-Wl,' 19360 lt_prog_compiler_pic='-qpic' 19361 lt_prog_compiler_static='-qstaticlink' 19362 ;; 19363 *) 19364 case `$CC -V 2>&1 | sed 5q` in 19365 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 19366 # Sun Fortran 8.3 passes all unrecognized flags to the linker 19367 lt_prog_compiler_pic='-KPIC' 19368 lt_prog_compiler_static='-Bstatic' 19369 lt_prog_compiler_wl='' 19370 ;; 19371 *Sun\ F* | *Sun*Fortran*) 19372 lt_prog_compiler_pic='-KPIC' 19373 lt_prog_compiler_static='-Bstatic' 19374 lt_prog_compiler_wl='-Qoption ld ' 19375 ;; 19376 *Sun\ C*) 19377 # Sun C 5.9 19378 lt_prog_compiler_pic='-KPIC' 19379 lt_prog_compiler_static='-Bstatic' 19380 lt_prog_compiler_wl='-Wl,' 19381 ;; 19382 *Intel*\ [CF]*Compiler*) 19383 lt_prog_compiler_wl='-Wl,' 19384 lt_prog_compiler_pic='-fPIC' 19385 lt_prog_compiler_static='-static' 19386 ;; 19387 *Portland\ Group*) 19388 lt_prog_compiler_wl='-Wl,' 19389 lt_prog_compiler_pic='-fpic' 19390 lt_prog_compiler_static='-Bstatic' 19391 ;; 19392 esac 19393 ;; 19394 esac 19395 ;; 19396 19397 newsos6) 19398 lt_prog_compiler_pic='-KPIC' 19399 lt_prog_compiler_static='-Bstatic' 19400 ;; 19401 19402 *nto* | *qnx*) 19403 # QNX uses GNU C++, but need to define -shared option too, otherwise 19404 # it will coredump. 19405 lt_prog_compiler_pic='-fPIC -shared' 19406 ;; 19407 19408 osf3* | osf4* | osf5*) 19409 lt_prog_compiler_wl='-Wl,' 19410 # All OSF/1 code is PIC. 19411 lt_prog_compiler_static='-non_shared' 19412 ;; 19413 19414 rdos*) 19415 lt_prog_compiler_static='-non_shared' 19416 ;; 19417 19418 solaris*) 19419 lt_prog_compiler_pic='-KPIC' 19420 lt_prog_compiler_static='-Bstatic' 19421 case $cc_basename in 19422 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 19423 lt_prog_compiler_wl='-Qoption ld ';; 19424 *) 19425 lt_prog_compiler_wl='-Wl,';; 19426 esac 19427 ;; 19428 19429 sunos4*) 19430 lt_prog_compiler_wl='-Qoption ld ' 19431 lt_prog_compiler_pic='-PIC' 19432 lt_prog_compiler_static='-Bstatic' 19433 ;; 19434 19435 sysv4 | sysv4.2uw2* | sysv4.3*) 19436 lt_prog_compiler_wl='-Wl,' 19437 lt_prog_compiler_pic='-KPIC' 19438 lt_prog_compiler_static='-Bstatic' 19439 ;; 19440 19441 sysv4*MP*) 19442 if test -d /usr/nec; then 19443 lt_prog_compiler_pic='-Kconform_pic' 19444 lt_prog_compiler_static='-Bstatic' 19445 fi 19446 ;; 19447 19448 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19449 lt_prog_compiler_wl='-Wl,' 19450 lt_prog_compiler_pic='-KPIC' 19451 lt_prog_compiler_static='-Bstatic' 19452 ;; 19453 19454 unicos*) 19455 lt_prog_compiler_wl='-Wl,' 19456 lt_prog_compiler_can_build_shared=no 19457 ;; 19458 19459 uts4*) 19460 lt_prog_compiler_pic='-pic' 19461 lt_prog_compiler_static='-Bstatic' 19462 ;; 19463 19464 *) 19465 lt_prog_compiler_can_build_shared=no 19466 ;; 19467 esac 19468 fi 19469 19470case $host_os in 19471 # For platforms that do not support PIC, -DPIC is meaningless: 19472 *djgpp*) 19473 lt_prog_compiler_pic= 19474 ;; 19475 *) 19476 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 19477 ;; 19478esac 19479 19480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 19481$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 19482if ${lt_cv_prog_compiler_pic+:} false; then : 19483 $as_echo_n "(cached) " >&6 19484else 19485 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 19486fi 19487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 19488$as_echo "$lt_cv_prog_compiler_pic" >&6; } 19489lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 19490 19491# 19492# Check to make sure the PIC flag actually works. 19493# 19494if test -n "$lt_prog_compiler_pic"; then 19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 19496$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 19497if ${lt_cv_prog_compiler_pic_works+:} false; then : 19498 $as_echo_n "(cached) " >&6 19499else 19500 lt_cv_prog_compiler_pic_works=no 19501 ac_outfile=conftest.$ac_objext 19502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19503 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 19504 # Insert the option either (1) after the last *FLAGS variable, or 19505 # (2) before a word containing "conftest.", or (3) at the end. 19506 # Note that $ac_compile itself does not contain backslashes and begins 19507 # with a dollar sign (not a hyphen), so the echo should work correctly. 19508 # The option is referenced via a variable to avoid confusing sed. 19509 lt_compile=`echo "$ac_compile" | $SED \ 19510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19512 -e 's:$: $lt_compiler_flag:'` 19513 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19514 (eval "$lt_compile" 2>conftest.err) 19515 ac_status=$? 19516 cat conftest.err >&5 19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19518 if (exit $ac_status) && test -s "$ac_outfile"; then 19519 # The compiler can only warn and ignore the option if not recognized 19520 # So say no if there are warnings other than the usual output. 19521 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19523 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19524 lt_cv_prog_compiler_pic_works=yes 19525 fi 19526 fi 19527 $RM conftest* 19528 19529fi 19530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 19531$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 19532 19533if test yes = "$lt_cv_prog_compiler_pic_works"; then 19534 case $lt_prog_compiler_pic in 19535 "" | " "*) ;; 19536 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 19537 esac 19538else 19539 lt_prog_compiler_pic= 19540 lt_prog_compiler_can_build_shared=no 19541fi 19542 19543fi 19544 19545 19546 19547 19548 19549 19550 19551 19552 19553 19554 19555# 19556# Check to make sure the static flag actually works. 19557# 19558wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 19559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19560$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19561if ${lt_cv_prog_compiler_static_works+:} false; then : 19562 $as_echo_n "(cached) " >&6 19563else 19564 lt_cv_prog_compiler_static_works=no 19565 save_LDFLAGS=$LDFLAGS 19566 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19567 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19569 # The linker can only warn and ignore the option if not recognized 19570 # So say no if there are warnings 19571 if test -s conftest.err; then 19572 # Append any errors to the config.log. 19573 cat conftest.err 1>&5 19574 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19576 if diff conftest.exp conftest.er2 >/dev/null; then 19577 lt_cv_prog_compiler_static_works=yes 19578 fi 19579 else 19580 lt_cv_prog_compiler_static_works=yes 19581 fi 19582 fi 19583 $RM -r conftest* 19584 LDFLAGS=$save_LDFLAGS 19585 19586fi 19587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 19588$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 19589 19590if test yes = "$lt_cv_prog_compiler_static_works"; then 19591 : 19592else 19593 lt_prog_compiler_static= 19594fi 19595 19596 19597 19598 19599 19600 19601 19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19603$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19604if ${lt_cv_prog_compiler_c_o+:} false; then : 19605 $as_echo_n "(cached) " >&6 19606else 19607 lt_cv_prog_compiler_c_o=no 19608 $RM -r conftest 2>/dev/null 19609 mkdir conftest 19610 cd conftest 19611 mkdir out 19612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19613 19614 lt_compiler_flag="-o out/conftest2.$ac_objext" 19615 # Insert the option either (1) after the last *FLAGS variable, or 19616 # (2) before a word containing "conftest.", or (3) at the end. 19617 # Note that $ac_compile itself does not contain backslashes and begins 19618 # with a dollar sign (not a hyphen), so the echo should work correctly. 19619 lt_compile=`echo "$ac_compile" | $SED \ 19620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19622 -e 's:$: $lt_compiler_flag:'` 19623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19624 (eval "$lt_compile" 2>out/conftest.err) 19625 ac_status=$? 19626 cat out/conftest.err >&5 19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19628 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19629 then 19630 # The compiler can only warn and ignore the option if not recognized 19631 # So say no if there are warnings 19632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19635 lt_cv_prog_compiler_c_o=yes 19636 fi 19637 fi 19638 chmod u+w . 2>&5 19639 $RM conftest* 19640 # SGI C++ compiler will create directory out/ii_files/ for 19641 # template instantiation 19642 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19643 $RM out/* && rmdir out 19644 cd .. 19645 $RM -r conftest 19646 $RM conftest* 19647 19648fi 19649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 19650$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 19651 19652 19653 19654 19655 19656 19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19658$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19659if ${lt_cv_prog_compiler_c_o+:} false; then : 19660 $as_echo_n "(cached) " >&6 19661else 19662 lt_cv_prog_compiler_c_o=no 19663 $RM -r conftest 2>/dev/null 19664 mkdir conftest 19665 cd conftest 19666 mkdir out 19667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19668 19669 lt_compiler_flag="-o out/conftest2.$ac_objext" 19670 # Insert the option either (1) after the last *FLAGS variable, or 19671 # (2) before a word containing "conftest.", or (3) at the end. 19672 # Note that $ac_compile itself does not contain backslashes and begins 19673 # with a dollar sign (not a hyphen), so the echo should work correctly. 19674 lt_compile=`echo "$ac_compile" | $SED \ 19675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19677 -e 's:$: $lt_compiler_flag:'` 19678 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19679 (eval "$lt_compile" 2>out/conftest.err) 19680 ac_status=$? 19681 cat out/conftest.err >&5 19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19683 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19684 then 19685 # The compiler can only warn and ignore the option if not recognized 19686 # So say no if there are warnings 19687 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19688 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19689 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19690 lt_cv_prog_compiler_c_o=yes 19691 fi 19692 fi 19693 chmod u+w . 2>&5 19694 $RM conftest* 19695 # SGI C++ compiler will create directory out/ii_files/ for 19696 # template instantiation 19697 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19698 $RM out/* && rmdir out 19699 cd .. 19700 $RM -r conftest 19701 $RM conftest* 19702 19703fi 19704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 19705$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 19706 19707 19708 19709 19710hard_links=nottested 19711if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 19712 # do not overwrite the value of need_locks provided by the user 19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 19714$as_echo_n "checking if we can lock with hard links... " >&6; } 19715 hard_links=yes 19716 $RM conftest* 19717 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19718 touch conftest.a 19719 ln conftest.a conftest.b 2>&5 || hard_links=no 19720 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 19722$as_echo "$hard_links" >&6; } 19723 if test no = "$hard_links"; then 19724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 19725$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 19726 need_locks=warn 19727 fi 19728else 19729 need_locks=no 19730fi 19731 19732 19733 19734 19735 19736 19737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19738$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19739 19740 runpath_var= 19741 allow_undefined_flag= 19742 always_export_symbols=no 19743 archive_cmds= 19744 archive_expsym_cmds= 19745 compiler_needs_object=no 19746 enable_shared_with_static_runtimes=no 19747 export_dynamic_flag_spec= 19748 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19749 hardcode_automatic=no 19750 hardcode_direct=no 19751 hardcode_direct_absolute=no 19752 hardcode_libdir_flag_spec= 19753 hardcode_libdir_separator= 19754 hardcode_minus_L=no 19755 hardcode_shlibpath_var=unsupported 19756 inherit_rpath=no 19757 link_all_deplibs=unknown 19758 module_cmds= 19759 module_expsym_cmds= 19760 old_archive_from_new_cmds= 19761 old_archive_from_expsyms_cmds= 19762 thread_safe_flag_spec= 19763 whole_archive_flag_spec= 19764 # include_expsyms should be a list of space-separated symbols to be *always* 19765 # included in the symbol list 19766 include_expsyms= 19767 # exclude_expsyms can be an extended regexp of symbols to exclude 19768 # it will be wrapped by ' (' and ')$', so one must not match beginning or 19769 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 19770 # as well as any symbol that contains 'd'. 19771 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19772 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 19773 # platforms (ab)use it in PIC code, but their linkers get confused if 19774 # the symbol is explicitly referenced. Since portable code cannot 19775 # rely on this symbol name, it's probably fine to never include it in 19776 # preloaded symbol tables. 19777 # Exclude shared library initialization/finalization symbols. 19778 extract_expsyms_cmds= 19779 19780 case $host_os in 19781 cygwin* | mingw* | pw32* | cegcc*) 19782 # FIXME: the MSVC++ port hasn't been tested in a loooong time 19783 # When not using gcc, we currently assume that we are using 19784 # Microsoft Visual C++. 19785 if test yes != "$GCC"; then 19786 with_gnu_ld=no 19787 fi 19788 ;; 19789 interix*) 19790 # we just hope/assume this is gcc and not c89 (= MSVC++) 19791 with_gnu_ld=yes 19792 ;; 19793 openbsd* | bitrig*) 19794 with_gnu_ld=no 19795 ;; 19796 esac 19797 19798 ld_shlibs=yes 19799 19800 # On some targets, GNU ld is compatible enough with the native linker 19801 # that we're better off using the native interface for both. 19802 lt_use_gnu_ld_interface=no 19803 if test yes = "$with_gnu_ld"; then 19804 case $host_os in 19805 aix*) 19806 # The AIX port of GNU ld has always aspired to compatibility 19807 # with the native linker. However, as the warning in the GNU ld 19808 # block says, versions before 2.19.5* couldn't really create working 19809 # shared libraries, regardless of the interface used. 19810 case `$LD -v 2>&1` in 19811 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 19812 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 19813 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 19814 *) 19815 lt_use_gnu_ld_interface=yes 19816 ;; 19817 esac 19818 ;; 19819 *) 19820 lt_use_gnu_ld_interface=yes 19821 ;; 19822 esac 19823 fi 19824 19825 if test yes = "$lt_use_gnu_ld_interface"; then 19826 # If archive_cmds runs LD, not CC, wlarc should be empty 19827 wlarc='$wl' 19828 19829 # Set some defaults for GNU ld with shared library support. These 19830 # are reset later if shared libraries are not supported. Putting them 19831 # here allows them to be overridden if necessary. 19832 runpath_var=LD_RUN_PATH 19833 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19834 export_dynamic_flag_spec='$wl--export-dynamic' 19835 # ancient GNU ld didn't support --whole-archive et. al. 19836 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 19837 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 19838 else 19839 whole_archive_flag_spec= 19840 fi 19841 supports_anon_versioning=no 19842 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 19843 *GNU\ gold*) supports_anon_versioning=yes ;; 19844 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 19845 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 19846 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 19847 *\ 2.11.*) ;; # other 2.11 versions 19848 *) supports_anon_versioning=yes ;; 19849 esac 19850 19851 # See if GNU ld supports shared libraries. 19852 case $host_os in 19853 aix[3-9]*) 19854 # On AIX/PPC, the GNU linker is very broken 19855 if test ia64 != "$host_cpu"; then 19856 ld_shlibs=no 19857 cat <<_LT_EOF 1>&2 19858 19859*** Warning: the GNU linker, at least up to release 2.19, is reported 19860*** to be unable to reliably create shared libraries on AIX. 19861*** Therefore, libtool is disabling shared libraries support. If you 19862*** really care for shared libraries, you may want to install binutils 19863*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 19864*** You will then need to restart the configuration process. 19865 19866_LT_EOF 19867 fi 19868 ;; 19869 19870 amigaos*) 19871 case $host_cpu in 19872 powerpc) 19873 # see comment about AmigaOS4 .so support 19874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19875 archive_expsym_cmds='' 19876 ;; 19877 m68k) 19878 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)' 19879 hardcode_libdir_flag_spec='-L$libdir' 19880 hardcode_minus_L=yes 19881 ;; 19882 esac 19883 ;; 19884 19885 beos*) 19886 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19887 allow_undefined_flag=unsupported 19888 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19889 # support --undefined. This deserves some investigation. FIXME 19890 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19891 else 19892 ld_shlibs=no 19893 fi 19894 ;; 19895 19896 cygwin* | mingw* | pw32* | cegcc*) 19897 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 19898 # as there is no search path for DLLs. 19899 hardcode_libdir_flag_spec='-L$libdir' 19900 export_dynamic_flag_spec='$wl--export-all-symbols' 19901 allow_undefined_flag=unsupported 19902 always_export_symbols=no 19903 enable_shared_with_static_runtimes=yes 19904 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' 19905 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 19906 19907 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19909 # If the export-symbols file already is a .def file, use it as 19910 # is; otherwise, prepend EXPORTS... 19911 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19912 cp $export_symbols $output_objdir/$soname.def; 19913 else 19914 echo EXPORTS > $output_objdir/$soname.def; 19915 cat $export_symbols >> $output_objdir/$soname.def; 19916 fi~ 19917 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19918 else 19919 ld_shlibs=no 19920 fi 19921 ;; 19922 19923 haiku*) 19924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19925 link_all_deplibs=yes 19926 ;; 19927 19928 os2*) 19929 hardcode_libdir_flag_spec='-L$libdir' 19930 hardcode_minus_L=yes 19931 allow_undefined_flag=unsupported 19932 shrext_cmds=.dll 19933 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19934 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19935 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19936 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19937 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19938 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19939 emximp -o $lib $output_objdir/$libname.def' 19940 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19941 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19942 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19943 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19944 prefix_cmds="$SED"~ 19945 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19946 prefix_cmds="$prefix_cmds -e 1d"; 19947 fi~ 19948 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19949 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19950 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19951 emximp -o $lib $output_objdir/$libname.def' 19952 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19953 enable_shared_with_static_runtimes=yes 19954 ;; 19955 19956 interix[3-9]*) 19957 hardcode_direct=no 19958 hardcode_shlibpath_var=no 19959 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 19960 export_dynamic_flag_spec='$wl-E' 19961 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19962 # Instead, shared libraries are loaded at an image base (0x10000000 by 19963 # default) and relocated if they conflict, which is a slow very memory 19964 # consuming and fragmenting process. To avoid this, we pick a random, 19965 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19966 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19967 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 19968 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' 19969 ;; 19970 19971 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 19972 tmp_diet=no 19973 if test linux-dietlibc = "$host_os"; then 19974 case $cc_basename in 19975 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 19976 esac 19977 fi 19978 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 19979 && test no = "$tmp_diet" 19980 then 19981 tmp_addflag=' $pic_flag' 19982 tmp_sharedflag='-shared' 19983 case $cc_basename,$host_cpu in 19984 pgcc*) # Portland Group C compiler 19985 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' 19986 tmp_addflag=' $pic_flag' 19987 ;; 19988 pgf77* | pgf90* | pgf95* | pgfortran*) 19989 # Portland Group f77 and f90 compilers 19990 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' 19991 tmp_addflag=' $pic_flag -Mnomain' ;; 19992 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 19993 tmp_addflag=' -i_dynamic' ;; 19994 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 19995 tmp_addflag=' -i_dynamic -nofor_main' ;; 19996 ifc* | ifort*) # Intel Fortran compiler 19997 tmp_addflag=' -nofor_main' ;; 19998 lf95*) # Lahey Fortran 8.1 19999 whole_archive_flag_spec= 20000 tmp_sharedflag='--shared' ;; 20001 nagfor*) # NAGFOR 5.3 20002 tmp_sharedflag='-Wl,-shared' ;; 20003 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 20004 tmp_sharedflag='-qmkshrobj' 20005 tmp_addflag= ;; 20006 nvcc*) # Cuda Compiler Driver 2.2 20007 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' 20008 compiler_needs_object=yes 20009 ;; 20010 esac 20011 case `$CC -V 2>&1 | sed 5q` in 20012 *Sun\ C*) # Sun C 5.9 20013 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' 20014 compiler_needs_object=yes 20015 tmp_sharedflag='-G' ;; 20016 *Sun\ F*) # Sun Fortran 8.3 20017 tmp_sharedflag='-G' ;; 20018 esac 20019 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20020 20021 if test yes = "$supports_anon_versioning"; then 20022 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 20023 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 20024 echo "local: *; };" >> $output_objdir/$libname.ver~ 20025 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 20026 fi 20027 20028 case $cc_basename in 20029 tcc*) 20030 export_dynamic_flag_spec='-rdynamic' 20031 ;; 20032 xlf* | bgf* | bgxlf* | mpixlf*) 20033 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 20034 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 20035 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20036 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 20037 if test yes = "$supports_anon_versioning"; then 20038 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 20039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 20040 echo "local: *; };" >> $output_objdir/$libname.ver~ 20041 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 20042 fi 20043 ;; 20044 esac 20045 else 20046 ld_shlibs=no 20047 fi 20048 ;; 20049 20050 netbsd*) 20051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 20053 wlarc= 20054 else 20055 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20056 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 20057 fi 20058 ;; 20059 20060 solaris*) 20061 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 20062 ld_shlibs=no 20063 cat <<_LT_EOF 1>&2 20064 20065*** Warning: The releases 2.8.* of the GNU linker cannot reliably 20066*** create shared libraries on Solaris systems. Therefore, libtool 20067*** is disabling shared libraries support. We urge you to upgrade GNU 20068*** binutils to release 2.9.1 or newer. Another option is to modify 20069*** your PATH or compiler configuration so that the native linker is 20070*** used, and then restart. 20071 20072_LT_EOF 20073 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20074 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20075 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 20076 else 20077 ld_shlibs=no 20078 fi 20079 ;; 20080 20081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 20082 case `$LD -v 2>&1` in 20083 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 20084 ld_shlibs=no 20085 cat <<_LT_EOF 1>&2 20086 20087*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 20088*** reliably create shared libraries on SCO systems. Therefore, libtool 20089*** is disabling shared libraries support. We urge you to upgrade GNU 20090*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 20091*** your PATH or compiler configuration so that the native linker is 20092*** used, and then restart. 20093 20094_LT_EOF 20095 ;; 20096 *) 20097 # For security reasons, it is highly recommended that you always 20098 # use absolute paths for naming shared libraries, and exclude the 20099 # DT_RUNPATH tag from executables and libraries. But doing so 20100 # requires that you compile everything twice, which is a pain. 20101 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20102 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 20105 else 20106 ld_shlibs=no 20107 fi 20108 ;; 20109 esac 20110 ;; 20111 20112 sunos4*) 20113 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20114 wlarc= 20115 hardcode_direct=yes 20116 hardcode_shlibpath_var=no 20117 ;; 20118 20119 *) 20120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20121 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20122 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 20123 else 20124 ld_shlibs=no 20125 fi 20126 ;; 20127 esac 20128 20129 if test no = "$ld_shlibs"; then 20130 runpath_var= 20131 hardcode_libdir_flag_spec= 20132 export_dynamic_flag_spec= 20133 whole_archive_flag_spec= 20134 fi 20135 else 20136 # PORTME fill in a description of your system's linker (not GNU ld) 20137 case $host_os in 20138 aix3*) 20139 allow_undefined_flag=unsupported 20140 always_export_symbols=yes 20141 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' 20142 # Note: this linker hardcodes the directories in LIBPATH if there 20143 # are no directories specified by -L. 20144 hardcode_minus_L=yes 20145 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 20146 # Neither direct hardcoding nor static linking is supported with a 20147 # broken collect2. 20148 hardcode_direct=unsupported 20149 fi 20150 ;; 20151 20152 aix[4-9]*) 20153 if test ia64 = "$host_cpu"; then 20154 # On IA64, the linker does run time linking by default, so we don't 20155 # have to do anything special. 20156 aix_use_runtimelinking=no 20157 exp_sym_flag='-Bexport' 20158 no_entry_flag= 20159 else 20160 # If we're using GNU nm, then we don't want the "-C" option. 20161 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 20162 # Without the "-l" option, or with the "-B" option, AIX nm treats 20163 # weak defined symbols like other global defined symbols, whereas 20164 # GNU nm marks them as "W". 20165 # While the 'weak' keyword is ignored in the Export File, we need 20166 # it in the Import File for the 'aix-soname' feature, so we have 20167 # to replace the "-B" option with "-P" for AIX nm. 20168 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 20169 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 20170 else 20171 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 20172 fi 20173 aix_use_runtimelinking=no 20174 20175 # Test if we are trying to use run time linking or normal 20176 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 20177 # have runtime linking enabled, and use it for executables. 20178 # For shared libraries, we enable/disable runtime linking 20179 # depending on the kind of the shared library created - 20180 # when "with_aix_soname,aix_use_runtimelinking" is: 20181 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 20182 # "aix,yes" lib.so shared, rtl:yes, for executables 20183 # lib.a static archive 20184 # "both,no" lib.so.V(shr.o) shared, rtl:yes 20185 # lib.a(lib.so.V) shared, rtl:no, for executables 20186 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 20187 # lib.a(lib.so.V) shared, rtl:no 20188 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 20189 # lib.a static archive 20190 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 20191 for ld_flag in $LDFLAGS; do 20192 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 20193 aix_use_runtimelinking=yes 20194 break 20195 fi 20196 done 20197 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 20198 # With aix-soname=svr4, we create the lib.so.V shared archives only, 20199 # so we don't have lib.a shared libs to link our executables. 20200 # We have to force runtime linking in this case. 20201 aix_use_runtimelinking=yes 20202 LDFLAGS="$LDFLAGS -Wl,-brtl" 20203 fi 20204 ;; 20205 esac 20206 20207 exp_sym_flag='-bexport' 20208 no_entry_flag='-bnoentry' 20209 fi 20210 20211 # When large executables or shared objects are built, AIX ld can 20212 # have problems creating the table of contents. If linking a library 20213 # or program results in "error TOC overflow" add -mminimal-toc to 20214 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 20215 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 20216 20217 archive_cmds='' 20218 hardcode_direct=yes 20219 hardcode_direct_absolute=yes 20220 hardcode_libdir_separator=':' 20221 link_all_deplibs=yes 20222 file_list_spec='$wl-f,' 20223 case $with_aix_soname,$aix_use_runtimelinking in 20224 aix,*) ;; # traditional, no import file 20225 svr4,* | *,yes) # use import file 20226 # The Import File defines what to hardcode. 20227 hardcode_direct=no 20228 hardcode_direct_absolute=no 20229 ;; 20230 esac 20231 20232 if test yes = "$GCC"; then 20233 case $host_os in aix4.[012]|aix4.[012].*) 20234 # We only want to do this on AIX 4.2 and lower, the check 20235 # below for broken collect2 doesn't work under 4.3+ 20236 collect2name=`$CC -print-prog-name=collect2` 20237 if test -f "$collect2name" && 20238 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 20239 then 20240 # We have reworked collect2 20241 : 20242 else 20243 # We have old collect2 20244 hardcode_direct=unsupported 20245 # It fails to find uninstalled libraries when the uninstalled 20246 # path is not listed in the libpath. Setting hardcode_minus_L 20247 # to unsupported forces relinking 20248 hardcode_minus_L=yes 20249 hardcode_libdir_flag_spec='-L$libdir' 20250 hardcode_libdir_separator= 20251 fi 20252 ;; 20253 esac 20254 shared_flag='-shared' 20255 if test yes = "$aix_use_runtimelinking"; then 20256 shared_flag="$shared_flag "'$wl-G' 20257 fi 20258 # Need to ensure runtime linking is disabled for the traditional 20259 # shared library, or the linker may eventually find shared libraries 20260 # /with/ Import File - we do not want to mix them. 20261 shared_flag_aix='-shared' 20262 shared_flag_svr4='-shared $wl-G' 20263 else 20264 # not using gcc 20265 if test ia64 = "$host_cpu"; then 20266 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20267 # chokes on -Wl,-G. The following line is correct: 20268 shared_flag='-G' 20269 else 20270 if test yes = "$aix_use_runtimelinking"; then 20271 shared_flag='$wl-G' 20272 else 20273 shared_flag='$wl-bM:SRE' 20274 fi 20275 shared_flag_aix='$wl-bM:SRE' 20276 shared_flag_svr4='$wl-G' 20277 fi 20278 fi 20279 20280 export_dynamic_flag_spec='$wl-bexpall' 20281 # It seems that -bexpall does not export symbols beginning with 20282 # underscore (_), so it is better to generate a list of symbols to export. 20283 always_export_symbols=yes 20284 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 20285 # Warning - without using the other runtime loading flags (-brtl), 20286 # -berok will link without error, but may produce a broken library. 20287 allow_undefined_flag='-berok' 20288 # Determine the default libpath from the value encoded in an 20289 # empty executable. 20290 if test set = "${lt_cv_aix_libpath+set}"; then 20291 aix_libpath=$lt_cv_aix_libpath 20292else 20293 if ${lt_cv_aix_libpath_+:} false; then : 20294 $as_echo_n "(cached) " >&6 20295else 20296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20297/* end confdefs.h. */ 20298 20299int 20300main () 20301{ 20302 20303 ; 20304 return 0; 20305} 20306_ACEOF 20307if ac_fn_c_try_link "$LINENO"; then : 20308 20309 lt_aix_libpath_sed=' 20310 /Import File Strings/,/^$/ { 20311 /^0/ { 20312 s/^0 *\([^ ]*\) *$/\1/ 20313 p 20314 } 20315 }' 20316 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20317 # Check for a 64-bit object if we didn't find anything. 20318 if test -z "$lt_cv_aix_libpath_"; then 20319 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20320 fi 20321fi 20322rm -f core conftest.err conftest.$ac_objext \ 20323 conftest$ac_exeext conftest.$ac_ext 20324 if test -z "$lt_cv_aix_libpath_"; then 20325 lt_cv_aix_libpath_=/usr/lib:/lib 20326 fi 20327 20328fi 20329 20330 aix_libpath=$lt_cv_aix_libpath_ 20331fi 20332 20333 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 20334 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 20335 else 20336 if test ia64 = "$host_cpu"; then 20337 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 20338 allow_undefined_flag="-z nodefs" 20339 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" 20340 else 20341 # Determine the default libpath from the value encoded in an 20342 # empty executable. 20343 if test set = "${lt_cv_aix_libpath+set}"; then 20344 aix_libpath=$lt_cv_aix_libpath 20345else 20346 if ${lt_cv_aix_libpath_+:} false; then : 20347 $as_echo_n "(cached) " >&6 20348else 20349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20350/* end confdefs.h. */ 20351 20352int 20353main () 20354{ 20355 20356 ; 20357 return 0; 20358} 20359_ACEOF 20360if ac_fn_c_try_link "$LINENO"; then : 20361 20362 lt_aix_libpath_sed=' 20363 /Import File Strings/,/^$/ { 20364 /^0/ { 20365 s/^0 *\([^ ]*\) *$/\1/ 20366 p 20367 } 20368 }' 20369 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20370 # Check for a 64-bit object if we didn't find anything. 20371 if test -z "$lt_cv_aix_libpath_"; then 20372 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20373 fi 20374fi 20375rm -f core conftest.err conftest.$ac_objext \ 20376 conftest$ac_exeext conftest.$ac_ext 20377 if test -z "$lt_cv_aix_libpath_"; then 20378 lt_cv_aix_libpath_=/usr/lib:/lib 20379 fi 20380 20381fi 20382 20383 aix_libpath=$lt_cv_aix_libpath_ 20384fi 20385 20386 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 20387 # Warning - without using the other run time loading flags, 20388 # -berok will link without error, but may produce a broken library. 20389 no_undefined_flag=' $wl-bernotok' 20390 allow_undefined_flag=' $wl-berok' 20391 if test yes = "$with_gnu_ld"; then 20392 # We only use this code for GNU lds that support --whole-archive. 20393 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 20394 else 20395 # Exported symbols can be pulled into shared objects from archives 20396 whole_archive_flag_spec='$convenience' 20397 fi 20398 archive_cmds_need_lc=yes 20399 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 20400 # -brtl affects multiple linker settings, -berok does not and is overridden later 20401 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 20402 if test svr4 != "$with_aix_soname"; then 20403 # This is similar to how AIX traditionally builds its shared libraries. 20404 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 20405 fi 20406 if test aix != "$with_aix_soname"; then 20407 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 20408 else 20409 # used by -dlpreopen to get the symbols 20410 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 20411 fi 20412 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 20413 fi 20414 fi 20415 ;; 20416 20417 amigaos*) 20418 case $host_cpu in 20419 powerpc) 20420 # see comment about AmigaOS4 .so support 20421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20422 archive_expsym_cmds='' 20423 ;; 20424 m68k) 20425 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)' 20426 hardcode_libdir_flag_spec='-L$libdir' 20427 hardcode_minus_L=yes 20428 ;; 20429 esac 20430 ;; 20431 20432 bsdi[45]*) 20433 export_dynamic_flag_spec=-rdynamic 20434 ;; 20435 20436 cygwin* | mingw* | pw32* | cegcc*) 20437 # When not using gcc, we currently assume that we are using 20438 # Microsoft Visual C++. 20439 # hardcode_libdir_flag_spec is actually meaningless, as there is 20440 # no search path for DLLs. 20441 case $cc_basename in 20442 cl*) 20443 # Native MSVC 20444 hardcode_libdir_flag_spec=' ' 20445 allow_undefined_flag=unsupported 20446 always_export_symbols=yes 20447 file_list_spec='@' 20448 # Tell ltmain to make .lib files, not .a files. 20449 libext=lib 20450 # Tell ltmain to make .dll files, not .so files. 20451 shrext_cmds=.dll 20452 # FIXME: Setting linknames here is a bad hack. 20453 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 20454 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 20455 cp "$export_symbols" "$output_objdir/$soname.def"; 20456 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 20457 else 20458 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 20459 fi~ 20460 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 20461 linknames=' 20462 # The linker will not automatically build a static lib if we build a DLL. 20463 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 20464 enable_shared_with_static_runtimes=yes 20465 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 20466 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 20467 # Don't use ranlib 20468 old_postinstall_cmds='chmod 644 $oldlib' 20469 postlink_cmds='lt_outputfile="@OUTPUT@"~ 20470 lt_tool_outputfile="@TOOL_OUTPUT@"~ 20471 case $lt_outputfile in 20472 *.exe|*.EXE) ;; 20473 *) 20474 lt_outputfile=$lt_outputfile.exe 20475 lt_tool_outputfile=$lt_tool_outputfile.exe 20476 ;; 20477 esac~ 20478 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 20479 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 20480 $RM "$lt_outputfile.manifest"; 20481 fi' 20482 ;; 20483 *) 20484 # Assume MSVC wrapper 20485 hardcode_libdir_flag_spec=' ' 20486 allow_undefined_flag=unsupported 20487 # Tell ltmain to make .lib files, not .a files. 20488 libext=lib 20489 # Tell ltmain to make .dll files, not .so files. 20490 shrext_cmds=.dll 20491 # FIXME: Setting linknames here is a bad hack. 20492 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 20493 # The linker will automatically build a .lib file if we build a DLL. 20494 old_archive_from_new_cmds='true' 20495 # FIXME: Should let the user specify the lib program. 20496 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 20497 enable_shared_with_static_runtimes=yes 20498 ;; 20499 esac 20500 ;; 20501 20502 darwin* | rhapsody*) 20503 20504 20505 archive_cmds_need_lc=no 20506 hardcode_direct=no 20507 hardcode_automatic=yes 20508 hardcode_shlibpath_var=unsupported 20509 if test yes = "$lt_cv_ld_force_load"; then 20510 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\"`' 20511 20512 else 20513 whole_archive_flag_spec='' 20514 fi 20515 link_all_deplibs=yes 20516 allow_undefined_flag=$_lt_dar_allow_undefined 20517 case $cc_basename in 20518 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 20519 *) _lt_dar_can_shared=$GCC ;; 20520 esac 20521 if test yes = "$_lt_dar_can_shared"; then 20522 output_verbose_link_cmd=func_echo_all 20523 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 20524 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 20525 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" 20526 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" 20527 20528 else 20529 ld_shlibs=no 20530 fi 20531 20532 ;; 20533 20534 dgux*) 20535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20536 hardcode_libdir_flag_spec='-L$libdir' 20537 hardcode_shlibpath_var=no 20538 ;; 20539 20540 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 20541 # support. Future versions do this automatically, but an explicit c++rt0.o 20542 # does not break anything, and helps significantly (at the cost of a little 20543 # extra space). 20544 freebsd2.2*) 20545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 20546 hardcode_libdir_flag_spec='-R$libdir' 20547 hardcode_direct=yes 20548 hardcode_shlibpath_var=no 20549 ;; 20550 20551 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 20552 freebsd2.*) 20553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20554 hardcode_direct=yes 20555 hardcode_minus_L=yes 20556 hardcode_shlibpath_var=no 20557 ;; 20558 20559 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 20560 freebsd* | dragonfly*) 20561 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20562 hardcode_libdir_flag_spec='-R$libdir' 20563 hardcode_direct=yes 20564 hardcode_shlibpath_var=no 20565 ;; 20566 20567 hpux9*) 20568 if test yes = "$GCC"; then 20569 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 20570 else 20571 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 20572 fi 20573 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 20574 hardcode_libdir_separator=: 20575 hardcode_direct=yes 20576 20577 # hardcode_minus_L: Not really in the search PATH, 20578 # but as the default location of the library. 20579 hardcode_minus_L=yes 20580 export_dynamic_flag_spec='$wl-E' 20581 ;; 20582 20583 hpux10*) 20584 if test yes,no = "$GCC,$with_gnu_ld"; then 20585 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20586 else 20587 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20588 fi 20589 if test no = "$with_gnu_ld"; then 20590 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 20591 hardcode_libdir_separator=: 20592 hardcode_direct=yes 20593 hardcode_direct_absolute=yes 20594 export_dynamic_flag_spec='$wl-E' 20595 # hardcode_minus_L: Not really in the search PATH, 20596 # but as the default location of the library. 20597 hardcode_minus_L=yes 20598 fi 20599 ;; 20600 20601 hpux11*) 20602 if test yes,no = "$GCC,$with_gnu_ld"; then 20603 case $host_cpu in 20604 hppa*64*) 20605 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20606 ;; 20607 ia64*) 20608 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20609 ;; 20610 *) 20611 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20612 ;; 20613 esac 20614 else 20615 case $host_cpu in 20616 hppa*64*) 20617 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20618 ;; 20619 ia64*) 20620 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20621 ;; 20622 *) 20623 20624 # Older versions of the 11.00 compiler do not understand -b yet 20625 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 20626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 20627$as_echo_n "checking if $CC understands -b... " >&6; } 20628if ${lt_cv_prog_compiler__b+:} false; then : 20629 $as_echo_n "(cached) " >&6 20630else 20631 lt_cv_prog_compiler__b=no 20632 save_LDFLAGS=$LDFLAGS 20633 LDFLAGS="$LDFLAGS -b" 20634 echo "$lt_simple_link_test_code" > conftest.$ac_ext 20635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 20636 # The linker can only warn and ignore the option if not recognized 20637 # So say no if there are warnings 20638 if test -s conftest.err; then 20639 # Append any errors to the config.log. 20640 cat conftest.err 1>&5 20641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 20642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20643 if diff conftest.exp conftest.er2 >/dev/null; then 20644 lt_cv_prog_compiler__b=yes 20645 fi 20646 else 20647 lt_cv_prog_compiler__b=yes 20648 fi 20649 fi 20650 $RM -r conftest* 20651 LDFLAGS=$save_LDFLAGS 20652 20653fi 20654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 20655$as_echo "$lt_cv_prog_compiler__b" >&6; } 20656 20657if test yes = "$lt_cv_prog_compiler__b"; then 20658 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20659else 20660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20661fi 20662 20663 ;; 20664 esac 20665 fi 20666 if test no = "$with_gnu_ld"; then 20667 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 20668 hardcode_libdir_separator=: 20669 20670 case $host_cpu in 20671 hppa*64*|ia64*) 20672 hardcode_direct=no 20673 hardcode_shlibpath_var=no 20674 ;; 20675 *) 20676 hardcode_direct=yes 20677 hardcode_direct_absolute=yes 20678 export_dynamic_flag_spec='$wl-E' 20679 20680 # hardcode_minus_L: Not really in the search PATH, 20681 # but as the default location of the library. 20682 hardcode_minus_L=yes 20683 ;; 20684 esac 20685 fi 20686 ;; 20687 20688 irix5* | irix6* | nonstopux*) 20689 if test yes = "$GCC"; then 20690 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' 20691 # Try to use the -exported_symbol ld option, if it does not 20692 # work, assume that -exports_file does not work either and 20693 # implicitly export all symbols. 20694 # This should be the same for all languages, so no per-tag cache variable. 20695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 20696$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 20697if ${lt_cv_irix_exported_symbol+:} false; then : 20698 $as_echo_n "(cached) " >&6 20699else 20700 save_LDFLAGS=$LDFLAGS 20701 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 20702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20703/* end confdefs.h. */ 20704int foo (void) { return 0; } 20705_ACEOF 20706if ac_fn_c_try_link "$LINENO"; then : 20707 lt_cv_irix_exported_symbol=yes 20708else 20709 lt_cv_irix_exported_symbol=no 20710fi 20711rm -f core conftest.err conftest.$ac_objext \ 20712 conftest$ac_exeext conftest.$ac_ext 20713 LDFLAGS=$save_LDFLAGS 20714fi 20715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 20716$as_echo "$lt_cv_irix_exported_symbol" >&6; } 20717 if test yes = "$lt_cv_irix_exported_symbol"; then 20718 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' 20719 fi 20720 else 20721 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' 20722 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' 20723 fi 20724 archive_cmds_need_lc='no' 20725 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20726 hardcode_libdir_separator=: 20727 inherit_rpath=yes 20728 link_all_deplibs=yes 20729 ;; 20730 20731 linux*) 20732 case $cc_basename in 20733 tcc*) 20734 # Fabrice Bellard et al's Tiny C Compiler 20735 ld_shlibs=yes 20736 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20737 ;; 20738 esac 20739 ;; 20740 20741 netbsd*) 20742 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 20744 else 20745 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 20746 fi 20747 hardcode_libdir_flag_spec='-R$libdir' 20748 hardcode_direct=yes 20749 hardcode_shlibpath_var=no 20750 ;; 20751 20752 newsos6) 20753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20754 hardcode_direct=yes 20755 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20756 hardcode_libdir_separator=: 20757 hardcode_shlibpath_var=no 20758 ;; 20759 20760 *nto* | *qnx*) 20761 ;; 20762 20763 openbsd* | bitrig*) 20764 if test -f /usr/libexec/ld.so; then 20765 hardcode_direct=yes 20766 hardcode_shlibpath_var=no 20767 hardcode_direct_absolute=yes 20768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 20769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20770 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 20771 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 20772 export_dynamic_flag_spec='$wl-E' 20773 else 20774 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20775 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 20776 fi 20777 else 20778 ld_shlibs=no 20779 fi 20780 ;; 20781 20782 os2*) 20783 hardcode_libdir_flag_spec='-L$libdir' 20784 hardcode_minus_L=yes 20785 allow_undefined_flag=unsupported 20786 shrext_cmds=.dll 20787 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20788 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20789 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20790 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20791 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 20792 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20793 emximp -o $lib $output_objdir/$libname.def' 20794 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20795 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20796 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20797 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20798 prefix_cmds="$SED"~ 20799 if test EXPORTS = "`$SED 1q $export_symbols`"; then 20800 prefix_cmds="$prefix_cmds -e 1d"; 20801 fi~ 20802 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 20803 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 20804 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20805 emximp -o $lib $output_objdir/$libname.def' 20806 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 20807 enable_shared_with_static_runtimes=yes 20808 ;; 20809 20810 osf3*) 20811 if test yes = "$GCC"; then 20812 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 20813 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' 20814 else 20815 allow_undefined_flag=' -expect_unresolved \*' 20816 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' 20817 fi 20818 archive_cmds_need_lc='no' 20819 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20820 hardcode_libdir_separator=: 20821 ;; 20822 20823 osf4* | osf5*) # as osf3* with the addition of -msym flag 20824 if test yes = "$GCC"; then 20825 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 20826 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' 20827 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20828 else 20829 allow_undefined_flag=' -expect_unresolved \*' 20830 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' 20831 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~ 20832 $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' 20833 20834 # Both c and cxx compiler support -rpath directly 20835 hardcode_libdir_flag_spec='-rpath $libdir' 20836 fi 20837 archive_cmds_need_lc='no' 20838 hardcode_libdir_separator=: 20839 ;; 20840 20841 solaris*) 20842 no_undefined_flag=' -z defs' 20843 if test yes = "$GCC"; then 20844 wlarc='$wl' 20845 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20846 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20847 $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' 20848 else 20849 case `$CC -V 2>&1` in 20850 *"Compilers 5.0"*) 20851 wlarc='' 20852 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 20853 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20854 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 20855 ;; 20856 *) 20857 wlarc='$wl' 20858 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 20859 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20860 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 20861 ;; 20862 esac 20863 fi 20864 hardcode_libdir_flag_spec='-R$libdir' 20865 hardcode_shlibpath_var=no 20866 case $host_os in 20867 solaris2.[0-5] | solaris2.[0-5].*) ;; 20868 *) 20869 # The compiler driver will combine and reorder linker options, 20870 # but understands '-z linker_flag'. GCC discards it without '$wl', 20871 # but is careful enough not to reorder. 20872 # Supported since Solaris 2.6 (maybe 2.5.1?) 20873 if test yes = "$GCC"; then 20874 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 20875 else 20876 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 20877 fi 20878 ;; 20879 esac 20880 link_all_deplibs=yes 20881 ;; 20882 20883 sunos4*) 20884 if test sequent = "$host_vendor"; then 20885 # Use $CC to link under sequent, because it throws in some extra .o 20886 # files that make .init and .fini sections work. 20887 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 20888 else 20889 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 20890 fi 20891 hardcode_libdir_flag_spec='-L$libdir' 20892 hardcode_direct=yes 20893 hardcode_minus_L=yes 20894 hardcode_shlibpath_var=no 20895 ;; 20896 20897 sysv4) 20898 case $host_vendor in 20899 sni) 20900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20901 hardcode_direct=yes # is this really true??? 20902 ;; 20903 siemens) 20904 ## LD is ld it makes a PLAMLIB 20905 ## CC just makes a GrossModule. 20906 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 20907 reload_cmds='$CC -r -o $output$reload_objs' 20908 hardcode_direct=no 20909 ;; 20910 motorola) 20911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20912 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 20913 ;; 20914 esac 20915 runpath_var='LD_RUN_PATH' 20916 hardcode_shlibpath_var=no 20917 ;; 20918 20919 sysv4.3*) 20920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20921 hardcode_shlibpath_var=no 20922 export_dynamic_flag_spec='-Bexport' 20923 ;; 20924 20925 sysv4*MP*) 20926 if test -d /usr/nec; then 20927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20928 hardcode_shlibpath_var=no 20929 runpath_var=LD_RUN_PATH 20930 hardcode_runpath_var=yes 20931 ld_shlibs=yes 20932 fi 20933 ;; 20934 20935 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20936 no_undefined_flag='$wl-z,text' 20937 archive_cmds_need_lc=no 20938 hardcode_shlibpath_var=no 20939 runpath_var='LD_RUN_PATH' 20940 20941 if test yes = "$GCC"; then 20942 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20943 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20944 else 20945 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20946 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20947 fi 20948 ;; 20949 20950 sysv5* | sco3.2v5* | sco5v6*) 20951 # Note: We CANNOT use -z defs as we might desire, because we do not 20952 # link with -lc, and that would cause any symbols used from libc to 20953 # always be unresolved, which means just about no library would 20954 # ever link correctly. If we're not using GNU ld we use -z text 20955 # though, which does catch some bad symbols but isn't as heavy-handed 20956 # as -z defs. 20957 no_undefined_flag='$wl-z,text' 20958 allow_undefined_flag='$wl-z,nodefs' 20959 archive_cmds_need_lc=no 20960 hardcode_shlibpath_var=no 20961 hardcode_libdir_flag_spec='$wl-R,$libdir' 20962 hardcode_libdir_separator=':' 20963 link_all_deplibs=yes 20964 export_dynamic_flag_spec='$wl-Bexport' 20965 runpath_var='LD_RUN_PATH' 20966 20967 if test yes = "$GCC"; then 20968 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20969 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20970 else 20971 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20972 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20973 fi 20974 ;; 20975 20976 uts4*) 20977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20978 hardcode_libdir_flag_spec='-L$libdir' 20979 hardcode_shlibpath_var=no 20980 ;; 20981 20982 *) 20983 ld_shlibs=no 20984 ;; 20985 esac 20986 20987 if test sni = "$host_vendor"; then 20988 case $host in 20989 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 20990 export_dynamic_flag_spec='$wl-Blargedynsym' 20991 ;; 20992 esac 20993 fi 20994 fi 20995 20996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 20997$as_echo "$ld_shlibs" >&6; } 20998test no = "$ld_shlibs" && can_build_shared=no 20999 21000with_gnu_ld=$with_gnu_ld 21001 21002 21003 21004 21005 21006 21007 21008 21009 21010 21011 21012 21013 21014 21015 21016# 21017# Do we need to explicitly link libc? 21018# 21019case "x$archive_cmds_need_lc" in 21020x|xyes) 21021 # Assume -lc should be added 21022 archive_cmds_need_lc=yes 21023 21024 if test yes,yes = "$GCC,$enable_shared"; then 21025 case $archive_cmds in 21026 *'~'*) 21027 # FIXME: we may have to deal with multi-command sequences. 21028 ;; 21029 '$CC '*) 21030 # Test whether the compiler implicitly links with -lc since on some 21031 # systems, -lgcc has to come before -lc. If gcc already passes -lc 21032 # to ld, don't add -lc before -lgcc. 21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 21034$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 21035if ${lt_cv_archive_cmds_need_lc+:} false; then : 21036 $as_echo_n "(cached) " >&6 21037else 21038 $RM conftest* 21039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21040 21041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21042 (eval $ac_compile) 2>&5 21043 ac_status=$? 21044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21045 test $ac_status = 0; } 2>conftest.err; then 21046 soname=conftest 21047 lib=conftest 21048 libobjs=conftest.$ac_objext 21049 deplibs= 21050 wl=$lt_prog_compiler_wl 21051 pic_flag=$lt_prog_compiler_pic 21052 compiler_flags=-v 21053 linker_flags=-v 21054 verstring= 21055 output_objdir=. 21056 libname=conftest 21057 lt_save_allow_undefined_flag=$allow_undefined_flag 21058 allow_undefined_flag= 21059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 21060 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 21061 ac_status=$? 21062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21063 test $ac_status = 0; } 21064 then 21065 lt_cv_archive_cmds_need_lc=no 21066 else 21067 lt_cv_archive_cmds_need_lc=yes 21068 fi 21069 allow_undefined_flag=$lt_save_allow_undefined_flag 21070 else 21071 cat conftest.err 1>&5 21072 fi 21073 $RM conftest* 21074 21075fi 21076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 21077$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 21078 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 21079 ;; 21080 esac 21081 fi 21082 ;; 21083esac 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 21094 21095 21096 21097 21098 21099 21100 21101 21102 21103 21104 21105 21106 21107 21108 21109 21110 21111 21112 21113 21114 21115 21116 21117 21118 21119 21120 21121 21122 21123 21124 21125 21126 21127 21128 21129 21130 21131 21132 21133 21134 21135 21136 21137 21138 21139 21140 21141 21142 21143 21144 21145 21146 21147 21148 21149 21150 21151 21152 21153 21154 21155 21156 21157 21158 21159 21160 21161 21162 21163 21164 21165 21166 21167 21168 21169 21170 21171 21172 21173 21174 21175 21176 21177 21178 21179 21180 21181 21182 21183 21184 21185 21186 21187 21188 21189 21190 21191 21192 21193 21194 21195 21196 21197 21198 21199 21200 21201 21202 21203 21204 21205 21206 21207 21208 21209 21210 21211 21212 21213 21214 21215 21216 21217 21218 21219 21220 21221 21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 21237$as_echo_n "checking dynamic linker characteristics... " >&6; } 21238 21239if test yes = "$GCC"; then 21240 case $host_os in 21241 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 21242 *) lt_awk_arg='/^libraries:/' ;; 21243 esac 21244 case $host_os in 21245 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 21246 *) lt_sed_strip_eq='s|=/|/|g' ;; 21247 esac 21248 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 21249 case $lt_search_path_spec in 21250 *\;*) 21251 # if the path contains ";" then we assume it to be the separator 21252 # otherwise default to the standard path separator (i.e. ":") - it is 21253 # assumed that no part of a normal pathname contains ";" but that should 21254 # okay in the real world where ";" in dirpaths is itself problematic. 21255 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 21256 ;; 21257 *) 21258 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 21259 ;; 21260 esac 21261 # Ok, now we have the path, separated by spaces, we can step through it 21262 # and add multilib dir if necessary... 21263 lt_tmp_lt_search_path_spec= 21264 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 21265 # ...but if some path component already ends with the multilib dir we assume 21266 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 21267 case "$lt_multi_os_dir; $lt_search_path_spec " in 21268 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 21269 lt_multi_os_dir= 21270 ;; 21271 esac 21272 for lt_sys_path in $lt_search_path_spec; do 21273 if test -d "$lt_sys_path$lt_multi_os_dir"; then 21274 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 21275 elif test -n "$lt_multi_os_dir"; then 21276 test -d "$lt_sys_path" && \ 21277 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 21278 fi 21279 done 21280 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 21281BEGIN {RS = " "; FS = "/|\n";} { 21282 lt_foo = ""; 21283 lt_count = 0; 21284 for (lt_i = NF; lt_i > 0; lt_i--) { 21285 if ($lt_i != "" && $lt_i != ".") { 21286 if ($lt_i == "..") { 21287 lt_count++; 21288 } else { 21289 if (lt_count == 0) { 21290 lt_foo = "/" $lt_i lt_foo; 21291 } else { 21292 lt_count--; 21293 } 21294 } 21295 } 21296 } 21297 if (lt_foo != "") { lt_freq[lt_foo]++; } 21298 if (lt_freq[lt_foo] == 1) { print lt_foo; } 21299}'` 21300 # AWK program above erroneously prepends '/' to C:/dos/paths 21301 # for these hosts. 21302 case $host_os in 21303 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 21304 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 21305 esac 21306 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 21307else 21308 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21309fi 21310library_names_spec= 21311libname_spec='lib$name' 21312soname_spec= 21313shrext_cmds=.so 21314postinstall_cmds= 21315postuninstall_cmds= 21316finish_cmds= 21317finish_eval= 21318shlibpath_var= 21319shlibpath_overrides_runpath=unknown 21320version_type=none 21321dynamic_linker="$host_os ld.so" 21322sys_lib_dlsearch_path_spec="/lib /usr/lib" 21323need_lib_prefix=unknown 21324hardcode_into_libs=no 21325 21326# when you set need_version to no, make sure it does not cause -set_version 21327# flags to be left without arguments 21328need_version=unknown 21329 21330 21331 21332case $host_os in 21333aix3*) 21334 version_type=linux # correct to gnu/linux during the next big refactor 21335 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 21336 shlibpath_var=LIBPATH 21337 21338 # AIX 3 has no versioning support, so we append a major version to the name. 21339 soname_spec='$libname$release$shared_ext$major' 21340 ;; 21341 21342aix[4-9]*) 21343 version_type=linux # correct to gnu/linux during the next big refactor 21344 need_lib_prefix=no 21345 need_version=no 21346 hardcode_into_libs=yes 21347 if test ia64 = "$host_cpu"; then 21348 # AIX 5 supports IA64 21349 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 21350 shlibpath_var=LD_LIBRARY_PATH 21351 else 21352 # With GCC up to 2.95.x, collect2 would create an import file 21353 # for dependence libraries. The import file would start with 21354 # the line '#! .'. This would cause the generated library to 21355 # depend on '.', always an invalid library. This was fixed in 21356 # development snapshots of GCC prior to 3.0. 21357 case $host_os in 21358 aix4 | aix4.[01] | aix4.[01].*) 21359 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21360 echo ' yes ' 21361 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 21362 : 21363 else 21364 can_build_shared=no 21365 fi 21366 ;; 21367 esac 21368 # Using Import Files as archive members, it is possible to support 21369 # filename-based versioning of shared library archives on AIX. While 21370 # this would work for both with and without runtime linking, it will 21371 # prevent static linking of such archives. So we do filename-based 21372 # shared library versioning with .so extension only, which is used 21373 # when both runtime linking and shared linking is enabled. 21374 # Unfortunately, runtime linking may impact performance, so we do 21375 # not want this to be the default eventually. Also, we use the 21376 # versioned .so libs for executables only if there is the -brtl 21377 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 21378 # To allow for filename-based versioning support, we need to create 21379 # libNAME.so.V as an archive file, containing: 21380 # *) an Import File, referring to the versioned filename of the 21381 # archive as well as the shared archive member, telling the 21382 # bitwidth (32 or 64) of that shared object, and providing the 21383 # list of exported symbols of that shared object, eventually 21384 # decorated with the 'weak' keyword 21385 # *) the shared object with the F_LOADONLY flag set, to really avoid 21386 # it being seen by the linker. 21387 # At run time we better use the real file rather than another symlink, 21388 # but for link time we create the symlink libNAME.so -> libNAME.so.V 21389 21390 case $with_aix_soname,$aix_use_runtimelinking in 21391 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 21392 # soname into executable. Probably we can add versioning support to 21393 # collect2, so additional links can be useful in future. 21394 aix,yes) # traditional libtool 21395 dynamic_linker='AIX unversionable lib.so' 21396 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21397 # instead of lib<name>.a to let people know that these are not 21398 # typical AIX shared libraries. 21399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21400 ;; 21401 aix,no) # traditional AIX only 21402 dynamic_linker='AIX lib.a(lib.so.V)' 21403 # We preserve .a as extension for shared libraries through AIX4.2 21404 # and later when we are not doing run time linking. 21405 library_names_spec='$libname$release.a $libname.a' 21406 soname_spec='$libname$release$shared_ext$major' 21407 ;; 21408 svr4,*) # full svr4 only 21409 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 21410 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21411 # We do not specify a path in Import Files, so LIBPATH fires. 21412 shlibpath_overrides_runpath=yes 21413 ;; 21414 *,yes) # both, prefer svr4 21415 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 21416 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21417 # unpreferred sharedlib libNAME.a needs extra handling 21418 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 21419 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 21420 # We do not specify a path in Import Files, so LIBPATH fires. 21421 shlibpath_overrides_runpath=yes 21422 ;; 21423 *,no) # both, prefer aix 21424 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 21425 library_names_spec='$libname$release.a $libname.a' 21426 soname_spec='$libname$release$shared_ext$major' 21427 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 21428 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 21429 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 21430 ;; 21431 esac 21432 shlibpath_var=LIBPATH 21433 fi 21434 ;; 21435 21436amigaos*) 21437 case $host_cpu in 21438 powerpc) 21439 # Since July 2007 AmigaOS4 officially supports .so libraries. 21440 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21442 ;; 21443 m68k) 21444 library_names_spec='$libname.ixlibrary $libname.a' 21445 # Create ${libname}_ixlibrary.a entries in /sys/libs. 21446 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 21447 ;; 21448 esac 21449 ;; 21450 21451beos*) 21452 library_names_spec='$libname$shared_ext' 21453 dynamic_linker="$host_os ld.so" 21454 shlibpath_var=LIBRARY_PATH 21455 ;; 21456 21457bsdi[45]*) 21458 version_type=linux # correct to gnu/linux during the next big refactor 21459 need_version=no 21460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21461 soname_spec='$libname$release$shared_ext$major' 21462 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 21463 shlibpath_var=LD_LIBRARY_PATH 21464 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 21465 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 21466 # the default ld.so.conf also contains /usr/contrib/lib and 21467 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 21468 # libtool to hard-code these into programs 21469 ;; 21470 21471cygwin* | mingw* | pw32* | cegcc*) 21472 version_type=windows 21473 shrext_cmds=.dll 21474 need_version=no 21475 need_lib_prefix=no 21476 21477 case $GCC,$cc_basename in 21478 yes,*) 21479 # gcc 21480 library_names_spec='$libname.dll.a' 21481 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21482 postinstall_cmds='base_file=`basename \$file`~ 21483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21484 dldir=$destdir/`dirname \$dlpath`~ 21485 test -d \$dldir || mkdir -p \$dldir~ 21486 $install_prog $dir/$dlname \$dldir/$dlname~ 21487 chmod a+x \$dldir/$dlname~ 21488 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21489 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21490 fi' 21491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21492 dlpath=$dir/\$dldll~ 21493 $RM \$dlpath' 21494 shlibpath_overrides_runpath=yes 21495 21496 case $host_os in 21497 cygwin*) 21498 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 21499 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21500 21501 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 21502 ;; 21503 mingw* | cegcc*) 21504 # MinGW DLLs use traditional 'lib' prefix 21505 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21506 ;; 21507 pw32*) 21508 # pw32 DLLs use 'pw' prefix rather than 'lib' 21509 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21510 ;; 21511 esac 21512 dynamic_linker='Win32 ld.exe' 21513 ;; 21514 21515 *,cl*) 21516 # Native MSVC 21517 libname_spec='$name' 21518 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21519 library_names_spec='$libname.dll.lib' 21520 21521 case $build_os in 21522 mingw*) 21523 sys_lib_search_path_spec= 21524 lt_save_ifs=$IFS 21525 IFS=';' 21526 for lt_path in $LIB 21527 do 21528 IFS=$lt_save_ifs 21529 # Let DOS variable expansion print the short 8.3 style file name. 21530 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 21531 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 21532 done 21533 IFS=$lt_save_ifs 21534 # Convert to MSYS style. 21535 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 21536 ;; 21537 cygwin*) 21538 # Convert to unix form, then to dos form, then back to unix form 21539 # but this time dos style (no spaces!) so that the unix form looks 21540 # like /cygdrive/c/PROGRA~1:/cygdr... 21541 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 21542 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 21543 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21544 ;; 21545 *) 21546 sys_lib_search_path_spec=$LIB 21547 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 21548 # It is most probably a Windows format PATH. 21549 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 21550 else 21551 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21552 fi 21553 # FIXME: find the short name or the path components, as spaces are 21554 # common. (e.g. "Program Files" -> "PROGRA~1") 21555 ;; 21556 esac 21557 21558 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21559 postinstall_cmds='base_file=`basename \$file`~ 21560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21561 dldir=$destdir/`dirname \$dlpath`~ 21562 test -d \$dldir || mkdir -p \$dldir~ 21563 $install_prog $dir/$dlname \$dldir/$dlname' 21564 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21565 dlpath=$dir/\$dldll~ 21566 $RM \$dlpath' 21567 shlibpath_overrides_runpath=yes 21568 dynamic_linker='Win32 link.exe' 21569 ;; 21570 21571 *) 21572 # Assume MSVC wrapper 21573 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 21574 dynamic_linker='Win32 ld.exe' 21575 ;; 21576 esac 21577 # FIXME: first we should search . and the directory the executable is in 21578 shlibpath_var=PATH 21579 ;; 21580 21581darwin* | rhapsody*) 21582 dynamic_linker="$host_os dyld" 21583 version_type=darwin 21584 need_lib_prefix=no 21585 need_version=no 21586 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 21587 soname_spec='$libname$release$major$shared_ext' 21588 shlibpath_overrides_runpath=yes 21589 shlibpath_var=DYLD_LIBRARY_PATH 21590 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 21591 21592 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 21593 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 21594 ;; 21595 21596dgux*) 21597 version_type=linux # correct to gnu/linux during the next big refactor 21598 need_lib_prefix=no 21599 need_version=no 21600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21601 soname_spec='$libname$release$shared_ext$major' 21602 shlibpath_var=LD_LIBRARY_PATH 21603 ;; 21604 21605freebsd* | dragonfly*) 21606 # DragonFly does not have aout. When/if they implement a new 21607 # versioning mechanism, adjust this. 21608 if test -x /usr/bin/objformat; then 21609 objformat=`/usr/bin/objformat` 21610 else 21611 case $host_os in 21612 freebsd[23].*) objformat=aout ;; 21613 *) objformat=elf ;; 21614 esac 21615 fi 21616 version_type=freebsd-$objformat 21617 case $version_type in 21618 freebsd-elf*) 21619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21620 soname_spec='$libname$release$shared_ext$major' 21621 need_version=no 21622 need_lib_prefix=no 21623 ;; 21624 freebsd-*) 21625 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21626 need_version=yes 21627 ;; 21628 esac 21629 shlibpath_var=LD_LIBRARY_PATH 21630 case $host_os in 21631 freebsd2.*) 21632 shlibpath_overrides_runpath=yes 21633 ;; 21634 freebsd3.[01]* | freebsdelf3.[01]*) 21635 shlibpath_overrides_runpath=yes 21636 hardcode_into_libs=yes 21637 ;; 21638 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 21639 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 21640 shlibpath_overrides_runpath=no 21641 hardcode_into_libs=yes 21642 ;; 21643 *) # from 4.6 on, and DragonFly 21644 shlibpath_overrides_runpath=yes 21645 hardcode_into_libs=yes 21646 ;; 21647 esac 21648 ;; 21649 21650haiku*) 21651 version_type=linux # correct to gnu/linux during the next big refactor 21652 need_lib_prefix=no 21653 need_version=no 21654 dynamic_linker="$host_os runtime_loader" 21655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21656 soname_spec='$libname$release$shared_ext$major' 21657 shlibpath_var=LIBRARY_PATH 21658 shlibpath_overrides_runpath=no 21659 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 21660 hardcode_into_libs=yes 21661 ;; 21662 21663hpux9* | hpux10* | hpux11*) 21664 # Give a soname corresponding to the major version so that dld.sl refuses to 21665 # link against other versions. 21666 version_type=sunos 21667 need_lib_prefix=no 21668 need_version=no 21669 case $host_cpu in 21670 ia64*) 21671 shrext_cmds='.so' 21672 hardcode_into_libs=yes 21673 dynamic_linker="$host_os dld.so" 21674 shlibpath_var=LD_LIBRARY_PATH 21675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21677 soname_spec='$libname$release$shared_ext$major' 21678 if test 32 = "$HPUX_IA64_MODE"; then 21679 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 21680 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 21681 else 21682 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 21683 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 21684 fi 21685 ;; 21686 hppa*64*) 21687 shrext_cmds='.sl' 21688 hardcode_into_libs=yes 21689 dynamic_linker="$host_os dld.sl" 21690 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 21691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21693 soname_spec='$libname$release$shared_ext$major' 21694 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 21695 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21696 ;; 21697 *) 21698 shrext_cmds='.sl' 21699 dynamic_linker="$host_os dld.sl" 21700 shlibpath_var=SHLIB_PATH 21701 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 21702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21703 soname_spec='$libname$release$shared_ext$major' 21704 ;; 21705 esac 21706 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 21707 postinstall_cmds='chmod 555 $lib' 21708 # or fails outright, so override atomically: 21709 install_override_mode=555 21710 ;; 21711 21712interix[3-9]*) 21713 version_type=linux # correct to gnu/linux during the next big refactor 21714 need_lib_prefix=no 21715 need_version=no 21716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21717 soname_spec='$libname$release$shared_ext$major' 21718 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 21719 shlibpath_var=LD_LIBRARY_PATH 21720 shlibpath_overrides_runpath=no 21721 hardcode_into_libs=yes 21722 ;; 21723 21724irix5* | irix6* | nonstopux*) 21725 case $host_os in 21726 nonstopux*) version_type=nonstopux ;; 21727 *) 21728 if test yes = "$lt_cv_prog_gnu_ld"; then 21729 version_type=linux # correct to gnu/linux during the next big refactor 21730 else 21731 version_type=irix 21732 fi ;; 21733 esac 21734 need_lib_prefix=no 21735 need_version=no 21736 soname_spec='$libname$release$shared_ext$major' 21737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 21738 case $host_os in 21739 irix5* | nonstopux*) 21740 libsuff= shlibsuff= 21741 ;; 21742 *) 21743 case $LD in # libtool.m4 will add one of these switches to LD 21744 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21745 libsuff= shlibsuff= libmagic=32-bit;; 21746 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21747 libsuff=32 shlibsuff=N32 libmagic=N32;; 21748 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21749 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21750 *) libsuff= shlibsuff= libmagic=never-match;; 21751 esac 21752 ;; 21753 esac 21754 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21755 shlibpath_overrides_runpath=no 21756 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 21757 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 21758 hardcode_into_libs=yes 21759 ;; 21760 21761# No shared lib support for Linux oldld, aout, or coff. 21762linux*oldld* | linux*aout* | linux*coff*) 21763 dynamic_linker=no 21764 ;; 21765 21766linux*android*) 21767 version_type=none # Android doesn't support versioned libraries. 21768 need_lib_prefix=no 21769 need_version=no 21770 library_names_spec='$libname$release$shared_ext' 21771 soname_spec='$libname$release$shared_ext' 21772 finish_cmds= 21773 shlibpath_var=LD_LIBRARY_PATH 21774 shlibpath_overrides_runpath=yes 21775 21776 # This implies no fast_install, which is unacceptable. 21777 # Some rework will be needed to allow for fast_install 21778 # before this can be enabled. 21779 hardcode_into_libs=yes 21780 21781 dynamic_linker='Android linker' 21782 # Don't embed -rpath directories since the linker doesn't support them. 21783 hardcode_libdir_flag_spec='-L$libdir' 21784 ;; 21785 21786# This must be glibc/ELF. 21787linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21788 version_type=linux # correct to gnu/linux during the next big refactor 21789 need_lib_prefix=no 21790 need_version=no 21791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21792 soname_spec='$libname$release$shared_ext$major' 21793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21794 shlibpath_var=LD_LIBRARY_PATH 21795 shlibpath_overrides_runpath=no 21796 21797 # Some binutils ld are patched to set DT_RUNPATH 21798 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 21799 $as_echo_n "(cached) " >&6 21800else 21801 lt_cv_shlibpath_overrides_runpath=no 21802 save_LDFLAGS=$LDFLAGS 21803 save_libdir=$libdir 21804 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 21805 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 21806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21807/* end confdefs.h. */ 21808 21809int 21810main () 21811{ 21812 21813 ; 21814 return 0; 21815} 21816_ACEOF 21817if ac_fn_c_try_link "$LINENO"; then : 21818 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 21819 lt_cv_shlibpath_overrides_runpath=yes 21820fi 21821fi 21822rm -f core conftest.err conftest.$ac_objext \ 21823 conftest$ac_exeext conftest.$ac_ext 21824 LDFLAGS=$save_LDFLAGS 21825 libdir=$save_libdir 21826 21827fi 21828 21829 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 21830 21831 # This implies no fast_install, which is unacceptable. 21832 # Some rework will be needed to allow for fast_install 21833 # before this can be enabled. 21834 hardcode_into_libs=yes 21835 21836 # Ideally, we could use ldconfig to report *all* directores which are 21837 # searched for libraries, however this is still not possible. Aside from not 21838 # being certain /sbin/ldconfig is available, command 21839 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 21840 # even though it is searched at run-time. Try to do the best guess by 21841 # appending ld.so.conf contents (and includes) to the search path. 21842 if test -f /etc/ld.so.conf; then 21843 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' ' '` 21844 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 21845 fi 21846 21847 # We used to test for /lib/ld.so.1 and disable shared libraries on 21848 # powerpc, because MkLinux only supported shared libraries with the 21849 # GNU dynamic linker. Since this was broken with cross compilers, 21850 # most powerpc-linux boxes support dynamic linking these days and 21851 # people can always --disable-shared, the test was removed, and we 21852 # assume the GNU/Linux dynamic linker is in use. 21853 dynamic_linker='GNU/Linux ld.so' 21854 ;; 21855 21856netbsd*) 21857 version_type=sunos 21858 need_lib_prefix=no 21859 need_version=no 21860 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21861 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21863 dynamic_linker='NetBSD (a.out) ld.so' 21864 else 21865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21866 soname_spec='$libname$release$shared_ext$major' 21867 dynamic_linker='NetBSD ld.elf_so' 21868 fi 21869 shlibpath_var=LD_LIBRARY_PATH 21870 shlibpath_overrides_runpath=yes 21871 hardcode_into_libs=yes 21872 ;; 21873 21874newsos6) 21875 version_type=linux # correct to gnu/linux during the next big refactor 21876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21877 shlibpath_var=LD_LIBRARY_PATH 21878 shlibpath_overrides_runpath=yes 21879 ;; 21880 21881*nto* | *qnx*) 21882 version_type=qnx 21883 need_lib_prefix=no 21884 need_version=no 21885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21886 soname_spec='$libname$release$shared_ext$major' 21887 shlibpath_var=LD_LIBRARY_PATH 21888 shlibpath_overrides_runpath=no 21889 hardcode_into_libs=yes 21890 dynamic_linker='ldqnx.so' 21891 ;; 21892 21893openbsd* | bitrig*) 21894 version_type=sunos 21895 sys_lib_dlsearch_path_spec=/usr/lib 21896 need_lib_prefix=no 21897 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 21898 need_version=no 21899 else 21900 need_version=yes 21901 fi 21902 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21904 shlibpath_var=LD_LIBRARY_PATH 21905 shlibpath_overrides_runpath=yes 21906 ;; 21907 21908os2*) 21909 libname_spec='$name' 21910 version_type=windows 21911 shrext_cmds=.dll 21912 need_version=no 21913 need_lib_prefix=no 21914 # OS/2 can only load a DLL with a base name of 8 characters or less. 21915 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 21916 v=$($ECHO $release$versuffix | tr -d .-); 21917 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 21918 $ECHO $n$v`$shared_ext' 21919 library_names_spec='${libname}_dll.$libext' 21920 dynamic_linker='OS/2 ld.exe' 21921 shlibpath_var=BEGINLIBPATH 21922 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21924 postinstall_cmds='base_file=`basename \$file`~ 21925 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 21926 dldir=$destdir/`dirname \$dlpath`~ 21927 test -d \$dldir || mkdir -p \$dldir~ 21928 $install_prog $dir/$dlname \$dldir/$dlname~ 21929 chmod a+x \$dldir/$dlname~ 21930 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21931 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21932 fi' 21933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 21934 dlpath=$dir/\$dldll~ 21935 $RM \$dlpath' 21936 ;; 21937 21938osf3* | osf4* | osf5*) 21939 version_type=osf 21940 need_lib_prefix=no 21941 need_version=no 21942 soname_spec='$libname$release$shared_ext$major' 21943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21944 shlibpath_var=LD_LIBRARY_PATH 21945 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21947 ;; 21948 21949rdos*) 21950 dynamic_linker=no 21951 ;; 21952 21953solaris*) 21954 version_type=linux # correct to gnu/linux during the next big refactor 21955 need_lib_prefix=no 21956 need_version=no 21957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21958 soname_spec='$libname$release$shared_ext$major' 21959 shlibpath_var=LD_LIBRARY_PATH 21960 shlibpath_overrides_runpath=yes 21961 hardcode_into_libs=yes 21962 # ldd complains unless libraries are executable 21963 postinstall_cmds='chmod +x $lib' 21964 ;; 21965 21966sunos4*) 21967 version_type=sunos 21968 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21969 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21970 shlibpath_var=LD_LIBRARY_PATH 21971 shlibpath_overrides_runpath=yes 21972 if test yes = "$with_gnu_ld"; then 21973 need_lib_prefix=no 21974 fi 21975 need_version=yes 21976 ;; 21977 21978sysv4 | sysv4.3*) 21979 version_type=linux # correct to gnu/linux during the next big refactor 21980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21981 soname_spec='$libname$release$shared_ext$major' 21982 shlibpath_var=LD_LIBRARY_PATH 21983 case $host_vendor in 21984 sni) 21985 shlibpath_overrides_runpath=no 21986 need_lib_prefix=no 21987 runpath_var=LD_RUN_PATH 21988 ;; 21989 siemens) 21990 need_lib_prefix=no 21991 ;; 21992 motorola) 21993 need_lib_prefix=no 21994 need_version=no 21995 shlibpath_overrides_runpath=no 21996 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21997 ;; 21998 esac 21999 ;; 22000 22001sysv4*MP*) 22002 if test -d /usr/nec; then 22003 version_type=linux # correct to gnu/linux during the next big refactor 22004 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 22005 soname_spec='$libname$shared_ext.$major' 22006 shlibpath_var=LD_LIBRARY_PATH 22007 fi 22008 ;; 22009 22010sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 22011 version_type=sco 22012 need_lib_prefix=no 22013 need_version=no 22014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 22015 soname_spec='$libname$release$shared_ext$major' 22016 shlibpath_var=LD_LIBRARY_PATH 22017 shlibpath_overrides_runpath=yes 22018 hardcode_into_libs=yes 22019 if test yes = "$with_gnu_ld"; then 22020 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 22021 else 22022 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 22023 case $host_os in 22024 sco3.2v5*) 22025 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 22026 ;; 22027 esac 22028 fi 22029 sys_lib_dlsearch_path_spec='/usr/lib' 22030 ;; 22031 22032tpf*) 22033 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 22034 version_type=linux # correct to gnu/linux during the next big refactor 22035 need_lib_prefix=no 22036 need_version=no 22037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22038 shlibpath_var=LD_LIBRARY_PATH 22039 shlibpath_overrides_runpath=no 22040 hardcode_into_libs=yes 22041 ;; 22042 22043uts4*) 22044 version_type=linux # correct to gnu/linux during the next big refactor 22045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22046 soname_spec='$libname$release$shared_ext$major' 22047 shlibpath_var=LD_LIBRARY_PATH 22048 ;; 22049 22050*) 22051 dynamic_linker=no 22052 ;; 22053esac 22054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 22055$as_echo "$dynamic_linker" >&6; } 22056test no = "$dynamic_linker" && can_build_shared=no 22057 22058variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 22059if test yes = "$GCC"; then 22060 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 22061fi 22062 22063if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 22064 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 22065fi 22066 22067if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 22068 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 22069fi 22070 22071# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 22072configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 22073 22074# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 22075func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 22076 22077# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 22078configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 22079 22080 22081 22082 22083 22084 22085 22086 22087 22088 22089 22090 22091 22092 22093 22094 22095 22096 22097 22098 22099 22100 22101 22102 22103 22104 22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 22116 22117 22118 22119 22120 22121 22122 22123 22124 22125 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135 22136 22137 22138 22139 22140 22141 22142 22143 22144 22145 22146 22147 22148 22149 22150 22151 22152 22153 22154 22155 22156 22157 22158 22159 22160 22161 22162 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 22175 22176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 22177$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 22178hardcode_action= 22179if test -n "$hardcode_libdir_flag_spec" || 22180 test -n "$runpath_var" || 22181 test yes = "$hardcode_automatic"; then 22182 22183 # We can hardcode non-existent directories. 22184 if test no != "$hardcode_direct" && 22185 # If the only mechanism to avoid hardcoding is shlibpath_var, we 22186 # have to relink, otherwise we might link with an installed library 22187 # when we should be linking with a yet-to-be-installed one 22188 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 22189 test no != "$hardcode_minus_L"; then 22190 # Linking always hardcodes the temporary library directory. 22191 hardcode_action=relink 22192 else 22193 # We can link without hardcoding, and we can hardcode nonexisting dirs. 22194 hardcode_action=immediate 22195 fi 22196else 22197 # We cannot hardcode anything, or else we can only hardcode existing 22198 # directories. 22199 hardcode_action=unsupported 22200fi 22201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 22202$as_echo "$hardcode_action" >&6; } 22203 22204if test relink = "$hardcode_action" || 22205 test yes = "$inherit_rpath"; then 22206 # Fast installation is not supported 22207 enable_fast_install=no 22208elif test yes = "$shlibpath_overrides_runpath" || 22209 test no = "$enable_shared"; then 22210 # Fast installation is not necessary 22211 enable_fast_install=needless 22212fi 22213 22214 22215 22216 22217 22218 22219 if test yes != "$enable_dlopen"; then 22220 enable_dlopen=unknown 22221 enable_dlopen_self=unknown 22222 enable_dlopen_self_static=unknown 22223else 22224 lt_cv_dlopen=no 22225 lt_cv_dlopen_libs= 22226 22227 case $host_os in 22228 beos*) 22229 lt_cv_dlopen=load_add_on 22230 lt_cv_dlopen_libs= 22231 lt_cv_dlopen_self=yes 22232 ;; 22233 22234 mingw* | pw32* | cegcc*) 22235 lt_cv_dlopen=LoadLibrary 22236 lt_cv_dlopen_libs= 22237 ;; 22238 22239 cygwin*) 22240 lt_cv_dlopen=dlopen 22241 lt_cv_dlopen_libs= 22242 ;; 22243 22244 darwin*) 22245 # if libdl is installed we need to link against it 22246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 22247$as_echo_n "checking for dlopen in -ldl... " >&6; } 22248if ${ac_cv_lib_dl_dlopen+:} false; then : 22249 $as_echo_n "(cached) " >&6 22250else 22251 ac_check_lib_save_LIBS=$LIBS 22252LIBS="-ldl $LIBS" 22253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22254/* end confdefs.h. */ 22255 22256/* Override any GCC internal prototype to avoid an error. 22257 Use char because int might match the return type of a GCC 22258 builtin and then its argument prototype would still apply. */ 22259#ifdef __cplusplus 22260extern "C" 22261#endif 22262char dlopen (); 22263int 22264main () 22265{ 22266return dlopen (); 22267 ; 22268 return 0; 22269} 22270_ACEOF 22271if ac_fn_c_try_link "$LINENO"; then : 22272 ac_cv_lib_dl_dlopen=yes 22273else 22274 ac_cv_lib_dl_dlopen=no 22275fi 22276rm -f core conftest.err conftest.$ac_objext \ 22277 conftest$ac_exeext conftest.$ac_ext 22278LIBS=$ac_check_lib_save_LIBS 22279fi 22280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22281$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 22282if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 22283 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 22284else 22285 22286 lt_cv_dlopen=dyld 22287 lt_cv_dlopen_libs= 22288 lt_cv_dlopen_self=yes 22289 22290fi 22291 22292 ;; 22293 22294 tpf*) 22295 # Don't try to run any link tests for TPF. We know it's impossible 22296 # because TPF is a cross-compiler, and we know how we open DSOs. 22297 lt_cv_dlopen=dlopen 22298 lt_cv_dlopen_libs= 22299 lt_cv_dlopen_self=no 22300 ;; 22301 22302 *) 22303 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 22304if test "x$ac_cv_func_shl_load" = xyes; then : 22305 lt_cv_dlopen=shl_load 22306else 22307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 22308$as_echo_n "checking for shl_load in -ldld... " >&6; } 22309if ${ac_cv_lib_dld_shl_load+:} false; then : 22310 $as_echo_n "(cached) " >&6 22311else 22312 ac_check_lib_save_LIBS=$LIBS 22313LIBS="-ldld $LIBS" 22314cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22315/* end confdefs.h. */ 22316 22317/* Override any GCC internal prototype to avoid an error. 22318 Use char because int might match the return type of a GCC 22319 builtin and then its argument prototype would still apply. */ 22320#ifdef __cplusplus 22321extern "C" 22322#endif 22323char shl_load (); 22324int 22325main () 22326{ 22327return shl_load (); 22328 ; 22329 return 0; 22330} 22331_ACEOF 22332if ac_fn_c_try_link "$LINENO"; then : 22333 ac_cv_lib_dld_shl_load=yes 22334else 22335 ac_cv_lib_dld_shl_load=no 22336fi 22337rm -f core conftest.err conftest.$ac_objext \ 22338 conftest$ac_exeext conftest.$ac_ext 22339LIBS=$ac_check_lib_save_LIBS 22340fi 22341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 22342$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 22343if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 22344 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 22345else 22346 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 22347if test "x$ac_cv_func_dlopen" = xyes; then : 22348 lt_cv_dlopen=dlopen 22349else 22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 22351$as_echo_n "checking for dlopen in -ldl... " >&6; } 22352if ${ac_cv_lib_dl_dlopen+:} false; then : 22353 $as_echo_n "(cached) " >&6 22354else 22355 ac_check_lib_save_LIBS=$LIBS 22356LIBS="-ldl $LIBS" 22357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22358/* end confdefs.h. */ 22359 22360/* Override any GCC internal prototype to avoid an error. 22361 Use char because int might match the return type of a GCC 22362 builtin and then its argument prototype would still apply. */ 22363#ifdef __cplusplus 22364extern "C" 22365#endif 22366char dlopen (); 22367int 22368main () 22369{ 22370return dlopen (); 22371 ; 22372 return 0; 22373} 22374_ACEOF 22375if ac_fn_c_try_link "$LINENO"; then : 22376 ac_cv_lib_dl_dlopen=yes 22377else 22378 ac_cv_lib_dl_dlopen=no 22379fi 22380rm -f core conftest.err conftest.$ac_objext \ 22381 conftest$ac_exeext conftest.$ac_ext 22382LIBS=$ac_check_lib_save_LIBS 22383fi 22384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22385$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 22386if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 22387 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 22388else 22389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 22390$as_echo_n "checking for dlopen in -lsvld... " >&6; } 22391if ${ac_cv_lib_svld_dlopen+:} false; then : 22392 $as_echo_n "(cached) " >&6 22393else 22394 ac_check_lib_save_LIBS=$LIBS 22395LIBS="-lsvld $LIBS" 22396cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22397/* end confdefs.h. */ 22398 22399/* Override any GCC internal prototype to avoid an error. 22400 Use char because int might match the return type of a GCC 22401 builtin and then its argument prototype would still apply. */ 22402#ifdef __cplusplus 22403extern "C" 22404#endif 22405char dlopen (); 22406int 22407main () 22408{ 22409return dlopen (); 22410 ; 22411 return 0; 22412} 22413_ACEOF 22414if ac_fn_c_try_link "$LINENO"; then : 22415 ac_cv_lib_svld_dlopen=yes 22416else 22417 ac_cv_lib_svld_dlopen=no 22418fi 22419rm -f core conftest.err conftest.$ac_objext \ 22420 conftest$ac_exeext conftest.$ac_ext 22421LIBS=$ac_check_lib_save_LIBS 22422fi 22423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 22424$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 22425if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 22426 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 22427else 22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 22429$as_echo_n "checking for dld_link in -ldld... " >&6; } 22430if ${ac_cv_lib_dld_dld_link+:} false; then : 22431 $as_echo_n "(cached) " >&6 22432else 22433 ac_check_lib_save_LIBS=$LIBS 22434LIBS="-ldld $LIBS" 22435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22436/* end confdefs.h. */ 22437 22438/* Override any GCC internal prototype to avoid an error. 22439 Use char because int might match the return type of a GCC 22440 builtin and then its argument prototype would still apply. */ 22441#ifdef __cplusplus 22442extern "C" 22443#endif 22444char dld_link (); 22445int 22446main () 22447{ 22448return dld_link (); 22449 ; 22450 return 0; 22451} 22452_ACEOF 22453if ac_fn_c_try_link "$LINENO"; then : 22454 ac_cv_lib_dld_dld_link=yes 22455else 22456 ac_cv_lib_dld_dld_link=no 22457fi 22458rm -f core conftest.err conftest.$ac_objext \ 22459 conftest$ac_exeext conftest.$ac_ext 22460LIBS=$ac_check_lib_save_LIBS 22461fi 22462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 22463$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 22464if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 22465 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 22466fi 22467 22468 22469fi 22470 22471 22472fi 22473 22474 22475fi 22476 22477 22478fi 22479 22480 22481fi 22482 22483 ;; 22484 esac 22485 22486 if test no = "$lt_cv_dlopen"; then 22487 enable_dlopen=no 22488 else 22489 enable_dlopen=yes 22490 fi 22491 22492 case $lt_cv_dlopen in 22493 dlopen) 22494 save_CPPFLAGS=$CPPFLAGS 22495 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 22496 22497 save_LDFLAGS=$LDFLAGS 22498 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 22499 22500 save_LIBS=$LIBS 22501 LIBS="$lt_cv_dlopen_libs $LIBS" 22502 22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 22504$as_echo_n "checking whether a program can dlopen itself... " >&6; } 22505if ${lt_cv_dlopen_self+:} false; then : 22506 $as_echo_n "(cached) " >&6 22507else 22508 if test yes = "$cross_compiling"; then : 22509 lt_cv_dlopen_self=cross 22510else 22511 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 22512 lt_status=$lt_dlunknown 22513 cat > conftest.$ac_ext <<_LT_EOF 22514#line $LINENO "configure" 22515#include "confdefs.h" 22516 22517#if HAVE_DLFCN_H 22518#include <dlfcn.h> 22519#endif 22520 22521#include <stdio.h> 22522 22523#ifdef RTLD_GLOBAL 22524# define LT_DLGLOBAL RTLD_GLOBAL 22525#else 22526# ifdef DL_GLOBAL 22527# define LT_DLGLOBAL DL_GLOBAL 22528# else 22529# define LT_DLGLOBAL 0 22530# endif 22531#endif 22532 22533/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 22534 find out it does not work in some platform. */ 22535#ifndef LT_DLLAZY_OR_NOW 22536# ifdef RTLD_LAZY 22537# define LT_DLLAZY_OR_NOW RTLD_LAZY 22538# else 22539# ifdef DL_LAZY 22540# define LT_DLLAZY_OR_NOW DL_LAZY 22541# else 22542# ifdef RTLD_NOW 22543# define LT_DLLAZY_OR_NOW RTLD_NOW 22544# else 22545# ifdef DL_NOW 22546# define LT_DLLAZY_OR_NOW DL_NOW 22547# else 22548# define LT_DLLAZY_OR_NOW 0 22549# endif 22550# endif 22551# endif 22552# endif 22553#endif 22554 22555/* When -fvisibility=hidden is used, assume the code has been annotated 22556 correspondingly for the symbols needed. */ 22557#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 22558int fnord () __attribute__((visibility("default"))); 22559#endif 22560 22561int fnord () { return 42; } 22562int main () 22563{ 22564 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 22565 int status = $lt_dlunknown; 22566 22567 if (self) 22568 { 22569 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 22570 else 22571 { 22572 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 22573 else puts (dlerror ()); 22574 } 22575 /* dlclose (self); */ 22576 } 22577 else 22578 puts (dlerror ()); 22579 22580 return status; 22581} 22582_LT_EOF 22583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 22584 (eval $ac_link) 2>&5 22585 ac_status=$? 22586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22587 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 22588 (./conftest; exit; ) >&5 2>/dev/null 22589 lt_status=$? 22590 case x$lt_status in 22591 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 22592 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 22593 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 22594 esac 22595 else : 22596 # compilation failed 22597 lt_cv_dlopen_self=no 22598 fi 22599fi 22600rm -fr conftest* 22601 22602 22603fi 22604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 22605$as_echo "$lt_cv_dlopen_self" >&6; } 22606 22607 if test yes = "$lt_cv_dlopen_self"; then 22608 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 22609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 22610$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 22611if ${lt_cv_dlopen_self_static+:} false; then : 22612 $as_echo_n "(cached) " >&6 22613else 22614 if test yes = "$cross_compiling"; then : 22615 lt_cv_dlopen_self_static=cross 22616else 22617 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 22618 lt_status=$lt_dlunknown 22619 cat > conftest.$ac_ext <<_LT_EOF 22620#line $LINENO "configure" 22621#include "confdefs.h" 22622 22623#if HAVE_DLFCN_H 22624#include <dlfcn.h> 22625#endif 22626 22627#include <stdio.h> 22628 22629#ifdef RTLD_GLOBAL 22630# define LT_DLGLOBAL RTLD_GLOBAL 22631#else 22632# ifdef DL_GLOBAL 22633# define LT_DLGLOBAL DL_GLOBAL 22634# else 22635# define LT_DLGLOBAL 0 22636# endif 22637#endif 22638 22639/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 22640 find out it does not work in some platform. */ 22641#ifndef LT_DLLAZY_OR_NOW 22642# ifdef RTLD_LAZY 22643# define LT_DLLAZY_OR_NOW RTLD_LAZY 22644# else 22645# ifdef DL_LAZY 22646# define LT_DLLAZY_OR_NOW DL_LAZY 22647# else 22648# ifdef RTLD_NOW 22649# define LT_DLLAZY_OR_NOW RTLD_NOW 22650# else 22651# ifdef DL_NOW 22652# define LT_DLLAZY_OR_NOW DL_NOW 22653# else 22654# define LT_DLLAZY_OR_NOW 0 22655# endif 22656# endif 22657# endif 22658# endif 22659#endif 22660 22661/* When -fvisibility=hidden is used, assume the code has been annotated 22662 correspondingly for the symbols needed. */ 22663#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 22664int fnord () __attribute__((visibility("default"))); 22665#endif 22666 22667int fnord () { return 42; } 22668int main () 22669{ 22670 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 22671 int status = $lt_dlunknown; 22672 22673 if (self) 22674 { 22675 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 22676 else 22677 { 22678 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 22679 else puts (dlerror ()); 22680 } 22681 /* dlclose (self); */ 22682 } 22683 else 22684 puts (dlerror ()); 22685 22686 return status; 22687} 22688_LT_EOF 22689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 22690 (eval $ac_link) 2>&5 22691 ac_status=$? 22692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22693 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 22694 (./conftest; exit; ) >&5 2>/dev/null 22695 lt_status=$? 22696 case x$lt_status in 22697 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 22698 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 22699 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 22700 esac 22701 else : 22702 # compilation failed 22703 lt_cv_dlopen_self_static=no 22704 fi 22705fi 22706rm -fr conftest* 22707 22708 22709fi 22710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 22711$as_echo "$lt_cv_dlopen_self_static" >&6; } 22712 fi 22713 22714 CPPFLAGS=$save_CPPFLAGS 22715 LDFLAGS=$save_LDFLAGS 22716 LIBS=$save_LIBS 22717 ;; 22718 esac 22719 22720 case $lt_cv_dlopen_self in 22721 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 22722 *) enable_dlopen_self=unknown ;; 22723 esac 22724 22725 case $lt_cv_dlopen_self_static in 22726 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 22727 *) enable_dlopen_self_static=unknown ;; 22728 esac 22729fi 22730 22731 22732 22733 22734 22735 22736 22737 22738 22739 22740 22741 22742 22743 22744 22745 22746 22747striplib= 22748old_striplib= 22749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 22750$as_echo_n "checking whether stripping libraries is possible... " >&6; } 22751if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 22752 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 22753 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22755$as_echo "yes" >&6; } 22756else 22757# FIXME - insert some real tests, host_os isn't really good enough 22758 case $host_os in 22759 darwin*) 22760 if test -n "$STRIP"; then 22761 striplib="$STRIP -x" 22762 old_striplib="$STRIP -S" 22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22764$as_echo "yes" >&6; } 22765 else 22766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22767$as_echo "no" >&6; } 22768 fi 22769 ;; 22770 *) 22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22772$as_echo "no" >&6; } 22773 ;; 22774 esac 22775fi 22776 22777 22778 22779 22780 22781 22782 22783 22784 22785 22786 22787 22788 # Report what library types will actually be built 22789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 22790$as_echo_n "checking if libtool supports shared libraries... " >&6; } 22791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 22792$as_echo "$can_build_shared" >&6; } 22793 22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 22795$as_echo_n "checking whether to build shared libraries... " >&6; } 22796 test no = "$can_build_shared" && enable_shared=no 22797 22798 # On AIX, shared libraries and static libraries use the same namespace, and 22799 # are all built from PIC. 22800 case $host_os in 22801 aix3*) 22802 test yes = "$enable_shared" && enable_static=no 22803 if test -n "$RANLIB"; then 22804 archive_cmds="$archive_cmds~\$RANLIB \$lib" 22805 postinstall_cmds='$RANLIB $lib' 22806 fi 22807 ;; 22808 22809 aix[4-9]*) 22810 if test ia64 != "$host_cpu"; then 22811 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 22812 yes,aix,yes) ;; # shared object as lib.so file only 22813 yes,svr4,*) ;; # shared object as lib.so archive member only 22814 yes,*) enable_static=no ;; # shared object in lib.a archive as well 22815 esac 22816 fi 22817 ;; 22818 esac 22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 22820$as_echo "$enable_shared" >&6; } 22821 22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 22823$as_echo_n "checking whether to build static libraries... " >&6; } 22824 # Make sure either enable_shared or enable_static is yes. 22825 test yes = "$enable_shared" || enable_static=yes 22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 22827$as_echo "$enable_static" >&6; } 22828 22829 22830 22831 22832fi 22833ac_ext=c 22834ac_cpp='$CPP $CPPFLAGS' 22835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22837ac_compiler_gnu=$ac_cv_c_compiler_gnu 22838 22839CC=$lt_save_CC 22840 22841 22842 22843 22844 22845 22846 22847 22848 22849 22850 22851 22852 22853 22854 22855 ac_config_commands="$ac_config_commands libtool" 22856 22857 22858 22859 22860# Only expand once: 22861 22862 22863 22864 22865 22866 22867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5 22868$as_echo_n "checking if sntp will be built... " >&6; } 22869 22870# Check whether --with-sntp was given. 22871if test "${with_sntp+set}" = set; then : 22872 withval=$with_sntp; 22873else 22874 with_sntp="${withsntp=yes}" 22875 22876fi 22877 22878case "$with_sntp" in 22879 no) 22880 SNTP= 22881 ;; 22882 *) 22883 SNTP=sntp 22884 ;; 22885esac 22886 22887 if test -n "$SNTP"; then 22888 BUILD_SNTP_TRUE= 22889 BUILD_SNTP_FALSE='#' 22890else 22891 BUILD_SNTP_TRUE='#' 22892 BUILD_SNTP_FALSE= 22893fi 22894 22895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5 22896$as_echo "$with_sntp" >&6; } 22897 22898 22899 22900case "$SNTP" in 22901 '') 22902 SNTP_DB= 22903 SNTP_DL= 22904 SNTP_DS= 22905 ;; 22906esac 22907 22908### 22909 22910# NTP has (so far) been relying on leading-edge autogen. 22911# Therefore, by default: 22912# - use the version we ship with 22913# - do not install it 22914# - build a static copy (AC_DISABLE_SHARED - done earlier) 22915case "${enable_local_libopts+set}" in 22916 set) ;; 22917 *) enable_local_libopts=yes ;; 22918esac 22919case "${enable_libopts_install+set}" in 22920 set) ;; 22921 *) enable_libopts_install=no ;; 22922esac 22923enable_nls=no 22924 22925 22926 ac_header_dirent=no 22927for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 22928 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 22929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 22930$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 22931if eval \${$as_ac_Header+:} false; then : 22932 $as_echo_n "(cached) " >&6 22933else 22934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22935/* end confdefs.h. */ 22936#include <sys/types.h> 22937#include <$ac_hdr> 22938 22939int 22940main () 22941{ 22942if ((DIR *) 0) 22943return 0; 22944 ; 22945 return 0; 22946} 22947_ACEOF 22948if ac_fn_c_try_compile "$LINENO"; then : 22949 eval "$as_ac_Header=yes" 22950else 22951 eval "$as_ac_Header=no" 22952fi 22953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22954fi 22955eval ac_res=\$$as_ac_Header 22956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22957$as_echo "$ac_res" >&6; } 22958if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22959 cat >>confdefs.h <<_ACEOF 22960#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 22961_ACEOF 22962 22963ac_header_dirent=$ac_hdr; break 22964fi 22965 22966done 22967# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 22968if test $ac_header_dirent = dirent.h; then 22969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22970$as_echo_n "checking for library containing opendir... " >&6; } 22971if ${ac_cv_search_opendir+:} false; then : 22972 $as_echo_n "(cached) " >&6 22973else 22974 ac_func_search_save_LIBS=$LIBS 22975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22976/* end confdefs.h. */ 22977 22978/* Override any GCC internal prototype to avoid an error. 22979 Use char because int might match the return type of a GCC 22980 builtin and then its argument prototype would still apply. */ 22981#ifdef __cplusplus 22982extern "C" 22983#endif 22984char opendir (); 22985int 22986main () 22987{ 22988return opendir (); 22989 ; 22990 return 0; 22991} 22992_ACEOF 22993for ac_lib in '' dir; do 22994 if test -z "$ac_lib"; then 22995 ac_res="none required" 22996 else 22997 ac_res=-l$ac_lib 22998 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22999 fi 23000 if ac_fn_c_try_link "$LINENO"; then : 23001 ac_cv_search_opendir=$ac_res 23002fi 23003rm -f core conftest.err conftest.$ac_objext \ 23004 conftest$ac_exeext 23005 if ${ac_cv_search_opendir+:} false; then : 23006 break 23007fi 23008done 23009if ${ac_cv_search_opendir+:} false; then : 23010 23011else 23012 ac_cv_search_opendir=no 23013fi 23014rm conftest.$ac_ext 23015LIBS=$ac_func_search_save_LIBS 23016fi 23017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23018$as_echo "$ac_cv_search_opendir" >&6; } 23019ac_res=$ac_cv_search_opendir 23020if test "$ac_res" != no; then : 23021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23022 23023fi 23024 23025else 23026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 23027$as_echo_n "checking for library containing opendir... " >&6; } 23028if ${ac_cv_search_opendir+:} false; then : 23029 $as_echo_n "(cached) " >&6 23030else 23031 ac_func_search_save_LIBS=$LIBS 23032cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23033/* end confdefs.h. */ 23034 23035/* Override any GCC internal prototype to avoid an error. 23036 Use char because int might match the return type of a GCC 23037 builtin and then its argument prototype would still apply. */ 23038#ifdef __cplusplus 23039extern "C" 23040#endif 23041char opendir (); 23042int 23043main () 23044{ 23045return opendir (); 23046 ; 23047 return 0; 23048} 23049_ACEOF 23050for ac_lib in '' x; do 23051 if test -z "$ac_lib"; then 23052 ac_res="none required" 23053 else 23054 ac_res=-l$ac_lib 23055 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23056 fi 23057 if ac_fn_c_try_link "$LINENO"; then : 23058 ac_cv_search_opendir=$ac_res 23059fi 23060rm -f core conftest.err conftest.$ac_objext \ 23061 conftest$ac_exeext 23062 if ${ac_cv_search_opendir+:} false; then : 23063 break 23064fi 23065done 23066if ${ac_cv_search_opendir+:} false; then : 23067 23068else 23069 ac_cv_search_opendir=no 23070fi 23071rm conftest.$ac_ext 23072LIBS=$ac_func_search_save_LIBS 23073fi 23074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23075$as_echo "$ac_cv_search_opendir" >&6; } 23076ac_res=$ac_cv_search_opendir 23077if test "$ac_res" != no; then : 23078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23079 23080fi 23081 23082fi 23083 23084 23085 # ================= 23086 # AC_CHECK_HEADERS 23087 # ================= 23088 for ac_header in \ 23089 sys/mman.h sys/param.h sys/poll.h sys/procset.h \ 23090 sys/select.h sys/socket.h sys/stropts.h sys/time.h \ 23091 sys/un.h sys/wait.h dlfcn.h errno.h \ 23092 fcntl.h libgen.h libintl.h memory.h \ 23093 netinet/in.h setjmp.h stdbool.h sysexits.h \ 23094 unistd.h utime.h 23095do : 23096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23097ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23098if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23099 cat >>confdefs.h <<_ACEOF 23100#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23101_ACEOF 23102 23103fi 23104 23105done 23106 23107 23108 for ac_header in stdarg.h varargs.h 23109do : 23110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23111ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23112if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23113 cat >>confdefs.h <<_ACEOF 23114#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23115_ACEOF 23116 lo_have_arg_hdr=true;break 23117else 23118 lo_have_arg_hdr=false 23119fi 23120 23121done 23122 23123 23124 for ac_header in string.h strings.h 23125do : 23126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23127ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23128if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23129 cat >>confdefs.h <<_ACEOF 23130#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23131_ACEOF 23132 lo_have_str_hdr=true;break 23133else 23134 lo_have_str_hdr=false 23135fi 23136 23137done 23138 23139 23140 for ac_header in limits.h sys/limits.h values.h 23141do : 23142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23143ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23144if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23145 cat >>confdefs.h <<_ACEOF 23146#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23147_ACEOF 23148 lo_have_lim_hdr=true;break 23149else 23150 lo_have_lim_hdr=false 23151fi 23152 23153done 23154 23155 23156 for ac_header in inttypes.h stdint.h 23157do : 23158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23159ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23160if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23161 cat >>confdefs.h <<_ACEOF 23162#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23163_ACEOF 23164 lo_have_typ_hdr=true;break 23165else 23166 lo_have_typ_hdr=false 23167fi 23168 23169done 23170 23171 23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5 23173$as_echo_n "checking for working stdnoreturn.h... " >&6; } 23174if ${gl_cv_header_working_stdnoreturn_h+:} false; then : 23175 $as_echo_n "(cached) " >&6 23176else 23177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23178/* end confdefs.h. */ 23179#include <stdlib.h> 23180 #include <stdnoreturn.h> 23181 /* Do not check for 'noreturn' after the return type. 23182 C11 allows it, but it's rarely done that way 23183 and circa-2012 bleeding-edge GCC rejects it when given 23184 -Werror=old-style-declaration. */ 23185 noreturn void foo1 (void) { exit (0); } 23186 _Noreturn void foo2 (void) { exit (0); } 23187 int testit (int argc, char **argv) { 23188 if (argc & 1) 23189 return 0; 23190 (argv[0][0] ? foo1 : foo2) (); 23191 } 23192 23193int 23194main () 23195{ 23196 23197 ; 23198 return 0; 23199} 23200_ACEOF 23201if ac_fn_c_try_compile "$LINENO"; then : 23202 gl_cv_header_working_stdnoreturn_h=yes 23203else 23204 gl_cv_header_working_stdnoreturn_h=no 23205fi 23206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23207fi 23208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5 23209$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; } 23210 23211 if test $gl_cv_header_working_stdnoreturn_h = yes; then 23212 STDNORETURN_H='' 23213 else 23214 STDNORETURN_H='stdnoreturn.h' 23215 fi 23216 23217 23218 if test -n "$STDNORETURN_H"; then 23219 GL_GENERATE_STDNORETURN_H_TRUE= 23220 GL_GENERATE_STDNORETURN_H_FALSE='#' 23221else 23222 GL_GENERATE_STDNORETURN_H_TRUE='#' 23223 GL_GENERATE_STDNORETURN_H_FALSE= 23224fi 23225 23226 23227 23228 # ---------------------------------------------------------------------- 23229 # check for various programs used during the build. 23230 # On OS/X, "wchar.h" needs "runetype.h" to work properly. 23231 # ---------------------------------------------------------------------- 23232 for ac_header in runetype.h wchar.h 23233do : 23234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23235ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 23236 $ac_includes_default 23237 #if HAVE_RUNETYPE_H 23238 # include <runetype.h> 23239 #endif 23240 23241" 23242if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23243 cat >>confdefs.h <<_ACEOF 23244#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23245_ACEOF 23246 23247fi 23248 23249done 23250 23251 23252 # Check whether --enable-nls was given. 23253if test "${enable_nls+set}" = set; then : 23254 enableval=$enable_nls; 23255fi 23256 23257 if test "x$enable_nls" != "xno" && \ 23258 test "X${ac_cv_header_libintl_h}" = Xyes; then : 23259 23260 23261$as_echo "#define ENABLE_NLS 1" >>confdefs.h 23262 23263fi 23264 23265 # -------------------------------------------- 23266 # Verify certain entries from AC_CHECK_HEADERS 23267 # -------------------------------------------- 23268 ${lo_have_arg_hdr} || \ 23269 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5 23270 23271 ${lo_have_str_hdr} || \ 23272 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5 23273 23274 ${lo_have_lim_hdr} || \ 23275 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5 23276 23277 ${lo_have_typ_hdr} || \ 23278 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5 23279 23280 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp 23281 do eval as_ac_var=\${ac_cv_header_${f}_h} 23282 test "X${as_ac_var}" = Xyes || { 23283 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5 23284 } 23285 done 23286 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \ 23287 echo '#include <stdint.h>' > inttypes.h 23288 23289 # ---------------------------------------------------------------------- 23290 # Checks for typedefs 23291 # ---------------------------------------------------------------------- 23292 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default" 23293if test "x$ac_cv_type_wchar_t" = xyes; then : 23294 23295cat >>confdefs.h <<_ACEOF 23296#define HAVE_WCHAR_T 1 23297_ACEOF 23298 23299 23300fi 23301 23302 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" " 23303 $ac_includes_default 23304 #if HAVE_RUNETYPE_H 23305 # include <runetype.h> 23306 #endif 23307 #if HAVE_WCHAR_H 23308 # include <wchar.h> 23309 #endif 23310 23311" 23312if test "x$ac_cv_type_wint_t" = xyes; then : 23313 23314cat >>confdefs.h <<_ACEOF 23315#define HAVE_WINT_T 1 23316_ACEOF 23317 23318 23319fi 23320 23321 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 23322if test "x$ac_cv_type_int8_t" = xyes; then : 23323 23324cat >>confdefs.h <<_ACEOF 23325#define HAVE_INT8_T 1 23326_ACEOF 23327 23328 23329fi 23330ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 23331if test "x$ac_cv_type_uint8_t" = xyes; then : 23332 23333cat >>confdefs.h <<_ACEOF 23334#define HAVE_UINT8_T 1 23335_ACEOF 23336 23337 23338fi 23339ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 23340if test "x$ac_cv_type_int16_t" = xyes; then : 23341 23342cat >>confdefs.h <<_ACEOF 23343#define HAVE_INT16_T 1 23344_ACEOF 23345 23346 23347fi 23348ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 23349if test "x$ac_cv_type_uint16_t" = xyes; then : 23350 23351cat >>confdefs.h <<_ACEOF 23352#define HAVE_UINT16_T 1 23353_ACEOF 23354 23355 23356fi 23357ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 23358if test "x$ac_cv_type_int32_t" = xyes; then : 23359 23360cat >>confdefs.h <<_ACEOF 23361#define HAVE_INT32_T 1 23362_ACEOF 23363 23364 23365fi 23366ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 23367if test "x$ac_cv_type_uint32_t" = xyes; then : 23368 23369cat >>confdefs.h <<_ACEOF 23370#define HAVE_UINT32_T 1 23371_ACEOF 23372 23373 23374fi 23375ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 23376if test "x$ac_cv_type_intptr_t" = xyes; then : 23377 23378cat >>confdefs.h <<_ACEOF 23379#define HAVE_INTPTR_T 1 23380_ACEOF 23381 23382 23383fi 23384ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 23385if test "x$ac_cv_type_uintptr_t" = xyes; then : 23386 23387cat >>confdefs.h <<_ACEOF 23388#define HAVE_UINTPTR_T 1 23389_ACEOF 23390 23391 23392fi 23393ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 23394if test "x$ac_cv_type_uint_t" = xyes; then : 23395 23396cat >>confdefs.h <<_ACEOF 23397#define HAVE_UINT_T 1 23398_ACEOF 23399 23400 23401fi 23402ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 23403if test "x$ac_cv_type_pid_t" = xyes; then : 23404 23405cat >>confdefs.h <<_ACEOF 23406#define HAVE_PID_T 1 23407_ACEOF 23408 23409 23410fi 23411ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 23412if test "x$ac_cv_type_size_t" = xyes; then : 23413 23414cat >>confdefs.h <<_ACEOF 23415#define HAVE_SIZE_T 1 23416_ACEOF 23417 23418 23419fi 23420ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 23421if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 23422 23423cat >>confdefs.h <<_ACEOF 23424#define HAVE_PTRDIFF_T 1 23425_ACEOF 23426 23427 23428fi 23429 23430 # The cast to long int works around a bug in the HP C Compiler 23431# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23432# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23433# This bug is HP SR number 8606223364. 23434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5 23435$as_echo_n "checking size of char *... " >&6; } 23436if ${ac_cv_sizeof_char_p+:} false; then : 23437 $as_echo_n "(cached) " >&6 23438else 23439 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then : 23440 23441else 23442 if test "$ac_cv_type_char_p" = yes; then 23443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23445as_fn_error 77 "cannot compute sizeof (char *) 23446See \`config.log' for more details" "$LINENO" 5; } 23447 else 23448 ac_cv_sizeof_char_p=0 23449 fi 23450fi 23451 23452fi 23453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5 23454$as_echo "$ac_cv_sizeof_char_p" >&6; } 23455 23456 23457 23458cat >>confdefs.h <<_ACEOF 23459#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p 23460_ACEOF 23461 23462 23463 # The cast to long int works around a bug in the HP C Compiler 23464# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23465# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23466# This bug is HP SR number 8606223364. 23467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 23468$as_echo_n "checking size of int... " >&6; } 23469if ${ac_cv_sizeof_int+:} false; then : 23470 $as_echo_n "(cached) " >&6 23471else 23472 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 23473 23474else 23475 if test "$ac_cv_type_int" = yes; then 23476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23478as_fn_error 77 "cannot compute sizeof (int) 23479See \`config.log' for more details" "$LINENO" 5; } 23480 else 23481 ac_cv_sizeof_int=0 23482 fi 23483fi 23484 23485fi 23486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 23487$as_echo "$ac_cv_sizeof_int" >&6; } 23488 23489 23490 23491cat >>confdefs.h <<_ACEOF 23492#define SIZEOF_INT $ac_cv_sizeof_int 23493_ACEOF 23494 23495 23496 # The cast to long int works around a bug in the HP C Compiler 23497# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23498# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23499# This bug is HP SR number 8606223364. 23500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 23501$as_echo_n "checking size of long... " >&6; } 23502if ${ac_cv_sizeof_long+:} false; then : 23503 $as_echo_n "(cached) " >&6 23504else 23505 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 23506 23507else 23508 if test "$ac_cv_type_long" = yes; then 23509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23511as_fn_error 77 "cannot compute sizeof (long) 23512See \`config.log' for more details" "$LINENO" 5; } 23513 else 23514 ac_cv_sizeof_long=0 23515 fi 23516fi 23517 23518fi 23519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 23520$as_echo "$ac_cv_sizeof_long" >&6; } 23521 23522 23523 23524cat >>confdefs.h <<_ACEOF 23525#define SIZEOF_LONG $ac_cv_sizeof_long 23526_ACEOF 23527 23528 23529 # The cast to long int works around a bug in the HP C Compiler 23530# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23531# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23532# This bug is HP SR number 8606223364. 23533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 23534$as_echo_n "checking size of short... " >&6; } 23535if ${ac_cv_sizeof_short+:} false; then : 23536 $as_echo_n "(cached) " >&6 23537else 23538 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 23539 23540else 23541 if test "$ac_cv_type_short" = yes; then 23542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23544as_fn_error 77 "cannot compute sizeof (short) 23545See \`config.log' for more details" "$LINENO" 5; } 23546 else 23547 ac_cv_sizeof_short=0 23548 fi 23549fi 23550 23551fi 23552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 23553$as_echo "$ac_cv_sizeof_short" >&6; } 23554 23555 23556 23557cat >>confdefs.h <<_ACEOF 23558#define SIZEOF_SHORT $ac_cv_sizeof_short 23559_ACEOF 23560 23561 23562 23563 # ------------ 23564 # AC_CHECK_LIB 23565 # ------------ 23566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5 23567$as_echo_n "checking for pathfind in -lgen... " >&6; } 23568if ${ac_cv_lib_gen_pathfind+:} false; then : 23569 $as_echo_n "(cached) " >&6 23570else 23571 ac_check_lib_save_LIBS=$LIBS 23572LIBS="-lgen $LIBS" 23573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23574/* end confdefs.h. */ 23575 23576/* Override any GCC internal prototype to avoid an error. 23577 Use char because int might match the return type of a GCC 23578 builtin and then its argument prototype would still apply. */ 23579#ifdef __cplusplus 23580extern "C" 23581#endif 23582char pathfind (); 23583int 23584main () 23585{ 23586return pathfind (); 23587 ; 23588 return 0; 23589} 23590_ACEOF 23591if ac_fn_c_try_link "$LINENO"; then : 23592 ac_cv_lib_gen_pathfind=yes 23593else 23594 ac_cv_lib_gen_pathfind=no 23595fi 23596rm -f core conftest.err conftest.$ac_objext \ 23597 conftest$ac_exeext conftest.$ac_ext 23598LIBS=$ac_check_lib_save_LIBS 23599fi 23600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5 23601$as_echo "$ac_cv_lib_gen_pathfind" >&6; } 23602if test "x$ac_cv_lib_gen_pathfind" = xyes; then : 23603 cat >>confdefs.h <<_ACEOF 23604#define HAVE_LIBGEN 1 23605_ACEOF 23606 23607 LIBS="-lgen $LIBS" 23608 23609fi 23610 23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5 23612$as_echo_n "checking for gettext in -lintl... " >&6; } 23613if ${ac_cv_lib_intl_gettext+:} false; then : 23614 $as_echo_n "(cached) " >&6 23615else 23616 ac_check_lib_save_LIBS=$LIBS 23617LIBS="-lintl $LIBS" 23618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23619/* end confdefs.h. */ 23620 23621/* Override any GCC internal prototype to avoid an error. 23622 Use char because int might match the return type of a GCC 23623 builtin and then its argument prototype would still apply. */ 23624#ifdef __cplusplus 23625extern "C" 23626#endif 23627char gettext (); 23628int 23629main () 23630{ 23631return gettext (); 23632 ; 23633 return 0; 23634} 23635_ACEOF 23636if ac_fn_c_try_link "$LINENO"; then : 23637 ac_cv_lib_intl_gettext=yes 23638else 23639 ac_cv_lib_intl_gettext=no 23640fi 23641rm -f core conftest.err conftest.$ac_objext \ 23642 conftest$ac_exeext conftest.$ac_ext 23643LIBS=$ac_check_lib_save_LIBS 23644fi 23645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5 23646$as_echo "$ac_cv_lib_intl_gettext" >&6; } 23647if test "x$ac_cv_lib_intl_gettext" = xyes; then : 23648 cat >>confdefs.h <<_ACEOF 23649#define HAVE_LIBINTL 1 23650_ACEOF 23651 23652 LIBS="-lintl $LIBS" 23653 23654fi 23655 23656 for ac_func in vprintf 23657do : 23658 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 23659if test "x$ac_cv_func_vprintf" = xyes; then : 23660 cat >>confdefs.h <<_ACEOF 23661#define HAVE_VPRINTF 1 23662_ACEOF 23663 23664ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 23665if test "x$ac_cv_func__doprnt" = xyes; then : 23666 23667$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 23668 23669fi 23670 23671fi 23672done 23673 23674 23675 for ac_header in vfork.h 23676do : 23677 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 23678if test "x$ac_cv_header_vfork_h" = xyes; then : 23679 cat >>confdefs.h <<_ACEOF 23680#define HAVE_VFORK_H 1 23681_ACEOF 23682 23683fi 23684 23685done 23686 23687for ac_func in fork vfork 23688do : 23689 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23690ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23691if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 23692 cat >>confdefs.h <<_ACEOF 23693#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23694_ACEOF 23695 23696fi 23697done 23698 23699if test "x$ac_cv_func_fork" = xyes; then 23700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 23701$as_echo_n "checking for working fork... " >&6; } 23702if ${ac_cv_func_fork_works+:} false; then : 23703 $as_echo_n "(cached) " >&6 23704else 23705 if test "$cross_compiling" = yes; then : 23706 ac_cv_func_fork_works=cross 23707else 23708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23709/* end confdefs.h. */ 23710$ac_includes_default 23711int 23712main () 23713{ 23714 23715 /* By Ruediger Kuhlmann. */ 23716 return fork () < 0; 23717 23718 ; 23719 return 0; 23720} 23721_ACEOF 23722if ac_fn_c_try_run "$LINENO"; then : 23723 ac_cv_func_fork_works=yes 23724else 23725 ac_cv_func_fork_works=no 23726fi 23727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23728 conftest.$ac_objext conftest.beam conftest.$ac_ext 23729fi 23730 23731fi 23732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 23733$as_echo "$ac_cv_func_fork_works" >&6; } 23734 23735else 23736 ac_cv_func_fork_works=$ac_cv_func_fork 23737fi 23738if test "x$ac_cv_func_fork_works" = xcross; then 23739 case $host in 23740 *-*-amigaos* | *-*-msdosdjgpp*) 23741 # Override, as these systems have only a dummy fork() stub 23742 ac_cv_func_fork_works=no 23743 ;; 23744 *) 23745 ac_cv_func_fork_works=yes 23746 ;; 23747 esac 23748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 23749$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 23750fi 23751ac_cv_func_vfork_works=$ac_cv_func_vfork 23752if test "x$ac_cv_func_vfork" = xyes; then 23753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 23754$as_echo_n "checking for working vfork... " >&6; } 23755if ${ac_cv_func_vfork_works+:} false; then : 23756 $as_echo_n "(cached) " >&6 23757else 23758 if test "$cross_compiling" = yes; then : 23759 ac_cv_func_vfork_works=cross 23760else 23761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23762/* end confdefs.h. */ 23763/* Thanks to Paul Eggert for this test. */ 23764$ac_includes_default 23765#include <sys/wait.h> 23766#ifdef HAVE_VFORK_H 23767# include <vfork.h> 23768#endif 23769/* On some sparc systems, changes by the child to local and incoming 23770 argument registers are propagated back to the parent. The compiler 23771 is told about this with #include <vfork.h>, but some compilers 23772 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 23773 static variable whose address is put into a register that is 23774 clobbered by the vfork. */ 23775static void 23776#ifdef __cplusplus 23777sparc_address_test (int arg) 23778# else 23779sparc_address_test (arg) int arg; 23780#endif 23781{ 23782 static pid_t child; 23783 if (!child) { 23784 child = vfork (); 23785 if (child < 0) { 23786 perror ("vfork"); 23787 _exit(2); 23788 } 23789 if (!child) { 23790 arg = getpid(); 23791 write(-1, "", 0); 23792 _exit (arg); 23793 } 23794 } 23795} 23796 23797int 23798main () 23799{ 23800 pid_t parent = getpid (); 23801 pid_t child; 23802 23803 sparc_address_test (0); 23804 23805 child = vfork (); 23806 23807 if (child == 0) { 23808 /* Here is another test for sparc vfork register problems. This 23809 test uses lots of local variables, at least as many local 23810 variables as main has allocated so far including compiler 23811 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 23812 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 23813 reuse the register of parent for one of the local variables, 23814 since it will think that parent can't possibly be used any more 23815 in this routine. Assigning to the local variable will thus 23816 munge parent in the parent process. */ 23817 pid_t 23818 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 23819 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 23820 /* Convince the compiler that p..p7 are live; otherwise, it might 23821 use the same hardware register for all 8 local variables. */ 23822 if (p != p1 || p != p2 || p != p3 || p != p4 23823 || p != p5 || p != p6 || p != p7) 23824 _exit(1); 23825 23826 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 23827 from child file descriptors. If the child closes a descriptor 23828 before it execs or exits, this munges the parent's descriptor 23829 as well. Test for this by closing stdout in the child. */ 23830 _exit(close(fileno(stdout)) != 0); 23831 } else { 23832 int status; 23833 struct stat st; 23834 23835 while (wait(&status) != child) 23836 ; 23837 return ( 23838 /* Was there some problem with vforking? */ 23839 child < 0 23840 23841 /* Did the child fail? (This shouldn't happen.) */ 23842 || status 23843 23844 /* Did the vfork/compiler bug occur? */ 23845 || parent != getpid() 23846 23847 /* Did the file descriptor bug occur? */ 23848 || fstat(fileno(stdout), &st) != 0 23849 ); 23850 } 23851} 23852_ACEOF 23853if ac_fn_c_try_run "$LINENO"; then : 23854 ac_cv_func_vfork_works=yes 23855else 23856 ac_cv_func_vfork_works=no 23857fi 23858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23859 conftest.$ac_objext conftest.beam conftest.$ac_ext 23860fi 23861 23862fi 23863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 23864$as_echo "$ac_cv_func_vfork_works" >&6; } 23865 23866fi; 23867if test "x$ac_cv_func_fork_works" = xcross; then 23868 ac_cv_func_vfork_works=$ac_cv_func_vfork 23869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 23870$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 23871fi 23872 23873if test "x$ac_cv_func_vfork_works" = xyes; then 23874 23875$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 23876 23877else 23878 23879$as_echo "#define vfork fork" >>confdefs.h 23880 23881fi 23882if test "x$ac_cv_func_fork_works" = xyes; then 23883 23884$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 23885 23886fi 23887 23888 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \ 23889 strrchr strsignal fchmod fstat chmod 23890do : 23891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23892ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23893if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 23894 cat >>confdefs.h <<_ACEOF 23895#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23896_ACEOF 23897 23898fi 23899done 23900 23901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 23902$as_echo_n "checking for a sed that does not truncate output... " >&6; } 23903if ${ac_cv_path_SED+:} false; then : 23904 $as_echo_n "(cached) " >&6 23905else 23906 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 23907 for ac_i in 1 2 3 4 5 6 7; do 23908 ac_script="$ac_script$as_nl$ac_script" 23909 done 23910 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 23911 { ac_script=; unset ac_script;} 23912 if test -z "$SED"; then 23913 ac_path_SED_found=false 23914 # Loop through the user's path and test for each of PROGNAME-LIST 23915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23916for as_dir in $PATH 23917do 23918 IFS=$as_save_IFS 23919 test -z "$as_dir" && as_dir=. 23920 for ac_prog in sed gsed; do 23921 for ac_exec_ext in '' $ac_executable_extensions; do 23922 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 23923 as_fn_executable_p "$ac_path_SED" || continue 23924# Check for GNU ac_path_SED and select it if it is found. 23925 # Check for GNU $ac_path_SED 23926case `"$ac_path_SED" --version 2>&1` in 23927*GNU*) 23928 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 23929*) 23930 ac_count=0 23931 $as_echo_n 0123456789 >"conftest.in" 23932 while : 23933 do 23934 cat "conftest.in" "conftest.in" >"conftest.tmp" 23935 mv "conftest.tmp" "conftest.in" 23936 cp "conftest.in" "conftest.nl" 23937 $as_echo '' >> "conftest.nl" 23938 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 23939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 23940 as_fn_arith $ac_count + 1 && ac_count=$as_val 23941 if test $ac_count -gt ${ac_path_SED_max-0}; then 23942 # Best one so far, save it but keep looking for a better one 23943 ac_cv_path_SED="$ac_path_SED" 23944 ac_path_SED_max=$ac_count 23945 fi 23946 # 10*(2^10) chars as input seems more than enough 23947 test $ac_count -gt 10 && break 23948 done 23949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 23950esac 23951 23952 $ac_path_SED_found && break 3 23953 done 23954 done 23955 done 23956IFS=$as_save_IFS 23957 if test -z "$ac_cv_path_SED"; then 23958 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 23959 fi 23960else 23961 ac_cv_path_SED=$SED 23962fi 23963 23964fi 23965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 23966$as_echo "$ac_cv_path_SED" >&6; } 23967 SED="$ac_cv_path_SED" 23968 rm -f conftest.sed 23969 23970 while : 23971 do 23972 POSIX_SHELL=`which bash` 23973 test -x "$POSIX_SHELL" && break 23974 POSIX_SHELL=`which dash` 23975 test -x "$POSIX_SHELL" && break 23976 POSIX_SHELL=/usr/xpg4/bin/sh 23977 test -x "$POSIX_SHELL" && break 23978 POSIX_SHELL=`/bin/sh -c ' 23979 exec 2>/dev/null 23980 if ! true ; then exit 1 ; fi 23981 echo /bin/sh'` 23982 test -x "$POSIX_SHELL" && break 23983 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5 23984 done 23985 23986cat >>confdefs.h <<_ACEOF 23987#define POSIX_SHELL "${POSIX_SHELL}" 23988_ACEOF 23989 23990 23991 23992 23993 23994 LIBOPTS_BUILD_BLOCKED='' 23995 23996 23997 NEED_LIBOPTS_DIR='' 23998 23999 # Check whether --enable-local-libopts was given. 24000if test "${enable_local_libopts+set}" = set; then : 24001 enableval=$enable_local_libopts; 24002 if test x$enableval = xyes ; then 24003 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5 24004$as_echo "$as_me: Using supplied libopts tearoff" >&6;} 24005 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 24006 NEED_LIBOPTS_DIR=true 24007 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 24008 fi 24009fi 24010 24011 24012 # Check whether --enable-libopts-install was given. 24013if test "${enable_libopts_install+set}" = set; then : 24014 enableval=$enable_libopts_install; 24015fi 24016 24017 if test "X${enable_libopts_install}" = Xyes; then 24018 INSTALL_LIBOPTS_TRUE= 24019 INSTALL_LIBOPTS_FALSE='#' 24020else 24021 INSTALL_LIBOPTS_TRUE='#' 24022 INSTALL_LIBOPTS_FALSE= 24023fi 24024 24025 24026 if test -z "${NEED_LIBOPTS_DIR}" ; then 24027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5 24028$as_echo_n "checking whether autoopts-config can be found... " >&6; } 24029 24030# Check whether --with-autoopts-config was given. 24031if test "${with_autoopts_config+set}" = set; then : 24032 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config} 24033else 24034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5 24035$as_echo_n "checking whether autoopts-config is specified... " >&6; } 24036if ${lo_cv_with_autoopts_config+:} false; then : 24037 $as_echo_n "(cached) " >&6 24038else 24039 if autoopts-config --help 2>/dev/null 1>&2 24040 then lo_cv_with_autoopts_config=autoopts-config 24041 elif libopts-config --help 2>/dev/null 1>&2 24042 then lo_cv_with_autoopts_config=libopts-config 24043 else lo_cv_with_autoopts_config=no ; fi 24044fi 24045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5 24046$as_echo "$lo_cv_with_autoopts_config" >&6; } 24047 24048fi 24049 # end of AC_ARG_WITH 24050 24051 if ${lo_cv_test_autoopts+:} false; then : 24052 $as_echo_n "(cached) " >&6 24053else 24054 24055 if test -z "${lo_cv_with_autoopts_config}" \ 24056 -o X"${lo_cv_with_autoopts_config}" = Xno 24057 then 24058 if autoopts-config --help 2>/dev/null 1>&2 24059 then lo_cv_with_autoopts_config=autoopts-config 24060 elif libopts-config --help 2>/dev/null 1>&2 24061 then lo_cv_with_autoopts_config=libopts-config 24062 else lo_cv_with_autoopts_config=false ; fi 24063 fi 24064 lo_cv_test_autoopts=` 24065 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null 24066 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}" 24067 then lo_cv_test_autoopts=no ; fi 24068 24069fi 24070 # end of CACHE_VAL 24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5 24072$as_echo "${lo_cv_test_autoopts}" >&6; } 24073 24074 if test "X${lo_cv_test_autoopts}" != Xno 24075 then 24076 LIBOPTS_LDADD="${lo_cv_test_autoopts}" 24077 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`" 24078 else 24079 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 24080 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 24081 NEED_LIBOPTS_DIR=true 24082 fi 24083 fi # end of if test -z "${NEED_LIBOPTS_DIR}" 24084 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then 24085 NEED_LIBOPTS_DIR='' 24086 fi 24087 if test -n "${NEED_LIBOPTS_DIR}"; then 24088 NEED_LIBOPTS_TRUE= 24089 NEED_LIBOPTS_FALSE='#' 24090else 24091 NEED_LIBOPTS_TRUE='#' 24092 NEED_LIBOPTS_FALSE= 24093fi 24094 24095 24096 24097 LIBOPTS_DIR=libopts 24098 24099 24100# end of AC_DEFUN of LIBOPTS_CHECK_COMMON 24101 24102 24103 if test -z "$NEED_LIBOPTS_TRUE"; then : 24104 24105 24106 24107 # Check to see if a reg expr header is specified. 24108 24109 24110# Check whether --with-regex-header was given. 24111if test "${with_regex_header+set}" = set; then : 24112 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header} 24113else 24114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5 24115$as_echo_n "checking whether a reg expr header is specified... " >&6; } 24116if ${libopts_cv_with_regex_header+:} false; then : 24117 $as_echo_n "(cached) " >&6 24118else 24119 libopts_cv_with_regex_header=no 24120fi 24121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5 24122$as_echo "$libopts_cv_with_regex_header" >&6; } 24123 24124fi 24125 # end of AC_ARG_WITH 24126 if test "X${libopts_cv_with_regex_header}" != Xno 24127 then 24128 cat >>confdefs.h <<_ACEOF 24129#define REGEX_HEADER <${libopts_cv_with_regex_header}> 24130_ACEOF 24131 24132 else 24133 24134$as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h 24135 24136 fi 24137 24138 24139 24140 # Check to see if a working libregex can be found. 24141 24142 24143# Check whether --with-libregex was given. 24144if test "${with_libregex+set}" = set; then : 24145 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex} 24146else 24147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5 24148$as_echo_n "checking whether with-libregex was specified... " >&6; } 24149if ${libopts_cv_with_libregex_root+:} false; then : 24150 $as_echo_n "(cached) " >&6 24151else 24152 libopts_cv_with_libregex_root=no 24153fi 24154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5 24155$as_echo "$libopts_cv_with_libregex_root" >&6; } 24156 24157fi 24158 # end of AC_ARG_WITH libregex 24159 24160 if test "${with_libregex+set}" = set && \ 24161 test "X${withval}" = Xno 24162 then ## disabled by request 24163 libopts_cv_with_libregex_root=no 24164 libopts_cv_with_libregex_cflags=no 24165 libopts_cv_with_libregex_libs=no 24166 else 24167 24168 24169# Check whether --with-libregex-cflags was given. 24170if test "${with_libregex_cflags+set}" = set; then : 24171 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags} 24172else 24173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5 24174$as_echo_n "checking whether with-libregex-cflags was specified... " >&6; } 24175if ${libopts_cv_with_libregex_cflags+:} false; then : 24176 $as_echo_n "(cached) " >&6 24177else 24178 libopts_cv_with_libregex_cflags=no 24179fi 24180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5 24181$as_echo "$libopts_cv_with_libregex_cflags" >&6; } 24182 24183fi 24184 # end of AC_ARG_WITH libregex-cflags 24185 24186 24187# Check whether --with-libregex-libs was given. 24188if test "${with_libregex_libs+set}" = set; then : 24189 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs} 24190else 24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5 24192$as_echo_n "checking whether with-libregex-libs was specified... " >&6; } 24193if ${libopts_cv_with_libregex_libs+:} false; then : 24194 $as_echo_n "(cached) " >&6 24195else 24196 libopts_cv_with_libregex_libs=no 24197fi 24198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5 24199$as_echo "$libopts_cv_with_libregex_libs" >&6; } 24200 24201fi 24202 # end of AC_ARG_WITH libregex-libs 24203 24204 case "X${libopts_cv_with_libregex_cflags}" in 24205 Xyes|Xno|X ) 24206 case "X${libopts_cv_with_libregex_root}" in 24207 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;; 24208 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;; 24209 esac 24210 esac 24211 case "X${libopts_cv_with_libregex_libs}" in 24212 Xyes|Xno|X ) 24213 case "X${libopts_cv_with_libregex_root}" in 24214 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;; 24215 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;; 24216 esac 24217 esac 24218 libopts_save_CPPFLAGS="${CPPFLAGS}" 24219 libopts_save_LIBS="${LIBS}" 24220 case "X${libopts_cv_with_libregex_cflags}" in 24221 Xyes|Xno|X ) 24222 libopts_cv_with_libregex_cflags="" ;; 24223 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;; 24224 esac 24225 case "X${libopts_cv_with_libregex_libs}" in 24226 Xyes|Xno|X ) 24227 libopts_cv_with_libregex_libs="" ;; 24228 * ) 24229 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;; 24230 esac 24231 LIBREGEX_CFLAGS="" 24232 LIBREGEX_LIBS="" 24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5 24234$as_echo_n "checking whether libregex functions properly... " >&6; } 24235 if ${libopts_cv_with_libregex+:} false; then : 24236 $as_echo_n "(cached) " >&6 24237else 24238 24239 if test "$cross_compiling" = yes; then : 24240 libopts_cv_with_libregex=no 24241else 24242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24243/* end confdefs.h. */ 24244#include <stdio.h> 24245#include <stdlib.h> 24246#include <sys/types.h> 24247#include REGEX_HEADER 24248static regex_t re; 24249void comp_re(char const * pzPat) { 24250 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE ); 24251 if (res == 0) return; 24252 exit( res ); } 24253int main() { 24254 regmatch_t m[2]; 24255 comp_re( "^.*\$" ); 24256 comp_re( "()|no.*" ); 24257 comp_re( "." ); 24258 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1; 24259 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) { 24260 fputs( "error: regex -->.<-- did not match\n", stderr ); 24261 return 1; 24262 } 24263 return 0; } 24264_ACEOF 24265if ac_fn_c_try_run "$LINENO"; then : 24266 libopts_cv_with_libregex=yes 24267else 24268 libopts_cv_with_libregex=no 24269fi 24270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24271 conftest.$ac_objext conftest.beam conftest.$ac_ext 24272fi 24273 # end of AC_RUN_IFELSE 24274 24275fi 24276 # end of AC_CACHE_VAL for libopts_cv_with_libregex 24277 fi ## disabled by request 24278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5 24279$as_echo "${libopts_cv_with_libregex}" >&6; } 24280 if test "X${libopts_cv_with_libregex}" != Xno 24281 then 24282 24283$as_echo "#define WITH_LIBREGEX 1" >>confdefs.h 24284 24285 else 24286 CPPFLAGS="${libopts_save_CPPFLAGS}" 24287 LIBS="${libopts_save_LIBS}" 24288 libopts_cv_with_libregex_root=no 24289libopts_cv_with_libregex_cflags=no 24290libopts_cv_with_libregex_libs=no 24291libopts_cv_with_libregex=no 24292 fi 24293 24294 24295 24296 # Check to see if pathfind(3) works. 24297 24298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5 24299$as_echo_n "checking whether pathfind(3) works... " >&6; } 24300 if ${libopts_cv_run_pathfind+:} false; then : 24301 $as_echo_n "(cached) " >&6 24302else 24303 24304 if test "$cross_compiling" = yes; then : 24305 libopts_cv_run_pathfind=no 24306 24307else 24308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24309/* end confdefs.h. */ 24310#include <string.h> 24311#include <stdlib.h> 24312int main (int argc, char ** argv) { 24313 char * pz = pathfind( getenv( "PATH" ), "sh", "x" ); 24314 return (pz == 0) ? 1 : 0; 24315} 24316_ACEOF 24317if ac_fn_c_try_run "$LINENO"; then : 24318 libopts_cv_run_pathfind=yes 24319else 24320 libopts_cv_run_pathfind=no 24321fi 24322rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24323 conftest.$ac_objext conftest.beam conftest.$ac_ext 24324fi 24325 # end of RUN_IFELSE 24326 24327fi 24328 # end of AC_CACHE_VAL for libopts_cv_run_pathfind 24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5 24330$as_echo "${libopts_cv_run_pathfind}" >&6; } 24331 if test "X${libopts_cv_run_pathfind}" != Xno 24332 then 24333 24334$as_echo "#define HAVE_PATHFIND 1" >>confdefs.h 24335 24336 fi 24337 24338 24339 24340 # Check to see if /dev/zero is readable device. 24341 24342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5 24343$as_echo_n "checking whether /dev/zero is readable device... " >&6; } 24344 if ${libopts_cv_test_dev_zero+:} false; then : 24345 $as_echo_n "(cached) " >&6 24346else 24347 24348 libopts_cv_test_dev_zero=`exec 2> /dev/null 24349dzero=\`ls -lL /dev/zero | egrep ^c......r\` 24350test -z "${dzero}" && exit 1 24351echo ${dzero}` 24352 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero" 24353 then libopts_cv_test_dev_zero=no 24354 fi 24355 24356fi 24357 # end of CACHE_VAL of libopts_cv_test_dev_zero 24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5 24359$as_echo "${libopts_cv_test_dev_zero}" >&6; } 24360 if test "X${libopts_cv_test_dev_zero}" != Xno 24361 then 24362 24363$as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h 24364 24365 fi 24366 24367 24368 24369 # Check to see if we have a functional realpath(3C). 24370 24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5 24372$as_echo_n "checking whether we have a functional realpath(3C)... " >&6; } 24373 if ${libopts_cv_run_realpath+:} false; then : 24374 $as_echo_n "(cached) " >&6 24375else 24376 24377 if test "$cross_compiling" = yes; then : 24378 libopts_cv_run_realpath=no 24379 24380else 24381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24382/* end confdefs.h. */ 24383#include <limits.h> 24384#include <stdlib.h> 24385int main (int argc, char ** argv) { 24386#ifndef PATH_MAX 24387choke me!! 24388#else 24389 char zPath[PATH_MAX+1]; 24390#endif 24391 char *pz = realpath(argv[0], zPath); 24392 return (pz == zPath) ? 0 : 1; 24393} 24394_ACEOF 24395if ac_fn_c_try_run "$LINENO"; then : 24396 libopts_cv_run_realpath=yes 24397else 24398 libopts_cv_run_realpath=no 24399fi 24400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24401 conftest.$ac_objext conftest.beam conftest.$ac_ext 24402fi 24403 # end of RUN_IFELSE 24404 24405fi 24406 # end of AC_CACHE_VAL for libopts_cv_run_realpath 24407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5 24408$as_echo "${libopts_cv_run_realpath}" >&6; } 24409 if test "X${libopts_cv_run_realpath}" != Xno 24410 then 24411 24412$as_echo "#define HAVE_REALPATH 1" >>confdefs.h 24413 24414 fi 24415 24416 24417 24418 # Check to see if strftime() works. 24419 24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5 24421$as_echo_n "checking whether strftime() works... " >&6; } 24422 if ${libopts_cv_run_strftime+:} false; then : 24423 $as_echo_n "(cached) " >&6 24424else 24425 24426 if test "$cross_compiling" = yes; then : 24427 libopts_cv_run_strftime=no 24428 24429else 24430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24431/* end confdefs.h. */ 24432#include <time.h> 24433#include <string.h> 24434char t_buf[ 64 ]; 24435int main() { 24436 static char const z[] = "Thursday Aug 28 240"; 24437 struct tm tm; 24438 tm.tm_sec = 36; /* seconds after the minute [0, 61] */ 24439 tm.tm_min = 44; /* minutes after the hour [0, 59] */ 24440 tm.tm_hour = 12; /* hour since midnight [0, 23] */ 24441 tm.tm_mday = 28; /* day of the month [1, 31] */ 24442 tm.tm_mon = 7; /* months since January [0, 11] */ 24443 tm.tm_year = 86; /* years since 1900 */ 24444 tm.tm_wday = 4; /* days since Sunday [0, 6] */ 24445 tm.tm_yday = 239; /* days since January 1 [0, 365] */ 24446 tm.tm_isdst = 1; /* flag for daylight savings time */ 24447 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm ); 24448 return (strcmp( t_buf, z ) != 0); } 24449_ACEOF 24450if ac_fn_c_try_run "$LINENO"; then : 24451 libopts_cv_run_strftime=yes 24452else 24453 libopts_cv_run_strftime=no 24454fi 24455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24456 conftest.$ac_objext conftest.beam conftest.$ac_ext 24457fi 24458 # end of RUN_IFELSE 24459 24460fi 24461 # end of AC_CACHE_VAL for libopts_cv_run_strftime 24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5 24463$as_echo "${libopts_cv_run_strftime}" >&6; } 24464 if test "X${libopts_cv_run_strftime}" != Xno 24465 then 24466 24467$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 24468 24469 fi 24470 24471 24472 24473 # Check to see if fopen accepts "b" mode. 24474 24475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5 24476$as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; } 24477 if ${libopts_cv_run_fopen_binary+:} false; then : 24478 $as_echo_n "(cached) " >&6 24479else 24480 24481 if test "$cross_compiling" = yes; then : 24482 libopts_cv_run_fopen_binary=no 24483 24484else 24485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24486/* end confdefs.h. */ 24487#include <stdio.h> 24488int main (int argc, char ** argv) { 24489FILE * fp = fopen("conftest.$ac_ext", "rb"); 24490return (fp == NULL) ? 1 : fclose(fp); } 24491_ACEOF 24492if ac_fn_c_try_run "$LINENO"; then : 24493 libopts_cv_run_fopen_binary=yes 24494else 24495 libopts_cv_run_fopen_binary=no 24496fi 24497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24498 conftest.$ac_objext conftest.beam conftest.$ac_ext 24499fi 24500 # end of RUN_IFELSE 24501 24502fi 24503 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary 24504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5 24505$as_echo "${libopts_cv_run_fopen_binary}" >&6; } 24506 if test "X${libopts_cv_run_fopen_binary}" != Xno 24507 then 24508 24509$as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h 24510 24511 else 24512 24513$as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h 24514 24515 fi 24516 24517 24518 24519 # Check to see if fopen accepts "t" mode. 24520 24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5 24522$as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; } 24523 if ${libopts_cv_run_fopen_text+:} false; then : 24524 $as_echo_n "(cached) " >&6 24525else 24526 24527 if test "$cross_compiling" = yes; then : 24528 libopts_cv_run_fopen_text=no 24529 24530else 24531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24532/* end confdefs.h. */ 24533#include <stdio.h> 24534int main (int argc, char ** argv) { 24535FILE * fp = fopen("conftest.$ac_ext", "rt"); 24536return (fp == NULL) ? 1 : fclose(fp); } 24537_ACEOF 24538if ac_fn_c_try_run "$LINENO"; then : 24539 libopts_cv_run_fopen_text=yes 24540else 24541 libopts_cv_run_fopen_text=no 24542fi 24543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24544 conftest.$ac_objext conftest.beam conftest.$ac_ext 24545fi 24546 # end of RUN_IFELSE 24547 24548fi 24549 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text 24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5 24551$as_echo "${libopts_cv_run_fopen_text}" >&6; } 24552 if test "X${libopts_cv_run_fopen_text}" != Xno 24553 then 24554 24555$as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h 24556 24557 else 24558 24559$as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h 24560 24561 fi 24562 24563 24564 24565 # Check to see if not wanting optional option args. 24566 24567 # Check whether --enable-optional-args was given. 24568if test "${enable_optional_args+set}" = set; then : 24569 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args} 24570else 24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5 24572$as_echo_n "checking whether not wanting optional option args... " >&6; } 24573if ${libopts_cv_enable_optional_args+:} false; then : 24574 $as_echo_n "(cached) " >&6 24575else 24576 libopts_cv_enable_optional_args=yes 24577fi 24578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5 24579$as_echo "$libopts_cv_enable_optional_args" >&6; } 24580 24581fi 24582 # end of AC_ARG_ENABLE 24583 if test "X${libopts_cv_enable_optional_args}" = Xno 24584 then 24585 24586$as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h 24587 24588 fi 24589 24590 24591 24592 24593 24594 fi 24595 ac_config_files="$ac_config_files libopts/Makefile" 24596 24597 # end of AC_DEFUN of LIBOPTS_CHECK 24598 24599 24600# From when we only used libevent for sntp: 24601#AM_COND_IF( 24602# [BUILD_SNTP], 24603# [NTP_LIBEVENT_CHECK], 24604# [NTP_LIBEVENT_CHECK_NOBUILD] 24605#) 24606 24607 24608 24609ntp_pkgconfig_min_version='0.15.0' 24610if test -n "$ac_tool_prefix"; then 24611 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24612set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24614$as_echo_n "checking for $ac_word... " >&6; } 24615if ${ac_cv_path_PKG_CONFIG+:} false; then : 24616 $as_echo_n "(cached) " >&6 24617else 24618 case $PKG_CONFIG in 24619 [\\/]* | ?:[\\/]*) 24620 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24621 ;; 24622 *) 24623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24624for as_dir in $PATH 24625do 24626 IFS=$as_save_IFS 24627 test -z "$as_dir" && as_dir=. 24628 for ac_exec_ext in '' $ac_executable_extensions; do 24629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24630 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24632 break 2 24633 fi 24634done 24635 done 24636IFS=$as_save_IFS 24637 24638 ;; 24639esac 24640fi 24641PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24642if test -n "$PKG_CONFIG"; then 24643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24644$as_echo "$PKG_CONFIG" >&6; } 24645else 24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24647$as_echo "no" >&6; } 24648fi 24649 24650 24651fi 24652if test -z "$ac_cv_path_PKG_CONFIG"; then 24653 ac_pt_PKG_CONFIG=$PKG_CONFIG 24654 # Extract the first word of "pkg-config", so it can be a program name with args. 24655set dummy pkg-config; ac_word=$2 24656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24657$as_echo_n "checking for $ac_word... " >&6; } 24658if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24659 $as_echo_n "(cached) " >&6 24660else 24661 case $ac_pt_PKG_CONFIG in 24662 [\\/]* | ?:[\\/]*) 24663 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24664 ;; 24665 *) 24666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24667for as_dir in $PATH 24668do 24669 IFS=$as_save_IFS 24670 test -z "$as_dir" && as_dir=. 24671 for ac_exec_ext in '' $ac_executable_extensions; do 24672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24673 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24675 break 2 24676 fi 24677done 24678 done 24679IFS=$as_save_IFS 24680 24681 ;; 24682esac 24683fi 24684ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24685if test -n "$ac_pt_PKG_CONFIG"; then 24686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24687$as_echo "$ac_pt_PKG_CONFIG" >&6; } 24688else 24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24690$as_echo "no" >&6; } 24691fi 24692 24693 if test "x$ac_pt_PKG_CONFIG" = x; then 24694 PKG_CONFIG="" 24695 else 24696 case $cross_compiling:$ac_tool_warned in 24697yes:) 24698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24700ac_tool_warned=yes ;; 24701esac 24702 PKG_CONFIG=$ac_pt_PKG_CONFIG 24703 fi 24704else 24705 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24706fi 24707 24708{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;} 24709{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 24710 24711case "$PKG_CONFIG" in 24712 /*) 24713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5 24714$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; } 24715 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 24716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24717$as_echo "yes" >&6; } 24718 else 24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24720$as_echo "no" >&6; } 24721 PKG_CONFIG="" 24722 fi 24723 ;; 24724esac 24725 24726 24727 24728 24729# Check whether --enable-local-libevent was given. 24730if test "${enable_local_libevent+set}" = set; then : 24731 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval 24732else 24733 ntp_use_local_libevent=${ntp_use_local_libevent-detect} 24734 24735fi 24736 24737 24738 24739 24740 24741 24742 24743 24744 24745 24746ntp_libevent_min_version=2 24747ntp_libevent_tearoff=libevent 24748 24749 24750 24751 24752 24753case "$ntp_use_local_libevent" in 24754 yes) 24755 ;; 24756 *) # If we have (a good enough) pkg-config, see if it can find libevent 24757 case "$PKG_CONFIG" in 24758 /*) 24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5 24760$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; } 24761 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent 24762 then 24763 ntp_use_local_libevent=no 24764 ntp_libevent_version="`$PKG_CONFIG --modversion libevent`" 24765 case "$ntp_libevent_version" in 24766 *.*) ;; 24767 *) ntp_libevent_version='(unknown)' ;; 24768 esac 24769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5 24770$as_echo "yes, version $ntp_libevent_version" >&6; } 24771 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads` 24772 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent` 24773 # HMS: I hope the following is accurate. 24774 # We don't need -levent, we only need -levent_core. 24775 # While we could grab only the -L stuff, there *might* be 24776 # other flags there we want. Originally we just removed -levent 24777 # but then somebody decided to install -levent-2.0 24778 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'` 24779 # So now we dance... 24780 LDADD_LIBEVENT= 24781 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads` 24782 do 24783 case "$i" in 24784 -D*) ;; 24785 -levent*) ;; 24786 *) case "$LDADD_LIBEVENT" in 24787 '') LDADD_LIBEVENT="$i" ;; 24788 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;; 24789 esac 24790 ;; 24791 esac 24792 done 24793 case "$LIBISC_PTHREADS_NOTHREADS" in 24794 pthreads) 24795 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads" 24796 esac 24797 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core" 24798 else 24799 ntp_use_local_libevent=yes 24800 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS 24801 # is "pthreads"? 24802 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads` 24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24804$as_echo "no" >&6; } 24805 fi 24806 ;; 24807 *) 24808 ntp_use_local_libevent=yes 24809 ;; 24810 esac 24811 ;; 24812esac 24813 24814case "$ntp_use_local_libevent" in 24815 yes) 24816 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5 24817$as_echo "$as_me: Using libevent tearoff" >&6;} 24818 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include" 24819 case "$LIBISC_PTHREADS_NOTHREADS" in 24820 pthreads) 24821 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 24822 ;; 24823 *) 24824 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 24825 esac 24826esac 24827 24828 24829 if test "x$ntp_use_local_libevent" = "xyes"; then 24830 BUILD_LIBEVENT_TRUE= 24831 BUILD_LIBEVENT_FALSE='#' 24832else 24833 BUILD_LIBEVENT_TRUE='#' 24834 BUILD_LIBEVENT_FALSE= 24835fi 24836 24837 24838 24839 24840case "$ntp_libevent_tearoff" in 24841 libevent) 24842 ;; 24843 *) 24844 as_fn_error $? "ntp_libevent.m4 dir must be libevent, not $ntp_libevent_tearoff" "$LINENO" 5 24845 ;; 24846esac 24847 24848case "$ntp_use_local_libevent" in 24849 yes) 24850 ac_configure_args=" --disable-openssl${ac_configure_args}" 24851 ac_configure_args=" --disable-shared${ac_configure_args}" 24852 ac_configure_args=" --disable-libevent-regress${ac_configure_args}" 24853 ac_configure_args=" --disable-libevent-install${ac_configure_args}" 24854 ac_configure_args=" --enable-silent-rules${ac_configure_args}" 24855 ac_configure_args=" --enable-function-sections${ac_configure_args}" 24856 ac_configure_args=" LEP_CFLAGS='${NTP_HARD_CFLAGS}'${ac_configure_args}" 24857 ac_configure_args=" LEP_CPPFLAGS='${NTP_HARD_CPPFLAGS}'${ac_configure_args}" 24858 ac_configure_args=" LEP_LDFLAGS='${NTP_HARD_LDFLAGS}'${ac_configure_args}" 24859 subdirs="$subdirs libevent" 24860 24861 ;; 24862 *) 24863 NTP_FORCE_LIBEVENT_DIST=libevent 24864 ;; 24865esac 24866 24867 24868 24869# Checks for libraries. 24870 24871 24872LIB_SYSLOG='' 24873 24874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5 24875$as_echo_n "checking for library containing openlog... " >&6; } 24876if ${ac_cv_search_openlog+:} false; then : 24877 $as_echo_n "(cached) " >&6 24878else 24879 ac_func_search_save_LIBS=$LIBS 24880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24881/* end confdefs.h. */ 24882 24883/* Override any GCC internal prototype to avoid an error. 24884 Use char because int might match the return type of a GCC 24885 builtin and then its argument prototype would still apply. */ 24886#ifdef __cplusplus 24887extern "C" 24888#endif 24889char openlog (); 24890int 24891main () 24892{ 24893return openlog (); 24894 ; 24895 return 0; 24896} 24897_ACEOF 24898for ac_lib in '' gen syslog; do 24899 if test -z "$ac_lib"; then 24900 ac_res="none required" 24901 else 24902 ac_res=-l$ac_lib 24903 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24904 fi 24905 if ac_fn_c_try_link "$LINENO"; then : 24906 ac_cv_search_openlog=$ac_res 24907fi 24908rm -f core conftest.err conftest.$ac_objext \ 24909 conftest$ac_exeext 24910 if ${ac_cv_search_openlog+:} false; then : 24911 break 24912fi 24913done 24914if ${ac_cv_search_openlog+:} false; then : 24915 24916else 24917 ac_cv_search_openlog=no 24918fi 24919rm conftest.$ac_ext 24920LIBS=$ac_func_search_save_LIBS 24921fi 24922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5 24923$as_echo "$ac_cv_search_openlog" >&6; } 24924ac_res=$ac_cv_search_openlog 24925if test "$ac_res" != no; then : 24926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24927 case "$ac_cv_search_openlog" in 24928 'none required') ;; 24929 no) ;; 24930 *) LIB_SYSLOG="$ac_cv_search_openlog $LIB_SYSLOG" ;; 24931 esac 24932 24933fi 24934 24935 24936# Checks for header files. 24937for ac_header in netdb.h string.h strings.h syslog.h 24938do : 24939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24940ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24941if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24942 cat >>confdefs.h <<_ACEOF 24943#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24944_ACEOF 24945 24946fi 24947 24948done 24949 24950 24951 24952for ac_header in sysexits.h 24953do : 24954 ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default" 24955if test "x$ac_cv_header_sysexits_h" = xyes; then : 24956 cat >>confdefs.h <<_ACEOF 24957#define HAVE_SYSEXITS_H 1 24958_ACEOF 24959 24960else 24961 24962 24963$as_echo "#define EX_OK 0" >>confdefs.h 24964 24965 24966$as_echo "#define EX_SOFTWARE 70" >>confdefs.h 24967 24968 24969fi 24970 24971done 24972 24973 24974 24975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5 24976$as_echo_n "checking for facilitynames in syslog.h... " >&6; } 24977if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then : 24978 $as_echo_n "(cached) " >&6 24979else 24980 24981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24982/* end confdefs.h. */ 24983 24984#define SYSLOG_NAMES 24985#include <stdlib.h> 24986#include <syslog.h> 24987 24988int 24989main () 24990{ 24991 void *fnames; fnames = facilitynames; 24992 ; 24993 return 0; 24994} 24995_ACEOF 24996if ac_fn_c_try_compile "$LINENO"; then : 24997 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes 24998else 24999 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no 25000fi 25001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25002fi 25003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5 25004$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; } 25005case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in 25006 yes) 25007 25008$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h 25009 25010 ;; 25011 no) 25012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5 25013$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;} 25014 ;; 25015 cross) 25016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5 25017$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;} 25018 ;; 25019esac 25020 25021 25022# Checks for typedefs, structures, and compiler characteristics. 25023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 25024$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 25025if ${ac_cv_header_stdbool_h+:} false; then : 25026 $as_echo_n "(cached) " >&6 25027else 25028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25029/* end confdefs.h. */ 25030 25031 #include <stdbool.h> 25032 #ifndef bool 25033 "error: bool is not defined" 25034 #endif 25035 #ifndef false 25036 "error: false is not defined" 25037 #endif 25038 #if false 25039 "error: false is not 0" 25040 #endif 25041 #ifndef true 25042 "error: true is not defined" 25043 #endif 25044 #if true != 1 25045 "error: true is not 1" 25046 #endif 25047 #ifndef __bool_true_false_are_defined 25048 "error: __bool_true_false_are_defined is not defined" 25049 #endif 25050 25051 struct s { _Bool s: 1; _Bool t; } s; 25052 25053 char a[true == 1 ? 1 : -1]; 25054 char b[false == 0 ? 1 : -1]; 25055 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 25056 char d[(bool) 0.5 == true ? 1 : -1]; 25057 /* See body of main program for 'e'. */ 25058 char f[(_Bool) 0.0 == false ? 1 : -1]; 25059 char g[true]; 25060 char h[sizeof (_Bool)]; 25061 char i[sizeof s.t]; 25062 enum { j = false, k = true, l = false * true, m = true * 256 }; 25063 /* The following fails for 25064 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 25065 _Bool n[m]; 25066 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 25067 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 25068 /* Catch a bug in an HP-UX C compiler. See 25069 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 25070 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 25071 */ 25072 _Bool q = true; 25073 _Bool *pq = &q; 25074 25075int 25076main () 25077{ 25078 25079 bool e = &s; 25080 *pq |= q; 25081 *pq |= ! q; 25082 /* Refer to every declared value, to avoid compiler optimizations. */ 25083 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 25084 + !m + !n + !o + !p + !q + !pq); 25085 25086 ; 25087 return 0; 25088} 25089_ACEOF 25090if ac_fn_c_try_compile "$LINENO"; then : 25091 ac_cv_header_stdbool_h=yes 25092else 25093 ac_cv_header_stdbool_h=no 25094fi 25095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25096fi 25097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 25098$as_echo "$ac_cv_header_stdbool_h" >&6; } 25099 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 25100if test "x$ac_cv_type__Bool" = xyes; then : 25101 25102cat >>confdefs.h <<_ACEOF 25103#define HAVE__BOOL 1 25104_ACEOF 25105 25106 25107fi 25108 25109 25110if test $ac_cv_header_stdbool_h = yes; then 25111 25112$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 25113 25114fi 25115 25116 25117 25118 25119 25120VER_SUFFIX= 25121 25122 25123 25124 25125# Check whether --with-crypto was given. 25126if test "${with_crypto+set}" = set; then : 25127 withval=$with_crypto; 25128fi 25129 25130 25131# Check whether --with-openssl-libdir was given. 25132if test "${with_openssl_libdir+set}" = set; then : 25133 withval=$with_openssl_libdir; 25134fi 25135 25136 25137# Check whether --with-openssl-incdir was given. 25138if test "${with_openssl_incdir+set}" = set; then : 25139 withval=$with_openssl_incdir; 25140fi 25141 25142 25143# Check whether --with-rpath was given. 25144if test "${with_rpath+set}" = set; then : 25145 withval=$with_rpath; 25146fi 25147 25148 25149ntp_openssl=no 25150ntp_openssl_from_pkg_config=no 25151 25152with_crypto=${with_crypto:-openssl,libcrypto} 25153case "$with_crypto" in 25154 yes) 25155 with_crypto=openssl,libcrypto 25156esac 25157 25158 25159case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in 25160 no:*) ;; 25161 *:notempty:notgiven:notgiven) 25162 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do 25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5 25164$as_echo_n "checking pkg-config for $pkg... " >&6; } 25165 if $PKG_CONFIG --exists $pkg ; then 25166 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`" 25167 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`" 25168 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`" 25169 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`" 25170 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`" 25171 VER_SUFFIX=o 25172 ntp_openssl=yes 25173 ntp_openssl_from_pkg_config=yes 25174 ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`" 25175 case "$ntp_openssl_version" in 25176 *.*) ;; 25177 *) ntp_openssl_version='(unknown)' ;; 25178 esac 25179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5 25180$as_echo "yes, version $ntp_openssl_version" >&6; } 25181 25182 break 25183 fi 25184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25185$as_echo "no" >&6; } 25186 done 25187esac 25188case "$with_crypto:$ntp_openssl" in 25189 no:*) ;; 25190 *:no) 25191 need_dash_r= 25192 need_dash_Wlrpath= 25193 case "${with_rpath-notgiven}" in 25194 yes) 25195 # Lame - what to do if we need -Wl... but not -R? 25196 need_dash_r=1 25197 ;; 25198 notgiven) 25199 case "$host" in 25200 *-*-linux*) 25201 # This may really only be true for gcc 25202 need_dash_Wlrpath=1 25203 ;; 25204 *-*-netbsd*) 25205 need_dash_r=1 25206 ;; 25207 *-*-solaris*) 25208 need_dash_r=1 25209 ;; 25210 esac 25211 ;; 25212 esac 25213 25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5 25215$as_echo_n "checking for openssl library directory... " >&6; } 25216 with_openssl_libdir=${with_openssl_libdir-notgiven} 25217 case "$with_openssl_libdir" in 25218 notgiven) 25219 case "$build" in 25220 $host) 25221 with_openssl_libdir=default 25222 ;; 25223 *) 25224 with_openssl_libdir=no 25225 ;; 25226 esac 25227 esac 25228 case "$with_openssl_libdir" in 25229 default) 25230 # Look in: 25231 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib" 25232 with_openssl_libdir="$with_openssl_libdir /usr/local/lib" 25233 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib" 25234 esac 25235 case "$with_openssl_libdir" in 25236 no) 25237 ;; 25238 *) # Look for libcrypto.a and libssl.a: 25239 for i in $with_openssl_libdir no 25240 do 25241 case "$host" in 25242 *-*-darwin*) 25243 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break 25244 ;; 25245 *) 25246 test -f $i/libcrypto.so -a -f $i/libssl.so && break 25247 test -f $i/libcrypto.a -a -f $i/libssl.a && break 25248 ;; 25249 esac 25250 done 25251 openssl_libdir=$i 25252 ;; 25253 esac 25254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5 25255$as_echo "$openssl_libdir" >&6; } 25256 case "$openssl_libdir" in 25257 no) 25258 openssl_libdir= 25259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5 25260$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;} 25261 esac 25262 25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5 25264$as_echo_n "checking for openssl include directory... " >&6; } 25265 with_openssl_incdir=${with_openssl_incdir-notgiven} 25266 case "$with_openssl_incdir" in 25267 notgiven) 25268 # Look in: 25269 with_openssl_incdir="/usr/include /usr/sfw/include" 25270 with_openssl_incdir="$with_openssl_incdir /usr/local/include" 25271 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include" 25272 esac 25273 case "$with_openssl_incdir" in 25274 no) 25275 ;; 25276 *) # look for openssl/evp.h: 25277 for i in $with_openssl_incdir no 25278 do 25279 test -f $i/openssl/evp.h && break 25280 done 25281 openssl_incdir=$i 25282 ;; 25283 esac 25284 { i=; unset i;} 25285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5 25286$as_echo "$openssl_incdir" >&6; } 25287 case "$openssl_incdir" in 25288 no) 25289 openssl_incdir= 25290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5 25291$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;} 25292 esac 25293 if test -z "$openssl_libdir" -o -z "$openssl_incdir" 25294 then 25295 ntp_openssl=no 25296 else 25297 ntp_openssl=yes 25298 VER_SUFFIX=o 25299 fi 25300 case "$ntp_openssl" in 25301 yes) 25302 # We have OpenSSL inc/lib dirs - use them. 25303 case "$openssl_incdir" in 25304 /usr/include) 25305 ;; 25306 *) 25307 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir" 25308 ;; 25309 esac 25310 case "$openssl_libdir" in 25311 /usr/lib) 25312 ;; 25313 *) 25314 LDADD_NTP="$LDADD_NTP -L$openssl_libdir" 25315 case "$need_dash_r" in 25316 1) 25317 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir" 25318 esac 25319 case "$need_dash_Wlrpath" in 25320 1) 25321 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir" 25322 esac 25323 ;; 25324 esac 25325 LDADD_NTP="$LDADD_NTP -lcrypto" 25326 esac 25327esac 25328 25329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5 25330$as_echo_n "checking if we will use crypto... " >&6; } 25331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5 25332$as_echo "$ntp_openssl" >&6; } 25333 25334case "$ntp_openssl" in 25335 yes)
|
| 25336 for ac_header in openssl/cmac.h openssl/hmac.h 25337do : 25338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25339ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25340if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25341 cat >>confdefs.h <<_ACEOF 25342#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25343_ACEOF
|
25300
| 25344
|
| 25345fi 25346 25347done 25348 25349
|
25301$as_echo "#define OPENSSL /**/" >>confdefs.h 25302 25303 case "$VER_SUFFIX" in 25304 *o*) ;; 25305 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;; 25306 esac 25307 ;; 25308esac 25309 25310NTPO_SAVED_CPPFLAGS="$CPPFLAGS" 25311CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP" 25312NTPO_SAVED_LIBS="$LIBS" 25313 25314# 25315# check for linking with -lcrypto failure, and try -lcrypto -lz. 25316# Helps m68k-atari-mint 25317# 25318case "$ntp_openssl:$ntp_openssl_from_pkg_config" in 25319 yes:no) 25320 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 25321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5 25322$as_echo_n "checking if linking with -lcrypto alone works... " >&6; } 25323if ${ntp_cv_bare_lcrypto+:} false; then : 25324 $as_echo_n "(cached) " >&6 25325else 25326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25327/* end confdefs.h. */ 25328 25329 #include "openssl/err.h" 25330 #include "openssl/evp.h" 25331 25332int 25333main () 25334{ 25335 25336 ERR_load_crypto_strings(); 25337 OpenSSL_add_all_algorithms(); 25338 25339 25340 ; 25341 return 0; 25342} 25343_ACEOF 25344if ac_fn_c_try_link "$LINENO"; then : 25345 ntp_cv_bare_lcrypto=yes 25346else 25347 ntp_cv_bare_lcrypto=no 25348 25349fi 25350rm -f core conftest.err conftest.$ac_objext \ 25351 conftest$ac_exeext conftest.$ac_ext 25352 25353fi 25354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5 25355$as_echo "$ntp_cv_bare_lcrypto" >&6; } 25356 case "$ntp_cv_bare_lcrypto" in 25357 no) 25358 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz" 25359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5 25360$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; } 25361if ${ntp_cv_lcrypto_lz+:} false; then : 25362 $as_echo_n "(cached) " >&6 25363else 25364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25365/* end confdefs.h. */ 25366 25367 #include "openssl/err.h" 25368 #include "openssl/evp.h" 25369 25370int 25371main () 25372{ 25373 25374 ERR_load_crypto_strings(); 25375 OpenSSL_add_all_algorithms(); 25376 25377 25378 ; 25379 return 0; 25380} 25381_ACEOF 25382if ac_fn_c_try_link "$LINENO"; then : 25383 ntp_cv_lcrypto_lz=yes 25384else 25385 ntp_cv_lcrypto_lz=no 25386 25387fi 25388rm -f core conftest.err conftest.$ac_objext \ 25389 conftest$ac_exeext conftest.$ac_ext 25390 25391fi 25392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5 25393$as_echo "$ntp_cv_lcrypto_lz" >&6; } 25394 case "$ntp_cv_lcrypto_lz" in 25395 yes) 25396 LDADD_NTP="$LDADD_NTP -lz" 25397 esac 25398 esac 25399esac 25400 25401# 25402# Older OpenSSL headers have a number of callback prototypes inside 25403# other function prototypes which trigger copious warnings with gcc's 25404# -Wstrict-prototypes, which is included in -Wall. 25405# 25406# An example: 25407# 25408# int i2d_RSA_NET(const RSA *a, unsigned char **pp, 25409# int (*cb)(), int sgckey); 25410# ^^^^^^^^^^^ 25411# 25412# 25413# 25414openssl_triggers_warnings=unknown 25415NTPO_SAVED_CFLAGS="$CFLAGS" 25416 25417case "$ntp_openssl:$GCC" in 25418 yes:yes) 25419 CFLAGS="$CFLAGS -Werror" 25420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25421/* end confdefs.h. */ 25422 25423 25424int 25425main () 25426{ 25427 25428 /* see if -Werror breaks gcc */ 25429 25430 25431 ; 25432 return 0; 25433} 25434_ACEOF 25435if ac_fn_c_try_compile "$LINENO"; then : 25436 gcc_handles_Werror=yes 25437else 25438 gcc_handles_Werror=no 25439 25440fi 25441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25442 case "$gcc_handles_Werror" in 25443 no) 25444 # if this gcc doesn't do -Werror go ahead and use 25445 # -Wstrict-prototypes. 25446 openssl_triggers_warnings=yes 25447 ;; 25448 yes) 25449 CFLAGS="$CFLAGS -Wstrict-prototypes" 25450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25451/* end confdefs.h. */ 25452 25453 #include "openssl/asn1_mac.h" 25454 #include "openssl/bn.h" 25455 #include "openssl/err.h" 25456 #include "openssl/evp.h" 25457 #include "openssl/pem.h" 25458 #include "openssl/rand.h" 25459 #include "openssl/x509v3.h" 25460 25461int 25462main () 25463{ 25464 25465 /* empty body */ 25466 25467 25468 ; 25469 return 0; 25470} 25471_ACEOF 25472if ac_fn_c_try_compile "$LINENO"; then : 25473 openssl_triggers_warnings=no 25474else 25475 openssl_triggers_warnings=yes 25476 25477fi 25478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25479 esac 25480 case "$openssl_triggers_warnings" in 25481 yes) 25482 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes" 25483 ;; 25484 *) 25485 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 25486 esac 25487 ;; 25488 no:yes) 25489 # gcc without OpenSSL 25490 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 25491esac 25492 25493# Because we don't want -Werror for the EVP_MD_do_all_sorted check 25494CFLAGS="$NTPO_SAVED_CFLAGS" 25495 25496case "$ntp_openssl" in 25497 yes) 25498 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 25499 for ac_func in EVP_MD_do_all_sorted 25500do : 25501 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted" 25502if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then : 25503 cat >>confdefs.h <<_ACEOF 25504#define HAVE_EVP_MD_DO_ALL_SORTED 1 25505_ACEOF 25506 25507fi 25508done 25509 25510 ;; 25511esac 25512 25513 25514CPPFLAGS="$NTPO_SAVED_CPPFLAGS" 25515LIBS="$NTPO_SAVED_LIBS" 25516{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;} 25517{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;} 25518{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;} 25519{ openssl_triggers_warnings=; unset openssl_triggers_warnings;} 25520{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;} 25521 25522 25523 25524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 25525$as_echo_n "checking for struct sockaddr_storage... " >&6; } 25526if ${ntp_cv_sockaddr_storage+:} false; then : 25527 $as_echo_n "(cached) " >&6 25528else 25529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25530/* end confdefs.h. */ 25531 25532 #ifdef HAVE_SYS_TYPES_H 25533 # include <sys/types.h> 25534 #endif 25535 #ifdef HAVE_SYS_SOCKET_H 25536 # include <sys/socket.h> 25537 #endif 25538 #ifdef HAVE_NETINET_IN_H 25539 # include <netinet/in.h> 25540 #endif 25541 25542int 25543main () 25544{ 25545 25546 struct sockaddr_storage n; 25547 25548 25549 ; 25550 return 0; 25551} 25552_ACEOF 25553if ac_fn_c_try_compile "$LINENO"; then : 25554 ntp_cv_sockaddr_storage=yes 25555else 25556 ntp_cv_sockaddr_storage=no 25557 25558fi 25559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25560 25561fi 25562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5 25563$as_echo "$ntp_cv_sockaddr_storage" >&6; } 25564case "$ntp_cv_sockaddr_storage" in 25565 yes) 25566 25567$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 25568 25569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5 25570$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; } 25571if ${ntp_cv_have___ss_family+:} false; then : 25572 $as_echo_n "(cached) " >&6 25573else 25574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25575/* end confdefs.h. */ 25576 25577 #ifdef HAVE_SYS_TYPES_H 25578 # include <sys/types.h> 25579 #endif 25580 #ifdef HAVE_SYS_SOCKET_H 25581 # include <sys/socket.h> 25582 #endif 25583 #ifdef HAVE_NETINET_IN_H 25584 # include <netinet/in.h> 25585 #endif 25586 25587int 25588main () 25589{ 25590 25591 struct sockaddr_storage s; 25592 s.__ss_family = 1; 25593 25594 25595 ; 25596 return 0; 25597} 25598_ACEOF 25599if ac_fn_c_try_compile "$LINENO"; then : 25600 ntp_cv_have___ss_family=yes 25601else 25602 ntp_cv_have___ss_family=no 25603 25604fi 25605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25606 25607fi 25608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5 25609$as_echo "$ntp_cv_have___ss_family" >&6; } 25610 case "$ntp_cv_have___ss_family" in 25611 yes) 25612 25613$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 25614 25615 esac 25616 25617esac 25618 25619 25620# 25621# Look for in_port_t. 25622# 25623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5 25624$as_echo_n "checking for in_port_t... " >&6; } 25625if ${isc_cv_have_in_port_t+:} false; then : 25626 $as_echo_n "(cached) " >&6 25627else 25628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25629/* end confdefs.h. */ 25630 25631 #include <sys/types.h> 25632 #include <netinet/in.h> 25633 25634int 25635main () 25636{ 25637 25638 in_port_t port = 25; 25639 return (0); 25640 25641 25642 ; 25643 return 0; 25644} 25645_ACEOF 25646if ac_fn_c_try_compile "$LINENO"; then : 25647 isc_cv_have_in_port_t=yes 25648else 25649 isc_cv_have_in_port_t=no 25650 25651fi 25652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25653 25654fi 25655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5 25656$as_echo "$isc_cv_have_in_port_t" >&6; } 25657case "$isc_cv_have_in_port_t" in 25658 no) 25659 25660$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h 25661 25662esac 25663 25664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5 25665$as_echo_n "checking type of socklen arg for getsockname()... " >&6; } 25666if ${ntp_cv_getsockname_socklen_type+:} false; then : 25667 $as_echo_n "(cached) " >&6 25668else 25669 25670 getsockname_socklen_type_found=no 25671 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do 25672 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do 25673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25674/* end confdefs.h. */ 25675 25676 #ifdef HAVE_SYS_TYPES_H 25677 # include <sys/types.h> 25678 #endif 25679 #ifdef HAVE_SYS_SOCKET_H 25680 # include <sys/socket.h> 25681 #endif 25682 25683int 25684main () 25685{ 25686 25687 extern 25688 getsockname(int, $getsockname_arg2, 25689 $ntp_cv_getsockname_socklen_type *); 25690 25691 25692 ; 25693 return 0; 25694} 25695_ACEOF 25696if ac_fn_c_try_compile "$LINENO"; then : 25697 getsockname_socklen_type_found=yes ; break 2 25698fi 25699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25700 done 25701 done 25702 case "$getsockname_socklen_type_found" in 25703 no) 25704 ntp_cv_getsockname_socklen_type='socklen_t' 25705 esac 25706 { getsockname_arg2=; unset getsockname_arg2;} 25707 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;} 25708 25709 25710fi 25711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5 25712$as_echo "$ntp_cv_getsockname_socklen_type" >&6; } 25713 25714cat >>confdefs.h <<_ACEOF 25715#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type 25716_ACEOF 25717 25718 25719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5 25720$as_echo_n "checking struct sockaddr for sa_len... " >&6; } 25721if ${isc_cv_platform_havesalen+:} false; then : 25722 $as_echo_n "(cached) " >&6 25723else 25724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25725/* end confdefs.h. */ 25726 25727 #include <sys/types.h> 25728 #include <sys/socket.h> 25729 25730int 25731main () 25732{ 25733 25734 extern struct sockaddr *ps; 25735 return ps->sa_len; 25736 25737 25738 ; 25739 return 0; 25740} 25741_ACEOF 25742if ac_fn_c_try_compile "$LINENO"; then : 25743 isc_cv_platform_havesalen=yes 25744else 25745 isc_cv_platform_havesalen=no 25746 25747fi 25748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25749 25750fi 25751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5 25752$as_echo "$isc_cv_platform_havesalen" >&6; } 25753case "$isc_cv_platform_havesalen" in 25754 yes) 25755 25756$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h 25757 25758esac 25759 25760# Check whether --enable-ipv6 was given. 25761if test "${enable_ipv6+set}" = set; then : 25762 enableval=$enable_ipv6; 25763fi 25764 25765 25766case "$enable_ipv6" in 25767 yes|''|autodetect) 25768 case "$host" in 25769 powerpc-ibm-aix4*) 25770 ;; 25771 *) 25772 25773$as_echo "#define WANT_IPV6 1" >>confdefs.h 25774 25775 ;; 25776 esac 25777 ;; 25778 no) 25779 ;; 25780esac 25781 25782 25783case "$host" in 25784 *-*-darwin*) 25785 25786$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h 25787 25788esac 25789 25790 25791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 25792$as_echo_n "checking for IPv6 structures... " >&6; } 25793if ${isc_cv_found_ipv6+:} false; then : 25794 $as_echo_n "(cached) " >&6 25795else 25796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25797/* end confdefs.h. */ 25798 25799 #include <sys/types.h> 25800 #include <sys/socket.h> 25801 #include <netinet/in.h> 25802 25803int 25804main () 25805{ 25806 25807 struct sockaddr_in6 sin6; 25808 25809 25810 ; 25811 return 0; 25812} 25813_ACEOF 25814if ac_fn_c_try_compile "$LINENO"; then : 25815 isc_cv_found_ipv6=yes 25816else 25817 isc_cv_found_ipv6=no 25818 25819fi 25820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25821 25822fi 25823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5 25824$as_echo "$isc_cv_found_ipv6" >&6; } 25825 25826# 25827# See whether IPv6 support is provided via a Kame add-on. 25828# This is done before other IPv6 linking tests so LIBS is properly set. 25829# 25830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5 25831$as_echo_n "checking for Kame IPv6 support... " >&6; } 25832 25833# Check whether --with-kame was given. 25834if test "${with_kame+set}" = set; then : 25835 withval=$with_kame; use_kame="$withval" 25836else 25837 use_kame="no" 25838 25839fi 25840 25841case "$use_kame" in 25842 no) 25843 ;; 25844 yes) 25845 kame_path=/usr/local/v6 25846 ;; 25847 *) 25848 kame_path="$use_kame" 25849 ;; 25850esac 25851case "$use_kame" in 25852 no) 25853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25854$as_echo "no" >&6; } 25855 ;; 25856 *) 25857 if test -f $kame_path/lib/libinet6.a; then 25858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5 25859$as_echo "$kame_path/lib/libinet6.a" >&6; } 25860 LIBS="-L$kame_path/lib -linet6 $LIBS" 25861 else 25862 as_fn_error $? "$kame_path/lib/libinet6.a not found. 25863 25864Please choose the proper path with the following command: 25865 25866 configure --with-kame=PATH 25867" "$LINENO" 5 25868 fi 25869 ;; 25870esac 25871 25872# 25873# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 25874# Including it on Kame-using platforms is very bad, though, because 25875# Kame uses #error against direct inclusion. So include it on only 25876# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 25877# This is done before the in6_pktinfo check because that's what 25878# netinet6/in6.h is needed for. 25879# 25880case "$host" in 25881 *-bsdi4.[01]*) 25882 25883$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h 25884 25885 isc_netinet6in6_hack="#include <netinet6/in6.h>" 25886 ;; 25887 *) 25888 isc_netinet6in6_hack="" 25889 ;; 25890esac 25891 25892# 25893# This is similar to the netinet6/in6.h issue. 25894# 25895case "$host" in 25896 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 25897 25898$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h 25899 25900 isc_netinetin6_hack="#include <netinet/in6.h>" 25901 ;; 25902 *) 25903 isc_netinetin6_hack="" 25904 ;; 25905esac 25906 25907 25908case "$isc_cv_found_ipv6" in 25909 yes) 25910 25911$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h 25912 25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5 25914$as_echo_n "checking for in6_pktinfo... " >&6; } 25915if ${isc_cv_have_in6_pktinfo+:} false; then : 25916 $as_echo_n "(cached) " >&6 25917else 25918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25919/* end confdefs.h. */ 25920 25921 #include <sys/types.h> 25922 #include <sys/socket.h> 25923 #include <netinet/in.h> 25924 $isc_netinetin6_hack 25925 $isc_netinet6in6_hack 25926 25927int 25928main () 25929{ 25930 25931 struct in6_pktinfo xyzzy; 25932 25933 25934 ; 25935 return 0; 25936} 25937_ACEOF 25938if ac_fn_c_try_compile "$LINENO"; then : 25939 isc_cv_have_in6_pktinfo=yes 25940else 25941 isc_cv_have_in6_pktinfo=no 25942 25943fi 25944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25945 25946fi 25947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5 25948$as_echo "$isc_cv_have_in6_pktinfo" >&6; } 25949 case "$isc_cv_have_in6_pktinfo" in 25950 yes) 25951 25952$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h 25953 25954 esac 25955 25956 25957 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead? 25958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5 25959$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; } 25960if ${isc_cv_have_sin6_scope_id+:} false; then : 25961 $as_echo_n "(cached) " >&6 25962else 25963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25964/* end confdefs.h. */ 25965 25966 #include <sys/types.h> 25967 #include <sys/socket.h> 25968 #include <netinet/in.h> 25969 $isc_netinetin6_hack 25970 $isc_netinet6in6_hack 25971 25972int 25973main () 25974{ 25975 25976 struct sockaddr_in6 xyzzy; 25977 xyzzy.sin6_scope_id = 0; 25978 25979 25980 ; 25981 return 0; 25982} 25983_ACEOF 25984if ac_fn_c_try_compile "$LINENO"; then : 25985 isc_cv_have_sin6_scope_id=yes 25986else 25987 isc_cv_have_sin6_scope_id=no 25988 25989fi 25990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25991 25992fi 25993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5 25994$as_echo "$isc_cv_have_sin6_scope_id" >&6; } 25995 25996 case "$isc_cv_have_sin6_scope_id" in 25997 yes) 25998 25999$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h 26000 26001 esac 26002esac 26003 26004 26005# We need this check run even without isc_cv_found_ipv6=yes 26006 26007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5 26008$as_echo_n "checking for in6addr_any... " >&6; } 26009if ${isc_cv_in6addr_any_links+:} false; then : 26010 $as_echo_n "(cached) " >&6 26011else 26012 26013 SAVED_LIBS="$LIBS" 26014 LIBS="$LDADD_LIBNTP $LIBS" 26015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26016/* end confdefs.h. */ 26017$ac_includes_default 26018 #include <sys/socket.h> 26019 #include <netinet/in.h> 26020 $isc_netinetin6_hack 26021 $isc_netinet6in6_hack 26022 26023int 26024main () 26025{ 26026 26027 printf("%x", in6addr_any.s6_addr[15]); 26028 26029 26030 ; 26031 return 0; 26032} 26033_ACEOF 26034if ac_fn_c_try_link "$LINENO"; then : 26035 isc_cv_in6addr_any_links=yes 26036else 26037 isc_cv_in6addr_any_links=no 26038 26039fi 26040rm -f core conftest.err conftest.$ac_objext \ 26041 conftest$ac_exeext conftest.$ac_ext 26042 LIBS="$SAVED_LIBS" 26043 { SAVED_LIBS=; unset SAVED_LIBS;} 26044 26045 26046fi 26047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5 26048$as_echo "$isc_cv_in6addr_any_links" >&6; } 26049 26050case "$isc_cv_in6addr_any_links" in 26051 no) 26052 26053$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h 26054 26055esac 26056 26057 26058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 26059$as_echo_n "checking for struct if_laddrconf... " >&6; } 26060if ${isc_cv_struct_if_laddrconf+:} false; then : 26061 $as_echo_n "(cached) " >&6 26062else 26063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26064/* end confdefs.h. */ 26065 26066 #include <sys/types.h> 26067 #include <net/if6.h> 26068 26069int 26070main () 26071{ 26072 26073 struct if_laddrconf a; 26074 26075 26076 ; 26077 return 0; 26078} 26079_ACEOF 26080if ac_fn_c_try_compile "$LINENO"; then : 26081 isc_cv_struct_if_laddrconf=yes 26082else 26083 isc_cv_struct_if_laddrconf=no 26084 26085fi 26086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26087 26088fi 26089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5 26090$as_echo "$isc_cv_struct_if_laddrconf" >&6; } 26091 26092case "$isc_cv_struct_if_laddrconf" in 26093 yes) 26094 26095$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h 26096 26097esac 26098 26099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 26100$as_echo_n "checking for struct if_laddrreq... " >&6; } 26101if ${isc_cv_struct_if_laddrreq+:} false; then : 26102 $as_echo_n "(cached) " >&6 26103else 26104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26105/* end confdefs.h. */ 26106 26107 #include <sys/types.h> 26108 #include <net/if6.h> 26109 26110int 26111main () 26112{ 26113 26114 struct if_laddrreq a; 26115 26116 26117 ; 26118 return 0; 26119} 26120_ACEOF 26121if ac_fn_c_try_compile "$LINENO"; then : 26122 isc_cv_struct_if_laddrreq=yes 26123else 26124 isc_cv_struct_if_laddrreq=no 26125 26126fi 26127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26128 26129fi 26130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5 26131$as_echo "$isc_cv_struct_if_laddrreq" >&6; } 26132 26133case "$isc_cv_struct_if_laddrreq" in 26134 yes) 26135 26136$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h 26137 26138esac 26139 26140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5 26141$as_echo_n "checking for multicast IP support... " >&6; } 26142if ${ntp_cv_multicast+:} false; then : 26143 $as_echo_n "(cached) " >&6 26144else 26145 26146 ntp_cv_multicast=no 26147 case "$host" in 26148 i386-sequent-sysv4) 26149 ;; 26150 *) 26151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26152/* end confdefs.h. */ 26153 26154 #ifdef HAVE_NETINET_IN_H 26155 # include <netinet/in.h> 26156 #endif 26157 26158int 26159main () 26160{ 26161 26162 struct ip_mreq ipmr; 26163 ipmr.imr_interface.s_addr = 0; 26164 26165 26166 ; 26167 return 0; 26168} 26169_ACEOF 26170if ac_fn_c_try_compile "$LINENO"; then : 26171 ntp_cv_multicast=yes 26172fi 26173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26174 ;; 26175 esac 26176 26177 26178fi 26179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5 26180$as_echo "$ntp_cv_multicast" >&6; } 26181case "$ntp_cv_multicast" in 26182 yes) 26183 26184$as_echo "#define MCAST 1" >>confdefs.h 26185 26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5 26187$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; } 26188if ${ntp_cv_typeof_ip_multicast_loop+:} false; then : 26189 $as_echo_n "(cached) " >&6 26190else 26191 26192 case "$host" in 26193 *-*-netbsd*|*-*-*linux*) 26194 ntp_cv_typeof_ip_multicast_loop=u_int 26195 ;; 26196 *) 26197 ntp_cv_typeof_ip_multicast_loop=u_char 26198 ;; 26199 esac 26200 26201 26202fi 26203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5 26204$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; } 26205 26206cat >>confdefs.h <<_ACEOF 26207#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop 26208_ACEOF 26209 26210esac 26211 26212# Check whether --enable-getifaddrs was given. 26213if test "${enable_getifaddrs+set}" = set; then : 26214 enableval=$enable_getifaddrs; want_getifaddrs="$enableval" 26215else 26216 want_getifaddrs="yes" 26217 26218fi 26219 26220 26221case $want_getifaddrs in 26222 glibc) 26223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5 26224$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;} 26225esac 26226case $want_getifaddrs in 26227 no) 26228 ;; 26229 *) 26230 SAVED_LIBS="$LIBS" 26231 LIBS="$LDADD_LIBNTP $LIBS" 26232 for ac_func in getifaddrs 26233do : 26234 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 26235if test "x$ac_cv_func_getifaddrs" = xyes; then : 26236 cat >>confdefs.h <<_ACEOF 26237#define HAVE_GETIFADDRS 1 26238_ACEOF 26239 26240fi 26241done 26242 26243 LIBS="$SAVED_LIBS" 26244 { SAVED_LIBS=; unset SAVED_LIBS;} 26245 ;; 26246esac 26247 26248# 26249# Check for if_nametoindex() for IPv6 scoped addresses support 26250# 26251case "$host" in 26252 *-hp-hpux*) 26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5 26254$as_echo_n "checking for library containing if_nametoindex... " >&6; } 26255if ${ac_cv_search_if_nametoindex+:} false; then : 26256 $as_echo_n "(cached) " >&6 26257else 26258 ac_func_search_save_LIBS=$LIBS 26259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26260/* end confdefs.h. */ 26261 26262/* Override any GCC internal prototype to avoid an error. 26263 Use char because int might match the return type of a GCC 26264 builtin and then its argument prototype would still apply. */ 26265#ifdef __cplusplus 26266extern "C" 26267#endif 26268char if_nametoindex (); 26269int 26270main () 26271{ 26272return if_nametoindex (); 26273 ; 26274 return 0; 26275} 26276_ACEOF 26277for ac_lib in '' ipv6; do 26278 if test -z "$ac_lib"; then 26279 ac_res="none required" 26280 else 26281 ac_res=-l$ac_lib 26282 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26283 fi 26284 if ac_fn_c_try_link "$LINENO"; then : 26285 ac_cv_search_if_nametoindex=$ac_res 26286fi 26287rm -f core conftest.err conftest.$ac_objext \ 26288 conftest$ac_exeext 26289 if ${ac_cv_search_if_nametoindex+:} false; then : 26290 break 26291fi 26292done 26293if ${ac_cv_search_if_nametoindex+:} false; then : 26294 26295else 26296 ac_cv_search_if_nametoindex=no 26297fi 26298rm conftest.$ac_ext 26299LIBS=$ac_func_search_save_LIBS 26300fi 26301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5 26302$as_echo "$ac_cv_search_if_nametoindex" >&6; } 26303ac_res=$ac_cv_search_if_nametoindex 26304if test "$ac_res" != no; then : 26305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26306 26307fi 26308 26309esac 26310SAVED_LIBS="$LIBS" 26311LIBS="$LDADD_LIBNTP $LIBS" 26312for ac_func in if_nametoindex 26313do : 26314 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 26315if test "x$ac_cv_func_if_nametoindex" = xyes; then : 26316 cat >>confdefs.h <<_ACEOF 26317#define HAVE_IF_NAMETOINDEX 1 26318_ACEOF 26319 26320fi 26321done 26322 26323LIBS="$SAVED_LIBS" 26324{ SAVED_LIBS=; unset SAVED_LIBS;} 26325case "$ac_cv_func_if_nametoindex" in 26326 yes) 26327 26328$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h 26329 26330esac 26331 26332 26333 26334### 26335 26336# Hacks 26337# these need work if we're to move libntp under sntp 26338 26339$as_echo "#define HAVE_NO_NICE 1" >>confdefs.h 26340 26341 26342$as_echo "#define HAVE_TERMIOS 1" >>confdefs.h 26343 26344 26345# Checks for library functions. 26346for ac_func in socket 26347do : 26348 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 26349if test "x$ac_cv_func_socket" = xyes; then : 26350 cat >>confdefs.h <<_ACEOF 26351#define HAVE_SOCKET 1 26352_ACEOF 26353 26354fi 26355done 26356 26357 26358 26359# We may not need have_unity 26360have_unity=false 26361# Extract the first word of "ruby", so it can be a program name with args. 26362set dummy ruby; ac_word=$2 26363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26364$as_echo_n "checking for $ac_word... " >&6; } 26365if ${ac_cv_path_PATH_RUBY+:} false; then : 26366 $as_echo_n "(cached) " >&6 26367else 26368 case $PATH_RUBY in 26369 [\\/]* | ?:[\\/]*) 26370 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path. 26371 ;; 26372 *) 26373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26374for as_dir in $PATH 26375do 26376 IFS=$as_save_IFS 26377 test -z "$as_dir" && as_dir=. 26378 for ac_exec_ext in '' $ac_executable_extensions; do 26379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26380 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext" 26381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26382 break 2 26383 fi 26384done 26385 done 26386IFS=$as_save_IFS 26387 26388 ;; 26389esac 26390fi 26391PATH_RUBY=$ac_cv_path_PATH_RUBY 26392if test -n "$PATH_RUBY"; then 26393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5 26394$as_echo "$PATH_RUBY" >&6; } 26395else 26396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26397$as_echo "no" >&6; } 26398fi 26399 26400 26401case "$PATH_RUBY" in 26402 /*) 26403 have_unity=true 26404 ;; 26405 *) PATH_RUBY="false" 26406 ;; 26407esac 26408# We may not need UNITYBUILD_AVAILABLE 26409 if $have_unity; then 26410 UNITYBUILD_AVAILABLE_TRUE= 26411 UNITYBUILD_AVAILABLE_FALSE='#' 26412else 26413 UNITYBUILD_AVAILABLE_TRUE='#' 26414 UNITYBUILD_AVAILABLE_FALSE= 26415fi 26416 26417 26418 26419## HMS: if we don't find c++ we should not look for gtest. 26420#AC_PROG_CXX 26421#NTP_GOOGLETEST 26422 26423 26424case "$build" in 26425 $host) cross=0 ;; 26426 *) cross=1 ;; 26427esac 26428 26429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5 26430$as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; } 26431# Check whether --enable-problem-tests was given. 26432if test "${enable_problem_tests+set}" = set; then : 26433 enableval=$enable_problem_tests; sntp_ept=$enableval 26434else 26435 sntp_ept=yes 26436 26437fi 26438 26439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_ept" >&5 26440$as_echo "$sntp_ept" >&6; } 26441 26442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodDatabase" >&5 26443$as_echo_n "checking if we can run test-kodDatabase... " >&6; } 26444sntp_test_kodDatabase="no" 26445case "$sntp_ept:$cross:$host" in 26446 no:0:*-apple-darwin12.6.0) ;; 26447 *) sntp_test_kodDatabase="yes" ;; 26448esac 26449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodDatabase" >&5 26450$as_echo "$sntp_test_kodDatabase" >&6; } 26451 if test x$sntp_test_kodDatabase = xyes; then 26452 BUILD_TEST_KODDATABASE_TRUE= 26453 BUILD_TEST_KODDATABASE_FALSE='#' 26454else 26455 BUILD_TEST_KODDATABASE_TRUE='#' 26456 BUILD_TEST_KODDATABASE_FALSE= 26457fi 26458 26459 26460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodFile" >&5 26461$as_echo_n "checking if we can run test-kodFile... " >&6; } 26462sntp_test_kodFile="no" 26463case "$sntp_ept:$cross:$host" in 26464 no:0:*-apple-darwin12.6.0) ;; 26465 *) sntp_test_kodFile="yes" ;; 26466esac 26467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodFile" >&5 26468$as_echo "$sntp_test_kodFile" >&6; } 26469 if test x$sntp_test_kodFile = xyes; then 26470 BUILD_TEST_KODFILE_TRUE= 26471 BUILD_TEST_KODFILE_FALSE='#' 26472else 26473 BUILD_TEST_KODFILE_TRUE='#' 26474 BUILD_TEST_KODFILE_FALSE= 26475fi 26476 26477 26478 26479 26480# All libraries should be in various LIB_* variables now. 26481#LIBS= 26482# Sadly not. There is a gettext() check somewhere, and on Solaris this pulls 26483# in -lintl -lgen, outside our "scope". 26484 26485ac_config_files="$ac_config_files Makefile" 26486 26487ac_config_files="$ac_config_files include/Makefile" 26488 26489ac_config_files="$ac_config_files scripts/Makefile" 26490 26491ac_config_files="$ac_config_files tests/Makefile" 26492 26493ac_config_files="$ac_config_files tests/fileHandlingTest.h" 26494 26495ac_config_files="$ac_config_files unity/Makefile" 26496 26497 26498cat >confcache <<\_ACEOF 26499# This file is a shell script that caches the results of configure 26500# tests run on this system so they can be shared between configure 26501# scripts and configure runs, see configure's option --config-cache. 26502# It is not useful on other systems. If it contains results you don't 26503# want to keep, you may remove or edit it. 26504# 26505# config.status only pays attention to the cache file if you give it 26506# the --recheck option to rerun configure. 26507# 26508# `ac_cv_env_foo' variables (set or unset) will be overridden when 26509# loading this file, other *unset* `ac_cv_foo' will be assigned the 26510# following values. 26511 26512_ACEOF 26513 26514# The following way of writing the cache mishandles newlines in values, 26515# but we know of no workaround that is simple, portable, and efficient. 26516# So, we kill variables containing newlines. 26517# Ultrix sh set writes to stderr and can't be redirected directly, 26518# and sets the high bit in the cache file unless we assign to the vars. 26519( 26520 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 26521 eval ac_val=\$$ac_var 26522 case $ac_val in #( 26523 *${as_nl}*) 26524 case $ac_var in #( 26525 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 26526$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 26527 esac 26528 case $ac_var in #( 26529 _ | IFS | as_nl) ;; #( 26530 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 26531 *) { eval $ac_var=; unset $ac_var;} ;; 26532 esac ;; 26533 esac 26534 done 26535 26536 (set) 2>&1 | 26537 case $as_nl`(ac_space=' '; set) 2>&1` in #( 26538 *${as_nl}ac_space=\ *) 26539 # `set' does not quote correctly, so add quotes: double-quote 26540 # substitution turns \\\\ into \\, and sed turns \\ into \. 26541 sed -n \ 26542 "s/'/'\\\\''/g; 26543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26544 ;; #( 26545 *) 26546 # `set' quotes correctly as required by POSIX, so do not add quotes. 26547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 26548 ;; 26549 esac | 26550 sort 26551) | 26552 sed ' 26553 /^ac_cv_env_/b end 26554 t clear 26555 :clear 26556 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 26557 t end 26558 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 26559 :end' >>confcache 26560if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 26561 if test -w "$cache_file"; then 26562 if test "x$cache_file" != "x/dev/null"; then 26563 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 26564$as_echo "$as_me: updating cache $cache_file" >&6;} 26565 if test ! -f "$cache_file" || test -h "$cache_file"; then 26566 cat confcache >"$cache_file" 26567 else 26568 case $cache_file in #( 26569 */* | ?:*) 26570 mv -f confcache "$cache_file"$$ && 26571 mv -f "$cache_file"$$ "$cache_file" ;; #( 26572 *) 26573 mv -f confcache "$cache_file" ;; 26574 esac 26575 fi 26576 fi 26577 else 26578 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 26579$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 26580 fi 26581fi 26582rm -f confcache 26583 26584test "x$prefix" = xNONE && prefix=$ac_default_prefix 26585# Let make expand exec_prefix. 26586test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 26587 26588DEFS=-DHAVE_CONFIG_H 26589 26590ac_libobjs= 26591ac_ltlibobjs= 26592U= 26593for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 26594 # 1. Remove the extension, and $U if already installed. 26595 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 26596 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 26597 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 26598 # will be set to the directory where LIBOBJS objects are built. 26599 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 26600 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 26601done 26602LIBOBJS=$ac_libobjs 26603 26604LTLIBOBJS=$ac_ltlibobjs 26605 26606 26607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 26608$as_echo_n "checking that generated files are newer than configure... " >&6; } 26609 if test -n "$am_sleep_pid"; then 26610 # Hide warnings about reused PIDs. 26611 wait $am_sleep_pid 2>/dev/null 26612 fi 26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 26614$as_echo "done" >&6; } 26615 if test -n "$EXEEXT"; then 26616 am__EXEEXT_TRUE= 26617 am__EXEEXT_FALSE='#' 26618else 26619 am__EXEEXT_TRUE='#' 26620 am__EXEEXT_FALSE= 26621fi 26622 26623if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 26624 as_fn_error $? "conditional \"AMDEP\" was never defined. 26625Usually this means the macro was only invoked conditionally." "$LINENO" 5 26626fi 26627if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 26628 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 26629Usually this means the macro was only invoked conditionally." "$LINENO" 5 26630fi 26631 26632if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then 26633 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined. 26634Usually this means the macro was only invoked conditionally." "$LINENO" 5 26635fi 26636if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then 26637 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined. 26638Usually this means the macro was only invoked conditionally." "$LINENO" 5 26639fi 26640if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then 26641 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined. 26642Usually this means the macro was only invoked conditionally." "$LINENO" 5 26643fi 26644if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then 26645 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined. 26646Usually this means the macro was only invoked conditionally." "$LINENO" 5 26647fi 26648if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 26649 as_fn_error $? "conditional \"PTHREADS\" was never defined. 26650Usually this means the macro was only invoked conditionally." "$LINENO" 5 26651fi 26652if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then 26653 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined. 26654Usually this means the macro was only invoked conditionally." "$LINENO" 5 26655fi 26656if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then 26657 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined. 26658Usually this means the macro was only invoked conditionally." "$LINENO" 5 26659fi 26660if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then 26661 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined. 26662Usually this means the macro was only invoked conditionally." "$LINENO" 5 26663fi 26664if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then 26665 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined. 26666Usually this means the macro was only invoked conditionally." "$LINENO" 5 26667fi 26668if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then 26669 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined. 26670Usually this means the macro was only invoked conditionally." "$LINENO" 5 26671fi 26672if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then 26673 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined. 26674Usually this means the macro was only invoked conditionally." "$LINENO" 5 26675fi 26676if test -z "${BUILD_TEST_KODDATABASE_TRUE}" && test -z "${BUILD_TEST_KODDATABASE_FALSE}"; then 26677 as_fn_error $? "conditional \"BUILD_TEST_KODDATABASE\" was never defined. 26678Usually this means the macro was only invoked conditionally." "$LINENO" 5 26679fi 26680if test -z "${BUILD_TEST_KODFILE_TRUE}" && test -z "${BUILD_TEST_KODFILE_FALSE}"; then 26681 as_fn_error $? "conditional \"BUILD_TEST_KODFILE\" was never defined. 26682Usually this means the macro was only invoked conditionally." "$LINENO" 5 26683fi 26684 26685: "${CONFIG_STATUS=./config.status}" 26686ac_write_fail=0 26687ac_clean_files_save=$ac_clean_files 26688ac_clean_files="$ac_clean_files $CONFIG_STATUS" 26689{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 26690$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 26691as_write_fail=0 26692cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 26693#! $SHELL 26694# Generated by $as_me. 26695# Run this file to recreate the current configuration. 26696# Compiler output produced by configure, useful for debugging 26697# configure, is in config.log if it exists. 26698 26699debug=false 26700ac_cs_recheck=false 26701ac_cs_silent=false 26702 26703SHELL=\${CONFIG_SHELL-$SHELL} 26704export SHELL 26705_ASEOF 26706cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 26707## -------------------- ## 26708## M4sh Initialization. ## 26709## -------------------- ## 26710 26711# Be more Bourne compatible 26712DUALCASE=1; export DUALCASE # for MKS sh 26713if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26714 emulate sh 26715 NULLCMD=: 26716 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26717 # is contrary to our usage. Disable this feature. 26718 alias -g '${1+"$@"}'='"$@"' 26719 setopt NO_GLOB_SUBST 26720else 26721 case `(set -o) 2>/dev/null` in #( 26722 *posix*) : 26723 set -o posix ;; #( 26724 *) : 26725 ;; 26726esac 26727fi 26728 26729 26730as_nl=' 26731' 26732export as_nl 26733# Printing a long string crashes Solaris 7 /usr/bin/printf. 26734as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 26735as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 26736as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 26737# Prefer a ksh shell builtin over an external printf program on Solaris, 26738# but without wasting forks for bash or zsh. 26739if test -z "$BASH_VERSION$ZSH_VERSION" \ 26740 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 26741 as_echo='print -r --' 26742 as_echo_n='print -rn --' 26743elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 26744 as_echo='printf %s\n' 26745 as_echo_n='printf %s' 26746else 26747 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 26748 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 26749 as_echo_n='/usr/ucb/echo -n' 26750 else 26751 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 26752 as_echo_n_body='eval 26753 arg=$1; 26754 case $arg in #( 26755 *"$as_nl"*) 26756 expr "X$arg" : "X\\(.*\\)$as_nl"; 26757 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 26758 esac; 26759 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 26760 ' 26761 export as_echo_n_body 26762 as_echo_n='sh -c $as_echo_n_body as_echo' 26763 fi 26764 export as_echo_body 26765 as_echo='sh -c $as_echo_body as_echo' 26766fi 26767 26768# The user is always right. 26769if test "${PATH_SEPARATOR+set}" != set; then 26770 PATH_SEPARATOR=: 26771 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 26772 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 26773 PATH_SEPARATOR=';' 26774 } 26775fi 26776 26777 26778# IFS 26779# We need space, tab and new line, in precisely that order. Quoting is 26780# there to prevent editors from complaining about space-tab. 26781# (If _AS_PATH_WALK were called with IFS unset, it would disable word 26782# splitting by setting IFS to empty value.) 26783IFS=" "" $as_nl" 26784 26785# Find who we are. Look in the path if we contain no directory separator. 26786as_myself= 26787case $0 in #(( 26788 *[\\/]* ) as_myself=$0 ;; 26789 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26790for as_dir in $PATH 26791do 26792 IFS=$as_save_IFS 26793 test -z "$as_dir" && as_dir=. 26794 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 26795 done 26796IFS=$as_save_IFS 26797 26798 ;; 26799esac 26800# We did not find ourselves, most probably we were run as `sh COMMAND' 26801# in which case we are not to be found in the path. 26802if test "x$as_myself" = x; then 26803 as_myself=$0 26804fi 26805if test ! -f "$as_myself"; then 26806 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 26807 exit 1 26808fi 26809 26810# Unset variables that we do not need and which cause bugs (e.g. in 26811# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 26812# suppresses any "Segmentation fault" message there. '((' could 26813# trigger a bug in pdksh 5.2.14. 26814for as_var in BASH_ENV ENV MAIL MAILPATH 26815do eval test x\${$as_var+set} = xset \ 26816 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 26817done 26818PS1='$ ' 26819PS2='> ' 26820PS4='+ ' 26821 26822# NLS nuisances. 26823LC_ALL=C 26824export LC_ALL 26825LANGUAGE=C 26826export LANGUAGE 26827 26828# CDPATH. 26829(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 26830 26831 26832# as_fn_error STATUS ERROR [LINENO LOG_FD] 26833# ---------------------------------------- 26834# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 26835# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 26836# script with STATUS, using 1 if that was 0. 26837as_fn_error () 26838{ 26839 as_status=$1; test $as_status -eq 0 && as_status=1 26840 if test "$4"; then 26841 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 26842 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 26843 fi 26844 $as_echo "$as_me: error: $2" >&2 26845 as_fn_exit $as_status 26846} # as_fn_error 26847 26848 26849# as_fn_set_status STATUS 26850# ----------------------- 26851# Set $? to STATUS, without forking. 26852as_fn_set_status () 26853{ 26854 return $1 26855} # as_fn_set_status 26856 26857# as_fn_exit STATUS 26858# ----------------- 26859# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 26860as_fn_exit () 26861{ 26862 set +e 26863 as_fn_set_status $1 26864 exit $1 26865} # as_fn_exit 26866 26867# as_fn_unset VAR 26868# --------------- 26869# Portably unset VAR. 26870as_fn_unset () 26871{ 26872 { eval $1=; unset $1;} 26873} 26874as_unset=as_fn_unset 26875# as_fn_append VAR VALUE 26876# ---------------------- 26877# Append the text in VALUE to the end of the definition contained in VAR. Take 26878# advantage of any shell optimizations that allow amortized linear growth over 26879# repeated appends, instead of the typical quadratic growth present in naive 26880# implementations. 26881if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 26882 eval 'as_fn_append () 26883 { 26884 eval $1+=\$2 26885 }' 26886else 26887 as_fn_append () 26888 { 26889 eval $1=\$$1\$2 26890 } 26891fi # as_fn_append 26892 26893# as_fn_arith ARG... 26894# ------------------ 26895# Perform arithmetic evaluation on the ARGs, and store the result in the 26896# global $as_val. Take advantage of shells that can avoid forks. The arguments 26897# must be portable across $(()) and expr. 26898if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 26899 eval 'as_fn_arith () 26900 { 26901 as_val=$(( $* )) 26902 }' 26903else 26904 as_fn_arith () 26905 { 26906 as_val=`expr "$@" || test $? -eq 1` 26907 } 26908fi # as_fn_arith 26909 26910 26911if expr a : '\(a\)' >/dev/null 2>&1 && 26912 test "X`expr 00001 : '.*\(...\)'`" = X001; then 26913 as_expr=expr 26914else 26915 as_expr=false 26916fi 26917 26918if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 26919 as_basename=basename 26920else 26921 as_basename=false 26922fi 26923 26924if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 26925 as_dirname=dirname 26926else 26927 as_dirname=false 26928fi 26929 26930as_me=`$as_basename -- "$0" || 26931$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 26932 X"$0" : 'X\(//\)$' \| \ 26933 X"$0" : 'X\(/\)' \| . 2>/dev/null || 26934$as_echo X/"$0" | 26935 sed '/^.*\/\([^/][^/]*\)\/*$/{ 26936 s//\1/ 26937 q 26938 } 26939 /^X\/\(\/\/\)$/{ 26940 s//\1/ 26941 q 26942 } 26943 /^X\/\(\/\).*/{ 26944 s//\1/ 26945 q 26946 } 26947 s/.*/./; q'` 26948 26949# Avoid depending upon Character Ranges. 26950as_cr_letters='abcdefghijklmnopqrstuvwxyz' 26951as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 26952as_cr_Letters=$as_cr_letters$as_cr_LETTERS 26953as_cr_digits='0123456789' 26954as_cr_alnum=$as_cr_Letters$as_cr_digits 26955 26956ECHO_C= ECHO_N= ECHO_T= 26957case `echo -n x` in #((((( 26958-n*) 26959 case `echo 'xy\c'` in 26960 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 26961 xy) ECHO_C='\c';; 26962 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 26963 ECHO_T=' ';; 26964 esac;; 26965*) 26966 ECHO_N='-n';; 26967esac 26968 26969rm -f conf$$ conf$$.exe conf$$.file 26970if test -d conf$$.dir; then 26971 rm -f conf$$.dir/conf$$.file 26972else 26973 rm -f conf$$.dir 26974 mkdir conf$$.dir 2>/dev/null 26975fi 26976if (echo >conf$$.file) 2>/dev/null; then 26977 if ln -s conf$$.file conf$$ 2>/dev/null; then 26978 as_ln_s='ln -s' 26979 # ... but there are two gotchas: 26980 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 26981 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 26982 # In both cases, we have to default to `cp -pR'. 26983 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 26984 as_ln_s='cp -pR' 26985 elif ln conf$$.file conf$$ 2>/dev/null; then 26986 as_ln_s=ln 26987 else 26988 as_ln_s='cp -pR' 26989 fi 26990else 26991 as_ln_s='cp -pR' 26992fi 26993rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 26994rmdir conf$$.dir 2>/dev/null 26995 26996 26997# as_fn_mkdir_p 26998# ------------- 26999# Create "$as_dir" as a directory, including parents if necessary. 27000as_fn_mkdir_p () 27001{ 27002 27003 case $as_dir in #( 27004 -*) as_dir=./$as_dir;; 27005 esac 27006 test -d "$as_dir" || eval $as_mkdir_p || { 27007 as_dirs= 27008 while :; do 27009 case $as_dir in #( 27010 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 27011 *) as_qdir=$as_dir;; 27012 esac 27013 as_dirs="'$as_qdir' $as_dirs" 27014 as_dir=`$as_dirname -- "$as_dir" || 27015$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27016 X"$as_dir" : 'X\(//\)[^/]' \| \ 27017 X"$as_dir" : 'X\(//\)$' \| \ 27018 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 27019$as_echo X"$as_dir" | 27020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27021 s//\1/ 27022 q 27023 } 27024 /^X\(\/\/\)[^/].*/{ 27025 s//\1/ 27026 q 27027 } 27028 /^X\(\/\/\)$/{ 27029 s//\1/ 27030 q 27031 } 27032 /^X\(\/\).*/{ 27033 s//\1/ 27034 q 27035 } 27036 s/.*/./; q'` 27037 test -d "$as_dir" && break 27038 done 27039 test -z "$as_dirs" || eval "mkdir $as_dirs" 27040 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 27041 27042 27043} # as_fn_mkdir_p 27044if mkdir -p . 2>/dev/null; then 27045 as_mkdir_p='mkdir -p "$as_dir"' 27046else 27047 test -d ./-p && rmdir ./-p 27048 as_mkdir_p=false 27049fi 27050 27051 27052# as_fn_executable_p FILE 27053# ----------------------- 27054# Test if FILE is an executable regular file. 27055as_fn_executable_p () 27056{ 27057 test -f "$1" && test -x "$1" 27058} # as_fn_executable_p 27059as_test_x='test -x' 27060as_executable_p=as_fn_executable_p 27061 27062# Sed expression to map a string onto a valid CPP name. 27063as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 27064 27065# Sed expression to map a string onto a valid variable name. 27066as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 27067 27068 27069exec 6>&1 27070## ----------------------------------- ## 27071## Main body of $CONFIG_STATUS script. ## 27072## ----------------------------------- ## 27073_ASEOF 27074test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 27075 27076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27077# Save the log message, to keep $0 and so on meaningful, and to 27078# report actual input values of CONFIG_FILES etc. instead of their 27079# values after options handling. 27080ac_log="
| 25350$as_echo "#define OPENSSL /**/" >>confdefs.h 25351 25352 case "$VER_SUFFIX" in 25353 *o*) ;; 25354 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;; 25355 esac 25356 ;; 25357esac 25358 25359NTPO_SAVED_CPPFLAGS="$CPPFLAGS" 25360CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP" 25361NTPO_SAVED_LIBS="$LIBS" 25362 25363# 25364# check for linking with -lcrypto failure, and try -lcrypto -lz. 25365# Helps m68k-atari-mint 25366# 25367case "$ntp_openssl:$ntp_openssl_from_pkg_config" in 25368 yes:no) 25369 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 25370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5 25371$as_echo_n "checking if linking with -lcrypto alone works... " >&6; } 25372if ${ntp_cv_bare_lcrypto+:} false; then : 25373 $as_echo_n "(cached) " >&6 25374else 25375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25376/* end confdefs.h. */ 25377 25378 #include "openssl/err.h" 25379 #include "openssl/evp.h" 25380 25381int 25382main () 25383{ 25384 25385 ERR_load_crypto_strings(); 25386 OpenSSL_add_all_algorithms(); 25387 25388 25389 ; 25390 return 0; 25391} 25392_ACEOF 25393if ac_fn_c_try_link "$LINENO"; then : 25394 ntp_cv_bare_lcrypto=yes 25395else 25396 ntp_cv_bare_lcrypto=no 25397 25398fi 25399rm -f core conftest.err conftest.$ac_objext \ 25400 conftest$ac_exeext conftest.$ac_ext 25401 25402fi 25403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5 25404$as_echo "$ntp_cv_bare_lcrypto" >&6; } 25405 case "$ntp_cv_bare_lcrypto" in 25406 no) 25407 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz" 25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5 25409$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; } 25410if ${ntp_cv_lcrypto_lz+:} false; then : 25411 $as_echo_n "(cached) " >&6 25412else 25413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25414/* end confdefs.h. */ 25415 25416 #include "openssl/err.h" 25417 #include "openssl/evp.h" 25418 25419int 25420main () 25421{ 25422 25423 ERR_load_crypto_strings(); 25424 OpenSSL_add_all_algorithms(); 25425 25426 25427 ; 25428 return 0; 25429} 25430_ACEOF 25431if ac_fn_c_try_link "$LINENO"; then : 25432 ntp_cv_lcrypto_lz=yes 25433else 25434 ntp_cv_lcrypto_lz=no 25435 25436fi 25437rm -f core conftest.err conftest.$ac_objext \ 25438 conftest$ac_exeext conftest.$ac_ext 25439 25440fi 25441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5 25442$as_echo "$ntp_cv_lcrypto_lz" >&6; } 25443 case "$ntp_cv_lcrypto_lz" in 25444 yes) 25445 LDADD_NTP="$LDADD_NTP -lz" 25446 esac 25447 esac 25448esac 25449 25450# 25451# Older OpenSSL headers have a number of callback prototypes inside 25452# other function prototypes which trigger copious warnings with gcc's 25453# -Wstrict-prototypes, which is included in -Wall. 25454# 25455# An example: 25456# 25457# int i2d_RSA_NET(const RSA *a, unsigned char **pp, 25458# int (*cb)(), int sgckey); 25459# ^^^^^^^^^^^ 25460# 25461# 25462# 25463openssl_triggers_warnings=unknown 25464NTPO_SAVED_CFLAGS="$CFLAGS" 25465 25466case "$ntp_openssl:$GCC" in 25467 yes:yes) 25468 CFLAGS="$CFLAGS -Werror" 25469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25470/* end confdefs.h. */ 25471 25472 25473int 25474main () 25475{ 25476 25477 /* see if -Werror breaks gcc */ 25478 25479 25480 ; 25481 return 0; 25482} 25483_ACEOF 25484if ac_fn_c_try_compile "$LINENO"; then : 25485 gcc_handles_Werror=yes 25486else 25487 gcc_handles_Werror=no 25488 25489fi 25490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25491 case "$gcc_handles_Werror" in 25492 no) 25493 # if this gcc doesn't do -Werror go ahead and use 25494 # -Wstrict-prototypes. 25495 openssl_triggers_warnings=yes 25496 ;; 25497 yes) 25498 CFLAGS="$CFLAGS -Wstrict-prototypes" 25499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25500/* end confdefs.h. */ 25501 25502 #include "openssl/asn1_mac.h" 25503 #include "openssl/bn.h" 25504 #include "openssl/err.h" 25505 #include "openssl/evp.h" 25506 #include "openssl/pem.h" 25507 #include "openssl/rand.h" 25508 #include "openssl/x509v3.h" 25509 25510int 25511main () 25512{ 25513 25514 /* empty body */ 25515 25516 25517 ; 25518 return 0; 25519} 25520_ACEOF 25521if ac_fn_c_try_compile "$LINENO"; then : 25522 openssl_triggers_warnings=no 25523else 25524 openssl_triggers_warnings=yes 25525 25526fi 25527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25528 esac 25529 case "$openssl_triggers_warnings" in 25530 yes) 25531 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes" 25532 ;; 25533 *) 25534 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 25535 esac 25536 ;; 25537 no:yes) 25538 # gcc without OpenSSL 25539 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 25540esac 25541 25542# Because we don't want -Werror for the EVP_MD_do_all_sorted check 25543CFLAGS="$NTPO_SAVED_CFLAGS" 25544 25545case "$ntp_openssl" in 25546 yes) 25547 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 25548 for ac_func in EVP_MD_do_all_sorted 25549do : 25550 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted" 25551if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then : 25552 cat >>confdefs.h <<_ACEOF 25553#define HAVE_EVP_MD_DO_ALL_SORTED 1 25554_ACEOF 25555 25556fi 25557done 25558 25559 ;; 25560esac 25561 25562 25563CPPFLAGS="$NTPO_SAVED_CPPFLAGS" 25564LIBS="$NTPO_SAVED_LIBS" 25565{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;} 25566{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;} 25567{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;} 25568{ openssl_triggers_warnings=; unset openssl_triggers_warnings;} 25569{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;} 25570 25571 25572 25573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 25574$as_echo_n "checking for struct sockaddr_storage... " >&6; } 25575if ${ntp_cv_sockaddr_storage+:} false; then : 25576 $as_echo_n "(cached) " >&6 25577else 25578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25579/* end confdefs.h. */ 25580 25581 #ifdef HAVE_SYS_TYPES_H 25582 # include <sys/types.h> 25583 #endif 25584 #ifdef HAVE_SYS_SOCKET_H 25585 # include <sys/socket.h> 25586 #endif 25587 #ifdef HAVE_NETINET_IN_H 25588 # include <netinet/in.h> 25589 #endif 25590 25591int 25592main () 25593{ 25594 25595 struct sockaddr_storage n; 25596 25597 25598 ; 25599 return 0; 25600} 25601_ACEOF 25602if ac_fn_c_try_compile "$LINENO"; then : 25603 ntp_cv_sockaddr_storage=yes 25604else 25605 ntp_cv_sockaddr_storage=no 25606 25607fi 25608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25609 25610fi 25611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5 25612$as_echo "$ntp_cv_sockaddr_storage" >&6; } 25613case "$ntp_cv_sockaddr_storage" in 25614 yes) 25615 25616$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 25617 25618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5 25619$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; } 25620if ${ntp_cv_have___ss_family+:} false; then : 25621 $as_echo_n "(cached) " >&6 25622else 25623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25624/* end confdefs.h. */ 25625 25626 #ifdef HAVE_SYS_TYPES_H 25627 # include <sys/types.h> 25628 #endif 25629 #ifdef HAVE_SYS_SOCKET_H 25630 # include <sys/socket.h> 25631 #endif 25632 #ifdef HAVE_NETINET_IN_H 25633 # include <netinet/in.h> 25634 #endif 25635 25636int 25637main () 25638{ 25639 25640 struct sockaddr_storage s; 25641 s.__ss_family = 1; 25642 25643 25644 ; 25645 return 0; 25646} 25647_ACEOF 25648if ac_fn_c_try_compile "$LINENO"; then : 25649 ntp_cv_have___ss_family=yes 25650else 25651 ntp_cv_have___ss_family=no 25652 25653fi 25654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25655 25656fi 25657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5 25658$as_echo "$ntp_cv_have___ss_family" >&6; } 25659 case "$ntp_cv_have___ss_family" in 25660 yes) 25661 25662$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 25663 25664 esac 25665 25666esac 25667 25668 25669# 25670# Look for in_port_t. 25671# 25672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5 25673$as_echo_n "checking for in_port_t... " >&6; } 25674if ${isc_cv_have_in_port_t+:} false; then : 25675 $as_echo_n "(cached) " >&6 25676else 25677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25678/* end confdefs.h. */ 25679 25680 #include <sys/types.h> 25681 #include <netinet/in.h> 25682 25683int 25684main () 25685{ 25686 25687 in_port_t port = 25; 25688 return (0); 25689 25690 25691 ; 25692 return 0; 25693} 25694_ACEOF 25695if ac_fn_c_try_compile "$LINENO"; then : 25696 isc_cv_have_in_port_t=yes 25697else 25698 isc_cv_have_in_port_t=no 25699 25700fi 25701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25702 25703fi 25704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5 25705$as_echo "$isc_cv_have_in_port_t" >&6; } 25706case "$isc_cv_have_in_port_t" in 25707 no) 25708 25709$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h 25710 25711esac 25712 25713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5 25714$as_echo_n "checking type of socklen arg for getsockname()... " >&6; } 25715if ${ntp_cv_getsockname_socklen_type+:} false; then : 25716 $as_echo_n "(cached) " >&6 25717else 25718 25719 getsockname_socklen_type_found=no 25720 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do 25721 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do 25722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25723/* end confdefs.h. */ 25724 25725 #ifdef HAVE_SYS_TYPES_H 25726 # include <sys/types.h> 25727 #endif 25728 #ifdef HAVE_SYS_SOCKET_H 25729 # include <sys/socket.h> 25730 #endif 25731 25732int 25733main () 25734{ 25735 25736 extern 25737 getsockname(int, $getsockname_arg2, 25738 $ntp_cv_getsockname_socklen_type *); 25739 25740 25741 ; 25742 return 0; 25743} 25744_ACEOF 25745if ac_fn_c_try_compile "$LINENO"; then : 25746 getsockname_socklen_type_found=yes ; break 2 25747fi 25748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25749 done 25750 done 25751 case "$getsockname_socklen_type_found" in 25752 no) 25753 ntp_cv_getsockname_socklen_type='socklen_t' 25754 esac 25755 { getsockname_arg2=; unset getsockname_arg2;} 25756 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;} 25757 25758 25759fi 25760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5 25761$as_echo "$ntp_cv_getsockname_socklen_type" >&6; } 25762 25763cat >>confdefs.h <<_ACEOF 25764#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type 25765_ACEOF 25766 25767 25768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5 25769$as_echo_n "checking struct sockaddr for sa_len... " >&6; } 25770if ${isc_cv_platform_havesalen+:} false; then : 25771 $as_echo_n "(cached) " >&6 25772else 25773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25774/* end confdefs.h. */ 25775 25776 #include <sys/types.h> 25777 #include <sys/socket.h> 25778 25779int 25780main () 25781{ 25782 25783 extern struct sockaddr *ps; 25784 return ps->sa_len; 25785 25786 25787 ; 25788 return 0; 25789} 25790_ACEOF 25791if ac_fn_c_try_compile "$LINENO"; then : 25792 isc_cv_platform_havesalen=yes 25793else 25794 isc_cv_platform_havesalen=no 25795 25796fi 25797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25798 25799fi 25800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5 25801$as_echo "$isc_cv_platform_havesalen" >&6; } 25802case "$isc_cv_platform_havesalen" in 25803 yes) 25804 25805$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h 25806 25807esac 25808 25809# Check whether --enable-ipv6 was given. 25810if test "${enable_ipv6+set}" = set; then : 25811 enableval=$enable_ipv6; 25812fi 25813 25814 25815case "$enable_ipv6" in 25816 yes|''|autodetect) 25817 case "$host" in 25818 powerpc-ibm-aix4*) 25819 ;; 25820 *) 25821 25822$as_echo "#define WANT_IPV6 1" >>confdefs.h 25823 25824 ;; 25825 esac 25826 ;; 25827 no) 25828 ;; 25829esac 25830 25831 25832case "$host" in 25833 *-*-darwin*) 25834 25835$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h 25836 25837esac 25838 25839 25840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 25841$as_echo_n "checking for IPv6 structures... " >&6; } 25842if ${isc_cv_found_ipv6+:} false; then : 25843 $as_echo_n "(cached) " >&6 25844else 25845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25846/* end confdefs.h. */ 25847 25848 #include <sys/types.h> 25849 #include <sys/socket.h> 25850 #include <netinet/in.h> 25851 25852int 25853main () 25854{ 25855 25856 struct sockaddr_in6 sin6; 25857 25858 25859 ; 25860 return 0; 25861} 25862_ACEOF 25863if ac_fn_c_try_compile "$LINENO"; then : 25864 isc_cv_found_ipv6=yes 25865else 25866 isc_cv_found_ipv6=no 25867 25868fi 25869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25870 25871fi 25872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5 25873$as_echo "$isc_cv_found_ipv6" >&6; } 25874 25875# 25876# See whether IPv6 support is provided via a Kame add-on. 25877# This is done before other IPv6 linking tests so LIBS is properly set. 25878# 25879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5 25880$as_echo_n "checking for Kame IPv6 support... " >&6; } 25881 25882# Check whether --with-kame was given. 25883if test "${with_kame+set}" = set; then : 25884 withval=$with_kame; use_kame="$withval" 25885else 25886 use_kame="no" 25887 25888fi 25889 25890case "$use_kame" in 25891 no) 25892 ;; 25893 yes) 25894 kame_path=/usr/local/v6 25895 ;; 25896 *) 25897 kame_path="$use_kame" 25898 ;; 25899esac 25900case "$use_kame" in 25901 no) 25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25903$as_echo "no" >&6; } 25904 ;; 25905 *) 25906 if test -f $kame_path/lib/libinet6.a; then 25907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5 25908$as_echo "$kame_path/lib/libinet6.a" >&6; } 25909 LIBS="-L$kame_path/lib -linet6 $LIBS" 25910 else 25911 as_fn_error $? "$kame_path/lib/libinet6.a not found. 25912 25913Please choose the proper path with the following command: 25914 25915 configure --with-kame=PATH 25916" "$LINENO" 5 25917 fi 25918 ;; 25919esac 25920 25921# 25922# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 25923# Including it on Kame-using platforms is very bad, though, because 25924# Kame uses #error against direct inclusion. So include it on only 25925# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 25926# This is done before the in6_pktinfo check because that's what 25927# netinet6/in6.h is needed for. 25928# 25929case "$host" in 25930 *-bsdi4.[01]*) 25931 25932$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h 25933 25934 isc_netinet6in6_hack="#include <netinet6/in6.h>" 25935 ;; 25936 *) 25937 isc_netinet6in6_hack="" 25938 ;; 25939esac 25940 25941# 25942# This is similar to the netinet6/in6.h issue. 25943# 25944case "$host" in 25945 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 25946 25947$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h 25948 25949 isc_netinetin6_hack="#include <netinet/in6.h>" 25950 ;; 25951 *) 25952 isc_netinetin6_hack="" 25953 ;; 25954esac 25955 25956 25957case "$isc_cv_found_ipv6" in 25958 yes) 25959 25960$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h 25961 25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5 25963$as_echo_n "checking for in6_pktinfo... " >&6; } 25964if ${isc_cv_have_in6_pktinfo+:} false; then : 25965 $as_echo_n "(cached) " >&6 25966else 25967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25968/* end confdefs.h. */ 25969 25970 #include <sys/types.h> 25971 #include <sys/socket.h> 25972 #include <netinet/in.h> 25973 $isc_netinetin6_hack 25974 $isc_netinet6in6_hack 25975 25976int 25977main () 25978{ 25979 25980 struct in6_pktinfo xyzzy; 25981 25982 25983 ; 25984 return 0; 25985} 25986_ACEOF 25987if ac_fn_c_try_compile "$LINENO"; then : 25988 isc_cv_have_in6_pktinfo=yes 25989else 25990 isc_cv_have_in6_pktinfo=no 25991 25992fi 25993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25994 25995fi 25996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5 25997$as_echo "$isc_cv_have_in6_pktinfo" >&6; } 25998 case "$isc_cv_have_in6_pktinfo" in 25999 yes) 26000 26001$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h 26002 26003 esac 26004 26005 26006 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead? 26007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5 26008$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; } 26009if ${isc_cv_have_sin6_scope_id+:} false; then : 26010 $as_echo_n "(cached) " >&6 26011else 26012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26013/* end confdefs.h. */ 26014 26015 #include <sys/types.h> 26016 #include <sys/socket.h> 26017 #include <netinet/in.h> 26018 $isc_netinetin6_hack 26019 $isc_netinet6in6_hack 26020 26021int 26022main () 26023{ 26024 26025 struct sockaddr_in6 xyzzy; 26026 xyzzy.sin6_scope_id = 0; 26027 26028 26029 ; 26030 return 0; 26031} 26032_ACEOF 26033if ac_fn_c_try_compile "$LINENO"; then : 26034 isc_cv_have_sin6_scope_id=yes 26035else 26036 isc_cv_have_sin6_scope_id=no 26037 26038fi 26039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26040 26041fi 26042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5 26043$as_echo "$isc_cv_have_sin6_scope_id" >&6; } 26044 26045 case "$isc_cv_have_sin6_scope_id" in 26046 yes) 26047 26048$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h 26049 26050 esac 26051esac 26052 26053 26054# We need this check run even without isc_cv_found_ipv6=yes 26055 26056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5 26057$as_echo_n "checking for in6addr_any... " >&6; } 26058if ${isc_cv_in6addr_any_links+:} false; then : 26059 $as_echo_n "(cached) " >&6 26060else 26061 26062 SAVED_LIBS="$LIBS" 26063 LIBS="$LDADD_LIBNTP $LIBS" 26064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26065/* end confdefs.h. */ 26066$ac_includes_default 26067 #include <sys/socket.h> 26068 #include <netinet/in.h> 26069 $isc_netinetin6_hack 26070 $isc_netinet6in6_hack 26071 26072int 26073main () 26074{ 26075 26076 printf("%x", in6addr_any.s6_addr[15]); 26077 26078 26079 ; 26080 return 0; 26081} 26082_ACEOF 26083if ac_fn_c_try_link "$LINENO"; then : 26084 isc_cv_in6addr_any_links=yes 26085else 26086 isc_cv_in6addr_any_links=no 26087 26088fi 26089rm -f core conftest.err conftest.$ac_objext \ 26090 conftest$ac_exeext conftest.$ac_ext 26091 LIBS="$SAVED_LIBS" 26092 { SAVED_LIBS=; unset SAVED_LIBS;} 26093 26094 26095fi 26096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5 26097$as_echo "$isc_cv_in6addr_any_links" >&6; } 26098 26099case "$isc_cv_in6addr_any_links" in 26100 no) 26101 26102$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h 26103 26104esac 26105 26106 26107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 26108$as_echo_n "checking for struct if_laddrconf... " >&6; } 26109if ${isc_cv_struct_if_laddrconf+:} false; then : 26110 $as_echo_n "(cached) " >&6 26111else 26112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26113/* end confdefs.h. */ 26114 26115 #include <sys/types.h> 26116 #include <net/if6.h> 26117 26118int 26119main () 26120{ 26121 26122 struct if_laddrconf a; 26123 26124 26125 ; 26126 return 0; 26127} 26128_ACEOF 26129if ac_fn_c_try_compile "$LINENO"; then : 26130 isc_cv_struct_if_laddrconf=yes 26131else 26132 isc_cv_struct_if_laddrconf=no 26133 26134fi 26135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26136 26137fi 26138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5 26139$as_echo "$isc_cv_struct_if_laddrconf" >&6; } 26140 26141case "$isc_cv_struct_if_laddrconf" in 26142 yes) 26143 26144$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h 26145 26146esac 26147 26148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 26149$as_echo_n "checking for struct if_laddrreq... " >&6; } 26150if ${isc_cv_struct_if_laddrreq+:} false; then : 26151 $as_echo_n "(cached) " >&6 26152else 26153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26154/* end confdefs.h. */ 26155 26156 #include <sys/types.h> 26157 #include <net/if6.h> 26158 26159int 26160main () 26161{ 26162 26163 struct if_laddrreq a; 26164 26165 26166 ; 26167 return 0; 26168} 26169_ACEOF 26170if ac_fn_c_try_compile "$LINENO"; then : 26171 isc_cv_struct_if_laddrreq=yes 26172else 26173 isc_cv_struct_if_laddrreq=no 26174 26175fi 26176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26177 26178fi 26179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5 26180$as_echo "$isc_cv_struct_if_laddrreq" >&6; } 26181 26182case "$isc_cv_struct_if_laddrreq" in 26183 yes) 26184 26185$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h 26186 26187esac 26188 26189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5 26190$as_echo_n "checking for multicast IP support... " >&6; } 26191if ${ntp_cv_multicast+:} false; then : 26192 $as_echo_n "(cached) " >&6 26193else 26194 26195 ntp_cv_multicast=no 26196 case "$host" in 26197 i386-sequent-sysv4) 26198 ;; 26199 *) 26200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26201/* end confdefs.h. */ 26202 26203 #ifdef HAVE_NETINET_IN_H 26204 # include <netinet/in.h> 26205 #endif 26206 26207int 26208main () 26209{ 26210 26211 struct ip_mreq ipmr; 26212 ipmr.imr_interface.s_addr = 0; 26213 26214 26215 ; 26216 return 0; 26217} 26218_ACEOF 26219if ac_fn_c_try_compile "$LINENO"; then : 26220 ntp_cv_multicast=yes 26221fi 26222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26223 ;; 26224 esac 26225 26226 26227fi 26228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5 26229$as_echo "$ntp_cv_multicast" >&6; } 26230case "$ntp_cv_multicast" in 26231 yes) 26232 26233$as_echo "#define MCAST 1" >>confdefs.h 26234 26235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5 26236$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; } 26237if ${ntp_cv_typeof_ip_multicast_loop+:} false; then : 26238 $as_echo_n "(cached) " >&6 26239else 26240 26241 case "$host" in 26242 *-*-netbsd*|*-*-*linux*) 26243 ntp_cv_typeof_ip_multicast_loop=u_int 26244 ;; 26245 *) 26246 ntp_cv_typeof_ip_multicast_loop=u_char 26247 ;; 26248 esac 26249 26250 26251fi 26252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5 26253$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; } 26254 26255cat >>confdefs.h <<_ACEOF 26256#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop 26257_ACEOF 26258 26259esac 26260 26261# Check whether --enable-getifaddrs was given. 26262if test "${enable_getifaddrs+set}" = set; then : 26263 enableval=$enable_getifaddrs; want_getifaddrs="$enableval" 26264else 26265 want_getifaddrs="yes" 26266 26267fi 26268 26269 26270case $want_getifaddrs in 26271 glibc) 26272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5 26273$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;} 26274esac 26275case $want_getifaddrs in 26276 no) 26277 ;; 26278 *) 26279 SAVED_LIBS="$LIBS" 26280 LIBS="$LDADD_LIBNTP $LIBS" 26281 for ac_func in getifaddrs 26282do : 26283 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 26284if test "x$ac_cv_func_getifaddrs" = xyes; then : 26285 cat >>confdefs.h <<_ACEOF 26286#define HAVE_GETIFADDRS 1 26287_ACEOF 26288 26289fi 26290done 26291 26292 LIBS="$SAVED_LIBS" 26293 { SAVED_LIBS=; unset SAVED_LIBS;} 26294 ;; 26295esac 26296 26297# 26298# Check for if_nametoindex() for IPv6 scoped addresses support 26299# 26300case "$host" in 26301 *-hp-hpux*) 26302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5 26303$as_echo_n "checking for library containing if_nametoindex... " >&6; } 26304if ${ac_cv_search_if_nametoindex+:} false; then : 26305 $as_echo_n "(cached) " >&6 26306else 26307 ac_func_search_save_LIBS=$LIBS 26308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26309/* end confdefs.h. */ 26310 26311/* Override any GCC internal prototype to avoid an error. 26312 Use char because int might match the return type of a GCC 26313 builtin and then its argument prototype would still apply. */ 26314#ifdef __cplusplus 26315extern "C" 26316#endif 26317char if_nametoindex (); 26318int 26319main () 26320{ 26321return if_nametoindex (); 26322 ; 26323 return 0; 26324} 26325_ACEOF 26326for ac_lib in '' ipv6; do 26327 if test -z "$ac_lib"; then 26328 ac_res="none required" 26329 else 26330 ac_res=-l$ac_lib 26331 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26332 fi 26333 if ac_fn_c_try_link "$LINENO"; then : 26334 ac_cv_search_if_nametoindex=$ac_res 26335fi 26336rm -f core conftest.err conftest.$ac_objext \ 26337 conftest$ac_exeext 26338 if ${ac_cv_search_if_nametoindex+:} false; then : 26339 break 26340fi 26341done 26342if ${ac_cv_search_if_nametoindex+:} false; then : 26343 26344else 26345 ac_cv_search_if_nametoindex=no 26346fi 26347rm conftest.$ac_ext 26348LIBS=$ac_func_search_save_LIBS 26349fi 26350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5 26351$as_echo "$ac_cv_search_if_nametoindex" >&6; } 26352ac_res=$ac_cv_search_if_nametoindex 26353if test "$ac_res" != no; then : 26354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26355 26356fi 26357 26358esac 26359SAVED_LIBS="$LIBS" 26360LIBS="$LDADD_LIBNTP $LIBS" 26361for ac_func in if_nametoindex 26362do : 26363 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 26364if test "x$ac_cv_func_if_nametoindex" = xyes; then : 26365 cat >>confdefs.h <<_ACEOF 26366#define HAVE_IF_NAMETOINDEX 1 26367_ACEOF 26368 26369fi 26370done 26371 26372LIBS="$SAVED_LIBS" 26373{ SAVED_LIBS=; unset SAVED_LIBS;} 26374case "$ac_cv_func_if_nametoindex" in 26375 yes) 26376 26377$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h 26378 26379esac 26380 26381 26382 26383### 26384 26385# Hacks 26386# these need work if we're to move libntp under sntp 26387 26388$as_echo "#define HAVE_NO_NICE 1" >>confdefs.h 26389 26390 26391$as_echo "#define HAVE_TERMIOS 1" >>confdefs.h 26392 26393 26394# Checks for library functions. 26395for ac_func in socket 26396do : 26397 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 26398if test "x$ac_cv_func_socket" = xyes; then : 26399 cat >>confdefs.h <<_ACEOF 26400#define HAVE_SOCKET 1 26401_ACEOF 26402 26403fi 26404done 26405 26406 26407 26408# We may not need have_unity 26409have_unity=false 26410# Extract the first word of "ruby", so it can be a program name with args. 26411set dummy ruby; ac_word=$2 26412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26413$as_echo_n "checking for $ac_word... " >&6; } 26414if ${ac_cv_path_PATH_RUBY+:} false; then : 26415 $as_echo_n "(cached) " >&6 26416else 26417 case $PATH_RUBY in 26418 [\\/]* | ?:[\\/]*) 26419 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path. 26420 ;; 26421 *) 26422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26423for as_dir in $PATH 26424do 26425 IFS=$as_save_IFS 26426 test -z "$as_dir" && as_dir=. 26427 for ac_exec_ext in '' $ac_executable_extensions; do 26428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26429 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext" 26430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26431 break 2 26432 fi 26433done 26434 done 26435IFS=$as_save_IFS 26436 26437 ;; 26438esac 26439fi 26440PATH_RUBY=$ac_cv_path_PATH_RUBY 26441if test -n "$PATH_RUBY"; then 26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5 26443$as_echo "$PATH_RUBY" >&6; } 26444else 26445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26446$as_echo "no" >&6; } 26447fi 26448 26449 26450case "$PATH_RUBY" in 26451 /*) 26452 have_unity=true 26453 ;; 26454 *) PATH_RUBY="false" 26455 ;; 26456esac 26457# We may not need UNITYBUILD_AVAILABLE 26458 if $have_unity; then 26459 UNITYBUILD_AVAILABLE_TRUE= 26460 UNITYBUILD_AVAILABLE_FALSE='#' 26461else 26462 UNITYBUILD_AVAILABLE_TRUE='#' 26463 UNITYBUILD_AVAILABLE_FALSE= 26464fi 26465 26466 26467 26468## HMS: if we don't find c++ we should not look for gtest. 26469#AC_PROG_CXX 26470#NTP_GOOGLETEST 26471 26472 26473case "$build" in 26474 $host) cross=0 ;; 26475 *) cross=1 ;; 26476esac 26477 26478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5 26479$as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; } 26480# Check whether --enable-problem-tests was given. 26481if test "${enable_problem_tests+set}" = set; then : 26482 enableval=$enable_problem_tests; sntp_ept=$enableval 26483else 26484 sntp_ept=yes 26485 26486fi 26487 26488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_ept" >&5 26489$as_echo "$sntp_ept" >&6; } 26490 26491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodDatabase" >&5 26492$as_echo_n "checking if we can run test-kodDatabase... " >&6; } 26493sntp_test_kodDatabase="no" 26494case "$sntp_ept:$cross:$host" in 26495 no:0:*-apple-darwin12.6.0) ;; 26496 *) sntp_test_kodDatabase="yes" ;; 26497esac 26498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodDatabase" >&5 26499$as_echo "$sntp_test_kodDatabase" >&6; } 26500 if test x$sntp_test_kodDatabase = xyes; then 26501 BUILD_TEST_KODDATABASE_TRUE= 26502 BUILD_TEST_KODDATABASE_FALSE='#' 26503else 26504 BUILD_TEST_KODDATABASE_TRUE='#' 26505 BUILD_TEST_KODDATABASE_FALSE= 26506fi 26507 26508 26509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodFile" >&5 26510$as_echo_n "checking if we can run test-kodFile... " >&6; } 26511sntp_test_kodFile="no" 26512case "$sntp_ept:$cross:$host" in 26513 no:0:*-apple-darwin12.6.0) ;; 26514 *) sntp_test_kodFile="yes" ;; 26515esac 26516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodFile" >&5 26517$as_echo "$sntp_test_kodFile" >&6; } 26518 if test x$sntp_test_kodFile = xyes; then 26519 BUILD_TEST_KODFILE_TRUE= 26520 BUILD_TEST_KODFILE_FALSE='#' 26521else 26522 BUILD_TEST_KODFILE_TRUE='#' 26523 BUILD_TEST_KODFILE_FALSE= 26524fi 26525 26526 26527 26528 26529# All libraries should be in various LIB_* variables now. 26530#LIBS= 26531# Sadly not. There is a gettext() check somewhere, and on Solaris this pulls 26532# in -lintl -lgen, outside our "scope". 26533 26534ac_config_files="$ac_config_files Makefile" 26535 26536ac_config_files="$ac_config_files include/Makefile" 26537 26538ac_config_files="$ac_config_files scripts/Makefile" 26539 26540ac_config_files="$ac_config_files tests/Makefile" 26541 26542ac_config_files="$ac_config_files tests/fileHandlingTest.h" 26543 26544ac_config_files="$ac_config_files unity/Makefile" 26545 26546 26547cat >confcache <<\_ACEOF 26548# This file is a shell script that caches the results of configure 26549# tests run on this system so they can be shared between configure 26550# scripts and configure runs, see configure's option --config-cache. 26551# It is not useful on other systems. If it contains results you don't 26552# want to keep, you may remove or edit it. 26553# 26554# config.status only pays attention to the cache file if you give it 26555# the --recheck option to rerun configure. 26556# 26557# `ac_cv_env_foo' variables (set or unset) will be overridden when 26558# loading this file, other *unset* `ac_cv_foo' will be assigned the 26559# following values. 26560 26561_ACEOF 26562 26563# The following way of writing the cache mishandles newlines in values, 26564# but we know of no workaround that is simple, portable, and efficient. 26565# So, we kill variables containing newlines. 26566# Ultrix sh set writes to stderr and can't be redirected directly, 26567# and sets the high bit in the cache file unless we assign to the vars. 26568( 26569 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 26570 eval ac_val=\$$ac_var 26571 case $ac_val in #( 26572 *${as_nl}*) 26573 case $ac_var in #( 26574 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 26575$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 26576 esac 26577 case $ac_var in #( 26578 _ | IFS | as_nl) ;; #( 26579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 26580 *) { eval $ac_var=; unset $ac_var;} ;; 26581 esac ;; 26582 esac 26583 done 26584 26585 (set) 2>&1 | 26586 case $as_nl`(ac_space=' '; set) 2>&1` in #( 26587 *${as_nl}ac_space=\ *) 26588 # `set' does not quote correctly, so add quotes: double-quote 26589 # substitution turns \\\\ into \\, and sed turns \\ into \. 26590 sed -n \ 26591 "s/'/'\\\\''/g; 26592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26593 ;; #( 26594 *) 26595 # `set' quotes correctly as required by POSIX, so do not add quotes. 26596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 26597 ;; 26598 esac | 26599 sort 26600) | 26601 sed ' 26602 /^ac_cv_env_/b end 26603 t clear 26604 :clear 26605 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 26606 t end 26607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 26608 :end' >>confcache 26609if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 26610 if test -w "$cache_file"; then 26611 if test "x$cache_file" != "x/dev/null"; then 26612 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 26613$as_echo "$as_me: updating cache $cache_file" >&6;} 26614 if test ! -f "$cache_file" || test -h "$cache_file"; then 26615 cat confcache >"$cache_file" 26616 else 26617 case $cache_file in #( 26618 */* | ?:*) 26619 mv -f confcache "$cache_file"$$ && 26620 mv -f "$cache_file"$$ "$cache_file" ;; #( 26621 *) 26622 mv -f confcache "$cache_file" ;; 26623 esac 26624 fi 26625 fi 26626 else 26627 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 26628$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 26629 fi 26630fi 26631rm -f confcache 26632 26633test "x$prefix" = xNONE && prefix=$ac_default_prefix 26634# Let make expand exec_prefix. 26635test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 26636 26637DEFS=-DHAVE_CONFIG_H 26638 26639ac_libobjs= 26640ac_ltlibobjs= 26641U= 26642for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 26643 # 1. Remove the extension, and $U if already installed. 26644 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 26645 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 26646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 26647 # will be set to the directory where LIBOBJS objects are built. 26648 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 26649 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 26650done 26651LIBOBJS=$ac_libobjs 26652 26653LTLIBOBJS=$ac_ltlibobjs 26654 26655 26656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 26657$as_echo_n "checking that generated files are newer than configure... " >&6; } 26658 if test -n "$am_sleep_pid"; then 26659 # Hide warnings about reused PIDs. 26660 wait $am_sleep_pid 2>/dev/null 26661 fi 26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 26663$as_echo "done" >&6; } 26664 if test -n "$EXEEXT"; then 26665 am__EXEEXT_TRUE= 26666 am__EXEEXT_FALSE='#' 26667else 26668 am__EXEEXT_TRUE='#' 26669 am__EXEEXT_FALSE= 26670fi 26671 26672if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 26673 as_fn_error $? "conditional \"AMDEP\" was never defined. 26674Usually this means the macro was only invoked conditionally." "$LINENO" 5 26675fi 26676if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 26677 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 26678Usually this means the macro was only invoked conditionally." "$LINENO" 5 26679fi 26680 26681if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then 26682 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined. 26683Usually this means the macro was only invoked conditionally." "$LINENO" 5 26684fi 26685if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then 26686 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined. 26687Usually this means the macro was only invoked conditionally." "$LINENO" 5 26688fi 26689if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then 26690 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined. 26691Usually this means the macro was only invoked conditionally." "$LINENO" 5 26692fi 26693if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then 26694 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined. 26695Usually this means the macro was only invoked conditionally." "$LINENO" 5 26696fi 26697if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 26698 as_fn_error $? "conditional \"PTHREADS\" was never defined. 26699Usually this means the macro was only invoked conditionally." "$LINENO" 5 26700fi 26701if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then 26702 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined. 26703Usually this means the macro was only invoked conditionally." "$LINENO" 5 26704fi 26705if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then 26706 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined. 26707Usually this means the macro was only invoked conditionally." "$LINENO" 5 26708fi 26709if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then 26710 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined. 26711Usually this means the macro was only invoked conditionally." "$LINENO" 5 26712fi 26713if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then 26714 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined. 26715Usually this means the macro was only invoked conditionally." "$LINENO" 5 26716fi 26717if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then 26718 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined. 26719Usually this means the macro was only invoked conditionally." "$LINENO" 5 26720fi 26721if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then 26722 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined. 26723Usually this means the macro was only invoked conditionally." "$LINENO" 5 26724fi 26725if test -z "${BUILD_TEST_KODDATABASE_TRUE}" && test -z "${BUILD_TEST_KODDATABASE_FALSE}"; then 26726 as_fn_error $? "conditional \"BUILD_TEST_KODDATABASE\" was never defined. 26727Usually this means the macro was only invoked conditionally." "$LINENO" 5 26728fi 26729if test -z "${BUILD_TEST_KODFILE_TRUE}" && test -z "${BUILD_TEST_KODFILE_FALSE}"; then 26730 as_fn_error $? "conditional \"BUILD_TEST_KODFILE\" was never defined. 26731Usually this means the macro was only invoked conditionally." "$LINENO" 5 26732fi 26733 26734: "${CONFIG_STATUS=./config.status}" 26735ac_write_fail=0 26736ac_clean_files_save=$ac_clean_files 26737ac_clean_files="$ac_clean_files $CONFIG_STATUS" 26738{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 26739$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 26740as_write_fail=0 26741cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 26742#! $SHELL 26743# Generated by $as_me. 26744# Run this file to recreate the current configuration. 26745# Compiler output produced by configure, useful for debugging 26746# configure, is in config.log if it exists. 26747 26748debug=false 26749ac_cs_recheck=false 26750ac_cs_silent=false 26751 26752SHELL=\${CONFIG_SHELL-$SHELL} 26753export SHELL 26754_ASEOF 26755cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 26756## -------------------- ## 26757## M4sh Initialization. ## 26758## -------------------- ## 26759 26760# Be more Bourne compatible 26761DUALCASE=1; export DUALCASE # for MKS sh 26762if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26763 emulate sh 26764 NULLCMD=: 26765 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26766 # is contrary to our usage. Disable this feature. 26767 alias -g '${1+"$@"}'='"$@"' 26768 setopt NO_GLOB_SUBST 26769else 26770 case `(set -o) 2>/dev/null` in #( 26771 *posix*) : 26772 set -o posix ;; #( 26773 *) : 26774 ;; 26775esac 26776fi 26777 26778 26779as_nl=' 26780' 26781export as_nl 26782# Printing a long string crashes Solaris 7 /usr/bin/printf. 26783as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 26784as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 26785as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 26786# Prefer a ksh shell builtin over an external printf program on Solaris, 26787# but without wasting forks for bash or zsh. 26788if test -z "$BASH_VERSION$ZSH_VERSION" \ 26789 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 26790 as_echo='print -r --' 26791 as_echo_n='print -rn --' 26792elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 26793 as_echo='printf %s\n' 26794 as_echo_n='printf %s' 26795else 26796 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 26797 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 26798 as_echo_n='/usr/ucb/echo -n' 26799 else 26800 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 26801 as_echo_n_body='eval 26802 arg=$1; 26803 case $arg in #( 26804 *"$as_nl"*) 26805 expr "X$arg" : "X\\(.*\\)$as_nl"; 26806 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 26807 esac; 26808 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 26809 ' 26810 export as_echo_n_body 26811 as_echo_n='sh -c $as_echo_n_body as_echo' 26812 fi 26813 export as_echo_body 26814 as_echo='sh -c $as_echo_body as_echo' 26815fi 26816 26817# The user is always right. 26818if test "${PATH_SEPARATOR+set}" != set; then 26819 PATH_SEPARATOR=: 26820 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 26821 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 26822 PATH_SEPARATOR=';' 26823 } 26824fi 26825 26826 26827# IFS 26828# We need space, tab and new line, in precisely that order. Quoting is 26829# there to prevent editors from complaining about space-tab. 26830# (If _AS_PATH_WALK were called with IFS unset, it would disable word 26831# splitting by setting IFS to empty value.) 26832IFS=" "" $as_nl" 26833 26834# Find who we are. Look in the path if we contain no directory separator. 26835as_myself= 26836case $0 in #(( 26837 *[\\/]* ) as_myself=$0 ;; 26838 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26839for as_dir in $PATH 26840do 26841 IFS=$as_save_IFS 26842 test -z "$as_dir" && as_dir=. 26843 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 26844 done 26845IFS=$as_save_IFS 26846 26847 ;; 26848esac 26849# We did not find ourselves, most probably we were run as `sh COMMAND' 26850# in which case we are not to be found in the path. 26851if test "x$as_myself" = x; then 26852 as_myself=$0 26853fi 26854if test ! -f "$as_myself"; then 26855 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 26856 exit 1 26857fi 26858 26859# Unset variables that we do not need and which cause bugs (e.g. in 26860# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 26861# suppresses any "Segmentation fault" message there. '((' could 26862# trigger a bug in pdksh 5.2.14. 26863for as_var in BASH_ENV ENV MAIL MAILPATH 26864do eval test x\${$as_var+set} = xset \ 26865 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 26866done 26867PS1='$ ' 26868PS2='> ' 26869PS4='+ ' 26870 26871# NLS nuisances. 26872LC_ALL=C 26873export LC_ALL 26874LANGUAGE=C 26875export LANGUAGE 26876 26877# CDPATH. 26878(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 26879 26880 26881# as_fn_error STATUS ERROR [LINENO LOG_FD] 26882# ---------------------------------------- 26883# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 26884# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 26885# script with STATUS, using 1 if that was 0. 26886as_fn_error () 26887{ 26888 as_status=$1; test $as_status -eq 0 && as_status=1 26889 if test "$4"; then 26890 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 26891 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 26892 fi 26893 $as_echo "$as_me: error: $2" >&2 26894 as_fn_exit $as_status 26895} # as_fn_error 26896 26897 26898# as_fn_set_status STATUS 26899# ----------------------- 26900# Set $? to STATUS, without forking. 26901as_fn_set_status () 26902{ 26903 return $1 26904} # as_fn_set_status 26905 26906# as_fn_exit STATUS 26907# ----------------- 26908# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 26909as_fn_exit () 26910{ 26911 set +e 26912 as_fn_set_status $1 26913 exit $1 26914} # as_fn_exit 26915 26916# as_fn_unset VAR 26917# --------------- 26918# Portably unset VAR. 26919as_fn_unset () 26920{ 26921 { eval $1=; unset $1;} 26922} 26923as_unset=as_fn_unset 26924# as_fn_append VAR VALUE 26925# ---------------------- 26926# Append the text in VALUE to the end of the definition contained in VAR. Take 26927# advantage of any shell optimizations that allow amortized linear growth over 26928# repeated appends, instead of the typical quadratic growth present in naive 26929# implementations. 26930if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 26931 eval 'as_fn_append () 26932 { 26933 eval $1+=\$2 26934 }' 26935else 26936 as_fn_append () 26937 { 26938 eval $1=\$$1\$2 26939 } 26940fi # as_fn_append 26941 26942# as_fn_arith ARG... 26943# ------------------ 26944# Perform arithmetic evaluation on the ARGs, and store the result in the 26945# global $as_val. Take advantage of shells that can avoid forks. The arguments 26946# must be portable across $(()) and expr. 26947if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 26948 eval 'as_fn_arith () 26949 { 26950 as_val=$(( $* )) 26951 }' 26952else 26953 as_fn_arith () 26954 { 26955 as_val=`expr "$@" || test $? -eq 1` 26956 } 26957fi # as_fn_arith 26958 26959 26960if expr a : '\(a\)' >/dev/null 2>&1 && 26961 test "X`expr 00001 : '.*\(...\)'`" = X001; then 26962 as_expr=expr 26963else 26964 as_expr=false 26965fi 26966 26967if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 26968 as_basename=basename 26969else 26970 as_basename=false 26971fi 26972 26973if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 26974 as_dirname=dirname 26975else 26976 as_dirname=false 26977fi 26978 26979as_me=`$as_basename -- "$0" || 26980$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 26981 X"$0" : 'X\(//\)$' \| \ 26982 X"$0" : 'X\(/\)' \| . 2>/dev/null || 26983$as_echo X/"$0" | 26984 sed '/^.*\/\([^/][^/]*\)\/*$/{ 26985 s//\1/ 26986 q 26987 } 26988 /^X\/\(\/\/\)$/{ 26989 s//\1/ 26990 q 26991 } 26992 /^X\/\(\/\).*/{ 26993 s//\1/ 26994 q 26995 } 26996 s/.*/./; q'` 26997 26998# Avoid depending upon Character Ranges. 26999as_cr_letters='abcdefghijklmnopqrstuvwxyz' 27000as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 27001as_cr_Letters=$as_cr_letters$as_cr_LETTERS 27002as_cr_digits='0123456789' 27003as_cr_alnum=$as_cr_Letters$as_cr_digits 27004 27005ECHO_C= ECHO_N= ECHO_T= 27006case `echo -n x` in #((((( 27007-n*) 27008 case `echo 'xy\c'` in 27009 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 27010 xy) ECHO_C='\c';; 27011 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 27012 ECHO_T=' ';; 27013 esac;; 27014*) 27015 ECHO_N='-n';; 27016esac 27017 27018rm -f conf$$ conf$$.exe conf$$.file 27019if test -d conf$$.dir; then 27020 rm -f conf$$.dir/conf$$.file 27021else 27022 rm -f conf$$.dir 27023 mkdir conf$$.dir 2>/dev/null 27024fi 27025if (echo >conf$$.file) 2>/dev/null; then 27026 if ln -s conf$$.file conf$$ 2>/dev/null; then 27027 as_ln_s='ln -s' 27028 # ... but there are two gotchas: 27029 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 27030 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 27031 # In both cases, we have to default to `cp -pR'. 27032 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 27033 as_ln_s='cp -pR' 27034 elif ln conf$$.file conf$$ 2>/dev/null; then 27035 as_ln_s=ln 27036 else 27037 as_ln_s='cp -pR' 27038 fi 27039else 27040 as_ln_s='cp -pR' 27041fi 27042rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 27043rmdir conf$$.dir 2>/dev/null 27044 27045 27046# as_fn_mkdir_p 27047# ------------- 27048# Create "$as_dir" as a directory, including parents if necessary. 27049as_fn_mkdir_p () 27050{ 27051 27052 case $as_dir in #( 27053 -*) as_dir=./$as_dir;; 27054 esac 27055 test -d "$as_dir" || eval $as_mkdir_p || { 27056 as_dirs= 27057 while :; do 27058 case $as_dir in #( 27059 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 27060 *) as_qdir=$as_dir;; 27061 esac 27062 as_dirs="'$as_qdir' $as_dirs" 27063 as_dir=`$as_dirname -- "$as_dir" || 27064$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27065 X"$as_dir" : 'X\(//\)[^/]' \| \ 27066 X"$as_dir" : 'X\(//\)$' \| \ 27067 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 27068$as_echo X"$as_dir" | 27069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27070 s//\1/ 27071 q 27072 } 27073 /^X\(\/\/\)[^/].*/{ 27074 s//\1/ 27075 q 27076 } 27077 /^X\(\/\/\)$/{ 27078 s//\1/ 27079 q 27080 } 27081 /^X\(\/\).*/{ 27082 s//\1/ 27083 q 27084 } 27085 s/.*/./; q'` 27086 test -d "$as_dir" && break 27087 done 27088 test -z "$as_dirs" || eval "mkdir $as_dirs" 27089 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 27090 27091 27092} # as_fn_mkdir_p 27093if mkdir -p . 2>/dev/null; then 27094 as_mkdir_p='mkdir -p "$as_dir"' 27095else 27096 test -d ./-p && rmdir ./-p 27097 as_mkdir_p=false 27098fi 27099 27100 27101# as_fn_executable_p FILE 27102# ----------------------- 27103# Test if FILE is an executable regular file. 27104as_fn_executable_p () 27105{ 27106 test -f "$1" && test -x "$1" 27107} # as_fn_executable_p 27108as_test_x='test -x' 27109as_executable_p=as_fn_executable_p 27110 27111# Sed expression to map a string onto a valid CPP name. 27112as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 27113 27114# Sed expression to map a string onto a valid variable name. 27115as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 27116 27117 27118exec 6>&1 27119## ----------------------------------- ## 27120## Main body of $CONFIG_STATUS script. ## 27121## ----------------------------------- ## 27122_ASEOF 27123test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 27124 27125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27126# Save the log message, to keep $0 and so on meaningful, and to 27127# report actual input values of CONFIG_FILES etc. instead of their 27128# values after options handling. 27129ac_log="
|
27081This file was extended by sntp $as_me 4.2.8p11, which was
| 27130This file was extended by sntp $as_me 4.2.8p12, which was
|
27082generated by GNU Autoconf 2.69. Invocation command line was 27083 27084 CONFIG_FILES = $CONFIG_FILES 27085 CONFIG_HEADERS = $CONFIG_HEADERS 27086 CONFIG_LINKS = $CONFIG_LINKS 27087 CONFIG_COMMANDS = $CONFIG_COMMANDS 27088 $ $0 $@ 27089 27090on `(hostname || uname -n) 2>/dev/null | sed 1q` 27091" 27092 27093_ACEOF 27094 27095case $ac_config_files in *" 27096"*) set x $ac_config_files; shift; ac_config_files=$*;; 27097esac 27098 27099case $ac_config_headers in *" 27100"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 27101esac 27102 27103 27104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27105# Files that config.status was made for. 27106config_files="$ac_config_files" 27107config_headers="$ac_config_headers" 27108config_commands="$ac_config_commands" 27109 27110_ACEOF 27111 27112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27113ac_cs_usage="\ 27114\`$as_me' instantiates files and other configuration actions 27115from templates according to the current configuration. Unless the files 27116and actions are specified as TAGs, all are instantiated by default. 27117 27118Usage: $0 [OPTION]... [TAG]... 27119 27120 -h, --help print this help, then exit 27121 -V, --version print version number and configuration settings, then exit 27122 --config print configuration, then exit 27123 -q, --quiet, --silent 27124 do not print progress messages 27125 -d, --debug don't remove temporary files 27126 --recheck update $as_me by reconfiguring in the same conditions 27127 --file=FILE[:TEMPLATE] 27128 instantiate the configuration file FILE 27129 --header=FILE[:TEMPLATE] 27130 instantiate the configuration header FILE 27131 27132Configuration files: 27133$config_files 27134 27135Configuration headers: 27136$config_headers 27137 27138Configuration commands: 27139$config_commands 27140 27141Report bugs to <http://bugs.ntp.org./>. 27142sntp home page: <http://www.ntp.org./>." 27143 27144_ACEOF 27145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27146ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 27147ac_cs_version="\\
| 27131generated by GNU Autoconf 2.69. Invocation command line was 27132 27133 CONFIG_FILES = $CONFIG_FILES 27134 CONFIG_HEADERS = $CONFIG_HEADERS 27135 CONFIG_LINKS = $CONFIG_LINKS 27136 CONFIG_COMMANDS = $CONFIG_COMMANDS 27137 $ $0 $@ 27138 27139on `(hostname || uname -n) 2>/dev/null | sed 1q` 27140" 27141 27142_ACEOF 27143 27144case $ac_config_files in *" 27145"*) set x $ac_config_files; shift; ac_config_files=$*;; 27146esac 27147 27148case $ac_config_headers in *" 27149"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 27150esac 27151 27152 27153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27154# Files that config.status was made for. 27155config_files="$ac_config_files" 27156config_headers="$ac_config_headers" 27157config_commands="$ac_config_commands" 27158 27159_ACEOF 27160 27161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27162ac_cs_usage="\ 27163\`$as_me' instantiates files and other configuration actions 27164from templates according to the current configuration. Unless the files 27165and actions are specified as TAGs, all are instantiated by default. 27166 27167Usage: $0 [OPTION]... [TAG]... 27168 27169 -h, --help print this help, then exit 27170 -V, --version print version number and configuration settings, then exit 27171 --config print configuration, then exit 27172 -q, --quiet, --silent 27173 do not print progress messages 27174 -d, --debug don't remove temporary files 27175 --recheck update $as_me by reconfiguring in the same conditions 27176 --file=FILE[:TEMPLATE] 27177 instantiate the configuration file FILE 27178 --header=FILE[:TEMPLATE] 27179 instantiate the configuration header FILE 27180 27181Configuration files: 27182$config_files 27183 27184Configuration headers: 27185$config_headers 27186 27187Configuration commands: 27188$config_commands 27189 27190Report bugs to <http://bugs.ntp.org./>. 27191sntp home page: <http://www.ntp.org./>." 27192 27193_ACEOF 27194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27195ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 27196ac_cs_version="\\
|
27148sntp config.status 4.2.8p11
| 27197sntp config.status 4.2.8p12
|
27149configured by $0, generated by GNU Autoconf 2.69, 27150 with options \\"\$ac_cs_config\\" 27151 27152Copyright (C) 2012 Free Software Foundation, Inc. 27153This config.status script is free software; the Free Software Foundation 27154gives unlimited permission to copy, distribute and modify it." 27155 27156ac_pwd='$ac_pwd' 27157srcdir='$srcdir' 27158INSTALL='$INSTALL' 27159MKDIR_P='$MKDIR_P' 27160AWK='$AWK' 27161test -n "\$AWK" || AWK=awk 27162_ACEOF 27163 27164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27165# The default lists apply if the user does not specify any file. 27166ac_need_defaults=: 27167while test $# != 0 27168do 27169 case $1 in 27170 --*=?*) 27171 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27172 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 27173 ac_shift=: 27174 ;; 27175 --*=) 27176 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27177 ac_optarg= 27178 ac_shift=: 27179 ;; 27180 *) 27181 ac_option=$1 27182 ac_optarg=$2 27183 ac_shift=shift 27184 ;; 27185 esac 27186 27187 case $ac_option in 27188 # Handling of the options. 27189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 27190 ac_cs_recheck=: ;; 27191 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 27192 $as_echo "$ac_cs_version"; exit ;; 27193 --config | --confi | --conf | --con | --co | --c ) 27194 $as_echo "$ac_cs_config"; exit ;; 27195 --debug | --debu | --deb | --de | --d | -d ) 27196 debug=: ;; 27197 --file | --fil | --fi | --f ) 27198 $ac_shift 27199 case $ac_optarg in 27200 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27201 '') as_fn_error $? "missing file argument" ;; 27202 esac 27203 as_fn_append CONFIG_FILES " '$ac_optarg'" 27204 ac_need_defaults=false;; 27205 --header | --heade | --head | --hea ) 27206 $ac_shift 27207 case $ac_optarg in 27208 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27209 esac 27210 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 27211 ac_need_defaults=false;; 27212 --he | --h) 27213 # Conflict between --help and --header 27214 as_fn_error $? "ambiguous option: \`$1' 27215Try \`$0 --help' for more information.";; 27216 --help | --hel | -h ) 27217 $as_echo "$ac_cs_usage"; exit ;; 27218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 27219 | -silent | --silent | --silen | --sile | --sil | --si | --s) 27220 ac_cs_silent=: ;; 27221 27222 # This is an error. 27223 -*) as_fn_error $? "unrecognized option: \`$1' 27224Try \`$0 --help' for more information." ;; 27225 27226 *) as_fn_append ac_config_targets " $1" 27227 ac_need_defaults=false ;; 27228 27229 esac 27230 shift 27231done 27232 27233ac_configure_extra_args= 27234 27235if $ac_cs_silent; then 27236 exec 6>/dev/null 27237 ac_configure_extra_args="$ac_configure_extra_args --silent" 27238fi 27239 27240_ACEOF 27241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27242if \$ac_cs_recheck; then 27243 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 27244 shift 27245 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 27246 CONFIG_SHELL='$SHELL' 27247 export CONFIG_SHELL 27248 exec "\$@" 27249fi 27250 27251_ACEOF 27252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27253exec 5>>config.log 27254{ 27255 echo 27256 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 27257## Running $as_me. ## 27258_ASBOX 27259 $as_echo "$ac_log" 27260} >&5 27261 27262_ACEOF 27263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27264# 27265# INIT-COMMANDS 27266# 27267AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 27268 27269 27270# The HP-UX ksh and POSIX shell print the target directory to stdout 27271# if CDPATH is set. 27272(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 27273 27274sed_quote_subst='$sed_quote_subst' 27275double_quote_subst='$double_quote_subst' 27276delay_variable_subst='$delay_variable_subst' 27277SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 27278Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 27279GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 27280EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 27281FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 27282SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 27283ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 27284LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 27285enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 27286macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 27287macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 27288enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 27289pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 27290enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 27291shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 27292PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 27293host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 27294host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 27295host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 27296build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 27297build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 27298build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 27299NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 27300LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 27301max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 27302ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 27303exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 27304lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 27305lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 27306lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 27307lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 27308lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 27309reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 27310reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 27311OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 27312deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 27313file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 27314file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 27315want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 27316DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 27317sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 27318AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 27319AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 27320archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 27321STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 27322RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 27323old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 27324old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 27325old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 27326lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 27327CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 27328CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 27329compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 27330GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 27331lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 27332lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 27333lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 27334lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 27335lt_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"`' 27336lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 27337nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 27338lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 27339lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 27340objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 27341MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 27342lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 27343lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 27344lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 27345lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 27346lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 27347need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 27348MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 27349DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 27350NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 27351LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 27352OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 27353OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 27354libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 27355shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 27356extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 27357archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 27358enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 27359export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 27360whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 27361compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 27362old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 27363old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 27364archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 27365archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 27366module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 27367module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 27368with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 27369allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 27370no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 27371hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 27372hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 27373hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 27374hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 27375hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 27376hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 27377hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 27378inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 27379link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 27380always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 27381export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 27382exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 27383include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 27384prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 27385postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 27386file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 27387variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 27388need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 27389need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 27390version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 27391runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 27392shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 27393shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 27394libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 27395library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 27396soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 27397install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 27398postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 27399postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 27400finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 27401finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 27402hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 27403sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 27404configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 27405configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 27406hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 27407enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 27408enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 27409enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 27410old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 27411striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 27412 27413LTCC='$LTCC' 27414LTCFLAGS='$LTCFLAGS' 27415compiler='$compiler_DEFAULT' 27416 27417# A function that is used when there is no print builtin or printf. 27418func_fallback_echo () 27419{ 27420 eval 'cat <<_LTECHO_EOF 27421\$1 27422_LTECHO_EOF' 27423} 27424 27425# Quote evaled strings. 27426for var in SED \ 27427GREP \ 27428EGREP \ 27429FGREP \ 27430SHELL \ 27431ECHO \ 27432LD \ 27433PATH_SEPARATOR \ 27434NM \ 27435LN_S \ 27436lt_SP2NL \ 27437lt_NL2SP \ 27438reload_flag \ 27439OBJDUMP \ 27440deplibs_check_method \ 27441file_magic_cmd \ 27442file_magic_glob \ 27443want_nocaseglob \ 27444DLLTOOL \ 27445sharedlib_from_linklib_cmd \ 27446AR \ 27447AR_FLAGS \ 27448archiver_list_spec \ 27449STRIP \ 27450RANLIB \ 27451CC \ 27452CFLAGS \ 27453compiler \ 27454lt_cv_sys_global_symbol_pipe \ 27455lt_cv_sys_global_symbol_to_cdecl \ 27456lt_cv_sys_global_symbol_to_import \ 27457lt_cv_sys_global_symbol_to_c_name_address \ 27458lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 27459lt_cv_nm_interface \ 27460nm_file_list_spec \ 27461lt_cv_truncate_bin \ 27462lt_prog_compiler_no_builtin_flag \ 27463lt_prog_compiler_pic \ 27464lt_prog_compiler_wl \ 27465lt_prog_compiler_static \ 27466lt_cv_prog_compiler_c_o \ 27467need_locks \ 27468MANIFEST_TOOL \ 27469DSYMUTIL \ 27470NMEDIT \ 27471LIPO \ 27472OTOOL \ 27473OTOOL64 \ 27474shrext_cmds \ 27475export_dynamic_flag_spec \ 27476whole_archive_flag_spec \ 27477compiler_needs_object \ 27478with_gnu_ld \ 27479allow_undefined_flag \ 27480no_undefined_flag \ 27481hardcode_libdir_flag_spec \ 27482hardcode_libdir_separator \ 27483exclude_expsyms \ 27484include_expsyms \ 27485file_list_spec \ 27486variables_saved_for_relink \ 27487libname_spec \ 27488library_names_spec \ 27489soname_spec \ 27490install_override_mode \ 27491finish_eval \ 27492old_striplib \ 27493striplib; do 27494 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 27495 *[\\\\\\\`\\"\\\$]*) 27496 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 27497 ;; 27498 *) 27499 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 27500 ;; 27501 esac 27502done 27503 27504# Double-quote double-evaled strings. 27505for var in reload_cmds \ 27506old_postinstall_cmds \ 27507old_postuninstall_cmds \ 27508old_archive_cmds \ 27509extract_expsyms_cmds \ 27510old_archive_from_new_cmds \ 27511old_archive_from_expsyms_cmds \ 27512archive_cmds \ 27513archive_expsym_cmds \ 27514module_cmds \ 27515module_expsym_cmds \ 27516export_symbols_cmds \ 27517prelink_cmds \ 27518postlink_cmds \ 27519postinstall_cmds \ 27520postuninstall_cmds \ 27521finish_cmds \ 27522sys_lib_search_path_spec \ 27523configure_time_dlsearch_path \ 27524configure_time_lt_sys_library_path; do 27525 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 27526 *[\\\\\\\`\\"\\\$]*) 27527 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 27528 ;; 27529 *) 27530 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 27531 ;; 27532 esac 27533done 27534 27535ac_aux_dir='$ac_aux_dir' 27536 27537# See if we are running on zsh, and set the options that allow our 27538# commands through without removal of \ escapes INIT. 27539if test -n "\${ZSH_VERSION+set}"; then 27540 setopt NO_GLOB_SUBST 27541fi 27542 27543 27544 PACKAGE='$PACKAGE' 27545 VERSION='$VERSION' 27546 RM='$RM' 27547 ofile='$ofile' 27548 27549 27550 27551 27552_ACEOF 27553 27554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27555 27556# Handling of arguments. 27557for ac_config_target in $ac_config_targets 27558do 27559 case $ac_config_target in 27560 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 27561 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 27562 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 27563 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;; 27564 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 27565 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 27566 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 27567 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 27568 "tests/fileHandlingTest.h") CONFIG_FILES="$CONFIG_FILES tests/fileHandlingTest.h" ;; 27569 "unity/Makefile") CONFIG_FILES="$CONFIG_FILES unity/Makefile" ;; 27570 27571 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 27572 esac 27573done 27574 27575 27576# If the user did not use the arguments to specify the items to instantiate, 27577# then the envvar interface is used. Set only those that are not. 27578# We use the long form for the default assignment because of an extremely 27579# bizarre bug on SunOS 4.1.3. 27580if $ac_need_defaults; then 27581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 27582 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 27583 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 27584fi 27585 27586# Have a temporary directory for convenience. Make it in the build tree 27587# simply because there is no reason against having it here, and in addition, 27588# creating and moving files from /tmp can sometimes cause problems. 27589# Hook for its removal unless debugging. 27590# Note that there is a small window in which the directory will not be cleaned: 27591# after its creation but before its name has been assigned to `$tmp'. 27592$debug || 27593{ 27594 tmp= ac_tmp= 27595 trap 'exit_status=$? 27596 : "${ac_tmp:=$tmp}" 27597 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 27598' 0 27599 trap 'as_fn_exit 1' 1 2 13 15 27600} 27601# Create a (secure) tmp directory for tmp files. 27602 27603{ 27604 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 27605 test -d "$tmp" 27606} || 27607{ 27608 tmp=./conf$$-$RANDOM 27609 (umask 077 && mkdir "$tmp") 27610} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 27611ac_tmp=$tmp 27612 27613# Set up the scripts for CONFIG_FILES section. 27614# No need to generate them if there are no CONFIG_FILES. 27615# This happens for instance with `./config.status config.h'. 27616if test -n "$CONFIG_FILES"; then 27617 27618 27619ac_cr=`echo X | tr X '\015'` 27620# On cygwin, bash can eat \r inside `` if the user requested igncr. 27621# But we know of no other shell where ac_cr would be empty at this 27622# point, so we can use a bashism as a fallback. 27623if test "x$ac_cr" = x; then 27624 eval ac_cr=\$\'\\r\' 27625fi 27626ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 27627if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 27628 ac_cs_awk_cr='\\r' 27629else 27630 ac_cs_awk_cr=$ac_cr 27631fi 27632 27633echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 27634_ACEOF 27635 27636 27637{ 27638 echo "cat >conf$$subs.awk <<_ACEOF" && 27639 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 27640 echo "_ACEOF" 27641} >conf$$subs.sh || 27642 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 27643ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 27644ac_delim='%!_!# ' 27645for ac_last_try in false false false false false :; do 27646 . ./conf$$subs.sh || 27647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 27648 27649 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 27650 if test $ac_delim_n = $ac_delim_num; then 27651 break 27652 elif $ac_last_try; then 27653 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 27654 else 27655 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27656 fi 27657done 27658rm -f conf$$subs.sh 27659 27660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27661cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 27662_ACEOF 27663sed -n ' 27664h 27665s/^/S["/; s/!.*/"]=/ 27666p 27667g 27668s/^[^!]*!// 27669:repl 27670t repl 27671s/'"$ac_delim"'$// 27672t delim 27673:nl 27674h 27675s/\(.\{148\}\)..*/\1/ 27676t more1 27677s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 27678p 27679n 27680b repl 27681:more1 27682s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 27683p 27684g 27685s/.\{148\}// 27686t nl 27687:delim 27688h 27689s/\(.\{148\}\)..*/\1/ 27690t more2 27691s/["\\]/\\&/g; s/^/"/; s/$/"/ 27692p 27693b 27694:more2 27695s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 27696p 27697g 27698s/.\{148\}// 27699t delim 27700' <conf$$subs.awk | sed ' 27701/^[^""]/{ 27702 N 27703 s/\n// 27704} 27705' >>$CONFIG_STATUS || ac_write_fail=1 27706rm -f conf$$subs.awk 27707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27708_ACAWK 27709cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 27710 for (key in S) S_is_set[key] = 1 27711 FS = "" 27712 27713} 27714{ 27715 line = $ 0 27716 nfields = split(line, field, "@") 27717 substed = 0 27718 len = length(field[1]) 27719 for (i = 2; i < nfields; i++) { 27720 key = field[i] 27721 keylen = length(key) 27722 if (S_is_set[key]) { 27723 value = S[key] 27724 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 27725 len += length(value) + length(field[++i]) 27726 substed = 1 27727 } else 27728 len += 1 + keylen 27729 } 27730 27731 print line 27732} 27733 27734_ACAWK 27735_ACEOF 27736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27737if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 27738 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 27739else 27740 cat 27741fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 27742 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 27743_ACEOF 27744 27745# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 27746# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 27747# trailing colons and then remove the whole line if VPATH becomes empty 27748# (actually we leave an empty line to preserve line numbers). 27749if test "x$srcdir" = x.; then 27750 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 27751h 27752s/// 27753s/^/:/ 27754s/[ ]*$/:/ 27755s/:\$(srcdir):/:/g 27756s/:\${srcdir}:/:/g 27757s/:@srcdir@:/:/g 27758s/^:*// 27759s/:*$// 27760x 27761s/\(=[ ]*\).*/\1/ 27762G 27763s/\n// 27764s/^[^=]*=[ ]*$// 27765}' 27766fi 27767 27768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27769fi # test -n "$CONFIG_FILES" 27770 27771# Set up the scripts for CONFIG_HEADERS section. 27772# No need to generate them if there are no CONFIG_HEADERS. 27773# This happens for instance with `./config.status Makefile'. 27774if test -n "$CONFIG_HEADERS"; then 27775cat >"$ac_tmp/defines.awk" <<\_ACAWK || 27776BEGIN { 27777_ACEOF 27778 27779# Transform confdefs.h into an awk script `defines.awk', embedded as 27780# here-document in config.status, that substitutes the proper values into 27781# config.h.in to produce config.h. 27782 27783# Create a delimiter string that does not exist in confdefs.h, to ease 27784# handling of long lines. 27785ac_delim='%!_!# ' 27786for ac_last_try in false false :; do 27787 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 27788 if test -z "$ac_tt"; then 27789 break 27790 elif $ac_last_try; then 27791 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 27792 else 27793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27794 fi 27795done 27796 27797# For the awk script, D is an array of macro values keyed by name, 27798# likewise P contains macro parameters if any. Preserve backslash 27799# newline sequences. 27800 27801ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 27802sed -n ' 27803s/.\{148\}/&'"$ac_delim"'/g 27804t rset 27805:rset 27806s/^[ ]*#[ ]*define[ ][ ]*/ / 27807t def 27808d 27809:def 27810s/\\$// 27811t bsnl 27812s/["\\]/\\&/g 27813s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 27814D["\1"]=" \3"/p 27815s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 27816d 27817:bsnl 27818s/["\\]/\\&/g 27819s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 27820D["\1"]=" \3\\\\\\n"\\/p 27821t cont 27822s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 27823t cont 27824d 27825:cont 27826n 27827s/.\{148\}/&'"$ac_delim"'/g 27828t clear 27829:clear 27830s/\\$// 27831t bsnlc 27832s/["\\]/\\&/g; s/^/"/; s/$/"/p 27833d 27834:bsnlc 27835s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 27836b cont 27837' <confdefs.h | sed ' 27838s/'"$ac_delim"'/"\\\ 27839"/g' >>$CONFIG_STATUS || ac_write_fail=1 27840 27841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27842 for (key in D) D_is_set[key] = 1 27843 FS = "" 27844} 27845/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 27846 line = \$ 0 27847 split(line, arg, " ") 27848 if (arg[1] == "#") { 27849 defundef = arg[2] 27850 mac1 = arg[3] 27851 } else { 27852 defundef = substr(arg[1], 2) 27853 mac1 = arg[2] 27854 } 27855 split(mac1, mac2, "(") #) 27856 macro = mac2[1] 27857 prefix = substr(line, 1, index(line, defundef) - 1) 27858 if (D_is_set[macro]) { 27859 # Preserve the white space surrounding the "#". 27860 print prefix "define", macro P[macro] D[macro] 27861 next 27862 } else { 27863 # Replace #undef with comments. This is necessary, for example, 27864 # in the case of _POSIX_SOURCE, which is predefined and required 27865 # on some systems where configure will not decide to define it. 27866 if (defundef == "undef") { 27867 print "/*", prefix defundef, macro, "*/" 27868 next 27869 } 27870 } 27871} 27872{ print } 27873_ACAWK 27874_ACEOF 27875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27876 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 27877fi # test -n "$CONFIG_HEADERS" 27878 27879 27880eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 27881shift 27882for ac_tag 27883do 27884 case $ac_tag in 27885 :[FHLC]) ac_mode=$ac_tag; continue;; 27886 esac 27887 case $ac_mode$ac_tag in 27888 :[FHL]*:*);; 27889 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 27890 :[FH]-) ac_tag=-:-;; 27891 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 27892 esac 27893 ac_save_IFS=$IFS 27894 IFS=: 27895 set x $ac_tag 27896 IFS=$ac_save_IFS 27897 shift 27898 ac_file=$1 27899 shift 27900 27901 case $ac_mode in 27902 :L) ac_source=$1;; 27903 :[FH]) 27904 ac_file_inputs= 27905 for ac_f 27906 do 27907 case $ac_f in 27908 -) ac_f="$ac_tmp/stdin";; 27909 *) # Look for the file first in the build tree, then in the source tree 27910 # (if the path is not absolute). The absolute path cannot be DOS-style, 27911 # because $ac_f cannot contain `:'. 27912 test -f "$ac_f" || 27913 case $ac_f in 27914 [\\/$]*) false;; 27915 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 27916 esac || 27917 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 27918 esac 27919 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 27920 as_fn_append ac_file_inputs " '$ac_f'" 27921 done 27922 27923 # Let's still pretend it is `configure' which instantiates (i.e., don't 27924 # use $as_me), people would be surprised to read: 27925 # /* config.h. Generated by config.status. */ 27926 configure_input='Generated from '` 27927 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 27928 `' by configure.' 27929 if test x"$ac_file" != x-; then 27930 configure_input="$ac_file. $configure_input" 27931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 27932$as_echo "$as_me: creating $ac_file" >&6;} 27933 fi 27934 # Neutralize special characters interpreted by sed in replacement strings. 27935 case $configure_input in #( 27936 *\&* | *\|* | *\\* ) 27937 ac_sed_conf_input=`$as_echo "$configure_input" | 27938 sed 's/[\\\\&|]/\\\\&/g'`;; #( 27939 *) ac_sed_conf_input=$configure_input;; 27940 esac 27941 27942 case $ac_tag in 27943 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 27944 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 27945 esac 27946 ;; 27947 esac 27948 27949 ac_dir=`$as_dirname -- "$ac_file" || 27950$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27951 X"$ac_file" : 'X\(//\)[^/]' \| \ 27952 X"$ac_file" : 'X\(//\)$' \| \ 27953 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 27954$as_echo X"$ac_file" | 27955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27956 s//\1/ 27957 q 27958 } 27959 /^X\(\/\/\)[^/].*/{ 27960 s//\1/ 27961 q 27962 } 27963 /^X\(\/\/\)$/{ 27964 s//\1/ 27965 q 27966 } 27967 /^X\(\/\).*/{ 27968 s//\1/ 27969 q 27970 } 27971 s/.*/./; q'` 27972 as_dir="$ac_dir"; as_fn_mkdir_p 27973 ac_builddir=. 27974 27975case "$ac_dir" in 27976.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 27977*) 27978 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 27979 # A ".." for each directory in $ac_dir_suffix. 27980 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 27981 case $ac_top_builddir_sub in 27982 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 27983 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 27984 esac ;; 27985esac 27986ac_abs_top_builddir=$ac_pwd 27987ac_abs_builddir=$ac_pwd$ac_dir_suffix 27988# for backward compatibility: 27989ac_top_builddir=$ac_top_build_prefix 27990 27991case $srcdir in 27992 .) # We are building in place. 27993 ac_srcdir=. 27994 ac_top_srcdir=$ac_top_builddir_sub 27995 ac_abs_top_srcdir=$ac_pwd ;; 27996 [\\/]* | ?:[\\/]* ) # Absolute name. 27997 ac_srcdir=$srcdir$ac_dir_suffix; 27998 ac_top_srcdir=$srcdir 27999 ac_abs_top_srcdir=$srcdir ;; 28000 *) # Relative name. 28001 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 28002 ac_top_srcdir=$ac_top_build_prefix$srcdir 28003 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 28004esac 28005ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 28006 28007 28008 case $ac_mode in 28009 :F) 28010 # 28011 # CONFIG_FILE 28012 # 28013 28014 case $INSTALL in 28015 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 28016 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 28017 esac 28018 ac_MKDIR_P=$MKDIR_P 28019 case $MKDIR_P in 28020 [\\/$]* | ?:[\\/]* ) ;; 28021 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 28022 esac 28023_ACEOF 28024 28025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28026# If the template does not know about datarootdir, expand it. 28027# FIXME: This hack should be removed a few years after 2.60. 28028ac_datarootdir_hack=; ac_datarootdir_seen= 28029ac_sed_dataroot=' 28030/datarootdir/ { 28031 p 28032 q 28033} 28034/@datadir@/p 28035/@docdir@/p 28036/@infodir@/p 28037/@localedir@/p 28038/@mandir@/p' 28039case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 28040*datarootdir*) ac_datarootdir_seen=yes;; 28041*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 28042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 28043$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 28044_ACEOF 28045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28046 ac_datarootdir_hack=' 28047 s&@datadir@&$datadir&g 28048 s&@docdir@&$docdir&g 28049 s&@infodir@&$infodir&g 28050 s&@localedir@&$localedir&g 28051 s&@mandir@&$mandir&g 28052 s&\\\${datarootdir}&$datarootdir&g' ;; 28053esac 28054_ACEOF 28055 28056# Neutralize VPATH when `$srcdir' = `.'. 28057# Shell code in configure.ac might set extrasub. 28058# FIXME: do we really want to maintain this feature? 28059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28060ac_sed_extra="$ac_vpsub 28061$extrasub 28062_ACEOF 28063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28064:t 28065/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 28066s|@configure_input@|$ac_sed_conf_input|;t t 28067s&@top_builddir@&$ac_top_builddir_sub&;t t 28068s&@top_build_prefix@&$ac_top_build_prefix&;t t 28069s&@srcdir@&$ac_srcdir&;t t 28070s&@abs_srcdir@&$ac_abs_srcdir&;t t 28071s&@top_srcdir@&$ac_top_srcdir&;t t 28072s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 28073s&@builddir@&$ac_builddir&;t t 28074s&@abs_builddir@&$ac_abs_builddir&;t t 28075s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 28076s&@INSTALL@&$ac_INSTALL&;t t 28077s&@MKDIR_P@&$ac_MKDIR_P&;t t 28078$ac_datarootdir_hack 28079" 28080eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 28081 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28082 28083test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 28084 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 28085 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 28086 "$ac_tmp/out"`; test -z "$ac_out"; } && 28087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28088which seems to be undefined. Please make sure it is defined" >&5 28089$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28090which seems to be undefined. Please make sure it is defined" >&2;} 28091 28092 rm -f "$ac_tmp/stdin" 28093 case $ac_file in 28094 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 28095 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 28096 esac \ 28097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28098 ;; 28099 :H) 28100 # 28101 # CONFIG_HEADER 28102 # 28103 if test x"$ac_file" != x-; then 28104 { 28105 $as_echo "/* $configure_input */" \ 28106 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 28107 } >"$ac_tmp/config.h" \ 28108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28109 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 28110 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 28111$as_echo "$as_me: $ac_file is unchanged" >&6;} 28112 else 28113 rm -f "$ac_file" 28114 mv "$ac_tmp/config.h" "$ac_file" \ 28115 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28116 fi 28117 else 28118 $as_echo "/* $configure_input */" \ 28119 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 28120 || as_fn_error $? "could not create -" "$LINENO" 5 28121 fi 28122# Compute "$ac_file"'s index in $config_headers. 28123_am_arg="$ac_file" 28124_am_stamp_count=1 28125for _am_header in $config_headers :; do 28126 case $_am_header in 28127 $_am_arg | $_am_arg:* ) 28128 break ;; 28129 * ) 28130 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 28131 esac 28132done 28133echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 28134$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28135 X"$_am_arg" : 'X\(//\)[^/]' \| \ 28136 X"$_am_arg" : 'X\(//\)$' \| \ 28137 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 28138$as_echo X"$_am_arg" | 28139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28140 s//\1/ 28141 q 28142 } 28143 /^X\(\/\/\)[^/].*/{ 28144 s//\1/ 28145 q 28146 } 28147 /^X\(\/\/\)$/{ 28148 s//\1/ 28149 q 28150 } 28151 /^X\(\/\).*/{ 28152 s//\1/ 28153 q 28154 } 28155 s/.*/./; q'`/stamp-h$_am_stamp_count 28156 ;; 28157 28158 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 28159$as_echo "$as_me: executing $ac_file commands" >&6;} 28160 ;; 28161 esac 28162 28163 28164 case $ac_file$ac_mode in 28165 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 28166 # Older Autoconf quotes --file arguments for eval, but not when files 28167 # are listed without --file. Let's play safe and only enable the eval 28168 # if we detect the quoting. 28169 case $CONFIG_FILES in 28170 *\'*) eval set x "$CONFIG_FILES" ;; 28171 *) set x $CONFIG_FILES ;; 28172 esac 28173 shift 28174 for mf 28175 do 28176 # Strip MF so we end up with the name of the file. 28177 mf=`echo "$mf" | sed -e 's/:.*$//'` 28178 # Check whether this is an Automake generated Makefile or not. 28179 # We used to match only the files named 'Makefile.in', but 28180 # some people rename them; so instead we look at the file content. 28181 # Grep'ing the first line is not enough: some people post-process 28182 # each Makefile.in and add a new line on top of each file to say so. 28183 # Grep'ing the whole file is not good either: AIX grep has a line 28184 # limit of 2048, but all sed's we know have understand at least 4000. 28185 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 28186 dirpart=`$as_dirname -- "$mf" || 28187$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28188 X"$mf" : 'X\(//\)[^/]' \| \ 28189 X"$mf" : 'X\(//\)$' \| \ 28190 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 28191$as_echo X"$mf" | 28192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28193 s//\1/ 28194 q 28195 } 28196 /^X\(\/\/\)[^/].*/{ 28197 s//\1/ 28198 q 28199 } 28200 /^X\(\/\/\)$/{ 28201 s//\1/ 28202 q 28203 } 28204 /^X\(\/\).*/{ 28205 s//\1/ 28206 q 28207 } 28208 s/.*/./; q'` 28209 else 28210 continue 28211 fi 28212 # Extract the definition of DEPDIR, am__include, and am__quote 28213 # from the Makefile without running 'make'. 28214 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 28215 test -z "$DEPDIR" && continue 28216 am__include=`sed -n 's/^am__include = //p' < "$mf"` 28217 test -z "$am__include" && continue 28218 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 28219 # Find all dependency output files, they are included files with 28220 # $(DEPDIR) in their names. We invoke sed twice because it is the 28221 # simplest approach to changing $(DEPDIR) to its actual value in the 28222 # expansion. 28223 for file in `sed -n " 28224 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 28225 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 28226 # Make sure the directory exists. 28227 test -f "$dirpart/$file" && continue 28228 fdir=`$as_dirname -- "$file" || 28229$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28230 X"$file" : 'X\(//\)[^/]' \| \ 28231 X"$file" : 'X\(//\)$' \| \ 28232 X"$file" : 'X\(/\)' \| . 2>/dev/null || 28233$as_echo X"$file" | 28234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28235 s//\1/ 28236 q 28237 } 28238 /^X\(\/\/\)[^/].*/{ 28239 s//\1/ 28240 q 28241 } 28242 /^X\(\/\/\)$/{ 28243 s//\1/ 28244 q 28245 } 28246 /^X\(\/\).*/{ 28247 s//\1/ 28248 q 28249 } 28250 s/.*/./; q'` 28251 as_dir=$dirpart/$fdir; as_fn_mkdir_p 28252 # echo "creating $dirpart/$file" 28253 echo '# dummy' > "$dirpart/$file" 28254 done 28255 done 28256} 28257 ;; 28258 "libtool":C) 28259 28260 # See if we are running on zsh, and set the options that allow our 28261 # commands through without removal of \ escapes. 28262 if test -n "${ZSH_VERSION+set}"; then 28263 setopt NO_GLOB_SUBST 28264 fi 28265 28266 cfgfile=${ofile}T 28267 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 28268 $RM "$cfgfile" 28269 28270 cat <<_LT_EOF >> "$cfgfile" 28271#! $SHELL 28272# Generated automatically by $as_me ($PACKAGE) $VERSION 28273# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 28274# NOTE: Changes made to this file will be lost: look at ltmain.sh. 28275 28276# Provide generalized library-building support services. 28277# Written by Gordon Matzigkeit, 1996 28278 28279# Copyright (C) 2014 Free Software Foundation, Inc. 28280# This is free software; see the source for copying conditions. There is NO 28281# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28282 28283# GNU Libtool is free software; you can redistribute it and/or modify 28284# it under the terms of the GNU General Public License as published by 28285# the Free Software Foundation; either version 2 of of the License, or 28286# (at your option) any later version. 28287# 28288# As a special exception to the GNU General Public License, if you 28289# distribute this file as part of a program or library that is built 28290# using GNU Libtool, you may include this file under the same 28291# distribution terms that you use for the rest of that program. 28292# 28293# GNU Libtool is distributed in the hope that it will be useful, but 28294# WITHOUT ANY WARRANTY; without even the implied warranty of 28295# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 28296# GNU General Public License for more details. 28297# 28298# You should have received a copy of the GNU General Public License 28299# along with this program. If not, see <http://www.gnu.org/licenses/>. 28300 28301 28302# The names of the tagged configurations supported by this script. 28303available_tags='' 28304 28305# Configured defaults for sys_lib_dlsearch_path munging. 28306: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 28307 28308# ### BEGIN LIBTOOL CONFIG 28309 28310# A sed program that does not truncate output. 28311SED=$lt_SED 28312 28313# Sed that helps us avoid accidentally triggering echo(1) options like -n. 28314Xsed="\$SED -e 1s/^X//" 28315 28316# A grep program that handles long lines. 28317GREP=$lt_GREP 28318 28319# An ERE matcher. 28320EGREP=$lt_EGREP 28321 28322# A literal string matcher. 28323FGREP=$lt_FGREP 28324 28325# Shell to use when invoking shell scripts. 28326SHELL=$lt_SHELL 28327 28328# An echo program that protects backslashes. 28329ECHO=$lt_ECHO 28330 28331# Whether or not to build shared libraries. 28332build_libtool_libs=$enable_shared 28333 28334# Which release of libtool.m4 was used? 28335macro_version=$macro_version 28336macro_revision=$macro_revision 28337 28338# Whether or not to build static libraries. 28339build_old_libs=$enable_static 28340 28341# What type of objects to build. 28342pic_mode=$pic_mode 28343 28344# Whether or not to optimize for fast installation. 28345fast_install=$enable_fast_install 28346 28347# Shared archive member basename,for filename based shared library versioning on AIX. 28348shared_archive_member_spec=$shared_archive_member_spec 28349 28350# The PATH separator for the build system. 28351PATH_SEPARATOR=$lt_PATH_SEPARATOR 28352 28353# The host system. 28354host_alias=$host_alias 28355host=$host 28356host_os=$host_os 28357 28358# The build system. 28359build_alias=$build_alias 28360build=$build 28361build_os=$build_os 28362 28363# A BSD- or MS-compatible name lister. 28364NM=$lt_NM 28365 28366# Whether we need soft or hard links. 28367LN_S=$lt_LN_S 28368 28369# What is the maximum length of a command? 28370max_cmd_len=$max_cmd_len 28371 28372# Object file suffix (normally "o"). 28373objext=$ac_objext 28374 28375# Executable file suffix (normally ""). 28376exeext=$exeext 28377 28378# whether the shell understands "unset". 28379lt_unset=$lt_unset 28380 28381# turn spaces into newlines. 28382SP2NL=$lt_lt_SP2NL 28383 28384# turn newlines into spaces. 28385NL2SP=$lt_lt_NL2SP 28386 28387# convert \$build file names to \$host format. 28388to_host_file_cmd=$lt_cv_to_host_file_cmd 28389 28390# convert \$build files to toolchain format. 28391to_tool_file_cmd=$lt_cv_to_tool_file_cmd 28392 28393# An object symbol dumper. 28394OBJDUMP=$lt_OBJDUMP 28395 28396# Method to check whether dependent libraries are shared objects. 28397deplibs_check_method=$lt_deplibs_check_method 28398 28399# Command to use when deplibs_check_method = "file_magic". 28400file_magic_cmd=$lt_file_magic_cmd 28401 28402# How to find potential files when deplibs_check_method = "file_magic". 28403file_magic_glob=$lt_file_magic_glob 28404 28405# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 28406want_nocaseglob=$lt_want_nocaseglob 28407 28408# DLL creation program. 28409DLLTOOL=$lt_DLLTOOL 28410 28411# Command to associate shared and link libraries. 28412sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 28413 28414# The archiver. 28415AR=$lt_AR 28416 28417# Flags to create an archive. 28418AR_FLAGS=$lt_AR_FLAGS 28419 28420# How to feed a file listing to the archiver. 28421archiver_list_spec=$lt_archiver_list_spec 28422 28423# A symbol stripping program. 28424STRIP=$lt_STRIP 28425 28426# Commands used to install an old-style archive. 28427RANLIB=$lt_RANLIB 28428old_postinstall_cmds=$lt_old_postinstall_cmds 28429old_postuninstall_cmds=$lt_old_postuninstall_cmds 28430 28431# Whether to use a lock for old archive extraction. 28432lock_old_archive_extraction=$lock_old_archive_extraction 28433 28434# A C compiler. 28435LTCC=$lt_CC 28436 28437# LTCC compiler flags. 28438LTCFLAGS=$lt_CFLAGS 28439 28440# Take the output of nm and produce a listing of raw symbols and C names. 28441global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 28442 28443# Transform the output of nm in a proper C declaration. 28444global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 28445 28446# Transform the output of nm into a list of symbols to manually relocate. 28447global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 28448 28449# Transform the output of nm in a C name address pair. 28450global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 28451 28452# Transform the output of nm in a C name address pair when lib prefix is needed. 28453global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 28454 28455# The name lister interface. 28456nm_interface=$lt_lt_cv_nm_interface 28457 28458# Specify filename containing input files for \$NM. 28459nm_file_list_spec=$lt_nm_file_list_spec 28460 28461# The root where to search for dependent libraries,and where our libraries should be installed. 28462lt_sysroot=$lt_sysroot 28463 28464# Command to truncate a binary pipe. 28465lt_truncate_bin=$lt_lt_cv_truncate_bin 28466 28467# The name of the directory that contains temporary libtool files. 28468objdir=$objdir 28469 28470# Used to examine libraries when file_magic_cmd begins with "file". 28471MAGIC_CMD=$MAGIC_CMD 28472 28473# Must we lock files when doing compilation? 28474need_locks=$lt_need_locks 28475 28476# Manifest tool. 28477MANIFEST_TOOL=$lt_MANIFEST_TOOL 28478 28479# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 28480DSYMUTIL=$lt_DSYMUTIL 28481 28482# Tool to change global to local symbols on Mac OS X. 28483NMEDIT=$lt_NMEDIT 28484 28485# Tool to manipulate fat objects and archives on Mac OS X. 28486LIPO=$lt_LIPO 28487 28488# ldd/readelf like tool for Mach-O binaries on Mac OS X. 28489OTOOL=$lt_OTOOL 28490 28491# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 28492OTOOL64=$lt_OTOOL64 28493 28494# Old archive suffix (normally "a"). 28495libext=$libext 28496 28497# Shared library suffix (normally ".so"). 28498shrext_cmds=$lt_shrext_cmds 28499 28500# The commands to extract the exported symbol list from a shared archive. 28501extract_expsyms_cmds=$lt_extract_expsyms_cmds 28502 28503# Variables whose values should be saved in libtool wrapper scripts and 28504# restored at link time. 28505variables_saved_for_relink=$lt_variables_saved_for_relink 28506 28507# Do we need the "lib" prefix for modules? 28508need_lib_prefix=$need_lib_prefix 28509 28510# Do we need a version for libraries? 28511need_version=$need_version 28512 28513# Library versioning type. 28514version_type=$version_type 28515 28516# Shared library runtime path variable. 28517runpath_var=$runpath_var 28518 28519# Shared library path variable. 28520shlibpath_var=$shlibpath_var 28521 28522# Is shlibpath searched before the hard-coded library search path? 28523shlibpath_overrides_runpath=$shlibpath_overrides_runpath 28524 28525# Format of library name prefix. 28526libname_spec=$lt_libname_spec 28527 28528# List of archive names. First name is the real one, the rest are links. 28529# The last name is the one that the linker finds with -lNAME 28530library_names_spec=$lt_library_names_spec 28531 28532# The coded name of the library, if different from the real name. 28533soname_spec=$lt_soname_spec 28534 28535# Permission mode override for installation of shared libraries. 28536install_override_mode=$lt_install_override_mode 28537 28538# Command to use after installation of a shared archive. 28539postinstall_cmds=$lt_postinstall_cmds 28540 28541# Command to use after uninstallation of a shared archive. 28542postuninstall_cmds=$lt_postuninstall_cmds 28543 28544# Commands used to finish a libtool library installation in a directory. 28545finish_cmds=$lt_finish_cmds 28546 28547# As "finish_cmds", except a single script fragment to be evaled but 28548# not shown. 28549finish_eval=$lt_finish_eval 28550 28551# Whether we should hardcode library paths into libraries. 28552hardcode_into_libs=$hardcode_into_libs 28553 28554# Compile-time system search path for libraries. 28555sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 28556 28557# Detected run-time system search path for libraries. 28558sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 28559 28560# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 28561configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 28562 28563# Whether dlopen is supported. 28564dlopen_support=$enable_dlopen 28565 28566# Whether dlopen of programs is supported. 28567dlopen_self=$enable_dlopen_self 28568 28569# Whether dlopen of statically linked programs is supported. 28570dlopen_self_static=$enable_dlopen_self_static 28571 28572# Commands to strip libraries. 28573old_striplib=$lt_old_striplib 28574striplib=$lt_striplib 28575 28576 28577# The linker used to build libraries. 28578LD=$lt_LD 28579 28580# How to create reloadable object files. 28581reload_flag=$lt_reload_flag 28582reload_cmds=$lt_reload_cmds 28583 28584# Commands used to build an old-style archive. 28585old_archive_cmds=$lt_old_archive_cmds 28586 28587# A language specific compiler. 28588CC=$lt_compiler 28589 28590# Is the compiler the GNU compiler? 28591with_gcc=$GCC 28592 28593# Compiler flag to turn off builtin functions. 28594no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 28595 28596# Additional compiler flags for building library objects. 28597pic_flag=$lt_lt_prog_compiler_pic 28598 28599# How to pass a linker flag through the compiler. 28600wl=$lt_lt_prog_compiler_wl 28601 28602# Compiler flag to prevent dynamic linking. 28603link_static_flag=$lt_lt_prog_compiler_static 28604 28605# Does compiler simultaneously support -c and -o options? 28606compiler_c_o=$lt_lt_cv_prog_compiler_c_o 28607 28608# Whether or not to add -lc for building shared libraries. 28609build_libtool_need_lc=$archive_cmds_need_lc 28610 28611# Whether or not to disallow shared libs when runtime libs are static. 28612allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 28613 28614# Compiler flag to allow reflexive dlopens. 28615export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 28616 28617# Compiler flag to generate shared objects directly from archives. 28618whole_archive_flag_spec=$lt_whole_archive_flag_spec 28619 28620# Whether the compiler copes with passing no objects directly. 28621compiler_needs_object=$lt_compiler_needs_object 28622 28623# Create an old-style archive from a shared archive. 28624old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 28625 28626# Create a temporary old-style archive to link instead of a shared archive. 28627old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 28628 28629# Commands used to build a shared archive. 28630archive_cmds=$lt_archive_cmds 28631archive_expsym_cmds=$lt_archive_expsym_cmds 28632 28633# Commands used to build a loadable module if different from building 28634# a shared archive. 28635module_cmds=$lt_module_cmds 28636module_expsym_cmds=$lt_module_expsym_cmds 28637 28638# Whether we are building with GNU ld or not. 28639with_gnu_ld=$lt_with_gnu_ld 28640 28641# Flag that allows shared libraries with undefined symbols to be built. 28642allow_undefined_flag=$lt_allow_undefined_flag 28643 28644# Flag that enforces no undefined symbols. 28645no_undefined_flag=$lt_no_undefined_flag 28646 28647# Flag to hardcode \$libdir into a binary during linking. 28648# This must work even if \$libdir does not exist 28649hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 28650 28651# Whether we need a single "-rpath" flag with a separated argument. 28652hardcode_libdir_separator=$lt_hardcode_libdir_separator 28653 28654# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 28655# DIR into the resulting binary. 28656hardcode_direct=$hardcode_direct 28657 28658# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 28659# DIR into the resulting binary and the resulting library dependency is 28660# "absolute",i.e impossible to change by setting \$shlibpath_var if the 28661# library is relocated. 28662hardcode_direct_absolute=$hardcode_direct_absolute 28663 28664# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 28665# into the resulting binary. 28666hardcode_minus_L=$hardcode_minus_L 28667 28668# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 28669# into the resulting binary. 28670hardcode_shlibpath_var=$hardcode_shlibpath_var 28671 28672# Set to "yes" if building a shared library automatically hardcodes DIR 28673# into the library and all subsequent libraries and executables linked 28674# against it. 28675hardcode_automatic=$hardcode_automatic 28676 28677# Set to yes if linker adds runtime paths of dependent libraries 28678# to runtime path list. 28679inherit_rpath=$inherit_rpath 28680 28681# Whether libtool must link a program against all its dependency libraries. 28682link_all_deplibs=$link_all_deplibs 28683 28684# Set to "yes" if exported symbols are required. 28685always_export_symbols=$always_export_symbols 28686 28687# The commands to list exported symbols. 28688export_symbols_cmds=$lt_export_symbols_cmds 28689 28690# Symbols that should not be listed in the preloaded symbols. 28691exclude_expsyms=$lt_exclude_expsyms 28692 28693# Symbols that must always be exported. 28694include_expsyms=$lt_include_expsyms 28695 28696# Commands necessary for linking programs (against libraries) with templates. 28697prelink_cmds=$lt_prelink_cmds 28698 28699# Commands necessary for finishing linking programs. 28700postlink_cmds=$lt_postlink_cmds 28701 28702# Specify filename containing input files. 28703file_list_spec=$lt_file_list_spec 28704 28705# How to hardcode a shared library path into an executable. 28706hardcode_action=$hardcode_action 28707 28708# ### END LIBTOOL CONFIG 28709 28710_LT_EOF 28711 28712 cat <<'_LT_EOF' >> "$cfgfile" 28713 28714# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 28715 28716# func_munge_path_list VARIABLE PATH 28717# ----------------------------------- 28718# VARIABLE is name of variable containing _space_ separated list of 28719# directories to be munged by the contents of PATH, which is string 28720# having a format: 28721# "DIR[:DIR]:" 28722# string "DIR[ DIR]" will be prepended to VARIABLE 28723# ":DIR[:DIR]" 28724# string "DIR[ DIR]" will be appended to VARIABLE 28725# "DIRP[:DIRP]::[DIRA:]DIRA" 28726# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 28727# "DIRA[ DIRA]" will be appended to VARIABLE 28728# "DIR[:DIR]" 28729# VARIABLE will be replaced by "DIR[ DIR]" 28730func_munge_path_list () 28731{ 28732 case x$2 in 28733 x) 28734 ;; 28735 *:) 28736 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 28737 ;; 28738 x:*) 28739 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 28740 ;; 28741 *::*) 28742 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 28743 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 28744 ;; 28745 *) 28746 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 28747 ;; 28748 esac 28749} 28750 28751 28752# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 28753func_cc_basename () 28754{ 28755 for cc_temp in $*""; do 28756 case $cc_temp in 28757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 28758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 28759 \-*) ;; 28760 *) break;; 28761 esac 28762 done 28763 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 28764} 28765 28766 28767# ### END FUNCTIONS SHARED WITH CONFIGURE 28768 28769_LT_EOF 28770 28771 case $host_os in 28772 aix3*) 28773 cat <<\_LT_EOF >> "$cfgfile" 28774# AIX sometimes has problems with the GCC collect2 program. For some 28775# reason, if we set the COLLECT_NAMES environment variable, the problems 28776# vanish in a puff of smoke. 28777if test set != "${COLLECT_NAMES+set}"; then 28778 COLLECT_NAMES= 28779 export COLLECT_NAMES 28780fi 28781_LT_EOF 28782 ;; 28783 esac 28784 28785 28786ltmain=$ac_aux_dir/ltmain.sh 28787 28788 28789 # We use sed instead of cat because bash on DJGPP gets confused if 28790 # if finds mixed CR/LF and LF-only lines. Since sed operates in 28791 # text mode, it properly converts lines to CR/LF. This bash problem 28792 # is reportedly fixed, but why not run on old versions too? 28793 sed '$q' "$ltmain" >> "$cfgfile" \ 28794 || (rm -f "$cfgfile"; exit 1) 28795 28796 mv -f "$cfgfile" "$ofile" || 28797 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 28798 chmod +x "$ofile" 28799 28800 ;; 28801 28802 esac 28803done # for ac_tag 28804 28805 28806as_fn_exit 0 28807_ACEOF 28808ac_clean_files=$ac_clean_files_save 28809 28810test $ac_write_fail = 0 || 28811 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 28812 28813 28814# configure is writing to config.log, and then calls config.status. 28815# config.status does its own redirection, appending to config.log. 28816# Unfortunately, on DOS this fails, as config.log is still kept open 28817# by configure, so config.status won't be able to write to it; its 28818# output is simply discarded. So we exec the FD to /dev/null, 28819# effectively closing config.log, so it can be properly (re)opened and 28820# appended to by config.status. When coming back to configure, we 28821# need to make the FD available again. 28822if test "$no_create" != yes; then 28823 ac_cs_success=: 28824 ac_config_status_args= 28825 test "$silent" = yes && 28826 ac_config_status_args="$ac_config_status_args --quiet" 28827 exec 5>/dev/null 28828 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 28829 exec 5>>config.log 28830 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 28831 # would make configure fail if this is the last instruction. 28832 $ac_cs_success || as_fn_exit 1 28833fi 28834 28835# 28836# CONFIG_SUBDIRS section. 28837# 28838if test "$no_recursion" != yes; then 28839 28840 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 28841 # so they do not pile up. 28842 ac_sub_configure_args= 28843 ac_prev= 28844 eval "set x $ac_configure_args" 28845 shift 28846 for ac_arg 28847 do 28848 if test -n "$ac_prev"; then 28849 ac_prev= 28850 continue 28851 fi 28852 case $ac_arg in 28853 -cache-file | --cache-file | --cache-fil | --cache-fi \ 28854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 28855 ac_prev=cache_file ;; 28856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 28857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 28858 | --c=*) 28859 ;; 28860 --config-cache | -C) 28861 ;; 28862 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 28863 ac_prev=srcdir ;; 28864 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 28865 ;; 28866 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 28867 ac_prev=prefix ;; 28868 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 28869 ;; 28870 --disable-option-checking) 28871 ;; 28872 *) 28873 case $ac_arg in 28874 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 28875 esac 28876 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 28877 esac 28878 done 28879 28880 # Always prepend --prefix to ensure using the same prefix 28881 # in subdir configurations. 28882 ac_arg="--prefix=$prefix" 28883 case $ac_arg in 28884 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 28885 esac 28886 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 28887 28888 # Pass --silent 28889 if test "$silent" = yes; then 28890 ac_sub_configure_args="--silent $ac_sub_configure_args" 28891 fi 28892 28893 # Always prepend --disable-option-checking to silence warnings, since 28894 # different subdirs can have different --enable and --with options. 28895 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 28896 28897 ac_popdir=`pwd` 28898 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 28899 28900 # Do not complain, so a configure script can configure whichever 28901 # parts of a large source tree are present. 28902 test -d "$srcdir/$ac_dir" || continue 28903 28904 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 28905 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 28906 $as_echo "$ac_msg" >&6 28907 as_dir="$ac_dir"; as_fn_mkdir_p 28908 ac_builddir=. 28909 28910case "$ac_dir" in 28911.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 28912*) 28913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 28914 # A ".." for each directory in $ac_dir_suffix. 28915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 28916 case $ac_top_builddir_sub in 28917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 28918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 28919 esac ;; 28920esac 28921ac_abs_top_builddir=$ac_pwd 28922ac_abs_builddir=$ac_pwd$ac_dir_suffix 28923# for backward compatibility: 28924ac_top_builddir=$ac_top_build_prefix 28925 28926case $srcdir in 28927 .) # We are building in place. 28928 ac_srcdir=. 28929 ac_top_srcdir=$ac_top_builddir_sub 28930 ac_abs_top_srcdir=$ac_pwd ;; 28931 [\\/]* | ?:[\\/]* ) # Absolute name. 28932 ac_srcdir=$srcdir$ac_dir_suffix; 28933 ac_top_srcdir=$srcdir 28934 ac_abs_top_srcdir=$srcdir ;; 28935 *) # Relative name. 28936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 28937 ac_top_srcdir=$ac_top_build_prefix$srcdir 28938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 28939esac 28940ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 28941 28942 28943 cd "$ac_dir" 28944 28945 # Check for guested configure; otherwise get Cygnus style configure. 28946 if test -f "$ac_srcdir/configure.gnu"; then 28947 ac_sub_configure=$ac_srcdir/configure.gnu 28948 elif test -f "$ac_srcdir/configure"; then 28949 ac_sub_configure=$ac_srcdir/configure 28950 elif test -f "$ac_srcdir/configure.in"; then 28951 # This should be Cygnus configure. 28952 ac_sub_configure=$ac_aux_dir/configure 28953 else 28954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 28955$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 28956 ac_sub_configure= 28957 fi 28958 28959 # The recursion is here. 28960 if test -n "$ac_sub_configure"; then 28961 # Make the cache file name correct relative to the subdirectory. 28962 case $cache_file in 28963 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 28964 *) # Relative name. 28965 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 28966 esac 28967 28968 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 28969$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 28970 # The eval makes quoting arguments work. 28971 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 28972 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 28973 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 28974 fi 28975 28976 cd "$ac_popdir" 28977 done 28978fi 28979if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 28980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 28981$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 28982fi 28983
| 27198configured by $0, generated by GNU Autoconf 2.69, 27199 with options \\"\$ac_cs_config\\" 27200 27201Copyright (C) 2012 Free Software Foundation, Inc. 27202This config.status script is free software; the Free Software Foundation 27203gives unlimited permission to copy, distribute and modify it." 27204 27205ac_pwd='$ac_pwd' 27206srcdir='$srcdir' 27207INSTALL='$INSTALL' 27208MKDIR_P='$MKDIR_P' 27209AWK='$AWK' 27210test -n "\$AWK" || AWK=awk 27211_ACEOF 27212 27213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27214# The default lists apply if the user does not specify any file. 27215ac_need_defaults=: 27216while test $# != 0 27217do 27218 case $1 in 27219 --*=?*) 27220 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27221 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 27222 ac_shift=: 27223 ;; 27224 --*=) 27225 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27226 ac_optarg= 27227 ac_shift=: 27228 ;; 27229 *) 27230 ac_option=$1 27231 ac_optarg=$2 27232 ac_shift=shift 27233 ;; 27234 esac 27235 27236 case $ac_option in 27237 # Handling of the options. 27238 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 27239 ac_cs_recheck=: ;; 27240 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 27241 $as_echo "$ac_cs_version"; exit ;; 27242 --config | --confi | --conf | --con | --co | --c ) 27243 $as_echo "$ac_cs_config"; exit ;; 27244 --debug | --debu | --deb | --de | --d | -d ) 27245 debug=: ;; 27246 --file | --fil | --fi | --f ) 27247 $ac_shift 27248 case $ac_optarg in 27249 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27250 '') as_fn_error $? "missing file argument" ;; 27251 esac 27252 as_fn_append CONFIG_FILES " '$ac_optarg'" 27253 ac_need_defaults=false;; 27254 --header | --heade | --head | --hea ) 27255 $ac_shift 27256 case $ac_optarg in 27257 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27258 esac 27259 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 27260 ac_need_defaults=false;; 27261 --he | --h) 27262 # Conflict between --help and --header 27263 as_fn_error $? "ambiguous option: \`$1' 27264Try \`$0 --help' for more information.";; 27265 --help | --hel | -h ) 27266 $as_echo "$ac_cs_usage"; exit ;; 27267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 27268 | -silent | --silent | --silen | --sile | --sil | --si | --s) 27269 ac_cs_silent=: ;; 27270 27271 # This is an error. 27272 -*) as_fn_error $? "unrecognized option: \`$1' 27273Try \`$0 --help' for more information." ;; 27274 27275 *) as_fn_append ac_config_targets " $1" 27276 ac_need_defaults=false ;; 27277 27278 esac 27279 shift 27280done 27281 27282ac_configure_extra_args= 27283 27284if $ac_cs_silent; then 27285 exec 6>/dev/null 27286 ac_configure_extra_args="$ac_configure_extra_args --silent" 27287fi 27288 27289_ACEOF 27290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27291if \$ac_cs_recheck; then 27292 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 27293 shift 27294 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 27295 CONFIG_SHELL='$SHELL' 27296 export CONFIG_SHELL 27297 exec "\$@" 27298fi 27299 27300_ACEOF 27301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27302exec 5>>config.log 27303{ 27304 echo 27305 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 27306## Running $as_me. ## 27307_ASBOX 27308 $as_echo "$ac_log" 27309} >&5 27310 27311_ACEOF 27312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27313# 27314# INIT-COMMANDS 27315# 27316AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 27317 27318 27319# The HP-UX ksh and POSIX shell print the target directory to stdout 27320# if CDPATH is set. 27321(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 27322 27323sed_quote_subst='$sed_quote_subst' 27324double_quote_subst='$double_quote_subst' 27325delay_variable_subst='$delay_variable_subst' 27326SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 27327Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 27328GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 27329EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 27330FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 27331SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 27332ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 27333LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 27334enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 27335macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 27336macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 27337enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 27338pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 27339enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 27340shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 27341PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 27342host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 27343host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 27344host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 27345build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 27346build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 27347build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 27348NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 27349LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 27350max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 27351ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 27352exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 27353lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 27354lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 27355lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 27356lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 27357lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 27358reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 27359reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 27360OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 27361deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 27362file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 27363file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 27364want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 27365DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 27366sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 27367AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 27368AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 27369archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 27370STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 27371RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 27372old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 27373old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 27374old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 27375lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 27376CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 27377CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 27378compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 27379GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 27380lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 27381lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 27382lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 27383lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 27384lt_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"`' 27385lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 27386nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 27387lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 27388lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 27389objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 27390MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 27391lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 27392lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 27393lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 27394lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 27395lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 27396need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 27397MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 27398DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 27399NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 27400LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 27401OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 27402OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 27403libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 27404shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 27405extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 27406archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 27407enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 27408export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 27409whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 27410compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 27411old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 27412old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 27413archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 27414archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 27415module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 27416module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 27417with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 27418allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 27419no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 27420hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 27421hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 27422hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 27423hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 27424hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 27425hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 27426hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 27427inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 27428link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 27429always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 27430export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 27431exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 27432include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 27433prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 27434postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 27435file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 27436variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 27437need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 27438need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 27439version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 27440runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 27441shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 27442shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 27443libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 27444library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 27445soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 27446install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 27447postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 27448postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 27449finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 27450finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 27451hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 27452sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 27453configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 27454configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 27455hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 27456enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 27457enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 27458enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 27459old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 27460striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 27461 27462LTCC='$LTCC' 27463LTCFLAGS='$LTCFLAGS' 27464compiler='$compiler_DEFAULT' 27465 27466# A function that is used when there is no print builtin or printf. 27467func_fallback_echo () 27468{ 27469 eval 'cat <<_LTECHO_EOF 27470\$1 27471_LTECHO_EOF' 27472} 27473 27474# Quote evaled strings. 27475for var in SED \ 27476GREP \ 27477EGREP \ 27478FGREP \ 27479SHELL \ 27480ECHO \ 27481LD \ 27482PATH_SEPARATOR \ 27483NM \ 27484LN_S \ 27485lt_SP2NL \ 27486lt_NL2SP \ 27487reload_flag \ 27488OBJDUMP \ 27489deplibs_check_method \ 27490file_magic_cmd \ 27491file_magic_glob \ 27492want_nocaseglob \ 27493DLLTOOL \ 27494sharedlib_from_linklib_cmd \ 27495AR \ 27496AR_FLAGS \ 27497archiver_list_spec \ 27498STRIP \ 27499RANLIB \ 27500CC \ 27501CFLAGS \ 27502compiler \ 27503lt_cv_sys_global_symbol_pipe \ 27504lt_cv_sys_global_symbol_to_cdecl \ 27505lt_cv_sys_global_symbol_to_import \ 27506lt_cv_sys_global_symbol_to_c_name_address \ 27507lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 27508lt_cv_nm_interface \ 27509nm_file_list_spec \ 27510lt_cv_truncate_bin \ 27511lt_prog_compiler_no_builtin_flag \ 27512lt_prog_compiler_pic \ 27513lt_prog_compiler_wl \ 27514lt_prog_compiler_static \ 27515lt_cv_prog_compiler_c_o \ 27516need_locks \ 27517MANIFEST_TOOL \ 27518DSYMUTIL \ 27519NMEDIT \ 27520LIPO \ 27521OTOOL \ 27522OTOOL64 \ 27523shrext_cmds \ 27524export_dynamic_flag_spec \ 27525whole_archive_flag_spec \ 27526compiler_needs_object \ 27527with_gnu_ld \ 27528allow_undefined_flag \ 27529no_undefined_flag \ 27530hardcode_libdir_flag_spec \ 27531hardcode_libdir_separator \ 27532exclude_expsyms \ 27533include_expsyms \ 27534file_list_spec \ 27535variables_saved_for_relink \ 27536libname_spec \ 27537library_names_spec \ 27538soname_spec \ 27539install_override_mode \ 27540finish_eval \ 27541old_striplib \ 27542striplib; do 27543 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 27544 *[\\\\\\\`\\"\\\$]*) 27545 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 27546 ;; 27547 *) 27548 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 27549 ;; 27550 esac 27551done 27552 27553# Double-quote double-evaled strings. 27554for var in reload_cmds \ 27555old_postinstall_cmds \ 27556old_postuninstall_cmds \ 27557old_archive_cmds \ 27558extract_expsyms_cmds \ 27559old_archive_from_new_cmds \ 27560old_archive_from_expsyms_cmds \ 27561archive_cmds \ 27562archive_expsym_cmds \ 27563module_cmds \ 27564module_expsym_cmds \ 27565export_symbols_cmds \ 27566prelink_cmds \ 27567postlink_cmds \ 27568postinstall_cmds \ 27569postuninstall_cmds \ 27570finish_cmds \ 27571sys_lib_search_path_spec \ 27572configure_time_dlsearch_path \ 27573configure_time_lt_sys_library_path; do 27574 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 27575 *[\\\\\\\`\\"\\\$]*) 27576 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 27577 ;; 27578 *) 27579 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 27580 ;; 27581 esac 27582done 27583 27584ac_aux_dir='$ac_aux_dir' 27585 27586# See if we are running on zsh, and set the options that allow our 27587# commands through without removal of \ escapes INIT. 27588if test -n "\${ZSH_VERSION+set}"; then 27589 setopt NO_GLOB_SUBST 27590fi 27591 27592 27593 PACKAGE='$PACKAGE' 27594 VERSION='$VERSION' 27595 RM='$RM' 27596 ofile='$ofile' 27597 27598 27599 27600 27601_ACEOF 27602 27603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27604 27605# Handling of arguments. 27606for ac_config_target in $ac_config_targets 27607do 27608 case $ac_config_target in 27609 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 27610 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 27611 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 27612 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;; 27613 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 27614 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 27615 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 27616 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 27617 "tests/fileHandlingTest.h") CONFIG_FILES="$CONFIG_FILES tests/fileHandlingTest.h" ;; 27618 "unity/Makefile") CONFIG_FILES="$CONFIG_FILES unity/Makefile" ;; 27619 27620 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 27621 esac 27622done 27623 27624 27625# If the user did not use the arguments to specify the items to instantiate, 27626# then the envvar interface is used. Set only those that are not. 27627# We use the long form for the default assignment because of an extremely 27628# bizarre bug on SunOS 4.1.3. 27629if $ac_need_defaults; then 27630 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 27631 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 27632 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 27633fi 27634 27635# Have a temporary directory for convenience. Make it in the build tree 27636# simply because there is no reason against having it here, and in addition, 27637# creating and moving files from /tmp can sometimes cause problems. 27638# Hook for its removal unless debugging. 27639# Note that there is a small window in which the directory will not be cleaned: 27640# after its creation but before its name has been assigned to `$tmp'. 27641$debug || 27642{ 27643 tmp= ac_tmp= 27644 trap 'exit_status=$? 27645 : "${ac_tmp:=$tmp}" 27646 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 27647' 0 27648 trap 'as_fn_exit 1' 1 2 13 15 27649} 27650# Create a (secure) tmp directory for tmp files. 27651 27652{ 27653 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 27654 test -d "$tmp" 27655} || 27656{ 27657 tmp=./conf$$-$RANDOM 27658 (umask 077 && mkdir "$tmp") 27659} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 27660ac_tmp=$tmp 27661 27662# Set up the scripts for CONFIG_FILES section. 27663# No need to generate them if there are no CONFIG_FILES. 27664# This happens for instance with `./config.status config.h'. 27665if test -n "$CONFIG_FILES"; then 27666 27667 27668ac_cr=`echo X | tr X '\015'` 27669# On cygwin, bash can eat \r inside `` if the user requested igncr. 27670# But we know of no other shell where ac_cr would be empty at this 27671# point, so we can use a bashism as a fallback. 27672if test "x$ac_cr" = x; then 27673 eval ac_cr=\$\'\\r\' 27674fi 27675ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 27676if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 27677 ac_cs_awk_cr='\\r' 27678else 27679 ac_cs_awk_cr=$ac_cr 27680fi 27681 27682echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 27683_ACEOF 27684 27685 27686{ 27687 echo "cat >conf$$subs.awk <<_ACEOF" && 27688 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 27689 echo "_ACEOF" 27690} >conf$$subs.sh || 27691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 27692ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 27693ac_delim='%!_!# ' 27694for ac_last_try in false false false false false :; do 27695 . ./conf$$subs.sh || 27696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 27697 27698 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 27699 if test $ac_delim_n = $ac_delim_num; then 27700 break 27701 elif $ac_last_try; then 27702 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 27703 else 27704 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27705 fi 27706done 27707rm -f conf$$subs.sh 27708 27709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27710cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 27711_ACEOF 27712sed -n ' 27713h 27714s/^/S["/; s/!.*/"]=/ 27715p 27716g 27717s/^[^!]*!// 27718:repl 27719t repl 27720s/'"$ac_delim"'$// 27721t delim 27722:nl 27723h 27724s/\(.\{148\}\)..*/\1/ 27725t more1 27726s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 27727p 27728n 27729b repl 27730:more1 27731s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 27732p 27733g 27734s/.\{148\}// 27735t nl 27736:delim 27737h 27738s/\(.\{148\}\)..*/\1/ 27739t more2 27740s/["\\]/\\&/g; s/^/"/; s/$/"/ 27741p 27742b 27743:more2 27744s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 27745p 27746g 27747s/.\{148\}// 27748t delim 27749' <conf$$subs.awk | sed ' 27750/^[^""]/{ 27751 N 27752 s/\n// 27753} 27754' >>$CONFIG_STATUS || ac_write_fail=1 27755rm -f conf$$subs.awk 27756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27757_ACAWK 27758cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 27759 for (key in S) S_is_set[key] = 1 27760 FS = "" 27761 27762} 27763{ 27764 line = $ 0 27765 nfields = split(line, field, "@") 27766 substed = 0 27767 len = length(field[1]) 27768 for (i = 2; i < nfields; i++) { 27769 key = field[i] 27770 keylen = length(key) 27771 if (S_is_set[key]) { 27772 value = S[key] 27773 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 27774 len += length(value) + length(field[++i]) 27775 substed = 1 27776 } else 27777 len += 1 + keylen 27778 } 27779 27780 print line 27781} 27782 27783_ACAWK 27784_ACEOF 27785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27786if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 27787 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 27788else 27789 cat 27790fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 27791 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 27792_ACEOF 27793 27794# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 27795# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 27796# trailing colons and then remove the whole line if VPATH becomes empty 27797# (actually we leave an empty line to preserve line numbers). 27798if test "x$srcdir" = x.; then 27799 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 27800h 27801s/// 27802s/^/:/ 27803s/[ ]*$/:/ 27804s/:\$(srcdir):/:/g 27805s/:\${srcdir}:/:/g 27806s/:@srcdir@:/:/g 27807s/^:*// 27808s/:*$// 27809x 27810s/\(=[ ]*\).*/\1/ 27811G 27812s/\n// 27813s/^[^=]*=[ ]*$// 27814}' 27815fi 27816 27817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27818fi # test -n "$CONFIG_FILES" 27819 27820# Set up the scripts for CONFIG_HEADERS section. 27821# No need to generate them if there are no CONFIG_HEADERS. 27822# This happens for instance with `./config.status Makefile'. 27823if test -n "$CONFIG_HEADERS"; then 27824cat >"$ac_tmp/defines.awk" <<\_ACAWK || 27825BEGIN { 27826_ACEOF 27827 27828# Transform confdefs.h into an awk script `defines.awk', embedded as 27829# here-document in config.status, that substitutes the proper values into 27830# config.h.in to produce config.h. 27831 27832# Create a delimiter string that does not exist in confdefs.h, to ease 27833# handling of long lines. 27834ac_delim='%!_!# ' 27835for ac_last_try in false false :; do 27836 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 27837 if test -z "$ac_tt"; then 27838 break 27839 elif $ac_last_try; then 27840 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 27841 else 27842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27843 fi 27844done 27845 27846# For the awk script, D is an array of macro values keyed by name, 27847# likewise P contains macro parameters if any. Preserve backslash 27848# newline sequences. 27849 27850ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 27851sed -n ' 27852s/.\{148\}/&'"$ac_delim"'/g 27853t rset 27854:rset 27855s/^[ ]*#[ ]*define[ ][ ]*/ / 27856t def 27857d 27858:def 27859s/\\$// 27860t bsnl 27861s/["\\]/\\&/g 27862s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 27863D["\1"]=" \3"/p 27864s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 27865d 27866:bsnl 27867s/["\\]/\\&/g 27868s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 27869D["\1"]=" \3\\\\\\n"\\/p 27870t cont 27871s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 27872t cont 27873d 27874:cont 27875n 27876s/.\{148\}/&'"$ac_delim"'/g 27877t clear 27878:clear 27879s/\\$// 27880t bsnlc 27881s/["\\]/\\&/g; s/^/"/; s/$/"/p 27882d 27883:bsnlc 27884s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 27885b cont 27886' <confdefs.h | sed ' 27887s/'"$ac_delim"'/"\\\ 27888"/g' >>$CONFIG_STATUS || ac_write_fail=1 27889 27890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27891 for (key in D) D_is_set[key] = 1 27892 FS = "" 27893} 27894/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 27895 line = \$ 0 27896 split(line, arg, " ") 27897 if (arg[1] == "#") { 27898 defundef = arg[2] 27899 mac1 = arg[3] 27900 } else { 27901 defundef = substr(arg[1], 2) 27902 mac1 = arg[2] 27903 } 27904 split(mac1, mac2, "(") #) 27905 macro = mac2[1] 27906 prefix = substr(line, 1, index(line, defundef) - 1) 27907 if (D_is_set[macro]) { 27908 # Preserve the white space surrounding the "#". 27909 print prefix "define", macro P[macro] D[macro] 27910 next 27911 } else { 27912 # Replace #undef with comments. This is necessary, for example, 27913 # in the case of _POSIX_SOURCE, which is predefined and required 27914 # on some systems where configure will not decide to define it. 27915 if (defundef == "undef") { 27916 print "/*", prefix defundef, macro, "*/" 27917 next 27918 } 27919 } 27920} 27921{ print } 27922_ACAWK 27923_ACEOF 27924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27925 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 27926fi # test -n "$CONFIG_HEADERS" 27927 27928 27929eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 27930shift 27931for ac_tag 27932do 27933 case $ac_tag in 27934 :[FHLC]) ac_mode=$ac_tag; continue;; 27935 esac 27936 case $ac_mode$ac_tag in 27937 :[FHL]*:*);; 27938 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 27939 :[FH]-) ac_tag=-:-;; 27940 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 27941 esac 27942 ac_save_IFS=$IFS 27943 IFS=: 27944 set x $ac_tag 27945 IFS=$ac_save_IFS 27946 shift 27947 ac_file=$1 27948 shift 27949 27950 case $ac_mode in 27951 :L) ac_source=$1;; 27952 :[FH]) 27953 ac_file_inputs= 27954 for ac_f 27955 do 27956 case $ac_f in 27957 -) ac_f="$ac_tmp/stdin";; 27958 *) # Look for the file first in the build tree, then in the source tree 27959 # (if the path is not absolute). The absolute path cannot be DOS-style, 27960 # because $ac_f cannot contain `:'. 27961 test -f "$ac_f" || 27962 case $ac_f in 27963 [\\/$]*) false;; 27964 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 27965 esac || 27966 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 27967 esac 27968 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 27969 as_fn_append ac_file_inputs " '$ac_f'" 27970 done 27971 27972 # Let's still pretend it is `configure' which instantiates (i.e., don't 27973 # use $as_me), people would be surprised to read: 27974 # /* config.h. Generated by config.status. */ 27975 configure_input='Generated from '` 27976 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 27977 `' by configure.' 27978 if test x"$ac_file" != x-; then 27979 configure_input="$ac_file. $configure_input" 27980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 27981$as_echo "$as_me: creating $ac_file" >&6;} 27982 fi 27983 # Neutralize special characters interpreted by sed in replacement strings. 27984 case $configure_input in #( 27985 *\&* | *\|* | *\\* ) 27986 ac_sed_conf_input=`$as_echo "$configure_input" | 27987 sed 's/[\\\\&|]/\\\\&/g'`;; #( 27988 *) ac_sed_conf_input=$configure_input;; 27989 esac 27990 27991 case $ac_tag in 27992 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 27993 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 27994 esac 27995 ;; 27996 esac 27997 27998 ac_dir=`$as_dirname -- "$ac_file" || 27999$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28000 X"$ac_file" : 'X\(//\)[^/]' \| \ 28001 X"$ac_file" : 'X\(//\)$' \| \ 28002 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 28003$as_echo X"$ac_file" | 28004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28005 s//\1/ 28006 q 28007 } 28008 /^X\(\/\/\)[^/].*/{ 28009 s//\1/ 28010 q 28011 } 28012 /^X\(\/\/\)$/{ 28013 s//\1/ 28014 q 28015 } 28016 /^X\(\/\).*/{ 28017 s//\1/ 28018 q 28019 } 28020 s/.*/./; q'` 28021 as_dir="$ac_dir"; as_fn_mkdir_p 28022 ac_builddir=. 28023 28024case "$ac_dir" in 28025.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 28026*) 28027 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 28028 # A ".." for each directory in $ac_dir_suffix. 28029 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 28030 case $ac_top_builddir_sub in 28031 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 28032 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 28033 esac ;; 28034esac 28035ac_abs_top_builddir=$ac_pwd 28036ac_abs_builddir=$ac_pwd$ac_dir_suffix 28037# for backward compatibility: 28038ac_top_builddir=$ac_top_build_prefix 28039 28040case $srcdir in 28041 .) # We are building in place. 28042 ac_srcdir=. 28043 ac_top_srcdir=$ac_top_builddir_sub 28044 ac_abs_top_srcdir=$ac_pwd ;; 28045 [\\/]* | ?:[\\/]* ) # Absolute name. 28046 ac_srcdir=$srcdir$ac_dir_suffix; 28047 ac_top_srcdir=$srcdir 28048 ac_abs_top_srcdir=$srcdir ;; 28049 *) # Relative name. 28050 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 28051 ac_top_srcdir=$ac_top_build_prefix$srcdir 28052 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 28053esac 28054ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 28055 28056 28057 case $ac_mode in 28058 :F) 28059 # 28060 # CONFIG_FILE 28061 # 28062 28063 case $INSTALL in 28064 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 28065 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 28066 esac 28067 ac_MKDIR_P=$MKDIR_P 28068 case $MKDIR_P in 28069 [\\/$]* | ?:[\\/]* ) ;; 28070 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 28071 esac 28072_ACEOF 28073 28074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28075# If the template does not know about datarootdir, expand it. 28076# FIXME: This hack should be removed a few years after 2.60. 28077ac_datarootdir_hack=; ac_datarootdir_seen= 28078ac_sed_dataroot=' 28079/datarootdir/ { 28080 p 28081 q 28082} 28083/@datadir@/p 28084/@docdir@/p 28085/@infodir@/p 28086/@localedir@/p 28087/@mandir@/p' 28088case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 28089*datarootdir*) ac_datarootdir_seen=yes;; 28090*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 28091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 28092$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 28093_ACEOF 28094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28095 ac_datarootdir_hack=' 28096 s&@datadir@&$datadir&g 28097 s&@docdir@&$docdir&g 28098 s&@infodir@&$infodir&g 28099 s&@localedir@&$localedir&g 28100 s&@mandir@&$mandir&g 28101 s&\\\${datarootdir}&$datarootdir&g' ;; 28102esac 28103_ACEOF 28104 28105# Neutralize VPATH when `$srcdir' = `.'. 28106# Shell code in configure.ac might set extrasub. 28107# FIXME: do we really want to maintain this feature? 28108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28109ac_sed_extra="$ac_vpsub 28110$extrasub 28111_ACEOF 28112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28113:t 28114/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 28115s|@configure_input@|$ac_sed_conf_input|;t t 28116s&@top_builddir@&$ac_top_builddir_sub&;t t 28117s&@top_build_prefix@&$ac_top_build_prefix&;t t 28118s&@srcdir@&$ac_srcdir&;t t 28119s&@abs_srcdir@&$ac_abs_srcdir&;t t 28120s&@top_srcdir@&$ac_top_srcdir&;t t 28121s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 28122s&@builddir@&$ac_builddir&;t t 28123s&@abs_builddir@&$ac_abs_builddir&;t t 28124s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 28125s&@INSTALL@&$ac_INSTALL&;t t 28126s&@MKDIR_P@&$ac_MKDIR_P&;t t 28127$ac_datarootdir_hack 28128" 28129eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 28130 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28131 28132test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 28133 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 28134 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 28135 "$ac_tmp/out"`; test -z "$ac_out"; } && 28136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28137which seems to be undefined. Please make sure it is defined" >&5 28138$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28139which seems to be undefined. Please make sure it is defined" >&2;} 28140 28141 rm -f "$ac_tmp/stdin" 28142 case $ac_file in 28143 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 28144 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 28145 esac \ 28146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28147 ;; 28148 :H) 28149 # 28150 # CONFIG_HEADER 28151 # 28152 if test x"$ac_file" != x-; then 28153 { 28154 $as_echo "/* $configure_input */" \ 28155 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 28156 } >"$ac_tmp/config.h" \ 28157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28158 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 28159 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 28160$as_echo "$as_me: $ac_file is unchanged" >&6;} 28161 else 28162 rm -f "$ac_file" 28163 mv "$ac_tmp/config.h" "$ac_file" \ 28164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28165 fi 28166 else 28167 $as_echo "/* $configure_input */" \ 28168 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 28169 || as_fn_error $? "could not create -" "$LINENO" 5 28170 fi 28171# Compute "$ac_file"'s index in $config_headers. 28172_am_arg="$ac_file" 28173_am_stamp_count=1 28174for _am_header in $config_headers :; do 28175 case $_am_header in 28176 $_am_arg | $_am_arg:* ) 28177 break ;; 28178 * ) 28179 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 28180 esac 28181done 28182echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 28183$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28184 X"$_am_arg" : 'X\(//\)[^/]' \| \ 28185 X"$_am_arg" : 'X\(//\)$' \| \ 28186 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 28187$as_echo X"$_am_arg" | 28188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28189 s//\1/ 28190 q 28191 } 28192 /^X\(\/\/\)[^/].*/{ 28193 s//\1/ 28194 q 28195 } 28196 /^X\(\/\/\)$/{ 28197 s//\1/ 28198 q 28199 } 28200 /^X\(\/\).*/{ 28201 s//\1/ 28202 q 28203 } 28204 s/.*/./; q'`/stamp-h$_am_stamp_count 28205 ;; 28206 28207 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 28208$as_echo "$as_me: executing $ac_file commands" >&6;} 28209 ;; 28210 esac 28211 28212 28213 case $ac_file$ac_mode in 28214 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 28215 # Older Autoconf quotes --file arguments for eval, but not when files 28216 # are listed without --file. Let's play safe and only enable the eval 28217 # if we detect the quoting. 28218 case $CONFIG_FILES in 28219 *\'*) eval set x "$CONFIG_FILES" ;; 28220 *) set x $CONFIG_FILES ;; 28221 esac 28222 shift 28223 for mf 28224 do 28225 # Strip MF so we end up with the name of the file. 28226 mf=`echo "$mf" | sed -e 's/:.*$//'` 28227 # Check whether this is an Automake generated Makefile or not. 28228 # We used to match only the files named 'Makefile.in', but 28229 # some people rename them; so instead we look at the file content. 28230 # Grep'ing the first line is not enough: some people post-process 28231 # each Makefile.in and add a new line on top of each file to say so. 28232 # Grep'ing the whole file is not good either: AIX grep has a line 28233 # limit of 2048, but all sed's we know have understand at least 4000. 28234 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 28235 dirpart=`$as_dirname -- "$mf" || 28236$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28237 X"$mf" : 'X\(//\)[^/]' \| \ 28238 X"$mf" : 'X\(//\)$' \| \ 28239 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 28240$as_echo X"$mf" | 28241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28242 s//\1/ 28243 q 28244 } 28245 /^X\(\/\/\)[^/].*/{ 28246 s//\1/ 28247 q 28248 } 28249 /^X\(\/\/\)$/{ 28250 s//\1/ 28251 q 28252 } 28253 /^X\(\/\).*/{ 28254 s//\1/ 28255 q 28256 } 28257 s/.*/./; q'` 28258 else 28259 continue 28260 fi 28261 # Extract the definition of DEPDIR, am__include, and am__quote 28262 # from the Makefile without running 'make'. 28263 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 28264 test -z "$DEPDIR" && continue 28265 am__include=`sed -n 's/^am__include = //p' < "$mf"` 28266 test -z "$am__include" && continue 28267 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 28268 # Find all dependency output files, they are included files with 28269 # $(DEPDIR) in their names. We invoke sed twice because it is the 28270 # simplest approach to changing $(DEPDIR) to its actual value in the 28271 # expansion. 28272 for file in `sed -n " 28273 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 28274 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 28275 # Make sure the directory exists. 28276 test -f "$dirpart/$file" && continue 28277 fdir=`$as_dirname -- "$file" || 28278$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28279 X"$file" : 'X\(//\)[^/]' \| \ 28280 X"$file" : 'X\(//\)$' \| \ 28281 X"$file" : 'X\(/\)' \| . 2>/dev/null || 28282$as_echo X"$file" | 28283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28284 s//\1/ 28285 q 28286 } 28287 /^X\(\/\/\)[^/].*/{ 28288 s//\1/ 28289 q 28290 } 28291 /^X\(\/\/\)$/{ 28292 s//\1/ 28293 q 28294 } 28295 /^X\(\/\).*/{ 28296 s//\1/ 28297 q 28298 } 28299 s/.*/./; q'` 28300 as_dir=$dirpart/$fdir; as_fn_mkdir_p 28301 # echo "creating $dirpart/$file" 28302 echo '# dummy' > "$dirpart/$file" 28303 done 28304 done 28305} 28306 ;; 28307 "libtool":C) 28308 28309 # See if we are running on zsh, and set the options that allow our 28310 # commands through without removal of \ escapes. 28311 if test -n "${ZSH_VERSION+set}"; then 28312 setopt NO_GLOB_SUBST 28313 fi 28314 28315 cfgfile=${ofile}T 28316 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 28317 $RM "$cfgfile" 28318 28319 cat <<_LT_EOF >> "$cfgfile" 28320#! $SHELL 28321# Generated automatically by $as_me ($PACKAGE) $VERSION 28322# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 28323# NOTE: Changes made to this file will be lost: look at ltmain.sh. 28324 28325# Provide generalized library-building support services. 28326# Written by Gordon Matzigkeit, 1996 28327 28328# Copyright (C) 2014 Free Software Foundation, Inc. 28329# This is free software; see the source for copying conditions. There is NO 28330# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28331 28332# GNU Libtool is free software; you can redistribute it and/or modify 28333# it under the terms of the GNU General Public License as published by 28334# the Free Software Foundation; either version 2 of of the License, or 28335# (at your option) any later version. 28336# 28337# As a special exception to the GNU General Public License, if you 28338# distribute this file as part of a program or library that is built 28339# using GNU Libtool, you may include this file under the same 28340# distribution terms that you use for the rest of that program. 28341# 28342# GNU Libtool is distributed in the hope that it will be useful, but 28343# WITHOUT ANY WARRANTY; without even the implied warranty of 28344# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 28345# GNU General Public License for more details. 28346# 28347# You should have received a copy of the GNU General Public License 28348# along with this program. If not, see <http://www.gnu.org/licenses/>. 28349 28350 28351# The names of the tagged configurations supported by this script. 28352available_tags='' 28353 28354# Configured defaults for sys_lib_dlsearch_path munging. 28355: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 28356 28357# ### BEGIN LIBTOOL CONFIG 28358 28359# A sed program that does not truncate output. 28360SED=$lt_SED 28361 28362# Sed that helps us avoid accidentally triggering echo(1) options like -n. 28363Xsed="\$SED -e 1s/^X//" 28364 28365# A grep program that handles long lines. 28366GREP=$lt_GREP 28367 28368# An ERE matcher. 28369EGREP=$lt_EGREP 28370 28371# A literal string matcher. 28372FGREP=$lt_FGREP 28373 28374# Shell to use when invoking shell scripts. 28375SHELL=$lt_SHELL 28376 28377# An echo program that protects backslashes. 28378ECHO=$lt_ECHO 28379 28380# Whether or not to build shared libraries. 28381build_libtool_libs=$enable_shared 28382 28383# Which release of libtool.m4 was used? 28384macro_version=$macro_version 28385macro_revision=$macro_revision 28386 28387# Whether or not to build static libraries. 28388build_old_libs=$enable_static 28389 28390# What type of objects to build. 28391pic_mode=$pic_mode 28392 28393# Whether or not to optimize for fast installation. 28394fast_install=$enable_fast_install 28395 28396# Shared archive member basename,for filename based shared library versioning on AIX. 28397shared_archive_member_spec=$shared_archive_member_spec 28398 28399# The PATH separator for the build system. 28400PATH_SEPARATOR=$lt_PATH_SEPARATOR 28401 28402# The host system. 28403host_alias=$host_alias 28404host=$host 28405host_os=$host_os 28406 28407# The build system. 28408build_alias=$build_alias 28409build=$build 28410build_os=$build_os 28411 28412# A BSD- or MS-compatible name lister. 28413NM=$lt_NM 28414 28415# Whether we need soft or hard links. 28416LN_S=$lt_LN_S 28417 28418# What is the maximum length of a command? 28419max_cmd_len=$max_cmd_len 28420 28421# Object file suffix (normally "o"). 28422objext=$ac_objext 28423 28424# Executable file suffix (normally ""). 28425exeext=$exeext 28426 28427# whether the shell understands "unset". 28428lt_unset=$lt_unset 28429 28430# turn spaces into newlines. 28431SP2NL=$lt_lt_SP2NL 28432 28433# turn newlines into spaces. 28434NL2SP=$lt_lt_NL2SP 28435 28436# convert \$build file names to \$host format. 28437to_host_file_cmd=$lt_cv_to_host_file_cmd 28438 28439# convert \$build files to toolchain format. 28440to_tool_file_cmd=$lt_cv_to_tool_file_cmd 28441 28442# An object symbol dumper. 28443OBJDUMP=$lt_OBJDUMP 28444 28445# Method to check whether dependent libraries are shared objects. 28446deplibs_check_method=$lt_deplibs_check_method 28447 28448# Command to use when deplibs_check_method = "file_magic". 28449file_magic_cmd=$lt_file_magic_cmd 28450 28451# How to find potential files when deplibs_check_method = "file_magic". 28452file_magic_glob=$lt_file_magic_glob 28453 28454# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 28455want_nocaseglob=$lt_want_nocaseglob 28456 28457# DLL creation program. 28458DLLTOOL=$lt_DLLTOOL 28459 28460# Command to associate shared and link libraries. 28461sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 28462 28463# The archiver. 28464AR=$lt_AR 28465 28466# Flags to create an archive. 28467AR_FLAGS=$lt_AR_FLAGS 28468 28469# How to feed a file listing to the archiver. 28470archiver_list_spec=$lt_archiver_list_spec 28471 28472# A symbol stripping program. 28473STRIP=$lt_STRIP 28474 28475# Commands used to install an old-style archive. 28476RANLIB=$lt_RANLIB 28477old_postinstall_cmds=$lt_old_postinstall_cmds 28478old_postuninstall_cmds=$lt_old_postuninstall_cmds 28479 28480# Whether to use a lock for old archive extraction. 28481lock_old_archive_extraction=$lock_old_archive_extraction 28482 28483# A C compiler. 28484LTCC=$lt_CC 28485 28486# LTCC compiler flags. 28487LTCFLAGS=$lt_CFLAGS 28488 28489# Take the output of nm and produce a listing of raw symbols and C names. 28490global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 28491 28492# Transform the output of nm in a proper C declaration. 28493global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 28494 28495# Transform the output of nm into a list of symbols to manually relocate. 28496global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 28497 28498# Transform the output of nm in a C name address pair. 28499global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 28500 28501# Transform the output of nm in a C name address pair when lib prefix is needed. 28502global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 28503 28504# The name lister interface. 28505nm_interface=$lt_lt_cv_nm_interface 28506 28507# Specify filename containing input files for \$NM. 28508nm_file_list_spec=$lt_nm_file_list_spec 28509 28510# The root where to search for dependent libraries,and where our libraries should be installed. 28511lt_sysroot=$lt_sysroot 28512 28513# Command to truncate a binary pipe. 28514lt_truncate_bin=$lt_lt_cv_truncate_bin 28515 28516# The name of the directory that contains temporary libtool files. 28517objdir=$objdir 28518 28519# Used to examine libraries when file_magic_cmd begins with "file". 28520MAGIC_CMD=$MAGIC_CMD 28521 28522# Must we lock files when doing compilation? 28523need_locks=$lt_need_locks 28524 28525# Manifest tool. 28526MANIFEST_TOOL=$lt_MANIFEST_TOOL 28527 28528# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 28529DSYMUTIL=$lt_DSYMUTIL 28530 28531# Tool to change global to local symbols on Mac OS X. 28532NMEDIT=$lt_NMEDIT 28533 28534# Tool to manipulate fat objects and archives on Mac OS X. 28535LIPO=$lt_LIPO 28536 28537# ldd/readelf like tool for Mach-O binaries on Mac OS X. 28538OTOOL=$lt_OTOOL 28539 28540# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 28541OTOOL64=$lt_OTOOL64 28542 28543# Old archive suffix (normally "a"). 28544libext=$libext 28545 28546# Shared library suffix (normally ".so"). 28547shrext_cmds=$lt_shrext_cmds 28548 28549# The commands to extract the exported symbol list from a shared archive. 28550extract_expsyms_cmds=$lt_extract_expsyms_cmds 28551 28552# Variables whose values should be saved in libtool wrapper scripts and 28553# restored at link time. 28554variables_saved_for_relink=$lt_variables_saved_for_relink 28555 28556# Do we need the "lib" prefix for modules? 28557need_lib_prefix=$need_lib_prefix 28558 28559# Do we need a version for libraries? 28560need_version=$need_version 28561 28562# Library versioning type. 28563version_type=$version_type 28564 28565# Shared library runtime path variable. 28566runpath_var=$runpath_var 28567 28568# Shared library path variable. 28569shlibpath_var=$shlibpath_var 28570 28571# Is shlibpath searched before the hard-coded library search path? 28572shlibpath_overrides_runpath=$shlibpath_overrides_runpath 28573 28574# Format of library name prefix. 28575libname_spec=$lt_libname_spec 28576 28577# List of archive names. First name is the real one, the rest are links. 28578# The last name is the one that the linker finds with -lNAME 28579library_names_spec=$lt_library_names_spec 28580 28581# The coded name of the library, if different from the real name. 28582soname_spec=$lt_soname_spec 28583 28584# Permission mode override for installation of shared libraries. 28585install_override_mode=$lt_install_override_mode 28586 28587# Command to use after installation of a shared archive. 28588postinstall_cmds=$lt_postinstall_cmds 28589 28590# Command to use after uninstallation of a shared archive. 28591postuninstall_cmds=$lt_postuninstall_cmds 28592 28593# Commands used to finish a libtool library installation in a directory. 28594finish_cmds=$lt_finish_cmds 28595 28596# As "finish_cmds", except a single script fragment to be evaled but 28597# not shown. 28598finish_eval=$lt_finish_eval 28599 28600# Whether we should hardcode library paths into libraries. 28601hardcode_into_libs=$hardcode_into_libs 28602 28603# Compile-time system search path for libraries. 28604sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 28605 28606# Detected run-time system search path for libraries. 28607sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 28608 28609# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 28610configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 28611 28612# Whether dlopen is supported. 28613dlopen_support=$enable_dlopen 28614 28615# Whether dlopen of programs is supported. 28616dlopen_self=$enable_dlopen_self 28617 28618# Whether dlopen of statically linked programs is supported. 28619dlopen_self_static=$enable_dlopen_self_static 28620 28621# Commands to strip libraries. 28622old_striplib=$lt_old_striplib 28623striplib=$lt_striplib 28624 28625 28626# The linker used to build libraries. 28627LD=$lt_LD 28628 28629# How to create reloadable object files. 28630reload_flag=$lt_reload_flag 28631reload_cmds=$lt_reload_cmds 28632 28633# Commands used to build an old-style archive. 28634old_archive_cmds=$lt_old_archive_cmds 28635 28636# A language specific compiler. 28637CC=$lt_compiler 28638 28639# Is the compiler the GNU compiler? 28640with_gcc=$GCC 28641 28642# Compiler flag to turn off builtin functions. 28643no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 28644 28645# Additional compiler flags for building library objects. 28646pic_flag=$lt_lt_prog_compiler_pic 28647 28648# How to pass a linker flag through the compiler. 28649wl=$lt_lt_prog_compiler_wl 28650 28651# Compiler flag to prevent dynamic linking. 28652link_static_flag=$lt_lt_prog_compiler_static 28653 28654# Does compiler simultaneously support -c and -o options? 28655compiler_c_o=$lt_lt_cv_prog_compiler_c_o 28656 28657# Whether or not to add -lc for building shared libraries. 28658build_libtool_need_lc=$archive_cmds_need_lc 28659 28660# Whether or not to disallow shared libs when runtime libs are static. 28661allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 28662 28663# Compiler flag to allow reflexive dlopens. 28664export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 28665 28666# Compiler flag to generate shared objects directly from archives. 28667whole_archive_flag_spec=$lt_whole_archive_flag_spec 28668 28669# Whether the compiler copes with passing no objects directly. 28670compiler_needs_object=$lt_compiler_needs_object 28671 28672# Create an old-style archive from a shared archive. 28673old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 28674 28675# Create a temporary old-style archive to link instead of a shared archive. 28676old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 28677 28678# Commands used to build a shared archive. 28679archive_cmds=$lt_archive_cmds 28680archive_expsym_cmds=$lt_archive_expsym_cmds 28681 28682# Commands used to build a loadable module if different from building 28683# a shared archive. 28684module_cmds=$lt_module_cmds 28685module_expsym_cmds=$lt_module_expsym_cmds 28686 28687# Whether we are building with GNU ld or not. 28688with_gnu_ld=$lt_with_gnu_ld 28689 28690# Flag that allows shared libraries with undefined symbols to be built. 28691allow_undefined_flag=$lt_allow_undefined_flag 28692 28693# Flag that enforces no undefined symbols. 28694no_undefined_flag=$lt_no_undefined_flag 28695 28696# Flag to hardcode \$libdir into a binary during linking. 28697# This must work even if \$libdir does not exist 28698hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 28699 28700# Whether we need a single "-rpath" flag with a separated argument. 28701hardcode_libdir_separator=$lt_hardcode_libdir_separator 28702 28703# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 28704# DIR into the resulting binary. 28705hardcode_direct=$hardcode_direct 28706 28707# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 28708# DIR into the resulting binary and the resulting library dependency is 28709# "absolute",i.e impossible to change by setting \$shlibpath_var if the 28710# library is relocated. 28711hardcode_direct_absolute=$hardcode_direct_absolute 28712 28713# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 28714# into the resulting binary. 28715hardcode_minus_L=$hardcode_minus_L 28716 28717# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 28718# into the resulting binary. 28719hardcode_shlibpath_var=$hardcode_shlibpath_var 28720 28721# Set to "yes" if building a shared library automatically hardcodes DIR 28722# into the library and all subsequent libraries and executables linked 28723# against it. 28724hardcode_automatic=$hardcode_automatic 28725 28726# Set to yes if linker adds runtime paths of dependent libraries 28727# to runtime path list. 28728inherit_rpath=$inherit_rpath 28729 28730# Whether libtool must link a program against all its dependency libraries. 28731link_all_deplibs=$link_all_deplibs 28732 28733# Set to "yes" if exported symbols are required. 28734always_export_symbols=$always_export_symbols 28735 28736# The commands to list exported symbols. 28737export_symbols_cmds=$lt_export_symbols_cmds 28738 28739# Symbols that should not be listed in the preloaded symbols. 28740exclude_expsyms=$lt_exclude_expsyms 28741 28742# Symbols that must always be exported. 28743include_expsyms=$lt_include_expsyms 28744 28745# Commands necessary for linking programs (against libraries) with templates. 28746prelink_cmds=$lt_prelink_cmds 28747 28748# Commands necessary for finishing linking programs. 28749postlink_cmds=$lt_postlink_cmds 28750 28751# Specify filename containing input files. 28752file_list_spec=$lt_file_list_spec 28753 28754# How to hardcode a shared library path into an executable. 28755hardcode_action=$hardcode_action 28756 28757# ### END LIBTOOL CONFIG 28758 28759_LT_EOF 28760 28761 cat <<'_LT_EOF' >> "$cfgfile" 28762 28763# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 28764 28765# func_munge_path_list VARIABLE PATH 28766# ----------------------------------- 28767# VARIABLE is name of variable containing _space_ separated list of 28768# directories to be munged by the contents of PATH, which is string 28769# having a format: 28770# "DIR[:DIR]:" 28771# string "DIR[ DIR]" will be prepended to VARIABLE 28772# ":DIR[:DIR]" 28773# string "DIR[ DIR]" will be appended to VARIABLE 28774# "DIRP[:DIRP]::[DIRA:]DIRA" 28775# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 28776# "DIRA[ DIRA]" will be appended to VARIABLE 28777# "DIR[:DIR]" 28778# VARIABLE will be replaced by "DIR[ DIR]" 28779func_munge_path_list () 28780{ 28781 case x$2 in 28782 x) 28783 ;; 28784 *:) 28785 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 28786 ;; 28787 x:*) 28788 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 28789 ;; 28790 *::*) 28791 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 28792 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 28793 ;; 28794 *) 28795 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 28796 ;; 28797 esac 28798} 28799 28800 28801# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 28802func_cc_basename () 28803{ 28804 for cc_temp in $*""; do 28805 case $cc_temp in 28806 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 28807 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 28808 \-*) ;; 28809 *) break;; 28810 esac 28811 done 28812 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 28813} 28814 28815 28816# ### END FUNCTIONS SHARED WITH CONFIGURE 28817 28818_LT_EOF 28819 28820 case $host_os in 28821 aix3*) 28822 cat <<\_LT_EOF >> "$cfgfile" 28823# AIX sometimes has problems with the GCC collect2 program. For some 28824# reason, if we set the COLLECT_NAMES environment variable, the problems 28825# vanish in a puff of smoke. 28826if test set != "${COLLECT_NAMES+set}"; then 28827 COLLECT_NAMES= 28828 export COLLECT_NAMES 28829fi 28830_LT_EOF 28831 ;; 28832 esac 28833 28834 28835ltmain=$ac_aux_dir/ltmain.sh 28836 28837 28838 # We use sed instead of cat because bash on DJGPP gets confused if 28839 # if finds mixed CR/LF and LF-only lines. Since sed operates in 28840 # text mode, it properly converts lines to CR/LF. This bash problem 28841 # is reportedly fixed, but why not run on old versions too? 28842 sed '$q' "$ltmain" >> "$cfgfile" \ 28843 || (rm -f "$cfgfile"; exit 1) 28844 28845 mv -f "$cfgfile" "$ofile" || 28846 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 28847 chmod +x "$ofile" 28848 28849 ;; 28850 28851 esac 28852done # for ac_tag 28853 28854 28855as_fn_exit 0 28856_ACEOF 28857ac_clean_files=$ac_clean_files_save 28858 28859test $ac_write_fail = 0 || 28860 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 28861 28862 28863# configure is writing to config.log, and then calls config.status. 28864# config.status does its own redirection, appending to config.log. 28865# Unfortunately, on DOS this fails, as config.log is still kept open 28866# by configure, so config.status won't be able to write to it; its 28867# output is simply discarded. So we exec the FD to /dev/null, 28868# effectively closing config.log, so it can be properly (re)opened and 28869# appended to by config.status. When coming back to configure, we 28870# need to make the FD available again. 28871if test "$no_create" != yes; then 28872 ac_cs_success=: 28873 ac_config_status_args= 28874 test "$silent" = yes && 28875 ac_config_status_args="$ac_config_status_args --quiet" 28876 exec 5>/dev/null 28877 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 28878 exec 5>>config.log 28879 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 28880 # would make configure fail if this is the last instruction. 28881 $ac_cs_success || as_fn_exit 1 28882fi 28883 28884# 28885# CONFIG_SUBDIRS section. 28886# 28887if test "$no_recursion" != yes; then 28888 28889 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 28890 # so they do not pile up. 28891 ac_sub_configure_args= 28892 ac_prev= 28893 eval "set x $ac_configure_args" 28894 shift 28895 for ac_arg 28896 do 28897 if test -n "$ac_prev"; then 28898 ac_prev= 28899 continue 28900 fi 28901 case $ac_arg in 28902 -cache-file | --cache-file | --cache-fil | --cache-fi \ 28903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 28904 ac_prev=cache_file ;; 28905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 28906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 28907 | --c=*) 28908 ;; 28909 --config-cache | -C) 28910 ;; 28911 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 28912 ac_prev=srcdir ;; 28913 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 28914 ;; 28915 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 28916 ac_prev=prefix ;; 28917 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 28918 ;; 28919 --disable-option-checking) 28920 ;; 28921 *) 28922 case $ac_arg in 28923 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 28924 esac 28925 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 28926 esac 28927 done 28928 28929 # Always prepend --prefix to ensure using the same prefix 28930 # in subdir configurations. 28931 ac_arg="--prefix=$prefix" 28932 case $ac_arg in 28933 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 28934 esac 28935 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 28936 28937 # Pass --silent 28938 if test "$silent" = yes; then 28939 ac_sub_configure_args="--silent $ac_sub_configure_args" 28940 fi 28941 28942 # Always prepend --disable-option-checking to silence warnings, since 28943 # different subdirs can have different --enable and --with options. 28944 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 28945 28946 ac_popdir=`pwd` 28947 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 28948 28949 # Do not complain, so a configure script can configure whichever 28950 # parts of a large source tree are present. 28951 test -d "$srcdir/$ac_dir" || continue 28952 28953 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 28954 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 28955 $as_echo "$ac_msg" >&6 28956 as_dir="$ac_dir"; as_fn_mkdir_p 28957 ac_builddir=. 28958 28959case "$ac_dir" in 28960.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 28961*) 28962 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 28963 # A ".." for each directory in $ac_dir_suffix. 28964 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 28965 case $ac_top_builddir_sub in 28966 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 28967 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 28968 esac ;; 28969esac 28970ac_abs_top_builddir=$ac_pwd 28971ac_abs_builddir=$ac_pwd$ac_dir_suffix 28972# for backward compatibility: 28973ac_top_builddir=$ac_top_build_prefix 28974 28975case $srcdir in 28976 .) # We are building in place. 28977 ac_srcdir=. 28978 ac_top_srcdir=$ac_top_builddir_sub 28979 ac_abs_top_srcdir=$ac_pwd ;; 28980 [\\/]* | ?:[\\/]* ) # Absolute name. 28981 ac_srcdir=$srcdir$ac_dir_suffix; 28982 ac_top_srcdir=$srcdir 28983 ac_abs_top_srcdir=$srcdir ;; 28984 *) # Relative name. 28985 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 28986 ac_top_srcdir=$ac_top_build_prefix$srcdir 28987 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 28988esac 28989ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 28990 28991 28992 cd "$ac_dir" 28993 28994 # Check for guested configure; otherwise get Cygnus style configure. 28995 if test -f "$ac_srcdir/configure.gnu"; then 28996 ac_sub_configure=$ac_srcdir/configure.gnu 28997 elif test -f "$ac_srcdir/configure"; then 28998 ac_sub_configure=$ac_srcdir/configure 28999 elif test -f "$ac_srcdir/configure.in"; then 29000 # This should be Cygnus configure. 29001 ac_sub_configure=$ac_aux_dir/configure 29002 else 29003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 29004$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 29005 ac_sub_configure= 29006 fi 29007 29008 # The recursion is here. 29009 if test -n "$ac_sub_configure"; then 29010 # Make the cache file name correct relative to the subdirectory. 29011 case $cache_file in 29012 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 29013 *) # Relative name. 29014 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 29015 esac 29016 29017 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 29018$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 29019 # The eval makes quoting arguments work. 29020 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 29021 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 29022 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 29023 fi 29024 29025 cd "$ac_popdir" 29026 done 29027fi 29028if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 29029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 29030$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 29031fi 29032
|