1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for sntp 4.2.7p404. 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.7p404' 574PACKAGE_STRING='sntp 4.2.7p404' 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 650BUILD_SNTP_FALSE 651BUILD_SNTP_TRUE 652SNTP 653LIBTOOL_DEPS 654OTOOL64 655OTOOL 656LIPO 657NMEDIT 658DSYMUTIL 659MANIFEST_TOOL 660RANLIB 661ac_ct_AR 662AR 663DLLTOOL 664OBJDUMP 665LN_S 666NM 667ac_ct_DUMPBIN 668DUMPBIN 669LD 670FGREP 671SED 672LIBTOOL 673LIBOBJS 674PTHREADS_FALSE 675PTHREADS_TRUE 676LIBISC_PTHREADS_NOTHREADS 677PTHREAD_LIBS 678HAVE_INLINE 679ALLOCA 680LIBM 681EDITLINE_LIBS 682LDADD_LIBNTP 683NTP_CROSSCOMPILE_FALSE 684NTP_CROSSCOMPILE_TRUE 685TIMETRIM_MS 686TIMETRIM_DS 687TIMETRIM_DL 688TIMETRIM_DB 689TICKADJ_MS 690TICKADJ_DS 691TICKADJ_DL 692TICKADJ_DB 693SNTP_MS 694SNTP_DS 695SNTP_DL 696SNTP_DB 697NTP_WAIT_MS 698NTP_WAIT_DS 699NTP_WAIT_DL 700NTP_WAIT_DB 701NTP_KEYGEN_MS 702NTP_KEYGEN_DS 703NTP_KEYGEN_DL 704NTP_KEYGEN_DB 705NTPTRACE_MS 706NTPTRACE_DS 707NTPTRACE_DL 708NTPTRACE_DB 709NTPTIME_MS 710NTPTIME_DS 711NTPTIME_DL 712NTPTIME_DB 713NTPSNMPD_MS 714NTPSNMPD_DS 715NTPSNMPD_DL 716NTPSNMPD_DB 717NTPQ_MS 718NTPQ_DS 719NTPQ_DL 720NTPQ_DB 721NTPD_MS 722NTPD_DS 723NTPD_DL 724NTPD_DB 725NTPDSIM_MS 726NTPDSIM_DS 727NTPDSIM_DL 728NTPDSIM_DB 729NTPDC_MS 730NTPDC_DS 731NTPDC_DL 732NTPDC_DB 733NTPDATE_MS 734NTPDATE_DS 735NTPDATE_DL 736NTPDATE_DB 737MANTAGFMT 738CALC_TICKADJ_MS 739CALC_TICKADJ_DS 740CALC_TICKADJ_DL 741CALC_TICKADJ_DB 742WANT_CALC_TICKADJ_MS_FALSE 743WANT_CALC_TICKADJ_MS_TRUE 744LDFLAGS_NTP 745LDADD_NTP 746CPPFLAGS_NTP 747CFLAGS_NTP 748EGREP 749GREP 750CPP 751am__fastdepCC_FALSE 752am__fastdepCC_TRUE 753CCDEPMODE 754AMDEPBACKSLASH 755AMDEP_FALSE 756AMDEP_TRUE 757am__quote 758am__include 759DEPDIR 760OBJEXT 761EXEEXT 762ac_ct_CC 763CPPFLAGS 764LDFLAGS 765CFLAGS 766CC 767host_os 768host_vendor 769host_cpu 770host 771build_os 772build_vendor 773build_cpu 774build 775AM_BACKSLASH 776AM_DEFAULT_VERBOSITY 777am__untar 778am__tar 779AMTAR 780am__leading_dot 781SET_MAKE 782AWK 783mkdir_p 784MKDIR_P 785INSTALL_STRIP_PROGRAM 786STRIP 787install_sh 788MAKEINFO 789AUTOHEADER 790AUTOMAKE 791AUTOCONF 792ACLOCAL 793VERSION 794PACKAGE 795CYGPATH_W 796am__isrc 797INSTALL_DATA 798INSTALL_SCRIPT 799INSTALL_PROGRAM 800target_alias 801host_alias 802build_alias 803LIBS 804ECHO_T 805ECHO_N 806ECHO_C 807DEFS 808mandir 809localedir 810libdir 811psdir 812pdfdir 813dvidir 814htmldir 815infodir 816docdir 817oldincludedir 818includedir 819localstatedir 820sharedstatedir 821sysconfdir 822datadir 823datarootdir 824libexecdir 825sbindir 826bindir 827program_transform_name 828prefix 829exec_prefix 830PACKAGE_URL 831PACKAGE_BUGREPORT 832PACKAGE_STRING 833PACKAGE_VERSION 834PACKAGE_TARNAME 835PACKAGE_NAME 836PATH_SEPARATOR 837SHELL' 838ac_subst_files='' 839ac_user_opts=' 840enable_option_checking 841enable_silent_rules 842enable_dependency_tracking 843with_locfile 844with_lineeditlibs 845enable_debugging 846enable_thread_support 847with_threads 848enable_c99_snprintf 849enable_clockctl 850enable_linuxcaps 851enable_solarisprivs 852enable_shared 853enable_static 854with_pic 855enable_fast_install 856with_gnu_ld 857with_sysroot 858enable_libtool_lock 859with_sntp 860enable_nls 861enable_local_libopts 862enable_libopts_install 863with_autoopts_config 864with_regex_header 865with_libregex 866with_libregex_cflags 867with_libregex_libs 868enable_optional_args 869enable_local_libevent 870with_crypto 871with_openssl_libdir 872with_openssl_incdir 873with_rpath 874enable_ipv6 875with_kame 876enable_getifaddrs 877with_gtest 878' 879 ac_precious_vars='build_alias 880host_alias 881target_alias 882CC 883CFLAGS 884LDFLAGS 885LIBS 886CPPFLAGS 887CPP 888CXX 889CXXFLAGS 890CCC 891CXXCPP' 892ac_subdirs_all='libevent' 893 894# Initialize some variables set by options. 895ac_init_help= 896ac_init_version=false 897ac_unrecognized_opts= 898ac_unrecognized_sep= 899# The variables have the same names as the options, with 900# dashes changed to underlines. 901cache_file=/dev/null 902exec_prefix=NONE 903no_create= 904no_recursion= 905prefix=NONE 906program_prefix=NONE 907program_suffix=NONE 908program_transform_name=s,x,x, 909silent= 910site= 911srcdir= 912verbose= 913x_includes=NONE 914x_libraries=NONE 915 916# Installation directory options. 917# These are left unexpanded so users can "make install exec_prefix=/foo" 918# and all the variables that are supposed to be based on exec_prefix 919# by default will actually change. 920# Use braces instead of parens because sh, perl, etc. also accept them. 921# (The list follows the same order as the GNU Coding Standards.) 922bindir='${exec_prefix}/bin' 923sbindir='${exec_prefix}/sbin' 924libexecdir='${exec_prefix}/libexec' 925datarootdir='${prefix}/share' 926datadir='${datarootdir}' 927sysconfdir='${prefix}/etc' 928sharedstatedir='${prefix}/com' 929localstatedir='${prefix}/var' 930includedir='${prefix}/include' 931oldincludedir='/usr/include' 932docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 933infodir='${datarootdir}/info' 934htmldir='${docdir}' 935dvidir='${docdir}' 936pdfdir='${docdir}' 937psdir='${docdir}' 938libdir='${exec_prefix}/lib' 939localedir='${datarootdir}/locale' 940mandir='${datarootdir}/man' 941 942ac_prev= 943ac_dashdash= 944for ac_option 945do 946 # If the previous option needs an argument, assign it. 947 if test -n "$ac_prev"; then 948 eval $ac_prev=\$ac_option 949 ac_prev= 950 continue 951 fi 952 953 case $ac_option in 954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 955 *=) ac_optarg= ;; 956 *) ac_optarg=yes ;; 957 esac 958 959 # Accept the important Cygnus configure options, so we can diagnose typos. 960 961 case $ac_dashdash$ac_option in 962 --) 963 ac_dashdash=yes ;; 964 965 -bindir | --bindir | --bindi | --bind | --bin | --bi) 966 ac_prev=bindir ;; 967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 968 bindir=$ac_optarg ;; 969 970 -build | --build | --buil | --bui | --bu) 971 ac_prev=build_alias ;; 972 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 973 build_alias=$ac_optarg ;; 974 975 -cache-file | --cache-file | --cache-fil | --cache-fi \ 976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 977 ac_prev=cache_file ;; 978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 980 cache_file=$ac_optarg ;; 981 982 --config-cache | -C) 983 cache_file=config.cache ;; 984 985 -datadir | --datadir | --datadi | --datad) 986 ac_prev=datadir ;; 987 -datadir=* | --datadir=* | --datadi=* | --datad=*) 988 datadir=$ac_optarg ;; 989 990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 991 | --dataroo | --dataro | --datar) 992 ac_prev=datarootdir ;; 993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 995 datarootdir=$ac_optarg ;; 996 997 -disable-* | --disable-*) 998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 999 # Reject names that are not valid shell variable names. 1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1001 as_fn_error $? "invalid feature name: $ac_useropt" 1002 ac_useropt_orig=$ac_useropt 1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1004 case $ac_user_opts in 1005 *" 1006"enable_$ac_useropt" 1007"*) ;; 1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1009 ac_unrecognized_sep=', ';; 1010 esac 1011 eval enable_$ac_useropt=no ;; 1012 1013 -docdir | --docdir | --docdi | --doc | --do) 1014 ac_prev=docdir ;; 1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1016 docdir=$ac_optarg ;; 1017 1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1019 ac_prev=dvidir ;; 1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1021 dvidir=$ac_optarg ;; 1022 1023 -enable-* | --enable-*) 1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 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--enable-$ac_useropt_orig" 1035 ac_unrecognized_sep=', ';; 1036 esac 1037 eval enable_$ac_useropt=\$ac_optarg ;; 1038 1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1041 | --exec | --exe | --ex) 1042 ac_prev=exec_prefix ;; 1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1045 | --exec=* | --exe=* | --ex=*) 1046 exec_prefix=$ac_optarg ;; 1047 1048 -gas | --gas | --ga | --g) 1049 # Obsolete; use --with-gas. 1050 with_gas=yes ;; 1051 1052 -help | --help | --hel | --he | -h) 1053 ac_init_help=long ;; 1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1055 ac_init_help=recursive ;; 1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1057 ac_init_help=short ;; 1058 1059 -host | --host | --hos | --ho) 1060 ac_prev=host_alias ;; 1061 -host=* | --host=* | --hos=* | --ho=*) 1062 host_alias=$ac_optarg ;; 1063 1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1065 ac_prev=htmldir ;; 1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1067 | --ht=*) 1068 htmldir=$ac_optarg ;; 1069 1070 -includedir | --includedir | --includedi | --included | --include \ 1071 | --includ | --inclu | --incl | --inc) 1072 ac_prev=includedir ;; 1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1074 | --includ=* | --inclu=* | --incl=* | --inc=*) 1075 includedir=$ac_optarg ;; 1076 1077 -infodir | --infodir | --infodi | --infod | --info | --inf) 1078 ac_prev=infodir ;; 1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1080 infodir=$ac_optarg ;; 1081 1082 -libdir | --libdir | --libdi | --libd) 1083 ac_prev=libdir ;; 1084 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1085 libdir=$ac_optarg ;; 1086 1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1088 | --libexe | --libex | --libe) 1089 ac_prev=libexecdir ;; 1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1091 | --libexe=* | --libex=* | --libe=*) 1092 libexecdir=$ac_optarg ;; 1093 1094 -localedir | --localedir | --localedi | --localed | --locale) 1095 ac_prev=localedir ;; 1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1097 localedir=$ac_optarg ;; 1098 1099 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1100 | --localstate | --localstat | --localsta | --localst | --locals) 1101 ac_prev=localstatedir ;; 1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1104 localstatedir=$ac_optarg ;; 1105 1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1107 ac_prev=mandir ;; 1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1109 mandir=$ac_optarg ;; 1110 1111 -nfp | --nfp | --nf) 1112 # Obsolete; use --without-fp. 1113 with_fp=no ;; 1114 1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1116 | --no-cr | --no-c | -n) 1117 no_create=yes ;; 1118 1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1121 no_recursion=yes ;; 1122 1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1125 | --oldin | --oldi | --old | --ol | --o) 1126 ac_prev=oldincludedir ;; 1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1130 oldincludedir=$ac_optarg ;; 1131 1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1133 ac_prev=prefix ;; 1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1135 prefix=$ac_optarg ;; 1136 1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1138 | --program-pre | --program-pr | --program-p) 1139 ac_prev=program_prefix ;; 1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1142 program_prefix=$ac_optarg ;; 1143 1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1145 | --program-suf | --program-su | --program-s) 1146 ac_prev=program_suffix ;; 1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1149 program_suffix=$ac_optarg ;; 1150 1151 -program-transform-name | --program-transform-name \ 1152 | --program-transform-nam | --program-transform-na \ 1153 | --program-transform-n | --program-transform- \ 1154 | --program-transform | --program-transfor \ 1155 | --program-transfo | --program-transf \ 1156 | --program-trans | --program-tran \ 1157 | --progr-tra | --program-tr | --program-t) 1158 ac_prev=program_transform_name ;; 1159 -program-transform-name=* | --program-transform-name=* \ 1160 | --program-transform-nam=* | --program-transform-na=* \ 1161 | --program-transform-n=* | --program-transform-=* \ 1162 | --program-transform=* | --program-transfor=* \ 1163 | --program-transfo=* | --program-transf=* \ 1164 | --program-trans=* | --program-tran=* \ 1165 | --progr-tra=* | --program-tr=* | --program-t=*) 1166 program_transform_name=$ac_optarg ;; 1167 1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1169 ac_prev=pdfdir ;; 1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1171 pdfdir=$ac_optarg ;; 1172 1173 -psdir | --psdir | --psdi | --psd | --ps) 1174 ac_prev=psdir ;; 1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1176 psdir=$ac_optarg ;; 1177 1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1179 | -silent | --silent | --silen | --sile | --sil) 1180 silent=yes ;; 1181 1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1183 ac_prev=sbindir ;; 1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1185 | --sbi=* | --sb=*) 1186 sbindir=$ac_optarg ;; 1187 1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1190 | --sharedst | --shareds | --shared | --share | --shar \ 1191 | --sha | --sh) 1192 ac_prev=sharedstatedir ;; 1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1196 | --sha=* | --sh=*) 1197 sharedstatedir=$ac_optarg ;; 1198 1199 -site | --site | --sit) 1200 ac_prev=site ;; 1201 -site=* | --site=* | --sit=*) 1202 site=$ac_optarg ;; 1203 1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1205 ac_prev=srcdir ;; 1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1207 srcdir=$ac_optarg ;; 1208 1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1210 | --syscon | --sysco | --sysc | --sys | --sy) 1211 ac_prev=sysconfdir ;; 1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1214 sysconfdir=$ac_optarg ;; 1215 1216 -target | --target | --targe | --targ | --tar | --ta | --t) 1217 ac_prev=target_alias ;; 1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1219 target_alias=$ac_optarg ;; 1220 1221 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1222 verbose=yes ;; 1223 1224 -version | --version | --versio | --versi | --vers | -V) 1225 ac_init_version=: ;; 1226 1227 -with-* | --with-*) 1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1229 # Reject names that are not valid shell variable names. 1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1231 as_fn_error $? "invalid package name: $ac_useropt" 1232 ac_useropt_orig=$ac_useropt 1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1234 case $ac_user_opts in 1235 *" 1236"with_$ac_useropt" 1237"*) ;; 1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1239 ac_unrecognized_sep=', ';; 1240 esac 1241 eval with_$ac_useropt=\$ac_optarg ;; 1242 1243 -without-* | --without-*) 1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1245 # Reject names that are not valid shell variable names. 1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1247 as_fn_error $? "invalid package name: $ac_useropt" 1248 ac_useropt_orig=$ac_useropt 1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1250 case $ac_user_opts in 1251 *" 1252"with_$ac_useropt" 1253"*) ;; 1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1255 ac_unrecognized_sep=', ';; 1256 esac 1257 eval with_$ac_useropt=no ;; 1258 1259 --x) 1260 # Obsolete; use --with-x. 1261 with_x=yes ;; 1262 1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1264 | --x-incl | --x-inc | --x-in | --x-i) 1265 ac_prev=x_includes ;; 1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1268 x_includes=$ac_optarg ;; 1269 1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1272 ac_prev=x_libraries ;; 1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1275 x_libraries=$ac_optarg ;; 1276 1277 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1278Try \`$0 --help' for more information" 1279 ;; 1280 1281 *=*) 1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1283 # Reject names that are not valid shell variable names. 1284 case $ac_envvar in #( 1285 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1287 esac 1288 eval $ac_envvar=\$ac_optarg 1289 export $ac_envvar ;; 1290 1291 *) 1292 # FIXME: should be removed in autoconf 3.0. 1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1297 ;; 1298 1299 esac 1300done 1301 1302if test -n "$ac_prev"; then 1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1304 as_fn_error $? "missing argument to $ac_option" 1305fi 1306 1307if test -n "$ac_unrecognized_opts"; then 1308 case $enable_option_checking in 1309 no) ;; 1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1312 esac 1313fi 1314 1315# Check all directory arguments for consistency. 1316for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1317 datadir sysconfdir sharedstatedir localstatedir includedir \ 1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1319 libdir localedir mandir 1320do 1321 eval ac_val=\$$ac_var 1322 # Remove trailing slashes. 1323 case $ac_val in 1324 */ ) 1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1326 eval $ac_var=\$ac_val;; 1327 esac 1328 # Be sure to have absolute directory names. 1329 case $ac_val in 1330 [\\/$]* | ?:[\\/]* ) continue;; 1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1332 esac 1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1334done 1335 1336# There might be people who depend on the old broken behavior: `$host' 1337# used to hold the argument of --host etc. 1338# FIXME: To remove some day. 1339build=$build_alias 1340host=$host_alias 1341target=$target_alias 1342 1343# FIXME: To remove some day. 1344if test "x$host_alias" != x; then 1345 if test "x$build_alias" = x; then 1346 cross_compiling=maybe 1347 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1348 If a cross compiler is detected then cross compile mode will be used" >&2 1349 elif test "x$build_alias" != "x$host_alias"; then 1350 cross_compiling=yes 1351 fi 1352fi 1353 1354ac_tool_prefix= 1355test -n "$host_alias" && ac_tool_prefix=$host_alias- 1356 1357test "$silent" = yes && exec 6>/dev/null 1358 1359 1360ac_pwd=`pwd` && test -n "$ac_pwd" && 1361ac_ls_di=`ls -di .` && 1362ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1363 as_fn_error $? "working directory cannot be determined" 1364test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1365 as_fn_error $? "pwd does not report name of working directory" 1366 1367 1368# Find the source files, if location was not specified. 1369if test -z "$srcdir"; then 1370 ac_srcdir_defaulted=yes 1371 # Try the directory containing this script, then the parent directory. 1372 ac_confdir=`$as_dirname -- "$as_myself" || 1373$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1374 X"$as_myself" : 'X\(//\)[^/]' \| \ 1375 X"$as_myself" : 'X\(//\)$' \| \ 1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1377$as_echo X"$as_myself" | 1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1379 s//\1/ 1380 q 1381 } 1382 /^X\(\/\/\)[^/].*/{ 1383 s//\1/ 1384 q 1385 } 1386 /^X\(\/\/\)$/{ 1387 s//\1/ 1388 q 1389 } 1390 /^X\(\/\).*/{ 1391 s//\1/ 1392 q 1393 } 1394 s/.*/./; q'` 1395 srcdir=$ac_confdir 1396 if test ! -r "$srcdir/$ac_unique_file"; then 1397 srcdir=.. 1398 fi 1399else 1400 ac_srcdir_defaulted=no 1401fi 1402if test ! -r "$srcdir/$ac_unique_file"; then 1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1404 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1405fi 1406ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1407ac_abs_confdir=`( 1408 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1409 pwd)` 1410# When building in place, set srcdir=. 1411if test "$ac_abs_confdir" = "$ac_pwd"; then 1412 srcdir=. 1413fi 1414# Remove unnecessary trailing slashes from srcdir. 1415# Double slashes in file names in object file debugging info 1416# mess up M-x gdb in Emacs. 1417case $srcdir in 1418*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1419esac 1420for ac_var in $ac_precious_vars; do 1421 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1422 eval ac_env_${ac_var}_value=\$${ac_var} 1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1424 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1425done 1426 1427# 1428# Report the --help message. 1429# 1430if test "$ac_init_help" = "long"; then 1431 # Omit some internal or obsolete options to make the list less imposing. 1432 # This message is too long to be a string in the A/UX 3.1 sh. 1433 cat <<_ACEOF 1434\`configure' configures sntp 4.2.7p404 to adapt to many kinds of systems. 1435 1436Usage: $0 [OPTION]... [VAR=VALUE]... 1437 1438To assign environment variables (e.g., CC, CFLAGS...), specify them as 1439VAR=VALUE. See below for descriptions of some of the useful variables. 1440 1441Defaults for the options are specified in brackets. 1442 1443Configuration: 1444 -h, --help display this help and exit 1445 --help=short display options specific to this package 1446 --help=recursive display the short help of all the included packages 1447 -V, --version display version information and exit 1448 -q, --quiet, --silent do not print \`checking ...' messages 1449 --cache-file=FILE cache test results in FILE [disabled] 1450 -C, --config-cache alias for \`--cache-file=config.cache' 1451 -n, --no-create do not create output files 1452 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1453 1454Installation directories: 1455 --prefix=PREFIX install architecture-independent files in PREFIX 1456 [$ac_default_prefix] 1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1458 [PREFIX] 1459 1460By default, \`make install' will install all the files in 1461\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1462an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1463for instance \`--prefix=\$HOME'. 1464 1465For better control, use the options below. 1466 1467Fine tuning of the installation directories: 1468 --bindir=DIR user executables [EPREFIX/bin] 1469 --sbindir=DIR system admin executables [EPREFIX/sbin] 1470 --libexecdir=DIR program executables [EPREFIX/libexec] 1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1474 --libdir=DIR object code libraries [EPREFIX/lib] 1475 --includedir=DIR C header files [PREFIX/include] 1476 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1479 --infodir=DIR info documentation [DATAROOTDIR/info] 1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1481 --mandir=DIR man documentation [DATAROOTDIR/man] 1482 --docdir=DIR documentation root [DATAROOTDIR/doc/sntp] 1483 --htmldir=DIR html documentation [DOCDIR] 1484 --dvidir=DIR dvi documentation [DOCDIR] 1485 --pdfdir=DIR pdf documentation [DOCDIR] 1486 --psdir=DIR ps documentation [DOCDIR] 1487_ACEOF 1488 1489 cat <<\_ACEOF 1490 1491Program names: 1492 --program-prefix=PREFIX prepend PREFIX to installed program names 1493 --program-suffix=SUFFIX append SUFFIX to installed program names 1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1495 1496System types: 1497 --build=BUILD configure for building on BUILD [guessed] 1498 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1499_ACEOF 1500fi 1501 1502if test -n "$ac_init_help"; then 1503 case $ac_init_help in 1504 short | recursive ) echo "Configuration of sntp 4.2.7p404:";; 1505 esac 1506 cat <<\_ACEOF 1507 1508Optional Features: 1509 --disable-option-checking ignore unrecognized --enable/--with options 1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1512 --enable-silent-rules less verbose build output (undo: `make V=1') 1513 --disable-silent-rules verbose build output (undo: `make V=0') 1514 --disable-dependency-tracking speeds up one-time build 1515 --enable-dependency-tracking do not reject slow dependency extractors 1516 defaults: + yes, - no, s system-specific 1517 --enable-debugging + include ntpd debugging code 1518 --enable-thread-support s use threads (+ if available) 1519 --enable-c99-snprintf s force replacement 1520 --enable-clockctl s Use /dev/clockctl for non-root clock control 1521 --enable-linuxcaps + Use Linux capabilities for non-root clock control 1522 --enable-solarisprivs + Use Solaris privileges for non-root clock control 1523 --enable-shared[=PKGS] build shared libraries [default=no] 1524 --enable-static[=PKGS] build static libraries [default=yes] 1525 --enable-fast-install[=PKGS] 1526 optimize for fast installation [default=yes] 1527 --disable-libtool-lock avoid locking (might break parallel builds) 1528 --disable-nls disable nls support in libopts 1529 --enable-local-libopts Use the supplied libopts tearoff code 1530 --enable-libopts-install 1531 Install libopts with client installation 1532 --disable-optional-args not wanting optional option args 1533 --enable-local-libevent Force using the supplied libevent tearoff code 1534 --enable-ipv6 s use IPv6? 1535 1536 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]]. 1537 1538Optional Packages: 1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1541 --with-locfile=XXX os-specific or "legacy" 1542 --with-lineeditlibs edit,editline (readline may be specified if desired) 1543 --with-threads with threads [auto] 1544 --with-pic try to use only PIC/non-PIC objects [default=use 1545 both] 1546 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1547 --with-sysroot=DIR Search for dependent libraries within DIR 1548 (or the compiler's sysroot if not specified). 1549 --without-sntp - disable building sntp and sntp/tests 1550 --with-autoopts-config specify the config-info script 1551 --with-regex-header a reg expr header is specified 1552 --with-libregex libregex installation prefix 1553 --with-libregex-cflags libregex compile flags 1554 --with-libregex-libs libregex link command arguments 1555 --with-crypto + =openssl,libcrypto 1556 1557 --with-openssl-libdir + =/something/reasonable 1558 1559 --with-openssl-incdir + =/something/reasonable 1560 1561 --without-rpath s Disable auto-added -R linker paths 1562 1563 --with-kame - =/usr/local/v6 1564 --with-gtest Use the gtest framework (Default: if it's available) 1565 1566Some influential environment variables: 1567 CC C compiler command 1568 CFLAGS C compiler flags 1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1570 nonstandard directory <lib dir> 1571 LIBS libraries to pass to the linker, e.g. -l<library> 1572 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1573 you have headers in a nonstandard directory <include dir> 1574 CPP C preprocessor 1575 CXX C++ compiler command 1576 CXXFLAGS C++ compiler flags 1577 CXXCPP C++ preprocessor 1578 1579Use these variables to override the choices made by `configure' or to help 1580it to find libraries and programs with nonstandard names/locations. 1581 1582Report bugs to <http://bugs.ntp.org./>. 1583sntp home page: <http://www.ntp.org./>. 1584_ACEOF 1585ac_status=$? 1586fi 1587 1588if test "$ac_init_help" = "recursive"; then 1589 # If there are subdirs, report their specific --help. 1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1591 test -d "$ac_dir" || 1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1593 continue 1594 ac_builddir=. 1595 1596case "$ac_dir" in 1597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1598*) 1599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1600 # A ".." for each directory in $ac_dir_suffix. 1601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1602 case $ac_top_builddir_sub in 1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1605 esac ;; 1606esac 1607ac_abs_top_builddir=$ac_pwd 1608ac_abs_builddir=$ac_pwd$ac_dir_suffix 1609# for backward compatibility: 1610ac_top_builddir=$ac_top_build_prefix 1611 1612case $srcdir in 1613 .) # We are building in place. 1614 ac_srcdir=. 1615 ac_top_srcdir=$ac_top_builddir_sub 1616 ac_abs_top_srcdir=$ac_pwd ;; 1617 [\\/]* | ?:[\\/]* ) # Absolute name. 1618 ac_srcdir=$srcdir$ac_dir_suffix; 1619 ac_top_srcdir=$srcdir 1620 ac_abs_top_srcdir=$srcdir ;; 1621 *) # Relative name. 1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1623 ac_top_srcdir=$ac_top_build_prefix$srcdir 1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1625esac 1626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1627 1628 cd "$ac_dir" || { ac_status=$?; continue; } 1629 # Check for guested configure. 1630 if test -f "$ac_srcdir/configure.gnu"; then 1631 echo && 1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1633 elif test -f "$ac_srcdir/configure"; then 1634 echo && 1635 $SHELL "$ac_srcdir/configure" --help=recursive 1636 else 1637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1638 fi || ac_status=$? 1639 cd "$ac_pwd" || { ac_status=$?; break; } 1640 done 1641fi 1642 1643test -n "$ac_init_help" && exit $ac_status 1644if $ac_init_version; then 1645 cat <<\_ACEOF 1646sntp configure 4.2.7p404 1647generated by GNU Autoconf 2.68 1648 1649Copyright (C) 2010 Free Software Foundation, Inc. 1650This configure script is free software; the Free Software Foundation 1651gives unlimited permission to copy, distribute and modify it. 1652_ACEOF 1653 exit 1654fi 1655 1656## ------------------------ ## 1657## Autoconf initialization. ## 1658## ------------------------ ## 1659 1660# ac_fn_c_try_compile LINENO 1661# -------------------------- 1662# Try to compile conftest.$ac_ext, and return whether this succeeded. 1663ac_fn_c_try_compile () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 rm -f conftest.$ac_objext 1667 if { { ac_try="$ac_compile" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673$as_echo "$ac_try_echo"; } >&5 1674 (eval "$ac_compile") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { 1683 test -z "$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 } && test -s conftest.$ac_objext; then : 1686 ac_retval=0 1687else 1688 $as_echo "$as_me: failed program was:" >&5 1689sed 's/^/| /' conftest.$ac_ext >&5 1690 1691 ac_retval=1 1692fi 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 as_fn_set_status $ac_retval 1695 1696} # ac_fn_c_try_compile 1697 1698# ac_fn_c_try_cpp LINENO 1699# ---------------------- 1700# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1701ac_fn_c_try_cpp () 1702{ 1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1704 if { { ac_try="$ac_cpp conftest.$ac_ext" 1705case "(($ac_try" in 1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1707 *) ac_try_echo=$ac_try;; 1708esac 1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1710$as_echo "$ac_try_echo"; } >&5 1711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1712 ac_status=$? 1713 if test -s conftest.err; then 1714 grep -v '^ *+' conftest.err >conftest.er1 1715 cat conftest.er1 >&5 1716 mv -f conftest.er1 conftest.err 1717 fi 1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1719 test $ac_status = 0; } > conftest.i && { 1720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1721 test ! -s conftest.err 1722 }; then : 1723 ac_retval=0 1724else 1725 $as_echo "$as_me: failed program was:" >&5 1726sed 's/^/| /' conftest.$ac_ext >&5 1727 1728 ac_retval=1 1729fi 1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1731 as_fn_set_status $ac_retval 1732 1733} # ac_fn_c_try_cpp 1734 1735# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1736# ------------------------------------------------------- 1737# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1738# the include files in INCLUDES and setting the cache variable VAR 1739# accordingly. 1740ac_fn_c_check_header_mongrel () 1741{ 1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1743 if eval \${$3+:} false; then : 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1745$as_echo_n "checking for $2... " >&6; } 1746if eval \${$3+:} false; then : 1747 $as_echo_n "(cached) " >&6 1748fi 1749eval ac_res=\$$3 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1751$as_echo "$ac_res" >&6; } 1752else 1753 # Is the header compilable? 1754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1755$as_echo_n "checking $2 usability... " >&6; } 1756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1757/* end confdefs.h. */ 1758$4 1759#include <$2> 1760_ACEOF 1761if ac_fn_c_try_compile "$LINENO"; then : 1762 ac_header_compiler=yes 1763else 1764 ac_header_compiler=no 1765fi 1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1768$as_echo "$ac_header_compiler" >&6; } 1769 1770# Is the header present? 1771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1772$as_echo_n "checking $2 presence... " >&6; } 1773cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1774/* end confdefs.h. */ 1775#include <$2> 1776_ACEOF 1777if ac_fn_c_try_cpp "$LINENO"; then : 1778 ac_header_preproc=yes 1779else 1780 ac_header_preproc=no 1781fi 1782rm -f conftest.err conftest.i conftest.$ac_ext 1783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1784$as_echo "$ac_header_preproc" >&6; } 1785 1786# So? What about this header? 1787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1788 yes:no: ) 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1790$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1792$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1793 ;; 1794 no:yes:* ) 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1796$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1798$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1800$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1802$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1804$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1805( $as_echo "## ------------------------------------ ## 1806## Report this to http://bugs.ntp.org./ ## 1807## ------------------------------------ ##" 1808 ) | sed "s/^/$as_me: WARNING: /" >&2 1809 ;; 1810esac 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1812$as_echo_n "checking for $2... " >&6; } 1813if eval \${$3+:} false; then : 1814 $as_echo_n "(cached) " >&6 1815else 1816 eval "$3=\$ac_header_compiler" 1817fi 1818eval ac_res=\$$3 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1820$as_echo "$ac_res" >&6; } 1821fi 1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1823 1824} # ac_fn_c_check_header_mongrel 1825 1826# ac_fn_c_try_run LINENO 1827# ---------------------- 1828# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1829# that executables *can* be run. 1830ac_fn_c_try_run () 1831{ 1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 if { { ac_try="$ac_link" 1834case "(($ac_try" in 1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1836 *) ac_try_echo=$ac_try;; 1837esac 1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1839$as_echo "$ac_try_echo"; } >&5 1840 (eval "$ac_link") 2>&5 1841 ac_status=$? 1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1843 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1844 { { case "(($ac_try" in 1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1846 *) ac_try_echo=$ac_try;; 1847esac 1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1849$as_echo "$ac_try_echo"; } >&5 1850 (eval "$ac_try") 2>&5 1851 ac_status=$? 1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1853 test $ac_status = 0; }; }; then : 1854 ac_retval=0 1855else 1856 $as_echo "$as_me: program exited with status $ac_status" >&5 1857 $as_echo "$as_me: failed program was:" >&5 1858sed 's/^/| /' conftest.$ac_ext >&5 1859 1860 ac_retval=$ac_status 1861fi 1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1864 as_fn_set_status $ac_retval 1865 1866} # ac_fn_c_try_run 1867 1868# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1869# ------------------------------------------------------- 1870# Tests whether HEADER exists and can be compiled using the include files in 1871# INCLUDES, setting the cache variable VAR accordingly. 1872ac_fn_c_check_header_compile () 1873{ 1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1876$as_echo_n "checking for $2... " >&6; } 1877if eval \${$3+:} false; then : 1878 $as_echo_n "(cached) " >&6 1879else 1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1881/* end confdefs.h. */ 1882$4 1883#include <$2> 1884_ACEOF 1885if ac_fn_c_try_compile "$LINENO"; then : 1886 eval "$3=yes" 1887else 1888 eval "$3=no" 1889fi 1890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1891fi 1892eval ac_res=\$$3 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1894$as_echo "$ac_res" >&6; } 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 1897} # ac_fn_c_check_header_compile 1898 1899# ac_fn_c_try_link LINENO 1900# ----------------------- 1901# Try to link conftest.$ac_ext, and return whether this succeeded. 1902ac_fn_c_try_link () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 rm -f conftest.$ac_objext conftest$ac_exeext 1906 if { { ac_try="$ac_link" 1907case "(($ac_try" in 1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1909 *) ac_try_echo=$ac_try;; 1910esac 1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1912$as_echo "$ac_try_echo"; } >&5 1913 (eval "$ac_link") 2>conftest.err 1914 ac_status=$? 1915 if test -s conftest.err; then 1916 grep -v '^ *+' conftest.err >conftest.er1 1917 cat conftest.er1 >&5 1918 mv -f conftest.er1 conftest.err 1919 fi 1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1921 test $ac_status = 0; } && { 1922 test -z "$ac_c_werror_flag" || 1923 test ! -s conftest.err 1924 } && test -s conftest$ac_exeext && { 1925 test "$cross_compiling" = yes || 1926 $as_test_x conftest$ac_exeext 1927 }; then : 1928 ac_retval=0 1929else 1930 $as_echo "$as_me: failed program was:" >&5 1931sed 's/^/| /' conftest.$ac_ext >&5 1932 1933 ac_retval=1 1934fi 1935 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1936 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1937 # interfere with the next link command; also delete a directory that is 1938 # left behind by Apple's compiler. We do this before executing the actions. 1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1941 as_fn_set_status $ac_retval 1942 1943} # ac_fn_c_try_link 1944 1945# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1946# ------------------------------------------- 1947# Tests whether TYPE exists after having included INCLUDES, setting cache 1948# variable VAR accordingly. 1949ac_fn_c_check_type () 1950{ 1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1953$as_echo_n "checking for $2... " >&6; } 1954if eval \${$3+:} false; then : 1955 $as_echo_n "(cached) " >&6 1956else 1957 eval "$3=no" 1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1959/* end confdefs.h. */ 1960$4 1961int 1962main () 1963{ 1964if (sizeof ($2)) 1965 return 0; 1966 ; 1967 return 0; 1968} 1969_ACEOF 1970if ac_fn_c_try_compile "$LINENO"; then : 1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1972/* end confdefs.h. */ 1973$4 1974int 1975main () 1976{ 1977if (sizeof (($2))) 1978 return 0; 1979 ; 1980 return 0; 1981} 1982_ACEOF 1983if ac_fn_c_try_compile "$LINENO"; then : 1984 1985else 1986 eval "$3=yes" 1987fi 1988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1989fi 1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1991fi 1992eval ac_res=\$$3 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1994$as_echo "$ac_res" >&6; } 1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1996 1997} # ac_fn_c_check_type 1998 1999# ac_fn_c_check_func LINENO FUNC VAR 2000# ---------------------------------- 2001# Tests whether FUNC exists, setting the cache variable VAR accordingly 2002ac_fn_c_check_func () 2003{ 2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2006$as_echo_n "checking for $2... " >&6; } 2007if eval \${$3+:} false; then : 2008 $as_echo_n "(cached) " >&6 2009else 2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2011/* end confdefs.h. */ 2012/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2013 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2014#define $2 innocuous_$2 2015 2016/* System header to define __stub macros and hopefully few prototypes, 2017 which can conflict with char $2 (); below. 2018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2019 <limits.h> exists even on freestanding compilers. */ 2020 2021#ifdef __STDC__ 2022# include <limits.h> 2023#else 2024# include <assert.h> 2025#endif 2026 2027#undef $2 2028 2029/* Override any GCC internal prototype to avoid an error. 2030 Use char because int might match the return type of a GCC 2031 builtin and then its argument prototype would still apply. */ 2032#ifdef __cplusplus 2033extern "C" 2034#endif 2035char $2 (); 2036/* The GNU C library defines this for functions which it implements 2037 to always fail with ENOSYS. Some functions are actually named 2038 something starting with __ and the normal name is an alias. */ 2039#if defined __stub_$2 || defined __stub___$2 2040choke me 2041#endif 2042 2043int 2044main () 2045{ 2046return $2 (); 2047 ; 2048 return 0; 2049} 2050_ACEOF 2051if ac_fn_c_try_link "$LINENO"; then : 2052 eval "$3=yes" 2053else 2054 eval "$3=no" 2055fi 2056rm -f core conftest.err conftest.$ac_objext \ 2057 conftest$ac_exeext conftest.$ac_ext 2058fi 2059eval ac_res=\$$3 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2061$as_echo "$ac_res" >&6; } 2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2063 2064} # ac_fn_c_check_func 2065 2066# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2067# --------------------------------------------- 2068# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2069# accordingly. 2070ac_fn_c_check_decl () 2071{ 2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2073 as_decl_name=`echo $2|sed 's/ *(.*//'` 2074 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2076$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2077if eval \${$3+:} false; then : 2078 $as_echo_n "(cached) " >&6 2079else 2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2081/* end confdefs.h. */ 2082$4 2083int 2084main () 2085{ 2086#ifndef $as_decl_name 2087#ifdef __cplusplus 2088 (void) $as_decl_use; 2089#else 2090 (void) $as_decl_name; 2091#endif 2092#endif 2093 2094 ; 2095 return 0; 2096} 2097_ACEOF 2098if ac_fn_c_try_compile "$LINENO"; then : 2099 eval "$3=yes" 2100else 2101 eval "$3=no" 2102fi 2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2104fi 2105eval ac_res=\$$3 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2107$as_echo "$ac_res" >&6; } 2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2109 2110} # ac_fn_c_check_decl 2111 2112# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2113# -------------------------------------------- 2114# Tries to find the compile-time value of EXPR in a program that includes 2115# INCLUDES, setting VAR accordingly. Returns whether the value could be 2116# computed 2117ac_fn_c_compute_int () 2118{ 2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2120 if test "$cross_compiling" = yes; then 2121 # Depending upon the size, compute the lo and hi bounds. 2122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2123/* end confdefs.h. */ 2124$4 2125int 2126main () 2127{ 2128static int test_array [1 - 2 * !(($2) >= 0)]; 2129test_array [0] = 0 2130 2131 ; 2132 return 0; 2133} 2134_ACEOF 2135if ac_fn_c_try_compile "$LINENO"; then : 2136 ac_lo=0 ac_mid=0 2137 while :; do 2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2139/* end confdefs.h. */ 2140$4 2141int 2142main () 2143{ 2144static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2145test_array [0] = 0 2146 2147 ; 2148 return 0; 2149} 2150_ACEOF 2151if ac_fn_c_try_compile "$LINENO"; then : 2152 ac_hi=$ac_mid; break 2153else 2154 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2155 if test $ac_lo -le $ac_mid; then 2156 ac_lo= ac_hi= 2157 break 2158 fi 2159 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2160fi 2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2162 done 2163else 2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2165/* end confdefs.h. */ 2166$4 2167int 2168main () 2169{ 2170static int test_array [1 - 2 * !(($2) < 0)]; 2171test_array [0] = 0 2172 2173 ; 2174 return 0; 2175} 2176_ACEOF 2177if ac_fn_c_try_compile "$LINENO"; then : 2178 ac_hi=-1 ac_mid=-1 2179 while :; do 2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2181/* end confdefs.h. */ 2182$4 2183int 2184main () 2185{ 2186static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2187test_array [0] = 0 2188 2189 ; 2190 return 0; 2191} 2192_ACEOF 2193if ac_fn_c_try_compile "$LINENO"; then : 2194 ac_lo=$ac_mid; break 2195else 2196 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2197 if test $ac_mid -le $ac_hi; then 2198 ac_lo= ac_hi= 2199 break 2200 fi 2201 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2202fi 2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2204 done 2205else 2206 ac_lo= ac_hi= 2207fi 2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2209fi 2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2211# Binary search between lo and hi bounds. 2212while test "x$ac_lo" != "x$ac_hi"; do 2213 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2215/* end confdefs.h. */ 2216$4 2217int 2218main () 2219{ 2220static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2221test_array [0] = 0 2222 2223 ; 2224 return 0; 2225} 2226_ACEOF 2227if ac_fn_c_try_compile "$LINENO"; then : 2228 ac_hi=$ac_mid 2229else 2230 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2231fi 2232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2233done 2234case $ac_lo in #(( 2235?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2236'') ac_retval=1 ;; 2237esac 2238 else 2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2240/* end confdefs.h. */ 2241$4 2242static long int longval () { return $2; } 2243static unsigned long int ulongval () { return $2; } 2244#include <stdio.h> 2245#include <stdlib.h> 2246int 2247main () 2248{ 2249 2250 FILE *f = fopen ("conftest.val", "w"); 2251 if (! f) 2252 return 1; 2253 if (($2) < 0) 2254 { 2255 long int i = longval (); 2256 if (i != ($2)) 2257 return 1; 2258 fprintf (f, "%ld", i); 2259 } 2260 else 2261 { 2262 unsigned long int i = ulongval (); 2263 if (i != ($2)) 2264 return 1; 2265 fprintf (f, "%lu", i); 2266 } 2267 /* Do not output a trailing newline, as this causes \r\n confusion 2268 on some platforms. */ 2269 return ferror (f) || fclose (f) != 0; 2270 2271 ; 2272 return 0; 2273} 2274_ACEOF 2275if ac_fn_c_try_run "$LINENO"; then : 2276 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2277else 2278 ac_retval=1 2279fi 2280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2281 conftest.$ac_objext conftest.beam conftest.$ac_ext 2282rm -f conftest.val 2283 2284 fi 2285 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2286 as_fn_set_status $ac_retval 2287 2288} # ac_fn_c_compute_int 2289 2290# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2291# ---------------------------------------------------- 2292# Tries to find if the field MEMBER exists in type AGGR, after including 2293# INCLUDES, setting cache variable VAR accordingly. 2294ac_fn_c_check_member () 2295{ 2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2298$as_echo_n "checking for $2.$3... " >&6; } 2299if eval \${$4+:} false; then : 2300 $as_echo_n "(cached) " >&6 2301else 2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2303/* end confdefs.h. */ 2304$5 2305int 2306main () 2307{ 2308static $2 ac_aggr; 2309if (ac_aggr.$3) 2310return 0; 2311 ; 2312 return 0; 2313} 2314_ACEOF 2315if ac_fn_c_try_compile "$LINENO"; then : 2316 eval "$4=yes" 2317else 2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2319/* end confdefs.h. */ 2320$5 2321int 2322main () 2323{ 2324static $2 ac_aggr; 2325if (sizeof ac_aggr.$3) 2326return 0; 2327 ; 2328 return 0; 2329} 2330_ACEOF 2331if ac_fn_c_try_compile "$LINENO"; then : 2332 eval "$4=yes" 2333else 2334 eval "$4=no" 2335fi 2336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2337fi 2338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2339fi 2340eval ac_res=\$$4 2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2342$as_echo "$ac_res" >&6; } 2343 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2344 2345} # ac_fn_c_check_member 2346 2347# ac_fn_cxx_try_compile LINENO 2348# ---------------------------- 2349# Try to compile conftest.$ac_ext, and return whether this succeeded. 2350ac_fn_cxx_try_compile () 2351{ 2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2353 rm -f conftest.$ac_objext 2354 if { { ac_try="$ac_compile" 2355case "(($ac_try" in 2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2357 *) ac_try_echo=$ac_try;; 2358esac 2359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2360$as_echo "$ac_try_echo"; } >&5 2361 (eval "$ac_compile") 2>conftest.err 2362 ac_status=$? 2363 if test -s conftest.err; then 2364 grep -v '^ *+' conftest.err >conftest.er1 2365 cat conftest.er1 >&5 2366 mv -f conftest.er1 conftest.err 2367 fi 2368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2369 test $ac_status = 0; } && { 2370 test -z "$ac_cxx_werror_flag" || 2371 test ! -s conftest.err 2372 } && test -s conftest.$ac_objext; then : 2373 ac_retval=0 2374else 2375 $as_echo "$as_me: failed program was:" >&5 2376sed 's/^/| /' conftest.$ac_ext >&5 2377 2378 ac_retval=1 2379fi 2380 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2381 as_fn_set_status $ac_retval 2382 2383} # ac_fn_cxx_try_compile 2384 2385# ac_fn_cxx_try_cpp LINENO 2386# ------------------------ 2387# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2388ac_fn_cxx_try_cpp () 2389{ 2390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2391 if { { ac_try="$ac_cpp conftest.$ac_ext" 2392case "(($ac_try" in 2393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2394 *) ac_try_echo=$ac_try;; 2395esac 2396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2397$as_echo "$ac_try_echo"; } >&5 2398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2399 ac_status=$? 2400 if test -s conftest.err; then 2401 grep -v '^ *+' conftest.err >conftest.er1 2402 cat conftest.er1 >&5 2403 mv -f conftest.er1 conftest.err 2404 fi 2405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2406 test $ac_status = 0; } > conftest.i && { 2407 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2408 test ! -s conftest.err 2409 }; then : 2410 ac_retval=0 2411else 2412 $as_echo "$as_me: failed program was:" >&5 2413sed 's/^/| /' conftest.$ac_ext >&5 2414 2415 ac_retval=1 2416fi 2417 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2418 as_fn_set_status $ac_retval 2419 2420} # ac_fn_cxx_try_cpp 2421 2422# ac_fn_cxx_try_link LINENO 2423# ------------------------- 2424# Try to link conftest.$ac_ext, and return whether this succeeded. 2425ac_fn_cxx_try_link () 2426{ 2427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2428 rm -f conftest.$ac_objext conftest$ac_exeext 2429 if { { ac_try="$ac_link" 2430case "(($ac_try" in 2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2432 *) ac_try_echo=$ac_try;; 2433esac 2434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2435$as_echo "$ac_try_echo"; } >&5 2436 (eval "$ac_link") 2>conftest.err 2437 ac_status=$? 2438 if test -s conftest.err; then 2439 grep -v '^ *+' conftest.err >conftest.er1 2440 cat conftest.er1 >&5 2441 mv -f conftest.er1 conftest.err 2442 fi 2443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2444 test $ac_status = 0; } && { 2445 test -z "$ac_cxx_werror_flag" || 2446 test ! -s conftest.err 2447 } && test -s conftest$ac_exeext && { 2448 test "$cross_compiling" = yes || 2449 $as_test_x conftest$ac_exeext 2450 }; then : 2451 ac_retval=0 2452else 2453 $as_echo "$as_me: failed program was:" >&5 2454sed 's/^/| /' conftest.$ac_ext >&5 2455 2456 ac_retval=1 2457fi 2458 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2459 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2460 # interfere with the next link command; also delete a directory that is 2461 # left behind by Apple's compiler. We do this before executing the actions. 2462 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2464 as_fn_set_status $ac_retval 2465 2466} # ac_fn_cxx_try_link 2467cat >config.log <<_ACEOF 2468This file contains any messages produced by compilers while 2469running configure, to aid debugging if configure makes a mistake. 2470 2471It was created by sntp $as_me 4.2.7p404, which was 2472generated by GNU Autoconf 2.68. Invocation command line was 2473 2474 $ $0 $@ 2475 2476_ACEOF 2477exec 5>>config.log 2478{ 2479cat <<_ASUNAME 2480## --------- ## 2481## Platform. ## 2482## --------- ## 2483 2484hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2485uname -m = `(uname -m) 2>/dev/null || echo unknown` 2486uname -r = `(uname -r) 2>/dev/null || echo unknown` 2487uname -s = `(uname -s) 2>/dev/null || echo unknown` 2488uname -v = `(uname -v) 2>/dev/null || echo unknown` 2489 2490/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2491/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2492 2493/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2494/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2495/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2496/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2497/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2498/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2499/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2500 2501_ASUNAME 2502 2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2504for as_dir in $PATH 2505do 2506 IFS=$as_save_IFS 2507 test -z "$as_dir" && as_dir=. 2508 $as_echo "PATH: $as_dir" 2509 done 2510IFS=$as_save_IFS 2511 2512} >&5 2513 2514cat >&5 <<_ACEOF 2515 2516 2517## ----------- ## 2518## Core tests. ## 2519## ----------- ## 2520 2521_ACEOF 2522 2523 2524# Keep a trace of the command line. 2525# Strip out --no-create and --no-recursion so they do not pile up. 2526# Strip out --silent because we don't want to record it for future runs. 2527# Also quote any args containing shell meta-characters. 2528# Make two passes to allow for proper duplicate-argument suppression. 2529ac_configure_args= 2530ac_configure_args0= 2531ac_configure_args1= 2532ac_must_keep_next=false 2533for ac_pass in 1 2 2534do 2535 for ac_arg 2536 do 2537 case $ac_arg in 2538 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2540 | -silent | --silent | --silen | --sile | --sil) 2541 continue ;; 2542 *\'*) 2543 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2544 esac 2545 case $ac_pass in 2546 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2547 2) 2548 as_fn_append ac_configure_args1 " '$ac_arg'" 2549 if test $ac_must_keep_next = true; then 2550 ac_must_keep_next=false # Got value, back to normal. 2551 else 2552 case $ac_arg in 2553 *=* | --config-cache | -C | -disable-* | --disable-* \ 2554 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2555 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2556 | -with-* | --with-* | -without-* | --without-* | --x) 2557 case "$ac_configure_args0 " in 2558 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2559 esac 2560 ;; 2561 -* ) ac_must_keep_next=true ;; 2562 esac 2563 fi 2564 as_fn_append ac_configure_args " '$ac_arg'" 2565 ;; 2566 esac 2567 done 2568done 2569{ ac_configure_args0=; unset ac_configure_args0;} 2570{ ac_configure_args1=; unset ac_configure_args1;} 2571 2572# When interrupted or exit'd, cleanup temporary files, and complete 2573# config.log. We remove comments because anyway the quotes in there 2574# would cause problems or look ugly. 2575# WARNING: Use '\'' to represent an apostrophe within the trap. 2576# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2577trap 'exit_status=$? 2578 # Save into config.log some information that might help in debugging. 2579 { 2580 echo 2581 2582 $as_echo "## ---------------- ## 2583## Cache variables. ## 2584## ---------------- ##" 2585 echo 2586 # The following way of writing the cache mishandles newlines in values, 2587( 2588 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2589 eval ac_val=\$$ac_var 2590 case $ac_val in #( 2591 *${as_nl}*) 2592 case $ac_var in #( 2593 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2594$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2595 esac 2596 case $ac_var in #( 2597 _ | IFS | as_nl) ;; #( 2598 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2599 *) { eval $ac_var=; unset $ac_var;} ;; 2600 esac ;; 2601 esac 2602 done 2603 (set) 2>&1 | 2604 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2605 *${as_nl}ac_space=\ *) 2606 sed -n \ 2607 "s/'\''/'\''\\\\'\'''\''/g; 2608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2609 ;; #( 2610 *) 2611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2612 ;; 2613 esac | 2614 sort 2615) 2616 echo 2617 2618 $as_echo "## ----------------- ## 2619## Output variables. ## 2620## ----------------- ##" 2621 echo 2622 for ac_var in $ac_subst_vars 2623 do 2624 eval ac_val=\$$ac_var 2625 case $ac_val in 2626 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2627 esac 2628 $as_echo "$ac_var='\''$ac_val'\''" 2629 done | sort 2630 echo 2631 2632 if test -n "$ac_subst_files"; then 2633 $as_echo "## ------------------- ## 2634## File substitutions. ## 2635## ------------------- ##" 2636 echo 2637 for ac_var in $ac_subst_files 2638 do 2639 eval ac_val=\$$ac_var 2640 case $ac_val in 2641 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2642 esac 2643 $as_echo "$ac_var='\''$ac_val'\''" 2644 done | sort 2645 echo 2646 fi 2647 2648 if test -s confdefs.h; then 2649 $as_echo "## ----------- ## 2650## confdefs.h. ## 2651## ----------- ##" 2652 echo 2653 cat confdefs.h 2654 echo 2655 fi 2656 test "$ac_signal" != 0 && 2657 $as_echo "$as_me: caught signal $ac_signal" 2658 $as_echo "$as_me: exit $exit_status" 2659 } >&5 2660 rm -f core *.core core.conftest.* && 2661 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2662 exit $exit_status 2663' 0 2664for ac_signal in 1 2 13 15; do 2665 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2666done 2667ac_signal=0 2668 2669# confdefs.h avoids OS command line length limits that DEFS can exceed. 2670rm -f -r conftest* confdefs.h 2671 2672$as_echo "/* confdefs.h */" > confdefs.h 2673 2674# Predefined preprocessor variables. 2675 2676cat >>confdefs.h <<_ACEOF 2677#define PACKAGE_NAME "$PACKAGE_NAME" 2678_ACEOF 2679 2680cat >>confdefs.h <<_ACEOF 2681#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2682_ACEOF 2683 2684cat >>confdefs.h <<_ACEOF 2685#define PACKAGE_VERSION "$PACKAGE_VERSION" 2686_ACEOF 2687 2688cat >>confdefs.h <<_ACEOF 2689#define PACKAGE_STRING "$PACKAGE_STRING" 2690_ACEOF 2691 2692cat >>confdefs.h <<_ACEOF 2693#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2694_ACEOF 2695 2696cat >>confdefs.h <<_ACEOF 2697#define PACKAGE_URL "$PACKAGE_URL" 2698_ACEOF 2699 2700 2701# Let the site file select an alternate cache file if it wants to. 2702# Prefer an explicitly selected file to automatically selected ones. 2703ac_site_file1=NONE 2704ac_site_file2=NONE 2705if test -n "$CONFIG_SITE"; then 2706 # We do not want a PATH search for config.site. 2707 case $CONFIG_SITE in #(( 2708 -*) ac_site_file1=./$CONFIG_SITE;; 2709 */*) ac_site_file1=$CONFIG_SITE;; 2710 *) ac_site_file1=./$CONFIG_SITE;; 2711 esac 2712elif test "x$prefix" != xNONE; then 2713 ac_site_file1=$prefix/share/config.site 2714 ac_site_file2=$prefix/etc/config.site 2715else 2716 ac_site_file1=$ac_default_prefix/share/config.site 2717 ac_site_file2=$ac_default_prefix/etc/config.site 2718fi 2719for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2720do 2721 test "x$ac_site_file" = xNONE && continue 2722 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2724$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2725 sed 's/^/| /' "$ac_site_file" >&5 2726 . "$ac_site_file" \ 2727 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2729as_fn_error $? "failed to load site script $ac_site_file 2730See \`config.log' for more details" "$LINENO" 5; } 2731 fi 2732done 2733 2734if test -r "$cache_file"; then 2735 # Some versions of bash will fail to source /dev/null (special files 2736 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2737 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2739$as_echo "$as_me: loading cache $cache_file" >&6;} 2740 case $cache_file in 2741 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2742 *) . "./$cache_file";; 2743 esac 2744 fi 2745else 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2747$as_echo "$as_me: creating cache $cache_file" >&6;} 2748 >$cache_file 2749fi 2750 2751as_fn_append ac_header_list " stdarg.h" 2752# Check that the precious variables saved in the cache have kept the same 2753# value. 2754ac_cache_corrupted=false 2755for ac_var in $ac_precious_vars; do 2756 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2757 eval ac_new_set=\$ac_env_${ac_var}_set 2758 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2759 eval ac_new_val=\$ac_env_${ac_var}_value 2760 case $ac_old_set,$ac_new_set in 2761 set,) 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2763$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2764 ac_cache_corrupted=: ;; 2765 ,set) 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2767$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2768 ac_cache_corrupted=: ;; 2769 ,);; 2770 *) 2771 if test "x$ac_old_val" != "x$ac_new_val"; then 2772 # differences in whitespace do not lead to failure. 2773 ac_old_val_w=`echo x $ac_old_val` 2774 ac_new_val_w=`echo x $ac_new_val` 2775 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2776 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2777$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2778 ac_cache_corrupted=: 2779 else 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2781$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2782 eval $ac_var=\$ac_old_val 2783 fi 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2785$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2787$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2788 fi;; 2789 esac 2790 # Pass precious variables to config.status. 2791 if test "$ac_new_set" = set; then 2792 case $ac_new_val in 2793 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2794 *) ac_arg=$ac_var=$ac_new_val ;; 2795 esac 2796 case " $ac_configure_args " in 2797 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2798 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2799 esac 2800 fi 2801done 2802if $ac_cache_corrupted; then 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2806$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2807 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2808fi 2809## -------------------- ## 2810## Main body of script. ## 2811## -------------------- ## 2812 2813ac_ext=c 2814ac_cpp='$CPP $CPPFLAGS' 2815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2817ac_compiler_gnu=$ac_cv_c_compiler_gnu 2818 2819 2820 2821ac_aux_dir= 2822for ac_dir in libevent/build-aux "$srcdir"/libevent/build-aux; do 2823 if test -f "$ac_dir/install-sh"; then 2824 ac_aux_dir=$ac_dir 2825 ac_install_sh="$ac_aux_dir/install-sh -c" 2826 break 2827 elif test -f "$ac_dir/install.sh"; then 2828 ac_aux_dir=$ac_dir 2829 ac_install_sh="$ac_aux_dir/install.sh -c" 2830 break 2831 elif test -f "$ac_dir/shtool"; then 2832 ac_aux_dir=$ac_dir 2833 ac_install_sh="$ac_aux_dir/shtool install -c" 2834 break 2835 fi 2836done 2837if test -z "$ac_aux_dir"; then 2838 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libevent/build-aux \"$srcdir\"/libevent/build-aux" "$LINENO" 5 2839fi 2840 2841# These three variables are undocumented and unsupported, 2842# and are intended to be withdrawn in a future Autoconf release. 2843# They can cause serious problems if a builder's source tree is in a directory 2844# whose full name contains unusual characters. 2845ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2846ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2847ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2848 2849 2850 2851# Bump sntp_configure_cache_version for each change to configure.ac or 2852# .m4 files which invalidates cached values from previous configure 2853# runs. 2854# 2855# If the change affects cache variables used only by the main NTP 2856# configure.ac, then only its version number should be bumped, while 2857# the subdir configure.ac version numbers should be unchanged. The 2858# same is true for a test/variable that is used only by one subdir 2859# being changed incompatibly; only that subdir's cache version needs 2860# bumping. 2861# 2862# If a change affects variables shared by all NTP configure scripts, 2863# please bump the version numbers of each. If you are not sure, the 2864# safe choice is to bump all on any cache-invalidating change. 2865# 2866# In order to avoid the risk of version stamp collision between -stable 2867# and -dev branches, do not simply increment the version, instead use 2868# the date YYYYMMDD optionally with -HHMM if there is more than one 2869# bump in a day. 2870 2871sntp_configure_cache_version=20120806 2872 2873# When the version of config.cache and configure do not 2874# match, NTP_CACHEVERSION will flush the cache. 2875 2876 2877 2878 ntp_cache_flush=1 2879 2880 case "$ntp_cv_sntp_cache_version" in 2881 $sntp_configure_cache_version) 2882 # same version, good 2883 ntp_cache_flush=0 2884 ;; 2885 '') 2886 # No cache, predates ntp_cv_sntp_cache_version, or is empty. 2887 case "$cache_file" in 2888 /dev/null) 2889 ntp_cache_flush=0 2890 ;; 2891 *) 2892 case "$NTP_CACHEVERSION_PARENT" in 2893 '') 2894 # Do not clear the cache immediately after it is created 2895 # empty as it is noisy. Differentiate a newly-created 2896 # config.cache from one predating the cache version 2897 # mechanism by looking for the first cached variable set 2898 # by Autoconf 2899 case "$ac_cv_path_install" in 2900 '') 2901 # empty config.cache file 2902 ntp_cache_flush=0 2903 esac 2904 ;; 2905 *) 2906 # Parent configure just created cache from empty, 2907 # flushing would be counterproductive. 2908 ntp_cache_flush=0; 2909 ;; 2910 esac 2911 esac 2912 ;; 2913 *) 2914 # configure cache version mismatches config.cache version 2915 ;; 2916 esac 2917 2918 case "$ntp_cache_flush" in 2919 1) 2920 c_version="${ntp_cv_sntp_cache_version:-(no version found)}" 2921 2922 # Do we flush all variables or exclude others' version stamps? 2923 2924 case "$NTP_CACHEVERSION_PARENT" in 2925 '') 2926 # Clear all *_cv_* variables including our child subdirs' 2927 # ntp_cv_*_cache_version variables. This prevents subdir 2928 # configure scripts from noticing a version mismatch just 2929 # after the top configure in the invocation cleared and 2930 # recreated the cache. 2931 2932 c_varname_list=`set | 2933 sed -n -e 's/=.*$//' \ 2934 -e '/_cv_/p' 2935 ` 2936 ;; 2937 *) 2938 # This is not the top configure this particular invocation. 2939 # Clear all *_cv_* variables sparing the version stamps 2940 # of other configure scripts, so we don't trigger 2941 # useless repeated clearings. 2942 2943 c_varname_list=`set | 2944 sed -n -e 's/=.*$//' \ 2945 -e '/ntp_cv_.*_cache_version/d' \ 2946 -e '/_cv_/p' 2947 ` 2948 esac 2949 2950 for c_varname in $c_varname_list 2951 do 2952 { eval $c_varname=; unset $c_varname; } 2953 done 2954 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5 2956$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;} 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5 2958$as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;} 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5 2960$as_echo "$as_me: $cache_file version: $c_version" >&6;} 2961 { c_varname=; unset c_varname;} 2962 { c_varname_list=; unset c_varname_list;} 2963 { c_version=; unset c_version;} 2964 esac 2965 2966 { ntp_cache_flush=; unset ntp_cache_flush;} 2967 2968 # save configure version in config.cache for next time 2969 ntp_cv_sntp_cache_version="$sntp_configure_cache_version" 2970 2971 # let any subdir configure.ac NTP_CACHEVERSION invocations 2972 # know they are not the top level. 2973 NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT 2974 2975 2976am__api_version='1.11' 2977 2978# Find a good install program. We prefer a C program (faster), 2979# so one script is as good as another. But avoid the broken or 2980# incompatible versions: 2981# SysV /etc/install, /usr/sbin/install 2982# SunOS /usr/etc/install 2983# IRIX /sbin/install 2984# AIX /bin/install 2985# AmigaOS /C/install, which installs bootblocks on floppy discs 2986# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2987# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2988# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2989# OS/2's system install, which has a completely different semantic 2990# ./install, which can be erroneously created by make from ./install.sh. 2991# Reject install programs that cannot install multiple files. 2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2993$as_echo_n "checking for a BSD-compatible install... " >&6; } 2994if test -z "$INSTALL"; then 2995if ${ac_cv_path_install+:} false; then : 2996 $as_echo_n "(cached) " >&6 2997else 2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2999for as_dir in $PATH 3000do 3001 IFS=$as_save_IFS 3002 test -z "$as_dir" && as_dir=. 3003 # Account for people who put trailing slashes in PATH elements. 3004case $as_dir/ in #(( 3005 ./ | .// | /[cC]/* | \ 3006 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3007 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3008 /usr/ucb/* ) ;; 3009 *) 3010 # OSF1 and SCO ODT 3.0 have their own names for install. 3011 # Don't use installbsd from OSF since it installs stuff as root 3012 # by default. 3013 for ac_prog in ginstall scoinst install; do 3014 for ac_exec_ext in '' $ac_executable_extensions; do 3015 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3016 if test $ac_prog = install && 3017 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3018 # AIX install. It has an incompatible calling convention. 3019 : 3020 elif test $ac_prog = install && 3021 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3022 # program-specific install script used by HP pwplus--don't use. 3023 : 3024 else 3025 rm -rf conftest.one conftest.two conftest.dir 3026 echo one > conftest.one 3027 echo two > conftest.two 3028 mkdir conftest.dir 3029 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3030 test -s conftest.one && test -s conftest.two && 3031 test -s conftest.dir/conftest.one && 3032 test -s conftest.dir/conftest.two 3033 then 3034 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3035 break 3 3036 fi 3037 fi 3038 fi 3039 done 3040 done 3041 ;; 3042esac 3043 3044 done 3045IFS=$as_save_IFS 3046 3047rm -rf conftest.one conftest.two conftest.dir 3048 3049fi 3050 if test "${ac_cv_path_install+set}" = set; then 3051 INSTALL=$ac_cv_path_install 3052 else 3053 # As a last resort, use the slow shell script. Don't cache a 3054 # value for INSTALL within a source directory, because that will 3055 # break other packages using the cache if that directory is 3056 # removed, or if the value is a relative name. 3057 INSTALL=$ac_install_sh 3058 fi 3059fi 3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3061$as_echo "$INSTALL" >&6; } 3062 3063# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3064# It thinks the first close brace ends the variable substitution. 3065test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3066 3067test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3068 3069test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3070 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3072$as_echo_n "checking whether build environment is sane... " >&6; } 3073# Just in case 3074sleep 1 3075echo timestamp > conftest.file 3076# Reject unsafe characters in $srcdir or the absolute working directory 3077# name. Accept space and tab only in the latter. 3078am_lf=' 3079' 3080case `pwd` in 3081 *[\\\"\#\$\&\'\`$am_lf]*) 3082 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3083esac 3084case $srcdir in 3085 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3086 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3087esac 3088 3089# Do `set' in a subshell so we don't clobber the current shell's 3090# arguments. Must try -L first in case configure is actually a 3091# symlink; some systems play weird games with the mod time of symlinks 3092# (eg FreeBSD returns the mod time of the symlink's containing 3093# directory). 3094if ( 3095 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3096 if test "$*" = "X"; then 3097 # -L didn't work. 3098 set X `ls -t "$srcdir/configure" conftest.file` 3099 fi 3100 rm -f conftest.file 3101 if test "$*" != "X $srcdir/configure conftest.file" \ 3102 && test "$*" != "X conftest.file $srcdir/configure"; then 3103 3104 # If neither matched, then we have a broken ls. This can happen 3105 # if, for instance, CONFIG_SHELL is bash and it inherits a 3106 # broken ls alias from the environment. This has actually 3107 # happened. Such a system could not be considered "sane". 3108 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3109alias in your environment" "$LINENO" 5 3110 fi 3111 3112 test "$2" = conftest.file 3113 ) 3114then 3115 # Ok. 3116 : 3117else 3118 as_fn_error $? "newly created file is older than distributed files! 3119Check your system clock" "$LINENO" 5 3120fi 3121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3122$as_echo "yes" >&6; } 3123test "$program_prefix" != NONE && 3124 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3125# Use a double $ so make ignores it. 3126test "$program_suffix" != NONE && 3127 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3128# Double any \ or $. 3129# By default was `s,x,x', remove it if useless. 3130ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3131program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3132 3133# expand $ac_aux_dir to an absolute path 3134am_aux_dir=`cd $ac_aux_dir && pwd` 3135 3136if test x"${MISSING+set}" != xset; then 3137 case $am_aux_dir in 3138 *\ * | *\ *) 3139 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3140 *) 3141 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3142 esac 3143fi 3144# Use eval to expand $SHELL 3145if eval "$MISSING --run true"; then 3146 am_missing_run="$MISSING --run " 3147else 3148 am_missing_run= 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3150$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3151fi 3152 3153if test x"${install_sh}" != xset; then 3154 case $am_aux_dir in 3155 *\ * | *\ *) 3156 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3157 *) 3158 install_sh="\${SHELL} $am_aux_dir/install-sh" 3159 esac 3160fi 3161 3162# Installed binaries are usually stripped using `strip' when the user 3163# run `make install-strip'. However `strip' might not be the right 3164# tool to use in cross-compilation environments, therefore Automake 3165# will honor the `STRIP' environment variable to overrule this program. 3166if test "$cross_compiling" != no; then 3167 if test -n "$ac_tool_prefix"; then 3168 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3169set dummy ${ac_tool_prefix}strip; ac_word=$2 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3171$as_echo_n "checking for $ac_word... " >&6; } 3172if ${ac_cv_prog_STRIP+:} false; then : 3173 $as_echo_n "(cached) " >&6 3174else 3175 if test -n "$STRIP"; then 3176 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3177else 3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3179for as_dir in $PATH 3180do 3181 IFS=$as_save_IFS 3182 test -z "$as_dir" && as_dir=. 3183 for ac_exec_ext in '' $ac_executable_extensions; do 3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3185 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3187 break 2 3188 fi 3189done 3190 done 3191IFS=$as_save_IFS 3192 3193fi 3194fi 3195STRIP=$ac_cv_prog_STRIP 3196if test -n "$STRIP"; then 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3198$as_echo "$STRIP" >&6; } 3199else 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3201$as_echo "no" >&6; } 3202fi 3203 3204 3205fi 3206if test -z "$ac_cv_prog_STRIP"; then 3207 ac_ct_STRIP=$STRIP 3208 # Extract the first word of "strip", so it can be a program name with args. 3209set dummy strip; ac_word=$2 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3211$as_echo_n "checking for $ac_word... " >&6; } 3212if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3213 $as_echo_n "(cached) " >&6 3214else 3215 if test -n "$ac_ct_STRIP"; then 3216 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3217else 3218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3219for as_dir in $PATH 3220do 3221 IFS=$as_save_IFS 3222 test -z "$as_dir" && as_dir=. 3223 for ac_exec_ext in '' $ac_executable_extensions; do 3224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3225 ac_cv_prog_ac_ct_STRIP="strip" 3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3227 break 2 3228 fi 3229done 3230 done 3231IFS=$as_save_IFS 3232 3233fi 3234fi 3235ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3236if test -n "$ac_ct_STRIP"; then 3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3238$as_echo "$ac_ct_STRIP" >&6; } 3239else 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3241$as_echo "no" >&6; } 3242fi 3243 3244 if test "x$ac_ct_STRIP" = x; then 3245 STRIP=":" 3246 else 3247 case $cross_compiling:$ac_tool_warned in 3248yes:) 3249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3251ac_tool_warned=yes ;; 3252esac 3253 STRIP=$ac_ct_STRIP 3254 fi 3255else 3256 STRIP="$ac_cv_prog_STRIP" 3257fi 3258 3259fi 3260INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3261 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3263$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3264if test -z "$MKDIR_P"; then 3265 if ${ac_cv_path_mkdir+:} false; then : 3266 $as_echo_n "(cached) " >&6 3267else 3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3269for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3270do 3271 IFS=$as_save_IFS 3272 test -z "$as_dir" && as_dir=. 3273 for ac_prog in mkdir gmkdir; do 3274 for ac_exec_ext in '' $ac_executable_extensions; do 3275 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3276 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3277 'mkdir (GNU coreutils) '* | \ 3278 'mkdir (coreutils) '* | \ 3279 'mkdir (fileutils) '4.1*) 3280 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3281 break 3;; 3282 esac 3283 done 3284 done 3285 done 3286IFS=$as_save_IFS 3287 3288fi 3289 3290 test -d ./--version && rmdir ./--version 3291 if test "${ac_cv_path_mkdir+set}" = set; then 3292 MKDIR_P="$ac_cv_path_mkdir -p" 3293 else 3294 # As a last resort, use the slow shell script. Don't cache a 3295 # value for MKDIR_P within a source directory, because that will 3296 # break other packages using the cache if that directory is 3297 # removed, or if the value is a relative name. 3298 MKDIR_P="$ac_install_sh -d" 3299 fi 3300fi 3301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3302$as_echo "$MKDIR_P" >&6; } 3303 3304mkdir_p="$MKDIR_P" 3305case $mkdir_p in 3306 [\\/$]* | ?:[\\/]*) ;; 3307 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3308esac 3309 3310for ac_prog in gawk mawk nawk awk 3311do 3312 # Extract the first word of "$ac_prog", so it can be a program name with args. 3313set dummy $ac_prog; ac_word=$2 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3315$as_echo_n "checking for $ac_word... " >&6; } 3316if ${ac_cv_prog_AWK+:} false; then : 3317 $as_echo_n "(cached) " >&6 3318else 3319 if test -n "$AWK"; then 3320 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3321else 3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3323for as_dir in $PATH 3324do 3325 IFS=$as_save_IFS 3326 test -z "$as_dir" && as_dir=. 3327 for ac_exec_ext in '' $ac_executable_extensions; do 3328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3329 ac_cv_prog_AWK="$ac_prog" 3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3331 break 2 3332 fi 3333done 3334 done 3335IFS=$as_save_IFS 3336 3337fi 3338fi 3339AWK=$ac_cv_prog_AWK 3340if test -n "$AWK"; then 3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3342$as_echo "$AWK" >&6; } 3343else 3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3345$as_echo "no" >&6; } 3346fi 3347 3348 3349 test -n "$AWK" && break 3350done 3351 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3353$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3354set x ${MAKE-make} 3355ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3356if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3357 $as_echo_n "(cached) " >&6 3358else 3359 cat >conftest.make <<\_ACEOF 3360SHELL = /bin/sh 3361all: 3362 @echo '@@@%%%=$(MAKE)=@@@%%%' 3363_ACEOF 3364# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3365case `${MAKE-make} -f conftest.make 2>/dev/null` in 3366 *@@@%%%=?*=@@@%%%*) 3367 eval ac_cv_prog_make_${ac_make}_set=yes;; 3368 *) 3369 eval ac_cv_prog_make_${ac_make}_set=no;; 3370esac 3371rm -f conftest.make 3372fi 3373if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3375$as_echo "yes" >&6; } 3376 SET_MAKE= 3377else 3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3379$as_echo "no" >&6; } 3380 SET_MAKE="MAKE=${MAKE-make}" 3381fi 3382 3383rm -rf .tst 2>/dev/null 3384mkdir .tst 2>/dev/null 3385if test -d .tst; then 3386 am__leading_dot=. 3387else 3388 am__leading_dot=_ 3389fi 3390rmdir .tst 2>/dev/null 3391 3392if test "`cd $srcdir && pwd`" != "`pwd`"; then 3393 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3394 # is not polluted with repeated "-I." 3395 am__isrc=' -I$(srcdir)' 3396 # test to see if srcdir already configured 3397 if test -f $srcdir/config.status; then 3398 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3399 fi 3400fi 3401 3402# test whether we have cygpath 3403if test -z "$CYGPATH_W"; then 3404 if (cygpath --version) >/dev/null 2>/dev/null; then 3405 CYGPATH_W='cygpath -w' 3406 else 3407 CYGPATH_W=echo 3408 fi 3409fi 3410 3411 3412# Define the identity of the package. 3413 PACKAGE='sntp' 3414 VERSION='4.2.7p404' 3415 3416 3417cat >>confdefs.h <<_ACEOF 3418#define PACKAGE "$PACKAGE" 3419_ACEOF 3420 3421 3422cat >>confdefs.h <<_ACEOF 3423#define VERSION "$VERSION" 3424_ACEOF 3425 3426# Some tools Automake needs. 3427 3428ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3429 3430 3431AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3432 3433 3434AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3435 3436 3437AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3438 3439 3440MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3441 3442# We need awk for the "check" target. The system "awk" is bad on 3443# some platforms. 3444# Always define AMTAR for backward compatibility. 3445 3446AMTAR=${AMTAR-"${am_missing_run}tar"} 3447 3448am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3449 3450 3451 3452 3453 3454# Check whether --enable-silent-rules was given. 3455if test "${enable_silent_rules+set}" = set; then : 3456 enableval=$enable_silent_rules; 3457fi 3458 3459case $enable_silent_rules in 3460yes) AM_DEFAULT_VERBOSITY=0;; 3461no) AM_DEFAULT_VERBOSITY=1;; 3462*) AM_DEFAULT_VERBOSITY=0;; 3463esac 3464AM_BACKSLASH='\' 3465 3466 3467# Make sure we can run config.sub. 3468$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3469 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3470 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3472$as_echo_n "checking build system type... " >&6; } 3473if ${ac_cv_build+:} false; then : 3474 $as_echo_n "(cached) " >&6 3475else 3476 ac_build_alias=$build_alias 3477test "x$ac_build_alias" = x && 3478 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3479test "x$ac_build_alias" = x && 3480 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3481ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3482 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3483 3484fi 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3486$as_echo "$ac_cv_build" >&6; } 3487case $ac_cv_build in 3488*-*-*) ;; 3489*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3490esac 3491build=$ac_cv_build 3492ac_save_IFS=$IFS; IFS='-' 3493set x $ac_cv_build 3494shift 3495build_cpu=$1 3496build_vendor=$2 3497shift; shift 3498# Remember, the first character of IFS is used to create $*, 3499# except with old shells: 3500build_os=$* 3501IFS=$ac_save_IFS 3502case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3503 3504 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3506$as_echo_n "checking host system type... " >&6; } 3507if ${ac_cv_host+:} false; then : 3508 $as_echo_n "(cached) " >&6 3509else 3510 if test "x$host_alias" = x; then 3511 ac_cv_host=$ac_cv_build 3512else 3513 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3514 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3515fi 3516 3517fi 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3519$as_echo "$ac_cv_host" >&6; } 3520case $ac_cv_host in 3521*-*-*) ;; 3522*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3523esac 3524host=$ac_cv_host 3525ac_save_IFS=$IFS; IFS='-' 3526set x $ac_cv_host 3527shift 3528host_cpu=$1 3529host_vendor=$2 3530shift; shift 3531# Remember, the first character of IFS is used to create $*, 3532# except with old shells: 3533host_os=$* 3534IFS=$ac_save_IFS 3535case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3536 3537 3538 3539cat >>confdefs.h <<_ACEOF 3540#define STR_SYSTEM "$host" 3541_ACEOF 3542 3543ac_config_headers="$ac_config_headers config.h" 3544 3545 3546DEPDIR="${am__leading_dot}deps" 3547 3548ac_config_commands="$ac_config_commands depfiles" 3549 3550 3551am_make=${MAKE-make} 3552cat > confinc << 'END' 3553am__doit: 3554 @echo this is the am__doit target 3555.PHONY: am__doit 3556END 3557# If we don't find an include directive, just comment out the code. 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3559$as_echo_n "checking for style of include used by $am_make... " >&6; } 3560am__include="#" 3561am__quote= 3562_am_result=none 3563# First try GNU make style include. 3564echo "include confinc" > confmf 3565# Ignore all kinds of additional output from `make'. 3566case `$am_make -s -f confmf 2> /dev/null` in #( 3567*the\ am__doit\ target*) 3568 am__include=include 3569 am__quote= 3570 _am_result=GNU 3571 ;; 3572esac 3573# Now try BSD make style include. 3574if test "$am__include" = "#"; then 3575 echo '.include "confinc"' > confmf 3576 case `$am_make -s -f confmf 2> /dev/null` in #( 3577 *the\ am__doit\ target*) 3578 am__include=.include 3579 am__quote="\"" 3580 _am_result=BSD 3581 ;; 3582 esac 3583fi 3584 3585 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3587$as_echo "$_am_result" >&6; } 3588rm -f confinc confmf 3589 3590# Check whether --enable-dependency-tracking was given. 3591if test "${enable_dependency_tracking+set}" = set; then : 3592 enableval=$enable_dependency_tracking; 3593fi 3594 3595if test "x$enable_dependency_tracking" != xno; then 3596 am_depcomp="$ac_aux_dir/depcomp" 3597 AMDEPBACKSLASH='\' 3598fi 3599 if test "x$enable_dependency_tracking" != xno; then 3600 AMDEP_TRUE= 3601 AMDEP_FALSE='#' 3602else 3603 AMDEP_TRUE='#' 3604 AMDEP_FALSE= 3605fi 3606 3607 3608ac_ext=c 3609ac_cpp='$CPP $CPPFLAGS' 3610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3612ac_compiler_gnu=$ac_cv_c_compiler_gnu 3613if test -n "$ac_tool_prefix"; then 3614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3615set dummy ${ac_tool_prefix}gcc; ac_word=$2 3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3617$as_echo_n "checking for $ac_word... " >&6; } 3618if ${ac_cv_prog_CC+:} false; then : 3619 $as_echo_n "(cached) " >&6 3620else 3621 if test -n "$CC"; then 3622 ac_cv_prog_CC="$CC" # Let the user override the test. 3623else 3624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3625for as_dir in $PATH 3626do 3627 IFS=$as_save_IFS 3628 test -z "$as_dir" && as_dir=. 3629 for ac_exec_ext in '' $ac_executable_extensions; do 3630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3631 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3633 break 2 3634 fi 3635done 3636 done 3637IFS=$as_save_IFS 3638 3639fi 3640fi 3641CC=$ac_cv_prog_CC 3642if test -n "$CC"; then 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3644$as_echo "$CC" >&6; } 3645else 3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3647$as_echo "no" >&6; } 3648fi 3649 3650 3651fi 3652if test -z "$ac_cv_prog_CC"; then 3653 ac_ct_CC=$CC 3654 # Extract the first word of "gcc", so it can be a program name with args. 3655set dummy gcc; ac_word=$2 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3657$as_echo_n "checking for $ac_word... " >&6; } 3658if ${ac_cv_prog_ac_ct_CC+:} false; then : 3659 $as_echo_n "(cached) " >&6 3660else 3661 if test -n "$ac_ct_CC"; then 3662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3663else 3664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3665for as_dir in $PATH 3666do 3667 IFS=$as_save_IFS 3668 test -z "$as_dir" && as_dir=. 3669 for ac_exec_ext in '' $ac_executable_extensions; do 3670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3671 ac_cv_prog_ac_ct_CC="gcc" 3672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3673 break 2 3674 fi 3675done 3676 done 3677IFS=$as_save_IFS 3678 3679fi 3680fi 3681ac_ct_CC=$ac_cv_prog_ac_ct_CC 3682if test -n "$ac_ct_CC"; then 3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3684$as_echo "$ac_ct_CC" >&6; } 3685else 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3687$as_echo "no" >&6; } 3688fi 3689 3690 if test "x$ac_ct_CC" = x; then 3691 CC="" 3692 else 3693 case $cross_compiling:$ac_tool_warned in 3694yes:) 3695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3697ac_tool_warned=yes ;; 3698esac 3699 CC=$ac_ct_CC 3700 fi 3701else 3702 CC="$ac_cv_prog_CC" 3703fi 3704 3705if test -z "$CC"; then 3706 if test -n "$ac_tool_prefix"; then 3707 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3708set dummy ${ac_tool_prefix}cc; ac_word=$2 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3710$as_echo_n "checking for $ac_word... " >&6; } 3711if ${ac_cv_prog_CC+:} false; then : 3712 $as_echo_n "(cached) " >&6 3713else 3714 if test -n "$CC"; then 3715 ac_cv_prog_CC="$CC" # Let the user override the test. 3716else 3717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3718for as_dir in $PATH 3719do 3720 IFS=$as_save_IFS 3721 test -z "$as_dir" && as_dir=. 3722 for ac_exec_ext in '' $ac_executable_extensions; do 3723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3724 ac_cv_prog_CC="${ac_tool_prefix}cc" 3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3726 break 2 3727 fi 3728done 3729 done 3730IFS=$as_save_IFS 3731 3732fi 3733fi 3734CC=$ac_cv_prog_CC 3735if test -n "$CC"; then 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3737$as_echo "$CC" >&6; } 3738else 3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3740$as_echo "no" >&6; } 3741fi 3742 3743 3744 fi 3745fi 3746if test -z "$CC"; then 3747 # Extract the first word of "cc", so it can be a program name with args. 3748set dummy cc; ac_word=$2 3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3750$as_echo_n "checking for $ac_word... " >&6; } 3751if ${ac_cv_prog_CC+:} false; then : 3752 $as_echo_n "(cached) " >&6 3753else 3754 if test -n "$CC"; then 3755 ac_cv_prog_CC="$CC" # Let the user override the test. 3756else 3757 ac_prog_rejected=no 3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3759for as_dir in $PATH 3760do 3761 IFS=$as_save_IFS 3762 test -z "$as_dir" && as_dir=. 3763 for ac_exec_ext in '' $ac_executable_extensions; do 3764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3765 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3766 ac_prog_rejected=yes 3767 continue 3768 fi 3769 ac_cv_prog_CC="cc" 3770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3771 break 2 3772 fi 3773done 3774 done 3775IFS=$as_save_IFS 3776 3777if test $ac_prog_rejected = yes; then 3778 # We found a bogon in the path, so make sure we never use it. 3779 set dummy $ac_cv_prog_CC 3780 shift 3781 if test $# != 0; then 3782 # We chose a different compiler from the bogus one. 3783 # However, it has the same basename, so the bogon will be chosen 3784 # first if we set CC to just the basename; use the full file name. 3785 shift 3786 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3787 fi 3788fi 3789fi 3790fi 3791CC=$ac_cv_prog_CC 3792if test -n "$CC"; then 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3794$as_echo "$CC" >&6; } 3795else 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3797$as_echo "no" >&6; } 3798fi 3799 3800 3801fi 3802if test -z "$CC"; then 3803 if test -n "$ac_tool_prefix"; then 3804 for ac_prog in cl.exe 3805 do 3806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3807set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3809$as_echo_n "checking for $ac_word... " >&6; } 3810if ${ac_cv_prog_CC+:} false; then : 3811 $as_echo_n "(cached) " >&6 3812else 3813 if test -n "$CC"; then 3814 ac_cv_prog_CC="$CC" # Let the user override the test. 3815else 3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3817for as_dir in $PATH 3818do 3819 IFS=$as_save_IFS 3820 test -z "$as_dir" && as_dir=. 3821 for ac_exec_ext in '' $ac_executable_extensions; do 3822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3825 break 2 3826 fi 3827done 3828 done 3829IFS=$as_save_IFS 3830 3831fi 3832fi 3833CC=$ac_cv_prog_CC 3834if test -n "$CC"; then 3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3836$as_echo "$CC" >&6; } 3837else 3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3839$as_echo "no" >&6; } 3840fi 3841 3842 3843 test -n "$CC" && break 3844 done 3845fi 3846if test -z "$CC"; then 3847 ac_ct_CC=$CC 3848 for ac_prog in cl.exe 3849do 3850 # Extract the first word of "$ac_prog", so it can be a program name with args. 3851set dummy $ac_prog; ac_word=$2 3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3853$as_echo_n "checking for $ac_word... " >&6; } 3854if ${ac_cv_prog_ac_ct_CC+:} false; then : 3855 $as_echo_n "(cached) " >&6 3856else 3857 if test -n "$ac_ct_CC"; then 3858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3859else 3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3861for as_dir in $PATH 3862do 3863 IFS=$as_save_IFS 3864 test -z "$as_dir" && as_dir=. 3865 for ac_exec_ext in '' $ac_executable_extensions; do 3866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3867 ac_cv_prog_ac_ct_CC="$ac_prog" 3868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3869 break 2 3870 fi 3871done 3872 done 3873IFS=$as_save_IFS 3874 3875fi 3876fi 3877ac_ct_CC=$ac_cv_prog_ac_ct_CC 3878if test -n "$ac_ct_CC"; then 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3880$as_echo "$ac_ct_CC" >&6; } 3881else 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3883$as_echo "no" >&6; } 3884fi 3885 3886 3887 test -n "$ac_ct_CC" && break 3888done 3889 3890 if test "x$ac_ct_CC" = x; then 3891 CC="" 3892 else 3893 case $cross_compiling:$ac_tool_warned in 3894yes:) 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3897ac_tool_warned=yes ;; 3898esac 3899 CC=$ac_ct_CC 3900 fi 3901fi 3902 3903fi 3904 3905 3906test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3908as_fn_error $? "no acceptable C compiler found in \$PATH 3909See \`config.log' for more details" "$LINENO" 5; } 3910 3911# Provide some information about the compiler. 3912$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3913set X $ac_compile 3914ac_compiler=$2 3915for ac_option in --version -v -V -qversion; do 3916 { { ac_try="$ac_compiler $ac_option >&5" 3917case "(($ac_try" in 3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3919 *) ac_try_echo=$ac_try;; 3920esac 3921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3922$as_echo "$ac_try_echo"; } >&5 3923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3924 ac_status=$? 3925 if test -s conftest.err; then 3926 sed '10a\ 3927... rest of stderr output deleted ... 3928 10q' conftest.err >conftest.er1 3929 cat conftest.er1 >&5 3930 fi 3931 rm -f conftest.er1 conftest.err 3932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3933 test $ac_status = 0; } 3934done 3935 3936cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3937/* end confdefs.h. */ 3938 3939int 3940main () 3941{ 3942 3943 ; 3944 return 0; 3945} 3946_ACEOF 3947ac_clean_files_save=$ac_clean_files 3948ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3949# Try to create an executable without -o first, disregard a.out. 3950# It will help us diagnose broken compilers, and finding out an intuition 3951# of exeext. 3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3953$as_echo_n "checking whether the C compiler works... " >&6; } 3954ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3955 3956# The possible output files: 3957ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3958 3959ac_rmfiles= 3960for ac_file in $ac_files 3961do 3962 case $ac_file in 3963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3964 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3965 esac 3966done 3967rm -f $ac_rmfiles 3968 3969if { { ac_try="$ac_link_default" 3970case "(($ac_try" in 3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3972 *) ac_try_echo=$ac_try;; 3973esac 3974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3975$as_echo "$ac_try_echo"; } >&5 3976 (eval "$ac_link_default") 2>&5 3977 ac_status=$? 3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3979 test $ac_status = 0; }; then : 3980 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3981# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3982# in a Makefile. We should not override ac_cv_exeext if it was cached, 3983# so that the user can short-circuit this test for compilers unknown to 3984# Autoconf. 3985for ac_file in $ac_files '' 3986do 3987 test -f "$ac_file" || continue 3988 case $ac_file in 3989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3990 ;; 3991 [ab].out ) 3992 # We found the default executable, but exeext='' is most 3993 # certainly right. 3994 break;; 3995 *.* ) 3996 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3997 then :; else 3998 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3999 fi 4000 # We set ac_cv_exeext here because the later test for it is not 4001 # safe: cross compilers may not add the suffix if given an `-o' 4002 # argument, so we may need to know it at that point already. 4003 # Even if this section looks crufty: it has the advantage of 4004 # actually working. 4005 break;; 4006 * ) 4007 break;; 4008 esac 4009done 4010test "$ac_cv_exeext" = no && ac_cv_exeext= 4011 4012else 4013 ac_file='' 4014fi 4015if test -z "$ac_file"; then : 4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4017$as_echo "no" >&6; } 4018$as_echo "$as_me: failed program was:" >&5 4019sed 's/^/| /' conftest.$ac_ext >&5 4020 4021{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4023as_fn_error 77 "C compiler cannot create executables 4024See \`config.log' for more details" "$LINENO" 5; } 4025else 4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4027$as_echo "yes" >&6; } 4028fi 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4030$as_echo_n "checking for C compiler default output file name... " >&6; } 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4032$as_echo "$ac_file" >&6; } 4033ac_exeext=$ac_cv_exeext 4034 4035rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4036ac_clean_files=$ac_clean_files_save 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4038$as_echo_n "checking for suffix of executables... " >&6; } 4039if { { ac_try="$ac_link" 4040case "(($ac_try" in 4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4042 *) ac_try_echo=$ac_try;; 4043esac 4044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4045$as_echo "$ac_try_echo"; } >&5 4046 (eval "$ac_link") 2>&5 4047 ac_status=$? 4048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4049 test $ac_status = 0; }; then : 4050 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4051# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4052# work properly (i.e., refer to `conftest.exe'), while it won't with 4053# `rm'. 4054for ac_file in conftest.exe conftest conftest.*; do 4055 test -f "$ac_file" || continue 4056 case $ac_file in 4057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4058 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4059 break;; 4060 * ) break;; 4061 esac 4062done 4063else 4064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4066as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4067See \`config.log' for more details" "$LINENO" 5; } 4068fi 4069rm -f conftest conftest$ac_cv_exeext 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4071$as_echo "$ac_cv_exeext" >&6; } 4072 4073rm -f conftest.$ac_ext 4074EXEEXT=$ac_cv_exeext 4075ac_exeext=$EXEEXT 4076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4077/* end confdefs.h. */ 4078#include <stdio.h> 4079int 4080main () 4081{ 4082FILE *f = fopen ("conftest.out", "w"); 4083 return ferror (f) || fclose (f) != 0; 4084 4085 ; 4086 return 0; 4087} 4088_ACEOF 4089ac_clean_files="$ac_clean_files conftest.out" 4090# Check that the compiler produces executables we can run. If not, either 4091# the compiler is broken, or we cross compile. 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4093$as_echo_n "checking whether we are cross compiling... " >&6; } 4094if test "$cross_compiling" != yes; then 4095 { { ac_try="$ac_link" 4096case "(($ac_try" in 4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4098 *) ac_try_echo=$ac_try;; 4099esac 4100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4101$as_echo "$ac_try_echo"; } >&5 4102 (eval "$ac_link") 2>&5 4103 ac_status=$? 4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4105 test $ac_status = 0; } 4106 if { ac_try='./conftest$ac_cv_exeext' 4107 { { case "(($ac_try" in 4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4109 *) ac_try_echo=$ac_try;; 4110esac 4111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4112$as_echo "$ac_try_echo"; } >&5 4113 (eval "$ac_try") 2>&5 4114 ac_status=$? 4115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4116 test $ac_status = 0; }; }; then 4117 cross_compiling=no 4118 else 4119 if test "$cross_compiling" = maybe; then 4120 cross_compiling=yes 4121 else 4122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4124as_fn_error $? "cannot run C compiled programs. 4125If you meant to cross compile, use \`--host'. 4126See \`config.log' for more details" "$LINENO" 5; } 4127 fi 4128 fi 4129fi 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4131$as_echo "$cross_compiling" >&6; } 4132 4133rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4134ac_clean_files=$ac_clean_files_save 4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4136$as_echo_n "checking for suffix of object files... " >&6; } 4137if ${ac_cv_objext+:} false; then : 4138 $as_echo_n "(cached) " >&6 4139else 4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4141/* end confdefs.h. */ 4142 4143int 4144main () 4145{ 4146 4147 ; 4148 return 0; 4149} 4150_ACEOF 4151rm -f conftest.o conftest.obj 4152if { { ac_try="$ac_compile" 4153case "(($ac_try" in 4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4155 *) ac_try_echo=$ac_try;; 4156esac 4157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4158$as_echo "$ac_try_echo"; } >&5 4159 (eval "$ac_compile") 2>&5 4160 ac_status=$? 4161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4162 test $ac_status = 0; }; then : 4163 for ac_file in conftest.o conftest.obj conftest.*; do 4164 test -f "$ac_file" || continue; 4165 case $ac_file in 4166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4167 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4168 break;; 4169 esac 4170done 4171else 4172 $as_echo "$as_me: failed program was:" >&5 4173sed 's/^/| /' conftest.$ac_ext >&5 4174 4175{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4177as_fn_error $? "cannot compute suffix of object files: cannot compile 4178See \`config.log' for more details" "$LINENO" 5; } 4179fi 4180rm -f conftest.$ac_cv_objext conftest.$ac_ext 4181fi 4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4183$as_echo "$ac_cv_objext" >&6; } 4184OBJEXT=$ac_cv_objext 4185ac_objext=$OBJEXT 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4187$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4188if ${ac_cv_c_compiler_gnu+:} false; then : 4189 $as_echo_n "(cached) " >&6 4190else 4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4192/* end confdefs.h. */ 4193 4194int 4195main () 4196{ 4197#ifndef __GNUC__ 4198 choke me 4199#endif 4200 4201 ; 4202 return 0; 4203} 4204_ACEOF 4205if ac_fn_c_try_compile "$LINENO"; then : 4206 ac_compiler_gnu=yes 4207else 4208 ac_compiler_gnu=no 4209fi 4210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4211ac_cv_c_compiler_gnu=$ac_compiler_gnu 4212 4213fi 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4215$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4216if test $ac_compiler_gnu = yes; then 4217 GCC=yes 4218else 4219 GCC= 4220fi 4221ac_test_CFLAGS=${CFLAGS+set} 4222ac_save_CFLAGS=$CFLAGS 4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4224$as_echo_n "checking whether $CC accepts -g... " >&6; } 4225if ${ac_cv_prog_cc_g+:} false; then : 4226 $as_echo_n "(cached) " >&6 4227else 4228 ac_save_c_werror_flag=$ac_c_werror_flag 4229 ac_c_werror_flag=yes 4230 ac_cv_prog_cc_g=no 4231 CFLAGS="-g" 4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4233/* end confdefs.h. */ 4234 4235int 4236main () 4237{ 4238 4239 ; 4240 return 0; 4241} 4242_ACEOF 4243if ac_fn_c_try_compile "$LINENO"; then : 4244 ac_cv_prog_cc_g=yes 4245else 4246 CFLAGS="" 4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4248/* end confdefs.h. */ 4249 4250int 4251main () 4252{ 4253 4254 ; 4255 return 0; 4256} 4257_ACEOF 4258if ac_fn_c_try_compile "$LINENO"; then : 4259 4260else 4261 ac_c_werror_flag=$ac_save_c_werror_flag 4262 CFLAGS="-g" 4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4264/* end confdefs.h. */ 4265 4266int 4267main () 4268{ 4269 4270 ; 4271 return 0; 4272} 4273_ACEOF 4274if ac_fn_c_try_compile "$LINENO"; then : 4275 ac_cv_prog_cc_g=yes 4276fi 4277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4278fi 4279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4280fi 4281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4282 ac_c_werror_flag=$ac_save_c_werror_flag 4283fi 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4285$as_echo "$ac_cv_prog_cc_g" >&6; } 4286if test "$ac_test_CFLAGS" = set; then 4287 CFLAGS=$ac_save_CFLAGS 4288elif test $ac_cv_prog_cc_g = yes; then 4289 if test "$GCC" = yes; then 4290 CFLAGS="-g -O2" 4291 else 4292 CFLAGS="-g" 4293 fi 4294else 4295 if test "$GCC" = yes; then 4296 CFLAGS="-O2" 4297 else 4298 CFLAGS= 4299 fi 4300fi 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4302$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4303if ${ac_cv_prog_cc_c89+:} false; then : 4304 $as_echo_n "(cached) " >&6 4305else 4306 ac_cv_prog_cc_c89=no 4307ac_save_CC=$CC 4308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4309/* end confdefs.h. */ 4310#include <stdarg.h> 4311#include <stdio.h> 4312#include <sys/types.h> 4313#include <sys/stat.h> 4314/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4315struct buf { int x; }; 4316FILE * (*rcsopen) (struct buf *, struct stat *, int); 4317static char *e (p, i) 4318 char **p; 4319 int i; 4320{ 4321 return p[i]; 4322} 4323static char *f (char * (*g) (char **, int), char **p, ...) 4324{ 4325 char *s; 4326 va_list v; 4327 va_start (v,p); 4328 s = g (p, va_arg (v,int)); 4329 va_end (v); 4330 return s; 4331} 4332 4333/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4334 function prototypes and stuff, but not '\xHH' hex character constants. 4335 These don't provoke an error unfortunately, instead are silently treated 4336 as 'x'. The following induces an error, until -std is added to get 4337 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4338 array size at least. It's necessary to write '\x00'==0 to get something 4339 that's true only with -std. */ 4340int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4341 4342/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4343 inside strings and character constants. */ 4344#define FOO(x) 'x' 4345int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4346 4347int test (int i, double x); 4348struct s1 {int (*f) (int a);}; 4349struct s2 {int (*f) (double a);}; 4350int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4351int argc; 4352char **argv; 4353int 4354main () 4355{ 4356return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4357 ; 4358 return 0; 4359} 4360_ACEOF 4361for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4362 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4363do 4364 CC="$ac_save_CC $ac_arg" 4365 if ac_fn_c_try_compile "$LINENO"; then : 4366 ac_cv_prog_cc_c89=$ac_arg 4367fi 4368rm -f core conftest.err conftest.$ac_objext 4369 test "x$ac_cv_prog_cc_c89" != "xno" && break 4370done 4371rm -f conftest.$ac_ext 4372CC=$ac_save_CC 4373 4374fi 4375# AC_CACHE_VAL 4376case "x$ac_cv_prog_cc_c89" in 4377 x) 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4379$as_echo "none needed" >&6; } ;; 4380 xno) 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4382$as_echo "unsupported" >&6; } ;; 4383 *) 4384 CC="$CC $ac_cv_prog_cc_c89" 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4386$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4387esac 4388if test "x$ac_cv_prog_cc_c89" != xno; then : 4389 4390fi 4391 4392ac_ext=c 4393ac_cpp='$CPP $CPPFLAGS' 4394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4396ac_compiler_gnu=$ac_cv_c_compiler_gnu 4397 4398depcc="$CC" am_compiler_list= 4399 4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4401$as_echo_n "checking dependency style of $depcc... " >&6; } 4402if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4403 $as_echo_n "(cached) " >&6 4404else 4405 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4406 # We make a subdir and do the tests there. Otherwise we can end up 4407 # making bogus files that we don't know about and never remove. For 4408 # instance it was reported that on HP-UX the gcc test will end up 4409 # making a dummy file named `D' -- because `-MD' means `put the output 4410 # in D'. 4411 mkdir conftest.dir 4412 # Copy depcomp to subdir because otherwise we won't find it if we're 4413 # using a relative directory. 4414 cp "$am_depcomp" conftest.dir 4415 cd conftest.dir 4416 # We will build objects and dependencies in a subdirectory because 4417 # it helps to detect inapplicable dependency modes. For instance 4418 # both Tru64's cc and ICC support -MD to output dependencies as a 4419 # side effect of compilation, but ICC will put the dependencies in 4420 # the current directory while Tru64 will put them in the object 4421 # directory. 4422 mkdir sub 4423 4424 am_cv_CC_dependencies_compiler_type=none 4425 if test "$am_compiler_list" = ""; then 4426 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4427 fi 4428 am__universal=false 4429 case " $depcc " in #( 4430 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4431 esac 4432 4433 for depmode in $am_compiler_list; do 4434 # Setup a source with many dependencies, because some compilers 4435 # like to wrap large dependency lists on column 80 (with \), and 4436 # we should not choose a depcomp mode which is confused by this. 4437 # 4438 # We need to recreate these files for each test, as the compiler may 4439 # overwrite some of them when testing with obscure command lines. 4440 # This happens at least with the AIX C compiler. 4441 : > sub/conftest.c 4442 for i in 1 2 3 4 5 6; do 4443 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4444 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4445 # Solaris 8's {/usr,}/bin/sh. 4446 touch sub/conftst$i.h 4447 done 4448 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4449 4450 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4451 # mode. It turns out that the SunPro C++ compiler does not properly 4452 # handle `-M -o', and we need to detect this. Also, some Intel 4453 # versions had trouble with output in subdirs 4454 am__obj=sub/conftest.${OBJEXT-o} 4455 am__minus_obj="-o $am__obj" 4456 case $depmode in 4457 gcc) 4458 # This depmode causes a compiler race in universal mode. 4459 test "$am__universal" = false || continue 4460 ;; 4461 nosideeffect) 4462 # after this tag, mechanisms are not by side-effect, so they'll 4463 # only be used when explicitly requested 4464 if test "x$enable_dependency_tracking" = xyes; then 4465 continue 4466 else 4467 break 4468 fi 4469 ;; 4470 msvisualcpp | msvcmsys) 4471 # This compiler won't grok `-c -o', but also, the minuso test has 4472 # not run yet. These depmodes are late enough in the game, and 4473 # so weak that their functioning should not be impacted. 4474 am__obj=conftest.${OBJEXT-o} 4475 am__minus_obj= 4476 ;; 4477 none) break ;; 4478 esac 4479 if depmode=$depmode \ 4480 source=sub/conftest.c object=$am__obj \ 4481 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4482 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4483 >/dev/null 2>conftest.err && 4484 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4485 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4486 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4487 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4488 # icc doesn't choke on unknown options, it will just issue warnings 4489 # or remarks (even with -Werror). So we grep stderr for any message 4490 # that says an option was ignored or not supported. 4491 # When given -MP, icc 7.0 and 7.1 complain thusly: 4492 # icc: Command line warning: ignoring option '-M'; no argument required 4493 # The diagnosis changed in icc 8.0: 4494 # icc: Command line remark: option '-MP' not supported 4495 if (grep 'ignoring option' conftest.err || 4496 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4497 am_cv_CC_dependencies_compiler_type=$depmode 4498 break 4499 fi 4500 fi 4501 done 4502 4503 cd .. 4504 rm -rf conftest.dir 4505else 4506 am_cv_CC_dependencies_compiler_type=none 4507fi 4508 4509fi 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4511$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4512CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4513 4514 if 4515 test "x$enable_dependency_tracking" != xno \ 4516 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4517 am__fastdepCC_TRUE= 4518 am__fastdepCC_FALSE='#' 4519else 4520 am__fastdepCC_TRUE='#' 4521 am__fastdepCC_FALSE= 4522fi 4523 4524 4525 4526ac_ext=c 4527ac_cpp='$CPP $CPPFLAGS' 4528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4530ac_compiler_gnu=$ac_cv_c_compiler_gnu 4531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4532$as_echo_n "checking how to run the C preprocessor... " >&6; } 4533# On Suns, sometimes $CPP names a directory. 4534if test -n "$CPP" && test -d "$CPP"; then 4535 CPP= 4536fi 4537if test -z "$CPP"; then 4538 if ${ac_cv_prog_CPP+:} false; then : 4539 $as_echo_n "(cached) " >&6 4540else 4541 # Double quotes because CPP needs to be expanded 4542 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4543 do 4544 ac_preproc_ok=false 4545for ac_c_preproc_warn_flag in '' yes 4546do 4547 # Use a header file that comes with gcc, so configuring glibc 4548 # with a fresh cross-compiler works. 4549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4550 # <limits.h> exists even on freestanding compilers. 4551 # On the NeXT, cc -E runs the code through the compiler's parser, 4552 # not just through cpp. "Syntax error" is here to catch this case. 4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4554/* end confdefs.h. */ 4555#ifdef __STDC__ 4556# include <limits.h> 4557#else 4558# include <assert.h> 4559#endif 4560 Syntax error 4561_ACEOF 4562if ac_fn_c_try_cpp "$LINENO"; then : 4563 4564else 4565 # Broken: fails on valid input. 4566continue 4567fi 4568rm -f conftest.err conftest.i conftest.$ac_ext 4569 4570 # OK, works on sane cases. Now check whether nonexistent headers 4571 # can be detected and how. 4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4573/* end confdefs.h. */ 4574#include <ac_nonexistent.h> 4575_ACEOF 4576if ac_fn_c_try_cpp "$LINENO"; then : 4577 # Broken: success on invalid input. 4578continue 4579else 4580 # Passes both tests. 4581ac_preproc_ok=: 4582break 4583fi 4584rm -f conftest.err conftest.i conftest.$ac_ext 4585 4586done 4587# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4588rm -f conftest.i conftest.err conftest.$ac_ext 4589if $ac_preproc_ok; then : 4590 break 4591fi 4592 4593 done 4594 ac_cv_prog_CPP=$CPP 4595 4596fi 4597 CPP=$ac_cv_prog_CPP 4598else 4599 ac_cv_prog_CPP=$CPP 4600fi 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4602$as_echo "$CPP" >&6; } 4603ac_preproc_ok=false 4604for ac_c_preproc_warn_flag in '' yes 4605do 4606 # Use a header file that comes with gcc, so configuring glibc 4607 # with a fresh cross-compiler works. 4608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4609 # <limits.h> exists even on freestanding compilers. 4610 # On the NeXT, cc -E runs the code through the compiler's parser, 4611 # not just through cpp. "Syntax error" is here to catch this case. 4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4613/* end confdefs.h. */ 4614#ifdef __STDC__ 4615# include <limits.h> 4616#else 4617# include <assert.h> 4618#endif 4619 Syntax error 4620_ACEOF 4621if ac_fn_c_try_cpp "$LINENO"; then : 4622 4623else 4624 # Broken: fails on valid input. 4625continue 4626fi 4627rm -f conftest.err conftest.i conftest.$ac_ext 4628 4629 # OK, works on sane cases. Now check whether nonexistent headers 4630 # can be detected and how. 4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4632/* end confdefs.h. */ 4633#include <ac_nonexistent.h> 4634_ACEOF 4635if ac_fn_c_try_cpp "$LINENO"; then : 4636 # Broken: success on invalid input. 4637continue 4638else 4639 # Passes both tests. 4640ac_preproc_ok=: 4641break 4642fi 4643rm -f conftest.err conftest.i conftest.$ac_ext 4644 4645done 4646# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4647rm -f conftest.i conftest.err conftest.$ac_ext 4648if $ac_preproc_ok; then : 4649 4650else 4651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4653as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4654See \`config.log' for more details" "$LINENO" 5; } 4655fi 4656 4657ac_ext=c 4658ac_cpp='$CPP $CPPFLAGS' 4659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4661ac_compiler_gnu=$ac_cv_c_compiler_gnu 4662 4663 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4665$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4666if ${ac_cv_path_GREP+:} false; then : 4667 $as_echo_n "(cached) " >&6 4668else 4669 if test -z "$GREP"; then 4670 ac_path_GREP_found=false 4671 # Loop through the user's path and test for each of PROGNAME-LIST 4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4673for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4674do 4675 IFS=$as_save_IFS 4676 test -z "$as_dir" && as_dir=. 4677 for ac_prog in grep ggrep; do 4678 for ac_exec_ext in '' $ac_executable_extensions; do 4679 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4680 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4681# Check for GNU ac_path_GREP and select it if it is found. 4682 # Check for GNU $ac_path_GREP 4683case `"$ac_path_GREP" --version 2>&1` in 4684*GNU*) 4685 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4686*) 4687 ac_count=0 4688 $as_echo_n 0123456789 >"conftest.in" 4689 while : 4690 do 4691 cat "conftest.in" "conftest.in" >"conftest.tmp" 4692 mv "conftest.tmp" "conftest.in" 4693 cp "conftest.in" "conftest.nl" 4694 $as_echo 'GREP' >> "conftest.nl" 4695 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4697 as_fn_arith $ac_count + 1 && ac_count=$as_val 4698 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4699 # Best one so far, save it but keep looking for a better one 4700 ac_cv_path_GREP="$ac_path_GREP" 4701 ac_path_GREP_max=$ac_count 4702 fi 4703 # 10*(2^10) chars as input seems more than enough 4704 test $ac_count -gt 10 && break 4705 done 4706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4707esac 4708 4709 $ac_path_GREP_found && break 3 4710 done 4711 done 4712 done 4713IFS=$as_save_IFS 4714 if test -z "$ac_cv_path_GREP"; then 4715 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4716 fi 4717else 4718 ac_cv_path_GREP=$GREP 4719fi 4720 4721fi 4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4723$as_echo "$ac_cv_path_GREP" >&6; } 4724 GREP="$ac_cv_path_GREP" 4725 4726 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4728$as_echo_n "checking for egrep... " >&6; } 4729if ${ac_cv_path_EGREP+:} false; then : 4730 $as_echo_n "(cached) " >&6 4731else 4732 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4733 then ac_cv_path_EGREP="$GREP -E" 4734 else 4735 if test -z "$EGREP"; then 4736 ac_path_EGREP_found=false 4737 # Loop through the user's path and test for each of PROGNAME-LIST 4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4739for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4740do 4741 IFS=$as_save_IFS 4742 test -z "$as_dir" && as_dir=. 4743 for ac_prog in egrep; do 4744 for ac_exec_ext in '' $ac_executable_extensions; do 4745 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4746 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4747# Check for GNU ac_path_EGREP and select it if it is found. 4748 # Check for GNU $ac_path_EGREP 4749case `"$ac_path_EGREP" --version 2>&1` in 4750*GNU*) 4751 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4752*) 4753 ac_count=0 4754 $as_echo_n 0123456789 >"conftest.in" 4755 while : 4756 do 4757 cat "conftest.in" "conftest.in" >"conftest.tmp" 4758 mv "conftest.tmp" "conftest.in" 4759 cp "conftest.in" "conftest.nl" 4760 $as_echo 'EGREP' >> "conftest.nl" 4761 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4762 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4763 as_fn_arith $ac_count + 1 && ac_count=$as_val 4764 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4765 # Best one so far, save it but keep looking for a better one 4766 ac_cv_path_EGREP="$ac_path_EGREP" 4767 ac_path_EGREP_max=$ac_count 4768 fi 4769 # 10*(2^10) chars as input seems more than enough 4770 test $ac_count -gt 10 && break 4771 done 4772 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4773esac 4774 4775 $ac_path_EGREP_found && break 3 4776 done 4777 done 4778 done 4779IFS=$as_save_IFS 4780 if test -z "$ac_cv_path_EGREP"; then 4781 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4782 fi 4783else 4784 ac_cv_path_EGREP=$EGREP 4785fi 4786 4787 fi 4788fi 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4790$as_echo "$ac_cv_path_EGREP" >&6; } 4791 EGREP="$ac_cv_path_EGREP" 4792 4793 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4795$as_echo_n "checking for ANSI C header files... " >&6; } 4796if ${ac_cv_header_stdc+:} false; then : 4797 $as_echo_n "(cached) " >&6 4798else 4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4800/* end confdefs.h. */ 4801#include <stdlib.h> 4802#include <stdarg.h> 4803#include <string.h> 4804#include <float.h> 4805 4806int 4807main () 4808{ 4809 4810 ; 4811 return 0; 4812} 4813_ACEOF 4814if ac_fn_c_try_compile "$LINENO"; then : 4815 ac_cv_header_stdc=yes 4816else 4817 ac_cv_header_stdc=no 4818fi 4819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4820 4821if test $ac_cv_header_stdc = yes; then 4822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4824/* end confdefs.h. */ 4825#include <string.h> 4826 4827_ACEOF 4828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4829 $EGREP "memchr" >/dev/null 2>&1; then : 4830 4831else 4832 ac_cv_header_stdc=no 4833fi 4834rm -f conftest* 4835 4836fi 4837 4838if test $ac_cv_header_stdc = yes; then 4839 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4841/* end confdefs.h. */ 4842#include <stdlib.h> 4843 4844_ACEOF 4845if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4846 $EGREP "free" >/dev/null 2>&1; then : 4847 4848else 4849 ac_cv_header_stdc=no 4850fi 4851rm -f conftest* 4852 4853fi 4854 4855if test $ac_cv_header_stdc = yes; then 4856 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4857 if test "$cross_compiling" = yes; then : 4858 : 4859else 4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4861/* end confdefs.h. */ 4862#include <ctype.h> 4863#include <stdlib.h> 4864#if ((' ' & 0x0FF) == 0x020) 4865# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4866# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4867#else 4868# define ISLOWER(c) \ 4869 (('a' <= (c) && (c) <= 'i') \ 4870 || ('j' <= (c) && (c) <= 'r') \ 4871 || ('s' <= (c) && (c) <= 'z')) 4872# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4873#endif 4874 4875#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4876int 4877main () 4878{ 4879 int i; 4880 for (i = 0; i < 256; i++) 4881 if (XOR (islower (i), ISLOWER (i)) 4882 || toupper (i) != TOUPPER (i)) 4883 return 2; 4884 return 0; 4885} 4886_ACEOF 4887if ac_fn_c_try_run "$LINENO"; then : 4888 4889else 4890 ac_cv_header_stdc=no 4891fi 4892rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4893 conftest.$ac_objext conftest.beam conftest.$ac_ext 4894fi 4895 4896fi 4897fi 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4899$as_echo "$ac_cv_header_stdc" >&6; } 4900if test $ac_cv_header_stdc = yes; then 4901 4902$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4903 4904fi 4905 4906# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4907for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4908 inttypes.h stdint.h unistd.h 4909do : 4910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4911ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4912" 4913if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4914 cat >>confdefs.h <<_ACEOF 4915#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4916_ACEOF 4917 4918fi 4919 4920done 4921 4922 4923 4924 4925 4926 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4927if test "x$ac_cv_header_minix_config_h" = xyes; then : 4928 MINIX=yes 4929else 4930 MINIX= 4931fi 4932 4933 4934 if test "$MINIX" = yes; then 4935 4936$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4937 4938 4939$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4940 4941 4942$as_echo "#define _MINIX 1" >>confdefs.h 4943 4944 fi 4945 4946 case "$host_os" in 4947 hpux*) 4948 4949$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 4950 4951 ;; 4952 esac 4953 4954 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4956$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4957if ${ac_cv_safe_to_define___extensions__+:} false; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4961/* end confdefs.h. */ 4962 4963# define __EXTENSIONS__ 1 4964 $ac_includes_default 4965int 4966main () 4967{ 4968 4969 ; 4970 return 0; 4971} 4972_ACEOF 4973if ac_fn_c_try_compile "$LINENO"; then : 4974 ac_cv_safe_to_define___extensions__=yes 4975else 4976 ac_cv_safe_to_define___extensions__=no 4977fi 4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4979fi 4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4981$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4982 test $ac_cv_safe_to_define___extensions__ = yes && 4983 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4984 4985 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4986 4987 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4988 4989 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4990 4991 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4992 4993 4994if test "x$CC" != xcc; then 4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4996$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4997else 4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4999$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5000fi 5001set dummy $CC; ac_cc=`$as_echo "$2" | 5002 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5003if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 5004 $as_echo_n "(cached) " >&6 5005else 5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5007/* end confdefs.h. */ 5008 5009int 5010main () 5011{ 5012 5013 ; 5014 return 0; 5015} 5016_ACEOF 5017# Make sure it works both with $CC and with simple cc. 5018# We do the test twice because some compilers refuse to overwrite an 5019# existing .o file with -o, though they will create one. 5020ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5021rm -f conftest2.* 5022if { { case "(($ac_try" in 5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5024 *) ac_try_echo=$ac_try;; 5025esac 5026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5027$as_echo "$ac_try_echo"; } >&5 5028 (eval "$ac_try") 2>&5 5029 ac_status=$? 5030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5031 test $ac_status = 0; } && 5032 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5034 *) ac_try_echo=$ac_try;; 5035esac 5036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5037$as_echo "$ac_try_echo"; } >&5 5038 (eval "$ac_try") 2>&5 5039 ac_status=$? 5040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5041 test $ac_status = 0; }; 5042then 5043 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5044 if test "x$CC" != xcc; then 5045 # Test first that cc exists at all. 5046 if { ac_try='cc -c conftest.$ac_ext >&5' 5047 { { case "(($ac_try" in 5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5049 *) ac_try_echo=$ac_try;; 5050esac 5051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5052$as_echo "$ac_try_echo"; } >&5 5053 (eval "$ac_try") 2>&5 5054 ac_status=$? 5055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5056 test $ac_status = 0; }; }; then 5057 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5058 rm -f conftest2.* 5059 if { { 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; } && 5069 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5071 *) ac_try_echo=$ac_try;; 5072esac 5073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5074$as_echo "$ac_try_echo"; } >&5 5075 (eval "$ac_try") 2>&5 5076 ac_status=$? 5077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5078 test $ac_status = 0; }; 5079 then 5080 # cc works too. 5081 : 5082 else 5083 # cc exists but doesn't like -o. 5084 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5085 fi 5086 fi 5087 fi 5088else 5089 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5090fi 5091rm -f core conftest* 5092 5093fi 5094if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5096$as_echo "yes" >&6; } 5097else 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5099$as_echo "no" >&6; } 5100 5101$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5102 5103fi 5104 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5106$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5107if ${ac_cv_prog_cc_c89+:} false; then : 5108 $as_echo_n "(cached) " >&6 5109else 5110 ac_cv_prog_cc_c89=no 5111ac_save_CC=$CC 5112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5113/* end confdefs.h. */ 5114#include <stdarg.h> 5115#include <stdio.h> 5116#include <sys/types.h> 5117#include <sys/stat.h> 5118/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5119struct buf { int x; }; 5120FILE * (*rcsopen) (struct buf *, struct stat *, int); 5121static char *e (p, i) 5122 char **p; 5123 int i; 5124{ 5125 return p[i]; 5126} 5127static char *f (char * (*g) (char **, int), char **p, ...) 5128{ 5129 char *s; 5130 va_list v; 5131 va_start (v,p); 5132 s = g (p, va_arg (v,int)); 5133 va_end (v); 5134 return s; 5135} 5136 5137/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5138 function prototypes and stuff, but not '\xHH' hex character constants. 5139 These don't provoke an error unfortunately, instead are silently treated 5140 as 'x'. The following induces an error, until -std is added to get 5141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5142 array size at least. It's necessary to write '\x00'==0 to get something 5143 that's true only with -std. */ 5144int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5145 5146/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5147 inside strings and character constants. */ 5148#define FOO(x) 'x' 5149int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5150 5151int test (int i, double x); 5152struct s1 {int (*f) (int a);}; 5153struct s2 {int (*f) (double a);}; 5154int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5155int argc; 5156char **argv; 5157int 5158main () 5159{ 5160return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5161 ; 5162 return 0; 5163} 5164_ACEOF 5165for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5166 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5167do 5168 CC="$ac_save_CC $ac_arg" 5169 if ac_fn_c_try_compile "$LINENO"; then : 5170 ac_cv_prog_cc_c89=$ac_arg 5171fi 5172rm -f core conftest.err conftest.$ac_objext 5173 test "x$ac_cv_prog_cc_c89" != "xno" && break 5174done 5175rm -f conftest.$ac_ext 5176CC=$ac_save_CC 5177 5178fi 5179# AC_CACHE_VAL 5180case "x$ac_cv_prog_cc_c89" in 5181 x) 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5183$as_echo "none needed" >&6; } ;; 5184 xno) 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5186$as_echo "unsupported" >&6; } ;; 5187 *) 5188 CC="$CC $ac_cv_prog_cc_c89" 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5190$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5191esac 5192if test "x$ac_cv_prog_cc_c89" != xno; then : 5193 5194fi 5195 5196 5197 5198 5199 5200 5201ac_ext=c 5202ac_cpp='$CPP $CPPFLAGS' 5203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5205ac_compiler_gnu=$ac_cv_c_compiler_gnu 5206if test -n "$ac_tool_prefix"; then 5207 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5208set dummy ${ac_tool_prefix}gcc; ac_word=$2 5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5210$as_echo_n "checking for $ac_word... " >&6; } 5211if ${ac_cv_prog_CC+:} false; then : 5212 $as_echo_n "(cached) " >&6 5213else 5214 if test -n "$CC"; then 5215 ac_cv_prog_CC="$CC" # Let the user override the test. 5216else 5217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5218for as_dir in $PATH 5219do 5220 IFS=$as_save_IFS 5221 test -z "$as_dir" && as_dir=. 5222 for ac_exec_ext in '' $ac_executable_extensions; do 5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5224 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5226 break 2 5227 fi 5228done 5229 done 5230IFS=$as_save_IFS 5231 5232fi 5233fi 5234CC=$ac_cv_prog_CC 5235if test -n "$CC"; then 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5237$as_echo "$CC" >&6; } 5238else 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5240$as_echo "no" >&6; } 5241fi 5242 5243 5244fi 5245if test -z "$ac_cv_prog_CC"; then 5246 ac_ct_CC=$CC 5247 # Extract the first word of "gcc", so it can be a program name with args. 5248set dummy gcc; ac_word=$2 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5250$as_echo_n "checking for $ac_word... " >&6; } 5251if ${ac_cv_prog_ac_ct_CC+:} false; then : 5252 $as_echo_n "(cached) " >&6 5253else 5254 if test -n "$ac_ct_CC"; then 5255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5256else 5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5258for as_dir in $PATH 5259do 5260 IFS=$as_save_IFS 5261 test -z "$as_dir" && as_dir=. 5262 for ac_exec_ext in '' $ac_executable_extensions; do 5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5264 ac_cv_prog_ac_ct_CC="gcc" 5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5266 break 2 5267 fi 5268done 5269 done 5270IFS=$as_save_IFS 5271 5272fi 5273fi 5274ac_ct_CC=$ac_cv_prog_ac_ct_CC 5275if test -n "$ac_ct_CC"; then 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5277$as_echo "$ac_ct_CC" >&6; } 5278else 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5280$as_echo "no" >&6; } 5281fi 5282 5283 if test "x$ac_ct_CC" = x; then 5284 CC="" 5285 else 5286 case $cross_compiling:$ac_tool_warned in 5287yes:) 5288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5290ac_tool_warned=yes ;; 5291esac 5292 CC=$ac_ct_CC 5293 fi 5294else 5295 CC="$ac_cv_prog_CC" 5296fi 5297 5298if test -z "$CC"; then 5299 if test -n "$ac_tool_prefix"; then 5300 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5301set dummy ${ac_tool_prefix}cc; ac_word=$2 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5303$as_echo_n "checking for $ac_word... " >&6; } 5304if ${ac_cv_prog_CC+:} false; then : 5305 $as_echo_n "(cached) " >&6 5306else 5307 if test -n "$CC"; then 5308 ac_cv_prog_CC="$CC" # Let the user override the test. 5309else 5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5311for as_dir in $PATH 5312do 5313 IFS=$as_save_IFS 5314 test -z "$as_dir" && as_dir=. 5315 for ac_exec_ext in '' $ac_executable_extensions; do 5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5317 ac_cv_prog_CC="${ac_tool_prefix}cc" 5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5319 break 2 5320 fi 5321done 5322 done 5323IFS=$as_save_IFS 5324 5325fi 5326fi 5327CC=$ac_cv_prog_CC 5328if test -n "$CC"; then 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5330$as_echo "$CC" >&6; } 5331else 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5333$as_echo "no" >&6; } 5334fi 5335 5336 5337 fi 5338fi 5339if test -z "$CC"; then 5340 # Extract the first word of "cc", so it can be a program name with args. 5341set dummy cc; ac_word=$2 5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5343$as_echo_n "checking for $ac_word... " >&6; } 5344if ${ac_cv_prog_CC+:} false; then : 5345 $as_echo_n "(cached) " >&6 5346else 5347 if test -n "$CC"; then 5348 ac_cv_prog_CC="$CC" # Let the user override the test. 5349else 5350 ac_prog_rejected=no 5351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5352for as_dir in $PATH 5353do 5354 IFS=$as_save_IFS 5355 test -z "$as_dir" && as_dir=. 5356 for ac_exec_ext in '' $ac_executable_extensions; do 5357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5358 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5359 ac_prog_rejected=yes 5360 continue 5361 fi 5362 ac_cv_prog_CC="cc" 5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5364 break 2 5365 fi 5366done 5367 done 5368IFS=$as_save_IFS 5369 5370if test $ac_prog_rejected = yes; then 5371 # We found a bogon in the path, so make sure we never use it. 5372 set dummy $ac_cv_prog_CC 5373 shift 5374 if test $# != 0; then 5375 # We chose a different compiler from the bogus one. 5376 # However, it has the same basename, so the bogon will be chosen 5377 # first if we set CC to just the basename; use the full file name. 5378 shift 5379 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5380 fi 5381fi 5382fi 5383fi 5384CC=$ac_cv_prog_CC 5385if test -n "$CC"; then 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5387$as_echo "$CC" >&6; } 5388else 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5390$as_echo "no" >&6; } 5391fi 5392 5393 5394fi 5395if test -z "$CC"; then 5396 if test -n "$ac_tool_prefix"; then 5397 for ac_prog in cl.exe 5398 do 5399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5400set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5402$as_echo_n "checking for $ac_word... " >&6; } 5403if ${ac_cv_prog_CC+:} false; then : 5404 $as_echo_n "(cached) " >&6 5405else 5406 if test -n "$CC"; then 5407 ac_cv_prog_CC="$CC" # Let the user override the test. 5408else 5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5410for as_dir in $PATH 5411do 5412 IFS=$as_save_IFS 5413 test -z "$as_dir" && as_dir=. 5414 for ac_exec_ext in '' $ac_executable_extensions; do 5415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5418 break 2 5419 fi 5420done 5421 done 5422IFS=$as_save_IFS 5423 5424fi 5425fi 5426CC=$ac_cv_prog_CC 5427if test -n "$CC"; then 5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5429$as_echo "$CC" >&6; } 5430else 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5432$as_echo "no" >&6; } 5433fi 5434 5435 5436 test -n "$CC" && break 5437 done 5438fi 5439if test -z "$CC"; then 5440 ac_ct_CC=$CC 5441 for ac_prog in cl.exe 5442do 5443 # Extract the first word of "$ac_prog", so it can be a program name with args. 5444set dummy $ac_prog; ac_word=$2 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5446$as_echo_n "checking for $ac_word... " >&6; } 5447if ${ac_cv_prog_ac_ct_CC+:} false; then : 5448 $as_echo_n "(cached) " >&6 5449else 5450 if test -n "$ac_ct_CC"; then 5451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5452else 5453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5454for as_dir in $PATH 5455do 5456 IFS=$as_save_IFS 5457 test -z "$as_dir" && as_dir=. 5458 for ac_exec_ext in '' $ac_executable_extensions; do 5459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5460 ac_cv_prog_ac_ct_CC="$ac_prog" 5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5462 break 2 5463 fi 5464done 5465 done 5466IFS=$as_save_IFS 5467 5468fi 5469fi 5470ac_ct_CC=$ac_cv_prog_ac_ct_CC 5471if test -n "$ac_ct_CC"; then 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5473$as_echo "$ac_ct_CC" >&6; } 5474else 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5476$as_echo "no" >&6; } 5477fi 5478 5479 5480 test -n "$ac_ct_CC" && break 5481done 5482 5483 if test "x$ac_ct_CC" = x; then 5484 CC="" 5485 else 5486 case $cross_compiling:$ac_tool_warned in 5487yes:) 5488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5490ac_tool_warned=yes ;; 5491esac 5492 CC=$ac_ct_CC 5493 fi 5494fi 5495 5496fi 5497 5498 5499test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5501as_fn_error $? "no acceptable C compiler found in \$PATH 5502See \`config.log' for more details" "$LINENO" 5; } 5503 5504# Provide some information about the compiler. 5505$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5506set X $ac_compile 5507ac_compiler=$2 5508for ac_option in --version -v -V -qversion; do 5509 { { ac_try="$ac_compiler $ac_option >&5" 5510case "(($ac_try" in 5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5512 *) ac_try_echo=$ac_try;; 5513esac 5514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5515$as_echo "$ac_try_echo"; } >&5 5516 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5517 ac_status=$? 5518 if test -s conftest.err; then 5519 sed '10a\ 5520... rest of stderr output deleted ... 5521 10q' conftest.err >conftest.er1 5522 cat conftest.er1 >&5 5523 fi 5524 rm -f conftest.er1 conftest.err 5525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5526 test $ac_status = 0; } 5527done 5528 5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5530$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5531if ${ac_cv_c_compiler_gnu+:} false; then : 5532 $as_echo_n "(cached) " >&6 5533else 5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5535/* end confdefs.h. */ 5536 5537int 5538main () 5539{ 5540#ifndef __GNUC__ 5541 choke me 5542#endif 5543 5544 ; 5545 return 0; 5546} 5547_ACEOF 5548if ac_fn_c_try_compile "$LINENO"; then : 5549 ac_compiler_gnu=yes 5550else 5551 ac_compiler_gnu=no 5552fi 5553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5554ac_cv_c_compiler_gnu=$ac_compiler_gnu 5555 5556fi 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5558$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5559if test $ac_compiler_gnu = yes; then 5560 GCC=yes 5561else 5562 GCC= 5563fi 5564ac_test_CFLAGS=${CFLAGS+set} 5565ac_save_CFLAGS=$CFLAGS 5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5567$as_echo_n "checking whether $CC accepts -g... " >&6; } 5568if ${ac_cv_prog_cc_g+:} false; then : 5569 $as_echo_n "(cached) " >&6 5570else 5571 ac_save_c_werror_flag=$ac_c_werror_flag 5572 ac_c_werror_flag=yes 5573 ac_cv_prog_cc_g=no 5574 CFLAGS="-g" 5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5576/* end confdefs.h. */ 5577 5578int 5579main () 5580{ 5581 5582 ; 5583 return 0; 5584} 5585_ACEOF 5586if ac_fn_c_try_compile "$LINENO"; then : 5587 ac_cv_prog_cc_g=yes 5588else 5589 CFLAGS="" 5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5591/* end confdefs.h. */ 5592 5593int 5594main () 5595{ 5596 5597 ; 5598 return 0; 5599} 5600_ACEOF 5601if ac_fn_c_try_compile "$LINENO"; then : 5602 5603else 5604 ac_c_werror_flag=$ac_save_c_werror_flag 5605 CFLAGS="-g" 5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5607/* end confdefs.h. */ 5608 5609int 5610main () 5611{ 5612 5613 ; 5614 return 0; 5615} 5616_ACEOF 5617if ac_fn_c_try_compile "$LINENO"; then : 5618 ac_cv_prog_cc_g=yes 5619fi 5620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5621fi 5622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5623fi 5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5625 ac_c_werror_flag=$ac_save_c_werror_flag 5626fi 5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5628$as_echo "$ac_cv_prog_cc_g" >&6; } 5629if test "$ac_test_CFLAGS" = set; then 5630 CFLAGS=$ac_save_CFLAGS 5631elif test $ac_cv_prog_cc_g = yes; then 5632 if test "$GCC" = yes; then 5633 CFLAGS="-g -O2" 5634 else 5635 CFLAGS="-g" 5636 fi 5637else 5638 if test "$GCC" = yes; then 5639 CFLAGS="-O2" 5640 else 5641 CFLAGS= 5642 fi 5643fi 5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5645$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5646if ${ac_cv_prog_cc_c89+:} false; then : 5647 $as_echo_n "(cached) " >&6 5648else 5649 ac_cv_prog_cc_c89=no 5650ac_save_CC=$CC 5651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5652/* end confdefs.h. */ 5653#include <stdarg.h> 5654#include <stdio.h> 5655#include <sys/types.h> 5656#include <sys/stat.h> 5657/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5658struct buf { int x; }; 5659FILE * (*rcsopen) (struct buf *, struct stat *, int); 5660static char *e (p, i) 5661 char **p; 5662 int i; 5663{ 5664 return p[i]; 5665} 5666static char *f (char * (*g) (char **, int), char **p, ...) 5667{ 5668 char *s; 5669 va_list v; 5670 va_start (v,p); 5671 s = g (p, va_arg (v,int)); 5672 va_end (v); 5673 return s; 5674} 5675 5676/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5677 function prototypes and stuff, but not '\xHH' hex character constants. 5678 These don't provoke an error unfortunately, instead are silently treated 5679 as 'x'. The following induces an error, until -std is added to get 5680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5681 array size at least. It's necessary to write '\x00'==0 to get something 5682 that's true only with -std. */ 5683int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5684 5685/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5686 inside strings and character constants. */ 5687#define FOO(x) 'x' 5688int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5689 5690int test (int i, double x); 5691struct s1 {int (*f) (int a);}; 5692struct s2 {int (*f) (double a);}; 5693int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5694int argc; 5695char **argv; 5696int 5697main () 5698{ 5699return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5700 ; 5701 return 0; 5702} 5703_ACEOF 5704for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5706do 5707 CC="$ac_save_CC $ac_arg" 5708 if ac_fn_c_try_compile "$LINENO"; then : 5709 ac_cv_prog_cc_c89=$ac_arg 5710fi 5711rm -f core conftest.err conftest.$ac_objext 5712 test "x$ac_cv_prog_cc_c89" != "xno" && break 5713done 5714rm -f conftest.$ac_ext 5715CC=$ac_save_CC 5716 5717fi 5718# AC_CACHE_VAL 5719case "x$ac_cv_prog_cc_c89" in 5720 x) 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5722$as_echo "none needed" >&6; } ;; 5723 xno) 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5725$as_echo "unsupported" >&6; } ;; 5726 *) 5727 CC="$CC $ac_cv_prog_cc_c89" 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5729$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5730esac 5731if test "x$ac_cv_prog_cc_c89" != xno; then : 5732 5733fi 5734 5735ac_ext=c 5736ac_cpp='$CPP $CPPFLAGS' 5737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5739ac_compiler_gnu=$ac_cv_c_compiler_gnu 5740 5741depcc="$CC" am_compiler_list= 5742 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5744$as_echo_n "checking dependency style of $depcc... " >&6; } 5745if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5746 $as_echo_n "(cached) " >&6 5747else 5748 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5749 # We make a subdir and do the tests there. Otherwise we can end up 5750 # making bogus files that we don't know about and never remove. For 5751 # instance it was reported that on HP-UX the gcc test will end up 5752 # making a dummy file named `D' -- because `-MD' means `put the output 5753 # in D'. 5754 mkdir conftest.dir 5755 # Copy depcomp to subdir because otherwise we won't find it if we're 5756 # using a relative directory. 5757 cp "$am_depcomp" conftest.dir 5758 cd conftest.dir 5759 # We will build objects and dependencies in a subdirectory because 5760 # it helps to detect inapplicable dependency modes. For instance 5761 # both Tru64's cc and ICC support -MD to output dependencies as a 5762 # side effect of compilation, but ICC will put the dependencies in 5763 # the current directory while Tru64 will put them in the object 5764 # directory. 5765 mkdir sub 5766 5767 am_cv_CC_dependencies_compiler_type=none 5768 if test "$am_compiler_list" = ""; then 5769 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5770 fi 5771 am__universal=false 5772 case " $depcc " in #( 5773 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5774 esac 5775 5776 for depmode in $am_compiler_list; do 5777 # Setup a source with many dependencies, because some compilers 5778 # like to wrap large dependency lists on column 80 (with \), and 5779 # we should not choose a depcomp mode which is confused by this. 5780 # 5781 # We need to recreate these files for each test, as the compiler may 5782 # overwrite some of them when testing with obscure command lines. 5783 # This happens at least with the AIX C compiler. 5784 : > sub/conftest.c 5785 for i in 1 2 3 4 5 6; do 5786 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5787 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5788 # Solaris 8's {/usr,}/bin/sh. 5789 touch sub/conftst$i.h 5790 done 5791 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5792 5793 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5794 # mode. It turns out that the SunPro C++ compiler does not properly 5795 # handle `-M -o', and we need to detect this. Also, some Intel 5796 # versions had trouble with output in subdirs 5797 am__obj=sub/conftest.${OBJEXT-o} 5798 am__minus_obj="-o $am__obj" 5799 case $depmode in 5800 gcc) 5801 # This depmode causes a compiler race in universal mode. 5802 test "$am__universal" = false || continue 5803 ;; 5804 nosideeffect) 5805 # after this tag, mechanisms are not by side-effect, so they'll 5806 # only be used when explicitly requested 5807 if test "x$enable_dependency_tracking" = xyes; then 5808 continue 5809 else 5810 break 5811 fi 5812 ;; 5813 msvisualcpp | msvcmsys) 5814 # This compiler won't grok `-c -o', but also, the minuso test has 5815 # not run yet. These depmodes are late enough in the game, and 5816 # so weak that their functioning should not be impacted. 5817 am__obj=conftest.${OBJEXT-o} 5818 am__minus_obj= 5819 ;; 5820 none) break ;; 5821 esac 5822 if depmode=$depmode \ 5823 source=sub/conftest.c object=$am__obj \ 5824 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5825 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5826 >/dev/null 2>conftest.err && 5827 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5828 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5829 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5830 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5831 # icc doesn't choke on unknown options, it will just issue warnings 5832 # or remarks (even with -Werror). So we grep stderr for any message 5833 # that says an option was ignored or not supported. 5834 # When given -MP, icc 7.0 and 7.1 complain thusly: 5835 # icc: Command line warning: ignoring option '-M'; no argument required 5836 # The diagnosis changed in icc 8.0: 5837 # icc: Command line remark: option '-MP' not supported 5838 if (grep 'ignoring option' conftest.err || 5839 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5840 am_cv_CC_dependencies_compiler_type=$depmode 5841 break 5842 fi 5843 fi 5844 done 5845 5846 cd .. 5847 rm -rf conftest.dir 5848else 5849 am_cv_CC_dependencies_compiler_type=none 5850fi 5851 5852fi 5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5854$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5855CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5856 5857 if 5858 test "x$enable_dependency_tracking" != xno \ 5859 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5860 am__fastdepCC_TRUE= 5861 am__fastdepCC_FALSE='#' 5862else 5863 am__fastdepCC_TRUE='#' 5864 am__fastdepCC_FALSE= 5865fi 5866 5867 5868# Ralf Wildenhues: With per-target flags we need CC_C_O 5869# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O 5870# FIXME: we rely on the cache variable name because 5871# there is no other way. 5872set dummy $CC 5873am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5874eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 5875if test "$am_t" != yes; then 5876 # Losing compiler, so override with the script. 5877 # FIXME: It is wrong to rewrite CC. 5878 # But if we don't then we get into trouble of one sort or another. 5879 # A longer-term fix would be to have automake use am__CC in this case, 5880 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5881 CC="$am_aux_dir/compile $CC" 5882fi 5883 5884 5885if test $ac_cv_c_compiler_gnu = yes; then 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 5887$as_echo_n "checking whether $CC needs -traditional... " >&6; } 5888if ${ac_cv_prog_gcc_traditional+:} false; then : 5889 $as_echo_n "(cached) " >&6 5890else 5891 ac_pattern="Autoconf.*'x'" 5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5893/* end confdefs.h. */ 5894#include <sgtty.h> 5895Autoconf TIOCGETP 5896_ACEOF 5897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5898 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5899 ac_cv_prog_gcc_traditional=yes 5900else 5901 ac_cv_prog_gcc_traditional=no 5902fi 5903rm -f conftest* 5904 5905 5906 if test $ac_cv_prog_gcc_traditional = no; then 5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5908/* end confdefs.h. */ 5909#include <termio.h> 5910Autoconf TCGETA 5911_ACEOF 5912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5913 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5914 ac_cv_prog_gcc_traditional=yes 5915fi 5916rm -f conftest* 5917 5918 fi 5919fi 5920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 5921$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 5922 if test $ac_cv_prog_gcc_traditional = yes; then 5923 CC="$CC -traditional" 5924 fi 5925fi 5926 5927 5928 5929 5930CFLAGS_NTP= 5931CPPFLAGS_NTP= 5932LDADD_NTP= 5933LDFLAGS_NTP= 5934 5935 5936 5937 5938 5939case "$ac_cv_prog_cc_c89" in 5940 no) 5941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 5942 version 4.2.5 and higher." >&5 5943$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 5944 version 4.2.5 and higher." >&2;} 5945 ;; 5946esac 5947 5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5 5949$as_echo_n "checking if $CC can handle #warning... " >&6; } 5950if ${ntp_cv_cpp_warning+:} false; then : 5951 $as_echo_n "(cached) " >&6 5952else 5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5954/* end confdefs.h. */ 5955 5956int 5957main () 5958{ 5959#warning foo 5960 ; 5961 return 0; 5962} 5963_ACEOF 5964if ac_fn_c_try_compile "$LINENO"; then : 5965 ntp_cv_cpp_warning=yes 5966else 5967 ntp_cv_cpp_warning=no 5968 5969fi 5970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5971 5972fi 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5 5974$as_echo "$ntp_cv_cpp_warning" >&6; } 5975case "$ntp_cv_cpp_warning" in 5976 no) 5977 5978$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h 5979 5980esac 5981 5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5 5983$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; } 5984if ${ntp_cv_cc_attribute+:} false; then : 5985 $as_echo_n "(cached) " >&6 5986else 5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5988/* end confdefs.h. */ 5989 5990int 5991main () 5992{ 5993void foo(void) __attribute__((__noreturn__)); 5994 5995 ; 5996 return 0; 5997} 5998_ACEOF 5999if ac_fn_c_try_compile "$LINENO"; then : 6000 ntp_cv_cc_attribute=yes 6001else 6002 ntp_cv_cc_attribute=no 6003 6004fi 6005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6006 6007fi 6008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5 6009$as_echo "$ntp_cv_cc_attribute" >&6; } 6010case "$ntp_cv_cc_attribute" in 6011 yes) 6012 6013$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h 6014 6015esac 6016 6017 6018case "$GCC" in 6019 yes) 6020 SAVED_CFLAGS="$CFLAGS" 6021 CFLAGS="$CFLAGS -Wstrict-overflow" 6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5 6023$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; } 6024if ${ntp_cv_gcc_Wstrict_overflow+:} false; then : 6025 $as_echo_n "(cached) " >&6 6026else 6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6028/* end confdefs.h. */ 6029 6030int 6031main () 6032{ 6033 6034 ; 6035 return 0; 6036} 6037_ACEOF 6038if ac_fn_c_try_compile "$LINENO"; then : 6039 ntp_cv_gcc_Wstrict_overflow=yes 6040else 6041 ntp_cv_gcc_Wstrict_overflow=no 6042 6043fi 6044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6045 6046fi 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5 6048$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; } 6049 # 6050 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the 6051 # flag to CFLAGS. 6052 # 6053 CFLAGS="$SAVED_CFLAGS -Winit-self" 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5 6055$as_echo_n "checking if $CC can handle -Winit-self... " >&6; } 6056if ${ntp_cv_gcc_Winit_self+:} false; then : 6057 $as_echo_n "(cached) " >&6 6058else 6059 6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6061/* end confdefs.h. */ 6062 6063int 6064main () 6065{ 6066 6067 ; 6068 return 0; 6069} 6070_ACEOF 6071if ac_fn_c_try_compile "$LINENO"; then : 6072 ntp_cv_gcc_Winit_self=yes 6073else 6074 ntp_cv_gcc_Winit_self=no 6075 6076fi 6077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6078 6079 6080fi 6081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5 6082$as_echo "$ntp_cv_gcc_Winit_self" >&6; } 6083 CFLAGS="$SAVED_CFLAGS" 6084 { SAVED_CFLAGS=; unset SAVED_CFLAGS;} 6085 # 6086 # $ntp_cv_gcc_Winit_self is tested later to add the 6087 # flag to CFLAGS_NTP. 6088 # 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 6090$as_echo_n "checking if linker supports omitting unused code and data... " >&6; } 6091if ${ntp_cv_gc_sections_runs+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093else 6094 6095 origCFLAGS="$CFLAGS" 6096 CFLAGS="$CFLAGS -Wl,--gc-sections" 6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6098/* end confdefs.h. */ 6099 6100 #include <stdlib.h> 6101 #include <stdio.h> 6102 6103int 6104main () 6105{ 6106 6107 FILE * fpC; 6108 char buf[32]; 6109 size_t cch; 6110 int read_success_once; 6111 6112 fpC = fopen("conftest.c", "r"); 6113 if (NULL == fpC) 6114 exit(1); 6115 do { 6116 cch = fread(buf, sizeof(buf), 1, fpC); 6117 read_success_once |= (0 != cch); 6118 } while (0 != cch); 6119 if (!read_success_once) 6120 exit(2); 6121 if (!feof(fpC)) 6122 exit(3); 6123 if (0 != fclose(fpC)) 6124 exit(4); 6125 6126 exit(EXIT_SUCCESS); 6127 6128 6129 ; 6130 return 0; 6131} 6132_ACEOF 6133if ac_fn_c_try_link "$LINENO"; then : 6134 6135 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 6136 ntp_cv_gc_sections_runs=no 6137 else 6138 ntp_cv_gc_sections_runs=no 6139 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes 6140 fi 6141 6142else 6143 ntp_cv_gc_sections_runs=no 6144 6145fi 6146rm -f core conftest.err conftest.$ac_objext \ 6147 conftest$ac_exeext conftest.$ac_ext 6148 CFLAGS="$origCFLAGS" 6149 { origCFLAGS=; unset origCFLAGS;} 6150 6151 6152fi 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5 6154$as_echo "$ntp_cv_gc_sections_runs" >&6; } 6155 case "$ntp_cv_gc_sections_runs" in 6156 yes) 6157 LDADD_LIBNTP="-Wl,--gc-sections" 6158 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections" 6159 ;; 6160 no) 6161 LDADD_LIBNTP= 6162 ;; 6163 esac 6164 CFLAGS_NTP="$CFLAGS_NTP -Wall" 6165 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align" 6166 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual" 6167 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion" 6168 # CFLAGS_NTP="$CFLAGS_NTP -Werror" 6169 # CFLAGS_NTP="$CFLAGS_NTP -Wextra" 6170 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal" 6171 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes" 6172 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith" 6173 CFLAGS_NTP="$CFLAGS_NTP -Wshadow" 6174 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional" 6175 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings" 6176 case "$ntp_cv_gcc_Winit_self" in 6177 yes) 6178 CFLAGS_NTP="$CFLAGS_NTP -Winit-self" 6179 esac 6180 case "$ntp_cv_gcc_Wstrict_overflow" in 6181 yes) 6182 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow" 6183 esac 6184 # -W[no-]strict-prototypes might be added by NTP_OPENSSL 6185esac 6186 6187 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5 6189$as_echo_n "checking additional compiler flags... " >&6; } 6190 # allow ntp_os_flags to be preset to skip this stuff 6191 case "${ntp_os_cflags+set}" in 6192 set) 6193 ;; 6194 *) 6195 ntp_os_cflags= 6196 case "$host_os" in 6197 aix[1-3]*) 6198 ;; 6199 aix4.[0-2]*) 6200 # turn on additional headers 6201 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE" 6202 ;; 6203 aix5.3*) 6204 # avoid circular dependencies in yp headers, and more 6205 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE" 6206 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT" 6207 ;; 6208 aix*) 6209 # XXX Only verified thru AIX6. 6210 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing. 6211 # avoid circular dependencies in yp headers 6212 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995 6213 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004 6214 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008 6215 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600" 6216 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS" 6217 ;; 6218 amigaos) 6219 ntp_os_cflags="-DSYS_AMIGA" 6220 ;; 6221 darwin*|macosx*|rhapsody*) 6222 ntp_os_cflags="-D_P1003_1B_VISIBLE" 6223 ;; 6224 hpux10.*) # at least for hppa2.0-hp-hpux10.20 6225 case "$GCC" in 6226 yes) 6227 ;; 6228 *) 6229 # use Ansi compiler on HPUX, and some -Wp magic 6230 ntp_os_cflags="-Ae -Wp,-H18816" 6231 ;; 6232 esac 6233 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE" 6234 ;; 6235 hpux*) 6236 case "$GCC" in 6237 yes) 6238 ;; 6239 *) 6240 # use Ansi compiler on HPUX 6241 ntp_os_cflags="-Ae" 6242 esac 6243 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE" 6244 ;; 6245 irix6*) 6246 case "$CC" in 6247 cc) 6248 # do not use 64-bit compiler 6249 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84" 6250 esac 6251 ;; 6252 nextstep3) 6253 ntp_os_cflags="-posix" 6254 ;; 6255 solaris1*|solaris2.[0-5]|solaris2.5.*) 6256 ;; 6257 sunos[34]*|sunos5.[0-5]|sunos5.5.*) 6258 ;; 6259 solaris2*|sunos5*) 6260 # turn on 64-bit file offset interface 6261 ntp_os_cflags="-D_LARGEFILE64_SOURCE" 6262 ;; 6263 vxworks*) 6264 case "$build" in 6265 $host) 6266 ;; 6267 *) 6268 # Quick and dirty sanity check 6269 case "$VX_KERNEL" in 6270 '') 6271 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5 6272 esac 6273 ntp_os_cflags="-DSYS_VXWORKS" 6274 esac 6275 ;; 6276 esac 6277 esac 6278 case "$ntp_os_flags" in 6279 '') 6280 ntp_os_cflags_msg="none needed" 6281 ;; 6282 *) 6283 ntp_os_cflags_msg="$ntp_os_cflags" 6284 esac 6285 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags" 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5 6287$as_echo "$ntp_os_cflags_msg" >&6; } 6288 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;} 6289 6290 6291 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 6293$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 6294if ${ac_cv_c_bigendian+:} false; then : 6295 $as_echo_n "(cached) " >&6 6296else 6297 ac_cv_c_bigendian=unknown 6298 # See if we're dealing with a universal compiler. 6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6300/* end confdefs.h. */ 6301#ifndef __APPLE_CC__ 6302 not a universal capable compiler 6303 #endif 6304 typedef int dummy; 6305 6306_ACEOF 6307if ac_fn_c_try_compile "$LINENO"; then : 6308 6309 # Check for potential -arch flags. It is not universal unless 6310 # there are at least two -arch flags with different values. 6311 ac_arch= 6312 ac_prev= 6313 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 6314 if test -n "$ac_prev"; then 6315 case $ac_word in 6316 i?86 | x86_64 | ppc | ppc64) 6317 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 6318 ac_arch=$ac_word 6319 else 6320 ac_cv_c_bigendian=universal 6321 break 6322 fi 6323 ;; 6324 esac 6325 ac_prev= 6326 elif test "x$ac_word" = "x-arch"; then 6327 ac_prev=arch 6328 fi 6329 done 6330fi 6331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6332 if test $ac_cv_c_bigendian = unknown; then 6333 # See if sys/param.h defines the BYTE_ORDER macro. 6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6335/* end confdefs.h. */ 6336#include <sys/types.h> 6337 #include <sys/param.h> 6338 6339int 6340main () 6341{ 6342#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 6343 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 6344 && LITTLE_ENDIAN) 6345 bogus endian macros 6346 #endif 6347 6348 ; 6349 return 0; 6350} 6351_ACEOF 6352if ac_fn_c_try_compile "$LINENO"; then : 6353 # It does; now see whether it defined to BIG_ENDIAN or not. 6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6355/* end confdefs.h. */ 6356#include <sys/types.h> 6357 #include <sys/param.h> 6358 6359int 6360main () 6361{ 6362#if BYTE_ORDER != BIG_ENDIAN 6363 not big endian 6364 #endif 6365 6366 ; 6367 return 0; 6368} 6369_ACEOF 6370if ac_fn_c_try_compile "$LINENO"; then : 6371 ac_cv_c_bigendian=yes 6372else 6373 ac_cv_c_bigendian=no 6374fi 6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6376fi 6377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6378 fi 6379 if test $ac_cv_c_bigendian = unknown; then 6380 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6382/* end confdefs.h. */ 6383#include <limits.h> 6384 6385int 6386main () 6387{ 6388#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 6389 bogus endian macros 6390 #endif 6391 6392 ; 6393 return 0; 6394} 6395_ACEOF 6396if ac_fn_c_try_compile "$LINENO"; then : 6397 # It does; now see whether it defined to _BIG_ENDIAN or not. 6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6399/* end confdefs.h. */ 6400#include <limits.h> 6401 6402int 6403main () 6404{ 6405#ifndef _BIG_ENDIAN 6406 not big endian 6407 #endif 6408 6409 ; 6410 return 0; 6411} 6412_ACEOF 6413if ac_fn_c_try_compile "$LINENO"; then : 6414 ac_cv_c_bigendian=yes 6415else 6416 ac_cv_c_bigendian=no 6417fi 6418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6419fi 6420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6421 fi 6422 if test $ac_cv_c_bigendian = unknown; then 6423 # Compile a test program. 6424 if test "$cross_compiling" = yes; then : 6425 # Try to guess by grepping values from an object file. 6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6427/* end confdefs.h. */ 6428short int ascii_mm[] = 6429 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6430 short int ascii_ii[] = 6431 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6432 int use_ascii (int i) { 6433 return ascii_mm[i] + ascii_ii[i]; 6434 } 6435 short int ebcdic_ii[] = 6436 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6437 short int ebcdic_mm[] = 6438 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6439 int use_ebcdic (int i) { 6440 return ebcdic_mm[i] + ebcdic_ii[i]; 6441 } 6442 extern int foo; 6443 6444int 6445main () 6446{ 6447return use_ascii (foo) == use_ebcdic (foo); 6448 ; 6449 return 0; 6450} 6451_ACEOF 6452if ac_fn_c_try_compile "$LINENO"; then : 6453 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 6454 ac_cv_c_bigendian=yes 6455 fi 6456 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6457 if test "$ac_cv_c_bigendian" = unknown; then 6458 ac_cv_c_bigendian=no 6459 else 6460 # finding both strings is unlikely to happen, but who knows? 6461 ac_cv_c_bigendian=unknown 6462 fi 6463 fi 6464fi 6465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6466else 6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6468/* end confdefs.h. */ 6469$ac_includes_default 6470int 6471main () 6472{ 6473 6474 /* Are we little or big endian? From Harbison&Steele. */ 6475 union 6476 { 6477 long int l; 6478 char c[sizeof (long int)]; 6479 } u; 6480 u.l = 1; 6481 return u.c[sizeof (long int) - 1] == 1; 6482 6483 ; 6484 return 0; 6485} 6486_ACEOF 6487if ac_fn_c_try_run "$LINENO"; then : 6488 ac_cv_c_bigendian=no 6489else 6490 ac_cv_c_bigendian=yes 6491fi 6492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6493 conftest.$ac_objext conftest.beam conftest.$ac_ext 6494fi 6495 6496 fi 6497fi 6498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 6499$as_echo "$ac_cv_c_bigendian" >&6; } 6500 case $ac_cv_c_bigendian in #( 6501 yes) 6502 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 6503;; #( 6504 no) 6505 ;; #( 6506 universal) 6507 6508$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 6509 6510 ;; #( 6511 *) 6512 as_fn_error $? "unknown endianness 6513 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 6514 esac 6515 6516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 6517$as_echo_n "checking for working volatile... " >&6; } 6518if ${ac_cv_c_volatile+:} false; then : 6519 $as_echo_n "(cached) " >&6 6520else 6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6522/* end confdefs.h. */ 6523 6524int 6525main () 6526{ 6527 6528volatile int x; 6529int * volatile y = (int *) 0; 6530return !x && !y; 6531 ; 6532 return 0; 6533} 6534_ACEOF 6535if ac_fn_c_try_compile "$LINENO"; then : 6536 ac_cv_c_volatile=yes 6537else 6538 ac_cv_c_volatile=no 6539fi 6540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6541fi 6542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 6543$as_echo "$ac_cv_c_volatile" >&6; } 6544if test $ac_cv_c_volatile = no; then 6545 6546$as_echo "#define volatile /**/" >>confdefs.h 6547 6548fi 6549 6550ac_ext=c 6551ac_cpp='$CPP $CPPFLAGS' 6552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6554ac_compiler_gnu=$ac_cv_c_compiler_gnu 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6556$as_echo_n "checking how to run the C preprocessor... " >&6; } 6557# On Suns, sometimes $CPP names a directory. 6558if test -n "$CPP" && test -d "$CPP"; then 6559 CPP= 6560fi 6561if test -z "$CPP"; then 6562 if ${ac_cv_prog_CPP+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564else 6565 # Double quotes because CPP needs to be expanded 6566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6567 do 6568 ac_preproc_ok=false 6569for ac_c_preproc_warn_flag in '' yes 6570do 6571 # Use a header file that comes with gcc, so configuring glibc 6572 # with a fresh cross-compiler works. 6573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6574 # <limits.h> exists even on freestanding compilers. 6575 # On the NeXT, cc -E runs the code through the compiler's parser, 6576 # not just through cpp. "Syntax error" is here to catch this case. 6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6578/* end confdefs.h. */ 6579#ifdef __STDC__ 6580# include <limits.h> 6581#else 6582# include <assert.h> 6583#endif 6584 Syntax error 6585_ACEOF 6586if ac_fn_c_try_cpp "$LINENO"; then : 6587 6588else 6589 # Broken: fails on valid input. 6590continue 6591fi 6592rm -f conftest.err conftest.i conftest.$ac_ext 6593 6594 # OK, works on sane cases. Now check whether nonexistent headers 6595 # can be detected and how. 6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6597/* end confdefs.h. */ 6598#include <ac_nonexistent.h> 6599_ACEOF 6600if ac_fn_c_try_cpp "$LINENO"; then : 6601 # Broken: success on invalid input. 6602continue 6603else 6604 # Passes both tests. 6605ac_preproc_ok=: 6606break 6607fi 6608rm -f conftest.err conftest.i conftest.$ac_ext 6609 6610done 6611# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6612rm -f conftest.i conftest.err conftest.$ac_ext 6613if $ac_preproc_ok; then : 6614 break 6615fi 6616 6617 done 6618 ac_cv_prog_CPP=$CPP 6619 6620fi 6621 CPP=$ac_cv_prog_CPP 6622else 6623 ac_cv_prog_CPP=$CPP 6624fi 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6626$as_echo "$CPP" >&6; } 6627ac_preproc_ok=false 6628for ac_c_preproc_warn_flag in '' yes 6629do 6630 # Use a header file that comes with gcc, so configuring glibc 6631 # with a fresh cross-compiler works. 6632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6633 # <limits.h> exists even on freestanding compilers. 6634 # On the NeXT, cc -E runs the code through the compiler's parser, 6635 # not just through cpp. "Syntax error" is here to catch this case. 6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6637/* end confdefs.h. */ 6638#ifdef __STDC__ 6639# include <limits.h> 6640#else 6641# include <assert.h> 6642#endif 6643 Syntax error 6644_ACEOF 6645if ac_fn_c_try_cpp "$LINENO"; then : 6646 6647else 6648 # Broken: fails on valid input. 6649continue 6650fi 6651rm -f conftest.err conftest.i conftest.$ac_ext 6652 6653 # OK, works on sane cases. Now check whether nonexistent headers 6654 # can be detected and how. 6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6656/* end confdefs.h. */ 6657#include <ac_nonexistent.h> 6658_ACEOF 6659if ac_fn_c_try_cpp "$LINENO"; then : 6660 # Broken: success on invalid input. 6661continue 6662else 6663 # Passes both tests. 6664ac_preproc_ok=: 6665break 6666fi 6667rm -f conftest.err conftest.i conftest.$ac_ext 6668 6669done 6670# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6671rm -f conftest.i conftest.err conftest.$ac_ext 6672if $ac_preproc_ok; then : 6673 6674else 6675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6677as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6678See \`config.log' for more details" "$LINENO" 5; } 6679fi 6680 6681ac_ext=c 6682ac_cpp='$CPP $CPPFLAGS' 6683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6685ac_compiler_gnu=$ac_cv_c_compiler_gnu 6686 6687 6688 6689 6690 6691 6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5 6693$as_echo_n "checking for install dir and man conventions... " >&6; } 6694 6695 6696# Check whether --with-locfile was given. 6697if test "${with_locfile+set}" = set; then : 6698 withval=$with_locfile; 6699else 6700 with_locfile=no 6701 6702fi 6703 6704 6705( \ 6706 SENTINEL_DIR="$PWD" && \ 6707 cd $srcdir/ && \ 6708 case "$with_locfile" in \ 6709 yes|no|'') \ 6710 scripts/genLocInfo -d "$SENTINEL_DIR" \ 6711 ;; \ 6712 *) \ 6713 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \ 6714 ;; \ 6715 esac \ 6716) > genLocInfo.i 2> genLocInfo.err 6717. ./genLocInfo.i 6718 6719case "$GENLOCINFO" in 6720 OK) 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5 6722$as_echo "in file $GENLOCINFOFILE" >&6; } 6723 rm genLocInfo.err genLocInfo.i 6724 ;; 6725 *) 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5 6727$as_echo "failed." >&6; } 6728 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5 6729 ;; 6730esac 6731 6732 if test "$CALC_TICKADJ_MS" ; then 6733 WANT_CALC_TICKADJ_MS_TRUE= 6734 WANT_CALC_TICKADJ_MS_FALSE='#' 6735else 6736 WANT_CALC_TICKADJ_MS_TRUE='#' 6737 WANT_CALC_TICKADJ_MS_FALSE= 6738fi 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805# Expose a cross-compilation indicator to makefiles 6806 if test $build != $host; then 6807 NTP_CROSSCOMPILE_TRUE= 6808 NTP_CROSSCOMPILE_FALSE='#' 6809else 6810 NTP_CROSSCOMPILE_TRUE='#' 6811 NTP_CROSSCOMPILE_FALSE= 6812fi 6813 6814 6815 6816ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 6817if test "x$ac_cv_type_pid_t" = xyes; then : 6818 6819else 6820 6821cat >>confdefs.h <<_ACEOF 6822#define pid_t int 6823_ACEOF 6824 6825fi 6826 6827ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 6828if test "x$ac_cv_type_size_t" = xyes; then : 6829 6830else 6831 6832cat >>confdefs.h <<_ACEOF 6833#define size_t unsigned int 6834_ACEOF 6835 6836fi 6837 6838 6839 # Check whether --enable-c99-snprintf was given. 6840if test "${enable_c99_snprintf+set}" = set; then : 6841 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval 6842else 6843 force_c99_snprintf=no 6844 6845fi 6846 6847 case "$force_c99_snprintf" in 6848 yes) 6849 hw_force_rpl_snprintf=yes 6850 hw_force_rpl_vsnprintf=yes 6851 esac 6852 6853 6854 6855 6856 6857 6858 for ac_header in $ac_header_list 6859do : 6860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6861ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6862" 6863if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6864 cat >>confdefs.h <<_ACEOF 6865#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6866_ACEOF 6867 6868fi 6869 6870done 6871 6872 6873 6874 6875 6876 6877 6878 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 6879if test "x$ac_cv_func_vsnprintf" = xyes; then : 6880 hw_cv_func_vsnprintf=yes 6881else 6882 hw_cv_func_vsnprintf=no 6883fi 6884 6885 if test "$hw_cv_func_vsnprintf" = yes; then : 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5 6887$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; } 6888if ${hw_cv_func_vsnprintf_c99+:} false; then : 6889 $as_echo_n "(cached) " >&6 6890else 6891 if test "$cross_compiling" = yes; then : 6892 hw_cv_func_vsnprintf_c99=no 6893else 6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6895/* end confdefs.h. */ 6896#if HAVE_STDARG_H 6897 #include <stdarg.h> 6898 #endif 6899 #include <stdio.h> 6900 static int testprintf(char *buf, size_t size, const char *format, ...) 6901 { 6902 int result; 6903 va_list ap; 6904 va_start(ap, format); 6905 result = vsnprintf(buf, size, format, ap); 6906 va_end(ap); 6907 return result; 6908 } 6909int 6910main () 6911{ 6912char buf[43]; 6913 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 6914 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 6915 buf[0] != 'T' || buf[3] != '\0') 6916 return 1; 6917 ; 6918 return 0; 6919} 6920_ACEOF 6921if ac_fn_c_try_run "$LINENO"; then : 6922 hw_cv_func_vsnprintf_c99=yes 6923else 6924 hw_cv_func_vsnprintf_c99=no 6925fi 6926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6927 conftest.$ac_objext conftest.beam conftest.$ac_ext 6928fi 6929 6930fi 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5 6932$as_echo "$hw_cv_func_vsnprintf_c99" >&6; } 6933else 6934 hw_cv_func_vsnprintf_c99=no 6935fi 6936 6937$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 6938 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5 6940$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; } 6941 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then : 6942 hw_use_rpl_vsnprintf=yes 6943else 6944 hw_use_rpl_vsnprintf=no 6945fi 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5 6947$as_echo "$hw_use_rpl_vsnprintf" >&6; } 6948 if test "$hw_use_rpl_vsnprintf" = yes; then : 6949 6950$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h 6951 6952 if test ${hw_nodef_vsnprintf=no} = no; then : 6953 6954$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h 6955 6956fi 6957 for ac_header in inttypes.h locale.h stddef.h stdint.h 6958do : 6959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6960ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6961if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6962 cat >>confdefs.h <<_ACEOF 6963#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6964_ACEOF 6965 6966fi 6967 6968done 6969 6970 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 6971" 6972if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then : 6973 6974cat >>confdefs.h <<_ACEOF 6975#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1 6976_ACEOF 6977 6978 6979fi 6980ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h> 6981" 6982if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then : 6983 6984cat >>confdefs.h <<_ACEOF 6985#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1 6986_ACEOF 6987 6988 6989fi 6990 6991 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 6993$as_echo_n "checking for long double... " >&6; } 6994if ${ac_cv_type_long_double+:} false; then : 6995 $as_echo_n "(cached) " >&6 6996else 6997 if test "$GCC" = yes; then 6998 ac_cv_type_long_double=yes 6999 else 7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7001/* end confdefs.h. */ 7002/* The Stardent Vistra knows sizeof (long double), but does 7003 not support it. */ 7004 long double foo = 0.0L; 7005int 7006main () 7007{ 7008static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 7009 sizeof (double) <= sizeof (long double))]; 7010test_array [0] = 0 7011 7012 ; 7013 return 0; 7014} 7015_ACEOF 7016if ac_fn_c_try_compile "$LINENO"; then : 7017 ac_cv_type_long_double=yes 7018else 7019 ac_cv_type_long_double=no 7020fi 7021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7022 fi 7023fi 7024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 7025$as_echo "$ac_cv_type_long_double" >&6; } 7026 if test $ac_cv_type_long_double = yes; then 7027 7028$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 7029 7030 fi 7031 7032 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 7034$as_echo_n "checking for long long int... " >&6; } 7035if ${ac_cv_type_long_long_int+:} false; then : 7036 $as_echo_n "(cached) " >&6 7037else 7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7039/* end confdefs.h. */ 7040 7041 /* For now, do not test the preprocessor; as of 2007 there are too many 7042 implementations with broken preprocessors. Perhaps this can 7043 be revisited in 2012. In the meantime, code should not expect 7044 #if to work with literals wider than 32 bits. */ 7045 /* Test literals. */ 7046 long long int ll = 9223372036854775807ll; 7047 long long int nll = -9223372036854775807LL; 7048 unsigned long long int ull = 18446744073709551615ULL; 7049 /* Test constant expressions. */ 7050 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 7051 ? 1 : -1)]; 7052 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 7053 ? 1 : -1)]; 7054 int i = 63; 7055int 7056main () 7057{ 7058/* Test availability of runtime routines for shift and division. */ 7059 long long int llmax = 9223372036854775807ll; 7060 unsigned long long int ullmax = 18446744073709551615ull; 7061 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 7062 | (llmax / ll) | (llmax % ll) 7063 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 7064 | (ullmax / ull) | (ullmax % ull)); 7065 ; 7066 return 0; 7067} 7068 7069_ACEOF 7070if ac_fn_c_try_link "$LINENO"; then : 7071 if test "$cross_compiling" = yes; then : 7072 ac_cv_type_long_long_int=yes 7073else 7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7075/* end confdefs.h. */ 7076#include <limits.h> 7077 #ifndef LLONG_MAX 7078 # define HALF \ 7079 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 7080 # define LLONG_MAX (HALF - 1 + HALF) 7081 #endif 7082int 7083main () 7084{ 7085long long int n = 1; 7086 int i; 7087 for (i = 0; ; i++) 7088 { 7089 long long int m = n << i; 7090 if (m >> i != n) 7091 return 1; 7092 if (LLONG_MAX / 2 < m) 7093 break; 7094 } 7095 return 0; 7096 ; 7097 return 0; 7098} 7099_ACEOF 7100if ac_fn_c_try_run "$LINENO"; then : 7101 ac_cv_type_long_long_int=yes 7102else 7103 ac_cv_type_long_long_int=no 7104fi 7105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7106 conftest.$ac_objext conftest.beam conftest.$ac_ext 7107fi 7108 7109else 7110 ac_cv_type_long_long_int=no 7111fi 7112rm -f core conftest.err conftest.$ac_objext \ 7113 conftest$ac_exeext conftest.$ac_ext 7114fi 7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 7116$as_echo "$ac_cv_type_long_long_int" >&6; } 7117 if test $ac_cv_type_long_long_int = yes; then 7118 7119$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 7120 7121 fi 7122 7123 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 7125$as_echo_n "checking for unsigned long long int... " >&6; } 7126if ${ac_cv_type_unsigned_long_long_int+:} false; then : 7127 $as_echo_n "(cached) " >&6 7128else 7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7130/* end confdefs.h. */ 7131 7132 /* For now, do not test the preprocessor; as of 2007 there are too many 7133 implementations with broken preprocessors. Perhaps this can 7134 be revisited in 2012. In the meantime, code should not expect 7135 #if to work with literals wider than 32 bits. */ 7136 /* Test literals. */ 7137 long long int ll = 9223372036854775807ll; 7138 long long int nll = -9223372036854775807LL; 7139 unsigned long long int ull = 18446744073709551615ULL; 7140 /* Test constant expressions. */ 7141 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 7142 ? 1 : -1)]; 7143 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 7144 ? 1 : -1)]; 7145 int i = 63; 7146int 7147main () 7148{ 7149/* Test availability of runtime routines for shift and division. */ 7150 long long int llmax = 9223372036854775807ll; 7151 unsigned long long int ullmax = 18446744073709551615ull; 7152 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 7153 | (llmax / ll) | (llmax % ll) 7154 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 7155 | (ullmax / ull) | (ullmax % ull)); 7156 ; 7157 return 0; 7158} 7159 7160_ACEOF 7161if ac_fn_c_try_link "$LINENO"; then : 7162 ac_cv_type_unsigned_long_long_int=yes 7163else 7164 ac_cv_type_unsigned_long_long_int=no 7165fi 7166rm -f core conftest.err conftest.$ac_objext \ 7167 conftest$ac_exeext conftest.$ac_ext 7168fi 7169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 7170$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 7171 if test $ac_cv_type_unsigned_long_long_int = yes; then 7172 7173$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 7174 7175 fi 7176 7177 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7178if test "x$ac_cv_type_size_t" = xyes; then : 7179 7180else 7181 7182cat >>confdefs.h <<_ACEOF 7183#define size_t unsigned int 7184_ACEOF 7185 7186fi 7187 7188 7189 7190 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 7191if test "x$ac_cv_type_intmax_t" = xyes; then : 7192 7193$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 7194 7195else 7196 test $ac_cv_type_long_long_int = yes \ 7197 && ac_type='long long int' \ 7198 || ac_type='long int' 7199 7200cat >>confdefs.h <<_ACEOF 7201#define intmax_t $ac_type 7202_ACEOF 7203 7204fi 7205 7206 7207 7208 7209 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 7210if test "x$ac_cv_type_uintmax_t" = xyes; then : 7211 7212$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 7213 7214else 7215 test $ac_cv_type_unsigned_long_long_int = yes \ 7216 && ac_type='unsigned long long int' \ 7217 || ac_type='unsigned long int' 7218 7219cat >>confdefs.h <<_ACEOF 7220#define uintmax_t $ac_type 7221_ACEOF 7222 7223fi 7224 7225 7226 7227 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 7228if test "x$ac_cv_type_uintptr_t" = xyes; then : 7229 7230$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 7231 7232else 7233 for ac_type in 'unsigned int' 'unsigned long int' \ 7234 'unsigned long long int'; do 7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7236/* end confdefs.h. */ 7237$ac_includes_default 7238int 7239main () 7240{ 7241static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 7242test_array [0] = 0 7243 7244 ; 7245 return 0; 7246} 7247_ACEOF 7248if ac_fn_c_try_compile "$LINENO"; then : 7249 7250cat >>confdefs.h <<_ACEOF 7251#define uintptr_t $ac_type 7252_ACEOF 7253 7254 ac_type= 7255fi 7256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7257 test -z "$ac_type" && break 7258 done 7259fi 7260 7261 7262 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 7263if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 7264 7265cat >>confdefs.h <<_ACEOF 7266#define HAVE_PTRDIFF_T 1 7267_ACEOF 7268 7269 7270fi 7271 7272 for ac_func in localeconv 7273do : 7274 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv" 7275if test "x$ac_cv_func_localeconv" = xyes; then : 7276 cat >>confdefs.h <<_ACEOF 7277#define HAVE_LOCALECONV 1 7278_ACEOF 7279 7280fi 7281done 7282 7283 7284 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 7286$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 7287if ${ac_cv_c_const+:} false; then : 7288 $as_echo_n "(cached) " >&6 7289else 7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7291/* end confdefs.h. */ 7292 7293int 7294main () 7295{ 7296/* FIXME: Include the comments suggested by Paul. */ 7297#ifndef __cplusplus 7298 /* Ultrix mips cc rejects this. */ 7299 typedef int charset[2]; 7300 const charset cs; 7301 /* SunOS 4.1.1 cc rejects this. */ 7302 char const *const *pcpcc; 7303 char **ppc; 7304 /* NEC SVR4.0.2 mips cc rejects this. */ 7305 struct point {int x, y;}; 7306 static struct point const zero = {0,0}; 7307 /* AIX XL C 1.02.0.0 rejects this. 7308 It does not let you subtract one const X* pointer from another in 7309 an arm of an if-expression whose if-part is not a constant 7310 expression */ 7311 const char *g = "string"; 7312 pcpcc = &g + (g ? g-g : 0); 7313 /* HPUX 7.0 cc rejects these. */ 7314 ++pcpcc; 7315 ppc = (char**) pcpcc; 7316 pcpcc = (char const *const *) ppc; 7317 { /* SCO 3.2v4 cc rejects this. */ 7318 char *t; 7319 char const *s = 0 ? (char *) 0 : (char const *) 0; 7320 7321 *t++ = 0; 7322 if (s) return 0; 7323 } 7324 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7325 int x[] = {25, 17}; 7326 const int *foo = &x[0]; 7327 ++foo; 7328 } 7329 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7330 typedef const int *iptr; 7331 iptr p = 0; 7332 ++p; 7333 } 7334 { /* AIX XL C 1.02.0.0 rejects this saying 7335 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7336 struct s { int j; const int *ap[3]; }; 7337 struct s *b; b->j = 5; 7338 } 7339 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7340 const int foo = 10; 7341 if (!foo) return 0; 7342 } 7343 return !cs[0] && !zero.x; 7344#endif 7345 7346 ; 7347 return 0; 7348} 7349_ACEOF 7350if ac_fn_c_try_compile "$LINENO"; then : 7351 ac_cv_c_const=yes 7352else 7353 ac_cv_c_const=no 7354fi 7355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7356fi 7357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 7358$as_echo "$ac_cv_c_const" >&6; } 7359if test $ac_cv_c_const = no; then 7360 7361$as_echo "#define const /**/" >>confdefs.h 7362 7363fi 7364 7365 7366 7367 7368 case " $LIBOBJS " in 7369 *" snprintf.$ac_objext "* ) ;; 7370 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 7371 ;; 7372esac 7373 7374 _hw_cv_func_xprintf_replace_done=yes 7375fi 7376 7377fi 7378 7379 7380 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 7381if test "x$ac_cv_func_snprintf" = xyes; then : 7382 hw_cv_func_snprintf=yes 7383else 7384 hw_cv_func_snprintf=no 7385fi 7386 7387 if test "$hw_cv_func_snprintf" = yes; then : 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5 7389$as_echo_n "checking whether snprintf is C99 compliant... " >&6; } 7390if ${hw_cv_func_snprintf_c99+:} false; then : 7391 $as_echo_n "(cached) " >&6 7392else 7393 if test "$cross_compiling" = yes; then : 7394 hw_cv_func_snprintf_c99=no 7395else 7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7397/* end confdefs.h. */ 7398#include <stdio.h> 7399int 7400main () 7401{ 7402char buf[43]; 7403 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 7404 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 7405 buf[0] != 'T' || buf[3] != '\0') 7406 return 1; 7407 ; 7408 return 0; 7409} 7410_ACEOF 7411if ac_fn_c_try_run "$LINENO"; then : 7412 hw_cv_func_snprintf_c99=yes 7413else 7414 hw_cv_func_snprintf_c99=no 7415fi 7416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7417 conftest.$ac_objext conftest.beam conftest.$ac_ext 7418fi 7419 7420fi 7421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5 7422$as_echo "$hw_cv_func_snprintf_c99" >&6; } 7423else 7424 hw_cv_func_snprintf_c99=no 7425fi 7426 7427$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 7428 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5 7430$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; } 7431 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then : 7432 hw_use_rpl_snprintf=yes 7433else 7434 hw_use_rpl_snprintf=no 7435fi 7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5 7437$as_echo "$hw_use_rpl_snprintf" >&6; } 7438 if test "$hw_use_rpl_snprintf" = yes; then : 7439 7440$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h 7441 7442 if test ${hw_nodef_snprintf=no} = no; then : 7443 7444$as_echo "#define snprintf rpl_snprintf" >>confdefs.h 7445 7446fi 7447 7448 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 7450$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 7451if ${ac_cv_c_const+:} false; then : 7452 $as_echo_n "(cached) " >&6 7453else 7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7455/* end confdefs.h. */ 7456 7457int 7458main () 7459{ 7460/* FIXME: Include the comments suggested by Paul. */ 7461#ifndef __cplusplus 7462 /* Ultrix mips cc rejects this. */ 7463 typedef int charset[2]; 7464 const charset cs; 7465 /* SunOS 4.1.1 cc rejects this. */ 7466 char const *const *pcpcc; 7467 char **ppc; 7468 /* NEC SVR4.0.2 mips cc rejects this. */ 7469 struct point {int x, y;}; 7470 static struct point const zero = {0,0}; 7471 /* AIX XL C 1.02.0.0 rejects this. 7472 It does not let you subtract one const X* pointer from another in 7473 an arm of an if-expression whose if-part is not a constant 7474 expression */ 7475 const char *g = "string"; 7476 pcpcc = &g + (g ? g-g : 0); 7477 /* HPUX 7.0 cc rejects these. */ 7478 ++pcpcc; 7479 ppc = (char**) pcpcc; 7480 pcpcc = (char const *const *) ppc; 7481 { /* SCO 3.2v4 cc rejects this. */ 7482 char *t; 7483 char const *s = 0 ? (char *) 0 : (char const *) 0; 7484 7485 *t++ = 0; 7486 if (s) return 0; 7487 } 7488 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7489 int x[] = {25, 17}; 7490 const int *foo = &x[0]; 7491 ++foo; 7492 } 7493 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7494 typedef const int *iptr; 7495 iptr p = 0; 7496 ++p; 7497 } 7498 { /* AIX XL C 1.02.0.0 rejects this saying 7499 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7500 struct s { int j; const int *ap[3]; }; 7501 struct s *b; b->j = 5; 7502 } 7503 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7504 const int foo = 10; 7505 if (!foo) return 0; 7506 } 7507 return !cs[0] && !zero.x; 7508#endif 7509 7510 ; 7511 return 0; 7512} 7513_ACEOF 7514if ac_fn_c_try_compile "$LINENO"; then : 7515 ac_cv_c_const=yes 7516else 7517 ac_cv_c_const=no 7518fi 7519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7520fi 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 7522$as_echo "$ac_cv_c_const" >&6; } 7523if test $ac_cv_c_const = no; then 7524 7525$as_echo "#define const /**/" >>confdefs.h 7526 7527fi 7528 7529 7530 7531 7532 case " $LIBOBJS " in 7533 *" snprintf.$ac_objext "* ) ;; 7534 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 7535 ;; 7536esac 7537 7538 _hw_cv_func_xprintf_replace_done=yes 7539fi 7540 7541fi 7542 7543 7544 7545 7546 7547# HMS: Save $LIBS and empty it. 7548# any LIBS we add here should go in to LDADD_LIBNTP 7549 7550__LIBS=$LIBS 7551LIBS= 7552 7553 7554 7555 7556 7557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5 7558$as_echo_n "checking for directory path separator... " >&6; } 7559if ${ntp_cv_dir_sep+:} false; then : 7560 $as_echo_n "(cached) " >&6 7561else 7562 7563 case "$ntp_cv_dir_sep" in 7564 '') 7565 case "$target_os" in 7566 *djgpp | *mingw32* | *emx*) 7567 ntp_cv_dir_sep="'\\'" 7568 ;; 7569 *) 7570 ntp_cv_dir_sep="'/'" 7571 ;; 7572 esac 7573 esac 7574 7575 7576fi 7577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5 7578$as_echo "$ntp_cv_dir_sep" >&6; } 7579 7580cat >>confdefs.h <<_ACEOF 7581#define DIR_SEP $ntp_cv_dir_sep 7582_ACEOF 7583 7584 7585 7586 NTP_ORIG_LIBS="$LIBS" 7587 7588# Check whether --with-lineeditlibs was given. 7589if test "${with_lineeditlibs+set}" = set; then : 7590 withval=$with_lineeditlibs; use_lineeditlibs="$withval" 7591else 7592 use_lineeditlibs="edit,editline" 7593 7594fi 7595 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5 7597$as_echo_n "checking line editing libraries... " >&6; } 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5 7599$as_echo "$use_lineeditlibs" >&6; } 7600 case "$use_lineeditlibs" in 7601 no) 7602 ntp_lib_lineedit=no 7603 ;; 7604 *) 7605 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do 7606 for term_lib in "" termcap curses ncurses; do 7607 case "$term_lib" in 7608 '') 7609 TRY_LIB="-l$lineedit_lib" 7610 ;; 7611 *) 7612 TRY_LIB="-l$lineedit_lib -l$term_lib" 7613 ;; 7614 esac 7615 LIBS="$NTP_ORIG_LIBS $TRY_LIB" 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5 7617$as_echo_n "checking for readline() with $TRY_LIB... " >&6; } 7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7619/* end confdefs.h. */ 7620 7621/* Override any GCC internal prototype to avoid an error. 7622 Use char because int might match the return type of a GCC 7623 builtin and then its argument prototype would still apply. */ 7624#ifdef __cplusplus 7625extern "C" 7626#endif 7627char readline (); 7628int 7629main () 7630{ 7631return readline (); 7632 ; 7633 return 0; 7634} 7635_ACEOF 7636if ac_fn_c_try_link "$LINENO"; then : 7637 ntp_lib_lineedit="$TRY_LIB" 7638fi 7639rm -f core conftest.err conftest.$ac_objext \ 7640 conftest$ac_exeext conftest.$ac_ext 7641 case "$ntp_lib_lineedit" in 7642 '') 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7644$as_echo "no" >&6; } 7645 ;; 7646 *) 7647 # Use readline() 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7649$as_echo "yes" >&6; } 7650 break 7651 esac 7652 case "$term_lib" in 7653 '') 7654 # do not try el_gets without a terminal library 7655 ;; 7656 *) 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5 7658$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; } 7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7660/* end confdefs.h. */ 7661 7662/* Override any GCC internal prototype to avoid an error. 7663 Use char because int might match the return type of a GCC 7664 builtin and then its argument prototype would still apply. */ 7665#ifdef __cplusplus 7666extern "C" 7667#endif 7668char el_gets (); 7669int 7670main () 7671{ 7672return el_gets (); 7673 ; 7674 return 0; 7675} 7676_ACEOF 7677if ac_fn_c_try_link "$LINENO"; then : 7678 ntp_lib_lineedit="$TRY_LIB" 7679fi 7680rm -f core conftest.err conftest.$ac_objext \ 7681 conftest$ac_exeext conftest.$ac_ext 7682 case "$ntp_lib_lineedit" in 7683 '') 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7685$as_echo "no" >&6; } 7686 ;; 7687 *) # Use el_gets() 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7689$as_echo "yes" >&6; } 7690 break 7691 ;; 7692 esac # $ntp_lib_lineedit 7693 esac # $term_lib 7694 done 7695 case "$ntp_lib_lineedit" in 7696 '') 7697 ;; 7698 *) 7699 break 7700 ;; 7701 esac 7702 done 7703 LIBS="$NTP_ORIG_LIBS" 7704 ;; 7705 esac # $use_lineeditlibs 7706 7707 case "$ntp_lib_lineedit" in 7708 '') 7709 ntp_lib_lineedit="no" 7710 ;; 7711 no) 7712 ;; 7713 *) 7714 EDITLINE_LIBS="$ntp_lib_lineedit" 7715 7716 ;; 7717 esac # $ntp_lib_lineedit 7718 7719 case "$ntp_lib_lineedit" in 7720 no) 7721 ;; 7722 *) 7723 for ac_header in readline.h readline/readline.h histedit.h 7724do : 7725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7726ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7727if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7728 cat >>confdefs.h <<_ACEOF 7729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7730_ACEOF 7731 7732fi 7733 7734done 7735 7736 for ac_header in history.h readline/history.h 7737do : 7738 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7739ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7740if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7741 cat >>confdefs.h <<_ACEOF 7742#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7743_ACEOF 7744 7745fi 7746 7747done 7748 7749 7750 case "$ac_cv_header_histedit_h" in 7751 yes) 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5 7753$as_echo_n "checking number of arguments to el_init()... " >&6; } 7754if ${ntp_cv_el_init_args+:} false; then : 7755 $as_echo_n "(cached) " >&6 7756else 7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7758/* end confdefs.h. */ 7759 7760 #include <stdio.h> 7761 #include <histedit.h> 7762 7763int 7764main () 7765{ 7766 7767 el_init("conftest", stdin, stdout, stderr); 7768 7769 7770 ; 7771 return 0; 7772} 7773_ACEOF 7774if ac_fn_c_try_compile "$LINENO"; then : 7775 ntp_cv_el_init_args=4 7776else 7777 ntp_cv_el_init_args=3 7778 7779fi 7780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7781 7782fi 7783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5 7784$as_echo "$ntp_cv_el_init_args" >&6; } 7785 7786cat >>confdefs.h <<_ACEOF 7787#define EL_INIT_ARGS $ntp_cv_el_init_args 7788_ACEOF 7789 7790 esac 7791 7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 7793$as_echo_n "checking whether readline supports history... " >&6; } 7794 7795 ntp_lib_lineedit_history="no" 7796 ORIG_LIBS="$LIBS" 7797 LIBS="$ORIG_LIBS $ntp_lib_lineedit" 7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7799/* end confdefs.h. */ 7800 7801/* Override any GCC internal prototype to avoid an error. 7802 Use char because int might match the return type of a GCC 7803 builtin and then its argument prototype would still apply. */ 7804#ifdef __cplusplus 7805extern "C" 7806#endif 7807char add_history (); 7808int 7809main () 7810{ 7811return add_history (); 7812 ; 7813 return 0; 7814} 7815_ACEOF 7816if ac_fn_c_try_link "$LINENO"; then : 7817 ntp_lib_lineedit_history="yes" 7818fi 7819rm -f core conftest.err conftest.$ac_objext \ 7820 conftest$ac_exeext conftest.$ac_ext 7821 LIBS="$ORIG_LIBS" 7822 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5 7824$as_echo "$ntp_lib_lineedit_history" >&6; } 7825 7826 case "$ntp_lib_lineedit_history" in 7827 yes) 7828 7829$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h 7830 7831 esac 7832 esac # $ntp_lib_lineedit 7833 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;} 7834 { ORIG_LIBS=; unset ORIG_LIBS;} 7835 { TRY_LIB=; unset TRY_LIB;} 7836 { use_lineeditlibs=; unset use_lineeditlibs;} 7837 7838 7839LIBM= 7840case "$host" in 7841 *-*-darwin*) 7842 ;; 7843 *) 7844 _libs=$LIBS 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5 7846$as_echo_n "checking for library containing cos... " >&6; } 7847if ${ac_cv_search_cos+:} false; then : 7848 $as_echo_n "(cached) " >&6 7849else 7850 ac_func_search_save_LIBS=$LIBS 7851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7852/* end confdefs.h. */ 7853 7854/* Override any GCC internal prototype to avoid an error. 7855 Use char because int might match the return type of a GCC 7856 builtin and then its argument prototype would still apply. */ 7857#ifdef __cplusplus 7858extern "C" 7859#endif 7860char cos (); 7861int 7862main () 7863{ 7864return cos (); 7865 ; 7866 return 0; 7867} 7868_ACEOF 7869for ac_lib in '' m; do 7870 if test -z "$ac_lib"; then 7871 ac_res="none required" 7872 else 7873 ac_res=-l$ac_lib 7874 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7875 fi 7876 if ac_fn_c_try_link "$LINENO"; then : 7877 ac_cv_search_cos=$ac_res 7878fi 7879rm -f core conftest.err conftest.$ac_objext \ 7880 conftest$ac_exeext 7881 if ${ac_cv_search_cos+:} false; then : 7882 break 7883fi 7884done 7885if ${ac_cv_search_cos+:} false; then : 7886 7887else 7888 ac_cv_search_cos=no 7889fi 7890rm conftest.$ac_ext 7891LIBS=$ac_func_search_save_LIBS 7892fi 7893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5 7894$as_echo "$ac_cv_search_cos" >&6; } 7895ac_res=$ac_cv_search_cos 7896if test "$ac_res" != no; then : 7897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7898 LIBM="-lm" 7899fi 7900 7901 LIBS=$_libs 7902 ;; 7903esac 7904 7905{ _libs=; unset _libs;} 7906 7907 7908for ac_header in vfork.h 7909do : 7910 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 7911if test "x$ac_cv_header_vfork_h" = xyes; then : 7912 cat >>confdefs.h <<_ACEOF 7913#define HAVE_VFORK_H 1 7914_ACEOF 7915 7916fi 7917 7918done 7919 7920for ac_func in fork vfork 7921do : 7922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7923ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7924if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7925 cat >>confdefs.h <<_ACEOF 7926#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7927_ACEOF 7928 7929fi 7930done 7931 7932if test "x$ac_cv_func_fork" = xyes; then 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 7934$as_echo_n "checking for working fork... " >&6; } 7935if ${ac_cv_func_fork_works+:} false; then : 7936 $as_echo_n "(cached) " >&6 7937else 7938 if test "$cross_compiling" = yes; then : 7939 ac_cv_func_fork_works=cross 7940else 7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7942/* end confdefs.h. */ 7943$ac_includes_default 7944int 7945main () 7946{ 7947 7948 /* By Ruediger Kuhlmann. */ 7949 return fork () < 0; 7950 7951 ; 7952 return 0; 7953} 7954_ACEOF 7955if ac_fn_c_try_run "$LINENO"; then : 7956 ac_cv_func_fork_works=yes 7957else 7958 ac_cv_func_fork_works=no 7959fi 7960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7961 conftest.$ac_objext conftest.beam conftest.$ac_ext 7962fi 7963 7964fi 7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 7966$as_echo "$ac_cv_func_fork_works" >&6; } 7967 7968else 7969 ac_cv_func_fork_works=$ac_cv_func_fork 7970fi 7971if test "x$ac_cv_func_fork_works" = xcross; then 7972 case $host in 7973 *-*-amigaos* | *-*-msdosdjgpp*) 7974 # Override, as these systems have only a dummy fork() stub 7975 ac_cv_func_fork_works=no 7976 ;; 7977 *) 7978 ac_cv_func_fork_works=yes 7979 ;; 7980 esac 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 7982$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 7983fi 7984ac_cv_func_vfork_works=$ac_cv_func_vfork 7985if test "x$ac_cv_func_vfork" = xyes; then 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 7987$as_echo_n "checking for working vfork... " >&6; } 7988if ${ac_cv_func_vfork_works+:} false; then : 7989 $as_echo_n "(cached) " >&6 7990else 7991 if test "$cross_compiling" = yes; then : 7992 ac_cv_func_vfork_works=cross 7993else 7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7995/* end confdefs.h. */ 7996/* Thanks to Paul Eggert for this test. */ 7997$ac_includes_default 7998#include <sys/wait.h> 7999#ifdef HAVE_VFORK_H 8000# include <vfork.h> 8001#endif 8002/* On some sparc systems, changes by the child to local and incoming 8003 argument registers are propagated back to the parent. The compiler 8004 is told about this with #include <vfork.h>, but some compilers 8005 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 8006 static variable whose address is put into a register that is 8007 clobbered by the vfork. */ 8008static void 8009#ifdef __cplusplus 8010sparc_address_test (int arg) 8011# else 8012sparc_address_test (arg) int arg; 8013#endif 8014{ 8015 static pid_t child; 8016 if (!child) { 8017 child = vfork (); 8018 if (child < 0) { 8019 perror ("vfork"); 8020 _exit(2); 8021 } 8022 if (!child) { 8023 arg = getpid(); 8024 write(-1, "", 0); 8025 _exit (arg); 8026 } 8027 } 8028} 8029 8030int 8031main () 8032{ 8033 pid_t parent = getpid (); 8034 pid_t child; 8035 8036 sparc_address_test (0); 8037 8038 child = vfork (); 8039 8040 if (child == 0) { 8041 /* Here is another test for sparc vfork register problems. This 8042 test uses lots of local variables, at least as many local 8043 variables as main has allocated so far including compiler 8044 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 8045 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 8046 reuse the register of parent for one of the local variables, 8047 since it will think that parent can't possibly be used any more 8048 in this routine. Assigning to the local variable will thus 8049 munge parent in the parent process. */ 8050 pid_t 8051 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 8052 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 8053 /* Convince the compiler that p..p7 are live; otherwise, it might 8054 use the same hardware register for all 8 local variables. */ 8055 if (p != p1 || p != p2 || p != p3 || p != p4 8056 || p != p5 || p != p6 || p != p7) 8057 _exit(1); 8058 8059 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 8060 from child file descriptors. If the child closes a descriptor 8061 before it execs or exits, this munges the parent's descriptor 8062 as well. Test for this by closing stdout in the child. */ 8063 _exit(close(fileno(stdout)) != 0); 8064 } else { 8065 int status; 8066 struct stat st; 8067 8068 while (wait(&status) != child) 8069 ; 8070 return ( 8071 /* Was there some problem with vforking? */ 8072 child < 0 8073 8074 /* Did the child fail? (This shouldn't happen.) */ 8075 || status 8076 8077 /* Did the vfork/compiler bug occur? */ 8078 || parent != getpid() 8079 8080 /* Did the file descriptor bug occur? */ 8081 || fstat(fileno(stdout), &st) != 0 8082 ); 8083 } 8084} 8085_ACEOF 8086if ac_fn_c_try_run "$LINENO"; then : 8087 ac_cv_func_vfork_works=yes 8088else 8089 ac_cv_func_vfork_works=no 8090fi 8091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8092 conftest.$ac_objext conftest.beam conftest.$ac_ext 8093fi 8094 8095fi 8096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 8097$as_echo "$ac_cv_func_vfork_works" >&6; } 8098 8099fi; 8100if test "x$ac_cv_func_fork_works" = xcross; then 8101 ac_cv_func_vfork_works=$ac_cv_func_vfork 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 8103$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 8104fi 8105 8106if test "x$ac_cv_func_vfork_works" = xyes; then 8107 8108$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 8109 8110else 8111 8112$as_echo "#define vfork fork" >>confdefs.h 8113 8114fi 8115if test "x$ac_cv_func_fork_works" = xyes; then 8116 8117$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 8118 8119fi 8120 8121# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8122# for constant arguments. Useless! 8123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 8124$as_echo_n "checking for working alloca.h... " >&6; } 8125if ${ac_cv_working_alloca_h+:} false; then : 8126 $as_echo_n "(cached) " >&6 8127else 8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8129/* end confdefs.h. */ 8130#include <alloca.h> 8131int 8132main () 8133{ 8134char *p = (char *) alloca (2 * sizeof (int)); 8135 if (p) return 0; 8136 ; 8137 return 0; 8138} 8139_ACEOF 8140if ac_fn_c_try_link "$LINENO"; then : 8141 ac_cv_working_alloca_h=yes 8142else 8143 ac_cv_working_alloca_h=no 8144fi 8145rm -f core conftest.err conftest.$ac_objext \ 8146 conftest$ac_exeext conftest.$ac_ext 8147fi 8148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 8149$as_echo "$ac_cv_working_alloca_h" >&6; } 8150if test $ac_cv_working_alloca_h = yes; then 8151 8152$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 8153 8154fi 8155 8156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 8157$as_echo_n "checking for alloca... " >&6; } 8158if ${ac_cv_func_alloca_works+:} false; then : 8159 $as_echo_n "(cached) " >&6 8160else 8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8162/* end confdefs.h. */ 8163#ifdef __GNUC__ 8164# define alloca __builtin_alloca 8165#else 8166# ifdef _MSC_VER 8167# include <malloc.h> 8168# define alloca _alloca 8169# else 8170# ifdef HAVE_ALLOCA_H 8171# include <alloca.h> 8172# else 8173# ifdef _AIX 8174 #pragma alloca 8175# else 8176# ifndef alloca /* predefined by HP cc +Olibcalls */ 8177void *alloca (size_t); 8178# endif 8179# endif 8180# endif 8181# endif 8182#endif 8183 8184int 8185main () 8186{ 8187char *p = (char *) alloca (1); 8188 if (p) return 0; 8189 ; 8190 return 0; 8191} 8192_ACEOF 8193if ac_fn_c_try_link "$LINENO"; then : 8194 ac_cv_func_alloca_works=yes 8195else 8196 ac_cv_func_alloca_works=no 8197fi 8198rm -f core conftest.err conftest.$ac_objext \ 8199 conftest$ac_exeext conftest.$ac_ext 8200fi 8201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 8202$as_echo "$ac_cv_func_alloca_works" >&6; } 8203 8204if test $ac_cv_func_alloca_works = yes; then 8205 8206$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 8207 8208else 8209 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 8210# that cause trouble. Some versions do not even contain alloca or 8211# contain a buggy version. If you still want to use their alloca, 8212# use ar to extract alloca.o from them instead of compiling alloca.c. 8213 8214ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 8215 8216$as_echo "#define C_ALLOCA 1" >>confdefs.h 8217 8218 8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 8220$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 8221if ${ac_cv_os_cray+:} false; then : 8222 $as_echo_n "(cached) " >&6 8223else 8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8225/* end confdefs.h. */ 8226#if defined CRAY && ! defined CRAY2 8227webecray 8228#else 8229wenotbecray 8230#endif 8231 8232_ACEOF 8233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8234 $EGREP "webecray" >/dev/null 2>&1; then : 8235 ac_cv_os_cray=yes 8236else 8237 ac_cv_os_cray=no 8238fi 8239rm -f conftest* 8240 8241fi 8242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 8243$as_echo "$ac_cv_os_cray" >&6; } 8244if test $ac_cv_os_cray = yes; then 8245 for ac_func in _getb67 GETB67 getb67; do 8246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8247ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8248if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8249 8250cat >>confdefs.h <<_ACEOF 8251#define CRAY_STACKSEG_END $ac_func 8252_ACEOF 8253 8254 break 8255fi 8256 8257 done 8258fi 8259 8260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 8261$as_echo_n "checking stack direction for C alloca... " >&6; } 8262if ${ac_cv_c_stack_direction+:} false; then : 8263 $as_echo_n "(cached) " >&6 8264else 8265 if test "$cross_compiling" = yes; then : 8266 ac_cv_c_stack_direction=0 8267else 8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8269/* end confdefs.h. */ 8270$ac_includes_default 8271int 8272find_stack_direction () 8273{ 8274 static char *addr = 0; 8275 auto char dummy; 8276 if (addr == 0) 8277 { 8278 addr = &dummy; 8279 return find_stack_direction (); 8280 } 8281 else 8282 return (&dummy > addr) ? 1 : -1; 8283} 8284 8285int 8286main () 8287{ 8288 return find_stack_direction () < 0; 8289} 8290_ACEOF 8291if ac_fn_c_try_run "$LINENO"; then : 8292 ac_cv_c_stack_direction=1 8293else 8294 ac_cv_c_stack_direction=-1 8295fi 8296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8297 conftest.$ac_objext conftest.beam conftest.$ac_ext 8298fi 8299 8300fi 8301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 8302$as_echo "$ac_cv_c_stack_direction" >&6; } 8303cat >>confdefs.h <<_ACEOF 8304#define STACK_DIRECTION $ac_cv_c_stack_direction 8305_ACEOF 8306 8307 8308fi 8309 8310ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 8311if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 8312 ac_have_decl=1 8313else 8314 ac_have_decl=0 8315fi 8316 8317cat >>confdefs.h <<_ACEOF 8318#define HAVE_DECL_STRERROR_R $ac_have_decl 8319_ACEOF 8320 8321for ac_func in strerror_r 8322do : 8323 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 8324if test "x$ac_cv_func_strerror_r" = xyes; then : 8325 cat >>confdefs.h <<_ACEOF 8326#define HAVE_STRERROR_R 1 8327_ACEOF 8328 8329fi 8330done 8331 8332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 8333$as_echo_n "checking whether strerror_r returns char *... " >&6; } 8334if ${ac_cv_func_strerror_r_char_p+:} false; then : 8335 $as_echo_n "(cached) " >&6 8336else 8337 8338 ac_cv_func_strerror_r_char_p=no 8339 if test $ac_cv_have_decl_strerror_r = yes; then 8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8341/* end confdefs.h. */ 8342$ac_includes_default 8343int 8344main () 8345{ 8346 8347 char buf[100]; 8348 char x = *strerror_r (0, buf, sizeof buf); 8349 char *p = strerror_r (0, buf, sizeof buf); 8350 return !p || x; 8351 8352 ; 8353 return 0; 8354} 8355_ACEOF 8356if ac_fn_c_try_compile "$LINENO"; then : 8357 ac_cv_func_strerror_r_char_p=yes 8358fi 8359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8360 else 8361 # strerror_r is not declared. Choose between 8362 # systems that have relatively inaccessible declarations for the 8363 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 8364 # former has a strerror_r that returns char*, while the latter 8365 # has a strerror_r that returns `int'. 8366 # This test should segfault on the DEC system. 8367 if test "$cross_compiling" = yes; then : 8368 : 8369else 8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8371/* end confdefs.h. */ 8372$ac_includes_default 8373 extern char *strerror_r (); 8374int 8375main () 8376{ 8377char buf[100]; 8378 char x = *strerror_r (0, buf, sizeof buf); 8379 return ! isalpha (x); 8380 ; 8381 return 0; 8382} 8383_ACEOF 8384if ac_fn_c_try_run "$LINENO"; then : 8385 ac_cv_func_strerror_r_char_p=yes 8386fi 8387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8388 conftest.$ac_objext conftest.beam conftest.$ac_ext 8389fi 8390 8391 fi 8392 8393fi 8394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 8395$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 8396if test $ac_cv_func_strerror_r_char_p = yes; then 8397 8398$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 8399 8400fi 8401 8402 8403ac_busted_vpath_in_make=no 8404case "$build" in 8405 *-*-irix6.1*) # 64 bit only 8406 # busted vpath? 8407 ;; 8408 *-*-irix6*) # 6.2 (and later?) 8409 ac_busted_vpath_in_make=yes 8410 ;; 8411 *-*-solaris2.5.1) 8412 ac_busted_vpath_in_make=yes 8413 ;; 8414 *-*-unicosmp*) 8415 ac_busted_vpath_in_make=yes 8416 ;; 8417esac 8418 8419case "$ac_busted_vpath_in_make$srcdir" in 8420 yes.|no*) 8421 ;; 8422 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in 8423 '') 8424 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5 8425 esac 8426 ;; 8427esac 8428 8429case "$host" in 8430 *-*-aix4*) 8431 # Bug 2516: 8432 # Was *-*-aix[[4-9]]* 8433 # XXX only verified thru AIX6. But... 8434 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason 8435 # that this support would be in 5.3, removed in 6, and added back. 8436 # 8437 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub 8438 # (returning ENOSYS). I didn't check 4.2. If, in the future, 8439 # IBM pulls its thumbs out long enough to implement clock_settime, 8440 # this conditional will need to change. Maybe use AC_TRY_RUN 8441 # instead to try to set the time to itself and check errno. 8442 ;; 8443 *) 8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 8445$as_echo_n "checking for library containing clock_gettime... " >&6; } 8446if ${ac_cv_search_clock_gettime+:} false; then : 8447 $as_echo_n "(cached) " >&6 8448else 8449 ac_func_search_save_LIBS=$LIBS 8450cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8451/* end confdefs.h. */ 8452 8453/* Override any GCC internal prototype to avoid an error. 8454 Use char because int might match the return type of a GCC 8455 builtin and then its argument prototype would still apply. */ 8456#ifdef __cplusplus 8457extern "C" 8458#endif 8459char clock_gettime (); 8460int 8461main () 8462{ 8463return clock_gettime (); 8464 ; 8465 return 0; 8466} 8467_ACEOF 8468for ac_lib in '' rt; do 8469 if test -z "$ac_lib"; then 8470 ac_res="none required" 8471 else 8472 ac_res=-l$ac_lib 8473 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8474 fi 8475 if ac_fn_c_try_link "$LINENO"; then : 8476 ac_cv_search_clock_gettime=$ac_res 8477fi 8478rm -f core conftest.err conftest.$ac_objext \ 8479 conftest$ac_exeext 8480 if ${ac_cv_search_clock_gettime+:} false; then : 8481 break 8482fi 8483done 8484if ${ac_cv_search_clock_gettime+:} false; then : 8485 8486else 8487 ac_cv_search_clock_gettime=no 8488fi 8489rm conftest.$ac_ext 8490LIBS=$ac_func_search_save_LIBS 8491fi 8492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 8493$as_echo "$ac_cv_search_clock_gettime" >&6; } 8494ac_res=$ac_cv_search_clock_gettime 8495if test "$ac_res" != no; then : 8496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8497 case "$ac_cv_search_clock_gettime" in 8498 'none required') ;; 8499 no) ;; 8500 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;; 8501 esac 8502 8503fi 8504 8505 for ac_func in clock_getres clock_gettime clock_settime 8506do : 8507 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8508ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8509if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8510 cat >>confdefs.h <<_ACEOF 8511#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8512_ACEOF 8513 8514fi 8515done 8516 8517 ;; 8518esac 8519 8520for ac_func in getclock stime timegm strlcpy strlcat 8521do : 8522 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8523ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8524if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8525 cat >>confdefs.h <<_ACEOF 8526#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8527_ACEOF 8528 8529fi 8530done 8531 8532 8533# 8534for ac_header in errno.h sys/socket.h sys/types.h time.h 8535do : 8536 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8537ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8538if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8539 cat >>confdefs.h <<_ACEOF 8540#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8541_ACEOF 8542 8543fi 8544 8545done 8546 8547for ac_header in net/if.h 8548do : 8549 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 8550 #ifdef HAVE_SYS_SOCKET_H 8551 # include <sys/socket.h> 8552 #endif 8553 8554" 8555if test "x$ac_cv_header_net_if_h" = xyes; then : 8556 cat >>confdefs.h <<_ACEOF 8557#define HAVE_NET_IF_H 1 8558_ACEOF 8559 8560fi 8561 8562done 8563 8564case "$host" in 8565 *-hp-hpux*) 8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5 8567$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; } 8568if ${ntp_cv_predecl_mpinfou+:} false; then : 8569 $as_echo_n "(cached) " >&6 8570else 8571 8572 np_cv_predecl_mpinfou=no 8573 case "$ac_cv_header_net_if_h" in 8574 no) 8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8576/* end confdefs.h. */ 8577 8578 typedef union mpinfou { 8579 struct pdk_mpinfo *pdkptr; 8580 struct mpinfo *pikptr; 8581 } mpinfou_t; 8582 #ifdef HAVE_SYS_SOCKET_H 8583 # include <sys/socket.h> 8584 #endif 8585 #include <net/if.h> 8586 8587int 8588main () 8589{ 8590 8591 8592 8593 ; 8594 return 0; 8595} 8596_ACEOF 8597if ac_fn_c_try_compile "$LINENO"; then : 8598 8599 ntp_cv_predecl_mpinfou=yes 8600 ac_cv_header_net_if_h=yes 8601 8602 8603fi 8604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8605 esac 8606 8607 8608fi 8609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5 8610$as_echo "$ntp_cv_predecl_mpinfou" >&6; } 8611 case "$ntp_cv_predecl_mpinfou" in 8612 yes) 8613 cat >>confdefs.h <<_ACEOF 8614#ifndef MPINFOU_PREDECLARED 8615# define MPINFOU_PREDECLARED 8616typedef union mpinfou { 8617 struct pdk_mpinfo *pdkptr; 8618 struct mpinfo *pikptr; 8619} mpinfou_t; 8620#endif 8621_ACEOF 8622 8623 esac 8624esac 8625 8626case "$host" in 8627 *-linux*) 8628 for ac_header in linux/if_addr.h 8629do : 8630 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" " 8631 #ifdef HAVE_SYS_SOCKET_H 8632 # include <sys/socket.h> 8633 #endif 8634 8635" 8636if test "x$ac_cv_header_linux_if_addr_h" = xyes; then : 8637 cat >>confdefs.h <<_ACEOF 8638#define HAVE_LINUX_IF_ADDR_H 1 8639_ACEOF 8640 8641fi 8642 8643done 8644 8645esac 8646 8647for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h 8648do : 8649 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8650ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8651if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8652 cat >>confdefs.h <<_ACEOF 8653#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8654_ACEOF 8655 8656fi 8657 8658done 8659 8660# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576 8661for ac_header in sys/sysctl.h 8662do : 8663 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 8664 #if defined HAVE_SYS_PARAM_H 8665 # include <sys/param.h> 8666 #endif 8667 8668" 8669if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 8670 cat >>confdefs.h <<_ACEOF 8671#define HAVE_SYS_SYSCTL_H 1 8672_ACEOF 8673 8674fi 8675 8676done 8677 8678for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h 8679do : 8680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8681ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8682if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8683 cat >>confdefs.h <<_ACEOF 8684#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8685_ACEOF 8686 8687fi 8688 8689done 8690 8691 8692for ac_header in resolv.h 8693do : 8694 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " 8695 #ifdef HAVE_SYS_TYPES_H 8696 # include <sys/types.h> 8697 #endif 8698 #ifdef HAVE_NETINET_IN_H 8699 # include <netinet/in.h> 8700 #endif 8701 #ifdef HAVE_ARPA_NAMESER_H 8702 # include <arpa/nameser.h> 8703 #endif 8704 8705" 8706if test "x$ac_cv_header_resolv_h" = xyes; then : 8707 cat >>confdefs.h <<_ACEOF 8708#define HAVE_RESOLV_H 1 8709_ACEOF 8710 8711fi 8712 8713done 8714 8715 8716for ac_header in net/if_var.h 8717do : 8718 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" " 8719 #if HAVE_SYS_TYPES_H 8720 # include <sys/types.h> 8721 #endif 8722 #ifdef HAVE_SYS_SOCKET_H 8723 # include <sys/socket.h> 8724 #endif 8725 #ifdef HAVE_NETINET_IN_H 8726 # include <netinet/in.h> 8727 #endif 8728 #ifdef HAVE_NET_IF_H 8729 # include <net/if.h> 8730 #endif 8731 8732" 8733if test "x$ac_cv_header_net_if_var_h" = xyes; then : 8734 cat >>confdefs.h <<_ACEOF 8735#define HAVE_NET_IF_VAR_H 1 8736_ACEOF 8737 8738fi 8739 8740done 8741 8742 8743for ac_header in netinet/ip.h netinet/in_var.h 8744do : 8745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8746ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 8747 #ifdef HAVE_SYS_TYPES_H 8748 # include <sys/types.h> 8749 #endif 8750 #ifdef HAVE_SYS_SOCKET_H 8751 # include <sys/socket.h> 8752 #endif 8753 #ifdef HAVE_NET_IF_H 8754 # include <net/if.h> 8755 #endif 8756 #ifdef HAVE_NETINET_IN_H 8757 # include <netinet/in.h> 8758 #endif 8759 #ifdef HAVE_NET_IF_VAR_H 8760 # include <net/if_var.h> 8761 #endif 8762 #ifdef HAVE_NETINET_IN_SYSTM_H 8763 # include <netinet/in_systm.h> 8764 #endif 8765 8766" 8767if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8768 cat >>confdefs.h <<_ACEOF 8769#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8770_ACEOF 8771 8772fi 8773 8774done 8775 8776 8777# HMS: Do we need to check for -lsocket before or after these tests? 8778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 8779$as_echo_n "checking for library containing inet_pton... " >&6; } 8780if ${ac_cv_search_inet_pton+:} false; then : 8781 $as_echo_n "(cached) " >&6 8782else 8783 ac_func_search_save_LIBS=$LIBS 8784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8785/* end confdefs.h. */ 8786 8787/* Override any GCC internal prototype to avoid an error. 8788 Use char because int might match the return type of a GCC 8789 builtin and then its argument prototype would still apply. */ 8790#ifdef __cplusplus 8791extern "C" 8792#endif 8793char inet_pton (); 8794int 8795main () 8796{ 8797return inet_pton (); 8798 ; 8799 return 0; 8800} 8801_ACEOF 8802for ac_lib in '' nsl; do 8803 if test -z "$ac_lib"; then 8804 ac_res="none required" 8805 else 8806 ac_res=-l$ac_lib 8807 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8808 fi 8809 if ac_fn_c_try_link "$LINENO"; then : 8810 ac_cv_search_inet_pton=$ac_res 8811fi 8812rm -f core conftest.err conftest.$ac_objext \ 8813 conftest$ac_exeext 8814 if ${ac_cv_search_inet_pton+:} false; then : 8815 break 8816fi 8817done 8818if ${ac_cv_search_inet_pton+:} false; then : 8819 8820else 8821 ac_cv_search_inet_pton=no 8822fi 8823rm conftest.$ac_ext 8824LIBS=$ac_func_search_save_LIBS 8825fi 8826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 8827$as_echo "$ac_cv_search_inet_pton" >&6; } 8828ac_res=$ac_cv_search_inet_pton 8829if test "$ac_res" != no; then : 8830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8831 case "$ac_cv_search_inet_pton" in 8832 'none required') ;; 8833 no) ;; 8834 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;; 8835 esac 8836 8837fi 8838 8839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 8840$as_echo_n "checking for library containing inet_ntop... " >&6; } 8841if ${ac_cv_search_inet_ntop+:} false; then : 8842 $as_echo_n "(cached) " >&6 8843else 8844 ac_func_search_save_LIBS=$LIBS 8845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8846/* end confdefs.h. */ 8847 8848/* Override any GCC internal prototype to avoid an error. 8849 Use char because int might match the return type of a GCC 8850 builtin and then its argument prototype would still apply. */ 8851#ifdef __cplusplus 8852extern "C" 8853#endif 8854char inet_ntop (); 8855int 8856main () 8857{ 8858return inet_ntop (); 8859 ; 8860 return 0; 8861} 8862_ACEOF 8863for ac_lib in '' resolv; do 8864 if test -z "$ac_lib"; then 8865 ac_res="none required" 8866 else 8867 ac_res=-l$ac_lib 8868 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS" 8869 fi 8870 if ac_fn_c_try_link "$LINENO"; then : 8871 ac_cv_search_inet_ntop=$ac_res 8872fi 8873rm -f core conftest.err conftest.$ac_objext \ 8874 conftest$ac_exeext 8875 if ${ac_cv_search_inet_ntop+:} false; then : 8876 break 8877fi 8878done 8879if ${ac_cv_search_inet_ntop+:} false; then : 8880 8881else 8882 ac_cv_search_inet_ntop=no 8883fi 8884rm conftest.$ac_ext 8885LIBS=$ac_func_search_save_LIBS 8886fi 8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 8888$as_echo "$ac_cv_search_inet_ntop" >&6; } 8889ac_res=$ac_cv_search_inet_ntop 8890if test "$ac_res" != no; then : 8891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8892 case "$ac_cv_search_inet_ntop" in 8893 'none required') ;; 8894 no) ;; 8895 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;; 8896 esac 8897 8898fi 8899 8900 8901# [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to 8902# avoid keying on the OS name: If we find socket functions in 8903# libsocket, next try for them in libxnet without libsocket, if found, 8904# list both. If we simply tested libxnet first, we would find the 8905# functions there and never add libsocket. See also [Bug 660] 8906# http://bugs.ntp.org/show_bug.cgi?id=660#c9 8907saved_LIBS=$LIBS 8908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 8909$as_echo_n "checking for library containing setsockopt... " >&6; } 8910if ${ac_cv_search_setsockopt+:} false; then : 8911 $as_echo_n "(cached) " >&6 8912else 8913 ac_func_search_save_LIBS=$LIBS 8914cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8915/* end confdefs.h. */ 8916 8917/* Override any GCC internal prototype to avoid an error. 8918 Use char because int might match the return type of a GCC 8919 builtin and then its argument prototype would still apply. */ 8920#ifdef __cplusplus 8921extern "C" 8922#endif 8923char setsockopt (); 8924int 8925main () 8926{ 8927return setsockopt (); 8928 ; 8929 return 0; 8930} 8931_ACEOF 8932for ac_lib in '' socket; do 8933 if test -z "$ac_lib"; then 8934 ac_res="none required" 8935 else 8936 ac_res=-l$ac_lib 8937 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8938 fi 8939 if ac_fn_c_try_link "$LINENO"; then : 8940 ac_cv_search_setsockopt=$ac_res 8941fi 8942rm -f core conftest.err conftest.$ac_objext \ 8943 conftest$ac_exeext 8944 if ${ac_cv_search_setsockopt+:} false; then : 8945 break 8946fi 8947done 8948if ${ac_cv_search_setsockopt+:} false; then : 8949 8950else 8951 ac_cv_search_setsockopt=no 8952fi 8953rm conftest.$ac_ext 8954LIBS=$ac_func_search_save_LIBS 8955fi 8956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 8957$as_echo "$ac_cv_search_setsockopt" >&6; } 8958ac_res=$ac_cv_search_setsockopt 8959if test "$ac_res" != no; then : 8960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8961 case "$ac_cv_search_setsockopt" in 8962 'none required') ;; 8963 no) ;; 8964 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;; 8965 esac 8966 8967fi 8968 8969case "$ac_cv_search_setsockopt" in 8970 -lsocket) 8971 LIBS="$saved_LIBS" 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5 8973$as_echo_n "checking for library containing getsockopt... " >&6; } 8974if ${ac_cv_search_getsockopt+:} false; then : 8975 $as_echo_n "(cached) " >&6 8976else 8977 ac_func_search_save_LIBS=$LIBS 8978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8979/* end confdefs.h. */ 8980 8981/* Override any GCC internal prototype to avoid an error. 8982 Use char because int might match the return type of a GCC 8983 builtin and then its argument prototype would still apply. */ 8984#ifdef __cplusplus 8985extern "C" 8986#endif 8987char getsockopt (); 8988int 8989main () 8990{ 8991return getsockopt (); 8992 ; 8993 return 0; 8994} 8995_ACEOF 8996for ac_lib in '' xnet; do 8997 if test -z "$ac_lib"; then 8998 ac_res="none required" 8999 else 9000 ac_res=-l$ac_lib 9001 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9002 fi 9003 if ac_fn_c_try_link "$LINENO"; then : 9004 ac_cv_search_getsockopt=$ac_res 9005fi 9006rm -f core conftest.err conftest.$ac_objext \ 9007 conftest$ac_exeext 9008 if ${ac_cv_search_getsockopt+:} false; then : 9009 break 9010fi 9011done 9012if ${ac_cv_search_getsockopt+:} false; then : 9013 9014else 9015 ac_cv_search_getsockopt=no 9016fi 9017rm conftest.$ac_ext 9018LIBS=$ac_func_search_save_LIBS 9019fi 9020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5 9021$as_echo "$ac_cv_search_getsockopt" >&6; } 9022ac_res=$ac_cv_search_getsockopt 9023if test "$ac_res" != no; then : 9024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9025 case "$ac_cv_search_getsockopt" in 9026 'none required') ;; 9027 no) ;; 9028 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;; 9029 esac 9030 9031fi 9032 9033 # XXX Possible trouble here - reading the comments above and looking at the 9034 # code below I wonder if we'll add -lxnet when we don't need it. 9035 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's 9036 # there when it is not needed? 9037 case "$ac_cv_search_getsockopt" in 9038 -lxnet) 9039 LIBS="-lxnet -lsocket $saved_LIBS" 9040 ;; 9041 *) LIBS="-lsocket $saved_LIBS" 9042 ;; 9043 esac 9044 ;; 9045esac 9046{ saved_LIBS=; unset saved_LIBS;} 9047 9048# Bug 2427 - look for recvmsg here. 9049for ac_func in recvmsg 9050do : 9051 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 9052if test "x$ac_cv_func_recvmsg" = xyes; then : 9053 cat >>confdefs.h <<_ACEOF 9054#define HAVE_RECVMSG 1 9055_ACEOF 9056 9057fi 9058done 9059 9060 9061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 9062$as_echo_n "checking for inline... " >&6; } 9063if ${ac_cv_c_inline+:} false; then : 9064 $as_echo_n "(cached) " >&6 9065else 9066 ac_cv_c_inline=no 9067for ac_kw in inline __inline__ __inline; do 9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9069/* end confdefs.h. */ 9070#ifndef __cplusplus 9071typedef int foo_t; 9072static $ac_kw foo_t static_foo () {return 0; } 9073$ac_kw foo_t foo () {return 0; } 9074#endif 9075 9076_ACEOF 9077if ac_fn_c_try_compile "$LINENO"; then : 9078 ac_cv_c_inline=$ac_kw 9079fi 9080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9081 test "$ac_cv_c_inline" != no && break 9082done 9083 9084fi 9085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 9086$as_echo "$ac_cv_c_inline" >&6; } 9087 9088case $ac_cv_c_inline in 9089 inline | yes) ;; 9090 *) 9091 case $ac_cv_c_inline in 9092 no) ac_val=;; 9093 *) ac_val=$ac_cv_c_inline;; 9094 esac 9095 cat >>confdefs.h <<_ACEOF 9096#ifndef __cplusplus 9097#define inline $ac_val 9098#endif 9099_ACEOF 9100 ;; 9101esac 9102 9103 9104case "$ac_cv_c_inline" in 9105 '') 9106 ;; 9107 *) 9108 9109$as_echo "#define HAVE_INLINE 1" >>confdefs.h 9110 9111 9112esac 9113 9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 9115$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 9116if ${ac_cv_header_time+:} false; then : 9117 $as_echo_n "(cached) " >&6 9118else 9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9120/* end confdefs.h. */ 9121#include <sys/types.h> 9122#include <sys/time.h> 9123#include <time.h> 9124 9125int 9126main () 9127{ 9128if ((struct tm *) 0) 9129return 0; 9130 ; 9131 return 0; 9132} 9133_ACEOF 9134if ac_fn_c_try_compile "$LINENO"; then : 9135 ac_cv_header_time=yes 9136else 9137 ac_cv_header_time=no 9138fi 9139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9140fi 9141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 9142$as_echo "$ac_cv_header_time" >&6; } 9143if test $ac_cv_header_time = yes; then 9144 9145$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 9146 9147fi 9148 9149# The cast to long int works around a bug in the HP C Compiler 9150# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9151# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9152# This bug is HP SR number 8606223364. 9153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 9154$as_echo_n "checking size of time_t... " >&6; } 9155if ${ac_cv_sizeof_time_t+:} false; then : 9156 $as_echo_n "(cached) " >&6 9157else 9158 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 9159 9160else 9161 if test "$ac_cv_type_time_t" = yes; then 9162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9164as_fn_error 77 "cannot compute sizeof (time_t) 9165See \`config.log' for more details" "$LINENO" 5; } 9166 else 9167 ac_cv_sizeof_time_t=0 9168 fi 9169fi 9170 9171fi 9172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 9173$as_echo "$ac_cv_sizeof_time_t" >&6; } 9174 9175 9176 9177cat >>confdefs.h <<_ACEOF 9178#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 9179_ACEOF 9180 9181 9182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 9183$as_echo_n "checking whether char is unsigned... " >&6; } 9184if ${ac_cv_c_char_unsigned+:} false; then : 9185 $as_echo_n "(cached) " >&6 9186else 9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9188/* end confdefs.h. */ 9189$ac_includes_default 9190int 9191main () 9192{ 9193static int test_array [1 - 2 * !(((char) -1) < 0)]; 9194test_array [0] = 0 9195 9196 ; 9197 return 0; 9198} 9199_ACEOF 9200if ac_fn_c_try_compile "$LINENO"; then : 9201 ac_cv_c_char_unsigned=no 9202else 9203 ac_cv_c_char_unsigned=yes 9204fi 9205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9206fi 9207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 9208$as_echo "$ac_cv_c_char_unsigned" >&6; } 9209if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 9210 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 9211 9212fi 9213 # The cast to long int works around a bug in the HP C Compiler 9214# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9215# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9216# This bug is HP SR number 8606223364. 9217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5 9218$as_echo_n "checking size of signed char... " >&6; } 9219if ${ac_cv_sizeof_signed_char+:} false; then : 9220 $as_echo_n "(cached) " >&6 9221else 9222 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then : 9223 9224else 9225 if test "$ac_cv_type_signed_char" = yes; then 9226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9228as_fn_error 77 "cannot compute sizeof (signed char) 9229See \`config.log' for more details" "$LINENO" 5; } 9230 else 9231 ac_cv_sizeof_signed_char=0 9232 fi 9233fi 9234 9235fi 9236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5 9237$as_echo "$ac_cv_sizeof_signed_char" >&6; } 9238 9239 9240 9241cat >>confdefs.h <<_ACEOF 9242#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 9243_ACEOF 9244 9245 9246ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default" 9247if test "x$ac_cv_type_s_char" = xyes; then : 9248 9249cat >>confdefs.h <<_ACEOF 9250#define HAVE_S_CHAR 1 9251_ACEOF 9252 9253 9254fi 9255ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 9256if test "x$ac_cv_type_long_long" = xyes; then : 9257 9258cat >>confdefs.h <<_ACEOF 9259#define HAVE_LONG_LONG 1 9260_ACEOF 9261 9262 9263fi 9264 9265# The cast to long int works around a bug in the HP C Compiler 9266# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9267# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9268# This bug is HP SR number 8606223364. 9269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 9270$as_echo_n "checking size of short... " >&6; } 9271if ${ac_cv_sizeof_short+:} false; then : 9272 $as_echo_n "(cached) " >&6 9273else 9274 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 9275 9276else 9277 if test "$ac_cv_type_short" = yes; then 9278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9280as_fn_error 77 "cannot compute sizeof (short) 9281See \`config.log' for more details" "$LINENO" 5; } 9282 else 9283 ac_cv_sizeof_short=0 9284 fi 9285fi 9286 9287fi 9288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 9289$as_echo "$ac_cv_sizeof_short" >&6; } 9290 9291 9292 9293cat >>confdefs.h <<_ACEOF 9294#define SIZEOF_SHORT $ac_cv_sizeof_short 9295_ACEOF 9296 9297 9298# The cast to long int works around a bug in the HP C Compiler 9299# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9300# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9301# This bug is HP SR number 8606223364. 9302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 9303$as_echo_n "checking size of int... " >&6; } 9304if ${ac_cv_sizeof_int+:} false; then : 9305 $as_echo_n "(cached) " >&6 9306else 9307 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 9308 9309else 9310 if test "$ac_cv_type_int" = yes; then 9311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9313as_fn_error 77 "cannot compute sizeof (int) 9314See \`config.log' for more details" "$LINENO" 5; } 9315 else 9316 ac_cv_sizeof_int=0 9317 fi 9318fi 9319 9320fi 9321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 9322$as_echo "$ac_cv_sizeof_int" >&6; } 9323 9324 9325 9326cat >>confdefs.h <<_ACEOF 9327#define SIZEOF_INT $ac_cv_sizeof_int 9328_ACEOF 9329 9330 9331# The cast to long int works around a bug in the HP C Compiler 9332# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9333# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9334# This bug is HP SR number 8606223364. 9335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 9336$as_echo_n "checking size of long... " >&6; } 9337if ${ac_cv_sizeof_long+:} false; then : 9338 $as_echo_n "(cached) " >&6 9339else 9340 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 9341 9342else 9343 if test "$ac_cv_type_long" = yes; then 9344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9346as_fn_error 77 "cannot compute sizeof (long) 9347See \`config.log' for more details" "$LINENO" 5; } 9348 else 9349 ac_cv_sizeof_long=0 9350 fi 9351fi 9352 9353fi 9354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 9355$as_echo "$ac_cv_sizeof_long" >&6; } 9356 9357 9358 9359cat >>confdefs.h <<_ACEOF 9360#define SIZEOF_LONG $ac_cv_sizeof_long 9361_ACEOF 9362 9363 9364 9365case "$ac_cv_type_long_long" in 9366 no) 9367 ;; 9368 *) 9369 # The cast to long int works around a bug in the HP C Compiler 9370# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9371# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9372# This bug is HP SR number 8606223364. 9373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 9374$as_echo_n "checking size of long long... " >&6; } 9375if ${ac_cv_sizeof_long_long+:} false; then : 9376 $as_echo_n "(cached) " >&6 9377else 9378 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 9379 9380else 9381 if test "$ac_cv_type_long_long" = yes; then 9382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9384as_fn_error 77 "cannot compute sizeof (long long) 9385See \`config.log' for more details" "$LINENO" 5; } 9386 else 9387 ac_cv_sizeof_long_long=0 9388 fi 9389fi 9390 9391fi 9392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 9393$as_echo "$ac_cv_sizeof_long_long" >&6; } 9394 9395 9396 9397cat >>confdefs.h <<_ACEOF 9398#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 9399_ACEOF 9400 9401 9402 ;; 9403esac 9404 9405case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in 9406 *yes) 9407 # We have a typedef for s_char. Might as well believe it... 9408 ;; 9409 no0no) 9410 # We have signed chars, can't say 'signed char', no s_char typedef. 9411 9412$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 9413 9414 ;; 9415 no1no) 9416 # We have signed chars, can say 'signed char', no s_char typedef. 9417 9418$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 9419 9420 ;; 9421 yes0no) 9422 # We have unsigned chars, can't say 'signed char', no s_char typedef. 9423 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5 9424 ;; 9425 yes1no) 9426 # We have unsigned chars, can say 'signed char', no s_char typedef. 9427 9428$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 9429 9430 ;; 9431esac 9432 9433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 9434$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 9435if ${ac_cv_type_uid_t+:} false; then : 9436 $as_echo_n "(cached) " >&6 9437else 9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9439/* end confdefs.h. */ 9440#include <sys/types.h> 9441 9442_ACEOF 9443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9444 $EGREP "uid_t" >/dev/null 2>&1; then : 9445 ac_cv_type_uid_t=yes 9446else 9447 ac_cv_type_uid_t=no 9448fi 9449rm -f conftest* 9450 9451fi 9452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 9453$as_echo "$ac_cv_type_uid_t" >&6; } 9454if test $ac_cv_type_uid_t = no; then 9455 9456$as_echo "#define uid_t int" >>confdefs.h 9457 9458 9459$as_echo "#define gid_t int" >>confdefs.h 9460 9461fi 9462 9463 9464 9465 9466 9467 9468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5 9469$as_echo_n "checking if we're including debugging code... " >&6; } 9470# Check whether --enable-debugging was given. 9471if test "${enable_debugging+set}" = set; then : 9472 enableval=$enable_debugging; ntp_ok=$enableval 9473else 9474 ntp_ok=yes 9475 9476fi 9477 9478case "$ntp_ok" in 9479 yes) 9480 9481$as_echo "#define DEBUG 1" >>confdefs.h 9482 9483esac 9484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 9485$as_echo "$ntp_ok" >&6; } 9486 9487 9488 9489# check if we can compile with pthreads 9490for ac_header in semaphore.h 9491do : 9492 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" 9493if test "x$ac_cv_header_semaphore_h" = xyes; then : 9494 cat >>confdefs.h <<_ACEOF 9495#define HAVE_SEMAPHORE_H 1 9496_ACEOF 9497 9498fi 9499 9500done 9501 9502for ac_func in socketpair 9503do : 9504 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" 9505if test "x$ac_cv_func_socketpair" = xyes; then : 9506 cat >>confdefs.h <<_ACEOF 9507#define HAVE_SOCKETPAIR 1 9508_ACEOF 9509 9510fi 9511done 9512 9513# Check whether --enable-thread-support was given. 9514if test "${enable_thread_support+set}" = set; then : 9515 enableval=$enable_thread_support; 9516else 9517 enable_thread_support=yes 9518 9519fi 9520 9521have_pthreads=no 9522case "$enable_thread_support" in 9523 yes) 9524 ol_found_pthreads=no 9525 9526 9527 9528ac_ext=c 9529ac_cpp='$CPP $CPPFLAGS' 9530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9532ac_compiler_gnu=$ac_cv_c_compiler_gnu 9533 9534# OpenLDAP --with-threads 9535 9536# Check whether --with-threads was given. 9537if test "${with_threads+set}" = set; then : 9538 withval=$with_threads; 9539 ol_arg=invalid 9540 for ol_val in auto nt posix mach pth lwp yes no manual ; do 9541 if test "$withval" = "$ol_val" ; then 9542 ol_arg="$ol_val" 9543 fi 9544 done 9545 if test "$ol_arg" = "invalid" ; then 9546 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5 9547 fi 9548 ol_with_threads="$ol_arg" 9549 9550else 9551 ol_with_threads="auto" 9552fi 9553# end --with-threads 9554 9555 9556case "$ol_with_threads$host" in 9557 auto*-*-solaris2.[0-6]) 9558 ol_with_threads=no 9559 ;; 9560esac 9561 9562 9563ol_aix_threads=no 9564case "$host" in 9565*-*-aix*) if test -z "$CC" ; then 9566 case "$ol_with_threads" in 9567 auto | yes | posix) ol_aix_threads=yes ;; 9568 esac 9569 fi 9570;; 9571esac 9572 9573if test $ol_aix_threads = yes ; then 9574 if test -z "${CC}" ; then 9575 for ac_prog in cc_r xlc_r cc 9576do 9577 # Extract the first word of "$ac_prog", so it can be a program name with args. 9578set dummy $ac_prog; ac_word=$2 9579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9580$as_echo_n "checking for $ac_word... " >&6; } 9581if ${ac_cv_prog_CC+:} false; then : 9582 $as_echo_n "(cached) " >&6 9583else 9584 if test -n "$CC"; then 9585 ac_cv_prog_CC="$CC" # Let the user override the test. 9586else 9587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9588for as_dir in $PATH 9589do 9590 IFS=$as_save_IFS 9591 test -z "$as_dir" && as_dir=. 9592 for ac_exec_ext in '' $ac_executable_extensions; do 9593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9594 ac_cv_prog_CC="$ac_prog" 9595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9596 break 2 9597 fi 9598done 9599 done 9600IFS=$as_save_IFS 9601 9602fi 9603fi 9604CC=$ac_cv_prog_CC 9605if test -n "$CC"; then 9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 9607$as_echo "$CC" >&6; } 9608else 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9610$as_echo "no" >&6; } 9611fi 9612 9613 9614 test -n "$CC" && break 9615done 9616 9617 9618 if test "$CC" = cc ; then 9619 if test $ol_with_threads != auto ; then 9620 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5 9621 else 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5 9623$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;} 9624 fi 9625 ol_with_threads=no 9626 fi 9627 fi 9628 9629 case ${CC} in cc_r | xlc_r) 9630 ol_with_threads=posix 9631 ol_cv_pthread_create=yes 9632 ;; 9633 esac 9634fi 9635 9636ol_link_threads=no 9637ol_with_yielding_select=${ol_with_yielding_select-auto} 9638 9639case $ol_with_threads in auto | yes | nt) 9640 9641 9642 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread" 9643if test "x$ac_cv_func__beginthread" = xyes; then : 9644 9645fi 9646 9647 9648 if test $ac_cv_func__beginthread = yes ; then 9649 9650$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h 9651 9652 ol_cv_nt_threads=yes 9653 fi 9654 9655 9656 if test "$ol_cv_nt_threads" = yes ; then 9657 ol_link_threads=nt 9658 ol_with_threads=found 9659 ol_with_yielding_select=yes 9660 9661 9662$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h 9663 9664 9665$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h 9666 9667 fi 9668 9669 if test $ol_with_threads = nt ; then 9670 as_fn_error $? "could not locate NT Threads" "$LINENO" 5 9671 fi 9672 ;; 9673esac 9674 9675case $ol_with_threads in auto | yes | posix) 9676 9677 for ac_header in pthread.h 9678do : 9679 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 9680if test "x$ac_cv_header_pthread_h" = xyes; then : 9681 cat >>confdefs.h <<_ACEOF 9682#define HAVE_PTHREAD_H 1 9683_ACEOF 9684 9685fi 9686 9687done 9688 9689 9690 if test $ac_cv_header_pthread_h = yes ; then 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5 9692$as_echo_n "checking POSIX thread version... " >&6; } 9693if ${ol_cv_pthread_version+:} false; then : 9694 $as_echo_n "(cached) " >&6 9695else 9696 9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9698/* end confdefs.h. */ 9699 9700# include <pthread.h> 9701 9702int 9703main () 9704{ 9705 9706 int i = PTHREAD_CREATE_JOINABLE; 9707 9708 ; 9709 return 0; 9710} 9711_ACEOF 9712if ac_fn_c_try_compile "$LINENO"; then : 9713 9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9715/* end confdefs.h. */ 9716#include <pthread.h> 9717 9718_ACEOF 9719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9720 $EGREP "pthread_detach" >/dev/null 2>&1; then : 9721 ol_cv_pthread_version=10 9722else 9723 ol_cv_pthread_version=8 9724fi 9725rm -f conftest* 9726 9727else 9728 9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9730/* end confdefs.h. */ 9731 9732# include <pthread.h> 9733# ifdef PTHREAD_CREATE_UNDETACHED 9734 draft7 9735# endif 9736 9737_ACEOF 9738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9739 $EGREP "draft7" >/dev/null 2>&1; then : 9740 ol_cv_pthread_version=7 9741else 9742 9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9744/* end confdefs.h. */ 9745#include <pthread.h> 9746 9747_ACEOF 9748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9749 $EGREP "pthread_attr_init" >/dev/null 2>&1; then : 9750 ol_cv_pthread_version=6 9751else 9752 9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9754/* end confdefs.h. */ 9755 9756# include <pthread.h> 9757#ifdef PTHREAD_MUTEX_INITIALIZER 9758 draft5 9759#endif 9760 9761_ACEOF 9762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9763 $EGREP "draft5" >/dev/null 2>&1; then : 9764 ol_cv_pthread_version=5 9765else 9766 ol_cv_pthread_version=4 9767fi 9768rm -f conftest* 9769 9770fi 9771rm -f conftest* 9772 9773fi 9774rm -f conftest* 9775 9776fi 9777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9778 9779fi 9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5 9781$as_echo "$ol_cv_pthread_version" >&6; } 9782 9783 9784 if test $ol_cv_pthread_version != 0 ; then 9785 9786cat >>confdefs.h <<_ACEOF 9787#define HAVE_PTHREADS $ol_cv_pthread_version 9788_ACEOF 9789 9790 else 9791 as_fn_error $? "unknown pthread version" "$LINENO" 5 9792 fi 9793 9794 # consider threads found 9795 ol_with_threads=found 9796 9797 9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 9799$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 9800if ${ol_cv_header_linux_threads+:} false; then : 9801 $as_echo_n "(cached) " >&6 9802else 9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9804/* end confdefs.h. */ 9805#include <pthread.h> 9806_ACEOF 9807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9808 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 9809 ol_cv_header_linux_threads=yes 9810else 9811 ol_cv_header_linux_threads=no 9812fi 9813rm -f conftest* 9814 9815 9816fi 9817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 9818$as_echo "$ol_cv_header_linux_threads" >&6; } 9819 if test $ol_cv_header_linux_threads = yes; then 9820 9821$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 9822 9823 fi 9824 9825 9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5 9827$as_echo_n "checking for GNU Pth pthread.h... " >&6; } 9828if ${ol_cv_header_gnu_pth_pthread_h+:} false; then : 9829 $as_echo_n "(cached) " >&6 9830else 9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9832/* end confdefs.h. */ 9833#include <pthread.h> 9834#ifdef _POSIX_THREAD_IS_GNU_PTH 9835 __gnu_pth__; 9836#endif 9837 9838_ACEOF 9839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9840 $EGREP "__gnu_pth__" >/dev/null 2>&1; then : 9841 ol_cv_header_gnu_pth_pthread_h=yes 9842else 9843 ol_cv_header_gnu_pth_pthread_h=no 9844fi 9845rm -f conftest* 9846 9847 9848fi 9849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5 9850$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; } 9851 9852 9853 if test $ol_cv_header_gnu_pth_pthread_h = no ; then 9854 for ac_header in sched.h 9855do : 9856 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 9857if test "x$ac_cv_header_sched_h" = xyes; then : 9858 cat >>confdefs.h <<_ACEOF 9859#define HAVE_SCHED_H 1 9860_ACEOF 9861 9862fi 9863 9864done 9865 9866 fi 9867 9868 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5 9870$as_echo_n "checking for pthread_create in default libraries... " >&6; } 9871if ${ol_cv_pthread_create+:} false; then : 9872 $as_echo_n "(cached) " >&6 9873else 9874 9875 if test "$cross_compiling" = yes; then : 9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9877/* end confdefs.h. */ 9878 9879/* pthread test headers */ 9880#include <pthread.h> 9881#if HAVE_PTHREADS < 7 9882#include <errno.h> 9883#endif 9884#ifndef NULL 9885#define NULL (void*)0 9886#endif 9887 9888static void *task(p) 9889 void *p; 9890{ 9891 return (void *) (p == NULL); 9892} 9893 9894int 9895main () 9896{ 9897 9898 /* pthread test function */ 9899#ifndef PTHREAD_CREATE_DETACHED 9900#define PTHREAD_CREATE_DETACHED 1 9901#endif 9902 pthread_t t; 9903 int status; 9904 int detach = PTHREAD_CREATE_DETACHED; 9905 9906#if HAVE_PTHREADS > 4 9907 /* Final pthreads */ 9908 pthread_attr_t attr; 9909 9910 status = pthread_attr_init(&attr); 9911 if( status ) return status; 9912 9913#if HAVE_PTHREADS < 7 9914 status = pthread_attr_setdetachstate(&attr, &detach); 9915 if( status < 0 ) status = errno; 9916#else 9917 status = pthread_attr_setdetachstate(&attr, detach); 9918#endif 9919 if( status ) return status; 9920 status = pthread_create( &t, &attr, task, NULL ); 9921#if HAVE_PTHREADS < 7 9922 if( status < 0 ) status = errno; 9923#endif 9924 if( status ) return status; 9925#else 9926 /* Draft 4 pthreads */ 9927 status = pthread_create( &t, pthread_attr_default, task, NULL ); 9928 if( status ) return errno; 9929 9930 /* give thread a chance to complete */ 9931 /* it should remain joinable and hence detachable */ 9932 sleep( 1 ); 9933 9934 status = pthread_detach( &t ); 9935 if( status ) return errno; 9936#endif 9937 9938#ifdef HAVE_LINUX_THREADS 9939 pthread_kill_other_threads_np(); 9940#endif 9941 9942 return 0; 9943 9944 ; 9945 return 0; 9946} 9947_ACEOF 9948if ac_fn_c_try_link "$LINENO"; then : 9949 ol_cv_pthread_create=yes 9950else 9951 ol_cv_pthread_create=no 9952fi 9953rm -f core conftest.err conftest.$ac_objext \ 9954 conftest$ac_exeext conftest.$ac_ext 9955else 9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9957/* end confdefs.h. */ 9958 9959 9960/* pthread test headers */ 9961#include <pthread.h> 9962#if HAVE_PTHREADS < 7 9963#include <errno.h> 9964#endif 9965#ifndef NULL 9966#define NULL (void*)0 9967#endif 9968 9969static void *task(p) 9970 void *p; 9971{ 9972 return (void *) (p == NULL); 9973} 9974 9975 9976int main(argc, argv) 9977 int argc; 9978 char **argv; 9979{ 9980 9981 /* pthread test function */ 9982#ifndef PTHREAD_CREATE_DETACHED 9983#define PTHREAD_CREATE_DETACHED 1 9984#endif 9985 pthread_t t; 9986 int status; 9987 int detach = PTHREAD_CREATE_DETACHED; 9988 9989#if HAVE_PTHREADS > 4 9990 /* Final pthreads */ 9991 pthread_attr_t attr; 9992 9993 status = pthread_attr_init(&attr); 9994 if( status ) return status; 9995 9996#if HAVE_PTHREADS < 7 9997 status = pthread_attr_setdetachstate(&attr, &detach); 9998 if( status < 0 ) status = errno; 9999#else 10000 status = pthread_attr_setdetachstate(&attr, detach); 10001#endif 10002 if( status ) return status; 10003 status = pthread_create( &t, &attr, task, NULL ); 10004#if HAVE_PTHREADS < 7 10005 if( status < 0 ) status = errno; 10006#endif 10007 if( status ) return status; 10008#else 10009 /* Draft 4 pthreads */ 10010 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10011 if( status ) return errno; 10012 10013 /* give thread a chance to complete */ 10014 /* it should remain joinable and hence detachable */ 10015 sleep( 1 ); 10016 10017 status = pthread_detach( &t ); 10018 if( status ) return errno; 10019#endif 10020 10021#ifdef HAVE_LINUX_THREADS 10022 pthread_kill_other_threads_np(); 10023#endif 10024 10025 return 0; 10026 10027} 10028 10029_ACEOF 10030if ac_fn_c_try_run "$LINENO"; then : 10031 ol_cv_pthread_create=yes 10032else 10033 ol_cv_pthread_create=no 10034fi 10035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10036 conftest.$ac_objext conftest.beam conftest.$ac_ext 10037fi 10038 10039fi 10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5 10041$as_echo "$ol_cv_pthread_create" >&6; } 10042 10043 if test $ol_cv_pthread_create != no ; then 10044 ol_link_threads=posix 10045 ol_link_pthreads="" 10046 fi 10047 10048 # Pthread try link: -kthread (ol_cv_pthread_kthread) 10049if test "$ol_link_threads" = no ; then 10050 # try -kthread 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5 10052$as_echo_n "checking for pthread link with -kthread... " >&6; } 10053if ${ol_cv_pthread_kthread+:} false; then : 10054 $as_echo_n "(cached) " >&6 10055else 10056 10057 # save the flags 10058 ol_LIBS="$LIBS" 10059 LIBS="-kthread $LIBS" 10060 10061 if test "$cross_compiling" = yes; then : 10062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10063/* end confdefs.h. */ 10064 10065/* pthread test headers */ 10066#include <pthread.h> 10067#if HAVE_PTHREADS < 7 10068#include <errno.h> 10069#endif 10070#ifndef NULL 10071#define NULL (void*)0 10072#endif 10073 10074static void *task(p) 10075 void *p; 10076{ 10077 return (void *) (p == NULL); 10078} 10079 10080int 10081main () 10082{ 10083 10084 /* pthread test function */ 10085#ifndef PTHREAD_CREATE_DETACHED 10086#define PTHREAD_CREATE_DETACHED 1 10087#endif 10088 pthread_t t; 10089 int status; 10090 int detach = PTHREAD_CREATE_DETACHED; 10091 10092#if HAVE_PTHREADS > 4 10093 /* Final pthreads */ 10094 pthread_attr_t attr; 10095 10096 status = pthread_attr_init(&attr); 10097 if( status ) return status; 10098 10099#if HAVE_PTHREADS < 7 10100 status = pthread_attr_setdetachstate(&attr, &detach); 10101 if( status < 0 ) status = errno; 10102#else 10103 status = pthread_attr_setdetachstate(&attr, detach); 10104#endif 10105 if( status ) return status; 10106 status = pthread_create( &t, &attr, task, NULL ); 10107#if HAVE_PTHREADS < 7 10108 if( status < 0 ) status = errno; 10109#endif 10110 if( status ) return status; 10111#else 10112 /* Draft 4 pthreads */ 10113 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10114 if( status ) return errno; 10115 10116 /* give thread a chance to complete */ 10117 /* it should remain joinable and hence detachable */ 10118 sleep( 1 ); 10119 10120 status = pthread_detach( &t ); 10121 if( status ) return errno; 10122#endif 10123 10124#ifdef HAVE_LINUX_THREADS 10125 pthread_kill_other_threads_np(); 10126#endif 10127 10128 return 0; 10129 10130 ; 10131 return 0; 10132} 10133_ACEOF 10134if ac_fn_c_try_link "$LINENO"; then : 10135 ol_cv_pthread_kthread=yes 10136else 10137 ol_cv_pthread_kthread=no 10138fi 10139rm -f core conftest.err conftest.$ac_objext \ 10140 conftest$ac_exeext conftest.$ac_ext 10141else 10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10143/* end confdefs.h. */ 10144 10145 10146/* pthread test headers */ 10147#include <pthread.h> 10148#if HAVE_PTHREADS < 7 10149#include <errno.h> 10150#endif 10151#ifndef NULL 10152#define NULL (void*)0 10153#endif 10154 10155static void *task(p) 10156 void *p; 10157{ 10158 return (void *) (p == NULL); 10159} 10160 10161 10162int main(argc, argv) 10163 int argc; 10164 char **argv; 10165{ 10166 10167 /* pthread test function */ 10168#ifndef PTHREAD_CREATE_DETACHED 10169#define PTHREAD_CREATE_DETACHED 1 10170#endif 10171 pthread_t t; 10172 int status; 10173 int detach = PTHREAD_CREATE_DETACHED; 10174 10175#if HAVE_PTHREADS > 4 10176 /* Final pthreads */ 10177 pthread_attr_t attr; 10178 10179 status = pthread_attr_init(&attr); 10180 if( status ) return status; 10181 10182#if HAVE_PTHREADS < 7 10183 status = pthread_attr_setdetachstate(&attr, &detach); 10184 if( status < 0 ) status = errno; 10185#else 10186 status = pthread_attr_setdetachstate(&attr, detach); 10187#endif 10188 if( status ) return status; 10189 status = pthread_create( &t, &attr, task, NULL ); 10190#if HAVE_PTHREADS < 7 10191 if( status < 0 ) status = errno; 10192#endif 10193 if( status ) return status; 10194#else 10195 /* Draft 4 pthreads */ 10196 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10197 if( status ) return errno; 10198 10199 /* give thread a chance to complete */ 10200 /* it should remain joinable and hence detachable */ 10201 sleep( 1 ); 10202 10203 status = pthread_detach( &t ); 10204 if( status ) return errno; 10205#endif 10206 10207#ifdef HAVE_LINUX_THREADS 10208 pthread_kill_other_threads_np(); 10209#endif 10210 10211 return 0; 10212 10213} 10214 10215_ACEOF 10216if ac_fn_c_try_run "$LINENO"; then : 10217 ol_cv_pthread_kthread=yes 10218else 10219 ol_cv_pthread_kthread=no 10220fi 10221rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10222 conftest.$ac_objext conftest.beam conftest.$ac_ext 10223fi 10224 10225 10226 # restore the LIBS 10227 LIBS="$ol_LIBS" 10228 10229fi 10230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5 10231$as_echo "$ol_cv_pthread_kthread" >&6; } 10232 10233 if test $ol_cv_pthread_kthread = yes ; then 10234 ol_link_pthreads="-kthread" 10235 ol_link_threads=posix 10236 fi 10237fi 10238 10239 # Pthread try link: -pthread (ol_cv_pthread_pthread) 10240if test "$ol_link_threads" = no ; then 10241 # try -pthread 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5 10243$as_echo_n "checking for pthread link with -pthread... " >&6; } 10244if ${ol_cv_pthread_pthread+:} false; then : 10245 $as_echo_n "(cached) " >&6 10246else 10247 10248 # save the flags 10249 ol_LIBS="$LIBS" 10250 LIBS="-pthread $LIBS" 10251 10252 if test "$cross_compiling" = yes; then : 10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10254/* end confdefs.h. */ 10255 10256/* pthread test headers */ 10257#include <pthread.h> 10258#if HAVE_PTHREADS < 7 10259#include <errno.h> 10260#endif 10261#ifndef NULL 10262#define NULL (void*)0 10263#endif 10264 10265static void *task(p) 10266 void *p; 10267{ 10268 return (void *) (p == NULL); 10269} 10270 10271int 10272main () 10273{ 10274 10275 /* pthread test function */ 10276#ifndef PTHREAD_CREATE_DETACHED 10277#define PTHREAD_CREATE_DETACHED 1 10278#endif 10279 pthread_t t; 10280 int status; 10281 int detach = PTHREAD_CREATE_DETACHED; 10282 10283#if HAVE_PTHREADS > 4 10284 /* Final pthreads */ 10285 pthread_attr_t attr; 10286 10287 status = pthread_attr_init(&attr); 10288 if( status ) return status; 10289 10290#if HAVE_PTHREADS < 7 10291 status = pthread_attr_setdetachstate(&attr, &detach); 10292 if( status < 0 ) status = errno; 10293#else 10294 status = pthread_attr_setdetachstate(&attr, detach); 10295#endif 10296 if( status ) return status; 10297 status = pthread_create( &t, &attr, task, NULL ); 10298#if HAVE_PTHREADS < 7 10299 if( status < 0 ) status = errno; 10300#endif 10301 if( status ) return status; 10302#else 10303 /* Draft 4 pthreads */ 10304 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10305 if( status ) return errno; 10306 10307 /* give thread a chance to complete */ 10308 /* it should remain joinable and hence detachable */ 10309 sleep( 1 ); 10310 10311 status = pthread_detach( &t ); 10312 if( status ) return errno; 10313#endif 10314 10315#ifdef HAVE_LINUX_THREADS 10316 pthread_kill_other_threads_np(); 10317#endif 10318 10319 return 0; 10320 10321 ; 10322 return 0; 10323} 10324_ACEOF 10325if ac_fn_c_try_link "$LINENO"; then : 10326 ol_cv_pthread_pthread=yes 10327else 10328 ol_cv_pthread_pthread=no 10329fi 10330rm -f core conftest.err conftest.$ac_objext \ 10331 conftest$ac_exeext conftest.$ac_ext 10332else 10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10334/* end confdefs.h. */ 10335 10336 10337/* pthread test headers */ 10338#include <pthread.h> 10339#if HAVE_PTHREADS < 7 10340#include <errno.h> 10341#endif 10342#ifndef NULL 10343#define NULL (void*)0 10344#endif 10345 10346static void *task(p) 10347 void *p; 10348{ 10349 return (void *) (p == NULL); 10350} 10351 10352 10353int main(argc, argv) 10354 int argc; 10355 char **argv; 10356{ 10357 10358 /* pthread test function */ 10359#ifndef PTHREAD_CREATE_DETACHED 10360#define PTHREAD_CREATE_DETACHED 1 10361#endif 10362 pthread_t t; 10363 int status; 10364 int detach = PTHREAD_CREATE_DETACHED; 10365 10366#if HAVE_PTHREADS > 4 10367 /* Final pthreads */ 10368 pthread_attr_t attr; 10369 10370 status = pthread_attr_init(&attr); 10371 if( status ) return status; 10372 10373#if HAVE_PTHREADS < 7 10374 status = pthread_attr_setdetachstate(&attr, &detach); 10375 if( status < 0 ) status = errno; 10376#else 10377 status = pthread_attr_setdetachstate(&attr, detach); 10378#endif 10379 if( status ) return status; 10380 status = pthread_create( &t, &attr, task, NULL ); 10381#if HAVE_PTHREADS < 7 10382 if( status < 0 ) status = errno; 10383#endif 10384 if( status ) return status; 10385#else 10386 /* Draft 4 pthreads */ 10387 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10388 if( status ) return errno; 10389 10390 /* give thread a chance to complete */ 10391 /* it should remain joinable and hence detachable */ 10392 sleep( 1 ); 10393 10394 status = pthread_detach( &t ); 10395 if( status ) return errno; 10396#endif 10397 10398#ifdef HAVE_LINUX_THREADS 10399 pthread_kill_other_threads_np(); 10400#endif 10401 10402 return 0; 10403 10404} 10405 10406_ACEOF 10407if ac_fn_c_try_run "$LINENO"; then : 10408 ol_cv_pthread_pthread=yes 10409else 10410 ol_cv_pthread_pthread=no 10411fi 10412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10413 conftest.$ac_objext conftest.beam conftest.$ac_ext 10414fi 10415 10416 10417 # restore the LIBS 10418 LIBS="$ol_LIBS" 10419 10420fi 10421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5 10422$as_echo "$ol_cv_pthread_pthread" >&6; } 10423 10424 if test $ol_cv_pthread_pthread = yes ; then 10425 ol_link_pthreads="-pthread" 10426 ol_link_threads=posix 10427 fi 10428fi 10429 10430 # Pthread try link: -pthreads (ol_cv_pthread_pthreads) 10431if test "$ol_link_threads" = no ; then 10432 # try -pthreads 10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5 10434$as_echo_n "checking for pthread link with -pthreads... " >&6; } 10435if ${ol_cv_pthread_pthreads+:} false; then : 10436 $as_echo_n "(cached) " >&6 10437else 10438 10439 # save the flags 10440 ol_LIBS="$LIBS" 10441 LIBS="-pthreads $LIBS" 10442 10443 if test "$cross_compiling" = yes; then : 10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10445/* end confdefs.h. */ 10446 10447/* pthread test headers */ 10448#include <pthread.h> 10449#if HAVE_PTHREADS < 7 10450#include <errno.h> 10451#endif 10452#ifndef NULL 10453#define NULL (void*)0 10454#endif 10455 10456static void *task(p) 10457 void *p; 10458{ 10459 return (void *) (p == NULL); 10460} 10461 10462int 10463main () 10464{ 10465 10466 /* pthread test function */ 10467#ifndef PTHREAD_CREATE_DETACHED 10468#define PTHREAD_CREATE_DETACHED 1 10469#endif 10470 pthread_t t; 10471 int status; 10472 int detach = PTHREAD_CREATE_DETACHED; 10473 10474#if HAVE_PTHREADS > 4 10475 /* Final pthreads */ 10476 pthread_attr_t attr; 10477 10478 status = pthread_attr_init(&attr); 10479 if( status ) return status; 10480 10481#if HAVE_PTHREADS < 7 10482 status = pthread_attr_setdetachstate(&attr, &detach); 10483 if( status < 0 ) status = errno; 10484#else 10485 status = pthread_attr_setdetachstate(&attr, detach); 10486#endif 10487 if( status ) return status; 10488 status = pthread_create( &t, &attr, task, NULL ); 10489#if HAVE_PTHREADS < 7 10490 if( status < 0 ) status = errno; 10491#endif 10492 if( status ) return status; 10493#else 10494 /* Draft 4 pthreads */ 10495 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10496 if( status ) return errno; 10497 10498 /* give thread a chance to complete */ 10499 /* it should remain joinable and hence detachable */ 10500 sleep( 1 ); 10501 10502 status = pthread_detach( &t ); 10503 if( status ) return errno; 10504#endif 10505 10506#ifdef HAVE_LINUX_THREADS 10507 pthread_kill_other_threads_np(); 10508#endif 10509 10510 return 0; 10511 10512 ; 10513 return 0; 10514} 10515_ACEOF 10516if ac_fn_c_try_link "$LINENO"; then : 10517 ol_cv_pthread_pthreads=yes 10518else 10519 ol_cv_pthread_pthreads=no 10520fi 10521rm -f core conftest.err conftest.$ac_objext \ 10522 conftest$ac_exeext conftest.$ac_ext 10523else 10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10525/* end confdefs.h. */ 10526 10527 10528/* pthread test headers */ 10529#include <pthread.h> 10530#if HAVE_PTHREADS < 7 10531#include <errno.h> 10532#endif 10533#ifndef NULL 10534#define NULL (void*)0 10535#endif 10536 10537static void *task(p) 10538 void *p; 10539{ 10540 return (void *) (p == NULL); 10541} 10542 10543 10544int main(argc, argv) 10545 int argc; 10546 char **argv; 10547{ 10548 10549 /* pthread test function */ 10550#ifndef PTHREAD_CREATE_DETACHED 10551#define PTHREAD_CREATE_DETACHED 1 10552#endif 10553 pthread_t t; 10554 int status; 10555 int detach = PTHREAD_CREATE_DETACHED; 10556 10557#if HAVE_PTHREADS > 4 10558 /* Final pthreads */ 10559 pthread_attr_t attr; 10560 10561 status = pthread_attr_init(&attr); 10562 if( status ) return status; 10563 10564#if HAVE_PTHREADS < 7 10565 status = pthread_attr_setdetachstate(&attr, &detach); 10566 if( status < 0 ) status = errno; 10567#else 10568 status = pthread_attr_setdetachstate(&attr, detach); 10569#endif 10570 if( status ) return status; 10571 status = pthread_create( &t, &attr, task, NULL ); 10572#if HAVE_PTHREADS < 7 10573 if( status < 0 ) status = errno; 10574#endif 10575 if( status ) return status; 10576#else 10577 /* Draft 4 pthreads */ 10578 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10579 if( status ) return errno; 10580 10581 /* give thread a chance to complete */ 10582 /* it should remain joinable and hence detachable */ 10583 sleep( 1 ); 10584 10585 status = pthread_detach( &t ); 10586 if( status ) return errno; 10587#endif 10588 10589#ifdef HAVE_LINUX_THREADS 10590 pthread_kill_other_threads_np(); 10591#endif 10592 10593 return 0; 10594 10595} 10596 10597_ACEOF 10598if ac_fn_c_try_run "$LINENO"; then : 10599 ol_cv_pthread_pthreads=yes 10600else 10601 ol_cv_pthread_pthreads=no 10602fi 10603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10604 conftest.$ac_objext conftest.beam conftest.$ac_ext 10605fi 10606 10607 10608 # restore the LIBS 10609 LIBS="$ol_LIBS" 10610 10611fi 10612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5 10613$as_echo "$ol_cv_pthread_pthreads" >&6; } 10614 10615 if test $ol_cv_pthread_pthreads = yes ; then 10616 ol_link_pthreads="-pthreads" 10617 ol_link_threads=posix 10618 fi 10619fi 10620 10621 # Pthread try link: -mthreads (ol_cv_pthread_mthreads) 10622if test "$ol_link_threads" = no ; then 10623 # try -mthreads 10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5 10625$as_echo_n "checking for pthread link with -mthreads... " >&6; } 10626if ${ol_cv_pthread_mthreads+:} false; then : 10627 $as_echo_n "(cached) " >&6 10628else 10629 10630 # save the flags 10631 ol_LIBS="$LIBS" 10632 LIBS="-mthreads $LIBS" 10633 10634 if test "$cross_compiling" = yes; then : 10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10636/* end confdefs.h. */ 10637 10638/* pthread test headers */ 10639#include <pthread.h> 10640#if HAVE_PTHREADS < 7 10641#include <errno.h> 10642#endif 10643#ifndef NULL 10644#define NULL (void*)0 10645#endif 10646 10647static void *task(p) 10648 void *p; 10649{ 10650 return (void *) (p == NULL); 10651} 10652 10653int 10654main () 10655{ 10656 10657 /* pthread test function */ 10658#ifndef PTHREAD_CREATE_DETACHED 10659#define PTHREAD_CREATE_DETACHED 1 10660#endif 10661 pthread_t t; 10662 int status; 10663 int detach = PTHREAD_CREATE_DETACHED; 10664 10665#if HAVE_PTHREADS > 4 10666 /* Final pthreads */ 10667 pthread_attr_t attr; 10668 10669 status = pthread_attr_init(&attr); 10670 if( status ) return status; 10671 10672#if HAVE_PTHREADS < 7 10673 status = pthread_attr_setdetachstate(&attr, &detach); 10674 if( status < 0 ) status = errno; 10675#else 10676 status = pthread_attr_setdetachstate(&attr, detach); 10677#endif 10678 if( status ) return status; 10679 status = pthread_create( &t, &attr, task, NULL ); 10680#if HAVE_PTHREADS < 7 10681 if( status < 0 ) status = errno; 10682#endif 10683 if( status ) return status; 10684#else 10685 /* Draft 4 pthreads */ 10686 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10687 if( status ) return errno; 10688 10689 /* give thread a chance to complete */ 10690 /* it should remain joinable and hence detachable */ 10691 sleep( 1 ); 10692 10693 status = pthread_detach( &t ); 10694 if( status ) return errno; 10695#endif 10696 10697#ifdef HAVE_LINUX_THREADS 10698 pthread_kill_other_threads_np(); 10699#endif 10700 10701 return 0; 10702 10703 ; 10704 return 0; 10705} 10706_ACEOF 10707if ac_fn_c_try_link "$LINENO"; then : 10708 ol_cv_pthread_mthreads=yes 10709else 10710 ol_cv_pthread_mthreads=no 10711fi 10712rm -f core conftest.err conftest.$ac_objext \ 10713 conftest$ac_exeext conftest.$ac_ext 10714else 10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10716/* end confdefs.h. */ 10717 10718 10719/* pthread test headers */ 10720#include <pthread.h> 10721#if HAVE_PTHREADS < 7 10722#include <errno.h> 10723#endif 10724#ifndef NULL 10725#define NULL (void*)0 10726#endif 10727 10728static void *task(p) 10729 void *p; 10730{ 10731 return (void *) (p == NULL); 10732} 10733 10734 10735int main(argc, argv) 10736 int argc; 10737 char **argv; 10738{ 10739 10740 /* pthread test function */ 10741#ifndef PTHREAD_CREATE_DETACHED 10742#define PTHREAD_CREATE_DETACHED 1 10743#endif 10744 pthread_t t; 10745 int status; 10746 int detach = PTHREAD_CREATE_DETACHED; 10747 10748#if HAVE_PTHREADS > 4 10749 /* Final pthreads */ 10750 pthread_attr_t attr; 10751 10752 status = pthread_attr_init(&attr); 10753 if( status ) return status; 10754 10755#if HAVE_PTHREADS < 7 10756 status = pthread_attr_setdetachstate(&attr, &detach); 10757 if( status < 0 ) status = errno; 10758#else 10759 status = pthread_attr_setdetachstate(&attr, detach); 10760#endif 10761 if( status ) return status; 10762 status = pthread_create( &t, &attr, task, NULL ); 10763#if HAVE_PTHREADS < 7 10764 if( status < 0 ) status = errno; 10765#endif 10766 if( status ) return status; 10767#else 10768 /* Draft 4 pthreads */ 10769 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10770 if( status ) return errno; 10771 10772 /* give thread a chance to complete */ 10773 /* it should remain joinable and hence detachable */ 10774 sleep( 1 ); 10775 10776 status = pthread_detach( &t ); 10777 if( status ) return errno; 10778#endif 10779 10780#ifdef HAVE_LINUX_THREADS 10781 pthread_kill_other_threads_np(); 10782#endif 10783 10784 return 0; 10785 10786} 10787 10788_ACEOF 10789if ac_fn_c_try_run "$LINENO"; then : 10790 ol_cv_pthread_mthreads=yes 10791else 10792 ol_cv_pthread_mthreads=no 10793fi 10794rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10795 conftest.$ac_objext conftest.beam conftest.$ac_ext 10796fi 10797 10798 10799 # restore the LIBS 10800 LIBS="$ol_LIBS" 10801 10802fi 10803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5 10804$as_echo "$ol_cv_pthread_mthreads" >&6; } 10805 10806 if test $ol_cv_pthread_mthreads = yes ; then 10807 ol_link_pthreads="-mthreads" 10808 ol_link_threads=posix 10809 fi 10810fi 10811 10812 # Pthread try link: -thread (ol_cv_pthread_thread) 10813if test "$ol_link_threads" = no ; then 10814 # try -thread 10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5 10816$as_echo_n "checking for pthread link with -thread... " >&6; } 10817if ${ol_cv_pthread_thread+:} false; then : 10818 $as_echo_n "(cached) " >&6 10819else 10820 10821 # save the flags 10822 ol_LIBS="$LIBS" 10823 LIBS="-thread $LIBS" 10824 10825 if test "$cross_compiling" = yes; then : 10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10827/* end confdefs.h. */ 10828 10829/* pthread test headers */ 10830#include <pthread.h> 10831#if HAVE_PTHREADS < 7 10832#include <errno.h> 10833#endif 10834#ifndef NULL 10835#define NULL (void*)0 10836#endif 10837 10838static void *task(p) 10839 void *p; 10840{ 10841 return (void *) (p == NULL); 10842} 10843 10844int 10845main () 10846{ 10847 10848 /* pthread test function */ 10849#ifndef PTHREAD_CREATE_DETACHED 10850#define PTHREAD_CREATE_DETACHED 1 10851#endif 10852 pthread_t t; 10853 int status; 10854 int detach = PTHREAD_CREATE_DETACHED; 10855 10856#if HAVE_PTHREADS > 4 10857 /* Final pthreads */ 10858 pthread_attr_t attr; 10859 10860 status = pthread_attr_init(&attr); 10861 if( status ) return status; 10862 10863#if HAVE_PTHREADS < 7 10864 status = pthread_attr_setdetachstate(&attr, &detach); 10865 if( status < 0 ) status = errno; 10866#else 10867 status = pthread_attr_setdetachstate(&attr, detach); 10868#endif 10869 if( status ) return status; 10870 status = pthread_create( &t, &attr, task, NULL ); 10871#if HAVE_PTHREADS < 7 10872 if( status < 0 ) status = errno; 10873#endif 10874 if( status ) return status; 10875#else 10876 /* Draft 4 pthreads */ 10877 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10878 if( status ) return errno; 10879 10880 /* give thread a chance to complete */ 10881 /* it should remain joinable and hence detachable */ 10882 sleep( 1 ); 10883 10884 status = pthread_detach( &t ); 10885 if( status ) return errno; 10886#endif 10887 10888#ifdef HAVE_LINUX_THREADS 10889 pthread_kill_other_threads_np(); 10890#endif 10891 10892 return 0; 10893 10894 ; 10895 return 0; 10896} 10897_ACEOF 10898if ac_fn_c_try_link "$LINENO"; then : 10899 ol_cv_pthread_thread=yes 10900else 10901 ol_cv_pthread_thread=no 10902fi 10903rm -f core conftest.err conftest.$ac_objext \ 10904 conftest$ac_exeext conftest.$ac_ext 10905else 10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10907/* end confdefs.h. */ 10908 10909 10910/* pthread test headers */ 10911#include <pthread.h> 10912#if HAVE_PTHREADS < 7 10913#include <errno.h> 10914#endif 10915#ifndef NULL 10916#define NULL (void*)0 10917#endif 10918 10919static void *task(p) 10920 void *p; 10921{ 10922 return (void *) (p == NULL); 10923} 10924 10925 10926int main(argc, argv) 10927 int argc; 10928 char **argv; 10929{ 10930 10931 /* pthread test function */ 10932#ifndef PTHREAD_CREATE_DETACHED 10933#define PTHREAD_CREATE_DETACHED 1 10934#endif 10935 pthread_t t; 10936 int status; 10937 int detach = PTHREAD_CREATE_DETACHED; 10938 10939#if HAVE_PTHREADS > 4 10940 /* Final pthreads */ 10941 pthread_attr_t attr; 10942 10943 status = pthread_attr_init(&attr); 10944 if( status ) return status; 10945 10946#if HAVE_PTHREADS < 7 10947 status = pthread_attr_setdetachstate(&attr, &detach); 10948 if( status < 0 ) status = errno; 10949#else 10950 status = pthread_attr_setdetachstate(&attr, detach); 10951#endif 10952 if( status ) return status; 10953 status = pthread_create( &t, &attr, task, NULL ); 10954#if HAVE_PTHREADS < 7 10955 if( status < 0 ) status = errno; 10956#endif 10957 if( status ) return status; 10958#else 10959 /* Draft 4 pthreads */ 10960 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10961 if( status ) return errno; 10962 10963 /* give thread a chance to complete */ 10964 /* it should remain joinable and hence detachable */ 10965 sleep( 1 ); 10966 10967 status = pthread_detach( &t ); 10968 if( status ) return errno; 10969#endif 10970 10971#ifdef HAVE_LINUX_THREADS 10972 pthread_kill_other_threads_np(); 10973#endif 10974 10975 return 0; 10976 10977} 10978 10979_ACEOF 10980if ac_fn_c_try_run "$LINENO"; then : 10981 ol_cv_pthread_thread=yes 10982else 10983 ol_cv_pthread_thread=no 10984fi 10985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10986 conftest.$ac_objext conftest.beam conftest.$ac_ext 10987fi 10988 10989 10990 # restore the LIBS 10991 LIBS="$ol_LIBS" 10992 10993fi 10994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5 10995$as_echo "$ol_cv_pthread_thread" >&6; } 10996 10997 if test $ol_cv_pthread_thread = yes ; then 10998 ol_link_pthreads="-thread" 10999 ol_link_threads=posix 11000 fi 11001fi 11002 11003 11004 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r) 11005if test "$ol_link_threads" = no ; then 11006 # try -lpthread -lmach -lexc -lc_r 11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5 11008$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; } 11009if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then : 11010 $as_echo_n "(cached) " >&6 11011else 11012 11013 # save the flags 11014 ol_LIBS="$LIBS" 11015 LIBS="-lpthread -lmach -lexc -lc_r $LIBS" 11016 11017 if test "$cross_compiling" = yes; then : 11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11019/* end confdefs.h. */ 11020 11021/* pthread test headers */ 11022#include <pthread.h> 11023#if HAVE_PTHREADS < 7 11024#include <errno.h> 11025#endif 11026#ifndef NULL 11027#define NULL (void*)0 11028#endif 11029 11030static void *task(p) 11031 void *p; 11032{ 11033 return (void *) (p == NULL); 11034} 11035 11036int 11037main () 11038{ 11039 11040 /* pthread test function */ 11041#ifndef PTHREAD_CREATE_DETACHED 11042#define PTHREAD_CREATE_DETACHED 1 11043#endif 11044 pthread_t t; 11045 int status; 11046 int detach = PTHREAD_CREATE_DETACHED; 11047 11048#if HAVE_PTHREADS > 4 11049 /* Final pthreads */ 11050 pthread_attr_t attr; 11051 11052 status = pthread_attr_init(&attr); 11053 if( status ) return status; 11054 11055#if HAVE_PTHREADS < 7 11056 status = pthread_attr_setdetachstate(&attr, &detach); 11057 if( status < 0 ) status = errno; 11058#else 11059 status = pthread_attr_setdetachstate(&attr, detach); 11060#endif 11061 if( status ) return status; 11062 status = pthread_create( &t, &attr, task, NULL ); 11063#if HAVE_PTHREADS < 7 11064 if( status < 0 ) status = errno; 11065#endif 11066 if( status ) return status; 11067#else 11068 /* Draft 4 pthreads */ 11069 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11070 if( status ) return errno; 11071 11072 /* give thread a chance to complete */ 11073 /* it should remain joinable and hence detachable */ 11074 sleep( 1 ); 11075 11076 status = pthread_detach( &t ); 11077 if( status ) return errno; 11078#endif 11079 11080#ifdef HAVE_LINUX_THREADS 11081 pthread_kill_other_threads_np(); 11082#endif 11083 11084 return 0; 11085 11086 ; 11087 return 0; 11088} 11089_ACEOF 11090if ac_fn_c_try_link "$LINENO"; then : 11091 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 11092else 11093 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 11094fi 11095rm -f core conftest.err conftest.$ac_objext \ 11096 conftest$ac_exeext conftest.$ac_ext 11097else 11098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11099/* end confdefs.h. */ 11100 11101 11102/* pthread test headers */ 11103#include <pthread.h> 11104#if HAVE_PTHREADS < 7 11105#include <errno.h> 11106#endif 11107#ifndef NULL 11108#define NULL (void*)0 11109#endif 11110 11111static void *task(p) 11112 void *p; 11113{ 11114 return (void *) (p == NULL); 11115} 11116 11117 11118int main(argc, argv) 11119 int argc; 11120 char **argv; 11121{ 11122 11123 /* pthread test function */ 11124#ifndef PTHREAD_CREATE_DETACHED 11125#define PTHREAD_CREATE_DETACHED 1 11126#endif 11127 pthread_t t; 11128 int status; 11129 int detach = PTHREAD_CREATE_DETACHED; 11130 11131#if HAVE_PTHREADS > 4 11132 /* Final pthreads */ 11133 pthread_attr_t attr; 11134 11135 status = pthread_attr_init(&attr); 11136 if( status ) return status; 11137 11138#if HAVE_PTHREADS < 7 11139 status = pthread_attr_setdetachstate(&attr, &detach); 11140 if( status < 0 ) status = errno; 11141#else 11142 status = pthread_attr_setdetachstate(&attr, detach); 11143#endif 11144 if( status ) return status; 11145 status = pthread_create( &t, &attr, task, NULL ); 11146#if HAVE_PTHREADS < 7 11147 if( status < 0 ) status = errno; 11148#endif 11149 if( status ) return status; 11150#else 11151 /* Draft 4 pthreads */ 11152 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11153 if( status ) return errno; 11154 11155 /* give thread a chance to complete */ 11156 /* it should remain joinable and hence detachable */ 11157 sleep( 1 ); 11158 11159 status = pthread_detach( &t ); 11160 if( status ) return errno; 11161#endif 11162 11163#ifdef HAVE_LINUX_THREADS 11164 pthread_kill_other_threads_np(); 11165#endif 11166 11167 return 0; 11168 11169} 11170 11171_ACEOF 11172if ac_fn_c_try_run "$LINENO"; then : 11173 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 11174else 11175 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 11176fi 11177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11178 conftest.$ac_objext conftest.beam conftest.$ac_ext 11179fi 11180 11181 11182 # restore the LIBS 11183 LIBS="$ol_LIBS" 11184 11185fi 11186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5 11187$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; } 11188 11189 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then 11190 ol_link_pthreads="-lpthread -lmach -lexc -lc_r" 11191 ol_link_threads=posix 11192 fi 11193fi 11194 11195 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc) 11196if test "$ol_link_threads" = no ; then 11197 # try -lpthread -lmach -lexc 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5 11199$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; } 11200if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then : 11201 $as_echo_n "(cached) " >&6 11202else 11203 11204 # save the flags 11205 ol_LIBS="$LIBS" 11206 LIBS="-lpthread -lmach -lexc $LIBS" 11207 11208 if test "$cross_compiling" = yes; then : 11209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11210/* end confdefs.h. */ 11211 11212/* pthread test headers */ 11213#include <pthread.h> 11214#if HAVE_PTHREADS < 7 11215#include <errno.h> 11216#endif 11217#ifndef NULL 11218#define NULL (void*)0 11219#endif 11220 11221static void *task(p) 11222 void *p; 11223{ 11224 return (void *) (p == NULL); 11225} 11226 11227int 11228main () 11229{ 11230 11231 /* pthread test function */ 11232#ifndef PTHREAD_CREATE_DETACHED 11233#define PTHREAD_CREATE_DETACHED 1 11234#endif 11235 pthread_t t; 11236 int status; 11237 int detach = PTHREAD_CREATE_DETACHED; 11238 11239#if HAVE_PTHREADS > 4 11240 /* Final pthreads */ 11241 pthread_attr_t attr; 11242 11243 status = pthread_attr_init(&attr); 11244 if( status ) return status; 11245 11246#if HAVE_PTHREADS < 7 11247 status = pthread_attr_setdetachstate(&attr, &detach); 11248 if( status < 0 ) status = errno; 11249#else 11250 status = pthread_attr_setdetachstate(&attr, detach); 11251#endif 11252 if( status ) return status; 11253 status = pthread_create( &t, &attr, task, NULL ); 11254#if HAVE_PTHREADS < 7 11255 if( status < 0 ) status = errno; 11256#endif 11257 if( status ) return status; 11258#else 11259 /* Draft 4 pthreads */ 11260 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11261 if( status ) return errno; 11262 11263 /* give thread a chance to complete */ 11264 /* it should remain joinable and hence detachable */ 11265 sleep( 1 ); 11266 11267 status = pthread_detach( &t ); 11268 if( status ) return errno; 11269#endif 11270 11271#ifdef HAVE_LINUX_THREADS 11272 pthread_kill_other_threads_np(); 11273#endif 11274 11275 return 0; 11276 11277 ; 11278 return 0; 11279} 11280_ACEOF 11281if ac_fn_c_try_link "$LINENO"; then : 11282 ol_cv_pthread_lpthread_lmach_lexc=yes 11283else 11284 ol_cv_pthread_lpthread_lmach_lexc=no 11285fi 11286rm -f core conftest.err conftest.$ac_objext \ 11287 conftest$ac_exeext conftest.$ac_ext 11288else 11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11290/* end confdefs.h. */ 11291 11292 11293/* pthread test headers */ 11294#include <pthread.h> 11295#if HAVE_PTHREADS < 7 11296#include <errno.h> 11297#endif 11298#ifndef NULL 11299#define NULL (void*)0 11300#endif 11301 11302static void *task(p) 11303 void *p; 11304{ 11305 return (void *) (p == NULL); 11306} 11307 11308 11309int main(argc, argv) 11310 int argc; 11311 char **argv; 11312{ 11313 11314 /* pthread test function */ 11315#ifndef PTHREAD_CREATE_DETACHED 11316#define PTHREAD_CREATE_DETACHED 1 11317#endif 11318 pthread_t t; 11319 int status; 11320 int detach = PTHREAD_CREATE_DETACHED; 11321 11322#if HAVE_PTHREADS > 4 11323 /* Final pthreads */ 11324 pthread_attr_t attr; 11325 11326 status = pthread_attr_init(&attr); 11327 if( status ) return status; 11328 11329#if HAVE_PTHREADS < 7 11330 status = pthread_attr_setdetachstate(&attr, &detach); 11331 if( status < 0 ) status = errno; 11332#else 11333 status = pthread_attr_setdetachstate(&attr, detach); 11334#endif 11335 if( status ) return status; 11336 status = pthread_create( &t, &attr, task, NULL ); 11337#if HAVE_PTHREADS < 7 11338 if( status < 0 ) status = errno; 11339#endif 11340 if( status ) return status; 11341#else 11342 /* Draft 4 pthreads */ 11343 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11344 if( status ) return errno; 11345 11346 /* give thread a chance to complete */ 11347 /* it should remain joinable and hence detachable */ 11348 sleep( 1 ); 11349 11350 status = pthread_detach( &t ); 11351 if( status ) return errno; 11352#endif 11353 11354#ifdef HAVE_LINUX_THREADS 11355 pthread_kill_other_threads_np(); 11356#endif 11357 11358 return 0; 11359 11360} 11361 11362_ACEOF 11363if ac_fn_c_try_run "$LINENO"; then : 11364 ol_cv_pthread_lpthread_lmach_lexc=yes 11365else 11366 ol_cv_pthread_lpthread_lmach_lexc=no 11367fi 11368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11369 conftest.$ac_objext conftest.beam conftest.$ac_ext 11370fi 11371 11372 11373 # restore the LIBS 11374 LIBS="$ol_LIBS" 11375 11376fi 11377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5 11378$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; } 11379 11380 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then 11381 ol_link_pthreads="-lpthread -lmach -lexc" 11382 ol_link_threads=posix 11383 fi 11384fi 11385 11386 11387 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff) 11388if test "$ol_link_threads" = no ; then 11389 # try -lpthread -Wl,-woff,85 11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5 11391$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; } 11392if ${ol_cv_pthread_lib_lpthread_woff+:} false; then : 11393 $as_echo_n "(cached) " >&6 11394else 11395 11396 # save the flags 11397 ol_LIBS="$LIBS" 11398 LIBS="-lpthread -Wl,-woff,85 $LIBS" 11399 11400 if test "$cross_compiling" = yes; then : 11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11402/* end confdefs.h. */ 11403 11404/* pthread test headers */ 11405#include <pthread.h> 11406#if HAVE_PTHREADS < 7 11407#include <errno.h> 11408#endif 11409#ifndef NULL 11410#define NULL (void*)0 11411#endif 11412 11413static void *task(p) 11414 void *p; 11415{ 11416 return (void *) (p == NULL); 11417} 11418 11419int 11420main () 11421{ 11422 11423 /* pthread test function */ 11424#ifndef PTHREAD_CREATE_DETACHED 11425#define PTHREAD_CREATE_DETACHED 1 11426#endif 11427 pthread_t t; 11428 int status; 11429 int detach = PTHREAD_CREATE_DETACHED; 11430 11431#if HAVE_PTHREADS > 4 11432 /* Final pthreads */ 11433 pthread_attr_t attr; 11434 11435 status = pthread_attr_init(&attr); 11436 if( status ) return status; 11437 11438#if HAVE_PTHREADS < 7 11439 status = pthread_attr_setdetachstate(&attr, &detach); 11440 if( status < 0 ) status = errno; 11441#else 11442 status = pthread_attr_setdetachstate(&attr, detach); 11443#endif 11444 if( status ) return status; 11445 status = pthread_create( &t, &attr, task, NULL ); 11446#if HAVE_PTHREADS < 7 11447 if( status < 0 ) status = errno; 11448#endif 11449 if( status ) return status; 11450#else 11451 /* Draft 4 pthreads */ 11452 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11453 if( status ) return errno; 11454 11455 /* give thread a chance to complete */ 11456 /* it should remain joinable and hence detachable */ 11457 sleep( 1 ); 11458 11459 status = pthread_detach( &t ); 11460 if( status ) return errno; 11461#endif 11462 11463#ifdef HAVE_LINUX_THREADS 11464 pthread_kill_other_threads_np(); 11465#endif 11466 11467 return 0; 11468 11469 ; 11470 return 0; 11471} 11472_ACEOF 11473if ac_fn_c_try_link "$LINENO"; then : 11474 ol_cv_pthread_lib_lpthread_woff=yes 11475else 11476 ol_cv_pthread_lib_lpthread_woff=no 11477fi 11478rm -f core conftest.err conftest.$ac_objext \ 11479 conftest$ac_exeext conftest.$ac_ext 11480else 11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11482/* end confdefs.h. */ 11483 11484 11485/* pthread test headers */ 11486#include <pthread.h> 11487#if HAVE_PTHREADS < 7 11488#include <errno.h> 11489#endif 11490#ifndef NULL 11491#define NULL (void*)0 11492#endif 11493 11494static void *task(p) 11495 void *p; 11496{ 11497 return (void *) (p == NULL); 11498} 11499 11500 11501int main(argc, argv) 11502 int argc; 11503 char **argv; 11504{ 11505 11506 /* pthread test function */ 11507#ifndef PTHREAD_CREATE_DETACHED 11508#define PTHREAD_CREATE_DETACHED 1 11509#endif 11510 pthread_t t; 11511 int status; 11512 int detach = PTHREAD_CREATE_DETACHED; 11513 11514#if HAVE_PTHREADS > 4 11515 /* Final pthreads */ 11516 pthread_attr_t attr; 11517 11518 status = pthread_attr_init(&attr); 11519 if( status ) return status; 11520 11521#if HAVE_PTHREADS < 7 11522 status = pthread_attr_setdetachstate(&attr, &detach); 11523 if( status < 0 ) status = errno; 11524#else 11525 status = pthread_attr_setdetachstate(&attr, detach); 11526#endif 11527 if( status ) return status; 11528 status = pthread_create( &t, &attr, task, NULL ); 11529#if HAVE_PTHREADS < 7 11530 if( status < 0 ) status = errno; 11531#endif 11532 if( status ) return status; 11533#else 11534 /* Draft 4 pthreads */ 11535 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11536 if( status ) return errno; 11537 11538 /* give thread a chance to complete */ 11539 /* it should remain joinable and hence detachable */ 11540 sleep( 1 ); 11541 11542 status = pthread_detach( &t ); 11543 if( status ) return errno; 11544#endif 11545 11546#ifdef HAVE_LINUX_THREADS 11547 pthread_kill_other_threads_np(); 11548#endif 11549 11550 return 0; 11551 11552} 11553 11554_ACEOF 11555if ac_fn_c_try_run "$LINENO"; then : 11556 ol_cv_pthread_lib_lpthread_woff=yes 11557else 11558 ol_cv_pthread_lib_lpthread_woff=no 11559fi 11560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11561 conftest.$ac_objext conftest.beam conftest.$ac_ext 11562fi 11563 11564 11565 # restore the LIBS 11566 LIBS="$ol_LIBS" 11567 11568fi 11569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5 11570$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; } 11571 11572 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then 11573 ol_link_pthreads="-lpthread -Wl,-woff,85" 11574 ol_link_threads=posix 11575 fi 11576fi 11577 11578 11579 # Pthread try link: -lpthread (ol_cv_pthread_lpthread) 11580if test "$ol_link_threads" = no ; then 11581 # try -lpthread 11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5 11583$as_echo_n "checking for pthread link with -lpthread... " >&6; } 11584if ${ol_cv_pthread_lpthread+:} false; then : 11585 $as_echo_n "(cached) " >&6 11586else 11587 11588 # save the flags 11589 ol_LIBS="$LIBS" 11590 LIBS="-lpthread $LIBS" 11591 11592 if test "$cross_compiling" = yes; then : 11593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11594/* end confdefs.h. */ 11595 11596/* pthread test headers */ 11597#include <pthread.h> 11598#if HAVE_PTHREADS < 7 11599#include <errno.h> 11600#endif 11601#ifndef NULL 11602#define NULL (void*)0 11603#endif 11604 11605static void *task(p) 11606 void *p; 11607{ 11608 return (void *) (p == NULL); 11609} 11610 11611int 11612main () 11613{ 11614 11615 /* pthread test function */ 11616#ifndef PTHREAD_CREATE_DETACHED 11617#define PTHREAD_CREATE_DETACHED 1 11618#endif 11619 pthread_t t; 11620 int status; 11621 int detach = PTHREAD_CREATE_DETACHED; 11622 11623#if HAVE_PTHREADS > 4 11624 /* Final pthreads */ 11625 pthread_attr_t attr; 11626 11627 status = pthread_attr_init(&attr); 11628 if( status ) return status; 11629 11630#if HAVE_PTHREADS < 7 11631 status = pthread_attr_setdetachstate(&attr, &detach); 11632 if( status < 0 ) status = errno; 11633#else 11634 status = pthread_attr_setdetachstate(&attr, detach); 11635#endif 11636 if( status ) return status; 11637 status = pthread_create( &t, &attr, task, NULL ); 11638#if HAVE_PTHREADS < 7 11639 if( status < 0 ) status = errno; 11640#endif 11641 if( status ) return status; 11642#else 11643 /* Draft 4 pthreads */ 11644 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11645 if( status ) return errno; 11646 11647 /* give thread a chance to complete */ 11648 /* it should remain joinable and hence detachable */ 11649 sleep( 1 ); 11650 11651 status = pthread_detach( &t ); 11652 if( status ) return errno; 11653#endif 11654 11655#ifdef HAVE_LINUX_THREADS 11656 pthread_kill_other_threads_np(); 11657#endif 11658 11659 return 0; 11660 11661 ; 11662 return 0; 11663} 11664_ACEOF 11665if ac_fn_c_try_link "$LINENO"; then : 11666 ol_cv_pthread_lpthread=yes 11667else 11668 ol_cv_pthread_lpthread=no 11669fi 11670rm -f core conftest.err conftest.$ac_objext \ 11671 conftest$ac_exeext conftest.$ac_ext 11672else 11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11674/* end confdefs.h. */ 11675 11676 11677/* pthread test headers */ 11678#include <pthread.h> 11679#if HAVE_PTHREADS < 7 11680#include <errno.h> 11681#endif 11682#ifndef NULL 11683#define NULL (void*)0 11684#endif 11685 11686static void *task(p) 11687 void *p; 11688{ 11689 return (void *) (p == NULL); 11690} 11691 11692 11693int main(argc, argv) 11694 int argc; 11695 char **argv; 11696{ 11697 11698 /* pthread test function */ 11699#ifndef PTHREAD_CREATE_DETACHED 11700#define PTHREAD_CREATE_DETACHED 1 11701#endif 11702 pthread_t t; 11703 int status; 11704 int detach = PTHREAD_CREATE_DETACHED; 11705 11706#if HAVE_PTHREADS > 4 11707 /* Final pthreads */ 11708 pthread_attr_t attr; 11709 11710 status = pthread_attr_init(&attr); 11711 if( status ) return status; 11712 11713#if HAVE_PTHREADS < 7 11714 status = pthread_attr_setdetachstate(&attr, &detach); 11715 if( status < 0 ) status = errno; 11716#else 11717 status = pthread_attr_setdetachstate(&attr, detach); 11718#endif 11719 if( status ) return status; 11720 status = pthread_create( &t, &attr, task, NULL ); 11721#if HAVE_PTHREADS < 7 11722 if( status < 0 ) status = errno; 11723#endif 11724 if( status ) return status; 11725#else 11726 /* Draft 4 pthreads */ 11727 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11728 if( status ) return errno; 11729 11730 /* give thread a chance to complete */ 11731 /* it should remain joinable and hence detachable */ 11732 sleep( 1 ); 11733 11734 status = pthread_detach( &t ); 11735 if( status ) return errno; 11736#endif 11737 11738#ifdef HAVE_LINUX_THREADS 11739 pthread_kill_other_threads_np(); 11740#endif 11741 11742 return 0; 11743 11744} 11745 11746_ACEOF 11747if ac_fn_c_try_run "$LINENO"; then : 11748 ol_cv_pthread_lpthread=yes 11749else 11750 ol_cv_pthread_lpthread=no 11751fi 11752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11753 conftest.$ac_objext conftest.beam conftest.$ac_ext 11754fi 11755 11756 11757 # restore the LIBS 11758 LIBS="$ol_LIBS" 11759 11760fi 11761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5 11762$as_echo "$ol_cv_pthread_lpthread" >&6; } 11763 11764 if test $ol_cv_pthread_lpthread = yes ; then 11765 ol_link_pthreads="-lpthread" 11766 ol_link_threads=posix 11767 fi 11768fi 11769 11770 # Pthread try link: -lc_r (ol_cv_pthread_lc_r) 11771if test "$ol_link_threads" = no ; then 11772 # try -lc_r 11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5 11774$as_echo_n "checking for pthread link with -lc_r... " >&6; } 11775if ${ol_cv_pthread_lc_r+:} false; then : 11776 $as_echo_n "(cached) " >&6 11777else 11778 11779 # save the flags 11780 ol_LIBS="$LIBS" 11781 LIBS="-lc_r $LIBS" 11782 11783 if test "$cross_compiling" = yes; then : 11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11785/* end confdefs.h. */ 11786 11787/* pthread test headers */ 11788#include <pthread.h> 11789#if HAVE_PTHREADS < 7 11790#include <errno.h> 11791#endif 11792#ifndef NULL 11793#define NULL (void*)0 11794#endif 11795 11796static void *task(p) 11797 void *p; 11798{ 11799 return (void *) (p == NULL); 11800} 11801 11802int 11803main () 11804{ 11805 11806 /* pthread test function */ 11807#ifndef PTHREAD_CREATE_DETACHED 11808#define PTHREAD_CREATE_DETACHED 1 11809#endif 11810 pthread_t t; 11811 int status; 11812 int detach = PTHREAD_CREATE_DETACHED; 11813 11814#if HAVE_PTHREADS > 4 11815 /* Final pthreads */ 11816 pthread_attr_t attr; 11817 11818 status = pthread_attr_init(&attr); 11819 if( status ) return status; 11820 11821#if HAVE_PTHREADS < 7 11822 status = pthread_attr_setdetachstate(&attr, &detach); 11823 if( status < 0 ) status = errno; 11824#else 11825 status = pthread_attr_setdetachstate(&attr, detach); 11826#endif 11827 if( status ) return status; 11828 status = pthread_create( &t, &attr, task, NULL ); 11829#if HAVE_PTHREADS < 7 11830 if( status < 0 ) status = errno; 11831#endif 11832 if( status ) return status; 11833#else 11834 /* Draft 4 pthreads */ 11835 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11836 if( status ) return errno; 11837 11838 /* give thread a chance to complete */ 11839 /* it should remain joinable and hence detachable */ 11840 sleep( 1 ); 11841 11842 status = pthread_detach( &t ); 11843 if( status ) return errno; 11844#endif 11845 11846#ifdef HAVE_LINUX_THREADS 11847 pthread_kill_other_threads_np(); 11848#endif 11849 11850 return 0; 11851 11852 ; 11853 return 0; 11854} 11855_ACEOF 11856if ac_fn_c_try_link "$LINENO"; then : 11857 ol_cv_pthread_lc_r=yes 11858else 11859 ol_cv_pthread_lc_r=no 11860fi 11861rm -f core conftest.err conftest.$ac_objext \ 11862 conftest$ac_exeext conftest.$ac_ext 11863else 11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11865/* end confdefs.h. */ 11866 11867 11868/* pthread test headers */ 11869#include <pthread.h> 11870#if HAVE_PTHREADS < 7 11871#include <errno.h> 11872#endif 11873#ifndef NULL 11874#define NULL (void*)0 11875#endif 11876 11877static void *task(p) 11878 void *p; 11879{ 11880 return (void *) (p == NULL); 11881} 11882 11883 11884int main(argc, argv) 11885 int argc; 11886 char **argv; 11887{ 11888 11889 /* pthread test function */ 11890#ifndef PTHREAD_CREATE_DETACHED 11891#define PTHREAD_CREATE_DETACHED 1 11892#endif 11893 pthread_t t; 11894 int status; 11895 int detach = PTHREAD_CREATE_DETACHED; 11896 11897#if HAVE_PTHREADS > 4 11898 /* Final pthreads */ 11899 pthread_attr_t attr; 11900 11901 status = pthread_attr_init(&attr); 11902 if( status ) return status; 11903 11904#if HAVE_PTHREADS < 7 11905 status = pthread_attr_setdetachstate(&attr, &detach); 11906 if( status < 0 ) status = errno; 11907#else 11908 status = pthread_attr_setdetachstate(&attr, detach); 11909#endif 11910 if( status ) return status; 11911 status = pthread_create( &t, &attr, task, NULL ); 11912#if HAVE_PTHREADS < 7 11913 if( status < 0 ) status = errno; 11914#endif 11915 if( status ) return status; 11916#else 11917 /* Draft 4 pthreads */ 11918 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11919 if( status ) return errno; 11920 11921 /* give thread a chance to complete */ 11922 /* it should remain joinable and hence detachable */ 11923 sleep( 1 ); 11924 11925 status = pthread_detach( &t ); 11926 if( status ) return errno; 11927#endif 11928 11929#ifdef HAVE_LINUX_THREADS 11930 pthread_kill_other_threads_np(); 11931#endif 11932 11933 return 0; 11934 11935} 11936 11937_ACEOF 11938if ac_fn_c_try_run "$LINENO"; then : 11939 ol_cv_pthread_lc_r=yes 11940else 11941 ol_cv_pthread_lc_r=no 11942fi 11943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11944 conftest.$ac_objext conftest.beam conftest.$ac_ext 11945fi 11946 11947 11948 # restore the LIBS 11949 LIBS="$ol_LIBS" 11950 11951fi 11952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5 11953$as_echo "$ol_cv_pthread_lc_r" >&6; } 11954 11955 if test $ol_cv_pthread_lc_r = yes ; then 11956 ol_link_pthreads="-lc_r" 11957 ol_link_threads=posix 11958 fi 11959fi 11960 11961 11962 # Pthread try link: -threads (ol_cv_pthread_threads) 11963if test "$ol_link_threads" = no ; then 11964 # try -threads 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5 11966$as_echo_n "checking for pthread link with -threads... " >&6; } 11967if ${ol_cv_pthread_threads+:} false; then : 11968 $as_echo_n "(cached) " >&6 11969else 11970 11971 # save the flags 11972 ol_LIBS="$LIBS" 11973 LIBS="-threads $LIBS" 11974 11975 if test "$cross_compiling" = yes; then : 11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11977/* end confdefs.h. */ 11978 11979/* pthread test headers */ 11980#include <pthread.h> 11981#if HAVE_PTHREADS < 7 11982#include <errno.h> 11983#endif 11984#ifndef NULL 11985#define NULL (void*)0 11986#endif 11987 11988static void *task(p) 11989 void *p; 11990{ 11991 return (void *) (p == NULL); 11992} 11993 11994int 11995main () 11996{ 11997 11998 /* pthread test function */ 11999#ifndef PTHREAD_CREATE_DETACHED 12000#define PTHREAD_CREATE_DETACHED 1 12001#endif 12002 pthread_t t; 12003 int status; 12004 int detach = PTHREAD_CREATE_DETACHED; 12005 12006#if HAVE_PTHREADS > 4 12007 /* Final pthreads */ 12008 pthread_attr_t attr; 12009 12010 status = pthread_attr_init(&attr); 12011 if( status ) return status; 12012 12013#if HAVE_PTHREADS < 7 12014 status = pthread_attr_setdetachstate(&attr, &detach); 12015 if( status < 0 ) status = errno; 12016#else 12017 status = pthread_attr_setdetachstate(&attr, detach); 12018#endif 12019 if( status ) return status; 12020 status = pthread_create( &t, &attr, task, NULL ); 12021#if HAVE_PTHREADS < 7 12022 if( status < 0 ) status = errno; 12023#endif 12024 if( status ) return status; 12025#else 12026 /* Draft 4 pthreads */ 12027 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12028 if( status ) return errno; 12029 12030 /* give thread a chance to complete */ 12031 /* it should remain joinable and hence detachable */ 12032 sleep( 1 ); 12033 12034 status = pthread_detach( &t ); 12035 if( status ) return errno; 12036#endif 12037 12038#ifdef HAVE_LINUX_THREADS 12039 pthread_kill_other_threads_np(); 12040#endif 12041 12042 return 0; 12043 12044 ; 12045 return 0; 12046} 12047_ACEOF 12048if ac_fn_c_try_link "$LINENO"; then : 12049 ol_cv_pthread_threads=yes 12050else 12051 ol_cv_pthread_threads=no 12052fi 12053rm -f core conftest.err conftest.$ac_objext \ 12054 conftest$ac_exeext conftest.$ac_ext 12055else 12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12057/* end confdefs.h. */ 12058 12059 12060/* pthread test headers */ 12061#include <pthread.h> 12062#if HAVE_PTHREADS < 7 12063#include <errno.h> 12064#endif 12065#ifndef NULL 12066#define NULL (void*)0 12067#endif 12068 12069static void *task(p) 12070 void *p; 12071{ 12072 return (void *) (p == NULL); 12073} 12074 12075 12076int main(argc, argv) 12077 int argc; 12078 char **argv; 12079{ 12080 12081 /* pthread test function */ 12082#ifndef PTHREAD_CREATE_DETACHED 12083#define PTHREAD_CREATE_DETACHED 1 12084#endif 12085 pthread_t t; 12086 int status; 12087 int detach = PTHREAD_CREATE_DETACHED; 12088 12089#if HAVE_PTHREADS > 4 12090 /* Final pthreads */ 12091 pthread_attr_t attr; 12092 12093 status = pthread_attr_init(&attr); 12094 if( status ) return status; 12095 12096#if HAVE_PTHREADS < 7 12097 status = pthread_attr_setdetachstate(&attr, &detach); 12098 if( status < 0 ) status = errno; 12099#else 12100 status = pthread_attr_setdetachstate(&attr, detach); 12101#endif 12102 if( status ) return status; 12103 status = pthread_create( &t, &attr, task, NULL ); 12104#if HAVE_PTHREADS < 7 12105 if( status < 0 ) status = errno; 12106#endif 12107 if( status ) return status; 12108#else 12109 /* Draft 4 pthreads */ 12110 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12111 if( status ) return errno; 12112 12113 /* give thread a chance to complete */ 12114 /* it should remain joinable and hence detachable */ 12115 sleep( 1 ); 12116 12117 status = pthread_detach( &t ); 12118 if( status ) return errno; 12119#endif 12120 12121#ifdef HAVE_LINUX_THREADS 12122 pthread_kill_other_threads_np(); 12123#endif 12124 12125 return 0; 12126 12127} 12128 12129_ACEOF 12130if ac_fn_c_try_run "$LINENO"; then : 12131 ol_cv_pthread_threads=yes 12132else 12133 ol_cv_pthread_threads=no 12134fi 12135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12136 conftest.$ac_objext conftest.beam conftest.$ac_ext 12137fi 12138 12139 12140 # restore the LIBS 12141 LIBS="$ol_LIBS" 12142 12143fi 12144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5 12145$as_echo "$ol_cv_pthread_threads" >&6; } 12146 12147 if test $ol_cv_pthread_threads = yes ; then 12148 ol_link_pthreads="-threads" 12149 ol_link_threads=posix 12150 fi 12151fi 12152 12153 12154 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r) 12155if test "$ol_link_threads" = no ; then 12156 # try -lpthreads -lmach -lexc -lc_r 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5 12158$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; } 12159if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then : 12160 $as_echo_n "(cached) " >&6 12161else 12162 12163 # save the flags 12164 ol_LIBS="$LIBS" 12165 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS" 12166 12167 if test "$cross_compiling" = yes; then : 12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12169/* end confdefs.h. */ 12170 12171/* pthread test headers */ 12172#include <pthread.h> 12173#if HAVE_PTHREADS < 7 12174#include <errno.h> 12175#endif 12176#ifndef NULL 12177#define NULL (void*)0 12178#endif 12179 12180static void *task(p) 12181 void *p; 12182{ 12183 return (void *) (p == NULL); 12184} 12185 12186int 12187main () 12188{ 12189 12190 /* pthread test function */ 12191#ifndef PTHREAD_CREATE_DETACHED 12192#define PTHREAD_CREATE_DETACHED 1 12193#endif 12194 pthread_t t; 12195 int status; 12196 int detach = PTHREAD_CREATE_DETACHED; 12197 12198#if HAVE_PTHREADS > 4 12199 /* Final pthreads */ 12200 pthread_attr_t attr; 12201 12202 status = pthread_attr_init(&attr); 12203 if( status ) return status; 12204 12205#if HAVE_PTHREADS < 7 12206 status = pthread_attr_setdetachstate(&attr, &detach); 12207 if( status < 0 ) status = errno; 12208#else 12209 status = pthread_attr_setdetachstate(&attr, detach); 12210#endif 12211 if( status ) return status; 12212 status = pthread_create( &t, &attr, task, NULL ); 12213#if HAVE_PTHREADS < 7 12214 if( status < 0 ) status = errno; 12215#endif 12216 if( status ) return status; 12217#else 12218 /* Draft 4 pthreads */ 12219 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12220 if( status ) return errno; 12221 12222 /* give thread a chance to complete */ 12223 /* it should remain joinable and hence detachable */ 12224 sleep( 1 ); 12225 12226 status = pthread_detach( &t ); 12227 if( status ) return errno; 12228#endif 12229 12230#ifdef HAVE_LINUX_THREADS 12231 pthread_kill_other_threads_np(); 12232#endif 12233 12234 return 0; 12235 12236 ; 12237 return 0; 12238} 12239_ACEOF 12240if ac_fn_c_try_link "$LINENO"; then : 12241 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 12242else 12243 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 12244fi 12245rm -f core conftest.err conftest.$ac_objext \ 12246 conftest$ac_exeext conftest.$ac_ext 12247else 12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12249/* end confdefs.h. */ 12250 12251 12252/* pthread test headers */ 12253#include <pthread.h> 12254#if HAVE_PTHREADS < 7 12255#include <errno.h> 12256#endif 12257#ifndef NULL 12258#define NULL (void*)0 12259#endif 12260 12261static void *task(p) 12262 void *p; 12263{ 12264 return (void *) (p == NULL); 12265} 12266 12267 12268int main(argc, argv) 12269 int argc; 12270 char **argv; 12271{ 12272 12273 /* pthread test function */ 12274#ifndef PTHREAD_CREATE_DETACHED 12275#define PTHREAD_CREATE_DETACHED 1 12276#endif 12277 pthread_t t; 12278 int status; 12279 int detach = PTHREAD_CREATE_DETACHED; 12280 12281#if HAVE_PTHREADS > 4 12282 /* Final pthreads */ 12283 pthread_attr_t attr; 12284 12285 status = pthread_attr_init(&attr); 12286 if( status ) return status; 12287 12288#if HAVE_PTHREADS < 7 12289 status = pthread_attr_setdetachstate(&attr, &detach); 12290 if( status < 0 ) status = errno; 12291#else 12292 status = pthread_attr_setdetachstate(&attr, detach); 12293#endif 12294 if( status ) return status; 12295 status = pthread_create( &t, &attr, task, NULL ); 12296#if HAVE_PTHREADS < 7 12297 if( status < 0 ) status = errno; 12298#endif 12299 if( status ) return status; 12300#else 12301 /* Draft 4 pthreads */ 12302 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12303 if( status ) return errno; 12304 12305 /* give thread a chance to complete */ 12306 /* it should remain joinable and hence detachable */ 12307 sleep( 1 ); 12308 12309 status = pthread_detach( &t ); 12310 if( status ) return errno; 12311#endif 12312 12313#ifdef HAVE_LINUX_THREADS 12314 pthread_kill_other_threads_np(); 12315#endif 12316 12317 return 0; 12318 12319} 12320 12321_ACEOF 12322if ac_fn_c_try_run "$LINENO"; then : 12323 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 12324else 12325 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 12326fi 12327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12328 conftest.$ac_objext conftest.beam conftest.$ac_ext 12329fi 12330 12331 12332 # restore the LIBS 12333 LIBS="$ol_LIBS" 12334 12335fi 12336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5 12337$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; } 12338 12339 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then 12340 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r" 12341 ol_link_threads=posix 12342 fi 12343fi 12344 12345 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc) 12346if test "$ol_link_threads" = no ; then 12347 # try -lpthreads -lmach -lexc 12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5 12349$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; } 12350if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then : 12351 $as_echo_n "(cached) " >&6 12352else 12353 12354 # save the flags 12355 ol_LIBS="$LIBS" 12356 LIBS="-lpthreads -lmach -lexc $LIBS" 12357 12358 if test "$cross_compiling" = yes; then : 12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12360/* end confdefs.h. */ 12361 12362/* pthread test headers */ 12363#include <pthread.h> 12364#if HAVE_PTHREADS < 7 12365#include <errno.h> 12366#endif 12367#ifndef NULL 12368#define NULL (void*)0 12369#endif 12370 12371static void *task(p) 12372 void *p; 12373{ 12374 return (void *) (p == NULL); 12375} 12376 12377int 12378main () 12379{ 12380 12381 /* pthread test function */ 12382#ifndef PTHREAD_CREATE_DETACHED 12383#define PTHREAD_CREATE_DETACHED 1 12384#endif 12385 pthread_t t; 12386 int status; 12387 int detach = PTHREAD_CREATE_DETACHED; 12388 12389#if HAVE_PTHREADS > 4 12390 /* Final pthreads */ 12391 pthread_attr_t attr; 12392 12393 status = pthread_attr_init(&attr); 12394 if( status ) return status; 12395 12396#if HAVE_PTHREADS < 7 12397 status = pthread_attr_setdetachstate(&attr, &detach); 12398 if( status < 0 ) status = errno; 12399#else 12400 status = pthread_attr_setdetachstate(&attr, detach); 12401#endif 12402 if( status ) return status; 12403 status = pthread_create( &t, &attr, task, NULL ); 12404#if HAVE_PTHREADS < 7 12405 if( status < 0 ) status = errno; 12406#endif 12407 if( status ) return status; 12408#else 12409 /* Draft 4 pthreads */ 12410 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12411 if( status ) return errno; 12412 12413 /* give thread a chance to complete */ 12414 /* it should remain joinable and hence detachable */ 12415 sleep( 1 ); 12416 12417 status = pthread_detach( &t ); 12418 if( status ) return errno; 12419#endif 12420 12421#ifdef HAVE_LINUX_THREADS 12422 pthread_kill_other_threads_np(); 12423#endif 12424 12425 return 0; 12426 12427 ; 12428 return 0; 12429} 12430_ACEOF 12431if ac_fn_c_try_link "$LINENO"; then : 12432 ol_cv_pthread_lpthreads_lmach_lexc=yes 12433else 12434 ol_cv_pthread_lpthreads_lmach_lexc=no 12435fi 12436rm -f core conftest.err conftest.$ac_objext \ 12437 conftest$ac_exeext conftest.$ac_ext 12438else 12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12440/* end confdefs.h. */ 12441 12442 12443/* pthread test headers */ 12444#include <pthread.h> 12445#if HAVE_PTHREADS < 7 12446#include <errno.h> 12447#endif 12448#ifndef NULL 12449#define NULL (void*)0 12450#endif 12451 12452static void *task(p) 12453 void *p; 12454{ 12455 return (void *) (p == NULL); 12456} 12457 12458 12459int main(argc, argv) 12460 int argc; 12461 char **argv; 12462{ 12463 12464 /* pthread test function */ 12465#ifndef PTHREAD_CREATE_DETACHED 12466#define PTHREAD_CREATE_DETACHED 1 12467#endif 12468 pthread_t t; 12469 int status; 12470 int detach = PTHREAD_CREATE_DETACHED; 12471 12472#if HAVE_PTHREADS > 4 12473 /* Final pthreads */ 12474 pthread_attr_t attr; 12475 12476 status = pthread_attr_init(&attr); 12477 if( status ) return status; 12478 12479#if HAVE_PTHREADS < 7 12480 status = pthread_attr_setdetachstate(&attr, &detach); 12481 if( status < 0 ) status = errno; 12482#else 12483 status = pthread_attr_setdetachstate(&attr, detach); 12484#endif 12485 if( status ) return status; 12486 status = pthread_create( &t, &attr, task, NULL ); 12487#if HAVE_PTHREADS < 7 12488 if( status < 0 ) status = errno; 12489#endif 12490 if( status ) return status; 12491#else 12492 /* Draft 4 pthreads */ 12493 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12494 if( status ) return errno; 12495 12496 /* give thread a chance to complete */ 12497 /* it should remain joinable and hence detachable */ 12498 sleep( 1 ); 12499 12500 status = pthread_detach( &t ); 12501 if( status ) return errno; 12502#endif 12503 12504#ifdef HAVE_LINUX_THREADS 12505 pthread_kill_other_threads_np(); 12506#endif 12507 12508 return 0; 12509 12510} 12511 12512_ACEOF 12513if ac_fn_c_try_run "$LINENO"; then : 12514 ol_cv_pthread_lpthreads_lmach_lexc=yes 12515else 12516 ol_cv_pthread_lpthreads_lmach_lexc=no 12517fi 12518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12519 conftest.$ac_objext conftest.beam conftest.$ac_ext 12520fi 12521 12522 12523 # restore the LIBS 12524 LIBS="$ol_LIBS" 12525 12526fi 12527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5 12528$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; } 12529 12530 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then 12531 ol_link_pthreads="-lpthreads -lmach -lexc" 12532 ol_link_threads=posix 12533 fi 12534fi 12535 12536 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc) 12537if test "$ol_link_threads" = no ; then 12538 # try -lpthreads -lexc 12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5 12540$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; } 12541if ${ol_cv_pthread_lpthreads_lexc+:} false; then : 12542 $as_echo_n "(cached) " >&6 12543else 12544 12545 # save the flags 12546 ol_LIBS="$LIBS" 12547 LIBS="-lpthreads -lexc $LIBS" 12548 12549 if test "$cross_compiling" = yes; then : 12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12551/* end confdefs.h. */ 12552 12553/* pthread test headers */ 12554#include <pthread.h> 12555#if HAVE_PTHREADS < 7 12556#include <errno.h> 12557#endif 12558#ifndef NULL 12559#define NULL (void*)0 12560#endif 12561 12562static void *task(p) 12563 void *p; 12564{ 12565 return (void *) (p == NULL); 12566} 12567 12568int 12569main () 12570{ 12571 12572 /* pthread test function */ 12573#ifndef PTHREAD_CREATE_DETACHED 12574#define PTHREAD_CREATE_DETACHED 1 12575#endif 12576 pthread_t t; 12577 int status; 12578 int detach = PTHREAD_CREATE_DETACHED; 12579 12580#if HAVE_PTHREADS > 4 12581 /* Final pthreads */ 12582 pthread_attr_t attr; 12583 12584 status = pthread_attr_init(&attr); 12585 if( status ) return status; 12586 12587#if HAVE_PTHREADS < 7 12588 status = pthread_attr_setdetachstate(&attr, &detach); 12589 if( status < 0 ) status = errno; 12590#else 12591 status = pthread_attr_setdetachstate(&attr, detach); 12592#endif 12593 if( status ) return status; 12594 status = pthread_create( &t, &attr, task, NULL ); 12595#if HAVE_PTHREADS < 7 12596 if( status < 0 ) status = errno; 12597#endif 12598 if( status ) return status; 12599#else 12600 /* Draft 4 pthreads */ 12601 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12602 if( status ) return errno; 12603 12604 /* give thread a chance to complete */ 12605 /* it should remain joinable and hence detachable */ 12606 sleep( 1 ); 12607 12608 status = pthread_detach( &t ); 12609 if( status ) return errno; 12610#endif 12611 12612#ifdef HAVE_LINUX_THREADS 12613 pthread_kill_other_threads_np(); 12614#endif 12615 12616 return 0; 12617 12618 ; 12619 return 0; 12620} 12621_ACEOF 12622if ac_fn_c_try_link "$LINENO"; then : 12623 ol_cv_pthread_lpthreads_lexc=yes 12624else 12625 ol_cv_pthread_lpthreads_lexc=no 12626fi 12627rm -f core conftest.err conftest.$ac_objext \ 12628 conftest$ac_exeext conftest.$ac_ext 12629else 12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12631/* end confdefs.h. */ 12632 12633 12634/* pthread test headers */ 12635#include <pthread.h> 12636#if HAVE_PTHREADS < 7 12637#include <errno.h> 12638#endif 12639#ifndef NULL 12640#define NULL (void*)0 12641#endif 12642 12643static void *task(p) 12644 void *p; 12645{ 12646 return (void *) (p == NULL); 12647} 12648 12649 12650int main(argc, argv) 12651 int argc; 12652 char **argv; 12653{ 12654 12655 /* pthread test function */ 12656#ifndef PTHREAD_CREATE_DETACHED 12657#define PTHREAD_CREATE_DETACHED 1 12658#endif 12659 pthread_t t; 12660 int status; 12661 int detach = PTHREAD_CREATE_DETACHED; 12662 12663#if HAVE_PTHREADS > 4 12664 /* Final pthreads */ 12665 pthread_attr_t attr; 12666 12667 status = pthread_attr_init(&attr); 12668 if( status ) return status; 12669 12670#if HAVE_PTHREADS < 7 12671 status = pthread_attr_setdetachstate(&attr, &detach); 12672 if( status < 0 ) status = errno; 12673#else 12674 status = pthread_attr_setdetachstate(&attr, detach); 12675#endif 12676 if( status ) return status; 12677 status = pthread_create( &t, &attr, task, NULL ); 12678#if HAVE_PTHREADS < 7 12679 if( status < 0 ) status = errno; 12680#endif 12681 if( status ) return status; 12682#else 12683 /* Draft 4 pthreads */ 12684 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12685 if( status ) return errno; 12686 12687 /* give thread a chance to complete */ 12688 /* it should remain joinable and hence detachable */ 12689 sleep( 1 ); 12690 12691 status = pthread_detach( &t ); 12692 if( status ) return errno; 12693#endif 12694 12695#ifdef HAVE_LINUX_THREADS 12696 pthread_kill_other_threads_np(); 12697#endif 12698 12699 return 0; 12700 12701} 12702 12703_ACEOF 12704if ac_fn_c_try_run "$LINENO"; then : 12705 ol_cv_pthread_lpthreads_lexc=yes 12706else 12707 ol_cv_pthread_lpthreads_lexc=no 12708fi 12709rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12710 conftest.$ac_objext conftest.beam conftest.$ac_ext 12711fi 12712 12713 12714 # restore the LIBS 12715 LIBS="$ol_LIBS" 12716 12717fi 12718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5 12719$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; } 12720 12721 if test $ol_cv_pthread_lpthreads_lexc = yes ; then 12722 ol_link_pthreads="-lpthreads -lexc" 12723 ol_link_threads=posix 12724 fi 12725fi 12726 12727 12728 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads) 12729if test "$ol_link_threads" = no ; then 12730 # try -lpthreads 12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5 12732$as_echo_n "checking for pthread link with -lpthreads... " >&6; } 12733if ${ol_cv_pthread_lib_lpthreads+:} false; then : 12734 $as_echo_n "(cached) " >&6 12735else 12736 12737 # save the flags 12738 ol_LIBS="$LIBS" 12739 LIBS="-lpthreads $LIBS" 12740 12741 if test "$cross_compiling" = yes; then : 12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12743/* end confdefs.h. */ 12744 12745/* pthread test headers */ 12746#include <pthread.h> 12747#if HAVE_PTHREADS < 7 12748#include <errno.h> 12749#endif 12750#ifndef NULL 12751#define NULL (void*)0 12752#endif 12753 12754static void *task(p) 12755 void *p; 12756{ 12757 return (void *) (p == NULL); 12758} 12759 12760int 12761main () 12762{ 12763 12764 /* pthread test function */ 12765#ifndef PTHREAD_CREATE_DETACHED 12766#define PTHREAD_CREATE_DETACHED 1 12767#endif 12768 pthread_t t; 12769 int status; 12770 int detach = PTHREAD_CREATE_DETACHED; 12771 12772#if HAVE_PTHREADS > 4 12773 /* Final pthreads */ 12774 pthread_attr_t attr; 12775 12776 status = pthread_attr_init(&attr); 12777 if( status ) return status; 12778 12779#if HAVE_PTHREADS < 7 12780 status = pthread_attr_setdetachstate(&attr, &detach); 12781 if( status < 0 ) status = errno; 12782#else 12783 status = pthread_attr_setdetachstate(&attr, detach); 12784#endif 12785 if( status ) return status; 12786 status = pthread_create( &t, &attr, task, NULL ); 12787#if HAVE_PTHREADS < 7 12788 if( status < 0 ) status = errno; 12789#endif 12790 if( status ) return status; 12791#else 12792 /* Draft 4 pthreads */ 12793 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12794 if( status ) return errno; 12795 12796 /* give thread a chance to complete */ 12797 /* it should remain joinable and hence detachable */ 12798 sleep( 1 ); 12799 12800 status = pthread_detach( &t ); 12801 if( status ) return errno; 12802#endif 12803 12804#ifdef HAVE_LINUX_THREADS 12805 pthread_kill_other_threads_np(); 12806#endif 12807 12808 return 0; 12809 12810 ; 12811 return 0; 12812} 12813_ACEOF 12814if ac_fn_c_try_link "$LINENO"; then : 12815 ol_cv_pthread_lib_lpthreads=yes 12816else 12817 ol_cv_pthread_lib_lpthreads=no 12818fi 12819rm -f core conftest.err conftest.$ac_objext \ 12820 conftest$ac_exeext conftest.$ac_ext 12821else 12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12823/* end confdefs.h. */ 12824 12825 12826/* pthread test headers */ 12827#include <pthread.h> 12828#if HAVE_PTHREADS < 7 12829#include <errno.h> 12830#endif 12831#ifndef NULL 12832#define NULL (void*)0 12833#endif 12834 12835static void *task(p) 12836 void *p; 12837{ 12838 return (void *) (p == NULL); 12839} 12840 12841 12842int main(argc, argv) 12843 int argc; 12844 char **argv; 12845{ 12846 12847 /* pthread test function */ 12848#ifndef PTHREAD_CREATE_DETACHED 12849#define PTHREAD_CREATE_DETACHED 1 12850#endif 12851 pthread_t t; 12852 int status; 12853 int detach = PTHREAD_CREATE_DETACHED; 12854 12855#if HAVE_PTHREADS > 4 12856 /* Final pthreads */ 12857 pthread_attr_t attr; 12858 12859 status = pthread_attr_init(&attr); 12860 if( status ) return status; 12861 12862#if HAVE_PTHREADS < 7 12863 status = pthread_attr_setdetachstate(&attr, &detach); 12864 if( status < 0 ) status = errno; 12865#else 12866 status = pthread_attr_setdetachstate(&attr, detach); 12867#endif 12868 if( status ) return status; 12869 status = pthread_create( &t, &attr, task, NULL ); 12870#if HAVE_PTHREADS < 7 12871 if( status < 0 ) status = errno; 12872#endif 12873 if( status ) return status; 12874#else 12875 /* Draft 4 pthreads */ 12876 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12877 if( status ) return errno; 12878 12879 /* give thread a chance to complete */ 12880 /* it should remain joinable and hence detachable */ 12881 sleep( 1 ); 12882 12883 status = pthread_detach( &t ); 12884 if( status ) return errno; 12885#endif 12886 12887#ifdef HAVE_LINUX_THREADS 12888 pthread_kill_other_threads_np(); 12889#endif 12890 12891 return 0; 12892 12893} 12894 12895_ACEOF 12896if ac_fn_c_try_run "$LINENO"; then : 12897 ol_cv_pthread_lib_lpthreads=yes 12898else 12899 ol_cv_pthread_lib_lpthreads=no 12900fi 12901rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12902 conftest.$ac_objext conftest.beam conftest.$ac_ext 12903fi 12904 12905 12906 # restore the LIBS 12907 LIBS="$ol_LIBS" 12908 12909fi 12910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5 12911$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; } 12912 12913 if test $ol_cv_pthread_lib_lpthreads = yes ; then 12914 ol_link_pthreads="-lpthreads" 12915 ol_link_threads=posix 12916 fi 12917fi 12918 12919 12920 if test $ol_link_threads != no ; then 12921 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads" 12922 12923 save_CPPFLAGS="$CPPFLAGS" 12924 save_LIBS="$LIBS" 12925 LIBS="$LTHREAD_LIBS $LIBS" 12926 12927 for ac_func in sched_yield pthread_yield thr_yield 12928do : 12929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12930ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12931if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12932 cat >>confdefs.h <<_ACEOF 12933#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12934_ACEOF 12935 12936fi 12937done 12938 12939 12940 if test $ac_cv_func_sched_yield = no && 12941 test $ac_cv_func_pthread_yield = no && 12942 test $ac_cv_func_thr_yield = no ; then 12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 12944$as_echo_n "checking for sched_yield in -lrt... " >&6; } 12945if ${ac_cv_lib_rt_sched_yield+:} false; then : 12946 $as_echo_n "(cached) " >&6 12947else 12948 ac_check_lib_save_LIBS=$LIBS 12949LIBS="-lrt $LIBS" 12950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12951/* end confdefs.h. */ 12952 12953/* Override any GCC internal prototype to avoid an error. 12954 Use char because int might match the return type of a GCC 12955 builtin and then its argument prototype would still apply. */ 12956#ifdef __cplusplus 12957extern "C" 12958#endif 12959char sched_yield (); 12960int 12961main () 12962{ 12963return sched_yield (); 12964 ; 12965 return 0; 12966} 12967_ACEOF 12968if ac_fn_c_try_link "$LINENO"; then : 12969 ac_cv_lib_rt_sched_yield=yes 12970else 12971 ac_cv_lib_rt_sched_yield=no 12972fi 12973rm -f core conftest.err conftest.$ac_objext \ 12974 conftest$ac_exeext conftest.$ac_ext 12975LIBS=$ac_check_lib_save_LIBS 12976fi 12977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 12978$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 12979if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 12980 LTHREAD_LIBS="$LTHREAD_LIBS -lrt" 12981 12982$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h 12983 12984 ac_cv_func_sched_yield=yes 12985else 12986 ac_cv_func_sched_yield=no 12987fi 12988 12989 fi 12990 if test $ac_cv_func_sched_yield = no && 12991 test $ac_cv_func_pthread_yield = no && 12992 test "$ac_cv_func_thr_yield" = no ; then 12993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5 12994$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;} 12995 fi 12996 12997 for ac_func in pthread_kill 12998do : 12999 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill" 13000if test "x$ac_cv_func_pthread_kill" = xyes; then : 13001 cat >>confdefs.h <<_ACEOF 13002#define HAVE_PTHREAD_KILL 1 13003_ACEOF 13004 13005fi 13006done 13007 13008 13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5 13010$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; } 13011if ${ol_cv_func_pthread_rwlock_destroy+:} false; then : 13012 $as_echo_n "(cached) " >&6 13013else 13014 13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13016/* end confdefs.h. */ 13017 13018#include <pthread.h> 13019pthread_rwlock_t rwlock; 13020 13021int 13022main () 13023{ 13024pthread_rwlock_destroy(&rwlock); 13025 ; 13026 return 0; 13027} 13028_ACEOF 13029if ac_fn_c_try_link "$LINENO"; then : 13030 ol_cv_func_pthread_rwlock_destroy=yes 13031else 13032 ol_cv_func_pthread_rwlock_destroy=no 13033fi 13034rm -f core conftest.err conftest.$ac_objext \ 13035 conftest$ac_exeext conftest.$ac_ext 13036 13037fi 13038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5 13039$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; } 13040 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then 13041 13042$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h 13043 13044 fi 13045 13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5 13047$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; } 13048if ${ol_cv_func_pthread_detach+:} false; then : 13049 $as_echo_n "(cached) " >&6 13050else 13051 13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13053/* end confdefs.h. */ 13054 13055#include <pthread.h> 13056#ifndef NULL 13057#define NULL (void*)0 13058#endif 13059 13060int 13061main () 13062{ 13063pthread_detach(NULL); 13064 ; 13065 return 0; 13066} 13067_ACEOF 13068if ac_fn_c_try_link "$LINENO"; then : 13069 ol_cv_func_pthread_detach=yes 13070else 13071 ol_cv_func_pthread_detach=no 13072fi 13073rm -f core conftest.err conftest.$ac_objext \ 13074 conftest$ac_exeext conftest.$ac_ext 13075 13076fi 13077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5 13078$as_echo "$ol_cv_func_pthread_detach" >&6; } 13079 13080 if test $ol_cv_func_pthread_detach = no ; then 13081 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5 13082 fi 13083 13084 13085$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h 13086 13087 13088 for ac_func in \ 13089 pthread_setconcurrency \ 13090 pthread_getconcurrency \ 13091 thr_setconcurrency \ 13092 thr_getconcurrency \ 13093 13094do : 13095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13096ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13097if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13098 cat >>confdefs.h <<_ACEOF 13099#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13100_ACEOF 13101 13102fi 13103done 13104 13105 13106 13107 for ac_func in pthread_kill_other_threads_np 13108do : 13109 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np" 13110if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then : 13111 cat >>confdefs.h <<_ACEOF 13112#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1 13113_ACEOF 13114 13115fi 13116done 13117 13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5 13119$as_echo_n "checking for LinuxThreads implementation... " >&6; } 13120if ${ol_cv_sys_linux_threads+:} false; then : 13121 $as_echo_n "(cached) " >&6 13122else 13123 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np 13124fi 13125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5 13126$as_echo "$ol_cv_sys_linux_threads" >&6; } 13127 13128 13129 13130 13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5 13132$as_echo_n "checking for LinuxThreads consistency... " >&6; } 13133if ${ol_cv_linux_threads+:} false; then : 13134 $as_echo_n "(cached) " >&6 13135else 13136 13137 if test $ol_cv_header_linux_threads = yes && 13138 test $ol_cv_sys_linux_threads = yes; then 13139 ol_cv_linux_threads=yes 13140 elif test $ol_cv_header_linux_threads = no && 13141 test $ol_cv_sys_linux_threads = no; then 13142 ol_cv_linux_threads=no 13143 else 13144 ol_cv_linux_threads=error 13145 fi 13146 13147fi 13148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5 13149$as_echo "$ol_cv_linux_threads" >&6; } 13150 13151 13152 if test $ol_cv_linux_threads = error; then 13153 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5; 13154 fi 13155 13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5 13157$as_echo_n "checking if pthread_create() works... " >&6; } 13158if ${ol_cv_pthread_create_works+:} false; then : 13159 $as_echo_n "(cached) " >&6 13160else 13161 13162 if test "$cross_compiling" = yes; then : 13163 ol_cv_pthread_create_works=yes 13164else 13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13166/* end confdefs.h. */ 13167 13168 13169/* pthread test headers */ 13170#include <pthread.h> 13171#if HAVE_PTHREADS < 7 13172#include <errno.h> 13173#endif 13174#ifndef NULL 13175#define NULL (void*)0 13176#endif 13177 13178static void *task(p) 13179 void *p; 13180{ 13181 return (void *) (p == NULL); 13182} 13183 13184 13185int main(argc, argv) 13186 int argc; 13187 char **argv; 13188{ 13189 13190 /* pthread test function */ 13191#ifndef PTHREAD_CREATE_DETACHED 13192#define PTHREAD_CREATE_DETACHED 1 13193#endif 13194 pthread_t t; 13195 int status; 13196 int detach = PTHREAD_CREATE_DETACHED; 13197 13198#if HAVE_PTHREADS > 4 13199 /* Final pthreads */ 13200 pthread_attr_t attr; 13201 13202 status = pthread_attr_init(&attr); 13203 if( status ) return status; 13204 13205#if HAVE_PTHREADS < 7 13206 status = pthread_attr_setdetachstate(&attr, &detach); 13207 if( status < 0 ) status = errno; 13208#else 13209 status = pthread_attr_setdetachstate(&attr, detach); 13210#endif 13211 if( status ) return status; 13212 status = pthread_create( &t, &attr, task, NULL ); 13213#if HAVE_PTHREADS < 7 13214 if( status < 0 ) status = errno; 13215#endif 13216 if( status ) return status; 13217#else 13218 /* Draft 4 pthreads */ 13219 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13220 if( status ) return errno; 13221 13222 /* give thread a chance to complete */ 13223 /* it should remain joinable and hence detachable */ 13224 sleep( 1 ); 13225 13226 status = pthread_detach( &t ); 13227 if( status ) return errno; 13228#endif 13229 13230#ifdef HAVE_LINUX_THREADS 13231 pthread_kill_other_threads_np(); 13232#endif 13233 13234 return 0; 13235 13236} 13237 13238_ACEOF 13239if ac_fn_c_try_run "$LINENO"; then : 13240 ol_cv_pthread_create_works=yes 13241else 13242 ol_cv_pthread_create_works=no 13243fi 13244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13245 conftest.$ac_objext conftest.beam conftest.$ac_ext 13246fi 13247 13248fi 13249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5 13250$as_echo "$ol_cv_pthread_create_works" >&6; } 13251 13252 if test $ol_cv_pthread_create_works = no ; then 13253 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5 13254 fi 13255 13256 ol_replace_broken_yield=no 13257 13258 if test $ol_replace_broken_yield = yes ; then 13259 13260$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h 13261 13262 fi 13263 13264 if test x$ol_with_yielding_select = xauto ; then 13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5 13266$as_echo_n "checking if select yields when using pthreads... " >&6; } 13267if ${ol_cv_pthread_select_yields+:} false; then : 13268 $as_echo_n "(cached) " >&6 13269else 13270 13271 if test "$cross_compiling" = yes; then : 13272 ol_cv_pthread_select_yields=cross 13273else 13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13275/* end confdefs.h. */ 13276 13277#include <sys/types.h> 13278#include <sys/time.h> 13279#include <unistd.h> 13280#include <pthread.h> 13281#ifndef NULL 13282#define NULL (void*) 0 13283#endif 13284 13285static int fildes[2]; 13286 13287static void *task(p) 13288 void *p; 13289{ 13290 int i; 13291 struct timeval tv; 13292 13293 fd_set rfds; 13294 13295 tv.tv_sec=10; 13296 tv.tv_usec=0; 13297 13298 FD_ZERO(&rfds); 13299 FD_SET(fildes[0], &rfds); 13300 13301 /* we're not interested in any fds */ 13302 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv); 13303 13304 if(i < 0) { 13305 perror("select"); 13306 exit(10); 13307 } 13308 13309 exit(0); /* if we exit here, the select blocked the whole process */ 13310} 13311 13312int main(argc, argv) 13313 int argc; 13314 char **argv; 13315{ 13316 pthread_t t; 13317 13318 /* create a pipe to select */ 13319 if(pipe(&fildes[0])) { 13320 perror("select"); 13321 exit(1); 13322 } 13323 13324#ifdef HAVE_PTHREAD_SETCONCURRENCY 13325 (void) pthread_setconcurrency(2); 13326#else 13327#ifdef HAVE_THR_SETCONCURRENCY 13328 /* Set Solaris LWP concurrency to 2 */ 13329 thr_setconcurrency(2); 13330#endif 13331#endif 13332 13333#if HAVE_PTHREADS < 6 13334 pthread_create(&t, pthread_attr_default, task, NULL); 13335#else 13336 pthread_create(&t, NULL, task, NULL); 13337#endif 13338 13339 /* make sure task runs first */ 13340#ifdef HAVE_THR_YIELD 13341 thr_yield(); 13342#elif defined( HAVE_SCHED_YIELD ) 13343 sched_yield(); 13344#elif defined( HAVE_PTHREAD_YIELD ) 13345 pthread_yield(); 13346#endif 13347 13348 exit(2); 13349} 13350_ACEOF 13351if ac_fn_c_try_run "$LINENO"; then : 13352 ol_cv_pthread_select_yields=no 13353else 13354 ol_cv_pthread_select_yields=yes 13355fi 13356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13357 conftest.$ac_objext conftest.beam conftest.$ac_ext 13358fi 13359 13360fi 13361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5 13362$as_echo "$ol_cv_pthread_select_yields" >&6; } 13363 13364 if test $ol_cv_pthread_select_yields = cross ; then 13365 as_fn_error $? "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5 13366 fi 13367 13368 if test $ol_cv_pthread_select_yields = yes ; then 13369 ol_with_yielding_select=yes 13370 fi 13371 fi 13372 13373 CPPFLAGS="$save_CPPFLAGS" 13374 LIBS="$save_LIBS" 13375 else 13376 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5 13377 fi 13378 fi 13379 13380 if test $ol_with_threads = posix ; then 13381 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5 13382 fi 13383 ;; 13384esac 13385 13386case $ol_with_threads in auto | yes | mach) 13387 13388 for ac_header in mach/cthreads.h cthreads.h 13389do : 13390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13391ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13392if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13393 cat >>confdefs.h <<_ACEOF 13394#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13395_ACEOF 13396 13397fi 13398 13399done 13400 13401 if test $ac_cv_header_mach_cthreads_h = yes ; then 13402 ol_with_threads=found 13403 13404 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 13405if test "x$ac_cv_func_cthread_fork" = xyes; then : 13406 ol_link_threads=yes 13407fi 13408 13409 13410 if test $ol_link_threads = no ; then 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5 13412$as_echo_n "checking for cthread_fork with -all_load... " >&6; } 13413if ${ol_cv_cthread_all_load+:} false; then : 13414 $as_echo_n "(cached) " >&6 13415else 13416 13417 save_LIBS="$LIBS" 13418 LIBS="-all_load $LIBS" 13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13420/* end confdefs.h. */ 13421#include <mach/cthreads.h> 13422int 13423main () 13424{ 13425 13426 cthread_fork((void *)0, (void *)0); 13427 13428 ; 13429 return 0; 13430} 13431_ACEOF 13432if ac_fn_c_try_link "$LINENO"; then : 13433 ol_cv_cthread_all_load=yes 13434else 13435 ol_cv_cthread_all_load=no 13436fi 13437rm -f core conftest.err conftest.$ac_objext \ 13438 conftest$ac_exeext conftest.$ac_ext 13439 LIBS="$save_LIBS" 13440 13441fi 13442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5 13443$as_echo "$ol_cv_cthread_all_load" >&6; } 13444 13445 if test $ol_cv_cthread_all_load = yes ; then 13446 LTHREAD_LIBS="$LTHREAD_LIBS -all_load" 13447 ol_link_threads=mach 13448 ol_with_threads=found 13449 fi 13450 fi 13451 13452 elif test $ac_cv_header_cthreads_h = yes ; then 13453 13454 ol_with_threads=found 13455 13456 save_LIBS="$LIBS" 13457 LIBS="$LIBS -lthreads" 13458 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 13459if test "x$ac_cv_func_cthread_fork" = xyes; then : 13460 ol_link_threads=yes 13461fi 13462 13463 LIBS="$save_LIBS" 13464 13465 if test $ol_link_threads = yes ; then 13466 LTHREAD_LIBS="-lthreads" 13467 ol_link_threads=mach 13468 ol_with_threads=found 13469 else 13470 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 13471 fi 13472 13473 elif test $ol_with_threads = mach ; then 13474 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5 13475 fi 13476 13477 if test $ol_link_threads = mach ; then 13478 13479$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h 13480 13481 elif test $ol_with_threads = found ; then 13482 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 13483 fi 13484 ;; 13485esac 13486 13487case $ol_with_threads in auto | yes | pth) 13488 13489 for ac_header in pth.h 13490do : 13491 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default" 13492if test "x$ac_cv_header_pth_h" = xyes; then : 13493 cat >>confdefs.h <<_ACEOF 13494#define HAVE_PTH_H 1 13495_ACEOF 13496 13497fi 13498 13499done 13500 13501 13502 if test $ac_cv_header_pth_h = yes ; then 13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5 13504$as_echo_n "checking for pth_version in -lpth... " >&6; } 13505if ${ac_cv_lib_pth_pth_version+:} false; then : 13506 $as_echo_n "(cached) " >&6 13507else 13508 ac_check_lib_save_LIBS=$LIBS 13509LIBS="-lpth $LIBS" 13510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13511/* end confdefs.h. */ 13512 13513/* Override any GCC internal prototype to avoid an error. 13514 Use char because int might match the return type of a GCC 13515 builtin and then its argument prototype would still apply. */ 13516#ifdef __cplusplus 13517extern "C" 13518#endif 13519char pth_version (); 13520int 13521main () 13522{ 13523return pth_version (); 13524 ; 13525 return 0; 13526} 13527_ACEOF 13528if ac_fn_c_try_link "$LINENO"; then : 13529 ac_cv_lib_pth_pth_version=yes 13530else 13531 ac_cv_lib_pth_pth_version=no 13532fi 13533rm -f core conftest.err conftest.$ac_objext \ 13534 conftest$ac_exeext conftest.$ac_ext 13535LIBS=$ac_check_lib_save_LIBS 13536fi 13537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5 13538$as_echo "$ac_cv_lib_pth_pth_version" >&6; } 13539if test "x$ac_cv_lib_pth_pth_version" = xyes; then : 13540 have_pth=yes 13541else 13542 have_pth=no 13543fi 13544 13545 13546 if test $have_pth = yes ; then 13547 13548$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h 13549 13550 LTHREAD_LIBS="$LTHREAD_LIBS -lpth" 13551 ol_link_threads=pth 13552 ol_with_threads=found 13553 13554 if test x$ol_with_yielding_select = xauto ; then 13555 ol_with_yielding_select=yes 13556 fi 13557 fi 13558 fi 13559 ;; 13560esac 13561 13562case $ol_with_threads in auto | yes | lwp) 13563 13564 for ac_header in thread.h synch.h 13565do : 13566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13567ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13568if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13569 cat >>confdefs.h <<_ACEOF 13570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13571_ACEOF 13572 13573fi 13574 13575done 13576 13577 if test $ac_cv_header_thread_h = yes && 13578 test $ac_cv_header_synch_h = yes ; then 13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 13580$as_echo_n "checking for thr_create in -lthread... " >&6; } 13581if ${ac_cv_lib_thread_thr_create+:} false; then : 13582 $as_echo_n "(cached) " >&6 13583else 13584 ac_check_lib_save_LIBS=$LIBS 13585LIBS="-lthread $LIBS" 13586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13587/* end confdefs.h. */ 13588 13589/* Override any GCC internal prototype to avoid an error. 13590 Use char because int might match the return type of a GCC 13591 builtin and then its argument prototype would still apply. */ 13592#ifdef __cplusplus 13593extern "C" 13594#endif 13595char thr_create (); 13596int 13597main () 13598{ 13599return thr_create (); 13600 ; 13601 return 0; 13602} 13603_ACEOF 13604if ac_fn_c_try_link "$LINENO"; then : 13605 ac_cv_lib_thread_thr_create=yes 13606else 13607 ac_cv_lib_thread_thr_create=no 13608fi 13609rm -f core conftest.err conftest.$ac_objext \ 13610 conftest$ac_exeext conftest.$ac_ext 13611LIBS=$ac_check_lib_save_LIBS 13612fi 13613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 13614$as_echo "$ac_cv_lib_thread_thr_create" >&6; } 13615if test "x$ac_cv_lib_thread_thr_create" = xyes; then : 13616 have_thr=yes 13617else 13618 have_thr=no 13619fi 13620 13621 13622 if test $have_thr = yes ; then 13623 13624$as_echo "#define HAVE_THR 1" >>confdefs.h 13625 13626 LTHREAD_LIBS="$LTHREAD_LIBS -lthread" 13627 ol_link_threads=thr 13628 13629 if test x$ol_with_yielding_select = xauto ; then 13630 ol_with_yielding_select=yes 13631 fi 13632 13633 for ac_func in \ 13634 thr_setconcurrency \ 13635 thr_getconcurrency \ 13636 13637do : 13638 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13639ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13640if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13641 cat >>confdefs.h <<_ACEOF 13642#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13643_ACEOF 13644 13645fi 13646done 13647 13648 fi 13649 fi 13650 13651 for ac_header in lwp/lwp.h 13652do : 13653 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 13654if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 13655 cat >>confdefs.h <<_ACEOF 13656#define HAVE_LWP_LWP_H 1 13657_ACEOF 13658 13659fi 13660 13661done 13662 13663 if test $ac_cv_header_lwp_lwp_h = yes ; then 13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5 13665$as_echo_n "checking for lwp_create in -llwp... " >&6; } 13666if ${ac_cv_lib_lwp_lwp_create+:} false; then : 13667 $as_echo_n "(cached) " >&6 13668else 13669 ac_check_lib_save_LIBS=$LIBS 13670LIBS="-llwp $LIBS" 13671cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13672/* end confdefs.h. */ 13673 13674/* Override any GCC internal prototype to avoid an error. 13675 Use char because int might match the return type of a GCC 13676 builtin and then its argument prototype would still apply. */ 13677#ifdef __cplusplus 13678extern "C" 13679#endif 13680char lwp_create (); 13681int 13682main () 13683{ 13684return lwp_create (); 13685 ; 13686 return 0; 13687} 13688_ACEOF 13689if ac_fn_c_try_link "$LINENO"; then : 13690 ac_cv_lib_lwp_lwp_create=yes 13691else 13692 ac_cv_lib_lwp_lwp_create=no 13693fi 13694rm -f core conftest.err conftest.$ac_objext \ 13695 conftest$ac_exeext conftest.$ac_ext 13696LIBS=$ac_check_lib_save_LIBS 13697fi 13698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5 13699$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; } 13700if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then : 13701 have_lwp=yes 13702else 13703 have_lwp=no 13704fi 13705 13706 13707 if test $have_lwp = yes ; then 13708 13709$as_echo "#define HAVE_LWP 1" >>confdefs.h 13710 13711 LTHREAD_LIBS="$LTHREAD_LIBS -llwp" 13712 ol_link_threads=lwp 13713 13714 if test x$ol_with_yielding_select = xauto ; then 13715 ol_with_yielding_select=no 13716 fi 13717 fi 13718 fi 13719 ;; 13720esac 13721 13722if test $ol_with_yielding_select = yes ; then 13723 13724$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h 13725 13726fi 13727 13728if test $ol_with_threads = manual ; then 13729 ol_link_threads=yes 13730 13731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5 13732$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;} 13733 13734 for ac_header in pthread.h sched.h 13735do : 13736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13737ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13738if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13739 cat >>confdefs.h <<_ACEOF 13740#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13741_ACEOF 13742 13743fi 13744 13745done 13746 13747 for ac_func in sched_yield pthread_yield 13748do : 13749 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13750ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13751if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13752 cat >>confdefs.h <<_ACEOF 13753#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13754_ACEOF 13755 13756fi 13757done 13758 13759 13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 13761$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 13762if ${ol_cv_header_linux_threads+:} false; then : 13763 $as_echo_n "(cached) " >&6 13764else 13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13766/* end confdefs.h. */ 13767#include <pthread.h> 13768_ACEOF 13769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13770 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 13771 ol_cv_header_linux_threads=yes 13772else 13773 ol_cv_header_linux_threads=no 13774fi 13775rm -f conftest* 13776 13777 13778fi 13779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 13780$as_echo "$ol_cv_header_linux_threads" >&6; } 13781 if test $ol_cv_header_linux_threads = yes; then 13782 13783$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 13784 13785 fi 13786 13787 13788 for ac_header in mach/cthreads.h 13789do : 13790 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" 13791if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : 13792 cat >>confdefs.h <<_ACEOF 13793#define HAVE_MACH_CTHREADS_H 1 13794_ACEOF 13795 13796fi 13797 13798done 13799 13800 for ac_header in lwp/lwp.h 13801do : 13802 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 13803if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 13804 cat >>confdefs.h <<_ACEOF 13805#define HAVE_LWP_LWP_H 1 13806_ACEOF 13807 13808fi 13809 13810done 13811 13812 for ac_header in thread.h synch.h 13813do : 13814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13815ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13816if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13817 cat >>confdefs.h <<_ACEOF 13818#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13819_ACEOF 13820 13821fi 13822 13823done 13824 13825fi 13826 13827if test $ol_link_threads != no && test $ol_link_threads != nt ; then 13828 13829$as_echo "#define REENTRANT 1" >>confdefs.h 13830 13831 13832$as_echo "#define _REENTRANT 1" >>confdefs.h 13833 13834 13835$as_echo "#define THREAD_SAFE 1" >>confdefs.h 13836 13837 13838$as_echo "#define _THREAD_SAFE 1" >>confdefs.h 13839 13840 13841$as_echo "#define THREADSAFE 1" >>confdefs.h 13842 13843 13844$as_echo "#define _THREADSAFE 1" >>confdefs.h 13845 13846 13847$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h 13848 13849 13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5 13851$as_echo_n "checking for thread specific errno... " >&6; } 13852if ${ol_cv_errno_thread_specific+:} false; then : 13853 $as_echo_n "(cached) " >&6 13854else 13855 13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13857/* end confdefs.h. */ 13858#include <errno.h> 13859int 13860main () 13861{ 13862errno = 0; 13863 ; 13864 return 0; 13865} 13866_ACEOF 13867if ac_fn_c_try_link "$LINENO"; then : 13868 ol_cv_errno_thread_specific=yes 13869else 13870 ol_cv_errno_thread_specific=no 13871fi 13872rm -f core conftest.err conftest.$ac_objext \ 13873 conftest$ac_exeext conftest.$ac_ext 13874 13875fi 13876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5 13877$as_echo "$ol_cv_errno_thread_specific" >&6; } 13878 13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5 13880$as_echo_n "checking for thread specific h_errno... " >&6; } 13881if ${ol_cv_h_errno_thread_specific+:} false; then : 13882 $as_echo_n "(cached) " >&6 13883else 13884 13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13886/* end confdefs.h. */ 13887#include <netdb.h> 13888int 13889main () 13890{ 13891h_errno = 0; 13892 ; 13893 return 0; 13894} 13895_ACEOF 13896if ac_fn_c_try_link "$LINENO"; then : 13897 ol_cv_h_errno_thread_specific=yes 13898else 13899 ol_cv_h_errno_thread_specific=no 13900fi 13901rm -f core conftest.err conftest.$ac_objext \ 13902 conftest$ac_exeext conftest.$ac_ext 13903 13904fi 13905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5 13906$as_echo "$ol_cv_h_errno_thread_specific" >&6; } 13907 13908 if test $ol_cv_errno_thread_specific != yes || 13909 test $ol_cv_h_errno_thread_specific != yes ; then 13910 LIBS="$LTHREAD_LIBS $LIBS" 13911 LTHREAD_LIBS="" 13912 fi 13913 13914fi 13915 13916if test $ol_link_threads = no ; then 13917 if test $ol_with_threads = yes ; then 13918 as_fn_error $? "no suitable thread support" "$LINENO" 5 13919 fi 13920 13921 if test $ol_with_threads = auto ; then 13922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5 13923$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;} 13924 ol_with_threads=no 13925 fi 13926 13927 13928$as_echo "#define NO_THREADS 1" >>confdefs.h 13929 13930 LTHREAD_LIBS="" 13931 BUILD_THREAD=no 13932else 13933 BUILD_THREAD=yes 13934fi 13935 13936if test $ol_link_threads != no ; then 13937 13938$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h 13939 13940fi 13941 13942# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 13943case "$ol_with_threads" in 13944 no) 13945 ol_pthread_ok=no 13946 13947 ;; 13948 *) 13949 ol_found_pthreads=yes 13950 ;; 13951esac 13952 13953ac_ext=c 13954ac_cpp='$CPP $CPPFLAGS' 13955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13957ac_compiler_gnu=$ac_cv_c_compiler_gnu 13958 13959 13960 case "$ol_found_pthreads" in 13961 yes) 13962 saved_LIBS="$LIBS" 13963 LIBS="$LTHREAD_LIBS $LIBS" 13964 saved_CFLAGS="$CFLAGS" 13965 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 13966 for ac_func in sem_timedwait 13967do : 13968 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" 13969if test "x$ac_cv_func_sem_timedwait" = xyes; then : 13970 cat >>confdefs.h <<_ACEOF 13971#define HAVE_SEM_TIMEDWAIT 1 13972_ACEOF 13973 13974fi 13975done 13976 13977 LIBS="$saved_LIBS" 13978 { saved_LIBS=; unset saved_LIBS;} 13979 CFLAGS="$saved_CFLAGS" 13980 { saved_CFLAGS=; unset saved_CFLAGS;} 13981 case "$ac_cv_func_sem_timedwait" in 13982 yes) 13983 PTHREAD_LIBS="$LTHREAD_LIBS" 13984 have_pthreads=yes 13985 esac 13986 esac 13987esac 13988 13989case "$have_pthreads" in 13990 yes) 13991 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS" 13992 saved_LIBS="$LIBS" 13993 LIBS="$LTHREAD_LIBS $LIBS" 13994 saved_CFLAGS="$CFLAGS" 13995 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 13996 # The cast to long int works around a bug in the HP C Compiler 13997# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13998# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13999# This bug is HP SR number 8606223364. 14000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 14001$as_echo_n "checking size of pthread_t... " >&6; } 14002if ${ac_cv_sizeof_pthread_t+:} false; then : 14003 $as_echo_n "(cached) " >&6 14004else 14005 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 14006 $ac_includes_default 14007 #include <pthread.h> 14008 14009 14010"; then : 14011 14012else 14013 if test "$ac_cv_type_pthread_t" = yes; then 14014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14016as_fn_error 77 "cannot compute sizeof (pthread_t) 14017See \`config.log' for more details" "$LINENO" 5; } 14018 else 14019 ac_cv_sizeof_pthread_t=0 14020 fi 14021fi 14022 14023fi 14024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 14025$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 14026 14027 14028 14029cat >>confdefs.h <<_ACEOF 14030#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 14031_ACEOF 14032 14033 14034 LIBISC_PTHREADS_NOTHREADS=pthreads 14035 14036$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h 14037 14038 # 14039 # We'd like to use sigwait() too 14040 # 14041 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" 14042if test "x$ac_cv_func_sigwait" = xyes; then : 14043 have_sigwait=yes 14044else 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5 14046$as_echo_n "checking for sigwait in -lc... " >&6; } 14047if ${ac_cv_lib_c_sigwait+:} false; then : 14048 $as_echo_n "(cached) " >&6 14049else 14050 ac_check_lib_save_LIBS=$LIBS 14051LIBS="-lc $LIBS" 14052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14053/* end confdefs.h. */ 14054 14055/* Override any GCC internal prototype to avoid an error. 14056 Use char because int might match the return type of a GCC 14057 builtin and then its argument prototype would still apply. */ 14058#ifdef __cplusplus 14059extern "C" 14060#endif 14061char sigwait (); 14062int 14063main () 14064{ 14065return sigwait (); 14066 ; 14067 return 0; 14068} 14069_ACEOF 14070if ac_fn_c_try_link "$LINENO"; then : 14071 ac_cv_lib_c_sigwait=yes 14072else 14073 ac_cv_lib_c_sigwait=no 14074fi 14075rm -f core conftest.err conftest.$ac_objext \ 14076 conftest$ac_exeext conftest.$ac_ext 14077LIBS=$ac_check_lib_save_LIBS 14078fi 14079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5 14080$as_echo "$ac_cv_lib_c_sigwait" >&6; } 14081if test "x$ac_cv_lib_c_sigwait" = xyes; then : 14082 have_sigwait=yes 14083else 14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5 14085$as_echo_n "checking for sigwait in -lpthread... " >&6; } 14086if ${ac_cv_lib_pthread_sigwait+:} false; then : 14087 $as_echo_n "(cached) " >&6 14088else 14089 ac_check_lib_save_LIBS=$LIBS 14090LIBS="-lpthread $LIBS" 14091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14092/* end confdefs.h. */ 14093 14094/* Override any GCC internal prototype to avoid an error. 14095 Use char because int might match the return type of a GCC 14096 builtin and then its argument prototype would still apply. */ 14097#ifdef __cplusplus 14098extern "C" 14099#endif 14100char sigwait (); 14101int 14102main () 14103{ 14104return sigwait (); 14105 ; 14106 return 0; 14107} 14108_ACEOF 14109if ac_fn_c_try_link "$LINENO"; then : 14110 ac_cv_lib_pthread_sigwait=yes 14111else 14112 ac_cv_lib_pthread_sigwait=no 14113fi 14114rm -f core conftest.err conftest.$ac_objext \ 14115 conftest$ac_exeext conftest.$ac_ext 14116LIBS=$ac_check_lib_save_LIBS 14117fi 14118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5 14119$as_echo "$ac_cv_lib_pthread_sigwait" >&6; } 14120if test "x$ac_cv_lib_pthread_sigwait" = xyes; then : 14121 have_sigwait=yes 14122else 14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5 14124$as_echo_n "checking for _Psigwait in -lpthread... " >&6; } 14125if ${ac_cv_lib_pthread__Psigwait+:} false; then : 14126 $as_echo_n "(cached) " >&6 14127else 14128 ac_check_lib_save_LIBS=$LIBS 14129LIBS="-lpthread $LIBS" 14130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14131/* end confdefs.h. */ 14132 14133/* Override any GCC internal prototype to avoid an error. 14134 Use char because int might match the return type of a GCC 14135 builtin and then its argument prototype would still apply. */ 14136#ifdef __cplusplus 14137extern "C" 14138#endif 14139char _Psigwait (); 14140int 14141main () 14142{ 14143return _Psigwait (); 14144 ; 14145 return 0; 14146} 14147_ACEOF 14148if ac_fn_c_try_link "$LINENO"; then : 14149 ac_cv_lib_pthread__Psigwait=yes 14150else 14151 ac_cv_lib_pthread__Psigwait=no 14152fi 14153rm -f core conftest.err conftest.$ac_objext \ 14154 conftest$ac_exeext conftest.$ac_ext 14155LIBS=$ac_check_lib_save_LIBS 14156fi 14157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5 14158$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; } 14159if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then : 14160 have_sigwait=yes 14161else 14162 have_sigwait=no 14163 14164fi 14165 14166 14167fi 14168 14169 14170fi 14171 14172 14173fi 14174 14175 case "$host:$have_sigwait" in 14176 *-freebsd*:no) 14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5 14178$as_echo_n "checking for sigwait in -lc_r... " >&6; } 14179if ${ac_cv_lib_c_r_sigwait+:} false; then : 14180 $as_echo_n "(cached) " >&6 14181else 14182 ac_check_lib_save_LIBS=$LIBS 14183LIBS="-lc_r $LIBS" 14184cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14185/* end confdefs.h. */ 14186 14187/* Override any GCC internal prototype to avoid an error. 14188 Use char because int might match the return type of a GCC 14189 builtin and then its argument prototype would still apply. */ 14190#ifdef __cplusplus 14191extern "C" 14192#endif 14193char sigwait (); 14194int 14195main () 14196{ 14197return sigwait (); 14198 ; 14199 return 0; 14200} 14201_ACEOF 14202if ac_fn_c_try_link "$LINENO"; then : 14203 ac_cv_lib_c_r_sigwait=yes 14204else 14205 ac_cv_lib_c_r_sigwait=no 14206fi 14207rm -f core conftest.err conftest.$ac_objext \ 14208 conftest$ac_exeext conftest.$ac_ext 14209LIBS=$ac_check_lib_save_LIBS 14210fi 14211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5 14212$as_echo "$ac_cv_lib_c_r_sigwait" >&6; } 14213if test "x$ac_cv_lib_c_r_sigwait" = xyes; then : 14214 have_sigwait=yes 14215 14216fi 14217 14218 esac 14219 case "$have_sigwait" in 14220 yes) 14221 ac_cv_func_sigwait=yes 14222 14223$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 14224 14225 esac 14226 14227 for ac_func in pthread_attr_getstacksize 14228do : 14229 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize" 14230if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then : 14231 cat >>confdefs.h <<_ACEOF 14232#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 14233_ACEOF 14234 14235fi 14236done 14237 14238 for ac_func in pthread_attr_setstacksize sysconf 14239do : 14240 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14241ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14242if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14243 cat >>confdefs.h <<_ACEOF 14244#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14245_ACEOF 14246 14247fi 14248done 14249 14250 14251 case "$host" in 14252 *-freebsd5.[012]|*-freebsd5.[012].*) 14253 ;; 14254 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*) 14255 14256$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h 14257 14258 ;; 14259 *-bsdi3.*|*-bsdi4.0*) 14260 14261$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h 14262 14263 ;; 14264 *-linux*) 14265 14266$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h 14267 14268 ;; 14269 *-solaris*) 14270 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 14271 14272 for ac_func in pthread_setconcurrency 14273do : 14274 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency" 14275if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then : 14276 cat >>confdefs.h <<_ACEOF 14277#define HAVE_PTHREAD_SETCONCURRENCY 1 14278_ACEOF 14279 14280fi 14281done 14282 14283 case "$ac_cv_func_pthread_setconcurrency" in 14284 yes) 14285 14286$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h 14287 14288 esac 14289 ;; 14290 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 14291 14292$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h 14293 14294 ;; 14295 esac 14296 hack_shutup_pthreadonceinit=no 14297 case "$host" in 14298 *-aix5.[123].*) 14299 hack_shutup_pthreadonceinit=yes 14300 ;; 14301 *-solaris2.[89]) 14302 hack_shutup_pthreadonceinit=yes 14303 ;; 14304 *-solaris2.1[0-9]) 14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5 14306$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; } 14307if ${ntp_cv_braces_around_pthread_once_init+:} false; then : 14308 $as_echo_n "(cached) " >&6 14309else 14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14311/* end confdefs.h. */ 14312 14313 #include <pthread.h> 14314 14315int 14316main () 14317{ 14318 14319 static pthread_once_t once_test = 14320 PTHREAD_ONCE_INIT; 14321 14322 14323 ; 14324 return 0; 14325} 14326_ACEOF 14327if ac_fn_c_try_compile "$LINENO"; then : 14328 ntp_cv_braces_around_pthread_once_init=no 14329else 14330 ntp_cv_braces_around_pthread_once_init=yes 14331 14332fi 14333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14334 14335fi 14336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5 14337$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; } 14338 case "$ntp_cv_braces_around_pthread_once_init" in 14339 yes) 14340 hack_shutup_pthreadonceinit=yes 14341 esac 14342 ;; 14343 esac 14344 case "$hack_shutup_pthreadonceinit" in 14345 yes) 14346 14347$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h 14348 14349 esac 14350 LIBS="$saved_LIBS" 14351 { saved_LIBS=; unset saved_LIBS;} 14352 CFLAGS="$saved_CFLAGS" 14353 { saved_CFLAGS=; unset saved_CFLAGS;} 14354 ;; 14355 *) 14356 LIBISC_PTHREADS_NOTHREADS=nothreads 14357 ;; 14358esac 14359 14360 if test "$have_pthreads" != "no"; then 14361 PTHREADS_TRUE= 14362 PTHREADS_FALSE='#' 14363else 14364 PTHREADS_TRUE='#' 14365 PTHREADS_FALSE= 14366fi 14367 14368 14369 14370 14371 14372 14373 14374case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in 14375 no:yes) 14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5 14377$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; } 14378if ${ntp_cv_vsnprintf_percent_m+:} false; then : 14379 $as_echo_n "(cached) " >&6 14380else 14381 if test "$cross_compiling" = yes; then : 14382 ntp_cv_vsnprintf_percent_m=no 14383 14384else 14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14386/* end confdefs.h. */ 14387 14388 #include <stdarg.h> 14389 #include <errno.h> 14390 #include <stdio.h> 14391 #include <string.h> 14392 14393 int call_vsnprintf( 14394 char * dst, 14395 size_t sz, 14396 const char *fmt, 14397 ... 14398 ); 14399 14400 int call_vsnprintf( 14401 char * dst, 14402 size_t sz, 14403 const char *fmt, 14404 ... 14405 ) 14406 { 14407 va_list ap; 14408 int rc; 14409 14410 va_start(ap, fmt); 14411 rc = vsnprintf(dst, sz, fmt, ap); 14412 va_end(ap); 14413 14414 return rc; 14415 } 14416 14417int 14418main () 14419{ 14420 14421 char sbuf[512]; 14422 char pbuf[512]; 14423 int slen; 14424 14425 strcpy(sbuf, strerror(ENOENT)); 14426 errno = ENOENT; 14427 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m", 14428 "wrong"); 14429 return strcmp(sbuf, pbuf); 14430 14431 14432 ; 14433 return 0; 14434} 14435_ACEOF 14436if ac_fn_c_try_run "$LINENO"; then : 14437 ntp_cv_vsnprintf_percent_m=yes 14438else 14439 ntp_cv_vsnprintf_percent_m=no 14440fi 14441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14442 conftest.$ac_objext conftest.beam conftest.$ac_ext 14443fi 14444 14445 14446fi 14447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5 14448$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; } 14449 case "$ntp_cv_vsnprintf_percent_m" in 14450 yes) 14451 14452$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h 14453 14454 esac 14455esac 14456 14457for ac_header in sys/clockctl.h 14458do : 14459 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default" 14460if test "x$ac_cv_header_sys_clockctl_h" = xyes; then : 14461 cat >>confdefs.h <<_ACEOF 14462#define HAVE_SYS_CLOCKCTL_H 1 14463_ACEOF 14464 14465fi 14466 14467done 14468 14469 14470# Check whether --enable-clockctl was given. 14471if test "${enable_clockctl+set}" = set; then : 14472 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval 14473else 14474 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h 14475 14476fi 14477 14478 14479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5 14480$as_echo_n "checking if we should use /dev/clockctl... " >&6; } 14481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5 14482$as_echo "$ntp_use_dev_clockctl" >&6; } 14483 14484 14485for ac_header in sys/capability.h sys/prctl.h 14486do : 14487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14488ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14489if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14490 cat >>confdefs.h <<_ACEOF 14491#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14492_ACEOF 14493 14494fi 14495 14496done 14497 14498 14499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5 14500$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; } 14501 14502case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in 14503 yesyes) 14504 case "$host" in 14505 mips-sgi-irix*) 14506 ntp_have_linuxcaps=no 14507 ;; 14508 *) ntp_have_linuxcaps=yes 14509 ;; 14510 esac 14511 ;; 14512 *) 14513 ntp_have_linuxcaps=no 14514 ;; 14515esac 14516 14517# Check whether --enable-linuxcaps was given. 14518if test "${enable_linuxcaps+set}" = set; then : 14519 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval 14520 14521fi 14522 14523 14524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5 14525$as_echo "$ntp_have_linuxcaps" >&6; } 14526 14527case "$ntp_have_linuxcaps" in 14528 yes) 14529 14530$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h 14531 14532 LIBS="$LIBS -lcap" 14533 ;; 14534esac 14535 14536 14537for ac_header in priv.h 14538do : 14539 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" 14540if test "x$ac_cv_header_priv_h" = xyes; then : 14541 cat >>confdefs.h <<_ACEOF 14542#define HAVE_PRIV_H 1 14543_ACEOF 14544 14545fi 14546 14547done 14548 14549 14550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5 14551$as_echo_n "checking if we have solaris privileges... " >&6; } 14552 14553case "$ac_cv_header_priv_h" in 14554 yes) 14555 case "$host" in 14556 *-solaris*) 14557 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" 14558if test "x$ac_cv_func_setppriv" = xyes; then : 14559 ntp_have_solarisprivs=yes 14560else 14561 ntp_have_solarisprivs=no 14562 14563fi 14564 14565 ;; 14566 esac 14567esac 14568 14569# Check whether --enable-solarisprivs was given. 14570if test "${enable_solarisprivs+set}" = set; then : 14571 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval 14572 14573fi 14574 14575 14576 14577case "$ntp_have_solarisprivs" in 14578 yes) 14579 14580$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h 14581 14582esac 14583 14584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5 14585$as_echo "$ntp_have_solarisprivs" >&6; } 14586 14587case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in 14588 *yes*) 14589 14590$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h 14591 14592esac 14593 14594case "$host" in 14595 *-*-darwin*) 14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 14597$as_echo_n "checking for library containing res_9_init... " >&6; } 14598if ${ac_cv_search_res_9_init+:} false; then : 14599 $as_echo_n "(cached) " >&6 14600else 14601 ac_func_search_save_LIBS=$LIBS 14602cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14603/* end confdefs.h. */ 14604 14605/* Override any GCC internal prototype to avoid an error. 14606 Use char because int might match the return type of a GCC 14607 builtin and then its argument prototype would still apply. */ 14608#ifdef __cplusplus 14609extern "C" 14610#endif 14611char res_9_init (); 14612int 14613main () 14614{ 14615return res_9_init (); 14616 ; 14617 return 0; 14618} 14619_ACEOF 14620for ac_lib in '' resolv; do 14621 if test -z "$ac_lib"; then 14622 ac_res="none required" 14623 else 14624 ac_res=-l$ac_lib 14625 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14626 fi 14627 if ac_fn_c_try_link "$LINENO"; then : 14628 ac_cv_search_res_9_init=$ac_res 14629fi 14630rm -f core conftest.err conftest.$ac_objext \ 14631 conftest$ac_exeext 14632 if ${ac_cv_search_res_9_init+:} false; then : 14633 break 14634fi 14635done 14636if ${ac_cv_search_res_9_init+:} false; then : 14637 14638else 14639 ac_cv_search_res_9_init=no 14640fi 14641rm conftest.$ac_ext 14642LIBS=$ac_func_search_save_LIBS 14643fi 14644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 14645$as_echo "$ac_cv_search_res_9_init" >&6; } 14646ac_res=$ac_cv_search_res_9_init 14647if test "$ac_res" != no; then : 14648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14649 14650fi 14651 14652 ;; 14653 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 14654$as_echo_n "checking for library containing res_init... " >&6; } 14655if ${ac_cv_search_res_init+:} false; then : 14656 $as_echo_n "(cached) " >&6 14657else 14658 ac_func_search_save_LIBS=$LIBS 14659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14660/* end confdefs.h. */ 14661 14662/* Override any GCC internal prototype to avoid an error. 14663 Use char because int might match the return type of a GCC 14664 builtin and then its argument prototype would still apply. */ 14665#ifdef __cplusplus 14666extern "C" 14667#endif 14668char res_init (); 14669int 14670main () 14671{ 14672return res_init (); 14673 ; 14674 return 0; 14675} 14676_ACEOF 14677for ac_lib in '' resolv; do 14678 if test -z "$ac_lib"; then 14679 ac_res="none required" 14680 else 14681 ac_res=-l$ac_lib 14682 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14683 fi 14684 if ac_fn_c_try_link "$LINENO"; then : 14685 ac_cv_search_res_init=$ac_res 14686fi 14687rm -f core conftest.err conftest.$ac_objext \ 14688 conftest$ac_exeext 14689 if ${ac_cv_search_res_init+:} false; then : 14690 break 14691fi 14692done 14693if ${ac_cv_search_res_init+:} false; then : 14694 14695else 14696 ac_cv_search_res_init=no 14697fi 14698rm conftest.$ac_ext 14699LIBS=$ac_func_search_save_LIBS 14700fi 14701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 14702$as_echo "$ac_cv_search_res_init" >&6; } 14703ac_res=$ac_cv_search_res_init 14704if test "$ac_res" != no; then : 14705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14706 14707fi 14708 14709 ;; 14710esac 14711for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h 14712do : 14713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14714ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H 14715# include <sys/types.h> 14716#endif 14717#ifdef HAVE_NETINET_IN_H 14718# include <netinet/in.h> /* inet_ functions / structs */ 14719#endif 14720#ifdef HAVE_ARPA_NAMESER_H 14721# include <arpa/nameser.h> /* DNS HEADER struct */ 14722#endif 14723#ifdef HAVE_NETDB_H 14724# include <netdb.h> 14725#endif 14726" 14727if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14728 cat >>confdefs.h <<_ACEOF 14729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14730_ACEOF 14731 14732fi 14733 14734done 14735 14736 14737#HMS: Why do we do this check so "early"? 14738for ac_func in res_init 14739do : 14740 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init" 14741if test "x$ac_cv_func_res_init" = xyes; then : 14742 cat >>confdefs.h <<_ACEOF 14743#define HAVE_RES_INIT 1 14744_ACEOF 14745 14746else 14747 for ac_func in __res_init 14748do : 14749 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init" 14750if test "x$ac_cv_func___res_init" = xyes; then : 14751 cat >>confdefs.h <<_ACEOF 14752#define HAVE___RES_INIT 1 14753_ACEOF 14754 14755fi 14756done 14757 14758fi 14759done 14760 14761 14762# We also need -lsocket, but we have tested for that already. 14763ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 14764if test "x$ac_cv_func_inet_ntop" = xyes; then : 14765 14766else 14767 14768$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h 14769 14770fi 14771 14772ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 14773if test "x$ac_cv_func_inet_pton" = xyes; then : 14774 14775else 14776 14777$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h 14778 14779fi 14780 14781 14782ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 14783if test "x$ac_cv_type_uintptr_t" = xyes; then : 14784 14785cat >>confdefs.h <<_ACEOF 14786#define HAVE_UINTPTR_T 1 14787_ACEOF 14788 14789 14790fi 14791ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default" 14792if test "x$ac_cv_type_int32" = xyes; then : 14793 14794cat >>confdefs.h <<_ACEOF 14795#define HAVE_INT32 1 14796_ACEOF 14797 14798 14799fi 14800ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default" 14801if test "x$ac_cv_type_u_int32" = xyes; then : 14802 14803cat >>confdefs.h <<_ACEOF 14804#define HAVE_U_INT32 1 14805_ACEOF 14806 14807 14808fi 14809 14810 14811 14812 14813case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in 14814 no::yes) 14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5 14816$as_echo_n "checking for int32 with DNS headers included... " >&6; } 14817if ${ntp_cv_type_int32_with_dns+:} false; then : 14818 $as_echo_n "(cached) " >&6 14819else 14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14821/* end confdefs.h. */ 14822 14823 #ifdef HAVE_ARPA_NAMESER_H 14824 # include <arpa/nameser.h> 14825 #endif 14826 #include <resolv.h> 14827 14828int 14829main () 14830{ 14831 14832 size_t cb = sizeof(int32); 14833 14834 14835 ; 14836 return 0; 14837} 14838_ACEOF 14839if ac_fn_c_try_compile "$LINENO"; then : 14840 ntp_cv_type_int32_with_dns=yes 14841else 14842 ntp_cv_type_int32_with_dns=no 14843 14844fi 14845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14846 14847fi 14848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5 14849$as_echo "$ntp_cv_type_int32_with_dns" >&6; } 14850 case "$ntp_cv_type_int32_with_dns" in 14851 yes) 14852 14853$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h 14854 14855 esac 14856esac 14857 14858case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in 14859 no::yes) 14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5 14861$as_echo_n "checking for u_int32 with DNS headers included... " >&6; } 14862if ${ntp_cv_type_u_int32_with_dns+:} false; then : 14863 $as_echo_n "(cached) " >&6 14864else 14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14866/* end confdefs.h. */ 14867 14868 #ifdef HAVE_ARPA_NAMESER_H 14869 # include <arpa/nameser.h> 14870 #endif 14871 #include <resolv.h> 14872 14873int 14874main () 14875{ 14876 14877 size_t cb = sizeof(u_int32); 14878 14879 14880 ; 14881 return 0; 14882} 14883_ACEOF 14884if ac_fn_c_try_compile "$LINENO"; then : 14885 ntp_cv_type_u_int32_with_dns=yes 14886else 14887 ntp_cv_type_u_int32_with_dns=no 14888 14889fi 14890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14891 14892fi 14893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5 14894$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; } 14895 case "$ntp_cv_type_u_int32_with_dns" in 14896 yes) 14897 14898$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h 14899 14900 esac 14901esac 14902 14903for ac_header in sys/timepps.h 14904do : 14905 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" " 14906 #ifdef HAVE_SYS_TIME_H 14907 # include <sys/time.h> 14908 #endif 14909 #ifdef HAVE_ERRNO_H 14910 # include <errno.h> 14911 #endif 14912 14913 14914" 14915if test "x$ac_cv_header_sys_timepps_h" = xyes; then : 14916 cat >>confdefs.h <<_ACEOF 14917#define HAVE_SYS_TIMEPPS_H 1 14918_ACEOF 14919 14920fi 14921 14922done 14923 14924 14925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5 14926$as_echo_n "checking for struct timespec... " >&6; } 14927if ${ntp_cv_struct_timespec+:} false; then : 14928 $as_echo_n "(cached) " >&6 14929else 14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14931/* end confdefs.h. */ 14932 14933 #include <sys/time.h> 14934 /* Under SunOS, timespec is in sys/timepps.h, 14935 which needs errno.h and FRAC */ 14936 #ifdef HAVE_ERRNO_H 14937 # include <errno.h> 14938 #endif 14939 #ifdef HAVE_SYS_TIMEPPS_H 14940 # define FRAC 4294967296 14941 # include <sys/timepps.h> 14942 #endif 14943 14944int 14945main () 14946{ 14947 14948 struct timespec n; 14949 14950 14951 ; 14952 return 0; 14953} 14954_ACEOF 14955if ac_fn_c_try_compile "$LINENO"; then : 14956 ntp_cv_struct_timespec=yes 14957else 14958 ntp_cv_struct_timespec=no 14959 14960fi 14961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14962 14963fi 14964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5 14965$as_echo "$ntp_cv_struct_timespec" >&6; } 14966case "$ntp_cv_struct_timespec" in 14967 yes) 14968 14969$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 14970 14971esac 14972 14973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5 14974$as_echo_n "checking for struct ntptimeval... " >&6; } 14975if ${ntp_cv_struct_ntptimeval+:} false; then : 14976 $as_echo_n "(cached) " >&6 14977else 14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14979/* end confdefs.h. */ 14980 14981 #include <sys/time.h> 14982 #include <sys/timex.h> 14983 14984int 14985main () 14986{ 14987 14988 struct ntptimeval n; 14989 14990 14991 ; 14992 return 0; 14993} 14994_ACEOF 14995if ac_fn_c_try_compile "$LINENO"; then : 14996 ntp_cv_struct_ntptimeval=yes 14997else 14998 ntp_cv_struct_ntptimeval=no 14999 15000fi 15001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15002 15003fi 15004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5 15005$as_echo "$ntp_cv_struct_ntptimeval" >&6; } 15006case "$ntp_cv_struct_ntptimeval" in 15007 yes) 15008 15009$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h 15010 15011esac 15012 15013for ac_header in md5.h 15014do : 15015 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" " 15016 #ifdef HAVE_SYS_TYPES_H 15017 # include <sys/types.h> 15018 #endif 15019 15020 15021" 15022if test "x$ac_cv_header_md5_h" = xyes; then : 15023 cat >>confdefs.h <<_ACEOF 15024#define HAVE_MD5_H 1 15025_ACEOF 15026 15027fi 15028 15029done 15030 15031 15032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5 15033$as_echo_n "checking for library containing MD5Init... " >&6; } 15034if ${ac_cv_search_MD5Init+:} false; then : 15035 $as_echo_n "(cached) " >&6 15036else 15037 ac_func_search_save_LIBS=$LIBS 15038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15039/* end confdefs.h. */ 15040 15041/* Override any GCC internal prototype to avoid an error. 15042 Use char because int might match the return type of a GCC 15043 builtin and then its argument prototype would still apply. */ 15044#ifdef __cplusplus 15045extern "C" 15046#endif 15047char MD5Init (); 15048int 15049main () 15050{ 15051return MD5Init (); 15052 ; 15053 return 0; 15054} 15055_ACEOF 15056for ac_lib in '' md5 md; do 15057 if test -z "$ac_lib"; then 15058 ac_res="none required" 15059 else 15060 ac_res=-l$ac_lib 15061 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15062 fi 15063 if ac_fn_c_try_link "$LINENO"; then : 15064 ac_cv_search_MD5Init=$ac_res 15065fi 15066rm -f core conftest.err conftest.$ac_objext \ 15067 conftest$ac_exeext 15068 if ${ac_cv_search_MD5Init+:} false; then : 15069 break 15070fi 15071done 15072if ${ac_cv_search_MD5Init+:} false; then : 15073 15074else 15075 ac_cv_search_MD5Init=no 15076fi 15077rm conftest.$ac_ext 15078LIBS=$ac_func_search_save_LIBS 15079fi 15080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5 15081$as_echo "$ac_cv_search_MD5Init" >&6; } 15082ac_res=$ac_cv_search_MD5Init 15083if test "$ac_res" != no; then : 15084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15085 15086fi 15087 15088for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec 15089do : 15090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15091ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15092if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15093 cat >>confdefs.h <<_ACEOF 15094#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15095_ACEOF 15096 15097fi 15098done 15099 15100 15101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5 15102$as_echo_n "checking for SIGIO... " >&6; } 15103if ${ntp_cv_hdr_def_sigio+:} false; then : 15104 $as_echo_n "(cached) " >&6 15105else 15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15107/* end confdefs.h. */ 15108 15109 #include <signal.h> 15110 15111 #ifdef SIGIO 15112 yes 15113 #endif 15114 15115_ACEOF 15116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15117 $EGREP "yes" >/dev/null 2>&1; then : 15118 ntp_cv_hdr_def_sigio=yes 15119else 15120 ntp_cv_hdr_def_sigio=no 15121 15122fi 15123rm -f conftest* 15124 15125 15126fi 15127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5 15128$as_echo "$ntp_cv_hdr_def_sigio" >&6; } 15129 15130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5 15131$as_echo_n "checking if we want to use SIGIO... " >&6; } 15132ans=no 15133case "$ntp_cv_hdr_def_sigio" in 15134 yes) 15135 ans=yes 15136 case "$host" in 15137 alpha*-dec-osf4*|alpha*-dec-osf5*) 15138 ans=no 15139 ;; 15140 *-convex-*) 15141 ans=no 15142 ;; 15143 *-dec-*) 15144 ans=no 15145 ;; 15146 *-pc-cygwin*) 15147 ans=no 15148 ;; 15149 *-sni-sysv*) 15150 ans=no 15151 ;; 15152 *-univel-sysv*) 15153 ans=no 15154 ;; 15155 *-*-irix6*) 15156 ans=no 15157 ;; 15158 *-*-freebsd*) 15159 ans=no 15160 ;; 15161 *-*-*linux*) 15162 ans=no 15163 ;; 15164 *-*-unicosmp*) 15165 ans=no 15166 ;; 15167 *-*-kfreebsd*) 15168 ans=no 15169 ;; 15170 m68k-*-mint*) 15171 ans=no 15172 ;; 15173 esac 15174 ;; 15175esac 15176case "$ans" in 15177 yes) 15178 15179$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h 15180 15181esac 15182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 15183$as_echo "$ans" >&6; } 15184 15185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5 15186$as_echo_n "checking for SIGPOLL... " >&6; } 15187if ${ntp_cv_hdr_def_sigpoll+:} false; then : 15188 $as_echo_n "(cached) " >&6 15189else 15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15191/* end confdefs.h. */ 15192 15193 #include <signal.h> 15194 15195 #ifdef SIGPOLL 15196 yes 15197 #endif 15198 15199_ACEOF 15200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15201 $EGREP "yes" >/dev/null 2>&1; then : 15202 ntp_cv_hdr_def_sigpoll=yes 15203else 15204 ntp_cv_hdr_def_sigpoll=no 15205 15206fi 15207rm -f conftest* 15208 15209 15210fi 15211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5 15212$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; } 15213 15214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5 15215$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; } 15216ans=no 15217case "$ntp_cv_hdr_def_sigpoll" in 15218 yes) 15219 case "$host" in 15220 mips-sgi-irix*) 15221 ans=no 15222 ;; 15223 vax-dec-bsd) 15224 ans=no 15225 ;; 15226 *-pc-cygwin*) 15227 ans=no 15228 ;; 15229 *-sni-sysv*) 15230 ans=no 15231 ;; 15232 *-*-aix[4-9]*) 15233 # XXX Only verified thru AIX6 15234 ans=no 15235 ;; 15236 *-*-hpux*) 15237 ans=no 15238 ;; 15239 *-*-*linux*) 15240 ans=no 15241 ;; 15242 *-*-osf*) 15243 ans=no 15244 ;; 15245 *-*-qnx*) 15246 ans=no 15247 ;; 15248 *-*-sunos*) 15249 ans=no 15250 ;; 15251 *-*-solaris*) 15252 ans=no 15253 ;; 15254 *-*-ultrix*) 15255 ans=no 15256 ;; 15257 *-*-unicosmp*) 15258 ans=no 15259 ;; 15260 *-*-kfreebsd*) 15261 ans=no 15262 ;; 15263 *) ans=yes 15264 ;; 15265 esac 15266 ;; 15267esac 15268case "$ans" in 15269 yes) 15270 15271$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h 15272 15273esac 15274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 15275$as_echo "$ans" >&6; } 15276 15277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5 15278$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; } 15279ans=no 15280case "$ntp_cv_hdr_def_sigpoll" in 15281 yes) 15282 case "$host" in 15283 mips-sgi-irix*) 15284 ans=no 15285 ;; 15286 vax-dec-bsd) 15287 ans=no 15288 ;; 15289 *-pc-cygwin*) 15290 ans=no 15291 ;; 15292 *-sni-sysv*) 15293 ans=no 15294 ;; 15295 *-*-aix[4-9]*) 15296 # XXX Only verified thru AIX6 15297 ans=no 15298 ;; 15299 *-*-hpux*) 15300 ans=no 15301 ;; 15302 *-*-*linux*) 15303 ans=no 15304 ;; 15305 *-*-osf*) 15306 ans=no 15307 ;; 15308 *-*-sunos*) 15309 ans=no 15310 ;; 15311 *-*-ultrix*) 15312 ans=no 15313 ;; 15314 *-*-qnx*) 15315 ans=no 15316 ;; 15317 *-*-unicosmp*) 15318 ans=no 15319 ;; 15320 *-*-kfreebsd*) 15321 ans=no 15322 ;; 15323 *) ans=yes 15324 ;; 15325 esac 15326 ;; 15327esac 15328case "$ans" in 15329 yes) 15330 15331$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h 15332 15333esac 15334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 15335$as_echo "$ans" >&6; } 15336 15337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5 15338$as_echo_n "checking number of arguments to gettimeofday()... " >&6; } 15339if ${ntp_cv_func_Xettimeofday_nargs+:} false; then : 15340 $as_echo_n "(cached) " >&6 15341else 15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15343/* end confdefs.h. */ 15344 15345 #include <sys/time.h> 15346 15347int 15348main () 15349{ 15350 15351 gettimeofday(0, 0); 15352 settimeofday(0, 0); 15353 15354 15355 ; 15356 return 0; 15357} 15358_ACEOF 15359if ac_fn_c_try_compile "$LINENO"; then : 15360 ntp_cv_func_Xettimeofday_nargs=2 15361else 15362 ntp_cv_func_Xettimeofday_nargs=1 15363 15364fi 15365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15366 15367fi 15368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5 15369$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; } 15370case "$ntp_cv_func_Xettimeofday_nargs" in 15371 1) 15372 15373$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h 15374 15375esac 15376 15377for ac_func in settimeofday 15378do : 15379 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday" 15380if test "x$ac_cv_func_settimeofday" = xyes; then : 15381 cat >>confdefs.h <<_ACEOF 15382#define HAVE_SETTIMEOFDAY 1 15383_ACEOF 15384 15385else 15386 15387 case "$host" in 15388 *-*-mpeix*) ac_cv_func_settimeofday=yes 15389 esac 15390 15391fi 15392done 15393 15394 15395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5 15396$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; } 15397ntp_warning='GRONK' 15398ans=none 15399case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in 15400 yes*) 15401 ntp_warning='' 15402 ans='clock_settime()' 15403 ;; 15404 noyes*) 15405 ntp_warning='But clock_settime() would be better (if we had it)' 15406 ans='settimeofday()' 15407 ;; 15408 nonoyes) 15409 ntp_warning='Which is the worst of the three' 15410 ans='stime()' 15411 ;; 15412 *) 15413 case "$build" in 15414 $host) 15415 ntp_warning='Which leaves us with nothing to use!' 15416 esac 15417esac 15418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 15419$as_echo "$ans" >&6; } 15420case "$ntp_warning" in 15421 '') 15422 ;; 15423 *) 15424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5 15425$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;} 15426 ;; 15427esac 15428 15429 15430LDADD_LIBNTP="$LDADD_LIBNTP $LIBS" 15431LIBS=$__LIBS 15432{ __LIBS=; unset __LIBS;} 15433 15434 15435 15436# Check whether --enable-shared was given. 15437if test "${enable_shared+set}" = set; then : 15438 enableval=$enable_shared; p=${PACKAGE-default} 15439 case $enableval in 15440 yes) enable_shared=yes ;; 15441 no) enable_shared=no ;; 15442 *) 15443 enable_shared=no 15444 # Look at the argument we got. We use all the common list separators. 15445 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 15446 for pkg in $enableval; do 15447 IFS="$lt_save_ifs" 15448 if test "X$pkg" = "X$p"; then 15449 enable_shared=yes 15450 fi 15451 done 15452 IFS="$lt_save_ifs" 15453 ;; 15454 esac 15455else 15456 enable_shared=no 15457fi 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467case `pwd` in 15468 *\ * | *\ *) 15469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 15470$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 15471esac 15472 15473 15474 15475macro_version='2.4' 15476macro_revision='1.3293' 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490ltmain="$ac_aux_dir/ltmain.sh" 15491 15492# Backslashify metacharacters that are still active within 15493# double-quoted strings. 15494sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 15495 15496# Same as above, but do not quote variable references. 15497double_quote_subst='s/\(["`\\]\)/\\\1/g' 15498 15499# Sed substitution to delay expansion of an escaped shell variable in a 15500# double_quote_subst'ed string. 15501delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 15502 15503# Sed substitution to delay expansion of an escaped single quote. 15504delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 15505 15506# Sed substitution to avoid accidental globbing in evaled expressions 15507no_glob_subst='s/\*/\\\*/g' 15508 15509ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15510ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 15511ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 15512 15513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 15514$as_echo_n "checking how to print strings... " >&6; } 15515# Test print first, because it will be a builtin if present. 15516if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 15517 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 15518 ECHO='print -r --' 15519elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 15520 ECHO='printf %s\n' 15521else 15522 # Use this function as a fallback that always works. 15523 func_fallback_echo () 15524 { 15525 eval 'cat <<_LTECHO_EOF 15526$1 15527_LTECHO_EOF' 15528 } 15529 ECHO='func_fallback_echo' 15530fi 15531 15532# func_echo_all arg... 15533# Invoke $ECHO with all args, space-separated. 15534func_echo_all () 15535{ 15536 $ECHO "" 15537} 15538 15539case "$ECHO" in 15540 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 15541$as_echo "printf" >&6; } ;; 15542 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 15543$as_echo "print -r" >&6; } ;; 15544 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 15545$as_echo "cat" >&6; } ;; 15546esac 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 15562$as_echo_n "checking for a sed that does not truncate output... " >&6; } 15563if ${ac_cv_path_SED+:} false; then : 15564 $as_echo_n "(cached) " >&6 15565else 15566 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 15567 for ac_i in 1 2 3 4 5 6 7; do 15568 ac_script="$ac_script$as_nl$ac_script" 15569 done 15570 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 15571 { ac_script=; unset ac_script;} 15572 if test -z "$SED"; then 15573 ac_path_SED_found=false 15574 # Loop through the user's path and test for each of PROGNAME-LIST 15575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15576for as_dir in $PATH 15577do 15578 IFS=$as_save_IFS 15579 test -z "$as_dir" && as_dir=. 15580 for ac_prog in sed gsed; do 15581 for ac_exec_ext in '' $ac_executable_extensions; do 15582 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 15583 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 15584# Check for GNU ac_path_SED and select it if it is found. 15585 # Check for GNU $ac_path_SED 15586case `"$ac_path_SED" --version 2>&1` in 15587*GNU*) 15588 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 15589*) 15590 ac_count=0 15591 $as_echo_n 0123456789 >"conftest.in" 15592 while : 15593 do 15594 cat "conftest.in" "conftest.in" >"conftest.tmp" 15595 mv "conftest.tmp" "conftest.in" 15596 cp "conftest.in" "conftest.nl" 15597 $as_echo '' >> "conftest.nl" 15598 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 15599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 15600 as_fn_arith $ac_count + 1 && ac_count=$as_val 15601 if test $ac_count -gt ${ac_path_SED_max-0}; then 15602 # Best one so far, save it but keep looking for a better one 15603 ac_cv_path_SED="$ac_path_SED" 15604 ac_path_SED_max=$ac_count 15605 fi 15606 # 10*(2^10) chars as input seems more than enough 15607 test $ac_count -gt 10 && break 15608 done 15609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 15610esac 15611 15612 $ac_path_SED_found && break 3 15613 done 15614 done 15615 done 15616IFS=$as_save_IFS 15617 if test -z "$ac_cv_path_SED"; then 15618 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 15619 fi 15620else 15621 ac_cv_path_SED=$SED 15622fi 15623 15624fi 15625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 15626$as_echo "$ac_cv_path_SED" >&6; } 15627 SED="$ac_cv_path_SED" 15628 rm -f conftest.sed 15629 15630test -z "$SED" && SED=sed 15631Xsed="$SED -e 1s/^X//" 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 15644$as_echo_n "checking for fgrep... " >&6; } 15645if ${ac_cv_path_FGREP+:} false; then : 15646 $as_echo_n "(cached) " >&6 15647else 15648 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 15649 then ac_cv_path_FGREP="$GREP -F" 15650 else 15651 if test -z "$FGREP"; then 15652 ac_path_FGREP_found=false 15653 # Loop through the user's path and test for each of PROGNAME-LIST 15654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15655for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 15656do 15657 IFS=$as_save_IFS 15658 test -z "$as_dir" && as_dir=. 15659 for ac_prog in fgrep; do 15660 for ac_exec_ext in '' $ac_executable_extensions; do 15661 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 15662 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 15663# Check for GNU ac_path_FGREP and select it if it is found. 15664 # Check for GNU $ac_path_FGREP 15665case `"$ac_path_FGREP" --version 2>&1` in 15666*GNU*) 15667 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 15668*) 15669 ac_count=0 15670 $as_echo_n 0123456789 >"conftest.in" 15671 while : 15672 do 15673 cat "conftest.in" "conftest.in" >"conftest.tmp" 15674 mv "conftest.tmp" "conftest.in" 15675 cp "conftest.in" "conftest.nl" 15676 $as_echo 'FGREP' >> "conftest.nl" 15677 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 15678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 15679 as_fn_arith $ac_count + 1 && ac_count=$as_val 15680 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 15681 # Best one so far, save it but keep looking for a better one 15682 ac_cv_path_FGREP="$ac_path_FGREP" 15683 ac_path_FGREP_max=$ac_count 15684 fi 15685 # 10*(2^10) chars as input seems more than enough 15686 test $ac_count -gt 10 && break 15687 done 15688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 15689esac 15690 15691 $ac_path_FGREP_found && break 3 15692 done 15693 done 15694 done 15695IFS=$as_save_IFS 15696 if test -z "$ac_cv_path_FGREP"; then 15697 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 15698 fi 15699else 15700 ac_cv_path_FGREP=$FGREP 15701fi 15702 15703 fi 15704fi 15705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 15706$as_echo "$ac_cv_path_FGREP" >&6; } 15707 FGREP="$ac_cv_path_FGREP" 15708 15709 15710test -z "$GREP" && GREP=grep 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730# Check whether --with-gnu-ld was given. 15731if test "${with_gnu_ld+set}" = set; then : 15732 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 15733else 15734 with_gnu_ld=no 15735fi 15736 15737ac_prog=ld 15738if test "$GCC" = yes; then 15739 # Check if gcc -print-prog-name=ld gives a path. 15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 15741$as_echo_n "checking for ld used by $CC... " >&6; } 15742 case $host in 15743 *-*-mingw*) 15744 # gcc leaves a trailing carriage return which upsets mingw 15745 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15746 *) 15747 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 15748 esac 15749 case $ac_prog in 15750 # Accept absolute paths. 15751 [\\/]* | ?:[\\/]*) 15752 re_direlt='/[^/][^/]*/\.\./' 15753 # Canonicalize the pathname of ld 15754 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 15755 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 15756 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 15757 done 15758 test -z "$LD" && LD="$ac_prog" 15759 ;; 15760 "") 15761 # If it fails, then pretend we aren't using GCC. 15762 ac_prog=ld 15763 ;; 15764 *) 15765 # If it is relative, then search for the first ld in PATH. 15766 with_gnu_ld=unknown 15767 ;; 15768 esac 15769elif test "$with_gnu_ld" = yes; then 15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 15771$as_echo_n "checking for GNU ld... " >&6; } 15772else 15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 15774$as_echo_n "checking for non-GNU ld... " >&6; } 15775fi 15776if ${lt_cv_path_LD+:} false; then : 15777 $as_echo_n "(cached) " >&6 15778else 15779 if test -z "$LD"; then 15780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 15781 for ac_dir in $PATH; do 15782 IFS="$lt_save_ifs" 15783 test -z "$ac_dir" && ac_dir=. 15784 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15785 lt_cv_path_LD="$ac_dir/$ac_prog" 15786 # Check to see if the program is GNU ld. I'd rather use --version, 15787 # but apparently some variants of GNU ld only accept -v. 15788 # Break only if it was the GNU/non-GNU ld that we prefer. 15789 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 15790 *GNU* | *'with BFD'*) 15791 test "$with_gnu_ld" != no && break 15792 ;; 15793 *) 15794 test "$with_gnu_ld" != yes && break 15795 ;; 15796 esac 15797 fi 15798 done 15799 IFS="$lt_save_ifs" 15800else 15801 lt_cv_path_LD="$LD" # Let the user override the test with a path. 15802fi 15803fi 15804 15805LD="$lt_cv_path_LD" 15806if test -n "$LD"; then 15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 15808$as_echo "$LD" >&6; } 15809else 15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15811$as_echo "no" >&6; } 15812fi 15813test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 15814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 15815$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 15816if ${lt_cv_prog_gnu_ld+:} false; then : 15817 $as_echo_n "(cached) " >&6 15818else 15819 # I'd rather use --version here, but apparently some GNU lds only accept -v. 15820case `$LD -v 2>&1 </dev/null` in 15821*GNU* | *'with BFD'*) 15822 lt_cv_prog_gnu_ld=yes 15823 ;; 15824*) 15825 lt_cv_prog_gnu_ld=no 15826 ;; 15827esac 15828fi 15829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 15830$as_echo "$lt_cv_prog_gnu_ld" >&6; } 15831with_gnu_ld=$lt_cv_prog_gnu_ld 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 15842$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 15843if ${lt_cv_path_NM+:} false; then : 15844 $as_echo_n "(cached) " >&6 15845else 15846 if test -n "$NM"; then 15847 # Let the user override the test. 15848 lt_cv_path_NM="$NM" 15849else 15850 lt_nm_to_check="${ac_tool_prefix}nm" 15851 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 15852 lt_nm_to_check="$lt_nm_to_check nm" 15853 fi 15854 for lt_tmp_nm in $lt_nm_to_check; do 15855 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 15856 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 15857 IFS="$lt_save_ifs" 15858 test -z "$ac_dir" && ac_dir=. 15859 tmp_nm="$ac_dir/$lt_tmp_nm" 15860 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 15861 # Check to see if the nm accepts a BSD-compat flag. 15862 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 15863 # nm: unknown option "B" ignored 15864 # Tru64's nm complains that /dev/null is an invalid object file 15865 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 15866 */dev/null* | *'Invalid file or object type'*) 15867 lt_cv_path_NM="$tmp_nm -B" 15868 break 15869 ;; 15870 *) 15871 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 15872 */dev/null*) 15873 lt_cv_path_NM="$tmp_nm -p" 15874 break 15875 ;; 15876 *) 15877 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 15878 continue # so that we can try to find one that supports BSD flags 15879 ;; 15880 esac 15881 ;; 15882 esac 15883 fi 15884 done 15885 IFS="$lt_save_ifs" 15886 done 15887 : ${lt_cv_path_NM=no} 15888fi 15889fi 15890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 15891$as_echo "$lt_cv_path_NM" >&6; } 15892if test "$lt_cv_path_NM" != "no"; then 15893 NM="$lt_cv_path_NM" 15894else 15895 # Didn't find any BSD compatible name lister, look for dumpbin. 15896 if test -n "$DUMPBIN"; then : 15897 # Let the user override the test. 15898 else 15899 if test -n "$ac_tool_prefix"; then 15900 for ac_prog in dumpbin "link -dump" 15901 do 15902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 15903set dummy $ac_tool_prefix$ac_prog; ac_word=$2 15904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15905$as_echo_n "checking for $ac_word... " >&6; } 15906if ${ac_cv_prog_DUMPBIN+:} false; then : 15907 $as_echo_n "(cached) " >&6 15908else 15909 if test -n "$DUMPBIN"; then 15910 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 15911else 15912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15913for as_dir in $PATH 15914do 15915 IFS=$as_save_IFS 15916 test -z "$as_dir" && as_dir=. 15917 for ac_exec_ext in '' $ac_executable_extensions; do 15918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15919 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 15920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15921 break 2 15922 fi 15923done 15924 done 15925IFS=$as_save_IFS 15926 15927fi 15928fi 15929DUMPBIN=$ac_cv_prog_DUMPBIN 15930if test -n "$DUMPBIN"; then 15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 15932$as_echo "$DUMPBIN" >&6; } 15933else 15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15935$as_echo "no" >&6; } 15936fi 15937 15938 15939 test -n "$DUMPBIN" && break 15940 done 15941fi 15942if test -z "$DUMPBIN"; then 15943 ac_ct_DUMPBIN=$DUMPBIN 15944 for ac_prog in dumpbin "link -dump" 15945do 15946 # Extract the first word of "$ac_prog", so it can be a program name with args. 15947set dummy $ac_prog; ac_word=$2 15948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15949$as_echo_n "checking for $ac_word... " >&6; } 15950if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 15951 $as_echo_n "(cached) " >&6 15952else 15953 if test -n "$ac_ct_DUMPBIN"; then 15954 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 15955else 15956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15957for as_dir in $PATH 15958do 15959 IFS=$as_save_IFS 15960 test -z "$as_dir" && as_dir=. 15961 for ac_exec_ext in '' $ac_executable_extensions; do 15962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15963 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 15964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15965 break 2 15966 fi 15967done 15968 done 15969IFS=$as_save_IFS 15970 15971fi 15972fi 15973ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 15974if test -n "$ac_ct_DUMPBIN"; then 15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 15976$as_echo "$ac_ct_DUMPBIN" >&6; } 15977else 15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15979$as_echo "no" >&6; } 15980fi 15981 15982 15983 test -n "$ac_ct_DUMPBIN" && break 15984done 15985 15986 if test "x$ac_ct_DUMPBIN" = x; then 15987 DUMPBIN=":" 15988 else 15989 case $cross_compiling:$ac_tool_warned in 15990yes:) 15991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15993ac_tool_warned=yes ;; 15994esac 15995 DUMPBIN=$ac_ct_DUMPBIN 15996 fi 15997fi 15998 15999 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 16000 *COFF*) 16001 DUMPBIN="$DUMPBIN -symbols" 16002 ;; 16003 *) 16004 DUMPBIN=: 16005 ;; 16006 esac 16007 fi 16008 16009 if test "$DUMPBIN" != ":"; then 16010 NM="$DUMPBIN" 16011 fi 16012fi 16013test -z "$NM" && NM=nm 16014 16015 16016 16017 16018 16019 16020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 16021$as_echo_n "checking the name lister ($NM) interface... " >&6; } 16022if ${lt_cv_nm_interface+:} false; then : 16023 $as_echo_n "(cached) " >&6 16024else 16025 lt_cv_nm_interface="BSD nm" 16026 echo "int some_variable = 0;" > conftest.$ac_ext 16027 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 16028 (eval "$ac_compile" 2>conftest.err) 16029 cat conftest.err >&5 16030 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 16031 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 16032 cat conftest.err >&5 16033 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 16034 cat conftest.out >&5 16035 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 16036 lt_cv_nm_interface="MS dumpbin" 16037 fi 16038 rm -f conftest* 16039fi 16040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 16041$as_echo "$lt_cv_nm_interface" >&6; } 16042 16043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 16044$as_echo_n "checking whether ln -s works... " >&6; } 16045LN_S=$as_ln_s 16046if test "$LN_S" = "ln -s"; then 16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16048$as_echo "yes" >&6; } 16049else 16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 16051$as_echo "no, using $LN_S" >&6; } 16052fi 16053 16054# find the maximum length of command line arguments 16055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 16056$as_echo_n "checking the maximum length of command line arguments... " >&6; } 16057if ${lt_cv_sys_max_cmd_len+:} false; then : 16058 $as_echo_n "(cached) " >&6 16059else 16060 i=0 16061 teststring="ABCD" 16062 16063 case $build_os in 16064 msdosdjgpp*) 16065 # On DJGPP, this test can blow up pretty badly due to problems in libc 16066 # (any single argument exceeding 2000 bytes causes a buffer overrun 16067 # during glob expansion). Even if it were fixed, the result of this 16068 # check would be larger than it should be. 16069 lt_cv_sys_max_cmd_len=12288; # 12K is about right 16070 ;; 16071 16072 gnu*) 16073 # Under GNU Hurd, this test is not required because there is 16074 # no limit to the length of command line arguments. 16075 # Libtool will interpret -1 as no limit whatsoever 16076 lt_cv_sys_max_cmd_len=-1; 16077 ;; 16078 16079 cygwin* | mingw* | cegcc*) 16080 # On Win9x/ME, this test blows up -- it succeeds, but takes 16081 # about 5 minutes as the teststring grows exponentially. 16082 # Worse, since 9x/ME are not pre-emptively multitasking, 16083 # you end up with a "frozen" computer, even though with patience 16084 # the test eventually succeeds (with a max line length of 256k). 16085 # Instead, let's just punt: use the minimum linelength reported by 16086 # all of the supported platforms: 8192 (on NT/2K/XP). 16087 lt_cv_sys_max_cmd_len=8192; 16088 ;; 16089 16090 mint*) 16091 # On MiNT this can take a long time and run out of memory. 16092 lt_cv_sys_max_cmd_len=8192; 16093 ;; 16094 16095 amigaos*) 16096 # On AmigaOS with pdksh, this test takes hours, literally. 16097 # So we just punt and use a minimum line length of 8192. 16098 lt_cv_sys_max_cmd_len=8192; 16099 ;; 16100 16101 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 16102 # This has been around since 386BSD, at least. Likely further. 16103 if test -x /sbin/sysctl; then 16104 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 16105 elif test -x /usr/sbin/sysctl; then 16106 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 16107 else 16108 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 16109 fi 16110 # And add a safety zone 16111 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 16112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 16113 ;; 16114 16115 interix*) 16116 # We know the value 262144 and hardcode it with a safety zone (like BSD) 16117 lt_cv_sys_max_cmd_len=196608 16118 ;; 16119 16120 osf*) 16121 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 16122 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 16123 # nice to cause kernel panics so lets avoid the loop below. 16124 # First set a reasonable default. 16125 lt_cv_sys_max_cmd_len=16384 16126 # 16127 if test -x /sbin/sysconfig; then 16128 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 16129 *1*) lt_cv_sys_max_cmd_len=-1 ;; 16130 esac 16131 fi 16132 ;; 16133 sco3.2v5*) 16134 lt_cv_sys_max_cmd_len=102400 16135 ;; 16136 sysv5* | sco5v6* | sysv4.2uw2*) 16137 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 16138 if test -n "$kargmax"; then 16139 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 16140 else 16141 lt_cv_sys_max_cmd_len=32768 16142 fi 16143 ;; 16144 *) 16145 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 16146 if test -n "$lt_cv_sys_max_cmd_len"; then 16147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 16148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 16149 else 16150 # Make teststring a little bigger before we do anything with it. 16151 # a 1K string should be a reasonable start. 16152 for i in 1 2 3 4 5 6 7 8 ; do 16153 teststring=$teststring$teststring 16154 done 16155 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 16156 # If test is not a shell built-in, we'll probably end up computing a 16157 # maximum length that is only half of the actual maximum length, but 16158 # we can't tell. 16159 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 16160 = "X$teststring$teststring"; } >/dev/null 2>&1 && 16161 test $i != 17 # 1/2 MB should be enough 16162 do 16163 i=`expr $i + 1` 16164 teststring=$teststring$teststring 16165 done 16166 # Only check the string length outside the loop. 16167 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 16168 teststring= 16169 # Add a significant safety factor because C++ compilers can tack on 16170 # massive amounts of additional arguments before passing them to the 16171 # linker. It appears as though 1/2 is a usable value. 16172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 16173 fi 16174 ;; 16175 esac 16176 16177fi 16178 16179if test -n $lt_cv_sys_max_cmd_len ; then 16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 16181$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 16182else 16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 16184$as_echo "none" >&6; } 16185fi 16186max_cmd_len=$lt_cv_sys_max_cmd_len 16187 16188 16189 16190 16191 16192 16193: ${CP="cp -f"} 16194: ${MV="mv -f"} 16195: ${RM="rm -f"} 16196 16197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 16198$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 16199# Try some XSI features 16200xsi_shell=no 16201( _lt_dummy="a/b/c" 16202 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 16203 = c,a/b,b/c, \ 16204 && eval 'test $(( 1 + 1 )) -eq 2 \ 16205 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 16206 && xsi_shell=yes 16207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 16208$as_echo "$xsi_shell" >&6; } 16209 16210 16211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 16212$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 16213lt_shell_append=no 16214( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 16215 >/dev/null 2>&1 \ 16216 && lt_shell_append=yes 16217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 16218$as_echo "$lt_shell_append" >&6; } 16219 16220 16221if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 16222 lt_unset=unset 16223else 16224 lt_unset=false 16225fi 16226 16227 16228 16229 16230 16231# test EBCDIC or ASCII 16232case `echo X|tr X '\101'` in 16233 A) # ASCII based system 16234 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 16235 lt_SP2NL='tr \040 \012' 16236 lt_NL2SP='tr \015\012 \040\040' 16237 ;; 16238 *) # EBCDIC based system 16239 lt_SP2NL='tr \100 \n' 16240 lt_NL2SP='tr \r\n \100\100' 16241 ;; 16242esac 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 16253$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 16254if ${lt_cv_to_host_file_cmd+:} false; then : 16255 $as_echo_n "(cached) " >&6 16256else 16257 case $host in 16258 *-*-mingw* ) 16259 case $build in 16260 *-*-mingw* ) # actually msys 16261 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 16262 ;; 16263 *-*-cygwin* ) 16264 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 16265 ;; 16266 * ) # otherwise, assume *nix 16267 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 16268 ;; 16269 esac 16270 ;; 16271 *-*-cygwin* ) 16272 case $build in 16273 *-*-mingw* ) # actually msys 16274 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 16275 ;; 16276 *-*-cygwin* ) 16277 lt_cv_to_host_file_cmd=func_convert_file_noop 16278 ;; 16279 * ) # otherwise, assume *nix 16280 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 16281 ;; 16282 esac 16283 ;; 16284 * ) # unhandled hosts (and "normal" native builds) 16285 lt_cv_to_host_file_cmd=func_convert_file_noop 16286 ;; 16287esac 16288 16289fi 16290 16291to_host_file_cmd=$lt_cv_to_host_file_cmd 16292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 16293$as_echo "$lt_cv_to_host_file_cmd" >&6; } 16294 16295 16296 16297 16298 16299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 16300$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 16301if ${lt_cv_to_tool_file_cmd+:} false; then : 16302 $as_echo_n "(cached) " >&6 16303else 16304 #assume ordinary cross tools, or native build. 16305lt_cv_to_tool_file_cmd=func_convert_file_noop 16306case $host in 16307 *-*-mingw* ) 16308 case $build in 16309 *-*-mingw* ) # actually msys 16310 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 16311 ;; 16312 esac 16313 ;; 16314esac 16315 16316fi 16317 16318to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 16320$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 16321 16322 16323 16324 16325 16326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 16327$as_echo_n "checking for $LD option to reload object files... " >&6; } 16328if ${lt_cv_ld_reload_flag+:} false; then : 16329 $as_echo_n "(cached) " >&6 16330else 16331 lt_cv_ld_reload_flag='-r' 16332fi 16333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 16334$as_echo "$lt_cv_ld_reload_flag" >&6; } 16335reload_flag=$lt_cv_ld_reload_flag 16336case $reload_flag in 16337"" | " "*) ;; 16338*) reload_flag=" $reload_flag" ;; 16339esac 16340reload_cmds='$LD$reload_flag -o $output$reload_objs' 16341case $host_os in 16342 cygwin* | mingw* | pw32* | cegcc*) 16343 if test "$GCC" != yes; then 16344 reload_cmds=false 16345 fi 16346 ;; 16347 darwin*) 16348 if test "$GCC" = yes; then 16349 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 16350 else 16351 reload_cmds='$LD$reload_flag -o $output$reload_objs' 16352 fi 16353 ;; 16354esac 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364if test -n "$ac_tool_prefix"; then 16365 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 16366set dummy ${ac_tool_prefix}objdump; ac_word=$2 16367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16368$as_echo_n "checking for $ac_word... " >&6; } 16369if ${ac_cv_prog_OBJDUMP+:} false; then : 16370 $as_echo_n "(cached) " >&6 16371else 16372 if test -n "$OBJDUMP"; then 16373 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 16374else 16375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16376for as_dir in $PATH 16377do 16378 IFS=$as_save_IFS 16379 test -z "$as_dir" && as_dir=. 16380 for ac_exec_ext in '' $ac_executable_extensions; do 16381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16382 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 16383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16384 break 2 16385 fi 16386done 16387 done 16388IFS=$as_save_IFS 16389 16390fi 16391fi 16392OBJDUMP=$ac_cv_prog_OBJDUMP 16393if test -n "$OBJDUMP"; then 16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 16395$as_echo "$OBJDUMP" >&6; } 16396else 16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16398$as_echo "no" >&6; } 16399fi 16400 16401 16402fi 16403if test -z "$ac_cv_prog_OBJDUMP"; then 16404 ac_ct_OBJDUMP=$OBJDUMP 16405 # Extract the first word of "objdump", so it can be a program name with args. 16406set dummy objdump; ac_word=$2 16407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16408$as_echo_n "checking for $ac_word... " >&6; } 16409if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 16410 $as_echo_n "(cached) " >&6 16411else 16412 if test -n "$ac_ct_OBJDUMP"; then 16413 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 16414else 16415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16416for as_dir in $PATH 16417do 16418 IFS=$as_save_IFS 16419 test -z "$as_dir" && as_dir=. 16420 for ac_exec_ext in '' $ac_executable_extensions; do 16421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16422 ac_cv_prog_ac_ct_OBJDUMP="objdump" 16423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16424 break 2 16425 fi 16426done 16427 done 16428IFS=$as_save_IFS 16429 16430fi 16431fi 16432ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 16433if test -n "$ac_ct_OBJDUMP"; then 16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 16435$as_echo "$ac_ct_OBJDUMP" >&6; } 16436else 16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16438$as_echo "no" >&6; } 16439fi 16440 16441 if test "x$ac_ct_OBJDUMP" = x; then 16442 OBJDUMP="false" 16443 else 16444 case $cross_compiling:$ac_tool_warned in 16445yes:) 16446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16448ac_tool_warned=yes ;; 16449esac 16450 OBJDUMP=$ac_ct_OBJDUMP 16451 fi 16452else 16453 OBJDUMP="$ac_cv_prog_OBJDUMP" 16454fi 16455 16456test -z "$OBJDUMP" && OBJDUMP=objdump 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 16467$as_echo_n "checking how to recognize dependent libraries... " >&6; } 16468if ${lt_cv_deplibs_check_method+:} false; then : 16469 $as_echo_n "(cached) " >&6 16470else 16471 lt_cv_file_magic_cmd='$MAGIC_CMD' 16472lt_cv_file_magic_test_file= 16473lt_cv_deplibs_check_method='unknown' 16474# Need to set the preceding variable on all platforms that support 16475# interlibrary dependencies. 16476# 'none' -- dependencies not supported. 16477# `unknown' -- same as none, but documents that we really don't know. 16478# 'pass_all' -- all dependencies passed with no checks. 16479# 'test_compile' -- check by making test program. 16480# 'file_magic [[regex]]' -- check by looking for files in library path 16481# which responds to the $file_magic_cmd with a given extended regex. 16482# If you have `file' or equivalent on your system and you're not sure 16483# whether `pass_all' will *always* work, you probably want this one. 16484 16485case $host_os in 16486aix[4-9]*) 16487 lt_cv_deplibs_check_method=pass_all 16488 ;; 16489 16490beos*) 16491 lt_cv_deplibs_check_method=pass_all 16492 ;; 16493 16494bsdi[45]*) 16495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 16496 lt_cv_file_magic_cmd='/usr/bin/file -L' 16497 lt_cv_file_magic_test_file=/shlib/libc.so 16498 ;; 16499 16500cygwin*) 16501 # func_win32_libid is a shell function defined in ltmain.sh 16502 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 16503 lt_cv_file_magic_cmd='func_win32_libid' 16504 ;; 16505 16506mingw* | pw32*) 16507 # Base MSYS/MinGW do not provide the 'file' command needed by 16508 # func_win32_libid shell function, so use a weaker test based on 'objdump', 16509 # unless we find 'file', for example because we are cross-compiling. 16510 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 16511 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 16512 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 16513 lt_cv_file_magic_cmd='func_win32_libid' 16514 else 16515 # Keep this pattern in sync with the one in func_win32_libid. 16516 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 16517 lt_cv_file_magic_cmd='$OBJDUMP -f' 16518 fi 16519 ;; 16520 16521cegcc*) 16522 # use the weaker test based on 'objdump'. See mingw*. 16523 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 16524 lt_cv_file_magic_cmd='$OBJDUMP -f' 16525 ;; 16526 16527darwin* | rhapsody*) 16528 lt_cv_deplibs_check_method=pass_all 16529 ;; 16530 16531freebsd* | dragonfly*) 16532 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 16533 case $host_cpu in 16534 i*86 ) 16535 # Not sure whether the presence of OpenBSD here was a mistake. 16536 # Let's accept both of them until this is cleared up. 16537 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 16538 lt_cv_file_magic_cmd=/usr/bin/file 16539 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 16540 ;; 16541 esac 16542 else 16543 lt_cv_deplibs_check_method=pass_all 16544 fi 16545 ;; 16546 16547gnu*) 16548 lt_cv_deplibs_check_method=pass_all 16549 ;; 16550 16551haiku*) 16552 lt_cv_deplibs_check_method=pass_all 16553 ;; 16554 16555hpux10.20* | hpux11*) 16556 lt_cv_file_magic_cmd=/usr/bin/file 16557 case $host_cpu in 16558 ia64*) 16559 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 16560 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 16561 ;; 16562 hppa*64*) 16563 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]' 16564 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 16565 ;; 16566 *) 16567 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 16568 lt_cv_file_magic_test_file=/usr/lib/libc.sl 16569 ;; 16570 esac 16571 ;; 16572 16573interix[3-9]*) 16574 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 16575 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 16576 ;; 16577 16578irix5* | irix6* | nonstopux*) 16579 case $LD in 16580 *-32|*"-32 ") libmagic=32-bit;; 16581 *-n32|*"-n32 ") libmagic=N32;; 16582 *-64|*"-64 ") libmagic=64-bit;; 16583 *) libmagic=never-match;; 16584 esac 16585 lt_cv_deplibs_check_method=pass_all 16586 ;; 16587 16588# This must be Linux ELF. 16589linux* | k*bsd*-gnu | kopensolaris*-gnu) 16590 lt_cv_deplibs_check_method=pass_all 16591 ;; 16592 16593netbsd*) 16594 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 16595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 16596 else 16597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 16598 fi 16599 ;; 16600 16601newos6*) 16602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 16603 lt_cv_file_magic_cmd=/usr/bin/file 16604 lt_cv_file_magic_test_file=/usr/lib/libnls.so 16605 ;; 16606 16607*nto* | *qnx*) 16608 lt_cv_deplibs_check_method=pass_all 16609 ;; 16610 16611openbsd*) 16612 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 16614 else 16615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 16616 fi 16617 ;; 16618 16619osf3* | osf4* | osf5*) 16620 lt_cv_deplibs_check_method=pass_all 16621 ;; 16622 16623rdos*) 16624 lt_cv_deplibs_check_method=pass_all 16625 ;; 16626 16627solaris*) 16628 lt_cv_deplibs_check_method=pass_all 16629 ;; 16630 16631sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16632 lt_cv_deplibs_check_method=pass_all 16633 ;; 16634 16635sysv4 | sysv4.3*) 16636 case $host_vendor in 16637 motorola) 16638 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]' 16639 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 16640 ;; 16641 ncr) 16642 lt_cv_deplibs_check_method=pass_all 16643 ;; 16644 sequent) 16645 lt_cv_file_magic_cmd='/bin/file' 16646 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 16647 ;; 16648 sni) 16649 lt_cv_file_magic_cmd='/bin/file' 16650 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 16651 lt_cv_file_magic_test_file=/lib/libc.so 16652 ;; 16653 siemens) 16654 lt_cv_deplibs_check_method=pass_all 16655 ;; 16656 pc) 16657 lt_cv_deplibs_check_method=pass_all 16658 ;; 16659 esac 16660 ;; 16661 16662tpf*) 16663 lt_cv_deplibs_check_method=pass_all 16664 ;; 16665esac 16666 16667fi 16668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 16669$as_echo "$lt_cv_deplibs_check_method" >&6; } 16670 16671file_magic_glob= 16672want_nocaseglob=no 16673if test "$build" = "$host"; then 16674 case $host_os in 16675 mingw* | pw32*) 16676 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 16677 want_nocaseglob=yes 16678 else 16679 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 16680 fi 16681 ;; 16682 esac 16683fi 16684 16685file_magic_cmd=$lt_cv_file_magic_cmd 16686deplibs_check_method=$lt_cv_deplibs_check_method 16687test -z "$deplibs_check_method" && deplibs_check_method=unknown 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710if test -n "$ac_tool_prefix"; then 16711 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 16712set dummy ${ac_tool_prefix}dlltool; ac_word=$2 16713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16714$as_echo_n "checking for $ac_word... " >&6; } 16715if ${ac_cv_prog_DLLTOOL+:} false; then : 16716 $as_echo_n "(cached) " >&6 16717else 16718 if test -n "$DLLTOOL"; then 16719 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 16720else 16721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16722for as_dir in $PATH 16723do 16724 IFS=$as_save_IFS 16725 test -z "$as_dir" && as_dir=. 16726 for ac_exec_ext in '' $ac_executable_extensions; do 16727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16728 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 16729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16730 break 2 16731 fi 16732done 16733 done 16734IFS=$as_save_IFS 16735 16736fi 16737fi 16738DLLTOOL=$ac_cv_prog_DLLTOOL 16739if test -n "$DLLTOOL"; then 16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 16741$as_echo "$DLLTOOL" >&6; } 16742else 16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16744$as_echo "no" >&6; } 16745fi 16746 16747 16748fi 16749if test -z "$ac_cv_prog_DLLTOOL"; then 16750 ac_ct_DLLTOOL=$DLLTOOL 16751 # Extract the first word of "dlltool", so it can be a program name with args. 16752set dummy dlltool; ac_word=$2 16753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16754$as_echo_n "checking for $ac_word... " >&6; } 16755if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 16756 $as_echo_n "(cached) " >&6 16757else 16758 if test -n "$ac_ct_DLLTOOL"; then 16759 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 16760else 16761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16762for as_dir in $PATH 16763do 16764 IFS=$as_save_IFS 16765 test -z "$as_dir" && as_dir=. 16766 for ac_exec_ext in '' $ac_executable_extensions; do 16767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16768 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 16769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16770 break 2 16771 fi 16772done 16773 done 16774IFS=$as_save_IFS 16775 16776fi 16777fi 16778ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 16779if test -n "$ac_ct_DLLTOOL"; then 16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 16781$as_echo "$ac_ct_DLLTOOL" >&6; } 16782else 16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16784$as_echo "no" >&6; } 16785fi 16786 16787 if test "x$ac_ct_DLLTOOL" = x; then 16788 DLLTOOL="false" 16789 else 16790 case $cross_compiling:$ac_tool_warned in 16791yes:) 16792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16794ac_tool_warned=yes ;; 16795esac 16796 DLLTOOL=$ac_ct_DLLTOOL 16797 fi 16798else 16799 DLLTOOL="$ac_cv_prog_DLLTOOL" 16800fi 16801 16802test -z "$DLLTOOL" && DLLTOOL=dlltool 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 16814$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 16815if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 16816 $as_echo_n "(cached) " >&6 16817else 16818 lt_cv_sharedlib_from_linklib_cmd='unknown' 16819 16820case $host_os in 16821cygwin* | mingw* | pw32* | cegcc*) 16822 # two different shell functions defined in ltmain.sh 16823 # decide which to use based on capabilities of $DLLTOOL 16824 case `$DLLTOOL --help 2>&1` in 16825 *--identify-strict*) 16826 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 16827 ;; 16828 *) 16829 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 16830 ;; 16831 esac 16832 ;; 16833*) 16834 # fallback: assume linklib IS sharedlib 16835 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 16836 ;; 16837esac 16838 16839fi 16840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 16841$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 16842sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 16843test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 16844 16845 16846 16847 16848 16849 16850 16851if test -n "$ac_tool_prefix"; then 16852 for ac_prog in ar 16853 do 16854 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 16855set dummy $ac_tool_prefix$ac_prog; ac_word=$2 16856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16857$as_echo_n "checking for $ac_word... " >&6; } 16858if ${ac_cv_prog_AR+:} false; then : 16859 $as_echo_n "(cached) " >&6 16860else 16861 if test -n "$AR"; then 16862 ac_cv_prog_AR="$AR" # Let the user override the test. 16863else 16864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16865for as_dir in $PATH 16866do 16867 IFS=$as_save_IFS 16868 test -z "$as_dir" && as_dir=. 16869 for ac_exec_ext in '' $ac_executable_extensions; do 16870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16871 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 16872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16873 break 2 16874 fi 16875done 16876 done 16877IFS=$as_save_IFS 16878 16879fi 16880fi 16881AR=$ac_cv_prog_AR 16882if test -n "$AR"; then 16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 16884$as_echo "$AR" >&6; } 16885else 16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16887$as_echo "no" >&6; } 16888fi 16889 16890 16891 test -n "$AR" && break 16892 done 16893fi 16894if test -z "$AR"; then 16895 ac_ct_AR=$AR 16896 for ac_prog in ar 16897do 16898 # Extract the first word of "$ac_prog", so it can be a program name with args. 16899set dummy $ac_prog; ac_word=$2 16900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16901$as_echo_n "checking for $ac_word... " >&6; } 16902if ${ac_cv_prog_ac_ct_AR+:} false; then : 16903 $as_echo_n "(cached) " >&6 16904else 16905 if test -n "$ac_ct_AR"; then 16906 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 16907else 16908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16909for as_dir in $PATH 16910do 16911 IFS=$as_save_IFS 16912 test -z "$as_dir" && as_dir=. 16913 for ac_exec_ext in '' $ac_executable_extensions; do 16914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16915 ac_cv_prog_ac_ct_AR="$ac_prog" 16916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16917 break 2 16918 fi 16919done 16920 done 16921IFS=$as_save_IFS 16922 16923fi 16924fi 16925ac_ct_AR=$ac_cv_prog_ac_ct_AR 16926if test -n "$ac_ct_AR"; then 16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 16928$as_echo "$ac_ct_AR" >&6; } 16929else 16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16931$as_echo "no" >&6; } 16932fi 16933 16934 16935 test -n "$ac_ct_AR" && break 16936done 16937 16938 if test "x$ac_ct_AR" = x; then 16939 AR="false" 16940 else 16941 case $cross_compiling:$ac_tool_warned in 16942yes:) 16943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16945ac_tool_warned=yes ;; 16946esac 16947 AR=$ac_ct_AR 16948 fi 16949fi 16950 16951: ${AR=ar} 16952: ${AR_FLAGS=cru} 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 16965$as_echo_n "checking for archiver @FILE support... " >&6; } 16966if ${lt_cv_ar_at_file+:} false; then : 16967 $as_echo_n "(cached) " >&6 16968else 16969 lt_cv_ar_at_file=no 16970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16971/* end confdefs.h. */ 16972 16973int 16974main () 16975{ 16976 16977 ; 16978 return 0; 16979} 16980_ACEOF 16981if ac_fn_c_try_compile "$LINENO"; then : 16982 echo conftest.$ac_objext > conftest.lst 16983 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 16984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 16985 (eval $lt_ar_try) 2>&5 16986 ac_status=$? 16987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16988 test $ac_status = 0; } 16989 if test "$ac_status" -eq 0; then 16990 # Ensure the archiver fails upon bogus file names. 16991 rm -f conftest.$ac_objext libconftest.a 16992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 16993 (eval $lt_ar_try) 2>&5 16994 ac_status=$? 16995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16996 test $ac_status = 0; } 16997 if test "$ac_status" -ne 0; then 16998 lt_cv_ar_at_file=@ 16999 fi 17000 fi 17001 rm -f conftest.* libconftest.a 17002 17003fi 17004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17005 17006fi 17007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 17008$as_echo "$lt_cv_ar_at_file" >&6; } 17009 17010if test "x$lt_cv_ar_at_file" = xno; then 17011 archiver_list_spec= 17012else 17013 archiver_list_spec=$lt_cv_ar_at_file 17014fi 17015 17016 17017 17018 17019 17020 17021 17022if test -n "$ac_tool_prefix"; then 17023 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 17024set dummy ${ac_tool_prefix}strip; ac_word=$2 17025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17026$as_echo_n "checking for $ac_word... " >&6; } 17027if ${ac_cv_prog_STRIP+:} false; then : 17028 $as_echo_n "(cached) " >&6 17029else 17030 if test -n "$STRIP"; then 17031 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 17032else 17033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17034for as_dir in $PATH 17035do 17036 IFS=$as_save_IFS 17037 test -z "$as_dir" && as_dir=. 17038 for ac_exec_ext in '' $ac_executable_extensions; do 17039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17040 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 17041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17042 break 2 17043 fi 17044done 17045 done 17046IFS=$as_save_IFS 17047 17048fi 17049fi 17050STRIP=$ac_cv_prog_STRIP 17051if test -n "$STRIP"; then 17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 17053$as_echo "$STRIP" >&6; } 17054else 17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17056$as_echo "no" >&6; } 17057fi 17058 17059 17060fi 17061if test -z "$ac_cv_prog_STRIP"; then 17062 ac_ct_STRIP=$STRIP 17063 # Extract the first word of "strip", so it can be a program name with args. 17064set dummy strip; ac_word=$2 17065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17066$as_echo_n "checking for $ac_word... " >&6; } 17067if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 17068 $as_echo_n "(cached) " >&6 17069else 17070 if test -n "$ac_ct_STRIP"; then 17071 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 17072else 17073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17074for as_dir in $PATH 17075do 17076 IFS=$as_save_IFS 17077 test -z "$as_dir" && as_dir=. 17078 for ac_exec_ext in '' $ac_executable_extensions; do 17079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17080 ac_cv_prog_ac_ct_STRIP="strip" 17081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17082 break 2 17083 fi 17084done 17085 done 17086IFS=$as_save_IFS 17087 17088fi 17089fi 17090ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 17091if test -n "$ac_ct_STRIP"; then 17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 17093$as_echo "$ac_ct_STRIP" >&6; } 17094else 17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17096$as_echo "no" >&6; } 17097fi 17098 17099 if test "x$ac_ct_STRIP" = x; then 17100 STRIP=":" 17101 else 17102 case $cross_compiling:$ac_tool_warned in 17103yes:) 17104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17106ac_tool_warned=yes ;; 17107esac 17108 STRIP=$ac_ct_STRIP 17109 fi 17110else 17111 STRIP="$ac_cv_prog_STRIP" 17112fi 17113 17114test -z "$STRIP" && STRIP=: 17115 17116 17117 17118 17119 17120 17121if test -n "$ac_tool_prefix"; then 17122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 17123set dummy ${ac_tool_prefix}ranlib; ac_word=$2 17124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17125$as_echo_n "checking for $ac_word... " >&6; } 17126if ${ac_cv_prog_RANLIB+:} false; then : 17127 $as_echo_n "(cached) " >&6 17128else 17129 if test -n "$RANLIB"; then 17130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 17131else 17132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17133for as_dir in $PATH 17134do 17135 IFS=$as_save_IFS 17136 test -z "$as_dir" && as_dir=. 17137 for ac_exec_ext in '' $ac_executable_extensions; do 17138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17139 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 17140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17141 break 2 17142 fi 17143done 17144 done 17145IFS=$as_save_IFS 17146 17147fi 17148fi 17149RANLIB=$ac_cv_prog_RANLIB 17150if test -n "$RANLIB"; then 17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 17152$as_echo "$RANLIB" >&6; } 17153else 17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17155$as_echo "no" >&6; } 17156fi 17157 17158 17159fi 17160if test -z "$ac_cv_prog_RANLIB"; then 17161 ac_ct_RANLIB=$RANLIB 17162 # Extract the first word of "ranlib", so it can be a program name with args. 17163set dummy ranlib; ac_word=$2 17164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17165$as_echo_n "checking for $ac_word... " >&6; } 17166if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 17167 $as_echo_n "(cached) " >&6 17168else 17169 if test -n "$ac_ct_RANLIB"; then 17170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 17171else 17172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17173for as_dir in $PATH 17174do 17175 IFS=$as_save_IFS 17176 test -z "$as_dir" && as_dir=. 17177 for ac_exec_ext in '' $ac_executable_extensions; do 17178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17179 ac_cv_prog_ac_ct_RANLIB="ranlib" 17180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17181 break 2 17182 fi 17183done 17184 done 17185IFS=$as_save_IFS 17186 17187fi 17188fi 17189ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 17190if test -n "$ac_ct_RANLIB"; then 17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 17192$as_echo "$ac_ct_RANLIB" >&6; } 17193else 17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17195$as_echo "no" >&6; } 17196fi 17197 17198 if test "x$ac_ct_RANLIB" = x; then 17199 RANLIB=":" 17200 else 17201 case $cross_compiling:$ac_tool_warned in 17202yes:) 17203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17205ac_tool_warned=yes ;; 17206esac 17207 RANLIB=$ac_ct_RANLIB 17208 fi 17209else 17210 RANLIB="$ac_cv_prog_RANLIB" 17211fi 17212 17213test -z "$RANLIB" && RANLIB=: 17214 17215 17216 17217 17218 17219 17220# Determine commands to create old-style static archives. 17221old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 17222old_postinstall_cmds='chmod 644 $oldlib' 17223old_postuninstall_cmds= 17224 17225if test -n "$RANLIB"; then 17226 case $host_os in 17227 openbsd*) 17228 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 17229 ;; 17230 *) 17231 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 17232 ;; 17233 esac 17234 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 17235fi 17236 17237case $host_os in 17238 darwin*) 17239 lock_old_archive_extraction=yes ;; 17240 *) 17241 lock_old_archive_extraction=no ;; 17242esac 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282# If no C compiler was specified, use CC. 17283LTCC=${LTCC-"$CC"} 17284 17285# If no C compiler flags were specified, use CFLAGS. 17286LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17287 17288# Allow CC to be a program name with arguments. 17289compiler=$CC 17290 17291 17292# Check for command to grab the raw symbol name followed by C symbol from nm. 17293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 17294$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 17295if ${lt_cv_sys_global_symbol_pipe+:} false; then : 17296 $as_echo_n "(cached) " >&6 17297else 17298 17299# These are sane defaults that work on at least a few old systems. 17300# [They come from Ultrix. What could be older than Ultrix?!! ;)] 17301 17302# Character class describing NM global symbol codes. 17303symcode='[BCDEGRST]' 17304 17305# Regexp to match symbols that can be accessed directly from C. 17306sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 17307 17308# Define system-specific variables. 17309case $host_os in 17310aix*) 17311 symcode='[BCDT]' 17312 ;; 17313cygwin* | mingw* | pw32* | cegcc*) 17314 symcode='[ABCDGISTW]' 17315 ;; 17316hpux*) 17317 if test "$host_cpu" = ia64; then 17318 symcode='[ABCDEGRST]' 17319 fi 17320 ;; 17321irix* | nonstopux*) 17322 symcode='[BCDEGRST]' 17323 ;; 17324osf*) 17325 symcode='[BCDEGQRST]' 17326 ;; 17327solaris*) 17328 symcode='[BDRT]' 17329 ;; 17330sco3.2v5*) 17331 symcode='[DT]' 17332 ;; 17333sysv4.2uw2*) 17334 symcode='[DT]' 17335 ;; 17336sysv5* | sco5v6* | unixware* | OpenUNIX*) 17337 symcode='[ABDT]' 17338 ;; 17339sysv4) 17340 symcode='[DFNSTU]' 17341 ;; 17342esac 17343 17344# If we're using GNU nm, then use its standard symbol codes. 17345case `$NM -V 2>&1` in 17346*GNU* | *'with BFD'*) 17347 symcode='[ABCDGIRSTW]' ;; 17348esac 17349 17350# Transform an extracted symbol line into a proper C declaration. 17351# Some systems (esp. on ia64) link data and code symbols differently, 17352# so use this general approach. 17353lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 17354 17355# Transform an extracted symbol line into symbol name and symbol address 17356lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 17357lt_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'" 17358 17359# Handle CRLF in mingw tool chain 17360opt_cr= 17361case $build_os in 17362mingw*) 17363 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 17364 ;; 17365esac 17366 17367# Try without a prefix underscore, then with it. 17368for ac_symprfx in "" "_"; do 17369 17370 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 17371 symxfrm="\\1 $ac_symprfx\\2 \\2" 17372 17373 # Write the raw and C identifiers. 17374 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 17375 # Fake it for dumpbin and say T for any non-static function 17376 # and D for any global variable. 17377 # Also find C++ and __fastcall symbols from MSVC++, 17378 # which start with @ or ?. 17379 lt_cv_sys_global_symbol_pipe="$AWK '"\ 17380" {last_section=section; section=\$ 3};"\ 17381" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 17382" \$ 0!~/External *\|/{next};"\ 17383" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 17384" {if(hide[section]) next};"\ 17385" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 17386" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 17387" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 17388" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 17389" ' prfx=^$ac_symprfx" 17390 else 17391 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 17392 fi 17393 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 17394 17395 # Check to see that the pipe works correctly. 17396 pipe_works=no 17397 17398 rm -f conftest* 17399 cat > conftest.$ac_ext <<_LT_EOF 17400#ifdef __cplusplus 17401extern "C" { 17402#endif 17403char nm_test_var; 17404void nm_test_func(void); 17405void nm_test_func(void){} 17406#ifdef __cplusplus 17407} 17408#endif 17409int main(){nm_test_var='a';nm_test_func();return(0);} 17410_LT_EOF 17411 17412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17413 (eval $ac_compile) 2>&5 17414 ac_status=$? 17415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17416 test $ac_status = 0; }; then 17417 # Now try to grab the symbols. 17418 nlist=conftest.nm 17419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 17420 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 17421 ac_status=$? 17422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17423 test $ac_status = 0; } && test -s "$nlist"; then 17424 # Try sorting and uniquifying the output. 17425 if sort "$nlist" | uniq > "$nlist"T; then 17426 mv -f "$nlist"T "$nlist" 17427 else 17428 rm -f "$nlist"T 17429 fi 17430 17431 # Make sure that we snagged all the symbols we need. 17432 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 17433 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 17434 cat <<_LT_EOF > conftest.$ac_ext 17435/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 17436#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 17437/* DATA imports from DLLs on WIN32 con't be const, because runtime 17438 relocations are performed -- see ld's documentation on pseudo-relocs. */ 17439# define LT_DLSYM_CONST 17440#elif defined(__osf__) 17441/* This system does not cope well with relocations in const data. */ 17442# define LT_DLSYM_CONST 17443#else 17444# define LT_DLSYM_CONST const 17445#endif 17446 17447#ifdef __cplusplus 17448extern "C" { 17449#endif 17450 17451_LT_EOF 17452 # Now generate the symbol file. 17453 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 17454 17455 cat <<_LT_EOF >> conftest.$ac_ext 17456 17457/* The mapping between symbol names and symbols. */ 17458LT_DLSYM_CONST struct { 17459 const char *name; 17460 void *address; 17461} 17462lt__PROGRAM__LTX_preloaded_symbols[] = 17463{ 17464 { "@PROGRAM@", (void *) 0 }, 17465_LT_EOF 17466 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 17467 cat <<\_LT_EOF >> conftest.$ac_ext 17468 {0, (void *) 0} 17469}; 17470 17471/* This works around a problem in FreeBSD linker */ 17472#ifdef FREEBSD_WORKAROUND 17473static const void *lt_preloaded_setup() { 17474 return lt__PROGRAM__LTX_preloaded_symbols; 17475} 17476#endif 17477 17478#ifdef __cplusplus 17479} 17480#endif 17481_LT_EOF 17482 # Now try linking the two files. 17483 mv conftest.$ac_objext conftstm.$ac_objext 17484 lt_globsym_save_LIBS=$LIBS 17485 lt_globsym_save_CFLAGS=$CFLAGS 17486 LIBS="conftstm.$ac_objext" 17487 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 17488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17489 (eval $ac_link) 2>&5 17490 ac_status=$? 17491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17492 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 17493 pipe_works=yes 17494 fi 17495 LIBS=$lt_globsym_save_LIBS 17496 CFLAGS=$lt_globsym_save_CFLAGS 17497 else 17498 echo "cannot find nm_test_func in $nlist" >&5 17499 fi 17500 else 17501 echo "cannot find nm_test_var in $nlist" >&5 17502 fi 17503 else 17504 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 17505 fi 17506 else 17507 echo "$progname: failed program was:" >&5 17508 cat conftest.$ac_ext >&5 17509 fi 17510 rm -rf conftest* conftst* 17511 17512 # Do not use the global_symbol_pipe unless it works. 17513 if test "$pipe_works" = yes; then 17514 break 17515 else 17516 lt_cv_sys_global_symbol_pipe= 17517 fi 17518done 17519 17520fi 17521 17522if test -z "$lt_cv_sys_global_symbol_pipe"; then 17523 lt_cv_sys_global_symbol_to_cdecl= 17524fi 17525if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 17527$as_echo "failed" >&6; } 17528else 17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 17530$as_echo "ok" >&6; } 17531fi 17532 17533# Response file support. 17534if test "$lt_cv_nm_interface" = "MS dumpbin"; then 17535 nm_file_list_spec='@' 17536elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 17537 nm_file_list_spec='@' 17538fi 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17567$as_echo_n "checking for sysroot... " >&6; } 17568 17569# Check whether --with-sysroot was given. 17570if test "${with_sysroot+set}" = set; then : 17571 withval=$with_sysroot; 17572else 17573 with_sysroot=no 17574fi 17575 17576 17577lt_sysroot= 17578case ${with_sysroot} in #( 17579 yes) 17580 if test "$GCC" = yes; then 17581 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 17582 fi 17583 ;; #( 17584 /*) 17585 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 17586 ;; #( 17587 no|'') 17588 ;; #( 17589 *) 17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 17591$as_echo "${with_sysroot}" >&6; } 17592 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 17593 ;; 17594esac 17595 17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 17597$as_echo "${lt_sysroot:-no}" >&6; } 17598 17599 17600 17601 17602 17603# Check whether --enable-libtool-lock was given. 17604if test "${enable_libtool_lock+set}" = set; then : 17605 enableval=$enable_libtool_lock; 17606fi 17607 17608test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 17609 17610# Some flags need to be propagated to the compiler or linker for good 17611# libtool support. 17612case $host in 17613ia64-*-hpux*) 17614 # Find out which ABI we are using. 17615 echo 'int i;' > conftest.$ac_ext 17616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17617 (eval $ac_compile) 2>&5 17618 ac_status=$? 17619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17620 test $ac_status = 0; }; then 17621 case `/usr/bin/file conftest.$ac_objext` in 17622 *ELF-32*) 17623 HPUX_IA64_MODE="32" 17624 ;; 17625 *ELF-64*) 17626 HPUX_IA64_MODE="64" 17627 ;; 17628 esac 17629 fi 17630 rm -rf conftest* 17631 ;; 17632*-*-irix6*) 17633 # Find out which ABI we are using. 17634 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 17635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17636 (eval $ac_compile) 2>&5 17637 ac_status=$? 17638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17639 test $ac_status = 0; }; then 17640 if test "$lt_cv_prog_gnu_ld" = yes; then 17641 case `/usr/bin/file conftest.$ac_objext` in 17642 *32-bit*) 17643 LD="${LD-ld} -melf32bsmip" 17644 ;; 17645 *N32*) 17646 LD="${LD-ld} -melf32bmipn32" 17647 ;; 17648 *64-bit*) 17649 LD="${LD-ld} -melf64bmip" 17650 ;; 17651 esac 17652 else 17653 case `/usr/bin/file conftest.$ac_objext` in 17654 *32-bit*) 17655 LD="${LD-ld} -32" 17656 ;; 17657 *N32*) 17658 LD="${LD-ld} -n32" 17659 ;; 17660 *64-bit*) 17661 LD="${LD-ld} -64" 17662 ;; 17663 esac 17664 fi 17665 fi 17666 rm -rf conftest* 17667 ;; 17668 17669x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 17670s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 17671 # Find out which ABI we are using. 17672 echo 'int i;' > conftest.$ac_ext 17673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17674 (eval $ac_compile) 2>&5 17675 ac_status=$? 17676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17677 test $ac_status = 0; }; then 17678 case `/usr/bin/file conftest.o` in 17679 *32-bit*) 17680 case $host in 17681 x86_64-*kfreebsd*-gnu) 17682 LD="${LD-ld} -m elf_i386_fbsd" 17683 ;; 17684 x86_64-*linux*) 17685 LD="${LD-ld} -m elf_i386" 17686 ;; 17687 ppc64-*linux*|powerpc64-*linux*) 17688 LD="${LD-ld} -m elf32ppclinux" 17689 ;; 17690 s390x-*linux*) 17691 LD="${LD-ld} -m elf_s390" 17692 ;; 17693 sparc64-*linux*) 17694 LD="${LD-ld} -m elf32_sparc" 17695 ;; 17696 esac 17697 ;; 17698 *64-bit*) 17699 case $host in 17700 x86_64-*kfreebsd*-gnu) 17701 LD="${LD-ld} -m elf_x86_64_fbsd" 17702 ;; 17703 x86_64-*linux*) 17704 LD="${LD-ld} -m elf_x86_64" 17705 ;; 17706 ppc*-*linux*|powerpc*-*linux*) 17707 LD="${LD-ld} -m elf64ppc" 17708 ;; 17709 s390*-*linux*|s390*-*tpf*) 17710 LD="${LD-ld} -m elf64_s390" 17711 ;; 17712 sparc*-*linux*) 17713 LD="${LD-ld} -m elf64_sparc" 17714 ;; 17715 esac 17716 ;; 17717 esac 17718 fi 17719 rm -rf conftest* 17720 ;; 17721 17722*-*-sco3.2v5*) 17723 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 17724 SAVE_CFLAGS="$CFLAGS" 17725 CFLAGS="$CFLAGS -belf" 17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 17727$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 17728if ${lt_cv_cc_needs_belf+:} false; then : 17729 $as_echo_n "(cached) " >&6 17730else 17731 ac_ext=c 17732ac_cpp='$CPP $CPPFLAGS' 17733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17735ac_compiler_gnu=$ac_cv_c_compiler_gnu 17736 17737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17738/* end confdefs.h. */ 17739 17740int 17741main () 17742{ 17743 17744 ; 17745 return 0; 17746} 17747_ACEOF 17748if ac_fn_c_try_link "$LINENO"; then : 17749 lt_cv_cc_needs_belf=yes 17750else 17751 lt_cv_cc_needs_belf=no 17752fi 17753rm -f core conftest.err conftest.$ac_objext \ 17754 conftest$ac_exeext conftest.$ac_ext 17755 ac_ext=c 17756ac_cpp='$CPP $CPPFLAGS' 17757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17759ac_compiler_gnu=$ac_cv_c_compiler_gnu 17760 17761fi 17762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 17763$as_echo "$lt_cv_cc_needs_belf" >&6; } 17764 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 17765 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 17766 CFLAGS="$SAVE_CFLAGS" 17767 fi 17768 ;; 17769sparc*-*solaris*) 17770 # Find out which ABI we are using. 17771 echo 'int i;' > conftest.$ac_ext 17772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17773 (eval $ac_compile) 2>&5 17774 ac_status=$? 17775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17776 test $ac_status = 0; }; then 17777 case `/usr/bin/file conftest.o` in 17778 *64-bit*) 17779 case $lt_cv_prog_gnu_ld in 17780 yes*) LD="${LD-ld} -m elf64_sparc" ;; 17781 *) 17782 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 17783 LD="${LD-ld} -64" 17784 fi 17785 ;; 17786 esac 17787 ;; 17788 esac 17789 fi 17790 rm -rf conftest* 17791 ;; 17792esac 17793 17794need_locks="$enable_libtool_lock" 17795 17796if test -n "$ac_tool_prefix"; then 17797 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 17798set dummy ${ac_tool_prefix}mt; ac_word=$2 17799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17800$as_echo_n "checking for $ac_word... " >&6; } 17801if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 17802 $as_echo_n "(cached) " >&6 17803else 17804 if test -n "$MANIFEST_TOOL"; then 17805 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 17806else 17807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17808for as_dir in $PATH 17809do 17810 IFS=$as_save_IFS 17811 test -z "$as_dir" && as_dir=. 17812 for ac_exec_ext in '' $ac_executable_extensions; do 17813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17814 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 17815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17816 break 2 17817 fi 17818done 17819 done 17820IFS=$as_save_IFS 17821 17822fi 17823fi 17824MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 17825if test -n "$MANIFEST_TOOL"; then 17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 17827$as_echo "$MANIFEST_TOOL" >&6; } 17828else 17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17830$as_echo "no" >&6; } 17831fi 17832 17833 17834fi 17835if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 17836 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 17837 # Extract the first word of "mt", so it can be a program name with args. 17838set dummy mt; ac_word=$2 17839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17840$as_echo_n "checking for $ac_word... " >&6; } 17841if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 17842 $as_echo_n "(cached) " >&6 17843else 17844 if test -n "$ac_ct_MANIFEST_TOOL"; then 17845 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 17846else 17847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17848for as_dir in $PATH 17849do 17850 IFS=$as_save_IFS 17851 test -z "$as_dir" && as_dir=. 17852 for ac_exec_ext in '' $ac_executable_extensions; do 17853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17854 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 17855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17856 break 2 17857 fi 17858done 17859 done 17860IFS=$as_save_IFS 17861 17862fi 17863fi 17864ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 17865if test -n "$ac_ct_MANIFEST_TOOL"; then 17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 17867$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 17868else 17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17870$as_echo "no" >&6; } 17871fi 17872 17873 if test "x$ac_ct_MANIFEST_TOOL" = x; then 17874 MANIFEST_TOOL=":" 17875 else 17876 case $cross_compiling:$ac_tool_warned in 17877yes:) 17878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17880ac_tool_warned=yes ;; 17881esac 17882 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 17883 fi 17884else 17885 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 17886fi 17887 17888test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 17889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 17890$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 17891if ${lt_cv_path_mainfest_tool+:} false; then : 17892 $as_echo_n "(cached) " >&6 17893else 17894 lt_cv_path_mainfest_tool=no 17895 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 17896 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 17897 cat conftest.err >&5 17898 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 17899 lt_cv_path_mainfest_tool=yes 17900 fi 17901 rm -f conftest* 17902fi 17903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 17904$as_echo "$lt_cv_path_mainfest_tool" >&6; } 17905if test "x$lt_cv_path_mainfest_tool" != xyes; then 17906 MANIFEST_TOOL=: 17907fi 17908 17909 17910 17911 17912 17913 17914 case $host_os in 17915 rhapsody* | darwin*) 17916 if test -n "$ac_tool_prefix"; then 17917 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 17918set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 17919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17920$as_echo_n "checking for $ac_word... " >&6; } 17921if ${ac_cv_prog_DSYMUTIL+:} false; then : 17922 $as_echo_n "(cached) " >&6 17923else 17924 if test -n "$DSYMUTIL"; then 17925 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 17926else 17927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17928for as_dir in $PATH 17929do 17930 IFS=$as_save_IFS 17931 test -z "$as_dir" && as_dir=. 17932 for ac_exec_ext in '' $ac_executable_extensions; do 17933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17934 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 17935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17936 break 2 17937 fi 17938done 17939 done 17940IFS=$as_save_IFS 17941 17942fi 17943fi 17944DSYMUTIL=$ac_cv_prog_DSYMUTIL 17945if test -n "$DSYMUTIL"; then 17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 17947$as_echo "$DSYMUTIL" >&6; } 17948else 17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17950$as_echo "no" >&6; } 17951fi 17952 17953 17954fi 17955if test -z "$ac_cv_prog_DSYMUTIL"; then 17956 ac_ct_DSYMUTIL=$DSYMUTIL 17957 # Extract the first word of "dsymutil", so it can be a program name with args. 17958set dummy dsymutil; ac_word=$2 17959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17960$as_echo_n "checking for $ac_word... " >&6; } 17961if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 17962 $as_echo_n "(cached) " >&6 17963else 17964 if test -n "$ac_ct_DSYMUTIL"; then 17965 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 17966else 17967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17968for as_dir in $PATH 17969do 17970 IFS=$as_save_IFS 17971 test -z "$as_dir" && as_dir=. 17972 for ac_exec_ext in '' $ac_executable_extensions; do 17973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17974 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 17975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17976 break 2 17977 fi 17978done 17979 done 17980IFS=$as_save_IFS 17981 17982fi 17983fi 17984ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 17985if test -n "$ac_ct_DSYMUTIL"; then 17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 17987$as_echo "$ac_ct_DSYMUTIL" >&6; } 17988else 17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17990$as_echo "no" >&6; } 17991fi 17992 17993 if test "x$ac_ct_DSYMUTIL" = x; then 17994 DSYMUTIL=":" 17995 else 17996 case $cross_compiling:$ac_tool_warned in 17997yes:) 17998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18000ac_tool_warned=yes ;; 18001esac 18002 DSYMUTIL=$ac_ct_DSYMUTIL 18003 fi 18004else 18005 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 18006fi 18007 18008 if test -n "$ac_tool_prefix"; then 18009 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 18010set dummy ${ac_tool_prefix}nmedit; ac_word=$2 18011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18012$as_echo_n "checking for $ac_word... " >&6; } 18013if ${ac_cv_prog_NMEDIT+:} false; then : 18014 $as_echo_n "(cached) " >&6 18015else 18016 if test -n "$NMEDIT"; then 18017 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 18018else 18019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18020for as_dir in $PATH 18021do 18022 IFS=$as_save_IFS 18023 test -z "$as_dir" && as_dir=. 18024 for ac_exec_ext in '' $ac_executable_extensions; do 18025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18026 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 18027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18028 break 2 18029 fi 18030done 18031 done 18032IFS=$as_save_IFS 18033 18034fi 18035fi 18036NMEDIT=$ac_cv_prog_NMEDIT 18037if test -n "$NMEDIT"; then 18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 18039$as_echo "$NMEDIT" >&6; } 18040else 18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18042$as_echo "no" >&6; } 18043fi 18044 18045 18046fi 18047if test -z "$ac_cv_prog_NMEDIT"; then 18048 ac_ct_NMEDIT=$NMEDIT 18049 # Extract the first word of "nmedit", so it can be a program name with args. 18050set dummy nmedit; ac_word=$2 18051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18052$as_echo_n "checking for $ac_word... " >&6; } 18053if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 18054 $as_echo_n "(cached) " >&6 18055else 18056 if test -n "$ac_ct_NMEDIT"; then 18057 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 18058else 18059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18060for as_dir in $PATH 18061do 18062 IFS=$as_save_IFS 18063 test -z "$as_dir" && as_dir=. 18064 for ac_exec_ext in '' $ac_executable_extensions; do 18065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18066 ac_cv_prog_ac_ct_NMEDIT="nmedit" 18067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18068 break 2 18069 fi 18070done 18071 done 18072IFS=$as_save_IFS 18073 18074fi 18075fi 18076ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 18077if test -n "$ac_ct_NMEDIT"; then 18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 18079$as_echo "$ac_ct_NMEDIT" >&6; } 18080else 18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18082$as_echo "no" >&6; } 18083fi 18084 18085 if test "x$ac_ct_NMEDIT" = x; then 18086 NMEDIT=":" 18087 else 18088 case $cross_compiling:$ac_tool_warned in 18089yes:) 18090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18092ac_tool_warned=yes ;; 18093esac 18094 NMEDIT=$ac_ct_NMEDIT 18095 fi 18096else 18097 NMEDIT="$ac_cv_prog_NMEDIT" 18098fi 18099 18100 if test -n "$ac_tool_prefix"; then 18101 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 18102set dummy ${ac_tool_prefix}lipo; ac_word=$2 18103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18104$as_echo_n "checking for $ac_word... " >&6; } 18105if ${ac_cv_prog_LIPO+:} false; then : 18106 $as_echo_n "(cached) " >&6 18107else 18108 if test -n "$LIPO"; then 18109 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 18110else 18111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18112for as_dir in $PATH 18113do 18114 IFS=$as_save_IFS 18115 test -z "$as_dir" && as_dir=. 18116 for ac_exec_ext in '' $ac_executable_extensions; do 18117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18118 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 18119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18120 break 2 18121 fi 18122done 18123 done 18124IFS=$as_save_IFS 18125 18126fi 18127fi 18128LIPO=$ac_cv_prog_LIPO 18129if test -n "$LIPO"; then 18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 18131$as_echo "$LIPO" >&6; } 18132else 18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18134$as_echo "no" >&6; } 18135fi 18136 18137 18138fi 18139if test -z "$ac_cv_prog_LIPO"; then 18140 ac_ct_LIPO=$LIPO 18141 # Extract the first word of "lipo", so it can be a program name with args. 18142set dummy lipo; ac_word=$2 18143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18144$as_echo_n "checking for $ac_word... " >&6; } 18145if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 18146 $as_echo_n "(cached) " >&6 18147else 18148 if test -n "$ac_ct_LIPO"; then 18149 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 18150else 18151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18152for as_dir in $PATH 18153do 18154 IFS=$as_save_IFS 18155 test -z "$as_dir" && as_dir=. 18156 for ac_exec_ext in '' $ac_executable_extensions; do 18157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18158 ac_cv_prog_ac_ct_LIPO="lipo" 18159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18160 break 2 18161 fi 18162done 18163 done 18164IFS=$as_save_IFS 18165 18166fi 18167fi 18168ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 18169if test -n "$ac_ct_LIPO"; then 18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 18171$as_echo "$ac_ct_LIPO" >&6; } 18172else 18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18174$as_echo "no" >&6; } 18175fi 18176 18177 if test "x$ac_ct_LIPO" = x; then 18178 LIPO=":" 18179 else 18180 case $cross_compiling:$ac_tool_warned in 18181yes:) 18182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18184ac_tool_warned=yes ;; 18185esac 18186 LIPO=$ac_ct_LIPO 18187 fi 18188else 18189 LIPO="$ac_cv_prog_LIPO" 18190fi 18191 18192 if test -n "$ac_tool_prefix"; then 18193 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 18194set dummy ${ac_tool_prefix}otool; ac_word=$2 18195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18196$as_echo_n "checking for $ac_word... " >&6; } 18197if ${ac_cv_prog_OTOOL+:} false; then : 18198 $as_echo_n "(cached) " >&6 18199else 18200 if test -n "$OTOOL"; then 18201 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 18202else 18203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18204for as_dir in $PATH 18205do 18206 IFS=$as_save_IFS 18207 test -z "$as_dir" && as_dir=. 18208 for ac_exec_ext in '' $ac_executable_extensions; do 18209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18210 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 18211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18212 break 2 18213 fi 18214done 18215 done 18216IFS=$as_save_IFS 18217 18218fi 18219fi 18220OTOOL=$ac_cv_prog_OTOOL 18221if test -n "$OTOOL"; then 18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18223$as_echo "$OTOOL" >&6; } 18224else 18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18226$as_echo "no" >&6; } 18227fi 18228 18229 18230fi 18231if test -z "$ac_cv_prog_OTOOL"; then 18232 ac_ct_OTOOL=$OTOOL 18233 # Extract the first word of "otool", so it can be a program name with args. 18234set dummy otool; ac_word=$2 18235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18236$as_echo_n "checking for $ac_word... " >&6; } 18237if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 18238 $as_echo_n "(cached) " >&6 18239else 18240 if test -n "$ac_ct_OTOOL"; then 18241 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 18242else 18243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18244for as_dir in $PATH 18245do 18246 IFS=$as_save_IFS 18247 test -z "$as_dir" && as_dir=. 18248 for ac_exec_ext in '' $ac_executable_extensions; do 18249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18250 ac_cv_prog_ac_ct_OTOOL="otool" 18251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18252 break 2 18253 fi 18254done 18255 done 18256IFS=$as_save_IFS 18257 18258fi 18259fi 18260ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 18261if test -n "$ac_ct_OTOOL"; then 18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 18263$as_echo "$ac_ct_OTOOL" >&6; } 18264else 18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18266$as_echo "no" >&6; } 18267fi 18268 18269 if test "x$ac_ct_OTOOL" = x; then 18270 OTOOL=":" 18271 else 18272 case $cross_compiling:$ac_tool_warned in 18273yes:) 18274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18276ac_tool_warned=yes ;; 18277esac 18278 OTOOL=$ac_ct_OTOOL 18279 fi 18280else 18281 OTOOL="$ac_cv_prog_OTOOL" 18282fi 18283 18284 if test -n "$ac_tool_prefix"; then 18285 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 18286set dummy ${ac_tool_prefix}otool64; ac_word=$2 18287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18288$as_echo_n "checking for $ac_word... " >&6; } 18289if ${ac_cv_prog_OTOOL64+:} false; then : 18290 $as_echo_n "(cached) " >&6 18291else 18292 if test -n "$OTOOL64"; then 18293 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 18294else 18295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18296for as_dir in $PATH 18297do 18298 IFS=$as_save_IFS 18299 test -z "$as_dir" && as_dir=. 18300 for ac_exec_ext in '' $ac_executable_extensions; do 18301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18302 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 18303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18304 break 2 18305 fi 18306done 18307 done 18308IFS=$as_save_IFS 18309 18310fi 18311fi 18312OTOOL64=$ac_cv_prog_OTOOL64 18313if test -n "$OTOOL64"; then 18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 18315$as_echo "$OTOOL64" >&6; } 18316else 18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18318$as_echo "no" >&6; } 18319fi 18320 18321 18322fi 18323if test -z "$ac_cv_prog_OTOOL64"; then 18324 ac_ct_OTOOL64=$OTOOL64 18325 # Extract the first word of "otool64", so it can be a program name with args. 18326set dummy otool64; ac_word=$2 18327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18328$as_echo_n "checking for $ac_word... " >&6; } 18329if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 18330 $as_echo_n "(cached) " >&6 18331else 18332 if test -n "$ac_ct_OTOOL64"; then 18333 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 18334else 18335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18336for as_dir in $PATH 18337do 18338 IFS=$as_save_IFS 18339 test -z "$as_dir" && as_dir=. 18340 for ac_exec_ext in '' $ac_executable_extensions; do 18341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18342 ac_cv_prog_ac_ct_OTOOL64="otool64" 18343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18344 break 2 18345 fi 18346done 18347 done 18348IFS=$as_save_IFS 18349 18350fi 18351fi 18352ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 18353if test -n "$ac_ct_OTOOL64"; then 18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 18355$as_echo "$ac_ct_OTOOL64" >&6; } 18356else 18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18358$as_echo "no" >&6; } 18359fi 18360 18361 if test "x$ac_ct_OTOOL64" = x; then 18362 OTOOL64=":" 18363 else 18364 case $cross_compiling:$ac_tool_warned in 18365yes:) 18366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18368ac_tool_warned=yes ;; 18369esac 18370 OTOOL64=$ac_ct_OTOOL64 18371 fi 18372else 18373 OTOOL64="$ac_cv_prog_OTOOL64" 18374fi 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 18403$as_echo_n "checking for -single_module linker flag... " >&6; } 18404if ${lt_cv_apple_cc_single_mod+:} false; then : 18405 $as_echo_n "(cached) " >&6 18406else 18407 lt_cv_apple_cc_single_mod=no 18408 if test -z "${LT_MULTI_MODULE}"; then 18409 # By default we will add the -single_module flag. You can override 18410 # by either setting the environment variable LT_MULTI_MODULE 18411 # non-empty at configure time, or by adding -multi_module to the 18412 # link flags. 18413 rm -rf libconftest.dylib* 18414 echo "int foo(void){return 1;}" > conftest.c 18415 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 18416-dynamiclib -Wl,-single_module conftest.c" >&5 18417 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 18418 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 18419 _lt_result=$? 18420 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 18421 lt_cv_apple_cc_single_mod=yes 18422 else 18423 cat conftest.err >&5 18424 fi 18425 rm -rf libconftest.dylib* 18426 rm -f conftest.* 18427 fi 18428fi 18429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 18430$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 18432$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 18433if ${lt_cv_ld_exported_symbols_list+:} false; then : 18434 $as_echo_n "(cached) " >&6 18435else 18436 lt_cv_ld_exported_symbols_list=no 18437 save_LDFLAGS=$LDFLAGS 18438 echo "_main" > conftest.sym 18439 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 18440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18441/* end confdefs.h. */ 18442 18443int 18444main () 18445{ 18446 18447 ; 18448 return 0; 18449} 18450_ACEOF 18451if ac_fn_c_try_link "$LINENO"; then : 18452 lt_cv_ld_exported_symbols_list=yes 18453else 18454 lt_cv_ld_exported_symbols_list=no 18455fi 18456rm -f core conftest.err conftest.$ac_objext \ 18457 conftest$ac_exeext conftest.$ac_ext 18458 LDFLAGS="$save_LDFLAGS" 18459 18460fi 18461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 18462$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 18464$as_echo_n "checking for -force_load linker flag... " >&6; } 18465if ${lt_cv_ld_force_load+:} false; then : 18466 $as_echo_n "(cached) " >&6 18467else 18468 lt_cv_ld_force_load=no 18469 cat > conftest.c << _LT_EOF 18470int forced_loaded() { return 2;} 18471_LT_EOF 18472 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 18473 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 18474 echo "$AR cru libconftest.a conftest.o" >&5 18475 $AR cru libconftest.a conftest.o 2>&5 18476 echo "$RANLIB libconftest.a" >&5 18477 $RANLIB libconftest.a 2>&5 18478 cat > conftest.c << _LT_EOF 18479int main() { return 0;} 18480_LT_EOF 18481 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 18482 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 18483 _lt_result=$? 18484 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 18485 lt_cv_ld_force_load=yes 18486 else 18487 cat conftest.err >&5 18488 fi 18489 rm -f conftest.err libconftest.a conftest conftest.c 18490 rm -rf conftest.dSYM 18491 18492fi 18493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 18494$as_echo "$lt_cv_ld_force_load" >&6; } 18495 case $host_os in 18496 rhapsody* | darwin1.[012]) 18497 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 18498 darwin1.*) 18499 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 18500 darwin*) # darwin 5.x on 18501 # if running on 10.5 or later, the deployment target defaults 18502 # to the OS version, if on x86, and 10.4, the deployment 18503 # target defaults to 10.4. Don't you love it? 18504 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 18505 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 18506 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 18507 10.[012]*) 18508 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 18509 10.*) 18510 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 18511 esac 18512 ;; 18513 esac 18514 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 18515 _lt_dar_single_mod='$single_module' 18516 fi 18517 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 18518 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 18519 else 18520 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 18521 fi 18522 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 18523 _lt_dsymutil='~$DSYMUTIL $lib || :' 18524 else 18525 _lt_dsymutil= 18526 fi 18527 ;; 18528 esac 18529 18530for ac_header in dlfcn.h 18531do : 18532 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 18533" 18534if test "x$ac_cv_header_dlfcn_h" = xyes; then : 18535 cat >>confdefs.h <<_ACEOF 18536#define HAVE_DLFCN_H 1 18537_ACEOF 18538 18539fi 18540 18541done 18542 18543 18544 18545 18546 18547# Set options 18548 18549 18550 18551 enable_dlopen=no 18552 18553 18554 enable_win32_dll=no 18555 18556 18557 18558 # Check whether --enable-static was given. 18559if test "${enable_static+set}" = set; then : 18560 enableval=$enable_static; p=${PACKAGE-default} 18561 case $enableval in 18562 yes) enable_static=yes ;; 18563 no) enable_static=no ;; 18564 *) 18565 enable_static=no 18566 # Look at the argument we got. We use all the common list separators. 18567 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 18568 for pkg in $enableval; do 18569 IFS="$lt_save_ifs" 18570 if test "X$pkg" = "X$p"; then 18571 enable_static=yes 18572 fi 18573 done 18574 IFS="$lt_save_ifs" 18575 ;; 18576 esac 18577else 18578 enable_static=yes 18579fi 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590# Check whether --with-pic was given. 18591if test "${with_pic+set}" = set; then : 18592 withval=$with_pic; pic_mode="$withval" 18593else 18594 pic_mode=default 18595fi 18596 18597 18598test -z "$pic_mode" && pic_mode=default 18599 18600 18601 18602 18603 18604 18605 18606 # Check whether --enable-fast-install was given. 18607if test "${enable_fast_install+set}" = set; then : 18608 enableval=$enable_fast_install; p=${PACKAGE-default} 18609 case $enableval in 18610 yes) enable_fast_install=yes ;; 18611 no) enable_fast_install=no ;; 18612 *) 18613 enable_fast_install=no 18614 # Look at the argument we got. We use all the common list separators. 18615 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 18616 for pkg in $enableval; do 18617 IFS="$lt_save_ifs" 18618 if test "X$pkg" = "X$p"; then 18619 enable_fast_install=yes 18620 fi 18621 done 18622 IFS="$lt_save_ifs" 18623 ;; 18624 esac 18625else 18626 enable_fast_install=yes 18627fi 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639# This can be used to rebuild libtool when needed 18640LIBTOOL_DEPS="$ltmain" 18641 18642# Always use our own libtool. 18643LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670test -z "$LN_S" && LN_S="ln -s" 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685if test -n "${ZSH_VERSION+set}" ; then 18686 setopt NO_GLOB_SUBST 18687fi 18688 18689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 18690$as_echo_n "checking for objdir... " >&6; } 18691if ${lt_cv_objdir+:} false; then : 18692 $as_echo_n "(cached) " >&6 18693else 18694 rm -f .libs 2>/dev/null 18695mkdir .libs 2>/dev/null 18696if test -d .libs; then 18697 lt_cv_objdir=.libs 18698else 18699 # MS-DOS does not allow filenames that begin with a dot. 18700 lt_cv_objdir=_libs 18701fi 18702rmdir .libs 2>/dev/null 18703fi 18704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 18705$as_echo "$lt_cv_objdir" >&6; } 18706objdir=$lt_cv_objdir 18707 18708 18709 18710 18711 18712cat >>confdefs.h <<_ACEOF 18713#define LT_OBJDIR "$lt_cv_objdir/" 18714_ACEOF 18715 18716 18717 18718 18719case $host_os in 18720aix3*) 18721 # AIX sometimes has problems with the GCC collect2 program. For some 18722 # reason, if we set the COLLECT_NAMES environment variable, the problems 18723 # vanish in a puff of smoke. 18724 if test "X${COLLECT_NAMES+set}" != Xset; then 18725 COLLECT_NAMES= 18726 export COLLECT_NAMES 18727 fi 18728 ;; 18729esac 18730 18731# Global variables: 18732ofile=libtool 18733can_build_shared=yes 18734 18735# All known linkers require a `.a' archive for static linking (except MSVC, 18736# which needs '.lib'). 18737libext=a 18738 18739with_gnu_ld="$lt_cv_prog_gnu_ld" 18740 18741old_CC="$CC" 18742old_CFLAGS="$CFLAGS" 18743 18744# Set sane defaults for various variables 18745test -z "$CC" && CC=cc 18746test -z "$LTCC" && LTCC=$CC 18747test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 18748test -z "$LD" && LD=ld 18749test -z "$ac_objext" && ac_objext=o 18750 18751for cc_temp in $compiler""; do 18752 case $cc_temp in 18753 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18754 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18755 \-*) ;; 18756 *) break;; 18757 esac 18758done 18759cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18760 18761 18762# Only perform the check for file, if the check method requires it 18763test -z "$MAGIC_CMD" && MAGIC_CMD=file 18764case $deplibs_check_method in 18765file_magic*) 18766 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 18768$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 18769if ${lt_cv_path_MAGIC_CMD+:} false; then : 18770 $as_echo_n "(cached) " >&6 18771else 18772 case $MAGIC_CMD in 18773[\\/*] | ?:[\\/]*) 18774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 18775 ;; 18776*) 18777 lt_save_MAGIC_CMD="$MAGIC_CMD" 18778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 18779 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 18780 for ac_dir in $ac_dummy; do 18781 IFS="$lt_save_ifs" 18782 test -z "$ac_dir" && ac_dir=. 18783 if test -f $ac_dir/${ac_tool_prefix}file; then 18784 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 18785 if test -n "$file_magic_test_file"; then 18786 case $deplibs_check_method in 18787 "file_magic "*) 18788 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 18789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 18790 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 18791 $EGREP "$file_magic_regex" > /dev/null; then 18792 : 18793 else 18794 cat <<_LT_EOF 1>&2 18795 18796*** Warning: the command libtool uses to detect shared libraries, 18797*** $file_magic_cmd, produces output that libtool cannot recognize. 18798*** The result is that libtool may fail to recognize shared libraries 18799*** as such. This will affect the creation of libtool libraries that 18800*** depend on shared libraries, but programs linked with such libtool 18801*** libraries will work regardless of this problem. Nevertheless, you 18802*** may want to report the problem to your system manager and/or to 18803*** bug-libtool@gnu.org 18804 18805_LT_EOF 18806 fi ;; 18807 esac 18808 fi 18809 break 18810 fi 18811 done 18812 IFS="$lt_save_ifs" 18813 MAGIC_CMD="$lt_save_MAGIC_CMD" 18814 ;; 18815esac 18816fi 18817 18818MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 18819if test -n "$MAGIC_CMD"; then 18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 18821$as_echo "$MAGIC_CMD" >&6; } 18822else 18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18824$as_echo "no" >&6; } 18825fi 18826 18827 18828 18829 18830 18831if test -z "$lt_cv_path_MAGIC_CMD"; then 18832 if test -n "$ac_tool_prefix"; then 18833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 18834$as_echo_n "checking for file... " >&6; } 18835if ${lt_cv_path_MAGIC_CMD+:} false; then : 18836 $as_echo_n "(cached) " >&6 18837else 18838 case $MAGIC_CMD in 18839[\\/*] | ?:[\\/]*) 18840 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 18841 ;; 18842*) 18843 lt_save_MAGIC_CMD="$MAGIC_CMD" 18844 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 18845 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 18846 for ac_dir in $ac_dummy; do 18847 IFS="$lt_save_ifs" 18848 test -z "$ac_dir" && ac_dir=. 18849 if test -f $ac_dir/file; then 18850 lt_cv_path_MAGIC_CMD="$ac_dir/file" 18851 if test -n "$file_magic_test_file"; then 18852 case $deplibs_check_method in 18853 "file_magic "*) 18854 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 18855 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 18856 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 18857 $EGREP "$file_magic_regex" > /dev/null; then 18858 : 18859 else 18860 cat <<_LT_EOF 1>&2 18861 18862*** Warning: the command libtool uses to detect shared libraries, 18863*** $file_magic_cmd, produces output that libtool cannot recognize. 18864*** The result is that libtool may fail to recognize shared libraries 18865*** as such. This will affect the creation of libtool libraries that 18866*** depend on shared libraries, but programs linked with such libtool 18867*** libraries will work regardless of this problem. Nevertheless, you 18868*** may want to report the problem to your system manager and/or to 18869*** bug-libtool@gnu.org 18870 18871_LT_EOF 18872 fi ;; 18873 esac 18874 fi 18875 break 18876 fi 18877 done 18878 IFS="$lt_save_ifs" 18879 MAGIC_CMD="$lt_save_MAGIC_CMD" 18880 ;; 18881esac 18882fi 18883 18884MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 18885if test -n "$MAGIC_CMD"; then 18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 18887$as_echo "$MAGIC_CMD" >&6; } 18888else 18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18890$as_echo "no" >&6; } 18891fi 18892 18893 18894 else 18895 MAGIC_CMD=: 18896 fi 18897fi 18898 18899 fi 18900 ;; 18901esac 18902 18903# Use C for the default configuration in the libtool script 18904 18905lt_save_CC="$CC" 18906ac_ext=c 18907ac_cpp='$CPP $CPPFLAGS' 18908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18910ac_compiler_gnu=$ac_cv_c_compiler_gnu 18911 18912 18913# Source file extension for C test sources. 18914ac_ext=c 18915 18916# Object file extension for compiled C test sources. 18917objext=o 18918objext=$objext 18919 18920# Code to be used in simple compile tests 18921lt_simple_compile_test_code="int some_variable = 0;" 18922 18923# Code to be used in simple link tests 18924lt_simple_link_test_code='int main(){return(0);}' 18925 18926 18927 18928 18929 18930 18931 18932# If no C compiler was specified, use CC. 18933LTCC=${LTCC-"$CC"} 18934 18935# If no C compiler flags were specified, use CFLAGS. 18936LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18937 18938# Allow CC to be a program name with arguments. 18939compiler=$CC 18940 18941# Save the default compiler, since it gets overwritten when the other 18942# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 18943compiler_DEFAULT=$CC 18944 18945# save warnings/boilerplate of simple test code 18946ac_outfile=conftest.$ac_objext 18947echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18948eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18949_lt_compiler_boilerplate=`cat conftest.err` 18950$RM conftest* 18951 18952ac_outfile=conftest.$ac_objext 18953echo "$lt_simple_link_test_code" >conftest.$ac_ext 18954eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18955_lt_linker_boilerplate=`cat conftest.err` 18956$RM -r conftest* 18957 18958 18959## CAVEAT EMPTOR: 18960## There is no encapsulation within the following macros, do not change 18961## the running order or otherwise move them around unless you know exactly 18962## what you are doing... 18963if test -n "$compiler"; then 18964 18965lt_prog_compiler_no_builtin_flag= 18966 18967if test "$GCC" = yes; then 18968 case $cc_basename in 18969 nvcc*) 18970 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 18971 *) 18972 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 18973 esac 18974 18975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 18976$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 18977if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 18978 $as_echo_n "(cached) " >&6 18979else 18980 lt_cv_prog_compiler_rtti_exceptions=no 18981 ac_outfile=conftest.$ac_objext 18982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18983 lt_compiler_flag="-fno-rtti -fno-exceptions" 18984 # Insert the option either (1) after the last *FLAGS variable, or 18985 # (2) before a word containing "conftest.", or (3) at the end. 18986 # Note that $ac_compile itself does not contain backslashes and begins 18987 # with a dollar sign (not a hyphen), so the echo should work correctly. 18988 # The option is referenced via a variable to avoid confusing sed. 18989 lt_compile=`echo "$ac_compile" | $SED \ 18990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18992 -e 's:$: $lt_compiler_flag:'` 18993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18994 (eval "$lt_compile" 2>conftest.err) 18995 ac_status=$? 18996 cat conftest.err >&5 18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18998 if (exit $ac_status) && test -s "$ac_outfile"; then 18999 # The compiler can only warn and ignore the option if not recognized 19000 # So say no if there are warnings other than the usual output. 19001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19003 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19004 lt_cv_prog_compiler_rtti_exceptions=yes 19005 fi 19006 fi 19007 $RM conftest* 19008 19009fi 19010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 19011$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 19012 19013if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 19014 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 19015else 19016 : 19017fi 19018 19019fi 19020 19021 19022 19023 19024 19025 19026 lt_prog_compiler_wl= 19027lt_prog_compiler_pic= 19028lt_prog_compiler_static= 19029 19030 19031 if test "$GCC" = yes; then 19032 lt_prog_compiler_wl='-Wl,' 19033 lt_prog_compiler_static='-static' 19034 19035 case $host_os in 19036 aix*) 19037 # All AIX code is PIC. 19038 if test "$host_cpu" = ia64; then 19039 # AIX 5 now supports IA64 processor 19040 lt_prog_compiler_static='-Bstatic' 19041 fi 19042 ;; 19043 19044 amigaos*) 19045 case $host_cpu in 19046 powerpc) 19047 # see comment about AmigaOS4 .so support 19048 lt_prog_compiler_pic='-fPIC' 19049 ;; 19050 m68k) 19051 # FIXME: we need at least 68020 code to build shared libraries, but 19052 # adding the `-m68020' flag to GCC prevents building anything better, 19053 # like `-m68040'. 19054 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 19055 ;; 19056 esac 19057 ;; 19058 19059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19060 # PIC is the default for these OSes. 19061 ;; 19062 19063 mingw* | cygwin* | pw32* | os2* | cegcc*) 19064 # This hack is so that the source file can tell whether it is being 19065 # built for inclusion in a dll (and should export symbols for example). 19066 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19067 # (--disable-auto-import) libraries 19068 lt_prog_compiler_pic='-DDLL_EXPORT' 19069 ;; 19070 19071 darwin* | rhapsody*) 19072 # PIC is the default on this platform 19073 # Common symbols not allowed in MH_DYLIB files 19074 lt_prog_compiler_pic='-fno-common' 19075 ;; 19076 19077 haiku*) 19078 # PIC is the default for Haiku. 19079 # The "-static" flag exists, but is broken. 19080 lt_prog_compiler_static= 19081 ;; 19082 19083 hpux*) 19084 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 19085 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 19086 # sets the default TLS model and affects inlining. 19087 case $host_cpu in 19088 hppa*64*) 19089 # +Z the default 19090 ;; 19091 *) 19092 lt_prog_compiler_pic='-fPIC' 19093 ;; 19094 esac 19095 ;; 19096 19097 interix[3-9]*) 19098 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19099 # Instead, we relocate shared libraries at runtime. 19100 ;; 19101 19102 msdosdjgpp*) 19103 # Just because we use GCC doesn't mean we suddenly get shared libraries 19104 # on systems that don't support them. 19105 lt_prog_compiler_can_build_shared=no 19106 enable_shared=no 19107 ;; 19108 19109 *nto* | *qnx*) 19110 # QNX uses GNU C++, but need to define -shared option too, otherwise 19111 # it will coredump. 19112 lt_prog_compiler_pic='-fPIC -shared' 19113 ;; 19114 19115 sysv4*MP*) 19116 if test -d /usr/nec; then 19117 lt_prog_compiler_pic=-Kconform_pic 19118 fi 19119 ;; 19120 19121 *) 19122 lt_prog_compiler_pic='-fPIC' 19123 ;; 19124 esac 19125 19126 case $cc_basename in 19127 nvcc*) # Cuda Compiler Driver 2.2 19128 lt_prog_compiler_wl='-Xlinker ' 19129 lt_prog_compiler_pic='-Xcompiler -fPIC' 19130 ;; 19131 esac 19132 else 19133 # PORTME Check for flag to pass linker flags through the system compiler. 19134 case $host_os in 19135 aix*) 19136 lt_prog_compiler_wl='-Wl,' 19137 if test "$host_cpu" = ia64; then 19138 # AIX 5 now supports IA64 processor 19139 lt_prog_compiler_static='-Bstatic' 19140 else 19141 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 19142 fi 19143 ;; 19144 19145 mingw* | cygwin* | pw32* | os2* | cegcc*) 19146 # This hack is so that the source file can tell whether it is being 19147 # built for inclusion in a dll (and should export symbols for example). 19148 lt_prog_compiler_pic='-DDLL_EXPORT' 19149 ;; 19150 19151 hpux9* | hpux10* | hpux11*) 19152 lt_prog_compiler_wl='-Wl,' 19153 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19154 # not for PA HP-UX. 19155 case $host_cpu in 19156 hppa*64*|ia64*) 19157 # +Z the default 19158 ;; 19159 *) 19160 lt_prog_compiler_pic='+Z' 19161 ;; 19162 esac 19163 # Is there a better lt_prog_compiler_static that works with the bundled CC? 19164 lt_prog_compiler_static='${wl}-a ${wl}archive' 19165 ;; 19166 19167 irix5* | irix6* | nonstopux*) 19168 lt_prog_compiler_wl='-Wl,' 19169 # PIC (with -KPIC) is the default. 19170 lt_prog_compiler_static='-non_shared' 19171 ;; 19172 19173 linux* | k*bsd*-gnu | kopensolaris*-gnu) 19174 case $cc_basename in 19175 # old Intel for x86_64 which still supported -KPIC. 19176 ecc*) 19177 lt_prog_compiler_wl='-Wl,' 19178 lt_prog_compiler_pic='-KPIC' 19179 lt_prog_compiler_static='-static' 19180 ;; 19181 # icc used to be incompatible with GCC. 19182 # ICC 10 doesn't accept -KPIC any more. 19183 icc* | ifort*) 19184 lt_prog_compiler_wl='-Wl,' 19185 lt_prog_compiler_pic='-fPIC' 19186 lt_prog_compiler_static='-static' 19187 ;; 19188 # Lahey Fortran 8.1. 19189 lf95*) 19190 lt_prog_compiler_wl='-Wl,' 19191 lt_prog_compiler_pic='--shared' 19192 lt_prog_compiler_static='--static' 19193 ;; 19194 nagfor*) 19195 # NAG Fortran compiler 19196 lt_prog_compiler_wl='-Wl,-Wl,,' 19197 lt_prog_compiler_pic='-PIC' 19198 lt_prog_compiler_static='-Bstatic' 19199 ;; 19200 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 19201 # Portland Group compilers (*not* the Pentium gcc compiler, 19202 # which looks to be a dead project) 19203 lt_prog_compiler_wl='-Wl,' 19204 lt_prog_compiler_pic='-fpic' 19205 lt_prog_compiler_static='-Bstatic' 19206 ;; 19207 ccc*) 19208 lt_prog_compiler_wl='-Wl,' 19209 # All Alpha code is PIC. 19210 lt_prog_compiler_static='-non_shared' 19211 ;; 19212 xl* | bgxl* | bgf* | mpixl*) 19213 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 19214 lt_prog_compiler_wl='-Wl,' 19215 lt_prog_compiler_pic='-qpic' 19216 lt_prog_compiler_static='-qstaticlink' 19217 ;; 19218 *) 19219 case `$CC -V 2>&1 | sed 5q` in 19220 *Sun\ F* | *Sun*Fortran*) 19221 # Sun Fortran 8.3 passes all unrecognized flags to the linker 19222 lt_prog_compiler_pic='-KPIC' 19223 lt_prog_compiler_static='-Bstatic' 19224 lt_prog_compiler_wl='' 19225 ;; 19226 *Sun\ C*) 19227 # Sun C 5.9 19228 lt_prog_compiler_pic='-KPIC' 19229 lt_prog_compiler_static='-Bstatic' 19230 lt_prog_compiler_wl='-Wl,' 19231 ;; 19232 esac 19233 ;; 19234 esac 19235 ;; 19236 19237 newsos6) 19238 lt_prog_compiler_pic='-KPIC' 19239 lt_prog_compiler_static='-Bstatic' 19240 ;; 19241 19242 *nto* | *qnx*) 19243 # QNX uses GNU C++, but need to define -shared option too, otherwise 19244 # it will coredump. 19245 lt_prog_compiler_pic='-fPIC -shared' 19246 ;; 19247 19248 osf3* | osf4* | osf5*) 19249 lt_prog_compiler_wl='-Wl,' 19250 # All OSF/1 code is PIC. 19251 lt_prog_compiler_static='-non_shared' 19252 ;; 19253 19254 rdos*) 19255 lt_prog_compiler_static='-non_shared' 19256 ;; 19257 19258 solaris*) 19259 lt_prog_compiler_pic='-KPIC' 19260 lt_prog_compiler_static='-Bstatic' 19261 case $cc_basename in 19262 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 19263 lt_prog_compiler_wl='-Qoption ld ';; 19264 *) 19265 lt_prog_compiler_wl='-Wl,';; 19266 esac 19267 ;; 19268 19269 sunos4*) 19270 lt_prog_compiler_wl='-Qoption ld ' 19271 lt_prog_compiler_pic='-PIC' 19272 lt_prog_compiler_static='-Bstatic' 19273 ;; 19274 19275 sysv4 | sysv4.2uw2* | sysv4.3*) 19276 lt_prog_compiler_wl='-Wl,' 19277 lt_prog_compiler_pic='-KPIC' 19278 lt_prog_compiler_static='-Bstatic' 19279 ;; 19280 19281 sysv4*MP*) 19282 if test -d /usr/nec ;then 19283 lt_prog_compiler_pic='-Kconform_pic' 19284 lt_prog_compiler_static='-Bstatic' 19285 fi 19286 ;; 19287 19288 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19289 lt_prog_compiler_wl='-Wl,' 19290 lt_prog_compiler_pic='-KPIC' 19291 lt_prog_compiler_static='-Bstatic' 19292 ;; 19293 19294 unicos*) 19295 lt_prog_compiler_wl='-Wl,' 19296 lt_prog_compiler_can_build_shared=no 19297 ;; 19298 19299 uts4*) 19300 lt_prog_compiler_pic='-pic' 19301 lt_prog_compiler_static='-Bstatic' 19302 ;; 19303 19304 *) 19305 lt_prog_compiler_can_build_shared=no 19306 ;; 19307 esac 19308 fi 19309 19310case $host_os in 19311 # For platforms which do not support PIC, -DPIC is meaningless: 19312 *djgpp*) 19313 lt_prog_compiler_pic= 19314 ;; 19315 *) 19316 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 19317 ;; 19318esac 19319 19320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 19321$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 19322if ${lt_cv_prog_compiler_pic+:} false; then : 19323 $as_echo_n "(cached) " >&6 19324else 19325 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 19326fi 19327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 19328$as_echo "$lt_cv_prog_compiler_pic" >&6; } 19329lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 19330 19331# 19332# Check to make sure the PIC flag actually works. 19333# 19334if test -n "$lt_prog_compiler_pic"; then 19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 19336$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 19337if ${lt_cv_prog_compiler_pic_works+:} false; then : 19338 $as_echo_n "(cached) " >&6 19339else 19340 lt_cv_prog_compiler_pic_works=no 19341 ac_outfile=conftest.$ac_objext 19342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19343 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 19344 # Insert the option either (1) after the last *FLAGS variable, or 19345 # (2) before a word containing "conftest.", or (3) at the end. 19346 # Note that $ac_compile itself does not contain backslashes and begins 19347 # with a dollar sign (not a hyphen), so the echo should work correctly. 19348 # The option is referenced via a variable to avoid confusing sed. 19349 lt_compile=`echo "$ac_compile" | $SED \ 19350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19352 -e 's:$: $lt_compiler_flag:'` 19353 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19354 (eval "$lt_compile" 2>conftest.err) 19355 ac_status=$? 19356 cat conftest.err >&5 19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19358 if (exit $ac_status) && test -s "$ac_outfile"; then 19359 # The compiler can only warn and ignore the option if not recognized 19360 # So say no if there are warnings other than the usual output. 19361 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19364 lt_cv_prog_compiler_pic_works=yes 19365 fi 19366 fi 19367 $RM conftest* 19368 19369fi 19370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 19371$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 19372 19373if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 19374 case $lt_prog_compiler_pic in 19375 "" | " "*) ;; 19376 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 19377 esac 19378else 19379 lt_prog_compiler_pic= 19380 lt_prog_compiler_can_build_shared=no 19381fi 19382 19383fi 19384 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395# 19396# Check to make sure the static flag actually works. 19397# 19398wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 19399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19400$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19401if ${lt_cv_prog_compiler_static_works+:} false; then : 19402 $as_echo_n "(cached) " >&6 19403else 19404 lt_cv_prog_compiler_static_works=no 19405 save_LDFLAGS="$LDFLAGS" 19406 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19407 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19408 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19409 # The linker can only warn and ignore the option if not recognized 19410 # So say no if there are warnings 19411 if test -s conftest.err; then 19412 # Append any errors to the config.log. 19413 cat conftest.err 1>&5 19414 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19416 if diff conftest.exp conftest.er2 >/dev/null; then 19417 lt_cv_prog_compiler_static_works=yes 19418 fi 19419 else 19420 lt_cv_prog_compiler_static_works=yes 19421 fi 19422 fi 19423 $RM -r conftest* 19424 LDFLAGS="$save_LDFLAGS" 19425 19426fi 19427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 19428$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 19429 19430if test x"$lt_cv_prog_compiler_static_works" = xyes; then 19431 : 19432else 19433 lt_prog_compiler_static= 19434fi 19435 19436 19437 19438 19439 19440 19441 19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19443$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19444if ${lt_cv_prog_compiler_c_o+:} false; then : 19445 $as_echo_n "(cached) " >&6 19446else 19447 lt_cv_prog_compiler_c_o=no 19448 $RM -r conftest 2>/dev/null 19449 mkdir conftest 19450 cd conftest 19451 mkdir out 19452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19453 19454 lt_compiler_flag="-o out/conftest2.$ac_objext" 19455 # Insert the option either (1) after the last *FLAGS variable, or 19456 # (2) before a word containing "conftest.", or (3) at the end. 19457 # Note that $ac_compile itself does not contain backslashes and begins 19458 # with a dollar sign (not a hyphen), so the echo should work correctly. 19459 lt_compile=`echo "$ac_compile" | $SED \ 19460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19462 -e 's:$: $lt_compiler_flag:'` 19463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19464 (eval "$lt_compile" 2>out/conftest.err) 19465 ac_status=$? 19466 cat out/conftest.err >&5 19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19468 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19469 then 19470 # The compiler can only warn and ignore the option if not recognized 19471 # So say no if there are warnings 19472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19473 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19474 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19475 lt_cv_prog_compiler_c_o=yes 19476 fi 19477 fi 19478 chmod u+w . 2>&5 19479 $RM conftest* 19480 # SGI C++ compiler will create directory out/ii_files/ for 19481 # template instantiation 19482 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19483 $RM out/* && rmdir out 19484 cd .. 19485 $RM -r conftest 19486 $RM conftest* 19487 19488fi 19489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 19490$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 19491 19492 19493 19494 19495 19496 19497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19498$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19499if ${lt_cv_prog_compiler_c_o+:} false; then : 19500 $as_echo_n "(cached) " >&6 19501else 19502 lt_cv_prog_compiler_c_o=no 19503 $RM -r conftest 2>/dev/null 19504 mkdir conftest 19505 cd conftest 19506 mkdir out 19507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19508 19509 lt_compiler_flag="-o out/conftest2.$ac_objext" 19510 # Insert the option either (1) after the last *FLAGS variable, or 19511 # (2) before a word containing "conftest.", or (3) at the end. 19512 # Note that $ac_compile itself does not contain backslashes and begins 19513 # with a dollar sign (not a hyphen), so the echo should work correctly. 19514 lt_compile=`echo "$ac_compile" | $SED \ 19515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19517 -e 's:$: $lt_compiler_flag:'` 19518 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19519 (eval "$lt_compile" 2>out/conftest.err) 19520 ac_status=$? 19521 cat out/conftest.err >&5 19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19523 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19524 then 19525 # The compiler can only warn and ignore the option if not recognized 19526 # So say no if there are warnings 19527 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19528 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19529 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19530 lt_cv_prog_compiler_c_o=yes 19531 fi 19532 fi 19533 chmod u+w . 2>&5 19534 $RM conftest* 19535 # SGI C++ compiler will create directory out/ii_files/ for 19536 # template instantiation 19537 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19538 $RM out/* && rmdir out 19539 cd .. 19540 $RM -r conftest 19541 $RM conftest* 19542 19543fi 19544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 19545$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 19546 19547 19548 19549 19550hard_links="nottested" 19551if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 19552 # do not overwrite the value of need_locks provided by the user 19553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 19554$as_echo_n "checking if we can lock with hard links... " >&6; } 19555 hard_links=yes 19556 $RM conftest* 19557 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19558 touch conftest.a 19559 ln conftest.a conftest.b 2>&5 || hard_links=no 19560 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 19562$as_echo "$hard_links" >&6; } 19563 if test "$hard_links" = no; then 19564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 19565$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 19566 need_locks=warn 19567 fi 19568else 19569 need_locks=no 19570fi 19571 19572 19573 19574 19575 19576 19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19578$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19579 19580 runpath_var= 19581 allow_undefined_flag= 19582 always_export_symbols=no 19583 archive_cmds= 19584 archive_expsym_cmds= 19585 compiler_needs_object=no 19586 enable_shared_with_static_runtimes=no 19587 export_dynamic_flag_spec= 19588 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19589 hardcode_automatic=no 19590 hardcode_direct=no 19591 hardcode_direct_absolute=no 19592 hardcode_libdir_flag_spec= 19593 hardcode_libdir_flag_spec_ld= 19594 hardcode_libdir_separator= 19595 hardcode_minus_L=no 19596 hardcode_shlibpath_var=unsupported 19597 inherit_rpath=no 19598 link_all_deplibs=unknown 19599 module_cmds= 19600 module_expsym_cmds= 19601 old_archive_from_new_cmds= 19602 old_archive_from_expsyms_cmds= 19603 thread_safe_flag_spec= 19604 whole_archive_flag_spec= 19605 # include_expsyms should be a list of space-separated symbols to be *always* 19606 # included in the symbol list 19607 include_expsyms= 19608 # exclude_expsyms can be an extended regexp of symbols to exclude 19609 # it will be wrapped by ` (' and `)$', so one must not match beginning or 19610 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 19611 # as well as any symbol that contains `d'. 19612 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19613 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 19614 # platforms (ab)use it in PIC code, but their linkers get confused if 19615 # the symbol is explicitly referenced. Since portable code cannot 19616 # rely on this symbol name, it's probably fine to never include it in 19617 # preloaded symbol tables. 19618 # Exclude shared library initialization/finalization symbols. 19619 extract_expsyms_cmds= 19620 19621 case $host_os in 19622 cygwin* | mingw* | pw32* | cegcc*) 19623 # FIXME: the MSVC++ port hasn't been tested in a loooong time 19624 # When not using gcc, we currently assume that we are using 19625 # Microsoft Visual C++. 19626 if test "$GCC" != yes; then 19627 with_gnu_ld=no 19628 fi 19629 ;; 19630 interix*) 19631 # we just hope/assume this is gcc and not c89 (= MSVC++) 19632 with_gnu_ld=yes 19633 ;; 19634 openbsd*) 19635 with_gnu_ld=no 19636 ;; 19637 esac 19638 19639 ld_shlibs=yes 19640 19641 # On some targets, GNU ld is compatible enough with the native linker 19642 # that we're better off using the native interface for both. 19643 lt_use_gnu_ld_interface=no 19644 if test "$with_gnu_ld" = yes; then 19645 case $host_os in 19646 aix*) 19647 # The AIX port of GNU ld has always aspired to compatibility 19648 # with the native linker. However, as the warning in the GNU ld 19649 # block says, versions before 2.19.5* couldn't really create working 19650 # shared libraries, regardless of the interface used. 19651 case `$LD -v 2>&1` in 19652 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 19653 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 19654 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 19655 *) 19656 lt_use_gnu_ld_interface=yes 19657 ;; 19658 esac 19659 ;; 19660 *) 19661 lt_use_gnu_ld_interface=yes 19662 ;; 19663 esac 19664 fi 19665 19666 if test "$lt_use_gnu_ld_interface" = yes; then 19667 # If archive_cmds runs LD, not CC, wlarc should be empty 19668 wlarc='${wl}' 19669 19670 # Set some defaults for GNU ld with shared library support. These 19671 # are reset later if shared libraries are not supported. Putting them 19672 # here allows them to be overridden if necessary. 19673 runpath_var=LD_RUN_PATH 19674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 19675 export_dynamic_flag_spec='${wl}--export-dynamic' 19676 # ancient GNU ld didn't support --whole-archive et. al. 19677 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 19678 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 19679 else 19680 whole_archive_flag_spec= 19681 fi 19682 supports_anon_versioning=no 19683 case `$LD -v 2>&1` in 19684 *GNU\ gold*) supports_anon_versioning=yes ;; 19685 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 19686 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 19687 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 19688 *\ 2.11.*) ;; # other 2.11 versions 19689 *) supports_anon_versioning=yes ;; 19690 esac 19691 19692 # See if GNU ld supports shared libraries. 19693 case $host_os in 19694 aix[3-9]*) 19695 # On AIX/PPC, the GNU linker is very broken 19696 if test "$host_cpu" != ia64; then 19697 ld_shlibs=no 19698 cat <<_LT_EOF 1>&2 19699 19700*** Warning: the GNU linker, at least up to release 2.19, is reported 19701*** to be unable to reliably create shared libraries on AIX. 19702*** Therefore, libtool is disabling shared libraries support. If you 19703*** really care for shared libraries, you may want to install binutils 19704*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 19705*** You will then need to restart the configuration process. 19706 19707_LT_EOF 19708 fi 19709 ;; 19710 19711 amigaos*) 19712 case $host_cpu in 19713 powerpc) 19714 # see comment about AmigaOS4 .so support 19715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19716 archive_expsym_cmds='' 19717 ;; 19718 m68k) 19719 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)' 19720 hardcode_libdir_flag_spec='-L$libdir' 19721 hardcode_minus_L=yes 19722 ;; 19723 esac 19724 ;; 19725 19726 beos*) 19727 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19728 allow_undefined_flag=unsupported 19729 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19730 # support --undefined. This deserves some investigation. FIXME 19731 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19732 else 19733 ld_shlibs=no 19734 fi 19735 ;; 19736 19737 cygwin* | mingw* | pw32* | cegcc*) 19738 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 19739 # as there is no search path for DLLs. 19740 hardcode_libdir_flag_spec='-L$libdir' 19741 export_dynamic_flag_spec='${wl}--export-all-symbols' 19742 allow_undefined_flag=unsupported 19743 always_export_symbols=no 19744 enable_shared_with_static_runtimes=yes 19745 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' 19746 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 19747 19748 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19750 # If the export-symbols file already is a .def file (1st line 19751 # is EXPORTS), use it as is; otherwise, prepend... 19752 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 19753 cp $export_symbols $output_objdir/$soname.def; 19754 else 19755 echo EXPORTS > $output_objdir/$soname.def; 19756 cat $export_symbols >> $output_objdir/$soname.def; 19757 fi~ 19758 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19759 else 19760 ld_shlibs=no 19761 fi 19762 ;; 19763 19764 haiku*) 19765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19766 link_all_deplibs=yes 19767 ;; 19768 19769 interix[3-9]*) 19770 hardcode_direct=no 19771 hardcode_shlibpath_var=no 19772 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 19773 export_dynamic_flag_spec='${wl}-E' 19774 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19775 # Instead, shared libraries are loaded at an image base (0x10000000 by 19776 # default) and relocated if they conflict, which is a slow very memory 19777 # consuming and fragmenting process. To avoid this, we pick a random, 19778 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19779 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19780 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 19781 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' 19782 ;; 19783 19784 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 19785 tmp_diet=no 19786 if test "$host_os" = linux-dietlibc; then 19787 case $cc_basename in 19788 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 19789 esac 19790 fi 19791 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 19792 && test "$tmp_diet" = no 19793 then 19794 tmp_addflag=' $pic_flag' 19795 tmp_sharedflag='-shared' 19796 case $cc_basename,$host_cpu in 19797 pgcc*) # Portland Group C compiler 19798 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' 19799 tmp_addflag=' $pic_flag' 19800 ;; 19801 pgf77* | pgf90* | pgf95* | pgfortran*) 19802 # Portland Group f77 and f90 compilers 19803 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' 19804 tmp_addflag=' $pic_flag -Mnomain' ;; 19805 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 19806 tmp_addflag=' -i_dynamic' ;; 19807 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 19808 tmp_addflag=' -i_dynamic -nofor_main' ;; 19809 ifc* | ifort*) # Intel Fortran compiler 19810 tmp_addflag=' -nofor_main' ;; 19811 lf95*) # Lahey Fortran 8.1 19812 whole_archive_flag_spec= 19813 tmp_sharedflag='--shared' ;; 19814 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 19815 tmp_sharedflag='-qmkshrobj' 19816 tmp_addflag= ;; 19817 nvcc*) # Cuda Compiler Driver 2.2 19818 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' 19819 compiler_needs_object=yes 19820 ;; 19821 esac 19822 case `$CC -V 2>&1 | sed 5q` in 19823 *Sun\ C*) # Sun C 5.9 19824 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' 19825 compiler_needs_object=yes 19826 tmp_sharedflag='-G' ;; 19827 *Sun\ F*) # Sun Fortran 8.3 19828 tmp_sharedflag='-G' ;; 19829 esac 19830 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19831 19832 if test "x$supports_anon_versioning" = xyes; then 19833 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 19834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19835 echo "local: *; };" >> $output_objdir/$libname.ver~ 19836 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 19837 fi 19838 19839 case $cc_basename in 19840 xlf* | bgf* | bgxlf* | mpixlf*) 19841 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 19842 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 19843 hardcode_libdir_flag_spec= 19844 hardcode_libdir_flag_spec_ld='-rpath $libdir' 19845 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 19846 if test "x$supports_anon_versioning" = xyes; then 19847 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 19848 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19849 echo "local: *; };" >> $output_objdir/$libname.ver~ 19850 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 19851 fi 19852 ;; 19853 esac 19854 else 19855 ld_shlibs=no 19856 fi 19857 ;; 19858 19859 netbsd*) 19860 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19861 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 19862 wlarc= 19863 else 19864 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19865 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19866 fi 19867 ;; 19868 19869 solaris*) 19870 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 19871 ld_shlibs=no 19872 cat <<_LT_EOF 1>&2 19873 19874*** Warning: The releases 2.8.* of the GNU linker cannot reliably 19875*** create shared libraries on Solaris systems. Therefore, libtool 19876*** is disabling shared libraries support. We urge you to upgrade GNU 19877*** binutils to release 2.9.1 or newer. Another option is to modify 19878*** your PATH or compiler configuration so that the native linker is 19879*** used, and then restart. 19880 19881_LT_EOF 19882 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19883 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19884 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19885 else 19886 ld_shlibs=no 19887 fi 19888 ;; 19889 19890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 19891 case `$LD -v 2>&1` in 19892 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 19893 ld_shlibs=no 19894 cat <<_LT_EOF 1>&2 19895 19896*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 19897*** reliably create shared libraries on SCO systems. Therefore, libtool 19898*** is disabling shared libraries support. We urge you to upgrade GNU 19899*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 19900*** your PATH or compiler configuration so that the native linker is 19901*** used, and then restart. 19902 19903_LT_EOF 19904 ;; 19905 *) 19906 # For security reasons, it is highly recommended that you always 19907 # use absolute paths for naming shared libraries, and exclude the 19908 # DT_RUNPATH tag from executables and libraries. But doing so 19909 # requires that you compile everything twice, which is a pain. 19910 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 19912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19913 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19914 else 19915 ld_shlibs=no 19916 fi 19917 ;; 19918 esac 19919 ;; 19920 19921 sunos4*) 19922 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19923 wlarc= 19924 hardcode_direct=yes 19925 hardcode_shlibpath_var=no 19926 ;; 19927 19928 *) 19929 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19930 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19931 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19932 else 19933 ld_shlibs=no 19934 fi 19935 ;; 19936 esac 19937 19938 if test "$ld_shlibs" = no; then 19939 runpath_var= 19940 hardcode_libdir_flag_spec= 19941 export_dynamic_flag_spec= 19942 whole_archive_flag_spec= 19943 fi 19944 else 19945 # PORTME fill in a description of your system's linker (not GNU ld) 19946 case $host_os in 19947 aix3*) 19948 allow_undefined_flag=unsupported 19949 always_export_symbols=yes 19950 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' 19951 # Note: this linker hardcodes the directories in LIBPATH if there 19952 # are no directories specified by -L. 19953 hardcode_minus_L=yes 19954 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 19955 # Neither direct hardcoding nor static linking is supported with a 19956 # broken collect2. 19957 hardcode_direct=unsupported 19958 fi 19959 ;; 19960 19961 aix[4-9]*) 19962 if test "$host_cpu" = ia64; then 19963 # On IA64, the linker does run time linking by default, so we don't 19964 # have to do anything special. 19965 aix_use_runtimelinking=no 19966 exp_sym_flag='-Bexport' 19967 no_entry_flag="" 19968 else 19969 # If we're using GNU nm, then we don't want the "-C" option. 19970 # -C means demangle to AIX nm, but means don't demangle with GNU nm 19971 # Also, AIX nm treats weak defined symbols like other global 19972 # defined symbols, whereas GNU nm marks them as "W". 19973 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 19974 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' 19975 else 19976 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' 19977 fi 19978 aix_use_runtimelinking=no 19979 19980 # Test if we are trying to use run time linking or normal 19981 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 19982 # need to do runtime linking. 19983 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 19984 for ld_flag in $LDFLAGS; do 19985 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 19986 aix_use_runtimelinking=yes 19987 break 19988 fi 19989 done 19990 ;; 19991 esac 19992 19993 exp_sym_flag='-bexport' 19994 no_entry_flag='-bnoentry' 19995 fi 19996 19997 # When large executables or shared objects are built, AIX ld can 19998 # have problems creating the table of contents. If linking a library 19999 # or program results in "error TOC overflow" add -mminimal-toc to 20000 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 20001 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 20002 20003 archive_cmds='' 20004 hardcode_direct=yes 20005 hardcode_direct_absolute=yes 20006 hardcode_libdir_separator=':' 20007 link_all_deplibs=yes 20008 file_list_spec='${wl}-f,' 20009 20010 if test "$GCC" = yes; then 20011 case $host_os in aix4.[012]|aix4.[012].*) 20012 # We only want to do this on AIX 4.2 and lower, the check 20013 # below for broken collect2 doesn't work under 4.3+ 20014 collect2name=`${CC} -print-prog-name=collect2` 20015 if test -f "$collect2name" && 20016 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 20017 then 20018 # We have reworked collect2 20019 : 20020 else 20021 # We have old collect2 20022 hardcode_direct=unsupported 20023 # It fails to find uninstalled libraries when the uninstalled 20024 # path is not listed in the libpath. Setting hardcode_minus_L 20025 # to unsupported forces relinking 20026 hardcode_minus_L=yes 20027 hardcode_libdir_flag_spec='-L$libdir' 20028 hardcode_libdir_separator= 20029 fi 20030 ;; 20031 esac 20032 shared_flag='-shared' 20033 if test "$aix_use_runtimelinking" = yes; then 20034 shared_flag="$shared_flag "'${wl}-G' 20035 fi 20036 else 20037 # not using gcc 20038 if test "$host_cpu" = ia64; then 20039 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20040 # chokes on -Wl,-G. The following line is correct: 20041 shared_flag='-G' 20042 else 20043 if test "$aix_use_runtimelinking" = yes; then 20044 shared_flag='${wl}-G' 20045 else 20046 shared_flag='${wl}-bM:SRE' 20047 fi 20048 fi 20049 fi 20050 20051 export_dynamic_flag_spec='${wl}-bexpall' 20052 # It seems that -bexpall does not export symbols beginning with 20053 # underscore (_), so it is better to generate a list of symbols to export. 20054 always_export_symbols=yes 20055 if test "$aix_use_runtimelinking" = yes; then 20056 # Warning - without using the other runtime loading flags (-brtl), 20057 # -berok will link without error, but may produce a broken library. 20058 allow_undefined_flag='-berok' 20059 # Determine the default libpath from the value encoded in an 20060 # empty executable. 20061 if test "${lt_cv_aix_libpath+set}" = set; then 20062 aix_libpath=$lt_cv_aix_libpath 20063else 20064 if ${lt_cv_aix_libpath_+:} false; then : 20065 $as_echo_n "(cached) " >&6 20066else 20067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20068/* end confdefs.h. */ 20069 20070int 20071main () 20072{ 20073 20074 ; 20075 return 0; 20076} 20077_ACEOF 20078if ac_fn_c_try_link "$LINENO"; then : 20079 20080 lt_aix_libpath_sed=' 20081 /Import File Strings/,/^$/ { 20082 /^0/ { 20083 s/^0 *\([^ ]*\) *$/\1/ 20084 p 20085 } 20086 }' 20087 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20088 # Check for a 64-bit object if we didn't find anything. 20089 if test -z "$lt_cv_aix_libpath_"; then 20090 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20091 fi 20092fi 20093rm -f core conftest.err conftest.$ac_objext \ 20094 conftest$ac_exeext conftest.$ac_ext 20095 if test -z "$lt_cv_aix_libpath_"; then 20096 lt_cv_aix_libpath_="/usr/lib:/lib" 20097 fi 20098 20099fi 20100 20101 aix_libpath=$lt_cv_aix_libpath_ 20102fi 20103 20104 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 20105 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" 20106 else 20107 if test "$host_cpu" = ia64; then 20108 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 20109 allow_undefined_flag="-z nodefs" 20110 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" 20111 else 20112 # Determine the default libpath from the value encoded in an 20113 # empty executable. 20114 if test "${lt_cv_aix_libpath+set}" = set; then 20115 aix_libpath=$lt_cv_aix_libpath 20116else 20117 if ${lt_cv_aix_libpath_+:} false; then : 20118 $as_echo_n "(cached) " >&6 20119else 20120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20121/* end confdefs.h. */ 20122 20123int 20124main () 20125{ 20126 20127 ; 20128 return 0; 20129} 20130_ACEOF 20131if ac_fn_c_try_link "$LINENO"; then : 20132 20133 lt_aix_libpath_sed=' 20134 /Import File Strings/,/^$/ { 20135 /^0/ { 20136 s/^0 *\([^ ]*\) *$/\1/ 20137 p 20138 } 20139 }' 20140 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20141 # Check for a 64-bit object if we didn't find anything. 20142 if test -z "$lt_cv_aix_libpath_"; then 20143 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20144 fi 20145fi 20146rm -f core conftest.err conftest.$ac_objext \ 20147 conftest$ac_exeext conftest.$ac_ext 20148 if test -z "$lt_cv_aix_libpath_"; then 20149 lt_cv_aix_libpath_="/usr/lib:/lib" 20150 fi 20151 20152fi 20153 20154 aix_libpath=$lt_cv_aix_libpath_ 20155fi 20156 20157 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 20158 # Warning - without using the other run time loading flags, 20159 # -berok will link without error, but may produce a broken library. 20160 no_undefined_flag=' ${wl}-bernotok' 20161 allow_undefined_flag=' ${wl}-berok' 20162 if test "$with_gnu_ld" = yes; then 20163 # We only use this code for GNU lds that support --whole-archive. 20164 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 20165 else 20166 # Exported symbols can be pulled into shared objects from archives 20167 whole_archive_flag_spec='$convenience' 20168 fi 20169 archive_cmds_need_lc=yes 20170 # This is similar to how AIX traditionally builds its shared libraries. 20171 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' 20172 fi 20173 fi 20174 ;; 20175 20176 amigaos*) 20177 case $host_cpu in 20178 powerpc) 20179 # see comment about AmigaOS4 .so support 20180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20181 archive_expsym_cmds='' 20182 ;; 20183 m68k) 20184 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)' 20185 hardcode_libdir_flag_spec='-L$libdir' 20186 hardcode_minus_L=yes 20187 ;; 20188 esac 20189 ;; 20190 20191 bsdi[45]*) 20192 export_dynamic_flag_spec=-rdynamic 20193 ;; 20194 20195 cygwin* | mingw* | pw32* | cegcc*) 20196 # When not using gcc, we currently assume that we are using 20197 # Microsoft Visual C++. 20198 # hardcode_libdir_flag_spec is actually meaningless, as there is 20199 # no search path for DLLs. 20200 case $cc_basename in 20201 cl*) 20202 # Native MSVC 20203 hardcode_libdir_flag_spec=' ' 20204 allow_undefined_flag=unsupported 20205 always_export_symbols=yes 20206 file_list_spec='@' 20207 # Tell ltmain to make .lib files, not .a files. 20208 libext=lib 20209 # Tell ltmain to make .dll files, not .so files. 20210 shrext_cmds=".dll" 20211 # FIXME: Setting linknames here is a bad hack. 20212 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 20213 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 20214 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 20215 else 20216 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 20217 fi~ 20218 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 20219 linknames=' 20220 # The linker will not automatically build a static lib if we build a DLL. 20221 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 20222 enable_shared_with_static_runtimes=yes 20223 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 20224 # Don't use ranlib 20225 old_postinstall_cmds='chmod 644 $oldlib' 20226 postlink_cmds='lt_outputfile="@OUTPUT@"~ 20227 lt_tool_outputfile="@TOOL_OUTPUT@"~ 20228 case $lt_outputfile in 20229 *.exe|*.EXE) ;; 20230 *) 20231 lt_outputfile="$lt_outputfile.exe" 20232 lt_tool_outputfile="$lt_tool_outputfile.exe" 20233 ;; 20234 esac~ 20235 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 20236 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 20237 $RM "$lt_outputfile.manifest"; 20238 fi' 20239 ;; 20240 *) 20241 # Assume MSVC wrapper 20242 hardcode_libdir_flag_spec=' ' 20243 allow_undefined_flag=unsupported 20244 # Tell ltmain to make .lib files, not .a files. 20245 libext=lib 20246 # Tell ltmain to make .dll files, not .so files. 20247 shrext_cmds=".dll" 20248 # FIXME: Setting linknames here is a bad hack. 20249 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 20250 # The linker will automatically build a .lib file if we build a DLL. 20251 old_archive_from_new_cmds='true' 20252 # FIXME: Should let the user specify the lib program. 20253 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 20254 enable_shared_with_static_runtimes=yes 20255 ;; 20256 esac 20257 ;; 20258 20259 darwin* | rhapsody*) 20260 20261 20262 archive_cmds_need_lc=no 20263 hardcode_direct=no 20264 hardcode_automatic=yes 20265 hardcode_shlibpath_var=unsupported 20266 if test "$lt_cv_ld_force_load" = "yes"; then 20267 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\"`' 20268 else 20269 whole_archive_flag_spec='' 20270 fi 20271 link_all_deplibs=yes 20272 allow_undefined_flag="$_lt_dar_allow_undefined" 20273 case $cc_basename in 20274 ifort*) _lt_dar_can_shared=yes ;; 20275 *) _lt_dar_can_shared=$GCC ;; 20276 esac 20277 if test "$_lt_dar_can_shared" = "yes"; then 20278 output_verbose_link_cmd=func_echo_all 20279 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 20280 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 20281 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}" 20282 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}" 20283 20284 else 20285 ld_shlibs=no 20286 fi 20287 20288 ;; 20289 20290 dgux*) 20291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20292 hardcode_libdir_flag_spec='-L$libdir' 20293 hardcode_shlibpath_var=no 20294 ;; 20295 20296 freebsd1*) 20297 ld_shlibs=no 20298 ;; 20299 20300 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 20301 # support. Future versions do this automatically, but an explicit c++rt0.o 20302 # does not break anything, and helps significantly (at the cost of a little 20303 # extra space). 20304 freebsd2.2*) 20305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 20306 hardcode_libdir_flag_spec='-R$libdir' 20307 hardcode_direct=yes 20308 hardcode_shlibpath_var=no 20309 ;; 20310 20311 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 20312 freebsd2*) 20313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20314 hardcode_direct=yes 20315 hardcode_minus_L=yes 20316 hardcode_shlibpath_var=no 20317 ;; 20318 20319 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 20320 freebsd* | dragonfly*) 20321 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20322 hardcode_libdir_flag_spec='-R$libdir' 20323 hardcode_direct=yes 20324 hardcode_shlibpath_var=no 20325 ;; 20326 20327 hpux9*) 20328 if test "$GCC" = yes; then 20329 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' 20330 else 20331 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' 20332 fi 20333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 20334 hardcode_libdir_separator=: 20335 hardcode_direct=yes 20336 20337 # hardcode_minus_L: Not really in the search PATH, 20338 # but as the default location of the library. 20339 hardcode_minus_L=yes 20340 export_dynamic_flag_spec='${wl}-E' 20341 ;; 20342 20343 hpux10*) 20344 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 20345 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20346 else 20347 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20348 fi 20349 if test "$with_gnu_ld" = no; then 20350 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 20351 hardcode_libdir_flag_spec_ld='+b $libdir' 20352 hardcode_libdir_separator=: 20353 hardcode_direct=yes 20354 hardcode_direct_absolute=yes 20355 export_dynamic_flag_spec='${wl}-E' 20356 # hardcode_minus_L: Not really in the search PATH, 20357 # but as the default location of the library. 20358 hardcode_minus_L=yes 20359 fi 20360 ;; 20361 20362 hpux11*) 20363 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 20364 case $host_cpu in 20365 hppa*64*) 20366 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 20367 ;; 20368 ia64*) 20369 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20370 ;; 20371 *) 20372 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20373 ;; 20374 esac 20375 else 20376 case $host_cpu in 20377 hppa*64*) 20378 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 20379 ;; 20380 ia64*) 20381 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20382 ;; 20383 *) 20384 20385 # Older versions of the 11.00 compiler do not understand -b yet 20386 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 20387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 20388$as_echo_n "checking if $CC understands -b... " >&6; } 20389if ${lt_cv_prog_compiler__b+:} false; then : 20390 $as_echo_n "(cached) " >&6 20391else 20392 lt_cv_prog_compiler__b=no 20393 save_LDFLAGS="$LDFLAGS" 20394 LDFLAGS="$LDFLAGS -b" 20395 echo "$lt_simple_link_test_code" > conftest.$ac_ext 20396 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 20397 # The linker can only warn and ignore the option if not recognized 20398 # So say no if there are warnings 20399 if test -s conftest.err; then 20400 # Append any errors to the config.log. 20401 cat conftest.err 1>&5 20402 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 20403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20404 if diff conftest.exp conftest.er2 >/dev/null; then 20405 lt_cv_prog_compiler__b=yes 20406 fi 20407 else 20408 lt_cv_prog_compiler__b=yes 20409 fi 20410 fi 20411 $RM -r conftest* 20412 LDFLAGS="$save_LDFLAGS" 20413 20414fi 20415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 20416$as_echo "$lt_cv_prog_compiler__b" >&6; } 20417 20418if test x"$lt_cv_prog_compiler__b" = xyes; then 20419 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20420else 20421 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20422fi 20423 20424 ;; 20425 esac 20426 fi 20427 if test "$with_gnu_ld" = no; then 20428 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 20429 hardcode_libdir_separator=: 20430 20431 case $host_cpu in 20432 hppa*64*|ia64*) 20433 hardcode_direct=no 20434 hardcode_shlibpath_var=no 20435 ;; 20436 *) 20437 hardcode_direct=yes 20438 hardcode_direct_absolute=yes 20439 export_dynamic_flag_spec='${wl}-E' 20440 20441 # hardcode_minus_L: Not really in the search PATH, 20442 # but as the default location of the library. 20443 hardcode_minus_L=yes 20444 ;; 20445 esac 20446 fi 20447 ;; 20448 20449 irix5* | irix6* | nonstopux*) 20450 if test "$GCC" = yes; then 20451 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' 20452 # Try to use the -exported_symbol ld option, if it does not 20453 # work, assume that -exports_file does not work either and 20454 # implicitly export all symbols. 20455 # This should be the same for all languages, so no per-tag cache variable. 20456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 20457$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 20458if ${lt_cv_irix_exported_symbol+:} false; then : 20459 $as_echo_n "(cached) " >&6 20460else 20461 save_LDFLAGS="$LDFLAGS" 20462 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 20463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20464/* end confdefs.h. */ 20465int foo (void) { return 0; } 20466_ACEOF 20467if ac_fn_c_try_link "$LINENO"; then : 20468 lt_cv_irix_exported_symbol=yes 20469else 20470 lt_cv_irix_exported_symbol=no 20471fi 20472rm -f core conftest.err conftest.$ac_objext \ 20473 conftest$ac_exeext conftest.$ac_ext 20474 LDFLAGS="$save_LDFLAGS" 20475fi 20476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 20477$as_echo "$lt_cv_irix_exported_symbol" >&6; } 20478 if test "$lt_cv_irix_exported_symbol" = yes; then 20479 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' 20480 fi 20481 else 20482 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' 20483 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' 20484 fi 20485 archive_cmds_need_lc='no' 20486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 20487 hardcode_libdir_separator=: 20488 inherit_rpath=yes 20489 link_all_deplibs=yes 20490 ;; 20491 20492 netbsd*) 20493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 20495 else 20496 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 20497 fi 20498 hardcode_libdir_flag_spec='-R$libdir' 20499 hardcode_direct=yes 20500 hardcode_shlibpath_var=no 20501 ;; 20502 20503 newsos6) 20504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20505 hardcode_direct=yes 20506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 20507 hardcode_libdir_separator=: 20508 hardcode_shlibpath_var=no 20509 ;; 20510 20511 *nto* | *qnx*) 20512 ;; 20513 20514 openbsd*) 20515 if test -f /usr/libexec/ld.so; then 20516 hardcode_direct=yes 20517 hardcode_shlibpath_var=no 20518 hardcode_direct_absolute=yes 20519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 20520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20521 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 20522 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 20523 export_dynamic_flag_spec='${wl}-E' 20524 else 20525 case $host_os in 20526 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 20527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20528 hardcode_libdir_flag_spec='-R$libdir' 20529 ;; 20530 *) 20531 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20532 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 20533 ;; 20534 esac 20535 fi 20536 else 20537 ld_shlibs=no 20538 fi 20539 ;; 20540 20541 os2*) 20542 hardcode_libdir_flag_spec='-L$libdir' 20543 hardcode_minus_L=yes 20544 allow_undefined_flag=unsupported 20545 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' 20546 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 20547 ;; 20548 20549 osf3*) 20550 if test "$GCC" = yes; then 20551 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 20552 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' 20553 else 20554 allow_undefined_flag=' -expect_unresolved \*' 20555 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' 20556 fi 20557 archive_cmds_need_lc='no' 20558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 20559 hardcode_libdir_separator=: 20560 ;; 20561 20562 osf4* | osf5*) # as osf3* with the addition of -msym flag 20563 if test "$GCC" = yes; then 20564 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 20565 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' 20566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 20567 else 20568 allow_undefined_flag=' -expect_unresolved \*' 20569 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' 20570 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~ 20571 $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' 20572 20573 # Both c and cxx compiler support -rpath directly 20574 hardcode_libdir_flag_spec='-rpath $libdir' 20575 fi 20576 archive_cmds_need_lc='no' 20577 hardcode_libdir_separator=: 20578 ;; 20579 20580 solaris*) 20581 no_undefined_flag=' -z defs' 20582 if test "$GCC" = yes; then 20583 wlarc='${wl}' 20584 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 20585 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20586 $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' 20587 else 20588 case `$CC -V 2>&1` in 20589 *"Compilers 5.0"*) 20590 wlarc='' 20591 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 20592 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20593 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 20594 ;; 20595 *) 20596 wlarc='${wl}' 20597 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 20598 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20599 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 20600 ;; 20601 esac 20602 fi 20603 hardcode_libdir_flag_spec='-R$libdir' 20604 hardcode_shlibpath_var=no 20605 case $host_os in 20606 solaris2.[0-5] | solaris2.[0-5].*) ;; 20607 *) 20608 # The compiler driver will combine and reorder linker options, 20609 # but understands `-z linker_flag'. GCC discards it without `$wl', 20610 # but is careful enough not to reorder. 20611 # Supported since Solaris 2.6 (maybe 2.5.1?) 20612 if test "$GCC" = yes; then 20613 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 20614 else 20615 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 20616 fi 20617 ;; 20618 esac 20619 link_all_deplibs=yes 20620 ;; 20621 20622 sunos4*) 20623 if test "x$host_vendor" = xsequent; then 20624 # Use $CC to link under sequent, because it throws in some extra .o 20625 # files that make .init and .fini sections work. 20626 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 20627 else 20628 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 20629 fi 20630 hardcode_libdir_flag_spec='-L$libdir' 20631 hardcode_direct=yes 20632 hardcode_minus_L=yes 20633 hardcode_shlibpath_var=no 20634 ;; 20635 20636 sysv4) 20637 case $host_vendor in 20638 sni) 20639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20640 hardcode_direct=yes # is this really true??? 20641 ;; 20642 siemens) 20643 ## LD is ld it makes a PLAMLIB 20644 ## CC just makes a GrossModule. 20645 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 20646 reload_cmds='$CC -r -o $output$reload_objs' 20647 hardcode_direct=no 20648 ;; 20649 motorola) 20650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20651 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 20652 ;; 20653 esac 20654 runpath_var='LD_RUN_PATH' 20655 hardcode_shlibpath_var=no 20656 ;; 20657 20658 sysv4.3*) 20659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20660 hardcode_shlibpath_var=no 20661 export_dynamic_flag_spec='-Bexport' 20662 ;; 20663 20664 sysv4*MP*) 20665 if test -d /usr/nec; then 20666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20667 hardcode_shlibpath_var=no 20668 runpath_var=LD_RUN_PATH 20669 hardcode_runpath_var=yes 20670 ld_shlibs=yes 20671 fi 20672 ;; 20673 20674 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20675 no_undefined_flag='${wl}-z,text' 20676 archive_cmds_need_lc=no 20677 hardcode_shlibpath_var=no 20678 runpath_var='LD_RUN_PATH' 20679 20680 if test "$GCC" = yes; then 20681 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20682 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20683 else 20684 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20685 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20686 fi 20687 ;; 20688 20689 sysv5* | sco3.2v5* | sco5v6*) 20690 # Note: We can NOT use -z defs as we might desire, because we do not 20691 # link with -lc, and that would cause any symbols used from libc to 20692 # always be unresolved, which means just about no library would 20693 # ever link correctly. If we're not using GNU ld we use -z text 20694 # though, which does catch some bad symbols but isn't as heavy-handed 20695 # as -z defs. 20696 no_undefined_flag='${wl}-z,text' 20697 allow_undefined_flag='${wl}-z,nodefs' 20698 archive_cmds_need_lc=no 20699 hardcode_shlibpath_var=no 20700 hardcode_libdir_flag_spec='${wl}-R,$libdir' 20701 hardcode_libdir_separator=':' 20702 link_all_deplibs=yes 20703 export_dynamic_flag_spec='${wl}-Bexport' 20704 runpath_var='LD_RUN_PATH' 20705 20706 if test "$GCC" = yes; then 20707 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20708 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20709 else 20710 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20711 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20712 fi 20713 ;; 20714 20715 uts4*) 20716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20717 hardcode_libdir_flag_spec='-L$libdir' 20718 hardcode_shlibpath_var=no 20719 ;; 20720 20721 *) 20722 ld_shlibs=no 20723 ;; 20724 esac 20725 20726 if test x$host_vendor = xsni; then 20727 case $host in 20728 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 20729 export_dynamic_flag_spec='${wl}-Blargedynsym' 20730 ;; 20731 esac 20732 fi 20733 fi 20734 20735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 20736$as_echo "$ld_shlibs" >&6; } 20737test "$ld_shlibs" = no && can_build_shared=no 20738 20739with_gnu_ld=$with_gnu_ld 20740 20741 20742 20743 20744 20745 20746 20747 20748 20749 20750 20751 20752 20753 20754 20755# 20756# Do we need to explicitly link libc? 20757# 20758case "x$archive_cmds_need_lc" in 20759x|xyes) 20760 # Assume -lc should be added 20761 archive_cmds_need_lc=yes 20762 20763 if test "$enable_shared" = yes && test "$GCC" = yes; then 20764 case $archive_cmds in 20765 *'~'*) 20766 # FIXME: we may have to deal with multi-command sequences. 20767 ;; 20768 '$CC '*) 20769 # Test whether the compiler implicitly links with -lc since on some 20770 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20771 # to ld, don't add -lc before -lgcc. 20772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 20773$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 20774if ${lt_cv_archive_cmds_need_lc+:} false; then : 20775 $as_echo_n "(cached) " >&6 20776else 20777 $RM conftest* 20778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20779 20780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20781 (eval $ac_compile) 2>&5 20782 ac_status=$? 20783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20784 test $ac_status = 0; } 2>conftest.err; then 20785 soname=conftest 20786 lib=conftest 20787 libobjs=conftest.$ac_objext 20788 deplibs= 20789 wl=$lt_prog_compiler_wl 20790 pic_flag=$lt_prog_compiler_pic 20791 compiler_flags=-v 20792 linker_flags=-v 20793 verstring= 20794 output_objdir=. 20795 libname=conftest 20796 lt_save_allow_undefined_flag=$allow_undefined_flag 20797 allow_undefined_flag= 20798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 20799 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 20800 ac_status=$? 20801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20802 test $ac_status = 0; } 20803 then 20804 lt_cv_archive_cmds_need_lc=no 20805 else 20806 lt_cv_archive_cmds_need_lc=yes 20807 fi 20808 allow_undefined_flag=$lt_save_allow_undefined_flag 20809 else 20810 cat conftest.err 1>&5 20811 fi 20812 $RM conftest* 20813 20814fi 20815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 20816$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 20817 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 20818 ;; 20819 esac 20820 fi 20821 ;; 20822esac 20823 20824 20825 20826 20827 20828 20829 20830 20831 20832 20833 20834 20835 20836 20837 20838 20839 20840 20841 20842 20843 20844 20845 20846 20847 20848 20849 20850 20851 20852 20853 20854 20855 20856 20857 20858 20859 20860 20861 20862 20863 20864 20865 20866 20867 20868 20869 20870 20871 20872 20873 20874 20875 20876 20877 20878 20879 20880 20881 20882 20883 20884 20885 20886 20887 20888 20889 20890 20891 20892 20893 20894 20895 20896 20897 20898 20899 20900 20901 20902 20903 20904 20905 20906 20907 20908 20909 20910 20911 20912 20913 20914 20915 20916 20917 20918 20919 20920 20921 20922 20923 20924 20925 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 20936 20937 20938 20939 20940 20941 20942 20943 20944 20945 20946 20947 20948 20949 20950 20951 20952 20953 20954 20955 20956 20957 20958 20959 20960 20961 20962 20963 20964 20965 20966 20967 20968 20969 20970 20971 20972 20973 20974 20975 20976 20977 20978 20979 20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 20981$as_echo_n "checking dynamic linker characteristics... " >&6; } 20982 20983if test "$GCC" = yes; then 20984 case $host_os in 20985 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 20986 *) lt_awk_arg="/^libraries:/" ;; 20987 esac 20988 case $host_os in 20989 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 20990 *) lt_sed_strip_eq="s,=/,/,g" ;; 20991 esac 20992 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 20993 case $lt_search_path_spec in 20994 *\;*) 20995 # if the path contains ";" then we assume it to be the separator 20996 # otherwise default to the standard path separator (i.e. ":") - it is 20997 # assumed that no part of a normal pathname contains ";" but that should 20998 # okay in the real world where ";" in dirpaths is itself problematic. 20999 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 21000 ;; 21001 *) 21002 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 21003 ;; 21004 esac 21005 # Ok, now we have the path, separated by spaces, we can step through it 21006 # and add multilib dir if necessary. 21007 lt_tmp_lt_search_path_spec= 21008 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 21009 for lt_sys_path in $lt_search_path_spec; do 21010 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 21011 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 21012 else 21013 test -d "$lt_sys_path" && \ 21014 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 21015 fi 21016 done 21017 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 21018BEGIN {RS=" "; FS="/|\n";} { 21019 lt_foo=""; 21020 lt_count=0; 21021 for (lt_i = NF; lt_i > 0; lt_i--) { 21022 if ($lt_i != "" && $lt_i != ".") { 21023 if ($lt_i == "..") { 21024 lt_count++; 21025 } else { 21026 if (lt_count == 0) { 21027 lt_foo="/" $lt_i lt_foo; 21028 } else { 21029 lt_count--; 21030 } 21031 } 21032 } 21033 } 21034 if (lt_foo != "") { lt_freq[lt_foo]++; } 21035 if (lt_freq[lt_foo] == 1) { print lt_foo; } 21036}'` 21037 # AWK program above erroneously prepends '/' to C:/dos/paths 21038 # for these hosts. 21039 case $host_os in 21040 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 21041 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 21042 esac 21043 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 21044else 21045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21046fi 21047library_names_spec= 21048libname_spec='lib$name' 21049soname_spec= 21050shrext_cmds=".so" 21051postinstall_cmds= 21052postuninstall_cmds= 21053finish_cmds= 21054finish_eval= 21055shlibpath_var= 21056shlibpath_overrides_runpath=unknown 21057version_type=none 21058dynamic_linker="$host_os ld.so" 21059sys_lib_dlsearch_path_spec="/lib /usr/lib" 21060need_lib_prefix=unknown 21061hardcode_into_libs=no 21062 21063# when you set need_version to no, make sure it does not cause -set_version 21064# flags to be left without arguments 21065need_version=unknown 21066 21067case $host_os in 21068aix3*) 21069 version_type=linux 21070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 21071 shlibpath_var=LIBPATH 21072 21073 # AIX 3 has no versioning support, so we append a major version to the name. 21074 soname_spec='${libname}${release}${shared_ext}$major' 21075 ;; 21076 21077aix[4-9]*) 21078 version_type=linux 21079 need_lib_prefix=no 21080 need_version=no 21081 hardcode_into_libs=yes 21082 if test "$host_cpu" = ia64; then 21083 # AIX 5 supports IA64 21084 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 21085 shlibpath_var=LD_LIBRARY_PATH 21086 else 21087 # With GCC up to 2.95.x, collect2 would create an import file 21088 # for dependence libraries. The import file would start with 21089 # the line `#! .'. This would cause the generated library to 21090 # depend on `.', always an invalid library. This was fixed in 21091 # development snapshots of GCC prior to 3.0. 21092 case $host_os in 21093 aix4 | aix4.[01] | aix4.[01].*) 21094 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21095 echo ' yes ' 21096 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 21097 : 21098 else 21099 can_build_shared=no 21100 fi 21101 ;; 21102 esac 21103 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 21104 # soname into executable. Probably we can add versioning support to 21105 # collect2, so additional links can be useful in future. 21106 if test "$aix_use_runtimelinking" = yes; then 21107 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21108 # instead of lib<name>.a to let people know that these are not 21109 # typical AIX shared libraries. 21110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21111 else 21112 # We preserve .a as extension for shared libraries through AIX4.2 21113 # and later when we are not doing run time linking. 21114 library_names_spec='${libname}${release}.a $libname.a' 21115 soname_spec='${libname}${release}${shared_ext}$major' 21116 fi 21117 shlibpath_var=LIBPATH 21118 fi 21119 ;; 21120 21121amigaos*) 21122 case $host_cpu in 21123 powerpc) 21124 # Since July 2007 AmigaOS4 officially supports .so libraries. 21125 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21127 ;; 21128 m68k) 21129 library_names_spec='$libname.ixlibrary $libname.a' 21130 # Create ${libname}_ixlibrary.a entries in /sys/libs. 21131 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' 21132 ;; 21133 esac 21134 ;; 21135 21136beos*) 21137 library_names_spec='${libname}${shared_ext}' 21138 dynamic_linker="$host_os ld.so" 21139 shlibpath_var=LIBRARY_PATH 21140 ;; 21141 21142bsdi[45]*) 21143 version_type=linux 21144 need_version=no 21145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21146 soname_spec='${libname}${release}${shared_ext}$major' 21147 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 21148 shlibpath_var=LD_LIBRARY_PATH 21149 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 21150 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 21151 # the default ld.so.conf also contains /usr/contrib/lib and 21152 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 21153 # libtool to hard-code these into programs 21154 ;; 21155 21156cygwin* | mingw* | pw32* | cegcc*) 21157 version_type=windows 21158 shrext_cmds=".dll" 21159 need_version=no 21160 need_lib_prefix=no 21161 21162 case $GCC,$cc_basename in 21163 yes,*) 21164 # gcc 21165 library_names_spec='$libname.dll.a' 21166 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21167 postinstall_cmds='base_file=`basename \${file}`~ 21168 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 21169 dldir=$destdir/`dirname \$dlpath`~ 21170 test -d \$dldir || mkdir -p \$dldir~ 21171 $install_prog $dir/$dlname \$dldir/$dlname~ 21172 chmod a+x \$dldir/$dlname~ 21173 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21174 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21175 fi' 21176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21177 dlpath=$dir/\$dldll~ 21178 $RM \$dlpath' 21179 shlibpath_overrides_runpath=yes 21180 21181 case $host_os in 21182 cygwin*) 21183 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 21184 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21185 21186 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 21187 ;; 21188 mingw* | cegcc*) 21189 # MinGW DLLs use traditional 'lib' prefix 21190 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21191 ;; 21192 pw32*) 21193 # pw32 DLLs use 'pw' prefix rather than 'lib' 21194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21195 ;; 21196 esac 21197 dynamic_linker='Win32 ld.exe' 21198 ;; 21199 21200 *,cl*) 21201 # Native MSVC 21202 libname_spec='$name' 21203 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21204 library_names_spec='${libname}.dll.lib' 21205 21206 case $build_os in 21207 mingw*) 21208 sys_lib_search_path_spec= 21209 lt_save_ifs=$IFS 21210 IFS=';' 21211 for lt_path in $LIB 21212 do 21213 IFS=$lt_save_ifs 21214 # Let DOS variable expansion print the short 8.3 style file name. 21215 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 21216 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 21217 done 21218 IFS=$lt_save_ifs 21219 # Convert to MSYS style. 21220 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 21221 ;; 21222 cygwin*) 21223 # Convert to unix form, then to dos form, then back to unix form 21224 # but this time dos style (no spaces!) so that the unix form looks 21225 # like /cygdrive/c/PROGRA~1:/cygdr... 21226 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 21227 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 21228 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21229 ;; 21230 *) 21231 sys_lib_search_path_spec="$LIB" 21232 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 21233 # It is most probably a Windows format PATH. 21234 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 21235 else 21236 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21237 fi 21238 # FIXME: find the short name or the path components, as spaces are 21239 # common. (e.g. "Program Files" -> "PROGRA~1") 21240 ;; 21241 esac 21242 21243 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21244 postinstall_cmds='base_file=`basename \${file}`~ 21245 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 21246 dldir=$destdir/`dirname \$dlpath`~ 21247 test -d \$dldir || mkdir -p \$dldir~ 21248 $install_prog $dir/$dlname \$dldir/$dlname' 21249 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21250 dlpath=$dir/\$dldll~ 21251 $RM \$dlpath' 21252 shlibpath_overrides_runpath=yes 21253 dynamic_linker='Win32 link.exe' 21254 ;; 21255 21256 *) 21257 # Assume MSVC wrapper 21258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 21259 dynamic_linker='Win32 ld.exe' 21260 ;; 21261 esac 21262 # FIXME: first we should search . and the directory the executable is in 21263 shlibpath_var=PATH 21264 ;; 21265 21266darwin* | rhapsody*) 21267 dynamic_linker="$host_os dyld" 21268 version_type=darwin 21269 need_lib_prefix=no 21270 need_version=no 21271 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 21272 soname_spec='${libname}${release}${major}$shared_ext' 21273 shlibpath_overrides_runpath=yes 21274 shlibpath_var=DYLD_LIBRARY_PATH 21275 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 21276 21277 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 21278 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 21279 ;; 21280 21281dgux*) 21282 version_type=linux 21283 need_lib_prefix=no 21284 need_version=no 21285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 21286 soname_spec='${libname}${release}${shared_ext}$major' 21287 shlibpath_var=LD_LIBRARY_PATH 21288 ;; 21289 21290freebsd1*) 21291 dynamic_linker=no 21292 ;; 21293 21294freebsd* | dragonfly*) 21295 # DragonFly does not have aout. When/if they implement a new 21296 # versioning mechanism, adjust this. 21297 if test -x /usr/bin/objformat; then 21298 objformat=`/usr/bin/objformat` 21299 else 21300 case $host_os in 21301 freebsd[123]*) objformat=aout ;; 21302 *) objformat=elf ;; 21303 esac 21304 fi 21305 version_type=freebsd-$objformat 21306 case $version_type in 21307 freebsd-elf*) 21308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 21309 need_version=no 21310 need_lib_prefix=no 21311 ;; 21312 freebsd-*) 21313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 21314 need_version=yes 21315 ;; 21316 esac 21317 shlibpath_var=LD_LIBRARY_PATH 21318 case $host_os in 21319 freebsd2*) 21320 shlibpath_overrides_runpath=yes 21321 ;; 21322 freebsd3.[01]* | freebsdelf3.[01]*) 21323 shlibpath_overrides_runpath=yes 21324 hardcode_into_libs=yes 21325 ;; 21326 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 21327 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 21328 shlibpath_overrides_runpath=no 21329 hardcode_into_libs=yes 21330 ;; 21331 *) # from 4.6 on, and DragonFly 21332 shlibpath_overrides_runpath=yes 21333 hardcode_into_libs=yes 21334 ;; 21335 esac 21336 ;; 21337 21338gnu*) 21339 version_type=linux 21340 need_lib_prefix=no 21341 need_version=no 21342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 21343 soname_spec='${libname}${release}${shared_ext}$major' 21344 shlibpath_var=LD_LIBRARY_PATH 21345 hardcode_into_libs=yes 21346 ;; 21347 21348haiku*) 21349 version_type=linux 21350 need_lib_prefix=no 21351 need_version=no 21352 dynamic_linker="$host_os runtime_loader" 21353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 21354 soname_spec='${libname}${release}${shared_ext}$major' 21355 shlibpath_var=LIBRARY_PATH 21356 shlibpath_overrides_runpath=yes 21357 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 21358 hardcode_into_libs=yes 21359 ;; 21360 21361hpux9* | hpux10* | hpux11*) 21362 # Give a soname corresponding to the major version so that dld.sl refuses to 21363 # link against other versions. 21364 version_type=sunos 21365 need_lib_prefix=no 21366 need_version=no 21367 case $host_cpu in 21368 ia64*) 21369 shrext_cmds='.so' 21370 hardcode_into_libs=yes 21371 dynamic_linker="$host_os dld.so" 21372 shlibpath_var=LD_LIBRARY_PATH 21373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21375 soname_spec='${libname}${release}${shared_ext}$major' 21376 if test "X$HPUX_IA64_MODE" = X32; then 21377 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 21378 else 21379 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 21380 fi 21381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21382 ;; 21383 hppa*64*) 21384 shrext_cmds='.sl' 21385 hardcode_into_libs=yes 21386 dynamic_linker="$host_os dld.sl" 21387 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 21388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21390 soname_spec='${libname}${release}${shared_ext}$major' 21391 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 21392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21393 ;; 21394 *) 21395 shrext_cmds='.sl' 21396 dynamic_linker="$host_os dld.sl" 21397 shlibpath_var=SHLIB_PATH 21398 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 21399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21400 soname_spec='${libname}${release}${shared_ext}$major' 21401 ;; 21402 esac 21403 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 21404 postinstall_cmds='chmod 555 $lib' 21405 # or fails outright, so override atomically: 21406 install_override_mode=555 21407 ;; 21408 21409interix[3-9]*) 21410 version_type=linux 21411 need_lib_prefix=no 21412 need_version=no 21413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 21414 soname_spec='${libname}${release}${shared_ext}$major' 21415 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 21416 shlibpath_var=LD_LIBRARY_PATH 21417 shlibpath_overrides_runpath=no 21418 hardcode_into_libs=yes 21419 ;; 21420 21421irix5* | irix6* | nonstopux*) 21422 case $host_os in 21423 nonstopux*) version_type=nonstopux ;; 21424 *) 21425 if test "$lt_cv_prog_gnu_ld" = yes; then 21426 version_type=linux 21427 else 21428 version_type=irix 21429 fi ;; 21430 esac 21431 need_lib_prefix=no 21432 need_version=no 21433 soname_spec='${libname}${release}${shared_ext}$major' 21434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 21435 case $host_os in 21436 irix5* | nonstopux*) 21437 libsuff= shlibsuff= 21438 ;; 21439 *) 21440 case $LD in # libtool.m4 will add one of these switches to LD 21441 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21442 libsuff= shlibsuff= libmagic=32-bit;; 21443 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21444 libsuff=32 shlibsuff=N32 libmagic=N32;; 21445 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21446 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21447 *) libsuff= shlibsuff= libmagic=never-match;; 21448 esac 21449 ;; 21450 esac 21451 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21452 shlibpath_overrides_runpath=no 21453 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 21454 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 21455 hardcode_into_libs=yes 21456 ;; 21457 21458# No shared lib support for Linux oldld, aout, or coff. 21459linux*oldld* | linux*aout* | linux*coff*) 21460 dynamic_linker=no 21461 ;; 21462 21463# This must be Linux ELF. 21464linux* | k*bsd*-gnu | kopensolaris*-gnu) 21465 version_type=linux 21466 need_lib_prefix=no 21467 need_version=no 21468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21469 soname_spec='${libname}${release}${shared_ext}$major' 21470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21471 shlibpath_var=LD_LIBRARY_PATH 21472 shlibpath_overrides_runpath=no 21473 21474 # Some binutils ld are patched to set DT_RUNPATH 21475 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 21476 $as_echo_n "(cached) " >&6 21477else 21478 lt_cv_shlibpath_overrides_runpath=no 21479 save_LDFLAGS=$LDFLAGS 21480 save_libdir=$libdir 21481 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 21482 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 21483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21484/* end confdefs.h. */ 21485 21486int 21487main () 21488{ 21489 21490 ; 21491 return 0; 21492} 21493_ACEOF 21494if ac_fn_c_try_link "$LINENO"; then : 21495 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 21496 lt_cv_shlibpath_overrides_runpath=yes 21497fi 21498fi 21499rm -f core conftest.err conftest.$ac_objext \ 21500 conftest$ac_exeext conftest.$ac_ext 21501 LDFLAGS=$save_LDFLAGS 21502 libdir=$save_libdir 21503 21504fi 21505 21506 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 21507 21508 # This implies no fast_install, which is unacceptable. 21509 # Some rework will be needed to allow for fast_install 21510 # before this can be enabled. 21511 hardcode_into_libs=yes 21512 21513 # Append ld.so.conf contents to the search path 21514 if test -f /etc/ld.so.conf; then 21515 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' ' '` 21516 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 21517 fi 21518 21519 # We used to test for /lib/ld.so.1 and disable shared libraries on 21520 # powerpc, because MkLinux only supported shared libraries with the 21521 # GNU dynamic linker. Since this was broken with cross compilers, 21522 # most powerpc-linux boxes support dynamic linking these days and 21523 # people can always --disable-shared, the test was removed, and we 21524 # assume the GNU/Linux dynamic linker is in use. 21525 dynamic_linker='GNU/Linux ld.so' 21526 ;; 21527 21528netbsd*) 21529 version_type=sunos 21530 need_lib_prefix=no 21531 need_version=no 21532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21535 dynamic_linker='NetBSD (a.out) ld.so' 21536 else 21537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 21538 soname_spec='${libname}${release}${shared_ext}$major' 21539 dynamic_linker='NetBSD ld.elf_so' 21540 fi 21541 shlibpath_var=LD_LIBRARY_PATH 21542 shlibpath_overrides_runpath=yes 21543 hardcode_into_libs=yes 21544 ;; 21545 21546newsos6) 21547 version_type=linux 21548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21549 shlibpath_var=LD_LIBRARY_PATH 21550 shlibpath_overrides_runpath=yes 21551 ;; 21552 21553*nto* | *qnx*) 21554 version_type=qnx 21555 need_lib_prefix=no 21556 need_version=no 21557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21558 soname_spec='${libname}${release}${shared_ext}$major' 21559 shlibpath_var=LD_LIBRARY_PATH 21560 shlibpath_overrides_runpath=no 21561 hardcode_into_libs=yes 21562 dynamic_linker='ldqnx.so' 21563 ;; 21564 21565openbsd*) 21566 version_type=sunos 21567 sys_lib_dlsearch_path_spec="/usr/lib" 21568 need_lib_prefix=no 21569 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 21570 case $host_os in 21571 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 21572 *) need_version=no ;; 21573 esac 21574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21576 shlibpath_var=LD_LIBRARY_PATH 21577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 21578 case $host_os in 21579 openbsd2.[89] | openbsd2.[89].*) 21580 shlibpath_overrides_runpath=no 21581 ;; 21582 *) 21583 shlibpath_overrides_runpath=yes 21584 ;; 21585 esac 21586 else 21587 shlibpath_overrides_runpath=yes 21588 fi 21589 ;; 21590 21591os2*) 21592 libname_spec='$name' 21593 shrext_cmds=".dll" 21594 need_lib_prefix=no 21595 library_names_spec='$libname${shared_ext} $libname.a' 21596 dynamic_linker='OS/2 ld.exe' 21597 shlibpath_var=LIBPATH 21598 ;; 21599 21600osf3* | osf4* | osf5*) 21601 version_type=osf 21602 need_lib_prefix=no 21603 need_version=no 21604 soname_spec='${libname}${release}${shared_ext}$major' 21605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21606 shlibpath_var=LD_LIBRARY_PATH 21607 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21608 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 21609 ;; 21610 21611rdos*) 21612 dynamic_linker=no 21613 ;; 21614 21615solaris*) 21616 version_type=linux 21617 need_lib_prefix=no 21618 need_version=no 21619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21620 soname_spec='${libname}${release}${shared_ext}$major' 21621 shlibpath_var=LD_LIBRARY_PATH 21622 shlibpath_overrides_runpath=yes 21623 hardcode_into_libs=yes 21624 # ldd complains unless libraries are executable 21625 postinstall_cmds='chmod +x $lib' 21626 ;; 21627 21628sunos4*) 21629 version_type=sunos 21630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21631 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21632 shlibpath_var=LD_LIBRARY_PATH 21633 shlibpath_overrides_runpath=yes 21634 if test "$with_gnu_ld" = yes; then 21635 need_lib_prefix=no 21636 fi 21637 need_version=yes 21638 ;; 21639 21640sysv4 | sysv4.3*) 21641 version_type=linux 21642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21643 soname_spec='${libname}${release}${shared_ext}$major' 21644 shlibpath_var=LD_LIBRARY_PATH 21645 case $host_vendor in 21646 sni) 21647 shlibpath_overrides_runpath=no 21648 need_lib_prefix=no 21649 runpath_var=LD_RUN_PATH 21650 ;; 21651 siemens) 21652 need_lib_prefix=no 21653 ;; 21654 motorola) 21655 need_lib_prefix=no 21656 need_version=no 21657 shlibpath_overrides_runpath=no 21658 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21659 ;; 21660 esac 21661 ;; 21662 21663sysv4*MP*) 21664 if test -d /usr/nec ;then 21665 version_type=linux 21666 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 21667 soname_spec='$libname${shared_ext}.$major' 21668 shlibpath_var=LD_LIBRARY_PATH 21669 fi 21670 ;; 21671 21672sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 21673 version_type=freebsd-elf 21674 need_lib_prefix=no 21675 need_version=no 21676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 21677 soname_spec='${libname}${release}${shared_ext}$major' 21678 shlibpath_var=LD_LIBRARY_PATH 21679 shlibpath_overrides_runpath=yes 21680 hardcode_into_libs=yes 21681 if test "$with_gnu_ld" = yes; then 21682 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 21683 else 21684 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 21685 case $host_os in 21686 sco3.2v5*) 21687 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 21688 ;; 21689 esac 21690 fi 21691 sys_lib_dlsearch_path_spec='/usr/lib' 21692 ;; 21693 21694tpf*) 21695 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 21696 version_type=linux 21697 need_lib_prefix=no 21698 need_version=no 21699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21700 shlibpath_var=LD_LIBRARY_PATH 21701 shlibpath_overrides_runpath=no 21702 hardcode_into_libs=yes 21703 ;; 21704 21705uts4*) 21706 version_type=linux 21707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21708 soname_spec='${libname}${release}${shared_ext}$major' 21709 shlibpath_var=LD_LIBRARY_PATH 21710 ;; 21711 21712*) 21713 dynamic_linker=no 21714 ;; 21715esac 21716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 21717$as_echo "$dynamic_linker" >&6; } 21718test "$dynamic_linker" = no && can_build_shared=no 21719 21720variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21721if test "$GCC" = yes; then 21722 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21723fi 21724 21725if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 21726 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 21727fi 21728if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 21729 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 21730fi 21731 21732 21733 21734 21735 21736 21737 21738 21739 21740 21741 21742 21743 21744 21745 21746 21747 21748 21749 21750 21751 21752 21753 21754 21755 21756 21757 21758 21759 21760 21761 21762 21763 21764 21765 21766 21767 21768 21769 21770 21771 21772 21773 21774 21775 21776 21777 21778 21779 21780 21781 21782 21783 21784 21785 21786 21787 21788 21789 21790 21791 21792 21793 21794 21795 21796 21797 21798 21799 21800 21801 21802 21803 21804 21805 21806 21807 21808 21809 21810 21811 21812 21813 21814 21815 21816 21817 21818 21819 21820 21821 21822 21823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 21824$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 21825hardcode_action= 21826if test -n "$hardcode_libdir_flag_spec" || 21827 test -n "$runpath_var" || 21828 test "X$hardcode_automatic" = "Xyes" ; then 21829 21830 # We can hardcode non-existent directories. 21831 if test "$hardcode_direct" != no && 21832 # If the only mechanism to avoid hardcoding is shlibpath_var, we 21833 # have to relink, otherwise we might link with an installed library 21834 # when we should be linking with a yet-to-be-installed one 21835 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 21836 test "$hardcode_minus_L" != no; then 21837 # Linking always hardcodes the temporary library directory. 21838 hardcode_action=relink 21839 else 21840 # We can link without hardcoding, and we can hardcode nonexisting dirs. 21841 hardcode_action=immediate 21842 fi 21843else 21844 # We cannot hardcode anything, or else we can only hardcode existing 21845 # directories. 21846 hardcode_action=unsupported 21847fi 21848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 21849$as_echo "$hardcode_action" >&6; } 21850 21851if test "$hardcode_action" = relink || 21852 test "$inherit_rpath" = yes; then 21853 # Fast installation is not supported 21854 enable_fast_install=no 21855elif test "$shlibpath_overrides_runpath" = yes || 21856 test "$enable_shared" = no; then 21857 # Fast installation is not necessary 21858 enable_fast_install=needless 21859fi 21860 21861 21862 21863 21864 21865 21866 if test "x$enable_dlopen" != xyes; then 21867 enable_dlopen=unknown 21868 enable_dlopen_self=unknown 21869 enable_dlopen_self_static=unknown 21870else 21871 lt_cv_dlopen=no 21872 lt_cv_dlopen_libs= 21873 21874 case $host_os in 21875 beos*) 21876 lt_cv_dlopen="load_add_on" 21877 lt_cv_dlopen_libs= 21878 lt_cv_dlopen_self=yes 21879 ;; 21880 21881 mingw* | pw32* | cegcc*) 21882 lt_cv_dlopen="LoadLibrary" 21883 lt_cv_dlopen_libs= 21884 ;; 21885 21886 cygwin*) 21887 lt_cv_dlopen="dlopen" 21888 lt_cv_dlopen_libs= 21889 ;; 21890 21891 darwin*) 21892 # if libdl is installed we need to link against it 21893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 21894$as_echo_n "checking for dlopen in -ldl... " >&6; } 21895if ${ac_cv_lib_dl_dlopen+:} false; then : 21896 $as_echo_n "(cached) " >&6 21897else 21898 ac_check_lib_save_LIBS=$LIBS 21899LIBS="-ldl $LIBS" 21900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21901/* end confdefs.h. */ 21902 21903/* Override any GCC internal prototype to avoid an error. 21904 Use char because int might match the return type of a GCC 21905 builtin and then its argument prototype would still apply. */ 21906#ifdef __cplusplus 21907extern "C" 21908#endif 21909char dlopen (); 21910int 21911main () 21912{ 21913return dlopen (); 21914 ; 21915 return 0; 21916} 21917_ACEOF 21918if ac_fn_c_try_link "$LINENO"; then : 21919 ac_cv_lib_dl_dlopen=yes 21920else 21921 ac_cv_lib_dl_dlopen=no 21922fi 21923rm -f core conftest.err conftest.$ac_objext \ 21924 conftest$ac_exeext conftest.$ac_ext 21925LIBS=$ac_check_lib_save_LIBS 21926fi 21927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 21928$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 21929if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 21930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 21931else 21932 21933 lt_cv_dlopen="dyld" 21934 lt_cv_dlopen_libs= 21935 lt_cv_dlopen_self=yes 21936 21937fi 21938 21939 ;; 21940 21941 *) 21942 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 21943if test "x$ac_cv_func_shl_load" = xyes; then : 21944 lt_cv_dlopen="shl_load" 21945else 21946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 21947$as_echo_n "checking for shl_load in -ldld... " >&6; } 21948if ${ac_cv_lib_dld_shl_load+:} false; then : 21949 $as_echo_n "(cached) " >&6 21950else 21951 ac_check_lib_save_LIBS=$LIBS 21952LIBS="-ldld $LIBS" 21953cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21954/* end confdefs.h. */ 21955 21956/* Override any GCC internal prototype to avoid an error. 21957 Use char because int might match the return type of a GCC 21958 builtin and then its argument prototype would still apply. */ 21959#ifdef __cplusplus 21960extern "C" 21961#endif 21962char shl_load (); 21963int 21964main () 21965{ 21966return shl_load (); 21967 ; 21968 return 0; 21969} 21970_ACEOF 21971if ac_fn_c_try_link "$LINENO"; then : 21972 ac_cv_lib_dld_shl_load=yes 21973else 21974 ac_cv_lib_dld_shl_load=no 21975fi 21976rm -f core conftest.err conftest.$ac_objext \ 21977 conftest$ac_exeext conftest.$ac_ext 21978LIBS=$ac_check_lib_save_LIBS 21979fi 21980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 21981$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 21982if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 21983 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 21984else 21985 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 21986if test "x$ac_cv_func_dlopen" = xyes; then : 21987 lt_cv_dlopen="dlopen" 21988else 21989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 21990$as_echo_n "checking for dlopen in -ldl... " >&6; } 21991if ${ac_cv_lib_dl_dlopen+:} false; then : 21992 $as_echo_n "(cached) " >&6 21993else 21994 ac_check_lib_save_LIBS=$LIBS 21995LIBS="-ldl $LIBS" 21996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21997/* end confdefs.h. */ 21998 21999/* Override any GCC internal prototype to avoid an error. 22000 Use char because int might match the return type of a GCC 22001 builtin and then its argument prototype would still apply. */ 22002#ifdef __cplusplus 22003extern "C" 22004#endif 22005char dlopen (); 22006int 22007main () 22008{ 22009return dlopen (); 22010 ; 22011 return 0; 22012} 22013_ACEOF 22014if ac_fn_c_try_link "$LINENO"; then : 22015 ac_cv_lib_dl_dlopen=yes 22016else 22017 ac_cv_lib_dl_dlopen=no 22018fi 22019rm -f core conftest.err conftest.$ac_objext \ 22020 conftest$ac_exeext conftest.$ac_ext 22021LIBS=$ac_check_lib_save_LIBS 22022fi 22023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22024$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 22025if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 22026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 22027else 22028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 22029$as_echo_n "checking for dlopen in -lsvld... " >&6; } 22030if ${ac_cv_lib_svld_dlopen+:} false; then : 22031 $as_echo_n "(cached) " >&6 22032else 22033 ac_check_lib_save_LIBS=$LIBS 22034LIBS="-lsvld $LIBS" 22035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22036/* end confdefs.h. */ 22037 22038/* Override any GCC internal prototype to avoid an error. 22039 Use char because int might match the return type of a GCC 22040 builtin and then its argument prototype would still apply. */ 22041#ifdef __cplusplus 22042extern "C" 22043#endif 22044char dlopen (); 22045int 22046main () 22047{ 22048return dlopen (); 22049 ; 22050 return 0; 22051} 22052_ACEOF 22053if ac_fn_c_try_link "$LINENO"; then : 22054 ac_cv_lib_svld_dlopen=yes 22055else 22056 ac_cv_lib_svld_dlopen=no 22057fi 22058rm -f core conftest.err conftest.$ac_objext \ 22059 conftest$ac_exeext conftest.$ac_ext 22060LIBS=$ac_check_lib_save_LIBS 22061fi 22062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 22063$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 22064if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 22065 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 22066else 22067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 22068$as_echo_n "checking for dld_link in -ldld... " >&6; } 22069if ${ac_cv_lib_dld_dld_link+:} false; then : 22070 $as_echo_n "(cached) " >&6 22071else 22072 ac_check_lib_save_LIBS=$LIBS 22073LIBS="-ldld $LIBS" 22074cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22075/* end confdefs.h. */ 22076 22077/* Override any GCC internal prototype to avoid an error. 22078 Use char because int might match the return type of a GCC 22079 builtin and then its argument prototype would still apply. */ 22080#ifdef __cplusplus 22081extern "C" 22082#endif 22083char dld_link (); 22084int 22085main () 22086{ 22087return dld_link (); 22088 ; 22089 return 0; 22090} 22091_ACEOF 22092if ac_fn_c_try_link "$LINENO"; then : 22093 ac_cv_lib_dld_dld_link=yes 22094else 22095 ac_cv_lib_dld_dld_link=no 22096fi 22097rm -f core conftest.err conftest.$ac_objext \ 22098 conftest$ac_exeext conftest.$ac_ext 22099LIBS=$ac_check_lib_save_LIBS 22100fi 22101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 22102$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 22103if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 22104 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 22105fi 22106 22107 22108fi 22109 22110 22111fi 22112 22113 22114fi 22115 22116 22117fi 22118 22119 22120fi 22121 22122 ;; 22123 esac 22124 22125 if test "x$lt_cv_dlopen" != xno; then 22126 enable_dlopen=yes 22127 else 22128 enable_dlopen=no 22129 fi 22130 22131 case $lt_cv_dlopen in 22132 dlopen) 22133 save_CPPFLAGS="$CPPFLAGS" 22134 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 22135 22136 save_LDFLAGS="$LDFLAGS" 22137 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 22138 22139 save_LIBS="$LIBS" 22140 LIBS="$lt_cv_dlopen_libs $LIBS" 22141 22142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 22143$as_echo_n "checking whether a program can dlopen itself... " >&6; } 22144if ${lt_cv_dlopen_self+:} false; then : 22145 $as_echo_n "(cached) " >&6 22146else 22147 if test "$cross_compiling" = yes; then : 22148 lt_cv_dlopen_self=cross 22149else 22150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 22151 lt_status=$lt_dlunknown 22152 cat > conftest.$ac_ext <<_LT_EOF 22153#line $LINENO "configure" 22154#include "confdefs.h" 22155 22156#if HAVE_DLFCN_H 22157#include <dlfcn.h> 22158#endif 22159 22160#include <stdio.h> 22161 22162#ifdef RTLD_GLOBAL 22163# define LT_DLGLOBAL RTLD_GLOBAL 22164#else 22165# ifdef DL_GLOBAL 22166# define LT_DLGLOBAL DL_GLOBAL 22167# else 22168# define LT_DLGLOBAL 0 22169# endif 22170#endif 22171 22172/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 22173 find out it does not work in some platform. */ 22174#ifndef LT_DLLAZY_OR_NOW 22175# ifdef RTLD_LAZY 22176# define LT_DLLAZY_OR_NOW RTLD_LAZY 22177# else 22178# ifdef DL_LAZY 22179# define LT_DLLAZY_OR_NOW DL_LAZY 22180# else 22181# ifdef RTLD_NOW 22182# define LT_DLLAZY_OR_NOW RTLD_NOW 22183# else 22184# ifdef DL_NOW 22185# define LT_DLLAZY_OR_NOW DL_NOW 22186# else 22187# define LT_DLLAZY_OR_NOW 0 22188# endif 22189# endif 22190# endif 22191# endif 22192#endif 22193 22194/* When -fvisbility=hidden is used, assume the code has been annotated 22195 correspondingly for the symbols needed. */ 22196#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 22197int fnord () __attribute__((visibility("default"))); 22198#endif 22199 22200int fnord () { return 42; } 22201int main () 22202{ 22203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 22204 int status = $lt_dlunknown; 22205 22206 if (self) 22207 { 22208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 22209 else 22210 { 22211 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 22212 else puts (dlerror ()); 22213 } 22214 /* dlclose (self); */ 22215 } 22216 else 22217 puts (dlerror ()); 22218 22219 return status; 22220} 22221_LT_EOF 22222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 22223 (eval $ac_link) 2>&5 22224 ac_status=$? 22225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22226 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 22227 (./conftest; exit; ) >&5 2>/dev/null 22228 lt_status=$? 22229 case x$lt_status in 22230 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 22231 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 22232 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 22233 esac 22234 else : 22235 # compilation failed 22236 lt_cv_dlopen_self=no 22237 fi 22238fi 22239rm -fr conftest* 22240 22241 22242fi 22243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 22244$as_echo "$lt_cv_dlopen_self" >&6; } 22245 22246 if test "x$lt_cv_dlopen_self" = xyes; then 22247 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 22248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 22249$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 22250if ${lt_cv_dlopen_self_static+:} false; then : 22251 $as_echo_n "(cached) " >&6 22252else 22253 if test "$cross_compiling" = yes; then : 22254 lt_cv_dlopen_self_static=cross 22255else 22256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 22257 lt_status=$lt_dlunknown 22258 cat > conftest.$ac_ext <<_LT_EOF 22259#line $LINENO "configure" 22260#include "confdefs.h" 22261 22262#if HAVE_DLFCN_H 22263#include <dlfcn.h> 22264#endif 22265 22266#include <stdio.h> 22267 22268#ifdef RTLD_GLOBAL 22269# define LT_DLGLOBAL RTLD_GLOBAL 22270#else 22271# ifdef DL_GLOBAL 22272# define LT_DLGLOBAL DL_GLOBAL 22273# else 22274# define LT_DLGLOBAL 0 22275# endif 22276#endif 22277 22278/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 22279 find out it does not work in some platform. */ 22280#ifndef LT_DLLAZY_OR_NOW 22281# ifdef RTLD_LAZY 22282# define LT_DLLAZY_OR_NOW RTLD_LAZY 22283# else 22284# ifdef DL_LAZY 22285# define LT_DLLAZY_OR_NOW DL_LAZY 22286# else 22287# ifdef RTLD_NOW 22288# define LT_DLLAZY_OR_NOW RTLD_NOW 22289# else 22290# ifdef DL_NOW 22291# define LT_DLLAZY_OR_NOW DL_NOW 22292# else 22293# define LT_DLLAZY_OR_NOW 0 22294# endif 22295# endif 22296# endif 22297# endif 22298#endif 22299 22300/* When -fvisbility=hidden is used, assume the code has been annotated 22301 correspondingly for the symbols needed. */ 22302#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 22303int fnord () __attribute__((visibility("default"))); 22304#endif 22305 22306int fnord () { return 42; } 22307int main () 22308{ 22309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 22310 int status = $lt_dlunknown; 22311 22312 if (self) 22313 { 22314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 22315 else 22316 { 22317 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 22318 else puts (dlerror ()); 22319 } 22320 /* dlclose (self); */ 22321 } 22322 else 22323 puts (dlerror ()); 22324 22325 return status; 22326} 22327_LT_EOF 22328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 22329 (eval $ac_link) 2>&5 22330 ac_status=$? 22331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22332 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 22333 (./conftest; exit; ) >&5 2>/dev/null 22334 lt_status=$? 22335 case x$lt_status in 22336 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 22337 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 22338 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 22339 esac 22340 else : 22341 # compilation failed 22342 lt_cv_dlopen_self_static=no 22343 fi 22344fi 22345rm -fr conftest* 22346 22347 22348fi 22349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 22350$as_echo "$lt_cv_dlopen_self_static" >&6; } 22351 fi 22352 22353 CPPFLAGS="$save_CPPFLAGS" 22354 LDFLAGS="$save_LDFLAGS" 22355 LIBS="$save_LIBS" 22356 ;; 22357 esac 22358 22359 case $lt_cv_dlopen_self in 22360 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 22361 *) enable_dlopen_self=unknown ;; 22362 esac 22363 22364 case $lt_cv_dlopen_self_static in 22365 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 22366 *) enable_dlopen_self_static=unknown ;; 22367 esac 22368fi 22369 22370 22371 22372 22373 22374 22375 22376 22377 22378 22379 22380 22381 22382 22383 22384 22385 22386striplib= 22387old_striplib= 22388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 22389$as_echo_n "checking whether stripping libraries is possible... " >&6; } 22390if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 22391 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 22392 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 22393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22394$as_echo "yes" >&6; } 22395else 22396# FIXME - insert some real tests, host_os isn't really good enough 22397 case $host_os in 22398 darwin*) 22399 if test -n "$STRIP" ; then 22400 striplib="$STRIP -x" 22401 old_striplib="$STRIP -S" 22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22403$as_echo "yes" >&6; } 22404 else 22405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22406$as_echo "no" >&6; } 22407 fi 22408 ;; 22409 *) 22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22411$as_echo "no" >&6; } 22412 ;; 22413 esac 22414fi 22415 22416 22417 22418 22419 22420 22421 22422 22423 22424 22425 22426 22427 # Report which library types will actually be built 22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 22429$as_echo_n "checking if libtool supports shared libraries... " >&6; } 22430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 22431$as_echo "$can_build_shared" >&6; } 22432 22433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 22434$as_echo_n "checking whether to build shared libraries... " >&6; } 22435 test "$can_build_shared" = "no" && enable_shared=no 22436 22437 # On AIX, shared libraries and static libraries use the same namespace, and 22438 # are all built from PIC. 22439 case $host_os in 22440 aix3*) 22441 test "$enable_shared" = yes && enable_static=no 22442 if test -n "$RANLIB"; then 22443 archive_cmds="$archive_cmds~\$RANLIB \$lib" 22444 postinstall_cmds='$RANLIB $lib' 22445 fi 22446 ;; 22447 22448 aix[4-9]*) 22449 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 22450 test "$enable_shared" = yes && enable_static=no 22451 fi 22452 ;; 22453 esac 22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 22455$as_echo "$enable_shared" >&6; } 22456 22457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 22458$as_echo_n "checking whether to build static libraries... " >&6; } 22459 # Make sure either enable_shared or enable_static is yes. 22460 test "$enable_shared" = yes || enable_static=yes 22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 22462$as_echo "$enable_static" >&6; } 22463 22464 22465 22466 22467fi 22468ac_ext=c 22469ac_cpp='$CPP $CPPFLAGS' 22470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22472ac_compiler_gnu=$ac_cv_c_compiler_gnu 22473 22474CC="$lt_save_CC" 22475 22476 22477 22478 22479 22480 22481 22482 22483 22484 22485 22486 22487 22488 ac_config_commands="$ac_config_commands libtool" 22489 22490 22491 22492 22493# Only expand once: 22494 22495 22496 22497 22498 22499 22500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5 22501$as_echo_n "checking if sntp will be built... " >&6; } 22502 22503# Check whether --with-sntp was given. 22504if test "${with_sntp+set}" = set; then : 22505 withval=$with_sntp; 22506else 22507 with_sntp="${withsntp=yes}" 22508 22509fi 22510 22511case "$with_sntp" in 22512 no) 22513 SNTP= 22514 ;; 22515 *) 22516 SNTP=sntp 22517 ;; 22518esac 22519 22520 if test -n "$SNTP"; then 22521 BUILD_SNTP_TRUE= 22522 BUILD_SNTP_FALSE='#' 22523else 22524 BUILD_SNTP_TRUE='#' 22525 BUILD_SNTP_FALSE= 22526fi 22527 22528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5 22529$as_echo "$with_sntp" >&6; } 22530 22531 22532 22533case "$SNTP" in 22534 '') 22535 SNTP_DB= 22536 SNTP_DL= 22537 SNTP_DS= 22538 ;; 22539esac 22540 22541### 22542 22543# NTP has (so far) been relying on leading-edge autogen. 22544# Therefore, by default: 22545# - use the version we ship with 22546# - do not install it 22547# - build a static copy (AC_DISABLE_SHARED - done earlier) 22548case "${enable_local_libopts+set}" in 22549 set) ;; 22550 *) enable_local_libopts=yes ;; 22551esac 22552case "${enable_libopts_install+set}" in 22553 set) ;; 22554 *) enable_libopts_install=no ;; 22555esac 22556enable_nls=no 22557 22558 22559 ac_header_dirent=no 22560for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 22561 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 22562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 22563$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 22564if eval \${$as_ac_Header+:} false; then : 22565 $as_echo_n "(cached) " >&6 22566else 22567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22568/* end confdefs.h. */ 22569#include <sys/types.h> 22570#include <$ac_hdr> 22571 22572int 22573main () 22574{ 22575if ((DIR *) 0) 22576return 0; 22577 ; 22578 return 0; 22579} 22580_ACEOF 22581if ac_fn_c_try_compile "$LINENO"; then : 22582 eval "$as_ac_Header=yes" 22583else 22584 eval "$as_ac_Header=no" 22585fi 22586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22587fi 22588eval ac_res=\$$as_ac_Header 22589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22590$as_echo "$ac_res" >&6; } 22591if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22592 cat >>confdefs.h <<_ACEOF 22593#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 22594_ACEOF 22595 22596ac_header_dirent=$ac_hdr; break 22597fi 22598 22599done 22600# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 22601if test $ac_header_dirent = dirent.h; then 22602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22603$as_echo_n "checking for library containing opendir... " >&6; } 22604if ${ac_cv_search_opendir+:} false; then : 22605 $as_echo_n "(cached) " >&6 22606else 22607 ac_func_search_save_LIBS=$LIBS 22608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22609/* end confdefs.h. */ 22610 22611/* Override any GCC internal prototype to avoid an error. 22612 Use char because int might match the return type of a GCC 22613 builtin and then its argument prototype would still apply. */ 22614#ifdef __cplusplus 22615extern "C" 22616#endif 22617char opendir (); 22618int 22619main () 22620{ 22621return opendir (); 22622 ; 22623 return 0; 22624} 22625_ACEOF 22626for ac_lib in '' dir; do 22627 if test -z "$ac_lib"; then 22628 ac_res="none required" 22629 else 22630 ac_res=-l$ac_lib 22631 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22632 fi 22633 if ac_fn_c_try_link "$LINENO"; then : 22634 ac_cv_search_opendir=$ac_res 22635fi 22636rm -f core conftest.err conftest.$ac_objext \ 22637 conftest$ac_exeext 22638 if ${ac_cv_search_opendir+:} false; then : 22639 break 22640fi 22641done 22642if ${ac_cv_search_opendir+:} false; then : 22643 22644else 22645 ac_cv_search_opendir=no 22646fi 22647rm conftest.$ac_ext 22648LIBS=$ac_func_search_save_LIBS 22649fi 22650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 22651$as_echo "$ac_cv_search_opendir" >&6; } 22652ac_res=$ac_cv_search_opendir 22653if test "$ac_res" != no; then : 22654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22655 22656fi 22657 22658else 22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22660$as_echo_n "checking for library containing opendir... " >&6; } 22661if ${ac_cv_search_opendir+:} false; then : 22662 $as_echo_n "(cached) " >&6 22663else 22664 ac_func_search_save_LIBS=$LIBS 22665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22666/* end confdefs.h. */ 22667 22668/* Override any GCC internal prototype to avoid an error. 22669 Use char because int might match the return type of a GCC 22670 builtin and then its argument prototype would still apply. */ 22671#ifdef __cplusplus 22672extern "C" 22673#endif 22674char opendir (); 22675int 22676main () 22677{ 22678return opendir (); 22679 ; 22680 return 0; 22681} 22682_ACEOF 22683for ac_lib in '' x; do 22684 if test -z "$ac_lib"; then 22685 ac_res="none required" 22686 else 22687 ac_res=-l$ac_lib 22688 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22689 fi 22690 if ac_fn_c_try_link "$LINENO"; then : 22691 ac_cv_search_opendir=$ac_res 22692fi 22693rm -f core conftest.err conftest.$ac_objext \ 22694 conftest$ac_exeext 22695 if ${ac_cv_search_opendir+:} false; then : 22696 break 22697fi 22698done 22699if ${ac_cv_search_opendir+:} false; then : 22700 22701else 22702 ac_cv_search_opendir=no 22703fi 22704rm conftest.$ac_ext 22705LIBS=$ac_func_search_save_LIBS 22706fi 22707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 22708$as_echo "$ac_cv_search_opendir" >&6; } 22709ac_res=$ac_cv_search_opendir 22710if test "$ac_res" != no; then : 22711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22712 22713fi 22714 22715fi 22716 22717 22718 # ================= 22719 # AC_CHECK_HEADERS 22720 # ================= 22721 for ac_header in \ 22722 sys/mman.h sys/param.h sys/poll.h sys/procset.h \ 22723 sys/select.h sys/socket.h sys/stropts.h sys/time.h \ 22724 sys/un.h sys/wait.h dlfcn.h errno.h \ 22725 fcntl.h libgen.h libintl.h memory.h \ 22726 netinet/in.h setjmp.h stdbool.h sysexits.h \ 22727 unistd.h utime.h 22728do : 22729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22730ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22731if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22732 cat >>confdefs.h <<_ACEOF 22733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22734_ACEOF 22735 22736fi 22737 22738done 22739 22740 22741 for ac_header in stdarg.h varargs.h 22742do : 22743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22744ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22745if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22746 cat >>confdefs.h <<_ACEOF 22747#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22748_ACEOF 22749 lo_have_arg_hdr=true;break 22750else 22751 lo_have_arg_hdr=false 22752fi 22753 22754done 22755 22756 22757 for ac_header in string.h strings.h 22758do : 22759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22760ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22761if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22762 cat >>confdefs.h <<_ACEOF 22763#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22764_ACEOF 22765 lo_have_str_hdr=true;break 22766else 22767 lo_have_str_hdr=false 22768fi 22769 22770done 22771 22772 22773 for ac_header in limits.h sys/limits.h values.h 22774do : 22775 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22776ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22777if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22778 cat >>confdefs.h <<_ACEOF 22779#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22780_ACEOF 22781 lo_have_lim_hdr=true;break 22782else 22783 lo_have_lim_hdr=false 22784fi 22785 22786done 22787 22788 22789 for ac_header in inttypes.h stdint.h 22790do : 22791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22792ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22793if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22794 cat >>confdefs.h <<_ACEOF 22795#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22796_ACEOF 22797 lo_have_typ_hdr=true;break 22798else 22799 lo_have_typ_hdr=false 22800fi 22801 22802done 22803 22804 22805 # ---------------------------------------------------------------------- 22806 # check for various programs used during the build. 22807 # On OS/X, "wchar.h" needs "runetype.h" to work properly. 22808 # ---------------------------------------------------------------------- 22809 for ac_header in runetype.h wchar.h 22810do : 22811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22812ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 22813 $ac_includes_default 22814 #if HAVE_RUNETYPE_H 22815 # include <runetype.h> 22816 #endif 22817 22818" 22819if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22820 cat >>confdefs.h <<_ACEOF 22821#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22822_ACEOF 22823 22824fi 22825 22826done 22827 22828 22829 # Check whether --enable-nls was given. 22830if test "${enable_nls+set}" = set; then : 22831 enableval=$enable_nls; 22832fi 22833 22834 if test "x$enable_nls" != "xno" && \ 22835 test "X${ac_cv_header_libintl_h}" = Xyes; then : 22836 22837 22838$as_echo "#define ENABLE_NLS 1" >>confdefs.h 22839 22840fi 22841 22842 # -------------------------------------------- 22843 # Verify certain entries from AC_CHECK_HEADERS 22844 # -------------------------------------------- 22845 ${lo_have_arg_hdr} || \ 22846 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5 22847 22848 ${lo_have_str_hdr} || \ 22849 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5 22850 22851 ${lo_have_lim_hdr} || \ 22852 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5 22853 22854 ${lo_have_typ_hdr} || \ 22855 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5 22856 22857 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp 22858 do eval as_ac_var=\${ac_cv_header_${f}_h} 22859 test "X${as_ac_var}" = Xyes || { 22860 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5 22861 } 22862 done 22863 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \ 22864 echo '#include <stdint.h>' > inttypes.h 22865 22866 # ---------------------------------------------------------------------- 22867 # Checks for typedefs 22868 # ---------------------------------------------------------------------- 22869 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default" 22870if test "x$ac_cv_type_wchar_t" = xyes; then : 22871 22872cat >>confdefs.h <<_ACEOF 22873#define HAVE_WCHAR_T 1 22874_ACEOF 22875 22876 22877fi 22878 22879 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" " 22880 $ac_includes_default 22881 #if HAVE_RUNETYPE_H 22882 # include <runetype.h> 22883 #endif 22884 #if HAVE_WCHAR_H 22885 # include <wchar.h> 22886 #endif 22887 22888" 22889if test "x$ac_cv_type_wint_t" = xyes; then : 22890 22891cat >>confdefs.h <<_ACEOF 22892#define HAVE_WINT_T 1 22893_ACEOF 22894 22895 22896fi 22897 22898 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 22899if test "x$ac_cv_type_int8_t" = xyes; then : 22900 22901cat >>confdefs.h <<_ACEOF 22902#define HAVE_INT8_T 1 22903_ACEOF 22904 22905 22906fi 22907ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 22908if test "x$ac_cv_type_uint8_t" = xyes; then : 22909 22910cat >>confdefs.h <<_ACEOF 22911#define HAVE_UINT8_T 1 22912_ACEOF 22913 22914 22915fi 22916ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 22917if test "x$ac_cv_type_int16_t" = xyes; then : 22918 22919cat >>confdefs.h <<_ACEOF 22920#define HAVE_INT16_T 1 22921_ACEOF 22922 22923 22924fi 22925ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 22926if test "x$ac_cv_type_uint16_t" = xyes; then : 22927 22928cat >>confdefs.h <<_ACEOF 22929#define HAVE_UINT16_T 1 22930_ACEOF 22931 22932 22933fi 22934ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 22935if test "x$ac_cv_type_int32_t" = xyes; then : 22936 22937cat >>confdefs.h <<_ACEOF 22938#define HAVE_INT32_T 1 22939_ACEOF 22940 22941 22942fi 22943ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 22944if test "x$ac_cv_type_uint32_t" = xyes; then : 22945 22946cat >>confdefs.h <<_ACEOF 22947#define HAVE_UINT32_T 1 22948_ACEOF 22949 22950 22951fi 22952ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 22953if test "x$ac_cv_type_intptr_t" = xyes; then : 22954 22955cat >>confdefs.h <<_ACEOF 22956#define HAVE_INTPTR_T 1 22957_ACEOF 22958 22959 22960fi 22961ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 22962if test "x$ac_cv_type_uintptr_t" = xyes; then : 22963 22964cat >>confdefs.h <<_ACEOF 22965#define HAVE_UINTPTR_T 1 22966_ACEOF 22967 22968 22969fi 22970ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 22971if test "x$ac_cv_type_uint_t" = xyes; then : 22972 22973cat >>confdefs.h <<_ACEOF 22974#define HAVE_UINT_T 1 22975_ACEOF 22976 22977 22978fi 22979ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 22980if test "x$ac_cv_type_pid_t" = xyes; then : 22981 22982cat >>confdefs.h <<_ACEOF 22983#define HAVE_PID_T 1 22984_ACEOF 22985 22986 22987fi 22988ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 22989if test "x$ac_cv_type_size_t" = xyes; then : 22990 22991cat >>confdefs.h <<_ACEOF 22992#define HAVE_SIZE_T 1 22993_ACEOF 22994 22995 22996fi 22997 22998 # The cast to long int works around a bug in the HP C Compiler 22999# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23000# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23001# This bug is HP SR number 8606223364. 23002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5 23003$as_echo_n "checking size of char*... " >&6; } 23004if ${ac_cv_sizeof_charp+:} false; then : 23005 $as_echo_n "(cached) " >&6 23006else 23007 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then : 23008 23009else 23010 if test "$ac_cv_type_charp" = yes; then 23011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23013as_fn_error 77 "cannot compute sizeof (char*) 23014See \`config.log' for more details" "$LINENO" 5; } 23015 else 23016 ac_cv_sizeof_charp=0 23017 fi 23018fi 23019 23020fi 23021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5 23022$as_echo "$ac_cv_sizeof_charp" >&6; } 23023 23024 23025 23026cat >>confdefs.h <<_ACEOF 23027#define SIZEOF_CHARP $ac_cv_sizeof_charp 23028_ACEOF 23029 23030 23031 # The cast to long int works around a bug in the HP C Compiler 23032# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23033# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23034# This bug is HP SR number 8606223364. 23035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 23036$as_echo_n "checking size of int... " >&6; } 23037if ${ac_cv_sizeof_int+:} false; then : 23038 $as_echo_n "(cached) " >&6 23039else 23040 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 23041 23042else 23043 if test "$ac_cv_type_int" = yes; then 23044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23046as_fn_error 77 "cannot compute sizeof (int) 23047See \`config.log' for more details" "$LINENO" 5; } 23048 else 23049 ac_cv_sizeof_int=0 23050 fi 23051fi 23052 23053fi 23054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 23055$as_echo "$ac_cv_sizeof_int" >&6; } 23056 23057 23058 23059cat >>confdefs.h <<_ACEOF 23060#define SIZEOF_INT $ac_cv_sizeof_int 23061_ACEOF 23062 23063 23064 # The cast to long int works around a bug in the HP C Compiler 23065# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23066# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23067# This bug is HP SR number 8606223364. 23068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 23069$as_echo_n "checking size of long... " >&6; } 23070if ${ac_cv_sizeof_long+:} false; then : 23071 $as_echo_n "(cached) " >&6 23072else 23073 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 23074 23075else 23076 if test "$ac_cv_type_long" = yes; then 23077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23079as_fn_error 77 "cannot compute sizeof (long) 23080See \`config.log' for more details" "$LINENO" 5; } 23081 else 23082 ac_cv_sizeof_long=0 23083 fi 23084fi 23085 23086fi 23087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 23088$as_echo "$ac_cv_sizeof_long" >&6; } 23089 23090 23091 23092cat >>confdefs.h <<_ACEOF 23093#define SIZEOF_LONG $ac_cv_sizeof_long 23094_ACEOF 23095 23096 23097 # The cast to long int works around a bug in the HP C Compiler 23098# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23099# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23100# This bug is HP SR number 8606223364. 23101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 23102$as_echo_n "checking size of short... " >&6; } 23103if ${ac_cv_sizeof_short+:} false; then : 23104 $as_echo_n "(cached) " >&6 23105else 23106 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 23107 23108else 23109 if test "$ac_cv_type_short" = yes; then 23110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23112as_fn_error 77 "cannot compute sizeof (short) 23113See \`config.log' for more details" "$LINENO" 5; } 23114 else 23115 ac_cv_sizeof_short=0 23116 fi 23117fi 23118 23119fi 23120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 23121$as_echo "$ac_cv_sizeof_short" >&6; } 23122 23123 23124 23125cat >>confdefs.h <<_ACEOF 23126#define SIZEOF_SHORT $ac_cv_sizeof_short 23127_ACEOF 23128 23129 23130 23131 # ------------ 23132 # AC_CHECK_LIB 23133 # ------------ 23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5 23135$as_echo_n "checking for pathfind in -lgen... " >&6; } 23136if ${ac_cv_lib_gen_pathfind+:} false; then : 23137 $as_echo_n "(cached) " >&6 23138else 23139 ac_check_lib_save_LIBS=$LIBS 23140LIBS="-lgen $LIBS" 23141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23142/* end confdefs.h. */ 23143 23144/* Override any GCC internal prototype to avoid an error. 23145 Use char because int might match the return type of a GCC 23146 builtin and then its argument prototype would still apply. */ 23147#ifdef __cplusplus 23148extern "C" 23149#endif 23150char pathfind (); 23151int 23152main () 23153{ 23154return pathfind (); 23155 ; 23156 return 0; 23157} 23158_ACEOF 23159if ac_fn_c_try_link "$LINENO"; then : 23160 ac_cv_lib_gen_pathfind=yes 23161else 23162 ac_cv_lib_gen_pathfind=no 23163fi 23164rm -f core conftest.err conftest.$ac_objext \ 23165 conftest$ac_exeext conftest.$ac_ext 23166LIBS=$ac_check_lib_save_LIBS 23167fi 23168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5 23169$as_echo "$ac_cv_lib_gen_pathfind" >&6; } 23170if test "x$ac_cv_lib_gen_pathfind" = xyes; then : 23171 cat >>confdefs.h <<_ACEOF 23172#define HAVE_LIBGEN 1 23173_ACEOF 23174 23175 LIBS="-lgen $LIBS" 23176 23177fi 23178 23179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5 23180$as_echo_n "checking for gettext in -lintl... " >&6; } 23181if ${ac_cv_lib_intl_gettext+:} false; then : 23182 $as_echo_n "(cached) " >&6 23183else 23184 ac_check_lib_save_LIBS=$LIBS 23185LIBS="-lintl $LIBS" 23186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23187/* end confdefs.h. */ 23188 23189/* Override any GCC internal prototype to avoid an error. 23190 Use char because int might match the return type of a GCC 23191 builtin and then its argument prototype would still apply. */ 23192#ifdef __cplusplus 23193extern "C" 23194#endif 23195char gettext (); 23196int 23197main () 23198{ 23199return gettext (); 23200 ; 23201 return 0; 23202} 23203_ACEOF 23204if ac_fn_c_try_link "$LINENO"; then : 23205 ac_cv_lib_intl_gettext=yes 23206else 23207 ac_cv_lib_intl_gettext=no 23208fi 23209rm -f core conftest.err conftest.$ac_objext \ 23210 conftest$ac_exeext conftest.$ac_ext 23211LIBS=$ac_check_lib_save_LIBS 23212fi 23213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5 23214$as_echo "$ac_cv_lib_intl_gettext" >&6; } 23215if test "x$ac_cv_lib_intl_gettext" = xyes; then : 23216 cat >>confdefs.h <<_ACEOF 23217#define HAVE_LIBINTL 1 23218_ACEOF 23219 23220 LIBS="-lintl $LIBS" 23221 23222fi 23223 23224 for ac_func in vprintf 23225do : 23226 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 23227if test "x$ac_cv_func_vprintf" = xyes; then : 23228 cat >>confdefs.h <<_ACEOF 23229#define HAVE_VPRINTF 1 23230_ACEOF 23231 23232ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 23233if test "x$ac_cv_func__doprnt" = xyes; then : 23234 23235$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 23236 23237fi 23238 23239fi 23240done 23241 23242 23243 for ac_header in vfork.h 23244do : 23245 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 23246if test "x$ac_cv_header_vfork_h" = xyes; then : 23247 cat >>confdefs.h <<_ACEOF 23248#define HAVE_VFORK_H 1 23249_ACEOF 23250 23251fi 23252 23253done 23254 23255for ac_func in fork vfork 23256do : 23257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23258ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23259if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 23260 cat >>confdefs.h <<_ACEOF 23261#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23262_ACEOF 23263 23264fi 23265done 23266 23267if test "x$ac_cv_func_fork" = xyes; then 23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 23269$as_echo_n "checking for working fork... " >&6; } 23270if ${ac_cv_func_fork_works+:} false; then : 23271 $as_echo_n "(cached) " >&6 23272else 23273 if test "$cross_compiling" = yes; then : 23274 ac_cv_func_fork_works=cross 23275else 23276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23277/* end confdefs.h. */ 23278$ac_includes_default 23279int 23280main () 23281{ 23282 23283 /* By Ruediger Kuhlmann. */ 23284 return fork () < 0; 23285 23286 ; 23287 return 0; 23288} 23289_ACEOF 23290if ac_fn_c_try_run "$LINENO"; then : 23291 ac_cv_func_fork_works=yes 23292else 23293 ac_cv_func_fork_works=no 23294fi 23295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23296 conftest.$ac_objext conftest.beam conftest.$ac_ext 23297fi 23298 23299fi 23300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 23301$as_echo "$ac_cv_func_fork_works" >&6; } 23302 23303else 23304 ac_cv_func_fork_works=$ac_cv_func_fork 23305fi 23306if test "x$ac_cv_func_fork_works" = xcross; then 23307 case $host in 23308 *-*-amigaos* | *-*-msdosdjgpp*) 23309 # Override, as these systems have only a dummy fork() stub 23310 ac_cv_func_fork_works=no 23311 ;; 23312 *) 23313 ac_cv_func_fork_works=yes 23314 ;; 23315 esac 23316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 23317$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 23318fi 23319ac_cv_func_vfork_works=$ac_cv_func_vfork 23320if test "x$ac_cv_func_vfork" = xyes; then 23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 23322$as_echo_n "checking for working vfork... " >&6; } 23323if ${ac_cv_func_vfork_works+:} false; then : 23324 $as_echo_n "(cached) " >&6 23325else 23326 if test "$cross_compiling" = yes; then : 23327 ac_cv_func_vfork_works=cross 23328else 23329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23330/* end confdefs.h. */ 23331/* Thanks to Paul Eggert for this test. */ 23332$ac_includes_default 23333#include <sys/wait.h> 23334#ifdef HAVE_VFORK_H 23335# include <vfork.h> 23336#endif 23337/* On some sparc systems, changes by the child to local and incoming 23338 argument registers are propagated back to the parent. The compiler 23339 is told about this with #include <vfork.h>, but some compilers 23340 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 23341 static variable whose address is put into a register that is 23342 clobbered by the vfork. */ 23343static void 23344#ifdef __cplusplus 23345sparc_address_test (int arg) 23346# else 23347sparc_address_test (arg) int arg; 23348#endif 23349{ 23350 static pid_t child; 23351 if (!child) { 23352 child = vfork (); 23353 if (child < 0) { 23354 perror ("vfork"); 23355 _exit(2); 23356 } 23357 if (!child) { 23358 arg = getpid(); 23359 write(-1, "", 0); 23360 _exit (arg); 23361 } 23362 } 23363} 23364 23365int 23366main () 23367{ 23368 pid_t parent = getpid (); 23369 pid_t child; 23370 23371 sparc_address_test (0); 23372 23373 child = vfork (); 23374 23375 if (child == 0) { 23376 /* Here is another test for sparc vfork register problems. This 23377 test uses lots of local variables, at least as many local 23378 variables as main has allocated so far including compiler 23379 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 23380 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 23381 reuse the register of parent for one of the local variables, 23382 since it will think that parent can't possibly be used any more 23383 in this routine. Assigning to the local variable will thus 23384 munge parent in the parent process. */ 23385 pid_t 23386 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 23387 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 23388 /* Convince the compiler that p..p7 are live; otherwise, it might 23389 use the same hardware register for all 8 local variables. */ 23390 if (p != p1 || p != p2 || p != p3 || p != p4 23391 || p != p5 || p != p6 || p != p7) 23392 _exit(1); 23393 23394 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 23395 from child file descriptors. If the child closes a descriptor 23396 before it execs or exits, this munges the parent's descriptor 23397 as well. Test for this by closing stdout in the child. */ 23398 _exit(close(fileno(stdout)) != 0); 23399 } else { 23400 int status; 23401 struct stat st; 23402 23403 while (wait(&status) != child) 23404 ; 23405 return ( 23406 /* Was there some problem with vforking? */ 23407 child < 0 23408 23409 /* Did the child fail? (This shouldn't happen.) */ 23410 || status 23411 23412 /* Did the vfork/compiler bug occur? */ 23413 || parent != getpid() 23414 23415 /* Did the file descriptor bug occur? */ 23416 || fstat(fileno(stdout), &st) != 0 23417 ); 23418 } 23419} 23420_ACEOF 23421if ac_fn_c_try_run "$LINENO"; then : 23422 ac_cv_func_vfork_works=yes 23423else 23424 ac_cv_func_vfork_works=no 23425fi 23426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23427 conftest.$ac_objext conftest.beam conftest.$ac_ext 23428fi 23429 23430fi 23431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 23432$as_echo "$ac_cv_func_vfork_works" >&6; } 23433 23434fi; 23435if test "x$ac_cv_func_fork_works" = xcross; then 23436 ac_cv_func_vfork_works=$ac_cv_func_vfork 23437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 23438$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 23439fi 23440 23441if test "x$ac_cv_func_vfork_works" = xyes; then 23442 23443$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 23444 23445else 23446 23447$as_echo "#define vfork fork" >>confdefs.h 23448 23449fi 23450if test "x$ac_cv_func_fork_works" = xyes; then 23451 23452$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 23453 23454fi 23455 23456 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \ 23457 strrchr strsignal fchmod fstat chmod 23458do : 23459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23460ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23461if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 23462 cat >>confdefs.h <<_ACEOF 23463#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23464_ACEOF 23465 23466fi 23467done 23468 23469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 23470$as_echo_n "checking for a sed that does not truncate output... " >&6; } 23471if ${ac_cv_path_SED+:} false; then : 23472 $as_echo_n "(cached) " >&6 23473else 23474 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 23475 for ac_i in 1 2 3 4 5 6 7; do 23476 ac_script="$ac_script$as_nl$ac_script" 23477 done 23478 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 23479 { ac_script=; unset ac_script;} 23480 if test -z "$SED"; then 23481 ac_path_SED_found=false 23482 # Loop through the user's path and test for each of PROGNAME-LIST 23483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23484for as_dir in $PATH 23485do 23486 IFS=$as_save_IFS 23487 test -z "$as_dir" && as_dir=. 23488 for ac_prog in sed gsed; do 23489 for ac_exec_ext in '' $ac_executable_extensions; do 23490 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 23491 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 23492# Check for GNU ac_path_SED and select it if it is found. 23493 # Check for GNU $ac_path_SED 23494case `"$ac_path_SED" --version 2>&1` in 23495*GNU*) 23496 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 23497*) 23498 ac_count=0 23499 $as_echo_n 0123456789 >"conftest.in" 23500 while : 23501 do 23502 cat "conftest.in" "conftest.in" >"conftest.tmp" 23503 mv "conftest.tmp" "conftest.in" 23504 cp "conftest.in" "conftest.nl" 23505 $as_echo '' >> "conftest.nl" 23506 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 23507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 23508 as_fn_arith $ac_count + 1 && ac_count=$as_val 23509 if test $ac_count -gt ${ac_path_SED_max-0}; then 23510 # Best one so far, save it but keep looking for a better one 23511 ac_cv_path_SED="$ac_path_SED" 23512 ac_path_SED_max=$ac_count 23513 fi 23514 # 10*(2^10) chars as input seems more than enough 23515 test $ac_count -gt 10 && break 23516 done 23517 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 23518esac 23519 23520 $ac_path_SED_found && break 3 23521 done 23522 done 23523 done 23524IFS=$as_save_IFS 23525 if test -z "$ac_cv_path_SED"; then 23526 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 23527 fi 23528else 23529 ac_cv_path_SED=$SED 23530fi 23531 23532fi 23533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 23534$as_echo "$ac_cv_path_SED" >&6; } 23535 SED="$ac_cv_path_SED" 23536 rm -f conftest.sed 23537 23538 while : 23539 do 23540 POSIX_SHELL=`which bash` 23541 test -x "$POSIX_SHELL" && break 23542 POSIX_SHELL=`which dash` 23543 test -x "$POSIX_SHELL" && break 23544 POSIX_SHELL=/usr/xpg4/bin/sh 23545 test -x "$POSIX_SHELL" && break 23546 POSIX_SHELL=`/bin/sh -c ' 23547 exec 2>/dev/null 23548 if ! true ; then exit 1 ; fi 23549 echo /bin/sh'` 23550 test -x "$POSIX_SHELL" && break 23551 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5 23552 done 23553 23554cat >>confdefs.h <<_ACEOF 23555#define POSIX_SHELL "${POSIX_SHELL}" 23556_ACEOF 23557 23558 23559 23560 23561 23562 LIBOPTS_BUILD_BLOCKED='' 23563 23564 23565 NEED_LIBOPTS_DIR='' 23566 23567 # Check whether --enable-local-libopts was given. 23568if test "${enable_local_libopts+set}" = set; then : 23569 enableval=$enable_local_libopts; 23570 if test x$enableval = xyes ; then 23571 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5 23572$as_echo "$as_me: Using supplied libopts tearoff" >&6;} 23573 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 23574 NEED_LIBOPTS_DIR=true 23575 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 23576 fi 23577fi 23578 23579 23580 # Check whether --enable-libopts-install was given. 23581if test "${enable_libopts_install+set}" = set; then : 23582 enableval=$enable_libopts_install; 23583fi 23584 23585 if test "X${enable_libopts_install}" = Xyes; then 23586 INSTALL_LIBOPTS_TRUE= 23587 INSTALL_LIBOPTS_FALSE='#' 23588else 23589 INSTALL_LIBOPTS_TRUE='#' 23590 INSTALL_LIBOPTS_FALSE= 23591fi 23592 23593 23594 if test -z "${NEED_LIBOPTS_DIR}" ; then 23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5 23596$as_echo_n "checking whether autoopts-config can be found... " >&6; } 23597 23598# Check whether --with-autoopts-config was given. 23599if test "${with_autoopts_config+set}" = set; then : 23600 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config} 23601else 23602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5 23603$as_echo_n "checking whether autoopts-config is specified... " >&6; } 23604if ${lo_cv_with_autoopts_config+:} false; then : 23605 $as_echo_n "(cached) " >&6 23606else 23607 if autoopts-config --help 2>/dev/null 1>&2 23608 then lo_cv_with_autoopts_config=autoopts-config 23609 elif libopts-config --help 2>/dev/null 1>&2 23610 then lo_cv_with_autoopts_config=libopts-config 23611 else lo_cv_with_autoopts_config=no ; fi 23612fi 23613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5 23614$as_echo "$lo_cv_with_autoopts_config" >&6; } 23615 23616fi 23617 # end of AC_ARG_WITH 23618 23619 if ${lo_cv_test_autoopts+:} false; then : 23620 $as_echo_n "(cached) " >&6 23621else 23622 23623 if test -z "${lo_cv_with_autoopts_config}" \ 23624 -o X"${lo_cv_with_autoopts_config}" = Xno 23625 then 23626 if autoopts-config --help 2>/dev/null 1>&2 23627 then lo_cv_with_autoopts_config=autoopts-config 23628 elif libopts-config --help 2>/dev/null 1>&2 23629 then lo_cv_with_autoopts_config=libopts-config 23630 else lo_cv_with_autoopts_config=false ; fi 23631 fi 23632 lo_cv_test_autoopts=` 23633 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null 23634 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}" 23635 then lo_cv_test_autoopts=no ; fi 23636 23637fi 23638 # end of CACHE_VAL 23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5 23640$as_echo "${lo_cv_test_autoopts}" >&6; } 23641 23642 if test "X${lo_cv_test_autoopts}" != Xno 23643 then 23644 LIBOPTS_LDADD="${lo_cv_test_autoopts}" 23645 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`" 23646 else 23647 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 23648 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 23649 NEED_LIBOPTS_DIR=true 23650 fi 23651 fi # end of if test -z "${NEED_LIBOPTS_DIR}" 23652 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then 23653 NEED_LIBOPTS_DIR='' 23654 fi 23655 if test -n "${NEED_LIBOPTS_DIR}"; then 23656 NEED_LIBOPTS_TRUE= 23657 NEED_LIBOPTS_FALSE='#' 23658else 23659 NEED_LIBOPTS_TRUE='#' 23660 NEED_LIBOPTS_FALSE= 23661fi 23662 23663 23664 23665 LIBOPTS_DIR=libopts 23666 23667 23668# end of AC_DEFUN of LIBOPTS_CHECK_COMMON 23669 23670 23671 if test -z "$NEED_LIBOPTS_TRUE"; then : 23672 23673 23674 23675 # Check to see if a reg expr header is specified. 23676 23677 23678# Check whether --with-regex-header was given. 23679if test "${with_regex_header+set}" = set; then : 23680 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header} 23681else 23682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5 23683$as_echo_n "checking whether a reg expr header is specified... " >&6; } 23684if ${libopts_cv_with_regex_header+:} false; then : 23685 $as_echo_n "(cached) " >&6 23686else 23687 libopts_cv_with_regex_header=no 23688fi 23689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5 23690$as_echo "$libopts_cv_with_regex_header" >&6; } 23691 23692fi 23693 # end of AC_ARG_WITH 23694 if test "X${libopts_cv_with_regex_header}" != Xno 23695 then 23696 cat >>confdefs.h <<_ACEOF 23697#define REGEX_HEADER <${libopts_cv_with_regex_header}> 23698_ACEOF 23699 23700 else 23701 23702$as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h 23703 23704 fi 23705 23706 23707 23708 # Check to see if a working libregex can be found. 23709 23710 23711# Check whether --with-libregex was given. 23712if test "${with_libregex+set}" = set; then : 23713 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex} 23714else 23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5 23716$as_echo_n "checking whether with-libregex was specified... " >&6; } 23717if ${libopts_cv_with_libregex_root+:} false; then : 23718 $as_echo_n "(cached) " >&6 23719else 23720 libopts_cv_with_libregex_root=no 23721fi 23722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5 23723$as_echo "$libopts_cv_with_libregex_root" >&6; } 23724 23725fi 23726 # end of AC_ARG_WITH libregex 23727 23728 if test "${with_libregex+set}" = set && \ 23729 test "X${withval}" = Xno 23730 then ## disabled by request 23731 libopts_cv_with_libregex_root=no 23732 libopts_cv_with_libregex_cflags=no 23733 libopts_cv_with_libregex_libs=no 23734 else 23735 23736 23737# Check whether --with-libregex-cflags was given. 23738if test "${with_libregex_cflags+set}" = set; then : 23739 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags} 23740else 23741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5 23742$as_echo_n "checking whether with-libregex-cflags was specified... " >&6; } 23743if ${libopts_cv_with_libregex_cflags+:} false; then : 23744 $as_echo_n "(cached) " >&6 23745else 23746 libopts_cv_with_libregex_cflags=no 23747fi 23748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5 23749$as_echo "$libopts_cv_with_libregex_cflags" >&6; } 23750 23751fi 23752 # end of AC_ARG_WITH libregex-cflags 23753 23754 23755# Check whether --with-libregex-libs was given. 23756if test "${with_libregex_libs+set}" = set; then : 23757 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs} 23758else 23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5 23760$as_echo_n "checking whether with-libregex-libs was specified... " >&6; } 23761if ${libopts_cv_with_libregex_libs+:} false; then : 23762 $as_echo_n "(cached) " >&6 23763else 23764 libopts_cv_with_libregex_libs=no 23765fi 23766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5 23767$as_echo "$libopts_cv_with_libregex_libs" >&6; } 23768 23769fi 23770 # end of AC_ARG_WITH libregex-libs 23771 23772 case "X${libopts_cv_with_libregex_cflags}" in 23773 Xyes|Xno|X ) 23774 case "X${libopts_cv_with_libregex_root}" in 23775 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;; 23776 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;; 23777 esac 23778 esac 23779 case "X${libopts_cv_with_libregex_libs}" in 23780 Xyes|Xno|X ) 23781 case "X${libopts_cv_with_libregex_root}" in 23782 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;; 23783 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";; 23784 esac 23785 esac 23786 libopts_save_CPPFLAGS="${CPPFLAGS}" 23787 libopts_save_LIBS="${LIBS}" 23788 case "X${libopts_cv_with_libregex_cflags}" in 23789 Xyes|Xno|X ) 23790 libopts_cv_with_libregex_cflags="" ;; 23791 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;; 23792 esac 23793 case "X${libopts_cv_with_libregex_libs}" in 23794 Xyes|Xno|X ) 23795 libopts_cv_with_libregex_libs="" ;; 23796 * ) 23797 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;; 23798 esac 23799 LIBREGEX_CFLAGS="" 23800 LIBREGEX_LIBS="" 23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5 23802$as_echo_n "checking whether libregex functions properly... " >&6; } 23803 if ${libopts_cv_with_libregex+:} false; then : 23804 $as_echo_n "(cached) " >&6 23805else 23806 23807 if test "$cross_compiling" = yes; then : 23808 libopts_cv_with_libregex=no 23809else 23810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23811/* end confdefs.h. */ 23812#include <stdio.h> 23813#include <stdlib.h> 23814#include <sys/types.h> 23815#include REGEX_HEADER 23816static regex_t re; 23817void comp_re( char const* pzPat ) { 23818 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE ); 23819 if (res == 0) return; 23820 exit( res ); } 23821int main() { 23822 regmatch_t m[2]; 23823 comp_re( "^.*\$" ); 23824 comp_re( "()|no.*" ); 23825 comp_re( "." ); 23826 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1; 23827 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) { 23828 fputs( "error: regex -->.<-- did not match\n", stderr ); 23829 return 1; 23830 } 23831 return 0; } 23832_ACEOF 23833if ac_fn_c_try_run "$LINENO"; then : 23834 libopts_cv_with_libregex=yes 23835else 23836 libopts_cv_with_libregex=no 23837fi 23838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23839 conftest.$ac_objext conftest.beam conftest.$ac_ext 23840fi 23841 # end of AC_RUN_IFELSE 23842 23843fi 23844 # end of AC_CACHE_VAL for libopts_cv_with_libregex 23845 fi ## disabled by request 23846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5 23847$as_echo "${libopts_cv_with_libregex}" >&6; } 23848 if test "X${libopts_cv_with_libregex}" != Xno 23849 then 23850 23851$as_echo "#define WITH_LIBREGEX 1" >>confdefs.h 23852 23853 else 23854 CPPFLAGS="${libopts_save_CPPFLAGS}" 23855 LIBS="${libopts_save_LIBS}" 23856 libopts_cv_with_libregex_root=no 23857libopts_cv_with_libregex_cflags=no 23858libopts_cv_with_libregex_libs=no 23859libopts_cv_with_libregex=no 23860 fi 23861 23862 23863 23864 # Check to see if pathfind(3) works. 23865 23866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5 23867$as_echo_n "checking whether pathfind(3) works... " >&6; } 23868 if ${libopts_cv_run_pathfind+:} false; then : 23869 $as_echo_n "(cached) " >&6 23870else 23871 23872 if test "$cross_compiling" = yes; then : 23873 libopts_cv_run_pathfind=no 23874 23875else 23876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23877/* end confdefs.h. */ 23878#include <string.h> 23879#include <stdlib.h> 23880int main (int argc, char** argv) { 23881 char* pz = pathfind( getenv( "PATH" ), "sh", "x" ); 23882 return (pz == 0) ? 1 : 0; 23883} 23884_ACEOF 23885if ac_fn_c_try_run "$LINENO"; then : 23886 libopts_cv_run_pathfind=yes 23887else 23888 libopts_cv_run_pathfind=no 23889fi 23890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23891 conftest.$ac_objext conftest.beam conftest.$ac_ext 23892fi 23893 # end of RUN_IFELSE 23894 23895fi 23896 # end of AC_CACHE_VAL for libopts_cv_run_pathfind 23897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5 23898$as_echo "${libopts_cv_run_pathfind}" >&6; } 23899 if test "X${libopts_cv_run_pathfind}" != Xno 23900 then 23901 23902$as_echo "#define HAVE_PATHFIND 1" >>confdefs.h 23903 23904 fi 23905 23906 23907 23908 # Check to see if /dev/zero is readable device. 23909 23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5 23911$as_echo_n "checking whether /dev/zero is readable device... " >&6; } 23912 if ${libopts_cv_test_dev_zero+:} false; then : 23913 $as_echo_n "(cached) " >&6 23914else 23915 23916 libopts_cv_test_dev_zero=`exec 2> /dev/null 23917dzero=\`ls -lL /dev/zero | egrep ^c......r\` 23918test -z "${dzero}" && exit 1 23919echo ${dzero}` 23920 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero" 23921 then libopts_cv_test_dev_zero=no 23922 fi 23923 23924fi 23925 # end of CACHE_VAL of libopts_cv_test_dev_zero 23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5 23927$as_echo "${libopts_cv_test_dev_zero}" >&6; } 23928 if test "X${libopts_cv_test_dev_zero}" != Xno 23929 then 23930 23931$as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h 23932 23933 fi 23934 23935 23936 23937 # Check to see if we have a functional realpath(3C). 23938 23939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5 23940$as_echo_n "checking whether we have a functional realpath(3C)... " >&6; } 23941 if ${libopts_cv_run_realpath+:} false; then : 23942 $as_echo_n "(cached) " >&6 23943else 23944 23945 if test "$cross_compiling" = yes; then : 23946 libopts_cv_run_realpath=no 23947 23948else 23949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23950/* end confdefs.h. */ 23951#include <limits.h> 23952#include <stdlib.h> 23953int main (int argc, char** argv) { 23954#ifndef PATH_MAX 23955choke me!! 23956#else 23957 char zPath[PATH_MAX+1]; 23958#endif 23959 char *pz = realpath(argv[0], zPath); 23960 return (pz == zPath) ? 0 : 1; 23961} 23962_ACEOF 23963if ac_fn_c_try_run "$LINENO"; then : 23964 libopts_cv_run_realpath=yes 23965else 23966 libopts_cv_run_realpath=no 23967fi 23968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23969 conftest.$ac_objext conftest.beam conftest.$ac_ext 23970fi 23971 # end of RUN_IFELSE 23972 23973fi 23974 # end of AC_CACHE_VAL for libopts_cv_run_realpath 23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5 23976$as_echo "${libopts_cv_run_realpath}" >&6; } 23977 if test "X${libopts_cv_run_realpath}" != Xno 23978 then 23979 23980$as_echo "#define HAVE_REALPATH 1" >>confdefs.h 23981 23982 fi 23983 23984 23985 23986 # Check to see if strftime() works. 23987 23988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5 23989$as_echo_n "checking whether strftime() works... " >&6; } 23990 if ${libopts_cv_run_strftime+:} false; then : 23991 $as_echo_n "(cached) " >&6 23992else 23993 23994 if test "$cross_compiling" = yes; then : 23995 libopts_cv_run_strftime=no 23996 23997else 23998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23999/* end confdefs.h. */ 24000#include <time.h> 24001#include <string.h> 24002char t_buf[ 64 ]; 24003int main() { 24004 static char const z[] = "Thursday Aug 28 240"; 24005 struct tm tm; 24006 tm.tm_sec = 36; /* seconds after the minute [0, 61] */ 24007 tm.tm_min = 44; /* minutes after the hour [0, 59] */ 24008 tm.tm_hour = 12; /* hour since midnight [0, 23] */ 24009 tm.tm_mday = 28; /* day of the month [1, 31] */ 24010 tm.tm_mon = 7; /* months since January [0, 11] */ 24011 tm.tm_year = 86; /* years since 1900 */ 24012 tm.tm_wday = 4; /* days since Sunday [0, 6] */ 24013 tm.tm_yday = 239; /* days since January 1 [0, 365] */ 24014 tm.tm_isdst = 1; /* flag for daylight savings time */ 24015 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm ); 24016 return (strcmp( t_buf, z ) != 0); } 24017_ACEOF 24018if ac_fn_c_try_run "$LINENO"; then : 24019 libopts_cv_run_strftime=yes 24020else 24021 libopts_cv_run_strftime=no 24022fi 24023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24024 conftest.$ac_objext conftest.beam conftest.$ac_ext 24025fi 24026 # end of RUN_IFELSE 24027 24028fi 24029 # end of AC_CACHE_VAL for libopts_cv_run_strftime 24030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5 24031$as_echo "${libopts_cv_run_strftime}" >&6; } 24032 if test "X${libopts_cv_run_strftime}" != Xno 24033 then 24034 24035$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 24036 24037 fi 24038 24039 24040 24041 # Check to see if fopen accepts "b" mode. 24042 24043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5 24044$as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; } 24045 if ${libopts_cv_run_fopen_binary+:} false; then : 24046 $as_echo_n "(cached) " >&6 24047else 24048 24049 if test "$cross_compiling" = yes; then : 24050 libopts_cv_run_fopen_binary=no 24051 24052else 24053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24054/* end confdefs.h. */ 24055#include <stdio.h> 24056int main (int argc, char** argv) { 24057FILE* fp = fopen("conftest.$ac_ext", "rb"); 24058return (fp == NULL) ? 1 : fclose(fp); } 24059_ACEOF 24060if ac_fn_c_try_run "$LINENO"; then : 24061 libopts_cv_run_fopen_binary=yes 24062else 24063 libopts_cv_run_fopen_binary=no 24064fi 24065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24066 conftest.$ac_objext conftest.beam conftest.$ac_ext 24067fi 24068 # end of RUN_IFELSE 24069 24070fi 24071 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary 24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5 24073$as_echo "${libopts_cv_run_fopen_binary}" >&6; } 24074 if test "X${libopts_cv_run_fopen_binary}" != Xno 24075 then 24076 24077$as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h 24078 24079 else 24080 24081$as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h 24082 24083 fi 24084 24085 24086 24087 # Check to see if fopen accepts "t" mode. 24088 24089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5 24090$as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; } 24091 if ${libopts_cv_run_fopen_text+:} false; then : 24092 $as_echo_n "(cached) " >&6 24093else 24094 24095 if test "$cross_compiling" = yes; then : 24096 libopts_cv_run_fopen_text=no 24097 24098else 24099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24100/* end confdefs.h. */ 24101#include <stdio.h> 24102int main (int argc, char** argv) { 24103FILE* fp = fopen("conftest.$ac_ext", "rt"); 24104return (fp == NULL) ? 1 : fclose(fp); } 24105_ACEOF 24106if ac_fn_c_try_run "$LINENO"; then : 24107 libopts_cv_run_fopen_text=yes 24108else 24109 libopts_cv_run_fopen_text=no 24110fi 24111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24112 conftest.$ac_objext conftest.beam conftest.$ac_ext 24113fi 24114 # end of RUN_IFELSE 24115 24116fi 24117 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text 24118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5 24119$as_echo "${libopts_cv_run_fopen_text}" >&6; } 24120 if test "X${libopts_cv_run_fopen_text}" != Xno 24121 then 24122 24123$as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h 24124 24125 else 24126 24127$as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h 24128 24129 fi 24130 24131 24132 24133 # Check to see if not wanting optional option args. 24134 24135 # Check whether --enable-optional-args was given. 24136if test "${enable_optional_args+set}" = set; then : 24137 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args} 24138else 24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5 24140$as_echo_n "checking whether not wanting optional option args... " >&6; } 24141if ${libopts_cv_enable_optional_args+:} false; then : 24142 $as_echo_n "(cached) " >&6 24143else 24144 libopts_cv_enable_optional_args=yes 24145fi 24146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5 24147$as_echo "$libopts_cv_enable_optional_args" >&6; } 24148 24149fi 24150 # end of AC_ARG_ENABLE 24151 if test "X${libopts_cv_enable_optional_args}" = Xno 24152 then 24153 24154$as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h 24155 24156 fi 24157 24158 24159 24160 24161 ac_config_files="$ac_config_files libopts/Makefile" 24162 24163 24164 fi # end of AC_DEFUN of LIBOPTS_CHECK 24165 24166 24167 24168 24169ntp_pkgconfig_min_version='0.15.0' 24170if test -n "$ac_tool_prefix"; then 24171 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24172set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24174$as_echo_n "checking for $ac_word... " >&6; } 24175if ${ac_cv_path_PKG_CONFIG+:} false; then : 24176 $as_echo_n "(cached) " >&6 24177else 24178 case $PKG_CONFIG in 24179 [\\/]* | ?:[\\/]*) 24180 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24181 ;; 24182 *) 24183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24184for as_dir in $PATH 24185do 24186 IFS=$as_save_IFS 24187 test -z "$as_dir" && as_dir=. 24188 for ac_exec_ext in '' $ac_executable_extensions; do 24189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24190 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24192 break 2 24193 fi 24194done 24195 done 24196IFS=$as_save_IFS 24197 24198 ;; 24199esac 24200fi 24201PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24202if test -n "$PKG_CONFIG"; then 24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24204$as_echo "$PKG_CONFIG" >&6; } 24205else 24206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24207$as_echo "no" >&6; } 24208fi 24209 24210 24211fi 24212if test -z "$ac_cv_path_PKG_CONFIG"; then 24213 ac_pt_PKG_CONFIG=$PKG_CONFIG 24214 # Extract the first word of "pkg-config", so it can be a program name with args. 24215set dummy pkg-config; ac_word=$2 24216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24217$as_echo_n "checking for $ac_word... " >&6; } 24218if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24219 $as_echo_n "(cached) " >&6 24220else 24221 case $ac_pt_PKG_CONFIG in 24222 [\\/]* | ?:[\\/]*) 24223 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24224 ;; 24225 *) 24226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24227for as_dir in $PATH 24228do 24229 IFS=$as_save_IFS 24230 test -z "$as_dir" && as_dir=. 24231 for ac_exec_ext in '' $ac_executable_extensions; do 24232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24233 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24235 break 2 24236 fi 24237done 24238 done 24239IFS=$as_save_IFS 24240 24241 ;; 24242esac 24243fi 24244ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24245if test -n "$ac_pt_PKG_CONFIG"; then 24246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24247$as_echo "$ac_pt_PKG_CONFIG" >&6; } 24248else 24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24250$as_echo "no" >&6; } 24251fi 24252 24253 if test "x$ac_pt_PKG_CONFIG" = x; then 24254 PKG_CONFIG="" 24255 else 24256 case $cross_compiling:$ac_tool_warned in 24257yes:) 24258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24260ac_tool_warned=yes ;; 24261esac 24262 PKG_CONFIG=$ac_pt_PKG_CONFIG 24263 fi 24264else 24265 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24266fi 24267 24268{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;} 24269{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 24270 24271case "$PKG_CONFIG" in 24272 /*) 24273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5 24274$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; } 24275 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24277$as_echo "yes" >&6; } 24278 else 24279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24280$as_echo "no" >&6; } 24281 PKG_CONFIG="" 24282 fi 24283 ;; 24284esac 24285 24286 24287 24288 24289# Check whether --enable-local-libevent was given. 24290if test "${enable_local_libevent+set}" = set; then : 24291 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval 24292else 24293 ntp_use_local_libevent=${ntp_use_local_libevent-detect} 24294 24295fi 24296 24297 24298 24299 24300 24301 24302 if test -z "$BUILD_SNTP_TRUE"; then : 24303 24304 24305 24306 24307 24308ntp_libevent_min_version=2.0.9 24309ntp_libevent_tearoff=libevent 24310 24311 24312 24313 24314case "$ntp_use_local_libevent" in 24315 yes) 24316 ;; 24317 no) 24318 ;; 24319 *) # If we have (a good enough) pkg-config, see if it can find libevent 24320 case "$PKG_CONFIG" in 24321 /*) 24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent 2.0.9 or later is installed" >&5 24323$as_echo_n "checking if libevent 2.0.9 or later is installed... " >&6; } 24324 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent 24325 then 24326 ntp_use_local_libevent=no 24327 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5 24328$as_echo "$as_me: Using the installed libevent" >&6;} 24329 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent` 24330 LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'` 24331 case "$LIBISC_PTHREADS_NOTHREADS" in 24332 pthreads) 24333 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads" 24334 esac 24335 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core" 24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24337$as_echo "yes" >&6; } 24338 else 24339 ntp_use_local_libevent=yes 24340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24341$as_echo "no" >&6; } 24342 fi 24343 ;; 24344 *) 24345 ntp_use_local_libevent=yes 24346 ;; 24347 esac 24348 ;; 24349esac 24350 24351case "$ntp_use_local_libevent" in 24352 yes) 24353 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5 24354$as_echo "$as_me: Using libevent tearoff" >&6;} 24355 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include" 24356 case "$LIBISC_PTHREADS_NOTHREADS" in 24357 pthreads) 24358 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 24359 ;; 24360 *) 24361 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 24362 esac 24363esac 24364 24365 if test "x$ntp_use_local_libevent" = "xyes"; then 24366 BUILD_LIBEVENT_TRUE= 24367 BUILD_LIBEVENT_FALSE='#' 24368else 24369 BUILD_LIBEVENT_TRUE='#' 24370 BUILD_LIBEVENT_FALSE= 24371fi 24372 24373 24374 24375 24376case "$ntp_libevent_tearoff" in 24377 libevent) 24378 ;; 24379 *) 24380 as_fn_error $? "ntp_libevent.m4 dir must be libevent, not $ntp_libevent_tearoff" "$LINENO" 5 24381 ;; 24382esac 24383 24384case "$ntp_use_local_libevent" in 24385 yes) 24386 ac_configure_args=" --disable-openssl${ac_configure_args}" 24387 ac_configure_args=" --disable-shared${ac_configure_args}" 24388 ac_configure_args=" --disable-libevent-regress${ac_configure_args}" 24389 ac_configure_args=" --disable-libevent-install${ac_configure_args}" 24390 ac_configure_args=" --enable-silent-rules${ac_configure_args}" 24391 ac_configure_args=" --enable-function-sections${ac_configure_args}" 24392 subdirs="$subdirs libevent" 24393 24394 ;; 24395 *) 24396 NTP_FORCE_LIBEVENT_DIST=libevent 24397 ;; 24398esac 24399 24400 24401 24402 else 24403 24404 24405ntp_libevent_min_version=2.0.9 24406ntp_libevent_tearoff=libevent 24407 24408 24409 24410 24411case "$ntp_use_local_libevent" in 24412 yes) 24413 ;; 24414 no) 24415 ;; 24416 *) # If we have (a good enough) pkg-config, see if it can find libevent 24417 case "$PKG_CONFIG" in 24418 /*) 24419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent 2.0.9 or later is installed" >&5 24420$as_echo_n "checking if libevent 2.0.9 or later is installed... " >&6; } 24421 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent 24422 then 24423 ntp_use_local_libevent=no 24424 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5 24425$as_echo "$as_me: Using the installed libevent" >&6;} 24426 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent` 24427 LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'` 24428 case "$LIBISC_PTHREADS_NOTHREADS" in 24429 pthreads) 24430 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads" 24431 esac 24432 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core" 24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24434$as_echo "yes" >&6; } 24435 else 24436 ntp_use_local_libevent=yes 24437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24438$as_echo "no" >&6; } 24439 fi 24440 ;; 24441 *) 24442 ntp_use_local_libevent=yes 24443 ;; 24444 esac 24445 ;; 24446esac 24447 24448case "$ntp_use_local_libevent" in 24449 yes) 24450 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5 24451$as_echo "$as_me: Using libevent tearoff" >&6;} 24452 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include" 24453 case "$LIBISC_PTHREADS_NOTHREADS" in 24454 pthreads) 24455 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 24456 ;; 24457 *) 24458 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 24459 esac 24460esac 24461 24462 if test "x$ntp_use_local_libevent" = "xyes"; then 24463 BUILD_LIBEVENT_TRUE= 24464 BUILD_LIBEVENT_FALSE='#' 24465else 24466 BUILD_LIBEVENT_TRUE='#' 24467 BUILD_LIBEVENT_FALSE= 24468fi 24469 24470 24471 24472 24473 fi 24474 24475# Checks for libraries. 24476 24477 24478LIB_SYSLOG='' 24479 24480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5 24481$as_echo_n "checking for library containing openlog... " >&6; } 24482if ${ac_cv_search_openlog+:} false; then : 24483 $as_echo_n "(cached) " >&6 24484else 24485 ac_func_search_save_LIBS=$LIBS 24486cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24487/* end confdefs.h. */ 24488 24489/* Override any GCC internal prototype to avoid an error. 24490 Use char because int might match the return type of a GCC 24491 builtin and then its argument prototype would still apply. */ 24492#ifdef __cplusplus 24493extern "C" 24494#endif 24495char openlog (); 24496int 24497main () 24498{ 24499return openlog (); 24500 ; 24501 return 0; 24502} 24503_ACEOF 24504for ac_lib in '' gen syslog; do 24505 if test -z "$ac_lib"; then 24506 ac_res="none required" 24507 else 24508 ac_res=-l$ac_lib 24509 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24510 fi 24511 if ac_fn_c_try_link "$LINENO"; then : 24512 ac_cv_search_openlog=$ac_res 24513fi 24514rm -f core conftest.err conftest.$ac_objext \ 24515 conftest$ac_exeext 24516 if ${ac_cv_search_openlog+:} false; then : 24517 break 24518fi 24519done 24520if ${ac_cv_search_openlog+:} false; then : 24521 24522else 24523 ac_cv_search_openlog=no 24524fi 24525rm conftest.$ac_ext 24526LIBS=$ac_func_search_save_LIBS 24527fi 24528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5 24529$as_echo "$ac_cv_search_openlog" >&6; } 24530ac_res=$ac_cv_search_openlog 24531if test "$ac_res" != no; then : 24532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24533 case "$ac_cv_search_openlog" in 24534 'none required') ;; 24535 no) ;; 24536 *) LIB_SYSLOG="$ac_cv_search_openlog $LIB_SYSLOG" ;; 24537 esac 24538 24539fi 24540 24541 24542# Checks for header files. 24543for ac_header in netdb.h string.h strings.h syslog.h 24544do : 24545 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24546ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24547if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24548 cat >>confdefs.h <<_ACEOF 24549#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24550_ACEOF 24551 24552fi 24553 24554done 24555 24556 24557 24558for ac_header in sysexits.h 24559do : 24560 ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default" 24561if test "x$ac_cv_header_sysexits_h" = xyes; then : 24562 cat >>confdefs.h <<_ACEOF 24563#define HAVE_SYSEXITS_H 1 24564_ACEOF 24565 24566else 24567 24568 24569$as_echo "#define EX_OK 0" >>confdefs.h 24570 24571 24572$as_echo "#define EX_SOFTWARE 70" >>confdefs.h 24573 24574 24575fi 24576 24577done 24578 24579 24580 24581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5 24582$as_echo_n "checking for facilitynames in syslog.h... " >&6; } 24583if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then : 24584 $as_echo_n "(cached) " >&6 24585else 24586 24587cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24588/* end confdefs.h. */ 24589 24590#define SYSLOG_NAMES 24591#include <stdlib.h> 24592#include <syslog.h> 24593 24594int 24595main () 24596{ 24597 void *fnames; fnames = facilitynames; 24598 ; 24599 return 0; 24600} 24601_ACEOF 24602if ac_fn_c_try_compile "$LINENO"; then : 24603 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes 24604else 24605 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no 24606fi 24607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24608fi 24609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5 24610$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; } 24611case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in 24612 yes) 24613 24614$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h 24615 24616 ;; 24617 no) 24618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5 24619$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;} 24620 ;; 24621 cross) 24622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5 24623$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;} 24624 ;; 24625esac 24626 24627 24628# Checks for typedefs, structures, and compiler characteristics. 24629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 24630$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 24631if ${ac_cv_header_stdbool_h+:} false; then : 24632 $as_echo_n "(cached) " >&6 24633else 24634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24635/* end confdefs.h. */ 24636 24637#include <stdbool.h> 24638#ifndef bool 24639 "error: bool is not defined" 24640#endif 24641#ifndef false 24642 "error: false is not defined" 24643#endif 24644#if false 24645 "error: false is not 0" 24646#endif 24647#ifndef true 24648 "error: true is not defined" 24649#endif 24650#if true != 1 24651 "error: true is not 1" 24652#endif 24653#ifndef __bool_true_false_are_defined 24654 "error: __bool_true_false_are_defined is not defined" 24655#endif 24656 24657 struct s { _Bool s: 1; _Bool t; } s; 24658 24659 char a[true == 1 ? 1 : -1]; 24660 char b[false == 0 ? 1 : -1]; 24661 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 24662 char d[(bool) 0.5 == true ? 1 : -1]; 24663 /* See body of main program for 'e'. */ 24664 char f[(_Bool) 0.0 == false ? 1 : -1]; 24665 char g[true]; 24666 char h[sizeof (_Bool)]; 24667 char i[sizeof s.t]; 24668 enum { j = false, k = true, l = false * true, m = true * 256 }; 24669 /* The following fails for 24670 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 24671 _Bool n[m]; 24672 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 24673 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 24674 /* Catch a bug in an HP-UX C compiler. See 24675 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 24676 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 24677 */ 24678 _Bool q = true; 24679 _Bool *pq = &q; 24680 24681int 24682main () 24683{ 24684 24685 bool e = &s; 24686 *pq |= q; 24687 *pq |= ! q; 24688 /* Refer to every declared value, to avoid compiler optimizations. */ 24689 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 24690 + !m + !n + !o + !p + !q + !pq); 24691 24692 ; 24693 return 0; 24694} 24695_ACEOF 24696if ac_fn_c_try_compile "$LINENO"; then : 24697 ac_cv_header_stdbool_h=yes 24698else 24699 ac_cv_header_stdbool_h=no 24700fi 24701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24702fi 24703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 24704$as_echo "$ac_cv_header_stdbool_h" >&6; } 24705ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 24706if test "x$ac_cv_type__Bool" = xyes; then : 24707 24708cat >>confdefs.h <<_ACEOF 24709#define HAVE__BOOL 1 24710_ACEOF 24711 24712 24713fi 24714 24715if test $ac_cv_header_stdbool_h = yes; then 24716 24717$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 24718 24719fi 24720 24721 24722 24723 24724 24725VER_SUFFIX= 24726 24727 24728 24729 24730# Check whether --with-crypto was given. 24731if test "${with_crypto+set}" = set; then : 24732 withval=$with_crypto; 24733fi 24734 24735 24736# Check whether --with-openssl-libdir was given. 24737if test "${with_openssl_libdir+set}" = set; then : 24738 withval=$with_openssl_libdir; 24739fi 24740 24741 24742# Check whether --with-openssl-incdir was given. 24743if test "${with_openssl_incdir+set}" = set; then : 24744 withval=$with_openssl_incdir; 24745fi 24746 24747 24748# Check whether --with-rpath was given. 24749if test "${with_rpath+set}" = set; then : 24750 withval=$with_rpath; 24751fi 24752 24753ntp_openssl=no 24754ntp_openssl_from_pkg_config=no 24755with_crypto=${with_crypto:-openssl,libcrypto} 24756case "$with_crypto" in 24757 yes) 24758 with_crypto=openssl,libcrypto 24759esac 24760case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in 24761 no:*) ;; 24762 *:notempty:notgiven:notgiven) 24763 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do 24764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5 24765$as_echo_n "checking pkg-config for $pkg... " >&6; } 24766 if $PKG_CONFIG --exists $pkg ; then 24767 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`" 24768 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`" 24769 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`" 24770 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`" 24771 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`" 24772 VER_SUFFIX=o 24773 ntp_openssl=yes 24774 ntp_openssl_from_pkg_config=yes 24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24776$as_echo "yes" >&6; } 24777 24778 break 24779 fi 24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24781$as_echo "no" >&6; } 24782 done 24783esac 24784case "$with_crypto:$ntp_openssl" in 24785 no:*) ;; 24786 *:no) 24787 need_dash_r= 24788 need_dash_Wlrpath= 24789 case "${with_rpath-notgiven}" in 24790 yes) 24791 # Lame - what to do if we need -Wl... but not -R? 24792 need_dash_r=1 24793 ;; 24794 notgiven) 24795 case "$host" in 24796 *-*-linux*) 24797 # This may really only be true for gcc 24798 need_dash_Wlrpath=1 24799 ;; 24800 *-*-netbsd*) 24801 need_dash_r=1 24802 ;; 24803 *-*-solaris*) 24804 need_dash_r=1 24805 ;; 24806 esac 24807 ;; 24808 esac 24809 24810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5 24811$as_echo_n "checking for openssl library directory... " >&6; } 24812 with_openssl_libdir=${with_openssl_libdir-notgiven} 24813 case "$with_openssl_libdir" in 24814 notgiven) 24815 case "$build" in 24816 $host) 24817 with_openssl_libdir=default 24818 ;; 24819 *) 24820 with_openssl_libdir=no 24821 ;; 24822 esac 24823 esac 24824 case "$with_openssl_libdir" in 24825 default) 24826 # Look in: 24827 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib" 24828 with_openssl_libdir="$with_openssl_libdir /usr/local/lib" 24829 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib" 24830 esac 24831 case "$with_openssl_libdir" in 24832 no) 24833 ;; 24834 *) # Look for libcrypto.a and libssl.a: 24835 for i in $with_openssl_libdir no 24836 do 24837 case "$host" in 24838 *-*-darwin*) 24839 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break 24840 ;; 24841 *) 24842 test -f $i/libcrypto.so -a -f $i/libssl.so && break 24843 test -f $i/libcrypto.a -a -f $i/libssl.a && break 24844 ;; 24845 esac 24846 done 24847 openssl_libdir=$i 24848 ;; 24849 esac 24850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5 24851$as_echo "$openssl_libdir" >&6; } 24852 case "$openssl_libdir" in 24853 no) 24854 openssl_libdir= 24855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5 24856$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;} 24857 esac 24858 24859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5 24860$as_echo_n "checking for openssl include directory... " >&6; } 24861 with_openssl_incdir=${with_openssl_incdir-notgiven} 24862 case "$with_openssl_incdir" in 24863 notgiven) 24864 # Look in: 24865 with_openssl_incdir="/usr/include /usr/sfw/include" 24866 with_openssl_incdir="$with_openssl_incdir /usr/local/include" 24867 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include" 24868 esac 24869 case "$with_openssl_incdir" in 24870 no) 24871 ;; 24872 *) # look for openssl/evp.h: 24873 for i in $with_openssl_incdir no 24874 do 24875 test -f $i/openssl/evp.h && break 24876 done 24877 openssl_incdir=$i 24878 ;; 24879 esac 24880 { i=; unset i;} 24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5 24882$as_echo "$openssl_incdir" >&6; } 24883 case "$openssl_incdir" in 24884 no) 24885 openssl_incdir= 24886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5 24887$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;} 24888 esac 24889 if test -z "$openssl_libdir" -o -z "$openssl_incdir" 24890 then 24891 ntp_openssl=no 24892 else 24893 ntp_openssl=yes 24894 VER_SUFFIX=o 24895 fi 24896 case "$ntp_openssl" in 24897 yes) 24898 # We have OpenSSL inc/lib dirs - use them. 24899 case "$openssl_incdir" in 24900 /usr/include) 24901 ;; 24902 *) 24903 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir" 24904 ;; 24905 esac 24906 case "$openssl_libdir" in 24907 /usr/lib) 24908 ;; 24909 *) 24910 LDADD_NTP="$LDADD_NTP -L$openssl_libdir" 24911 case "$need_dash_r" in 24912 1) 24913 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir" 24914 esac 24915 case "$need_dash_Wlrpath" in 24916 1) 24917 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir" 24918 esac 24919 ;; 24920 esac 24921 LDADD_NTP="$LDADD_NTP -lcrypto" 24922 esac 24923esac 24924 24925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5 24926$as_echo_n "checking if we will use crypto... " >&6; } 24927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5 24928$as_echo "$ntp_openssl" >&6; } 24929 24930case "$ntp_openssl" in 24931 yes) 24932 24933$as_echo "#define OPENSSL /**/" >>confdefs.h 24934 24935 case "$VER_SUFFIX" in 24936 *o*) ;; 24937 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;; 24938 esac 24939 ;; 24940esac 24941 24942NTPO_SAVED_CPPFLAGS="$CPPFLAGS" 24943CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP" 24944NTPO_SAVED_LIBS="$LIBS" 24945 24946# 24947# check for linking with -lcrypto failure, and try -lcrypto -lz. 24948# Helps m68k-atari-mint 24949# 24950case "$ntp_openssl:$ntp_openssl_from_pkg_config" in 24951 yes:no) 24952 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 24953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5 24954$as_echo_n "checking if linking with -lcrypto alone works... " >&6; } 24955if ${ntp_cv_bare_lcrypto+:} false; then : 24956 $as_echo_n "(cached) " >&6 24957else 24958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24959/* end confdefs.h. */ 24960 24961 #include "openssl/err.h" 24962 #include "openssl/evp.h" 24963 24964int 24965main () 24966{ 24967 24968 ERR_load_crypto_strings(); 24969 OpenSSL_add_all_algorithms(); 24970 24971 24972 ; 24973 return 0; 24974} 24975_ACEOF 24976if ac_fn_c_try_link "$LINENO"; then : 24977 ntp_cv_bare_lcrypto=yes 24978else 24979 ntp_cv_bare_lcrypto=no 24980 24981fi 24982rm -f core conftest.err conftest.$ac_objext \ 24983 conftest$ac_exeext conftest.$ac_ext 24984 24985fi 24986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5 24987$as_echo "$ntp_cv_bare_lcrypto" >&6; } 24988 case "$ntp_cv_bare_lcrypto" in 24989 no) 24990 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz" 24991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5 24992$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; } 24993if ${ntp_cv_lcrypto_lz+:} false; then : 24994 $as_echo_n "(cached) " >&6 24995else 24996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24997/* end confdefs.h. */ 24998 24999 #include "openssl/err.h" 25000 #include "openssl/evp.h" 25001 25002int 25003main () 25004{ 25005 25006 ERR_load_crypto_strings(); 25007 OpenSSL_add_all_algorithms(); 25008 25009 25010 ; 25011 return 0; 25012} 25013_ACEOF 25014if ac_fn_c_try_link "$LINENO"; then : 25015 ntp_cv_lcrypto_lz=yes 25016else 25017 ntp_cv_lcrypto_lz=no 25018 25019fi 25020rm -f core conftest.err conftest.$ac_objext \ 25021 conftest$ac_exeext conftest.$ac_ext 25022 25023fi 25024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5 25025$as_echo "$ntp_cv_lcrypto_lz" >&6; } 25026 case "$ntp_cv_lcrypto_lz" in 25027 yes) 25028 LDADD_NTP="$LDADD_NTP -lz" 25029 esac 25030 esac 25031esac 25032 25033# 25034# Older OpenSSL headers have a number of callback prototypes inside 25035# other function prototypes which trigger copious warnings with gcc's 25036# -Wstrict-prototypes, which is included in -Wall. 25037# 25038# An example: 25039# 25040# int i2d_RSA_NET(const RSA *a, unsigned char **pp, 25041# int (*cb)(), int sgckey); 25042# ^^^^^^^^^^^ 25043# 25044# 25045# 25046openssl_triggers_warnings=unknown 25047NTPO_SAVED_CFLAGS="$CFLAGS" 25048 25049case "$ntp_openssl:$GCC" in 25050 yes:yes) 25051 CFLAGS="$CFLAGS -Werror" 25052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25053/* end confdefs.h. */ 25054 25055 25056int 25057main () 25058{ 25059 25060 /* see if -Werror breaks gcc */ 25061 25062 25063 ; 25064 return 0; 25065} 25066_ACEOF 25067if ac_fn_c_try_compile "$LINENO"; then : 25068 gcc_handles_Werror=yes 25069else 25070 gcc_handles_Werror=no 25071 25072fi 25073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25074 case "$gcc_handles_Werror" in 25075 no) 25076 # if this gcc doesn't do -Werror go ahead and use 25077 # -Wstrict-prototypes. 25078 openssl_triggers_warnings=yes 25079 ;; 25080 yes) 25081 CFLAGS="$CFLAGS -Wstrict-prototypes" 25082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25083/* end confdefs.h. */ 25084 25085 #include "openssl/asn1_mac.h" 25086 #include "openssl/bn.h" 25087 #include "openssl/err.h" 25088 #include "openssl/evp.h" 25089 #include "openssl/pem.h" 25090 #include "openssl/rand.h" 25091 #include "openssl/x509v3.h" 25092 25093int 25094main () 25095{ 25096 25097 /* empty body */ 25098 25099 25100 ; 25101 return 0; 25102} 25103_ACEOF 25104if ac_fn_c_try_compile "$LINENO"; then : 25105 openssl_triggers_warnings=no 25106else 25107 openssl_triggers_warnings=yes 25108 25109fi 25110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25111 esac 25112 case "$openssl_triggers_warnings" in 25113 yes) 25114 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes" 25115 ;; 25116 *) 25117 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 25118 esac 25119 ;; 25120 no:yes) 25121 # gcc without OpenSSL 25122 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 25123esac 25124 25125CFLAGS="$NTPO_SAVED_CFLAGS" 25126CPPFLAGS="$NTPO_SAVED_CPPFLAGS" 25127LIBS="$NTPO_SAVED_LIBS" 25128{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;} 25129{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;} 25130{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;} 25131{ openssl_triggers_warnings=; unset openssl_triggers_warnings;} 25132{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;} 25133 25134 25135 25136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 25137$as_echo_n "checking for struct sockaddr_storage... " >&6; } 25138if ${ntp_cv_sockaddr_storage+:} false; then : 25139 $as_echo_n "(cached) " >&6 25140else 25141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25142/* end confdefs.h. */ 25143 25144 #ifdef HAVE_SYS_TYPES_H 25145 # include <sys/types.h> 25146 #endif 25147 #ifdef HAVE_SYS_SOCKET_H 25148 # include <sys/socket.h> 25149 #endif 25150 #ifdef HAVE_NETINET_IN_H 25151 # include <netinet/in.h> 25152 #endif 25153 25154int 25155main () 25156{ 25157 25158 struct sockaddr_storage n; 25159 25160 25161 ; 25162 return 0; 25163} 25164_ACEOF 25165if ac_fn_c_try_compile "$LINENO"; then : 25166 ntp_cv_sockaddr_storage=yes 25167else 25168 ntp_cv_sockaddr_storage=no 25169 25170fi 25171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25172 25173fi 25174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5 25175$as_echo "$ntp_cv_sockaddr_storage" >&6; } 25176case "$ntp_cv_sockaddr_storage" in 25177 yes) 25178 25179$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 25180 25181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5 25182$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; } 25183if ${ntp_cv_have___ss_family+:} false; then : 25184 $as_echo_n "(cached) " >&6 25185else 25186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25187/* end confdefs.h. */ 25188 25189 #ifdef HAVE_SYS_TYPES_H 25190 # include <sys/types.h> 25191 #endif 25192 #ifdef HAVE_SYS_SOCKET_H 25193 # include <sys/socket.h> 25194 #endif 25195 #ifdef HAVE_NETINET_IN_H 25196 # include <netinet/in.h> 25197 #endif 25198 25199int 25200main () 25201{ 25202 25203 struct sockaddr_storage s; 25204 s.__ss_family = 1; 25205 25206 25207 ; 25208 return 0; 25209} 25210_ACEOF 25211if ac_fn_c_try_compile "$LINENO"; then : 25212 ntp_cv_have___ss_family=yes 25213else 25214 ntp_cv_have___ss_family=no 25215 25216fi 25217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25218 25219fi 25220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5 25221$as_echo "$ntp_cv_have___ss_family" >&6; } 25222 case "$ntp_cv_have___ss_family" in 25223 yes) 25224 25225$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 25226 25227 esac 25228 25229esac 25230 25231 25232# 25233# Look for in_port_t. 25234# 25235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5 25236$as_echo_n "checking for in_port_t... " >&6; } 25237if ${isc_cv_have_in_port_t+:} false; then : 25238 $as_echo_n "(cached) " >&6 25239else 25240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25241/* end confdefs.h. */ 25242 25243 #include <sys/types.h> 25244 #include <netinet/in.h> 25245 25246int 25247main () 25248{ 25249 25250 in_port_t port = 25; 25251 return (0); 25252 25253 25254 ; 25255 return 0; 25256} 25257_ACEOF 25258if ac_fn_c_try_compile "$LINENO"; then : 25259 isc_cv_have_in_port_t=yes 25260else 25261 isc_cv_have_in_port_t=no 25262 25263fi 25264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25265 25266fi 25267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5 25268$as_echo "$isc_cv_have_in_port_t" >&6; } 25269case "$isc_cv_have_in_port_t" in 25270 no) 25271 25272$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h 25273 25274esac 25275 25276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5 25277$as_echo_n "checking type of socklen arg for getsockname()... " >&6; } 25278if ${ntp_cv_getsockname_socklen_type+:} false; then : 25279 $as_echo_n "(cached) " >&6 25280else 25281 25282 getsockname_socklen_type_found=no 25283 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do 25284 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do 25285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25286/* end confdefs.h. */ 25287 25288 #ifdef HAVE_SYS_TYPES_H 25289 # include <sys/types.h> 25290 #endif 25291 #ifdef HAVE_SYS_SOCKET_H 25292 # include <sys/socket.h> 25293 #endif 25294 25295int 25296main () 25297{ 25298 25299 extern 25300 getsockname(int, $getsockname_arg2, 25301 $ntp_cv_getsockname_socklen_type *); 25302 25303 25304 ; 25305 return 0; 25306} 25307_ACEOF 25308if ac_fn_c_try_compile "$LINENO"; then : 25309 getsockname_socklen_type_found=yes ; break 2 25310fi 25311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25312 done 25313 done 25314 case "$getsockname_socklen_type_found" in 25315 no) 25316 ntp_cv_getsockname_socklen_type='socklen_t' 25317 esac 25318 { getsockname_arg2=; unset getsockname_arg2;} 25319 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;} 25320 25321 25322fi 25323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5 25324$as_echo "$ntp_cv_getsockname_socklen_type" >&6; } 25325 25326cat >>confdefs.h <<_ACEOF 25327#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type 25328_ACEOF 25329 25330 25331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5 25332$as_echo_n "checking struct sockaddr for sa_len... " >&6; } 25333if ${isc_cv_platform_havesalen+:} false; then : 25334 $as_echo_n "(cached) " >&6 25335else 25336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25337/* end confdefs.h. */ 25338 25339 #include <sys/types.h> 25340 #include <sys/socket.h> 25341 25342int 25343main () 25344{ 25345 25346 extern struct sockaddr *ps; 25347 return ps->sa_len; 25348 25349 25350 ; 25351 return 0; 25352} 25353_ACEOF 25354if ac_fn_c_try_compile "$LINENO"; then : 25355 isc_cv_platform_havesalen=yes 25356else 25357 isc_cv_platform_havesalen=no 25358 25359fi 25360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25361 25362fi 25363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5 25364$as_echo "$isc_cv_platform_havesalen" >&6; } 25365case "$isc_cv_platform_havesalen" in 25366 yes) 25367 25368$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h 25369 25370esac 25371 25372# Check whether --enable-ipv6 was given. 25373if test "${enable_ipv6+set}" = set; then : 25374 enableval=$enable_ipv6; 25375fi 25376 25377 25378case "$enable_ipv6" in 25379 yes|''|autodetect) 25380 case "$host" in 25381 powerpc-ibm-aix4*) 25382 ;; 25383 *) 25384 25385$as_echo "#define WANT_IPV6 1" >>confdefs.h 25386 25387 ;; 25388 esac 25389 ;; 25390 no) 25391 ;; 25392esac 25393 25394 25395case "$host" in 25396 *-*-darwin*) 25397 25398$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h 25399 25400esac 25401 25402 25403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 25404$as_echo_n "checking for IPv6 structures... " >&6; } 25405if ${isc_cv_found_ipv6+:} false; then : 25406 $as_echo_n "(cached) " >&6 25407else 25408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25409/* end confdefs.h. */ 25410 25411 #include <sys/types.h> 25412 #include <sys/socket.h> 25413 #include <netinet/in.h> 25414 25415int 25416main () 25417{ 25418 25419 struct sockaddr_in6 sin6; 25420 25421 25422 ; 25423 return 0; 25424} 25425_ACEOF 25426if ac_fn_c_try_compile "$LINENO"; then : 25427 isc_cv_found_ipv6=yes 25428else 25429 isc_cv_found_ipv6=no 25430 25431fi 25432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25433 25434fi 25435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5 25436$as_echo "$isc_cv_found_ipv6" >&6; } 25437 25438# 25439# See whether IPv6 support is provided via a Kame add-on. 25440# This is done before other IPv6 linking tests so LIBS is properly set. 25441# 25442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5 25443$as_echo_n "checking for Kame IPv6 support... " >&6; } 25444 25445# Check whether --with-kame was given. 25446if test "${with_kame+set}" = set; then : 25447 withval=$with_kame; use_kame="$withval" 25448else 25449 use_kame="no" 25450 25451fi 25452 25453case "$use_kame" in 25454 no) 25455 ;; 25456 yes) 25457 kame_path=/usr/local/v6 25458 ;; 25459 *) 25460 kame_path="$use_kame" 25461 ;; 25462esac 25463case "$use_kame" in 25464 no) 25465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25466$as_echo "no" >&6; } 25467 ;; 25468 *) 25469 if test -f $kame_path/lib/libinet6.a; then 25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5 25471$as_echo "$kame_path/lib/libinet6.a" >&6; } 25472 LIBS="-L$kame_path/lib -linet6 $LIBS" 25473 else 25474 as_fn_error $? "$kame_path/lib/libinet6.a not found. 25475 25476Please choose the proper path with the following command: 25477 25478 configure --with-kame=PATH 25479" "$LINENO" 5 25480 fi 25481 ;; 25482esac 25483 25484# 25485# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 25486# Including it on Kame-using platforms is very bad, though, because 25487# Kame uses #error against direct inclusion. So include it on only 25488# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 25489# This is done before the in6_pktinfo check because that's what 25490# netinet6/in6.h is needed for. 25491# 25492case "$host" in 25493 *-bsdi4.[01]*) 25494 25495$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h 25496 25497 isc_netinet6in6_hack="#include <netinet6/in6.h>" 25498 ;; 25499 *) 25500 isc_netinet6in6_hack="" 25501 ;; 25502esac 25503 25504# 25505# This is similar to the netinet6/in6.h issue. 25506# 25507case "$host" in 25508 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 25509 25510$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h 25511 25512 isc_netinetin6_hack="#include <netinet/in6.h>" 25513 ;; 25514 *) 25515 isc_netinetin6_hack="" 25516 ;; 25517esac 25518 25519 25520case "$isc_cv_found_ipv6" in 25521 yes) 25522 25523$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h 25524 25525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5 25526$as_echo_n "checking for in6_pktinfo... " >&6; } 25527if ${isc_cv_have_in6_pktinfo+:} false; then : 25528 $as_echo_n "(cached) " >&6 25529else 25530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25531/* end confdefs.h. */ 25532 25533 #include <sys/types.h> 25534 #include <sys/socket.h> 25535 #include <netinet/in.h> 25536 $isc_netinetin6_hack 25537 $isc_netinet6in6_hack 25538 25539int 25540main () 25541{ 25542 25543 struct in6_pktinfo xyzzy; 25544 25545 25546 ; 25547 return 0; 25548} 25549_ACEOF 25550if ac_fn_c_try_compile "$LINENO"; then : 25551 isc_cv_have_in6_pktinfo=yes 25552else 25553 isc_cv_have_in6_pktinfo=no 25554 25555fi 25556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25557 25558fi 25559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5 25560$as_echo "$isc_cv_have_in6_pktinfo" >&6; } 25561 case "$isc_cv_have_in6_pktinfo" in 25562 yes) 25563 25564$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h 25565 25566 esac 25567 25568 25569 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead? 25570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5 25571$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; } 25572if ${isc_cv_have_sin6_scope_id+:} false; then : 25573 $as_echo_n "(cached) " >&6 25574else 25575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25576/* end confdefs.h. */ 25577 25578 #include <sys/types.h> 25579 #include <sys/socket.h> 25580 #include <netinet/in.h> 25581 $isc_netinetin6_hack 25582 $isc_netinet6in6_hack 25583 25584int 25585main () 25586{ 25587 25588 struct sockaddr_in6 xyzzy; 25589 xyzzy.sin6_scope_id = 0; 25590 25591 25592 ; 25593 return 0; 25594} 25595_ACEOF 25596if ac_fn_c_try_compile "$LINENO"; then : 25597 isc_cv_have_sin6_scope_id=yes 25598else 25599 isc_cv_have_sin6_scope_id=no 25600 25601fi 25602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25603 25604fi 25605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5 25606$as_echo "$isc_cv_have_sin6_scope_id" >&6; } 25607 25608 case "$isc_cv_have_sin6_scope_id" in 25609 yes) 25610 25611$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h 25612 25613 esac 25614esac 25615 25616 25617# We need this check run even without isc_cv_found_ipv6=yes 25618 25619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5 25620$as_echo_n "checking for in6addr_any... " >&6; } 25621if ${isc_cv_in6addr_any_links+:} false; then : 25622 $as_echo_n "(cached) " >&6 25623else 25624 25625 SAVED_LIBS="$LIBS" 25626 LIBS="$LDADD_LIBNTP $LIBS" 25627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25628/* end confdefs.h. */ 25629$ac_includes_default 25630 #include <sys/socket.h> 25631 #include <netinet/in.h> 25632 $isc_netinetin6_hack 25633 $isc_netinet6in6_hack 25634 25635int 25636main () 25637{ 25638 25639 printf("%x", in6addr_any.s6_addr[15]); 25640 25641 25642 ; 25643 return 0; 25644} 25645_ACEOF 25646if ac_fn_c_try_link "$LINENO"; then : 25647 isc_cv_in6addr_any_links=yes 25648else 25649 isc_cv_in6addr_any_links=no 25650 25651fi 25652rm -f core conftest.err conftest.$ac_objext \ 25653 conftest$ac_exeext conftest.$ac_ext 25654 LIBS="$SAVED_LIBS" 25655 { SAVED_LIBS=; unset SAVED_LIBS;} 25656 25657 25658fi 25659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5 25660$as_echo "$isc_cv_in6addr_any_links" >&6; } 25661 25662case "$isc_cv_in6addr_any_links" in 25663 no) 25664 25665$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h 25666 25667esac 25668 25669 25670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 25671$as_echo_n "checking for struct if_laddrconf... " >&6; } 25672if ${isc_cv_struct_if_laddrconf+:} false; then : 25673 $as_echo_n "(cached) " >&6 25674else 25675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25676/* end confdefs.h. */ 25677 25678 #include <sys/types.h> 25679 #include <net/if6.h> 25680 25681int 25682main () 25683{ 25684 25685 struct if_laddrconf a; 25686 25687 25688 ; 25689 return 0; 25690} 25691_ACEOF 25692if ac_fn_c_try_compile "$LINENO"; then : 25693 isc_cv_struct_if_laddrconf=yes 25694else 25695 isc_cv_struct_if_laddrconf=no 25696 25697fi 25698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25699 25700fi 25701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5 25702$as_echo "$isc_cv_struct_if_laddrconf" >&6; } 25703 25704case "$isc_cv_struct_if_laddrconf" in 25705 yes) 25706 25707$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h 25708 25709esac 25710 25711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 25712$as_echo_n "checking for struct if_laddrreq... " >&6; } 25713if ${isc_cv_struct_if_laddrreq+:} 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 <net/if6.h> 25721 25722int 25723main () 25724{ 25725 25726 struct if_laddrreq a; 25727 25728 25729 ; 25730 return 0; 25731} 25732_ACEOF 25733if ac_fn_c_try_compile "$LINENO"; then : 25734 isc_cv_struct_if_laddrreq=yes 25735else 25736 isc_cv_struct_if_laddrreq=no 25737 25738fi 25739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25740 25741fi 25742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5 25743$as_echo "$isc_cv_struct_if_laddrreq" >&6; } 25744 25745case "$isc_cv_struct_if_laddrreq" in 25746 yes) 25747 25748$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h 25749 25750esac 25751 25752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5 25753$as_echo_n "checking for multicast IP support... " >&6; } 25754if ${ntp_cv_multicast+:} false; then : 25755 $as_echo_n "(cached) " >&6 25756else 25757 25758 ntp_cv_multicast=no 25759 case "$host" in 25760 i386-sequent-sysv4) 25761 ;; 25762 *) 25763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25764/* end confdefs.h. */ 25765 25766 #ifdef HAVE_NETINET_IN_H 25767 # include <netinet/in.h> 25768 #endif 25769 25770int 25771main () 25772{ 25773 25774 struct ip_mreq ipmr; 25775 ipmr.imr_interface.s_addr = 0; 25776 25777 25778 ; 25779 return 0; 25780} 25781_ACEOF 25782if ac_fn_c_try_compile "$LINENO"; then : 25783 ntp_cv_multicast=yes 25784fi 25785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25786 ;; 25787 esac 25788 25789 25790fi 25791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5 25792$as_echo "$ntp_cv_multicast" >&6; } 25793case "$ntp_cv_multicast" in 25794 yes) 25795 25796$as_echo "#define MCAST 1" >>confdefs.h 25797 25798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5 25799$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; } 25800if ${ntp_cv_typeof_ip_multicast_loop+:} false; then : 25801 $as_echo_n "(cached) " >&6 25802else 25803 25804 case "$host" in 25805 *-*-netbsd*|*-*-*linux*) 25806 ntp_cv_typeof_ip_multicast_loop=u_int 25807 ;; 25808 *) 25809 ntp_cv_typeof_ip_multicast_loop=u_char 25810 ;; 25811 esac 25812 25813 25814fi 25815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5 25816$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; } 25817 25818cat >>confdefs.h <<_ACEOF 25819#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop 25820_ACEOF 25821 25822esac 25823 25824# Check whether --enable-getifaddrs was given. 25825if test "${enable_getifaddrs+set}" = set; then : 25826 enableval=$enable_getifaddrs; want_getifaddrs="$enableval" 25827else 25828 want_getifaddrs="yes" 25829 25830fi 25831 25832 25833case $want_getifaddrs in 25834 glibc) 25835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5 25836$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;} 25837esac 25838case $want_getifaddrs in 25839 no) 25840 ;; 25841 *) 25842 SAVED_LIBS="$LIBS" 25843 LIBS="$LDADD_LIBNTP $LIBS" 25844 for ac_func in getifaddrs 25845do : 25846 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 25847if test "x$ac_cv_func_getifaddrs" = xyes; then : 25848 cat >>confdefs.h <<_ACEOF 25849#define HAVE_GETIFADDRS 1 25850_ACEOF 25851 25852fi 25853done 25854 25855 LIBS="$SAVED_LIBS" 25856 { SAVED_LIBS=; unset SAVED_LIBS;} 25857 ;; 25858esac 25859 25860# 25861# Check for if_nametoindex() for IPv6 scoped addresses support 25862# 25863case "$host" in 25864 *-hp-hpux*) 25865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5 25866$as_echo_n "checking for library containing if_nametoindex... " >&6; } 25867if ${ac_cv_search_if_nametoindex+:} false; then : 25868 $as_echo_n "(cached) " >&6 25869else 25870 ac_func_search_save_LIBS=$LIBS 25871cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25872/* end confdefs.h. */ 25873 25874/* Override any GCC internal prototype to avoid an error. 25875 Use char because int might match the return type of a GCC 25876 builtin and then its argument prototype would still apply. */ 25877#ifdef __cplusplus 25878extern "C" 25879#endif 25880char if_nametoindex (); 25881int 25882main () 25883{ 25884return if_nametoindex (); 25885 ; 25886 return 0; 25887} 25888_ACEOF 25889for ac_lib in '' ipv6; do 25890 if test -z "$ac_lib"; then 25891 ac_res="none required" 25892 else 25893 ac_res=-l$ac_lib 25894 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25895 fi 25896 if ac_fn_c_try_link "$LINENO"; then : 25897 ac_cv_search_if_nametoindex=$ac_res 25898fi 25899rm -f core conftest.err conftest.$ac_objext \ 25900 conftest$ac_exeext 25901 if ${ac_cv_search_if_nametoindex+:} false; then : 25902 break 25903fi 25904done 25905if ${ac_cv_search_if_nametoindex+:} false; then : 25906 25907else 25908 ac_cv_search_if_nametoindex=no 25909fi 25910rm conftest.$ac_ext 25911LIBS=$ac_func_search_save_LIBS 25912fi 25913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5 25914$as_echo "$ac_cv_search_if_nametoindex" >&6; } 25915ac_res=$ac_cv_search_if_nametoindex 25916if test "$ac_res" != no; then : 25917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25918 25919fi 25920 25921esac 25922SAVED_LIBS="$LIBS" 25923LIBS="$LDADD_LIBNTP $LIBS" 25924for ac_func in if_nametoindex 25925do : 25926 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 25927if test "x$ac_cv_func_if_nametoindex" = xyes; then : 25928 cat >>confdefs.h <<_ACEOF 25929#define HAVE_IF_NAMETOINDEX 1 25930_ACEOF 25931 25932fi 25933done 25934 25935LIBS="$SAVED_LIBS" 25936{ SAVED_LIBS=; unset SAVED_LIBS;} 25937case "$ac_cv_func_if_nametoindex" in 25938 yes) 25939 25940$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h 25941 25942esac 25943 25944 25945 25946### 25947 25948# Hacks 25949# these need work if we're to move libntp under sntp 25950 25951$as_echo "#define HAVE_NO_NICE 1" >>confdefs.h 25952 25953 25954$as_echo "#define HAVE_TERMIOS 1" >>confdefs.h 25955 25956 25957# Checks for library functions. 25958for ac_func in socket 25959do : 25960 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 25961if test "x$ac_cv_func_socket" = xyes; then : 25962 cat >>confdefs.h <<_ACEOF 25963#define HAVE_SOCKET 1 25964_ACEOF 25965 25966fi 25967done 25968 25969 25970# HMS: if we don't find c++ we should not look for gtest. 25971ac_ext=cpp 25972ac_cpp='$CXXCPP $CPPFLAGS' 25973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25976if test -z "$CXX"; then 25977 if test -n "$CCC"; then 25978 CXX=$CCC 25979 else 25980 if test -n "$ac_tool_prefix"; then 25981 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 25982 do 25983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 25984set dummy $ac_tool_prefix$ac_prog; ac_word=$2 25985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25986$as_echo_n "checking for $ac_word... " >&6; } 25987if ${ac_cv_prog_CXX+:} false; then : 25988 $as_echo_n "(cached) " >&6 25989else 25990 if test -n "$CXX"; then 25991 ac_cv_prog_CXX="$CXX" # Let the user override the test. 25992else 25993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25994for as_dir in $PATH 25995do 25996 IFS=$as_save_IFS 25997 test -z "$as_dir" && as_dir=. 25998 for ac_exec_ext in '' $ac_executable_extensions; do 25999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26000 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 26001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26002 break 2 26003 fi 26004done 26005 done 26006IFS=$as_save_IFS 26007 26008fi 26009fi 26010CXX=$ac_cv_prog_CXX 26011if test -n "$CXX"; then 26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 26013$as_echo "$CXX" >&6; } 26014else 26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26016$as_echo "no" >&6; } 26017fi 26018 26019 26020 test -n "$CXX" && break 26021 done 26022fi 26023if test -z "$CXX"; then 26024 ac_ct_CXX=$CXX 26025 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 26026do 26027 # Extract the first word of "$ac_prog", so it can be a program name with args. 26028set dummy $ac_prog; ac_word=$2 26029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26030$as_echo_n "checking for $ac_word... " >&6; } 26031if ${ac_cv_prog_ac_ct_CXX+:} false; then : 26032 $as_echo_n "(cached) " >&6 26033else 26034 if test -n "$ac_ct_CXX"; then 26035 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 26036else 26037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26038for as_dir in $PATH 26039do 26040 IFS=$as_save_IFS 26041 test -z "$as_dir" && as_dir=. 26042 for ac_exec_ext in '' $ac_executable_extensions; do 26043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26044 ac_cv_prog_ac_ct_CXX="$ac_prog" 26045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26046 break 2 26047 fi 26048done 26049 done 26050IFS=$as_save_IFS 26051 26052fi 26053fi 26054ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 26055if test -n "$ac_ct_CXX"; then 26056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 26057$as_echo "$ac_ct_CXX" >&6; } 26058else 26059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26060$as_echo "no" >&6; } 26061fi 26062 26063 26064 test -n "$ac_ct_CXX" && break 26065done 26066 26067 if test "x$ac_ct_CXX" = x; then 26068 CXX="g++" 26069 else 26070 case $cross_compiling:$ac_tool_warned in 26071yes:) 26072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26074ac_tool_warned=yes ;; 26075esac 26076 CXX=$ac_ct_CXX 26077 fi 26078fi 26079 26080 fi 26081fi 26082# Provide some information about the compiler. 26083$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 26084set X $ac_compile 26085ac_compiler=$2 26086for ac_option in --version -v -V -qversion; do 26087 { { ac_try="$ac_compiler $ac_option >&5" 26088case "(($ac_try" in 26089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26090 *) ac_try_echo=$ac_try;; 26091esac 26092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 26093$as_echo "$ac_try_echo"; } >&5 26094 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 26095 ac_status=$? 26096 if test -s conftest.err; then 26097 sed '10a\ 26098... rest of stderr output deleted ... 26099 10q' conftest.err >conftest.er1 26100 cat conftest.er1 >&5 26101 fi 26102 rm -f conftest.er1 conftest.err 26103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26104 test $ac_status = 0; } 26105done 26106 26107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 26108$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 26109if ${ac_cv_cxx_compiler_gnu+:} false; then : 26110 $as_echo_n "(cached) " >&6 26111else 26112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26113/* end confdefs.h. */ 26114 26115int 26116main () 26117{ 26118#ifndef __GNUC__ 26119 choke me 26120#endif 26121 26122 ; 26123 return 0; 26124} 26125_ACEOF 26126if ac_fn_cxx_try_compile "$LINENO"; then : 26127 ac_compiler_gnu=yes 26128else 26129 ac_compiler_gnu=no 26130fi 26131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26132ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 26133 26134fi 26135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 26136$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 26137if test $ac_compiler_gnu = yes; then 26138 GXX=yes 26139else 26140 GXX= 26141fi 26142ac_test_CXXFLAGS=${CXXFLAGS+set} 26143ac_save_CXXFLAGS=$CXXFLAGS 26144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 26145$as_echo_n "checking whether $CXX accepts -g... " >&6; } 26146if ${ac_cv_prog_cxx_g+:} false; then : 26147 $as_echo_n "(cached) " >&6 26148else 26149 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 26150 ac_cxx_werror_flag=yes 26151 ac_cv_prog_cxx_g=no 26152 CXXFLAGS="-g" 26153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26154/* end confdefs.h. */ 26155 26156int 26157main () 26158{ 26159 26160 ; 26161 return 0; 26162} 26163_ACEOF 26164if ac_fn_cxx_try_compile "$LINENO"; then : 26165 ac_cv_prog_cxx_g=yes 26166else 26167 CXXFLAGS="" 26168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26169/* end confdefs.h. */ 26170 26171int 26172main () 26173{ 26174 26175 ; 26176 return 0; 26177} 26178_ACEOF 26179if ac_fn_cxx_try_compile "$LINENO"; then : 26180 26181else 26182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 26183 CXXFLAGS="-g" 26184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26185/* end confdefs.h. */ 26186 26187int 26188main () 26189{ 26190 26191 ; 26192 return 0; 26193} 26194_ACEOF 26195if ac_fn_cxx_try_compile "$LINENO"; then : 26196 ac_cv_prog_cxx_g=yes 26197fi 26198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26199fi 26200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26201fi 26202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26203 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 26204fi 26205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 26206$as_echo "$ac_cv_prog_cxx_g" >&6; } 26207if test "$ac_test_CXXFLAGS" = set; then 26208 CXXFLAGS=$ac_save_CXXFLAGS 26209elif test $ac_cv_prog_cxx_g = yes; then 26210 if test "$GXX" = yes; then 26211 CXXFLAGS="-g -O2" 26212 else 26213 CXXFLAGS="-g" 26214 fi 26215else 26216 if test "$GXX" = yes; then 26217 CXXFLAGS="-O2" 26218 else 26219 CXXFLAGS= 26220 fi 26221fi 26222ac_ext=c 26223ac_cpp='$CPP $CPPFLAGS' 26224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26226ac_compiler_gnu=$ac_cv_c_compiler_gnu 26227 26228depcc="$CXX" am_compiler_list= 26229 26230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 26231$as_echo_n "checking dependency style of $depcc... " >&6; } 26232if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 26233 $as_echo_n "(cached) " >&6 26234else 26235 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 26236 # We make a subdir and do the tests there. Otherwise we can end up 26237 # making bogus files that we don't know about and never remove. For 26238 # instance it was reported that on HP-UX the gcc test will end up 26239 # making a dummy file named `D' -- because `-MD' means `put the output 26240 # in D'. 26241 mkdir conftest.dir 26242 # Copy depcomp to subdir because otherwise we won't find it if we're 26243 # using a relative directory. 26244 cp "$am_depcomp" conftest.dir 26245 cd conftest.dir 26246 # We will build objects and dependencies in a subdirectory because 26247 # it helps to detect inapplicable dependency modes. For instance 26248 # both Tru64's cc and ICC support -MD to output dependencies as a 26249 # side effect of compilation, but ICC will put the dependencies in 26250 # the current directory while Tru64 will put them in the object 26251 # directory. 26252 mkdir sub 26253 26254 am_cv_CXX_dependencies_compiler_type=none 26255 if test "$am_compiler_list" = ""; then 26256 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 26257 fi 26258 am__universal=false 26259 case " $depcc " in #( 26260 *\ -arch\ *\ -arch\ *) am__universal=true ;; 26261 esac 26262 26263 for depmode in $am_compiler_list; do 26264 # Setup a source with many dependencies, because some compilers 26265 # like to wrap large dependency lists on column 80 (with \), and 26266 # we should not choose a depcomp mode which is confused by this. 26267 # 26268 # We need to recreate these files for each test, as the compiler may 26269 # overwrite some of them when testing with obscure command lines. 26270 # This happens at least with the AIX C compiler. 26271 : > sub/conftest.c 26272 for i in 1 2 3 4 5 6; do 26273 echo '#include "conftst'$i'.h"' >> sub/conftest.c 26274 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 26275 # Solaris 8's {/usr,}/bin/sh. 26276 touch sub/conftst$i.h 26277 done 26278 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 26279 26280 # We check with `-c' and `-o' for the sake of the "dashmstdout" 26281 # mode. It turns out that the SunPro C++ compiler does not properly 26282 # handle `-M -o', and we need to detect this. Also, some Intel 26283 # versions had trouble with output in subdirs 26284 am__obj=sub/conftest.${OBJEXT-o} 26285 am__minus_obj="-o $am__obj" 26286 case $depmode in 26287 gcc) 26288 # This depmode causes a compiler race in universal mode. 26289 test "$am__universal" = false || continue 26290 ;; 26291 nosideeffect) 26292 # after this tag, mechanisms are not by side-effect, so they'll 26293 # only be used when explicitly requested 26294 if test "x$enable_dependency_tracking" = xyes; then 26295 continue 26296 else 26297 break 26298 fi 26299 ;; 26300 msvisualcpp | msvcmsys) 26301 # This compiler won't grok `-c -o', but also, the minuso test has 26302 # not run yet. These depmodes are late enough in the game, and 26303 # so weak that their functioning should not be impacted. 26304 am__obj=conftest.${OBJEXT-o} 26305 am__minus_obj= 26306 ;; 26307 none) break ;; 26308 esac 26309 if depmode=$depmode \ 26310 source=sub/conftest.c object=$am__obj \ 26311 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 26312 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 26313 >/dev/null 2>conftest.err && 26314 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 26315 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 26316 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 26317 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 26318 # icc doesn't choke on unknown options, it will just issue warnings 26319 # or remarks (even with -Werror). So we grep stderr for any message 26320 # that says an option was ignored or not supported. 26321 # When given -MP, icc 7.0 and 7.1 complain thusly: 26322 # icc: Command line warning: ignoring option '-M'; no argument required 26323 # The diagnosis changed in icc 8.0: 26324 # icc: Command line remark: option '-MP' not supported 26325 if (grep 'ignoring option' conftest.err || 26326 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 26327 am_cv_CXX_dependencies_compiler_type=$depmode 26328 break 26329 fi 26330 fi 26331 done 26332 26333 cd .. 26334 rm -rf conftest.dir 26335else 26336 am_cv_CXX_dependencies_compiler_type=none 26337fi 26338 26339fi 26340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 26341$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 26342CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 26343 26344 if 26345 test "x$enable_dependency_tracking" != xno \ 26346 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 26347 am__fastdepCXX_TRUE= 26348 am__fastdepCXX_FALSE='#' 26349else 26350 am__fastdepCXX_TRUE='#' 26351 am__fastdepCXX_FALSE= 26352fi 26353 26354 26355 26356 26357func_stripname_cnf () 26358{ 26359 case ${2} in 26360 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 26361 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 26362 esac 26363} # func_stripname_cnf 26364 26365 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 26366 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 26367 (test "X$CXX" != "Xg++"))) ; then 26368 ac_ext=cpp 26369ac_cpp='$CXXCPP $CPPFLAGS' 26370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 26374$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 26375if test -z "$CXXCPP"; then 26376 if ${ac_cv_prog_CXXCPP+:} false; then : 26377 $as_echo_n "(cached) " >&6 26378else 26379 # Double quotes because CXXCPP needs to be expanded 26380 for CXXCPP in "$CXX -E" "/lib/cpp" 26381 do 26382 ac_preproc_ok=false 26383for ac_cxx_preproc_warn_flag in '' yes 26384do 26385 # Use a header file that comes with gcc, so configuring glibc 26386 # with a fresh cross-compiler works. 26387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26388 # <limits.h> exists even on freestanding compilers. 26389 # On the NeXT, cc -E runs the code through the compiler's parser, 26390 # not just through cpp. "Syntax error" is here to catch this case. 26391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26392/* end confdefs.h. */ 26393#ifdef __STDC__ 26394# include <limits.h> 26395#else 26396# include <assert.h> 26397#endif 26398 Syntax error 26399_ACEOF 26400if ac_fn_cxx_try_cpp "$LINENO"; then : 26401 26402else 26403 # Broken: fails on valid input. 26404continue 26405fi 26406rm -f conftest.err conftest.i conftest.$ac_ext 26407 26408 # OK, works on sane cases. Now check whether nonexistent headers 26409 # can be detected and how. 26410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26411/* end confdefs.h. */ 26412#include <ac_nonexistent.h> 26413_ACEOF 26414if ac_fn_cxx_try_cpp "$LINENO"; then : 26415 # Broken: success on invalid input. 26416continue 26417else 26418 # Passes both tests. 26419ac_preproc_ok=: 26420break 26421fi 26422rm -f conftest.err conftest.i conftest.$ac_ext 26423 26424done 26425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 26426rm -f conftest.i conftest.err conftest.$ac_ext 26427if $ac_preproc_ok; then : 26428 break 26429fi 26430 26431 done 26432 ac_cv_prog_CXXCPP=$CXXCPP 26433 26434fi 26435 CXXCPP=$ac_cv_prog_CXXCPP 26436else 26437 ac_cv_prog_CXXCPP=$CXXCPP 26438fi 26439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 26440$as_echo "$CXXCPP" >&6; } 26441ac_preproc_ok=false 26442for ac_cxx_preproc_warn_flag in '' yes 26443do 26444 # Use a header file that comes with gcc, so configuring glibc 26445 # with a fresh cross-compiler works. 26446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26447 # <limits.h> exists even on freestanding compilers. 26448 # On the NeXT, cc -E runs the code through the compiler's parser, 26449 # not just through cpp. "Syntax error" is here to catch this case. 26450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26451/* end confdefs.h. */ 26452#ifdef __STDC__ 26453# include <limits.h> 26454#else 26455# include <assert.h> 26456#endif 26457 Syntax error 26458_ACEOF 26459if ac_fn_cxx_try_cpp "$LINENO"; then : 26460 26461else 26462 # Broken: fails on valid input. 26463continue 26464fi 26465rm -f conftest.err conftest.i conftest.$ac_ext 26466 26467 # OK, works on sane cases. Now check whether nonexistent headers 26468 # can be detected and how. 26469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26470/* end confdefs.h. */ 26471#include <ac_nonexistent.h> 26472_ACEOF 26473if ac_fn_cxx_try_cpp "$LINENO"; then : 26474 # Broken: success on invalid input. 26475continue 26476else 26477 # Passes both tests. 26478ac_preproc_ok=: 26479break 26480fi 26481rm -f conftest.err conftest.i conftest.$ac_ext 26482 26483done 26484# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 26485rm -f conftest.i conftest.err conftest.$ac_ext 26486if $ac_preproc_ok; then : 26487 26488else 26489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26491as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 26492See \`config.log' for more details" "$LINENO" 5; } 26493fi 26494 26495ac_ext=c 26496ac_cpp='$CPP $CPPFLAGS' 26497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26499ac_compiler_gnu=$ac_cv_c_compiler_gnu 26500 26501else 26502 _lt_caught_CXX_error=yes 26503fi 26504 26505ac_ext=cpp 26506ac_cpp='$CXXCPP $CPPFLAGS' 26507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26510 26511archive_cmds_need_lc_CXX=no 26512allow_undefined_flag_CXX= 26513always_export_symbols_CXX=no 26514archive_expsym_cmds_CXX= 26515compiler_needs_object_CXX=no 26516export_dynamic_flag_spec_CXX= 26517hardcode_direct_CXX=no 26518hardcode_direct_absolute_CXX=no 26519hardcode_libdir_flag_spec_CXX= 26520hardcode_libdir_flag_spec_ld_CXX= 26521hardcode_libdir_separator_CXX= 26522hardcode_minus_L_CXX=no 26523hardcode_shlibpath_var_CXX=unsupported 26524hardcode_automatic_CXX=no 26525inherit_rpath_CXX=no 26526module_cmds_CXX= 26527module_expsym_cmds_CXX= 26528link_all_deplibs_CXX=unknown 26529old_archive_cmds_CXX=$old_archive_cmds 26530reload_flag_CXX=$reload_flag 26531reload_cmds_CXX=$reload_cmds 26532no_undefined_flag_CXX= 26533whole_archive_flag_spec_CXX= 26534enable_shared_with_static_runtimes_CXX=no 26535 26536# Source file extension for C++ test sources. 26537ac_ext=cpp 26538 26539# Object file extension for compiled C++ test sources. 26540objext=o 26541objext_CXX=$objext 26542 26543# No sense in running all these tests if we already determined that 26544# the CXX compiler isn't working. Some variables (like enable_shared) 26545# are currently assumed to apply to all compilers on this platform, 26546# and will be corrupted by setting them based on a non-working compiler. 26547if test "$_lt_caught_CXX_error" != yes; then 26548 # Code to be used in simple compile tests 26549 lt_simple_compile_test_code="int some_variable = 0;" 26550 26551 # Code to be used in simple link tests 26552 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 26553 26554 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 26555 26556 26557 26558 26559 26560 26561# If no C compiler was specified, use CC. 26562LTCC=${LTCC-"$CC"} 26563 26564# If no C compiler flags were specified, use CFLAGS. 26565LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 26566 26567# Allow CC to be a program name with arguments. 26568compiler=$CC 26569 26570 26571 # save warnings/boilerplate of simple test code 26572 ac_outfile=conftest.$ac_objext 26573echo "$lt_simple_compile_test_code" >conftest.$ac_ext 26574eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 26575_lt_compiler_boilerplate=`cat conftest.err` 26576$RM conftest* 26577 26578 ac_outfile=conftest.$ac_objext 26579echo "$lt_simple_link_test_code" >conftest.$ac_ext 26580eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 26581_lt_linker_boilerplate=`cat conftest.err` 26582$RM -r conftest* 26583 26584 26585 # Allow CC to be a program name with arguments. 26586 lt_save_CC=$CC 26587 lt_save_CFLAGS=$CFLAGS 26588 lt_save_LD=$LD 26589 lt_save_GCC=$GCC 26590 GCC=$GXX 26591 lt_save_with_gnu_ld=$with_gnu_ld 26592 lt_save_path_LD=$lt_cv_path_LD 26593 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 26594 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 26595 else 26596 $as_unset lt_cv_prog_gnu_ld 26597 fi 26598 if test -n "${lt_cv_path_LDCXX+set}"; then 26599 lt_cv_path_LD=$lt_cv_path_LDCXX 26600 else 26601 $as_unset lt_cv_path_LD 26602 fi 26603 test -z "${LDCXX+set}" || LD=$LDCXX 26604 CC=${CXX-"c++"} 26605 CFLAGS=$CXXFLAGS 26606 compiler=$CC 26607 compiler_CXX=$CC 26608 for cc_temp in $compiler""; do 26609 case $cc_temp in 26610 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 26611 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 26612 \-*) ;; 26613 *) break;; 26614 esac 26615done 26616cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 26617 26618 26619 if test -n "$compiler"; then 26620 # We don't want -fno-exception when compiling C++ code, so set the 26621 # no_builtin_flag separately 26622 if test "$GXX" = yes; then 26623 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 26624 else 26625 lt_prog_compiler_no_builtin_flag_CXX= 26626 fi 26627 26628 if test "$GXX" = yes; then 26629 # Set up default GNU C++ configuration 26630 26631 26632 26633# Check whether --with-gnu-ld was given. 26634if test "${with_gnu_ld+set}" = set; then : 26635 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 26636else 26637 with_gnu_ld=no 26638fi 26639 26640ac_prog=ld 26641if test "$GCC" = yes; then 26642 # Check if gcc -print-prog-name=ld gives a path. 26643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 26644$as_echo_n "checking for ld used by $CC... " >&6; } 26645 case $host in 26646 *-*-mingw*) 26647 # gcc leaves a trailing carriage return which upsets mingw 26648 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 26649 *) 26650 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 26651 esac 26652 case $ac_prog in 26653 # Accept absolute paths. 26654 [\\/]* | ?:[\\/]*) 26655 re_direlt='/[^/][^/]*/\.\./' 26656 # Canonicalize the pathname of ld 26657 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 26658 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 26659 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 26660 done 26661 test -z "$LD" && LD="$ac_prog" 26662 ;; 26663 "") 26664 # If it fails, then pretend we aren't using GCC. 26665 ac_prog=ld 26666 ;; 26667 *) 26668 # If it is relative, then search for the first ld in PATH. 26669 with_gnu_ld=unknown 26670 ;; 26671 esac 26672elif test "$with_gnu_ld" = yes; then 26673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 26674$as_echo_n "checking for GNU ld... " >&6; } 26675else 26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 26677$as_echo_n "checking for non-GNU ld... " >&6; } 26678fi 26679if ${lt_cv_path_LD+:} false; then : 26680 $as_echo_n "(cached) " >&6 26681else 26682 if test -z "$LD"; then 26683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 26684 for ac_dir in $PATH; do 26685 IFS="$lt_save_ifs" 26686 test -z "$ac_dir" && ac_dir=. 26687 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 26688 lt_cv_path_LD="$ac_dir/$ac_prog" 26689 # Check to see if the program is GNU ld. I'd rather use --version, 26690 # but apparently some variants of GNU ld only accept -v. 26691 # Break only if it was the GNU/non-GNU ld that we prefer. 26692 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 26693 *GNU* | *'with BFD'*) 26694 test "$with_gnu_ld" != no && break 26695 ;; 26696 *) 26697 test "$with_gnu_ld" != yes && break 26698 ;; 26699 esac 26700 fi 26701 done 26702 IFS="$lt_save_ifs" 26703else 26704 lt_cv_path_LD="$LD" # Let the user override the test with a path. 26705fi 26706fi 26707 26708LD="$lt_cv_path_LD" 26709if test -n "$LD"; then 26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 26711$as_echo "$LD" >&6; } 26712else 26713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26714$as_echo "no" >&6; } 26715fi 26716test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 26717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 26718$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 26719if ${lt_cv_prog_gnu_ld+:} false; then : 26720 $as_echo_n "(cached) " >&6 26721else 26722 # I'd rather use --version here, but apparently some GNU lds only accept -v. 26723case `$LD -v 2>&1 </dev/null` in 26724*GNU* | *'with BFD'*) 26725 lt_cv_prog_gnu_ld=yes 26726 ;; 26727*) 26728 lt_cv_prog_gnu_ld=no 26729 ;; 26730esac 26731fi 26732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 26733$as_echo "$lt_cv_prog_gnu_ld" >&6; } 26734with_gnu_ld=$lt_cv_prog_gnu_ld 26735 26736 26737 26738 26739 26740 26741 26742 # Check if GNU C++ uses GNU ld as the underlying linker, since the 26743 # archiving commands below assume that GNU ld is being used. 26744 if test "$with_gnu_ld" = yes; then 26745 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 26746 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' 26747 26748 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 26749 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 26750 26751 # If archive_cmds runs LD, not CC, wlarc should be empty 26752 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 26753 # investigate it a little bit more. (MM) 26754 wlarc='${wl}' 26755 26756 # ancient GNU ld didn't support --whole-archive et. al. 26757 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 26758 $GREP 'no-whole-archive' > /dev/null; then 26759 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 26760 else 26761 whole_archive_flag_spec_CXX= 26762 fi 26763 else 26764 with_gnu_ld=no 26765 wlarc= 26766 26767 # A generic and very simple default shared library creation 26768 # command for GNU C++ for the case where it uses the native 26769 # linker, instead of GNU ld. If possible, this setting should 26770 # overridden to take advantage of the native linker features on 26771 # the platform it is being used on. 26772 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 26773 fi 26774 26775 # Commands to make compiler produce verbose output that lists 26776 # what "hidden" libraries, object files and flags are used when 26777 # linking a shared library. 26778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 26779 26780 else 26781 GXX=no 26782 with_gnu_ld=no 26783 wlarc= 26784 fi 26785 26786 # PORTME: fill in a description of your system's C++ link characteristics 26787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 26788$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 26789 ld_shlibs_CXX=yes 26790 case $host_os in 26791 aix3*) 26792 # FIXME: insert proper C++ library support 26793 ld_shlibs_CXX=no 26794 ;; 26795 aix[4-9]*) 26796 if test "$host_cpu" = ia64; then 26797 # On IA64, the linker does run time linking by default, so we don't 26798 # have to do anything special. 26799 aix_use_runtimelinking=no 26800 exp_sym_flag='-Bexport' 26801 no_entry_flag="" 26802 else 26803 aix_use_runtimelinking=no 26804 26805 # Test if we are trying to use run time linking or normal 26806 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 26807 # need to do runtime linking. 26808 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 26809 for ld_flag in $LDFLAGS; do 26810 case $ld_flag in 26811 *-brtl*) 26812 aix_use_runtimelinking=yes 26813 break 26814 ;; 26815 esac 26816 done 26817 ;; 26818 esac 26819 26820 exp_sym_flag='-bexport' 26821 no_entry_flag='-bnoentry' 26822 fi 26823 26824 # When large executables or shared objects are built, AIX ld can 26825 # have problems creating the table of contents. If linking a library 26826 # or program results in "error TOC overflow" add -mminimal-toc to 26827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 26828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 26829 26830 archive_cmds_CXX='' 26831 hardcode_direct_CXX=yes 26832 hardcode_direct_absolute_CXX=yes 26833 hardcode_libdir_separator_CXX=':' 26834 link_all_deplibs_CXX=yes 26835 file_list_spec_CXX='${wl}-f,' 26836 26837 if test "$GXX" = yes; then 26838 case $host_os in aix4.[012]|aix4.[012].*) 26839 # We only want to do this on AIX 4.2 and lower, the check 26840 # below for broken collect2 doesn't work under 4.3+ 26841 collect2name=`${CC} -print-prog-name=collect2` 26842 if test -f "$collect2name" && 26843 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 26844 then 26845 # We have reworked collect2 26846 : 26847 else 26848 # We have old collect2 26849 hardcode_direct_CXX=unsupported 26850 # It fails to find uninstalled libraries when the uninstalled 26851 # path is not listed in the libpath. Setting hardcode_minus_L 26852 # to unsupported forces relinking 26853 hardcode_minus_L_CXX=yes 26854 hardcode_libdir_flag_spec_CXX='-L$libdir' 26855 hardcode_libdir_separator_CXX= 26856 fi 26857 esac 26858 shared_flag='-shared' 26859 if test "$aix_use_runtimelinking" = yes; then 26860 shared_flag="$shared_flag "'${wl}-G' 26861 fi 26862 else 26863 # not using gcc 26864 if test "$host_cpu" = ia64; then 26865 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 26866 # chokes on -Wl,-G. The following line is correct: 26867 shared_flag='-G' 26868 else 26869 if test "$aix_use_runtimelinking" = yes; then 26870 shared_flag='${wl}-G' 26871 else 26872 shared_flag='${wl}-bM:SRE' 26873 fi 26874 fi 26875 fi 26876 26877 export_dynamic_flag_spec_CXX='${wl}-bexpall' 26878 # It seems that -bexpall does not export symbols beginning with 26879 # underscore (_), so it is better to generate a list of symbols to 26880 # export. 26881 always_export_symbols_CXX=yes 26882 if test "$aix_use_runtimelinking" = yes; then 26883 # Warning - without using the other runtime loading flags (-brtl), 26884 # -berok will link without error, but may produce a broken library. 26885 allow_undefined_flag_CXX='-berok' 26886 # Determine the default libpath from the value encoded in an empty 26887 # executable. 26888 if test "${lt_cv_aix_libpath+set}" = set; then 26889 aix_libpath=$lt_cv_aix_libpath 26890else 26891 if ${lt_cv_aix_libpath__CXX+:} false; then : 26892 $as_echo_n "(cached) " >&6 26893else 26894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26895/* end confdefs.h. */ 26896 26897int 26898main () 26899{ 26900 26901 ; 26902 return 0; 26903} 26904_ACEOF 26905if ac_fn_cxx_try_link "$LINENO"; then : 26906 26907 lt_aix_libpath_sed=' 26908 /Import File Strings/,/^$/ { 26909 /^0/ { 26910 s/^0 *\([^ ]*\) *$/\1/ 26911 p 26912 } 26913 }' 26914 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 26915 # Check for a 64-bit object if we didn't find anything. 26916 if test -z "$lt_cv_aix_libpath__CXX"; then 26917 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 26918 fi 26919fi 26920rm -f core conftest.err conftest.$ac_objext \ 26921 conftest$ac_exeext conftest.$ac_ext 26922 if test -z "$lt_cv_aix_libpath__CXX"; then 26923 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 26924 fi 26925 26926fi 26927 26928 aix_libpath=$lt_cv_aix_libpath__CXX 26929fi 26930 26931 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 26932 26933 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" 26934 else 26935 if test "$host_cpu" = ia64; then 26936 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 26937 allow_undefined_flag_CXX="-z nodefs" 26938 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" 26939 else 26940 # Determine the default libpath from the value encoded in an 26941 # empty executable. 26942 if test "${lt_cv_aix_libpath+set}" = set; then 26943 aix_libpath=$lt_cv_aix_libpath 26944else 26945 if ${lt_cv_aix_libpath__CXX+:} false; then : 26946 $as_echo_n "(cached) " >&6 26947else 26948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26949/* end confdefs.h. */ 26950 26951int 26952main () 26953{ 26954 26955 ; 26956 return 0; 26957} 26958_ACEOF 26959if ac_fn_cxx_try_link "$LINENO"; then : 26960 26961 lt_aix_libpath_sed=' 26962 /Import File Strings/,/^$/ { 26963 /^0/ { 26964 s/^0 *\([^ ]*\) *$/\1/ 26965 p 26966 } 26967 }' 26968 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 26969 # Check for a 64-bit object if we didn't find anything. 26970 if test -z "$lt_cv_aix_libpath__CXX"; then 26971 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 26972 fi 26973fi 26974rm -f core conftest.err conftest.$ac_objext \ 26975 conftest$ac_exeext conftest.$ac_ext 26976 if test -z "$lt_cv_aix_libpath__CXX"; then 26977 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 26978 fi 26979 26980fi 26981 26982 aix_libpath=$lt_cv_aix_libpath__CXX 26983fi 26984 26985 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 26986 # Warning - without using the other run time loading flags, 26987 # -berok will link without error, but may produce a broken library. 26988 no_undefined_flag_CXX=' ${wl}-bernotok' 26989 allow_undefined_flag_CXX=' ${wl}-berok' 26990 if test "$with_gnu_ld" = yes; then 26991 # We only use this code for GNU lds that support --whole-archive. 26992 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 26993 else 26994 # Exported symbols can be pulled into shared objects from archives 26995 whole_archive_flag_spec_CXX='$convenience' 26996 fi 26997 archive_cmds_need_lc_CXX=yes 26998 # This is similar to how AIX traditionally builds its shared 26999 # libraries. 27000 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' 27001 fi 27002 fi 27003 ;; 27004 27005 beos*) 27006 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 27007 allow_undefined_flag_CXX=unsupported 27008 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 27009 # support --undefined. This deserves some investigation. FIXME 27010 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 27011 else 27012 ld_shlibs_CXX=no 27013 fi 27014 ;; 27015 27016 chorus*) 27017 case $cc_basename in 27018 *) 27019 # FIXME: insert proper C++ library support 27020 ld_shlibs_CXX=no 27021 ;; 27022 esac 27023 ;; 27024 27025 cygwin* | mingw* | pw32* | cegcc*) 27026 case $GXX,$cc_basename in 27027 ,cl* | no,cl*) 27028 # Native MSVC 27029 # hardcode_libdir_flag_spec is actually meaningless, as there is 27030 # no search path for DLLs. 27031 hardcode_libdir_flag_spec_CXX=' ' 27032 allow_undefined_flag_CXX=unsupported 27033 always_export_symbols_CXX=yes 27034 file_list_spec_CXX='@' 27035 # Tell ltmain to make .lib files, not .a files. 27036 libext=lib 27037 # Tell ltmain to make .dll files, not .so files. 27038 shrext_cmds=".dll" 27039 # FIXME: Setting linknames here is a bad hack. 27040 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 27041 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 27042 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 27043 else 27044 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 27045 fi~ 27046 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 27047 linknames=' 27048 # The linker will not automatically build a static lib if we build a DLL. 27049 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 27050 enable_shared_with_static_runtimes_CXX=yes 27051 # Don't use ranlib 27052 old_postinstall_cmds_CXX='chmod 644 $oldlib' 27053 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 27054 lt_tool_outputfile="@TOOL_OUTPUT@"~ 27055 case $lt_outputfile in 27056 *.exe|*.EXE) ;; 27057 *) 27058 lt_outputfile="$lt_outputfile.exe" 27059 lt_tool_outputfile="$lt_tool_outputfile.exe" 27060 ;; 27061 esac~ 27062 func_to_tool_file "$lt_outputfile"~ 27063 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 27064 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 27065 $RM "$lt_outputfile.manifest"; 27066 fi' 27067 ;; 27068 *) 27069 # g++ 27070 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 27071 # as there is no search path for DLLs. 27072 hardcode_libdir_flag_spec_CXX='-L$libdir' 27073 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 27074 allow_undefined_flag_CXX=unsupported 27075 always_export_symbols_CXX=no 27076 enable_shared_with_static_runtimes_CXX=yes 27077 27078 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 27079 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' 27080 # If the export-symbols file already is a .def file (1st line 27081 # is EXPORTS), use it as is; otherwise, prepend... 27082 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 27083 cp $export_symbols $output_objdir/$soname.def; 27084 else 27085 echo EXPORTS > $output_objdir/$soname.def; 27086 cat $export_symbols >> $output_objdir/$soname.def; 27087 fi~ 27088 $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' 27089 else 27090 ld_shlibs_CXX=no 27091 fi 27092 ;; 27093 esac 27094 ;; 27095 darwin* | rhapsody*) 27096 27097 27098 archive_cmds_need_lc_CXX=no 27099 hardcode_direct_CXX=no 27100 hardcode_automatic_CXX=yes 27101 hardcode_shlibpath_var_CXX=unsupported 27102 if test "$lt_cv_ld_force_load" = "yes"; then 27103 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\"`' 27104 else 27105 whole_archive_flag_spec_CXX='' 27106 fi 27107 link_all_deplibs_CXX=yes 27108 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 27109 case $cc_basename in 27110 ifort*) _lt_dar_can_shared=yes ;; 27111 *) _lt_dar_can_shared=$GCC ;; 27112 esac 27113 if test "$_lt_dar_can_shared" = "yes"; then 27114 output_verbose_link_cmd=func_echo_all 27115 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}" 27116 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 27117 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}" 27118 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}" 27119 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 27120 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}" 27121 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}" 27122 fi 27123 27124 else 27125 ld_shlibs_CXX=no 27126 fi 27127 27128 ;; 27129 27130 dgux*) 27131 case $cc_basename in 27132 ec++*) 27133 # FIXME: insert proper C++ library support 27134 ld_shlibs_CXX=no 27135 ;; 27136 ghcx*) 27137 # Green Hills C++ Compiler 27138 # FIXME: insert proper C++ library support 27139 ld_shlibs_CXX=no 27140 ;; 27141 *) 27142 # FIXME: insert proper C++ library support 27143 ld_shlibs_CXX=no 27144 ;; 27145 esac 27146 ;; 27147 27148 freebsd[12]*) 27149 # C++ shared libraries reported to be fairly broken before 27150 # switch to ELF 27151 ld_shlibs_CXX=no 27152 ;; 27153 27154 freebsd-elf*) 27155 archive_cmds_need_lc_CXX=no 27156 ;; 27157 27158 freebsd* | dragonfly*) 27159 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 27160 # conventions 27161 ld_shlibs_CXX=yes 27162 ;; 27163 27164 gnu*) 27165 ;; 27166 27167 haiku*) 27168 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 27169 link_all_deplibs_CXX=yes 27170 ;; 27171 27172 hpux9*) 27173 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 27174 hardcode_libdir_separator_CXX=: 27175 export_dynamic_flag_spec_CXX='${wl}-E' 27176 hardcode_direct_CXX=yes 27177 hardcode_minus_L_CXX=yes # Not in the search PATH, 27178 # but as the default 27179 # location of the library. 27180 27181 case $cc_basename in 27182 CC*) 27183 # FIXME: insert proper C++ library support 27184 ld_shlibs_CXX=no 27185 ;; 27186 aCC*) 27187 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' 27188 # Commands to make compiler produce verbose output that lists 27189 # what "hidden" libraries, object files and flags are used when 27190 # linking a shared library. 27191 # 27192 # There doesn't appear to be a way to prevent this compiler from 27193 # explicitly linking system object files so we need to strip them 27194 # from the output so that they don't get included in the library 27195 # dependencies. 27196 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"' 27197 ;; 27198 *) 27199 if test "$GXX" = yes; then 27200 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' 27201 else 27202 # FIXME: insert proper C++ library support 27203 ld_shlibs_CXX=no 27204 fi 27205 ;; 27206 esac 27207 ;; 27208 27209 hpux10*|hpux11*) 27210 if test $with_gnu_ld = no; then 27211 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 27212 hardcode_libdir_separator_CXX=: 27213 27214 case $host_cpu in 27215 hppa*64*|ia64*) 27216 ;; 27217 *) 27218 export_dynamic_flag_spec_CXX='${wl}-E' 27219 ;; 27220 esac 27221 fi 27222 case $host_cpu in 27223 hppa*64*|ia64*) 27224 hardcode_direct_CXX=no 27225 hardcode_shlibpath_var_CXX=no 27226 ;; 27227 *) 27228 hardcode_direct_CXX=yes 27229 hardcode_direct_absolute_CXX=yes 27230 hardcode_minus_L_CXX=yes # Not in the search PATH, 27231 # but as the default 27232 # location of the library. 27233 ;; 27234 esac 27235 27236 case $cc_basename in 27237 CC*) 27238 # FIXME: insert proper C++ library support 27239 ld_shlibs_CXX=no 27240 ;; 27241 aCC*) 27242 case $host_cpu in 27243 hppa*64*) 27244 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 27245 ;; 27246 ia64*) 27247 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 27248 ;; 27249 *) 27250 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 27251 ;; 27252 esac 27253 # Commands to make compiler produce verbose output that lists 27254 # what "hidden" libraries, object files and flags are used when 27255 # linking a shared library. 27256 # 27257 # There doesn't appear to be a way to prevent this compiler from 27258 # explicitly linking system object files so we need to strip them 27259 # from the output so that they don't get included in the library 27260 # dependencies. 27261 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"' 27262 ;; 27263 *) 27264 if test "$GXX" = yes; then 27265 if test $with_gnu_ld = no; then 27266 case $host_cpu in 27267 hppa*64*) 27268 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 27269 ;; 27270 ia64*) 27271 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 27272 ;; 27273 *) 27274 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' 27275 ;; 27276 esac 27277 fi 27278 else 27279 # FIXME: insert proper C++ library support 27280 ld_shlibs_CXX=no 27281 fi 27282 ;; 27283 esac 27284 ;; 27285 27286 interix[3-9]*) 27287 hardcode_direct_CXX=no 27288 hardcode_shlibpath_var_CXX=no 27289 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 27290 export_dynamic_flag_spec_CXX='${wl}-E' 27291 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 27292 # Instead, shared libraries are loaded at an image base (0x10000000 by 27293 # default) and relocated if they conflict, which is a slow very memory 27294 # consuming and fragmenting process. To avoid this, we pick a random, 27295 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 27296 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 27297 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' 27298 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' 27299 ;; 27300 irix5* | irix6*) 27301 case $cc_basename in 27302 CC*) 27303 # SGI C++ 27304 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' 27305 27306 # Archives containing C++ object files must be created using 27307 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 27308 # necessary to make sure instantiated templates are included 27309 # in the archive. 27310 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 27311 ;; 27312 *) 27313 if test "$GXX" = yes; then 27314 if test "$with_gnu_ld" = no; then 27315 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' 27316 else 27317 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' 27318 fi 27319 fi 27320 link_all_deplibs_CXX=yes 27321 ;; 27322 esac 27323 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 27324 hardcode_libdir_separator_CXX=: 27325 inherit_rpath_CXX=yes 27326 ;; 27327 27328 linux* | k*bsd*-gnu | kopensolaris*-gnu) 27329 case $cc_basename in 27330 KCC*) 27331 # Kuck and Associates, Inc. (KAI) C++ Compiler 27332 27333 # KCC will only create a shared library if the output file 27334 # ends with ".so" (or ".sl" for HP-UX), so rename the library 27335 # to its proper name (with version) after linking. 27336 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' 27337 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' 27338 # Commands to make compiler produce verbose output that lists 27339 # what "hidden" libraries, object files and flags are used when 27340 # linking a shared library. 27341 # 27342 # There doesn't appear to be a way to prevent this compiler from 27343 # explicitly linking system object files so we need to strip them 27344 # from the output so that they don't get included in the library 27345 # dependencies. 27346 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"' 27347 27348 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 27349 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 27350 27351 # Archives containing C++ object files must be created using 27352 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 27353 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 27354 ;; 27355 icpc* | ecpc* ) 27356 # Intel C++ 27357 with_gnu_ld=yes 27358 # version 8.0 and above of icpc choke on multiply defined symbols 27359 # if we add $predep_objects and $postdep_objects, however 7.1 and 27360 # earlier do not add the objects themselves. 27361 case `$CC -V 2>&1` in 27362 *"Version 7."*) 27363 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 27364 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' 27365 ;; 27366 *) # Version 8.0 or newer 27367 tmp_idyn= 27368 case $host_cpu in 27369 ia64*) tmp_idyn=' -i_dynamic';; 27370 esac 27371 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 27372 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' 27373 ;; 27374 esac 27375 archive_cmds_need_lc_CXX=no 27376 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 27377 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 27378 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 27379 ;; 27380 pgCC* | pgcpp*) 27381 # Portland Group C++ compiler 27382 case `$CC -V` in 27383 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 27384 prelink_cmds_CXX='tpldir=Template.dir~ 27385 rm -rf $tpldir~ 27386 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 27387 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 27388 old_archive_cmds_CXX='tpldir=Template.dir~ 27389 rm -rf $tpldir~ 27390 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 27391 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 27392 $RANLIB $oldlib' 27393 archive_cmds_CXX='tpldir=Template.dir~ 27394 rm -rf $tpldir~ 27395 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 27396 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 27397 archive_expsym_cmds_CXX='tpldir=Template.dir~ 27398 rm -rf $tpldir~ 27399 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 27400 $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' 27401 ;; 27402 *) # Version 6 and above use weak symbols 27403 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 27404 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' 27405 ;; 27406 esac 27407 27408 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 27409 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 27410 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' 27411 ;; 27412 cxx*) 27413 # Compaq C++ 27414 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 27415 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' 27416 27417 runpath_var=LD_RUN_PATH 27418 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 27419 hardcode_libdir_separator_CXX=: 27420 27421 # Commands to make compiler produce verbose output that lists 27422 # what "hidden" libraries, object files and flags are used when 27423 # linking a shared library. 27424 # 27425 # There doesn't appear to be a way to prevent this compiler from 27426 # explicitly linking system object files so we need to strip them 27427 # from the output so that they don't get included in the library 27428 # dependencies. 27429 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' 27430 ;; 27431 xl* | mpixl* | bgxl*) 27432 # IBM XL 8.0 on PPC, with GNU ld 27433 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 27434 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 27435 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 27436 if test "x$supports_anon_versioning" = xyes; then 27437 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 27438 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 27439 echo "local: *; };" >> $output_objdir/$libname.ver~ 27440 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 27441 fi 27442 ;; 27443 *) 27444 case `$CC -V 2>&1 | sed 5q` in 27445 *Sun\ C*) 27446 # Sun C++ 5.9 27447 no_undefined_flag_CXX=' -zdefs' 27448 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 27449 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' 27450 hardcode_libdir_flag_spec_CXX='-R$libdir' 27451 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' 27452 compiler_needs_object_CXX=yes 27453 27454 # Not sure whether something based on 27455 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 27456 # would be better. 27457 output_verbose_link_cmd='func_echo_all' 27458 27459 # Archives containing C++ object files must be created using 27460 # "CC -xar", where "CC" is the Sun C++ compiler. This is 27461 # necessary to make sure instantiated templates are included 27462 # in the archive. 27463 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 27464 ;; 27465 esac 27466 ;; 27467 esac 27468 ;; 27469 27470 lynxos*) 27471 # FIXME: insert proper C++ library support 27472 ld_shlibs_CXX=no 27473 ;; 27474 27475 m88k*) 27476 # FIXME: insert proper C++ library support 27477 ld_shlibs_CXX=no 27478 ;; 27479 27480 mvs*) 27481 case $cc_basename in 27482 cxx*) 27483 # FIXME: insert proper C++ library support 27484 ld_shlibs_CXX=no 27485 ;; 27486 *) 27487 # FIXME: insert proper C++ library support 27488 ld_shlibs_CXX=no 27489 ;; 27490 esac 27491 ;; 27492 27493 netbsd*) 27494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 27495 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 27496 wlarc= 27497 hardcode_libdir_flag_spec_CXX='-R$libdir' 27498 hardcode_direct_CXX=yes 27499 hardcode_shlibpath_var_CXX=no 27500 fi 27501 # Workaround some broken pre-1.5 toolchains 27502 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 27503 ;; 27504 27505 *nto* | *qnx*) 27506 ld_shlibs_CXX=yes 27507 ;; 27508 27509 openbsd2*) 27510 # C++ shared libraries are fairly broken 27511 ld_shlibs_CXX=no 27512 ;; 27513 27514 openbsd*) 27515 if test -f /usr/libexec/ld.so; then 27516 hardcode_direct_CXX=yes 27517 hardcode_shlibpath_var_CXX=no 27518 hardcode_direct_absolute_CXX=yes 27519 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 27520 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 27521 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 27522 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 27523 export_dynamic_flag_spec_CXX='${wl}-E' 27524 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 27525 fi 27526 output_verbose_link_cmd=func_echo_all 27527 else 27528 ld_shlibs_CXX=no 27529 fi 27530 ;; 27531 27532 osf3* | osf4* | osf5*) 27533 case $cc_basename in 27534 KCC*) 27535 # Kuck and Associates, Inc. (KAI) C++ Compiler 27536 27537 # KCC will only create a shared library if the output file 27538 # ends with ".so" (or ".sl" for HP-UX), so rename the library 27539 # to its proper name (with version) after linking. 27540 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' 27541 27542 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 27543 hardcode_libdir_separator_CXX=: 27544 27545 # Archives containing C++ object files must be created using 27546 # the KAI C++ compiler. 27547 case $host in 27548 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 27549 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 27550 esac 27551 ;; 27552 RCC*) 27553 # Rational C++ 2.4.1 27554 # FIXME: insert proper C++ library support 27555 ld_shlibs_CXX=no 27556 ;; 27557 cxx*) 27558 case $host in 27559 osf3*) 27560 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 27561 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' 27562 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 27563 ;; 27564 *) 27565 allow_undefined_flag_CXX=' -expect_unresolved \*' 27566 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' 27567 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 27568 echo "-hidden">> $lib.exp~ 27569 $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~ 27570 $RM $lib.exp' 27571 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 27572 ;; 27573 esac 27574 27575 hardcode_libdir_separator_CXX=: 27576 27577 # Commands to make compiler produce verbose output that lists 27578 # what "hidden" libraries, object files and flags are used when 27579 # linking a shared library. 27580 # 27581 # There doesn't appear to be a way to prevent this compiler from 27582 # explicitly linking system object files so we need to strip them 27583 # from the output so that they don't get included in the library 27584 # dependencies. 27585 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"' 27586 ;; 27587 *) 27588 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 27589 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 27590 case $host in 27591 osf3*) 27592 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' 27593 ;; 27594 *) 27595 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' 27596 ;; 27597 esac 27598 27599 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 27600 hardcode_libdir_separator_CXX=: 27601 27602 # Commands to make compiler produce verbose output that lists 27603 # what "hidden" libraries, object files and flags are used when 27604 # linking a shared library. 27605 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 27606 27607 else 27608 # FIXME: insert proper C++ library support 27609 ld_shlibs_CXX=no 27610 fi 27611 ;; 27612 esac 27613 ;; 27614 27615 psos*) 27616 # FIXME: insert proper C++ library support 27617 ld_shlibs_CXX=no 27618 ;; 27619 27620 sunos4*) 27621 case $cc_basename in 27622 CC*) 27623 # Sun C++ 4.x 27624 # FIXME: insert proper C++ library support 27625 ld_shlibs_CXX=no 27626 ;; 27627 lcc*) 27628 # Lucid 27629 # FIXME: insert proper C++ library support 27630 ld_shlibs_CXX=no 27631 ;; 27632 *) 27633 # FIXME: insert proper C++ library support 27634 ld_shlibs_CXX=no 27635 ;; 27636 esac 27637 ;; 27638 27639 solaris*) 27640 case $cc_basename in 27641 CC* | sunCC*) 27642 # Sun C++ 4.2, 5.x and Centerline C++ 27643 archive_cmds_need_lc_CXX=yes 27644 no_undefined_flag_CXX=' -zdefs' 27645 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 27646 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 27647 $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' 27648 27649 hardcode_libdir_flag_spec_CXX='-R$libdir' 27650 hardcode_shlibpath_var_CXX=no 27651 case $host_os in 27652 solaris2.[0-5] | solaris2.[0-5].*) ;; 27653 *) 27654 # The compiler driver will combine and reorder linker options, 27655 # but understands `-z linker_flag'. 27656 # Supported since Solaris 2.6 (maybe 2.5.1?) 27657 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 27658 ;; 27659 esac 27660 link_all_deplibs_CXX=yes 27661 27662 output_verbose_link_cmd='func_echo_all' 27663 27664 # Archives containing C++ object files must be created using 27665 # "CC -xar", where "CC" is the Sun C++ compiler. This is 27666 # necessary to make sure instantiated templates are included 27667 # in the archive. 27668 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 27669 ;; 27670 gcx*) 27671 # Green Hills C++ Compiler 27672 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 27673 27674 # The C++ compiler must be used to create the archive. 27675 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 27676 ;; 27677 *) 27678 # GNU C++ compiler with Solaris linker 27679 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 27680 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 27681 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 27682 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 27683 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 27684 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 27685 27686 # Commands to make compiler produce verbose output that lists 27687 # what "hidden" libraries, object files and flags are used when 27688 # linking a shared library. 27689 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 27690 else 27691 # g++ 2.7 appears to require `-G' NOT `-shared' on this 27692 # platform. 27693 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 27694 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 27695 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 27696 27697 # Commands to make compiler produce verbose output that lists 27698 # what "hidden" libraries, object files and flags are used when 27699 # linking a shared library. 27700 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 27701 fi 27702 27703 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 27704 case $host_os in 27705 solaris2.[0-5] | solaris2.[0-5].*) ;; 27706 *) 27707 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 27708 ;; 27709 esac 27710 fi 27711 ;; 27712 esac 27713 ;; 27714 27715 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 27716 no_undefined_flag_CXX='${wl}-z,text' 27717 archive_cmds_need_lc_CXX=no 27718 hardcode_shlibpath_var_CXX=no 27719 runpath_var='LD_RUN_PATH' 27720 27721 case $cc_basename in 27722 CC*) 27723 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27724 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27725 ;; 27726 *) 27727 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27728 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27729 ;; 27730 esac 27731 ;; 27732 27733 sysv5* | sco3.2v5* | sco5v6*) 27734 # Note: We can NOT use -z defs as we might desire, because we do not 27735 # link with -lc, and that would cause any symbols used from libc to 27736 # always be unresolved, which means just about no library would 27737 # ever link correctly. If we're not using GNU ld we use -z text 27738 # though, which does catch some bad symbols but isn't as heavy-handed 27739 # as -z defs. 27740 no_undefined_flag_CXX='${wl}-z,text' 27741 allow_undefined_flag_CXX='${wl}-z,nodefs' 27742 archive_cmds_need_lc_CXX=no 27743 hardcode_shlibpath_var_CXX=no 27744 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 27745 hardcode_libdir_separator_CXX=':' 27746 link_all_deplibs_CXX=yes 27747 export_dynamic_flag_spec_CXX='${wl}-Bexport' 27748 runpath_var='LD_RUN_PATH' 27749 27750 case $cc_basename in 27751 CC*) 27752 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27753 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27754 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 27755 '"$old_archive_cmds_CXX" 27756 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 27757 '"$reload_cmds_CXX" 27758 ;; 27759 *) 27760 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27761 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27762 ;; 27763 esac 27764 ;; 27765 27766 tandem*) 27767 case $cc_basename in 27768 NCC*) 27769 # NonStop-UX NCC 3.20 27770 # FIXME: insert proper C++ library support 27771 ld_shlibs_CXX=no 27772 ;; 27773 *) 27774 # FIXME: insert proper C++ library support 27775 ld_shlibs_CXX=no 27776 ;; 27777 esac 27778 ;; 27779 27780 vxworks*) 27781 # FIXME: insert proper C++ library support 27782 ld_shlibs_CXX=no 27783 ;; 27784 27785 *) 27786 # FIXME: insert proper C++ library support 27787 ld_shlibs_CXX=no 27788 ;; 27789 esac 27790 27791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 27792$as_echo "$ld_shlibs_CXX" >&6; } 27793 test "$ld_shlibs_CXX" = no && can_build_shared=no 27794 27795 GCC_CXX="$GXX" 27796 LD_CXX="$LD" 27797 27798 ## CAVEAT EMPTOR: 27799 ## There is no encapsulation within the following macros, do not change 27800 ## the running order or otherwise move them around unless you know exactly 27801 ## what you are doing... 27802 # Dependencies to place before and after the object being linked: 27803predep_objects_CXX= 27804postdep_objects_CXX= 27805predeps_CXX= 27806postdeps_CXX= 27807compiler_lib_search_path_CXX= 27808 27809cat > conftest.$ac_ext <<_LT_EOF 27810class Foo 27811{ 27812public: 27813 Foo (void) { a = 0; } 27814private: 27815 int a; 27816}; 27817_LT_EOF 27818 27819 27820_lt_libdeps_save_CFLAGS=$CFLAGS 27821case "$CC $CFLAGS " in #( 27822*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 27823*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 27824esac 27825 27826if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 27827 (eval $ac_compile) 2>&5 27828 ac_status=$? 27829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27830 test $ac_status = 0; }; then 27831 # Parse the compiler output and extract the necessary 27832 # objects, libraries and library flags. 27833 27834 # Sentinel used to keep track of whether or not we are before 27835 # the conftest object file. 27836 pre_test_object_deps_done=no 27837 27838 for p in `eval "$output_verbose_link_cmd"`; do 27839 case ${prev}${p} in 27840 27841 -L* | -R* | -l*) 27842 # Some compilers place space between "-{L,R}" and the path. 27843 # Remove the space. 27844 if test $p = "-L" || 27845 test $p = "-R"; then 27846 prev=$p 27847 continue 27848 fi 27849 27850 # Expand the sysroot to ease extracting the directories later. 27851 if test -z "$prev"; then 27852 case $p in 27853 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 27854 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 27855 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 27856 esac 27857 fi 27858 case $p in 27859 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 27860 esac 27861 if test "$pre_test_object_deps_done" = no; then 27862 case ${prev} in 27863 -L | -R) 27864 # Internal compiler library paths should come after those 27865 # provided the user. The postdeps already come after the 27866 # user supplied libs so there is no need to process them. 27867 if test -z "$compiler_lib_search_path_CXX"; then 27868 compiler_lib_search_path_CXX="${prev}${p}" 27869 else 27870 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 27871 fi 27872 ;; 27873 # The "-l" case would never come before the object being 27874 # linked, so don't bother handling this case. 27875 esac 27876 else 27877 if test -z "$postdeps_CXX"; then 27878 postdeps_CXX="${prev}${p}" 27879 else 27880 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 27881 fi 27882 fi 27883 prev= 27884 ;; 27885 27886 *.lto.$objext) ;; # Ignore GCC LTO objects 27887 *.$objext) 27888 # This assumes that the test object file only shows up 27889 # once in the compiler output. 27890 if test "$p" = "conftest.$objext"; then 27891 pre_test_object_deps_done=yes 27892 continue 27893 fi 27894 27895 if test "$pre_test_object_deps_done" = no; then 27896 if test -z "$predep_objects_CXX"; then 27897 predep_objects_CXX="$p" 27898 else 27899 predep_objects_CXX="$predep_objects_CXX $p" 27900 fi 27901 else 27902 if test -z "$postdep_objects_CXX"; then 27903 postdep_objects_CXX="$p" 27904 else 27905 postdep_objects_CXX="$postdep_objects_CXX $p" 27906 fi 27907 fi 27908 ;; 27909 27910 *) ;; # Ignore the rest. 27911 27912 esac 27913 done 27914 27915 # Clean up. 27916 rm -f a.out a.exe 27917else 27918 echo "libtool.m4: error: problem compiling CXX test program" 27919fi 27920 27921$RM -f confest.$objext 27922CFLAGS=$_lt_libdeps_save_CFLAGS 27923 27924# PORTME: override above test on systems where it is broken 27925case $host_os in 27926interix[3-9]*) 27927 # Interix 3.5 installs completely hosed .la files for C++, so rather than 27928 # hack all around it, let's just trust "g++" to DTRT. 27929 predep_objects_CXX= 27930 postdep_objects_CXX= 27931 postdeps_CXX= 27932 ;; 27933 27934linux*) 27935 case `$CC -V 2>&1 | sed 5q` in 27936 *Sun\ C*) 27937 # Sun C++ 5.9 27938 27939 # The more standards-conforming stlport4 library is 27940 # incompatible with the Cstd library. Avoid specifying 27941 # it if it's in CXXFLAGS. Ignore libCrun as 27942 # -library=stlport4 depends on it. 27943 case " $CXX $CXXFLAGS " in 27944 *" -library=stlport4 "*) 27945 solaris_use_stlport4=yes 27946 ;; 27947 esac 27948 27949 if test "$solaris_use_stlport4" != yes; then 27950 postdeps_CXX='-library=Cstd -library=Crun' 27951 fi 27952 ;; 27953 esac 27954 ;; 27955 27956solaris*) 27957 case $cc_basename in 27958 CC* | sunCC*) 27959 # The more standards-conforming stlport4 library is 27960 # incompatible with the Cstd library. Avoid specifying 27961 # it if it's in CXXFLAGS. Ignore libCrun as 27962 # -library=stlport4 depends on it. 27963 case " $CXX $CXXFLAGS " in 27964 *" -library=stlport4 "*) 27965 solaris_use_stlport4=yes 27966 ;; 27967 esac 27968 27969 # Adding this requires a known-good setup of shared libraries for 27970 # Sun compiler versions before 5.6, else PIC objects from an old 27971 # archive will be linked into the output, leading to subtle bugs. 27972 if test "$solaris_use_stlport4" != yes; then 27973 postdeps_CXX='-library=Cstd -library=Crun' 27974 fi 27975 ;; 27976 esac 27977 ;; 27978esac 27979 27980 27981case " $postdeps_CXX " in 27982*" -lc "*) archive_cmds_need_lc_CXX=no ;; 27983esac 27984 compiler_lib_search_dirs_CXX= 27985if test -n "${compiler_lib_search_path_CXX}"; then 27986 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 27987fi 27988 27989 27990 27991 27992 27993 27994 27995 27996 27997 27998 27999 28000 28001 28002 28003 28004 28005 28006 28007 28008 28009 28010 28011 28012 28013 28014 28015 28016 28017 28018 28019 lt_prog_compiler_wl_CXX= 28020lt_prog_compiler_pic_CXX= 28021lt_prog_compiler_static_CXX= 28022 28023 28024 # C++ specific cases for pic, static, wl, etc. 28025 if test "$GXX" = yes; then 28026 lt_prog_compiler_wl_CXX='-Wl,' 28027 lt_prog_compiler_static_CXX='-static' 28028 28029 case $host_os in 28030 aix*) 28031 # All AIX code is PIC. 28032 if test "$host_cpu" = ia64; then 28033 # AIX 5 now supports IA64 processor 28034 lt_prog_compiler_static_CXX='-Bstatic' 28035 fi 28036 ;; 28037 28038 amigaos*) 28039 case $host_cpu in 28040 powerpc) 28041 # see comment about AmigaOS4 .so support 28042 lt_prog_compiler_pic_CXX='-fPIC' 28043 ;; 28044 m68k) 28045 # FIXME: we need at least 68020 code to build shared libraries, but 28046 # adding the `-m68020' flag to GCC prevents building anything better, 28047 # like `-m68040'. 28048 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 28049 ;; 28050 esac 28051 ;; 28052 28053 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 28054 # PIC is the default for these OSes. 28055 ;; 28056 mingw* | cygwin* | os2* | pw32* | cegcc*) 28057 # This hack is so that the source file can tell whether it is being 28058 # built for inclusion in a dll (and should export symbols for example). 28059 # Although the cygwin gcc ignores -fPIC, still need this for old-style 28060 # (--disable-auto-import) libraries 28061 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 28062 ;; 28063 darwin* | rhapsody*) 28064 # PIC is the default on this platform 28065 # Common symbols not allowed in MH_DYLIB files 28066 lt_prog_compiler_pic_CXX='-fno-common' 28067 ;; 28068 *djgpp*) 28069 # DJGPP does not support shared libraries at all 28070 lt_prog_compiler_pic_CXX= 28071 ;; 28072 haiku*) 28073 # PIC is the default for Haiku. 28074 # The "-static" flag exists, but is broken. 28075 lt_prog_compiler_static_CXX= 28076 ;; 28077 interix[3-9]*) 28078 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 28079 # Instead, we relocate shared libraries at runtime. 28080 ;; 28081 sysv4*MP*) 28082 if test -d /usr/nec; then 28083 lt_prog_compiler_pic_CXX=-Kconform_pic 28084 fi 28085 ;; 28086 hpux*) 28087 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 28088 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 28089 # sets the default TLS model and affects inlining. 28090 case $host_cpu in 28091 hppa*64*) 28092 ;; 28093 *) 28094 lt_prog_compiler_pic_CXX='-fPIC' 28095 ;; 28096 esac 28097 ;; 28098 *qnx* | *nto*) 28099 # QNX uses GNU C++, but need to define -shared option too, otherwise 28100 # it will coredump. 28101 lt_prog_compiler_pic_CXX='-fPIC -shared' 28102 ;; 28103 *) 28104 lt_prog_compiler_pic_CXX='-fPIC' 28105 ;; 28106 esac 28107 else 28108 case $host_os in 28109 aix[4-9]*) 28110 # All AIX code is PIC. 28111 if test "$host_cpu" = ia64; then 28112 # AIX 5 now supports IA64 processor 28113 lt_prog_compiler_static_CXX='-Bstatic' 28114 else 28115 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 28116 fi 28117 ;; 28118 chorus*) 28119 case $cc_basename in 28120 cxch68*) 28121 # Green Hills C++ Compiler 28122 # _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" 28123 ;; 28124 esac 28125 ;; 28126 mingw* | cygwin* | os2* | pw32* | cegcc*) 28127 # This hack is so that the source file can tell whether it is being 28128 # built for inclusion in a dll (and should export symbols for example). 28129 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 28130 ;; 28131 dgux*) 28132 case $cc_basename in 28133 ec++*) 28134 lt_prog_compiler_pic_CXX='-KPIC' 28135 ;; 28136 ghcx*) 28137 # Green Hills C++ Compiler 28138 lt_prog_compiler_pic_CXX='-pic' 28139 ;; 28140 *) 28141 ;; 28142 esac 28143 ;; 28144 freebsd* | dragonfly*) 28145 # FreeBSD uses GNU C++ 28146 ;; 28147 hpux9* | hpux10* | hpux11*) 28148 case $cc_basename in 28149 CC*) 28150 lt_prog_compiler_wl_CXX='-Wl,' 28151 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 28152 if test "$host_cpu" != ia64; then 28153 lt_prog_compiler_pic_CXX='+Z' 28154 fi 28155 ;; 28156 aCC*) 28157 lt_prog_compiler_wl_CXX='-Wl,' 28158 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 28159 case $host_cpu in 28160 hppa*64*|ia64*) 28161 # +Z the default 28162 ;; 28163 *) 28164 lt_prog_compiler_pic_CXX='+Z' 28165 ;; 28166 esac 28167 ;; 28168 *) 28169 ;; 28170 esac 28171 ;; 28172 interix*) 28173 # This is c89, which is MS Visual C++ (no shared libs) 28174 # Anyone wants to do a port? 28175 ;; 28176 irix5* | irix6* | nonstopux*) 28177 case $cc_basename in 28178 CC*) 28179 lt_prog_compiler_wl_CXX='-Wl,' 28180 lt_prog_compiler_static_CXX='-non_shared' 28181 # CC pic flag -KPIC is the default. 28182 ;; 28183 *) 28184 ;; 28185 esac 28186 ;; 28187 linux* | k*bsd*-gnu | kopensolaris*-gnu) 28188 case $cc_basename in 28189 KCC*) 28190 # KAI C++ Compiler 28191 lt_prog_compiler_wl_CXX='--backend -Wl,' 28192 lt_prog_compiler_pic_CXX='-fPIC' 28193 ;; 28194 ecpc* ) 28195 # old Intel C++ for x86_64 which still supported -KPIC. 28196 lt_prog_compiler_wl_CXX='-Wl,' 28197 lt_prog_compiler_pic_CXX='-KPIC' 28198 lt_prog_compiler_static_CXX='-static' 28199 ;; 28200 icpc* ) 28201 # Intel C++, used to be incompatible with GCC. 28202 # ICC 10 doesn't accept -KPIC any more. 28203 lt_prog_compiler_wl_CXX='-Wl,' 28204 lt_prog_compiler_pic_CXX='-fPIC' 28205 lt_prog_compiler_static_CXX='-static' 28206 ;; 28207 pgCC* | pgcpp*) 28208 # Portland Group C++ compiler 28209 lt_prog_compiler_wl_CXX='-Wl,' 28210 lt_prog_compiler_pic_CXX='-fpic' 28211 lt_prog_compiler_static_CXX='-Bstatic' 28212 ;; 28213 cxx*) 28214 # Compaq C++ 28215 # Make sure the PIC flag is empty. It appears that all Alpha 28216 # Linux and Compaq Tru64 Unix objects are PIC. 28217 lt_prog_compiler_pic_CXX= 28218 lt_prog_compiler_static_CXX='-non_shared' 28219 ;; 28220 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 28221 # IBM XL 8.0, 9.0 on PPC and BlueGene 28222 lt_prog_compiler_wl_CXX='-Wl,' 28223 lt_prog_compiler_pic_CXX='-qpic' 28224 lt_prog_compiler_static_CXX='-qstaticlink' 28225 ;; 28226 *) 28227 case `$CC -V 2>&1 | sed 5q` in 28228 *Sun\ C*) 28229 # Sun C++ 5.9 28230 lt_prog_compiler_pic_CXX='-KPIC' 28231 lt_prog_compiler_static_CXX='-Bstatic' 28232 lt_prog_compiler_wl_CXX='-Qoption ld ' 28233 ;; 28234 esac 28235 ;; 28236 esac 28237 ;; 28238 lynxos*) 28239 ;; 28240 m88k*) 28241 ;; 28242 mvs*) 28243 case $cc_basename in 28244 cxx*) 28245 lt_prog_compiler_pic_CXX='-W c,exportall' 28246 ;; 28247 *) 28248 ;; 28249 esac 28250 ;; 28251 netbsd*) 28252 ;; 28253 *qnx* | *nto*) 28254 # QNX uses GNU C++, but need to define -shared option too, otherwise 28255 # it will coredump. 28256 lt_prog_compiler_pic_CXX='-fPIC -shared' 28257 ;; 28258 osf3* | osf4* | osf5*) 28259 case $cc_basename in 28260 KCC*) 28261 lt_prog_compiler_wl_CXX='--backend -Wl,' 28262 ;; 28263 RCC*) 28264 # Rational C++ 2.4.1 28265 lt_prog_compiler_pic_CXX='-pic' 28266 ;; 28267 cxx*) 28268 # Digital/Compaq C++ 28269 lt_prog_compiler_wl_CXX='-Wl,' 28270 # Make sure the PIC flag is empty. It appears that all Alpha 28271 # Linux and Compaq Tru64 Unix objects are PIC. 28272 lt_prog_compiler_pic_CXX= 28273 lt_prog_compiler_static_CXX='-non_shared' 28274 ;; 28275 *) 28276 ;; 28277 esac 28278 ;; 28279 psos*) 28280 ;; 28281 solaris*) 28282 case $cc_basename in 28283 CC* | sunCC*) 28284 # Sun C++ 4.2, 5.x and Centerline C++ 28285 lt_prog_compiler_pic_CXX='-KPIC' 28286 lt_prog_compiler_static_CXX='-Bstatic' 28287 lt_prog_compiler_wl_CXX='-Qoption ld ' 28288 ;; 28289 gcx*) 28290 # Green Hills C++ Compiler 28291 lt_prog_compiler_pic_CXX='-PIC' 28292 ;; 28293 *) 28294 ;; 28295 esac 28296 ;; 28297 sunos4*) 28298 case $cc_basename in 28299 CC*) 28300 # Sun C++ 4.x 28301 lt_prog_compiler_pic_CXX='-pic' 28302 lt_prog_compiler_static_CXX='-Bstatic' 28303 ;; 28304 lcc*) 28305 # Lucid 28306 lt_prog_compiler_pic_CXX='-pic' 28307 ;; 28308 *) 28309 ;; 28310 esac 28311 ;; 28312 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 28313 case $cc_basename in 28314 CC*) 28315 lt_prog_compiler_wl_CXX='-Wl,' 28316 lt_prog_compiler_pic_CXX='-KPIC' 28317 lt_prog_compiler_static_CXX='-Bstatic' 28318 ;; 28319 esac 28320 ;; 28321 tandem*) 28322 case $cc_basename in 28323 NCC*) 28324 # NonStop-UX NCC 3.20 28325 lt_prog_compiler_pic_CXX='-KPIC' 28326 ;; 28327 *) 28328 ;; 28329 esac 28330 ;; 28331 vxworks*) 28332 ;; 28333 *) 28334 lt_prog_compiler_can_build_shared_CXX=no 28335 ;; 28336 esac 28337 fi 28338 28339case $host_os in 28340 # For platforms which do not support PIC, -DPIC is meaningless: 28341 *djgpp*) 28342 lt_prog_compiler_pic_CXX= 28343 ;; 28344 *) 28345 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 28346 ;; 28347esac 28348 28349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 28350$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 28351if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 28352 $as_echo_n "(cached) " >&6 28353else 28354 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 28355fi 28356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 28357$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 28358lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 28359 28360# 28361# Check to make sure the PIC flag actually works. 28362# 28363if test -n "$lt_prog_compiler_pic_CXX"; then 28364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 28365$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 28366if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 28367 $as_echo_n "(cached) " >&6 28368else 28369 lt_cv_prog_compiler_pic_works_CXX=no 28370 ac_outfile=conftest.$ac_objext 28371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 28372 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 28373 # Insert the option either (1) after the last *FLAGS variable, or 28374 # (2) before a word containing "conftest.", or (3) at the end. 28375 # Note that $ac_compile itself does not contain backslashes and begins 28376 # with a dollar sign (not a hyphen), so the echo should work correctly. 28377 # The option is referenced via a variable to avoid confusing sed. 28378 lt_compile=`echo "$ac_compile" | $SED \ 28379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 28380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 28381 -e 's:$: $lt_compiler_flag:'` 28382 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 28383 (eval "$lt_compile" 2>conftest.err) 28384 ac_status=$? 28385 cat conftest.err >&5 28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28387 if (exit $ac_status) && test -s "$ac_outfile"; then 28388 # The compiler can only warn and ignore the option if not recognized 28389 # So say no if there are warnings other than the usual output. 28390 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 28391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 28392 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 28393 lt_cv_prog_compiler_pic_works_CXX=yes 28394 fi 28395 fi 28396 $RM conftest* 28397 28398fi 28399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 28400$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 28401 28402if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 28403 case $lt_prog_compiler_pic_CXX in 28404 "" | " "*) ;; 28405 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 28406 esac 28407else 28408 lt_prog_compiler_pic_CXX= 28409 lt_prog_compiler_can_build_shared_CXX=no 28410fi 28411 28412fi 28413 28414 28415 28416 28417 28418# 28419# Check to make sure the static flag actually works. 28420# 28421wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 28422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 28423$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 28424if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 28425 $as_echo_n "(cached) " >&6 28426else 28427 lt_cv_prog_compiler_static_works_CXX=no 28428 save_LDFLAGS="$LDFLAGS" 28429 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 28430 echo "$lt_simple_link_test_code" > conftest.$ac_ext 28431 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 28432 # The linker can only warn and ignore the option if not recognized 28433 # So say no if there are warnings 28434 if test -s conftest.err; then 28435 # Append any errors to the config.log. 28436 cat conftest.err 1>&5 28437 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 28438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 28439 if diff conftest.exp conftest.er2 >/dev/null; then 28440 lt_cv_prog_compiler_static_works_CXX=yes 28441 fi 28442 else 28443 lt_cv_prog_compiler_static_works_CXX=yes 28444 fi 28445 fi 28446 $RM -r conftest* 28447 LDFLAGS="$save_LDFLAGS" 28448 28449fi 28450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 28451$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 28452 28453if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 28454 : 28455else 28456 lt_prog_compiler_static_CXX= 28457fi 28458 28459 28460 28461 28462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 28463$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 28464if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 28465 $as_echo_n "(cached) " >&6 28466else 28467 lt_cv_prog_compiler_c_o_CXX=no 28468 $RM -r conftest 2>/dev/null 28469 mkdir conftest 28470 cd conftest 28471 mkdir out 28472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 28473 28474 lt_compiler_flag="-o out/conftest2.$ac_objext" 28475 # Insert the option either (1) after the last *FLAGS variable, or 28476 # (2) before a word containing "conftest.", or (3) at the end. 28477 # Note that $ac_compile itself does not contain backslashes and begins 28478 # with a dollar sign (not a hyphen), so the echo should work correctly. 28479 lt_compile=`echo "$ac_compile" | $SED \ 28480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 28481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 28482 -e 's:$: $lt_compiler_flag:'` 28483 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 28484 (eval "$lt_compile" 2>out/conftest.err) 28485 ac_status=$? 28486 cat out/conftest.err >&5 28487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28488 if (exit $ac_status) && test -s out/conftest2.$ac_objext 28489 then 28490 # The compiler can only warn and ignore the option if not recognized 28491 # So say no if there are warnings 28492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 28493 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 28494 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 28495 lt_cv_prog_compiler_c_o_CXX=yes 28496 fi 28497 fi 28498 chmod u+w . 2>&5 28499 $RM conftest* 28500 # SGI C++ compiler will create directory out/ii_files/ for 28501 # template instantiation 28502 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 28503 $RM out/* && rmdir out 28504 cd .. 28505 $RM -r conftest 28506 $RM conftest* 28507 28508fi 28509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 28510$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 28511 28512 28513 28514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 28515$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 28516if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 28517 $as_echo_n "(cached) " >&6 28518else 28519 lt_cv_prog_compiler_c_o_CXX=no 28520 $RM -r conftest 2>/dev/null 28521 mkdir conftest 28522 cd conftest 28523 mkdir out 28524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 28525 28526 lt_compiler_flag="-o out/conftest2.$ac_objext" 28527 # Insert the option either (1) after the last *FLAGS variable, or 28528 # (2) before a word containing "conftest.", or (3) at the end. 28529 # Note that $ac_compile itself does not contain backslashes and begins 28530 # with a dollar sign (not a hyphen), so the echo should work correctly. 28531 lt_compile=`echo "$ac_compile" | $SED \ 28532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 28533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 28534 -e 's:$: $lt_compiler_flag:'` 28535 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 28536 (eval "$lt_compile" 2>out/conftest.err) 28537 ac_status=$? 28538 cat out/conftest.err >&5 28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28540 if (exit $ac_status) && test -s out/conftest2.$ac_objext 28541 then 28542 # The compiler can only warn and ignore the option if not recognized 28543 # So say no if there are warnings 28544 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 28545 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 28546 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 28547 lt_cv_prog_compiler_c_o_CXX=yes 28548 fi 28549 fi 28550 chmod u+w . 2>&5 28551 $RM conftest* 28552 # SGI C++ compiler will create directory out/ii_files/ for 28553 # template instantiation 28554 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 28555 $RM out/* && rmdir out 28556 cd .. 28557 $RM -r conftest 28558 $RM conftest* 28559 28560fi 28561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 28562$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 28563 28564 28565 28566 28567hard_links="nottested" 28568if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 28569 # do not overwrite the value of need_locks provided by the user 28570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 28571$as_echo_n "checking if we can lock with hard links... " >&6; } 28572 hard_links=yes 28573 $RM conftest* 28574 ln conftest.a conftest.b 2>/dev/null && hard_links=no 28575 touch conftest.a 28576 ln conftest.a conftest.b 2>&5 || hard_links=no 28577 ln conftest.a conftest.b 2>/dev/null && hard_links=no 28578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 28579$as_echo "$hard_links" >&6; } 28580 if test "$hard_links" = no; then 28581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 28582$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 28583 need_locks=warn 28584 fi 28585else 28586 need_locks=no 28587fi 28588 28589 28590 28591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 28592$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 28593 28594 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 28595 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 28596 case $host_os in 28597 aix[4-9]*) 28598 # If we're using GNU nm, then we don't want the "-C" option. 28599 # -C means demangle to AIX nm, but means don't demangle with GNU nm 28600 # Also, AIX nm treats weak defined symbols like other global defined 28601 # symbols, whereas GNU nm marks them as "W". 28602 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 28603 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' 28604 else 28605 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' 28606 fi 28607 ;; 28608 pw32*) 28609 export_symbols_cmds_CXX="$ltdll_cmds" 28610 ;; 28611 cygwin* | mingw* | cegcc*) 28612 case $cc_basename in 28613 cl*) ;; 28614 *) 28615 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' 28616 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 28617 ;; 28618 esac 28619 ;; 28620 *) 28621 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 28622 ;; 28623 esac 28624 28625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 28626$as_echo "$ld_shlibs_CXX" >&6; } 28627test "$ld_shlibs_CXX" = no && can_build_shared=no 28628 28629with_gnu_ld_CXX=$with_gnu_ld 28630 28631 28632 28633 28634 28635 28636# 28637# Do we need to explicitly link libc? 28638# 28639case "x$archive_cmds_need_lc_CXX" in 28640x|xyes) 28641 # Assume -lc should be added 28642 archive_cmds_need_lc_CXX=yes 28643 28644 if test "$enable_shared" = yes && test "$GCC" = yes; then 28645 case $archive_cmds_CXX in 28646 *'~'*) 28647 # FIXME: we may have to deal with multi-command sequences. 28648 ;; 28649 '$CC '*) 28650 # Test whether the compiler implicitly links with -lc since on some 28651 # systems, -lgcc has to come before -lc. If gcc already passes -lc 28652 # to ld, don't add -lc before -lgcc. 28653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 28654$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 28655if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 28656 $as_echo_n "(cached) " >&6 28657else 28658 $RM conftest* 28659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 28660 28661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 28662 (eval $ac_compile) 2>&5 28663 ac_status=$? 28664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28665 test $ac_status = 0; } 2>conftest.err; then 28666 soname=conftest 28667 lib=conftest 28668 libobjs=conftest.$ac_objext 28669 deplibs= 28670 wl=$lt_prog_compiler_wl_CXX 28671 pic_flag=$lt_prog_compiler_pic_CXX 28672 compiler_flags=-v 28673 linker_flags=-v 28674 verstring= 28675 output_objdir=. 28676 libname=conftest 28677 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 28678 allow_undefined_flag_CXX= 28679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 28680 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 28681 ac_status=$? 28682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28683 test $ac_status = 0; } 28684 then 28685 lt_cv_archive_cmds_need_lc_CXX=no 28686 else 28687 lt_cv_archive_cmds_need_lc_CXX=yes 28688 fi 28689 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 28690 else 28691 cat conftest.err 1>&5 28692 fi 28693 $RM conftest* 28694 28695fi 28696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 28697$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 28698 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 28699 ;; 28700 esac 28701 fi 28702 ;; 28703esac 28704 28705 28706 28707 28708 28709 28710 28711 28712 28713 28714 28715 28716 28717 28718 28719 28720 28721 28722 28723 28724 28725 28726 28727 28728 28729 28730 28731 28732 28733 28734 28735 28736 28737 28738 28739 28740 28741 28742 28743 28744 28745 28746 28747 28748 28749 28750 28751 28752 28753 28754 28755 28756 28757 28758 28759 28760 28761 28762 28763 28764 28765 28766 28767 28768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 28769$as_echo_n "checking dynamic linker characteristics... " >&6; } 28770 28771library_names_spec= 28772libname_spec='lib$name' 28773soname_spec= 28774shrext_cmds=".so" 28775postinstall_cmds= 28776postuninstall_cmds= 28777finish_cmds= 28778finish_eval= 28779shlibpath_var= 28780shlibpath_overrides_runpath=unknown 28781version_type=none 28782dynamic_linker="$host_os ld.so" 28783sys_lib_dlsearch_path_spec="/lib /usr/lib" 28784need_lib_prefix=unknown 28785hardcode_into_libs=no 28786 28787# when you set need_version to no, make sure it does not cause -set_version 28788# flags to be left without arguments 28789need_version=unknown 28790 28791case $host_os in 28792aix3*) 28793 version_type=linux 28794 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 28795 shlibpath_var=LIBPATH 28796 28797 # AIX 3 has no versioning support, so we append a major version to the name. 28798 soname_spec='${libname}${release}${shared_ext}$major' 28799 ;; 28800 28801aix[4-9]*) 28802 version_type=linux 28803 need_lib_prefix=no 28804 need_version=no 28805 hardcode_into_libs=yes 28806 if test "$host_cpu" = ia64; then 28807 # AIX 5 supports IA64 28808 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 28809 shlibpath_var=LD_LIBRARY_PATH 28810 else 28811 # With GCC up to 2.95.x, collect2 would create an import file 28812 # for dependence libraries. The import file would start with 28813 # the line `#! .'. This would cause the generated library to 28814 # depend on `.', always an invalid library. This was fixed in 28815 # development snapshots of GCC prior to 3.0. 28816 case $host_os in 28817 aix4 | aix4.[01] | aix4.[01].*) 28818 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 28819 echo ' yes ' 28820 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 28821 : 28822 else 28823 can_build_shared=no 28824 fi 28825 ;; 28826 esac 28827 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 28828 # soname into executable. Probably we can add versioning support to 28829 # collect2, so additional links can be useful in future. 28830 if test "$aix_use_runtimelinking" = yes; then 28831 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 28832 # instead of lib<name>.a to let people know that these are not 28833 # typical AIX shared libraries. 28834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28835 else 28836 # We preserve .a as extension for shared libraries through AIX4.2 28837 # and later when we are not doing run time linking. 28838 library_names_spec='${libname}${release}.a $libname.a' 28839 soname_spec='${libname}${release}${shared_ext}$major' 28840 fi 28841 shlibpath_var=LIBPATH 28842 fi 28843 ;; 28844 28845amigaos*) 28846 case $host_cpu in 28847 powerpc) 28848 # Since July 2007 AmigaOS4 officially supports .so libraries. 28849 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 28850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28851 ;; 28852 m68k) 28853 library_names_spec='$libname.ixlibrary $libname.a' 28854 # Create ${libname}_ixlibrary.a entries in /sys/libs. 28855 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' 28856 ;; 28857 esac 28858 ;; 28859 28860beos*) 28861 library_names_spec='${libname}${shared_ext}' 28862 dynamic_linker="$host_os ld.so" 28863 shlibpath_var=LIBRARY_PATH 28864 ;; 28865 28866bsdi[45]*) 28867 version_type=linux 28868 need_version=no 28869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28870 soname_spec='${libname}${release}${shared_ext}$major' 28871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 28872 shlibpath_var=LD_LIBRARY_PATH 28873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 28874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 28875 # the default ld.so.conf also contains /usr/contrib/lib and 28876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 28877 # libtool to hard-code these into programs 28878 ;; 28879 28880cygwin* | mingw* | pw32* | cegcc*) 28881 version_type=windows 28882 shrext_cmds=".dll" 28883 need_version=no 28884 need_lib_prefix=no 28885 28886 case $GCC,$cc_basename in 28887 yes,*) 28888 # gcc 28889 library_names_spec='$libname.dll.a' 28890 # DLL is installed to $(libdir)/../bin by postinstall_cmds 28891 postinstall_cmds='base_file=`basename \${file}`~ 28892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 28893 dldir=$destdir/`dirname \$dlpath`~ 28894 test -d \$dldir || mkdir -p \$dldir~ 28895 $install_prog $dir/$dlname \$dldir/$dlname~ 28896 chmod a+x \$dldir/$dlname~ 28897 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 28898 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 28899 fi' 28900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 28901 dlpath=$dir/\$dldll~ 28902 $RM \$dlpath' 28903 shlibpath_overrides_runpath=yes 28904 28905 case $host_os in 28906 cygwin*) 28907 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 28908 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 28909 28910 ;; 28911 mingw* | cegcc*) 28912 # MinGW DLLs use traditional 'lib' prefix 28913 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 28914 ;; 28915 pw32*) 28916 # pw32 DLLs use 'pw' prefix rather than 'lib' 28917 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 28918 ;; 28919 esac 28920 dynamic_linker='Win32 ld.exe' 28921 ;; 28922 28923 *,cl*) 28924 # Native MSVC 28925 libname_spec='$name' 28926 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 28927 library_names_spec='${libname}.dll.lib' 28928 28929 case $build_os in 28930 mingw*) 28931 sys_lib_search_path_spec= 28932 lt_save_ifs=$IFS 28933 IFS=';' 28934 for lt_path in $LIB 28935 do 28936 IFS=$lt_save_ifs 28937 # Let DOS variable expansion print the short 8.3 style file name. 28938 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 28939 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 28940 done 28941 IFS=$lt_save_ifs 28942 # Convert to MSYS style. 28943 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 28944 ;; 28945 cygwin*) 28946 # Convert to unix form, then to dos form, then back to unix form 28947 # but this time dos style (no spaces!) so that the unix form looks 28948 # like /cygdrive/c/PROGRA~1:/cygdr... 28949 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 28950 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 28951 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 28952 ;; 28953 *) 28954 sys_lib_search_path_spec="$LIB" 28955 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 28956 # It is most probably a Windows format PATH. 28957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 28958 else 28959 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 28960 fi 28961 # FIXME: find the short name or the path components, as spaces are 28962 # common. (e.g. "Program Files" -> "PROGRA~1") 28963 ;; 28964 esac 28965 28966 # DLL is installed to $(libdir)/../bin by postinstall_cmds 28967 postinstall_cmds='base_file=`basename \${file}`~ 28968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 28969 dldir=$destdir/`dirname \$dlpath`~ 28970 test -d \$dldir || mkdir -p \$dldir~ 28971 $install_prog $dir/$dlname \$dldir/$dlname' 28972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 28973 dlpath=$dir/\$dldll~ 28974 $RM \$dlpath' 28975 shlibpath_overrides_runpath=yes 28976 dynamic_linker='Win32 link.exe' 28977 ;; 28978 28979 *) 28980 # Assume MSVC wrapper 28981 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 28982 dynamic_linker='Win32 ld.exe' 28983 ;; 28984 esac 28985 # FIXME: first we should search . and the directory the executable is in 28986 shlibpath_var=PATH 28987 ;; 28988 28989darwin* | rhapsody*) 28990 dynamic_linker="$host_os dyld" 28991 version_type=darwin 28992 need_lib_prefix=no 28993 need_version=no 28994 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 28995 soname_spec='${libname}${release}${major}$shared_ext' 28996 shlibpath_overrides_runpath=yes 28997 shlibpath_var=DYLD_LIBRARY_PATH 28998 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 28999 29000 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 29001 ;; 29002 29003dgux*) 29004 version_type=linux 29005 need_lib_prefix=no 29006 need_version=no 29007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 29008 soname_spec='${libname}${release}${shared_ext}$major' 29009 shlibpath_var=LD_LIBRARY_PATH 29010 ;; 29011 29012freebsd1*) 29013 dynamic_linker=no 29014 ;; 29015 29016freebsd* | dragonfly*) 29017 # DragonFly does not have aout. When/if they implement a new 29018 # versioning mechanism, adjust this. 29019 if test -x /usr/bin/objformat; then 29020 objformat=`/usr/bin/objformat` 29021 else 29022 case $host_os in 29023 freebsd[123]*) objformat=aout ;; 29024 *) objformat=elf ;; 29025 esac 29026 fi 29027 version_type=freebsd-$objformat 29028 case $version_type in 29029 freebsd-elf*) 29030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 29031 need_version=no 29032 need_lib_prefix=no 29033 ;; 29034 freebsd-*) 29035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 29036 need_version=yes 29037 ;; 29038 esac 29039 shlibpath_var=LD_LIBRARY_PATH 29040 case $host_os in 29041 freebsd2*) 29042 shlibpath_overrides_runpath=yes 29043 ;; 29044 freebsd3.[01]* | freebsdelf3.[01]*) 29045 shlibpath_overrides_runpath=yes 29046 hardcode_into_libs=yes 29047 ;; 29048 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 29049 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 29050 shlibpath_overrides_runpath=no 29051 hardcode_into_libs=yes 29052 ;; 29053 *) # from 4.6 on, and DragonFly 29054 shlibpath_overrides_runpath=yes 29055 hardcode_into_libs=yes 29056 ;; 29057 esac 29058 ;; 29059 29060gnu*) 29061 version_type=linux 29062 need_lib_prefix=no 29063 need_version=no 29064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 29065 soname_spec='${libname}${release}${shared_ext}$major' 29066 shlibpath_var=LD_LIBRARY_PATH 29067 hardcode_into_libs=yes 29068 ;; 29069 29070haiku*) 29071 version_type=linux 29072 need_lib_prefix=no 29073 need_version=no 29074 dynamic_linker="$host_os runtime_loader" 29075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 29076 soname_spec='${libname}${release}${shared_ext}$major' 29077 shlibpath_var=LIBRARY_PATH 29078 shlibpath_overrides_runpath=yes 29079 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 29080 hardcode_into_libs=yes 29081 ;; 29082 29083hpux9* | hpux10* | hpux11*) 29084 # Give a soname corresponding to the major version so that dld.sl refuses to 29085 # link against other versions. 29086 version_type=sunos 29087 need_lib_prefix=no 29088 need_version=no 29089 case $host_cpu in 29090 ia64*) 29091 shrext_cmds='.so' 29092 hardcode_into_libs=yes 29093 dynamic_linker="$host_os dld.so" 29094 shlibpath_var=LD_LIBRARY_PATH 29095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 29096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29097 soname_spec='${libname}${release}${shared_ext}$major' 29098 if test "X$HPUX_IA64_MODE" = X32; then 29099 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 29100 else 29101 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 29102 fi 29103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 29104 ;; 29105 hppa*64*) 29106 shrext_cmds='.sl' 29107 hardcode_into_libs=yes 29108 dynamic_linker="$host_os dld.sl" 29109 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 29110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 29111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29112 soname_spec='${libname}${release}${shared_ext}$major' 29113 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 29114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 29115 ;; 29116 *) 29117 shrext_cmds='.sl' 29118 dynamic_linker="$host_os dld.sl" 29119 shlibpath_var=SHLIB_PATH 29120 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 29121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29122 soname_spec='${libname}${release}${shared_ext}$major' 29123 ;; 29124 esac 29125 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 29126 postinstall_cmds='chmod 555 $lib' 29127 # or fails outright, so override atomically: 29128 install_override_mode=555 29129 ;; 29130 29131interix[3-9]*) 29132 version_type=linux 29133 need_lib_prefix=no 29134 need_version=no 29135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 29136 soname_spec='${libname}${release}${shared_ext}$major' 29137 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 29138 shlibpath_var=LD_LIBRARY_PATH 29139 shlibpath_overrides_runpath=no 29140 hardcode_into_libs=yes 29141 ;; 29142 29143irix5* | irix6* | nonstopux*) 29144 case $host_os in 29145 nonstopux*) version_type=nonstopux ;; 29146 *) 29147 if test "$lt_cv_prog_gnu_ld" = yes; then 29148 version_type=linux 29149 else 29150 version_type=irix 29151 fi ;; 29152 esac 29153 need_lib_prefix=no 29154 need_version=no 29155 soname_spec='${libname}${release}${shared_ext}$major' 29156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 29157 case $host_os in 29158 irix5* | nonstopux*) 29159 libsuff= shlibsuff= 29160 ;; 29161 *) 29162 case $LD in # libtool.m4 will add one of these switches to LD 29163 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 29164 libsuff= shlibsuff= libmagic=32-bit;; 29165 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 29166 libsuff=32 shlibsuff=N32 libmagic=N32;; 29167 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 29168 libsuff=64 shlibsuff=64 libmagic=64-bit;; 29169 *) libsuff= shlibsuff= libmagic=never-match;; 29170 esac 29171 ;; 29172 esac 29173 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 29174 shlibpath_overrides_runpath=no 29175 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 29176 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 29177 hardcode_into_libs=yes 29178 ;; 29179 29180# No shared lib support for Linux oldld, aout, or coff. 29181linux*oldld* | linux*aout* | linux*coff*) 29182 dynamic_linker=no 29183 ;; 29184 29185# This must be Linux ELF. 29186linux* | k*bsd*-gnu | kopensolaris*-gnu) 29187 version_type=linux 29188 need_lib_prefix=no 29189 need_version=no 29190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29191 soname_spec='${libname}${release}${shared_ext}$major' 29192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 29193 shlibpath_var=LD_LIBRARY_PATH 29194 shlibpath_overrides_runpath=no 29195 29196 # Some binutils ld are patched to set DT_RUNPATH 29197 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 29198 $as_echo_n "(cached) " >&6 29199else 29200 lt_cv_shlibpath_overrides_runpath=no 29201 save_LDFLAGS=$LDFLAGS 29202 save_libdir=$libdir 29203 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 29204 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 29205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29206/* end confdefs.h. */ 29207 29208int 29209main () 29210{ 29211 29212 ; 29213 return 0; 29214} 29215_ACEOF 29216if ac_fn_cxx_try_link "$LINENO"; then : 29217 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 29218 lt_cv_shlibpath_overrides_runpath=yes 29219fi 29220fi 29221rm -f core conftest.err conftest.$ac_objext \ 29222 conftest$ac_exeext conftest.$ac_ext 29223 LDFLAGS=$save_LDFLAGS 29224 libdir=$save_libdir 29225 29226fi 29227 29228 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 29229 29230 # This implies no fast_install, which is unacceptable. 29231 # Some rework will be needed to allow for fast_install 29232 # before this can be enabled. 29233 hardcode_into_libs=yes 29234 29235 # Append ld.so.conf contents to the search path 29236 if test -f /etc/ld.so.conf; then 29237 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' ' '` 29238 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 29239 fi 29240 29241 # We used to test for /lib/ld.so.1 and disable shared libraries on 29242 # powerpc, because MkLinux only supported shared libraries with the 29243 # GNU dynamic linker. Since this was broken with cross compilers, 29244 # most powerpc-linux boxes support dynamic linking these days and 29245 # people can always --disable-shared, the test was removed, and we 29246 # assume the GNU/Linux dynamic linker is in use. 29247 dynamic_linker='GNU/Linux ld.so' 29248 ;; 29249 29250netbsd*) 29251 version_type=sunos 29252 need_lib_prefix=no 29253 need_version=no 29254 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 29255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 29256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 29257 dynamic_linker='NetBSD (a.out) ld.so' 29258 else 29259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 29260 soname_spec='${libname}${release}${shared_ext}$major' 29261 dynamic_linker='NetBSD ld.elf_so' 29262 fi 29263 shlibpath_var=LD_LIBRARY_PATH 29264 shlibpath_overrides_runpath=yes 29265 hardcode_into_libs=yes 29266 ;; 29267 29268newsos6) 29269 version_type=linux 29270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29271 shlibpath_var=LD_LIBRARY_PATH 29272 shlibpath_overrides_runpath=yes 29273 ;; 29274 29275*nto* | *qnx*) 29276 version_type=qnx 29277 need_lib_prefix=no 29278 need_version=no 29279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29280 soname_spec='${libname}${release}${shared_ext}$major' 29281 shlibpath_var=LD_LIBRARY_PATH 29282 shlibpath_overrides_runpath=no 29283 hardcode_into_libs=yes 29284 dynamic_linker='ldqnx.so' 29285 ;; 29286 29287openbsd*) 29288 version_type=sunos 29289 sys_lib_dlsearch_path_spec="/usr/lib" 29290 need_lib_prefix=no 29291 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 29292 case $host_os in 29293 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 29294 *) need_version=no ;; 29295 esac 29296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 29297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 29298 shlibpath_var=LD_LIBRARY_PATH 29299 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 29300 case $host_os in 29301 openbsd2.[89] | openbsd2.[89].*) 29302 shlibpath_overrides_runpath=no 29303 ;; 29304 *) 29305 shlibpath_overrides_runpath=yes 29306 ;; 29307 esac 29308 else 29309 shlibpath_overrides_runpath=yes 29310 fi 29311 ;; 29312 29313os2*) 29314 libname_spec='$name' 29315 shrext_cmds=".dll" 29316 need_lib_prefix=no 29317 library_names_spec='$libname${shared_ext} $libname.a' 29318 dynamic_linker='OS/2 ld.exe' 29319 shlibpath_var=LIBPATH 29320 ;; 29321 29322osf3* | osf4* | osf5*) 29323 version_type=osf 29324 need_lib_prefix=no 29325 need_version=no 29326 soname_spec='${libname}${release}${shared_ext}$major' 29327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29328 shlibpath_var=LD_LIBRARY_PATH 29329 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 29330 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 29331 ;; 29332 29333rdos*) 29334 dynamic_linker=no 29335 ;; 29336 29337solaris*) 29338 version_type=linux 29339 need_lib_prefix=no 29340 need_version=no 29341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29342 soname_spec='${libname}${release}${shared_ext}$major' 29343 shlibpath_var=LD_LIBRARY_PATH 29344 shlibpath_overrides_runpath=yes 29345 hardcode_into_libs=yes 29346 # ldd complains unless libraries are executable 29347 postinstall_cmds='chmod +x $lib' 29348 ;; 29349 29350sunos4*) 29351 version_type=sunos 29352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 29353 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 29354 shlibpath_var=LD_LIBRARY_PATH 29355 shlibpath_overrides_runpath=yes 29356 if test "$with_gnu_ld" = yes; then 29357 need_lib_prefix=no 29358 fi 29359 need_version=yes 29360 ;; 29361 29362sysv4 | sysv4.3*) 29363 version_type=linux 29364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29365 soname_spec='${libname}${release}${shared_ext}$major' 29366 shlibpath_var=LD_LIBRARY_PATH 29367 case $host_vendor in 29368 sni) 29369 shlibpath_overrides_runpath=no 29370 need_lib_prefix=no 29371 runpath_var=LD_RUN_PATH 29372 ;; 29373 siemens) 29374 need_lib_prefix=no 29375 ;; 29376 motorola) 29377 need_lib_prefix=no 29378 need_version=no 29379 shlibpath_overrides_runpath=no 29380 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 29381 ;; 29382 esac 29383 ;; 29384 29385sysv4*MP*) 29386 if test -d /usr/nec ;then 29387 version_type=linux 29388 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 29389 soname_spec='$libname${shared_ext}.$major' 29390 shlibpath_var=LD_LIBRARY_PATH 29391 fi 29392 ;; 29393 29394sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 29395 version_type=freebsd-elf 29396 need_lib_prefix=no 29397 need_version=no 29398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 29399 soname_spec='${libname}${release}${shared_ext}$major' 29400 shlibpath_var=LD_LIBRARY_PATH 29401 shlibpath_overrides_runpath=yes 29402 hardcode_into_libs=yes 29403 if test "$with_gnu_ld" = yes; then 29404 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 29405 else 29406 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 29407 case $host_os in 29408 sco3.2v5*) 29409 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 29410 ;; 29411 esac 29412 fi 29413 sys_lib_dlsearch_path_spec='/usr/lib' 29414 ;; 29415 29416tpf*) 29417 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 29418 version_type=linux 29419 need_lib_prefix=no 29420 need_version=no 29421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29422 shlibpath_var=LD_LIBRARY_PATH 29423 shlibpath_overrides_runpath=no 29424 hardcode_into_libs=yes 29425 ;; 29426 29427uts4*) 29428 version_type=linux 29429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 29430 soname_spec='${libname}${release}${shared_ext}$major' 29431 shlibpath_var=LD_LIBRARY_PATH 29432 ;; 29433 29434*) 29435 dynamic_linker=no 29436 ;; 29437esac 29438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 29439$as_echo "$dynamic_linker" >&6; } 29440test "$dynamic_linker" = no && can_build_shared=no 29441 29442variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 29443if test "$GCC" = yes; then 29444 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 29445fi 29446 29447if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 29448 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 29449fi 29450if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 29451 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 29452fi 29453 29454 29455 29456 29457 29458 29459 29460 29461 29462 29463 29464 29465 29466 29467 29468 29469 29470 29471 29472 29473 29474 29475 29476 29477 29478 29479 29480 29481 29482 29483 29484 29485 29486 29487 29488 29489 29490 29491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 29492$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 29493hardcode_action_CXX= 29494if test -n "$hardcode_libdir_flag_spec_CXX" || 29495 test -n "$runpath_var_CXX" || 29496 test "X$hardcode_automatic_CXX" = "Xyes" ; then 29497 29498 # We can hardcode non-existent directories. 29499 if test "$hardcode_direct_CXX" != no && 29500 # If the only mechanism to avoid hardcoding is shlibpath_var, we 29501 # have to relink, otherwise we might link with an installed library 29502 # when we should be linking with a yet-to-be-installed one 29503 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 29504 test "$hardcode_minus_L_CXX" != no; then 29505 # Linking always hardcodes the temporary library directory. 29506 hardcode_action_CXX=relink 29507 else 29508 # We can link without hardcoding, and we can hardcode nonexisting dirs. 29509 hardcode_action_CXX=immediate 29510 fi 29511else 29512 # We cannot hardcode anything, or else we can only hardcode existing 29513 # directories. 29514 hardcode_action_CXX=unsupported 29515fi 29516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 29517$as_echo "$hardcode_action_CXX" >&6; } 29518 29519if test "$hardcode_action_CXX" = relink || 29520 test "$inherit_rpath_CXX" = yes; then 29521 # Fast installation is not supported 29522 enable_fast_install=no 29523elif test "$shlibpath_overrides_runpath" = yes || 29524 test "$enable_shared" = no; then 29525 # Fast installation is not necessary 29526 enable_fast_install=needless 29527fi 29528 29529 29530 29531 29532 29533 29534 29535 fi # test -n "$compiler" 29536 29537 CC=$lt_save_CC 29538 CFLAGS=$lt_save_CFLAGS 29539 LDCXX=$LD 29540 LD=$lt_save_LD 29541 GCC=$lt_save_GCC 29542 with_gnu_ld=$lt_save_with_gnu_ld 29543 lt_cv_path_LDCXX=$lt_cv_path_LD 29544 lt_cv_path_LD=$lt_save_path_LD 29545 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 29546 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 29547fi # test "$_lt_caught_CXX_error" != yes 29548 29549ac_ext=c 29550ac_cpp='$CPP $CPPFLAGS' 29551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29553ac_compiler_gnu=$ac_cv_c_compiler_gnu 29554 29555 29556 29557gta=false 29558 29559# Check whether --with-gtest was given. 29560if test "${with_gtest+set}" = set; then : 29561 withval=$with_gtest; try_gtest=$withval 29562else 29563 try_gtest=yes 29564 29565fi 29566 29567case "$try_gtest" in 29568 yes) 29569 # Extract the first word of "gtest-config", so it can be a program name with args. 29570set dummy gtest-config; ac_word=$2 29571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29572$as_echo_n "checking for $ac_word... " >&6; } 29573if ${ac_cv_path_GTEST_CONFIG+:} false; then : 29574 $as_echo_n "(cached) " >&6 29575else 29576 case $GTEST_CONFIG in 29577 [\\/]* | ?:[\\/]*) 29578 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path. 29579 ;; 29580 *) 29581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29582for as_dir in $PATH 29583do 29584 IFS=$as_save_IFS 29585 test -z "$as_dir" && as_dir=. 29586 for ac_exec_ext in '' $ac_executable_extensions; do 29587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29588 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext" 29589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29590 break 2 29591 fi 29592done 29593 done 29594IFS=$as_save_IFS 29595 29596 ;; 29597esac 29598fi 29599GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG 29600if test -n "$GTEST_CONFIG"; then 29601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5 29602$as_echo "$GTEST_CONFIG" >&6; } 29603else 29604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29605$as_echo "no" >&6; } 29606fi 29607 29608 29609 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;} 29610 case x${GTEST_CONFIG} in 29611 x) ;; 29612 *) 29613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5 29614$as_echo_n "checking gtest version... " >&6; } 29615 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow` 29616 case "$gtest_version_test" in 29617 toolow*) 29618 ;; 29619 *) 29620 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags` 29621 GTEST_LIBS=`$GTEST_CONFIG --libs` 29622 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags` 29623 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags` 29624 29625 29626 29627 29628 gta=true 29629 ;; 29630 esac 29631 gtest_version=`$GTEST_CONFIG --version` 29632 case "$gta" in 29633 true) 29634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5 29635$as_echo "($gtest_version) ok" >&6; } 29636 ;; 29637 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5 29638$as_echo "($gtest_version) not ok" >&6; } 29639 ;; 29640 esac 29641 { gtest_version_test=; unset gtest_version_test;} 29642 { gtest_version=; unset gtest_version;} 29643 esac 29644esac 29645 if $gta; then 29646 GTEST_AVAILABLE_TRUE= 29647 GTEST_AVAILABLE_FALSE='#' 29648else 29649 GTEST_AVAILABLE_TRUE='#' 29650 GTEST_AVAILABLE_FALSE= 29651fi 29652 29653 29654 29655 29656# All libraries should be in various LIB_* variables now. 29657#LIBS= 29658# Sadly not. There is a gettext() check somewhere, and on Solaris this pulls 29659# in -lintl -lgen, outside our "scope". 29660 29661ac_config_files="$ac_config_files Makefile" 29662 29663ac_config_files="$ac_config_files include/Makefile" 29664 29665ac_config_files="$ac_config_files scripts/Makefile" 29666 29667ac_config_files="$ac_config_files tests/Makefile" 29668 29669 29670cat >confcache <<\_ACEOF 29671# This file is a shell script that caches the results of configure 29672# tests run on this system so they can be shared between configure 29673# scripts and configure runs, see configure's option --config-cache. 29674# It is not useful on other systems. If it contains results you don't 29675# want to keep, you may remove or edit it. 29676# 29677# config.status only pays attention to the cache file if you give it 29678# the --recheck option to rerun configure. 29679# 29680# `ac_cv_env_foo' variables (set or unset) will be overridden when 29681# loading this file, other *unset* `ac_cv_foo' will be assigned the 29682# following values. 29683 29684_ACEOF 29685 29686# The following way of writing the cache mishandles newlines in values, 29687# but we know of no workaround that is simple, portable, and efficient. 29688# So, we kill variables containing newlines. 29689# Ultrix sh set writes to stderr and can't be redirected directly, 29690# and sets the high bit in the cache file unless we assign to the vars. 29691( 29692 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 29693 eval ac_val=\$$ac_var 29694 case $ac_val in #( 29695 *${as_nl}*) 29696 case $ac_var in #( 29697 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 29698$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 29699 esac 29700 case $ac_var in #( 29701 _ | IFS | as_nl) ;; #( 29702 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 29703 *) { eval $ac_var=; unset $ac_var;} ;; 29704 esac ;; 29705 esac 29706 done 29707 29708 (set) 2>&1 | 29709 case $as_nl`(ac_space=' '; set) 2>&1` in #( 29710 *${as_nl}ac_space=\ *) 29711 # `set' does not quote correctly, so add quotes: double-quote 29712 # substitution turns \\\\ into \\, and sed turns \\ into \. 29713 sed -n \ 29714 "s/'/'\\\\''/g; 29715 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 29716 ;; #( 29717 *) 29718 # `set' quotes correctly as required by POSIX, so do not add quotes. 29719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 29720 ;; 29721 esac | 29722 sort 29723) | 29724 sed ' 29725 /^ac_cv_env_/b end 29726 t clear 29727 :clear 29728 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 29729 t end 29730 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 29731 :end' >>confcache 29732if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 29733 if test -w "$cache_file"; then 29734 if test "x$cache_file" != "x/dev/null"; then 29735 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 29736$as_echo "$as_me: updating cache $cache_file" >&6;} 29737 if test ! -f "$cache_file" || test -h "$cache_file"; then 29738 cat confcache >"$cache_file" 29739 else 29740 case $cache_file in #( 29741 */* | ?:*) 29742 mv -f confcache "$cache_file"$$ && 29743 mv -f "$cache_file"$$ "$cache_file" ;; #( 29744 *) 29745 mv -f confcache "$cache_file" ;; 29746 esac 29747 fi 29748 fi 29749 else 29750 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 29751$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 29752 fi 29753fi 29754rm -f confcache 29755 29756test "x$prefix" = xNONE && prefix=$ac_default_prefix 29757# Let make expand exec_prefix. 29758test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 29759 29760DEFS=-DHAVE_CONFIG_H 29761 29762ac_libobjs= 29763ac_ltlibobjs= 29764U= 29765for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 29766 # 1. Remove the extension, and $U if already installed. 29767 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 29768 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 29769 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 29770 # will be set to the directory where LIBOBJS objects are built. 29771 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 29772 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 29773done 29774LIBOBJS=$ac_libobjs 29775 29776LTLIBOBJS=$ac_ltlibobjs 29777 29778 29779 if test -n "$EXEEXT"; then 29780 am__EXEEXT_TRUE= 29781 am__EXEEXT_FALSE='#' 29782else 29783 am__EXEEXT_TRUE='#' 29784 am__EXEEXT_FALSE= 29785fi 29786 29787if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 29788 as_fn_error $? "conditional \"AMDEP\" was never defined. 29789Usually this means the macro was only invoked conditionally." "$LINENO" 5 29790fi 29791if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 29792 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 29793Usually this means the macro was only invoked conditionally." "$LINENO" 5 29794fi 29795if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 29796 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 29797Usually this means the macro was only invoked conditionally." "$LINENO" 5 29798fi 29799 29800if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then 29801 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined. 29802Usually this means the macro was only invoked conditionally." "$LINENO" 5 29803fi 29804if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then 29805 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined. 29806Usually this means the macro was only invoked conditionally." "$LINENO" 5 29807fi 29808if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 29809 as_fn_error $? "conditional \"PTHREADS\" was never defined. 29810Usually this means the macro was only invoked conditionally." "$LINENO" 5 29811fi 29812if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then 29813 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined. 29814Usually this means the macro was only invoked conditionally." "$LINENO" 5 29815fi 29816if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then 29817 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined. 29818Usually this means the macro was only invoked conditionally." "$LINENO" 5 29819fi 29820if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then 29821 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined. 29822Usually this means the macro was only invoked conditionally." "$LINENO" 5 29823fi 29824if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then 29825 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined. 29826Usually this means the macro was only invoked conditionally." "$LINENO" 5 29827fi 29828if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then 29829 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined. 29830Usually this means the macro was only invoked conditionally." "$LINENO" 5 29831fi 29832if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 29833 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 29834Usually this means the macro was only invoked conditionally." "$LINENO" 5 29835fi 29836if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then 29837 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined. 29838Usually this means the macro was only invoked conditionally." "$LINENO" 5 29839fi 29840 29841: "${CONFIG_STATUS=./config.status}" 29842ac_write_fail=0 29843ac_clean_files_save=$ac_clean_files 29844ac_clean_files="$ac_clean_files $CONFIG_STATUS" 29845{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 29846$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 29847as_write_fail=0 29848cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 29849#! $SHELL 29850# Generated by $as_me. 29851# Run this file to recreate the current configuration. 29852# Compiler output produced by configure, useful for debugging 29853# configure, is in config.log if it exists. 29854 29855debug=false 29856ac_cs_recheck=false 29857ac_cs_silent=false 29858 29859SHELL=\${CONFIG_SHELL-$SHELL} 29860export SHELL 29861_ASEOF 29862cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 29863## -------------------- ## 29864## M4sh Initialization. ## 29865## -------------------- ## 29866 29867# Be more Bourne compatible 29868DUALCASE=1; export DUALCASE # for MKS sh 29869if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 29870 emulate sh 29871 NULLCMD=: 29872 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29873 # is contrary to our usage. Disable this feature. 29874 alias -g '${1+"$@"}'='"$@"' 29875 setopt NO_GLOB_SUBST 29876else 29877 case `(set -o) 2>/dev/null` in #( 29878 *posix*) : 29879 set -o posix ;; #( 29880 *) : 29881 ;; 29882esac 29883fi 29884 29885 29886as_nl=' 29887' 29888export as_nl 29889# Printing a long string crashes Solaris 7 /usr/bin/printf. 29890as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 29891as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 29892as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 29893# Prefer a ksh shell builtin over an external printf program on Solaris, 29894# but without wasting forks for bash or zsh. 29895if test -z "$BASH_VERSION$ZSH_VERSION" \ 29896 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 29897 as_echo='print -r --' 29898 as_echo_n='print -rn --' 29899elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 29900 as_echo='printf %s\n' 29901 as_echo_n='printf %s' 29902else 29903 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 29904 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 29905 as_echo_n='/usr/ucb/echo -n' 29906 else 29907 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 29908 as_echo_n_body='eval 29909 arg=$1; 29910 case $arg in #( 29911 *"$as_nl"*) 29912 expr "X$arg" : "X\\(.*\\)$as_nl"; 29913 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 29914 esac; 29915 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 29916 ' 29917 export as_echo_n_body 29918 as_echo_n='sh -c $as_echo_n_body as_echo' 29919 fi 29920 export as_echo_body 29921 as_echo='sh -c $as_echo_body as_echo' 29922fi 29923 29924# The user is always right. 29925if test "${PATH_SEPARATOR+set}" != set; then 29926 PATH_SEPARATOR=: 29927 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 29928 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 29929 PATH_SEPARATOR=';' 29930 } 29931fi 29932 29933 29934# IFS 29935# We need space, tab and new line, in precisely that order. Quoting is 29936# there to prevent editors from complaining about space-tab. 29937# (If _AS_PATH_WALK were called with IFS unset, it would disable word 29938# splitting by setting IFS to empty value.) 29939IFS=" "" $as_nl" 29940 29941# Find who we are. Look in the path if we contain no directory separator. 29942as_myself= 29943case $0 in #(( 29944 *[\\/]* ) as_myself=$0 ;; 29945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29946for as_dir in $PATH 29947do 29948 IFS=$as_save_IFS 29949 test -z "$as_dir" && as_dir=. 29950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 29951 done 29952IFS=$as_save_IFS 29953 29954 ;; 29955esac 29956# We did not find ourselves, most probably we were run as `sh COMMAND' 29957# in which case we are not to be found in the path. 29958if test "x$as_myself" = x; then 29959 as_myself=$0 29960fi 29961if test ! -f "$as_myself"; then 29962 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 29963 exit 1 29964fi 29965 29966# Unset variables that we do not need and which cause bugs (e.g. in 29967# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 29968# suppresses any "Segmentation fault" message there. '((' could 29969# trigger a bug in pdksh 5.2.14. 29970for as_var in BASH_ENV ENV MAIL MAILPATH 29971do eval test x\${$as_var+set} = xset \ 29972 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 29973done 29974PS1='$ ' 29975PS2='> ' 29976PS4='+ ' 29977 29978# NLS nuisances. 29979LC_ALL=C 29980export LC_ALL 29981LANGUAGE=C 29982export LANGUAGE 29983 29984# CDPATH. 29985(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 29986 29987 29988# as_fn_error STATUS ERROR [LINENO LOG_FD] 29989# ---------------------------------------- 29990# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 29991# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 29992# script with STATUS, using 1 if that was 0. 29993as_fn_error () 29994{ 29995 as_status=$1; test $as_status -eq 0 && as_status=1 29996 if test "$4"; then 29997 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 29998 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 29999 fi 30000 $as_echo "$as_me: error: $2" >&2 30001 as_fn_exit $as_status 30002} # as_fn_error 30003 30004 30005# as_fn_set_status STATUS 30006# ----------------------- 30007# Set $? to STATUS, without forking. 30008as_fn_set_status () 30009{ 30010 return $1 30011} # as_fn_set_status 30012 30013# as_fn_exit STATUS 30014# ----------------- 30015# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 30016as_fn_exit () 30017{ 30018 set +e 30019 as_fn_set_status $1 30020 exit $1 30021} # as_fn_exit 30022 30023# as_fn_unset VAR 30024# --------------- 30025# Portably unset VAR. 30026as_fn_unset () 30027{ 30028 { eval $1=; unset $1;} 30029} 30030as_unset=as_fn_unset 30031# as_fn_append VAR VALUE 30032# ---------------------- 30033# Append the text in VALUE to the end of the definition contained in VAR. Take 30034# advantage of any shell optimizations that allow amortized linear growth over 30035# repeated appends, instead of the typical quadratic growth present in naive 30036# implementations. 30037if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 30038 eval 'as_fn_append () 30039 { 30040 eval $1+=\$2 30041 }' 30042else 30043 as_fn_append () 30044 { 30045 eval $1=\$$1\$2 30046 } 30047fi # as_fn_append 30048 30049# as_fn_arith ARG... 30050# ------------------ 30051# Perform arithmetic evaluation on the ARGs, and store the result in the 30052# global $as_val. Take advantage of shells that can avoid forks. The arguments 30053# must be portable across $(()) and expr. 30054if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 30055 eval 'as_fn_arith () 30056 { 30057 as_val=$(( $* )) 30058 }' 30059else 30060 as_fn_arith () 30061 { 30062 as_val=`expr "$@" || test $? -eq 1` 30063 } 30064fi # as_fn_arith 30065 30066 30067if expr a : '\(a\)' >/dev/null 2>&1 && 30068 test "X`expr 00001 : '.*\(...\)'`" = X001; then 30069 as_expr=expr 30070else 30071 as_expr=false 30072fi 30073 30074if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 30075 as_basename=basename 30076else 30077 as_basename=false 30078fi 30079 30080if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 30081 as_dirname=dirname 30082else 30083 as_dirname=false 30084fi 30085 30086as_me=`$as_basename -- "$0" || 30087$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 30088 X"$0" : 'X\(//\)$' \| \ 30089 X"$0" : 'X\(/\)' \| . 2>/dev/null || 30090$as_echo X/"$0" | 30091 sed '/^.*\/\([^/][^/]*\)\/*$/{ 30092 s//\1/ 30093 q 30094 } 30095 /^X\/\(\/\/\)$/{ 30096 s//\1/ 30097 q 30098 } 30099 /^X\/\(\/\).*/{ 30100 s//\1/ 30101 q 30102 } 30103 s/.*/./; q'` 30104 30105# Avoid depending upon Character Ranges. 30106as_cr_letters='abcdefghijklmnopqrstuvwxyz' 30107as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 30108as_cr_Letters=$as_cr_letters$as_cr_LETTERS 30109as_cr_digits='0123456789' 30110as_cr_alnum=$as_cr_Letters$as_cr_digits 30111 30112ECHO_C= ECHO_N= ECHO_T= 30113case `echo -n x` in #((((( 30114-n*) 30115 case `echo 'xy\c'` in 30116 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 30117 xy) ECHO_C='\c';; 30118 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 30119 ECHO_T=' ';; 30120 esac;; 30121*) 30122 ECHO_N='-n';; 30123esac 30124 30125rm -f conf$$ conf$$.exe conf$$.file 30126if test -d conf$$.dir; then 30127 rm -f conf$$.dir/conf$$.file 30128else 30129 rm -f conf$$.dir 30130 mkdir conf$$.dir 2>/dev/null 30131fi 30132if (echo >conf$$.file) 2>/dev/null; then 30133 if ln -s conf$$.file conf$$ 2>/dev/null; then 30134 as_ln_s='ln -s' 30135 # ... but there are two gotchas: 30136 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 30137 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 30138 # In both cases, we have to default to `cp -p'. 30139 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 30140 as_ln_s='cp -p' 30141 elif ln conf$$.file conf$$ 2>/dev/null; then 30142 as_ln_s=ln 30143 else 30144 as_ln_s='cp -p' 30145 fi 30146else 30147 as_ln_s='cp -p' 30148fi 30149rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 30150rmdir conf$$.dir 2>/dev/null 30151 30152 30153# as_fn_mkdir_p 30154# ------------- 30155# Create "$as_dir" as a directory, including parents if necessary. 30156as_fn_mkdir_p () 30157{ 30158 30159 case $as_dir in #( 30160 -*) as_dir=./$as_dir;; 30161 esac 30162 test -d "$as_dir" || eval $as_mkdir_p || { 30163 as_dirs= 30164 while :; do 30165 case $as_dir in #( 30166 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 30167 *) as_qdir=$as_dir;; 30168 esac 30169 as_dirs="'$as_qdir' $as_dirs" 30170 as_dir=`$as_dirname -- "$as_dir" || 30171$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30172 X"$as_dir" : 'X\(//\)[^/]' \| \ 30173 X"$as_dir" : 'X\(//\)$' \| \ 30174 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 30175$as_echo X"$as_dir" | 30176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30177 s//\1/ 30178 q 30179 } 30180 /^X\(\/\/\)[^/].*/{ 30181 s//\1/ 30182 q 30183 } 30184 /^X\(\/\/\)$/{ 30185 s//\1/ 30186 q 30187 } 30188 /^X\(\/\).*/{ 30189 s//\1/ 30190 q 30191 } 30192 s/.*/./; q'` 30193 test -d "$as_dir" && break 30194 done 30195 test -z "$as_dirs" || eval "mkdir $as_dirs" 30196 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 30197 30198 30199} # as_fn_mkdir_p 30200if mkdir -p . 2>/dev/null; then 30201 as_mkdir_p='mkdir -p "$as_dir"' 30202else 30203 test -d ./-p && rmdir ./-p 30204 as_mkdir_p=false 30205fi 30206 30207if test -x / >/dev/null 2>&1; then 30208 as_test_x='test -x' 30209else 30210 if ls -dL / >/dev/null 2>&1; then 30211 as_ls_L_option=L 30212 else 30213 as_ls_L_option= 30214 fi 30215 as_test_x=' 30216 eval sh -c '\'' 30217 if test -d "$1"; then 30218 test -d "$1/."; 30219 else 30220 case $1 in #( 30221 -*)set "./$1";; 30222 esac; 30223 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 30224 ???[sx]*):;;*)false;;esac;fi 30225 '\'' sh 30226 ' 30227fi 30228as_executable_p=$as_test_x 30229 30230# Sed expression to map a string onto a valid CPP name. 30231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 30232 30233# Sed expression to map a string onto a valid variable name. 30234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 30235 30236 30237exec 6>&1 30238## ----------------------------------- ## 30239## Main body of $CONFIG_STATUS script. ## 30240## ----------------------------------- ## 30241_ASEOF 30242test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 30243 30244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30245# Save the log message, to keep $0 and so on meaningful, and to 30246# report actual input values of CONFIG_FILES etc. instead of their 30247# values after options handling. 30248ac_log=" 30249This file was extended by sntp $as_me 4.2.7p404, which was 30250generated by GNU Autoconf 2.68. Invocation command line was 30251 30252 CONFIG_FILES = $CONFIG_FILES 30253 CONFIG_HEADERS = $CONFIG_HEADERS 30254 CONFIG_LINKS = $CONFIG_LINKS 30255 CONFIG_COMMANDS = $CONFIG_COMMANDS 30256 $ $0 $@ 30257 30258on `(hostname || uname -n) 2>/dev/null | sed 1q` 30259" 30260 30261_ACEOF 30262 30263case $ac_config_files in *" 30264"*) set x $ac_config_files; shift; ac_config_files=$*;; 30265esac 30266 30267case $ac_config_headers in *" 30268"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 30269esac 30270 30271 30272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30273# Files that config.status was made for. 30274config_files="$ac_config_files" 30275config_headers="$ac_config_headers" 30276config_commands="$ac_config_commands" 30277 30278_ACEOF 30279 30280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30281ac_cs_usage="\ 30282\`$as_me' instantiates files and other configuration actions 30283from templates according to the current configuration. Unless the files 30284and actions are specified as TAGs, all are instantiated by default. 30285 30286Usage: $0 [OPTION]... [TAG]... 30287 30288 -h, --help print this help, then exit 30289 -V, --version print version number and configuration settings, then exit 30290 --config print configuration, then exit 30291 -q, --quiet, --silent 30292 do not print progress messages 30293 -d, --debug don't remove temporary files 30294 --recheck update $as_me by reconfiguring in the same conditions 30295 --file=FILE[:TEMPLATE] 30296 instantiate the configuration file FILE 30297 --header=FILE[:TEMPLATE] 30298 instantiate the configuration header FILE 30299 30300Configuration files: 30301$config_files 30302 30303Configuration headers: 30304$config_headers 30305 30306Configuration commands: 30307$config_commands 30308 30309Report bugs to <http://bugs.ntp.org./>. 30310sntp home page: <http://www.ntp.org./>." 30311 30312_ACEOF 30313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30314ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 30315ac_cs_version="\\ 30316sntp config.status 4.2.7p404 30317configured by $0, generated by GNU Autoconf 2.68, 30318 with options \\"\$ac_cs_config\\" 30319 30320Copyright (C) 2010 Free Software Foundation, Inc. 30321This config.status script is free software; the Free Software Foundation 30322gives unlimited permission to copy, distribute and modify it." 30323 30324ac_pwd='$ac_pwd' 30325srcdir='$srcdir' 30326INSTALL='$INSTALL' 30327MKDIR_P='$MKDIR_P' 30328AWK='$AWK' 30329test -n "\$AWK" || AWK=awk 30330_ACEOF 30331 30332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30333# The default lists apply if the user does not specify any file. 30334ac_need_defaults=: 30335while test $# != 0 30336do 30337 case $1 in 30338 --*=?*) 30339 ac_option=`expr "X$1" : 'X\([^=]*\)='` 30340 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 30341 ac_shift=: 30342 ;; 30343 --*=) 30344 ac_option=`expr "X$1" : 'X\([^=]*\)='` 30345 ac_optarg= 30346 ac_shift=: 30347 ;; 30348 *) 30349 ac_option=$1 30350 ac_optarg=$2 30351 ac_shift=shift 30352 ;; 30353 esac 30354 30355 case $ac_option in 30356 # Handling of the options. 30357 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 30358 ac_cs_recheck=: ;; 30359 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 30360 $as_echo "$ac_cs_version"; exit ;; 30361 --config | --confi | --conf | --con | --co | --c ) 30362 $as_echo "$ac_cs_config"; exit ;; 30363 --debug | --debu | --deb | --de | --d | -d ) 30364 debug=: ;; 30365 --file | --fil | --fi | --f ) 30366 $ac_shift 30367 case $ac_optarg in 30368 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30369 '') as_fn_error $? "missing file argument" ;; 30370 esac 30371 as_fn_append CONFIG_FILES " '$ac_optarg'" 30372 ac_need_defaults=false;; 30373 --header | --heade | --head | --hea ) 30374 $ac_shift 30375 case $ac_optarg in 30376 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30377 esac 30378 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 30379 ac_need_defaults=false;; 30380 --he | --h) 30381 # Conflict between --help and --header 30382 as_fn_error $? "ambiguous option: \`$1' 30383Try \`$0 --help' for more information.";; 30384 --help | --hel | -h ) 30385 $as_echo "$ac_cs_usage"; exit ;; 30386 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 30387 | -silent | --silent | --silen | --sile | --sil | --si | --s) 30388 ac_cs_silent=: ;; 30389 30390 # This is an error. 30391 -*) as_fn_error $? "unrecognized option: \`$1' 30392Try \`$0 --help' for more information." ;; 30393 30394 *) as_fn_append ac_config_targets " $1" 30395 ac_need_defaults=false ;; 30396 30397 esac 30398 shift 30399done 30400 30401ac_configure_extra_args= 30402 30403if $ac_cs_silent; then 30404 exec 6>/dev/null 30405 ac_configure_extra_args="$ac_configure_extra_args --silent" 30406fi 30407 30408_ACEOF 30409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30410if \$ac_cs_recheck; then 30411 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 30412 shift 30413 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 30414 CONFIG_SHELL='$SHELL' 30415 export CONFIG_SHELL 30416 exec "\$@" 30417fi 30418 30419_ACEOF 30420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30421exec 5>>config.log 30422{ 30423 echo 30424 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 30425## Running $as_me. ## 30426_ASBOX 30427 $as_echo "$ac_log" 30428} >&5 30429 30430_ACEOF 30431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30432# 30433# INIT-COMMANDS 30434# 30435AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 30436 30437 30438# The HP-UX ksh and POSIX shell print the target directory to stdout 30439# if CDPATH is set. 30440(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 30441 30442sed_quote_subst='$sed_quote_subst' 30443double_quote_subst='$double_quote_subst' 30444delay_variable_subst='$delay_variable_subst' 30445enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 30446macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 30447macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 30448enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 30449pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 30450enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 30451SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 30452ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 30453host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 30454host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 30455host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 30456build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 30457build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 30458build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 30459SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 30460Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 30461GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 30462EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 30463FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 30464LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 30465NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 30466LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 30467max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 30468ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 30469exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 30470lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 30471lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 30472lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 30473lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 30474lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 30475reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 30476reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 30477OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 30478deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 30479file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 30480file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 30481want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 30482DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 30483sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 30484AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 30485AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 30486archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 30487STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 30488RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 30489old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 30490old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 30491old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 30492lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 30493CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 30494CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 30495compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 30496GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 30497lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 30498lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 30499lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 30500lt_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"`' 30501nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 30502lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 30503objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 30504MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 30505lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 30506lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 30507lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 30508lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 30509lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 30510need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 30511MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 30512DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 30513NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 30514LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 30515OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 30516OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 30517libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 30518shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 30519extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 30520archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 30521enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 30522export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 30523whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 30524compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 30525old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 30526old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 30527archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 30528archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 30529module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 30530module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 30531with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 30532allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 30533no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 30534hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 30535hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 30536hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 30537hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 30538hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 30539hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 30540hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 30541hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 30542inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 30543link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 30544always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 30545export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 30546exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 30547include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 30548prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 30549postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 30550file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 30551variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 30552need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 30553need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 30554version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 30555runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 30556shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 30557shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 30558libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 30559library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 30560soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 30561install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 30562postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 30563postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 30564finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 30565finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 30566hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 30567sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 30568sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 30569hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 30570enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 30571enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 30572enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 30573old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 30574striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 30575compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 30576predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 30577postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 30578predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 30579postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 30580compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 30581LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 30582reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 30583reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30584old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30585compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 30586GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 30587lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 30588lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 30589lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 30590lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 30591lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 30592archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 30593enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 30594export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 30595whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 30596compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 30597old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30598old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30599archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30600archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30601module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30602module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30603with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 30604allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 30605no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 30606hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 30607hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 30608hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 30609hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 30610hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 30611hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 30612hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 30613hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 30614inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 30615link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 30616always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 30617export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30618exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 30619include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 30620prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30621postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30622file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 30623hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 30624compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 30625predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 30626postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 30627predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 30628postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 30629compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 30630 30631LTCC='$LTCC' 30632LTCFLAGS='$LTCFLAGS' 30633compiler='$compiler_DEFAULT' 30634 30635# A function that is used when there is no print builtin or printf. 30636func_fallback_echo () 30637{ 30638 eval 'cat <<_LTECHO_EOF 30639\$1 30640_LTECHO_EOF' 30641} 30642 30643# Quote evaled strings. 30644for var in SHELL \ 30645ECHO \ 30646SED \ 30647GREP \ 30648EGREP \ 30649FGREP \ 30650LD \ 30651NM \ 30652LN_S \ 30653lt_SP2NL \ 30654lt_NL2SP \ 30655reload_flag \ 30656OBJDUMP \ 30657deplibs_check_method \ 30658file_magic_cmd \ 30659file_magic_glob \ 30660want_nocaseglob \ 30661DLLTOOL \ 30662sharedlib_from_linklib_cmd \ 30663AR \ 30664AR_FLAGS \ 30665archiver_list_spec \ 30666STRIP \ 30667RANLIB \ 30668CC \ 30669CFLAGS \ 30670compiler \ 30671lt_cv_sys_global_symbol_pipe \ 30672lt_cv_sys_global_symbol_to_cdecl \ 30673lt_cv_sys_global_symbol_to_c_name_address \ 30674lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 30675nm_file_list_spec \ 30676lt_prog_compiler_no_builtin_flag \ 30677lt_prog_compiler_pic \ 30678lt_prog_compiler_wl \ 30679lt_prog_compiler_static \ 30680lt_cv_prog_compiler_c_o \ 30681need_locks \ 30682MANIFEST_TOOL \ 30683DSYMUTIL \ 30684NMEDIT \ 30685LIPO \ 30686OTOOL \ 30687OTOOL64 \ 30688shrext_cmds \ 30689export_dynamic_flag_spec \ 30690whole_archive_flag_spec \ 30691compiler_needs_object \ 30692with_gnu_ld \ 30693allow_undefined_flag \ 30694no_undefined_flag \ 30695hardcode_libdir_flag_spec \ 30696hardcode_libdir_flag_spec_ld \ 30697hardcode_libdir_separator \ 30698exclude_expsyms \ 30699include_expsyms \ 30700file_list_spec \ 30701variables_saved_for_relink \ 30702libname_spec \ 30703library_names_spec \ 30704soname_spec \ 30705install_override_mode \ 30706finish_eval \ 30707old_striplib \ 30708striplib \ 30709compiler_lib_search_dirs \ 30710predep_objects \ 30711postdep_objects \ 30712predeps \ 30713postdeps \ 30714compiler_lib_search_path \ 30715LD_CXX \ 30716reload_flag_CXX \ 30717compiler_CXX \ 30718lt_prog_compiler_no_builtin_flag_CXX \ 30719lt_prog_compiler_pic_CXX \ 30720lt_prog_compiler_wl_CXX \ 30721lt_prog_compiler_static_CXX \ 30722lt_cv_prog_compiler_c_o_CXX \ 30723export_dynamic_flag_spec_CXX \ 30724whole_archive_flag_spec_CXX \ 30725compiler_needs_object_CXX \ 30726with_gnu_ld_CXX \ 30727allow_undefined_flag_CXX \ 30728no_undefined_flag_CXX \ 30729hardcode_libdir_flag_spec_CXX \ 30730hardcode_libdir_flag_spec_ld_CXX \ 30731hardcode_libdir_separator_CXX \ 30732exclude_expsyms_CXX \ 30733include_expsyms_CXX \ 30734file_list_spec_CXX \ 30735compiler_lib_search_dirs_CXX \ 30736predep_objects_CXX \ 30737postdep_objects_CXX \ 30738predeps_CXX \ 30739postdeps_CXX \ 30740compiler_lib_search_path_CXX; do 30741 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 30742 *[\\\\\\\`\\"\\\$]*) 30743 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 30744 ;; 30745 *) 30746 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 30747 ;; 30748 esac 30749done 30750 30751# Double-quote double-evaled strings. 30752for var in reload_cmds \ 30753old_postinstall_cmds \ 30754old_postuninstall_cmds \ 30755old_archive_cmds \ 30756extract_expsyms_cmds \ 30757old_archive_from_new_cmds \ 30758old_archive_from_expsyms_cmds \ 30759archive_cmds \ 30760archive_expsym_cmds \ 30761module_cmds \ 30762module_expsym_cmds \ 30763export_symbols_cmds \ 30764prelink_cmds \ 30765postlink_cmds \ 30766postinstall_cmds \ 30767postuninstall_cmds \ 30768finish_cmds \ 30769sys_lib_search_path_spec \ 30770sys_lib_dlsearch_path_spec \ 30771reload_cmds_CXX \ 30772old_archive_cmds_CXX \ 30773old_archive_from_new_cmds_CXX \ 30774old_archive_from_expsyms_cmds_CXX \ 30775archive_cmds_CXX \ 30776archive_expsym_cmds_CXX \ 30777module_cmds_CXX \ 30778module_expsym_cmds_CXX \ 30779export_symbols_cmds_CXX \ 30780prelink_cmds_CXX \ 30781postlink_cmds_CXX; do 30782 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 30783 *[\\\\\\\`\\"\\\$]*) 30784 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 30785 ;; 30786 *) 30787 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 30788 ;; 30789 esac 30790done 30791 30792ac_aux_dir='$ac_aux_dir' 30793xsi_shell='$xsi_shell' 30794lt_shell_append='$lt_shell_append' 30795 30796# See if we are running on zsh, and set the options which allow our 30797# commands through without removal of \ escapes INIT. 30798if test -n "\${ZSH_VERSION+set}" ; then 30799 setopt NO_GLOB_SUBST 30800fi 30801 30802 30803 PACKAGE='$PACKAGE' 30804 VERSION='$VERSION' 30805 TIMESTAMP='$TIMESTAMP' 30806 RM='$RM' 30807 ofile='$ofile' 30808 30809 30810 30811 30812 30813 30814_ACEOF 30815 30816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30817 30818# Handling of arguments. 30819for ac_config_target in $ac_config_targets 30820do 30821 case $ac_config_target in 30822 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 30823 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 30824 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 30825 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;; 30826 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 30827 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 30828 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 30829 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 30830 30831 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 30832 esac 30833done 30834 30835 30836# If the user did not use the arguments to specify the items to instantiate, 30837# then the envvar interface is used. Set only those that are not. 30838# We use the long form for the default assignment because of an extremely 30839# bizarre bug on SunOS 4.1.3. 30840if $ac_need_defaults; then 30841 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 30842 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 30843 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 30844fi 30845 30846# Have a temporary directory for convenience. Make it in the build tree 30847# simply because there is no reason against having it here, and in addition, 30848# creating and moving files from /tmp can sometimes cause problems. 30849# Hook for its removal unless debugging. 30850# Note that there is a small window in which the directory will not be cleaned: 30851# after its creation but before its name has been assigned to `$tmp'. 30852$debug || 30853{ 30854 tmp= ac_tmp= 30855 trap 'exit_status=$? 30856 : "${ac_tmp:=$tmp}" 30857 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 30858' 0 30859 trap 'as_fn_exit 1' 1 2 13 15 30860} 30861# Create a (secure) tmp directory for tmp files. 30862 30863{ 30864 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 30865 test -d "$tmp" 30866} || 30867{ 30868 tmp=./conf$$-$RANDOM 30869 (umask 077 && mkdir "$tmp") 30870} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 30871ac_tmp=$tmp 30872 30873# Set up the scripts for CONFIG_FILES section. 30874# No need to generate them if there are no CONFIG_FILES. 30875# This happens for instance with `./config.status config.h'. 30876if test -n "$CONFIG_FILES"; then 30877 30878 30879ac_cr=`echo X | tr X '\015'` 30880# On cygwin, bash can eat \r inside `` if the user requested igncr. 30881# But we know of no other shell where ac_cr would be empty at this 30882# point, so we can use a bashism as a fallback. 30883if test "x$ac_cr" = x; then 30884 eval ac_cr=\$\'\\r\' 30885fi 30886ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 30887if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 30888 ac_cs_awk_cr='\\r' 30889else 30890 ac_cs_awk_cr=$ac_cr 30891fi 30892 30893echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 30894_ACEOF 30895 30896 30897{ 30898 echo "cat >conf$$subs.awk <<_ACEOF" && 30899 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 30900 echo "_ACEOF" 30901} >conf$$subs.sh || 30902 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 30903ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 30904ac_delim='%!_!# ' 30905for ac_last_try in false false false false false :; do 30906 . ./conf$$subs.sh || 30907 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 30908 30909 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 30910 if test $ac_delim_n = $ac_delim_num; then 30911 break 30912 elif $ac_last_try; then 30913 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 30914 else 30915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 30916 fi 30917done 30918rm -f conf$$subs.sh 30919 30920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30921cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 30922_ACEOF 30923sed -n ' 30924h 30925s/^/S["/; s/!.*/"]=/ 30926p 30927g 30928s/^[^!]*!// 30929:repl 30930t repl 30931s/'"$ac_delim"'$// 30932t delim 30933:nl 30934h 30935s/\(.\{148\}\)..*/\1/ 30936t more1 30937s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 30938p 30939n 30940b repl 30941:more1 30942s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 30943p 30944g 30945s/.\{148\}// 30946t nl 30947:delim 30948h 30949s/\(.\{148\}\)..*/\1/ 30950t more2 30951s/["\\]/\\&/g; s/^/"/; s/$/"/ 30952p 30953b 30954:more2 30955s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 30956p 30957g 30958s/.\{148\}// 30959t delim 30960' <conf$$subs.awk | sed ' 30961/^[^""]/{ 30962 N 30963 s/\n// 30964} 30965' >>$CONFIG_STATUS || ac_write_fail=1 30966rm -f conf$$subs.awk 30967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30968_ACAWK 30969cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 30970 for (key in S) S_is_set[key] = 1 30971 FS = "" 30972 30973} 30974{ 30975 line = $ 0 30976 nfields = split(line, field, "@") 30977 substed = 0 30978 len = length(field[1]) 30979 for (i = 2; i < nfields; i++) { 30980 key = field[i] 30981 keylen = length(key) 30982 if (S_is_set[key]) { 30983 value = S[key] 30984 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 30985 len += length(value) + length(field[++i]) 30986 substed = 1 30987 } else 30988 len += 1 + keylen 30989 } 30990 30991 print line 30992} 30993 30994_ACAWK 30995_ACEOF 30996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30997if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 30998 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 30999else 31000 cat 31001fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 31002 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 31003_ACEOF 31004 31005# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 31006# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 31007# trailing colons and then remove the whole line if VPATH becomes empty 31008# (actually we leave an empty line to preserve line numbers). 31009if test "x$srcdir" = x.; then 31010 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 31011h 31012s/// 31013s/^/:/ 31014s/[ ]*$/:/ 31015s/:\$(srcdir):/:/g 31016s/:\${srcdir}:/:/g 31017s/:@srcdir@:/:/g 31018s/^:*// 31019s/:*$// 31020x 31021s/\(=[ ]*\).*/\1/ 31022G 31023s/\n// 31024s/^[^=]*=[ ]*$// 31025}' 31026fi 31027 31028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31029fi # test -n "$CONFIG_FILES" 31030 31031# Set up the scripts for CONFIG_HEADERS section. 31032# No need to generate them if there are no CONFIG_HEADERS. 31033# This happens for instance with `./config.status Makefile'. 31034if test -n "$CONFIG_HEADERS"; then 31035cat >"$ac_tmp/defines.awk" <<\_ACAWK || 31036BEGIN { 31037_ACEOF 31038 31039# Transform confdefs.h into an awk script `defines.awk', embedded as 31040# here-document in config.status, that substitutes the proper values into 31041# config.h.in to produce config.h. 31042 31043# Create a delimiter string that does not exist in confdefs.h, to ease 31044# handling of long lines. 31045ac_delim='%!_!# ' 31046for ac_last_try in false false :; do 31047 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 31048 if test -z "$ac_tt"; then 31049 break 31050 elif $ac_last_try; then 31051 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 31052 else 31053 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 31054 fi 31055done 31056 31057# For the awk script, D is an array of macro values keyed by name, 31058# likewise P contains macro parameters if any. Preserve backslash 31059# newline sequences. 31060 31061ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 31062sed -n ' 31063s/.\{148\}/&'"$ac_delim"'/g 31064t rset 31065:rset 31066s/^[ ]*#[ ]*define[ ][ ]*/ / 31067t def 31068d 31069:def 31070s/\\$// 31071t bsnl 31072s/["\\]/\\&/g 31073s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 31074D["\1"]=" \3"/p 31075s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 31076d 31077:bsnl 31078s/["\\]/\\&/g 31079s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 31080D["\1"]=" \3\\\\\\n"\\/p 31081t cont 31082s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 31083t cont 31084d 31085:cont 31086n 31087s/.\{148\}/&'"$ac_delim"'/g 31088t clear 31089:clear 31090s/\\$// 31091t bsnlc 31092s/["\\]/\\&/g; s/^/"/; s/$/"/p 31093d 31094:bsnlc 31095s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 31096b cont 31097' <confdefs.h | sed ' 31098s/'"$ac_delim"'/"\\\ 31099"/g' >>$CONFIG_STATUS || ac_write_fail=1 31100 31101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31102 for (key in D) D_is_set[key] = 1 31103 FS = "" 31104} 31105/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 31106 line = \$ 0 31107 split(line, arg, " ") 31108 if (arg[1] == "#") { 31109 defundef = arg[2] 31110 mac1 = arg[3] 31111 } else { 31112 defundef = substr(arg[1], 2) 31113 mac1 = arg[2] 31114 } 31115 split(mac1, mac2, "(") #) 31116 macro = mac2[1] 31117 prefix = substr(line, 1, index(line, defundef) - 1) 31118 if (D_is_set[macro]) { 31119 # Preserve the white space surrounding the "#". 31120 print prefix "define", macro P[macro] D[macro] 31121 next 31122 } else { 31123 # Replace #undef with comments. This is necessary, for example, 31124 # in the case of _POSIX_SOURCE, which is predefined and required 31125 # on some systems where configure will not decide to define it. 31126 if (defundef == "undef") { 31127 print "/*", prefix defundef, macro, "*/" 31128 next 31129 } 31130 } 31131} 31132{ print } 31133_ACAWK 31134_ACEOF 31135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31136 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 31137fi # test -n "$CONFIG_HEADERS" 31138 31139 31140eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 31141shift 31142for ac_tag 31143do 31144 case $ac_tag in 31145 :[FHLC]) ac_mode=$ac_tag; continue;; 31146 esac 31147 case $ac_mode$ac_tag in 31148 :[FHL]*:*);; 31149 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 31150 :[FH]-) ac_tag=-:-;; 31151 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 31152 esac 31153 ac_save_IFS=$IFS 31154 IFS=: 31155 set x $ac_tag 31156 IFS=$ac_save_IFS 31157 shift 31158 ac_file=$1 31159 shift 31160 31161 case $ac_mode in 31162 :L) ac_source=$1;; 31163 :[FH]) 31164 ac_file_inputs= 31165 for ac_f 31166 do 31167 case $ac_f in 31168 -) ac_f="$ac_tmp/stdin";; 31169 *) # Look for the file first in the build tree, then in the source tree 31170 # (if the path is not absolute). The absolute path cannot be DOS-style, 31171 # because $ac_f cannot contain `:'. 31172 test -f "$ac_f" || 31173 case $ac_f in 31174 [\\/$]*) false;; 31175 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 31176 esac || 31177 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 31178 esac 31179 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 31180 as_fn_append ac_file_inputs " '$ac_f'" 31181 done 31182 31183 # Let's still pretend it is `configure' which instantiates (i.e., don't 31184 # use $as_me), people would be surprised to read: 31185 # /* config.h. Generated by config.status. */ 31186 configure_input='Generated from '` 31187 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 31188 `' by configure.' 31189 if test x"$ac_file" != x-; then 31190 configure_input="$ac_file. $configure_input" 31191 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 31192$as_echo "$as_me: creating $ac_file" >&6;} 31193 fi 31194 # Neutralize special characters interpreted by sed in replacement strings. 31195 case $configure_input in #( 31196 *\&* | *\|* | *\\* ) 31197 ac_sed_conf_input=`$as_echo "$configure_input" | 31198 sed 's/[\\\\&|]/\\\\&/g'`;; #( 31199 *) ac_sed_conf_input=$configure_input;; 31200 esac 31201 31202 case $ac_tag in 31203 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 31204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 31205 esac 31206 ;; 31207 esac 31208 31209 ac_dir=`$as_dirname -- "$ac_file" || 31210$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31211 X"$ac_file" : 'X\(//\)[^/]' \| \ 31212 X"$ac_file" : 'X\(//\)$' \| \ 31213 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 31214$as_echo X"$ac_file" | 31215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31216 s//\1/ 31217 q 31218 } 31219 /^X\(\/\/\)[^/].*/{ 31220 s//\1/ 31221 q 31222 } 31223 /^X\(\/\/\)$/{ 31224 s//\1/ 31225 q 31226 } 31227 /^X\(\/\).*/{ 31228 s//\1/ 31229 q 31230 } 31231 s/.*/./; q'` 31232 as_dir="$ac_dir"; as_fn_mkdir_p 31233 ac_builddir=. 31234 31235case "$ac_dir" in 31236.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 31237*) 31238 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 31239 # A ".." for each directory in $ac_dir_suffix. 31240 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 31241 case $ac_top_builddir_sub in 31242 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 31243 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 31244 esac ;; 31245esac 31246ac_abs_top_builddir=$ac_pwd 31247ac_abs_builddir=$ac_pwd$ac_dir_suffix 31248# for backward compatibility: 31249ac_top_builddir=$ac_top_build_prefix 31250 31251case $srcdir in 31252 .) # We are building in place. 31253 ac_srcdir=. 31254 ac_top_srcdir=$ac_top_builddir_sub 31255 ac_abs_top_srcdir=$ac_pwd ;; 31256 [\\/]* | ?:[\\/]* ) # Absolute name. 31257 ac_srcdir=$srcdir$ac_dir_suffix; 31258 ac_top_srcdir=$srcdir 31259 ac_abs_top_srcdir=$srcdir ;; 31260 *) # Relative name. 31261 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 31262 ac_top_srcdir=$ac_top_build_prefix$srcdir 31263 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 31264esac 31265ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 31266 31267 31268 case $ac_mode in 31269 :F) 31270 # 31271 # CONFIG_FILE 31272 # 31273 31274 case $INSTALL in 31275 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 31276 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 31277 esac 31278 ac_MKDIR_P=$MKDIR_P 31279 case $MKDIR_P in 31280 [\\/$]* | ?:[\\/]* ) ;; 31281 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 31282 esac 31283_ACEOF 31284 31285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31286# If the template does not know about datarootdir, expand it. 31287# FIXME: This hack should be removed a few years after 2.60. 31288ac_datarootdir_hack=; ac_datarootdir_seen= 31289ac_sed_dataroot=' 31290/datarootdir/ { 31291 p 31292 q 31293} 31294/@datadir@/p 31295/@docdir@/p 31296/@infodir@/p 31297/@localedir@/p 31298/@mandir@/p' 31299case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 31300*datarootdir*) ac_datarootdir_seen=yes;; 31301*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 31302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 31303$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 31304_ACEOF 31305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31306 ac_datarootdir_hack=' 31307 s&@datadir@&$datadir&g 31308 s&@docdir@&$docdir&g 31309 s&@infodir@&$infodir&g 31310 s&@localedir@&$localedir&g 31311 s&@mandir@&$mandir&g 31312 s&\\\${datarootdir}&$datarootdir&g' ;; 31313esac 31314_ACEOF 31315 31316# Neutralize VPATH when `$srcdir' = `.'. 31317# Shell code in configure.ac might set extrasub. 31318# FIXME: do we really want to maintain this feature? 31319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31320ac_sed_extra="$ac_vpsub 31321$extrasub 31322_ACEOF 31323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31324:t 31325/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 31326s|@configure_input@|$ac_sed_conf_input|;t t 31327s&@top_builddir@&$ac_top_builddir_sub&;t t 31328s&@top_build_prefix@&$ac_top_build_prefix&;t t 31329s&@srcdir@&$ac_srcdir&;t t 31330s&@abs_srcdir@&$ac_abs_srcdir&;t t 31331s&@top_srcdir@&$ac_top_srcdir&;t t 31332s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 31333s&@builddir@&$ac_builddir&;t t 31334s&@abs_builddir@&$ac_abs_builddir&;t t 31335s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 31336s&@INSTALL@&$ac_INSTALL&;t t 31337s&@MKDIR_P@&$ac_MKDIR_P&;t t 31338$ac_datarootdir_hack 31339" 31340eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 31341 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31342 31343test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 31344 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 31345 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 31346 "$ac_tmp/out"`; test -z "$ac_out"; } && 31347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 31348which seems to be undefined. Please make sure it is defined" >&5 31349$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 31350which seems to be undefined. Please make sure it is defined" >&2;} 31351 31352 rm -f "$ac_tmp/stdin" 31353 case $ac_file in 31354 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 31355 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 31356 esac \ 31357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31358 ;; 31359 :H) 31360 # 31361 # CONFIG_HEADER 31362 # 31363 if test x"$ac_file" != x-; then 31364 { 31365 $as_echo "/* $configure_input */" \ 31366 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 31367 } >"$ac_tmp/config.h" \ 31368 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31369 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 31370 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 31371$as_echo "$as_me: $ac_file is unchanged" >&6;} 31372 else 31373 rm -f "$ac_file" 31374 mv "$ac_tmp/config.h" "$ac_file" \ 31375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31376 fi 31377 else 31378 $as_echo "/* $configure_input */" \ 31379 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 31380 || as_fn_error $? "could not create -" "$LINENO" 5 31381 fi 31382# Compute "$ac_file"'s index in $config_headers. 31383_am_arg="$ac_file" 31384_am_stamp_count=1 31385for _am_header in $config_headers :; do 31386 case $_am_header in 31387 $_am_arg | $_am_arg:* ) 31388 break ;; 31389 * ) 31390 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 31391 esac 31392done 31393echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 31394$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31395 X"$_am_arg" : 'X\(//\)[^/]' \| \ 31396 X"$_am_arg" : 'X\(//\)$' \| \ 31397 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 31398$as_echo X"$_am_arg" | 31399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31400 s//\1/ 31401 q 31402 } 31403 /^X\(\/\/\)[^/].*/{ 31404 s//\1/ 31405 q 31406 } 31407 /^X\(\/\/\)$/{ 31408 s//\1/ 31409 q 31410 } 31411 /^X\(\/\).*/{ 31412 s//\1/ 31413 q 31414 } 31415 s/.*/./; q'`/stamp-h$_am_stamp_count 31416 ;; 31417 31418 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 31419$as_echo "$as_me: executing $ac_file commands" >&6;} 31420 ;; 31421 esac 31422 31423 31424 case $ac_file$ac_mode in 31425 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 31426 # Autoconf 2.62 quotes --file arguments for eval, but not when files 31427 # are listed without --file. Let's play safe and only enable the eval 31428 # if we detect the quoting. 31429 case $CONFIG_FILES in 31430 *\'*) eval set x "$CONFIG_FILES" ;; 31431 *) set x $CONFIG_FILES ;; 31432 esac 31433 shift 31434 for mf 31435 do 31436 # Strip MF so we end up with the name of the file. 31437 mf=`echo "$mf" | sed -e 's/:.*$//'` 31438 # Check whether this is an Automake generated Makefile or not. 31439 # We used to match only the files named `Makefile.in', but 31440 # some people rename them; so instead we look at the file content. 31441 # Grep'ing the first line is not enough: some people post-process 31442 # each Makefile.in and add a new line on top of each file to say so. 31443 # Grep'ing the whole file is not good either: AIX grep has a line 31444 # limit of 2048, but all sed's we know have understand at least 4000. 31445 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 31446 dirpart=`$as_dirname -- "$mf" || 31447$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31448 X"$mf" : 'X\(//\)[^/]' \| \ 31449 X"$mf" : 'X\(//\)$' \| \ 31450 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 31451$as_echo X"$mf" | 31452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31453 s//\1/ 31454 q 31455 } 31456 /^X\(\/\/\)[^/].*/{ 31457 s//\1/ 31458 q 31459 } 31460 /^X\(\/\/\)$/{ 31461 s//\1/ 31462 q 31463 } 31464 /^X\(\/\).*/{ 31465 s//\1/ 31466 q 31467 } 31468 s/.*/./; q'` 31469 else 31470 continue 31471 fi 31472 # Extract the definition of DEPDIR, am__include, and am__quote 31473 # from the Makefile without running `make'. 31474 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 31475 test -z "$DEPDIR" && continue 31476 am__include=`sed -n 's/^am__include = //p' < "$mf"` 31477 test -z "am__include" && continue 31478 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 31479 # When using ansi2knr, U may be empty or an underscore; expand it 31480 U=`sed -n 's/^U = //p' < "$mf"` 31481 # Find all dependency output files, they are included files with 31482 # $(DEPDIR) in their names. We invoke sed twice because it is the 31483 # simplest approach to changing $(DEPDIR) to its actual value in the 31484 # expansion. 31485 for file in `sed -n " 31486 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 31487 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 31488 # Make sure the directory exists. 31489 test -f "$dirpart/$file" && continue 31490 fdir=`$as_dirname -- "$file" || 31491$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31492 X"$file" : 'X\(//\)[^/]' \| \ 31493 X"$file" : 'X\(//\)$' \| \ 31494 X"$file" : 'X\(/\)' \| . 2>/dev/null || 31495$as_echo X"$file" | 31496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31497 s//\1/ 31498 q 31499 } 31500 /^X\(\/\/\)[^/].*/{ 31501 s//\1/ 31502 q 31503 } 31504 /^X\(\/\/\)$/{ 31505 s//\1/ 31506 q 31507 } 31508 /^X\(\/\).*/{ 31509 s//\1/ 31510 q 31511 } 31512 s/.*/./; q'` 31513 as_dir=$dirpart/$fdir; as_fn_mkdir_p 31514 # echo "creating $dirpart/$file" 31515 echo '# dummy' > "$dirpart/$file" 31516 done 31517 done 31518} 31519 ;; 31520 "libtool":C) 31521 31522 # See if we are running on zsh, and set the options which allow our 31523 # commands through without removal of \ escapes. 31524 if test -n "${ZSH_VERSION+set}" ; then 31525 setopt NO_GLOB_SUBST 31526 fi 31527 31528 cfgfile="${ofile}T" 31529 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 31530 $RM "$cfgfile" 31531 31532 cat <<_LT_EOF >> "$cfgfile" 31533#! $SHELL 31534 31535# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 31536# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 31537# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 31538# NOTE: Changes made to this file will be lost: look at ltmain.sh. 31539# 31540# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 31541# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 31542# Inc. 31543# Written by Gordon Matzigkeit, 1996 31544# 31545# This file is part of GNU Libtool. 31546# 31547# GNU Libtool is free software; you can redistribute it and/or 31548# modify it under the terms of the GNU General Public License as 31549# published by the Free Software Foundation; either version 2 of 31550# the License, or (at your option) any later version. 31551# 31552# As a special exception to the GNU General Public License, 31553# if you distribute this file as part of a program or library that 31554# is built using GNU Libtool, you may include this file under the 31555# same distribution terms that you use for the rest of that program. 31556# 31557# GNU Libtool is distributed in the hope that it will be useful, 31558# but WITHOUT ANY WARRANTY; without even the implied warranty of 31559# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 31560# GNU General Public License for more details. 31561# 31562# You should have received a copy of the GNU General Public License 31563# along with GNU Libtool; see the file COPYING. If not, a copy 31564# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 31565# obtained by writing to the Free Software Foundation, Inc., 31566# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 31567 31568 31569# The names of the tagged configurations supported by this script. 31570available_tags="CXX " 31571 31572# ### BEGIN LIBTOOL CONFIG 31573 31574# Whether or not to build shared libraries. 31575build_libtool_libs=$enable_shared 31576 31577# Which release of libtool.m4 was used? 31578macro_version=$macro_version 31579macro_revision=$macro_revision 31580 31581# Whether or not to build static libraries. 31582build_old_libs=$enable_static 31583 31584# What type of objects to build. 31585pic_mode=$pic_mode 31586 31587# Whether or not to optimize for fast installation. 31588fast_install=$enable_fast_install 31589 31590# Shell to use when invoking shell scripts. 31591SHELL=$lt_SHELL 31592 31593# An echo program that protects backslashes. 31594ECHO=$lt_ECHO 31595 31596# The host system. 31597host_alias=$host_alias 31598host=$host 31599host_os=$host_os 31600 31601# The build system. 31602build_alias=$build_alias 31603build=$build 31604build_os=$build_os 31605 31606# A sed program that does not truncate output. 31607SED=$lt_SED 31608 31609# Sed that helps us avoid accidentally triggering echo(1) options like -n. 31610Xsed="\$SED -e 1s/^X//" 31611 31612# A grep program that handles long lines. 31613GREP=$lt_GREP 31614 31615# An ERE matcher. 31616EGREP=$lt_EGREP 31617 31618# A literal string matcher. 31619FGREP=$lt_FGREP 31620 31621# A BSD- or MS-compatible name lister. 31622NM=$lt_NM 31623 31624# Whether we need soft or hard links. 31625LN_S=$lt_LN_S 31626 31627# What is the maximum length of a command? 31628max_cmd_len=$max_cmd_len 31629 31630# Object file suffix (normally "o"). 31631objext=$ac_objext 31632 31633# Executable file suffix (normally ""). 31634exeext=$exeext 31635 31636# whether the shell understands "unset". 31637lt_unset=$lt_unset 31638 31639# turn spaces into newlines. 31640SP2NL=$lt_lt_SP2NL 31641 31642# turn newlines into spaces. 31643NL2SP=$lt_lt_NL2SP 31644 31645# convert \$build file names to \$host format. 31646to_host_file_cmd=$lt_cv_to_host_file_cmd 31647 31648# convert \$build files to toolchain format. 31649to_tool_file_cmd=$lt_cv_to_tool_file_cmd 31650 31651# An object symbol dumper. 31652OBJDUMP=$lt_OBJDUMP 31653 31654# Method to check whether dependent libraries are shared objects. 31655deplibs_check_method=$lt_deplibs_check_method 31656 31657# Command to use when deplibs_check_method = "file_magic". 31658file_magic_cmd=$lt_file_magic_cmd 31659 31660# How to find potential files when deplibs_check_method = "file_magic". 31661file_magic_glob=$lt_file_magic_glob 31662 31663# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 31664want_nocaseglob=$lt_want_nocaseglob 31665 31666# DLL creation program. 31667DLLTOOL=$lt_DLLTOOL 31668 31669# Command to associate shared and link libraries. 31670sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 31671 31672# The archiver. 31673AR=$lt_AR 31674 31675# Flags to create an archive. 31676AR_FLAGS=$lt_AR_FLAGS 31677 31678# How to feed a file listing to the archiver. 31679archiver_list_spec=$lt_archiver_list_spec 31680 31681# A symbol stripping program. 31682STRIP=$lt_STRIP 31683 31684# Commands used to install an old-style archive. 31685RANLIB=$lt_RANLIB 31686old_postinstall_cmds=$lt_old_postinstall_cmds 31687old_postuninstall_cmds=$lt_old_postuninstall_cmds 31688 31689# Whether to use a lock for old archive extraction. 31690lock_old_archive_extraction=$lock_old_archive_extraction 31691 31692# A C compiler. 31693LTCC=$lt_CC 31694 31695# LTCC compiler flags. 31696LTCFLAGS=$lt_CFLAGS 31697 31698# Take the output of nm and produce a listing of raw symbols and C names. 31699global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 31700 31701# Transform the output of nm in a proper C declaration. 31702global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 31703 31704# Transform the output of nm in a C name address pair. 31705global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 31706 31707# Transform the output of nm in a C name address pair when lib prefix is needed. 31708global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 31709 31710# Specify filename containing input files for \$NM. 31711nm_file_list_spec=$lt_nm_file_list_spec 31712 31713# The root where to search for dependent libraries,and in which our libraries should be installed. 31714lt_sysroot=$lt_sysroot 31715 31716# The name of the directory that contains temporary libtool files. 31717objdir=$objdir 31718 31719# Used to examine libraries when file_magic_cmd begins with "file". 31720MAGIC_CMD=$MAGIC_CMD 31721 31722# Must we lock files when doing compilation? 31723need_locks=$lt_need_locks 31724 31725# Manifest tool. 31726MANIFEST_TOOL=$lt_MANIFEST_TOOL 31727 31728# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 31729DSYMUTIL=$lt_DSYMUTIL 31730 31731# Tool to change global to local symbols on Mac OS X. 31732NMEDIT=$lt_NMEDIT 31733 31734# Tool to manipulate fat objects and archives on Mac OS X. 31735LIPO=$lt_LIPO 31736 31737# ldd/readelf like tool for Mach-O binaries on Mac OS X. 31738OTOOL=$lt_OTOOL 31739 31740# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 31741OTOOL64=$lt_OTOOL64 31742 31743# Old archive suffix (normally "a"). 31744libext=$libext 31745 31746# Shared library suffix (normally ".so"). 31747shrext_cmds=$lt_shrext_cmds 31748 31749# The commands to extract the exported symbol list from a shared archive. 31750extract_expsyms_cmds=$lt_extract_expsyms_cmds 31751 31752# Variables whose values should be saved in libtool wrapper scripts and 31753# restored at link time. 31754variables_saved_for_relink=$lt_variables_saved_for_relink 31755 31756# Do we need the "lib" prefix for modules? 31757need_lib_prefix=$need_lib_prefix 31758 31759# Do we need a version for libraries? 31760need_version=$need_version 31761 31762# Library versioning type. 31763version_type=$version_type 31764 31765# Shared library runtime path variable. 31766runpath_var=$runpath_var 31767 31768# Shared library path variable. 31769shlibpath_var=$shlibpath_var 31770 31771# Is shlibpath searched before the hard-coded library search path? 31772shlibpath_overrides_runpath=$shlibpath_overrides_runpath 31773 31774# Format of library name prefix. 31775libname_spec=$lt_libname_spec 31776 31777# List of archive names. First name is the real one, the rest are links. 31778# The last name is the one that the linker finds with -lNAME 31779library_names_spec=$lt_library_names_spec 31780 31781# The coded name of the library, if different from the real name. 31782soname_spec=$lt_soname_spec 31783 31784# Permission mode override for installation of shared libraries. 31785install_override_mode=$lt_install_override_mode 31786 31787# Command to use after installation of a shared archive. 31788postinstall_cmds=$lt_postinstall_cmds 31789 31790# Command to use after uninstallation of a shared archive. 31791postuninstall_cmds=$lt_postuninstall_cmds 31792 31793# Commands used to finish a libtool library installation in a directory. 31794finish_cmds=$lt_finish_cmds 31795 31796# As "finish_cmds", except a single script fragment to be evaled but 31797# not shown. 31798finish_eval=$lt_finish_eval 31799 31800# Whether we should hardcode library paths into libraries. 31801hardcode_into_libs=$hardcode_into_libs 31802 31803# Compile-time system search path for libraries. 31804sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 31805 31806# Run-time system search path for libraries. 31807sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 31808 31809# Whether dlopen is supported. 31810dlopen_support=$enable_dlopen 31811 31812# Whether dlopen of programs is supported. 31813dlopen_self=$enable_dlopen_self 31814 31815# Whether dlopen of statically linked programs is supported. 31816dlopen_self_static=$enable_dlopen_self_static 31817 31818# Commands to strip libraries. 31819old_striplib=$lt_old_striplib 31820striplib=$lt_striplib 31821 31822 31823# The linker used to build libraries. 31824LD=$lt_LD 31825 31826# How to create reloadable object files. 31827reload_flag=$lt_reload_flag 31828reload_cmds=$lt_reload_cmds 31829 31830# Commands used to build an old-style archive. 31831old_archive_cmds=$lt_old_archive_cmds 31832 31833# A language specific compiler. 31834CC=$lt_compiler 31835 31836# Is the compiler the GNU compiler? 31837with_gcc=$GCC 31838 31839# Compiler flag to turn off builtin functions. 31840no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 31841 31842# Additional compiler flags for building library objects. 31843pic_flag=$lt_lt_prog_compiler_pic 31844 31845# How to pass a linker flag through the compiler. 31846wl=$lt_lt_prog_compiler_wl 31847 31848# Compiler flag to prevent dynamic linking. 31849link_static_flag=$lt_lt_prog_compiler_static 31850 31851# Does compiler simultaneously support -c and -o options? 31852compiler_c_o=$lt_lt_cv_prog_compiler_c_o 31853 31854# Whether or not to add -lc for building shared libraries. 31855build_libtool_need_lc=$archive_cmds_need_lc 31856 31857# Whether or not to disallow shared libs when runtime libs are static. 31858allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 31859 31860# Compiler flag to allow reflexive dlopens. 31861export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 31862 31863# Compiler flag to generate shared objects directly from archives. 31864whole_archive_flag_spec=$lt_whole_archive_flag_spec 31865 31866# Whether the compiler copes with passing no objects directly. 31867compiler_needs_object=$lt_compiler_needs_object 31868 31869# Create an old-style archive from a shared archive. 31870old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 31871 31872# Create a temporary old-style archive to link instead of a shared archive. 31873old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 31874 31875# Commands used to build a shared archive. 31876archive_cmds=$lt_archive_cmds 31877archive_expsym_cmds=$lt_archive_expsym_cmds 31878 31879# Commands used to build a loadable module if different from building 31880# a shared archive. 31881module_cmds=$lt_module_cmds 31882module_expsym_cmds=$lt_module_expsym_cmds 31883 31884# Whether we are building with GNU ld or not. 31885with_gnu_ld=$lt_with_gnu_ld 31886 31887# Flag that allows shared libraries with undefined symbols to be built. 31888allow_undefined_flag=$lt_allow_undefined_flag 31889 31890# Flag that enforces no undefined symbols. 31891no_undefined_flag=$lt_no_undefined_flag 31892 31893# Flag to hardcode \$libdir into a binary during linking. 31894# This must work even if \$libdir does not exist 31895hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 31896 31897# If ld is used when linking, flag to hardcode \$libdir into a binary 31898# during linking. This must work even if \$libdir does not exist. 31899hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 31900 31901# Whether we need a single "-rpath" flag with a separated argument. 31902hardcode_libdir_separator=$lt_hardcode_libdir_separator 31903 31904# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 31905# DIR into the resulting binary. 31906hardcode_direct=$hardcode_direct 31907 31908# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 31909# DIR into the resulting binary and the resulting library dependency is 31910# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 31911# library is relocated. 31912hardcode_direct_absolute=$hardcode_direct_absolute 31913 31914# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 31915# into the resulting binary. 31916hardcode_minus_L=$hardcode_minus_L 31917 31918# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 31919# into the resulting binary. 31920hardcode_shlibpath_var=$hardcode_shlibpath_var 31921 31922# Set to "yes" if building a shared library automatically hardcodes DIR 31923# into the library and all subsequent libraries and executables linked 31924# against it. 31925hardcode_automatic=$hardcode_automatic 31926 31927# Set to yes if linker adds runtime paths of dependent libraries 31928# to runtime path list. 31929inherit_rpath=$inherit_rpath 31930 31931# Whether libtool must link a program against all its dependency libraries. 31932link_all_deplibs=$link_all_deplibs 31933 31934# Set to "yes" if exported symbols are required. 31935always_export_symbols=$always_export_symbols 31936 31937# The commands to list exported symbols. 31938export_symbols_cmds=$lt_export_symbols_cmds 31939 31940# Symbols that should not be listed in the preloaded symbols. 31941exclude_expsyms=$lt_exclude_expsyms 31942 31943# Symbols that must always be exported. 31944include_expsyms=$lt_include_expsyms 31945 31946# Commands necessary for linking programs (against libraries) with templates. 31947prelink_cmds=$lt_prelink_cmds 31948 31949# Commands necessary for finishing linking programs. 31950postlink_cmds=$lt_postlink_cmds 31951 31952# Specify filename containing input files. 31953file_list_spec=$lt_file_list_spec 31954 31955# How to hardcode a shared library path into an executable. 31956hardcode_action=$hardcode_action 31957 31958# The directories searched by this compiler when creating a shared library. 31959compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 31960 31961# Dependencies to place before and after the objects being linked to 31962# create a shared library. 31963predep_objects=$lt_predep_objects 31964postdep_objects=$lt_postdep_objects 31965predeps=$lt_predeps 31966postdeps=$lt_postdeps 31967 31968# The library search path used internally by the compiler when linking 31969# a shared library. 31970compiler_lib_search_path=$lt_compiler_lib_search_path 31971 31972# ### END LIBTOOL CONFIG 31973 31974_LT_EOF 31975 31976 case $host_os in 31977 aix3*) 31978 cat <<\_LT_EOF >> "$cfgfile" 31979# AIX sometimes has problems with the GCC collect2 program. For some 31980# reason, if we set the COLLECT_NAMES environment variable, the problems 31981# vanish in a puff of smoke. 31982if test "X${COLLECT_NAMES+set}" != Xset; then 31983 COLLECT_NAMES= 31984 export COLLECT_NAMES 31985fi 31986_LT_EOF 31987 ;; 31988 esac 31989 31990 31991ltmain="$ac_aux_dir/ltmain.sh" 31992 31993 31994 # We use sed instead of cat because bash on DJGPP gets confused if 31995 # if finds mixed CR/LF and LF-only lines. Since sed operates in 31996 # text mode, it properly converts lines to CR/LF. This bash problem 31997 # is reportedly fixed, but why not run on old versions too? 31998 sed '$q' "$ltmain" >> "$cfgfile" \ 31999 || (rm -f "$cfgfile"; exit 1) 32000 32001 if test x"$xsi_shell" = xyes; then 32002 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 32003func_dirname ()\ 32004{\ 32005\ case ${1} in\ 32006\ */*) func_dirname_result="${1%/*}${2}" ;;\ 32007\ * ) func_dirname_result="${3}" ;;\ 32008\ esac\ 32009} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 32010 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32012test 0 -eq $? || _lt_function_replace_fail=: 32013 32014 32015 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 32016func_basename ()\ 32017{\ 32018\ func_basename_result="${1##*/}"\ 32019} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 32020 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32021 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32022test 0 -eq $? || _lt_function_replace_fail=: 32023 32024 32025 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 32026func_dirname_and_basename ()\ 32027{\ 32028\ case ${1} in\ 32029\ */*) func_dirname_result="${1%/*}${2}" ;;\ 32030\ * ) func_dirname_result="${3}" ;;\ 32031\ esac\ 32032\ func_basename_result="${1##*/}"\ 32033} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 32034 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32035 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32036test 0 -eq $? || _lt_function_replace_fail=: 32037 32038 32039 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 32040func_stripname ()\ 32041{\ 32042\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 32043\ # positional parameters, so assign one to ordinary parameter first.\ 32044\ func_stripname_result=${3}\ 32045\ func_stripname_result=${func_stripname_result#"${1}"}\ 32046\ func_stripname_result=${func_stripname_result%"${2}"}\ 32047} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 32048 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32049 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32050test 0 -eq $? || _lt_function_replace_fail=: 32051 32052 32053 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 32054func_split_long_opt ()\ 32055{\ 32056\ func_split_long_opt_name=${1%%=*}\ 32057\ func_split_long_opt_arg=${1#*=}\ 32058} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 32059 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32061test 0 -eq $? || _lt_function_replace_fail=: 32062 32063 32064 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 32065func_split_short_opt ()\ 32066{\ 32067\ func_split_short_opt_arg=${1#??}\ 32068\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 32069} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 32070 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32072test 0 -eq $? || _lt_function_replace_fail=: 32073 32074 32075 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 32076func_lo2o ()\ 32077{\ 32078\ case ${1} in\ 32079\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 32080\ *) func_lo2o_result=${1} ;;\ 32081\ esac\ 32082} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 32083 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32084 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32085test 0 -eq $? || _lt_function_replace_fail=: 32086 32087 32088 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 32089func_xform ()\ 32090{\ 32091 func_xform_result=${1%.*}.lo\ 32092} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 32093 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32094 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32095test 0 -eq $? || _lt_function_replace_fail=: 32096 32097 32098 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 32099func_arith ()\ 32100{\ 32101 func_arith_result=$(( $* ))\ 32102} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 32103 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32104 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32105test 0 -eq $? || _lt_function_replace_fail=: 32106 32107 32108 sed -e '/^func_len ()$/,/^} # func_len /c\ 32109func_len ()\ 32110{\ 32111 func_len_result=${#1}\ 32112} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 32113 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32114 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32115test 0 -eq $? || _lt_function_replace_fail=: 32116 32117fi 32118 32119if test x"$lt_shell_append" = xyes; then 32120 sed -e '/^func_append ()$/,/^} # func_append /c\ 32121func_append ()\ 32122{\ 32123 eval "${1}+=\\${2}"\ 32124} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 32125 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32126 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32127test 0 -eq $? || _lt_function_replace_fail=: 32128 32129 32130 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 32131func_append_quoted ()\ 32132{\ 32133\ func_quote_for_eval "${2}"\ 32134\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 32135} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 32136 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32137 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32138test 0 -eq $? || _lt_function_replace_fail=: 32139 32140 32141 # Save a `func_append' function call where possible by direct use of '+=' 32142 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 32143 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32144 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32145 test 0 -eq $? || _lt_function_replace_fail=: 32146else 32147 # Save a `func_append' function call even when '+=' is not available 32148 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 32149 && mv -f "$cfgfile.tmp" "$cfgfile" \ 32150 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 32151 test 0 -eq $? || _lt_function_replace_fail=: 32152fi 32153 32154if test x"$_lt_function_replace_fail" = x":"; then 32155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 32156$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 32157fi 32158 32159 32160 mv -f "$cfgfile" "$ofile" || 32161 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 32162 chmod +x "$ofile" 32163 32164 32165 cat <<_LT_EOF >> "$ofile" 32166 32167# ### BEGIN LIBTOOL TAG CONFIG: CXX 32168 32169# The linker used to build libraries. 32170LD=$lt_LD_CXX 32171 32172# How to create reloadable object files. 32173reload_flag=$lt_reload_flag_CXX 32174reload_cmds=$lt_reload_cmds_CXX 32175 32176# Commands used to build an old-style archive. 32177old_archive_cmds=$lt_old_archive_cmds_CXX 32178 32179# A language specific compiler. 32180CC=$lt_compiler_CXX 32181 32182# Is the compiler the GNU compiler? 32183with_gcc=$GCC_CXX 32184 32185# Compiler flag to turn off builtin functions. 32186no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 32187 32188# Additional compiler flags for building library objects. 32189pic_flag=$lt_lt_prog_compiler_pic_CXX 32190 32191# How to pass a linker flag through the compiler. 32192wl=$lt_lt_prog_compiler_wl_CXX 32193 32194# Compiler flag to prevent dynamic linking. 32195link_static_flag=$lt_lt_prog_compiler_static_CXX 32196 32197# Does compiler simultaneously support -c and -o options? 32198compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 32199 32200# Whether or not to add -lc for building shared libraries. 32201build_libtool_need_lc=$archive_cmds_need_lc_CXX 32202 32203# Whether or not to disallow shared libs when runtime libs are static. 32204allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 32205 32206# Compiler flag to allow reflexive dlopens. 32207export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 32208 32209# Compiler flag to generate shared objects directly from archives. 32210whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 32211 32212# Whether the compiler copes with passing no objects directly. 32213compiler_needs_object=$lt_compiler_needs_object_CXX 32214 32215# Create an old-style archive from a shared archive. 32216old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 32217 32218# Create a temporary old-style archive to link instead of a shared archive. 32219old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 32220 32221# Commands used to build a shared archive. 32222archive_cmds=$lt_archive_cmds_CXX 32223archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 32224 32225# Commands used to build a loadable module if different from building 32226# a shared archive. 32227module_cmds=$lt_module_cmds_CXX 32228module_expsym_cmds=$lt_module_expsym_cmds_CXX 32229 32230# Whether we are building with GNU ld or not. 32231with_gnu_ld=$lt_with_gnu_ld_CXX 32232 32233# Flag that allows shared libraries with undefined symbols to be built. 32234allow_undefined_flag=$lt_allow_undefined_flag_CXX 32235 32236# Flag that enforces no undefined symbols. 32237no_undefined_flag=$lt_no_undefined_flag_CXX 32238 32239# Flag to hardcode \$libdir into a binary during linking. 32240# This must work even if \$libdir does not exist 32241hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 32242 32243# If ld is used when linking, flag to hardcode \$libdir into a binary 32244# during linking. This must work even if \$libdir does not exist. 32245hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 32246 32247# Whether we need a single "-rpath" flag with a separated argument. 32248hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 32249 32250# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 32251# DIR into the resulting binary. 32252hardcode_direct=$hardcode_direct_CXX 32253 32254# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 32255# DIR into the resulting binary and the resulting library dependency is 32256# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 32257# library is relocated. 32258hardcode_direct_absolute=$hardcode_direct_absolute_CXX 32259 32260# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 32261# into the resulting binary. 32262hardcode_minus_L=$hardcode_minus_L_CXX 32263 32264# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 32265# into the resulting binary. 32266hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 32267 32268# Set to "yes" if building a shared library automatically hardcodes DIR 32269# into the library and all subsequent libraries and executables linked 32270# against it. 32271hardcode_automatic=$hardcode_automatic_CXX 32272 32273# Set to yes if linker adds runtime paths of dependent libraries 32274# to runtime path list. 32275inherit_rpath=$inherit_rpath_CXX 32276 32277# Whether libtool must link a program against all its dependency libraries. 32278link_all_deplibs=$link_all_deplibs_CXX 32279 32280# Set to "yes" if exported symbols are required. 32281always_export_symbols=$always_export_symbols_CXX 32282 32283# The commands to list exported symbols. 32284export_symbols_cmds=$lt_export_symbols_cmds_CXX 32285 32286# Symbols that should not be listed in the preloaded symbols. 32287exclude_expsyms=$lt_exclude_expsyms_CXX 32288 32289# Symbols that must always be exported. 32290include_expsyms=$lt_include_expsyms_CXX 32291 32292# Commands necessary for linking programs (against libraries) with templates. 32293prelink_cmds=$lt_prelink_cmds_CXX 32294 32295# Commands necessary for finishing linking programs. 32296postlink_cmds=$lt_postlink_cmds_CXX 32297 32298# Specify filename containing input files. 32299file_list_spec=$lt_file_list_spec_CXX 32300 32301# How to hardcode a shared library path into an executable. 32302hardcode_action=$hardcode_action_CXX 32303 32304# The directories searched by this compiler when creating a shared library. 32305compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 32306 32307# Dependencies to place before and after the objects being linked to 32308# create a shared library. 32309predep_objects=$lt_predep_objects_CXX 32310postdep_objects=$lt_postdep_objects_CXX 32311predeps=$lt_predeps_CXX 32312postdeps=$lt_postdeps_CXX 32313 32314# The library search path used internally by the compiler when linking 32315# a shared library. 32316compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 32317 32318# ### END LIBTOOL TAG CONFIG: CXX 32319_LT_EOF 32320 32321 ;; 32322 32323 esac 32324done # for ac_tag 32325 32326 32327as_fn_exit 0 32328_ACEOF 32329ac_clean_files=$ac_clean_files_save 32330 32331test $ac_write_fail = 0 || 32332 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 32333 32334 32335# configure is writing to config.log, and then calls config.status. 32336# config.status does its own redirection, appending to config.log. 32337# Unfortunately, on DOS this fails, as config.log is still kept open 32338# by configure, so config.status won't be able to write to it; its 32339# output is simply discarded. So we exec the FD to /dev/null, 32340# effectively closing config.log, so it can be properly (re)opened and 32341# appended to by config.status. When coming back to configure, we 32342# need to make the FD available again. 32343if test "$no_create" != yes; then 32344 ac_cs_success=: 32345 ac_config_status_args= 32346 test "$silent" = yes && 32347 ac_config_status_args="$ac_config_status_args --quiet" 32348 exec 5>/dev/null 32349 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 32350 exec 5>>config.log 32351 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 32352 # would make configure fail if this is the last instruction. 32353 $ac_cs_success || as_fn_exit 1 32354fi 32355 32356# 32357# CONFIG_SUBDIRS section. 32358# 32359if test "$no_recursion" != yes; then 32360 32361 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 32362 # so they do not pile up. 32363 ac_sub_configure_args= 32364 ac_prev= 32365 eval "set x $ac_configure_args" 32366 shift 32367 for ac_arg 32368 do 32369 if test -n "$ac_prev"; then 32370 ac_prev= 32371 continue 32372 fi 32373 case $ac_arg in 32374 -cache-file | --cache-file | --cache-fil | --cache-fi \ 32375 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 32376 ac_prev=cache_file ;; 32377 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 32378 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 32379 | --c=*) 32380 ;; 32381 --config-cache | -C) 32382 ;; 32383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 32384 ac_prev=srcdir ;; 32385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 32386 ;; 32387 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 32388 ac_prev=prefix ;; 32389 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 32390 ;; 32391 --disable-option-checking) 32392 ;; 32393 *) 32394 case $ac_arg in 32395 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 32396 esac 32397 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 32398 esac 32399 done 32400 32401 # Always prepend --prefix to ensure using the same prefix 32402 # in subdir configurations. 32403 ac_arg="--prefix=$prefix" 32404 case $ac_arg in 32405 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 32406 esac 32407 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 32408 32409 # Pass --silent 32410 if test "$silent" = yes; then 32411 ac_sub_configure_args="--silent $ac_sub_configure_args" 32412 fi 32413 32414 # Always prepend --disable-option-checking to silence warnings, since 32415 # different subdirs can have different --enable and --with options. 32416 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 32417 32418 ac_popdir=`pwd` 32419 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 32420 32421 # Do not complain, so a configure script can configure whichever 32422 # parts of a large source tree are present. 32423 test -d "$srcdir/$ac_dir" || continue 32424 32425 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 32426 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 32427 $as_echo "$ac_msg" >&6 32428 as_dir="$ac_dir"; as_fn_mkdir_p 32429 ac_builddir=. 32430 32431case "$ac_dir" in 32432.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 32433*) 32434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 32435 # A ".." for each directory in $ac_dir_suffix. 32436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 32437 case $ac_top_builddir_sub in 32438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 32439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 32440 esac ;; 32441esac 32442ac_abs_top_builddir=$ac_pwd 32443ac_abs_builddir=$ac_pwd$ac_dir_suffix 32444# for backward compatibility: 32445ac_top_builddir=$ac_top_build_prefix 32446 32447case $srcdir in 32448 .) # We are building in place. 32449 ac_srcdir=. 32450 ac_top_srcdir=$ac_top_builddir_sub 32451 ac_abs_top_srcdir=$ac_pwd ;; 32452 [\\/]* | ?:[\\/]* ) # Absolute name. 32453 ac_srcdir=$srcdir$ac_dir_suffix; 32454 ac_top_srcdir=$srcdir 32455 ac_abs_top_srcdir=$srcdir ;; 32456 *) # Relative name. 32457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 32458 ac_top_srcdir=$ac_top_build_prefix$srcdir 32459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 32460esac 32461ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 32462 32463 32464 cd "$ac_dir" 32465 32466 # Check for guested configure; otherwise get Cygnus style configure. 32467 if test -f "$ac_srcdir/configure.gnu"; then 32468 ac_sub_configure=$ac_srcdir/configure.gnu 32469 elif test -f "$ac_srcdir/configure"; then 32470 ac_sub_configure=$ac_srcdir/configure 32471 elif test -f "$ac_srcdir/configure.in"; then 32472 # This should be Cygnus configure. 32473 ac_sub_configure=$ac_aux_dir/configure 32474 else 32475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 32476$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 32477 ac_sub_configure= 32478 fi 32479 32480 # The recursion is here. 32481 if test -n "$ac_sub_configure"; then 32482 # Make the cache file name correct relative to the subdirectory. 32483 case $cache_file in 32484 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 32485 *) # Relative name. 32486 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 32487 esac 32488 32489 { $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 32490$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 32491 # The eval makes quoting arguments work. 32492 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 32493 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 32494 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 32495 fi 32496 32497 cd "$ac_popdir" 32498 done 32499fi 32500if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 32501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 32502$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 32503fi 32504 32505