1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for GNU CSSC 1.4.1. 4# 5# Report bugs to <bug-CSSC@gnu.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-CSSC@gnu.org 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='GNU CSSC' 592PACKAGE_TARNAME='CSSC' 593PACKAGE_VERSION='1.4.1' 594PACKAGE_STRING='GNU CSSC 1.4.1' 595PACKAGE_BUGREPORT='bug-CSSC@gnu.org' 596PACKAGE_URL='http://www.gnu.org/software/CSSC/' 597 598ac_unique_file="src/sccsfile.h" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635gl_func_list= 636gl_header_list= 637ac_subst_vars='gltests_LTLIBOBJS 638gltests_LIBOBJS 639gl_LTLIBOBJS 640gl_LIBOBJS 641CONFIG_INCLUDE 642am__EXEEXT_FALSE 643am__EXEEXT_TRUE 644LTLIBOBJS 645LIBOBJS 646HAVE_PTHREADS_FALSE 647HAVE_PTHREADS_TRUE 648PTHREAD_CFLAGS 649PTHREAD_LIBS 650PTHREAD_CC 651acx_pthread_config 652HAVE_PYTHON_FALSE 653HAVE_PYTHON_TRUE 654PYTHON 655WARN_CFLAGS 656VALGRIND 657ZCAT_PROGRAM 658CONFIG_DIFF_COMMAND 659PR 660UNAME 661LIBTESTS_LIBDEPS 662HAVE_WINT_T 663HAVE_FEATURES_H 664NEXT_AS_FIRST_DIRECTIVE_WCHAR_H 665NEXT_WCHAR_H 666REPLACE_WCSWIDTH 667REPLACE_WCWIDTH 668REPLACE_WCSNRTOMBS 669REPLACE_WCSRTOMBS 670REPLACE_WCRTOMB 671REPLACE_MBSNRTOWCS 672REPLACE_MBSRTOWCS 673REPLACE_MBRLEN 674REPLACE_MBRTOWC 675REPLACE_MBSINIT 676REPLACE_WCTOB 677REPLACE_BTOWC 678REPLACE_MBSTATE_T 679HAVE_DECL_WCWIDTH 680HAVE_DECL_WCTOB 681HAVE_WCSWIDTH 682HAVE_WCSTOK 683HAVE_WCSSTR 684HAVE_WCSPBRK 685HAVE_WCSSPN 686HAVE_WCSCSPN 687HAVE_WCSRCHR 688HAVE_WCSCHR 689HAVE_WCSDUP 690HAVE_WCSXFRM 691HAVE_WCSCOLL 692HAVE_WCSNCASECMP 693HAVE_WCSCASECMP 694HAVE_WCSNCMP 695HAVE_WCSCMP 696HAVE_WCSNCAT 697HAVE_WCSCAT 698HAVE_WCPNCPY 699HAVE_WCSNCPY 700HAVE_WCPCPY 701HAVE_WCSCPY 702HAVE_WCSNLEN 703HAVE_WCSLEN 704HAVE_WMEMSET 705HAVE_WMEMMOVE 706HAVE_WMEMCPY 707HAVE_WMEMCMP 708HAVE_WMEMCHR 709HAVE_WCSNRTOMBS 710HAVE_WCSRTOMBS 711HAVE_WCRTOMB 712HAVE_MBSNRTOWCS 713HAVE_MBSRTOWCS 714HAVE_MBRLEN 715HAVE_MBRTOWC 716HAVE_MBSINIT 717HAVE_BTOWC 718GNULIB_WCSWIDTH 719GNULIB_WCSTOK 720GNULIB_WCSSTR 721GNULIB_WCSPBRK 722GNULIB_WCSSPN 723GNULIB_WCSCSPN 724GNULIB_WCSRCHR 725GNULIB_WCSCHR 726GNULIB_WCSDUP 727GNULIB_WCSXFRM 728GNULIB_WCSCOLL 729GNULIB_WCSNCASECMP 730GNULIB_WCSCASECMP 731GNULIB_WCSNCMP 732GNULIB_WCSCMP 733GNULIB_WCSNCAT 734GNULIB_WCSCAT 735GNULIB_WCPNCPY 736GNULIB_WCSNCPY 737GNULIB_WCPCPY 738GNULIB_WCSCPY 739GNULIB_WCSNLEN 740GNULIB_WCSLEN 741GNULIB_WMEMSET 742GNULIB_WMEMMOVE 743GNULIB_WMEMCPY 744GNULIB_WMEMCMP 745GNULIB_WMEMCHR 746GNULIB_WCWIDTH 747GNULIB_WCSNRTOMBS 748GNULIB_WCSRTOMBS 749GNULIB_WCRTOMB 750GNULIB_MBSNRTOWCS 751GNULIB_MBSRTOWCS 752GNULIB_MBRLEN 753GNULIB_MBRTOWC 754GNULIB_MBSINIT 755GNULIB_WCTOB 756GNULIB_BTOWC 757abs_aux_dir 758HAVE__BOOL 759GL_GENERATE_STDBOOL_H_FALSE 760GL_GENERATE_STDBOOL_H_TRUE 761STDBOOL_H 762GL_GENERATE_STDALIGN_H_FALSE 763GL_GENERATE_STDALIGN_H_TRUE 764STDALIGN_H 765NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H 766NEXT_INTTYPES_H 767UINT64_MAX_EQ_ULONG_MAX 768UINT32_MAX_LT_UINTMAX_MAX 769PRIPTR_PREFIX 770PRI_MACROS_BROKEN 771INT64_MAX_EQ_LONG_MAX 772INT32_MAX_LT_INTMAX_MAX 773REPLACE_STRTOUMAX 774REPLACE_STRTOIMAX 775HAVE_DECL_STRTOUMAX 776HAVE_DECL_STRTOIMAX 777HAVE_DECL_IMAXDIV 778HAVE_DECL_IMAXABS 779GNULIB_STRTOUMAX 780GNULIB_STRTOIMAX 781GNULIB_IMAXDIV 782GNULIB_IMAXABS 783GL_GENERATE_STDINT_H_FALSE 784GL_GENERATE_STDINT_H_TRUE 785STDINT_H 786WINT_T_SUFFIX 787WCHAR_T_SUFFIX 788SIG_ATOMIC_T_SUFFIX 789SIZE_T_SUFFIX 790PTRDIFF_T_SUFFIX 791HAVE_SIGNED_WINT_T 792HAVE_SIGNED_WCHAR_T 793HAVE_SIGNED_SIG_ATOMIC_T 794BITSIZEOF_WINT_T 795BITSIZEOF_WCHAR_T 796BITSIZEOF_SIG_ATOMIC_T 797BITSIZEOF_SIZE_T 798BITSIZEOF_PTRDIFF_T 799APPLE_UNIVERSAL_BUILD 800HAVE_SYS_BITYPES_H 801HAVE_SYS_INTTYPES_H 802HAVE_STDINT_H 803NEXT_AS_FIRST_DIRECTIVE_STDINT_H 804NEXT_STDINT_H 805HAVE_SYS_TYPES_H 806HAVE_INTTYPES_H 807HAVE_WCHAR_H 808HAVE_UNSIGNED_LONG_LONG_INT 809HAVE_LONG_LONG_INT 810gltests_WITNESS 811HAVE_UNISTD_H 812NEXT_AS_FIRST_DIRECTIVE_UNISTD_H 813NEXT_UNISTD_H 814UNISTD_H_DEFINES_STRUCT_TIMESPEC 815PTHREAD_H_DEFINES_STRUCT_TIMESPEC 816SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 817TIME_H_DEFINES_STRUCT_TIMESPEC 818NEXT_AS_FIRST_DIRECTIVE_TIME_H 819NEXT_TIME_H 820REPLACE_LOCALTIME 821REPLACE_GMTIME 822REPLACE_TIMEGM 823REPLACE_NANOSLEEP 824REPLACE_MKTIME 825REPLACE_LOCALTIME_R 826HAVE_TIMEGM 827HAVE_STRPTIME 828HAVE_NANOSLEEP 829HAVE_DECL_LOCALTIME_R 830GNULIB_TIME_RZ 831GNULIB_TIME_R 832GNULIB_TIMEGM 833GNULIB_STRPTIME 834GNULIB_NANOSLEEP 835GNULIB_MKTIME 836NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H 837NEXT_SYS_WAIT_H 838GNULIB_WAITPID 839HAVE_SYS_FILE_H 840NEXT_AS_FIRST_DIRECTIVE_SYS_FILE_H 841NEXT_SYS_FILE_H 842HAVE_FLOCK 843GNULIB_FLOCK 844NEXT_AS_FIRST_DIRECTIVE_STRING_H 845NEXT_STRING_H 846UNDEFINE_STRTOK_R 847REPLACE_STRTOK_R 848REPLACE_STRSIGNAL 849REPLACE_STRNLEN 850REPLACE_STRNDUP 851REPLACE_STRNCAT 852REPLACE_STRERROR_R 853REPLACE_STRERROR 854REPLACE_STRCHRNUL 855REPLACE_STRCASESTR 856REPLACE_STRSTR 857REPLACE_STRDUP 858REPLACE_STPNCPY 859REPLACE_MEMMEM 860REPLACE_MEMCHR 861HAVE_STRVERSCMP 862HAVE_DECL_STRSIGNAL 863HAVE_DECL_STRERROR_R 864HAVE_DECL_STRTOK_R 865HAVE_STRCASESTR 866HAVE_STRSEP 867HAVE_STRPBRK 868HAVE_DECL_STRNLEN 869HAVE_DECL_STRNDUP 870HAVE_DECL_STRDUP 871HAVE_STRCHRNUL 872HAVE_STPNCPY 873HAVE_STPCPY 874HAVE_RAWMEMCHR 875HAVE_DECL_MEMRCHR 876HAVE_MEMPCPY 877HAVE_DECL_MEMMEM 878HAVE_MEMCHR 879HAVE_FFSLL 880HAVE_FFSL 881HAVE_MBSLEN 882GNULIB_STRVERSCMP 883GNULIB_STRSIGNAL 884GNULIB_STRERROR_R 885GNULIB_STRERROR 886GNULIB_MBSTOK_R 887GNULIB_MBSSEP 888GNULIB_MBSSPN 889GNULIB_MBSPBRK 890GNULIB_MBSCSPN 891GNULIB_MBSCASESTR 892GNULIB_MBSPCASECMP 893GNULIB_MBSNCASECMP 894GNULIB_MBSCASECMP 895GNULIB_MBSSTR 896GNULIB_MBSRCHR 897GNULIB_MBSCHR 898GNULIB_MBSNLEN 899GNULIB_MBSLEN 900GNULIB_STRTOK_R 901GNULIB_STRCASESTR 902GNULIB_STRSTR 903GNULIB_STRSEP 904GNULIB_STRPBRK 905GNULIB_STRNLEN 906GNULIB_STRNDUP 907GNULIB_STRNCAT 908GNULIB_STRDUP 909GNULIB_STRCHRNUL 910GNULIB_STPNCPY 911GNULIB_STPCPY 912GNULIB_RAWMEMCHR 913GNULIB_MEMRCHR 914GNULIB_MEMPCPY 915GNULIB_MEMMEM 916GNULIB_MEMCHR 917GNULIB_FFSLL 918GNULIB_FFSL 919NEXT_AS_FIRST_DIRECTIVE_STDLIB_H 920NEXT_STDLIB_H 921REPLACE_WCTOMB 922REPLACE_UNSETENV 923REPLACE_STRTOD 924REPLACE_SETENV 925REPLACE_REALPATH 926REPLACE_REALLOC 927REPLACE_RANDOM_R 928REPLACE_QSORT_R 929REPLACE_PUTENV 930REPLACE_PTSNAME_R 931REPLACE_PTSNAME 932REPLACE_MKSTEMP 933REPLACE_MBTOWC 934REPLACE_MALLOC 935REPLACE_CANONICALIZE_FILE_NAME 936REPLACE_CALLOC 937HAVE_DECL_UNSETENV 938HAVE_UNLOCKPT 939HAVE_SYS_LOADAVG_H 940HAVE_STRUCT_RANDOM_DATA 941HAVE_STRTOULL 942HAVE_STRTOLL 943HAVE_STRTOD 944HAVE_DECL_SETENV 945HAVE_SETENV 946HAVE_SECURE_GETENV 947HAVE_RPMATCH 948HAVE_REALPATH 949HAVE_RANDOM_R 950HAVE_RANDOM_H 951HAVE_RANDOM 952HAVE_PTSNAME_R 953HAVE_PTSNAME 954HAVE_POSIX_OPENPT 955HAVE_MKSTEMPS 956HAVE_MKSTEMP 957HAVE_MKOSTEMPS 958HAVE_MKOSTEMP 959HAVE_MKDTEMP 960HAVE_GRANTPT 961HAVE_GETSUBOPT 962HAVE_DECL_GETLOADAVG 963HAVE_CANONICALIZE_FILE_NAME 964HAVE_ATOLL 965HAVE__EXIT 966GNULIB_WCTOMB 967GNULIB_UNSETENV 968GNULIB_UNLOCKPT 969GNULIB_SYSTEM_POSIX 970GNULIB_STRTOULL 971GNULIB_STRTOLL 972GNULIB_STRTOD 973GNULIB_SETENV 974GNULIB_SECURE_GETENV 975GNULIB_RPMATCH 976GNULIB_REALPATH 977GNULIB_REALLOC_POSIX 978GNULIB_RANDOM_R 979GNULIB_RANDOM 980GNULIB_QSORT_R 981GNULIB_PUTENV 982GNULIB_PTSNAME_R 983GNULIB_PTSNAME 984GNULIB_POSIX_OPENPT 985GNULIB_MKSTEMPS 986GNULIB_MKSTEMP 987GNULIB_MKOSTEMPS 988GNULIB_MKOSTEMP 989GNULIB_MKDTEMP 990GNULIB_MBTOWC 991GNULIB_MALLOC_POSIX 992GNULIB_GRANTPT 993GNULIB_GETSUBOPT 994GNULIB_GETLOADAVG 995GNULIB_CANONICALIZE_FILE_NAME 996GNULIB_CALLOC_POSIX 997GNULIB_ATOLL 998GNULIB__EXIT 999NEXT_AS_FIRST_DIRECTIVE_STDIO_H 1000NEXT_STDIO_H 1001NEXT_AS_FIRST_DIRECTIVE_STDDEF_H 1002NEXT_STDDEF_H 1003GL_GENERATE_STDDEF_H_FALSE 1004GL_GENERATE_STDDEF_H_TRUE 1005STDDEF_H 1006HAVE_WCHAR_T 1007HAVE_MAX_ALIGN_T 1008REPLACE_NULL 1009GL_GENERATE_STDARG_H_FALSE 1010GL_GENERATE_STDARG_H_TRUE 1011STDARG_H 1012NEXT_AS_FIRST_DIRECTIVE_STDARG_H 1013NEXT_STDARG_H 1014NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H 1015NEXT_SIGNAL_H 1016REPLACE_RAISE 1017REPLACE_PTHREAD_SIGMASK 1018HAVE_SIGHANDLER_T 1019HAVE_TYPE_VOLATILE_SIG_ATOMIC_T 1020HAVE_STRUCT_SIGACTION_SA_SIGACTION 1021HAVE_SIGACTION 1022HAVE_SIGINFO_T 1023HAVE_SIGSET_T 1024HAVE_RAISE 1025HAVE_PTHREAD_SIGMASK 1026HAVE_POSIX_SIGNALBLOCKING 1027GNULIB_SIGACTION 1028GNULIB_SIGPROCMASK 1029GNULIB_SIGNAL_H_SIGPIPE 1030GNULIB_RAISE 1031GNULIB_PTHREAD_SIGMASK 1032GL_GENERATE_SCHED_H_FALSE 1033GL_GENERATE_SCHED_H_TRUE 1034SCHED_H 1035HAVE_STRUCT_SCHED_PARAM 1036HAVE_SCHED_H 1037NEXT_AS_FIRST_DIRECTIVE_SCHED_H 1038NEXT_SCHED_H 1039LIB_PTHREAD 1040GL_GENERATE_PTHREAD_H_FALSE 1041GL_GENERATE_PTHREAD_H_TRUE 1042PTHREAD_H 1043NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H 1044NEXT_PTHREAD_H 1045HAVE_PTHREAD_SPINLOCK_T 1046HAVE_PTHREAD_T 1047HAVE_PTHREAD_H 1048NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H 1049NEXT_SYS_TIME_H 1050REPLACE_STRUCT_TIMEVAL 1051REPLACE_GETTIMEOFDAY 1052HAVE_TIMEZONE_T 1053HAVE_SYS_TIME_H 1054HAVE_STRUCT_TIMEVAL 1055HAVE_GETTIMEOFDAY 1056GNULIB_GETTIMEOFDAY 1057WINDOWS_64_BIT_ST_SIZE 1058NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H 1059NEXT_SYS_STAT_H 1060REPLACE_UTIMENSAT 1061REPLACE_STAT 1062REPLACE_MKNOD 1063REPLACE_MKFIFO 1064REPLACE_MKDIR 1065REPLACE_LSTAT 1066REPLACE_FUTIMENS 1067REPLACE_FSTATAT 1068REPLACE_FSTAT 1069HAVE_UTIMENSAT 1070HAVE_MKNODAT 1071HAVE_MKNOD 1072HAVE_MKFIFOAT 1073HAVE_MKFIFO 1074HAVE_MKDIRAT 1075HAVE_LSTAT 1076HAVE_LCHMOD 1077HAVE_FUTIMENS 1078HAVE_FSTATAT 1079HAVE_FCHMODAT 1080GNULIB_UTIMENSAT 1081GNULIB_STAT 1082GNULIB_MKNODAT 1083GNULIB_MKNOD 1084GNULIB_MKFIFOAT 1085GNULIB_MKFIFO 1086GNULIB_MKDIRAT 1087GNULIB_LSTAT 1088GNULIB_LCHMOD 1089GNULIB_FUTIMENS 1090GNULIB_FSTATAT 1091GNULIB_FSTAT 1092GNULIB_FCHMODAT 1093WINDOWS_64_BIT_OFF_T 1094NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H 1095NEXT_SYS_TYPES_H 1096REPLACE_VSPRINTF 1097REPLACE_VSNPRINTF 1098REPLACE_VPRINTF 1099REPLACE_VFPRINTF 1100REPLACE_VDPRINTF 1101REPLACE_VASPRINTF 1102REPLACE_TMPFILE 1103REPLACE_STDIO_WRITE_FUNCS 1104REPLACE_STDIO_READ_FUNCS 1105REPLACE_SPRINTF 1106REPLACE_SNPRINTF 1107REPLACE_RENAMEAT 1108REPLACE_RENAME 1109REPLACE_REMOVE 1110REPLACE_PRINTF 1111REPLACE_POPEN 1112REPLACE_PERROR 1113REPLACE_OBSTACK_PRINTF 1114REPLACE_GETLINE 1115REPLACE_GETDELIM 1116REPLACE_FTELLO 1117REPLACE_FTELL 1118REPLACE_FSEEKO 1119REPLACE_FSEEK 1120REPLACE_FREOPEN 1121REPLACE_FPURGE 1122REPLACE_FPRINTF 1123REPLACE_FOPEN 1124REPLACE_FFLUSH 1125REPLACE_FDOPEN 1126REPLACE_FCLOSE 1127REPLACE_DPRINTF 1128HAVE_VDPRINTF 1129HAVE_VASPRINTF 1130HAVE_RENAMEAT 1131HAVE_POPEN 1132HAVE_PCLOSE 1133HAVE_FTELLO 1134HAVE_FSEEKO 1135HAVE_DPRINTF 1136HAVE_DECL_VSNPRINTF 1137HAVE_DECL_SNPRINTF 1138HAVE_DECL_OBSTACK_PRINTF 1139HAVE_DECL_GETLINE 1140HAVE_DECL_GETDELIM 1141HAVE_DECL_FTELLO 1142HAVE_DECL_FSEEKO 1143HAVE_DECL_FPURGE 1144GNULIB_VSPRINTF_POSIX 1145GNULIB_VSNPRINTF 1146GNULIB_VPRINTF_POSIX 1147GNULIB_VPRINTF 1148GNULIB_VFPRINTF_POSIX 1149GNULIB_VFPRINTF 1150GNULIB_VDPRINTF 1151GNULIB_VSCANF 1152GNULIB_VFSCANF 1153GNULIB_VASPRINTF 1154GNULIB_TMPFILE 1155GNULIB_STDIO_H_SIGPIPE 1156GNULIB_STDIO_H_NONBLOCKING 1157GNULIB_SPRINTF_POSIX 1158GNULIB_SNPRINTF 1159GNULIB_SCANF 1160GNULIB_RENAMEAT 1161GNULIB_RENAME 1162GNULIB_REMOVE 1163GNULIB_PUTS 1164GNULIB_PUTCHAR 1165GNULIB_PUTC 1166GNULIB_PRINTF_POSIX 1167GNULIB_PRINTF 1168GNULIB_POPEN 1169GNULIB_PERROR 1170GNULIB_PCLOSE 1171GNULIB_OBSTACK_PRINTF_POSIX 1172GNULIB_OBSTACK_PRINTF 1173GNULIB_GETLINE 1174GNULIB_GETDELIM 1175GNULIB_GETCHAR 1176GNULIB_GETC 1177GNULIB_FWRITE 1178GNULIB_FTELLO 1179GNULIB_FTELL 1180GNULIB_FSEEKO 1181GNULIB_FSEEK 1182GNULIB_FSCANF 1183GNULIB_FREOPEN 1184GNULIB_FREAD 1185GNULIB_FPUTS 1186GNULIB_FPUTC 1187GNULIB_FPURGE 1188GNULIB_FPRINTF_POSIX 1189GNULIB_FPRINTF 1190GNULIB_FOPEN 1191GNULIB_FGETS 1192GNULIB_FGETC 1193GNULIB_FFLUSH 1194GNULIB_FDOPEN 1195GNULIB_FCLOSE 1196GNULIB_DPRINTF 1197NEXT_AS_FIRST_DIRECTIVE_FCNTL_H 1198NEXT_FCNTL_H 1199REPLACE_OPENAT 1200REPLACE_OPEN 1201REPLACE_FCNTL 1202HAVE_OPENAT 1203HAVE_FCNTL 1204GNULIB_OPENAT 1205GNULIB_OPEN 1206GNULIB_NONBLOCKING 1207GNULIB_FCNTL 1208EOVERFLOW_VALUE 1209EOVERFLOW_HIDDEN 1210ENOLINK_VALUE 1211ENOLINK_HIDDEN 1212EMULTIHOP_VALUE 1213EMULTIHOP_HIDDEN 1214GL_GENERATE_ERRNO_H_FALSE 1215GL_GENERATE_ERRNO_H_TRUE 1216ERRNO_H 1217NEXT_AS_FIRST_DIRECTIVE_ERRNO_H 1218NEXT_ERRNO_H 1219HAVE_DIRENT_H 1220NEXT_AS_FIRST_DIRECTIVE_DIRENT_H 1221NEXT_DIRENT_H 1222NEXT_AS_FIRST_DIRECTIVE_CTYPE_H 1223NEXT_CTYPE_H 1224PRAGMA_COLUMNS 1225PRAGMA_SYSTEM_HEADER 1226INCLUDE_NEXT_AS_FIRST_DIRECTIVE 1227INCLUDE_NEXT 1228HAVE_ISBLANK 1229GNULIB_ISBLANK 1230REPLACE_FDOPENDIR 1231REPLACE_DIRFD 1232REPLACE_CLOSEDIR 1233REPLACE_OPENDIR 1234HAVE_ALPHASORT 1235HAVE_SCANDIR 1236HAVE_FDOPENDIR 1237HAVE_DECL_FDOPENDIR 1238HAVE_DECL_DIRFD 1239HAVE_CLOSEDIR 1240HAVE_REWINDDIR 1241HAVE_READDIR 1242HAVE_OPENDIR 1243GNULIB_ALPHASORT 1244GNULIB_SCANDIR 1245GNULIB_FDOPENDIR 1246GNULIB_DIRFD 1247GNULIB_CLOSEDIR 1248GNULIB_REWINDDIR 1249GNULIB_READDIR 1250GNULIB_OPENDIR 1251HAVE_WINSOCK2_H 1252HAVE_MSVC_INVALID_PARAMETER_HANDLER 1253UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS 1254UNISTD_H_HAVE_WINSOCK2_H 1255REPLACE_WRITE 1256REPLACE_USLEEP 1257REPLACE_UNLINKAT 1258REPLACE_UNLINK 1259REPLACE_TTYNAME_R 1260REPLACE_SYMLINKAT 1261REPLACE_SYMLINK 1262REPLACE_SLEEP 1263REPLACE_RMDIR 1264REPLACE_READLINKAT 1265REPLACE_READLINK 1266REPLACE_READ 1267REPLACE_PWRITE 1268REPLACE_PREAD 1269REPLACE_LSEEK 1270REPLACE_LINKAT 1271REPLACE_LINK 1272REPLACE_LCHOWN 1273REPLACE_ISATTY 1274REPLACE_GETPAGESIZE 1275REPLACE_GETGROUPS 1276REPLACE_GETLOGIN_R 1277REPLACE_GETDTABLESIZE 1278REPLACE_GETDOMAINNAME 1279REPLACE_GETCWD 1280REPLACE_FTRUNCATE 1281REPLACE_FCHOWNAT 1282REPLACE_DUP2 1283REPLACE_DUP 1284REPLACE_CLOSE 1285REPLACE_CHOWN 1286HAVE_SYS_PARAM_H 1287HAVE_OS_H 1288HAVE_DECL_TTYNAME_R 1289HAVE_DECL_SETHOSTNAME 1290HAVE_DECL_GETUSERSHELL 1291HAVE_DECL_GETPAGESIZE 1292HAVE_DECL_GETLOGIN_R 1293HAVE_DECL_GETDOMAINNAME 1294HAVE_DECL_FDATASYNC 1295HAVE_DECL_FCHDIR 1296HAVE_DECL_ENVIRON 1297HAVE_USLEEP 1298HAVE_UNLINKAT 1299HAVE_SYMLINKAT 1300HAVE_SYMLINK 1301HAVE_SLEEP 1302HAVE_SETHOSTNAME 1303HAVE_READLINKAT 1304HAVE_READLINK 1305HAVE_PWRITE 1306HAVE_PREAD 1307HAVE_PIPE2 1308HAVE_PIPE 1309HAVE_LINKAT 1310HAVE_LINK 1311HAVE_LCHOWN 1312HAVE_GROUP_MEMBER 1313HAVE_GETPAGESIZE 1314HAVE_GETLOGIN 1315HAVE_GETHOSTNAME 1316HAVE_GETGROUPS 1317HAVE_GETDTABLESIZE 1318HAVE_FTRUNCATE 1319HAVE_FSYNC 1320HAVE_FDATASYNC 1321HAVE_FCHOWNAT 1322HAVE_FCHDIR 1323HAVE_FACCESSAT 1324HAVE_EUIDACCESS 1325HAVE_DUP3 1326HAVE_DUP2 1327HAVE_CHOWN 1328GNULIB_WRITE 1329GNULIB_USLEEP 1330GNULIB_UNLINKAT 1331GNULIB_UNLINK 1332GNULIB_UNISTD_H_SIGPIPE 1333GNULIB_UNISTD_H_NONBLOCKING 1334GNULIB_TTYNAME_R 1335GNULIB_SYMLINKAT 1336GNULIB_SYMLINK 1337GNULIB_SLEEP 1338GNULIB_SETHOSTNAME 1339GNULIB_RMDIR 1340GNULIB_READLINKAT 1341GNULIB_READLINK 1342GNULIB_READ 1343GNULIB_PWRITE 1344GNULIB_PREAD 1345GNULIB_PIPE2 1346GNULIB_PIPE 1347GNULIB_LSEEK 1348GNULIB_LINKAT 1349GNULIB_LINK 1350GNULIB_LCHOWN 1351GNULIB_ISATTY 1352GNULIB_GROUP_MEMBER 1353GNULIB_GETUSERSHELL 1354GNULIB_GETPAGESIZE 1355GNULIB_GETLOGIN_R 1356GNULIB_GETLOGIN 1357GNULIB_GETHOSTNAME 1358GNULIB_GETGROUPS 1359GNULIB_GETDTABLESIZE 1360GNULIB_GETDOMAINNAME 1361GNULIB_GETCWD 1362GNULIB_FTRUNCATE 1363GNULIB_FSYNC 1364GNULIB_FDATASYNC 1365GNULIB_FCHOWNAT 1366GNULIB_FCHDIR 1367GNULIB_FACCESSAT 1368GNULIB_EUIDACCESS 1369GNULIB_ENVIRON 1370GNULIB_DUP3 1371GNULIB_DUP2 1372GNULIB_DUP 1373GNULIB_CLOSE 1374GNULIB_CHOWN 1375GNULIB_CHDIR 1376GL_COND_LIBTOOL_FALSE 1377GL_COND_LIBTOOL_TRUE 1378GXX 1379CXXCPP 1380am__fastdepCXX_FALSE 1381am__fastdepCXX_TRUE 1382CXXDEPMODE 1383ac_ct_CXX 1384CXXFLAGS 1385CXX 1386LT_SYS_LIBRARY_PATH 1387OTOOL64 1388OTOOL 1389LIPO 1390NMEDIT 1391DSYMUTIL 1392MANIFEST_TOOL 1393DLLTOOL 1394OBJDUMP 1395LN_S 1396NM 1397ac_ct_DUMPBIN 1398DUMPBIN 1399LD 1400FGREP 1401SED 1402host_os 1403host_vendor 1404host_cpu 1405host 1406build_os 1407build_vendor 1408build_cpu 1409build 1410LIBTOOL 1411RANLIB 1412ARFLAGS 1413ac_ct_AR 1414AR 1415EGREP 1416GREP 1417CPP 1418am__fastdepCC_FALSE 1419am__fastdepCC_TRUE 1420CCDEPMODE 1421am__nodep 1422AMDEPBACKSLASH 1423AMDEP_FALSE 1424AMDEP_TRUE 1425am__quote 1426am__include 1427DEPDIR 1428OBJEXT 1429EXEEXT 1430ac_ct_CC 1431CPPFLAGS 1432LDFLAGS 1433CFLAGS 1434CC 1435max_line_length_description 1436enable_binary 1437AM_BACKSLASH 1438AM_DEFAULT_VERBOSITY 1439AM_DEFAULT_V 1440AM_V 1441am__untar 1442am__tar 1443AMTAR 1444am__leading_dot 1445SET_MAKE 1446AWK 1447mkdir_p 1448MKDIR_P 1449INSTALL_STRIP_PROGRAM 1450STRIP 1451install_sh 1452MAKEINFO 1453AUTOHEADER 1454AUTOMAKE 1455AUTOCONF 1456ACLOCAL 1457VERSION 1458PACKAGE 1459CYGPATH_W 1460am__isrc 1461INSTALL_DATA 1462INSTALL_SCRIPT 1463INSTALL_PROGRAM 1464AUXDIR 1465target_alias 1466host_alias 1467build_alias 1468LIBS 1469ECHO_T 1470ECHO_N 1471ECHO_C 1472DEFS 1473mandir 1474localedir 1475libdir 1476psdir 1477pdfdir 1478dvidir 1479htmldir 1480infodir 1481docdir 1482oldincludedir 1483includedir 1484runstatedir 1485localstatedir 1486sharedstatedir 1487sysconfdir 1488datadir 1489datarootdir 1490libexecdir 1491sbindir 1492bindir 1493program_transform_name 1494prefix 1495exec_prefix 1496PACKAGE_URL 1497PACKAGE_BUGREPORT 1498PACKAGE_STRING 1499PACKAGE_VERSION 1500PACKAGE_TARNAME 1501PACKAGE_NAME 1502PATH_SEPARATOR 1503SHELL' 1504ac_subst_files='' 1505ac_user_opts=' 1506enable_option_checking 1507enable_silent_rules 1508enable_binary 1509enable_max_line_length 1510enable_dependency_tracking 1511enable_largefile 1512enable_shared 1513enable_static 1514with_pic 1515enable_fast_install 1516with_aix_soname 1517with_gnu_ld 1518with_sysroot 1519enable_libtool_lock 1520with_valgrind 1521enable_warnings 1522with_pthreads 1523' 1524 ac_precious_vars='build_alias 1525host_alias 1526target_alias 1527CC 1528CFLAGS 1529LDFLAGS 1530LIBS 1531CPPFLAGS 1532CPP 1533LT_SYS_LIBRARY_PATH 1534CXX 1535CXXFLAGS 1536CCC 1537CXXCPP' 1538 1539 1540# Initialize some variables set by options. 1541ac_init_help= 1542ac_init_version=false 1543ac_unrecognized_opts= 1544ac_unrecognized_sep= 1545# The variables have the same names as the options, with 1546# dashes changed to underlines. 1547cache_file=/dev/null 1548exec_prefix=NONE 1549no_create= 1550no_recursion= 1551prefix=NONE 1552program_prefix=NONE 1553program_suffix=NONE 1554program_transform_name=s,x,x, 1555silent= 1556site= 1557srcdir= 1558verbose= 1559x_includes=NONE 1560x_libraries=NONE 1561 1562# Installation directory options. 1563# These are left unexpanded so users can "make install exec_prefix=/foo" 1564# and all the variables that are supposed to be based on exec_prefix 1565# by default will actually change. 1566# Use braces instead of parens because sh, perl, etc. also accept them. 1567# (The list follows the same order as the GNU Coding Standards.) 1568bindir='${exec_prefix}/bin' 1569sbindir='${exec_prefix}/sbin' 1570libexecdir='${exec_prefix}/libexec' 1571datarootdir='${prefix}/share' 1572datadir='${datarootdir}' 1573sysconfdir='${prefix}/etc' 1574sharedstatedir='${prefix}/com' 1575localstatedir='${prefix}/var' 1576runstatedir='${localstatedir}/run' 1577includedir='${prefix}/include' 1578oldincludedir='/usr/include' 1579docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1580infodir='${datarootdir}/info' 1581htmldir='${docdir}' 1582dvidir='${docdir}' 1583pdfdir='${docdir}' 1584psdir='${docdir}' 1585libdir='${exec_prefix}/lib' 1586localedir='${datarootdir}/locale' 1587mandir='${datarootdir}/man' 1588 1589ac_prev= 1590ac_dashdash= 1591for ac_option 1592do 1593 # If the previous option needs an argument, assign it. 1594 if test -n "$ac_prev"; then 1595 eval $ac_prev=\$ac_option 1596 ac_prev= 1597 continue 1598 fi 1599 1600 case $ac_option in 1601 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1602 *=) ac_optarg= ;; 1603 *) ac_optarg=yes ;; 1604 esac 1605 1606 # Accept the important Cygnus configure options, so we can diagnose typos. 1607 1608 case $ac_dashdash$ac_option in 1609 --) 1610 ac_dashdash=yes ;; 1611 1612 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1613 ac_prev=bindir ;; 1614 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1615 bindir=$ac_optarg ;; 1616 1617 -build | --build | --buil | --bui | --bu) 1618 ac_prev=build_alias ;; 1619 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1620 build_alias=$ac_optarg ;; 1621 1622 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1623 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1624 ac_prev=cache_file ;; 1625 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1626 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1627 cache_file=$ac_optarg ;; 1628 1629 --config-cache | -C) 1630 cache_file=config.cache ;; 1631 1632 -datadir | --datadir | --datadi | --datad) 1633 ac_prev=datadir ;; 1634 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1635 datadir=$ac_optarg ;; 1636 1637 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1638 | --dataroo | --dataro | --datar) 1639 ac_prev=datarootdir ;; 1640 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1641 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1642 datarootdir=$ac_optarg ;; 1643 1644 -disable-* | --disable-*) 1645 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1646 # Reject names that are not valid shell variable names. 1647 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1648 as_fn_error $? "invalid feature name: $ac_useropt" 1649 ac_useropt_orig=$ac_useropt 1650 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1651 case $ac_user_opts in 1652 *" 1653"enable_$ac_useropt" 1654"*) ;; 1655 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1656 ac_unrecognized_sep=', ';; 1657 esac 1658 eval enable_$ac_useropt=no ;; 1659 1660 -docdir | --docdir | --docdi | --doc | --do) 1661 ac_prev=docdir ;; 1662 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1663 docdir=$ac_optarg ;; 1664 1665 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1666 ac_prev=dvidir ;; 1667 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1668 dvidir=$ac_optarg ;; 1669 1670 -enable-* | --enable-*) 1671 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1672 # Reject names that are not valid shell variable names. 1673 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1674 as_fn_error $? "invalid feature name: $ac_useropt" 1675 ac_useropt_orig=$ac_useropt 1676 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1677 case $ac_user_opts in 1678 *" 1679"enable_$ac_useropt" 1680"*) ;; 1681 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1682 ac_unrecognized_sep=', ';; 1683 esac 1684 eval enable_$ac_useropt=\$ac_optarg ;; 1685 1686 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1687 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1688 | --exec | --exe | --ex) 1689 ac_prev=exec_prefix ;; 1690 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1691 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1692 | --exec=* | --exe=* | --ex=*) 1693 exec_prefix=$ac_optarg ;; 1694 1695 -gas | --gas | --ga | --g) 1696 # Obsolete; use --with-gas. 1697 with_gas=yes ;; 1698 1699 -help | --help | --hel | --he | -h) 1700 ac_init_help=long ;; 1701 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1702 ac_init_help=recursive ;; 1703 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1704 ac_init_help=short ;; 1705 1706 -host | --host | --hos | --ho) 1707 ac_prev=host_alias ;; 1708 -host=* | --host=* | --hos=* | --ho=*) 1709 host_alias=$ac_optarg ;; 1710 1711 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1712 ac_prev=htmldir ;; 1713 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1714 | --ht=*) 1715 htmldir=$ac_optarg ;; 1716 1717 -includedir | --includedir | --includedi | --included | --include \ 1718 | --includ | --inclu | --incl | --inc) 1719 ac_prev=includedir ;; 1720 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1721 | --includ=* | --inclu=* | --incl=* | --inc=*) 1722 includedir=$ac_optarg ;; 1723 1724 -infodir | --infodir | --infodi | --infod | --info | --inf) 1725 ac_prev=infodir ;; 1726 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1727 infodir=$ac_optarg ;; 1728 1729 -libdir | --libdir | --libdi | --libd) 1730 ac_prev=libdir ;; 1731 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1732 libdir=$ac_optarg ;; 1733 1734 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1735 | --libexe | --libex | --libe) 1736 ac_prev=libexecdir ;; 1737 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1738 | --libexe=* | --libex=* | --libe=*) 1739 libexecdir=$ac_optarg ;; 1740 1741 -localedir | --localedir | --localedi | --localed | --locale) 1742 ac_prev=localedir ;; 1743 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1744 localedir=$ac_optarg ;; 1745 1746 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1747 | --localstate | --localstat | --localsta | --localst | --locals) 1748 ac_prev=localstatedir ;; 1749 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1750 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1751 localstatedir=$ac_optarg ;; 1752 1753 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1754 ac_prev=mandir ;; 1755 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1756 mandir=$ac_optarg ;; 1757 1758 -nfp | --nfp | --nf) 1759 # Obsolete; use --without-fp. 1760 with_fp=no ;; 1761 1762 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1763 | --no-cr | --no-c | -n) 1764 no_create=yes ;; 1765 1766 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1767 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1768 no_recursion=yes ;; 1769 1770 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1771 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1772 | --oldin | --oldi | --old | --ol | --o) 1773 ac_prev=oldincludedir ;; 1774 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1775 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1776 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1777 oldincludedir=$ac_optarg ;; 1778 1779 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1780 ac_prev=prefix ;; 1781 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1782 prefix=$ac_optarg ;; 1783 1784 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1785 | --program-pre | --program-pr | --program-p) 1786 ac_prev=program_prefix ;; 1787 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1788 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1789 program_prefix=$ac_optarg ;; 1790 1791 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1792 | --program-suf | --program-su | --program-s) 1793 ac_prev=program_suffix ;; 1794 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1795 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1796 program_suffix=$ac_optarg ;; 1797 1798 -program-transform-name | --program-transform-name \ 1799 | --program-transform-nam | --program-transform-na \ 1800 | --program-transform-n | --program-transform- \ 1801 | --program-transform | --program-transfor \ 1802 | --program-transfo | --program-transf \ 1803 | --program-trans | --program-tran \ 1804 | --progr-tra | --program-tr | --program-t) 1805 ac_prev=program_transform_name ;; 1806 -program-transform-name=* | --program-transform-name=* \ 1807 | --program-transform-nam=* | --program-transform-na=* \ 1808 | --program-transform-n=* | --program-transform-=* \ 1809 | --program-transform=* | --program-transfor=* \ 1810 | --program-transfo=* | --program-transf=* \ 1811 | --program-trans=* | --program-tran=* \ 1812 | --progr-tra=* | --program-tr=* | --program-t=*) 1813 program_transform_name=$ac_optarg ;; 1814 1815 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1816 ac_prev=pdfdir ;; 1817 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1818 pdfdir=$ac_optarg ;; 1819 1820 -psdir | --psdir | --psdi | --psd | --ps) 1821 ac_prev=psdir ;; 1822 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1823 psdir=$ac_optarg ;; 1824 1825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1826 | -silent | --silent | --silen | --sile | --sil) 1827 silent=yes ;; 1828 1829 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1830 | --runstate | --runstat | --runsta | --runst | --runs \ 1831 | --run | --ru | --r) 1832 ac_prev=runstatedir ;; 1833 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1834 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1835 | --run=* | --ru=* | --r=*) 1836 runstatedir=$ac_optarg ;; 1837 1838 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1839 ac_prev=sbindir ;; 1840 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1841 | --sbi=* | --sb=*) 1842 sbindir=$ac_optarg ;; 1843 1844 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1845 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1846 | --sharedst | --shareds | --shared | --share | --shar \ 1847 | --sha | --sh) 1848 ac_prev=sharedstatedir ;; 1849 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1850 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1851 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1852 | --sha=* | --sh=*) 1853 sharedstatedir=$ac_optarg ;; 1854 1855 -site | --site | --sit) 1856 ac_prev=site ;; 1857 -site=* | --site=* | --sit=*) 1858 site=$ac_optarg ;; 1859 1860 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1861 ac_prev=srcdir ;; 1862 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1863 srcdir=$ac_optarg ;; 1864 1865 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1866 | --syscon | --sysco | --sysc | --sys | --sy) 1867 ac_prev=sysconfdir ;; 1868 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1869 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1870 sysconfdir=$ac_optarg ;; 1871 1872 -target | --target | --targe | --targ | --tar | --ta | --t) 1873 ac_prev=target_alias ;; 1874 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1875 target_alias=$ac_optarg ;; 1876 1877 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1878 verbose=yes ;; 1879 1880 -version | --version | --versio | --versi | --vers | -V) 1881 ac_init_version=: ;; 1882 1883 -with-* | --with-*) 1884 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1885 # Reject names that are not valid shell variable names. 1886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1887 as_fn_error $? "invalid package name: $ac_useropt" 1888 ac_useropt_orig=$ac_useropt 1889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1890 case $ac_user_opts in 1891 *" 1892"with_$ac_useropt" 1893"*) ;; 1894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1895 ac_unrecognized_sep=', ';; 1896 esac 1897 eval with_$ac_useropt=\$ac_optarg ;; 1898 1899 -without-* | --without-*) 1900 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1901 # Reject names that are not valid shell variable names. 1902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1903 as_fn_error $? "invalid package name: $ac_useropt" 1904 ac_useropt_orig=$ac_useropt 1905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1906 case $ac_user_opts in 1907 *" 1908"with_$ac_useropt" 1909"*) ;; 1910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1911 ac_unrecognized_sep=', ';; 1912 esac 1913 eval with_$ac_useropt=no ;; 1914 1915 --x) 1916 # Obsolete; use --with-x. 1917 with_x=yes ;; 1918 1919 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1920 | --x-incl | --x-inc | --x-in | --x-i) 1921 ac_prev=x_includes ;; 1922 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1923 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1924 x_includes=$ac_optarg ;; 1925 1926 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1927 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1928 ac_prev=x_libraries ;; 1929 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1930 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1931 x_libraries=$ac_optarg ;; 1932 1933 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1934Try \`$0 --help' for more information" 1935 ;; 1936 1937 *=*) 1938 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1939 # Reject names that are not valid shell variable names. 1940 case $ac_envvar in #( 1941 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1942 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1943 esac 1944 eval $ac_envvar=\$ac_optarg 1945 export $ac_envvar ;; 1946 1947 *) 1948 # FIXME: should be removed in autoconf 3.0. 1949 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1950 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1951 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1952 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1953 ;; 1954 1955 esac 1956done 1957 1958if test -n "$ac_prev"; then 1959 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1960 as_fn_error $? "missing argument to $ac_option" 1961fi 1962 1963if test -n "$ac_unrecognized_opts"; then 1964 case $enable_option_checking in 1965 no) ;; 1966 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1967 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1968 esac 1969fi 1970 1971# Check all directory arguments for consistency. 1972for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1973 datadir sysconfdir sharedstatedir localstatedir includedir \ 1974 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1975 libdir localedir mandir runstatedir 1976do 1977 eval ac_val=\$$ac_var 1978 # Remove trailing slashes. 1979 case $ac_val in 1980 */ ) 1981 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1982 eval $ac_var=\$ac_val;; 1983 esac 1984 # Be sure to have absolute directory names. 1985 case $ac_val in 1986 [\\/$]* | ?:[\\/]* ) continue;; 1987 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1988 esac 1989 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1990done 1991 1992# There might be people who depend on the old broken behavior: `$host' 1993# used to hold the argument of --host etc. 1994# FIXME: To remove some day. 1995build=$build_alias 1996host=$host_alias 1997target=$target_alias 1998 1999# FIXME: To remove some day. 2000if test "x$host_alias" != x; then 2001 if test "x$build_alias" = x; then 2002 cross_compiling=maybe 2003 elif test "x$build_alias" != "x$host_alias"; then 2004 cross_compiling=yes 2005 fi 2006fi 2007 2008ac_tool_prefix= 2009test -n "$host_alias" && ac_tool_prefix=$host_alias- 2010 2011test "$silent" = yes && exec 6>/dev/null 2012 2013 2014ac_pwd=`pwd` && test -n "$ac_pwd" && 2015ac_ls_di=`ls -di .` && 2016ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 2017 as_fn_error $? "working directory cannot be determined" 2018test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 2019 as_fn_error $? "pwd does not report name of working directory" 2020 2021 2022# Find the source files, if location was not specified. 2023if test -z "$srcdir"; then 2024 ac_srcdir_defaulted=yes 2025 # Try the directory containing this script, then the parent directory. 2026 ac_confdir=`$as_dirname -- "$as_myself" || 2027$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 2028 X"$as_myself" : 'X\(//\)[^/]' \| \ 2029 X"$as_myself" : 'X\(//\)$' \| \ 2030 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 2031$as_echo X"$as_myself" | 2032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 2033 s//\1/ 2034 q 2035 } 2036 /^X\(\/\/\)[^/].*/{ 2037 s//\1/ 2038 q 2039 } 2040 /^X\(\/\/\)$/{ 2041 s//\1/ 2042 q 2043 } 2044 /^X\(\/\).*/{ 2045 s//\1/ 2046 q 2047 } 2048 s/.*/./; q'` 2049 srcdir=$ac_confdir 2050 if test ! -r "$srcdir/$ac_unique_file"; then 2051 srcdir=.. 2052 fi 2053else 2054 ac_srcdir_defaulted=no 2055fi 2056if test ! -r "$srcdir/$ac_unique_file"; then 2057 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 2058 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 2059fi 2060ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 2061ac_abs_confdir=`( 2062 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 2063 pwd)` 2064# When building in place, set srcdir=. 2065if test "$ac_abs_confdir" = "$ac_pwd"; then 2066 srcdir=. 2067fi 2068# Remove unnecessary trailing slashes from srcdir. 2069# Double slashes in file names in object file debugging info 2070# mess up M-x gdb in Emacs. 2071case $srcdir in 2072*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 2073esac 2074for ac_var in $ac_precious_vars; do 2075 eval ac_env_${ac_var}_set=\${${ac_var}+set} 2076 eval ac_env_${ac_var}_value=\$${ac_var} 2077 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 2078 eval ac_cv_env_${ac_var}_value=\$${ac_var} 2079done 2080 2081# 2082# Report the --help message. 2083# 2084if test "$ac_init_help" = "long"; then 2085 # Omit some internal or obsolete options to make the list less imposing. 2086 # This message is too long to be a string in the A/UX 3.1 sh. 2087 cat <<_ACEOF 2088\`configure' configures GNU CSSC 1.4.1 to adapt to many kinds of systems. 2089 2090Usage: $0 [OPTION]... [VAR=VALUE]... 2091 2092To assign environment variables (e.g., CC, CFLAGS...), specify them as 2093VAR=VALUE. See below for descriptions of some of the useful variables. 2094 2095Defaults for the options are specified in brackets. 2096 2097Configuration: 2098 -h, --help display this help and exit 2099 --help=short display options specific to this package 2100 --help=recursive display the short help of all the included packages 2101 -V, --version display version information and exit 2102 -q, --quiet, --silent do not print \`checking ...' messages 2103 --cache-file=FILE cache test results in FILE [disabled] 2104 -C, --config-cache alias for \`--cache-file=config.cache' 2105 -n, --no-create do not create output files 2106 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 2107 2108Installation directories: 2109 --prefix=PREFIX install architecture-independent files in PREFIX 2110 [$ac_default_prefix] 2111 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2112 [PREFIX] 2113 2114By default, \`make install' will install all the files in 2115\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 2116an installation prefix other than \`$ac_default_prefix' using \`--prefix', 2117for instance \`--prefix=\$HOME'. 2118 2119For better control, use the options below. 2120 2121Fine tuning of the installation directories: 2122 --bindir=DIR user executables [EPREFIX/bin] 2123 --sbindir=DIR system admin executables [EPREFIX/sbin] 2124 --libexecdir=DIR program executables [EPREFIX/libexec] 2125 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2126 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2127 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2128 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 2129 --libdir=DIR object code libraries [EPREFIX/lib] 2130 --includedir=DIR C header files [PREFIX/include] 2131 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2132 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2133 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2134 --infodir=DIR info documentation [DATAROOTDIR/info] 2135 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2136 --mandir=DIR man documentation [DATAROOTDIR/man] 2137 --docdir=DIR documentation root [DATAROOTDIR/doc/CSSC] 2138 --htmldir=DIR html documentation [DOCDIR] 2139 --dvidir=DIR dvi documentation [DOCDIR] 2140 --pdfdir=DIR pdf documentation [DOCDIR] 2141 --psdir=DIR ps documentation [DOCDIR] 2142_ACEOF 2143 2144 cat <<\_ACEOF 2145 2146Program names: 2147 --program-prefix=PREFIX prepend PREFIX to installed program names 2148 --program-suffix=SUFFIX append SUFFIX to installed program names 2149 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2150 2151System types: 2152 --build=BUILD configure for building on BUILD [guessed] 2153 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2154_ACEOF 2155fi 2156 2157if test -n "$ac_init_help"; then 2158 case $ac_init_help in 2159 short | recursive ) echo "Configuration of GNU CSSC 1.4.1:";; 2160 esac 2161 cat <<\_ACEOF 2162 2163Optional Features: 2164 --disable-option-checking ignore unrecognized --enable/--with options 2165 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2166 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2167 --enable-silent-rules less verbose build output (undo: "make V=1") 2168 --disable-silent-rules verbose build output (undo: "make V=0") 2169--enable-binary 2170 2171 Enables support for creating "binary" SCCS files (required for 2172 interoperability with Solaris). If binary support is disabled, 2173 encoded SCCS files can still be read, but not created. You should 2174 disable this feature only if you need to interoperate with a 2175 version of SCCS which lacks binary file support. To disable this 2176 feature, use --enable-binary=no or --disable-binary. This setting 2177 is overridden by the environment variable CSSC_BINARY_SUPPORT. 2178 2179--disable-binary 2180 2181 This is the opposite of --enable-binary; see above. 2182 2183--enable-max-line-length=N 2184 2185 Sets the maximum line length allowed in SCCS files to N. By 2186 default, CSSC has no limit. Use this option only if you need to 2187 make CSSC interoperate with other versions of SCCS. Setting this 2188 option to 0 will impose no limit (which is the default in any case). 2189 This setting is overridden by the environment variable 2190 CSSC_MAX_LINE_LENGTH. 2191 2192--disable-max-line-length 2193 2194 This is equivalent to --enable-max-line-length=0 (which is the default). 2195 2196 --enable-dependency-tracking 2197 do not reject slow dependency extractors 2198 --disable-dependency-tracking 2199 speeds up one-time build 2200 --disable-largefile omit support for large files 2201 --enable-shared[=PKGS] build shared libraries [default=yes] 2202 --enable-static[=PKGS] build static libraries [default=yes] 2203 --enable-fast-install[=PKGS] 2204 optimize for fast installation [default=yes] 2205 --disable-libtool-lock avoid locking (might break parallel builds) 2206 --enable-warnings Turn on all potentially-useful compiler warnings 2207 2208Optional Packages: 2209 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2210 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2211 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 2212 both] 2213 --with-aix-soname=aix|svr4|both 2214 shared library versioning (aka "SONAME") variant to 2215 provide on AIX, [default=aix]. 2216 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2217 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 2218 compiler's sysroot if not specified). 2219 --with-valgrind Run tests under Valgrind, if it is installed 2220 --with-pthreads use pthreads (default is yes) 2221 2222Some influential environment variables: 2223 CC C compiler command 2224 CFLAGS C compiler flags 2225 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2226 nonstandard directory <lib dir> 2227 LIBS libraries to pass to the linker, e.g. -l<library> 2228 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2229 you have headers in a nonstandard directory <include dir> 2230 CPP C preprocessor 2231 LT_SYS_LIBRARY_PATH 2232 User-defined run-time library search path. 2233 CXX C++ compiler command 2234 CXXFLAGS C++ compiler flags 2235 CXXCPP C++ preprocessor 2236 2237Use these variables to override the choices made by `configure' or to help 2238it to find libraries and programs with nonstandard names/locations. 2239 2240Report bugs to <bug-CSSC@gnu.org>. 2241GNU CSSC home page: <http://www.gnu.org/software/CSSC/>. 2242General help using GNU software: <http://www.gnu.org/gethelp/>. 2243_ACEOF 2244ac_status=$? 2245fi 2246 2247if test "$ac_init_help" = "recursive"; then 2248 # If there are subdirs, report their specific --help. 2249 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2250 test -d "$ac_dir" || 2251 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2252 continue 2253 ac_builddir=. 2254 2255case "$ac_dir" in 2256.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2257*) 2258 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2259 # A ".." for each directory in $ac_dir_suffix. 2260 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2261 case $ac_top_builddir_sub in 2262 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2263 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2264 esac ;; 2265esac 2266ac_abs_top_builddir=$ac_pwd 2267ac_abs_builddir=$ac_pwd$ac_dir_suffix 2268# for backward compatibility: 2269ac_top_builddir=$ac_top_build_prefix 2270 2271case $srcdir in 2272 .) # We are building in place. 2273 ac_srcdir=. 2274 ac_top_srcdir=$ac_top_builddir_sub 2275 ac_abs_top_srcdir=$ac_pwd ;; 2276 [\\/]* | ?:[\\/]* ) # Absolute name. 2277 ac_srcdir=$srcdir$ac_dir_suffix; 2278 ac_top_srcdir=$srcdir 2279 ac_abs_top_srcdir=$srcdir ;; 2280 *) # Relative name. 2281 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2282 ac_top_srcdir=$ac_top_build_prefix$srcdir 2283 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2284esac 2285ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2286 2287 cd "$ac_dir" || { ac_status=$?; continue; } 2288 # Check for guested configure. 2289 if test -f "$ac_srcdir/configure.gnu"; then 2290 echo && 2291 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2292 elif test -f "$ac_srcdir/configure"; then 2293 echo && 2294 $SHELL "$ac_srcdir/configure" --help=recursive 2295 else 2296 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2297 fi || ac_status=$? 2298 cd "$ac_pwd" || { ac_status=$?; break; } 2299 done 2300fi 2301 2302test -n "$ac_init_help" && exit $ac_status 2303if $ac_init_version; then 2304 cat <<\_ACEOF 2305GNU CSSC configure 1.4.1 2306generated by GNU Autoconf 2.69 2307 2308Copyright (C) 2012 Free Software Foundation, Inc. 2309This configure script is free software; the Free Software Foundation 2310gives unlimited permission to copy, distribute and modify it. 2311_ACEOF 2312 exit 2313fi 2314 2315## ------------------------ ## 2316## Autoconf initialization. ## 2317## ------------------------ ## 2318 2319# ac_fn_c_try_compile LINENO 2320# -------------------------- 2321# Try to compile conftest.$ac_ext, and return whether this succeeded. 2322ac_fn_c_try_compile () 2323{ 2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2325 rm -f conftest.$ac_objext 2326 if { { ac_try="$ac_compile" 2327case "(($ac_try" in 2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2329 *) ac_try_echo=$ac_try;; 2330esac 2331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2332$as_echo "$ac_try_echo"; } >&5 2333 (eval "$ac_compile") 2>conftest.err 2334 ac_status=$? 2335 if test -s conftest.err; then 2336 grep -v '^ *+' conftest.err >conftest.er1 2337 cat conftest.er1 >&5 2338 mv -f conftest.er1 conftest.err 2339 fi 2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2341 test $ac_status = 0; } && { 2342 test -z "$ac_c_werror_flag" || 2343 test ! -s conftest.err 2344 } && test -s conftest.$ac_objext; then : 2345 ac_retval=0 2346else 2347 $as_echo "$as_me: failed program was:" >&5 2348sed 's/^/| /' conftest.$ac_ext >&5 2349 2350 ac_retval=1 2351fi 2352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2353 as_fn_set_status $ac_retval 2354 2355} # ac_fn_c_try_compile 2356 2357# ac_fn_c_try_cpp LINENO 2358# ---------------------- 2359# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2360ac_fn_c_try_cpp () 2361{ 2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2363 if { { ac_try="$ac_cpp conftest.$ac_ext" 2364case "(($ac_try" in 2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2366 *) ac_try_echo=$ac_try;; 2367esac 2368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2369$as_echo "$ac_try_echo"; } >&5 2370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2371 ac_status=$? 2372 if test -s conftest.err; then 2373 grep -v '^ *+' conftest.err >conftest.er1 2374 cat conftest.er1 >&5 2375 mv -f conftest.er1 conftest.err 2376 fi 2377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2378 test $ac_status = 0; } > conftest.i && { 2379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2380 test ! -s conftest.err 2381 }; then : 2382 ac_retval=0 2383else 2384 $as_echo "$as_me: failed program was:" >&5 2385sed 's/^/| /' conftest.$ac_ext >&5 2386 2387 ac_retval=1 2388fi 2389 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2390 as_fn_set_status $ac_retval 2391 2392} # ac_fn_c_try_cpp 2393 2394# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2395# ------------------------------------------------------- 2396# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2397# the include files in INCLUDES and setting the cache variable VAR 2398# accordingly. 2399ac_fn_c_check_header_mongrel () 2400{ 2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2402 if eval \${$3+:} false; then : 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2404$as_echo_n "checking for $2... " >&6; } 2405if eval \${$3+:} false; then : 2406 $as_echo_n "(cached) " >&6 2407fi 2408eval ac_res=\$$3 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2410$as_echo "$ac_res" >&6; } 2411else 2412 # Is the header compilable? 2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2414$as_echo_n "checking $2 usability... " >&6; } 2415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2416/* end confdefs.h. */ 2417$4 2418#include <$2> 2419_ACEOF 2420if ac_fn_c_try_compile "$LINENO"; then : 2421 ac_header_compiler=yes 2422else 2423 ac_header_compiler=no 2424fi 2425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2427$as_echo "$ac_header_compiler" >&6; } 2428 2429# Is the header present? 2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2431$as_echo_n "checking $2 presence... " >&6; } 2432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2433/* end confdefs.h. */ 2434#include <$2> 2435_ACEOF 2436if ac_fn_c_try_cpp "$LINENO"; then : 2437 ac_header_preproc=yes 2438else 2439 ac_header_preproc=no 2440fi 2441rm -f conftest.err conftest.i conftest.$ac_ext 2442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2443$as_echo "$ac_header_preproc" >&6; } 2444 2445# So? What about this header? 2446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2447 yes:no: ) 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2449$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2451$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2452 ;; 2453 no:yes:* ) 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2455$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2457$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2459$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2461$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2463$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2464( $as_echo "## ------------------------------- ## 2465## Report this to bug-CSSC@gnu.org ## 2466## ------------------------------- ##" 2467 ) | sed "s/^/$as_me: WARNING: /" >&2 2468 ;; 2469esac 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2471$as_echo_n "checking for $2... " >&6; } 2472if eval \${$3+:} false; then : 2473 $as_echo_n "(cached) " >&6 2474else 2475 eval "$3=\$ac_header_compiler" 2476fi 2477eval ac_res=\$$3 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2479$as_echo "$ac_res" >&6; } 2480fi 2481 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2482 2483} # ac_fn_c_check_header_mongrel 2484 2485# ac_fn_c_try_run LINENO 2486# ---------------------- 2487# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2488# that executables *can* be run. 2489ac_fn_c_try_run () 2490{ 2491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2492 if { { ac_try="$ac_link" 2493case "(($ac_try" in 2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2495 *) ac_try_echo=$ac_try;; 2496esac 2497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2498$as_echo "$ac_try_echo"; } >&5 2499 (eval "$ac_link") 2>&5 2500 ac_status=$? 2501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2502 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2503 { { case "(($ac_try" in 2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2505 *) ac_try_echo=$ac_try;; 2506esac 2507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2508$as_echo "$ac_try_echo"; } >&5 2509 (eval "$ac_try") 2>&5 2510 ac_status=$? 2511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2512 test $ac_status = 0; }; }; then : 2513 ac_retval=0 2514else 2515 $as_echo "$as_me: program exited with status $ac_status" >&5 2516 $as_echo "$as_me: failed program was:" >&5 2517sed 's/^/| /' conftest.$ac_ext >&5 2518 2519 ac_retval=$ac_status 2520fi 2521 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2523 as_fn_set_status $ac_retval 2524 2525} # ac_fn_c_try_run 2526 2527# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2528# ------------------------------------------------------- 2529# Tests whether HEADER exists and can be compiled using the include files in 2530# INCLUDES, setting the cache variable VAR accordingly. 2531ac_fn_c_check_header_compile () 2532{ 2533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2535$as_echo_n "checking for $2... " >&6; } 2536if eval \${$3+:} false; then : 2537 $as_echo_n "(cached) " >&6 2538else 2539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2540/* end confdefs.h. */ 2541$4 2542#include <$2> 2543_ACEOF 2544if ac_fn_c_try_compile "$LINENO"; then : 2545 eval "$3=yes" 2546else 2547 eval "$3=no" 2548fi 2549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2550fi 2551eval ac_res=\$$3 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2553$as_echo "$ac_res" >&6; } 2554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2555 2556} # ac_fn_c_check_header_compile 2557 2558# ac_fn_c_try_link LINENO 2559# ----------------------- 2560# Try to link conftest.$ac_ext, and return whether this succeeded. 2561ac_fn_c_try_link () 2562{ 2563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2564 rm -f conftest.$ac_objext conftest$ac_exeext 2565 if { { ac_try="$ac_link" 2566case "(($ac_try" in 2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2568 *) ac_try_echo=$ac_try;; 2569esac 2570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2571$as_echo "$ac_try_echo"; } >&5 2572 (eval "$ac_link") 2>conftest.err 2573 ac_status=$? 2574 if test -s conftest.err; then 2575 grep -v '^ *+' conftest.err >conftest.er1 2576 cat conftest.er1 >&5 2577 mv -f conftest.er1 conftest.err 2578 fi 2579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2580 test $ac_status = 0; } && { 2581 test -z "$ac_c_werror_flag" || 2582 test ! -s conftest.err 2583 } && test -s conftest$ac_exeext && { 2584 test "$cross_compiling" = yes || 2585 test -x conftest$ac_exeext 2586 }; then : 2587 ac_retval=0 2588else 2589 $as_echo "$as_me: failed program was:" >&5 2590sed 's/^/| /' conftest.$ac_ext >&5 2591 2592 ac_retval=1 2593fi 2594 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2595 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2596 # interfere with the next link command; also delete a directory that is 2597 # left behind by Apple's compiler. We do this before executing the actions. 2598 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2600 as_fn_set_status $ac_retval 2601 2602} # ac_fn_c_try_link 2603 2604# ac_fn_c_check_func LINENO FUNC VAR 2605# ---------------------------------- 2606# Tests whether FUNC exists, setting the cache variable VAR accordingly 2607ac_fn_c_check_func () 2608{ 2609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2611$as_echo_n "checking for $2... " >&6; } 2612if eval \${$3+:} false; then : 2613 $as_echo_n "(cached) " >&6 2614else 2615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2616/* end confdefs.h. */ 2617/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2618 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2619#define $2 innocuous_$2 2620 2621/* System header to define __stub macros and hopefully few prototypes, 2622 which can conflict with char $2 (); below. 2623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2624 <limits.h> exists even on freestanding compilers. */ 2625 2626#ifdef __STDC__ 2627# include <limits.h> 2628#else 2629# include <assert.h> 2630#endif 2631 2632#undef $2 2633 2634/* Override any GCC internal prototype to avoid an error. 2635 Use char because int might match the return type of a GCC 2636 builtin and then its argument prototype would still apply. */ 2637#ifdef __cplusplus 2638extern "C" 2639#endif 2640char $2 (); 2641/* The GNU C library defines this for functions which it implements 2642 to always fail with ENOSYS. Some functions are actually named 2643 something starting with __ and the normal name is an alias. */ 2644#if defined __stub_$2 || defined __stub___$2 2645choke me 2646#endif 2647 2648int 2649main () 2650{ 2651return $2 (); 2652 ; 2653 return 0; 2654} 2655_ACEOF 2656if ac_fn_c_try_link "$LINENO"; then : 2657 eval "$3=yes" 2658else 2659 eval "$3=no" 2660fi 2661rm -f core conftest.err conftest.$ac_objext \ 2662 conftest$ac_exeext conftest.$ac_ext 2663fi 2664eval ac_res=\$$3 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2666$as_echo "$ac_res" >&6; } 2667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2668 2669} # ac_fn_c_check_func 2670 2671# ac_fn_cxx_try_compile LINENO 2672# ---------------------------- 2673# Try to compile conftest.$ac_ext, and return whether this succeeded. 2674ac_fn_cxx_try_compile () 2675{ 2676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2677 rm -f conftest.$ac_objext 2678 if { { ac_try="$ac_compile" 2679case "(($ac_try" in 2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2681 *) ac_try_echo=$ac_try;; 2682esac 2683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2684$as_echo "$ac_try_echo"; } >&5 2685 (eval "$ac_compile") 2>conftest.err 2686 ac_status=$? 2687 if test -s conftest.err; then 2688 grep -v '^ *+' conftest.err >conftest.er1 2689 cat conftest.er1 >&5 2690 mv -f conftest.er1 conftest.err 2691 fi 2692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2693 test $ac_status = 0; } && { 2694 test -z "$ac_cxx_werror_flag" || 2695 test ! -s conftest.err 2696 } && test -s conftest.$ac_objext; then : 2697 ac_retval=0 2698else 2699 $as_echo "$as_me: failed program was:" >&5 2700sed 's/^/| /' conftest.$ac_ext >&5 2701 2702 ac_retval=1 2703fi 2704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2705 as_fn_set_status $ac_retval 2706 2707} # ac_fn_cxx_try_compile 2708 2709# ac_fn_cxx_try_cpp LINENO 2710# ------------------------ 2711# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2712ac_fn_cxx_try_cpp () 2713{ 2714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2715 if { { ac_try="$ac_cpp conftest.$ac_ext" 2716case "(($ac_try" in 2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2718 *) ac_try_echo=$ac_try;; 2719esac 2720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2721$as_echo "$ac_try_echo"; } >&5 2722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2723 ac_status=$? 2724 if test -s conftest.err; then 2725 grep -v '^ *+' conftest.err >conftest.er1 2726 cat conftest.er1 >&5 2727 mv -f conftest.er1 conftest.err 2728 fi 2729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2730 test $ac_status = 0; } > conftest.i && { 2731 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2732 test ! -s conftest.err 2733 }; then : 2734 ac_retval=0 2735else 2736 $as_echo "$as_me: failed program was:" >&5 2737sed 's/^/| /' conftest.$ac_ext >&5 2738 2739 ac_retval=1 2740fi 2741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2742 as_fn_set_status $ac_retval 2743 2744} # ac_fn_cxx_try_cpp 2745 2746# ac_fn_cxx_try_link LINENO 2747# ------------------------- 2748# Try to link conftest.$ac_ext, and return whether this succeeded. 2749ac_fn_cxx_try_link () 2750{ 2751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2752 rm -f conftest.$ac_objext conftest$ac_exeext 2753 if { { ac_try="$ac_link" 2754case "(($ac_try" in 2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2756 *) ac_try_echo=$ac_try;; 2757esac 2758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2759$as_echo "$ac_try_echo"; } >&5 2760 (eval "$ac_link") 2>conftest.err 2761 ac_status=$? 2762 if test -s conftest.err; then 2763 grep -v '^ *+' conftest.err >conftest.er1 2764 cat conftest.er1 >&5 2765 mv -f conftest.er1 conftest.err 2766 fi 2767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2768 test $ac_status = 0; } && { 2769 test -z "$ac_cxx_werror_flag" || 2770 test ! -s conftest.err 2771 } && test -s conftest$ac_exeext && { 2772 test "$cross_compiling" = yes || 2773 test -x conftest$ac_exeext 2774 }; then : 2775 ac_retval=0 2776else 2777 $as_echo "$as_me: failed program was:" >&5 2778sed 's/^/| /' conftest.$ac_ext >&5 2779 2780 ac_retval=1 2781fi 2782 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2783 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2784 # interfere with the next link command; also delete a directory that is 2785 # left behind by Apple's compiler. We do this before executing the actions. 2786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2788 as_fn_set_status $ac_retval 2789 2790} # ac_fn_cxx_try_link 2791 2792# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2793# --------------------------------------------- 2794# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2795# accordingly. 2796ac_fn_c_check_decl () 2797{ 2798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2799 as_decl_name=`echo $2|sed 's/ *(.*//'` 2800 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2802$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2803if eval \${$3+:} false; then : 2804 $as_echo_n "(cached) " >&6 2805else 2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2807/* end confdefs.h. */ 2808$4 2809int 2810main () 2811{ 2812#ifndef $as_decl_name 2813#ifdef __cplusplus 2814 (void) $as_decl_use; 2815#else 2816 (void) $as_decl_name; 2817#endif 2818#endif 2819 2820 ; 2821 return 0; 2822} 2823_ACEOF 2824if ac_fn_c_try_compile "$LINENO"; then : 2825 eval "$3=yes" 2826else 2827 eval "$3=no" 2828fi 2829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2830fi 2831eval ac_res=\$$3 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2833$as_echo "$ac_res" >&6; } 2834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2835 2836} # ac_fn_c_check_decl 2837 2838# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2839# -------------------------------------------- 2840# Tries to find the compile-time value of EXPR in a program that includes 2841# INCLUDES, setting VAR accordingly. Returns whether the value could be 2842# computed 2843ac_fn_c_compute_int () 2844{ 2845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2846 if test "$cross_compiling" = yes; then 2847 # Depending upon the size, compute the lo and hi bounds. 2848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2849/* end confdefs.h. */ 2850$4 2851int 2852main () 2853{ 2854static int test_array [1 - 2 * !(($2) >= 0)]; 2855test_array [0] = 0; 2856return test_array [0]; 2857 2858 ; 2859 return 0; 2860} 2861_ACEOF 2862if ac_fn_c_try_compile "$LINENO"; then : 2863 ac_lo=0 ac_mid=0 2864 while :; do 2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2866/* end confdefs.h. */ 2867$4 2868int 2869main () 2870{ 2871static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2872test_array [0] = 0; 2873return test_array [0]; 2874 2875 ; 2876 return 0; 2877} 2878_ACEOF 2879if ac_fn_c_try_compile "$LINENO"; then : 2880 ac_hi=$ac_mid; break 2881else 2882 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2883 if test $ac_lo -le $ac_mid; then 2884 ac_lo= ac_hi= 2885 break 2886 fi 2887 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2888fi 2889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2890 done 2891else 2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2893/* end confdefs.h. */ 2894$4 2895int 2896main () 2897{ 2898static int test_array [1 - 2 * !(($2) < 0)]; 2899test_array [0] = 0; 2900return test_array [0]; 2901 2902 ; 2903 return 0; 2904} 2905_ACEOF 2906if ac_fn_c_try_compile "$LINENO"; then : 2907 ac_hi=-1 ac_mid=-1 2908 while :; do 2909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2910/* end confdefs.h. */ 2911$4 2912int 2913main () 2914{ 2915static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2916test_array [0] = 0; 2917return test_array [0]; 2918 2919 ; 2920 return 0; 2921} 2922_ACEOF 2923if ac_fn_c_try_compile "$LINENO"; then : 2924 ac_lo=$ac_mid; break 2925else 2926 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2927 if test $ac_mid -le $ac_hi; then 2928 ac_lo= ac_hi= 2929 break 2930 fi 2931 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2932fi 2933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2934 done 2935else 2936 ac_lo= ac_hi= 2937fi 2938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2939fi 2940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2941# Binary search between lo and hi bounds. 2942while test "x$ac_lo" != "x$ac_hi"; do 2943 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2945/* end confdefs.h. */ 2946$4 2947int 2948main () 2949{ 2950static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2951test_array [0] = 0; 2952return test_array [0]; 2953 2954 ; 2955 return 0; 2956} 2957_ACEOF 2958if ac_fn_c_try_compile "$LINENO"; then : 2959 ac_hi=$ac_mid 2960else 2961 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2962fi 2963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2964done 2965case $ac_lo in #(( 2966?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2967'') ac_retval=1 ;; 2968esac 2969 else 2970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2971/* end confdefs.h. */ 2972$4 2973static long int longval () { return $2; } 2974static unsigned long int ulongval () { return $2; } 2975#include <stdio.h> 2976#include <stdlib.h> 2977int 2978main () 2979{ 2980 2981 FILE *f = fopen ("conftest.val", "w"); 2982 if (! f) 2983 return 1; 2984 if (($2) < 0) 2985 { 2986 long int i = longval (); 2987 if (i != ($2)) 2988 return 1; 2989 fprintf (f, "%ld", i); 2990 } 2991 else 2992 { 2993 unsigned long int i = ulongval (); 2994 if (i != ($2)) 2995 return 1; 2996 fprintf (f, "%lu", i); 2997 } 2998 /* Do not output a trailing newline, as this causes \r\n confusion 2999 on some platforms. */ 3000 return ferror (f) || fclose (f) != 0; 3001 3002 ; 3003 return 0; 3004} 3005_ACEOF 3006if ac_fn_c_try_run "$LINENO"; then : 3007 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 3008else 3009 ac_retval=1 3010fi 3011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3012 conftest.$ac_objext conftest.beam conftest.$ac_ext 3013rm -f conftest.val 3014 3015 fi 3016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3017 as_fn_set_status $ac_retval 3018 3019} # ac_fn_c_compute_int 3020 3021# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 3022# ------------------------------------------- 3023# Tests whether TYPE exists after having included INCLUDES, setting cache 3024# variable VAR accordingly. 3025ac_fn_c_check_type () 3026{ 3027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3029$as_echo_n "checking for $2... " >&6; } 3030if eval \${$3+:} false; then : 3031 $as_echo_n "(cached) " >&6 3032else 3033 eval "$3=no" 3034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3035/* end confdefs.h. */ 3036$4 3037int 3038main () 3039{ 3040if (sizeof ($2)) 3041 return 0; 3042 ; 3043 return 0; 3044} 3045_ACEOF 3046if ac_fn_c_try_compile "$LINENO"; then : 3047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3048/* end confdefs.h. */ 3049$4 3050int 3051main () 3052{ 3053if (sizeof (($2))) 3054 return 0; 3055 ; 3056 return 0; 3057} 3058_ACEOF 3059if ac_fn_c_try_compile "$LINENO"; then : 3060 3061else 3062 eval "$3=yes" 3063fi 3064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3065fi 3066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3067fi 3068eval ac_res=\$$3 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3070$as_echo "$ac_res" >&6; } 3071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3072 3073} # ac_fn_c_check_type 3074 3075# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 3076# --------------------------------------------------------- 3077# Tests whether HEADER exists, giving a warning if it cannot be compiled using 3078# the include files in INCLUDES and setting the cache variable VAR 3079# accordingly. 3080ac_fn_cxx_check_header_mongrel () 3081{ 3082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3083 if eval \${$3+:} false; then : 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3085$as_echo_n "checking for $2... " >&6; } 3086if eval \${$3+:} false; then : 3087 $as_echo_n "(cached) " >&6 3088fi 3089eval ac_res=\$$3 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3091$as_echo "$ac_res" >&6; } 3092else 3093 # Is the header compilable? 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 3095$as_echo_n "checking $2 usability... " >&6; } 3096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3097/* end confdefs.h. */ 3098$4 3099#include <$2> 3100_ACEOF 3101if ac_fn_cxx_try_compile "$LINENO"; then : 3102 ac_header_compiler=yes 3103else 3104 ac_header_compiler=no 3105fi 3106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 3108$as_echo "$ac_header_compiler" >&6; } 3109 3110# Is the header present? 3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 3112$as_echo_n "checking $2 presence... " >&6; } 3113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3114/* end confdefs.h. */ 3115#include <$2> 3116_ACEOF 3117if ac_fn_cxx_try_cpp "$LINENO"; then : 3118 ac_header_preproc=yes 3119else 3120 ac_header_preproc=no 3121fi 3122rm -f conftest.err conftest.i conftest.$ac_ext 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 3124$as_echo "$ac_header_preproc" >&6; } 3125 3126# So? What about this header? 3127case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 3128 yes:no: ) 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 3130$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 3132$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 3133 ;; 3134 no:yes:* ) 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 3136$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 3138$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 3139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 3140$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 3142$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 3144$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 3145( $as_echo "## ------------------------------- ## 3146## Report this to bug-CSSC@gnu.org ## 3147## ------------------------------- ##" 3148 ) | sed "s/^/$as_me: WARNING: /" >&2 3149 ;; 3150esac 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3152$as_echo_n "checking for $2... " >&6; } 3153if eval \${$3+:} false; then : 3154 $as_echo_n "(cached) " >&6 3155else 3156 eval "$3=\$ac_header_compiler" 3157fi 3158eval ac_res=\$$3 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3160$as_echo "$ac_res" >&6; } 3161fi 3162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3163 3164} # ac_fn_cxx_check_header_mongrel 3165 3166# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 3167# --------------------------------------------- 3168# Tests whether TYPE exists after having included INCLUDES, setting cache 3169# variable VAR accordingly. 3170ac_fn_cxx_check_type () 3171{ 3172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3174$as_echo_n "checking for $2... " >&6; } 3175if eval \${$3+:} false; then : 3176 $as_echo_n "(cached) " >&6 3177else 3178 eval "$3=no" 3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3180/* end confdefs.h. */ 3181$4 3182int 3183main () 3184{ 3185if (sizeof ($2)) 3186 return 0; 3187 ; 3188 return 0; 3189} 3190_ACEOF 3191if ac_fn_cxx_try_compile "$LINENO"; then : 3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3193/* end confdefs.h. */ 3194$4 3195int 3196main () 3197{ 3198if (sizeof (($2))) 3199 return 0; 3200 ; 3201 return 0; 3202} 3203_ACEOF 3204if ac_fn_cxx_try_compile "$LINENO"; then : 3205 3206else 3207 eval "$3=yes" 3208fi 3209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3210fi 3211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3212fi 3213eval ac_res=\$$3 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3215$as_echo "$ac_res" >&6; } 3216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3217 3218} # ac_fn_cxx_check_type 3219 3220# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES 3221# ----------------------------------------------- 3222# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 3223# accordingly. 3224ac_fn_cxx_check_decl () 3225{ 3226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3227 as_decl_name=`echo $2|sed 's/ *(.*//'` 3228 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 3230$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 3231if eval \${$3+:} false; then : 3232 $as_echo_n "(cached) " >&6 3233else 3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3235/* end confdefs.h. */ 3236$4 3237int 3238main () 3239{ 3240#ifndef $as_decl_name 3241#ifdef __cplusplus 3242 (void) $as_decl_use; 3243#else 3244 (void) $as_decl_name; 3245#endif 3246#endif 3247 3248 ; 3249 return 0; 3250} 3251_ACEOF 3252if ac_fn_cxx_try_compile "$LINENO"; then : 3253 eval "$3=yes" 3254else 3255 eval "$3=no" 3256fi 3257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3258fi 3259eval ac_res=\$$3 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3261$as_echo "$ac_res" >&6; } 3262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3263 3264} # ac_fn_cxx_check_decl 3265 3266# ac_fn_cxx_check_func LINENO FUNC VAR 3267# ------------------------------------ 3268# Tests whether FUNC exists, setting the cache variable VAR accordingly 3269ac_fn_cxx_check_func () 3270{ 3271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3273$as_echo_n "checking for $2... " >&6; } 3274if eval \${$3+:} false; then : 3275 $as_echo_n "(cached) " >&6 3276else 3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3278/* end confdefs.h. */ 3279/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 3280 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3281#define $2 innocuous_$2 3282 3283/* System header to define __stub macros and hopefully few prototypes, 3284 which can conflict with char $2 (); below. 3285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3286 <limits.h> exists even on freestanding compilers. */ 3287 3288#ifdef __STDC__ 3289# include <limits.h> 3290#else 3291# include <assert.h> 3292#endif 3293 3294#undef $2 3295 3296/* Override any GCC internal prototype to avoid an error. 3297 Use char because int might match the return type of a GCC 3298 builtin and then its argument prototype would still apply. */ 3299#ifdef __cplusplus 3300extern "C" 3301#endif 3302char $2 (); 3303/* The GNU C library defines this for functions which it implements 3304 to always fail with ENOSYS. Some functions are actually named 3305 something starting with __ and the normal name is an alias. */ 3306#if defined __stub_$2 || defined __stub___$2 3307choke me 3308#endif 3309 3310int 3311main () 3312{ 3313return $2 (); 3314 ; 3315 return 0; 3316} 3317_ACEOF 3318if ac_fn_cxx_try_link "$LINENO"; then : 3319 eval "$3=yes" 3320else 3321 eval "$3=no" 3322fi 3323rm -f core conftest.err conftest.$ac_objext \ 3324 conftest$ac_exeext conftest.$ac_ext 3325fi 3326eval ac_res=\$$3 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3328$as_echo "$ac_res" >&6; } 3329 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3330 3331} # ac_fn_cxx_check_func 3332cat >config.log <<_ACEOF 3333This file contains any messages produced by compilers while 3334running configure, to aid debugging if configure makes a mistake. 3335 3336It was created by GNU CSSC $as_me 1.4.1, which was 3337generated by GNU Autoconf 2.69. Invocation command line was 3338 3339 $ $0 $@ 3340 3341_ACEOF 3342exec 5>>config.log 3343{ 3344cat <<_ASUNAME 3345## --------- ## 3346## Platform. ## 3347## --------- ## 3348 3349hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3350uname -m = `(uname -m) 2>/dev/null || echo unknown` 3351uname -r = `(uname -r) 2>/dev/null || echo unknown` 3352uname -s = `(uname -s) 2>/dev/null || echo unknown` 3353uname -v = `(uname -v) 2>/dev/null || echo unknown` 3354 3355/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3356/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3357 3358/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3359/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3360/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3361/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3362/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3363/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3364/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3365 3366_ASUNAME 3367 3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3369for as_dir in $PATH 3370do 3371 IFS=$as_save_IFS 3372 test -z "$as_dir" && as_dir=. 3373 $as_echo "PATH: $as_dir" 3374 done 3375IFS=$as_save_IFS 3376 3377} >&5 3378 3379cat >&5 <<_ACEOF 3380 3381 3382## ----------- ## 3383## Core tests. ## 3384## ----------- ## 3385 3386_ACEOF 3387 3388 3389# Keep a trace of the command line. 3390# Strip out --no-create and --no-recursion so they do not pile up. 3391# Strip out --silent because we don't want to record it for future runs. 3392# Also quote any args containing shell meta-characters. 3393# Make two passes to allow for proper duplicate-argument suppression. 3394ac_configure_args= 3395ac_configure_args0= 3396ac_configure_args1= 3397ac_must_keep_next=false 3398for ac_pass in 1 2 3399do 3400 for ac_arg 3401 do 3402 case $ac_arg in 3403 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3405 | -silent | --silent | --silen | --sile | --sil) 3406 continue ;; 3407 *\'*) 3408 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3409 esac 3410 case $ac_pass in 3411 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3412 2) 3413 as_fn_append ac_configure_args1 " '$ac_arg'" 3414 if test $ac_must_keep_next = true; then 3415 ac_must_keep_next=false # Got value, back to normal. 3416 else 3417 case $ac_arg in 3418 *=* | --config-cache | -C | -disable-* | --disable-* \ 3419 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3420 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3421 | -with-* | --with-* | -without-* | --without-* | --x) 3422 case "$ac_configure_args0 " in 3423 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3424 esac 3425 ;; 3426 -* ) ac_must_keep_next=true ;; 3427 esac 3428 fi 3429 as_fn_append ac_configure_args " '$ac_arg'" 3430 ;; 3431 esac 3432 done 3433done 3434{ ac_configure_args0=; unset ac_configure_args0;} 3435{ ac_configure_args1=; unset ac_configure_args1;} 3436 3437# When interrupted or exit'd, cleanup temporary files, and complete 3438# config.log. We remove comments because anyway the quotes in there 3439# would cause problems or look ugly. 3440# WARNING: Use '\'' to represent an apostrophe within the trap. 3441# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3442trap 'exit_status=$? 3443 # Save into config.log some information that might help in debugging. 3444 { 3445 echo 3446 3447 $as_echo "## ---------------- ## 3448## Cache variables. ## 3449## ---------------- ##" 3450 echo 3451 # The following way of writing the cache mishandles newlines in values, 3452( 3453 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3454 eval ac_val=\$$ac_var 3455 case $ac_val in #( 3456 *${as_nl}*) 3457 case $ac_var in #( 3458 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3459$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3460 esac 3461 case $ac_var in #( 3462 _ | IFS | as_nl) ;; #( 3463 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3464 *) { eval $ac_var=; unset $ac_var;} ;; 3465 esac ;; 3466 esac 3467 done 3468 (set) 2>&1 | 3469 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3470 *${as_nl}ac_space=\ *) 3471 sed -n \ 3472 "s/'\''/'\''\\\\'\'''\''/g; 3473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3474 ;; #( 3475 *) 3476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3477 ;; 3478 esac | 3479 sort 3480) 3481 echo 3482 3483 $as_echo "## ----------------- ## 3484## Output variables. ## 3485## ----------------- ##" 3486 echo 3487 for ac_var in $ac_subst_vars 3488 do 3489 eval ac_val=\$$ac_var 3490 case $ac_val in 3491 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3492 esac 3493 $as_echo "$ac_var='\''$ac_val'\''" 3494 done | sort 3495 echo 3496 3497 if test -n "$ac_subst_files"; then 3498 $as_echo "## ------------------- ## 3499## File substitutions. ## 3500## ------------------- ##" 3501 echo 3502 for ac_var in $ac_subst_files 3503 do 3504 eval ac_val=\$$ac_var 3505 case $ac_val in 3506 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3507 esac 3508 $as_echo "$ac_var='\''$ac_val'\''" 3509 done | sort 3510 echo 3511 fi 3512 3513 if test -s confdefs.h; then 3514 $as_echo "## ----------- ## 3515## confdefs.h. ## 3516## ----------- ##" 3517 echo 3518 cat confdefs.h 3519 echo 3520 fi 3521 test "$ac_signal" != 0 && 3522 $as_echo "$as_me: caught signal $ac_signal" 3523 $as_echo "$as_me: exit $exit_status" 3524 } >&5 3525 rm -f core *.core core.conftest.* && 3526 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3527 exit $exit_status 3528' 0 3529for ac_signal in 1 2 13 15; do 3530 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3531done 3532ac_signal=0 3533 3534# confdefs.h avoids OS command line length limits that DEFS can exceed. 3535rm -f -r conftest* confdefs.h 3536 3537$as_echo "/* confdefs.h */" > confdefs.h 3538 3539# Predefined preprocessor variables. 3540 3541cat >>confdefs.h <<_ACEOF 3542#define PACKAGE_NAME "$PACKAGE_NAME" 3543_ACEOF 3544 3545cat >>confdefs.h <<_ACEOF 3546#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3547_ACEOF 3548 3549cat >>confdefs.h <<_ACEOF 3550#define PACKAGE_VERSION "$PACKAGE_VERSION" 3551_ACEOF 3552 3553cat >>confdefs.h <<_ACEOF 3554#define PACKAGE_STRING "$PACKAGE_STRING" 3555_ACEOF 3556 3557cat >>confdefs.h <<_ACEOF 3558#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3559_ACEOF 3560 3561cat >>confdefs.h <<_ACEOF 3562#define PACKAGE_URL "$PACKAGE_URL" 3563_ACEOF 3564 3565 3566# Let the site file select an alternate cache file if it wants to. 3567# Prefer an explicitly selected file to automatically selected ones. 3568ac_site_file1=NONE 3569ac_site_file2=NONE 3570if test -n "$CONFIG_SITE"; then 3571 # We do not want a PATH search for config.site. 3572 case $CONFIG_SITE in #(( 3573 -*) ac_site_file1=./$CONFIG_SITE;; 3574 */*) ac_site_file1=$CONFIG_SITE;; 3575 *) ac_site_file1=./$CONFIG_SITE;; 3576 esac 3577elif test "x$prefix" != xNONE; then 3578 ac_site_file1=$prefix/share/config.site 3579 ac_site_file2=$prefix/etc/config.site 3580else 3581 ac_site_file1=$ac_default_prefix/share/config.site 3582 ac_site_file2=$ac_default_prefix/etc/config.site 3583fi 3584for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3585do 3586 test "x$ac_site_file" = xNONE && continue 3587 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3588 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3589$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3590 sed 's/^/| /' "$ac_site_file" >&5 3591 . "$ac_site_file" \ 3592 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3594as_fn_error $? "failed to load site script $ac_site_file 3595See \`config.log' for more details" "$LINENO" 5; } 3596 fi 3597done 3598 3599if test -r "$cache_file"; then 3600 # Some versions of bash will fail to source /dev/null (special files 3601 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3602 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3603 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3604$as_echo "$as_me: loading cache $cache_file" >&6;} 3605 case $cache_file in 3606 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3607 *) . "./$cache_file";; 3608 esac 3609 fi 3610else 3611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3612$as_echo "$as_me: creating cache $cache_file" >&6;} 3613 >$cache_file 3614fi 3615 3616gl_func_list="$gl_func_list _set_invalid_parameter_handler" 3617gl_header_list="$gl_header_list sys/socket.h" 3618gl_header_list="$gl_header_list dirent.h" 3619gl_func_list="$gl_func_list fdopendir" 3620gl_func_list="$gl_func_list fcntl" 3621gl_header_list="$gl_header_list unistd.h" 3622gl_func_list="$gl_func_list symlink" 3623gl_header_list="$gl_header_list sys/stat.h" 3624gl_func_list="$gl_func_list getdtablesize" 3625gl_header_list="$gl_header_list sys/time.h" 3626gl_func_list="$gl_func_list gettimeofday" 3627gl_header_list="$gl_header_list pthread.h" 3628gl_header_list="$gl_header_list sched.h" 3629gl_header_list="$gl_header_list sys/file.h" 3630gl_header_list="$gl_header_list sys/wait.h" 3631gl_func_list="$gl_func_list pipe" 3632gl_header_list="$gl_header_list wchar.h" 3633gl_header_list="$gl_header_list stdint.h" 3634gl_header_list="$gl_header_list inttypes.h" 3635gl_func_list="$gl_func_list lstat" 3636gl_header_list="$gl_header_list sys/param.h" 3637gl_header_list="$gl_header_list features.h" 3638# Check that the precious variables saved in the cache have kept the same 3639# value. 3640ac_cache_corrupted=false 3641for ac_var in $ac_precious_vars; do 3642 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3643 eval ac_new_set=\$ac_env_${ac_var}_set 3644 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3645 eval ac_new_val=\$ac_env_${ac_var}_value 3646 case $ac_old_set,$ac_new_set in 3647 set,) 3648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3649$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3650 ac_cache_corrupted=: ;; 3651 ,set) 3652 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3653$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3654 ac_cache_corrupted=: ;; 3655 ,);; 3656 *) 3657 if test "x$ac_old_val" != "x$ac_new_val"; then 3658 # differences in whitespace do not lead to failure. 3659 ac_old_val_w=`echo x $ac_old_val` 3660 ac_new_val_w=`echo x $ac_new_val` 3661 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3663$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3664 ac_cache_corrupted=: 3665 else 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3667$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3668 eval $ac_var=\$ac_old_val 3669 fi 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3671$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3672 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3673$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3674 fi;; 3675 esac 3676 # Pass precious variables to config.status. 3677 if test "$ac_new_set" = set; then 3678 case $ac_new_val in 3679 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3680 *) ac_arg=$ac_var=$ac_new_val ;; 3681 esac 3682 case " $ac_configure_args " in 3683 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3684 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3685 esac 3686 fi 3687done 3688if $ac_cache_corrupted; then 3689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3692$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3693 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3694fi 3695## -------------------- ## 3696## Main body of script. ## 3697## -------------------- ## 3698 3699ac_ext=c 3700ac_cpp='$CPP $CPPFLAGS' 3701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3703ac_compiler_gnu=$ac_cv_c_compiler_gnu 3704 3705 3706 3707ac_aux_dir= 3708for ac_dir in build-aux "$srcdir"/build-aux; do 3709 if test -f "$ac_dir/install-sh"; then 3710 ac_aux_dir=$ac_dir 3711 ac_install_sh="$ac_aux_dir/install-sh -c" 3712 break 3713 elif test -f "$ac_dir/install.sh"; then 3714 ac_aux_dir=$ac_dir 3715 ac_install_sh="$ac_aux_dir/install.sh -c" 3716 break 3717 elif test -f "$ac_dir/shtool"; then 3718 ac_aux_dir=$ac_dir 3719 ac_install_sh="$ac_aux_dir/shtool install -c" 3720 break 3721 fi 3722done 3723if test -z "$ac_aux_dir"; then 3724 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 3725fi 3726 3727# These three variables are undocumented and unsupported, 3728# and are intended to be withdrawn in a future Autoconf release. 3729# They can cause serious problems if a builder's source tree is in a directory 3730# whose full name contains unusual characters. 3731ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3732ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3733ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3734 3735 3736 3737# Changes to AC_CONFIG_MACRO_DIR shoulld be reflected in ACLOCAL_AMFLAGS in Makefile.am. 3738 3739 3740AUXDIR=$ac_aux_dir 3741 3742am__api_version='1.15' 3743 3744# Find a good install program. We prefer a C program (faster), 3745# so one script is as good as another. But avoid the broken or 3746# incompatible versions: 3747# SysV /etc/install, /usr/sbin/install 3748# SunOS /usr/etc/install 3749# IRIX /sbin/install 3750# AIX /bin/install 3751# AmigaOS /C/install, which installs bootblocks on floppy discs 3752# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3753# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3754# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3755# OS/2's system install, which has a completely different semantic 3756# ./install, which can be erroneously created by make from ./install.sh. 3757# Reject install programs that cannot install multiple files. 3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3759$as_echo_n "checking for a BSD-compatible install... " >&6; } 3760if test -z "$INSTALL"; then 3761if ${ac_cv_path_install+:} false; then : 3762 $as_echo_n "(cached) " >&6 3763else 3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3765for as_dir in $PATH 3766do 3767 IFS=$as_save_IFS 3768 test -z "$as_dir" && as_dir=. 3769 # Account for people who put trailing slashes in PATH elements. 3770case $as_dir/ in #(( 3771 ./ | .// | /[cC]/* | \ 3772 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3773 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3774 /usr/ucb/* ) ;; 3775 *) 3776 # OSF1 and SCO ODT 3.0 have their own names for install. 3777 # Don't use installbsd from OSF since it installs stuff as root 3778 # by default. 3779 for ac_prog in ginstall scoinst install; do 3780 for ac_exec_ext in '' $ac_executable_extensions; do 3781 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3782 if test $ac_prog = install && 3783 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3784 # AIX install. It has an incompatible calling convention. 3785 : 3786 elif test $ac_prog = install && 3787 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3788 # program-specific install script used by HP pwplus--don't use. 3789 : 3790 else 3791 rm -rf conftest.one conftest.two conftest.dir 3792 echo one > conftest.one 3793 echo two > conftest.two 3794 mkdir conftest.dir 3795 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3796 test -s conftest.one && test -s conftest.two && 3797 test -s conftest.dir/conftest.one && 3798 test -s conftest.dir/conftest.two 3799 then 3800 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3801 break 3 3802 fi 3803 fi 3804 fi 3805 done 3806 done 3807 ;; 3808esac 3809 3810 done 3811IFS=$as_save_IFS 3812 3813rm -rf conftest.one conftest.two conftest.dir 3814 3815fi 3816 if test "${ac_cv_path_install+set}" = set; then 3817 INSTALL=$ac_cv_path_install 3818 else 3819 # As a last resort, use the slow shell script. Don't cache a 3820 # value for INSTALL within a source directory, because that will 3821 # break other packages using the cache if that directory is 3822 # removed, or if the value is a relative name. 3823 INSTALL=$ac_install_sh 3824 fi 3825fi 3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3827$as_echo "$INSTALL" >&6; } 3828 3829# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3830# It thinks the first close brace ends the variable substitution. 3831test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3832 3833test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3834 3835test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3836 3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3838$as_echo_n "checking whether build environment is sane... " >&6; } 3839# Reject unsafe characters in $srcdir or the absolute working directory 3840# name. Accept space and tab only in the latter. 3841am_lf=' 3842' 3843case `pwd` in 3844 *[\\\"\#\$\&\'\`$am_lf]*) 3845 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3846esac 3847case $srcdir in 3848 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3849 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3850esac 3851 3852# Do 'set' in a subshell so we don't clobber the current shell's 3853# arguments. Must try -L first in case configure is actually a 3854# symlink; some systems play weird games with the mod time of symlinks 3855# (eg FreeBSD returns the mod time of the symlink's containing 3856# directory). 3857if ( 3858 am_has_slept=no 3859 for am_try in 1 2; do 3860 echo "timestamp, slept: $am_has_slept" > conftest.file 3861 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3862 if test "$*" = "X"; then 3863 # -L didn't work. 3864 set X `ls -t "$srcdir/configure" conftest.file` 3865 fi 3866 if test "$*" != "X $srcdir/configure conftest.file" \ 3867 && test "$*" != "X conftest.file $srcdir/configure"; then 3868 3869 # If neither matched, then we have a broken ls. This can happen 3870 # if, for instance, CONFIG_SHELL is bash and it inherits a 3871 # broken ls alias from the environment. This has actually 3872 # happened. Such a system could not be considered "sane". 3873 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3874 alias in your environment" "$LINENO" 5 3875 fi 3876 if test "$2" = conftest.file || test $am_try -eq 2; then 3877 break 3878 fi 3879 # Just in case. 3880 sleep 1 3881 am_has_slept=yes 3882 done 3883 test "$2" = conftest.file 3884 ) 3885then 3886 # Ok. 3887 : 3888else 3889 as_fn_error $? "newly created file is older than distributed files! 3890Check your system clock" "$LINENO" 5 3891fi 3892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3893$as_echo "yes" >&6; } 3894# If we didn't sleep, we still need to ensure time stamps of config.status and 3895# generated files are strictly newer. 3896am_sleep_pid= 3897if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3898 ( sleep 1 ) & 3899 am_sleep_pid=$! 3900fi 3901 3902rm -f conftest.file 3903 3904test "$program_prefix" != NONE && 3905 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3906# Use a double $ so make ignores it. 3907test "$program_suffix" != NONE && 3908 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3909# Double any \ or $. 3910# By default was `s,x,x', remove it if useless. 3911ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3912program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3913 3914# Expand $ac_aux_dir to an absolute path. 3915am_aux_dir=`cd "$ac_aux_dir" && pwd` 3916 3917if test x"${MISSING+set}" != xset; then 3918 case $am_aux_dir in 3919 *\ * | *\ *) 3920 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3921 *) 3922 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3923 esac 3924fi 3925# Use eval to expand $SHELL 3926if eval "$MISSING --is-lightweight"; then 3927 am_missing_run="$MISSING " 3928else 3929 am_missing_run= 3930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3931$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3932fi 3933 3934if test x"${install_sh+set}" != xset; then 3935 case $am_aux_dir in 3936 *\ * | *\ *) 3937 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3938 *) 3939 install_sh="\${SHELL} $am_aux_dir/install-sh" 3940 esac 3941fi 3942 3943# Installed binaries are usually stripped using 'strip' when the user 3944# run "make install-strip". However 'strip' might not be the right 3945# tool to use in cross-compilation environments, therefore Automake 3946# will honor the 'STRIP' environment variable to overrule this program. 3947if test "$cross_compiling" != no; then 3948 if test -n "$ac_tool_prefix"; then 3949 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3950set dummy ${ac_tool_prefix}strip; ac_word=$2 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3952$as_echo_n "checking for $ac_word... " >&6; } 3953if ${ac_cv_prog_STRIP+:} false; then : 3954 $as_echo_n "(cached) " >&6 3955else 3956 if test -n "$STRIP"; then 3957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3958else 3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3960for as_dir in $PATH 3961do 3962 IFS=$as_save_IFS 3963 test -z "$as_dir" && as_dir=. 3964 for ac_exec_ext in '' $ac_executable_extensions; do 3965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3966 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3968 break 2 3969 fi 3970done 3971 done 3972IFS=$as_save_IFS 3973 3974fi 3975fi 3976STRIP=$ac_cv_prog_STRIP 3977if test -n "$STRIP"; then 3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3979$as_echo "$STRIP" >&6; } 3980else 3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3982$as_echo "no" >&6; } 3983fi 3984 3985 3986fi 3987if test -z "$ac_cv_prog_STRIP"; then 3988 ac_ct_STRIP=$STRIP 3989 # Extract the first word of "strip", so it can be a program name with args. 3990set dummy strip; ac_word=$2 3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3992$as_echo_n "checking for $ac_word... " >&6; } 3993if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3994 $as_echo_n "(cached) " >&6 3995else 3996 if test -n "$ac_ct_STRIP"; then 3997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3998else 3999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4000for as_dir in $PATH 4001do 4002 IFS=$as_save_IFS 4003 test -z "$as_dir" && as_dir=. 4004 for ac_exec_ext in '' $ac_executable_extensions; do 4005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4006 ac_cv_prog_ac_ct_STRIP="strip" 4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4008 break 2 4009 fi 4010done 4011 done 4012IFS=$as_save_IFS 4013 4014fi 4015fi 4016ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4017if test -n "$ac_ct_STRIP"; then 4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4019$as_echo "$ac_ct_STRIP" >&6; } 4020else 4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4022$as_echo "no" >&6; } 4023fi 4024 4025 if test "x$ac_ct_STRIP" = x; then 4026 STRIP=":" 4027 else 4028 case $cross_compiling:$ac_tool_warned in 4029yes:) 4030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4032ac_tool_warned=yes ;; 4033esac 4034 STRIP=$ac_ct_STRIP 4035 fi 4036else 4037 STRIP="$ac_cv_prog_STRIP" 4038fi 4039 4040fi 4041INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4042 4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4044$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4045if test -z "$MKDIR_P"; then 4046 if ${ac_cv_path_mkdir+:} false; then : 4047 $as_echo_n "(cached) " >&6 4048else 4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4050for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4051do 4052 IFS=$as_save_IFS 4053 test -z "$as_dir" && as_dir=. 4054 for ac_prog in mkdir gmkdir; do 4055 for ac_exec_ext in '' $ac_executable_extensions; do 4056 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4057 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4058 'mkdir (GNU coreutils) '* | \ 4059 'mkdir (coreutils) '* | \ 4060 'mkdir (fileutils) '4.1*) 4061 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4062 break 3;; 4063 esac 4064 done 4065 done 4066 done 4067IFS=$as_save_IFS 4068 4069fi 4070 4071 test -d ./--version && rmdir ./--version 4072 if test "${ac_cv_path_mkdir+set}" = set; then 4073 MKDIR_P="$ac_cv_path_mkdir -p" 4074 else 4075 # As a last resort, use the slow shell script. Don't cache a 4076 # value for MKDIR_P within a source directory, because that will 4077 # break other packages using the cache if that directory is 4078 # removed, or if the value is a relative name. 4079 MKDIR_P="$ac_install_sh -d" 4080 fi 4081fi 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4083$as_echo "$MKDIR_P" >&6; } 4084 4085for ac_prog in gawk mawk nawk awk 4086do 4087 # Extract the first word of "$ac_prog", so it can be a program name with args. 4088set dummy $ac_prog; ac_word=$2 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4090$as_echo_n "checking for $ac_word... " >&6; } 4091if ${ac_cv_prog_AWK+:} false; then : 4092 $as_echo_n "(cached) " >&6 4093else 4094 if test -n "$AWK"; then 4095 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4096else 4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4098for as_dir in $PATH 4099do 4100 IFS=$as_save_IFS 4101 test -z "$as_dir" && as_dir=. 4102 for ac_exec_ext in '' $ac_executable_extensions; do 4103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4104 ac_cv_prog_AWK="$ac_prog" 4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4106 break 2 4107 fi 4108done 4109 done 4110IFS=$as_save_IFS 4111 4112fi 4113fi 4114AWK=$ac_cv_prog_AWK 4115if test -n "$AWK"; then 4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4117$as_echo "$AWK" >&6; } 4118else 4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4120$as_echo "no" >&6; } 4121fi 4122 4123 4124 test -n "$AWK" && break 4125done 4126 4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4128$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4129set x ${MAKE-make} 4130ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4131if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4132 $as_echo_n "(cached) " >&6 4133else 4134 cat >conftest.make <<\_ACEOF 4135SHELL = /bin/sh 4136all: 4137 @echo '@@@%%%=$(MAKE)=@@@%%%' 4138_ACEOF 4139# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4140case `${MAKE-make} -f conftest.make 2>/dev/null` in 4141 *@@@%%%=?*=@@@%%%*) 4142 eval ac_cv_prog_make_${ac_make}_set=yes;; 4143 *) 4144 eval ac_cv_prog_make_${ac_make}_set=no;; 4145esac 4146rm -f conftest.make 4147fi 4148if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4150$as_echo "yes" >&6; } 4151 SET_MAKE= 4152else 4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4154$as_echo "no" >&6; } 4155 SET_MAKE="MAKE=${MAKE-make}" 4156fi 4157 4158rm -rf .tst 2>/dev/null 4159mkdir .tst 2>/dev/null 4160if test -d .tst; then 4161 am__leading_dot=. 4162else 4163 am__leading_dot=_ 4164fi 4165rmdir .tst 2>/dev/null 4166 4167# Check whether --enable-silent-rules was given. 4168if test "${enable_silent_rules+set}" = set; then : 4169 enableval=$enable_silent_rules; 4170fi 4171 4172case $enable_silent_rules in # ((( 4173 yes) AM_DEFAULT_VERBOSITY=0;; 4174 no) AM_DEFAULT_VERBOSITY=1;; 4175 *) AM_DEFAULT_VERBOSITY=1;; 4176esac 4177am_make=${MAKE-make} 4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4179$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4180if ${am_cv_make_support_nested_variables+:} false; then : 4181 $as_echo_n "(cached) " >&6 4182else 4183 if $as_echo 'TRUE=$(BAR$(V)) 4184BAR0=false 4185BAR1=true 4186V=1 4187am__doit: 4188 @$(TRUE) 4189.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4190 am_cv_make_support_nested_variables=yes 4191else 4192 am_cv_make_support_nested_variables=no 4193fi 4194fi 4195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4196$as_echo "$am_cv_make_support_nested_variables" >&6; } 4197if test $am_cv_make_support_nested_variables = yes; then 4198 AM_V='$(V)' 4199 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4200else 4201 AM_V=$AM_DEFAULT_VERBOSITY 4202 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4203fi 4204AM_BACKSLASH='\' 4205 4206if test "`cd $srcdir && pwd`" != "`pwd`"; then 4207 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4208 # is not polluted with repeated "-I." 4209 am__isrc=' -I$(srcdir)' 4210 # test to see if srcdir already configured 4211 if test -f $srcdir/config.status; then 4212 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4213 fi 4214fi 4215 4216# test whether we have cygpath 4217if test -z "$CYGPATH_W"; then 4218 if (cygpath --version) >/dev/null 2>/dev/null; then 4219 CYGPATH_W='cygpath -w' 4220 else 4221 CYGPATH_W=echo 4222 fi 4223fi 4224 4225 4226# Define the identity of the package. 4227 PACKAGE='CSSC' 4228 VERSION='1.4.1' 4229 4230 4231cat >>confdefs.h <<_ACEOF 4232#define PACKAGE "$PACKAGE" 4233_ACEOF 4234 4235 4236cat >>confdefs.h <<_ACEOF 4237#define VERSION "$VERSION" 4238_ACEOF 4239 4240# Some tools Automake needs. 4241 4242ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4243 4244 4245AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4246 4247 4248AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4249 4250 4251AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4252 4253 4254MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4255 4256# For better backward compatibility. To be removed once Automake 1.9.x 4257# dies out for good. For more background, see: 4258# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4259# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4260mkdir_p='$(MKDIR_P)' 4261 4262# We need awk for the "check" target (and possibly the TAP driver). The 4263# system "awk" is bad on some platforms. 4264# Always define AMTAR for backward compatibility. Yes, it's still used 4265# in the wild :-( We should find a proper way to deprecate it ... 4266AMTAR='$${TAR-tar}' 4267 4268 4269# We'll loop over all known methods to create a tar archive until one works. 4270_am_tools='gnutar plaintar pax cpio none' 4271 4272# The POSIX 1988 'ustar' format is defined with fixed-size fields. 4273 # There is notably a 21 bits limit for the UID and the GID. In fact, 4274 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 4275 # and bug#13588). 4276 am_max_uid=2097151 # 2^21 - 1 4277 am_max_gid=$am_max_uid 4278 # The $UID and $GID variables are not portable, so we need to resort 4279 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 4280 # below are definitely unexpected, so allow the users to see them 4281 # (that is, avoid stderr redirection). 4282 am_uid=`id -u || echo unknown` 4283 am_gid=`id -g || echo unknown` 4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 4285$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 4286 if test $am_uid -le $am_max_uid; then 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4288$as_echo "yes" >&6; } 4289 else 4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4291$as_echo "no" >&6; } 4292 _am_tools=none 4293 fi 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 4295$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 4296 if test $am_gid -le $am_max_gid; then 4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4298$as_echo "yes" >&6; } 4299 else 4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4301$as_echo "no" >&6; } 4302 _am_tools=none 4303 fi 4304 4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 4306$as_echo_n "checking how to create a ustar tar archive... " >&6; } 4307 4308 # Go ahead even if we have the value already cached. We do so because we 4309 # need to set the values for the 'am__tar' and 'am__untar' variables. 4310 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 4311 4312 for _am_tool in $_am_tools; do 4313 case $_am_tool in 4314 gnutar) 4315 for _am_tar in tar gnutar gtar; do 4316 { echo "$as_me:$LINENO: $_am_tar --version" >&5 4317 ($_am_tar --version) >&5 2>&5 4318 ac_status=$? 4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4320 (exit $ac_status); } && break 4321 done 4322 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 4323 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 4324 am__untar="$_am_tar -xf -" 4325 ;; 4326 plaintar) 4327 # Must skip GNU tar: if it does not support --format= it doesn't create 4328 # ustar tarball either. 4329 (tar --version) >/dev/null 2>&1 && continue 4330 am__tar='tar chf - "$$tardir"' 4331 am__tar_='tar chf - "$tardir"' 4332 am__untar='tar xf -' 4333 ;; 4334 pax) 4335 am__tar='pax -L -x ustar -w "$$tardir"' 4336 am__tar_='pax -L -x ustar -w "$tardir"' 4337 am__untar='pax -r' 4338 ;; 4339 cpio) 4340 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 4341 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 4342 am__untar='cpio -i -H ustar -d' 4343 ;; 4344 none) 4345 am__tar=false 4346 am__tar_=false 4347 am__untar=false 4348 ;; 4349 esac 4350 4351 # If the value was cached, stop now. We just wanted to have am__tar 4352 # and am__untar set. 4353 test -n "${am_cv_prog_tar_ustar}" && break 4354 4355 # tar/untar a dummy directory, and stop if the command works. 4356 rm -rf conftest.dir 4357 mkdir conftest.dir 4358 echo GrepMe > conftest.dir/file 4359 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 4360 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 4361 ac_status=$? 4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4363 (exit $ac_status); } 4364 rm -rf conftest.dir 4365 if test -s conftest.tar; then 4366 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 4367 ($am__untar <conftest.tar) >&5 2>&5 4368 ac_status=$? 4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4370 (exit $ac_status); } 4371 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 4372 (cat conftest.dir/file) >&5 2>&5 4373 ac_status=$? 4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4375 (exit $ac_status); } 4376 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 4377 fi 4378 done 4379 rm -rf conftest.dir 4380 4381 if ${am_cv_prog_tar_ustar+:} false; then : 4382 $as_echo_n "(cached) " >&6 4383else 4384 am_cv_prog_tar_ustar=$_am_tool 4385fi 4386 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 4388$as_echo "$am_cv_prog_tar_ustar" >&6; } 4389 4390 4391 4392 4393 4394 4395# POSIX will say in a future version that running "rm -f" with no argument 4396# is OK; and we want to be able to make that assumption in our Makefile 4397# recipes. So use an aggressive probe to check that the usage we want is 4398# actually supported "in the wild" to an acceptable degree. 4399# See automake bug#10828. 4400# To make any issue more visible, cause the running configure to be aborted 4401# by default if the 'rm' program in use doesn't match our expectations; the 4402# user can still override this though. 4403if rm -f && rm -fr && rm -rf; then : OK; else 4404 cat >&2 <<'END' 4405Oops! 4406 4407Your 'rm' program seems unable to run without file operands specified 4408on the command line, even when the '-f' option is present. This is contrary 4409to the behaviour of most rm programs out there, and not conforming with 4410the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4411 4412Please tell bug-automake@gnu.org about your system, including the value 4413of your $PATH and any error possibly output before this message. This 4414can help us improve future automake versions. 4415 4416END 4417 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4418 echo 'Configuration will proceed anyway, since you have set the' >&2 4419 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4420 echo >&2 4421 else 4422 cat >&2 <<'END' 4423Aborting the configuration process, to ensure you take notice of the issue. 4424 4425You can download and install GNU coreutils to get an 'rm' implementation 4426that behaves properly: <http://www.gnu.org/software/coreutils/>. 4427 4428If you want to complete the configuration process using your problematic 4429'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4430to "yes", and re-run configure. 4431 4432END 4433 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4434 fi 4435fi 4436 4437ac_config_headers="$ac_config_headers config.h" 4438 4439 4440binary_defaulted=no 4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if binary file support should be disabled" >&5 4442$as_echo_n "checking if binary file support should be disabled... " >&6; } 4443# Check whether --enable-binary was given. 4444if test "${enable_binary+set}" = set; then : 4445 enableval=$enable_binary; 4446else 4447 binary_defaulted=yes 4448enable_binary=yes 4449 4450fi 4451 4452if test "$enable_binary" = yes; then 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4454$as_echo "no" >&6; } 4455else 4456 4457$as_echo "#define CONFIG_DISABLE_BINARY_SUPPORT 1" >>confdefs.h 4458 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4460$as_echo "yes" >&6; } 4461fi 4462if test "$binary_defaulted" = "yes"; then 4463 echo WARNING 4464 echo WARNING This was assumed because you did not specify either 4465 echo WARNING --enable-binary or --disable-binary. 4466 echo WARNING 4467 # Pause for a bit so that the user notices this message. 4468 ( sleep 10 2>/dev/null ) 4469fi 4470 4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for required SCCS file line length limits" >&5 4472$as_echo_n "checking for required SCCS file line length limits... " >&6; } 4473# Check whether --enable-max-line-length was given. 4474if test "${enable_max_line_length+set}" = set; then : 4475 enableval=$enable_max_line_length; if test "$enable_max_line_length" = "no" 4476then 4477 enable_max_line_length=0 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no limit" >&5 4479$as_echo "no limit" >&6; } 4480else 4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: limit is $enable_max_line_length" >&5 4482$as_echo "limit is $enable_max_line_length" >&6; } 4483fi 4484max_line_length_description=$enable_max_line_length 4485 4486 4487else 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no limit" >&5 4489$as_echo "no limit" >&6; } 4490enable_max_line_length=0 4491 4492fi 4493 4494 4495cat >>confdefs.h <<_ACEOF 4496#define CONFIG_MAX_BODY_LINE_LENGTH $enable_max_line_length 4497_ACEOF 4498 4499 4500 4501if test $enable_max_line_length -eq 0 4502then 4503 max_line_length_description="no limit" 4504else 4505 max_line_length_description=$enable_max_line_length 4506fi 4507 4508 4509 4510ac_ext=c 4511ac_cpp='$CPP $CPPFLAGS' 4512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4514ac_compiler_gnu=$ac_cv_c_compiler_gnu 4515if test -n "$ac_tool_prefix"; then 4516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4517set dummy ${ac_tool_prefix}gcc; ac_word=$2 4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4519$as_echo_n "checking for $ac_word... " >&6; } 4520if ${ac_cv_prog_CC+:} false; then : 4521 $as_echo_n "(cached) " >&6 4522else 4523 if test -n "$CC"; then 4524 ac_cv_prog_CC="$CC" # Let the user override the test. 4525else 4526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4527for as_dir in $PATH 4528do 4529 IFS=$as_save_IFS 4530 test -z "$as_dir" && as_dir=. 4531 for ac_exec_ext in '' $ac_executable_extensions; do 4532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4533 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4535 break 2 4536 fi 4537done 4538 done 4539IFS=$as_save_IFS 4540 4541fi 4542fi 4543CC=$ac_cv_prog_CC 4544if test -n "$CC"; then 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4546$as_echo "$CC" >&6; } 4547else 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4549$as_echo "no" >&6; } 4550fi 4551 4552 4553fi 4554if test -z "$ac_cv_prog_CC"; then 4555 ac_ct_CC=$CC 4556 # Extract the first word of "gcc", so it can be a program name with args. 4557set dummy gcc; ac_word=$2 4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4559$as_echo_n "checking for $ac_word... " >&6; } 4560if ${ac_cv_prog_ac_ct_CC+:} false; then : 4561 $as_echo_n "(cached) " >&6 4562else 4563 if test -n "$ac_ct_CC"; then 4564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4565else 4566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4567for as_dir in $PATH 4568do 4569 IFS=$as_save_IFS 4570 test -z "$as_dir" && as_dir=. 4571 for ac_exec_ext in '' $ac_executable_extensions; do 4572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4573 ac_cv_prog_ac_ct_CC="gcc" 4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4575 break 2 4576 fi 4577done 4578 done 4579IFS=$as_save_IFS 4580 4581fi 4582fi 4583ac_ct_CC=$ac_cv_prog_ac_ct_CC 4584if test -n "$ac_ct_CC"; then 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4586$as_echo "$ac_ct_CC" >&6; } 4587else 4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4589$as_echo "no" >&6; } 4590fi 4591 4592 if test "x$ac_ct_CC" = x; then 4593 CC="" 4594 else 4595 case $cross_compiling:$ac_tool_warned in 4596yes:) 4597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4599ac_tool_warned=yes ;; 4600esac 4601 CC=$ac_ct_CC 4602 fi 4603else 4604 CC="$ac_cv_prog_CC" 4605fi 4606 4607if test -z "$CC"; then 4608 if test -n "$ac_tool_prefix"; then 4609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4610set dummy ${ac_tool_prefix}cc; ac_word=$2 4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4612$as_echo_n "checking for $ac_word... " >&6; } 4613if ${ac_cv_prog_CC+:} false; then : 4614 $as_echo_n "(cached) " >&6 4615else 4616 if test -n "$CC"; then 4617 ac_cv_prog_CC="$CC" # Let the user override the test. 4618else 4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4620for as_dir in $PATH 4621do 4622 IFS=$as_save_IFS 4623 test -z "$as_dir" && as_dir=. 4624 for ac_exec_ext in '' $ac_executable_extensions; do 4625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4626 ac_cv_prog_CC="${ac_tool_prefix}cc" 4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4628 break 2 4629 fi 4630done 4631 done 4632IFS=$as_save_IFS 4633 4634fi 4635fi 4636CC=$ac_cv_prog_CC 4637if test -n "$CC"; then 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4639$as_echo "$CC" >&6; } 4640else 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4642$as_echo "no" >&6; } 4643fi 4644 4645 4646 fi 4647fi 4648if test -z "$CC"; then 4649 # Extract the first word of "cc", so it can be a program name with args. 4650set dummy cc; ac_word=$2 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4652$as_echo_n "checking for $ac_word... " >&6; } 4653if ${ac_cv_prog_CC+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655else 4656 if test -n "$CC"; then 4657 ac_cv_prog_CC="$CC" # Let the user override the test. 4658else 4659 ac_prog_rejected=no 4660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4661for as_dir in $PATH 4662do 4663 IFS=$as_save_IFS 4664 test -z "$as_dir" && as_dir=. 4665 for ac_exec_ext in '' $ac_executable_extensions; do 4666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4667 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4668 ac_prog_rejected=yes 4669 continue 4670 fi 4671 ac_cv_prog_CC="cc" 4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4673 break 2 4674 fi 4675done 4676 done 4677IFS=$as_save_IFS 4678 4679if test $ac_prog_rejected = yes; then 4680 # We found a bogon in the path, so make sure we never use it. 4681 set dummy $ac_cv_prog_CC 4682 shift 4683 if test $# != 0; then 4684 # We chose a different compiler from the bogus one. 4685 # However, it has the same basename, so the bogon will be chosen 4686 # first if we set CC to just the basename; use the full file name. 4687 shift 4688 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4689 fi 4690fi 4691fi 4692fi 4693CC=$ac_cv_prog_CC 4694if test -n "$CC"; then 4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4696$as_echo "$CC" >&6; } 4697else 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4699$as_echo "no" >&6; } 4700fi 4701 4702 4703fi 4704if test -z "$CC"; then 4705 if test -n "$ac_tool_prefix"; then 4706 for ac_prog in cl.exe 4707 do 4708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4709set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4711$as_echo_n "checking for $ac_word... " >&6; } 4712if ${ac_cv_prog_CC+:} false; then : 4713 $as_echo_n "(cached) " >&6 4714else 4715 if test -n "$CC"; then 4716 ac_cv_prog_CC="$CC" # Let the user override the test. 4717else 4718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4719for as_dir in $PATH 4720do 4721 IFS=$as_save_IFS 4722 test -z "$as_dir" && as_dir=. 4723 for ac_exec_ext in '' $ac_executable_extensions; do 4724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4725 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4727 break 2 4728 fi 4729done 4730 done 4731IFS=$as_save_IFS 4732 4733fi 4734fi 4735CC=$ac_cv_prog_CC 4736if test -n "$CC"; then 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4738$as_echo "$CC" >&6; } 4739else 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4741$as_echo "no" >&6; } 4742fi 4743 4744 4745 test -n "$CC" && break 4746 done 4747fi 4748if test -z "$CC"; then 4749 ac_ct_CC=$CC 4750 for ac_prog in cl.exe 4751do 4752 # Extract the first word of "$ac_prog", so it can be a program name with args. 4753set dummy $ac_prog; ac_word=$2 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4755$as_echo_n "checking for $ac_word... " >&6; } 4756if ${ac_cv_prog_ac_ct_CC+:} false; then : 4757 $as_echo_n "(cached) " >&6 4758else 4759 if test -n "$ac_ct_CC"; then 4760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4761else 4762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4763for as_dir in $PATH 4764do 4765 IFS=$as_save_IFS 4766 test -z "$as_dir" && as_dir=. 4767 for ac_exec_ext in '' $ac_executable_extensions; do 4768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4769 ac_cv_prog_ac_ct_CC="$ac_prog" 4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4771 break 2 4772 fi 4773done 4774 done 4775IFS=$as_save_IFS 4776 4777fi 4778fi 4779ac_ct_CC=$ac_cv_prog_ac_ct_CC 4780if test -n "$ac_ct_CC"; then 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4782$as_echo "$ac_ct_CC" >&6; } 4783else 4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4785$as_echo "no" >&6; } 4786fi 4787 4788 4789 test -n "$ac_ct_CC" && break 4790done 4791 4792 if test "x$ac_ct_CC" = x; then 4793 CC="" 4794 else 4795 case $cross_compiling:$ac_tool_warned in 4796yes:) 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4799ac_tool_warned=yes ;; 4800esac 4801 CC=$ac_ct_CC 4802 fi 4803fi 4804 4805fi 4806 4807 4808test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4810as_fn_error $? "no acceptable C compiler found in \$PATH 4811See \`config.log' for more details" "$LINENO" 5; } 4812 4813# Provide some information about the compiler. 4814$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4815set X $ac_compile 4816ac_compiler=$2 4817for ac_option in --version -v -V -qversion -version; do 4818 { { ac_try="$ac_compiler $ac_option >&5" 4819case "(($ac_try" in 4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4821 *) ac_try_echo=$ac_try;; 4822esac 4823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4824$as_echo "$ac_try_echo"; } >&5 4825 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4826 ac_status=$? 4827 if test -s conftest.err; then 4828 sed '10a\ 4829... rest of stderr output deleted ... 4830 10q' conftest.err >conftest.er1 4831 cat conftest.er1 >&5 4832 fi 4833 rm -f conftest.er1 conftest.err 4834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4835 test $ac_status = 0; } 4836done 4837 4838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4839/* end confdefs.h. */ 4840 4841int 4842main () 4843{ 4844 4845 ; 4846 return 0; 4847} 4848_ACEOF 4849ac_clean_files_save=$ac_clean_files 4850ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4851# Try to create an executable without -o first, disregard a.out. 4852# It will help us diagnose broken compilers, and finding out an intuition 4853# of exeext. 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4855$as_echo_n "checking whether the C compiler works... " >&6; } 4856ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4857 4858# The possible output files: 4859ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4860 4861ac_rmfiles= 4862for ac_file in $ac_files 4863do 4864 case $ac_file in 4865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4866 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4867 esac 4868done 4869rm -f $ac_rmfiles 4870 4871if { { ac_try="$ac_link_default" 4872case "(($ac_try" in 4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4874 *) ac_try_echo=$ac_try;; 4875esac 4876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4877$as_echo "$ac_try_echo"; } >&5 4878 (eval "$ac_link_default") 2>&5 4879 ac_status=$? 4880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4881 test $ac_status = 0; }; then : 4882 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4883# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4884# in a Makefile. We should not override ac_cv_exeext if it was cached, 4885# so that the user can short-circuit this test for compilers unknown to 4886# Autoconf. 4887for ac_file in $ac_files '' 4888do 4889 test -f "$ac_file" || continue 4890 case $ac_file in 4891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4892 ;; 4893 [ab].out ) 4894 # We found the default executable, but exeext='' is most 4895 # certainly right. 4896 break;; 4897 *.* ) 4898 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4899 then :; else 4900 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4901 fi 4902 # We set ac_cv_exeext here because the later test for it is not 4903 # safe: cross compilers may not add the suffix if given an `-o' 4904 # argument, so we may need to know it at that point already. 4905 # Even if this section looks crufty: it has the advantage of 4906 # actually working. 4907 break;; 4908 * ) 4909 break;; 4910 esac 4911done 4912test "$ac_cv_exeext" = no && ac_cv_exeext= 4913 4914else 4915 ac_file='' 4916fi 4917if test -z "$ac_file"; then : 4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4919$as_echo "no" >&6; } 4920$as_echo "$as_me: failed program was:" >&5 4921sed 's/^/| /' conftest.$ac_ext >&5 4922 4923{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4925as_fn_error 77 "C compiler cannot create executables 4926See \`config.log' for more details" "$LINENO" 5; } 4927else 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4929$as_echo "yes" >&6; } 4930fi 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4932$as_echo_n "checking for C compiler default output file name... " >&6; } 4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4934$as_echo "$ac_file" >&6; } 4935ac_exeext=$ac_cv_exeext 4936 4937rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4938ac_clean_files=$ac_clean_files_save 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4940$as_echo_n "checking for suffix of executables... " >&6; } 4941if { { ac_try="$ac_link" 4942case "(($ac_try" in 4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4944 *) ac_try_echo=$ac_try;; 4945esac 4946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4947$as_echo "$ac_try_echo"; } >&5 4948 (eval "$ac_link") 2>&5 4949 ac_status=$? 4950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4951 test $ac_status = 0; }; then : 4952 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4953# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4954# work properly (i.e., refer to `conftest.exe'), while it won't with 4955# `rm'. 4956for ac_file in conftest.exe conftest conftest.*; do 4957 test -f "$ac_file" || continue 4958 case $ac_file in 4959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4960 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4961 break;; 4962 * ) break;; 4963 esac 4964done 4965else 4966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4968as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4969See \`config.log' for more details" "$LINENO" 5; } 4970fi 4971rm -f conftest conftest$ac_cv_exeext 4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4973$as_echo "$ac_cv_exeext" >&6; } 4974 4975rm -f conftest.$ac_ext 4976EXEEXT=$ac_cv_exeext 4977ac_exeext=$EXEEXT 4978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4979/* end confdefs.h. */ 4980#include <stdio.h> 4981int 4982main () 4983{ 4984FILE *f = fopen ("conftest.out", "w"); 4985 return ferror (f) || fclose (f) != 0; 4986 4987 ; 4988 return 0; 4989} 4990_ACEOF 4991ac_clean_files="$ac_clean_files conftest.out" 4992# Check that the compiler produces executables we can run. If not, either 4993# the compiler is broken, or we cross compile. 4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4995$as_echo_n "checking whether we are cross compiling... " >&6; } 4996if test "$cross_compiling" != yes; then 4997 { { ac_try="$ac_link" 4998case "(($ac_try" in 4999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5000 *) ac_try_echo=$ac_try;; 5001esac 5002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5003$as_echo "$ac_try_echo"; } >&5 5004 (eval "$ac_link") 2>&5 5005 ac_status=$? 5006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5007 test $ac_status = 0; } 5008 if { ac_try='./conftest$ac_cv_exeext' 5009 { { case "(($ac_try" in 5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5011 *) ac_try_echo=$ac_try;; 5012esac 5013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5014$as_echo "$ac_try_echo"; } >&5 5015 (eval "$ac_try") 2>&5 5016 ac_status=$? 5017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5018 test $ac_status = 0; }; }; then 5019 cross_compiling=no 5020 else 5021 if test "$cross_compiling" = maybe; then 5022 cross_compiling=yes 5023 else 5024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5026as_fn_error $? "cannot run C compiled programs. 5027If you meant to cross compile, use \`--host'. 5028See \`config.log' for more details" "$LINENO" 5; } 5029 fi 5030 fi 5031fi 5032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5033$as_echo "$cross_compiling" >&6; } 5034 5035rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5036ac_clean_files=$ac_clean_files_save 5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5038$as_echo_n "checking for suffix of object files... " >&6; } 5039if ${ac_cv_objext+:} false; then : 5040 $as_echo_n "(cached) " >&6 5041else 5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5043/* end confdefs.h. */ 5044 5045int 5046main () 5047{ 5048 5049 ; 5050 return 0; 5051} 5052_ACEOF 5053rm -f conftest.o conftest.obj 5054if { { ac_try="$ac_compile" 5055case "(($ac_try" in 5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5057 *) ac_try_echo=$ac_try;; 5058esac 5059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5060$as_echo "$ac_try_echo"; } >&5 5061 (eval "$ac_compile") 2>&5 5062 ac_status=$? 5063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5064 test $ac_status = 0; }; then : 5065 for ac_file in conftest.o conftest.obj conftest.*; do 5066 test -f "$ac_file" || continue; 5067 case $ac_file in 5068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5069 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5070 break;; 5071 esac 5072done 5073else 5074 $as_echo "$as_me: failed program was:" >&5 5075sed 's/^/| /' conftest.$ac_ext >&5 5076 5077{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5079as_fn_error $? "cannot compute suffix of object files: cannot compile 5080See \`config.log' for more details" "$LINENO" 5; } 5081fi 5082rm -f conftest.$ac_cv_objext conftest.$ac_ext 5083fi 5084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5085$as_echo "$ac_cv_objext" >&6; } 5086OBJEXT=$ac_cv_objext 5087ac_objext=$OBJEXT 5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5089$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5090if ${ac_cv_c_compiler_gnu+:} false; then : 5091 $as_echo_n "(cached) " >&6 5092else 5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5094/* end confdefs.h. */ 5095 5096int 5097main () 5098{ 5099#ifndef __GNUC__ 5100 choke me 5101#endif 5102 5103 ; 5104 return 0; 5105} 5106_ACEOF 5107if ac_fn_c_try_compile "$LINENO"; then : 5108 ac_compiler_gnu=yes 5109else 5110 ac_compiler_gnu=no 5111fi 5112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5113ac_cv_c_compiler_gnu=$ac_compiler_gnu 5114 5115fi 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5117$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5118if test $ac_compiler_gnu = yes; then 5119 GCC=yes 5120else 5121 GCC= 5122fi 5123ac_test_CFLAGS=${CFLAGS+set} 5124ac_save_CFLAGS=$CFLAGS 5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5126$as_echo_n "checking whether $CC accepts -g... " >&6; } 5127if ${ac_cv_prog_cc_g+:} false; then : 5128 $as_echo_n "(cached) " >&6 5129else 5130 ac_save_c_werror_flag=$ac_c_werror_flag 5131 ac_c_werror_flag=yes 5132 ac_cv_prog_cc_g=no 5133 CFLAGS="-g" 5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5135/* end confdefs.h. */ 5136 5137int 5138main () 5139{ 5140 5141 ; 5142 return 0; 5143} 5144_ACEOF 5145if ac_fn_c_try_compile "$LINENO"; then : 5146 ac_cv_prog_cc_g=yes 5147else 5148 CFLAGS="" 5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5150/* end confdefs.h. */ 5151 5152int 5153main () 5154{ 5155 5156 ; 5157 return 0; 5158} 5159_ACEOF 5160if ac_fn_c_try_compile "$LINENO"; then : 5161 5162else 5163 ac_c_werror_flag=$ac_save_c_werror_flag 5164 CFLAGS="-g" 5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5166/* end confdefs.h. */ 5167 5168int 5169main () 5170{ 5171 5172 ; 5173 return 0; 5174} 5175_ACEOF 5176if ac_fn_c_try_compile "$LINENO"; then : 5177 ac_cv_prog_cc_g=yes 5178fi 5179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5180fi 5181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5182fi 5183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5184 ac_c_werror_flag=$ac_save_c_werror_flag 5185fi 5186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5187$as_echo "$ac_cv_prog_cc_g" >&6; } 5188if test "$ac_test_CFLAGS" = set; then 5189 CFLAGS=$ac_save_CFLAGS 5190elif test $ac_cv_prog_cc_g = yes; then 5191 if test "$GCC" = yes; then 5192 CFLAGS="-g -O2" 5193 else 5194 CFLAGS="-g" 5195 fi 5196else 5197 if test "$GCC" = yes; then 5198 CFLAGS="-O2" 5199 else 5200 CFLAGS= 5201 fi 5202fi 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5204$as_echo_n "checking for $CC option to enable C11 features... " >&6; } 5205if ${ac_cv_prog_cc_c11+:} false; then : 5206 $as_echo_n "(cached) " >&6 5207else 5208 ac_cv_prog_cc_c11=no 5209ac_save_CC=$CC 5210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5211/* end confdefs.h. */ 5212#include <stdarg.h> 5213#include <stdbool.h> 5214#include <stdlib.h> 5215#include <wchar.h> 5216#include <stdio.h> 5217 5218// Check varargs macros. These examples are taken from C99 6.10.3.5. 5219#define debug(...) fprintf (stderr, __VA_ARGS__) 5220#define showlist(...) puts (#__VA_ARGS__) 5221#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5222static void 5223test_varargs_macros (void) 5224{ 5225 int x = 1234; 5226 int y = 5678; 5227 debug ("Flag"); 5228 debug ("X = %d\n", x); 5229 showlist (The first, second, and third items.); 5230 report (x>y, "x is %d but y is %d", x, y); 5231} 5232 5233// Check long long types. 5234#define BIG64 18446744073709551615ull 5235#define BIG32 4294967295ul 5236#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5237#if !BIG_OK 5238 your preprocessor is broken; 5239#endif 5240#if BIG_OK 5241#else 5242 your preprocessor is broken; 5243#endif 5244static long long int bignum = -9223372036854775807LL; 5245static unsigned long long int ubignum = BIG64; 5246 5247struct incomplete_array 5248{ 5249 int datasize; 5250 double data[]; 5251}; 5252 5253struct named_init { 5254 int number; 5255 const wchar_t *name; 5256 double average; 5257}; 5258 5259typedef const char *ccp; 5260 5261static inline int 5262test_restrict (ccp restrict text) 5263{ 5264 // See if C++-style comments work. 5265 // Iterate through items via the restricted pointer. 5266 // Also check for declarations in for loops. 5267 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5268 continue; 5269 return 0; 5270} 5271 5272// Check varargs and va_copy. 5273static bool 5274test_varargs (const char *format, ...) 5275{ 5276 va_list args; 5277 va_start (args, format); 5278 va_list args_copy; 5279 va_copy (args_copy, args); 5280 5281 const char *str = ""; 5282 int number = 0; 5283 float fnumber = 0; 5284 5285 while (*format) 5286 { 5287 switch (*format++) 5288 { 5289 case 's': // string 5290 str = va_arg (args_copy, const char *); 5291 break; 5292 case 'd': // int 5293 number = va_arg (args_copy, int); 5294 break; 5295 case 'f': // float 5296 fnumber = va_arg (args_copy, double); 5297 break; 5298 default: 5299 break; 5300 } 5301 } 5302 va_end (args_copy); 5303 va_end (args); 5304 5305 return *str && number && fnumber; 5306} 5307// Check _Alignas. 5308char _Alignas (double) aligned_as_double; 5309char _Alignas (0) no_special_alignment; 5310extern char aligned_as_int; 5311char _Alignas (0) _Alignas (int) aligned_as_int; 5312 5313// Check _Alignof. 5314enum 5315{ 5316 int_alignment = _Alignof (int), 5317 int_array_alignment = _Alignof (int[100]), 5318 char_alignment = _Alignof (char) 5319}; 5320_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 5321 5322// Check _Noreturn. 5323int _Noreturn does_not_return (void) { for (;;) continue; } 5324 5325// Check _Static_assert. 5326struct test_static_assert 5327{ 5328 int x; 5329 _Static_assert (sizeof (int) <= sizeof (long int), 5330 "_Static_assert does not work in struct"); 5331 long int y; 5332}; 5333 5334// Check UTF-8 literals. 5335#define u8 syntax error! 5336char const utf8_literal[] = u8"happens to be ASCII" "another string"; 5337 5338// Check duplicate typedefs. 5339typedef long *long_ptr; 5340typedef long int *long_ptr; 5341typedef long_ptr long_ptr; 5342 5343// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 5344struct anonymous 5345{ 5346 union { 5347 struct { int i; int j; }; 5348 struct { int k; long int l; } w; 5349 }; 5350 int m; 5351} v1; 5352 5353int 5354main () 5355{ 5356 5357 // Check bool. 5358 _Bool success = false; 5359 5360 // Check restrict. 5361 if (test_restrict ("String literal") == 0) 5362 success = true; 5363 char *restrict newvar = "Another string"; 5364 5365 // Check varargs. 5366 success &= test_varargs ("s, d' f .", "string", 65, 34.234); 5367 test_varargs_macros (); 5368 5369 // Check flexible array members. 5370 struct incomplete_array *ia = 5371 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5372 ia->datasize = 10; 5373 for (int i = 0; i < ia->datasize; ++i) 5374 ia->data[i] = i * 1.234; 5375 5376 // Check named initializers. 5377 struct named_init ni = { 5378 .number = 34, 5379 .name = L"Test wide string", 5380 .average = 543.34343, 5381 }; 5382 5383 ni.number = 58; 5384 5385 int dynamic_array[ni.number]; 5386 dynamic_array[ni.number - 1] = 543; 5387 5388 // work around unused variable warnings 5389 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5390 || dynamic_array[ni.number - 1] != 543); 5391 5392 v1.i = 2; 5393 v1.w.k = 5; 5394 _Static_assert (&v1.i == &v1.w.k, "Anonymous union alignment botch"); 5395 5396 ; 5397 return 0; 5398} 5399_ACEOF 5400for ac_arg in '' -std=gnu11 5401do 5402 CC="$ac_save_CC $ac_arg" 5403 if ac_fn_c_try_compile "$LINENO"; then : 5404 ac_cv_prog_cc_c11=$ac_arg 5405fi 5406rm -f core conftest.err conftest.$ac_objext 5407 test "x$ac_cv_prog_cc_c11" != "xno" && break 5408done 5409rm -f conftest.$ac_ext 5410CC=$ac_save_CC 5411 5412fi 5413# AC_CACHE_VAL 5414ac_prog_cc_stdc_options= 5415case "x$ac_cv_prog_cc_c11" in 5416 x) 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5418$as_echo "none needed" >&6; } ;; 5419 xno) 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5421$as_echo "unsupported" >&6; } ;; 5422 *) 5423 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11" 5424 CC=$CC$ac_prog_cc_stdc_options 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5426$as_echo "$ac_cv_prog_cc_c11" >&6; } ;; 5427esac 5428if test "x$ac_cv_prog_cc_c11" != xno; then : 5429 ac_prog_cc_stdc=c11 5430 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5431else 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5433$as_echo_n "checking for $CC option to enable C99 features... " >&6; } 5434if ${ac_cv_prog_cc_c99+:} false; then : 5435 $as_echo_n "(cached) " >&6 5436else 5437 ac_cv_prog_cc_c99=no 5438ac_save_CC=$CC 5439cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5440/* end confdefs.h. */ 5441#include <stdarg.h> 5442#include <stdbool.h> 5443#include <stdlib.h> 5444#include <wchar.h> 5445#include <stdio.h> 5446 5447// Check varargs macros. These examples are taken from C99 6.10.3.5. 5448#define debug(...) fprintf (stderr, __VA_ARGS__) 5449#define showlist(...) puts (#__VA_ARGS__) 5450#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5451static void 5452test_varargs_macros (void) 5453{ 5454 int x = 1234; 5455 int y = 5678; 5456 debug ("Flag"); 5457 debug ("X = %d\n", x); 5458 showlist (The first, second, and third items.); 5459 report (x>y, "x is %d but y is %d", x, y); 5460} 5461 5462// Check long long types. 5463#define BIG64 18446744073709551615ull 5464#define BIG32 4294967295ul 5465#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5466#if !BIG_OK 5467 your preprocessor is broken; 5468#endif 5469#if BIG_OK 5470#else 5471 your preprocessor is broken; 5472#endif 5473static long long int bignum = -9223372036854775807LL; 5474static unsigned long long int ubignum = BIG64; 5475 5476struct incomplete_array 5477{ 5478 int datasize; 5479 double data[]; 5480}; 5481 5482struct named_init { 5483 int number; 5484 const wchar_t *name; 5485 double average; 5486}; 5487 5488typedef const char *ccp; 5489 5490static inline int 5491test_restrict (ccp restrict text) 5492{ 5493 // See if C++-style comments work. 5494 // Iterate through items via the restricted pointer. 5495 // Also check for declarations in for loops. 5496 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5497 continue; 5498 return 0; 5499} 5500 5501// Check varargs and va_copy. 5502static bool 5503test_varargs (const char *format, ...) 5504{ 5505 va_list args; 5506 va_start (args, format); 5507 va_list args_copy; 5508 va_copy (args_copy, args); 5509 5510 const char *str = ""; 5511 int number = 0; 5512 float fnumber = 0; 5513 5514 while (*format) 5515 { 5516 switch (*format++) 5517 { 5518 case 's': // string 5519 str = va_arg (args_copy, const char *); 5520 break; 5521 case 'd': // int 5522 number = va_arg (args_copy, int); 5523 break; 5524 case 'f': // float 5525 fnumber = va_arg (args_copy, double); 5526 break; 5527 default: 5528 break; 5529 } 5530 } 5531 va_end (args_copy); 5532 va_end (args); 5533 5534 return *str && number && fnumber; 5535} 5536int 5537main () 5538{ 5539 5540 // Check bool. 5541 _Bool success = false; 5542 5543 // Check restrict. 5544 if (test_restrict ("String literal") == 0) 5545 success = true; 5546 char *restrict newvar = "Another string"; 5547 5548 // Check varargs. 5549 success &= test_varargs ("s, d' f .", "string", 65, 34.234); 5550 test_varargs_macros (); 5551 5552 // Check flexible array members. 5553 struct incomplete_array *ia = 5554 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5555 ia->datasize = 10; 5556 for (int i = 0; i < ia->datasize; ++i) 5557 ia->data[i] = i * 1.234; 5558 5559 // Check named initializers. 5560 struct named_init ni = { 5561 .number = 34, 5562 .name = L"Test wide string", 5563 .average = 543.34343, 5564 }; 5565 5566 ni.number = 58; 5567 5568 int dynamic_array[ni.number]; 5569 dynamic_array[ni.number - 1] = 543; 5570 5571 // work around unused variable warnings 5572 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5573 || dynamic_array[ni.number - 1] != 543); 5574 5575 ; 5576 return 0; 5577} 5578_ACEOF 5579for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99 5580do 5581 CC="$ac_save_CC $ac_arg" 5582 if ac_fn_c_try_compile "$LINENO"; then : 5583 ac_cv_prog_cc_c99=$ac_arg 5584fi 5585rm -f core conftest.err conftest.$ac_objext 5586 test "x$ac_cv_prog_cc_c99" != "xno" && break 5587done 5588rm -f conftest.$ac_ext 5589CC=$ac_save_CC 5590 5591fi 5592# AC_CACHE_VAL 5593ac_prog_cc_stdc_options= 5594case "x$ac_cv_prog_cc_c99" in 5595 x) 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5597$as_echo "none needed" >&6; } ;; 5598 xno) 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5600$as_echo "unsupported" >&6; } ;; 5601 *) 5602 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99" 5603 CC=$CC$ac_prog_cc_stdc_options 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5605$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5606esac 5607if test "x$ac_cv_prog_cc_c99" != xno; then : 5608 ac_prog_cc_stdc=c99 5609 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5610else 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5612$as_echo_n "checking for $CC option to enable C89 features... " >&6; } 5613if ${ac_cv_prog_cc_c89+:} false; then : 5614 $as_echo_n "(cached) " >&6 5615else 5616 ac_cv_prog_cc_c89=no 5617ac_save_CC=$CC 5618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5619/* end confdefs.h. */ 5620#include <stdarg.h> 5621#include <stdio.h> 5622struct stat; 5623/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5624struct buf { int x; }; 5625FILE * (*rcsopen) (struct buf *, struct stat *, int); 5626static char *e (p, i) 5627 char **p; 5628 int i; 5629{ 5630 return p[i]; 5631} 5632static char *f (char * (*g) (char **, int), char **p, ...) 5633{ 5634 char *s; 5635 va_list v; 5636 va_start (v,p); 5637 s = g (p, va_arg (v,int)); 5638 va_end (v); 5639 return s; 5640} 5641 5642/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5643 function prototypes and stuff, but not '\xHH' hex character constants. 5644 These don't provoke an error unfortunately, instead are silently treated 5645 as 'x'. The following induces an error, until -std is added to get 5646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5647 array size at least. It's necessary to write '\x00'==0 to get something 5648 that's true only with -std. */ 5649int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5650 5651/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5652 inside strings and character constants. */ 5653#define FOO(x) 'x' 5654int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5655 5656int test (int i, double x); 5657struct s1 {int (*f) (int a);}; 5658struct s2 {int (*f) (double a);}; 5659int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5660int argc; 5661char **argv; 5662int 5663main () 5664{ 5665return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5666 ; 5667 return 0; 5668} 5669_ACEOF 5670for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5672do 5673 CC="$ac_save_CC $ac_arg" 5674 if ac_fn_c_try_compile "$LINENO"; then : 5675 ac_cv_prog_cc_c89=$ac_arg 5676fi 5677rm -f core conftest.err conftest.$ac_objext 5678 test "x$ac_cv_prog_cc_c89" != "xno" && break 5679done 5680rm -f conftest.$ac_ext 5681CC=$ac_save_CC 5682 5683fi 5684# AC_CACHE_VAL 5685ac_prog_cc_stdc_options= 5686case "x$ac_cv_prog_cc_c89" in 5687 x) 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5689$as_echo "none needed" >&6; } ;; 5690 xno) 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5692$as_echo "unsupported" >&6; } ;; 5693 *) 5694 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89" 5695 CC=$CC$ac_prog_cc_stdc_options 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5697$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5698esac 5699if test "x$ac_cv_prog_cc_c89" != xno; then : 5700 ac_prog_cc_stdc=c89 5701 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5702else 5703 ac_prog_cc_stdc=no 5704 ac_cv_prog_cc_stdc=no 5705fi 5706 5707fi 5708 5709fi 5710 5711ac_ext=c 5712ac_cpp='$CPP $CPPFLAGS' 5713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5715ac_compiler_gnu=$ac_cv_c_compiler_gnu 5716DEPDIR="${am__leading_dot}deps" 5717 5718ac_config_commands="$ac_config_commands depfiles" 5719 5720 5721am_make=${MAKE-make} 5722cat > confinc << 'END' 5723am__doit: 5724 @echo this is the am__doit target 5725.PHONY: am__doit 5726END 5727# If we don't find an include directive, just comment out the code. 5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 5729$as_echo_n "checking for style of include used by $am_make... " >&6; } 5730am__include="#" 5731am__quote= 5732_am_result=none 5733# First try GNU make style include. 5734echo "include confinc" > confmf 5735# Ignore all kinds of additional output from 'make'. 5736case `$am_make -s -f confmf 2> /dev/null` in #( 5737*the\ am__doit\ target*) 5738 am__include=include 5739 am__quote= 5740 _am_result=GNU 5741 ;; 5742esac 5743# Now try BSD make style include. 5744if test "$am__include" = "#"; then 5745 echo '.include "confinc"' > confmf 5746 case `$am_make -s -f confmf 2> /dev/null` in #( 5747 *the\ am__doit\ target*) 5748 am__include=.include 5749 am__quote="\"" 5750 _am_result=BSD 5751 ;; 5752 esac 5753fi 5754 5755 5756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 5757$as_echo "$_am_result" >&6; } 5758rm -f confinc confmf 5759 5760# Check whether --enable-dependency-tracking was given. 5761if test "${enable_dependency_tracking+set}" = set; then : 5762 enableval=$enable_dependency_tracking; 5763fi 5764 5765if test "x$enable_dependency_tracking" != xno; then 5766 am_depcomp="$ac_aux_dir/depcomp" 5767 AMDEPBACKSLASH='\' 5768 am__nodep='_no' 5769fi 5770 if test "x$enable_dependency_tracking" != xno; then 5771 AMDEP_TRUE= 5772 AMDEP_FALSE='#' 5773else 5774 AMDEP_TRUE='#' 5775 AMDEP_FALSE= 5776fi 5777 5778 5779 5780depcc="$CC" am_compiler_list= 5781 5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5783$as_echo_n "checking dependency style of $depcc... " >&6; } 5784if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5785 $as_echo_n "(cached) " >&6 5786else 5787 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5788 # We make a subdir and do the tests there. Otherwise we can end up 5789 # making bogus files that we don't know about and never remove. For 5790 # instance it was reported that on HP-UX the gcc test will end up 5791 # making a dummy file named 'D' -- because '-MD' means "put the output 5792 # in D". 5793 rm -rf conftest.dir 5794 mkdir conftest.dir 5795 # Copy depcomp to subdir because otherwise we won't find it if we're 5796 # using a relative directory. 5797 cp "$am_depcomp" conftest.dir 5798 cd conftest.dir 5799 # We will build objects and dependencies in a subdirectory because 5800 # it helps to detect inapplicable dependency modes. For instance 5801 # both Tru64's cc and ICC support -MD to output dependencies as a 5802 # side effect of compilation, but ICC will put the dependencies in 5803 # the current directory while Tru64 will put them in the object 5804 # directory. 5805 mkdir sub 5806 5807 am_cv_CC_dependencies_compiler_type=none 5808 if test "$am_compiler_list" = ""; then 5809 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5810 fi 5811 am__universal=false 5812 case " $depcc " in #( 5813 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5814 esac 5815 5816 for depmode in $am_compiler_list; do 5817 # Setup a source with many dependencies, because some compilers 5818 # like to wrap large dependency lists on column 80 (with \), and 5819 # we should not choose a depcomp mode which is confused by this. 5820 # 5821 # We need to recreate these files for each test, as the compiler may 5822 # overwrite some of them when testing with obscure command lines. 5823 # This happens at least with the AIX C compiler. 5824 : > sub/conftest.c 5825 for i in 1 2 3 4 5 6; do 5826 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5827 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5828 # Solaris 10 /bin/sh. 5829 echo '/* dummy */' > sub/conftst$i.h 5830 done 5831 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5832 5833 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5834 # mode. It turns out that the SunPro C++ compiler does not properly 5835 # handle '-M -o', and we need to detect this. Also, some Intel 5836 # versions had trouble with output in subdirs. 5837 am__obj=sub/conftest.${OBJEXT-o} 5838 am__minus_obj="-o $am__obj" 5839 case $depmode in 5840 gcc) 5841 # This depmode causes a compiler race in universal mode. 5842 test "$am__universal" = false || continue 5843 ;; 5844 nosideeffect) 5845 # After this tag, mechanisms are not by side-effect, so they'll 5846 # only be used when explicitly requested. 5847 if test "x$enable_dependency_tracking" = xyes; then 5848 continue 5849 else 5850 break 5851 fi 5852 ;; 5853 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5854 # This compiler won't grok '-c -o', but also, the minuso test has 5855 # not run yet. These depmodes are late enough in the game, and 5856 # so weak that their functioning should not be impacted. 5857 am__obj=conftest.${OBJEXT-o} 5858 am__minus_obj= 5859 ;; 5860 none) break ;; 5861 esac 5862 if depmode=$depmode \ 5863 source=sub/conftest.c object=$am__obj \ 5864 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5865 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5866 >/dev/null 2>conftest.err && 5867 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5868 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5869 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5870 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5871 # icc doesn't choke on unknown options, it will just issue warnings 5872 # or remarks (even with -Werror). So we grep stderr for any message 5873 # that says an option was ignored or not supported. 5874 # When given -MP, icc 7.0 and 7.1 complain thusly: 5875 # icc: Command line warning: ignoring option '-M'; no argument required 5876 # The diagnosis changed in icc 8.0: 5877 # icc: Command line remark: option '-MP' not supported 5878 if (grep 'ignoring option' conftest.err || 5879 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5880 am_cv_CC_dependencies_compiler_type=$depmode 5881 break 5882 fi 5883 fi 5884 done 5885 5886 cd .. 5887 rm -rf conftest.dir 5888else 5889 am_cv_CC_dependencies_compiler_type=none 5890fi 5891 5892fi 5893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5894$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5895CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5896 5897 if 5898 test "x$enable_dependency_tracking" != xno \ 5899 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5900 am__fastdepCC_TRUE= 5901 am__fastdepCC_FALSE='#' 5902else 5903 am__fastdepCC_TRUE='#' 5904 am__fastdepCC_FALSE= 5905fi 5906 5907 5908 5909ac_ext=c 5910ac_cpp='$CPP $CPPFLAGS' 5911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5913ac_compiler_gnu=$ac_cv_c_compiler_gnu 5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5915$as_echo_n "checking how to run the C preprocessor... " >&6; } 5916# On Suns, sometimes $CPP names a directory. 5917if test -n "$CPP" && test -d "$CPP"; then 5918 CPP= 5919fi 5920if test -z "$CPP"; then 5921 if ${ac_cv_prog_CPP+:} false; then : 5922 $as_echo_n "(cached) " >&6 5923else 5924 # Double quotes because CPP needs to be expanded 5925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5926 do 5927 ac_preproc_ok=false 5928for ac_c_preproc_warn_flag in '' yes 5929do 5930 # Use a header file that comes with gcc, so configuring glibc 5931 # with a fresh cross-compiler works. 5932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5933 # <limits.h> exists even on freestanding compilers. 5934 # On the NeXT, cc -E runs the code through the compiler's parser, 5935 # not just through cpp. "Syntax error" is here to catch this case. 5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5937/* end confdefs.h. */ 5938#ifdef __STDC__ 5939# include <limits.h> 5940#else 5941# include <assert.h> 5942#endif 5943 Syntax error 5944_ACEOF 5945if ac_fn_c_try_cpp "$LINENO"; then : 5946 5947else 5948 # Broken: fails on valid input. 5949continue 5950fi 5951rm -f conftest.err conftest.i conftest.$ac_ext 5952 5953 # OK, works on sane cases. Now check whether nonexistent headers 5954 # can be detected and how. 5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5956/* end confdefs.h. */ 5957#include <ac_nonexistent.h> 5958_ACEOF 5959if ac_fn_c_try_cpp "$LINENO"; then : 5960 # Broken: success on invalid input. 5961continue 5962else 5963 # Passes both tests. 5964ac_preproc_ok=: 5965break 5966fi 5967rm -f conftest.err conftest.i conftest.$ac_ext 5968 5969done 5970# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5971rm -f conftest.i conftest.err conftest.$ac_ext 5972if $ac_preproc_ok; then : 5973 break 5974fi 5975 5976 done 5977 ac_cv_prog_CPP=$CPP 5978 5979fi 5980 CPP=$ac_cv_prog_CPP 5981else 5982 ac_cv_prog_CPP=$CPP 5983fi 5984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5985$as_echo "$CPP" >&6; } 5986ac_preproc_ok=false 5987for ac_c_preproc_warn_flag in '' yes 5988do 5989 # Use a header file that comes with gcc, so configuring glibc 5990 # with a fresh cross-compiler works. 5991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5992 # <limits.h> exists even on freestanding compilers. 5993 # On the NeXT, cc -E runs the code through the compiler's parser, 5994 # not just through cpp. "Syntax error" is here to catch this case. 5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5996/* end confdefs.h. */ 5997#ifdef __STDC__ 5998# include <limits.h> 5999#else 6000# include <assert.h> 6001#endif 6002 Syntax error 6003_ACEOF 6004if ac_fn_c_try_cpp "$LINENO"; then : 6005 6006else 6007 # Broken: fails on valid input. 6008continue 6009fi 6010rm -f conftest.err conftest.i conftest.$ac_ext 6011 6012 # OK, works on sane cases. Now check whether nonexistent headers 6013 # can be detected and how. 6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6015/* end confdefs.h. */ 6016#include <ac_nonexistent.h> 6017_ACEOF 6018if ac_fn_c_try_cpp "$LINENO"; then : 6019 # Broken: success on invalid input. 6020continue 6021else 6022 # Passes both tests. 6023ac_preproc_ok=: 6024break 6025fi 6026rm -f conftest.err conftest.i conftest.$ac_ext 6027 6028done 6029# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6030rm -f conftest.i conftest.err conftest.$ac_ext 6031if $ac_preproc_ok; then : 6032 6033else 6034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6036as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6037See \`config.log' for more details" "$LINENO" 5; } 6038fi 6039 6040ac_ext=c 6041ac_cpp='$CPP $CPPFLAGS' 6042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6044ac_compiler_gnu=$ac_cv_c_compiler_gnu 6045 6046 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6048$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6049if ${ac_cv_path_GREP+:} false; then : 6050 $as_echo_n "(cached) " >&6 6051else 6052 if test -z "$GREP"; then 6053 ac_path_GREP_found=false 6054 # Loop through the user's path and test for each of PROGNAME-LIST 6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6056for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6057do 6058 IFS=$as_save_IFS 6059 test -z "$as_dir" && as_dir=. 6060 for ac_prog in grep ggrep; do 6061 for ac_exec_ext in '' $ac_executable_extensions; do 6062 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6063 as_fn_executable_p "$ac_path_GREP" || continue 6064# Check for GNU ac_path_GREP and select it if it is found. 6065 # Check for GNU $ac_path_GREP 6066case `"$ac_path_GREP" --version 2>&1` in 6067*GNU*) 6068 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6069*) 6070 ac_count=0 6071 $as_echo_n 0123456789 >"conftest.in" 6072 while : 6073 do 6074 cat "conftest.in" "conftest.in" >"conftest.tmp" 6075 mv "conftest.tmp" "conftest.in" 6076 cp "conftest.in" "conftest.nl" 6077 $as_echo 'GREP' >> "conftest.nl" 6078 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6080 as_fn_arith $ac_count + 1 && ac_count=$as_val 6081 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6082 # Best one so far, save it but keep looking for a better one 6083 ac_cv_path_GREP="$ac_path_GREP" 6084 ac_path_GREP_max=$ac_count 6085 fi 6086 # 10*(2^10) chars as input seems more than enough 6087 test $ac_count -gt 10 && break 6088 done 6089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6090esac 6091 6092 $ac_path_GREP_found && break 3 6093 done 6094 done 6095 done 6096IFS=$as_save_IFS 6097 if test -z "$ac_cv_path_GREP"; then 6098 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6099 fi 6100else 6101 ac_cv_path_GREP=$GREP 6102fi 6103 6104fi 6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6106$as_echo "$ac_cv_path_GREP" >&6; } 6107 GREP="$ac_cv_path_GREP" 6108 6109 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6111$as_echo_n "checking for egrep... " >&6; } 6112if ${ac_cv_path_EGREP+:} false; then : 6113 $as_echo_n "(cached) " >&6 6114else 6115 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6116 then ac_cv_path_EGREP="$GREP -E" 6117 else 6118 if test -z "$EGREP"; then 6119 ac_path_EGREP_found=false 6120 # Loop through the user's path and test for each of PROGNAME-LIST 6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6122for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6123do 6124 IFS=$as_save_IFS 6125 test -z "$as_dir" && as_dir=. 6126 for ac_prog in egrep; do 6127 for ac_exec_ext in '' $ac_executable_extensions; do 6128 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6129 as_fn_executable_p "$ac_path_EGREP" || continue 6130# Check for GNU ac_path_EGREP and select it if it is found. 6131 # Check for GNU $ac_path_EGREP 6132case `"$ac_path_EGREP" --version 2>&1` in 6133*GNU*) 6134 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6135*) 6136 ac_count=0 6137 $as_echo_n 0123456789 >"conftest.in" 6138 while : 6139 do 6140 cat "conftest.in" "conftest.in" >"conftest.tmp" 6141 mv "conftest.tmp" "conftest.in" 6142 cp "conftest.in" "conftest.nl" 6143 $as_echo 'EGREP' >> "conftest.nl" 6144 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6146 as_fn_arith $ac_count + 1 && ac_count=$as_val 6147 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6148 # Best one so far, save it but keep looking for a better one 6149 ac_cv_path_EGREP="$ac_path_EGREP" 6150 ac_path_EGREP_max=$ac_count 6151 fi 6152 # 10*(2^10) chars as input seems more than enough 6153 test $ac_count -gt 10 && break 6154 done 6155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6156esac 6157 6158 $ac_path_EGREP_found && break 3 6159 done 6160 done 6161 done 6162IFS=$as_save_IFS 6163 if test -z "$ac_cv_path_EGREP"; then 6164 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6165 fi 6166else 6167 ac_cv_path_EGREP=$EGREP 6168fi 6169 6170 fi 6171fi 6172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6173$as_echo "$ac_cv_path_EGREP" >&6; } 6174 EGREP="$ac_cv_path_EGREP" 6175 6176 6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6178$as_echo_n "checking for ANSI C header files... " >&6; } 6179if ${ac_cv_header_stdc+:} false; then : 6180 $as_echo_n "(cached) " >&6 6181else 6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6183/* end confdefs.h. */ 6184#include <stdlib.h> 6185#include <stdarg.h> 6186#include <string.h> 6187#include <float.h> 6188 6189int 6190main () 6191{ 6192 6193 ; 6194 return 0; 6195} 6196_ACEOF 6197if ac_fn_c_try_compile "$LINENO"; then : 6198 ac_cv_header_stdc=yes 6199else 6200 ac_cv_header_stdc=no 6201fi 6202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6203 6204if test $ac_cv_header_stdc = yes; then 6205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6207/* end confdefs.h. */ 6208#include <string.h> 6209 6210_ACEOF 6211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6212 $EGREP "memchr" >/dev/null 2>&1; then : 6213 6214else 6215 ac_cv_header_stdc=no 6216fi 6217rm -f conftest* 6218 6219fi 6220 6221if test $ac_cv_header_stdc = yes; then 6222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6224/* end confdefs.h. */ 6225#include <stdlib.h> 6226 6227_ACEOF 6228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6229 $EGREP "free" >/dev/null 2>&1; then : 6230 6231else 6232 ac_cv_header_stdc=no 6233fi 6234rm -f conftest* 6235 6236fi 6237 6238if test $ac_cv_header_stdc = yes; then 6239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6240 if test "$cross_compiling" = yes; then : 6241 : 6242else 6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6244/* end confdefs.h. */ 6245#include <ctype.h> 6246#include <stdlib.h> 6247#if ((' ' & 0x0FF) == 0x020) 6248# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6249# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6250#else 6251# define ISLOWER(c) \ 6252 (('a' <= (c) && (c) <= 'i') \ 6253 || ('j' <= (c) && (c) <= 'r') \ 6254 || ('s' <= (c) && (c) <= 'z')) 6255# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6256#endif 6257 6258#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6259int 6260main () 6261{ 6262 int i; 6263 for (i = 0; i < 256; i++) 6264 if (XOR (islower (i), ISLOWER (i)) 6265 || toupper (i) != TOUPPER (i)) 6266 return 2; 6267 return 0; 6268} 6269_ACEOF 6270if ac_fn_c_try_run "$LINENO"; then : 6271 6272else 6273 ac_cv_header_stdc=no 6274fi 6275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6276 conftest.$ac_objext conftest.beam conftest.$ac_ext 6277fi 6278 6279fi 6280fi 6281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6282$as_echo "$ac_cv_header_stdc" >&6; } 6283if test $ac_cv_header_stdc = yes; then 6284 6285$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6286 6287fi 6288 6289# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6290for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6291 inttypes.h stdint.h unistd.h 6292do : 6293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6294ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6295" 6296if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6297 cat >>confdefs.h <<_ACEOF 6298#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6299_ACEOF 6300 6301fi 6302 6303done 6304 6305 6306 6307 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 6308if test "x$ac_cv_header_minix_config_h" = xyes; then : 6309 MINIX=yes 6310else 6311 MINIX= 6312fi 6313 6314 6315 if test "$MINIX" = yes; then 6316 6317$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 6318 6319 6320$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 6321 6322 6323$as_echo "#define _MINIX 1" >>confdefs.h 6324 6325 6326$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 6327 6328 fi 6329 6330 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 6332$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 6333if ${ac_cv_safe_to_define___extensions__+:} false; then : 6334 $as_echo_n "(cached) " >&6 6335else 6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6337/* end confdefs.h. */ 6338 6339# define __EXTENSIONS__ 1 6340 $ac_includes_default 6341int 6342main () 6343{ 6344 6345 ; 6346 return 0; 6347} 6348_ACEOF 6349if ac_fn_c_try_compile "$LINENO"; then : 6350 ac_cv_safe_to_define___extensions__=yes 6351else 6352 ac_cv_safe_to_define___extensions__=no 6353fi 6354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6355fi 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 6357$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 6358 test $ac_cv_safe_to_define___extensions__ = yes && 6359 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 6360 6361 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 6362 6363 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h 6364 6365 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 6366 6367 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h 6368 6369 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6370 6371 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 6372 6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 6374$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; } 6375if ${ac_cv_should_define__xopen_source+:} false; then : 6376 $as_echo_n "(cached) " >&6 6377else 6378 ac_cv_should_define__xopen_source=no 6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6380/* end confdefs.h. */ 6381 6382 #include <wchar.h> 6383 mbstate_t x; 6384int 6385main () 6386{ 6387 6388 ; 6389 return 0; 6390} 6391_ACEOF 6392if ac_fn_c_try_compile "$LINENO"; then : 6393 6394else 6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6396/* end confdefs.h. */ 6397 6398 #define _XOPEN_SOURCE 500 6399 #include <wchar.h> 6400 mbstate_t x; 6401int 6402main () 6403{ 6404 6405 ; 6406 return 0; 6407} 6408_ACEOF 6409if ac_fn_c_try_compile "$LINENO"; then : 6410 ac_cv_should_define__xopen_source=yes 6411fi 6412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6413fi 6414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6415fi 6416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 6417$as_echo "$ac_cv_should_define__xopen_source" >&6; } 6418 test $ac_cv_should_define__xopen_source = yes && 6419 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 6432$as_echo_n "checking for Minix Amsterdam compiler... " >&6; } 6433if ${gl_cv_c_amsterdam_compiler+:} false; then : 6434 $as_echo_n "(cached) " >&6 6435else 6436 6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6438/* end confdefs.h. */ 6439 6440#ifdef __ACK__ 6441Amsterdam 6442#endif 6443 6444_ACEOF 6445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6446 $EGREP "Amsterdam" >/dev/null 2>&1; then : 6447 gl_cv_c_amsterdam_compiler=yes 6448else 6449 gl_cv_c_amsterdam_compiler=no 6450fi 6451rm -f conftest* 6452 6453 6454fi 6455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 6456$as_echo "$gl_cv_c_amsterdam_compiler" >&6; } 6457 6458 if test $gl_cv_c_amsterdam_compiler = yes; then 6459 if test -z "$AR"; then 6460 AR='cc -c.a' 6461 fi 6462 if test -z "$ARFLAGS"; then 6463 ARFLAGS='-o' 6464 fi 6465 else 6466 if test -n "$ac_tool_prefix"; then 6467 for ac_prog in ar lib "link -lib" 6468 do 6469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6470set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6472$as_echo_n "checking for $ac_word... " >&6; } 6473if ${ac_cv_prog_AR+:} false; then : 6474 $as_echo_n "(cached) " >&6 6475else 6476 if test -n "$AR"; then 6477 ac_cv_prog_AR="$AR" # Let the user override the test. 6478else 6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480for as_dir in $PATH 6481do 6482 IFS=$as_save_IFS 6483 test -z "$as_dir" && as_dir=. 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6486 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6488 break 2 6489 fi 6490done 6491 done 6492IFS=$as_save_IFS 6493 6494fi 6495fi 6496AR=$ac_cv_prog_AR 6497if test -n "$AR"; then 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6499$as_echo "$AR" >&6; } 6500else 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6502$as_echo "no" >&6; } 6503fi 6504 6505 6506 test -n "$AR" && break 6507 done 6508fi 6509if test -z "$AR"; then 6510 ac_ct_AR=$AR 6511 for ac_prog in ar lib "link -lib" 6512do 6513 # Extract the first word of "$ac_prog", so it can be a program name with args. 6514set dummy $ac_prog; ac_word=$2 6515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6516$as_echo_n "checking for $ac_word... " >&6; } 6517if ${ac_cv_prog_ac_ct_AR+:} false; then : 6518 $as_echo_n "(cached) " >&6 6519else 6520 if test -n "$ac_ct_AR"; then 6521 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6522else 6523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6524for as_dir in $PATH 6525do 6526 IFS=$as_save_IFS 6527 test -z "$as_dir" && as_dir=. 6528 for ac_exec_ext in '' $ac_executable_extensions; do 6529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6530 ac_cv_prog_ac_ct_AR="$ac_prog" 6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6532 break 2 6533 fi 6534done 6535 done 6536IFS=$as_save_IFS 6537 6538fi 6539fi 6540ac_ct_AR=$ac_cv_prog_ac_ct_AR 6541if test -n "$ac_ct_AR"; then 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6543$as_echo "$ac_ct_AR" >&6; } 6544else 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6546$as_echo "no" >&6; } 6547fi 6548 6549 6550 test -n "$ac_ct_AR" && break 6551done 6552 6553 if test "x$ac_ct_AR" = x; then 6554 AR="false" 6555 else 6556 case $cross_compiling:$ac_tool_warned in 6557yes:) 6558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6560ac_tool_warned=yes ;; 6561esac 6562 AR=$ac_ct_AR 6563 fi 6564fi 6565 6566: ${AR=ar} 6567 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 6569$as_echo_n "checking the archiver ($AR) interface... " >&6; } 6570if ${am_cv_ar_interface+:} false; then : 6571 $as_echo_n "(cached) " >&6 6572else 6573 ac_ext=c 6574ac_cpp='$CPP $CPPFLAGS' 6575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6577ac_compiler_gnu=$ac_cv_c_compiler_gnu 6578 6579 am_cv_ar_interface=ar 6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6581/* end confdefs.h. */ 6582int some_variable = 0; 6583_ACEOF 6584if ac_fn_c_try_compile "$LINENO"; then : 6585 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 6586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6587 (eval $am_ar_try) 2>&5 6588 ac_status=$? 6589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6590 test $ac_status = 0; } 6591 if test "$ac_status" -eq 0; then 6592 am_cv_ar_interface=ar 6593 else 6594 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 6595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6596 (eval $am_ar_try) 2>&5 6597 ac_status=$? 6598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6599 test $ac_status = 0; } 6600 if test "$ac_status" -eq 0; then 6601 am_cv_ar_interface=lib 6602 else 6603 am_cv_ar_interface=unknown 6604 fi 6605 fi 6606 rm -f conftest.lib libconftest.a 6607 6608fi 6609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6610 ac_ext=c 6611ac_cpp='$CPP $CPPFLAGS' 6612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6614ac_compiler_gnu=$ac_cv_c_compiler_gnu 6615 6616fi 6617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 6618$as_echo "$am_cv_ar_interface" >&6; } 6619 6620case $am_cv_ar_interface in 6621ar) 6622 ;; 6623lib) 6624 # Microsoft lib, so override with the ar-lib wrapper script. 6625 # FIXME: It is wrong to rewrite AR. 6626 # But if we don't then we get into trouble of one sort or another. 6627 # A longer-term fix would be to have automake use am__AR in this case, 6628 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 6629 # similar. 6630 AR="$am_aux_dir/ar-lib $AR" 6631 ;; 6632unknown) 6633 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 6634 ;; 6635esac 6636 6637 fi 6638 6639 if test -n "$ac_tool_prefix"; then 6640 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6641set dummy ${ac_tool_prefix}ar; ac_word=$2 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6643$as_echo_n "checking for $ac_word... " >&6; } 6644if ${ac_cv_prog_AR+:} false; then : 6645 $as_echo_n "(cached) " >&6 6646else 6647 if test -n "$AR"; then 6648 ac_cv_prog_AR="$AR" # Let the user override the test. 6649else 6650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6651for as_dir in $PATH 6652do 6653 IFS=$as_save_IFS 6654 test -z "$as_dir" && as_dir=. 6655 for ac_exec_ext in '' $ac_executable_extensions; do 6656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6657 ac_cv_prog_AR="${ac_tool_prefix}ar" 6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6659 break 2 6660 fi 6661done 6662 done 6663IFS=$as_save_IFS 6664 6665fi 6666fi 6667AR=$ac_cv_prog_AR 6668if test -n "$AR"; then 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6670$as_echo "$AR" >&6; } 6671else 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6673$as_echo "no" >&6; } 6674fi 6675 6676 6677fi 6678if test -z "$ac_cv_prog_AR"; then 6679 ac_ct_AR=$AR 6680 # Extract the first word of "ar", so it can be a program name with args. 6681set dummy ar; ac_word=$2 6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6683$as_echo_n "checking for $ac_word... " >&6; } 6684if ${ac_cv_prog_ac_ct_AR+:} false; then : 6685 $as_echo_n "(cached) " >&6 6686else 6687 if test -n "$ac_ct_AR"; then 6688 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6689else 6690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6691for as_dir in $PATH 6692do 6693 IFS=$as_save_IFS 6694 test -z "$as_dir" && as_dir=. 6695 for ac_exec_ext in '' $ac_executable_extensions; do 6696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6697 ac_cv_prog_ac_ct_AR="ar" 6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6699 break 2 6700 fi 6701done 6702 done 6703IFS=$as_save_IFS 6704 6705fi 6706fi 6707ac_ct_AR=$ac_cv_prog_ac_ct_AR 6708if test -n "$ac_ct_AR"; then 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6710$as_echo "$ac_ct_AR" >&6; } 6711else 6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6713$as_echo "no" >&6; } 6714fi 6715 6716 if test "x$ac_ct_AR" = x; then 6717 AR="ar" 6718 else 6719 case $cross_compiling:$ac_tool_warned in 6720yes:) 6721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6723ac_tool_warned=yes ;; 6724esac 6725 AR=$ac_ct_AR 6726 fi 6727else 6728 AR="$ac_cv_prog_AR" 6729fi 6730 6731 if test -z "$ARFLAGS"; then 6732 ARFLAGS='cr' 6733 fi 6734 6735 6736 6737 if test -z "$RANLIB"; then 6738 if test $gl_cv_c_amsterdam_compiler = yes; then 6739 RANLIB=':' 6740 else 6741 if test -n "$ac_tool_prefix"; then 6742 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6743set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6745$as_echo_n "checking for $ac_word... " >&6; } 6746if ${ac_cv_prog_RANLIB+:} false; then : 6747 $as_echo_n "(cached) " >&6 6748else 6749 if test -n "$RANLIB"; then 6750 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6751else 6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6753for as_dir in $PATH 6754do 6755 IFS=$as_save_IFS 6756 test -z "$as_dir" && as_dir=. 6757 for ac_exec_ext in '' $ac_executable_extensions; do 6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6759 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6761 break 2 6762 fi 6763done 6764 done 6765IFS=$as_save_IFS 6766 6767fi 6768fi 6769RANLIB=$ac_cv_prog_RANLIB 6770if test -n "$RANLIB"; then 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6772$as_echo "$RANLIB" >&6; } 6773else 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6775$as_echo "no" >&6; } 6776fi 6777 6778 6779fi 6780if test -z "$ac_cv_prog_RANLIB"; then 6781 ac_ct_RANLIB=$RANLIB 6782 # Extract the first word of "ranlib", so it can be a program name with args. 6783set dummy ranlib; ac_word=$2 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6785$as_echo_n "checking for $ac_word... " >&6; } 6786if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6787 $as_echo_n "(cached) " >&6 6788else 6789 if test -n "$ac_ct_RANLIB"; then 6790 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6791else 6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6793for as_dir in $PATH 6794do 6795 IFS=$as_save_IFS 6796 test -z "$as_dir" && as_dir=. 6797 for ac_exec_ext in '' $ac_executable_extensions; do 6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6799 ac_cv_prog_ac_ct_RANLIB="ranlib" 6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6801 break 2 6802 fi 6803done 6804 done 6805IFS=$as_save_IFS 6806 6807fi 6808fi 6809ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6810if test -n "$ac_ct_RANLIB"; then 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6812$as_echo "$ac_ct_RANLIB" >&6; } 6813else 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6815$as_echo "no" >&6; } 6816fi 6817 6818 if test "x$ac_ct_RANLIB" = x; then 6819 RANLIB=":" 6820 else 6821 case $cross_compiling:$ac_tool_warned in 6822yes:) 6823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6825ac_tool_warned=yes ;; 6826esac 6827 RANLIB=$ac_ct_RANLIB 6828 fi 6829else 6830 RANLIB="$ac_cv_prog_RANLIB" 6831fi 6832 6833 fi 6834 fi 6835 6836 6837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 6838$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 6839if ${ac_cv_sys_largefile_source+:} false; then : 6840 $as_echo_n "(cached) " >&6 6841else 6842 while :; do 6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6844/* end confdefs.h. */ 6845#include <sys/types.h> /* for off_t */ 6846 #include <stdio.h> 6847int 6848main () 6849{ 6850int (*fp) (FILE *, off_t, int) = fseeko; 6851 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 6852 ; 6853 return 0; 6854} 6855_ACEOF 6856if ac_fn_c_try_link "$LINENO"; then : 6857 ac_cv_sys_largefile_source=no; break 6858fi 6859rm -f core conftest.err conftest.$ac_objext \ 6860 conftest$ac_exeext conftest.$ac_ext 6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6862/* end confdefs.h. */ 6863#define _LARGEFILE_SOURCE 1 6864#include <sys/types.h> /* for off_t */ 6865 #include <stdio.h> 6866int 6867main () 6868{ 6869int (*fp) (FILE *, off_t, int) = fseeko; 6870 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 6871 ; 6872 return 0; 6873} 6874_ACEOF 6875if ac_fn_c_try_link "$LINENO"; then : 6876 ac_cv_sys_largefile_source=1; break 6877fi 6878rm -f core conftest.err conftest.$ac_objext \ 6879 conftest$ac_exeext conftest.$ac_ext 6880 ac_cv_sys_largefile_source=unknown 6881 break 6882done 6883fi 6884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 6885$as_echo "$ac_cv_sys_largefile_source" >&6; } 6886case $ac_cv_sys_largefile_source in #( 6887 no | unknown) ;; 6888 *) 6889cat >>confdefs.h <<_ACEOF 6890#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 6891_ACEOF 6892;; 6893esac 6894rm -rf conftest* 6895 6896# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 6897# in glibc 2.1.3, but that breaks too many other things. 6898# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 6899if test $ac_cv_sys_largefile_source != unknown; then 6900 6901$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 6902 6903fi 6904 6905# Check whether --enable-largefile was given. 6906if test "${enable_largefile+set}" = set; then : 6907 enableval=$enable_largefile; 6908fi 6909 6910if test "$enable_largefile" != no; then 6911 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6913$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 6914if ${ac_cv_sys_largefile_CC+:} false; then : 6915 $as_echo_n "(cached) " >&6 6916else 6917 ac_cv_sys_largefile_CC=no 6918 if test "$GCC" != yes; then 6919 ac_save_CC=$CC 6920 while :; do 6921 # IRIX 6.2 and later do not support large files by default, 6922 # so use the C compiler's -n32 option if that helps. 6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6924/* end confdefs.h. */ 6925#include <sys/types.h> 6926 /* Check that off_t can represent 2**63 - 1 correctly. 6927 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6928 since some C++ compilers masquerading as C compilers 6929 incorrectly reject 9223372036854775807. */ 6930#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6931 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6932 && LARGE_OFF_T % 2147483647 == 1) 6933 ? 1 : -1]; 6934int 6935main () 6936{ 6937 6938 ; 6939 return 0; 6940} 6941_ACEOF 6942 if ac_fn_c_try_compile "$LINENO"; then : 6943 break 6944fi 6945rm -f core conftest.err conftest.$ac_objext 6946 CC="$CC -n32" 6947 if ac_fn_c_try_compile "$LINENO"; then : 6948 ac_cv_sys_largefile_CC=' -n32'; break 6949fi 6950rm -f core conftest.err conftest.$ac_objext 6951 break 6952 done 6953 CC=$ac_save_CC 6954 rm -f conftest.$ac_ext 6955 fi 6956fi 6957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6958$as_echo "$ac_cv_sys_largefile_CC" >&6; } 6959 if test "$ac_cv_sys_largefile_CC" != no; then 6960 CC=$CC$ac_cv_sys_largefile_CC 6961 fi 6962 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6964$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6965if ${ac_cv_sys_file_offset_bits+:} false; then : 6966 $as_echo_n "(cached) " >&6 6967else 6968 while :; do 6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6970/* end confdefs.h. */ 6971#include <sys/types.h> 6972 /* Check that off_t can represent 2**63 - 1 correctly. 6973 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6974 since some C++ compilers masquerading as C compilers 6975 incorrectly reject 9223372036854775807. */ 6976#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6977 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6978 && LARGE_OFF_T % 2147483647 == 1) 6979 ? 1 : -1]; 6980int 6981main () 6982{ 6983 6984 ; 6985 return 0; 6986} 6987_ACEOF 6988if ac_fn_c_try_compile "$LINENO"; then : 6989 ac_cv_sys_file_offset_bits=no; break 6990fi 6991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6993/* end confdefs.h. */ 6994#define _FILE_OFFSET_BITS 64 6995#include <sys/types.h> 6996 /* Check that off_t can represent 2**63 - 1 correctly. 6997 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6998 since some C++ compilers masquerading as C compilers 6999 incorrectly reject 9223372036854775807. */ 7000#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7002 && LARGE_OFF_T % 2147483647 == 1) 7003 ? 1 : -1]; 7004int 7005main () 7006{ 7007 7008 ; 7009 return 0; 7010} 7011_ACEOF 7012if ac_fn_c_try_compile "$LINENO"; then : 7013 ac_cv_sys_file_offset_bits=64; break 7014fi 7015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7016 ac_cv_sys_file_offset_bits=unknown 7017 break 7018done 7019fi 7020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 7021$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 7022case $ac_cv_sys_file_offset_bits in #( 7023 no | unknown) ;; 7024 *) 7025cat >>confdefs.h <<_ACEOF 7026#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 7027_ACEOF 7028;; 7029esac 7030rm -rf conftest* 7031 if test $ac_cv_sys_file_offset_bits = unknown; then 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 7033$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 7034if ${ac_cv_sys_large_files+:} false; then : 7035 $as_echo_n "(cached) " >&6 7036else 7037 while :; do 7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7039/* end confdefs.h. */ 7040#include <sys/types.h> 7041 /* Check that off_t can represent 2**63 - 1 correctly. 7042 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7043 since some C++ compilers masquerading as C compilers 7044 incorrectly reject 9223372036854775807. */ 7045#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7046 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7047 && LARGE_OFF_T % 2147483647 == 1) 7048 ? 1 : -1]; 7049int 7050main () 7051{ 7052 7053 ; 7054 return 0; 7055} 7056_ACEOF 7057if ac_fn_c_try_compile "$LINENO"; then : 7058 ac_cv_sys_large_files=no; break 7059fi 7060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7062/* end confdefs.h. */ 7063#define _LARGE_FILES 1 7064#include <sys/types.h> 7065 /* Check that off_t can represent 2**63 - 1 correctly. 7066 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7067 since some C++ compilers masquerading as C compilers 7068 incorrectly reject 9223372036854775807. */ 7069#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7071 && LARGE_OFF_T % 2147483647 == 1) 7072 ? 1 : -1]; 7073int 7074main () 7075{ 7076 7077 ; 7078 return 0; 7079} 7080_ACEOF 7081if ac_fn_c_try_compile "$LINENO"; then : 7082 ac_cv_sys_large_files=1; break 7083fi 7084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7085 ac_cv_sys_large_files=unknown 7086 break 7087done 7088fi 7089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 7090$as_echo "$ac_cv_sys_large_files" >&6; } 7091case $ac_cv_sys_large_files in #( 7092 no | unknown) ;; 7093 *) 7094cat >>confdefs.h <<_ACEOF 7095#define _LARGE_FILES $ac_cv_sys_large_files 7096_ACEOF 7097;; 7098esac 7099rm -rf conftest* 7100 fi 7101 7102 7103$as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h 7104 7105fi 7106 7107 7108 7109 7110 # Pre-early section. 7111 7112 7113 7114 # Code from module absolute-header: 7115 # Code from module binary-io: 7116 # Code from module binary-io-tests: 7117 # Code from module cloexec: 7118 # Code from module cloexec-tests: 7119 # Code from module close: 7120 # Code from module close-tests: 7121 # Code from module closedir: 7122 # Code from module ctype: 7123 # Code from module ctype-tests: 7124 # Code from module dirent: 7125 # Code from module dirent-safer: 7126 # Code from module dirent-safer-tests: 7127 # Code from module dirent-tests: 7128 # Code from module dirfd: 7129 # Code from module dosname: 7130 # Code from module dup: 7131 # Code from module dup-tests: 7132 # Code from module dup2: 7133 # Code from module dup2-tests: 7134 # Code from module errno: 7135 # Code from module errno-tests: 7136 # Code from module extensions: 7137 # Code from module extern-inline: 7138 # Code from module fcntl: 7139 # Code from module fcntl-h: 7140 # Code from module fcntl-h-tests: 7141 # Code from module fcntl-tests: 7142 # Code from module fd-hook: 7143 # Code from module fd-safer-flag: 7144 # Code from module fdl: 7145 # Code from module fdopen: 7146 # Code from module fdopen-tests: 7147 # Code from module fgetc-tests: 7148 # Code from module filename: 7149 # Code from module fputc-tests: 7150 # Code from module fread-tests: 7151 # Code from module fseek: 7152 # Code from module fseek-tests: 7153 # Code from module fseeko: 7154 7155 # Code from module fseeko-tests: 7156 # Code from module fstat: 7157 # Code from module fstat-tests: 7158 # Code from module fwrite-tests: 7159 # Code from module gendocs: 7160 # Code from module getcwd-lgpl: 7161 # Code from module getcwd-lgpl-tests: 7162 # Code from module getdtablesize: 7163 # Code from module getdtablesize-tests: 7164 # Code from module gettimeofday: 7165 # Code from module gettimeofday-tests: 7166 # Code from module gitlog-to-changelog: 7167 # Code from module gnumakefile: 7168 # Code from module ignore-value: 7169 # Code from module ignore-value-tests: 7170 # Code from module include_next: 7171 # Code from module intprops: 7172 # Code from module intprops-tests: 7173 # Code from module inttypes: 7174 # Code from module inttypes-incomplete: 7175 # Code from module inttypes-tests: 7176 # Code from module largefile: 7177 7178 # Code from module lseek: 7179 # Code from module lseek-tests: 7180 # Code from module lstat: 7181 # Code from module lstat-tests: 7182 # Code from module maintainer-makefile: 7183 # Code from module manywarnings: 7184 # Code from module msvc-inval: 7185 # Code from module msvc-nothrow: 7186 # Code from module multiarch: 7187 # Code from module open: 7188 # Code from module open-tests: 7189 # Code from module opendir: 7190 # Code from module pathmax: 7191 # Code from module pathmax-tests: 7192 # Code from module progname: 7193 # Code from module pthread: 7194 7195$as_echo "#define _REENTRANT 1" >>confdefs.h 7196 7197 7198$as_echo "#define _THREAD_SAFE 1" >>confdefs.h 7199 7200 # Code from module same-inode: 7201 # Code from module sched: 7202 # Code from module sched-tests: 7203 # Code from module signal: 7204 # Code from module signal-h: 7205 # Code from module signal-h-tests: 7206 # Code from module snippet/_Noreturn: 7207 # Code from module snippet/arg-nonnull: 7208 # Code from module snippet/c++defs: 7209 # Code from module snippet/warn-on-use: 7210 # Code from module ssize_t: 7211 # Code from module stat: 7212 # Code from module stat-tests: 7213 # Code from module std-gnu11: 7214 # Code from module stdalign: 7215 # Code from module stdalign-tests: 7216 # Code from module stdarg: 7217 7218 7219 7220 # Code from module stdbool: 7221 # Code from module stdbool-tests: 7222 # Code from module stddef: 7223 # Code from module stddef-tests: 7224 # Code from module stdint: 7225 # Code from module stdint-tests: 7226 # Code from module stdio: 7227 # Code from module stdio-tests: 7228 # Code from module stdlib: 7229 # Code from module stdlib-tests: 7230 # Code from module string: 7231 # Code from module string-tests: 7232 # Code from module symlink: 7233 # Code from module symlink-tests: 7234 # Code from module sys_file: 7235 # Code from module sys_file-tests: 7236 # Code from module sys_stat: 7237 # Code from module sys_stat-tests: 7238 # Code from module sys_time: 7239 # Code from module sys_time-tests: 7240 # Code from module sys_types: 7241 # Code from module sys_types-tests: 7242 # Code from module sys_wait: 7243 # Code from module sys_wait-tests: 7244 # Code from module test-framework-sh: 7245 # Code from module test-framework-sh-tests: 7246 # Code from module time: 7247 # Code from module time-tests: 7248 # Code from module unistd: 7249 # Code from module unistd-safer: 7250 # Code from module unistd-safer-tests: 7251 # Code from module unistd-tests: 7252 # Code from module update-copyright: 7253 # Code from module update-copyright-tests: 7254 # Code from module useless-if-before-free: 7255 # Code from module vc-list-files: 7256 # Code from module vc-list-files-tests: 7257 # Code from module verify: 7258 # Code from module verify-tests: 7259 # Code from module warnings: 7260 # Code from module wchar: 7261 # Code from module wchar-tests: 7262 7263 7264 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 7266$as_echo_n "checking for library containing strerror... " >&6; } 7267if ${ac_cv_search_strerror+:} false; then : 7268 $as_echo_n "(cached) " >&6 7269else 7270 ac_func_search_save_LIBS=$LIBS 7271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273 7274/* Override any GCC internal prototype to avoid an error. 7275 Use char because int might match the return type of a GCC 7276 builtin and then its argument prototype would still apply. */ 7277#ifdef __cplusplus 7278extern "C" 7279#endif 7280char strerror (); 7281int 7282main () 7283{ 7284return strerror (); 7285 ; 7286 return 0; 7287} 7288_ACEOF 7289for ac_lib in '' cposix; do 7290 if test -z "$ac_lib"; then 7291 ac_res="none required" 7292 else 7293 ac_res=-l$ac_lib 7294 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7295 fi 7296 if ac_fn_c_try_link "$LINENO"; then : 7297 ac_cv_search_strerror=$ac_res 7298fi 7299rm -f core conftest.err conftest.$ac_objext \ 7300 conftest$ac_exeext 7301 if ${ac_cv_search_strerror+:} false; then : 7302 break 7303fi 7304done 7305if ${ac_cv_search_strerror+:} false; then : 7306 7307else 7308 ac_cv_search_strerror=no 7309fi 7310rm conftest.$ac_ext 7311LIBS=$ac_func_search_save_LIBS 7312fi 7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 7314$as_echo "$ac_cv_search_strerror" >&6; } 7315ac_res=$ac_cv_search_strerror 7316if test "$ac_res" != no; then : 7317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7318 7319fi 7320 7321 7322 7323case `pwd` in 7324 *\ * | *\ *) 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7326$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7327esac 7328 7329 7330 7331macro_version='2.4.6' 7332macro_revision='2.4.6' 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346ltmain=$ac_aux_dir/ltmain.sh 7347 7348# Make sure we can run config.sub. 7349$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 7350 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 7351 7352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 7353$as_echo_n "checking build system type... " >&6; } 7354if ${ac_cv_build+:} false; then : 7355 $as_echo_n "(cached) " >&6 7356else 7357 ac_build_alias=$build_alias 7358test "x$ac_build_alias" = x && 7359 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 7360test "x$ac_build_alias" = x && 7361 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 7362ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 7363 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 7364 7365fi 7366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 7367$as_echo "$ac_cv_build" >&6; } 7368case $ac_cv_build in 7369*-*-*) ;; 7370*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 7371esac 7372build=$ac_cv_build 7373ac_save_IFS=$IFS; IFS='-' 7374set x $ac_cv_build 7375shift 7376build_cpu=$1 7377build_vendor=$2 7378shift; shift 7379# Remember, the first character of IFS is used to create $*, 7380# except with old shells: 7381build_os=$* 7382IFS=$ac_save_IFS 7383case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 7384 7385 7386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 7387$as_echo_n "checking host system type... " >&6; } 7388if ${ac_cv_host+:} false; then : 7389 $as_echo_n "(cached) " >&6 7390else 7391 if test "x$host_alias" = x; then 7392 ac_cv_host=$ac_cv_build 7393else 7394 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 7395 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 7396fi 7397 7398fi 7399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 7400$as_echo "$ac_cv_host" >&6; } 7401case $ac_cv_host in 7402*-*-*) ;; 7403*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 7404esac 7405host=$ac_cv_host 7406ac_save_IFS=$IFS; IFS='-' 7407set x $ac_cv_host 7408shift 7409host_cpu=$1 7410host_vendor=$2 7411shift; shift 7412# Remember, the first character of IFS is used to create $*, 7413# except with old shells: 7414host_os=$* 7415IFS=$ac_save_IFS 7416case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 7417 7418 7419# Backslashify metacharacters that are still active within 7420# double-quoted strings. 7421sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7422 7423# Same as above, but do not quote variable references. 7424double_quote_subst='s/\(["`\\]\)/\\\1/g' 7425 7426# Sed substitution to delay expansion of an escaped shell variable in a 7427# double_quote_subst'ed string. 7428delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7429 7430# Sed substitution to delay expansion of an escaped single quote. 7431delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7432 7433# Sed substitution to avoid accidental globbing in evaled expressions 7434no_glob_subst='s/\*/\\\*/g' 7435 7436ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7437ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7438ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7439 7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7441$as_echo_n "checking how to print strings... " >&6; } 7442# Test print first, because it will be a builtin if present. 7443if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7444 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7445 ECHO='print -r --' 7446elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7447 ECHO='printf %s\n' 7448else 7449 # Use this function as a fallback that always works. 7450 func_fallback_echo () 7451 { 7452 eval 'cat <<_LTECHO_EOF 7453$1 7454_LTECHO_EOF' 7455 } 7456 ECHO='func_fallback_echo' 7457fi 7458 7459# func_echo_all arg... 7460# Invoke $ECHO with all args, space-separated. 7461func_echo_all () 7462{ 7463 $ECHO "" 7464} 7465 7466case $ECHO in 7467 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7468$as_echo "printf" >&6; } ;; 7469 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7470$as_echo "print -r" >&6; } ;; 7471 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7472$as_echo "cat" >&6; } ;; 7473esac 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7489$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7490if ${ac_cv_path_SED+:} false; then : 7491 $as_echo_n "(cached) " >&6 7492else 7493 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7494 for ac_i in 1 2 3 4 5 6 7; do 7495 ac_script="$ac_script$as_nl$ac_script" 7496 done 7497 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7498 { ac_script=; unset ac_script;} 7499 if test -z "$SED"; then 7500 ac_path_SED_found=false 7501 # Loop through the user's path and test for each of PROGNAME-LIST 7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7503for as_dir in $PATH 7504do 7505 IFS=$as_save_IFS 7506 test -z "$as_dir" && as_dir=. 7507 for ac_prog in sed gsed; do 7508 for ac_exec_ext in '' $ac_executable_extensions; do 7509 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7510 as_fn_executable_p "$ac_path_SED" || continue 7511# Check for GNU ac_path_SED and select it if it is found. 7512 # Check for GNU $ac_path_SED 7513case `"$ac_path_SED" --version 2>&1` in 7514*GNU*) 7515 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7516*) 7517 ac_count=0 7518 $as_echo_n 0123456789 >"conftest.in" 7519 while : 7520 do 7521 cat "conftest.in" "conftest.in" >"conftest.tmp" 7522 mv "conftest.tmp" "conftest.in" 7523 cp "conftest.in" "conftest.nl" 7524 $as_echo '' >> "conftest.nl" 7525 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7527 as_fn_arith $ac_count + 1 && ac_count=$as_val 7528 if test $ac_count -gt ${ac_path_SED_max-0}; then 7529 # Best one so far, save it but keep looking for a better one 7530 ac_cv_path_SED="$ac_path_SED" 7531 ac_path_SED_max=$ac_count 7532 fi 7533 # 10*(2^10) chars as input seems more than enough 7534 test $ac_count -gt 10 && break 7535 done 7536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7537esac 7538 7539 $ac_path_SED_found && break 3 7540 done 7541 done 7542 done 7543IFS=$as_save_IFS 7544 if test -z "$ac_cv_path_SED"; then 7545 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7546 fi 7547else 7548 ac_cv_path_SED=$SED 7549fi 7550 7551fi 7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7553$as_echo "$ac_cv_path_SED" >&6; } 7554 SED="$ac_cv_path_SED" 7555 rm -f conftest.sed 7556 7557test -z "$SED" && SED=sed 7558Xsed="$SED -e 1s/^X//" 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7571$as_echo_n "checking for fgrep... " >&6; } 7572if ${ac_cv_path_FGREP+:} false; then : 7573 $as_echo_n "(cached) " >&6 7574else 7575 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7576 then ac_cv_path_FGREP="$GREP -F" 7577 else 7578 if test -z "$FGREP"; then 7579 ac_path_FGREP_found=false 7580 # Loop through the user's path and test for each of PROGNAME-LIST 7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7582for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7583do 7584 IFS=$as_save_IFS 7585 test -z "$as_dir" && as_dir=. 7586 for ac_prog in fgrep; do 7587 for ac_exec_ext in '' $ac_executable_extensions; do 7588 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7589 as_fn_executable_p "$ac_path_FGREP" || continue 7590# Check for GNU ac_path_FGREP and select it if it is found. 7591 # Check for GNU $ac_path_FGREP 7592case `"$ac_path_FGREP" --version 2>&1` in 7593*GNU*) 7594 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7595*) 7596 ac_count=0 7597 $as_echo_n 0123456789 >"conftest.in" 7598 while : 7599 do 7600 cat "conftest.in" "conftest.in" >"conftest.tmp" 7601 mv "conftest.tmp" "conftest.in" 7602 cp "conftest.in" "conftest.nl" 7603 $as_echo 'FGREP' >> "conftest.nl" 7604 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7606 as_fn_arith $ac_count + 1 && ac_count=$as_val 7607 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7608 # Best one so far, save it but keep looking for a better one 7609 ac_cv_path_FGREP="$ac_path_FGREP" 7610 ac_path_FGREP_max=$ac_count 7611 fi 7612 # 10*(2^10) chars as input seems more than enough 7613 test $ac_count -gt 10 && break 7614 done 7615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7616esac 7617 7618 $ac_path_FGREP_found && break 3 7619 done 7620 done 7621 done 7622IFS=$as_save_IFS 7623 if test -z "$ac_cv_path_FGREP"; then 7624 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7625 fi 7626else 7627 ac_cv_path_FGREP=$FGREP 7628fi 7629 7630 fi 7631fi 7632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7633$as_echo "$ac_cv_path_FGREP" >&6; } 7634 FGREP="$ac_cv_path_FGREP" 7635 7636 7637test -z "$GREP" && GREP=grep 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657# Check whether --with-gnu-ld was given. 7658if test "${with_gnu_ld+set}" = set; then : 7659 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7660else 7661 with_gnu_ld=no 7662fi 7663 7664ac_prog=ld 7665if test yes = "$GCC"; then 7666 # Check if gcc -print-prog-name=ld gives a path. 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7668$as_echo_n "checking for ld used by $CC... " >&6; } 7669 case $host in 7670 *-*-mingw*) 7671 # gcc leaves a trailing carriage return, which upsets mingw 7672 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7673 *) 7674 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7675 esac 7676 case $ac_prog in 7677 # Accept absolute paths. 7678 [\\/]* | ?:[\\/]*) 7679 re_direlt='/[^/][^/]*/\.\./' 7680 # Canonicalize the pathname of ld 7681 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7682 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7683 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7684 done 7685 test -z "$LD" && LD=$ac_prog 7686 ;; 7687 "") 7688 # If it fails, then pretend we aren't using GCC. 7689 ac_prog=ld 7690 ;; 7691 *) 7692 # If it is relative, then search for the first ld in PATH. 7693 with_gnu_ld=unknown 7694 ;; 7695 esac 7696elif test yes = "$with_gnu_ld"; then 7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7698$as_echo_n "checking for GNU ld... " >&6; } 7699else 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7701$as_echo_n "checking for non-GNU ld... " >&6; } 7702fi 7703if ${lt_cv_path_LD+:} false; then : 7704 $as_echo_n "(cached) " >&6 7705else 7706 if test -z "$LD"; then 7707 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7708 for ac_dir in $PATH; do 7709 IFS=$lt_save_ifs 7710 test -z "$ac_dir" && ac_dir=. 7711 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7712 lt_cv_path_LD=$ac_dir/$ac_prog 7713 # Check to see if the program is GNU ld. I'd rather use --version, 7714 # but apparently some variants of GNU ld only accept -v. 7715 # Break only if it was the GNU/non-GNU ld that we prefer. 7716 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7717 *GNU* | *'with BFD'*) 7718 test no != "$with_gnu_ld" && break 7719 ;; 7720 *) 7721 test yes != "$with_gnu_ld" && break 7722 ;; 7723 esac 7724 fi 7725 done 7726 IFS=$lt_save_ifs 7727else 7728 lt_cv_path_LD=$LD # Let the user override the test with a path. 7729fi 7730fi 7731 7732LD=$lt_cv_path_LD 7733if test -n "$LD"; then 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7735$as_echo "$LD" >&6; } 7736else 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7738$as_echo "no" >&6; } 7739fi 7740test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7742$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7743if ${lt_cv_prog_gnu_ld+:} false; then : 7744 $as_echo_n "(cached) " >&6 7745else 7746 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7747case `$LD -v 2>&1 </dev/null` in 7748*GNU* | *'with BFD'*) 7749 lt_cv_prog_gnu_ld=yes 7750 ;; 7751*) 7752 lt_cv_prog_gnu_ld=no 7753 ;; 7754esac 7755fi 7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7757$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7758with_gnu_ld=$lt_cv_prog_gnu_ld 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7769$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7770if ${lt_cv_path_NM+:} false; then : 7771 $as_echo_n "(cached) " >&6 7772else 7773 if test -n "$NM"; then 7774 # Let the user override the test. 7775 lt_cv_path_NM=$NM 7776else 7777 lt_nm_to_check=${ac_tool_prefix}nm 7778 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7779 lt_nm_to_check="$lt_nm_to_check nm" 7780 fi 7781 for lt_tmp_nm in $lt_nm_to_check; do 7782 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7783 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7784 IFS=$lt_save_ifs 7785 test -z "$ac_dir" && ac_dir=. 7786 tmp_nm=$ac_dir/$lt_tmp_nm 7787 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7788 # Check to see if the nm accepts a BSD-compat flag. 7789 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7790 # nm: unknown option "B" ignored 7791 # Tru64's nm complains that /dev/null is an invalid object file 7792 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7793 case $build_os in 7794 mingw*) lt_bad_file=conftest.nm/nofile ;; 7795 *) lt_bad_file=/dev/null ;; 7796 esac 7797 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7798 *$lt_bad_file* | *'Invalid file or object type'*) 7799 lt_cv_path_NM="$tmp_nm -B" 7800 break 2 7801 ;; 7802 *) 7803 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7804 */dev/null*) 7805 lt_cv_path_NM="$tmp_nm -p" 7806 break 2 7807 ;; 7808 *) 7809 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7810 continue # so that we can try to find one that supports BSD flags 7811 ;; 7812 esac 7813 ;; 7814 esac 7815 fi 7816 done 7817 IFS=$lt_save_ifs 7818 done 7819 : ${lt_cv_path_NM=no} 7820fi 7821fi 7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7823$as_echo "$lt_cv_path_NM" >&6; } 7824if test no != "$lt_cv_path_NM"; then 7825 NM=$lt_cv_path_NM 7826else 7827 # Didn't find any BSD compatible name lister, look for dumpbin. 7828 if test -n "$DUMPBIN"; then : 7829 # Let the user override the test. 7830 else 7831 if test -n "$ac_tool_prefix"; then 7832 for ac_prog in dumpbin "link -dump" 7833 do 7834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7835set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7837$as_echo_n "checking for $ac_word... " >&6; } 7838if ${ac_cv_prog_DUMPBIN+:} false; then : 7839 $as_echo_n "(cached) " >&6 7840else 7841 if test -n "$DUMPBIN"; then 7842 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7843else 7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7845for as_dir in $PATH 7846do 7847 IFS=$as_save_IFS 7848 test -z "$as_dir" && as_dir=. 7849 for ac_exec_ext in '' $ac_executable_extensions; do 7850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7851 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7853 break 2 7854 fi 7855done 7856 done 7857IFS=$as_save_IFS 7858 7859fi 7860fi 7861DUMPBIN=$ac_cv_prog_DUMPBIN 7862if test -n "$DUMPBIN"; then 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7864$as_echo "$DUMPBIN" >&6; } 7865else 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7867$as_echo "no" >&6; } 7868fi 7869 7870 7871 test -n "$DUMPBIN" && break 7872 done 7873fi 7874if test -z "$DUMPBIN"; then 7875 ac_ct_DUMPBIN=$DUMPBIN 7876 for ac_prog in dumpbin "link -dump" 7877do 7878 # Extract the first word of "$ac_prog", so it can be a program name with args. 7879set dummy $ac_prog; ac_word=$2 7880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7881$as_echo_n "checking for $ac_word... " >&6; } 7882if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7883 $as_echo_n "(cached) " >&6 7884else 7885 if test -n "$ac_ct_DUMPBIN"; then 7886 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7887else 7888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7889for as_dir in $PATH 7890do 7891 IFS=$as_save_IFS 7892 test -z "$as_dir" && as_dir=. 7893 for ac_exec_ext in '' $ac_executable_extensions; do 7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7895 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7897 break 2 7898 fi 7899done 7900 done 7901IFS=$as_save_IFS 7902 7903fi 7904fi 7905ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7906if test -n "$ac_ct_DUMPBIN"; then 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7908$as_echo "$ac_ct_DUMPBIN" >&6; } 7909else 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7911$as_echo "no" >&6; } 7912fi 7913 7914 7915 test -n "$ac_ct_DUMPBIN" && break 7916done 7917 7918 if test "x$ac_ct_DUMPBIN" = x; then 7919 DUMPBIN=":" 7920 else 7921 case $cross_compiling:$ac_tool_warned in 7922yes:) 7923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7925ac_tool_warned=yes ;; 7926esac 7927 DUMPBIN=$ac_ct_DUMPBIN 7928 fi 7929fi 7930 7931 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7932 *COFF*) 7933 DUMPBIN="$DUMPBIN -symbols -headers" 7934 ;; 7935 *) 7936 DUMPBIN=: 7937 ;; 7938 esac 7939 fi 7940 7941 if test : != "$DUMPBIN"; then 7942 NM=$DUMPBIN 7943 fi 7944fi 7945test -z "$NM" && NM=nm 7946 7947 7948 7949 7950 7951 7952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7953$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7954if ${lt_cv_nm_interface+:} false; then : 7955 $as_echo_n "(cached) " >&6 7956else 7957 lt_cv_nm_interface="BSD nm" 7958 echo "int some_variable = 0;" > conftest.$ac_ext 7959 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7960 (eval "$ac_compile" 2>conftest.err) 7961 cat conftest.err >&5 7962 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7963 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7964 cat conftest.err >&5 7965 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7966 cat conftest.out >&5 7967 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7968 lt_cv_nm_interface="MS dumpbin" 7969 fi 7970 rm -f conftest* 7971fi 7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7973$as_echo "$lt_cv_nm_interface" >&6; } 7974 7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7976$as_echo_n "checking whether ln -s works... " >&6; } 7977LN_S=$as_ln_s 7978if test "$LN_S" = "ln -s"; then 7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7980$as_echo "yes" >&6; } 7981else 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7983$as_echo "no, using $LN_S" >&6; } 7984fi 7985 7986# find the maximum length of command line arguments 7987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7988$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7989if ${lt_cv_sys_max_cmd_len+:} false; then : 7990 $as_echo_n "(cached) " >&6 7991else 7992 i=0 7993 teststring=ABCD 7994 7995 case $build_os in 7996 msdosdjgpp*) 7997 # On DJGPP, this test can blow up pretty badly due to problems in libc 7998 # (any single argument exceeding 2000 bytes causes a buffer overrun 7999 # during glob expansion). Even if it were fixed, the result of this 8000 # check would be larger than it should be. 8001 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8002 ;; 8003 8004 gnu*) 8005 # Under GNU Hurd, this test is not required because there is 8006 # no limit to the length of command line arguments. 8007 # Libtool will interpret -1 as no limit whatsoever 8008 lt_cv_sys_max_cmd_len=-1; 8009 ;; 8010 8011 cygwin* | mingw* | cegcc*) 8012 # On Win9x/ME, this test blows up -- it succeeds, but takes 8013 # about 5 minutes as the teststring grows exponentially. 8014 # Worse, since 9x/ME are not pre-emptively multitasking, 8015 # you end up with a "frozen" computer, even though with patience 8016 # the test eventually succeeds (with a max line length of 256k). 8017 # Instead, let's just punt: use the minimum linelength reported by 8018 # all of the supported platforms: 8192 (on NT/2K/XP). 8019 lt_cv_sys_max_cmd_len=8192; 8020 ;; 8021 8022 mint*) 8023 # On MiNT this can take a long time and run out of memory. 8024 lt_cv_sys_max_cmd_len=8192; 8025 ;; 8026 8027 amigaos*) 8028 # On AmigaOS with pdksh, this test takes hours, literally. 8029 # So we just punt and use a minimum line length of 8192. 8030 lt_cv_sys_max_cmd_len=8192; 8031 ;; 8032 8033 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 8034 # This has been around since 386BSD, at least. Likely further. 8035 if test -x /sbin/sysctl; then 8036 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8037 elif test -x /usr/sbin/sysctl; then 8038 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8039 else 8040 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8041 fi 8042 # And add a safety zone 8043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8044 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8045 ;; 8046 8047 interix*) 8048 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8049 lt_cv_sys_max_cmd_len=196608 8050 ;; 8051 8052 os2*) 8053 # The test takes a long time on OS/2. 8054 lt_cv_sys_max_cmd_len=8192 8055 ;; 8056 8057 osf*) 8058 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8059 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8060 # nice to cause kernel panics so lets avoid the loop below. 8061 # First set a reasonable default. 8062 lt_cv_sys_max_cmd_len=16384 8063 # 8064 if test -x /sbin/sysconfig; then 8065 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8066 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8067 esac 8068 fi 8069 ;; 8070 sco3.2v5*) 8071 lt_cv_sys_max_cmd_len=102400 8072 ;; 8073 sysv5* | sco5v6* | sysv4.2uw2*) 8074 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8075 if test -n "$kargmax"; then 8076 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8077 else 8078 lt_cv_sys_max_cmd_len=32768 8079 fi 8080 ;; 8081 *) 8082 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8083 if test -n "$lt_cv_sys_max_cmd_len" && \ 8084 test undefined != "$lt_cv_sys_max_cmd_len"; then 8085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8086 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8087 else 8088 # Make teststring a little bigger before we do anything with it. 8089 # a 1K string should be a reasonable start. 8090 for i in 1 2 3 4 5 6 7 8; do 8091 teststring=$teststring$teststring 8092 done 8093 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8094 # If test is not a shell built-in, we'll probably end up computing a 8095 # maximum length that is only half of the actual maximum length, but 8096 # we can't tell. 8097 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 8098 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8099 test 17 != "$i" # 1/2 MB should be enough 8100 do 8101 i=`expr $i + 1` 8102 teststring=$teststring$teststring 8103 done 8104 # Only check the string length outside the loop. 8105 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8106 teststring= 8107 # Add a significant safety factor because C++ compilers can tack on 8108 # massive amounts of additional arguments before passing them to the 8109 # linker. It appears as though 1/2 is a usable value. 8110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8111 fi 8112 ;; 8113 esac 8114 8115fi 8116 8117if test -n "$lt_cv_sys_max_cmd_len"; then 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8119$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8120else 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8122$as_echo "none" >&6; } 8123fi 8124max_cmd_len=$lt_cv_sys_max_cmd_len 8125 8126 8127 8128 8129 8130 8131: ${CP="cp -f"} 8132: ${MV="mv -f"} 8133: ${RM="rm -f"} 8134 8135if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8136 lt_unset=unset 8137else 8138 lt_unset=false 8139fi 8140 8141 8142 8143 8144 8145# test EBCDIC or ASCII 8146case `echo X|tr X '\101'` in 8147 A) # ASCII based system 8148 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8149 lt_SP2NL='tr \040 \012' 8150 lt_NL2SP='tr \015\012 \040\040' 8151 ;; 8152 *) # EBCDIC based system 8153 lt_SP2NL='tr \100 \n' 8154 lt_NL2SP='tr \r\n \100\100' 8155 ;; 8156esac 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8167$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8168if ${lt_cv_to_host_file_cmd+:} false; then : 8169 $as_echo_n "(cached) " >&6 8170else 8171 case $host in 8172 *-*-mingw* ) 8173 case $build in 8174 *-*-mingw* ) # actually msys 8175 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8176 ;; 8177 *-*-cygwin* ) 8178 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8179 ;; 8180 * ) # otherwise, assume *nix 8181 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8182 ;; 8183 esac 8184 ;; 8185 *-*-cygwin* ) 8186 case $build in 8187 *-*-mingw* ) # actually msys 8188 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8189 ;; 8190 *-*-cygwin* ) 8191 lt_cv_to_host_file_cmd=func_convert_file_noop 8192 ;; 8193 * ) # otherwise, assume *nix 8194 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8195 ;; 8196 esac 8197 ;; 8198 * ) # unhandled hosts (and "normal" native builds) 8199 lt_cv_to_host_file_cmd=func_convert_file_noop 8200 ;; 8201esac 8202 8203fi 8204 8205to_host_file_cmd=$lt_cv_to_host_file_cmd 8206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8207$as_echo "$lt_cv_to_host_file_cmd" >&6; } 8208 8209 8210 8211 8212 8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8214$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8215if ${lt_cv_to_tool_file_cmd+:} false; then : 8216 $as_echo_n "(cached) " >&6 8217else 8218 #assume ordinary cross tools, or native build. 8219lt_cv_to_tool_file_cmd=func_convert_file_noop 8220case $host in 8221 *-*-mingw* ) 8222 case $build in 8223 *-*-mingw* ) # actually msys 8224 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8225 ;; 8226 esac 8227 ;; 8228esac 8229 8230fi 8231 8232to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8234$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8235 8236 8237 8238 8239 8240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8241$as_echo_n "checking for $LD option to reload object files... " >&6; } 8242if ${lt_cv_ld_reload_flag+:} false; then : 8243 $as_echo_n "(cached) " >&6 8244else 8245 lt_cv_ld_reload_flag='-r' 8246fi 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8248$as_echo "$lt_cv_ld_reload_flag" >&6; } 8249reload_flag=$lt_cv_ld_reload_flag 8250case $reload_flag in 8251"" | " "*) ;; 8252*) reload_flag=" $reload_flag" ;; 8253esac 8254reload_cmds='$LD$reload_flag -o $output$reload_objs' 8255case $host_os in 8256 cygwin* | mingw* | pw32* | cegcc*) 8257 if test yes != "$GCC"; then 8258 reload_cmds=false 8259 fi 8260 ;; 8261 darwin*) 8262 if test yes = "$GCC"; then 8263 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 8264 else 8265 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8266 fi 8267 ;; 8268esac 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278if test -n "$ac_tool_prefix"; then 8279 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8280set dummy ${ac_tool_prefix}objdump; ac_word=$2 8281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8282$as_echo_n "checking for $ac_word... " >&6; } 8283if ${ac_cv_prog_OBJDUMP+:} false; then : 8284 $as_echo_n "(cached) " >&6 8285else 8286 if test -n "$OBJDUMP"; then 8287 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8288else 8289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8290for as_dir in $PATH 8291do 8292 IFS=$as_save_IFS 8293 test -z "$as_dir" && as_dir=. 8294 for ac_exec_ext in '' $ac_executable_extensions; do 8295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8296 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8298 break 2 8299 fi 8300done 8301 done 8302IFS=$as_save_IFS 8303 8304fi 8305fi 8306OBJDUMP=$ac_cv_prog_OBJDUMP 8307if test -n "$OBJDUMP"; then 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8309$as_echo "$OBJDUMP" >&6; } 8310else 8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8312$as_echo "no" >&6; } 8313fi 8314 8315 8316fi 8317if test -z "$ac_cv_prog_OBJDUMP"; then 8318 ac_ct_OBJDUMP=$OBJDUMP 8319 # Extract the first word of "objdump", so it can be a program name with args. 8320set dummy objdump; ac_word=$2 8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8322$as_echo_n "checking for $ac_word... " >&6; } 8323if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8324 $as_echo_n "(cached) " >&6 8325else 8326 if test -n "$ac_ct_OBJDUMP"; then 8327 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8328else 8329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8330for as_dir in $PATH 8331do 8332 IFS=$as_save_IFS 8333 test -z "$as_dir" && as_dir=. 8334 for ac_exec_ext in '' $ac_executable_extensions; do 8335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8336 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8338 break 2 8339 fi 8340done 8341 done 8342IFS=$as_save_IFS 8343 8344fi 8345fi 8346ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8347if test -n "$ac_ct_OBJDUMP"; then 8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8349$as_echo "$ac_ct_OBJDUMP" >&6; } 8350else 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8352$as_echo "no" >&6; } 8353fi 8354 8355 if test "x$ac_ct_OBJDUMP" = x; then 8356 OBJDUMP="false" 8357 else 8358 case $cross_compiling:$ac_tool_warned in 8359yes:) 8360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8362ac_tool_warned=yes ;; 8363esac 8364 OBJDUMP=$ac_ct_OBJDUMP 8365 fi 8366else 8367 OBJDUMP="$ac_cv_prog_OBJDUMP" 8368fi 8369 8370test -z "$OBJDUMP" && OBJDUMP=objdump 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8381$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8382if ${lt_cv_deplibs_check_method+:} false; then : 8383 $as_echo_n "(cached) " >&6 8384else 8385 lt_cv_file_magic_cmd='$MAGIC_CMD' 8386lt_cv_file_magic_test_file= 8387lt_cv_deplibs_check_method='unknown' 8388# Need to set the preceding variable on all platforms that support 8389# interlibrary dependencies. 8390# 'none' -- dependencies not supported. 8391# 'unknown' -- same as none, but documents that we really don't know. 8392# 'pass_all' -- all dependencies passed with no checks. 8393# 'test_compile' -- check by making test program. 8394# 'file_magic [[regex]]' -- check by looking for files in library path 8395# that responds to the $file_magic_cmd with a given extended regex. 8396# If you have 'file' or equivalent on your system and you're not sure 8397# whether 'pass_all' will *always* work, you probably want this one. 8398 8399case $host_os in 8400aix[4-9]*) 8401 lt_cv_deplibs_check_method=pass_all 8402 ;; 8403 8404beos*) 8405 lt_cv_deplibs_check_method=pass_all 8406 ;; 8407 8408bsdi[45]*) 8409 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8410 lt_cv_file_magic_cmd='/usr/bin/file -L' 8411 lt_cv_file_magic_test_file=/shlib/libc.so 8412 ;; 8413 8414cygwin*) 8415 # func_win32_libid is a shell function defined in ltmain.sh 8416 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8417 lt_cv_file_magic_cmd='func_win32_libid' 8418 ;; 8419 8420mingw* | pw32*) 8421 # Base MSYS/MinGW do not provide the 'file' command needed by 8422 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8423 # unless we find 'file', for example because we are cross-compiling. 8424 if ( file / ) >/dev/null 2>&1; then 8425 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8426 lt_cv_file_magic_cmd='func_win32_libid' 8427 else 8428 # Keep this pattern in sync with the one in func_win32_libid. 8429 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8430 lt_cv_file_magic_cmd='$OBJDUMP -f' 8431 fi 8432 ;; 8433 8434cegcc*) 8435 # use the weaker test based on 'objdump'. See mingw*. 8436 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8437 lt_cv_file_magic_cmd='$OBJDUMP -f' 8438 ;; 8439 8440darwin* | rhapsody*) 8441 lt_cv_deplibs_check_method=pass_all 8442 ;; 8443 8444freebsd* | dragonfly*) 8445 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8446 case $host_cpu in 8447 i*86 ) 8448 # Not sure whether the presence of OpenBSD here was a mistake. 8449 # Let's accept both of them until this is cleared up. 8450 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8451 lt_cv_file_magic_cmd=/usr/bin/file 8452 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8453 ;; 8454 esac 8455 else 8456 lt_cv_deplibs_check_method=pass_all 8457 fi 8458 ;; 8459 8460haiku*) 8461 lt_cv_deplibs_check_method=pass_all 8462 ;; 8463 8464hpux10.20* | hpux11*) 8465 lt_cv_file_magic_cmd=/usr/bin/file 8466 case $host_cpu in 8467 ia64*) 8468 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8469 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8470 ;; 8471 hppa*64*) 8472 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]' 8473 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8474 ;; 8475 *) 8476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8477 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8478 ;; 8479 esac 8480 ;; 8481 8482interix[3-9]*) 8483 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8485 ;; 8486 8487irix5* | irix6* | nonstopux*) 8488 case $LD in 8489 *-32|*"-32 ") libmagic=32-bit;; 8490 *-n32|*"-n32 ") libmagic=N32;; 8491 *-64|*"-64 ") libmagic=64-bit;; 8492 *) libmagic=never-match;; 8493 esac 8494 lt_cv_deplibs_check_method=pass_all 8495 ;; 8496 8497# This must be glibc/ELF. 8498linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8499 lt_cv_deplibs_check_method=pass_all 8500 ;; 8501 8502netbsd* | netbsdelf*-gnu) 8503 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8505 else 8506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8507 fi 8508 ;; 8509 8510newos6*) 8511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8512 lt_cv_file_magic_cmd=/usr/bin/file 8513 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8514 ;; 8515 8516*nto* | *qnx*) 8517 lt_cv_deplibs_check_method=pass_all 8518 ;; 8519 8520openbsd* | bitrig*) 8521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8523 else 8524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8525 fi 8526 ;; 8527 8528osf3* | osf4* | osf5*) 8529 lt_cv_deplibs_check_method=pass_all 8530 ;; 8531 8532rdos*) 8533 lt_cv_deplibs_check_method=pass_all 8534 ;; 8535 8536solaris*) 8537 lt_cv_deplibs_check_method=pass_all 8538 ;; 8539 8540sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8541 lt_cv_deplibs_check_method=pass_all 8542 ;; 8543 8544sysv4 | sysv4.3*) 8545 case $host_vendor in 8546 motorola) 8547 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]' 8548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8549 ;; 8550 ncr) 8551 lt_cv_deplibs_check_method=pass_all 8552 ;; 8553 sequent) 8554 lt_cv_file_magic_cmd='/bin/file' 8555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8556 ;; 8557 sni) 8558 lt_cv_file_magic_cmd='/bin/file' 8559 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8560 lt_cv_file_magic_test_file=/lib/libc.so 8561 ;; 8562 siemens) 8563 lt_cv_deplibs_check_method=pass_all 8564 ;; 8565 pc) 8566 lt_cv_deplibs_check_method=pass_all 8567 ;; 8568 esac 8569 ;; 8570 8571tpf*) 8572 lt_cv_deplibs_check_method=pass_all 8573 ;; 8574os2*) 8575 lt_cv_deplibs_check_method=pass_all 8576 ;; 8577esac 8578 8579fi 8580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8581$as_echo "$lt_cv_deplibs_check_method" >&6; } 8582 8583file_magic_glob= 8584want_nocaseglob=no 8585if test "$build" = "$host"; then 8586 case $host_os in 8587 mingw* | pw32*) 8588 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8589 want_nocaseglob=yes 8590 else 8591 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8592 fi 8593 ;; 8594 esac 8595fi 8596 8597file_magic_cmd=$lt_cv_file_magic_cmd 8598deplibs_check_method=$lt_cv_deplibs_check_method 8599test -z "$deplibs_check_method" && deplibs_check_method=unknown 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622if test -n "$ac_tool_prefix"; then 8623 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8624set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8626$as_echo_n "checking for $ac_word... " >&6; } 8627if ${ac_cv_prog_DLLTOOL+:} false; then : 8628 $as_echo_n "(cached) " >&6 8629else 8630 if test -n "$DLLTOOL"; then 8631 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8632else 8633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8634for as_dir in $PATH 8635do 8636 IFS=$as_save_IFS 8637 test -z "$as_dir" && as_dir=. 8638 for ac_exec_ext in '' $ac_executable_extensions; do 8639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8640 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8642 break 2 8643 fi 8644done 8645 done 8646IFS=$as_save_IFS 8647 8648fi 8649fi 8650DLLTOOL=$ac_cv_prog_DLLTOOL 8651if test -n "$DLLTOOL"; then 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8653$as_echo "$DLLTOOL" >&6; } 8654else 8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8656$as_echo "no" >&6; } 8657fi 8658 8659 8660fi 8661if test -z "$ac_cv_prog_DLLTOOL"; then 8662 ac_ct_DLLTOOL=$DLLTOOL 8663 # Extract the first word of "dlltool", so it can be a program name with args. 8664set dummy dlltool; ac_word=$2 8665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8666$as_echo_n "checking for $ac_word... " >&6; } 8667if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8668 $as_echo_n "(cached) " >&6 8669else 8670 if test -n "$ac_ct_DLLTOOL"; then 8671 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8672else 8673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8674for as_dir in $PATH 8675do 8676 IFS=$as_save_IFS 8677 test -z "$as_dir" && as_dir=. 8678 for ac_exec_ext in '' $ac_executable_extensions; do 8679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8680 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8682 break 2 8683 fi 8684done 8685 done 8686IFS=$as_save_IFS 8687 8688fi 8689fi 8690ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8691if test -n "$ac_ct_DLLTOOL"; then 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8693$as_echo "$ac_ct_DLLTOOL" >&6; } 8694else 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8696$as_echo "no" >&6; } 8697fi 8698 8699 if test "x$ac_ct_DLLTOOL" = x; then 8700 DLLTOOL="false" 8701 else 8702 case $cross_compiling:$ac_tool_warned in 8703yes:) 8704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8706ac_tool_warned=yes ;; 8707esac 8708 DLLTOOL=$ac_ct_DLLTOOL 8709 fi 8710else 8711 DLLTOOL="$ac_cv_prog_DLLTOOL" 8712fi 8713 8714test -z "$DLLTOOL" && DLLTOOL=dlltool 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8726$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8727if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8728 $as_echo_n "(cached) " >&6 8729else 8730 lt_cv_sharedlib_from_linklib_cmd='unknown' 8731 8732case $host_os in 8733cygwin* | mingw* | pw32* | cegcc*) 8734 # two different shell functions defined in ltmain.sh; 8735 # decide which one to use based on capabilities of $DLLTOOL 8736 case `$DLLTOOL --help 2>&1` in 8737 *--identify-strict*) 8738 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8739 ;; 8740 *) 8741 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8742 ;; 8743 esac 8744 ;; 8745*) 8746 # fallback: assume linklib IS sharedlib 8747 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8748 ;; 8749esac 8750 8751fi 8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8753$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8754sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8755test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8756 8757 8758 8759 8760 8761 8762 8763if test -n "$ac_tool_prefix"; then 8764 for ac_prog in ar 8765 do 8766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8767set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8769$as_echo_n "checking for $ac_word... " >&6; } 8770if ${ac_cv_prog_AR+:} false; then : 8771 $as_echo_n "(cached) " >&6 8772else 8773 if test -n "$AR"; then 8774 ac_cv_prog_AR="$AR" # Let the user override the test. 8775else 8776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8777for as_dir in $PATH 8778do 8779 IFS=$as_save_IFS 8780 test -z "$as_dir" && as_dir=. 8781 for ac_exec_ext in '' $ac_executable_extensions; do 8782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8783 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8785 break 2 8786 fi 8787done 8788 done 8789IFS=$as_save_IFS 8790 8791fi 8792fi 8793AR=$ac_cv_prog_AR 8794if test -n "$AR"; then 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8796$as_echo "$AR" >&6; } 8797else 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8799$as_echo "no" >&6; } 8800fi 8801 8802 8803 test -n "$AR" && break 8804 done 8805fi 8806if test -z "$AR"; then 8807 ac_ct_AR=$AR 8808 for ac_prog in ar 8809do 8810 # Extract the first word of "$ac_prog", so it can be a program name with args. 8811set dummy $ac_prog; ac_word=$2 8812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8813$as_echo_n "checking for $ac_word... " >&6; } 8814if ${ac_cv_prog_ac_ct_AR+:} false; then : 8815 $as_echo_n "(cached) " >&6 8816else 8817 if test -n "$ac_ct_AR"; then 8818 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8819else 8820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8821for as_dir in $PATH 8822do 8823 IFS=$as_save_IFS 8824 test -z "$as_dir" && as_dir=. 8825 for ac_exec_ext in '' $ac_executable_extensions; do 8826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8827 ac_cv_prog_ac_ct_AR="$ac_prog" 8828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8829 break 2 8830 fi 8831done 8832 done 8833IFS=$as_save_IFS 8834 8835fi 8836fi 8837ac_ct_AR=$ac_cv_prog_ac_ct_AR 8838if test -n "$ac_ct_AR"; then 8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8840$as_echo "$ac_ct_AR" >&6; } 8841else 8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8843$as_echo "no" >&6; } 8844fi 8845 8846 8847 test -n "$ac_ct_AR" && break 8848done 8849 8850 if test "x$ac_ct_AR" = x; then 8851 AR="false" 8852 else 8853 case $cross_compiling:$ac_tool_warned in 8854yes:) 8855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8857ac_tool_warned=yes ;; 8858esac 8859 AR=$ac_ct_AR 8860 fi 8861fi 8862 8863: ${AR=ar} 8864: ${AR_FLAGS=cru} 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8877$as_echo_n "checking for archiver @FILE support... " >&6; } 8878if ${lt_cv_ar_at_file+:} false; then : 8879 $as_echo_n "(cached) " >&6 8880else 8881 lt_cv_ar_at_file=no 8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8883/* end confdefs.h. */ 8884 8885int 8886main () 8887{ 8888 8889 ; 8890 return 0; 8891} 8892_ACEOF 8893if ac_fn_c_try_compile "$LINENO"; then : 8894 echo conftest.$ac_objext > conftest.lst 8895 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8897 (eval $lt_ar_try) 2>&5 8898 ac_status=$? 8899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8900 test $ac_status = 0; } 8901 if test 0 -eq "$ac_status"; then 8902 # Ensure the archiver fails upon bogus file names. 8903 rm -f conftest.$ac_objext libconftest.a 8904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8905 (eval $lt_ar_try) 2>&5 8906 ac_status=$? 8907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8908 test $ac_status = 0; } 8909 if test 0 -ne "$ac_status"; then 8910 lt_cv_ar_at_file=@ 8911 fi 8912 fi 8913 rm -f conftest.* libconftest.a 8914 8915fi 8916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8917 8918fi 8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8920$as_echo "$lt_cv_ar_at_file" >&6; } 8921 8922if test no = "$lt_cv_ar_at_file"; then 8923 archiver_list_spec= 8924else 8925 archiver_list_spec=$lt_cv_ar_at_file 8926fi 8927 8928 8929 8930 8931 8932 8933 8934if test -n "$ac_tool_prefix"; then 8935 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8936set dummy ${ac_tool_prefix}strip; ac_word=$2 8937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8938$as_echo_n "checking for $ac_word... " >&6; } 8939if ${ac_cv_prog_STRIP+:} false; then : 8940 $as_echo_n "(cached) " >&6 8941else 8942 if test -n "$STRIP"; then 8943 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8944else 8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8946for as_dir in $PATH 8947do 8948 IFS=$as_save_IFS 8949 test -z "$as_dir" && as_dir=. 8950 for ac_exec_ext in '' $ac_executable_extensions; do 8951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8952 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8954 break 2 8955 fi 8956done 8957 done 8958IFS=$as_save_IFS 8959 8960fi 8961fi 8962STRIP=$ac_cv_prog_STRIP 8963if test -n "$STRIP"; then 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8965$as_echo "$STRIP" >&6; } 8966else 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8968$as_echo "no" >&6; } 8969fi 8970 8971 8972fi 8973if test -z "$ac_cv_prog_STRIP"; then 8974 ac_ct_STRIP=$STRIP 8975 # Extract the first word of "strip", so it can be a program name with args. 8976set dummy strip; ac_word=$2 8977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8978$as_echo_n "checking for $ac_word... " >&6; } 8979if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8980 $as_echo_n "(cached) " >&6 8981else 8982 if test -n "$ac_ct_STRIP"; then 8983 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8984else 8985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8986for as_dir in $PATH 8987do 8988 IFS=$as_save_IFS 8989 test -z "$as_dir" && as_dir=. 8990 for ac_exec_ext in '' $ac_executable_extensions; do 8991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8992 ac_cv_prog_ac_ct_STRIP="strip" 8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8994 break 2 8995 fi 8996done 8997 done 8998IFS=$as_save_IFS 8999 9000fi 9001fi 9002ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9003if test -n "$ac_ct_STRIP"; then 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9005$as_echo "$ac_ct_STRIP" >&6; } 9006else 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9008$as_echo "no" >&6; } 9009fi 9010 9011 if test "x$ac_ct_STRIP" = x; then 9012 STRIP=":" 9013 else 9014 case $cross_compiling:$ac_tool_warned in 9015yes:) 9016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9018ac_tool_warned=yes ;; 9019esac 9020 STRIP=$ac_ct_STRIP 9021 fi 9022else 9023 STRIP="$ac_cv_prog_STRIP" 9024fi 9025 9026test -z "$STRIP" && STRIP=: 9027 9028 9029 9030 9031 9032 9033if test -n "$ac_tool_prefix"; then 9034 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9035set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9037$as_echo_n "checking for $ac_word... " >&6; } 9038if ${ac_cv_prog_RANLIB+:} false; then : 9039 $as_echo_n "(cached) " >&6 9040else 9041 if test -n "$RANLIB"; then 9042 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9043else 9044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9045for as_dir in $PATH 9046do 9047 IFS=$as_save_IFS 9048 test -z "$as_dir" && as_dir=. 9049 for ac_exec_ext in '' $ac_executable_extensions; do 9050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9051 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9053 break 2 9054 fi 9055done 9056 done 9057IFS=$as_save_IFS 9058 9059fi 9060fi 9061RANLIB=$ac_cv_prog_RANLIB 9062if test -n "$RANLIB"; then 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9064$as_echo "$RANLIB" >&6; } 9065else 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9067$as_echo "no" >&6; } 9068fi 9069 9070 9071fi 9072if test -z "$ac_cv_prog_RANLIB"; then 9073 ac_ct_RANLIB=$RANLIB 9074 # Extract the first word of "ranlib", so it can be a program name with args. 9075set dummy ranlib; ac_word=$2 9076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9077$as_echo_n "checking for $ac_word... " >&6; } 9078if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9079 $as_echo_n "(cached) " >&6 9080else 9081 if test -n "$ac_ct_RANLIB"; then 9082 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9083else 9084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9085for as_dir in $PATH 9086do 9087 IFS=$as_save_IFS 9088 test -z "$as_dir" && as_dir=. 9089 for ac_exec_ext in '' $ac_executable_extensions; do 9090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9091 ac_cv_prog_ac_ct_RANLIB="ranlib" 9092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9093 break 2 9094 fi 9095done 9096 done 9097IFS=$as_save_IFS 9098 9099fi 9100fi 9101ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9102if test -n "$ac_ct_RANLIB"; then 9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9104$as_echo "$ac_ct_RANLIB" >&6; } 9105else 9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9107$as_echo "no" >&6; } 9108fi 9109 9110 if test "x$ac_ct_RANLIB" = x; then 9111 RANLIB=":" 9112 else 9113 case $cross_compiling:$ac_tool_warned in 9114yes:) 9115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9117ac_tool_warned=yes ;; 9118esac 9119 RANLIB=$ac_ct_RANLIB 9120 fi 9121else 9122 RANLIB="$ac_cv_prog_RANLIB" 9123fi 9124 9125test -z "$RANLIB" && RANLIB=: 9126 9127 9128 9129 9130 9131 9132# Determine commands to create old-style static archives. 9133old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9134old_postinstall_cmds='chmod 644 $oldlib' 9135old_postuninstall_cmds= 9136 9137if test -n "$RANLIB"; then 9138 case $host_os in 9139 bitrig* | openbsd*) 9140 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 9141 ;; 9142 *) 9143 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 9144 ;; 9145 esac 9146 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 9147fi 9148 9149case $host_os in 9150 darwin*) 9151 lock_old_archive_extraction=yes ;; 9152 *) 9153 lock_old_archive_extraction=no ;; 9154esac 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194# If no C compiler was specified, use CC. 9195LTCC=${LTCC-"$CC"} 9196 9197# If no C compiler flags were specified, use CFLAGS. 9198LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9199 9200# Allow CC to be a program name with arguments. 9201compiler=$CC 9202 9203 9204# Check for command to grab the raw symbol name followed by C symbol from nm. 9205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9206$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9207if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9208 $as_echo_n "(cached) " >&6 9209else 9210 9211# These are sane defaults that work on at least a few old systems. 9212# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9213 9214# Character class describing NM global symbol codes. 9215symcode='[BCDEGRST]' 9216 9217# Regexp to match symbols that can be accessed directly from C. 9218sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9219 9220# Define system-specific variables. 9221case $host_os in 9222aix*) 9223 symcode='[BCDT]' 9224 ;; 9225cygwin* | mingw* | pw32* | cegcc*) 9226 symcode='[ABCDGISTW]' 9227 ;; 9228hpux*) 9229 if test ia64 = "$host_cpu"; then 9230 symcode='[ABCDEGRST]' 9231 fi 9232 ;; 9233irix* | nonstopux*) 9234 symcode='[BCDEGRST]' 9235 ;; 9236osf*) 9237 symcode='[BCDEGQRST]' 9238 ;; 9239solaris*) 9240 symcode='[BDRT]' 9241 ;; 9242sco3.2v5*) 9243 symcode='[DT]' 9244 ;; 9245sysv4.2uw2*) 9246 symcode='[DT]' 9247 ;; 9248sysv5* | sco5v6* | unixware* | OpenUNIX*) 9249 symcode='[ABDT]' 9250 ;; 9251sysv4) 9252 symcode='[DFNSTU]' 9253 ;; 9254esac 9255 9256# If we're using GNU nm, then use its standard symbol codes. 9257case `$NM -V 2>&1` in 9258*GNU* | *'with BFD'*) 9259 symcode='[ABCDGIRSTW]' ;; 9260esac 9261 9262if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9263 # Gets list of data symbols to import. 9264 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 9265 # Adjust the below global symbol transforms to fixup imported variables. 9266 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 9267 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 9268 lt_c_name_lib_hook="\ 9269 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 9270 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 9271else 9272 # Disable hooks by default. 9273 lt_cv_sys_global_symbol_to_import= 9274 lt_cdecl_hook= 9275 lt_c_name_hook= 9276 lt_c_name_lib_hook= 9277fi 9278 9279# Transform an extracted symbol line into a proper C declaration. 9280# Some systems (esp. on ia64) link data and code symbols differently, 9281# so use this general approach. 9282lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 9283$lt_cdecl_hook\ 9284" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 9285" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 9286 9287# Transform an extracted symbol line into symbol name and symbol address 9288lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 9289$lt_c_name_hook\ 9290" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9291" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 9292 9293# Transform an extracted symbol line into symbol name with lib prefix and 9294# symbol address. 9295lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 9296$lt_c_name_lib_hook\ 9297" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9298" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 9299" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 9300 9301# Handle CRLF in mingw tool chain 9302opt_cr= 9303case $build_os in 9304mingw*) 9305 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9306 ;; 9307esac 9308 9309# Try without a prefix underscore, then with it. 9310for ac_symprfx in "" "_"; do 9311 9312 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9313 symxfrm="\\1 $ac_symprfx\\2 \\2" 9314 9315 # Write the raw and C identifiers. 9316 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9317 # Fake it for dumpbin and say T for any non-static function, 9318 # D for any global variable and I for any imported variable. 9319 # Also find C++ and __fastcall symbols from MSVC++, 9320 # which start with @ or ?. 9321 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9322" {last_section=section; section=\$ 3};"\ 9323" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9324" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9325" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 9326" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 9327" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 9328" \$ 0!~/External *\|/{next};"\ 9329" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9330" {if(hide[section]) next};"\ 9331" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 9332" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 9333" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 9334" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 9335" ' prfx=^$ac_symprfx" 9336 else 9337 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9338 fi 9339 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9340 9341 # Check to see that the pipe works correctly. 9342 pipe_works=no 9343 9344 rm -f conftest* 9345 cat > conftest.$ac_ext <<_LT_EOF 9346#ifdef __cplusplus 9347extern "C" { 9348#endif 9349char nm_test_var; 9350void nm_test_func(void); 9351void nm_test_func(void){} 9352#ifdef __cplusplus 9353} 9354#endif 9355int main(){nm_test_var='a';nm_test_func();return(0);} 9356_LT_EOF 9357 9358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9359 (eval $ac_compile) 2>&5 9360 ac_status=$? 9361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9362 test $ac_status = 0; }; then 9363 # Now try to grab the symbols. 9364 nlist=conftest.nm 9365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9366 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9367 ac_status=$? 9368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9369 test $ac_status = 0; } && test -s "$nlist"; then 9370 # Try sorting and uniquifying the output. 9371 if sort "$nlist" | uniq > "$nlist"T; then 9372 mv -f "$nlist"T "$nlist" 9373 else 9374 rm -f "$nlist"T 9375 fi 9376 9377 # Make sure that we snagged all the symbols we need. 9378 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9379 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9380 cat <<_LT_EOF > conftest.$ac_ext 9381/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9382#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9383/* DATA imports from DLLs on WIN32 can't be const, because runtime 9384 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9385# define LT_DLSYM_CONST 9386#elif defined __osf__ 9387/* This system does not cope well with relocations in const data. */ 9388# define LT_DLSYM_CONST 9389#else 9390# define LT_DLSYM_CONST const 9391#endif 9392 9393#ifdef __cplusplus 9394extern "C" { 9395#endif 9396 9397_LT_EOF 9398 # Now generate the symbol file. 9399 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9400 9401 cat <<_LT_EOF >> conftest.$ac_ext 9402 9403/* The mapping between symbol names and symbols. */ 9404LT_DLSYM_CONST struct { 9405 const char *name; 9406 void *address; 9407} 9408lt__PROGRAM__LTX_preloaded_symbols[] = 9409{ 9410 { "@PROGRAM@", (void *) 0 }, 9411_LT_EOF 9412 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9413 cat <<\_LT_EOF >> conftest.$ac_ext 9414 {0, (void *) 0} 9415}; 9416 9417/* This works around a problem in FreeBSD linker */ 9418#ifdef FREEBSD_WORKAROUND 9419static const void *lt_preloaded_setup() { 9420 return lt__PROGRAM__LTX_preloaded_symbols; 9421} 9422#endif 9423 9424#ifdef __cplusplus 9425} 9426#endif 9427_LT_EOF 9428 # Now try linking the two files. 9429 mv conftest.$ac_objext conftstm.$ac_objext 9430 lt_globsym_save_LIBS=$LIBS 9431 lt_globsym_save_CFLAGS=$CFLAGS 9432 LIBS=conftstm.$ac_objext 9433 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9435 (eval $ac_link) 2>&5 9436 ac_status=$? 9437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9438 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9439 pipe_works=yes 9440 fi 9441 LIBS=$lt_globsym_save_LIBS 9442 CFLAGS=$lt_globsym_save_CFLAGS 9443 else 9444 echo "cannot find nm_test_func in $nlist" >&5 9445 fi 9446 else 9447 echo "cannot find nm_test_var in $nlist" >&5 9448 fi 9449 else 9450 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9451 fi 9452 else 9453 echo "$progname: failed program was:" >&5 9454 cat conftest.$ac_ext >&5 9455 fi 9456 rm -rf conftest* conftst* 9457 9458 # Do not use the global_symbol_pipe unless it works. 9459 if test yes = "$pipe_works"; then 9460 break 9461 else 9462 lt_cv_sys_global_symbol_pipe= 9463 fi 9464done 9465 9466fi 9467 9468if test -z "$lt_cv_sys_global_symbol_pipe"; then 9469 lt_cv_sys_global_symbol_to_cdecl= 9470fi 9471if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9473$as_echo "failed" >&6; } 9474else 9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9476$as_echo "ok" >&6; } 9477fi 9478 9479# Response file support. 9480if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9481 nm_file_list_spec='@' 9482elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9483 nm_file_list_spec='@' 9484fi 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9523$as_echo_n "checking for sysroot... " >&6; } 9524 9525# Check whether --with-sysroot was given. 9526if test "${with_sysroot+set}" = set; then : 9527 withval=$with_sysroot; 9528else 9529 with_sysroot=no 9530fi 9531 9532 9533lt_sysroot= 9534case $with_sysroot in #( 9535 yes) 9536 if test yes = "$GCC"; then 9537 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9538 fi 9539 ;; #( 9540 /*) 9541 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9542 ;; #( 9543 no|'') 9544 ;; #( 9545 *) 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9547$as_echo "$with_sysroot" >&6; } 9548 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9549 ;; 9550esac 9551 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9553$as_echo "${lt_sysroot:-no}" >&6; } 9554 9555 9556 9557 9558 9559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9560$as_echo_n "checking for a working dd... " >&6; } 9561if ${ac_cv_path_lt_DD+:} false; then : 9562 $as_echo_n "(cached) " >&6 9563else 9564 printf 0123456789abcdef0123456789abcdef >conftest.i 9565cat conftest.i conftest.i >conftest2.i 9566: ${lt_DD:=$DD} 9567if test -z "$lt_DD"; then 9568 ac_path_lt_DD_found=false 9569 # Loop through the user's path and test for each of PROGNAME-LIST 9570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9571for as_dir in $PATH 9572do 9573 IFS=$as_save_IFS 9574 test -z "$as_dir" && as_dir=. 9575 for ac_prog in dd; do 9576 for ac_exec_ext in '' $ac_executable_extensions; do 9577 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9578 as_fn_executable_p "$ac_path_lt_DD" || continue 9579if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9580 cmp -s conftest.i conftest.out \ 9581 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9582fi 9583 $ac_path_lt_DD_found && break 3 9584 done 9585 done 9586 done 9587IFS=$as_save_IFS 9588 if test -z "$ac_cv_path_lt_DD"; then 9589 : 9590 fi 9591else 9592 ac_cv_path_lt_DD=$lt_DD 9593fi 9594 9595rm -f conftest.i conftest2.i conftest.out 9596fi 9597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9598$as_echo "$ac_cv_path_lt_DD" >&6; } 9599 9600 9601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9602$as_echo_n "checking how to truncate binary pipes... " >&6; } 9603if ${lt_cv_truncate_bin+:} false; then : 9604 $as_echo_n "(cached) " >&6 9605else 9606 printf 0123456789abcdef0123456789abcdef >conftest.i 9607cat conftest.i conftest.i >conftest2.i 9608lt_cv_truncate_bin= 9609if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9610 cmp -s conftest.i conftest.out \ 9611 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9612fi 9613rm -f conftest.i conftest2.i conftest.out 9614test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9615fi 9616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9617$as_echo "$lt_cv_truncate_bin" >&6; } 9618 9619 9620 9621 9622 9623 9624 9625# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9626func_cc_basename () 9627{ 9628 for cc_temp in $*""; do 9629 case $cc_temp in 9630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9632 \-*) ;; 9633 *) break;; 9634 esac 9635 done 9636 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9637} 9638 9639# Check whether --enable-libtool-lock was given. 9640if test "${enable_libtool_lock+set}" = set; then : 9641 enableval=$enable_libtool_lock; 9642fi 9643 9644test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9645 9646# Some flags need to be propagated to the compiler or linker for good 9647# libtool support. 9648case $host in 9649ia64-*-hpux*) 9650 # Find out what ABI is being produced by ac_compile, and set mode 9651 # options accordingly. 9652 echo 'int i;' > conftest.$ac_ext 9653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9654 (eval $ac_compile) 2>&5 9655 ac_status=$? 9656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9657 test $ac_status = 0; }; then 9658 case `/usr/bin/file conftest.$ac_objext` in 9659 *ELF-32*) 9660 HPUX_IA64_MODE=32 9661 ;; 9662 *ELF-64*) 9663 HPUX_IA64_MODE=64 9664 ;; 9665 esac 9666 fi 9667 rm -rf conftest* 9668 ;; 9669*-*-irix6*) 9670 # Find out what ABI is being produced by ac_compile, and set linker 9671 # options accordingly. 9672 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9674 (eval $ac_compile) 2>&5 9675 ac_status=$? 9676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9677 test $ac_status = 0; }; then 9678 if test yes = "$lt_cv_prog_gnu_ld"; then 9679 case `/usr/bin/file conftest.$ac_objext` in 9680 *32-bit*) 9681 LD="${LD-ld} -melf32bsmip" 9682 ;; 9683 *N32*) 9684 LD="${LD-ld} -melf32bmipn32" 9685 ;; 9686 *64-bit*) 9687 LD="${LD-ld} -melf64bmip" 9688 ;; 9689 esac 9690 else 9691 case `/usr/bin/file conftest.$ac_objext` in 9692 *32-bit*) 9693 LD="${LD-ld} -32" 9694 ;; 9695 *N32*) 9696 LD="${LD-ld} -n32" 9697 ;; 9698 *64-bit*) 9699 LD="${LD-ld} -64" 9700 ;; 9701 esac 9702 fi 9703 fi 9704 rm -rf conftest* 9705 ;; 9706 9707mips64*-*linux*) 9708 # Find out what ABI is being produced by ac_compile, and set linker 9709 # options accordingly. 9710 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9712 (eval $ac_compile) 2>&5 9713 ac_status=$? 9714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9715 test $ac_status = 0; }; then 9716 emul=elf 9717 case `/usr/bin/file conftest.$ac_objext` in 9718 *32-bit*) 9719 emul="${emul}32" 9720 ;; 9721 *64-bit*) 9722 emul="${emul}64" 9723 ;; 9724 esac 9725 case `/usr/bin/file conftest.$ac_objext` in 9726 *MSB*) 9727 emul="${emul}btsmip" 9728 ;; 9729 *LSB*) 9730 emul="${emul}ltsmip" 9731 ;; 9732 esac 9733 case `/usr/bin/file conftest.$ac_objext` in 9734 *N32*) 9735 emul="${emul}n32" 9736 ;; 9737 esac 9738 LD="${LD-ld} -m $emul" 9739 fi 9740 rm -rf conftest* 9741 ;; 9742 9743x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9744s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9745 # Find out what ABI is being produced by ac_compile, and set linker 9746 # options accordingly. Note that the listed cases only cover the 9747 # situations where additional linker options are needed (such as when 9748 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9749 # vice versa); the common cases where no linker options are needed do 9750 # not appear in the list. 9751 echo 'int i;' > conftest.$ac_ext 9752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9753 (eval $ac_compile) 2>&5 9754 ac_status=$? 9755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9756 test $ac_status = 0; }; then 9757 case `/usr/bin/file conftest.o` in 9758 *32-bit*) 9759 case $host in 9760 x86_64-*kfreebsd*-gnu) 9761 LD="${LD-ld} -m elf_i386_fbsd" 9762 ;; 9763 x86_64-*linux*) 9764 case `/usr/bin/file conftest.o` in 9765 *x86-64*) 9766 LD="${LD-ld} -m elf32_x86_64" 9767 ;; 9768 *) 9769 LD="${LD-ld} -m elf_i386" 9770 ;; 9771 esac 9772 ;; 9773 powerpc64le-*linux*) 9774 LD="${LD-ld} -m elf32lppclinux" 9775 ;; 9776 powerpc64-*linux*) 9777 LD="${LD-ld} -m elf32ppclinux" 9778 ;; 9779 s390x-*linux*) 9780 LD="${LD-ld} -m elf_s390" 9781 ;; 9782 sparc64-*linux*) 9783 LD="${LD-ld} -m elf32_sparc" 9784 ;; 9785 esac 9786 ;; 9787 *64-bit*) 9788 case $host in 9789 x86_64-*kfreebsd*-gnu) 9790 LD="${LD-ld} -m elf_x86_64_fbsd" 9791 ;; 9792 x86_64-*linux*) 9793 LD="${LD-ld} -m elf_x86_64" 9794 ;; 9795 powerpcle-*linux*) 9796 LD="${LD-ld} -m elf64lppc" 9797 ;; 9798 powerpc-*linux*) 9799 LD="${LD-ld} -m elf64ppc" 9800 ;; 9801 s390*-*linux*|s390*-*tpf*) 9802 LD="${LD-ld} -m elf64_s390" 9803 ;; 9804 sparc*-*linux*) 9805 LD="${LD-ld} -m elf64_sparc" 9806 ;; 9807 esac 9808 ;; 9809 esac 9810 fi 9811 rm -rf conftest* 9812 ;; 9813 9814*-*-sco3.2v5*) 9815 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9816 SAVE_CFLAGS=$CFLAGS 9817 CFLAGS="$CFLAGS -belf" 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9819$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9820if ${lt_cv_cc_needs_belf+:} false; then : 9821 $as_echo_n "(cached) " >&6 9822else 9823 ac_ext=c 9824ac_cpp='$CPP $CPPFLAGS' 9825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9827ac_compiler_gnu=$ac_cv_c_compiler_gnu 9828 9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9830/* end confdefs.h. */ 9831 9832int 9833main () 9834{ 9835 9836 ; 9837 return 0; 9838} 9839_ACEOF 9840if ac_fn_c_try_link "$LINENO"; then : 9841 lt_cv_cc_needs_belf=yes 9842else 9843 lt_cv_cc_needs_belf=no 9844fi 9845rm -f core conftest.err conftest.$ac_objext \ 9846 conftest$ac_exeext conftest.$ac_ext 9847 ac_ext=c 9848ac_cpp='$CPP $CPPFLAGS' 9849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9851ac_compiler_gnu=$ac_cv_c_compiler_gnu 9852 9853fi 9854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9855$as_echo "$lt_cv_cc_needs_belf" >&6; } 9856 if test yes != "$lt_cv_cc_needs_belf"; then 9857 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9858 CFLAGS=$SAVE_CFLAGS 9859 fi 9860 ;; 9861*-*solaris*) 9862 # Find out what ABI is being produced by ac_compile, and set linker 9863 # options accordingly. 9864 echo 'int i;' > conftest.$ac_ext 9865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9866 (eval $ac_compile) 2>&5 9867 ac_status=$? 9868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9869 test $ac_status = 0; }; then 9870 case `/usr/bin/file conftest.o` in 9871 *64-bit*) 9872 case $lt_cv_prog_gnu_ld in 9873 yes*) 9874 case $host in 9875 i?86-*-solaris*|x86_64-*-solaris*) 9876 LD="${LD-ld} -m elf_x86_64" 9877 ;; 9878 sparc*-*-solaris*) 9879 LD="${LD-ld} -m elf64_sparc" 9880 ;; 9881 esac 9882 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9883 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9884 LD=${LD-ld}_sol2 9885 fi 9886 ;; 9887 *) 9888 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9889 LD="${LD-ld} -64" 9890 fi 9891 ;; 9892 esac 9893 ;; 9894 esac 9895 fi 9896 rm -rf conftest* 9897 ;; 9898esac 9899 9900need_locks=$enable_libtool_lock 9901 9902if test -n "$ac_tool_prefix"; then 9903 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9904set dummy ${ac_tool_prefix}mt; ac_word=$2 9905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9906$as_echo_n "checking for $ac_word... " >&6; } 9907if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9908 $as_echo_n "(cached) " >&6 9909else 9910 if test -n "$MANIFEST_TOOL"; then 9911 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9912else 9913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9914for as_dir in $PATH 9915do 9916 IFS=$as_save_IFS 9917 test -z "$as_dir" && as_dir=. 9918 for ac_exec_ext in '' $ac_executable_extensions; do 9919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9920 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9922 break 2 9923 fi 9924done 9925 done 9926IFS=$as_save_IFS 9927 9928fi 9929fi 9930MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9931if test -n "$MANIFEST_TOOL"; then 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9933$as_echo "$MANIFEST_TOOL" >&6; } 9934else 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9936$as_echo "no" >&6; } 9937fi 9938 9939 9940fi 9941if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9942 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9943 # Extract the first word of "mt", so it can be a program name with args. 9944set dummy mt; ac_word=$2 9945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9946$as_echo_n "checking for $ac_word... " >&6; } 9947if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9948 $as_echo_n "(cached) " >&6 9949else 9950 if test -n "$ac_ct_MANIFEST_TOOL"; then 9951 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9952else 9953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9954for as_dir in $PATH 9955do 9956 IFS=$as_save_IFS 9957 test -z "$as_dir" && as_dir=. 9958 for ac_exec_ext in '' $ac_executable_extensions; do 9959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9960 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9962 break 2 9963 fi 9964done 9965 done 9966IFS=$as_save_IFS 9967 9968fi 9969fi 9970ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9971if test -n "$ac_ct_MANIFEST_TOOL"; then 9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9973$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9974else 9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9976$as_echo "no" >&6; } 9977fi 9978 9979 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9980 MANIFEST_TOOL=":" 9981 else 9982 case $cross_compiling:$ac_tool_warned in 9983yes:) 9984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9986ac_tool_warned=yes ;; 9987esac 9988 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9989 fi 9990else 9991 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9992fi 9993 9994test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9996$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9997if ${lt_cv_path_mainfest_tool+:} false; then : 9998 $as_echo_n "(cached) " >&6 9999else 10000 lt_cv_path_mainfest_tool=no 10001 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10002 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10003 cat conftest.err >&5 10004 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10005 lt_cv_path_mainfest_tool=yes 10006 fi 10007 rm -f conftest* 10008fi 10009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10010$as_echo "$lt_cv_path_mainfest_tool" >&6; } 10011if test yes != "$lt_cv_path_mainfest_tool"; then 10012 MANIFEST_TOOL=: 10013fi 10014 10015 10016 10017 10018 10019 10020 case $host_os in 10021 rhapsody* | darwin*) 10022 if test -n "$ac_tool_prefix"; then 10023 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10024set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10026$as_echo_n "checking for $ac_word... " >&6; } 10027if ${ac_cv_prog_DSYMUTIL+:} false; then : 10028 $as_echo_n "(cached) " >&6 10029else 10030 if test -n "$DSYMUTIL"; then 10031 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10032else 10033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10034for as_dir in $PATH 10035do 10036 IFS=$as_save_IFS 10037 test -z "$as_dir" && as_dir=. 10038 for ac_exec_ext in '' $ac_executable_extensions; do 10039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10040 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10042 break 2 10043 fi 10044done 10045 done 10046IFS=$as_save_IFS 10047 10048fi 10049fi 10050DSYMUTIL=$ac_cv_prog_DSYMUTIL 10051if test -n "$DSYMUTIL"; then 10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10053$as_echo "$DSYMUTIL" >&6; } 10054else 10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10056$as_echo "no" >&6; } 10057fi 10058 10059 10060fi 10061if test -z "$ac_cv_prog_DSYMUTIL"; then 10062 ac_ct_DSYMUTIL=$DSYMUTIL 10063 # Extract the first word of "dsymutil", so it can be a program name with args. 10064set dummy dsymutil; ac_word=$2 10065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10066$as_echo_n "checking for $ac_word... " >&6; } 10067if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 10068 $as_echo_n "(cached) " >&6 10069else 10070 if test -n "$ac_ct_DSYMUTIL"; then 10071 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10072else 10073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10074for as_dir in $PATH 10075do 10076 IFS=$as_save_IFS 10077 test -z "$as_dir" && as_dir=. 10078 for ac_exec_ext in '' $ac_executable_extensions; do 10079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10080 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10082 break 2 10083 fi 10084done 10085 done 10086IFS=$as_save_IFS 10087 10088fi 10089fi 10090ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10091if test -n "$ac_ct_DSYMUTIL"; then 10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10093$as_echo "$ac_ct_DSYMUTIL" >&6; } 10094else 10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10096$as_echo "no" >&6; } 10097fi 10098 10099 if test "x$ac_ct_DSYMUTIL" = x; then 10100 DSYMUTIL=":" 10101 else 10102 case $cross_compiling:$ac_tool_warned in 10103yes:) 10104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10106ac_tool_warned=yes ;; 10107esac 10108 DSYMUTIL=$ac_ct_DSYMUTIL 10109 fi 10110else 10111 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10112fi 10113 10114 if test -n "$ac_tool_prefix"; then 10115 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10116set dummy ${ac_tool_prefix}nmedit; ac_word=$2 10117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10118$as_echo_n "checking for $ac_word... " >&6; } 10119if ${ac_cv_prog_NMEDIT+:} false; then : 10120 $as_echo_n "(cached) " >&6 10121else 10122 if test -n "$NMEDIT"; then 10123 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 10124else 10125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10126for as_dir in $PATH 10127do 10128 IFS=$as_save_IFS 10129 test -z "$as_dir" && as_dir=. 10130 for ac_exec_ext in '' $ac_executable_extensions; do 10131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10132 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 10133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10134 break 2 10135 fi 10136done 10137 done 10138IFS=$as_save_IFS 10139 10140fi 10141fi 10142NMEDIT=$ac_cv_prog_NMEDIT 10143if test -n "$NMEDIT"; then 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10145$as_echo "$NMEDIT" >&6; } 10146else 10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10148$as_echo "no" >&6; } 10149fi 10150 10151 10152fi 10153if test -z "$ac_cv_prog_NMEDIT"; then 10154 ac_ct_NMEDIT=$NMEDIT 10155 # Extract the first word of "nmedit", so it can be a program name with args. 10156set dummy nmedit; ac_word=$2 10157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10158$as_echo_n "checking for $ac_word... " >&6; } 10159if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 10160 $as_echo_n "(cached) " >&6 10161else 10162 if test -n "$ac_ct_NMEDIT"; then 10163 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10164else 10165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10166for as_dir in $PATH 10167do 10168 IFS=$as_save_IFS 10169 test -z "$as_dir" && as_dir=. 10170 for ac_exec_ext in '' $ac_executable_extensions; do 10171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10172 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10174 break 2 10175 fi 10176done 10177 done 10178IFS=$as_save_IFS 10179 10180fi 10181fi 10182ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10183if test -n "$ac_ct_NMEDIT"; then 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10185$as_echo "$ac_ct_NMEDIT" >&6; } 10186else 10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10188$as_echo "no" >&6; } 10189fi 10190 10191 if test "x$ac_ct_NMEDIT" = x; then 10192 NMEDIT=":" 10193 else 10194 case $cross_compiling:$ac_tool_warned in 10195yes:) 10196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10198ac_tool_warned=yes ;; 10199esac 10200 NMEDIT=$ac_ct_NMEDIT 10201 fi 10202else 10203 NMEDIT="$ac_cv_prog_NMEDIT" 10204fi 10205 10206 if test -n "$ac_tool_prefix"; then 10207 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10208set dummy ${ac_tool_prefix}lipo; ac_word=$2 10209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10210$as_echo_n "checking for $ac_word... " >&6; } 10211if ${ac_cv_prog_LIPO+:} false; then : 10212 $as_echo_n "(cached) " >&6 10213else 10214 if test -n "$LIPO"; then 10215 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10216else 10217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10218for as_dir in $PATH 10219do 10220 IFS=$as_save_IFS 10221 test -z "$as_dir" && as_dir=. 10222 for ac_exec_ext in '' $ac_executable_extensions; do 10223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10224 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10226 break 2 10227 fi 10228done 10229 done 10230IFS=$as_save_IFS 10231 10232fi 10233fi 10234LIPO=$ac_cv_prog_LIPO 10235if test -n "$LIPO"; then 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10237$as_echo "$LIPO" >&6; } 10238else 10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10240$as_echo "no" >&6; } 10241fi 10242 10243 10244fi 10245if test -z "$ac_cv_prog_LIPO"; then 10246 ac_ct_LIPO=$LIPO 10247 # Extract the first word of "lipo", so it can be a program name with args. 10248set dummy lipo; ac_word=$2 10249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10250$as_echo_n "checking for $ac_word... " >&6; } 10251if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10252 $as_echo_n "(cached) " >&6 10253else 10254 if test -n "$ac_ct_LIPO"; then 10255 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10256else 10257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10258for as_dir in $PATH 10259do 10260 IFS=$as_save_IFS 10261 test -z "$as_dir" && as_dir=. 10262 for ac_exec_ext in '' $ac_executable_extensions; do 10263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10264 ac_cv_prog_ac_ct_LIPO="lipo" 10265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10266 break 2 10267 fi 10268done 10269 done 10270IFS=$as_save_IFS 10271 10272fi 10273fi 10274ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10275if test -n "$ac_ct_LIPO"; then 10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10277$as_echo "$ac_ct_LIPO" >&6; } 10278else 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10280$as_echo "no" >&6; } 10281fi 10282 10283 if test "x$ac_ct_LIPO" = x; then 10284 LIPO=":" 10285 else 10286 case $cross_compiling:$ac_tool_warned in 10287yes:) 10288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10290ac_tool_warned=yes ;; 10291esac 10292 LIPO=$ac_ct_LIPO 10293 fi 10294else 10295 LIPO="$ac_cv_prog_LIPO" 10296fi 10297 10298 if test -n "$ac_tool_prefix"; then 10299 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10300set dummy ${ac_tool_prefix}otool; ac_word=$2 10301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10302$as_echo_n "checking for $ac_word... " >&6; } 10303if ${ac_cv_prog_OTOOL+:} false; then : 10304 $as_echo_n "(cached) " >&6 10305else 10306 if test -n "$OTOOL"; then 10307 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10308else 10309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10310for as_dir in $PATH 10311do 10312 IFS=$as_save_IFS 10313 test -z "$as_dir" && as_dir=. 10314 for ac_exec_ext in '' $ac_executable_extensions; do 10315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10316 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10318 break 2 10319 fi 10320done 10321 done 10322IFS=$as_save_IFS 10323 10324fi 10325fi 10326OTOOL=$ac_cv_prog_OTOOL 10327if test -n "$OTOOL"; then 10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10329$as_echo "$OTOOL" >&6; } 10330else 10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10332$as_echo "no" >&6; } 10333fi 10334 10335 10336fi 10337if test -z "$ac_cv_prog_OTOOL"; then 10338 ac_ct_OTOOL=$OTOOL 10339 # Extract the first word of "otool", so it can be a program name with args. 10340set dummy otool; ac_word=$2 10341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10342$as_echo_n "checking for $ac_word... " >&6; } 10343if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 10344 $as_echo_n "(cached) " >&6 10345else 10346 if test -n "$ac_ct_OTOOL"; then 10347 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10348else 10349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10350for as_dir in $PATH 10351do 10352 IFS=$as_save_IFS 10353 test -z "$as_dir" && as_dir=. 10354 for ac_exec_ext in '' $ac_executable_extensions; do 10355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10356 ac_cv_prog_ac_ct_OTOOL="otool" 10357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10358 break 2 10359 fi 10360done 10361 done 10362IFS=$as_save_IFS 10363 10364fi 10365fi 10366ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10367if test -n "$ac_ct_OTOOL"; then 10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10369$as_echo "$ac_ct_OTOOL" >&6; } 10370else 10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10372$as_echo "no" >&6; } 10373fi 10374 10375 if test "x$ac_ct_OTOOL" = x; then 10376 OTOOL=":" 10377 else 10378 case $cross_compiling:$ac_tool_warned in 10379yes:) 10380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10382ac_tool_warned=yes ;; 10383esac 10384 OTOOL=$ac_ct_OTOOL 10385 fi 10386else 10387 OTOOL="$ac_cv_prog_OTOOL" 10388fi 10389 10390 if test -n "$ac_tool_prefix"; then 10391 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10392set dummy ${ac_tool_prefix}otool64; ac_word=$2 10393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10394$as_echo_n "checking for $ac_word... " >&6; } 10395if ${ac_cv_prog_OTOOL64+:} false; then : 10396 $as_echo_n "(cached) " >&6 10397else 10398 if test -n "$OTOOL64"; then 10399 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10400else 10401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10402for as_dir in $PATH 10403do 10404 IFS=$as_save_IFS 10405 test -z "$as_dir" && as_dir=. 10406 for ac_exec_ext in '' $ac_executable_extensions; do 10407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10408 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10410 break 2 10411 fi 10412done 10413 done 10414IFS=$as_save_IFS 10415 10416fi 10417fi 10418OTOOL64=$ac_cv_prog_OTOOL64 10419if test -n "$OTOOL64"; then 10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10421$as_echo "$OTOOL64" >&6; } 10422else 10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10424$as_echo "no" >&6; } 10425fi 10426 10427 10428fi 10429if test -z "$ac_cv_prog_OTOOL64"; then 10430 ac_ct_OTOOL64=$OTOOL64 10431 # Extract the first word of "otool64", so it can be a program name with args. 10432set dummy otool64; ac_word=$2 10433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10434$as_echo_n "checking for $ac_word... " >&6; } 10435if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10436 $as_echo_n "(cached) " >&6 10437else 10438 if test -n "$ac_ct_OTOOL64"; then 10439 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10440else 10441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10442for as_dir in $PATH 10443do 10444 IFS=$as_save_IFS 10445 test -z "$as_dir" && as_dir=. 10446 for ac_exec_ext in '' $ac_executable_extensions; do 10447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10448 ac_cv_prog_ac_ct_OTOOL64="otool64" 10449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10450 break 2 10451 fi 10452done 10453 done 10454IFS=$as_save_IFS 10455 10456fi 10457fi 10458ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10459if test -n "$ac_ct_OTOOL64"; then 10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10461$as_echo "$ac_ct_OTOOL64" >&6; } 10462else 10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10464$as_echo "no" >&6; } 10465fi 10466 10467 if test "x$ac_ct_OTOOL64" = x; then 10468 OTOOL64=":" 10469 else 10470 case $cross_compiling:$ac_tool_warned in 10471yes:) 10472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10474ac_tool_warned=yes ;; 10475esac 10476 OTOOL64=$ac_ct_OTOOL64 10477 fi 10478else 10479 OTOOL64="$ac_cv_prog_OTOOL64" 10480fi 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10509$as_echo_n "checking for -single_module linker flag... " >&6; } 10510if ${lt_cv_apple_cc_single_mod+:} false; then : 10511 $as_echo_n "(cached) " >&6 10512else 10513 lt_cv_apple_cc_single_mod=no 10514 if test -z "$LT_MULTI_MODULE"; then 10515 # By default we will add the -single_module flag. You can override 10516 # by either setting the environment variable LT_MULTI_MODULE 10517 # non-empty at configure time, or by adding -multi_module to the 10518 # link flags. 10519 rm -rf libconftest.dylib* 10520 echo "int foo(void){return 1;}" > conftest.c 10521 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10522-dynamiclib -Wl,-single_module conftest.c" >&5 10523 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10524 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10525 _lt_result=$? 10526 # If there is a non-empty error log, and "single_module" 10527 # appears in it, assume the flag caused a linker warning 10528 if test -s conftest.err && $GREP single_module conftest.err; then 10529 cat conftest.err >&5 10530 # Otherwise, if the output was created with a 0 exit code from 10531 # the compiler, it worked. 10532 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10533 lt_cv_apple_cc_single_mod=yes 10534 else 10535 cat conftest.err >&5 10536 fi 10537 rm -rf libconftest.dylib* 10538 rm -f conftest.* 10539 fi 10540fi 10541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10542$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10543 10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10545$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10546if ${lt_cv_ld_exported_symbols_list+:} false; then : 10547 $as_echo_n "(cached) " >&6 10548else 10549 lt_cv_ld_exported_symbols_list=no 10550 save_LDFLAGS=$LDFLAGS 10551 echo "_main" > conftest.sym 10552 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10554/* end confdefs.h. */ 10555 10556int 10557main () 10558{ 10559 10560 ; 10561 return 0; 10562} 10563_ACEOF 10564if ac_fn_c_try_link "$LINENO"; then : 10565 lt_cv_ld_exported_symbols_list=yes 10566else 10567 lt_cv_ld_exported_symbols_list=no 10568fi 10569rm -f core conftest.err conftest.$ac_objext \ 10570 conftest$ac_exeext conftest.$ac_ext 10571 LDFLAGS=$save_LDFLAGS 10572 10573fi 10574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10575$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10576 10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10578$as_echo_n "checking for -force_load linker flag... " >&6; } 10579if ${lt_cv_ld_force_load+:} false; then : 10580 $as_echo_n "(cached) " >&6 10581else 10582 lt_cv_ld_force_load=no 10583 cat > conftest.c << _LT_EOF 10584int forced_loaded() { return 2;} 10585_LT_EOF 10586 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10587 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10588 echo "$AR cru libconftest.a conftest.o" >&5 10589 $AR cru libconftest.a conftest.o 2>&5 10590 echo "$RANLIB libconftest.a" >&5 10591 $RANLIB libconftest.a 2>&5 10592 cat > conftest.c << _LT_EOF 10593int main() { return 0;} 10594_LT_EOF 10595 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10596 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10597 _lt_result=$? 10598 if test -s conftest.err && $GREP force_load conftest.err; then 10599 cat conftest.err >&5 10600 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10601 lt_cv_ld_force_load=yes 10602 else 10603 cat conftest.err >&5 10604 fi 10605 rm -f conftest.err libconftest.a conftest conftest.c 10606 rm -rf conftest.dSYM 10607 10608fi 10609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10610$as_echo "$lt_cv_ld_force_load" >&6; } 10611 case $host_os in 10612 rhapsody* | darwin1.[012]) 10613 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10614 darwin1.*) 10615 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10616 darwin*) # darwin 5.x on 10617 # if running on 10.5 or later, the deployment target defaults 10618 # to the OS version, if on x86, and 10.4, the deployment 10619 # target defaults to 10.4. Don't you love it? 10620 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10621 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10622 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10623 10.[012][,.]*) 10624 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10625 10.*) 10626 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10627 esac 10628 ;; 10629 esac 10630 if test yes = "$lt_cv_apple_cc_single_mod"; then 10631 _lt_dar_single_mod='$single_module' 10632 fi 10633 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10634 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10635 else 10636 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10637 fi 10638 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10639 _lt_dsymutil='~$DSYMUTIL $lib || :' 10640 else 10641 _lt_dsymutil= 10642 fi 10643 ;; 10644 esac 10645 10646# func_munge_path_list VARIABLE PATH 10647# ----------------------------------- 10648# VARIABLE is name of variable containing _space_ separated list of 10649# directories to be munged by the contents of PATH, which is string 10650# having a format: 10651# "DIR[:DIR]:" 10652# string "DIR[ DIR]" will be prepended to VARIABLE 10653# ":DIR[:DIR]" 10654# string "DIR[ DIR]" will be appended to VARIABLE 10655# "DIRP[:DIRP]::[DIRA:]DIRA" 10656# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10657# "DIRA[ DIRA]" will be appended to VARIABLE 10658# "DIR[:DIR]" 10659# VARIABLE will be replaced by "DIR[ DIR]" 10660func_munge_path_list () 10661{ 10662 case x$2 in 10663 x) 10664 ;; 10665 *:) 10666 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10667 ;; 10668 x:*) 10669 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10670 ;; 10671 *::*) 10672 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10673 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10674 ;; 10675 *) 10676 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10677 ;; 10678 esac 10679} 10680 10681for ac_header in dlfcn.h 10682do : 10683 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10684" 10685if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10686 cat >>confdefs.h <<_ACEOF 10687#define HAVE_DLFCN_H 1 10688_ACEOF 10689 10690fi 10691 10692done 10693 10694 10695 10696 10697 10698# Set options 10699 10700 10701 10702 enable_dlopen=no 10703 10704 10705 enable_win32_dll=no 10706 10707 10708 # Check whether --enable-shared was given. 10709if test "${enable_shared+set}" = set; then : 10710 enableval=$enable_shared; p=${PACKAGE-default} 10711 case $enableval in 10712 yes) enable_shared=yes ;; 10713 no) enable_shared=no ;; 10714 *) 10715 enable_shared=no 10716 # Look at the argument we got. We use all the common list separators. 10717 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10718 for pkg in $enableval; do 10719 IFS=$lt_save_ifs 10720 if test "X$pkg" = "X$p"; then 10721 enable_shared=yes 10722 fi 10723 done 10724 IFS=$lt_save_ifs 10725 ;; 10726 esac 10727else 10728 enable_shared=yes 10729fi 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 # Check whether --enable-static was given. 10740if test "${enable_static+set}" = set; then : 10741 enableval=$enable_static; p=${PACKAGE-default} 10742 case $enableval in 10743 yes) enable_static=yes ;; 10744 no) enable_static=no ;; 10745 *) 10746 enable_static=no 10747 # Look at the argument we got. We use all the common list separators. 10748 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10749 for pkg in $enableval; do 10750 IFS=$lt_save_ifs 10751 if test "X$pkg" = "X$p"; then 10752 enable_static=yes 10753 fi 10754 done 10755 IFS=$lt_save_ifs 10756 ;; 10757 esac 10758else 10759 enable_static=yes 10760fi 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771# Check whether --with-pic was given. 10772if test "${with_pic+set}" = set; then : 10773 withval=$with_pic; lt_p=${PACKAGE-default} 10774 case $withval in 10775 yes|no) pic_mode=$withval ;; 10776 *) 10777 pic_mode=default 10778 # Look at the argument we got. We use all the common list separators. 10779 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10780 for lt_pkg in $withval; do 10781 IFS=$lt_save_ifs 10782 if test "X$lt_pkg" = "X$lt_p"; then 10783 pic_mode=yes 10784 fi 10785 done 10786 IFS=$lt_save_ifs 10787 ;; 10788 esac 10789else 10790 pic_mode=default 10791fi 10792 10793 10794 10795 10796 10797 10798 10799 10800 # Check whether --enable-fast-install was given. 10801if test "${enable_fast_install+set}" = set; then : 10802 enableval=$enable_fast_install; p=${PACKAGE-default} 10803 case $enableval in 10804 yes) enable_fast_install=yes ;; 10805 no) enable_fast_install=no ;; 10806 *) 10807 enable_fast_install=no 10808 # Look at the argument we got. We use all the common list separators. 10809 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10810 for pkg in $enableval; do 10811 IFS=$lt_save_ifs 10812 if test "X$pkg" = "X$p"; then 10813 enable_fast_install=yes 10814 fi 10815 done 10816 IFS=$lt_save_ifs 10817 ;; 10818 esac 10819else 10820 enable_fast_install=yes 10821fi 10822 10823 10824 10825 10826 10827 10828 10829 10830 shared_archive_member_spec= 10831case $host,$enable_shared in 10832power*-*-aix[5-9]*,yes) 10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10834$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 10835 10836# Check whether --with-aix-soname was given. 10837if test "${with_aix_soname+set}" = set; then : 10838 withval=$with_aix_soname; case $withval in 10839 aix|svr4|both) 10840 ;; 10841 *) 10842 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10843 ;; 10844 esac 10845 lt_cv_with_aix_soname=$with_aix_soname 10846else 10847 if ${lt_cv_with_aix_soname+:} false; then : 10848 $as_echo_n "(cached) " >&6 10849else 10850 lt_cv_with_aix_soname=aix 10851fi 10852 10853 with_aix_soname=$lt_cv_with_aix_soname 10854fi 10855 10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10857$as_echo "$with_aix_soname" >&6; } 10858 if test aix != "$with_aix_soname"; then 10859 # For the AIX way of multilib, we name the shared archive member 10860 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10861 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10862 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10863 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10864 if test 64 = "${OBJECT_MODE-32}"; then 10865 shared_archive_member_spec=shr_64 10866 else 10867 shared_archive_member_spec=shr 10868 fi 10869 fi 10870 ;; 10871*) 10872 with_aix_soname=aix 10873 ;; 10874esac 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885# This can be used to rebuild libtool when needed 10886LIBTOOL_DEPS=$ltmain 10887 10888# Always use our own libtool. 10889LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920test -z "$LN_S" && LN_S="ln -s" 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935if test -n "${ZSH_VERSION+set}"; then 10936 setopt NO_GLOB_SUBST 10937fi 10938 10939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10940$as_echo_n "checking for objdir... " >&6; } 10941if ${lt_cv_objdir+:} false; then : 10942 $as_echo_n "(cached) " >&6 10943else 10944 rm -f .libs 2>/dev/null 10945mkdir .libs 2>/dev/null 10946if test -d .libs; then 10947 lt_cv_objdir=.libs 10948else 10949 # MS-DOS does not allow filenames that begin with a dot. 10950 lt_cv_objdir=_libs 10951fi 10952rmdir .libs 2>/dev/null 10953fi 10954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10955$as_echo "$lt_cv_objdir" >&6; } 10956objdir=$lt_cv_objdir 10957 10958 10959 10960 10961 10962cat >>confdefs.h <<_ACEOF 10963#define LT_OBJDIR "$lt_cv_objdir/" 10964_ACEOF 10965 10966 10967 10968 10969case $host_os in 10970aix3*) 10971 # AIX sometimes has problems with the GCC collect2 program. For some 10972 # reason, if we set the COLLECT_NAMES environment variable, the problems 10973 # vanish in a puff of smoke. 10974 if test set != "${COLLECT_NAMES+set}"; then 10975 COLLECT_NAMES= 10976 export COLLECT_NAMES 10977 fi 10978 ;; 10979esac 10980 10981# Global variables: 10982ofile=libtool 10983can_build_shared=yes 10984 10985# All known linkers require a '.a' archive for static linking (except MSVC, 10986# which needs '.lib'). 10987libext=a 10988 10989with_gnu_ld=$lt_cv_prog_gnu_ld 10990 10991old_CC=$CC 10992old_CFLAGS=$CFLAGS 10993 10994# Set sane defaults for various variables 10995test -z "$CC" && CC=cc 10996test -z "$LTCC" && LTCC=$CC 10997test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10998test -z "$LD" && LD=ld 10999test -z "$ac_objext" && ac_objext=o 11000 11001func_cc_basename $compiler 11002cc_basename=$func_cc_basename_result 11003 11004 11005# Only perform the check for file, if the check method requires it 11006test -z "$MAGIC_CMD" && MAGIC_CMD=file 11007case $deplibs_check_method in 11008file_magic*) 11009 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11011$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11012if ${lt_cv_path_MAGIC_CMD+:} false; then : 11013 $as_echo_n "(cached) " >&6 11014else 11015 case $MAGIC_CMD in 11016[\\/*] | ?:[\\/]*) 11017 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11018 ;; 11019*) 11020 lt_save_MAGIC_CMD=$MAGIC_CMD 11021 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11022 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11023 for ac_dir in $ac_dummy; do 11024 IFS=$lt_save_ifs 11025 test -z "$ac_dir" && ac_dir=. 11026 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11027 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11028 if test -n "$file_magic_test_file"; then 11029 case $deplibs_check_method in 11030 "file_magic "*) 11031 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11032 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11033 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11034 $EGREP "$file_magic_regex" > /dev/null; then 11035 : 11036 else 11037 cat <<_LT_EOF 1>&2 11038 11039*** Warning: the command libtool uses to detect shared libraries, 11040*** $file_magic_cmd, produces output that libtool cannot recognize. 11041*** The result is that libtool may fail to recognize shared libraries 11042*** as such. This will affect the creation of libtool libraries that 11043*** depend on shared libraries, but programs linked with such libtool 11044*** libraries will work regardless of this problem. Nevertheless, you 11045*** may want to report the problem to your system manager and/or to 11046*** bug-libtool@gnu.org 11047 11048_LT_EOF 11049 fi ;; 11050 esac 11051 fi 11052 break 11053 fi 11054 done 11055 IFS=$lt_save_ifs 11056 MAGIC_CMD=$lt_save_MAGIC_CMD 11057 ;; 11058esac 11059fi 11060 11061MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11062if test -n "$MAGIC_CMD"; then 11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11064$as_echo "$MAGIC_CMD" >&6; } 11065else 11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11067$as_echo "no" >&6; } 11068fi 11069 11070 11071 11072 11073 11074if test -z "$lt_cv_path_MAGIC_CMD"; then 11075 if test -n "$ac_tool_prefix"; then 11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11077$as_echo_n "checking for file... " >&6; } 11078if ${lt_cv_path_MAGIC_CMD+:} false; then : 11079 $as_echo_n "(cached) " >&6 11080else 11081 case $MAGIC_CMD in 11082[\\/*] | ?:[\\/]*) 11083 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11084 ;; 11085*) 11086 lt_save_MAGIC_CMD=$MAGIC_CMD 11087 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11088 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11089 for ac_dir in $ac_dummy; do 11090 IFS=$lt_save_ifs 11091 test -z "$ac_dir" && ac_dir=. 11092 if test -f "$ac_dir/file"; then 11093 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11094 if test -n "$file_magic_test_file"; then 11095 case $deplibs_check_method in 11096 "file_magic "*) 11097 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11098 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11099 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11100 $EGREP "$file_magic_regex" > /dev/null; then 11101 : 11102 else 11103 cat <<_LT_EOF 1>&2 11104 11105*** Warning: the command libtool uses to detect shared libraries, 11106*** $file_magic_cmd, produces output that libtool cannot recognize. 11107*** The result is that libtool may fail to recognize shared libraries 11108*** as such. This will affect the creation of libtool libraries that 11109*** depend on shared libraries, but programs linked with such libtool 11110*** libraries will work regardless of this problem. Nevertheless, you 11111*** may want to report the problem to your system manager and/or to 11112*** bug-libtool@gnu.org 11113 11114_LT_EOF 11115 fi ;; 11116 esac 11117 fi 11118 break 11119 fi 11120 done 11121 IFS=$lt_save_ifs 11122 MAGIC_CMD=$lt_save_MAGIC_CMD 11123 ;; 11124esac 11125fi 11126 11127MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11128if test -n "$MAGIC_CMD"; then 11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11130$as_echo "$MAGIC_CMD" >&6; } 11131else 11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11133$as_echo "no" >&6; } 11134fi 11135 11136 11137 else 11138 MAGIC_CMD=: 11139 fi 11140fi 11141 11142 fi 11143 ;; 11144esac 11145 11146# Use C for the default configuration in the libtool script 11147 11148lt_save_CC=$CC 11149ac_ext=c 11150ac_cpp='$CPP $CPPFLAGS' 11151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11153ac_compiler_gnu=$ac_cv_c_compiler_gnu 11154 11155 11156# Source file extension for C test sources. 11157ac_ext=c 11158 11159# Object file extension for compiled C test sources. 11160objext=o 11161objext=$objext 11162 11163# Code to be used in simple compile tests 11164lt_simple_compile_test_code="int some_variable = 0;" 11165 11166# Code to be used in simple link tests 11167lt_simple_link_test_code='int main(){return(0);}' 11168 11169 11170 11171 11172 11173 11174 11175# If no C compiler was specified, use CC. 11176LTCC=${LTCC-"$CC"} 11177 11178# If no C compiler flags were specified, use CFLAGS. 11179LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11180 11181# Allow CC to be a program name with arguments. 11182compiler=$CC 11183 11184# Save the default compiler, since it gets overwritten when the other 11185# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11186compiler_DEFAULT=$CC 11187 11188# save warnings/boilerplate of simple test code 11189ac_outfile=conftest.$ac_objext 11190echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11191eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11192_lt_compiler_boilerplate=`cat conftest.err` 11193$RM conftest* 11194 11195ac_outfile=conftest.$ac_objext 11196echo "$lt_simple_link_test_code" >conftest.$ac_ext 11197eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11198_lt_linker_boilerplate=`cat conftest.err` 11199$RM -r conftest* 11200 11201 11202## CAVEAT EMPTOR: 11203## There is no encapsulation within the following macros, do not change 11204## the running order or otherwise move them around unless you know exactly 11205## what you are doing... 11206if test -n "$compiler"; then 11207 11208lt_prog_compiler_no_builtin_flag= 11209 11210if test yes = "$GCC"; then 11211 case $cc_basename in 11212 nvcc*) 11213 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11214 *) 11215 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11216 esac 11217 11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11219$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11220if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11221 $as_echo_n "(cached) " >&6 11222else 11223 lt_cv_prog_compiler_rtti_exceptions=no 11224 ac_outfile=conftest.$ac_objext 11225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11226 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 11227 # Insert the option either (1) after the last *FLAGS variable, or 11228 # (2) before a word containing "conftest.", or (3) at the end. 11229 # Note that $ac_compile itself does not contain backslashes and begins 11230 # with a dollar sign (not a hyphen), so the echo should work correctly. 11231 # The option is referenced via a variable to avoid confusing sed. 11232 lt_compile=`echo "$ac_compile" | $SED \ 11233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11235 -e 's:$: $lt_compiler_flag:'` 11236 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11237 (eval "$lt_compile" 2>conftest.err) 11238 ac_status=$? 11239 cat conftest.err >&5 11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11241 if (exit $ac_status) && test -s "$ac_outfile"; then 11242 # The compiler can only warn and ignore the option if not recognized 11243 # So say no if there are warnings other than the usual output. 11244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11246 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11247 lt_cv_prog_compiler_rtti_exceptions=yes 11248 fi 11249 fi 11250 $RM conftest* 11251 11252fi 11253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11254$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11255 11256if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 11257 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11258else 11259 : 11260fi 11261 11262fi 11263 11264 11265 11266 11267 11268 11269 lt_prog_compiler_wl= 11270lt_prog_compiler_pic= 11271lt_prog_compiler_static= 11272 11273 11274 if test yes = "$GCC"; then 11275 lt_prog_compiler_wl='-Wl,' 11276 lt_prog_compiler_static='-static' 11277 11278 case $host_os in 11279 aix*) 11280 # All AIX code is PIC. 11281 if test ia64 = "$host_cpu"; then 11282 # AIX 5 now supports IA64 processor 11283 lt_prog_compiler_static='-Bstatic' 11284 fi 11285 lt_prog_compiler_pic='-fPIC' 11286 ;; 11287 11288 amigaos*) 11289 case $host_cpu in 11290 powerpc) 11291 # see comment about AmigaOS4 .so support 11292 lt_prog_compiler_pic='-fPIC' 11293 ;; 11294 m68k) 11295 # FIXME: we need at least 68020 code to build shared libraries, but 11296 # adding the '-m68020' flag to GCC prevents building anything better, 11297 # like '-m68040'. 11298 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11299 ;; 11300 esac 11301 ;; 11302 11303 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11304 # PIC is the default for these OSes. 11305 ;; 11306 11307 mingw* | cygwin* | pw32* | os2* | cegcc*) 11308 # This hack is so that the source file can tell whether it is being 11309 # built for inclusion in a dll (and should export symbols for example). 11310 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11311 # (--disable-auto-import) libraries 11312 lt_prog_compiler_pic='-DDLL_EXPORT' 11313 case $host_os in 11314 os2*) 11315 lt_prog_compiler_static='$wl-static' 11316 ;; 11317 esac 11318 ;; 11319 11320 darwin* | rhapsody*) 11321 # PIC is the default on this platform 11322 # Common symbols not allowed in MH_DYLIB files 11323 lt_prog_compiler_pic='-fno-common' 11324 ;; 11325 11326 haiku*) 11327 # PIC is the default for Haiku. 11328 # The "-static" flag exists, but is broken. 11329 lt_prog_compiler_static= 11330 ;; 11331 11332 hpux*) 11333 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11334 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11335 # sets the default TLS model and affects inlining. 11336 case $host_cpu in 11337 hppa*64*) 11338 # +Z the default 11339 ;; 11340 *) 11341 lt_prog_compiler_pic='-fPIC' 11342 ;; 11343 esac 11344 ;; 11345 11346 interix[3-9]*) 11347 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11348 # Instead, we relocate shared libraries at runtime. 11349 ;; 11350 11351 msdosdjgpp*) 11352 # Just because we use GCC doesn't mean we suddenly get shared libraries 11353 # on systems that don't support them. 11354 lt_prog_compiler_can_build_shared=no 11355 enable_shared=no 11356 ;; 11357 11358 *nto* | *qnx*) 11359 # QNX uses GNU C++, but need to define -shared option too, otherwise 11360 # it will coredump. 11361 lt_prog_compiler_pic='-fPIC -shared' 11362 ;; 11363 11364 sysv4*MP*) 11365 if test -d /usr/nec; then 11366 lt_prog_compiler_pic=-Kconform_pic 11367 fi 11368 ;; 11369 11370 *) 11371 lt_prog_compiler_pic='-fPIC' 11372 ;; 11373 esac 11374 11375 case $cc_basename in 11376 nvcc*) # Cuda Compiler Driver 2.2 11377 lt_prog_compiler_wl='-Xlinker ' 11378 if test -n "$lt_prog_compiler_pic"; then 11379 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11380 fi 11381 ;; 11382 esac 11383 else 11384 # PORTME Check for flag to pass linker flags through the system compiler. 11385 case $host_os in 11386 aix*) 11387 lt_prog_compiler_wl='-Wl,' 11388 if test ia64 = "$host_cpu"; then 11389 # AIX 5 now supports IA64 processor 11390 lt_prog_compiler_static='-Bstatic' 11391 else 11392 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11393 fi 11394 ;; 11395 11396 darwin* | rhapsody*) 11397 # PIC is the default on this platform 11398 # Common symbols not allowed in MH_DYLIB files 11399 lt_prog_compiler_pic='-fno-common' 11400 case $cc_basename in 11401 nagfor*) 11402 # NAG Fortran compiler 11403 lt_prog_compiler_wl='-Wl,-Wl,,' 11404 lt_prog_compiler_pic='-PIC' 11405 lt_prog_compiler_static='-Bstatic' 11406 ;; 11407 esac 11408 ;; 11409 11410 mingw* | cygwin* | pw32* | os2* | cegcc*) 11411 # This hack is so that the source file can tell whether it is being 11412 # built for inclusion in a dll (and should export symbols for example). 11413 lt_prog_compiler_pic='-DDLL_EXPORT' 11414 case $host_os in 11415 os2*) 11416 lt_prog_compiler_static='$wl-static' 11417 ;; 11418 esac 11419 ;; 11420 11421 hpux9* | hpux10* | hpux11*) 11422 lt_prog_compiler_wl='-Wl,' 11423 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11424 # not for PA HP-UX. 11425 case $host_cpu in 11426 hppa*64*|ia64*) 11427 # +Z the default 11428 ;; 11429 *) 11430 lt_prog_compiler_pic='+Z' 11431 ;; 11432 esac 11433 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11434 lt_prog_compiler_static='$wl-a ${wl}archive' 11435 ;; 11436 11437 irix5* | irix6* | nonstopux*) 11438 lt_prog_compiler_wl='-Wl,' 11439 # PIC (with -KPIC) is the default. 11440 lt_prog_compiler_static='-non_shared' 11441 ;; 11442 11443 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11444 case $cc_basename in 11445 # old Intel for x86_64, which still supported -KPIC. 11446 ecc*) 11447 lt_prog_compiler_wl='-Wl,' 11448 lt_prog_compiler_pic='-KPIC' 11449 lt_prog_compiler_static='-static' 11450 ;; 11451 # icc used to be incompatible with GCC. 11452 # ICC 10 doesn't accept -KPIC any more. 11453 icc* | ifort*) 11454 lt_prog_compiler_wl='-Wl,' 11455 lt_prog_compiler_pic='-fPIC' 11456 lt_prog_compiler_static='-static' 11457 ;; 11458 # Lahey Fortran 8.1. 11459 lf95*) 11460 lt_prog_compiler_wl='-Wl,' 11461 lt_prog_compiler_pic='--shared' 11462 lt_prog_compiler_static='--static' 11463 ;; 11464 nagfor*) 11465 # NAG Fortran compiler 11466 lt_prog_compiler_wl='-Wl,-Wl,,' 11467 lt_prog_compiler_pic='-PIC' 11468 lt_prog_compiler_static='-Bstatic' 11469 ;; 11470 tcc*) 11471 # Fabrice Bellard et al's Tiny C Compiler 11472 lt_prog_compiler_wl='-Wl,' 11473 lt_prog_compiler_pic='-fPIC' 11474 lt_prog_compiler_static='-static' 11475 ;; 11476 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11477 # Portland Group compilers (*not* the Pentium gcc compiler, 11478 # which looks to be a dead project) 11479 lt_prog_compiler_wl='-Wl,' 11480 lt_prog_compiler_pic='-fpic' 11481 lt_prog_compiler_static='-Bstatic' 11482 ;; 11483 ccc*) 11484 lt_prog_compiler_wl='-Wl,' 11485 # All Alpha code is PIC. 11486 lt_prog_compiler_static='-non_shared' 11487 ;; 11488 xl* | bgxl* | bgf* | mpixl*) 11489 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11490 lt_prog_compiler_wl='-Wl,' 11491 lt_prog_compiler_pic='-qpic' 11492 lt_prog_compiler_static='-qstaticlink' 11493 ;; 11494 *) 11495 case `$CC -V 2>&1 | sed 5q` in 11496 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11497 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11498 lt_prog_compiler_pic='-KPIC' 11499 lt_prog_compiler_static='-Bstatic' 11500 lt_prog_compiler_wl='' 11501 ;; 11502 *Sun\ F* | *Sun*Fortran*) 11503 lt_prog_compiler_pic='-KPIC' 11504 lt_prog_compiler_static='-Bstatic' 11505 lt_prog_compiler_wl='-Qoption ld ' 11506 ;; 11507 *Sun\ C*) 11508 # Sun C 5.9 11509 lt_prog_compiler_pic='-KPIC' 11510 lt_prog_compiler_static='-Bstatic' 11511 lt_prog_compiler_wl='-Wl,' 11512 ;; 11513 *Intel*\ [CF]*Compiler*) 11514 lt_prog_compiler_wl='-Wl,' 11515 lt_prog_compiler_pic='-fPIC' 11516 lt_prog_compiler_static='-static' 11517 ;; 11518 *Portland\ Group*) 11519 lt_prog_compiler_wl='-Wl,' 11520 lt_prog_compiler_pic='-fpic' 11521 lt_prog_compiler_static='-Bstatic' 11522 ;; 11523 esac 11524 ;; 11525 esac 11526 ;; 11527 11528 newsos6) 11529 lt_prog_compiler_pic='-KPIC' 11530 lt_prog_compiler_static='-Bstatic' 11531 ;; 11532 11533 *nto* | *qnx*) 11534 # QNX uses GNU C++, but need to define -shared option too, otherwise 11535 # it will coredump. 11536 lt_prog_compiler_pic='-fPIC -shared' 11537 ;; 11538 11539 osf3* | osf4* | osf5*) 11540 lt_prog_compiler_wl='-Wl,' 11541 # All OSF/1 code is PIC. 11542 lt_prog_compiler_static='-non_shared' 11543 ;; 11544 11545 rdos*) 11546 lt_prog_compiler_static='-non_shared' 11547 ;; 11548 11549 solaris*) 11550 lt_prog_compiler_pic='-KPIC' 11551 lt_prog_compiler_static='-Bstatic' 11552 case $cc_basename in 11553 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11554 lt_prog_compiler_wl='-Qoption ld ';; 11555 *) 11556 lt_prog_compiler_wl='-Wl,';; 11557 esac 11558 ;; 11559 11560 sunos4*) 11561 lt_prog_compiler_wl='-Qoption ld ' 11562 lt_prog_compiler_pic='-PIC' 11563 lt_prog_compiler_static='-Bstatic' 11564 ;; 11565 11566 sysv4 | sysv4.2uw2* | sysv4.3*) 11567 lt_prog_compiler_wl='-Wl,' 11568 lt_prog_compiler_pic='-KPIC' 11569 lt_prog_compiler_static='-Bstatic' 11570 ;; 11571 11572 sysv4*MP*) 11573 if test -d /usr/nec; then 11574 lt_prog_compiler_pic='-Kconform_pic' 11575 lt_prog_compiler_static='-Bstatic' 11576 fi 11577 ;; 11578 11579 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11580 lt_prog_compiler_wl='-Wl,' 11581 lt_prog_compiler_pic='-KPIC' 11582 lt_prog_compiler_static='-Bstatic' 11583 ;; 11584 11585 unicos*) 11586 lt_prog_compiler_wl='-Wl,' 11587 lt_prog_compiler_can_build_shared=no 11588 ;; 11589 11590 uts4*) 11591 lt_prog_compiler_pic='-pic' 11592 lt_prog_compiler_static='-Bstatic' 11593 ;; 11594 11595 *) 11596 lt_prog_compiler_can_build_shared=no 11597 ;; 11598 esac 11599 fi 11600 11601case $host_os in 11602 # For platforms that do not support PIC, -DPIC is meaningless: 11603 *djgpp*) 11604 lt_prog_compiler_pic= 11605 ;; 11606 *) 11607 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11608 ;; 11609esac 11610 11611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11612$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11613if ${lt_cv_prog_compiler_pic+:} false; then : 11614 $as_echo_n "(cached) " >&6 11615else 11616 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11617fi 11618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11619$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11620lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11621 11622# 11623# Check to make sure the PIC flag actually works. 11624# 11625if test -n "$lt_prog_compiler_pic"; then 11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11627$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11628if ${lt_cv_prog_compiler_pic_works+:} false; then : 11629 $as_echo_n "(cached) " >&6 11630else 11631 lt_cv_prog_compiler_pic_works=no 11632 ac_outfile=conftest.$ac_objext 11633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11634 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11635 # Insert the option either (1) after the last *FLAGS variable, or 11636 # (2) before a word containing "conftest.", or (3) at the end. 11637 # Note that $ac_compile itself does not contain backslashes and begins 11638 # with a dollar sign (not a hyphen), so the echo should work correctly. 11639 # The option is referenced via a variable to avoid confusing sed. 11640 lt_compile=`echo "$ac_compile" | $SED \ 11641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11643 -e 's:$: $lt_compiler_flag:'` 11644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11645 (eval "$lt_compile" 2>conftest.err) 11646 ac_status=$? 11647 cat conftest.err >&5 11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11649 if (exit $ac_status) && test -s "$ac_outfile"; then 11650 # The compiler can only warn and ignore the option if not recognized 11651 # So say no if there are warnings other than the usual output. 11652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11655 lt_cv_prog_compiler_pic_works=yes 11656 fi 11657 fi 11658 $RM conftest* 11659 11660fi 11661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11662$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11663 11664if test yes = "$lt_cv_prog_compiler_pic_works"; then 11665 case $lt_prog_compiler_pic in 11666 "" | " "*) ;; 11667 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11668 esac 11669else 11670 lt_prog_compiler_pic= 11671 lt_prog_compiler_can_build_shared=no 11672fi 11673 11674fi 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686# 11687# Check to make sure the static flag actually works. 11688# 11689wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11691$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11692if ${lt_cv_prog_compiler_static_works+:} false; then : 11693 $as_echo_n "(cached) " >&6 11694else 11695 lt_cv_prog_compiler_static_works=no 11696 save_LDFLAGS=$LDFLAGS 11697 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11698 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11699 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11700 # The linker can only warn and ignore the option if not recognized 11701 # So say no if there are warnings 11702 if test -s conftest.err; then 11703 # Append any errors to the config.log. 11704 cat conftest.err 1>&5 11705 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11707 if diff conftest.exp conftest.er2 >/dev/null; then 11708 lt_cv_prog_compiler_static_works=yes 11709 fi 11710 else 11711 lt_cv_prog_compiler_static_works=yes 11712 fi 11713 fi 11714 $RM -r conftest* 11715 LDFLAGS=$save_LDFLAGS 11716 11717fi 11718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11719$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11720 11721if test yes = "$lt_cv_prog_compiler_static_works"; then 11722 : 11723else 11724 lt_prog_compiler_static= 11725fi 11726 11727 11728 11729 11730 11731 11732 11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11734$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11735if ${lt_cv_prog_compiler_c_o+:} false; then : 11736 $as_echo_n "(cached) " >&6 11737else 11738 lt_cv_prog_compiler_c_o=no 11739 $RM -r conftest 2>/dev/null 11740 mkdir conftest 11741 cd conftest 11742 mkdir out 11743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11744 11745 lt_compiler_flag="-o out/conftest2.$ac_objext" 11746 # Insert the option either (1) after the last *FLAGS variable, or 11747 # (2) before a word containing "conftest.", or (3) at the end. 11748 # Note that $ac_compile itself does not contain backslashes and begins 11749 # with a dollar sign (not a hyphen), so the echo should work correctly. 11750 lt_compile=`echo "$ac_compile" | $SED \ 11751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11753 -e 's:$: $lt_compiler_flag:'` 11754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11755 (eval "$lt_compile" 2>out/conftest.err) 11756 ac_status=$? 11757 cat out/conftest.err >&5 11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11759 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11760 then 11761 # The compiler can only warn and ignore the option if not recognized 11762 # So say no if there are warnings 11763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11766 lt_cv_prog_compiler_c_o=yes 11767 fi 11768 fi 11769 chmod u+w . 2>&5 11770 $RM conftest* 11771 # SGI C++ compiler will create directory out/ii_files/ for 11772 # template instantiation 11773 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11774 $RM out/* && rmdir out 11775 cd .. 11776 $RM -r conftest 11777 $RM conftest* 11778 11779fi 11780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11781$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11782 11783 11784 11785 11786 11787 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11789$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11790if ${lt_cv_prog_compiler_c_o+:} false; then : 11791 $as_echo_n "(cached) " >&6 11792else 11793 lt_cv_prog_compiler_c_o=no 11794 $RM -r conftest 2>/dev/null 11795 mkdir conftest 11796 cd conftest 11797 mkdir out 11798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11799 11800 lt_compiler_flag="-o out/conftest2.$ac_objext" 11801 # Insert the option either (1) after the last *FLAGS variable, or 11802 # (2) before a word containing "conftest.", or (3) at the end. 11803 # Note that $ac_compile itself does not contain backslashes and begins 11804 # with a dollar sign (not a hyphen), so the echo should work correctly. 11805 lt_compile=`echo "$ac_compile" | $SED \ 11806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11808 -e 's:$: $lt_compiler_flag:'` 11809 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11810 (eval "$lt_compile" 2>out/conftest.err) 11811 ac_status=$? 11812 cat out/conftest.err >&5 11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11814 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11815 then 11816 # The compiler can only warn and ignore the option if not recognized 11817 # So say no if there are warnings 11818 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11819 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11820 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11821 lt_cv_prog_compiler_c_o=yes 11822 fi 11823 fi 11824 chmod u+w . 2>&5 11825 $RM conftest* 11826 # SGI C++ compiler will create directory out/ii_files/ for 11827 # template instantiation 11828 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11829 $RM out/* && rmdir out 11830 cd .. 11831 $RM -r conftest 11832 $RM conftest* 11833 11834fi 11835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11836$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11837 11838 11839 11840 11841hard_links=nottested 11842if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11843 # do not overwrite the value of need_locks provided by the user 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11845$as_echo_n "checking if we can lock with hard links... " >&6; } 11846 hard_links=yes 11847 $RM conftest* 11848 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11849 touch conftest.a 11850 ln conftest.a conftest.b 2>&5 || hard_links=no 11851 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11853$as_echo "$hard_links" >&6; } 11854 if test no = "$hard_links"; then 11855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11856$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11857 need_locks=warn 11858 fi 11859else 11860 need_locks=no 11861fi 11862 11863 11864 11865 11866 11867 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11869$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11870 11871 runpath_var= 11872 allow_undefined_flag= 11873 always_export_symbols=no 11874 archive_cmds= 11875 archive_expsym_cmds= 11876 compiler_needs_object=no 11877 enable_shared_with_static_runtimes=no 11878 export_dynamic_flag_spec= 11879 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11880 hardcode_automatic=no 11881 hardcode_direct=no 11882 hardcode_direct_absolute=no 11883 hardcode_libdir_flag_spec= 11884 hardcode_libdir_separator= 11885 hardcode_minus_L=no 11886 hardcode_shlibpath_var=unsupported 11887 inherit_rpath=no 11888 link_all_deplibs=unknown 11889 module_cmds= 11890 module_expsym_cmds= 11891 old_archive_from_new_cmds= 11892 old_archive_from_expsyms_cmds= 11893 thread_safe_flag_spec= 11894 whole_archive_flag_spec= 11895 # include_expsyms should be a list of space-separated symbols to be *always* 11896 # included in the symbol list 11897 include_expsyms= 11898 # exclude_expsyms can be an extended regexp of symbols to exclude 11899 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11900 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11901 # as well as any symbol that contains 'd'. 11902 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11903 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11904 # platforms (ab)use it in PIC code, but their linkers get confused if 11905 # the symbol is explicitly referenced. Since portable code cannot 11906 # rely on this symbol name, it's probably fine to never include it in 11907 # preloaded symbol tables. 11908 # Exclude shared library initialization/finalization symbols. 11909 extract_expsyms_cmds= 11910 11911 case $host_os in 11912 cygwin* | mingw* | pw32* | cegcc*) 11913 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11914 # When not using gcc, we currently assume that we are using 11915 # Microsoft Visual C++. 11916 if test yes != "$GCC"; then 11917 with_gnu_ld=no 11918 fi 11919 ;; 11920 interix*) 11921 # we just hope/assume this is gcc and not c89 (= MSVC++) 11922 with_gnu_ld=yes 11923 ;; 11924 openbsd* | bitrig*) 11925 with_gnu_ld=no 11926 ;; 11927 linux* | k*bsd*-gnu | gnu*) 11928 link_all_deplibs=no 11929 ;; 11930 esac 11931 11932 ld_shlibs=yes 11933 11934 # On some targets, GNU ld is compatible enough with the native linker 11935 # that we're better off using the native interface for both. 11936 lt_use_gnu_ld_interface=no 11937 if test yes = "$with_gnu_ld"; then 11938 case $host_os in 11939 aix*) 11940 # The AIX port of GNU ld has always aspired to compatibility 11941 # with the native linker. However, as the warning in the GNU ld 11942 # block says, versions before 2.19.5* couldn't really create working 11943 # shared libraries, regardless of the interface used. 11944 case `$LD -v 2>&1` in 11945 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11946 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11947 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11948 *) 11949 lt_use_gnu_ld_interface=yes 11950 ;; 11951 esac 11952 ;; 11953 *) 11954 lt_use_gnu_ld_interface=yes 11955 ;; 11956 esac 11957 fi 11958 11959 if test yes = "$lt_use_gnu_ld_interface"; then 11960 # If archive_cmds runs LD, not CC, wlarc should be empty 11961 wlarc='$wl' 11962 11963 # Set some defaults for GNU ld with shared library support. These 11964 # are reset later if shared libraries are not supported. Putting them 11965 # here allows them to be overridden if necessary. 11966 runpath_var=LD_RUN_PATH 11967 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11968 export_dynamic_flag_spec='$wl--export-dynamic' 11969 # ancient GNU ld didn't support --whole-archive et. al. 11970 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11971 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11972 else 11973 whole_archive_flag_spec= 11974 fi 11975 supports_anon_versioning=no 11976 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 11977 *GNU\ gold*) supports_anon_versioning=yes ;; 11978 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11979 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11980 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11981 *\ 2.11.*) ;; # other 2.11 versions 11982 *) supports_anon_versioning=yes ;; 11983 esac 11984 11985 # See if GNU ld supports shared libraries. 11986 case $host_os in 11987 aix[3-9]*) 11988 # On AIX/PPC, the GNU linker is very broken 11989 if test ia64 != "$host_cpu"; then 11990 ld_shlibs=no 11991 cat <<_LT_EOF 1>&2 11992 11993*** Warning: the GNU linker, at least up to release 2.19, is reported 11994*** to be unable to reliably create shared libraries on AIX. 11995*** Therefore, libtool is disabling shared libraries support. If you 11996*** really care for shared libraries, you may want to install binutils 11997*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11998*** You will then need to restart the configuration process. 11999 12000_LT_EOF 12001 fi 12002 ;; 12003 12004 amigaos*) 12005 case $host_cpu in 12006 powerpc) 12007 # see comment about AmigaOS4 .so support 12008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12009 archive_expsym_cmds='' 12010 ;; 12011 m68k) 12012 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)' 12013 hardcode_libdir_flag_spec='-L$libdir' 12014 hardcode_minus_L=yes 12015 ;; 12016 esac 12017 ;; 12018 12019 beos*) 12020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12021 allow_undefined_flag=unsupported 12022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12023 # support --undefined. This deserves some investigation. FIXME 12024 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12025 else 12026 ld_shlibs=no 12027 fi 12028 ;; 12029 12030 cygwin* | mingw* | pw32* | cegcc*) 12031 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12032 # as there is no search path for DLLs. 12033 hardcode_libdir_flag_spec='-L$libdir' 12034 export_dynamic_flag_spec='$wl--export-all-symbols' 12035 allow_undefined_flag=unsupported 12036 always_export_symbols=no 12037 enable_shared_with_static_runtimes=yes 12038 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' 12039 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12040 12041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12043 # If the export-symbols file already is a .def file, use it as 12044 # is; otherwise, prepend EXPORTS... 12045 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12046 cp $export_symbols $output_objdir/$soname.def; 12047 else 12048 echo EXPORTS > $output_objdir/$soname.def; 12049 cat $export_symbols >> $output_objdir/$soname.def; 12050 fi~ 12051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12052 else 12053 ld_shlibs=no 12054 fi 12055 ;; 12056 12057 haiku*) 12058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12059 link_all_deplibs=yes 12060 ;; 12061 12062 os2*) 12063 hardcode_libdir_flag_spec='-L$libdir' 12064 hardcode_minus_L=yes 12065 allow_undefined_flag=unsupported 12066 shrext_cmds=.dll 12067 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12068 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12069 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12070 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12071 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12072 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12073 emximp -o $lib $output_objdir/$libname.def' 12074 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12075 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12076 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12077 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12078 prefix_cmds="$SED"~ 12079 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12080 prefix_cmds="$prefix_cmds -e 1d"; 12081 fi~ 12082 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12083 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12084 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12085 emximp -o $lib $output_objdir/$libname.def' 12086 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12087 enable_shared_with_static_runtimes=yes 12088 ;; 12089 12090 interix[3-9]*) 12091 hardcode_direct=no 12092 hardcode_shlibpath_var=no 12093 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12094 export_dynamic_flag_spec='$wl-E' 12095 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12096 # Instead, shared libraries are loaded at an image base (0x10000000 by 12097 # default) and relocated if they conflict, which is a slow very memory 12098 # consuming and fragmenting process. To avoid this, we pick a random, 12099 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12100 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12101 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12102 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' 12103 ;; 12104 12105 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12106 tmp_diet=no 12107 if test linux-dietlibc = "$host_os"; then 12108 case $cc_basename in 12109 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12110 esac 12111 fi 12112 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12113 && test no = "$tmp_diet" 12114 then 12115 tmp_addflag=' $pic_flag' 12116 tmp_sharedflag='-shared' 12117 case $cc_basename,$host_cpu in 12118 pgcc*) # Portland Group C compiler 12119 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' 12120 tmp_addflag=' $pic_flag' 12121 ;; 12122 pgf77* | pgf90* | pgf95* | pgfortran*) 12123 # Portland Group f77 and f90 compilers 12124 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' 12125 tmp_addflag=' $pic_flag -Mnomain' ;; 12126 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12127 tmp_addflag=' -i_dynamic' ;; 12128 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12129 tmp_addflag=' -i_dynamic -nofor_main' ;; 12130 ifc* | ifort*) # Intel Fortran compiler 12131 tmp_addflag=' -nofor_main' ;; 12132 lf95*) # Lahey Fortran 8.1 12133 whole_archive_flag_spec= 12134 tmp_sharedflag='--shared' ;; 12135 nagfor*) # NAGFOR 5.3 12136 tmp_sharedflag='-Wl,-shared' ;; 12137 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12138 tmp_sharedflag='-qmkshrobj' 12139 tmp_addflag= ;; 12140 nvcc*) # Cuda Compiler Driver 2.2 12141 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' 12142 compiler_needs_object=yes 12143 ;; 12144 esac 12145 case `$CC -V 2>&1 | sed 5q` in 12146 *Sun\ C*) # Sun C 5.9 12147 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' 12148 compiler_needs_object=yes 12149 tmp_sharedflag='-G' ;; 12150 *Sun\ F*) # Sun Fortran 8.3 12151 tmp_sharedflag='-G' ;; 12152 esac 12153 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12154 12155 if test yes = "$supports_anon_versioning"; then 12156 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12157 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12158 echo "local: *; };" >> $output_objdir/$libname.ver~ 12159 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 12160 fi 12161 12162 case $cc_basename in 12163 tcc*) 12164 export_dynamic_flag_spec='-rdynamic' 12165 ;; 12166 xlf* | bgf* | bgxlf* | mpixlf*) 12167 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12168 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12169 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12170 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12171 if test yes = "$supports_anon_versioning"; then 12172 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12174 echo "local: *; };" >> $output_objdir/$libname.ver~ 12175 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12176 fi 12177 ;; 12178 esac 12179 else 12180 ld_shlibs=no 12181 fi 12182 ;; 12183 12184 netbsd* | netbsdelf*-gnu) 12185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12186 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12187 wlarc= 12188 else 12189 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12190 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12191 fi 12192 ;; 12193 12194 solaris*) 12195 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12196 ld_shlibs=no 12197 cat <<_LT_EOF 1>&2 12198 12199*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12200*** create shared libraries on Solaris systems. Therefore, libtool 12201*** is disabling shared libraries support. We urge you to upgrade GNU 12202*** binutils to release 2.9.1 or newer. Another option is to modify 12203*** your PATH or compiler configuration so that the native linker is 12204*** used, and then restart. 12205 12206_LT_EOF 12207 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12209 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12210 else 12211 ld_shlibs=no 12212 fi 12213 ;; 12214 12215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12216 case `$LD -v 2>&1` in 12217 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12218 ld_shlibs=no 12219 cat <<_LT_EOF 1>&2 12220 12221*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 12222*** reliably create shared libraries on SCO systems. Therefore, libtool 12223*** is disabling shared libraries support. We urge you to upgrade GNU 12224*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12225*** your PATH or compiler configuration so that the native linker is 12226*** used, and then restart. 12227 12228_LT_EOF 12229 ;; 12230 *) 12231 # For security reasons, it is highly recommended that you always 12232 # use absolute paths for naming shared libraries, and exclude the 12233 # DT_RUNPATH tag from executables and libraries. But doing so 12234 # requires that you compile everything twice, which is a pain. 12235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12238 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12239 else 12240 ld_shlibs=no 12241 fi 12242 ;; 12243 esac 12244 ;; 12245 12246 sunos4*) 12247 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12248 wlarc= 12249 hardcode_direct=yes 12250 hardcode_shlibpath_var=no 12251 ;; 12252 12253 *) 12254 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12255 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12256 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12257 else 12258 ld_shlibs=no 12259 fi 12260 ;; 12261 esac 12262 12263 if test no = "$ld_shlibs"; then 12264 runpath_var= 12265 hardcode_libdir_flag_spec= 12266 export_dynamic_flag_spec= 12267 whole_archive_flag_spec= 12268 fi 12269 else 12270 # PORTME fill in a description of your system's linker (not GNU ld) 12271 case $host_os in 12272 aix3*) 12273 allow_undefined_flag=unsupported 12274 always_export_symbols=yes 12275 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' 12276 # Note: this linker hardcodes the directories in LIBPATH if there 12277 # are no directories specified by -L. 12278 hardcode_minus_L=yes 12279 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 12280 # Neither direct hardcoding nor static linking is supported with a 12281 # broken collect2. 12282 hardcode_direct=unsupported 12283 fi 12284 ;; 12285 12286 aix[4-9]*) 12287 if test ia64 = "$host_cpu"; then 12288 # On IA64, the linker does run time linking by default, so we don't 12289 # have to do anything special. 12290 aix_use_runtimelinking=no 12291 exp_sym_flag='-Bexport' 12292 no_entry_flag= 12293 else 12294 # If we're using GNU nm, then we don't want the "-C" option. 12295 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 12296 # Without the "-l" option, or with the "-B" option, AIX nm treats 12297 # weak defined symbols like other global defined symbols, whereas 12298 # GNU nm marks them as "W". 12299 # While the 'weak' keyword is ignored in the Export File, we need 12300 # it in the Import File for the 'aix-soname' feature, so we have 12301 # to replace the "-B" option with "-P" for AIX nm. 12302 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12303 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 12304 else 12305 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 12306 fi 12307 aix_use_runtimelinking=no 12308 12309 # Test if we are trying to use run time linking or normal 12310 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12311 # have runtime linking enabled, and use it for executables. 12312 # For shared libraries, we enable/disable runtime linking 12313 # depending on the kind of the shared library created - 12314 # when "with_aix_soname,aix_use_runtimelinking" is: 12315 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12316 # "aix,yes" lib.so shared, rtl:yes, for executables 12317 # lib.a static archive 12318 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12319 # lib.a(lib.so.V) shared, rtl:no, for executables 12320 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12321 # lib.a(lib.so.V) shared, rtl:no 12322 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12323 # lib.a static archive 12324 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12325 for ld_flag in $LDFLAGS; do 12326 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 12327 aix_use_runtimelinking=yes 12328 break 12329 fi 12330 done 12331 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12332 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12333 # so we don't have lib.a shared libs to link our executables. 12334 # We have to force runtime linking in this case. 12335 aix_use_runtimelinking=yes 12336 LDFLAGS="$LDFLAGS -Wl,-brtl" 12337 fi 12338 ;; 12339 esac 12340 12341 exp_sym_flag='-bexport' 12342 no_entry_flag='-bnoentry' 12343 fi 12344 12345 # When large executables or shared objects are built, AIX ld can 12346 # have problems creating the table of contents. If linking a library 12347 # or program results in "error TOC overflow" add -mminimal-toc to 12348 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12349 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12350 12351 archive_cmds='' 12352 hardcode_direct=yes 12353 hardcode_direct_absolute=yes 12354 hardcode_libdir_separator=':' 12355 link_all_deplibs=yes 12356 file_list_spec='$wl-f,' 12357 case $with_aix_soname,$aix_use_runtimelinking in 12358 aix,*) ;; # traditional, no import file 12359 svr4,* | *,yes) # use import file 12360 # The Import File defines what to hardcode. 12361 hardcode_direct=no 12362 hardcode_direct_absolute=no 12363 ;; 12364 esac 12365 12366 if test yes = "$GCC"; then 12367 case $host_os in aix4.[012]|aix4.[012].*) 12368 # We only want to do this on AIX 4.2 and lower, the check 12369 # below for broken collect2 doesn't work under 4.3+ 12370 collect2name=`$CC -print-prog-name=collect2` 12371 if test -f "$collect2name" && 12372 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12373 then 12374 # We have reworked collect2 12375 : 12376 else 12377 # We have old collect2 12378 hardcode_direct=unsupported 12379 # It fails to find uninstalled libraries when the uninstalled 12380 # path is not listed in the libpath. Setting hardcode_minus_L 12381 # to unsupported forces relinking 12382 hardcode_minus_L=yes 12383 hardcode_libdir_flag_spec='-L$libdir' 12384 hardcode_libdir_separator= 12385 fi 12386 ;; 12387 esac 12388 shared_flag='-shared' 12389 if test yes = "$aix_use_runtimelinking"; then 12390 shared_flag="$shared_flag "'$wl-G' 12391 fi 12392 # Need to ensure runtime linking is disabled for the traditional 12393 # shared library, or the linker may eventually find shared libraries 12394 # /with/ Import File - we do not want to mix them. 12395 shared_flag_aix='-shared' 12396 shared_flag_svr4='-shared $wl-G' 12397 else 12398 # not using gcc 12399 if test ia64 = "$host_cpu"; then 12400 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12401 # chokes on -Wl,-G. The following line is correct: 12402 shared_flag='-G' 12403 else 12404 if test yes = "$aix_use_runtimelinking"; then 12405 shared_flag='$wl-G' 12406 else 12407 shared_flag='$wl-bM:SRE' 12408 fi 12409 shared_flag_aix='$wl-bM:SRE' 12410 shared_flag_svr4='$wl-G' 12411 fi 12412 fi 12413 12414 export_dynamic_flag_spec='$wl-bexpall' 12415 # It seems that -bexpall does not export symbols beginning with 12416 # underscore (_), so it is better to generate a list of symbols to export. 12417 always_export_symbols=yes 12418 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12419 # Warning - without using the other runtime loading flags (-brtl), 12420 # -berok will link without error, but may produce a broken library. 12421 allow_undefined_flag='-berok' 12422 # Determine the default libpath from the value encoded in an 12423 # empty executable. 12424 if test set = "${lt_cv_aix_libpath+set}"; then 12425 aix_libpath=$lt_cv_aix_libpath 12426else 12427 if ${lt_cv_aix_libpath_+:} false; then : 12428 $as_echo_n "(cached) " >&6 12429else 12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12431/* end confdefs.h. */ 12432 12433int 12434main () 12435{ 12436 12437 ; 12438 return 0; 12439} 12440_ACEOF 12441if ac_fn_c_try_link "$LINENO"; then : 12442 12443 lt_aix_libpath_sed=' 12444 /Import File Strings/,/^$/ { 12445 /^0/ { 12446 s/^0 *\([^ ]*\) *$/\1/ 12447 p 12448 } 12449 }' 12450 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12451 # Check for a 64-bit object if we didn't find anything. 12452 if test -z "$lt_cv_aix_libpath_"; then 12453 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12454 fi 12455fi 12456rm -f core conftest.err conftest.$ac_objext \ 12457 conftest$ac_exeext conftest.$ac_ext 12458 if test -z "$lt_cv_aix_libpath_"; then 12459 lt_cv_aix_libpath_=/usr/lib:/lib 12460 fi 12461 12462fi 12463 12464 aix_libpath=$lt_cv_aix_libpath_ 12465fi 12466 12467 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12468 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 12469 else 12470 if test ia64 = "$host_cpu"; then 12471 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12472 allow_undefined_flag="-z nodefs" 12473 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" 12474 else 12475 # Determine the default libpath from the value encoded in an 12476 # empty executable. 12477 if test set = "${lt_cv_aix_libpath+set}"; then 12478 aix_libpath=$lt_cv_aix_libpath 12479else 12480 if ${lt_cv_aix_libpath_+:} false; then : 12481 $as_echo_n "(cached) " >&6 12482else 12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12484/* end confdefs.h. */ 12485 12486int 12487main () 12488{ 12489 12490 ; 12491 return 0; 12492} 12493_ACEOF 12494if ac_fn_c_try_link "$LINENO"; then : 12495 12496 lt_aix_libpath_sed=' 12497 /Import File Strings/,/^$/ { 12498 /^0/ { 12499 s/^0 *\([^ ]*\) *$/\1/ 12500 p 12501 } 12502 }' 12503 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12504 # Check for a 64-bit object if we didn't find anything. 12505 if test -z "$lt_cv_aix_libpath_"; then 12506 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12507 fi 12508fi 12509rm -f core conftest.err conftest.$ac_objext \ 12510 conftest$ac_exeext conftest.$ac_ext 12511 if test -z "$lt_cv_aix_libpath_"; then 12512 lt_cv_aix_libpath_=/usr/lib:/lib 12513 fi 12514 12515fi 12516 12517 aix_libpath=$lt_cv_aix_libpath_ 12518fi 12519 12520 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12521 # Warning - without using the other run time loading flags, 12522 # -berok will link without error, but may produce a broken library. 12523 no_undefined_flag=' $wl-bernotok' 12524 allow_undefined_flag=' $wl-berok' 12525 if test yes = "$with_gnu_ld"; then 12526 # We only use this code for GNU lds that support --whole-archive. 12527 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12528 else 12529 # Exported symbols can be pulled into shared objects from archives 12530 whole_archive_flag_spec='$convenience' 12531 fi 12532 archive_cmds_need_lc=yes 12533 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12534 # -brtl affects multiple linker settings, -berok does not and is overridden later 12535 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12536 if test svr4 != "$with_aix_soname"; then 12537 # This is similar to how AIX traditionally builds its shared libraries. 12538 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 12539 fi 12540 if test aix != "$with_aix_soname"; then 12541 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 12542 else 12543 # used by -dlpreopen to get the symbols 12544 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12545 fi 12546 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12547 fi 12548 fi 12549 ;; 12550 12551 amigaos*) 12552 case $host_cpu in 12553 powerpc) 12554 # see comment about AmigaOS4 .so support 12555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12556 archive_expsym_cmds='' 12557 ;; 12558 m68k) 12559 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)' 12560 hardcode_libdir_flag_spec='-L$libdir' 12561 hardcode_minus_L=yes 12562 ;; 12563 esac 12564 ;; 12565 12566 bsdi[45]*) 12567 export_dynamic_flag_spec=-rdynamic 12568 ;; 12569 12570 cygwin* | mingw* | pw32* | cegcc*) 12571 # When not using gcc, we currently assume that we are using 12572 # Microsoft Visual C++. 12573 # hardcode_libdir_flag_spec is actually meaningless, as there is 12574 # no search path for DLLs. 12575 case $cc_basename in 12576 cl*) 12577 # Native MSVC 12578 hardcode_libdir_flag_spec=' ' 12579 allow_undefined_flag=unsupported 12580 always_export_symbols=yes 12581 file_list_spec='@' 12582 # Tell ltmain to make .lib files, not .a files. 12583 libext=lib 12584 # Tell ltmain to make .dll files, not .so files. 12585 shrext_cmds=.dll 12586 # FIXME: Setting linknames here is a bad hack. 12587 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12588 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12589 cp "$export_symbols" "$output_objdir/$soname.def"; 12590 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12591 else 12592 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12593 fi~ 12594 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12595 linknames=' 12596 # The linker will not automatically build a static lib if we build a DLL. 12597 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12598 enable_shared_with_static_runtimes=yes 12599 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12601 # Don't use ranlib 12602 old_postinstall_cmds='chmod 644 $oldlib' 12603 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12604 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12605 case $lt_outputfile in 12606 *.exe|*.EXE) ;; 12607 *) 12608 lt_outputfile=$lt_outputfile.exe 12609 lt_tool_outputfile=$lt_tool_outputfile.exe 12610 ;; 12611 esac~ 12612 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12613 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12614 $RM "$lt_outputfile.manifest"; 12615 fi' 12616 ;; 12617 *) 12618 # Assume MSVC wrapper 12619 hardcode_libdir_flag_spec=' ' 12620 allow_undefined_flag=unsupported 12621 # Tell ltmain to make .lib files, not .a files. 12622 libext=lib 12623 # Tell ltmain to make .dll files, not .so files. 12624 shrext_cmds=.dll 12625 # FIXME: Setting linknames here is a bad hack. 12626 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12627 # The linker will automatically build a .lib file if we build a DLL. 12628 old_archive_from_new_cmds='true' 12629 # FIXME: Should let the user specify the lib program. 12630 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12631 enable_shared_with_static_runtimes=yes 12632 ;; 12633 esac 12634 ;; 12635 12636 darwin* | rhapsody*) 12637 12638 12639 archive_cmds_need_lc=no 12640 hardcode_direct=no 12641 hardcode_automatic=yes 12642 hardcode_shlibpath_var=unsupported 12643 if test yes = "$lt_cv_ld_force_load"; then 12644 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\"`' 12645 12646 else 12647 whole_archive_flag_spec='' 12648 fi 12649 link_all_deplibs=yes 12650 allow_undefined_flag=$_lt_dar_allow_undefined 12651 case $cc_basename in 12652 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12653 *) _lt_dar_can_shared=$GCC ;; 12654 esac 12655 if test yes = "$_lt_dar_can_shared"; then 12656 output_verbose_link_cmd=func_echo_all 12657 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12658 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12659 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" 12660 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" 12661 12662 else 12663 ld_shlibs=no 12664 fi 12665 12666 ;; 12667 12668 dgux*) 12669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12670 hardcode_libdir_flag_spec='-L$libdir' 12671 hardcode_shlibpath_var=no 12672 ;; 12673 12674 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12675 # support. Future versions do this automatically, but an explicit c++rt0.o 12676 # does not break anything, and helps significantly (at the cost of a little 12677 # extra space). 12678 freebsd2.2*) 12679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12680 hardcode_libdir_flag_spec='-R$libdir' 12681 hardcode_direct=yes 12682 hardcode_shlibpath_var=no 12683 ;; 12684 12685 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12686 freebsd2.*) 12687 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12688 hardcode_direct=yes 12689 hardcode_minus_L=yes 12690 hardcode_shlibpath_var=no 12691 ;; 12692 12693 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12694 freebsd* | dragonfly*) 12695 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12696 hardcode_libdir_flag_spec='-R$libdir' 12697 hardcode_direct=yes 12698 hardcode_shlibpath_var=no 12699 ;; 12700 12701 hpux9*) 12702 if test yes = "$GCC"; then 12703 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12704 else 12705 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12706 fi 12707 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12708 hardcode_libdir_separator=: 12709 hardcode_direct=yes 12710 12711 # hardcode_minus_L: Not really in the search PATH, 12712 # but as the default location of the library. 12713 hardcode_minus_L=yes 12714 export_dynamic_flag_spec='$wl-E' 12715 ;; 12716 12717 hpux10*) 12718 if test yes,no = "$GCC,$with_gnu_ld"; then 12719 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12720 else 12721 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12722 fi 12723 if test no = "$with_gnu_ld"; then 12724 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12725 hardcode_libdir_separator=: 12726 hardcode_direct=yes 12727 hardcode_direct_absolute=yes 12728 export_dynamic_flag_spec='$wl-E' 12729 # hardcode_minus_L: Not really in the search PATH, 12730 # but as the default location of the library. 12731 hardcode_minus_L=yes 12732 fi 12733 ;; 12734 12735 hpux11*) 12736 if test yes,no = "$GCC,$with_gnu_ld"; then 12737 case $host_cpu in 12738 hppa*64*) 12739 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12740 ;; 12741 ia64*) 12742 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12743 ;; 12744 *) 12745 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12746 ;; 12747 esac 12748 else 12749 case $host_cpu in 12750 hppa*64*) 12751 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12752 ;; 12753 ia64*) 12754 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12755 ;; 12756 *) 12757 12758 # Older versions of the 11.00 compiler do not understand -b yet 12759 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12761$as_echo_n "checking if $CC understands -b... " >&6; } 12762if ${lt_cv_prog_compiler__b+:} false; then : 12763 $as_echo_n "(cached) " >&6 12764else 12765 lt_cv_prog_compiler__b=no 12766 save_LDFLAGS=$LDFLAGS 12767 LDFLAGS="$LDFLAGS -b" 12768 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12770 # The linker can only warn and ignore the option if not recognized 12771 # So say no if there are warnings 12772 if test -s conftest.err; then 12773 # Append any errors to the config.log. 12774 cat conftest.err 1>&5 12775 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12777 if diff conftest.exp conftest.er2 >/dev/null; then 12778 lt_cv_prog_compiler__b=yes 12779 fi 12780 else 12781 lt_cv_prog_compiler__b=yes 12782 fi 12783 fi 12784 $RM -r conftest* 12785 LDFLAGS=$save_LDFLAGS 12786 12787fi 12788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12789$as_echo "$lt_cv_prog_compiler__b" >&6; } 12790 12791if test yes = "$lt_cv_prog_compiler__b"; then 12792 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12793else 12794 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12795fi 12796 12797 ;; 12798 esac 12799 fi 12800 if test no = "$with_gnu_ld"; then 12801 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12802 hardcode_libdir_separator=: 12803 12804 case $host_cpu in 12805 hppa*64*|ia64*) 12806 hardcode_direct=no 12807 hardcode_shlibpath_var=no 12808 ;; 12809 *) 12810 hardcode_direct=yes 12811 hardcode_direct_absolute=yes 12812 export_dynamic_flag_spec='$wl-E' 12813 12814 # hardcode_minus_L: Not really in the search PATH, 12815 # but as the default location of the library. 12816 hardcode_minus_L=yes 12817 ;; 12818 esac 12819 fi 12820 ;; 12821 12822 irix5* | irix6* | nonstopux*) 12823 if test yes = "$GCC"; then 12824 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' 12825 # Try to use the -exported_symbol ld option, if it does not 12826 # work, assume that -exports_file does not work either and 12827 # implicitly export all symbols. 12828 # This should be the same for all languages, so no per-tag cache variable. 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12830$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12831if ${lt_cv_irix_exported_symbol+:} false; then : 12832 $as_echo_n "(cached) " >&6 12833else 12834 save_LDFLAGS=$LDFLAGS 12835 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12837/* end confdefs.h. */ 12838int foo (void) { return 0; } 12839_ACEOF 12840if ac_fn_c_try_link "$LINENO"; then : 12841 lt_cv_irix_exported_symbol=yes 12842else 12843 lt_cv_irix_exported_symbol=no 12844fi 12845rm -f core conftest.err conftest.$ac_objext \ 12846 conftest$ac_exeext conftest.$ac_ext 12847 LDFLAGS=$save_LDFLAGS 12848fi 12849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12850$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12851 if test yes = "$lt_cv_irix_exported_symbol"; then 12852 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' 12853 fi 12854 link_all_deplibs=no 12855 else 12856 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' 12857 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' 12858 fi 12859 archive_cmds_need_lc='no' 12860 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12861 hardcode_libdir_separator=: 12862 inherit_rpath=yes 12863 link_all_deplibs=yes 12864 ;; 12865 12866 linux*) 12867 case $cc_basename in 12868 tcc*) 12869 # Fabrice Bellard et al's Tiny C Compiler 12870 ld_shlibs=yes 12871 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12872 ;; 12873 esac 12874 ;; 12875 12876 netbsd* | netbsdelf*-gnu) 12877 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12878 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12879 else 12880 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12881 fi 12882 hardcode_libdir_flag_spec='-R$libdir' 12883 hardcode_direct=yes 12884 hardcode_shlibpath_var=no 12885 ;; 12886 12887 newsos6) 12888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12889 hardcode_direct=yes 12890 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12891 hardcode_libdir_separator=: 12892 hardcode_shlibpath_var=no 12893 ;; 12894 12895 *nto* | *qnx*) 12896 ;; 12897 12898 openbsd* | bitrig*) 12899 if test -f /usr/libexec/ld.so; then 12900 hardcode_direct=yes 12901 hardcode_shlibpath_var=no 12902 hardcode_direct_absolute=yes 12903 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12905 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12906 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12907 export_dynamic_flag_spec='$wl-E' 12908 else 12909 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12910 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12911 fi 12912 else 12913 ld_shlibs=no 12914 fi 12915 ;; 12916 12917 os2*) 12918 hardcode_libdir_flag_spec='-L$libdir' 12919 hardcode_minus_L=yes 12920 allow_undefined_flag=unsupported 12921 shrext_cmds=.dll 12922 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12923 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12924 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12925 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12926 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12927 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12928 emximp -o $lib $output_objdir/$libname.def' 12929 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12930 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12931 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12932 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12933 prefix_cmds="$SED"~ 12934 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12935 prefix_cmds="$prefix_cmds -e 1d"; 12936 fi~ 12937 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12938 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12939 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12940 emximp -o $lib $output_objdir/$libname.def' 12941 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12942 enable_shared_with_static_runtimes=yes 12943 ;; 12944 12945 osf3*) 12946 if test yes = "$GCC"; then 12947 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12948 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' 12949 else 12950 allow_undefined_flag=' -expect_unresolved \*' 12951 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' 12952 fi 12953 archive_cmds_need_lc='no' 12954 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12955 hardcode_libdir_separator=: 12956 ;; 12957 12958 osf4* | osf5*) # as osf3* with the addition of -msym flag 12959 if test yes = "$GCC"; then 12960 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12961 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' 12962 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12963 else 12964 allow_undefined_flag=' -expect_unresolved \*' 12965 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' 12966 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~ 12967 $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' 12968 12969 # Both c and cxx compiler support -rpath directly 12970 hardcode_libdir_flag_spec='-rpath $libdir' 12971 fi 12972 archive_cmds_need_lc='no' 12973 hardcode_libdir_separator=: 12974 ;; 12975 12976 solaris*) 12977 no_undefined_flag=' -z defs' 12978 if test yes = "$GCC"; then 12979 wlarc='$wl' 12980 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12981 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12982 $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' 12983 else 12984 case `$CC -V 2>&1` in 12985 *"Compilers 5.0"*) 12986 wlarc='' 12987 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12988 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12989 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12990 ;; 12991 *) 12992 wlarc='$wl' 12993 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12994 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12995 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12996 ;; 12997 esac 12998 fi 12999 hardcode_libdir_flag_spec='-R$libdir' 13000 hardcode_shlibpath_var=no 13001 case $host_os in 13002 solaris2.[0-5] | solaris2.[0-5].*) ;; 13003 *) 13004 # The compiler driver will combine and reorder linker options, 13005 # but understands '-z linker_flag'. GCC discards it without '$wl', 13006 # but is careful enough not to reorder. 13007 # Supported since Solaris 2.6 (maybe 2.5.1?) 13008 if test yes = "$GCC"; then 13009 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13010 else 13011 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13012 fi 13013 ;; 13014 esac 13015 link_all_deplibs=yes 13016 ;; 13017 13018 sunos4*) 13019 if test sequent = "$host_vendor"; then 13020 # Use $CC to link under sequent, because it throws in some extra .o 13021 # files that make .init and .fini sections work. 13022 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13023 else 13024 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13025 fi 13026 hardcode_libdir_flag_spec='-L$libdir' 13027 hardcode_direct=yes 13028 hardcode_minus_L=yes 13029 hardcode_shlibpath_var=no 13030 ;; 13031 13032 sysv4) 13033 case $host_vendor in 13034 sni) 13035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13036 hardcode_direct=yes # is this really true??? 13037 ;; 13038 siemens) 13039 ## LD is ld it makes a PLAMLIB 13040 ## CC just makes a GrossModule. 13041 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13042 reload_cmds='$CC -r -o $output$reload_objs' 13043 hardcode_direct=no 13044 ;; 13045 motorola) 13046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13047 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13048 ;; 13049 esac 13050 runpath_var='LD_RUN_PATH' 13051 hardcode_shlibpath_var=no 13052 ;; 13053 13054 sysv4.3*) 13055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13056 hardcode_shlibpath_var=no 13057 export_dynamic_flag_spec='-Bexport' 13058 ;; 13059 13060 sysv4*MP*) 13061 if test -d /usr/nec; then 13062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13063 hardcode_shlibpath_var=no 13064 runpath_var=LD_RUN_PATH 13065 hardcode_runpath_var=yes 13066 ld_shlibs=yes 13067 fi 13068 ;; 13069 13070 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13071 no_undefined_flag='$wl-z,text' 13072 archive_cmds_need_lc=no 13073 hardcode_shlibpath_var=no 13074 runpath_var='LD_RUN_PATH' 13075 13076 if test yes = "$GCC"; then 13077 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13078 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13079 else 13080 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13081 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13082 fi 13083 ;; 13084 13085 sysv5* | sco3.2v5* | sco5v6*) 13086 # Note: We CANNOT use -z defs as we might desire, because we do not 13087 # link with -lc, and that would cause any symbols used from libc to 13088 # always be unresolved, which means just about no library would 13089 # ever link correctly. If we're not using GNU ld we use -z text 13090 # though, which does catch some bad symbols but isn't as heavy-handed 13091 # as -z defs. 13092 no_undefined_flag='$wl-z,text' 13093 allow_undefined_flag='$wl-z,nodefs' 13094 archive_cmds_need_lc=no 13095 hardcode_shlibpath_var=no 13096 hardcode_libdir_flag_spec='$wl-R,$libdir' 13097 hardcode_libdir_separator=':' 13098 link_all_deplibs=yes 13099 export_dynamic_flag_spec='$wl-Bexport' 13100 runpath_var='LD_RUN_PATH' 13101 13102 if test yes = "$GCC"; then 13103 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13104 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13105 else 13106 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13107 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13108 fi 13109 ;; 13110 13111 uts4*) 13112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13113 hardcode_libdir_flag_spec='-L$libdir' 13114 hardcode_shlibpath_var=no 13115 ;; 13116 13117 *) 13118 ld_shlibs=no 13119 ;; 13120 esac 13121 13122 if test sni = "$host_vendor"; then 13123 case $host in 13124 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13125 export_dynamic_flag_spec='$wl-Blargedynsym' 13126 ;; 13127 esac 13128 fi 13129 fi 13130 13131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13132$as_echo "$ld_shlibs" >&6; } 13133test no = "$ld_shlibs" && can_build_shared=no 13134 13135with_gnu_ld=$with_gnu_ld 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151# 13152# Do we need to explicitly link libc? 13153# 13154case "x$archive_cmds_need_lc" in 13155x|xyes) 13156 # Assume -lc should be added 13157 archive_cmds_need_lc=yes 13158 13159 if test yes,yes = "$GCC,$enable_shared"; then 13160 case $archive_cmds in 13161 *'~'*) 13162 # FIXME: we may have to deal with multi-command sequences. 13163 ;; 13164 '$CC '*) 13165 # Test whether the compiler implicitly links with -lc since on some 13166 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13167 # to ld, don't add -lc before -lgcc. 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13169$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13170if ${lt_cv_archive_cmds_need_lc+:} false; then : 13171 $as_echo_n "(cached) " >&6 13172else 13173 $RM conftest* 13174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13175 13176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13177 (eval $ac_compile) 2>&5 13178 ac_status=$? 13179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13180 test $ac_status = 0; } 2>conftest.err; then 13181 soname=conftest 13182 lib=conftest 13183 libobjs=conftest.$ac_objext 13184 deplibs= 13185 wl=$lt_prog_compiler_wl 13186 pic_flag=$lt_prog_compiler_pic 13187 compiler_flags=-v 13188 linker_flags=-v 13189 verstring= 13190 output_objdir=. 13191 libname=conftest 13192 lt_save_allow_undefined_flag=$allow_undefined_flag 13193 allow_undefined_flag= 13194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13195 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13196 ac_status=$? 13197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13198 test $ac_status = 0; } 13199 then 13200 lt_cv_archive_cmds_need_lc=no 13201 else 13202 lt_cv_archive_cmds_need_lc=yes 13203 fi 13204 allow_undefined_flag=$lt_save_allow_undefined_flag 13205 else 13206 cat conftest.err 1>&5 13207 fi 13208 $RM conftest* 13209 13210fi 13211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13212$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 13213 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13214 ;; 13215 esac 13216 fi 13217 ;; 13218esac 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13372$as_echo_n "checking dynamic linker characteristics... " >&6; } 13373 13374if test yes = "$GCC"; then 13375 case $host_os in 13376 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13377 *) lt_awk_arg='/^libraries:/' ;; 13378 esac 13379 case $host_os in 13380 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13381 *) lt_sed_strip_eq='s|=/|/|g' ;; 13382 esac 13383 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13384 case $lt_search_path_spec in 13385 *\;*) 13386 # if the path contains ";" then we assume it to be the separator 13387 # otherwise default to the standard path separator (i.e. ":") - it is 13388 # assumed that no part of a normal pathname contains ";" but that should 13389 # okay in the real world where ";" in dirpaths is itself problematic. 13390 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13391 ;; 13392 *) 13393 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13394 ;; 13395 esac 13396 # Ok, now we have the path, separated by spaces, we can step through it 13397 # and add multilib dir if necessary... 13398 lt_tmp_lt_search_path_spec= 13399 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13400 # ...but if some path component already ends with the multilib dir we assume 13401 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13402 case "$lt_multi_os_dir; $lt_search_path_spec " in 13403 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13404 lt_multi_os_dir= 13405 ;; 13406 esac 13407 for lt_sys_path in $lt_search_path_spec; do 13408 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13409 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13410 elif test -n "$lt_multi_os_dir"; then 13411 test -d "$lt_sys_path" && \ 13412 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13413 fi 13414 done 13415 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13416BEGIN {RS = " "; FS = "/|\n";} { 13417 lt_foo = ""; 13418 lt_count = 0; 13419 for (lt_i = NF; lt_i > 0; lt_i--) { 13420 if ($lt_i != "" && $lt_i != ".") { 13421 if ($lt_i == "..") { 13422 lt_count++; 13423 } else { 13424 if (lt_count == 0) { 13425 lt_foo = "/" $lt_i lt_foo; 13426 } else { 13427 lt_count--; 13428 } 13429 } 13430 } 13431 } 13432 if (lt_foo != "") { lt_freq[lt_foo]++; } 13433 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13434}'` 13435 # AWK program above erroneously prepends '/' to C:/dos/paths 13436 # for these hosts. 13437 case $host_os in 13438 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13439 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13440 esac 13441 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13442else 13443 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13444fi 13445library_names_spec= 13446libname_spec='lib$name' 13447soname_spec= 13448shrext_cmds=.so 13449postinstall_cmds= 13450postuninstall_cmds= 13451finish_cmds= 13452finish_eval= 13453shlibpath_var= 13454shlibpath_overrides_runpath=unknown 13455version_type=none 13456dynamic_linker="$host_os ld.so" 13457sys_lib_dlsearch_path_spec="/lib /usr/lib" 13458need_lib_prefix=unknown 13459hardcode_into_libs=no 13460 13461# when you set need_version to no, make sure it does not cause -set_version 13462# flags to be left without arguments 13463need_version=unknown 13464 13465 13466 13467case $host_os in 13468aix3*) 13469 version_type=linux # correct to gnu/linux during the next big refactor 13470 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13471 shlibpath_var=LIBPATH 13472 13473 # AIX 3 has no versioning support, so we append a major version to the name. 13474 soname_spec='$libname$release$shared_ext$major' 13475 ;; 13476 13477aix[4-9]*) 13478 version_type=linux # correct to gnu/linux during the next big refactor 13479 need_lib_prefix=no 13480 need_version=no 13481 hardcode_into_libs=yes 13482 if test ia64 = "$host_cpu"; then 13483 # AIX 5 supports IA64 13484 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13485 shlibpath_var=LD_LIBRARY_PATH 13486 else 13487 # With GCC up to 2.95.x, collect2 would create an import file 13488 # for dependence libraries. The import file would start with 13489 # the line '#! .'. This would cause the generated library to 13490 # depend on '.', always an invalid library. This was fixed in 13491 # development snapshots of GCC prior to 3.0. 13492 case $host_os in 13493 aix4 | aix4.[01] | aix4.[01].*) 13494 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13495 echo ' yes ' 13496 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13497 : 13498 else 13499 can_build_shared=no 13500 fi 13501 ;; 13502 esac 13503 # Using Import Files as archive members, it is possible to support 13504 # filename-based versioning of shared library archives on AIX. While 13505 # this would work for both with and without runtime linking, it will 13506 # prevent static linking of such archives. So we do filename-based 13507 # shared library versioning with .so extension only, which is used 13508 # when both runtime linking and shared linking is enabled. 13509 # Unfortunately, runtime linking may impact performance, so we do 13510 # not want this to be the default eventually. Also, we use the 13511 # versioned .so libs for executables only if there is the -brtl 13512 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13513 # To allow for filename-based versioning support, we need to create 13514 # libNAME.so.V as an archive file, containing: 13515 # *) an Import File, referring to the versioned filename of the 13516 # archive as well as the shared archive member, telling the 13517 # bitwidth (32 or 64) of that shared object, and providing the 13518 # list of exported symbols of that shared object, eventually 13519 # decorated with the 'weak' keyword 13520 # *) the shared object with the F_LOADONLY flag set, to really avoid 13521 # it being seen by the linker. 13522 # At run time we better use the real file rather than another symlink, 13523 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13524 13525 case $with_aix_soname,$aix_use_runtimelinking in 13526 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13527 # soname into executable. Probably we can add versioning support to 13528 # collect2, so additional links can be useful in future. 13529 aix,yes) # traditional libtool 13530 dynamic_linker='AIX unversionable lib.so' 13531 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13532 # instead of lib<name>.a to let people know that these are not 13533 # typical AIX shared libraries. 13534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13535 ;; 13536 aix,no) # traditional AIX only 13537 dynamic_linker='AIX lib.a(lib.so.V)' 13538 # We preserve .a as extension for shared libraries through AIX4.2 13539 # and later when we are not doing run time linking. 13540 library_names_spec='$libname$release.a $libname.a' 13541 soname_spec='$libname$release$shared_ext$major' 13542 ;; 13543 svr4,*) # full svr4 only 13544 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13545 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13546 # We do not specify a path in Import Files, so LIBPATH fires. 13547 shlibpath_overrides_runpath=yes 13548 ;; 13549 *,yes) # both, prefer svr4 13550 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13551 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13552 # unpreferred sharedlib libNAME.a needs extra handling 13553 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 13554 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 13555 # We do not specify a path in Import Files, so LIBPATH fires. 13556 shlibpath_overrides_runpath=yes 13557 ;; 13558 *,no) # both, prefer aix 13559 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13560 library_names_spec='$libname$release.a $libname.a' 13561 soname_spec='$libname$release$shared_ext$major' 13562 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13563 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 13564 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 13565 ;; 13566 esac 13567 shlibpath_var=LIBPATH 13568 fi 13569 ;; 13570 13571amigaos*) 13572 case $host_cpu in 13573 powerpc) 13574 # Since July 2007 AmigaOS4 officially supports .so libraries. 13575 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13577 ;; 13578 m68k) 13579 library_names_spec='$libname.ixlibrary $libname.a' 13580 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13581 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 13582 ;; 13583 esac 13584 ;; 13585 13586beos*) 13587 library_names_spec='$libname$shared_ext' 13588 dynamic_linker="$host_os ld.so" 13589 shlibpath_var=LIBRARY_PATH 13590 ;; 13591 13592bsdi[45]*) 13593 version_type=linux # correct to gnu/linux during the next big refactor 13594 need_version=no 13595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13596 soname_spec='$libname$release$shared_ext$major' 13597 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13598 shlibpath_var=LD_LIBRARY_PATH 13599 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13600 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13601 # the default ld.so.conf also contains /usr/contrib/lib and 13602 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13603 # libtool to hard-code these into programs 13604 ;; 13605 13606cygwin* | mingw* | pw32* | cegcc*) 13607 version_type=windows 13608 shrext_cmds=.dll 13609 need_version=no 13610 need_lib_prefix=no 13611 13612 case $GCC,$cc_basename in 13613 yes,*) 13614 # gcc 13615 library_names_spec='$libname.dll.a' 13616 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13617 postinstall_cmds='base_file=`basename \$file`~ 13618 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13619 dldir=$destdir/`dirname \$dlpath`~ 13620 test -d \$dldir || mkdir -p \$dldir~ 13621 $install_prog $dir/$dlname \$dldir/$dlname~ 13622 chmod a+x \$dldir/$dlname~ 13623 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13624 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13625 fi' 13626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13627 dlpath=$dir/\$dldll~ 13628 $RM \$dlpath' 13629 shlibpath_overrides_runpath=yes 13630 13631 case $host_os in 13632 cygwin*) 13633 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13634 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13635 13636 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13637 ;; 13638 mingw* | cegcc*) 13639 # MinGW DLLs use traditional 'lib' prefix 13640 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13641 ;; 13642 pw32*) 13643 # pw32 DLLs use 'pw' prefix rather than 'lib' 13644 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13645 ;; 13646 esac 13647 dynamic_linker='Win32 ld.exe' 13648 ;; 13649 13650 *,cl*) 13651 # Native MSVC 13652 libname_spec='$name' 13653 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13654 library_names_spec='$libname.dll.lib' 13655 13656 case $build_os in 13657 mingw*) 13658 sys_lib_search_path_spec= 13659 lt_save_ifs=$IFS 13660 IFS=';' 13661 for lt_path in $LIB 13662 do 13663 IFS=$lt_save_ifs 13664 # Let DOS variable expansion print the short 8.3 style file name. 13665 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13666 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13667 done 13668 IFS=$lt_save_ifs 13669 # Convert to MSYS style. 13670 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13671 ;; 13672 cygwin*) 13673 # Convert to unix form, then to dos form, then back to unix form 13674 # but this time dos style (no spaces!) so that the unix form looks 13675 # like /cygdrive/c/PROGRA~1:/cygdr... 13676 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13677 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13678 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13679 ;; 13680 *) 13681 sys_lib_search_path_spec=$LIB 13682 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13683 # It is most probably a Windows format PATH. 13684 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13685 else 13686 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13687 fi 13688 # FIXME: find the short name or the path components, as spaces are 13689 # common. (e.g. "Program Files" -> "PROGRA~1") 13690 ;; 13691 esac 13692 13693 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13694 postinstall_cmds='base_file=`basename \$file`~ 13695 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13696 dldir=$destdir/`dirname \$dlpath`~ 13697 test -d \$dldir || mkdir -p \$dldir~ 13698 $install_prog $dir/$dlname \$dldir/$dlname' 13699 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13700 dlpath=$dir/\$dldll~ 13701 $RM \$dlpath' 13702 shlibpath_overrides_runpath=yes 13703 dynamic_linker='Win32 link.exe' 13704 ;; 13705 13706 *) 13707 # Assume MSVC wrapper 13708 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13709 dynamic_linker='Win32 ld.exe' 13710 ;; 13711 esac 13712 # FIXME: first we should search . and the directory the executable is in 13713 shlibpath_var=PATH 13714 ;; 13715 13716darwin* | rhapsody*) 13717 dynamic_linker="$host_os dyld" 13718 version_type=darwin 13719 need_lib_prefix=no 13720 need_version=no 13721 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13722 soname_spec='$libname$release$major$shared_ext' 13723 shlibpath_overrides_runpath=yes 13724 shlibpath_var=DYLD_LIBRARY_PATH 13725 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13726 13727 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13728 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13729 ;; 13730 13731dgux*) 13732 version_type=linux # correct to gnu/linux during the next big refactor 13733 need_lib_prefix=no 13734 need_version=no 13735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13736 soname_spec='$libname$release$shared_ext$major' 13737 shlibpath_var=LD_LIBRARY_PATH 13738 ;; 13739 13740freebsd* | dragonfly*) 13741 # DragonFly does not have aout. When/if they implement a new 13742 # versioning mechanism, adjust this. 13743 if test -x /usr/bin/objformat; then 13744 objformat=`/usr/bin/objformat` 13745 else 13746 case $host_os in 13747 freebsd[23].*) objformat=aout ;; 13748 *) objformat=elf ;; 13749 esac 13750 fi 13751 version_type=freebsd-$objformat 13752 case $version_type in 13753 freebsd-elf*) 13754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13755 soname_spec='$libname$release$shared_ext$major' 13756 need_version=no 13757 need_lib_prefix=no 13758 ;; 13759 freebsd-*) 13760 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13761 need_version=yes 13762 ;; 13763 esac 13764 shlibpath_var=LD_LIBRARY_PATH 13765 case $host_os in 13766 freebsd2.*) 13767 shlibpath_overrides_runpath=yes 13768 ;; 13769 freebsd3.[01]* | freebsdelf3.[01]*) 13770 shlibpath_overrides_runpath=yes 13771 hardcode_into_libs=yes 13772 ;; 13773 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13774 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13775 shlibpath_overrides_runpath=no 13776 hardcode_into_libs=yes 13777 ;; 13778 *) # from 4.6 on, and DragonFly 13779 shlibpath_overrides_runpath=yes 13780 hardcode_into_libs=yes 13781 ;; 13782 esac 13783 ;; 13784 13785haiku*) 13786 version_type=linux # correct to gnu/linux during the next big refactor 13787 need_lib_prefix=no 13788 need_version=no 13789 dynamic_linker="$host_os runtime_loader" 13790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13791 soname_spec='$libname$release$shared_ext$major' 13792 shlibpath_var=LIBRARY_PATH 13793 shlibpath_overrides_runpath=no 13794 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13795 hardcode_into_libs=yes 13796 ;; 13797 13798hpux9* | hpux10* | hpux11*) 13799 # Give a soname corresponding to the major version so that dld.sl refuses to 13800 # link against other versions. 13801 version_type=sunos 13802 need_lib_prefix=no 13803 need_version=no 13804 case $host_cpu in 13805 ia64*) 13806 shrext_cmds='.so' 13807 hardcode_into_libs=yes 13808 dynamic_linker="$host_os dld.so" 13809 shlibpath_var=LD_LIBRARY_PATH 13810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13812 soname_spec='$libname$release$shared_ext$major' 13813 if test 32 = "$HPUX_IA64_MODE"; then 13814 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13815 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13816 else 13817 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13818 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13819 fi 13820 ;; 13821 hppa*64*) 13822 shrext_cmds='.sl' 13823 hardcode_into_libs=yes 13824 dynamic_linker="$host_os dld.sl" 13825 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13828 soname_spec='$libname$release$shared_ext$major' 13829 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13831 ;; 13832 *) 13833 shrext_cmds='.sl' 13834 dynamic_linker="$host_os dld.sl" 13835 shlibpath_var=SHLIB_PATH 13836 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13838 soname_spec='$libname$release$shared_ext$major' 13839 ;; 13840 esac 13841 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13842 postinstall_cmds='chmod 555 $lib' 13843 # or fails outright, so override atomically: 13844 install_override_mode=555 13845 ;; 13846 13847interix[3-9]*) 13848 version_type=linux # correct to gnu/linux during the next big refactor 13849 need_lib_prefix=no 13850 need_version=no 13851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13852 soname_spec='$libname$release$shared_ext$major' 13853 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13854 shlibpath_var=LD_LIBRARY_PATH 13855 shlibpath_overrides_runpath=no 13856 hardcode_into_libs=yes 13857 ;; 13858 13859irix5* | irix6* | nonstopux*) 13860 case $host_os in 13861 nonstopux*) version_type=nonstopux ;; 13862 *) 13863 if test yes = "$lt_cv_prog_gnu_ld"; then 13864 version_type=linux # correct to gnu/linux during the next big refactor 13865 else 13866 version_type=irix 13867 fi ;; 13868 esac 13869 need_lib_prefix=no 13870 need_version=no 13871 soname_spec='$libname$release$shared_ext$major' 13872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13873 case $host_os in 13874 irix5* | nonstopux*) 13875 libsuff= shlibsuff= 13876 ;; 13877 *) 13878 case $LD in # libtool.m4 will add one of these switches to LD 13879 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13880 libsuff= shlibsuff= libmagic=32-bit;; 13881 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13882 libsuff=32 shlibsuff=N32 libmagic=N32;; 13883 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13884 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13885 *) libsuff= shlibsuff= libmagic=never-match;; 13886 esac 13887 ;; 13888 esac 13889 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13890 shlibpath_overrides_runpath=no 13891 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13892 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13893 hardcode_into_libs=yes 13894 ;; 13895 13896# No shared lib support for Linux oldld, aout, or coff. 13897linux*oldld* | linux*aout* | linux*coff*) 13898 dynamic_linker=no 13899 ;; 13900 13901linux*android*) 13902 version_type=none # Android doesn't support versioned libraries. 13903 need_lib_prefix=no 13904 need_version=no 13905 library_names_spec='$libname$release$shared_ext' 13906 soname_spec='$libname$release$shared_ext' 13907 finish_cmds= 13908 shlibpath_var=LD_LIBRARY_PATH 13909 shlibpath_overrides_runpath=yes 13910 13911 # This implies no fast_install, which is unacceptable. 13912 # Some rework will be needed to allow for fast_install 13913 # before this can be enabled. 13914 hardcode_into_libs=yes 13915 13916 dynamic_linker='Android linker' 13917 # Don't embed -rpath directories since the linker doesn't support them. 13918 hardcode_libdir_flag_spec='-L$libdir' 13919 ;; 13920 13921# This must be glibc/ELF. 13922linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13923 version_type=linux # correct to gnu/linux during the next big refactor 13924 need_lib_prefix=no 13925 need_version=no 13926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13927 soname_spec='$libname$release$shared_ext$major' 13928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13929 shlibpath_var=LD_LIBRARY_PATH 13930 shlibpath_overrides_runpath=no 13931 13932 # Some binutils ld are patched to set DT_RUNPATH 13933 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13934 $as_echo_n "(cached) " >&6 13935else 13936 lt_cv_shlibpath_overrides_runpath=no 13937 save_LDFLAGS=$LDFLAGS 13938 save_libdir=$libdir 13939 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13940 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13942/* end confdefs.h. */ 13943 13944int 13945main () 13946{ 13947 13948 ; 13949 return 0; 13950} 13951_ACEOF 13952if ac_fn_c_try_link "$LINENO"; then : 13953 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13954 lt_cv_shlibpath_overrides_runpath=yes 13955fi 13956fi 13957rm -f core conftest.err conftest.$ac_objext \ 13958 conftest$ac_exeext conftest.$ac_ext 13959 LDFLAGS=$save_LDFLAGS 13960 libdir=$save_libdir 13961 13962fi 13963 13964 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13965 13966 # This implies no fast_install, which is unacceptable. 13967 # Some rework will be needed to allow for fast_install 13968 # before this can be enabled. 13969 hardcode_into_libs=yes 13970 13971 # Ideally, we could use ldconfig to report *all* directores which are 13972 # searched for libraries, however this is still not possible. Aside from not 13973 # being certain /sbin/ldconfig is available, command 13974 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13975 # even though it is searched at run-time. Try to do the best guess by 13976 # appending ld.so.conf contents (and includes) to the search path. 13977 if test -f /etc/ld.so.conf; then 13978 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' ' '` 13979 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13980 fi 13981 13982 # We used to test for /lib/ld.so.1 and disable shared libraries on 13983 # powerpc, because MkLinux only supported shared libraries with the 13984 # GNU dynamic linker. Since this was broken with cross compilers, 13985 # most powerpc-linux boxes support dynamic linking these days and 13986 # people can always --disable-shared, the test was removed, and we 13987 # assume the GNU/Linux dynamic linker is in use. 13988 dynamic_linker='GNU/Linux ld.so' 13989 ;; 13990 13991netbsdelf*-gnu) 13992 version_type=linux 13993 need_lib_prefix=no 13994 need_version=no 13995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13996 soname_spec='${libname}${release}${shared_ext}$major' 13997 shlibpath_var=LD_LIBRARY_PATH 13998 shlibpath_overrides_runpath=no 13999 hardcode_into_libs=yes 14000 dynamic_linker='NetBSD ld.elf_so' 14001 ;; 14002 14003netbsd*) 14004 version_type=sunos 14005 need_lib_prefix=no 14006 need_version=no 14007 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14008 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14010 dynamic_linker='NetBSD (a.out) ld.so' 14011 else 14012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14013 soname_spec='$libname$release$shared_ext$major' 14014 dynamic_linker='NetBSD ld.elf_so' 14015 fi 14016 shlibpath_var=LD_LIBRARY_PATH 14017 shlibpath_overrides_runpath=yes 14018 hardcode_into_libs=yes 14019 ;; 14020 14021newsos6) 14022 version_type=linux # correct to gnu/linux during the next big refactor 14023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14024 shlibpath_var=LD_LIBRARY_PATH 14025 shlibpath_overrides_runpath=yes 14026 ;; 14027 14028*nto* | *qnx*) 14029 version_type=qnx 14030 need_lib_prefix=no 14031 need_version=no 14032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14033 soname_spec='$libname$release$shared_ext$major' 14034 shlibpath_var=LD_LIBRARY_PATH 14035 shlibpath_overrides_runpath=no 14036 hardcode_into_libs=yes 14037 dynamic_linker='ldqnx.so' 14038 ;; 14039 14040openbsd* | bitrig*) 14041 version_type=sunos 14042 sys_lib_dlsearch_path_spec=/usr/lib 14043 need_lib_prefix=no 14044 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14045 need_version=no 14046 else 14047 need_version=yes 14048 fi 14049 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14051 shlibpath_var=LD_LIBRARY_PATH 14052 shlibpath_overrides_runpath=yes 14053 ;; 14054 14055os2*) 14056 libname_spec='$name' 14057 version_type=windows 14058 shrext_cmds=.dll 14059 need_version=no 14060 need_lib_prefix=no 14061 # OS/2 can only load a DLL with a base name of 8 characters or less. 14062 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 14063 v=$($ECHO $release$versuffix | tr -d .-); 14064 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 14065 $ECHO $n$v`$shared_ext' 14066 library_names_spec='${libname}_dll.$libext' 14067 dynamic_linker='OS/2 ld.exe' 14068 shlibpath_var=BEGINLIBPATH 14069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14070 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14071 postinstall_cmds='base_file=`basename \$file`~ 14072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 14073 dldir=$destdir/`dirname \$dlpath`~ 14074 test -d \$dldir || mkdir -p \$dldir~ 14075 $install_prog $dir/$dlname \$dldir/$dlname~ 14076 chmod a+x \$dldir/$dlname~ 14077 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14078 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14079 fi' 14080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 14081 dlpath=$dir/\$dldll~ 14082 $RM \$dlpath' 14083 ;; 14084 14085osf3* | osf4* | osf5*) 14086 version_type=osf 14087 need_lib_prefix=no 14088 need_version=no 14089 soname_spec='$libname$release$shared_ext$major' 14090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14091 shlibpath_var=LD_LIBRARY_PATH 14092 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14094 ;; 14095 14096rdos*) 14097 dynamic_linker=no 14098 ;; 14099 14100solaris*) 14101 version_type=linux # correct to gnu/linux during the next big refactor 14102 need_lib_prefix=no 14103 need_version=no 14104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14105 soname_spec='$libname$release$shared_ext$major' 14106 shlibpath_var=LD_LIBRARY_PATH 14107 shlibpath_overrides_runpath=yes 14108 hardcode_into_libs=yes 14109 # ldd complains unless libraries are executable 14110 postinstall_cmds='chmod +x $lib' 14111 ;; 14112 14113sunos4*) 14114 version_type=sunos 14115 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14116 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14117 shlibpath_var=LD_LIBRARY_PATH 14118 shlibpath_overrides_runpath=yes 14119 if test yes = "$with_gnu_ld"; then 14120 need_lib_prefix=no 14121 fi 14122 need_version=yes 14123 ;; 14124 14125sysv4 | sysv4.3*) 14126 version_type=linux # correct to gnu/linux during the next big refactor 14127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14128 soname_spec='$libname$release$shared_ext$major' 14129 shlibpath_var=LD_LIBRARY_PATH 14130 case $host_vendor in 14131 sni) 14132 shlibpath_overrides_runpath=no 14133 need_lib_prefix=no 14134 runpath_var=LD_RUN_PATH 14135 ;; 14136 siemens) 14137 need_lib_prefix=no 14138 ;; 14139 motorola) 14140 need_lib_prefix=no 14141 need_version=no 14142 shlibpath_overrides_runpath=no 14143 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14144 ;; 14145 esac 14146 ;; 14147 14148sysv4*MP*) 14149 if test -d /usr/nec; then 14150 version_type=linux # correct to gnu/linux during the next big refactor 14151 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 14152 soname_spec='$libname$shared_ext.$major' 14153 shlibpath_var=LD_LIBRARY_PATH 14154 fi 14155 ;; 14156 14157sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14158 version_type=sco 14159 need_lib_prefix=no 14160 need_version=no 14161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 14162 soname_spec='$libname$release$shared_ext$major' 14163 shlibpath_var=LD_LIBRARY_PATH 14164 shlibpath_overrides_runpath=yes 14165 hardcode_into_libs=yes 14166 if test yes = "$with_gnu_ld"; then 14167 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14168 else 14169 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14170 case $host_os in 14171 sco3.2v5*) 14172 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14173 ;; 14174 esac 14175 fi 14176 sys_lib_dlsearch_path_spec='/usr/lib' 14177 ;; 14178 14179tpf*) 14180 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14181 version_type=linux # correct to gnu/linux during the next big refactor 14182 need_lib_prefix=no 14183 need_version=no 14184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14185 shlibpath_var=LD_LIBRARY_PATH 14186 shlibpath_overrides_runpath=no 14187 hardcode_into_libs=yes 14188 ;; 14189 14190uts4*) 14191 version_type=linux # correct to gnu/linux during the next big refactor 14192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14193 soname_spec='$libname$release$shared_ext$major' 14194 shlibpath_var=LD_LIBRARY_PATH 14195 ;; 14196 14197*) 14198 dynamic_linker=no 14199 ;; 14200esac 14201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14202$as_echo "$dynamic_linker" >&6; } 14203test no = "$dynamic_linker" && can_build_shared=no 14204 14205variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14206if test yes = "$GCC"; then 14207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14208fi 14209 14210if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 14211 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 14212fi 14213 14214if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 14215 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 14216fi 14217 14218# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 14219configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 14220 14221# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 14222func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 14223 14224# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 14225configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14324$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14325hardcode_action= 14326if test -n "$hardcode_libdir_flag_spec" || 14327 test -n "$runpath_var" || 14328 test yes = "$hardcode_automatic"; then 14329 14330 # We can hardcode non-existent directories. 14331 if test no != "$hardcode_direct" && 14332 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14333 # have to relink, otherwise we might link with an installed library 14334 # when we should be linking with a yet-to-be-installed one 14335 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 14336 test no != "$hardcode_minus_L"; then 14337 # Linking always hardcodes the temporary library directory. 14338 hardcode_action=relink 14339 else 14340 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14341 hardcode_action=immediate 14342 fi 14343else 14344 # We cannot hardcode anything, or else we can only hardcode existing 14345 # directories. 14346 hardcode_action=unsupported 14347fi 14348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14349$as_echo "$hardcode_action" >&6; } 14350 14351if test relink = "$hardcode_action" || 14352 test yes = "$inherit_rpath"; then 14353 # Fast installation is not supported 14354 enable_fast_install=no 14355elif test yes = "$shlibpath_overrides_runpath" || 14356 test no = "$enable_shared"; then 14357 # Fast installation is not necessary 14358 enable_fast_install=needless 14359fi 14360 14361 14362 14363 14364 14365 14366 if test yes != "$enable_dlopen"; then 14367 enable_dlopen=unknown 14368 enable_dlopen_self=unknown 14369 enable_dlopen_self_static=unknown 14370else 14371 lt_cv_dlopen=no 14372 lt_cv_dlopen_libs= 14373 14374 case $host_os in 14375 beos*) 14376 lt_cv_dlopen=load_add_on 14377 lt_cv_dlopen_libs= 14378 lt_cv_dlopen_self=yes 14379 ;; 14380 14381 mingw* | pw32* | cegcc*) 14382 lt_cv_dlopen=LoadLibrary 14383 lt_cv_dlopen_libs= 14384 ;; 14385 14386 cygwin*) 14387 lt_cv_dlopen=dlopen 14388 lt_cv_dlopen_libs= 14389 ;; 14390 14391 darwin*) 14392 # if libdl is installed we need to link against it 14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14394$as_echo_n "checking for dlopen in -ldl... " >&6; } 14395if ${ac_cv_lib_dl_dlopen+:} false; then : 14396 $as_echo_n "(cached) " >&6 14397else 14398 ac_check_lib_save_LIBS=$LIBS 14399LIBS="-ldl $LIBS" 14400cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14401/* end confdefs.h. */ 14402 14403/* Override any GCC internal prototype to avoid an error. 14404 Use char because int might match the return type of a GCC 14405 builtin and then its argument prototype would still apply. */ 14406#ifdef __cplusplus 14407extern "C" 14408#endif 14409char dlopen (); 14410int 14411main () 14412{ 14413return dlopen (); 14414 ; 14415 return 0; 14416} 14417_ACEOF 14418if ac_fn_c_try_link "$LINENO"; then : 14419 ac_cv_lib_dl_dlopen=yes 14420else 14421 ac_cv_lib_dl_dlopen=no 14422fi 14423rm -f core conftest.err conftest.$ac_objext \ 14424 conftest$ac_exeext conftest.$ac_ext 14425LIBS=$ac_check_lib_save_LIBS 14426fi 14427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14428$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14429if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14430 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14431else 14432 14433 lt_cv_dlopen=dyld 14434 lt_cv_dlopen_libs= 14435 lt_cv_dlopen_self=yes 14436 14437fi 14438 14439 ;; 14440 14441 tpf*) 14442 # Don't try to run any link tests for TPF. We know it's impossible 14443 # because TPF is a cross-compiler, and we know how we open DSOs. 14444 lt_cv_dlopen=dlopen 14445 lt_cv_dlopen_libs= 14446 lt_cv_dlopen_self=no 14447 ;; 14448 14449 *) 14450 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14451if test "x$ac_cv_func_shl_load" = xyes; then : 14452 lt_cv_dlopen=shl_load 14453else 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14455$as_echo_n "checking for shl_load in -ldld... " >&6; } 14456if ${ac_cv_lib_dld_shl_load+:} false; then : 14457 $as_echo_n "(cached) " >&6 14458else 14459 ac_check_lib_save_LIBS=$LIBS 14460LIBS="-ldld $LIBS" 14461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14462/* end confdefs.h. */ 14463 14464/* Override any GCC internal prototype to avoid an error. 14465 Use char because int might match the return type of a GCC 14466 builtin and then its argument prototype would still apply. */ 14467#ifdef __cplusplus 14468extern "C" 14469#endif 14470char shl_load (); 14471int 14472main () 14473{ 14474return shl_load (); 14475 ; 14476 return 0; 14477} 14478_ACEOF 14479if ac_fn_c_try_link "$LINENO"; then : 14480 ac_cv_lib_dld_shl_load=yes 14481else 14482 ac_cv_lib_dld_shl_load=no 14483fi 14484rm -f core conftest.err conftest.$ac_objext \ 14485 conftest$ac_exeext conftest.$ac_ext 14486LIBS=$ac_check_lib_save_LIBS 14487fi 14488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14489$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14490if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14491 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14492else 14493 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14494if test "x$ac_cv_func_dlopen" = xyes; then : 14495 lt_cv_dlopen=dlopen 14496else 14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14498$as_echo_n "checking for dlopen in -ldl... " >&6; } 14499if ${ac_cv_lib_dl_dlopen+:} false; then : 14500 $as_echo_n "(cached) " >&6 14501else 14502 ac_check_lib_save_LIBS=$LIBS 14503LIBS="-ldl $LIBS" 14504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14505/* end confdefs.h. */ 14506 14507/* Override any GCC internal prototype to avoid an error. 14508 Use char because int might match the return type of a GCC 14509 builtin and then its argument prototype would still apply. */ 14510#ifdef __cplusplus 14511extern "C" 14512#endif 14513char dlopen (); 14514int 14515main () 14516{ 14517return dlopen (); 14518 ; 14519 return 0; 14520} 14521_ACEOF 14522if ac_fn_c_try_link "$LINENO"; then : 14523 ac_cv_lib_dl_dlopen=yes 14524else 14525 ac_cv_lib_dl_dlopen=no 14526fi 14527rm -f core conftest.err conftest.$ac_objext \ 14528 conftest$ac_exeext conftest.$ac_ext 14529LIBS=$ac_check_lib_save_LIBS 14530fi 14531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14532$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14533if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14534 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14535else 14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14537$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14538if ${ac_cv_lib_svld_dlopen+:} false; then : 14539 $as_echo_n "(cached) " >&6 14540else 14541 ac_check_lib_save_LIBS=$LIBS 14542LIBS="-lsvld $LIBS" 14543cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14544/* end confdefs.h. */ 14545 14546/* Override any GCC internal prototype to avoid an error. 14547 Use char because int might match the return type of a GCC 14548 builtin and then its argument prototype would still apply. */ 14549#ifdef __cplusplus 14550extern "C" 14551#endif 14552char dlopen (); 14553int 14554main () 14555{ 14556return dlopen (); 14557 ; 14558 return 0; 14559} 14560_ACEOF 14561if ac_fn_c_try_link "$LINENO"; then : 14562 ac_cv_lib_svld_dlopen=yes 14563else 14564 ac_cv_lib_svld_dlopen=no 14565fi 14566rm -f core conftest.err conftest.$ac_objext \ 14567 conftest$ac_exeext conftest.$ac_ext 14568LIBS=$ac_check_lib_save_LIBS 14569fi 14570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14571$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14572if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14573 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14574else 14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14576$as_echo_n "checking for dld_link in -ldld... " >&6; } 14577if ${ac_cv_lib_dld_dld_link+:} false; then : 14578 $as_echo_n "(cached) " >&6 14579else 14580 ac_check_lib_save_LIBS=$LIBS 14581LIBS="-ldld $LIBS" 14582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14583/* end confdefs.h. */ 14584 14585/* Override any GCC internal prototype to avoid an error. 14586 Use char because int might match the return type of a GCC 14587 builtin and then its argument prototype would still apply. */ 14588#ifdef __cplusplus 14589extern "C" 14590#endif 14591char dld_link (); 14592int 14593main () 14594{ 14595return dld_link (); 14596 ; 14597 return 0; 14598} 14599_ACEOF 14600if ac_fn_c_try_link "$LINENO"; then : 14601 ac_cv_lib_dld_dld_link=yes 14602else 14603 ac_cv_lib_dld_dld_link=no 14604fi 14605rm -f core conftest.err conftest.$ac_objext \ 14606 conftest$ac_exeext conftest.$ac_ext 14607LIBS=$ac_check_lib_save_LIBS 14608fi 14609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14610$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14611if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14612 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14613fi 14614 14615 14616fi 14617 14618 14619fi 14620 14621 14622fi 14623 14624 14625fi 14626 14627 14628fi 14629 14630 ;; 14631 esac 14632 14633 if test no = "$lt_cv_dlopen"; then 14634 enable_dlopen=no 14635 else 14636 enable_dlopen=yes 14637 fi 14638 14639 case $lt_cv_dlopen in 14640 dlopen) 14641 save_CPPFLAGS=$CPPFLAGS 14642 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14643 14644 save_LDFLAGS=$LDFLAGS 14645 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14646 14647 save_LIBS=$LIBS 14648 LIBS="$lt_cv_dlopen_libs $LIBS" 14649 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14651$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14652if ${lt_cv_dlopen_self+:} false; then : 14653 $as_echo_n "(cached) " >&6 14654else 14655 if test yes = "$cross_compiling"; then : 14656 lt_cv_dlopen_self=cross 14657else 14658 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14659 lt_status=$lt_dlunknown 14660 cat > conftest.$ac_ext <<_LT_EOF 14661#line $LINENO "configure" 14662#include "confdefs.h" 14663 14664#if HAVE_DLFCN_H 14665#include <dlfcn.h> 14666#endif 14667 14668#include <stdio.h> 14669 14670#ifdef RTLD_GLOBAL 14671# define LT_DLGLOBAL RTLD_GLOBAL 14672#else 14673# ifdef DL_GLOBAL 14674# define LT_DLGLOBAL DL_GLOBAL 14675# else 14676# define LT_DLGLOBAL 0 14677# endif 14678#endif 14679 14680/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14681 find out it does not work in some platform. */ 14682#ifndef LT_DLLAZY_OR_NOW 14683# ifdef RTLD_LAZY 14684# define LT_DLLAZY_OR_NOW RTLD_LAZY 14685# else 14686# ifdef DL_LAZY 14687# define LT_DLLAZY_OR_NOW DL_LAZY 14688# else 14689# ifdef RTLD_NOW 14690# define LT_DLLAZY_OR_NOW RTLD_NOW 14691# else 14692# ifdef DL_NOW 14693# define LT_DLLAZY_OR_NOW DL_NOW 14694# else 14695# define LT_DLLAZY_OR_NOW 0 14696# endif 14697# endif 14698# endif 14699# endif 14700#endif 14701 14702/* When -fvisibility=hidden is used, assume the code has been annotated 14703 correspondingly for the symbols needed. */ 14704#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14705int fnord () __attribute__((visibility("default"))); 14706#endif 14707 14708int fnord () { return 42; } 14709int main () 14710{ 14711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14712 int status = $lt_dlunknown; 14713 14714 if (self) 14715 { 14716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14717 else 14718 { 14719 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14720 else puts (dlerror ()); 14721 } 14722 /* dlclose (self); */ 14723 } 14724 else 14725 puts (dlerror ()); 14726 14727 return status; 14728} 14729_LT_EOF 14730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14731 (eval $ac_link) 2>&5 14732 ac_status=$? 14733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14734 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14735 (./conftest; exit; ) >&5 2>/dev/null 14736 lt_status=$? 14737 case x$lt_status in 14738 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14739 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14740 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14741 esac 14742 else : 14743 # compilation failed 14744 lt_cv_dlopen_self=no 14745 fi 14746fi 14747rm -fr conftest* 14748 14749 14750fi 14751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14752$as_echo "$lt_cv_dlopen_self" >&6; } 14753 14754 if test yes = "$lt_cv_dlopen_self"; then 14755 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14757$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14758if ${lt_cv_dlopen_self_static+:} false; then : 14759 $as_echo_n "(cached) " >&6 14760else 14761 if test yes = "$cross_compiling"; then : 14762 lt_cv_dlopen_self_static=cross 14763else 14764 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14765 lt_status=$lt_dlunknown 14766 cat > conftest.$ac_ext <<_LT_EOF 14767#line $LINENO "configure" 14768#include "confdefs.h" 14769 14770#if HAVE_DLFCN_H 14771#include <dlfcn.h> 14772#endif 14773 14774#include <stdio.h> 14775 14776#ifdef RTLD_GLOBAL 14777# define LT_DLGLOBAL RTLD_GLOBAL 14778#else 14779# ifdef DL_GLOBAL 14780# define LT_DLGLOBAL DL_GLOBAL 14781# else 14782# define LT_DLGLOBAL 0 14783# endif 14784#endif 14785 14786/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14787 find out it does not work in some platform. */ 14788#ifndef LT_DLLAZY_OR_NOW 14789# ifdef RTLD_LAZY 14790# define LT_DLLAZY_OR_NOW RTLD_LAZY 14791# else 14792# ifdef DL_LAZY 14793# define LT_DLLAZY_OR_NOW DL_LAZY 14794# else 14795# ifdef RTLD_NOW 14796# define LT_DLLAZY_OR_NOW RTLD_NOW 14797# else 14798# ifdef DL_NOW 14799# define LT_DLLAZY_OR_NOW DL_NOW 14800# else 14801# define LT_DLLAZY_OR_NOW 0 14802# endif 14803# endif 14804# endif 14805# endif 14806#endif 14807 14808/* When -fvisibility=hidden is used, assume the code has been annotated 14809 correspondingly for the symbols needed. */ 14810#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14811int fnord () __attribute__((visibility("default"))); 14812#endif 14813 14814int fnord () { return 42; } 14815int main () 14816{ 14817 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14818 int status = $lt_dlunknown; 14819 14820 if (self) 14821 { 14822 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14823 else 14824 { 14825 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14826 else puts (dlerror ()); 14827 } 14828 /* dlclose (self); */ 14829 } 14830 else 14831 puts (dlerror ()); 14832 14833 return status; 14834} 14835_LT_EOF 14836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14837 (eval $ac_link) 2>&5 14838 ac_status=$? 14839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14840 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14841 (./conftest; exit; ) >&5 2>/dev/null 14842 lt_status=$? 14843 case x$lt_status in 14844 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14845 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14846 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14847 esac 14848 else : 14849 # compilation failed 14850 lt_cv_dlopen_self_static=no 14851 fi 14852fi 14853rm -fr conftest* 14854 14855 14856fi 14857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14858$as_echo "$lt_cv_dlopen_self_static" >&6; } 14859 fi 14860 14861 CPPFLAGS=$save_CPPFLAGS 14862 LDFLAGS=$save_LDFLAGS 14863 LIBS=$save_LIBS 14864 ;; 14865 esac 14866 14867 case $lt_cv_dlopen_self in 14868 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14869 *) enable_dlopen_self=unknown ;; 14870 esac 14871 14872 case $lt_cv_dlopen_self_static in 14873 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14874 *) enable_dlopen_self_static=unknown ;; 14875 esac 14876fi 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894striplib= 14895old_striplib= 14896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14897$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14898if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14899 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14900 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14902$as_echo "yes" >&6; } 14903else 14904# FIXME - insert some real tests, host_os isn't really good enough 14905 case $host_os in 14906 darwin*) 14907 if test -n "$STRIP"; then 14908 striplib="$STRIP -x" 14909 old_striplib="$STRIP -S" 14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14911$as_echo "yes" >&6; } 14912 else 14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14914$as_echo "no" >&6; } 14915 fi 14916 ;; 14917 *) 14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14919$as_echo "no" >&6; } 14920 ;; 14921 esac 14922fi 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 # Report what library types will actually be built 14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14937$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14939$as_echo "$can_build_shared" >&6; } 14940 14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14942$as_echo_n "checking whether to build shared libraries... " >&6; } 14943 test no = "$can_build_shared" && enable_shared=no 14944 14945 # On AIX, shared libraries and static libraries use the same namespace, and 14946 # are all built from PIC. 14947 case $host_os in 14948 aix3*) 14949 test yes = "$enable_shared" && enable_static=no 14950 if test -n "$RANLIB"; then 14951 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14952 postinstall_cmds='$RANLIB $lib' 14953 fi 14954 ;; 14955 14956 aix[4-9]*) 14957 if test ia64 != "$host_cpu"; then 14958 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14959 yes,aix,yes) ;; # shared object as lib.so file only 14960 yes,svr4,*) ;; # shared object as lib.so archive member only 14961 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14962 esac 14963 fi 14964 ;; 14965 esac 14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14967$as_echo "$enable_shared" >&6; } 14968 14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14970$as_echo_n "checking whether to build static libraries... " >&6; } 14971 # Make sure either enable_shared or enable_static is yes. 14972 test yes = "$enable_shared" || enable_static=yes 14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14974$as_echo "$enable_static" >&6; } 14975 14976 14977 14978 14979fi 14980ac_ext=c 14981ac_cpp='$CPP $CPPFLAGS' 14982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14984ac_compiler_gnu=$ac_cv_c_compiler_gnu 14985 14986CC=$lt_save_CC 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 ac_config_commands="$ac_config_commands libtool" 15003 15004 15005 15006 15007# Only expand once: 15008 15009 15010 15011ac_ext=cpp 15012ac_cpp='$CXXCPP $CPPFLAGS' 15013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15016if test -z "$CXX"; then 15017 if test -n "$CCC"; then 15018 CXX=$CCC 15019 else 15020 if test -n "$ac_tool_prefix"; then 15021 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 15022 do 15023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 15024set dummy $ac_tool_prefix$ac_prog; ac_word=$2 15025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15026$as_echo_n "checking for $ac_word... " >&6; } 15027if ${ac_cv_prog_CXX+:} false; then : 15028 $as_echo_n "(cached) " >&6 15029else 15030 if test -n "$CXX"; then 15031 ac_cv_prog_CXX="$CXX" # Let the user override the test. 15032else 15033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15034for as_dir in $PATH 15035do 15036 IFS=$as_save_IFS 15037 test -z "$as_dir" && as_dir=. 15038 for ac_exec_ext in '' $ac_executable_extensions; do 15039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15040 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 15041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15042 break 2 15043 fi 15044done 15045 done 15046IFS=$as_save_IFS 15047 15048fi 15049fi 15050CXX=$ac_cv_prog_CXX 15051if test -n "$CXX"; then 15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 15053$as_echo "$CXX" >&6; } 15054else 15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15056$as_echo "no" >&6; } 15057fi 15058 15059 15060 test -n "$CXX" && break 15061 done 15062fi 15063if test -z "$CXX"; then 15064 ac_ct_CXX=$CXX 15065 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 15066do 15067 # Extract the first word of "$ac_prog", so it can be a program name with args. 15068set dummy $ac_prog; ac_word=$2 15069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15070$as_echo_n "checking for $ac_word... " >&6; } 15071if ${ac_cv_prog_ac_ct_CXX+:} false; then : 15072 $as_echo_n "(cached) " >&6 15073else 15074 if test -n "$ac_ct_CXX"; then 15075 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 15076else 15077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15078for as_dir in $PATH 15079do 15080 IFS=$as_save_IFS 15081 test -z "$as_dir" && as_dir=. 15082 for ac_exec_ext in '' $ac_executable_extensions; do 15083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15084 ac_cv_prog_ac_ct_CXX="$ac_prog" 15085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15086 break 2 15087 fi 15088done 15089 done 15090IFS=$as_save_IFS 15091 15092fi 15093fi 15094ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 15095if test -n "$ac_ct_CXX"; then 15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 15097$as_echo "$ac_ct_CXX" >&6; } 15098else 15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15100$as_echo "no" >&6; } 15101fi 15102 15103 15104 test -n "$ac_ct_CXX" && break 15105done 15106 15107 if test "x$ac_ct_CXX" = x; then 15108 CXX="g++" 15109 else 15110 case $cross_compiling:$ac_tool_warned in 15111yes:) 15112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15114ac_tool_warned=yes ;; 15115esac 15116 CXX=$ac_ct_CXX 15117 fi 15118fi 15119 15120 fi 15121fi 15122# Provide some information about the compiler. 15123$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 15124set X $ac_compile 15125ac_compiler=$2 15126for ac_option in --version -v -V -qversion; do 15127 { { ac_try="$ac_compiler $ac_option >&5" 15128case "(($ac_try" in 15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15130 *) ac_try_echo=$ac_try;; 15131esac 15132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15133$as_echo "$ac_try_echo"; } >&5 15134 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 15135 ac_status=$? 15136 if test -s conftest.err; then 15137 sed '10a\ 15138... rest of stderr output deleted ... 15139 10q' conftest.err >conftest.er1 15140 cat conftest.er1 >&5 15141 fi 15142 rm -f conftest.er1 conftest.err 15143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15144 test $ac_status = 0; } 15145done 15146 15147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 15148$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 15149if ${ac_cv_cxx_compiler_gnu+:} false; then : 15150 $as_echo_n "(cached) " >&6 15151else 15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15153/* end confdefs.h. */ 15154 15155int 15156main () 15157{ 15158#ifndef __GNUC__ 15159 choke me 15160#endif 15161 15162 ; 15163 return 0; 15164} 15165_ACEOF 15166if ac_fn_cxx_try_compile "$LINENO"; then : 15167 ac_compiler_gnu=yes 15168else 15169 ac_compiler_gnu=no 15170fi 15171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15172ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 15173 15174fi 15175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 15176$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 15177if test $ac_compiler_gnu = yes; then 15178 GXX=yes 15179else 15180 GXX= 15181fi 15182ac_test_CXXFLAGS=${CXXFLAGS+set} 15183ac_save_CXXFLAGS=$CXXFLAGS 15184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 15185$as_echo_n "checking whether $CXX accepts -g... " >&6; } 15186if ${ac_cv_prog_cxx_g+:} false; then : 15187 $as_echo_n "(cached) " >&6 15188else 15189 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 15190 ac_cxx_werror_flag=yes 15191 ac_cv_prog_cxx_g=no 15192 CXXFLAGS="-g" 15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15194/* end confdefs.h. */ 15195 15196int 15197main () 15198{ 15199 15200 ; 15201 return 0; 15202} 15203_ACEOF 15204if ac_fn_cxx_try_compile "$LINENO"; then : 15205 ac_cv_prog_cxx_g=yes 15206else 15207 CXXFLAGS="" 15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15209/* end confdefs.h. */ 15210 15211int 15212main () 15213{ 15214 15215 ; 15216 return 0; 15217} 15218_ACEOF 15219if ac_fn_cxx_try_compile "$LINENO"; then : 15220 15221else 15222 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 15223 CXXFLAGS="-g" 15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15225/* end confdefs.h. */ 15226 15227int 15228main () 15229{ 15230 15231 ; 15232 return 0; 15233} 15234_ACEOF 15235if ac_fn_cxx_try_compile "$LINENO"; then : 15236 ac_cv_prog_cxx_g=yes 15237fi 15238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15239fi 15240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15241fi 15242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15243 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 15244fi 15245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 15246$as_echo "$ac_cv_prog_cxx_g" >&6; } 15247if test "$ac_test_CXXFLAGS" = set; then 15248 CXXFLAGS=$ac_save_CXXFLAGS 15249elif test $ac_cv_prog_cxx_g = yes; then 15250 if test "$GXX" = yes; then 15251 CXXFLAGS="-g -O2" 15252 else 15253 CXXFLAGS="-g" 15254 fi 15255else 15256 if test "$GXX" = yes; then 15257 CXXFLAGS="-O2" 15258 else 15259 CXXFLAGS= 15260 fi 15261fi 15262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 15263$as_echo_n "checking for $CXX option to enable C++11 features... " >&6; } 15264ac_ext=cpp 15265ac_cpp='$CXXCPP $CPPFLAGS' 15266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15269if ${ac_cv_prog_cxx_cxx11+:} false; then : 15270 $as_echo_n "(cached) " >&6 15271else 15272 ac_cv_prog_cxx_cxx11=no 15273ac_save_CXX=$CXX 15274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15275/* end confdefs.h. */ 15276 15277#include <deque> 15278#include <functional> 15279#include <memory> 15280#include <tuple> 15281#include <array> 15282#include <regex> 15283#include <iostream> 15284 15285namespace cxx11test 15286{ 15287 typedef std::shared_ptr<std::string> sptr; 15288 typedef std::weak_ptr<std::string> wptr; 15289 15290 typedef std::tuple<std::string,int,double> tp; 15291 typedef std::array<int, 20> int_array; 15292 15293 constexpr int get_val() { return 20; } 15294 15295 struct testinit 15296 { 15297 int i; 15298 double d; 15299 }; 15300 15301 class delegate { 15302 public: 15303 delegate(int n) : n(n) {} 15304 delegate(): delegate(2354) {} 15305 15306 virtual int getval() { return this->n; }; 15307 protected: 15308 int n; 15309 }; 15310 15311 class overridden : public delegate { 15312 public: 15313 overridden(int n): delegate(n) {} 15314 virtual int getval() override final { return this->n * 2; } 15315 }; 15316 15317 class nocopy { 15318 public: 15319 nocopy(int i): i(i) {} 15320 nocopy() = default; 15321 nocopy(const nocopy&) = delete; 15322 nocopy & operator=(const nocopy&) = delete; 15323 private: 15324 int i; 15325 }; 15326} 15327 15328 15329#include <algorithm> 15330#include <cstdlib> 15331#include <fstream> 15332#include <iomanip> 15333#include <iostream> 15334#include <list> 15335#include <map> 15336#include <set> 15337#include <sstream> 15338#include <stdexcept> 15339#include <string> 15340#include <utility> 15341#include <vector> 15342 15343namespace test { 15344 typedef std::vector<std::string> string_vec; 15345 typedef std::pair<int,bool> map_value; 15346 typedef std::map<std::string,map_value> map_type; 15347 typedef std::set<int> set_type; 15348 15349 template<typename T> 15350 class printer { 15351 public: 15352 printer(std::ostringstream& os): os(os) {} 15353 void operator() (T elem) { os << elem << std::endl; } 15354 private: 15355 std::ostringstream& os; 15356 }; 15357} 15358 15359int 15360main () 15361{ 15362 15363{ 15364 // Test auto and decltype 15365 std::deque<int> d; 15366 d.push_front(43); 15367 d.push_front(484); 15368 d.push_front(3); 15369 d.push_front(844); 15370 int total = 0; 15371 for (auto i = d.begin(); i != d.end(); ++i) { total += *i; } 15372 15373 auto a1 = 6538; 15374 auto a2 = 48573953.4; 15375 auto a3 = "String literal"; 15376 15377 decltype(a2) a4 = 34895.034; 15378} 15379{ 15380 // Test constexpr 15381 short sa[cxx11test::get_val()] = { 0 }; 15382} 15383{ 15384 // Test initialiser lists 15385 cxx11test::testinit il = { 4323, 435234.23544 }; 15386} 15387{ 15388 // Test range-based for and lambda 15389 cxx11test::int_array array = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 15390 for (int &x : array) { x += 23; } 15391 std::for_each(array.begin(), array.end(), [](int v1){ std::cout << v1; }); 15392} 15393{ 15394 using cxx11test::sptr; 15395 using cxx11test::wptr; 15396 15397 sptr sp(new std::string("ASCII string")); 15398 wptr wp(sp); 15399 sptr sp2(wp); 15400} 15401{ 15402 cxx11test::tp tuple("test", 54, 45.53434); 15403 double d = std::get<2>(tuple); 15404 std::string s; 15405 int i; 15406 std::tie(s,i,d) = tuple; 15407} 15408{ 15409 static std::regex filename_regex("^_?([a-z0-9_.]+-)+[a-z0-9]+$"); 15410 std::string testmatch("Test if this string matches"); 15411 bool match = std::regex_search(testmatch, filename_regex); 15412} 15413{ 15414 cxx11test::int_array array = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 15415 cxx11test::int_array::size_type size = array.size(); 15416} 15417{ 15418 // Test constructor delegation 15419 cxx11test::delegate d1; 15420 cxx11test::delegate d2(); 15421 cxx11test::delegate d3(45); 15422} 15423{ 15424 // Test override and final 15425 cxx11test::overridden o1(55464); 15426} 15427{ 15428 // Test nullptr 15429 char *c = nullptr; 15430} 15431{ 15432 // Test template brackets 15433 std::vector<std::pair<int,char*>> v1; 15434} 15435{ 15436 // Unicode literals 15437 char *utf8 = u8"UTF-8 string \u2500"; 15438 char16_t *utf16 = u"UTF-8 string \u2500"; 15439 char32_t *utf32 = U"UTF-32 string \u2500"; 15440} 15441 15442 15443 15444try { 15445 // Basic string. 15446 std::string teststr("ASCII text"); 15447 teststr += " string"; 15448 15449 // Simple vector. 15450 test::string_vec testvec; 15451 testvec.push_back(teststr); 15452 testvec.push_back("foo"); 15453 testvec.push_back("bar"); 15454 if (testvec.size() != 3) { 15455 throw std::runtime_error("vector size is not 1"); 15456 } 15457 15458 // Dump vector into stringstream and obtain string. 15459 std::ostringstream os; 15460 for (test::string_vec::const_iterator i = testvec.begin(); 15461 i != testvec.end(); ++i) { 15462 if (i + 1 != testvec.end()) { 15463 os << teststr << '\n'; 15464 } 15465 } 15466 // Check algorithms work. 15467 std::for_each(testvec.begin(), testvec.end(), test::printer<std::string>(os)); 15468 std::string os_out = os.str(); 15469 15470 // Test pair and map. 15471 test::map_type testmap; 15472 testmap.insert(std::make_pair(std::string("key"), 15473 std::make_pair(53,false))); 15474 15475 // Test set. 15476 int values[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 15477 test::set_type testset(values, values + sizeof(values)/sizeof(values[0])); 15478 std::list<int> testlist(testset.begin(), testset.end()); 15479 std::copy(testset.begin(), testset.end(), std::back_inserter(testlist)); 15480} catch (const std::exception& e) { 15481 std::cerr << "Caught exception: " << e.what() << std::endl; 15482 15483 // Test fstream 15484 std::ofstream of("test.txt"); 15485 of << "Test ASCII text\n" << std::flush; 15486 of << "N= " << std::hex << std::setw(8) << std::left << 534 << std::endl; 15487 of.close(); 15488} 15489std::exit(0); 15490 15491 ; 15492 return 0; 15493} 15494_ACEOF 15495for ac_arg in '' -std=gnu++11 -std=c++11 -std=gnu++0x -std=c++0x -qlanglvl=extended0x -AA 15496do 15497 CXX="$ac_save_CXX $ac_arg" 15498 if ac_fn_cxx_try_compile "$LINENO"; then : 15499 ac_cv_prog_cxx_cxx11=$ac_arg 15500fi 15501rm -f core conftest.err conftest.$ac_objext 15502 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 15503done 15504rm -f conftest.$ac_ext 15505CXX=$ac_save_CXX 15506 15507fi 15508# AC_CACHE_VAL 15509ac_prog_cxx_stdcxx_options= 15510case "x$ac_cv_prog_cxx_cxx11" in 15511 x) 15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 15513$as_echo "none needed" >&6; } ;; 15514 xno) 15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 15516$as_echo "unsupported" >&6; } ;; 15517 *) 15518 ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx11" 15519 CXX=$CXX$ac_prog_cxx_stdcxx_options 15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 15521$as_echo "$ac_cv_prog_cxx_cxx11" >&6; } ;; 15522esac 15523ac_ext=cpp 15524ac_cpp='$CXXCPP $CPPFLAGS' 15525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15528if test "x$ac_cv_prog_cxx_cxx11" != xno; then : 15529 ac_prog_cxx_stdcxx=cxx11 15530 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 15531 ac_cv_prog_cxx_cxx98=$ac_cv_prog_cxx_cxx11 15532else 15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 15534$as_echo_n "checking for $CXX option to enable C++98 features... " >&6; } 15535ac_ext=cpp 15536ac_cpp='$CXXCPP $CPPFLAGS' 15537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15540if ${ac_cv_prog_cxx_cxx98+:} false; then : 15541 $as_echo_n "(cached) " >&6 15542else 15543 ac_cv_prog_cxx_cxx98=no 15544ac_save_CXX=$CXX 15545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15546/* end confdefs.h. */ 15547 15548#include <algorithm> 15549#include <cstdlib> 15550#include <fstream> 15551#include <iomanip> 15552#include <iostream> 15553#include <list> 15554#include <map> 15555#include <set> 15556#include <sstream> 15557#include <stdexcept> 15558#include <string> 15559#include <utility> 15560#include <vector> 15561 15562namespace test { 15563 typedef std::vector<std::string> string_vec; 15564 typedef std::pair<int,bool> map_value; 15565 typedef std::map<std::string,map_value> map_type; 15566 typedef std::set<int> set_type; 15567 15568 template<typename T> 15569 class printer { 15570 public: 15571 printer(std::ostringstream& os): os(os) {} 15572 void operator() (T elem) { os << elem << std::endl; } 15573 private: 15574 std::ostringstream& os; 15575 }; 15576} 15577 15578int 15579main () 15580{ 15581 15582 15583try { 15584 // Basic string. 15585 std::string teststr("ASCII text"); 15586 teststr += " string"; 15587 15588 // Simple vector. 15589 test::string_vec testvec; 15590 testvec.push_back(teststr); 15591 testvec.push_back("foo"); 15592 testvec.push_back("bar"); 15593 if (testvec.size() != 3) { 15594 throw std::runtime_error("vector size is not 1"); 15595 } 15596 15597 // Dump vector into stringstream and obtain string. 15598 std::ostringstream os; 15599 for (test::string_vec::const_iterator i = testvec.begin(); 15600 i != testvec.end(); ++i) { 15601 if (i + 1 != testvec.end()) { 15602 os << teststr << '\n'; 15603 } 15604 } 15605 // Check algorithms work. 15606 std::for_each(testvec.begin(), testvec.end(), test::printer<std::string>(os)); 15607 std::string os_out = os.str(); 15608 15609 // Test pair and map. 15610 test::map_type testmap; 15611 testmap.insert(std::make_pair(std::string("key"), 15612 std::make_pair(53,false))); 15613 15614 // Test set. 15615 int values[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 15616 test::set_type testset(values, values + sizeof(values)/sizeof(values[0])); 15617 std::list<int> testlist(testset.begin(), testset.end()); 15618 std::copy(testset.begin(), testset.end(), std::back_inserter(testlist)); 15619} catch (const std::exception& e) { 15620 std::cerr << "Caught exception: " << e.what() << std::endl; 15621 15622 // Test fstream 15623 std::ofstream of("test.txt"); 15624 of << "Test ASCII text\n" << std::flush; 15625 of << "N= " << std::hex << std::setw(8) << std::left << 534 << std::endl; 15626 of.close(); 15627} 15628std::exit(0); 15629 15630 ; 15631 return 0; 15632} 15633_ACEOF 15634for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 15635do 15636 CXX="$ac_save_CXX $ac_arg" 15637 if ac_fn_cxx_try_compile "$LINENO"; then : 15638 ac_cv_prog_cxx_cxx98=$ac_arg 15639fi 15640rm -f core conftest.err conftest.$ac_objext 15641 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 15642done 15643rm -f conftest.$ac_ext 15644CXX=$ac_save_CXX 15645 15646fi 15647# AC_CACHE_VAL 15648ac_prog_cxx_stdcxx_options= 15649case "x$ac_cv_prog_cxx_cxx98" in 15650 x) 15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 15652$as_echo "none needed" >&6; } ;; 15653 xno) 15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 15655$as_echo "unsupported" >&6; } ;; 15656 *) 15657 ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx98" 15658 CXX=$CXX$ac_prog_cxx_stdcxx_options 15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 15660$as_echo "$ac_cv_prog_cxx_cxx98" >&6; } ;; 15661esac 15662ac_ext=cpp 15663ac_cpp='$CXXCPP $CPPFLAGS' 15664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15667if test "x$ac_cv_prog_cxx_cxx98" != xno; then : 15668 ac_prog_cxx_stdcxx=cxx98 15669 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 15670else 15671 ac_prog_cxx_stdcxx=no 15672 ac_cv_prog_cxx_stdcxx=no 15673fi 15674 15675fi 15676 15677ac_ext=c 15678ac_cpp='$CPP $CPPFLAGS' 15679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15681ac_compiler_gnu=$ac_cv_c_compiler_gnu 15682 15683depcc="$CXX" am_compiler_list= 15684 15685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 15686$as_echo_n "checking dependency style of $depcc... " >&6; } 15687if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 15688 $as_echo_n "(cached) " >&6 15689else 15690 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 15691 # We make a subdir and do the tests there. Otherwise we can end up 15692 # making bogus files that we don't know about and never remove. For 15693 # instance it was reported that on HP-UX the gcc test will end up 15694 # making a dummy file named 'D' -- because '-MD' means "put the output 15695 # in D". 15696 rm -rf conftest.dir 15697 mkdir conftest.dir 15698 # Copy depcomp to subdir because otherwise we won't find it if we're 15699 # using a relative directory. 15700 cp "$am_depcomp" conftest.dir 15701 cd conftest.dir 15702 # We will build objects and dependencies in a subdirectory because 15703 # it helps to detect inapplicable dependency modes. For instance 15704 # both Tru64's cc and ICC support -MD to output dependencies as a 15705 # side effect of compilation, but ICC will put the dependencies in 15706 # the current directory while Tru64 will put them in the object 15707 # directory. 15708 mkdir sub 15709 15710 am_cv_CXX_dependencies_compiler_type=none 15711 if test "$am_compiler_list" = ""; then 15712 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 15713 fi 15714 am__universal=false 15715 case " $depcc " in #( 15716 *\ -arch\ *\ -arch\ *) am__universal=true ;; 15717 esac 15718 15719 for depmode in $am_compiler_list; do 15720 # Setup a source with many dependencies, because some compilers 15721 # like to wrap large dependency lists on column 80 (with \), and 15722 # we should not choose a depcomp mode which is confused by this. 15723 # 15724 # We need to recreate these files for each test, as the compiler may 15725 # overwrite some of them when testing with obscure command lines. 15726 # This happens at least with the AIX C compiler. 15727 : > sub/conftest.c 15728 for i in 1 2 3 4 5 6; do 15729 echo '#include "conftst'$i'.h"' >> sub/conftest.c 15730 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 15731 # Solaris 10 /bin/sh. 15732 echo '/* dummy */' > sub/conftst$i.h 15733 done 15734 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 15735 15736 # We check with '-c' and '-o' for the sake of the "dashmstdout" 15737 # mode. It turns out that the SunPro C++ compiler does not properly 15738 # handle '-M -o', and we need to detect this. Also, some Intel 15739 # versions had trouble with output in subdirs. 15740 am__obj=sub/conftest.${OBJEXT-o} 15741 am__minus_obj="-o $am__obj" 15742 case $depmode in 15743 gcc) 15744 # This depmode causes a compiler race in universal mode. 15745 test "$am__universal" = false || continue 15746 ;; 15747 nosideeffect) 15748 # After this tag, mechanisms are not by side-effect, so they'll 15749 # only be used when explicitly requested. 15750 if test "x$enable_dependency_tracking" = xyes; then 15751 continue 15752 else 15753 break 15754 fi 15755 ;; 15756 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 15757 # This compiler won't grok '-c -o', but also, the minuso test has 15758 # not run yet. These depmodes are late enough in the game, and 15759 # so weak that their functioning should not be impacted. 15760 am__obj=conftest.${OBJEXT-o} 15761 am__minus_obj= 15762 ;; 15763 none) break ;; 15764 esac 15765 if depmode=$depmode \ 15766 source=sub/conftest.c object=$am__obj \ 15767 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 15768 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 15769 >/dev/null 2>conftest.err && 15770 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 15771 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 15772 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 15773 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 15774 # icc doesn't choke on unknown options, it will just issue warnings 15775 # or remarks (even with -Werror). So we grep stderr for any message 15776 # that says an option was ignored or not supported. 15777 # When given -MP, icc 7.0 and 7.1 complain thusly: 15778 # icc: Command line warning: ignoring option '-M'; no argument required 15779 # The diagnosis changed in icc 8.0: 15780 # icc: Command line remark: option '-MP' not supported 15781 if (grep 'ignoring option' conftest.err || 15782 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 15783 am_cv_CXX_dependencies_compiler_type=$depmode 15784 break 15785 fi 15786 fi 15787 done 15788 15789 cd .. 15790 rm -rf conftest.dir 15791else 15792 am_cv_CXX_dependencies_compiler_type=none 15793fi 15794 15795fi 15796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 15797$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 15798CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 15799 15800 if 15801 test "x$enable_dependency_tracking" != xno \ 15802 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 15803 am__fastdepCXX_TRUE= 15804 am__fastdepCXX_FALSE='#' 15805else 15806 am__fastdepCXX_TRUE='#' 15807 am__fastdepCXX_FALSE= 15808fi 15809 15810 15811 15812 15813func_stripname_cnf () 15814{ 15815 case $2 in 15816 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 15817 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 15818 esac 15819} # func_stripname_cnf 15820 15821 if test -n "$CXX" && ( test no != "$CXX" && 15822 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 15823 (test g++ != "$CXX"))); then 15824 ac_ext=cpp 15825ac_cpp='$CXXCPP $CPPFLAGS' 15826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 15830$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 15831if test -z "$CXXCPP"; then 15832 if ${ac_cv_prog_CXXCPP+:} false; then : 15833 $as_echo_n "(cached) " >&6 15834else 15835 # Double quotes because CXXCPP needs to be expanded 15836 for CXXCPP in "$CXX -E" "/lib/cpp" 15837 do 15838 ac_preproc_ok=false 15839for ac_cxx_preproc_warn_flag in '' yes 15840do 15841 # Use a header file that comes with gcc, so configuring glibc 15842 # with a fresh cross-compiler works. 15843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15844 # <limits.h> exists even on freestanding compilers. 15845 # On the NeXT, cc -E runs the code through the compiler's parser, 15846 # not just through cpp. "Syntax error" is here to catch this case. 15847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15848/* end confdefs.h. */ 15849#ifdef __STDC__ 15850# include <limits.h> 15851#else 15852# include <assert.h> 15853#endif 15854 Syntax error 15855_ACEOF 15856if ac_fn_cxx_try_cpp "$LINENO"; then : 15857 15858else 15859 # Broken: fails on valid input. 15860continue 15861fi 15862rm -f conftest.err conftest.i conftest.$ac_ext 15863 15864 # OK, works on sane cases. Now check whether nonexistent headers 15865 # can be detected and how. 15866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15867/* end confdefs.h. */ 15868#include <ac_nonexistent.h> 15869_ACEOF 15870if ac_fn_cxx_try_cpp "$LINENO"; then : 15871 # Broken: success on invalid input. 15872continue 15873else 15874 # Passes both tests. 15875ac_preproc_ok=: 15876break 15877fi 15878rm -f conftest.err conftest.i conftest.$ac_ext 15879 15880done 15881# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15882rm -f conftest.i conftest.err conftest.$ac_ext 15883if $ac_preproc_ok; then : 15884 break 15885fi 15886 15887 done 15888 ac_cv_prog_CXXCPP=$CXXCPP 15889 15890fi 15891 CXXCPP=$ac_cv_prog_CXXCPP 15892else 15893 ac_cv_prog_CXXCPP=$CXXCPP 15894fi 15895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 15896$as_echo "$CXXCPP" >&6; } 15897ac_preproc_ok=false 15898for ac_cxx_preproc_warn_flag in '' yes 15899do 15900 # Use a header file that comes with gcc, so configuring glibc 15901 # with a fresh cross-compiler works. 15902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15903 # <limits.h> exists even on freestanding compilers. 15904 # On the NeXT, cc -E runs the code through the compiler's parser, 15905 # not just through cpp. "Syntax error" is here to catch this case. 15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15907/* end confdefs.h. */ 15908#ifdef __STDC__ 15909# include <limits.h> 15910#else 15911# include <assert.h> 15912#endif 15913 Syntax error 15914_ACEOF 15915if ac_fn_cxx_try_cpp "$LINENO"; then : 15916 15917else 15918 # Broken: fails on valid input. 15919continue 15920fi 15921rm -f conftest.err conftest.i conftest.$ac_ext 15922 15923 # OK, works on sane cases. Now check whether nonexistent headers 15924 # can be detected and how. 15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15926/* end confdefs.h. */ 15927#include <ac_nonexistent.h> 15928_ACEOF 15929if ac_fn_cxx_try_cpp "$LINENO"; then : 15930 # Broken: success on invalid input. 15931continue 15932else 15933 # Passes both tests. 15934ac_preproc_ok=: 15935break 15936fi 15937rm -f conftest.err conftest.i conftest.$ac_ext 15938 15939done 15940# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15941rm -f conftest.i conftest.err conftest.$ac_ext 15942if $ac_preproc_ok; then : 15943 15944else 15945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15947as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 15948See \`config.log' for more details" "$LINENO" 5; } 15949fi 15950 15951ac_ext=c 15952ac_cpp='$CPP $CPPFLAGS' 15953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15955ac_compiler_gnu=$ac_cv_c_compiler_gnu 15956 15957else 15958 _lt_caught_CXX_error=yes 15959fi 15960 15961ac_ext=cpp 15962ac_cpp='$CXXCPP $CPPFLAGS' 15963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15966 15967archive_cmds_need_lc_CXX=no 15968allow_undefined_flag_CXX= 15969always_export_symbols_CXX=no 15970archive_expsym_cmds_CXX= 15971compiler_needs_object_CXX=no 15972export_dynamic_flag_spec_CXX= 15973hardcode_direct_CXX=no 15974hardcode_direct_absolute_CXX=no 15975hardcode_libdir_flag_spec_CXX= 15976hardcode_libdir_separator_CXX= 15977hardcode_minus_L_CXX=no 15978hardcode_shlibpath_var_CXX=unsupported 15979hardcode_automatic_CXX=no 15980inherit_rpath_CXX=no 15981module_cmds_CXX= 15982module_expsym_cmds_CXX= 15983link_all_deplibs_CXX=unknown 15984old_archive_cmds_CXX=$old_archive_cmds 15985reload_flag_CXX=$reload_flag 15986reload_cmds_CXX=$reload_cmds 15987no_undefined_flag_CXX= 15988whole_archive_flag_spec_CXX= 15989enable_shared_with_static_runtimes_CXX=no 15990 15991# Source file extension for C++ test sources. 15992ac_ext=cpp 15993 15994# Object file extension for compiled C++ test sources. 15995objext=o 15996objext_CXX=$objext 15997 15998# No sense in running all these tests if we already determined that 15999# the CXX compiler isn't working. Some variables (like enable_shared) 16000# are currently assumed to apply to all compilers on this platform, 16001# and will be corrupted by setting them based on a non-working compiler. 16002if test yes != "$_lt_caught_CXX_error"; then 16003 # Code to be used in simple compile tests 16004 lt_simple_compile_test_code="int some_variable = 0;" 16005 16006 # Code to be used in simple link tests 16007 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 16008 16009 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 16010 16011 16012 16013 16014 16015 16016# If no C compiler was specified, use CC. 16017LTCC=${LTCC-"$CC"} 16018 16019# If no C compiler flags were specified, use CFLAGS. 16020LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16021 16022# Allow CC to be a program name with arguments. 16023compiler=$CC 16024 16025 16026 # save warnings/boilerplate of simple test code 16027 ac_outfile=conftest.$ac_objext 16028echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16029eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16030_lt_compiler_boilerplate=`cat conftest.err` 16031$RM conftest* 16032 16033 ac_outfile=conftest.$ac_objext 16034echo "$lt_simple_link_test_code" >conftest.$ac_ext 16035eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16036_lt_linker_boilerplate=`cat conftest.err` 16037$RM -r conftest* 16038 16039 16040 # Allow CC to be a program name with arguments. 16041 lt_save_CC=$CC 16042 lt_save_CFLAGS=$CFLAGS 16043 lt_save_LD=$LD 16044 lt_save_GCC=$GCC 16045 GCC=$GXX 16046 lt_save_with_gnu_ld=$with_gnu_ld 16047 lt_save_path_LD=$lt_cv_path_LD 16048 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 16049 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 16050 else 16051 $as_unset lt_cv_prog_gnu_ld 16052 fi 16053 if test -n "${lt_cv_path_LDCXX+set}"; then 16054 lt_cv_path_LD=$lt_cv_path_LDCXX 16055 else 16056 $as_unset lt_cv_path_LD 16057 fi 16058 test -z "${LDCXX+set}" || LD=$LDCXX 16059 CC=${CXX-"c++"} 16060 CFLAGS=$CXXFLAGS 16061 compiler=$CC 16062 compiler_CXX=$CC 16063 func_cc_basename $compiler 16064cc_basename=$func_cc_basename_result 16065 16066 16067 if test -n "$compiler"; then 16068 # We don't want -fno-exception when compiling C++ code, so set the 16069 # no_builtin_flag separately 16070 if test yes = "$GXX"; then 16071 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 16072 else 16073 lt_prog_compiler_no_builtin_flag_CXX= 16074 fi 16075 16076 if test yes = "$GXX"; then 16077 # Set up default GNU C++ configuration 16078 16079 16080 16081# Check whether --with-gnu-ld was given. 16082if test "${with_gnu_ld+set}" = set; then : 16083 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 16084else 16085 with_gnu_ld=no 16086fi 16087 16088ac_prog=ld 16089if test yes = "$GCC"; then 16090 # Check if gcc -print-prog-name=ld gives a path. 16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 16092$as_echo_n "checking for ld used by $CC... " >&6; } 16093 case $host in 16094 *-*-mingw*) 16095 # gcc leaves a trailing carriage return, which upsets mingw 16096 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 16097 *) 16098 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 16099 esac 16100 case $ac_prog in 16101 # Accept absolute paths. 16102 [\\/]* | ?:[\\/]*) 16103 re_direlt='/[^/][^/]*/\.\./' 16104 # Canonicalize the pathname of ld 16105 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 16106 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 16107 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 16108 done 16109 test -z "$LD" && LD=$ac_prog 16110 ;; 16111 "") 16112 # If it fails, then pretend we aren't using GCC. 16113 ac_prog=ld 16114 ;; 16115 *) 16116 # If it is relative, then search for the first ld in PATH. 16117 with_gnu_ld=unknown 16118 ;; 16119 esac 16120elif test yes = "$with_gnu_ld"; then 16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 16122$as_echo_n "checking for GNU ld... " >&6; } 16123else 16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 16125$as_echo_n "checking for non-GNU ld... " >&6; } 16126fi 16127if ${lt_cv_path_LD+:} false; then : 16128 $as_echo_n "(cached) " >&6 16129else 16130 if test -z "$LD"; then 16131 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 16132 for ac_dir in $PATH; do 16133 IFS=$lt_save_ifs 16134 test -z "$ac_dir" && ac_dir=. 16135 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 16136 lt_cv_path_LD=$ac_dir/$ac_prog 16137 # Check to see if the program is GNU ld. I'd rather use --version, 16138 # but apparently some variants of GNU ld only accept -v. 16139 # Break only if it was the GNU/non-GNU ld that we prefer. 16140 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 16141 *GNU* | *'with BFD'*) 16142 test no != "$with_gnu_ld" && break 16143 ;; 16144 *) 16145 test yes != "$with_gnu_ld" && break 16146 ;; 16147 esac 16148 fi 16149 done 16150 IFS=$lt_save_ifs 16151else 16152 lt_cv_path_LD=$LD # Let the user override the test with a path. 16153fi 16154fi 16155 16156LD=$lt_cv_path_LD 16157if test -n "$LD"; then 16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 16159$as_echo "$LD" >&6; } 16160else 16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16162$as_echo "no" >&6; } 16163fi 16164test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 16165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 16166$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 16167if ${lt_cv_prog_gnu_ld+:} false; then : 16168 $as_echo_n "(cached) " >&6 16169else 16170 # I'd rather use --version here, but apparently some GNU lds only accept -v. 16171case `$LD -v 2>&1 </dev/null` in 16172*GNU* | *'with BFD'*) 16173 lt_cv_prog_gnu_ld=yes 16174 ;; 16175*) 16176 lt_cv_prog_gnu_ld=no 16177 ;; 16178esac 16179fi 16180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 16181$as_echo "$lt_cv_prog_gnu_ld" >&6; } 16182with_gnu_ld=$lt_cv_prog_gnu_ld 16183 16184 16185 16186 16187 16188 16189 16190 # Check if GNU C++ uses GNU ld as the underlying linker, since the 16191 # archiving commands below assume that GNU ld is being used. 16192 if test yes = "$with_gnu_ld"; then 16193 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16194 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' 16195 16196 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16197 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16198 16199 # If archive_cmds runs LD, not CC, wlarc should be empty 16200 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 16201 # investigate it a little bit more. (MM) 16202 wlarc='$wl' 16203 16204 # ancient GNU ld didn't support --whole-archive et. al. 16205 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 16206 $GREP 'no-whole-archive' > /dev/null; then 16207 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16208 else 16209 whole_archive_flag_spec_CXX= 16210 fi 16211 else 16212 with_gnu_ld=no 16213 wlarc= 16214 16215 # A generic and very simple default shared library creation 16216 # command for GNU C++ for the case where it uses the native 16217 # linker, instead of GNU ld. If possible, this setting should 16218 # overridden to take advantage of the native linker features on 16219 # the platform it is being used on. 16220 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16221 fi 16222 16223 # Commands to make compiler produce verbose output that lists 16224 # what "hidden" libraries, object files and flags are used when 16225 # linking a shared library. 16226 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16227 16228 else 16229 GXX=no 16230 with_gnu_ld=no 16231 wlarc= 16232 fi 16233 16234 # PORTME: fill in a description of your system's C++ link characteristics 16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16236$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16237 ld_shlibs_CXX=yes 16238 case $host_os in 16239 aix3*) 16240 # FIXME: insert proper C++ library support 16241 ld_shlibs_CXX=no 16242 ;; 16243 aix[4-9]*) 16244 if test ia64 = "$host_cpu"; then 16245 # On IA64, the linker does run time linking by default, so we don't 16246 # have to do anything special. 16247 aix_use_runtimelinking=no 16248 exp_sym_flag='-Bexport' 16249 no_entry_flag= 16250 else 16251 aix_use_runtimelinking=no 16252 16253 # Test if we are trying to use run time linking or normal 16254 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16255 # have runtime linking enabled, and use it for executables. 16256 # For shared libraries, we enable/disable runtime linking 16257 # depending on the kind of the shared library created - 16258 # when "with_aix_soname,aix_use_runtimelinking" is: 16259 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16260 # "aix,yes" lib.so shared, rtl:yes, for executables 16261 # lib.a static archive 16262 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16263 # lib.a(lib.so.V) shared, rtl:no, for executables 16264 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16265 # lib.a(lib.so.V) shared, rtl:no 16266 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16267 # lib.a static archive 16268 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16269 for ld_flag in $LDFLAGS; do 16270 case $ld_flag in 16271 *-brtl*) 16272 aix_use_runtimelinking=yes 16273 break 16274 ;; 16275 esac 16276 done 16277 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16278 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16279 # so we don't have lib.a shared libs to link our executables. 16280 # We have to force runtime linking in this case. 16281 aix_use_runtimelinking=yes 16282 LDFLAGS="$LDFLAGS -Wl,-brtl" 16283 fi 16284 ;; 16285 esac 16286 16287 exp_sym_flag='-bexport' 16288 no_entry_flag='-bnoentry' 16289 fi 16290 16291 # When large executables or shared objects are built, AIX ld can 16292 # have problems creating the table of contents. If linking a library 16293 # or program results in "error TOC overflow" add -mminimal-toc to 16294 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16295 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16296 16297 archive_cmds_CXX='' 16298 hardcode_direct_CXX=yes 16299 hardcode_direct_absolute_CXX=yes 16300 hardcode_libdir_separator_CXX=':' 16301 link_all_deplibs_CXX=yes 16302 file_list_spec_CXX='$wl-f,' 16303 case $with_aix_soname,$aix_use_runtimelinking in 16304 aix,*) ;; # no import file 16305 svr4,* | *,yes) # use import file 16306 # The Import File defines what to hardcode. 16307 hardcode_direct_CXX=no 16308 hardcode_direct_absolute_CXX=no 16309 ;; 16310 esac 16311 16312 if test yes = "$GXX"; then 16313 case $host_os in aix4.[012]|aix4.[012].*) 16314 # We only want to do this on AIX 4.2 and lower, the check 16315 # below for broken collect2 doesn't work under 4.3+ 16316 collect2name=`$CC -print-prog-name=collect2` 16317 if test -f "$collect2name" && 16318 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16319 then 16320 # We have reworked collect2 16321 : 16322 else 16323 # We have old collect2 16324 hardcode_direct_CXX=unsupported 16325 # It fails to find uninstalled libraries when the uninstalled 16326 # path is not listed in the libpath. Setting hardcode_minus_L 16327 # to unsupported forces relinking 16328 hardcode_minus_L_CXX=yes 16329 hardcode_libdir_flag_spec_CXX='-L$libdir' 16330 hardcode_libdir_separator_CXX= 16331 fi 16332 esac 16333 shared_flag='-shared' 16334 if test yes = "$aix_use_runtimelinking"; then 16335 shared_flag=$shared_flag' $wl-G' 16336 fi 16337 # Need to ensure runtime linking is disabled for the traditional 16338 # shared library, or the linker may eventually find shared libraries 16339 # /with/ Import File - we do not want to mix them. 16340 shared_flag_aix='-shared' 16341 shared_flag_svr4='-shared $wl-G' 16342 else 16343 # not using gcc 16344 if test ia64 = "$host_cpu"; then 16345 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16346 # chokes on -Wl,-G. The following line is correct: 16347 shared_flag='-G' 16348 else 16349 if test yes = "$aix_use_runtimelinking"; then 16350 shared_flag='$wl-G' 16351 else 16352 shared_flag='$wl-bM:SRE' 16353 fi 16354 shared_flag_aix='$wl-bM:SRE' 16355 shared_flag_svr4='$wl-G' 16356 fi 16357 fi 16358 16359 export_dynamic_flag_spec_CXX='$wl-bexpall' 16360 # It seems that -bexpall does not export symbols beginning with 16361 # underscore (_), so it is better to generate a list of symbols to 16362 # export. 16363 always_export_symbols_CXX=yes 16364 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16365 # Warning - without using the other runtime loading flags (-brtl), 16366 # -berok will link without error, but may produce a broken library. 16367 # The "-G" linker flag allows undefined symbols. 16368 no_undefined_flag_CXX='-bernotok' 16369 # Determine the default libpath from the value encoded in an empty 16370 # executable. 16371 if test set = "${lt_cv_aix_libpath+set}"; then 16372 aix_libpath=$lt_cv_aix_libpath 16373else 16374 if ${lt_cv_aix_libpath__CXX+:} false; then : 16375 $as_echo_n "(cached) " >&6 16376else 16377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16378/* end confdefs.h. */ 16379 16380int 16381main () 16382{ 16383 16384 ; 16385 return 0; 16386} 16387_ACEOF 16388if ac_fn_cxx_try_link "$LINENO"; then : 16389 16390 lt_aix_libpath_sed=' 16391 /Import File Strings/,/^$/ { 16392 /^0/ { 16393 s/^0 *\([^ ]*\) *$/\1/ 16394 p 16395 } 16396 }' 16397 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16398 # Check for a 64-bit object if we didn't find anything. 16399 if test -z "$lt_cv_aix_libpath__CXX"; then 16400 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16401 fi 16402fi 16403rm -f core conftest.err conftest.$ac_objext \ 16404 conftest$ac_exeext conftest.$ac_ext 16405 if test -z "$lt_cv_aix_libpath__CXX"; then 16406 lt_cv_aix_libpath__CXX=/usr/lib:/lib 16407 fi 16408 16409fi 16410 16411 aix_libpath=$lt_cv_aix_libpath__CXX 16412fi 16413 16414 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 16415 16416 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 16417 else 16418 if test ia64 = "$host_cpu"; then 16419 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 16420 allow_undefined_flag_CXX="-z nodefs" 16421 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" 16422 else 16423 # Determine the default libpath from the value encoded in an 16424 # empty executable. 16425 if test set = "${lt_cv_aix_libpath+set}"; then 16426 aix_libpath=$lt_cv_aix_libpath 16427else 16428 if ${lt_cv_aix_libpath__CXX+:} false; then : 16429 $as_echo_n "(cached) " >&6 16430else 16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16432/* end confdefs.h. */ 16433 16434int 16435main () 16436{ 16437 16438 ; 16439 return 0; 16440} 16441_ACEOF 16442if ac_fn_cxx_try_link "$LINENO"; then : 16443 16444 lt_aix_libpath_sed=' 16445 /Import File Strings/,/^$/ { 16446 /^0/ { 16447 s/^0 *\([^ ]*\) *$/\1/ 16448 p 16449 } 16450 }' 16451 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16452 # Check for a 64-bit object if we didn't find anything. 16453 if test -z "$lt_cv_aix_libpath__CXX"; then 16454 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16455 fi 16456fi 16457rm -f core conftest.err conftest.$ac_objext \ 16458 conftest$ac_exeext conftest.$ac_ext 16459 if test -z "$lt_cv_aix_libpath__CXX"; then 16460 lt_cv_aix_libpath__CXX=/usr/lib:/lib 16461 fi 16462 16463fi 16464 16465 aix_libpath=$lt_cv_aix_libpath__CXX 16466fi 16467 16468 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 16469 # Warning - without using the other run time loading flags, 16470 # -berok will link without error, but may produce a broken library. 16471 no_undefined_flag_CXX=' $wl-bernotok' 16472 allow_undefined_flag_CXX=' $wl-berok' 16473 if test yes = "$with_gnu_ld"; then 16474 # We only use this code for GNU lds that support --whole-archive. 16475 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 16476 else 16477 # Exported symbols can be pulled into shared objects from archives 16478 whole_archive_flag_spec_CXX='$convenience' 16479 fi 16480 archive_cmds_need_lc_CXX=yes 16481 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16482 # -brtl affects multiple linker settings, -berok does not and is overridden later 16483 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16484 if test svr4 != "$with_aix_soname"; then 16485 # This is similar to how AIX traditionally builds its shared 16486 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 16487 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 16488 fi 16489 if test aix != "$with_aix_soname"; then 16490 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 16491 else 16492 # used by -dlpreopen to get the symbols 16493 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16494 fi 16495 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 16496 fi 16497 fi 16498 ;; 16499 16500 beos*) 16501 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16502 allow_undefined_flag_CXX=unsupported 16503 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16504 # support --undefined. This deserves some investigation. FIXME 16505 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16506 else 16507 ld_shlibs_CXX=no 16508 fi 16509 ;; 16510 16511 chorus*) 16512 case $cc_basename in 16513 *) 16514 # FIXME: insert proper C++ library support 16515 ld_shlibs_CXX=no 16516 ;; 16517 esac 16518 ;; 16519 16520 cygwin* | mingw* | pw32* | cegcc*) 16521 case $GXX,$cc_basename in 16522 ,cl* | no,cl*) 16523 # Native MSVC 16524 # hardcode_libdir_flag_spec is actually meaningless, as there is 16525 # no search path for DLLs. 16526 hardcode_libdir_flag_spec_CXX=' ' 16527 allow_undefined_flag_CXX=unsupported 16528 always_export_symbols_CXX=yes 16529 file_list_spec_CXX='@' 16530 # Tell ltmain to make .lib files, not .a files. 16531 libext=lib 16532 # Tell ltmain to make .dll files, not .so files. 16533 shrext_cmds=.dll 16534 # FIXME: Setting linknames here is a bad hack. 16535 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16536 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16537 cp "$export_symbols" "$output_objdir/$soname.def"; 16538 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16539 else 16540 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16541 fi~ 16542 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16543 linknames=' 16544 # The linker will not automatically build a static lib if we build a DLL. 16545 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 16546 enable_shared_with_static_runtimes_CXX=yes 16547 # Don't use ranlib 16548 old_postinstall_cmds_CXX='chmod 644 $oldlib' 16549 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 16550 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16551 case $lt_outputfile in 16552 *.exe|*.EXE) ;; 16553 *) 16554 lt_outputfile=$lt_outputfile.exe 16555 lt_tool_outputfile=$lt_tool_outputfile.exe 16556 ;; 16557 esac~ 16558 func_to_tool_file "$lt_outputfile"~ 16559 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16560 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16561 $RM "$lt_outputfile.manifest"; 16562 fi' 16563 ;; 16564 *) 16565 # g++ 16566 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 16567 # as there is no search path for DLLs. 16568 hardcode_libdir_flag_spec_CXX='-L$libdir' 16569 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 16570 allow_undefined_flag_CXX=unsupported 16571 always_export_symbols_CXX=no 16572 enable_shared_with_static_runtimes_CXX=yes 16573 16574 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16575 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' 16576 # If the export-symbols file already is a .def file, use it as 16577 # is; otherwise, prepend EXPORTS... 16578 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16579 cp $export_symbols $output_objdir/$soname.def; 16580 else 16581 echo EXPORTS > $output_objdir/$soname.def; 16582 cat $export_symbols >> $output_objdir/$soname.def; 16583 fi~ 16584 $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' 16585 else 16586 ld_shlibs_CXX=no 16587 fi 16588 ;; 16589 esac 16590 ;; 16591 darwin* | rhapsody*) 16592 16593 16594 archive_cmds_need_lc_CXX=no 16595 hardcode_direct_CXX=no 16596 hardcode_automatic_CXX=yes 16597 hardcode_shlibpath_var_CXX=unsupported 16598 if test yes = "$lt_cv_ld_force_load"; then 16599 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\"`' 16600 16601 else 16602 whole_archive_flag_spec_CXX='' 16603 fi 16604 link_all_deplibs_CXX=yes 16605 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 16606 case $cc_basename in 16607 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16608 *) _lt_dar_can_shared=$GCC ;; 16609 esac 16610 if test yes = "$_lt_dar_can_shared"; then 16611 output_verbose_link_cmd=func_echo_all 16612 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" 16613 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16614 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" 16615 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" 16616 if test yes != "$lt_cv_apple_cc_single_mod"; then 16617 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" 16618 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" 16619 fi 16620 16621 else 16622 ld_shlibs_CXX=no 16623 fi 16624 16625 ;; 16626 16627 os2*) 16628 hardcode_libdir_flag_spec_CXX='-L$libdir' 16629 hardcode_minus_L_CXX=yes 16630 allow_undefined_flag_CXX=unsupported 16631 shrext_cmds=.dll 16632 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16633 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16634 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16635 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16636 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16637 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16638 emximp -o $lib $output_objdir/$libname.def' 16639 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16640 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16641 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16642 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16643 prefix_cmds="$SED"~ 16644 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16645 prefix_cmds="$prefix_cmds -e 1d"; 16646 fi~ 16647 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16648 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16649 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16650 emximp -o $lib $output_objdir/$libname.def' 16651 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16652 enable_shared_with_static_runtimes_CXX=yes 16653 ;; 16654 16655 dgux*) 16656 case $cc_basename in 16657 ec++*) 16658 # FIXME: insert proper C++ library support 16659 ld_shlibs_CXX=no 16660 ;; 16661 ghcx*) 16662 # Green Hills C++ Compiler 16663 # FIXME: insert proper C++ library support 16664 ld_shlibs_CXX=no 16665 ;; 16666 *) 16667 # FIXME: insert proper C++ library support 16668 ld_shlibs_CXX=no 16669 ;; 16670 esac 16671 ;; 16672 16673 freebsd2.*) 16674 # C++ shared libraries reported to be fairly broken before 16675 # switch to ELF 16676 ld_shlibs_CXX=no 16677 ;; 16678 16679 freebsd-elf*) 16680 archive_cmds_need_lc_CXX=no 16681 ;; 16682 16683 freebsd* | dragonfly*) 16684 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 16685 # conventions 16686 ld_shlibs_CXX=yes 16687 ;; 16688 16689 haiku*) 16690 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16691 link_all_deplibs_CXX=yes 16692 ;; 16693 16694 hpux9*) 16695 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16696 hardcode_libdir_separator_CXX=: 16697 export_dynamic_flag_spec_CXX='$wl-E' 16698 hardcode_direct_CXX=yes 16699 hardcode_minus_L_CXX=yes # Not in the search PATH, 16700 # but as the default 16701 # location of the library. 16702 16703 case $cc_basename in 16704 CC*) 16705 # FIXME: insert proper C++ library support 16706 ld_shlibs_CXX=no 16707 ;; 16708 aCC*) 16709 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16710 # Commands to make compiler produce verbose output that lists 16711 # what "hidden" libraries, object files and flags are used when 16712 # linking a shared library. 16713 # 16714 # There doesn't appear to be a way to prevent this compiler from 16715 # explicitly linking system object files so we need to strip them 16716 # from the output so that they don't get included in the library 16717 # dependencies. 16718 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"' 16719 ;; 16720 *) 16721 if test yes = "$GXX"; then 16722 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16723 else 16724 # FIXME: insert proper C++ library support 16725 ld_shlibs_CXX=no 16726 fi 16727 ;; 16728 esac 16729 ;; 16730 16731 hpux10*|hpux11*) 16732 if test no = "$with_gnu_ld"; then 16733 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16734 hardcode_libdir_separator_CXX=: 16735 16736 case $host_cpu in 16737 hppa*64*|ia64*) 16738 ;; 16739 *) 16740 export_dynamic_flag_spec_CXX='$wl-E' 16741 ;; 16742 esac 16743 fi 16744 case $host_cpu in 16745 hppa*64*|ia64*) 16746 hardcode_direct_CXX=no 16747 hardcode_shlibpath_var_CXX=no 16748 ;; 16749 *) 16750 hardcode_direct_CXX=yes 16751 hardcode_direct_absolute_CXX=yes 16752 hardcode_minus_L_CXX=yes # Not in the search PATH, 16753 # but as the default 16754 # location of the library. 16755 ;; 16756 esac 16757 16758 case $cc_basename in 16759 CC*) 16760 # FIXME: insert proper C++ library support 16761 ld_shlibs_CXX=no 16762 ;; 16763 aCC*) 16764 case $host_cpu in 16765 hppa*64*) 16766 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16767 ;; 16768 ia64*) 16769 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16770 ;; 16771 *) 16772 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16773 ;; 16774 esac 16775 # Commands to make compiler produce verbose output that lists 16776 # what "hidden" libraries, object files and flags are used when 16777 # linking a shared library. 16778 # 16779 # There doesn't appear to be a way to prevent this compiler from 16780 # explicitly linking system object files so we need to strip them 16781 # from the output so that they don't get included in the library 16782 # dependencies. 16783 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"' 16784 ;; 16785 *) 16786 if test yes = "$GXX"; then 16787 if test no = "$with_gnu_ld"; then 16788 case $host_cpu in 16789 hppa*64*) 16790 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16791 ;; 16792 ia64*) 16793 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16794 ;; 16795 *) 16796 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' 16797 ;; 16798 esac 16799 fi 16800 else 16801 # FIXME: insert proper C++ library support 16802 ld_shlibs_CXX=no 16803 fi 16804 ;; 16805 esac 16806 ;; 16807 16808 interix[3-9]*) 16809 hardcode_direct_CXX=no 16810 hardcode_shlibpath_var_CXX=no 16811 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16812 export_dynamic_flag_spec_CXX='$wl-E' 16813 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16814 # Instead, shared libraries are loaded at an image base (0x10000000 by 16815 # default) and relocated if they conflict, which is a slow very memory 16816 # consuming and fragmenting process. To avoid this, we pick a random, 16817 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16818 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16819 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' 16820 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' 16821 ;; 16822 irix5* | irix6*) 16823 case $cc_basename in 16824 CC*) 16825 # SGI C++ 16826 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' 16827 16828 # Archives containing C++ object files must be created using 16829 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 16830 # necessary to make sure instantiated templates are included 16831 # in the archive. 16832 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 16833 ;; 16834 *) 16835 if test yes = "$GXX"; then 16836 if test no = "$with_gnu_ld"; then 16837 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' 16838 else 16839 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' 16840 fi 16841 fi 16842 link_all_deplibs_CXX=yes 16843 ;; 16844 esac 16845 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16846 hardcode_libdir_separator_CXX=: 16847 inherit_rpath_CXX=yes 16848 ;; 16849 16850 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16851 case $cc_basename in 16852 KCC*) 16853 # Kuck and Associates, Inc. (KAI) C++ Compiler 16854 16855 # KCC will only create a shared library if the output file 16856 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16857 # to its proper name (with version) after linking. 16858 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' 16859 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' 16860 # Commands to make compiler produce verbose output that lists 16861 # what "hidden" libraries, object files and flags are used when 16862 # linking a shared library. 16863 # 16864 # There doesn't appear to be a way to prevent this compiler from 16865 # explicitly linking system object files so we need to strip them 16866 # from the output so that they don't get included in the library 16867 # dependencies. 16868 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"' 16869 16870 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16871 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16872 16873 # Archives containing C++ object files must be created using 16874 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 16875 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 16876 ;; 16877 icpc* | ecpc* ) 16878 # Intel C++ 16879 with_gnu_ld=yes 16880 # version 8.0 and above of icpc choke on multiply defined symbols 16881 # if we add $predep_objects and $postdep_objects, however 7.1 and 16882 # earlier do not add the objects themselves. 16883 case `$CC -V 2>&1` in 16884 *"Version 7."*) 16885 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16886 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' 16887 ;; 16888 *) # Version 8.0 or newer 16889 tmp_idyn= 16890 case $host_cpu in 16891 ia64*) tmp_idyn=' -i_dynamic';; 16892 esac 16893 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16894 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' 16895 ;; 16896 esac 16897 archive_cmds_need_lc_CXX=no 16898 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16899 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16900 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 16901 ;; 16902 pgCC* | pgcpp*) 16903 # Portland Group C++ compiler 16904 case `$CC -V` in 16905 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 16906 prelink_cmds_CXX='tpldir=Template.dir~ 16907 rm -rf $tpldir~ 16908 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 16909 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 16910 old_archive_cmds_CXX='tpldir=Template.dir~ 16911 rm -rf $tpldir~ 16912 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 16913 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 16914 $RANLIB $oldlib' 16915 archive_cmds_CXX='tpldir=Template.dir~ 16916 rm -rf $tpldir~ 16917 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16918 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16919 archive_expsym_cmds_CXX='tpldir=Template.dir~ 16920 rm -rf $tpldir~ 16921 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16922 $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' 16923 ;; 16924 *) # Version 6 and above use weak symbols 16925 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16926 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' 16927 ;; 16928 esac 16929 16930 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 16931 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16932 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' 16933 ;; 16934 cxx*) 16935 # Compaq C++ 16936 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16937 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' 16938 16939 runpath_var=LD_RUN_PATH 16940 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16941 hardcode_libdir_separator_CXX=: 16942 16943 # Commands to make compiler produce verbose output that lists 16944 # what "hidden" libraries, object files and flags are used when 16945 # linking a shared library. 16946 # 16947 # There doesn't appear to be a way to prevent this compiler from 16948 # explicitly linking system object files so we need to strip them 16949 # from the output so that they don't get included in the library 16950 # dependencies. 16951 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' 16952 ;; 16953 xl* | mpixl* | bgxl*) 16954 # IBM XL 8.0 on PPC, with GNU ld 16955 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16956 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16957 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16958 if test yes = "$supports_anon_versioning"; then 16959 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 16960 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16961 echo "local: *; };" >> $output_objdir/$libname.ver~ 16962 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16963 fi 16964 ;; 16965 *) 16966 case `$CC -V 2>&1 | sed 5q` in 16967 *Sun\ C*) 16968 # Sun C++ 5.9 16969 no_undefined_flag_CXX=' -zdefs' 16970 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16971 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' 16972 hardcode_libdir_flag_spec_CXX='-R$libdir' 16973 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' 16974 compiler_needs_object_CXX=yes 16975 16976 # Not sure whether something based on 16977 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 16978 # would be better. 16979 output_verbose_link_cmd='func_echo_all' 16980 16981 # Archives containing C++ object files must be created using 16982 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16983 # necessary to make sure instantiated templates are included 16984 # in the archive. 16985 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16986 ;; 16987 esac 16988 ;; 16989 esac 16990 ;; 16991 16992 lynxos*) 16993 # FIXME: insert proper C++ library support 16994 ld_shlibs_CXX=no 16995 ;; 16996 16997 m88k*) 16998 # FIXME: insert proper C++ library support 16999 ld_shlibs_CXX=no 17000 ;; 17001 17002 mvs*) 17003 case $cc_basename in 17004 cxx*) 17005 # FIXME: insert proper C++ library support 17006 ld_shlibs_CXX=no 17007 ;; 17008 *) 17009 # FIXME: insert proper C++ library support 17010 ld_shlibs_CXX=no 17011 ;; 17012 esac 17013 ;; 17014 17015 netbsd*) 17016 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17017 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 17018 wlarc= 17019 hardcode_libdir_flag_spec_CXX='-R$libdir' 17020 hardcode_direct_CXX=yes 17021 hardcode_shlibpath_var_CXX=no 17022 fi 17023 # Workaround some broken pre-1.5 toolchains 17024 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 17025 ;; 17026 17027 *nto* | *qnx*) 17028 ld_shlibs_CXX=yes 17029 ;; 17030 17031 openbsd* | bitrig*) 17032 if test -f /usr/libexec/ld.so; then 17033 hardcode_direct_CXX=yes 17034 hardcode_shlibpath_var_CXX=no 17035 hardcode_direct_absolute_CXX=yes 17036 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 17037 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 17038 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 17039 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 17040 export_dynamic_flag_spec_CXX='$wl-E' 17041 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 17042 fi 17043 output_verbose_link_cmd=func_echo_all 17044 else 17045 ld_shlibs_CXX=no 17046 fi 17047 ;; 17048 17049 osf3* | osf4* | osf5*) 17050 case $cc_basename in 17051 KCC*) 17052 # Kuck and Associates, Inc. (KAI) C++ Compiler 17053 17054 # KCC will only create a shared library if the output file 17055 # ends with ".so" (or ".sl" for HP-UX), so rename the library 17056 # to its proper name (with version) after linking. 17057 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' 17058 17059 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 17060 hardcode_libdir_separator_CXX=: 17061 17062 # Archives containing C++ object files must be created using 17063 # the KAI C++ compiler. 17064 case $host in 17065 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 17066 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 17067 esac 17068 ;; 17069 RCC*) 17070 # Rational C++ 2.4.1 17071 # FIXME: insert proper C++ library support 17072 ld_shlibs_CXX=no 17073 ;; 17074 cxx*) 17075 case $host in 17076 osf3*) 17077 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 17078 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' 17079 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 17080 ;; 17081 *) 17082 allow_undefined_flag_CXX=' -expect_unresolved \*' 17083 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' 17084 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 17085 echo "-hidden">> $lib.exp~ 17086 $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~ 17087 $RM $lib.exp' 17088 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 17089 ;; 17090 esac 17091 17092 hardcode_libdir_separator_CXX=: 17093 17094 # Commands to make compiler produce verbose output that lists 17095 # what "hidden" libraries, object files and flags are used when 17096 # linking a shared library. 17097 # 17098 # There doesn't appear to be a way to prevent this compiler from 17099 # explicitly linking system object files so we need to strip them 17100 # from the output so that they don't get included in the library 17101 # dependencies. 17102 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"' 17103 ;; 17104 *) 17105 if test yes,no = "$GXX,$with_gnu_ld"; then 17106 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 17107 case $host in 17108 osf3*) 17109 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' 17110 ;; 17111 *) 17112 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' 17113 ;; 17114 esac 17115 17116 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 17117 hardcode_libdir_separator_CXX=: 17118 17119 # Commands to make compiler produce verbose output that lists 17120 # what "hidden" libraries, object files and flags are used when 17121 # linking a shared library. 17122 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 17123 17124 else 17125 # FIXME: insert proper C++ library support 17126 ld_shlibs_CXX=no 17127 fi 17128 ;; 17129 esac 17130 ;; 17131 17132 psos*) 17133 # FIXME: insert proper C++ library support 17134 ld_shlibs_CXX=no 17135 ;; 17136 17137 sunos4*) 17138 case $cc_basename in 17139 CC*) 17140 # Sun C++ 4.x 17141 # FIXME: insert proper C++ library support 17142 ld_shlibs_CXX=no 17143 ;; 17144 lcc*) 17145 # Lucid 17146 # FIXME: insert proper C++ library support 17147 ld_shlibs_CXX=no 17148 ;; 17149 *) 17150 # FIXME: insert proper C++ library support 17151 ld_shlibs_CXX=no 17152 ;; 17153 esac 17154 ;; 17155 17156 solaris*) 17157 case $cc_basename in 17158 CC* | sunCC*) 17159 # Sun C++ 4.2, 5.x and Centerline C++ 17160 archive_cmds_need_lc_CXX=yes 17161 no_undefined_flag_CXX=' -zdefs' 17162 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17163 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17164 $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' 17165 17166 hardcode_libdir_flag_spec_CXX='-R$libdir' 17167 hardcode_shlibpath_var_CXX=no 17168 case $host_os in 17169 solaris2.[0-5] | solaris2.[0-5].*) ;; 17170 *) 17171 # The compiler driver will combine and reorder linker options, 17172 # but understands '-z linker_flag'. 17173 # Supported since Solaris 2.6 (maybe 2.5.1?) 17174 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 17175 ;; 17176 esac 17177 link_all_deplibs_CXX=yes 17178 17179 output_verbose_link_cmd='func_echo_all' 17180 17181 # Archives containing C++ object files must be created using 17182 # "CC -xar", where "CC" is the Sun C++ compiler. This is 17183 # necessary to make sure instantiated templates are included 17184 # in the archive. 17185 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 17186 ;; 17187 gcx*) 17188 # Green Hills C++ Compiler 17189 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 17190 17191 # The C++ compiler must be used to create the archive. 17192 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 17193 ;; 17194 *) 17195 # GNU C++ compiler with Solaris linker 17196 if test yes,no = "$GXX,$with_gnu_ld"; then 17197 no_undefined_flag_CXX=' $wl-z ${wl}defs' 17198 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 17199 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 17200 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17201 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 17202 17203 # Commands to make compiler produce verbose output that lists 17204 # what "hidden" libraries, object files and flags are used when 17205 # linking a shared library. 17206 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 17207 else 17208 # g++ 2.7 appears to require '-G' NOT '-shared' on this 17209 # platform. 17210 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 17211 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17212 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 17213 17214 # Commands to make compiler produce verbose output that lists 17215 # what "hidden" libraries, object files and flags are used when 17216 # linking a shared library. 17217 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 17218 fi 17219 17220 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 17221 case $host_os in 17222 solaris2.[0-5] | solaris2.[0-5].*) ;; 17223 *) 17224 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17225 ;; 17226 esac 17227 fi 17228 ;; 17229 esac 17230 ;; 17231 17232 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17233 no_undefined_flag_CXX='$wl-z,text' 17234 archive_cmds_need_lc_CXX=no 17235 hardcode_shlibpath_var_CXX=no 17236 runpath_var='LD_RUN_PATH' 17237 17238 case $cc_basename in 17239 CC*) 17240 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17241 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17242 ;; 17243 *) 17244 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17245 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17246 ;; 17247 esac 17248 ;; 17249 17250 sysv5* | sco3.2v5* | sco5v6*) 17251 # Note: We CANNOT use -z defs as we might desire, because we do not 17252 # link with -lc, and that would cause any symbols used from libc to 17253 # always be unresolved, which means just about no library would 17254 # ever link correctly. If we're not using GNU ld we use -z text 17255 # though, which does catch some bad symbols but isn't as heavy-handed 17256 # as -z defs. 17257 no_undefined_flag_CXX='$wl-z,text' 17258 allow_undefined_flag_CXX='$wl-z,nodefs' 17259 archive_cmds_need_lc_CXX=no 17260 hardcode_shlibpath_var_CXX=no 17261 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 17262 hardcode_libdir_separator_CXX=':' 17263 link_all_deplibs_CXX=yes 17264 export_dynamic_flag_spec_CXX='$wl-Bexport' 17265 runpath_var='LD_RUN_PATH' 17266 17267 case $cc_basename in 17268 CC*) 17269 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17270 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17271 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 17272 '"$old_archive_cmds_CXX" 17273 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 17274 '"$reload_cmds_CXX" 17275 ;; 17276 *) 17277 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17278 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17279 ;; 17280 esac 17281 ;; 17282 17283 tandem*) 17284 case $cc_basename in 17285 NCC*) 17286 # NonStop-UX NCC 3.20 17287 # FIXME: insert proper C++ library support 17288 ld_shlibs_CXX=no 17289 ;; 17290 *) 17291 # FIXME: insert proper C++ library support 17292 ld_shlibs_CXX=no 17293 ;; 17294 esac 17295 ;; 17296 17297 vxworks*) 17298 # FIXME: insert proper C++ library support 17299 ld_shlibs_CXX=no 17300 ;; 17301 17302 *) 17303 # FIXME: insert proper C++ library support 17304 ld_shlibs_CXX=no 17305 ;; 17306 esac 17307 17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17309$as_echo "$ld_shlibs_CXX" >&6; } 17310 test no = "$ld_shlibs_CXX" && can_build_shared=no 17311 17312 GCC_CXX=$GXX 17313 LD_CXX=$LD 17314 17315 ## CAVEAT EMPTOR: 17316 ## There is no encapsulation within the following macros, do not change 17317 ## the running order or otherwise move them around unless you know exactly 17318 ## what you are doing... 17319 # Dependencies to place before and after the object being linked: 17320predep_objects_CXX= 17321postdep_objects_CXX= 17322predeps_CXX= 17323postdeps_CXX= 17324compiler_lib_search_path_CXX= 17325 17326cat > conftest.$ac_ext <<_LT_EOF 17327class Foo 17328{ 17329public: 17330 Foo (void) { a = 0; } 17331private: 17332 int a; 17333}; 17334_LT_EOF 17335 17336 17337_lt_libdeps_save_CFLAGS=$CFLAGS 17338case "$CC $CFLAGS " in #( 17339*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 17340*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 17341*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 17342esac 17343 17344if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17345 (eval $ac_compile) 2>&5 17346 ac_status=$? 17347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17348 test $ac_status = 0; }; then 17349 # Parse the compiler output and extract the necessary 17350 # objects, libraries and library flags. 17351 17352 # Sentinel used to keep track of whether or not we are before 17353 # the conftest object file. 17354 pre_test_object_deps_done=no 17355 17356 for p in `eval "$output_verbose_link_cmd"`; do 17357 case $prev$p in 17358 17359 -L* | -R* | -l*) 17360 # Some compilers place space between "-{L,R}" and the path. 17361 # Remove the space. 17362 if test x-L = "$p" || 17363 test x-R = "$p"; then 17364 prev=$p 17365 continue 17366 fi 17367 17368 # Expand the sysroot to ease extracting the directories later. 17369 if test -z "$prev"; then 17370 case $p in 17371 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 17372 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 17373 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 17374 esac 17375 fi 17376 case $p in 17377 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 17378 esac 17379 if test no = "$pre_test_object_deps_done"; then 17380 case $prev in 17381 -L | -R) 17382 # Internal compiler library paths should come after those 17383 # provided the user. The postdeps already come after the 17384 # user supplied libs so there is no need to process them. 17385 if test -z "$compiler_lib_search_path_CXX"; then 17386 compiler_lib_search_path_CXX=$prev$p 17387 else 17388 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 17389 fi 17390 ;; 17391 # The "-l" case would never come before the object being 17392 # linked, so don't bother handling this case. 17393 esac 17394 else 17395 if test -z "$postdeps_CXX"; then 17396 postdeps_CXX=$prev$p 17397 else 17398 postdeps_CXX="${postdeps_CXX} $prev$p" 17399 fi 17400 fi 17401 prev= 17402 ;; 17403 17404 *.lto.$objext) ;; # Ignore GCC LTO objects 17405 *.$objext) 17406 # This assumes that the test object file only shows up 17407 # once in the compiler output. 17408 if test "$p" = "conftest.$objext"; then 17409 pre_test_object_deps_done=yes 17410 continue 17411 fi 17412 17413 if test no = "$pre_test_object_deps_done"; then 17414 if test -z "$predep_objects_CXX"; then 17415 predep_objects_CXX=$p 17416 else 17417 predep_objects_CXX="$predep_objects_CXX $p" 17418 fi 17419 else 17420 if test -z "$postdep_objects_CXX"; then 17421 postdep_objects_CXX=$p 17422 else 17423 postdep_objects_CXX="$postdep_objects_CXX $p" 17424 fi 17425 fi 17426 ;; 17427 17428 *) ;; # Ignore the rest. 17429 17430 esac 17431 done 17432 17433 # Clean up. 17434 rm -f a.out a.exe 17435else 17436 echo "libtool.m4: error: problem compiling CXX test program" 17437fi 17438 17439$RM -f confest.$objext 17440CFLAGS=$_lt_libdeps_save_CFLAGS 17441 17442# PORTME: override above test on systems where it is broken 17443case $host_os in 17444interix[3-9]*) 17445 # Interix 3.5 installs completely hosed .la files for C++, so rather than 17446 # hack all around it, let's just trust "g++" to DTRT. 17447 predep_objects_CXX= 17448 postdep_objects_CXX= 17449 postdeps_CXX= 17450 ;; 17451esac 17452 17453 17454case " $postdeps_CXX " in 17455*" -lc "*) archive_cmds_need_lc_CXX=no ;; 17456esac 17457 compiler_lib_search_dirs_CXX= 17458if test -n "${compiler_lib_search_path_CXX}"; then 17459 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 17460fi 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 lt_prog_compiler_wl_CXX= 17493lt_prog_compiler_pic_CXX= 17494lt_prog_compiler_static_CXX= 17495 17496 17497 # C++ specific cases for pic, static, wl, etc. 17498 if test yes = "$GXX"; then 17499 lt_prog_compiler_wl_CXX='-Wl,' 17500 lt_prog_compiler_static_CXX='-static' 17501 17502 case $host_os in 17503 aix*) 17504 # All AIX code is PIC. 17505 if test ia64 = "$host_cpu"; then 17506 # AIX 5 now supports IA64 processor 17507 lt_prog_compiler_static_CXX='-Bstatic' 17508 fi 17509 lt_prog_compiler_pic_CXX='-fPIC' 17510 ;; 17511 17512 amigaos*) 17513 case $host_cpu in 17514 powerpc) 17515 # see comment about AmigaOS4 .so support 17516 lt_prog_compiler_pic_CXX='-fPIC' 17517 ;; 17518 m68k) 17519 # FIXME: we need at least 68020 code to build shared libraries, but 17520 # adding the '-m68020' flag to GCC prevents building anything better, 17521 # like '-m68040'. 17522 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 17523 ;; 17524 esac 17525 ;; 17526 17527 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17528 # PIC is the default for these OSes. 17529 ;; 17530 mingw* | cygwin* | os2* | pw32* | cegcc*) 17531 # This hack is so that the source file can tell whether it is being 17532 # built for inclusion in a dll (and should export symbols for example). 17533 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17534 # (--disable-auto-import) libraries 17535 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17536 case $host_os in 17537 os2*) 17538 lt_prog_compiler_static_CXX='$wl-static' 17539 ;; 17540 esac 17541 ;; 17542 darwin* | rhapsody*) 17543 # PIC is the default on this platform 17544 # Common symbols not allowed in MH_DYLIB files 17545 lt_prog_compiler_pic_CXX='-fno-common' 17546 ;; 17547 *djgpp*) 17548 # DJGPP does not support shared libraries at all 17549 lt_prog_compiler_pic_CXX= 17550 ;; 17551 haiku*) 17552 # PIC is the default for Haiku. 17553 # The "-static" flag exists, but is broken. 17554 lt_prog_compiler_static_CXX= 17555 ;; 17556 interix[3-9]*) 17557 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17558 # Instead, we relocate shared libraries at runtime. 17559 ;; 17560 sysv4*MP*) 17561 if test -d /usr/nec; then 17562 lt_prog_compiler_pic_CXX=-Kconform_pic 17563 fi 17564 ;; 17565 hpux*) 17566 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 17567 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 17568 # sets the default TLS model and affects inlining. 17569 case $host_cpu in 17570 hppa*64*) 17571 ;; 17572 *) 17573 lt_prog_compiler_pic_CXX='-fPIC' 17574 ;; 17575 esac 17576 ;; 17577 *qnx* | *nto*) 17578 # QNX uses GNU C++, but need to define -shared option too, otherwise 17579 # it will coredump. 17580 lt_prog_compiler_pic_CXX='-fPIC -shared' 17581 ;; 17582 *) 17583 lt_prog_compiler_pic_CXX='-fPIC' 17584 ;; 17585 esac 17586 else 17587 case $host_os in 17588 aix[4-9]*) 17589 # All AIX code is PIC. 17590 if test ia64 = "$host_cpu"; then 17591 # AIX 5 now supports IA64 processor 17592 lt_prog_compiler_static_CXX='-Bstatic' 17593 else 17594 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 17595 fi 17596 ;; 17597 chorus*) 17598 case $cc_basename in 17599 cxch68*) 17600 # Green Hills C++ Compiler 17601 # _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" 17602 ;; 17603 esac 17604 ;; 17605 mingw* | cygwin* | os2* | pw32* | cegcc*) 17606 # This hack is so that the source file can tell whether it is being 17607 # built for inclusion in a dll (and should export symbols for example). 17608 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17609 ;; 17610 dgux*) 17611 case $cc_basename in 17612 ec++*) 17613 lt_prog_compiler_pic_CXX='-KPIC' 17614 ;; 17615 ghcx*) 17616 # Green Hills C++ Compiler 17617 lt_prog_compiler_pic_CXX='-pic' 17618 ;; 17619 *) 17620 ;; 17621 esac 17622 ;; 17623 freebsd* | dragonfly*) 17624 # FreeBSD uses GNU C++ 17625 ;; 17626 hpux9* | hpux10* | hpux11*) 17627 case $cc_basename in 17628 CC*) 17629 lt_prog_compiler_wl_CXX='-Wl,' 17630 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 17631 if test ia64 != "$host_cpu"; then 17632 lt_prog_compiler_pic_CXX='+Z' 17633 fi 17634 ;; 17635 aCC*) 17636 lt_prog_compiler_wl_CXX='-Wl,' 17637 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 17638 case $host_cpu in 17639 hppa*64*|ia64*) 17640 # +Z the default 17641 ;; 17642 *) 17643 lt_prog_compiler_pic_CXX='+Z' 17644 ;; 17645 esac 17646 ;; 17647 *) 17648 ;; 17649 esac 17650 ;; 17651 interix*) 17652 # This is c89, which is MS Visual C++ (no shared libs) 17653 # Anyone wants to do a port? 17654 ;; 17655 irix5* | irix6* | nonstopux*) 17656 case $cc_basename in 17657 CC*) 17658 lt_prog_compiler_wl_CXX='-Wl,' 17659 lt_prog_compiler_static_CXX='-non_shared' 17660 # CC pic flag -KPIC is the default. 17661 ;; 17662 *) 17663 ;; 17664 esac 17665 ;; 17666 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17667 case $cc_basename in 17668 KCC*) 17669 # KAI C++ Compiler 17670 lt_prog_compiler_wl_CXX='--backend -Wl,' 17671 lt_prog_compiler_pic_CXX='-fPIC' 17672 ;; 17673 ecpc* ) 17674 # old Intel C++ for x86_64, which still supported -KPIC. 17675 lt_prog_compiler_wl_CXX='-Wl,' 17676 lt_prog_compiler_pic_CXX='-KPIC' 17677 lt_prog_compiler_static_CXX='-static' 17678 ;; 17679 icpc* ) 17680 # Intel C++, used to be incompatible with GCC. 17681 # ICC 10 doesn't accept -KPIC any more. 17682 lt_prog_compiler_wl_CXX='-Wl,' 17683 lt_prog_compiler_pic_CXX='-fPIC' 17684 lt_prog_compiler_static_CXX='-static' 17685 ;; 17686 pgCC* | pgcpp*) 17687 # Portland Group C++ compiler 17688 lt_prog_compiler_wl_CXX='-Wl,' 17689 lt_prog_compiler_pic_CXX='-fpic' 17690 lt_prog_compiler_static_CXX='-Bstatic' 17691 ;; 17692 cxx*) 17693 # Compaq C++ 17694 # Make sure the PIC flag is empty. It appears that all Alpha 17695 # Linux and Compaq Tru64 Unix objects are PIC. 17696 lt_prog_compiler_pic_CXX= 17697 lt_prog_compiler_static_CXX='-non_shared' 17698 ;; 17699 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 17700 # IBM XL 8.0, 9.0 on PPC and BlueGene 17701 lt_prog_compiler_wl_CXX='-Wl,' 17702 lt_prog_compiler_pic_CXX='-qpic' 17703 lt_prog_compiler_static_CXX='-qstaticlink' 17704 ;; 17705 *) 17706 case `$CC -V 2>&1 | sed 5q` in 17707 *Sun\ C*) 17708 # Sun C++ 5.9 17709 lt_prog_compiler_pic_CXX='-KPIC' 17710 lt_prog_compiler_static_CXX='-Bstatic' 17711 lt_prog_compiler_wl_CXX='-Qoption ld ' 17712 ;; 17713 esac 17714 ;; 17715 esac 17716 ;; 17717 lynxos*) 17718 ;; 17719 m88k*) 17720 ;; 17721 mvs*) 17722 case $cc_basename in 17723 cxx*) 17724 lt_prog_compiler_pic_CXX='-W c,exportall' 17725 ;; 17726 *) 17727 ;; 17728 esac 17729 ;; 17730 netbsd* | netbsdelf*-gnu) 17731 ;; 17732 *qnx* | *nto*) 17733 # QNX uses GNU C++, but need to define -shared option too, otherwise 17734 # it will coredump. 17735 lt_prog_compiler_pic_CXX='-fPIC -shared' 17736 ;; 17737 osf3* | osf4* | osf5*) 17738 case $cc_basename in 17739 KCC*) 17740 lt_prog_compiler_wl_CXX='--backend -Wl,' 17741 ;; 17742 RCC*) 17743 # Rational C++ 2.4.1 17744 lt_prog_compiler_pic_CXX='-pic' 17745 ;; 17746 cxx*) 17747 # Digital/Compaq C++ 17748 lt_prog_compiler_wl_CXX='-Wl,' 17749 # Make sure the PIC flag is empty. It appears that all Alpha 17750 # Linux and Compaq Tru64 Unix objects are PIC. 17751 lt_prog_compiler_pic_CXX= 17752 lt_prog_compiler_static_CXX='-non_shared' 17753 ;; 17754 *) 17755 ;; 17756 esac 17757 ;; 17758 psos*) 17759 ;; 17760 solaris*) 17761 case $cc_basename in 17762 CC* | sunCC*) 17763 # Sun C++ 4.2, 5.x and Centerline C++ 17764 lt_prog_compiler_pic_CXX='-KPIC' 17765 lt_prog_compiler_static_CXX='-Bstatic' 17766 lt_prog_compiler_wl_CXX='-Qoption ld ' 17767 ;; 17768 gcx*) 17769 # Green Hills C++ Compiler 17770 lt_prog_compiler_pic_CXX='-PIC' 17771 ;; 17772 *) 17773 ;; 17774 esac 17775 ;; 17776 sunos4*) 17777 case $cc_basename in 17778 CC*) 17779 # Sun C++ 4.x 17780 lt_prog_compiler_pic_CXX='-pic' 17781 lt_prog_compiler_static_CXX='-Bstatic' 17782 ;; 17783 lcc*) 17784 # Lucid 17785 lt_prog_compiler_pic_CXX='-pic' 17786 ;; 17787 *) 17788 ;; 17789 esac 17790 ;; 17791 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17792 case $cc_basename in 17793 CC*) 17794 lt_prog_compiler_wl_CXX='-Wl,' 17795 lt_prog_compiler_pic_CXX='-KPIC' 17796 lt_prog_compiler_static_CXX='-Bstatic' 17797 ;; 17798 esac 17799 ;; 17800 tandem*) 17801 case $cc_basename in 17802 NCC*) 17803 # NonStop-UX NCC 3.20 17804 lt_prog_compiler_pic_CXX='-KPIC' 17805 ;; 17806 *) 17807 ;; 17808 esac 17809 ;; 17810 vxworks*) 17811 ;; 17812 *) 17813 lt_prog_compiler_can_build_shared_CXX=no 17814 ;; 17815 esac 17816 fi 17817 17818case $host_os in 17819 # For platforms that do not support PIC, -DPIC is meaningless: 17820 *djgpp*) 17821 lt_prog_compiler_pic_CXX= 17822 ;; 17823 *) 17824 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 17825 ;; 17826esac 17827 17828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 17829$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17830if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 17831 $as_echo_n "(cached) " >&6 17832else 17833 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 17834fi 17835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 17836$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 17837lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 17838 17839# 17840# Check to make sure the PIC flag actually works. 17841# 17842if test -n "$lt_prog_compiler_pic_CXX"; then 17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 17844$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 17845if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 17846 $as_echo_n "(cached) " >&6 17847else 17848 lt_cv_prog_compiler_pic_works_CXX=no 17849 ac_outfile=conftest.$ac_objext 17850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17851 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 17852 # Insert the option either (1) after the last *FLAGS variable, or 17853 # (2) before a word containing "conftest.", or (3) at the end. 17854 # Note that $ac_compile itself does not contain backslashes and begins 17855 # with a dollar sign (not a hyphen), so the echo should work correctly. 17856 # The option is referenced via a variable to avoid confusing sed. 17857 lt_compile=`echo "$ac_compile" | $SED \ 17858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17860 -e 's:$: $lt_compiler_flag:'` 17861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17862 (eval "$lt_compile" 2>conftest.err) 17863 ac_status=$? 17864 cat conftest.err >&5 17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17866 if (exit $ac_status) && test -s "$ac_outfile"; then 17867 # The compiler can only warn and ignore the option if not recognized 17868 # So say no if there are warnings other than the usual output. 17869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17871 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17872 lt_cv_prog_compiler_pic_works_CXX=yes 17873 fi 17874 fi 17875 $RM conftest* 17876 17877fi 17878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 17879$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 17880 17881if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 17882 case $lt_prog_compiler_pic_CXX in 17883 "" | " "*) ;; 17884 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 17885 esac 17886else 17887 lt_prog_compiler_pic_CXX= 17888 lt_prog_compiler_can_build_shared_CXX=no 17889fi 17890 17891fi 17892 17893 17894 17895 17896 17897# 17898# Check to make sure the static flag actually works. 17899# 17900wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 17901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17902$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17903if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 17904 $as_echo_n "(cached) " >&6 17905else 17906 lt_cv_prog_compiler_static_works_CXX=no 17907 save_LDFLAGS=$LDFLAGS 17908 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17909 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17910 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17911 # The linker can only warn and ignore the option if not recognized 17912 # So say no if there are warnings 17913 if test -s conftest.err; then 17914 # Append any errors to the config.log. 17915 cat conftest.err 1>&5 17916 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17918 if diff conftest.exp conftest.er2 >/dev/null; then 17919 lt_cv_prog_compiler_static_works_CXX=yes 17920 fi 17921 else 17922 lt_cv_prog_compiler_static_works_CXX=yes 17923 fi 17924 fi 17925 $RM -r conftest* 17926 LDFLAGS=$save_LDFLAGS 17927 17928fi 17929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 17930$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 17931 17932if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 17933 : 17934else 17935 lt_prog_compiler_static_CXX= 17936fi 17937 17938 17939 17940 17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17942$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17943if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17944 $as_echo_n "(cached) " >&6 17945else 17946 lt_cv_prog_compiler_c_o_CXX=no 17947 $RM -r conftest 2>/dev/null 17948 mkdir conftest 17949 cd conftest 17950 mkdir out 17951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17952 17953 lt_compiler_flag="-o out/conftest2.$ac_objext" 17954 # Insert the option either (1) after the last *FLAGS variable, or 17955 # (2) before a word containing "conftest.", or (3) at the end. 17956 # Note that $ac_compile itself does not contain backslashes and begins 17957 # with a dollar sign (not a hyphen), so the echo should work correctly. 17958 lt_compile=`echo "$ac_compile" | $SED \ 17959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17961 -e 's:$: $lt_compiler_flag:'` 17962 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17963 (eval "$lt_compile" 2>out/conftest.err) 17964 ac_status=$? 17965 cat out/conftest.err >&5 17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17967 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17968 then 17969 # The compiler can only warn and ignore the option if not recognized 17970 # So say no if there are warnings 17971 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17972 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17973 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17974 lt_cv_prog_compiler_c_o_CXX=yes 17975 fi 17976 fi 17977 chmod u+w . 2>&5 17978 $RM conftest* 17979 # SGI C++ compiler will create directory out/ii_files/ for 17980 # template instantiation 17981 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17982 $RM out/* && rmdir out 17983 cd .. 17984 $RM -r conftest 17985 $RM conftest* 17986 17987fi 17988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17989$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17990 17991 17992 17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17994$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17995if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17996 $as_echo_n "(cached) " >&6 17997else 17998 lt_cv_prog_compiler_c_o_CXX=no 17999 $RM -r conftest 2>/dev/null 18000 mkdir conftest 18001 cd conftest 18002 mkdir out 18003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18004 18005 lt_compiler_flag="-o out/conftest2.$ac_objext" 18006 # Insert the option either (1) after the last *FLAGS variable, or 18007 # (2) before a word containing "conftest.", or (3) at the end. 18008 # Note that $ac_compile itself does not contain backslashes and begins 18009 # with a dollar sign (not a hyphen), so the echo should work correctly. 18010 lt_compile=`echo "$ac_compile" | $SED \ 18011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18013 -e 's:$: $lt_compiler_flag:'` 18014 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18015 (eval "$lt_compile" 2>out/conftest.err) 18016 ac_status=$? 18017 cat out/conftest.err >&5 18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18019 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18020 then 18021 # The compiler can only warn and ignore the option if not recognized 18022 # So say no if there are warnings 18023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 18024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18026 lt_cv_prog_compiler_c_o_CXX=yes 18027 fi 18028 fi 18029 chmod u+w . 2>&5 18030 $RM conftest* 18031 # SGI C++ compiler will create directory out/ii_files/ for 18032 # template instantiation 18033 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 18034 $RM out/* && rmdir out 18035 cd .. 18036 $RM -r conftest 18037 $RM conftest* 18038 18039fi 18040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 18041$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 18042 18043 18044 18045 18046hard_links=nottested 18047if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 18048 # do not overwrite the value of need_locks provided by the user 18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 18050$as_echo_n "checking if we can lock with hard links... " >&6; } 18051 hard_links=yes 18052 $RM conftest* 18053 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18054 touch conftest.a 18055 ln conftest.a conftest.b 2>&5 || hard_links=no 18056 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 18058$as_echo "$hard_links" >&6; } 18059 if test no = "$hard_links"; then 18060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 18061$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 18062 need_locks=warn 18063 fi 18064else 18065 need_locks=no 18066fi 18067 18068 18069 18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18071$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 18072 18073 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18074 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 18075 case $host_os in 18076 aix[4-9]*) 18077 # If we're using GNU nm, then we don't want the "-C" option. 18078 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 18079 # Without the "-l" option, or with the "-B" option, AIX nm treats 18080 # weak defined symbols like other global defined symbols, whereas 18081 # GNU nm marks them as "W". 18082 # While the 'weak' keyword is ignored in the Export File, we need 18083 # it in the Import File for the 'aix-soname' feature, so we have 18084 # to replace the "-B" option with "-P" for AIX nm. 18085 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 18086 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 18087 else 18088 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 18089 fi 18090 ;; 18091 pw32*) 18092 export_symbols_cmds_CXX=$ltdll_cmds 18093 ;; 18094 cygwin* | mingw* | cegcc*) 18095 case $cc_basename in 18096 cl*) 18097 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 18098 ;; 18099 *) 18100 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' 18101 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 18102 ;; 18103 esac 18104 ;; 18105 linux* | k*bsd*-gnu | gnu*) 18106 link_all_deplibs_CXX=no 18107 ;; 18108 *) 18109 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18110 ;; 18111 esac 18112 18113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 18114$as_echo "$ld_shlibs_CXX" >&6; } 18115test no = "$ld_shlibs_CXX" && can_build_shared=no 18116 18117with_gnu_ld_CXX=$with_gnu_ld 18118 18119 18120 18121 18122 18123 18124# 18125# Do we need to explicitly link libc? 18126# 18127case "x$archive_cmds_need_lc_CXX" in 18128x|xyes) 18129 # Assume -lc should be added 18130 archive_cmds_need_lc_CXX=yes 18131 18132 if test yes,yes = "$GCC,$enable_shared"; then 18133 case $archive_cmds_CXX in 18134 *'~'*) 18135 # FIXME: we may have to deal with multi-command sequences. 18136 ;; 18137 '$CC '*) 18138 # Test whether the compiler implicitly links with -lc since on some 18139 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18140 # to ld, don't add -lc before -lgcc. 18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 18142$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18143if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 18144 $as_echo_n "(cached) " >&6 18145else 18146 $RM conftest* 18147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18148 18149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18150 (eval $ac_compile) 2>&5 18151 ac_status=$? 18152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18153 test $ac_status = 0; } 2>conftest.err; then 18154 soname=conftest 18155 lib=conftest 18156 libobjs=conftest.$ac_objext 18157 deplibs= 18158 wl=$lt_prog_compiler_wl_CXX 18159 pic_flag=$lt_prog_compiler_pic_CXX 18160 compiler_flags=-v 18161 linker_flags=-v 18162 verstring= 18163 output_objdir=. 18164 libname=conftest 18165 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 18166 allow_undefined_flag_CXX= 18167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 18168 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 18169 ac_status=$? 18170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18171 test $ac_status = 0; } 18172 then 18173 lt_cv_archive_cmds_need_lc_CXX=no 18174 else 18175 lt_cv_archive_cmds_need_lc_CXX=yes 18176 fi 18177 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 18178 else 18179 cat conftest.err 1>&5 18180 fi 18181 $RM conftest* 18182 18183fi 18184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 18185$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 18186 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 18187 ;; 18188 esac 18189 fi 18190 ;; 18191esac 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18255$as_echo_n "checking dynamic linker characteristics... " >&6; } 18256 18257library_names_spec= 18258libname_spec='lib$name' 18259soname_spec= 18260shrext_cmds=.so 18261postinstall_cmds= 18262postuninstall_cmds= 18263finish_cmds= 18264finish_eval= 18265shlibpath_var= 18266shlibpath_overrides_runpath=unknown 18267version_type=none 18268dynamic_linker="$host_os ld.so" 18269sys_lib_dlsearch_path_spec="/lib /usr/lib" 18270need_lib_prefix=unknown 18271hardcode_into_libs=no 18272 18273# when you set need_version to no, make sure it does not cause -set_version 18274# flags to be left without arguments 18275need_version=unknown 18276 18277 18278 18279case $host_os in 18280aix3*) 18281 version_type=linux # correct to gnu/linux during the next big refactor 18282 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18283 shlibpath_var=LIBPATH 18284 18285 # AIX 3 has no versioning support, so we append a major version to the name. 18286 soname_spec='$libname$release$shared_ext$major' 18287 ;; 18288 18289aix[4-9]*) 18290 version_type=linux # correct to gnu/linux during the next big refactor 18291 need_lib_prefix=no 18292 need_version=no 18293 hardcode_into_libs=yes 18294 if test ia64 = "$host_cpu"; then 18295 # AIX 5 supports IA64 18296 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18297 shlibpath_var=LD_LIBRARY_PATH 18298 else 18299 # With GCC up to 2.95.x, collect2 would create an import file 18300 # for dependence libraries. The import file would start with 18301 # the line '#! .'. This would cause the generated library to 18302 # depend on '.', always an invalid library. This was fixed in 18303 # development snapshots of GCC prior to 3.0. 18304 case $host_os in 18305 aix4 | aix4.[01] | aix4.[01].*) 18306 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18307 echo ' yes ' 18308 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18309 : 18310 else 18311 can_build_shared=no 18312 fi 18313 ;; 18314 esac 18315 # Using Import Files as archive members, it is possible to support 18316 # filename-based versioning of shared library archives on AIX. While 18317 # this would work for both with and without runtime linking, it will 18318 # prevent static linking of such archives. So we do filename-based 18319 # shared library versioning with .so extension only, which is used 18320 # when both runtime linking and shared linking is enabled. 18321 # Unfortunately, runtime linking may impact performance, so we do 18322 # not want this to be the default eventually. Also, we use the 18323 # versioned .so libs for executables only if there is the -brtl 18324 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 18325 # To allow for filename-based versioning support, we need to create 18326 # libNAME.so.V as an archive file, containing: 18327 # *) an Import File, referring to the versioned filename of the 18328 # archive as well as the shared archive member, telling the 18329 # bitwidth (32 or 64) of that shared object, and providing the 18330 # list of exported symbols of that shared object, eventually 18331 # decorated with the 'weak' keyword 18332 # *) the shared object with the F_LOADONLY flag set, to really avoid 18333 # it being seen by the linker. 18334 # At run time we better use the real file rather than another symlink, 18335 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18336 18337 case $with_aix_soname,$aix_use_runtimelinking in 18338 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18339 # soname into executable. Probably we can add versioning support to 18340 # collect2, so additional links can be useful in future. 18341 aix,yes) # traditional libtool 18342 dynamic_linker='AIX unversionable lib.so' 18343 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18344 # instead of lib<name>.a to let people know that these are not 18345 # typical AIX shared libraries. 18346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18347 ;; 18348 aix,no) # traditional AIX only 18349 dynamic_linker='AIX lib.a(lib.so.V)' 18350 # We preserve .a as extension for shared libraries through AIX4.2 18351 # and later when we are not doing run time linking. 18352 library_names_spec='$libname$release.a $libname.a' 18353 soname_spec='$libname$release$shared_ext$major' 18354 ;; 18355 svr4,*) # full svr4 only 18356 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18357 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18358 # We do not specify a path in Import Files, so LIBPATH fires. 18359 shlibpath_overrides_runpath=yes 18360 ;; 18361 *,yes) # both, prefer svr4 18362 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18363 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18364 # unpreferred sharedlib libNAME.a needs extra handling 18365 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 18366 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 18367 # We do not specify a path in Import Files, so LIBPATH fires. 18368 shlibpath_overrides_runpath=yes 18369 ;; 18370 *,no) # both, prefer aix 18371 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18372 library_names_spec='$libname$release.a $libname.a' 18373 soname_spec='$libname$release$shared_ext$major' 18374 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18375 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 18376 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 18377 ;; 18378 esac 18379 shlibpath_var=LIBPATH 18380 fi 18381 ;; 18382 18383amigaos*) 18384 case $host_cpu in 18385 powerpc) 18386 # Since July 2007 AmigaOS4 officially supports .so libraries. 18387 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18389 ;; 18390 m68k) 18391 library_names_spec='$libname.ixlibrary $libname.a' 18392 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18393 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 18394 ;; 18395 esac 18396 ;; 18397 18398beos*) 18399 library_names_spec='$libname$shared_ext' 18400 dynamic_linker="$host_os ld.so" 18401 shlibpath_var=LIBRARY_PATH 18402 ;; 18403 18404bsdi[45]*) 18405 version_type=linux # correct to gnu/linux during the next big refactor 18406 need_version=no 18407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18408 soname_spec='$libname$release$shared_ext$major' 18409 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18410 shlibpath_var=LD_LIBRARY_PATH 18411 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18412 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18413 # the default ld.so.conf also contains /usr/contrib/lib and 18414 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18415 # libtool to hard-code these into programs 18416 ;; 18417 18418cygwin* | mingw* | pw32* | cegcc*) 18419 version_type=windows 18420 shrext_cmds=.dll 18421 need_version=no 18422 need_lib_prefix=no 18423 18424 case $GCC,$cc_basename in 18425 yes,*) 18426 # gcc 18427 library_names_spec='$libname.dll.a' 18428 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18429 postinstall_cmds='base_file=`basename \$file`~ 18430 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18431 dldir=$destdir/`dirname \$dlpath`~ 18432 test -d \$dldir || mkdir -p \$dldir~ 18433 $install_prog $dir/$dlname \$dldir/$dlname~ 18434 chmod a+x \$dldir/$dlname~ 18435 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18436 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18437 fi' 18438 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18439 dlpath=$dir/\$dldll~ 18440 $RM \$dlpath' 18441 shlibpath_overrides_runpath=yes 18442 18443 case $host_os in 18444 cygwin*) 18445 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18446 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18447 18448 ;; 18449 mingw* | cegcc*) 18450 # MinGW DLLs use traditional 'lib' prefix 18451 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18452 ;; 18453 pw32*) 18454 # pw32 DLLs use 'pw' prefix rather than 'lib' 18455 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18456 ;; 18457 esac 18458 dynamic_linker='Win32 ld.exe' 18459 ;; 18460 18461 *,cl*) 18462 # Native MSVC 18463 libname_spec='$name' 18464 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18465 library_names_spec='$libname.dll.lib' 18466 18467 case $build_os in 18468 mingw*) 18469 sys_lib_search_path_spec= 18470 lt_save_ifs=$IFS 18471 IFS=';' 18472 for lt_path in $LIB 18473 do 18474 IFS=$lt_save_ifs 18475 # Let DOS variable expansion print the short 8.3 style file name. 18476 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18477 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18478 done 18479 IFS=$lt_save_ifs 18480 # Convert to MSYS style. 18481 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18482 ;; 18483 cygwin*) 18484 # Convert to unix form, then to dos form, then back to unix form 18485 # but this time dos style (no spaces!) so that the unix form looks 18486 # like /cygdrive/c/PROGRA~1:/cygdr... 18487 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18488 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18489 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18490 ;; 18491 *) 18492 sys_lib_search_path_spec=$LIB 18493 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18494 # It is most probably a Windows format PATH. 18495 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18496 else 18497 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18498 fi 18499 # FIXME: find the short name or the path components, as spaces are 18500 # common. (e.g. "Program Files" -> "PROGRA~1") 18501 ;; 18502 esac 18503 18504 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18505 postinstall_cmds='base_file=`basename \$file`~ 18506 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18507 dldir=$destdir/`dirname \$dlpath`~ 18508 test -d \$dldir || mkdir -p \$dldir~ 18509 $install_prog $dir/$dlname \$dldir/$dlname' 18510 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18511 dlpath=$dir/\$dldll~ 18512 $RM \$dlpath' 18513 shlibpath_overrides_runpath=yes 18514 dynamic_linker='Win32 link.exe' 18515 ;; 18516 18517 *) 18518 # Assume MSVC wrapper 18519 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18520 dynamic_linker='Win32 ld.exe' 18521 ;; 18522 esac 18523 # FIXME: first we should search . and the directory the executable is in 18524 shlibpath_var=PATH 18525 ;; 18526 18527darwin* | rhapsody*) 18528 dynamic_linker="$host_os dyld" 18529 version_type=darwin 18530 need_lib_prefix=no 18531 need_version=no 18532 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18533 soname_spec='$libname$release$major$shared_ext' 18534 shlibpath_overrides_runpath=yes 18535 shlibpath_var=DYLD_LIBRARY_PATH 18536 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18537 18538 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18539 ;; 18540 18541dgux*) 18542 version_type=linux # correct to gnu/linux during the next big refactor 18543 need_lib_prefix=no 18544 need_version=no 18545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18546 soname_spec='$libname$release$shared_ext$major' 18547 shlibpath_var=LD_LIBRARY_PATH 18548 ;; 18549 18550freebsd* | dragonfly*) 18551 # DragonFly does not have aout. When/if they implement a new 18552 # versioning mechanism, adjust this. 18553 if test -x /usr/bin/objformat; then 18554 objformat=`/usr/bin/objformat` 18555 else 18556 case $host_os in 18557 freebsd[23].*) objformat=aout ;; 18558 *) objformat=elf ;; 18559 esac 18560 fi 18561 version_type=freebsd-$objformat 18562 case $version_type in 18563 freebsd-elf*) 18564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18565 soname_spec='$libname$release$shared_ext$major' 18566 need_version=no 18567 need_lib_prefix=no 18568 ;; 18569 freebsd-*) 18570 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18571 need_version=yes 18572 ;; 18573 esac 18574 shlibpath_var=LD_LIBRARY_PATH 18575 case $host_os in 18576 freebsd2.*) 18577 shlibpath_overrides_runpath=yes 18578 ;; 18579 freebsd3.[01]* | freebsdelf3.[01]*) 18580 shlibpath_overrides_runpath=yes 18581 hardcode_into_libs=yes 18582 ;; 18583 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18584 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18585 shlibpath_overrides_runpath=no 18586 hardcode_into_libs=yes 18587 ;; 18588 *) # from 4.6 on, and DragonFly 18589 shlibpath_overrides_runpath=yes 18590 hardcode_into_libs=yes 18591 ;; 18592 esac 18593 ;; 18594 18595haiku*) 18596 version_type=linux # correct to gnu/linux during the next big refactor 18597 need_lib_prefix=no 18598 need_version=no 18599 dynamic_linker="$host_os runtime_loader" 18600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18601 soname_spec='$libname$release$shared_ext$major' 18602 shlibpath_var=LIBRARY_PATH 18603 shlibpath_overrides_runpath=no 18604 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18605 hardcode_into_libs=yes 18606 ;; 18607 18608hpux9* | hpux10* | hpux11*) 18609 # Give a soname corresponding to the major version so that dld.sl refuses to 18610 # link against other versions. 18611 version_type=sunos 18612 need_lib_prefix=no 18613 need_version=no 18614 case $host_cpu in 18615 ia64*) 18616 shrext_cmds='.so' 18617 hardcode_into_libs=yes 18618 dynamic_linker="$host_os dld.so" 18619 shlibpath_var=LD_LIBRARY_PATH 18620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18622 soname_spec='$libname$release$shared_ext$major' 18623 if test 32 = "$HPUX_IA64_MODE"; then 18624 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18625 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18626 else 18627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18628 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18629 fi 18630 ;; 18631 hppa*64*) 18632 shrext_cmds='.sl' 18633 hardcode_into_libs=yes 18634 dynamic_linker="$host_os dld.sl" 18635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18638 soname_spec='$libname$release$shared_ext$major' 18639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18641 ;; 18642 *) 18643 shrext_cmds='.sl' 18644 dynamic_linker="$host_os dld.sl" 18645 shlibpath_var=SHLIB_PATH 18646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18648 soname_spec='$libname$release$shared_ext$major' 18649 ;; 18650 esac 18651 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18652 postinstall_cmds='chmod 555 $lib' 18653 # or fails outright, so override atomically: 18654 install_override_mode=555 18655 ;; 18656 18657interix[3-9]*) 18658 version_type=linux # correct to gnu/linux during the next big refactor 18659 need_lib_prefix=no 18660 need_version=no 18661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18662 soname_spec='$libname$release$shared_ext$major' 18663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18664 shlibpath_var=LD_LIBRARY_PATH 18665 shlibpath_overrides_runpath=no 18666 hardcode_into_libs=yes 18667 ;; 18668 18669irix5* | irix6* | nonstopux*) 18670 case $host_os in 18671 nonstopux*) version_type=nonstopux ;; 18672 *) 18673 if test yes = "$lt_cv_prog_gnu_ld"; then 18674 version_type=linux # correct to gnu/linux during the next big refactor 18675 else 18676 version_type=irix 18677 fi ;; 18678 esac 18679 need_lib_prefix=no 18680 need_version=no 18681 soname_spec='$libname$release$shared_ext$major' 18682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18683 case $host_os in 18684 irix5* | nonstopux*) 18685 libsuff= shlibsuff= 18686 ;; 18687 *) 18688 case $LD in # libtool.m4 will add one of these switches to LD 18689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18690 libsuff= shlibsuff= libmagic=32-bit;; 18691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18692 libsuff=32 shlibsuff=N32 libmagic=N32;; 18693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18694 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18695 *) libsuff= shlibsuff= libmagic=never-match;; 18696 esac 18697 ;; 18698 esac 18699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18700 shlibpath_overrides_runpath=no 18701 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18702 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18703 hardcode_into_libs=yes 18704 ;; 18705 18706# No shared lib support for Linux oldld, aout, or coff. 18707linux*oldld* | linux*aout* | linux*coff*) 18708 dynamic_linker=no 18709 ;; 18710 18711linux*android*) 18712 version_type=none # Android doesn't support versioned libraries. 18713 need_lib_prefix=no 18714 need_version=no 18715 library_names_spec='$libname$release$shared_ext' 18716 soname_spec='$libname$release$shared_ext' 18717 finish_cmds= 18718 shlibpath_var=LD_LIBRARY_PATH 18719 shlibpath_overrides_runpath=yes 18720 18721 # This implies no fast_install, which is unacceptable. 18722 # Some rework will be needed to allow for fast_install 18723 # before this can be enabled. 18724 hardcode_into_libs=yes 18725 18726 dynamic_linker='Android linker' 18727 # Don't embed -rpath directories since the linker doesn't support them. 18728 hardcode_libdir_flag_spec_CXX='-L$libdir' 18729 ;; 18730 18731# This must be glibc/ELF. 18732linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18733 version_type=linux # correct to gnu/linux during the next big refactor 18734 need_lib_prefix=no 18735 need_version=no 18736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18737 soname_spec='$libname$release$shared_ext$major' 18738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18739 shlibpath_var=LD_LIBRARY_PATH 18740 shlibpath_overrides_runpath=no 18741 18742 # Some binutils ld are patched to set DT_RUNPATH 18743 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 18744 $as_echo_n "(cached) " >&6 18745else 18746 lt_cv_shlibpath_overrides_runpath=no 18747 save_LDFLAGS=$LDFLAGS 18748 save_libdir=$libdir 18749 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 18750 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 18751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18752/* end confdefs.h. */ 18753 18754int 18755main () 18756{ 18757 18758 ; 18759 return 0; 18760} 18761_ACEOF 18762if ac_fn_cxx_try_link "$LINENO"; then : 18763 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 18764 lt_cv_shlibpath_overrides_runpath=yes 18765fi 18766fi 18767rm -f core conftest.err conftest.$ac_objext \ 18768 conftest$ac_exeext conftest.$ac_ext 18769 LDFLAGS=$save_LDFLAGS 18770 libdir=$save_libdir 18771 18772fi 18773 18774 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18775 18776 # This implies no fast_install, which is unacceptable. 18777 # Some rework will be needed to allow for fast_install 18778 # before this can be enabled. 18779 hardcode_into_libs=yes 18780 18781 # Ideally, we could use ldconfig to report *all* directores which are 18782 # searched for libraries, however this is still not possible. Aside from not 18783 # being certain /sbin/ldconfig is available, command 18784 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18785 # even though it is searched at run-time. Try to do the best guess by 18786 # appending ld.so.conf contents (and includes) to the search path. 18787 if test -f /etc/ld.so.conf; then 18788 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' ' '` 18789 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18790 fi 18791 18792 # We used to test for /lib/ld.so.1 and disable shared libraries on 18793 # powerpc, because MkLinux only supported shared libraries with the 18794 # GNU dynamic linker. Since this was broken with cross compilers, 18795 # most powerpc-linux boxes support dynamic linking these days and 18796 # people can always --disable-shared, the test was removed, and we 18797 # assume the GNU/Linux dynamic linker is in use. 18798 dynamic_linker='GNU/Linux ld.so' 18799 ;; 18800 18801netbsdelf*-gnu) 18802 version_type=linux 18803 need_lib_prefix=no 18804 need_version=no 18805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18806 soname_spec='${libname}${release}${shared_ext}$major' 18807 shlibpath_var=LD_LIBRARY_PATH 18808 shlibpath_overrides_runpath=no 18809 hardcode_into_libs=yes 18810 dynamic_linker='NetBSD ld.elf_so' 18811 ;; 18812 18813netbsd*) 18814 version_type=sunos 18815 need_lib_prefix=no 18816 need_version=no 18817 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18818 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18820 dynamic_linker='NetBSD (a.out) ld.so' 18821 else 18822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18823 soname_spec='$libname$release$shared_ext$major' 18824 dynamic_linker='NetBSD ld.elf_so' 18825 fi 18826 shlibpath_var=LD_LIBRARY_PATH 18827 shlibpath_overrides_runpath=yes 18828 hardcode_into_libs=yes 18829 ;; 18830 18831newsos6) 18832 version_type=linux # correct to gnu/linux during the next big refactor 18833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18834 shlibpath_var=LD_LIBRARY_PATH 18835 shlibpath_overrides_runpath=yes 18836 ;; 18837 18838*nto* | *qnx*) 18839 version_type=qnx 18840 need_lib_prefix=no 18841 need_version=no 18842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18843 soname_spec='$libname$release$shared_ext$major' 18844 shlibpath_var=LD_LIBRARY_PATH 18845 shlibpath_overrides_runpath=no 18846 hardcode_into_libs=yes 18847 dynamic_linker='ldqnx.so' 18848 ;; 18849 18850openbsd* | bitrig*) 18851 version_type=sunos 18852 sys_lib_dlsearch_path_spec=/usr/lib 18853 need_lib_prefix=no 18854 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18855 need_version=no 18856 else 18857 need_version=yes 18858 fi 18859 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18861 shlibpath_var=LD_LIBRARY_PATH 18862 shlibpath_overrides_runpath=yes 18863 ;; 18864 18865os2*) 18866 libname_spec='$name' 18867 version_type=windows 18868 shrext_cmds=.dll 18869 need_version=no 18870 need_lib_prefix=no 18871 # OS/2 can only load a DLL with a base name of 8 characters or less. 18872 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18873 v=$($ECHO $release$versuffix | tr -d .-); 18874 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18875 $ECHO $n$v`$shared_ext' 18876 library_names_spec='${libname}_dll.$libext' 18877 dynamic_linker='OS/2 ld.exe' 18878 shlibpath_var=BEGINLIBPATH 18879 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18881 postinstall_cmds='base_file=`basename \$file`~ 18882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18883 dldir=$destdir/`dirname \$dlpath`~ 18884 test -d \$dldir || mkdir -p \$dldir~ 18885 $install_prog $dir/$dlname \$dldir/$dlname~ 18886 chmod a+x \$dldir/$dlname~ 18887 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18888 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18889 fi' 18890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18891 dlpath=$dir/\$dldll~ 18892 $RM \$dlpath' 18893 ;; 18894 18895osf3* | osf4* | osf5*) 18896 version_type=osf 18897 need_lib_prefix=no 18898 need_version=no 18899 soname_spec='$libname$release$shared_ext$major' 18900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18901 shlibpath_var=LD_LIBRARY_PATH 18902 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18904 ;; 18905 18906rdos*) 18907 dynamic_linker=no 18908 ;; 18909 18910solaris*) 18911 version_type=linux # correct to gnu/linux during the next big refactor 18912 need_lib_prefix=no 18913 need_version=no 18914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18915 soname_spec='$libname$release$shared_ext$major' 18916 shlibpath_var=LD_LIBRARY_PATH 18917 shlibpath_overrides_runpath=yes 18918 hardcode_into_libs=yes 18919 # ldd complains unless libraries are executable 18920 postinstall_cmds='chmod +x $lib' 18921 ;; 18922 18923sunos4*) 18924 version_type=sunos 18925 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18926 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18927 shlibpath_var=LD_LIBRARY_PATH 18928 shlibpath_overrides_runpath=yes 18929 if test yes = "$with_gnu_ld"; then 18930 need_lib_prefix=no 18931 fi 18932 need_version=yes 18933 ;; 18934 18935sysv4 | sysv4.3*) 18936 version_type=linux # correct to gnu/linux during the next big refactor 18937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18938 soname_spec='$libname$release$shared_ext$major' 18939 shlibpath_var=LD_LIBRARY_PATH 18940 case $host_vendor in 18941 sni) 18942 shlibpath_overrides_runpath=no 18943 need_lib_prefix=no 18944 runpath_var=LD_RUN_PATH 18945 ;; 18946 siemens) 18947 need_lib_prefix=no 18948 ;; 18949 motorola) 18950 need_lib_prefix=no 18951 need_version=no 18952 shlibpath_overrides_runpath=no 18953 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18954 ;; 18955 esac 18956 ;; 18957 18958sysv4*MP*) 18959 if test -d /usr/nec; then 18960 version_type=linux # correct to gnu/linux during the next big refactor 18961 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18962 soname_spec='$libname$shared_ext.$major' 18963 shlibpath_var=LD_LIBRARY_PATH 18964 fi 18965 ;; 18966 18967sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18968 version_type=sco 18969 need_lib_prefix=no 18970 need_version=no 18971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18972 soname_spec='$libname$release$shared_ext$major' 18973 shlibpath_var=LD_LIBRARY_PATH 18974 shlibpath_overrides_runpath=yes 18975 hardcode_into_libs=yes 18976 if test yes = "$with_gnu_ld"; then 18977 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18978 else 18979 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18980 case $host_os in 18981 sco3.2v5*) 18982 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18983 ;; 18984 esac 18985 fi 18986 sys_lib_dlsearch_path_spec='/usr/lib' 18987 ;; 18988 18989tpf*) 18990 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18991 version_type=linux # correct to gnu/linux during the next big refactor 18992 need_lib_prefix=no 18993 need_version=no 18994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18995 shlibpath_var=LD_LIBRARY_PATH 18996 shlibpath_overrides_runpath=no 18997 hardcode_into_libs=yes 18998 ;; 18999 19000uts4*) 19001 version_type=linux # correct to gnu/linux during the next big refactor 19002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19003 soname_spec='$libname$release$shared_ext$major' 19004 shlibpath_var=LD_LIBRARY_PATH 19005 ;; 19006 19007*) 19008 dynamic_linker=no 19009 ;; 19010esac 19011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 19012$as_echo "$dynamic_linker" >&6; } 19013test no = "$dynamic_linker" && can_build_shared=no 19014 19015variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19016if test yes = "$GCC"; then 19017 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19018fi 19019 19020if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 19021 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 19022fi 19023 19024if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 19025 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 19026fi 19027 19028# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 19029configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 19030 19031# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 19032func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 19033 19034# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 19035configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 19052 19053 19054 19055 19056 19057 19058 19059 19060 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 19075 19076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19077$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19078hardcode_action_CXX= 19079if test -n "$hardcode_libdir_flag_spec_CXX" || 19080 test -n "$runpath_var_CXX" || 19081 test yes = "$hardcode_automatic_CXX"; then 19082 19083 # We can hardcode non-existent directories. 19084 if test no != "$hardcode_direct_CXX" && 19085 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19086 # have to relink, otherwise we might link with an installed library 19087 # when we should be linking with a yet-to-be-installed one 19088 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 19089 test no != "$hardcode_minus_L_CXX"; then 19090 # Linking always hardcodes the temporary library directory. 19091 hardcode_action_CXX=relink 19092 else 19093 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19094 hardcode_action_CXX=immediate 19095 fi 19096else 19097 # We cannot hardcode anything, or else we can only hardcode existing 19098 # directories. 19099 hardcode_action_CXX=unsupported 19100fi 19101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 19102$as_echo "$hardcode_action_CXX" >&6; } 19103 19104if test relink = "$hardcode_action_CXX" || 19105 test yes = "$inherit_rpath_CXX"; then 19106 # Fast installation is not supported 19107 enable_fast_install=no 19108elif test yes = "$shlibpath_overrides_runpath" || 19109 test no = "$enable_shared"; then 19110 # Fast installation is not necessary 19111 enable_fast_install=needless 19112fi 19113 19114 19115 19116 19117 19118 19119 19120 fi # test -n "$compiler" 19121 19122 CC=$lt_save_CC 19123 CFLAGS=$lt_save_CFLAGS 19124 LDCXX=$LD 19125 LD=$lt_save_LD 19126 GCC=$lt_save_GCC 19127 with_gnu_ld=$lt_save_with_gnu_ld 19128 lt_cv_path_LDCXX=$lt_cv_path_LD 19129 lt_cv_path_LD=$lt_save_path_LD 19130 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 19131 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 19132fi # test yes != "$_lt_caught_CXX_error" 19133 19134ac_ext=c 19135ac_cpp='$CPP $CPPFLAGS' 19136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19138ac_compiler_gnu=$ac_cv_c_compiler_gnu 19139 19140 19141ac_ext=c 19142ac_cpp='$CPP $CPPFLAGS' 19143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19145ac_compiler_gnu=$ac_cv_c_compiler_gnu 19146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 19147$as_echo_n "checking how to run the C preprocessor... " >&6; } 19148# On Suns, sometimes $CPP names a directory. 19149if test -n "$CPP" && test -d "$CPP"; then 19150 CPP= 19151fi 19152if test -z "$CPP"; then 19153 if ${ac_cv_prog_CPP+:} false; then : 19154 $as_echo_n "(cached) " >&6 19155else 19156 # Double quotes because CPP needs to be expanded 19157 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 19158 do 19159 ac_preproc_ok=false 19160for ac_c_preproc_warn_flag in '' yes 19161do 19162 # Use a header file that comes with gcc, so configuring glibc 19163 # with a fresh cross-compiler works. 19164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19165 # <limits.h> exists even on freestanding compilers. 19166 # On the NeXT, cc -E runs the code through the compiler's parser, 19167 # not just through cpp. "Syntax error" is here to catch this case. 19168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19169/* end confdefs.h. */ 19170#ifdef __STDC__ 19171# include <limits.h> 19172#else 19173# include <assert.h> 19174#endif 19175 Syntax error 19176_ACEOF 19177if ac_fn_c_try_cpp "$LINENO"; then : 19178 19179else 19180 # Broken: fails on valid input. 19181continue 19182fi 19183rm -f conftest.err conftest.i conftest.$ac_ext 19184 19185 # OK, works on sane cases. Now check whether nonexistent headers 19186 # can be detected and how. 19187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19188/* end confdefs.h. */ 19189#include <ac_nonexistent.h> 19190_ACEOF 19191if ac_fn_c_try_cpp "$LINENO"; then : 19192 # Broken: success on invalid input. 19193continue 19194else 19195 # Passes both tests. 19196ac_preproc_ok=: 19197break 19198fi 19199rm -f conftest.err conftest.i conftest.$ac_ext 19200 19201done 19202# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19203rm -f conftest.i conftest.err conftest.$ac_ext 19204if $ac_preproc_ok; then : 19205 break 19206fi 19207 19208 done 19209 ac_cv_prog_CPP=$CPP 19210 19211fi 19212 CPP=$ac_cv_prog_CPP 19213else 19214 ac_cv_prog_CPP=$CPP 19215fi 19216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 19217$as_echo "$CPP" >&6; } 19218ac_preproc_ok=false 19219for ac_c_preproc_warn_flag in '' yes 19220do 19221 # Use a header file that comes with gcc, so configuring glibc 19222 # with a fresh cross-compiler works. 19223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19224 # <limits.h> exists even on freestanding compilers. 19225 # On the NeXT, cc -E runs the code through the compiler's parser, 19226 # not just through cpp. "Syntax error" is here to catch this case. 19227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19228/* end confdefs.h. */ 19229#ifdef __STDC__ 19230# include <limits.h> 19231#else 19232# include <assert.h> 19233#endif 19234 Syntax error 19235_ACEOF 19236if ac_fn_c_try_cpp "$LINENO"; then : 19237 19238else 19239 # Broken: fails on valid input. 19240continue 19241fi 19242rm -f conftest.err conftest.i conftest.$ac_ext 19243 19244 # OK, works on sane cases. Now check whether nonexistent headers 19245 # can be detected and how. 19246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19247/* end confdefs.h. */ 19248#include <ac_nonexistent.h> 19249_ACEOF 19250if ac_fn_c_try_cpp "$LINENO"; then : 19251 # Broken: success on invalid input. 19252continue 19253else 19254 # Passes both tests. 19255ac_preproc_ok=: 19256break 19257fi 19258rm -f conftest.err conftest.i conftest.$ac_ext 19259 19260done 19261# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19262rm -f conftest.i conftest.err conftest.$ac_ext 19263if $ac_preproc_ok; then : 19264 19265else 19266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19268as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 19269See \`config.log' for more details" "$LINENO" 5; } 19270fi 19271 19272ac_ext=c 19273ac_cpp='$CPP $CPPFLAGS' 19274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19276ac_compiler_gnu=$ac_cv_c_compiler_gnu 19277 19278ac_ext=cpp 19279ac_cpp='$CXXCPP $CPPFLAGS' 19280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 19284$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 19285if test -z "$CXXCPP"; then 19286 if ${ac_cv_prog_CXXCPP+:} false; then : 19287 $as_echo_n "(cached) " >&6 19288else 19289 # Double quotes because CXXCPP needs to be expanded 19290 for CXXCPP in "$CXX -E" "/lib/cpp" 19291 do 19292 ac_preproc_ok=false 19293for ac_cxx_preproc_warn_flag in '' yes 19294do 19295 # Use a header file that comes with gcc, so configuring glibc 19296 # with a fresh cross-compiler works. 19297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19298 # <limits.h> exists even on freestanding compilers. 19299 # On the NeXT, cc -E runs the code through the compiler's parser, 19300 # not just through cpp. "Syntax error" is here to catch this case. 19301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19302/* end confdefs.h. */ 19303#ifdef __STDC__ 19304# include <limits.h> 19305#else 19306# include <assert.h> 19307#endif 19308 Syntax error 19309_ACEOF 19310if ac_fn_cxx_try_cpp "$LINENO"; then : 19311 19312else 19313 # Broken: fails on valid input. 19314continue 19315fi 19316rm -f conftest.err conftest.i conftest.$ac_ext 19317 19318 # OK, works on sane cases. Now check whether nonexistent headers 19319 # can be detected and how. 19320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19321/* end confdefs.h. */ 19322#include <ac_nonexistent.h> 19323_ACEOF 19324if ac_fn_cxx_try_cpp "$LINENO"; then : 19325 # Broken: success on invalid input. 19326continue 19327else 19328 # Passes both tests. 19329ac_preproc_ok=: 19330break 19331fi 19332rm -f conftest.err conftest.i conftest.$ac_ext 19333 19334done 19335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19336rm -f conftest.i conftest.err conftest.$ac_ext 19337if $ac_preproc_ok; then : 19338 break 19339fi 19340 19341 done 19342 ac_cv_prog_CXXCPP=$CXXCPP 19343 19344fi 19345 CXXCPP=$ac_cv_prog_CXXCPP 19346else 19347 ac_cv_prog_CXXCPP=$CXXCPP 19348fi 19349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 19350$as_echo "$CXXCPP" >&6; } 19351ac_preproc_ok=false 19352for ac_cxx_preproc_warn_flag in '' yes 19353do 19354 # Use a header file that comes with gcc, so configuring glibc 19355 # with a fresh cross-compiler works. 19356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19357 # <limits.h> exists even on freestanding compilers. 19358 # On the NeXT, cc -E runs the code through the compiler's parser, 19359 # not just through cpp. "Syntax error" is here to catch this case. 19360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19361/* end confdefs.h. */ 19362#ifdef __STDC__ 19363# include <limits.h> 19364#else 19365# include <assert.h> 19366#endif 19367 Syntax error 19368_ACEOF 19369if ac_fn_cxx_try_cpp "$LINENO"; then : 19370 19371else 19372 # Broken: fails on valid input. 19373continue 19374fi 19375rm -f conftest.err conftest.i conftest.$ac_ext 19376 19377 # OK, works on sane cases. Now check whether nonexistent headers 19378 # can be detected and how. 19379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19380/* end confdefs.h. */ 19381#include <ac_nonexistent.h> 19382_ACEOF 19383if ac_fn_cxx_try_cpp "$LINENO"; then : 19384 # Broken: success on invalid input. 19385continue 19386else 19387 # Passes both tests. 19388ac_preproc_ok=: 19389break 19390fi 19391rm -f conftest.err conftest.i conftest.$ac_ext 19392 19393done 19394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19395rm -f conftest.i conftest.err conftest.$ac_ext 19396if $ac_preproc_ok; then : 19397 19398else 19399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19401as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 19402See \`config.log' for more details" "$LINENO" 5; } 19403fi 19404 19405ac_ext=c 19406ac_cpp='$CPP $CPPFLAGS' 19407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19409ac_compiler_gnu=$ac_cv_c_compiler_gnu 19410 19411 19412 19413 19414ac_ext=cpp 19415ac_cpp='$CXXCPP $CPPFLAGS' 19416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19419 19420 19421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are using a broken version of glibc with a version of GCC (>=2.97) that doesn't like it" >&5 19422$as_echo_n "checking if you are using a broken version of glibc with a version of GCC (>=2.97) that doesn't like it... " >&6; } 19423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19424/* end confdefs.h. */ 19425 19426#include <stdio.h> 19427int x = 0; 19428class foo { 19429public: 19430foo() { } 19431void some_member_function(void) { }; 19432int printf(const char *fmt, ...); 19433}; 19434 19435int 19436main () 19437{ 19438/* no function body*/ 19439 ; 19440 return 0; 19441} 19442_ACEOF 19443if ac_fn_cxx_try_compile "$LINENO"; then : 19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19445$as_echo "no" >&6; } 19446else 19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19448$as_echo "yes" >&6; } 19449 19450oldCFLAGS="$CFLAGS" 19451oldCXXFLAGS="$CXXFLAGS" 19452if echo "$CFLAGS" | grep -e "-O" >/dev/null 19453then 19454 CFLAGS="-g" 19455 CXXFLAGS="-g" 19456 19457echo 19458echo WARNING It seems that you are using a version of GNU lilbc 19459echo WARNING that has a broken printf macro in /usr/include/bits/stdio.h. 19460echo WARNING I have changed CFLAGS and CXXFLAGS to turn optimisation off 19461echo WARNING in order to work around the problem. 19462echo WARNING 19463echo WARNING Other possible workarounds would be to use GCC 2.96 or 19464echo WARNING earlier, or a version of glibc which does not have this 19465echo WARNING bug. 19466echo WARNING 19467echo WARNING CFLAGS has been changed from "$oldCFLAGS" to "$CFLAGS" 19468echo WARNING CXXFLAGS has been changed from "$oldCXXFLAGS" to "$CXXFLAGS" 19469echo 19470 19471fi 19472 19473fi 19474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19475 19476ac_ext=c 19477ac_cpp='$CPP $CPPFLAGS' 19478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19480ac_compiler_gnu=$ac_cv_c_compiler_gnu 19481 19482 19483 19484 19485 19486 19487 LIBC_FATAL_STDERR_=1 19488 export LIBC_FATAL_STDERR_ 19489 19490 19491 GNULIB_CHDIR=0; 19492 GNULIB_CHOWN=0; 19493 GNULIB_CLOSE=0; 19494 GNULIB_DUP=0; 19495 GNULIB_DUP2=0; 19496 GNULIB_DUP3=0; 19497 GNULIB_ENVIRON=0; 19498 GNULIB_EUIDACCESS=0; 19499 GNULIB_FACCESSAT=0; 19500 GNULIB_FCHDIR=0; 19501 GNULIB_FCHOWNAT=0; 19502 GNULIB_FDATASYNC=0; 19503 GNULIB_FSYNC=0; 19504 GNULIB_FTRUNCATE=0; 19505 GNULIB_GETCWD=0; 19506 GNULIB_GETDOMAINNAME=0; 19507 GNULIB_GETDTABLESIZE=0; 19508 GNULIB_GETGROUPS=0; 19509 GNULIB_GETHOSTNAME=0; 19510 GNULIB_GETLOGIN=0; 19511 GNULIB_GETLOGIN_R=0; 19512 GNULIB_GETPAGESIZE=0; 19513 GNULIB_GETUSERSHELL=0; 19514 GNULIB_GROUP_MEMBER=0; 19515 GNULIB_ISATTY=0; 19516 GNULIB_LCHOWN=0; 19517 GNULIB_LINK=0; 19518 GNULIB_LINKAT=0; 19519 GNULIB_LSEEK=0; 19520 GNULIB_PIPE=0; 19521 GNULIB_PIPE2=0; 19522 GNULIB_PREAD=0; 19523 GNULIB_PWRITE=0; 19524 GNULIB_READ=0; 19525 GNULIB_READLINK=0; 19526 GNULIB_READLINKAT=0; 19527 GNULIB_RMDIR=0; 19528 GNULIB_SETHOSTNAME=0; 19529 GNULIB_SLEEP=0; 19530 GNULIB_SYMLINK=0; 19531 GNULIB_SYMLINKAT=0; 19532 GNULIB_TTYNAME_R=0; 19533 GNULIB_UNISTD_H_NONBLOCKING=0; 19534 GNULIB_UNISTD_H_SIGPIPE=0; 19535 GNULIB_UNLINK=0; 19536 GNULIB_UNLINKAT=0; 19537 GNULIB_USLEEP=0; 19538 GNULIB_WRITE=0; 19539 HAVE_CHOWN=1; 19540 HAVE_DUP2=1; 19541 HAVE_DUP3=1; 19542 HAVE_EUIDACCESS=1; 19543 HAVE_FACCESSAT=1; 19544 HAVE_FCHDIR=1; 19545 HAVE_FCHOWNAT=1; 19546 HAVE_FDATASYNC=1; 19547 HAVE_FSYNC=1; 19548 HAVE_FTRUNCATE=1; 19549 HAVE_GETDTABLESIZE=1; 19550 HAVE_GETGROUPS=1; 19551 HAVE_GETHOSTNAME=1; 19552 HAVE_GETLOGIN=1; 19553 HAVE_GETPAGESIZE=1; 19554 HAVE_GROUP_MEMBER=1; 19555 HAVE_LCHOWN=1; 19556 HAVE_LINK=1; 19557 HAVE_LINKAT=1; 19558 HAVE_PIPE=1; 19559 HAVE_PIPE2=1; 19560 HAVE_PREAD=1; 19561 HAVE_PWRITE=1; 19562 HAVE_READLINK=1; 19563 HAVE_READLINKAT=1; 19564 HAVE_SETHOSTNAME=1; 19565 HAVE_SLEEP=1; 19566 HAVE_SYMLINK=1; 19567 HAVE_SYMLINKAT=1; 19568 HAVE_UNLINKAT=1; 19569 HAVE_USLEEP=1; 19570 HAVE_DECL_ENVIRON=1; 19571 HAVE_DECL_FCHDIR=1; 19572 HAVE_DECL_FDATASYNC=1; 19573 HAVE_DECL_GETDOMAINNAME=1; 19574 HAVE_DECL_GETLOGIN_R=1; 19575 HAVE_DECL_GETPAGESIZE=1; 19576 HAVE_DECL_GETUSERSHELL=1; 19577 HAVE_DECL_SETHOSTNAME=1; 19578 HAVE_DECL_TTYNAME_R=1; 19579 HAVE_OS_H=0; 19580 HAVE_SYS_PARAM_H=0; 19581 REPLACE_CHOWN=0; 19582 REPLACE_CLOSE=0; 19583 REPLACE_DUP=0; 19584 REPLACE_DUP2=0; 19585 REPLACE_FCHOWNAT=0; 19586 REPLACE_FTRUNCATE=0; 19587 REPLACE_GETCWD=0; 19588 REPLACE_GETDOMAINNAME=0; 19589 REPLACE_GETDTABLESIZE=0; 19590 REPLACE_GETLOGIN_R=0; 19591 REPLACE_GETGROUPS=0; 19592 REPLACE_GETPAGESIZE=0; 19593 REPLACE_ISATTY=0; 19594 REPLACE_LCHOWN=0; 19595 REPLACE_LINK=0; 19596 REPLACE_LINKAT=0; 19597 REPLACE_LSEEK=0; 19598 REPLACE_PREAD=0; 19599 REPLACE_PWRITE=0; 19600 REPLACE_READ=0; 19601 REPLACE_READLINK=0; 19602 REPLACE_READLINKAT=0; 19603 REPLACE_RMDIR=0; 19604 REPLACE_SLEEP=0; 19605 REPLACE_SYMLINK=0; 19606 REPLACE_SYMLINKAT=0; 19607 REPLACE_TTYNAME_R=0; 19608 REPLACE_UNLINK=0; 19609 REPLACE_UNLINKAT=0; 19610 REPLACE_USLEEP=0; 19611 REPLACE_WRITE=0; 19612 UNISTD_H_HAVE_WINSOCK2_H=0; 19613 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; 19614 19615 19616 19617 19618 19619 19620 for ac_func in $gl_func_list 19621do : 19622 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19623ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19624if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19625 cat >>confdefs.h <<_ACEOF 19626#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19627_ACEOF 19628 19629fi 19630done 19631 19632 19633 19634 19635 19636 19637 19638 : 19639 19640 19641 19642 19643 19644 if test $ac_cv_func__set_invalid_parameter_handler = yes; then 19645 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 19646 19647$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h 19648 19649 else 19650 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 19651 fi 19652 19653 19654 19655 19656 19657 19658 for ac_header in $gl_header_list 19659do : 19660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19661ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19662if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19663 cat >>confdefs.h <<_ACEOF 19664#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19665_ACEOF 19666 19667fi 19668 19669done 19670 19671 19672 19673 19674 19675 19676 GNULIB_OPENDIR=0; 19677 GNULIB_READDIR=0; 19678 GNULIB_REWINDDIR=0; 19679 GNULIB_CLOSEDIR=0; 19680 GNULIB_DIRFD=0; 19681 GNULIB_FDOPENDIR=0; 19682 GNULIB_SCANDIR=0; 19683 GNULIB_ALPHASORT=0; 19684 HAVE_OPENDIR=1; 19685 HAVE_READDIR=1; 19686 HAVE_REWINDDIR=1; 19687 HAVE_CLOSEDIR=1; 19688 HAVE_DECL_DIRFD=1; 19689 HAVE_DECL_FDOPENDIR=1; 19690 HAVE_FDOPENDIR=1; 19691 HAVE_SCANDIR=1; 19692 HAVE_ALPHASORT=1; 19693 REPLACE_OPENDIR=0; 19694 REPLACE_CLOSEDIR=0; 19695 REPLACE_DIRFD=0; 19696 REPLACE_FDOPENDIR=0; 19697 19698 19699 GNULIB_ISBLANK=0; 19700 HAVE_ISBLANK=1; 19701 19702 19703 19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 19705$as_echo_n "checking whether the preprocessor supports include_next... " >&6; } 19706if ${gl_cv_have_include_next+:} false; then : 19707 $as_echo_n "(cached) " >&6 19708else 19709 rm -rf conftestd1a conftestd1b conftestd2 19710 mkdir conftestd1a conftestd1b conftestd2 19711 cat <<EOF > conftestd1a/conftest.h 19712#define DEFINED_IN_CONFTESTD1 19713#include_next <conftest.h> 19714#ifdef DEFINED_IN_CONFTESTD2 19715int foo; 19716#else 19717#error "include_next doesn't work" 19718#endif 19719EOF 19720 cat <<EOF > conftestd1b/conftest.h 19721#define DEFINED_IN_CONFTESTD1 19722#include <stdio.h> 19723#include_next <conftest.h> 19724#ifdef DEFINED_IN_CONFTESTD2 19725int foo; 19726#else 19727#error "include_next doesn't work" 19728#endif 19729EOF 19730 cat <<EOF > conftestd2/conftest.h 19731#ifndef DEFINED_IN_CONFTESTD1 19732#error "include_next test doesn't work" 19733#endif 19734#define DEFINED_IN_CONFTESTD2 19735EOF 19736 gl_save_CPPFLAGS="$CPPFLAGS" 19737 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" 19738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19739/* end confdefs.h. */ 19740#include <conftest.h> 19741_ACEOF 19742if ac_fn_c_try_compile "$LINENO"; then : 19743 gl_cv_have_include_next=yes 19744else 19745 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" 19746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19747/* end confdefs.h. */ 19748#include <conftest.h> 19749_ACEOF 19750if ac_fn_c_try_compile "$LINENO"; then : 19751 gl_cv_have_include_next=buggy 19752else 19753 gl_cv_have_include_next=no 19754fi 19755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19756 19757fi 19758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19759 CPPFLAGS="$gl_save_CPPFLAGS" 19760 rm -rf conftestd1a conftestd1b conftestd2 19761 19762fi 19763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 19764$as_echo "$gl_cv_have_include_next" >&6; } 19765 PRAGMA_SYSTEM_HEADER= 19766 if test $gl_cv_have_include_next = yes; then 19767 INCLUDE_NEXT=include_next 19768 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 19769 if test -n "$GCC"; then 19770 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' 19771 fi 19772 else 19773 if test $gl_cv_have_include_next = buggy; then 19774 INCLUDE_NEXT=include 19775 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 19776 else 19777 INCLUDE_NEXT=include 19778 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include 19779 fi 19780 fi 19781 19782 19783 19784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5 19785$as_echo_n "checking whether system header files limit the line length... " >&6; } 19786if ${gl_cv_pragma_columns+:} false; then : 19787 $as_echo_n "(cached) " >&6 19788else 19789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19790/* end confdefs.h. */ 19791 19792#ifdef __TANDEM 19793choke me 19794#endif 19795 19796_ACEOF 19797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19798 $EGREP "choke me" >/dev/null 2>&1; then : 19799 gl_cv_pragma_columns=yes 19800else 19801 gl_cv_pragma_columns=no 19802fi 19803rm -f conftest* 19804 19805 19806fi 19807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5 19808$as_echo "$gl_cv_pragma_columns" >&6; } 19809 if test $gl_cv_pragma_columns = yes; then 19810 PRAGMA_COLUMNS="#pragma COLUMNS 10000" 19811 else 19812 PRAGMA_COLUMNS= 19813 fi 19814 19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 19829$as_echo_n "checking for complete errno.h... " >&6; } 19830if ${gl_cv_header_errno_h_complete+:} false; then : 19831 $as_echo_n "(cached) " >&6 19832else 19833 19834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19835/* end confdefs.h. */ 19836 19837#include <errno.h> 19838#if !defined ETXTBSY 19839booboo 19840#endif 19841#if !defined ENOMSG 19842booboo 19843#endif 19844#if !defined EIDRM 19845booboo 19846#endif 19847#if !defined ENOLINK 19848booboo 19849#endif 19850#if !defined EPROTO 19851booboo 19852#endif 19853#if !defined EMULTIHOP 19854booboo 19855#endif 19856#if !defined EBADMSG 19857booboo 19858#endif 19859#if !defined EOVERFLOW 19860booboo 19861#endif 19862#if !defined ENOTSUP 19863booboo 19864#endif 19865#if !defined ENETRESET 19866booboo 19867#endif 19868#if !defined ECONNABORTED 19869booboo 19870#endif 19871#if !defined ESTALE 19872booboo 19873#endif 19874#if !defined EDQUOT 19875booboo 19876#endif 19877#if !defined ECANCELED 19878booboo 19879#endif 19880#if !defined EOWNERDEAD 19881booboo 19882#endif 19883#if !defined ENOTRECOVERABLE 19884booboo 19885#endif 19886#if !defined EILSEQ 19887booboo 19888#endif 19889 19890_ACEOF 19891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19892 $EGREP "booboo" >/dev/null 2>&1; then : 19893 gl_cv_header_errno_h_complete=no 19894else 19895 gl_cv_header_errno_h_complete=yes 19896fi 19897rm -f conftest* 19898 19899 19900fi 19901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 19902$as_echo "$gl_cv_header_errno_h_complete" >&6; } 19903 if test $gl_cv_header_errno_h_complete = yes; then 19904 ERRNO_H='' 19905 else 19906 19907 19908 19909 19910 19911 19912 19913 19914 if test $gl_cv_have_include_next = yes; then 19915 gl_cv_next_errno_h='<'errno.h'>' 19916 else 19917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5 19918$as_echo_n "checking absolute name of <errno.h>... " >&6; } 19919if ${gl_cv_next_errno_h+:} false; then : 19920 $as_echo_n "(cached) " >&6 19921else 19922 19923 19924 19925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19926/* end confdefs.h. */ 19927#include <errno.h> 19928_ACEOF 19929 case "$host_os" in 19930 aix*) gl_absname_cpp="$ac_cpp -C" ;; 19931 *) gl_absname_cpp="$ac_cpp" ;; 19932 esac 19933 19934 case "$host_os" in 19935 mingw*) 19936 gl_dirsep_regex='[/\\]' 19937 ;; 19938 *) 19939 gl_dirsep_regex='\/' 19940 ;; 19941 esac 19942 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 19943 gl_header_literal_regex=`echo 'errno.h' \ 19944 | sed -e "$gl_make_literal_regex_sed"` 19945 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 19946 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 19947 s|^/[^/]|//&| 19948 p 19949 q 19950 }' 19951 19952 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 19953 sed -n "$gl_absolute_header_sed"` 19954 19955 gl_header=$gl_cv_absolute_errno_h 19956 gl_cv_next_errno_h='"'$gl_header'"' 19957 19958 19959fi 19960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 19961$as_echo "$gl_cv_next_errno_h" >&6; } 19962 fi 19963 NEXT_ERRNO_H=$gl_cv_next_errno_h 19964 19965 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 19966 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 19967 gl_next_as_first_directive='<'errno.h'>' 19968 else 19969 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 19970 gl_next_as_first_directive=$gl_cv_next_errno_h 19971 fi 19972 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive 19973 19974 19975 19976 19977 ERRNO_H='errno.h' 19978 fi 19979 19980 if test -n "$ERRNO_H"; then 19981 GL_GENERATE_ERRNO_H_TRUE= 19982 GL_GENERATE_ERRNO_H_FALSE='#' 19983else 19984 GL_GENERATE_ERRNO_H_TRUE='#' 19985 GL_GENERATE_ERRNO_H_FALSE= 19986fi 19987 19988 19989 if test -n "$ERRNO_H"; then 19990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 19991$as_echo_n "checking for EMULTIHOP value... " >&6; } 19992if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then : 19993 $as_echo_n "(cached) " >&6 19994else 19995 19996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19997/* end confdefs.h. */ 19998 19999#include <errno.h> 20000#ifdef EMULTIHOP 20001yes 20002#endif 20003 20004_ACEOF 20005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20006 $EGREP "yes" >/dev/null 2>&1; then : 20007 gl_cv_header_errno_h_EMULTIHOP=yes 20008else 20009 gl_cv_header_errno_h_EMULTIHOP=no 20010fi 20011rm -f conftest* 20012 20013 if test $gl_cv_header_errno_h_EMULTIHOP = no; then 20014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20015/* end confdefs.h. */ 20016 20017#define _XOPEN_SOURCE_EXTENDED 1 20018#include <errno.h> 20019#ifdef EMULTIHOP 20020yes 20021#endif 20022 20023_ACEOF 20024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20025 $EGREP "yes" >/dev/null 2>&1; then : 20026 gl_cv_header_errno_h_EMULTIHOP=hidden 20027fi 20028rm -f conftest* 20029 20030 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then 20031 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " 20032#define _XOPEN_SOURCE_EXTENDED 1 20033#include <errno.h> 20034/* The following two lines are a workaround against an autoconf-2.52 bug. */ 20035#include <stdio.h> 20036#include <stdlib.h> 20037"; then : 20038 20039fi 20040 20041 fi 20042 fi 20043 20044fi 20045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 20046$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; } 20047 case $gl_cv_header_errno_h_EMULTIHOP in 20048 yes | no) 20049 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= 20050 ;; 20051 *) 20052 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" 20053 ;; 20054 esac 20055 20056 20057 fi 20058 20059 20060 if test -n "$ERRNO_H"; then 20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 20062$as_echo_n "checking for ENOLINK value... " >&6; } 20063if ${gl_cv_header_errno_h_ENOLINK+:} false; then : 20064 $as_echo_n "(cached) " >&6 20065else 20066 20067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20068/* end confdefs.h. */ 20069 20070#include <errno.h> 20071#ifdef ENOLINK 20072yes 20073#endif 20074 20075_ACEOF 20076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20077 $EGREP "yes" >/dev/null 2>&1; then : 20078 gl_cv_header_errno_h_ENOLINK=yes 20079else 20080 gl_cv_header_errno_h_ENOLINK=no 20081fi 20082rm -f conftest* 20083 20084 if test $gl_cv_header_errno_h_ENOLINK = no; then 20085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20086/* end confdefs.h. */ 20087 20088#define _XOPEN_SOURCE_EXTENDED 1 20089#include <errno.h> 20090#ifdef ENOLINK 20091yes 20092#endif 20093 20094_ACEOF 20095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20096 $EGREP "yes" >/dev/null 2>&1; then : 20097 gl_cv_header_errno_h_ENOLINK=hidden 20098fi 20099rm -f conftest* 20100 20101 if test $gl_cv_header_errno_h_ENOLINK = hidden; then 20102 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " 20103#define _XOPEN_SOURCE_EXTENDED 1 20104#include <errno.h> 20105/* The following two lines are a workaround against an autoconf-2.52 bug. */ 20106#include <stdio.h> 20107#include <stdlib.h> 20108"; then : 20109 20110fi 20111 20112 fi 20113 fi 20114 20115fi 20116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 20117$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; } 20118 case $gl_cv_header_errno_h_ENOLINK in 20119 yes | no) 20120 ENOLINK_HIDDEN=0; ENOLINK_VALUE= 20121 ;; 20122 *) 20123 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" 20124 ;; 20125 esac 20126 20127 20128 fi 20129 20130 20131 if test -n "$ERRNO_H"; then 20132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 20133$as_echo_n "checking for EOVERFLOW value... " >&6; } 20134if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then : 20135 $as_echo_n "(cached) " >&6 20136else 20137 20138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20139/* end confdefs.h. */ 20140 20141#include <errno.h> 20142#ifdef EOVERFLOW 20143yes 20144#endif 20145 20146_ACEOF 20147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20148 $EGREP "yes" >/dev/null 2>&1; then : 20149 gl_cv_header_errno_h_EOVERFLOW=yes 20150else 20151 gl_cv_header_errno_h_EOVERFLOW=no 20152fi 20153rm -f conftest* 20154 20155 if test $gl_cv_header_errno_h_EOVERFLOW = no; then 20156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20157/* end confdefs.h. */ 20158 20159#define _XOPEN_SOURCE_EXTENDED 1 20160#include <errno.h> 20161#ifdef EOVERFLOW 20162yes 20163#endif 20164 20165_ACEOF 20166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20167 $EGREP "yes" >/dev/null 2>&1; then : 20168 gl_cv_header_errno_h_EOVERFLOW=hidden 20169fi 20170rm -f conftest* 20171 20172 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then 20173 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " 20174#define _XOPEN_SOURCE_EXTENDED 1 20175#include <errno.h> 20176/* The following two lines are a workaround against an autoconf-2.52 bug. */ 20177#include <stdio.h> 20178#include <stdlib.h> 20179"; then : 20180 20181fi 20182 20183 fi 20184 fi 20185 20186fi 20187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 20188$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; } 20189 case $gl_cv_header_errno_h_EOVERFLOW in 20190 yes | no) 20191 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= 20192 ;; 20193 *) 20194 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" 20195 ;; 20196 esac 20197 20198 20199 fi 20200 20201 20202 20203 20204 20205 20206 GNULIB_FCNTL=0; 20207 GNULIB_NONBLOCKING=0; 20208 GNULIB_OPEN=0; 20209 GNULIB_OPENAT=0; 20210 HAVE_FCNTL=1; 20211 HAVE_OPENAT=1; 20212 REPLACE_FCNTL=0; 20213 REPLACE_OPEN=0; 20214 REPLACE_OPENAT=0; 20215 20216 20217 20218 20219 20220 20221 20222 20223 20224 20225 20226 20227 20228 20229 20230 20231 20232 20233 20234 20235 : 20236 20237 20238 20239 20240 20241 20242 : 20243 20244 20245 20246 20247 20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 20249$as_echo_n "checking for working fcntl.h... " >&6; } 20250if ${gl_cv_header_working_fcntl_h+:} false; then : 20251 $as_echo_n "(cached) " >&6 20252else 20253 if test "$cross_compiling" = yes; then : 20254 gl_cv_header_working_fcntl_h=cross-compiling 20255else 20256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20257/* end confdefs.h. */ 20258#include <sys/types.h> 20259 #include <sys/stat.h> 20260 #if HAVE_UNISTD_H 20261 # include <unistd.h> 20262 #else /* on Windows with MSVC */ 20263 # include <io.h> 20264 # include <stdlib.h> 20265 # defined sleep(n) _sleep ((n) * 1000) 20266 #endif 20267 #include <fcntl.h> 20268 #ifndef O_NOATIME 20269 #define O_NOATIME 0 20270 #endif 20271 #ifndef O_NOFOLLOW 20272 #define O_NOFOLLOW 0 20273 #endif 20274 static int const constants[] = 20275 { 20276 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, 20277 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY 20278 }; 20279 20280int 20281main () 20282{ 20283 20284 int result = !constants; 20285 #if HAVE_SYMLINK 20286 { 20287 static char const sym[] = "conftest.sym"; 20288 if (symlink ("/dev/null", sym) != 0) 20289 result |= 2; 20290 else 20291 { 20292 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); 20293 if (fd >= 0) 20294 { 20295 close (fd); 20296 result |= 4; 20297 } 20298 } 20299 if (unlink (sym) != 0 || symlink (".", sym) != 0) 20300 result |= 2; 20301 else 20302 { 20303 int fd = open (sym, O_RDONLY | O_NOFOLLOW); 20304 if (fd >= 0) 20305 { 20306 close (fd); 20307 result |= 4; 20308 } 20309 } 20310 unlink (sym); 20311 } 20312 #endif 20313 { 20314 static char const file[] = "confdefs.h"; 20315 int fd = open (file, O_RDONLY | O_NOATIME); 20316 if (fd < 0) 20317 result |= 8; 20318 else 20319 { 20320 struct stat st0; 20321 if (fstat (fd, &st0) != 0) 20322 result |= 16; 20323 else 20324 { 20325 char c; 20326 sleep (1); 20327 if (read (fd, &c, 1) != 1) 20328 result |= 24; 20329 else 20330 { 20331 if (close (fd) != 0) 20332 result |= 32; 20333 else 20334 { 20335 struct stat st1; 20336 if (stat (file, &st1) != 0) 20337 result |= 40; 20338 else 20339 if (st0.st_atime != st1.st_atime) 20340 result |= 64; 20341 } 20342 } 20343 } 20344 } 20345 } 20346 return result; 20347 ; 20348 return 0; 20349} 20350_ACEOF 20351if ac_fn_c_try_run "$LINENO"; then : 20352 gl_cv_header_working_fcntl_h=yes 20353else 20354 case $? in #( 20355 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 20356 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 20357 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( 20358 *) gl_cv_header_working_fcntl_h='no';; 20359 esac 20360fi 20361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20362 conftest.$ac_objext conftest.beam conftest.$ac_ext 20363fi 20364 20365fi 20366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 20367$as_echo "$gl_cv_header_working_fcntl_h" >&6; } 20368 20369 case $gl_cv_header_working_fcntl_h in #( 20370 *O_NOATIME* | no | cross-compiling) ac_val=0;; #( 20371 *) ac_val=1;; 20372 esac 20373 20374cat >>confdefs.h <<_ACEOF 20375#define HAVE_WORKING_O_NOATIME $ac_val 20376_ACEOF 20377 20378 20379 case $gl_cv_header_working_fcntl_h in #( 20380 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( 20381 *) ac_val=1;; 20382 esac 20383 20384cat >>confdefs.h <<_ACEOF 20385#define HAVE_WORKING_O_NOFOLLOW $ac_val 20386_ACEOF 20387 20388 20389ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 20390if test "x$ac_cv_type_pid_t" = xyes; then : 20391 20392else 20393 20394cat >>confdefs.h <<_ACEOF 20395#define pid_t int 20396_ACEOF 20397 20398fi 20399 20400ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 20401if test "x$ac_cv_type_mode_t" = xyes; then : 20402 20403else 20404 20405cat >>confdefs.h <<_ACEOF 20406#define mode_t int 20407_ACEOF 20408 20409fi 20410 20411 20412 GNULIB_DPRINTF=0; 20413 GNULIB_FCLOSE=0; 20414 GNULIB_FDOPEN=0; 20415 GNULIB_FFLUSH=0; 20416 GNULIB_FGETC=0; 20417 GNULIB_FGETS=0; 20418 GNULIB_FOPEN=0; 20419 GNULIB_FPRINTF=0; 20420 GNULIB_FPRINTF_POSIX=0; 20421 GNULIB_FPURGE=0; 20422 GNULIB_FPUTC=0; 20423 GNULIB_FPUTS=0; 20424 GNULIB_FREAD=0; 20425 GNULIB_FREOPEN=0; 20426 GNULIB_FSCANF=0; 20427 GNULIB_FSEEK=0; 20428 GNULIB_FSEEKO=0; 20429 GNULIB_FTELL=0; 20430 GNULIB_FTELLO=0; 20431 GNULIB_FWRITE=0; 20432 GNULIB_GETC=0; 20433 GNULIB_GETCHAR=0; 20434 GNULIB_GETDELIM=0; 20435 GNULIB_GETLINE=0; 20436 GNULIB_OBSTACK_PRINTF=0; 20437 GNULIB_OBSTACK_PRINTF_POSIX=0; 20438 GNULIB_PCLOSE=0; 20439 GNULIB_PERROR=0; 20440 GNULIB_POPEN=0; 20441 GNULIB_PRINTF=0; 20442 GNULIB_PRINTF_POSIX=0; 20443 GNULIB_PUTC=0; 20444 GNULIB_PUTCHAR=0; 20445 GNULIB_PUTS=0; 20446 GNULIB_REMOVE=0; 20447 GNULIB_RENAME=0; 20448 GNULIB_RENAMEAT=0; 20449 GNULIB_SCANF=0; 20450 GNULIB_SNPRINTF=0; 20451 GNULIB_SPRINTF_POSIX=0; 20452 GNULIB_STDIO_H_NONBLOCKING=0; 20453 GNULIB_STDIO_H_SIGPIPE=0; 20454 GNULIB_TMPFILE=0; 20455 GNULIB_VASPRINTF=0; 20456 GNULIB_VFSCANF=0; 20457 GNULIB_VSCANF=0; 20458 GNULIB_VDPRINTF=0; 20459 GNULIB_VFPRINTF=0; 20460 GNULIB_VFPRINTF_POSIX=0; 20461 GNULIB_VPRINTF=0; 20462 GNULIB_VPRINTF_POSIX=0; 20463 GNULIB_VSNPRINTF=0; 20464 GNULIB_VSPRINTF_POSIX=0; 20465 HAVE_DECL_FPURGE=1; 20466 HAVE_DECL_FSEEKO=1; 20467 HAVE_DECL_FTELLO=1; 20468 HAVE_DECL_GETDELIM=1; 20469 HAVE_DECL_GETLINE=1; 20470 HAVE_DECL_OBSTACK_PRINTF=1; 20471 HAVE_DECL_SNPRINTF=1; 20472 HAVE_DECL_VSNPRINTF=1; 20473 HAVE_DPRINTF=1; 20474 HAVE_FSEEKO=1; 20475 HAVE_FTELLO=1; 20476 HAVE_PCLOSE=1; 20477 HAVE_POPEN=1; 20478 HAVE_RENAMEAT=1; 20479 HAVE_VASPRINTF=1; 20480 HAVE_VDPRINTF=1; 20481 REPLACE_DPRINTF=0; 20482 REPLACE_FCLOSE=0; 20483 REPLACE_FDOPEN=0; 20484 REPLACE_FFLUSH=0; 20485 REPLACE_FOPEN=0; 20486 REPLACE_FPRINTF=0; 20487 REPLACE_FPURGE=0; 20488 REPLACE_FREOPEN=0; 20489 REPLACE_FSEEK=0; 20490 REPLACE_FSEEKO=0; 20491 REPLACE_FTELL=0; 20492 REPLACE_FTELLO=0; 20493 REPLACE_GETDELIM=0; 20494 REPLACE_GETLINE=0; 20495 REPLACE_OBSTACK_PRINTF=0; 20496 REPLACE_PERROR=0; 20497 REPLACE_POPEN=0; 20498 REPLACE_PRINTF=0; 20499 REPLACE_REMOVE=0; 20500 REPLACE_RENAME=0; 20501 REPLACE_RENAMEAT=0; 20502 REPLACE_SNPRINTF=0; 20503 REPLACE_SPRINTF=0; 20504 REPLACE_STDIO_READ_FUNCS=0; 20505 REPLACE_STDIO_WRITE_FUNCS=0; 20506 REPLACE_TMPFILE=0; 20507 REPLACE_VASPRINTF=0; 20508 REPLACE_VDPRINTF=0; 20509 REPLACE_VFPRINTF=0; 20510 REPLACE_VPRINTF=0; 20511 REPLACE_VSNPRINTF=0; 20512 REPLACE_VSPRINTF=0; 20513 20514 20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5 20516$as_echo_n "checking whether stdin defaults to large file offsets... " >&6; } 20517if ${gl_cv_var_stdin_large_offset+:} false; then : 20518 $as_echo_n "(cached) " >&6 20519else 20520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20521/* end confdefs.h. */ 20522#include <stdio.h> 20523int 20524main () 20525{ 20526#if defined __SL64 && defined __SCLE /* cygwin */ 20527 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making 20528 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and 20529 it is easier to do a version check than building a runtime test. */ 20530# include <cygwin/version.h> 20531# if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25) 20532 choke me 20533# endif 20534#endif 20535 ; 20536 return 0; 20537} 20538_ACEOF 20539if ac_fn_c_try_link "$LINENO"; then : 20540 gl_cv_var_stdin_large_offset=yes 20541else 20542 gl_cv_var_stdin_large_offset=no 20543fi 20544rm -f core conftest.err conftest.$ac_objext \ 20545 conftest$ac_exeext conftest.$ac_ext 20546fi 20547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5 20548$as_echo "$gl_cv_var_stdin_large_offset" >&6; } 20549 20550 20551 20552 20553 20554 case "$host_os" in 20555 mingw*) 20556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5 20557$as_echo_n "checking for 64-bit off_t... " >&6; } 20558if ${gl_cv_type_off_t_64+:} false; then : 20559 $as_echo_n "(cached) " >&6 20560else 20561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20562/* end confdefs.h. */ 20563#include <sys/types.h> 20564 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; 20565 20566int 20567main () 20568{ 20569 20570 ; 20571 return 0; 20572} 20573_ACEOF 20574if ac_fn_c_try_compile "$LINENO"; then : 20575 gl_cv_type_off_t_64=yes 20576else 20577 gl_cv_type_off_t_64=no 20578fi 20579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20580 20581fi 20582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5 20583$as_echo "$gl_cv_type_off_t_64" >&6; } 20584 if test $gl_cv_type_off_t_64 = no; then 20585 WINDOWS_64_BIT_OFF_T=1 20586 else 20587 WINDOWS_64_BIT_OFF_T=0 20588 fi 20589 WINDOWS_64_BIT_ST_SIZE=1 20590 ;; 20591 *) 20592 WINDOWS_64_BIT_OFF_T=0 20593 WINDOWS_64_BIT_ST_SIZE=0 20594 ;; 20595 esac 20596 20597 20598 20599 20600 20601 20602 20603 20604 20605 20606 20607 20608 20609 20610 20611 20612 20613 if test $gl_cv_have_include_next = yes; then 20614 gl_cv_next_sys_types_h='<'sys/types.h'>' 20615 else 20616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5 20617$as_echo_n "checking absolute name of <sys/types.h>... " >&6; } 20618if ${gl_cv_next_sys_types_h+:} false; then : 20619 $as_echo_n "(cached) " >&6 20620else 20621 20622 20623 20624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20625/* end confdefs.h. */ 20626#include <sys/types.h> 20627_ACEOF 20628 case "$host_os" in 20629 aix*) gl_absname_cpp="$ac_cpp -C" ;; 20630 *) gl_absname_cpp="$ac_cpp" ;; 20631 esac 20632 20633 case "$host_os" in 20634 mingw*) 20635 gl_dirsep_regex='[/\\]' 20636 ;; 20637 *) 20638 gl_dirsep_regex='\/' 20639 ;; 20640 esac 20641 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 20642 gl_header_literal_regex=`echo 'sys/types.h' \ 20643 | sed -e "$gl_make_literal_regex_sed"` 20644 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 20645 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 20646 s|^/[^/]|//&| 20647 p 20648 q 20649 }' 20650 20651 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 20652 sed -n "$gl_absolute_header_sed"` 20653 20654 gl_header=$gl_cv_absolute_sys_types_h 20655 gl_cv_next_sys_types_h='"'$gl_header'"' 20656 20657 20658fi 20659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5 20660$as_echo "$gl_cv_next_sys_types_h" >&6; } 20661 fi 20662 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h 20663 20664 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 20665 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 20666 gl_next_as_first_directive='<'sys/types.h'>' 20667 else 20668 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 20669 gl_next_as_first_directive=$gl_cv_next_sys_types_h 20670 fi 20671 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive 20672 20673 20674 20675 20676 20677 20678 20679 20680 20681 20682 20683 20684 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default" 20685if test "x$ac_cv_have_decl_fseeko" = xyes; then : 20686 ac_have_decl=1 20687else 20688 ac_have_decl=0 20689fi 20690 20691cat >>confdefs.h <<_ACEOF 20692#define HAVE_DECL_FSEEKO $ac_have_decl 20693_ACEOF 20694 20695 20696 20697 20698 20699 20700 20701 20702 20703 20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5 20705$as_echo_n "checking for fseeko... " >&6; } 20706if ${gl_cv_func_fseeko+:} false; then : 20707 $as_echo_n "(cached) " >&6 20708else 20709 20710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20711/* end confdefs.h. */ 20712#include <stdio.h> 20713 20714int 20715main () 20716{ 20717fseeko (stdin, 0, 0); 20718 ; 20719 return 0; 20720} 20721_ACEOF 20722if ac_fn_c_try_link "$LINENO"; then : 20723 gl_cv_func_fseeko=yes 20724else 20725 gl_cv_func_fseeko=no 20726fi 20727rm -f core conftest.err conftest.$ac_objext \ 20728 conftest$ac_exeext conftest.$ac_ext 20729 20730fi 20731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5 20732$as_echo "$gl_cv_func_fseeko" >&6; } 20733 20734 20735 : 20736 20737 20738 20739 20740 20741 if test $ac_cv_have_decl_fseeko = no; then 20742 HAVE_DECL_FSEEKO=0 20743 fi 20744 20745 if test $gl_cv_func_fseeko = no; then 20746 HAVE_FSEEKO=0 20747 else 20748 if test $WINDOWS_64_BIT_OFF_T = 1; then 20749 REPLACE_FSEEKO=1 20750 fi 20751 if test $gl_cv_var_stdin_large_offset = no; then 20752 REPLACE_FSEEKO=1 20753 fi 20754 20755 fi 20756 20757 20758 GNULIB_FCHMODAT=0; 20759 GNULIB_FSTAT=0; 20760 GNULIB_FSTATAT=0; 20761 GNULIB_FUTIMENS=0; 20762 GNULIB_LCHMOD=0; 20763 GNULIB_LSTAT=0; 20764 GNULIB_MKDIRAT=0; 20765 GNULIB_MKFIFO=0; 20766 GNULIB_MKFIFOAT=0; 20767 GNULIB_MKNOD=0; 20768 GNULIB_MKNODAT=0; 20769 GNULIB_STAT=0; 20770 GNULIB_UTIMENSAT=0; 20771 HAVE_FCHMODAT=1; 20772 HAVE_FSTATAT=1; 20773 HAVE_FUTIMENS=1; 20774 HAVE_LCHMOD=1; 20775 HAVE_LSTAT=1; 20776 HAVE_MKDIRAT=1; 20777 HAVE_MKFIFO=1; 20778 HAVE_MKFIFOAT=1; 20779 HAVE_MKNOD=1; 20780 HAVE_MKNODAT=1; 20781 HAVE_UTIMENSAT=1; 20782 REPLACE_FSTAT=0; 20783 REPLACE_FSTATAT=0; 20784 REPLACE_FUTIMENS=0; 20785 REPLACE_LSTAT=0; 20786 REPLACE_MKDIR=0; 20787 REPLACE_MKFIFO=0; 20788 REPLACE_MKNOD=0; 20789 REPLACE_STAT=0; 20790 REPLACE_UTIMENSAT=0; 20791 20792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 20793$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 20794if ${ac_cv_header_stat_broken+:} false; then : 20795 $as_echo_n "(cached) " >&6 20796else 20797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20798/* end confdefs.h. */ 20799#include <sys/types.h> 20800#include <sys/stat.h> 20801 20802#if defined S_ISBLK && defined S_IFDIR 20803extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 20804#endif 20805 20806#if defined S_ISBLK && defined S_IFCHR 20807extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 20808#endif 20809 20810#if defined S_ISLNK && defined S_IFREG 20811extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 20812#endif 20813 20814#if defined S_ISSOCK && defined S_IFREG 20815extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 20816#endif 20817 20818_ACEOF 20819if ac_fn_c_try_compile "$LINENO"; then : 20820 ac_cv_header_stat_broken=no 20821else 20822 ac_cv_header_stat_broken=yes 20823fi 20824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20825fi 20826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 20827$as_echo "$ac_cv_header_stat_broken" >&6; } 20828if test $ac_cv_header_stat_broken = yes; then 20829 20830$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 20831 20832fi 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 if test $gl_cv_have_include_next = yes; then 20860 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 20861 else 20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 20863$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } 20864if ${gl_cv_next_sys_stat_h+:} false; then : 20865 $as_echo_n "(cached) " >&6 20866else 20867 20868 if test $ac_cv_header_sys_stat_h = yes; then 20869 20870 20871 20872 20873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20874/* end confdefs.h. */ 20875#include <sys/stat.h> 20876_ACEOF 20877 case "$host_os" in 20878 aix*) gl_absname_cpp="$ac_cpp -C" ;; 20879 *) gl_absname_cpp="$ac_cpp" ;; 20880 esac 20881 20882 case "$host_os" in 20883 mingw*) 20884 gl_dirsep_regex='[/\\]' 20885 ;; 20886 *) 20887 gl_dirsep_regex='\/' 20888 ;; 20889 esac 20890 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 20891 gl_header_literal_regex=`echo 'sys/stat.h' \ 20892 | sed -e "$gl_make_literal_regex_sed"` 20893 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 20894 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 20895 s|^/[^/]|//&| 20896 p 20897 q 20898 }' 20899 20900 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 20901 sed -n "$gl_absolute_header_sed"` 20902 20903 gl_header=$gl_cv_absolute_sys_stat_h 20904 gl_cv_next_sys_stat_h='"'$gl_header'"' 20905 else 20906 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 20907 fi 20908 20909 20910fi 20911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 20912$as_echo "$gl_cv_next_sys_stat_h" >&6; } 20913 fi 20914 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h 20915 20916 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 20917 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 20918 gl_next_as_first_directive='<'sys/stat.h'>' 20919 else 20920 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 20921 gl_next_as_first_directive=$gl_cv_next_sys_stat_h 20922 fi 20923 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive 20924 20925 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 if test $WINDOWS_64_BIT_ST_SIZE = 1; then 20936 20937$as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h 20938 20939 fi 20940 20941 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> 20942 #include <sys/stat.h> 20943" 20944if test "x$ac_cv_type_nlink_t" = xyes; then : 20945 20946else 20947 20948$as_echo "#define nlink_t int" >>confdefs.h 20949 20950fi 20951 20952 20953 20954 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do 20955 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 20957$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 20958if eval \${$as_gl_Symbol+:} false; then : 20959 $as_echo_n "(cached) " >&6 20960else 20961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20962/* end confdefs.h. */ 20963#include <sys/stat.h> 20964 20965int 20966main () 20967{ 20968#undef $gl_func 20969 (void) $gl_func; 20970 ; 20971 return 0; 20972} 20973_ACEOF 20974if ac_fn_c_try_compile "$LINENO"; then : 20975 eval "$as_gl_Symbol=yes" 20976else 20977 eval "$as_gl_Symbol=no" 20978fi 20979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20980fi 20981eval ac_res=\$$as_gl_Symbol 20982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20983$as_echo "$ac_res" >&6; } 20984 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 20985 cat >>confdefs.h <<_ACEOF 20986#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 20987_ACEOF 20988 20989 eval ac_cv_have_decl_$gl_func=yes 20990fi 20991 done 20992 20993 20994 20995 20996 20997 20998 20999 21000 ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" 21001if test "x$ac_cv_have_decl_getdtablesize" = xyes; then : 21002 ac_have_decl=1 21003else 21004 ac_have_decl=0 21005fi 21006 21007cat >>confdefs.h <<_ACEOF 21008#define HAVE_DECL_GETDTABLESIZE $ac_have_decl 21009_ACEOF 21010 21011 21012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 21013$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 21014if ${ac_cv_c_restrict+:} false; then : 21015 $as_echo_n "(cached) " >&6 21016else 21017 ac_cv_c_restrict=no 21018 # The order here caters to the fact that C++ does not require restrict. 21019 for ac_kw in __restrict __restrict__ _Restrict restrict; do 21020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21021/* end confdefs.h. */ 21022typedef int *int_ptr; 21023 int foo (int_ptr $ac_kw ip) { return ip[0]; } 21024 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ 21025 int bar (int ip[$ac_kw]) { return ip[0]; } 21026 21027int 21028main () 21029{ 21030int s[1]; 21031 int *$ac_kw t = s; 21032 t[0] = 0; 21033 return foo (t) + bar (t); 21034 21035 ; 21036 return 0; 21037} 21038_ACEOF 21039if ac_fn_c_try_compile "$LINENO"; then : 21040 ac_cv_c_restrict=$ac_kw 21041fi 21042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21043 test "$ac_cv_c_restrict" != no && break 21044 done 21045 21046fi 21047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 21048$as_echo "$ac_cv_c_restrict" >&6; } 21049 21050 case $ac_cv_c_restrict in 21051 restrict) ;; 21052 no) $as_echo "#define restrict /**/" >>confdefs.h 21053 ;; 21054 *) cat >>confdefs.h <<_ACEOF 21055#define restrict $ac_cv_c_restrict 21056_ACEOF 21057 ;; 21058 esac 21059 21060 21061 GNULIB_GETTIMEOFDAY=0; 21062 HAVE_GETTIMEOFDAY=1; 21063 HAVE_STRUCT_TIMEVAL=1; 21064 HAVE_SYS_TIME_H=1; 21065 HAVE_TIMEZONE_T=0; 21066 REPLACE_GETTIMEOFDAY=0; 21067 REPLACE_STRUCT_TIMEVAL=0; 21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 : 21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 : 21091 21092 21093 21094 21095 21096 21097 21098 21099 if test $gl_cv_have_include_next = yes; then 21100 gl_cv_next_sys_time_h='<'sys/time.h'>' 21101 else 21102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5 21103$as_echo_n "checking absolute name of <sys/time.h>... " >&6; } 21104if ${gl_cv_next_sys_time_h+:} false; then : 21105 $as_echo_n "(cached) " >&6 21106else 21107 21108 if test $ac_cv_header_sys_time_h = yes; then 21109 21110 21111 21112 21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21114/* end confdefs.h. */ 21115#include <sys/time.h> 21116_ACEOF 21117 case "$host_os" in 21118 aix*) gl_absname_cpp="$ac_cpp -C" ;; 21119 *) gl_absname_cpp="$ac_cpp" ;; 21120 esac 21121 21122 case "$host_os" in 21123 mingw*) 21124 gl_dirsep_regex='[/\\]' 21125 ;; 21126 *) 21127 gl_dirsep_regex='\/' 21128 ;; 21129 esac 21130 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 21131 gl_header_literal_regex=`echo 'sys/time.h' \ 21132 | sed -e "$gl_make_literal_regex_sed"` 21133 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 21134 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 21135 s|^/[^/]|//&| 21136 p 21137 q 21138 }' 21139 21140 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 21141 sed -n "$gl_absolute_header_sed"` 21142 21143 gl_header=$gl_cv_absolute_sys_time_h 21144 gl_cv_next_sys_time_h='"'$gl_header'"' 21145 else 21146 gl_cv_next_sys_time_h='<'sys/time.h'>' 21147 fi 21148 21149 21150fi 21151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5 21152$as_echo "$gl_cv_next_sys_time_h" >&6; } 21153 fi 21154 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h 21155 21156 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 21157 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 21158 gl_next_as_first_directive='<'sys/time.h'>' 21159 else 21160 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 21161 gl_next_as_first_directive=$gl_cv_next_sys_time_h 21162 fi 21163 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive 21164 21165 21166 21167 21168 21169 if test $ac_cv_header_sys_time_h != yes; then 21170 HAVE_SYS_TIME_H=0 21171 fi 21172 21173 21174 21175 21176 21177 : 21178 21179 21180 21181 21182 21183 if test $ac_cv_header_sys_socket_h != yes; then 21184 for ac_header in winsock2.h 21185do : 21186 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 21187if test "x$ac_cv_header_winsock2_h" = xyes; then : 21188 cat >>confdefs.h <<_ACEOF 21189#define HAVE_WINSOCK2_H 1 21190_ACEOF 21191 21192fi 21193 21194done 21195 21196 fi 21197 if test "$ac_cv_header_winsock2_h" = yes; then 21198 HAVE_WINSOCK2_H=1 21199 UNISTD_H_HAVE_WINSOCK2_H=1 21200 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 21201 else 21202 HAVE_WINSOCK2_H=0 21203 fi 21204 21205 21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 21207$as_echo_n "checking for struct timeval... " >&6; } 21208if ${gl_cv_sys_struct_timeval+:} false; then : 21209 $as_echo_n "(cached) " >&6 21210else 21211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21212/* end confdefs.h. */ 21213#if HAVE_SYS_TIME_H 21214 #include <sys/time.h> 21215 #endif 21216 #include <time.h> 21217 #if HAVE_WINSOCK2_H 21218 # include <winsock2.h> 21219 #endif 21220 21221int 21222main () 21223{ 21224static struct timeval x; x.tv_sec = x.tv_usec; 21225 ; 21226 return 0; 21227} 21228_ACEOF 21229if ac_fn_c_try_compile "$LINENO"; then : 21230 gl_cv_sys_struct_timeval=yes 21231else 21232 gl_cv_sys_struct_timeval=no 21233fi 21234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21235 21236fi 21237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5 21238$as_echo "$gl_cv_sys_struct_timeval" >&6; } 21239 if test $gl_cv_sys_struct_timeval != yes; then 21240 HAVE_STRUCT_TIMEVAL=0 21241 else 21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5 21243$as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; } 21244if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then : 21245 $as_echo_n "(cached) " >&6 21246else 21247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21248/* end confdefs.h. */ 21249#if HAVE_SYS_TIME_H 21250 #include <sys/time.h> 21251 #endif 21252 #include <time.h> 21253 #if HAVE_WINSOCK2_H 21254 # include <winsock2.h> 21255 #endif 21256 21257int 21258main () 21259{ 21260static struct timeval x; 21261 typedef int verify_tv_sec_type[ 21262 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1 21263 ]; 21264 21265 ; 21266 return 0; 21267} 21268_ACEOF 21269if ac_fn_c_try_compile "$LINENO"; then : 21270 gl_cv_sys_struct_timeval_tv_sec=yes 21271else 21272 gl_cv_sys_struct_timeval_tv_sec=no 21273fi 21274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21275 21276fi 21277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5 21278$as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; } 21279 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then 21280 REPLACE_STRUCT_TIMEVAL=1 21281 fi 21282 fi 21283 21284 21285 for gl_func in gettimeofday; do 21286 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 21287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 21288$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 21289if eval \${$as_gl_Symbol+:} false; then : 21290 $as_echo_n "(cached) " >&6 21291else 21292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21293/* end confdefs.h. */ 21294 21295#if HAVE_SYS_TIME_H 21296# include <sys/time.h> 21297#endif 21298#include <time.h> 21299 21300int 21301main () 21302{ 21303#undef $gl_func 21304 (void) $gl_func; 21305 ; 21306 return 0; 21307} 21308_ACEOF 21309if ac_fn_c_try_compile "$LINENO"; then : 21310 eval "$as_gl_Symbol=yes" 21311else 21312 eval "$as_gl_Symbol=no" 21313fi 21314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21315fi 21316eval ac_res=\$$as_gl_Symbol 21317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21318$as_echo "$ac_res" >&6; } 21319 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 21320 cat >>confdefs.h <<_ACEOF 21321#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 21322_ACEOF 21323 21324 eval ac_cv_have_decl_$gl_func=yes 21325fi 21326 done 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 21337 21338 21339 21340 21341 HAVE_PTHREAD_H=1; 21342 HAVE_PTHREAD_T=1; 21343 HAVE_PTHREAD_SPINLOCK_T=1; 21344 21345 21346 21347 21348 21349 21350 21351 21352 21353 21354 21355 21356 GNULIB_PTHREAD_SIGMASK=0; 21357 GNULIB_RAISE=0; 21358 GNULIB_SIGNAL_H_SIGPIPE=0; 21359 GNULIB_SIGPROCMASK=0; 21360 GNULIB_SIGACTION=0; 21361 HAVE_POSIX_SIGNALBLOCKING=1; 21362 HAVE_PTHREAD_SIGMASK=1; 21363 HAVE_RAISE=1; 21364 HAVE_SIGSET_T=1; 21365 HAVE_SIGINFO_T=1; 21366 HAVE_SIGACTION=1; 21367 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; 21368 21369 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; 21370 21371 HAVE_SIGHANDLER_T=1; 21372 REPLACE_PTHREAD_SIGMASK=0; 21373 REPLACE_RAISE=0; 21374 21375 21376 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" " 21377 #include <signal.h> 21378 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */ 21379 #include <sys/types.h> 21380 21381" 21382if test "x$ac_cv_type_sigset_t" = xyes; then : 21383 21384cat >>confdefs.h <<_ACEOF 21385#define HAVE_SIGSET_T 1 21386_ACEOF 21387 21388gl_cv_type_sigset_t=yes 21389else 21390 gl_cv_type_sigset_t=no 21391fi 21392 21393 if test $gl_cv_type_sigset_t != yes; then 21394 HAVE_SIGSET_T=0 21395 fi 21396 21397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 21398$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 21399if ${ac_cv_type_uid_t+:} false; then : 21400 $as_echo_n "(cached) " >&6 21401else 21402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21403/* end confdefs.h. */ 21404#include <sys/types.h> 21405 21406_ACEOF 21407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21408 $EGREP "uid_t" >/dev/null 2>&1; then : 21409 ac_cv_type_uid_t=yes 21410else 21411 ac_cv_type_uid_t=no 21412fi 21413rm -f conftest* 21414 21415fi 21416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 21417$as_echo "$ac_cv_type_uid_t" >&6; } 21418if test $ac_cv_type_uid_t = no; then 21419 21420$as_echo "#define uid_t int" >>confdefs.h 21421 21422 21423$as_echo "#define gid_t int" >>confdefs.h 21424 21425fi 21426 21427 21428 REPLACE_NULL=0; 21429 HAVE_MAX_ALIGN_T=1; 21430 HAVE_WCHAR_T=1; 21431 21432 21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 21434$as_echo_n "checking for wchar_t... " >&6; } 21435if ${gt_cv_c_wchar_t+:} false; then : 21436 $as_echo_n "(cached) " >&6 21437else 21438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21439/* end confdefs.h. */ 21440#include <stddef.h> 21441 wchar_t foo = (wchar_t)'\0'; 21442int 21443main () 21444{ 21445 21446 ; 21447 return 0; 21448} 21449_ACEOF 21450if ac_fn_c_try_compile "$LINENO"; then : 21451 gt_cv_c_wchar_t=yes 21452else 21453 gt_cv_c_wchar_t=no 21454fi 21455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21456fi 21457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 21458$as_echo "$gt_cv_c_wchar_t" >&6; } 21459 if test $gt_cv_c_wchar_t = yes; then 21460 21461$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 21462 21463 fi 21464 21465 21466 GNULIB__EXIT=0; 21467 GNULIB_ATOLL=0; 21468 GNULIB_CALLOC_POSIX=0; 21469 GNULIB_CANONICALIZE_FILE_NAME=0; 21470 GNULIB_GETLOADAVG=0; 21471 GNULIB_GETSUBOPT=0; 21472 GNULIB_GRANTPT=0; 21473 GNULIB_MALLOC_POSIX=0; 21474 GNULIB_MBTOWC=0; 21475 GNULIB_MKDTEMP=0; 21476 GNULIB_MKOSTEMP=0; 21477 GNULIB_MKOSTEMPS=0; 21478 GNULIB_MKSTEMP=0; 21479 GNULIB_MKSTEMPS=0; 21480 GNULIB_POSIX_OPENPT=0; 21481 GNULIB_PTSNAME=0; 21482 GNULIB_PTSNAME_R=0; 21483 GNULIB_PUTENV=0; 21484 GNULIB_QSORT_R=0; 21485 GNULIB_RANDOM=0; 21486 GNULIB_RANDOM_R=0; 21487 GNULIB_REALLOC_POSIX=0; 21488 GNULIB_REALPATH=0; 21489 GNULIB_RPMATCH=0; 21490 GNULIB_SECURE_GETENV=0; 21491 GNULIB_SETENV=0; 21492 GNULIB_STRTOD=0; 21493 GNULIB_STRTOLL=0; 21494 GNULIB_STRTOULL=0; 21495 GNULIB_SYSTEM_POSIX=0; 21496 GNULIB_UNLOCKPT=0; 21497 GNULIB_UNSETENV=0; 21498 GNULIB_WCTOMB=0; 21499 HAVE__EXIT=1; 21500 HAVE_ATOLL=1; 21501 HAVE_CANONICALIZE_FILE_NAME=1; 21502 HAVE_DECL_GETLOADAVG=1; 21503 HAVE_GETSUBOPT=1; 21504 HAVE_GRANTPT=1; 21505 HAVE_MKDTEMP=1; 21506 HAVE_MKOSTEMP=1; 21507 HAVE_MKOSTEMPS=1; 21508 HAVE_MKSTEMP=1; 21509 HAVE_MKSTEMPS=1; 21510 HAVE_POSIX_OPENPT=1; 21511 HAVE_PTSNAME=1; 21512 HAVE_PTSNAME_R=1; 21513 HAVE_RANDOM=1; 21514 HAVE_RANDOM_H=1; 21515 HAVE_RANDOM_R=1; 21516 HAVE_REALPATH=1; 21517 HAVE_RPMATCH=1; 21518 HAVE_SECURE_GETENV=1; 21519 HAVE_SETENV=1; 21520 HAVE_DECL_SETENV=1; 21521 HAVE_STRTOD=1; 21522 HAVE_STRTOLL=1; 21523 HAVE_STRTOULL=1; 21524 HAVE_STRUCT_RANDOM_DATA=1; 21525 HAVE_SYS_LOADAVG_H=0; 21526 HAVE_UNLOCKPT=1; 21527 HAVE_DECL_UNSETENV=1; 21528 REPLACE_CALLOC=0; 21529 REPLACE_CANONICALIZE_FILE_NAME=0; 21530 REPLACE_MALLOC=0; 21531 REPLACE_MBTOWC=0; 21532 REPLACE_MKSTEMP=0; 21533 REPLACE_PTSNAME=0; 21534 REPLACE_PTSNAME_R=0; 21535 REPLACE_PUTENV=0; 21536 REPLACE_QSORT_R=0; 21537 REPLACE_RANDOM_R=0; 21538 REPLACE_REALLOC=0; 21539 REPLACE_REALPATH=0; 21540 REPLACE_SETENV=0; 21541 REPLACE_STRTOD=0; 21542 REPLACE_UNSETENV=0; 21543 REPLACE_WCTOMB=0; 21544 21545 21546 GNULIB_FFSL=0; 21547 GNULIB_FFSLL=0; 21548 GNULIB_MEMCHR=0; 21549 GNULIB_MEMMEM=0; 21550 GNULIB_MEMPCPY=0; 21551 GNULIB_MEMRCHR=0; 21552 GNULIB_RAWMEMCHR=0; 21553 GNULIB_STPCPY=0; 21554 GNULIB_STPNCPY=0; 21555 GNULIB_STRCHRNUL=0; 21556 GNULIB_STRDUP=0; 21557 GNULIB_STRNCAT=0; 21558 GNULIB_STRNDUP=0; 21559 GNULIB_STRNLEN=0; 21560 GNULIB_STRPBRK=0; 21561 GNULIB_STRSEP=0; 21562 GNULIB_STRSTR=0; 21563 GNULIB_STRCASESTR=0; 21564 GNULIB_STRTOK_R=0; 21565 GNULIB_MBSLEN=0; 21566 GNULIB_MBSNLEN=0; 21567 GNULIB_MBSCHR=0; 21568 GNULIB_MBSRCHR=0; 21569 GNULIB_MBSSTR=0; 21570 GNULIB_MBSCASECMP=0; 21571 GNULIB_MBSNCASECMP=0; 21572 GNULIB_MBSPCASECMP=0; 21573 GNULIB_MBSCASESTR=0; 21574 GNULIB_MBSCSPN=0; 21575 GNULIB_MBSPBRK=0; 21576 GNULIB_MBSSPN=0; 21577 GNULIB_MBSSEP=0; 21578 GNULIB_MBSTOK_R=0; 21579 GNULIB_STRERROR=0; 21580 GNULIB_STRERROR_R=0; 21581 GNULIB_STRSIGNAL=0; 21582 GNULIB_STRVERSCMP=0; 21583 HAVE_MBSLEN=0; 21584 HAVE_FFSL=1; 21585 HAVE_FFSLL=1; 21586 HAVE_MEMCHR=1; 21587 HAVE_DECL_MEMMEM=1; 21588 HAVE_MEMPCPY=1; 21589 HAVE_DECL_MEMRCHR=1; 21590 HAVE_RAWMEMCHR=1; 21591 HAVE_STPCPY=1; 21592 HAVE_STPNCPY=1; 21593 HAVE_STRCHRNUL=1; 21594 HAVE_DECL_STRDUP=1; 21595 HAVE_DECL_STRNDUP=1; 21596 HAVE_DECL_STRNLEN=1; 21597 HAVE_STRPBRK=1; 21598 HAVE_STRSEP=1; 21599 HAVE_STRCASESTR=1; 21600 HAVE_DECL_STRTOK_R=1; 21601 HAVE_DECL_STRERROR_R=1; 21602 HAVE_DECL_STRSIGNAL=1; 21603 HAVE_STRVERSCMP=1; 21604 REPLACE_MEMCHR=0; 21605 REPLACE_MEMMEM=0; 21606 REPLACE_STPNCPY=0; 21607 REPLACE_STRDUP=0; 21608 REPLACE_STRSTR=0; 21609 REPLACE_STRCASESTR=0; 21610 REPLACE_STRCHRNUL=0; 21611 REPLACE_STRERROR=0; 21612 REPLACE_STRERROR_R=0; 21613 REPLACE_STRNCAT=0; 21614 REPLACE_STRNDUP=0; 21615 REPLACE_STRNLEN=0; 21616 REPLACE_STRSIGNAL=0; 21617 REPLACE_STRTOK_R=0; 21618 UNDEFINE_STRTOK_R=0; 21619 21620 21621 21622 21623 21624 21625 21626 21627 21628 21629 21630 21631 if test $gl_cv_have_include_next = yes; then 21632 gl_cv_next_string_h='<'string.h'>' 21633 else 21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5 21635$as_echo_n "checking absolute name of <string.h>... " >&6; } 21636if ${gl_cv_next_string_h+:} false; then : 21637 $as_echo_n "(cached) " >&6 21638else 21639 21640 21641 21642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21643/* end confdefs.h. */ 21644#include <string.h> 21645_ACEOF 21646 case "$host_os" in 21647 aix*) gl_absname_cpp="$ac_cpp -C" ;; 21648 *) gl_absname_cpp="$ac_cpp" ;; 21649 esac 21650 21651 case "$host_os" in 21652 mingw*) 21653 gl_dirsep_regex='[/\\]' 21654 ;; 21655 *) 21656 gl_dirsep_regex='\/' 21657 ;; 21658 esac 21659 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 21660 gl_header_literal_regex=`echo 'string.h' \ 21661 | sed -e "$gl_make_literal_regex_sed"` 21662 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 21663 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 21664 s|^/[^/]|//&| 21665 p 21666 q 21667 }' 21668 21669 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 21670 sed -n "$gl_absolute_header_sed"` 21671 21672 gl_header=$gl_cv_absolute_string_h 21673 gl_cv_next_string_h='"'$gl_header'"' 21674 21675 21676fi 21677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 21678$as_echo "$gl_cv_next_string_h" >&6; } 21679 fi 21680 NEXT_STRING_H=$gl_cv_next_string_h 21681 21682 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 21683 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 21684 gl_next_as_first_directive='<'string.h'>' 21685 else 21686 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 21687 gl_next_as_first_directive=$gl_cv_next_string_h 21688 fi 21689 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive 21690 21691 21692 21693 21694 21695 21696 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do 21697 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 21698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 21699$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 21700if eval \${$as_gl_Symbol+:} false; then : 21701 $as_echo_n "(cached) " >&6 21702else 21703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21704/* end confdefs.h. */ 21705#include <string.h> 21706 21707int 21708main () 21709{ 21710#undef $gl_func 21711 (void) $gl_func; 21712 ; 21713 return 0; 21714} 21715_ACEOF 21716if ac_fn_c_try_compile "$LINENO"; then : 21717 eval "$as_gl_Symbol=yes" 21718else 21719 eval "$as_gl_Symbol=no" 21720fi 21721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21722fi 21723eval ac_res=\$$as_gl_Symbol 21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21725$as_echo "$ac_res" >&6; } 21726 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 21727 cat >>confdefs.h <<_ACEOF 21728#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 21729_ACEOF 21730 21731 eval ac_cv_have_decl_$gl_func=yes 21732fi 21733 done 21734 21735 21736 21737 GNULIB_FLOCK=0; 21738 HAVE_FLOCK=1; 21739 21740 21741 21742 21743 21744 21745 21746 GNULIB_WAITPID=0; 21747 21748 21749 21750 21751 21752 21753 21754 GNULIB_MKTIME=0; 21755 GNULIB_NANOSLEEP=0; 21756 GNULIB_STRPTIME=0; 21757 GNULIB_TIMEGM=0; 21758 GNULIB_TIME_R=0; 21759 GNULIB_TIME_RZ=0; 21760 HAVE_DECL_LOCALTIME_R=1; 21761 HAVE_NANOSLEEP=1; 21762 HAVE_STRPTIME=1; 21763 HAVE_TIMEGM=1; 21764 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; 21765 REPLACE_MKTIME=GNULIB_PORTCHECK; 21766 REPLACE_NANOSLEEP=GNULIB_PORTCHECK; 21767 REPLACE_TIMEGM=GNULIB_PORTCHECK; 21768 21769 : ${GNULIB_GETTIMEOFDAY=0}; 21770 REPLACE_GMTIME=0; 21771 REPLACE_LOCALTIME=0; 21772 21773 21774 21775 : 21776 21777 21778 21779 21780 21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 21782$as_echo_n "checking for struct timespec in <time.h>... " >&6; } 21783if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then : 21784 $as_echo_n "(cached) " >&6 21785else 21786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21787/* end confdefs.h. */ 21788#include <time.h> 21789 21790int 21791main () 21792{ 21793static struct timespec x; x.tv_sec = x.tv_nsec; 21794 ; 21795 return 0; 21796} 21797_ACEOF 21798if ac_fn_c_try_compile "$LINENO"; then : 21799 gl_cv_sys_struct_timespec_in_time_h=yes 21800else 21801 gl_cv_sys_struct_timespec_in_time_h=no 21802fi 21803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21804fi 21805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 21806$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; } 21807 21808 TIME_H_DEFINES_STRUCT_TIMESPEC=0 21809 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 21810 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 21811 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0 21812 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then 21813 TIME_H_DEFINES_STRUCT_TIMESPEC=1 21814 else 21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 21816$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; } 21817if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then : 21818 $as_echo_n "(cached) " >&6 21819else 21820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21821/* end confdefs.h. */ 21822#include <sys/time.h> 21823 21824int 21825main () 21826{ 21827static struct timespec x; x.tv_sec = x.tv_nsec; 21828 ; 21829 return 0; 21830} 21831_ACEOF 21832if ac_fn_c_try_compile "$LINENO"; then : 21833 gl_cv_sys_struct_timespec_in_sys_time_h=yes 21834else 21835 gl_cv_sys_struct_timespec_in_sys_time_h=no 21836fi 21837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21838fi 21839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 21840$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } 21841 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then 21842 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 21843 else 21844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 21845$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; } 21846if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then : 21847 $as_echo_n "(cached) " >&6 21848else 21849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21850/* end confdefs.h. */ 21851#include <pthread.h> 21852 21853int 21854main () 21855{ 21856static struct timespec x; x.tv_sec = x.tv_nsec; 21857 ; 21858 return 0; 21859} 21860_ACEOF 21861if ac_fn_c_try_compile "$LINENO"; then : 21862 gl_cv_sys_struct_timespec_in_pthread_h=yes 21863else 21864 gl_cv_sys_struct_timespec_in_pthread_h=no 21865fi 21866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21867fi 21868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 21869$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } 21870 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then 21871 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 21872 else 21873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5 21874$as_echo_n "checking for struct timespec in <unistd.h>... " >&6; } 21875if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then : 21876 $as_echo_n "(cached) " >&6 21877else 21878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21879/* end confdefs.h. */ 21880#include <unistd.h> 21881 21882int 21883main () 21884{ 21885static struct timespec x; x.tv_sec = x.tv_nsec; 21886 ; 21887 return 0; 21888} 21889_ACEOF 21890if ac_fn_c_try_compile "$LINENO"; then : 21891 gl_cv_sys_struct_timespec_in_unistd_h=yes 21892else 21893 gl_cv_sys_struct_timespec_in_unistd_h=no 21894fi 21895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21896fi 21897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5 21898$as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; } 21899 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then 21900 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1 21901 fi 21902 fi 21903 fi 21904 fi 21905 21906 21907 21908 21909 21910 21911 21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 if test $gl_cv_have_include_next = yes; then 21922 gl_cv_next_time_h='<'time.h'>' 21923 else 21924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5 21925$as_echo_n "checking absolute name of <time.h>... " >&6; } 21926if ${gl_cv_next_time_h+:} false; then : 21927 $as_echo_n "(cached) " >&6 21928else 21929 21930 21931 21932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21933/* end confdefs.h. */ 21934#include <time.h> 21935_ACEOF 21936 case "$host_os" in 21937 aix*) gl_absname_cpp="$ac_cpp -C" ;; 21938 *) gl_absname_cpp="$ac_cpp" ;; 21939 esac 21940 21941 case "$host_os" in 21942 mingw*) 21943 gl_dirsep_regex='[/\\]' 21944 ;; 21945 *) 21946 gl_dirsep_regex='\/' 21947 ;; 21948 esac 21949 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 21950 gl_header_literal_regex=`echo 'time.h' \ 21951 | sed -e "$gl_make_literal_regex_sed"` 21952 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 21953 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 21954 s|^/[^/]|//&| 21955 p 21956 q 21957 }' 21958 21959 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 21960 sed -n "$gl_absolute_header_sed"` 21961 21962 gl_header=$gl_cv_absolute_time_h 21963 gl_cv_next_time_h='"'$gl_header'"' 21964 21965 21966fi 21967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 21968$as_echo "$gl_cv_next_time_h" >&6; } 21969 fi 21970 NEXT_TIME_H=$gl_cv_next_time_h 21971 21972 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 21973 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 21974 gl_next_as_first_directive='<'time.h'>' 21975 else 21976 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 21977 gl_next_as_first_directive=$gl_cv_next_time_h 21978 fi 21979 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive 21980 21981 21982 21983 21984 21985 21986 21987 21988 21989 21990 21991 21992 21993 21994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5 21995$as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; } 21996if ${gl_cv_func_ungetc_works+:} false; then : 21997 $as_echo_n "(cached) " >&6 21998else 21999 if test "$cross_compiling" = yes; then : 22000 case "$host_os" in 22001 # Guess yes on glibc and bionic systems. 22002 *-gnu*|*-android*) 22003 gl_cv_func_ungetc_works="guessing yes" ;; 22004 # If we don't know, assume the worst. 22005 *) gl_cv_func_ungetc_works="guessing no" ;; 22006 esac 22007 22008else 22009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22010/* end confdefs.h. */ 22011 22012#include <stdio.h> 22013 22014int 22015main () 22016{ 22017FILE *f; 22018 if (!(f = fopen ("conftest.tmp", "w+"))) return 1; 22019 if (fputs ("abc", f) < 0) return 2; 22020 rewind (f); 22021 if (fgetc (f) != 'a') return 3; 22022 if (fgetc (f) != 'b') return 4; 22023 if (ungetc ('d', f) != 'd') return 5; 22024 if (ftell (f) != 1) return 6; 22025 if (fgetc (f) != 'd') return 7; 22026 if (ftell (f) != 2) return 8; 22027 if (fseek (f, 0, SEEK_CUR) != 0) return 9; 22028 if (ftell (f) != 2) return 10; 22029 if (fgetc (f) != 'c') return 11; 22030 fclose (f); remove ("conftest.tmp"); 22031 ; 22032 return 0; 22033} 22034_ACEOF 22035if ac_fn_c_try_run "$LINENO"; then : 22036 gl_cv_func_ungetc_works=yes 22037else 22038 gl_cv_func_ungetc_works=no 22039fi 22040rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22041 conftest.$ac_objext conftest.beam conftest.$ac_ext 22042fi 22043 22044 22045fi 22046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5 22047$as_echo "$gl_cv_func_ungetc_works" >&6; } 22048 case "$gl_cv_func_ungetc_works" in 22049 *yes) ;; 22050 *) 22051 22052$as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h 22053 22054 ;; 22055 esac 22056 22057 22058 22059 : 22060 22061 22062 22063 22064 22065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5 22066$as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; } 22067if ${gl_cv_func_getcwd_null+:} false; then : 22068 $as_echo_n "(cached) " >&6 22069else 22070 if test "$cross_compiling" = yes; then : 22071 case "$host_os" in 22072 # Guess yes on glibc systems. 22073 *-gnu*) gl_cv_func_getcwd_null="guessing yes";; 22074 # Guess yes on Cygwin. 22075 cygwin*) gl_cv_func_getcwd_null="guessing yes";; 22076 # If we don't know, assume the worst. 22077 *) gl_cv_func_getcwd_null="guessing no";; 22078 esac 22079 22080else 22081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22082/* end confdefs.h. */ 22083 22084# include <stdlib.h> 22085# if HAVE_UNISTD_H 22086# include <unistd.h> 22087# else /* on Windows with MSVC */ 22088# include <direct.h> 22089# endif 22090# ifndef getcwd 22091 char *getcwd (); 22092# endif 22093 22094int 22095main () 22096{ 22097 22098#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 22099/* mingw cwd does not start with '/', but getcwd does allocate. 22100 However, mingw fails to honor non-zero size. */ 22101#else 22102 if (chdir ("/") != 0) 22103 return 1; 22104 else 22105 { 22106 char *f = getcwd (NULL, 0); 22107 if (! f) 22108 return 2; 22109 if (f[0] != '/') 22110 return 3; 22111 if (f[1] != '\0') 22112 return 4; 22113 free (f); 22114 return 0; 22115 } 22116#endif 22117 22118 ; 22119 return 0; 22120} 22121_ACEOF 22122if ac_fn_c_try_run "$LINENO"; then : 22123 gl_cv_func_getcwd_null=yes 22124else 22125 gl_cv_func_getcwd_null=no 22126fi 22127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22128 conftest.$ac_objext conftest.beam conftest.$ac_ext 22129fi 22130 22131fi 22132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5 22133$as_echo "$gl_cv_func_getcwd_null" >&6; } 22134 22135 22136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5 22137$as_echo_n "checking for getcwd with POSIX signature... " >&6; } 22138if ${gl_cv_func_getcwd_posix_signature+:} false; then : 22139 $as_echo_n "(cached) " >&6 22140else 22141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22142/* end confdefs.h. */ 22143#include <unistd.h> 22144int 22145main () 22146{ 22147extern 22148 #ifdef __cplusplus 22149 "C" 22150 #endif 22151 char *getcwd (char *, size_t); 22152 22153 ; 22154 return 0; 22155} 22156 22157_ACEOF 22158if ac_fn_c_try_compile "$LINENO"; then : 22159 gl_cv_func_getcwd_posix_signature=yes 22160else 22161 gl_cv_func_getcwd_posix_signature=no 22162fi 22163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22164 22165fi 22166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5 22167$as_echo "$gl_cv_func_getcwd_posix_signature" >&6; } 22168 22169 22170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 22171$as_echo_n "checking for unsigned long long int... " >&6; } 22172if ${ac_cv_type_unsigned_long_long_int+:} false; then : 22173 $as_echo_n "(cached) " >&6 22174else 22175 ac_cv_type_unsigned_long_long_int=yes 22176 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 22177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22178/* end confdefs.h. */ 22179 22180 /* For now, do not test the preprocessor; as of 2007 there are too many 22181 implementations with broken preprocessors. Perhaps this can 22182 be revisited in 2012. In the meantime, code should not expect 22183 #if to work with literals wider than 32 bits. */ 22184 /* Test literals. */ 22185 long long int ll = 9223372036854775807ll; 22186 long long int nll = -9223372036854775807LL; 22187 unsigned long long int ull = 18446744073709551615ULL; 22188 /* Test constant expressions. */ 22189 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 22190 ? 1 : -1)]; 22191 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 22192 ? 1 : -1)]; 22193 int i = 63; 22194int 22195main () 22196{ 22197/* Test availability of runtime routines for shift and division. */ 22198 long long int llmax = 9223372036854775807ll; 22199 unsigned long long int ullmax = 18446744073709551615ull; 22200 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 22201 | (llmax / ll) | (llmax % ll) 22202 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 22203 | (ullmax / ull) | (ullmax % ull)); 22204 ; 22205 return 0; 22206} 22207 22208_ACEOF 22209if ac_fn_c_try_link "$LINENO"; then : 22210 22211else 22212 ac_cv_type_unsigned_long_long_int=no 22213fi 22214rm -f core conftest.err conftest.$ac_objext \ 22215 conftest$ac_exeext conftest.$ac_ext 22216 fi 22217fi 22218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 22219$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 22220 if test $ac_cv_type_unsigned_long_long_int = yes; then 22221 22222$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 22223 22224 fi 22225 22226 22227 22228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 22229$as_echo_n "checking for long long int... " >&6; } 22230if ${ac_cv_type_long_long_int+:} false; then : 22231 $as_echo_n "(cached) " >&6 22232else 22233 ac_cv_type_long_long_int=yes 22234 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 22235 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 22236 if test $ac_cv_type_long_long_int = yes; then 22237 if test "$cross_compiling" = yes; then : 22238 : 22239else 22240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22241/* end confdefs.h. */ 22242#include <limits.h> 22243 #ifndef LLONG_MAX 22244 # define HALF \ 22245 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 22246 # define LLONG_MAX (HALF - 1 + HALF) 22247 #endif 22248int 22249main () 22250{ 22251long long int n = 1; 22252 int i; 22253 for (i = 0; ; i++) 22254 { 22255 long long int m = n << i; 22256 if (m >> i != n) 22257 return 1; 22258 if (LLONG_MAX / 2 < m) 22259 break; 22260 } 22261 return 0; 22262 ; 22263 return 0; 22264} 22265_ACEOF 22266if ac_fn_c_try_run "$LINENO"; then : 22267 22268else 22269 ac_cv_type_long_long_int=no 22270fi 22271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22272 conftest.$ac_objext conftest.beam conftest.$ac_ext 22273fi 22274 22275 fi 22276 fi 22277fi 22278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 22279$as_echo "$ac_cv_type_long_long_int" >&6; } 22280 if test $ac_cv_type_long_long_int = yes; then 22281 22282$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 22283 22284 fi 22285 22286 22287 22288 22289 22290 22291 22292 22293 22294 22295 22296 22297 gl_cv_c_multiarch=no 22298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22299/* end confdefs.h. */ 22300#ifndef __APPLE_CC__ 22301 not a universal capable compiler 22302 #endif 22303 typedef int dummy; 22304 22305_ACEOF 22306if ac_fn_c_try_compile "$LINENO"; then : 22307 22308 arch= 22309 prev= 22310 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do 22311 if test -n "$prev"; then 22312 case $word in 22313 i?86 | x86_64 | ppc | ppc64) 22314 if test -z "$arch" || test "$arch" = "$word"; then 22315 arch="$word" 22316 else 22317 gl_cv_c_multiarch=yes 22318 fi 22319 ;; 22320 esac 22321 prev= 22322 else 22323 if test "x$word" = "x-arch"; then 22324 prev=arch 22325 fi 22326 fi 22327 done 22328 22329fi 22330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22331 if test $gl_cv_c_multiarch = yes; then 22332 APPLE_UNIVERSAL_BUILD=1 22333 else 22334 APPLE_UNIVERSAL_BUILD=0 22335 fi 22336 22337 22338 22339 22340 22341 if test $ac_cv_type_long_long_int = yes; then 22342 HAVE_LONG_LONG_INT=1 22343 else 22344 HAVE_LONG_LONG_INT=0 22345 fi 22346 22347 22348 if test $ac_cv_type_unsigned_long_long_int = yes; then 22349 HAVE_UNSIGNED_LONG_LONG_INT=1 22350 else 22351 HAVE_UNSIGNED_LONG_LONG_INT=0 22352 fi 22353 22354 22355 22356 : 22357 22358 22359 22360 22361 22362 if test $ac_cv_header_wchar_h = yes; then 22363 HAVE_WCHAR_H=1 22364 else 22365 HAVE_WCHAR_H=0 22366 fi 22367 22368 22369 if test $ac_cv_header_inttypes_h = yes; then 22370 HAVE_INTTYPES_H=1 22371 else 22372 HAVE_INTTYPES_H=0 22373 fi 22374 22375 22376 if test $ac_cv_header_sys_types_h = yes; then 22377 HAVE_SYS_TYPES_H=1 22378 else 22379 HAVE_SYS_TYPES_H=0 22380 fi 22381 22382 22383 22384 22385 22386 22387 22388 22389 : 22390 22391 22392 22393 22394 22395 22396 22397 22398 if test $gl_cv_have_include_next = yes; then 22399 gl_cv_next_stdint_h='<'stdint.h'>' 22400 else 22401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 22402$as_echo_n "checking absolute name of <stdint.h>... " >&6; } 22403if ${gl_cv_next_stdint_h+:} false; then : 22404 $as_echo_n "(cached) " >&6 22405else 22406 22407 if test $ac_cv_header_stdint_h = yes; then 22408 22409 22410 22411 22412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22413/* end confdefs.h. */ 22414#include <stdint.h> 22415_ACEOF 22416 case "$host_os" in 22417 aix*) gl_absname_cpp="$ac_cpp -C" ;; 22418 *) gl_absname_cpp="$ac_cpp" ;; 22419 esac 22420 22421 case "$host_os" in 22422 mingw*) 22423 gl_dirsep_regex='[/\\]' 22424 ;; 22425 *) 22426 gl_dirsep_regex='\/' 22427 ;; 22428 esac 22429 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 22430 gl_header_literal_regex=`echo 'stdint.h' \ 22431 | sed -e "$gl_make_literal_regex_sed"` 22432 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 22433 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 22434 s|^/[^/]|//&| 22435 p 22436 q 22437 }' 22438 22439 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 22440 sed -n "$gl_absolute_header_sed"` 22441 22442 gl_header=$gl_cv_absolute_stdint_h 22443 gl_cv_next_stdint_h='"'$gl_header'"' 22444 else 22445 gl_cv_next_stdint_h='<'stdint.h'>' 22446 fi 22447 22448 22449fi 22450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 22451$as_echo "$gl_cv_next_stdint_h" >&6; } 22452 fi 22453 NEXT_STDINT_H=$gl_cv_next_stdint_h 22454 22455 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 22456 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 22457 gl_next_as_first_directive='<'stdint.h'>' 22458 else 22459 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 22460 gl_next_as_first_directive=$gl_cv_next_stdint_h 22461 fi 22462 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive 22463 22464 22465 22466 22467 if test $ac_cv_header_stdint_h = yes; then 22468 HAVE_STDINT_H=1 22469 else 22470 HAVE_STDINT_H=0 22471 fi 22472 22473 22474 if test $ac_cv_header_stdint_h = yes; then 22475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 22476$as_echo_n "checking whether stdint.h conforms to C99... " >&6; } 22477if ${gl_cv_header_working_stdint_h+:} false; then : 22478 $as_echo_n "(cached) " >&6 22479else 22480 gl_cv_header_working_stdint_h=no 22481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22482/* end confdefs.h. */ 22483 22484 22485#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 22486#include <stdint.h> 22487/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ 22488#if !(defined WCHAR_MIN && defined WCHAR_MAX) 22489#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" 22490#endif 22491 22492 22493 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 22494 included before <wchar.h>. */ 22495 #include <stddef.h> 22496 #include <signal.h> 22497 #if HAVE_WCHAR_H 22498 # include <stdio.h> 22499 # include <time.h> 22500 # include <wchar.h> 22501 #endif 22502 22503 22504#ifdef INT8_MAX 22505int8_t a1 = INT8_MAX; 22506int8_t a1min = INT8_MIN; 22507#endif 22508#ifdef INT16_MAX 22509int16_t a2 = INT16_MAX; 22510int16_t a2min = INT16_MIN; 22511#endif 22512#ifdef INT32_MAX 22513int32_t a3 = INT32_MAX; 22514int32_t a3min = INT32_MIN; 22515#endif 22516#ifdef INT64_MAX 22517int64_t a4 = INT64_MAX; 22518int64_t a4min = INT64_MIN; 22519#endif 22520#ifdef UINT8_MAX 22521uint8_t b1 = UINT8_MAX; 22522#else 22523typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; 22524#endif 22525#ifdef UINT16_MAX 22526uint16_t b2 = UINT16_MAX; 22527#endif 22528#ifdef UINT32_MAX 22529uint32_t b3 = UINT32_MAX; 22530#endif 22531#ifdef UINT64_MAX 22532uint64_t b4 = UINT64_MAX; 22533#endif 22534int_least8_t c1 = INT8_C (0x7f); 22535int_least8_t c1max = INT_LEAST8_MAX; 22536int_least8_t c1min = INT_LEAST8_MIN; 22537int_least16_t c2 = INT16_C (0x7fff); 22538int_least16_t c2max = INT_LEAST16_MAX; 22539int_least16_t c2min = INT_LEAST16_MIN; 22540int_least32_t c3 = INT32_C (0x7fffffff); 22541int_least32_t c3max = INT_LEAST32_MAX; 22542int_least32_t c3min = INT_LEAST32_MIN; 22543int_least64_t c4 = INT64_C (0x7fffffffffffffff); 22544int_least64_t c4max = INT_LEAST64_MAX; 22545int_least64_t c4min = INT_LEAST64_MIN; 22546uint_least8_t d1 = UINT8_C (0xff); 22547uint_least8_t d1max = UINT_LEAST8_MAX; 22548uint_least16_t d2 = UINT16_C (0xffff); 22549uint_least16_t d2max = UINT_LEAST16_MAX; 22550uint_least32_t d3 = UINT32_C (0xffffffff); 22551uint_least32_t d3max = UINT_LEAST32_MAX; 22552uint_least64_t d4 = UINT64_C (0xffffffffffffffff); 22553uint_least64_t d4max = UINT_LEAST64_MAX; 22554int_fast8_t e1 = INT_FAST8_MAX; 22555int_fast8_t e1min = INT_FAST8_MIN; 22556int_fast16_t e2 = INT_FAST16_MAX; 22557int_fast16_t e2min = INT_FAST16_MIN; 22558int_fast32_t e3 = INT_FAST32_MAX; 22559int_fast32_t e3min = INT_FAST32_MIN; 22560int_fast64_t e4 = INT_FAST64_MAX; 22561int_fast64_t e4min = INT_FAST64_MIN; 22562uint_fast8_t f1 = UINT_FAST8_MAX; 22563uint_fast16_t f2 = UINT_FAST16_MAX; 22564uint_fast32_t f3 = UINT_FAST32_MAX; 22565uint_fast64_t f4 = UINT_FAST64_MAX; 22566#ifdef INTPTR_MAX 22567intptr_t g = INTPTR_MAX; 22568intptr_t gmin = INTPTR_MIN; 22569#endif 22570#ifdef UINTPTR_MAX 22571uintptr_t h = UINTPTR_MAX; 22572#endif 22573intmax_t i = INTMAX_MAX; 22574uintmax_t j = UINTMAX_MAX; 22575 22576#include <limits.h> /* for CHAR_BIT */ 22577#define TYPE_MINIMUM(t) \ 22578 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) 22579#define TYPE_MAXIMUM(t) \ 22580 ((t) ((t) 0 < (t) -1 \ 22581 ? (t) -1 \ 22582 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) 22583struct s { 22584 int check_PTRDIFF: 22585 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) 22586 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) 22587 ? 1 : -1; 22588 /* Detect bug in FreeBSD 6.0 / ia64. */ 22589 int check_SIG_ATOMIC: 22590 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) 22591 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) 22592 ? 1 : -1; 22593 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; 22594 int check_WCHAR: 22595 WCHAR_MIN == TYPE_MINIMUM (wchar_t) 22596 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) 22597 ? 1 : -1; 22598 /* Detect bug in mingw. */ 22599 int check_WINT: 22600 WINT_MIN == TYPE_MINIMUM (wint_t) 22601 && WINT_MAX == TYPE_MAXIMUM (wint_t) 22602 ? 1 : -1; 22603 22604 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ 22605 int check_UINT8_C: 22606 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; 22607 int check_UINT16_C: 22608 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; 22609 22610 /* Detect bugs in OpenBSD 3.9 stdint.h. */ 22611#ifdef UINT8_MAX 22612 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; 22613#endif 22614#ifdef UINT16_MAX 22615 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; 22616#endif 22617#ifdef UINT32_MAX 22618 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; 22619#endif 22620#ifdef UINT64_MAX 22621 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; 22622#endif 22623 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; 22624 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; 22625 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; 22626 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; 22627 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; 22628 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; 22629 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; 22630 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; 22631 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; 22632 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; 22633 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; 22634}; 22635 22636int 22637main () 22638{ 22639 22640 ; 22641 return 0; 22642} 22643_ACEOF 22644if ac_fn_c_try_compile "$LINENO"; then : 22645 if test "$cross_compiling" = yes; then : 22646 gl_cv_header_working_stdint_h=yes 22647 22648else 22649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22650/* end confdefs.h. */ 22651 22652 22653#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 22654#include <stdint.h> 22655 22656 22657 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 22658 included before <wchar.h>. */ 22659 #include <stddef.h> 22660 #include <signal.h> 22661 #if HAVE_WCHAR_H 22662 # include <stdio.h> 22663 # include <time.h> 22664 # include <wchar.h> 22665 #endif 22666 22667 22668#include <stdio.h> 22669#include <string.h> 22670#define MVAL(macro) MVAL1(macro) 22671#define MVAL1(expression) #expression 22672static const char *macro_values[] = 22673 { 22674#ifdef INT8_MAX 22675 MVAL (INT8_MAX), 22676#endif 22677#ifdef INT16_MAX 22678 MVAL (INT16_MAX), 22679#endif 22680#ifdef INT32_MAX 22681 MVAL (INT32_MAX), 22682#endif 22683#ifdef INT64_MAX 22684 MVAL (INT64_MAX), 22685#endif 22686#ifdef UINT8_MAX 22687 MVAL (UINT8_MAX), 22688#endif 22689#ifdef UINT16_MAX 22690 MVAL (UINT16_MAX), 22691#endif 22692#ifdef UINT32_MAX 22693 MVAL (UINT32_MAX), 22694#endif 22695#ifdef UINT64_MAX 22696 MVAL (UINT64_MAX), 22697#endif 22698 NULL 22699 }; 22700 22701int 22702main () 22703{ 22704 22705 const char **mv; 22706 for (mv = macro_values; *mv != NULL; mv++) 22707 { 22708 const char *value = *mv; 22709 /* Test whether it looks like a cast expression. */ 22710 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 22711 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 22712 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 22713 || strncmp (value, "((int)"/*)*/, 6) == 0 22714 || strncmp (value, "((signed short)"/*)*/, 15) == 0 22715 || strncmp (value, "((signed char)"/*)*/, 14) == 0) 22716 return mv - macro_values + 1; 22717 } 22718 return 0; 22719 22720 ; 22721 return 0; 22722} 22723_ACEOF 22724if ac_fn_c_try_run "$LINENO"; then : 22725 gl_cv_header_working_stdint_h=yes 22726fi 22727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22728 conftest.$ac_objext conftest.beam conftest.$ac_ext 22729fi 22730 22731 22732fi 22733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22734 22735fi 22736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 22737$as_echo "$gl_cv_header_working_stdint_h" >&6; } 22738 fi 22739 if test "$gl_cv_header_working_stdint_h" = yes; then 22740 STDINT_H= 22741 else 22742 for ac_header in sys/inttypes.h sys/bitypes.h 22743do : 22744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22745ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22746if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22747 cat >>confdefs.h <<_ACEOF 22748#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22749_ACEOF 22750 22751fi 22752 22753done 22754 22755 if test $ac_cv_header_sys_inttypes_h = yes; then 22756 HAVE_SYS_INTTYPES_H=1 22757 else 22758 HAVE_SYS_INTTYPES_H=0 22759 fi 22760 22761 if test $ac_cv_header_sys_bitypes_h = yes; then 22762 HAVE_SYS_BITYPES_H=1 22763 else 22764 HAVE_SYS_BITYPES_H=0 22765 fi 22766 22767 22768 22769 22770 if test $APPLE_UNIVERSAL_BUILD = 0; then 22771 22772 22773 for gltype in ptrdiff_t size_t ; do 22774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 22775$as_echo_n "checking for bit size of $gltype... " >&6; } 22776if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : 22777 $as_echo_n "(cached) " >&6 22778else 22779 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 22780 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 22781 included before <wchar.h>. */ 22782 #include <stddef.h> 22783 #include <signal.h> 22784 #if HAVE_WCHAR_H 22785 # include <stdio.h> 22786 # include <time.h> 22787 # include <wchar.h> 22788 #endif 22789 22790#include <limits.h>"; then : 22791 22792else 22793 result=unknown 22794fi 22795 22796 eval gl_cv_bitsizeof_${gltype}=\$result 22797 22798fi 22799eval ac_res=\$gl_cv_bitsizeof_${gltype} 22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22801$as_echo "$ac_res" >&6; } 22802 eval result=\$gl_cv_bitsizeof_${gltype} 22803 if test $result = unknown; then 22804 result=0 22805 fi 22806 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 22807 cat >>confdefs.h <<_ACEOF 22808#define BITSIZEOF_${GLTYPE} $result 22809_ACEOF 22810 22811 eval BITSIZEOF_${GLTYPE}=\$result 22812 done 22813 22814 22815 fi 22816 22817 22818 for gltype in sig_atomic_t wchar_t wint_t ; do 22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 22820$as_echo_n "checking for bit size of $gltype... " >&6; } 22821if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : 22822 $as_echo_n "(cached) " >&6 22823else 22824 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 22825 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 22826 included before <wchar.h>. */ 22827 #include <stddef.h> 22828 #include <signal.h> 22829 #if HAVE_WCHAR_H 22830 # include <stdio.h> 22831 # include <time.h> 22832 # include <wchar.h> 22833 #endif 22834 22835#include <limits.h>"; then : 22836 22837else 22838 result=unknown 22839fi 22840 22841 eval gl_cv_bitsizeof_${gltype}=\$result 22842 22843fi 22844eval ac_res=\$gl_cv_bitsizeof_${gltype} 22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22846$as_echo "$ac_res" >&6; } 22847 eval result=\$gl_cv_bitsizeof_${gltype} 22848 if test $result = unknown; then 22849 result=0 22850 fi 22851 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 22852 cat >>confdefs.h <<_ACEOF 22853#define BITSIZEOF_${GLTYPE} $result 22854_ACEOF 22855 22856 eval BITSIZEOF_${GLTYPE}=\$result 22857 done 22858 22859 22860 22861 22862 for gltype in sig_atomic_t wchar_t wint_t ; do 22863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 22864$as_echo_n "checking whether $gltype is signed... " >&6; } 22865if eval \${gl_cv_type_${gltype}_signed+:} false; then : 22866 $as_echo_n "(cached) " >&6 22867else 22868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22869/* end confdefs.h. */ 22870 22871 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 22872 included before <wchar.h>. */ 22873 #include <stddef.h> 22874 #include <signal.h> 22875 #if HAVE_WCHAR_H 22876 # include <stdio.h> 22877 # include <time.h> 22878 # include <wchar.h> 22879 #endif 22880 22881 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; 22882int 22883main () 22884{ 22885 22886 ; 22887 return 0; 22888} 22889_ACEOF 22890if ac_fn_c_try_compile "$LINENO"; then : 22891 result=yes 22892else 22893 result=no 22894fi 22895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22896 eval gl_cv_type_${gltype}_signed=\$result 22897 22898fi 22899eval ac_res=\$gl_cv_type_${gltype}_signed 22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22901$as_echo "$ac_res" >&6; } 22902 eval result=\$gl_cv_type_${gltype}_signed 22903 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 22904 if test "$result" = yes; then 22905 cat >>confdefs.h <<_ACEOF 22906#define HAVE_SIGNED_${GLTYPE} 1 22907_ACEOF 22908 22909 eval HAVE_SIGNED_${GLTYPE}=1 22910 else 22911 eval HAVE_SIGNED_${GLTYPE}=0 22912 fi 22913 done 22914 22915 22916 gl_cv_type_ptrdiff_t_signed=yes 22917 gl_cv_type_size_t_signed=no 22918 if test $APPLE_UNIVERSAL_BUILD = 0; then 22919 22920 22921 for gltype in ptrdiff_t size_t ; do 22922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 22923$as_echo_n "checking for $gltype integer literal suffix... " >&6; } 22924if eval \${gl_cv_type_${gltype}_suffix+:} false; then : 22925 $as_echo_n "(cached) " >&6 22926else 22927 eval gl_cv_type_${gltype}_suffix=no 22928 eval result=\$gl_cv_type_${gltype}_signed 22929 if test "$result" = yes; then 22930 glsufu= 22931 else 22932 glsufu=u 22933 fi 22934 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 22935 case $glsuf in 22936 '') gltype1='int';; 22937 l) gltype1='long int';; 22938 ll) gltype1='long long int';; 22939 i64) gltype1='__int64';; 22940 u) gltype1='unsigned int';; 22941 ul) gltype1='unsigned long int';; 22942 ull) gltype1='unsigned long long int';; 22943 ui64)gltype1='unsigned __int64';; 22944 esac 22945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22946/* end confdefs.h. */ 22947 22948 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 22949 included before <wchar.h>. */ 22950 #include <stddef.h> 22951 #include <signal.h> 22952 #if HAVE_WCHAR_H 22953 # include <stdio.h> 22954 # include <time.h> 22955 # include <wchar.h> 22956 #endif 22957 22958 extern $gltype foo; 22959 extern $gltype1 foo; 22960int 22961main () 22962{ 22963 22964 ; 22965 return 0; 22966} 22967_ACEOF 22968if ac_fn_c_try_compile "$LINENO"; then : 22969 eval gl_cv_type_${gltype}_suffix=\$glsuf 22970fi 22971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22972 eval result=\$gl_cv_type_${gltype}_suffix 22973 test "$result" != no && break 22974 done 22975fi 22976eval ac_res=\$gl_cv_type_${gltype}_suffix 22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22978$as_echo "$ac_res" >&6; } 22979 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 22980 eval result=\$gl_cv_type_${gltype}_suffix 22981 test "$result" = no && result= 22982 eval ${GLTYPE}_SUFFIX=\$result 22983 cat >>confdefs.h <<_ACEOF 22984#define ${GLTYPE}_SUFFIX $result 22985_ACEOF 22986 22987 done 22988 22989 22990 fi 22991 22992 22993 for gltype in sig_atomic_t wchar_t wint_t ; do 22994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 22995$as_echo_n "checking for $gltype integer literal suffix... " >&6; } 22996if eval \${gl_cv_type_${gltype}_suffix+:} false; then : 22997 $as_echo_n "(cached) " >&6 22998else 22999 eval gl_cv_type_${gltype}_suffix=no 23000 eval result=\$gl_cv_type_${gltype}_signed 23001 if test "$result" = yes; then 23002 glsufu= 23003 else 23004 glsufu=u 23005 fi 23006 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 23007 case $glsuf in 23008 '') gltype1='int';; 23009 l) gltype1='long int';; 23010 ll) gltype1='long long int';; 23011 i64) gltype1='__int64';; 23012 u) gltype1='unsigned int';; 23013 ul) gltype1='unsigned long int';; 23014 ull) gltype1='unsigned long long int';; 23015 ui64)gltype1='unsigned __int64';; 23016 esac 23017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23018/* end confdefs.h. */ 23019 23020 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 23021 included before <wchar.h>. */ 23022 #include <stddef.h> 23023 #include <signal.h> 23024 #if HAVE_WCHAR_H 23025 # include <stdio.h> 23026 # include <time.h> 23027 # include <wchar.h> 23028 #endif 23029 23030 extern $gltype foo; 23031 extern $gltype1 foo; 23032int 23033main () 23034{ 23035 23036 ; 23037 return 0; 23038} 23039_ACEOF 23040if ac_fn_c_try_compile "$LINENO"; then : 23041 eval gl_cv_type_${gltype}_suffix=\$glsuf 23042fi 23043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23044 eval result=\$gl_cv_type_${gltype}_suffix 23045 test "$result" != no && break 23046 done 23047fi 23048eval ac_res=\$gl_cv_type_${gltype}_suffix 23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23050$as_echo "$ac_res" >&6; } 23051 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 23052 eval result=\$gl_cv_type_${gltype}_suffix 23053 test "$result" = no && result= 23054 eval ${GLTYPE}_SUFFIX=\$result 23055 cat >>confdefs.h <<_ACEOF 23056#define ${GLTYPE}_SUFFIX $result 23057_ACEOF 23058 23059 done 23060 23061 23062 23063 if test $BITSIZEOF_WINT_T -lt 32; then 23064 BITSIZEOF_WINT_T=32 23065 fi 23066 23067 STDINT_H=stdint.h 23068 fi 23069 23070 if test -n "$STDINT_H"; then 23071 GL_GENERATE_STDINT_H_TRUE= 23072 GL_GENERATE_STDINT_H_FALSE='#' 23073else 23074 GL_GENERATE_STDINT_H_TRUE='#' 23075 GL_GENERATE_STDINT_H_FALSE= 23076fi 23077 23078 23079 23080 23081 23082 23083 23084 23085 GNULIB_IMAXABS=0; 23086 GNULIB_IMAXDIV=0; 23087 GNULIB_STRTOIMAX=0; 23088 GNULIB_STRTOUMAX=0; 23089 HAVE_DECL_IMAXABS=1; 23090 HAVE_DECL_IMAXDIV=1; 23091 HAVE_DECL_STRTOIMAX=1; 23092 HAVE_DECL_STRTOUMAX=1; 23093 REPLACE_STRTOIMAX=0; 23094 REPLACE_STRTOUMAX=0; 23095 INT32_MAX_LT_INTMAX_MAX=1; 23096 INT64_MAX_EQ_LONG_MAX='defined _LP64'; 23097 PRI_MACROS_BROKEN=0; 23098 PRIPTR_PREFIX=__PRIPTR_PREFIX; 23099 UINT32_MAX_LT_UINTMAX_MAX=1; 23100 UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; 23101 23102 23103 23104 23105 : 23106 23107 23108 23109 23110 23111 23112 23113 23114 23115 23116 23117 23118 23119 : 23120 23121 23122 23123 23124 23125 23126 23127 23128 if test $gl_cv_have_include_next = yes; then 23129 gl_cv_next_inttypes_h='<'inttypes.h'>' 23130 else 23131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5 23132$as_echo_n "checking absolute name of <inttypes.h>... " >&6; } 23133if ${gl_cv_next_inttypes_h+:} false; then : 23134 $as_echo_n "(cached) " >&6 23135else 23136 23137 if test $ac_cv_header_inttypes_h = yes; then 23138 23139 23140 23141 23142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23143/* end confdefs.h. */ 23144#include <inttypes.h> 23145_ACEOF 23146 case "$host_os" in 23147 aix*) gl_absname_cpp="$ac_cpp -C" ;; 23148 *) gl_absname_cpp="$ac_cpp" ;; 23149 esac 23150 23151 case "$host_os" in 23152 mingw*) 23153 gl_dirsep_regex='[/\\]' 23154 ;; 23155 *) 23156 gl_dirsep_regex='\/' 23157 ;; 23158 esac 23159 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 23160 gl_header_literal_regex=`echo 'inttypes.h' \ 23161 | sed -e "$gl_make_literal_regex_sed"` 23162 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 23163 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 23164 s|^/[^/]|//&| 23165 p 23166 q 23167 }' 23168 23169 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 23170 sed -n "$gl_absolute_header_sed"` 23171 23172 gl_header=$gl_cv_absolute_inttypes_h 23173 gl_cv_next_inttypes_h='"'$gl_header'"' 23174 else 23175 gl_cv_next_inttypes_h='<'inttypes.h'>' 23176 fi 23177 23178 23179fi 23180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 23181$as_echo "$gl_cv_next_inttypes_h" >&6; } 23182 fi 23183 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h 23184 23185 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 23186 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 23187 gl_next_as_first_directive='<'inttypes.h'>' 23188 else 23189 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 23190 gl_next_as_first_directive=$gl_cv_next_inttypes_h 23191 fi 23192 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive 23193 23194 23195 23196 23197 23198 23199 23200 23201 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do 23202 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 23203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 23204$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 23205if eval \${$as_gl_Symbol+:} false; then : 23206 $as_echo_n "(cached) " >&6 23207else 23208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23209/* end confdefs.h. */ 23210#include <inttypes.h> 23211 23212int 23213main () 23214{ 23215#undef $gl_func 23216 (void) $gl_func; 23217 ; 23218 return 0; 23219} 23220_ACEOF 23221if ac_fn_c_try_compile "$LINENO"; then : 23222 eval "$as_gl_Symbol=yes" 23223else 23224 eval "$as_gl_Symbol=no" 23225fi 23226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23227fi 23228eval ac_res=\$$as_gl_Symbol 23229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23230$as_echo "$ac_res" >&6; } 23231 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 23232 cat >>confdefs.h <<_ACEOF 23233#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 23234_ACEOF 23235 23236 eval ac_cv_have_decl_$gl_func=yes 23237fi 23238 done 23239 23240 23241 23242 for ac_header in inttypes.h 23243do : 23244 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 23245if test "x$ac_cv_header_inttypes_h" = xyes; then : 23246 cat >>confdefs.h <<_ACEOF 23247#define HAVE_INTTYPES_H 1 23248_ACEOF 23249 23250fi 23251 23252done 23253 23254 if test $ac_cv_header_inttypes_h = yes; then 23255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 23256$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 23257if ${gt_cv_inttypes_pri_broken+:} false; then : 23258 $as_echo_n "(cached) " >&6 23259else 23260 23261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23262/* end confdefs.h. */ 23263 23264#include <inttypes.h> 23265#ifdef PRId32 23266char *p = PRId32; 23267#endif 23268 23269int 23270main () 23271{ 23272 23273 ; 23274 return 0; 23275} 23276_ACEOF 23277if ac_fn_c_try_compile "$LINENO"; then : 23278 gt_cv_inttypes_pri_broken=no 23279else 23280 gt_cv_inttypes_pri_broken=yes 23281fi 23282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23283 23284fi 23285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 23286$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 23287 fi 23288 if test "$gt_cv_inttypes_pri_broken" = yes; then 23289 23290cat >>confdefs.h <<_ACEOF 23291#define PRI_MACROS_BROKEN 1 23292_ACEOF 23293 23294 PRI_MACROS_BROKEN=1 23295 else 23296 PRI_MACROS_BROKEN=0 23297 fi 23298 23299 23300 23301 23302 23303 23304 23305 23306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 23307$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 23308if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 23309 $as_echo_n "(cached) " >&6 23310else 23311 rm -f conftest.sym conftest.file 23312 echo >conftest.file 23313 if test "$cross_compiling" = yes; then : 23314 case "$host_os" in 23315 *-gnu*) 23316 # Guess yes on glibc systems. 23317 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;; 23318 *) 23319 # If we don't know, assume the worst. 23320 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;; 23321 esac 23322 23323else 23324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23325/* end confdefs.h. */ 23326$ac_includes_default 23327int 23328main () 23329{ 23330struct stat sbuf; 23331 if (symlink ("conftest.file", "conftest.sym") != 0) 23332 return 1; 23333 /* Linux will dereference the symlink and fail, as required by 23334 POSIX. That is better in the sense that it means we will not 23335 have to compile and use the lstat wrapper. */ 23336 return lstat ("conftest.sym/", &sbuf) == 0; 23337 23338 ; 23339 return 0; 23340} 23341_ACEOF 23342if ac_fn_c_try_run "$LINENO"; then : 23343 gl_cv_func_lstat_dereferences_slashed_symlink=yes 23344else 23345 gl_cv_func_lstat_dereferences_slashed_symlink=no 23346fi 23347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23348 conftest.$ac_objext conftest.beam conftest.$ac_ext 23349fi 23350 23351 rm -f conftest.sym conftest.file 23352 23353fi 23354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5 23355$as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; } 23356 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in 23357 *yes) 23358 23359cat >>confdefs.h <<_ACEOF 23360#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 23361_ACEOF 23362 23363 ;; 23364 esac 23365 23366 23367 23368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5 23369$as_echo_n "checking for promoted mode_t type... " >&6; } 23370if ${gl_cv_promoted_mode_t+:} false; then : 23371 $as_echo_n "(cached) " >&6 23372else 23373 23374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23375/* end confdefs.h. */ 23376#include <sys/types.h> 23377int 23378main () 23379{ 23380typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1]; 23381 ; 23382 return 0; 23383} 23384_ACEOF 23385if ac_fn_c_try_compile "$LINENO"; then : 23386 gl_cv_promoted_mode_t='int' 23387else 23388 gl_cv_promoted_mode_t='mode_t' 23389fi 23390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23391 23392fi 23393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5 23394$as_echo "$gl_cv_promoted_mode_t" >&6; } 23395 23396cat >>confdefs.h <<_ACEOF 23397#define PROMOTED_MODE_T $gl_cv_promoted_mode_t 23398_ACEOF 23399 23400 23401 23402 23403 23404 23405 23406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 23407$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 23408if ${ac_cv_header_stdbool_h+:} false; then : 23409 $as_echo_n "(cached) " >&6 23410else 23411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23412/* end confdefs.h. */ 23413 23414 #include <stdbool.h> 23415 #ifndef bool 23416 "error: bool is not defined" 23417 #endif 23418 #ifndef false 23419 "error: false is not defined" 23420 #endif 23421 #if false 23422 "error: false is not 0" 23423 #endif 23424 #ifndef true 23425 "error: true is not defined" 23426 #endif 23427 #if true != 1 23428 "error: true is not 1" 23429 #endif 23430 #ifndef __bool_true_false_are_defined 23431 "error: __bool_true_false_are_defined is not defined" 23432 #endif 23433 23434 struct s { _Bool s: 1; _Bool t; } s; 23435 23436 char a[true == 1 ? 1 : -1]; 23437 char b[false == 0 ? 1 : -1]; 23438 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 23439 char d[(bool) 0.5 == true ? 1 : -1]; 23440 /* See body of main program for 'e'. */ 23441 char f[(_Bool) 0.0 == false ? 1 : -1]; 23442 char g[true]; 23443 char h[sizeof (_Bool)]; 23444 char i[sizeof s.t]; 23445 enum { j = false, k = true, l = false * true, m = true * 256 }; 23446 /* The following fails for 23447 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 23448 _Bool n[m]; 23449 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 23450 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 23451 /* Catch a bug in an HP-UX C compiler. See 23452 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 23453 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 23454 */ 23455 _Bool q = true; 23456 _Bool *pq = &q; 23457 23458int 23459main () 23460{ 23461 23462 bool e = &s; 23463 *pq |= q; 23464 *pq |= ! q; 23465 /* Refer to every declared value, to avoid compiler optimizations. */ 23466 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 23467 + !m + !n + !o + !p + !q + !pq); 23468 23469 ; 23470 return 0; 23471} 23472_ACEOF 23473if ac_fn_c_try_compile "$LINENO"; then : 23474 ac_cv_header_stdbool_h=yes 23475else 23476 ac_cv_header_stdbool_h=no 23477fi 23478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23479fi 23480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 23481$as_echo "$ac_cv_header_stdbool_h" >&6; } 23482 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 23483if test "x$ac_cv_type__Bool" = xyes; then : 23484 23485cat >>confdefs.h <<_ACEOF 23486#define HAVE__BOOL 1 23487_ACEOF 23488 23489 23490fi 23491 23492 23493 23494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 23495$as_echo_n "checking for wint_t... " >&6; } 23496if ${gt_cv_c_wint_t+:} false; then : 23497 $as_echo_n "(cached) " >&6 23498else 23499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23500/* end confdefs.h. */ 23501 23502/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 23503 <wchar.h>. 23504 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 23505 before <wchar.h>. */ 23506#include <stddef.h> 23507#include <stdio.h> 23508#include <time.h> 23509#include <wchar.h> 23510 wint_t foo = (wchar_t)'\0'; 23511int 23512main () 23513{ 23514 23515 ; 23516 return 0; 23517} 23518_ACEOF 23519if ac_fn_c_try_compile "$LINENO"; then : 23520 gt_cv_c_wint_t=yes 23521else 23522 gt_cv_c_wint_t=no 23523fi 23524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23525fi 23526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 23527$as_echo "$gt_cv_c_wint_t" >&6; } 23528 if test $gt_cv_c_wint_t = yes; then 23529 23530$as_echo "#define HAVE_WINT_T 1" >>confdefs.h 23531 23532 fi 23533 23534 23535 GNULIB_BTOWC=0; 23536 GNULIB_WCTOB=0; 23537 GNULIB_MBSINIT=0; 23538 GNULIB_MBRTOWC=0; 23539 GNULIB_MBRLEN=0; 23540 GNULIB_MBSRTOWCS=0; 23541 GNULIB_MBSNRTOWCS=0; 23542 GNULIB_WCRTOMB=0; 23543 GNULIB_WCSRTOMBS=0; 23544 GNULIB_WCSNRTOMBS=0; 23545 GNULIB_WCWIDTH=0; 23546 GNULIB_WMEMCHR=0; 23547 GNULIB_WMEMCMP=0; 23548 GNULIB_WMEMCPY=0; 23549 GNULIB_WMEMMOVE=0; 23550 GNULIB_WMEMSET=0; 23551 GNULIB_WCSLEN=0; 23552 GNULIB_WCSNLEN=0; 23553 GNULIB_WCSCPY=0; 23554 GNULIB_WCPCPY=0; 23555 GNULIB_WCSNCPY=0; 23556 GNULIB_WCPNCPY=0; 23557 GNULIB_WCSCAT=0; 23558 GNULIB_WCSNCAT=0; 23559 GNULIB_WCSCMP=0; 23560 GNULIB_WCSNCMP=0; 23561 GNULIB_WCSCASECMP=0; 23562 GNULIB_WCSNCASECMP=0; 23563 GNULIB_WCSCOLL=0; 23564 GNULIB_WCSXFRM=0; 23565 GNULIB_WCSDUP=0; 23566 GNULIB_WCSCHR=0; 23567 GNULIB_WCSRCHR=0; 23568 GNULIB_WCSCSPN=0; 23569 GNULIB_WCSSPN=0; 23570 GNULIB_WCSPBRK=0; 23571 GNULIB_WCSSTR=0; 23572 GNULIB_WCSTOK=0; 23573 GNULIB_WCSWIDTH=0; 23574 HAVE_BTOWC=1; 23575 HAVE_MBSINIT=1; 23576 HAVE_MBRTOWC=1; 23577 HAVE_MBRLEN=1; 23578 HAVE_MBSRTOWCS=1; 23579 HAVE_MBSNRTOWCS=1; 23580 HAVE_WCRTOMB=1; 23581 HAVE_WCSRTOMBS=1; 23582 HAVE_WCSNRTOMBS=1; 23583 HAVE_WMEMCHR=1; 23584 HAVE_WMEMCMP=1; 23585 HAVE_WMEMCPY=1; 23586 HAVE_WMEMMOVE=1; 23587 HAVE_WMEMSET=1; 23588 HAVE_WCSLEN=1; 23589 HAVE_WCSNLEN=1; 23590 HAVE_WCSCPY=1; 23591 HAVE_WCPCPY=1; 23592 HAVE_WCSNCPY=1; 23593 HAVE_WCPNCPY=1; 23594 HAVE_WCSCAT=1; 23595 HAVE_WCSNCAT=1; 23596 HAVE_WCSCMP=1; 23597 HAVE_WCSNCMP=1; 23598 HAVE_WCSCASECMP=1; 23599 HAVE_WCSNCASECMP=1; 23600 HAVE_WCSCOLL=1; 23601 HAVE_WCSXFRM=1; 23602 HAVE_WCSDUP=1; 23603 HAVE_WCSCHR=1; 23604 HAVE_WCSRCHR=1; 23605 HAVE_WCSCSPN=1; 23606 HAVE_WCSSPN=1; 23607 HAVE_WCSPBRK=1; 23608 HAVE_WCSSTR=1; 23609 HAVE_WCSTOK=1; 23610 HAVE_WCSWIDTH=1; 23611 HAVE_DECL_WCTOB=1; 23612 HAVE_DECL_WCWIDTH=1; 23613 REPLACE_MBSTATE_T=0; 23614 REPLACE_BTOWC=0; 23615 REPLACE_WCTOB=0; 23616 REPLACE_MBSINIT=0; 23617 REPLACE_MBRTOWC=0; 23618 REPLACE_MBRLEN=0; 23619 REPLACE_MBSRTOWCS=0; 23620 REPLACE_MBSNRTOWCS=0; 23621 REPLACE_WCRTOMB=0; 23622 REPLACE_WCSRTOMBS=0; 23623 REPLACE_WCSNRTOMBS=0; 23624 REPLACE_WCWIDTH=0; 23625 REPLACE_WCSWIDTH=0; 23626 23627 23628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5 23629$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; } 23630if ${gl_cv_header_wchar_h_correct_inline+:} false; then : 23631 $as_echo_n "(cached) " >&6 23632else 23633 gl_cv_header_wchar_h_correct_inline=yes 23634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23635/* end confdefs.h. */ 23636 23637 #define wcstod renamed_wcstod 23638/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 23639 <wchar.h>. 23640 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 23641 included before <wchar.h>. */ 23642#include <stddef.h> 23643#include <stdio.h> 23644#include <time.h> 23645#include <wchar.h> 23646extern int zero (void); 23647int main () { return zero(); } 23648 23649_ACEOF 23650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 23651 (eval $ac_compile) 2>&5 23652 ac_status=$? 23653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23654 test $ac_status = 0; }; then 23655 mv conftest.$ac_objext conftest1.$ac_objext 23656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23657/* end confdefs.h. */ 23658 23659 #define wcstod renamed_wcstod 23660/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 23661 <wchar.h>. 23662 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 23663 included before <wchar.h>. */ 23664#include <stddef.h> 23665#include <stdio.h> 23666#include <time.h> 23667#include <wchar.h> 23668int zero (void) { return 0; } 23669 23670_ACEOF 23671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 23672 (eval $ac_compile) 2>&5 23673 ac_status=$? 23674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23675 test $ac_status = 0; }; then 23676 mv conftest.$ac_objext conftest2.$ac_objext 23677 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then 23678 : 23679 else 23680 gl_cv_header_wchar_h_correct_inline=no 23681 fi 23682 fi 23683 fi 23684 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext 23685 23686fi 23687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 23688$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; } 23689 if test $gl_cv_header_wchar_h_correct_inline = no; then 23690 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). 23691This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in 23692C99 mode. You have four options: 23693 - Add the flag -fgnu89-inline to CC and reconfigure, or 23694 - Fix your include files, using parts of 23695 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or 23696 - Use a gcc version older than 4.3, or 23697 - Don't use the flags -std=c99 or -std=gnu99. 23698Configuration aborted." "$LINENO" 5 23699 fi 23700 23701 23702 23703 23704 23705 23706 23707 23708 : 23709 23710 23711 23712 23713 23714 if test $ac_cv_header_features_h = yes; then 23715 HAVE_FEATURES_H=1 23716 else 23717 HAVE_FEATURES_H=0 23718 fi 23719 23720 23721 23722 if true; then 23723 GL_COND_LIBTOOL_TRUE= 23724 GL_COND_LIBTOOL_FALSE='#' 23725else 23726 GL_COND_LIBTOOL_TRUE='#' 23727 GL_COND_LIBTOOL_FALSE= 23728fi 23729 23730 gl_cond_libtool=true 23731 gl_m4_base='m4' 23732 23733 23734 23735 23736 23737 23738 23739 23740 23741 gl_source_base='gl/lib' 23742 23743 23744 23745 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 23746 REPLACE_CLOSE=1 23747 fi 23748 23749 23750 23751 23752 23753 : 23754 23755 23756 23757 23758 23759 if test $ac_cv_header_sys_socket_h != yes; then 23760 for ac_header in winsock2.h 23761do : 23762 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 23763if test "x$ac_cv_header_winsock2_h" = xyes; then : 23764 cat >>confdefs.h <<_ACEOF 23765#define HAVE_WINSOCK2_H 1 23766_ACEOF 23767 23768fi 23769 23770done 23771 23772 fi 23773 if test "$ac_cv_header_winsock2_h" = yes; then 23774 HAVE_WINSOCK2_H=1 23775 UNISTD_H_HAVE_WINSOCK2_H=1 23776 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 23777 else 23778 HAVE_WINSOCK2_H=0 23779 fi 23780 23781 23782 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then 23783 REPLACE_CLOSE=1 23784 fi 23785 23786 23787 23788 if test $REPLACE_CLOSE = 1; then 23789 23790 23791 23792 23793 23794 23795 23796 23797 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext" 23798 23799 fi 23800 23801 23802 23803 23804 23805 GNULIB_CLOSE=1 23806 23807 23808 23809 23810 23811$as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h 23812 23813 23814 23815 23816 23817 23818 for ac_func in closedir 23819do : 23820 ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir" 23821if test "x$ac_cv_func_closedir" = xyes; then : 23822 cat >>confdefs.h <<_ACEOF 23823#define HAVE_CLOSEDIR 1 23824_ACEOF 23825 23826fi 23827done 23828 23829 if test $ac_cv_func_closedir = no; then 23830 HAVE_CLOSEDIR=0 23831 fi 23832 23833 case $host_os,$HAVE_CLOSEDIR in 23834 os2*,1) 23835 REPLACE_CLOSEDIR=1;; 23836 esac 23837 23838 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then 23839 23840 23841 23842 23843 23844 23845 23846 23847 gl_LIBOBJS="$gl_LIBOBJS closedir.$ac_objext" 23848 23849 fi 23850 23851 23852 23853 23854 23855 GNULIB_CLOSEDIR=1 23856 23857 23858 23859 23860 23861$as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h 23862 23863 23864 23865 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 if test $gl_cv_have_include_next = yes; then 23877 gl_cv_next_ctype_h='<'ctype.h'>' 23878 else 23879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5 23880$as_echo_n "checking absolute name of <ctype.h>... " >&6; } 23881if ${gl_cv_next_ctype_h+:} false; then : 23882 $as_echo_n "(cached) " >&6 23883else 23884 23885 23886 23887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23888/* end confdefs.h. */ 23889#include <ctype.h> 23890_ACEOF 23891 case "$host_os" in 23892 aix*) gl_absname_cpp="$ac_cpp -C" ;; 23893 *) gl_absname_cpp="$ac_cpp" ;; 23894 esac 23895 23896 case "$host_os" in 23897 mingw*) 23898 gl_dirsep_regex='[/\\]' 23899 ;; 23900 *) 23901 gl_dirsep_regex='\/' 23902 ;; 23903 esac 23904 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 23905 gl_header_literal_regex=`echo 'ctype.h' \ 23906 | sed -e "$gl_make_literal_regex_sed"` 23907 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 23908 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 23909 s|^/[^/]|//&| 23910 p 23911 q 23912 }' 23913 23914 gl_cv_absolute_ctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 23915 sed -n "$gl_absolute_header_sed"` 23916 23917 gl_header=$gl_cv_absolute_ctype_h 23918 gl_cv_next_ctype_h='"'$gl_header'"' 23919 23920 23921fi 23922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5 23923$as_echo "$gl_cv_next_ctype_h" >&6; } 23924 fi 23925 NEXT_CTYPE_H=$gl_cv_next_ctype_h 23926 23927 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 23928 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 23929 gl_next_as_first_directive='<'ctype.h'>' 23930 else 23931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 23932 gl_next_as_first_directive=$gl_cv_next_ctype_h 23933 fi 23934 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H=$gl_next_as_first_directive 23935 23936 23937 23938 23939 23940 23941 for gl_func in isblank; do 23942 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 23943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 23944$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 23945if eval \${$as_gl_Symbol+:} false; then : 23946 $as_echo_n "(cached) " >&6 23947else 23948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23949/* end confdefs.h. */ 23950#include <ctype.h> 23951 23952int 23953main () 23954{ 23955#undef $gl_func 23956 (void) $gl_func; 23957 ; 23958 return 0; 23959} 23960_ACEOF 23961if ac_fn_c_try_compile "$LINENO"; then : 23962 eval "$as_gl_Symbol=yes" 23963else 23964 eval "$as_gl_Symbol=no" 23965fi 23966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23967fi 23968eval ac_res=\$$as_gl_Symbol 23969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23970$as_echo "$ac_res" >&6; } 23971 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 23972 cat >>confdefs.h <<_ACEOF 23973#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 23974_ACEOF 23975 23976 eval ac_cv_have_decl_$gl_func=yes 23977fi 23978 done 23979 23980 23981 23982 23983 23984 23985 23986 23987 23988 23989 23990 : 23991 23992 23993 23994 23995 23996 23997 23998 23999 if test $gl_cv_have_include_next = yes; then 24000 gl_cv_next_dirent_h='<'dirent.h'>' 24001 else 24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5 24003$as_echo_n "checking absolute name of <dirent.h>... " >&6; } 24004if ${gl_cv_next_dirent_h+:} false; then : 24005 $as_echo_n "(cached) " >&6 24006else 24007 24008 if test $ac_cv_header_dirent_h = yes; then 24009 24010 24011 24012 24013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24014/* end confdefs.h. */ 24015#include <dirent.h> 24016_ACEOF 24017 case "$host_os" in 24018 aix*) gl_absname_cpp="$ac_cpp -C" ;; 24019 *) gl_absname_cpp="$ac_cpp" ;; 24020 esac 24021 24022 case "$host_os" in 24023 mingw*) 24024 gl_dirsep_regex='[/\\]' 24025 ;; 24026 *) 24027 gl_dirsep_regex='\/' 24028 ;; 24029 esac 24030 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 24031 gl_header_literal_regex=`echo 'dirent.h' \ 24032 | sed -e "$gl_make_literal_regex_sed"` 24033 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 24034 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 24035 s|^/[^/]|//&| 24036 p 24037 q 24038 }' 24039 24040 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 24041 sed -n "$gl_absolute_header_sed"` 24042 24043 gl_header=$gl_cv_absolute_dirent_h 24044 gl_cv_next_dirent_h='"'$gl_header'"' 24045 else 24046 gl_cv_next_dirent_h='<'dirent.h'>' 24047 fi 24048 24049 24050fi 24051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5 24052$as_echo "$gl_cv_next_dirent_h" >&6; } 24053 fi 24054 NEXT_DIRENT_H=$gl_cv_next_dirent_h 24055 24056 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 24057 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 24058 gl_next_as_first_directive='<'dirent.h'>' 24059 else 24060 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 24061 gl_next_as_first_directive=$gl_cv_next_dirent_h 24062 fi 24063 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive 24064 24065 24066 24067 24068 if test $ac_cv_header_dirent_h = yes; then 24069 HAVE_DIRENT_H=1 24070 else 24071 HAVE_DIRENT_H=0 24072 fi 24073 24074 24075 24076 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do 24077 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 24079$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 24080if eval \${$as_gl_Symbol+:} false; then : 24081 $as_echo_n "(cached) " >&6 24082else 24083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24084/* end confdefs.h. */ 24085#include <dirent.h> 24086 24087int 24088main () 24089{ 24090#undef $gl_func 24091 (void) $gl_func; 24092 ; 24093 return 0; 24094} 24095_ACEOF 24096if ac_fn_c_try_compile "$LINENO"; then : 24097 eval "$as_gl_Symbol=yes" 24098else 24099 eval "$as_gl_Symbol=no" 24100fi 24101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24102fi 24103eval ac_res=\$$as_gl_Symbol 24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 24105$as_echo "$ac_res" >&6; } 24106 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 24107 cat >>confdefs.h <<_ACEOF 24108#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 24109_ACEOF 24110 24111 eval ac_cv_have_decl_$gl_func=yes 24112fi 24113 done 24114 24115 24116 24117 24118 : 24119 24120 24121 24122 24123 24124 24125 24126 24127cat >>confdefs.h <<_ACEOF 24128#define GNULIB_DIRENT_SAFER 1 24129_ACEOF 24130 24131 24132 24133 24134 24135 24136 24137 for ac_func in dirfd 24138do : 24139 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd" 24140if test "x$ac_cv_func_dirfd" = xyes; then : 24141 cat >>confdefs.h <<_ACEOF 24142#define HAVE_DIRFD 1 24143_ACEOF 24144 24145fi 24146done 24147 24148 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> 24149 #include <dirent.h> 24150" 24151if test "x$ac_cv_have_decl_dirfd" = xyes; then : 24152 ac_have_decl=1 24153else 24154 ac_have_decl=0 24155fi 24156 24157cat >>confdefs.h <<_ACEOF 24158#define HAVE_DECL_DIRFD $ac_have_decl 24159_ACEOF 24160 24161 if test $ac_cv_have_decl_dirfd = no; then 24162 HAVE_DECL_DIRFD=0 24163 fi 24164 24165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5 24166$as_echo_n "checking whether dirfd is a macro... " >&6; } 24167if ${gl_cv_func_dirfd_macro+:} false; then : 24168 $as_echo_n "(cached) " >&6 24169else 24170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24171/* end confdefs.h. */ 24172 24173#include <sys/types.h> 24174#include <dirent.h> 24175#ifdef dirfd 24176 dirent_header_defines_dirfd 24177#endif 24178_ACEOF 24179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24180 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then : 24181 gl_cv_func_dirfd_macro=yes 24182else 24183 gl_cv_func_dirfd_macro=no 24184fi 24185rm -f conftest* 24186 24187fi 24188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5 24189$as_echo "$gl_cv_func_dirfd_macro" >&6; } 24190 24191 # Use the replacement if we have no function or macro with that name, 24192 # or if OS/2 kLIBC whose dirfd() does not work. 24193 # Replace only if the system declares dirfd already. 24194 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in 24195 no,no,*,yes | *,*,os2*,yes) 24196 REPLACE_DIRFD=1 24197 24198$as_echo "#define REPLACE_DIRFD 1" >>confdefs.h 24199;; 24200 esac 24201 24202 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \ 24203 || test $REPLACE_DIRFD = 1; then 24204 24205 24206 24207 24208 24209 24210 24211 24212 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext" 24213 24214 24215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5 24216$as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; } 24217if ${gl_cv_sys_dir_fd_member_name+:} false; then : 24218 $as_echo_n "(cached) " >&6 24219else 24220 24221 dirfd_save_CFLAGS=$CFLAGS 24222 for ac_expr in d_fd dd_fd; do 24223 24224 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr" 24225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24226/* end confdefs.h. */ 24227 24228 #include <sys/types.h> 24229 #include <dirent.h> 24230int 24231main () 24232{ 24233DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME; 24234 ; 24235 return 0; 24236} 24237_ACEOF 24238if ac_fn_c_try_compile "$LINENO"; then : 24239 dir_fd_found=yes 24240 24241fi 24242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24243 CFLAGS=$dirfd_save_CFLAGS 24244 test "$dir_fd_found" = yes && break 24245 done 24246 test "$dir_fd_found" = yes || ac_expr=no_such_member 24247 24248 gl_cv_sys_dir_fd_member_name=$ac_expr 24249 24250 24251fi 24252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5 24253$as_echo "$gl_cv_sys_dir_fd_member_name" >&6; } 24254 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then 24255 24256cat >>confdefs.h <<_ACEOF 24257#define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name 24258_ACEOF 24259 24260 fi 24261 24262 24263 fi 24264 24265 24266 24267 24268 24269 GNULIB_DIRFD=1 24270 24271 24272 24273 24274 24275$as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h 24276 24277 24278 24279 24280 24281 24282 24283 24284$as_echo "#define HAVE_DUP2 1" >>confdefs.h 24285 24286 24287 if test $HAVE_DUP2 = 1; then 24288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 24289$as_echo_n "checking whether dup2 works... " >&6; } 24290if ${gl_cv_func_dup2_works+:} false; then : 24291 $as_echo_n "(cached) " >&6 24292else 24293 if test "$cross_compiling" = yes; then : 24294 case "$host_os" in 24295 mingw*) # on this platform, dup2 always returns 0 for success 24296 gl_cv_func_dup2_works="guessing no" ;; 24297 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 24298 gl_cv_func_dup2_works="guessing no" ;; 24299 aix* | freebsd*) 24300 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE, 24301 # not EBADF. 24302 gl_cv_func_dup2_works="guessing no" ;; 24303 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC. 24304 gl_cv_func_dup2_works="guessing no" ;; 24305 *-android*) # implemented using dup3(), which fails if oldfd == newfd 24306 gl_cv_func_dup2_works="guessing no" ;; 24307 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd. 24308 gl_cv_func_dup2_works="guessing no" ;; 24309 *) gl_cv_func_dup2_works="guessing yes" ;; 24310 esac 24311else 24312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24313/* end confdefs.h. */ 24314 24315 #include <errno.h> 24316 #include <fcntl.h> 24317 #include <limits.h> 24318 #include <sys/resource.h> 24319 #include <unistd.h> 24320 #ifndef RLIM_SAVED_CUR 24321 # define RLIM_SAVED_CUR RLIM_INFINITY 24322 #endif 24323 #ifndef RLIM_SAVED_MAX 24324 # define RLIM_SAVED_MAX RLIM_INFINITY 24325 #endif 24326 24327int 24328main () 24329{ 24330int result = 0; 24331 int bad_fd = INT_MAX; 24332 struct rlimit rlim; 24333 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 24334 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX 24335 && rlim.rlim_cur != RLIM_INFINITY 24336 && rlim.rlim_cur != RLIM_SAVED_MAX 24337 && rlim.rlim_cur != RLIM_SAVED_CUR) 24338 bad_fd = rlim.rlim_cur; 24339 #ifdef FD_CLOEXEC 24340 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1) 24341 result |= 1; 24342 #endif 24343 if (dup2 (1, 1) != 1) 24344 result |= 2; 24345 #ifdef FD_CLOEXEC 24346 if (fcntl (1, F_GETFD) != FD_CLOEXEC) 24347 result |= 4; 24348 #endif 24349 close (0); 24350 if (dup2 (0, 0) != -1) 24351 result |= 8; 24352 /* Many gnulib modules require POSIX conformance of EBADF. */ 24353 if (dup2 (2, bad_fd) == -1 && errno != EBADF) 24354 result |= 16; 24355 /* Flush out some cygwin core dumps. */ 24356 if (dup2 (2, -1) != -1 || errno != EBADF) 24357 result |= 32; 24358 dup2 (2, 255); 24359 dup2 (2, 256); 24360 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */ 24361 { 24362 int fd = open (".", O_RDONLY); 24363 if (fd == -1) 24364 result |= 64; 24365 else if (dup2 (fd, fd + 1) == -1) 24366 result |= 128; 24367 24368 close (fd); 24369 } 24370 return result; 24371 ; 24372 return 0; 24373} 24374 24375_ACEOF 24376if ac_fn_c_try_run "$LINENO"; then : 24377 gl_cv_func_dup2_works=yes 24378else 24379 gl_cv_func_dup2_works=no 24380fi 24381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24382 conftest.$ac_objext conftest.beam conftest.$ac_ext 24383fi 24384 24385 24386fi 24387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 24388$as_echo "$gl_cv_func_dup2_works" >&6; } 24389 case "$gl_cv_func_dup2_works" in 24390 *yes) ;; 24391 *) 24392 REPLACE_DUP2=1 24393 for ac_func in setdtablesize 24394do : 24395 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize" 24396if test "x$ac_cv_func_setdtablesize" = xyes; then : 24397 cat >>confdefs.h <<_ACEOF 24398#define HAVE_SETDTABLESIZE 1 24399_ACEOF 24400 24401fi 24402done 24403 24404 ;; 24405 esac 24406 fi 24407 24408 24409 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then 24410 24411 24412 24413 24414 24415 24416 24417 24418 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext" 24419 24420 24421 fi 24422 24423 24424 24425 24426 24427 GNULIB_DUP2=1 24428 24429 24430 24431 24432 24433$as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h 24434 24435 24436 24437 24438 24439 24440 24441 24442 24443 24444 : 24445 24446 24447 24448 24449 24450 if test $ac_cv_func_fcntl = no; then 24451 24452 24453 24454 : 24455 24456 24457 24458 24459 24460 if test $ac_cv_func_fcntl = no; then 24461 HAVE_FCNTL=0 24462 else 24463 REPLACE_FCNTL=1 24464 fi 24465 24466 else 24467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5 24468$as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; } 24469if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then : 24470 $as_echo_n "(cached) " >&6 24471else 24472 if test "$cross_compiling" = yes; then : 24473 case $host_os in 24474 aix* | cygwin* | haiku*) 24475 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;; 24476 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;; 24477 esac 24478else 24479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24480/* end confdefs.h. */ 24481#include <errno.h> 24482 #include <fcntl.h> 24483 #include <limits.h> 24484 #include <sys/resource.h> 24485 #include <unistd.h> 24486 #ifndef RLIM_SAVED_CUR 24487 # define RLIM_SAVED_CUR RLIM_INFINITY 24488 #endif 24489 #ifndef RLIM_SAVED_MAX 24490 # define RLIM_SAVED_MAX RLIM_INFINITY 24491 #endif 24492 24493int 24494main () 24495{ 24496int result = 0; 24497 int bad_fd = INT_MAX; 24498 struct rlimit rlim; 24499 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 24500 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX 24501 && rlim.rlim_cur != RLIM_INFINITY 24502 && rlim.rlim_cur != RLIM_SAVED_MAX 24503 && rlim.rlim_cur != RLIM_SAVED_CUR) 24504 bad_fd = rlim.rlim_cur; 24505 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1; 24506 if (errno != EINVAL) result |= 2; 24507 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4; 24508 if (errno != EINVAL) result |= 8; 24509 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */ 24510 { 24511 int fd; 24512 fd = open (".", O_RDONLY); 24513 if (fd == -1) 24514 result |= 16; 24515 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1) 24516 result |= 32; 24517 24518 close (fd); 24519 } 24520 return result; 24521 ; 24522 return 0; 24523} 24524_ACEOF 24525if ac_fn_c_try_run "$LINENO"; then : 24526 gl_cv_func_fcntl_f_dupfd_works=yes 24527else 24528 gl_cv_func_fcntl_f_dupfd_works=no 24529fi 24530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24531 conftest.$ac_objext conftest.beam conftest.$ac_ext 24532fi 24533 24534fi 24535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5 24536$as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; } 24537 case $gl_cv_func_fcntl_f_dupfd_works in 24538 *yes) ;; 24539 *) 24540 24541 24542 : 24543 24544 24545 24546 24547 24548 if test $ac_cv_func_fcntl = no; then 24549 HAVE_FCNTL=0 24550 else 24551 REPLACE_FCNTL=1 24552 fi 24553 24554 24555$as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h 24556 ;; 24557 esac 24558 24559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5 24560$as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; } 24561if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then : 24562 $as_echo_n "(cached) " >&6 24563else 24564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24565/* end confdefs.h. */ 24566 24567#include <fcntl.h> 24568#ifndef F_DUPFD_CLOEXEC 24569choke me 24570#endif 24571 24572int 24573main () 24574{ 24575 24576 ; 24577 return 0; 24578} 24579_ACEOF 24580if ac_fn_c_try_compile "$LINENO"; then : 24581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24582/* end confdefs.h. */ 24583 24584#ifdef __linux__ 24585/* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace 24586 it to support the semantics on older kernels that failed with EINVAL. */ 24587choke me 24588#endif 24589 24590int 24591main () 24592{ 24593 24594 ; 24595 return 0; 24596} 24597_ACEOF 24598if ac_fn_c_try_compile "$LINENO"; then : 24599 gl_cv_func_fcntl_f_dupfd_cloexec=yes 24600else 24601 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" 24602fi 24603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24604else 24605 gl_cv_func_fcntl_f_dupfd_cloexec=no 24606fi 24607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24608fi 24609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5 24610$as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; } 24611 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then 24612 24613 24614 24615 : 24616 24617 24618 24619 24620 24621 if test $ac_cv_func_fcntl = no; then 24622 HAVE_FCNTL=0 24623 else 24624 REPLACE_FCNTL=1 24625 fi 24626 24627 fi 24628 fi 24629 24630 24631 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then 24632 24633 24634 24635 24636 24637 24638 24639 24640 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext" 24641 24642 fi 24643 24644 24645 24646 24647 24648 GNULIB_FCNTL=1 24649 24650 24651 24652 24653 24654$as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h 24655 24656 24657 24658 24659 24660 24661 24662 24663 24664 24665 24666 24667 24668 24669 if test $gl_cv_have_include_next = yes; then 24670 gl_cv_next_fcntl_h='<'fcntl.h'>' 24671 else 24672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5 24673$as_echo_n "checking absolute name of <fcntl.h>... " >&6; } 24674if ${gl_cv_next_fcntl_h+:} false; then : 24675 $as_echo_n "(cached) " >&6 24676else 24677 24678 24679 24680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24681/* end confdefs.h. */ 24682#include <fcntl.h> 24683_ACEOF 24684 case "$host_os" in 24685 aix*) gl_absname_cpp="$ac_cpp -C" ;; 24686 *) gl_absname_cpp="$ac_cpp" ;; 24687 esac 24688 24689 case "$host_os" in 24690 mingw*) 24691 gl_dirsep_regex='[/\\]' 24692 ;; 24693 *) 24694 gl_dirsep_regex='\/' 24695 ;; 24696 esac 24697 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 24698 gl_header_literal_regex=`echo 'fcntl.h' \ 24699 | sed -e "$gl_make_literal_regex_sed"` 24700 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 24701 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 24702 s|^/[^/]|//&| 24703 p 24704 q 24705 }' 24706 24707 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 24708 sed -n "$gl_absolute_header_sed"` 24709 24710 gl_header=$gl_cv_absolute_fcntl_h 24711 gl_cv_next_fcntl_h='"'$gl_header'"' 24712 24713 24714fi 24715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5 24716$as_echo "$gl_cv_next_fcntl_h" >&6; } 24717 fi 24718 NEXT_FCNTL_H=$gl_cv_next_fcntl_h 24719 24720 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 24721 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 24722 gl_next_as_first_directive='<'fcntl.h'>' 24723 else 24724 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 24725 gl_next_as_first_directive=$gl_cv_next_fcntl_h 24726 fi 24727 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive 24728 24729 24730 24731 24732 24733 24734 24735 24736 24737 24738 for gl_func in fcntl openat; do 24739 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 24740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 24741$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 24742if eval \${$as_gl_Symbol+:} false; then : 24743 $as_echo_n "(cached) " >&6 24744else 24745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24746/* end confdefs.h. */ 24747#include <fcntl.h> 24748 24749int 24750main () 24751{ 24752#undef $gl_func 24753 (void) $gl_func; 24754 ; 24755 return 0; 24756} 24757_ACEOF 24758if ac_fn_c_try_compile "$LINENO"; then : 24759 eval "$as_gl_Symbol=yes" 24760else 24761 eval "$as_gl_Symbol=no" 24762fi 24763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24764fi 24765eval ac_res=\$$as_gl_Symbol 24766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 24767$as_echo "$ac_res" >&6; } 24768 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 24769 cat >>confdefs.h <<_ACEOF 24770#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 24771_ACEOF 24772 24773 eval ac_cv_have_decl_$gl_func=yes 24774fi 24775 done 24776 24777 24778 24779 24780 24781 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then 24782 REPLACE_FSEEK=1 24783 fi 24784 24785 if test $REPLACE_FSEEK = 1; then 24786 24787 24788 24789 24790 24791 24792 24793 24794 gl_LIBOBJS="$gl_LIBOBJS fseek.$ac_objext" 24795 24796 fi 24797 24798 24799 24800 24801 24802 GNULIB_FSEEK=1 24803 24804 24805 24806 24807 24808$as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h 24809 24810 24811 24812 24813 24814 24815 24816 24817 24818 24819 24820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5 24821$as_echo_n "checking for fseeko... " >&6; } 24822if ${gl_cv_func_fseeko+:} false; then : 24823 $as_echo_n "(cached) " >&6 24824else 24825 24826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24827/* end confdefs.h. */ 24828#include <stdio.h> 24829 24830int 24831main () 24832{ 24833fseeko (stdin, 0, 0); 24834 ; 24835 return 0; 24836} 24837_ACEOF 24838if ac_fn_c_try_link "$LINENO"; then : 24839 gl_cv_func_fseeko=yes 24840else 24841 gl_cv_func_fseeko=no 24842fi 24843rm -f core conftest.err conftest.$ac_objext \ 24844 conftest$ac_exeext conftest.$ac_ext 24845 24846fi 24847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5 24848$as_echo "$gl_cv_func_fseeko" >&6; } 24849 24850 24851 : 24852 24853 24854 24855 24856 24857 if test $ac_cv_have_decl_fseeko = no; then 24858 HAVE_DECL_FSEEKO=0 24859 fi 24860 24861 if test $gl_cv_func_fseeko = no; then 24862 HAVE_FSEEKO=0 24863 else 24864 if test $WINDOWS_64_BIT_OFF_T = 1; then 24865 REPLACE_FSEEKO=1 24866 fi 24867 if test $gl_cv_var_stdin_large_offset = no; then 24868 REPLACE_FSEEKO=1 24869 fi 24870 24871 fi 24872 24873 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then 24874 24875 24876 24877 24878 24879 24880 24881 24882 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext" 24883 24884 24885 for ac_func in _fseeki64 24886do : 24887 ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64" 24888if test "x$ac_cv_func__fseeki64" = xyes; then : 24889 cat >>confdefs.h <<_ACEOF 24890#define HAVE__FSEEKI64 1 24891_ACEOF 24892 24893fi 24894done 24895 24896 24897 fi 24898 24899 24900 24901 24902 24903 GNULIB_FSEEKO=1 24904 24905 24906 24907 24908 24909$as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h 24910 24911 24912 24913 24914 24915 24916 24917 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 24918 REPLACE_FSTAT=1 24919 fi 24920 24921 24922 if test $WINDOWS_64_BIT_ST_SIZE = 1; then 24923 REPLACE_FSTAT=1 24924 fi 24925 24926 24927 24928 if test $REPLACE_FSTAT = 1; then 24929 24930 24931 24932 24933 24934 24935 24936 24937 gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext" 24938 24939 : 24940 fi 24941 24942 24943 24944 24945 24946 GNULIB_FSTAT=1 24947 24948 24949 24950 24951 24952$as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h 24953 24954 24955 24956 24957 24958 24959 24960 : 24961 24962 24963 24964 24965 24966 24967 : 24968 24969 24970 24971 24972 24973 if test $ac_cv_func_getdtablesize = yes && 24974 test $ac_cv_have_decl_getdtablesize = yes; then 24975 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit 24976 # up to an unchangeable hard limit; all other platforms correctly 24977 # require setrlimit before getdtablesize() can report a larger value. 24978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5 24979$as_echo_n "checking whether getdtablesize works... " >&6; } 24980if ${gl_cv_func_getdtablesize_works+:} false; then : 24981 $as_echo_n "(cached) " >&6 24982else 24983 if test "$cross_compiling" = yes; then : 24984 case "$host_os" in 24985 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows 24986 gl_cv_func_getdtablesize_works="guessing no" ;; 24987 *) gl_cv_func_getdtablesize_works="guessing yes" ;; 24988 esac 24989else 24990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24991/* end confdefs.h. */ 24992 24993 #include <unistd.h> 24994int 24995main () 24996{ 24997int size = getdtablesize(); 24998 if (dup2 (0, getdtablesize()) != -1) 24999 return 1; 25000 if (size != getdtablesize()) 25001 return 2; 25002 25003 ; 25004 return 0; 25005} 25006_ACEOF 25007if ac_fn_c_try_run "$LINENO"; then : 25008 gl_cv_func_getdtablesize_works=yes 25009else 25010 gl_cv_func_getdtablesize_works=no 25011fi 25012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25013 conftest.$ac_objext conftest.beam conftest.$ac_ext 25014fi 25015 25016 25017fi 25018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5 25019$as_echo "$gl_cv_func_getdtablesize_works" >&6; } 25020 case "$gl_cv_func_getdtablesize_works" in 25021 *yes) ;; 25022 *) REPLACE_GETDTABLESIZE=1 ;; 25023 esac 25024 else 25025 HAVE_GETDTABLESIZE=0 25026 fi 25027 25028 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then 25029 25030 25031 25032 25033 25034 25035 25036 25037 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext" 25038 25039 : 25040 fi 25041 25042 25043 25044 25045 25046 GNULIB_GETDTABLESIZE=1 25047 25048 25049 25050 25051 25052$as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h 25053 25054 25055 25056 25057 25058 25059 25060 25061 : 25062 25063 25064 25065 25066 25067 25068 gl_gettimeofday_timezone=void 25069 if test $ac_cv_func_gettimeofday != yes; then 25070 HAVE_GETTIMEOFDAY=0 25071 else 25072 25073 25074 25075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5 25076$as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; } 25077if ${gl_cv_func_gettimeofday_clobber+:} false; then : 25078 $as_echo_n "(cached) " >&6 25079else 25080 if test "$cross_compiling" = yes; then : 25081 # When cross-compiling: 25082 case "$host_os" in 25083 # Guess all is fine on glibc systems. 25084 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;; 25085 # If we don't know, assume the worst. 25086 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;; 25087 esac 25088 25089else 25090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25091/* end confdefs.h. */ 25092#include <string.h> 25093 #include <sys/time.h> 25094 #include <time.h> 25095 #include <stdlib.h> 25096 25097int 25098main () 25099{ 25100 25101 time_t t = 0; 25102 struct tm *lt; 25103 struct tm saved_lt; 25104 struct timeval tv; 25105 lt = localtime (&t); 25106 saved_lt = *lt; 25107 gettimeofday (&tv, NULL); 25108 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0; 25109 25110 ; 25111 return 0; 25112} 25113_ACEOF 25114if ac_fn_c_try_run "$LINENO"; then : 25115 gl_cv_func_gettimeofday_clobber=no 25116else 25117 gl_cv_func_gettimeofday_clobber=yes 25118fi 25119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25120 conftest.$ac_objext conftest.beam conftest.$ac_ext 25121fi 25122 25123fi 25124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5 25125$as_echo "$gl_cv_func_gettimeofday_clobber" >&6; } 25126 25127 case "$gl_cv_func_gettimeofday_clobber" in 25128 *yes) 25129 REPLACE_GETTIMEOFDAY=1 25130 25131 REPLACE_GMTIME=1 25132 REPLACE_LOCALTIME=1 25133 25134 25135$as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h 25136 25137 ;; 25138 esac 25139 25140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5 25141$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; } 25142if ${gl_cv_func_gettimeofday_posix_signature+:} false; then : 25143 $as_echo_n "(cached) " >&6 25144else 25145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25146/* end confdefs.h. */ 25147#include <sys/time.h> 25148 struct timeval c; 25149 int gettimeofday (struct timeval *restrict, void *restrict); 25150 25151int 25152main () 25153{ 25154/* glibc uses struct timezone * rather than the POSIX void * 25155 if _GNU_SOURCE is defined. However, since the only portable 25156 use of gettimeofday uses NULL as the second parameter, and 25157 since the glibc definition is actually more typesafe, it is 25158 not worth wrapping this to get a compliant signature. */ 25159 int (*f) (struct timeval *restrict, void *restrict) 25160 = gettimeofday; 25161 int x = f (&c, 0); 25162 return !(x | c.tv_sec | c.tv_usec); 25163 25164 ; 25165 return 0; 25166} 25167_ACEOF 25168if ac_fn_c_try_compile "$LINENO"; then : 25169 gl_cv_func_gettimeofday_posix_signature=yes 25170else 25171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25172/* end confdefs.h. */ 25173#include <sys/time.h> 25174int gettimeofday (struct timeval *restrict, struct timezone *restrict); 25175 25176int 25177main () 25178{ 25179 25180 ; 25181 return 0; 25182} 25183_ACEOF 25184if ac_fn_c_try_compile "$LINENO"; then : 25185 gl_cv_func_gettimeofday_posix_signature=almost 25186else 25187 gl_cv_func_gettimeofday_posix_signature=no 25188fi 25189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25190fi 25191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25192fi 25193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5 25194$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; } 25195 if test $gl_cv_func_gettimeofday_posix_signature = almost; then 25196 gl_gettimeofday_timezone='struct timezone' 25197 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then 25198 REPLACE_GETTIMEOFDAY=1 25199 fi 25200 if test $REPLACE_STRUCT_TIMEVAL = 1; then 25201 REPLACE_GETTIMEOFDAY=1 25202 fi 25203 25204 fi 25205 25206cat >>confdefs.h <<_ACEOF 25207#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone 25208_ACEOF 25209 25210 25211 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then 25212 25213 25214 25215 25216 25217 25218 25219 25220 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext" 25221 25222 25223 for ac_header in sys/timeb.h 25224do : 25225 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" 25226if test "x$ac_cv_header_sys_timeb_h" = xyes; then : 25227 cat >>confdefs.h <<_ACEOF 25228#define HAVE_SYS_TIMEB_H 1 25229_ACEOF 25230 25231fi 25232 25233done 25234 25235 for ac_func in _ftime 25236do : 25237 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime" 25238if test "x$ac_cv_func__ftime" = xyes; then : 25239 cat >>confdefs.h <<_ACEOF 25240#define HAVE__FTIME 1 25241_ACEOF 25242 25243fi 25244done 25245 25246 25247 fi 25248 25249 25250 25251 25252 25253 GNULIB_GETTIMEOFDAY=1 25254 25255 25256 25257 25258 25259$as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h 25260 25261 25262 25263 # Autoconf 2.61a.99 and earlier don't support linking a file only 25264 # in VPATH builds. But since GNUmakefile is for maintainer use 25265 # only, it does not matter if we skip the link with older autoconf. 25266 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH 25267 # builds, so use a shell variable to bypass this. 25268 GNUmakefile=GNUmakefile 25269 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile" 25270 25271 25272 25273 25274 25275 25276 25277 25278 : 25279 25280 25281 25282 25283 25284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5 25285$as_echo_n "checking whether lseek detects pipes... " >&6; } 25286if ${gl_cv_func_lseek_pipe+:} false; then : 25287 $as_echo_n "(cached) " >&6 25288else 25289 case "$host_os" in 25290 mingw*) 25291 gl_cv_func_lseek_pipe=no 25292 ;; 25293 *) 25294 if test $cross_compiling = no; then 25295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25296/* end confdefs.h. */ 25297 25298#include <sys/types.h> /* for off_t */ 25299#include <stdio.h> /* for SEEK_CUR */ 25300#if HAVE_UNISTD_H 25301# include <unistd.h> 25302#else /* on Windows with MSVC */ 25303# include <io.h> 25304#endif 25305 25306int 25307main () 25308{ 25309 25310 /* Exit with success only if stdin is seekable. */ 25311 return lseek (0, (off_t)0, SEEK_CUR) < 0; 25312 25313 ; 25314 return 0; 25315} 25316_ACEOF 25317if ac_fn_c_try_link "$LINENO"; then : 25318 if test -s conftest$ac_exeext \ 25319 && ./conftest$ac_exeext < conftest.$ac_ext \ 25320 && test 1 = "`echo hi \ 25321 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then 25322 gl_cv_func_lseek_pipe=yes 25323 else 25324 gl_cv_func_lseek_pipe=no 25325 fi 25326 25327else 25328 gl_cv_func_lseek_pipe=no 25329fi 25330rm -f core conftest.err conftest.$ac_objext \ 25331 conftest$ac_exeext conftest.$ac_ext 25332 else 25333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25334/* end confdefs.h. */ 25335 25336#if defined __BEOS__ 25337/* BeOS mistakenly return 0 when trying to seek on pipes. */ 25338 Choke me. 25339#endif 25340_ACEOF 25341if ac_fn_c_try_compile "$LINENO"; then : 25342 gl_cv_func_lseek_pipe=yes 25343else 25344 gl_cv_func_lseek_pipe=no 25345fi 25346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25347 fi 25348 ;; 25349 esac 25350 25351fi 25352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5 25353$as_echo "$gl_cv_func_lseek_pipe" >&6; } 25354 if test $gl_cv_func_lseek_pipe = no; then 25355 REPLACE_LSEEK=1 25356 25357$as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h 25358 25359 fi 25360 25361 25362 if test $WINDOWS_64_BIT_OFF_T = 1; then 25363 REPLACE_LSEEK=1 25364 fi 25365 25366 if test $REPLACE_LSEEK = 1; then 25367 25368 25369 25370 25371 25372 25373 25374 25375 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext" 25376 25377 fi 25378 25379 25380 25381 25382 25383 GNULIB_LSEEK=1 25384 25385 25386 25387 25388 25389$as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h 25390 25391 25392 25393 25394 25395 25396 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 25397 25398 25399 25400 25401 25402 25403 25404 25405 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext" 25406 25407 fi 25408 25409 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 25410 25411 25412 25413 25414 25415 25416 25417 25418 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext" 25419 25420 fi 25421 25422 25423 25424 for ac_func in opendir 25425do : 25426 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir" 25427if test "x$ac_cv_func_opendir" = xyes; then : 25428 cat >>confdefs.h <<_ACEOF 25429#define HAVE_OPENDIR 1 25430_ACEOF 25431 25432fi 25433done 25434 25435 if test $ac_cv_func_opendir = no; then 25436 HAVE_OPENDIR=0 25437 fi 25438 25439 case $host_os,$HAVE_OPENDIR in 25440 os2*,1) 25441 REPLACE_OPENDIR=1;; 25442 esac 25443 25444 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then 25445 25446 25447 25448 25449 25450 25451 25452 25453 gl_LIBOBJS="$gl_LIBOBJS opendir.$ac_objext" 25454 25455 fi 25456 25457 25458 25459 25460 25461 GNULIB_OPENDIR=1 25462 25463 25464 25465 25466 25467$as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h 25468 25469 25470 25471 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h> 25472" 25473if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then : 25474 ac_have_decl=1 25475else 25476 ac_have_decl=0 25477fi 25478 25479cat >>confdefs.h <<_ACEOF 25480#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl 25481_ACEOF 25482 25483 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 25484" 25485if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then : 25486 ac_have_decl=1 25487else 25488 ac_have_decl=0 25489fi 25490 25491cat >>confdefs.h <<_ACEOF 25492#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl 25493_ACEOF 25494 25495 25496 25497 25498 25499 25500 25501 25502 25503 : 25504 25505 25506 25507 25508 25509 25510 25511 25512 if test $gl_cv_have_include_next = yes; then 25513 gl_cv_next_pthread_h='<'pthread.h'>' 25514 else 25515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <pthread.h>" >&5 25516$as_echo_n "checking absolute name of <pthread.h>... " >&6; } 25517if ${gl_cv_next_pthread_h+:} false; then : 25518 $as_echo_n "(cached) " >&6 25519else 25520 25521 if test $ac_cv_header_pthread_h = yes; then 25522 25523 25524 25525 25526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25527/* end confdefs.h. */ 25528#include <pthread.h> 25529_ACEOF 25530 case "$host_os" in 25531 aix*) gl_absname_cpp="$ac_cpp -C" ;; 25532 *) gl_absname_cpp="$ac_cpp" ;; 25533 esac 25534 25535 case "$host_os" in 25536 mingw*) 25537 gl_dirsep_regex='[/\\]' 25538 ;; 25539 *) 25540 gl_dirsep_regex='\/' 25541 ;; 25542 esac 25543 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 25544 gl_header_literal_regex=`echo 'pthread.h' \ 25545 | sed -e "$gl_make_literal_regex_sed"` 25546 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 25547 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 25548 s|^/[^/]|//&| 25549 p 25550 q 25551 }' 25552 25553 gl_cv_absolute_pthread_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 25554 sed -n "$gl_absolute_header_sed"` 25555 25556 gl_header=$gl_cv_absolute_pthread_h 25557 gl_cv_next_pthread_h='"'$gl_header'"' 25558 else 25559 gl_cv_next_pthread_h='<'pthread.h'>' 25560 fi 25561 25562 25563fi 25564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_pthread_h" >&5 25565$as_echo "$gl_cv_next_pthread_h" >&6; } 25566 fi 25567 NEXT_PTHREAD_H=$gl_cv_next_pthread_h 25568 25569 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 25570 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 25571 gl_next_as_first_directive='<'pthread.h'>' 25572 else 25573 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 25574 gl_next_as_first_directive=$gl_cv_next_pthread_h 25575 fi 25576 NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H=$gl_next_as_first_directive 25577 25578 25579 25580 25581 if test $ac_cv_header_pthread_h = yes; then 25582 HAVE_PTHREAD_H=1 25583 # mingw 3.0 uses winpthreads which installs broken macros via <pthread.h> 25584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <pthread.h> pollutes the namespace" >&5 25585$as_echo_n "checking whether <pthread.h> pollutes the namespace... " >&6; } 25586if ${gl_cv_header_pthread_h_pollution+:} false; then : 25587 $as_echo_n "(cached) " >&6 25588else 25589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25590/* end confdefs.h. */ 25591#include <pthread.h> 25592 #if defined strtok_r || defined localtime_r 25593 #error 25594 break me 25595 #endif 25596 25597int 25598main () 25599{ 25600 25601 ; 25602 return 0; 25603} 25604_ACEOF 25605if ac_fn_c_try_compile "$LINENO"; then : 25606 gl_cv_header_pthread_h_pollution=no 25607else 25608 gl_cv_header_pthread_h_pollution=yes 25609fi 25610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25611fi 25612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_pthread_h_pollution" >&5 25613$as_echo "$gl_cv_header_pthread_h_pollution" >&6; } 25614 else 25615 HAVE_PTHREAD_H=0 25616 fi 25617 25618 ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "$ac_includes_default 25619 #if HAVE_PTHREAD_H 25620 #include <pthread.h> 25621 #endif 25622" 25623if test "x$ac_cv_type_pthread_t" = xyes; then : 25624 25625cat >>confdefs.h <<_ACEOF 25626#define HAVE_PTHREAD_T 1 25627_ACEOF 25628 25629 25630fi 25631ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "$ac_includes_default 25632 #if HAVE_PTHREAD_H 25633 #include <pthread.h> 25634 #endif 25635" 25636if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then : 25637 25638cat >>confdefs.h <<_ACEOF 25639#define HAVE_PTHREAD_SPINLOCK_T 1 25640_ACEOF 25641 25642 25643fi 25644 25645 if test $ac_cv_type_pthread_t != yes; then 25646 HAVE_PTHREAD_T=0 25647 fi 25648 if test $ac_cv_type_pthread_spinlock_t != yes; then 25649 HAVE_PTHREAD_SPINLOCK_T=0 25650 fi 25651 25652 if test $ac_cv_header_pthread_h != yes || 25653 test $ac_cv_type_pthread_t != yes || 25654 test $ac_cv_type_pthread_spinlock_t != yes; then 25655 PTHREAD_H='pthread.h' 25656 25657 25658 25659 25660 25661 25662 25663 25664 gl_LIBOBJS="$gl_LIBOBJS pthread.$ac_objext" 25665 25666 elif test $gl_cv_header_pthread_h_pollution = yes; then 25667 PTHREAD_H=pthread.h 25668 else 25669 PTHREAD_H= 25670 fi 25671 25672 if test -n "$PTHREAD_H"; then 25673 GL_GENERATE_PTHREAD_H_TRUE= 25674 GL_GENERATE_PTHREAD_H_FALSE='#' 25675else 25676 GL_GENERATE_PTHREAD_H_TRUE='#' 25677 GL_GENERATE_PTHREAD_H_FALSE= 25678fi 25679 25680 25681 LIB_PTHREAD= 25682 if test $ac_cv_header_pthread_h = yes; then 25683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create and pthread_join" >&5 25684$as_echo_n "checking for library containing pthread_create and pthread_join... " >&6; } 25685if ${gl_cv_lib_pthread+:} false; then : 25686 $as_echo_n "(cached) " >&6 25687else 25688 gl_saved_libs=$LIBS 25689 gl_cv_lib_pthread= 25690 for gl_lib_prefix in '' '-pthread' '-lpthread'; do 25691 LIBS="$gl_lib_prefix $gl_saved_libs" 25692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25693/* end confdefs.h. */ 25694#include <pthread.h> 25695 void *noop (void *p) { return p; } 25696int 25697main () 25698{ 25699pthread_t pt; 25700 void *arg = 0; 25701 pthread_create (&pt, 0, noop, arg); 25702 pthread_join (pthread_self (), &arg); 25703 ; 25704 return 0; 25705} 25706_ACEOF 25707if ac_fn_c_try_link "$LINENO"; then : 25708 if test -z "$gl_lib_prefix"; then 25709 gl_cv_lib_pthread="none required" 25710 else 25711 gl_cv_lib_pthread=$gl_lib_prefix 25712 fi 25713fi 25714rm -f core conftest.err conftest.$ac_objext \ 25715 conftest$ac_exeext conftest.$ac_ext 25716 test -n "$gl_cv_lib_pthread" && break 25717 done 25718 LIBS="$gl_saved_libs" 25719 25720fi 25721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_pthread" >&5 25722$as_echo "$gl_cv_lib_pthread" >&6; } 25723 if test "$gl_cv_lib_pthread" != "none required"; then 25724 LIB_PTHREAD="$gl_cv_lib_pthread" 25725 fi 25726 fi 25727 25728 25729 25730 25731 25732 25733cat >>confdefs.h <<_ACEOF 25734#define GNULIB_PTHREAD 1 25735_ACEOF 25736 25737 25738 25739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25740/* end confdefs.h. */ 25741 25742 #include <sched.h> 25743 struct sched_param a; 25744 int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER }; 25745 pid_t t1; 25746 25747int 25748main () 25749{ 25750 25751 ; 25752 return 0; 25753} 25754_ACEOF 25755if ac_fn_c_try_compile "$LINENO"; then : 25756 SCHED_H='' 25757else 25758 SCHED_H='sched.h' 25759 25760 25761 25762 25763 25764 25765 25766 : 25767 25768 25769 25770 25771 25772 25773 25774 25775 if test $gl_cv_have_include_next = yes; then 25776 gl_cv_next_sched_h='<'sched.h'>' 25777 else 25778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5 25779$as_echo_n "checking absolute name of <sched.h>... " >&6; } 25780if ${gl_cv_next_sched_h+:} false; then : 25781 $as_echo_n "(cached) " >&6 25782else 25783 25784 if test $ac_cv_header_sched_h = yes; then 25785 25786 25787 25788 25789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25790/* end confdefs.h. */ 25791#include <sched.h> 25792_ACEOF 25793 case "$host_os" in 25794 aix*) gl_absname_cpp="$ac_cpp -C" ;; 25795 *) gl_absname_cpp="$ac_cpp" ;; 25796 esac 25797 25798 case "$host_os" in 25799 mingw*) 25800 gl_dirsep_regex='[/\\]' 25801 ;; 25802 *) 25803 gl_dirsep_regex='\/' 25804 ;; 25805 esac 25806 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 25807 gl_header_literal_regex=`echo 'sched.h' \ 25808 | sed -e "$gl_make_literal_regex_sed"` 25809 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 25810 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 25811 s|^/[^/]|//&| 25812 p 25813 q 25814 }' 25815 25816 gl_cv_absolute_sched_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 25817 sed -n "$gl_absolute_header_sed"` 25818 25819 gl_header=$gl_cv_absolute_sched_h 25820 gl_cv_next_sched_h='"'$gl_header'"' 25821 else 25822 gl_cv_next_sched_h='<'sched.h'>' 25823 fi 25824 25825 25826fi 25827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5 25828$as_echo "$gl_cv_next_sched_h" >&6; } 25829 fi 25830 NEXT_SCHED_H=$gl_cv_next_sched_h 25831 25832 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 25833 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 25834 gl_next_as_first_directive='<'sched.h'>' 25835 else 25836 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 25837 gl_next_as_first_directive=$gl_cv_next_sched_h 25838 fi 25839 NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive 25840 25841 25842 25843 25844 25845 if test $ac_cv_header_sched_h = yes; then 25846 HAVE_SCHED_H=1 25847 else 25848 HAVE_SCHED_H=0 25849 fi 25850 25851 25852 if test "$HAVE_SCHED_H" = 1; then 25853 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <sched.h> 25854" 25855if test "x$ac_cv_type_struct_sched_param" = xyes; then : 25856 HAVE_STRUCT_SCHED_PARAM=1 25857else 25858 HAVE_STRUCT_SCHED_PARAM=0 25859fi 25860 25861 else 25862 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <spawn.h> 25863" 25864if test "x$ac_cv_type_struct_sched_param" = xyes; then : 25865 HAVE_STRUCT_SCHED_PARAM=1 25866else 25867 HAVE_STRUCT_SCHED_PARAM=0 25868fi 25869 25870 fi 25871 25872 25873 25874 25875fi 25876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25877 25878 if test -n "$SCHED_H"; then 25879 GL_GENERATE_SCHED_H_TRUE= 25880 GL_GENERATE_SCHED_H_FALSE='#' 25881else 25882 GL_GENERATE_SCHED_H_TRUE='#' 25883 GL_GENERATE_SCHED_H_FALSE= 25884fi 25885 25886 25887 25888 25889 25890 25891 25892 25893 25894 25895 25896 25897 25898 if test $gl_cv_have_include_next = yes; then 25899 gl_cv_next_signal_h='<'signal.h'>' 25900 else 25901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5 25902$as_echo_n "checking absolute name of <signal.h>... " >&6; } 25903if ${gl_cv_next_signal_h+:} false; then : 25904 $as_echo_n "(cached) " >&6 25905else 25906 25907 25908 25909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25910/* end confdefs.h. */ 25911#include <signal.h> 25912_ACEOF 25913 case "$host_os" in 25914 aix*) gl_absname_cpp="$ac_cpp -C" ;; 25915 *) gl_absname_cpp="$ac_cpp" ;; 25916 esac 25917 25918 case "$host_os" in 25919 mingw*) 25920 gl_dirsep_regex='[/\\]' 25921 ;; 25922 *) 25923 gl_dirsep_regex='\/' 25924 ;; 25925 esac 25926 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 25927 gl_header_literal_regex=`echo 'signal.h' \ 25928 | sed -e "$gl_make_literal_regex_sed"` 25929 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 25930 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 25931 s|^/[^/]|//&| 25932 p 25933 q 25934 }' 25935 25936 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 25937 sed -n "$gl_absolute_header_sed"` 25938 25939 gl_header=$gl_cv_absolute_signal_h 25940 gl_cv_next_signal_h='"'$gl_header'"' 25941 25942 25943fi 25944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 25945$as_echo "$gl_cv_next_signal_h" >&6; } 25946 fi 25947 NEXT_SIGNAL_H=$gl_cv_next_signal_h 25948 25949 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 25950 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 25951 gl_next_as_first_directive='<'signal.h'>' 25952 else 25953 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 25954 gl_next_as_first_directive=$gl_cv_next_signal_h 25955 fi 25956 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive 25957 25958 25959 25960 25961 25962# AIX declares sig_atomic_t to already include volatile, and C89 compilers 25963# then choke on 'volatile sig_atomic_t'. C99 requires that it compile. 25964 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " 25965#include <signal.h> 25966 25967" 25968if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then : 25969 25970else 25971 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 25972fi 25973 25974 25975 25976 25977 25978 25979 25980 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" " 25981#include <signal.h> 25982 25983" 25984if test "x$ac_cv_type_sighandler_t" = xyes; then : 25985 25986else 25987 HAVE_SIGHANDLER_T=0 25988fi 25989 25990 25991 25992 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do 25993 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 25994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 25995$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 25996if eval \${$as_gl_Symbol+:} false; then : 25997 $as_echo_n "(cached) " >&6 25998else 25999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26000/* end confdefs.h. */ 26001#include <signal.h> 26002 26003int 26004main () 26005{ 26006#undef $gl_func 26007 (void) $gl_func; 26008 ; 26009 return 0; 26010} 26011_ACEOF 26012if ac_fn_c_try_compile "$LINENO"; then : 26013 eval "$as_gl_Symbol=yes" 26014else 26015 eval "$as_gl_Symbol=no" 26016fi 26017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26018fi 26019eval ac_res=\$$as_gl_Symbol 26020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 26021$as_echo "$ac_res" >&6; } 26022 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 26023 cat >>confdefs.h <<_ACEOF 26024#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 26025_ACEOF 26026 26027 eval ac_cv_have_decl_$gl_func=yes 26028fi 26029 done 26030 26031 26032 26033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 26034$as_echo_n "checking for ssize_t... " >&6; } 26035if ${gt_cv_ssize_t+:} false; then : 26036 $as_echo_n "(cached) " >&6 26037else 26038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26039/* end confdefs.h. */ 26040#include <sys/types.h> 26041int 26042main () 26043{ 26044int x = sizeof (ssize_t *) + sizeof (ssize_t); 26045 return !x; 26046 ; 26047 return 0; 26048} 26049_ACEOF 26050if ac_fn_c_try_compile "$LINENO"; then : 26051 gt_cv_ssize_t=yes 26052else 26053 gt_cv_ssize_t=no 26054fi 26055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26056fi 26057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 26058$as_echo "$gt_cv_ssize_t" >&6; } 26059 if test $gt_cv_ssize_t = no; then 26060 26061$as_echo "#define ssize_t int" >>confdefs.h 26062 26063 fi 26064 26065 26066 STDARG_H='' 26067 NEXT_STDARG_H='<stdarg.h>' 26068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 26069$as_echo_n "checking for va_copy... " >&6; } 26070 if ${gl_cv_func_va_copy+:} false; then : 26071 $as_echo_n "(cached) " >&6 26072else 26073 26074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26075/* end confdefs.h. */ 26076#include <stdarg.h> 26077int 26078main () 26079{ 26080 26081#ifndef va_copy 26082void (*func) (va_list, va_list) = va_copy; 26083#endif 26084 26085 ; 26086 return 0; 26087} 26088_ACEOF 26089if ac_fn_c_try_compile "$LINENO"; then : 26090 gl_cv_func_va_copy=yes 26091else 26092 gl_cv_func_va_copy=no 26093fi 26094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26095fi 26096 26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5 26098$as_echo "$gl_cv_func_va_copy" >&6; } 26099 if test $gl_cv_func_va_copy = no; then 26100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26101/* end confdefs.h. */ 26102#if defined _AIX && !defined __GNUC__ 26103 AIX vaccine 26104 #endif 26105 26106_ACEOF 26107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26108 $EGREP "vaccine" >/dev/null 2>&1; then : 26109 gl_aixcc=yes 26110else 26111 gl_aixcc=no 26112fi 26113rm -f conftest* 26114 26115 if test $gl_aixcc = yes; then 26116 STDARG_H=stdarg.h 26117 26118 26119 26120 26121 26122 26123 26124 26125 if test $gl_cv_have_include_next = yes; then 26126 gl_cv_next_stdarg_h='<'stdarg.h'>' 26127 else 26128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5 26129$as_echo_n "checking absolute name of <stdarg.h>... " >&6; } 26130if ${gl_cv_next_stdarg_h+:} false; then : 26131 $as_echo_n "(cached) " >&6 26132else 26133 26134 26135 26136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26137/* end confdefs.h. */ 26138#include <stdarg.h> 26139_ACEOF 26140 case "$host_os" in 26141 aix*) gl_absname_cpp="$ac_cpp -C" ;; 26142 *) gl_absname_cpp="$ac_cpp" ;; 26143 esac 26144 26145 case "$host_os" in 26146 mingw*) 26147 gl_dirsep_regex='[/\\]' 26148 ;; 26149 *) 26150 gl_dirsep_regex='\/' 26151 ;; 26152 esac 26153 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 26154 gl_header_literal_regex=`echo 'stdarg.h' \ 26155 | sed -e "$gl_make_literal_regex_sed"` 26156 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 26157 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 26158 s|^/[^/]|//&| 26159 p 26160 q 26161 }' 26162 26163 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 26164 sed -n "$gl_absolute_header_sed"` 26165 26166 gl_header=$gl_cv_absolute_stdarg_h 26167 gl_cv_next_stdarg_h='"'$gl_header'"' 26168 26169 26170fi 26171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5 26172$as_echo "$gl_cv_next_stdarg_h" >&6; } 26173 fi 26174 NEXT_STDARG_H=$gl_cv_next_stdarg_h 26175 26176 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 26177 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 26178 gl_next_as_first_directive='<'stdarg.h'>' 26179 else 26180 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 26181 gl_next_as_first_directive=$gl_cv_next_stdarg_h 26182 fi 26183 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive 26184 26185 26186 26187 26188 if test "$gl_cv_next_stdarg_h" = '""'; then 26189 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' 26190 NEXT_STDARG_H="$gl_cv_next_stdarg_h" 26191 fi 26192 else 26193 26194 saved_as_echo_n="$as_echo_n" 26195 as_echo_n=':' 26196 if ${gl_cv_func___va_copy+:} false; then : 26197 $as_echo_n "(cached) " >&6 26198else 26199 26200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26201/* end confdefs.h. */ 26202#include <stdarg.h> 26203int 26204main () 26205{ 26206 26207#ifndef __va_copy 26208error, bail out 26209#endif 26210 26211 ; 26212 return 0; 26213} 26214_ACEOF 26215if ac_fn_c_try_compile "$LINENO"; then : 26216 gl_cv_func___va_copy=yes 26217else 26218 gl_cv_func___va_copy=no 26219fi 26220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26221fi 26222 26223 as_echo_n="$saved_as_echo_n" 26224 26225 if test $gl_cv_func___va_copy = yes; then 26226 26227$as_echo "#define va_copy __va_copy" >>confdefs.h 26228 26229 else 26230 26231 26232$as_echo "#define va_copy gl_va_copy" >>confdefs.h 26233 26234 fi 26235 fi 26236 fi 26237 26238 if test -n "$STDARG_H"; then 26239 GL_GENERATE_STDARG_H_TRUE= 26240 GL_GENERATE_STDARG_H_FALSE='#' 26241else 26242 GL_GENERATE_STDARG_H_TRUE='#' 26243 GL_GENERATE_STDARG_H_FALSE= 26244fi 26245 26246 26247 26248 26249 26250 26251 STDDEF_H= 26252 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h> 26253 26254" 26255if test "x$ac_cv_type_max_align_t" = xyes; then : 26256 26257else 26258 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h 26259fi 26260 26261 if test $gt_cv_c_wchar_t = no; then 26262 HAVE_WCHAR_T=0 26263 STDDEF_H=stddef.h 26264 fi 26265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 26266$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } 26267if ${gl_cv_decl_null_works+:} false; then : 26268 $as_echo_n "(cached) " >&6 26269else 26270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26271/* end confdefs.h. */ 26272#include <stddef.h> 26273 int test[2 * (sizeof NULL == sizeof (void *)) -1]; 26274 26275int 26276main () 26277{ 26278 26279 ; 26280 return 0; 26281} 26282_ACEOF 26283if ac_fn_c_try_compile "$LINENO"; then : 26284 gl_cv_decl_null_works=yes 26285else 26286 gl_cv_decl_null_works=no 26287fi 26288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26289fi 26290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 26291$as_echo "$gl_cv_decl_null_works" >&6; } 26292 if test $gl_cv_decl_null_works = no; then 26293 REPLACE_NULL=1 26294 STDDEF_H=stddef.h 26295 fi 26296 26297 if test -n "$STDDEF_H"; then 26298 GL_GENERATE_STDDEF_H_TRUE= 26299 GL_GENERATE_STDDEF_H_FALSE='#' 26300else 26301 GL_GENERATE_STDDEF_H_TRUE='#' 26302 GL_GENERATE_STDDEF_H_FALSE= 26303fi 26304 26305 if test -n "$STDDEF_H"; then 26306 26307 26308 26309 26310 26311 26312 26313 26314 if test $gl_cv_have_include_next = yes; then 26315 gl_cv_next_stddef_h='<'stddef.h'>' 26316 else 26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 26318$as_echo_n "checking absolute name of <stddef.h>... " >&6; } 26319if ${gl_cv_next_stddef_h+:} false; then : 26320 $as_echo_n "(cached) " >&6 26321else 26322 26323 26324 26325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26326/* end confdefs.h. */ 26327#include <stddef.h> 26328_ACEOF 26329 case "$host_os" in 26330 aix*) gl_absname_cpp="$ac_cpp -C" ;; 26331 *) gl_absname_cpp="$ac_cpp" ;; 26332 esac 26333 26334 case "$host_os" in 26335 mingw*) 26336 gl_dirsep_regex='[/\\]' 26337 ;; 26338 *) 26339 gl_dirsep_regex='\/' 26340 ;; 26341 esac 26342 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 26343 gl_header_literal_regex=`echo 'stddef.h' \ 26344 | sed -e "$gl_make_literal_regex_sed"` 26345 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 26346 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 26347 s|^/[^/]|//&| 26348 p 26349 q 26350 }' 26351 26352 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 26353 sed -n "$gl_absolute_header_sed"` 26354 26355 gl_header=$gl_cv_absolute_stddef_h 26356 gl_cv_next_stddef_h='"'$gl_header'"' 26357 26358 26359fi 26360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 26361$as_echo "$gl_cv_next_stddef_h" >&6; } 26362 fi 26363 NEXT_STDDEF_H=$gl_cv_next_stddef_h 26364 26365 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 26366 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 26367 gl_next_as_first_directive='<'stddef.h'>' 26368 else 26369 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 26370 gl_next_as_first_directive=$gl_cv_next_stddef_h 26371 fi 26372 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive 26373 26374 26375 26376 26377 fi 26378 26379 26380 26381 26382 26383 26384 26385 26386 26387 26388 26389 26390 26391 if test $gl_cv_have_include_next = yes; then 26392 gl_cv_next_stdio_h='<'stdio.h'>' 26393 else 26394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5 26395$as_echo_n "checking absolute name of <stdio.h>... " >&6; } 26396if ${gl_cv_next_stdio_h+:} false; then : 26397 $as_echo_n "(cached) " >&6 26398else 26399 26400 26401 26402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26403/* end confdefs.h. */ 26404#include <stdio.h> 26405_ACEOF 26406 case "$host_os" in 26407 aix*) gl_absname_cpp="$ac_cpp -C" ;; 26408 *) gl_absname_cpp="$ac_cpp" ;; 26409 esac 26410 26411 case "$host_os" in 26412 mingw*) 26413 gl_dirsep_regex='[/\\]' 26414 ;; 26415 *) 26416 gl_dirsep_regex='\/' 26417 ;; 26418 esac 26419 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 26420 gl_header_literal_regex=`echo 'stdio.h' \ 26421 | sed -e "$gl_make_literal_regex_sed"` 26422 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 26423 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 26424 s|^/[^/]|//&| 26425 p 26426 q 26427 }' 26428 26429 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 26430 sed -n "$gl_absolute_header_sed"` 26431 26432 gl_header=$gl_cv_absolute_stdio_h 26433 gl_cv_next_stdio_h='"'$gl_header'"' 26434 26435 26436fi 26437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 26438$as_echo "$gl_cv_next_stdio_h" >&6; } 26439 fi 26440 NEXT_STDIO_H=$gl_cv_next_stdio_h 26441 26442 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 26443 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 26444 gl_next_as_first_directive='<'stdio.h'>' 26445 else 26446 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 26447 gl_next_as_first_directive=$gl_cv_next_stdio_h 26448 fi 26449 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive 26450 26451 26452 26453 26454 26455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5 26456$as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; } 26457if ${gl_cv_func_printf_attribute_flavor+:} false; then : 26458 $as_echo_n "(cached) " >&6 26459else 26460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26461/* end confdefs.h. */ 26462 26463 #define __STDC_FORMAT_MACROS 1 26464 #include <stdio.h> 26465 #include <inttypes.h> 26466 /* For non-mingw systems, compilation will trivially succeed. 26467 For mingw, compilation will succeed for older mingw (system 26468 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */ 26469 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \ 26470 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) 26471 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1]; 26472 #endif 26473 26474int 26475main () 26476{ 26477 26478 ; 26479 return 0; 26480} 26481_ACEOF 26482if ac_fn_c_try_compile "$LINENO"; then : 26483 gl_cv_func_printf_attribute_flavor=system 26484else 26485 gl_cv_func_printf_attribute_flavor=gnu 26486fi 26487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26488fi 26489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5 26490$as_echo "$gl_cv_func_printf_attribute_flavor" >&6; } 26491 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then 26492 26493$as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h 26494 26495 fi 26496 26497 GNULIB_FSCANF=1 26498 26499 26500cat >>confdefs.h <<_ACEOF 26501#define GNULIB_FSCANF 1 26502_ACEOF 26503 26504 26505 GNULIB_SCANF=1 26506 26507 26508cat >>confdefs.h <<_ACEOF 26509#define GNULIB_SCANF 1 26510_ACEOF 26511 26512 26513 GNULIB_FGETC=1 26514 GNULIB_GETC=1 26515 GNULIB_GETCHAR=1 26516 GNULIB_FGETS=1 26517 GNULIB_FREAD=1 26518 26519 26520 GNULIB_FPRINTF=1 26521 GNULIB_PRINTF=1 26522 GNULIB_VFPRINTF=1 26523 GNULIB_VPRINTF=1 26524 GNULIB_FPUTC=1 26525 GNULIB_PUTC=1 26526 GNULIB_PUTCHAR=1 26527 GNULIB_FPUTS=1 26528 GNULIB_PUTS=1 26529 GNULIB_FWRITE=1 26530 26531 26532 26533 26534 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do 26535 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 26536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 26537$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 26538if eval \${$as_gl_Symbol+:} false; then : 26539 $as_echo_n "(cached) " >&6 26540else 26541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26542/* end confdefs.h. */ 26543#include <stdio.h> 26544 26545int 26546main () 26547{ 26548#undef $gl_func 26549 (void) $gl_func; 26550 ; 26551 return 0; 26552} 26553_ACEOF 26554if ac_fn_c_try_compile "$LINENO"; then : 26555 eval "$as_gl_Symbol=yes" 26556else 26557 eval "$as_gl_Symbol=no" 26558fi 26559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26560fi 26561eval ac_res=\$$as_gl_Symbol 26562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 26563$as_echo "$ac_res" >&6; } 26564 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 26565 cat >>confdefs.h <<_ACEOF 26566#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 26567_ACEOF 26568 26569 eval ac_cv_have_decl_$gl_func=yes 26570fi 26571 done 26572 26573 26574 26575 26576 26577 26578 26579 26580 26581 26582 26583 26584 if test $gl_cv_have_include_next = yes; then 26585 gl_cv_next_stdlib_h='<'stdlib.h'>' 26586 else 26587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 26588$as_echo_n "checking absolute name of <stdlib.h>... " >&6; } 26589if ${gl_cv_next_stdlib_h+:} false; then : 26590 $as_echo_n "(cached) " >&6 26591else 26592 26593 26594 26595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26596/* end confdefs.h. */ 26597#include <stdlib.h> 26598_ACEOF 26599 case "$host_os" in 26600 aix*) gl_absname_cpp="$ac_cpp -C" ;; 26601 *) gl_absname_cpp="$ac_cpp" ;; 26602 esac 26603 26604 case "$host_os" in 26605 mingw*) 26606 gl_dirsep_regex='[/\\]' 26607 ;; 26608 *) 26609 gl_dirsep_regex='\/' 26610 ;; 26611 esac 26612 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 26613 gl_header_literal_regex=`echo 'stdlib.h' \ 26614 | sed -e "$gl_make_literal_regex_sed"` 26615 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 26616 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 26617 s|^/[^/]|//&| 26618 p 26619 q 26620 }' 26621 26622 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 26623 sed -n "$gl_absolute_header_sed"` 26624 26625 gl_header=$gl_cv_absolute_stdlib_h 26626 gl_cv_next_stdlib_h='"'$gl_header'"' 26627 26628 26629fi 26630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 26631$as_echo "$gl_cv_next_stdlib_h" >&6; } 26632 fi 26633 NEXT_STDLIB_H=$gl_cv_next_stdlib_h 26634 26635 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 26636 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 26637 gl_next_as_first_directive='<'stdlib.h'>' 26638 else 26639 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 26640 gl_next_as_first_directive=$gl_cv_next_stdlib_h 26641 fi 26642 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive 26643 26644 26645 26646 26647 26648 26649 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do 26650 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 26651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 26652$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 26653if eval \${$as_gl_Symbol+:} false; then : 26654 $as_echo_n "(cached) " >&6 26655else 26656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26657/* end confdefs.h. */ 26658#include <stdlib.h> 26659#if HAVE_SYS_LOADAVG_H 26660# include <sys/loadavg.h> 26661#endif 26662#if HAVE_RANDOM_H 26663# include <random.h> 26664#endif 26665 26666int 26667main () 26668{ 26669#undef $gl_func 26670 (void) $gl_func; 26671 ; 26672 return 0; 26673} 26674_ACEOF 26675if ac_fn_c_try_compile "$LINENO"; then : 26676 eval "$as_gl_Symbol=yes" 26677else 26678 eval "$as_gl_Symbol=no" 26679fi 26680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26681fi 26682eval ac_res=\$$as_gl_Symbol 26683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 26684$as_echo "$ac_res" >&6; } 26685 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 26686 cat >>confdefs.h <<_ACEOF 26687#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 26688_ACEOF 26689 26690 eval ac_cv_have_decl_$gl_func=yes 26691fi 26692 done 26693 26694 26695 26696 26697 26698 26699 26700 26701 26702 26703 26704 26705 26706 26707 : 26708 26709 26710 26711 26712 26713 26714 26715 26716 if test $gl_cv_have_include_next = yes; then 26717 gl_cv_next_sys_file_h='<'sys/file.h'>' 26718 else 26719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/file.h>" >&5 26720$as_echo_n "checking absolute name of <sys/file.h>... " >&6; } 26721if ${gl_cv_next_sys_file_h+:} false; then : 26722 $as_echo_n "(cached) " >&6 26723else 26724 26725 if test $ac_cv_header_sys_file_h = yes; then 26726 26727 26728 26729 26730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26731/* end confdefs.h. */ 26732#include <sys/file.h> 26733_ACEOF 26734 case "$host_os" in 26735 aix*) gl_absname_cpp="$ac_cpp -C" ;; 26736 *) gl_absname_cpp="$ac_cpp" ;; 26737 esac 26738 26739 case "$host_os" in 26740 mingw*) 26741 gl_dirsep_regex='[/\\]' 26742 ;; 26743 *) 26744 gl_dirsep_regex='\/' 26745 ;; 26746 esac 26747 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 26748 gl_header_literal_regex=`echo 'sys/file.h' \ 26749 | sed -e "$gl_make_literal_regex_sed"` 26750 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 26751 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 26752 s|^/[^/]|//&| 26753 p 26754 q 26755 }' 26756 26757 gl_cv_absolute_sys_file_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 26758 sed -n "$gl_absolute_header_sed"` 26759 26760 gl_header=$gl_cv_absolute_sys_file_h 26761 gl_cv_next_sys_file_h='"'$gl_header'"' 26762 else 26763 gl_cv_next_sys_file_h='<'sys/file.h'>' 26764 fi 26765 26766 26767fi 26768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_file_h" >&5 26769$as_echo "$gl_cv_next_sys_file_h" >&6; } 26770 fi 26771 NEXT_SYS_FILE_H=$gl_cv_next_sys_file_h 26772 26773 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 26774 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 26775 gl_next_as_first_directive='<'sys/file.h'>' 26776 else 26777 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 26778 gl_next_as_first_directive=$gl_cv_next_sys_file_h 26779 fi 26780 NEXT_AS_FIRST_DIRECTIVE_SYS_FILE_H=$gl_next_as_first_directive 26781 26782 26783 26784 26785 26786 if test $ac_cv_header_sys_file_h = yes; then 26787 HAVE_SYS_FILE_H=1 26788 else 26789 HAVE_SYS_FILE_H=0 26790 fi 26791 26792 26793 26794 for gl_func in flock; do 26795 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 26796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 26797$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 26798if eval \${$as_gl_Symbol+:} false; then : 26799 $as_echo_n "(cached) " >&6 26800else 26801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26802/* end confdefs.h. */ 26803#include <sys/file.h> 26804 26805int 26806main () 26807{ 26808#undef $gl_func 26809 (void) $gl_func; 26810 ; 26811 return 0; 26812} 26813_ACEOF 26814if ac_fn_c_try_compile "$LINENO"; then : 26815 eval "$as_gl_Symbol=yes" 26816else 26817 eval "$as_gl_Symbol=no" 26818fi 26819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26820fi 26821eval ac_res=\$$as_gl_Symbol 26822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 26823$as_echo "$ac_res" >&6; } 26824 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 26825 cat >>confdefs.h <<_ACEOF 26826#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 26827_ACEOF 26828 26829 eval ac_cv_have_decl_$gl_func=yes 26830fi 26831 done 26832 26833 26834 26835 26836 26837 26838 26839 26840 26841 26842 26843 26844 26845 26846 : 26847 26848 26849 26850 26851 26852 26853 26854 26855 if test $gl_cv_have_include_next = yes; then 26856 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 26857 else 26858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 26859$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } 26860if ${gl_cv_next_sys_stat_h+:} false; then : 26861 $as_echo_n "(cached) " >&6 26862else 26863 26864 if test $ac_cv_header_sys_stat_h = yes; then 26865 26866 26867 26868 26869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26870/* end confdefs.h. */ 26871#include <sys/stat.h> 26872_ACEOF 26873 case "$host_os" in 26874 aix*) gl_absname_cpp="$ac_cpp -C" ;; 26875 *) gl_absname_cpp="$ac_cpp" ;; 26876 esac 26877 26878 case "$host_os" in 26879 mingw*) 26880 gl_dirsep_regex='[/\\]' 26881 ;; 26882 *) 26883 gl_dirsep_regex='\/' 26884 ;; 26885 esac 26886 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 26887 gl_header_literal_regex=`echo 'sys/stat.h' \ 26888 | sed -e "$gl_make_literal_regex_sed"` 26889 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 26890 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 26891 s|^/[^/]|//&| 26892 p 26893 q 26894 }' 26895 26896 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 26897 sed -n "$gl_absolute_header_sed"` 26898 26899 gl_header=$gl_cv_absolute_sys_stat_h 26900 gl_cv_next_sys_stat_h='"'$gl_header'"' 26901 else 26902 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 26903 fi 26904 26905 26906fi 26907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 26908$as_echo "$gl_cv_next_sys_stat_h" >&6; } 26909 fi 26910 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h 26911 26912 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 26913 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 26914 gl_next_as_first_directive='<'sys/stat.h'>' 26915 else 26916 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 26917 gl_next_as_first_directive=$gl_cv_next_sys_stat_h 26918 fi 26919 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive 26920 26921 26922 26923 26924 26925 26926 26927 26928 26929 26930 26931 if test $WINDOWS_64_BIT_ST_SIZE = 1; then 26932 26933$as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h 26934 26935 fi 26936 26937 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> 26938 #include <sys/stat.h> 26939" 26940if test "x$ac_cv_type_nlink_t" = xyes; then : 26941 26942else 26943 26944$as_echo "#define nlink_t int" >>confdefs.h 26945 26946fi 26947 26948 26949 26950 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do 26951 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 26952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 26953$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 26954if eval \${$as_gl_Symbol+:} false; then : 26955 $as_echo_n "(cached) " >&6 26956else 26957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26958/* end confdefs.h. */ 26959#include <sys/stat.h> 26960 26961int 26962main () 26963{ 26964#undef $gl_func 26965 (void) $gl_func; 26966 ; 26967 return 0; 26968} 26969_ACEOF 26970if ac_fn_c_try_compile "$LINENO"; then : 26971 eval "$as_gl_Symbol=yes" 26972else 26973 eval "$as_gl_Symbol=no" 26974fi 26975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26976fi 26977eval ac_res=\$$as_gl_Symbol 26978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 26979$as_echo "$ac_res" >&6; } 26980 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 26981 cat >>confdefs.h <<_ACEOF 26982#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 26983_ACEOF 26984 26985 eval ac_cv_have_decl_$gl_func=yes 26986fi 26987 done 26988 26989 26990 26991 26992 26993 26994 26995 26996 26997 26998 26999 27000 27001 27002 27003 27004 27005 27006 : 27007 27008 27009 27010 27011 27012 27013 27014 27015 if test $gl_cv_have_include_next = yes; then 27016 gl_cv_next_sys_wait_h='<'sys/wait.h'>' 27017 else 27018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5 27019$as_echo_n "checking absolute name of <sys/wait.h>... " >&6; } 27020if ${gl_cv_next_sys_wait_h+:} false; then : 27021 $as_echo_n "(cached) " >&6 27022else 27023 27024 if test $ac_cv_header_sys_wait_h = yes; then 27025 27026 27027 27028 27029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27030/* end confdefs.h. */ 27031#include <sys/wait.h> 27032_ACEOF 27033 case "$host_os" in 27034 aix*) gl_absname_cpp="$ac_cpp -C" ;; 27035 *) gl_absname_cpp="$ac_cpp" ;; 27036 esac 27037 27038 case "$host_os" in 27039 mingw*) 27040 gl_dirsep_regex='[/\\]' 27041 ;; 27042 *) 27043 gl_dirsep_regex='\/' 27044 ;; 27045 esac 27046 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 27047 gl_header_literal_regex=`echo 'sys/wait.h' \ 27048 | sed -e "$gl_make_literal_regex_sed"` 27049 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 27050 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 27051 s|^/[^/]|//&| 27052 p 27053 q 27054 }' 27055 27056 gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 27057 sed -n "$gl_absolute_header_sed"` 27058 27059 gl_header=$gl_cv_absolute_sys_wait_h 27060 gl_cv_next_sys_wait_h='"'$gl_header'"' 27061 else 27062 gl_cv_next_sys_wait_h='<'sys/wait.h'>' 27063 fi 27064 27065 27066fi 27067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5 27068$as_echo "$gl_cv_next_sys_wait_h" >&6; } 27069 fi 27070 NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h 27071 27072 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 27073 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 27074 gl_next_as_first_directive='<'sys/wait.h'>' 27075 else 27076 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 27077 gl_next_as_first_directive=$gl_cv_next_sys_wait_h 27078 fi 27079 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive 27080 27081 27082 27083 27084 27085 27086 27087 27088 for gl_func in waitpid; do 27089 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 27090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 27091$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 27092if eval \${$as_gl_Symbol+:} false; then : 27093 $as_echo_n "(cached) " >&6 27094else 27095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27096/* end confdefs.h. */ 27097#include <sys/wait.h> 27098int 27099main () 27100{ 27101#undef $gl_func 27102 (void) $gl_func; 27103 ; 27104 return 0; 27105} 27106_ACEOF 27107if ac_fn_c_try_compile "$LINENO"; then : 27108 eval "$as_gl_Symbol=yes" 27109else 27110 eval "$as_gl_Symbol=no" 27111fi 27112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27113fi 27114eval ac_res=\$$as_gl_Symbol 27115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 27116$as_echo "$ac_res" >&6; } 27117 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 27118 cat >>confdefs.h <<_ACEOF 27119#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 27120_ACEOF 27121 27122 eval ac_cv_have_decl_$gl_func=yes 27123fi 27124 done 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 : 27141 27142 27143 27144 27145 27146 27147 27148 27149 if test $gl_cv_have_include_next = yes; then 27150 gl_cv_next_unistd_h='<'unistd.h'>' 27151 else 27152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 27153$as_echo_n "checking absolute name of <unistd.h>... " >&6; } 27154if ${gl_cv_next_unistd_h+:} false; then : 27155 $as_echo_n "(cached) " >&6 27156else 27157 27158 if test $ac_cv_header_unistd_h = yes; then 27159 27160 27161 27162 27163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27164/* end confdefs.h. */ 27165#include <unistd.h> 27166_ACEOF 27167 case "$host_os" in 27168 aix*) gl_absname_cpp="$ac_cpp -C" ;; 27169 *) gl_absname_cpp="$ac_cpp" ;; 27170 esac 27171 27172 case "$host_os" in 27173 mingw*) 27174 gl_dirsep_regex='[/\\]' 27175 ;; 27176 *) 27177 gl_dirsep_regex='\/' 27178 ;; 27179 esac 27180 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 27181 gl_header_literal_regex=`echo 'unistd.h' \ 27182 | sed -e "$gl_make_literal_regex_sed"` 27183 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 27184 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 27185 s|^/[^/]|//&| 27186 p 27187 q 27188 }' 27189 27190 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 27191 sed -n "$gl_absolute_header_sed"` 27192 27193 gl_header=$gl_cv_absolute_unistd_h 27194 gl_cv_next_unistd_h='"'$gl_header'"' 27195 else 27196 gl_cv_next_unistd_h='<'unistd.h'>' 27197 fi 27198 27199 27200fi 27201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 27202$as_echo "$gl_cv_next_unistd_h" >&6; } 27203 fi 27204 NEXT_UNISTD_H=$gl_cv_next_unistd_h 27205 27206 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 27207 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 27208 gl_next_as_first_directive='<'unistd.h'>' 27209 else 27210 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 27211 gl_next_as_first_directive=$gl_cv_next_unistd_h 27212 fi 27213 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive 27214 27215 27216 27217 27218 if test $ac_cv_header_unistd_h = yes; then 27219 HAVE_UNISTD_H=1 27220 else 27221 HAVE_UNISTD_H=0 27222 fi 27223 27224 27225 27226 27227 27228 27229 27230 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do 27231 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 27232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 27233$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 27234if eval \${$as_gl_Symbol+:} false; then : 27235 $as_echo_n "(cached) " >&6 27236else 27237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27238/* end confdefs.h. */ 27239 27240#if HAVE_UNISTD_H 27241# include <unistd.h> 27242#endif 27243/* Some systems declare various items in the wrong headers. */ 27244#if !(defined __GLIBC__ && !defined __UCLIBC__) 27245# include <fcntl.h> 27246# include <stdio.h> 27247# include <stdlib.h> 27248# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 27249# include <io.h> 27250# endif 27251#endif 27252 27253int 27254main () 27255{ 27256#undef $gl_func 27257 (void) $gl_func; 27258 ; 27259 return 0; 27260} 27261_ACEOF 27262if ac_fn_c_try_compile "$LINENO"; then : 27263 eval "$as_gl_Symbol=yes" 27264else 27265 eval "$as_gl_Symbol=no" 27266fi 27267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27268fi 27269eval ac_res=\$$as_gl_Symbol 27270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 27271$as_echo "$ac_res" >&6; } 27272 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 27273 cat >>confdefs.h <<_ACEOF 27274#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 27275_ACEOF 27276 27277 eval ac_cv_have_decl_$gl_func=yes 27278fi 27279 done 27280 27281 27282 27283 27284 : 27285 27286 27287 27288 27289 27290 27291 # End of code from modules 27292 27293 27294 27295 27296 27297 27298 27299 27300 27301 gltests_libdeps= 27302 gltests_ltlibdeps= 27303 27304 27305 27306 27307 27308 27309 27310 27311 27312 gl_source_base='gl/tests' 27313 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS 27314 27315 gl_module_indicator_condition=$gltests_WITNESS 27316 27317 27318 27319$as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h 27320 27321 27322 27323 27324 27325 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 27326 REPLACE_DUP=1 27327 fi 27328 27329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5 27330$as_echo_n "checking whether dup works... " >&6; } 27331if ${gl_cv_func_dup_works+:} false; then : 27332 $as_echo_n "(cached) " >&6 27333else 27334 if test "$cross_compiling" = yes; then : 27335 gl_cv_func_dup_works='guessing yes' 27336else 27337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27338/* end confdefs.h. */ 27339#include <unistd.h> 27340 #include <fcntl.h> 27341 #include <errno.h> 27342int 27343main () 27344{ 27345/* On OS/2 kLIBC, dup does not work on a directory fd. */ 27346 int fd = open (".", O_RDONLY); 27347 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0; 27348 27349 ; 27350 return 0; 27351} 27352 27353_ACEOF 27354if ac_fn_c_try_run "$LINENO"; then : 27355 gl_cv_func_dup_works=yes 27356else 27357 gl_cv_func_dup_works=no 27358fi 27359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27360 conftest.$ac_objext conftest.beam conftest.$ac_ext 27361fi 27362 27363 27364fi 27365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5 27366$as_echo "$gl_cv_func_dup_works" >&6; } 27367 case "$gl_cv_func_dup_works" in 27368 *yes) ;; 27369 *) 27370 REPLACE_DUP=1 27371 ;; 27372 esac 27373 27374 if test $REPLACE_DUP = 1; then 27375 27376 27377 27378 27379 27380 27381 27382 27383 gltests_LIBOBJS="$gltests_LIBOBJS dup.$ac_objext" 27384 27385 : 27386 fi 27387 27388 27389 27390 27391 27392 if test "$GNULIB_DUP" != 1; then 27393 if test "$GNULIB_DUP" = 0; then 27394 GNULIB_DUP=$gl_module_indicator_condition 27395 else 27396 GNULIB_DUP="($GNULIB_DUP || $gl_module_indicator_condition)" 27397 fi 27398 fi 27399 27400 27401 27402 27403 27404$as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h 27405 27406 27407 27408 27409 27410cat >>confdefs.h <<_ACEOF 27411#define GNULIB_FD_SAFER_FLAG $gl_module_indicator_condition 27412_ACEOF 27413 27414 27415 27416 27417 27418 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 27419 REPLACE_FDOPEN=1 27420 else 27421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5 27422$as_echo_n "checking whether fdopen sets errno... " >&6; } 27423if ${gl_cv_func_fdopen_works+:} false; then : 27424 $as_echo_n "(cached) " >&6 27425else 27426 27427 if test "$cross_compiling" = yes; then : 27428 case "$host_os" in 27429 mingw*) gl_cv_func_fdopen_works="guessing no" ;; 27430 *) gl_cv_func_fdopen_works="guessing yes" ;; 27431 esac 27432 27433else 27434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27435/* end confdefs.h. */ 27436 27437#include <stdio.h> 27438#include <errno.h> 27439int 27440main (void) 27441{ 27442 FILE *fp; 27443 errno = 0; 27444 fp = fdopen (-1, "r"); 27445 if (fp == NULL && errno == 0) 27446 return 1; 27447 return 0; 27448} 27449_ACEOF 27450if ac_fn_c_try_run "$LINENO"; then : 27451 gl_cv_func_fdopen_works=yes 27452else 27453 gl_cv_func_fdopen_works=no 27454fi 27455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27456 conftest.$ac_objext conftest.beam conftest.$ac_ext 27457fi 27458 27459 27460fi 27461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5 27462$as_echo "$gl_cv_func_fdopen_works" >&6; } 27463 case "$gl_cv_func_fdopen_works" in 27464 *no) REPLACE_FDOPEN=1 ;; 27465 esac 27466 fi 27467 27468 if test $REPLACE_FDOPEN = 1; then 27469 27470 27471 27472 27473 27474 27475 27476 27477 gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext" 27478 27479 27480 fi 27481 27482 27483 27484 27485 27486 if test "$GNULIB_FDOPEN" != 1; then 27487 if test "$GNULIB_FDOPEN" = 0; then 27488 GNULIB_FDOPEN=$gl_module_indicator_condition 27489 else 27490 GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)" 27491 fi 27492 fi 27493 27494 27495 27496 27497 27498$as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h 27499 27500 27501 27502 27503 27504 27505 27506 27507 27508 27509 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in 27510 *yes,yes) ;; 27511 *) 27512 REPLACE_GETCWD=1 27513 ;; 27514 esac 27515 27516 if test $REPLACE_GETCWD = 1; then 27517 27518 27519 27520 27521 27522 27523 27524 27525 gltests_LIBOBJS="$gltests_LIBOBJS getcwd-lgpl.$ac_objext" 27526 27527 fi 27528 27529 27530 27531 27532 27533 if test "$GNULIB_GETCWD" != 1; then 27534 if test "$GNULIB_GETCWD" = 0; then 27535 GNULIB_GETCWD=$gl_module_indicator_condition 27536 else 27537 GNULIB_GETCWD="($GNULIB_GETCWD || $gl_module_indicator_condition)" 27538 fi 27539 fi 27540 27541 27542 27543 27544 27545$as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h 27546 27547 27548 27549 27550 27551 27552 27553 27554 PRIPTR_PREFIX= 27555 if test -n "$STDINT_H"; then 27556 PRIPTR_PREFIX='"l"' 27557 else 27558 for glpfx in '' l ll I64; do 27559 case $glpfx in 27560 '') gltype1='int';; 27561 l) gltype1='long int';; 27562 ll) gltype1='long long int';; 27563 I64) gltype1='__int64';; 27564 esac 27565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27566/* end confdefs.h. */ 27567#include <stdint.h> 27568 extern intptr_t foo; 27569 extern $gltype1 foo; 27570int 27571main () 27572{ 27573 27574 ; 27575 return 0; 27576} 27577_ACEOF 27578if ac_fn_c_try_compile "$LINENO"; then : 27579 PRIPTR_PREFIX='"'$glpfx'"' 27580fi 27581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27582 test -n "$PRIPTR_PREFIX" && break 27583 done 27584 fi 27585 27586 27587 27588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5 27589$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; } 27590if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then : 27591 $as_echo_n "(cached) " >&6 27592else 27593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27594/* end confdefs.h. */ 27595/* Work also in C++ mode. */ 27596 #define __STDC_LIMIT_MACROS 1 27597 27598 /* Work if build is not clean. */ 27599 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 27600 27601 #include <limits.h> 27602 #if HAVE_STDINT_H 27603 #include <stdint.h> 27604 #endif 27605 27606 #if defined INT32_MAX && defined INTMAX_MAX 27607 #define CONDITION (INT32_MAX < INTMAX_MAX) 27608 #elif HAVE_LONG_LONG_INT 27609 #define CONDITION (sizeof (int) < sizeof (long long int)) 27610 #else 27611 #define CONDITION 0 27612 #endif 27613 int test[CONDITION ? 1 : -1]; 27614int 27615main () 27616{ 27617 27618 ; 27619 return 0; 27620} 27621_ACEOF 27622if ac_fn_c_try_compile "$LINENO"; then : 27623 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes 27624else 27625 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no 27626fi 27627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27628fi 27629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5 27630$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; } 27631 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then 27632 INT32_MAX_LT_INTMAX_MAX=1; 27633 else 27634 INT32_MAX_LT_INTMAX_MAX=0; 27635 fi 27636 27637 27638 if test $APPLE_UNIVERSAL_BUILD = 0; then 27639 27640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5 27641$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; } 27642if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then : 27643 $as_echo_n "(cached) " >&6 27644else 27645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27646/* end confdefs.h. */ 27647/* Work also in C++ mode. */ 27648 #define __STDC_LIMIT_MACROS 1 27649 27650 /* Work if build is not clean. */ 27651 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 27652 27653 #include <limits.h> 27654 #if HAVE_STDINT_H 27655 #include <stdint.h> 27656 #endif 27657 27658 #if defined INT64_MAX 27659 #define CONDITION (INT64_MAX == LONG_MAX) 27660 #elif HAVE_LONG_LONG_INT 27661 #define CONDITION (sizeof (long long int) == sizeof (long int)) 27662 #else 27663 #define CONDITION 0 27664 #endif 27665 int test[CONDITION ? 1 : -1]; 27666int 27667main () 27668{ 27669 27670 ; 27671 return 0; 27672} 27673_ACEOF 27674if ac_fn_c_try_compile "$LINENO"; then : 27675 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes 27676else 27677 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no 27678fi 27679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27680fi 27681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5 27682$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; } 27683 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then 27684 INT64_MAX_EQ_LONG_MAX=1; 27685 else 27686 INT64_MAX_EQ_LONG_MAX=0; 27687 fi 27688 27689 27690 else 27691 INT64_MAX_EQ_LONG_MAX=-1 27692 fi 27693 27694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5 27695$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; } 27696if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then : 27697 $as_echo_n "(cached) " >&6 27698else 27699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27700/* end confdefs.h. */ 27701/* Work also in C++ mode. */ 27702 #define __STDC_LIMIT_MACROS 1 27703 27704 /* Work if build is not clean. */ 27705 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 27706 27707 #include <limits.h> 27708 #if HAVE_STDINT_H 27709 #include <stdint.h> 27710 #endif 27711 27712 #if defined UINT32_MAX && defined UINTMAX_MAX 27713 #define CONDITION (UINT32_MAX < UINTMAX_MAX) 27714 #elif HAVE_LONG_LONG_INT 27715 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int)) 27716 #else 27717 #define CONDITION 0 27718 #endif 27719 int test[CONDITION ? 1 : -1]; 27720int 27721main () 27722{ 27723 27724 ; 27725 return 0; 27726} 27727_ACEOF 27728if ac_fn_c_try_compile "$LINENO"; then : 27729 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes 27730else 27731 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no 27732fi 27733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27734fi 27735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5 27736$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; } 27737 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then 27738 UINT32_MAX_LT_UINTMAX_MAX=1; 27739 else 27740 UINT32_MAX_LT_UINTMAX_MAX=0; 27741 fi 27742 27743 27744 if test $APPLE_UNIVERSAL_BUILD = 0; then 27745 27746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5 27747$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; } 27748if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then : 27749 $as_echo_n "(cached) " >&6 27750else 27751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27752/* end confdefs.h. */ 27753/* Work also in C++ mode. */ 27754 #define __STDC_LIMIT_MACROS 1 27755 27756 /* Work if build is not clean. */ 27757 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 27758 27759 #include <limits.h> 27760 #if HAVE_STDINT_H 27761 #include <stdint.h> 27762 #endif 27763 27764 #if defined UINT64_MAX 27765 #define CONDITION (UINT64_MAX == ULONG_MAX) 27766 #elif HAVE_LONG_LONG_INT 27767 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int)) 27768 #else 27769 #define CONDITION 0 27770 #endif 27771 int test[CONDITION ? 1 : -1]; 27772int 27773main () 27774{ 27775 27776 ; 27777 return 0; 27778} 27779_ACEOF 27780if ac_fn_c_try_compile "$LINENO"; then : 27781 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes 27782else 27783 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no 27784fi 27785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27786fi 27787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5 27788$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; } 27789 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then 27790 UINT64_MAX_EQ_ULONG_MAX=1; 27791 else 27792 UINT64_MAX_EQ_ULONG_MAX=0; 27793 fi 27794 27795 27796 else 27797 UINT64_MAX_EQ_ULONG_MAX=-1 27798 fi 27799 27800 27801 27802 27803 27804 27805 : 27806 27807 27808 27809 27810 27811 if test $ac_cv_func_lstat = yes; then 27812 27813 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in 27814 *no) 27815 REPLACE_LSTAT=1 27816 ;; 27817 esac 27818 else 27819 HAVE_LSTAT=0 27820 fi 27821 27822 if test $REPLACE_LSTAT = 1; then 27823 27824 27825 27826 27827 27828 27829 27830 27831 gltests_LIBOBJS="$gltests_LIBOBJS lstat.$ac_objext" 27832 27833 : 27834 fi 27835 27836 27837 27838 27839 27840 if test "$GNULIB_LSTAT" != 1; then 27841 if test "$GNULIB_LSTAT" = 0; then 27842 GNULIB_LSTAT=$gl_module_indicator_condition 27843 else 27844 GNULIB_LSTAT="($GNULIB_LSTAT || $gl_module_indicator_condition)" 27845 fi 27846 fi 27847 27848 27849 27850 27851 27852$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h 27853 27854 27855 27856 27857 27858 27859 case "$host_os" in 27860 mingw* | pw*) 27861 REPLACE_OPEN=1 27862 ;; 27863 *) 27864 27865 : 27866 27867 27868 27869 27870 27871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5 27872$as_echo_n "checking whether open recognizes a trailing slash... " >&6; } 27873if ${gl_cv_func_open_slash+:} false; then : 27874 $as_echo_n "(cached) " >&6 27875else 27876 # Assume that if we have lstat, we can also check symlinks. 27877 if test $ac_cv_func_lstat = yes; then 27878 touch conftest.tmp 27879 ln -s conftest.tmp conftest.lnk 27880 fi 27881 if test "$cross_compiling" = yes; then : 27882 27883 case "$host_os" in 27884 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) 27885 gl_cv_func_open_slash="guessing no" ;; 27886 *) 27887 gl_cv_func_open_slash="guessing yes" ;; 27888 esac 27889 27890else 27891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27892/* end confdefs.h. */ 27893 27894#include <fcntl.h> 27895#if HAVE_UNISTD_H 27896# include <unistd.h> 27897#endif 27898int main () 27899{ 27900 int result = 0; 27901#if HAVE_LSTAT 27902 if (open ("conftest.lnk/", O_RDONLY) != -1) 27903 result |= 1; 27904#endif 27905 if (open ("conftest.sl/", O_CREAT, 0600) >= 0) 27906 result |= 2; 27907 return result; 27908} 27909_ACEOF 27910if ac_fn_c_try_run "$LINENO"; then : 27911 gl_cv_func_open_slash=yes 27912else 27913 gl_cv_func_open_slash=no 27914fi 27915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27916 conftest.$ac_objext conftest.beam conftest.$ac_ext 27917fi 27918 27919 rm -f conftest.sl conftest.tmp conftest.lnk 27920 27921fi 27922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5 27923$as_echo "$gl_cv_func_open_slash" >&6; } 27924 case "$gl_cv_func_open_slash" in 27925 *no) 27926 27927$as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h 27928 27929 REPLACE_OPEN=1 27930 ;; 27931 esac 27932 ;; 27933 esac 27934 27935 27936 27937 if test $REPLACE_OPEN = 1; then 27938 27939 27940 27941 27942 27943 27944 27945 27946 gltests_LIBOBJS="$gltests_LIBOBJS open.$ac_objext" 27947 27948 27949 27950 : 27951 27952 fi 27953 27954 27955 27956 27957 27958 if test "$GNULIB_OPEN" != 1; then 27959 if test "$GNULIB_OPEN" = 0; then 27960 GNULIB_OPEN=$gl_module_indicator_condition 27961 else 27962 GNULIB_OPEN="($GNULIB_OPEN || $gl_module_indicator_condition)" 27963 fi 27964 fi 27965 27966 27967 27968 27969 27970$as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h 27971 27972 27973 27974 27975 27976 : 27977 27978 27979 27980 27981 27982 27983 27984 27985 27986 : 27987 27988 27989 27990 27991 27992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5 27993$as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; } 27994if ${gl_cv_func_stat_dir_slash+:} false; then : 27995 $as_echo_n "(cached) " >&6 27996else 27997 if test "$cross_compiling" = yes; then : 27998 case $host_os in 27999 mingw*) gl_cv_func_stat_dir_slash="guessing no";; 28000 *) gl_cv_func_stat_dir_slash="guessing yes";; 28001 esac 28002else 28003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28004/* end confdefs.h. */ 28005#include <sys/stat.h> 28006 28007int 28008main () 28009{ 28010struct stat st; return stat (".", &st) != stat ("./", &st); 28011 ; 28012 return 0; 28013} 28014_ACEOF 28015if ac_fn_c_try_run "$LINENO"; then : 28016 gl_cv_func_stat_dir_slash=yes 28017else 28018 gl_cv_func_stat_dir_slash=no 28019fi 28020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28021 conftest.$ac_objext conftest.beam conftest.$ac_ext 28022fi 28023 28024fi 28025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5 28026$as_echo "$gl_cv_func_stat_dir_slash" >&6; } 28027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 28028$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; } 28029if ${gl_cv_func_stat_file_slash+:} false; then : 28030 $as_echo_n "(cached) " >&6 28031else 28032 touch conftest.tmp 28033 # Assume that if we have lstat, we can also check symlinks. 28034 if test $ac_cv_func_lstat = yes; then 28035 ln -s conftest.tmp conftest.lnk 28036 fi 28037 if test "$cross_compiling" = yes; then : 28038 case "$host_os" in 28039 # Guess yes on glibc systems. 28040 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;; 28041 # If we don't know, assume the worst. 28042 *) gl_cv_func_stat_file_slash="guessing no" ;; 28043 esac 28044 28045else 28046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28047/* end confdefs.h. */ 28048#include <sys/stat.h> 28049 28050int 28051main () 28052{ 28053int result = 0; 28054 struct stat st; 28055 if (!stat ("conftest.tmp/", &st)) 28056 result |= 1; 28057#if HAVE_LSTAT 28058 if (!stat ("conftest.lnk/", &st)) 28059 result |= 2; 28060#endif 28061 return result; 28062 28063 ; 28064 return 0; 28065} 28066_ACEOF 28067if ac_fn_c_try_run "$LINENO"; then : 28068 gl_cv_func_stat_file_slash=yes 28069else 28070 gl_cv_func_stat_file_slash=no 28071fi 28072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28073 conftest.$ac_objext conftest.beam conftest.$ac_ext 28074fi 28075 28076 rm -f conftest.tmp conftest.lnk 28077fi 28078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 28079$as_echo "$gl_cv_func_stat_file_slash" >&6; } 28080 case $gl_cv_func_stat_dir_slash in 28081 *no) REPLACE_STAT=1 28082 28083$as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h 28084;; 28085 esac 28086 case $gl_cv_func_stat_file_slash in 28087 *no) REPLACE_STAT=1 28088 28089$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h 28090;; 28091 esac 28092 28093 if test $REPLACE_STAT = 1; then 28094 28095 28096 28097 28098 28099 28100 28101 28102 gltests_LIBOBJS="$gltests_LIBOBJS stat.$ac_objext" 28103 28104 : 28105 fi 28106 28107 28108 28109 28110 28111 if test "$GNULIB_STAT" != 1; then 28112 if test "$GNULIB_STAT" = 0; then 28113 GNULIB_STAT=$gl_module_indicator_condition 28114 else 28115 GNULIB_STAT="($GNULIB_STAT || $gl_module_indicator_condition)" 28116 fi 28117 fi 28118 28119 28120 28121 28122 28123$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h 28124 28125 28126 28127 28128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5 28129$as_echo_n "checking for working stdalign.h... " >&6; } 28130if ${gl_cv_header_working_stdalign_h+:} false; then : 28131 $as_echo_n "(cached) " >&6 28132else 28133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28134/* end confdefs.h. */ 28135#include <stdalign.h> 28136 #include <stddef.h> 28137 28138 /* Test that alignof yields a result consistent with offsetof. 28139 This catches GCC bug 52023 28140 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */ 28141 #ifdef __cplusplus 28142 template <class t> struct alignof_helper { char a; t b; }; 28143 # define ao(type) offsetof (alignof_helper<type>, b) 28144 #else 28145 # define ao(type) offsetof (struct { char a; type b; }, b) 28146 #endif 28147 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1]; 28148 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1]; 28149 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1]; 28150 28151 /* Test _Alignas only on platforms where gnulib can help. */ 28152 #if \ 28153 ((defined __cplusplus && 201103 <= __cplusplus) \ 28154 || (defined __APPLE__ && defined __MACH__ \ 28155 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \ 28156 : __GNUC__) \ 28157 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \ 28158 || __ICC || 0x5110 <= __SUNPRO_C \ 28159 || 1300 <= _MSC_VER) 28160 struct alignas_test { char c; char alignas (8) alignas_8; }; 28161 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8 28162 ? 1 : -1]; 28163 #endif 28164 28165int 28166main () 28167{ 28168 28169 ; 28170 return 0; 28171} 28172_ACEOF 28173if ac_fn_c_try_compile "$LINENO"; then : 28174 gl_cv_header_working_stdalign_h=yes 28175else 28176 gl_cv_header_working_stdalign_h=no 28177fi 28178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28179fi 28180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5 28181$as_echo "$gl_cv_header_working_stdalign_h" >&6; } 28182 28183 if test $gl_cv_header_working_stdalign_h = yes; then 28184 STDALIGN_H='' 28185 else 28186 STDALIGN_H='stdalign.h' 28187 fi 28188 28189 28190 if test -n "$STDALIGN_H"; then 28191 GL_GENERATE_STDALIGN_H_TRUE= 28192 GL_GENERATE_STDALIGN_H_FALSE='#' 28193else 28194 GL_GENERATE_STDALIGN_H_TRUE='#' 28195 GL_GENERATE_STDALIGN_H_FALSE= 28196fi 28197 28198 28199 28200 28201 28202 # Define two additional variables used in the Makefile substitution. 28203 28204 if test "$ac_cv_header_stdbool_h" = yes; then 28205 STDBOOL_H='' 28206 else 28207 STDBOOL_H='stdbool.h' 28208 fi 28209 28210 if test -n "$STDBOOL_H"; then 28211 GL_GENERATE_STDBOOL_H_TRUE= 28212 GL_GENERATE_STDBOOL_H_FALSE='#' 28213else 28214 GL_GENERATE_STDBOOL_H_TRUE='#' 28215 GL_GENERATE_STDBOOL_H_FALSE= 28216fi 28217 28218 28219 if test "$ac_cv_type__Bool" = yes; then 28220 HAVE__BOOL=1 28221 else 28222 HAVE__BOOL=0 28223 fi 28224 28225 28226 28227 28228 28229 28230 28231 28232 : 28233 28234 28235 28236 28237 28238 if test $ac_cv_func_symlink = no; then 28239 HAVE_SYMLINK=0 28240 else 28241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5 28242$as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; } 28243if ${gl_cv_func_symlink_works+:} false; then : 28244 $as_echo_n "(cached) " >&6 28245else 28246 if test "$cross_compiling" = yes; then : 28247 case "$host_os" in 28248 # Guess yes on glibc systems. 28249 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;; 28250 # If we don't know, assume the worst. 28251 *) gl_cv_func_symlink_works="guessing no" ;; 28252 esac 28253 28254else 28255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28256/* end confdefs.h. */ 28257#include <unistd.h> 28258 28259int 28260main () 28261{ 28262int result = 0; 28263 if (!symlink ("a", "conftest.link/")) 28264 result |= 1; 28265 if (symlink ("conftest.f", "conftest.lnk2")) 28266 result |= 2; 28267 else if (!symlink ("a", "conftest.lnk2/")) 28268 result |= 4; 28269 return result; 28270 28271 ; 28272 return 0; 28273} 28274_ACEOF 28275if ac_fn_c_try_run "$LINENO"; then : 28276 gl_cv_func_symlink_works=yes 28277else 28278 gl_cv_func_symlink_works=no 28279fi 28280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28281 conftest.$ac_objext conftest.beam conftest.$ac_ext 28282fi 28283 28284 rm -f conftest.f conftest.link conftest.lnk2 28285fi 28286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5 28287$as_echo "$gl_cv_func_symlink_works" >&6; } 28288 case "$gl_cv_func_symlink_works" in 28289 *yes) ;; 28290 *) 28291 REPLACE_SYMLINK=1 28292 ;; 28293 esac 28294 fi 28295 28296 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then 28297 28298 28299 28300 28301 28302 28303 28304 28305 gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext" 28306 28307 fi 28308 28309 28310 28311 28312 28313 if test "$GNULIB_SYMLINK" != 1; then 28314 if test "$GNULIB_SYMLINK" = 0; then 28315 GNULIB_SYMLINK=$gl_module_indicator_condition 28316 else 28317 GNULIB_SYMLINK="($GNULIB_SYMLINK || $gl_module_indicator_condition)" 28318 fi 28319 fi 28320 28321 28322 28323 28324 28325$as_echo "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h 28326 28327 28328 28329 abs_aux_dir=`cd "$ac_aux_dir"; pwd` 28330 28331 abs_aux_dir=`cd "$ac_aux_dir"; pwd` 28332 28333 28334 28335 28336 28337 28338 28339 28340 28341 28342 : 28343 28344 28345 28346 28347 28348 28349 28350 28351 if test $gl_cv_have_include_next = yes; then 28352 gl_cv_next_wchar_h='<'wchar.h'>' 28353 else 28354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5 28355$as_echo_n "checking absolute name of <wchar.h>... " >&6; } 28356if ${gl_cv_next_wchar_h+:} false; then : 28357 $as_echo_n "(cached) " >&6 28358else 28359 28360 if test $ac_cv_header_wchar_h = yes; then 28361 28362 28363 28364 28365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28366/* end confdefs.h. */ 28367#include <wchar.h> 28368_ACEOF 28369 case "$host_os" in 28370 aix*) gl_absname_cpp="$ac_cpp -C" ;; 28371 *) gl_absname_cpp="$ac_cpp" ;; 28372 esac 28373 28374 case "$host_os" in 28375 mingw*) 28376 gl_dirsep_regex='[/\\]' 28377 ;; 28378 *) 28379 gl_dirsep_regex='\/' 28380 ;; 28381 esac 28382 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 28383 gl_header_literal_regex=`echo 'wchar.h' \ 28384 | sed -e "$gl_make_literal_regex_sed"` 28385 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 28386 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 28387 s|^/[^/]|//&| 28388 p 28389 q 28390 }' 28391 28392 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 28393 sed -n "$gl_absolute_header_sed"` 28394 28395 gl_header=$gl_cv_absolute_wchar_h 28396 gl_cv_next_wchar_h='"'$gl_header'"' 28397 else 28398 gl_cv_next_wchar_h='<'wchar.h'>' 28399 fi 28400 28401 28402fi 28403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 28404$as_echo "$gl_cv_next_wchar_h" >&6; } 28405 fi 28406 NEXT_WCHAR_H=$gl_cv_next_wchar_h 28407 28408 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 28409 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 28410 gl_next_as_first_directive='<'wchar.h'>' 28411 else 28412 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 28413 gl_next_as_first_directive=$gl_cv_next_wchar_h 28414 fi 28415 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive 28416 28417 28418 28419 28420 if test $ac_cv_header_wchar_h = yes; then 28421 HAVE_WCHAR_H=1 28422 else 28423 HAVE_WCHAR_H=0 28424 fi 28425 28426 28427 28428 28429 28430 if test $gt_cv_c_wint_t = yes; then 28431 HAVE_WINT_T=1 28432 else 28433 HAVE_WINT_T=0 28434 fi 28435 28436 28437 28438 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do 28439 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 28440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 28441$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 28442if eval \${$as_gl_Symbol+:} false; then : 28443 $as_echo_n "(cached) " >&6 28444else 28445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28446/* end confdefs.h. */ 28447 28448/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 28449 <wchar.h>. 28450 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 28451 included before <wchar.h>. */ 28452#if !(defined __GLIBC__ && !defined __UCLIBC__) 28453# include <stddef.h> 28454# include <stdio.h> 28455# include <time.h> 28456#endif 28457#include <wchar.h> 28458 28459int 28460main () 28461{ 28462#undef $gl_func 28463 (void) $gl_func; 28464 ; 28465 return 0; 28466} 28467_ACEOF 28468if ac_fn_c_try_compile "$LINENO"; then : 28469 eval "$as_gl_Symbol=yes" 28470else 28471 eval "$as_gl_Symbol=no" 28472fi 28473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28474fi 28475eval ac_res=\$$as_gl_Symbol 28476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 28477$as_echo "$ac_res" >&6; } 28478 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 28479 cat >>confdefs.h <<_ACEOF 28480#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 28481_ACEOF 28482 28483 eval ac_cv_have_decl_$gl_func=yes 28484fi 28485 done 28486 28487 28488 28489 28490 28491 28492 28493 28494 28495 28496 28497 28498 LIBTESTS_LIBDEPS="$gltests_libdeps" 28499 28500 28501 28502 28503 28504 28505 28506 28507# Extract the first word of "uname", so it can be a program name with args. 28508set dummy uname; ac_word=$2 28509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28510$as_echo_n "checking for $ac_word... " >&6; } 28511if ${ac_cv_path_UNAME+:} false; then : 28512 $as_echo_n "(cached) " >&6 28513else 28514 case $UNAME in 28515 [\\/]* | ?:[\\/]*) 28516 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 28517 ;; 28518 *) 28519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28520for as_dir in $PATH 28521do 28522 IFS=$as_save_IFS 28523 test -z "$as_dir" && as_dir=. 28524 for ac_exec_ext in '' $ac_executable_extensions; do 28525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28526 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 28527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28528 break 2 28529 fi 28530done 28531 done 28532IFS=$as_save_IFS 28533 28534 test -z "$ac_cv_path_UNAME" && ac_cv_path_UNAME="/bin/uname" 28535 ;; 28536esac 28537fi 28538UNAME=$ac_cv_path_UNAME 28539if test -n "$UNAME"; then 28540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 28541$as_echo "$UNAME" >&6; } 28542else 28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28544$as_echo "no" >&6; } 28545fi 28546 28547 28548# Extract the first word of "pr", so it can be a program name with args. 28549set dummy pr; ac_word=$2 28550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28551$as_echo_n "checking for $ac_word... " >&6; } 28552if ${ac_cv_path_PR+:} false; then : 28553 $as_echo_n "(cached) " >&6 28554else 28555 case $PR in 28556 [\\/]* | ?:[\\/]*) 28557 ac_cv_path_PR="$PR" # Let the user override the test with a path. 28558 ;; 28559 *) 28560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28561for as_dir in $PATH 28562do 28563 IFS=$as_save_IFS 28564 test -z "$as_dir" && as_dir=. 28565 for ac_exec_ext in '' $ac_executable_extensions; do 28566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28567 ac_cv_path_PR="$as_dir/$ac_word$ac_exec_ext" 28568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28569 break 2 28570 fi 28571done 28572 done 28573IFS=$as_save_IFS 28574 28575 test -z "$ac_cv_path_PR" && ac_cv_path_PR="/usr/bin/pr" 28576 ;; 28577esac 28578fi 28579PR=$ac_cv_path_PR 28580if test -n "$PR"; then 28581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PR" >&5 28582$as_echo "$PR" >&6; } 28583else 28584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28585$as_echo "no" >&6; } 28586fi 28587 28588 28589# Extract the first word of "diff", so it can be a program name with args. 28590set dummy diff; ac_word=$2 28591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28592$as_echo_n "checking for $ac_word... " >&6; } 28593if ${ac_cv_path_CONFIG_DIFF_COMMAND+:} false; then : 28594 $as_echo_n "(cached) " >&6 28595else 28596 case $CONFIG_DIFF_COMMAND in 28597 [\\/]* | ?:[\\/]*) 28598 ac_cv_path_CONFIG_DIFF_COMMAND="$CONFIG_DIFF_COMMAND" # Let the user override the test with a path. 28599 ;; 28600 *) 28601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28602for as_dir in $PATH 28603do 28604 IFS=$as_save_IFS 28605 test -z "$as_dir" && as_dir=. 28606 for ac_exec_ext in '' $ac_executable_extensions; do 28607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28608 ac_cv_path_CONFIG_DIFF_COMMAND="$as_dir/$ac_word$ac_exec_ext" 28609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28610 break 2 28611 fi 28612done 28613 done 28614IFS=$as_save_IFS 28615 28616 test -z "$ac_cv_path_CONFIG_DIFF_COMMAND" && ac_cv_path_CONFIG_DIFF_COMMAND="/usr/bin/diff" 28617 ;; 28618esac 28619fi 28620CONFIG_DIFF_COMMAND=$ac_cv_path_CONFIG_DIFF_COMMAND 28621if test -n "$CONFIG_DIFF_COMMAND"; then 28622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_DIFF_COMMAND" >&5 28623$as_echo "$CONFIG_DIFF_COMMAND" >&6; } 28624else 28625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28626$as_echo "no" >&6; } 28627fi 28628 28629 28630 28631cat >>confdefs.h <<_ACEOF 28632#define CONFIG_DIFF_COMMAND "$ac_cv_path_CONFIG_DIFF_COMMAND" 28633_ACEOF 28634 28635 28636 28637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU diff" >&5 28638$as_echo_n "checking for GNU diff... " >&6; } 28639if $ac_cv_path_CONFIG_DIFF_COMMAND --version 2>/dev/null | grep "GNU diff" >/dev/null 28640then 28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28642$as_echo "yes" >&6; } 28643 28644cat >>confdefs.h <<_ACEOF 28645#define HAVE_GNU_DIFF 1 28646_ACEOF 28647 28648else 28649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28650$as_echo "no" >&6; } 28651fi 28652 28653 28654## 28655## Search for something we can use to decompress a .Z file. 28656## 28657# Extract the first word of "uncompress", so it can be a program name with args. 28658set dummy uncompress; ac_word=$2 28659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28660$as_echo_n "checking for $ac_word... " >&6; } 28661if ${ac_cv_prog_ZCAT_PROGRAM+:} false; then : 28662 $as_echo_n "(cached) " >&6 28663else 28664 if test -n "$ZCAT_PROGRAM"; then 28665 ac_cv_prog_ZCAT_PROGRAM="$ZCAT_PROGRAM" # Let the user override the test. 28666else 28667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28668for as_dir in $PATH 28669do 28670 IFS=$as_save_IFS 28671 test -z "$as_dir" && as_dir=. 28672 for ac_exec_ext in '' $ac_executable_extensions; do 28673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28674 ac_cv_prog_ZCAT_PROGRAM="uncompress" 28675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28676 break 2 28677 fi 28678done 28679 done 28680IFS=$as_save_IFS 28681 28682fi 28683fi 28684ZCAT_PROGRAM=$ac_cv_prog_ZCAT_PROGRAM 28685if test -n "$ZCAT_PROGRAM"; then 28686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZCAT_PROGRAM" >&5 28687$as_echo "$ZCAT_PROGRAM" >&6; } 28688else 28689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28690$as_echo "no" >&6; } 28691fi 28692 28693 28694if test "$ZCAT_PROGRAM" = "" 28695then 28696 # Extract the first word of "compress", so it can be a program name with args. 28697set dummy compress; ac_word=$2 28698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28699$as_echo_n "checking for $ac_word... " >&6; } 28700if ${ac_cv_prog_ZCAT_PROGRAM+:} false; then : 28701 $as_echo_n "(cached) " >&6 28702else 28703 if test -n "$ZCAT_PROGRAM"; then 28704 ac_cv_prog_ZCAT_PROGRAM="$ZCAT_PROGRAM" # Let the user override the test. 28705else 28706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28707for as_dir in $PATH 28708do 28709 IFS=$as_save_IFS 28710 test -z "$as_dir" && as_dir=. 28711 for ac_exec_ext in '' $ac_executable_extensions; do 28712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28713 ac_cv_prog_ZCAT_PROGRAM="compress -d" 28714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28715 break 2 28716 fi 28717done 28718 done 28719IFS=$as_save_IFS 28720 28721fi 28722fi 28723ZCAT_PROGRAM=$ac_cv_prog_ZCAT_PROGRAM 28724if test -n "$ZCAT_PROGRAM"; then 28725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZCAT_PROGRAM" >&5 28726$as_echo "$ZCAT_PROGRAM" >&6; } 28727else 28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28729$as_echo "no" >&6; } 28730fi 28731 28732 28733fi 28734if test "$ZCAT_PROGRAM" = "" 28735then 28736 # Extract the first word of "gzip", so it can be a program name with args. 28737set dummy gzip; ac_word=$2 28738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28739$as_echo_n "checking for $ac_word... " >&6; } 28740if ${ac_cv_prog_ZCAT_PROGRAM+:} false; then : 28741 $as_echo_n "(cached) " >&6 28742else 28743 if test -n "$ZCAT_PROGRAM"; then 28744 ac_cv_prog_ZCAT_PROGRAM="$ZCAT_PROGRAM" # Let the user override the test. 28745else 28746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28747for as_dir in $PATH 28748do 28749 IFS=$as_save_IFS 28750 test -z "$as_dir" && as_dir=. 28751 for ac_exec_ext in '' $ac_executable_extensions; do 28752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28753 ac_cv_prog_ZCAT_PROGRAM="gzip -d" 28754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28755 break 2 28756 fi 28757done 28758 done 28759IFS=$as_save_IFS 28760 28761fi 28762fi 28763ZCAT_PROGRAM=$ac_cv_prog_ZCAT_PROGRAM 28764if test -n "$ZCAT_PROGRAM"; then 28765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZCAT_PROGRAM" >&5 28766$as_echo "$ZCAT_PROGRAM" >&6; } 28767else 28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28769$as_echo "no" >&6; } 28770fi 28771 28772 28773fi 28774if test "$ZCAT_PROGRAM" = "" 28775then 28776 # Extract the first word of "zcat", so it can be a program name with args. 28777set dummy zcat; ac_word=$2 28778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28779$as_echo_n "checking for $ac_word... " >&6; } 28780if ${ac_cv_prog_ZCAT_PROGRAM+:} false; then : 28781 $as_echo_n "(cached) " >&6 28782else 28783 if test -n "$ZCAT_PROGRAM"; then 28784 ac_cv_prog_ZCAT_PROGRAM="$ZCAT_PROGRAM" # Let the user override the test. 28785else 28786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28787for as_dir in $PATH 28788do 28789 IFS=$as_save_IFS 28790 test -z "$as_dir" && as_dir=. 28791 for ac_exec_ext in '' $ac_executable_extensions; do 28792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28793 ac_cv_prog_ZCAT_PROGRAM="zcat" 28794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28795 break 2 28796 fi 28797done 28798 done 28799IFS=$as_save_IFS 28800 28801fi 28802fi 28803ZCAT_PROGRAM=$ac_cv_prog_ZCAT_PROGRAM 28804if test -n "$ZCAT_PROGRAM"; then 28805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZCAT_PROGRAM" >&5 28806$as_echo "$ZCAT_PROGRAM" >&6; } 28807else 28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28809$as_echo "no" >&6; } 28810fi 28811 28812 28813fi 28814if test "$ZCAT_PROGRAM" = "" 28815then 28816 # Extract the first word of "gunzip", so it can be a program name with args. 28817set dummy gunzip; ac_word=$2 28818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28819$as_echo_n "checking for $ac_word... " >&6; } 28820if ${ac_cv_prog_ZCAT_PROGRAM+:} false; then : 28821 $as_echo_n "(cached) " >&6 28822else 28823 if test -n "$ZCAT_PROGRAM"; then 28824 ac_cv_prog_ZCAT_PROGRAM="$ZCAT_PROGRAM" # Let the user override the test. 28825else 28826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28827for as_dir in $PATH 28828do 28829 IFS=$as_save_IFS 28830 test -z "$as_dir" && as_dir=. 28831 for ac_exec_ext in '' $ac_executable_extensions; do 28832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28833 ac_cv_prog_ZCAT_PROGRAM="gunzip" 28834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28835 break 2 28836 fi 28837done 28838 done 28839IFS=$as_save_IFS 28840 28841fi 28842fi 28843ZCAT_PROGRAM=$ac_cv_prog_ZCAT_PROGRAM 28844if test -n "$ZCAT_PROGRAM"; then 28845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZCAT_PROGRAM" >&5 28846$as_echo "$ZCAT_PROGRAM" >&6; } 28847else 28848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28849$as_echo "no" >&6; } 28850fi 28851 28852 28853fi 28854 28855if test "$ZCAT_PROGRAM" = "" 28856then 28857echo 28858echo "WARNING: Cannot find a program that will decompress a compressed file." 28859echo "WARNING: This means that you cannot run the test suite, since some" 28860echo "WARNING: if the test input files in the test suite are provided" 28861echo "WARNING: compressed. The software should still compile." 28862echo "WARNING: " 28863echo "WARNING: If you have a command which will decompress a .Z file," 28864echo "WARNING: please set the variable ZCAT_PROGRAM and re-run configure." 28865echo 28866fi 28867 28868 28869# Check whether --with-valgrind was given. 28870if test "${with_valgrind+set}" = set; then : 28871 withval=$with_valgrind; with_valgrind=$withval 28872else 28873 with_valgrind=yes 28874fi 28875 28876if test "$with_valgrind" = yes; then 28877 # Most CSSC programs exit with status 1 when there is a problem, and 28878 # some of the regression tests check those cases. However, if valgrind 28879 # detects a problem, we need to exit with some other status so that 28880 # a test expecting an exit status of 1 will actually fail. 28881 # Extract the first word of "valgrind", so it can be a program name with args. 28882set dummy valgrind; ac_word=$2 28883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28884$as_echo_n "checking for $ac_word... " >&6; } 28885if ${ac_cv_prog_VALGRIND+:} false; then : 28886 $as_echo_n "(cached) " >&6 28887else 28888 if test -n "$VALGRIND"; then 28889 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test. 28890else 28891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28892for as_dir in $PATH 28893do 28894 IFS=$as_save_IFS 28895 test -z "$as_dir" && as_dir=. 28896 for ac_exec_ext in '' $ac_executable_extensions; do 28897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28898 ac_cv_prog_VALGRIND="valgrind -q --trace-children=yes --error-exitcode=10" 28899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28900 break 2 28901 fi 28902done 28903 done 28904IFS=$as_save_IFS 28905 28906fi 28907fi 28908VALGRIND=$ac_cv_prog_VALGRIND 28909if test -n "$VALGRIND"; then 28910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 28911$as_echo "$VALGRIND" >&6; } 28912else 28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28914$as_echo "no" >&6; } 28915fi 28916 28917 28918else 28919 VALGRIND="" 28920 28921fi 28922 28923 28924ac_ext=c 28925ac_cpp='$CPP $CPPFLAGS' 28926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28928ac_compiler_gnu=$ac_cv_c_compiler_gnu 28929 28930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 28931$as_echo_n "checking for ANSI C header files... " >&6; } 28932if ${ac_cv_header_stdc+:} false; then : 28933 $as_echo_n "(cached) " >&6 28934else 28935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28936/* end confdefs.h. */ 28937#include <stdlib.h> 28938#include <stdarg.h> 28939#include <string.h> 28940#include <float.h> 28941 28942int 28943main () 28944{ 28945 28946 ; 28947 return 0; 28948} 28949_ACEOF 28950if ac_fn_c_try_compile "$LINENO"; then : 28951 ac_cv_header_stdc=yes 28952else 28953 ac_cv_header_stdc=no 28954fi 28955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28956 28957if test $ac_cv_header_stdc = yes; then 28958 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 28959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28960/* end confdefs.h. */ 28961#include <string.h> 28962 28963_ACEOF 28964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28965 $EGREP "memchr" >/dev/null 2>&1; then : 28966 28967else 28968 ac_cv_header_stdc=no 28969fi 28970rm -f conftest* 28971 28972fi 28973 28974if test $ac_cv_header_stdc = yes; then 28975 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 28976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28977/* end confdefs.h. */ 28978#include <stdlib.h> 28979 28980_ACEOF 28981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28982 $EGREP "free" >/dev/null 2>&1; then : 28983 28984else 28985 ac_cv_header_stdc=no 28986fi 28987rm -f conftest* 28988 28989fi 28990 28991if test $ac_cv_header_stdc = yes; then 28992 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 28993 if test "$cross_compiling" = yes; then : 28994 : 28995else 28996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28997/* end confdefs.h. */ 28998#include <ctype.h> 28999#include <stdlib.h> 29000#if ((' ' & 0x0FF) == 0x020) 29001# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 29002# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 29003#else 29004# define ISLOWER(c) \ 29005 (('a' <= (c) && (c) <= 'i') \ 29006 || ('j' <= (c) && (c) <= 'r') \ 29007 || ('s' <= (c) && (c) <= 'z')) 29008# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 29009#endif 29010 29011#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 29012int 29013main () 29014{ 29015 int i; 29016 for (i = 0; i < 256; i++) 29017 if (XOR (islower (i), ISLOWER (i)) 29018 || toupper (i) != TOUPPER (i)) 29019 return 2; 29020 return 0; 29021} 29022_ACEOF 29023if ac_fn_c_try_run "$LINENO"; then : 29024 29025else 29026 ac_cv_header_stdc=no 29027fi 29028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29029 conftest.$ac_objext conftest.beam conftest.$ac_ext 29030fi 29031 29032fi 29033fi 29034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 29035$as_echo "$ac_cv_header_stdc" >&6; } 29036if test $ac_cv_header_stdc = yes; then 29037 29038$as_echo "#define STDC_HEADERS 1" >>confdefs.h 29039 29040fi 29041 29042 29043ac_ext=cpp 29044ac_cpp='$CXXCPP $CPPFLAGS' 29045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29048 29049echo "Start checking accessibility of C headers while compiling as C++" 29050 29051for ac_header in locale.h 29052do : 29053 ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 29054if test "x$ac_cv_header_locale_h" = xyes; then : 29055 cat >>confdefs.h <<_ACEOF 29056#define HAVE_LOCALE_H 1 29057_ACEOF 29058 29059fi 29060 29061done 29062 29063echo "Done checking accessibility of C headers while compiling as C++" 29064 29065for ac_header in prototypes.h io.h process.h pwd.h 29066do : 29067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29068ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29069if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29070 cat >>confdefs.h <<_ACEOF 29071#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29072_ACEOF 29073 29074fi 29075 29076done 29077 29078for ac_header in sys/param.h sys/types.h 29079do : 29080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29081ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29082if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29083 cat >>confdefs.h <<_ACEOF 29084#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29085_ACEOF 29086 29087fi 29088 29089done 29090 29091for ac_header in grp.h 29092do : 29093 ac_fn_cxx_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" 29094if test "x$ac_cv_header_grp_h" = xyes; then : 29095 cat >>confdefs.h <<_ACEOF 29096#define HAVE_GRP_H 1 29097_ACEOF 29098 29099fi 29100 29101done 29102 29103ac_header_dirent=no 29104for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 29105 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 29106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 29107$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 29108if eval \${$as_ac_Header+:} false; then : 29109 $as_echo_n "(cached) " >&6 29110else 29111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29112/* end confdefs.h. */ 29113#include <sys/types.h> 29114#include <$ac_hdr> 29115 29116int 29117main () 29118{ 29119if ((DIR *) 0) 29120return 0; 29121 ; 29122 return 0; 29123} 29124_ACEOF 29125if ac_fn_cxx_try_compile "$LINENO"; then : 29126 eval "$as_ac_Header=yes" 29127else 29128 eval "$as_ac_Header=no" 29129fi 29130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29131fi 29132eval ac_res=\$$as_ac_Header 29133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 29134$as_echo "$ac_res" >&6; } 29135if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29136 cat >>confdefs.h <<_ACEOF 29137#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 29138_ACEOF 29139 29140ac_header_dirent=$ac_hdr; break 29141fi 29142 29143done 29144# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 29145if test $ac_header_dirent = dirent.h; then 29146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 29147$as_echo_n "checking for library containing opendir... " >&6; } 29148if ${ac_cv_search_opendir+:} false; then : 29149 $as_echo_n "(cached) " >&6 29150else 29151 ac_func_search_save_LIBS=$LIBS 29152cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29153/* end confdefs.h. */ 29154 29155/* Override any GCC internal prototype to avoid an error. 29156 Use char because int might match the return type of a GCC 29157 builtin and then its argument prototype would still apply. */ 29158#ifdef __cplusplus 29159extern "C" 29160#endif 29161char opendir (); 29162int 29163main () 29164{ 29165return opendir (); 29166 ; 29167 return 0; 29168} 29169_ACEOF 29170for ac_lib in '' dir; do 29171 if test -z "$ac_lib"; then 29172 ac_res="none required" 29173 else 29174 ac_res=-l$ac_lib 29175 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29176 fi 29177 if ac_fn_cxx_try_link "$LINENO"; then : 29178 ac_cv_search_opendir=$ac_res 29179fi 29180rm -f core conftest.err conftest.$ac_objext \ 29181 conftest$ac_exeext 29182 if ${ac_cv_search_opendir+:} false; then : 29183 break 29184fi 29185done 29186if ${ac_cv_search_opendir+:} false; then : 29187 29188else 29189 ac_cv_search_opendir=no 29190fi 29191rm conftest.$ac_ext 29192LIBS=$ac_func_search_save_LIBS 29193fi 29194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 29195$as_echo "$ac_cv_search_opendir" >&6; } 29196ac_res=$ac_cv_search_opendir 29197if test "$ac_res" != no; then : 29198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29199 29200fi 29201 29202else 29203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 29204$as_echo_n "checking for library containing opendir... " >&6; } 29205if ${ac_cv_search_opendir+:} false; then : 29206 $as_echo_n "(cached) " >&6 29207else 29208 ac_func_search_save_LIBS=$LIBS 29209cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29210/* end confdefs.h. */ 29211 29212/* Override any GCC internal prototype to avoid an error. 29213 Use char because int might match the return type of a GCC 29214 builtin and then its argument prototype would still apply. */ 29215#ifdef __cplusplus 29216extern "C" 29217#endif 29218char opendir (); 29219int 29220main () 29221{ 29222return opendir (); 29223 ; 29224 return 0; 29225} 29226_ACEOF 29227for ac_lib in '' x; do 29228 if test -z "$ac_lib"; then 29229 ac_res="none required" 29230 else 29231 ac_res=-l$ac_lib 29232 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29233 fi 29234 if ac_fn_cxx_try_link "$LINENO"; then : 29235 ac_cv_search_opendir=$ac_res 29236fi 29237rm -f core conftest.err conftest.$ac_objext \ 29238 conftest$ac_exeext 29239 if ${ac_cv_search_opendir+:} false; then : 29240 break 29241fi 29242done 29243if ${ac_cv_search_opendir+:} false; then : 29244 29245else 29246 ac_cv_search_opendir=no 29247fi 29248rm conftest.$ac_ext 29249LIBS=$ac_func_search_save_LIBS 29250fi 29251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 29252$as_echo "$ac_cv_search_opendir" >&6; } 29253ac_res=$ac_cv_search_opendir 29254if test "$ac_res" != no; then : 29255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29256 29257fi 29258 29259fi 29260 29261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 29262$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 29263if ${ac_cv_header_sys_wait_h+:} false; then : 29264 $as_echo_n "(cached) " >&6 29265else 29266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29267/* end confdefs.h. */ 29268#include <sys/types.h> 29269#include <sys/wait.h> 29270#ifndef WEXITSTATUS 29271# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 29272#endif 29273#ifndef WIFEXITED 29274# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 29275#endif 29276 29277int 29278main () 29279{ 29280 int s; 29281 wait (&s); 29282 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 29283 ; 29284 return 0; 29285} 29286_ACEOF 29287if ac_fn_cxx_try_compile "$LINENO"; then : 29288 ac_cv_header_sys_wait_h=yes 29289else 29290 ac_cv_header_sys_wait_h=no 29291fi 29292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29293fi 29294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 29295$as_echo "$ac_cv_header_sys_wait_h" >&6; } 29296if test $ac_cv_header_sys_wait_h = yes; then 29297 29298$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 29299 29300fi 29301 29302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 29303$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 29304if ${ac_cv_header_stat_broken+:} false; then : 29305 $as_echo_n "(cached) " >&6 29306else 29307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29308/* end confdefs.h. */ 29309#include <sys/types.h> 29310#include <sys/stat.h> 29311 29312#if defined S_ISBLK && defined S_IFDIR 29313extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 29314#endif 29315 29316#if defined S_ISBLK && defined S_IFCHR 29317extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 29318#endif 29319 29320#if defined S_ISLNK && defined S_IFREG 29321extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 29322#endif 29323 29324#if defined S_ISSOCK && defined S_IFREG 29325extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 29326#endif 29327 29328_ACEOF 29329if ac_fn_cxx_try_compile "$LINENO"; then : 29330 ac_cv_header_stat_broken=no 29331else 29332 ac_cv_header_stat_broken=yes 29333fi 29334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29335fi 29336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 29337$as_echo "$ac_cv_header_stat_broken" >&6; } 29338if test $ac_cv_header_stat_broken = yes; then 29339 29340$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 29341 29342fi 29343 29344 29345for ac_header in string 29346do : 29347 ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default" 29348if test "x$ac_cv_header_string" = xyes; then : 29349 cat >>confdefs.h <<_ACEOF 29350#define HAVE_STRING 1 29351_ACEOF 29352 29353fi 29354 29355done 29356 29357 29358 29359 29360ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 29361if test "x$ac_cv_type_size_t" = xyes; then : 29362 29363else 29364 29365cat >>confdefs.h <<_ACEOF 29366#define size_t unsigned int 29367_ACEOF 29368 29369fi 29370 29371ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 29372if test "x$ac_cv_type_mode_t" = xyes; then : 29373 29374else 29375 29376cat >>confdefs.h <<_ACEOF 29377#define mode_t int 29378_ACEOF 29379 29380fi 29381 29382ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 29383if test "x$ac_cv_type_pid_t" = xyes; then : 29384 29385else 29386 29387cat >>confdefs.h <<_ACEOF 29388#define pid_t int 29389_ACEOF 29390 29391fi 29392 29393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 29394$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 29395if ${ac_cv_type_uid_t+:} false; then : 29396 $as_echo_n "(cached) " >&6 29397else 29398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29399/* end confdefs.h. */ 29400#include <sys/types.h> 29401 29402_ACEOF 29403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29404 $EGREP "uid_t" >/dev/null 2>&1; then : 29405 ac_cv_type_uid_t=yes 29406else 29407 ac_cv_type_uid_t=no 29408fi 29409rm -f conftest* 29410 29411fi 29412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 29413$as_echo "$ac_cv_type_uid_t" >&6; } 29414if test $ac_cv_type_uid_t = no; then 29415 29416$as_echo "#define uid_t int" >>confdefs.h 29417 29418 29419$as_echo "#define gid_t int" >>confdefs.h 29420 29421fi 29422 29423 29424 29425 29426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_SAVED_IDS" >&5 29427$as_echo_n "checking for _POSIX_SAVED_IDS... " >&6; } 29428if ${cssc_cv_sys_savedids_set+:} false; then : 29429 $as_echo_n "(cached) " >&6 29430else 29431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29432/* end confdefs.h. */ 29433 29434#include <unistd.h> 29435#ifdef _POSIX_SAVED_IDS 29436 yes 29437#endif 29438 29439_ACEOF 29440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29441 $EGREP "yes" >/dev/null 2>&1; then : 29442 cssc_cv_sys_savedids_set=yes 29443else 29444 cssc_cv_sys_savedids_set=no 29445 29446fi 29447rm -f conftest* 29448 29449fi 29450 29451if test "$cssc_cv_sys_savedids_set" = "yes"; then 29452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29453$as_echo "yes" >&6; } 29454 29455$as_echo "#define SAVED_IDS_OK 1" >>confdefs.h 29456 29457else 29458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29459$as_echo "no" >&6; } 29460fi 29461 29462 29463 29464ac_fn_cxx_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h> 29465/* NetBSD declares sys_siglist in unistd.h. */ 29466#ifdef HAVE_UNISTD_H 29467# include <unistd.h> 29468#endif 29469 29470" 29471if test "x$ac_cv_have_decl_sys_siglist" = xyes; then : 29472 ac_have_decl=1 29473else 29474 ac_have_decl=0 29475fi 29476 29477cat >>confdefs.h <<_ACEOF 29478#define HAVE_DECL_SYS_SIGLIST $ac_have_decl 29479_ACEOF 29480 29481 29482 29483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 29484$as_echo_n "checking return type of signal handlers... " >&6; } 29485if ${ac_cv_type_signal+:} false; then : 29486 $as_echo_n "(cached) " >&6 29487else 29488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29489/* end confdefs.h. */ 29490#include <sys/types.h> 29491#include <signal.h> 29492 29493int 29494main () 29495{ 29496return *(signal (0, 0)) (0) == 1; 29497 ; 29498 return 0; 29499} 29500_ACEOF 29501if ac_fn_cxx_try_compile "$LINENO"; then : 29502 ac_cv_type_signal=int 29503else 29504 ac_cv_type_signal=void 29505fi 29506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29507fi 29508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 29509$as_echo "$ac_cv_type_signal" >&6; } 29510 29511cat >>confdefs.h <<_ACEOF 29512#define RETSIGTYPE $ac_cv_type_signal 29513_ACEOF 29514 29515 29516 29517 29518for ac_func in abort wait 29519do : 29520 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 29521ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 29522if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 29523 cat >>confdefs.h <<_ACEOF 29524#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 29525_ACEOF 29526 29527fi 29528done 29529 29530 29531for ac_func in symlink readlink unsetenv fsetpos fileno fstat sysconf memchr 29532do : 29533 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 29534ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 29535if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 29536 cat >>confdefs.h <<_ACEOF 29537#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 29538_ACEOF 29539 29540fi 29541done 29542 29543for ac_func in stat getpwuid getlogin setreuid pipe spawn geteuid getegid 29544do : 29545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 29546ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 29547if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 29548 cat >>confdefs.h <<_ACEOF 29549#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 29550_ACEOF 29551 29552fi 29553done 29554 29555 29556 29557for ac_func in setgroups 29558do : 29559 ac_fn_cxx_check_func "$LINENO" "setgroups" "ac_cv_func_setgroups" 29560if test "x$ac_cv_func_setgroups" = xyes; then : 29561 cat >>confdefs.h <<_ACEOF 29562#define HAVE_SETGROUPS 1 29563_ACEOF 29564 29565fi 29566done 29567 29568 29569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AmigaOS target" >&5 29570$as_echo_n "checking for AmigaOS target... " >&6; } 29571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29572/* end confdefs.h. */ 29573#ifdef __amigaos__ 29574 yes 29575#endif 29576 29577_ACEOF 29578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29579 $EGREP "yes" >/dev/null 2>&1; then : 29580 is_amigaos=yes 29581else 29582 is_amigaos=no 29583fi 29584rm -f conftest* 29585 29586 29587if test $is_amigaos = yes 29588then 29589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: avoiding fork on AmigaOS" >&5 29590$as_echo "avoiding fork on AmigaOS" >&6; } 29591else 29592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29593$as_echo "no" >&6; } 29594 for ac_func in fork 29595do : 29596 ac_fn_cxx_check_func "$LINENO" "fork" "ac_cv_func_fork" 29597if test "x$ac_cv_func_fork" = xyes; then : 29598 cat >>confdefs.h <<_ACEOF 29599#define HAVE_FORK 1 29600_ACEOF 29601 29602fi 29603done 29604 29605fi 29606 29607 29608 29609 29610want_warnings=no 29611# Check whether --enable-warnings was given. 29612if test "${enable_warnings+set}" = set; then : 29613 enableval=$enable_warnings; want_warnings=$enableval 29614else 29615 want_warnings=no 29616fi 29617 29618 29619 29620 if test -n "$GCC"; then 29621 29622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5 29623$as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; } 29624 if ${gl_cv_cc_nomfi_supported+:} false; then : 29625 $as_echo_n "(cached) " >&6 29626else 29627 29628 gl_save_CFLAGS="$CFLAGS" 29629 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers" 29630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29631/* end confdefs.h. */ 29632 29633int 29634main () 29635{ 29636 29637 ; 29638 return 0; 29639} 29640_ACEOF 29641if ac_fn_cxx_try_compile "$LINENO"; then : 29642 gl_cv_cc_nomfi_supported=yes 29643else 29644 gl_cv_cc_nomfi_supported=no 29645fi 29646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29647 CFLAGS="$gl_save_CFLAGS" 29648fi 29649 29650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5 29651$as_echo "$gl_cv_cc_nomfi_supported" >&6; } 29652 29653 if test "$gl_cv_cc_nomfi_supported" = yes; then 29654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5 29655$as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; } 29656 if ${gl_cv_cc_nomfi_needed+:} false; then : 29657 $as_echo_n "(cached) " >&6 29658else 29659 29660 gl_save_CFLAGS="$CFLAGS" 29661 CFLAGS="$CFLAGS -W -Werror" 29662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29663/* end confdefs.h. */ 29664void f (void) 29665 { 29666 typedef struct { int a; int b; } s_t; 29667 s_t s1 = { 0, }; 29668 } 29669 29670int 29671main () 29672{ 29673 29674 ; 29675 return 0; 29676} 29677_ACEOF 29678if ac_fn_cxx_try_compile "$LINENO"; then : 29679 gl_cv_cc_nomfi_needed=no 29680else 29681 gl_cv_cc_nomfi_needed=yes 29682fi 29683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29684 CFLAGS="$gl_save_CFLAGS" 29685 29686fi 29687 29688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5 29689$as_echo "$gl_cv_cc_nomfi_needed" >&6; } 29690 fi 29691 29692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5 29693$as_echo_n "checking whether -Wuninitialized is supported... " >&6; } 29694 if ${gl_cv_cc_uninitialized_supported+:} false; then : 29695 $as_echo_n "(cached) " >&6 29696else 29697 29698 gl_save_CFLAGS="$CFLAGS" 29699 CFLAGS="$CFLAGS -Werror -Wuninitialized" 29700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29701/* end confdefs.h. */ 29702 29703int 29704main () 29705{ 29706 29707 ; 29708 return 0; 29709} 29710_ACEOF 29711if ac_fn_cxx_try_compile "$LINENO"; then : 29712 gl_cv_cc_uninitialized_supported=yes 29713else 29714 gl_cv_cc_uninitialized_supported=no 29715fi 29716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29717 CFLAGS="$gl_save_CFLAGS" 29718fi 29719 29720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5 29721$as_echo "$gl_cv_cc_uninitialized_supported" >&6; } 29722 29723 fi 29724 29725 # List all gcc warning categories. 29726 # To compare this list to your installed GCC's, run this Bash command: 29727 # 29728 # comm -3 \ 29729 # <(sed -n 's/^ *\(-[^ ]*\) .*/\1/p' manywarnings.m4 | sort) \ 29730 # <(gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort | 29731 # grep -v -x -f <( 29732 # awk '/^[^#]/ {print ALL_GCC_WARNINGS}' ../build-aux/gcc-warning.spec)) 29733 29734 gl_manywarn_set= 29735 for gl_manywarn_item in \ 29736 -W \ 29737 -Wabi \ 29738 -Waddress \ 29739 -Waggressive-loop-optimizations \ 29740 -Wall \ 29741 -Wattributes \ 29742 -Wbad-function-cast \ 29743 -Wbool-compare \ 29744 -Wbuiltin-macro-redefined \ 29745 -Wcast-align \ 29746 -Wchar-subscripts \ 29747 -Wchkp \ 29748 -Wclobbered \ 29749 -Wcomment \ 29750 -Wcomments \ 29751 -Wcoverage-mismatch \ 29752 -Wcpp \ 29753 -Wdate-time \ 29754 -Wdeprecated \ 29755 -Wdeprecated-declarations \ 29756 -Wdesignated-init \ 29757 -Wdisabled-optimization \ 29758 -Wdiscarded-array-qualifiers \ 29759 -Wdiscarded-qualifiers \ 29760 -Wdiv-by-zero \ 29761 -Wdouble-promotion \ 29762 -Wempty-body \ 29763 -Wendif-labels \ 29764 -Wenum-compare \ 29765 -Wextra \ 29766 -Wformat-contains-nul \ 29767 -Wformat-extra-args \ 29768 -Wformat-nonliteral \ 29769 -Wformat-security \ 29770 -Wformat-signedness \ 29771 -Wformat-y2k \ 29772 -Wformat-zero-length \ 29773 -Wfree-nonheap-object \ 29774 -Wignored-qualifiers \ 29775 -Wimplicit \ 29776 -Wimplicit-function-declaration \ 29777 -Wimplicit-int \ 29778 -Wincompatible-pointer-types \ 29779 -Winit-self \ 29780 -Winline \ 29781 -Wint-conversion \ 29782 -Wint-to-pointer-cast \ 29783 -Winvalid-memory-model \ 29784 -Winvalid-pch \ 29785 -Wjump-misses-init \ 29786 -Wlogical-not-parentheses \ 29787 -Wlogical-op \ 29788 -Wmain \ 29789 -Wmaybe-uninitialized \ 29790 -Wmemset-transposed-args \ 29791 -Wmissing-braces \ 29792 -Wmissing-declarations \ 29793 -Wmissing-field-initializers \ 29794 -Wmissing-include-dirs \ 29795 -Wmissing-parameter-type \ 29796 -Wmissing-prototypes \ 29797 -Wmultichar \ 29798 -Wnarrowing \ 29799 -Wnested-externs \ 29800 -Wnonnull \ 29801 -Wodr \ 29802 -Wold-style-declaration \ 29803 -Wold-style-definition \ 29804 -Wopenmp-simd \ 29805 -Woverflow \ 29806 -Woverlength-strings \ 29807 -Woverride-init \ 29808 -Wpacked \ 29809 -Wpacked-bitfield-compat \ 29810 -Wparentheses \ 29811 -Wpointer-arith \ 29812 -Wpointer-sign \ 29813 -Wpointer-to-int-cast \ 29814 -Wpragmas \ 29815 -Wreturn-local-addr \ 29816 -Wreturn-type \ 29817 -Wsequence-point \ 29818 -Wshadow \ 29819 -Wshift-count-negative \ 29820 -Wshift-count-overflow \ 29821 -Wsizeof-array-argument \ 29822 -Wsizeof-pointer-memaccess \ 29823 -Wstack-protector \ 29824 -Wstrict-aliasing \ 29825 -Wstrict-overflow \ 29826 -Wstrict-prototypes \ 29827 -Wsuggest-attribute=const \ 29828 -Wsuggest-attribute=format \ 29829 -Wsuggest-attribute=noreturn \ 29830 -Wsuggest-attribute=pure \ 29831 -Wsuggest-final-methods \ 29832 -Wsuggest-final-types \ 29833 -Wswitch \ 29834 -Wswitch-bool \ 29835 -Wswitch-default \ 29836 -Wsync-nand \ 29837 -Wsystem-headers \ 29838 -Wtrampolines \ 29839 -Wtrigraphs \ 29840 -Wtype-limits \ 29841 -Wuninitialized \ 29842 -Wunknown-pragmas \ 29843 -Wunsafe-loop-optimizations \ 29844 -Wunused \ 29845 -Wunused-but-set-parameter \ 29846 -Wunused-but-set-variable \ 29847 -Wunused-function \ 29848 -Wunused-label \ 29849 -Wunused-local-typedefs \ 29850 -Wunused-macros \ 29851 -Wunused-parameter \ 29852 -Wunused-result \ 29853 -Wunused-value \ 29854 -Wunused-variable \ 29855 -Wvarargs \ 29856 -Wvariadic-macros \ 29857 -Wvector-operation-performance \ 29858 -Wvla \ 29859 -Wvolatile-register-var \ 29860 -Wwrite-strings \ 29861 \ 29862 ; do 29863 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item" 29864 done 29865 29866 # gcc --help=warnings outputs an unusual form for these options; list 29867 # them here so that the above 'comm' command doesn't report a false match. 29868 gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2" 29869 gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc" 29870 29871 # These are needed for older GCC versions. 29872 if test -n "$GCC"; then 29873 case `($CC --version) 2>/dev/null` in 29874 'gcc (GCC) '[0-3].* | \ 29875 'gcc (GCC) '4.[0-7].*) 29876 gl_manywarn_set="$gl_manywarn_set -fdiagnostics-show-option" 29877 gl_manywarn_set="$gl_manywarn_set -funit-at-a-time" 29878 ;; 29879 esac 29880 fi 29881 29882 # Disable specific options as needed. 29883 if test "$gl_cv_cc_nomfi_needed" = yes; then 29884 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers" 29885 fi 29886 29887 if test "$gl_cv_cc_uninitialized_supported" = no; then 29888 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized" 29889 fi 29890 29891 ALL_GCC_WARNINGS=$gl_manywarn_set 29892 29893# Warnings not suitable for C++. 29894WARNINGS_NOT_CXX="-Waggregate-return -Winline -Wnested-externs -Wtraditional -Wtraditional-conversion -Wdeclaration-after-statement -Wbad-function-cast -Wc++-compat -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wdesignated-init -Wdiscarded-array-qualifiers -Wdiscarded-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wjump-misses-init -Wmissing-parameter-type -Wold-style-declaration -Woverride-init -Wpointer-sign -Wpointer-to-int-cast" 29895# Warnings which give too many false positives from system headers. 29896WARNINGS_SYS_HEADER_FALSE_POSITIVE="-Wsystem-headers -Wunreachable-code" 29897# Warnings for things that are actually normal 29898WARNINGS_NORMAL="-Wundef -Wpadded -Wredundant-decls" 29899# Warnings that are just hints we don't want to take advantage of now. 29900WARNINGS_HINTS_NOTYET="-Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-final-types -Wsuggest-final-methods -Wsuggest-attribute=format" 29901# All unwanted warnings 29902UNWANTED_CXX_WARNINGS="$WARNINGS_NOT_CXX $WARNINGS_SYS_HEADER_FALSE_POSITIVE $WARNINGS_NORMAL $WARNINGS_HINTS_NOTYET" 29903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -Werror -Wunknown-warning-option" >&5 29904$as_echo_n "checking whether C++ compiler handles -Werror -Wunknown-warning-option... " >&6; } 29905if ${gl_cv_warn_cxx__Werror__Wunknown_warning_option+:} false; then : 29906 $as_echo_n "(cached) " >&6 29907else 29908 29909 gl_save_compiler_FLAGS="$CXXFLAGS" 29910 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 29911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29912/* end confdefs.h. */ 29913 29914int 29915main () 29916{ 29917 29918 ; 29919 return 0; 29920} 29921_ACEOF 29922if ac_fn_cxx_try_link "$LINENO"; then : 29923 gl_cv_warn_cxx__Werror__Wunknown_warning_option=yes 29924else 29925 gl_cv_warn_cxx__Werror__Wunknown_warning_option=no 29926fi 29927rm -f core conftest.err conftest.$ac_objext \ 29928 conftest$ac_exeext conftest.$ac_ext 29929 CXXFLAGS="$gl_save_compiler_FLAGS" 29930 29931fi 29932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__Werror__Wunknown_warning_option" >&5 29933$as_echo "$gl_cv_warn_cxx__Werror__Wunknown_warning_option" >&6; } 29934if test "x$gl_cv_warn_cxx__Werror__Wunknown_warning_option" = xyes; then : 29935 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 29936else 29937 gl_unknown_warnings_are_errors= 29938fi 29939 29940if test "x$want_warnings" != xno; then : 29941 29942 29943 gl_warn_set= 29944 set x $ALL_GCC_WARNINGS; shift 29945 for gl_warn_item 29946 do 29947 case " $UNWANTED_CXX_WARNINGS " in 29948 *" $gl_warn_item "*) 29949 ;; 29950 *) 29951 gl_warn_set="$gl_warn_set $gl_warn_item" 29952 ;; 29953 esac 29954 done 29955 GCC_WARNINGS=$gl_warn_set 29956 29957for warning_option in $GCC_WARNINGS 29958do 29959 29960as_gl_Warn=`$as_echo "gl_cv_warn_cxx_$warning_option" | $as_tr_sh` 29961gl_positive="$warning_option" 29962case $gl_positive in 29963 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;; 29964esac 29965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles $warning_option" >&5 29966$as_echo_n "checking whether C++ compiler handles $warning_option... " >&6; } 29967if eval \${$as_gl_Warn+:} false; then : 29968 $as_echo_n "(cached) " >&6 29969else 29970 29971 gl_save_compiler_FLAGS="$CXXFLAGS" 29972 as_fn_append CXXFLAGS " $gl_unknown_warnings_are_errors $gl_positive" 29973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29974/* end confdefs.h. */ 29975 29976int 29977main () 29978{ 29979 29980 ; 29981 return 0; 29982} 29983_ACEOF 29984if ac_fn_cxx_try_link "$LINENO"; then : 29985 eval "$as_gl_Warn=yes" 29986else 29987 eval "$as_gl_Warn=no" 29988fi 29989rm -f core conftest.err conftest.$ac_objext \ 29990 conftest$ac_exeext conftest.$ac_ext 29991 CXXFLAGS="$gl_save_compiler_FLAGS" 29992 29993fi 29994eval ac_res=\$$as_gl_Warn 29995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 29996$as_echo "$ac_res" >&6; } 29997if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then : 29998 as_fn_append WARN_CFLAGS " $warning_option" 29999fi 30000 30001 30002done 30003 30004fi 30005 30006 30007## ============================================================================== 30008## Googletest tests begin 30009## ============================================================================== 30010# TODO(chandlerc@google.com): Currently we aren't running the Python tests 30011# against the interpreter detected by AM_PATH_PYTHON, and so we condition 30012# HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's 30013# version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env" 30014# hashbang. 30015PYTHON= # We *do not* allow the user to specify a python interpreter 30016# Extract the first word of "python", so it can be a program name with args. 30017set dummy python; ac_word=$2 30018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30019$as_echo_n "checking for $ac_word... " >&6; } 30020if ${ac_cv_path_PYTHON+:} false; then : 30021 $as_echo_n "(cached) " >&6 30022else 30023 case $PYTHON in 30024 [\\/]* | ?:[\\/]*) 30025 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 30026 ;; 30027 *) 30028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30029for as_dir in $PATH 30030do 30031 IFS=$as_save_IFS 30032 test -z "$as_dir" && as_dir=. 30033 for ac_exec_ext in '' $ac_executable_extensions; do 30034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30035 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 30036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30037 break 2 30038 fi 30039done 30040 done 30041IFS=$as_save_IFS 30042 30043 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":" 30044 ;; 30045esac 30046fi 30047PYTHON=$ac_cv_path_PYTHON 30048if test -n "$PYTHON"; then 30049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 30050$as_echo "$PYTHON" >&6; } 30051else 30052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30053$as_echo "no" >&6; } 30054fi 30055 30056 30057if test "$PYTHON" != ":"; then : 30058 prog="import sys 30059# split strings by '.' and convert to numeric. Append some zeros 30060# because we need at least 4 digits for the hex conversion. 30061# map returns an iterator in Python 3.0 and a list in 2.x 30062minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0] 30063minverhex = 0 30064# xrange is not present in Python 3.0 and range returns an iterator 30065for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 30066sys.exit(sys.hexversion < minverhex)" 30067 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 30068 ($PYTHON -c "$prog") >&5 2>&5 30069 ac_status=$? 30070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30071 (exit $ac_status); }; then : 30072 : 30073else 30074 PYTHON=":" 30075fi 30076fi 30077 if test "$PYTHON" != ":"; then 30078 HAVE_PYTHON_TRUE= 30079 HAVE_PYTHON_FALSE='#' 30080else 30081 HAVE_PYTHON_TRUE='#' 30082 HAVE_PYTHON_FALSE= 30083fi 30084 30085 30086# Configure pthreads. 30087 30088# Check whether --with-pthreads was given. 30089if test "${with_pthreads+set}" = set; then : 30090 withval=$with_pthreads; with_pthreads=$withval 30091else 30092 with_pthreads=check 30093fi 30094 30095 30096have_pthreads=no 30097if test "x$with_pthreads" != "xno"; then : 30098 30099 30100 30101ac_ext=c 30102ac_cpp='$CPP $CPPFLAGS' 30103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30105ac_compiler_gnu=$ac_cv_c_compiler_gnu 30106 30107acx_pthread_ok=no 30108 30109# We used to check for pthread.h first, but this fails if pthread.h 30110# requires special compiler flags (e.g. on True64 or Sequent). 30111# It gets checked for in the link test anyway. 30112 30113# First of all, check if the user has set any of the PTHREAD_LIBS, 30114# etcetera environment variables, and if threads linking works using 30115# them: 30116if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 30117 save_CFLAGS="$CFLAGS" 30118 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 30119 save_LIBS="$LIBS" 30120 LIBS="$PTHREAD_LIBS $LIBS" 30121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 30122$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 30123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30124/* end confdefs.h. */ 30125 30126/* Override any GCC internal prototype to avoid an error. 30127 Use char because int might match the return type of a GCC 30128 builtin and then its argument prototype would still apply. */ 30129#ifdef __cplusplus 30130extern "C" 30131#endif 30132char pthread_join (); 30133int 30134main () 30135{ 30136return pthread_join (); 30137 ; 30138 return 0; 30139} 30140_ACEOF 30141if ac_fn_c_try_link "$LINENO"; then : 30142 acx_pthread_ok=yes 30143fi 30144rm -f core conftest.err conftest.$ac_objext \ 30145 conftest$ac_exeext conftest.$ac_ext 30146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 30147$as_echo "$acx_pthread_ok" >&6; } 30148 if test x"$acx_pthread_ok" = xno; then 30149 PTHREAD_LIBS="" 30150 PTHREAD_CFLAGS="" 30151 fi 30152 LIBS="$save_LIBS" 30153 CFLAGS="$save_CFLAGS" 30154fi 30155 30156# We must check for the threads library under a number of different 30157# names; the ordering is very important because some systems 30158# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 30159# libraries is broken (non-POSIX). 30160 30161# Create a list of thread flags to try. Items starting with a "-" are 30162# C compiler flags, and other items are library names, except for "none" 30163# which indicates that we try without any flags at all, and "pthread-config" 30164# which is a program returning the flags for the Pth emulation library. 30165 30166acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 30167 30168# The ordering *is* (sometimes) important. Some notes on the 30169# individual items follow: 30170 30171# pthreads: AIX (must check this before -lpthread) 30172# none: in case threads are in libc; should be tried before -Kthread and 30173# other compiler flags to prevent continual compiler warnings 30174# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 30175# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 30176# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 30177# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 30178# -pthreads: Solaris/gcc 30179# -mthreads: Mingw32/gcc, Lynx/gcc 30180# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 30181# doesn't hurt to check since this sometimes defines pthreads too; 30182# also defines -D_REENTRANT) 30183# ... -mt is also the pthreads flag for HP/aCC 30184# pthread: Linux, etcetera 30185# --thread-safe: KAI C++ 30186# pthread-config: use pthread-config program (for GNU Pth library) 30187 30188case "${host_cpu}-${host_os}" in 30189 *solaris*) 30190 30191 # On Solaris (at least, for some versions), libc contains stubbed 30192 # (non-functional) versions of the pthreads routines, so link-based 30193 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 30194 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 30195 # a function called by this macro, so we could check for that, but 30196 # who knows whether they'll stub that too in a future libc.) So, 30197 # we'll just look for -pthreads and -lpthread first: 30198 30199 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 30200 ;; 30201esac 30202 30203if test x"$acx_pthread_ok" = xno; then 30204for flag in $acx_pthread_flags; do 30205 30206 case $flag in 30207 none) 30208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 30209$as_echo_n "checking whether pthreads work without any flags... " >&6; } 30210 ;; 30211 30212 -*) 30213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 30214$as_echo_n "checking whether pthreads work with $flag... " >&6; } 30215 PTHREAD_CFLAGS="$flag" 30216 ;; 30217 30218 pthread-config) 30219 # Extract the first word of "pthread-config", so it can be a program name with args. 30220set dummy pthread-config; ac_word=$2 30221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30222$as_echo_n "checking for $ac_word... " >&6; } 30223if ${ac_cv_prog_acx_pthread_config+:} false; then : 30224 $as_echo_n "(cached) " >&6 30225else 30226 if test -n "$acx_pthread_config"; then 30227 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 30228else 30229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30230for as_dir in $PATH 30231do 30232 IFS=$as_save_IFS 30233 test -z "$as_dir" && as_dir=. 30234 for ac_exec_ext in '' $ac_executable_extensions; do 30235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30236 ac_cv_prog_acx_pthread_config="yes" 30237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30238 break 2 30239 fi 30240done 30241 done 30242IFS=$as_save_IFS 30243 30244 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 30245fi 30246fi 30247acx_pthread_config=$ac_cv_prog_acx_pthread_config 30248if test -n "$acx_pthread_config"; then 30249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 30250$as_echo "$acx_pthread_config" >&6; } 30251else 30252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30253$as_echo "no" >&6; } 30254fi 30255 30256 30257 if test x"$acx_pthread_config" = xno; then continue; fi 30258 PTHREAD_CFLAGS="`pthread-config --cflags`" 30259 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 30260 ;; 30261 30262 *) 30263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 30264$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 30265 PTHREAD_LIBS="-l$flag" 30266 ;; 30267 esac 30268 30269 save_LIBS="$LIBS" 30270 save_CFLAGS="$CFLAGS" 30271 LIBS="$PTHREAD_LIBS $LIBS" 30272 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 30273 30274 # Check for various functions. We must include pthread.h, 30275 # since some functions may be macros. (On the Sequent, we 30276 # need a special flag -Kthread to make this header compile.) 30277 # We check for pthread_join because it is in -lpthread on IRIX 30278 # while pthread_create is in libc. We check for pthread_attr_init 30279 # due to DEC craziness with -lpthreads. We check for 30280 # pthread_cleanup_push because it is one of the few pthread 30281 # functions on Solaris that doesn't have a non-functional libc stub. 30282 # We try pthread_create on general principles. 30283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30284/* end confdefs.h. */ 30285#include <pthread.h> 30286int 30287main () 30288{ 30289pthread_t th; pthread_join(th, 0); 30290 pthread_attr_init(0); pthread_cleanup_push(0, 0); 30291 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 30292 ; 30293 return 0; 30294} 30295_ACEOF 30296if ac_fn_c_try_link "$LINENO"; then : 30297 acx_pthread_ok=yes 30298fi 30299rm -f core conftest.err conftest.$ac_objext \ 30300 conftest$ac_exeext conftest.$ac_ext 30301 30302 LIBS="$save_LIBS" 30303 CFLAGS="$save_CFLAGS" 30304 30305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 30306$as_echo "$acx_pthread_ok" >&6; } 30307 if test "x$acx_pthread_ok" = xyes; then 30308 break; 30309 fi 30310 30311 PTHREAD_LIBS="" 30312 PTHREAD_CFLAGS="" 30313done 30314fi 30315 30316# Various other checks: 30317if test "x$acx_pthread_ok" = xyes; then 30318 save_LIBS="$LIBS" 30319 LIBS="$PTHREAD_LIBS $LIBS" 30320 save_CFLAGS="$CFLAGS" 30321 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 30322 30323 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 30324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 30325$as_echo_n "checking for joinable pthread attribute... " >&6; } 30326 attr_name=unknown 30327 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 30328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30329/* end confdefs.h. */ 30330#include <pthread.h> 30331int 30332main () 30333{ 30334int attr=$attr; return attr; 30335 ; 30336 return 0; 30337} 30338_ACEOF 30339if ac_fn_c_try_link "$LINENO"; then : 30340 attr_name=$attr; break 30341fi 30342rm -f core conftest.err conftest.$ac_objext \ 30343 conftest$ac_exeext conftest.$ac_ext 30344 done 30345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 30346$as_echo "$attr_name" >&6; } 30347 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 30348 30349cat >>confdefs.h <<_ACEOF 30350#define PTHREAD_CREATE_JOINABLE $attr_name 30351_ACEOF 30352 30353 fi 30354 30355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 30356$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 30357 flag=no 30358 case "${host_cpu}-${host_os}" in 30359 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 30360 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 30361 esac 30362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 30363$as_echo "${flag}" >&6; } 30364 if test "x$flag" != xno; then 30365 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 30366 fi 30367 30368 LIBS="$save_LIBS" 30369 CFLAGS="$save_CFLAGS" 30370 # More AIX lossage: must compile with xlc_r or cc_r 30371 if test x"$GCC" != xyes; then 30372 for ac_prog in xlc_r cc_r 30373do 30374 # Extract the first word of "$ac_prog", so it can be a program name with args. 30375set dummy $ac_prog; ac_word=$2 30376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30377$as_echo_n "checking for $ac_word... " >&6; } 30378if ${ac_cv_prog_PTHREAD_CC+:} false; then : 30379 $as_echo_n "(cached) " >&6 30380else 30381 if test -n "$PTHREAD_CC"; then 30382 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 30383else 30384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30385for as_dir in $PATH 30386do 30387 IFS=$as_save_IFS 30388 test -z "$as_dir" && as_dir=. 30389 for ac_exec_ext in '' $ac_executable_extensions; do 30390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30391 ac_cv_prog_PTHREAD_CC="$ac_prog" 30392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30393 break 2 30394 fi 30395done 30396 done 30397IFS=$as_save_IFS 30398 30399fi 30400fi 30401PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 30402if test -n "$PTHREAD_CC"; then 30403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 30404$as_echo "$PTHREAD_CC" >&6; } 30405else 30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30407$as_echo "no" >&6; } 30408fi 30409 30410 30411 test -n "$PTHREAD_CC" && break 30412done 30413test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 30414 30415 else 30416 PTHREAD_CC=$CC 30417 fi 30418 30419 # The next part tries to detect GCC inconsistency with -shared on some 30420 # architectures and systems. The problem is that in certain 30421 # configurations, when -shared is specified, GCC "forgets" to 30422 # internally use various flags which are still necessary. 30423 30424 # 30425 # Prepare the flags 30426 # 30427 save_CFLAGS="$CFLAGS" 30428 save_LIBS="$LIBS" 30429 save_CC="$CC" 30430 30431 # Try with the flags determined by the earlier checks. 30432 # 30433 # -Wl,-z,defs forces link-time symbol resolution, so that the 30434 # linking checks with -shared actually have any value 30435 # 30436 # FIXME: -fPIC is required for -shared on many architectures, 30437 # so we specify it here, but the right way would probably be to 30438 # properly detect whether it is actually required. 30439 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS" 30440 LIBS="$PTHREAD_LIBS $LIBS" 30441 CC="$PTHREAD_CC" 30442 30443 # In order not to create several levels of indentation, we test 30444 # the value of "$done" until we find the cure or run out of ideas. 30445 done="no" 30446 30447 # First, make sure the CFLAGS we added are actually accepted by our 30448 # compiler. If not (and OS X's ld, for instance, does not accept -z), 30449 # then we can't do this test. 30450 if test x"$done" = xno; then 30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5 30452$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; } 30453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30454/* end confdefs.h. */ 30455 30456int 30457main () 30458{ 30459 30460 ; 30461 return 0; 30462} 30463_ACEOF 30464if ac_fn_c_try_link "$LINENO"; then : 30465 30466else 30467 done=yes 30468fi 30469rm -f core conftest.err conftest.$ac_objext \ 30470 conftest$ac_exeext conftest.$ac_ext 30471 30472 if test "x$done" = xyes ; then 30473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30474$as_echo "no" >&6; } 30475 else 30476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30477$as_echo "yes" >&6; } 30478 fi 30479 fi 30480 30481 if test x"$done" = xno; then 30482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5 30483$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; } 30484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30485/* end confdefs.h. */ 30486#include <pthread.h> 30487int 30488main () 30489{ 30490pthread_t th; pthread_join(th, 0); 30491 pthread_attr_init(0); pthread_cleanup_push(0, 0); 30492 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 30493 ; 30494 return 0; 30495} 30496_ACEOF 30497if ac_fn_c_try_link "$LINENO"; then : 30498 done=yes 30499fi 30500rm -f core conftest.err conftest.$ac_objext \ 30501 conftest$ac_exeext conftest.$ac_ext 30502 30503 if test "x$done" = xyes; then 30504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30505$as_echo "yes" >&6; } 30506 else 30507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30508$as_echo "no" >&6; } 30509 fi 30510 fi 30511 30512 # 30513 # Linux gcc on some architectures such as mips/mipsel forgets 30514 # about -lpthread 30515 # 30516 if test x"$done" = xno; then 30517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5 30518$as_echo_n "checking whether -lpthread fixes that... " >&6; } 30519 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS" 30520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30521/* end confdefs.h. */ 30522#include <pthread.h> 30523int 30524main () 30525{ 30526pthread_t th; pthread_join(th, 0); 30527 pthread_attr_init(0); pthread_cleanup_push(0, 0); 30528 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 30529 ; 30530 return 0; 30531} 30532_ACEOF 30533if ac_fn_c_try_link "$LINENO"; then : 30534 done=yes 30535fi 30536rm -f core conftest.err conftest.$ac_objext \ 30537 conftest$ac_exeext conftest.$ac_ext 30538 30539 if test "x$done" = xyes; then 30540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30541$as_echo "yes" >&6; } 30542 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS" 30543 else 30544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30545$as_echo "no" >&6; } 30546 fi 30547 fi 30548 # 30549 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc 30550 # 30551 if test x"$done" = xno; then 30552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5 30553$as_echo_n "checking whether -lc_r fixes that... " >&6; } 30554 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS" 30555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30556/* end confdefs.h. */ 30557#include <pthread.h> 30558int 30559main () 30560{ 30561pthread_t th; pthread_join(th, 0); 30562 pthread_attr_init(0); pthread_cleanup_push(0, 0); 30563 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 30564 ; 30565 return 0; 30566} 30567_ACEOF 30568if ac_fn_c_try_link "$LINENO"; then : 30569 done=yes 30570fi 30571rm -f core conftest.err conftest.$ac_objext \ 30572 conftest$ac_exeext conftest.$ac_ext 30573 30574 if test "x$done" = xyes; then 30575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30576$as_echo "yes" >&6; } 30577 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS" 30578 else 30579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30580$as_echo "no" >&6; } 30581 fi 30582 fi 30583 if test x"$done" = xno; then 30584 # OK, we have run out of ideas 30585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5 30586$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;} 30587 30588 # so it's not safe to assume that we may use pthreads 30589 acx_pthread_ok=no 30590 fi 30591 30592 CFLAGS="$save_CFLAGS" 30593 LIBS="$save_LIBS" 30594 CC="$save_CC" 30595else 30596 PTHREAD_CC="$CC" 30597fi 30598 30599 30600 30601 30602 30603# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 30604if test x"$acx_pthread_ok" = xyes; then 30605 30606$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 30607 30608 : 30609else 30610 acx_pthread_ok=no 30611 if test "x$with_pthreads" != "xcheck"; then : 30612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30614as_fn_error $? "--with-pthreads was specified, but unable to be used 30615See \`config.log' for more details" "$LINENO" 5; } 30616fi 30617fi 30618ac_ext=cpp 30619ac_cpp='$CXXCPP $CPPFLAGS' 30620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30623 30624 30625 have_pthreads="$acx_pthread_ok" 30626fi 30627 if test "x$have_pthreads" = "xyes"; then 30628 HAVE_PTHREADS_TRUE= 30629 HAVE_PTHREADS_FALSE='#' 30630else 30631 HAVE_PTHREADS_TRUE='#' 30632 HAVE_PTHREADS_FALSE= 30633fi 30634 30635 30636 30637## ============================================================================== 30638## Googletest tests end 30639## ============================================================================== 30640 30641 30642 30643ac_config_files="$ac_config_files src/version.cc Makefile gl/Makefile gl/lib/Makefile gl/doc/Makefile gl/tests/Makefile testutils/Makefile src/Makefile src/sccsdiff.sh unit-tests/Makefile tests/Makefile docs/Makefile testutils/decompress_stdin.sh auxfiles/Makefile auxfiles/CSSC.spec sccs-cgi/Makefile docs/config-info.texi unit-tests/testwrapper.sh" 30644 30645cat >confcache <<\_ACEOF 30646# This file is a shell script that caches the results of configure 30647# tests run on this system so they can be shared between configure 30648# scripts and configure runs, see configure's option --config-cache. 30649# It is not useful on other systems. If it contains results you don't 30650# want to keep, you may remove or edit it. 30651# 30652# config.status only pays attention to the cache file if you give it 30653# the --recheck option to rerun configure. 30654# 30655# `ac_cv_env_foo' variables (set or unset) will be overridden when 30656# loading this file, other *unset* `ac_cv_foo' will be assigned the 30657# following values. 30658 30659_ACEOF 30660 30661# The following way of writing the cache mishandles newlines in values, 30662# but we know of no workaround that is simple, portable, and efficient. 30663# So, we kill variables containing newlines. 30664# Ultrix sh set writes to stderr and can't be redirected directly, 30665# and sets the high bit in the cache file unless we assign to the vars. 30666( 30667 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 30668 eval ac_val=\$$ac_var 30669 case $ac_val in #( 30670 *${as_nl}*) 30671 case $ac_var in #( 30672 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 30673$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 30674 esac 30675 case $ac_var in #( 30676 _ | IFS | as_nl) ;; #( 30677 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 30678 *) { eval $ac_var=; unset $ac_var;} ;; 30679 esac ;; 30680 esac 30681 done 30682 30683 (set) 2>&1 | 30684 case $as_nl`(ac_space=' '; set) 2>&1` in #( 30685 *${as_nl}ac_space=\ *) 30686 # `set' does not quote correctly, so add quotes: double-quote 30687 # substitution turns \\\\ into \\, and sed turns \\ into \. 30688 sed -n \ 30689 "s/'/'\\\\''/g; 30690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 30691 ;; #( 30692 *) 30693 # `set' quotes correctly as required by POSIX, so do not add quotes. 30694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 30695 ;; 30696 esac | 30697 sort 30698) | 30699 sed ' 30700 /^ac_cv_env_/b end 30701 t clear 30702 :clear 30703 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 30704 t end 30705 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 30706 :end' >>confcache 30707if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 30708 if test -w "$cache_file"; then 30709 if test "x$cache_file" != "x/dev/null"; then 30710 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 30711$as_echo "$as_me: updating cache $cache_file" >&6;} 30712 if test ! -f "$cache_file" || test -h "$cache_file"; then 30713 cat confcache >"$cache_file" 30714 else 30715 case $cache_file in #( 30716 */* | ?:*) 30717 mv -f confcache "$cache_file"$$ && 30718 mv -f "$cache_file"$$ "$cache_file" ;; #( 30719 *) 30720 mv -f confcache "$cache_file" ;; 30721 esac 30722 fi 30723 fi 30724 else 30725 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 30726$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 30727 fi 30728fi 30729rm -f confcache 30730 30731test "x$prefix" = xNONE && prefix=$ac_default_prefix 30732# Let make expand exec_prefix. 30733test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 30734 30735DEFS=-DHAVE_CONFIG_H 30736 30737ac_libobjs= 30738ac_ltlibobjs= 30739U= 30740for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 30741 # 1. Remove the extension, and $U if already installed. 30742 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 30743 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 30744 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 30745 # will be set to the directory where LIBOBJS objects are built. 30746 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 30747 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 30748done 30749LIBOBJS=$ac_libobjs 30750 30751LTLIBOBJS=$ac_ltlibobjs 30752 30753 30754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 30755$as_echo_n "checking that generated files are newer than configure... " >&6; } 30756 if test -n "$am_sleep_pid"; then 30757 # Hide warnings about reused PIDs. 30758 wait $am_sleep_pid 2>/dev/null 30759 fi 30760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 30761$as_echo "done" >&6; } 30762 if test -n "$EXEEXT"; then 30763 am__EXEEXT_TRUE= 30764 am__EXEEXT_FALSE='#' 30765else 30766 am__EXEEXT_TRUE='#' 30767 am__EXEEXT_FALSE= 30768fi 30769 30770if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 30771 as_fn_error $? "conditional \"AMDEP\" was never defined. 30772Usually this means the macro was only invoked conditionally." "$LINENO" 5 30773fi 30774if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 30775 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 30776Usually this means the macro was only invoked conditionally." "$LINENO" 5 30777fi 30778if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 30779 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 30780Usually this means the macro was only invoked conditionally." "$LINENO" 5 30781fi 30782if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then 30783 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. 30784Usually this means the macro was only invoked conditionally." "$LINENO" 5 30785fi 30786if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then 30787 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined. 30788Usually this means the macro was only invoked conditionally." "$LINENO" 5 30789fi 30790CONFIG_INCLUDE=config.h 30791 30792if test -z "${GL_GENERATE_PTHREAD_H_TRUE}" && test -z "${GL_GENERATE_PTHREAD_H_FALSE}"; then 30793 as_fn_error $? "conditional \"GL_GENERATE_PTHREAD_H\" was never defined. 30794Usually this means the macro was only invoked conditionally." "$LINENO" 5 30795fi 30796if test -z "${GL_GENERATE_SCHED_H_TRUE}" && test -z "${GL_GENERATE_SCHED_H_FALSE}"; then 30797 as_fn_error $? "conditional \"GL_GENERATE_SCHED_H\" was never defined. 30798Usually this means the macro was only invoked conditionally." "$LINENO" 5 30799fi 30800if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then 30801 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined. 30802Usually this means the macro was only invoked conditionally." "$LINENO" 5 30803fi 30804if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then 30805 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined. 30806Usually this means the macro was only invoked conditionally." "$LINENO" 5 30807fi 30808 30809 gl_libobjs= 30810 gl_ltlibobjs= 30811 if test -n "$gl_LIBOBJS"; then 30812 # Remove the extension. 30813 sed_drop_objext='s/\.o$//;s/\.obj$//' 30814 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 30815 gl_libobjs="$gl_libobjs $i.$ac_objext" 30816 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 30817 done 30818 fi 30819 gl_LIBOBJS=$gl_libobjs 30820 30821 gl_LTLIBOBJS=$gl_ltlibobjs 30822 30823 30824if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then 30825 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined. 30826Usually this means the macro was only invoked conditionally." "$LINENO" 5 30827fi 30828if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then 30829 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined. 30830Usually this means the macro was only invoked conditionally." "$LINENO" 5 30831fi 30832if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then 30833 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined. 30834Usually this means the macro was only invoked conditionally." "$LINENO" 5 30835fi 30836 30837 gltests_libobjs= 30838 gltests_ltlibobjs= 30839 if test -n "$gltests_LIBOBJS"; then 30840 # Remove the extension. 30841 sed_drop_objext='s/\.o$//;s/\.obj$//' 30842 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 30843 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 30844 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 30845 done 30846 fi 30847 gltests_LIBOBJS=$gltests_libobjs 30848 30849 gltests_LTLIBOBJS=$gltests_ltlibobjs 30850 30851 30852if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then 30853 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. 30854Usually this means the macro was only invoked conditionally." "$LINENO" 5 30855fi 30856if test -z "${HAVE_PTHREADS_TRUE}" && test -z "${HAVE_PTHREADS_FALSE}"; then 30857 as_fn_error $? "conditional \"HAVE_PTHREADS\" was never defined. 30858Usually this means the macro was only invoked conditionally." "$LINENO" 5 30859fi 30860 30861: "${CONFIG_STATUS=./config.status}" 30862ac_write_fail=0 30863ac_clean_files_save=$ac_clean_files 30864ac_clean_files="$ac_clean_files $CONFIG_STATUS" 30865{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 30866$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 30867as_write_fail=0 30868cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 30869#! $SHELL 30870# Generated by $as_me. 30871# Run this file to recreate the current configuration. 30872# Compiler output produced by configure, useful for debugging 30873# configure, is in config.log if it exists. 30874 30875debug=false 30876ac_cs_recheck=false 30877ac_cs_silent=false 30878 30879SHELL=\${CONFIG_SHELL-$SHELL} 30880export SHELL 30881_ASEOF 30882cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 30883## -------------------- ## 30884## M4sh Initialization. ## 30885## -------------------- ## 30886 30887# Be more Bourne compatible 30888DUALCASE=1; export DUALCASE # for MKS sh 30889if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 30890 emulate sh 30891 NULLCMD=: 30892 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 30893 # is contrary to our usage. Disable this feature. 30894 alias -g '${1+"$@"}'='"$@"' 30895 setopt NO_GLOB_SUBST 30896else 30897 case `(set -o) 2>/dev/null` in #( 30898 *posix*) : 30899 set -o posix ;; #( 30900 *) : 30901 ;; 30902esac 30903fi 30904 30905 30906as_nl=' 30907' 30908export as_nl 30909# Printing a long string crashes Solaris 7 /usr/bin/printf. 30910as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 30911as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 30912as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 30913# Prefer a ksh shell builtin over an external printf program on Solaris, 30914# but without wasting forks for bash or zsh. 30915if test -z "$BASH_VERSION$ZSH_VERSION" \ 30916 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 30917 as_echo='print -r --' 30918 as_echo_n='print -rn --' 30919elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 30920 as_echo='printf %s\n' 30921 as_echo_n='printf %s' 30922else 30923 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 30924 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 30925 as_echo_n='/usr/ucb/echo -n' 30926 else 30927 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 30928 as_echo_n_body='eval 30929 arg=$1; 30930 case $arg in #( 30931 *"$as_nl"*) 30932 expr "X$arg" : "X\\(.*\\)$as_nl"; 30933 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 30934 esac; 30935 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 30936 ' 30937 export as_echo_n_body 30938 as_echo_n='sh -c $as_echo_n_body as_echo' 30939 fi 30940 export as_echo_body 30941 as_echo='sh -c $as_echo_body as_echo' 30942fi 30943 30944# The user is always right. 30945if test "${PATH_SEPARATOR+set}" != set; then 30946 PATH_SEPARATOR=: 30947 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 30948 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 30949 PATH_SEPARATOR=';' 30950 } 30951fi 30952 30953 30954# IFS 30955# We need space, tab and new line, in precisely that order. Quoting is 30956# there to prevent editors from complaining about space-tab. 30957# (If _AS_PATH_WALK were called with IFS unset, it would disable word 30958# splitting by setting IFS to empty value.) 30959IFS=" "" $as_nl" 30960 30961# Find who we are. Look in the path if we contain no directory separator. 30962as_myself= 30963case $0 in #(( 30964 *[\\/]* ) as_myself=$0 ;; 30965 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30966for as_dir in $PATH 30967do 30968 IFS=$as_save_IFS 30969 test -z "$as_dir" && as_dir=. 30970 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 30971 done 30972IFS=$as_save_IFS 30973 30974 ;; 30975esac 30976# We did not find ourselves, most probably we were run as `sh COMMAND' 30977# in which case we are not to be found in the path. 30978if test "x$as_myself" = x; then 30979 as_myself=$0 30980fi 30981if test ! -f "$as_myself"; then 30982 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 30983 exit 1 30984fi 30985 30986# Unset variables that we do not need and which cause bugs (e.g. in 30987# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 30988# suppresses any "Segmentation fault" message there. '((' could 30989# trigger a bug in pdksh 5.2.14. 30990for as_var in BASH_ENV ENV MAIL MAILPATH 30991do eval test x\${$as_var+set} = xset \ 30992 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 30993done 30994PS1='$ ' 30995PS2='> ' 30996PS4='+ ' 30997 30998# NLS nuisances. 30999LC_ALL=C 31000export LC_ALL 31001LANGUAGE=C 31002export LANGUAGE 31003 31004# CDPATH. 31005(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 31006 31007 31008# as_fn_error STATUS ERROR [LINENO LOG_FD] 31009# ---------------------------------------- 31010# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 31011# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 31012# script with STATUS, using 1 if that was 0. 31013as_fn_error () 31014{ 31015 as_status=$1; test $as_status -eq 0 && as_status=1 31016 if test "$4"; then 31017 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 31018 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 31019 fi 31020 $as_echo "$as_me: error: $2" >&2 31021 as_fn_exit $as_status 31022} # as_fn_error 31023 31024 31025# as_fn_set_status STATUS 31026# ----------------------- 31027# Set $? to STATUS, without forking. 31028as_fn_set_status () 31029{ 31030 return $1 31031} # as_fn_set_status 31032 31033# as_fn_exit STATUS 31034# ----------------- 31035# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 31036as_fn_exit () 31037{ 31038 set +e 31039 as_fn_set_status $1 31040 exit $1 31041} # as_fn_exit 31042 31043# as_fn_unset VAR 31044# --------------- 31045# Portably unset VAR. 31046as_fn_unset () 31047{ 31048 { eval $1=; unset $1;} 31049} 31050as_unset=as_fn_unset 31051# as_fn_append VAR VALUE 31052# ---------------------- 31053# Append the text in VALUE to the end of the definition contained in VAR. Take 31054# advantage of any shell optimizations that allow amortized linear growth over 31055# repeated appends, instead of the typical quadratic growth present in naive 31056# implementations. 31057if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 31058 eval 'as_fn_append () 31059 { 31060 eval $1+=\$2 31061 }' 31062else 31063 as_fn_append () 31064 { 31065 eval $1=\$$1\$2 31066 } 31067fi # as_fn_append 31068 31069# as_fn_arith ARG... 31070# ------------------ 31071# Perform arithmetic evaluation on the ARGs, and store the result in the 31072# global $as_val. Take advantage of shells that can avoid forks. The arguments 31073# must be portable across $(()) and expr. 31074if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 31075 eval 'as_fn_arith () 31076 { 31077 as_val=$(( $* )) 31078 }' 31079else 31080 as_fn_arith () 31081 { 31082 as_val=`expr "$@" || test $? -eq 1` 31083 } 31084fi # as_fn_arith 31085 31086 31087if expr a : '\(a\)' >/dev/null 2>&1 && 31088 test "X`expr 00001 : '.*\(...\)'`" = X001; then 31089 as_expr=expr 31090else 31091 as_expr=false 31092fi 31093 31094if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 31095 as_basename=basename 31096else 31097 as_basename=false 31098fi 31099 31100if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 31101 as_dirname=dirname 31102else 31103 as_dirname=false 31104fi 31105 31106as_me=`$as_basename -- "$0" || 31107$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 31108 X"$0" : 'X\(//\)$' \| \ 31109 X"$0" : 'X\(/\)' \| . 2>/dev/null || 31110$as_echo X/"$0" | 31111 sed '/^.*\/\([^/][^/]*\)\/*$/{ 31112 s//\1/ 31113 q 31114 } 31115 /^X\/\(\/\/\)$/{ 31116 s//\1/ 31117 q 31118 } 31119 /^X\/\(\/\).*/{ 31120 s//\1/ 31121 q 31122 } 31123 s/.*/./; q'` 31124 31125# Avoid depending upon Character Ranges. 31126as_cr_letters='abcdefghijklmnopqrstuvwxyz' 31127as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 31128as_cr_Letters=$as_cr_letters$as_cr_LETTERS 31129as_cr_digits='0123456789' 31130as_cr_alnum=$as_cr_Letters$as_cr_digits 31131 31132ECHO_C= ECHO_N= ECHO_T= 31133case `echo -n x` in #((((( 31134-n*) 31135 case `echo 'xy\c'` in 31136 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 31137 xy) ECHO_C='\c';; 31138 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 31139 ECHO_T=' ';; 31140 esac;; 31141*) 31142 ECHO_N='-n';; 31143esac 31144 31145rm -f conf$$ conf$$.exe conf$$.file 31146if test -d conf$$.dir; then 31147 rm -f conf$$.dir/conf$$.file 31148else 31149 rm -f conf$$.dir 31150 mkdir conf$$.dir 2>/dev/null 31151fi 31152if (echo >conf$$.file) 2>/dev/null; then 31153 if ln -s conf$$.file conf$$ 2>/dev/null; then 31154 as_ln_s='ln -s' 31155 # ... but there are two gotchas: 31156 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 31157 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 31158 # In both cases, we have to default to `cp -pR'. 31159 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 31160 as_ln_s='cp -pR' 31161 elif ln conf$$.file conf$$ 2>/dev/null; then 31162 as_ln_s=ln 31163 else 31164 as_ln_s='cp -pR' 31165 fi 31166else 31167 as_ln_s='cp -pR' 31168fi 31169rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 31170rmdir conf$$.dir 2>/dev/null 31171 31172 31173# as_fn_mkdir_p 31174# ------------- 31175# Create "$as_dir" as a directory, including parents if necessary. 31176as_fn_mkdir_p () 31177{ 31178 31179 case $as_dir in #( 31180 -*) as_dir=./$as_dir;; 31181 esac 31182 test -d "$as_dir" || eval $as_mkdir_p || { 31183 as_dirs= 31184 while :; do 31185 case $as_dir in #( 31186 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 31187 *) as_qdir=$as_dir;; 31188 esac 31189 as_dirs="'$as_qdir' $as_dirs" 31190 as_dir=`$as_dirname -- "$as_dir" || 31191$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31192 X"$as_dir" : 'X\(//\)[^/]' \| \ 31193 X"$as_dir" : 'X\(//\)$' \| \ 31194 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 31195$as_echo X"$as_dir" | 31196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31197 s//\1/ 31198 q 31199 } 31200 /^X\(\/\/\)[^/].*/{ 31201 s//\1/ 31202 q 31203 } 31204 /^X\(\/\/\)$/{ 31205 s//\1/ 31206 q 31207 } 31208 /^X\(\/\).*/{ 31209 s//\1/ 31210 q 31211 } 31212 s/.*/./; q'` 31213 test -d "$as_dir" && break 31214 done 31215 test -z "$as_dirs" || eval "mkdir $as_dirs" 31216 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 31217 31218 31219} # as_fn_mkdir_p 31220if mkdir -p . 2>/dev/null; then 31221 as_mkdir_p='mkdir -p "$as_dir"' 31222else 31223 test -d ./-p && rmdir ./-p 31224 as_mkdir_p=false 31225fi 31226 31227 31228# as_fn_executable_p FILE 31229# ----------------------- 31230# Test if FILE is an executable regular file. 31231as_fn_executable_p () 31232{ 31233 test -f "$1" && test -x "$1" 31234} # as_fn_executable_p 31235as_test_x='test -x' 31236as_executable_p=as_fn_executable_p 31237 31238# Sed expression to map a string onto a valid CPP name. 31239as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 31240 31241# Sed expression to map a string onto a valid variable name. 31242as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 31243 31244 31245exec 6>&1 31246## ----------------------------------- ## 31247## Main body of $CONFIG_STATUS script. ## 31248## ----------------------------------- ## 31249_ASEOF 31250test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 31251 31252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31253# Save the log message, to keep $0 and so on meaningful, and to 31254# report actual input values of CONFIG_FILES etc. instead of their 31255# values after options handling. 31256ac_log=" 31257This file was extended by GNU CSSC $as_me 1.4.1, which was 31258generated by GNU Autoconf 2.69. Invocation command line was 31259 31260 CONFIG_FILES = $CONFIG_FILES 31261 CONFIG_HEADERS = $CONFIG_HEADERS 31262 CONFIG_LINKS = $CONFIG_LINKS 31263 CONFIG_COMMANDS = $CONFIG_COMMANDS 31264 $ $0 $@ 31265 31266on `(hostname || uname -n) 2>/dev/null | sed 1q` 31267" 31268 31269_ACEOF 31270 31271case $ac_config_files in *" 31272"*) set x $ac_config_files; shift; ac_config_files=$*;; 31273esac 31274 31275case $ac_config_headers in *" 31276"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 31277esac 31278 31279 31280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31281# Files that config.status was made for. 31282config_files="$ac_config_files" 31283config_headers="$ac_config_headers" 31284config_links="$ac_config_links" 31285config_commands="$ac_config_commands" 31286 31287_ACEOF 31288 31289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31290ac_cs_usage="\ 31291\`$as_me' instantiates files and other configuration actions 31292from templates according to the current configuration. Unless the files 31293and actions are specified as TAGs, all are instantiated by default. 31294 31295Usage: $0 [OPTION]... [TAG]... 31296 31297 -h, --help print this help, then exit 31298 -V, --version print version number and configuration settings, then exit 31299 --config print configuration, then exit 31300 -q, --quiet, --silent 31301 do not print progress messages 31302 -d, --debug don't remove temporary files 31303 --recheck update $as_me by reconfiguring in the same conditions 31304 --file=FILE[:TEMPLATE] 31305 instantiate the configuration file FILE 31306 --header=FILE[:TEMPLATE] 31307 instantiate the configuration header FILE 31308 31309Configuration files: 31310$config_files 31311 31312Configuration headers: 31313$config_headers 31314 31315Configuration links: 31316$config_links 31317 31318Configuration commands: 31319$config_commands 31320 31321Report bugs to <bug-CSSC@gnu.org>. 31322GNU CSSC home page: <http://www.gnu.org/software/CSSC/>. 31323General help using GNU software: <http://www.gnu.org/gethelp/>." 31324 31325_ACEOF 31326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31327ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 31328ac_cs_version="\\ 31329GNU CSSC config.status 1.4.1 31330configured by $0, generated by GNU Autoconf 2.69, 31331 with options \\"\$ac_cs_config\\" 31332 31333Copyright (C) 2012 Free Software Foundation, Inc. 31334This config.status script is free software; the Free Software Foundation 31335gives unlimited permission to copy, distribute and modify it." 31336 31337ac_pwd='$ac_pwd' 31338srcdir='$srcdir' 31339INSTALL='$INSTALL' 31340MKDIR_P='$MKDIR_P' 31341AWK='$AWK' 31342test -n "\$AWK" || AWK=awk 31343_ACEOF 31344 31345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31346# The default lists apply if the user does not specify any file. 31347ac_need_defaults=: 31348while test $# != 0 31349do 31350 case $1 in 31351 --*=?*) 31352 ac_option=`expr "X$1" : 'X\([^=]*\)='` 31353 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 31354 ac_shift=: 31355 ;; 31356 --*=) 31357 ac_option=`expr "X$1" : 'X\([^=]*\)='` 31358 ac_optarg= 31359 ac_shift=: 31360 ;; 31361 *) 31362 ac_option=$1 31363 ac_optarg=$2 31364 ac_shift=shift 31365 ;; 31366 esac 31367 31368 case $ac_option in 31369 # Handling of the options. 31370 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 31371 ac_cs_recheck=: ;; 31372 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 31373 $as_echo "$ac_cs_version"; exit ;; 31374 --config | --confi | --conf | --con | --co | --c ) 31375 $as_echo "$ac_cs_config"; exit ;; 31376 --debug | --debu | --deb | --de | --d | -d ) 31377 debug=: ;; 31378 --file | --fil | --fi | --f ) 31379 $ac_shift 31380 case $ac_optarg in 31381 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 31382 '') as_fn_error $? "missing file argument" ;; 31383 esac 31384 as_fn_append CONFIG_FILES " '$ac_optarg'" 31385 ac_need_defaults=false;; 31386 --header | --heade | --head | --hea ) 31387 $ac_shift 31388 case $ac_optarg in 31389 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 31390 esac 31391 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 31392 ac_need_defaults=false;; 31393 --he | --h) 31394 # Conflict between --help and --header 31395 as_fn_error $? "ambiguous option: \`$1' 31396Try \`$0 --help' for more information.";; 31397 --help | --hel | -h ) 31398 $as_echo "$ac_cs_usage"; exit ;; 31399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 31400 | -silent | --silent | --silen | --sile | --sil | --si | --s) 31401 ac_cs_silent=: ;; 31402 31403 # This is an error. 31404 -*) as_fn_error $? "unrecognized option: \`$1' 31405Try \`$0 --help' for more information." ;; 31406 31407 *) as_fn_append ac_config_targets " $1" 31408 ac_need_defaults=false ;; 31409 31410 esac 31411 shift 31412done 31413 31414ac_configure_extra_args= 31415 31416if $ac_cs_silent; then 31417 exec 6>/dev/null 31418 ac_configure_extra_args="$ac_configure_extra_args --silent" 31419fi 31420 31421_ACEOF 31422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31423if \$ac_cs_recheck; then 31424 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 31425 shift 31426 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 31427 CONFIG_SHELL='$SHELL' 31428 export CONFIG_SHELL 31429 exec "\$@" 31430fi 31431 31432_ACEOF 31433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31434exec 5>>config.log 31435{ 31436 echo 31437 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 31438## Running $as_me. ## 31439_ASBOX 31440 $as_echo "$ac_log" 31441} >&5 31442 31443_ACEOF 31444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31445# 31446# INIT-COMMANDS 31447# 31448AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 31449 31450 31451# The HP-UX ksh and POSIX shell print the target directory to stdout 31452# if CDPATH is set. 31453(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 31454 31455sed_quote_subst='$sed_quote_subst' 31456double_quote_subst='$double_quote_subst' 31457delay_variable_subst='$delay_variable_subst' 31458macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 31459macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 31460enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 31461enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 31462pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 31463enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 31464shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 31465SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 31466ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 31467PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 31468host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 31469host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 31470host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 31471build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 31472build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 31473build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 31474SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 31475Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 31476GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 31477EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 31478FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 31479LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 31480NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 31481LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 31482max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 31483ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 31484exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 31485lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 31486lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 31487lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 31488lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 31489lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 31490reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 31491reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 31492OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 31493deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 31494file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 31495file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 31496want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 31497DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 31498sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 31499AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 31500AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 31501archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 31502STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 31503RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 31504old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 31505old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 31506old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 31507lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 31508CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 31509CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 31510compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 31511GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 31512lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 31513lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 31514lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 31515lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 31516lt_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"`' 31517lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 31518nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 31519lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 31520lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 31521objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 31522MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 31523lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 31524lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 31525lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 31526lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 31527lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 31528need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 31529MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 31530DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 31531NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 31532LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 31533OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 31534OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 31535libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 31536shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 31537extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 31538archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 31539enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 31540export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 31541whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 31542compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 31543old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 31544old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 31545archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 31546archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 31547module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 31548module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 31549with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 31550allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 31551no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 31552hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 31553hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 31554hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 31555hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 31556hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 31557hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 31558hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 31559inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 31560link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 31561always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 31562export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 31563exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 31564include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 31565prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 31566postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 31567file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 31568variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 31569need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 31570need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 31571version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 31572runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 31573shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 31574shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 31575libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 31576library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 31577soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 31578install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 31579postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 31580postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 31581finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 31582finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 31583hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 31584sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 31585configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 31586configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 31587hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 31588enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 31589enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 31590enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 31591old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 31592striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 31593compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 31594predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 31595postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 31596predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 31597postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 31598compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 31599LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 31600reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 31601reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31602old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31603compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 31604GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 31605lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 31606lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 31607lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 31608lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 31609lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 31610archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 31611enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 31612export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 31613whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 31614compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 31615old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31616old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31617archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31618archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31619module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31620module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31621with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 31622allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 31623no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 31624hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 31625hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 31626hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 31627hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 31628hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 31629hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 31630hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 31631inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 31632link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 31633always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 31634export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31635exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 31636include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 31637prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31638postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 31639file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 31640hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 31641compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 31642predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 31643postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 31644predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 31645postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 31646compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 31647 31648LTCC='$LTCC' 31649LTCFLAGS='$LTCFLAGS' 31650compiler='$compiler_DEFAULT' 31651 31652# A function that is used when there is no print builtin or printf. 31653func_fallback_echo () 31654{ 31655 eval 'cat <<_LTECHO_EOF 31656\$1 31657_LTECHO_EOF' 31658} 31659 31660# Quote evaled strings. 31661for var in SHELL \ 31662ECHO \ 31663PATH_SEPARATOR \ 31664SED \ 31665GREP \ 31666EGREP \ 31667FGREP \ 31668LD \ 31669NM \ 31670LN_S \ 31671lt_SP2NL \ 31672lt_NL2SP \ 31673reload_flag \ 31674OBJDUMP \ 31675deplibs_check_method \ 31676file_magic_cmd \ 31677file_magic_glob \ 31678want_nocaseglob \ 31679DLLTOOL \ 31680sharedlib_from_linklib_cmd \ 31681AR \ 31682AR_FLAGS \ 31683archiver_list_spec \ 31684STRIP \ 31685RANLIB \ 31686CC \ 31687CFLAGS \ 31688compiler \ 31689lt_cv_sys_global_symbol_pipe \ 31690lt_cv_sys_global_symbol_to_cdecl \ 31691lt_cv_sys_global_symbol_to_import \ 31692lt_cv_sys_global_symbol_to_c_name_address \ 31693lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 31694lt_cv_nm_interface \ 31695nm_file_list_spec \ 31696lt_cv_truncate_bin \ 31697lt_prog_compiler_no_builtin_flag \ 31698lt_prog_compiler_pic \ 31699lt_prog_compiler_wl \ 31700lt_prog_compiler_static \ 31701lt_cv_prog_compiler_c_o \ 31702need_locks \ 31703MANIFEST_TOOL \ 31704DSYMUTIL \ 31705NMEDIT \ 31706LIPO \ 31707OTOOL \ 31708OTOOL64 \ 31709shrext_cmds \ 31710export_dynamic_flag_spec \ 31711whole_archive_flag_spec \ 31712compiler_needs_object \ 31713with_gnu_ld \ 31714allow_undefined_flag \ 31715no_undefined_flag \ 31716hardcode_libdir_flag_spec \ 31717hardcode_libdir_separator \ 31718exclude_expsyms \ 31719include_expsyms \ 31720file_list_spec \ 31721variables_saved_for_relink \ 31722libname_spec \ 31723library_names_spec \ 31724soname_spec \ 31725install_override_mode \ 31726finish_eval \ 31727old_striplib \ 31728striplib \ 31729compiler_lib_search_dirs \ 31730predep_objects \ 31731postdep_objects \ 31732predeps \ 31733postdeps \ 31734compiler_lib_search_path \ 31735LD_CXX \ 31736reload_flag_CXX \ 31737compiler_CXX \ 31738lt_prog_compiler_no_builtin_flag_CXX \ 31739lt_prog_compiler_pic_CXX \ 31740lt_prog_compiler_wl_CXX \ 31741lt_prog_compiler_static_CXX \ 31742lt_cv_prog_compiler_c_o_CXX \ 31743export_dynamic_flag_spec_CXX \ 31744whole_archive_flag_spec_CXX \ 31745compiler_needs_object_CXX \ 31746with_gnu_ld_CXX \ 31747allow_undefined_flag_CXX \ 31748no_undefined_flag_CXX \ 31749hardcode_libdir_flag_spec_CXX \ 31750hardcode_libdir_separator_CXX \ 31751exclude_expsyms_CXX \ 31752include_expsyms_CXX \ 31753file_list_spec_CXX \ 31754compiler_lib_search_dirs_CXX \ 31755predep_objects_CXX \ 31756postdep_objects_CXX \ 31757predeps_CXX \ 31758postdeps_CXX \ 31759compiler_lib_search_path_CXX; do 31760 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 31761 *[\\\\\\\`\\"\\\$]*) 31762 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 31763 ;; 31764 *) 31765 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 31766 ;; 31767 esac 31768done 31769 31770# Double-quote double-evaled strings. 31771for var in reload_cmds \ 31772old_postinstall_cmds \ 31773old_postuninstall_cmds \ 31774old_archive_cmds \ 31775extract_expsyms_cmds \ 31776old_archive_from_new_cmds \ 31777old_archive_from_expsyms_cmds \ 31778archive_cmds \ 31779archive_expsym_cmds \ 31780module_cmds \ 31781module_expsym_cmds \ 31782export_symbols_cmds \ 31783prelink_cmds \ 31784postlink_cmds \ 31785postinstall_cmds \ 31786postuninstall_cmds \ 31787finish_cmds \ 31788sys_lib_search_path_spec \ 31789configure_time_dlsearch_path \ 31790configure_time_lt_sys_library_path \ 31791reload_cmds_CXX \ 31792old_archive_cmds_CXX \ 31793old_archive_from_new_cmds_CXX \ 31794old_archive_from_expsyms_cmds_CXX \ 31795archive_cmds_CXX \ 31796archive_expsym_cmds_CXX \ 31797module_cmds_CXX \ 31798module_expsym_cmds_CXX \ 31799export_symbols_cmds_CXX \ 31800prelink_cmds_CXX \ 31801postlink_cmds_CXX; do 31802 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 31803 *[\\\\\\\`\\"\\\$]*) 31804 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 31805 ;; 31806 *) 31807 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 31808 ;; 31809 esac 31810done 31811 31812ac_aux_dir='$ac_aux_dir' 31813 31814# See if we are running on zsh, and set the options that allow our 31815# commands through without removal of \ escapes INIT. 31816if test -n "\${ZSH_VERSION+set}"; then 31817 setopt NO_GLOB_SUBST 31818fi 31819 31820 31821 PACKAGE='$PACKAGE' 31822 VERSION='$VERSION' 31823 RM='$RM' 31824 ofile='$ofile' 31825 31826 31827 31828 31829 31830GNUmakefile=$GNUmakefile 31831 31832_ACEOF 31833 31834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31835 31836# Handling of arguments. 31837for ac_config_target in $ac_config_targets 31838do 31839 case $ac_config_target in 31840 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 31841 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 31842 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 31843 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;; 31844 "src/version.cc") CONFIG_FILES="$CONFIG_FILES src/version.cc" ;; 31845 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 31846 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;; 31847 "gl/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gl/lib/Makefile" ;; 31848 "gl/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gl/doc/Makefile" ;; 31849 "gl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gl/tests/Makefile" ;; 31850 "testutils/Makefile") CONFIG_FILES="$CONFIG_FILES testutils/Makefile" ;; 31851 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 31852 "src/sccsdiff.sh") CONFIG_FILES="$CONFIG_FILES src/sccsdiff.sh" ;; 31853 "unit-tests/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/Makefile" ;; 31854 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 31855 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 31856 "testutils/decompress_stdin.sh") CONFIG_FILES="$CONFIG_FILES testutils/decompress_stdin.sh" ;; 31857 "auxfiles/Makefile") CONFIG_FILES="$CONFIG_FILES auxfiles/Makefile" ;; 31858 "auxfiles/CSSC.spec") CONFIG_FILES="$CONFIG_FILES auxfiles/CSSC.spec" ;; 31859 "sccs-cgi/Makefile") CONFIG_FILES="$CONFIG_FILES sccs-cgi/Makefile" ;; 31860 "docs/config-info.texi") CONFIG_FILES="$CONFIG_FILES docs/config-info.texi" ;; 31861 "unit-tests/testwrapper.sh") CONFIG_FILES="$CONFIG_FILES unit-tests/testwrapper.sh" ;; 31862 31863 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 31864 esac 31865done 31866 31867 31868# If the user did not use the arguments to specify the items to instantiate, 31869# then the envvar interface is used. Set only those that are not. 31870# We use the long form for the default assignment because of an extremely 31871# bizarre bug on SunOS 4.1.3. 31872if $ac_need_defaults; then 31873 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 31874 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 31875 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 31876 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 31877fi 31878 31879# Have a temporary directory for convenience. Make it in the build tree 31880# simply because there is no reason against having it here, and in addition, 31881# creating and moving files from /tmp can sometimes cause problems. 31882# Hook for its removal unless debugging. 31883# Note that there is a small window in which the directory will not be cleaned: 31884# after its creation but before its name has been assigned to `$tmp'. 31885$debug || 31886{ 31887 tmp= ac_tmp= 31888 trap 'exit_status=$? 31889 : "${ac_tmp:=$tmp}" 31890 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 31891' 0 31892 trap 'as_fn_exit 1' 1 2 13 15 31893} 31894# Create a (secure) tmp directory for tmp files. 31895 31896{ 31897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 31898 test -d "$tmp" 31899} || 31900{ 31901 tmp=./conf$$-$RANDOM 31902 (umask 077 && mkdir "$tmp") 31903} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 31904ac_tmp=$tmp 31905 31906# Set up the scripts for CONFIG_FILES section. 31907# No need to generate them if there are no CONFIG_FILES. 31908# This happens for instance with `./config.status config.h'. 31909if test -n "$CONFIG_FILES"; then 31910 31911 31912ac_cr=`echo X | tr X '\015'` 31913# On cygwin, bash can eat \r inside `` if the user requested igncr. 31914# But we know of no other shell where ac_cr would be empty at this 31915# point, so we can use a bashism as a fallback. 31916if test "x$ac_cr" = x; then 31917 eval ac_cr=\$\'\\r\' 31918fi 31919ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 31920if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 31921 ac_cs_awk_cr='\\r' 31922else 31923 ac_cs_awk_cr=$ac_cr 31924fi 31925 31926echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 31927_ACEOF 31928 31929 31930{ 31931 echo "cat >conf$$subs.awk <<_ACEOF" && 31932 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 31933 echo "_ACEOF" 31934} >conf$$subs.sh || 31935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31936ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 31937ac_delim='%!_!# ' 31938for ac_last_try in false false false false false :; do 31939 . ./conf$$subs.sh || 31940 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31941 31942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 31943 if test $ac_delim_n = $ac_delim_num; then 31944 break 31945 elif $ac_last_try; then 31946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31947 else 31948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 31949 fi 31950done 31951rm -f conf$$subs.sh 31952 31953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31954cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 31955_ACEOF 31956sed -n ' 31957h 31958s/^/S["/; s/!.*/"]=/ 31959p 31960g 31961s/^[^!]*!// 31962:repl 31963t repl 31964s/'"$ac_delim"'$// 31965t delim 31966:nl 31967h 31968s/\(.\{148\}\)..*/\1/ 31969t more1 31970s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 31971p 31972n 31973b repl 31974:more1 31975s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 31976p 31977g 31978s/.\{148\}// 31979t nl 31980:delim 31981h 31982s/\(.\{148\}\)..*/\1/ 31983t more2 31984s/["\\]/\\&/g; s/^/"/; s/$/"/ 31985p 31986b 31987:more2 31988s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 31989p 31990g 31991s/.\{148\}// 31992t delim 31993' <conf$$subs.awk | sed ' 31994/^[^""]/{ 31995 N 31996 s/\n// 31997} 31998' >>$CONFIG_STATUS || ac_write_fail=1 31999rm -f conf$$subs.awk 32000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32001_ACAWK 32002cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 32003 for (key in S) S_is_set[key] = 1 32004 FS = "" 32005 32006} 32007{ 32008 line = $ 0 32009 nfields = split(line, field, "@") 32010 substed = 0 32011 len = length(field[1]) 32012 for (i = 2; i < nfields; i++) { 32013 key = field[i] 32014 keylen = length(key) 32015 if (S_is_set[key]) { 32016 value = S[key] 32017 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 32018 len += length(value) + length(field[++i]) 32019 substed = 1 32020 } else 32021 len += 1 + keylen 32022 } 32023 32024 print line 32025} 32026 32027_ACAWK 32028_ACEOF 32029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32030if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 32031 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 32032else 32033 cat 32034fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 32035 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 32036_ACEOF 32037 32038# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 32039# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 32040# trailing colons and then remove the whole line if VPATH becomes empty 32041# (actually we leave an empty line to preserve line numbers). 32042if test "x$srcdir" = x.; then 32043 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 32044h 32045s/// 32046s/^/:/ 32047s/[ ]*$/:/ 32048s/:\$(srcdir):/:/g 32049s/:\${srcdir}:/:/g 32050s/:@srcdir@:/:/g 32051s/^:*// 32052s/:*$// 32053x 32054s/\(=[ ]*\).*/\1/ 32055G 32056s/\n// 32057s/^[^=]*=[ ]*$// 32058}' 32059fi 32060 32061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32062fi # test -n "$CONFIG_FILES" 32063 32064# Set up the scripts for CONFIG_HEADERS section. 32065# No need to generate them if there are no CONFIG_HEADERS. 32066# This happens for instance with `./config.status Makefile'. 32067if test -n "$CONFIG_HEADERS"; then 32068cat >"$ac_tmp/defines.awk" <<\_ACAWK || 32069BEGIN { 32070_ACEOF 32071 32072# Transform confdefs.h into an awk script `defines.awk', embedded as 32073# here-document in config.status, that substitutes the proper values into 32074# config.h.in to produce config.h. 32075 32076# Create a delimiter string that does not exist in confdefs.h, to ease 32077# handling of long lines. 32078ac_delim='%!_!# ' 32079for ac_last_try in false false :; do 32080 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 32081 if test -z "$ac_tt"; then 32082 break 32083 elif $ac_last_try; then 32084 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 32085 else 32086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 32087 fi 32088done 32089 32090# For the awk script, D is an array of macro values keyed by name, 32091# likewise P contains macro parameters if any. Preserve backslash 32092# newline sequences. 32093 32094ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 32095sed -n ' 32096s/.\{148\}/&'"$ac_delim"'/g 32097t rset 32098:rset 32099s/^[ ]*#[ ]*define[ ][ ]*/ / 32100t def 32101d 32102:def 32103s/\\$// 32104t bsnl 32105s/["\\]/\\&/g 32106s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 32107D["\1"]=" \3"/p 32108s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 32109d 32110:bsnl 32111s/["\\]/\\&/g 32112s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 32113D["\1"]=" \3\\\\\\n"\\/p 32114t cont 32115s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 32116t cont 32117d 32118:cont 32119n 32120s/.\{148\}/&'"$ac_delim"'/g 32121t clear 32122:clear 32123s/\\$// 32124t bsnlc 32125s/["\\]/\\&/g; s/^/"/; s/$/"/p 32126d 32127:bsnlc 32128s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 32129b cont 32130' <confdefs.h | sed ' 32131s/'"$ac_delim"'/"\\\ 32132"/g' >>$CONFIG_STATUS || ac_write_fail=1 32133 32134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32135 for (key in D) D_is_set[key] = 1 32136 FS = "" 32137} 32138/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 32139 line = \$ 0 32140 split(line, arg, " ") 32141 if (arg[1] == "#") { 32142 defundef = arg[2] 32143 mac1 = arg[3] 32144 } else { 32145 defundef = substr(arg[1], 2) 32146 mac1 = arg[2] 32147 } 32148 split(mac1, mac2, "(") #) 32149 macro = mac2[1] 32150 prefix = substr(line, 1, index(line, defundef) - 1) 32151 if (D_is_set[macro]) { 32152 # Preserve the white space surrounding the "#". 32153 print prefix "define", macro P[macro] D[macro] 32154 next 32155 } else { 32156 # Replace #undef with comments. This is necessary, for example, 32157 # in the case of _POSIX_SOURCE, which is predefined and required 32158 # on some systems where configure will not decide to define it. 32159 if (defundef == "undef") { 32160 print "/*", prefix defundef, macro, "*/" 32161 next 32162 } 32163 } 32164} 32165{ print } 32166_ACAWK 32167_ACEOF 32168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32169 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 32170fi # test -n "$CONFIG_HEADERS" 32171 32172 32173eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 32174shift 32175for ac_tag 32176do 32177 case $ac_tag in 32178 :[FHLC]) ac_mode=$ac_tag; continue;; 32179 esac 32180 case $ac_mode$ac_tag in 32181 :[FHL]*:*);; 32182 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 32183 :[FH]-) ac_tag=-:-;; 32184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 32185 esac 32186 ac_save_IFS=$IFS 32187 IFS=: 32188 set x $ac_tag 32189 IFS=$ac_save_IFS 32190 shift 32191 ac_file=$1 32192 shift 32193 32194 case $ac_mode in 32195 :L) ac_source=$1;; 32196 :[FH]) 32197 ac_file_inputs= 32198 for ac_f 32199 do 32200 case $ac_f in 32201 -) ac_f="$ac_tmp/stdin";; 32202 *) # Look for the file first in the build tree, then in the source tree 32203 # (if the path is not absolute). The absolute path cannot be DOS-style, 32204 # because $ac_f cannot contain `:'. 32205 test -f "$ac_f" || 32206 case $ac_f in 32207 [\\/$]*) false;; 32208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 32209 esac || 32210 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 32211 esac 32212 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 32213 as_fn_append ac_file_inputs " '$ac_f'" 32214 done 32215 32216 # Let's still pretend it is `configure' which instantiates (i.e., don't 32217 # use $as_me), people would be surprised to read: 32218 # /* config.h. Generated by config.status. */ 32219 configure_input='Generated from '` 32220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 32221 `' by configure.' 32222 if test x"$ac_file" != x-; then 32223 configure_input="$ac_file. $configure_input" 32224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 32225$as_echo "$as_me: creating $ac_file" >&6;} 32226 fi 32227 # Neutralize special characters interpreted by sed in replacement strings. 32228 case $configure_input in #( 32229 *\&* | *\|* | *\\* ) 32230 ac_sed_conf_input=`$as_echo "$configure_input" | 32231 sed 's/[\\\\&|]/\\\\&/g'`;; #( 32232 *) ac_sed_conf_input=$configure_input;; 32233 esac 32234 32235 case $ac_tag in 32236 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 32237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 32238 esac 32239 ;; 32240 esac 32241 32242 ac_dir=`$as_dirname -- "$ac_file" || 32243$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32244 X"$ac_file" : 'X\(//\)[^/]' \| \ 32245 X"$ac_file" : 'X\(//\)$' \| \ 32246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 32247$as_echo X"$ac_file" | 32248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32249 s//\1/ 32250 q 32251 } 32252 /^X\(\/\/\)[^/].*/{ 32253 s//\1/ 32254 q 32255 } 32256 /^X\(\/\/\)$/{ 32257 s//\1/ 32258 q 32259 } 32260 /^X\(\/\).*/{ 32261 s//\1/ 32262 q 32263 } 32264 s/.*/./; q'` 32265 as_dir="$ac_dir"; as_fn_mkdir_p 32266 ac_builddir=. 32267 32268case "$ac_dir" in 32269.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 32270*) 32271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 32272 # A ".." for each directory in $ac_dir_suffix. 32273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 32274 case $ac_top_builddir_sub in 32275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 32276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 32277 esac ;; 32278esac 32279ac_abs_top_builddir=$ac_pwd 32280ac_abs_builddir=$ac_pwd$ac_dir_suffix 32281# for backward compatibility: 32282ac_top_builddir=$ac_top_build_prefix 32283 32284case $srcdir in 32285 .) # We are building in place. 32286 ac_srcdir=. 32287 ac_top_srcdir=$ac_top_builddir_sub 32288 ac_abs_top_srcdir=$ac_pwd ;; 32289 [\\/]* | ?:[\\/]* ) # Absolute name. 32290 ac_srcdir=$srcdir$ac_dir_suffix; 32291 ac_top_srcdir=$srcdir 32292 ac_abs_top_srcdir=$srcdir ;; 32293 *) # Relative name. 32294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 32295 ac_top_srcdir=$ac_top_build_prefix$srcdir 32296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 32297esac 32298ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 32299 32300 32301 case $ac_mode in 32302 :F) 32303 # 32304 # CONFIG_FILE 32305 # 32306 32307 case $INSTALL in 32308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 32309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 32310 esac 32311 ac_MKDIR_P=$MKDIR_P 32312 case $MKDIR_P in 32313 [\\/$]* | ?:[\\/]* ) ;; 32314 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 32315 esac 32316_ACEOF 32317 32318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32319# If the template does not know about datarootdir, expand it. 32320# FIXME: This hack should be removed a few years after 2.60. 32321ac_datarootdir_hack=; ac_datarootdir_seen= 32322ac_sed_dataroot=' 32323/datarootdir/ { 32324 p 32325 q 32326} 32327/@datadir@/p 32328/@docdir@/p 32329/@infodir@/p 32330/@localedir@/p 32331/@mandir@/p' 32332case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 32333*datarootdir*) ac_datarootdir_seen=yes;; 32334*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 32335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 32336$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 32337_ACEOF 32338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32339 ac_datarootdir_hack=' 32340 s&@datadir@&$datadir&g 32341 s&@docdir@&$docdir&g 32342 s&@infodir@&$infodir&g 32343 s&@localedir@&$localedir&g 32344 s&@mandir@&$mandir&g 32345 s&\\\${datarootdir}&$datarootdir&g' ;; 32346esac 32347_ACEOF 32348 32349# Neutralize VPATH when `$srcdir' = `.'. 32350# Shell code in configure.ac might set extrasub. 32351# FIXME: do we really want to maintain this feature? 32352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32353ac_sed_extra="$ac_vpsub 32354$extrasub 32355_ACEOF 32356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32357:t 32358/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 32359s|@configure_input@|$ac_sed_conf_input|;t t 32360s&@top_builddir@&$ac_top_builddir_sub&;t t 32361s&@top_build_prefix@&$ac_top_build_prefix&;t t 32362s&@srcdir@&$ac_srcdir&;t t 32363s&@abs_srcdir@&$ac_abs_srcdir&;t t 32364s&@top_srcdir@&$ac_top_srcdir&;t t 32365s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 32366s&@builddir@&$ac_builddir&;t t 32367s&@abs_builddir@&$ac_abs_builddir&;t t 32368s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 32369s&@INSTALL@&$ac_INSTALL&;t t 32370s&@MKDIR_P@&$ac_MKDIR_P&;t t 32371$ac_datarootdir_hack 32372" 32373eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 32374 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32375 32376test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 32377 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 32378 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 32379 "$ac_tmp/out"`; test -z "$ac_out"; } && 32380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 32381which seems to be undefined. Please make sure it is defined" >&5 32382$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 32383which seems to be undefined. Please make sure it is defined" >&2;} 32384 32385 rm -f "$ac_tmp/stdin" 32386 case $ac_file in 32387 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 32388 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 32389 esac \ 32390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32391 ;; 32392 :H) 32393 # 32394 # CONFIG_HEADER 32395 # 32396 if test x"$ac_file" != x-; then 32397 { 32398 $as_echo "/* $configure_input */" \ 32399 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 32400 } >"$ac_tmp/config.h" \ 32401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32402 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 32403 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 32404$as_echo "$as_me: $ac_file is unchanged" >&6;} 32405 else 32406 rm -f "$ac_file" 32407 mv "$ac_tmp/config.h" "$ac_file" \ 32408 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32409 fi 32410 else 32411 $as_echo "/* $configure_input */" \ 32412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 32413 || as_fn_error $? "could not create -" "$LINENO" 5 32414 fi 32415# Compute "$ac_file"'s index in $config_headers. 32416_am_arg="$ac_file" 32417_am_stamp_count=1 32418for _am_header in $config_headers :; do 32419 case $_am_header in 32420 $_am_arg | $_am_arg:* ) 32421 break ;; 32422 * ) 32423 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 32424 esac 32425done 32426echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 32427$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32428 X"$_am_arg" : 'X\(//\)[^/]' \| \ 32429 X"$_am_arg" : 'X\(//\)$' \| \ 32430 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 32431$as_echo X"$_am_arg" | 32432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32433 s//\1/ 32434 q 32435 } 32436 /^X\(\/\/\)[^/].*/{ 32437 s//\1/ 32438 q 32439 } 32440 /^X\(\/\/\)$/{ 32441 s//\1/ 32442 q 32443 } 32444 /^X\(\/\).*/{ 32445 s//\1/ 32446 q 32447 } 32448 s/.*/./; q'`/stamp-h$_am_stamp_count 32449 ;; 32450 :L) 32451 # 32452 # CONFIG_LINK 32453 # 32454 32455 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 32456 : 32457 else 32458 # Prefer the file from the source tree if names are identical. 32459 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 32460 ac_source=$srcdir/$ac_source 32461 fi 32462 32463 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 32464$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 32465 32466 if test ! -r "$ac_source"; then 32467 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 32468 fi 32469 rm -f "$ac_file" 32470 32471 # Try a relative symlink, then a hard link, then a copy. 32472 case $ac_source in 32473 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 32474 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 32475 esac 32476 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 32477 ln "$ac_source" "$ac_file" 2>/dev/null || 32478 cp -p "$ac_source" "$ac_file" || 32479 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 32480 fi 32481 ;; 32482 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 32483$as_echo "$as_me: executing $ac_file commands" >&6;} 32484 ;; 32485 esac 32486 32487 32488 case $ac_file$ac_mode in 32489 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 32490 # Older Autoconf quotes --file arguments for eval, but not when files 32491 # are listed without --file. Let's play safe and only enable the eval 32492 # if we detect the quoting. 32493 case $CONFIG_FILES in 32494 *\'*) eval set x "$CONFIG_FILES" ;; 32495 *) set x $CONFIG_FILES ;; 32496 esac 32497 shift 32498 for mf 32499 do 32500 # Strip MF so we end up with the name of the file. 32501 mf=`echo "$mf" | sed -e 's/:.*$//'` 32502 # Check whether this is an Automake generated Makefile or not. 32503 # We used to match only the files named 'Makefile.in', but 32504 # some people rename them; so instead we look at the file content. 32505 # Grep'ing the first line is not enough: some people post-process 32506 # each Makefile.in and add a new line on top of each file to say so. 32507 # Grep'ing the whole file is not good either: AIX grep has a line 32508 # limit of 2048, but all sed's we know have understand at least 4000. 32509 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 32510 dirpart=`$as_dirname -- "$mf" || 32511$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32512 X"$mf" : 'X\(//\)[^/]' \| \ 32513 X"$mf" : 'X\(//\)$' \| \ 32514 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 32515$as_echo X"$mf" | 32516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32517 s//\1/ 32518 q 32519 } 32520 /^X\(\/\/\)[^/].*/{ 32521 s//\1/ 32522 q 32523 } 32524 /^X\(\/\/\)$/{ 32525 s//\1/ 32526 q 32527 } 32528 /^X\(\/\).*/{ 32529 s//\1/ 32530 q 32531 } 32532 s/.*/./; q'` 32533 else 32534 continue 32535 fi 32536 # Extract the definition of DEPDIR, am__include, and am__quote 32537 # from the Makefile without running 'make'. 32538 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 32539 test -z "$DEPDIR" && continue 32540 am__include=`sed -n 's/^am__include = //p' < "$mf"` 32541 test -z "$am__include" && continue 32542 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 32543 # Find all dependency output files, they are included files with 32544 # $(DEPDIR) in their names. We invoke sed twice because it is the 32545 # simplest approach to changing $(DEPDIR) to its actual value in the 32546 # expansion. 32547 for file in `sed -n " 32548 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 32549 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 32550 # Make sure the directory exists. 32551 test -f "$dirpart/$file" && continue 32552 fdir=`$as_dirname -- "$file" || 32553$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32554 X"$file" : 'X\(//\)[^/]' \| \ 32555 X"$file" : 'X\(//\)$' \| \ 32556 X"$file" : 'X\(/\)' \| . 2>/dev/null || 32557$as_echo X"$file" | 32558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32559 s//\1/ 32560 q 32561 } 32562 /^X\(\/\/\)[^/].*/{ 32563 s//\1/ 32564 q 32565 } 32566 /^X\(\/\/\)$/{ 32567 s//\1/ 32568 q 32569 } 32570 /^X\(\/\).*/{ 32571 s//\1/ 32572 q 32573 } 32574 s/.*/./; q'` 32575 as_dir=$dirpart/$fdir; as_fn_mkdir_p 32576 # echo "creating $dirpart/$file" 32577 echo '# dummy' > "$dirpart/$file" 32578 done 32579 done 32580} 32581 ;; 32582 "libtool":C) 32583 32584 # See if we are running on zsh, and set the options that allow our 32585 # commands through without removal of \ escapes. 32586 if test -n "${ZSH_VERSION+set}"; then 32587 setopt NO_GLOB_SUBST 32588 fi 32589 32590 cfgfile=${ofile}T 32591 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 32592 $RM "$cfgfile" 32593 32594 cat <<_LT_EOF >> "$cfgfile" 32595#! $SHELL 32596# Generated automatically by $as_me ($PACKAGE) $VERSION 32597# NOTE: Changes made to this file will be lost: look at ltmain.sh. 32598 32599# Provide generalized library-building support services. 32600# Written by Gordon Matzigkeit, 1996 32601 32602# Copyright (C) 2014 Free Software Foundation, Inc. 32603# This is free software; see the source for copying conditions. There is NO 32604# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 32605 32606# GNU Libtool is free software; you can redistribute it and/or modify 32607# it under the terms of the GNU General Public License as published by 32608# the Free Software Foundation; either version 2 of of the License, or 32609# (at your option) any later version. 32610# 32611# As a special exception to the GNU General Public License, if you 32612# distribute this file as part of a program or library that is built 32613# using GNU Libtool, you may include this file under the same 32614# distribution terms that you use for the rest of that program. 32615# 32616# GNU Libtool is distributed in the hope that it will be useful, but 32617# WITHOUT ANY WARRANTY; without even the implied warranty of 32618# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 32619# GNU General Public License for more details. 32620# 32621# You should have received a copy of the GNU General Public License 32622# along with this program. If not, see <http://www.gnu.org/licenses/>. 32623 32624 32625# The names of the tagged configurations supported by this script. 32626available_tags='CXX ' 32627 32628# Configured defaults for sys_lib_dlsearch_path munging. 32629: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 32630 32631# ### BEGIN LIBTOOL CONFIG 32632 32633# Which release of libtool.m4 was used? 32634macro_version=$macro_version 32635macro_revision=$macro_revision 32636 32637# Whether or not to build shared libraries. 32638build_libtool_libs=$enable_shared 32639 32640# Whether or not to build static libraries. 32641build_old_libs=$enable_static 32642 32643# What type of objects to build. 32644pic_mode=$pic_mode 32645 32646# Whether or not to optimize for fast installation. 32647fast_install=$enable_fast_install 32648 32649# Shared archive member basename,for filename based shared library versioning on AIX. 32650shared_archive_member_spec=$shared_archive_member_spec 32651 32652# Shell to use when invoking shell scripts. 32653SHELL=$lt_SHELL 32654 32655# An echo program that protects backslashes. 32656ECHO=$lt_ECHO 32657 32658# The PATH separator for the build system. 32659PATH_SEPARATOR=$lt_PATH_SEPARATOR 32660 32661# The host system. 32662host_alias=$host_alias 32663host=$host 32664host_os=$host_os 32665 32666# The build system. 32667build_alias=$build_alias 32668build=$build 32669build_os=$build_os 32670 32671# A sed program that does not truncate output. 32672SED=$lt_SED 32673 32674# Sed that helps us avoid accidentally triggering echo(1) options like -n. 32675Xsed="\$SED -e 1s/^X//" 32676 32677# A grep program that handles long lines. 32678GREP=$lt_GREP 32679 32680# An ERE matcher. 32681EGREP=$lt_EGREP 32682 32683# A literal string matcher. 32684FGREP=$lt_FGREP 32685 32686# A BSD- or MS-compatible name lister. 32687NM=$lt_NM 32688 32689# Whether we need soft or hard links. 32690LN_S=$lt_LN_S 32691 32692# What is the maximum length of a command? 32693max_cmd_len=$max_cmd_len 32694 32695# Object file suffix (normally "o"). 32696objext=$ac_objext 32697 32698# Executable file suffix (normally ""). 32699exeext=$exeext 32700 32701# whether the shell understands "unset". 32702lt_unset=$lt_unset 32703 32704# turn spaces into newlines. 32705SP2NL=$lt_lt_SP2NL 32706 32707# turn newlines into spaces. 32708NL2SP=$lt_lt_NL2SP 32709 32710# convert \$build file names to \$host format. 32711to_host_file_cmd=$lt_cv_to_host_file_cmd 32712 32713# convert \$build files to toolchain format. 32714to_tool_file_cmd=$lt_cv_to_tool_file_cmd 32715 32716# An object symbol dumper. 32717OBJDUMP=$lt_OBJDUMP 32718 32719# Method to check whether dependent libraries are shared objects. 32720deplibs_check_method=$lt_deplibs_check_method 32721 32722# Command to use when deplibs_check_method = "file_magic". 32723file_magic_cmd=$lt_file_magic_cmd 32724 32725# How to find potential files when deplibs_check_method = "file_magic". 32726file_magic_glob=$lt_file_magic_glob 32727 32728# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 32729want_nocaseglob=$lt_want_nocaseglob 32730 32731# DLL creation program. 32732DLLTOOL=$lt_DLLTOOL 32733 32734# Command to associate shared and link libraries. 32735sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 32736 32737# The archiver. 32738AR=$lt_AR 32739 32740# Flags to create an archive. 32741AR_FLAGS=$lt_AR_FLAGS 32742 32743# How to feed a file listing to the archiver. 32744archiver_list_spec=$lt_archiver_list_spec 32745 32746# A symbol stripping program. 32747STRIP=$lt_STRIP 32748 32749# Commands used to install an old-style archive. 32750RANLIB=$lt_RANLIB 32751old_postinstall_cmds=$lt_old_postinstall_cmds 32752old_postuninstall_cmds=$lt_old_postuninstall_cmds 32753 32754# Whether to use a lock for old archive extraction. 32755lock_old_archive_extraction=$lock_old_archive_extraction 32756 32757# A C compiler. 32758LTCC=$lt_CC 32759 32760# LTCC compiler flags. 32761LTCFLAGS=$lt_CFLAGS 32762 32763# Take the output of nm and produce a listing of raw symbols and C names. 32764global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 32765 32766# Transform the output of nm in a proper C declaration. 32767global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 32768 32769# Transform the output of nm into a list of symbols to manually relocate. 32770global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 32771 32772# Transform the output of nm in a C name address pair. 32773global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 32774 32775# Transform the output of nm in a C name address pair when lib prefix is needed. 32776global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 32777 32778# The name lister interface. 32779nm_interface=$lt_lt_cv_nm_interface 32780 32781# Specify filename containing input files for \$NM. 32782nm_file_list_spec=$lt_nm_file_list_spec 32783 32784# The root where to search for dependent libraries,and where our libraries should be installed. 32785lt_sysroot=$lt_sysroot 32786 32787# Command to truncate a binary pipe. 32788lt_truncate_bin=$lt_lt_cv_truncate_bin 32789 32790# The name of the directory that contains temporary libtool files. 32791objdir=$objdir 32792 32793# Used to examine libraries when file_magic_cmd begins with "file". 32794MAGIC_CMD=$MAGIC_CMD 32795 32796# Must we lock files when doing compilation? 32797need_locks=$lt_need_locks 32798 32799# Manifest tool. 32800MANIFEST_TOOL=$lt_MANIFEST_TOOL 32801 32802# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 32803DSYMUTIL=$lt_DSYMUTIL 32804 32805# Tool to change global to local symbols on Mac OS X. 32806NMEDIT=$lt_NMEDIT 32807 32808# Tool to manipulate fat objects and archives on Mac OS X. 32809LIPO=$lt_LIPO 32810 32811# ldd/readelf like tool for Mach-O binaries on Mac OS X. 32812OTOOL=$lt_OTOOL 32813 32814# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 32815OTOOL64=$lt_OTOOL64 32816 32817# Old archive suffix (normally "a"). 32818libext=$libext 32819 32820# Shared library suffix (normally ".so"). 32821shrext_cmds=$lt_shrext_cmds 32822 32823# The commands to extract the exported symbol list from a shared archive. 32824extract_expsyms_cmds=$lt_extract_expsyms_cmds 32825 32826# Variables whose values should be saved in libtool wrapper scripts and 32827# restored at link time. 32828variables_saved_for_relink=$lt_variables_saved_for_relink 32829 32830# Do we need the "lib" prefix for modules? 32831need_lib_prefix=$need_lib_prefix 32832 32833# Do we need a version for libraries? 32834need_version=$need_version 32835 32836# Library versioning type. 32837version_type=$version_type 32838 32839# Shared library runtime path variable. 32840runpath_var=$runpath_var 32841 32842# Shared library path variable. 32843shlibpath_var=$shlibpath_var 32844 32845# Is shlibpath searched before the hard-coded library search path? 32846shlibpath_overrides_runpath=$shlibpath_overrides_runpath 32847 32848# Format of library name prefix. 32849libname_spec=$lt_libname_spec 32850 32851# List of archive names. First name is the real one, the rest are links. 32852# The last name is the one that the linker finds with -lNAME 32853library_names_spec=$lt_library_names_spec 32854 32855# The coded name of the library, if different from the real name. 32856soname_spec=$lt_soname_spec 32857 32858# Permission mode override for installation of shared libraries. 32859install_override_mode=$lt_install_override_mode 32860 32861# Command to use after installation of a shared archive. 32862postinstall_cmds=$lt_postinstall_cmds 32863 32864# Command to use after uninstallation of a shared archive. 32865postuninstall_cmds=$lt_postuninstall_cmds 32866 32867# Commands used to finish a libtool library installation in a directory. 32868finish_cmds=$lt_finish_cmds 32869 32870# As "finish_cmds", except a single script fragment to be evaled but 32871# not shown. 32872finish_eval=$lt_finish_eval 32873 32874# Whether we should hardcode library paths into libraries. 32875hardcode_into_libs=$hardcode_into_libs 32876 32877# Compile-time system search path for libraries. 32878sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 32879 32880# Detected run-time system search path for libraries. 32881sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 32882 32883# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 32884configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 32885 32886# Whether dlopen is supported. 32887dlopen_support=$enable_dlopen 32888 32889# Whether dlopen of programs is supported. 32890dlopen_self=$enable_dlopen_self 32891 32892# Whether dlopen of statically linked programs is supported. 32893dlopen_self_static=$enable_dlopen_self_static 32894 32895# Commands to strip libraries. 32896old_striplib=$lt_old_striplib 32897striplib=$lt_striplib 32898 32899 32900# The linker used to build libraries. 32901LD=$lt_LD 32902 32903# How to create reloadable object files. 32904reload_flag=$lt_reload_flag 32905reload_cmds=$lt_reload_cmds 32906 32907# Commands used to build an old-style archive. 32908old_archive_cmds=$lt_old_archive_cmds 32909 32910# A language specific compiler. 32911CC=$lt_compiler 32912 32913# Is the compiler the GNU compiler? 32914with_gcc=$GCC 32915 32916# Compiler flag to turn off builtin functions. 32917no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 32918 32919# Additional compiler flags for building library objects. 32920pic_flag=$lt_lt_prog_compiler_pic 32921 32922# How to pass a linker flag through the compiler. 32923wl=$lt_lt_prog_compiler_wl 32924 32925# Compiler flag to prevent dynamic linking. 32926link_static_flag=$lt_lt_prog_compiler_static 32927 32928# Does compiler simultaneously support -c and -o options? 32929compiler_c_o=$lt_lt_cv_prog_compiler_c_o 32930 32931# Whether or not to add -lc for building shared libraries. 32932build_libtool_need_lc=$archive_cmds_need_lc 32933 32934# Whether or not to disallow shared libs when runtime libs are static. 32935allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 32936 32937# Compiler flag to allow reflexive dlopens. 32938export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 32939 32940# Compiler flag to generate shared objects directly from archives. 32941whole_archive_flag_spec=$lt_whole_archive_flag_spec 32942 32943# Whether the compiler copes with passing no objects directly. 32944compiler_needs_object=$lt_compiler_needs_object 32945 32946# Create an old-style archive from a shared archive. 32947old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 32948 32949# Create a temporary old-style archive to link instead of a shared archive. 32950old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 32951 32952# Commands used to build a shared archive. 32953archive_cmds=$lt_archive_cmds 32954archive_expsym_cmds=$lt_archive_expsym_cmds 32955 32956# Commands used to build a loadable module if different from building 32957# a shared archive. 32958module_cmds=$lt_module_cmds 32959module_expsym_cmds=$lt_module_expsym_cmds 32960 32961# Whether we are building with GNU ld or not. 32962with_gnu_ld=$lt_with_gnu_ld 32963 32964# Flag that allows shared libraries with undefined symbols to be built. 32965allow_undefined_flag=$lt_allow_undefined_flag 32966 32967# Flag that enforces no undefined symbols. 32968no_undefined_flag=$lt_no_undefined_flag 32969 32970# Flag to hardcode \$libdir into a binary during linking. 32971# This must work even if \$libdir does not exist 32972hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 32973 32974# Whether we need a single "-rpath" flag with a separated argument. 32975hardcode_libdir_separator=$lt_hardcode_libdir_separator 32976 32977# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 32978# DIR into the resulting binary. 32979hardcode_direct=$hardcode_direct 32980 32981# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 32982# DIR into the resulting binary and the resulting library dependency is 32983# "absolute",i.e impossible to change by setting \$shlibpath_var if the 32984# library is relocated. 32985hardcode_direct_absolute=$hardcode_direct_absolute 32986 32987# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 32988# into the resulting binary. 32989hardcode_minus_L=$hardcode_minus_L 32990 32991# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 32992# into the resulting binary. 32993hardcode_shlibpath_var=$hardcode_shlibpath_var 32994 32995# Set to "yes" if building a shared library automatically hardcodes DIR 32996# into the library and all subsequent libraries and executables linked 32997# against it. 32998hardcode_automatic=$hardcode_automatic 32999 33000# Set to yes if linker adds runtime paths of dependent libraries 33001# to runtime path list. 33002inherit_rpath=$inherit_rpath 33003 33004# Whether libtool must link a program against all its dependency libraries. 33005link_all_deplibs=$link_all_deplibs 33006 33007# Set to "yes" if exported symbols are required. 33008always_export_symbols=$always_export_symbols 33009 33010# The commands to list exported symbols. 33011export_symbols_cmds=$lt_export_symbols_cmds 33012 33013# Symbols that should not be listed in the preloaded symbols. 33014exclude_expsyms=$lt_exclude_expsyms 33015 33016# Symbols that must always be exported. 33017include_expsyms=$lt_include_expsyms 33018 33019# Commands necessary for linking programs (against libraries) with templates. 33020prelink_cmds=$lt_prelink_cmds 33021 33022# Commands necessary for finishing linking programs. 33023postlink_cmds=$lt_postlink_cmds 33024 33025# Specify filename containing input files. 33026file_list_spec=$lt_file_list_spec 33027 33028# How to hardcode a shared library path into an executable. 33029hardcode_action=$hardcode_action 33030 33031# The directories searched by this compiler when creating a shared library. 33032compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 33033 33034# Dependencies to place before and after the objects being linked to 33035# create a shared library. 33036predep_objects=$lt_predep_objects 33037postdep_objects=$lt_postdep_objects 33038predeps=$lt_predeps 33039postdeps=$lt_postdeps 33040 33041# The library search path used internally by the compiler when linking 33042# a shared library. 33043compiler_lib_search_path=$lt_compiler_lib_search_path 33044 33045# ### END LIBTOOL CONFIG 33046 33047_LT_EOF 33048 33049 cat <<'_LT_EOF' >> "$cfgfile" 33050 33051# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 33052 33053# func_munge_path_list VARIABLE PATH 33054# ----------------------------------- 33055# VARIABLE is name of variable containing _space_ separated list of 33056# directories to be munged by the contents of PATH, which is string 33057# having a format: 33058# "DIR[:DIR]:" 33059# string "DIR[ DIR]" will be prepended to VARIABLE 33060# ":DIR[:DIR]" 33061# string "DIR[ DIR]" will be appended to VARIABLE 33062# "DIRP[:DIRP]::[DIRA:]DIRA" 33063# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 33064# "DIRA[ DIRA]" will be appended to VARIABLE 33065# "DIR[:DIR]" 33066# VARIABLE will be replaced by "DIR[ DIR]" 33067func_munge_path_list () 33068{ 33069 case x$2 in 33070 x) 33071 ;; 33072 *:) 33073 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 33074 ;; 33075 x:*) 33076 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 33077 ;; 33078 *::*) 33079 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 33080 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 33081 ;; 33082 *) 33083 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 33084 ;; 33085 esac 33086} 33087 33088 33089# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 33090func_cc_basename () 33091{ 33092 for cc_temp in $*""; do 33093 case $cc_temp in 33094 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 33095 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 33096 \-*) ;; 33097 *) break;; 33098 esac 33099 done 33100 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 33101} 33102 33103 33104# ### END FUNCTIONS SHARED WITH CONFIGURE 33105 33106_LT_EOF 33107 33108 case $host_os in 33109 aix3*) 33110 cat <<\_LT_EOF >> "$cfgfile" 33111# AIX sometimes has problems with the GCC collect2 program. For some 33112# reason, if we set the COLLECT_NAMES environment variable, the problems 33113# vanish in a puff of smoke. 33114if test set != "${COLLECT_NAMES+set}"; then 33115 COLLECT_NAMES= 33116 export COLLECT_NAMES 33117fi 33118_LT_EOF 33119 ;; 33120 esac 33121 33122 33123ltmain=$ac_aux_dir/ltmain.sh 33124 33125 33126 # We use sed instead of cat because bash on DJGPP gets confused if 33127 # if finds mixed CR/LF and LF-only lines. Since sed operates in 33128 # text mode, it properly converts lines to CR/LF. This bash problem 33129 # is reportedly fixed, but why not run on old versions too? 33130 sed '$q' "$ltmain" >> "$cfgfile" \ 33131 || (rm -f "$cfgfile"; exit 1) 33132 33133 mv -f "$cfgfile" "$ofile" || 33134 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 33135 chmod +x "$ofile" 33136 33137 33138 cat <<_LT_EOF >> "$ofile" 33139 33140# ### BEGIN LIBTOOL TAG CONFIG: CXX 33141 33142# The linker used to build libraries. 33143LD=$lt_LD_CXX 33144 33145# How to create reloadable object files. 33146reload_flag=$lt_reload_flag_CXX 33147reload_cmds=$lt_reload_cmds_CXX 33148 33149# Commands used to build an old-style archive. 33150old_archive_cmds=$lt_old_archive_cmds_CXX 33151 33152# A language specific compiler. 33153CC=$lt_compiler_CXX 33154 33155# Is the compiler the GNU compiler? 33156with_gcc=$GCC_CXX 33157 33158# Compiler flag to turn off builtin functions. 33159no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 33160 33161# Additional compiler flags for building library objects. 33162pic_flag=$lt_lt_prog_compiler_pic_CXX 33163 33164# How to pass a linker flag through the compiler. 33165wl=$lt_lt_prog_compiler_wl_CXX 33166 33167# Compiler flag to prevent dynamic linking. 33168link_static_flag=$lt_lt_prog_compiler_static_CXX 33169 33170# Does compiler simultaneously support -c and -o options? 33171compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 33172 33173# Whether or not to add -lc for building shared libraries. 33174build_libtool_need_lc=$archive_cmds_need_lc_CXX 33175 33176# Whether or not to disallow shared libs when runtime libs are static. 33177allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 33178 33179# Compiler flag to allow reflexive dlopens. 33180export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 33181 33182# Compiler flag to generate shared objects directly from archives. 33183whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 33184 33185# Whether the compiler copes with passing no objects directly. 33186compiler_needs_object=$lt_compiler_needs_object_CXX 33187 33188# Create an old-style archive from a shared archive. 33189old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 33190 33191# Create a temporary old-style archive to link instead of a shared archive. 33192old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 33193 33194# Commands used to build a shared archive. 33195archive_cmds=$lt_archive_cmds_CXX 33196archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 33197 33198# Commands used to build a loadable module if different from building 33199# a shared archive. 33200module_cmds=$lt_module_cmds_CXX 33201module_expsym_cmds=$lt_module_expsym_cmds_CXX 33202 33203# Whether we are building with GNU ld or not. 33204with_gnu_ld=$lt_with_gnu_ld_CXX 33205 33206# Flag that allows shared libraries with undefined symbols to be built. 33207allow_undefined_flag=$lt_allow_undefined_flag_CXX 33208 33209# Flag that enforces no undefined symbols. 33210no_undefined_flag=$lt_no_undefined_flag_CXX 33211 33212# Flag to hardcode \$libdir into a binary during linking. 33213# This must work even if \$libdir does not exist 33214hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 33215 33216# Whether we need a single "-rpath" flag with a separated argument. 33217hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 33218 33219# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33220# DIR into the resulting binary. 33221hardcode_direct=$hardcode_direct_CXX 33222 33223# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33224# DIR into the resulting binary and the resulting library dependency is 33225# "absolute",i.e impossible to change by setting \$shlibpath_var if the 33226# library is relocated. 33227hardcode_direct_absolute=$hardcode_direct_absolute_CXX 33228 33229# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 33230# into the resulting binary. 33231hardcode_minus_L=$hardcode_minus_L_CXX 33232 33233# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 33234# into the resulting binary. 33235hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 33236 33237# Set to "yes" if building a shared library automatically hardcodes DIR 33238# into the library and all subsequent libraries and executables linked 33239# against it. 33240hardcode_automatic=$hardcode_automatic_CXX 33241 33242# Set to yes if linker adds runtime paths of dependent libraries 33243# to runtime path list. 33244inherit_rpath=$inherit_rpath_CXX 33245 33246# Whether libtool must link a program against all its dependency libraries. 33247link_all_deplibs=$link_all_deplibs_CXX 33248 33249# Set to "yes" if exported symbols are required. 33250always_export_symbols=$always_export_symbols_CXX 33251 33252# The commands to list exported symbols. 33253export_symbols_cmds=$lt_export_symbols_cmds_CXX 33254 33255# Symbols that should not be listed in the preloaded symbols. 33256exclude_expsyms=$lt_exclude_expsyms_CXX 33257 33258# Symbols that must always be exported. 33259include_expsyms=$lt_include_expsyms_CXX 33260 33261# Commands necessary for linking programs (against libraries) with templates. 33262prelink_cmds=$lt_prelink_cmds_CXX 33263 33264# Commands necessary for finishing linking programs. 33265postlink_cmds=$lt_postlink_cmds_CXX 33266 33267# Specify filename containing input files. 33268file_list_spec=$lt_file_list_spec_CXX 33269 33270# How to hardcode a shared library path into an executable. 33271hardcode_action=$hardcode_action_CXX 33272 33273# The directories searched by this compiler when creating a shared library. 33274compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 33275 33276# Dependencies to place before and after the objects being linked to 33277# create a shared library. 33278predep_objects=$lt_predep_objects_CXX 33279postdep_objects=$lt_postdep_objects_CXX 33280predeps=$lt_predeps_CXX 33281postdeps=$lt_postdeps_CXX 33282 33283# The library search path used internally by the compiler when linking 33284# a shared library. 33285compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 33286 33287# ### END LIBTOOL TAG CONFIG: CXX 33288_LT_EOF 33289 33290 ;; 33291 33292 esac 33293done # for ac_tag 33294 33295 33296as_fn_exit 0 33297_ACEOF 33298ac_clean_files=$ac_clean_files_save 33299 33300test $ac_write_fail = 0 || 33301 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 33302 33303 33304# configure is writing to config.log, and then calls config.status. 33305# config.status does its own redirection, appending to config.log. 33306# Unfortunately, on DOS this fails, as config.log is still kept open 33307# by configure, so config.status won't be able to write to it; its 33308# output is simply discarded. So we exec the FD to /dev/null, 33309# effectively closing config.log, so it can be properly (re)opened and 33310# appended to by config.status. When coming back to configure, we 33311# need to make the FD available again. 33312if test "$no_create" != yes; then 33313 ac_cs_success=: 33314 ac_config_status_args= 33315 test "$silent" = yes && 33316 ac_config_status_args="$ac_config_status_args --quiet" 33317 exec 5>/dev/null 33318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 33319 exec 5>>config.log 33320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 33321 # would make configure fail if this is the last instruction. 33322 $ac_cs_success || as_fn_exit 1 33323fi 33324if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 33325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 33326$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 33327fi 33328 33329