1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for sntp 4.2.8p1. 4# 5# Report bugs to <http://bugs.ntp.org./>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: http://bugs.ntp.org./ about your system, including any 251$0: error possibly output before this message. Then install 252$0: a modern shell, or manually run the script under such a 253$0: shell if you do have one." 254 fi 255 exit 1 256fi 257fi 258fi 259SHELL=${CONFIG_SHELL-/bin/sh} 260export SHELL 261# Unset more variables known to interfere with behavior of common tools. 262CLICOLOR_FORCE= GREP_OPTIONS= 263unset CLICOLOR_FORCE GREP_OPTIONS 264 265## --------------------- ## 266## M4sh Shell Functions. ## 267## --------------------- ## 268# as_fn_unset VAR 269# --------------- 270# Portably unset VAR. 271as_fn_unset () 272{ 273 { eval $1=; unset $1;} 274} 275as_unset=as_fn_unset 276 277# as_fn_set_status STATUS 278# ----------------------- 279# Set $? to STATUS, without forking. 280as_fn_set_status () 281{ 282 return $1 283} # as_fn_set_status 284 285# as_fn_exit STATUS 286# ----------------- 287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 288as_fn_exit () 289{ 290 set +e 291 as_fn_set_status $1 292 exit $1 293} # as_fn_exit 294 295# as_fn_mkdir_p 296# ------------- 297# Create "$as_dir" as a directory, including parents if necessary. 298as_fn_mkdir_p () 299{ 300 301 case $as_dir in #( 302 -*) as_dir=./$as_dir;; 303 esac 304 test -d "$as_dir" || eval $as_mkdir_p || { 305 as_dirs= 306 while :; do 307 case $as_dir in #( 308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 309 *) as_qdir=$as_dir;; 310 esac 311 as_dirs="'$as_qdir' $as_dirs" 312 as_dir=`$as_dirname -- "$as_dir" || 313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 314 X"$as_dir" : 'X\(//\)[^/]' \| \ 315 X"$as_dir" : 'X\(//\)$' \| \ 316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 317$as_echo X"$as_dir" | 318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\/\)[^/].*/{ 323 s//\1/ 324 q 325 } 326 /^X\(\/\/\)$/{ 327 s//\1/ 328 q 329 } 330 /^X\(\/\).*/{ 331 s//\1/ 332 q 333 } 334 s/.*/./; q'` 335 test -d "$as_dir" && break 336 done 337 test -z "$as_dirs" || eval "mkdir $as_dirs" 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 339 340 341} # as_fn_mkdir_p 342# as_fn_append VAR VALUE 343# ---------------------- 344# Append the text in VALUE to the end of the definition contained in VAR. Take 345# advantage of any shell optimizations that allow amortized linear growth over 346# repeated appends, instead of the typical quadratic growth present in naive 347# implementations. 348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 349 eval 'as_fn_append () 350 { 351 eval $1+=\$2 352 }' 353else 354 as_fn_append () 355 { 356 eval $1=\$$1\$2 357 } 358fi # as_fn_append 359 360# as_fn_arith ARG... 361# ------------------ 362# Perform arithmetic evaluation on the ARGs, and store the result in the 363# global $as_val. Take advantage of shells that can avoid forks. The arguments 364# must be portable across $(()) and expr. 365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 366 eval 'as_fn_arith () 367 { 368 as_val=$(( $* )) 369 }' 370else 371 as_fn_arith () 372 { 373 as_val=`expr "$@" || test $? -eq 1` 374 } 375fi # as_fn_arith 376 377 378# as_fn_error STATUS ERROR [LINENO LOG_FD] 379# ---------------------------------------- 380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 382# script with STATUS, using 1 if that was 0. 383as_fn_error () 384{ 385 as_status=$1; test $as_status -eq 0 && as_status=1 386 if test "$4"; then 387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 389 fi 390 $as_echo "$as_me: error: $2" >&2 391 as_fn_exit $as_status 392} # as_fn_error 393 394if expr a : '\(a\)' >/dev/null 2>&1 && 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then 396 as_expr=expr 397else 398 as_expr=false 399fi 400 401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 402 as_basename=basename 403else 404 as_basename=false 405fi 406 407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 408 as_dirname=dirname 409else 410 as_dirname=false 411fi 412 413as_me=`$as_basename -- "$0" || 414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 415 X"$0" : 'X\(//\)$' \| \ 416 X"$0" : 'X\(/\)' \| . 2>/dev/null || 417$as_echo X/"$0" | 418 sed '/^.*\/\([^/][^/]*\)\/*$/{ 419 s//\1/ 420 q 421 } 422 /^X\/\(\/\/\)$/{ 423 s//\1/ 424 q 425 } 426 /^X\/\(\/\).*/{ 427 s//\1/ 428 q 429 } 430 s/.*/./; q'` 431 432# Avoid depending upon Character Ranges. 433as_cr_letters='abcdefghijklmnopqrstuvwxyz' 434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 435as_cr_Letters=$as_cr_letters$as_cr_LETTERS 436as_cr_digits='0123456789' 437as_cr_alnum=$as_cr_Letters$as_cr_digits 438 439 440 as_lineno_1=$LINENO as_lineno_1a=$LINENO 441 as_lineno_2=$LINENO as_lineno_2a=$LINENO 442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 445 sed -n ' 446 p 447 /[$]LINENO/= 448 ' <$as_myself | 449 sed ' 450 s/[$]LINENO.*/&-/ 451 t lineno 452 b 453 :lineno 454 N 455 :loop 456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 457 t loop 458 s/-\n.*// 459 ' >$as_me.lineno && 460 chmod +x "$as_me.lineno" || 461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 462 463 # Don't try to exec as it changes $[0], causing all sort of problems 464 # (the dirname of $[0] is not the place where we might find the 465 # original and so on. Autoconf is especially sensitive to this). 466 . "./$as_me.lineno" 467 # Exit status is that of the last command. 468 exit 469} 470 471ECHO_C= ECHO_N= ECHO_T= 472case `echo -n x` in #((((( 473-n*) 474 case `echo 'xy\c'` in 475 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 476 xy) ECHO_C='\c';; 477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 478 ECHO_T=' ';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 2>/dev/null 490fi 491if (echo >conf$$.file) 2>/dev/null; then 492 if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500 elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502 else 503 as_ln_s='cp -p' 504 fi 505else 506 as_ln_s='cp -p' 507fi 508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 509rmdir conf$$.dir 2>/dev/null 510 511if mkdir -p . 2>/dev/null; then 512 as_mkdir_p='mkdir -p "$as_dir"' 513else 514 test -d ./-p && rmdir ./-p 515 as_mkdir_p=false 516fi 517 518if test -x / >/dev/null 2>&1; then 519 as_test_x='test -x' 520else 521 if ls -dL / >/dev/null 2>&1; then 522 as_ls_L_option=L 523 else 524 as_ls_L_option= 525 fi 526 as_test_x=' 527 eval sh -c '\'' 528 if test -d "$1"; then 529 test -d "$1/."; 530 else 531 case $1 in #( 532 -*)set "./$1";; 533 esac; 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 535 ???[sx]*):;;*)false;;esac;fi 536 '\'' sh 537 ' 538fi 539as_executable_p=$as_test_x 540 541# Sed expression to map a string onto a valid CPP name. 542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 543 544# Sed expression to map a string onto a valid variable name. 545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 546 547SHELL=${CONFIG_SHELL-/bin/sh} 548 549 550test -n "$DJDIR" || exec 7<&0 </dev/null 551exec 6>&1 552 553# Name of the host. 554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 555# so uname gets run too. 556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 557 558# 559# Initializations. 560# 561ac_default_prefix=/usr/local 562ac_clean_files= 563ac_config_libobj_dir=. 564LIBOBJS= 565cross_compiling=no 566subdirs= 567MFLAGS= 568MAKEFLAGS= 569 570# Identity of this package. 571PACKAGE_NAME='sntp' 572PACKAGE_TARNAME='sntp' 573PACKAGE_VERSION='4.2.8p1' 574PACKAGE_STRING='sntp 4.2.8p1' 575PACKAGE_BUGREPORT='http://bugs.ntp.org./' 576PACKAGE_URL='http://www.ntp.org./' 577 578# Factoring default headers for most tests. 579ac_includes_default="\ 580#include <stdio.h> 581#ifdef HAVE_SYS_TYPES_H 582# include <sys/types.h> 583#endif 584#ifdef HAVE_SYS_STAT_H 585# include <sys/stat.h> 586#endif 587#ifdef STDC_HEADERS 588# include <stdlib.h> 589# include <stddef.h> 590#else 591# ifdef HAVE_STDLIB_H 592# include <stdlib.h> 593# endif 594#endif 595#ifdef HAVE_STRING_H 596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 597# include <memory.h> 598# endif 599# include <string.h> 600#endif 601#ifdef HAVE_STRINGS_H 602# include <strings.h> 603#endif 604#ifdef HAVE_INTTYPES_H 605# include <inttypes.h> 606#endif 607#ifdef HAVE_STDINT_H 608# include <stdint.h> 609#endif 610#ifdef HAVE_UNISTD_H 611# include <unistd.h> 612#endif" 613 614ac_header_list= 615enable_option_checking=no 616ac_subst_vars='am__EXEEXT_FALSE 617am__EXEEXT_TRUE 618LTLIBOBJS 619GTEST_AVAILABLE_FALSE 620GTEST_AVAILABLE_TRUE 621GTEST_CPPFLAGS 622GTEST_CXXFLAGS 623GTEST_LIBS 624GTEST_LDFLAGS 625GTEST_CONFIG 626CXXCPP 627am__fastdepCXX_FALSE 628am__fastdepCXX_TRUE 629CXXDEPMODE 630ac_ct_CXX 631CXXFLAGS 632CXX 633VER_SUFFIX 634LIB_SYSLOG 635subdirs 636BUILD_LIBEVENT_FALSE 637BUILD_LIBEVENT_TRUE 638LDADD_LIBEVENT 639CPPFLAGS_LIBEVENT 640PKG_CONFIG 641NTP_FORCE_LIBEVENT_DIST 642LIBOPTS_DIR 643LIBOPTS_CFLAGS 644LIBOPTS_LDADD 645NEED_LIBOPTS_FALSE 646NEED_LIBOPTS_TRUE 647INSTALL_LIBOPTS_FALSE 648INSTALL_LIBOPTS_TRUE 649POSIX_SHELL 650GL_GENERATE_STDNORETURN_H_FALSE 651GL_GENERATE_STDNORETURN_H_TRUE 652STDNORETURN_H 653BUILD_SNTP_FALSE 654BUILD_SNTP_TRUE 655SNTP 656LIBTOOL_DEPS 657OTOOL64 658OTOOL 659LIPO 660NMEDIT 661DSYMUTIL 662MANIFEST_TOOL 663RANLIB 664ac_ct_AR 665AR 666DLLTOOL 667OBJDUMP 668LN_S 669NM 670ac_ct_DUMPBIN 671DUMPBIN 672LIBTOOL 673LIBOBJS 674PTHREADS_FALSE 675PTHREADS_TRUE 676LIBISC_PTHREADS_NOTHREADS 677PTHREAD_LIBS 678HAVE_INLINE 679LDADD_LIBUTIL 680ALLOCA 681LIBM 682EDITLINE_LIBS 683LD 684FGREP 685SED 686LDADD_LIBNTP 687NTP_CROSSCOMPILE_FALSE 688NTP_CROSSCOMPILE_TRUE 689TIMETRIM_NI 690TIMETRIM_MS 691TIMETRIM_DS 692TIMETRIM_DL 693TIMETRIM_DB 694TICKADJ_NI 695TICKADJ_MS 696TICKADJ_DS 697TICKADJ_DL 698TICKADJ_DB 699SNTP_NI 700SNTP_MS 701SNTP_DS 702SNTP_DL 703SNTP_DB 704NTP_WAIT_NI 705NTP_WAIT_MS 706NTP_WAIT_DS 707NTP_WAIT_DL 708NTP_WAIT_DB 709NTP_KEYGEN_NI 710NTP_KEYGEN_MS 711NTP_KEYGEN_DS 712NTP_KEYGEN_DL 713NTP_KEYGEN_DB 714NTPTRACE_NI 715NTPTRACE_MS 716NTPTRACE_DS 717NTPTRACE_DL 718NTPTRACE_DB 719NTPTIME_NI 720NTPTIME_MS 721NTPTIME_DS 722NTPTIME_DL 723NTPTIME_DB 724INSTALL_NTPSWEEP_FALSE 725INSTALL_NTPSWEEP_TRUE 726NTPSWEEP_NI 727NTPSWEEP_MS 728NTPSWEEP_DS 729NTPSWEEP_DL 730NTPSWEEP_DB 731NTPSNMPD_NI 732NTPSNMPD_MS 733NTPSNMPD_DS 734NTPSNMPD_DL 735NTPSNMPD_DB 736NTPQ_NI 737NTPQ_MS 738NTPQ_DS 739NTPQ_DL 740NTPQ_DB 741NTPD_NI 742NTPD_MS 743NTPD_DS 744NTPD_DL 745NTPD_DB 746NTPDSIM_NI 747NTPDSIM_MS 748NTPDSIM_DS 749NTPDSIM_DL 750NTPDSIM_DB 751NTPDC_NI 752NTPDC_MS 753NTPDC_DS 754NTPDC_DL 755NTPDC_DB 756NTPDATE_NI 757NTPDATE_MS 758NTPDATE_DS 759NTPDATE_DL 760NTPDATE_DB 761MANTAGFMT 762CALC_TICKADJ_NI 763CALC_TICKADJ_MS 764CALC_TICKADJ_DS 765CALC_TICKADJ_DL 766CALC_TICKADJ_DB 767WANT_CALC_TICKADJ_MS_FALSE 768WANT_CALC_TICKADJ_MS_TRUE 769LDFLAGS_NTP 770LDADD_NTP 771CPPFLAGS_NTP 772CFLAGS_NTP 773EGREP 774GREP 775CPP 776am__fastdepCC_FALSE 777am__fastdepCC_TRUE 778CCDEPMODE 779AMDEPBACKSLASH 780AMDEP_FALSE 781AMDEP_TRUE 782am__quote 783am__include 784DEPDIR 785OBJEXT 786EXEEXT 787ac_ct_CC 788CPPFLAGS 789LDFLAGS 790CFLAGS 791CC 792host_os 793host_vendor 794host_cpu 795host 796build_os 797build_vendor 798build_cpu 799build 800AM_BACKSLASH 801AM_DEFAULT_VERBOSITY 802am__untar 803am__tar 804AMTAR 805am__leading_dot 806SET_MAKE 807AWK 808mkdir_p 809MKDIR_P 810INSTALL_STRIP_PROGRAM 811STRIP 812install_sh 813MAKEINFO 814AUTOHEADER 815AUTOMAKE 816AUTOCONF 817ACLOCAL 818VERSION 819PACKAGE 820CYGPATH_W 821am__isrc 822INSTALL_DATA 823INSTALL_SCRIPT 824INSTALL_PROGRAM 825target_alias 826host_alias 827build_alias 828LIBS 829ECHO_T 830ECHO_N 831ECHO_C 832DEFS 833mandir 834localedir 835libdir 836psdir 837pdfdir 838dvidir 839htmldir 840infodir 841docdir 842oldincludedir 843includedir 844localstatedir 845sharedstatedir 846sysconfdir 847datadir 848datarootdir 849libexecdir 850sbindir 851bindir 852program_transform_name 853prefix 854exec_prefix 855PACKAGE_URL 856PACKAGE_BUGREPORT 857PACKAGE_STRING 858PACKAGE_VERSION 859PACKAGE_TARNAME 860PACKAGE_NAME 861PATH_SEPARATOR 862SHELL' 863ac_subst_files='' 864ac_user_opts=' 865enable_option_checking 866enable_silent_rules 867enable_dependency_tracking 868with_locfile 869with_gnu_ld 870with_lineeditlibs 871enable_debugging 872enable_thread_support 873with_threads 874with_yielding_select 875enable_c99_snprintf 876enable_clockctl 877enable_linuxcaps 878enable_solarisprivs 879enable_shared 880enable_static 881with_pic 882enable_fast_install 883with_sysroot 884enable_libtool_lock 885with_sntp 886enable_nls 887enable_local_libopts 888enable_libopts_install 889with_autoopts_config 890with_regex_header 891with_libregex 892with_libregex_cflags 893with_libregex_libs 894enable_optional_args 895enable_local_libevent 896with_crypto 897with_openssl_libdir 898with_openssl_incdir 899with_rpath 900enable_ipv6 901with_kame 902enable_getifaddrs 903with_gtest 904' 905 ac_precious_vars='build_alias 906host_alias 907target_alias 908CC 909CFLAGS 910LDFLAGS 911LIBS 912CPPFLAGS 913CPP 914CXX 915CXXFLAGS 916CCC 917CXXCPP' 918ac_subdirs_all='libevent' 919 920# Initialize some variables set by options. 921ac_init_help= 922ac_init_version=false 923ac_unrecognized_opts= 924ac_unrecognized_sep= 925# The variables have the same names as the options, with 926# dashes changed to underlines. 927cache_file=/dev/null 928exec_prefix=NONE 929no_create= 930no_recursion= 931prefix=NONE 932program_prefix=NONE 933program_suffix=NONE 934program_transform_name=s,x,x, 935silent= 936site= 937srcdir= 938verbose= 939x_includes=NONE 940x_libraries=NONE 941 942# Installation directory options. 943# These are left unexpanded so users can "make install exec_prefix=/foo" 944# and all the variables that are supposed to be based on exec_prefix 945# by default will actually change. 946# Use braces instead of parens because sh, perl, etc. also accept them. 947# (The list follows the same order as the GNU Coding Standards.) 948bindir='${exec_prefix}/bin' 949sbindir='${exec_prefix}/sbin' 950libexecdir='${exec_prefix}/libexec' 951datarootdir='${prefix}/share' 952datadir='${datarootdir}' 953sysconfdir='${prefix}/etc' 954sharedstatedir='${prefix}/com' 955localstatedir='${prefix}/var' 956includedir='${prefix}/include' 957oldincludedir='/usr/include' 958docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 959infodir='${datarootdir}/info' 960htmldir='${docdir}' 961dvidir='${docdir}' 962pdfdir='${docdir}' 963psdir='${docdir}' 964libdir='${exec_prefix}/lib' 965localedir='${datarootdir}/locale' 966mandir='${datarootdir}/man' 967 968ac_prev= 969ac_dashdash= 970for ac_option 971do 972 # If the previous option needs an argument, assign it. 973 if test -n "$ac_prev"; then 974 eval $ac_prev=\$ac_option 975 ac_prev= 976 continue 977 fi 978 979 case $ac_option in 980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 981 *=) ac_optarg= ;; 982 *) ac_optarg=yes ;; 983 esac 984 985 # Accept the important Cygnus configure options, so we can diagnose typos. 986 987 case $ac_dashdash$ac_option in 988 --) 989 ac_dashdash=yes ;; 990 991 -bindir | --bindir | --bindi | --bind | --bin | --bi) 992 ac_prev=bindir ;; 993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 994 bindir=$ac_optarg ;; 995 996 -build | --build | --buil | --bui | --bu) 997 ac_prev=build_alias ;; 998 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 999 build_alias=$ac_optarg ;; 1000 1001 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1003 ac_prev=cache_file ;; 1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1006 cache_file=$ac_optarg ;; 1007 1008 --config-cache | -C) 1009 cache_file=config.cache ;; 1010 1011 -datadir | --datadir | --datadi | --datad) 1012 ac_prev=datadir ;; 1013 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1014 datadir=$ac_optarg ;; 1015 1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1017 | --dataroo | --dataro | --datar) 1018 ac_prev=datarootdir ;; 1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1021 datarootdir=$ac_optarg ;; 1022 1023 -disable-* | --disable-*) 1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1025 # Reject names that are not valid shell variable names. 1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1027 as_fn_error $? "invalid feature name: $ac_useropt" 1028 ac_useropt_orig=$ac_useropt 1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1030 case $ac_user_opts in 1031 *" 1032"enable_$ac_useropt" 1033"*) ;; 1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1035 ac_unrecognized_sep=', ';; 1036 esac 1037 eval enable_$ac_useropt=no ;; 1038 1039 -docdir | --docdir | --docdi | --doc | --do) 1040 ac_prev=docdir ;; 1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1042 docdir=$ac_optarg ;; 1043 1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1045 ac_prev=dvidir ;; 1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1047 dvidir=$ac_optarg ;; 1048 1049 -enable-* | --enable-*) 1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1051 # Reject names that are not valid shell variable names. 1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1053 as_fn_error $? "invalid feature name: $ac_useropt" 1054 ac_useropt_orig=$ac_useropt 1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1056 case $ac_user_opts in 1057 *" 1058"enable_$ac_useropt" 1059"*) ;; 1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1061 ac_unrecognized_sep=', ';; 1062 esac 1063 eval enable_$ac_useropt=\$ac_optarg ;; 1064 1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1067 | --exec | --exe | --ex) 1068 ac_prev=exec_prefix ;; 1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1071 | --exec=* | --exe=* | --ex=*) 1072 exec_prefix=$ac_optarg ;; 1073 1074 -gas | --gas | --ga | --g) 1075 # Obsolete; use --with-gas. 1076 with_gas=yes ;; 1077 1078 -help | --help | --hel | --he | -h) 1079 ac_init_help=long ;; 1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1081 ac_init_help=recursive ;; 1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1083 ac_init_help=short ;; 1084 1085 -host | --host | --hos | --ho) 1086 ac_prev=host_alias ;; 1087 -host=* | --host=* | --hos=* | --ho=*) 1088 host_alias=$ac_optarg ;; 1089 1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1091 ac_prev=htmldir ;; 1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1093 | --ht=*) 1094 htmldir=$ac_optarg ;; 1095 1096 -includedir | --includedir | --includedi | --included | --include \ 1097 | --includ | --inclu | --incl | --inc) 1098 ac_prev=includedir ;; 1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1100 | --includ=* | --inclu=* | --incl=* | --inc=*) 1101 includedir=$ac_optarg ;; 1102 1103 -infodir | --infodir | --infodi | --infod | --info | --inf) 1104 ac_prev=infodir ;; 1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1106 infodir=$ac_optarg ;; 1107 1108 -libdir | --libdir | --libdi | --libd) 1109 ac_prev=libdir ;; 1110 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1111 libdir=$ac_optarg ;; 1112 1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1114 | --libexe | --libex | --libe) 1115 ac_prev=libexecdir ;; 1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1117 | --libexe=* | --libex=* | --libe=*) 1118 libexecdir=$ac_optarg ;; 1119 1120 -localedir | --localedir | --localedi | --localed | --locale) 1121 ac_prev=localedir ;; 1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1123 localedir=$ac_optarg ;; 1124 1125 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1126 | --localstate | --localstat | --localsta | --localst | --locals) 1127 ac_prev=localstatedir ;; 1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1130 localstatedir=$ac_optarg ;; 1131 1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1133 ac_prev=mandir ;; 1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1135 mandir=$ac_optarg ;; 1136 1137 -nfp | --nfp | --nf) 1138 # Obsolete; use --without-fp. 1139 with_fp=no ;; 1140 1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1142 | --no-cr | --no-c | -n) 1143 no_create=yes ;; 1144 1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1147 no_recursion=yes ;; 1148 1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1151 | --oldin | --oldi | --old | --ol | --o) 1152 ac_prev=oldincludedir ;; 1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1156 oldincludedir=$ac_optarg ;; 1157 1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1159 ac_prev=prefix ;; 1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1161 prefix=$ac_optarg ;; 1162 1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1164 | --program-pre | --program-pr | --program-p) 1165 ac_prev=program_prefix ;; 1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1168 program_prefix=$ac_optarg ;; 1169 1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1171 | --program-suf | --program-su | --program-s) 1172 ac_prev=program_suffix ;; 1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1175 program_suffix=$ac_optarg ;; 1176 1177 -program-transform-name | --program-transform-name \ 1178 | --program-transform-nam | --program-transform-na \ 1179 | --program-transform-n | --program-transform- \ 1180 | --program-transform | --program-transfor \ 1181 | --program-transfo | --program-transf \ 1182 | --program-trans | --program-tran \ 1183 | --progr-tra | --program-tr | --program-t) 1184 ac_prev=program_transform_name ;; 1185 -program-transform-name=* | --program-transform-name=* \ 1186 | --program-transform-nam=* | --program-transform-na=* \ 1187 | --program-transform-n=* | --program-transform-=* \ 1188 | --program-transform=* | --program-transfor=* \ 1189 | --program-transfo=* | --program-transf=* \ 1190 | --program-trans=* | --program-tran=* \ 1191 | --progr-tra=* | --program-tr=* | --program-t=*) 1192 program_transform_name=$ac_optarg ;; 1193 1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1195 ac_prev=pdfdir ;; 1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1197 pdfdir=$ac_optarg ;; 1198 1199 -psdir | --psdir | --psdi | --psd | --ps) 1200 ac_prev=psdir ;; 1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1202 psdir=$ac_optarg ;; 1203 1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1205 | -silent | --silent | --silen | --sile | --sil) 1206 silent=yes ;; 1207 1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1209 ac_prev=sbindir ;; 1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1211 | --sbi=* | --sb=*) 1212 sbindir=$ac_optarg ;; 1213 1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1216 | --sharedst | --shareds | --shared | --share | --shar \ 1217 | --sha | --sh) 1218 ac_prev=sharedstatedir ;; 1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1222 | --sha=* | --sh=*) 1223 sharedstatedir=$ac_optarg ;; 1224 1225 -site | --site | --sit) 1226 ac_prev=site ;; 1227 -site=* | --site=* | --sit=*) 1228 site=$ac_optarg ;; 1229 1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1231 ac_prev=srcdir ;; 1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1233 srcdir=$ac_optarg ;; 1234 1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1236 | --syscon | --sysco | --sysc | --sys | --sy) 1237 ac_prev=sysconfdir ;; 1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1240 sysconfdir=$ac_optarg ;; 1241 1242 -target | --target | --targe | --targ | --tar | --ta | --t) 1243 ac_prev=target_alias ;; 1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1245 target_alias=$ac_optarg ;; 1246 1247 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1248 verbose=yes ;; 1249 1250 -version | --version | --versio | --versi | --vers | -V) 1251 ac_init_version=: ;; 1252 1253 -with-* | --with-*) 1254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1255 # Reject names that are not valid shell variable names. 1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1257 as_fn_error $? "invalid package name: $ac_useropt" 1258 ac_useropt_orig=$ac_useropt 1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1260 case $ac_user_opts in 1261 *" 1262"with_$ac_useropt" 1263"*) ;; 1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1265 ac_unrecognized_sep=', ';; 1266 esac 1267 eval with_$ac_useropt=\$ac_optarg ;; 1268 1269 -without-* | --without-*) 1270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1271 # Reject names that are not valid shell variable names. 1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1273 as_fn_error $? "invalid package name: $ac_useropt" 1274 ac_useropt_orig=$ac_useropt 1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1276 case $ac_user_opts in 1277 *" 1278"with_$ac_useropt" 1279"*) ;; 1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1281 ac_unrecognized_sep=', ';; 1282 esac 1283 eval with_$ac_useropt=no ;; 1284 1285 --x) 1286 # Obsolete; use --with-x. 1287 with_x=yes ;; 1288 1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1290 | --x-incl | --x-inc | --x-in | --x-i) 1291 ac_prev=x_includes ;; 1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1294 x_includes=$ac_optarg ;; 1295 1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1298 ac_prev=x_libraries ;; 1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1301 x_libraries=$ac_optarg ;; 1302 1303 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1304Try \`$0 --help' for more information" 1305 ;; 1306 1307 *=*) 1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1309 # Reject names that are not valid shell variable names. 1310 case $ac_envvar in #( 1311 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1313 esac 1314 eval $ac_envvar=\$ac_optarg 1315 export $ac_envvar ;; 1316 1317 *) 1318 # FIXME: should be removed in autoconf 3.0. 1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1323 ;; 1324 1325 esac 1326done 1327 1328if test -n "$ac_prev"; then 1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1330 as_fn_error $? "missing argument to $ac_option" 1331fi 1332 1333if test -n "$ac_unrecognized_opts"; then 1334 case $enable_option_checking in 1335 no) ;; 1336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1338 esac 1339fi 1340 1341# Check all directory arguments for consistency. 1342for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1343 datadir sysconfdir sharedstatedir localstatedir includedir \ 1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1345 libdir localedir mandir 1346do 1347 eval ac_val=\$$ac_var 1348 # Remove trailing slashes. 1349 case $ac_val in 1350 */ ) 1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1352 eval $ac_var=\$ac_val;; 1353 esac 1354 # Be sure to have absolute directory names. 1355 case $ac_val in 1356 [\\/$]* | ?:[\\/]* ) continue;; 1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1358 esac 1359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1360done 1361 1362# There might be people who depend on the old broken behavior: `$host' 1363# used to hold the argument of --host etc. 1364# FIXME: To remove some day. 1365build=$build_alias 1366host=$host_alias 1367target=$target_alias 1368 1369# FIXME: To remove some day. 1370if test "x$host_alias" != x; then 1371 if test "x$build_alias" = x; then 1372 cross_compiling=maybe 1373 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1374 If a cross compiler is detected then cross compile mode will be used" >&2 1375 elif test "x$build_alias" != "x$host_alias"; then 1376 cross_compiling=yes 1377 fi 1378fi 1379 1380ac_tool_prefix= 1381test -n "$host_alias" && ac_tool_prefix=$host_alias- 1382 1383test "$silent" = yes && exec 6>/dev/null 1384 1385 1386ac_pwd=`pwd` && test -n "$ac_pwd" && 1387ac_ls_di=`ls -di .` && 1388ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1389 as_fn_error $? "working directory cannot be determined" 1390test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1391 as_fn_error $? "pwd does not report name of working directory" 1392 1393 1394# Find the source files, if location was not specified. 1395if test -z "$srcdir"; then 1396 ac_srcdir_defaulted=yes 1397 # Try the directory containing this script, then the parent directory. 1398 ac_confdir=`$as_dirname -- "$as_myself" || 1399$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1400 X"$as_myself" : 'X\(//\)[^/]' \| \ 1401 X"$as_myself" : 'X\(//\)$' \| \ 1402 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1403$as_echo X"$as_myself" | 1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1405 s//\1/ 1406 q 1407 } 1408 /^X\(\/\/\)[^/].*/{ 1409 s//\1/ 1410 q 1411 } 1412 /^X\(\/\/\)$/{ 1413 s//\1/ 1414 q 1415 } 1416 /^X\(\/\).*/{ 1417 s//\1/ 1418 q 1419 } 1420 s/.*/./; q'` 1421 srcdir=$ac_confdir 1422 if test ! -r "$srcdir/$ac_unique_file"; then 1423 srcdir=.. 1424 fi 1425else 1426 ac_srcdir_defaulted=no 1427fi 1428if test ! -r "$srcdir/$ac_unique_file"; then 1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1430 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1431fi 1432ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1433ac_abs_confdir=`( 1434 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1435 pwd)` 1436# When building in place, set srcdir=. 1437if test "$ac_abs_confdir" = "$ac_pwd"; then 1438 srcdir=. 1439fi 1440# Remove unnecessary trailing slashes from srcdir. 1441# Double slashes in file names in object file debugging info 1442# mess up M-x gdb in Emacs. 1443case $srcdir in 1444*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1445esac 1446for ac_var in $ac_precious_vars; do 1447 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1448 eval ac_env_${ac_var}_value=\$${ac_var} 1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1450 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1451done 1452 1453# 1454# Report the --help message. 1455# 1456if test "$ac_init_help" = "long"; then 1457 # Omit some internal or obsolete options to make the list less imposing. 1458 # This message is too long to be a string in the A/UX 3.1 sh. 1459 cat <<_ACEOF 1460\`configure' configures sntp 4.2.8p1 to adapt to many kinds of systems. 1461 1462Usage: $0 [OPTION]... [VAR=VALUE]... 1463 1464To assign environment variables (e.g., CC, CFLAGS...), specify them as 1465VAR=VALUE. See below for descriptions of some of the useful variables. 1466 1467Defaults for the options are specified in brackets. 1468 1469Configuration: 1470 -h, --help display this help and exit 1471 --help=short display options specific to this package 1472 --help=recursive display the short help of all the included packages 1473 -V, --version display version information and exit 1474 -q, --quiet, --silent do not print \`checking ...' messages 1475 --cache-file=FILE cache test results in FILE [disabled] 1476 -C, --config-cache alias for \`--cache-file=config.cache' 1477 -n, --no-create do not create output files 1478 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1479 1480Installation directories: 1481 --prefix=PREFIX install architecture-independent files in PREFIX 1482 [$ac_default_prefix] 1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1484 [PREFIX] 1485 1486By default, \`make install' will install all the files in 1487\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1488an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1489for instance \`--prefix=\$HOME'. 1490 1491For better control, use the options below. 1492 1493Fine tuning of the installation directories: 1494 --bindir=DIR user executables [EPREFIX/bin] 1495 --sbindir=DIR system admin executables [EPREFIX/sbin] 1496 --libexecdir=DIR program executables [EPREFIX/libexec] 1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1500 --libdir=DIR object code libraries [EPREFIX/lib] 1501 --includedir=DIR C header files [PREFIX/include] 1502 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1505 --infodir=DIR info documentation [DATAROOTDIR/info] 1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1507 --mandir=DIR man documentation [DATAROOTDIR/man] 1508 --docdir=DIR documentation root [DATAROOTDIR/doc/sntp] 1509 --htmldir=DIR html documentation [DOCDIR] 1510 --dvidir=DIR dvi documentation [DOCDIR] 1511 --pdfdir=DIR pdf documentation [DOCDIR] 1512 --psdir=DIR ps documentation [DOCDIR] 1513_ACEOF 1514 1515 cat <<\_ACEOF 1516 1517Program names: 1518 --program-prefix=PREFIX prepend PREFIX to installed program names 1519 --program-suffix=SUFFIX append SUFFIX to installed program names 1520 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1521 1522System types: 1523 --build=BUILD configure for building on BUILD [guessed] 1524 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1525_ACEOF 1526fi 1527 1528if test -n "$ac_init_help"; then 1529 case $ac_init_help in 1530 short | recursive ) echo "Configuration of sntp 4.2.8p1:";; 1531 esac 1532 cat <<\_ACEOF 1533 1534Optional Features: 1535 --disable-option-checking ignore unrecognized --enable/--with options 1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1538 --enable-silent-rules less verbose build output (undo: `make V=1') 1539 --disable-silent-rules verbose build output (undo: `make V=0') 1540 --disable-dependency-tracking speeds up one-time build 1541 --enable-dependency-tracking do not reject slow dependency extractors 1542 defaults: + yes, - no, s system-specific 1543 --enable-debugging + include ntpd debugging code 1544 --enable-thread-support s use threads (+ if available) 1545 --enable-c99-snprintf s force replacement 1546 --enable-clockctl s Use /dev/clockctl for non-root clock control 1547 --enable-linuxcaps + Use Linux capabilities for non-root clock control 1548 --enable-solarisprivs + Use Solaris privileges for non-root clock control 1549 --enable-shared[=PKGS] build shared libraries [default=no] 1550 --enable-static[=PKGS] build static libraries [default=yes] 1551 --enable-fast-install[=PKGS] 1552 optimize for fast installation [default=yes] 1553 --disable-libtool-lock avoid locking (might break parallel builds) 1554 --disable-nls disable nls support in libopts 1555 --enable-local-libopts Use the supplied libopts tearoff code 1556 --enable-libopts-install 1557 Install libopts with client installation 1558 --disable-optional-args not wanting optional option args 1559 --enable-local-libevent Force using the supplied libevent tearoff code 1560 --enable-ipv6 s use IPv6? 1561 1562 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]]. 1563 1564Optional Packages: 1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1567 --with-locfile=XXX os-specific or "legacy" 1568 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1569 --with-lineeditlibs edit,editline (readline may be specified if desired) 1570 --with-threads with threads [auto] 1571 --with-yielding-select with yielding select [auto] 1572 --with-pic try to use only PIC/non-PIC objects [default=use 1573 both] 1574 --with-sysroot=DIR Search for dependent libraries within DIR 1575 (or the compiler's sysroot if not specified). 1576 --without-sntp - disable building sntp and sntp/tests 1577 --with-autoopts-config specify the config-info script 1578 --with-regex-header a reg expr header is specified 1579 --with-libregex libregex installation prefix 1580 --with-libregex-cflags libregex compile flags 1581 --with-libregex-libs libregex link command arguments 1582 --with-crypto + =openssl,libcrypto 1583 1584 --with-openssl-libdir + =/something/reasonable 1585 1586 --with-openssl-incdir + =/something/reasonable 1587 1588 --without-rpath s Disable auto-added -R linker paths 1589 1590 --with-kame - =/usr/local/v6 1591 --with-gtest Use the gtest framework (Default: if it's available) 1592 1593Some influential environment variables: 1594 CC C compiler command 1595 CFLAGS C compiler flags 1596 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1597 nonstandard directory <lib dir> 1598 LIBS libraries to pass to the linker, e.g. -l<library> 1599 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1600 you have headers in a nonstandard directory <include dir> 1601 CPP C preprocessor 1602 CXX C++ compiler command 1603 CXXFLAGS C++ compiler flags 1604 CXXCPP C++ preprocessor 1605 1606Use these variables to override the choices made by `configure' or to help 1607it to find libraries and programs with nonstandard names/locations. 1608 1609Report bugs to <http://bugs.ntp.org./>. 1610sntp home page: <http://www.ntp.org./>. 1611_ACEOF 1612ac_status=$? 1613fi 1614 1615if test "$ac_init_help" = "recursive"; then 1616 # If there are subdirs, report their specific --help. 1617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1618 test -d "$ac_dir" || 1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1620 continue 1621 ac_builddir=. 1622 1623case "$ac_dir" in 1624.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1625*) 1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1627 # A ".." for each directory in $ac_dir_suffix. 1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1629 case $ac_top_builddir_sub in 1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1632 esac ;; 1633esac 1634ac_abs_top_builddir=$ac_pwd 1635ac_abs_builddir=$ac_pwd$ac_dir_suffix 1636# for backward compatibility: 1637ac_top_builddir=$ac_top_build_prefix 1638 1639case $srcdir in 1640 .) # We are building in place. 1641 ac_srcdir=. 1642 ac_top_srcdir=$ac_top_builddir_sub 1643 ac_abs_top_srcdir=$ac_pwd ;; 1644 [\\/]* | ?:[\\/]* ) # Absolute name. 1645 ac_srcdir=$srcdir$ac_dir_suffix; 1646 ac_top_srcdir=$srcdir 1647 ac_abs_top_srcdir=$srcdir ;; 1648 *) # Relative name. 1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1650 ac_top_srcdir=$ac_top_build_prefix$srcdir 1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1652esac 1653ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1654 1655 cd "$ac_dir" || { ac_status=$?; continue; } 1656 # Check for guested configure. 1657 if test -f "$ac_srcdir/configure.gnu"; then 1658 echo && 1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1660 elif test -f "$ac_srcdir/configure"; then 1661 echo && 1662 $SHELL "$ac_srcdir/configure" --help=recursive 1663 else 1664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1665 fi || ac_status=$? 1666 cd "$ac_pwd" || { ac_status=$?; break; } 1667 done 1668fi 1669 1670test -n "$ac_init_help" && exit $ac_status 1671if $ac_init_version; then 1672 cat <<\_ACEOF 1673sntp configure 4.2.8p1 1674generated by GNU Autoconf 2.68 1675 1676Copyright (C) 2010 Free Software Foundation, Inc. 1677This configure script is free software; the Free Software Foundation 1678gives unlimited permission to copy, distribute and modify it. 1679_ACEOF 1680 exit 1681fi 1682 1683## ------------------------ ## 1684## Autoconf initialization. ## 1685## ------------------------ ## 1686 1687# ac_fn_c_try_compile LINENO 1688# -------------------------- 1689# Try to compile conftest.$ac_ext, and return whether this succeeded. 1690ac_fn_c_try_compile () 1691{ 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 rm -f conftest.$ac_objext 1694 if { { ac_try="$ac_compile" 1695case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698esac 1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700$as_echo "$ac_try_echo"; } >&5 1701 (eval "$ac_compile") 2>conftest.err 1702 ac_status=$? 1703 if test -s conftest.err; then 1704 grep -v '^ *+' conftest.err >conftest.er1 1705 cat conftest.er1 >&5 1706 mv -f conftest.er1 conftest.err 1707 fi 1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } && { 1710 test -z "$ac_c_werror_flag" || 1711 test ! -s conftest.err 1712 } && test -s conftest.$ac_objext; then : 1713 ac_retval=0 1714else 1715 $as_echo "$as_me: failed program was:" >&5 1716sed 's/^/| /' conftest.$ac_ext >&5 1717 1718 ac_retval=1 1719fi 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 as_fn_set_status $ac_retval 1722 1723} # ac_fn_c_try_compile 1724 1725# ac_fn_c_try_cpp LINENO 1726# ---------------------- 1727# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1728ac_fn_c_try_cpp () 1729{ 1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1731 if { { ac_try="$ac_cpp conftest.$ac_ext" 1732case "(($ac_try" in 1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1734 *) ac_try_echo=$ac_try;; 1735esac 1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1737$as_echo "$ac_try_echo"; } >&5 1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1739 ac_status=$? 1740 if test -s conftest.err; then 1741 grep -v '^ *+' conftest.err >conftest.er1 1742 cat conftest.er1 >&5 1743 mv -f conftest.er1 conftest.err 1744 fi 1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1746 test $ac_status = 0; } > conftest.i && { 1747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1748 test ! -s conftest.err 1749 }; then : 1750 ac_retval=0 1751else 1752 $as_echo "$as_me: failed program was:" >&5 1753sed 's/^/| /' conftest.$ac_ext >&5 1754 1755 ac_retval=1 1756fi 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1758 as_fn_set_status $ac_retval 1759 1760} # ac_fn_c_try_cpp 1761 1762# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1763# ------------------------------------------------------- 1764# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1765# the include files in INCLUDES and setting the cache variable VAR 1766# accordingly. 1767ac_fn_c_check_header_mongrel () 1768{ 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 if eval \${$3+:} false; then : 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1772$as_echo_n "checking for $2... " >&6; } 1773if eval \${$3+:} false; then : 1774 $as_echo_n "(cached) " >&6 1775fi 1776eval ac_res=\$$3 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1778$as_echo "$ac_res" >&6; } 1779else 1780 # Is the header compilable? 1781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1782$as_echo_n "checking $2 usability... " >&6; } 1783cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1784/* end confdefs.h. */ 1785$4 1786#include <$2> 1787_ACEOF 1788if ac_fn_c_try_compile "$LINENO"; then : 1789 ac_header_compiler=yes 1790else 1791 ac_header_compiler=no 1792fi 1793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1795$as_echo "$ac_header_compiler" >&6; } 1796 1797# Is the header present? 1798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1799$as_echo_n "checking $2 presence... " >&6; } 1800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1801/* end confdefs.h. */ 1802#include <$2> 1803_ACEOF 1804if ac_fn_c_try_cpp "$LINENO"; then : 1805 ac_header_preproc=yes 1806else 1807 ac_header_preproc=no 1808fi 1809rm -f conftest.err conftest.i conftest.$ac_ext 1810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1811$as_echo "$ac_header_preproc" >&6; } 1812 1813# So? What about this header? 1814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1815 yes:no: ) 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1817$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1819$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1820 ;; 1821 no:yes:* ) 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1823$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1825$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1827$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1829$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1831$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1832( $as_echo "## ------------------------------------ ## 1833## Report this to http://bugs.ntp.org./ ## 1834## ------------------------------------ ##" 1835 ) | sed "s/^/$as_me: WARNING: /" >&2 1836 ;; 1837esac 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1839$as_echo_n "checking for $2... " >&6; } 1840if eval \${$3+:} false; then : 1841 $as_echo_n "(cached) " >&6 1842else 1843 eval "$3=\$ac_header_compiler" 1844fi 1845eval ac_res=\$$3 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1847$as_echo "$ac_res" >&6; } 1848fi 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1850 1851} # ac_fn_c_check_header_mongrel 1852 1853# ac_fn_c_try_run LINENO 1854# ---------------------- 1855# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1856# that executables *can* be run. 1857ac_fn_c_try_run () 1858{ 1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1860 if { { ac_try="$ac_link" 1861case "(($ac_try" in 1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1863 *) ac_try_echo=$ac_try;; 1864esac 1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1866$as_echo "$ac_try_echo"; } >&5 1867 (eval "$ac_link") 2>&5 1868 ac_status=$? 1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1870 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1871 { { case "(($ac_try" in 1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1873 *) ac_try_echo=$ac_try;; 1874esac 1875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1876$as_echo "$ac_try_echo"; } >&5 1877 (eval "$ac_try") 2>&5 1878 ac_status=$? 1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1880 test $ac_status = 0; }; }; then : 1881 ac_retval=0 1882else 1883 $as_echo "$as_me: program exited with status $ac_status" >&5 1884 $as_echo "$as_me: failed program was:" >&5 1885sed 's/^/| /' conftest.$ac_ext >&5 1886 1887 ac_retval=$ac_status 1888fi 1889 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1891 as_fn_set_status $ac_retval 1892 1893} # ac_fn_c_try_run 1894 1895# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1896# ------------------------------------------------------- 1897# Tests whether HEADER exists and can be compiled using the include files in 1898# INCLUDES, setting the cache variable VAR accordingly. 1899ac_fn_c_check_header_compile () 1900{ 1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1903$as_echo_n "checking for $2... " >&6; } 1904if eval \${$3+:} false; then : 1905 $as_echo_n "(cached) " >&6 1906else 1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1908/* end confdefs.h. */ 1909$4 1910#include <$2> 1911_ACEOF 1912if ac_fn_c_try_compile "$LINENO"; then : 1913 eval "$3=yes" 1914else 1915 eval "$3=no" 1916fi 1917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1918fi 1919eval ac_res=\$$3 1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1921$as_echo "$ac_res" >&6; } 1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1923 1924} # ac_fn_c_check_header_compile 1925 1926# ac_fn_c_try_link LINENO 1927# ----------------------- 1928# Try to link conftest.$ac_ext, and return whether this succeeded. 1929ac_fn_c_try_link () 1930{ 1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1932 rm -f conftest.$ac_objext conftest$ac_exeext 1933 if { { ac_try="$ac_link" 1934case "(($ac_try" in 1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1936 *) ac_try_echo=$ac_try;; 1937esac 1938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1939$as_echo "$ac_try_echo"; } >&5 1940 (eval "$ac_link") 2>conftest.err 1941 ac_status=$? 1942 if test -s conftest.err; then 1943 grep -v '^ *+' conftest.err >conftest.er1 1944 cat conftest.er1 >&5 1945 mv -f conftest.er1 conftest.err 1946 fi 1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1948 test $ac_status = 0; } && { 1949 test -z "$ac_c_werror_flag" || 1950 test ! -s conftest.err 1951 } && test -s conftest$ac_exeext && { 1952 test "$cross_compiling" = yes || 1953 $as_test_x conftest$ac_exeext 1954 }; then : 1955 ac_retval=0 1956else 1957 $as_echo "$as_me: failed program was:" >&5 1958sed 's/^/| /' conftest.$ac_ext >&5 1959 1960 ac_retval=1 1961fi 1962 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1963 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1964 # interfere with the next link command; also delete a directory that is 1965 # left behind by Apple's compiler. We do this before executing the actions. 1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1968 as_fn_set_status $ac_retval 1969 1970} # ac_fn_c_try_link 1971 1972# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1973# ------------------------------------------- 1974# Tests whether TYPE exists after having included INCLUDES, setting cache 1975# variable VAR accordingly. 1976ac_fn_c_check_type () 1977{ 1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1980$as_echo_n "checking for $2... " >&6; } 1981if eval \${$3+:} false; then : 1982 $as_echo_n "(cached) " >&6 1983else 1984 eval "$3=no" 1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1986/* end confdefs.h. */ 1987$4 1988int 1989main () 1990{ 1991if (sizeof ($2)) 1992 return 0; 1993 ; 1994 return 0; 1995} 1996_ACEOF 1997if ac_fn_c_try_compile "$LINENO"; then : 1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1999/* end confdefs.h. */ 2000$4 2001int 2002main () 2003{ 2004if (sizeof (($2))) 2005 return 0; 2006 ; 2007 return 0; 2008} 2009_ACEOF 2010if ac_fn_c_try_compile "$LINENO"; then : 2011 2012else 2013 eval "$3=yes" 2014fi 2015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2016fi 2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2018fi 2019eval ac_res=\$$3 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2021$as_echo "$ac_res" >&6; } 2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2023 2024} # ac_fn_c_check_type 2025 2026# ac_fn_c_check_func LINENO FUNC VAR 2027# ---------------------------------- 2028# Tests whether FUNC exists, setting the cache variable VAR accordingly 2029ac_fn_c_check_func () 2030{ 2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2033$as_echo_n "checking for $2... " >&6; } 2034if eval \${$3+:} false; then : 2035 $as_echo_n "(cached) " >&6 2036else 2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2038/* end confdefs.h. */ 2039/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2040 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2041#define $2 innocuous_$2 2042 2043/* System header to define __stub macros and hopefully few prototypes, 2044 which can conflict with char $2 (); below. 2045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2046 <limits.h> exists even on freestanding compilers. */ 2047 2048#ifdef __STDC__ 2049# include <limits.h> 2050#else 2051# include <assert.h> 2052#endif 2053 2054#undef $2 2055 2056/* Override any GCC internal prototype to avoid an error. 2057 Use char because int might match the return type of a GCC 2058 builtin and then its argument prototype would still apply. */ 2059#ifdef __cplusplus 2060extern "C" 2061#endif 2062char $2 (); 2063/* The GNU C library defines this for functions which it implements 2064 to always fail with ENOSYS. Some functions are actually named 2065 something starting with __ and the normal name is an alias. */ 2066#if defined __stub_$2 || defined __stub___$2 2067choke me 2068#endif 2069 2070int 2071main () 2072{ 2073return $2 (); 2074 ; 2075 return 0; 2076} 2077_ACEOF 2078if ac_fn_c_try_link "$LINENO"; then : 2079 eval "$3=yes" 2080else 2081 eval "$3=no" 2082fi 2083rm -f core conftest.err conftest.$ac_objext \ 2084 conftest$ac_exeext conftest.$ac_ext 2085fi 2086eval ac_res=\$$3 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2088$as_echo "$ac_res" >&6; } 2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2090 2091} # ac_fn_c_check_func 2092 2093# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2094# --------------------------------------------- 2095# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2096# accordingly. 2097ac_fn_c_check_decl () 2098{ 2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2100 as_decl_name=`echo $2|sed 's/ *(.*//'` 2101 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2103$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2104if eval \${$3+:} false; then : 2105 $as_echo_n "(cached) " >&6 2106else 2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2108/* end confdefs.h. */ 2109$4 2110int 2111main () 2112{ 2113#ifndef $as_decl_name 2114#ifdef __cplusplus 2115 (void) $as_decl_use; 2116#else 2117 (void) $as_decl_name; 2118#endif 2119#endif 2120 2121 ; 2122 return 0; 2123} 2124_ACEOF 2125if ac_fn_c_try_compile "$LINENO"; then : 2126 eval "$3=yes" 2127else 2128 eval "$3=no" 2129fi 2130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2131fi 2132eval ac_res=\$$3 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2134$as_echo "$ac_res" >&6; } 2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2136 2137} # ac_fn_c_check_decl 2138 2139# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2140# -------------------------------------------- 2141# Tries to find the compile-time value of EXPR in a program that includes 2142# INCLUDES, setting VAR accordingly. Returns whether the value could be 2143# computed 2144ac_fn_c_compute_int () 2145{ 2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2147 if test "$cross_compiling" = yes; then 2148 # Depending upon the size, compute the lo and hi bounds. 2149cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2150/* end confdefs.h. */ 2151$4 2152int 2153main () 2154{ 2155static int test_array [1 - 2 * !(($2) >= 0)]; 2156test_array [0] = 0 2157 2158 ; 2159 return 0; 2160} 2161_ACEOF 2162if ac_fn_c_try_compile "$LINENO"; then : 2163 ac_lo=0 ac_mid=0 2164 while :; do 2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2166/* end confdefs.h. */ 2167$4 2168int 2169main () 2170{ 2171static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2172test_array [0] = 0 2173 2174 ; 2175 return 0; 2176} 2177_ACEOF 2178if ac_fn_c_try_compile "$LINENO"; then : 2179 ac_hi=$ac_mid; break 2180else 2181 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2182 if test $ac_lo -le $ac_mid; then 2183 ac_lo= ac_hi= 2184 break 2185 fi 2186 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2187fi 2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2189 done 2190else 2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2192/* end confdefs.h. */ 2193$4 2194int 2195main () 2196{ 2197static int test_array [1 - 2 * !(($2) < 0)]; 2198test_array [0] = 0 2199 2200 ; 2201 return 0; 2202} 2203_ACEOF 2204if ac_fn_c_try_compile "$LINENO"; then : 2205 ac_hi=-1 ac_mid=-1 2206 while :; do 2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2208/* end confdefs.h. */ 2209$4 2210int 2211main () 2212{ 2213static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2214test_array [0] = 0 2215 2216 ; 2217 return 0; 2218} 2219_ACEOF 2220if ac_fn_c_try_compile "$LINENO"; then : 2221 ac_lo=$ac_mid; break 2222else 2223 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2224 if test $ac_mid -le $ac_hi; then 2225 ac_lo= ac_hi= 2226 break 2227 fi 2228 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2229fi 2230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2231 done 2232else 2233 ac_lo= ac_hi= 2234fi 2235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2236fi 2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2238# Binary search between lo and hi bounds. 2239while test "x$ac_lo" != "x$ac_hi"; do 2240 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2242/* end confdefs.h. */ 2243$4 2244int 2245main () 2246{ 2247static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2248test_array [0] = 0 2249 2250 ; 2251 return 0; 2252} 2253_ACEOF 2254if ac_fn_c_try_compile "$LINENO"; then : 2255 ac_hi=$ac_mid 2256else 2257 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2258fi 2259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2260done 2261case $ac_lo in #(( 2262?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2263'') ac_retval=1 ;; 2264esac 2265 else 2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2267/* end confdefs.h. */ 2268$4 2269static long int longval () { return $2; } 2270static unsigned long int ulongval () { return $2; } 2271#include <stdio.h> 2272#include <stdlib.h> 2273int 2274main () 2275{ 2276 2277 FILE *f = fopen ("conftest.val", "w"); 2278 if (! f) 2279 return 1; 2280 if (($2) < 0) 2281 { 2282 long int i = longval (); 2283 if (i != ($2)) 2284 return 1; 2285 fprintf (f, "%ld", i); 2286 } 2287 else 2288 { 2289 unsigned long int i = ulongval (); 2290 if (i != ($2)) 2291 return 1; 2292 fprintf (f, "%lu", i); 2293 } 2294 /* Do not output a trailing newline, as this causes \r\n confusion 2295 on some platforms. */ 2296 return ferror (f) || fclose (f) != 0; 2297 2298 ; 2299 return 0; 2300} 2301_ACEOF 2302if ac_fn_c_try_run "$LINENO"; then : 2303 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2304else 2305 ac_retval=1 2306fi 2307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2308 conftest.$ac_objext conftest.beam conftest.$ac_ext 2309rm -f conftest.val 2310 2311 fi 2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2313 as_fn_set_status $ac_retval 2314 2315} # ac_fn_c_compute_int 2316 2317# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2318# ---------------------------------------------------- 2319# Tries to find if the field MEMBER exists in type AGGR, after including 2320# INCLUDES, setting cache variable VAR accordingly. 2321ac_fn_c_check_member () 2322{ 2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2325$as_echo_n "checking for $2.$3... " >&6; } 2326if eval \${$4+:} false; then : 2327 $as_echo_n "(cached) " >&6 2328else 2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2330/* end confdefs.h. */ 2331$5 2332int 2333main () 2334{ 2335static $2 ac_aggr; 2336if (ac_aggr.$3) 2337return 0; 2338 ; 2339 return 0; 2340} 2341_ACEOF 2342if ac_fn_c_try_compile "$LINENO"; then : 2343 eval "$4=yes" 2344else 2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2346/* end confdefs.h. */ 2347$5 2348int 2349main () 2350{ 2351static $2 ac_aggr; 2352if (sizeof ac_aggr.$3) 2353return 0; 2354 ; 2355 return 0; 2356} 2357_ACEOF 2358if ac_fn_c_try_compile "$LINENO"; then : 2359 eval "$4=yes" 2360else 2361 eval "$4=no" 2362fi 2363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2364fi 2365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2366fi 2367eval ac_res=\$$4 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2369$as_echo "$ac_res" >&6; } 2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2371 2372} # ac_fn_c_check_member 2373 2374# ac_fn_cxx_try_compile LINENO 2375# ---------------------------- 2376# Try to compile conftest.$ac_ext, and return whether this succeeded. 2377ac_fn_cxx_try_compile () 2378{ 2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2380 rm -f conftest.$ac_objext 2381 if { { ac_try="$ac_compile" 2382case "(($ac_try" in 2383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2384 *) ac_try_echo=$ac_try;; 2385esac 2386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2387$as_echo "$ac_try_echo"; } >&5 2388 (eval "$ac_compile") 2>conftest.err 2389 ac_status=$? 2390 if test -s conftest.err; then 2391 grep -v '^ *+' conftest.err >conftest.er1 2392 cat conftest.er1 >&5 2393 mv -f conftest.er1 conftest.err 2394 fi 2395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2396 test $ac_status = 0; } && { 2397 test -z "$ac_cxx_werror_flag" || 2398 test ! -s conftest.err 2399 } && test -s conftest.$ac_objext; then : 2400 ac_retval=0 2401else 2402 $as_echo "$as_me: failed program was:" >&5 2403sed 's/^/| /' conftest.$ac_ext >&5 2404 2405 ac_retval=1 2406fi 2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2408 as_fn_set_status $ac_retval 2409 2410} # ac_fn_cxx_try_compile 2411 2412# ac_fn_cxx_try_cpp LINENO 2413# ------------------------ 2414# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2415ac_fn_cxx_try_cpp () 2416{ 2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2418 if { { ac_try="$ac_cpp conftest.$ac_ext" 2419case "(($ac_try" in 2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2421 *) ac_try_echo=$ac_try;; 2422esac 2423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2424$as_echo "$ac_try_echo"; } >&5 2425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2426 ac_status=$? 2427 if test -s conftest.err; then 2428 grep -v '^ *+' conftest.err >conftest.er1 2429 cat conftest.er1 >&5 2430 mv -f conftest.er1 conftest.err 2431 fi 2432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2433 test $ac_status = 0; } > conftest.i && { 2434 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2435 test ! -s conftest.err 2436 }; then : 2437 ac_retval=0 2438else 2439 $as_echo "$as_me: failed program was:" >&5 2440sed 's/^/| /' conftest.$ac_ext >&5 2441 2442 ac_retval=1 2443fi 2444 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2445 as_fn_set_status $ac_retval 2446 2447} # ac_fn_cxx_try_cpp 2448 2449# ac_fn_cxx_try_link LINENO 2450# ------------------------- 2451# Try to link conftest.$ac_ext, and return whether this succeeded. 2452ac_fn_cxx_try_link () 2453{ 2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2455 rm -f conftest.$ac_objext conftest$ac_exeext 2456 if { { ac_try="$ac_link" 2457case "(($ac_try" in 2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2459 *) ac_try_echo=$ac_try;; 2460esac 2461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2462$as_echo "$ac_try_echo"; } >&5 2463 (eval "$ac_link") 2>conftest.err 2464 ac_status=$? 2465 if test -s conftest.err; then 2466 grep -v '^ *+' conftest.err >conftest.er1 2467 cat conftest.er1 >&5 2468 mv -f conftest.er1 conftest.err 2469 fi 2470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2471 test $ac_status = 0; } && { 2472 test -z "$ac_cxx_werror_flag" || 2473 test ! -s conftest.err 2474 } && test -s conftest$ac_exeext && { 2475 test "$cross_compiling" = yes || 2476 $as_test_x conftest$ac_exeext 2477 }; then : 2478 ac_retval=0 2479else 2480 $as_echo "$as_me: failed program was:" >&5 2481sed 's/^/| /' conftest.$ac_ext >&5 2482 2483 ac_retval=1 2484fi 2485 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2486 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2487 # interfere with the next link command; also delete a directory that is 2488 # left behind by Apple's compiler. We do this before executing the actions. 2489 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2491 as_fn_set_status $ac_retval 2492 2493} # ac_fn_cxx_try_link 2494cat >config.log <<_ACEOF 2495This file contains any messages produced by compilers while 2496running configure, to aid debugging if configure makes a mistake. 2497 2498It was created by sntp $as_me 4.2.8p1, which was 2499generated by GNU Autoconf 2.68. Invocation command line was 2500 2501 $ $0 $@ 2502 2503_ACEOF 2504exec 5>>config.log 2505{ 2506cat <<_ASUNAME 2507## --------- ## 2508## Platform. ## 2509## --------- ## 2510 2511hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2512uname -m = `(uname -m) 2>/dev/null || echo unknown` 2513uname -r = `(uname -r) 2>/dev/null || echo unknown` 2514uname -s = `(uname -s) 2>/dev/null || echo unknown` 2515uname -v = `(uname -v) 2>/dev/null || echo unknown` 2516 2517/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2518/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2519 2520/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2521/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2522/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2523/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2524/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2525/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2526/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2527 2528_ASUNAME 2529 2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2531for as_dir in $PATH 2532do 2533 IFS=$as_save_IFS 2534 test -z "$as_dir" && as_dir=. 2535 $as_echo "PATH: $as_dir" 2536 done 2537IFS=$as_save_IFS 2538 2539} >&5 2540 2541cat >&5 <<_ACEOF 2542 2543 2544## ----------- ## 2545## Core tests. ## 2546## ----------- ## 2547 2548_ACEOF 2549 2550 2551# Keep a trace of the command line. 2552# Strip out --no-create and --no-recursion so they do not pile up. 2553# Strip out --silent because we don't want to record it for future runs. 2554# Also quote any args containing shell meta-characters. 2555# Make two passes to allow for proper duplicate-argument suppression. 2556ac_configure_args= 2557ac_configure_args0= 2558ac_configure_args1= 2559ac_must_keep_next=false 2560for ac_pass in 1 2 2561do 2562 for ac_arg 2563 do 2564 case $ac_arg in 2565 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2567 | -silent | --silent | --silen | --sile | --sil) 2568 continue ;; 2569 *\'*) 2570 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2571 esac 2572 case $ac_pass in 2573 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2574 2) 2575 as_fn_append ac_configure_args1 " '$ac_arg'" 2576 if test $ac_must_keep_next = true; then 2577 ac_must_keep_next=false # Got value, back to normal. 2578 else 2579 case $ac_arg in 2580 *=* | --config-cache | -C | -disable-* | --disable-* \ 2581 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2582 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2583 | -with-* | --with-* | -without-* | --without-* | --x) 2584 case "$ac_configure_args0 " in 2585 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2586 esac 2587 ;; 2588 -* ) ac_must_keep_next=true ;; 2589 esac 2590 fi 2591 as_fn_append ac_configure_args " '$ac_arg'" 2592 ;; 2593 esac 2594 done 2595done 2596{ ac_configure_args0=; unset ac_configure_args0;} 2597{ ac_configure_args1=; unset ac_configure_args1;} 2598 2599# When interrupted or exit'd, cleanup temporary files, and complete 2600# config.log. We remove comments because anyway the quotes in there 2601# would cause problems or look ugly. 2602# WARNING: Use '\'' to represent an apostrophe within the trap. 2603# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2604trap 'exit_status=$? 2605 # Save into config.log some information that might help in debugging. 2606 { 2607 echo 2608 2609 $as_echo "## ---------------- ## 2610## Cache variables. ## 2611## ---------------- ##" 2612 echo 2613 # The following way of writing the cache mishandles newlines in values, 2614( 2615 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2616 eval ac_val=\$$ac_var 2617 case $ac_val in #( 2618 *${as_nl}*) 2619 case $ac_var in #( 2620 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2621$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2622 esac 2623 case $ac_var in #( 2624 _ | IFS | as_nl) ;; #( 2625 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2626 *) { eval $ac_var=; unset $ac_var;} ;; 2627 esac ;; 2628 esac 2629 done 2630 (set) 2>&1 | 2631 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2632 *${as_nl}ac_space=\ *) 2633 sed -n \ 2634 "s/'\''/'\''\\\\'\'''\''/g; 2635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2636 ;; #( 2637 *) 2638 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2639 ;; 2640 esac | 2641 sort 2642) 2643 echo 2644 2645 $as_echo "## ----------------- ## 2646## Output variables. ## 2647## ----------------- ##" 2648 echo 2649 for ac_var in $ac_subst_vars 2650 do 2651 eval ac_val=\$$ac_var 2652 case $ac_val in 2653 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2654 esac 2655 $as_echo "$ac_var='\''$ac_val'\''" 2656 done | sort 2657 echo 2658 2659 if test -n "$ac_subst_files"; then 2660 $as_echo "## ------------------- ## 2661## File substitutions. ## 2662## ------------------- ##" 2663 echo 2664 for ac_var in $ac_subst_files 2665 do 2666 eval ac_val=\$$ac_var 2667 case $ac_val in 2668 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2669 esac 2670 $as_echo "$ac_var='\''$ac_val'\''" 2671 done | sort 2672 echo 2673 fi 2674 2675 if test -s confdefs.h; then 2676 $as_echo "## ----------- ## 2677## confdefs.h. ## 2678## ----------- ##" 2679 echo 2680 cat confdefs.h 2681 echo 2682 fi 2683 test "$ac_signal" != 0 && 2684 $as_echo "$as_me: caught signal $ac_signal" 2685 $as_echo "$as_me: exit $exit_status" 2686 } >&5 2687 rm -f core *.core core.conftest.* && 2688 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2689 exit $exit_status 2690' 0 2691for ac_signal in 1 2 13 15; do 2692 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2693done 2694ac_signal=0 2695 2696# confdefs.h avoids OS command line length limits that DEFS can exceed. 2697rm -f -r conftest* confdefs.h 2698 2699$as_echo "/* confdefs.h */" > confdefs.h 2700 2701# Predefined preprocessor variables. 2702 2703cat >>confdefs.h <<_ACEOF 2704#define PACKAGE_NAME "$PACKAGE_NAME" 2705_ACEOF 2706 2707cat >>confdefs.h <<_ACEOF 2708#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2709_ACEOF 2710 2711cat >>confdefs.h <<_ACEOF 2712#define PACKAGE_VERSION "$PACKAGE_VERSION" 2713_ACEOF 2714 2715cat >>confdefs.h <<_ACEOF 2716#define PACKAGE_STRING "$PACKAGE_STRING" 2717_ACEOF 2718 2719cat >>confdefs.h <<_ACEOF 2720#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2721_ACEOF 2722 2723cat >>confdefs.h <<_ACEOF 2724#define PACKAGE_URL "$PACKAGE_URL" 2725_ACEOF 2726 2727 2728# Let the site file select an alternate cache file if it wants to. 2729# Prefer an explicitly selected file to automatically selected ones. 2730ac_site_file1=NONE 2731ac_site_file2=NONE 2732if test -n "$CONFIG_SITE"; then 2733 # We do not want a PATH search for config.site. 2734 case $CONFIG_SITE in #(( 2735 -*) ac_site_file1=./$CONFIG_SITE;; 2736 */*) ac_site_file1=$CONFIG_SITE;; 2737 *) ac_site_file1=./$CONFIG_SITE;; 2738 esac 2739elif test "x$prefix" != xNONE; then 2740 ac_site_file1=$prefix/share/config.site 2741 ac_site_file2=$prefix/etc/config.site 2742else 2743 ac_site_file1=$ac_default_prefix/share/config.site 2744 ac_site_file2=$ac_default_prefix/etc/config.site 2745fi 2746for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2747do 2748 test "x$ac_site_file" = xNONE && continue 2749 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2751$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2752 sed 's/^/| /' "$ac_site_file" >&5 2753 . "$ac_site_file" \ 2754 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2756as_fn_error $? "failed to load site script $ac_site_file 2757See \`config.log' for more details" "$LINENO" 5; } 2758 fi 2759done 2760 2761if test -r "$cache_file"; then 2762 # Some versions of bash will fail to source /dev/null (special files 2763 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2764 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2766$as_echo "$as_me: loading cache $cache_file" >&6;} 2767 case $cache_file in 2768 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2769 *) . "./$cache_file";; 2770 esac 2771 fi 2772else 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2774$as_echo "$as_me: creating cache $cache_file" >&6;} 2775 >$cache_file 2776fi 2777 2778as_fn_append ac_header_list " stdarg.h" 2779# Check that the precious variables saved in the cache have kept the same 2780# value. 2781ac_cache_corrupted=false 2782for ac_var in $ac_precious_vars; do 2783 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2784 eval ac_new_set=\$ac_env_${ac_var}_set 2785 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2786 eval ac_new_val=\$ac_env_${ac_var}_value 2787 case $ac_old_set,$ac_new_set in 2788 set,) 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2790$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2791 ac_cache_corrupted=: ;; 2792 ,set) 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2794$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2795 ac_cache_corrupted=: ;; 2796 ,);; 2797 *) 2798 if test "x$ac_old_val" != "x$ac_new_val"; then 2799 # differences in whitespace do not lead to failure. 2800 ac_old_val_w=`echo x $ac_old_val` 2801 ac_new_val_w=`echo x $ac_new_val` 2802 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2804$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2805 ac_cache_corrupted=: 2806 else 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2808$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2809 eval $ac_var=\$ac_old_val 2810 fi 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2812$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2814$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2815 fi;; 2816 esac 2817 # Pass precious variables to config.status. 2818 if test "$ac_new_set" = set; then 2819 case $ac_new_val in 2820 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2821 *) ac_arg=$ac_var=$ac_new_val ;; 2822 esac 2823 case " $ac_configure_args " in 2824 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2825 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2826 esac 2827 fi 2828done 2829if $ac_cache_corrupted; then 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2833$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2834 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2835fi 2836## -------------------- ## 2837## Main body of script. ## 2838## -------------------- ## 2839 2840ac_ext=c 2841ac_cpp='$CPP $CPPFLAGS' 2842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2844ac_compiler_gnu=$ac_cv_c_compiler_gnu 2845 2846 2847 2848ac_aux_dir= 2849for ac_dir in libevent/build-aux "$srcdir"/libevent/build-aux; do 2850 if test -f "$ac_dir/install-sh"; then 2851 ac_aux_dir=$ac_dir 2852 ac_install_sh="$ac_aux_dir/install-sh -c" 2853 break 2854 elif test -f "$ac_dir/install.sh"; then 2855 ac_aux_dir=$ac_dir 2856 ac_install_sh="$ac_aux_dir/install.sh -c" 2857 break 2858 elif test -f "$ac_dir/shtool"; then 2859 ac_aux_dir=$ac_dir 2860 ac_install_sh="$ac_aux_dir/shtool install -c" 2861 break 2862 fi 2863done 2864if test -z "$ac_aux_dir"; then 2865 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libevent/build-aux \"$srcdir\"/libevent/build-aux" "$LINENO" 5 2866fi 2867 2868# These three variables are undocumented and unsupported, 2869# and are intended to be withdrawn in a future Autoconf release. 2870# They can cause serious problems if a builder's source tree is in a directory 2871# whose full name contains unusual characters. 2872ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2873ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2874ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2875 2876 2877 2878# Bump sntp_configure_cache_version for each change to configure.ac or 2879# .m4 files which invalidates cached values from previous configure 2880# runs. 2881# 2882# If the change affects cache variables used only by the main NTP 2883# configure.ac, then only its version number should be bumped, while 2884# the subdir configure.ac version numbers should be unchanged. The 2885# same is true for a test/variable that is used only by one subdir 2886# being changed incompatibly; only that subdir's cache version needs 2887# bumping. 2888# 2889# If a change affects variables shared by all NTP configure scripts, 2890# please bump the version numbers of each. If you are not sure, the 2891# safe choice is to bump all on any cache-invalidating change. 2892# 2893# In order to avoid the risk of version stamp collision between -stable 2894# and -dev branches, do not simply increment the version, instead use 2895# the date YYYYMMDD optionally with -HHMM if there is more than one 2896# bump in a day. 2897 2898sntp_configure_cache_version=20120806 2899 2900# When the version of config.cache and configure do not 2901# match, NTP_CACHEVERSION will flush the cache. 2902 2903 2904 2905 ntp_cache_flush=1 2906 2907 case "$ntp_cv_sntp_cache_version" in 2908 $sntp_configure_cache_version) 2909 # same version, good 2910 ntp_cache_flush=0 2911 ;; 2912 '') 2913 # No cache, predates ntp_cv_sntp_cache_version, or is empty. 2914 case "$cache_file" in 2915 /dev/null) 2916 ntp_cache_flush=0 2917 ;; 2918 *) 2919 case "$NTP_CACHEVERSION_PARENT" in 2920 '') 2921 # Do not clear the cache immediately after it is created 2922 # empty as it is noisy. Differentiate a newly-created 2923 # config.cache from one predating the cache version 2924 # mechanism by looking for the first cached variable set 2925 # by Autoconf 2926 case "$ac_cv_path_install" in 2927 '') 2928 # empty config.cache file 2929 ntp_cache_flush=0 2930 esac 2931 ;; 2932 *) 2933 # Parent configure just created cache from empty, 2934 # flushing would be counterproductive. 2935 ntp_cache_flush=0; 2936 ;; 2937 esac 2938 esac 2939 ;; 2940 *) 2941 # configure cache version mismatches config.cache version 2942 ;; 2943 esac 2944 2945 case "$ntp_cache_flush" in 2946 1) 2947 c_version="${ntp_cv_sntp_cache_version:-(no version found)}" 2948 2949 # Do we flush all variables or exclude others' version stamps? 2950 2951 case "$NTP_CACHEVERSION_PARENT" in 2952 '') 2953 # Clear all *_cv_* variables including our child subdirs' 2954 # ntp_cv_*_cache_version variables. This prevents subdir 2955 # configure scripts from noticing a version mismatch just 2956 # after the top configure in the invocation cleared and 2957 # recreated the cache. 2958 2959 c_varname_list=`set | 2960 sed -n -e 's/=.*$//' \ 2961 -e '/_cv_/p' 2962 ` 2963 ;; 2964 *) 2965 # This is not the top configure this particular invocation. 2966 # Clear all *_cv_* variables sparing the version stamps 2967 # of other configure scripts, so we don't trigger 2968 # useless repeated clearings. 2969 2970 c_varname_list=`set | 2971 sed -n -e 's/=.*$//' \ 2972 -e '/ntp_cv_.*_cache_version/d' \ 2973 -e '/_cv_/p' 2974 ` 2975 esac 2976 2977 for c_varname in $c_varname_list 2978 do 2979 { eval $c_varname=; unset $c_varname; } 2980 done 2981 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5 2983$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;} 2984 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5 2985$as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;} 2986 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5 2987$as_echo "$as_me: $cache_file version: $c_version" >&6;} 2988 { c_varname=; unset c_varname;} 2989 { c_varname_list=; unset c_varname_list;} 2990 { c_version=; unset c_version;} 2991 esac 2992 2993 { ntp_cache_flush=; unset ntp_cache_flush;} 2994 2995 # save configure version in config.cache for next time 2996 ntp_cv_sntp_cache_version="$sntp_configure_cache_version" 2997 2998 # let any subdir configure.ac NTP_CACHEVERSION invocations 2999 # know they are not the top level. 3000 NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT 3001 3002 3003am__api_version='1.11' 3004 3005# Find a good install program. We prefer a C program (faster), 3006# so one script is as good as another. But avoid the broken or 3007# incompatible versions: 3008# SysV /etc/install, /usr/sbin/install 3009# SunOS /usr/etc/install 3010# IRIX /sbin/install 3011# AIX /bin/install 3012# AmigaOS /C/install, which installs bootblocks on floppy discs 3013# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3014# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3015# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3016# OS/2's system install, which has a completely different semantic 3017# ./install, which can be erroneously created by make from ./install.sh. 3018# Reject install programs that cannot install multiple files. 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3020$as_echo_n "checking for a BSD-compatible install... " >&6; } 3021if test -z "$INSTALL"; then 3022if ${ac_cv_path_install+:} false; then : 3023 $as_echo_n "(cached) " >&6 3024else 3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3026for as_dir in $PATH 3027do 3028 IFS=$as_save_IFS 3029 test -z "$as_dir" && as_dir=. 3030 # Account for people who put trailing slashes in PATH elements. 3031case $as_dir/ in #(( 3032 ./ | .// | /[cC]/* | \ 3033 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3034 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3035 /usr/ucb/* ) ;; 3036 *) 3037 # OSF1 and SCO ODT 3.0 have their own names for install. 3038 # Don't use installbsd from OSF since it installs stuff as root 3039 # by default. 3040 for ac_prog in ginstall scoinst install; do 3041 for ac_exec_ext in '' $ac_executable_extensions; do 3042 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3043 if test $ac_prog = install && 3044 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3045 # AIX install. It has an incompatible calling convention. 3046 : 3047 elif test $ac_prog = install && 3048 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3049 # program-specific install script used by HP pwplus--don't use. 3050 : 3051 else 3052 rm -rf conftest.one conftest.two conftest.dir 3053 echo one > conftest.one 3054 echo two > conftest.two 3055 mkdir conftest.dir 3056 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3057 test -s conftest.one && test -s conftest.two && 3058 test -s conftest.dir/conftest.one && 3059 test -s conftest.dir/conftest.two 3060 then 3061 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3062 break 3 3063 fi 3064 fi 3065 fi 3066 done 3067 done 3068 ;; 3069esac 3070 3071 done 3072IFS=$as_save_IFS 3073 3074rm -rf conftest.one conftest.two conftest.dir 3075 3076fi 3077 if test "${ac_cv_path_install+set}" = set; then 3078 INSTALL=$ac_cv_path_install 3079 else 3080 # As a last resort, use the slow shell script. Don't cache a 3081 # value for INSTALL within a source directory, because that will 3082 # break other packages using the cache if that directory is 3083 # removed, or if the value is a relative name. 3084 INSTALL=$ac_install_sh 3085 fi 3086fi 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3088$as_echo "$INSTALL" >&6; } 3089 3090# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3091# It thinks the first close brace ends the variable substitution. 3092test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3093 3094test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3095 3096test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3097 3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3099$as_echo_n "checking whether build environment is sane... " >&6; } 3100# Just in case 3101sleep 1 3102echo timestamp > conftest.file 3103# Reject unsafe characters in $srcdir or the absolute working directory 3104# name. Accept space and tab only in the latter. 3105am_lf=' 3106' 3107case `pwd` in 3108 *[\\\"\#\$\&\'\`$am_lf]*) 3109 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3110esac 3111case $srcdir in 3112 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3113 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3114esac 3115 3116# Do `set' in a subshell so we don't clobber the current shell's 3117# arguments. Must try -L first in case configure is actually a 3118# symlink; some systems play weird games with the mod time of symlinks 3119# (eg FreeBSD returns the mod time of the symlink's containing 3120# directory). 3121if ( 3122 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3123 if test "$*" = "X"; then 3124 # -L didn't work. 3125 set X `ls -t "$srcdir/configure" conftest.file` 3126 fi 3127 rm -f conftest.file 3128 if test "$*" != "X $srcdir/configure conftest.file" \ 3129 && test "$*" != "X conftest.file $srcdir/configure"; then 3130 3131 # If neither matched, then we have a broken ls. This can happen 3132 # if, for instance, CONFIG_SHELL is bash and it inherits a 3133 # broken ls alias from the environment. This has actually 3134 # happened. Such a system could not be considered "sane". 3135 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3136alias in your environment" "$LINENO" 5 3137 fi 3138 3139 test "$2" = conftest.file 3140 ) 3141then 3142 # Ok. 3143 : 3144else 3145 as_fn_error $? "newly created file is older than distributed files! 3146Check your system clock" "$LINENO" 5 3147fi 3148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3149$as_echo "yes" >&6; } 3150test "$program_prefix" != NONE && 3151 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3152# Use a double $ so make ignores it. 3153test "$program_suffix" != NONE && 3154 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3155# Double any \ or $. 3156# By default was `s,x,x', remove it if useless. 3157ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3158program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3159 3160# expand $ac_aux_dir to an absolute path 3161am_aux_dir=`cd $ac_aux_dir && pwd` 3162 3163if test x"${MISSING+set}" != xset; then 3164 case $am_aux_dir in 3165 *\ * | *\ *) 3166 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3167 *) 3168 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3169 esac 3170fi 3171# Use eval to expand $SHELL 3172if eval "$MISSING --run true"; then 3173 am_missing_run="$MISSING --run " 3174else 3175 am_missing_run= 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3177$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3178fi 3179 3180if test x"${install_sh}" != xset; then 3181 case $am_aux_dir in 3182 *\ * | *\ *) 3183 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3184 *) 3185 install_sh="\${SHELL} $am_aux_dir/install-sh" 3186 esac 3187fi 3188 3189# Installed binaries are usually stripped using `strip' when the user 3190# run `make install-strip'. However `strip' might not be the right 3191# tool to use in cross-compilation environments, therefore Automake 3192# will honor the `STRIP' environment variable to overrule this program. 3193if test "$cross_compiling" != no; then 3194 if test -n "$ac_tool_prefix"; then 3195 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3196set dummy ${ac_tool_prefix}strip; ac_word=$2 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3198$as_echo_n "checking for $ac_word... " >&6; } 3199if ${ac_cv_prog_STRIP+:} false; then : 3200 $as_echo_n "(cached) " >&6 3201else 3202 if test -n "$STRIP"; then 3203 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3204else 3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3206for as_dir in $PATH 3207do 3208 IFS=$as_save_IFS 3209 test -z "$as_dir" && as_dir=. 3210 for ac_exec_ext in '' $ac_executable_extensions; do 3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3212 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3214 break 2 3215 fi 3216done 3217 done 3218IFS=$as_save_IFS 3219 3220fi 3221fi 3222STRIP=$ac_cv_prog_STRIP 3223if test -n "$STRIP"; then 3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3225$as_echo "$STRIP" >&6; } 3226else 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3228$as_echo "no" >&6; } 3229fi 3230 3231 3232fi 3233if test -z "$ac_cv_prog_STRIP"; then 3234 ac_ct_STRIP=$STRIP 3235 # Extract the first word of "strip", so it can be a program name with args. 3236set dummy strip; ac_word=$2 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3238$as_echo_n "checking for $ac_word... " >&6; } 3239if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3240 $as_echo_n "(cached) " >&6 3241else 3242 if test -n "$ac_ct_STRIP"; then 3243 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3244else 3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3246for as_dir in $PATH 3247do 3248 IFS=$as_save_IFS 3249 test -z "$as_dir" && as_dir=. 3250 for ac_exec_ext in '' $ac_executable_extensions; do 3251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3252 ac_cv_prog_ac_ct_STRIP="strip" 3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3254 break 2 3255 fi 3256done 3257 done 3258IFS=$as_save_IFS 3259 3260fi 3261fi 3262ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3263if test -n "$ac_ct_STRIP"; then 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3265$as_echo "$ac_ct_STRIP" >&6; } 3266else 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3268$as_echo "no" >&6; } 3269fi 3270 3271 if test "x$ac_ct_STRIP" = x; then 3272 STRIP=":" 3273 else 3274 case $cross_compiling:$ac_tool_warned in 3275yes:) 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3278ac_tool_warned=yes ;; 3279esac 3280 STRIP=$ac_ct_STRIP 3281 fi 3282else 3283 STRIP="$ac_cv_prog_STRIP" 3284fi 3285 3286fi 3287INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3288 3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3290$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3291if test -z "$MKDIR_P"; then 3292 if ${ac_cv_path_mkdir+:} false; then : 3293 $as_echo_n "(cached) " >&6 3294else 3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3296for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3297do 3298 IFS=$as_save_IFS 3299 test -z "$as_dir" && as_dir=. 3300 for ac_prog in mkdir gmkdir; do 3301 for ac_exec_ext in '' $ac_executable_extensions; do 3302 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3303 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3304 'mkdir (GNU coreutils) '* | \ 3305 'mkdir (coreutils) '* | \ 3306 'mkdir (fileutils) '4.1*) 3307 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3308 break 3;; 3309 esac 3310 done 3311 done 3312 done 3313IFS=$as_save_IFS 3314 3315fi 3316 3317 test -d ./--version && rmdir ./--version 3318 if test "${ac_cv_path_mkdir+set}" = set; then 3319 MKDIR_P="$ac_cv_path_mkdir -p" 3320 else 3321 # As a last resort, use the slow shell script. Don't cache a 3322 # value for MKDIR_P within a source directory, because that will 3323 # break other packages using the cache if that directory is 3324 # removed, or if the value is a relative name. 3325 MKDIR_P="$ac_install_sh -d" 3326 fi 3327fi 3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3329$as_echo "$MKDIR_P" >&6; } 3330 3331mkdir_p="$MKDIR_P" 3332case $mkdir_p in 3333 [\\/$]* | ?:[\\/]*) ;; 3334 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3335esac 3336 3337for ac_prog in gawk mawk nawk awk 3338do 3339 # Extract the first word of "$ac_prog", so it can be a program name with args. 3340set dummy $ac_prog; ac_word=$2 3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3342$as_echo_n "checking for $ac_word... " >&6; } 3343if ${ac_cv_prog_AWK+:} false; then : 3344 $as_echo_n "(cached) " >&6 3345else 3346 if test -n "$AWK"; then 3347 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3348else 3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3350for as_dir in $PATH 3351do 3352 IFS=$as_save_IFS 3353 test -z "$as_dir" && as_dir=. 3354 for ac_exec_ext in '' $ac_executable_extensions; do 3355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3356 ac_cv_prog_AWK="$ac_prog" 3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3358 break 2 3359 fi 3360done 3361 done 3362IFS=$as_save_IFS 3363 3364fi 3365fi 3366AWK=$ac_cv_prog_AWK 3367if test -n "$AWK"; then 3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3369$as_echo "$AWK" >&6; } 3370else 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3372$as_echo "no" >&6; } 3373fi 3374 3375 3376 test -n "$AWK" && break 3377done 3378 3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3380$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3381set x ${MAKE-make} 3382ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3383if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3384 $as_echo_n "(cached) " >&6 3385else 3386 cat >conftest.make <<\_ACEOF 3387SHELL = /bin/sh 3388all: 3389 @echo '@@@%%%=$(MAKE)=@@@%%%' 3390_ACEOF 3391# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3392case `${MAKE-make} -f conftest.make 2>/dev/null` in 3393 *@@@%%%=?*=@@@%%%*) 3394 eval ac_cv_prog_make_${ac_make}_set=yes;; 3395 *) 3396 eval ac_cv_prog_make_${ac_make}_set=no;; 3397esac 3398rm -f conftest.make 3399fi 3400if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3402$as_echo "yes" >&6; } 3403 SET_MAKE= 3404else 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3406$as_echo "no" >&6; } 3407 SET_MAKE="MAKE=${MAKE-make}" 3408fi 3409 3410rm -rf .tst 2>/dev/null 3411mkdir .tst 2>/dev/null 3412if test -d .tst; then 3413 am__leading_dot=. 3414else 3415 am__leading_dot=_ 3416fi 3417rmdir .tst 2>/dev/null 3418 3419if test "`cd $srcdir && pwd`" != "`pwd`"; then 3420 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3421 # is not polluted with repeated "-I." 3422 am__isrc=' -I$(srcdir)' 3423 # test to see if srcdir already configured 3424 if test -f $srcdir/config.status; then 3425 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3426 fi 3427fi 3428 3429# test whether we have cygpath 3430if test -z "$CYGPATH_W"; then 3431 if (cygpath --version) >/dev/null 2>/dev/null; then 3432 CYGPATH_W='cygpath -w' 3433 else 3434 CYGPATH_W=echo 3435 fi 3436fi 3437 3438 3439# Define the identity of the package. 3440 PACKAGE='sntp' 3441 VERSION='4.2.8p1' 3442 3443 3444cat >>confdefs.h <<_ACEOF 3445#define PACKAGE "$PACKAGE" 3446_ACEOF 3447 3448 3449cat >>confdefs.h <<_ACEOF 3450#define VERSION "$VERSION" 3451_ACEOF 3452 3453# Some tools Automake needs. 3454 3455ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3456 3457 3458AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3459 3460 3461AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3462 3463 3464AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3465 3466 3467MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3468 3469# We need awk for the "check" target. The system "awk" is bad on 3470# some platforms. 3471# Always define AMTAR for backward compatibility. 3472 3473AMTAR=${AMTAR-"${am_missing_run}tar"} 3474 3475am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3476 3477 3478 3479 3480 3481# Check whether --enable-silent-rules was given. 3482if test "${enable_silent_rules+set}" = set; then : 3483 enableval=$enable_silent_rules; 3484fi 3485 3486case $enable_silent_rules in 3487yes) AM_DEFAULT_VERBOSITY=0;; 3488no) AM_DEFAULT_VERBOSITY=1;; 3489*) AM_DEFAULT_VERBOSITY=0;; 3490esac 3491AM_BACKSLASH='\' 3492 3493 3494# Make sure we can run config.sub. 3495$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3496 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3497 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3499$as_echo_n "checking build system type... " >&6; } 3500if ${ac_cv_build+:} false; then : 3501 $as_echo_n "(cached) " >&6 3502else 3503 ac_build_alias=$build_alias 3504test "x$ac_build_alias" = x && 3505 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3506test "x$ac_build_alias" = x && 3507 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3508ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3509 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3510 3511fi 3512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3513$as_echo "$ac_cv_build" >&6; } 3514case $ac_cv_build in 3515*-*-*) ;; 3516*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3517esac 3518build=$ac_cv_build 3519ac_save_IFS=$IFS; IFS='-' 3520set x $ac_cv_build 3521shift 3522build_cpu=$1 3523build_vendor=$2 3524shift; shift 3525# Remember, the first character of IFS is used to create $*, 3526# except with old shells: 3527build_os=$* 3528IFS=$ac_save_IFS 3529case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3530 3531 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3533$as_echo_n "checking host system type... " >&6; } 3534if ${ac_cv_host+:} false; then : 3535 $as_echo_n "(cached) " >&6 3536else 3537 if test "x$host_alias" = x; then 3538 ac_cv_host=$ac_cv_build 3539else 3540 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3541 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3542fi 3543 3544fi 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3546$as_echo "$ac_cv_host" >&6; } 3547case $ac_cv_host in 3548*-*-*) ;; 3549*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3550esac 3551host=$ac_cv_host 3552ac_save_IFS=$IFS; IFS='-' 3553set x $ac_cv_host 3554shift 3555host_cpu=$1 3556host_vendor=$2 3557shift; shift 3558# Remember, the first character of IFS is used to create $*, 3559# except with old shells: 3560host_os=$* 3561IFS=$ac_save_IFS 3562case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3563 3564 3565 3566cat >>confdefs.h <<_ACEOF 3567#define STR_SYSTEM "$host" 3568_ACEOF 3569 3570ac_config_headers="$ac_config_headers config.h" 3571 3572 3573DEPDIR="${am__leading_dot}deps" 3574 3575ac_config_commands="$ac_config_commands depfiles" 3576 3577 3578am_make=${MAKE-make} 3579cat > confinc << 'END' 3580am__doit: 3581 @echo this is the am__doit target 3582.PHONY: am__doit 3583END 3584# If we don't find an include directive, just comment out the code. 3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3586$as_echo_n "checking for style of include used by $am_make... " >&6; } 3587am__include="#" 3588am__quote= 3589_am_result=none 3590# First try GNU make style include. 3591echo "include confinc" > confmf 3592# Ignore all kinds of additional output from `make'. 3593case `$am_make -s -f confmf 2> /dev/null` in #( 3594*the\ am__doit\ target*) 3595 am__include=include 3596 am__quote= 3597 _am_result=GNU 3598 ;; 3599esac 3600# Now try BSD make style include. 3601if test "$am__include" = "#"; then 3602 echo '.include "confinc"' > confmf 3603 case `$am_make -s -f confmf 2> /dev/null` in #( 3604 *the\ am__doit\ target*) 3605 am__include=.include 3606 am__quote="\"" 3607 _am_result=BSD 3608 ;; 3609 esac 3610fi 3611 3612 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3614$as_echo "$_am_result" >&6; } 3615rm -f confinc confmf 3616 3617# Check whether --enable-dependency-tracking was given. 3618if test "${enable_dependency_tracking+set}" = set; then : 3619 enableval=$enable_dependency_tracking; 3620fi 3621 3622if test "x$enable_dependency_tracking" != xno; then 3623 am_depcomp="$ac_aux_dir/depcomp" 3624 AMDEPBACKSLASH='\' 3625fi 3626 if test "x$enable_dependency_tracking" != xno; then 3627 AMDEP_TRUE= 3628 AMDEP_FALSE='#' 3629else 3630 AMDEP_TRUE='#' 3631 AMDEP_FALSE= 3632fi 3633 3634 3635ac_ext=c 3636ac_cpp='$CPP $CPPFLAGS' 3637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3639ac_compiler_gnu=$ac_cv_c_compiler_gnu 3640if test -n "$ac_tool_prefix"; then 3641 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3642set dummy ${ac_tool_prefix}gcc; ac_word=$2 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3644$as_echo_n "checking for $ac_word... " >&6; } 3645if ${ac_cv_prog_CC+:} false; then : 3646 $as_echo_n "(cached) " >&6 3647else 3648 if test -n "$CC"; then 3649 ac_cv_prog_CC="$CC" # Let the user override the test. 3650else 3651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3652for as_dir in $PATH 3653do 3654 IFS=$as_save_IFS 3655 test -z "$as_dir" && as_dir=. 3656 for ac_exec_ext in '' $ac_executable_extensions; do 3657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3658 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3660 break 2 3661 fi 3662done 3663 done 3664IFS=$as_save_IFS 3665 3666fi 3667fi 3668CC=$ac_cv_prog_CC 3669if test -n "$CC"; then 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3671$as_echo "$CC" >&6; } 3672else 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3674$as_echo "no" >&6; } 3675fi 3676 3677 3678fi 3679if test -z "$ac_cv_prog_CC"; then 3680 ac_ct_CC=$CC 3681 # Extract the first word of "gcc", so it can be a program name with args. 3682set dummy gcc; ac_word=$2 3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3684$as_echo_n "checking for $ac_word... " >&6; } 3685if ${ac_cv_prog_ac_ct_CC+:} false; then : 3686 $as_echo_n "(cached) " >&6 3687else 3688 if test -n "$ac_ct_CC"; then 3689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3690else 3691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3692for as_dir in $PATH 3693do 3694 IFS=$as_save_IFS 3695 test -z "$as_dir" && as_dir=. 3696 for ac_exec_ext in '' $ac_executable_extensions; do 3697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3698 ac_cv_prog_ac_ct_CC="gcc" 3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3700 break 2 3701 fi 3702done 3703 done 3704IFS=$as_save_IFS 3705 3706fi 3707fi 3708ac_ct_CC=$ac_cv_prog_ac_ct_CC 3709if test -n "$ac_ct_CC"; then 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3711$as_echo "$ac_ct_CC" >&6; } 3712else 3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3714$as_echo "no" >&6; } 3715fi 3716 3717 if test "x$ac_ct_CC" = x; then 3718 CC="" 3719 else 3720 case $cross_compiling:$ac_tool_warned in 3721yes:) 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3724ac_tool_warned=yes ;; 3725esac 3726 CC=$ac_ct_CC 3727 fi 3728else 3729 CC="$ac_cv_prog_CC" 3730fi 3731 3732if test -z "$CC"; then 3733 if test -n "$ac_tool_prefix"; then 3734 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3735set dummy ${ac_tool_prefix}cc; ac_word=$2 3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3737$as_echo_n "checking for $ac_word... " >&6; } 3738if ${ac_cv_prog_CC+:} false; then : 3739 $as_echo_n "(cached) " >&6 3740else 3741 if test -n "$CC"; then 3742 ac_cv_prog_CC="$CC" # Let the user override the test. 3743else 3744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3745for as_dir in $PATH 3746do 3747 IFS=$as_save_IFS 3748 test -z "$as_dir" && as_dir=. 3749 for ac_exec_ext in '' $ac_executable_extensions; do 3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3751 ac_cv_prog_CC="${ac_tool_prefix}cc" 3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3753 break 2 3754 fi 3755done 3756 done 3757IFS=$as_save_IFS 3758 3759fi 3760fi 3761CC=$ac_cv_prog_CC 3762if test -n "$CC"; then 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3764$as_echo "$CC" >&6; } 3765else 3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3767$as_echo "no" >&6; } 3768fi 3769 3770 3771 fi 3772fi 3773if test -z "$CC"; then 3774 # Extract the first word of "cc", so it can be a program name with args. 3775set dummy cc; ac_word=$2 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3777$as_echo_n "checking for $ac_word... " >&6; } 3778if ${ac_cv_prog_CC+:} false; then : 3779 $as_echo_n "(cached) " >&6 3780else 3781 if test -n "$CC"; then 3782 ac_cv_prog_CC="$CC" # Let the user override the test. 3783else 3784 ac_prog_rejected=no 3785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3786for as_dir in $PATH 3787do 3788 IFS=$as_save_IFS 3789 test -z "$as_dir" && as_dir=. 3790 for ac_exec_ext in '' $ac_executable_extensions; do 3791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3793 ac_prog_rejected=yes 3794 continue 3795 fi 3796 ac_cv_prog_CC="cc" 3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3798 break 2 3799 fi 3800done 3801 done 3802IFS=$as_save_IFS 3803 3804if test $ac_prog_rejected = yes; then 3805 # We found a bogon in the path, so make sure we never use it. 3806 set dummy $ac_cv_prog_CC 3807 shift 3808 if test $# != 0; then 3809 # We chose a different compiler from the bogus one. 3810 # However, it has the same basename, so the bogon will be chosen 3811 # first if we set CC to just the basename; use the full file name. 3812 shift 3813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3814 fi 3815fi 3816fi 3817fi 3818CC=$ac_cv_prog_CC 3819if test -n "$CC"; then 3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3821$as_echo "$CC" >&6; } 3822else 3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3824$as_echo "no" >&6; } 3825fi 3826 3827 3828fi 3829if test -z "$CC"; then 3830 if test -n "$ac_tool_prefix"; then 3831 for ac_prog in cl.exe 3832 do 3833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3834set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3836$as_echo_n "checking for $ac_word... " >&6; } 3837if ${ac_cv_prog_CC+:} false; then : 3838 $as_echo_n "(cached) " >&6 3839else 3840 if test -n "$CC"; then 3841 ac_cv_prog_CC="$CC" # Let the user override the test. 3842else 3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3844for as_dir in $PATH 3845do 3846 IFS=$as_save_IFS 3847 test -z "$as_dir" && as_dir=. 3848 for ac_exec_ext in '' $ac_executable_extensions; do 3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3850 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3852 break 2 3853 fi 3854done 3855 done 3856IFS=$as_save_IFS 3857 3858fi 3859fi 3860CC=$ac_cv_prog_CC 3861if test -n "$CC"; then 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3863$as_echo "$CC" >&6; } 3864else 3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3866$as_echo "no" >&6; } 3867fi 3868 3869 3870 test -n "$CC" && break 3871 done 3872fi 3873if test -z "$CC"; then 3874 ac_ct_CC=$CC 3875 for ac_prog in cl.exe 3876do 3877 # Extract the first word of "$ac_prog", so it can be a program name with args. 3878set dummy $ac_prog; ac_word=$2 3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3880$as_echo_n "checking for $ac_word... " >&6; } 3881if ${ac_cv_prog_ac_ct_CC+:} false; then : 3882 $as_echo_n "(cached) " >&6 3883else 3884 if test -n "$ac_ct_CC"; then 3885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3886else 3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3888for as_dir in $PATH 3889do 3890 IFS=$as_save_IFS 3891 test -z "$as_dir" && as_dir=. 3892 for ac_exec_ext in '' $ac_executable_extensions; do 3893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3894 ac_cv_prog_ac_ct_CC="$ac_prog" 3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3896 break 2 3897 fi 3898done 3899 done 3900IFS=$as_save_IFS 3901 3902fi 3903fi 3904ac_ct_CC=$ac_cv_prog_ac_ct_CC 3905if test -n "$ac_ct_CC"; then 3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3907$as_echo "$ac_ct_CC" >&6; } 3908else 3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3910$as_echo "no" >&6; } 3911fi 3912 3913 3914 test -n "$ac_ct_CC" && break 3915done 3916 3917 if test "x$ac_ct_CC" = x; then 3918 CC="" 3919 else 3920 case $cross_compiling:$ac_tool_warned in 3921yes:) 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3924ac_tool_warned=yes ;; 3925esac 3926 CC=$ac_ct_CC 3927 fi 3928fi 3929 3930fi 3931 3932 3933test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3935as_fn_error $? "no acceptable C compiler found in \$PATH 3936See \`config.log' for more details" "$LINENO" 5; } 3937 3938# Provide some information about the compiler. 3939$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3940set X $ac_compile 3941ac_compiler=$2 3942for ac_option in --version -v -V -qversion; do 3943 { { ac_try="$ac_compiler $ac_option >&5" 3944case "(($ac_try" in 3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3946 *) ac_try_echo=$ac_try;; 3947esac 3948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3949$as_echo "$ac_try_echo"; } >&5 3950 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3951 ac_status=$? 3952 if test -s conftest.err; then 3953 sed '10a\ 3954... rest of stderr output deleted ... 3955 10q' conftest.err >conftest.er1 3956 cat conftest.er1 >&5 3957 fi 3958 rm -f conftest.er1 conftest.err 3959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3960 test $ac_status = 0; } 3961done 3962 3963cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3964/* end confdefs.h. */ 3965 3966int 3967main () 3968{ 3969 3970 ; 3971 return 0; 3972} 3973_ACEOF 3974ac_clean_files_save=$ac_clean_files 3975ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3976# Try to create an executable without -o first, disregard a.out. 3977# It will help us diagnose broken compilers, and finding out an intuition 3978# of exeext. 3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3980$as_echo_n "checking whether the C compiler works... " >&6; } 3981ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3982 3983# The possible output files: 3984ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3985 3986ac_rmfiles= 3987for ac_file in $ac_files 3988do 3989 case $ac_file in 3990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3991 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3992 esac 3993done 3994rm -f $ac_rmfiles 3995 3996if { { ac_try="$ac_link_default" 3997case "(($ac_try" in 3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3999 *) ac_try_echo=$ac_try;; 4000esac 4001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4002$as_echo "$ac_try_echo"; } >&5 4003 (eval "$ac_link_default") 2>&5 4004 ac_status=$? 4005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4006 test $ac_status = 0; }; then : 4007 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4008# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4009# in a Makefile. We should not override ac_cv_exeext if it was cached, 4010# so that the user can short-circuit this test for compilers unknown to 4011# Autoconf. 4012for ac_file in $ac_files '' 4013do 4014 test -f "$ac_file" || continue 4015 case $ac_file in 4016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4017 ;; 4018 [ab].out ) 4019 # We found the default executable, but exeext='' is most 4020 # certainly right. 4021 break;; 4022 *.* ) 4023 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4024 then :; else 4025 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4026 fi 4027 # We set ac_cv_exeext here because the later test for it is not 4028 # safe: cross compilers may not add the suffix if given an `-o' 4029 # argument, so we may need to know it at that point already. 4030 # Even if this section looks crufty: it has the advantage of 4031 # actually working. 4032 break;; 4033 * ) 4034 break;; 4035 esac 4036done 4037test "$ac_cv_exeext" = no && ac_cv_exeext= 4038 4039else 4040 ac_file='' 4041fi 4042if test -z "$ac_file"; then : 4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4044$as_echo "no" >&6; } 4045$as_echo "$as_me: failed program was:" >&5 4046sed 's/^/| /' conftest.$ac_ext >&5 4047 4048{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4050as_fn_error 77 "C compiler cannot create executables 4051See \`config.log' for more details" "$LINENO" 5; } 4052else 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4054$as_echo "yes" >&6; } 4055fi 4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4057$as_echo_n "checking for C compiler default output file name... " >&6; } 4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4059$as_echo "$ac_file" >&6; } 4060ac_exeext=$ac_cv_exeext 4061 4062rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4063ac_clean_files=$ac_clean_files_save 4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4065$as_echo_n "checking for suffix of executables... " >&6; } 4066if { { ac_try="$ac_link" 4067case "(($ac_try" in 4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4069 *) ac_try_echo=$ac_try;; 4070esac 4071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4072$as_echo "$ac_try_echo"; } >&5 4073 (eval "$ac_link") 2>&5 4074 ac_status=$? 4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4076 test $ac_status = 0; }; then : 4077 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4078# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4079# work properly (i.e., refer to `conftest.exe'), while it won't with 4080# `rm'. 4081for ac_file in conftest.exe conftest conftest.*; do 4082 test -f "$ac_file" || continue 4083 case $ac_file in 4084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4085 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4086 break;; 4087 * ) break;; 4088 esac 4089done 4090else 4091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4093as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4094See \`config.log' for more details" "$LINENO" 5; } 4095fi 4096rm -f conftest conftest$ac_cv_exeext 4097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4098$as_echo "$ac_cv_exeext" >&6; } 4099 4100rm -f conftest.$ac_ext 4101EXEEXT=$ac_cv_exeext 4102ac_exeext=$EXEEXT 4103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4104/* end confdefs.h. */ 4105#include <stdio.h> 4106int 4107main () 4108{ 4109FILE *f = fopen ("conftest.out", "w"); 4110 return ferror (f) || fclose (f) != 0; 4111 4112 ; 4113 return 0; 4114} 4115_ACEOF 4116ac_clean_files="$ac_clean_files conftest.out" 4117# Check that the compiler produces executables we can run. If not, either 4118# the compiler is broken, or we cross compile. 4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4120$as_echo_n "checking whether we are cross compiling... " >&6; } 4121if test "$cross_compiling" != yes; then 4122 { { ac_try="$ac_link" 4123case "(($ac_try" in 4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4125 *) ac_try_echo=$ac_try;; 4126esac 4127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4128$as_echo "$ac_try_echo"; } >&5 4129 (eval "$ac_link") 2>&5 4130 ac_status=$? 4131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4132 test $ac_status = 0; } 4133 if { ac_try='./conftest$ac_cv_exeext' 4134 { { case "(($ac_try" in 4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4136 *) ac_try_echo=$ac_try;; 4137esac 4138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4139$as_echo "$ac_try_echo"; } >&5 4140 (eval "$ac_try") 2>&5 4141 ac_status=$? 4142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4143 test $ac_status = 0; }; }; then 4144 cross_compiling=no 4145 else 4146 if test "$cross_compiling" = maybe; then 4147 cross_compiling=yes 4148 else 4149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4151as_fn_error $? "cannot run C compiled programs. 4152If you meant to cross compile, use \`--host'. 4153See \`config.log' for more details" "$LINENO" 5; } 4154 fi 4155 fi 4156fi 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4158$as_echo "$cross_compiling" >&6; } 4159 4160rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4161ac_clean_files=$ac_clean_files_save 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4163$as_echo_n "checking for suffix of object files... " >&6; } 4164if ${ac_cv_objext+:} false; then : 4165 $as_echo_n "(cached) " >&6 4166else 4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4168/* end confdefs.h. */ 4169 4170int 4171main () 4172{ 4173 4174 ; 4175 return 0; 4176} 4177_ACEOF 4178rm -f conftest.o conftest.obj 4179if { { ac_try="$ac_compile" 4180case "(($ac_try" in 4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4182 *) ac_try_echo=$ac_try;; 4183esac 4184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4185$as_echo "$ac_try_echo"; } >&5 4186 (eval "$ac_compile") 2>&5 4187 ac_status=$? 4188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4189 test $ac_status = 0; }; then : 4190 for ac_file in conftest.o conftest.obj conftest.*; do 4191 test -f "$ac_file" || continue; 4192 case $ac_file in 4193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4194 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4195 break;; 4196 esac 4197done 4198else 4199 $as_echo "$as_me: failed program was:" >&5 4200sed 's/^/| /' conftest.$ac_ext >&5 4201 4202{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4204as_fn_error $? "cannot compute suffix of object files: cannot compile 4205See \`config.log' for more details" "$LINENO" 5; } 4206fi 4207rm -f conftest.$ac_cv_objext conftest.$ac_ext 4208fi 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4210$as_echo "$ac_cv_objext" >&6; } 4211OBJEXT=$ac_cv_objext 4212ac_objext=$OBJEXT 4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4214$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4215if ${ac_cv_c_compiler_gnu+:} false; then : 4216 $as_echo_n "(cached) " >&6 4217else 4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4219/* end confdefs.h. */ 4220 4221int 4222main () 4223{ 4224#ifndef __GNUC__ 4225 choke me 4226#endif 4227 4228 ; 4229 return 0; 4230} 4231_ACEOF 4232if ac_fn_c_try_compile "$LINENO"; then : 4233 ac_compiler_gnu=yes 4234else 4235 ac_compiler_gnu=no 4236fi 4237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4238ac_cv_c_compiler_gnu=$ac_compiler_gnu 4239 4240fi 4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4242$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4243if test $ac_compiler_gnu = yes; then 4244 GCC=yes 4245else 4246 GCC= 4247fi 4248ac_test_CFLAGS=${CFLAGS+set} 4249ac_save_CFLAGS=$CFLAGS 4250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4251$as_echo_n "checking whether $CC accepts -g... " >&6; } 4252if ${ac_cv_prog_cc_g+:} false; then : 4253 $as_echo_n "(cached) " >&6 4254else 4255 ac_save_c_werror_flag=$ac_c_werror_flag 4256 ac_c_werror_flag=yes 4257 ac_cv_prog_cc_g=no 4258 CFLAGS="-g" 4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4260/* end confdefs.h. */ 4261 4262int 4263main () 4264{ 4265 4266 ; 4267 return 0; 4268} 4269_ACEOF 4270if ac_fn_c_try_compile "$LINENO"; then : 4271 ac_cv_prog_cc_g=yes 4272else 4273 CFLAGS="" 4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4275/* end confdefs.h. */ 4276 4277int 4278main () 4279{ 4280 4281 ; 4282 return 0; 4283} 4284_ACEOF 4285if ac_fn_c_try_compile "$LINENO"; then : 4286 4287else 4288 ac_c_werror_flag=$ac_save_c_werror_flag 4289 CFLAGS="-g" 4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4291/* end confdefs.h. */ 4292 4293int 4294main () 4295{ 4296 4297 ; 4298 return 0; 4299} 4300_ACEOF 4301if ac_fn_c_try_compile "$LINENO"; then : 4302 ac_cv_prog_cc_g=yes 4303fi 4304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4305fi 4306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4307fi 4308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4309 ac_c_werror_flag=$ac_save_c_werror_flag 4310fi 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4312$as_echo "$ac_cv_prog_cc_g" >&6; } 4313if test "$ac_test_CFLAGS" = set; then 4314 CFLAGS=$ac_save_CFLAGS 4315elif test $ac_cv_prog_cc_g = yes; then 4316 if test "$GCC" = yes; then 4317 CFLAGS="-g -O2" 4318 else 4319 CFLAGS="-g" 4320 fi 4321else 4322 if test "$GCC" = yes; then 4323 CFLAGS="-O2" 4324 else 4325 CFLAGS= 4326 fi 4327fi 4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4329$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4330if ${ac_cv_prog_cc_c89+:} false; then : 4331 $as_echo_n "(cached) " >&6 4332else 4333 ac_cv_prog_cc_c89=no 4334ac_save_CC=$CC 4335cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4336/* end confdefs.h. */ 4337#include <stdarg.h> 4338#include <stdio.h> 4339#include <sys/types.h> 4340#include <sys/stat.h> 4341/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4342struct buf { int x; }; 4343FILE * (*rcsopen) (struct buf *, struct stat *, int); 4344static char *e (p, i) 4345 char **p; 4346 int i; 4347{ 4348 return p[i]; 4349} 4350static char *f (char * (*g) (char **, int), char **p, ...) 4351{ 4352 char *s; 4353 va_list v; 4354 va_start (v,p); 4355 s = g (p, va_arg (v,int)); 4356 va_end (v); 4357 return s; 4358} 4359 4360/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4361 function prototypes and stuff, but not '\xHH' hex character constants. 4362 These don't provoke an error unfortunately, instead are silently treated 4363 as 'x'. The following induces an error, until -std is added to get 4364 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4365 array size at least. It's necessary to write '\x00'==0 to get something 4366 that's true only with -std. */ 4367int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4368 4369/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4370 inside strings and character constants. */ 4371#define FOO(x) 'x' 4372int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4373 4374int test (int i, double x); 4375struct s1 {int (*f) (int a);}; 4376struct s2 {int (*f) (double a);}; 4377int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4378int argc; 4379char **argv; 4380int 4381main () 4382{ 4383return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4384 ; 4385 return 0; 4386} 4387_ACEOF 4388for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4389 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4390do 4391 CC="$ac_save_CC $ac_arg" 4392 if ac_fn_c_try_compile "$LINENO"; then : 4393 ac_cv_prog_cc_c89=$ac_arg 4394fi 4395rm -f core conftest.err conftest.$ac_objext 4396 test "x$ac_cv_prog_cc_c89" != "xno" && break 4397done 4398rm -f conftest.$ac_ext 4399CC=$ac_save_CC 4400 4401fi 4402# AC_CACHE_VAL 4403case "x$ac_cv_prog_cc_c89" in 4404 x) 4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4406$as_echo "none needed" >&6; } ;; 4407 xno) 4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4409$as_echo "unsupported" >&6; } ;; 4410 *) 4411 CC="$CC $ac_cv_prog_cc_c89" 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4413$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4414esac 4415if test "x$ac_cv_prog_cc_c89" != xno; then : 4416 4417fi 4418 4419ac_ext=c 4420ac_cpp='$CPP $CPPFLAGS' 4421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4423ac_compiler_gnu=$ac_cv_c_compiler_gnu 4424 4425depcc="$CC" am_compiler_list= 4426 4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4428$as_echo_n "checking dependency style of $depcc... " >&6; } 4429if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4430 $as_echo_n "(cached) " >&6 4431else 4432 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4433 # We make a subdir and do the tests there. Otherwise we can end up 4434 # making bogus files that we don't know about and never remove. For 4435 # instance it was reported that on HP-UX the gcc test will end up 4436 # making a dummy file named `D' -- because `-MD' means `put the output 4437 # in D'. 4438 mkdir conftest.dir 4439 # Copy depcomp to subdir because otherwise we won't find it if we're 4440 # using a relative directory. 4441 cp "$am_depcomp" conftest.dir 4442 cd conftest.dir 4443 # We will build objects and dependencies in a subdirectory because 4444 # it helps to detect inapplicable dependency modes. For instance 4445 # both Tru64's cc and ICC support -MD to output dependencies as a 4446 # side effect of compilation, but ICC will put the dependencies in 4447 # the current directory while Tru64 will put them in the object 4448 # directory. 4449 mkdir sub 4450 4451 am_cv_CC_dependencies_compiler_type=none 4452 if test "$am_compiler_list" = ""; then 4453 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4454 fi 4455 am__universal=false 4456 case " $depcc " in #( 4457 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4458 esac 4459 4460 for depmode in $am_compiler_list; do 4461 # Setup a source with many dependencies, because some compilers 4462 # like to wrap large dependency lists on column 80 (with \), and 4463 # we should not choose a depcomp mode which is confused by this. 4464 # 4465 # We need to recreate these files for each test, as the compiler may 4466 # overwrite some of them when testing with obscure command lines. 4467 # This happens at least with the AIX C compiler. 4468 : > sub/conftest.c 4469 for i in 1 2 3 4 5 6; do 4470 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4471 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4472 # Solaris 8's {/usr,}/bin/sh. 4473 touch sub/conftst$i.h 4474 done 4475 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4476 4477 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4478 # mode. It turns out that the SunPro C++ compiler does not properly 4479 # handle `-M -o', and we need to detect this. Also, some Intel 4480 # versions had trouble with output in subdirs 4481 am__obj=sub/conftest.${OBJEXT-o} 4482 am__minus_obj="-o $am__obj" 4483 case $depmode in 4484 gcc) 4485 # This depmode causes a compiler race in universal mode. 4486 test "$am__universal" = false || continue 4487 ;; 4488 nosideeffect) 4489 # after this tag, mechanisms are not by side-effect, so they'll 4490 # only be used when explicitly requested 4491 if test "x$enable_dependency_tracking" = xyes; then 4492 continue 4493 else 4494 break 4495 fi 4496 ;; 4497 msvisualcpp | msvcmsys) 4498 # This compiler won't grok `-c -o', but also, the minuso test has 4499 # not run yet. These depmodes are late enough in the game, and 4500 # so weak that their functioning should not be impacted. 4501 am__obj=conftest.${OBJEXT-o} 4502 am__minus_obj= 4503 ;; 4504 none) break ;; 4505 esac 4506 if depmode=$depmode \ 4507 source=sub/conftest.c object=$am__obj \ 4508 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4509 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4510 >/dev/null 2>conftest.err && 4511 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4512 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4513 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4514 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4515 # icc doesn't choke on unknown options, it will just issue warnings 4516 # or remarks (even with -Werror). So we grep stderr for any message 4517 # that says an option was ignored or not supported. 4518 # When given -MP, icc 7.0 and 7.1 complain thusly: 4519 # icc: Command line warning: ignoring option '-M'; no argument required 4520 # The diagnosis changed in icc 8.0: 4521 # icc: Command line remark: option '-MP' not supported 4522 if (grep 'ignoring option' conftest.err || 4523 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4524 am_cv_CC_dependencies_compiler_type=$depmode 4525 break 4526 fi 4527 fi 4528 done 4529 4530 cd .. 4531 rm -rf conftest.dir 4532else 4533 am_cv_CC_dependencies_compiler_type=none 4534fi 4535 4536fi 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4538$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4539CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4540 4541 if 4542 test "x$enable_dependency_tracking" != xno \ 4543 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4544 am__fastdepCC_TRUE= 4545 am__fastdepCC_FALSE='#' 4546else 4547 am__fastdepCC_TRUE='#' 4548 am__fastdepCC_FALSE= 4549fi 4550 4551 4552 4553ac_ext=c 4554ac_cpp='$CPP $CPPFLAGS' 4555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4557ac_compiler_gnu=$ac_cv_c_compiler_gnu 4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4559$as_echo_n "checking how to run the C preprocessor... " >&6; } 4560# On Suns, sometimes $CPP names a directory. 4561if test -n "$CPP" && test -d "$CPP"; then 4562 CPP= 4563fi 4564if test -z "$CPP"; then 4565 if ${ac_cv_prog_CPP+:} false; then : 4566 $as_echo_n "(cached) " >&6 4567else 4568 # Double quotes because CPP needs to be expanded 4569 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4570 do 4571 ac_preproc_ok=false 4572for ac_c_preproc_warn_flag in '' yes 4573do 4574 # Use a header file that comes with gcc, so configuring glibc 4575 # with a fresh cross-compiler works. 4576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4577 # <limits.h> exists even on freestanding compilers. 4578 # On the NeXT, cc -E runs the code through the compiler's parser, 4579 # not just through cpp. "Syntax error" is here to catch this case. 4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4581/* end confdefs.h. */ 4582#ifdef __STDC__ 4583# include <limits.h> 4584#else 4585# include <assert.h> 4586#endif 4587 Syntax error 4588_ACEOF 4589if ac_fn_c_try_cpp "$LINENO"; then : 4590 4591else 4592 # Broken: fails on valid input. 4593continue 4594fi 4595rm -f conftest.err conftest.i conftest.$ac_ext 4596 4597 # OK, works on sane cases. Now check whether nonexistent headers 4598 # can be detected and how. 4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4600/* end confdefs.h. */ 4601#include <ac_nonexistent.h> 4602_ACEOF 4603if ac_fn_c_try_cpp "$LINENO"; then : 4604 # Broken: success on invalid input. 4605continue 4606else 4607 # Passes both tests. 4608ac_preproc_ok=: 4609break 4610fi 4611rm -f conftest.err conftest.i conftest.$ac_ext 4612 4613done 4614# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4615rm -f conftest.i conftest.err conftest.$ac_ext 4616if $ac_preproc_ok; then : 4617 break 4618fi 4619 4620 done 4621 ac_cv_prog_CPP=$CPP 4622 4623fi 4624 CPP=$ac_cv_prog_CPP 4625else 4626 ac_cv_prog_CPP=$CPP 4627fi 4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4629$as_echo "$CPP" >&6; } 4630ac_preproc_ok=false 4631for ac_c_preproc_warn_flag in '' yes 4632do 4633 # Use a header file that comes with gcc, so configuring glibc 4634 # with a fresh cross-compiler works. 4635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4636 # <limits.h> exists even on freestanding compilers. 4637 # On the NeXT, cc -E runs the code through the compiler's parser, 4638 # not just through cpp. "Syntax error" is here to catch this case. 4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4640/* end confdefs.h. */ 4641#ifdef __STDC__ 4642# include <limits.h> 4643#else 4644# include <assert.h> 4645#endif 4646 Syntax error 4647_ACEOF 4648if ac_fn_c_try_cpp "$LINENO"; then : 4649 4650else 4651 # Broken: fails on valid input. 4652continue 4653fi 4654rm -f conftest.err conftest.i conftest.$ac_ext 4655 4656 # OK, works on sane cases. Now check whether nonexistent headers 4657 # can be detected and how. 4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4659/* end confdefs.h. */ 4660#include <ac_nonexistent.h> 4661_ACEOF 4662if ac_fn_c_try_cpp "$LINENO"; then : 4663 # Broken: success on invalid input. 4664continue 4665else 4666 # Passes both tests. 4667ac_preproc_ok=: 4668break 4669fi 4670rm -f conftest.err conftest.i conftest.$ac_ext 4671 4672done 4673# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4674rm -f conftest.i conftest.err conftest.$ac_ext 4675if $ac_preproc_ok; then : 4676 4677else 4678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4680as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4681See \`config.log' for more details" "$LINENO" 5; } 4682fi 4683 4684ac_ext=c 4685ac_cpp='$CPP $CPPFLAGS' 4686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4688ac_compiler_gnu=$ac_cv_c_compiler_gnu 4689 4690 4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4692$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4693if ${ac_cv_path_GREP+:} false; then : 4694 $as_echo_n "(cached) " >&6 4695else 4696 if test -z "$GREP"; then 4697 ac_path_GREP_found=false 4698 # Loop through the user's path and test for each of PROGNAME-LIST 4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4700for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4701do 4702 IFS=$as_save_IFS 4703 test -z "$as_dir" && as_dir=. 4704 for ac_prog in grep ggrep; do 4705 for ac_exec_ext in '' $ac_executable_extensions; do 4706 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4707 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4708# Check for GNU ac_path_GREP and select it if it is found. 4709 # Check for GNU $ac_path_GREP 4710case `"$ac_path_GREP" --version 2>&1` in 4711*GNU*) 4712 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4713*) 4714 ac_count=0 4715 $as_echo_n 0123456789 >"conftest.in" 4716 while : 4717 do 4718 cat "conftest.in" "conftest.in" >"conftest.tmp" 4719 mv "conftest.tmp" "conftest.in" 4720 cp "conftest.in" "conftest.nl" 4721 $as_echo 'GREP' >> "conftest.nl" 4722 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4724 as_fn_arith $ac_count + 1 && ac_count=$as_val 4725 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4726 # Best one so far, save it but keep looking for a better one 4727 ac_cv_path_GREP="$ac_path_GREP" 4728 ac_path_GREP_max=$ac_count 4729 fi 4730 # 10*(2^10) chars as input seems more than enough 4731 test $ac_count -gt 10 && break 4732 done 4733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4734esac 4735 4736 $ac_path_GREP_found && break 3 4737 done 4738 done 4739 done 4740IFS=$as_save_IFS 4741 if test -z "$ac_cv_path_GREP"; then 4742 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4743 fi 4744else 4745 ac_cv_path_GREP=$GREP 4746fi 4747 4748fi 4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4750$as_echo "$ac_cv_path_GREP" >&6; } 4751 GREP="$ac_cv_path_GREP" 4752 4753 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4755$as_echo_n "checking for egrep... " >&6; } 4756if ${ac_cv_path_EGREP+:} false; then : 4757 $as_echo_n "(cached) " >&6 4758else 4759 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4760 then ac_cv_path_EGREP="$GREP -E" 4761 else 4762 if test -z "$EGREP"; then 4763 ac_path_EGREP_found=false 4764 # Loop through the user's path and test for each of PROGNAME-LIST 4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4766for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4767do 4768 IFS=$as_save_IFS 4769 test -z "$as_dir" && as_dir=. 4770 for ac_prog in egrep; do 4771 for ac_exec_ext in '' $ac_executable_extensions; do 4772 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4773 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4774# Check for GNU ac_path_EGREP and select it if it is found. 4775 # Check for GNU $ac_path_EGREP 4776case `"$ac_path_EGREP" --version 2>&1` in 4777*GNU*) 4778 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4779*) 4780 ac_count=0 4781 $as_echo_n 0123456789 >"conftest.in" 4782 while : 4783 do 4784 cat "conftest.in" "conftest.in" >"conftest.tmp" 4785 mv "conftest.tmp" "conftest.in" 4786 cp "conftest.in" "conftest.nl" 4787 $as_echo 'EGREP' >> "conftest.nl" 4788 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4790 as_fn_arith $ac_count + 1 && ac_count=$as_val 4791 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4792 # Best one so far, save it but keep looking for a better one 4793 ac_cv_path_EGREP="$ac_path_EGREP" 4794 ac_path_EGREP_max=$ac_count 4795 fi 4796 # 10*(2^10) chars as input seems more than enough 4797 test $ac_count -gt 10 && break 4798 done 4799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4800esac 4801 4802 $ac_path_EGREP_found && break 3 4803 done 4804 done 4805 done 4806IFS=$as_save_IFS 4807 if test -z "$ac_cv_path_EGREP"; then 4808 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4809 fi 4810else 4811 ac_cv_path_EGREP=$EGREP 4812fi 4813 4814 fi 4815fi 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4817$as_echo "$ac_cv_path_EGREP" >&6; } 4818 EGREP="$ac_cv_path_EGREP" 4819 4820 4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4822$as_echo_n "checking for ANSI C header files... " >&6; } 4823if ${ac_cv_header_stdc+:} false; then : 4824 $as_echo_n "(cached) " >&6 4825else 4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4827/* end confdefs.h. */ 4828#include <stdlib.h> 4829#include <stdarg.h> 4830#include <string.h> 4831#include <float.h> 4832 4833int 4834main () 4835{ 4836 4837 ; 4838 return 0; 4839} 4840_ACEOF 4841if ac_fn_c_try_compile "$LINENO"; then : 4842 ac_cv_header_stdc=yes 4843else 4844 ac_cv_header_stdc=no 4845fi 4846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4847 4848if test $ac_cv_header_stdc = yes; then 4849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4851/* end confdefs.h. */ 4852#include <string.h> 4853 4854_ACEOF 4855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4856 $EGREP "memchr" >/dev/null 2>&1; then : 4857 4858else 4859 ac_cv_header_stdc=no 4860fi 4861rm -f conftest* 4862 4863fi 4864 4865if test $ac_cv_header_stdc = yes; then 4866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4868/* end confdefs.h. */ 4869#include <stdlib.h> 4870 4871_ACEOF 4872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4873 $EGREP "free" >/dev/null 2>&1; then : 4874 4875else 4876 ac_cv_header_stdc=no 4877fi 4878rm -f conftest* 4879 4880fi 4881 4882if test $ac_cv_header_stdc = yes; then 4883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4884 if test "$cross_compiling" = yes; then : 4885 : 4886else 4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4888/* end confdefs.h. */ 4889#include <ctype.h> 4890#include <stdlib.h> 4891#if ((' ' & 0x0FF) == 0x020) 4892# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4893# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4894#else 4895# define ISLOWER(c) \ 4896 (('a' <= (c) && (c) <= 'i') \ 4897 || ('j' <= (c) && (c) <= 'r') \ 4898 || ('s' <= (c) && (c) <= 'z')) 4899# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4900#endif 4901 4902#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4903int 4904main () 4905{ 4906 int i; 4907 for (i = 0; i < 256; i++) 4908 if (XOR (islower (i), ISLOWER (i)) 4909 || toupper (i) != TOUPPER (i)) 4910 return 2; 4911 return 0; 4912} 4913_ACEOF 4914if ac_fn_c_try_run "$LINENO"; then : 4915 4916else 4917 ac_cv_header_stdc=no 4918fi 4919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4920 conftest.$ac_objext conftest.beam conftest.$ac_ext 4921fi 4922 4923fi 4924fi 4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4926$as_echo "$ac_cv_header_stdc" >&6; } 4927if test $ac_cv_header_stdc = yes; then 4928 4929$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4930 4931fi 4932 4933# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4934for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4935 inttypes.h stdint.h unistd.h 4936do : 4937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4938ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4939" 4940if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4941 cat >>confdefs.h <<_ACEOF 4942#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4943_ACEOF 4944 4945fi 4946 4947done 4948 4949 4950 4951 4952 4953 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4954if test "x$ac_cv_header_minix_config_h" = xyes; then : 4955 MINIX=yes 4956else 4957 MINIX= 4958fi 4959 4960 4961 if test "$MINIX" = yes; then 4962 4963$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4964 4965 4966$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4967 4968 4969$as_echo "#define _MINIX 1" >>confdefs.h 4970 4971 fi 4972 4973 case "$host_os" in 4974 hpux*) 4975 4976$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 4977 4978 ;; 4979 esac 4980 4981 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4983$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4984if ${ac_cv_safe_to_define___extensions__+:} false; then : 4985 $as_echo_n "(cached) " >&6 4986else 4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4988/* end confdefs.h. */ 4989 4990# define __EXTENSIONS__ 1 4991 $ac_includes_default 4992int 4993main () 4994{ 4995 4996 ; 4997 return 0; 4998} 4999_ACEOF 5000if ac_fn_c_try_compile "$LINENO"; then : 5001 ac_cv_safe_to_define___extensions__=yes 5002else 5003 ac_cv_safe_to_define___extensions__=no 5004fi 5005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5006fi 5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5008$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5009 test $ac_cv_safe_to_define___extensions__ = yes && 5010 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5011 5012 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5013 5014 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5015 5016 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5017 5018 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5019 5020 5021if test "x$CC" != xcc; then 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5023$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5024else 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5026$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5027fi 5028set dummy $CC; ac_cc=`$as_echo "$2" | 5029 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5030if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 5031 $as_echo_n "(cached) " >&6 5032else 5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5034/* end confdefs.h. */ 5035 5036int 5037main () 5038{ 5039 5040 ; 5041 return 0; 5042} 5043_ACEOF 5044# Make sure it works both with $CC and with simple cc. 5045# We do the test twice because some compilers refuse to overwrite an 5046# existing .o file with -o, though they will create one. 5047ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5048rm -f conftest2.* 5049if { { case "(($ac_try" in 5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5051 *) ac_try_echo=$ac_try;; 5052esac 5053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5054$as_echo "$ac_try_echo"; } >&5 5055 (eval "$ac_try") 2>&5 5056 ac_status=$? 5057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5058 test $ac_status = 0; } && 5059 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5061 *) ac_try_echo=$ac_try;; 5062esac 5063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5064$as_echo "$ac_try_echo"; } >&5 5065 (eval "$ac_try") 2>&5 5066 ac_status=$? 5067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5068 test $ac_status = 0; }; 5069then 5070 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5071 if test "x$CC" != xcc; then 5072 # Test first that cc exists at all. 5073 if { ac_try='cc -c conftest.$ac_ext >&5' 5074 { { case "(($ac_try" in 5075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5076 *) ac_try_echo=$ac_try;; 5077esac 5078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5079$as_echo "$ac_try_echo"; } >&5 5080 (eval "$ac_try") 2>&5 5081 ac_status=$? 5082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5083 test $ac_status = 0; }; }; then 5084 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5085 rm -f conftest2.* 5086 if { { case "(($ac_try" in 5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5088 *) ac_try_echo=$ac_try;; 5089esac 5090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5091$as_echo "$ac_try_echo"; } >&5 5092 (eval "$ac_try") 2>&5 5093 ac_status=$? 5094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5095 test $ac_status = 0; } && 5096 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5098 *) ac_try_echo=$ac_try;; 5099esac 5100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5101$as_echo "$ac_try_echo"; } >&5 5102 (eval "$ac_try") 2>&5 5103 ac_status=$? 5104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5105 test $ac_status = 0; }; 5106 then 5107 # cc works too. 5108 : 5109 else 5110 # cc exists but doesn't like -o. 5111 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5112 fi 5113 fi 5114 fi 5115else 5116 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5117fi 5118rm -f core conftest* 5119 5120fi 5121if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5123$as_echo "yes" >&6; } 5124else 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5126$as_echo "no" >&6; } 5127 5128$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5129 5130fi 5131 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5133$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5134if ${ac_cv_prog_cc_c89+:} false; then : 5135 $as_echo_n "(cached) " >&6 5136else 5137 ac_cv_prog_cc_c89=no 5138ac_save_CC=$CC 5139cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5140/* end confdefs.h. */ 5141#include <stdarg.h> 5142#include <stdio.h> 5143#include <sys/types.h> 5144#include <sys/stat.h> 5145/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5146struct buf { int x; }; 5147FILE * (*rcsopen) (struct buf *, struct stat *, int); 5148static char *e (p, i) 5149 char **p; 5150 int i; 5151{ 5152 return p[i]; 5153} 5154static char *f (char * (*g) (char **, int), char **p, ...) 5155{ 5156 char *s; 5157 va_list v; 5158 va_start (v,p); 5159 s = g (p, va_arg (v,int)); 5160 va_end (v); 5161 return s; 5162} 5163 5164/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5165 function prototypes and stuff, but not '\xHH' hex character constants. 5166 These don't provoke an error unfortunately, instead are silently treated 5167 as 'x'. The following induces an error, until -std is added to get 5168 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5169 array size at least. It's necessary to write '\x00'==0 to get something 5170 that's true only with -std. */ 5171int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5172 5173/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5174 inside strings and character constants. */ 5175#define FOO(x) 'x' 5176int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5177 5178int test (int i, double x); 5179struct s1 {int (*f) (int a);}; 5180struct s2 {int (*f) (double a);}; 5181int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5182int argc; 5183char **argv; 5184int 5185main () 5186{ 5187return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5188 ; 5189 return 0; 5190} 5191_ACEOF 5192for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5193 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5194do 5195 CC="$ac_save_CC $ac_arg" 5196 if ac_fn_c_try_compile "$LINENO"; then : 5197 ac_cv_prog_cc_c89=$ac_arg 5198fi 5199rm -f core conftest.err conftest.$ac_objext 5200 test "x$ac_cv_prog_cc_c89" != "xno" && break 5201done 5202rm -f conftest.$ac_ext 5203CC=$ac_save_CC 5204 5205fi 5206# AC_CACHE_VAL 5207case "x$ac_cv_prog_cc_c89" in 5208 x) 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5210$as_echo "none needed" >&6; } ;; 5211 xno) 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5213$as_echo "unsupported" >&6; } ;; 5214 *) 5215 CC="$CC $ac_cv_prog_cc_c89" 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5217$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5218esac 5219if test "x$ac_cv_prog_cc_c89" != xno; then : 5220 5221fi 5222 5223 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5225$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5226if ${ac_cv_prog_cc_c99+:} false; then : 5227 $as_echo_n "(cached) " >&6 5228else 5229 ac_cv_prog_cc_c99=no 5230ac_save_CC=$CC 5231cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5232/* end confdefs.h. */ 5233#include <stdarg.h> 5234#include <stdbool.h> 5235#include <stdlib.h> 5236#include <wchar.h> 5237#include <stdio.h> 5238 5239// Check varargs macros. These examples are taken from C99 6.10.3.5. 5240#define debug(...) fprintf (stderr, __VA_ARGS__) 5241#define showlist(...) puts (#__VA_ARGS__) 5242#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5243static void 5244test_varargs_macros (void) 5245{ 5246 int x = 1234; 5247 int y = 5678; 5248 debug ("Flag"); 5249 debug ("X = %d\n", x); 5250 showlist (The first, second, and third items.); 5251 report (x>y, "x is %d but y is %d", x, y); 5252} 5253 5254// Check long long types. 5255#define BIG64 18446744073709551615ull 5256#define BIG32 4294967295ul 5257#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5258#if !BIG_OK 5259 your preprocessor is broken; 5260#endif 5261#if BIG_OK 5262#else 5263 your preprocessor is broken; 5264#endif 5265static long long int bignum = -9223372036854775807LL; 5266static unsigned long long int ubignum = BIG64; 5267 5268struct incomplete_array 5269{ 5270 int datasize; 5271 double data[]; 5272}; 5273 5274struct named_init { 5275 int number; 5276 const wchar_t *name; 5277 double average; 5278}; 5279 5280typedef const char *ccp; 5281 5282static inline int 5283test_restrict (ccp restrict text) 5284{ 5285 // See if C++-style comments work. 5286 // Iterate through items via the restricted pointer. 5287 // Also check for declarations in for loops. 5288 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5289 continue; 5290 return 0; 5291} 5292 5293// Check varargs and va_copy. 5294static void 5295test_varargs (const char *format, ...) 5296{ 5297 va_list args; 5298 va_start (args, format); 5299 va_list args_copy; 5300 va_copy (args_copy, args); 5301 5302 const char *str; 5303 int number; 5304 float fnumber; 5305 5306 while (*format) 5307 { 5308 switch (*format++) 5309 { 5310 case 's': // string 5311 str = va_arg (args_copy, const char *); 5312 break; 5313 case 'd': // int 5314 number = va_arg (args_copy, int); 5315 break; 5316 case 'f': // float 5317 fnumber = va_arg (args_copy, double); 5318 break; 5319 default: 5320 break; 5321 } 5322 } 5323 va_end (args_copy); 5324 va_end (args); 5325} 5326 5327int 5328main () 5329{ 5330 5331 // Check bool. 5332 _Bool success = false; 5333 5334 // Check restrict. 5335 if (test_restrict ("String literal") == 0) 5336 success = true; 5337 char *restrict newvar = "Another string"; 5338 5339 // Check varargs. 5340 test_varargs ("s, d' f .", "string", 65, 34.234); 5341 test_varargs_macros (); 5342 5343 // Check flexible array members. 5344 struct incomplete_array *ia = 5345 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5346 ia->datasize = 10; 5347 for (int i = 0; i < ia->datasize; ++i) 5348 ia->data[i] = i * 1.234; 5349 5350 // Check named initializers. 5351 struct named_init ni = { 5352 .number = 34, 5353 .name = L"Test wide string", 5354 .average = 543.34343, 5355 }; 5356 5357 ni.number = 58; 5358 5359 int dynamic_array[ni.number]; 5360 dynamic_array[ni.number - 1] = 543; 5361 5362 // work around unused variable warnings 5363 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5364 || dynamic_array[ni.number - 1] != 543); 5365 5366 ; 5367 return 0; 5368} 5369_ACEOF 5370for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 5371do 5372 CC="$ac_save_CC $ac_arg" 5373 if ac_fn_c_try_compile "$LINENO"; then : 5374 ac_cv_prog_cc_c99=$ac_arg 5375fi 5376rm -f core conftest.err conftest.$ac_objext 5377 test "x$ac_cv_prog_cc_c99" != "xno" && break 5378done 5379rm -f conftest.$ac_ext 5380CC=$ac_save_CC 5381 5382fi 5383# AC_CACHE_VAL 5384case "x$ac_cv_prog_cc_c99" in 5385 x) 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5387$as_echo "none needed" >&6; } ;; 5388 xno) 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5390$as_echo "unsupported" >&6; } ;; 5391 *) 5392 CC="$CC $ac_cv_prog_cc_c99" 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5394$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5395esac 5396if test "x$ac_cv_prog_cc_c99" != xno; then : 5397 5398fi 5399 5400 5401 5402 5403 5404 5405ac_ext=c 5406ac_cpp='$CPP $CPPFLAGS' 5407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5409ac_compiler_gnu=$ac_cv_c_compiler_gnu 5410if test -n "$ac_tool_prefix"; then 5411 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5412set dummy ${ac_tool_prefix}gcc; ac_word=$2 5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5414$as_echo_n "checking for $ac_word... " >&6; } 5415if ${ac_cv_prog_CC+:} false; then : 5416 $as_echo_n "(cached) " >&6 5417else 5418 if test -n "$CC"; then 5419 ac_cv_prog_CC="$CC" # Let the user override the test. 5420else 5421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5422for as_dir in $PATH 5423do 5424 IFS=$as_save_IFS 5425 test -z "$as_dir" && as_dir=. 5426 for ac_exec_ext in '' $ac_executable_extensions; do 5427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5428 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5430 break 2 5431 fi 5432done 5433 done 5434IFS=$as_save_IFS 5435 5436fi 5437fi 5438CC=$ac_cv_prog_CC 5439if test -n "$CC"; then 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5441$as_echo "$CC" >&6; } 5442else 5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5444$as_echo "no" >&6; } 5445fi 5446 5447 5448fi 5449if test -z "$ac_cv_prog_CC"; then 5450 ac_ct_CC=$CC 5451 # Extract the first word of "gcc", so it can be a program name with args. 5452set dummy gcc; ac_word=$2 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5454$as_echo_n "checking for $ac_word... " >&6; } 5455if ${ac_cv_prog_ac_ct_CC+:} false; then : 5456 $as_echo_n "(cached) " >&6 5457else 5458 if test -n "$ac_ct_CC"; then 5459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5460else 5461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5462for as_dir in $PATH 5463do 5464 IFS=$as_save_IFS 5465 test -z "$as_dir" && as_dir=. 5466 for ac_exec_ext in '' $ac_executable_extensions; do 5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5468 ac_cv_prog_ac_ct_CC="gcc" 5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5470 break 2 5471 fi 5472done 5473 done 5474IFS=$as_save_IFS 5475 5476fi 5477fi 5478ac_ct_CC=$ac_cv_prog_ac_ct_CC 5479if test -n "$ac_ct_CC"; then 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5481$as_echo "$ac_ct_CC" >&6; } 5482else 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5484$as_echo "no" >&6; } 5485fi 5486 5487 if test "x$ac_ct_CC" = x; then 5488 CC="" 5489 else 5490 case $cross_compiling:$ac_tool_warned in 5491yes:) 5492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5494ac_tool_warned=yes ;; 5495esac 5496 CC=$ac_ct_CC 5497 fi 5498else 5499 CC="$ac_cv_prog_CC" 5500fi 5501 5502if test -z "$CC"; then 5503 if test -n "$ac_tool_prefix"; then 5504 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5505set dummy ${ac_tool_prefix}cc; ac_word=$2 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5507$as_echo_n "checking for $ac_word... " >&6; } 5508if ${ac_cv_prog_CC+:} false; then : 5509 $as_echo_n "(cached) " >&6 5510else 5511 if test -n "$CC"; then 5512 ac_cv_prog_CC="$CC" # Let the user override the test. 5513else 5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5515for as_dir in $PATH 5516do 5517 IFS=$as_save_IFS 5518 test -z "$as_dir" && as_dir=. 5519 for ac_exec_ext in '' $ac_executable_extensions; do 5520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5521 ac_cv_prog_CC="${ac_tool_prefix}cc" 5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5523 break 2 5524 fi 5525done 5526 done 5527IFS=$as_save_IFS 5528 5529fi 5530fi 5531CC=$ac_cv_prog_CC 5532if test -n "$CC"; then 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5534$as_echo "$CC" >&6; } 5535else 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5537$as_echo "no" >&6; } 5538fi 5539 5540 5541 fi 5542fi 5543if test -z "$CC"; then 5544 # Extract the first word of "cc", so it can be a program name with args. 5545set dummy cc; ac_word=$2 5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5547$as_echo_n "checking for $ac_word... " >&6; } 5548if ${ac_cv_prog_CC+:} false; then : 5549 $as_echo_n "(cached) " >&6 5550else 5551 if test -n "$CC"; then 5552 ac_cv_prog_CC="$CC" # Let the user override the test. 5553else 5554 ac_prog_rejected=no 5555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5556for as_dir in $PATH 5557do 5558 IFS=$as_save_IFS 5559 test -z "$as_dir" && as_dir=. 5560 for ac_exec_ext in '' $ac_executable_extensions; do 5561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5562 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5563 ac_prog_rejected=yes 5564 continue 5565 fi 5566 ac_cv_prog_CC="cc" 5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5568 break 2 5569 fi 5570done 5571 done 5572IFS=$as_save_IFS 5573 5574if test $ac_prog_rejected = yes; then 5575 # We found a bogon in the path, so make sure we never use it. 5576 set dummy $ac_cv_prog_CC 5577 shift 5578 if test $# != 0; then 5579 # We chose a different compiler from the bogus one. 5580 # However, it has the same basename, so the bogon will be chosen 5581 # first if we set CC to just the basename; use the full file name. 5582 shift 5583 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5584 fi 5585fi 5586fi 5587fi 5588CC=$ac_cv_prog_CC 5589if test -n "$CC"; then 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5591$as_echo "$CC" >&6; } 5592else 5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5594$as_echo "no" >&6; } 5595fi 5596 5597 5598fi 5599if test -z "$CC"; then 5600 if test -n "$ac_tool_prefix"; then 5601 for ac_prog in cl.exe 5602 do 5603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5604set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5606$as_echo_n "checking for $ac_word... " >&6; } 5607if ${ac_cv_prog_CC+:} false; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 if test -n "$CC"; then 5611 ac_cv_prog_CC="$CC" # Let the user override the test. 5612else 5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5614for as_dir in $PATH 5615do 5616 IFS=$as_save_IFS 5617 test -z "$as_dir" && as_dir=. 5618 for ac_exec_ext in '' $ac_executable_extensions; do 5619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5620 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5622 break 2 5623 fi 5624done 5625 done 5626IFS=$as_save_IFS 5627 5628fi 5629fi 5630CC=$ac_cv_prog_CC 5631if test -n "$CC"; then 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5633$as_echo "$CC" >&6; } 5634else 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5636$as_echo "no" >&6; } 5637fi 5638 5639 5640 test -n "$CC" && break 5641 done 5642fi 5643if test -z "$CC"; then 5644 ac_ct_CC=$CC 5645 for ac_prog in cl.exe 5646do 5647 # Extract the first word of "$ac_prog", so it can be a program name with args. 5648set dummy $ac_prog; ac_word=$2 5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5650$as_echo_n "checking for $ac_word... " >&6; } 5651if ${ac_cv_prog_ac_ct_CC+:} false; then : 5652 $as_echo_n "(cached) " >&6 5653else 5654 if test -n "$ac_ct_CC"; then 5655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5656else 5657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5658for as_dir in $PATH 5659do 5660 IFS=$as_save_IFS 5661 test -z "$as_dir" && as_dir=. 5662 for ac_exec_ext in '' $ac_executable_extensions; do 5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5664 ac_cv_prog_ac_ct_CC="$ac_prog" 5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5666 break 2 5667 fi 5668done 5669 done 5670IFS=$as_save_IFS 5671 5672fi 5673fi 5674ac_ct_CC=$ac_cv_prog_ac_ct_CC 5675if test -n "$ac_ct_CC"; then 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5677$as_echo "$ac_ct_CC" >&6; } 5678else 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5680$as_echo "no" >&6; } 5681fi 5682 5683 5684 test -n "$ac_ct_CC" && break 5685done 5686 5687 if test "x$ac_ct_CC" = x; then 5688 CC="" 5689 else 5690 case $cross_compiling:$ac_tool_warned in 5691yes:) 5692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5694ac_tool_warned=yes ;; 5695esac 5696 CC=$ac_ct_CC 5697 fi 5698fi 5699 5700fi 5701 5702 5703test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5705as_fn_error $? "no acceptable C compiler found in \$PATH 5706See \`config.log' for more details" "$LINENO" 5; } 5707 5708# Provide some information about the compiler. 5709$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5710set X $ac_compile 5711ac_compiler=$2 5712for ac_option in --version -v -V -qversion; do 5713 { { ac_try="$ac_compiler $ac_option >&5" 5714case "(($ac_try" in 5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5716 *) ac_try_echo=$ac_try;; 5717esac 5718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5719$as_echo "$ac_try_echo"; } >&5 5720 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5721 ac_status=$? 5722 if test -s conftest.err; then 5723 sed '10a\ 5724... rest of stderr output deleted ... 5725 10q' conftest.err >conftest.er1 5726 cat conftest.er1 >&5 5727 fi 5728 rm -f conftest.er1 conftest.err 5729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5730 test $ac_status = 0; } 5731done 5732 5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5734$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5735if ${ac_cv_c_compiler_gnu+:} false; then : 5736 $as_echo_n "(cached) " >&6 5737else 5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5739/* end confdefs.h. */ 5740 5741int 5742main () 5743{ 5744#ifndef __GNUC__ 5745 choke me 5746#endif 5747 5748 ; 5749 return 0; 5750} 5751_ACEOF 5752if ac_fn_c_try_compile "$LINENO"; then : 5753 ac_compiler_gnu=yes 5754else 5755 ac_compiler_gnu=no 5756fi 5757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5758ac_cv_c_compiler_gnu=$ac_compiler_gnu 5759 5760fi 5761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5762$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5763if test $ac_compiler_gnu = yes; then 5764 GCC=yes 5765else 5766 GCC= 5767fi 5768ac_test_CFLAGS=${CFLAGS+set} 5769ac_save_CFLAGS=$CFLAGS 5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5771$as_echo_n "checking whether $CC accepts -g... " >&6; } 5772if ${ac_cv_prog_cc_g+:} false; then : 5773 $as_echo_n "(cached) " >&6 5774else 5775 ac_save_c_werror_flag=$ac_c_werror_flag 5776 ac_c_werror_flag=yes 5777 ac_cv_prog_cc_g=no 5778 CFLAGS="-g" 5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5780/* end confdefs.h. */ 5781 5782int 5783main () 5784{ 5785 5786 ; 5787 return 0; 5788} 5789_ACEOF 5790if ac_fn_c_try_compile "$LINENO"; then : 5791 ac_cv_prog_cc_g=yes 5792else 5793 CFLAGS="" 5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5795/* end confdefs.h. */ 5796 5797int 5798main () 5799{ 5800 5801 ; 5802 return 0; 5803} 5804_ACEOF 5805if ac_fn_c_try_compile "$LINENO"; then : 5806 5807else 5808 ac_c_werror_flag=$ac_save_c_werror_flag 5809 CFLAGS="-g" 5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5811/* end confdefs.h. */ 5812 5813int 5814main () 5815{ 5816 5817 ; 5818 return 0; 5819} 5820_ACEOF 5821if ac_fn_c_try_compile "$LINENO"; then : 5822 ac_cv_prog_cc_g=yes 5823fi 5824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5825fi 5826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5827fi 5828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5829 ac_c_werror_flag=$ac_save_c_werror_flag 5830fi 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5832$as_echo "$ac_cv_prog_cc_g" >&6; } 5833if test "$ac_test_CFLAGS" = set; then 5834 CFLAGS=$ac_save_CFLAGS 5835elif test $ac_cv_prog_cc_g = yes; then 5836 if test "$GCC" = yes; then 5837 CFLAGS="-g -O2" 5838 else 5839 CFLAGS="-g" 5840 fi 5841else 5842 if test "$GCC" = yes; then 5843 CFLAGS="-O2" 5844 else 5845 CFLAGS= 5846 fi 5847fi 5848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5849$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5850if ${ac_cv_prog_cc_c89+:} false; then : 5851 $as_echo_n "(cached) " >&6 5852else 5853 ac_cv_prog_cc_c89=no 5854ac_save_CC=$CC 5855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5856/* end confdefs.h. */ 5857#include <stdarg.h> 5858#include <stdio.h> 5859#include <sys/types.h> 5860#include <sys/stat.h> 5861/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5862struct buf { int x; }; 5863FILE * (*rcsopen) (struct buf *, struct stat *, int); 5864static char *e (p, i) 5865 char **p; 5866 int i; 5867{ 5868 return p[i]; 5869} 5870static char *f (char * (*g) (char **, int), char **p, ...) 5871{ 5872 char *s; 5873 va_list v; 5874 va_start (v,p); 5875 s = g (p, va_arg (v,int)); 5876 va_end (v); 5877 return s; 5878} 5879 5880/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5881 function prototypes and stuff, but not '\xHH' hex character constants. 5882 These don't provoke an error unfortunately, instead are silently treated 5883 as 'x'. The following induces an error, until -std is added to get 5884 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5885 array size at least. It's necessary to write '\x00'==0 to get something 5886 that's true only with -std. */ 5887int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5888 5889/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5890 inside strings and character constants. */ 5891#define FOO(x) 'x' 5892int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5893 5894int test (int i, double x); 5895struct s1 {int (*f) (int a);}; 5896struct s2 {int (*f) (double a);}; 5897int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5898int argc; 5899char **argv; 5900int 5901main () 5902{ 5903return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5904 ; 5905 return 0; 5906} 5907_ACEOF 5908for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5909 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5910do 5911 CC="$ac_save_CC $ac_arg" 5912 if ac_fn_c_try_compile "$LINENO"; then : 5913 ac_cv_prog_cc_c89=$ac_arg 5914fi 5915rm -f core conftest.err conftest.$ac_objext 5916 test "x$ac_cv_prog_cc_c89" != "xno" && break 5917done 5918rm -f conftest.$ac_ext 5919CC=$ac_save_CC 5920 5921fi 5922# AC_CACHE_VAL 5923case "x$ac_cv_prog_cc_c89" in 5924 x) 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5926$as_echo "none needed" >&6; } ;; 5927 xno) 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5929$as_echo "unsupported" >&6; } ;; 5930 *) 5931 CC="$CC $ac_cv_prog_cc_c89" 5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5933$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5934esac 5935if test "x$ac_cv_prog_cc_c89" != xno; then : 5936 5937fi 5938 5939ac_ext=c 5940ac_cpp='$CPP $CPPFLAGS' 5941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5943ac_compiler_gnu=$ac_cv_c_compiler_gnu 5944 5945depcc="$CC" am_compiler_list= 5946 5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5948$as_echo_n "checking dependency style of $depcc... " >&6; } 5949if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5950 $as_echo_n "(cached) " >&6 5951else 5952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5953 # We make a subdir and do the tests there. Otherwise we can end up 5954 # making bogus files that we don't know about and never remove. For 5955 # instance it was reported that on HP-UX the gcc test will end up 5956 # making a dummy file named `D' -- because `-MD' means `put the output 5957 # in D'. 5958 mkdir conftest.dir 5959 # Copy depcomp to subdir because otherwise we won't find it if we're 5960 # using a relative directory. 5961 cp "$am_depcomp" conftest.dir 5962 cd conftest.dir 5963 # We will build objects and dependencies in a subdirectory because 5964 # it helps to detect inapplicable dependency modes. For instance 5965 # both Tru64's cc and ICC support -MD to output dependencies as a 5966 # side effect of compilation, but ICC will put the dependencies in 5967 # the current directory while Tru64 will put them in the object 5968 # directory. 5969 mkdir sub 5970 5971 am_cv_CC_dependencies_compiler_type=none 5972 if test "$am_compiler_list" = ""; then 5973 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5974 fi 5975 am__universal=false 5976 case " $depcc " in #( 5977 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5978 esac 5979 5980 for depmode in $am_compiler_list; do 5981 # Setup a source with many dependencies, because some compilers 5982 # like to wrap large dependency lists on column 80 (with \), and 5983 # we should not choose a depcomp mode which is confused by this. 5984 # 5985 # We need to recreate these files for each test, as the compiler may 5986 # overwrite some of them when testing with obscure command lines. 5987 # This happens at least with the AIX C compiler. 5988 : > sub/conftest.c 5989 for i in 1 2 3 4 5 6; do 5990 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5991 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5992 # Solaris 8's {/usr,}/bin/sh. 5993 touch sub/conftst$i.h 5994 done 5995 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5996 5997 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5998 # mode. It turns out that the SunPro C++ compiler does not properly 5999 # handle `-M -o', and we need to detect this. Also, some Intel 6000 # versions had trouble with output in subdirs 6001 am__obj=sub/conftest.${OBJEXT-o} 6002 am__minus_obj="-o $am__obj" 6003 case $depmode in 6004 gcc) 6005 # This depmode causes a compiler race in universal mode. 6006 test "$am__universal" = false || continue 6007 ;; 6008 nosideeffect) 6009 # after this tag, mechanisms are not by side-effect, so they'll 6010 # only be used when explicitly requested 6011 if test "x$enable_dependency_tracking" = xyes; then 6012 continue 6013 else 6014 break 6015 fi 6016 ;; 6017 msvisualcpp | msvcmsys) 6018 # This compiler won't grok `-c -o', but also, the minuso test has 6019 # not run yet. These depmodes are late enough in the game, and 6020 # so weak that their functioning should not be impacted. 6021 am__obj=conftest.${OBJEXT-o} 6022 am__minus_obj= 6023 ;; 6024 none) break ;; 6025 esac 6026 if depmode=$depmode \ 6027 source=sub/conftest.c object=$am__obj \ 6028 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6029 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6030 >/dev/null 2>conftest.err && 6031 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6033 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6035 # icc doesn't choke on unknown options, it will just issue warnings 6036 # or remarks (even with -Werror). So we grep stderr for any message 6037 # that says an option was ignored or not supported. 6038 # When given -MP, icc 7.0 and 7.1 complain thusly: 6039 # icc: Command line warning: ignoring option '-M'; no argument required 6040 # The diagnosis changed in icc 8.0: 6041 # icc: Command line remark: option '-MP' not supported 6042 if (grep 'ignoring option' conftest.err || 6043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6044 am_cv_CC_dependencies_compiler_type=$depmode 6045 break 6046 fi 6047 fi 6048 done 6049 6050 cd .. 6051 rm -rf conftest.dir 6052else 6053 am_cv_CC_dependencies_compiler_type=none 6054fi 6055 6056fi 6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6058$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6059CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6060 6061 if 6062 test "x$enable_dependency_tracking" != xno \ 6063 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6064 am__fastdepCC_TRUE= 6065 am__fastdepCC_FALSE='#' 6066else 6067 am__fastdepCC_TRUE='#' 6068 am__fastdepCC_FALSE= 6069fi 6070 6071 6072# Ralf Wildenhues: With per-target flags we need CC_C_O 6073# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O 6074# FIXME: we rely on the cache variable name because 6075# there is no other way. 6076set dummy $CC 6077am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 6078eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 6079if test "$am_t" != yes; then 6080 # Losing compiler, so override with the script. 6081 # FIXME: It is wrong to rewrite CC. 6082 # But if we don't then we get into trouble of one sort or another. 6083 # A longer-term fix would be to have automake use am__CC in this case, 6084 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6085 CC="$am_aux_dir/compile $CC" 6086fi 6087 6088 6089if test $ac_cv_c_compiler_gnu = yes; then 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 6091$as_echo_n "checking whether $CC needs -traditional... " >&6; } 6092if ${ac_cv_prog_gcc_traditional+:} false; then : 6093 $as_echo_n "(cached) " >&6 6094else 6095 ac_pattern="Autoconf.*'x'" 6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6097/* end confdefs.h. */ 6098#include <sgtty.h> 6099Autoconf TIOCGETP 6100_ACEOF 6101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6102 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 6103 ac_cv_prog_gcc_traditional=yes 6104else 6105 ac_cv_prog_gcc_traditional=no 6106fi 6107rm -f conftest* 6108 6109 6110 if test $ac_cv_prog_gcc_traditional = no; then 6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6112/* end confdefs.h. */ 6113#include <termio.h> 6114Autoconf TCGETA 6115_ACEOF 6116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6117 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 6118 ac_cv_prog_gcc_traditional=yes 6119fi 6120rm -f conftest* 6121 6122 fi 6123fi 6124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 6125$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 6126 if test $ac_cv_prog_gcc_traditional = yes; then 6127 CC="$CC -traditional" 6128 fi 6129fi 6130 6131 6132 6133 6134 6135CFLAGS_NTP= 6136CPPFLAGS_NTP= 6137LDADD_NTP= 6138LDFLAGS_NTP= 6139 6140 6141 6142 6143 6144case "$ac_cv_prog_cc_c89" in 6145 no) 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 6147 version 4.2.5 and higher." >&5 6148$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 6149 version 4.2.5 and higher." >&2;} 6150 ;; 6151esac 6152 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5 6154$as_echo_n "checking if $CC can handle #warning... " >&6; } 6155if ${ntp_cv_cpp_warning+:} false; then : 6156 $as_echo_n "(cached) " >&6 6157else 6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6159/* end confdefs.h. */ 6160 6161int 6162main () 6163{ 6164#warning foo 6165 ; 6166 return 0; 6167} 6168_ACEOF 6169if ac_fn_c_try_compile "$LINENO"; then : 6170 ntp_cv_cpp_warning=yes 6171else 6172 ntp_cv_cpp_warning=no 6173 6174fi 6175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6176 6177fi 6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5 6179$as_echo "$ntp_cv_cpp_warning" >&6; } 6180case "$ntp_cv_cpp_warning" in 6181 no) 6182 6183$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h 6184 6185esac 6186 6187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5 6188$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; } 6189if ${ntp_cv_cc_attribute+:} false; then : 6190 $as_echo_n "(cached) " >&6 6191else 6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6193/* end confdefs.h. */ 6194 6195int 6196main () 6197{ 6198void foo(void) __attribute__((__noreturn__)); 6199 6200 ; 6201 return 0; 6202} 6203_ACEOF 6204if ac_fn_c_try_compile "$LINENO"; then : 6205 ntp_cv_cc_attribute=yes 6206else 6207 ntp_cv_cc_attribute=no 6208 6209fi 6210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6211 6212fi 6213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5 6214$as_echo "$ntp_cv_cc_attribute" >&6; } 6215case "$ntp_cv_cc_attribute" in 6216 yes) 6217 6218$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h 6219 6220esac 6221 6222 6223case "$GCC" in 6224 yes) 6225 SAVED_CFLAGS="$CFLAGS" 6226 CFLAGS="$CFLAGS -Wstrict-overflow" 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5 6228$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; } 6229if ${ntp_cv_gcc_Wstrict_overflow+:} false; then : 6230 $as_echo_n "(cached) " >&6 6231else 6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6233/* end confdefs.h. */ 6234 6235int 6236main () 6237{ 6238 6239 ; 6240 return 0; 6241} 6242_ACEOF 6243if ac_fn_c_try_compile "$LINENO"; then : 6244 ntp_cv_gcc_Wstrict_overflow=yes 6245else 6246 ntp_cv_gcc_Wstrict_overflow=no 6247 6248fi 6249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6250 6251fi 6252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5 6253$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; } 6254 # 6255 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the 6256 # flag to CFLAGS. 6257 # 6258 CFLAGS="$SAVED_CFLAGS -Winit-self" 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5 6260$as_echo_n "checking if $CC can handle -Winit-self... " >&6; } 6261if ${ntp_cv_gcc_Winit_self+:} false; then : 6262 $as_echo_n "(cached) " >&6 6263else 6264 6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6266/* end confdefs.h. */ 6267 6268int 6269main () 6270{ 6271 6272 ; 6273 return 0; 6274} 6275_ACEOF 6276if ac_fn_c_try_compile "$LINENO"; then : 6277 ntp_cv_gcc_Winit_self=yes 6278else 6279 ntp_cv_gcc_Winit_self=no 6280 6281fi 6282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6283 6284 6285fi 6286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5 6287$as_echo "$ntp_cv_gcc_Winit_self" >&6; } 6288 CFLAGS="$SAVED_CFLAGS" 6289 { SAVED_CFLAGS=; unset SAVED_CFLAGS;} 6290 # 6291 # $ntp_cv_gcc_Winit_self is tested later to add the 6292 # flag to CFLAGS_NTP. 6293 # 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 6295$as_echo_n "checking if linker supports omitting unused code and data... " >&6; } 6296if ${ntp_cv_gc_sections_runs+:} false; then : 6297 $as_echo_n "(cached) " >&6 6298else 6299 6300 origCFLAGS="$CFLAGS" 6301 CFLAGS="$CFLAGS -Wl,--gc-sections" 6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6303/* end confdefs.h. */ 6304 6305 #include <stdlib.h> 6306 #include <stdio.h> 6307 6308int 6309main () 6310{ 6311 6312 FILE * fpC; 6313 char buf[32]; 6314 size_t cch; 6315 int read_success_once; 6316 6317 fpC = fopen("conftest.c", "r"); 6318 if (NULL == fpC) 6319 exit(1); 6320 do { 6321 cch = fread(buf, sizeof(buf), 1, fpC); 6322 read_success_once |= (0 != cch); 6323 } while (0 != cch); 6324 if (!read_success_once) 6325 exit(2); 6326 if (!feof(fpC)) 6327 exit(3); 6328 if (0 != fclose(fpC)) 6329 exit(4); 6330 6331 exit(EXIT_SUCCESS); 6332 6333 6334 ; 6335 return 0; 6336} 6337_ACEOF 6338if ac_fn_c_try_link "$LINENO"; then : 6339 6340 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 6341 ntp_cv_gc_sections_runs=no 6342 else 6343 ntp_cv_gc_sections_runs=no 6344 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes 6345 fi 6346 6347else 6348 ntp_cv_gc_sections_runs=no 6349 6350fi 6351rm -f core conftest.err conftest.$ac_objext \ 6352 conftest$ac_exeext conftest.$ac_ext 6353 CFLAGS="$origCFLAGS" 6354 { origCFLAGS=; unset origCFLAGS;} 6355 6356 6357fi 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5 6359$as_echo "$ntp_cv_gc_sections_runs" >&6; } 6360 case "$ntp_cv_gc_sections_runs" in 6361 yes) 6362 LDADD_LIBNTP="-Wl,--gc-sections" 6363 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections" 6364 ;; 6365 no) 6366 LDADD_LIBNTP= 6367 ;; 6368 esac 6369 CFLAGS_NTP="$CFLAGS_NTP -Wall" 6370 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align" 6371 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual" 6372 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion" 6373 # CFLAGS_NTP="$CFLAGS_NTP -Werror" 6374 # CFLAGS_NTP="$CFLAGS_NTP -Wextra" 6375 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal" 6376 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes" 6377 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith" 6378 CFLAGS_NTP="$CFLAGS_NTP -Wshadow" 6379 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional" 6380 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings" 6381 case "$ntp_cv_gcc_Winit_self" in 6382 yes) 6383 CFLAGS_NTP="$CFLAGS_NTP -Winit-self" 6384 esac 6385 case "$ntp_cv_gcc_Wstrict_overflow" in 6386 yes) 6387 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow" 6388 esac 6389 # -W[no-]strict-prototypes might be added by NTP_OPENSSL 6390esac 6391 6392 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5 6394$as_echo_n "checking additional compiler flags... " >&6; } 6395 # allow ntp_os_flags to be preset to skip this stuff 6396 case "${ntp_os_cflags+set}" in 6397 set) 6398 ;; 6399 *) 6400 ntp_os_cflags= 6401 case "$host_os" in 6402 aix[1-3]*) 6403 ;; 6404 aix4.[0-2]*) 6405 # turn on additional headers 6406 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE" 6407 ;; 6408 aix5.3*) 6409 # avoid circular dependencies in yp headers, and more 6410 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE" 6411 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT" 6412 ;; 6413 aix*) 6414 # XXX Only verified thru AIX6. 6415 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing. 6416 # avoid circular dependencies in yp headers 6417 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995 6418 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004 6419 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008 6420 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600" 6421 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS" 6422 ;; 6423 amigaos) 6424 ntp_os_cflags="-DSYS_AMIGA" 6425 ;; 6426 darwin*|macosx*|rhapsody*) 6427 ntp_os_cflags="-D_P1003_1B_VISIBLE" 6428 ;; 6429 hpux10.*) # at least for hppa2.0-hp-hpux10.20 6430 case "$GCC" in 6431 yes) 6432 ;; 6433 *) 6434 # use Ansi compiler on HPUX, and some -Wp magic 6435 ntp_os_cflags="-Ae -Wp,-H18816" 6436 ;; 6437 esac 6438 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE" 6439 ;; 6440 hpux*) 6441 case "$GCC" in 6442 yes) 6443 ;; 6444 *) 6445 # use Ansi compiler on HPUX 6446 ntp_os_cflags="-Ae" 6447 esac 6448 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE" 6449 ;; 6450 irix6*) 6451 case "$CC" in 6452 cc) 6453 # do not use 64-bit compiler 6454 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84" 6455 esac 6456 ;; 6457 nextstep3) 6458 ntp_os_cflags="-posix" 6459 ;; 6460 solaris1*|solaris2.[0-5]|solaris2.5.*) 6461 ;; 6462 sunos[34]*|sunos5.[0-5]|sunos5.5.*) 6463 ;; 6464 solaris2*|sunos5*) 6465 # turn on 64-bit file offset interface 6466 ntp_os_cflags="-D_LARGEFILE64_SOURCE" 6467 ;; 6468 vxworks*) 6469 case "$build" in 6470 $host) 6471 ;; 6472 *) 6473 # Quick and dirty sanity check 6474 case "$VX_KERNEL" in 6475 '') 6476 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5 6477 esac 6478 ntp_os_cflags="-DSYS_VXWORKS" 6479 esac 6480 ;; 6481 esac 6482 esac 6483 case "$ntp_os_flags" in 6484 '') 6485 ntp_os_cflags_msg="none needed" 6486 ;; 6487 *) 6488 ntp_os_cflags_msg="$ntp_os_cflags" 6489 esac 6490 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags" 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5 6492$as_echo "$ntp_os_cflags_msg" >&6; } 6493 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;} 6494 6495 6496 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 6498$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 6499if ${ac_cv_c_bigendian+:} false; then : 6500 $as_echo_n "(cached) " >&6 6501else 6502 ac_cv_c_bigendian=unknown 6503 # See if we're dealing with a universal compiler. 6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6505/* end confdefs.h. */ 6506#ifndef __APPLE_CC__ 6507 not a universal capable compiler 6508 #endif 6509 typedef int dummy; 6510 6511_ACEOF 6512if ac_fn_c_try_compile "$LINENO"; then : 6513 6514 # Check for potential -arch flags. It is not universal unless 6515 # there are at least two -arch flags with different values. 6516 ac_arch= 6517 ac_prev= 6518 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 6519 if test -n "$ac_prev"; then 6520 case $ac_word in 6521 i?86 | x86_64 | ppc | ppc64) 6522 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 6523 ac_arch=$ac_word 6524 else 6525 ac_cv_c_bigendian=universal 6526 break 6527 fi 6528 ;; 6529 esac 6530 ac_prev= 6531 elif test "x$ac_word" = "x-arch"; then 6532 ac_prev=arch 6533 fi 6534 done 6535fi 6536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6537 if test $ac_cv_c_bigendian = unknown; then 6538 # See if sys/param.h defines the BYTE_ORDER macro. 6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6540/* end confdefs.h. */ 6541#include <sys/types.h> 6542 #include <sys/param.h> 6543 6544int 6545main () 6546{ 6547#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 6548 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 6549 && LITTLE_ENDIAN) 6550 bogus endian macros 6551 #endif 6552 6553 ; 6554 return 0; 6555} 6556_ACEOF 6557if ac_fn_c_try_compile "$LINENO"; then : 6558 # It does; now see whether it defined to BIG_ENDIAN or not. 6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6560/* end confdefs.h. */ 6561#include <sys/types.h> 6562 #include <sys/param.h> 6563 6564int 6565main () 6566{ 6567#if BYTE_ORDER != BIG_ENDIAN 6568 not big endian 6569 #endif 6570 6571 ; 6572 return 0; 6573} 6574_ACEOF 6575if ac_fn_c_try_compile "$LINENO"; then : 6576 ac_cv_c_bigendian=yes 6577else 6578 ac_cv_c_bigendian=no 6579fi 6580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6581fi 6582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6583 fi 6584 if test $ac_cv_c_bigendian = unknown; then 6585 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6587/* end confdefs.h. */ 6588#include <limits.h> 6589 6590int 6591main () 6592{ 6593#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 6594 bogus endian macros 6595 #endif 6596 6597 ; 6598 return 0; 6599} 6600_ACEOF 6601if ac_fn_c_try_compile "$LINENO"; then : 6602 # It does; now see whether it defined to _BIG_ENDIAN or not. 6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6604/* end confdefs.h. */ 6605#include <limits.h> 6606 6607int 6608main () 6609{ 6610#ifndef _BIG_ENDIAN 6611 not big endian 6612 #endif 6613 6614 ; 6615 return 0; 6616} 6617_ACEOF 6618if ac_fn_c_try_compile "$LINENO"; then : 6619 ac_cv_c_bigendian=yes 6620else 6621 ac_cv_c_bigendian=no 6622fi 6623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6624fi 6625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6626 fi 6627 if test $ac_cv_c_bigendian = unknown; then 6628 # Compile a test program. 6629 if test "$cross_compiling" = yes; then : 6630 # Try to guess by grepping values from an object file. 6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6632/* end confdefs.h. */ 6633short int ascii_mm[] = 6634 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6635 short int ascii_ii[] = 6636 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6637 int use_ascii (int i) { 6638 return ascii_mm[i] + ascii_ii[i]; 6639 } 6640 short int ebcdic_ii[] = 6641 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6642 short int ebcdic_mm[] = 6643 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6644 int use_ebcdic (int i) { 6645 return ebcdic_mm[i] + ebcdic_ii[i]; 6646 } 6647 extern int foo; 6648 6649int 6650main () 6651{ 6652return use_ascii (foo) == use_ebcdic (foo); 6653 ; 6654 return 0; 6655} 6656_ACEOF 6657if ac_fn_c_try_compile "$LINENO"; then : 6658 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 6659 ac_cv_c_bigendian=yes 6660 fi 6661 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6662 if test "$ac_cv_c_bigendian" = unknown; then 6663 ac_cv_c_bigendian=no 6664 else 6665 # finding both strings is unlikely to happen, but who knows? 6666 ac_cv_c_bigendian=unknown 6667 fi 6668 fi 6669fi 6670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6671else 6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6673/* end confdefs.h. */ 6674$ac_includes_default 6675int 6676main () 6677{ 6678 6679 /* Are we little or big endian? From Harbison&Steele. */ 6680 union 6681 { 6682 long int l; 6683 char c[sizeof (long int)]; 6684 } u; 6685 u.l = 1; 6686 return u.c[sizeof (long int) - 1] == 1; 6687 6688 ; 6689 return 0; 6690} 6691_ACEOF 6692if ac_fn_c_try_run "$LINENO"; then : 6693 ac_cv_c_bigendian=no 6694else 6695 ac_cv_c_bigendian=yes 6696fi 6697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6698 conftest.$ac_objext conftest.beam conftest.$ac_ext 6699fi 6700 6701 fi 6702fi 6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 6704$as_echo "$ac_cv_c_bigendian" >&6; } 6705 case $ac_cv_c_bigendian in #( 6706 yes) 6707 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 6708;; #( 6709 no) 6710 ;; #( 6711 universal) 6712 6713$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 6714 6715 ;; #( 6716 *) 6717 as_fn_error $? "unknown endianness 6718 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 6719 esac 6720 6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 6722$as_echo_n "checking for working volatile... " >&6; } 6723if ${ac_cv_c_volatile+:} false; then : 6724 $as_echo_n "(cached) " >&6 6725else 6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6727/* end confdefs.h. */ 6728 6729int 6730main () 6731{ 6732 6733volatile int x; 6734int * volatile y = (int *) 0; 6735return !x && !y; 6736 ; 6737 return 0; 6738} 6739_ACEOF 6740if ac_fn_c_try_compile "$LINENO"; then : 6741 ac_cv_c_volatile=yes 6742else 6743 ac_cv_c_volatile=no 6744fi 6745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6746fi 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 6748$as_echo "$ac_cv_c_volatile" >&6; } 6749if test $ac_cv_c_volatile = no; then 6750 6751$as_echo "#define volatile /**/" >>confdefs.h 6752 6753fi 6754 6755ac_ext=c 6756ac_cpp='$CPP $CPPFLAGS' 6757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6759ac_compiler_gnu=$ac_cv_c_compiler_gnu 6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6761$as_echo_n "checking how to run the C preprocessor... " >&6; } 6762# On Suns, sometimes $CPP names a directory. 6763if test -n "$CPP" && test -d "$CPP"; then 6764 CPP= 6765fi 6766if test -z "$CPP"; then 6767 if ${ac_cv_prog_CPP+:} false; then : 6768 $as_echo_n "(cached) " >&6 6769else 6770 # Double quotes because CPP needs to be expanded 6771 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6772 do 6773 ac_preproc_ok=false 6774for ac_c_preproc_warn_flag in '' yes 6775do 6776 # Use a header file that comes with gcc, so configuring glibc 6777 # with a fresh cross-compiler works. 6778 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6779 # <limits.h> exists even on freestanding compilers. 6780 # On the NeXT, cc -E runs the code through the compiler's parser, 6781 # not just through cpp. "Syntax error" is here to catch this case. 6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6783/* end confdefs.h. */ 6784#ifdef __STDC__ 6785# include <limits.h> 6786#else 6787# include <assert.h> 6788#endif 6789 Syntax error 6790_ACEOF 6791if ac_fn_c_try_cpp "$LINENO"; then : 6792 6793else 6794 # Broken: fails on valid input. 6795continue 6796fi 6797rm -f conftest.err conftest.i conftest.$ac_ext 6798 6799 # OK, works on sane cases. Now check whether nonexistent headers 6800 # can be detected and how. 6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6802/* end confdefs.h. */ 6803#include <ac_nonexistent.h> 6804_ACEOF 6805if ac_fn_c_try_cpp "$LINENO"; then : 6806 # Broken: success on invalid input. 6807continue 6808else 6809 # Passes both tests. 6810ac_preproc_ok=: 6811break 6812fi 6813rm -f conftest.err conftest.i conftest.$ac_ext 6814 6815done 6816# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6817rm -f conftest.i conftest.err conftest.$ac_ext 6818if $ac_preproc_ok; then : 6819 break 6820fi 6821 6822 done 6823 ac_cv_prog_CPP=$CPP 6824 6825fi 6826 CPP=$ac_cv_prog_CPP 6827else 6828 ac_cv_prog_CPP=$CPP 6829fi 6830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6831$as_echo "$CPP" >&6; } 6832ac_preproc_ok=false 6833for ac_c_preproc_warn_flag in '' yes 6834do 6835 # Use a header file that comes with gcc, so configuring glibc 6836 # with a fresh cross-compiler works. 6837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6838 # <limits.h> exists even on freestanding compilers. 6839 # On the NeXT, cc -E runs the code through the compiler's parser, 6840 # not just through cpp. "Syntax error" is here to catch this case. 6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6842/* end confdefs.h. */ 6843#ifdef __STDC__ 6844# include <limits.h> 6845#else 6846# include <assert.h> 6847#endif 6848 Syntax error 6849_ACEOF 6850if ac_fn_c_try_cpp "$LINENO"; then : 6851 6852else 6853 # Broken: fails on valid input. 6854continue 6855fi 6856rm -f conftest.err conftest.i conftest.$ac_ext 6857 6858 # OK, works on sane cases. Now check whether nonexistent headers 6859 # can be detected and how. 6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6861/* end confdefs.h. */ 6862#include <ac_nonexistent.h> 6863_ACEOF 6864if ac_fn_c_try_cpp "$LINENO"; then : 6865 # Broken: success on invalid input. 6866continue 6867else 6868 # Passes both tests. 6869ac_preproc_ok=: 6870break 6871fi 6872rm -f conftest.err conftest.i conftest.$ac_ext 6873 6874done 6875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6876rm -f conftest.i conftest.err conftest.$ac_ext 6877if $ac_preproc_ok; then : 6878 6879else 6880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6882as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6883See \`config.log' for more details" "$LINENO" 5; } 6884fi 6885 6886ac_ext=c 6887ac_cpp='$CPP $CPPFLAGS' 6888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6890ac_compiler_gnu=$ac_cv_c_compiler_gnu 6891 6892 6893 6894 6895 6896 6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5 6898$as_echo_n "checking for install dir and man conventions... " >&6; } 6899 6900 6901# Check whether --with-locfile was given. 6902if test "${with_locfile+set}" = set; then : 6903 withval=$with_locfile; 6904else 6905 with_locfile=no 6906 6907fi 6908 6909 6910( \ 6911 SENTINEL_DIR="$PWD" && \ 6912 cd $srcdir/ && \ 6913 case "$with_locfile" in \ 6914 yes|no|'') \ 6915 scripts/genLocInfo -d "$SENTINEL_DIR" \ 6916 ;; \ 6917 *) \ 6918 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \ 6919 ;; \ 6920 esac \ 6921) > genLocInfo.i 2> genLocInfo.err 6922. ./genLocInfo.i 6923 6924case "$GENLOCINFO" in 6925 OK) 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5 6927$as_echo "in file $GENLOCINFOFILE" >&6; } 6928 rm genLocInfo.err genLocInfo.i 6929 ;; 6930 *) 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5 6932$as_echo "failed." >&6; } 6933 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5 6934 ;; 6935esac 6936 6937 if test "$CALC_TICKADJ_MS" ; then 6938 WANT_CALC_TICKADJ_MS_TRUE= 6939 WANT_CALC_TICKADJ_MS_FALSE='#' 6940else 6941 WANT_CALC_TICKADJ_MS_TRUE='#' 6942 WANT_CALC_TICKADJ_MS_FALSE= 6943fi 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 if test -z "$NTPSWEEP_NI" ; then 6988 INSTALL_NTPSWEEP_TRUE= 6989 INSTALL_NTPSWEEP_FALSE='#' 6990else 6991 INSTALL_NTPSWEEP_TRUE='#' 6992 INSTALL_NTPSWEEP_FALSE= 6993fi 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037# Expose a cross-compilation indicator to makefiles 7038 if test $build != $host; then 7039 NTP_CROSSCOMPILE_TRUE= 7040 NTP_CROSSCOMPILE_FALSE='#' 7041else 7042 NTP_CROSSCOMPILE_TRUE='#' 7043 NTP_CROSSCOMPILE_FALSE= 7044fi 7045 7046 7047 7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7049$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7050if ${ac_cv_path_SED+:} false; then : 7051 $as_echo_n "(cached) " >&6 7052else 7053 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7054 for ac_i in 1 2 3 4 5 6 7; do 7055 ac_script="$ac_script$as_nl$ac_script" 7056 done 7057 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7058 { ac_script=; unset ac_script;} 7059 if test -z "$SED"; then 7060 ac_path_SED_found=false 7061 # Loop through the user's path and test for each of PROGNAME-LIST 7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7063for as_dir in $PATH 7064do 7065 IFS=$as_save_IFS 7066 test -z "$as_dir" && as_dir=. 7067 for ac_prog in sed gsed; do 7068 for ac_exec_ext in '' $ac_executable_extensions; do 7069 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7070 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 7071# Check for GNU ac_path_SED and select it if it is found. 7072 # Check for GNU $ac_path_SED 7073case `"$ac_path_SED" --version 2>&1` in 7074*GNU*) 7075 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7076*) 7077 ac_count=0 7078 $as_echo_n 0123456789 >"conftest.in" 7079 while : 7080 do 7081 cat "conftest.in" "conftest.in" >"conftest.tmp" 7082 mv "conftest.tmp" "conftest.in" 7083 cp "conftest.in" "conftest.nl" 7084 $as_echo '' >> "conftest.nl" 7085 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7087 as_fn_arith $ac_count + 1 && ac_count=$as_val 7088 if test $ac_count -gt ${ac_path_SED_max-0}; then 7089 # Best one so far, save it but keep looking for a better one 7090 ac_cv_path_SED="$ac_path_SED" 7091 ac_path_SED_max=$ac_count 7092 fi 7093 # 10*(2^10) chars as input seems more than enough 7094 test $ac_count -gt 10 && break 7095 done 7096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7097esac 7098 7099 $ac_path_SED_found && break 3 7100 done 7101 done 7102 done 7103IFS=$as_save_IFS 7104 if test -z "$ac_cv_path_SED"; then 7105 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7106 fi 7107else 7108 ac_cv_path_SED=$SED 7109fi 7110 7111fi 7112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7113$as_echo "$ac_cv_path_SED" >&6; } 7114 SED="$ac_cv_path_SED" 7115 rm -f conftest.sed 7116 7117test -z "$SED" && SED=sed 7118Xsed="$SED -e 1s/^X//" 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7131$as_echo_n "checking for fgrep... " >&6; } 7132if ${ac_cv_path_FGREP+:} false; then : 7133 $as_echo_n "(cached) " >&6 7134else 7135 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7136 then ac_cv_path_FGREP="$GREP -F" 7137 else 7138 if test -z "$FGREP"; then 7139 ac_path_FGREP_found=false 7140 # Loop through the user's path and test for each of PROGNAME-LIST 7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7142for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7143do 7144 IFS=$as_save_IFS 7145 test -z "$as_dir" && as_dir=. 7146 for ac_prog in fgrep; do 7147 for ac_exec_ext in '' $ac_executable_extensions; do 7148 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7149 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 7150# Check for GNU ac_path_FGREP and select it if it is found. 7151 # Check for GNU $ac_path_FGREP 7152case `"$ac_path_FGREP" --version 2>&1` in 7153*GNU*) 7154 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7155*) 7156 ac_count=0 7157 $as_echo_n 0123456789 >"conftest.in" 7158 while : 7159 do 7160 cat "conftest.in" "conftest.in" >"conftest.tmp" 7161 mv "conftest.tmp" "conftest.in" 7162 cp "conftest.in" "conftest.nl" 7163 $as_echo 'FGREP' >> "conftest.nl" 7164 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7166 as_fn_arith $ac_count + 1 && ac_count=$as_val 7167 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7168 # Best one so far, save it but keep looking for a better one 7169 ac_cv_path_FGREP="$ac_path_FGREP" 7170 ac_path_FGREP_max=$ac_count 7171 fi 7172 # 10*(2^10) chars as input seems more than enough 7173 test $ac_count -gt 10 && break 7174 done 7175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7176esac 7177 7178 $ac_path_FGREP_found && break 3 7179 done 7180 done 7181 done 7182IFS=$as_save_IFS 7183 if test -z "$ac_cv_path_FGREP"; then 7184 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7185 fi 7186else 7187 ac_cv_path_FGREP=$FGREP 7188fi 7189 7190 fi 7191fi 7192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7193$as_echo "$ac_cv_path_FGREP" >&6; } 7194 FGREP="$ac_cv_path_FGREP" 7195 7196 7197test -z "$GREP" && GREP=grep 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7216ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7217ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7218 7219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7220$as_echo_n "checking how to print strings... " >&6; } 7221# Test print first, because it will be a builtin if present. 7222if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7223 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7224 ECHO='print -r --' 7225elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7226 ECHO='printf %s\n' 7227else 7228 # Use this function as a fallback that always works. 7229 func_fallback_echo () 7230 { 7231 eval 'cat <<_LTECHO_EOF 7232$1 7233_LTECHO_EOF' 7234 } 7235 ECHO='func_fallback_echo' 7236fi 7237 7238# func_echo_all arg... 7239# Invoke $ECHO with all args, space-separated. 7240func_echo_all () 7241{ 7242 $ECHO "" 7243} 7244 7245case "$ECHO" in 7246 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7247$as_echo "printf" >&6; } ;; 7248 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7249$as_echo "print -r" >&6; } ;; 7250 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7251$as_echo "cat" >&6; } ;; 7252esac 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 7268if test "x$ac_cv_type_pid_t" = xyes; then : 7269 7270else 7271 7272cat >>confdefs.h <<_ACEOF 7273#define pid_t int 7274_ACEOF 7275 7276fi 7277 7278ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7279if test "x$ac_cv_type_size_t" = xyes; then : 7280 7281else 7282 7283cat >>confdefs.h <<_ACEOF 7284#define size_t unsigned int 7285_ACEOF 7286 7287fi 7288 7289 7290 # Check whether --enable-c99-snprintf was given. 7291if test "${enable_c99_snprintf+set}" = set; then : 7292 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval 7293else 7294 force_c99_snprintf=no 7295 7296fi 7297 7298 case "$force_c99_snprintf" in 7299 yes) 7300 hw_force_rpl_snprintf=yes 7301 hw_force_rpl_vsnprintf=yes 7302 esac 7303 7304 7305 7306 7307 7308 7309 for ac_header in $ac_header_list 7310do : 7311 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7312ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7313" 7314if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7315 cat >>confdefs.h <<_ACEOF 7316#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7317_ACEOF 7318 7319fi 7320 7321done 7322 7323 7324 7325 7326 7327 7328 7329 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 7330if test "x$ac_cv_func_vsnprintf" = xyes; then : 7331 hw_cv_func_vsnprintf=yes 7332else 7333 hw_cv_func_vsnprintf=no 7334fi 7335 7336 if test "$hw_cv_func_vsnprintf" = yes; then : 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5 7338$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; } 7339if ${hw_cv_func_vsnprintf_c99+:} false; then : 7340 $as_echo_n "(cached) " >&6 7341else 7342 if test "$cross_compiling" = yes; then : 7343 hw_cv_func_vsnprintf_c99=no 7344else 7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7346/* end confdefs.h. */ 7347#if HAVE_STDARG_H 7348 #include <stdarg.h> 7349 #endif 7350 #include <stdio.h> 7351 static int testprintf(char *buf, size_t size, const char *format, ...) 7352 { 7353 int result; 7354 va_list ap; 7355 va_start(ap, format); 7356 result = vsnprintf(buf, size, format, ap); 7357 va_end(ap); 7358 return result; 7359 } 7360int 7361main () 7362{ 7363char buf[43]; 7364 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 7365 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 7366 buf[0] != 'T' || buf[3] != '\0') 7367 return 1; 7368 ; 7369 return 0; 7370} 7371_ACEOF 7372if ac_fn_c_try_run "$LINENO"; then : 7373 hw_cv_func_vsnprintf_c99=yes 7374else 7375 hw_cv_func_vsnprintf_c99=no 7376fi 7377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7378 conftest.$ac_objext conftest.beam conftest.$ac_ext 7379fi 7380 7381fi 7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5 7383$as_echo "$hw_cv_func_vsnprintf_c99" >&6; } 7384else 7385 hw_cv_func_vsnprintf_c99=no 7386fi 7387 7388$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 7389 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5 7391$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; } 7392 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then : 7393 hw_use_rpl_vsnprintf=yes 7394else 7395 hw_use_rpl_vsnprintf=no 7396fi 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5 7398$as_echo "$hw_use_rpl_vsnprintf" >&6; } 7399 if test "$hw_use_rpl_vsnprintf" = yes; then : 7400 7401$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h 7402 7403 if test ${hw_nodef_vsnprintf=no} = no; then : 7404 7405$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h 7406 7407fi 7408 for ac_header in inttypes.h locale.h stddef.h stdint.h 7409do : 7410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7411ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7412if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7413 cat >>confdefs.h <<_ACEOF 7414#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7415_ACEOF 7416 7417fi 7418 7419done 7420 7421 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 7422" 7423if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then : 7424 7425cat >>confdefs.h <<_ACEOF 7426#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1 7427_ACEOF 7428 7429 7430fi 7431ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h> 7432" 7433if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then : 7434 7435cat >>confdefs.h <<_ACEOF 7436#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1 7437_ACEOF 7438 7439 7440fi 7441 7442 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 7444$as_echo_n "checking for long double... " >&6; } 7445if ${ac_cv_type_long_double+:} false; then : 7446 $as_echo_n "(cached) " >&6 7447else 7448 if test "$GCC" = yes; then 7449 ac_cv_type_long_double=yes 7450 else 7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7452/* end confdefs.h. */ 7453/* The Stardent Vistra knows sizeof (long double), but does 7454 not support it. */ 7455 long double foo = 0.0L; 7456int 7457main () 7458{ 7459static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 7460 sizeof (double) <= sizeof (long double))]; 7461test_array [0] = 0 7462 7463 ; 7464 return 0; 7465} 7466_ACEOF 7467if ac_fn_c_try_compile "$LINENO"; then : 7468 ac_cv_type_long_double=yes 7469else 7470 ac_cv_type_long_double=no 7471fi 7472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7473 fi 7474fi 7475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 7476$as_echo "$ac_cv_type_long_double" >&6; } 7477 if test $ac_cv_type_long_double = yes; then 7478 7479$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 7480 7481 fi 7482 7483 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 7485$as_echo_n "checking for long long int... " >&6; } 7486if ${ac_cv_type_long_long_int+:} false; then : 7487 $as_echo_n "(cached) " >&6 7488else 7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7490/* end confdefs.h. */ 7491 7492 /* For now, do not test the preprocessor; as of 2007 there are too many 7493 implementations with broken preprocessors. Perhaps this can 7494 be revisited in 2012. In the meantime, code should not expect 7495 #if to work with literals wider than 32 bits. */ 7496 /* Test literals. */ 7497 long long int ll = 9223372036854775807ll; 7498 long long int nll = -9223372036854775807LL; 7499 unsigned long long int ull = 18446744073709551615ULL; 7500 /* Test constant expressions. */ 7501 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 7502 ? 1 : -1)]; 7503 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 7504 ? 1 : -1)]; 7505 int i = 63; 7506int 7507main () 7508{ 7509/* Test availability of runtime routines for shift and division. */ 7510 long long int llmax = 9223372036854775807ll; 7511 unsigned long long int ullmax = 18446744073709551615ull; 7512 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 7513 | (llmax / ll) | (llmax % ll) 7514 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 7515 | (ullmax / ull) | (ullmax % ull)); 7516 ; 7517 return 0; 7518} 7519 7520_ACEOF 7521if ac_fn_c_try_link "$LINENO"; then : 7522 if test "$cross_compiling" = yes; then : 7523 ac_cv_type_long_long_int=yes 7524else 7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7526/* end confdefs.h. */ 7527#include <limits.h> 7528 #ifndef LLONG_MAX 7529 # define HALF \ 7530 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 7531 # define LLONG_MAX (HALF - 1 + HALF) 7532 #endif 7533int 7534main () 7535{ 7536long long int n = 1; 7537 int i; 7538 for (i = 0; ; i++) 7539 { 7540 long long int m = n << i; 7541 if (m >> i != n) 7542 return 1; 7543 if (LLONG_MAX / 2 < m) 7544 break; 7545 } 7546 return 0; 7547 ; 7548 return 0; 7549} 7550_ACEOF 7551if ac_fn_c_try_run "$LINENO"; then : 7552 ac_cv_type_long_long_int=yes 7553else 7554 ac_cv_type_long_long_int=no 7555fi 7556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7557 conftest.$ac_objext conftest.beam conftest.$ac_ext 7558fi 7559 7560else 7561 ac_cv_type_long_long_int=no 7562fi 7563rm -f core conftest.err conftest.$ac_objext \ 7564 conftest$ac_exeext conftest.$ac_ext 7565fi 7566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 7567$as_echo "$ac_cv_type_long_long_int" >&6; } 7568 if test $ac_cv_type_long_long_int = yes; then 7569 7570$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 7571 7572 fi 7573 7574 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 7576$as_echo_n "checking for unsigned long long int... " >&6; } 7577if ${ac_cv_type_unsigned_long_long_int+:} false; then : 7578 $as_echo_n "(cached) " >&6 7579else 7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7581/* end confdefs.h. */ 7582 7583 /* For now, do not test the preprocessor; as of 2007 there are too many 7584 implementations with broken preprocessors. Perhaps this can 7585 be revisited in 2012. In the meantime, code should not expect 7586 #if to work with literals wider than 32 bits. */ 7587 /* Test literals. */ 7588 long long int ll = 9223372036854775807ll; 7589 long long int nll = -9223372036854775807LL; 7590 unsigned long long int ull = 18446744073709551615ULL; 7591 /* Test constant expressions. */ 7592 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 7593 ? 1 : -1)]; 7594 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 7595 ? 1 : -1)]; 7596 int i = 63; 7597int 7598main () 7599{ 7600/* Test availability of runtime routines for shift and division. */ 7601 long long int llmax = 9223372036854775807ll; 7602 unsigned long long int ullmax = 18446744073709551615ull; 7603 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 7604 | (llmax / ll) | (llmax % ll) 7605 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 7606 | (ullmax / ull) | (ullmax % ull)); 7607 ; 7608 return 0; 7609} 7610 7611_ACEOF 7612if ac_fn_c_try_link "$LINENO"; then : 7613 ac_cv_type_unsigned_long_long_int=yes 7614else 7615 ac_cv_type_unsigned_long_long_int=no 7616fi 7617rm -f core conftest.err conftest.$ac_objext \ 7618 conftest$ac_exeext conftest.$ac_ext 7619fi 7620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 7621$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 7622 if test $ac_cv_type_unsigned_long_long_int = yes; then 7623 7624$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 7625 7626 fi 7627 7628 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7629if test "x$ac_cv_type_size_t" = xyes; then : 7630 7631else 7632 7633cat >>confdefs.h <<_ACEOF 7634#define size_t unsigned int 7635_ACEOF 7636 7637fi 7638 7639 7640 7641 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 7642if test "x$ac_cv_type_intmax_t" = xyes; then : 7643 7644$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 7645 7646else 7647 test $ac_cv_type_long_long_int = yes \ 7648 && ac_type='long long int' \ 7649 || ac_type='long int' 7650 7651cat >>confdefs.h <<_ACEOF 7652#define intmax_t $ac_type 7653_ACEOF 7654 7655fi 7656 7657 7658 7659 7660 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 7661if test "x$ac_cv_type_uintmax_t" = xyes; then : 7662 7663$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 7664 7665else 7666 test $ac_cv_type_unsigned_long_long_int = yes \ 7667 && ac_type='unsigned long long int' \ 7668 || ac_type='unsigned long int' 7669 7670cat >>confdefs.h <<_ACEOF 7671#define uintmax_t $ac_type 7672_ACEOF 7673 7674fi 7675 7676 7677 7678 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 7679if test "x$ac_cv_type_uintptr_t" = xyes; then : 7680 7681$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 7682 7683else 7684 for ac_type in 'unsigned int' 'unsigned long int' \ 7685 'unsigned long long int'; do 7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7687/* end confdefs.h. */ 7688$ac_includes_default 7689int 7690main () 7691{ 7692static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 7693test_array [0] = 0 7694 7695 ; 7696 return 0; 7697} 7698_ACEOF 7699if ac_fn_c_try_compile "$LINENO"; then : 7700 7701cat >>confdefs.h <<_ACEOF 7702#define uintptr_t $ac_type 7703_ACEOF 7704 7705 ac_type= 7706fi 7707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7708 test -z "$ac_type" && break 7709 done 7710fi 7711 7712 7713 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 7714if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 7715 7716cat >>confdefs.h <<_ACEOF 7717#define HAVE_PTRDIFF_T 1 7718_ACEOF 7719 7720 7721fi 7722 7723 for ac_func in localeconv 7724do : 7725 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv" 7726if test "x$ac_cv_func_localeconv" = xyes; then : 7727 cat >>confdefs.h <<_ACEOF 7728#define HAVE_LOCALECONV 1 7729_ACEOF 7730 7731fi 7732done 7733 7734 7735 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 7737$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 7738if ${ac_cv_c_const+:} false; then : 7739 $as_echo_n "(cached) " >&6 7740else 7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7742/* end confdefs.h. */ 7743 7744int 7745main () 7746{ 7747/* FIXME: Include the comments suggested by Paul. */ 7748#ifndef __cplusplus 7749 /* Ultrix mips cc rejects this. */ 7750 typedef int charset[2]; 7751 const charset cs; 7752 /* SunOS 4.1.1 cc rejects this. */ 7753 char const *const *pcpcc; 7754 char **ppc; 7755 /* NEC SVR4.0.2 mips cc rejects this. */ 7756 struct point {int x, y;}; 7757 static struct point const zero = {0,0}; 7758 /* AIX XL C 1.02.0.0 rejects this. 7759 It does not let you subtract one const X* pointer from another in 7760 an arm of an if-expression whose if-part is not a constant 7761 expression */ 7762 const char *g = "string"; 7763 pcpcc = &g + (g ? g-g : 0); 7764 /* HPUX 7.0 cc rejects these. */ 7765 ++pcpcc; 7766 ppc = (char**) pcpcc; 7767 pcpcc = (char const *const *) ppc; 7768 { /* SCO 3.2v4 cc rejects this. */ 7769 char *t; 7770 char const *s = 0 ? (char *) 0 : (char const *) 0; 7771 7772 *t++ = 0; 7773 if (s) return 0; 7774 } 7775 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7776 int x[] = {25, 17}; 7777 const int *foo = &x[0]; 7778 ++foo; 7779 } 7780 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7781 typedef const int *iptr; 7782 iptr p = 0; 7783 ++p; 7784 } 7785 { /* AIX XL C 1.02.0.0 rejects this saying 7786 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7787 struct s { int j; const int *ap[3]; }; 7788 struct s *b; b->j = 5; 7789 } 7790 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7791 const int foo = 10; 7792 if (!foo) return 0; 7793 } 7794 return !cs[0] && !zero.x; 7795#endif 7796 7797 ; 7798 return 0; 7799} 7800_ACEOF 7801if ac_fn_c_try_compile "$LINENO"; then : 7802 ac_cv_c_const=yes 7803else 7804 ac_cv_c_const=no 7805fi 7806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7807fi 7808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 7809$as_echo "$ac_cv_c_const" >&6; } 7810if test $ac_cv_c_const = no; then 7811 7812$as_echo "#define const /**/" >>confdefs.h 7813 7814fi 7815 7816 7817 7818 7819 case " $LIBOBJS " in 7820 *" snprintf.$ac_objext "* ) ;; 7821 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 7822 ;; 7823esac 7824 7825 _hw_cv_func_xprintf_replace_done=yes 7826fi 7827 7828fi 7829 7830 7831 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 7832if test "x$ac_cv_func_snprintf" = xyes; then : 7833 hw_cv_func_snprintf=yes 7834else 7835 hw_cv_func_snprintf=no 7836fi 7837 7838 if test "$hw_cv_func_snprintf" = yes; then : 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5 7840$as_echo_n "checking whether snprintf is C99 compliant... " >&6; } 7841if ${hw_cv_func_snprintf_c99+:} false; then : 7842 $as_echo_n "(cached) " >&6 7843else 7844 if test "$cross_compiling" = yes; then : 7845 hw_cv_func_snprintf_c99=no 7846else 7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7848/* end confdefs.h. */ 7849#include <stdio.h> 7850int 7851main () 7852{ 7853char buf[43]; 7854 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 7855 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 7856 buf[0] != 'T' || buf[3] != '\0') 7857 return 1; 7858 ; 7859 return 0; 7860} 7861_ACEOF 7862if ac_fn_c_try_run "$LINENO"; then : 7863 hw_cv_func_snprintf_c99=yes 7864else 7865 hw_cv_func_snprintf_c99=no 7866fi 7867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7868 conftest.$ac_objext conftest.beam conftest.$ac_ext 7869fi 7870 7871fi 7872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5 7873$as_echo "$hw_cv_func_snprintf_c99" >&6; } 7874else 7875 hw_cv_func_snprintf_c99=no 7876fi 7877 7878$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 7879 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5 7881$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; } 7882 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then : 7883 hw_use_rpl_snprintf=yes 7884else 7885 hw_use_rpl_snprintf=no 7886fi 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5 7888$as_echo "$hw_use_rpl_snprintf" >&6; } 7889 if test "$hw_use_rpl_snprintf" = yes; then : 7890 7891$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h 7892 7893 if test ${hw_nodef_snprintf=no} = no; then : 7894 7895$as_echo "#define snprintf rpl_snprintf" >>confdefs.h 7896 7897fi 7898 7899 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 7901$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 7902if ${ac_cv_c_const+:} false; then : 7903 $as_echo_n "(cached) " >&6 7904else 7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7906/* end confdefs.h. */ 7907 7908int 7909main () 7910{ 7911/* FIXME: Include the comments suggested by Paul. */ 7912#ifndef __cplusplus 7913 /* Ultrix mips cc rejects this. */ 7914 typedef int charset[2]; 7915 const charset cs; 7916 /* SunOS 4.1.1 cc rejects this. */ 7917 char const *const *pcpcc; 7918 char **ppc; 7919 /* NEC SVR4.0.2 mips cc rejects this. */ 7920 struct point {int x, y;}; 7921 static struct point const zero = {0,0}; 7922 /* AIX XL C 1.02.0.0 rejects this. 7923 It does not let you subtract one const X* pointer from another in 7924 an arm of an if-expression whose if-part is not a constant 7925 expression */ 7926 const char *g = "string"; 7927 pcpcc = &g + (g ? g-g : 0); 7928 /* HPUX 7.0 cc rejects these. */ 7929 ++pcpcc; 7930 ppc = (char**) pcpcc; 7931 pcpcc = (char const *const *) ppc; 7932 { /* SCO 3.2v4 cc rejects this. */ 7933 char *t; 7934 char const *s = 0 ? (char *) 0 : (char const *) 0; 7935 7936 *t++ = 0; 7937 if (s) return 0; 7938 } 7939 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7940 int x[] = {25, 17}; 7941 const int *foo = &x[0]; 7942 ++foo; 7943 } 7944 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7945 typedef const int *iptr; 7946 iptr p = 0; 7947 ++p; 7948 } 7949 { /* AIX XL C 1.02.0.0 rejects this saying 7950 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7951 struct s { int j; const int *ap[3]; }; 7952 struct s *b; b->j = 5; 7953 } 7954 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7955 const int foo = 10; 7956 if (!foo) return 0; 7957 } 7958 return !cs[0] && !zero.x; 7959#endif 7960 7961 ; 7962 return 0; 7963} 7964_ACEOF 7965if ac_fn_c_try_compile "$LINENO"; then : 7966 ac_cv_c_const=yes 7967else 7968 ac_cv_c_const=no 7969fi 7970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7971fi 7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 7973$as_echo "$ac_cv_c_const" >&6; } 7974if test $ac_cv_c_const = no; then 7975 7976$as_echo "#define const /**/" >>confdefs.h 7977 7978fi 7979 7980 7981 7982 7983 case " $LIBOBJS " in 7984 *" snprintf.$ac_objext "* ) ;; 7985 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 7986 ;; 7987esac 7988 7989 _hw_cv_func_xprintf_replace_done=yes 7990fi 7991 7992fi 7993 7994 7995 7996 7997 7998# HMS: Save $LIBS and empty it. 7999# any LIBS we add here should go in to LDADD_LIBNTP 8000 8001__LIBS=$LIBS 8002LIBS= 8003 8004 8005 8006# [Bug 2332] because we need to know if we are using GNU ld... 8007 8008 8009# Check whether --with-gnu-ld was given. 8010if test "${with_gnu_ld+set}" = set; then : 8011 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 8012else 8013 with_gnu_ld=no 8014fi 8015 8016ac_prog=ld 8017if test "$GCC" = yes; then 8018 # Check if gcc -print-prog-name=ld gives a path. 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8020$as_echo_n "checking for ld used by $CC... " >&6; } 8021 case $host in 8022 *-*-mingw*) 8023 # gcc leaves a trailing carriage return which upsets mingw 8024 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8025 *) 8026 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8027 esac 8028 case $ac_prog in 8029 # Accept absolute paths. 8030 [\\/]* | ?:[\\/]*) 8031 re_direlt='/[^/][^/]*/\.\./' 8032 # Canonicalize the pathname of ld 8033 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8034 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8035 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8036 done 8037 test -z "$LD" && LD="$ac_prog" 8038 ;; 8039 "") 8040 # If it fails, then pretend we aren't using GCC. 8041 ac_prog=ld 8042 ;; 8043 *) 8044 # If it is relative, then search for the first ld in PATH. 8045 with_gnu_ld=unknown 8046 ;; 8047 esac 8048elif test "$with_gnu_ld" = yes; then 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8050$as_echo_n "checking for GNU ld... " >&6; } 8051else 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8053$as_echo_n "checking for non-GNU ld... " >&6; } 8054fi 8055if ${lt_cv_path_LD+:} false; then : 8056 $as_echo_n "(cached) " >&6 8057else 8058 if test -z "$LD"; then 8059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8060 for ac_dir in $PATH; do 8061 IFS="$lt_save_ifs" 8062 test -z "$ac_dir" && ac_dir=. 8063 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8064 lt_cv_path_LD="$ac_dir/$ac_prog" 8065 # Check to see if the program is GNU ld. I'd rather use --version, 8066 # but apparently some variants of GNU ld only accept -v. 8067 # Break only if it was the GNU/non-GNU ld that we prefer. 8068 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8069 *GNU* | *'with BFD'*) 8070 test "$with_gnu_ld" != no && break 8071 ;; 8072 *) 8073 test "$with_gnu_ld" != yes && break 8074 ;; 8075 esac 8076 fi 8077 done 8078 IFS="$lt_save_ifs" 8079else 8080 lt_cv_path_LD="$LD" # Let the user override the test with a path. 8081fi 8082fi 8083 8084LD="$lt_cv_path_LD" 8085if test -n "$LD"; then 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8087$as_echo "$LD" >&6; } 8088else 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8090$as_echo "no" >&6; } 8091fi 8092test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8094$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8095if ${lt_cv_prog_gnu_ld+:} false; then : 8096 $as_echo_n "(cached) " >&6 8097else 8098 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8099case `$LD -v 2>&1 </dev/null` in 8100*GNU* | *'with BFD'*) 8101 lt_cv_prog_gnu_ld=yes 8102 ;; 8103*) 8104 lt_cv_prog_gnu_ld=no 8105 ;; 8106esac 8107fi 8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8109$as_echo "$lt_cv_prog_gnu_ld" >&6; } 8110with_gnu_ld=$lt_cv_prog_gnu_ld 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5 8123$as_echo_n "checking for directory path separator... " >&6; } 8124if ${ntp_cv_dir_sep+:} false; then : 8125 $as_echo_n "(cached) " >&6 8126else 8127 8128 case "$ntp_cv_dir_sep" in 8129 '') 8130 case "$host_os" in 8131 *djgpp | *mingw32* | *emx*) 8132 ntp_cv_dir_sep="'\\'" 8133 ;; 8134 *) 8135 ntp_cv_dir_sep="'/'" 8136 ;; 8137 esac 8138 esac 8139 8140 8141fi 8142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5 8143$as_echo "$ntp_cv_dir_sep" >&6; } 8144 8145cat >>confdefs.h <<_ACEOF 8146#define DIR_SEP $ntp_cv_dir_sep 8147_ACEOF 8148 8149 8150 8151 NTP_ORIG_LIBS="$LIBS" 8152 8153# Check whether --with-lineeditlibs was given. 8154if test "${with_lineeditlibs+set}" = set; then : 8155 withval=$with_lineeditlibs; use_lineeditlibs="$withval" 8156else 8157 use_lineeditlibs="edit,editline" 8158 8159fi 8160 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5 8162$as_echo_n "checking line editing libraries... " >&6; } 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5 8164$as_echo "$use_lineeditlibs" >&6; } 8165 case "$use_lineeditlibs" in 8166 no) 8167 ntp_lib_lineedit=no 8168 ;; 8169 *) 8170 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do 8171 for term_lib in "" termcap curses ncurses; do 8172 case "$term_lib" in 8173 '') 8174 TRY_LIB="-l$lineedit_lib" 8175 ;; 8176 *) 8177 TRY_LIB="-l$lineedit_lib -l$term_lib" 8178 ;; 8179 esac 8180 LIBS="$NTP_ORIG_LIBS $TRY_LIB" 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5 8182$as_echo_n "checking for readline() with $TRY_LIB... " >&6; } 8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8184/* end confdefs.h. */ 8185 8186/* Override any GCC internal prototype to avoid an error. 8187 Use char because int might match the return type of a GCC 8188 builtin and then its argument prototype would still apply. */ 8189#ifdef __cplusplus 8190extern "C" 8191#endif 8192char readline (); 8193int 8194main () 8195{ 8196return readline (); 8197 ; 8198 return 0; 8199} 8200_ACEOF 8201if ac_fn_c_try_link "$LINENO"; then : 8202 ntp_lib_lineedit="$TRY_LIB" 8203fi 8204rm -f core conftest.err conftest.$ac_objext \ 8205 conftest$ac_exeext conftest.$ac_ext 8206 case "$ntp_lib_lineedit" in 8207 '') 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8209$as_echo "no" >&6; } 8210 ;; 8211 *) 8212 # Use readline() 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8214$as_echo "yes" >&6; } 8215 break 8216 esac 8217 case "$term_lib" in 8218 '') 8219 # do not try el_gets without a terminal library 8220 ;; 8221 *) 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5 8223$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; } 8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8225/* end confdefs.h. */ 8226 8227/* Override any GCC internal prototype to avoid an error. 8228 Use char because int might match the return type of a GCC 8229 builtin and then its argument prototype would still apply. */ 8230#ifdef __cplusplus 8231extern "C" 8232#endif 8233char el_gets (); 8234int 8235main () 8236{ 8237return el_gets (); 8238 ; 8239 return 0; 8240} 8241_ACEOF 8242if ac_fn_c_try_link "$LINENO"; then : 8243 ntp_lib_lineedit="$TRY_LIB" 8244fi 8245rm -f core conftest.err conftest.$ac_objext \ 8246 conftest$ac_exeext conftest.$ac_ext 8247 case "$ntp_lib_lineedit" in 8248 '') 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8250$as_echo "no" >&6; } 8251 ;; 8252 *) # Use el_gets() 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8254$as_echo "yes" >&6; } 8255 break 8256 ;; 8257 esac # $ntp_lib_lineedit 8258 esac # $term_lib 8259 done 8260 case "$ntp_lib_lineedit" in 8261 '') 8262 ;; 8263 *) 8264 break 8265 ;; 8266 esac 8267 done 8268 LIBS="$NTP_ORIG_LIBS" 8269 ;; 8270 esac # $use_lineeditlibs 8271 8272 case "$ntp_lib_lineedit" in 8273 '') 8274 ntp_lib_lineedit="no" 8275 ;; 8276 no) 8277 ;; 8278 *) 8279 EDITLINE_LIBS="$ntp_lib_lineedit" 8280 8281 ;; 8282 esac # $ntp_lib_lineedit 8283 8284 case "$ntp_lib_lineedit" in 8285 no) 8286 ;; 8287 *) 8288 for ac_header in readline.h readline/readline.h histedit.h 8289do : 8290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8291ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8292if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8293 cat >>confdefs.h <<_ACEOF 8294#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8295_ACEOF 8296 8297fi 8298 8299done 8300 8301 for ac_header in history.h readline/history.h 8302do : 8303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8304ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8305if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8306 cat >>confdefs.h <<_ACEOF 8307#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8308_ACEOF 8309 8310fi 8311 8312done 8313 8314 8315 case "$ac_cv_header_histedit_h" in 8316 yes) 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5 8318$as_echo_n "checking number of arguments to el_init()... " >&6; } 8319if ${ntp_cv_el_init_args+:} false; then : 8320 $as_echo_n "(cached) " >&6 8321else 8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8323/* end confdefs.h. */ 8324 8325 #include <stdio.h> 8326 #include <histedit.h> 8327 8328int 8329main () 8330{ 8331 8332 el_init("conftest", stdin, stdout, stderr); 8333 8334 8335 ; 8336 return 0; 8337} 8338_ACEOF 8339if ac_fn_c_try_compile "$LINENO"; then : 8340 ntp_cv_el_init_args=4 8341else 8342 ntp_cv_el_init_args=3 8343 8344fi 8345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8346 8347fi 8348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5 8349$as_echo "$ntp_cv_el_init_args" >&6; } 8350 8351cat >>confdefs.h <<_ACEOF 8352#define EL_INIT_ARGS $ntp_cv_el_init_args 8353_ACEOF 8354 8355 esac 8356 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 8358$as_echo_n "checking whether readline supports history... " >&6; } 8359 8360 ntp_lib_lineedit_history="no" 8361 ORIG_LIBS="$LIBS" 8362 LIBS="$ORIG_LIBS $ntp_lib_lineedit" 8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8364/* end confdefs.h. */ 8365 8366/* Override any GCC internal prototype to avoid an error. 8367 Use char because int might match the return type of a GCC 8368 builtin and then its argument prototype would still apply. */ 8369#ifdef __cplusplus 8370extern "C" 8371#endif 8372char add_history (); 8373int 8374main () 8375{ 8376return add_history (); 8377 ; 8378 return 0; 8379} 8380_ACEOF 8381if ac_fn_c_try_link "$LINENO"; then : 8382 ntp_lib_lineedit_history="yes" 8383fi 8384rm -f core conftest.err conftest.$ac_objext \ 8385 conftest$ac_exeext conftest.$ac_ext 8386 LIBS="$ORIG_LIBS" 8387 8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5 8389$as_echo "$ntp_lib_lineedit_history" >&6; } 8390 8391 case "$ntp_lib_lineedit_history" in 8392 yes) 8393 8394$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h 8395 8396 esac 8397 esac # $ntp_lib_lineedit 8398 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;} 8399 { ORIG_LIBS=; unset ORIG_LIBS;} 8400 { TRY_LIB=; unset TRY_LIB;} 8401 { use_lineeditlibs=; unset use_lineeditlibs;} 8402 8403 8404LIBM= 8405case "$host" in 8406 *-*-darwin*) 8407 ;; 8408 *) 8409 _libs=$LIBS 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5 8411$as_echo_n "checking for library containing cos... " >&6; } 8412if ${ac_cv_search_cos+:} false; then : 8413 $as_echo_n "(cached) " >&6 8414else 8415 ac_func_search_save_LIBS=$LIBS 8416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8417/* end confdefs.h. */ 8418 8419/* Override any GCC internal prototype to avoid an error. 8420 Use char because int might match the return type of a GCC 8421 builtin and then its argument prototype would still apply. */ 8422#ifdef __cplusplus 8423extern "C" 8424#endif 8425char cos (); 8426int 8427main () 8428{ 8429return cos (); 8430 ; 8431 return 0; 8432} 8433_ACEOF 8434for ac_lib in '' m; do 8435 if test -z "$ac_lib"; then 8436 ac_res="none required" 8437 else 8438 ac_res=-l$ac_lib 8439 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8440 fi 8441 if ac_fn_c_try_link "$LINENO"; then : 8442 ac_cv_search_cos=$ac_res 8443fi 8444rm -f core conftest.err conftest.$ac_objext \ 8445 conftest$ac_exeext 8446 if ${ac_cv_search_cos+:} false; then : 8447 break 8448fi 8449done 8450if ${ac_cv_search_cos+:} false; then : 8451 8452else 8453 ac_cv_search_cos=no 8454fi 8455rm conftest.$ac_ext 8456LIBS=$ac_func_search_save_LIBS 8457fi 8458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5 8459$as_echo "$ac_cv_search_cos" >&6; } 8460ac_res=$ac_cv_search_cos 8461if test "$ac_res" != no; then : 8462 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8463 LIBM="-lm" 8464fi 8465 8466 LIBS=$_libs 8467 ;; 8468esac 8469 8470{ _libs=; unset _libs;} 8471 8472 8473for ac_header in vfork.h 8474do : 8475 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 8476if test "x$ac_cv_header_vfork_h" = xyes; then : 8477 cat >>confdefs.h <<_ACEOF 8478#define HAVE_VFORK_H 1 8479_ACEOF 8480 8481fi 8482 8483done 8484 8485for ac_func in fork vfork 8486do : 8487 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8488ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8489if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8490 cat >>confdefs.h <<_ACEOF 8491#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8492_ACEOF 8493 8494fi 8495done 8496 8497if test "x$ac_cv_func_fork" = xyes; then 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 8499$as_echo_n "checking for working fork... " >&6; } 8500if ${ac_cv_func_fork_works+:} false; then : 8501 $as_echo_n "(cached) " >&6 8502else 8503 if test "$cross_compiling" = yes; then : 8504 ac_cv_func_fork_works=cross 8505else 8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8507/* end confdefs.h. */ 8508$ac_includes_default 8509int 8510main () 8511{ 8512 8513 /* By Ruediger Kuhlmann. */ 8514 return fork () < 0; 8515 8516 ; 8517 return 0; 8518} 8519_ACEOF 8520if ac_fn_c_try_run "$LINENO"; then : 8521 ac_cv_func_fork_works=yes 8522else 8523 ac_cv_func_fork_works=no 8524fi 8525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8526 conftest.$ac_objext conftest.beam conftest.$ac_ext 8527fi 8528 8529fi 8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 8531$as_echo "$ac_cv_func_fork_works" >&6; } 8532 8533else 8534 ac_cv_func_fork_works=$ac_cv_func_fork 8535fi 8536if test "x$ac_cv_func_fork_works" = xcross; then 8537 case $host in 8538 *-*-amigaos* | *-*-msdosdjgpp*) 8539 # Override, as these systems have only a dummy fork() stub 8540 ac_cv_func_fork_works=no 8541 ;; 8542 *) 8543 ac_cv_func_fork_works=yes 8544 ;; 8545 esac 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 8547$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 8548fi 8549ac_cv_func_vfork_works=$ac_cv_func_vfork 8550if test "x$ac_cv_func_vfork" = xyes; then 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 8552$as_echo_n "checking for working vfork... " >&6; } 8553if ${ac_cv_func_vfork_works+:} false; then : 8554 $as_echo_n "(cached) " >&6 8555else 8556 if test "$cross_compiling" = yes; then : 8557 ac_cv_func_vfork_works=cross 8558else 8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8560/* end confdefs.h. */ 8561/* Thanks to Paul Eggert for this test. */ 8562$ac_includes_default 8563#include <sys/wait.h> 8564#ifdef HAVE_VFORK_H 8565# include <vfork.h> 8566#endif 8567/* On some sparc systems, changes by the child to local and incoming 8568 argument registers are propagated back to the parent. The compiler 8569 is told about this with #include <vfork.h>, but some compilers 8570 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 8571 static variable whose address is put into a register that is 8572 clobbered by the vfork. */ 8573static void 8574#ifdef __cplusplus 8575sparc_address_test (int arg) 8576# else 8577sparc_address_test (arg) int arg; 8578#endif 8579{ 8580 static pid_t child; 8581 if (!child) { 8582 child = vfork (); 8583 if (child < 0) { 8584 perror ("vfork"); 8585 _exit(2); 8586 } 8587 if (!child) { 8588 arg = getpid(); 8589 write(-1, "", 0); 8590 _exit (arg); 8591 } 8592 } 8593} 8594 8595int 8596main () 8597{ 8598 pid_t parent = getpid (); 8599 pid_t child; 8600 8601 sparc_address_test (0); 8602 8603 child = vfork (); 8604 8605 if (child == 0) { 8606 /* Here is another test for sparc vfork register problems. This 8607 test uses lots of local variables, at least as many local 8608 variables as main has allocated so far including compiler 8609 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 8610 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 8611 reuse the register of parent for one of the local variables, 8612 since it will think that parent can't possibly be used any more 8613 in this routine. Assigning to the local variable will thus 8614 munge parent in the parent process. */ 8615 pid_t 8616 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 8617 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 8618 /* Convince the compiler that p..p7 are live; otherwise, it might 8619 use the same hardware register for all 8 local variables. */ 8620 if (p != p1 || p != p2 || p != p3 || p != p4 8621 || p != p5 || p != p6 || p != p7) 8622 _exit(1); 8623 8624 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 8625 from child file descriptors. If the child closes a descriptor 8626 before it execs or exits, this munges the parent's descriptor 8627 as well. Test for this by closing stdout in the child. */ 8628 _exit(close(fileno(stdout)) != 0); 8629 } else { 8630 int status; 8631 struct stat st; 8632 8633 while (wait(&status) != child) 8634 ; 8635 return ( 8636 /* Was there some problem with vforking? */ 8637 child < 0 8638 8639 /* Did the child fail? (This shouldn't happen.) */ 8640 || status 8641 8642 /* Did the vfork/compiler bug occur? */ 8643 || parent != getpid() 8644 8645 /* Did the file descriptor bug occur? */ 8646 || fstat(fileno(stdout), &st) != 0 8647 ); 8648 } 8649} 8650_ACEOF 8651if ac_fn_c_try_run "$LINENO"; then : 8652 ac_cv_func_vfork_works=yes 8653else 8654 ac_cv_func_vfork_works=no 8655fi 8656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8657 conftest.$ac_objext conftest.beam conftest.$ac_ext 8658fi 8659 8660fi 8661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 8662$as_echo "$ac_cv_func_vfork_works" >&6; } 8663 8664fi; 8665if test "x$ac_cv_func_fork_works" = xcross; then 8666 ac_cv_func_vfork_works=$ac_cv_func_vfork 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 8668$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 8669fi 8670 8671if test "x$ac_cv_func_vfork_works" = xyes; then 8672 8673$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 8674 8675else 8676 8677$as_echo "#define vfork fork" >>confdefs.h 8678 8679fi 8680if test "x$ac_cv_func_fork_works" = xyes; then 8681 8682$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 8683 8684fi 8685 8686# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8687# for constant arguments. Useless! 8688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 8689$as_echo_n "checking for working alloca.h... " >&6; } 8690if ${ac_cv_working_alloca_h+:} false; then : 8691 $as_echo_n "(cached) " >&6 8692else 8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8694/* end confdefs.h. */ 8695#include <alloca.h> 8696int 8697main () 8698{ 8699char *p = (char *) alloca (2 * sizeof (int)); 8700 if (p) return 0; 8701 ; 8702 return 0; 8703} 8704_ACEOF 8705if ac_fn_c_try_link "$LINENO"; then : 8706 ac_cv_working_alloca_h=yes 8707else 8708 ac_cv_working_alloca_h=no 8709fi 8710rm -f core conftest.err conftest.$ac_objext \ 8711 conftest$ac_exeext conftest.$ac_ext 8712fi 8713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 8714$as_echo "$ac_cv_working_alloca_h" >&6; } 8715if test $ac_cv_working_alloca_h = yes; then 8716 8717$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 8718 8719fi 8720 8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 8722$as_echo_n "checking for alloca... " >&6; } 8723if ${ac_cv_func_alloca_works+:} false; then : 8724 $as_echo_n "(cached) " >&6 8725else 8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8727/* end confdefs.h. */ 8728#ifdef __GNUC__ 8729# define alloca __builtin_alloca 8730#else 8731# ifdef _MSC_VER 8732# include <malloc.h> 8733# define alloca _alloca 8734# else 8735# ifdef HAVE_ALLOCA_H 8736# include <alloca.h> 8737# else 8738# ifdef _AIX 8739 #pragma alloca 8740# else 8741# ifndef alloca /* predefined by HP cc +Olibcalls */ 8742void *alloca (size_t); 8743# endif 8744# endif 8745# endif 8746# endif 8747#endif 8748 8749int 8750main () 8751{ 8752char *p = (char *) alloca (1); 8753 if (p) return 0; 8754 ; 8755 return 0; 8756} 8757_ACEOF 8758if ac_fn_c_try_link "$LINENO"; then : 8759 ac_cv_func_alloca_works=yes 8760else 8761 ac_cv_func_alloca_works=no 8762fi 8763rm -f core conftest.err conftest.$ac_objext \ 8764 conftest$ac_exeext conftest.$ac_ext 8765fi 8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 8767$as_echo "$ac_cv_func_alloca_works" >&6; } 8768 8769if test $ac_cv_func_alloca_works = yes; then 8770 8771$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 8772 8773else 8774 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 8775# that cause trouble. Some versions do not even contain alloca or 8776# contain a buggy version. If you still want to use their alloca, 8777# use ar to extract alloca.o from them instead of compiling alloca.c. 8778 8779ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 8780 8781$as_echo "#define C_ALLOCA 1" >>confdefs.h 8782 8783 8784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 8785$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 8786if ${ac_cv_os_cray+:} false; then : 8787 $as_echo_n "(cached) " >&6 8788else 8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8790/* end confdefs.h. */ 8791#if defined CRAY && ! defined CRAY2 8792webecray 8793#else 8794wenotbecray 8795#endif 8796 8797_ACEOF 8798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8799 $EGREP "webecray" >/dev/null 2>&1; then : 8800 ac_cv_os_cray=yes 8801else 8802 ac_cv_os_cray=no 8803fi 8804rm -f conftest* 8805 8806fi 8807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 8808$as_echo "$ac_cv_os_cray" >&6; } 8809if test $ac_cv_os_cray = yes; then 8810 for ac_func in _getb67 GETB67 getb67; do 8811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8812ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8813if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8814 8815cat >>confdefs.h <<_ACEOF 8816#define CRAY_STACKSEG_END $ac_func 8817_ACEOF 8818 8819 break 8820fi 8821 8822 done 8823fi 8824 8825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 8826$as_echo_n "checking stack direction for C alloca... " >&6; } 8827if ${ac_cv_c_stack_direction+:} false; then : 8828 $as_echo_n "(cached) " >&6 8829else 8830 if test "$cross_compiling" = yes; then : 8831 ac_cv_c_stack_direction=0 8832else 8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8834/* end confdefs.h. */ 8835$ac_includes_default 8836int 8837find_stack_direction () 8838{ 8839 static char *addr = 0; 8840 auto char dummy; 8841 if (addr == 0) 8842 { 8843 addr = &dummy; 8844 return find_stack_direction (); 8845 } 8846 else 8847 return (&dummy > addr) ? 1 : -1; 8848} 8849 8850int 8851main () 8852{ 8853 return find_stack_direction () < 0; 8854} 8855_ACEOF 8856if ac_fn_c_try_run "$LINENO"; then : 8857 ac_cv_c_stack_direction=1 8858else 8859 ac_cv_c_stack_direction=-1 8860fi 8861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8862 conftest.$ac_objext conftest.beam conftest.$ac_ext 8863fi 8864 8865fi 8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 8867$as_echo "$ac_cv_c_stack_direction" >&6; } 8868cat >>confdefs.h <<_ACEOF 8869#define STACK_DIRECTION $ac_cv_c_stack_direction 8870_ACEOF 8871 8872 8873fi 8874 8875ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 8876if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 8877 ac_have_decl=1 8878else 8879 ac_have_decl=0 8880fi 8881 8882cat >>confdefs.h <<_ACEOF 8883#define HAVE_DECL_STRERROR_R $ac_have_decl 8884_ACEOF 8885 8886for ac_func in strerror_r 8887do : 8888 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 8889if test "x$ac_cv_func_strerror_r" = xyes; then : 8890 cat >>confdefs.h <<_ACEOF 8891#define HAVE_STRERROR_R 1 8892_ACEOF 8893 8894fi 8895done 8896 8897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 8898$as_echo_n "checking whether strerror_r returns char *... " >&6; } 8899if ${ac_cv_func_strerror_r_char_p+:} false; then : 8900 $as_echo_n "(cached) " >&6 8901else 8902 8903 ac_cv_func_strerror_r_char_p=no 8904 if test $ac_cv_have_decl_strerror_r = yes; then 8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8906/* end confdefs.h. */ 8907$ac_includes_default 8908int 8909main () 8910{ 8911 8912 char buf[100]; 8913 char x = *strerror_r (0, buf, sizeof buf); 8914 char *p = strerror_r (0, buf, sizeof buf); 8915 return !p || x; 8916 8917 ; 8918 return 0; 8919} 8920_ACEOF 8921if ac_fn_c_try_compile "$LINENO"; then : 8922 ac_cv_func_strerror_r_char_p=yes 8923fi 8924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8925 else 8926 # strerror_r is not declared. Choose between 8927 # systems that have relatively inaccessible declarations for the 8928 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 8929 # former has a strerror_r that returns char*, while the latter 8930 # has a strerror_r that returns `int'. 8931 # This test should segfault on the DEC system. 8932 if test "$cross_compiling" = yes; then : 8933 : 8934else 8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8936/* end confdefs.h. */ 8937$ac_includes_default 8938 extern char *strerror_r (); 8939int 8940main () 8941{ 8942char buf[100]; 8943 char x = *strerror_r (0, buf, sizeof buf); 8944 return ! isalpha (x); 8945 ; 8946 return 0; 8947} 8948_ACEOF 8949if ac_fn_c_try_run "$LINENO"; then : 8950 ac_cv_func_strerror_r_char_p=yes 8951fi 8952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8953 conftest.$ac_objext conftest.beam conftest.$ac_ext 8954fi 8955 8956 fi 8957 8958fi 8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 8960$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 8961if test $ac_cv_func_strerror_r_char_p = yes; then 8962 8963$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 8964 8965fi 8966 8967 8968ac_busted_vpath_in_make=no 8969case "$build" in 8970 *-*-irix6.1*) # 64 bit only 8971 # busted vpath? 8972 ;; 8973 *-*-irix6*) # 6.2 (and later?) 8974 ac_busted_vpath_in_make=yes 8975 ;; 8976 *-*-solaris2.5.1) 8977 ac_busted_vpath_in_make=yes 8978 ;; 8979 *-*-unicosmp*) 8980 ac_busted_vpath_in_make=yes 8981 ;; 8982esac 8983 8984case "$ac_busted_vpath_in_make$srcdir" in 8985 yes.|no*) 8986 ;; 8987 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in 8988 '') 8989 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5 8990 esac 8991 ;; 8992esac 8993 8994case "$host" in 8995 *-*-aix4*) 8996 # Bug 2516: 8997 # Was *-*-aix[[4-9]]* 8998 # XXX only verified thru AIX6. But... 8999 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason 9000 # that this support would be in 5.3, removed in 6, and added back. 9001 # 9002 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub 9003 # (returning ENOSYS). I didn't check 4.2. If, in the future, 9004 # IBM pulls its thumbs out long enough to implement clock_settime, 9005 # this conditional will need to change. Maybe use AC_TRY_RUN 9006 # instead to try to set the time to itself and check errno. 9007 ;; 9008 *) 9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 9010$as_echo_n "checking for library containing clock_gettime... " >&6; } 9011if ${ac_cv_search_clock_gettime+:} false; then : 9012 $as_echo_n "(cached) " >&6 9013else 9014 ac_func_search_save_LIBS=$LIBS 9015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9016/* end confdefs.h. */ 9017 9018/* Override any GCC internal prototype to avoid an error. 9019 Use char because int might match the return type of a GCC 9020 builtin and then its argument prototype would still apply. */ 9021#ifdef __cplusplus 9022extern "C" 9023#endif 9024char clock_gettime (); 9025int 9026main () 9027{ 9028return clock_gettime (); 9029 ; 9030 return 0; 9031} 9032_ACEOF 9033for ac_lib in '' rt; do 9034 if test -z "$ac_lib"; then 9035 ac_res="none required" 9036 else 9037 ac_res=-l$ac_lib 9038 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9039 fi 9040 if ac_fn_c_try_link "$LINENO"; then : 9041 ac_cv_search_clock_gettime=$ac_res 9042fi 9043rm -f core conftest.err conftest.$ac_objext \ 9044 conftest$ac_exeext 9045 if ${ac_cv_search_clock_gettime+:} false; then : 9046 break 9047fi 9048done 9049if ${ac_cv_search_clock_gettime+:} false; then : 9050 9051else 9052 ac_cv_search_clock_gettime=no 9053fi 9054rm conftest.$ac_ext 9055LIBS=$ac_func_search_save_LIBS 9056fi 9057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 9058$as_echo "$ac_cv_search_clock_gettime" >&6; } 9059ac_res=$ac_cv_search_clock_gettime 9060if test "$ac_res" != no; then : 9061 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9062 case "$ac_cv_search_clock_gettime" in 9063 'none required') ;; 9064 no) ;; 9065 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;; 9066 esac 9067 9068fi 9069 9070 for ac_func in clock_getres clock_gettime clock_settime 9071do : 9072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9073ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9074if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9075 cat >>confdefs.h <<_ACEOF 9076#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9077_ACEOF 9078 9079fi 9080done 9081 9082 ;; 9083esac 9084 9085for ac_func in getclock stime timegm strlcpy strlcat 9086do : 9087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9088ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9089if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9090 cat >>confdefs.h <<_ACEOF 9091#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9092_ACEOF 9093 9094fi 9095done 9096 9097 9098# Bug 2713 9099LDADD_LIBUTIL= 9100 9101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5 9102$as_echo_n "checking for library containing snprintb... " >&6; } 9103if ${ac_cv_search_snprintb+:} false; then : 9104 $as_echo_n "(cached) " >&6 9105else 9106 ac_func_search_save_LIBS=$LIBS 9107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9108/* end confdefs.h. */ 9109 9110/* Override any GCC internal prototype to avoid an error. 9111 Use char because int might match the return type of a GCC 9112 builtin and then its argument prototype would still apply. */ 9113#ifdef __cplusplus 9114extern "C" 9115#endif 9116char snprintb (); 9117int 9118main () 9119{ 9120return snprintb (); 9121 ; 9122 return 0; 9123} 9124_ACEOF 9125for ac_lib in '' util; do 9126 if test -z "$ac_lib"; then 9127 ac_res="none required" 9128 else 9129 ac_res=-l$ac_lib 9130 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9131 fi 9132 if ac_fn_c_try_link "$LINENO"; then : 9133 ac_cv_search_snprintb=$ac_res 9134fi 9135rm -f core conftest.err conftest.$ac_objext \ 9136 conftest$ac_exeext 9137 if ${ac_cv_search_snprintb+:} false; then : 9138 break 9139fi 9140done 9141if ${ac_cv_search_snprintb+:} false; then : 9142 9143else 9144 ac_cv_search_snprintb=no 9145fi 9146rm conftest.$ac_ext 9147LIBS=$ac_func_search_save_LIBS 9148fi 9149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5 9150$as_echo "$ac_cv_search_snprintb" >&6; } 9151ac_res=$ac_cv_search_snprintb 9152if test "$ac_res" != no; then : 9153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9154 case "$ac_cv_search_snprintb" in 9155 'none required') ;; 9156 no) ;; 9157 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;; 9158 esac 9159 9160$as_echo "#define USE_SNPRINTB 1" >>confdefs.h 9161 9162fi 9163 9164 9165# 9166for ac_header in errno.h sys/socket.h sys/types.h time.h 9167do : 9168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9169ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9170if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9171 cat >>confdefs.h <<_ACEOF 9172#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9173_ACEOF 9174 9175fi 9176 9177done 9178 9179for ac_header in net/if.h 9180do : 9181 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 9182 #ifdef HAVE_SYS_SOCKET_H 9183 # include <sys/socket.h> 9184 #endif 9185 9186" 9187if test "x$ac_cv_header_net_if_h" = xyes; then : 9188 cat >>confdefs.h <<_ACEOF 9189#define HAVE_NET_IF_H 1 9190_ACEOF 9191 9192fi 9193 9194done 9195 9196case "$host" in 9197 *-hp-hpux*) 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5 9199$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; } 9200if ${ntp_cv_predecl_mpinfou+:} false; then : 9201 $as_echo_n "(cached) " >&6 9202else 9203 9204 np_cv_predecl_mpinfou=no 9205 case "$ac_cv_header_net_if_h" in 9206 no) 9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9208/* end confdefs.h. */ 9209 9210 typedef union mpinfou { 9211 struct pdk_mpinfo *pdkptr; 9212 struct mpinfo *pikptr; 9213 } mpinfou_t; 9214 #ifdef HAVE_SYS_SOCKET_H 9215 # include <sys/socket.h> 9216 #endif 9217 #include <net/if.h> 9218 9219int 9220main () 9221{ 9222 9223 9224 9225 ; 9226 return 0; 9227} 9228_ACEOF 9229if ac_fn_c_try_compile "$LINENO"; then : 9230 9231 ntp_cv_predecl_mpinfou=yes 9232 ac_cv_header_net_if_h=yes 9233 9234 9235fi 9236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9237 esac 9238 9239 9240fi 9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5 9242$as_echo "$ntp_cv_predecl_mpinfou" >&6; } 9243 case "$ntp_cv_predecl_mpinfou" in 9244 yes) 9245 cat >>confdefs.h <<_ACEOF 9246#ifndef MPINFOU_PREDECLARED 9247# define MPINFOU_PREDECLARED 9248typedef union mpinfou { 9249 struct pdk_mpinfo *pdkptr; 9250 struct mpinfo *pikptr; 9251} mpinfou_t; 9252#endif 9253_ACEOF 9254 9255 esac 9256esac 9257 9258case "$host" in 9259 *-linux*) 9260 for ac_header in linux/if_addr.h 9261do : 9262 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" " 9263 #ifdef HAVE_SYS_SOCKET_H 9264 # include <sys/socket.h> 9265 #endif 9266 9267" 9268if test "x$ac_cv_header_linux_if_addr_h" = xyes; then : 9269 cat >>confdefs.h <<_ACEOF 9270#define HAVE_LINUX_IF_ADDR_H 1 9271_ACEOF 9272 9273fi 9274 9275done 9276 9277esac 9278 9279for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h 9280do : 9281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9282ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9283if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9284 cat >>confdefs.h <<_ACEOF 9285#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9286_ACEOF 9287 9288fi 9289 9290done 9291 9292# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576 9293for ac_header in sys/sysctl.h 9294do : 9295 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 9296 #if defined HAVE_SYS_PARAM_H 9297 # include <sys/param.h> 9298 #endif 9299 9300" 9301if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 9302 cat >>confdefs.h <<_ACEOF 9303#define HAVE_SYS_SYSCTL_H 1 9304_ACEOF 9305 9306fi 9307 9308done 9309 9310for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h 9311do : 9312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9313ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9314if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9315 cat >>confdefs.h <<_ACEOF 9316#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9317_ACEOF 9318 9319fi 9320 9321done 9322 9323 9324for ac_header in resolv.h 9325do : 9326 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " 9327 #ifdef HAVE_SYS_TYPES_H 9328 # include <sys/types.h> 9329 #endif 9330 #ifdef HAVE_NETINET_IN_H 9331 # include <netinet/in.h> 9332 #endif 9333 #ifdef HAVE_ARPA_NAMESER_H 9334 # include <arpa/nameser.h> 9335 #endif 9336 9337" 9338if test "x$ac_cv_header_resolv_h" = xyes; then : 9339 cat >>confdefs.h <<_ACEOF 9340#define HAVE_RESOLV_H 1 9341_ACEOF 9342 9343fi 9344 9345done 9346 9347 9348for ac_header in net/if_var.h 9349do : 9350 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" " 9351 #if HAVE_SYS_TYPES_H 9352 # include <sys/types.h> 9353 #endif 9354 #ifdef HAVE_SYS_SOCKET_H 9355 # include <sys/socket.h> 9356 #endif 9357 #ifdef HAVE_NETINET_IN_H 9358 # include <netinet/in.h> 9359 #endif 9360 #ifdef HAVE_NET_IF_H 9361 # include <net/if.h> 9362 #endif 9363 9364" 9365if test "x$ac_cv_header_net_if_var_h" = xyes; then : 9366 cat >>confdefs.h <<_ACEOF 9367#define HAVE_NET_IF_VAR_H 1 9368_ACEOF 9369 9370fi 9371 9372done 9373 9374 9375for ac_header in netinet/ip.h netinet/in_var.h 9376do : 9377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9378ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 9379 #ifdef HAVE_SYS_TYPES_H 9380 # include <sys/types.h> 9381 #endif 9382 #ifdef HAVE_SYS_SOCKET_H 9383 # include <sys/socket.h> 9384 #endif 9385 #ifdef HAVE_NET_IF_H 9386 # include <net/if.h> 9387 #endif 9388 #ifdef HAVE_NETINET_IN_H 9389 # include <netinet/in.h> 9390 #endif 9391 #ifdef HAVE_NET_IF_VAR_H 9392 # include <net/if_var.h> 9393 #endif 9394 #ifdef HAVE_NETINET_IN_SYSTM_H 9395 # include <netinet/in_systm.h> 9396 #endif 9397 9398" 9399if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9400 cat >>confdefs.h <<_ACEOF 9401#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9402_ACEOF 9403 9404fi 9405 9406done 9407 9408 9409# HMS: Do we need to check for -lsocket before or after these tests? 9410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 9411$as_echo_n "checking for library containing inet_pton... " >&6; } 9412if ${ac_cv_search_inet_pton+:} false; then : 9413 $as_echo_n "(cached) " >&6 9414else 9415 ac_func_search_save_LIBS=$LIBS 9416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9417/* end confdefs.h. */ 9418 9419/* Override any GCC internal prototype to avoid an error. 9420 Use char because int might match the return type of a GCC 9421 builtin and then its argument prototype would still apply. */ 9422#ifdef __cplusplus 9423extern "C" 9424#endif 9425char inet_pton (); 9426int 9427main () 9428{ 9429return inet_pton (); 9430 ; 9431 return 0; 9432} 9433_ACEOF 9434for ac_lib in '' nsl; do 9435 if test -z "$ac_lib"; then 9436 ac_res="none required" 9437 else 9438 ac_res=-l$ac_lib 9439 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9440 fi 9441 if ac_fn_c_try_link "$LINENO"; then : 9442 ac_cv_search_inet_pton=$ac_res 9443fi 9444rm -f core conftest.err conftest.$ac_objext \ 9445 conftest$ac_exeext 9446 if ${ac_cv_search_inet_pton+:} false; then : 9447 break 9448fi 9449done 9450if ${ac_cv_search_inet_pton+:} false; then : 9451 9452else 9453 ac_cv_search_inet_pton=no 9454fi 9455rm conftest.$ac_ext 9456LIBS=$ac_func_search_save_LIBS 9457fi 9458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 9459$as_echo "$ac_cv_search_inet_pton" >&6; } 9460ac_res=$ac_cv_search_inet_pton 9461if test "$ac_res" != no; then : 9462 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9463 case "$ac_cv_search_inet_pton" in 9464 'none required') ;; 9465 no) ;; 9466 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;; 9467 esac 9468 9469fi 9470 9471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 9472$as_echo_n "checking for library containing inet_ntop... " >&6; } 9473if ${ac_cv_search_inet_ntop+:} false; then : 9474 $as_echo_n "(cached) " >&6 9475else 9476 ac_func_search_save_LIBS=$LIBS 9477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9478/* end confdefs.h. */ 9479 9480/* Override any GCC internal prototype to avoid an error. 9481 Use char because int might match the return type of a GCC 9482 builtin and then its argument prototype would still apply. */ 9483#ifdef __cplusplus 9484extern "C" 9485#endif 9486char inet_ntop (); 9487int 9488main () 9489{ 9490return inet_ntop (); 9491 ; 9492 return 0; 9493} 9494_ACEOF 9495for ac_lib in '' resolv; do 9496 if test -z "$ac_lib"; then 9497 ac_res="none required" 9498 else 9499 ac_res=-l$ac_lib 9500 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS" 9501 fi 9502 if ac_fn_c_try_link "$LINENO"; then : 9503 ac_cv_search_inet_ntop=$ac_res 9504fi 9505rm -f core conftest.err conftest.$ac_objext \ 9506 conftest$ac_exeext 9507 if ${ac_cv_search_inet_ntop+:} false; then : 9508 break 9509fi 9510done 9511if ${ac_cv_search_inet_ntop+:} false; then : 9512 9513else 9514 ac_cv_search_inet_ntop=no 9515fi 9516rm conftest.$ac_ext 9517LIBS=$ac_func_search_save_LIBS 9518fi 9519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 9520$as_echo "$ac_cv_search_inet_ntop" >&6; } 9521ac_res=$ac_cv_search_inet_ntop 9522if test "$ac_res" != no; then : 9523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9524 case "$ac_cv_search_inet_ntop" in 9525 'none required') ;; 9526 no) ;; 9527 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;; 9528 esac 9529 9530fi 9531 9532 9533# [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to 9534# avoid keying on the OS name: If we find socket functions in 9535# libsocket, next try for them in libxnet without libsocket, if found, 9536# list both. If we simply tested libxnet first, we would find the 9537# functions there and never add libsocket. See also [Bug 660] 9538# http://bugs.ntp.org/show_bug.cgi?id=660#c9 9539saved_LIBS=$LIBS 9540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 9541$as_echo_n "checking for library containing setsockopt... " >&6; } 9542if ${ac_cv_search_setsockopt+:} false; then : 9543 $as_echo_n "(cached) " >&6 9544else 9545 ac_func_search_save_LIBS=$LIBS 9546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9547/* end confdefs.h. */ 9548 9549/* Override any GCC internal prototype to avoid an error. 9550 Use char because int might match the return type of a GCC 9551 builtin and then its argument prototype would still apply. */ 9552#ifdef __cplusplus 9553extern "C" 9554#endif 9555char setsockopt (); 9556int 9557main () 9558{ 9559return setsockopt (); 9560 ; 9561 return 0; 9562} 9563_ACEOF 9564for ac_lib in '' socket; do 9565 if test -z "$ac_lib"; then 9566 ac_res="none required" 9567 else 9568 ac_res=-l$ac_lib 9569 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9570 fi 9571 if ac_fn_c_try_link "$LINENO"; then : 9572 ac_cv_search_setsockopt=$ac_res 9573fi 9574rm -f core conftest.err conftest.$ac_objext \ 9575 conftest$ac_exeext 9576 if ${ac_cv_search_setsockopt+:} false; then : 9577 break 9578fi 9579done 9580if ${ac_cv_search_setsockopt+:} false; then : 9581 9582else 9583 ac_cv_search_setsockopt=no 9584fi 9585rm conftest.$ac_ext 9586LIBS=$ac_func_search_save_LIBS 9587fi 9588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 9589$as_echo "$ac_cv_search_setsockopt" >&6; } 9590ac_res=$ac_cv_search_setsockopt 9591if test "$ac_res" != no; then : 9592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9593 case "$ac_cv_search_setsockopt" in 9594 'none required') ;; 9595 no) ;; 9596 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;; 9597 esac 9598 9599fi 9600 9601case "$ac_cv_search_setsockopt" in 9602 -lsocket) 9603 LIBS="$saved_LIBS" 9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5 9605$as_echo_n "checking for library containing getsockopt... " >&6; } 9606if ${ac_cv_search_getsockopt+:} false; then : 9607 $as_echo_n "(cached) " >&6 9608else 9609 ac_func_search_save_LIBS=$LIBS 9610cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9611/* end confdefs.h. */ 9612 9613/* Override any GCC internal prototype to avoid an error. 9614 Use char because int might match the return type of a GCC 9615 builtin and then its argument prototype would still apply. */ 9616#ifdef __cplusplus 9617extern "C" 9618#endif 9619char getsockopt (); 9620int 9621main () 9622{ 9623return getsockopt (); 9624 ; 9625 return 0; 9626} 9627_ACEOF 9628for ac_lib in '' xnet; do 9629 if test -z "$ac_lib"; then 9630 ac_res="none required" 9631 else 9632 ac_res=-l$ac_lib 9633 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9634 fi 9635 if ac_fn_c_try_link "$LINENO"; then : 9636 ac_cv_search_getsockopt=$ac_res 9637fi 9638rm -f core conftest.err conftest.$ac_objext \ 9639 conftest$ac_exeext 9640 if ${ac_cv_search_getsockopt+:} false; then : 9641 break 9642fi 9643done 9644if ${ac_cv_search_getsockopt+:} false; then : 9645 9646else 9647 ac_cv_search_getsockopt=no 9648fi 9649rm conftest.$ac_ext 9650LIBS=$ac_func_search_save_LIBS 9651fi 9652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5 9653$as_echo "$ac_cv_search_getsockopt" >&6; } 9654ac_res=$ac_cv_search_getsockopt 9655if test "$ac_res" != no; then : 9656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9657 case "$ac_cv_search_getsockopt" in 9658 'none required') ;; 9659 no) ;; 9660 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;; 9661 esac 9662 9663fi 9664 9665 # XXX Possible trouble here - reading the comments above and looking at the 9666 # code below I wonder if we'll add -lxnet when we don't need it. 9667 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's 9668 # there when it is not needed? 9669 case "$ac_cv_search_getsockopt" in 9670 -lxnet) 9671 LIBS="-lxnet -lsocket $saved_LIBS" 9672 ;; 9673 *) LIBS="-lsocket $saved_LIBS" 9674 ;; 9675 esac 9676 ;; 9677esac 9678{ saved_LIBS=; unset saved_LIBS;} 9679 9680# Bug 2427 - look for recvmsg here. 9681for ac_func in recvmsg 9682do : 9683 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 9684if test "x$ac_cv_func_recvmsg" = xyes; then : 9685 cat >>confdefs.h <<_ACEOF 9686#define HAVE_RECVMSG 1 9687_ACEOF 9688 9689fi 9690done 9691 9692 9693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 9694$as_echo_n "checking for inline... " >&6; } 9695if ${ac_cv_c_inline+:} false; then : 9696 $as_echo_n "(cached) " >&6 9697else 9698 ac_cv_c_inline=no 9699for ac_kw in inline __inline__ __inline; do 9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9701/* end confdefs.h. */ 9702#ifndef __cplusplus 9703typedef int foo_t; 9704static $ac_kw foo_t static_foo () {return 0; } 9705$ac_kw foo_t foo () {return 0; } 9706#endif 9707 9708_ACEOF 9709if ac_fn_c_try_compile "$LINENO"; then : 9710 ac_cv_c_inline=$ac_kw 9711fi 9712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9713 test "$ac_cv_c_inline" != no && break 9714done 9715 9716fi 9717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 9718$as_echo "$ac_cv_c_inline" >&6; } 9719 9720case $ac_cv_c_inline in 9721 inline | yes) ;; 9722 *) 9723 case $ac_cv_c_inline in 9724 no) ac_val=;; 9725 *) ac_val=$ac_cv_c_inline;; 9726 esac 9727 cat >>confdefs.h <<_ACEOF 9728#ifndef __cplusplus 9729#define inline $ac_val 9730#endif 9731_ACEOF 9732 ;; 9733esac 9734 9735 9736case "$ac_cv_c_inline" in 9737 '') 9738 ;; 9739 *) 9740 9741$as_echo "#define HAVE_INLINE 1" >>confdefs.h 9742 9743 9744esac 9745 9746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 9747$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 9748if ${ac_cv_header_time+:} false; then : 9749 $as_echo_n "(cached) " >&6 9750else 9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9752/* end confdefs.h. */ 9753#include <sys/types.h> 9754#include <sys/time.h> 9755#include <time.h> 9756 9757int 9758main () 9759{ 9760if ((struct tm *) 0) 9761return 0; 9762 ; 9763 return 0; 9764} 9765_ACEOF 9766if ac_fn_c_try_compile "$LINENO"; then : 9767 ac_cv_header_time=yes 9768else 9769 ac_cv_header_time=no 9770fi 9771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9772fi 9773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 9774$as_echo "$ac_cv_header_time" >&6; } 9775if test $ac_cv_header_time = yes; then 9776 9777$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 9778 9779fi 9780 9781# The cast to long int works around a bug in the HP C Compiler 9782# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9783# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9784# This bug is HP SR number 8606223364. 9785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 9786$as_echo_n "checking size of time_t... " >&6; } 9787if ${ac_cv_sizeof_time_t+:} false; then : 9788 $as_echo_n "(cached) " >&6 9789else 9790 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 9791 9792else 9793 if test "$ac_cv_type_time_t" = yes; then 9794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9796as_fn_error 77 "cannot compute sizeof (time_t) 9797See \`config.log' for more details" "$LINENO" 5; } 9798 else 9799 ac_cv_sizeof_time_t=0 9800 fi 9801fi 9802 9803fi 9804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 9805$as_echo "$ac_cv_sizeof_time_t" >&6; } 9806 9807 9808 9809cat >>confdefs.h <<_ACEOF 9810#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 9811_ACEOF 9812 9813 9814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 9815$as_echo_n "checking whether char is unsigned... " >&6; } 9816if ${ac_cv_c_char_unsigned+:} false; then : 9817 $as_echo_n "(cached) " >&6 9818else 9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9820/* end confdefs.h. */ 9821$ac_includes_default 9822int 9823main () 9824{ 9825static int test_array [1 - 2 * !(((char) -1) < 0)]; 9826test_array [0] = 0 9827 9828 ; 9829 return 0; 9830} 9831_ACEOF 9832if ac_fn_c_try_compile "$LINENO"; then : 9833 ac_cv_c_char_unsigned=no 9834else 9835 ac_cv_c_char_unsigned=yes 9836fi 9837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9838fi 9839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 9840$as_echo "$ac_cv_c_char_unsigned" >&6; } 9841if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 9842 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 9843 9844fi 9845 # The cast to long int works around a bug in the HP C Compiler 9846# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9847# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9848# This bug is HP SR number 8606223364. 9849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5 9850$as_echo_n "checking size of signed char... " >&6; } 9851if ${ac_cv_sizeof_signed_char+:} false; then : 9852 $as_echo_n "(cached) " >&6 9853else 9854 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then : 9855 9856else 9857 if test "$ac_cv_type_signed_char" = yes; then 9858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9860as_fn_error 77 "cannot compute sizeof (signed char) 9861See \`config.log' for more details" "$LINENO" 5; } 9862 else 9863 ac_cv_sizeof_signed_char=0 9864 fi 9865fi 9866 9867fi 9868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5 9869$as_echo "$ac_cv_sizeof_signed_char" >&6; } 9870 9871 9872 9873cat >>confdefs.h <<_ACEOF 9874#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 9875_ACEOF 9876 9877 9878ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default" 9879if test "x$ac_cv_type_s_char" = xyes; then : 9880 9881cat >>confdefs.h <<_ACEOF 9882#define HAVE_S_CHAR 1 9883_ACEOF 9884 9885 9886fi 9887ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 9888if test "x$ac_cv_type_long_long" = xyes; then : 9889 9890cat >>confdefs.h <<_ACEOF 9891#define HAVE_LONG_LONG 1 9892_ACEOF 9893 9894 9895fi 9896 9897# The cast to long int works around a bug in the HP C Compiler 9898# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9899# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9900# This bug is HP SR number 8606223364. 9901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 9902$as_echo_n "checking size of short... " >&6; } 9903if ${ac_cv_sizeof_short+:} false; then : 9904 $as_echo_n "(cached) " >&6 9905else 9906 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 9907 9908else 9909 if test "$ac_cv_type_short" = yes; then 9910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9912as_fn_error 77 "cannot compute sizeof (short) 9913See \`config.log' for more details" "$LINENO" 5; } 9914 else 9915 ac_cv_sizeof_short=0 9916 fi 9917fi 9918 9919fi 9920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 9921$as_echo "$ac_cv_sizeof_short" >&6; } 9922 9923 9924 9925cat >>confdefs.h <<_ACEOF 9926#define SIZEOF_SHORT $ac_cv_sizeof_short 9927_ACEOF 9928 9929 9930# The cast to long int works around a bug in the HP C Compiler 9931# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9932# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9933# This bug is HP SR number 8606223364. 9934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 9935$as_echo_n "checking size of int... " >&6; } 9936if ${ac_cv_sizeof_int+:} false; then : 9937 $as_echo_n "(cached) " >&6 9938else 9939 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 9940 9941else 9942 if test "$ac_cv_type_int" = yes; then 9943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9945as_fn_error 77 "cannot compute sizeof (int) 9946See \`config.log' for more details" "$LINENO" 5; } 9947 else 9948 ac_cv_sizeof_int=0 9949 fi 9950fi 9951 9952fi 9953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 9954$as_echo "$ac_cv_sizeof_int" >&6; } 9955 9956 9957 9958cat >>confdefs.h <<_ACEOF 9959#define SIZEOF_INT $ac_cv_sizeof_int 9960_ACEOF 9961 9962 9963# The cast to long int works around a bug in the HP C Compiler 9964# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9965# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9966# This bug is HP SR number 8606223364. 9967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 9968$as_echo_n "checking size of long... " >&6; } 9969if ${ac_cv_sizeof_long+:} false; then : 9970 $as_echo_n "(cached) " >&6 9971else 9972 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 9973 9974else 9975 if test "$ac_cv_type_long" = yes; then 9976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9978as_fn_error 77 "cannot compute sizeof (long) 9979See \`config.log' for more details" "$LINENO" 5; } 9980 else 9981 ac_cv_sizeof_long=0 9982 fi 9983fi 9984 9985fi 9986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 9987$as_echo "$ac_cv_sizeof_long" >&6; } 9988 9989 9990 9991cat >>confdefs.h <<_ACEOF 9992#define SIZEOF_LONG $ac_cv_sizeof_long 9993_ACEOF 9994 9995 9996 9997case "$ac_cv_type_long_long" in 9998 no) 9999 ;; 10000 *) 10001 # The cast to long int works around a bug in the HP C Compiler 10002# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10003# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10004# This bug is HP SR number 8606223364. 10005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 10006$as_echo_n "checking size of long long... " >&6; } 10007if ${ac_cv_sizeof_long_long+:} false; then : 10008 $as_echo_n "(cached) " >&6 10009else 10010 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 10011 10012else 10013 if test "$ac_cv_type_long_long" = yes; then 10014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10016as_fn_error 77 "cannot compute sizeof (long long) 10017See \`config.log' for more details" "$LINENO" 5; } 10018 else 10019 ac_cv_sizeof_long_long=0 10020 fi 10021fi 10022 10023fi 10024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 10025$as_echo "$ac_cv_sizeof_long_long" >&6; } 10026 10027 10028 10029cat >>confdefs.h <<_ACEOF 10030#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 10031_ACEOF 10032 10033 10034 ;; 10035esac 10036 10037case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in 10038 *yes) 10039 # We have a typedef for s_char. Might as well believe it... 10040 ;; 10041 no0no) 10042 # We have signed chars, can't say 'signed char', no s_char typedef. 10043 10044$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 10045 10046 ;; 10047 no1no) 10048 # We have signed chars, can say 'signed char', no s_char typedef. 10049 10050$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 10051 10052 ;; 10053 yes0no) 10054 # We have unsigned chars, can't say 'signed char', no s_char typedef. 10055 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5 10056 ;; 10057 yes1no) 10058 # We have unsigned chars, can say 'signed char', no s_char typedef. 10059 10060$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 10061 10062 ;; 10063esac 10064 10065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 10066$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 10067if ${ac_cv_type_uid_t+:} false; then : 10068 $as_echo_n "(cached) " >&6 10069else 10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10071/* end confdefs.h. */ 10072#include <sys/types.h> 10073 10074_ACEOF 10075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10076 $EGREP "uid_t" >/dev/null 2>&1; then : 10077 ac_cv_type_uid_t=yes 10078else 10079 ac_cv_type_uid_t=no 10080fi 10081rm -f conftest* 10082 10083fi 10084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 10085$as_echo "$ac_cv_type_uid_t" >&6; } 10086if test $ac_cv_type_uid_t = no; then 10087 10088$as_echo "#define uid_t int" >>confdefs.h 10089 10090 10091$as_echo "#define gid_t int" >>confdefs.h 10092 10093fi 10094 10095 10096 10097 10098 10099 10100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5 10101$as_echo_n "checking if we're including debugging code... " >&6; } 10102# Check whether --enable-debugging was given. 10103if test "${enable_debugging+set}" = set; then : 10104 enableval=$enable_debugging; ntp_ok=$enableval 10105else 10106 ntp_ok=yes 10107 10108fi 10109 10110case "$ntp_ok" in 10111 yes) 10112 10113$as_echo "#define DEBUG 1" >>confdefs.h 10114 10115esac 10116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 10117$as_echo "$ntp_ok" >&6; } 10118 10119 10120 10121# check if we can compile with pthreads 10122for ac_header in semaphore.h 10123do : 10124 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" 10125if test "x$ac_cv_header_semaphore_h" = xyes; then : 10126 cat >>confdefs.h <<_ACEOF 10127#define HAVE_SEMAPHORE_H 1 10128_ACEOF 10129 10130fi 10131 10132done 10133 10134for ac_func in socketpair 10135do : 10136 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" 10137if test "x$ac_cv_func_socketpair" = xyes; then : 10138 cat >>confdefs.h <<_ACEOF 10139#define HAVE_SOCKETPAIR 1 10140_ACEOF 10141 10142fi 10143done 10144 10145# Check whether --enable-thread-support was given. 10146if test "${enable_thread_support+set}" = set; then : 10147 enableval=$enable_thread_support; 10148else 10149 enable_thread_support=yes 10150 10151fi 10152 10153have_pthreads=no 10154case "$enable_thread_support" in 10155 yes) 10156 ol_found_pthreads=no 10157 10158 10159 10160ac_ext=c 10161ac_cpp='$CPP $CPPFLAGS' 10162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10164ac_compiler_gnu=$ac_cv_c_compiler_gnu 10165 10166# OpenLDAP --with-threads 10167 10168# Check whether --with-threads was given. 10169if test "${with_threads+set}" = set; then : 10170 withval=$with_threads; 10171 ol_arg=invalid 10172 for ol_val in auto nt posix mach pth lwp yes no manual ; do 10173 if test "$withval" = "$ol_val" ; then 10174 ol_arg="$ol_val" 10175 fi 10176 done 10177 if test "$ol_arg" = "invalid" ; then 10178 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5 10179 fi 10180 ol_with_threads="$ol_arg" 10181 10182else 10183 ol_with_threads="auto" 10184fi 10185# end --with-threads 10186 10187 10188case "$ol_with_threads$host" in 10189 auto*-*-solaris2.[0-6]) 10190 ol_with_threads=no 10191 ;; 10192esac 10193 10194 10195ol_aix_threads=no 10196case "$host" in 10197*-*-aix*) if test -z "$CC" ; then 10198 case "$ol_with_threads" in 10199 auto | yes | posix) ol_aix_threads=yes ;; 10200 esac 10201 fi 10202;; 10203esac 10204 10205if test $ol_aix_threads = yes ; then 10206 if test -z "${CC}" ; then 10207 for ac_prog in cc_r xlc_r cc 10208do 10209 # Extract the first word of "$ac_prog", so it can be a program name with args. 10210set dummy $ac_prog; ac_word=$2 10211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10212$as_echo_n "checking for $ac_word... " >&6; } 10213if ${ac_cv_prog_CC+:} false; then : 10214 $as_echo_n "(cached) " >&6 10215else 10216 if test -n "$CC"; then 10217 ac_cv_prog_CC="$CC" # Let the user override the test. 10218else 10219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10220for as_dir in $PATH 10221do 10222 IFS=$as_save_IFS 10223 test -z "$as_dir" && as_dir=. 10224 for ac_exec_ext in '' $ac_executable_extensions; do 10225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10226 ac_cv_prog_CC="$ac_prog" 10227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10228 break 2 10229 fi 10230done 10231 done 10232IFS=$as_save_IFS 10233 10234fi 10235fi 10236CC=$ac_cv_prog_CC 10237if test -n "$CC"; then 10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10239$as_echo "$CC" >&6; } 10240else 10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10242$as_echo "no" >&6; } 10243fi 10244 10245 10246 test -n "$CC" && break 10247done 10248 10249 10250 if test "$CC" = cc ; then 10251 if test $ol_with_threads != auto ; then 10252 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5 10253 else 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5 10255$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;} 10256 fi 10257 ol_with_threads=no 10258 fi 10259 fi 10260 10261 case ${CC} in cc_r | xlc_r) 10262 ol_with_threads=posix 10263 ol_cv_pthread_create=yes 10264 ;; 10265 esac 10266fi 10267 10268ol_link_threads=no 10269# OpenLDAP --with-yielding_select 10270 10271# Check whether --with-yielding_select was given. 10272if test "${with_yielding_select+set}" = set; then : 10273 withval=$with_yielding_select; 10274 ol_arg=invalid 10275 for ol_val in auto yes no manual ; do 10276 if test "$withval" = "$ol_val" ; then 10277 ol_arg="$ol_val" 10278 fi 10279 done 10280 if test "$ol_arg" = "invalid" ; then 10281 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5 10282 fi 10283 ol_with_yielding_select="$ol_arg" 10284 10285else 10286 ol_with_yielding_select="auto" 10287fi 10288# end --with-yielding_select 10289 10290 10291case $ol_with_threads in auto | yes | nt) 10292 10293 10294 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread" 10295if test "x$ac_cv_func__beginthread" = xyes; then : 10296 10297fi 10298 10299 10300 if test $ac_cv_func__beginthread = yes ; then 10301 10302$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h 10303 10304 ol_cv_nt_threads=yes 10305 fi 10306 10307 10308 if test "$ol_cv_nt_threads" = yes ; then 10309 ol_link_threads=nt 10310 ol_with_threads=found 10311 ol_with_yielding_select=yes 10312 10313 10314$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h 10315 10316 10317$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h 10318 10319 fi 10320 10321 if test $ol_with_threads = nt ; then 10322 as_fn_error $? "could not locate NT Threads" "$LINENO" 5 10323 fi 10324 ;; 10325esac 10326 10327case $ol_with_threads in auto | yes | posix) 10328 10329 for ac_header in pthread.h 10330do : 10331 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 10332if test "x$ac_cv_header_pthread_h" = xyes; then : 10333 cat >>confdefs.h <<_ACEOF 10334#define HAVE_PTHREAD_H 1 10335_ACEOF 10336 10337fi 10338 10339done 10340 10341 10342 if test $ac_cv_header_pthread_h = yes ; then 10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5 10344$as_echo_n "checking POSIX thread version... " >&6; } 10345if ${ol_cv_pthread_version+:} false; then : 10346 $as_echo_n "(cached) " >&6 10347else 10348 10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10350/* end confdefs.h. */ 10351 10352# include <pthread.h> 10353 10354int 10355main () 10356{ 10357 10358 int i = PTHREAD_CREATE_JOINABLE; 10359 10360 ; 10361 return 0; 10362} 10363_ACEOF 10364if ac_fn_c_try_compile "$LINENO"; then : 10365 10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10367/* end confdefs.h. */ 10368#include <pthread.h> 10369 10370_ACEOF 10371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10372 $EGREP "pthread_detach" >/dev/null 2>&1; then : 10373 ol_cv_pthread_version=10 10374else 10375 ol_cv_pthread_version=8 10376fi 10377rm -f conftest* 10378 10379else 10380 10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10382/* end confdefs.h. */ 10383 10384# include <pthread.h> 10385# ifdef PTHREAD_CREATE_UNDETACHED 10386 draft7 10387# endif 10388 10389_ACEOF 10390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10391 $EGREP "draft7" >/dev/null 2>&1; then : 10392 ol_cv_pthread_version=7 10393else 10394 10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10396/* end confdefs.h. */ 10397#include <pthread.h> 10398 10399_ACEOF 10400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10401 $EGREP "pthread_attr_init" >/dev/null 2>&1; then : 10402 ol_cv_pthread_version=6 10403else 10404 10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10406/* end confdefs.h. */ 10407 10408# include <pthread.h> 10409#ifdef PTHREAD_MUTEX_INITIALIZER 10410 draft5 10411#endif 10412 10413_ACEOF 10414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10415 $EGREP "draft5" >/dev/null 2>&1; then : 10416 ol_cv_pthread_version=5 10417else 10418 ol_cv_pthread_version=4 10419fi 10420rm -f conftest* 10421 10422fi 10423rm -f conftest* 10424 10425fi 10426rm -f conftest* 10427 10428fi 10429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10430 10431fi 10432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5 10433$as_echo "$ol_cv_pthread_version" >&6; } 10434 10435 10436 if test $ol_cv_pthread_version != 0 ; then 10437 10438cat >>confdefs.h <<_ACEOF 10439#define HAVE_PTHREADS $ol_cv_pthread_version 10440_ACEOF 10441 10442 else 10443 as_fn_error $? "unknown pthread version" "$LINENO" 5 10444 fi 10445 10446 # consider threads found 10447 ol_with_threads=found 10448 10449 10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 10451$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 10452if ${ol_cv_header_linux_threads+:} false; then : 10453 $as_echo_n "(cached) " >&6 10454else 10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10456/* end confdefs.h. */ 10457#include <pthread.h> 10458_ACEOF 10459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10460 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 10461 ol_cv_header_linux_threads=yes 10462else 10463 ol_cv_header_linux_threads=no 10464fi 10465rm -f conftest* 10466 10467 10468fi 10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 10470$as_echo "$ol_cv_header_linux_threads" >&6; } 10471 if test $ol_cv_header_linux_threads = yes; then 10472 10473$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 10474 10475 fi 10476 10477 10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5 10479$as_echo_n "checking for GNU Pth pthread.h... " >&6; } 10480if ${ol_cv_header_gnu_pth_pthread_h+:} false; then : 10481 $as_echo_n "(cached) " >&6 10482else 10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10484/* end confdefs.h. */ 10485#include <pthread.h> 10486#ifdef _POSIX_THREAD_IS_GNU_PTH 10487 __gnu_pth__; 10488#endif 10489 10490_ACEOF 10491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10492 $EGREP "__gnu_pth__" >/dev/null 2>&1; then : 10493 ol_cv_header_gnu_pth_pthread_h=yes 10494else 10495 ol_cv_header_gnu_pth_pthread_h=no 10496fi 10497rm -f conftest* 10498 10499 10500fi 10501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5 10502$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; } 10503 10504 10505 if test $ol_cv_header_gnu_pth_pthread_h = no ; then 10506 for ac_header in sched.h 10507do : 10508 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 10509if test "x$ac_cv_header_sched_h" = xyes; then : 10510 cat >>confdefs.h <<_ACEOF 10511#define HAVE_SCHED_H 1 10512_ACEOF 10513 10514fi 10515 10516done 10517 10518 fi 10519 10520 10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5 10522$as_echo_n "checking for pthread_create in default libraries... " >&6; } 10523if ${ol_cv_pthread_create+:} false; then : 10524 $as_echo_n "(cached) " >&6 10525else 10526 10527 if test "$cross_compiling" = yes; then : 10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10529/* end confdefs.h. */ 10530 10531/* pthread test headers */ 10532#include <pthread.h> 10533#if HAVE_PTHREADS < 7 10534#include <errno.h> 10535#endif 10536#ifndef NULL 10537#define NULL (void*)0 10538#endif 10539 10540static void *task(p) 10541 void *p; 10542{ 10543 return (void *) (p == NULL); 10544} 10545 10546int 10547main () 10548{ 10549 10550 /* pthread test function */ 10551#ifndef PTHREAD_CREATE_DETACHED 10552#define PTHREAD_CREATE_DETACHED 1 10553#endif 10554 pthread_t t; 10555 int status; 10556 int detach = PTHREAD_CREATE_DETACHED; 10557 10558#if HAVE_PTHREADS > 4 10559 /* Final pthreads */ 10560 pthread_attr_t attr; 10561 10562 status = pthread_attr_init(&attr); 10563 if( status ) return status; 10564 10565#if HAVE_PTHREADS < 7 10566 status = pthread_attr_setdetachstate(&attr, &detach); 10567 if( status < 0 ) status = errno; 10568#else 10569 status = pthread_attr_setdetachstate(&attr, detach); 10570#endif 10571 if( status ) return status; 10572 status = pthread_create( &t, &attr, task, NULL ); 10573#if HAVE_PTHREADS < 7 10574 if( status < 0 ) status = errno; 10575#endif 10576 if( status ) return status; 10577#else 10578 /* Draft 4 pthreads */ 10579 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10580 if( status ) return errno; 10581 10582 /* give thread a chance to complete */ 10583 /* it should remain joinable and hence detachable */ 10584 sleep( 1 ); 10585 10586 status = pthread_detach( &t ); 10587 if( status ) return errno; 10588#endif 10589 10590#ifdef HAVE_LINUX_THREADS 10591 pthread_kill_other_threads_np(); 10592#endif 10593 10594 return 0; 10595 10596 ; 10597 return 0; 10598} 10599_ACEOF 10600if ac_fn_c_try_link "$LINENO"; then : 10601 ol_cv_pthread_create=yes 10602else 10603 ol_cv_pthread_create=no 10604fi 10605rm -f core conftest.err conftest.$ac_objext \ 10606 conftest$ac_exeext conftest.$ac_ext 10607else 10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10609/* end confdefs.h. */ 10610 10611 10612/* pthread test headers */ 10613#include <pthread.h> 10614#if HAVE_PTHREADS < 7 10615#include <errno.h> 10616#endif 10617#ifndef NULL 10618#define NULL (void*)0 10619#endif 10620 10621static void *task(p) 10622 void *p; 10623{ 10624 return (void *) (p == NULL); 10625} 10626 10627 10628int main(argc, argv) 10629 int argc; 10630 char **argv; 10631{ 10632 10633 /* pthread test function */ 10634#ifndef PTHREAD_CREATE_DETACHED 10635#define PTHREAD_CREATE_DETACHED 1 10636#endif 10637 pthread_t t; 10638 int status; 10639 int detach = PTHREAD_CREATE_DETACHED; 10640 10641#if HAVE_PTHREADS > 4 10642 /* Final pthreads */ 10643 pthread_attr_t attr; 10644 10645 status = pthread_attr_init(&attr); 10646 if( status ) return status; 10647 10648#if HAVE_PTHREADS < 7 10649 status = pthread_attr_setdetachstate(&attr, &detach); 10650 if( status < 0 ) status = errno; 10651#else 10652 status = pthread_attr_setdetachstate(&attr, detach); 10653#endif 10654 if( status ) return status; 10655 status = pthread_create( &t, &attr, task, NULL ); 10656#if HAVE_PTHREADS < 7 10657 if( status < 0 ) status = errno; 10658#endif 10659 if( status ) return status; 10660#else 10661 /* Draft 4 pthreads */ 10662 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10663 if( status ) return errno; 10664 10665 /* give thread a chance to complete */ 10666 /* it should remain joinable and hence detachable */ 10667 sleep( 1 ); 10668 10669 status = pthread_detach( &t ); 10670 if( status ) return errno; 10671#endif 10672 10673#ifdef HAVE_LINUX_THREADS 10674 pthread_kill_other_threads_np(); 10675#endif 10676 10677 return 0; 10678 10679} 10680 10681_ACEOF 10682if ac_fn_c_try_run "$LINENO"; then : 10683 ol_cv_pthread_create=yes 10684else 10685 ol_cv_pthread_create=no 10686fi 10687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10688 conftest.$ac_objext conftest.beam conftest.$ac_ext 10689fi 10690 10691fi 10692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5 10693$as_echo "$ol_cv_pthread_create" >&6; } 10694 10695 if test $ol_cv_pthread_create != no ; then 10696 ol_link_threads=posix 10697 ol_link_pthreads="" 10698 fi 10699 10700 # Pthread try link: -kthread (ol_cv_pthread_kthread) 10701if test "$ol_link_threads" = no ; then 10702 # try -kthread 10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5 10704$as_echo_n "checking for pthread link with -kthread... " >&6; } 10705if ${ol_cv_pthread_kthread+:} false; then : 10706 $as_echo_n "(cached) " >&6 10707else 10708 10709 # save the flags 10710 ol_LIBS="$LIBS" 10711 LIBS="-kthread $LIBS" 10712 10713 if test "$cross_compiling" = yes; then : 10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10715/* end confdefs.h. */ 10716 10717/* pthread test headers */ 10718#include <pthread.h> 10719#if HAVE_PTHREADS < 7 10720#include <errno.h> 10721#endif 10722#ifndef NULL 10723#define NULL (void*)0 10724#endif 10725 10726static void *task(p) 10727 void *p; 10728{ 10729 return (void *) (p == NULL); 10730} 10731 10732int 10733main () 10734{ 10735 10736 /* pthread test function */ 10737#ifndef PTHREAD_CREATE_DETACHED 10738#define PTHREAD_CREATE_DETACHED 1 10739#endif 10740 pthread_t t; 10741 int status; 10742 int detach = PTHREAD_CREATE_DETACHED; 10743 10744#if HAVE_PTHREADS > 4 10745 /* Final pthreads */ 10746 pthread_attr_t attr; 10747 10748 status = pthread_attr_init(&attr); 10749 if( status ) return status; 10750 10751#if HAVE_PTHREADS < 7 10752 status = pthread_attr_setdetachstate(&attr, &detach); 10753 if( status < 0 ) status = errno; 10754#else 10755 status = pthread_attr_setdetachstate(&attr, detach); 10756#endif 10757 if( status ) return status; 10758 status = pthread_create( &t, &attr, task, NULL ); 10759#if HAVE_PTHREADS < 7 10760 if( status < 0 ) status = errno; 10761#endif 10762 if( status ) return status; 10763#else 10764 /* Draft 4 pthreads */ 10765 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10766 if( status ) return errno; 10767 10768 /* give thread a chance to complete */ 10769 /* it should remain joinable and hence detachable */ 10770 sleep( 1 ); 10771 10772 status = pthread_detach( &t ); 10773 if( status ) return errno; 10774#endif 10775 10776#ifdef HAVE_LINUX_THREADS 10777 pthread_kill_other_threads_np(); 10778#endif 10779 10780 return 0; 10781 10782 ; 10783 return 0; 10784} 10785_ACEOF 10786if ac_fn_c_try_link "$LINENO"; then : 10787 ol_cv_pthread_kthread=yes 10788else 10789 ol_cv_pthread_kthread=no 10790fi 10791rm -f core conftest.err conftest.$ac_objext \ 10792 conftest$ac_exeext conftest.$ac_ext 10793else 10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10795/* end confdefs.h. */ 10796 10797 10798/* pthread test headers */ 10799#include <pthread.h> 10800#if HAVE_PTHREADS < 7 10801#include <errno.h> 10802#endif 10803#ifndef NULL 10804#define NULL (void*)0 10805#endif 10806 10807static void *task(p) 10808 void *p; 10809{ 10810 return (void *) (p == NULL); 10811} 10812 10813 10814int main(argc, argv) 10815 int argc; 10816 char **argv; 10817{ 10818 10819 /* pthread test function */ 10820#ifndef PTHREAD_CREATE_DETACHED 10821#define PTHREAD_CREATE_DETACHED 1 10822#endif 10823 pthread_t t; 10824 int status; 10825 int detach = PTHREAD_CREATE_DETACHED; 10826 10827#if HAVE_PTHREADS > 4 10828 /* Final pthreads */ 10829 pthread_attr_t attr; 10830 10831 status = pthread_attr_init(&attr); 10832 if( status ) return status; 10833 10834#if HAVE_PTHREADS < 7 10835 status = pthread_attr_setdetachstate(&attr, &detach); 10836 if( status < 0 ) status = errno; 10837#else 10838 status = pthread_attr_setdetachstate(&attr, detach); 10839#endif 10840 if( status ) return status; 10841 status = pthread_create( &t, &attr, task, NULL ); 10842#if HAVE_PTHREADS < 7 10843 if( status < 0 ) status = errno; 10844#endif 10845 if( status ) return status; 10846#else 10847 /* Draft 4 pthreads */ 10848 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10849 if( status ) return errno; 10850 10851 /* give thread a chance to complete */ 10852 /* it should remain joinable and hence detachable */ 10853 sleep( 1 ); 10854 10855 status = pthread_detach( &t ); 10856 if( status ) return errno; 10857#endif 10858 10859#ifdef HAVE_LINUX_THREADS 10860 pthread_kill_other_threads_np(); 10861#endif 10862 10863 return 0; 10864 10865} 10866 10867_ACEOF 10868if ac_fn_c_try_run "$LINENO"; then : 10869 ol_cv_pthread_kthread=yes 10870else 10871 ol_cv_pthread_kthread=no 10872fi 10873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10874 conftest.$ac_objext conftest.beam conftest.$ac_ext 10875fi 10876 10877 10878 # restore the LIBS 10879 LIBS="$ol_LIBS" 10880 10881fi 10882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5 10883$as_echo "$ol_cv_pthread_kthread" >&6; } 10884 10885 if test $ol_cv_pthread_kthread = yes ; then 10886 ol_link_pthreads="-kthread" 10887 ol_link_threads=posix 10888 fi 10889fi 10890 10891 # Pthread try link: -pthread (ol_cv_pthread_pthread) 10892if test "$ol_link_threads" = no ; then 10893 # try -pthread 10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5 10895$as_echo_n "checking for pthread link with -pthread... " >&6; } 10896if ${ol_cv_pthread_pthread+:} false; then : 10897 $as_echo_n "(cached) " >&6 10898else 10899 10900 # save the flags 10901 ol_LIBS="$LIBS" 10902 LIBS="-pthread $LIBS" 10903 10904 if test "$cross_compiling" = yes; then : 10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10906/* end confdefs.h. */ 10907 10908/* pthread test headers */ 10909#include <pthread.h> 10910#if HAVE_PTHREADS < 7 10911#include <errno.h> 10912#endif 10913#ifndef NULL 10914#define NULL (void*)0 10915#endif 10916 10917static void *task(p) 10918 void *p; 10919{ 10920 return (void *) (p == NULL); 10921} 10922 10923int 10924main () 10925{ 10926 10927 /* pthread test function */ 10928#ifndef PTHREAD_CREATE_DETACHED 10929#define PTHREAD_CREATE_DETACHED 1 10930#endif 10931 pthread_t t; 10932 int status; 10933 int detach = PTHREAD_CREATE_DETACHED; 10934 10935#if HAVE_PTHREADS > 4 10936 /* Final pthreads */ 10937 pthread_attr_t attr; 10938 10939 status = pthread_attr_init(&attr); 10940 if( status ) return status; 10941 10942#if HAVE_PTHREADS < 7 10943 status = pthread_attr_setdetachstate(&attr, &detach); 10944 if( status < 0 ) status = errno; 10945#else 10946 status = pthread_attr_setdetachstate(&attr, detach); 10947#endif 10948 if( status ) return status; 10949 status = pthread_create( &t, &attr, task, NULL ); 10950#if HAVE_PTHREADS < 7 10951 if( status < 0 ) status = errno; 10952#endif 10953 if( status ) return status; 10954#else 10955 /* Draft 4 pthreads */ 10956 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10957 if( status ) return errno; 10958 10959 /* give thread a chance to complete */ 10960 /* it should remain joinable and hence detachable */ 10961 sleep( 1 ); 10962 10963 status = pthread_detach( &t ); 10964 if( status ) return errno; 10965#endif 10966 10967#ifdef HAVE_LINUX_THREADS 10968 pthread_kill_other_threads_np(); 10969#endif 10970 10971 return 0; 10972 10973 ; 10974 return 0; 10975} 10976_ACEOF 10977if ac_fn_c_try_link "$LINENO"; then : 10978 ol_cv_pthread_pthread=yes 10979else 10980 ol_cv_pthread_pthread=no 10981fi 10982rm -f core conftest.err conftest.$ac_objext \ 10983 conftest$ac_exeext conftest.$ac_ext 10984else 10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10986/* end confdefs.h. */ 10987 10988 10989/* pthread test headers */ 10990#include <pthread.h> 10991#if HAVE_PTHREADS < 7 10992#include <errno.h> 10993#endif 10994#ifndef NULL 10995#define NULL (void*)0 10996#endif 10997 10998static void *task(p) 10999 void *p; 11000{ 11001 return (void *) (p == NULL); 11002} 11003 11004 11005int main(argc, argv) 11006 int argc; 11007 char **argv; 11008{ 11009 11010 /* pthread test function */ 11011#ifndef PTHREAD_CREATE_DETACHED 11012#define PTHREAD_CREATE_DETACHED 1 11013#endif 11014 pthread_t t; 11015 int status; 11016 int detach = PTHREAD_CREATE_DETACHED; 11017 11018#if HAVE_PTHREADS > 4 11019 /* Final pthreads */ 11020 pthread_attr_t attr; 11021 11022 status = pthread_attr_init(&attr); 11023 if( status ) return status; 11024 11025#if HAVE_PTHREADS < 7 11026 status = pthread_attr_setdetachstate(&attr, &detach); 11027 if( status < 0 ) status = errno; 11028#else 11029 status = pthread_attr_setdetachstate(&attr, detach); 11030#endif 11031 if( status ) return status; 11032 status = pthread_create( &t, &attr, task, NULL ); 11033#if HAVE_PTHREADS < 7 11034 if( status < 0 ) status = errno; 11035#endif 11036 if( status ) return status; 11037#else 11038 /* Draft 4 pthreads */ 11039 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11040 if( status ) return errno; 11041 11042 /* give thread a chance to complete */ 11043 /* it should remain joinable and hence detachable */ 11044 sleep( 1 ); 11045 11046 status = pthread_detach( &t ); 11047 if( status ) return errno; 11048#endif 11049 11050#ifdef HAVE_LINUX_THREADS 11051 pthread_kill_other_threads_np(); 11052#endif 11053 11054 return 0; 11055 11056} 11057 11058_ACEOF 11059if ac_fn_c_try_run "$LINENO"; then : 11060 ol_cv_pthread_pthread=yes 11061else 11062 ol_cv_pthread_pthread=no 11063fi 11064rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11065 conftest.$ac_objext conftest.beam conftest.$ac_ext 11066fi 11067 11068 11069 # restore the LIBS 11070 LIBS="$ol_LIBS" 11071 11072fi 11073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5 11074$as_echo "$ol_cv_pthread_pthread" >&6; } 11075 11076 if test $ol_cv_pthread_pthread = yes ; then 11077 ol_link_pthreads="-pthread" 11078 ol_link_threads=posix 11079 fi 11080fi 11081 11082 # Pthread try link: -pthreads (ol_cv_pthread_pthreads) 11083if test "$ol_link_threads" = no ; then 11084 # try -pthreads 11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5 11086$as_echo_n "checking for pthread link with -pthreads... " >&6; } 11087if ${ol_cv_pthread_pthreads+:} false; then : 11088 $as_echo_n "(cached) " >&6 11089else 11090 11091 # save the flags 11092 ol_LIBS="$LIBS" 11093 LIBS="-pthreads $LIBS" 11094 11095 if test "$cross_compiling" = yes; then : 11096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11097/* end confdefs.h. */ 11098 11099/* pthread test headers */ 11100#include <pthread.h> 11101#if HAVE_PTHREADS < 7 11102#include <errno.h> 11103#endif 11104#ifndef NULL 11105#define NULL (void*)0 11106#endif 11107 11108static void *task(p) 11109 void *p; 11110{ 11111 return (void *) (p == NULL); 11112} 11113 11114int 11115main () 11116{ 11117 11118 /* pthread test function */ 11119#ifndef PTHREAD_CREATE_DETACHED 11120#define PTHREAD_CREATE_DETACHED 1 11121#endif 11122 pthread_t t; 11123 int status; 11124 int detach = PTHREAD_CREATE_DETACHED; 11125 11126#if HAVE_PTHREADS > 4 11127 /* Final pthreads */ 11128 pthread_attr_t attr; 11129 11130 status = pthread_attr_init(&attr); 11131 if( status ) return status; 11132 11133#if HAVE_PTHREADS < 7 11134 status = pthread_attr_setdetachstate(&attr, &detach); 11135 if( status < 0 ) status = errno; 11136#else 11137 status = pthread_attr_setdetachstate(&attr, detach); 11138#endif 11139 if( status ) return status; 11140 status = pthread_create( &t, &attr, task, NULL ); 11141#if HAVE_PTHREADS < 7 11142 if( status < 0 ) status = errno; 11143#endif 11144 if( status ) return status; 11145#else 11146 /* Draft 4 pthreads */ 11147 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11148 if( status ) return errno; 11149 11150 /* give thread a chance to complete */ 11151 /* it should remain joinable and hence detachable */ 11152 sleep( 1 ); 11153 11154 status = pthread_detach( &t ); 11155 if( status ) return errno; 11156#endif 11157 11158#ifdef HAVE_LINUX_THREADS 11159 pthread_kill_other_threads_np(); 11160#endif 11161 11162 return 0; 11163 11164 ; 11165 return 0; 11166} 11167_ACEOF 11168if ac_fn_c_try_link "$LINENO"; then : 11169 ol_cv_pthread_pthreads=yes 11170else 11171 ol_cv_pthread_pthreads=no 11172fi 11173rm -f core conftest.err conftest.$ac_objext \ 11174 conftest$ac_exeext conftest.$ac_ext 11175else 11176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11177/* end confdefs.h. */ 11178 11179 11180/* pthread test headers */ 11181#include <pthread.h> 11182#if HAVE_PTHREADS < 7 11183#include <errno.h> 11184#endif 11185#ifndef NULL 11186#define NULL (void*)0 11187#endif 11188 11189static void *task(p) 11190 void *p; 11191{ 11192 return (void *) (p == NULL); 11193} 11194 11195 11196int main(argc, argv) 11197 int argc; 11198 char **argv; 11199{ 11200 11201 /* pthread test function */ 11202#ifndef PTHREAD_CREATE_DETACHED 11203#define PTHREAD_CREATE_DETACHED 1 11204#endif 11205 pthread_t t; 11206 int status; 11207 int detach = PTHREAD_CREATE_DETACHED; 11208 11209#if HAVE_PTHREADS > 4 11210 /* Final pthreads */ 11211 pthread_attr_t attr; 11212 11213 status = pthread_attr_init(&attr); 11214 if( status ) return status; 11215 11216#if HAVE_PTHREADS < 7 11217 status = pthread_attr_setdetachstate(&attr, &detach); 11218 if( status < 0 ) status = errno; 11219#else 11220 status = pthread_attr_setdetachstate(&attr, detach); 11221#endif 11222 if( status ) return status; 11223 status = pthread_create( &t, &attr, task, NULL ); 11224#if HAVE_PTHREADS < 7 11225 if( status < 0 ) status = errno; 11226#endif 11227 if( status ) return status; 11228#else 11229 /* Draft 4 pthreads */ 11230 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11231 if( status ) return errno; 11232 11233 /* give thread a chance to complete */ 11234 /* it should remain joinable and hence detachable */ 11235 sleep( 1 ); 11236 11237 status = pthread_detach( &t ); 11238 if( status ) return errno; 11239#endif 11240 11241#ifdef HAVE_LINUX_THREADS 11242 pthread_kill_other_threads_np(); 11243#endif 11244 11245 return 0; 11246 11247} 11248 11249_ACEOF 11250if ac_fn_c_try_run "$LINENO"; then : 11251 ol_cv_pthread_pthreads=yes 11252else 11253 ol_cv_pthread_pthreads=no 11254fi 11255rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11256 conftest.$ac_objext conftest.beam conftest.$ac_ext 11257fi 11258 11259 11260 # restore the LIBS 11261 LIBS="$ol_LIBS" 11262 11263fi 11264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5 11265$as_echo "$ol_cv_pthread_pthreads" >&6; } 11266 11267 if test $ol_cv_pthread_pthreads = yes ; then 11268 ol_link_pthreads="-pthreads" 11269 ol_link_threads=posix 11270 fi 11271fi 11272 11273 # Pthread try link: -mthreads (ol_cv_pthread_mthreads) 11274if test "$ol_link_threads" = no ; then 11275 # try -mthreads 11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5 11277$as_echo_n "checking for pthread link with -mthreads... " >&6; } 11278if ${ol_cv_pthread_mthreads+:} false; then : 11279 $as_echo_n "(cached) " >&6 11280else 11281 11282 # save the flags 11283 ol_LIBS="$LIBS" 11284 LIBS="-mthreads $LIBS" 11285 11286 if test "$cross_compiling" = yes; then : 11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11288/* end confdefs.h. */ 11289 11290/* pthread test headers */ 11291#include <pthread.h> 11292#if HAVE_PTHREADS < 7 11293#include <errno.h> 11294#endif 11295#ifndef NULL 11296#define NULL (void*)0 11297#endif 11298 11299static void *task(p) 11300 void *p; 11301{ 11302 return (void *) (p == NULL); 11303} 11304 11305int 11306main () 11307{ 11308 11309 /* pthread test function */ 11310#ifndef PTHREAD_CREATE_DETACHED 11311#define PTHREAD_CREATE_DETACHED 1 11312#endif 11313 pthread_t t; 11314 int status; 11315 int detach = PTHREAD_CREATE_DETACHED; 11316 11317#if HAVE_PTHREADS > 4 11318 /* Final pthreads */ 11319 pthread_attr_t attr; 11320 11321 status = pthread_attr_init(&attr); 11322 if( status ) return status; 11323 11324#if HAVE_PTHREADS < 7 11325 status = pthread_attr_setdetachstate(&attr, &detach); 11326 if( status < 0 ) status = errno; 11327#else 11328 status = pthread_attr_setdetachstate(&attr, detach); 11329#endif 11330 if( status ) return status; 11331 status = pthread_create( &t, &attr, task, NULL ); 11332#if HAVE_PTHREADS < 7 11333 if( status < 0 ) status = errno; 11334#endif 11335 if( status ) return status; 11336#else 11337 /* Draft 4 pthreads */ 11338 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11339 if( status ) return errno; 11340 11341 /* give thread a chance to complete */ 11342 /* it should remain joinable and hence detachable */ 11343 sleep( 1 ); 11344 11345 status = pthread_detach( &t ); 11346 if( status ) return errno; 11347#endif 11348 11349#ifdef HAVE_LINUX_THREADS 11350 pthread_kill_other_threads_np(); 11351#endif 11352 11353 return 0; 11354 11355 ; 11356 return 0; 11357} 11358_ACEOF 11359if ac_fn_c_try_link "$LINENO"; then : 11360 ol_cv_pthread_mthreads=yes 11361else 11362 ol_cv_pthread_mthreads=no 11363fi 11364rm -f core conftest.err conftest.$ac_objext \ 11365 conftest$ac_exeext conftest.$ac_ext 11366else 11367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11368/* end confdefs.h. */ 11369 11370 11371/* pthread test headers */ 11372#include <pthread.h> 11373#if HAVE_PTHREADS < 7 11374#include <errno.h> 11375#endif 11376#ifndef NULL 11377#define NULL (void*)0 11378#endif 11379 11380static void *task(p) 11381 void *p; 11382{ 11383 return (void *) (p == NULL); 11384} 11385 11386 11387int main(argc, argv) 11388 int argc; 11389 char **argv; 11390{ 11391 11392 /* pthread test function */ 11393#ifndef PTHREAD_CREATE_DETACHED 11394#define PTHREAD_CREATE_DETACHED 1 11395#endif 11396 pthread_t t; 11397 int status; 11398 int detach = PTHREAD_CREATE_DETACHED; 11399 11400#if HAVE_PTHREADS > 4 11401 /* Final pthreads */ 11402 pthread_attr_t attr; 11403 11404 status = pthread_attr_init(&attr); 11405 if( status ) return status; 11406 11407#if HAVE_PTHREADS < 7 11408 status = pthread_attr_setdetachstate(&attr, &detach); 11409 if( status < 0 ) status = errno; 11410#else 11411 status = pthread_attr_setdetachstate(&attr, detach); 11412#endif 11413 if( status ) return status; 11414 status = pthread_create( &t, &attr, task, NULL ); 11415#if HAVE_PTHREADS < 7 11416 if( status < 0 ) status = errno; 11417#endif 11418 if( status ) return status; 11419#else 11420 /* Draft 4 pthreads */ 11421 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11422 if( status ) return errno; 11423 11424 /* give thread a chance to complete */ 11425 /* it should remain joinable and hence detachable */ 11426 sleep( 1 ); 11427 11428 status = pthread_detach( &t ); 11429 if( status ) return errno; 11430#endif 11431 11432#ifdef HAVE_LINUX_THREADS 11433 pthread_kill_other_threads_np(); 11434#endif 11435 11436 return 0; 11437 11438} 11439 11440_ACEOF 11441if ac_fn_c_try_run "$LINENO"; then : 11442 ol_cv_pthread_mthreads=yes 11443else 11444 ol_cv_pthread_mthreads=no 11445fi 11446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11447 conftest.$ac_objext conftest.beam conftest.$ac_ext 11448fi 11449 11450 11451 # restore the LIBS 11452 LIBS="$ol_LIBS" 11453 11454fi 11455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5 11456$as_echo "$ol_cv_pthread_mthreads" >&6; } 11457 11458 if test $ol_cv_pthread_mthreads = yes ; then 11459 ol_link_pthreads="-mthreads" 11460 ol_link_threads=posix 11461 fi 11462fi 11463 11464 # Pthread try link: -thread (ol_cv_pthread_thread) 11465if test "$ol_link_threads" = no ; then 11466 # try -thread 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5 11468$as_echo_n "checking for pthread link with -thread... " >&6; } 11469if ${ol_cv_pthread_thread+:} false; then : 11470 $as_echo_n "(cached) " >&6 11471else 11472 11473 # save the flags 11474 ol_LIBS="$LIBS" 11475 LIBS="-thread $LIBS" 11476 11477 if test "$cross_compiling" = yes; then : 11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11479/* end confdefs.h. */ 11480 11481/* pthread test headers */ 11482#include <pthread.h> 11483#if HAVE_PTHREADS < 7 11484#include <errno.h> 11485#endif 11486#ifndef NULL 11487#define NULL (void*)0 11488#endif 11489 11490static void *task(p) 11491 void *p; 11492{ 11493 return (void *) (p == NULL); 11494} 11495 11496int 11497main () 11498{ 11499 11500 /* pthread test function */ 11501#ifndef PTHREAD_CREATE_DETACHED 11502#define PTHREAD_CREATE_DETACHED 1 11503#endif 11504 pthread_t t; 11505 int status; 11506 int detach = PTHREAD_CREATE_DETACHED; 11507 11508#if HAVE_PTHREADS > 4 11509 /* Final pthreads */ 11510 pthread_attr_t attr; 11511 11512 status = pthread_attr_init(&attr); 11513 if( status ) return status; 11514 11515#if HAVE_PTHREADS < 7 11516 status = pthread_attr_setdetachstate(&attr, &detach); 11517 if( status < 0 ) status = errno; 11518#else 11519 status = pthread_attr_setdetachstate(&attr, detach); 11520#endif 11521 if( status ) return status; 11522 status = pthread_create( &t, &attr, task, NULL ); 11523#if HAVE_PTHREADS < 7 11524 if( status < 0 ) status = errno; 11525#endif 11526 if( status ) return status; 11527#else 11528 /* Draft 4 pthreads */ 11529 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11530 if( status ) return errno; 11531 11532 /* give thread a chance to complete */ 11533 /* it should remain joinable and hence detachable */ 11534 sleep( 1 ); 11535 11536 status = pthread_detach( &t ); 11537 if( status ) return errno; 11538#endif 11539 11540#ifdef HAVE_LINUX_THREADS 11541 pthread_kill_other_threads_np(); 11542#endif 11543 11544 return 0; 11545 11546 ; 11547 return 0; 11548} 11549_ACEOF 11550if ac_fn_c_try_link "$LINENO"; then : 11551 ol_cv_pthread_thread=yes 11552else 11553 ol_cv_pthread_thread=no 11554fi 11555rm -f core conftest.err conftest.$ac_objext \ 11556 conftest$ac_exeext conftest.$ac_ext 11557else 11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11559/* end confdefs.h. */ 11560 11561 11562/* pthread test headers */ 11563#include <pthread.h> 11564#if HAVE_PTHREADS < 7 11565#include <errno.h> 11566#endif 11567#ifndef NULL 11568#define NULL (void*)0 11569#endif 11570 11571static void *task(p) 11572 void *p; 11573{ 11574 return (void *) (p == NULL); 11575} 11576 11577 11578int main(argc, argv) 11579 int argc; 11580 char **argv; 11581{ 11582 11583 /* pthread test function */ 11584#ifndef PTHREAD_CREATE_DETACHED 11585#define PTHREAD_CREATE_DETACHED 1 11586#endif 11587 pthread_t t; 11588 int status; 11589 int detach = PTHREAD_CREATE_DETACHED; 11590 11591#if HAVE_PTHREADS > 4 11592 /* Final pthreads */ 11593 pthread_attr_t attr; 11594 11595 status = pthread_attr_init(&attr); 11596 if( status ) return status; 11597 11598#if HAVE_PTHREADS < 7 11599 status = pthread_attr_setdetachstate(&attr, &detach); 11600 if( status < 0 ) status = errno; 11601#else 11602 status = pthread_attr_setdetachstate(&attr, detach); 11603#endif 11604 if( status ) return status; 11605 status = pthread_create( &t, &attr, task, NULL ); 11606#if HAVE_PTHREADS < 7 11607 if( status < 0 ) status = errno; 11608#endif 11609 if( status ) return status; 11610#else 11611 /* Draft 4 pthreads */ 11612 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11613 if( status ) return errno; 11614 11615 /* give thread a chance to complete */ 11616 /* it should remain joinable and hence detachable */ 11617 sleep( 1 ); 11618 11619 status = pthread_detach( &t ); 11620 if( status ) return errno; 11621#endif 11622 11623#ifdef HAVE_LINUX_THREADS 11624 pthread_kill_other_threads_np(); 11625#endif 11626 11627 return 0; 11628 11629} 11630 11631_ACEOF 11632if ac_fn_c_try_run "$LINENO"; then : 11633 ol_cv_pthread_thread=yes 11634else 11635 ol_cv_pthread_thread=no 11636fi 11637rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11638 conftest.$ac_objext conftest.beam conftest.$ac_ext 11639fi 11640 11641 11642 # restore the LIBS 11643 LIBS="$ol_LIBS" 11644 11645fi 11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5 11647$as_echo "$ol_cv_pthread_thread" >&6; } 11648 11649 if test $ol_cv_pthread_thread = yes ; then 11650 ol_link_pthreads="-thread" 11651 ol_link_threads=posix 11652 fi 11653fi 11654 11655 11656 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r) 11657if test "$ol_link_threads" = no ; then 11658 # try -lpthread -lmach -lexc -lc_r 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5 11660$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; } 11661if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then : 11662 $as_echo_n "(cached) " >&6 11663else 11664 11665 # save the flags 11666 ol_LIBS="$LIBS" 11667 LIBS="-lpthread -lmach -lexc -lc_r $LIBS" 11668 11669 if test "$cross_compiling" = yes; then : 11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11671/* end confdefs.h. */ 11672 11673/* pthread test headers */ 11674#include <pthread.h> 11675#if HAVE_PTHREADS < 7 11676#include <errno.h> 11677#endif 11678#ifndef NULL 11679#define NULL (void*)0 11680#endif 11681 11682static void *task(p) 11683 void *p; 11684{ 11685 return (void *) (p == NULL); 11686} 11687 11688int 11689main () 11690{ 11691 11692 /* pthread test function */ 11693#ifndef PTHREAD_CREATE_DETACHED 11694#define PTHREAD_CREATE_DETACHED 1 11695#endif 11696 pthread_t t; 11697 int status; 11698 int detach = PTHREAD_CREATE_DETACHED; 11699 11700#if HAVE_PTHREADS > 4 11701 /* Final pthreads */ 11702 pthread_attr_t attr; 11703 11704 status = pthread_attr_init(&attr); 11705 if( status ) return status; 11706 11707#if HAVE_PTHREADS < 7 11708 status = pthread_attr_setdetachstate(&attr, &detach); 11709 if( status < 0 ) status = errno; 11710#else 11711 status = pthread_attr_setdetachstate(&attr, detach); 11712#endif 11713 if( status ) return status; 11714 status = pthread_create( &t, &attr, task, NULL ); 11715#if HAVE_PTHREADS < 7 11716 if( status < 0 ) status = errno; 11717#endif 11718 if( status ) return status; 11719#else 11720 /* Draft 4 pthreads */ 11721 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11722 if( status ) return errno; 11723 11724 /* give thread a chance to complete */ 11725 /* it should remain joinable and hence detachable */ 11726 sleep( 1 ); 11727 11728 status = pthread_detach( &t ); 11729 if( status ) return errno; 11730#endif 11731 11732#ifdef HAVE_LINUX_THREADS 11733 pthread_kill_other_threads_np(); 11734#endif 11735 11736 return 0; 11737 11738 ; 11739 return 0; 11740} 11741_ACEOF 11742if ac_fn_c_try_link "$LINENO"; then : 11743 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 11744else 11745 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 11746fi 11747rm -f core conftest.err conftest.$ac_objext \ 11748 conftest$ac_exeext conftest.$ac_ext 11749else 11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11751/* end confdefs.h. */ 11752 11753 11754/* pthread test headers */ 11755#include <pthread.h> 11756#if HAVE_PTHREADS < 7 11757#include <errno.h> 11758#endif 11759#ifndef NULL 11760#define NULL (void*)0 11761#endif 11762 11763static void *task(p) 11764 void *p; 11765{ 11766 return (void *) (p == NULL); 11767} 11768 11769 11770int main(argc, argv) 11771 int argc; 11772 char **argv; 11773{ 11774 11775 /* pthread test function */ 11776#ifndef PTHREAD_CREATE_DETACHED 11777#define PTHREAD_CREATE_DETACHED 1 11778#endif 11779 pthread_t t; 11780 int status; 11781 int detach = PTHREAD_CREATE_DETACHED; 11782 11783#if HAVE_PTHREADS > 4 11784 /* Final pthreads */ 11785 pthread_attr_t attr; 11786 11787 status = pthread_attr_init(&attr); 11788 if( status ) return status; 11789 11790#if HAVE_PTHREADS < 7 11791 status = pthread_attr_setdetachstate(&attr, &detach); 11792 if( status < 0 ) status = errno; 11793#else 11794 status = pthread_attr_setdetachstate(&attr, detach); 11795#endif 11796 if( status ) return status; 11797 status = pthread_create( &t, &attr, task, NULL ); 11798#if HAVE_PTHREADS < 7 11799 if( status < 0 ) status = errno; 11800#endif 11801 if( status ) return status; 11802#else 11803 /* Draft 4 pthreads */ 11804 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11805 if( status ) return errno; 11806 11807 /* give thread a chance to complete */ 11808 /* it should remain joinable and hence detachable */ 11809 sleep( 1 ); 11810 11811 status = pthread_detach( &t ); 11812 if( status ) return errno; 11813#endif 11814 11815#ifdef HAVE_LINUX_THREADS 11816 pthread_kill_other_threads_np(); 11817#endif 11818 11819 return 0; 11820 11821} 11822 11823_ACEOF 11824if ac_fn_c_try_run "$LINENO"; then : 11825 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 11826else 11827 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 11828fi 11829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11830 conftest.$ac_objext conftest.beam conftest.$ac_ext 11831fi 11832 11833 11834 # restore the LIBS 11835 LIBS="$ol_LIBS" 11836 11837fi 11838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5 11839$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; } 11840 11841 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then 11842 ol_link_pthreads="-lpthread -lmach -lexc -lc_r" 11843 ol_link_threads=posix 11844 fi 11845fi 11846 11847 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc) 11848if test "$ol_link_threads" = no ; then 11849 # try -lpthread -lmach -lexc 11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5 11851$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; } 11852if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then : 11853 $as_echo_n "(cached) " >&6 11854else 11855 11856 # save the flags 11857 ol_LIBS="$LIBS" 11858 LIBS="-lpthread -lmach -lexc $LIBS" 11859 11860 if test "$cross_compiling" = yes; then : 11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11862/* end confdefs.h. */ 11863 11864/* pthread test headers */ 11865#include <pthread.h> 11866#if HAVE_PTHREADS < 7 11867#include <errno.h> 11868#endif 11869#ifndef NULL 11870#define NULL (void*)0 11871#endif 11872 11873static void *task(p) 11874 void *p; 11875{ 11876 return (void *) (p == NULL); 11877} 11878 11879int 11880main () 11881{ 11882 11883 /* pthread test function */ 11884#ifndef PTHREAD_CREATE_DETACHED 11885#define PTHREAD_CREATE_DETACHED 1 11886#endif 11887 pthread_t t; 11888 int status; 11889 int detach = PTHREAD_CREATE_DETACHED; 11890 11891#if HAVE_PTHREADS > 4 11892 /* Final pthreads */ 11893 pthread_attr_t attr; 11894 11895 status = pthread_attr_init(&attr); 11896 if( status ) return status; 11897 11898#if HAVE_PTHREADS < 7 11899 status = pthread_attr_setdetachstate(&attr, &detach); 11900 if( status < 0 ) status = errno; 11901#else 11902 status = pthread_attr_setdetachstate(&attr, detach); 11903#endif 11904 if( status ) return status; 11905 status = pthread_create( &t, &attr, task, NULL ); 11906#if HAVE_PTHREADS < 7 11907 if( status < 0 ) status = errno; 11908#endif 11909 if( status ) return status; 11910#else 11911 /* Draft 4 pthreads */ 11912 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11913 if( status ) return errno; 11914 11915 /* give thread a chance to complete */ 11916 /* it should remain joinable and hence detachable */ 11917 sleep( 1 ); 11918 11919 status = pthread_detach( &t ); 11920 if( status ) return errno; 11921#endif 11922 11923#ifdef HAVE_LINUX_THREADS 11924 pthread_kill_other_threads_np(); 11925#endif 11926 11927 return 0; 11928 11929 ; 11930 return 0; 11931} 11932_ACEOF 11933if ac_fn_c_try_link "$LINENO"; then : 11934 ol_cv_pthread_lpthread_lmach_lexc=yes 11935else 11936 ol_cv_pthread_lpthread_lmach_lexc=no 11937fi 11938rm -f core conftest.err conftest.$ac_objext \ 11939 conftest$ac_exeext conftest.$ac_ext 11940else 11941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11942/* end confdefs.h. */ 11943 11944 11945/* pthread test headers */ 11946#include <pthread.h> 11947#if HAVE_PTHREADS < 7 11948#include <errno.h> 11949#endif 11950#ifndef NULL 11951#define NULL (void*)0 11952#endif 11953 11954static void *task(p) 11955 void *p; 11956{ 11957 return (void *) (p == NULL); 11958} 11959 11960 11961int main(argc, argv) 11962 int argc; 11963 char **argv; 11964{ 11965 11966 /* pthread test function */ 11967#ifndef PTHREAD_CREATE_DETACHED 11968#define PTHREAD_CREATE_DETACHED 1 11969#endif 11970 pthread_t t; 11971 int status; 11972 int detach = PTHREAD_CREATE_DETACHED; 11973 11974#if HAVE_PTHREADS > 4 11975 /* Final pthreads */ 11976 pthread_attr_t attr; 11977 11978 status = pthread_attr_init(&attr); 11979 if( status ) return status; 11980 11981#if HAVE_PTHREADS < 7 11982 status = pthread_attr_setdetachstate(&attr, &detach); 11983 if( status < 0 ) status = errno; 11984#else 11985 status = pthread_attr_setdetachstate(&attr, detach); 11986#endif 11987 if( status ) return status; 11988 status = pthread_create( &t, &attr, task, NULL ); 11989#if HAVE_PTHREADS < 7 11990 if( status < 0 ) status = errno; 11991#endif 11992 if( status ) return status; 11993#else 11994 /* Draft 4 pthreads */ 11995 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11996 if( status ) return errno; 11997 11998 /* give thread a chance to complete */ 11999 /* it should remain joinable and hence detachable */ 12000 sleep( 1 ); 12001 12002 status = pthread_detach( &t ); 12003 if( status ) return errno; 12004#endif 12005 12006#ifdef HAVE_LINUX_THREADS 12007 pthread_kill_other_threads_np(); 12008#endif 12009 12010 return 0; 12011 12012} 12013 12014_ACEOF 12015if ac_fn_c_try_run "$LINENO"; then : 12016 ol_cv_pthread_lpthread_lmach_lexc=yes 12017else 12018 ol_cv_pthread_lpthread_lmach_lexc=no 12019fi 12020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12021 conftest.$ac_objext conftest.beam conftest.$ac_ext 12022fi 12023 12024 12025 # restore the LIBS 12026 LIBS="$ol_LIBS" 12027 12028fi 12029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5 12030$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; } 12031 12032 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then 12033 ol_link_pthreads="-lpthread -lmach -lexc" 12034 ol_link_threads=posix 12035 fi 12036fi 12037 12038 12039 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff) 12040if test "$ol_link_threads" = no ; then 12041 # try -lpthread -Wl,-woff,85 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5 12043$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; } 12044if ${ol_cv_pthread_lib_lpthread_woff+:} false; then : 12045 $as_echo_n "(cached) " >&6 12046else 12047 12048 # save the flags 12049 ol_LIBS="$LIBS" 12050 LIBS="-lpthread -Wl,-woff,85 $LIBS" 12051 12052 if test "$cross_compiling" = yes; then : 12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12054/* end confdefs.h. */ 12055 12056/* pthread test headers */ 12057#include <pthread.h> 12058#if HAVE_PTHREADS < 7 12059#include <errno.h> 12060#endif 12061#ifndef NULL 12062#define NULL (void*)0 12063#endif 12064 12065static void *task(p) 12066 void *p; 12067{ 12068 return (void *) (p == NULL); 12069} 12070 12071int 12072main () 12073{ 12074 12075 /* pthread test function */ 12076#ifndef PTHREAD_CREATE_DETACHED 12077#define PTHREAD_CREATE_DETACHED 1 12078#endif 12079 pthread_t t; 12080 int status; 12081 int detach = PTHREAD_CREATE_DETACHED; 12082 12083#if HAVE_PTHREADS > 4 12084 /* Final pthreads */ 12085 pthread_attr_t attr; 12086 12087 status = pthread_attr_init(&attr); 12088 if( status ) return status; 12089 12090#if HAVE_PTHREADS < 7 12091 status = pthread_attr_setdetachstate(&attr, &detach); 12092 if( status < 0 ) status = errno; 12093#else 12094 status = pthread_attr_setdetachstate(&attr, detach); 12095#endif 12096 if( status ) return status; 12097 status = pthread_create( &t, &attr, task, NULL ); 12098#if HAVE_PTHREADS < 7 12099 if( status < 0 ) status = errno; 12100#endif 12101 if( status ) return status; 12102#else 12103 /* Draft 4 pthreads */ 12104 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12105 if( status ) return errno; 12106 12107 /* give thread a chance to complete */ 12108 /* it should remain joinable and hence detachable */ 12109 sleep( 1 ); 12110 12111 status = pthread_detach( &t ); 12112 if( status ) return errno; 12113#endif 12114 12115#ifdef HAVE_LINUX_THREADS 12116 pthread_kill_other_threads_np(); 12117#endif 12118 12119 return 0; 12120 12121 ; 12122 return 0; 12123} 12124_ACEOF 12125if ac_fn_c_try_link "$LINENO"; then : 12126 ol_cv_pthread_lib_lpthread_woff=yes 12127else 12128 ol_cv_pthread_lib_lpthread_woff=no 12129fi 12130rm -f core conftest.err conftest.$ac_objext \ 12131 conftest$ac_exeext conftest.$ac_ext 12132else 12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12134/* end confdefs.h. */ 12135 12136 12137/* pthread test headers */ 12138#include <pthread.h> 12139#if HAVE_PTHREADS < 7 12140#include <errno.h> 12141#endif 12142#ifndef NULL 12143#define NULL (void*)0 12144#endif 12145 12146static void *task(p) 12147 void *p; 12148{ 12149 return (void *) (p == NULL); 12150} 12151 12152 12153int main(argc, argv) 12154 int argc; 12155 char **argv; 12156{ 12157 12158 /* pthread test function */ 12159#ifndef PTHREAD_CREATE_DETACHED 12160#define PTHREAD_CREATE_DETACHED 1 12161#endif 12162 pthread_t t; 12163 int status; 12164 int detach = PTHREAD_CREATE_DETACHED; 12165 12166#if HAVE_PTHREADS > 4 12167 /* Final pthreads */ 12168 pthread_attr_t attr; 12169 12170 status = pthread_attr_init(&attr); 12171 if( status ) return status; 12172 12173#if HAVE_PTHREADS < 7 12174 status = pthread_attr_setdetachstate(&attr, &detach); 12175 if( status < 0 ) status = errno; 12176#else 12177 status = pthread_attr_setdetachstate(&attr, detach); 12178#endif 12179 if( status ) return status; 12180 status = pthread_create( &t, &attr, task, NULL ); 12181#if HAVE_PTHREADS < 7 12182 if( status < 0 ) status = errno; 12183#endif 12184 if( status ) return status; 12185#else 12186 /* Draft 4 pthreads */ 12187 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12188 if( status ) return errno; 12189 12190 /* give thread a chance to complete */ 12191 /* it should remain joinable and hence detachable */ 12192 sleep( 1 ); 12193 12194 status = pthread_detach( &t ); 12195 if( status ) return errno; 12196#endif 12197 12198#ifdef HAVE_LINUX_THREADS 12199 pthread_kill_other_threads_np(); 12200#endif 12201 12202 return 0; 12203 12204} 12205 12206_ACEOF 12207if ac_fn_c_try_run "$LINENO"; then : 12208 ol_cv_pthread_lib_lpthread_woff=yes 12209else 12210 ol_cv_pthread_lib_lpthread_woff=no 12211fi 12212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12213 conftest.$ac_objext conftest.beam conftest.$ac_ext 12214fi 12215 12216 12217 # restore the LIBS 12218 LIBS="$ol_LIBS" 12219 12220fi 12221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5 12222$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; } 12223 12224 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then 12225 ol_link_pthreads="-lpthread -Wl,-woff,85" 12226 ol_link_threads=posix 12227 fi 12228fi 12229 12230 12231 # Pthread try link: -lpthread (ol_cv_pthread_lpthread) 12232if test "$ol_link_threads" = no ; then 12233 # try -lpthread 12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5 12235$as_echo_n "checking for pthread link with -lpthread... " >&6; } 12236if ${ol_cv_pthread_lpthread+:} false; then : 12237 $as_echo_n "(cached) " >&6 12238else 12239 12240 # save the flags 12241 ol_LIBS="$LIBS" 12242 LIBS="-lpthread $LIBS" 12243 12244 if test "$cross_compiling" = yes; then : 12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12246/* end confdefs.h. */ 12247 12248/* pthread test headers */ 12249#include <pthread.h> 12250#if HAVE_PTHREADS < 7 12251#include <errno.h> 12252#endif 12253#ifndef NULL 12254#define NULL (void*)0 12255#endif 12256 12257static void *task(p) 12258 void *p; 12259{ 12260 return (void *) (p == NULL); 12261} 12262 12263int 12264main () 12265{ 12266 12267 /* pthread test function */ 12268#ifndef PTHREAD_CREATE_DETACHED 12269#define PTHREAD_CREATE_DETACHED 1 12270#endif 12271 pthread_t t; 12272 int status; 12273 int detach = PTHREAD_CREATE_DETACHED; 12274 12275#if HAVE_PTHREADS > 4 12276 /* Final pthreads */ 12277 pthread_attr_t attr; 12278 12279 status = pthread_attr_init(&attr); 12280 if( status ) return status; 12281 12282#if HAVE_PTHREADS < 7 12283 status = pthread_attr_setdetachstate(&attr, &detach); 12284 if( status < 0 ) status = errno; 12285#else 12286 status = pthread_attr_setdetachstate(&attr, detach); 12287#endif 12288 if( status ) return status; 12289 status = pthread_create( &t, &attr, task, NULL ); 12290#if HAVE_PTHREADS < 7 12291 if( status < 0 ) status = errno; 12292#endif 12293 if( status ) return status; 12294#else 12295 /* Draft 4 pthreads */ 12296 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12297 if( status ) return errno; 12298 12299 /* give thread a chance to complete */ 12300 /* it should remain joinable and hence detachable */ 12301 sleep( 1 ); 12302 12303 status = pthread_detach( &t ); 12304 if( status ) return errno; 12305#endif 12306 12307#ifdef HAVE_LINUX_THREADS 12308 pthread_kill_other_threads_np(); 12309#endif 12310 12311 return 0; 12312 12313 ; 12314 return 0; 12315} 12316_ACEOF 12317if ac_fn_c_try_link "$LINENO"; then : 12318 ol_cv_pthread_lpthread=yes 12319else 12320 ol_cv_pthread_lpthread=no 12321fi 12322rm -f core conftest.err conftest.$ac_objext \ 12323 conftest$ac_exeext conftest.$ac_ext 12324else 12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12326/* end confdefs.h. */ 12327 12328 12329/* pthread test headers */ 12330#include <pthread.h> 12331#if HAVE_PTHREADS < 7 12332#include <errno.h> 12333#endif 12334#ifndef NULL 12335#define NULL (void*)0 12336#endif 12337 12338static void *task(p) 12339 void *p; 12340{ 12341 return (void *) (p == NULL); 12342} 12343 12344 12345int main(argc, argv) 12346 int argc; 12347 char **argv; 12348{ 12349 12350 /* pthread test function */ 12351#ifndef PTHREAD_CREATE_DETACHED 12352#define PTHREAD_CREATE_DETACHED 1 12353#endif 12354 pthread_t t; 12355 int status; 12356 int detach = PTHREAD_CREATE_DETACHED; 12357 12358#if HAVE_PTHREADS > 4 12359 /* Final pthreads */ 12360 pthread_attr_t attr; 12361 12362 status = pthread_attr_init(&attr); 12363 if( status ) return status; 12364 12365#if HAVE_PTHREADS < 7 12366 status = pthread_attr_setdetachstate(&attr, &detach); 12367 if( status < 0 ) status = errno; 12368#else 12369 status = pthread_attr_setdetachstate(&attr, detach); 12370#endif 12371 if( status ) return status; 12372 status = pthread_create( &t, &attr, task, NULL ); 12373#if HAVE_PTHREADS < 7 12374 if( status < 0 ) status = errno; 12375#endif 12376 if( status ) return status; 12377#else 12378 /* Draft 4 pthreads */ 12379 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12380 if( status ) return errno; 12381 12382 /* give thread a chance to complete */ 12383 /* it should remain joinable and hence detachable */ 12384 sleep( 1 ); 12385 12386 status = pthread_detach( &t ); 12387 if( status ) return errno; 12388#endif 12389 12390#ifdef HAVE_LINUX_THREADS 12391 pthread_kill_other_threads_np(); 12392#endif 12393 12394 return 0; 12395 12396} 12397 12398_ACEOF 12399if ac_fn_c_try_run "$LINENO"; then : 12400 ol_cv_pthread_lpthread=yes 12401else 12402 ol_cv_pthread_lpthread=no 12403fi 12404rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12405 conftest.$ac_objext conftest.beam conftest.$ac_ext 12406fi 12407 12408 12409 # restore the LIBS 12410 LIBS="$ol_LIBS" 12411 12412fi 12413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5 12414$as_echo "$ol_cv_pthread_lpthread" >&6; } 12415 12416 if test $ol_cv_pthread_lpthread = yes ; then 12417 ol_link_pthreads="-lpthread" 12418 ol_link_threads=posix 12419 fi 12420fi 12421 12422 # Pthread try link: -lc_r (ol_cv_pthread_lc_r) 12423if test "$ol_link_threads" = no ; then 12424 # try -lc_r 12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5 12426$as_echo_n "checking for pthread link with -lc_r... " >&6; } 12427if ${ol_cv_pthread_lc_r+:} false; then : 12428 $as_echo_n "(cached) " >&6 12429else 12430 12431 # save the flags 12432 ol_LIBS="$LIBS" 12433 LIBS="-lc_r $LIBS" 12434 12435 if test "$cross_compiling" = yes; then : 12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12437/* end confdefs.h. */ 12438 12439/* pthread test headers */ 12440#include <pthread.h> 12441#if HAVE_PTHREADS < 7 12442#include <errno.h> 12443#endif 12444#ifndef NULL 12445#define NULL (void*)0 12446#endif 12447 12448static void *task(p) 12449 void *p; 12450{ 12451 return (void *) (p == NULL); 12452} 12453 12454int 12455main () 12456{ 12457 12458 /* pthread test function */ 12459#ifndef PTHREAD_CREATE_DETACHED 12460#define PTHREAD_CREATE_DETACHED 1 12461#endif 12462 pthread_t t; 12463 int status; 12464 int detach = PTHREAD_CREATE_DETACHED; 12465 12466#if HAVE_PTHREADS > 4 12467 /* Final pthreads */ 12468 pthread_attr_t attr; 12469 12470 status = pthread_attr_init(&attr); 12471 if( status ) return status; 12472 12473#if HAVE_PTHREADS < 7 12474 status = pthread_attr_setdetachstate(&attr, &detach); 12475 if( status < 0 ) status = errno; 12476#else 12477 status = pthread_attr_setdetachstate(&attr, detach); 12478#endif 12479 if( status ) return status; 12480 status = pthread_create( &t, &attr, task, NULL ); 12481#if HAVE_PTHREADS < 7 12482 if( status < 0 ) status = errno; 12483#endif 12484 if( status ) return status; 12485#else 12486 /* Draft 4 pthreads */ 12487 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12488 if( status ) return errno; 12489 12490 /* give thread a chance to complete */ 12491 /* it should remain joinable and hence detachable */ 12492 sleep( 1 ); 12493 12494 status = pthread_detach( &t ); 12495 if( status ) return errno; 12496#endif 12497 12498#ifdef HAVE_LINUX_THREADS 12499 pthread_kill_other_threads_np(); 12500#endif 12501 12502 return 0; 12503 12504 ; 12505 return 0; 12506} 12507_ACEOF 12508if ac_fn_c_try_link "$LINENO"; then : 12509 ol_cv_pthread_lc_r=yes 12510else 12511 ol_cv_pthread_lc_r=no 12512fi 12513rm -f core conftest.err conftest.$ac_objext \ 12514 conftest$ac_exeext conftest.$ac_ext 12515else 12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12517/* end confdefs.h. */ 12518 12519 12520/* pthread test headers */ 12521#include <pthread.h> 12522#if HAVE_PTHREADS < 7 12523#include <errno.h> 12524#endif 12525#ifndef NULL 12526#define NULL (void*)0 12527#endif 12528 12529static void *task(p) 12530 void *p; 12531{ 12532 return (void *) (p == NULL); 12533} 12534 12535 12536int main(argc, argv) 12537 int argc; 12538 char **argv; 12539{ 12540 12541 /* pthread test function */ 12542#ifndef PTHREAD_CREATE_DETACHED 12543#define PTHREAD_CREATE_DETACHED 1 12544#endif 12545 pthread_t t; 12546 int status; 12547 int detach = PTHREAD_CREATE_DETACHED; 12548 12549#if HAVE_PTHREADS > 4 12550 /* Final pthreads */ 12551 pthread_attr_t attr; 12552 12553 status = pthread_attr_init(&attr); 12554 if( status ) return status; 12555 12556#if HAVE_PTHREADS < 7 12557 status = pthread_attr_setdetachstate(&attr, &detach); 12558 if( status < 0 ) status = errno; 12559#else 12560 status = pthread_attr_setdetachstate(&attr, detach); 12561#endif 12562 if( status ) return status; 12563 status = pthread_create( &t, &attr, task, NULL ); 12564#if HAVE_PTHREADS < 7 12565 if( status < 0 ) status = errno; 12566#endif 12567 if( status ) return status; 12568#else 12569 /* Draft 4 pthreads */ 12570 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12571 if( status ) return errno; 12572 12573 /* give thread a chance to complete */ 12574 /* it should remain joinable and hence detachable */ 12575 sleep( 1 ); 12576 12577 status = pthread_detach( &t ); 12578 if( status ) return errno; 12579#endif 12580 12581#ifdef HAVE_LINUX_THREADS 12582 pthread_kill_other_threads_np(); 12583#endif 12584 12585 return 0; 12586 12587} 12588 12589_ACEOF 12590if ac_fn_c_try_run "$LINENO"; then : 12591 ol_cv_pthread_lc_r=yes 12592else 12593 ol_cv_pthread_lc_r=no 12594fi 12595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12596 conftest.$ac_objext conftest.beam conftest.$ac_ext 12597fi 12598 12599 12600 # restore the LIBS 12601 LIBS="$ol_LIBS" 12602 12603fi 12604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5 12605$as_echo "$ol_cv_pthread_lc_r" >&6; } 12606 12607 if test $ol_cv_pthread_lc_r = yes ; then 12608 ol_link_pthreads="-lc_r" 12609 ol_link_threads=posix 12610 fi 12611fi 12612 12613 12614 # Pthread try link: -threads (ol_cv_pthread_threads) 12615if test "$ol_link_threads" = no ; then 12616 # try -threads 12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5 12618$as_echo_n "checking for pthread link with -threads... " >&6; } 12619if ${ol_cv_pthread_threads+:} false; then : 12620 $as_echo_n "(cached) " >&6 12621else 12622 12623 # save the flags 12624 ol_LIBS="$LIBS" 12625 LIBS="-threads $LIBS" 12626 12627 if test "$cross_compiling" = yes; then : 12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12629/* end confdefs.h. */ 12630 12631/* pthread test headers */ 12632#include <pthread.h> 12633#if HAVE_PTHREADS < 7 12634#include <errno.h> 12635#endif 12636#ifndef NULL 12637#define NULL (void*)0 12638#endif 12639 12640static void *task(p) 12641 void *p; 12642{ 12643 return (void *) (p == NULL); 12644} 12645 12646int 12647main () 12648{ 12649 12650 /* pthread test function */ 12651#ifndef PTHREAD_CREATE_DETACHED 12652#define PTHREAD_CREATE_DETACHED 1 12653#endif 12654 pthread_t t; 12655 int status; 12656 int detach = PTHREAD_CREATE_DETACHED; 12657 12658#if HAVE_PTHREADS > 4 12659 /* Final pthreads */ 12660 pthread_attr_t attr; 12661 12662 status = pthread_attr_init(&attr); 12663 if( status ) return status; 12664 12665#if HAVE_PTHREADS < 7 12666 status = pthread_attr_setdetachstate(&attr, &detach); 12667 if( status < 0 ) status = errno; 12668#else 12669 status = pthread_attr_setdetachstate(&attr, detach); 12670#endif 12671 if( status ) return status; 12672 status = pthread_create( &t, &attr, task, NULL ); 12673#if HAVE_PTHREADS < 7 12674 if( status < 0 ) status = errno; 12675#endif 12676 if( status ) return status; 12677#else 12678 /* Draft 4 pthreads */ 12679 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12680 if( status ) return errno; 12681 12682 /* give thread a chance to complete */ 12683 /* it should remain joinable and hence detachable */ 12684 sleep( 1 ); 12685 12686 status = pthread_detach( &t ); 12687 if( status ) return errno; 12688#endif 12689 12690#ifdef HAVE_LINUX_THREADS 12691 pthread_kill_other_threads_np(); 12692#endif 12693 12694 return 0; 12695 12696 ; 12697 return 0; 12698} 12699_ACEOF 12700if ac_fn_c_try_link "$LINENO"; then : 12701 ol_cv_pthread_threads=yes 12702else 12703 ol_cv_pthread_threads=no 12704fi 12705rm -f core conftest.err conftest.$ac_objext \ 12706 conftest$ac_exeext conftest.$ac_ext 12707else 12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12709/* end confdefs.h. */ 12710 12711 12712/* pthread test headers */ 12713#include <pthread.h> 12714#if HAVE_PTHREADS < 7 12715#include <errno.h> 12716#endif 12717#ifndef NULL 12718#define NULL (void*)0 12719#endif 12720 12721static void *task(p) 12722 void *p; 12723{ 12724 return (void *) (p == NULL); 12725} 12726 12727 12728int main(argc, argv) 12729 int argc; 12730 char **argv; 12731{ 12732 12733 /* pthread test function */ 12734#ifndef PTHREAD_CREATE_DETACHED 12735#define PTHREAD_CREATE_DETACHED 1 12736#endif 12737 pthread_t t; 12738 int status; 12739 int detach = PTHREAD_CREATE_DETACHED; 12740 12741#if HAVE_PTHREADS > 4 12742 /* Final pthreads */ 12743 pthread_attr_t attr; 12744 12745 status = pthread_attr_init(&attr); 12746 if( status ) return status; 12747 12748#if HAVE_PTHREADS < 7 12749 status = pthread_attr_setdetachstate(&attr, &detach); 12750 if( status < 0 ) status = errno; 12751#else 12752 status = pthread_attr_setdetachstate(&attr, detach); 12753#endif 12754 if( status ) return status; 12755 status = pthread_create( &t, &attr, task, NULL ); 12756#if HAVE_PTHREADS < 7 12757 if( status < 0 ) status = errno; 12758#endif 12759 if( status ) return status; 12760#else 12761 /* Draft 4 pthreads */ 12762 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12763 if( status ) return errno; 12764 12765 /* give thread a chance to complete */ 12766 /* it should remain joinable and hence detachable */ 12767 sleep( 1 ); 12768 12769 status = pthread_detach( &t ); 12770 if( status ) return errno; 12771#endif 12772 12773#ifdef HAVE_LINUX_THREADS 12774 pthread_kill_other_threads_np(); 12775#endif 12776 12777 return 0; 12778 12779} 12780 12781_ACEOF 12782if ac_fn_c_try_run "$LINENO"; then : 12783 ol_cv_pthread_threads=yes 12784else 12785 ol_cv_pthread_threads=no 12786fi 12787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12788 conftest.$ac_objext conftest.beam conftest.$ac_ext 12789fi 12790 12791 12792 # restore the LIBS 12793 LIBS="$ol_LIBS" 12794 12795fi 12796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5 12797$as_echo "$ol_cv_pthread_threads" >&6; } 12798 12799 if test $ol_cv_pthread_threads = yes ; then 12800 ol_link_pthreads="-threads" 12801 ol_link_threads=posix 12802 fi 12803fi 12804 12805 12806 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r) 12807if test "$ol_link_threads" = no ; then 12808 # try -lpthreads -lmach -lexc -lc_r 12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5 12810$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; } 12811if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then : 12812 $as_echo_n "(cached) " >&6 12813else 12814 12815 # save the flags 12816 ol_LIBS="$LIBS" 12817 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS" 12818 12819 if test "$cross_compiling" = yes; then : 12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12821/* end confdefs.h. */ 12822 12823/* pthread test headers */ 12824#include <pthread.h> 12825#if HAVE_PTHREADS < 7 12826#include <errno.h> 12827#endif 12828#ifndef NULL 12829#define NULL (void*)0 12830#endif 12831 12832static void *task(p) 12833 void *p; 12834{ 12835 return (void *) (p == NULL); 12836} 12837 12838int 12839main () 12840{ 12841 12842 /* pthread test function */ 12843#ifndef PTHREAD_CREATE_DETACHED 12844#define PTHREAD_CREATE_DETACHED 1 12845#endif 12846 pthread_t t; 12847 int status; 12848 int detach = PTHREAD_CREATE_DETACHED; 12849 12850#if HAVE_PTHREADS > 4 12851 /* Final pthreads */ 12852 pthread_attr_t attr; 12853 12854 status = pthread_attr_init(&attr); 12855 if( status ) return status; 12856 12857#if HAVE_PTHREADS < 7 12858 status = pthread_attr_setdetachstate(&attr, &detach); 12859 if( status < 0 ) status = errno; 12860#else 12861 status = pthread_attr_setdetachstate(&attr, detach); 12862#endif 12863 if( status ) return status; 12864 status = pthread_create( &t, &attr, task, NULL ); 12865#if HAVE_PTHREADS < 7 12866 if( status < 0 ) status = errno; 12867#endif 12868 if( status ) return status; 12869#else 12870 /* Draft 4 pthreads */ 12871 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12872 if( status ) return errno; 12873 12874 /* give thread a chance to complete */ 12875 /* it should remain joinable and hence detachable */ 12876 sleep( 1 ); 12877 12878 status = pthread_detach( &t ); 12879 if( status ) return errno; 12880#endif 12881 12882#ifdef HAVE_LINUX_THREADS 12883 pthread_kill_other_threads_np(); 12884#endif 12885 12886 return 0; 12887 12888 ; 12889 return 0; 12890} 12891_ACEOF 12892if ac_fn_c_try_link "$LINENO"; then : 12893 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 12894else 12895 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 12896fi 12897rm -f core conftest.err conftest.$ac_objext \ 12898 conftest$ac_exeext conftest.$ac_ext 12899else 12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12901/* end confdefs.h. */ 12902 12903 12904/* pthread test headers */ 12905#include <pthread.h> 12906#if HAVE_PTHREADS < 7 12907#include <errno.h> 12908#endif 12909#ifndef NULL 12910#define NULL (void*)0 12911#endif 12912 12913static void *task(p) 12914 void *p; 12915{ 12916 return (void *) (p == NULL); 12917} 12918 12919 12920int main(argc, argv) 12921 int argc; 12922 char **argv; 12923{ 12924 12925 /* pthread test function */ 12926#ifndef PTHREAD_CREATE_DETACHED 12927#define PTHREAD_CREATE_DETACHED 1 12928#endif 12929 pthread_t t; 12930 int status; 12931 int detach = PTHREAD_CREATE_DETACHED; 12932 12933#if HAVE_PTHREADS > 4 12934 /* Final pthreads */ 12935 pthread_attr_t attr; 12936 12937 status = pthread_attr_init(&attr); 12938 if( status ) return status; 12939 12940#if HAVE_PTHREADS < 7 12941 status = pthread_attr_setdetachstate(&attr, &detach); 12942 if( status < 0 ) status = errno; 12943#else 12944 status = pthread_attr_setdetachstate(&attr, detach); 12945#endif 12946 if( status ) return status; 12947 status = pthread_create( &t, &attr, task, NULL ); 12948#if HAVE_PTHREADS < 7 12949 if( status < 0 ) status = errno; 12950#endif 12951 if( status ) return status; 12952#else 12953 /* Draft 4 pthreads */ 12954 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12955 if( status ) return errno; 12956 12957 /* give thread a chance to complete */ 12958 /* it should remain joinable and hence detachable */ 12959 sleep( 1 ); 12960 12961 status = pthread_detach( &t ); 12962 if( status ) return errno; 12963#endif 12964 12965#ifdef HAVE_LINUX_THREADS 12966 pthread_kill_other_threads_np(); 12967#endif 12968 12969 return 0; 12970 12971} 12972 12973_ACEOF 12974if ac_fn_c_try_run "$LINENO"; then : 12975 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 12976else 12977 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 12978fi 12979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12980 conftest.$ac_objext conftest.beam conftest.$ac_ext 12981fi 12982 12983 12984 # restore the LIBS 12985 LIBS="$ol_LIBS" 12986 12987fi 12988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5 12989$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; } 12990 12991 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then 12992 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r" 12993 ol_link_threads=posix 12994 fi 12995fi 12996 12997 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc) 12998if test "$ol_link_threads" = no ; then 12999 # try -lpthreads -lmach -lexc 13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5 13001$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; } 13002if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then : 13003 $as_echo_n "(cached) " >&6 13004else 13005 13006 # save the flags 13007 ol_LIBS="$LIBS" 13008 LIBS="-lpthreads -lmach -lexc $LIBS" 13009 13010 if test "$cross_compiling" = yes; then : 13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13012/* end confdefs.h. */ 13013 13014/* pthread test headers */ 13015#include <pthread.h> 13016#if HAVE_PTHREADS < 7 13017#include <errno.h> 13018#endif 13019#ifndef NULL 13020#define NULL (void*)0 13021#endif 13022 13023static void *task(p) 13024 void *p; 13025{ 13026 return (void *) (p == NULL); 13027} 13028 13029int 13030main () 13031{ 13032 13033 /* pthread test function */ 13034#ifndef PTHREAD_CREATE_DETACHED 13035#define PTHREAD_CREATE_DETACHED 1 13036#endif 13037 pthread_t t; 13038 int status; 13039 int detach = PTHREAD_CREATE_DETACHED; 13040 13041#if HAVE_PTHREADS > 4 13042 /* Final pthreads */ 13043 pthread_attr_t attr; 13044 13045 status = pthread_attr_init(&attr); 13046 if( status ) return status; 13047 13048#if HAVE_PTHREADS < 7 13049 status = pthread_attr_setdetachstate(&attr, &detach); 13050 if( status < 0 ) status = errno; 13051#else 13052 status = pthread_attr_setdetachstate(&attr, detach); 13053#endif 13054 if( status ) return status; 13055 status = pthread_create( &t, &attr, task, NULL ); 13056#if HAVE_PTHREADS < 7 13057 if( status < 0 ) status = errno; 13058#endif 13059 if( status ) return status; 13060#else 13061 /* Draft 4 pthreads */ 13062 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13063 if( status ) return errno; 13064 13065 /* give thread a chance to complete */ 13066 /* it should remain joinable and hence detachable */ 13067 sleep( 1 ); 13068 13069 status = pthread_detach( &t ); 13070 if( status ) return errno; 13071#endif 13072 13073#ifdef HAVE_LINUX_THREADS 13074 pthread_kill_other_threads_np(); 13075#endif 13076 13077 return 0; 13078 13079 ; 13080 return 0; 13081} 13082_ACEOF 13083if ac_fn_c_try_link "$LINENO"; then : 13084 ol_cv_pthread_lpthreads_lmach_lexc=yes 13085else 13086 ol_cv_pthread_lpthreads_lmach_lexc=no 13087fi 13088rm -f core conftest.err conftest.$ac_objext \ 13089 conftest$ac_exeext conftest.$ac_ext 13090else 13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13092/* end confdefs.h. */ 13093 13094 13095/* pthread test headers */ 13096#include <pthread.h> 13097#if HAVE_PTHREADS < 7 13098#include <errno.h> 13099#endif 13100#ifndef NULL 13101#define NULL (void*)0 13102#endif 13103 13104static void *task(p) 13105 void *p; 13106{ 13107 return (void *) (p == NULL); 13108} 13109 13110 13111int main(argc, argv) 13112 int argc; 13113 char **argv; 13114{ 13115 13116 /* pthread test function */ 13117#ifndef PTHREAD_CREATE_DETACHED 13118#define PTHREAD_CREATE_DETACHED 1 13119#endif 13120 pthread_t t; 13121 int status; 13122 int detach = PTHREAD_CREATE_DETACHED; 13123 13124#if HAVE_PTHREADS > 4 13125 /* Final pthreads */ 13126 pthread_attr_t attr; 13127 13128 status = pthread_attr_init(&attr); 13129 if( status ) return status; 13130 13131#if HAVE_PTHREADS < 7 13132 status = pthread_attr_setdetachstate(&attr, &detach); 13133 if( status < 0 ) status = errno; 13134#else 13135 status = pthread_attr_setdetachstate(&attr, detach); 13136#endif 13137 if( status ) return status; 13138 status = pthread_create( &t, &attr, task, NULL ); 13139#if HAVE_PTHREADS < 7 13140 if( status < 0 ) status = errno; 13141#endif 13142 if( status ) return status; 13143#else 13144 /* Draft 4 pthreads */ 13145 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13146 if( status ) return errno; 13147 13148 /* give thread a chance to complete */ 13149 /* it should remain joinable and hence detachable */ 13150 sleep( 1 ); 13151 13152 status = pthread_detach( &t ); 13153 if( status ) return errno; 13154#endif 13155 13156#ifdef HAVE_LINUX_THREADS 13157 pthread_kill_other_threads_np(); 13158#endif 13159 13160 return 0; 13161 13162} 13163 13164_ACEOF 13165if ac_fn_c_try_run "$LINENO"; then : 13166 ol_cv_pthread_lpthreads_lmach_lexc=yes 13167else 13168 ol_cv_pthread_lpthreads_lmach_lexc=no 13169fi 13170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13171 conftest.$ac_objext conftest.beam conftest.$ac_ext 13172fi 13173 13174 13175 # restore the LIBS 13176 LIBS="$ol_LIBS" 13177 13178fi 13179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5 13180$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; } 13181 13182 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then 13183 ol_link_pthreads="-lpthreads -lmach -lexc" 13184 ol_link_threads=posix 13185 fi 13186fi 13187 13188 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc) 13189if test "$ol_link_threads" = no ; then 13190 # try -lpthreads -lexc 13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5 13192$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; } 13193if ${ol_cv_pthread_lpthreads_lexc+:} false; then : 13194 $as_echo_n "(cached) " >&6 13195else 13196 13197 # save the flags 13198 ol_LIBS="$LIBS" 13199 LIBS="-lpthreads -lexc $LIBS" 13200 13201 if test "$cross_compiling" = yes; then : 13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13203/* end confdefs.h. */ 13204 13205/* pthread test headers */ 13206#include <pthread.h> 13207#if HAVE_PTHREADS < 7 13208#include <errno.h> 13209#endif 13210#ifndef NULL 13211#define NULL (void*)0 13212#endif 13213 13214static void *task(p) 13215 void *p; 13216{ 13217 return (void *) (p == NULL); 13218} 13219 13220int 13221main () 13222{ 13223 13224 /* pthread test function */ 13225#ifndef PTHREAD_CREATE_DETACHED 13226#define PTHREAD_CREATE_DETACHED 1 13227#endif 13228 pthread_t t; 13229 int status; 13230 int detach = PTHREAD_CREATE_DETACHED; 13231 13232#if HAVE_PTHREADS > 4 13233 /* Final pthreads */ 13234 pthread_attr_t attr; 13235 13236 status = pthread_attr_init(&attr); 13237 if( status ) return status; 13238 13239#if HAVE_PTHREADS < 7 13240 status = pthread_attr_setdetachstate(&attr, &detach); 13241 if( status < 0 ) status = errno; 13242#else 13243 status = pthread_attr_setdetachstate(&attr, detach); 13244#endif 13245 if( status ) return status; 13246 status = pthread_create( &t, &attr, task, NULL ); 13247#if HAVE_PTHREADS < 7 13248 if( status < 0 ) status = errno; 13249#endif 13250 if( status ) return status; 13251#else 13252 /* Draft 4 pthreads */ 13253 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13254 if( status ) return errno; 13255 13256 /* give thread a chance to complete */ 13257 /* it should remain joinable and hence detachable */ 13258 sleep( 1 ); 13259 13260 status = pthread_detach( &t ); 13261 if( status ) return errno; 13262#endif 13263 13264#ifdef HAVE_LINUX_THREADS 13265 pthread_kill_other_threads_np(); 13266#endif 13267 13268 return 0; 13269 13270 ; 13271 return 0; 13272} 13273_ACEOF 13274if ac_fn_c_try_link "$LINENO"; then : 13275 ol_cv_pthread_lpthreads_lexc=yes 13276else 13277 ol_cv_pthread_lpthreads_lexc=no 13278fi 13279rm -f core conftest.err conftest.$ac_objext \ 13280 conftest$ac_exeext conftest.$ac_ext 13281else 13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13283/* end confdefs.h. */ 13284 13285 13286/* pthread test headers */ 13287#include <pthread.h> 13288#if HAVE_PTHREADS < 7 13289#include <errno.h> 13290#endif 13291#ifndef NULL 13292#define NULL (void*)0 13293#endif 13294 13295static void *task(p) 13296 void *p; 13297{ 13298 return (void *) (p == NULL); 13299} 13300 13301 13302int main(argc, argv) 13303 int argc; 13304 char **argv; 13305{ 13306 13307 /* pthread test function */ 13308#ifndef PTHREAD_CREATE_DETACHED 13309#define PTHREAD_CREATE_DETACHED 1 13310#endif 13311 pthread_t t; 13312 int status; 13313 int detach = PTHREAD_CREATE_DETACHED; 13314 13315#if HAVE_PTHREADS > 4 13316 /* Final pthreads */ 13317 pthread_attr_t attr; 13318 13319 status = pthread_attr_init(&attr); 13320 if( status ) return status; 13321 13322#if HAVE_PTHREADS < 7 13323 status = pthread_attr_setdetachstate(&attr, &detach); 13324 if( status < 0 ) status = errno; 13325#else 13326 status = pthread_attr_setdetachstate(&attr, detach); 13327#endif 13328 if( status ) return status; 13329 status = pthread_create( &t, &attr, task, NULL ); 13330#if HAVE_PTHREADS < 7 13331 if( status < 0 ) status = errno; 13332#endif 13333 if( status ) return status; 13334#else 13335 /* Draft 4 pthreads */ 13336 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13337 if( status ) return errno; 13338 13339 /* give thread a chance to complete */ 13340 /* it should remain joinable and hence detachable */ 13341 sleep( 1 ); 13342 13343 status = pthread_detach( &t ); 13344 if( status ) return errno; 13345#endif 13346 13347#ifdef HAVE_LINUX_THREADS 13348 pthread_kill_other_threads_np(); 13349#endif 13350 13351 return 0; 13352 13353} 13354 13355_ACEOF 13356if ac_fn_c_try_run "$LINENO"; then : 13357 ol_cv_pthread_lpthreads_lexc=yes 13358else 13359 ol_cv_pthread_lpthreads_lexc=no 13360fi 13361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13362 conftest.$ac_objext conftest.beam conftest.$ac_ext 13363fi 13364 13365 13366 # restore the LIBS 13367 LIBS="$ol_LIBS" 13368 13369fi 13370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5 13371$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; } 13372 13373 if test $ol_cv_pthread_lpthreads_lexc = yes ; then 13374 ol_link_pthreads="-lpthreads -lexc" 13375 ol_link_threads=posix 13376 fi 13377fi 13378 13379 13380 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads) 13381if test "$ol_link_threads" = no ; then 13382 # try -lpthreads 13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5 13384$as_echo_n "checking for pthread link with -lpthreads... " >&6; } 13385if ${ol_cv_pthread_lib_lpthreads+:} false; then : 13386 $as_echo_n "(cached) " >&6 13387else 13388 13389 # save the flags 13390 ol_LIBS="$LIBS" 13391 LIBS="-lpthreads $LIBS" 13392 13393 if test "$cross_compiling" = yes; then : 13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13395/* end confdefs.h. */ 13396 13397/* pthread test headers */ 13398#include <pthread.h> 13399#if HAVE_PTHREADS < 7 13400#include <errno.h> 13401#endif 13402#ifndef NULL 13403#define NULL (void*)0 13404#endif 13405 13406static void *task(p) 13407 void *p; 13408{ 13409 return (void *) (p == NULL); 13410} 13411 13412int 13413main () 13414{ 13415 13416 /* pthread test function */ 13417#ifndef PTHREAD_CREATE_DETACHED 13418#define PTHREAD_CREATE_DETACHED 1 13419#endif 13420 pthread_t t; 13421 int status; 13422 int detach = PTHREAD_CREATE_DETACHED; 13423 13424#if HAVE_PTHREADS > 4 13425 /* Final pthreads */ 13426 pthread_attr_t attr; 13427 13428 status = pthread_attr_init(&attr); 13429 if( status ) return status; 13430 13431#if HAVE_PTHREADS < 7 13432 status = pthread_attr_setdetachstate(&attr, &detach); 13433 if( status < 0 ) status = errno; 13434#else 13435 status = pthread_attr_setdetachstate(&attr, detach); 13436#endif 13437 if( status ) return status; 13438 status = pthread_create( &t, &attr, task, NULL ); 13439#if HAVE_PTHREADS < 7 13440 if( status < 0 ) status = errno; 13441#endif 13442 if( status ) return status; 13443#else 13444 /* Draft 4 pthreads */ 13445 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13446 if( status ) return errno; 13447 13448 /* give thread a chance to complete */ 13449 /* it should remain joinable and hence detachable */ 13450 sleep( 1 ); 13451 13452 status = pthread_detach( &t ); 13453 if( status ) return errno; 13454#endif 13455 13456#ifdef HAVE_LINUX_THREADS 13457 pthread_kill_other_threads_np(); 13458#endif 13459 13460 return 0; 13461 13462 ; 13463 return 0; 13464} 13465_ACEOF 13466if ac_fn_c_try_link "$LINENO"; then : 13467 ol_cv_pthread_lib_lpthreads=yes 13468else 13469 ol_cv_pthread_lib_lpthreads=no 13470fi 13471rm -f core conftest.err conftest.$ac_objext \ 13472 conftest$ac_exeext conftest.$ac_ext 13473else 13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13475/* end confdefs.h. */ 13476 13477 13478/* pthread test headers */ 13479#include <pthread.h> 13480#if HAVE_PTHREADS < 7 13481#include <errno.h> 13482#endif 13483#ifndef NULL 13484#define NULL (void*)0 13485#endif 13486 13487static void *task(p) 13488 void *p; 13489{ 13490 return (void *) (p == NULL); 13491} 13492 13493 13494int main(argc, argv) 13495 int argc; 13496 char **argv; 13497{ 13498 13499 /* pthread test function */ 13500#ifndef PTHREAD_CREATE_DETACHED 13501#define PTHREAD_CREATE_DETACHED 1 13502#endif 13503 pthread_t t; 13504 int status; 13505 int detach = PTHREAD_CREATE_DETACHED; 13506 13507#if HAVE_PTHREADS > 4 13508 /* Final pthreads */ 13509 pthread_attr_t attr; 13510 13511 status = pthread_attr_init(&attr); 13512 if( status ) return status; 13513 13514#if HAVE_PTHREADS < 7 13515 status = pthread_attr_setdetachstate(&attr, &detach); 13516 if( status < 0 ) status = errno; 13517#else 13518 status = pthread_attr_setdetachstate(&attr, detach); 13519#endif 13520 if( status ) return status; 13521 status = pthread_create( &t, &attr, task, NULL ); 13522#if HAVE_PTHREADS < 7 13523 if( status < 0 ) status = errno; 13524#endif 13525 if( status ) return status; 13526#else 13527 /* Draft 4 pthreads */ 13528 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13529 if( status ) return errno; 13530 13531 /* give thread a chance to complete */ 13532 /* it should remain joinable and hence detachable */ 13533 sleep( 1 ); 13534 13535 status = pthread_detach( &t ); 13536 if( status ) return errno; 13537#endif 13538 13539#ifdef HAVE_LINUX_THREADS 13540 pthread_kill_other_threads_np(); 13541#endif 13542 13543 return 0; 13544 13545} 13546 13547_ACEOF 13548if ac_fn_c_try_run "$LINENO"; then : 13549 ol_cv_pthread_lib_lpthreads=yes 13550else 13551 ol_cv_pthread_lib_lpthreads=no 13552fi 13553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13554 conftest.$ac_objext conftest.beam conftest.$ac_ext 13555fi 13556 13557 13558 # restore the LIBS 13559 LIBS="$ol_LIBS" 13560 13561fi 13562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5 13563$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; } 13564 13565 if test $ol_cv_pthread_lib_lpthreads = yes ; then 13566 ol_link_pthreads="-lpthreads" 13567 ol_link_threads=posix 13568 fi 13569fi 13570 13571 13572 if test $ol_link_threads != no ; then 13573 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads" 13574 13575 save_CPPFLAGS="$CPPFLAGS" 13576 save_LIBS="$LIBS" 13577 LIBS="$LTHREAD_LIBS $LIBS" 13578 13579 for ac_func in sched_yield pthread_yield thr_yield 13580do : 13581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13582ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13583if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13584 cat >>confdefs.h <<_ACEOF 13585#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13586_ACEOF 13587 13588fi 13589done 13590 13591 13592 if test $ac_cv_func_sched_yield = no && 13593 test $ac_cv_func_pthread_yield = no && 13594 test $ac_cv_func_thr_yield = no ; then 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 13596$as_echo_n "checking for sched_yield in -lrt... " >&6; } 13597if ${ac_cv_lib_rt_sched_yield+:} false; then : 13598 $as_echo_n "(cached) " >&6 13599else 13600 ac_check_lib_save_LIBS=$LIBS 13601LIBS="-lrt $LIBS" 13602cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13603/* end confdefs.h. */ 13604 13605/* Override any GCC internal prototype to avoid an error. 13606 Use char because int might match the return type of a GCC 13607 builtin and then its argument prototype would still apply. */ 13608#ifdef __cplusplus 13609extern "C" 13610#endif 13611char sched_yield (); 13612int 13613main () 13614{ 13615return sched_yield (); 13616 ; 13617 return 0; 13618} 13619_ACEOF 13620if ac_fn_c_try_link "$LINENO"; then : 13621 ac_cv_lib_rt_sched_yield=yes 13622else 13623 ac_cv_lib_rt_sched_yield=no 13624fi 13625rm -f core conftest.err conftest.$ac_objext \ 13626 conftest$ac_exeext conftest.$ac_ext 13627LIBS=$ac_check_lib_save_LIBS 13628fi 13629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 13630$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 13631if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 13632 LTHREAD_LIBS="$LTHREAD_LIBS -lrt" 13633 13634$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h 13635 13636 ac_cv_func_sched_yield=yes 13637else 13638 ac_cv_func_sched_yield=no 13639fi 13640 13641 fi 13642 if test $ac_cv_func_sched_yield = no && 13643 test $ac_cv_func_pthread_yield = no && 13644 test "$ac_cv_func_thr_yield" = no ; then 13645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5 13646$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;} 13647 fi 13648 13649 for ac_func in pthread_kill 13650do : 13651 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill" 13652if test "x$ac_cv_func_pthread_kill" = xyes; then : 13653 cat >>confdefs.h <<_ACEOF 13654#define HAVE_PTHREAD_KILL 1 13655_ACEOF 13656 13657fi 13658done 13659 13660 13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5 13662$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; } 13663if ${ol_cv_func_pthread_rwlock_destroy+:} false; then : 13664 $as_echo_n "(cached) " >&6 13665else 13666 13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13668/* end confdefs.h. */ 13669 13670#include <pthread.h> 13671pthread_rwlock_t rwlock; 13672 13673int 13674main () 13675{ 13676pthread_rwlock_destroy(&rwlock); 13677 ; 13678 return 0; 13679} 13680_ACEOF 13681if ac_fn_c_try_link "$LINENO"; then : 13682 ol_cv_func_pthread_rwlock_destroy=yes 13683else 13684 ol_cv_func_pthread_rwlock_destroy=no 13685fi 13686rm -f core conftest.err conftest.$ac_objext \ 13687 conftest$ac_exeext conftest.$ac_ext 13688 13689fi 13690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5 13691$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; } 13692 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then 13693 13694$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h 13695 13696 fi 13697 13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5 13699$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; } 13700if ${ol_cv_func_pthread_detach+:} false; then : 13701 $as_echo_n "(cached) " >&6 13702else 13703 13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13705/* end confdefs.h. */ 13706 13707#include <pthread.h> 13708#ifndef NULL 13709#define NULL (void*)0 13710#endif 13711 13712int 13713main () 13714{ 13715pthread_detach(NULL); 13716 ; 13717 return 0; 13718} 13719_ACEOF 13720if ac_fn_c_try_link "$LINENO"; then : 13721 ol_cv_func_pthread_detach=yes 13722else 13723 ol_cv_func_pthread_detach=no 13724fi 13725rm -f core conftest.err conftest.$ac_objext \ 13726 conftest$ac_exeext conftest.$ac_ext 13727 13728fi 13729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5 13730$as_echo "$ol_cv_func_pthread_detach" >&6; } 13731 13732 if test $ol_cv_func_pthread_detach = no ; then 13733 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5 13734 fi 13735 13736 13737$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h 13738 13739 13740 for ac_func in \ 13741 pthread_setconcurrency \ 13742 pthread_getconcurrency \ 13743 thr_setconcurrency \ 13744 thr_getconcurrency \ 13745 13746do : 13747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13748ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13749if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13750 cat >>confdefs.h <<_ACEOF 13751#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13752_ACEOF 13753 13754fi 13755done 13756 13757 13758 13759 for ac_func in pthread_kill_other_threads_np 13760do : 13761 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np" 13762if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then : 13763 cat >>confdefs.h <<_ACEOF 13764#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1 13765_ACEOF 13766 13767fi 13768done 13769 13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5 13771$as_echo_n "checking for LinuxThreads implementation... " >&6; } 13772if ${ol_cv_sys_linux_threads+:} false; then : 13773 $as_echo_n "(cached) " >&6 13774else 13775 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np 13776fi 13777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5 13778$as_echo "$ol_cv_sys_linux_threads" >&6; } 13779 13780 13781 13782 13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5 13784$as_echo_n "checking for LinuxThreads consistency... " >&6; } 13785if ${ol_cv_linux_threads+:} false; then : 13786 $as_echo_n "(cached) " >&6 13787else 13788 13789 if test $ol_cv_header_linux_threads = yes && 13790 test $ol_cv_sys_linux_threads = yes; then 13791 ol_cv_linux_threads=yes 13792 elif test $ol_cv_header_linux_threads = no && 13793 test $ol_cv_sys_linux_threads = no; then 13794 ol_cv_linux_threads=no 13795 else 13796 ol_cv_linux_threads=error 13797 fi 13798 13799fi 13800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5 13801$as_echo "$ol_cv_linux_threads" >&6; } 13802 13803 13804 if test $ol_cv_linux_threads = error; then 13805 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5; 13806 fi 13807 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5 13809$as_echo_n "checking if pthread_create() works... " >&6; } 13810if ${ol_cv_pthread_create_works+:} false; then : 13811 $as_echo_n "(cached) " >&6 13812else 13813 13814 if test "$cross_compiling" = yes; then : 13815 ol_cv_pthread_create_works=yes 13816else 13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13818/* end confdefs.h. */ 13819 13820 13821/* pthread test headers */ 13822#include <pthread.h> 13823#if HAVE_PTHREADS < 7 13824#include <errno.h> 13825#endif 13826#ifndef NULL 13827#define NULL (void*)0 13828#endif 13829 13830static void *task(p) 13831 void *p; 13832{ 13833 return (void *) (p == NULL); 13834} 13835 13836 13837int main(argc, argv) 13838 int argc; 13839 char **argv; 13840{ 13841 13842 /* pthread test function */ 13843#ifndef PTHREAD_CREATE_DETACHED 13844#define PTHREAD_CREATE_DETACHED 1 13845#endif 13846 pthread_t t; 13847 int status; 13848 int detach = PTHREAD_CREATE_DETACHED; 13849 13850#if HAVE_PTHREADS > 4 13851 /* Final pthreads */ 13852 pthread_attr_t attr; 13853 13854 status = pthread_attr_init(&attr); 13855 if( status ) return status; 13856 13857#if HAVE_PTHREADS < 7 13858 status = pthread_attr_setdetachstate(&attr, &detach); 13859 if( status < 0 ) status = errno; 13860#else 13861 status = pthread_attr_setdetachstate(&attr, detach); 13862#endif 13863 if( status ) return status; 13864 status = pthread_create( &t, &attr, task, NULL ); 13865#if HAVE_PTHREADS < 7 13866 if( status < 0 ) status = errno; 13867#endif 13868 if( status ) return status; 13869#else 13870 /* Draft 4 pthreads */ 13871 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13872 if( status ) return errno; 13873 13874 /* give thread a chance to complete */ 13875 /* it should remain joinable and hence detachable */ 13876 sleep( 1 ); 13877 13878 status = pthread_detach( &t ); 13879 if( status ) return errno; 13880#endif 13881 13882#ifdef HAVE_LINUX_THREADS 13883 pthread_kill_other_threads_np(); 13884#endif 13885 13886 return 0; 13887 13888} 13889 13890_ACEOF 13891if ac_fn_c_try_run "$LINENO"; then : 13892 ol_cv_pthread_create_works=yes 13893else 13894 ol_cv_pthread_create_works=no 13895fi 13896rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13897 conftest.$ac_objext conftest.beam conftest.$ac_ext 13898fi 13899 13900fi 13901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5 13902$as_echo "$ol_cv_pthread_create_works" >&6; } 13903 13904 if test $ol_cv_pthread_create_works = no ; then 13905 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5 13906 fi 13907 13908 ol_replace_broken_yield=no 13909 13910 if test $ol_replace_broken_yield = yes ; then 13911 13912$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h 13913 13914 fi 13915 13916 if test x$ol_with_yielding_select = xauto ; then 13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5 13918$as_echo_n "checking if select yields when using pthreads... " >&6; } 13919if ${ol_cv_pthread_select_yields+:} false; then : 13920 $as_echo_n "(cached) " >&6 13921else 13922 13923 if test "$cross_compiling" = yes; then : 13924 ol_cv_pthread_select_yields=cross 13925else 13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13927/* end confdefs.h. */ 13928 13929#include <sys/types.h> 13930#include <sys/time.h> 13931#include <unistd.h> 13932#include <pthread.h> 13933#ifndef NULL 13934#define NULL (void*) 0 13935#endif 13936 13937static int fildes[2]; 13938 13939static void *task(p) 13940 void *p; 13941{ 13942 int i; 13943 struct timeval tv; 13944 13945 fd_set rfds; 13946 13947 tv.tv_sec=10; 13948 tv.tv_usec=0; 13949 13950 FD_ZERO(&rfds); 13951 FD_SET(fildes[0], &rfds); 13952 13953 /* we're not interested in any fds */ 13954 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv); 13955 13956 if(i < 0) { 13957 perror("select"); 13958 exit(10); 13959 } 13960 13961 exit(0); /* if we exit here, the select blocked the whole process */ 13962} 13963 13964int main(argc, argv) 13965 int argc; 13966 char **argv; 13967{ 13968 pthread_t t; 13969 13970 /* create a pipe to select */ 13971 if(pipe(&fildes[0])) { 13972 perror("select"); 13973 exit(1); 13974 } 13975 13976#ifdef HAVE_PTHREAD_SETCONCURRENCY 13977 (void) pthread_setconcurrency(2); 13978#else 13979#ifdef HAVE_THR_SETCONCURRENCY 13980 /* Set Solaris LWP concurrency to 2 */ 13981 thr_setconcurrency(2); 13982#endif 13983#endif 13984 13985#if HAVE_PTHREADS < 6 13986 pthread_create(&t, pthread_attr_default, task, NULL); 13987#else 13988 pthread_create(&t, NULL, task, NULL); 13989#endif 13990 13991 /* make sure task runs first */ 13992#ifdef HAVE_THR_YIELD 13993 thr_yield(); 13994#elif defined( HAVE_SCHED_YIELD ) 13995 sched_yield(); 13996#elif defined( HAVE_PTHREAD_YIELD ) 13997 pthread_yield(); 13998#endif 13999 14000 exit(2); 14001} 14002_ACEOF 14003if ac_fn_c_try_run "$LINENO"; then : 14004 ol_cv_pthread_select_yields=no 14005else 14006 ol_cv_pthread_select_yields=yes 14007fi 14008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14009 conftest.$ac_objext conftest.beam conftest.$ac_ext 14010fi 14011 14012fi 14013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5 14014$as_echo "$ol_cv_pthread_select_yields" >&6; } 14015 14016 if test $ol_cv_pthread_select_yields = cross ; then 14017 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5 14018 fi 14019 14020 if test $ol_cv_pthread_select_yields = yes ; then 14021 ol_with_yielding_select=yes 14022 fi 14023 fi 14024 14025 CPPFLAGS="$save_CPPFLAGS" 14026 LIBS="$save_LIBS" 14027 else 14028 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5 14029 fi 14030 fi 14031 14032 if test $ol_with_threads = posix ; then 14033 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5 14034 fi 14035 ;; 14036esac 14037 14038case $ol_with_threads in auto | yes | mach) 14039 14040 for ac_header in mach/cthreads.h cthreads.h 14041do : 14042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14043ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14044if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14045 cat >>confdefs.h <<_ACEOF 14046#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14047_ACEOF 14048 14049fi 14050 14051done 14052 14053 if test $ac_cv_header_mach_cthreads_h = yes ; then 14054 ol_with_threads=found 14055 14056 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 14057if test "x$ac_cv_func_cthread_fork" = xyes; then : 14058 ol_link_threads=yes 14059fi 14060 14061 14062 if test $ol_link_threads = no ; then 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5 14064$as_echo_n "checking for cthread_fork with -all_load... " >&6; } 14065if ${ol_cv_cthread_all_load+:} false; then : 14066 $as_echo_n "(cached) " >&6 14067else 14068 14069 save_LIBS="$LIBS" 14070 LIBS="-all_load $LIBS" 14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14072/* end confdefs.h. */ 14073#include <mach/cthreads.h> 14074int 14075main () 14076{ 14077 14078 cthread_fork((void *)0, (void *)0); 14079 14080 ; 14081 return 0; 14082} 14083_ACEOF 14084if ac_fn_c_try_link "$LINENO"; then : 14085 ol_cv_cthread_all_load=yes 14086else 14087 ol_cv_cthread_all_load=no 14088fi 14089rm -f core conftest.err conftest.$ac_objext \ 14090 conftest$ac_exeext conftest.$ac_ext 14091 LIBS="$save_LIBS" 14092 14093fi 14094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5 14095$as_echo "$ol_cv_cthread_all_load" >&6; } 14096 14097 if test $ol_cv_cthread_all_load = yes ; then 14098 LTHREAD_LIBS="$LTHREAD_LIBS -all_load" 14099 ol_link_threads=mach 14100 ol_with_threads=found 14101 fi 14102 fi 14103 14104 elif test $ac_cv_header_cthreads_h = yes ; then 14105 14106 ol_with_threads=found 14107 14108 save_LIBS="$LIBS" 14109 LIBS="$LIBS -lthreads" 14110 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 14111if test "x$ac_cv_func_cthread_fork" = xyes; then : 14112 ol_link_threads=yes 14113fi 14114 14115 LIBS="$save_LIBS" 14116 14117 if test $ol_link_threads = yes ; then 14118 LTHREAD_LIBS="-lthreads" 14119 ol_link_threads=mach 14120 ol_with_threads=found 14121 else 14122 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 14123 fi 14124 14125 elif test $ol_with_threads = mach ; then 14126 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5 14127 fi 14128 14129 if test $ol_link_threads = mach ; then 14130 14131$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h 14132 14133 elif test $ol_with_threads = found ; then 14134 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 14135 fi 14136 ;; 14137esac 14138 14139case $ol_with_threads in auto | yes | pth) 14140 14141 for ac_header in pth.h 14142do : 14143 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default" 14144if test "x$ac_cv_header_pth_h" = xyes; then : 14145 cat >>confdefs.h <<_ACEOF 14146#define HAVE_PTH_H 1 14147_ACEOF 14148 14149fi 14150 14151done 14152 14153 14154 if test $ac_cv_header_pth_h = yes ; then 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5 14156$as_echo_n "checking for pth_version in -lpth... " >&6; } 14157if ${ac_cv_lib_pth_pth_version+:} false; then : 14158 $as_echo_n "(cached) " >&6 14159else 14160 ac_check_lib_save_LIBS=$LIBS 14161LIBS="-lpth $LIBS" 14162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14163/* end confdefs.h. */ 14164 14165/* Override any GCC internal prototype to avoid an error. 14166 Use char because int might match the return type of a GCC 14167 builtin and then its argument prototype would still apply. */ 14168#ifdef __cplusplus 14169extern "C" 14170#endif 14171char pth_version (); 14172int 14173main () 14174{ 14175return pth_version (); 14176 ; 14177 return 0; 14178} 14179_ACEOF 14180if ac_fn_c_try_link "$LINENO"; then : 14181 ac_cv_lib_pth_pth_version=yes 14182else 14183 ac_cv_lib_pth_pth_version=no 14184fi 14185rm -f core conftest.err conftest.$ac_objext \ 14186 conftest$ac_exeext conftest.$ac_ext 14187LIBS=$ac_check_lib_save_LIBS 14188fi 14189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5 14190$as_echo "$ac_cv_lib_pth_pth_version" >&6; } 14191if test "x$ac_cv_lib_pth_pth_version" = xyes; then : 14192 have_pth=yes 14193else 14194 have_pth=no 14195fi 14196 14197 14198 if test $have_pth = yes ; then 14199 14200$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h 14201 14202 LTHREAD_LIBS="$LTHREAD_LIBS -lpth" 14203 ol_link_threads=pth 14204 ol_with_threads=found 14205 14206 if test x$ol_with_yielding_select = xauto ; then 14207 ol_with_yielding_select=yes 14208 fi 14209 fi 14210 fi 14211 ;; 14212esac 14213 14214case $ol_with_threads in auto | yes | lwp) 14215 14216 for ac_header in thread.h synch.h 14217do : 14218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14219ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14220if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14221 cat >>confdefs.h <<_ACEOF 14222#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14223_ACEOF 14224 14225fi 14226 14227done 14228 14229 if test $ac_cv_header_thread_h = yes && 14230 test $ac_cv_header_synch_h = yes ; then 14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 14232$as_echo_n "checking for thr_create in -lthread... " >&6; } 14233if ${ac_cv_lib_thread_thr_create+:} false; then : 14234 $as_echo_n "(cached) " >&6 14235else 14236 ac_check_lib_save_LIBS=$LIBS 14237LIBS="-lthread $LIBS" 14238cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14239/* end confdefs.h. */ 14240 14241/* Override any GCC internal prototype to avoid an error. 14242 Use char because int might match the return type of a GCC 14243 builtin and then its argument prototype would still apply. */ 14244#ifdef __cplusplus 14245extern "C" 14246#endif 14247char thr_create (); 14248int 14249main () 14250{ 14251return thr_create (); 14252 ; 14253 return 0; 14254} 14255_ACEOF 14256if ac_fn_c_try_link "$LINENO"; then : 14257 ac_cv_lib_thread_thr_create=yes 14258else 14259 ac_cv_lib_thread_thr_create=no 14260fi 14261rm -f core conftest.err conftest.$ac_objext \ 14262 conftest$ac_exeext conftest.$ac_ext 14263LIBS=$ac_check_lib_save_LIBS 14264fi 14265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 14266$as_echo "$ac_cv_lib_thread_thr_create" >&6; } 14267if test "x$ac_cv_lib_thread_thr_create" = xyes; then : 14268 have_thr=yes 14269else 14270 have_thr=no 14271fi 14272 14273 14274 if test $have_thr = yes ; then 14275 14276$as_echo "#define HAVE_THR 1" >>confdefs.h 14277 14278 LTHREAD_LIBS="$LTHREAD_LIBS -lthread" 14279 ol_link_threads=thr 14280 14281 if test x$ol_with_yielding_select = xauto ; then 14282 ol_with_yielding_select=yes 14283 fi 14284 14285 for ac_func in \ 14286 thr_setconcurrency \ 14287 thr_getconcurrency \ 14288 14289do : 14290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14291ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14292if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14293 cat >>confdefs.h <<_ACEOF 14294#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14295_ACEOF 14296 14297fi 14298done 14299 14300 fi 14301 fi 14302 14303 for ac_header in lwp/lwp.h 14304do : 14305 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 14306if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 14307 cat >>confdefs.h <<_ACEOF 14308#define HAVE_LWP_LWP_H 1 14309_ACEOF 14310 14311fi 14312 14313done 14314 14315 if test $ac_cv_header_lwp_lwp_h = yes ; then 14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5 14317$as_echo_n "checking for lwp_create in -llwp... " >&6; } 14318if ${ac_cv_lib_lwp_lwp_create+:} false; then : 14319 $as_echo_n "(cached) " >&6 14320else 14321 ac_check_lib_save_LIBS=$LIBS 14322LIBS="-llwp $LIBS" 14323cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14324/* end confdefs.h. */ 14325 14326/* Override any GCC internal prototype to avoid an error. 14327 Use char because int might match the return type of a GCC 14328 builtin and then its argument prototype would still apply. */ 14329#ifdef __cplusplus 14330extern "C" 14331#endif 14332char lwp_create (); 14333int 14334main () 14335{ 14336return lwp_create (); 14337 ; 14338 return 0; 14339} 14340_ACEOF 14341if ac_fn_c_try_link "$LINENO"; then : 14342 ac_cv_lib_lwp_lwp_create=yes 14343else 14344 ac_cv_lib_lwp_lwp_create=no 14345fi 14346rm -f core conftest.err conftest.$ac_objext \ 14347 conftest$ac_exeext conftest.$ac_ext 14348LIBS=$ac_check_lib_save_LIBS 14349fi 14350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5 14351$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; } 14352if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then : 14353 have_lwp=yes 14354else 14355 have_lwp=no 14356fi 14357 14358 14359 if test $have_lwp = yes ; then 14360 14361$as_echo "#define HAVE_LWP 1" >>confdefs.h 14362 14363 LTHREAD_LIBS="$LTHREAD_LIBS -llwp" 14364 ol_link_threads=lwp 14365 14366 if test x$ol_with_yielding_select = xauto ; then 14367 ol_with_yielding_select=no 14368 fi 14369 fi 14370 fi 14371 ;; 14372esac 14373 14374if test $ol_with_yielding_select = yes ; then 14375 14376$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h 14377 14378fi 14379 14380if test $ol_with_threads = manual ; then 14381 ol_link_threads=yes 14382 14383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5 14384$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;} 14385 14386 for ac_header in pthread.h sched.h 14387do : 14388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14389ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14390if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14391 cat >>confdefs.h <<_ACEOF 14392#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14393_ACEOF 14394 14395fi 14396 14397done 14398 14399 for ac_func in sched_yield pthread_yield 14400do : 14401 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14402ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14403if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14404 cat >>confdefs.h <<_ACEOF 14405#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14406_ACEOF 14407 14408fi 14409done 14410 14411 14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 14413$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 14414if ${ol_cv_header_linux_threads+:} false; then : 14415 $as_echo_n "(cached) " >&6 14416else 14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14418/* end confdefs.h. */ 14419#include <pthread.h> 14420_ACEOF 14421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14422 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 14423 ol_cv_header_linux_threads=yes 14424else 14425 ol_cv_header_linux_threads=no 14426fi 14427rm -f conftest* 14428 14429 14430fi 14431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 14432$as_echo "$ol_cv_header_linux_threads" >&6; } 14433 if test $ol_cv_header_linux_threads = yes; then 14434 14435$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 14436 14437 fi 14438 14439 14440 for ac_header in mach/cthreads.h 14441do : 14442 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" 14443if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : 14444 cat >>confdefs.h <<_ACEOF 14445#define HAVE_MACH_CTHREADS_H 1 14446_ACEOF 14447 14448fi 14449 14450done 14451 14452 for ac_header in lwp/lwp.h 14453do : 14454 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 14455if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 14456 cat >>confdefs.h <<_ACEOF 14457#define HAVE_LWP_LWP_H 1 14458_ACEOF 14459 14460fi 14461 14462done 14463 14464 for ac_header in thread.h synch.h 14465do : 14466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14467ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14468if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14469 cat >>confdefs.h <<_ACEOF 14470#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14471_ACEOF 14472 14473fi 14474 14475done 14476 14477fi 14478 14479if test $ol_link_threads != no && test $ol_link_threads != nt ; then 14480 14481$as_echo "#define REENTRANT 1" >>confdefs.h 14482 14483 14484$as_echo "#define _REENTRANT 1" >>confdefs.h 14485 14486 14487$as_echo "#define THREAD_SAFE 1" >>confdefs.h 14488 14489 14490$as_echo "#define _THREAD_SAFE 1" >>confdefs.h 14491 14492 14493$as_echo "#define THREADSAFE 1" >>confdefs.h 14494 14495 14496$as_echo "#define _THREADSAFE 1" >>confdefs.h 14497 14498 14499$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h 14500 14501 14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5 14503$as_echo_n "checking for thread specific errno... " >&6; } 14504if ${ol_cv_errno_thread_specific+:} false; then : 14505 $as_echo_n "(cached) " >&6 14506else 14507 14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14509/* end confdefs.h. */ 14510#include <errno.h> 14511int 14512main () 14513{ 14514errno = 0; 14515 ; 14516 return 0; 14517} 14518_ACEOF 14519if ac_fn_c_try_link "$LINENO"; then : 14520 ol_cv_errno_thread_specific=yes 14521else 14522 ol_cv_errno_thread_specific=no 14523fi 14524rm -f core conftest.err conftest.$ac_objext \ 14525 conftest$ac_exeext conftest.$ac_ext 14526 14527fi 14528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5 14529$as_echo "$ol_cv_errno_thread_specific" >&6; } 14530 14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5 14532$as_echo_n "checking for thread specific h_errno... " >&6; } 14533if ${ol_cv_h_errno_thread_specific+:} false; then : 14534 $as_echo_n "(cached) " >&6 14535else 14536 14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14538/* end confdefs.h. */ 14539#include <netdb.h> 14540int 14541main () 14542{ 14543h_errno = 0; 14544 ; 14545 return 0; 14546} 14547_ACEOF 14548if ac_fn_c_try_link "$LINENO"; then : 14549 ol_cv_h_errno_thread_specific=yes 14550else 14551 ol_cv_h_errno_thread_specific=no 14552fi 14553rm -f core conftest.err conftest.$ac_objext \ 14554 conftest$ac_exeext conftest.$ac_ext 14555 14556fi 14557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5 14558$as_echo "$ol_cv_h_errno_thread_specific" >&6; } 14559 14560 if test $ol_cv_errno_thread_specific != yes || 14561 test $ol_cv_h_errno_thread_specific != yes ; then 14562 LIBS="$LTHREAD_LIBS $LIBS" 14563 LTHREAD_LIBS="" 14564 fi 14565 14566fi 14567 14568if test $ol_link_threads = no ; then 14569 if test $ol_with_threads = yes ; then 14570 as_fn_error $? "no suitable thread support" "$LINENO" 5 14571 fi 14572 14573 if test $ol_with_threads = auto ; then 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5 14575$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;} 14576 ol_with_threads=no 14577 fi 14578 14579 14580$as_echo "#define NO_THREADS 1" >>confdefs.h 14581 14582 LTHREAD_LIBS="" 14583 BUILD_THREAD=no 14584else 14585 BUILD_THREAD=yes 14586fi 14587 14588if test $ol_link_threads != no ; then 14589 14590$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h 14591 14592fi 14593 14594# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 14595case "$ol_with_threads" in 14596 no) 14597 ol_pthread_ok=no 14598 14599 ;; 14600 *) 14601 ol_found_pthreads=yes 14602 ;; 14603esac 14604 14605ac_ext=c 14606ac_cpp='$CPP $CPPFLAGS' 14607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14609ac_compiler_gnu=$ac_cv_c_compiler_gnu 14610 14611 14612 case "$ol_found_pthreads" in 14613 yes) 14614 saved_LIBS="$LIBS" 14615 LIBS="$LTHREAD_LIBS $LIBS" 14616 saved_CFLAGS="$CFLAGS" 14617 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 14618 for ac_func in sem_timedwait 14619do : 14620 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" 14621if test "x$ac_cv_func_sem_timedwait" = xyes; then : 14622 cat >>confdefs.h <<_ACEOF 14623#define HAVE_SEM_TIMEDWAIT 1 14624_ACEOF 14625 14626fi 14627done 14628 14629 LIBS="$saved_LIBS" 14630 { saved_LIBS=; unset saved_LIBS;} 14631 CFLAGS="$saved_CFLAGS" 14632 { saved_CFLAGS=; unset saved_CFLAGS;} 14633 case "$ac_cv_func_sem_timedwait" in 14634 yes) 14635 PTHREAD_LIBS="$LTHREAD_LIBS" 14636 have_pthreads=yes 14637 # Bug 2332: With GCC we need to force a reference to libgcc_s 14638 # (if libgcc_s exists) or the combination of 14639 # threads + setuid + mlockall does not work on linux because 14640 # thread cancellation fails to load libgcc_s with dlopen(). 14641 # We have to pass this all as linker options to avoid argument 14642 # reordering by libtool. 14643 case "$GCC$with_gnu_ld" in 14644 yesyes) 14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5 14646$as_echo_n "checking for exit in -lgcc_s... " >&6; } 14647if ${ac_cv_lib_gcc_s_exit+:} false; then : 14648 $as_echo_n "(cached) " >&6 14649else 14650 ac_check_lib_save_LIBS=$LIBS 14651LIBS="-lgcc_s $LIBS" 14652cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14653/* end confdefs.h. */ 14654 14655/* Override any GCC internal prototype to avoid an error. 14656 Use char because int might match the return type of a GCC 14657 builtin and then its argument prototype would still apply. */ 14658#ifdef __cplusplus 14659extern "C" 14660#endif 14661char exit (); 14662int 14663main () 14664{ 14665return exit (); 14666 ; 14667 return 0; 14668} 14669_ACEOF 14670if ac_fn_c_try_link "$LINENO"; then : 14671 ac_cv_lib_gcc_s_exit=yes 14672else 14673 ac_cv_lib_gcc_s_exit=no 14674fi 14675rm -f core conftest.err conftest.$ac_objext \ 14676 conftest$ac_exeext conftest.$ac_ext 14677LIBS=$ac_check_lib_save_LIBS 14678fi 14679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5 14680$as_echo "$ac_cv_lib_gcc_s_exit" >&6; } 14681if test "x$ac_cv_lib_gcc_s_exit" = xyes; then : 14682 PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed" 14683fi 14684 14685 ;; 14686 esac 14687 esac 14688 esac 14689esac 14690 14691case "$have_pthreads" in 14692 yes) 14693 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS" 14694 saved_LIBS="$LIBS" 14695 LIBS="$LTHREAD_LIBS $LIBS" 14696 saved_CFLAGS="$CFLAGS" 14697 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 14698 # The cast to long int works around a bug in the HP C Compiler 14699# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14700# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14701# This bug is HP SR number 8606223364. 14702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 14703$as_echo_n "checking size of pthread_t... " >&6; } 14704if ${ac_cv_sizeof_pthread_t+:} false; then : 14705 $as_echo_n "(cached) " >&6 14706else 14707 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 14708 $ac_includes_default 14709 #include <pthread.h> 14710 14711 14712"; then : 14713 14714else 14715 if test "$ac_cv_type_pthread_t" = yes; then 14716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14718as_fn_error 77 "cannot compute sizeof (pthread_t) 14719See \`config.log' for more details" "$LINENO" 5; } 14720 else 14721 ac_cv_sizeof_pthread_t=0 14722 fi 14723fi 14724 14725fi 14726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 14727$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 14728 14729 14730 14731cat >>confdefs.h <<_ACEOF 14732#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 14733_ACEOF 14734 14735 14736 LIBISC_PTHREADS_NOTHREADS=pthreads 14737 14738$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h 14739 14740 # 14741 # We'd like to use sigwait() too 14742 # 14743 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" 14744if test "x$ac_cv_func_sigwait" = xyes; then : 14745 have_sigwait=yes 14746else 14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5 14748$as_echo_n "checking for sigwait in -lc... " >&6; } 14749if ${ac_cv_lib_c_sigwait+:} false; then : 14750 $as_echo_n "(cached) " >&6 14751else 14752 ac_check_lib_save_LIBS=$LIBS 14753LIBS="-lc $LIBS" 14754cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14755/* end confdefs.h. */ 14756 14757/* Override any GCC internal prototype to avoid an error. 14758 Use char because int might match the return type of a GCC 14759 builtin and then its argument prototype would still apply. */ 14760#ifdef __cplusplus 14761extern "C" 14762#endif 14763char sigwait (); 14764int 14765main () 14766{ 14767return sigwait (); 14768 ; 14769 return 0; 14770} 14771_ACEOF 14772if ac_fn_c_try_link "$LINENO"; then : 14773 ac_cv_lib_c_sigwait=yes 14774else 14775 ac_cv_lib_c_sigwait=no 14776fi 14777rm -f core conftest.err conftest.$ac_objext \ 14778 conftest$ac_exeext conftest.$ac_ext 14779LIBS=$ac_check_lib_save_LIBS 14780fi 14781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5 14782$as_echo "$ac_cv_lib_c_sigwait" >&6; } 14783if test "x$ac_cv_lib_c_sigwait" = xyes; then : 14784 have_sigwait=yes 14785else 14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5 14787$as_echo_n "checking for sigwait in -lpthread... " >&6; } 14788if ${ac_cv_lib_pthread_sigwait+:} false; then : 14789 $as_echo_n "(cached) " >&6 14790else 14791 ac_check_lib_save_LIBS=$LIBS 14792LIBS="-lpthread $LIBS" 14793cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14794/* end confdefs.h. */ 14795 14796/* Override any GCC internal prototype to avoid an error. 14797 Use char because int might match the return type of a GCC 14798 builtin and then its argument prototype would still apply. */ 14799#ifdef __cplusplus 14800extern "C" 14801#endif 14802char sigwait (); 14803int 14804main () 14805{ 14806return sigwait (); 14807 ; 14808 return 0; 14809} 14810_ACEOF 14811if ac_fn_c_try_link "$LINENO"; then : 14812 ac_cv_lib_pthread_sigwait=yes 14813else 14814 ac_cv_lib_pthread_sigwait=no 14815fi 14816rm -f core conftest.err conftest.$ac_objext \ 14817 conftest$ac_exeext conftest.$ac_ext 14818LIBS=$ac_check_lib_save_LIBS 14819fi 14820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5 14821$as_echo "$ac_cv_lib_pthread_sigwait" >&6; } 14822if test "x$ac_cv_lib_pthread_sigwait" = xyes; then : 14823 have_sigwait=yes 14824else 14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5 14826$as_echo_n "checking for _Psigwait in -lpthread... " >&6; } 14827if ${ac_cv_lib_pthread__Psigwait+:} false; then : 14828 $as_echo_n "(cached) " >&6 14829else 14830 ac_check_lib_save_LIBS=$LIBS 14831LIBS="-lpthread $LIBS" 14832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14833/* end confdefs.h. */ 14834 14835/* Override any GCC internal prototype to avoid an error. 14836 Use char because int might match the return type of a GCC 14837 builtin and then its argument prototype would still apply. */ 14838#ifdef __cplusplus 14839extern "C" 14840#endif 14841char _Psigwait (); 14842int 14843main () 14844{ 14845return _Psigwait (); 14846 ; 14847 return 0; 14848} 14849_ACEOF 14850if ac_fn_c_try_link "$LINENO"; then : 14851 ac_cv_lib_pthread__Psigwait=yes 14852else 14853 ac_cv_lib_pthread__Psigwait=no 14854fi 14855rm -f core conftest.err conftest.$ac_objext \ 14856 conftest$ac_exeext conftest.$ac_ext 14857LIBS=$ac_check_lib_save_LIBS 14858fi 14859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5 14860$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; } 14861if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then : 14862 have_sigwait=yes 14863else 14864 have_sigwait=no 14865 14866fi 14867 14868 14869fi 14870 14871 14872fi 14873 14874 14875fi 14876 14877 case "$host:$have_sigwait" in 14878 *-freebsd*:no) 14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5 14880$as_echo_n "checking for sigwait in -lc_r... " >&6; } 14881if ${ac_cv_lib_c_r_sigwait+:} false; then : 14882 $as_echo_n "(cached) " >&6 14883else 14884 ac_check_lib_save_LIBS=$LIBS 14885LIBS="-lc_r $LIBS" 14886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14887/* end confdefs.h. */ 14888 14889/* Override any GCC internal prototype to avoid an error. 14890 Use char because int might match the return type of a GCC 14891 builtin and then its argument prototype would still apply. */ 14892#ifdef __cplusplus 14893extern "C" 14894#endif 14895char sigwait (); 14896int 14897main () 14898{ 14899return sigwait (); 14900 ; 14901 return 0; 14902} 14903_ACEOF 14904if ac_fn_c_try_link "$LINENO"; then : 14905 ac_cv_lib_c_r_sigwait=yes 14906else 14907 ac_cv_lib_c_r_sigwait=no 14908fi 14909rm -f core conftest.err conftest.$ac_objext \ 14910 conftest$ac_exeext conftest.$ac_ext 14911LIBS=$ac_check_lib_save_LIBS 14912fi 14913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5 14914$as_echo "$ac_cv_lib_c_r_sigwait" >&6; } 14915if test "x$ac_cv_lib_c_r_sigwait" = xyes; then : 14916 have_sigwait=yes 14917 14918fi 14919 14920 esac 14921 case "$have_sigwait" in 14922 yes) 14923 ac_cv_func_sigwait=yes 14924 14925$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 14926 14927 esac 14928 14929 for ac_func in pthread_attr_getstacksize 14930do : 14931 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize" 14932if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then : 14933 cat >>confdefs.h <<_ACEOF 14934#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 14935_ACEOF 14936 14937fi 14938done 14939 14940 for ac_func in pthread_attr_setstacksize sysconf 14941do : 14942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14943ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14944if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14945 cat >>confdefs.h <<_ACEOF 14946#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14947_ACEOF 14948 14949fi 14950done 14951 14952 14953 case "$host" in 14954 *-freebsd5.[012]|*-freebsd5.[012].*) 14955 ;; 14956 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*) 14957 14958$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h 14959 14960 ;; 14961 *-bsdi3.*|*-bsdi4.0*) 14962 14963$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h 14964 14965 ;; 14966 *-linux*) 14967 14968$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h 14969 14970 ;; 14971 *-solaris*) 14972 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 14973 14974 for ac_func in pthread_setconcurrency 14975do : 14976 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency" 14977if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then : 14978 cat >>confdefs.h <<_ACEOF 14979#define HAVE_PTHREAD_SETCONCURRENCY 1 14980_ACEOF 14981 14982fi 14983done 14984 14985 case "$ac_cv_func_pthread_setconcurrency" in 14986 yes) 14987 14988$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h 14989 14990 esac 14991 ;; 14992 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 14993 14994$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h 14995 14996 ;; 14997 esac 14998 hack_shutup_pthreadonceinit=no 14999 case "$host" in 15000 *-aix5.[123].*) 15001 hack_shutup_pthreadonceinit=yes 15002 ;; 15003 *-solaris2.[89]) 15004 hack_shutup_pthreadonceinit=yes 15005 ;; 15006 *-solaris2.1[0-9]) 15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5 15008$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; } 15009if ${ntp_cv_braces_around_pthread_once_init+:} false; then : 15010 $as_echo_n "(cached) " >&6 15011else 15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15013/* end confdefs.h. */ 15014 15015 #include <pthread.h> 15016 15017int 15018main () 15019{ 15020 15021 static pthread_once_t once_test = 15022 PTHREAD_ONCE_INIT; 15023 15024 15025 ; 15026 return 0; 15027} 15028_ACEOF 15029if ac_fn_c_try_compile "$LINENO"; then : 15030 ntp_cv_braces_around_pthread_once_init=no 15031else 15032 ntp_cv_braces_around_pthread_once_init=yes 15033 15034fi 15035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15036 15037fi 15038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5 15039$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; } 15040 case "$ntp_cv_braces_around_pthread_once_init" in 15041 yes) 15042 hack_shutup_pthreadonceinit=yes 15043 esac 15044 ;; 15045 esac 15046 case "$hack_shutup_pthreadonceinit" in 15047 yes) 15048 15049$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h 15050 15051 esac 15052 LIBS="$saved_LIBS" 15053 { saved_LIBS=; unset saved_LIBS;} 15054 CFLAGS="$saved_CFLAGS" 15055 { saved_CFLAGS=; unset saved_CFLAGS;} 15056 ;; 15057 *) 15058 LIBISC_PTHREADS_NOTHREADS=nothreads 15059 ;; 15060esac 15061 15062 if test "$have_pthreads" != "no"; then 15063 PTHREADS_TRUE= 15064 PTHREADS_FALSE='#' 15065else 15066 PTHREADS_TRUE='#' 15067 PTHREADS_FALSE= 15068fi 15069 15070 15071 15072 15073 15074 15075 15076case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in 15077 no:yes) 15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5 15079$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; } 15080if ${ntp_cv_vsnprintf_percent_m+:} false; then : 15081 $as_echo_n "(cached) " >&6 15082else 15083 if test "$cross_compiling" = yes; then : 15084 ntp_cv_vsnprintf_percent_m=no 15085 15086else 15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15088/* end confdefs.h. */ 15089 15090 #include <stdarg.h> 15091 #include <errno.h> 15092 #include <stdio.h> 15093 #include <string.h> 15094 15095 int call_vsnprintf( 15096 char * dst, 15097 size_t sz, 15098 const char *fmt, 15099 ... 15100 ); 15101 15102 int call_vsnprintf( 15103 char * dst, 15104 size_t sz, 15105 const char *fmt, 15106 ... 15107 ) 15108 { 15109 va_list ap; 15110 int rc; 15111 15112 va_start(ap, fmt); 15113 rc = vsnprintf(dst, sz, fmt, ap); 15114 va_end(ap); 15115 15116 return rc; 15117 } 15118 15119int 15120main () 15121{ 15122 15123 char sbuf[512]; 15124 char pbuf[512]; 15125 int slen; 15126 15127 strcpy(sbuf, strerror(ENOENT)); 15128 errno = ENOENT; 15129 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m", 15130 "wrong"); 15131 return strcmp(sbuf, pbuf); 15132 15133 15134 ; 15135 return 0; 15136} 15137_ACEOF 15138if ac_fn_c_try_run "$LINENO"; then : 15139 ntp_cv_vsnprintf_percent_m=yes 15140else 15141 ntp_cv_vsnprintf_percent_m=no 15142fi 15143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15144 conftest.$ac_objext conftest.beam conftest.$ac_ext 15145fi 15146 15147 15148fi 15149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5 15150$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; } 15151 case "$ntp_cv_vsnprintf_percent_m" in 15152 yes) 15153 15154$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h 15155 15156 esac 15157esac 15158 15159for ac_header in sys/clockctl.h 15160do : 15161 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default" 15162if test "x$ac_cv_header_sys_clockctl_h" = xyes; then : 15163 cat >>confdefs.h <<_ACEOF 15164#define HAVE_SYS_CLOCKCTL_H 1 15165_ACEOF 15166 15167fi 15168 15169done 15170 15171 15172# Check whether --enable-clockctl was given. 15173if test "${enable_clockctl+set}" = set; then : 15174 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval 15175else 15176 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h 15177 15178fi 15179 15180 15181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5 15182$as_echo_n "checking if we should use /dev/clockctl... " >&6; } 15183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5 15184$as_echo "$ntp_use_dev_clockctl" >&6; } 15185 15186 15187for ac_header in sys/capability.h sys/prctl.h 15188do : 15189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15190ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15191if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15192 cat >>confdefs.h <<_ACEOF 15193#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15194_ACEOF 15195 15196fi 15197 15198done 15199 15200 15201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5 15202$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; } 15203 15204case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in 15205 yesyes) 15206 case "$host" in 15207 mips-sgi-irix*) 15208 ntp_have_linuxcaps=no 15209 ;; 15210 *) ntp_have_linuxcaps=yes 15211 ;; 15212 esac 15213 ;; 15214 *) 15215 ntp_have_linuxcaps=no 15216 ;; 15217esac 15218 15219# Check whether --enable-linuxcaps was given. 15220if test "${enable_linuxcaps+set}" = set; then : 15221 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval 15222 15223fi 15224 15225 15226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5 15227$as_echo "$ntp_have_linuxcaps" >&6; } 15228 15229case "$ntp_have_linuxcaps" in 15230 yes) 15231 15232$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h 15233 15234 LIBS="$LIBS -lcap" 15235 ;; 15236esac 15237 15238 15239for ac_header in priv.h 15240do : 15241 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" 15242if test "x$ac_cv_header_priv_h" = xyes; then : 15243 cat >>confdefs.h <<_ACEOF 15244#define HAVE_PRIV_H 1 15245_ACEOF 15246 15247fi 15248 15249done 15250 15251 15252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5 15253$as_echo_n "checking if we have solaris privileges... " >&6; } 15254 15255case "$ac_cv_header_priv_h" in 15256 yes) 15257 case "$host" in 15258 *-solaris*) 15259 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" 15260if test "x$ac_cv_func_setppriv" = xyes; then : 15261 ntp_have_solarisprivs=yes 15262else 15263 ntp_have_solarisprivs=no 15264 15265fi 15266 15267 ;; 15268 esac 15269esac 15270 15271# Check whether --enable-solarisprivs was given. 15272if test "${enable_solarisprivs+set}" = set; then : 15273 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval 15274 15275fi 15276 15277 15278 15279case "$ntp_have_solarisprivs" in 15280 yes) 15281 15282$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h 15283 15284esac 15285 15286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5 15287$as_echo "$ntp_have_solarisprivs" >&6; } 15288 15289case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in 15290 *yes*) 15291 15292$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h 15293 15294esac 15295 15296case "$host" in 15297 *-*-darwin*) 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 15299$as_echo_n "checking for library containing res_9_init... " >&6; } 15300if ${ac_cv_search_res_9_init+:} false; then : 15301 $as_echo_n "(cached) " >&6 15302else 15303 ac_func_search_save_LIBS=$LIBS 15304cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15305/* end confdefs.h. */ 15306 15307/* Override any GCC internal prototype to avoid an error. 15308 Use char because int might match the return type of a GCC 15309 builtin and then its argument prototype would still apply. */ 15310#ifdef __cplusplus 15311extern "C" 15312#endif 15313char res_9_init (); 15314int 15315main () 15316{ 15317return res_9_init (); 15318 ; 15319 return 0; 15320} 15321_ACEOF 15322for ac_lib in '' resolv; do 15323 if test -z "$ac_lib"; then 15324 ac_res="none required" 15325 else 15326 ac_res=-l$ac_lib 15327 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15328 fi 15329 if ac_fn_c_try_link "$LINENO"; then : 15330 ac_cv_search_res_9_init=$ac_res 15331fi 15332rm -f core conftest.err conftest.$ac_objext \ 15333 conftest$ac_exeext 15334 if ${ac_cv_search_res_9_init+:} false; then : 15335 break 15336fi 15337done 15338if ${ac_cv_search_res_9_init+:} false; then : 15339 15340else 15341 ac_cv_search_res_9_init=no 15342fi 15343rm conftest.$ac_ext 15344LIBS=$ac_func_search_save_LIBS 15345fi 15346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 15347$as_echo "$ac_cv_search_res_9_init" >&6; } 15348ac_res=$ac_cv_search_res_9_init 15349if test "$ac_res" != no; then : 15350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15351 15352fi 15353 15354 ;; 15355 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 15356$as_echo_n "checking for library containing res_init... " >&6; } 15357if ${ac_cv_search_res_init+:} false; then : 15358 $as_echo_n "(cached) " >&6 15359else 15360 ac_func_search_save_LIBS=$LIBS 15361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15362/* end confdefs.h. */ 15363 15364/* Override any GCC internal prototype to avoid an error. 15365 Use char because int might match the return type of a GCC 15366 builtin and then its argument prototype would still apply. */ 15367#ifdef __cplusplus 15368extern "C" 15369#endif 15370char res_init (); 15371int 15372main () 15373{ 15374return res_init (); 15375 ; 15376 return 0; 15377} 15378_ACEOF 15379for ac_lib in '' resolv; do 15380 if test -z "$ac_lib"; then 15381 ac_res="none required" 15382 else 15383 ac_res=-l$ac_lib 15384 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15385 fi 15386 if ac_fn_c_try_link "$LINENO"; then : 15387 ac_cv_search_res_init=$ac_res 15388fi 15389rm -f core conftest.err conftest.$ac_objext \ 15390 conftest$ac_exeext 15391 if ${ac_cv_search_res_init+:} false; then : 15392 break 15393fi 15394done 15395if ${ac_cv_search_res_init+:} false; then : 15396 15397else 15398 ac_cv_search_res_init=no 15399fi 15400rm conftest.$ac_ext 15401LIBS=$ac_func_search_save_LIBS 15402fi 15403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 15404$as_echo "$ac_cv_search_res_init" >&6; } 15405ac_res=$ac_cv_search_res_init 15406if test "$ac_res" != no; then : 15407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15408 15409fi 15410 15411 ;; 15412esac 15413for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h 15414do : 15415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15416ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H 15417# include <sys/types.h> 15418#endif 15419#ifdef HAVE_NETINET_IN_H 15420# include <netinet/in.h> /* inet_ functions / structs */ 15421#endif 15422#ifdef HAVE_ARPA_NAMESER_H 15423# include <arpa/nameser.h> /* DNS HEADER struct */ 15424#endif 15425#ifdef HAVE_NETDB_H 15426# include <netdb.h> 15427#endif 15428" 15429if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15430 cat >>confdefs.h <<_ACEOF 15431#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15432_ACEOF 15433 15434fi 15435 15436done 15437 15438 15439#HMS: Why do we do this check so "early"? 15440for ac_func in res_init 15441do : 15442 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init" 15443if test "x$ac_cv_func_res_init" = xyes; then : 15444 cat >>confdefs.h <<_ACEOF 15445#define HAVE_RES_INIT 1 15446_ACEOF 15447 15448else 15449 for ac_func in __res_init 15450do : 15451 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init" 15452if test "x$ac_cv_func___res_init" = xyes; then : 15453 cat >>confdefs.h <<_ACEOF 15454#define HAVE___RES_INIT 1 15455_ACEOF 15456 15457fi 15458done 15459 15460fi 15461done 15462 15463 15464# We also need -lsocket, but we have tested for that already. 15465ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 15466if test "x$ac_cv_func_inet_ntop" = xyes; then : 15467 15468else 15469 15470$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h 15471 15472fi 15473 15474ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 15475if test "x$ac_cv_func_inet_pton" = xyes; then : 15476 15477else 15478 15479$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h 15480 15481fi 15482 15483 15484ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 15485if test "x$ac_cv_type_uintptr_t" = xyes; then : 15486 15487cat >>confdefs.h <<_ACEOF 15488#define HAVE_UINTPTR_T 1 15489_ACEOF 15490 15491 15492fi 15493ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default" 15494if test "x$ac_cv_type_int32" = xyes; then : 15495 15496cat >>confdefs.h <<_ACEOF 15497#define HAVE_INT32 1 15498_ACEOF 15499 15500 15501fi 15502ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default" 15503if test "x$ac_cv_type_u_int32" = xyes; then : 15504 15505cat >>confdefs.h <<_ACEOF 15506#define HAVE_U_INT32 1 15507_ACEOF 15508 15509 15510fi 15511 15512 15513 15514 15515case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in 15516 no::yes) 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5 15518$as_echo_n "checking for int32 with DNS headers included... " >&6; } 15519if ${ntp_cv_type_int32_with_dns+:} false; then : 15520 $as_echo_n "(cached) " >&6 15521else 15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15523/* end confdefs.h. */ 15524 15525 #ifdef HAVE_ARPA_NAMESER_H 15526 # include <arpa/nameser.h> 15527 #endif 15528 #include <resolv.h> 15529 15530int 15531main () 15532{ 15533 15534 size_t cb = sizeof(int32); 15535 15536 15537 ; 15538 return 0; 15539} 15540_ACEOF 15541if ac_fn_c_try_compile "$LINENO"; then : 15542 ntp_cv_type_int32_with_dns=yes 15543else 15544 ntp_cv_type_int32_with_dns=no 15545 15546fi 15547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15548 15549fi 15550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5 15551$as_echo "$ntp_cv_type_int32_with_dns" >&6; } 15552 case "$ntp_cv_type_int32_with_dns" in 15553 yes) 15554 15555$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h 15556 15557 esac 15558esac 15559 15560case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in 15561 no::yes) 15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5 15563$as_echo_n "checking for u_int32 with DNS headers included... " >&6; } 15564if ${ntp_cv_type_u_int32_with_dns+:} false; then : 15565 $as_echo_n "(cached) " >&6 15566else 15567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15568/* end confdefs.h. */ 15569 15570 #ifdef HAVE_ARPA_NAMESER_H 15571 # include <arpa/nameser.h> 15572 #endif 15573 #include <resolv.h> 15574 15575int 15576main () 15577{ 15578 15579 size_t cb = sizeof(u_int32); 15580 15581 15582 ; 15583 return 0; 15584} 15585_ACEOF 15586if ac_fn_c_try_compile "$LINENO"; then : 15587 ntp_cv_type_u_int32_with_dns=yes 15588else 15589 ntp_cv_type_u_int32_with_dns=no 15590 15591fi 15592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15593 15594fi 15595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5 15596$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; } 15597 case "$ntp_cv_type_u_int32_with_dns" in 15598 yes) 15599 15600$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h 15601 15602 esac 15603esac 15604 15605for ac_header in sys/timepps.h 15606do : 15607 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" " 15608 #ifdef HAVE_SYS_TIME_H 15609 # include <sys/time.h> 15610 #endif 15611 #ifdef HAVE_ERRNO_H 15612 # include <errno.h> 15613 #endif 15614 15615 15616" 15617if test "x$ac_cv_header_sys_timepps_h" = xyes; then : 15618 cat >>confdefs.h <<_ACEOF 15619#define HAVE_SYS_TIMEPPS_H 1 15620_ACEOF 15621 15622fi 15623 15624done 15625 15626 15627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5 15628$as_echo_n "checking for struct timespec... " >&6; } 15629if ${ntp_cv_struct_timespec+:} false; then : 15630 $as_echo_n "(cached) " >&6 15631else 15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15633/* end confdefs.h. */ 15634 15635 #include <sys/time.h> 15636 /* Under SunOS, timespec is in sys/timepps.h, 15637 which needs errno.h and FRAC */ 15638 #ifdef HAVE_ERRNO_H 15639 # include <errno.h> 15640 #endif 15641 #ifdef HAVE_SYS_TIMEPPS_H 15642 # define FRAC 4294967296 15643 # include <sys/timepps.h> 15644 #endif 15645 15646int 15647main () 15648{ 15649 15650 struct timespec n; 15651 15652 15653 ; 15654 return 0; 15655} 15656_ACEOF 15657if ac_fn_c_try_compile "$LINENO"; then : 15658 ntp_cv_struct_timespec=yes 15659else 15660 ntp_cv_struct_timespec=no 15661 15662fi 15663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15664 15665fi 15666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5 15667$as_echo "$ntp_cv_struct_timespec" >&6; } 15668case "$ntp_cv_struct_timespec" in 15669 yes) 15670 15671$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 15672 15673esac 15674 15675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5 15676$as_echo_n "checking for struct ntptimeval... " >&6; } 15677if ${ntp_cv_struct_ntptimeval+:} false; then : 15678 $as_echo_n "(cached) " >&6 15679else 15680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15681/* end confdefs.h. */ 15682 15683 #include <sys/time.h> 15684 #include <sys/timex.h> 15685 15686int 15687main () 15688{ 15689 15690 struct ntptimeval n; 15691 15692 15693 ; 15694 return 0; 15695} 15696_ACEOF 15697if ac_fn_c_try_compile "$LINENO"; then : 15698 ntp_cv_struct_ntptimeval=yes 15699else 15700 ntp_cv_struct_ntptimeval=no 15701 15702fi 15703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15704 15705fi 15706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5 15707$as_echo "$ntp_cv_struct_ntptimeval" >&6; } 15708case "$ntp_cv_struct_ntptimeval" in 15709 yes) 15710 15711$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h 15712 15713esac 15714 15715for ac_header in md5.h 15716do : 15717 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" " 15718 #ifdef HAVE_SYS_TYPES_H 15719 # include <sys/types.h> 15720 #endif 15721 15722 15723" 15724if test "x$ac_cv_header_md5_h" = xyes; then : 15725 cat >>confdefs.h <<_ACEOF 15726#define HAVE_MD5_H 1 15727_ACEOF 15728 15729fi 15730 15731done 15732 15733 15734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5 15735$as_echo_n "checking for library containing MD5Init... " >&6; } 15736if ${ac_cv_search_MD5Init+:} false; then : 15737 $as_echo_n "(cached) " >&6 15738else 15739 ac_func_search_save_LIBS=$LIBS 15740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15741/* end confdefs.h. */ 15742 15743/* Override any GCC internal prototype to avoid an error. 15744 Use char because int might match the return type of a GCC 15745 builtin and then its argument prototype would still apply. */ 15746#ifdef __cplusplus 15747extern "C" 15748#endif 15749char MD5Init (); 15750int 15751main () 15752{ 15753return MD5Init (); 15754 ; 15755 return 0; 15756} 15757_ACEOF 15758for ac_lib in '' md5 md; do 15759 if test -z "$ac_lib"; then 15760 ac_res="none required" 15761 else 15762 ac_res=-l$ac_lib 15763 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15764 fi 15765 if ac_fn_c_try_link "$LINENO"; then : 15766 ac_cv_search_MD5Init=$ac_res 15767fi 15768rm -f core conftest.err conftest.$ac_objext \ 15769 conftest$ac_exeext 15770 if ${ac_cv_search_MD5Init+:} false; then : 15771 break 15772fi 15773done 15774if ${ac_cv_search_MD5Init+:} false; then : 15775 15776else 15777 ac_cv_search_MD5Init=no 15778fi 15779rm conftest.$ac_ext 15780LIBS=$ac_func_search_save_LIBS 15781fi 15782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5 15783$as_echo "$ac_cv_search_MD5Init" >&6; } 15784ac_res=$ac_cv_search_MD5Init 15785if test "$ac_res" != no; then : 15786 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15787 15788fi 15789 15790for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec 15791do : 15792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15793ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15794if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15795 cat >>confdefs.h <<_ACEOF 15796#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15797_ACEOF 15798 15799fi 15800done 15801 15802 15803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5 15804$as_echo_n "checking for SIGIO... " >&6; } 15805if ${ntp_cv_hdr_def_sigio+:} false; then : 15806 $as_echo_n "(cached) " >&6 15807else 15808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15809/* end confdefs.h. */ 15810 15811 #include <signal.h> 15812 15813 #ifndef SIGIO 15814 # error 15815 #endif 15816 15817_ACEOF 15818if ac_fn_c_try_cpp "$LINENO"; then : 15819 ntp_cv_hdr_def_sigio=yes 15820else 15821 ntp_cv_hdr_def_sigio=no 15822 15823fi 15824rm -f conftest.err conftest.i conftest.$ac_ext 15825 15826fi 15827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5 15828$as_echo "$ntp_cv_hdr_def_sigio" >&6; } 15829 15830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5 15831$as_echo_n "checking if we want to use SIGIO... " >&6; } 15832ans=no 15833case "$ntp_cv_hdr_def_sigio" in 15834 yes) 15835 ans=yes 15836 case "$host" in 15837 alpha*-dec-osf4*|alpha*-dec-osf5*) 15838 ans=no 15839 ;; 15840 *-convex-*) 15841 ans=no 15842 ;; 15843 *-dec-*) 15844 ans=no 15845 ;; 15846 *-pc-cygwin*) 15847 ans=no 15848 ;; 15849 *-sni-sysv*) 15850 ans=no 15851 ;; 15852 *-univel-sysv*) 15853 ans=no 15854 ;; 15855 *-*-irix6*) 15856 ans=no 15857 ;; 15858 *-*-freebsd*) 15859 ans=no 15860 ;; 15861 *-*-*linux*) 15862 ans=no 15863 ;; 15864 *-*-unicosmp*) 15865 ans=no 15866 ;; 15867 *-*-kfreebsd*) 15868 ans=no 15869 ;; 15870 m68k-*-mint*) 15871 ans=no 15872 ;; 15873 esac 15874 ;; 15875esac 15876case "$ans" in 15877 yes) 15878 15879$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h 15880 15881esac 15882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 15883$as_echo "$ans" >&6; } 15884 15885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5 15886$as_echo_n "checking for SIGPOLL... " >&6; } 15887if ${ntp_cv_hdr_def_sigpoll+:} false; then : 15888 $as_echo_n "(cached) " >&6 15889else 15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15891/* end confdefs.h. */ 15892 15893 #include <signal.h> 15894 15895 #ifndef SIGPOLL 15896 # error 15897 #endif 15898 15899_ACEOF 15900if ac_fn_c_try_cpp "$LINENO"; then : 15901 ntp_cv_hdr_def_sigpoll=yes 15902else 15903 ntp_cv_hdr_def_sigpoll=no 15904 15905fi 15906rm -f conftest.err conftest.i conftest.$ac_ext 15907 15908fi 15909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5 15910$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; } 15911 15912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5 15913$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; } 15914ans=no 15915case "$ntp_cv_hdr_def_sigpoll" in 15916 yes) 15917 case "$host" in 15918 mips-sgi-irix*) 15919 ans=no 15920 ;; 15921 vax-dec-bsd) 15922 ans=no 15923 ;; 15924 *-pc-cygwin*) 15925 ans=no 15926 ;; 15927 *-sni-sysv*) 15928 ans=no 15929 ;; 15930 *-*-aix[4-9]*) 15931 # XXX Only verified thru AIX6 15932 ans=no 15933 ;; 15934 *-*-hpux*) 15935 ans=no 15936 ;; 15937 *-*-*linux*) 15938 ans=no 15939 ;; 15940 *-*-osf*) 15941 ans=no 15942 ;; 15943 *-*-qnx*) 15944 ans=no 15945 ;; 15946 *-*-sunos*) 15947 ans=no 15948 ;; 15949 *-*-solaris*) 15950 ans=no 15951 ;; 15952 *-*-ultrix*) 15953 ans=no 15954 ;; 15955 *-*-unicosmp*) 15956 ans=no 15957 ;; 15958 *-*-kfreebsd*) 15959 ans=no 15960 ;; 15961 *) ans=yes 15962 ;; 15963 esac 15964 ;; 15965esac 15966case "$ans" in 15967 yes) 15968 15969$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h 15970 15971esac 15972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 15973$as_echo "$ans" >&6; } 15974 15975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5 15976$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; } 15977ans=no 15978case "$ntp_cv_hdr_def_sigpoll" in 15979 yes) 15980 case "$host" in 15981 mips-sgi-irix*) 15982 ans=no 15983 ;; 15984 vax-dec-bsd) 15985 ans=no 15986 ;; 15987 *-pc-cygwin*) 15988 ans=no 15989 ;; 15990 *-sni-sysv*) 15991 ans=no 15992 ;; 15993 *-*-aix[4-9]*) 15994 # XXX Only verified thru AIX6 15995 ans=no 15996 ;; 15997 *-*-hpux*) 15998 ans=no 15999 ;; 16000 *-*-*linux*) 16001 ans=no 16002 ;; 16003 *-*-osf*) 16004 ans=no 16005 ;; 16006 *-*-sunos*) 16007 ans=no 16008 ;; 16009 *-*-ultrix*) 16010 ans=no 16011 ;; 16012 *-*-qnx*) 16013 ans=no 16014 ;; 16015 *-*-unicosmp*) 16016 ans=no 16017 ;; 16018 *-*-kfreebsd*) 16019 ans=no 16020 ;; 16021 *) ans=yes 16022 ;; 16023 esac 16024 ;; 16025esac 16026case "$ans" in 16027 yes) 16028 16029$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h 16030 16031esac 16032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 16033$as_echo "$ans" >&6; } 16034 16035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5 16036$as_echo_n "checking number of arguments to gettimeofday()... " >&6; } 16037if ${ntp_cv_func_Xettimeofday_nargs+:} false; then : 16038 $as_echo_n "(cached) " >&6 16039else 16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16041/* end confdefs.h. */ 16042 16043 #include <sys/time.h> 16044 16045int 16046main () 16047{ 16048 16049 gettimeofday(0, 0); 16050 settimeofday(0, 0); 16051 16052 16053 ; 16054 return 0; 16055} 16056_ACEOF 16057if ac_fn_c_try_compile "$LINENO"; then : 16058 ntp_cv_func_Xettimeofday_nargs=2 16059else 16060 ntp_cv_func_Xettimeofday_nargs=1 16061 16062fi 16063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16064 16065fi 16066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5 16067$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; } 16068case "$ntp_cv_func_Xettimeofday_nargs" in 16069 1) 16070 16071$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h 16072 16073esac 16074 16075for ac_func in settimeofday 16076do : 16077 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday" 16078if test "x$ac_cv_func_settimeofday" = xyes; then : 16079 cat >>confdefs.h <<_ACEOF 16080#define HAVE_SETTIMEOFDAY 1 16081_ACEOF 16082 16083else 16084 16085 case "$host" in 16086 *-*-mpeix*) ac_cv_func_settimeofday=yes 16087 esac 16088 16089fi 16090done 16091 16092 16093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5 16094$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; } 16095ntp_warning='GRONK' 16096ans=none 16097case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in 16098 yes*) 16099 ntp_warning='' 16100 ans='clock_settime()' 16101 ;; 16102 noyes*) 16103 ntp_warning='But clock_settime() would be better (if we had it)' 16104 ans='settimeofday()' 16105 ;; 16106 nonoyes) 16107 ntp_warning='Which is the worst of the three' 16108 ans='stime()' 16109 ;; 16110 *) 16111 case "$build" in 16112 $host) 16113 ntp_warning='Which leaves us with nothing to use!' 16114 esac 16115esac 16116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 16117$as_echo "$ans" >&6; } 16118case "$ntp_warning" in 16119 '') 16120 ;; 16121 *) 16122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5 16123$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;} 16124 ;; 16125esac 16126 16127 16128LDADD_LIBNTP="$LDADD_LIBNTP $LIBS" 16129LIBS=$__LIBS 16130{ __LIBS=; unset __LIBS;} 16131 16132 16133 16134# Check whether --enable-shared was given. 16135if test "${enable_shared+set}" = set; then : 16136 enableval=$enable_shared; p=${PACKAGE-default} 16137 case $enableval in 16138 yes) enable_shared=yes ;; 16139 no) enable_shared=no ;; 16140 *) 16141 enable_shared=no 16142 # Look at the argument we got. We use all the common list separators. 16143 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 16144 for pkg in $enableval; do 16145 IFS="$lt_save_ifs" 16146 if test "X$pkg" = "X$p"; then 16147 enable_shared=yes 16148 fi 16149 done 16150 IFS="$lt_save_ifs" 16151 ;; 16152 esac 16153else 16154 enable_shared=no 16155fi 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165case `pwd` in 16166 *\ * | *\ *) 16167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 16168$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 16169esac 16170 16171 16172 16173macro_version='2.4' 16174macro_revision='1.3293' 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188ltmain="$ac_aux_dir/ltmain.sh" 16189 16190# Backslashify metacharacters that are still active within 16191# double-quoted strings. 16192sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 16193 16194# Same as above, but do not quote variable references. 16195double_quote_subst='s/\(["`\\]\)/\\\1/g' 16196 16197# Sed substitution to delay expansion of an escaped shell variable in a 16198# double_quote_subst'ed string. 16199delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 16200 16201# Sed substitution to delay expansion of an escaped single quote. 16202delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 16203 16204# Sed substitution to avoid accidental globbing in evaled expressions 16205no_glob_subst='s/\*/\\\*/g' 16206 16207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 16208$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 16209if ${lt_cv_path_NM+:} false; then : 16210 $as_echo_n "(cached) " >&6 16211else 16212 if test -n "$NM"; then 16213 # Let the user override the test. 16214 lt_cv_path_NM="$NM" 16215else 16216 lt_nm_to_check="${ac_tool_prefix}nm" 16217 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 16218 lt_nm_to_check="$lt_nm_to_check nm" 16219 fi 16220 for lt_tmp_nm in $lt_nm_to_check; do 16221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 16222 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 16223 IFS="$lt_save_ifs" 16224 test -z "$ac_dir" && ac_dir=. 16225 tmp_nm="$ac_dir/$lt_tmp_nm" 16226 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 16227 # Check to see if the nm accepts a BSD-compat flag. 16228 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 16229 # nm: unknown option "B" ignored 16230 # Tru64's nm complains that /dev/null is an invalid object file 16231 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 16232 */dev/null* | *'Invalid file or object type'*) 16233 lt_cv_path_NM="$tmp_nm -B" 16234 break 16235 ;; 16236 *) 16237 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 16238 */dev/null*) 16239 lt_cv_path_NM="$tmp_nm -p" 16240 break 16241 ;; 16242 *) 16243 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 16244 continue # so that we can try to find one that supports BSD flags 16245 ;; 16246 esac 16247 ;; 16248 esac 16249 fi 16250 done 16251 IFS="$lt_save_ifs" 16252 done 16253 : ${lt_cv_path_NM=no} 16254fi 16255fi 16256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 16257$as_echo "$lt_cv_path_NM" >&6; } 16258if test "$lt_cv_path_NM" != "no"; then 16259 NM="$lt_cv_path_NM" 16260else 16261 # Didn't find any BSD compatible name lister, look for dumpbin. 16262 if test -n "$DUMPBIN"; then : 16263 # Let the user override the test. 16264 else 16265 if test -n "$ac_tool_prefix"; then 16266 for ac_prog in dumpbin "link -dump" 16267 do 16268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 16269set dummy $ac_tool_prefix$ac_prog; ac_word=$2 16270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16271$as_echo_n "checking for $ac_word... " >&6; } 16272if ${ac_cv_prog_DUMPBIN+:} false; then : 16273 $as_echo_n "(cached) " >&6 16274else 16275 if test -n "$DUMPBIN"; then 16276 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 16277else 16278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16279for as_dir in $PATH 16280do 16281 IFS=$as_save_IFS 16282 test -z "$as_dir" && as_dir=. 16283 for ac_exec_ext in '' $ac_executable_extensions; do 16284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16285 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 16286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16287 break 2 16288 fi 16289done 16290 done 16291IFS=$as_save_IFS 16292 16293fi 16294fi 16295DUMPBIN=$ac_cv_prog_DUMPBIN 16296if test -n "$DUMPBIN"; then 16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 16298$as_echo "$DUMPBIN" >&6; } 16299else 16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16301$as_echo "no" >&6; } 16302fi 16303 16304 16305 test -n "$DUMPBIN" && break 16306 done 16307fi 16308if test -z "$DUMPBIN"; then 16309 ac_ct_DUMPBIN=$DUMPBIN 16310 for ac_prog in dumpbin "link -dump" 16311do 16312 # Extract the first word of "$ac_prog", so it can be a program name with args. 16313set dummy $ac_prog; ac_word=$2 16314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16315$as_echo_n "checking for $ac_word... " >&6; } 16316if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 16317 $as_echo_n "(cached) " >&6 16318else 16319 if test -n "$ac_ct_DUMPBIN"; then 16320 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 16321else 16322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16323for as_dir in $PATH 16324do 16325 IFS=$as_save_IFS 16326 test -z "$as_dir" && as_dir=. 16327 for ac_exec_ext in '' $ac_executable_extensions; do 16328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16329 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 16330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16331 break 2 16332 fi 16333done 16334 done 16335IFS=$as_save_IFS 16336 16337fi 16338fi 16339ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 16340if test -n "$ac_ct_DUMPBIN"; then 16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 16342$as_echo "$ac_ct_DUMPBIN" >&6; } 16343else 16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16345$as_echo "no" >&6; } 16346fi 16347 16348 16349 test -n "$ac_ct_DUMPBIN" && break 16350done 16351 16352 if test "x$ac_ct_DUMPBIN" = x; then 16353 DUMPBIN=":" 16354 else 16355 case $cross_compiling:$ac_tool_warned in 16356yes:) 16357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16359ac_tool_warned=yes ;; 16360esac 16361 DUMPBIN=$ac_ct_DUMPBIN 16362 fi 16363fi 16364 16365 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 16366 *COFF*) 16367 DUMPBIN="$DUMPBIN -symbols" 16368 ;; 16369 *) 16370 DUMPBIN=: 16371 ;; 16372 esac 16373 fi 16374 16375 if test "$DUMPBIN" != ":"; then 16376 NM="$DUMPBIN" 16377 fi 16378fi 16379test -z "$NM" && NM=nm 16380 16381 16382 16383 16384 16385 16386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 16387$as_echo_n "checking the name lister ($NM) interface... " >&6; } 16388if ${lt_cv_nm_interface+:} false; then : 16389 $as_echo_n "(cached) " >&6 16390else 16391 lt_cv_nm_interface="BSD nm" 16392 echo "int some_variable = 0;" > conftest.$ac_ext 16393 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 16394 (eval "$ac_compile" 2>conftest.err) 16395 cat conftest.err >&5 16396 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 16397 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 16398 cat conftest.err >&5 16399 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 16400 cat conftest.out >&5 16401 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 16402 lt_cv_nm_interface="MS dumpbin" 16403 fi 16404 rm -f conftest* 16405fi 16406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 16407$as_echo "$lt_cv_nm_interface" >&6; } 16408 16409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 16410$as_echo_n "checking whether ln -s works... " >&6; } 16411LN_S=$as_ln_s 16412if test "$LN_S" = "ln -s"; then 16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16414$as_echo "yes" >&6; } 16415else 16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 16417$as_echo "no, using $LN_S" >&6; } 16418fi 16419 16420# find the maximum length of command line arguments 16421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 16422$as_echo_n "checking the maximum length of command line arguments... " >&6; } 16423if ${lt_cv_sys_max_cmd_len+:} false; then : 16424 $as_echo_n "(cached) " >&6 16425else 16426 i=0 16427 teststring="ABCD" 16428 16429 case $build_os in 16430 msdosdjgpp*) 16431 # On DJGPP, this test can blow up pretty badly due to problems in libc 16432 # (any single argument exceeding 2000 bytes causes a buffer overrun 16433 # during glob expansion). Even if it were fixed, the result of this 16434 # check would be larger than it should be. 16435 lt_cv_sys_max_cmd_len=12288; # 12K is about right 16436 ;; 16437 16438 gnu*) 16439 # Under GNU Hurd, this test is not required because there is 16440 # no limit to the length of command line arguments. 16441 # Libtool will interpret -1 as no limit whatsoever 16442 lt_cv_sys_max_cmd_len=-1; 16443 ;; 16444 16445 cygwin* | mingw* | cegcc*) 16446 # On Win9x/ME, this test blows up -- it succeeds, but takes 16447 # about 5 minutes as the teststring grows exponentially. 16448 # Worse, since 9x/ME are not pre-emptively multitasking, 16449 # you end up with a "frozen" computer, even though with patience 16450 # the test eventually succeeds (with a max line length of 256k). 16451 # Instead, let's just punt: use the minimum linelength reported by 16452 # all of the supported platforms: 8192 (on NT/2K/XP). 16453 lt_cv_sys_max_cmd_len=8192; 16454 ;; 16455 16456 mint*) 16457 # On MiNT this can take a long time and run out of memory. 16458 lt_cv_sys_max_cmd_len=8192; 16459 ;; 16460 16461 amigaos*) 16462 # On AmigaOS with pdksh, this test takes hours, literally. 16463 # So we just punt and use a minimum line length of 8192. 16464 lt_cv_sys_max_cmd_len=8192; 16465 ;; 16466 16467 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 16468 # This has been around since 386BSD, at least. Likely further. 16469 if test -x /sbin/sysctl; then 16470 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 16471 elif test -x /usr/sbin/sysctl; then 16472 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 16473 else 16474 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 16475 fi 16476 # And add a safety zone 16477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 16478 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 16479 ;; 16480 16481 interix*) 16482 # We know the value 262144 and hardcode it with a safety zone (like BSD) 16483 lt_cv_sys_max_cmd_len=196608 16484 ;; 16485 16486 osf*) 16487 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 16488 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 16489 # nice to cause kernel panics so lets avoid the loop below. 16490 # First set a reasonable default. 16491 lt_cv_sys_max_cmd_len=16384 16492 # 16493 if test -x /sbin/sysconfig; then 16494 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 16495 *1*) lt_cv_sys_max_cmd_len=-1 ;; 16496 esac 16497 fi 16498 ;; 16499 sco3.2v5*) 16500 lt_cv_sys_max_cmd_len=102400 16501 ;; 16502 sysv5* | sco5v6* | sysv4.2uw2*) 16503 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 16504 if test -n "$kargmax"; then 16505 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 16506 else 16507 lt_cv_sys_max_cmd_len=32768 16508 fi 16509 ;; 16510 *) 16511 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 16512 if test -n "$lt_cv_sys_max_cmd_len"; then 16513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 16514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 16515 else 16516 # Make teststring a little bigger before we do anything with it. 16517 # a 1K string should be a reasonable start. 16518 for i in 1 2 3 4 5 6 7 8 ; do 16519 teststring=$teststring$teststring 16520 done 16521 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 16522 # If test is not a shell built-in, we'll probably end up computing a 16523 # maximum length that is only half of the actual maximum length, but 16524 # we can't tell. 16525 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 16526 = "X$teststring$teststring"; } >/dev/null 2>&1 && 16527 test $i != 17 # 1/2 MB should be enough 16528 do 16529 i=`expr $i + 1` 16530 teststring=$teststring$teststring 16531 done 16532 # Only check the string length outside the loop. 16533 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 16534 teststring= 16535 # Add a significant safety factor because C++ compilers can tack on 16536 # massive amounts of additional arguments before passing them to the 16537 # linker. It appears as though 1/2 is a usable value. 16538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 16539 fi 16540 ;; 16541 esac 16542 16543fi 16544 16545if test -n $lt_cv_sys_max_cmd_len ; then 16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 16547$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 16548else 16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 16550$as_echo "none" >&6; } 16551fi 16552max_cmd_len=$lt_cv_sys_max_cmd_len 16553 16554 16555 16556 16557 16558 16559: ${CP="cp -f"} 16560: ${MV="mv -f"} 16561: ${RM="rm -f"} 16562 16563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 16564$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 16565# Try some XSI features 16566xsi_shell=no 16567( _lt_dummy="a/b/c" 16568 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 16569 = c,a/b,b/c, \ 16570 && eval 'test $(( 1 + 1 )) -eq 2 \ 16571 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 16572 && xsi_shell=yes 16573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 16574$as_echo "$xsi_shell" >&6; } 16575 16576 16577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 16578$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 16579lt_shell_append=no 16580( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 16581 >/dev/null 2>&1 \ 16582 && lt_shell_append=yes 16583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 16584$as_echo "$lt_shell_append" >&6; } 16585 16586 16587if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 16588 lt_unset=unset 16589else 16590 lt_unset=false 16591fi 16592 16593 16594 16595 16596 16597# test EBCDIC or ASCII 16598case `echo X|tr X '\101'` in 16599 A) # ASCII based system 16600 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 16601 lt_SP2NL='tr \040 \012' 16602 lt_NL2SP='tr \015\012 \040\040' 16603 ;; 16604 *) # EBCDIC based system 16605 lt_SP2NL='tr \100 \n' 16606 lt_NL2SP='tr \r\n \100\100' 16607 ;; 16608esac 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 16619$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 16620if ${lt_cv_to_host_file_cmd+:} false; then : 16621 $as_echo_n "(cached) " >&6 16622else 16623 case $host in 16624 *-*-mingw* ) 16625 case $build in 16626 *-*-mingw* ) # actually msys 16627 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 16628 ;; 16629 *-*-cygwin* ) 16630 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 16631 ;; 16632 * ) # otherwise, assume *nix 16633 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 16634 ;; 16635 esac 16636 ;; 16637 *-*-cygwin* ) 16638 case $build in 16639 *-*-mingw* ) # actually msys 16640 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 16641 ;; 16642 *-*-cygwin* ) 16643 lt_cv_to_host_file_cmd=func_convert_file_noop 16644 ;; 16645 * ) # otherwise, assume *nix 16646 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 16647 ;; 16648 esac 16649 ;; 16650 * ) # unhandled hosts (and "normal" native builds) 16651 lt_cv_to_host_file_cmd=func_convert_file_noop 16652 ;; 16653esac 16654 16655fi 16656 16657to_host_file_cmd=$lt_cv_to_host_file_cmd 16658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 16659$as_echo "$lt_cv_to_host_file_cmd" >&6; } 16660 16661 16662 16663 16664 16665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 16666$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 16667if ${lt_cv_to_tool_file_cmd+:} false; then : 16668 $as_echo_n "(cached) " >&6 16669else 16670 #assume ordinary cross tools, or native build. 16671lt_cv_to_tool_file_cmd=func_convert_file_noop 16672case $host in 16673 *-*-mingw* ) 16674 case $build in 16675 *-*-mingw* ) # actually msys 16676 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 16677 ;; 16678 esac 16679 ;; 16680esac 16681 16682fi 16683 16684to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 16686$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 16687 16688 16689 16690 16691 16692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 16693$as_echo_n "checking for $LD option to reload object files... " >&6; } 16694if ${lt_cv_ld_reload_flag+:} false; then : 16695 $as_echo_n "(cached) " >&6 16696else 16697 lt_cv_ld_reload_flag='-r' 16698fi 16699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 16700$as_echo "$lt_cv_ld_reload_flag" >&6; } 16701reload_flag=$lt_cv_ld_reload_flag 16702case $reload_flag in 16703"" | " "*) ;; 16704*) reload_flag=" $reload_flag" ;; 16705esac 16706reload_cmds='$LD$reload_flag -o $output$reload_objs' 16707case $host_os in 16708 cygwin* | mingw* | pw32* | cegcc*) 16709 if test "$GCC" != yes; then 16710 reload_cmds=false 16711 fi 16712 ;; 16713 darwin*) 16714 if test "$GCC" = yes; then 16715 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 16716 else 16717 reload_cmds='$LD$reload_flag -o $output$reload_objs' 16718 fi 16719 ;; 16720esac 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730if test -n "$ac_tool_prefix"; then 16731 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 16732set dummy ${ac_tool_prefix}objdump; ac_word=$2 16733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16734$as_echo_n "checking for $ac_word... " >&6; } 16735if ${ac_cv_prog_OBJDUMP+:} false; then : 16736 $as_echo_n "(cached) " >&6 16737else 16738 if test -n "$OBJDUMP"; then 16739 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 16740else 16741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16742for as_dir in $PATH 16743do 16744 IFS=$as_save_IFS 16745 test -z "$as_dir" && as_dir=. 16746 for ac_exec_ext in '' $ac_executable_extensions; do 16747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16748 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 16749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16750 break 2 16751 fi 16752done 16753 done 16754IFS=$as_save_IFS 16755 16756fi 16757fi 16758OBJDUMP=$ac_cv_prog_OBJDUMP 16759if test -n "$OBJDUMP"; then 16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 16761$as_echo "$OBJDUMP" >&6; } 16762else 16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16764$as_echo "no" >&6; } 16765fi 16766 16767 16768fi 16769if test -z "$ac_cv_prog_OBJDUMP"; then 16770 ac_ct_OBJDUMP=$OBJDUMP 16771 # Extract the first word of "objdump", so it can be a program name with args. 16772set dummy objdump; ac_word=$2 16773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16774$as_echo_n "checking for $ac_word... " >&6; } 16775if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 16776 $as_echo_n "(cached) " >&6 16777else 16778 if test -n "$ac_ct_OBJDUMP"; then 16779 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 16780else 16781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16782for as_dir in $PATH 16783do 16784 IFS=$as_save_IFS 16785 test -z "$as_dir" && as_dir=. 16786 for ac_exec_ext in '' $ac_executable_extensions; do 16787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16788 ac_cv_prog_ac_ct_OBJDUMP="objdump" 16789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16790 break 2 16791 fi 16792done 16793 done 16794IFS=$as_save_IFS 16795 16796fi 16797fi 16798ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 16799if test -n "$ac_ct_OBJDUMP"; then 16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 16801$as_echo "$ac_ct_OBJDUMP" >&6; } 16802else 16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16804$as_echo "no" >&6; } 16805fi 16806 16807 if test "x$ac_ct_OBJDUMP" = x; then 16808 OBJDUMP="false" 16809 else 16810 case $cross_compiling:$ac_tool_warned in 16811yes:) 16812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16814ac_tool_warned=yes ;; 16815esac 16816 OBJDUMP=$ac_ct_OBJDUMP 16817 fi 16818else 16819 OBJDUMP="$ac_cv_prog_OBJDUMP" 16820fi 16821 16822test -z "$OBJDUMP" && OBJDUMP=objdump 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 16833$as_echo_n "checking how to recognize dependent libraries... " >&6; } 16834if ${lt_cv_deplibs_check_method+:} false; then : 16835 $as_echo_n "(cached) " >&6 16836else 16837 lt_cv_file_magic_cmd='$MAGIC_CMD' 16838lt_cv_file_magic_test_file= 16839lt_cv_deplibs_check_method='unknown' 16840# Need to set the preceding variable on all platforms that support 16841# interlibrary dependencies. 16842# 'none' -- dependencies not supported. 16843# `unknown' -- same as none, but documents that we really don't know. 16844# 'pass_all' -- all dependencies passed with no checks. 16845# 'test_compile' -- check by making test program. 16846# 'file_magic [[regex]]' -- check by looking for files in library path 16847# which responds to the $file_magic_cmd with a given extended regex. 16848# If you have `file' or equivalent on your system and you're not sure 16849# whether `pass_all' will *always* work, you probably want this one. 16850 16851case $host_os in 16852aix[4-9]*) 16853 lt_cv_deplibs_check_method=pass_all 16854 ;; 16855 16856beos*) 16857 lt_cv_deplibs_check_method=pass_all 16858 ;; 16859 16860bsdi[45]*) 16861 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 16862 lt_cv_file_magic_cmd='/usr/bin/file -L' 16863 lt_cv_file_magic_test_file=/shlib/libc.so 16864 ;; 16865 16866cygwin*) 16867 # func_win32_libid is a shell function defined in ltmain.sh 16868 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 16869 lt_cv_file_magic_cmd='func_win32_libid' 16870 ;; 16871 16872mingw* | pw32*) 16873 # Base MSYS/MinGW do not provide the 'file' command needed by 16874 # func_win32_libid shell function, so use a weaker test based on 'objdump', 16875 # unless we find 'file', for example because we are cross-compiling. 16876 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 16877 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 16878 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 16879 lt_cv_file_magic_cmd='func_win32_libid' 16880 else 16881 # Keep this pattern in sync with the one in func_win32_libid. 16882 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 16883 lt_cv_file_magic_cmd='$OBJDUMP -f' 16884 fi 16885 ;; 16886 16887cegcc*) 16888 # use the weaker test based on 'objdump'. See mingw*. 16889 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 16890 lt_cv_file_magic_cmd='$OBJDUMP -f' 16891 ;; 16892 16893darwin* | rhapsody*) 16894 lt_cv_deplibs_check_method=pass_all 16895 ;; 16896 16897freebsd* | dragonfly*) 16898 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 16899 case $host_cpu in 16900 i*86 ) 16901 # Not sure whether the presence of OpenBSD here was a mistake. 16902 # Let's accept both of them until this is cleared up. 16903 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 16904 lt_cv_file_magic_cmd=/usr/bin/file 16905 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 16906 ;; 16907 esac 16908 else 16909 lt_cv_deplibs_check_method=pass_all 16910 fi 16911 ;; 16912 16913gnu*) 16914 lt_cv_deplibs_check_method=pass_all 16915 ;; 16916 16917haiku*) 16918 lt_cv_deplibs_check_method=pass_all 16919 ;; 16920 16921hpux10.20* | hpux11*) 16922 lt_cv_file_magic_cmd=/usr/bin/file 16923 case $host_cpu in 16924 ia64*) 16925 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 16926 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 16927 ;; 16928 hppa*64*) 16929 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]' 16930 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 16931 ;; 16932 *) 16933 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 16934 lt_cv_file_magic_test_file=/usr/lib/libc.sl 16935 ;; 16936 esac 16937 ;; 16938 16939interix[3-9]*) 16940 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 16941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 16942 ;; 16943 16944irix5* | irix6* | nonstopux*) 16945 case $LD in 16946 *-32|*"-32 ") libmagic=32-bit;; 16947 *-n32|*"-n32 ") libmagic=N32;; 16948 *-64|*"-64 ") libmagic=64-bit;; 16949 *) libmagic=never-match;; 16950 esac 16951 lt_cv_deplibs_check_method=pass_all 16952 ;; 16953 16954# This must be Linux ELF. 16955linux* | k*bsd*-gnu | kopensolaris*-gnu) 16956 lt_cv_deplibs_check_method=pass_all 16957 ;; 16958 16959netbsd*) 16960 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 16961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 16962 else 16963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 16964 fi 16965 ;; 16966 16967newos6*) 16968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 16969 lt_cv_file_magic_cmd=/usr/bin/file 16970 lt_cv_file_magic_test_file=/usr/lib/libnls.so 16971 ;; 16972 16973*nto* | *qnx*) 16974 lt_cv_deplibs_check_method=pass_all 16975 ;; 16976 16977openbsd*) 16978 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 16980 else 16981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 16982 fi 16983 ;; 16984 16985osf3* | osf4* | osf5*) 16986 lt_cv_deplibs_check_method=pass_all 16987 ;; 16988 16989rdos*) 16990 lt_cv_deplibs_check_method=pass_all 16991 ;; 16992 16993solaris*) 16994 lt_cv_deplibs_check_method=pass_all 16995 ;; 16996 16997sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16998 lt_cv_deplibs_check_method=pass_all 16999 ;; 17000 17001sysv4 | sysv4.3*) 17002 case $host_vendor in 17003 motorola) 17004 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]' 17005 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 17006 ;; 17007 ncr) 17008 lt_cv_deplibs_check_method=pass_all 17009 ;; 17010 sequent) 17011 lt_cv_file_magic_cmd='/bin/file' 17012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 17013 ;; 17014 sni) 17015 lt_cv_file_magic_cmd='/bin/file' 17016 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 17017 lt_cv_file_magic_test_file=/lib/libc.so 17018 ;; 17019 siemens) 17020 lt_cv_deplibs_check_method=pass_all 17021 ;; 17022 pc) 17023 lt_cv_deplibs_check_method=pass_all 17024 ;; 17025 esac 17026 ;; 17027 17028tpf*) 17029 lt_cv_deplibs_check_method=pass_all 17030 ;; 17031esac 17032 17033fi 17034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 17035$as_echo "$lt_cv_deplibs_check_method" >&6; } 17036 17037file_magic_glob= 17038want_nocaseglob=no 17039if test "$build" = "$host"; then 17040 case $host_os in 17041 mingw* | pw32*) 17042 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 17043 want_nocaseglob=yes 17044 else 17045 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 17046 fi 17047 ;; 17048 esac 17049fi 17050 17051file_magic_cmd=$lt_cv_file_magic_cmd 17052deplibs_check_method=$lt_cv_deplibs_check_method 17053test -z "$deplibs_check_method" && deplibs_check_method=unknown 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076if test -n "$ac_tool_prefix"; then 17077 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 17078set dummy ${ac_tool_prefix}dlltool; ac_word=$2 17079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17080$as_echo_n "checking for $ac_word... " >&6; } 17081if ${ac_cv_prog_DLLTOOL+:} false; then : 17082 $as_echo_n "(cached) " >&6 17083else 17084 if test -n "$DLLTOOL"; then 17085 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 17086else 17087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17088for as_dir in $PATH 17089do 17090 IFS=$as_save_IFS 17091 test -z "$as_dir" && as_dir=. 17092 for ac_exec_ext in '' $ac_executable_extensions; do 17093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17094 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 17095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17096 break 2 17097 fi 17098done 17099 done 17100IFS=$as_save_IFS 17101 17102fi 17103fi 17104DLLTOOL=$ac_cv_prog_DLLTOOL 17105if test -n "$DLLTOOL"; then 17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 17107$as_echo "$DLLTOOL" >&6; } 17108else 17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17110$as_echo "no" >&6; } 17111fi 17112 17113 17114fi 17115if test -z "$ac_cv_prog_DLLTOOL"; then 17116 ac_ct_DLLTOOL=$DLLTOOL 17117 # Extract the first word of "dlltool", so it can be a program name with args. 17118set dummy dlltool; ac_word=$2 17119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17120$as_echo_n "checking for $ac_word... " >&6; } 17121if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 17122 $as_echo_n "(cached) " >&6 17123else 17124 if test -n "$ac_ct_DLLTOOL"; then 17125 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 17126else 17127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17128for as_dir in $PATH 17129do 17130 IFS=$as_save_IFS 17131 test -z "$as_dir" && as_dir=. 17132 for ac_exec_ext in '' $ac_executable_extensions; do 17133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17134 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 17135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17136 break 2 17137 fi 17138done 17139 done 17140IFS=$as_save_IFS 17141 17142fi 17143fi 17144ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 17145if test -n "$ac_ct_DLLTOOL"; then 17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 17147$as_echo "$ac_ct_DLLTOOL" >&6; } 17148else 17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17150$as_echo "no" >&6; } 17151fi 17152 17153 if test "x$ac_ct_DLLTOOL" = x; then 17154 DLLTOOL="false" 17155 else 17156 case $cross_compiling:$ac_tool_warned in 17157yes:) 17158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17160ac_tool_warned=yes ;; 17161esac 17162 DLLTOOL=$ac_ct_DLLTOOL 17163 fi 17164else 17165 DLLTOOL="$ac_cv_prog_DLLTOOL" 17166fi 17167 17168test -z "$DLLTOOL" && DLLTOOL=dlltool 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 17180$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 17181if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 17182 $as_echo_n "(cached) " >&6 17183else 17184 lt_cv_sharedlib_from_linklib_cmd='unknown' 17185 17186case $host_os in 17187cygwin* | mingw* | pw32* | cegcc*) 17188 # two different shell functions defined in ltmain.sh 17189 # decide which to use based on capabilities of $DLLTOOL 17190 case `$DLLTOOL --help 2>&1` in 17191 *--identify-strict*) 17192 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 17193 ;; 17194 *) 17195 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 17196 ;; 17197 esac 17198 ;; 17199*) 17200 # fallback: assume linklib IS sharedlib 17201 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 17202 ;; 17203esac 17204 17205fi 17206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 17207$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 17208sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 17209test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 17210 17211 17212 17213 17214 17215 17216 17217if test -n "$ac_tool_prefix"; then 17218 for ac_prog in ar 17219 do 17220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 17221set dummy $ac_tool_prefix$ac_prog; ac_word=$2 17222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17223$as_echo_n "checking for $ac_word... " >&6; } 17224if ${ac_cv_prog_AR+:} false; then : 17225 $as_echo_n "(cached) " >&6 17226else 17227 if test -n "$AR"; then 17228 ac_cv_prog_AR="$AR" # Let the user override the test. 17229else 17230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17231for as_dir in $PATH 17232do 17233 IFS=$as_save_IFS 17234 test -z "$as_dir" && as_dir=. 17235 for ac_exec_ext in '' $ac_executable_extensions; do 17236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17237 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 17238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17239 break 2 17240 fi 17241done 17242 done 17243IFS=$as_save_IFS 17244 17245fi 17246fi 17247AR=$ac_cv_prog_AR 17248if test -n "$AR"; then 17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 17250$as_echo "$AR" >&6; } 17251else 17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17253$as_echo "no" >&6; } 17254fi 17255 17256 17257 test -n "$AR" && break 17258 done 17259fi 17260if test -z "$AR"; then 17261 ac_ct_AR=$AR 17262 for ac_prog in ar 17263do 17264 # Extract the first word of "$ac_prog", so it can be a program name with args. 17265set dummy $ac_prog; ac_word=$2 17266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17267$as_echo_n "checking for $ac_word... " >&6; } 17268if ${ac_cv_prog_ac_ct_AR+:} false; then : 17269 $as_echo_n "(cached) " >&6 17270else 17271 if test -n "$ac_ct_AR"; then 17272 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 17273else 17274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17275for as_dir in $PATH 17276do 17277 IFS=$as_save_IFS 17278 test -z "$as_dir" && as_dir=. 17279 for ac_exec_ext in '' $ac_executable_extensions; do 17280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17281 ac_cv_prog_ac_ct_AR="$ac_prog" 17282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17283 break 2 17284 fi 17285done 17286 done 17287IFS=$as_save_IFS 17288 17289fi 17290fi 17291ac_ct_AR=$ac_cv_prog_ac_ct_AR 17292if test -n "$ac_ct_AR"; then 17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 17294$as_echo "$ac_ct_AR" >&6; } 17295else 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17297$as_echo "no" >&6; } 17298fi 17299 17300 17301 test -n "$ac_ct_AR" && break 17302done 17303 17304 if test "x$ac_ct_AR" = x; then 17305 AR="false" 17306 else 17307 case $cross_compiling:$ac_tool_warned in 17308yes:) 17309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17311ac_tool_warned=yes ;; 17312esac 17313 AR=$ac_ct_AR 17314 fi 17315fi 17316 17317: ${AR=ar} 17318: ${AR_FLAGS=cru} 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 17331$as_echo_n "checking for archiver @FILE support... " >&6; } 17332if ${lt_cv_ar_at_file+:} false; then : 17333 $as_echo_n "(cached) " >&6 17334else 17335 lt_cv_ar_at_file=no 17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17337/* end confdefs.h. */ 17338 17339int 17340main () 17341{ 17342 17343 ; 17344 return 0; 17345} 17346_ACEOF 17347if ac_fn_c_try_compile "$LINENO"; then : 17348 echo conftest.$ac_objext > conftest.lst 17349 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 17350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 17351 (eval $lt_ar_try) 2>&5 17352 ac_status=$? 17353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17354 test $ac_status = 0; } 17355 if test "$ac_status" -eq 0; then 17356 # Ensure the archiver fails upon bogus file names. 17357 rm -f conftest.$ac_objext libconftest.a 17358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 17359 (eval $lt_ar_try) 2>&5 17360 ac_status=$? 17361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17362 test $ac_status = 0; } 17363 if test "$ac_status" -ne 0; then 17364 lt_cv_ar_at_file=@ 17365 fi 17366 fi 17367 rm -f conftest.* libconftest.a 17368 17369fi 17370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17371 17372fi 17373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 17374$as_echo "$lt_cv_ar_at_file" >&6; } 17375 17376if test "x$lt_cv_ar_at_file" = xno; then 17377 archiver_list_spec= 17378else 17379 archiver_list_spec=$lt_cv_ar_at_file 17380fi 17381 17382 17383 17384 17385 17386 17387 17388if test -n "$ac_tool_prefix"; then 17389 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 17390set dummy ${ac_tool_prefix}strip; ac_word=$2 17391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17392$as_echo_n "checking for $ac_word... " >&6; } 17393if ${ac_cv_prog_STRIP+:} false; then : 17394 $as_echo_n "(cached) " >&6 17395else 17396 if test -n "$STRIP"; then 17397 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 17398else 17399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17400for as_dir in $PATH 17401do 17402 IFS=$as_save_IFS 17403 test -z "$as_dir" && as_dir=. 17404 for ac_exec_ext in '' $ac_executable_extensions; do 17405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17406 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 17407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17408 break 2 17409 fi 17410done 17411 done 17412IFS=$as_save_IFS 17413 17414fi 17415fi 17416STRIP=$ac_cv_prog_STRIP 17417if test -n "$STRIP"; then 17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 17419$as_echo "$STRIP" >&6; } 17420else 17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17422$as_echo "no" >&6; } 17423fi 17424 17425 17426fi 17427if test -z "$ac_cv_prog_STRIP"; then 17428 ac_ct_STRIP=$STRIP 17429 # Extract the first word of "strip", so it can be a program name with args. 17430set dummy strip; ac_word=$2 17431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17432$as_echo_n "checking for $ac_word... " >&6; } 17433if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 17434 $as_echo_n "(cached) " >&6 17435else 17436 if test -n "$ac_ct_STRIP"; then 17437 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 17438else 17439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17440for as_dir in $PATH 17441do 17442 IFS=$as_save_IFS 17443 test -z "$as_dir" && as_dir=. 17444 for ac_exec_ext in '' $ac_executable_extensions; do 17445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17446 ac_cv_prog_ac_ct_STRIP="strip" 17447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17448 break 2 17449 fi 17450done 17451 done 17452IFS=$as_save_IFS 17453 17454fi 17455fi 17456ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 17457if test -n "$ac_ct_STRIP"; then 17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 17459$as_echo "$ac_ct_STRIP" >&6; } 17460else 17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17462$as_echo "no" >&6; } 17463fi 17464 17465 if test "x$ac_ct_STRIP" = x; then 17466 STRIP=":" 17467 else 17468 case $cross_compiling:$ac_tool_warned in 17469yes:) 17470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17472ac_tool_warned=yes ;; 17473esac 17474 STRIP=$ac_ct_STRIP 17475 fi 17476else 17477 STRIP="$ac_cv_prog_STRIP" 17478fi 17479 17480test -z "$STRIP" && STRIP=: 17481 17482 17483 17484 17485 17486 17487if test -n "$ac_tool_prefix"; then 17488 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 17489set dummy ${ac_tool_prefix}ranlib; ac_word=$2 17490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17491$as_echo_n "checking for $ac_word... " >&6; } 17492if ${ac_cv_prog_RANLIB+:} false; then : 17493 $as_echo_n "(cached) " >&6 17494else 17495 if test -n "$RANLIB"; then 17496 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 17497else 17498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17499for as_dir in $PATH 17500do 17501 IFS=$as_save_IFS 17502 test -z "$as_dir" && as_dir=. 17503 for ac_exec_ext in '' $ac_executable_extensions; do 17504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17505 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 17506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17507 break 2 17508 fi 17509done 17510 done 17511IFS=$as_save_IFS 17512 17513fi 17514fi 17515RANLIB=$ac_cv_prog_RANLIB 17516if test -n "$RANLIB"; then 17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 17518$as_echo "$RANLIB" >&6; } 17519else 17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17521$as_echo "no" >&6; } 17522fi 17523 17524 17525fi 17526if test -z "$ac_cv_prog_RANLIB"; then 17527 ac_ct_RANLIB=$RANLIB 17528 # Extract the first word of "ranlib", so it can be a program name with args. 17529set dummy ranlib; ac_word=$2 17530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17531$as_echo_n "checking for $ac_word... " >&6; } 17532if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 17533 $as_echo_n "(cached) " >&6 17534else 17535 if test -n "$ac_ct_RANLIB"; then 17536 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 17537else 17538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17539for as_dir in $PATH 17540do 17541 IFS=$as_save_IFS 17542 test -z "$as_dir" && as_dir=. 17543 for ac_exec_ext in '' $ac_executable_extensions; do 17544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17545 ac_cv_prog_ac_ct_RANLIB="ranlib" 17546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17547 break 2 17548 fi 17549done 17550 done 17551IFS=$as_save_IFS 17552 17553fi 17554fi 17555ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 17556if test -n "$ac_ct_RANLIB"; then 17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 17558$as_echo "$ac_ct_RANLIB" >&6; } 17559else 17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17561$as_echo "no" >&6; } 17562fi 17563 17564 if test "x$ac_ct_RANLIB" = x; then 17565 RANLIB=":" 17566 else 17567 case $cross_compiling:$ac_tool_warned in 17568yes:) 17569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17571ac_tool_warned=yes ;; 17572esac 17573 RANLIB=$ac_ct_RANLIB 17574 fi 17575else 17576 RANLIB="$ac_cv_prog_RANLIB" 17577fi 17578 17579test -z "$RANLIB" && RANLIB=: 17580 17581 17582 17583 17584 17585 17586# Determine commands to create old-style static archives. 17587old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 17588old_postinstall_cmds='chmod 644 $oldlib' 17589old_postuninstall_cmds= 17590 17591if test -n "$RANLIB"; then 17592 case $host_os in 17593 openbsd*) 17594 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 17595 ;; 17596 *) 17597 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 17598 ;; 17599 esac 17600 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 17601fi 17602 17603case $host_os in 17604 darwin*) 17605 lock_old_archive_extraction=yes ;; 17606 *) 17607 lock_old_archive_extraction=no ;; 17608esac 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648# If no C compiler was specified, use CC. 17649LTCC=${LTCC-"$CC"} 17650 17651# If no C compiler flags were specified, use CFLAGS. 17652LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17653 17654# Allow CC to be a program name with arguments. 17655compiler=$CC 17656 17657 17658# Check for command to grab the raw symbol name followed by C symbol from nm. 17659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 17660$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 17661if ${lt_cv_sys_global_symbol_pipe+:} false; then : 17662 $as_echo_n "(cached) " >&6 17663else 17664 17665# These are sane defaults that work on at least a few old systems. 17666# [They come from Ultrix. What could be older than Ultrix?!! ;)] 17667 17668# Character class describing NM global symbol codes. 17669symcode='[BCDEGRST]' 17670 17671# Regexp to match symbols that can be accessed directly from C. 17672sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 17673 17674# Define system-specific variables. 17675case $host_os in 17676aix*) 17677 symcode='[BCDT]' 17678 ;; 17679cygwin* | mingw* | pw32* | cegcc*) 17680 symcode='[ABCDGISTW]' 17681 ;; 17682hpux*) 17683 if test "$host_cpu" = ia64; then 17684 symcode='[ABCDEGRST]' 17685 fi 17686 ;; 17687irix* | nonstopux*) 17688 symcode='[BCDEGRST]' 17689 ;; 17690osf*) 17691 symcode='[BCDEGQRST]' 17692 ;; 17693solaris*) 17694 symcode='[BDRT]' 17695 ;; 17696sco3.2v5*) 17697 symcode='[DT]' 17698 ;; 17699sysv4.2uw2*) 17700 symcode='[DT]' 17701 ;; 17702sysv5* | sco5v6* | unixware* | OpenUNIX*) 17703 symcode='[ABDT]' 17704 ;; 17705sysv4) 17706 symcode='[DFNSTU]' 17707 ;; 17708esac 17709 17710# If we're using GNU nm, then use its standard symbol codes. 17711case `$NM -V 2>&1` in 17712*GNU* | *'with BFD'*) 17713 symcode='[ABCDGIRSTW]' ;; 17714esac 17715 17716# Transform an extracted symbol line into a proper C declaration. 17717# Some systems (esp. on ia64) link data and code symbols differently, 17718# so use this general approach. 17719lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 17720 17721# Transform an extracted symbol line into symbol name and symbol address 17722lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 17723lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 17724 17725# Handle CRLF in mingw tool chain 17726opt_cr= 17727case $build_os in 17728mingw*) 17729 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 17730 ;; 17731esac 17732 17733# Try without a prefix underscore, then with it. 17734for ac_symprfx in "" "_"; do 17735 17736 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 17737 symxfrm="\\1 $ac_symprfx\\2 \\2" 17738 17739 # Write the raw and C identifiers. 17740 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 17741 # Fake it for dumpbin and say T for any non-static function 17742 # and D for any global variable. 17743 # Also find C++ and __fastcall symbols from MSVC++, 17744 # which start with @ or ?. 17745 lt_cv_sys_global_symbol_pipe="$AWK '"\ 17746" {last_section=section; section=\$ 3};"\ 17747" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 17748" \$ 0!~/External *\|/{next};"\ 17749" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 17750" {if(hide[section]) next};"\ 17751" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 17752" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 17753" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 17754" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 17755" ' prfx=^$ac_symprfx" 17756 else 17757 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 17758 fi 17759 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 17760 17761 # Check to see that the pipe works correctly. 17762 pipe_works=no 17763 17764 rm -f conftest* 17765 cat > conftest.$ac_ext <<_LT_EOF 17766#ifdef __cplusplus 17767extern "C" { 17768#endif 17769char nm_test_var; 17770void nm_test_func(void); 17771void nm_test_func(void){} 17772#ifdef __cplusplus 17773} 17774#endif 17775int main(){nm_test_var='a';nm_test_func();return(0);} 17776_LT_EOF 17777 17778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17779 (eval $ac_compile) 2>&5 17780 ac_status=$? 17781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17782 test $ac_status = 0; }; then 17783 # Now try to grab the symbols. 17784 nlist=conftest.nm 17785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 17786 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 17787 ac_status=$? 17788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17789 test $ac_status = 0; } && test -s "$nlist"; then 17790 # Try sorting and uniquifying the output. 17791 if sort "$nlist" | uniq > "$nlist"T; then 17792 mv -f "$nlist"T "$nlist" 17793 else 17794 rm -f "$nlist"T 17795 fi 17796 17797 # Make sure that we snagged all the symbols we need. 17798 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 17799 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 17800 cat <<_LT_EOF > conftest.$ac_ext 17801/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 17802#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 17803/* DATA imports from DLLs on WIN32 con't be const, because runtime 17804 relocations are performed -- see ld's documentation on pseudo-relocs. */ 17805# define LT_DLSYM_CONST 17806#elif defined(__osf__) 17807/* This system does not cope well with relocations in const data. */ 17808# define LT_DLSYM_CONST 17809#else 17810# define LT_DLSYM_CONST const 17811#endif 17812 17813#ifdef __cplusplus 17814extern "C" { 17815#endif 17816 17817_LT_EOF 17818 # Now generate the symbol file. 17819 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 17820 17821 cat <<_LT_EOF >> conftest.$ac_ext 17822 17823/* The mapping between symbol names and symbols. */ 17824LT_DLSYM_CONST struct { 17825 const char *name; 17826 void *address; 17827} 17828lt__PROGRAM__LTX_preloaded_symbols[] = 17829{ 17830 { "@PROGRAM@", (void *) 0 }, 17831_LT_EOF 17832 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 17833 cat <<\_LT_EOF >> conftest.$ac_ext 17834 {0, (void *) 0} 17835}; 17836 17837/* This works around a problem in FreeBSD linker */ 17838#ifdef FREEBSD_WORKAROUND 17839static const void *lt_preloaded_setup() { 17840 return lt__PROGRAM__LTX_preloaded_symbols; 17841} 17842#endif 17843 17844#ifdef __cplusplus 17845} 17846#endif 17847_LT_EOF 17848 # Now try linking the two files. 17849 mv conftest.$ac_objext conftstm.$ac_objext 17850 lt_globsym_save_LIBS=$LIBS 17851 lt_globsym_save_CFLAGS=$CFLAGS 17852 LIBS="conftstm.$ac_objext" 17853 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 17854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17855 (eval $ac_link) 2>&5 17856 ac_status=$? 17857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17858 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 17859 pipe_works=yes 17860 fi 17861 LIBS=$lt_globsym_save_LIBS 17862 CFLAGS=$lt_globsym_save_CFLAGS 17863 else 17864 echo "cannot find nm_test_func in $nlist" >&5 17865 fi 17866 else 17867 echo "cannot find nm_test_var in $nlist" >&5 17868 fi 17869 else 17870 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 17871 fi 17872 else 17873 echo "$progname: failed program was:" >&5 17874 cat conftest.$ac_ext >&5 17875 fi 17876 rm -rf conftest* conftst* 17877 17878 # Do not use the global_symbol_pipe unless it works. 17879 if test "$pipe_works" = yes; then 17880 break 17881 else 17882 lt_cv_sys_global_symbol_pipe= 17883 fi 17884done 17885 17886fi 17887 17888if test -z "$lt_cv_sys_global_symbol_pipe"; then 17889 lt_cv_sys_global_symbol_to_cdecl= 17890fi 17891if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 17893$as_echo "failed" >&6; } 17894else 17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 17896$as_echo "ok" >&6; } 17897fi 17898 17899# Response file support. 17900if test "$lt_cv_nm_interface" = "MS dumpbin"; then 17901 nm_file_list_spec='@' 17902elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 17903 nm_file_list_spec='@' 17904fi 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17933$as_echo_n "checking for sysroot... " >&6; } 17934 17935# Check whether --with-sysroot was given. 17936if test "${with_sysroot+set}" = set; then : 17937 withval=$with_sysroot; 17938else 17939 with_sysroot=no 17940fi 17941 17942 17943lt_sysroot= 17944case ${with_sysroot} in #( 17945 yes) 17946 if test "$GCC" = yes; then 17947 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 17948 fi 17949 ;; #( 17950 /*) 17951 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 17952 ;; #( 17953 no|'') 17954 ;; #( 17955 *) 17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 17957$as_echo "${with_sysroot}" >&6; } 17958 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 17959 ;; 17960esac 17961 17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 17963$as_echo "${lt_sysroot:-no}" >&6; } 17964 17965 17966 17967 17968 17969# Check whether --enable-libtool-lock was given. 17970if test "${enable_libtool_lock+set}" = set; then : 17971 enableval=$enable_libtool_lock; 17972fi 17973 17974test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 17975 17976# Some flags need to be propagated to the compiler or linker for good 17977# libtool support. 17978case $host in 17979ia64-*-hpux*) 17980 # Find out which ABI we are using. 17981 echo 'int i;' > conftest.$ac_ext 17982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17983 (eval $ac_compile) 2>&5 17984 ac_status=$? 17985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17986 test $ac_status = 0; }; then 17987 case `/usr/bin/file conftest.$ac_objext` in 17988 *ELF-32*) 17989 HPUX_IA64_MODE="32" 17990 ;; 17991 *ELF-64*) 17992 HPUX_IA64_MODE="64" 17993 ;; 17994 esac 17995 fi 17996 rm -rf conftest* 17997 ;; 17998*-*-irix6*) 17999 # Find out which ABI we are using. 18000 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 18001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18002 (eval $ac_compile) 2>&5 18003 ac_status=$? 18004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18005 test $ac_status = 0; }; then 18006 if test "$lt_cv_prog_gnu_ld" = yes; then 18007 case `/usr/bin/file conftest.$ac_objext` in 18008 *32-bit*) 18009 LD="${LD-ld} -melf32bsmip" 18010 ;; 18011 *N32*) 18012 LD="${LD-ld} -melf32bmipn32" 18013 ;; 18014 *64-bit*) 18015 LD="${LD-ld} -melf64bmip" 18016 ;; 18017 esac 18018 else 18019 case `/usr/bin/file conftest.$ac_objext` in 18020 *32-bit*) 18021 LD="${LD-ld} -32" 18022 ;; 18023 *N32*) 18024 LD="${LD-ld} -n32" 18025 ;; 18026 *64-bit*) 18027 LD="${LD-ld} -64" 18028 ;; 18029 esac 18030 fi 18031 fi 18032 rm -rf conftest* 18033 ;; 18034 18035x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 18036s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 18037 # Find out which ABI we are using. 18038 echo 'int i;' > conftest.$ac_ext 18039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18040 (eval $ac_compile) 2>&5 18041 ac_status=$? 18042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18043 test $ac_status = 0; }; then 18044 case `/usr/bin/file conftest.o` in 18045 *32-bit*) 18046 case $host in 18047 x86_64-*kfreebsd*-gnu) 18048 LD="${LD-ld} -m elf_i386_fbsd" 18049 ;; 18050 x86_64-*linux*) 18051 LD="${LD-ld} -m elf_i386" 18052 ;; 18053 ppc64-*linux*|powerpc64-*linux*) 18054 LD="${LD-ld} -m elf32ppclinux" 18055 ;; 18056 s390x-*linux*) 18057 LD="${LD-ld} -m elf_s390" 18058 ;; 18059 sparc64-*linux*) 18060 LD="${LD-ld} -m elf32_sparc" 18061 ;; 18062 esac 18063 ;; 18064 *64-bit*) 18065 case $host in 18066 x86_64-*kfreebsd*-gnu) 18067 LD="${LD-ld} -m elf_x86_64_fbsd" 18068 ;; 18069 x86_64-*linux*) 18070 LD="${LD-ld} -m elf_x86_64" 18071 ;; 18072 ppc*-*linux*|powerpc*-*linux*) 18073 LD="${LD-ld} -m elf64ppc" 18074 ;; 18075 s390*-*linux*|s390*-*tpf*) 18076 LD="${LD-ld} -m elf64_s390" 18077 ;; 18078 sparc*-*linux*) 18079 LD="${LD-ld} -m elf64_sparc" 18080 ;; 18081 esac 18082 ;; 18083 esac 18084 fi 18085 rm -rf conftest* 18086 ;; 18087 18088*-*-sco3.2v5*) 18089 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 18090 SAVE_CFLAGS="$CFLAGS" 18091 CFLAGS="$CFLAGS -belf" 18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 18093$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 18094if ${lt_cv_cc_needs_belf+:} false; then : 18095 $as_echo_n "(cached) " >&6 18096else 18097 ac_ext=c 18098ac_cpp='$CPP $CPPFLAGS' 18099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18101ac_compiler_gnu=$ac_cv_c_compiler_gnu 18102 18103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18104/* end confdefs.h. */ 18105 18106int 18107main () 18108{ 18109 18110 ; 18111 return 0; 18112} 18113_ACEOF 18114if ac_fn_c_try_link "$LINENO"; then : 18115 lt_cv_cc_needs_belf=yes 18116else 18117 lt_cv_cc_needs_belf=no 18118fi 18119rm -f core conftest.err conftest.$ac_objext \ 18120 conftest$ac_exeext conftest.$ac_ext 18121 ac_ext=c 18122ac_cpp='$CPP $CPPFLAGS' 18123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18125ac_compiler_gnu=$ac_cv_c_compiler_gnu 18126 18127fi 18128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 18129$as_echo "$lt_cv_cc_needs_belf" >&6; } 18130 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 18131 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 18132 CFLAGS="$SAVE_CFLAGS" 18133 fi 18134 ;; 18135sparc*-*solaris*) 18136 # Find out which ABI we are using. 18137 echo 'int i;' > conftest.$ac_ext 18138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18139 (eval $ac_compile) 2>&5 18140 ac_status=$? 18141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18142 test $ac_status = 0; }; then 18143 case `/usr/bin/file conftest.o` in 18144 *64-bit*) 18145 case $lt_cv_prog_gnu_ld in 18146 yes*) LD="${LD-ld} -m elf64_sparc" ;; 18147 *) 18148 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 18149 LD="${LD-ld} -64" 18150 fi 18151 ;; 18152 esac 18153 ;; 18154 esac 18155 fi 18156 rm -rf conftest* 18157 ;; 18158esac 18159 18160need_locks="$enable_libtool_lock" 18161 18162if test -n "$ac_tool_prefix"; then 18163 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 18164set dummy ${ac_tool_prefix}mt; ac_word=$2 18165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18166$as_echo_n "checking for $ac_word... " >&6; } 18167if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 18168 $as_echo_n "(cached) " >&6 18169else 18170 if test -n "$MANIFEST_TOOL"; then 18171 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 18172else 18173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18174for as_dir in $PATH 18175do 18176 IFS=$as_save_IFS 18177 test -z "$as_dir" && as_dir=. 18178 for ac_exec_ext in '' $ac_executable_extensions; do 18179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18180 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 18181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18182 break 2 18183 fi 18184done 18185 done 18186IFS=$as_save_IFS 18187 18188fi 18189fi 18190MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 18191if test -n "$MANIFEST_TOOL"; then 18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 18193$as_echo "$MANIFEST_TOOL" >&6; } 18194else 18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18196$as_echo "no" >&6; } 18197fi 18198 18199 18200fi 18201if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 18202 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 18203 # Extract the first word of "mt", so it can be a program name with args. 18204set dummy mt; ac_word=$2 18205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18206$as_echo_n "checking for $ac_word... " >&6; } 18207if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 18208 $as_echo_n "(cached) " >&6 18209else 18210 if test -n "$ac_ct_MANIFEST_TOOL"; then 18211 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 18212else 18213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18214for as_dir in $PATH 18215do 18216 IFS=$as_save_IFS 18217 test -z "$as_dir" && as_dir=. 18218 for ac_exec_ext in '' $ac_executable_extensions; do 18219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18220 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 18221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18222 break 2 18223 fi 18224done 18225 done 18226IFS=$as_save_IFS 18227 18228fi 18229fi 18230ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 18231if test -n "$ac_ct_MANIFEST_TOOL"; then 18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 18233$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 18234else 18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18236$as_echo "no" >&6; } 18237fi 18238 18239 if test "x$ac_ct_MANIFEST_TOOL" = x; then 18240 MANIFEST_TOOL=":" 18241 else 18242 case $cross_compiling:$ac_tool_warned in 18243yes:) 18244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18246ac_tool_warned=yes ;; 18247esac 18248 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 18249 fi 18250else 18251 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 18252fi 18253 18254test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 18255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 18256$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 18257if ${lt_cv_path_mainfest_tool+:} false; then : 18258 $as_echo_n "(cached) " >&6 18259else 18260 lt_cv_path_mainfest_tool=no 18261 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 18262 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 18263 cat conftest.err >&5 18264 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 18265 lt_cv_path_mainfest_tool=yes 18266 fi 18267 rm -f conftest* 18268fi 18269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 18270$as_echo "$lt_cv_path_mainfest_tool" >&6; } 18271if test "x$lt_cv_path_mainfest_tool" != xyes; then 18272 MANIFEST_TOOL=: 18273fi 18274 18275 18276 18277 18278 18279 18280 case $host_os in 18281 rhapsody* | darwin*) 18282 if test -n "$ac_tool_prefix"; then 18283 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 18284set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 18285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18286$as_echo_n "checking for $ac_word... " >&6; } 18287if ${ac_cv_prog_DSYMUTIL+:} false; then : 18288 $as_echo_n "(cached) " >&6 18289else 18290 if test -n "$DSYMUTIL"; then 18291 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 18292else 18293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18294for as_dir in $PATH 18295do 18296 IFS=$as_save_IFS 18297 test -z "$as_dir" && as_dir=. 18298 for ac_exec_ext in '' $ac_executable_extensions; do 18299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18300 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 18301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18302 break 2 18303 fi 18304done 18305 done 18306IFS=$as_save_IFS 18307 18308fi 18309fi 18310DSYMUTIL=$ac_cv_prog_DSYMUTIL 18311if test -n "$DSYMUTIL"; then 18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18313$as_echo "$DSYMUTIL" >&6; } 18314else 18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18316$as_echo "no" >&6; } 18317fi 18318 18319 18320fi 18321if test -z "$ac_cv_prog_DSYMUTIL"; then 18322 ac_ct_DSYMUTIL=$DSYMUTIL 18323 # Extract the first word of "dsymutil", so it can be a program name with args. 18324set dummy dsymutil; ac_word=$2 18325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18326$as_echo_n "checking for $ac_word... " >&6; } 18327if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 18328 $as_echo_n "(cached) " >&6 18329else 18330 if test -n "$ac_ct_DSYMUTIL"; then 18331 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 18332else 18333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18334for as_dir in $PATH 18335do 18336 IFS=$as_save_IFS 18337 test -z "$as_dir" && as_dir=. 18338 for ac_exec_ext in '' $ac_executable_extensions; do 18339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18340 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 18341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18342 break 2 18343 fi 18344done 18345 done 18346IFS=$as_save_IFS 18347 18348fi 18349fi 18350ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 18351if test -n "$ac_ct_DSYMUTIL"; then 18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 18353$as_echo "$ac_ct_DSYMUTIL" >&6; } 18354else 18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18356$as_echo "no" >&6; } 18357fi 18358 18359 if test "x$ac_ct_DSYMUTIL" = x; then 18360 DSYMUTIL=":" 18361 else 18362 case $cross_compiling:$ac_tool_warned in 18363yes:) 18364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18366ac_tool_warned=yes ;; 18367esac 18368 DSYMUTIL=$ac_ct_DSYMUTIL 18369 fi 18370else 18371 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 18372fi 18373 18374 if test -n "$ac_tool_prefix"; then 18375 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 18376set dummy ${ac_tool_prefix}nmedit; ac_word=$2 18377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18378$as_echo_n "checking for $ac_word... " >&6; } 18379if ${ac_cv_prog_NMEDIT+:} false; then : 18380 $as_echo_n "(cached) " >&6 18381else 18382 if test -n "$NMEDIT"; then 18383 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 18384else 18385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18386for as_dir in $PATH 18387do 18388 IFS=$as_save_IFS 18389 test -z "$as_dir" && as_dir=. 18390 for ac_exec_ext in '' $ac_executable_extensions; do 18391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18392 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 18393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18394 break 2 18395 fi 18396done 18397 done 18398IFS=$as_save_IFS 18399 18400fi 18401fi 18402NMEDIT=$ac_cv_prog_NMEDIT 18403if test -n "$NMEDIT"; then 18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 18405$as_echo "$NMEDIT" >&6; } 18406else 18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18408$as_echo "no" >&6; } 18409fi 18410 18411 18412fi 18413if test -z "$ac_cv_prog_NMEDIT"; then 18414 ac_ct_NMEDIT=$NMEDIT 18415 # Extract the first word of "nmedit", so it can be a program name with args. 18416set dummy nmedit; ac_word=$2 18417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18418$as_echo_n "checking for $ac_word... " >&6; } 18419if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 18420 $as_echo_n "(cached) " >&6 18421else 18422 if test -n "$ac_ct_NMEDIT"; then 18423 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 18424else 18425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18426for as_dir in $PATH 18427do 18428 IFS=$as_save_IFS 18429 test -z "$as_dir" && as_dir=. 18430 for ac_exec_ext in '' $ac_executable_extensions; do 18431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18432 ac_cv_prog_ac_ct_NMEDIT="nmedit" 18433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18434 break 2 18435 fi 18436done 18437 done 18438IFS=$as_save_IFS 18439 18440fi 18441fi 18442ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 18443if test -n "$ac_ct_NMEDIT"; then 18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 18445$as_echo "$ac_ct_NMEDIT" >&6; } 18446else 18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18448$as_echo "no" >&6; } 18449fi 18450 18451 if test "x$ac_ct_NMEDIT" = x; then 18452 NMEDIT=":" 18453 else 18454 case $cross_compiling:$ac_tool_warned in 18455yes:) 18456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18458ac_tool_warned=yes ;; 18459esac 18460 NMEDIT=$ac_ct_NMEDIT 18461 fi 18462else 18463 NMEDIT="$ac_cv_prog_NMEDIT" 18464fi 18465 18466 if test -n "$ac_tool_prefix"; then 18467 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 18468set dummy ${ac_tool_prefix}lipo; ac_word=$2 18469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18470$as_echo_n "checking for $ac_word... " >&6; } 18471if ${ac_cv_prog_LIPO+:} false; then : 18472 $as_echo_n "(cached) " >&6 18473else 18474 if test -n "$LIPO"; then 18475 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 18476else 18477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18478for as_dir in $PATH 18479do 18480 IFS=$as_save_IFS 18481 test -z "$as_dir" && as_dir=. 18482 for ac_exec_ext in '' $ac_executable_extensions; do 18483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18484 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 18485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18486 break 2 18487 fi 18488done 18489 done 18490IFS=$as_save_IFS 18491 18492fi 18493fi 18494LIPO=$ac_cv_prog_LIPO 18495if test -n "$LIPO"; then 18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 18497$as_echo "$LIPO" >&6; } 18498else 18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18500$as_echo "no" >&6; } 18501fi 18502 18503 18504fi 18505if test -z "$ac_cv_prog_LIPO"; then 18506 ac_ct_LIPO=$LIPO 18507 # Extract the first word of "lipo", so it can be a program name with args. 18508set dummy lipo; ac_word=$2 18509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18510$as_echo_n "checking for $ac_word... " >&6; } 18511if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 18512 $as_echo_n "(cached) " >&6 18513else 18514 if test -n "$ac_ct_LIPO"; then 18515 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 18516else 18517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18518for as_dir in $PATH 18519do 18520 IFS=$as_save_IFS 18521 test -z "$as_dir" && as_dir=. 18522 for ac_exec_ext in '' $ac_executable_extensions; do 18523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18524 ac_cv_prog_ac_ct_LIPO="lipo" 18525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18526 break 2 18527 fi 18528done 18529 done 18530IFS=$as_save_IFS 18531 18532fi 18533fi 18534ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 18535if test -n "$ac_ct_LIPO"; then 18536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 18537$as_echo "$ac_ct_LIPO" >&6; } 18538else 18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18540$as_echo "no" >&6; } 18541fi 18542 18543 if test "x$ac_ct_LIPO" = x; then 18544 LIPO=":" 18545 else 18546 case $cross_compiling:$ac_tool_warned in 18547yes:) 18548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18550ac_tool_warned=yes ;; 18551esac 18552 LIPO=$ac_ct_LIPO 18553 fi 18554else 18555 LIPO="$ac_cv_prog_LIPO" 18556fi 18557 18558 if test -n "$ac_tool_prefix"; then 18559 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 18560set dummy ${ac_tool_prefix}otool; ac_word=$2 18561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18562$as_echo_n "checking for $ac_word... " >&6; } 18563if ${ac_cv_prog_OTOOL+:} false; then : 18564 $as_echo_n "(cached) " >&6 18565else 18566 if test -n "$OTOOL"; then 18567 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 18568else 18569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18570for as_dir in $PATH 18571do 18572 IFS=$as_save_IFS 18573 test -z "$as_dir" && as_dir=. 18574 for ac_exec_ext in '' $ac_executable_extensions; do 18575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18576 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 18577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18578 break 2 18579 fi 18580done 18581 done 18582IFS=$as_save_IFS 18583 18584fi 18585fi 18586OTOOL=$ac_cv_prog_OTOOL 18587if test -n "$OTOOL"; then 18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18589$as_echo "$OTOOL" >&6; } 18590else 18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18592$as_echo "no" >&6; } 18593fi 18594 18595 18596fi 18597if test -z "$ac_cv_prog_OTOOL"; then 18598 ac_ct_OTOOL=$OTOOL 18599 # Extract the first word of "otool", so it can be a program name with args. 18600set dummy otool; ac_word=$2 18601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18602$as_echo_n "checking for $ac_word... " >&6; } 18603if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 18604 $as_echo_n "(cached) " >&6 18605else 18606 if test -n "$ac_ct_OTOOL"; then 18607 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 18608else 18609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18610for as_dir in $PATH 18611do 18612 IFS=$as_save_IFS 18613 test -z "$as_dir" && as_dir=. 18614 for ac_exec_ext in '' $ac_executable_extensions; do 18615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18616 ac_cv_prog_ac_ct_OTOOL="otool" 18617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18618 break 2 18619 fi 18620done 18621 done 18622IFS=$as_save_IFS 18623 18624fi 18625fi 18626ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 18627if test -n "$ac_ct_OTOOL"; then 18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 18629$as_echo "$ac_ct_OTOOL" >&6; } 18630else 18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18632$as_echo "no" >&6; } 18633fi 18634 18635 if test "x$ac_ct_OTOOL" = x; then 18636 OTOOL=":" 18637 else 18638 case $cross_compiling:$ac_tool_warned in 18639yes:) 18640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18642ac_tool_warned=yes ;; 18643esac 18644 OTOOL=$ac_ct_OTOOL 18645 fi 18646else 18647 OTOOL="$ac_cv_prog_OTOOL" 18648fi 18649 18650 if test -n "$ac_tool_prefix"; then 18651 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 18652set dummy ${ac_tool_prefix}otool64; ac_word=$2 18653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18654$as_echo_n "checking for $ac_word... " >&6; } 18655if ${ac_cv_prog_OTOOL64+:} false; then : 18656 $as_echo_n "(cached) " >&6 18657else 18658 if test -n "$OTOOL64"; then 18659 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 18660else 18661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18662for as_dir in $PATH 18663do 18664 IFS=$as_save_IFS 18665 test -z "$as_dir" && as_dir=. 18666 for ac_exec_ext in '' $ac_executable_extensions; do 18667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18668 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 18669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18670 break 2 18671 fi 18672done 18673 done 18674IFS=$as_save_IFS 18675 18676fi 18677fi 18678OTOOL64=$ac_cv_prog_OTOOL64 18679if test -n "$OTOOL64"; then 18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 18681$as_echo "$OTOOL64" >&6; } 18682else 18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18684$as_echo "no" >&6; } 18685fi 18686 18687 18688fi 18689if test -z "$ac_cv_prog_OTOOL64"; then 18690 ac_ct_OTOOL64=$OTOOL64 18691 # Extract the first word of "otool64", so it can be a program name with args. 18692set dummy otool64; ac_word=$2 18693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18694$as_echo_n "checking for $ac_word... " >&6; } 18695if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 18696 $as_echo_n "(cached) " >&6 18697else 18698 if test -n "$ac_ct_OTOOL64"; then 18699 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 18700else 18701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18702for as_dir in $PATH 18703do 18704 IFS=$as_save_IFS 18705 test -z "$as_dir" && as_dir=. 18706 for ac_exec_ext in '' $ac_executable_extensions; do 18707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18708 ac_cv_prog_ac_ct_OTOOL64="otool64" 18709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18710 break 2 18711 fi 18712done 18713 done 18714IFS=$as_save_IFS 18715 18716fi 18717fi 18718ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 18719if test -n "$ac_ct_OTOOL64"; then 18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 18721$as_echo "$ac_ct_OTOOL64" >&6; } 18722else 18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18724$as_echo "no" >&6; } 18725fi 18726 18727 if test "x$ac_ct_OTOOL64" = x; then 18728 OTOOL64=":" 18729 else 18730 case $cross_compiling:$ac_tool_warned in 18731yes:) 18732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18734ac_tool_warned=yes ;; 18735esac 18736 OTOOL64=$ac_ct_OTOOL64 18737 fi 18738else 18739 OTOOL64="$ac_cv_prog_OTOOL64" 18740fi 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764 18765 18766 18767 18768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 18769$as_echo_n "checking for -single_module linker flag... " >&6; } 18770if ${lt_cv_apple_cc_single_mod+:} false; then : 18771 $as_echo_n "(cached) " >&6 18772else 18773 lt_cv_apple_cc_single_mod=no 18774 if test -z "${LT_MULTI_MODULE}"; then 18775 # By default we will add the -single_module flag. You can override 18776 # by either setting the environment variable LT_MULTI_MODULE 18777 # non-empty at configure time, or by adding -multi_module to the 18778 # link flags. 18779 rm -rf libconftest.dylib* 18780 echo "int foo(void){return 1;}" > conftest.c 18781 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 18782-dynamiclib -Wl,-single_module conftest.c" >&5 18783 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 18784 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 18785 _lt_result=$? 18786 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 18787 lt_cv_apple_cc_single_mod=yes 18788 else 18789 cat conftest.err >&5 18790 fi 18791 rm -rf libconftest.dylib* 18792 rm -f conftest.* 18793 fi 18794fi 18795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 18796$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 18798$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 18799if ${lt_cv_ld_exported_symbols_list+:} false; then : 18800 $as_echo_n "(cached) " >&6 18801else 18802 lt_cv_ld_exported_symbols_list=no 18803 save_LDFLAGS=$LDFLAGS 18804 echo "_main" > conftest.sym 18805 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 18806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18807/* end confdefs.h. */ 18808 18809int 18810main () 18811{ 18812 18813 ; 18814 return 0; 18815} 18816_ACEOF 18817if ac_fn_c_try_link "$LINENO"; then : 18818 lt_cv_ld_exported_symbols_list=yes 18819else 18820 lt_cv_ld_exported_symbols_list=no 18821fi 18822rm -f core conftest.err conftest.$ac_objext \ 18823 conftest$ac_exeext conftest.$ac_ext 18824 LDFLAGS="$save_LDFLAGS" 18825 18826fi 18827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 18828$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 18830$as_echo_n "checking for -force_load linker flag... " >&6; } 18831if ${lt_cv_ld_force_load+:} false; then : 18832 $as_echo_n "(cached) " >&6 18833else 18834 lt_cv_ld_force_load=no 18835 cat > conftest.c << _LT_EOF 18836int forced_loaded() { return 2;} 18837_LT_EOF 18838 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 18839 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 18840 echo "$AR cru libconftest.a conftest.o" >&5 18841 $AR cru libconftest.a conftest.o 2>&5 18842 echo "$RANLIB libconftest.a" >&5 18843 $RANLIB libconftest.a 2>&5 18844 cat > conftest.c << _LT_EOF 18845int main() { return 0;} 18846_LT_EOF 18847 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 18848 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 18849 _lt_result=$? 18850 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 18851 lt_cv_ld_force_load=yes 18852 else 18853 cat conftest.err >&5 18854 fi 18855 rm -f conftest.err libconftest.a conftest conftest.c 18856 rm -rf conftest.dSYM 18857 18858fi 18859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 18860$as_echo "$lt_cv_ld_force_load" >&6; } 18861 case $host_os in 18862 rhapsody* | darwin1.[012]) 18863 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 18864 darwin1.*) 18865 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 18866 darwin*) # darwin 5.x on 18867 # if running on 10.5 or later, the deployment target defaults 18868 # to the OS version, if on x86, and 10.4, the deployment 18869 # target defaults to 10.4. Don't you love it? 18870 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 18871 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 18872 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 18873 10.[012]*) 18874 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 18875 10.*) 18876 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 18877 esac 18878 ;; 18879 esac 18880 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 18881 _lt_dar_single_mod='$single_module' 18882 fi 18883 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 18884 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 18885 else 18886 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 18887 fi 18888 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 18889 _lt_dsymutil='~$DSYMUTIL $lib || :' 18890 else 18891 _lt_dsymutil= 18892 fi 18893 ;; 18894 esac 18895 18896for ac_header in dlfcn.h 18897do : 18898 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 18899" 18900if test "x$ac_cv_header_dlfcn_h" = xyes; then : 18901 cat >>confdefs.h <<_ACEOF 18902#define HAVE_DLFCN_H 1 18903_ACEOF 18904 18905fi 18906 18907done 18908 18909 18910 18911 18912 18913# Set options 18914 18915 18916 18917 enable_dlopen=no 18918 18919 18920 enable_win32_dll=no 18921 18922 18923 18924 # Check whether --enable-static was given. 18925if test "${enable_static+set}" = set; then : 18926 enableval=$enable_static; p=${PACKAGE-default} 18927 case $enableval in 18928 yes) enable_static=yes ;; 18929 no) enable_static=no ;; 18930 *) 18931 enable_static=no 18932 # Look at the argument we got. We use all the common list separators. 18933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 18934 for pkg in $enableval; do 18935 IFS="$lt_save_ifs" 18936 if test "X$pkg" = "X$p"; then 18937 enable_static=yes 18938 fi 18939 done 18940 IFS="$lt_save_ifs" 18941 ;; 18942 esac 18943else 18944 enable_static=yes 18945fi 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956# Check whether --with-pic was given. 18957if test "${with_pic+set}" = set; then : 18958 withval=$with_pic; pic_mode="$withval" 18959else 18960 pic_mode=default 18961fi 18962 18963 18964test -z "$pic_mode" && pic_mode=default 18965 18966 18967 18968 18969 18970 18971 18972 # Check whether --enable-fast-install was given. 18973if test "${enable_fast_install+set}" = set; then : 18974 enableval=$enable_fast_install; p=${PACKAGE-default} 18975 case $enableval in 18976 yes) enable_fast_install=yes ;; 18977 no) enable_fast_install=no ;; 18978 *) 18979 enable_fast_install=no 18980 # Look at the argument we got. We use all the common list separators. 18981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 18982 for pkg in $enableval; do 18983 IFS="$lt_save_ifs" 18984 if test "X$pkg" = "X$p"; then 18985 enable_fast_install=yes 18986 fi 18987 done 18988 IFS="$lt_save_ifs" 18989 ;; 18990 esac 18991else 18992 enable_fast_install=yes 18993fi 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005# This can be used to rebuild libtool when needed 19006LIBTOOL_DEPS="$ltmain" 19007 19008# Always use our own libtool. 19009LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 19031 19032 19033 19034 19035 19036test -z "$LN_S" && LN_S="ln -s" 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051if test -n "${ZSH_VERSION+set}" ; then 19052 setopt NO_GLOB_SUBST 19053fi 19054 19055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 19056$as_echo_n "checking for objdir... " >&6; } 19057if ${lt_cv_objdir+:} false; then : 19058 $as_echo_n "(cached) " >&6 19059else 19060 rm -f .libs 2>/dev/null 19061mkdir .libs 2>/dev/null 19062if test -d .libs; then 19063 lt_cv_objdir=.libs 19064else 19065 # MS-DOS does not allow filenames that begin with a dot. 19066 lt_cv_objdir=_libs 19067fi 19068rmdir .libs 2>/dev/null 19069fi 19070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 19071$as_echo "$lt_cv_objdir" >&6; } 19072objdir=$lt_cv_objdir 19073 19074 19075 19076 19077 19078cat >>confdefs.h <<_ACEOF 19079#define LT_OBJDIR "$lt_cv_objdir/" 19080_ACEOF 19081 19082 19083 19084 19085case $host_os in 19086aix3*) 19087 # AIX sometimes has problems with the GCC collect2 program. For some 19088 # reason, if we set the COLLECT_NAMES environment variable, the problems 19089 # vanish in a puff of smoke. 19090 if test "X${COLLECT_NAMES+set}" != Xset; then 19091 COLLECT_NAMES= 19092 export COLLECT_NAMES 19093 fi 19094 ;; 19095esac 19096 19097# Global variables: 19098ofile=libtool 19099can_build_shared=yes 19100 19101# All known linkers require a `.a' archive for static linking (except MSVC, 19102# which needs '.lib'). 19103libext=a 19104 19105with_gnu_ld="$lt_cv_prog_gnu_ld" 19106 19107old_CC="$CC" 19108old_CFLAGS="$CFLAGS" 19109 19110# Set sane defaults for various variables 19111test -z "$CC" && CC=cc 19112test -z "$LTCC" && LTCC=$CC 19113test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 19114test -z "$LD" && LD=ld 19115test -z "$ac_objext" && ac_objext=o 19116 19117for cc_temp in $compiler""; do 19118 case $cc_temp in 19119 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19120 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19121 \-*) ;; 19122 *) break;; 19123 esac 19124done 19125cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19126 19127 19128# Only perform the check for file, if the check method requires it 19129test -z "$MAGIC_CMD" && MAGIC_CMD=file 19130case $deplibs_check_method in 19131file_magic*) 19132 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 19133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 19134$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 19135if ${lt_cv_path_MAGIC_CMD+:} false; then : 19136 $as_echo_n "(cached) " >&6 19137else 19138 case $MAGIC_CMD in 19139[\\/*] | ?:[\\/]*) 19140 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 19141 ;; 19142*) 19143 lt_save_MAGIC_CMD="$MAGIC_CMD" 19144 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 19145 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 19146 for ac_dir in $ac_dummy; do 19147 IFS="$lt_save_ifs" 19148 test -z "$ac_dir" && ac_dir=. 19149 if test -f $ac_dir/${ac_tool_prefix}file; then 19150 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 19151 if test -n "$file_magic_test_file"; then 19152 case $deplibs_check_method in 19153 "file_magic "*) 19154 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 19155 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 19156 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 19157 $EGREP "$file_magic_regex" > /dev/null; then 19158 : 19159 else 19160 cat <<_LT_EOF 1>&2 19161 19162*** Warning: the command libtool uses to detect shared libraries, 19163*** $file_magic_cmd, produces output that libtool cannot recognize. 19164*** The result is that libtool may fail to recognize shared libraries 19165*** as such. This will affect the creation of libtool libraries that 19166*** depend on shared libraries, but programs linked with such libtool 19167*** libraries will work regardless of this problem. Nevertheless, you 19168*** may want to report the problem to your system manager and/or to 19169*** bug-libtool@gnu.org 19170 19171_LT_EOF 19172 fi ;; 19173 esac 19174 fi 19175 break 19176 fi 19177 done 19178 IFS="$lt_save_ifs" 19179 MAGIC_CMD="$lt_save_MAGIC_CMD" 19180 ;; 19181esac 19182fi 19183 19184MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 19185if test -n "$MAGIC_CMD"; then 19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 19187$as_echo "$MAGIC_CMD" >&6; } 19188else 19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19190$as_echo "no" >&6; } 19191fi 19192 19193 19194 19195 19196 19197if test -z "$lt_cv_path_MAGIC_CMD"; then 19198 if test -n "$ac_tool_prefix"; then 19199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 19200$as_echo_n "checking for file... " >&6; } 19201if ${lt_cv_path_MAGIC_CMD+:} false; then : 19202 $as_echo_n "(cached) " >&6 19203else 19204 case $MAGIC_CMD in 19205[\\/*] | ?:[\\/]*) 19206 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 19207 ;; 19208*) 19209 lt_save_MAGIC_CMD="$MAGIC_CMD" 19210 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 19211 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 19212 for ac_dir in $ac_dummy; do 19213 IFS="$lt_save_ifs" 19214 test -z "$ac_dir" && ac_dir=. 19215 if test -f $ac_dir/file; then 19216 lt_cv_path_MAGIC_CMD="$ac_dir/file" 19217 if test -n "$file_magic_test_file"; then 19218 case $deplibs_check_method in 19219 "file_magic "*) 19220 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 19221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 19222 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 19223 $EGREP "$file_magic_regex" > /dev/null; then 19224 : 19225 else 19226 cat <<_LT_EOF 1>&2 19227 19228*** Warning: the command libtool uses to detect shared libraries, 19229*** $file_magic_cmd, produces output that libtool cannot recognize. 19230*** The result is that libtool may fail to recognize shared libraries 19231*** as such. This will affect the creation of libtool libraries that 19232*** depend on shared libraries, but programs linked with such libtool 19233*** libraries will work regardless of this problem. Nevertheless, you 19234*** may want to report the problem to your system manager and/or to 19235*** bug-libtool@gnu.org 19236 19237_LT_EOF 19238 fi ;; 19239 esac 19240 fi 19241 break 19242 fi 19243 done 19244 IFS="$lt_save_ifs" 19245 MAGIC_CMD="$lt_save_MAGIC_CMD" 19246 ;; 19247esac 19248fi 19249 19250MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 19251if test -n "$MAGIC_CMD"; then 19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 19253$as_echo "$MAGIC_CMD" >&6; } 19254else 19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19256$as_echo "no" >&6; } 19257fi 19258 19259 19260 else 19261 MAGIC_CMD=: 19262 fi 19263fi 19264 19265 fi 19266 ;; 19267esac 19268 19269# Use C for the default configuration in the libtool script 19270 19271lt_save_CC="$CC" 19272ac_ext=c 19273ac_cpp='$CPP $CPPFLAGS' 19274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19276ac_compiler_gnu=$ac_cv_c_compiler_gnu 19277 19278 19279# Source file extension for C test sources. 19280ac_ext=c 19281 19282# Object file extension for compiled C test sources. 19283objext=o 19284objext=$objext 19285 19286# Code to be used in simple compile tests 19287lt_simple_compile_test_code="int some_variable = 0;" 19288 19289# Code to be used in simple link tests 19290lt_simple_link_test_code='int main(){return(0);}' 19291 19292 19293 19294 19295 19296 19297 19298# If no C compiler was specified, use CC. 19299LTCC=${LTCC-"$CC"} 19300 19301# If no C compiler flags were specified, use CFLAGS. 19302LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19303 19304# Allow CC to be a program name with arguments. 19305compiler=$CC 19306 19307# Save the default compiler, since it gets overwritten when the other 19308# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 19309compiler_DEFAULT=$CC 19310 19311# save warnings/boilerplate of simple test code 19312ac_outfile=conftest.$ac_objext 19313echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19314eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19315_lt_compiler_boilerplate=`cat conftest.err` 19316$RM conftest* 19317 19318ac_outfile=conftest.$ac_objext 19319echo "$lt_simple_link_test_code" >conftest.$ac_ext 19320eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19321_lt_linker_boilerplate=`cat conftest.err` 19322$RM -r conftest* 19323 19324 19325## CAVEAT EMPTOR: 19326## There is no encapsulation within the following macros, do not change 19327## the running order or otherwise move them around unless you know exactly 19328## what you are doing... 19329if test -n "$compiler"; then 19330 19331lt_prog_compiler_no_builtin_flag= 19332 19333if test "$GCC" = yes; then 19334 case $cc_basename in 19335 nvcc*) 19336 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 19337 *) 19338 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 19339 esac 19340 19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 19342$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 19343if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 19344 $as_echo_n "(cached) " >&6 19345else 19346 lt_cv_prog_compiler_rtti_exceptions=no 19347 ac_outfile=conftest.$ac_objext 19348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19349 lt_compiler_flag="-fno-rtti -fno-exceptions" 19350 # Insert the option either (1) after the last *FLAGS variable, or 19351 # (2) before a word containing "conftest.", or (3) at the end. 19352 # Note that $ac_compile itself does not contain backslashes and begins 19353 # with a dollar sign (not a hyphen), so the echo should work correctly. 19354 # The option is referenced via a variable to avoid confusing sed. 19355 lt_compile=`echo "$ac_compile" | $SED \ 19356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19358 -e 's:$: $lt_compiler_flag:'` 19359 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19360 (eval "$lt_compile" 2>conftest.err) 19361 ac_status=$? 19362 cat conftest.err >&5 19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19364 if (exit $ac_status) && test -s "$ac_outfile"; then 19365 # The compiler can only warn and ignore the option if not recognized 19366 # So say no if there are warnings other than the usual output. 19367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19370 lt_cv_prog_compiler_rtti_exceptions=yes 19371 fi 19372 fi 19373 $RM conftest* 19374 19375fi 19376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 19377$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 19378 19379if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 19380 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 19381else 19382 : 19383fi 19384 19385fi 19386 19387 19388 19389 19390 19391 19392 lt_prog_compiler_wl= 19393lt_prog_compiler_pic= 19394lt_prog_compiler_static= 19395 19396 19397 if test "$GCC" = yes; then 19398 lt_prog_compiler_wl='-Wl,' 19399 lt_prog_compiler_static='-static' 19400 19401 case $host_os in 19402 aix*) 19403 # All AIX code is PIC. 19404 if test "$host_cpu" = ia64; then 19405 # AIX 5 now supports IA64 processor 19406 lt_prog_compiler_static='-Bstatic' 19407 fi 19408 ;; 19409 19410 amigaos*) 19411 case $host_cpu in 19412 powerpc) 19413 # see comment about AmigaOS4 .so support 19414 lt_prog_compiler_pic='-fPIC' 19415 ;; 19416 m68k) 19417 # FIXME: we need at least 68020 code to build shared libraries, but 19418 # adding the `-m68020' flag to GCC prevents building anything better, 19419 # like `-m68040'. 19420 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 19421 ;; 19422 esac 19423 ;; 19424 19425 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19426 # PIC is the default for these OSes. 19427 ;; 19428 19429 mingw* | cygwin* | pw32* | os2* | cegcc*) 19430 # This hack is so that the source file can tell whether it is being 19431 # built for inclusion in a dll (and should export symbols for example). 19432 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19433 # (--disable-auto-import) libraries 19434 lt_prog_compiler_pic='-DDLL_EXPORT' 19435 ;; 19436 19437 darwin* | rhapsody*) 19438 # PIC is the default on this platform 19439 # Common symbols not allowed in MH_DYLIB files 19440 lt_prog_compiler_pic='-fno-common' 19441 ;; 19442 19443 haiku*) 19444 # PIC is the default for Haiku. 19445 # The "-static" flag exists, but is broken. 19446 lt_prog_compiler_static= 19447 ;; 19448 19449 hpux*) 19450 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 19451 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 19452 # sets the default TLS model and affects inlining. 19453 case $host_cpu in 19454 hppa*64*) 19455 # +Z the default 19456 ;; 19457 *) 19458 lt_prog_compiler_pic='-fPIC' 19459 ;; 19460 esac 19461 ;; 19462 19463 interix[3-9]*) 19464 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19465 # Instead, we relocate shared libraries at runtime. 19466 ;; 19467 19468 msdosdjgpp*) 19469 # Just because we use GCC doesn't mean we suddenly get shared libraries 19470 # on systems that don't support them. 19471 lt_prog_compiler_can_build_shared=no 19472 enable_shared=no 19473 ;; 19474 19475 *nto* | *qnx*) 19476 # QNX uses GNU C++, but need to define -shared option too, otherwise 19477 # it will coredump. 19478 lt_prog_compiler_pic='-fPIC -shared' 19479 ;; 19480 19481 sysv4*MP*) 19482 if test -d /usr/nec; then 19483 lt_prog_compiler_pic=-Kconform_pic 19484 fi 19485 ;; 19486 19487 *) 19488 lt_prog_compiler_pic='-fPIC' 19489 ;; 19490 esac 19491 19492 case $cc_basename in 19493 nvcc*) # Cuda Compiler Driver 2.2 19494 lt_prog_compiler_wl='-Xlinker ' 19495 lt_prog_compiler_pic='-Xcompiler -fPIC' 19496 ;; 19497 esac 19498 else 19499 # PORTME Check for flag to pass linker flags through the system compiler. 19500 case $host_os in 19501 aix*) 19502 lt_prog_compiler_wl='-Wl,' 19503 if test "$host_cpu" = ia64; then 19504 # AIX 5 now supports IA64 processor 19505 lt_prog_compiler_static='-Bstatic' 19506 else 19507 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 19508 fi 19509 ;; 19510 19511 mingw* | cygwin* | pw32* | os2* | cegcc*) 19512 # This hack is so that the source file can tell whether it is being 19513 # built for inclusion in a dll (and should export symbols for example). 19514 lt_prog_compiler_pic='-DDLL_EXPORT' 19515 ;; 19516 19517 hpux9* | hpux10* | hpux11*) 19518 lt_prog_compiler_wl='-Wl,' 19519 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19520 # not for PA HP-UX. 19521 case $host_cpu in 19522 hppa*64*|ia64*) 19523 # +Z the default 19524 ;; 19525 *) 19526 lt_prog_compiler_pic='+Z' 19527 ;; 19528 esac 19529 # Is there a better lt_prog_compiler_static that works with the bundled CC? 19530 lt_prog_compiler_static='${wl}-a ${wl}archive' 19531 ;; 19532 19533 irix5* | irix6* | nonstopux*) 19534 lt_prog_compiler_wl='-Wl,' 19535 # PIC (with -KPIC) is the default. 19536 lt_prog_compiler_static='-non_shared' 19537 ;; 19538 19539 linux* | k*bsd*-gnu | kopensolaris*-gnu) 19540 case $cc_basename in 19541 # old Intel for x86_64 which still supported -KPIC. 19542 ecc*) 19543 lt_prog_compiler_wl='-Wl,' 19544 lt_prog_compiler_pic='-KPIC' 19545 lt_prog_compiler_static='-static' 19546 ;; 19547 # icc used to be incompatible with GCC. 19548 # ICC 10 doesn't accept -KPIC any more. 19549 icc* | ifort*) 19550 lt_prog_compiler_wl='-Wl,' 19551 lt_prog_compiler_pic='-fPIC' 19552 lt_prog_compiler_static='-static' 19553 ;; 19554 # Lahey Fortran 8.1. 19555 lf95*) 19556 lt_prog_compiler_wl='-Wl,' 19557 lt_prog_compiler_pic='--shared' 19558 lt_prog_compiler_static='--static' 19559 ;; 19560 nagfor*) 19561 # NAG Fortran compiler 19562 lt_prog_compiler_wl='-Wl,-Wl,,' 19563 lt_prog_compiler_pic='-PIC' 19564 lt_prog_compiler_static='-Bstatic' 19565 ;; 19566 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 19567 # Portland Group compilers (*not* the Pentium gcc compiler, 19568 # which looks to be a dead project) 19569 lt_prog_compiler_wl='-Wl,' 19570 lt_prog_compiler_pic='-fpic' 19571 lt_prog_compiler_static='-Bstatic' 19572 ;; 19573 ccc*) 19574 lt_prog_compiler_wl='-Wl,' 19575 # All Alpha code is PIC. 19576 lt_prog_compiler_static='-non_shared' 19577 ;; 19578 xl* | bgxl* | bgf* | mpixl*) 19579 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 19580 lt_prog_compiler_wl='-Wl,' 19581 lt_prog_compiler_pic='-qpic' 19582 lt_prog_compiler_static='-qstaticlink' 19583 ;; 19584 *) 19585 case `$CC -V 2>&1 | sed 5q` in 19586 *Sun\ F* | *Sun*Fortran*) 19587 # Sun Fortran 8.3 passes all unrecognized flags to the linker 19588 lt_prog_compiler_pic='-KPIC' 19589 lt_prog_compiler_static='-Bstatic' 19590 lt_prog_compiler_wl='' 19591 ;; 19592 *Sun\ C*) 19593 # Sun C 5.9 19594 lt_prog_compiler_pic='-KPIC' 19595 lt_prog_compiler_static='-Bstatic' 19596 lt_prog_compiler_wl='-Wl,' 19597 ;; 19598 esac 19599 ;; 19600 esac 19601 ;; 19602 19603 newsos6) 19604 lt_prog_compiler_pic='-KPIC' 19605 lt_prog_compiler_static='-Bstatic' 19606 ;; 19607 19608 *nto* | *qnx*) 19609 # QNX uses GNU C++, but need to define -shared option too, otherwise 19610 # it will coredump. 19611 lt_prog_compiler_pic='-fPIC -shared' 19612 ;; 19613 19614 osf3* | osf4* | osf5*) 19615 lt_prog_compiler_wl='-Wl,' 19616 # All OSF/1 code is PIC. 19617 lt_prog_compiler_static='-non_shared' 19618 ;; 19619 19620 rdos*) 19621 lt_prog_compiler_static='-non_shared' 19622 ;; 19623 19624 solaris*) 19625 lt_prog_compiler_pic='-KPIC' 19626 lt_prog_compiler_static='-Bstatic' 19627 case $cc_basename in 19628 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 19629 lt_prog_compiler_wl='-Qoption ld ';; 19630 *) 19631 lt_prog_compiler_wl='-Wl,';; 19632 esac 19633 ;; 19634 19635 sunos4*) 19636 lt_prog_compiler_wl='-Qoption ld ' 19637 lt_prog_compiler_pic='-PIC' 19638 lt_prog_compiler_static='-Bstatic' 19639 ;; 19640 19641 sysv4 | sysv4.2uw2* | sysv4.3*) 19642 lt_prog_compiler_wl='-Wl,' 19643 lt_prog_compiler_pic='-KPIC' 19644 lt_prog_compiler_static='-Bstatic' 19645 ;; 19646 19647 sysv4*MP*) 19648 if test -d /usr/nec ;then 19649 lt_prog_compiler_pic='-Kconform_pic' 19650 lt_prog_compiler_static='-Bstatic' 19651 fi 19652 ;; 19653 19654 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19655 lt_prog_compiler_wl='-Wl,' 19656 lt_prog_compiler_pic='-KPIC' 19657 lt_prog_compiler_static='-Bstatic' 19658 ;; 19659 19660 unicos*) 19661 lt_prog_compiler_wl='-Wl,' 19662 lt_prog_compiler_can_build_shared=no 19663 ;; 19664 19665 uts4*) 19666 lt_prog_compiler_pic='-pic' 19667 lt_prog_compiler_static='-Bstatic' 19668 ;; 19669 19670 *) 19671 lt_prog_compiler_can_build_shared=no 19672 ;; 19673 esac 19674 fi 19675 19676case $host_os in 19677 # For platforms which do not support PIC, -DPIC is meaningless: 19678 *djgpp*) 19679 lt_prog_compiler_pic= 19680 ;; 19681 *) 19682 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 19683 ;; 19684esac 19685 19686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 19687$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 19688if ${lt_cv_prog_compiler_pic+:} false; then : 19689 $as_echo_n "(cached) " >&6 19690else 19691 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 19692fi 19693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 19694$as_echo "$lt_cv_prog_compiler_pic" >&6; } 19695lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 19696 19697# 19698# Check to make sure the PIC flag actually works. 19699# 19700if test -n "$lt_prog_compiler_pic"; then 19701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 19702$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 19703if ${lt_cv_prog_compiler_pic_works+:} false; then : 19704 $as_echo_n "(cached) " >&6 19705else 19706 lt_cv_prog_compiler_pic_works=no 19707 ac_outfile=conftest.$ac_objext 19708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19709 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 19710 # Insert the option either (1) after the last *FLAGS variable, or 19711 # (2) before a word containing "conftest.", or (3) at the end. 19712 # Note that $ac_compile itself does not contain backslashes and begins 19713 # with a dollar sign (not a hyphen), so the echo should work correctly. 19714 # The option is referenced via a variable to avoid confusing sed. 19715 lt_compile=`echo "$ac_compile" | $SED \ 19716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19718 -e 's:$: $lt_compiler_flag:'` 19719 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19720 (eval "$lt_compile" 2>conftest.err) 19721 ac_status=$? 19722 cat conftest.err >&5 19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19724 if (exit $ac_status) && test -s "$ac_outfile"; then 19725 # The compiler can only warn and ignore the option if not recognized 19726 # So say no if there are warnings other than the usual output. 19727 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19729 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19730 lt_cv_prog_compiler_pic_works=yes 19731 fi 19732 fi 19733 $RM conftest* 19734 19735fi 19736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 19737$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 19738 19739if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 19740 case $lt_prog_compiler_pic in 19741 "" | " "*) ;; 19742 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 19743 esac 19744else 19745 lt_prog_compiler_pic= 19746 lt_prog_compiler_can_build_shared=no 19747fi 19748 19749fi 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761# 19762# Check to make sure the static flag actually works. 19763# 19764wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 19765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19766$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19767if ${lt_cv_prog_compiler_static_works+:} false; then : 19768 $as_echo_n "(cached) " >&6 19769else 19770 lt_cv_prog_compiler_static_works=no 19771 save_LDFLAGS="$LDFLAGS" 19772 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19773 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19774 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19775 # The linker can only warn and ignore the option if not recognized 19776 # So say no if there are warnings 19777 if test -s conftest.err; then 19778 # Append any errors to the config.log. 19779 cat conftest.err 1>&5 19780 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19782 if diff conftest.exp conftest.er2 >/dev/null; then 19783 lt_cv_prog_compiler_static_works=yes 19784 fi 19785 else 19786 lt_cv_prog_compiler_static_works=yes 19787 fi 19788 fi 19789 $RM -r conftest* 19790 LDFLAGS="$save_LDFLAGS" 19791 19792fi 19793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 19794$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 19795 19796if test x"$lt_cv_prog_compiler_static_works" = xyes; then 19797 : 19798else 19799 lt_prog_compiler_static= 19800fi 19801 19802 19803 19804 19805 19806 19807 19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19809$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19810if ${lt_cv_prog_compiler_c_o+:} false; then : 19811 $as_echo_n "(cached) " >&6 19812else 19813 lt_cv_prog_compiler_c_o=no 19814 $RM -r conftest 2>/dev/null 19815 mkdir conftest 19816 cd conftest 19817 mkdir out 19818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19819 19820 lt_compiler_flag="-o out/conftest2.$ac_objext" 19821 # Insert the option either (1) after the last *FLAGS variable, or 19822 # (2) before a word containing "conftest.", or (3) at the end. 19823 # Note that $ac_compile itself does not contain backslashes and begins 19824 # with a dollar sign (not a hyphen), so the echo should work correctly. 19825 lt_compile=`echo "$ac_compile" | $SED \ 19826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19828 -e 's:$: $lt_compiler_flag:'` 19829 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19830 (eval "$lt_compile" 2>out/conftest.err) 19831 ac_status=$? 19832 cat out/conftest.err >&5 19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19834 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19835 then 19836 # The compiler can only warn and ignore the option if not recognized 19837 # So say no if there are warnings 19838 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19839 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19840 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19841 lt_cv_prog_compiler_c_o=yes 19842 fi 19843 fi 19844 chmod u+w . 2>&5 19845 $RM conftest* 19846 # SGI C++ compiler will create directory out/ii_files/ for 19847 # template instantiation 19848 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19849 $RM out/* && rmdir out 19850 cd .. 19851 $RM -r conftest 19852 $RM conftest* 19853 19854fi 19855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 19856$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 19857 19858 19859 19860 19861 19862 19863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19864$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19865if ${lt_cv_prog_compiler_c_o+:} false; then : 19866 $as_echo_n "(cached) " >&6 19867else 19868 lt_cv_prog_compiler_c_o=no 19869 $RM -r conftest 2>/dev/null 19870 mkdir conftest 19871 cd conftest 19872 mkdir out 19873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19874 19875 lt_compiler_flag="-o out/conftest2.$ac_objext" 19876 # Insert the option either (1) after the last *FLAGS variable, or 19877 # (2) before a word containing "conftest.", or (3) at the end. 19878 # Note that $ac_compile itself does not contain backslashes and begins 19879 # with a dollar sign (not a hyphen), so the echo should work correctly. 19880 lt_compile=`echo "$ac_compile" | $SED \ 19881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19883 -e 's:$: $lt_compiler_flag:'` 19884 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19885 (eval "$lt_compile" 2>out/conftest.err) 19886 ac_status=$? 19887 cat out/conftest.err >&5 19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19889 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19890 then 19891 # The compiler can only warn and ignore the option if not recognized 19892 # So say no if there are warnings 19893 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19894 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19895 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19896 lt_cv_prog_compiler_c_o=yes 19897 fi 19898 fi 19899 chmod u+w . 2>&5 19900 $RM conftest* 19901 # SGI C++ compiler will create directory out/ii_files/ for 19902 # template instantiation 19903 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19904 $RM out/* && rmdir out 19905 cd .. 19906 $RM -r conftest 19907 $RM conftest* 19908 19909fi 19910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 19911$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 19912 19913 19914 19915 19916hard_links="nottested" 19917if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 19918 # do not overwrite the value of need_locks provided by the user 19919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 19920$as_echo_n "checking if we can lock with hard links... " >&6; } 19921 hard_links=yes 19922 $RM conftest* 19923 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19924 touch conftest.a 19925 ln conftest.a conftest.b 2>&5 || hard_links=no 19926 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 19928$as_echo "$hard_links" >&6; } 19929 if test "$hard_links" = no; then 19930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 19931$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 19932 need_locks=warn 19933 fi 19934else 19935 need_locks=no 19936fi 19937 19938 19939 19940 19941 19942 19943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19944$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19945 19946 runpath_var= 19947 allow_undefined_flag= 19948 always_export_symbols=no 19949 archive_cmds= 19950 archive_expsym_cmds= 19951 compiler_needs_object=no 19952 enable_shared_with_static_runtimes=no 19953 export_dynamic_flag_spec= 19954 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19955 hardcode_automatic=no 19956 hardcode_direct=no 19957 hardcode_direct_absolute=no 19958 hardcode_libdir_flag_spec= 19959 hardcode_libdir_flag_spec_ld= 19960 hardcode_libdir_separator= 19961 hardcode_minus_L=no 19962 hardcode_shlibpath_var=unsupported 19963 inherit_rpath=no 19964 link_all_deplibs=unknown 19965 module_cmds= 19966 module_expsym_cmds= 19967 old_archive_from_new_cmds= 19968 old_archive_from_expsyms_cmds= 19969 thread_safe_flag_spec= 19970 whole_archive_flag_spec= 19971 # include_expsyms should be a list of space-separated symbols to be *always* 19972 # included in the symbol list 19973 include_expsyms= 19974 # exclude_expsyms can be an extended regexp of symbols to exclude 19975 # it will be wrapped by ` (' and `)$', so one must not match beginning or 19976 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 19977 # as well as any symbol that contains `d'. 19978 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19979 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 19980 # platforms (ab)use it in PIC code, but their linkers get confused if 19981 # the symbol is explicitly referenced. Since portable code cannot 19982 # rely on this symbol name, it's probably fine to never include it in 19983 # preloaded symbol tables. 19984 # Exclude shared library initialization/finalization symbols. 19985 extract_expsyms_cmds= 19986 19987 case $host_os in 19988 cygwin* | mingw* | pw32* | cegcc*) 19989 # FIXME: the MSVC++ port hasn't been tested in a loooong time 19990 # When not using gcc, we currently assume that we are using 19991 # Microsoft Visual C++. 19992 if test "$GCC" != yes; then 19993 with_gnu_ld=no 19994 fi 19995 ;; 19996 interix*) 19997 # we just hope/assume this is gcc and not c89 (= MSVC++) 19998 with_gnu_ld=yes 19999 ;; 20000 openbsd*) 20001 with_gnu_ld=no 20002 ;; 20003 esac 20004 20005 ld_shlibs=yes 20006 20007 # On some targets, GNU ld is compatible enough with the native linker 20008 # that we're better off using the native interface for both. 20009 lt_use_gnu_ld_interface=no 20010 if test "$with_gnu_ld" = yes; then 20011 case $host_os in 20012 aix*) 20013 # The AIX port of GNU ld has always aspired to compatibility 20014 # with the native linker. However, as the warning in the GNU ld 20015 # block says, versions before 2.19.5* couldn't really create working 20016 # shared libraries, regardless of the interface used. 20017 case `$LD -v 2>&1` in 20018 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 20019 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 20020 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 20021 *) 20022 lt_use_gnu_ld_interface=yes 20023 ;; 20024 esac 20025 ;; 20026 *) 20027 lt_use_gnu_ld_interface=yes 20028 ;; 20029 esac 20030 fi 20031 20032 if test "$lt_use_gnu_ld_interface" = yes; then 20033 # If archive_cmds runs LD, not CC, wlarc should be empty 20034 wlarc='${wl}' 20035 20036 # Set some defaults for GNU ld with shared library support. These 20037 # are reset later if shared libraries are not supported. Putting them 20038 # here allows them to be overridden if necessary. 20039 runpath_var=LD_RUN_PATH 20040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 20041 export_dynamic_flag_spec='${wl}--export-dynamic' 20042 # ancient GNU ld didn't support --whole-archive et. al. 20043 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 20044 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 20045 else 20046 whole_archive_flag_spec= 20047 fi 20048 supports_anon_versioning=no 20049 case `$LD -v 2>&1` in 20050 *GNU\ gold*) supports_anon_versioning=yes ;; 20051 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 20052 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 20053 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 20054 *\ 2.11.*) ;; # other 2.11 versions 20055 *) supports_anon_versioning=yes ;; 20056 esac 20057 20058 # See if GNU ld supports shared libraries. 20059 case $host_os in 20060 aix[3-9]*) 20061 # On AIX/PPC, the GNU linker is very broken 20062 if test "$host_cpu" != ia64; then 20063 ld_shlibs=no 20064 cat <<_LT_EOF 1>&2 20065 20066*** Warning: the GNU linker, at least up to release 2.19, is reported 20067*** to be unable to reliably create shared libraries on AIX. 20068*** Therefore, libtool is disabling shared libraries support. If you 20069*** really care for shared libraries, you may want to install binutils 20070*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 20071*** You will then need to restart the configuration process. 20072 20073_LT_EOF 20074 fi 20075 ;; 20076 20077 amigaos*) 20078 case $host_cpu in 20079 powerpc) 20080 # see comment about AmigaOS4 .so support 20081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20082 archive_expsym_cmds='' 20083 ;; 20084 m68k) 20085 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)' 20086 hardcode_libdir_flag_spec='-L$libdir' 20087 hardcode_minus_L=yes 20088 ;; 20089 esac 20090 ;; 20091 20092 beos*) 20093 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20094 allow_undefined_flag=unsupported 20095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 20096 # support --undefined. This deserves some investigation. FIXME 20097 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20098 else 20099 ld_shlibs=no 20100 fi 20101 ;; 20102 20103 cygwin* | mingw* | pw32* | cegcc*) 20104 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 20105 # as there is no search path for DLLs. 20106 hardcode_libdir_flag_spec='-L$libdir' 20107 export_dynamic_flag_spec='${wl}--export-all-symbols' 20108 allow_undefined_flag=unsupported 20109 always_export_symbols=no 20110 enable_shared_with_static_runtimes=yes 20111 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' 20112 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 20113 20114 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 20115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 20116 # If the export-symbols file already is a .def file (1st line 20117 # is EXPORTS), use it as is; otherwise, prepend... 20118 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 20119 cp $export_symbols $output_objdir/$soname.def; 20120 else 20121 echo EXPORTS > $output_objdir/$soname.def; 20122 cat $export_symbols >> $output_objdir/$soname.def; 20123 fi~ 20124 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 20125 else 20126 ld_shlibs=no 20127 fi 20128 ;; 20129 20130 haiku*) 20131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20132 link_all_deplibs=yes 20133 ;; 20134 20135 interix[3-9]*) 20136 hardcode_direct=no 20137 hardcode_shlibpath_var=no 20138 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 20139 export_dynamic_flag_spec='${wl}-E' 20140 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 20141 # Instead, shared libraries are loaded at an image base (0x10000000 by 20142 # default) and relocated if they conflict, which is a slow very memory 20143 # consuming and fragmenting process. To avoid this, we pick a random, 20144 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 20145 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 20146 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 20147 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' 20148 ;; 20149 20150 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 20151 tmp_diet=no 20152 if test "$host_os" = linux-dietlibc; then 20153 case $cc_basename in 20154 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 20155 esac 20156 fi 20157 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 20158 && test "$tmp_diet" = no 20159 then 20160 tmp_addflag=' $pic_flag' 20161 tmp_sharedflag='-shared' 20162 case $cc_basename,$host_cpu in 20163 pgcc*) # Portland Group C compiler 20164 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' 20165 tmp_addflag=' $pic_flag' 20166 ;; 20167 pgf77* | pgf90* | pgf95* | pgfortran*) 20168 # Portland Group f77 and f90 compilers 20169 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' 20170 tmp_addflag=' $pic_flag -Mnomain' ;; 20171 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 20172 tmp_addflag=' -i_dynamic' ;; 20173 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 20174 tmp_addflag=' -i_dynamic -nofor_main' ;; 20175 ifc* | ifort*) # Intel Fortran compiler 20176 tmp_addflag=' -nofor_main' ;; 20177 lf95*) # Lahey Fortran 8.1 20178 whole_archive_flag_spec= 20179 tmp_sharedflag='--shared' ;; 20180 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 20181 tmp_sharedflag='-qmkshrobj' 20182 tmp_addflag= ;; 20183 nvcc*) # Cuda Compiler Driver 2.2 20184 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' 20185 compiler_needs_object=yes 20186 ;; 20187 esac 20188 case `$CC -V 2>&1 | sed 5q` in 20189 *Sun\ C*) # Sun C 5.9 20190 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' 20191 compiler_needs_object=yes 20192 tmp_sharedflag='-G' ;; 20193 *Sun\ F*) # Sun Fortran 8.3 20194 tmp_sharedflag='-G' ;; 20195 esac 20196 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20197 20198 if test "x$supports_anon_versioning" = xyes; then 20199 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 20200 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 20201 echo "local: *; };" >> $output_objdir/$libname.ver~ 20202 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 20203 fi 20204 20205 case $cc_basename in 20206 xlf* | bgf* | bgxlf* | mpixlf*) 20207 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 20208 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 20209 hardcode_libdir_flag_spec= 20210 hardcode_libdir_flag_spec_ld='-rpath $libdir' 20211 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 20212 if test "x$supports_anon_versioning" = xyes; then 20213 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 20214 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 20215 echo "local: *; };" >> $output_objdir/$libname.ver~ 20216 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 20217 fi 20218 ;; 20219 esac 20220 else 20221 ld_shlibs=no 20222 fi 20223 ;; 20224 20225 netbsd*) 20226 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20227 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 20228 wlarc= 20229 else 20230 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20231 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 20232 fi 20233 ;; 20234 20235 solaris*) 20236 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 20237 ld_shlibs=no 20238 cat <<_LT_EOF 1>&2 20239 20240*** Warning: The releases 2.8.* of the GNU linker cannot reliably 20241*** create shared libraries on Solaris systems. Therefore, libtool 20242*** is disabling shared libraries support. We urge you to upgrade GNU 20243*** binutils to release 2.9.1 or newer. Another option is to modify 20244*** your PATH or compiler configuration so that the native linker is 20245*** used, and then restart. 20246 20247_LT_EOF 20248 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20249 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20250 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 20251 else 20252 ld_shlibs=no 20253 fi 20254 ;; 20255 20256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 20257 case `$LD -v 2>&1` in 20258 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 20259 ld_shlibs=no 20260 cat <<_LT_EOF 1>&2 20261 20262*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 20263*** reliably create shared libraries on SCO systems. Therefore, libtool 20264*** is disabling shared libraries support. We urge you to upgrade GNU 20265*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 20266*** your PATH or compiler configuration so that the native linker is 20267*** used, and then restart. 20268 20269_LT_EOF 20270 ;; 20271 *) 20272 # For security reasons, it is highly recommended that you always 20273 # use absolute paths for naming shared libraries, and exclude the 20274 # DT_RUNPATH tag from executables and libraries. But doing so 20275 # requires that you compile everything twice, which is a pain. 20276 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 20278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20279 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 20280 else 20281 ld_shlibs=no 20282 fi 20283 ;; 20284 esac 20285 ;; 20286 20287 sunos4*) 20288 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20289 wlarc= 20290 hardcode_direct=yes 20291 hardcode_shlibpath_var=no 20292 ;; 20293 20294 *) 20295 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20296 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20297 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 20298 else 20299 ld_shlibs=no 20300 fi 20301 ;; 20302 esac 20303 20304 if test "$ld_shlibs" = no; then 20305 runpath_var= 20306 hardcode_libdir_flag_spec= 20307 export_dynamic_flag_spec= 20308 whole_archive_flag_spec= 20309 fi 20310 else 20311 # PORTME fill in a description of your system's linker (not GNU ld) 20312 case $host_os in 20313 aix3*) 20314 allow_undefined_flag=unsupported 20315 always_export_symbols=yes 20316 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' 20317 # Note: this linker hardcodes the directories in LIBPATH if there 20318 # are no directories specified by -L. 20319 hardcode_minus_L=yes 20320 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 20321 # Neither direct hardcoding nor static linking is supported with a 20322 # broken collect2. 20323 hardcode_direct=unsupported 20324 fi 20325 ;; 20326 20327 aix[4-9]*) 20328 if test "$host_cpu" = ia64; then 20329 # On IA64, the linker does run time linking by default, so we don't 20330 # have to do anything special. 20331 aix_use_runtimelinking=no 20332 exp_sym_flag='-Bexport' 20333 no_entry_flag="" 20334 else 20335 # If we're using GNU nm, then we don't want the "-C" option. 20336 # -C means demangle to AIX nm, but means don't demangle with GNU nm 20337 # Also, AIX nm treats weak defined symbols like other global 20338 # defined symbols, whereas GNU nm marks them as "W". 20339 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 20340 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 20341 else 20342 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 20343 fi 20344 aix_use_runtimelinking=no 20345 20346 # Test if we are trying to use run time linking or normal 20347 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 20348 # need to do runtime linking. 20349 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 20350 for ld_flag in $LDFLAGS; do 20351 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 20352 aix_use_runtimelinking=yes 20353 break 20354 fi 20355 done 20356 ;; 20357 esac 20358 20359 exp_sym_flag='-bexport' 20360 no_entry_flag='-bnoentry' 20361 fi 20362 20363 # When large executables or shared objects are built, AIX ld can 20364 # have problems creating the table of contents. If linking a library 20365 # or program results in "error TOC overflow" add -mminimal-toc to 20366 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 20367 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 20368 20369 archive_cmds='' 20370 hardcode_direct=yes 20371 hardcode_direct_absolute=yes 20372 hardcode_libdir_separator=':' 20373 link_all_deplibs=yes 20374 file_list_spec='${wl}-f,' 20375 20376 if test "$GCC" = yes; then 20377 case $host_os in aix4.[012]|aix4.[012].*) 20378 # We only want to do this on AIX 4.2 and lower, the check 20379 # below for broken collect2 doesn't work under 4.3+ 20380 collect2name=`${CC} -print-prog-name=collect2` 20381 if test -f "$collect2name" && 20382 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 20383 then 20384 # We have reworked collect2 20385 : 20386 else 20387 # We have old collect2 20388 hardcode_direct=unsupported 20389 # It fails to find uninstalled libraries when the uninstalled 20390 # path is not listed in the libpath. Setting hardcode_minus_L 20391 # to unsupported forces relinking 20392 hardcode_minus_L=yes 20393 hardcode_libdir_flag_spec='-L$libdir' 20394 hardcode_libdir_separator= 20395 fi 20396 ;; 20397 esac 20398 shared_flag='-shared' 20399 if test "$aix_use_runtimelinking" = yes; then 20400 shared_flag="$shared_flag "'${wl}-G' 20401 fi 20402 else 20403 # not using gcc 20404 if test "$host_cpu" = ia64; then 20405 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20406 # chokes on -Wl,-G. The following line is correct: 20407 shared_flag='-G' 20408 else 20409 if test "$aix_use_runtimelinking" = yes; then 20410 shared_flag='${wl}-G' 20411 else 20412 shared_flag='${wl}-bM:SRE' 20413 fi 20414 fi 20415 fi 20416 20417 export_dynamic_flag_spec='${wl}-bexpall' 20418 # It seems that -bexpall does not export symbols beginning with 20419 # underscore (_), so it is better to generate a list of symbols to export. 20420 always_export_symbols=yes 20421 if test "$aix_use_runtimelinking" = yes; then 20422 # Warning - without using the other runtime loading flags (-brtl), 20423 # -berok will link without error, but may produce a broken library. 20424 allow_undefined_flag='-berok' 20425 # Determine the default libpath from the value encoded in an 20426 # empty executable. 20427 if test "${lt_cv_aix_libpath+set}" = set; then 20428 aix_libpath=$lt_cv_aix_libpath 20429else 20430 if ${lt_cv_aix_libpath_+:} false; then : 20431 $as_echo_n "(cached) " >&6 20432else 20433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20434/* end confdefs.h. */ 20435 20436int 20437main () 20438{ 20439 20440 ; 20441 return 0; 20442} 20443_ACEOF 20444if ac_fn_c_try_link "$LINENO"; then : 20445 20446 lt_aix_libpath_sed=' 20447 /Import File Strings/,/^$/ { 20448 /^0/ { 20449 s/^0 *\([^ ]*\) *$/\1/ 20450 p 20451 } 20452 }' 20453 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20454 # Check for a 64-bit object if we didn't find anything. 20455 if test -z "$lt_cv_aix_libpath_"; then 20456 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20457 fi 20458fi 20459rm -f core conftest.err conftest.$ac_objext \ 20460 conftest$ac_exeext conftest.$ac_ext 20461 if test -z "$lt_cv_aix_libpath_"; then 20462 lt_cv_aix_libpath_="/usr/lib:/lib" 20463 fi 20464 20465fi 20466 20467 aix_libpath=$lt_cv_aix_libpath_ 20468fi 20469 20470 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 20471 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 20472 else 20473 if test "$host_cpu" = ia64; then 20474 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 20475 allow_undefined_flag="-z nodefs" 20476 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" 20477 else 20478 # Determine the default libpath from the value encoded in an 20479 # empty executable. 20480 if test "${lt_cv_aix_libpath+set}" = set; then 20481 aix_libpath=$lt_cv_aix_libpath 20482else 20483 if ${lt_cv_aix_libpath_+:} false; then : 20484 $as_echo_n "(cached) " >&6 20485else 20486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20487/* end confdefs.h. */ 20488 20489int 20490main () 20491{ 20492 20493 ; 20494 return 0; 20495} 20496_ACEOF 20497if ac_fn_c_try_link "$LINENO"; then : 20498 20499 lt_aix_libpath_sed=' 20500 /Import File Strings/,/^$/ { 20501 /^0/ { 20502 s/^0 *\([^ ]*\) *$/\1/ 20503 p 20504 } 20505 }' 20506 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20507 # Check for a 64-bit object if we didn't find anything. 20508 if test -z "$lt_cv_aix_libpath_"; then 20509 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20510 fi 20511fi 20512rm -f core conftest.err conftest.$ac_objext \ 20513 conftest$ac_exeext conftest.$ac_ext 20514 if test -z "$lt_cv_aix_libpath_"; then 20515 lt_cv_aix_libpath_="/usr/lib:/lib" 20516 fi 20517 20518fi 20519 20520 aix_libpath=$lt_cv_aix_libpath_ 20521fi 20522 20523 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 20524 # Warning - without using the other run time loading flags, 20525 # -berok will link without error, but may produce a broken library. 20526 no_undefined_flag=' ${wl}-bernotok' 20527 allow_undefined_flag=' ${wl}-berok' 20528 if test "$with_gnu_ld" = yes; then 20529 # We only use this code for GNU lds that support --whole-archive. 20530 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 20531 else 20532 # Exported symbols can be pulled into shared objects from archives 20533 whole_archive_flag_spec='$convenience' 20534 fi 20535 archive_cmds_need_lc=yes 20536 # This is similar to how AIX traditionally builds its shared libraries. 20537 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 20538 fi 20539 fi 20540 ;; 20541 20542 amigaos*) 20543 case $host_cpu in 20544 powerpc) 20545 # see comment about AmigaOS4 .so support 20546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20547 archive_expsym_cmds='' 20548 ;; 20549 m68k) 20550 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)' 20551 hardcode_libdir_flag_spec='-L$libdir' 20552 hardcode_minus_L=yes 20553 ;; 20554 esac 20555 ;; 20556 20557 bsdi[45]*) 20558 export_dynamic_flag_spec=-rdynamic 20559 ;; 20560 20561 cygwin* | mingw* | pw32* | cegcc*) 20562 # When not using gcc, we currently assume that we are using 20563 # Microsoft Visual C++. 20564 # hardcode_libdir_flag_spec is actually meaningless, as there is 20565 # no search path for DLLs. 20566 case $cc_basename in 20567 cl*) 20568 # Native MSVC 20569 hardcode_libdir_flag_spec=' ' 20570 allow_undefined_flag=unsupported 20571 always_export_symbols=yes 20572 file_list_spec='@' 20573 # Tell ltmain to make .lib files, not .a files. 20574 libext=lib 20575 # Tell ltmain to make .dll files, not .so files. 20576 shrext_cmds=".dll" 20577 # FIXME: Setting linknames here is a bad hack. 20578 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 20579 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 20580 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 20581 else 20582 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 20583 fi~ 20584 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 20585 linknames=' 20586 # The linker will not automatically build a static lib if we build a DLL. 20587 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 20588 enable_shared_with_static_runtimes=yes 20589 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 20590 # Don't use ranlib 20591 old_postinstall_cmds='chmod 644 $oldlib' 20592 postlink_cmds='lt_outputfile="@OUTPUT@"~ 20593 lt_tool_outputfile="@TOOL_OUTPUT@"~ 20594 case $lt_outputfile in 20595 *.exe|*.EXE) ;; 20596 *) 20597 lt_outputfile="$lt_outputfile.exe" 20598 lt_tool_outputfile="$lt_tool_outputfile.exe" 20599 ;; 20600 esac~ 20601 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 20602 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 20603 $RM "$lt_outputfile.manifest"; 20604 fi' 20605 ;; 20606 *) 20607 # Assume MSVC wrapper 20608 hardcode_libdir_flag_spec=' ' 20609 allow_undefined_flag=unsupported 20610 # Tell ltmain to make .lib files, not .a files. 20611 libext=lib 20612 # Tell ltmain to make .dll files, not .so files. 20613 shrext_cmds=".dll" 20614 # FIXME: Setting linknames here is a bad hack. 20615 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 20616 # The linker will automatically build a .lib file if we build a DLL. 20617 old_archive_from_new_cmds='true' 20618 # FIXME: Should let the user specify the lib program. 20619 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 20620 enable_shared_with_static_runtimes=yes 20621 ;; 20622 esac 20623 ;; 20624 20625 darwin* | rhapsody*) 20626 20627 20628 archive_cmds_need_lc=no 20629 hardcode_direct=no 20630 hardcode_automatic=yes 20631 hardcode_shlibpath_var=unsupported 20632 if test "$lt_cv_ld_force_load" = "yes"; then 20633 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\"`' 20634 else 20635 whole_archive_flag_spec='' 20636 fi 20637 link_all_deplibs=yes 20638 allow_undefined_flag="$_lt_dar_allow_undefined" 20639 case $cc_basename in 20640 ifort*) _lt_dar_can_shared=yes ;; 20641 *) _lt_dar_can_shared=$GCC ;; 20642 esac 20643 if test "$_lt_dar_can_shared" = "yes"; then 20644 output_verbose_link_cmd=func_echo_all 20645 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 20646 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 20647 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}" 20648 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}" 20649 20650 else 20651 ld_shlibs=no 20652 fi 20653 20654 ;; 20655 20656 dgux*) 20657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20658 hardcode_libdir_flag_spec='-L$libdir' 20659 hardcode_shlibpath_var=no 20660 ;; 20661 20662 freebsd1*) 20663 ld_shlibs=no 20664 ;; 20665 20666 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 20667 # support. Future versions do this automatically, but an explicit c++rt0.o 20668 # does not break anything, and helps significantly (at the cost of a little 20669 # extra space). 20670 freebsd2.2*) 20671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 20672 hardcode_libdir_flag_spec='-R$libdir' 20673 hardcode_direct=yes 20674 hardcode_shlibpath_var=no 20675 ;; 20676 20677 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 20678 freebsd2*) 20679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20680 hardcode_direct=yes 20681 hardcode_minus_L=yes 20682 hardcode_shlibpath_var=no 20683 ;; 20684 20685 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 20686 freebsd* | dragonfly*) 20687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20688 hardcode_libdir_flag_spec='-R$libdir' 20689 hardcode_direct=yes 20690 hardcode_shlibpath_var=no 20691 ;; 20692 20693 hpux9*) 20694 if test "$GCC" = yes; then 20695 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 20696 else 20697 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 20698 fi 20699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 20700 hardcode_libdir_separator=: 20701 hardcode_direct=yes 20702 20703 # hardcode_minus_L: Not really in the search PATH, 20704 # but as the default location of the library. 20705 hardcode_minus_L=yes 20706 export_dynamic_flag_spec='${wl}-E' 20707 ;; 20708 20709 hpux10*) 20710 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 20711 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20712 else 20713 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20714 fi 20715 if test "$with_gnu_ld" = no; then 20716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 20717 hardcode_libdir_flag_spec_ld='+b $libdir' 20718 hardcode_libdir_separator=: 20719 hardcode_direct=yes 20720 hardcode_direct_absolute=yes 20721 export_dynamic_flag_spec='${wl}-E' 20722 # hardcode_minus_L: Not really in the search PATH, 20723 # but as the default location of the library. 20724 hardcode_minus_L=yes 20725 fi 20726 ;; 20727 20728 hpux11*) 20729 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 20730 case $host_cpu in 20731 hppa*64*) 20732 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 20733 ;; 20734 ia64*) 20735 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20736 ;; 20737 *) 20738 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20739 ;; 20740 esac 20741 else 20742 case $host_cpu in 20743 hppa*64*) 20744 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 20745 ;; 20746 ia64*) 20747 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20748 ;; 20749 *) 20750 20751 # Older versions of the 11.00 compiler do not understand -b yet 20752 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 20753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 20754$as_echo_n "checking if $CC understands -b... " >&6; } 20755if ${lt_cv_prog_compiler__b+:} false; then : 20756 $as_echo_n "(cached) " >&6 20757else 20758 lt_cv_prog_compiler__b=no 20759 save_LDFLAGS="$LDFLAGS" 20760 LDFLAGS="$LDFLAGS -b" 20761 echo "$lt_simple_link_test_code" > conftest.$ac_ext 20762 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 20763 # The linker can only warn and ignore the option if not recognized 20764 # So say no if there are warnings 20765 if test -s conftest.err; then 20766 # Append any errors to the config.log. 20767 cat conftest.err 1>&5 20768 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 20769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20770 if diff conftest.exp conftest.er2 >/dev/null; then 20771 lt_cv_prog_compiler__b=yes 20772 fi 20773 else 20774 lt_cv_prog_compiler__b=yes 20775 fi 20776 fi 20777 $RM -r conftest* 20778 LDFLAGS="$save_LDFLAGS" 20779 20780fi 20781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 20782$as_echo "$lt_cv_prog_compiler__b" >&6; } 20783 20784if test x"$lt_cv_prog_compiler__b" = xyes; then 20785 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20786else 20787 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20788fi 20789 20790 ;; 20791 esac 20792 fi 20793 if test "$with_gnu_ld" = no; then 20794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 20795 hardcode_libdir_separator=: 20796 20797 case $host_cpu in 20798 hppa*64*|ia64*) 20799 hardcode_direct=no 20800 hardcode_shlibpath_var=no 20801 ;; 20802 *) 20803 hardcode_direct=yes 20804 hardcode_direct_absolute=yes 20805 export_dynamic_flag_spec='${wl}-E' 20806 20807 # hardcode_minus_L: Not really in the search PATH, 20808 # but as the default location of the library. 20809 hardcode_minus_L=yes 20810 ;; 20811 esac 20812 fi 20813 ;; 20814 20815 irix5* | irix6* | nonstopux*) 20816 if test "$GCC" = yes; then 20817 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' 20818 # Try to use the -exported_symbol ld option, if it does not 20819 # work, assume that -exports_file does not work either and 20820 # implicitly export all symbols. 20821 # This should be the same for all languages, so no per-tag cache variable. 20822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 20823$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 20824if ${lt_cv_irix_exported_symbol+:} false; then : 20825 $as_echo_n "(cached) " >&6 20826else 20827 save_LDFLAGS="$LDFLAGS" 20828 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 20829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20830/* end confdefs.h. */ 20831int foo (void) { return 0; } 20832_ACEOF 20833if ac_fn_c_try_link "$LINENO"; then : 20834 lt_cv_irix_exported_symbol=yes 20835else 20836 lt_cv_irix_exported_symbol=no 20837fi 20838rm -f core conftest.err conftest.$ac_objext \ 20839 conftest$ac_exeext conftest.$ac_ext 20840 LDFLAGS="$save_LDFLAGS" 20841fi 20842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 20843$as_echo "$lt_cv_irix_exported_symbol" >&6; } 20844 if test "$lt_cv_irix_exported_symbol" = yes; then 20845 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' 20846 fi 20847 else 20848 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' 20849 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' 20850 fi 20851 archive_cmds_need_lc='no' 20852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 20853 hardcode_libdir_separator=: 20854 inherit_rpath=yes 20855 link_all_deplibs=yes 20856 ;; 20857 20858 netbsd*) 20859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 20861 else 20862 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 20863 fi 20864 hardcode_libdir_flag_spec='-R$libdir' 20865 hardcode_direct=yes 20866 hardcode_shlibpath_var=no 20867 ;; 20868 20869 newsos6) 20870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20871 hardcode_direct=yes 20872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 20873 hardcode_libdir_separator=: 20874 hardcode_shlibpath_var=no 20875 ;; 20876 20877 *nto* | *qnx*) 20878 ;; 20879 20880 openbsd*) 20881 if test -f /usr/libexec/ld.so; then 20882 hardcode_direct=yes 20883 hardcode_shlibpath_var=no 20884 hardcode_direct_absolute=yes 20885 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 20886 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20887 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 20888 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 20889 export_dynamic_flag_spec='${wl}-E' 20890 else 20891 case $host_os in 20892 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 20893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20894 hardcode_libdir_flag_spec='-R$libdir' 20895 ;; 20896 *) 20897 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20898 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 20899 ;; 20900 esac 20901 fi 20902 else 20903 ld_shlibs=no 20904 fi 20905 ;; 20906 20907 os2*) 20908 hardcode_libdir_flag_spec='-L$libdir' 20909 hardcode_minus_L=yes 20910 allow_undefined_flag=unsupported 20911 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 20912 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 20913 ;; 20914 20915 osf3*) 20916 if test "$GCC" = yes; then 20917 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 20918 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' 20919 else 20920 allow_undefined_flag=' -expect_unresolved \*' 20921 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' 20922 fi 20923 archive_cmds_need_lc='no' 20924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 20925 hardcode_libdir_separator=: 20926 ;; 20927 20928 osf4* | osf5*) # as osf3* with the addition of -msym flag 20929 if test "$GCC" = yes; then 20930 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 20931 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' 20932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 20933 else 20934 allow_undefined_flag=' -expect_unresolved \*' 20935 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' 20936 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~ 20937 $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' 20938 20939 # Both c and cxx compiler support -rpath directly 20940 hardcode_libdir_flag_spec='-rpath $libdir' 20941 fi 20942 archive_cmds_need_lc='no' 20943 hardcode_libdir_separator=: 20944 ;; 20945 20946 solaris*) 20947 no_undefined_flag=' -z defs' 20948 if test "$GCC" = yes; then 20949 wlarc='${wl}' 20950 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 20951 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20952 $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' 20953 else 20954 case `$CC -V 2>&1` in 20955 *"Compilers 5.0"*) 20956 wlarc='' 20957 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 20958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20959 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 20960 ;; 20961 *) 20962 wlarc='${wl}' 20963 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 20964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20965 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 20966 ;; 20967 esac 20968 fi 20969 hardcode_libdir_flag_spec='-R$libdir' 20970 hardcode_shlibpath_var=no 20971 case $host_os in 20972 solaris2.[0-5] | solaris2.[0-5].*) ;; 20973 *) 20974 # The compiler driver will combine and reorder linker options, 20975 # but understands `-z linker_flag'. GCC discards it without `$wl', 20976 # but is careful enough not to reorder. 20977 # Supported since Solaris 2.6 (maybe 2.5.1?) 20978 if test "$GCC" = yes; then 20979 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 20980 else 20981 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 20982 fi 20983 ;; 20984 esac 20985 link_all_deplibs=yes 20986 ;; 20987 20988 sunos4*) 20989 if test "x$host_vendor" = xsequent; then 20990 # Use $CC to link under sequent, because it throws in some extra .o 20991 # files that make .init and .fini sections work. 20992 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 20993 else 20994 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 20995 fi 20996 hardcode_libdir_flag_spec='-L$libdir' 20997 hardcode_direct=yes 20998 hardcode_minus_L=yes 20999 hardcode_shlibpath_var=no 21000 ;; 21001 21002 sysv4) 21003 case $host_vendor in 21004 sni) 21005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21006 hardcode_direct=yes # is this really true??? 21007 ;; 21008 siemens) 21009 ## LD is ld it makes a PLAMLIB 21010 ## CC just makes a GrossModule. 21011 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 21012 reload_cmds='$CC -r -o $output$reload_objs' 21013 hardcode_direct=no 21014 ;; 21015 motorola) 21016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21017 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 21018 ;; 21019 esac 21020 runpath_var='LD_RUN_PATH' 21021 hardcode_shlibpath_var=no 21022 ;; 21023 21024 sysv4.3*) 21025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21026 hardcode_shlibpath_var=no 21027 export_dynamic_flag_spec='-Bexport' 21028 ;; 21029 21030 sysv4*MP*) 21031 if test -d /usr/nec; then 21032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21033 hardcode_shlibpath_var=no 21034 runpath_var=LD_RUN_PATH 21035 hardcode_runpath_var=yes 21036 ld_shlibs=yes 21037 fi 21038 ;; 21039 21040 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 21041 no_undefined_flag='${wl}-z,text' 21042 archive_cmds_need_lc=no 21043 hardcode_shlibpath_var=no 21044 runpath_var='LD_RUN_PATH' 21045 21046 if test "$GCC" = yes; then 21047 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21048 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21049 else 21050 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21051 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21052 fi 21053 ;; 21054 21055 sysv5* | sco3.2v5* | sco5v6*) 21056 # Note: We can NOT use -z defs as we might desire, because we do not 21057 # link with -lc, and that would cause any symbols used from libc to 21058 # always be unresolved, which means just about no library would 21059 # ever link correctly. If we're not using GNU ld we use -z text 21060 # though, which does catch some bad symbols but isn't as heavy-handed 21061 # as -z defs. 21062 no_undefined_flag='${wl}-z,text' 21063 allow_undefined_flag='${wl}-z,nodefs' 21064 archive_cmds_need_lc=no 21065 hardcode_shlibpath_var=no 21066 hardcode_libdir_flag_spec='${wl}-R,$libdir' 21067 hardcode_libdir_separator=':' 21068 link_all_deplibs=yes 21069 export_dynamic_flag_spec='${wl}-Bexport' 21070 runpath_var='LD_RUN_PATH' 21071 21072 if test "$GCC" = yes; then 21073 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21074 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21075 else 21076 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21077 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21078 fi 21079 ;; 21080 21081 uts4*) 21082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21083 hardcode_libdir_flag_spec='-L$libdir' 21084 hardcode_shlibpath_var=no 21085 ;; 21086 21087 *) 21088 ld_shlibs=no 21089 ;; 21090 esac 21091 21092 if test x$host_vendor = xsni; then 21093 case $host in 21094 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 21095 export_dynamic_flag_spec='${wl}-Blargedynsym' 21096 ;; 21097 esac 21098 fi 21099 fi 21100 21101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 21102$as_echo "$ld_shlibs" >&6; } 21103test "$ld_shlibs" = no && can_build_shared=no 21104 21105with_gnu_ld=$with_gnu_ld 21106 21107 21108 21109 21110 21111 21112 21113 21114 21115 21116 21117 21118 21119 21120 21121# 21122# Do we need to explicitly link libc? 21123# 21124case "x$archive_cmds_need_lc" in 21125x|xyes) 21126 # Assume -lc should be added 21127 archive_cmds_need_lc=yes 21128 21129 if test "$enable_shared" = yes && test "$GCC" = yes; then 21130 case $archive_cmds in 21131 *'~'*) 21132 # FIXME: we may have to deal with multi-command sequences. 21133 ;; 21134 '$CC '*) 21135 # Test whether the compiler implicitly links with -lc since on some 21136 # systems, -lgcc has to come before -lc. If gcc already passes -lc 21137 # to ld, don't add -lc before -lgcc. 21138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 21139$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 21140if ${lt_cv_archive_cmds_need_lc+:} false; then : 21141 $as_echo_n "(cached) " >&6 21142else 21143 $RM conftest* 21144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21145 21146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21147 (eval $ac_compile) 2>&5 21148 ac_status=$? 21149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21150 test $ac_status = 0; } 2>conftest.err; then 21151 soname=conftest 21152 lib=conftest 21153 libobjs=conftest.$ac_objext 21154 deplibs= 21155 wl=$lt_prog_compiler_wl 21156 pic_flag=$lt_prog_compiler_pic 21157 compiler_flags=-v 21158 linker_flags=-v 21159 verstring= 21160 output_objdir=. 21161 libname=conftest 21162 lt_save_allow_undefined_flag=$allow_undefined_flag 21163 allow_undefined_flag= 21164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 21165 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 21166 ac_status=$? 21167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21168 test $ac_status = 0; } 21169 then 21170 lt_cv_archive_cmds_need_lc=no 21171 else 21172 lt_cv_archive_cmds_need_lc=yes 21173 fi 21174 allow_undefined_flag=$lt_save_allow_undefined_flag 21175 else 21176 cat conftest.err 1>&5 21177 fi 21178 $RM conftest* 21179 21180fi 21181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 21182$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 21183 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 21184 ;; 21185 esac 21186 fi 21187 ;; 21188esac 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 21237 21238 21239 21240 21241 21242 21243 21244 21245 21246 21247 21248 21249 21250 21251 21252 21253 21254 21255 21256 21257 21258 21259 21260 21261 21262 21263 21264 21265 21266 21267 21268 21269 21270 21271 21272 21273 21274 21275 21276 21277 21278 21279 21280 21281 21282 21283 21284 21285 21286 21287 21288 21289 21290 21291 21292 21293 21294 21295 21296 21297 21298 21299 21300 21301 21302 21303 21304 21305 21306 21307 21308 21309 21310 21311 21312 21313 21314 21315 21316 21317 21318 21319 21320 21321 21322 21323 21324 21325 21326 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 21337 21338 21339 21340 21341 21342 21343 21344 21345 21346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 21347$as_echo_n "checking dynamic linker characteristics... " >&6; } 21348 21349if test "$GCC" = yes; then 21350 case $host_os in 21351 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 21352 *) lt_awk_arg="/^libraries:/" ;; 21353 esac 21354 case $host_os in 21355 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 21356 *) lt_sed_strip_eq="s,=/,/,g" ;; 21357 esac 21358 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 21359 case $lt_search_path_spec in 21360 *\;*) 21361 # if the path contains ";" then we assume it to be the separator 21362 # otherwise default to the standard path separator (i.e. ":") - it is 21363 # assumed that no part of a normal pathname contains ";" but that should 21364 # okay in the real world where ";" in dirpaths is itself problematic. 21365 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 21366 ;; 21367 *) 21368 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 21369 ;; 21370 esac 21371 # Ok, now we have the path, separated by spaces, we can step through it 21372 # and add multilib dir if necessary. 21373 lt_tmp_lt_search_path_spec= 21374 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 21375 for lt_sys_path in $lt_search_path_spec; do 21376 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 21377 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 21378 else 21379 test -d "$lt_sys_path" && \ 21380 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 21381 fi 21382 done 21383 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 21384BEGIN {RS=" "; FS="/|\n";} { 21385 lt_foo=""; 21386 lt_count=0; 21387 for (lt_i = NF; lt_i > 0; lt_i--) { 21388 if ($lt_i != "" && $lt_i != ".") { 21389 if ($lt_i == "..") { 21390 lt_count++; 21391 } else { 21392 if (lt_count == 0) { 21393 lt_foo="/" $lt_i lt_foo; 21394 } else { 21395 lt_count--; 21396 } 21397 } 21398 } 21399 } 21400 if (lt_foo != "") { lt_freq[lt_foo]++; } 21401 if (lt_freq[lt_foo] == 1) { print lt_foo; } 21402}'` 21403 # AWK program above erroneously prepends '/' to C:/dos/paths 21404 # for these hosts. 21405 case $host_os in 21406 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 21407 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 21408 esac 21409 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 21410else 21411 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21412fi 21413library_names_spec= 21414libname_spec='lib$name' 21415soname_spec= 21416shrext_cmds=".so" 21417postinstall_cmds= 21418postuninstall_cmds= 21419finish_cmds= 21420finish_eval= 21421shlibpath_var= 21422shlibpath_overrides_runpath=unknown 21423version_type=none 21424dynamic_linker="$host_os ld.so" 21425sys_lib_dlsearch_path_spec="/lib /usr/lib" 21426need_lib_prefix=unknown 21427hardcode_into_libs=no 21428 21429# when you set need_version to no, make sure it does not cause -set_version 21430# flags to be left without arguments 21431need_version=unknown 21432 21433case $host_os in 21434aix3*) 21435 version_type=linux 21436 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 21437 shlibpath_var=LIBPATH 21438 21439 # AIX 3 has no versioning support, so we append a major version to the name. 21440 soname_spec='${libname}${release}${shared_ext}$major' 21441 ;; 21442 21443aix[4-9]*) 21444 version_type=linux 21445 need_lib_prefix=no 21446 need_version=no 21447 hardcode_into_libs=yes 21448 if test "$host_cpu" = ia64; then 21449 # AIX 5 supports IA64 21450 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 21451 shlibpath_var=LD_LIBRARY_PATH 21452 else 21453 # With GCC up to 2.95.x, collect2 would create an import file 21454 # for dependence libraries. The import file would start with 21455 # the line `#! .'. This would cause the generated library to 21456 # depend on `.', always an invalid library. This was fixed in 21457 # development snapshots of GCC prior to 3.0. 21458 case $host_os in 21459 aix4 | aix4.[01] | aix4.[01].*) 21460 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21461 echo ' yes ' 21462 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 21463 : 21464 else 21465 can_build_shared=no 21466 fi 21467 ;; 21468 esac 21469 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 21470 # soname into executable. Probably we can add versioning support to 21471 # collect2, so additional links can be useful in future. 21472 if test "$aix_use_runtimelinking" = yes; then 21473 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21474 # instead of lib<name>.a to let people know that these are not 21475 # typical AIX shared libraries. 21476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21477 else 21478 # We preserve .a as extension for shared libraries through AIX4.2 21479 # and later when we are not doing run time linking. 21480 library_names_spec='${libname}${release}.a $libname.a' 21481 soname_spec='${libname}${release}${shared_ext}$major' 21482 fi 21483 shlibpath_var=LIBPATH 21484 fi 21485 ;; 21486 21487amigaos*) 21488 case $host_cpu in 21489 powerpc) 21490 # Since July 2007 AmigaOS4 officially supports .so libraries. 21491 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21493 ;; 21494 m68k) 21495 library_names_spec='$libname.ixlibrary $libname.a' 21496 # Create ${libname}_ixlibrary.a entries in /sys/libs. 21497 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 21498 ;; 21499 esac 21500 ;; 21501 21502beos*) 21503 library_names_spec='${libname}${shared_ext}' 21504 dynamic_linker="$host_os ld.so" 21505 shlibpath_var=LIBRARY_PATH 21506 ;; 21507 21508bsdi[45]*) 21509 version_type=linux 21510 need_version=no 21511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21512 soname_spec='${libname}${release}${shared_ext}$major' 21513 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 21514 shlibpath_var=LD_LIBRARY_PATH 21515 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 21516 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 21517 # the default ld.so.conf also contains /usr/contrib/lib and 21518 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 21519 # libtool to hard-code these into programs 21520 ;; 21521 21522cygwin* | mingw* | pw32* | cegcc*) 21523 version_type=windows 21524 shrext_cmds=".dll" 21525 need_version=no 21526 need_lib_prefix=no 21527 21528 case $GCC,$cc_basename in 21529 yes,*) 21530 # gcc 21531 library_names_spec='$libname.dll.a' 21532 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21533 postinstall_cmds='base_file=`basename \${file}`~ 21534 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 21535 dldir=$destdir/`dirname \$dlpath`~ 21536 test -d \$dldir || mkdir -p \$dldir~ 21537 $install_prog $dir/$dlname \$dldir/$dlname~ 21538 chmod a+x \$dldir/$dlname~ 21539 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21540 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21541 fi' 21542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21543 dlpath=$dir/\$dldll~ 21544 $RM \$dlpath' 21545 shlibpath_overrides_runpath=yes 21546 21547 case $host_os in 21548 cygwin*) 21549 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 21550 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21551 21552 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 21553 ;; 21554 mingw* | cegcc*) 21555 # MinGW DLLs use traditional 'lib' prefix 21556 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21557 ;; 21558 pw32*) 21559 # pw32 DLLs use 'pw' prefix rather than 'lib' 21560 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21561 ;; 21562 esac 21563 dynamic_linker='Win32 ld.exe' 21564 ;; 21565 21566 *,cl*) 21567 # Native MSVC 21568 libname_spec='$name' 21569 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21570 library_names_spec='${libname}.dll.lib' 21571 21572 case $build_os in 21573 mingw*) 21574 sys_lib_search_path_spec= 21575 lt_save_ifs=$IFS 21576 IFS=';' 21577 for lt_path in $LIB 21578 do 21579 IFS=$lt_save_ifs 21580 # Let DOS variable expansion print the short 8.3 style file name. 21581 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 21582 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 21583 done 21584 IFS=$lt_save_ifs 21585 # Convert to MSYS style. 21586 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 21587 ;; 21588 cygwin*) 21589 # Convert to unix form, then to dos form, then back to unix form 21590 # but this time dos style (no spaces!) so that the unix form looks 21591 # like /cygdrive/c/PROGRA~1:/cygdr... 21592 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 21593 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 21594 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21595 ;; 21596 *) 21597 sys_lib_search_path_spec="$LIB" 21598 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 21599 # It is most probably a Windows format PATH. 21600 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 21601 else 21602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21603 fi 21604 # FIXME: find the short name or the path components, as spaces are 21605 # common. (e.g. "Program Files" -> "PROGRA~1") 21606 ;; 21607 esac 21608 21609 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21610 postinstall_cmds='base_file=`basename \${file}`~ 21611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 21612 dldir=$destdir/`dirname \$dlpath`~ 21613 test -d \$dldir || mkdir -p \$dldir~ 21614 $install_prog $dir/$dlname \$dldir/$dlname' 21615 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21616 dlpath=$dir/\$dldll~ 21617 $RM \$dlpath' 21618 shlibpath_overrides_runpath=yes 21619 dynamic_linker='Win32 link.exe' 21620 ;; 21621 21622 *) 21623 # Assume MSVC wrapper 21624 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 21625 dynamic_linker='Win32 ld.exe' 21626 ;; 21627 esac 21628 # FIXME: first we should search . and the directory the executable is in 21629 shlibpath_var=PATH 21630 ;; 21631 21632darwin* | rhapsody*) 21633 dynamic_linker="$host_os dyld" 21634 version_type=darwin 21635 need_lib_prefix=no 21636 need_version=no 21637 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 21638 soname_spec='${libname}${release}${major}$shared_ext' 21639 shlibpath_overrides_runpath=yes 21640 shlibpath_var=DYLD_LIBRARY_PATH 21641 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 21642 21643 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 21644 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 21645 ;; 21646 21647dgux*) 21648 version_type=linux 21649 need_lib_prefix=no 21650 need_version=no 21651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 21652 soname_spec='${libname}${release}${shared_ext}$major' 21653 shlibpath_var=LD_LIBRARY_PATH 21654 ;; 21655 21656freebsd1*) 21657 dynamic_linker=no 21658 ;; 21659 21660freebsd* | dragonfly*) 21661 # DragonFly does not have aout. When/if they implement a new 21662 # versioning mechanism, adjust this. 21663 if test -x /usr/bin/objformat; then 21664 objformat=`/usr/bin/objformat` 21665 else 21666 case $host_os in 21667 freebsd[123]*) objformat=aout ;; 21668 *) objformat=elf ;; 21669 esac 21670 fi 21671 version_type=freebsd-$objformat 21672 case $version_type in 21673 freebsd-elf*) 21674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 21675 need_version=no 21676 need_lib_prefix=no 21677 ;; 21678 freebsd-*) 21679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 21680 need_version=yes 21681 ;; 21682 esac 21683 shlibpath_var=LD_LIBRARY_PATH 21684 case $host_os in 21685 freebsd2*) 21686 shlibpath_overrides_runpath=yes 21687 ;; 21688 freebsd3.[01]* | freebsdelf3.[01]*) 21689 shlibpath_overrides_runpath=yes 21690 hardcode_into_libs=yes 21691 ;; 21692 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 21693 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 21694 shlibpath_overrides_runpath=no 21695 hardcode_into_libs=yes 21696 ;; 21697 *) # from 4.6 on, and DragonFly 21698 shlibpath_overrides_runpath=yes 21699 hardcode_into_libs=yes 21700 ;; 21701 esac 21702 ;; 21703 21704gnu*) 21705 version_type=linux 21706 need_lib_prefix=no 21707 need_version=no 21708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 21709 soname_spec='${libname}${release}${shared_ext}$major' 21710 shlibpath_var=LD_LIBRARY_PATH 21711 hardcode_into_libs=yes 21712 ;; 21713 21714haiku*) 21715 version_type=linux 21716 need_lib_prefix=no 21717 need_version=no 21718 dynamic_linker="$host_os runtime_loader" 21719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 21720 soname_spec='${libname}${release}${shared_ext}$major' 21721 shlibpath_var=LIBRARY_PATH 21722 shlibpath_overrides_runpath=yes 21723 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 21724 hardcode_into_libs=yes 21725 ;; 21726 21727hpux9* | hpux10* | hpux11*) 21728 # Give a soname corresponding to the major version so that dld.sl refuses to 21729 # link against other versions. 21730 version_type=sunos 21731 need_lib_prefix=no 21732 need_version=no 21733 case $host_cpu in 21734 ia64*) 21735 shrext_cmds='.so' 21736 hardcode_into_libs=yes 21737 dynamic_linker="$host_os dld.so" 21738 shlibpath_var=LD_LIBRARY_PATH 21739 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21741 soname_spec='${libname}${release}${shared_ext}$major' 21742 if test "X$HPUX_IA64_MODE" = X32; then 21743 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 21744 else 21745 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 21746 fi 21747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21748 ;; 21749 hppa*64*) 21750 shrext_cmds='.sl' 21751 hardcode_into_libs=yes 21752 dynamic_linker="$host_os dld.sl" 21753 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 21754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 21758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21759 ;; 21760 *) 21761 shrext_cmds='.sl' 21762 dynamic_linker="$host_os dld.sl" 21763 shlibpath_var=SHLIB_PATH 21764 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 21765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21766 soname_spec='${libname}${release}${shared_ext}$major' 21767 ;; 21768 esac 21769 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 21770 postinstall_cmds='chmod 555 $lib' 21771 # or fails outright, so override atomically: 21772 install_override_mode=555 21773 ;; 21774 21775interix[3-9]*) 21776 version_type=linux 21777 need_lib_prefix=no 21778 need_version=no 21779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 21780 soname_spec='${libname}${release}${shared_ext}$major' 21781 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 21782 shlibpath_var=LD_LIBRARY_PATH 21783 shlibpath_overrides_runpath=no 21784 hardcode_into_libs=yes 21785 ;; 21786 21787irix5* | irix6* | nonstopux*) 21788 case $host_os in 21789 nonstopux*) version_type=nonstopux ;; 21790 *) 21791 if test "$lt_cv_prog_gnu_ld" = yes; then 21792 version_type=linux 21793 else 21794 version_type=irix 21795 fi ;; 21796 esac 21797 need_lib_prefix=no 21798 need_version=no 21799 soname_spec='${libname}${release}${shared_ext}$major' 21800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 21801 case $host_os in 21802 irix5* | nonstopux*) 21803 libsuff= shlibsuff= 21804 ;; 21805 *) 21806 case $LD in # libtool.m4 will add one of these switches to LD 21807 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21808 libsuff= shlibsuff= libmagic=32-bit;; 21809 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21810 libsuff=32 shlibsuff=N32 libmagic=N32;; 21811 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21812 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21813 *) libsuff= shlibsuff= libmagic=never-match;; 21814 esac 21815 ;; 21816 esac 21817 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21818 shlibpath_overrides_runpath=no 21819 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 21820 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 21821 hardcode_into_libs=yes 21822 ;; 21823 21824# No shared lib support for Linux oldld, aout, or coff. 21825linux*oldld* | linux*aout* | linux*coff*) 21826 dynamic_linker=no 21827 ;; 21828 21829# This must be Linux ELF. 21830linux* | k*bsd*-gnu | kopensolaris*-gnu) 21831 version_type=linux 21832 need_lib_prefix=no 21833 need_version=no 21834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21835 soname_spec='${libname}${release}${shared_ext}$major' 21836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21837 shlibpath_var=LD_LIBRARY_PATH 21838 shlibpath_overrides_runpath=no 21839 21840 # Some binutils ld are patched to set DT_RUNPATH 21841 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 21842 $as_echo_n "(cached) " >&6 21843else 21844 lt_cv_shlibpath_overrides_runpath=no 21845 save_LDFLAGS=$LDFLAGS 21846 save_libdir=$libdir 21847 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 21848 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 21849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21850/* end confdefs.h. */ 21851 21852int 21853main () 21854{ 21855 21856 ; 21857 return 0; 21858} 21859_ACEOF 21860if ac_fn_c_try_link "$LINENO"; then : 21861 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 21862 lt_cv_shlibpath_overrides_runpath=yes 21863fi 21864fi 21865rm -f core conftest.err conftest.$ac_objext \ 21866 conftest$ac_exeext conftest.$ac_ext 21867 LDFLAGS=$save_LDFLAGS 21868 libdir=$save_libdir 21869 21870fi 21871 21872 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 21873 21874 # This implies no fast_install, which is unacceptable. 21875 # Some rework will be needed to allow for fast_install 21876 # before this can be enabled. 21877 hardcode_into_libs=yes 21878 21879 # Append ld.so.conf contents to the search path 21880 if test -f /etc/ld.so.conf; then 21881 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' ' '` 21882 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 21883 fi 21884 21885 # We used to test for /lib/ld.so.1 and disable shared libraries on 21886 # powerpc, because MkLinux only supported shared libraries with the 21887 # GNU dynamic linker. Since this was broken with cross compilers, 21888 # most powerpc-linux boxes support dynamic linking these days and 21889 # people can always --disable-shared, the test was removed, and we 21890 # assume the GNU/Linux dynamic linker is in use. 21891 dynamic_linker='GNU/Linux ld.so' 21892 ;; 21893 21894netbsd*) 21895 version_type=sunos 21896 need_lib_prefix=no 21897 need_version=no 21898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21901 dynamic_linker='NetBSD (a.out) ld.so' 21902 else 21903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 21904 soname_spec='${libname}${release}${shared_ext}$major' 21905 dynamic_linker='NetBSD ld.elf_so' 21906 fi 21907 shlibpath_var=LD_LIBRARY_PATH 21908 shlibpath_overrides_runpath=yes 21909 hardcode_into_libs=yes 21910 ;; 21911 21912newsos6) 21913 version_type=linux 21914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21915 shlibpath_var=LD_LIBRARY_PATH 21916 shlibpath_overrides_runpath=yes 21917 ;; 21918 21919*nto* | *qnx*) 21920 version_type=qnx 21921 need_lib_prefix=no 21922 need_version=no 21923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21924 soname_spec='${libname}${release}${shared_ext}$major' 21925 shlibpath_var=LD_LIBRARY_PATH 21926 shlibpath_overrides_runpath=no 21927 hardcode_into_libs=yes 21928 dynamic_linker='ldqnx.so' 21929 ;; 21930 21931openbsd*) 21932 version_type=sunos 21933 sys_lib_dlsearch_path_spec="/usr/lib" 21934 need_lib_prefix=no 21935 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 21936 case $host_os in 21937 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 21938 *) need_version=no ;; 21939 esac 21940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21942 shlibpath_var=LD_LIBRARY_PATH 21943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 21944 case $host_os in 21945 openbsd2.[89] | openbsd2.[89].*) 21946 shlibpath_overrides_runpath=no 21947 ;; 21948 *) 21949 shlibpath_overrides_runpath=yes 21950 ;; 21951 esac 21952 else 21953 shlibpath_overrides_runpath=yes 21954 fi 21955 ;; 21956 21957os2*) 21958 libname_spec='$name' 21959 shrext_cmds=".dll" 21960 need_lib_prefix=no 21961 library_names_spec='$libname${shared_ext} $libname.a' 21962 dynamic_linker='OS/2 ld.exe' 21963 shlibpath_var=LIBPATH 21964 ;; 21965 21966osf3* | osf4* | osf5*) 21967 version_type=osf 21968 need_lib_prefix=no 21969 need_version=no 21970 soname_spec='${libname}${release}${shared_ext}$major' 21971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21972 shlibpath_var=LD_LIBRARY_PATH 21973 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21974 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 21975 ;; 21976 21977rdos*) 21978 dynamic_linker=no 21979 ;; 21980 21981solaris*) 21982 version_type=linux 21983 need_lib_prefix=no 21984 need_version=no 21985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21986 soname_spec='${libname}${release}${shared_ext}$major' 21987 shlibpath_var=LD_LIBRARY_PATH 21988 shlibpath_overrides_runpath=yes 21989 hardcode_into_libs=yes 21990 # ldd complains unless libraries are executable 21991 postinstall_cmds='chmod +x $lib' 21992 ;; 21993 21994sunos4*) 21995 version_type=sunos 21996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21998 shlibpath_var=LD_LIBRARY_PATH 21999 shlibpath_overrides_runpath=yes 22000 if test "$with_gnu_ld" = yes; then 22001 need_lib_prefix=no 22002 fi 22003 need_version=yes 22004 ;; 22005 22006sysv4 | sysv4.3*) 22007 version_type=linux 22008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22009 soname_spec='${libname}${release}${shared_ext}$major' 22010 shlibpath_var=LD_LIBRARY_PATH 22011 case $host_vendor in 22012 sni) 22013 shlibpath_overrides_runpath=no 22014 need_lib_prefix=no 22015 runpath_var=LD_RUN_PATH 22016 ;; 22017 siemens) 22018 need_lib_prefix=no 22019 ;; 22020 motorola) 22021 need_lib_prefix=no 22022 need_version=no 22023 shlibpath_overrides_runpath=no 22024 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 22025 ;; 22026 esac 22027 ;; 22028 22029sysv4*MP*) 22030 if test -d /usr/nec ;then 22031 version_type=linux 22032 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 22033 soname_spec='$libname${shared_ext}.$major' 22034 shlibpath_var=LD_LIBRARY_PATH 22035 fi 22036 ;; 22037 22038sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 22039 version_type=freebsd-elf 22040 need_lib_prefix=no 22041 need_version=no 22042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 22043 soname_spec='${libname}${release}${shared_ext}$major' 22044 shlibpath_var=LD_LIBRARY_PATH 22045 shlibpath_overrides_runpath=yes 22046 hardcode_into_libs=yes 22047 if test "$with_gnu_ld" = yes; then 22048 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 22049 else 22050 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 22051 case $host_os in 22052 sco3.2v5*) 22053 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 22054 ;; 22055 esac 22056 fi 22057 sys_lib_dlsearch_path_spec='/usr/lib' 22058 ;; 22059 22060tpf*) 22061 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 22062 version_type=linux 22063 need_lib_prefix=no 22064 need_version=no 22065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22066 shlibpath_var=LD_LIBRARY_PATH 22067 shlibpath_overrides_runpath=no 22068 hardcode_into_libs=yes 22069 ;; 22070 22071uts4*) 22072 version_type=linux 22073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22074 soname_spec='${libname}${release}${shared_ext}$major' 22075 shlibpath_var=LD_LIBRARY_PATH 22076 ;; 22077 22078*) 22079 dynamic_linker=no 22080 ;; 22081esac 22082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 22083$as_echo "$dynamic_linker" >&6; } 22084test "$dynamic_linker" = no && can_build_shared=no 22085 22086variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 22087if test "$GCC" = yes; then 22088 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 22089fi 22090 22091if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 22092 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 22093fi 22094if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 22095 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 22096fi 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 22177 22178 22179 22180 22181 22182 22183 22184 22185 22186 22187 22188 22189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 22190$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 22191hardcode_action= 22192if test -n "$hardcode_libdir_flag_spec" || 22193 test -n "$runpath_var" || 22194 test "X$hardcode_automatic" = "Xyes" ; then 22195 22196 # We can hardcode non-existent directories. 22197 if test "$hardcode_direct" != no && 22198 # If the only mechanism to avoid hardcoding is shlibpath_var, we 22199 # have to relink, otherwise we might link with an installed library 22200 # when we should be linking with a yet-to-be-installed one 22201 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 22202 test "$hardcode_minus_L" != no; then 22203 # Linking always hardcodes the temporary library directory. 22204 hardcode_action=relink 22205 else 22206 # We can link without hardcoding, and we can hardcode nonexisting dirs. 22207 hardcode_action=immediate 22208 fi 22209else 22210 # We cannot hardcode anything, or else we can only hardcode existing 22211 # directories. 22212 hardcode_action=unsupported 22213fi 22214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 22215$as_echo "$hardcode_action" >&6; } 22216 22217if test "$hardcode_action" = relink || 22218 test "$inherit_rpath" = yes; then 22219 # Fast installation is not supported 22220 enable_fast_install=no 22221elif test "$shlibpath_overrides_runpath" = yes || 22222 test "$enable_shared" = no; then 22223 # Fast installation is not necessary 22224 enable_fast_install=needless 22225fi 22226 22227 22228 22229 22230 22231 22232 if test "x$enable_dlopen" != xyes; then 22233 enable_dlopen=unknown 22234 enable_dlopen_self=unknown 22235 enable_dlopen_self_static=unknown 22236else 22237 lt_cv_dlopen=no 22238 lt_cv_dlopen_libs= 22239 22240 case $host_os in 22241 beos*) 22242 lt_cv_dlopen="load_add_on" 22243 lt_cv_dlopen_libs= 22244 lt_cv_dlopen_self=yes 22245 ;; 22246 22247 mingw* | pw32* | cegcc*) 22248 lt_cv_dlopen="LoadLibrary" 22249 lt_cv_dlopen_libs= 22250 ;; 22251 22252 cygwin*) 22253 lt_cv_dlopen="dlopen" 22254 lt_cv_dlopen_libs= 22255 ;; 22256 22257 darwin*) 22258 # if libdl is installed we need to link against it 22259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 22260$as_echo_n "checking for dlopen in -ldl... " >&6; } 22261if ${ac_cv_lib_dl_dlopen+:} false; then : 22262 $as_echo_n "(cached) " >&6 22263else 22264 ac_check_lib_save_LIBS=$LIBS 22265LIBS="-ldl $LIBS" 22266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22267/* end confdefs.h. */ 22268 22269/* Override any GCC internal prototype to avoid an error. 22270 Use char because int might match the return type of a GCC 22271 builtin and then its argument prototype would still apply. */ 22272#ifdef __cplusplus 22273extern "C" 22274#endif 22275char dlopen (); 22276int 22277main () 22278{ 22279return dlopen (); 22280 ; 22281 return 0; 22282} 22283_ACEOF 22284if ac_fn_c_try_link "$LINENO"; then : 22285 ac_cv_lib_dl_dlopen=yes 22286else 22287 ac_cv_lib_dl_dlopen=no 22288fi 22289rm -f core conftest.err conftest.$ac_objext \ 22290 conftest$ac_exeext conftest.$ac_ext 22291LIBS=$ac_check_lib_save_LIBS 22292fi 22293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22294$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 22295if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 22296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 22297else 22298 22299 lt_cv_dlopen="dyld" 22300 lt_cv_dlopen_libs= 22301 lt_cv_dlopen_self=yes 22302 22303fi 22304 22305 ;; 22306 22307 *) 22308 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 22309if test "x$ac_cv_func_shl_load" = xyes; then : 22310 lt_cv_dlopen="shl_load" 22311else 22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 22313$as_echo_n "checking for shl_load in -ldld... " >&6; } 22314if ${ac_cv_lib_dld_shl_load+:} false; then : 22315 $as_echo_n "(cached) " >&6 22316else 22317 ac_check_lib_save_LIBS=$LIBS 22318LIBS="-ldld $LIBS" 22319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22320/* end confdefs.h. */ 22321 22322/* Override any GCC internal prototype to avoid an error. 22323 Use char because int might match the return type of a GCC 22324 builtin and then its argument prototype would still apply. */ 22325#ifdef __cplusplus 22326extern "C" 22327#endif 22328char shl_load (); 22329int 22330main () 22331{ 22332return shl_load (); 22333 ; 22334 return 0; 22335} 22336_ACEOF 22337if ac_fn_c_try_link "$LINENO"; then : 22338 ac_cv_lib_dld_shl_load=yes 22339else 22340 ac_cv_lib_dld_shl_load=no 22341fi 22342rm -f core conftest.err conftest.$ac_objext \ 22343 conftest$ac_exeext conftest.$ac_ext 22344LIBS=$ac_check_lib_save_LIBS 22345fi 22346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 22347$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 22348if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 22349 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 22350else 22351 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 22352if test "x$ac_cv_func_dlopen" = xyes; then : 22353 lt_cv_dlopen="dlopen" 22354else 22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 22356$as_echo_n "checking for dlopen in -ldl... " >&6; } 22357if ${ac_cv_lib_dl_dlopen+:} false; then : 22358 $as_echo_n "(cached) " >&6 22359else 22360 ac_check_lib_save_LIBS=$LIBS 22361LIBS="-ldl $LIBS" 22362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22363/* end confdefs.h. */ 22364 22365/* Override any GCC internal prototype to avoid an error. 22366 Use char because int might match the return type of a GCC 22367 builtin and then its argument prototype would still apply. */ 22368#ifdef __cplusplus 22369extern "C" 22370#endif 22371char dlopen (); 22372int 22373main () 22374{ 22375return dlopen (); 22376 ; 22377 return 0; 22378} 22379_ACEOF 22380if ac_fn_c_try_link "$LINENO"; then : 22381 ac_cv_lib_dl_dlopen=yes 22382else 22383 ac_cv_lib_dl_dlopen=no 22384fi 22385rm -f core conftest.err conftest.$ac_objext \ 22386 conftest$ac_exeext conftest.$ac_ext 22387LIBS=$ac_check_lib_save_LIBS 22388fi 22389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22390$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 22391if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 22392 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 22393else 22394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 22395$as_echo_n "checking for dlopen in -lsvld... " >&6; } 22396if ${ac_cv_lib_svld_dlopen+:} false; then : 22397 $as_echo_n "(cached) " >&6 22398else 22399 ac_check_lib_save_LIBS=$LIBS 22400LIBS="-lsvld $LIBS" 22401cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22402/* end confdefs.h. */ 22403 22404/* Override any GCC internal prototype to avoid an error. 22405 Use char because int might match the return type of a GCC 22406 builtin and then its argument prototype would still apply. */ 22407#ifdef __cplusplus 22408extern "C" 22409#endif 22410char dlopen (); 22411int 22412main () 22413{ 22414return dlopen (); 22415 ; 22416 return 0; 22417} 22418_ACEOF 22419if ac_fn_c_try_link "$LINENO"; then : 22420 ac_cv_lib_svld_dlopen=yes 22421else 22422 ac_cv_lib_svld_dlopen=no 22423fi 22424rm -f core conftest.err conftest.$ac_objext \ 22425 conftest$ac_exeext conftest.$ac_ext 22426LIBS=$ac_check_lib_save_LIBS 22427fi 22428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 22429$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 22430if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 22431 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 22432else 22433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 22434$as_echo_n "checking for dld_link in -ldld... " >&6; } 22435if ${ac_cv_lib_dld_dld_link+:} false; then : 22436 $as_echo_n "(cached) " >&6 22437else 22438 ac_check_lib_save_LIBS=$LIBS 22439LIBS="-ldld $LIBS" 22440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22441/* end confdefs.h. */ 22442 22443/* Override any GCC internal prototype to avoid an error. 22444 Use char because int might match the return type of a GCC 22445 builtin and then its argument prototype would still apply. */ 22446#ifdef __cplusplus 22447extern "C" 22448#endif 22449char dld_link (); 22450int 22451main () 22452{ 22453return dld_link (); 22454 ; 22455 return 0; 22456} 22457_ACEOF 22458if ac_fn_c_try_link "$LINENO"; then : 22459 ac_cv_lib_dld_dld_link=yes 22460else 22461 ac_cv_lib_dld_dld_link=no 22462fi 22463rm -f core conftest.err conftest.$ac_objext \ 22464 conftest$ac_exeext conftest.$ac_ext 22465LIBS=$ac_check_lib_save_LIBS 22466fi 22467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 22468$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 22469if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 22470 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 22471fi 22472 22473 22474fi 22475 22476 22477fi 22478 22479 22480fi 22481 22482 22483fi 22484 22485 22486fi 22487 22488 ;; 22489 esac 22490 22491 if test "x$lt_cv_dlopen" != xno; then 22492 enable_dlopen=yes 22493 else 22494 enable_dlopen=no 22495 fi 22496 22497 case $lt_cv_dlopen in 22498 dlopen) 22499 save_CPPFLAGS="$CPPFLAGS" 22500 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 22501 22502 save_LDFLAGS="$LDFLAGS" 22503 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 22504 22505 save_LIBS="$LIBS" 22506 LIBS="$lt_cv_dlopen_libs $LIBS" 22507 22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 22509$as_echo_n "checking whether a program can dlopen itself... " >&6; } 22510if ${lt_cv_dlopen_self+:} false; then : 22511 $as_echo_n "(cached) " >&6 22512else 22513 if test "$cross_compiling" = yes; then : 22514 lt_cv_dlopen_self=cross 22515else 22516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 22517 lt_status=$lt_dlunknown 22518 cat > conftest.$ac_ext <<_LT_EOF 22519#line $LINENO "configure" 22520#include "confdefs.h" 22521 22522#if HAVE_DLFCN_H 22523#include <dlfcn.h> 22524#endif 22525 22526#include <stdio.h> 22527 22528#ifdef RTLD_GLOBAL 22529# define LT_DLGLOBAL RTLD_GLOBAL 22530#else 22531# ifdef DL_GLOBAL 22532# define LT_DLGLOBAL DL_GLOBAL 22533# else 22534# define LT_DLGLOBAL 0 22535# endif 22536#endif 22537 22538/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 22539 find out it does not work in some platform. */ 22540#ifndef LT_DLLAZY_OR_NOW 22541# ifdef RTLD_LAZY 22542# define LT_DLLAZY_OR_NOW RTLD_LAZY 22543# else 22544# ifdef DL_LAZY 22545# define LT_DLLAZY_OR_NOW DL_LAZY 22546# else 22547# ifdef RTLD_NOW 22548# define LT_DLLAZY_OR_NOW RTLD_NOW 22549# else 22550# ifdef DL_NOW 22551# define LT_DLLAZY_OR_NOW DL_NOW 22552# else 22553# define LT_DLLAZY_OR_NOW 0 22554# endif 22555# endif 22556# endif 22557# endif 22558#endif 22559 22560/* When -fvisbility=hidden is used, assume the code has been annotated 22561 correspondingly for the symbols needed. */ 22562#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 22563int fnord () __attribute__((visibility("default"))); 22564#endif 22565 22566int fnord () { return 42; } 22567int main () 22568{ 22569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 22570 int status = $lt_dlunknown; 22571 22572 if (self) 22573 { 22574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 22575 else 22576 { 22577 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 22578 else puts (dlerror ()); 22579 } 22580 /* dlclose (self); */ 22581 } 22582 else 22583 puts (dlerror ()); 22584 22585 return status; 22586} 22587_LT_EOF 22588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 22589 (eval $ac_link) 2>&5 22590 ac_status=$? 22591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22592 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 22593 (./conftest; exit; ) >&5 2>/dev/null 22594 lt_status=$? 22595 case x$lt_status in 22596 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 22597 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 22598 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 22599 esac 22600 else : 22601 # compilation failed 22602 lt_cv_dlopen_self=no 22603 fi 22604fi 22605rm -fr conftest* 22606 22607 22608fi 22609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 22610$as_echo "$lt_cv_dlopen_self" >&6; } 22611 22612 if test "x$lt_cv_dlopen_self" = xyes; then 22613 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 22614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 22615$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 22616if ${lt_cv_dlopen_self_static+:} false; then : 22617 $as_echo_n "(cached) " >&6 22618else 22619 if test "$cross_compiling" = yes; then : 22620 lt_cv_dlopen_self_static=cross 22621else 22622 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 22623 lt_status=$lt_dlunknown 22624 cat > conftest.$ac_ext <<_LT_EOF 22625#line $LINENO "configure" 22626#include "confdefs.h" 22627 22628#if HAVE_DLFCN_H 22629#include <dlfcn.h> 22630#endif 22631 22632#include <stdio.h> 22633 22634#ifdef RTLD_GLOBAL 22635# define LT_DLGLOBAL RTLD_GLOBAL 22636#else 22637# ifdef DL_GLOBAL 22638# define LT_DLGLOBAL DL_GLOBAL 22639# else 22640# define LT_DLGLOBAL 0 22641# endif 22642#endif 22643 22644/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 22645 find out it does not work in some platform. */ 22646#ifndef LT_DLLAZY_OR_NOW 22647# ifdef RTLD_LAZY 22648# define LT_DLLAZY_OR_NOW RTLD_LAZY 22649# else 22650# ifdef DL_LAZY 22651# define LT_DLLAZY_OR_NOW DL_LAZY 22652# else 22653# ifdef RTLD_NOW 22654# define LT_DLLAZY_OR_NOW RTLD_NOW 22655# else 22656# ifdef DL_NOW 22657# define LT_DLLAZY_OR_NOW DL_NOW 22658# else 22659# define LT_DLLAZY_OR_NOW 0 22660# endif 22661# endif 22662# endif 22663# endif 22664#endif 22665 22666/* When -fvisbility=hidden is used, assume the code has been annotated 22667 correspondingly for the symbols needed. */ 22668#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 22669int fnord () __attribute__((visibility("default"))); 22670#endif 22671 22672int fnord () { return 42; } 22673int main () 22674{ 22675 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 22676 int status = $lt_dlunknown; 22677 22678 if (self) 22679 { 22680 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 22681 else 22682 { 22683 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 22684 else puts (dlerror ()); 22685 } 22686 /* dlclose (self); */ 22687 } 22688 else 22689 puts (dlerror ()); 22690 22691 return status; 22692} 22693_LT_EOF 22694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 22695 (eval $ac_link) 2>&5 22696 ac_status=$? 22697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22698 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 22699 (./conftest; exit; ) >&5 2>/dev/null 22700 lt_status=$? 22701 case x$lt_status in 22702 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 22703 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 22704 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 22705 esac 22706 else : 22707 # compilation failed 22708 lt_cv_dlopen_self_static=no 22709 fi 22710fi 22711rm -fr conftest* 22712 22713 22714fi 22715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 22716$as_echo "$lt_cv_dlopen_self_static" >&6; } 22717 fi 22718 22719 CPPFLAGS="$save_CPPFLAGS" 22720 LDFLAGS="$save_LDFLAGS" 22721 LIBS="$save_LIBS" 22722 ;; 22723 esac 22724 22725 case $lt_cv_dlopen_self in 22726 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 22727 *) enable_dlopen_self=unknown ;; 22728 esac 22729 22730 case $lt_cv_dlopen_self_static in 22731 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 22732 *) enable_dlopen_self_static=unknown ;; 22733 esac 22734fi 22735 22736 22737 22738 22739 22740 22741 22742 22743 22744 22745 22746 22747 22748 22749 22750 22751 22752striplib= 22753old_striplib= 22754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 22755$as_echo_n "checking whether stripping libraries is possible... " >&6; } 22756if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 22757 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 22758 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22760$as_echo "yes" >&6; } 22761else 22762# FIXME - insert some real tests, host_os isn't really good enough 22763 case $host_os in 22764 darwin*) 22765 if test -n "$STRIP" ; then 22766 striplib="$STRIP -x" 22767 old_striplib="$STRIP -S" 22768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22769$as_echo "yes" >&6; } 22770 else 22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22772$as_echo "no" >&6; } 22773 fi 22774 ;; 22775 *) 22776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22777$as_echo "no" >&6; } 22778 ;; 22779 esac 22780fi 22781 22782 22783 22784 22785 22786 22787 22788 22789 22790 22791 22792 22793 # Report which library types will actually be built 22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 22795$as_echo_n "checking if libtool supports shared libraries... " >&6; } 22796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 22797$as_echo "$can_build_shared" >&6; } 22798 22799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 22800$as_echo_n "checking whether to build shared libraries... " >&6; } 22801 test "$can_build_shared" = "no" && enable_shared=no 22802 22803 # On AIX, shared libraries and static libraries use the same namespace, and 22804 # are all built from PIC. 22805 case $host_os in 22806 aix3*) 22807 test "$enable_shared" = yes && enable_static=no 22808 if test -n "$RANLIB"; then 22809 archive_cmds="$archive_cmds~\$RANLIB \$lib" 22810 postinstall_cmds='$RANLIB $lib' 22811 fi 22812 ;; 22813 22814 aix[4-9]*) 22815 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 22816 test "$enable_shared" = yes && enable_static=no 22817 fi 22818 ;; 22819 esac 22820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 22821$as_echo "$enable_shared" >&6; } 22822 22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 22824$as_echo_n "checking whether to build static libraries... " >&6; } 22825 # Make sure either enable_shared or enable_static is yes. 22826 test "$enable_shared" = yes || enable_static=yes 22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 22828$as_echo "$enable_static" >&6; } 22829 22830 22831 22832 22833fi 22834ac_ext=c 22835ac_cpp='$CPP $CPPFLAGS' 22836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22838ac_compiler_gnu=$ac_cv_c_compiler_gnu 22839 22840CC="$lt_save_CC" 22841 22842 22843 22844 22845 22846 22847 22848 22849 22850 22851 22852 22853 22854 ac_config_commands="$ac_config_commands libtool" 22855 22856 22857 22858 22859# Only expand once: 22860 22861 22862 22863 22864 22865 22866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5 22867$as_echo_n "checking if sntp will be built... " >&6; } 22868 22869# Check whether --with-sntp was given. 22870if test "${with_sntp+set}" = set; then : 22871 withval=$with_sntp; 22872else 22873 with_sntp="${withsntp=yes}" 22874 22875fi 22876 22877case "$with_sntp" in 22878 no) 22879 SNTP= 22880 ;; 22881 *) 22882 SNTP=sntp 22883 ;; 22884esac 22885 22886 if test -n "$SNTP"; then 22887 BUILD_SNTP_TRUE= 22888 BUILD_SNTP_FALSE='#' 22889else 22890 BUILD_SNTP_TRUE='#' 22891 BUILD_SNTP_FALSE= 22892fi 22893 22894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5 22895$as_echo "$with_sntp" >&6; } 22896 22897 22898 22899case "$SNTP" in 22900 '') 22901 SNTP_DB= 22902 SNTP_DL= 22903 SNTP_DS= 22904 ;; 22905esac 22906 22907### 22908 22909# NTP has (so far) been relying on leading-edge autogen. 22910# Therefore, by default: 22911# - use the version we ship with 22912# - do not install it 22913# - build a static copy (AC_DISABLE_SHARED - done earlier) 22914case "${enable_local_libopts+set}" in 22915 set) ;; 22916 *) enable_local_libopts=yes ;; 22917esac 22918case "${enable_libopts_install+set}" in 22919 set) ;; 22920 *) enable_libopts_install=no ;; 22921esac 22922enable_nls=no 22923 22924 22925 ac_header_dirent=no 22926for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 22927 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 22928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 22929$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 22930if eval \${$as_ac_Header+:} false; then : 22931 $as_echo_n "(cached) " >&6 22932else 22933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22934/* end confdefs.h. */ 22935#include <sys/types.h> 22936#include <$ac_hdr> 22937 22938int 22939main () 22940{ 22941if ((DIR *) 0) 22942return 0; 22943 ; 22944 return 0; 22945} 22946_ACEOF 22947if ac_fn_c_try_compile "$LINENO"; then : 22948 eval "$as_ac_Header=yes" 22949else 22950 eval "$as_ac_Header=no" 22951fi 22952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22953fi 22954eval ac_res=\$$as_ac_Header 22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22956$as_echo "$ac_res" >&6; } 22957if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22958 cat >>confdefs.h <<_ACEOF 22959#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 22960_ACEOF 22961 22962ac_header_dirent=$ac_hdr; break 22963fi 22964 22965done 22966# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 22967if test $ac_header_dirent = dirent.h; then 22968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22969$as_echo_n "checking for library containing opendir... " >&6; } 22970if ${ac_cv_search_opendir+:} false; then : 22971 $as_echo_n "(cached) " >&6 22972else 22973 ac_func_search_save_LIBS=$LIBS 22974cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22975/* end confdefs.h. */ 22976 22977/* Override any GCC internal prototype to avoid an error. 22978 Use char because int might match the return type of a GCC 22979 builtin and then its argument prototype would still apply. */ 22980#ifdef __cplusplus 22981extern "C" 22982#endif 22983char opendir (); 22984int 22985main () 22986{ 22987return opendir (); 22988 ; 22989 return 0; 22990} 22991_ACEOF 22992for ac_lib in '' dir; do 22993 if test -z "$ac_lib"; then 22994 ac_res="none required" 22995 else 22996 ac_res=-l$ac_lib 22997 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22998 fi 22999 if ac_fn_c_try_link "$LINENO"; then : 23000 ac_cv_search_opendir=$ac_res 23001fi 23002rm -f core conftest.err conftest.$ac_objext \ 23003 conftest$ac_exeext 23004 if ${ac_cv_search_opendir+:} false; then : 23005 break 23006fi 23007done 23008if ${ac_cv_search_opendir+:} false; then : 23009 23010else 23011 ac_cv_search_opendir=no 23012fi 23013rm conftest.$ac_ext 23014LIBS=$ac_func_search_save_LIBS 23015fi 23016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23017$as_echo "$ac_cv_search_opendir" >&6; } 23018ac_res=$ac_cv_search_opendir 23019if test "$ac_res" != no; then : 23020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23021 23022fi 23023 23024else 23025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 23026$as_echo_n "checking for library containing opendir... " >&6; } 23027if ${ac_cv_search_opendir+:} false; then : 23028 $as_echo_n "(cached) " >&6 23029else 23030 ac_func_search_save_LIBS=$LIBS 23031cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23032/* end confdefs.h. */ 23033 23034/* Override any GCC internal prototype to avoid an error. 23035 Use char because int might match the return type of a GCC 23036 builtin and then its argument prototype would still apply. */ 23037#ifdef __cplusplus 23038extern "C" 23039#endif 23040char opendir (); 23041int 23042main () 23043{ 23044return opendir (); 23045 ; 23046 return 0; 23047} 23048_ACEOF 23049for ac_lib in '' x; do 23050 if test -z "$ac_lib"; then 23051 ac_res="none required" 23052 else 23053 ac_res=-l$ac_lib 23054 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23055 fi 23056 if ac_fn_c_try_link "$LINENO"; then : 23057 ac_cv_search_opendir=$ac_res 23058fi 23059rm -f core conftest.err conftest.$ac_objext \ 23060 conftest$ac_exeext 23061 if ${ac_cv_search_opendir+:} false; then : 23062 break 23063fi 23064done 23065if ${ac_cv_search_opendir+:} false; then : 23066 23067else 23068 ac_cv_search_opendir=no 23069fi 23070rm conftest.$ac_ext 23071LIBS=$ac_func_search_save_LIBS 23072fi 23073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23074$as_echo "$ac_cv_search_opendir" >&6; } 23075ac_res=$ac_cv_search_opendir 23076if test "$ac_res" != no; then : 23077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23078 23079fi 23080 23081fi 23082 23083 23084 # ================= 23085 # AC_CHECK_HEADERS 23086 # ================= 23087 for ac_header in \ 23088 sys/mman.h sys/param.h sys/poll.h sys/procset.h \ 23089 sys/select.h sys/socket.h sys/stropts.h sys/time.h \ 23090 sys/un.h sys/wait.h dlfcn.h errno.h \ 23091 fcntl.h libgen.h libintl.h memory.h \ 23092 netinet/in.h setjmp.h stdbool.h sysexits.h \ 23093 unistd.h utime.h 23094do : 23095 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23096ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23097if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23098 cat >>confdefs.h <<_ACEOF 23099#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23100_ACEOF 23101 23102fi 23103 23104done 23105 23106 23107 for ac_header in stdarg.h varargs.h 23108do : 23109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23110ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23111if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23112 cat >>confdefs.h <<_ACEOF 23113#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23114_ACEOF 23115 lo_have_arg_hdr=true;break 23116else 23117 lo_have_arg_hdr=false 23118fi 23119 23120done 23121 23122 23123 for ac_header in string.h strings.h 23124do : 23125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23126ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23127if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23128 cat >>confdefs.h <<_ACEOF 23129#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23130_ACEOF 23131 lo_have_str_hdr=true;break 23132else 23133 lo_have_str_hdr=false 23134fi 23135 23136done 23137 23138 23139 for ac_header in limits.h sys/limits.h values.h 23140do : 23141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23142ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23143if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23144 cat >>confdefs.h <<_ACEOF 23145#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23146_ACEOF 23147 lo_have_lim_hdr=true;break 23148else 23149 lo_have_lim_hdr=false 23150fi 23151 23152done 23153 23154 23155 for ac_header in inttypes.h stdint.h 23156do : 23157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23158ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23159if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23160 cat >>confdefs.h <<_ACEOF 23161#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23162_ACEOF 23163 lo_have_typ_hdr=true;break 23164else 23165 lo_have_typ_hdr=false 23166fi 23167 23168done 23169 23170 23171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5 23172$as_echo_n "checking for working stdnoreturn.h... " >&6; } 23173if ${gl_cv_header_working_stdnoreturn_h+:} false; then : 23174 $as_echo_n "(cached) " >&6 23175else 23176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23177/* end confdefs.h. */ 23178#include <stdlib.h> 23179 #include <stdnoreturn.h> 23180 /* Do not check for 'noreturn' after the return type. 23181 C11 allows it, but it's rarely done that way 23182 and circa-2012 bleeding-edge GCC rejects it when given 23183 -Werror=old-style-declaration. */ 23184 noreturn void foo1 (void) { exit (0); } 23185 _Noreturn void foo2 (void) { exit (0); } 23186 int testit (int argc, char **argv) { 23187 if (argc & 1) 23188 return 0; 23189 (argv[0][0] ? foo1 : foo2) (); 23190 } 23191 23192int 23193main () 23194{ 23195 23196 ; 23197 return 0; 23198} 23199_ACEOF 23200if ac_fn_c_try_compile "$LINENO"; then : 23201 gl_cv_header_working_stdnoreturn_h=yes 23202else 23203 gl_cv_header_working_stdnoreturn_h=no 23204fi 23205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23206fi 23207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5 23208$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; } 23209 23210 if test $gl_cv_header_working_stdnoreturn_h = yes; then 23211 STDNORETURN_H='' 23212 else 23213 STDNORETURN_H='stdnoreturn.h' 23214 fi 23215 23216 23217 if test -n "$STDNORETURN_H"; then 23218 GL_GENERATE_STDNORETURN_H_TRUE= 23219 GL_GENERATE_STDNORETURN_H_FALSE='#' 23220else 23221 GL_GENERATE_STDNORETURN_H_TRUE='#' 23222 GL_GENERATE_STDNORETURN_H_FALSE= 23223fi 23224 23225 23226 23227 # ---------------------------------------------------------------------- 23228 # check for various programs used during the build. 23229 # On OS/X, "wchar.h" needs "runetype.h" to work properly. 23230 # ---------------------------------------------------------------------- 23231 for ac_header in runetype.h wchar.h 23232do : 23233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23234ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 23235 $ac_includes_default 23236 #if HAVE_RUNETYPE_H 23237 # include <runetype.h> 23238 #endif 23239 23240" 23241if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23242 cat >>confdefs.h <<_ACEOF 23243#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23244_ACEOF 23245 23246fi 23247 23248done 23249 23250 23251 # Check whether --enable-nls was given. 23252if test "${enable_nls+set}" = set; then : 23253 enableval=$enable_nls; 23254fi 23255 23256 if test "x$enable_nls" != "xno" && \ 23257 test "X${ac_cv_header_libintl_h}" = Xyes; then : 23258 23259 23260$as_echo "#define ENABLE_NLS 1" >>confdefs.h 23261 23262fi 23263 23264 # -------------------------------------------- 23265 # Verify certain entries from AC_CHECK_HEADERS 23266 # -------------------------------------------- 23267 ${lo_have_arg_hdr} || \ 23268 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5 23269 23270 ${lo_have_str_hdr} || \ 23271 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5 23272 23273 ${lo_have_lim_hdr} || \ 23274 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5 23275 23276 ${lo_have_typ_hdr} || \ 23277 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5 23278 23279 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp 23280 do eval as_ac_var=\${ac_cv_header_${f}_h} 23281 test "X${as_ac_var}" = Xyes || { 23282 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5 23283 } 23284 done 23285 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \ 23286 echo '#include <stdint.h>' > inttypes.h 23287 23288 # ---------------------------------------------------------------------- 23289 # Checks for typedefs 23290 # ---------------------------------------------------------------------- 23291 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default" 23292if test "x$ac_cv_type_wchar_t" = xyes; then : 23293 23294cat >>confdefs.h <<_ACEOF 23295#define HAVE_WCHAR_T 1 23296_ACEOF 23297 23298 23299fi 23300 23301 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" " 23302 $ac_includes_default 23303 #if HAVE_RUNETYPE_H 23304 # include <runetype.h> 23305 #endif 23306 #if HAVE_WCHAR_H 23307 # include <wchar.h> 23308 #endif 23309 23310" 23311if test "x$ac_cv_type_wint_t" = xyes; then : 23312 23313cat >>confdefs.h <<_ACEOF 23314#define HAVE_WINT_T 1 23315_ACEOF 23316 23317 23318fi 23319 23320 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 23321if test "x$ac_cv_type_int8_t" = xyes; then : 23322 23323cat >>confdefs.h <<_ACEOF 23324#define HAVE_INT8_T 1 23325_ACEOF 23326 23327 23328fi 23329ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 23330if test "x$ac_cv_type_uint8_t" = xyes; then : 23331 23332cat >>confdefs.h <<_ACEOF 23333#define HAVE_UINT8_T 1 23334_ACEOF 23335 23336 23337fi 23338ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 23339if test "x$ac_cv_type_int16_t" = xyes; then : 23340 23341cat >>confdefs.h <<_ACEOF 23342#define HAVE_INT16_T 1 23343_ACEOF 23344 23345 23346fi 23347ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 23348if test "x$ac_cv_type_uint16_t" = xyes; then : 23349 23350cat >>confdefs.h <<_ACEOF 23351#define HAVE_UINT16_T 1 23352_ACEOF 23353 23354 23355fi 23356ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 23357if test "x$ac_cv_type_int32_t" = xyes; then : 23358 23359cat >>confdefs.h <<_ACEOF 23360#define HAVE_INT32_T 1 23361_ACEOF 23362 23363 23364fi 23365ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 23366if test "x$ac_cv_type_uint32_t" = xyes; then : 23367 23368cat >>confdefs.h <<_ACEOF 23369#define HAVE_UINT32_T 1 23370_ACEOF 23371 23372 23373fi 23374ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 23375if test "x$ac_cv_type_intptr_t" = xyes; then : 23376 23377cat >>confdefs.h <<_ACEOF 23378#define HAVE_INTPTR_T 1 23379_ACEOF 23380 23381 23382fi 23383ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 23384if test "x$ac_cv_type_uintptr_t" = xyes; then : 23385 23386cat >>confdefs.h <<_ACEOF 23387#define HAVE_UINTPTR_T 1 23388_ACEOF 23389 23390 23391fi 23392ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 23393if test "x$ac_cv_type_uint_t" = xyes; then : 23394 23395cat >>confdefs.h <<_ACEOF 23396#define HAVE_UINT_T 1 23397_ACEOF 23398 23399 23400fi 23401ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 23402if test "x$ac_cv_type_pid_t" = xyes; then : 23403 23404cat >>confdefs.h <<_ACEOF 23405#define HAVE_PID_T 1 23406_ACEOF 23407 23408 23409fi 23410ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 23411if test "x$ac_cv_type_size_t" = xyes; then : 23412 23413cat >>confdefs.h <<_ACEOF 23414#define HAVE_SIZE_T 1 23415_ACEOF 23416 23417 23418fi 23419ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 23420if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 23421 23422cat >>confdefs.h <<_ACEOF 23423#define HAVE_PTRDIFF_T 1 23424_ACEOF 23425 23426 23427fi 23428 23429 # The cast to long int works around a bug in the HP C Compiler 23430# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23431# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23432# This bug is HP SR number 8606223364. 23433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5 23434$as_echo_n "checking size of char*... " >&6; } 23435if ${ac_cv_sizeof_charp+:} false; then : 23436 $as_echo_n "(cached) " >&6 23437else 23438 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then : 23439 23440else 23441 if test "$ac_cv_type_charp" = yes; then 23442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23444as_fn_error 77 "cannot compute sizeof (char*) 23445See \`config.log' for more details" "$LINENO" 5; } 23446 else 23447 ac_cv_sizeof_charp=0 23448 fi 23449fi 23450 23451fi 23452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5 23453$as_echo "$ac_cv_sizeof_charp" >&6; } 23454 23455 23456 23457cat >>confdefs.h <<_ACEOF 23458#define SIZEOF_CHARP $ac_cv_sizeof_charp 23459_ACEOF 23460 23461 23462 # The cast to long int works around a bug in the HP C Compiler 23463# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23464# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23465# This bug is HP SR number 8606223364. 23466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 23467$as_echo_n "checking size of int... " >&6; } 23468if ${ac_cv_sizeof_int+:} false; then : 23469 $as_echo_n "(cached) " >&6 23470else 23471 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 23472 23473else 23474 if test "$ac_cv_type_int" = yes; then 23475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23477as_fn_error 77 "cannot compute sizeof (int) 23478See \`config.log' for more details" "$LINENO" 5; } 23479 else 23480 ac_cv_sizeof_int=0 23481 fi 23482fi 23483 23484fi 23485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 23486$as_echo "$ac_cv_sizeof_int" >&6; } 23487 23488 23489 23490cat >>confdefs.h <<_ACEOF 23491#define SIZEOF_INT $ac_cv_sizeof_int 23492_ACEOF 23493 23494 23495 # The cast to long int works around a bug in the HP C Compiler 23496# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23497# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23498# This bug is HP SR number 8606223364. 23499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 23500$as_echo_n "checking size of long... " >&6; } 23501if ${ac_cv_sizeof_long+:} false; then : 23502 $as_echo_n "(cached) " >&6 23503else 23504 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 23505 23506else 23507 if test "$ac_cv_type_long" = yes; then 23508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23510as_fn_error 77 "cannot compute sizeof (long) 23511See \`config.log' for more details" "$LINENO" 5; } 23512 else 23513 ac_cv_sizeof_long=0 23514 fi 23515fi 23516 23517fi 23518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 23519$as_echo "$ac_cv_sizeof_long" >&6; } 23520 23521 23522 23523cat >>confdefs.h <<_ACEOF 23524#define SIZEOF_LONG $ac_cv_sizeof_long 23525_ACEOF 23526 23527 23528 # The cast to long int works around a bug in the HP C Compiler 23529# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23530# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23531# This bug is HP SR number 8606223364. 23532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 23533$as_echo_n "checking size of short... " >&6; } 23534if ${ac_cv_sizeof_short+:} false; then : 23535 $as_echo_n "(cached) " >&6 23536else 23537 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 23538 23539else 23540 if test "$ac_cv_type_short" = yes; then 23541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23543as_fn_error 77 "cannot compute sizeof (short) 23544See \`config.log' for more details" "$LINENO" 5; } 23545 else 23546 ac_cv_sizeof_short=0 23547 fi 23548fi 23549 23550fi 23551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 23552$as_echo "$ac_cv_sizeof_short" >&6; } 23553 23554 23555 23556cat >>confdefs.h <<_ACEOF 23557#define SIZEOF_SHORT $ac_cv_sizeof_short 23558_ACEOF 23559 23560 23561 23562 # ------------ 23563 # AC_CHECK_LIB 23564 # ------------ 23565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5 23566$as_echo_n "checking for pathfind in -lgen... " >&6; } 23567if ${ac_cv_lib_gen_pathfind+:} false; then : 23568 $as_echo_n "(cached) " >&6 23569else 23570 ac_check_lib_save_LIBS=$LIBS 23571LIBS="-lgen $LIBS" 23572cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23573/* end confdefs.h. */ 23574 23575/* Override any GCC internal prototype to avoid an error. 23576 Use char because int might match the return type of a GCC 23577 builtin and then its argument prototype would still apply. */ 23578#ifdef __cplusplus 23579extern "C" 23580#endif 23581char pathfind (); 23582int 23583main () 23584{ 23585return pathfind (); 23586 ; 23587 return 0; 23588} 23589_ACEOF 23590if ac_fn_c_try_link "$LINENO"; then : 23591 ac_cv_lib_gen_pathfind=yes 23592else 23593 ac_cv_lib_gen_pathfind=no 23594fi 23595rm -f core conftest.err conftest.$ac_objext \ 23596 conftest$ac_exeext conftest.$ac_ext 23597LIBS=$ac_check_lib_save_LIBS 23598fi 23599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5 23600$as_echo "$ac_cv_lib_gen_pathfind" >&6; } 23601if test "x$ac_cv_lib_gen_pathfind" = xyes; then : 23602 cat >>confdefs.h <<_ACEOF 23603#define HAVE_LIBGEN 1 23604_ACEOF 23605 23606 LIBS="-lgen $LIBS" 23607 23608fi 23609 23610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5 23611$as_echo_n "checking for gettext in -lintl... " >&6; } 23612if ${ac_cv_lib_intl_gettext+:} false; then : 23613 $as_echo_n "(cached) " >&6 23614else 23615 ac_check_lib_save_LIBS=$LIBS 23616LIBS="-lintl $LIBS" 23617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23618/* end confdefs.h. */ 23619 23620/* Override any GCC internal prototype to avoid an error. 23621 Use char because int might match the return type of a GCC 23622 builtin and then its argument prototype would still apply. */ 23623#ifdef __cplusplus 23624extern "C" 23625#endif 23626char gettext (); 23627int 23628main () 23629{ 23630return gettext (); 23631 ; 23632 return 0; 23633} 23634_ACEOF 23635if ac_fn_c_try_link "$LINENO"; then : 23636 ac_cv_lib_intl_gettext=yes 23637else 23638 ac_cv_lib_intl_gettext=no 23639fi 23640rm -f core conftest.err conftest.$ac_objext \ 23641 conftest$ac_exeext conftest.$ac_ext 23642LIBS=$ac_check_lib_save_LIBS 23643fi 23644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5 23645$as_echo "$ac_cv_lib_intl_gettext" >&6; } 23646if test "x$ac_cv_lib_intl_gettext" = xyes; then : 23647 cat >>confdefs.h <<_ACEOF 23648#define HAVE_LIBINTL 1 23649_ACEOF 23650 23651 LIBS="-lintl $LIBS" 23652 23653fi 23654 23655 for ac_func in vprintf 23656do : 23657 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 23658if test "x$ac_cv_func_vprintf" = xyes; then : 23659 cat >>confdefs.h <<_ACEOF 23660#define HAVE_VPRINTF 1 23661_ACEOF 23662 23663ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 23664if test "x$ac_cv_func__doprnt" = xyes; then : 23665 23666$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 23667 23668fi 23669 23670fi 23671done 23672 23673 23674 for ac_header in vfork.h 23675do : 23676 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 23677if test "x$ac_cv_header_vfork_h" = xyes; then : 23678 cat >>confdefs.h <<_ACEOF 23679#define HAVE_VFORK_H 1 23680_ACEOF 23681 23682fi 23683 23684done 23685 23686for ac_func in fork vfork 23687do : 23688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23689ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23690if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 23691 cat >>confdefs.h <<_ACEOF 23692#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23693_ACEOF 23694 23695fi 23696done 23697 23698if test "x$ac_cv_func_fork" = xyes; then 23699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 23700$as_echo_n "checking for working fork... " >&6; } 23701if ${ac_cv_func_fork_works+:} false; then : 23702 $as_echo_n "(cached) " >&6 23703else 23704 if test "$cross_compiling" = yes; then : 23705 ac_cv_func_fork_works=cross 23706else 23707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23708/* end confdefs.h. */ 23709$ac_includes_default 23710int 23711main () 23712{ 23713 23714 /* By Ruediger Kuhlmann. */ 23715 return fork () < 0; 23716 23717 ; 23718 return 0; 23719} 23720_ACEOF 23721if ac_fn_c_try_run "$LINENO"; then : 23722 ac_cv_func_fork_works=yes 23723else 23724 ac_cv_func_fork_works=no 23725fi 23726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23727 conftest.$ac_objext conftest.beam conftest.$ac_ext 23728fi 23729 23730fi 23731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 23732$as_echo "$ac_cv_func_fork_works" >&6; } 23733 23734else 23735 ac_cv_func_fork_works=$ac_cv_func_fork 23736fi 23737if test "x$ac_cv_func_fork_works" = xcross; then 23738 case $host in 23739 *-*-amigaos* | *-*-msdosdjgpp*) 23740 # Override, as these systems have only a dummy fork() stub 23741 ac_cv_func_fork_works=no 23742 ;; 23743 *) 23744 ac_cv_func_fork_works=yes 23745 ;; 23746 esac 23747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 23748$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 23749fi 23750ac_cv_func_vfork_works=$ac_cv_func_vfork 23751if test "x$ac_cv_func_vfork" = xyes; then 23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 23753$as_echo_n "checking for working vfork... " >&6; } 23754if ${ac_cv_func_vfork_works+:} false; then : 23755 $as_echo_n "(cached) " >&6 23756else 23757 if test "$cross_compiling" = yes; then : 23758 ac_cv_func_vfork_works=cross 23759else 23760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23761/* end confdefs.h. */ 23762/* Thanks to Paul Eggert for this test. */ 23763$ac_includes_default 23764#include <sys/wait.h> 23765#ifdef HAVE_VFORK_H 23766# include <vfork.h> 23767#endif 23768/* On some sparc systems, changes by the child to local and incoming 23769 argument registers are propagated back to the parent. The compiler 23770 is told about this with #include <vfork.h>, but some compilers 23771 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 23772 static variable whose address is put into a register that is 23773 clobbered by the vfork. */ 23774static void 23775#ifdef __cplusplus 23776sparc_address_test (int arg) 23777# else 23778sparc_address_test (arg) int arg; 23779#endif 23780{ 23781 static pid_t child; 23782 if (!child) { 23783 child = vfork (); 23784 if (child < 0) { 23785 perror ("vfork"); 23786 _exit(2); 23787 } 23788 if (!child) { 23789 arg = getpid(); 23790 write(-1, "", 0); 23791 _exit (arg); 23792 } 23793 } 23794} 23795 23796int 23797main () 23798{ 23799 pid_t parent = getpid (); 23800 pid_t child; 23801 23802 sparc_address_test (0); 23803 23804 child = vfork (); 23805 23806 if (child == 0) { 23807 /* Here is another test for sparc vfork register problems. This 23808 test uses lots of local variables, at least as many local 23809 variables as main has allocated so far including compiler 23810 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 23811 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 23812 reuse the register of parent for one of the local variables, 23813 since it will think that parent can't possibly be used any more 23814 in this routine. Assigning to the local variable will thus 23815 munge parent in the parent process. */ 23816 pid_t 23817 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 23818 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 23819 /* Convince the compiler that p..p7 are live; otherwise, it might 23820 use the same hardware register for all 8 local variables. */ 23821 if (p != p1 || p != p2 || p != p3 || p != p4 23822 || p != p5 || p != p6 || p != p7) 23823 _exit(1); 23824 23825 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 23826 from child file descriptors. If the child closes a descriptor 23827 before it execs or exits, this munges the parent's descriptor 23828 as well. Test for this by closing stdout in the child. */ 23829 _exit(close(fileno(stdout)) != 0); 23830 } else { 23831 int status; 23832 struct stat st; 23833 23834 while (wait(&status) != child) 23835 ; 23836 return ( 23837 /* Was there some problem with vforking? */ 23838 child < 0 23839 23840 /* Did the child fail? (This shouldn't happen.) */ 23841 || status 23842 23843 /* Did the vfork/compiler bug occur? */ 23844 || parent != getpid() 23845 23846 /* Did the file descriptor bug occur? */ 23847 || fstat(fileno(stdout), &st) != 0 23848 ); 23849 } 23850} 23851_ACEOF 23852if ac_fn_c_try_run "$LINENO"; then : 23853 ac_cv_func_vfork_works=yes 23854else 23855 ac_cv_func_vfork_works=no 23856fi 23857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23858 conftest.$ac_objext conftest.beam conftest.$ac_ext 23859fi 23860 23861fi 23862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 23863$as_echo "$ac_cv_func_vfork_works" >&6; } 23864 23865fi; 23866if test "x$ac_cv_func_fork_works" = xcross; then 23867 ac_cv_func_vfork_works=$ac_cv_func_vfork 23868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 23869$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 23870fi 23871 23872if test "x$ac_cv_func_vfork_works" = xyes; then 23873 23874$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 23875 23876else 23877 23878$as_echo "#define vfork fork" >>confdefs.h 23879 23880fi 23881if test "x$ac_cv_func_fork_works" = xyes; then 23882 23883$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 23884 23885fi 23886 23887 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \ 23888 strrchr strsignal fchmod fstat chmod 23889do : 23890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23891ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23892if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 23893 cat >>confdefs.h <<_ACEOF 23894#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23895_ACEOF 23896 23897fi 23898done 23899 23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 23901$as_echo_n "checking for a sed that does not truncate output... " >&6; } 23902if ${ac_cv_path_SED+:} false; then : 23903 $as_echo_n "(cached) " >&6 23904else 23905 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 23906 for ac_i in 1 2 3 4 5 6 7; do 23907 ac_script="$ac_script$as_nl$ac_script" 23908 done 23909 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 23910 { ac_script=; unset ac_script;} 23911 if test -z "$SED"; then 23912 ac_path_SED_found=false 23913 # Loop through the user's path and test for each of PROGNAME-LIST 23914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23915for as_dir in $PATH 23916do 23917 IFS=$as_save_IFS 23918 test -z "$as_dir" && as_dir=. 23919 for ac_prog in sed gsed; do 23920 for ac_exec_ext in '' $ac_executable_extensions; do 23921 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 23922 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 23923# Check for GNU ac_path_SED and select it if it is found. 23924 # Check for GNU $ac_path_SED 23925case `"$ac_path_SED" --version 2>&1` in 23926*GNU*) 23927 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 23928*) 23929 ac_count=0 23930 $as_echo_n 0123456789 >"conftest.in" 23931 while : 23932 do 23933 cat "conftest.in" "conftest.in" >"conftest.tmp" 23934 mv "conftest.tmp" "conftest.in" 23935 cp "conftest.in" "conftest.nl" 23936 $as_echo '' >> "conftest.nl" 23937 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 23938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 23939 as_fn_arith $ac_count + 1 && ac_count=$as_val 23940 if test $ac_count -gt ${ac_path_SED_max-0}; then 23941 # Best one so far, save it but keep looking for a better one 23942 ac_cv_path_SED="$ac_path_SED" 23943 ac_path_SED_max=$ac_count 23944 fi 23945 # 10*(2^10) chars as input seems more than enough 23946 test $ac_count -gt 10 && break 23947 done 23948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 23949esac 23950 23951 $ac_path_SED_found && break 3 23952 done 23953 done 23954 done 23955IFS=$as_save_IFS 23956 if test -z "$ac_cv_path_SED"; then 23957 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 23958 fi 23959else 23960 ac_cv_path_SED=$SED 23961fi 23962 23963fi 23964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 23965$as_echo "$ac_cv_path_SED" >&6; } 23966 SED="$ac_cv_path_SED" 23967 rm -f conftest.sed 23968 23969 while : 23970 do 23971 POSIX_SHELL=`which bash` 23972 test -x "$POSIX_SHELL" && break 23973 POSIX_SHELL=`which dash` 23974 test -x "$POSIX_SHELL" && break 23975 POSIX_SHELL=/usr/xpg4/bin/sh 23976 test -x "$POSIX_SHELL" && break 23977 POSIX_SHELL=`/bin/sh -c ' 23978 exec 2>/dev/null 23979 if ! true ; then exit 1 ; fi 23980 echo /bin/sh'` 23981 test -x "$POSIX_SHELL" && break 23982 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5 23983 done 23984 23985cat >>confdefs.h <<_ACEOF 23986#define POSIX_SHELL "${POSIX_SHELL}" 23987_ACEOF 23988 23989 23990 23991 23992 23993 LIBOPTS_BUILD_BLOCKED='' 23994 23995 23996 NEED_LIBOPTS_DIR='' 23997 23998 # Check whether --enable-local-libopts was given. 23999if test "${enable_local_libopts+set}" = set; then : 24000 enableval=$enable_local_libopts; 24001 if test x$enableval = xyes ; then 24002 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5 24003$as_echo "$as_me: Using supplied libopts tearoff" >&6;} 24004 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 24005 NEED_LIBOPTS_DIR=true 24006 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 24007 fi 24008fi 24009 24010 24011 # Check whether --enable-libopts-install was given. 24012if test "${enable_libopts_install+set}" = set; then : 24013 enableval=$enable_libopts_install; 24014fi 24015 24016 if test "X${enable_libopts_install}" = Xyes; then 24017 INSTALL_LIBOPTS_TRUE= 24018 INSTALL_LIBOPTS_FALSE='#' 24019else 24020 INSTALL_LIBOPTS_TRUE='#' 24021 INSTALL_LIBOPTS_FALSE= 24022fi 24023 24024 24025 if test -z "${NEED_LIBOPTS_DIR}" ; then 24026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5 24027$as_echo_n "checking whether autoopts-config can be found... " >&6; } 24028 24029# Check whether --with-autoopts-config was given. 24030if test "${with_autoopts_config+set}" = set; then : 24031 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config} 24032else 24033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5 24034$as_echo_n "checking whether autoopts-config is specified... " >&6; } 24035if ${lo_cv_with_autoopts_config+:} false; then : 24036 $as_echo_n "(cached) " >&6 24037else 24038 if autoopts-config --help 2>/dev/null 1>&2 24039 then lo_cv_with_autoopts_config=autoopts-config 24040 elif libopts-config --help 2>/dev/null 1>&2 24041 then lo_cv_with_autoopts_config=libopts-config 24042 else lo_cv_with_autoopts_config=no ; fi 24043fi 24044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5 24045$as_echo "$lo_cv_with_autoopts_config" >&6; } 24046 24047fi 24048 # end of AC_ARG_WITH 24049 24050 if ${lo_cv_test_autoopts+:} false; then : 24051 $as_echo_n "(cached) " >&6 24052else 24053 24054 if test -z "${lo_cv_with_autoopts_config}" \ 24055 -o X"${lo_cv_with_autoopts_config}" = Xno 24056 then 24057 if autoopts-config --help 2>/dev/null 1>&2 24058 then lo_cv_with_autoopts_config=autoopts-config 24059 elif libopts-config --help 2>/dev/null 1>&2 24060 then lo_cv_with_autoopts_config=libopts-config 24061 else lo_cv_with_autoopts_config=false ; fi 24062 fi 24063 lo_cv_test_autoopts=` 24064 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null 24065 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}" 24066 then lo_cv_test_autoopts=no ; fi 24067 24068fi 24069 # end of CACHE_VAL 24070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5 24071$as_echo "${lo_cv_test_autoopts}" >&6; } 24072 24073 if test "X${lo_cv_test_autoopts}" != Xno 24074 then 24075 LIBOPTS_LDADD="${lo_cv_test_autoopts}" 24076 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`" 24077 else 24078 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 24079 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 24080 NEED_LIBOPTS_DIR=true 24081 fi 24082 fi # end of if test -z "${NEED_LIBOPTS_DIR}" 24083 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then 24084 NEED_LIBOPTS_DIR='' 24085 fi 24086 if test -n "${NEED_LIBOPTS_DIR}"; then 24087 NEED_LIBOPTS_TRUE= 24088 NEED_LIBOPTS_FALSE='#' 24089else 24090 NEED_LIBOPTS_TRUE='#' 24091 NEED_LIBOPTS_FALSE= 24092fi 24093 24094 24095 24096 LIBOPTS_DIR=libopts 24097 24098 24099# end of AC_DEFUN of LIBOPTS_CHECK_COMMON 24100 24101 24102 if test -z "$NEED_LIBOPTS_TRUE"; then : 24103 24104 24105 24106 # Check to see if a reg expr header is specified. 24107 24108 24109# Check whether --with-regex-header was given. 24110if test "${with_regex_header+set}" = set; then : 24111 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header} 24112else 24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5 24114$as_echo_n "checking whether a reg expr header is specified... " >&6; } 24115if ${libopts_cv_with_regex_header+:} false; then : 24116 $as_echo_n "(cached) " >&6 24117else 24118 libopts_cv_with_regex_header=no 24119fi 24120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5 24121$as_echo "$libopts_cv_with_regex_header" >&6; } 24122 24123fi 24124 # end of AC_ARG_WITH 24125 if test "X${libopts_cv_with_regex_header}" != Xno 24126 then 24127 cat >>confdefs.h <<_ACEOF 24128#define REGEX_HEADER <${libopts_cv_with_regex_header}> 24129_ACEOF 24130 24131 else 24132 24133$as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h 24134 24135 fi 24136 24137 24138 24139 # Check to see if a working libregex can be found. 24140 24141 24142# Check whether --with-libregex was given. 24143if test "${with_libregex+set}" = set; then : 24144 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex} 24145else 24146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5 24147$as_echo_n "checking whether with-libregex was specified... " >&6; } 24148if ${libopts_cv_with_libregex_root+:} false; then : 24149 $as_echo_n "(cached) " >&6 24150else 24151 libopts_cv_with_libregex_root=no 24152fi 24153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5 24154$as_echo "$libopts_cv_with_libregex_root" >&6; } 24155 24156fi 24157 # end of AC_ARG_WITH libregex 24158 24159 if test "${with_libregex+set}" = set && \ 24160 test "X${withval}" = Xno 24161 then ## disabled by request 24162 libopts_cv_with_libregex_root=no 24163 libopts_cv_with_libregex_cflags=no 24164 libopts_cv_with_libregex_libs=no 24165 else 24166 24167 24168# Check whether --with-libregex-cflags was given. 24169if test "${with_libregex_cflags+set}" = set; then : 24170 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags} 24171else 24172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5 24173$as_echo_n "checking whether with-libregex-cflags was specified... " >&6; } 24174if ${libopts_cv_with_libregex_cflags+:} false; then : 24175 $as_echo_n "(cached) " >&6 24176else 24177 libopts_cv_with_libregex_cflags=no 24178fi 24179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5 24180$as_echo "$libopts_cv_with_libregex_cflags" >&6; } 24181 24182fi 24183 # end of AC_ARG_WITH libregex-cflags 24184 24185 24186# Check whether --with-libregex-libs was given. 24187if test "${with_libregex_libs+set}" = set; then : 24188 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs} 24189else 24190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5 24191$as_echo_n "checking whether with-libregex-libs was specified... " >&6; } 24192if ${libopts_cv_with_libregex_libs+:} false; then : 24193 $as_echo_n "(cached) " >&6 24194else 24195 libopts_cv_with_libregex_libs=no 24196fi 24197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5 24198$as_echo "$libopts_cv_with_libregex_libs" >&6; } 24199 24200fi 24201 # end of AC_ARG_WITH libregex-libs 24202 24203 case "X${libopts_cv_with_libregex_cflags}" in 24204 Xyes|Xno|X ) 24205 case "X${libopts_cv_with_libregex_root}" in 24206 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;; 24207 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;; 24208 esac 24209 esac 24210 case "X${libopts_cv_with_libregex_libs}" in 24211 Xyes|Xno|X ) 24212 case "X${libopts_cv_with_libregex_root}" in 24213 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;; 24214 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";; 24215 esac 24216 esac 24217 libopts_save_CPPFLAGS="${CPPFLAGS}" 24218 libopts_save_LIBS="${LIBS}" 24219 case "X${libopts_cv_with_libregex_cflags}" in 24220 Xyes|Xno|X ) 24221 libopts_cv_with_libregex_cflags="" ;; 24222 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;; 24223 esac 24224 case "X${libopts_cv_with_libregex_libs}" in 24225 Xyes|Xno|X ) 24226 libopts_cv_with_libregex_libs="" ;; 24227 * ) 24228 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;; 24229 esac 24230 LIBREGEX_CFLAGS="" 24231 LIBREGEX_LIBS="" 24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5 24233$as_echo_n "checking whether libregex functions properly... " >&6; } 24234 if ${libopts_cv_with_libregex+:} false; then : 24235 $as_echo_n "(cached) " >&6 24236else 24237 24238 if test "$cross_compiling" = yes; then : 24239 libopts_cv_with_libregex=no 24240else 24241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24242/* end confdefs.h. */ 24243#include <stdio.h> 24244#include <stdlib.h> 24245#include <sys/types.h> 24246#include REGEX_HEADER 24247static regex_t re; 24248void comp_re( char const* pzPat ) { 24249 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE ); 24250 if (res == 0) return; 24251 exit( res ); } 24252int main() { 24253 regmatch_t m[2]; 24254 comp_re( "^.*\$" ); 24255 comp_re( "()|no.*" ); 24256 comp_re( "." ); 24257 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1; 24258 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) { 24259 fputs( "error: regex -->.<-- did not match\n", stderr ); 24260 return 1; 24261 } 24262 return 0; } 24263_ACEOF 24264if ac_fn_c_try_run "$LINENO"; then : 24265 libopts_cv_with_libregex=yes 24266else 24267 libopts_cv_with_libregex=no 24268fi 24269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24270 conftest.$ac_objext conftest.beam conftest.$ac_ext 24271fi 24272 # end of AC_RUN_IFELSE 24273 24274fi 24275 # end of AC_CACHE_VAL for libopts_cv_with_libregex 24276 fi ## disabled by request 24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5 24278$as_echo "${libopts_cv_with_libregex}" >&6; } 24279 if test "X${libopts_cv_with_libregex}" != Xno 24280 then 24281 24282$as_echo "#define WITH_LIBREGEX 1" >>confdefs.h 24283 24284 else 24285 CPPFLAGS="${libopts_save_CPPFLAGS}" 24286 LIBS="${libopts_save_LIBS}" 24287 libopts_cv_with_libregex_root=no 24288libopts_cv_with_libregex_cflags=no 24289libopts_cv_with_libregex_libs=no 24290libopts_cv_with_libregex=no 24291 fi 24292 24293 24294 24295 # Check to see if pathfind(3) works. 24296 24297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5 24298$as_echo_n "checking whether pathfind(3) works... " >&6; } 24299 if ${libopts_cv_run_pathfind+:} false; then : 24300 $as_echo_n "(cached) " >&6 24301else 24302 24303 if test "$cross_compiling" = yes; then : 24304 libopts_cv_run_pathfind=no 24305 24306else 24307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24308/* end confdefs.h. */ 24309#include <string.h> 24310#include <stdlib.h> 24311int main (int argc, char** argv) { 24312 char* pz = pathfind( getenv( "PATH" ), "sh", "x" ); 24313 return (pz == 0) ? 1 : 0; 24314} 24315_ACEOF 24316if ac_fn_c_try_run "$LINENO"; then : 24317 libopts_cv_run_pathfind=yes 24318else 24319 libopts_cv_run_pathfind=no 24320fi 24321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24322 conftest.$ac_objext conftest.beam conftest.$ac_ext 24323fi 24324 # end of RUN_IFELSE 24325 24326fi 24327 # end of AC_CACHE_VAL for libopts_cv_run_pathfind 24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5 24329$as_echo "${libopts_cv_run_pathfind}" >&6; } 24330 if test "X${libopts_cv_run_pathfind}" != Xno 24331 then 24332 24333$as_echo "#define HAVE_PATHFIND 1" >>confdefs.h 24334 24335 fi 24336 24337 24338 24339 # Check to see if /dev/zero is readable device. 24340 24341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5 24342$as_echo_n "checking whether /dev/zero is readable device... " >&6; } 24343 if ${libopts_cv_test_dev_zero+:} false; then : 24344 $as_echo_n "(cached) " >&6 24345else 24346 24347 libopts_cv_test_dev_zero=`exec 2> /dev/null 24348dzero=\`ls -lL /dev/zero | egrep ^c......r\` 24349test -z "${dzero}" && exit 1 24350echo ${dzero}` 24351 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero" 24352 then libopts_cv_test_dev_zero=no 24353 fi 24354 24355fi 24356 # end of CACHE_VAL of libopts_cv_test_dev_zero 24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5 24358$as_echo "${libopts_cv_test_dev_zero}" >&6; } 24359 if test "X${libopts_cv_test_dev_zero}" != Xno 24360 then 24361 24362$as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h 24363 24364 fi 24365 24366 24367 24368 # Check to see if we have a functional realpath(3C). 24369 24370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5 24371$as_echo_n "checking whether we have a functional realpath(3C)... " >&6; } 24372 if ${libopts_cv_run_realpath+:} false; then : 24373 $as_echo_n "(cached) " >&6 24374else 24375 24376 if test "$cross_compiling" = yes; then : 24377 libopts_cv_run_realpath=no 24378 24379else 24380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24381/* end confdefs.h. */ 24382#include <limits.h> 24383#include <stdlib.h> 24384int main (int argc, char** argv) { 24385#ifndef PATH_MAX 24386choke me!! 24387#else 24388 char zPath[PATH_MAX+1]; 24389#endif 24390 char *pz = realpath(argv[0], zPath); 24391 return (pz == zPath) ? 0 : 1; 24392} 24393_ACEOF 24394if ac_fn_c_try_run "$LINENO"; then : 24395 libopts_cv_run_realpath=yes 24396else 24397 libopts_cv_run_realpath=no 24398fi 24399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24400 conftest.$ac_objext conftest.beam conftest.$ac_ext 24401fi 24402 # end of RUN_IFELSE 24403 24404fi 24405 # end of AC_CACHE_VAL for libopts_cv_run_realpath 24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5 24407$as_echo "${libopts_cv_run_realpath}" >&6; } 24408 if test "X${libopts_cv_run_realpath}" != Xno 24409 then 24410 24411$as_echo "#define HAVE_REALPATH 1" >>confdefs.h 24412 24413 fi 24414 24415 24416 24417 # Check to see if strftime() works. 24418 24419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5 24420$as_echo_n "checking whether strftime() works... " >&6; } 24421 if ${libopts_cv_run_strftime+:} false; then : 24422 $as_echo_n "(cached) " >&6 24423else 24424 24425 if test "$cross_compiling" = yes; then : 24426 libopts_cv_run_strftime=no 24427 24428else 24429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24430/* end confdefs.h. */ 24431#include <time.h> 24432#include <string.h> 24433char t_buf[ 64 ]; 24434int main() { 24435 static char const z[] = "Thursday Aug 28 240"; 24436 struct tm tm; 24437 tm.tm_sec = 36; /* seconds after the minute [0, 61] */ 24438 tm.tm_min = 44; /* minutes after the hour [0, 59] */ 24439 tm.tm_hour = 12; /* hour since midnight [0, 23] */ 24440 tm.tm_mday = 28; /* day of the month [1, 31] */ 24441 tm.tm_mon = 7; /* months since January [0, 11] */ 24442 tm.tm_year = 86; /* years since 1900 */ 24443 tm.tm_wday = 4; /* days since Sunday [0, 6] */ 24444 tm.tm_yday = 239; /* days since January 1 [0, 365] */ 24445 tm.tm_isdst = 1; /* flag for daylight savings time */ 24446 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm ); 24447 return (strcmp( t_buf, z ) != 0); } 24448_ACEOF 24449if ac_fn_c_try_run "$LINENO"; then : 24450 libopts_cv_run_strftime=yes 24451else 24452 libopts_cv_run_strftime=no 24453fi 24454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24455 conftest.$ac_objext conftest.beam conftest.$ac_ext 24456fi 24457 # end of RUN_IFELSE 24458 24459fi 24460 # end of AC_CACHE_VAL for libopts_cv_run_strftime 24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5 24462$as_echo "${libopts_cv_run_strftime}" >&6; } 24463 if test "X${libopts_cv_run_strftime}" != Xno 24464 then 24465 24466$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 24467 24468 fi 24469 24470 24471 24472 # Check to see if fopen accepts "b" mode. 24473 24474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5 24475$as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; } 24476 if ${libopts_cv_run_fopen_binary+:} false; then : 24477 $as_echo_n "(cached) " >&6 24478else 24479 24480 if test "$cross_compiling" = yes; then : 24481 libopts_cv_run_fopen_binary=no 24482 24483else 24484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24485/* end confdefs.h. */ 24486#include <stdio.h> 24487int main (int argc, char** argv) { 24488FILE* fp = fopen("conftest.$ac_ext", "rb"); 24489return (fp == NULL) ? 1 : fclose(fp); } 24490_ACEOF 24491if ac_fn_c_try_run "$LINENO"; then : 24492 libopts_cv_run_fopen_binary=yes 24493else 24494 libopts_cv_run_fopen_binary=no 24495fi 24496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24497 conftest.$ac_objext conftest.beam conftest.$ac_ext 24498fi 24499 # end of RUN_IFELSE 24500 24501fi 24502 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary 24503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5 24504$as_echo "${libopts_cv_run_fopen_binary}" >&6; } 24505 if test "X${libopts_cv_run_fopen_binary}" != Xno 24506 then 24507 24508$as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h 24509 24510 else 24511 24512$as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h 24513 24514 fi 24515 24516 24517 24518 # Check to see if fopen accepts "t" mode. 24519 24520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5 24521$as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; } 24522 if ${libopts_cv_run_fopen_text+:} false; then : 24523 $as_echo_n "(cached) " >&6 24524else 24525 24526 if test "$cross_compiling" = yes; then : 24527 libopts_cv_run_fopen_text=no 24528 24529else 24530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24531/* end confdefs.h. */ 24532#include <stdio.h> 24533int main (int argc, char** argv) { 24534FILE* fp = fopen("conftest.$ac_ext", "rt"); 24535return (fp == NULL) ? 1 : fclose(fp); } 24536_ACEOF 24537if ac_fn_c_try_run "$LINENO"; then : 24538 libopts_cv_run_fopen_text=yes 24539else 24540 libopts_cv_run_fopen_text=no 24541fi 24542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24543 conftest.$ac_objext conftest.beam conftest.$ac_ext 24544fi 24545 # end of RUN_IFELSE 24546 24547fi 24548 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text 24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5 24550$as_echo "${libopts_cv_run_fopen_text}" >&6; } 24551 if test "X${libopts_cv_run_fopen_text}" != Xno 24552 then 24553 24554$as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h 24555 24556 else 24557 24558$as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h 24559 24560 fi 24561 24562 24563 24564 # Check to see if not wanting optional option args. 24565 24566 # Check whether --enable-optional-args was given. 24567if test "${enable_optional_args+set}" = set; then : 24568 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args} 24569else 24570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5 24571$as_echo_n "checking whether not wanting optional option args... " >&6; } 24572if ${libopts_cv_enable_optional_args+:} false; then : 24573 $as_echo_n "(cached) " >&6 24574else 24575 libopts_cv_enable_optional_args=yes 24576fi 24577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5 24578$as_echo "$libopts_cv_enable_optional_args" >&6; } 24579 24580fi 24581 # end of AC_ARG_ENABLE 24582 if test "X${libopts_cv_enable_optional_args}" = Xno 24583 then 24584 24585$as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h 24586 24587 fi 24588 24589 24590 24591 24592 24593 fi 24594 ac_config_files="$ac_config_files libopts/Makefile" 24595 24596 # end of AC_DEFUN of LIBOPTS_CHECK 24597 24598 24599# From when we only used libevent for sntp: 24600#AM_COND_IF( 24601# [BUILD_SNTP], 24602# [NTP_LIBEVENT_CHECK], 24603# [NTP_LIBEVENT_CHECK_NOBUILD] 24604#) 24605 24606 24607 24608ntp_pkgconfig_min_version='0.15.0' 24609if test -n "$ac_tool_prefix"; then 24610 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24611set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24613$as_echo_n "checking for $ac_word... " >&6; } 24614if ${ac_cv_path_PKG_CONFIG+:} false; then : 24615 $as_echo_n "(cached) " >&6 24616else 24617 case $PKG_CONFIG in 24618 [\\/]* | ?:[\\/]*) 24619 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24620 ;; 24621 *) 24622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24623for as_dir in $PATH 24624do 24625 IFS=$as_save_IFS 24626 test -z "$as_dir" && as_dir=. 24627 for ac_exec_ext in '' $ac_executable_extensions; do 24628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24629 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24631 break 2 24632 fi 24633done 24634 done 24635IFS=$as_save_IFS 24636 24637 ;; 24638esac 24639fi 24640PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24641if test -n "$PKG_CONFIG"; then 24642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24643$as_echo "$PKG_CONFIG" >&6; } 24644else 24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24646$as_echo "no" >&6; } 24647fi 24648 24649 24650fi 24651if test -z "$ac_cv_path_PKG_CONFIG"; then 24652 ac_pt_PKG_CONFIG=$PKG_CONFIG 24653 # Extract the first word of "pkg-config", so it can be a program name with args. 24654set dummy pkg-config; ac_word=$2 24655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24656$as_echo_n "checking for $ac_word... " >&6; } 24657if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24658 $as_echo_n "(cached) " >&6 24659else 24660 case $ac_pt_PKG_CONFIG in 24661 [\\/]* | ?:[\\/]*) 24662 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24663 ;; 24664 *) 24665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24666for as_dir in $PATH 24667do 24668 IFS=$as_save_IFS 24669 test -z "$as_dir" && as_dir=. 24670 for ac_exec_ext in '' $ac_executable_extensions; do 24671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24672 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24674 break 2 24675 fi 24676done 24677 done 24678IFS=$as_save_IFS 24679 24680 ;; 24681esac 24682fi 24683ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24684if test -n "$ac_pt_PKG_CONFIG"; then 24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24686$as_echo "$ac_pt_PKG_CONFIG" >&6; } 24687else 24688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24689$as_echo "no" >&6; } 24690fi 24691 24692 if test "x$ac_pt_PKG_CONFIG" = x; then 24693 PKG_CONFIG="" 24694 else 24695 case $cross_compiling:$ac_tool_warned in 24696yes:) 24697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24699ac_tool_warned=yes ;; 24700esac 24701 PKG_CONFIG=$ac_pt_PKG_CONFIG 24702 fi 24703else 24704 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24705fi 24706 24707{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;} 24708{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 24709 24710case "$PKG_CONFIG" in 24711 /*) 24712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5 24713$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; } 24714 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 24715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24716$as_echo "yes" >&6; } 24717 else 24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24719$as_echo "no" >&6; } 24720 PKG_CONFIG="" 24721 fi 24722 ;; 24723esac 24724 24725 24726 24727 24728# Check whether --enable-local-libevent was given. 24729if test "${enable_local_libevent+set}" = set; then : 24730 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval 24731else 24732 ntp_use_local_libevent=${ntp_use_local_libevent-detect} 24733 24734fi 24735 24736 24737 24738 24739 24740 24741 24742 24743 24744 24745ntp_libevent_min_version=2 24746ntp_libevent_tearoff=libevent 24747 24748 24749 24750 24751case "$ntp_use_local_libevent" in 24752 yes) 24753 ;; 24754 *) # If we have (a good enough) pkg-config, see if it can find libevent 24755 case "$PKG_CONFIG" in 24756 /*) 24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5 24758$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; } 24759 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent 24760 then 24761 ntp_use_local_libevent=no 24762 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5 24763$as_echo "$as_me: Using the installed libevent" >&6;} 24764 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent` 24765 # HMS: I hope the following is accurate. 24766 # We don't need -levent, we only need -levent_core. 24767 # While we could grab only the -L stuff, there *might* be 24768 # other flags there we want. Originally we just removed -levent 24769 # but then somebody decided to install -levent-2.0 24770 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'` 24771 # So now we dance... 24772 LDADD_LIBEVENT= 24773 for i in `$PKG_CONFIG --libs libevent` 24774 do 24775 case "$i" in 24776 -levent*) ;; 24777 *) case "$LDADD_LIBEVENT" in 24778 '') LDADD_LIBEVENT="$i" ;; 24779 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;; 24780 esac 24781 ;; 24782 esac 24783 done 24784 case "$LIBISC_PTHREADS_NOTHREADS" in 24785 pthreads) 24786 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads" 24787 esac 24788 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core" 24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24790$as_echo "yes" >&6; } 24791 else 24792 ntp_use_local_libevent=yes 24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24794$as_echo "no" >&6; } 24795 fi 24796 ;; 24797 *) 24798 ntp_use_local_libevent=yes 24799 ;; 24800 esac 24801 ;; 24802esac 24803 24804case "$ntp_use_local_libevent" in 24805 yes) 24806 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5 24807$as_echo "$as_me: Using libevent tearoff" >&6;} 24808 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include" 24809 case "$LIBISC_PTHREADS_NOTHREADS" in 24810 pthreads) 24811 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 24812 ;; 24813 *) 24814 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 24815 esac 24816esac 24817 24818 if test "x$ntp_use_local_libevent" = "xyes"; then 24819 BUILD_LIBEVENT_TRUE= 24820 BUILD_LIBEVENT_FALSE='#' 24821else 24822 BUILD_LIBEVENT_TRUE='#' 24823 BUILD_LIBEVENT_FALSE= 24824fi 24825 24826 24827 24828 24829case "$ntp_libevent_tearoff" in 24830 libevent) 24831 ;; 24832 *) 24833 as_fn_error $? "ntp_libevent.m4 dir must be libevent, not $ntp_libevent_tearoff" "$LINENO" 5 24834 ;; 24835esac 24836 24837case "$ntp_use_local_libevent" in 24838 yes) 24839 ac_configure_args=" --disable-openssl${ac_configure_args}" 24840 ac_configure_args=" --disable-shared${ac_configure_args}" 24841 ac_configure_args=" --disable-libevent-regress${ac_configure_args}" 24842 ac_configure_args=" --disable-libevent-install${ac_configure_args}" 24843 ac_configure_args=" --enable-silent-rules${ac_configure_args}" 24844 ac_configure_args=" --enable-function-sections${ac_configure_args}" 24845 subdirs="$subdirs libevent" 24846 24847 ;; 24848 *) 24849 NTP_FORCE_LIBEVENT_DIST=libevent 24850 ;; 24851esac 24852 24853 24854 24855# Checks for libraries. 24856 24857 24858LIB_SYSLOG='' 24859 24860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5 24861$as_echo_n "checking for library containing openlog... " >&6; } 24862if ${ac_cv_search_openlog+:} false; then : 24863 $as_echo_n "(cached) " >&6 24864else 24865 ac_func_search_save_LIBS=$LIBS 24866cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24867/* end confdefs.h. */ 24868 24869/* Override any GCC internal prototype to avoid an error. 24870 Use char because int might match the return type of a GCC 24871 builtin and then its argument prototype would still apply. */ 24872#ifdef __cplusplus 24873extern "C" 24874#endif 24875char openlog (); 24876int 24877main () 24878{ 24879return openlog (); 24880 ; 24881 return 0; 24882} 24883_ACEOF 24884for ac_lib in '' gen syslog; do 24885 if test -z "$ac_lib"; then 24886 ac_res="none required" 24887 else 24888 ac_res=-l$ac_lib 24889 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24890 fi 24891 if ac_fn_c_try_link "$LINENO"; then : 24892 ac_cv_search_openlog=$ac_res 24893fi 24894rm -f core conftest.err conftest.$ac_objext \ 24895 conftest$ac_exeext 24896 if ${ac_cv_search_openlog+:} false; then : 24897 break 24898fi 24899done 24900if ${ac_cv_search_openlog+:} false; then : 24901 24902else 24903 ac_cv_search_openlog=no 24904fi 24905rm conftest.$ac_ext 24906LIBS=$ac_func_search_save_LIBS 24907fi 24908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5 24909$as_echo "$ac_cv_search_openlog" >&6; } 24910ac_res=$ac_cv_search_openlog 24911if test "$ac_res" != no; then : 24912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24913 case "$ac_cv_search_openlog" in 24914 'none required') ;; 24915 no) ;; 24916 *) LIB_SYSLOG="$ac_cv_search_openlog $LIB_SYSLOG" ;; 24917 esac 24918 24919fi 24920 24921 24922# Checks for header files. 24923for ac_header in netdb.h string.h strings.h syslog.h 24924do : 24925 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24926ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24927if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24928 cat >>confdefs.h <<_ACEOF 24929#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24930_ACEOF 24931 24932fi 24933 24934done 24935 24936 24937 24938for ac_header in sysexits.h 24939do : 24940 ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default" 24941if test "x$ac_cv_header_sysexits_h" = xyes; then : 24942 cat >>confdefs.h <<_ACEOF 24943#define HAVE_SYSEXITS_H 1 24944_ACEOF 24945 24946else 24947 24948 24949$as_echo "#define EX_OK 0" >>confdefs.h 24950 24951 24952$as_echo "#define EX_SOFTWARE 70" >>confdefs.h 24953 24954 24955fi 24956 24957done 24958 24959 24960 24961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5 24962$as_echo_n "checking for facilitynames in syslog.h... " >&6; } 24963if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then : 24964 $as_echo_n "(cached) " >&6 24965else 24966 24967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24968/* end confdefs.h. */ 24969 24970#define SYSLOG_NAMES 24971#include <stdlib.h> 24972#include <syslog.h> 24973 24974int 24975main () 24976{ 24977 void *fnames; fnames = facilitynames; 24978 ; 24979 return 0; 24980} 24981_ACEOF 24982if ac_fn_c_try_compile "$LINENO"; then : 24983 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes 24984else 24985 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no 24986fi 24987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24988fi 24989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5 24990$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; } 24991case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in 24992 yes) 24993 24994$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h 24995 24996 ;; 24997 no) 24998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5 24999$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;} 25000 ;; 25001 cross) 25002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5 25003$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;} 25004 ;; 25005esac 25006 25007 25008# Checks for typedefs, structures, and compiler characteristics. 25009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 25010$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 25011if ${ac_cv_header_stdbool_h+:} false; then : 25012 $as_echo_n "(cached) " >&6 25013else 25014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25015/* end confdefs.h. */ 25016 25017#include <stdbool.h> 25018#ifndef bool 25019 "error: bool is not defined" 25020#endif 25021#ifndef false 25022 "error: false is not defined" 25023#endif 25024#if false 25025 "error: false is not 0" 25026#endif 25027#ifndef true 25028 "error: true is not defined" 25029#endif 25030#if true != 1 25031 "error: true is not 1" 25032#endif 25033#ifndef __bool_true_false_are_defined 25034 "error: __bool_true_false_are_defined is not defined" 25035#endif 25036 25037 struct s { _Bool s: 1; _Bool t; } s; 25038 25039 char a[true == 1 ? 1 : -1]; 25040 char b[false == 0 ? 1 : -1]; 25041 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 25042 char d[(bool) 0.5 == true ? 1 : -1]; 25043 /* See body of main program for 'e'. */ 25044 char f[(_Bool) 0.0 == false ? 1 : -1]; 25045 char g[true]; 25046 char h[sizeof (_Bool)]; 25047 char i[sizeof s.t]; 25048 enum { j = false, k = true, l = false * true, m = true * 256 }; 25049 /* The following fails for 25050 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 25051 _Bool n[m]; 25052 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 25053 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 25054 /* Catch a bug in an HP-UX C compiler. See 25055 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 25056 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 25057 */ 25058 _Bool q = true; 25059 _Bool *pq = &q; 25060 25061int 25062main () 25063{ 25064 25065 bool e = &s; 25066 *pq |= q; 25067 *pq |= ! q; 25068 /* Refer to every declared value, to avoid compiler optimizations. */ 25069 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 25070 + !m + !n + !o + !p + !q + !pq); 25071 25072 ; 25073 return 0; 25074} 25075_ACEOF 25076if ac_fn_c_try_compile "$LINENO"; then : 25077 ac_cv_header_stdbool_h=yes 25078else 25079 ac_cv_header_stdbool_h=no 25080fi 25081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25082fi 25083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 25084$as_echo "$ac_cv_header_stdbool_h" >&6; } 25085ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 25086if test "x$ac_cv_type__Bool" = xyes; then : 25087 25088cat >>confdefs.h <<_ACEOF 25089#define HAVE__BOOL 1 25090_ACEOF 25091 25092 25093fi 25094 25095if test $ac_cv_header_stdbool_h = yes; then 25096 25097$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 25098 25099fi 25100 25101 25102 25103 25104 25105VER_SUFFIX= 25106 25107 25108 25109 25110# Check whether --with-crypto was given. 25111if test "${with_crypto+set}" = set; then : 25112 withval=$with_crypto; 25113fi 25114 25115 25116# Check whether --with-openssl-libdir was given. 25117if test "${with_openssl_libdir+set}" = set; then : 25118 withval=$with_openssl_libdir; 25119fi 25120 25121 25122# Check whether --with-openssl-incdir was given. 25123if test "${with_openssl_incdir+set}" = set; then : 25124 withval=$with_openssl_incdir; 25125fi 25126 25127 25128# Check whether --with-rpath was given. 25129if test "${with_rpath+set}" = set; then : 25130 withval=$with_rpath; 25131fi 25132 25133ntp_openssl=no 25134ntp_openssl_from_pkg_config=no 25135with_crypto=${with_crypto:-openssl,libcrypto} 25136case "$with_crypto" in 25137 yes) 25138 with_crypto=openssl,libcrypto 25139esac 25140case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in 25141 no:*) ;; 25142 *:notempty:notgiven:notgiven) 25143 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do 25144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5 25145$as_echo_n "checking pkg-config for $pkg... " >&6; } 25146 if $PKG_CONFIG --exists $pkg ; then 25147 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`" 25148 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`" 25149 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`" 25150 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`" 25151 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`" 25152 VER_SUFFIX=o 25153 ntp_openssl=yes 25154 ntp_openssl_from_pkg_config=yes 25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25156$as_echo "yes" >&6; } 25157 25158 break 25159 fi 25160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25161$as_echo "no" >&6; } 25162 done 25163esac 25164case "$with_crypto:$ntp_openssl" in 25165 no:*) ;; 25166 *:no) 25167 need_dash_r= 25168 need_dash_Wlrpath= 25169 case "${with_rpath-notgiven}" in 25170 yes) 25171 # Lame - what to do if we need -Wl... but not -R? 25172 need_dash_r=1 25173 ;; 25174 notgiven) 25175 case "$host" in 25176 *-*-linux*) 25177 # This may really only be true for gcc 25178 need_dash_Wlrpath=1 25179 ;; 25180 *-*-netbsd*) 25181 need_dash_r=1 25182 ;; 25183 *-*-solaris*) 25184 need_dash_r=1 25185 ;; 25186 esac 25187 ;; 25188 esac 25189 25190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5 25191$as_echo_n "checking for openssl library directory... " >&6; } 25192 with_openssl_libdir=${with_openssl_libdir-notgiven} 25193 case "$with_openssl_libdir" in 25194 notgiven) 25195 case "$build" in 25196 $host) 25197 with_openssl_libdir=default 25198 ;; 25199 *) 25200 with_openssl_libdir=no 25201 ;; 25202 esac 25203 esac 25204 case "$with_openssl_libdir" in 25205 default) 25206 # Look in: 25207 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib" 25208 with_openssl_libdir="$with_openssl_libdir /usr/local/lib" 25209 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib" 25210 esac 25211 case "$with_openssl_libdir" in 25212 no) 25213 ;; 25214 *) # Look for libcrypto.a and libssl.a: 25215 for i in $with_openssl_libdir no 25216 do 25217 case "$host" in 25218 *-*-darwin*) 25219 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break 25220 ;; 25221 *) 25222 test -f $i/libcrypto.so -a -f $i/libssl.so && break 25223 test -f $i/libcrypto.a -a -f $i/libssl.a && break 25224 ;; 25225 esac 25226 done 25227 openssl_libdir=$i 25228 ;; 25229 esac 25230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5 25231$as_echo "$openssl_libdir" >&6; } 25232 case "$openssl_libdir" in 25233 no) 25234 openssl_libdir= 25235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5 25236$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;} 25237 esac 25238 25239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5 25240$as_echo_n "checking for openssl include directory... " >&6; } 25241 with_openssl_incdir=${with_openssl_incdir-notgiven} 25242 case "$with_openssl_incdir" in 25243 notgiven) 25244 # Look in: 25245 with_openssl_incdir="/usr/include /usr/sfw/include" 25246 with_openssl_incdir="$with_openssl_incdir /usr/local/include" 25247 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include" 25248 esac 25249 case "$with_openssl_incdir" in 25250 no) 25251 ;; 25252 *) # look for openssl/evp.h: 25253 for i in $with_openssl_incdir no 25254 do 25255 test -f $i/openssl/evp.h && break 25256 done 25257 openssl_incdir=$i 25258 ;; 25259 esac 25260 { i=; unset i;} 25261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5 25262$as_echo "$openssl_incdir" >&6; } 25263 case "$openssl_incdir" in 25264 no) 25265 openssl_incdir= 25266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5 25267$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;} 25268 esac 25269 if test -z "$openssl_libdir" -o -z "$openssl_incdir" 25270 then 25271 ntp_openssl=no 25272 else 25273 ntp_openssl=yes 25274 VER_SUFFIX=o 25275 fi 25276 case "$ntp_openssl" in 25277 yes) 25278 # We have OpenSSL inc/lib dirs - use them. 25279 case "$openssl_incdir" in 25280 /usr/include) 25281 ;; 25282 *) 25283 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir" 25284 ;; 25285 esac 25286 case "$openssl_libdir" in 25287 /usr/lib) 25288 ;; 25289 *) 25290 LDADD_NTP="$LDADD_NTP -L$openssl_libdir" 25291 case "$need_dash_r" in 25292 1) 25293 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir" 25294 esac 25295 case "$need_dash_Wlrpath" in 25296 1) 25297 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir" 25298 esac 25299 ;; 25300 esac 25301 LDADD_NTP="$LDADD_NTP -lcrypto" 25302 esac 25303esac 25304 25305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5 25306$as_echo_n "checking if we will use crypto... " >&6; } 25307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5 25308$as_echo "$ntp_openssl" >&6; } 25309 25310case "$ntp_openssl" in 25311 yes) 25312 25313$as_echo "#define OPENSSL /**/" >>confdefs.h 25314 25315 case "$VER_SUFFIX" in 25316 *o*) ;; 25317 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;; 25318 esac 25319 ;; 25320esac 25321 25322NTPO_SAVED_CPPFLAGS="$CPPFLAGS" 25323CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP" 25324NTPO_SAVED_LIBS="$LIBS" 25325 25326# 25327# check for linking with -lcrypto failure, and try -lcrypto -lz. 25328# Helps m68k-atari-mint 25329# 25330case "$ntp_openssl:$ntp_openssl_from_pkg_config" in 25331 yes:no) 25332 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 25333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5 25334$as_echo_n "checking if linking with -lcrypto alone works... " >&6; } 25335if ${ntp_cv_bare_lcrypto+:} false; then : 25336 $as_echo_n "(cached) " >&6 25337else 25338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25339/* end confdefs.h. */ 25340 25341 #include "openssl/err.h" 25342 #include "openssl/evp.h" 25343 25344int 25345main () 25346{ 25347 25348 ERR_load_crypto_strings(); 25349 OpenSSL_add_all_algorithms(); 25350 25351 25352 ; 25353 return 0; 25354} 25355_ACEOF 25356if ac_fn_c_try_link "$LINENO"; then : 25357 ntp_cv_bare_lcrypto=yes 25358else 25359 ntp_cv_bare_lcrypto=no 25360 25361fi 25362rm -f core conftest.err conftest.$ac_objext \ 25363 conftest$ac_exeext conftest.$ac_ext 25364 25365fi 25366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5 25367$as_echo "$ntp_cv_bare_lcrypto" >&6; } 25368 case "$ntp_cv_bare_lcrypto" in 25369 no) 25370 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz" 25371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5 25372$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; } 25373if ${ntp_cv_lcrypto_lz+:} false; then : 25374 $as_echo_n "(cached) " >&6 25375else 25376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25377/* end confdefs.h. */ 25378 25379 #include "openssl/err.h" 25380 #include "openssl/evp.h" 25381 25382int 25383main () 25384{ 25385 25386 ERR_load_crypto_strings(); 25387 OpenSSL_add_all_algorithms(); 25388 25389 25390 ; 25391 return 0; 25392} 25393_ACEOF 25394if ac_fn_c_try_link "$LINENO"; then : 25395 ntp_cv_lcrypto_lz=yes 25396else 25397 ntp_cv_lcrypto_lz=no 25398 25399fi 25400rm -f core conftest.err conftest.$ac_objext \ 25401 conftest$ac_exeext conftest.$ac_ext 25402 25403fi 25404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5 25405$as_echo "$ntp_cv_lcrypto_lz" >&6; } 25406 case "$ntp_cv_lcrypto_lz" in 25407 yes) 25408 LDADD_NTP="$LDADD_NTP -lz" 25409 esac 25410 esac 25411esac 25412 25413# 25414# Older OpenSSL headers have a number of callback prototypes inside 25415# other function prototypes which trigger copious warnings with gcc's 25416# -Wstrict-prototypes, which is included in -Wall. 25417# 25418# An example: 25419# 25420# int i2d_RSA_NET(const RSA *a, unsigned char **pp, 25421# int (*cb)(), int sgckey); 25422# ^^^^^^^^^^^ 25423# 25424# 25425# 25426openssl_triggers_warnings=unknown 25427NTPO_SAVED_CFLAGS="$CFLAGS" 25428 25429case "$ntp_openssl:$GCC" in 25430 yes:yes) 25431 CFLAGS="$CFLAGS -Werror" 25432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25433/* end confdefs.h. */ 25434 25435 25436int 25437main () 25438{ 25439 25440 /* see if -Werror breaks gcc */ 25441 25442 25443 ; 25444 return 0; 25445} 25446_ACEOF 25447if ac_fn_c_try_compile "$LINENO"; then : 25448 gcc_handles_Werror=yes 25449else 25450 gcc_handles_Werror=no 25451 25452fi 25453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25454 case "$gcc_handles_Werror" in 25455 no) 25456 # if this gcc doesn't do -Werror go ahead and use 25457 # -Wstrict-prototypes. 25458 openssl_triggers_warnings=yes 25459 ;; 25460 yes) 25461 CFLAGS="$CFLAGS -Wstrict-prototypes" 25462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25463/* end confdefs.h. */ 25464 25465 #include "openssl/asn1_mac.h" 25466 #include "openssl/bn.h" 25467 #include "openssl/err.h" 25468 #include "openssl/evp.h" 25469 #include "openssl/pem.h" 25470 #include "openssl/rand.h" 25471 #include "openssl/x509v3.h" 25472 25473int 25474main () 25475{ 25476 25477 /* empty body */ 25478 25479 25480 ; 25481 return 0; 25482} 25483_ACEOF 25484if ac_fn_c_try_compile "$LINENO"; then : 25485 openssl_triggers_warnings=no 25486else 25487 openssl_triggers_warnings=yes 25488 25489fi 25490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25491 esac 25492 case "$openssl_triggers_warnings" in 25493 yes) 25494 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes" 25495 ;; 25496 *) 25497 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 25498 esac 25499 ;; 25500 no:yes) 25501 # gcc without OpenSSL 25502 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 25503esac 25504 25505CFLAGS="$NTPO_SAVED_CFLAGS" 25506CPPFLAGS="$NTPO_SAVED_CPPFLAGS" 25507LIBS="$NTPO_SAVED_LIBS" 25508{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;} 25509{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;} 25510{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;} 25511{ openssl_triggers_warnings=; unset openssl_triggers_warnings;} 25512{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;} 25513 25514 25515 25516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 25517$as_echo_n "checking for struct sockaddr_storage... " >&6; } 25518if ${ntp_cv_sockaddr_storage+:} false; then : 25519 $as_echo_n "(cached) " >&6 25520else 25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25522/* end confdefs.h. */ 25523 25524 #ifdef HAVE_SYS_TYPES_H 25525 # include <sys/types.h> 25526 #endif 25527 #ifdef HAVE_SYS_SOCKET_H 25528 # include <sys/socket.h> 25529 #endif 25530 #ifdef HAVE_NETINET_IN_H 25531 # include <netinet/in.h> 25532 #endif 25533 25534int 25535main () 25536{ 25537 25538 struct sockaddr_storage n; 25539 25540 25541 ; 25542 return 0; 25543} 25544_ACEOF 25545if ac_fn_c_try_compile "$LINENO"; then : 25546 ntp_cv_sockaddr_storage=yes 25547else 25548 ntp_cv_sockaddr_storage=no 25549 25550fi 25551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25552 25553fi 25554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5 25555$as_echo "$ntp_cv_sockaddr_storage" >&6; } 25556case "$ntp_cv_sockaddr_storage" in 25557 yes) 25558 25559$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 25560 25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5 25562$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; } 25563if ${ntp_cv_have___ss_family+:} false; then : 25564 $as_echo_n "(cached) " >&6 25565else 25566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25567/* end confdefs.h. */ 25568 25569 #ifdef HAVE_SYS_TYPES_H 25570 # include <sys/types.h> 25571 #endif 25572 #ifdef HAVE_SYS_SOCKET_H 25573 # include <sys/socket.h> 25574 #endif 25575 #ifdef HAVE_NETINET_IN_H 25576 # include <netinet/in.h> 25577 #endif 25578 25579int 25580main () 25581{ 25582 25583 struct sockaddr_storage s; 25584 s.__ss_family = 1; 25585 25586 25587 ; 25588 return 0; 25589} 25590_ACEOF 25591if ac_fn_c_try_compile "$LINENO"; then : 25592 ntp_cv_have___ss_family=yes 25593else 25594 ntp_cv_have___ss_family=no 25595 25596fi 25597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25598 25599fi 25600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5 25601$as_echo "$ntp_cv_have___ss_family" >&6; } 25602 case "$ntp_cv_have___ss_family" in 25603 yes) 25604 25605$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 25606 25607 esac 25608 25609esac 25610 25611 25612# 25613# Look for in_port_t. 25614# 25615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5 25616$as_echo_n "checking for in_port_t... " >&6; } 25617if ${isc_cv_have_in_port_t+:} false; then : 25618 $as_echo_n "(cached) " >&6 25619else 25620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25621/* end confdefs.h. */ 25622 25623 #include <sys/types.h> 25624 #include <netinet/in.h> 25625 25626int 25627main () 25628{ 25629 25630 in_port_t port = 25; 25631 return (0); 25632 25633 25634 ; 25635 return 0; 25636} 25637_ACEOF 25638if ac_fn_c_try_compile "$LINENO"; then : 25639 isc_cv_have_in_port_t=yes 25640else 25641 isc_cv_have_in_port_t=no 25642 25643fi 25644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25645 25646fi 25647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5 25648$as_echo "$isc_cv_have_in_port_t" >&6; } 25649case "$isc_cv_have_in_port_t" in 25650 no) 25651 25652$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h 25653 25654esac 25655 25656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5 25657$as_echo_n "checking type of socklen arg for getsockname()... " >&6; } 25658if ${ntp_cv_getsockname_socklen_type+:} false; then : 25659 $as_echo_n "(cached) " >&6 25660else 25661 25662 getsockname_socklen_type_found=no 25663 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do 25664 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do 25665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25666/* end confdefs.h. */ 25667 25668 #ifdef HAVE_SYS_TYPES_H 25669 # include <sys/types.h> 25670 #endif 25671 #ifdef HAVE_SYS_SOCKET_H 25672 # include <sys/socket.h> 25673 #endif 25674 25675int 25676main () 25677{ 25678 25679 extern 25680 getsockname(int, $getsockname_arg2, 25681 $ntp_cv_getsockname_socklen_type *); 25682 25683 25684 ; 25685 return 0; 25686} 25687_ACEOF 25688if ac_fn_c_try_compile "$LINENO"; then : 25689 getsockname_socklen_type_found=yes ; break 2 25690fi 25691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25692 done 25693 done 25694 case "$getsockname_socklen_type_found" in 25695 no) 25696 ntp_cv_getsockname_socklen_type='socklen_t' 25697 esac 25698 { getsockname_arg2=; unset getsockname_arg2;} 25699 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;} 25700 25701 25702fi 25703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5 25704$as_echo "$ntp_cv_getsockname_socklen_type" >&6; } 25705 25706cat >>confdefs.h <<_ACEOF 25707#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type 25708_ACEOF 25709 25710 25711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5 25712$as_echo_n "checking struct sockaddr for sa_len... " >&6; } 25713if ${isc_cv_platform_havesalen+:} false; then : 25714 $as_echo_n "(cached) " >&6 25715else 25716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25717/* end confdefs.h. */ 25718 25719 #include <sys/types.h> 25720 #include <sys/socket.h> 25721 25722int 25723main () 25724{ 25725 25726 extern struct sockaddr *ps; 25727 return ps->sa_len; 25728 25729 25730 ; 25731 return 0; 25732} 25733_ACEOF 25734if ac_fn_c_try_compile "$LINENO"; then : 25735 isc_cv_platform_havesalen=yes 25736else 25737 isc_cv_platform_havesalen=no 25738 25739fi 25740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25741 25742fi 25743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5 25744$as_echo "$isc_cv_platform_havesalen" >&6; } 25745case "$isc_cv_platform_havesalen" in 25746 yes) 25747 25748$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h 25749 25750esac 25751 25752# Check whether --enable-ipv6 was given. 25753if test "${enable_ipv6+set}" = set; then : 25754 enableval=$enable_ipv6; 25755fi 25756 25757 25758case "$enable_ipv6" in 25759 yes|''|autodetect) 25760 case "$host" in 25761 powerpc-ibm-aix4*) 25762 ;; 25763 *) 25764 25765$as_echo "#define WANT_IPV6 1" >>confdefs.h 25766 25767 ;; 25768 esac 25769 ;; 25770 no) 25771 ;; 25772esac 25773 25774 25775case "$host" in 25776 *-*-darwin*) 25777 25778$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h 25779 25780esac 25781 25782 25783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 25784$as_echo_n "checking for IPv6 structures... " >&6; } 25785if ${isc_cv_found_ipv6+:} false; then : 25786 $as_echo_n "(cached) " >&6 25787else 25788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25789/* end confdefs.h. */ 25790 25791 #include <sys/types.h> 25792 #include <sys/socket.h> 25793 #include <netinet/in.h> 25794 25795int 25796main () 25797{ 25798 25799 struct sockaddr_in6 sin6; 25800 25801 25802 ; 25803 return 0; 25804} 25805_ACEOF 25806if ac_fn_c_try_compile "$LINENO"; then : 25807 isc_cv_found_ipv6=yes 25808else 25809 isc_cv_found_ipv6=no 25810 25811fi 25812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25813 25814fi 25815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5 25816$as_echo "$isc_cv_found_ipv6" >&6; } 25817 25818# 25819# See whether IPv6 support is provided via a Kame add-on. 25820# This is done before other IPv6 linking tests so LIBS is properly set. 25821# 25822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5 25823$as_echo_n "checking for Kame IPv6 support... " >&6; } 25824 25825# Check whether --with-kame was given. 25826if test "${with_kame+set}" = set; then : 25827 withval=$with_kame; use_kame="$withval" 25828else 25829 use_kame="no" 25830 25831fi 25832 25833case "$use_kame" in 25834 no) 25835 ;; 25836 yes) 25837 kame_path=/usr/local/v6 25838 ;; 25839 *) 25840 kame_path="$use_kame" 25841 ;; 25842esac 25843case "$use_kame" in 25844 no) 25845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25846$as_echo "no" >&6; } 25847 ;; 25848 *) 25849 if test -f $kame_path/lib/libinet6.a; then 25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5 25851$as_echo "$kame_path/lib/libinet6.a" >&6; } 25852 LIBS="-L$kame_path/lib -linet6 $LIBS" 25853 else 25854 as_fn_error $? "$kame_path/lib/libinet6.a not found. 25855 25856Please choose the proper path with the following command: 25857 25858 configure --with-kame=PATH 25859" "$LINENO" 5 25860 fi 25861 ;; 25862esac 25863 25864# 25865# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 25866# Including it on Kame-using platforms is very bad, though, because 25867# Kame uses #error against direct inclusion. So include it on only 25868# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 25869# This is done before the in6_pktinfo check because that's what 25870# netinet6/in6.h is needed for. 25871# 25872case "$host" in 25873 *-bsdi4.[01]*) 25874 25875$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h 25876 25877 isc_netinet6in6_hack="#include <netinet6/in6.h>" 25878 ;; 25879 *) 25880 isc_netinet6in6_hack="" 25881 ;; 25882esac 25883 25884# 25885# This is similar to the netinet6/in6.h issue. 25886# 25887case "$host" in 25888 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 25889 25890$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h 25891 25892 isc_netinetin6_hack="#include <netinet/in6.h>" 25893 ;; 25894 *) 25895 isc_netinetin6_hack="" 25896 ;; 25897esac 25898 25899 25900case "$isc_cv_found_ipv6" in 25901 yes) 25902 25903$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h 25904 25905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5 25906$as_echo_n "checking for in6_pktinfo... " >&6; } 25907if ${isc_cv_have_in6_pktinfo+:} false; then : 25908 $as_echo_n "(cached) " >&6 25909else 25910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25911/* end confdefs.h. */ 25912 25913 #include <sys/types.h> 25914 #include <sys/socket.h> 25915 #include <netinet/in.h> 25916 $isc_netinetin6_hack 25917 $isc_netinet6in6_hack 25918 25919int 25920main () 25921{ 25922 25923 struct in6_pktinfo xyzzy; 25924 25925 25926 ; 25927 return 0; 25928} 25929_ACEOF 25930if ac_fn_c_try_compile "$LINENO"; then : 25931 isc_cv_have_in6_pktinfo=yes 25932else 25933 isc_cv_have_in6_pktinfo=no 25934 25935fi 25936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25937 25938fi 25939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5 25940$as_echo "$isc_cv_have_in6_pktinfo" >&6; } 25941 case "$isc_cv_have_in6_pktinfo" in 25942 yes) 25943 25944$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h 25945 25946 esac 25947 25948 25949 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead? 25950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5 25951$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; } 25952if ${isc_cv_have_sin6_scope_id+:} false; then : 25953 $as_echo_n "(cached) " >&6 25954else 25955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25956/* end confdefs.h. */ 25957 25958 #include <sys/types.h> 25959 #include <sys/socket.h> 25960 #include <netinet/in.h> 25961 $isc_netinetin6_hack 25962 $isc_netinet6in6_hack 25963 25964int 25965main () 25966{ 25967 25968 struct sockaddr_in6 xyzzy; 25969 xyzzy.sin6_scope_id = 0; 25970 25971 25972 ; 25973 return 0; 25974} 25975_ACEOF 25976if ac_fn_c_try_compile "$LINENO"; then : 25977 isc_cv_have_sin6_scope_id=yes 25978else 25979 isc_cv_have_sin6_scope_id=no 25980 25981fi 25982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25983 25984fi 25985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5 25986$as_echo "$isc_cv_have_sin6_scope_id" >&6; } 25987 25988 case "$isc_cv_have_sin6_scope_id" in 25989 yes) 25990 25991$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h 25992 25993 esac 25994esac 25995 25996 25997# We need this check run even without isc_cv_found_ipv6=yes 25998 25999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5 26000$as_echo_n "checking for in6addr_any... " >&6; } 26001if ${isc_cv_in6addr_any_links+:} false; then : 26002 $as_echo_n "(cached) " >&6 26003else 26004 26005 SAVED_LIBS="$LIBS" 26006 LIBS="$LDADD_LIBNTP $LIBS" 26007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26008/* end confdefs.h. */ 26009$ac_includes_default 26010 #include <sys/socket.h> 26011 #include <netinet/in.h> 26012 $isc_netinetin6_hack 26013 $isc_netinet6in6_hack 26014 26015int 26016main () 26017{ 26018 26019 printf("%x", in6addr_any.s6_addr[15]); 26020 26021 26022 ; 26023 return 0; 26024} 26025_ACEOF 26026if ac_fn_c_try_link "$LINENO"; then : 26027 isc_cv_in6addr_any_links=yes 26028else 26029 isc_cv_in6addr_any_links=no 26030 26031fi 26032rm -f core conftest.err conftest.$ac_objext \ 26033 conftest$ac_exeext conftest.$ac_ext 26034 LIBS="$SAVED_LIBS" 26035 { SAVED_LIBS=; unset SAVED_LIBS;} 26036 26037 26038fi 26039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5 26040$as_echo "$isc_cv_in6addr_any_links" >&6; } 26041 26042case "$isc_cv_in6addr_any_links" in 26043 no) 26044 26045$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h 26046 26047esac 26048 26049 26050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 26051$as_echo_n "checking for struct if_laddrconf... " >&6; } 26052if ${isc_cv_struct_if_laddrconf+:} false; then : 26053 $as_echo_n "(cached) " >&6 26054else 26055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26056/* end confdefs.h. */ 26057 26058 #include <sys/types.h> 26059 #include <net/if6.h> 26060 26061int 26062main () 26063{ 26064 26065 struct if_laddrconf a; 26066 26067 26068 ; 26069 return 0; 26070} 26071_ACEOF 26072if ac_fn_c_try_compile "$LINENO"; then : 26073 isc_cv_struct_if_laddrconf=yes 26074else 26075 isc_cv_struct_if_laddrconf=no 26076 26077fi 26078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26079 26080fi 26081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5 26082$as_echo "$isc_cv_struct_if_laddrconf" >&6; } 26083 26084case "$isc_cv_struct_if_laddrconf" in 26085 yes) 26086 26087$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h 26088 26089esac 26090 26091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 26092$as_echo_n "checking for struct if_laddrreq... " >&6; } 26093if ${isc_cv_struct_if_laddrreq+:} false; then : 26094 $as_echo_n "(cached) " >&6 26095else 26096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26097/* end confdefs.h. */ 26098 26099 #include <sys/types.h> 26100 #include <net/if6.h> 26101 26102int 26103main () 26104{ 26105 26106 struct if_laddrreq a; 26107 26108 26109 ; 26110 return 0; 26111} 26112_ACEOF 26113if ac_fn_c_try_compile "$LINENO"; then : 26114 isc_cv_struct_if_laddrreq=yes 26115else 26116 isc_cv_struct_if_laddrreq=no 26117 26118fi 26119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26120 26121fi 26122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5 26123$as_echo "$isc_cv_struct_if_laddrreq" >&6; } 26124 26125case "$isc_cv_struct_if_laddrreq" in 26126 yes) 26127 26128$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h 26129 26130esac 26131 26132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5 26133$as_echo_n "checking for multicast IP support... " >&6; } 26134if ${ntp_cv_multicast+:} false; then : 26135 $as_echo_n "(cached) " >&6 26136else 26137 26138 ntp_cv_multicast=no 26139 case "$host" in 26140 i386-sequent-sysv4) 26141 ;; 26142 *) 26143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26144/* end confdefs.h. */ 26145 26146 #ifdef HAVE_NETINET_IN_H 26147 # include <netinet/in.h> 26148 #endif 26149 26150int 26151main () 26152{ 26153 26154 struct ip_mreq ipmr; 26155 ipmr.imr_interface.s_addr = 0; 26156 26157 26158 ; 26159 return 0; 26160} 26161_ACEOF 26162if ac_fn_c_try_compile "$LINENO"; then : 26163 ntp_cv_multicast=yes 26164fi 26165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26166 ;; 26167 esac 26168 26169 26170fi 26171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5 26172$as_echo "$ntp_cv_multicast" >&6; } 26173case "$ntp_cv_multicast" in 26174 yes) 26175 26176$as_echo "#define MCAST 1" >>confdefs.h 26177 26178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5 26179$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; } 26180if ${ntp_cv_typeof_ip_multicast_loop+:} false; then : 26181 $as_echo_n "(cached) " >&6 26182else 26183 26184 case "$host" in 26185 *-*-netbsd*|*-*-*linux*) 26186 ntp_cv_typeof_ip_multicast_loop=u_int 26187 ;; 26188 *) 26189 ntp_cv_typeof_ip_multicast_loop=u_char 26190 ;; 26191 esac 26192 26193 26194fi 26195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5 26196$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; } 26197 26198cat >>confdefs.h <<_ACEOF 26199#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop 26200_ACEOF 26201 26202esac 26203 26204# Check whether --enable-getifaddrs was given. 26205if test "${enable_getifaddrs+set}" = set; then : 26206 enableval=$enable_getifaddrs; want_getifaddrs="$enableval" 26207else 26208 want_getifaddrs="yes" 26209 26210fi 26211 26212 26213case $want_getifaddrs in 26214 glibc) 26215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5 26216$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;} 26217esac 26218case $want_getifaddrs in 26219 no) 26220 ;; 26221 *) 26222 SAVED_LIBS="$LIBS" 26223 LIBS="$LDADD_LIBNTP $LIBS" 26224 for ac_func in getifaddrs 26225do : 26226 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 26227if test "x$ac_cv_func_getifaddrs" = xyes; then : 26228 cat >>confdefs.h <<_ACEOF 26229#define HAVE_GETIFADDRS 1 26230_ACEOF 26231 26232fi 26233done 26234 26235 LIBS="$SAVED_LIBS" 26236 { SAVED_LIBS=; unset SAVED_LIBS;} 26237 ;; 26238esac 26239 26240# 26241# Check for if_nametoindex() for IPv6 scoped addresses support 26242# 26243case "$host" in 26244 *-hp-hpux*) 26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5 26246$as_echo_n "checking for library containing if_nametoindex... " >&6; } 26247if ${ac_cv_search_if_nametoindex+:} false; then : 26248 $as_echo_n "(cached) " >&6 26249else 26250 ac_func_search_save_LIBS=$LIBS 26251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26252/* end confdefs.h. */ 26253 26254/* Override any GCC internal prototype to avoid an error. 26255 Use char because int might match the return type of a GCC 26256 builtin and then its argument prototype would still apply. */ 26257#ifdef __cplusplus 26258extern "C" 26259#endif 26260char if_nametoindex (); 26261int 26262main () 26263{ 26264return if_nametoindex (); 26265 ; 26266 return 0; 26267} 26268_ACEOF 26269for ac_lib in '' ipv6; do 26270 if test -z "$ac_lib"; then 26271 ac_res="none required" 26272 else 26273 ac_res=-l$ac_lib 26274 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26275 fi 26276 if ac_fn_c_try_link "$LINENO"; then : 26277 ac_cv_search_if_nametoindex=$ac_res 26278fi 26279rm -f core conftest.err conftest.$ac_objext \ 26280 conftest$ac_exeext 26281 if ${ac_cv_search_if_nametoindex+:} false; then : 26282 break 26283fi 26284done 26285if ${ac_cv_search_if_nametoindex+:} false; then : 26286 26287else 26288 ac_cv_search_if_nametoindex=no 26289fi 26290rm conftest.$ac_ext 26291LIBS=$ac_func_search_save_LIBS 26292fi 26293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5 26294$as_echo "$ac_cv_search_if_nametoindex" >&6; } 26295ac_res=$ac_cv_search_if_nametoindex 26296if test "$ac_res" != no; then : 26297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26298 26299fi 26300 26301esac 26302SAVED_LIBS="$LIBS" 26303LIBS="$LDADD_LIBNTP $LIBS" 26304for ac_func in if_nametoindex 26305do : 26306 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 26307if test "x$ac_cv_func_if_nametoindex" = xyes; then : 26308 cat >>confdefs.h <<_ACEOF 26309#define HAVE_IF_NAMETOINDEX 1 26310_ACEOF 26311 26312fi 26313done 26314 26315LIBS="$SAVED_LIBS" 26316{ SAVED_LIBS=; unset SAVED_LIBS;} 26317case "$ac_cv_func_if_nametoindex" in 26318 yes) 26319 26320$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h 26321 26322esac 26323 26324 26325 26326### 26327 26328# Hacks 26329# these need work if we're to move libntp under sntp 26330 26331$as_echo "#define HAVE_NO_NICE 1" >>confdefs.h 26332 26333 26334$as_echo "#define HAVE_TERMIOS 1" >>confdefs.h 26335 26336 26337# Checks for library functions. 26338for ac_func in socket 26339do : 26340 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 26341if test "x$ac_cv_func_socket" = xyes; then : 26342 cat >>confdefs.h <<_ACEOF 26343#define HAVE_SOCKET 1 26344_ACEOF 26345 26346fi 26347done 26348 26349 26350# HMS: if we don't find c++ we should not look for gtest. 26351ac_ext=cpp 26352ac_cpp='$CXXCPP $CPPFLAGS' 26353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26356if test -z "$CXX"; then 26357 if test -n "$CCC"; then 26358 CXX=$CCC 26359 else 26360 if test -n "$ac_tool_prefix"; then 26361 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 26362 do 26363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 26364set dummy $ac_tool_prefix$ac_prog; ac_word=$2 26365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26366$as_echo_n "checking for $ac_word... " >&6; } 26367if ${ac_cv_prog_CXX+:} false; then : 26368 $as_echo_n "(cached) " >&6 26369else 26370 if test -n "$CXX"; then 26371 ac_cv_prog_CXX="$CXX" # Let the user override the test. 26372else 26373as_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26380 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 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 26388fi 26389fi 26390CXX=$ac_cv_prog_CXX 26391if test -n "$CXX"; then 26392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 26393$as_echo "$CXX" >&6; } 26394else 26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26396$as_echo "no" >&6; } 26397fi 26398 26399 26400 test -n "$CXX" && break 26401 done 26402fi 26403if test -z "$CXX"; then 26404 ac_ct_CXX=$CXX 26405 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 26406do 26407 # Extract the first word of "$ac_prog", so it can be a program name with args. 26408set dummy $ac_prog; ac_word=$2 26409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26410$as_echo_n "checking for $ac_word... " >&6; } 26411if ${ac_cv_prog_ac_ct_CXX+:} false; then : 26412 $as_echo_n "(cached) " >&6 26413else 26414 if test -n "$ac_ct_CXX"; then 26415 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 26416else 26417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26418for as_dir in $PATH 26419do 26420 IFS=$as_save_IFS 26421 test -z "$as_dir" && as_dir=. 26422 for ac_exec_ext in '' $ac_executable_extensions; do 26423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26424 ac_cv_prog_ac_ct_CXX="$ac_prog" 26425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26426 break 2 26427 fi 26428done 26429 done 26430IFS=$as_save_IFS 26431 26432fi 26433fi 26434ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 26435if test -n "$ac_ct_CXX"; then 26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 26437$as_echo "$ac_ct_CXX" >&6; } 26438else 26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26440$as_echo "no" >&6; } 26441fi 26442 26443 26444 test -n "$ac_ct_CXX" && break 26445done 26446 26447 if test "x$ac_ct_CXX" = x; then 26448 CXX="g++" 26449 else 26450 case $cross_compiling:$ac_tool_warned in 26451yes:) 26452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26454ac_tool_warned=yes ;; 26455esac 26456 CXX=$ac_ct_CXX 26457 fi 26458fi 26459 26460 fi 26461fi 26462# Provide some information about the compiler. 26463$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 26464set X $ac_compile 26465ac_compiler=$2 26466for ac_option in --version -v -V -qversion; do 26467 { { ac_try="$ac_compiler $ac_option >&5" 26468case "(($ac_try" in 26469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26470 *) ac_try_echo=$ac_try;; 26471esac 26472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 26473$as_echo "$ac_try_echo"; } >&5 26474 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 26475 ac_status=$? 26476 if test -s conftest.err; then 26477 sed '10a\ 26478... rest of stderr output deleted ... 26479 10q' conftest.err >conftest.er1 26480 cat conftest.er1 >&5 26481 fi 26482 rm -f conftest.er1 conftest.err 26483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26484 test $ac_status = 0; } 26485done 26486 26487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 26488$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 26489if ${ac_cv_cxx_compiler_gnu+:} false; then : 26490 $as_echo_n "(cached) " >&6 26491else 26492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26493/* end confdefs.h. */ 26494 26495int 26496main () 26497{ 26498#ifndef __GNUC__ 26499 choke me 26500#endif 26501 26502 ; 26503 return 0; 26504} 26505_ACEOF 26506if ac_fn_cxx_try_compile "$LINENO"; then : 26507 ac_compiler_gnu=yes 26508else 26509 ac_compiler_gnu=no 26510fi 26511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26512ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 26513 26514fi 26515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 26516$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 26517if test $ac_compiler_gnu = yes; then 26518 GXX=yes 26519else 26520 GXX= 26521fi 26522ac_test_CXXFLAGS=${CXXFLAGS+set} 26523ac_save_CXXFLAGS=$CXXFLAGS 26524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 26525$as_echo_n "checking whether $CXX accepts -g... " >&6; } 26526if ${ac_cv_prog_cxx_g+:} false; then : 26527 $as_echo_n "(cached) " >&6 26528else 26529 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 26530 ac_cxx_werror_flag=yes 26531 ac_cv_prog_cxx_g=no 26532 CXXFLAGS="-g" 26533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26534/* end confdefs.h. */ 26535 26536int 26537main () 26538{ 26539 26540 ; 26541 return 0; 26542} 26543_ACEOF 26544if ac_fn_cxx_try_compile "$LINENO"; then : 26545 ac_cv_prog_cxx_g=yes 26546else 26547 CXXFLAGS="" 26548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26549/* end confdefs.h. */ 26550 26551int 26552main () 26553{ 26554 26555 ; 26556 return 0; 26557} 26558_ACEOF 26559if ac_fn_cxx_try_compile "$LINENO"; then : 26560 26561else 26562 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 26563 CXXFLAGS="-g" 26564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26565/* end confdefs.h. */ 26566 26567int 26568main () 26569{ 26570 26571 ; 26572 return 0; 26573} 26574_ACEOF 26575if ac_fn_cxx_try_compile "$LINENO"; then : 26576 ac_cv_prog_cxx_g=yes 26577fi 26578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26579fi 26580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26581fi 26582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26583 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 26584fi 26585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 26586$as_echo "$ac_cv_prog_cxx_g" >&6; } 26587if test "$ac_test_CXXFLAGS" = set; then 26588 CXXFLAGS=$ac_save_CXXFLAGS 26589elif test $ac_cv_prog_cxx_g = yes; then 26590 if test "$GXX" = yes; then 26591 CXXFLAGS="-g -O2" 26592 else 26593 CXXFLAGS="-g" 26594 fi 26595else 26596 if test "$GXX" = yes; then 26597 CXXFLAGS="-O2" 26598 else 26599 CXXFLAGS= 26600 fi 26601fi 26602ac_ext=c 26603ac_cpp='$CPP $CPPFLAGS' 26604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26606ac_compiler_gnu=$ac_cv_c_compiler_gnu 26607 26608depcc="$CXX" am_compiler_list= 26609 26610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 26611$as_echo_n "checking dependency style of $depcc... " >&6; } 26612if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 26613 $as_echo_n "(cached) " >&6 26614else 26615 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 26616 # We make a subdir and do the tests there. Otherwise we can end up 26617 # making bogus files that we don't know about and never remove. For 26618 # instance it was reported that on HP-UX the gcc test will end up 26619 # making a dummy file named `D' -- because `-MD' means `put the output 26620 # in D'. 26621 mkdir conftest.dir 26622 # Copy depcomp to subdir because otherwise we won't find it if we're 26623 # using a relative directory. 26624 cp "$am_depcomp" conftest.dir 26625 cd conftest.dir 26626 # We will build objects and dependencies in a subdirectory because 26627 # it helps to detect inapplicable dependency modes. For instance 26628 # both Tru64's cc and ICC support -MD to output dependencies as a 26629 # side effect of compilation, but ICC will put the dependencies in 26630 # the current directory while Tru64 will put them in the object 26631 # directory. 26632 mkdir sub 26633 26634 am_cv_CXX_dependencies_compiler_type=none 26635 if test "$am_compiler_list" = ""; then 26636 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 26637 fi 26638 am__universal=false 26639 case " $depcc " in #( 26640 *\ -arch\ *\ -arch\ *) am__universal=true ;; 26641 esac 26642 26643 for depmode in $am_compiler_list; do 26644 # Setup a source with many dependencies, because some compilers 26645 # like to wrap large dependency lists on column 80 (with \), and 26646 # we should not choose a depcomp mode which is confused by this. 26647 # 26648 # We need to recreate these files for each test, as the compiler may 26649 # overwrite some of them when testing with obscure command lines. 26650 # This happens at least with the AIX C compiler. 26651 : > sub/conftest.c 26652 for i in 1 2 3 4 5 6; do 26653 echo '#include "conftst'$i'.h"' >> sub/conftest.c 26654 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 26655 # Solaris 8's {/usr,}/bin/sh. 26656 touch sub/conftst$i.h 26657 done 26658 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 26659 26660 # We check with `-c' and `-o' for the sake of the "dashmstdout" 26661 # mode. It turns out that the SunPro C++ compiler does not properly 26662 # handle `-M -o', and we need to detect this. Also, some Intel 26663 # versions had trouble with output in subdirs 26664 am__obj=sub/conftest.${OBJEXT-o} 26665 am__minus_obj="-o $am__obj" 26666 case $depmode in 26667 gcc) 26668 # This depmode causes a compiler race in universal mode. 26669 test "$am__universal" = false || continue 26670 ;; 26671 nosideeffect) 26672 # after this tag, mechanisms are not by side-effect, so they'll 26673 # only be used when explicitly requested 26674 if test "x$enable_dependency_tracking" = xyes; then 26675 continue 26676 else 26677 break 26678 fi 26679 ;; 26680 msvisualcpp | msvcmsys) 26681 # This compiler won't grok `-c -o', but also, the minuso test has 26682 # not run yet. These depmodes are late enough in the game, and 26683 # so weak that their functioning should not be impacted. 26684 am__obj=conftest.${OBJEXT-o} 26685 am__minus_obj= 26686 ;; 26687 none) break ;; 26688 esac 26689 if depmode=$depmode \ 26690 source=sub/conftest.c object=$am__obj \ 26691 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 26692 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 26693 >/dev/null 2>conftest.err && 26694 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 26695 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 26696 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 26697 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 26698 # icc doesn't choke on unknown options, it will just issue warnings 26699 # or remarks (even with -Werror). So we grep stderr for any message 26700 # that says an option was ignored or not supported. 26701 # When given -MP, icc 7.0 and 7.1 complain thusly: 26702 # icc: Command line warning: ignoring option '-M'; no argument required 26703 # The diagnosis changed in icc 8.0: 26704 # icc: Command line remark: option '-MP' not supported 26705 if (grep 'ignoring option' conftest.err || 26706 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 26707 am_cv_CXX_dependencies_compiler_type=$depmode 26708 break 26709 fi 26710 fi 26711 done 26712 26713 cd .. 26714 rm -rf conftest.dir 26715else 26716 am_cv_CXX_dependencies_compiler_type=none 26717fi 26718 26719fi 26720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 26721$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 26722CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 26723 26724 if 26725 test "x$enable_dependency_tracking" != xno \ 26726 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 26727 am__fastdepCXX_TRUE= 26728 am__fastdepCXX_FALSE='#' 26729else 26730 am__fastdepCXX_TRUE='#' 26731 am__fastdepCXX_FALSE= 26732fi 26733 26734 26735 26736 26737func_stripname_cnf () 26738{ 26739 case ${2} in 26740 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 26741 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 26742 esac 26743} # func_stripname_cnf 26744 26745 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 26746 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 26747 (test "X$CXX" != "Xg++"))) ; then 26748 ac_ext=cpp 26749ac_cpp='$CXXCPP $CPPFLAGS' 26750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 26754$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 26755if test -z "$CXXCPP"; then 26756 if ${ac_cv_prog_CXXCPP+:} false; then : 26757 $as_echo_n "(cached) " >&6 26758else 26759 # Double quotes because CXXCPP needs to be expanded 26760 for CXXCPP in "$CXX -E" "/lib/cpp" 26761 do 26762 ac_preproc_ok=false 26763for ac_cxx_preproc_warn_flag in '' yes 26764do 26765 # Use a header file that comes with gcc, so configuring glibc 26766 # with a fresh cross-compiler works. 26767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26768 # <limits.h> exists even on freestanding compilers. 26769 # On the NeXT, cc -E runs the code through the compiler's parser, 26770 # not just through cpp. "Syntax error" is here to catch this case. 26771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26772/* end confdefs.h. */ 26773#ifdef __STDC__ 26774# include <limits.h> 26775#else 26776# include <assert.h> 26777#endif 26778 Syntax error 26779_ACEOF 26780if ac_fn_cxx_try_cpp "$LINENO"; then : 26781 26782else 26783 # Broken: fails on valid input. 26784continue 26785fi 26786rm -f conftest.err conftest.i conftest.$ac_ext 26787 26788 # OK, works on sane cases. Now check whether nonexistent headers 26789 # can be detected and how. 26790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26791/* end confdefs.h. */ 26792#include <ac_nonexistent.h> 26793_ACEOF 26794if ac_fn_cxx_try_cpp "$LINENO"; then : 26795 # Broken: success on invalid input. 26796continue 26797else 26798 # Passes both tests. 26799ac_preproc_ok=: 26800break 26801fi 26802rm -f conftest.err conftest.i conftest.$ac_ext 26803 26804done 26805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 26806rm -f conftest.i conftest.err conftest.$ac_ext 26807if $ac_preproc_ok; then : 26808 break 26809fi 26810 26811 done 26812 ac_cv_prog_CXXCPP=$CXXCPP 26813 26814fi 26815 CXXCPP=$ac_cv_prog_CXXCPP 26816else 26817 ac_cv_prog_CXXCPP=$CXXCPP 26818fi 26819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 26820$as_echo "$CXXCPP" >&6; } 26821ac_preproc_ok=false 26822for ac_cxx_preproc_warn_flag in '' yes 26823do 26824 # Use a header file that comes with gcc, so configuring glibc 26825 # with a fresh cross-compiler works. 26826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26827 # <limits.h> exists even on freestanding compilers. 26828 # On the NeXT, cc -E runs the code through the compiler's parser, 26829 # not just through cpp. "Syntax error" is here to catch this case. 26830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26831/* end confdefs.h. */ 26832#ifdef __STDC__ 26833# include <limits.h> 26834#else 26835# include <assert.h> 26836#endif 26837 Syntax error 26838_ACEOF 26839if ac_fn_cxx_try_cpp "$LINENO"; then : 26840 26841else 26842 # Broken: fails on valid input. 26843continue 26844fi 26845rm -f conftest.err conftest.i conftest.$ac_ext 26846 26847 # OK, works on sane cases. Now check whether nonexistent headers 26848 # can be detected and how. 26849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26850/* end confdefs.h. */ 26851#include <ac_nonexistent.h> 26852_ACEOF 26853if ac_fn_cxx_try_cpp "$LINENO"; then : 26854 # Broken: success on invalid input. 26855continue 26856else 26857 # Passes both tests. 26858ac_preproc_ok=: 26859break 26860fi 26861rm -f conftest.err conftest.i conftest.$ac_ext 26862 26863done 26864# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 26865rm -f conftest.i conftest.err conftest.$ac_ext 26866if $ac_preproc_ok; then : 26867 26868else 26869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26871as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 26872See \`config.log' for more details" "$LINENO" 5; } 26873fi 26874 26875ac_ext=c 26876ac_cpp='$CPP $CPPFLAGS' 26877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26879ac_compiler_gnu=$ac_cv_c_compiler_gnu 26880 26881else 26882 _lt_caught_CXX_error=yes 26883fi 26884 26885ac_ext=cpp 26886ac_cpp='$CXXCPP $CPPFLAGS' 26887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26890 26891archive_cmds_need_lc_CXX=no 26892allow_undefined_flag_CXX= 26893always_export_symbols_CXX=no 26894archive_expsym_cmds_CXX= 26895compiler_needs_object_CXX=no 26896export_dynamic_flag_spec_CXX= 26897hardcode_direct_CXX=no 26898hardcode_direct_absolute_CXX=no 26899hardcode_libdir_flag_spec_CXX= 26900hardcode_libdir_flag_spec_ld_CXX= 26901hardcode_libdir_separator_CXX= 26902hardcode_minus_L_CXX=no 26903hardcode_shlibpath_var_CXX=unsupported 26904hardcode_automatic_CXX=no 26905inherit_rpath_CXX=no 26906module_cmds_CXX= 26907module_expsym_cmds_CXX= 26908link_all_deplibs_CXX=unknown 26909old_archive_cmds_CXX=$old_archive_cmds 26910reload_flag_CXX=$reload_flag 26911reload_cmds_CXX=$reload_cmds 26912no_undefined_flag_CXX= 26913whole_archive_flag_spec_CXX= 26914enable_shared_with_static_runtimes_CXX=no 26915 26916# Source file extension for C++ test sources. 26917ac_ext=cpp 26918 26919# Object file extension for compiled C++ test sources. 26920objext=o 26921objext_CXX=$objext 26922 26923# No sense in running all these tests if we already determined that 26924# the CXX compiler isn't working. Some variables (like enable_shared) 26925# are currently assumed to apply to all compilers on this platform, 26926# and will be corrupted by setting them based on a non-working compiler. 26927if test "$_lt_caught_CXX_error" != yes; then 26928 # Code to be used in simple compile tests 26929 lt_simple_compile_test_code="int some_variable = 0;" 26930 26931 # Code to be used in simple link tests 26932 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 26933 26934 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 26935 26936 26937 26938 26939 26940 26941# If no C compiler was specified, use CC. 26942LTCC=${LTCC-"$CC"} 26943 26944# If no C compiler flags were specified, use CFLAGS. 26945LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 26946 26947# Allow CC to be a program name with arguments. 26948compiler=$CC 26949 26950 26951 # save warnings/boilerplate of simple test code 26952 ac_outfile=conftest.$ac_objext 26953echo "$lt_simple_compile_test_code" >conftest.$ac_ext 26954eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 26955_lt_compiler_boilerplate=`cat conftest.err` 26956$RM conftest* 26957 26958 ac_outfile=conftest.$ac_objext 26959echo "$lt_simple_link_test_code" >conftest.$ac_ext 26960eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 26961_lt_linker_boilerplate=`cat conftest.err` 26962$RM -r conftest* 26963 26964 26965 # Allow CC to be a program name with arguments. 26966 lt_save_CC=$CC 26967 lt_save_CFLAGS=$CFLAGS 26968 lt_save_LD=$LD 26969 lt_save_GCC=$GCC 26970 GCC=$GXX 26971 lt_save_with_gnu_ld=$with_gnu_ld 26972 lt_save_path_LD=$lt_cv_path_LD 26973 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 26974 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 26975 else 26976 $as_unset lt_cv_prog_gnu_ld 26977 fi 26978 if test -n "${lt_cv_path_LDCXX+set}"; then 26979 lt_cv_path_LD=$lt_cv_path_LDCXX 26980 else 26981 $as_unset lt_cv_path_LD 26982 fi 26983 test -z "${LDCXX+set}" || LD=$LDCXX 26984 CC=${CXX-"c++"} 26985 CFLAGS=$CXXFLAGS 26986 compiler=$CC 26987 compiler_CXX=$CC 26988 for cc_temp in $compiler""; do 26989 case $cc_temp in 26990 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 26991 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 26992 \-*) ;; 26993 *) break;; 26994 esac 26995done 26996cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 26997 26998 26999 if test -n "$compiler"; then 27000 # We don't want -fno-exception when compiling C++ code, so set the 27001 # no_builtin_flag separately 27002 if test "$GXX" = yes; then 27003 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 27004 else 27005 lt_prog_compiler_no_builtin_flag_CXX= 27006 fi 27007 27008 if test "$GXX" = yes; then 27009 # Set up default GNU C++ configuration 27010 27011 27012 27013# Check whether --with-gnu-ld was given. 27014if test "${with_gnu_ld+set}" = set; then : 27015 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 27016else 27017 with_gnu_ld=no 27018fi 27019 27020ac_prog=ld 27021if test "$GCC" = yes; then 27022 # Check if gcc -print-prog-name=ld gives a path. 27023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 27024$as_echo_n "checking for ld used by $CC... " >&6; } 27025 case $host in 27026 *-*-mingw*) 27027 # gcc leaves a trailing carriage return which upsets mingw 27028 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 27029 *) 27030 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 27031 esac 27032 case $ac_prog in 27033 # Accept absolute paths. 27034 [\\/]* | ?:[\\/]*) 27035 re_direlt='/[^/][^/]*/\.\./' 27036 # Canonicalize the pathname of ld 27037 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 27038 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 27039 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 27040 done 27041 test -z "$LD" && LD="$ac_prog" 27042 ;; 27043 "") 27044 # If it fails, then pretend we aren't using GCC. 27045 ac_prog=ld 27046 ;; 27047 *) 27048 # If it is relative, then search for the first ld in PATH. 27049 with_gnu_ld=unknown 27050 ;; 27051 esac 27052elif test "$with_gnu_ld" = yes; then 27053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 27054$as_echo_n "checking for GNU ld... " >&6; } 27055else 27056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 27057$as_echo_n "checking for non-GNU ld... " >&6; } 27058fi 27059if ${lt_cv_path_LD+:} false; then : 27060 $as_echo_n "(cached) " >&6 27061else 27062 if test -z "$LD"; then 27063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 27064 for ac_dir in $PATH; do 27065 IFS="$lt_save_ifs" 27066 test -z "$ac_dir" && ac_dir=. 27067 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 27068 lt_cv_path_LD="$ac_dir/$ac_prog" 27069 # Check to see if the program is GNU ld. I'd rather use --version, 27070 # but apparently some variants of GNU ld only accept -v. 27071 # Break only if it was the GNU/non-GNU ld that we prefer. 27072 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 27073 *GNU* | *'with BFD'*) 27074 test "$with_gnu_ld" != no && break 27075 ;; 27076 *) 27077 test "$with_gnu_ld" != yes && break 27078 ;; 27079 esac 27080 fi 27081 done 27082 IFS="$lt_save_ifs" 27083else 27084 lt_cv_path_LD="$LD" # Let the user override the test with a path. 27085fi 27086fi 27087 27088LD="$lt_cv_path_LD" 27089if test -n "$LD"; then 27090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 27091$as_echo "$LD" >&6; } 27092else 27093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27094$as_echo "no" >&6; } 27095fi 27096test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 27097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 27098$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 27099if ${lt_cv_prog_gnu_ld+:} false; then : 27100 $as_echo_n "(cached) " >&6 27101else 27102 # I'd rather use --version here, but apparently some GNU lds only accept -v. 27103case `$LD -v 2>&1 </dev/null` in 27104*GNU* | *'with BFD'*) 27105 lt_cv_prog_gnu_ld=yes 27106 ;; 27107*) 27108 lt_cv_prog_gnu_ld=no 27109 ;; 27110esac 27111fi 27112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 27113$as_echo "$lt_cv_prog_gnu_ld" >&6; } 27114with_gnu_ld=$lt_cv_prog_gnu_ld 27115 27116 27117 27118 27119 27120 27121 27122 # Check if GNU C++ uses GNU ld as the underlying linker, since the 27123 # archiving commands below assume that GNU ld is being used. 27124 if test "$with_gnu_ld" = yes; then 27125 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 27126 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 27127 27128 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 27129 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 27130 27131 # If archive_cmds runs LD, not CC, wlarc should be empty 27132 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 27133 # investigate it a little bit more. (MM) 27134 wlarc='${wl}' 27135 27136 # ancient GNU ld didn't support --whole-archive et. al. 27137 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 27138 $GREP 'no-whole-archive' > /dev/null; then 27139 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 27140 else 27141 whole_archive_flag_spec_CXX= 27142 fi 27143 else 27144 with_gnu_ld=no 27145 wlarc= 27146 27147 # A generic and very simple default shared library creation 27148 # command for GNU C++ for the case where it uses the native 27149 # linker, instead of GNU ld. If possible, this setting should 27150 # overridden to take advantage of the native linker features on 27151 # the platform it is being used on. 27152 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 27153 fi 27154 27155 # Commands to make compiler produce verbose output that lists 27156 # what "hidden" libraries, object files and flags are used when 27157 # linking a shared library. 27158 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 27159 27160 else 27161 GXX=no 27162 with_gnu_ld=no 27163 wlarc= 27164 fi 27165 27166 # PORTME: fill in a description of your system's C++ link characteristics 27167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 27168$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 27169 ld_shlibs_CXX=yes 27170 case $host_os in 27171 aix3*) 27172 # FIXME: insert proper C++ library support 27173 ld_shlibs_CXX=no 27174 ;; 27175 aix[4-9]*) 27176 if test "$host_cpu" = ia64; then 27177 # On IA64, the linker does run time linking by default, so we don't 27178 # have to do anything special. 27179 aix_use_runtimelinking=no 27180 exp_sym_flag='-Bexport' 27181 no_entry_flag="" 27182 else 27183 aix_use_runtimelinking=no 27184 27185 # Test if we are trying to use run time linking or normal 27186 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 27187 # need to do runtime linking. 27188 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 27189 for ld_flag in $LDFLAGS; do 27190 case $ld_flag in 27191 *-brtl*) 27192 aix_use_runtimelinking=yes 27193 break 27194 ;; 27195 esac 27196 done 27197 ;; 27198 esac 27199 27200 exp_sym_flag='-bexport' 27201 no_entry_flag='-bnoentry' 27202 fi 27203 27204 # When large executables or shared objects are built, AIX ld can 27205 # have problems creating the table of contents. If linking a library 27206 # or program results in "error TOC overflow" add -mminimal-toc to 27207 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 27208 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 27209 27210 archive_cmds_CXX='' 27211 hardcode_direct_CXX=yes 27212 hardcode_direct_absolute_CXX=yes 27213 hardcode_libdir_separator_CXX=':' 27214 link_all_deplibs_CXX=yes 27215 file_list_spec_CXX='${wl}-f,' 27216 27217 if test "$GXX" = yes; then 27218 case $host_os in aix4.[012]|aix4.[012].*) 27219 # We only want to do this on AIX 4.2 and lower, the check 27220 # below for broken collect2 doesn't work under 4.3+ 27221 collect2name=`${CC} -print-prog-name=collect2` 27222 if test -f "$collect2name" && 27223 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 27224 then 27225 # We have reworked collect2 27226 : 27227 else 27228 # We have old collect2 27229 hardcode_direct_CXX=unsupported 27230 # It fails to find uninstalled libraries when the uninstalled 27231 # path is not listed in the libpath. Setting hardcode_minus_L 27232 # to unsupported forces relinking 27233 hardcode_minus_L_CXX=yes 27234 hardcode_libdir_flag_spec_CXX='-L$libdir' 27235 hardcode_libdir_separator_CXX= 27236 fi 27237 esac 27238 shared_flag='-shared' 27239 if test "$aix_use_runtimelinking" = yes; then 27240 shared_flag="$shared_flag "'${wl}-G' 27241 fi 27242 else 27243 # not using gcc 27244 if test "$host_cpu" = ia64; then 27245 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 27246 # chokes on -Wl,-G. The following line is correct: 27247 shared_flag='-G' 27248 else 27249 if test "$aix_use_runtimelinking" = yes; then 27250 shared_flag='${wl}-G' 27251 else 27252 shared_flag='${wl}-bM:SRE' 27253 fi 27254 fi 27255 fi 27256 27257 export_dynamic_flag_spec_CXX='${wl}-bexpall' 27258 # It seems that -bexpall does not export symbols beginning with 27259 # underscore (_), so it is better to generate a list of symbols to 27260 # export. 27261 always_export_symbols_CXX=yes 27262 if test "$aix_use_runtimelinking" = yes; then 27263 # Warning - without using the other runtime loading flags (-brtl), 27264 # -berok will link without error, but may produce a broken library. 27265 allow_undefined_flag_CXX='-berok' 27266 # Determine the default libpath from the value encoded in an empty 27267 # executable. 27268 if test "${lt_cv_aix_libpath+set}" = set; then 27269 aix_libpath=$lt_cv_aix_libpath 27270else 27271 if ${lt_cv_aix_libpath__CXX+:} false; then : 27272 $as_echo_n "(cached) " >&6 27273else 27274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27275/* end confdefs.h. */ 27276 27277int 27278main () 27279{ 27280 27281 ; 27282 return 0; 27283} 27284_ACEOF 27285if ac_fn_cxx_try_link "$LINENO"; then : 27286 27287 lt_aix_libpath_sed=' 27288 /Import File Strings/,/^$/ { 27289 /^0/ { 27290 s/^0 *\([^ ]*\) *$/\1/ 27291 p 27292 } 27293 }' 27294 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 27295 # Check for a 64-bit object if we didn't find anything. 27296 if test -z "$lt_cv_aix_libpath__CXX"; then 27297 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 27298 fi 27299fi 27300rm -f core conftest.err conftest.$ac_objext \ 27301 conftest$ac_exeext conftest.$ac_ext 27302 if test -z "$lt_cv_aix_libpath__CXX"; then 27303 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 27304 fi 27305 27306fi 27307 27308 aix_libpath=$lt_cv_aix_libpath__CXX 27309fi 27310 27311 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 27312 27313 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 27314 else 27315 if test "$host_cpu" = ia64; then 27316 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 27317 allow_undefined_flag_CXX="-z nodefs" 27318 archive_expsym_cmds_CXX="\$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" 27319 else 27320 # Determine the default libpath from the value encoded in an 27321 # empty executable. 27322 if test "${lt_cv_aix_libpath+set}" = set; then 27323 aix_libpath=$lt_cv_aix_libpath 27324else 27325 if ${lt_cv_aix_libpath__CXX+:} false; then : 27326 $as_echo_n "(cached) " >&6 27327else 27328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27329/* end confdefs.h. */ 27330 27331int 27332main () 27333{ 27334 27335 ; 27336 return 0; 27337} 27338_ACEOF 27339if ac_fn_cxx_try_link "$LINENO"; then : 27340 27341 lt_aix_libpath_sed=' 27342 /Import File Strings/,/^$/ { 27343 /^0/ { 27344 s/^0 *\([^ ]*\) *$/\1/ 27345 p 27346 } 27347 }' 27348 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 27349 # Check for a 64-bit object if we didn't find anything. 27350 if test -z "$lt_cv_aix_libpath__CXX"; then 27351 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 27352 fi 27353fi 27354rm -f core conftest.err conftest.$ac_objext \ 27355 conftest$ac_exeext conftest.$ac_ext 27356 if test -z "$lt_cv_aix_libpath__CXX"; then 27357 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 27358 fi 27359 27360fi 27361 27362 aix_libpath=$lt_cv_aix_libpath__CXX 27363fi 27364 27365 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 27366 # Warning - without using the other run time loading flags, 27367 # -berok will link without error, but may produce a broken library. 27368 no_undefined_flag_CXX=' ${wl}-bernotok' 27369 allow_undefined_flag_CXX=' ${wl}-berok' 27370 if test "$with_gnu_ld" = yes; then 27371 # We only use this code for GNU lds that support --whole-archive. 27372 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 27373 else 27374 # Exported symbols can be pulled into shared objects from archives 27375 whole_archive_flag_spec_CXX='$convenience' 27376 fi 27377 archive_cmds_need_lc_CXX=yes 27378 # This is similar to how AIX traditionally builds its shared 27379 # libraries. 27380 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 27381 fi 27382 fi 27383 ;; 27384 27385 beos*) 27386 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 27387 allow_undefined_flag_CXX=unsupported 27388 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 27389 # support --undefined. This deserves some investigation. FIXME 27390 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 27391 else 27392 ld_shlibs_CXX=no 27393 fi 27394 ;; 27395 27396 chorus*) 27397 case $cc_basename in 27398 *) 27399 # FIXME: insert proper C++ library support 27400 ld_shlibs_CXX=no 27401 ;; 27402 esac 27403 ;; 27404 27405 cygwin* | mingw* | pw32* | cegcc*) 27406 case $GXX,$cc_basename in 27407 ,cl* | no,cl*) 27408 # Native MSVC 27409 # hardcode_libdir_flag_spec is actually meaningless, as there is 27410 # no search path for DLLs. 27411 hardcode_libdir_flag_spec_CXX=' ' 27412 allow_undefined_flag_CXX=unsupported 27413 always_export_symbols_CXX=yes 27414 file_list_spec_CXX='@' 27415 # Tell ltmain to make .lib files, not .a files. 27416 libext=lib 27417 # Tell ltmain to make .dll files, not .so files. 27418 shrext_cmds=".dll" 27419 # FIXME: Setting linknames here is a bad hack. 27420 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 27421 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 27422 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 27423 else 27424 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 27425 fi~ 27426 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 27427 linknames=' 27428 # The linker will not automatically build a static lib if we build a DLL. 27429 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 27430 enable_shared_with_static_runtimes_CXX=yes 27431 # Don't use ranlib 27432 old_postinstall_cmds_CXX='chmod 644 $oldlib' 27433 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 27434 lt_tool_outputfile="@TOOL_OUTPUT@"~ 27435 case $lt_outputfile in 27436 *.exe|*.EXE) ;; 27437 *) 27438 lt_outputfile="$lt_outputfile.exe" 27439 lt_tool_outputfile="$lt_tool_outputfile.exe" 27440 ;; 27441 esac~ 27442 func_to_tool_file "$lt_outputfile"~ 27443 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 27444 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 27445 $RM "$lt_outputfile.manifest"; 27446 fi' 27447 ;; 27448 *) 27449 # g++ 27450 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 27451 # as there is no search path for DLLs. 27452 hardcode_libdir_flag_spec_CXX='-L$libdir' 27453 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 27454 allow_undefined_flag_CXX=unsupported 27455 always_export_symbols_CXX=no 27456 enable_shared_with_static_runtimes_CXX=yes 27457 27458 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 27459 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 27460 # If the export-symbols file already is a .def file (1st line 27461 # is EXPORTS), use it as is; otherwise, prepend... 27462 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 27463 cp $export_symbols $output_objdir/$soname.def; 27464 else 27465 echo EXPORTS > $output_objdir/$soname.def; 27466 cat $export_symbols >> $output_objdir/$soname.def; 27467 fi~ 27468 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 27469 else 27470 ld_shlibs_CXX=no 27471 fi 27472 ;; 27473 esac 27474 ;; 27475 darwin* | rhapsody*) 27476 27477 27478 archive_cmds_need_lc_CXX=no 27479 hardcode_direct_CXX=no 27480 hardcode_automatic_CXX=yes 27481 hardcode_shlibpath_var_CXX=unsupported 27482 if test "$lt_cv_ld_force_load" = "yes"; then 27483 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 27484 else 27485 whole_archive_flag_spec_CXX='' 27486 fi 27487 link_all_deplibs_CXX=yes 27488 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 27489 case $cc_basename in 27490 ifort*) _lt_dar_can_shared=yes ;; 27491 *) _lt_dar_can_shared=$GCC ;; 27492 esac 27493 if test "$_lt_dar_can_shared" = "yes"; then 27494 output_verbose_link_cmd=func_echo_all 27495 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 27496 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 27497 archive_expsym_cmds_CXX="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}" 27498 module_expsym_cmds_CXX="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}" 27499 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 27500 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 27501 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 27502 fi 27503 27504 else 27505 ld_shlibs_CXX=no 27506 fi 27507 27508 ;; 27509 27510 dgux*) 27511 case $cc_basename in 27512 ec++*) 27513 # FIXME: insert proper C++ library support 27514 ld_shlibs_CXX=no 27515 ;; 27516 ghcx*) 27517 # Green Hills C++ Compiler 27518 # FIXME: insert proper C++ library support 27519 ld_shlibs_CXX=no 27520 ;; 27521 *) 27522 # FIXME: insert proper C++ library support 27523 ld_shlibs_CXX=no 27524 ;; 27525 esac 27526 ;; 27527 27528 freebsd[12]*) 27529 # C++ shared libraries reported to be fairly broken before 27530 # switch to ELF 27531 ld_shlibs_CXX=no 27532 ;; 27533 27534 freebsd-elf*) 27535 archive_cmds_need_lc_CXX=no 27536 ;; 27537 27538 freebsd* | dragonfly*) 27539 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 27540 # conventions 27541 ld_shlibs_CXX=yes 27542 ;; 27543 27544 gnu*) 27545 ;; 27546 27547 haiku*) 27548 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 27549 link_all_deplibs_CXX=yes 27550 ;; 27551 27552 hpux9*) 27553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 27554 hardcode_libdir_separator_CXX=: 27555 export_dynamic_flag_spec_CXX='${wl}-E' 27556 hardcode_direct_CXX=yes 27557 hardcode_minus_L_CXX=yes # Not in the search PATH, 27558 # but as the default 27559 # location of the library. 27560 27561 case $cc_basename in 27562 CC*) 27563 # FIXME: insert proper C++ library support 27564 ld_shlibs_CXX=no 27565 ;; 27566 aCC*) 27567 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 27568 # Commands to make compiler produce verbose output that lists 27569 # what "hidden" libraries, object files and flags are used when 27570 # linking a shared library. 27571 # 27572 # There doesn't appear to be a way to prevent this compiler from 27573 # explicitly linking system object files so we need to strip them 27574 # from the output so that they don't get included in the library 27575 # dependencies. 27576 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 27577 ;; 27578 *) 27579 if test "$GXX" = yes; then 27580 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 27581 else 27582 # FIXME: insert proper C++ library support 27583 ld_shlibs_CXX=no 27584 fi 27585 ;; 27586 esac 27587 ;; 27588 27589 hpux10*|hpux11*) 27590 if test $with_gnu_ld = no; then 27591 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 27592 hardcode_libdir_separator_CXX=: 27593 27594 case $host_cpu in 27595 hppa*64*|ia64*) 27596 ;; 27597 *) 27598 export_dynamic_flag_spec_CXX='${wl}-E' 27599 ;; 27600 esac 27601 fi 27602 case $host_cpu in 27603 hppa*64*|ia64*) 27604 hardcode_direct_CXX=no 27605 hardcode_shlibpath_var_CXX=no 27606 ;; 27607 *) 27608 hardcode_direct_CXX=yes 27609 hardcode_direct_absolute_CXX=yes 27610 hardcode_minus_L_CXX=yes # Not in the search PATH, 27611 # but as the default 27612 # location of the library. 27613 ;; 27614 esac 27615 27616 case $cc_basename in 27617 CC*) 27618 # FIXME: insert proper C++ library support 27619 ld_shlibs_CXX=no 27620 ;; 27621 aCC*) 27622 case $host_cpu in 27623 hppa*64*) 27624 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 27625 ;; 27626 ia64*) 27627 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 27628 ;; 27629 *) 27630 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 27631 ;; 27632 esac 27633 # Commands to make compiler produce verbose output that lists 27634 # what "hidden" libraries, object files and flags are used when 27635 # linking a shared library. 27636 # 27637 # There doesn't appear to be a way to prevent this compiler from 27638 # explicitly linking system object files so we need to strip them 27639 # from the output so that they don't get included in the library 27640 # dependencies. 27641 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 27642 ;; 27643 *) 27644 if test "$GXX" = yes; then 27645 if test $with_gnu_ld = no; then 27646 case $host_cpu in 27647 hppa*64*) 27648 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 27649 ;; 27650 ia64*) 27651 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 27652 ;; 27653 *) 27654 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 27655 ;; 27656 esac 27657 fi 27658 else 27659 # FIXME: insert proper C++ library support 27660 ld_shlibs_CXX=no 27661 fi 27662 ;; 27663 esac 27664 ;; 27665 27666 interix[3-9]*) 27667 hardcode_direct_CXX=no 27668 hardcode_shlibpath_var_CXX=no 27669 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 27670 export_dynamic_flag_spec_CXX='${wl}-E' 27671 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 27672 # Instead, shared libraries are loaded at an image base (0x10000000 by 27673 # default) and relocated if they conflict, which is a slow very memory 27674 # consuming and fragmenting process. To avoid this, we pick a random, 27675 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 27676 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 27677 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 27678 archive_expsym_cmds_CXX='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' 27679 ;; 27680 irix5* | irix6*) 27681 case $cc_basename in 27682 CC*) 27683 # SGI C++ 27684 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 27685 27686 # Archives containing C++ object files must be created using 27687 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 27688 # necessary to make sure instantiated templates are included 27689 # in the archive. 27690 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 27691 ;; 27692 *) 27693 if test "$GXX" = yes; then 27694 if test "$with_gnu_ld" = no; then 27695 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 27696 else 27697 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 27698 fi 27699 fi 27700 link_all_deplibs_CXX=yes 27701 ;; 27702 esac 27703 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 27704 hardcode_libdir_separator_CXX=: 27705 inherit_rpath_CXX=yes 27706 ;; 27707 27708 linux* | k*bsd*-gnu | kopensolaris*-gnu) 27709 case $cc_basename in 27710 KCC*) 27711 # Kuck and Associates, Inc. (KAI) C++ Compiler 27712 27713 # KCC will only create a shared library if the output file 27714 # ends with ".so" (or ".sl" for HP-UX), so rename the library 27715 # to its proper name (with version) after linking. 27716 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 27717 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 27718 # Commands to make compiler produce verbose output that lists 27719 # what "hidden" libraries, object files and flags are used when 27720 # linking a shared library. 27721 # 27722 # There doesn't appear to be a way to prevent this compiler from 27723 # explicitly linking system object files so we need to strip them 27724 # from the output so that they don't get included in the library 27725 # dependencies. 27726 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 27727 27728 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 27729 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 27730 27731 # Archives containing C++ object files must be created using 27732 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 27733 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 27734 ;; 27735 icpc* | ecpc* ) 27736 # Intel C++ 27737 with_gnu_ld=yes 27738 # version 8.0 and above of icpc choke on multiply defined symbols 27739 # if we add $predep_objects and $postdep_objects, however 7.1 and 27740 # earlier do not add the objects themselves. 27741 case `$CC -V 2>&1` in 27742 *"Version 7."*) 27743 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 27744 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 27745 ;; 27746 *) # Version 8.0 or newer 27747 tmp_idyn= 27748 case $host_cpu in 27749 ia64*) tmp_idyn=' -i_dynamic';; 27750 esac 27751 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 27752 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 27753 ;; 27754 esac 27755 archive_cmds_need_lc_CXX=no 27756 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 27757 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 27758 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 27759 ;; 27760 pgCC* | pgcpp*) 27761 # Portland Group C++ compiler 27762 case `$CC -V` in 27763 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 27764 prelink_cmds_CXX='tpldir=Template.dir~ 27765 rm -rf $tpldir~ 27766 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 27767 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 27768 old_archive_cmds_CXX='tpldir=Template.dir~ 27769 rm -rf $tpldir~ 27770 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 27771 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 27772 $RANLIB $oldlib' 27773 archive_cmds_CXX='tpldir=Template.dir~ 27774 rm -rf $tpldir~ 27775 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 27776 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 27777 archive_expsym_cmds_CXX='tpldir=Template.dir~ 27778 rm -rf $tpldir~ 27779 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 27780 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 27781 ;; 27782 *) # Version 6 and above use weak symbols 27783 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 27784 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 27785 ;; 27786 esac 27787 27788 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 27789 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 27790 whole_archive_flag_spec_CXX='${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' 27791 ;; 27792 cxx*) 27793 # Compaq C++ 27794 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 27795 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 27796 27797 runpath_var=LD_RUN_PATH 27798 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 27799 hardcode_libdir_separator_CXX=: 27800 27801 # Commands to make compiler produce verbose output that lists 27802 # what "hidden" libraries, object files and flags are used when 27803 # linking a shared library. 27804 # 27805 # There doesn't appear to be a way to prevent this compiler from 27806 # explicitly linking system object files so we need to strip them 27807 # from the output so that they don't get included in the library 27808 # dependencies. 27809 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 27810 ;; 27811 xl* | mpixl* | bgxl*) 27812 # IBM XL 8.0 on PPC, with GNU ld 27813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 27814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 27815 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 27816 if test "x$supports_anon_versioning" = xyes; then 27817 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 27818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 27819 echo "local: *; };" >> $output_objdir/$libname.ver~ 27820 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 27821 fi 27822 ;; 27823 *) 27824 case `$CC -V 2>&1 | sed 5q` in 27825 *Sun\ C*) 27826 # Sun C++ 5.9 27827 no_undefined_flag_CXX=' -zdefs' 27828 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 27829 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 27830 hardcode_libdir_flag_spec_CXX='-R$libdir' 27831 whole_archive_flag_spec_CXX='${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' 27832 compiler_needs_object_CXX=yes 27833 27834 # Not sure whether something based on 27835 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 27836 # would be better. 27837 output_verbose_link_cmd='func_echo_all' 27838 27839 # Archives containing C++ object files must be created using 27840 # "CC -xar", where "CC" is the Sun C++ compiler. This is 27841 # necessary to make sure instantiated templates are included 27842 # in the archive. 27843 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 27844 ;; 27845 esac 27846 ;; 27847 esac 27848 ;; 27849 27850 lynxos*) 27851 # FIXME: insert proper C++ library support 27852 ld_shlibs_CXX=no 27853 ;; 27854 27855 m88k*) 27856 # FIXME: insert proper C++ library support 27857 ld_shlibs_CXX=no 27858 ;; 27859 27860 mvs*) 27861 case $cc_basename in 27862 cxx*) 27863 # FIXME: insert proper C++ library support 27864 ld_shlibs_CXX=no 27865 ;; 27866 *) 27867 # FIXME: insert proper C++ library support 27868 ld_shlibs_CXX=no 27869 ;; 27870 esac 27871 ;; 27872 27873 netbsd*) 27874 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 27875 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 27876 wlarc= 27877 hardcode_libdir_flag_spec_CXX='-R$libdir' 27878 hardcode_direct_CXX=yes 27879 hardcode_shlibpath_var_CXX=no 27880 fi 27881 # Workaround some broken pre-1.5 toolchains 27882 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 27883 ;; 27884 27885 *nto* | *qnx*) 27886 ld_shlibs_CXX=yes 27887 ;; 27888 27889 openbsd2*) 27890 # C++ shared libraries are fairly broken 27891 ld_shlibs_CXX=no 27892 ;; 27893 27894 openbsd*) 27895 if test -f /usr/libexec/ld.so; then 27896 hardcode_direct_CXX=yes 27897 hardcode_shlibpath_var_CXX=no 27898 hardcode_direct_absolute_CXX=yes 27899 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 27900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 27901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 27902 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 27903 export_dynamic_flag_spec_CXX='${wl}-E' 27904 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 27905 fi 27906 output_verbose_link_cmd=func_echo_all 27907 else 27908 ld_shlibs_CXX=no 27909 fi 27910 ;; 27911 27912 osf3* | osf4* | osf5*) 27913 case $cc_basename in 27914 KCC*) 27915 # Kuck and Associates, Inc. (KAI) C++ Compiler 27916 27917 # KCC will only create a shared library if the output file 27918 # ends with ".so" (or ".sl" for HP-UX), so rename the library 27919 # to its proper name (with version) after linking. 27920 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 27921 27922 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 27923 hardcode_libdir_separator_CXX=: 27924 27925 # Archives containing C++ object files must be created using 27926 # the KAI C++ compiler. 27927 case $host in 27928 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 27929 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 27930 esac 27931 ;; 27932 RCC*) 27933 # Rational C++ 2.4.1 27934 # FIXME: insert proper C++ library support 27935 ld_shlibs_CXX=no 27936 ;; 27937 cxx*) 27938 case $host in 27939 osf3*) 27940 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 27941 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 27942 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 27943 ;; 27944 *) 27945 allow_undefined_flag_CXX=' -expect_unresolved \*' 27946 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 27947 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 27948 echo "-hidden">> $lib.exp~ 27949 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 27950 $RM $lib.exp' 27951 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 27952 ;; 27953 esac 27954 27955 hardcode_libdir_separator_CXX=: 27956 27957 # Commands to make compiler produce verbose output that lists 27958 # what "hidden" libraries, object files and flags are used when 27959 # linking a shared library. 27960 # 27961 # There doesn't appear to be a way to prevent this compiler from 27962 # explicitly linking system object files so we need to strip them 27963 # from the output so that they don't get included in the library 27964 # dependencies. 27965 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 27966 ;; 27967 *) 27968 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 27969 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 27970 case $host in 27971 osf3*) 27972 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 27973 ;; 27974 *) 27975 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 27976 ;; 27977 esac 27978 27979 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 27980 hardcode_libdir_separator_CXX=: 27981 27982 # Commands to make compiler produce verbose output that lists 27983 # what "hidden" libraries, object files and flags are used when 27984 # linking a shared library. 27985 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 27986 27987 else 27988 # FIXME: insert proper C++ library support 27989 ld_shlibs_CXX=no 27990 fi 27991 ;; 27992 esac 27993 ;; 27994 27995 psos*) 27996 # FIXME: insert proper C++ library support 27997 ld_shlibs_CXX=no 27998 ;; 27999 28000 sunos4*) 28001 case $cc_basename in 28002 CC*) 28003 # Sun C++ 4.x 28004 # FIXME: insert proper C++ library support 28005 ld_shlibs_CXX=no 28006 ;; 28007 lcc*) 28008 # Lucid 28009 # FIXME: insert proper C++ library support 28010 ld_shlibs_CXX=no 28011 ;; 28012 *) 28013 # FIXME: insert proper C++ library support 28014 ld_shlibs_CXX=no 28015 ;; 28016 esac 28017 ;; 28018 28019 solaris*) 28020 case $cc_basename in 28021 CC* | sunCC*) 28022 # Sun C++ 4.2, 5.x and Centerline C++ 28023 archive_cmds_need_lc_CXX=yes 28024 no_undefined_flag_CXX=' -zdefs' 28025 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 28026 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 28027 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 28028 28029 hardcode_libdir_flag_spec_CXX='-R$libdir' 28030 hardcode_shlibpath_var_CXX=no 28031 case $host_os in 28032 solaris2.[0-5] | solaris2.[0-5].*) ;; 28033 *) 28034 # The compiler driver will combine and reorder linker options, 28035 # but understands `-z linker_flag'. 28036 # Supported since Solaris 2.6 (maybe 2.5.1?) 28037 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 28038 ;; 28039 esac 28040 link_all_deplibs_CXX=yes 28041 28042 output_verbose_link_cmd='func_echo_all' 28043 28044 # Archives containing C++ object files must be created using 28045 # "CC -xar", where "CC" is the Sun C++ compiler. This is 28046 # necessary to make sure instantiated templates are included 28047 # in the archive. 28048 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 28049 ;; 28050 gcx*) 28051 # Green Hills C++ Compiler 28052 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 28053 28054 # The C++ compiler must be used to create the archive. 28055 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 28056 ;; 28057 *) 28058 # GNU C++ compiler with Solaris linker 28059 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 28060 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 28061 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 28062 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 28063 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 28064 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 28065 28066 # Commands to make compiler produce verbose output that lists 28067 # what "hidden" libraries, object files and flags are used when 28068 # linking a shared library. 28069 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 28070 else 28071 # g++ 2.7 appears to require `-G' NOT `-shared' on this 28072 # platform. 28073 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 28074 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 28075 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 28076 28077 # Commands to make compiler produce verbose output that lists 28078 # what "hidden" libraries, object files and flags are used when 28079 # linking a shared library. 28080 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 28081 fi 28082 28083 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 28084 case $host_os in 28085 solaris2.[0-5] | solaris2.[0-5].*) ;; 28086 *) 28087 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 28088 ;; 28089 esac 28090 fi 28091 ;; 28092 esac 28093 ;; 28094 28095 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 28096 no_undefined_flag_CXX='${wl}-z,text' 28097 archive_cmds_need_lc_CXX=no 28098 hardcode_shlibpath_var_CXX=no 28099 runpath_var='LD_RUN_PATH' 28100 28101 case $cc_basename in 28102 CC*) 28103 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 28104 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 28105 ;; 28106 *) 28107 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 28108 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 28109 ;; 28110 esac 28111 ;; 28112 28113 sysv5* | sco3.2v5* | sco5v6*) 28114 # Note: We can NOT use -z defs as we might desire, because we do not 28115 # link with -lc, and that would cause any symbols used from libc to 28116 # always be unresolved, which means just about no library would 28117 # ever link correctly. If we're not using GNU ld we use -z text 28118 # though, which does catch some bad symbols but isn't as heavy-handed 28119 # as -z defs. 28120 no_undefined_flag_CXX='${wl}-z,text' 28121 allow_undefined_flag_CXX='${wl}-z,nodefs' 28122 archive_cmds_need_lc_CXX=no 28123 hardcode_shlibpath_var_CXX=no 28124 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 28125 hardcode_libdir_separator_CXX=':' 28126 link_all_deplibs_CXX=yes 28127 export_dynamic_flag_spec_CXX='${wl}-Bexport' 28128 runpath_var='LD_RUN_PATH' 28129 28130 case $cc_basename in 28131 CC*) 28132 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 28133 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 28134 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 28135 '"$old_archive_cmds_CXX" 28136 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 28137 '"$reload_cmds_CXX" 28138 ;; 28139 *) 28140 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 28141 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 28142 ;; 28143 esac 28144 ;; 28145 28146 tandem*) 28147 case $cc_basename in 28148 NCC*) 28149 # NonStop-UX NCC 3.20 28150 # FIXME: insert proper C++ library support 28151 ld_shlibs_CXX=no 28152 ;; 28153 *) 28154 # FIXME: insert proper C++ library support 28155 ld_shlibs_CXX=no 28156 ;; 28157 esac 28158 ;; 28159 28160 vxworks*) 28161 # FIXME: insert proper C++ library support 28162 ld_shlibs_CXX=no 28163 ;; 28164 28165 *) 28166 # FIXME: insert proper C++ library support 28167 ld_shlibs_CXX=no 28168 ;; 28169 esac 28170 28171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 28172$as_echo "$ld_shlibs_CXX" >&6; } 28173 test "$ld_shlibs_CXX" = no && can_build_shared=no 28174 28175 GCC_CXX="$GXX" 28176 LD_CXX="$LD" 28177 28178 ## CAVEAT EMPTOR: 28179 ## There is no encapsulation within the following macros, do not change 28180 ## the running order or otherwise move them around unless you know exactly 28181 ## what you are doing... 28182 # Dependencies to place before and after the object being linked: 28183predep_objects_CXX= 28184postdep_objects_CXX= 28185predeps_CXX= 28186postdeps_CXX= 28187compiler_lib_search_path_CXX= 28188 28189cat > conftest.$ac_ext <<_LT_EOF 28190class Foo 28191{ 28192public: 28193 Foo (void) { a = 0; } 28194private: 28195 int a; 28196}; 28197_LT_EOF 28198 28199 28200_lt_libdeps_save_CFLAGS=$CFLAGS 28201case "$CC $CFLAGS " in #( 28202*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 28203*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 28204esac 28205 28206if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 28207 (eval $ac_compile) 2>&5 28208 ac_status=$? 28209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28210 test $ac_status = 0; }; then 28211 # Parse the compiler output and extract the necessary 28212 # objects, libraries and library flags. 28213 28214 # Sentinel used to keep track of whether or not we are before 28215 # the conftest object file. 28216 pre_test_object_deps_done=no 28217 28218 for p in `eval "$output_verbose_link_cmd"`; do 28219 case ${prev}${p} in 28220 28221 -L* | -R* | -l*) 28222 # Some compilers place space between "-{L,R}" and the path. 28223 # Remove the space. 28224 if test $p = "-L" || 28225 test $p = "-R"; then 28226 prev=$p 28227 continue 28228 fi 28229 28230 # Expand the sysroot to ease extracting the directories later. 28231 if test -z "$prev"; then 28232 case $p in 28233 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 28234 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 28235 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 28236 esac 28237 fi 28238 case $p in 28239 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 28240 esac 28241 if test "$pre_test_object_deps_done" = no; then 28242 case ${prev} in 28243 -L | -R) 28244 # Internal compiler library paths should come after those 28245 # provided the user. The postdeps already come after the 28246 # user supplied libs so there is no need to process them. 28247 if test -z "$compiler_lib_search_path_CXX"; then 28248 compiler_lib_search_path_CXX="${prev}${p}" 28249 else 28250 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 28251 fi 28252 ;; 28253 # The "-l" case would never come before the object being 28254 # linked, so don't bother handling this case. 28255 esac 28256 else 28257 if test -z "$postdeps_CXX"; then 28258 postdeps_CXX="${prev}${p}" 28259 else 28260 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 28261 fi 28262 fi 28263 prev= 28264 ;; 28265 28266 *.lto.$objext) ;; # Ignore GCC LTO objects 28267 *.$objext) 28268 # This assumes that the test object file only shows up 28269 # once in the compiler output. 28270 if test "$p" = "conftest.$objext"; then 28271 pre_test_object_deps_done=yes 28272 continue 28273 fi 28274 28275 if test "$pre_test_object_deps_done" = no; then 28276 if test -z "$predep_objects_CXX"; then 28277 predep_objects_CXX="$p" 28278 else 28279 predep_objects_CXX="$predep_objects_CXX $p" 28280 fi 28281 else 28282 if test -z "$postdep_objects_CXX"; then 28283 postdep_objects_CXX="$p" 28284 else 28285 postdep_objects_CXX="$postdep_objects_CXX $p" 28286 fi 28287 fi 28288 ;; 28289 28290 *) ;; # Ignore the rest. 28291 28292 esac 28293 done 28294 28295 # Clean up. 28296 rm -f a.out a.exe 28297else 28298 echo "libtool.m4: error: problem compiling CXX test program" 28299fi 28300 28301$RM -f confest.$objext 28302CFLAGS=$_lt_libdeps_save_CFLAGS 28303 28304# PORTME: override above test on systems where it is broken 28305case $host_os in 28306interix[3-9]*) 28307 # Interix 3.5 installs completely hosed .la files for C++, so rather than 28308 # hack all around it, let's just trust "g++" to DTRT. 28309 predep_objects_CXX= 28310 postdep_objects_CXX= 28311 postdeps_CXX= 28312 ;; 28313 28314linux*) 28315 case `$CC -V 2>&1 | sed 5q` in 28316 *Sun\ C*) 28317 # Sun C++ 5.9 28318 28319 # The more standards-conforming stlport4 library is 28320 # incompatible with the Cstd library. Avoid specifying 28321 # it if it's in CXXFLAGS. Ignore libCrun as 28322 # -library=stlport4 depends on it. 28323 case " $CXX $CXXFLAGS " in 28324 *" -library=stlport4 "*) 28325 solaris_use_stlport4=yes 28326 ;; 28327 esac 28328 28329 if test "$solaris_use_stlport4" != yes; then 28330 postdeps_CXX='-library=Cstd -library=Crun' 28331 fi 28332 ;; 28333 esac 28334 ;; 28335 28336solaris*) 28337 case $cc_basename in 28338 CC* | sunCC*) 28339 # The more standards-conforming stlport4 library is 28340 # incompatible with the Cstd library. Avoid specifying 28341 # it if it's in CXXFLAGS. Ignore libCrun as 28342 # -library=stlport4 depends on it. 28343 case " $CXX $CXXFLAGS " in 28344 *" -library=stlport4 "*) 28345 solaris_use_stlport4=yes 28346 ;; 28347 esac 28348 28349 # Adding this requires a known-good setup of shared libraries for 28350 # Sun compiler versions before 5.6, else PIC objects from an old 28351 # archive will be linked into the output, leading to subtle bugs. 28352 if test "$solaris_use_stlport4" != yes; then 28353 postdeps_CXX='-library=Cstd -library=Crun' 28354 fi 28355 ;; 28356 esac 28357 ;; 28358esac 28359 28360 28361case " $postdeps_CXX " in 28362*" -lc "*) archive_cmds_need_lc_CXX=no ;; 28363esac 28364 compiler_lib_search_dirs_CXX= 28365if test -n "${compiler_lib_search_path_CXX}"; then 28366 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 28367fi 28368 28369 28370 28371 28372 28373 28374 28375 28376 28377 28378 28379 28380 28381 28382 28383 28384 28385 28386 28387 28388 28389 28390 28391 28392 28393 28394 28395 28396 28397 28398 28399 lt_prog_compiler_wl_CXX= 28400lt_prog_compiler_pic_CXX= 28401lt_prog_compiler_static_CXX= 28402 28403 28404 # C++ specific cases for pic, static, wl, etc. 28405 if test "$GXX" = yes; then 28406 lt_prog_compiler_wl_CXX='-Wl,' 28407 lt_prog_compiler_static_CXX='-static' 28408 28409 case $host_os in 28410 aix*) 28411 # All AIX code is PIC. 28412 if test "$host_cpu" = ia64; then 28413 # AIX 5 now supports IA64 processor 28414 lt_prog_compiler_static_CXX='-Bstatic' 28415 fi 28416 ;; 28417 28418 amigaos*) 28419 case $host_cpu in 28420 powerpc) 28421 # see comment about AmigaOS4 .so support 28422 lt_prog_compiler_pic_CXX='-fPIC' 28423 ;; 28424 m68k) 28425 # FIXME: we need at least 68020 code to build shared libraries, but 28426 # adding the `-m68020' flag to GCC prevents building anything better, 28427 # like `-m68040'. 28428 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 28429 ;; 28430 esac 28431 ;; 28432 28433 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 28434 # PIC is the default for these OSes. 28435 ;; 28436 mingw* | cygwin* | os2* | pw32* | cegcc*) 28437 # This hack is so that the source file can tell whether it is being 28438 # built for inclusion in a dll (and should export symbols for example). 28439 # Although the cygwin gcc ignores -fPIC, still need this for old-style 28440 # (--disable-auto-import) libraries 28441 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 28442 ;; 28443 darwin* | rhapsody*) 28444 # PIC is the default on this platform 28445 # Common symbols not allowed in MH_DYLIB files 28446 lt_prog_compiler_pic_CXX='-fno-common' 28447 ;; 28448 *djgpp*) 28449 # DJGPP does not support shared libraries at all 28450 lt_prog_compiler_pic_CXX= 28451 ;; 28452 haiku*) 28453 # PIC is the default for Haiku. 28454 # The "-static" flag exists, but is broken. 28455 lt_prog_compiler_static_CXX= 28456 ;; 28457 interix[3-9]*) 28458 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 28459 # Instead, we relocate shared libraries at runtime. 28460 ;; 28461 sysv4*MP*) 28462 if test -d /usr/nec; then 28463 lt_prog_compiler_pic_CXX=-Kconform_pic 28464 fi 28465 ;; 28466 hpux*) 28467 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 28468 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 28469 # sets the default TLS model and affects inlining. 28470 case $host_cpu in 28471 hppa*64*) 28472 ;; 28473 *) 28474 lt_prog_compiler_pic_CXX='-fPIC' 28475 ;; 28476 esac 28477 ;; 28478 *qnx* | *nto*) 28479 # QNX uses GNU C++, but need to define -shared option too, otherwise 28480 # it will coredump. 28481 lt_prog_compiler_pic_CXX='-fPIC -shared' 28482 ;; 28483 *) 28484 lt_prog_compiler_pic_CXX='-fPIC' 28485 ;; 28486 esac 28487 else 28488 case $host_os in 28489 aix[4-9]*) 28490 # All AIX code is PIC. 28491 if test "$host_cpu" = ia64; then 28492 # AIX 5 now supports IA64 processor 28493 lt_prog_compiler_static_CXX='-Bstatic' 28494 else 28495 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 28496 fi 28497 ;; 28498 chorus*) 28499 case $cc_basename in 28500 cxch68*) 28501 # Green Hills C++ Compiler 28502 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 28503 ;; 28504 esac 28505 ;; 28506 mingw* | cygwin* | os2* | pw32* | cegcc*) 28507 # This hack is so that the source file can tell whether it is being 28508 # built for inclusion in a dll (and should export symbols for example). 28509 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 28510 ;; 28511 dgux*) 28512 case $cc_basename in 28513 ec++*) 28514 lt_prog_compiler_pic_CXX='-KPIC' 28515 ;; 28516 ghcx*) 28517 # Green Hills C++ Compiler 28518 lt_prog_compiler_pic_CXX='-pic' 28519 ;; 28520 *) 28521 ;; 28522 esac 28523 ;; 28524 freebsd* | dragonfly*) 28525 # FreeBSD uses GNU C++ 28526 ;; 28527 hpux9* | hpux10* | hpux11*) 28528 case $cc_basename in 28529 CC*) 28530 lt_prog_compiler_wl_CXX='-Wl,' 28531 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 28532 if test "$host_cpu" != ia64; then 28533 lt_prog_compiler_pic_CXX='+Z' 28534 fi 28535 ;; 28536 aCC*) 28537 lt_prog_compiler_wl_CXX='-Wl,' 28538 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 28539 case $host_cpu in 28540 hppa*64*|ia64*) 28541 # +Z the default 28542 ;; 28543 *) 28544 lt_prog_compiler_pic_CXX='+Z' 28545 ;; 28546 esac 28547 ;; 28548 *) 28549 ;; 28550 esac 28551 ;; 28552 interix*) 28553 # This is c89, which is MS Visual C++ (no shared libs) 28554 # Anyone wants to do a port? 28555 ;; 28556 irix5* | irix6* | nonstopux*) 28557 case $cc_basename in 28558 CC*) 28559 lt_prog_compiler_wl_CXX='-Wl,' 28560 lt_prog_compiler_static_CXX='-non_shared' 28561 # CC pic flag -KPIC is the default. 28562 ;; 28563 *) 28564 ;; 28565 esac 28566 ;; 28567 linux* | k*bsd*-gnu | kopensolaris*-gnu) 28568 case $cc_basename in 28569 KCC*) 28570 # KAI C++ Compiler 28571 lt_prog_compiler_wl_CXX='--backend -Wl,' 28572 lt_prog_compiler_pic_CXX='-fPIC' 28573 ;; 28574 ecpc* ) 28575 # old Intel C++ for x86_64 which still supported -KPIC. 28576 lt_prog_compiler_wl_CXX='-Wl,' 28577 lt_prog_compiler_pic_CXX='-KPIC' 28578 lt_prog_compiler_static_CXX='-static' 28579 ;; 28580 icpc* ) 28581 # Intel C++, used to be incompatible with GCC. 28582 # ICC 10 doesn't accept -KPIC any more. 28583 lt_prog_compiler_wl_CXX='-Wl,' 28584 lt_prog_compiler_pic_CXX='-fPIC' 28585 lt_prog_compiler_static_CXX='-static' 28586 ;; 28587 pgCC* | pgcpp*) 28588 # Portland Group C++ compiler 28589 lt_prog_compiler_wl_CXX='-Wl,' 28590 lt_prog_compiler_pic_CXX='-fpic' 28591 lt_prog_compiler_static_CXX='-Bstatic' 28592 ;; 28593 cxx*) 28594 # Compaq C++ 28595 # Make sure the PIC flag is empty. It appears that all Alpha 28596 # Linux and Compaq Tru64 Unix objects are PIC. 28597 lt_prog_compiler_pic_CXX= 28598 lt_prog_compiler_static_CXX='-non_shared' 28599 ;; 28600 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 28601 # IBM XL 8.0, 9.0 on PPC and BlueGene 28602 lt_prog_compiler_wl_CXX='-Wl,' 28603 lt_prog_compiler_pic_CXX='-qpic' 28604 lt_prog_compiler_static_CXX='-qstaticlink' 28605 ;; 28606 *) 28607 case `$CC -V 2>&1 | sed 5q` in 28608 *Sun\ C*) 28609 # Sun C++ 5.9 28610 lt_prog_compiler_pic_CXX='-KPIC' 28611 lt_prog_compiler_static_CXX='-Bstatic' 28612 lt_prog_compiler_wl_CXX='-Qoption ld ' 28613 ;; 28614 esac 28615 ;; 28616 esac 28617 ;; 28618 lynxos*) 28619 ;; 28620 m88k*) 28621 ;; 28622 mvs*) 28623 case $cc_basename in 28624 cxx*) 28625 lt_prog_compiler_pic_CXX='-W c,exportall' 28626 ;; 28627 *) 28628 ;; 28629 esac 28630 ;; 28631 netbsd*) 28632 ;; 28633 *qnx* | *nto*) 28634 # QNX uses GNU C++, but need to define -shared option too, otherwise 28635 # it will coredump. 28636 lt_prog_compiler_pic_CXX='-fPIC -shared' 28637 ;; 28638 osf3* | osf4* | osf5*) 28639 case $cc_basename in 28640 KCC*) 28641 lt_prog_compiler_wl_CXX='--backend -Wl,' 28642 ;; 28643 RCC*) 28644 # Rational C++ 2.4.1 28645 lt_prog_compiler_pic_CXX='-pic' 28646 ;; 28647 cxx*) 28648 # Digital/Compaq C++ 28649 lt_prog_compiler_wl_CXX='-Wl,' 28650 # Make sure the PIC flag is empty. It appears that all Alpha 28651 # Linux and Compaq Tru64 Unix objects are PIC. 28652 lt_prog_compiler_pic_CXX= 28653 lt_prog_compiler_static_CXX='-non_shared' 28654 ;; 28655 *) 28656 ;; 28657 esac 28658 ;; 28659 psos*) 28660 ;; 28661 solaris*) 28662 case $cc_basename in 28663 CC* | sunCC*) 28664 # Sun C++ 4.2, 5.x and Centerline C++ 28665 lt_prog_compiler_pic_CXX='-KPIC' 28666 lt_prog_compiler_static_CXX='-Bstatic' 28667 lt_prog_compiler_wl_CXX='-Qoption ld ' 28668 ;; 28669 gcx*) 28670 # Green Hills C++ Compiler 28671 lt_prog_compiler_pic_CXX='-PIC' 28672 ;; 28673 *) 28674 ;; 28675 esac 28676 ;; 28677 sunos4*) 28678 case $cc_basename in 28679 CC*) 28680 # Sun C++ 4.x 28681 lt_prog_compiler_pic_CXX='-pic' 28682 lt_prog_compiler_static_CXX='-Bstatic' 28683 ;; 28684 lcc*) 28685 # Lucid 28686 lt_prog_compiler_pic_CXX='-pic' 28687 ;; 28688 *) 28689 ;; 28690 esac 28691 ;; 28692 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 28693 case $cc_basename in 28694 CC*) 28695 lt_prog_compiler_wl_CXX='-Wl,' 28696 lt_prog_compiler_pic_CXX='-KPIC' 28697 lt_prog_compiler_static_CXX='-Bstatic' 28698 ;; 28699 esac 28700 ;; 28701 tandem*) 28702 case $cc_basename in 28703 NCC*) 28704 # NonStop-UX NCC 3.20 28705 lt_prog_compiler_pic_CXX='-KPIC' 28706 ;; 28707 *) 28708 ;; 28709 esac 28710 ;; 28711 vxworks*) 28712 ;; 28713 *) 28714 lt_prog_compiler_can_build_shared_CXX=no 28715 ;; 28716 esac 28717 fi 28718 28719case $host_os in 28720 # For platforms which do not support PIC, -DPIC is meaningless: 28721 *djgpp*) 28722 lt_prog_compiler_pic_CXX= 28723 ;; 28724 *) 28725 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 28726 ;; 28727esac 28728 28729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 28730$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 28731if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 28732 $as_echo_n "(cached) " >&6 28733else 28734 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 28735fi 28736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 28737$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 28738lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 28739 28740# 28741# Check to make sure the PIC flag actually works. 28742# 28743if test -n "$lt_prog_compiler_pic_CXX"; then 28744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 28745$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 28746if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 28747 $as_echo_n "(cached) " >&6 28748else 28749 lt_cv_prog_compiler_pic_works_CXX=no 28750 ac_outfile=conftest.$ac_objext 28751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 28752 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 28753 # Insert the option either (1) after the last *FLAGS variable, or 28754 # (2) before a word containing "conftest.", or (3) at the end. 28755 # Note that $ac_compile itself does not contain backslashes and begins 28756 # with a dollar sign (not a hyphen), so the echo should work correctly. 28757 # The option is referenced via a variable to avoid confusing sed. 28758 lt_compile=`echo "$ac_compile" | $SED \ 28759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 28760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 28761 -e 's:$: $lt_compiler_flag:'` 28762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 28763 (eval "$lt_compile" 2>conftest.err) 28764 ac_status=$? 28765 cat conftest.err >&5 28766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28767 if (exit $ac_status) && test -s "$ac_outfile"; then 28768 # The compiler can only warn and ignore the option if not recognized 28769 # So say no if there are warnings other than the usual output. 28770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 28771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 28772 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 28773 lt_cv_prog_compiler_pic_works_CXX=yes 28774 fi 28775 fi 28776 $RM conftest* 28777 28778fi 28779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 28780$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 28781 28782if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 28783 case $lt_prog_compiler_pic_CXX in 28784 "" | " "*) ;; 28785 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 28786 esac 28787else 28788 lt_prog_compiler_pic_CXX= 28789 lt_prog_compiler_can_build_shared_CXX=no 28790fi 28791 28792fi 28793 28794 28795 28796 28797 28798# 28799# Check to make sure the static flag actually works. 28800# 28801wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 28802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 28803$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 28804if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 28805 $as_echo_n "(cached) " >&6 28806else 28807 lt_cv_prog_compiler_static_works_CXX=no 28808 save_LDFLAGS="$LDFLAGS" 28809 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 28810 echo "$lt_simple_link_test_code" > conftest.$ac_ext 28811 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 28812 # The linker can only warn and ignore the option if not recognized 28813 # So say no if there are warnings 28814 if test -s conftest.err; then 28815 # Append any errors to the config.log. 28816 cat conftest.err 1>&5 28817 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 28818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 28819 if diff conftest.exp conftest.er2 >/dev/null; then 28820 lt_cv_prog_compiler_static_works_CXX=yes 28821 fi 28822 else 28823 lt_cv_prog_compiler_static_works_CXX=yes 28824 fi 28825 fi 28826 $RM -r conftest* 28827 LDFLAGS="$save_LDFLAGS" 28828 28829fi 28830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 28831$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 28832 28833if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 28834 : 28835else 28836 lt_prog_compiler_static_CXX= 28837fi 28838 28839 28840 28841 28842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 28843$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 28844if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 28845 $as_echo_n "(cached) " >&6 28846else 28847 lt_cv_prog_compiler_c_o_CXX=no 28848 $RM -r conftest 2>/dev/null 28849 mkdir conftest 28850 cd conftest 28851 mkdir out 28852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 28853 28854 lt_compiler_flag="-o out/conftest2.$ac_objext" 28855 # Insert the option either (1) after the last *FLAGS variable, or 28856 # (2) before a word containing "conftest.", or (3) at the end. 28857 # Note that $ac_compile itself does not contain backslashes and begins 28858 # with a dollar sign (not a hyphen), so the echo should work correctly. 28859 lt_compile=`echo "$ac_compile" | $SED \ 28860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 28861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 28862 -e 's:$: $lt_compiler_flag:'` 28863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 28864 (eval "$lt_compile" 2>out/conftest.err) 28865 ac_status=$? 28866 cat out/conftest.err >&5 28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28868 if (exit $ac_status) && test -s out/conftest2.$ac_objext 28869 then 28870 # The compiler can only warn and ignore the option if not recognized 28871 # So say no if there are warnings 28872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 28873 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 28874 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 28875 lt_cv_prog_compiler_c_o_CXX=yes 28876 fi 28877 fi 28878 chmod u+w . 2>&5 28879 $RM conftest* 28880 # SGI C++ compiler will create directory out/ii_files/ for 28881 # template instantiation 28882 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 28883 $RM out/* && rmdir out 28884 cd .. 28885 $RM -r conftest 28886 $RM conftest* 28887 28888fi 28889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 28890$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 28891 28892 28893 28894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 28895$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 28896if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 28897 $as_echo_n "(cached) " >&6 28898else 28899 lt_cv_prog_compiler_c_o_CXX=no 28900 $RM -r conftest 2>/dev/null 28901 mkdir conftest 28902 cd conftest 28903 mkdir out 28904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 28905 28906 lt_compiler_flag="-o out/conftest2.$ac_objext" 28907 # Insert the option either (1) after the last *FLAGS variable, or 28908 # (2) before a word containing "conftest.", or (3) at the end. 28909 # Note that $ac_compile itself does not contain backslashes and begins 28910 # with a dollar sign (not a hyphen), so the echo should work correctly. 28911 lt_compile=`echo "$ac_compile" | $SED \ 28912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 28913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 28914 -e 's:$: $lt_compiler_flag:'` 28915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 28916 (eval "$lt_compile" 2>out/conftest.err) 28917 ac_status=$? 28918 cat out/conftest.err >&5 28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28920 if (exit $ac_status) && test -s out/conftest2.$ac_objext 28921 then 28922 # The compiler can only warn and ignore the option if not recognized 28923 # So say no if there are warnings 28924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 28925 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 28926 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 28927 lt_cv_prog_compiler_c_o_CXX=yes 28928 fi 28929 fi 28930 chmod u+w . 2>&5 28931 $RM conftest* 28932 # SGI C++ compiler will create directory out/ii_files/ for 28933 # template instantiation 28934 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 28935 $RM out/* && rmdir out 28936 cd .. 28937 $RM -r conftest 28938 $RM conftest* 28939 28940fi 28941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 28942$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 28943 28944 28945 28946 28947hard_links="nottested" 28948if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 28949 # do not overwrite the value of need_locks provided by the user 28950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 28951$as_echo_n "checking if we can lock with hard links... " >&6; } 28952 hard_links=yes 28953 $RM conftest* 28954 ln conftest.a conftest.b 2>/dev/null && hard_links=no 28955 touch conftest.a 28956 ln conftest.a conftest.b 2>&5 || hard_links=no 28957 ln conftest.a conftest.b 2>/dev/null && hard_links=no 28958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 28959$as_echo "$hard_links" >&6; } 28960 if test "$hard_links" = no; then 28961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 28962$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 28963 need_locks=warn 28964 fi 28965else 28966 need_locks=no 28967fi 28968 28969 28970 28971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 28972$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 28973 28974 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 28975 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 28976 case $host_os in 28977 aix[4-9]*) 28978 # If we're using GNU nm, then we don't want the "-C" option. 28979 # -C means demangle to AIX nm, but means don't demangle with GNU nm 28980 # Also, AIX nm treats weak defined symbols like other global defined 28981 # symbols, whereas GNU nm marks them as "W". 28982 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 28983 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 28984 else 28985 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 28986 fi 28987 ;; 28988 pw32*) 28989 export_symbols_cmds_CXX="$ltdll_cmds" 28990 ;; 28991 cygwin* | mingw* | cegcc*) 28992 case $cc_basename in 28993 cl*) ;; 28994 *) 28995 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 28996 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 28997 ;; 28998 esac 28999 ;; 29000 *) 29001 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 29002 ;; 29003 esac 29004 29005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 29006$as_echo "$ld_shlibs_CXX" >&6; } 29007test "$ld_shlibs_CXX" = no && can_build_shared=no 29008 29009with_gnu_ld_CXX=$with_gnu_ld 29010 29011 29012 29013 29014 29015 29016# 29017# Do we need to explicitly link libc? 29018# 29019case "x$archive_cmds_need_lc_CXX" in 29020x|xyes) 29021 # Assume -lc should be added 29022 archive_cmds_need_lc_CXX=yes 29023 29024 if test "$enable_shared" = yes && test "$GCC" = yes; then 29025 case $archive_cmds_CXX in 29026 *'~'*) 29027 # FIXME: we may have to deal with multi-command sequences. 29028 ;; 29029 '$CC '*) 29030 # Test whether the compiler implicitly links with -lc since on some 29031 # systems, -lgcc has to come before -lc. If gcc already passes -lc 29032 # to ld, don't add -lc before -lgcc. 29033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 29034$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 29035if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 29036 $as_echo_n "(cached) " >&6 29037else 29038 $RM conftest* 29039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 29040 29041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 29042 (eval $ac_compile) 2>&5 29043 ac_status=$? 29044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29045 test $ac_status = 0; } 2>conftest.err; then 29046 soname=conftest 29047 lib=conftest 29048 libobjs=conftest.$ac_objext 29049 deplibs= 29050 wl=$lt_prog_compiler_wl_CXX 29051 pic_flag=$lt_prog_compiler_pic_CXX 29052 compiler_flags=-v 29053 linker_flags=-v 29054 verstring= 29055 output_objdir=. 29056 libname=conftest 29057 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 29058 allow_undefined_flag_CXX= 29059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 29060 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 29061 ac_status=$? 29062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29063 test $ac_status = 0; } 29064 then 29065 lt_cv_archive_cmds_need_lc_CXX=no 29066 else 29067 lt_cv_archive_cmds_need_lc_CXX=yes 29068 fi 29069 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 29070 else 29071 cat conftest.err 1>&5 29072 fi 29073 $RM conftest* 29074 29075fi 29076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 29077$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 29078 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 29079 ;; 29080 esac 29081 fi 29082 ;; 29083esac 29084 29085 29086 29087 29088 29089 29090 29091 29092 29093 29094 29095 29096 29097 29098 29099 29100 29101 29102 29103 29104 29105 29106 29107 29108 29109 29110 29111 29112 29113 29114 29115 29116 29117 29118 29119 29120 29121 29122 29123 29124 29125 29126 29127 29128 29129 29130 29131 29132 29133 29134 29135 29136 29137 29138 29139 29140 29141 29142 29143 29144 29145 29146 29147 29148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 29149$as_echo_n "checking dynamic linker characteristics... " >&6; } 29150 29151library_names_spec= 29152libname_spec='lib$name' 29153soname_spec= 29154shrext_cmds=".so" 29155postinstall_cmds= 29156postuninstall_cmds= 29157finish_cmds= 29158finish_eval= 29159shlibpath_var= 29160shlibpath_overrides_runpath=unknown 29161version_type=none 29162dynamic_linker="$host_os ld.so" 29163sys_lib_dlsearch_path_spec="/lib /usr/lib" 29164need_lib_prefix=unknown 29165hardcode_into_libs=no 29166 29167# when you set need_version to no, make sure it does not cause -set_version 29168# flags to be left without arguments 29169need_version=unknown 29170 29171case $host_os in 29172aix3*) 29173 version_type=linux 29174 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 29175 shlibpath_var=LIBPATH 29176 29177 # AIX 3 has no versioning support, so we append a major version to the name. 29178 soname_spec='${libname}${release}${shared_ext}$major' 29179 ;; 29180 29181aix[4-9]*) 29182 version_type=linux 29183 need_lib_prefix=no 29184 need_version=no 29185 hardcode_into_libs=yes 29186 if test "$host_cpu" = ia64; then 29187 # AIX 5 supports IA64 29188 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 29189 shlibpath_var=LD_LIBRARY_PATH 29190 else 29191 # With GCC up to 2.95.x, collect2 would create an import file 29192 # for dependence libraries. The import file would start with 29193 # the line `#! .'. This would cause the generated library to 29194 # depend on `.', always an invalid library. This was fixed in 29195 # development snapshots of GCC prior to 3.0. 29196 case $host_os in 29197 aix4 | aix4.[01] | aix4.[01].*) 29198 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 29199 echo ' yes ' 29200 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 29201 : 29202 else 29203 can_build_shared=no 29204 fi 29205 ;; 29206 esac 29207 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 29208 # soname into executable. Probably we can add versioning support to 29209 # collect2, so additional links can be useful in future. 29210 if test "$aix_use_runtimelinking" = yes; then 29211 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 29212 # instead of lib<name>.a to let people know that these are not 29213 # typical AIX shared libraries. 29214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29215 else 29216 # We preserve .a as extension for shared libraries through AIX4.2 29217 # and later when we are not doing run time linking. 29218 library_names_spec='${libname}${release}.a $libname.a' 29219 soname_spec='${libname}${release}${shared_ext}$major' 29220 fi 29221 shlibpath_var=LIBPATH 29222 fi 29223 ;; 29224 29225amigaos*) 29226 case $host_cpu in 29227 powerpc) 29228 # Since July 2007 AmigaOS4 officially supports .so libraries. 29229 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 29230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29231 ;; 29232 m68k) 29233 library_names_spec='$libname.ixlibrary $libname.a' 29234 # Create ${libname}_ixlibrary.a entries in /sys/libs. 29235 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 29236 ;; 29237 esac 29238 ;; 29239 29240beos*) 29241 library_names_spec='${libname}${shared_ext}' 29242 dynamic_linker="$host_os ld.so" 29243 shlibpath_var=LIBRARY_PATH 29244 ;; 29245 29246bsdi[45]*) 29247 version_type=linux 29248 need_version=no 29249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29250 soname_spec='${libname}${release}${shared_ext}$major' 29251 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 29252 shlibpath_var=LD_LIBRARY_PATH 29253 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 29254 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 29255 # the default ld.so.conf also contains /usr/contrib/lib and 29256 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 29257 # libtool to hard-code these into programs 29258 ;; 29259 29260cygwin* | mingw* | pw32* | cegcc*) 29261 version_type=windows 29262 shrext_cmds=".dll" 29263 need_version=no 29264 need_lib_prefix=no 29265 29266 case $GCC,$cc_basename in 29267 yes,*) 29268 # gcc 29269 library_names_spec='$libname.dll.a' 29270 # DLL is installed to $(libdir)/../bin by postinstall_cmds 29271 postinstall_cmds='base_file=`basename \${file}`~ 29272 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 29273 dldir=$destdir/`dirname \$dlpath`~ 29274 test -d \$dldir || mkdir -p \$dldir~ 29275 $install_prog $dir/$dlname \$dldir/$dlname~ 29276 chmod a+x \$dldir/$dlname~ 29277 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 29278 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 29279 fi' 29280 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 29281 dlpath=$dir/\$dldll~ 29282 $RM \$dlpath' 29283 shlibpath_overrides_runpath=yes 29284 29285 case $host_os in 29286 cygwin*) 29287 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 29288 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 29289 29290 ;; 29291 mingw* | cegcc*) 29292 # MinGW DLLs use traditional 'lib' prefix 29293 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 29294 ;; 29295 pw32*) 29296 # pw32 DLLs use 'pw' prefix rather than 'lib' 29297 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 29298 ;; 29299 esac 29300 dynamic_linker='Win32 ld.exe' 29301 ;; 29302 29303 *,cl*) 29304 # Native MSVC 29305 libname_spec='$name' 29306 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 29307 library_names_spec='${libname}.dll.lib' 29308 29309 case $build_os in 29310 mingw*) 29311 sys_lib_search_path_spec= 29312 lt_save_ifs=$IFS 29313 IFS=';' 29314 for lt_path in $LIB 29315 do 29316 IFS=$lt_save_ifs 29317 # Let DOS variable expansion print the short 8.3 style file name. 29318 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 29319 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 29320 done 29321 IFS=$lt_save_ifs 29322 # Convert to MSYS style. 29323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 29324 ;; 29325 cygwin*) 29326 # Convert to unix form, then to dos form, then back to unix form 29327 # but this time dos style (no spaces!) so that the unix form looks 29328 # like /cygdrive/c/PROGRA~1:/cygdr... 29329 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 29330 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 29331 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 29332 ;; 29333 *) 29334 sys_lib_search_path_spec="$LIB" 29335 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 29336 # It is most probably a Windows format PATH. 29337 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 29338 else 29339 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 29340 fi 29341 # FIXME: find the short name or the path components, as spaces are 29342 # common. (e.g. "Program Files" -> "PROGRA~1") 29343 ;; 29344 esac 29345 29346 # DLL is installed to $(libdir)/../bin by postinstall_cmds 29347 postinstall_cmds='base_file=`basename \${file}`~ 29348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 29349 dldir=$destdir/`dirname \$dlpath`~ 29350 test -d \$dldir || mkdir -p \$dldir~ 29351 $install_prog $dir/$dlname \$dldir/$dlname' 29352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 29353 dlpath=$dir/\$dldll~ 29354 $RM \$dlpath' 29355 shlibpath_overrides_runpath=yes 29356 dynamic_linker='Win32 link.exe' 29357 ;; 29358 29359 *) 29360 # Assume MSVC wrapper 29361 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 29362 dynamic_linker='Win32 ld.exe' 29363 ;; 29364 esac 29365 # FIXME: first we should search . and the directory the executable is in 29366 shlibpath_var=PATH 29367 ;; 29368 29369darwin* | rhapsody*) 29370 dynamic_linker="$host_os dyld" 29371 version_type=darwin 29372 need_lib_prefix=no 29373 need_version=no 29374 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 29375 soname_spec='${libname}${release}${major}$shared_ext' 29376 shlibpath_overrides_runpath=yes 29377 shlibpath_var=DYLD_LIBRARY_PATH 29378 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 29379 29380 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 29381 ;; 29382 29383dgux*) 29384 version_type=linux 29385 need_lib_prefix=no 29386 need_version=no 29387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 29388 soname_spec='${libname}${release}${shared_ext}$major' 29389 shlibpath_var=LD_LIBRARY_PATH 29390 ;; 29391 29392freebsd1*) 29393 dynamic_linker=no 29394 ;; 29395 29396freebsd* | dragonfly*) 29397 # DragonFly does not have aout. When/if they implement a new 29398 # versioning mechanism, adjust this. 29399 if test -x /usr/bin/objformat; then 29400 objformat=`/usr/bin/objformat` 29401 else 29402 case $host_os in 29403 freebsd[123]*) objformat=aout ;; 29404 *) objformat=elf ;; 29405 esac 29406 fi 29407 version_type=freebsd-$objformat 29408 case $version_type in 29409 freebsd-elf*) 29410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 29411 need_version=no 29412 need_lib_prefix=no 29413 ;; 29414 freebsd-*) 29415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 29416 need_version=yes 29417 ;; 29418 esac 29419 shlibpath_var=LD_LIBRARY_PATH 29420 case $host_os in 29421 freebsd2*) 29422 shlibpath_overrides_runpath=yes 29423 ;; 29424 freebsd3.[01]* | freebsdelf3.[01]*) 29425 shlibpath_overrides_runpath=yes 29426 hardcode_into_libs=yes 29427 ;; 29428 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 29429 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 29430 shlibpath_overrides_runpath=no 29431 hardcode_into_libs=yes 29432 ;; 29433 *) # from 4.6 on, and DragonFly 29434 shlibpath_overrides_runpath=yes 29435 hardcode_into_libs=yes 29436 ;; 29437 esac 29438 ;; 29439 29440gnu*) 29441 version_type=linux 29442 need_lib_prefix=no 29443 need_version=no 29444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 29445 soname_spec='${libname}${release}${shared_ext}$major' 29446 shlibpath_var=LD_LIBRARY_PATH 29447 hardcode_into_libs=yes 29448 ;; 29449 29450haiku*) 29451 version_type=linux 29452 need_lib_prefix=no 29453 need_version=no 29454 dynamic_linker="$host_os runtime_loader" 29455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 29456 soname_spec='${libname}${release}${shared_ext}$major' 29457 shlibpath_var=LIBRARY_PATH 29458 shlibpath_overrides_runpath=yes 29459 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 29460 hardcode_into_libs=yes 29461 ;; 29462 29463hpux9* | hpux10* | hpux11*) 29464 # Give a soname corresponding to the major version so that dld.sl refuses to 29465 # link against other versions. 29466 version_type=sunos 29467 need_lib_prefix=no 29468 need_version=no 29469 case $host_cpu in 29470 ia64*) 29471 shrext_cmds='.so' 29472 hardcode_into_libs=yes 29473 dynamic_linker="$host_os dld.so" 29474 shlibpath_var=LD_LIBRARY_PATH 29475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 29476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29477 soname_spec='${libname}${release}${shared_ext}$major' 29478 if test "X$HPUX_IA64_MODE" = X32; then 29479 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 29480 else 29481 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 29482 fi 29483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 29484 ;; 29485 hppa*64*) 29486 shrext_cmds='.sl' 29487 hardcode_into_libs=yes 29488 dynamic_linker="$host_os dld.sl" 29489 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 29490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 29491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29492 soname_spec='${libname}${release}${shared_ext}$major' 29493 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 29494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 29495 ;; 29496 *) 29497 shrext_cmds='.sl' 29498 dynamic_linker="$host_os dld.sl" 29499 shlibpath_var=SHLIB_PATH 29500 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 29501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29502 soname_spec='${libname}${release}${shared_ext}$major' 29503 ;; 29504 esac 29505 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 29506 postinstall_cmds='chmod 555 $lib' 29507 # or fails outright, so override atomically: 29508 install_override_mode=555 29509 ;; 29510 29511interix[3-9]*) 29512 version_type=linux 29513 need_lib_prefix=no 29514 need_version=no 29515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 29516 soname_spec='${libname}${release}${shared_ext}$major' 29517 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 29518 shlibpath_var=LD_LIBRARY_PATH 29519 shlibpath_overrides_runpath=no 29520 hardcode_into_libs=yes 29521 ;; 29522 29523irix5* | irix6* | nonstopux*) 29524 case $host_os in 29525 nonstopux*) version_type=nonstopux ;; 29526 *) 29527 if test "$lt_cv_prog_gnu_ld" = yes; then 29528 version_type=linux 29529 else 29530 version_type=irix 29531 fi ;; 29532 esac 29533 need_lib_prefix=no 29534 need_version=no 29535 soname_spec='${libname}${release}${shared_ext}$major' 29536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 29537 case $host_os in 29538 irix5* | nonstopux*) 29539 libsuff= shlibsuff= 29540 ;; 29541 *) 29542 case $LD in # libtool.m4 will add one of these switches to LD 29543 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 29544 libsuff= shlibsuff= libmagic=32-bit;; 29545 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 29546 libsuff=32 shlibsuff=N32 libmagic=N32;; 29547 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 29548 libsuff=64 shlibsuff=64 libmagic=64-bit;; 29549 *) libsuff= shlibsuff= libmagic=never-match;; 29550 esac 29551 ;; 29552 esac 29553 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 29554 shlibpath_overrides_runpath=no 29555 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 29556 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 29557 hardcode_into_libs=yes 29558 ;; 29559 29560# No shared lib support for Linux oldld, aout, or coff. 29561linux*oldld* | linux*aout* | linux*coff*) 29562 dynamic_linker=no 29563 ;; 29564 29565# This must be Linux ELF. 29566linux* | k*bsd*-gnu | kopensolaris*-gnu) 29567 version_type=linux 29568 need_lib_prefix=no 29569 need_version=no 29570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29571 soname_spec='${libname}${release}${shared_ext}$major' 29572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 29573 shlibpath_var=LD_LIBRARY_PATH 29574 shlibpath_overrides_runpath=no 29575 29576 # Some binutils ld are patched to set DT_RUNPATH 29577 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 29578 $as_echo_n "(cached) " >&6 29579else 29580 lt_cv_shlibpath_overrides_runpath=no 29581 save_LDFLAGS=$LDFLAGS 29582 save_libdir=$libdir 29583 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 29584 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 29585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29586/* end confdefs.h. */ 29587 29588int 29589main () 29590{ 29591 29592 ; 29593 return 0; 29594} 29595_ACEOF 29596if ac_fn_cxx_try_link "$LINENO"; then : 29597 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 29598 lt_cv_shlibpath_overrides_runpath=yes 29599fi 29600fi 29601rm -f core conftest.err conftest.$ac_objext \ 29602 conftest$ac_exeext conftest.$ac_ext 29603 LDFLAGS=$save_LDFLAGS 29604 libdir=$save_libdir 29605 29606fi 29607 29608 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 29609 29610 # This implies no fast_install, which is unacceptable. 29611 # Some rework will be needed to allow for fast_install 29612 # before this can be enabled. 29613 hardcode_into_libs=yes 29614 29615 # Append ld.so.conf contents to the search path 29616 if test -f /etc/ld.so.conf; then 29617 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' ' '` 29618 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 29619 fi 29620 29621 # We used to test for /lib/ld.so.1 and disable shared libraries on 29622 # powerpc, because MkLinux only supported shared libraries with the 29623 # GNU dynamic linker. Since this was broken with cross compilers, 29624 # most powerpc-linux boxes support dynamic linking these days and 29625 # people can always --disable-shared, the test was removed, and we 29626 # assume the GNU/Linux dynamic linker is in use. 29627 dynamic_linker='GNU/Linux ld.so' 29628 ;; 29629 29630netbsd*) 29631 version_type=sunos 29632 need_lib_prefix=no 29633 need_version=no 29634 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 29635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 29636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 29637 dynamic_linker='NetBSD (a.out) ld.so' 29638 else 29639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 29640 soname_spec='${libname}${release}${shared_ext}$major' 29641 dynamic_linker='NetBSD ld.elf_so' 29642 fi 29643 shlibpath_var=LD_LIBRARY_PATH 29644 shlibpath_overrides_runpath=yes 29645 hardcode_into_libs=yes 29646 ;; 29647 29648newsos6) 29649 version_type=linux 29650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29651 shlibpath_var=LD_LIBRARY_PATH 29652 shlibpath_overrides_runpath=yes 29653 ;; 29654 29655*nto* | *qnx*) 29656 version_type=qnx 29657 need_lib_prefix=no 29658 need_version=no 29659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29660 soname_spec='${libname}${release}${shared_ext}$major' 29661 shlibpath_var=LD_LIBRARY_PATH 29662 shlibpath_overrides_runpath=no 29663 hardcode_into_libs=yes 29664 dynamic_linker='ldqnx.so' 29665 ;; 29666 29667openbsd*) 29668 version_type=sunos 29669 sys_lib_dlsearch_path_spec="/usr/lib" 29670 need_lib_prefix=no 29671 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 29672 case $host_os in 29673 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 29674 *) need_version=no ;; 29675 esac 29676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 29677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 29678 shlibpath_var=LD_LIBRARY_PATH 29679 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 29680 case $host_os in 29681 openbsd2.[89] | openbsd2.[89].*) 29682 shlibpath_overrides_runpath=no 29683 ;; 29684 *) 29685 shlibpath_overrides_runpath=yes 29686 ;; 29687 esac 29688 else 29689 shlibpath_overrides_runpath=yes 29690 fi 29691 ;; 29692 29693os2*) 29694 libname_spec='$name' 29695 shrext_cmds=".dll" 29696 need_lib_prefix=no 29697 library_names_spec='$libname${shared_ext} $libname.a' 29698 dynamic_linker='OS/2 ld.exe' 29699 shlibpath_var=LIBPATH 29700 ;; 29701 29702osf3* | osf4* | osf5*) 29703 version_type=osf 29704 need_lib_prefix=no 29705 need_version=no 29706 soname_spec='${libname}${release}${shared_ext}$major' 29707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29708 shlibpath_var=LD_LIBRARY_PATH 29709 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 29710 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 29711 ;; 29712 29713rdos*) 29714 dynamic_linker=no 29715 ;; 29716 29717solaris*) 29718 version_type=linux 29719 need_lib_prefix=no 29720 need_version=no 29721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29722 soname_spec='${libname}${release}${shared_ext}$major' 29723 shlibpath_var=LD_LIBRARY_PATH 29724 shlibpath_overrides_runpath=yes 29725 hardcode_into_libs=yes 29726 # ldd complains unless libraries are executable 29727 postinstall_cmds='chmod +x $lib' 29728 ;; 29729 29730sunos4*) 29731 version_type=sunos 29732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 29733 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 29734 shlibpath_var=LD_LIBRARY_PATH 29735 shlibpath_overrides_runpath=yes 29736 if test "$with_gnu_ld" = yes; then 29737 need_lib_prefix=no 29738 fi 29739 need_version=yes 29740 ;; 29741 29742sysv4 | sysv4.3*) 29743 version_type=linux 29744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29745 soname_spec='${libname}${release}${shared_ext}$major' 29746 shlibpath_var=LD_LIBRARY_PATH 29747 case $host_vendor in 29748 sni) 29749 shlibpath_overrides_runpath=no 29750 need_lib_prefix=no 29751 runpath_var=LD_RUN_PATH 29752 ;; 29753 siemens) 29754 need_lib_prefix=no 29755 ;; 29756 motorola) 29757 need_lib_prefix=no 29758 need_version=no 29759 shlibpath_overrides_runpath=no 29760 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 29761 ;; 29762 esac 29763 ;; 29764 29765sysv4*MP*) 29766 if test -d /usr/nec ;then 29767 version_type=linux 29768 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 29769 soname_spec='$libname${shared_ext}.$major' 29770 shlibpath_var=LD_LIBRARY_PATH 29771 fi 29772 ;; 29773 29774sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 29775 version_type=freebsd-elf 29776 need_lib_prefix=no 29777 need_version=no 29778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 29779 soname_spec='${libname}${release}${shared_ext}$major' 29780 shlibpath_var=LD_LIBRARY_PATH 29781 shlibpath_overrides_runpath=yes 29782 hardcode_into_libs=yes 29783 if test "$with_gnu_ld" = yes; then 29784 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 29785 else 29786 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 29787 case $host_os in 29788 sco3.2v5*) 29789 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 29790 ;; 29791 esac 29792 fi 29793 sys_lib_dlsearch_path_spec='/usr/lib' 29794 ;; 29795 29796tpf*) 29797 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 29798 version_type=linux 29799 need_lib_prefix=no 29800 need_version=no 29801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29802 shlibpath_var=LD_LIBRARY_PATH 29803 shlibpath_overrides_runpath=no 29804 hardcode_into_libs=yes 29805 ;; 29806 29807uts4*) 29808 version_type=linux 29809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29810 soname_spec='${libname}${release}${shared_ext}$major' 29811 shlibpath_var=LD_LIBRARY_PATH 29812 ;; 29813 29814*) 29815 dynamic_linker=no 29816 ;; 29817esac 29818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 29819$as_echo "$dynamic_linker" >&6; } 29820test "$dynamic_linker" = no && can_build_shared=no 29821 29822variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 29823if test "$GCC" = yes; then 29824 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 29825fi 29826 29827if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 29828 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 29829fi 29830if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 29831 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 29832fi 29833 29834 29835 29836 29837 29838 29839 29840 29841 29842 29843 29844 29845 29846 29847 29848 29849 29850 29851 29852 29853 29854 29855 29856 29857 29858 29859 29860 29861 29862 29863 29864 29865 29866 29867 29868 29869 29870 29871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 29872$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 29873hardcode_action_CXX= 29874if test -n "$hardcode_libdir_flag_spec_CXX" || 29875 test -n "$runpath_var_CXX" || 29876 test "X$hardcode_automatic_CXX" = "Xyes" ; then 29877 29878 # We can hardcode non-existent directories. 29879 if test "$hardcode_direct_CXX" != no && 29880 # If the only mechanism to avoid hardcoding is shlibpath_var, we 29881 # have to relink, otherwise we might link with an installed library 29882 # when we should be linking with a yet-to-be-installed one 29883 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 29884 test "$hardcode_minus_L_CXX" != no; then 29885 # Linking always hardcodes the temporary library directory. 29886 hardcode_action_CXX=relink 29887 else 29888 # We can link without hardcoding, and we can hardcode nonexisting dirs. 29889 hardcode_action_CXX=immediate 29890 fi 29891else 29892 # We cannot hardcode anything, or else we can only hardcode existing 29893 # directories. 29894 hardcode_action_CXX=unsupported 29895fi 29896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 29897$as_echo "$hardcode_action_CXX" >&6; } 29898 29899if test "$hardcode_action_CXX" = relink || 29900 test "$inherit_rpath_CXX" = yes; then 29901 # Fast installation is not supported 29902 enable_fast_install=no 29903elif test "$shlibpath_overrides_runpath" = yes || 29904 test "$enable_shared" = no; then 29905 # Fast installation is not necessary 29906 enable_fast_install=needless 29907fi 29908 29909 29910 29911 29912 29913 29914 29915 fi # test -n "$compiler" 29916 29917 CC=$lt_save_CC 29918 CFLAGS=$lt_save_CFLAGS 29919 LDCXX=$LD 29920 LD=$lt_save_LD 29921 GCC=$lt_save_GCC 29922 with_gnu_ld=$lt_save_with_gnu_ld 29923 lt_cv_path_LDCXX=$lt_cv_path_LD 29924 lt_cv_path_LD=$lt_save_path_LD 29925 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 29926 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 29927fi # test "$_lt_caught_CXX_error" != yes 29928 29929ac_ext=c 29930ac_cpp='$CPP $CPPFLAGS' 29931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29933ac_compiler_gnu=$ac_cv_c_compiler_gnu 29934 29935 29936 29937gta=false 29938 29939# Check whether --with-gtest was given. 29940if test "${with_gtest+set}" = set; then : 29941 withval=$with_gtest; try_gtest=$withval 29942else 29943 try_gtest=yes 29944 29945fi 29946 29947case "$try_gtest" in 29948 yes) 29949 # Extract the first word of "gtest-config", so it can be a program name with args. 29950set dummy gtest-config; ac_word=$2 29951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29952$as_echo_n "checking for $ac_word... " >&6; } 29953if ${ac_cv_path_GTEST_CONFIG+:} false; then : 29954 $as_echo_n "(cached) " >&6 29955else 29956 case $GTEST_CONFIG in 29957 [\\/]* | ?:[\\/]*) 29958 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path. 29959 ;; 29960 *) 29961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29962for as_dir in $PATH 29963do 29964 IFS=$as_save_IFS 29965 test -z "$as_dir" && as_dir=. 29966 for ac_exec_ext in '' $ac_executable_extensions; do 29967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29968 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext" 29969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29970 break 2 29971 fi 29972done 29973 done 29974IFS=$as_save_IFS 29975 29976 ;; 29977esac 29978fi 29979GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG 29980if test -n "$GTEST_CONFIG"; then 29981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5 29982$as_echo "$GTEST_CONFIG" >&6; } 29983else 29984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29985$as_echo "no" >&6; } 29986fi 29987 29988 29989 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;} 29990 case x${GTEST_CONFIG} in 29991 x) ;; 29992 *) 29993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5 29994$as_echo_n "checking gtest version... " >&6; } 29995 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow` 29996 case "$gtest_version_test" in 29997 toolow*) 29998 ;; 29999 *) 30000 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags` 30001 GTEST_LIBS=`$GTEST_CONFIG --libs` 30002 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags` 30003 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags` 30004 30005 30006 30007 30008 gta=true 30009 ;; 30010 esac 30011 gtest_version=`$GTEST_CONFIG --version` 30012 case "$gta" in 30013 true) 30014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5 30015$as_echo "($gtest_version) ok" >&6; } 30016 ;; 30017 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5 30018$as_echo "($gtest_version) not ok" >&6; } 30019 ;; 30020 esac 30021 { gtest_version_test=; unset gtest_version_test;} 30022 { gtest_version=; unset gtest_version;} 30023 esac 30024esac 30025 if $gta; then 30026 GTEST_AVAILABLE_TRUE= 30027 GTEST_AVAILABLE_FALSE='#' 30028else 30029 GTEST_AVAILABLE_TRUE='#' 30030 GTEST_AVAILABLE_FALSE= 30031fi 30032 30033 30034 30035 30036# All libraries should be in various LIB_* variables now. 30037#LIBS= 30038# Sadly not. There is a gettext() check somewhere, and on Solaris this pulls 30039# in -lintl -lgen, outside our "scope". 30040 30041ac_config_files="$ac_config_files Makefile" 30042 30043ac_config_files="$ac_config_files include/Makefile" 30044 30045ac_config_files="$ac_config_files scripts/Makefile" 30046 30047ac_config_files="$ac_config_files tests/Makefile" 30048 30049 30050cat >confcache <<\_ACEOF 30051# This file is a shell script that caches the results of configure 30052# tests run on this system so they can be shared between configure 30053# scripts and configure runs, see configure's option --config-cache. 30054# It is not useful on other systems. If it contains results you don't 30055# want to keep, you may remove or edit it. 30056# 30057# config.status only pays attention to the cache file if you give it 30058# the --recheck option to rerun configure. 30059# 30060# `ac_cv_env_foo' variables (set or unset) will be overridden when 30061# loading this file, other *unset* `ac_cv_foo' will be assigned the 30062# following values. 30063 30064_ACEOF 30065 30066# The following way of writing the cache mishandles newlines in values, 30067# but we know of no workaround that is simple, portable, and efficient. 30068# So, we kill variables containing newlines. 30069# Ultrix sh set writes to stderr and can't be redirected directly, 30070# and sets the high bit in the cache file unless we assign to the vars. 30071( 30072 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 30073 eval ac_val=\$$ac_var 30074 case $ac_val in #( 30075 *${as_nl}*) 30076 case $ac_var in #( 30077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 30078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 30079 esac 30080 case $ac_var in #( 30081 _ | IFS | as_nl) ;; #( 30082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 30083 *) { eval $ac_var=; unset $ac_var;} ;; 30084 esac ;; 30085 esac 30086 done 30087 30088 (set) 2>&1 | 30089 case $as_nl`(ac_space=' '; set) 2>&1` in #( 30090 *${as_nl}ac_space=\ *) 30091 # `set' does not quote correctly, so add quotes: double-quote 30092 # substitution turns \\\\ into \\, and sed turns \\ into \. 30093 sed -n \ 30094 "s/'/'\\\\''/g; 30095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 30096 ;; #( 30097 *) 30098 # `set' quotes correctly as required by POSIX, so do not add quotes. 30099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 30100 ;; 30101 esac | 30102 sort 30103) | 30104 sed ' 30105 /^ac_cv_env_/b end 30106 t clear 30107 :clear 30108 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 30109 t end 30110 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 30111 :end' >>confcache 30112if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 30113 if test -w "$cache_file"; then 30114 if test "x$cache_file" != "x/dev/null"; then 30115 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 30116$as_echo "$as_me: updating cache $cache_file" >&6;} 30117 if test ! -f "$cache_file" || test -h "$cache_file"; then 30118 cat confcache >"$cache_file" 30119 else 30120 case $cache_file in #( 30121 */* | ?:*) 30122 mv -f confcache "$cache_file"$$ && 30123 mv -f "$cache_file"$$ "$cache_file" ;; #( 30124 *) 30125 mv -f confcache "$cache_file" ;; 30126 esac 30127 fi 30128 fi 30129 else 30130 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 30131$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 30132 fi 30133fi 30134rm -f confcache 30135 30136test "x$prefix" = xNONE && prefix=$ac_default_prefix 30137# Let make expand exec_prefix. 30138test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 30139 30140DEFS=-DHAVE_CONFIG_H 30141 30142ac_libobjs= 30143ac_ltlibobjs= 30144U= 30145for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 30146 # 1. Remove the extension, and $U if already installed. 30147 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 30148 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 30149 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 30150 # will be set to the directory where LIBOBJS objects are built. 30151 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 30152 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 30153done 30154LIBOBJS=$ac_libobjs 30155 30156LTLIBOBJS=$ac_ltlibobjs 30157 30158 30159 if test -n "$EXEEXT"; then 30160 am__EXEEXT_TRUE= 30161 am__EXEEXT_FALSE='#' 30162else 30163 am__EXEEXT_TRUE='#' 30164 am__EXEEXT_FALSE= 30165fi 30166 30167if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 30168 as_fn_error $? "conditional \"AMDEP\" was never defined. 30169Usually this means the macro was only invoked conditionally." "$LINENO" 5 30170fi 30171if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 30172 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 30173Usually this means the macro was only invoked conditionally." "$LINENO" 5 30174fi 30175if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 30176 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 30177Usually this means the macro was only invoked conditionally." "$LINENO" 5 30178fi 30179 30180if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then 30181 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined. 30182Usually this means the macro was only invoked conditionally." "$LINENO" 5 30183fi 30184if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then 30185 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined. 30186Usually this means the macro was only invoked conditionally." "$LINENO" 5 30187fi 30188if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then 30189 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined. 30190Usually this means the macro was only invoked conditionally." "$LINENO" 5 30191fi 30192if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 30193 as_fn_error $? "conditional \"PTHREADS\" was never defined. 30194Usually this means the macro was only invoked conditionally." "$LINENO" 5 30195fi 30196if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then 30197 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined. 30198Usually this means the macro was only invoked conditionally." "$LINENO" 5 30199fi 30200if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then 30201 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined. 30202Usually this means the macro was only invoked conditionally." "$LINENO" 5 30203fi 30204if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then 30205 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined. 30206Usually this means the macro was only invoked conditionally." "$LINENO" 5 30207fi 30208if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then 30209 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined. 30210Usually this means the macro was only invoked conditionally." "$LINENO" 5 30211fi 30212if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then 30213 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined. 30214Usually this means the macro was only invoked conditionally." "$LINENO" 5 30215fi 30216if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 30217 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 30218Usually this means the macro was only invoked conditionally." "$LINENO" 5 30219fi 30220if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then 30221 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined. 30222Usually this means the macro was only invoked conditionally." "$LINENO" 5 30223fi 30224 30225: "${CONFIG_STATUS=./config.status}" 30226ac_write_fail=0 30227ac_clean_files_save=$ac_clean_files 30228ac_clean_files="$ac_clean_files $CONFIG_STATUS" 30229{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 30230$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 30231as_write_fail=0 30232cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 30233#! $SHELL 30234# Generated by $as_me. 30235# Run this file to recreate the current configuration. 30236# Compiler output produced by configure, useful for debugging 30237# configure, is in config.log if it exists. 30238 30239debug=false 30240ac_cs_recheck=false 30241ac_cs_silent=false 30242 30243SHELL=\${CONFIG_SHELL-$SHELL} 30244export SHELL 30245_ASEOF 30246cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 30247## -------------------- ## 30248## M4sh Initialization. ## 30249## -------------------- ## 30250 30251# Be more Bourne compatible 30252DUALCASE=1; export DUALCASE # for MKS sh 30253if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 30254 emulate sh 30255 NULLCMD=: 30256 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 30257 # is contrary to our usage. Disable this feature. 30258 alias -g '${1+"$@"}'='"$@"' 30259 setopt NO_GLOB_SUBST 30260else 30261 case `(set -o) 2>/dev/null` in #( 30262 *posix*) : 30263 set -o posix ;; #( 30264 *) : 30265 ;; 30266esac 30267fi 30268 30269 30270as_nl=' 30271' 30272export as_nl 30273# Printing a long string crashes Solaris 7 /usr/bin/printf. 30274as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 30275as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 30276as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 30277# Prefer a ksh shell builtin over an external printf program on Solaris, 30278# but without wasting forks for bash or zsh. 30279if test -z "$BASH_VERSION$ZSH_VERSION" \ 30280 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 30281 as_echo='print -r --' 30282 as_echo_n='print -rn --' 30283elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 30284 as_echo='printf %s\n' 30285 as_echo_n='printf %s' 30286else 30287 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 30288 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 30289 as_echo_n='/usr/ucb/echo -n' 30290 else 30291 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 30292 as_echo_n_body='eval 30293 arg=$1; 30294 case $arg in #( 30295 *"$as_nl"*) 30296 expr "X$arg" : "X\\(.*\\)$as_nl"; 30297 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 30298 esac; 30299 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 30300 ' 30301 export as_echo_n_body 30302 as_echo_n='sh -c $as_echo_n_body as_echo' 30303 fi 30304 export as_echo_body 30305 as_echo='sh -c $as_echo_body as_echo' 30306fi 30307 30308# The user is always right. 30309if test "${PATH_SEPARATOR+set}" != set; then 30310 PATH_SEPARATOR=: 30311 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 30312 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 30313 PATH_SEPARATOR=';' 30314 } 30315fi 30316 30317 30318# IFS 30319# We need space, tab and new line, in precisely that order. Quoting is 30320# there to prevent editors from complaining about space-tab. 30321# (If _AS_PATH_WALK were called with IFS unset, it would disable word 30322# splitting by setting IFS to empty value.) 30323IFS=" "" $as_nl" 30324 30325# Find who we are. Look in the path if we contain no directory separator. 30326as_myself= 30327case $0 in #(( 30328 *[\\/]* ) as_myself=$0 ;; 30329 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30330for as_dir in $PATH 30331do 30332 IFS=$as_save_IFS 30333 test -z "$as_dir" && as_dir=. 30334 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 30335 done 30336IFS=$as_save_IFS 30337 30338 ;; 30339esac 30340# We did not find ourselves, most probably we were run as `sh COMMAND' 30341# in which case we are not to be found in the path. 30342if test "x$as_myself" = x; then 30343 as_myself=$0 30344fi 30345if test ! -f "$as_myself"; then 30346 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 30347 exit 1 30348fi 30349 30350# Unset variables that we do not need and which cause bugs (e.g. in 30351# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 30352# suppresses any "Segmentation fault" message there. '((' could 30353# trigger a bug in pdksh 5.2.14. 30354for as_var in BASH_ENV ENV MAIL MAILPATH 30355do eval test x\${$as_var+set} = xset \ 30356 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 30357done 30358PS1='$ ' 30359PS2='> ' 30360PS4='+ ' 30361 30362# NLS nuisances. 30363LC_ALL=C 30364export LC_ALL 30365LANGUAGE=C 30366export LANGUAGE 30367 30368# CDPATH. 30369(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 30370 30371 30372# as_fn_error STATUS ERROR [LINENO LOG_FD] 30373# ---------------------------------------- 30374# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 30375# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 30376# script with STATUS, using 1 if that was 0. 30377as_fn_error () 30378{ 30379 as_status=$1; test $as_status -eq 0 && as_status=1 30380 if test "$4"; then 30381 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 30382 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 30383 fi 30384 $as_echo "$as_me: error: $2" >&2 30385 as_fn_exit $as_status 30386} # as_fn_error 30387 30388 30389# as_fn_set_status STATUS 30390# ----------------------- 30391# Set $? to STATUS, without forking. 30392as_fn_set_status () 30393{ 30394 return $1 30395} # as_fn_set_status 30396 30397# as_fn_exit STATUS 30398# ----------------- 30399# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 30400as_fn_exit () 30401{ 30402 set +e 30403 as_fn_set_status $1 30404 exit $1 30405} # as_fn_exit 30406 30407# as_fn_unset VAR 30408# --------------- 30409# Portably unset VAR. 30410as_fn_unset () 30411{ 30412 { eval $1=; unset $1;} 30413} 30414as_unset=as_fn_unset 30415# as_fn_append VAR VALUE 30416# ---------------------- 30417# Append the text in VALUE to the end of the definition contained in VAR. Take 30418# advantage of any shell optimizations that allow amortized linear growth over 30419# repeated appends, instead of the typical quadratic growth present in naive 30420# implementations. 30421if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 30422 eval 'as_fn_append () 30423 { 30424 eval $1+=\$2 30425 }' 30426else 30427 as_fn_append () 30428 { 30429 eval $1=\$$1\$2 30430 } 30431fi # as_fn_append 30432 30433# as_fn_arith ARG... 30434# ------------------ 30435# Perform arithmetic evaluation on the ARGs, and store the result in the 30436# global $as_val. Take advantage of shells that can avoid forks. The arguments 30437# must be portable across $(()) and expr. 30438if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 30439 eval 'as_fn_arith () 30440 { 30441 as_val=$(( $* )) 30442 }' 30443else 30444 as_fn_arith () 30445 { 30446 as_val=`expr "$@" || test $? -eq 1` 30447 } 30448fi # as_fn_arith 30449 30450 30451if expr a : '\(a\)' >/dev/null 2>&1 && 30452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 30453 as_expr=expr 30454else 30455 as_expr=false 30456fi 30457 30458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 30459 as_basename=basename 30460else 30461 as_basename=false 30462fi 30463 30464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 30465 as_dirname=dirname 30466else 30467 as_dirname=false 30468fi 30469 30470as_me=`$as_basename -- "$0" || 30471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 30472 X"$0" : 'X\(//\)$' \| \ 30473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 30474$as_echo X/"$0" | 30475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 30476 s//\1/ 30477 q 30478 } 30479 /^X\/\(\/\/\)$/{ 30480 s//\1/ 30481 q 30482 } 30483 /^X\/\(\/\).*/{ 30484 s//\1/ 30485 q 30486 } 30487 s/.*/./; q'` 30488 30489# Avoid depending upon Character Ranges. 30490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 30491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 30492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 30493as_cr_digits='0123456789' 30494as_cr_alnum=$as_cr_Letters$as_cr_digits 30495 30496ECHO_C= ECHO_N= ECHO_T= 30497case `echo -n x` in #((((( 30498-n*) 30499 case `echo 'xy\c'` in 30500 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 30501 xy) ECHO_C='\c';; 30502 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 30503 ECHO_T=' ';; 30504 esac;; 30505*) 30506 ECHO_N='-n';; 30507esac 30508 30509rm -f conf$$ conf$$.exe conf$$.file 30510if test -d conf$$.dir; then 30511 rm -f conf$$.dir/conf$$.file 30512else 30513 rm -f conf$$.dir 30514 mkdir conf$$.dir 2>/dev/null 30515fi 30516if (echo >conf$$.file) 2>/dev/null; then 30517 if ln -s conf$$.file conf$$ 2>/dev/null; then 30518 as_ln_s='ln -s' 30519 # ... but there are two gotchas: 30520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 30521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 30522 # In both cases, we have to default to `cp -p'. 30523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 30524 as_ln_s='cp -p' 30525 elif ln conf$$.file conf$$ 2>/dev/null; then 30526 as_ln_s=ln 30527 else 30528 as_ln_s='cp -p' 30529 fi 30530else 30531 as_ln_s='cp -p' 30532fi 30533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 30534rmdir conf$$.dir 2>/dev/null 30535 30536 30537# as_fn_mkdir_p 30538# ------------- 30539# Create "$as_dir" as a directory, including parents if necessary. 30540as_fn_mkdir_p () 30541{ 30542 30543 case $as_dir in #( 30544 -*) as_dir=./$as_dir;; 30545 esac 30546 test -d "$as_dir" || eval $as_mkdir_p || { 30547 as_dirs= 30548 while :; do 30549 case $as_dir in #( 30550 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 30551 *) as_qdir=$as_dir;; 30552 esac 30553 as_dirs="'$as_qdir' $as_dirs" 30554 as_dir=`$as_dirname -- "$as_dir" || 30555$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30556 X"$as_dir" : 'X\(//\)[^/]' \| \ 30557 X"$as_dir" : 'X\(//\)$' \| \ 30558 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 30559$as_echo X"$as_dir" | 30560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30561 s//\1/ 30562 q 30563 } 30564 /^X\(\/\/\)[^/].*/{ 30565 s//\1/ 30566 q 30567 } 30568 /^X\(\/\/\)$/{ 30569 s//\1/ 30570 q 30571 } 30572 /^X\(\/\).*/{ 30573 s//\1/ 30574 q 30575 } 30576 s/.*/./; q'` 30577 test -d "$as_dir" && break 30578 done 30579 test -z "$as_dirs" || eval "mkdir $as_dirs" 30580 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 30581 30582 30583} # as_fn_mkdir_p 30584if mkdir -p . 2>/dev/null; then 30585 as_mkdir_p='mkdir -p "$as_dir"' 30586else 30587 test -d ./-p && rmdir ./-p 30588 as_mkdir_p=false 30589fi 30590 30591if test -x / >/dev/null 2>&1; then 30592 as_test_x='test -x' 30593else 30594 if ls -dL / >/dev/null 2>&1; then 30595 as_ls_L_option=L 30596 else 30597 as_ls_L_option= 30598 fi 30599 as_test_x=' 30600 eval sh -c '\'' 30601 if test -d "$1"; then 30602 test -d "$1/."; 30603 else 30604 case $1 in #( 30605 -*)set "./$1";; 30606 esac; 30607 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 30608 ???[sx]*):;;*)false;;esac;fi 30609 '\'' sh 30610 ' 30611fi 30612as_executable_p=$as_test_x 30613 30614# Sed expression to map a string onto a valid CPP name. 30615as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 30616 30617# Sed expression to map a string onto a valid variable name. 30618as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 30619 30620 30621exec 6>&1 30622## ----------------------------------- ## 30623## Main body of $CONFIG_STATUS script. ## 30624## ----------------------------------- ## 30625_ASEOF 30626test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 30627 30628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30629# Save the log message, to keep $0 and so on meaningful, and to 30630# report actual input values of CONFIG_FILES etc. instead of their 30631# values after options handling. 30632ac_log=" 30633This file was extended by sntp $as_me 4.2.8p1, which was 30634generated by GNU Autoconf 2.68. Invocation command line was 30635 30636 CONFIG_FILES = $CONFIG_FILES 30637 CONFIG_HEADERS = $CONFIG_HEADERS 30638 CONFIG_LINKS = $CONFIG_LINKS 30639 CONFIG_COMMANDS = $CONFIG_COMMANDS 30640 $ $0 $@ 30641 30642on `(hostname || uname -n) 2>/dev/null | sed 1q` 30643" 30644 30645_ACEOF 30646 30647case $ac_config_files in *" 30648"*) set x $ac_config_files; shift; ac_config_files=$*;; 30649esac 30650 30651case $ac_config_headers in *" 30652"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 30653esac 30654 30655 30656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30657# Files that config.status was made for. 30658config_files="$ac_config_files" 30659config_headers="$ac_config_headers" 30660config_commands="$ac_config_commands" 30661 30662_ACEOF 30663 30664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30665ac_cs_usage="\ 30666\`$as_me' instantiates files and other configuration actions 30667from templates according to the current configuration. Unless the files 30668and actions are specified as TAGs, all are instantiated by default. 30669 30670Usage: $0 [OPTION]... [TAG]... 30671 30672 -h, --help print this help, then exit 30673 -V, --version print version number and configuration settings, then exit 30674 --config print configuration, then exit 30675 -q, --quiet, --silent 30676 do not print progress messages 30677 -d, --debug don't remove temporary files 30678 --recheck update $as_me by reconfiguring in the same conditions 30679 --file=FILE[:TEMPLATE] 30680 instantiate the configuration file FILE 30681 --header=FILE[:TEMPLATE] 30682 instantiate the configuration header FILE 30683 30684Configuration files: 30685$config_files 30686 30687Configuration headers: 30688$config_headers 30689 30690Configuration commands: 30691$config_commands 30692 30693Report bugs to <http://bugs.ntp.org./>. 30694sntp home page: <http://www.ntp.org./>." 30695 30696_ACEOF 30697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30698ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 30699ac_cs_version="\\ 30700sntp config.status 4.2.8p1 30701configured by $0, generated by GNU Autoconf 2.68, 30702 with options \\"\$ac_cs_config\\" 30703 30704Copyright (C) 2010 Free Software Foundation, Inc. 30705This config.status script is free software; the Free Software Foundation 30706gives unlimited permission to copy, distribute and modify it." 30707 30708ac_pwd='$ac_pwd' 30709srcdir='$srcdir' 30710INSTALL='$INSTALL' 30711MKDIR_P='$MKDIR_P' 30712AWK='$AWK' 30713test -n "\$AWK" || AWK=awk 30714_ACEOF 30715 30716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30717# The default lists apply if the user does not specify any file. 30718ac_need_defaults=: 30719while test $# != 0 30720do 30721 case $1 in 30722 --*=?*) 30723 ac_option=`expr "X$1" : 'X\([^=]*\)='` 30724 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 30725 ac_shift=: 30726 ;; 30727 --*=) 30728 ac_option=`expr "X$1" : 'X\([^=]*\)='` 30729 ac_optarg= 30730 ac_shift=: 30731 ;; 30732 *) 30733 ac_option=$1 30734 ac_optarg=$2 30735 ac_shift=shift 30736 ;; 30737 esac 30738 30739 case $ac_option in 30740 # Handling of the options. 30741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 30742 ac_cs_recheck=: ;; 30743 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 30744 $as_echo "$ac_cs_version"; exit ;; 30745 --config | --confi | --conf | --con | --co | --c ) 30746 $as_echo "$ac_cs_config"; exit ;; 30747 --debug | --debu | --deb | --de | --d | -d ) 30748 debug=: ;; 30749 --file | --fil | --fi | --f ) 30750 $ac_shift 30751 case $ac_optarg in 30752 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30753 '') as_fn_error $? "missing file argument" ;; 30754 esac 30755 as_fn_append CONFIG_FILES " '$ac_optarg'" 30756 ac_need_defaults=false;; 30757 --header | --heade | --head | --hea ) 30758 $ac_shift 30759 case $ac_optarg in 30760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30761 esac 30762 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 30763 ac_need_defaults=false;; 30764 --he | --h) 30765 # Conflict between --help and --header 30766 as_fn_error $? "ambiguous option: \`$1' 30767Try \`$0 --help' for more information.";; 30768 --help | --hel | -h ) 30769 $as_echo "$ac_cs_usage"; exit ;; 30770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 30771 | -silent | --silent | --silen | --sile | --sil | --si | --s) 30772 ac_cs_silent=: ;; 30773 30774 # This is an error. 30775 -*) as_fn_error $? "unrecognized option: \`$1' 30776Try \`$0 --help' for more information." ;; 30777 30778 *) as_fn_append ac_config_targets " $1" 30779 ac_need_defaults=false ;; 30780 30781 esac 30782 shift 30783done 30784 30785ac_configure_extra_args= 30786 30787if $ac_cs_silent; then 30788 exec 6>/dev/null 30789 ac_configure_extra_args="$ac_configure_extra_args --silent" 30790fi 30791 30792_ACEOF 30793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30794if \$ac_cs_recheck; then 30795 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 30796 shift 30797 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 30798 CONFIG_SHELL='$SHELL' 30799 export CONFIG_SHELL 30800 exec "\$@" 30801fi 30802 30803_ACEOF 30804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30805exec 5>>config.log 30806{ 30807 echo 30808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 30809## Running $as_me. ## 30810_ASBOX 30811 $as_echo "$ac_log" 30812} >&5 30813 30814_ACEOF 30815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30816# 30817# INIT-COMMANDS 30818# 30819AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 30820 30821 30822# The HP-UX ksh and POSIX shell print the target directory to stdout 30823# if CDPATH is set. 30824(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 30825 30826sed_quote_subst='$sed_quote_subst' 30827double_quote_subst='$double_quote_subst' 30828delay_variable_subst='$delay_variable_subst' 30829SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 30830Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 30831GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 30832EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 30833FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 30834SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 30835ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 30836LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 30837enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 30838macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 30839macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 30840enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 30841pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 30842enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 30843host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 30844host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 30845host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 30846build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 30847build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 30848build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 30849NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 30850LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 30851max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 30852ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 30853exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 30854lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 30855lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 30856lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 30857lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 30858lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 30859reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 30860reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 30861OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 30862deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 30863file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 30864file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 30865want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 30866DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 30867sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 30868AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 30869AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 30870archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 30871STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 30872RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 30873old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 30874old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 30875old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 30876lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 30877CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 30878CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 30879compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 30880GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 30881lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 30882lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 30883lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 30884lt_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"`' 30885nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 30886lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 30887objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 30888MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 30889lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 30890lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 30891lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 30892lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 30893lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 30894need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 30895MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 30896DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 30897NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 30898LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 30899OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 30900OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 30901libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 30902shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 30903extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 30904archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 30905enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 30906export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 30907whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 30908compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 30909old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 30910old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 30911archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 30912archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 30913module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 30914module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 30915with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 30916allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 30917no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 30918hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 30919hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 30920hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 30921hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 30922hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 30923hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 30924hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 30925hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 30926inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 30927link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 30928always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 30929export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 30930exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 30931include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 30932prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 30933postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 30934file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 30935variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 30936need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 30937need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 30938version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 30939runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 30940shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 30941shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 30942libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 30943library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 30944soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 30945install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 30946postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 30947postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 30948finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 30949finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 30950hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 30951sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 30952sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 30953hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 30954enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 30955enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 30956enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 30957old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 30958striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 30959compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 30960predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 30961postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 30962predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 30963postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 30964compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 30965LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 30966reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 30967reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30968old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30969compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 30970GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 30971lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 30972lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 30973lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 30974lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 30975lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 30976archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 30977enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 30978export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 30979whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 30980compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 30981old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30982old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30983archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30984archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30985module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30986module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30987with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 30988allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 30989no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 30990hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 30991hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 30992hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 30993hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 30994hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 30995hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 30996hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 30997hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 30998inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 30999link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 31000always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 31001export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31002exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 31003include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 31004prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31005postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31006file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 31007hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 31008compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 31009predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 31010postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 31011predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 31012postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 31013compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 31014 31015LTCC='$LTCC' 31016LTCFLAGS='$LTCFLAGS' 31017compiler='$compiler_DEFAULT' 31018 31019# A function that is used when there is no print builtin or printf. 31020func_fallback_echo () 31021{ 31022 eval 'cat <<_LTECHO_EOF 31023\$1 31024_LTECHO_EOF' 31025} 31026 31027# Quote evaled strings. 31028for var in SED \ 31029GREP \ 31030EGREP \ 31031FGREP \ 31032SHELL \ 31033ECHO \ 31034LD \ 31035NM \ 31036LN_S \ 31037lt_SP2NL \ 31038lt_NL2SP \ 31039reload_flag \ 31040OBJDUMP \ 31041deplibs_check_method \ 31042file_magic_cmd \ 31043file_magic_glob \ 31044want_nocaseglob \ 31045DLLTOOL \ 31046sharedlib_from_linklib_cmd \ 31047AR \ 31048AR_FLAGS \ 31049archiver_list_spec \ 31050STRIP \ 31051RANLIB \ 31052CC \ 31053CFLAGS \ 31054compiler \ 31055lt_cv_sys_global_symbol_pipe \ 31056lt_cv_sys_global_symbol_to_cdecl \ 31057lt_cv_sys_global_symbol_to_c_name_address \ 31058lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 31059nm_file_list_spec \ 31060lt_prog_compiler_no_builtin_flag \ 31061lt_prog_compiler_pic \ 31062lt_prog_compiler_wl \ 31063lt_prog_compiler_static \ 31064lt_cv_prog_compiler_c_o \ 31065need_locks \ 31066MANIFEST_TOOL \ 31067DSYMUTIL \ 31068NMEDIT \ 31069LIPO \ 31070OTOOL \ 31071OTOOL64 \ 31072shrext_cmds \ 31073export_dynamic_flag_spec \ 31074whole_archive_flag_spec \ 31075compiler_needs_object \ 31076with_gnu_ld \ 31077allow_undefined_flag \ 31078no_undefined_flag \ 31079hardcode_libdir_flag_spec \ 31080hardcode_libdir_flag_spec_ld \ 31081hardcode_libdir_separator \ 31082exclude_expsyms \ 31083include_expsyms \ 31084file_list_spec \ 31085variables_saved_for_relink \ 31086libname_spec \ 31087library_names_spec \ 31088soname_spec \ 31089install_override_mode \ 31090finish_eval \ 31091old_striplib \ 31092striplib \ 31093compiler_lib_search_dirs \ 31094predep_objects \ 31095postdep_objects \ 31096predeps \ 31097postdeps \ 31098compiler_lib_search_path \ 31099LD_CXX \ 31100reload_flag_CXX \ 31101compiler_CXX \ 31102lt_prog_compiler_no_builtin_flag_CXX \ 31103lt_prog_compiler_pic_CXX \ 31104lt_prog_compiler_wl_CXX \ 31105lt_prog_compiler_static_CXX \ 31106lt_cv_prog_compiler_c_o_CXX \ 31107export_dynamic_flag_spec_CXX \ 31108whole_archive_flag_spec_CXX \ 31109compiler_needs_object_CXX \ 31110with_gnu_ld_CXX \ 31111allow_undefined_flag_CXX \ 31112no_undefined_flag_CXX \ 31113hardcode_libdir_flag_spec_CXX \ 31114hardcode_libdir_flag_spec_ld_CXX \ 31115hardcode_libdir_separator_CXX \ 31116exclude_expsyms_CXX \ 31117include_expsyms_CXX \ 31118file_list_spec_CXX \ 31119compiler_lib_search_dirs_CXX \ 31120predep_objects_CXX \ 31121postdep_objects_CXX \ 31122predeps_CXX \ 31123postdeps_CXX \ 31124compiler_lib_search_path_CXX; do 31125 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 31126 *[\\\\\\\`\\"\\\$]*) 31127 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 31128 ;; 31129 *) 31130 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 31131 ;; 31132 esac 31133done 31134 31135# Double-quote double-evaled strings. 31136for var in reload_cmds \ 31137old_postinstall_cmds \ 31138old_postuninstall_cmds \ 31139old_archive_cmds \ 31140extract_expsyms_cmds \ 31141old_archive_from_new_cmds \ 31142old_archive_from_expsyms_cmds \ 31143archive_cmds \ 31144archive_expsym_cmds \ 31145module_cmds \ 31146module_expsym_cmds \ 31147export_symbols_cmds \ 31148prelink_cmds \ 31149postlink_cmds \ 31150postinstall_cmds \ 31151postuninstall_cmds \ 31152finish_cmds \ 31153sys_lib_search_path_spec \ 31154sys_lib_dlsearch_path_spec \ 31155reload_cmds_CXX \ 31156old_archive_cmds_CXX \ 31157old_archive_from_new_cmds_CXX \ 31158old_archive_from_expsyms_cmds_CXX \ 31159archive_cmds_CXX \ 31160archive_expsym_cmds_CXX \ 31161module_cmds_CXX \ 31162module_expsym_cmds_CXX \ 31163export_symbols_cmds_CXX \ 31164prelink_cmds_CXX \ 31165postlink_cmds_CXX; do 31166 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 31167 *[\\\\\\\`\\"\\\$]*) 31168 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 31169 ;; 31170 *) 31171 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 31172 ;; 31173 esac 31174done 31175 31176ac_aux_dir='$ac_aux_dir' 31177xsi_shell='$xsi_shell' 31178lt_shell_append='$lt_shell_append' 31179 31180# See if we are running on zsh, and set the options which allow our 31181# commands through without removal of \ escapes INIT. 31182if test -n "\${ZSH_VERSION+set}" ; then 31183 setopt NO_GLOB_SUBST 31184fi 31185 31186 31187 PACKAGE='$PACKAGE' 31188 VERSION='$VERSION' 31189 TIMESTAMP='$TIMESTAMP' 31190 RM='$RM' 31191 ofile='$ofile' 31192 31193 31194 31195 31196 31197 31198_ACEOF 31199 31200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31201 31202# Handling of arguments. 31203for ac_config_target in $ac_config_targets 31204do 31205 case $ac_config_target in 31206 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 31207 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 31208 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 31209 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;; 31210 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 31211 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 31212 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 31213 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 31214 31215 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 31216 esac 31217done 31218 31219 31220# If the user did not use the arguments to specify the items to instantiate, 31221# then the envvar interface is used. Set only those that are not. 31222# We use the long form for the default assignment because of an extremely 31223# bizarre bug on SunOS 4.1.3. 31224if $ac_need_defaults; then 31225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 31226 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 31227 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 31228fi 31229 31230# Have a temporary directory for convenience. Make it in the build tree 31231# simply because there is no reason against having it here, and in addition, 31232# creating and moving files from /tmp can sometimes cause problems. 31233# Hook for its removal unless debugging. 31234# Note that there is a small window in which the directory will not be cleaned: 31235# after its creation but before its name has been assigned to `$tmp'. 31236$debug || 31237{ 31238 tmp= ac_tmp= 31239 trap 'exit_status=$? 31240 : "${ac_tmp:=$tmp}" 31241 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 31242' 0 31243 trap 'as_fn_exit 1' 1 2 13 15 31244} 31245# Create a (secure) tmp directory for tmp files. 31246 31247{ 31248 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 31249 test -d "$tmp" 31250} || 31251{ 31252 tmp=./conf$$-$RANDOM 31253 (umask 077 && mkdir "$tmp") 31254} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 31255ac_tmp=$tmp 31256 31257# Set up the scripts for CONFIG_FILES section. 31258# No need to generate them if there are no CONFIG_FILES. 31259# This happens for instance with `./config.status config.h'. 31260if test -n "$CONFIG_FILES"; then 31261 31262 31263ac_cr=`echo X | tr X '\015'` 31264# On cygwin, bash can eat \r inside `` if the user requested igncr. 31265# But we know of no other shell where ac_cr would be empty at this 31266# point, so we can use a bashism as a fallback. 31267if test "x$ac_cr" = x; then 31268 eval ac_cr=\$\'\\r\' 31269fi 31270ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 31271if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 31272 ac_cs_awk_cr='\\r' 31273else 31274 ac_cs_awk_cr=$ac_cr 31275fi 31276 31277echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 31278_ACEOF 31279 31280 31281{ 31282 echo "cat >conf$$subs.awk <<_ACEOF" && 31283 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 31284 echo "_ACEOF" 31285} >conf$$subs.sh || 31286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31287ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 31288ac_delim='%!_!# ' 31289for ac_last_try in false false false false false :; do 31290 . ./conf$$subs.sh || 31291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31292 31293 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 31294 if test $ac_delim_n = $ac_delim_num; then 31295 break 31296 elif $ac_last_try; then 31297 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31298 else 31299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 31300 fi 31301done 31302rm -f conf$$subs.sh 31303 31304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31305cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 31306_ACEOF 31307sed -n ' 31308h 31309s/^/S["/; s/!.*/"]=/ 31310p 31311g 31312s/^[^!]*!// 31313:repl 31314t repl 31315s/'"$ac_delim"'$// 31316t delim 31317:nl 31318h 31319s/\(.\{148\}\)..*/\1/ 31320t more1 31321s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 31322p 31323n 31324b repl 31325:more1 31326s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 31327p 31328g 31329s/.\{148\}// 31330t nl 31331:delim 31332h 31333s/\(.\{148\}\)..*/\1/ 31334t more2 31335s/["\\]/\\&/g; s/^/"/; s/$/"/ 31336p 31337b 31338:more2 31339s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 31340p 31341g 31342s/.\{148\}// 31343t delim 31344' <conf$$subs.awk | sed ' 31345/^[^""]/{ 31346 N 31347 s/\n// 31348} 31349' >>$CONFIG_STATUS || ac_write_fail=1 31350rm -f conf$$subs.awk 31351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31352_ACAWK 31353cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 31354 for (key in S) S_is_set[key] = 1 31355 FS = "" 31356 31357} 31358{ 31359 line = $ 0 31360 nfields = split(line, field, "@") 31361 substed = 0 31362 len = length(field[1]) 31363 for (i = 2; i < nfields; i++) { 31364 key = field[i] 31365 keylen = length(key) 31366 if (S_is_set[key]) { 31367 value = S[key] 31368 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 31369 len += length(value) + length(field[++i]) 31370 substed = 1 31371 } else 31372 len += 1 + keylen 31373 } 31374 31375 print line 31376} 31377 31378_ACAWK 31379_ACEOF 31380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31381if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 31382 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 31383else 31384 cat 31385fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 31386 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 31387_ACEOF 31388 31389# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 31390# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 31391# trailing colons and then remove the whole line if VPATH becomes empty 31392# (actually we leave an empty line to preserve line numbers). 31393if test "x$srcdir" = x.; then 31394 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 31395h 31396s/// 31397s/^/:/ 31398s/[ ]*$/:/ 31399s/:\$(srcdir):/:/g 31400s/:\${srcdir}:/:/g 31401s/:@srcdir@:/:/g 31402s/^:*// 31403s/:*$// 31404x 31405s/\(=[ ]*\).*/\1/ 31406G 31407s/\n// 31408s/^[^=]*=[ ]*$// 31409}' 31410fi 31411 31412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31413fi # test -n "$CONFIG_FILES" 31414 31415# Set up the scripts for CONFIG_HEADERS section. 31416# No need to generate them if there are no CONFIG_HEADERS. 31417# This happens for instance with `./config.status Makefile'. 31418if test -n "$CONFIG_HEADERS"; then 31419cat >"$ac_tmp/defines.awk" <<\_ACAWK || 31420BEGIN { 31421_ACEOF 31422 31423# Transform confdefs.h into an awk script `defines.awk', embedded as 31424# here-document in config.status, that substitutes the proper values into 31425# config.h.in to produce config.h. 31426 31427# Create a delimiter string that does not exist in confdefs.h, to ease 31428# handling of long lines. 31429ac_delim='%!_!# ' 31430for ac_last_try in false false :; do 31431 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 31432 if test -z "$ac_tt"; then 31433 break 31434 elif $ac_last_try; then 31435 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 31436 else 31437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 31438 fi 31439done 31440 31441# For the awk script, D is an array of macro values keyed by name, 31442# likewise P contains macro parameters if any. Preserve backslash 31443# newline sequences. 31444 31445ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 31446sed -n ' 31447s/.\{148\}/&'"$ac_delim"'/g 31448t rset 31449:rset 31450s/^[ ]*#[ ]*define[ ][ ]*/ / 31451t def 31452d 31453:def 31454s/\\$// 31455t bsnl 31456s/["\\]/\\&/g 31457s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 31458D["\1"]=" \3"/p 31459s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 31460d 31461:bsnl 31462s/["\\]/\\&/g 31463s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 31464D["\1"]=" \3\\\\\\n"\\/p 31465t cont 31466s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 31467t cont 31468d 31469:cont 31470n 31471s/.\{148\}/&'"$ac_delim"'/g 31472t clear 31473:clear 31474s/\\$// 31475t bsnlc 31476s/["\\]/\\&/g; s/^/"/; s/$/"/p 31477d 31478:bsnlc 31479s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 31480b cont 31481' <confdefs.h | sed ' 31482s/'"$ac_delim"'/"\\\ 31483"/g' >>$CONFIG_STATUS || ac_write_fail=1 31484 31485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31486 for (key in D) D_is_set[key] = 1 31487 FS = "" 31488} 31489/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 31490 line = \$ 0 31491 split(line, arg, " ") 31492 if (arg[1] == "#") { 31493 defundef = arg[2] 31494 mac1 = arg[3] 31495 } else { 31496 defundef = substr(arg[1], 2) 31497 mac1 = arg[2] 31498 } 31499 split(mac1, mac2, "(") #) 31500 macro = mac2[1] 31501 prefix = substr(line, 1, index(line, defundef) - 1) 31502 if (D_is_set[macro]) { 31503 # Preserve the white space surrounding the "#". 31504 print prefix "define", macro P[macro] D[macro] 31505 next 31506 } else { 31507 # Replace #undef with comments. This is necessary, for example, 31508 # in the case of _POSIX_SOURCE, which is predefined and required 31509 # on some systems where configure will not decide to define it. 31510 if (defundef == "undef") { 31511 print "/*", prefix defundef, macro, "*/" 31512 next 31513 } 31514 } 31515} 31516{ print } 31517_ACAWK 31518_ACEOF 31519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31520 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 31521fi # test -n "$CONFIG_HEADERS" 31522 31523 31524eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 31525shift 31526for ac_tag 31527do 31528 case $ac_tag in 31529 :[FHLC]) ac_mode=$ac_tag; continue;; 31530 esac 31531 case $ac_mode$ac_tag in 31532 :[FHL]*:*);; 31533 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 31534 :[FH]-) ac_tag=-:-;; 31535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 31536 esac 31537 ac_save_IFS=$IFS 31538 IFS=: 31539 set x $ac_tag 31540 IFS=$ac_save_IFS 31541 shift 31542 ac_file=$1 31543 shift 31544 31545 case $ac_mode in 31546 :L) ac_source=$1;; 31547 :[FH]) 31548 ac_file_inputs= 31549 for ac_f 31550 do 31551 case $ac_f in 31552 -) ac_f="$ac_tmp/stdin";; 31553 *) # Look for the file first in the build tree, then in the source tree 31554 # (if the path is not absolute). The absolute path cannot be DOS-style, 31555 # because $ac_f cannot contain `:'. 31556 test -f "$ac_f" || 31557 case $ac_f in 31558 [\\/$]*) false;; 31559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 31560 esac || 31561 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 31562 esac 31563 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 31564 as_fn_append ac_file_inputs " '$ac_f'" 31565 done 31566 31567 # Let's still pretend it is `configure' which instantiates (i.e., don't 31568 # use $as_me), people would be surprised to read: 31569 # /* config.h. Generated by config.status. */ 31570 configure_input='Generated from '` 31571 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 31572 `' by configure.' 31573 if test x"$ac_file" != x-; then 31574 configure_input="$ac_file. $configure_input" 31575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 31576$as_echo "$as_me: creating $ac_file" >&6;} 31577 fi 31578 # Neutralize special characters interpreted by sed in replacement strings. 31579 case $configure_input in #( 31580 *\&* | *\|* | *\\* ) 31581 ac_sed_conf_input=`$as_echo "$configure_input" | 31582 sed 's/[\\\\&|]/\\\\&/g'`;; #( 31583 *) ac_sed_conf_input=$configure_input;; 31584 esac 31585 31586 case $ac_tag in 31587 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 31588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 31589 esac 31590 ;; 31591 esac 31592 31593 ac_dir=`$as_dirname -- "$ac_file" || 31594$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31595 X"$ac_file" : 'X\(//\)[^/]' \| \ 31596 X"$ac_file" : 'X\(//\)$' \| \ 31597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 31598$as_echo X"$ac_file" | 31599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31600 s//\1/ 31601 q 31602 } 31603 /^X\(\/\/\)[^/].*/{ 31604 s//\1/ 31605 q 31606 } 31607 /^X\(\/\/\)$/{ 31608 s//\1/ 31609 q 31610 } 31611 /^X\(\/\).*/{ 31612 s//\1/ 31613 q 31614 } 31615 s/.*/./; q'` 31616 as_dir="$ac_dir"; as_fn_mkdir_p 31617 ac_builddir=. 31618 31619case "$ac_dir" in 31620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 31621*) 31622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 31623 # A ".." for each directory in $ac_dir_suffix. 31624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 31625 case $ac_top_builddir_sub in 31626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 31627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 31628 esac ;; 31629esac 31630ac_abs_top_builddir=$ac_pwd 31631ac_abs_builddir=$ac_pwd$ac_dir_suffix 31632# for backward compatibility: 31633ac_top_builddir=$ac_top_build_prefix 31634 31635case $srcdir in 31636 .) # We are building in place. 31637 ac_srcdir=. 31638 ac_top_srcdir=$ac_top_builddir_sub 31639 ac_abs_top_srcdir=$ac_pwd ;; 31640 [\\/]* | ?:[\\/]* ) # Absolute name. 31641 ac_srcdir=$srcdir$ac_dir_suffix; 31642 ac_top_srcdir=$srcdir 31643 ac_abs_top_srcdir=$srcdir ;; 31644 *) # Relative name. 31645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 31646 ac_top_srcdir=$ac_top_build_prefix$srcdir 31647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 31648esac 31649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 31650 31651 31652 case $ac_mode in 31653 :F) 31654 # 31655 # CONFIG_FILE 31656 # 31657 31658 case $INSTALL in 31659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 31660 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 31661 esac 31662 ac_MKDIR_P=$MKDIR_P 31663 case $MKDIR_P in 31664 [\\/$]* | ?:[\\/]* ) ;; 31665 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 31666 esac 31667_ACEOF 31668 31669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31670# If the template does not know about datarootdir, expand it. 31671# FIXME: This hack should be removed a few years after 2.60. 31672ac_datarootdir_hack=; ac_datarootdir_seen= 31673ac_sed_dataroot=' 31674/datarootdir/ { 31675 p 31676 q 31677} 31678/@datadir@/p 31679/@docdir@/p 31680/@infodir@/p 31681/@localedir@/p 31682/@mandir@/p' 31683case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 31684*datarootdir*) ac_datarootdir_seen=yes;; 31685*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 31686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 31687$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 31688_ACEOF 31689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31690 ac_datarootdir_hack=' 31691 s&@datadir@&$datadir&g 31692 s&@docdir@&$docdir&g 31693 s&@infodir@&$infodir&g 31694 s&@localedir@&$localedir&g 31695 s&@mandir@&$mandir&g 31696 s&\\\${datarootdir}&$datarootdir&g' ;; 31697esac 31698_ACEOF 31699 31700# Neutralize VPATH when `$srcdir' = `.'. 31701# Shell code in configure.ac might set extrasub. 31702# FIXME: do we really want to maintain this feature? 31703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31704ac_sed_extra="$ac_vpsub 31705$extrasub 31706_ACEOF 31707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31708:t 31709/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 31710s|@configure_input@|$ac_sed_conf_input|;t t 31711s&@top_builddir@&$ac_top_builddir_sub&;t t 31712s&@top_build_prefix@&$ac_top_build_prefix&;t t 31713s&@srcdir@&$ac_srcdir&;t t 31714s&@abs_srcdir@&$ac_abs_srcdir&;t t 31715s&@top_srcdir@&$ac_top_srcdir&;t t 31716s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 31717s&@builddir@&$ac_builddir&;t t 31718s&@abs_builddir@&$ac_abs_builddir&;t t 31719s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 31720s&@INSTALL@&$ac_INSTALL&;t t 31721s&@MKDIR_P@&$ac_MKDIR_P&;t t 31722$ac_datarootdir_hack 31723" 31724eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 31725 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31726 31727test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 31728 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 31729 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 31730 "$ac_tmp/out"`; test -z "$ac_out"; } && 31731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 31732which seems to be undefined. Please make sure it is defined" >&5 31733$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 31734which seems to be undefined. Please make sure it is defined" >&2;} 31735 31736 rm -f "$ac_tmp/stdin" 31737 case $ac_file in 31738 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 31739 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 31740 esac \ 31741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31742 ;; 31743 :H) 31744 # 31745 # CONFIG_HEADER 31746 # 31747 if test x"$ac_file" != x-; then 31748 { 31749 $as_echo "/* $configure_input */" \ 31750 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 31751 } >"$ac_tmp/config.h" \ 31752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31753 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 31754 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 31755$as_echo "$as_me: $ac_file is unchanged" >&6;} 31756 else 31757 rm -f "$ac_file" 31758 mv "$ac_tmp/config.h" "$ac_file" \ 31759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31760 fi 31761 else 31762 $as_echo "/* $configure_input */" \ 31763 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 31764 || as_fn_error $? "could not create -" "$LINENO" 5 31765 fi 31766# Compute "$ac_file"'s index in $config_headers. 31767_am_arg="$ac_file" 31768_am_stamp_count=1 31769for _am_header in $config_headers :; do 31770 case $_am_header in 31771 $_am_arg | $_am_arg:* ) 31772 break ;; 31773 * ) 31774 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 31775 esac 31776done 31777echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 31778$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31779 X"$_am_arg" : 'X\(//\)[^/]' \| \ 31780 X"$_am_arg" : 'X\(//\)$' \| \ 31781 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 31782$as_echo X"$_am_arg" | 31783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31784 s//\1/ 31785 q 31786 } 31787 /^X\(\/\/\)[^/].*/{ 31788 s//\1/ 31789 q 31790 } 31791 /^X\(\/\/\)$/{ 31792 s//\1/ 31793 q 31794 } 31795 /^X\(\/\).*/{ 31796 s//\1/ 31797 q 31798 } 31799 s/.*/./; q'`/stamp-h$_am_stamp_count 31800 ;; 31801 31802 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 31803$as_echo "$as_me: executing $ac_file commands" >&6;} 31804 ;; 31805 esac 31806 31807 31808 case $ac_file$ac_mode in 31809 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 31810 # Autoconf 2.62 quotes --file arguments for eval, but not when files 31811 # are listed without --file. Let's play safe and only enable the eval 31812 # if we detect the quoting. 31813 case $CONFIG_FILES in 31814 *\'*) eval set x "$CONFIG_FILES" ;; 31815 *) set x $CONFIG_FILES ;; 31816 esac 31817 shift 31818 for mf 31819 do 31820 # Strip MF so we end up with the name of the file. 31821 mf=`echo "$mf" | sed -e 's/:.*$//'` 31822 # Check whether this is an Automake generated Makefile or not. 31823 # We used to match only the files named `Makefile.in', but 31824 # some people rename them; so instead we look at the file content. 31825 # Grep'ing the first line is not enough: some people post-process 31826 # each Makefile.in and add a new line on top of each file to say so. 31827 # Grep'ing the whole file is not good either: AIX grep has a line 31828 # limit of 2048, but all sed's we know have understand at least 4000. 31829 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 31830 dirpart=`$as_dirname -- "$mf" || 31831$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31832 X"$mf" : 'X\(//\)[^/]' \| \ 31833 X"$mf" : 'X\(//\)$' \| \ 31834 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 31835$as_echo X"$mf" | 31836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31837 s//\1/ 31838 q 31839 } 31840 /^X\(\/\/\)[^/].*/{ 31841 s//\1/ 31842 q 31843 } 31844 /^X\(\/\/\)$/{ 31845 s//\1/ 31846 q 31847 } 31848 /^X\(\/\).*/{ 31849 s//\1/ 31850 q 31851 } 31852 s/.*/./; q'` 31853 else 31854 continue 31855 fi 31856 # Extract the definition of DEPDIR, am__include, and am__quote 31857 # from the Makefile without running `make'. 31858 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 31859 test -z "$DEPDIR" && continue 31860 am__include=`sed -n 's/^am__include = //p' < "$mf"` 31861 test -z "am__include" && continue 31862 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 31863 # When using ansi2knr, U may be empty or an underscore; expand it 31864 U=`sed -n 's/^U = //p' < "$mf"` 31865 # Find all dependency output files, they are included files with 31866 # $(DEPDIR) in their names. We invoke sed twice because it is the 31867 # simplest approach to changing $(DEPDIR) to its actual value in the 31868 # expansion. 31869 for file in `sed -n " 31870 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 31871 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 31872 # Make sure the directory exists. 31873 test -f "$dirpart/$file" && continue 31874 fdir=`$as_dirname -- "$file" || 31875$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31876 X"$file" : 'X\(//\)[^/]' \| \ 31877 X"$file" : 'X\(//\)$' \| \ 31878 X"$file" : 'X\(/\)' \| . 2>/dev/null || 31879$as_echo X"$file" | 31880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31881 s//\1/ 31882 q 31883 } 31884 /^X\(\/\/\)[^/].*/{ 31885 s//\1/ 31886 q 31887 } 31888 /^X\(\/\/\)$/{ 31889 s//\1/ 31890 q 31891 } 31892 /^X\(\/\).*/{ 31893 s//\1/ 31894 q 31895 } 31896 s/.*/./; q'` 31897 as_dir=$dirpart/$fdir; as_fn_mkdir_p 31898 # echo "creating $dirpart/$file" 31899 echo '# dummy' > "$dirpart/$file" 31900 done 31901 done 31902} 31903 ;; 31904 "libtool":C) 31905 31906 # See if we are running on zsh, and set the options which allow our 31907 # commands through without removal of \ escapes. 31908 if test -n "${ZSH_VERSION+set}" ; then 31909 setopt NO_GLOB_SUBST 31910 fi 31911 31912 cfgfile="${ofile}T" 31913 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 31914 $RM "$cfgfile" 31915 31916 cat <<_LT_EOF >> "$cfgfile" 31917#! $SHELL 31918 31919# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 31920# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 31921# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 31922# NOTE: Changes made to this file will be lost: look at ltmain.sh. 31923# 31924# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 31925# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 31926# Inc. 31927# Written by Gordon Matzigkeit, 1996 31928# 31929# This file is part of GNU Libtool. 31930# 31931# GNU Libtool is free software; you can redistribute it and/or 31932# modify it under the terms of the GNU General Public License as 31933# published by the Free Software Foundation; either version 2 of 31934# the License, or (at your option) any later version. 31935# 31936# As a special exception to the GNU General Public License, 31937# if you distribute this file as part of a program or library that 31938# is built using GNU Libtool, you may include this file under the 31939# same distribution terms that you use for the rest of that program. 31940# 31941# GNU Libtool is distributed in the hope that it will be useful, 31942# but WITHOUT ANY WARRANTY; without even the implied warranty of 31943# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 31944# GNU General Public License for more details. 31945# 31946# You should have received a copy of the GNU General Public License 31947# along with GNU Libtool; see the file COPYING. If not, a copy 31948# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 31949# obtained by writing to the Free Software Foundation, Inc., 31950# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 31951 31952 31953# The names of the tagged configurations supported by this script. 31954available_tags="CXX " 31955 31956# ### BEGIN LIBTOOL CONFIG 31957 31958# A sed program that does not truncate output. 31959SED=$lt_SED 31960 31961# Sed that helps us avoid accidentally triggering echo(1) options like -n. 31962Xsed="\$SED -e 1s/^X//" 31963 31964# A grep program that handles long lines. 31965GREP=$lt_GREP 31966 31967# An ERE matcher. 31968EGREP=$lt_EGREP 31969 31970# A literal string matcher. 31971FGREP=$lt_FGREP 31972 31973# Shell to use when invoking shell scripts. 31974SHELL=$lt_SHELL 31975 31976# An echo program that protects backslashes. 31977ECHO=$lt_ECHO 31978 31979# Whether or not to build shared libraries. 31980build_libtool_libs=$enable_shared 31981 31982# Which release of libtool.m4 was used? 31983macro_version=$macro_version 31984macro_revision=$macro_revision 31985 31986# Whether or not to build static libraries. 31987build_old_libs=$enable_static 31988 31989# What type of objects to build. 31990pic_mode=$pic_mode 31991 31992# Whether or not to optimize for fast installation. 31993fast_install=$enable_fast_install 31994 31995# The host system. 31996host_alias=$host_alias 31997host=$host 31998host_os=$host_os 31999 32000# The build system. 32001build_alias=$build_alias 32002build=$build 32003build_os=$build_os 32004 32005# A BSD- or MS-compatible name lister. 32006NM=$lt_NM 32007 32008# Whether we need soft or hard links. 32009LN_S=$lt_LN_S 32010 32011# What is the maximum length of a command? 32012max_cmd_len=$max_cmd_len 32013 32014# Object file suffix (normally "o"). 32015objext=$ac_objext 32016 32017# Executable file suffix (normally ""). 32018exeext=$exeext 32019 32020# whether the shell understands "unset". 32021lt_unset=$lt_unset 32022 32023# turn spaces into newlines. 32024SP2NL=$lt_lt_SP2NL 32025 32026# turn newlines into spaces. 32027NL2SP=$lt_lt_NL2SP 32028 32029# convert \$build file names to \$host format. 32030to_host_file_cmd=$lt_cv_to_host_file_cmd 32031 32032# convert \$build files to toolchain format. 32033to_tool_file_cmd=$lt_cv_to_tool_file_cmd 32034 32035# An object symbol dumper. 32036OBJDUMP=$lt_OBJDUMP 32037 32038# Method to check whether dependent libraries are shared objects. 32039deplibs_check_method=$lt_deplibs_check_method 32040 32041# Command to use when deplibs_check_method = "file_magic". 32042file_magic_cmd=$lt_file_magic_cmd 32043 32044# How to find potential files when deplibs_check_method = "file_magic". 32045file_magic_glob=$lt_file_magic_glob 32046 32047# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 32048want_nocaseglob=$lt_want_nocaseglob 32049 32050# DLL creation program. 32051DLLTOOL=$lt_DLLTOOL 32052 32053# Command to associate shared and link libraries. 32054sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 32055 32056# The archiver. 32057AR=$lt_AR 32058 32059# Flags to create an archive. 32060AR_FLAGS=$lt_AR_FLAGS 32061 32062# How to feed a file listing to the archiver. 32063archiver_list_spec=$lt_archiver_list_spec 32064 32065# A symbol stripping program. 32066STRIP=$lt_STRIP 32067 32068# Commands used to install an old-style archive. 32069RANLIB=$lt_RANLIB 32070old_postinstall_cmds=$lt_old_postinstall_cmds 32071old_postuninstall_cmds=$lt_old_postuninstall_cmds 32072 32073# Whether to use a lock for old archive extraction. 32074lock_old_archive_extraction=$lock_old_archive_extraction 32075 32076# A C compiler. 32077LTCC=$lt_CC 32078 32079# LTCC compiler flags. 32080LTCFLAGS=$lt_CFLAGS 32081 32082# Take the output of nm and produce a listing of raw symbols and C names. 32083global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 32084 32085# Transform the output of nm in a proper C declaration. 32086global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 32087 32088# Transform the output of nm in a C name address pair. 32089global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 32090 32091# Transform the output of nm in a C name address pair when lib prefix is needed. 32092global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 32093 32094# Specify filename containing input files for \$NM. 32095nm_file_list_spec=$lt_nm_file_list_spec 32096 32097# The root where to search for dependent libraries,and in which our libraries should be installed. 32098lt_sysroot=$lt_sysroot 32099 32100# The name of the directory that contains temporary libtool files. 32101objdir=$objdir 32102 32103# Used to examine libraries when file_magic_cmd begins with "file". 32104MAGIC_CMD=$MAGIC_CMD 32105 32106# Must we lock files when doing compilation? 32107need_locks=$lt_need_locks 32108 32109# Manifest tool. 32110MANIFEST_TOOL=$lt_MANIFEST_TOOL 32111 32112# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 32113DSYMUTIL=$lt_DSYMUTIL 32114 32115# Tool to change global to local symbols on Mac OS X. 32116NMEDIT=$lt_NMEDIT 32117 32118# Tool to manipulate fat objects and archives on Mac OS X. 32119LIPO=$lt_LIPO 32120 32121# ldd/readelf like tool for Mach-O binaries on Mac OS X. 32122OTOOL=$lt_OTOOL 32123 32124# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 32125OTOOL64=$lt_OTOOL64 32126 32127# Old archive suffix (normally "a"). 32128libext=$libext 32129 32130# Shared library suffix (normally ".so"). 32131shrext_cmds=$lt_shrext_cmds 32132 32133# The commands to extract the exported symbol list from a shared archive. 32134extract_expsyms_cmds=$lt_extract_expsyms_cmds 32135 32136# Variables whose values should be saved in libtool wrapper scripts and 32137# restored at link time. 32138variables_saved_for_relink=$lt_variables_saved_for_relink 32139 32140# Do we need the "lib" prefix for modules? 32141need_lib_prefix=$need_lib_prefix 32142 32143# Do we need a version for libraries? 32144need_version=$need_version 32145 32146# Library versioning type. 32147version_type=$version_type 32148 32149# Shared library runtime path variable. 32150runpath_var=$runpath_var 32151 32152# Shared library path variable. 32153shlibpath_var=$shlibpath_var 32154 32155# Is shlibpath searched before the hard-coded library search path? 32156shlibpath_overrides_runpath=$shlibpath_overrides_runpath 32157 32158# Format of library name prefix. 32159libname_spec=$lt_libname_spec 32160 32161# List of archive names. First name is the real one, the rest are links. 32162# The last name is the one that the linker finds with -lNAME 32163library_names_spec=$lt_library_names_spec 32164 32165# The coded name of the library, if different from the real name. 32166soname_spec=$lt_soname_spec 32167 32168# Permission mode override for installation of shared libraries. 32169install_override_mode=$lt_install_override_mode 32170 32171# Command to use after installation of a shared archive. 32172postinstall_cmds=$lt_postinstall_cmds 32173 32174# Command to use after uninstallation of a shared archive. 32175postuninstall_cmds=$lt_postuninstall_cmds 32176 32177# Commands used to finish a libtool library installation in a directory. 32178finish_cmds=$lt_finish_cmds 32179 32180# As "finish_cmds", except a single script fragment to be evaled but 32181# not shown. 32182finish_eval=$lt_finish_eval 32183 32184# Whether we should hardcode library paths into libraries. 32185hardcode_into_libs=$hardcode_into_libs 32186 32187# Compile-time system search path for libraries. 32188sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 32189 32190# Run-time system search path for libraries. 32191sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 32192 32193# Whether dlopen is supported. 32194dlopen_support=$enable_dlopen 32195 32196# Whether dlopen of programs is supported. 32197dlopen_self=$enable_dlopen_self 32198 32199# Whether dlopen of statically linked programs is supported. 32200dlopen_self_static=$enable_dlopen_self_static 32201 32202# Commands to strip libraries. 32203old_striplib=$lt_old_striplib 32204striplib=$lt_striplib 32205 32206 32207# The linker used to build libraries. 32208LD=$lt_LD 32209 32210# How to create reloadable object files. 32211reload_flag=$lt_reload_flag 32212reload_cmds=$lt_reload_cmds 32213 32214# Commands used to build an old-style archive. 32215old_archive_cmds=$lt_old_archive_cmds 32216 32217# A language specific compiler. 32218CC=$lt_compiler 32219 32220# Is the compiler the GNU compiler? 32221with_gcc=$GCC 32222 32223# Compiler flag to turn off builtin functions. 32224no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 32225 32226# Additional compiler flags for building library objects. 32227pic_flag=$lt_lt_prog_compiler_pic 32228 32229# How to pass a linker flag through the compiler. 32230wl=$lt_lt_prog_compiler_wl 32231 32232# Compiler flag to prevent dynamic linking. 32233link_static_flag=$lt_lt_prog_compiler_static 32234 32235# Does compiler simultaneously support -c and -o options? 32236compiler_c_o=$lt_lt_cv_prog_compiler_c_o 32237 32238# Whether or not to add -lc for building shared libraries. 32239build_libtool_need_lc=$archive_cmds_need_lc 32240 32241# Whether or not to disallow shared libs when runtime libs are static. 32242allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 32243 32244# Compiler flag to allow reflexive dlopens. 32245export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 32246 32247# Compiler flag to generate shared objects directly from archives. 32248whole_archive_flag_spec=$lt_whole_archive_flag_spec 32249 32250# Whether the compiler copes with passing no objects directly. 32251compiler_needs_object=$lt_compiler_needs_object 32252 32253# Create an old-style archive from a shared archive. 32254old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 32255 32256# Create a temporary old-style archive to link instead of a shared archive. 32257old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 32258 32259# Commands used to build a shared archive. 32260archive_cmds=$lt_archive_cmds 32261archive_expsym_cmds=$lt_archive_expsym_cmds 32262 32263# Commands used to build a loadable module if different from building 32264# a shared archive. 32265module_cmds=$lt_module_cmds 32266module_expsym_cmds=$lt_module_expsym_cmds 32267 32268# Whether we are building with GNU ld or not. 32269with_gnu_ld=$lt_with_gnu_ld 32270 32271# Flag that allows shared libraries with undefined symbols to be built. 32272allow_undefined_flag=$lt_allow_undefined_flag 32273 32274# Flag that enforces no undefined symbols. 32275no_undefined_flag=$lt_no_undefined_flag 32276 32277# Flag to hardcode \$libdir into a binary during linking. 32278# This must work even if \$libdir does not exist 32279hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 32280 32281# If ld is used when linking, flag to hardcode \$libdir into a binary 32282# during linking. This must work even if \$libdir does not exist. 32283hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 32284 32285# Whether we need a single "-rpath" flag with a separated argument. 32286hardcode_libdir_separator=$lt_hardcode_libdir_separator 32287 32288# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 32289# DIR into the resulting binary. 32290hardcode_direct=$hardcode_direct 32291 32292# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 32293# DIR into the resulting binary and the resulting library dependency is 32294# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 32295# library is relocated. 32296hardcode_direct_absolute=$hardcode_direct_absolute 32297 32298# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 32299# into the resulting binary. 32300hardcode_minus_L=$hardcode_minus_L 32301 32302# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 32303# into the resulting binary. 32304hardcode_shlibpath_var=$hardcode_shlibpath_var 32305 32306# Set to "yes" if building a shared library automatically hardcodes DIR 32307# into the library and all subsequent libraries and executables linked 32308# against it. 32309hardcode_automatic=$hardcode_automatic 32310 32311# Set to yes if linker adds runtime paths of dependent libraries 32312# to runtime path list. 32313inherit_rpath=$inherit_rpath 32314 32315# Whether libtool must link a program against all its dependency libraries. 32316link_all_deplibs=$link_all_deplibs 32317 32318# Set to "yes" if exported symbols are required. 32319always_export_symbols=$always_export_symbols 32320 32321# The commands to list exported symbols. 32322export_symbols_cmds=$lt_export_symbols_cmds 32323 32324# Symbols that should not be listed in the preloaded symbols. 32325exclude_expsyms=$lt_exclude_expsyms 32326 32327# Symbols that must always be exported. 32328include_expsyms=$lt_include_expsyms 32329 32330# Commands necessary for linking programs (against libraries) with templates. 32331prelink_cmds=$lt_prelink_cmds 32332 32333# Commands necessary for finishing linking programs. 32334postlink_cmds=$lt_postlink_cmds 32335 32336# Specify filename containing input files. 32337file_list_spec=$lt_file_list_spec 32338 32339# How to hardcode a shared library path into an executable. 32340hardcode_action=$hardcode_action 32341 32342# The directories searched by this compiler when creating a shared library. 32343compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 32344 32345# Dependencies to place before and after the objects being linked to 32346# create a shared library. 32347predep_objects=$lt_predep_objects 32348postdep_objects=$lt_postdep_objects 32349predeps=$lt_predeps 32350postdeps=$lt_postdeps 32351 32352# The library search path used internally by the compiler when linking 32353# a shared library. 32354compiler_lib_search_path=$lt_compiler_lib_search_path 32355 32356# ### END LIBTOOL CONFIG 32357 32358_LT_EOF 32359 32360 case $host_os in 32361 aix3*) 32362 cat <<\_LT_EOF >> "$cfgfile" 32363# AIX sometimes has problems with the GCC collect2 program. For some 32364# reason, if we set the COLLECT_NAMES environment variable, the problems 32365# vanish in a puff of smoke. 32366if test "X${COLLECT_NAMES+set}" != Xset; then 32367 COLLECT_NAMES= 32368 export COLLECT_NAMES 32369fi 32370_LT_EOF 32371 ;; 32372 esac 32373 32374 32375ltmain="$ac_aux_dir/ltmain.sh" 32376 32377 32378 # We use sed instead of cat because bash on DJGPP gets confused if 32379 # if finds mixed CR/LF and LF-only lines. Since sed operates in 32380 # text mode, it properly converts lines to CR/LF. This bash problem 32381 # is reportedly fixed, but why not run on old versions too? 32382 sed '$q' "$ltmain" >> "$cfgfile" \ 32383 || (rm -f "$cfgfile"; exit 1) 32384 32385 if test x"$xsi_shell" = xyes; then 32386 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 32387func_dirname ()\ 32388{\ 32389\ case ${1} in\ 32390\ */*) func_dirname_result="${1%/*}${2}" ;;\ 32391\ * ) func_dirname_result="${3}" ;;\ 32392\ esac\ 32393} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 32394 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32396test 0 -eq $? || _lt_function_replace_fail=: 32397 32398 32399 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 32400func_basename ()\ 32401{\ 32402\ func_basename_result="${1##*/}"\ 32403} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 32404 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32405 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32406test 0 -eq $? || _lt_function_replace_fail=: 32407 32408 32409 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 32410func_dirname_and_basename ()\ 32411{\ 32412\ case ${1} in\ 32413\ */*) func_dirname_result="${1%/*}${2}" ;;\ 32414\ * ) func_dirname_result="${3}" ;;\ 32415\ esac\ 32416\ func_basename_result="${1##*/}"\ 32417} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 32418 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32419 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32420test 0 -eq $? || _lt_function_replace_fail=: 32421 32422 32423 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 32424func_stripname ()\ 32425{\ 32426\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 32427\ # positional parameters, so assign one to ordinary parameter first.\ 32428\ func_stripname_result=${3}\ 32429\ func_stripname_result=${func_stripname_result#"${1}"}\ 32430\ func_stripname_result=${func_stripname_result%"${2}"}\ 32431} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 32432 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32434test 0 -eq $? || _lt_function_replace_fail=: 32435 32436 32437 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 32438func_split_long_opt ()\ 32439{\ 32440\ func_split_long_opt_name=${1%%=*}\ 32441\ func_split_long_opt_arg=${1#*=}\ 32442} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 32443 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32445test 0 -eq $? || _lt_function_replace_fail=: 32446 32447 32448 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 32449func_split_short_opt ()\ 32450{\ 32451\ func_split_short_opt_arg=${1#??}\ 32452\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 32453} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 32454 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32456test 0 -eq $? || _lt_function_replace_fail=: 32457 32458 32459 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 32460func_lo2o ()\ 32461{\ 32462\ case ${1} in\ 32463\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 32464\ *) func_lo2o_result=${1} ;;\ 32465\ esac\ 32466} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 32467 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32468 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32469test 0 -eq $? || _lt_function_replace_fail=: 32470 32471 32472 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 32473func_xform ()\ 32474{\ 32475 func_xform_result=${1%.*}.lo\ 32476} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 32477 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32478 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32479test 0 -eq $? || _lt_function_replace_fail=: 32480 32481 32482 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 32483func_arith ()\ 32484{\ 32485 func_arith_result=$(( $* ))\ 32486} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 32487 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32488 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32489test 0 -eq $? || _lt_function_replace_fail=: 32490 32491 32492 sed -e '/^func_len ()$/,/^} # func_len /c\ 32493func_len ()\ 32494{\ 32495 func_len_result=${#1}\ 32496} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 32497 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32498 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32499test 0 -eq $? || _lt_function_replace_fail=: 32500 32501fi 32502 32503if test x"$lt_shell_append" = xyes; then 32504 sed -e '/^func_append ()$/,/^} # func_append /c\ 32505func_append ()\ 32506{\ 32507 eval "${1}+=\\${2}"\ 32508} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 32509 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32511test 0 -eq $? || _lt_function_replace_fail=: 32512 32513 32514 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 32515func_append_quoted ()\ 32516{\ 32517\ func_quote_for_eval "${2}"\ 32518\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 32519} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 32520 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32521 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32522test 0 -eq $? || _lt_function_replace_fail=: 32523 32524 32525 # Save a `func_append' function call where possible by direct use of '+=' 32526 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 32527 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32528 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32529 test 0 -eq $? || _lt_function_replace_fail=: 32530else 32531 # Save a `func_append' function call even when '+=' is not available 32532 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 32533 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32534 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32535 test 0 -eq $? || _lt_function_replace_fail=: 32536fi 32537 32538if test x"$_lt_function_replace_fail" = x":"; then 32539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 32540$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 32541fi 32542 32543 32544 mv -f "$cfgfile" "$ofile" || 32545 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 32546 chmod +x "$ofile" 32547 32548 32549 cat <<_LT_EOF >> "$ofile" 32550 32551# ### BEGIN LIBTOOL TAG CONFIG: CXX 32552 32553# The linker used to build libraries. 32554LD=$lt_LD_CXX 32555 32556# How to create reloadable object files. 32557reload_flag=$lt_reload_flag_CXX 32558reload_cmds=$lt_reload_cmds_CXX 32559 32560# Commands used to build an old-style archive. 32561old_archive_cmds=$lt_old_archive_cmds_CXX 32562 32563# A language specific compiler. 32564CC=$lt_compiler_CXX 32565 32566# Is the compiler the GNU compiler? 32567with_gcc=$GCC_CXX 32568 32569# Compiler flag to turn off builtin functions. 32570no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 32571 32572# Additional compiler flags for building library objects. 32573pic_flag=$lt_lt_prog_compiler_pic_CXX 32574 32575# How to pass a linker flag through the compiler. 32576wl=$lt_lt_prog_compiler_wl_CXX 32577 32578# Compiler flag to prevent dynamic linking. 32579link_static_flag=$lt_lt_prog_compiler_static_CXX 32580 32581# Does compiler simultaneously support -c and -o options? 32582compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 32583 32584# Whether or not to add -lc for building shared libraries. 32585build_libtool_need_lc=$archive_cmds_need_lc_CXX 32586 32587# Whether or not to disallow shared libs when runtime libs are static. 32588allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 32589 32590# Compiler flag to allow reflexive dlopens. 32591export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 32592 32593# Compiler flag to generate shared objects directly from archives. 32594whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 32595 32596# Whether the compiler copes with passing no objects directly. 32597compiler_needs_object=$lt_compiler_needs_object_CXX 32598 32599# Create an old-style archive from a shared archive. 32600old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 32601 32602# Create a temporary old-style archive to link instead of a shared archive. 32603old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 32604 32605# Commands used to build a shared archive. 32606archive_cmds=$lt_archive_cmds_CXX 32607archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 32608 32609# Commands used to build a loadable module if different from building 32610# a shared archive. 32611module_cmds=$lt_module_cmds_CXX 32612module_expsym_cmds=$lt_module_expsym_cmds_CXX 32613 32614# Whether we are building with GNU ld or not. 32615with_gnu_ld=$lt_with_gnu_ld_CXX 32616 32617# Flag that allows shared libraries with undefined symbols to be built. 32618allow_undefined_flag=$lt_allow_undefined_flag_CXX 32619 32620# Flag that enforces no undefined symbols. 32621no_undefined_flag=$lt_no_undefined_flag_CXX 32622 32623# Flag to hardcode \$libdir into a binary during linking. 32624# This must work even if \$libdir does not exist 32625hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 32626 32627# If ld is used when linking, flag to hardcode \$libdir into a binary 32628# during linking. This must work even if \$libdir does not exist. 32629hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 32630 32631# Whether we need a single "-rpath" flag with a separated argument. 32632hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 32633 32634# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 32635# DIR into the resulting binary. 32636hardcode_direct=$hardcode_direct_CXX 32637 32638# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 32639# DIR into the resulting binary and the resulting library dependency is 32640# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 32641# library is relocated. 32642hardcode_direct_absolute=$hardcode_direct_absolute_CXX 32643 32644# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 32645# into the resulting binary. 32646hardcode_minus_L=$hardcode_minus_L_CXX 32647 32648# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 32649# into the resulting binary. 32650hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 32651 32652# Set to "yes" if building a shared library automatically hardcodes DIR 32653# into the library and all subsequent libraries and executables linked 32654# against it. 32655hardcode_automatic=$hardcode_automatic_CXX 32656 32657# Set to yes if linker adds runtime paths of dependent libraries 32658# to runtime path list. 32659inherit_rpath=$inherit_rpath_CXX 32660 32661# Whether libtool must link a program against all its dependency libraries. 32662link_all_deplibs=$link_all_deplibs_CXX 32663 32664# Set to "yes" if exported symbols are required. 32665always_export_symbols=$always_export_symbols_CXX 32666 32667# The commands to list exported symbols. 32668export_symbols_cmds=$lt_export_symbols_cmds_CXX 32669 32670# Symbols that should not be listed in the preloaded symbols. 32671exclude_expsyms=$lt_exclude_expsyms_CXX 32672 32673# Symbols that must always be exported. 32674include_expsyms=$lt_include_expsyms_CXX 32675 32676# Commands necessary for linking programs (against libraries) with templates. 32677prelink_cmds=$lt_prelink_cmds_CXX 32678 32679# Commands necessary for finishing linking programs. 32680postlink_cmds=$lt_postlink_cmds_CXX 32681 32682# Specify filename containing input files. 32683file_list_spec=$lt_file_list_spec_CXX 32684 32685# How to hardcode a shared library path into an executable. 32686hardcode_action=$hardcode_action_CXX 32687 32688# The directories searched by this compiler when creating a shared library. 32689compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 32690 32691# Dependencies to place before and after the objects being linked to 32692# create a shared library. 32693predep_objects=$lt_predep_objects_CXX 32694postdep_objects=$lt_postdep_objects_CXX 32695predeps=$lt_predeps_CXX 32696postdeps=$lt_postdeps_CXX 32697 32698# The library search path used internally by the compiler when linking 32699# a shared library. 32700compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 32701 32702# ### END LIBTOOL TAG CONFIG: CXX 32703_LT_EOF 32704 32705 ;; 32706 32707 esac 32708done # for ac_tag 32709 32710 32711as_fn_exit 0 32712_ACEOF 32713ac_clean_files=$ac_clean_files_save 32714 32715test $ac_write_fail = 0 || 32716 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 32717 32718 32719# configure is writing to config.log, and then calls config.status. 32720# config.status does its own redirection, appending to config.log. 32721# Unfortunately, on DOS this fails, as config.log is still kept open 32722# by configure, so config.status won't be able to write to it; its 32723# output is simply discarded. So we exec the FD to /dev/null, 32724# effectively closing config.log, so it can be properly (re)opened and 32725# appended to by config.status. When coming back to configure, we 32726# need to make the FD available again. 32727if test "$no_create" != yes; then 32728 ac_cs_success=: 32729 ac_config_status_args= 32730 test "$silent" = yes && 32731 ac_config_status_args="$ac_config_status_args --quiet" 32732 exec 5>/dev/null 32733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 32734 exec 5>>config.log 32735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 32736 # would make configure fail if this is the last instruction. 32737 $ac_cs_success || as_fn_exit 1 32738fi 32739 32740# 32741# CONFIG_SUBDIRS section. 32742# 32743if test "$no_recursion" != yes; then 32744 32745 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 32746 # so they do not pile up. 32747 ac_sub_configure_args= 32748 ac_prev= 32749 eval "set x $ac_configure_args" 32750 shift 32751 for ac_arg 32752 do 32753 if test -n "$ac_prev"; then 32754 ac_prev= 32755 continue 32756 fi 32757 case $ac_arg in 32758 -cache-file | --cache-file | --cache-fil | --cache-fi \ 32759 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 32760 ac_prev=cache_file ;; 32761 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 32762 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 32763 | --c=*) 32764 ;; 32765 --config-cache | -C) 32766 ;; 32767 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 32768 ac_prev=srcdir ;; 32769 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 32770 ;; 32771 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 32772 ac_prev=prefix ;; 32773 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 32774 ;; 32775 --disable-option-checking) 32776 ;; 32777 *) 32778 case $ac_arg in 32779 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 32780 esac 32781 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 32782 esac 32783 done 32784 32785 # Always prepend --prefix to ensure using the same prefix 32786 # in subdir configurations. 32787 ac_arg="--prefix=$prefix" 32788 case $ac_arg in 32789 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 32790 esac 32791 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 32792 32793 # Pass --silent 32794 if test "$silent" = yes; then 32795 ac_sub_configure_args="--silent $ac_sub_configure_args" 32796 fi 32797 32798 # Always prepend --disable-option-checking to silence warnings, since 32799 # different subdirs can have different --enable and --with options. 32800 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 32801 32802 ac_popdir=`pwd` 32803 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 32804 32805 # Do not complain, so a configure script can configure whichever 32806 # parts of a large source tree are present. 32807 test -d "$srcdir/$ac_dir" || continue 32808 32809 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 32810 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 32811 $as_echo "$ac_msg" >&6 32812 as_dir="$ac_dir"; as_fn_mkdir_p 32813 ac_builddir=. 32814 32815case "$ac_dir" in 32816.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 32817*) 32818 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 32819 # A ".." for each directory in $ac_dir_suffix. 32820 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 32821 case $ac_top_builddir_sub in 32822 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 32823 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 32824 esac ;; 32825esac 32826ac_abs_top_builddir=$ac_pwd 32827ac_abs_builddir=$ac_pwd$ac_dir_suffix 32828# for backward compatibility: 32829ac_top_builddir=$ac_top_build_prefix 32830 32831case $srcdir in 32832 .) # We are building in place. 32833 ac_srcdir=. 32834 ac_top_srcdir=$ac_top_builddir_sub 32835 ac_abs_top_srcdir=$ac_pwd ;; 32836 [\\/]* | ?:[\\/]* ) # Absolute name. 32837 ac_srcdir=$srcdir$ac_dir_suffix; 32838 ac_top_srcdir=$srcdir 32839 ac_abs_top_srcdir=$srcdir ;; 32840 *) # Relative name. 32841 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 32842 ac_top_srcdir=$ac_top_build_prefix$srcdir 32843 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 32844esac 32845ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 32846 32847 32848 cd "$ac_dir" 32849 32850 # Check for guested configure; otherwise get Cygnus style configure. 32851 if test -f "$ac_srcdir/configure.gnu"; then 32852 ac_sub_configure=$ac_srcdir/configure.gnu 32853 elif test -f "$ac_srcdir/configure"; then 32854 ac_sub_configure=$ac_srcdir/configure 32855 elif test -f "$ac_srcdir/configure.in"; then 32856 # This should be Cygnus configure. 32857 ac_sub_configure=$ac_aux_dir/configure 32858 else 32859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 32860$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 32861 ac_sub_configure= 32862 fi 32863 32864 # The recursion is here. 32865 if test -n "$ac_sub_configure"; then 32866 # Make the cache file name correct relative to the subdirectory. 32867 case $cache_file in 32868 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 32869 *) # Relative name. 32870 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 32871 esac 32872 32873 { $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 32874$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 32875 # The eval makes quoting arguments work. 32876 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 32877 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 32878 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 32879 fi 32880 32881 cd "$ac_popdir" 32882 done 32883fi 32884if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 32885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 32886$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 32887fi 32888 32889