1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for dcmtk 3.6.6. 4# 5# Report bugs to <bugs@dcmtk.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 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and bugs@dcmtk.org 270$0: about your system, including any error possibly output 271$0: before this message. Then install a modern shell, or 272$0: manually run the script under such a shell if you do 273$0: have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='dcmtk' 582PACKAGE_TARNAME='dcmtk-3.6.6' 583PACKAGE_VERSION='3.6.6' 584PACKAGE_STRING='dcmtk 3.6.6' 585PACKAGE_BUGREPORT='bugs@dcmtk.org' 586PACKAGE_URL='http://www.dcmtk.org/' 587 588ac_unique_file="Makefile.in" 589ac_default_prefix=/usr/local 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='LTLIBOBJS 627DEBUG 628OPENJPEGLIBS 629ICONVLIBS 630SNDFILELIBS 631TCPWRAPPERLIBS 632XMLLIBS 633ZLIBLIBS 634MATHLIBS 635PNGLIBS 636TIFFLIBS 637OPENSSLLIBS 638HAVE_CXX11 639CHARCONVLIBS 640CHARCONVINCLUDES 641ICU_CONFIG 642LIBOBJS 643EGREP 644GREP 645STRIP 646BINEXT 647LIBEXT 648ARFLAGS 649LIBTOOL 650AR 651RANLIB 652CXXCPP 653ac_ct_CXX 654CXXFLAGS 655CXX 656CPP 657OBJEXT 658EXEEXT 659ac_ct_CC 660CPPFLAGS 661LDFLAGS 662CFLAGS 663CC 664INSTALL_DATA 665INSTALL_SCRIPT 666INSTALL_PROGRAM 667common_makefile 668SET_MAKE 669host_os 670host_vendor 671host_cpu 672host 673build_os 674build_vendor 675build_cpu 676build 677PACKAGE_DATE 678PACKAGE_VERSION_SUFFIX 679PACKAGE_VERSION_NUMBER 680target_alias 681host_alias 682build_alias 683LIBS 684ECHO_T 685ECHO_N 686ECHO_C 687DEFS 688mandir 689localedir 690libdir 691psdir 692pdfdir 693dvidir 694htmldir 695infodir 696docdir 697oldincludedir 698includedir 699runstatedir 700localstatedir 701sharedstatedir 702sysconfdir 703datadir 704datarootdir 705libexecdir 706sbindir 707bindir 708program_transform_name 709prefix 710exec_prefix 711PACKAGE_URL 712PACKAGE_BUGREPORT 713PACKAGE_STRING 714PACKAGE_VERSION 715PACKAGE_TARNAME 716PACKAGE_NAME 717PATH_SEPARATOR 718SHELL' 719ac_subst_files='' 720ac_user_opts=' 721enable_option_checking 722enable_debug 723enable_threads 724enable_lfs 725enable_std_includes 726enable_private_tags 727enable_external_dict 728enable_builtin_dict 729enable_rpath 730with_opensslinc 731with_openssl 732with_zlibinc 733with_zlib 734with_libtiffinc 735with_libtiff 736with_libpnginc 737with_libpng 738with_libxmlinc 739with_libxml 740with_libwrapinc 741with_libwrap 742with_openjpeginc 743with_libsndfileinc 744with_libsndfile 745with_libiconvinc 746with_libiconv 747with_libicuinc 748with_libicu 749enable_charconv 750enable_cxx11 751enable_stl 752enable_stl_vector 753enable_stl_algorithm 754enable_stl_limits 755enable_stl_list 756enable_stl_map 757enable_stl_memory 758enable_stl_stack 759enable_stl_string 760enable_stl_type_traits 761enable_stl_tuple 762enable_stl_system_error 763' 764 ac_precious_vars='build_alias 765host_alias 766target_alias 767CC 768CFLAGS 769LDFLAGS 770LIBS 771CPPFLAGS 772CPP 773CXX 774CXXFLAGS 775CCC 776CXXCPP' 777 778 779# Initialize some variables set by options. 780ac_init_help= 781ac_init_version=false 782ac_unrecognized_opts= 783ac_unrecognized_sep= 784# The variables have the same names as the options, with 785# dashes changed to underlines. 786cache_file=/dev/null 787exec_prefix=NONE 788no_create= 789no_recursion= 790prefix=NONE 791program_prefix=NONE 792program_suffix=NONE 793program_transform_name=s,x,x, 794silent= 795site= 796srcdir= 797verbose= 798x_includes=NONE 799x_libraries=NONE 800 801# Installation directory options. 802# These are left unexpanded so users can "make install exec_prefix=/foo" 803# and all the variables that are supposed to be based on exec_prefix 804# by default will actually change. 805# Use braces instead of parens because sh, perl, etc. also accept them. 806# (The list follows the same order as the GNU Coding Standards.) 807bindir='${exec_prefix}/bin' 808sbindir='${exec_prefix}/sbin' 809libexecdir='${exec_prefix}/libexec' 810datarootdir='${prefix}/share' 811datadir='${datarootdir}/dcmtk' 812sysconfdir='${prefix}/etc/dcmtk' 813sharedstatedir='${prefix}/com' 814localstatedir='${prefix}/var' 815runstatedir='${localstatedir}/run' 816includedir='${prefix}/include' 817oldincludedir='/usr/include' 818docdir='${datarootdir}/doc/dcmtk' 819infodir='${datarootdir}/info' 820htmldir='${docdir}/html' 821dvidir='${docdir}' 822pdfdir='${docdir}' 823psdir='${docdir}' 824libdir='${exec_prefix}/lib' 825localedir='${datarootdir}/locale' 826mandir='${datarootdir}/man' 827 828ac_prev= 829ac_dashdash= 830for ac_option 831do 832 # If the previous option needs an argument, assign it. 833 if test -n "$ac_prev"; then 834 eval $ac_prev=\$ac_option 835 ac_prev= 836 continue 837 fi 838 839 case $ac_option in 840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 841 *=) ac_optarg= ;; 842 *) ac_optarg=yes ;; 843 esac 844 845 # Accept the important Cygnus configure options, so we can diagnose typos. 846 847 case $ac_dashdash$ac_option in 848 --) 849 ac_dashdash=yes ;; 850 851 -bindir | --bindir | --bindi | --bind | --bin | --bi) 852 ac_prev=bindir ;; 853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 854 bindir=$ac_optarg ;; 855 856 -build | --build | --buil | --bui | --bu) 857 ac_prev=build_alias ;; 858 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 859 build_alias=$ac_optarg ;; 860 861 -cache-file | --cache-file | --cache-fil | --cache-fi \ 862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 863 ac_prev=cache_file ;; 864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 866 cache_file=$ac_optarg ;; 867 868 --config-cache | -C) 869 cache_file=config.cache ;; 870 871 -datadir | --datadir | --datadi | --datad) 872 ac_prev=datadir ;; 873 -datadir=* | --datadir=* | --datadi=* | --datad=*) 874 datadir=$ac_optarg ;; 875 876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 877 | --dataroo | --dataro | --datar) 878 ac_prev=datarootdir ;; 879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 881 datarootdir=$ac_optarg ;; 882 883 -disable-* | --disable-*) 884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 885 # Reject names that are not valid shell variable names. 886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 887 as_fn_error $? "invalid feature name: $ac_useropt" 888 ac_useropt_orig=$ac_useropt 889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 890 case $ac_user_opts in 891 *" 892"enable_$ac_useropt" 893"*) ;; 894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 895 ac_unrecognized_sep=', ';; 896 esac 897 eval enable_$ac_useropt=no ;; 898 899 -docdir | --docdir | --docdi | --doc | --do) 900 ac_prev=docdir ;; 901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 902 docdir=$ac_optarg ;; 903 904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 905 ac_prev=dvidir ;; 906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 907 dvidir=$ac_optarg ;; 908 909 -enable-* | --enable-*) 910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 911 # Reject names that are not valid shell variable names. 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 913 as_fn_error $? "invalid feature name: $ac_useropt" 914 ac_useropt_orig=$ac_useropt 915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 916 case $ac_user_opts in 917 *" 918"enable_$ac_useropt" 919"*) ;; 920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 921 ac_unrecognized_sep=', ';; 922 esac 923 eval enable_$ac_useropt=\$ac_optarg ;; 924 925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 927 | --exec | --exe | --ex) 928 ac_prev=exec_prefix ;; 929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 931 | --exec=* | --exe=* | --ex=*) 932 exec_prefix=$ac_optarg ;; 933 934 -gas | --gas | --ga | --g) 935 # Obsolete; use --with-gas. 936 with_gas=yes ;; 937 938 -help | --help | --hel | --he | -h) 939 ac_init_help=long ;; 940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 941 ac_init_help=recursive ;; 942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 943 ac_init_help=short ;; 944 945 -host | --host | --hos | --ho) 946 ac_prev=host_alias ;; 947 -host=* | --host=* | --hos=* | --ho=*) 948 host_alias=$ac_optarg ;; 949 950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 951 ac_prev=htmldir ;; 952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 953 | --ht=*) 954 htmldir=$ac_optarg ;; 955 956 -includedir | --includedir | --includedi | --included | --include \ 957 | --includ | --inclu | --incl | --inc) 958 ac_prev=includedir ;; 959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 960 | --includ=* | --inclu=* | --incl=* | --inc=*) 961 includedir=$ac_optarg ;; 962 963 -infodir | --infodir | --infodi | --infod | --info | --inf) 964 ac_prev=infodir ;; 965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 966 infodir=$ac_optarg ;; 967 968 -libdir | --libdir | --libdi | --libd) 969 ac_prev=libdir ;; 970 -libdir=* | --libdir=* | --libdi=* | --libd=*) 971 libdir=$ac_optarg ;; 972 973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 974 | --libexe | --libex | --libe) 975 ac_prev=libexecdir ;; 976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 977 | --libexe=* | --libex=* | --libe=*) 978 libexecdir=$ac_optarg ;; 979 980 -localedir | --localedir | --localedi | --localed | --locale) 981 ac_prev=localedir ;; 982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 983 localedir=$ac_optarg ;; 984 985 -localstatedir | --localstatedir | --localstatedi | --localstated \ 986 | --localstate | --localstat | --localsta | --localst | --locals) 987 ac_prev=localstatedir ;; 988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 990 localstatedir=$ac_optarg ;; 991 992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 993 ac_prev=mandir ;; 994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 995 mandir=$ac_optarg ;; 996 997 -nfp | --nfp | --nf) 998 # Obsolete; use --without-fp. 999 with_fp=no ;; 1000 1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1002 | --no-cr | --no-c | -n) 1003 no_create=yes ;; 1004 1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1007 no_recursion=yes ;; 1008 1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1011 | --oldin | --oldi | --old | --ol | --o) 1012 ac_prev=oldincludedir ;; 1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1016 oldincludedir=$ac_optarg ;; 1017 1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1019 ac_prev=prefix ;; 1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1021 prefix=$ac_optarg ;; 1022 1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1024 | --program-pre | --program-pr | --program-p) 1025 ac_prev=program_prefix ;; 1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1028 program_prefix=$ac_optarg ;; 1029 1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1031 | --program-suf | --program-su | --program-s) 1032 ac_prev=program_suffix ;; 1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1035 program_suffix=$ac_optarg ;; 1036 1037 -program-transform-name | --program-transform-name \ 1038 | --program-transform-nam | --program-transform-na \ 1039 | --program-transform-n | --program-transform- \ 1040 | --program-transform | --program-transfor \ 1041 | --program-transfo | --program-transf \ 1042 | --program-trans | --program-tran \ 1043 | --progr-tra | --program-tr | --program-t) 1044 ac_prev=program_transform_name ;; 1045 -program-transform-name=* | --program-transform-name=* \ 1046 | --program-transform-nam=* | --program-transform-na=* \ 1047 | --program-transform-n=* | --program-transform-=* \ 1048 | --program-transform=* | --program-transfor=* \ 1049 | --program-transfo=* | --program-transf=* \ 1050 | --program-trans=* | --program-tran=* \ 1051 | --progr-tra=* | --program-tr=* | --program-t=*) 1052 program_transform_name=$ac_optarg ;; 1053 1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1055 ac_prev=pdfdir ;; 1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1057 pdfdir=$ac_optarg ;; 1058 1059 -psdir | --psdir | --psdi | --psd | --ps) 1060 ac_prev=psdir ;; 1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1062 psdir=$ac_optarg ;; 1063 1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1065 | -silent | --silent | --silen | --sile | --sil) 1066 silent=yes ;; 1067 1068 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1069 | --runstate | --runstat | --runsta | --runst | --runs \ 1070 | --run | --ru | --r) 1071 ac_prev=runstatedir ;; 1072 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1073 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1074 | --run=* | --ru=* | --r=*) 1075 runstatedir=$ac_optarg ;; 1076 1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1078 ac_prev=sbindir ;; 1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1080 | --sbi=* | --sb=*) 1081 sbindir=$ac_optarg ;; 1082 1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1085 | --sharedst | --shareds | --shared | --share | --shar \ 1086 | --sha | --sh) 1087 ac_prev=sharedstatedir ;; 1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1091 | --sha=* | --sh=*) 1092 sharedstatedir=$ac_optarg ;; 1093 1094 -site | --site | --sit) 1095 ac_prev=site ;; 1096 -site=* | --site=* | --sit=*) 1097 site=$ac_optarg ;; 1098 1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1100 ac_prev=srcdir ;; 1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1102 srcdir=$ac_optarg ;; 1103 1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1105 | --syscon | --sysco | --sysc | --sys | --sy) 1106 ac_prev=sysconfdir ;; 1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1109 sysconfdir=$ac_optarg ;; 1110 1111 -target | --target | --targe | --targ | --tar | --ta | --t) 1112 ac_prev=target_alias ;; 1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1114 target_alias=$ac_optarg ;; 1115 1116 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1117 verbose=yes ;; 1118 1119 -version | --version | --versio | --versi | --vers | -V) 1120 ac_init_version=: ;; 1121 1122 -with-* | --with-*) 1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1124 # Reject names that are not valid shell variable names. 1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1126 as_fn_error $? "invalid package name: $ac_useropt" 1127 ac_useropt_orig=$ac_useropt 1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1129 case $ac_user_opts in 1130 *" 1131"with_$ac_useropt" 1132"*) ;; 1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1134 ac_unrecognized_sep=', ';; 1135 esac 1136 eval with_$ac_useropt=\$ac_optarg ;; 1137 1138 -without-* | --without-*) 1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1140 # Reject names that are not valid shell variable names. 1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1142 as_fn_error $? "invalid package name: $ac_useropt" 1143 ac_useropt_orig=$ac_useropt 1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1145 case $ac_user_opts in 1146 *" 1147"with_$ac_useropt" 1148"*) ;; 1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1150 ac_unrecognized_sep=', ';; 1151 esac 1152 eval with_$ac_useropt=no ;; 1153 1154 --x) 1155 # Obsolete; use --with-x. 1156 with_x=yes ;; 1157 1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1159 | --x-incl | --x-inc | --x-in | --x-i) 1160 ac_prev=x_includes ;; 1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1163 x_includes=$ac_optarg ;; 1164 1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1167 ac_prev=x_libraries ;; 1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1170 x_libraries=$ac_optarg ;; 1171 1172 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1173Try \`$0 --help' for more information" 1174 ;; 1175 1176 *=*) 1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1178 # Reject names that are not valid shell variable names. 1179 case $ac_envvar in #( 1180 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1182 esac 1183 eval $ac_envvar=\$ac_optarg 1184 export $ac_envvar ;; 1185 1186 *) 1187 # FIXME: should be removed in autoconf 3.0. 1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1192 ;; 1193 1194 esac 1195done 1196 1197if test -n "$ac_prev"; then 1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1199 as_fn_error $? "missing argument to $ac_option" 1200fi 1201 1202if test -n "$ac_unrecognized_opts"; then 1203 case $enable_option_checking in 1204 no) ;; 1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1207 esac 1208fi 1209 1210# Check all directory arguments for consistency. 1211for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1212 datadir sysconfdir sharedstatedir localstatedir includedir \ 1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1214 libdir localedir mandir runstatedir 1215do 1216 eval ac_val=\$$ac_var 1217 # Remove trailing slashes. 1218 case $ac_val in 1219 */ ) 1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1221 eval $ac_var=\$ac_val;; 1222 esac 1223 # Be sure to have absolute directory names. 1224 case $ac_val in 1225 [\\/$]* | ?:[\\/]* ) continue;; 1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1227 esac 1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1229done 1230 1231# There might be people who depend on the old broken behavior: `$host' 1232# used to hold the argument of --host etc. 1233# FIXME: To remove some day. 1234build=$build_alias 1235host=$host_alias 1236target=$target_alias 1237 1238# FIXME: To remove some day. 1239if test "x$host_alias" != x; then 1240 if test "x$build_alias" = x; then 1241 cross_compiling=maybe 1242 elif test "x$build_alias" != "x$host_alias"; then 1243 cross_compiling=yes 1244 fi 1245fi 1246 1247ac_tool_prefix= 1248test -n "$host_alias" && ac_tool_prefix=$host_alias- 1249 1250test "$silent" = yes && exec 6>/dev/null 1251 1252 1253ac_pwd=`pwd` && test -n "$ac_pwd" && 1254ac_ls_di=`ls -di .` && 1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1256 as_fn_error $? "working directory cannot be determined" 1257test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1258 as_fn_error $? "pwd does not report name of working directory" 1259 1260 1261# Find the source files, if location was not specified. 1262if test -z "$srcdir"; then 1263 ac_srcdir_defaulted=yes 1264 # Try the directory containing this script, then the parent directory. 1265 ac_confdir=`$as_dirname -- "$as_myself" || 1266$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1267 X"$as_myself" : 'X\(//\)[^/]' \| \ 1268 X"$as_myself" : 'X\(//\)$' \| \ 1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1270$as_echo X"$as_myself" | 1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1272 s//\1/ 1273 q 1274 } 1275 /^X\(\/\/\)[^/].*/{ 1276 s//\1/ 1277 q 1278 } 1279 /^X\(\/\/\)$/{ 1280 s//\1/ 1281 q 1282 } 1283 /^X\(\/\).*/{ 1284 s//\1/ 1285 q 1286 } 1287 s/.*/./; q'` 1288 srcdir=$ac_confdir 1289 if test ! -r "$srcdir/$ac_unique_file"; then 1290 srcdir=.. 1291 fi 1292else 1293 ac_srcdir_defaulted=no 1294fi 1295if test ! -r "$srcdir/$ac_unique_file"; then 1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1298fi 1299ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1300ac_abs_confdir=`( 1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1302 pwd)` 1303# When building in place, set srcdir=. 1304if test "$ac_abs_confdir" = "$ac_pwd"; then 1305 srcdir=. 1306fi 1307# Remove unnecessary trailing slashes from srcdir. 1308# Double slashes in file names in object file debugging info 1309# mess up M-x gdb in Emacs. 1310case $srcdir in 1311*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1312esac 1313for ac_var in $ac_precious_vars; do 1314 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1315 eval ac_env_${ac_var}_value=\$${ac_var} 1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1317 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1318done 1319 1320# 1321# Report the --help message. 1322# 1323if test "$ac_init_help" = "long"; then 1324 # Omit some internal or obsolete options to make the list less imposing. 1325 # This message is too long to be a string in the A/UX 3.1 sh. 1326 cat <<_ACEOF 1327\`configure' configures dcmtk 3.6.6 to adapt to many kinds of systems. 1328 1329Usage: $0 [OPTION]... [VAR=VALUE]... 1330 1331To assign environment variables (e.g., CC, CFLAGS...), specify them as 1332VAR=VALUE. See below for descriptions of some of the useful variables. 1333 1334Defaults for the options are specified in brackets. 1335 1336Configuration: 1337 -h, --help display this help and exit 1338 --help=short display options specific to this package 1339 --help=recursive display the short help of all the included packages 1340 -V, --version display version information and exit 1341 -q, --quiet, --silent do not print \`checking ...' messages 1342 --cache-file=FILE cache test results in FILE [disabled] 1343 -C, --config-cache alias for \`--cache-file=config.cache' 1344 -n, --no-create do not create output files 1345 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1346 1347Installation directories: 1348 --prefix=PREFIX install architecture-independent files in PREFIX 1349 [$ac_default_prefix] 1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1351 [PREFIX] 1352 1353By default, \`make install' will install all the files in 1354\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1355an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1356for instance \`--prefix=\$HOME'. 1357 1358For better control, use the options below. 1359 1360Fine tuning of the installation directories: 1361 --bindir=DIR user executables [EPREFIX/bin] 1362 --sbindir=DIR system admin executables [EPREFIX/sbin] 1363 --libexecdir=DIR program executables [EPREFIX/libexec] 1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc/dcmtk] 1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1367 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1368 --libdir=DIR object code libraries [EPREFIX/lib] 1369 --includedir=DIR C header files [PREFIX/include] 1370 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1372 --datadir=DIR read-only arch.-independent data [DATAROOTDIR/dcmtk] 1373 --infodir=DIR info documentation [DATAROOTDIR/info] 1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1375 --mandir=DIR man documentation [DATAROOTDIR/man] 1376 --docdir=DIR documentation root [DATAROOTDIR/doc/dcmtk] 1377 --htmldir=DIR html documentation [DOCDIR/html] 1378 --dvidir=DIR dvi documentation [DOCDIR] 1379 --pdfdir=DIR pdf documentation [DOCDIR] 1380 --psdir=DIR ps documentation [DOCDIR] 1381_ACEOF 1382 1383 cat <<\_ACEOF 1384 1385System types: 1386 --build=BUILD configure for building on BUILD [guessed] 1387 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1388_ACEOF 1389fi 1390 1391if test -n "$ac_init_help"; then 1392 case $ac_init_help in 1393 short | recursive ) echo "Configuration of dcmtk 3.6.6:";; 1394 esac 1395 cat <<\_ACEOF 1396 1397Optional Features: 1398 --disable-option-checking ignore unrecognized --enable/--with options 1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1401 --enable-debug compile with debug code, don't optimize 1402 --disable-debug compile without debug code (default) 1403 --enable-threads=TYPE compile with MT support (posix/solaris/auto=default) 1404 --disable-threads compile without MT support 1405 --enable-lfs=TYPE compile with LFS support (lfs/lfs64/auto=default) 1406 --disable-lfs compile without LFS support 1407 --enable-std-includes use C++ ANSI standard includes (default: auto) 1408 --disable-std-includes use old C++ includes 1409 --enable-private-tags enable private tag dictionary 1410 --disable-private-tags don't enable private tag dictionary (default) 1411 --enable-external-dict enable loading of external dictionary (default) 1412 --disable-external-dict don't load external dictionary 1413 --enable-builtin-dict enable loading of built-in dictionary 1414 --disable-builtin-dict don't load built-in dictionary (default) 1415 --disable-rpath do not hardcode runtime library paths 1416 --enable-charconv=TYPE enable character set conversion support 1417 (libiconv/libicu/stdlibc/auto=default) 1418 --disable-charconv disable character set conversion support 1419 --enable-cxx11 use C++11 1420 --disable-cxx11 do not use C++11 (default) 1421 --enable-stl use C++ STL 1422 --disable-stl do not use C++ STL (default) 1423 --enable-stl-vector use C++ STL vector 1424 --disable-stl-vector do not use C++ STL vector 1425 --enable-stl-algorithm use C++ STL algorithm 1426 --disable-stl-algorithm do not use C++ STL algorithm 1427 --enable-stl-limits use C++ STL limits 1428 --disable-stl-limits do not use C++ STL limits 1429 --enable-stl-list use C++ STL list 1430 --disable-stl-list do not use C++ STL list 1431 --enable-stl-map use C++ STL map 1432 --disable-stl-map do not use C++ STL map 1433 --enable-stl-memory use C++ STL memory 1434 --disable-stl-memory do not use C++ STL memory 1435 --enable-stl-stack use C++ STL stack 1436 --disable-stl-stack do not use C++ STL stack 1437 --enable-stl-string use C++ STL string 1438 --disable-stl-string do not use C++ STL string 1439 --enable-stl-type-traits 1440 use C++ STL type-traits 1441 --disable-stl-type-traits 1442 do not use C++ STL type-traits 1443 --enable-stl-tuple use C++ STL tuple 1444 --disable-stl-tuple do not use C++ STL tuple 1445 --enable-stl-system-error 1446 use C++ STL system_error 1447 --disable-stl-system_error 1448 do not use C++ STL system_error 1449 1450Optional Packages: 1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1453 --with-opensslinc=DIR location of OpenSSL includes and libraries 1454 --with-openssl include OpenSSL support (default: auto) 1455 --without-openssl don't include OpenSSL support 1456 --with-zlibinc=DIR location of zlib includes and libraries 1457 --with-zlib include zlib support (default: auto) 1458 --without-zlib don't include zlib support 1459 --with-libtiffinc=DIR location of libtiff includes and libraries 1460 --with-libtiff include libtiff support (default: auto) 1461 --without-libtiff don't include libtiff support 1462 --with-libpnginc=DIR location of libpng includes and libraries 1463 --with-libpng include libpng support (default: auto) 1464 --without-libpng don't include libpng support 1465 --with-libxmlinc=DIR location of libxml includes and libraries 1466 --with-libxml include libxml support (default: auto) 1467 --without-libxml don't include libxml support 1468 --with-libwrapinc=DIR location of libwrap includes and libraries 1469 --with-libwrap include libwrap support (default: auto) 1470 --without-libwrap don't include libwrap support 1471 --with-openjpeginc=DIR location of OpenJPEG includes and libraries (MUST be 1472 specified, otherwise OpenJPEG will not be found) 1473 --with-openjpeg include OpenJPEG support (default: auto) 1474 --without-openjpeg don't include OpenJPEG support 1475 --with-libsndfileinc=DIR 1476 location of libsndfile includes and libraries 1477 --with-libsndfile include libsndfile support (default: auto) 1478 --without-libsndfile don't include libsndfile support 1479 --with-libiconvinc=DIR location of libiconv includes and libraries 1480 --with-libiconv include libiconv support (default: auto) 1481 --without-libiconv don't include libiconv support 1482 --with-libicuinc=DIR location of libicu includes and libraries 1483 --with-libicu include libicu support (default: auto) 1484 --without-libicu don't include libicu support 1485 1486Some influential environment variables: 1487 CC C compiler command 1488 CFLAGS C compiler flags 1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1490 nonstandard directory <lib dir> 1491 LIBS libraries to pass to the linker, e.g. -l<library> 1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1493 you have headers in a nonstandard directory <include dir> 1494 CPP C preprocessor 1495 CXX C++ compiler command 1496 CXXFLAGS C++ compiler flags 1497 CXXCPP C++ preprocessor 1498 1499Use these variables to override the choices made by `configure' or to help 1500it to find libraries and programs with nonstandard names/locations. 1501 1502Report bugs to <bugs@dcmtk.org>. 1503dcmtk home page: <http://www.dcmtk.org/>. 1504_ACEOF 1505ac_status=$? 1506fi 1507 1508if test "$ac_init_help" = "recursive"; then 1509 # If there are subdirs, report their specific --help. 1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1511 test -d "$ac_dir" || 1512 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1513 continue 1514 ac_builddir=. 1515 1516case "$ac_dir" in 1517.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1518*) 1519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1520 # A ".." for each directory in $ac_dir_suffix. 1521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1522 case $ac_top_builddir_sub in 1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1525 esac ;; 1526esac 1527ac_abs_top_builddir=$ac_pwd 1528ac_abs_builddir=$ac_pwd$ac_dir_suffix 1529# for backward compatibility: 1530ac_top_builddir=$ac_top_build_prefix 1531 1532case $srcdir in 1533 .) # We are building in place. 1534 ac_srcdir=. 1535 ac_top_srcdir=$ac_top_builddir_sub 1536 ac_abs_top_srcdir=$ac_pwd ;; 1537 [\\/]* | ?:[\\/]* ) # Absolute name. 1538 ac_srcdir=$srcdir$ac_dir_suffix; 1539 ac_top_srcdir=$srcdir 1540 ac_abs_top_srcdir=$srcdir ;; 1541 *) # Relative name. 1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1543 ac_top_srcdir=$ac_top_build_prefix$srcdir 1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1545esac 1546ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1547 1548 cd "$ac_dir" || { ac_status=$?; continue; } 1549 # Check for guested configure. 1550 if test -f "$ac_srcdir/configure.gnu"; then 1551 echo && 1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1553 elif test -f "$ac_srcdir/configure"; then 1554 echo && 1555 $SHELL "$ac_srcdir/configure" --help=recursive 1556 else 1557 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1558 fi || ac_status=$? 1559 cd "$ac_pwd" || { ac_status=$?; break; } 1560 done 1561fi 1562 1563test -n "$ac_init_help" && exit $ac_status 1564if $ac_init_version; then 1565 cat <<\_ACEOF 1566dcmtk configure 3.6.6 1567generated by GNU Autoconf 2.69 1568 1569Copyright (C) 2012 Free Software Foundation, Inc. 1570This configure script is free software; the Free Software Foundation 1571gives unlimited permission to copy, distribute and modify it. 1572_ACEOF 1573 exit 1574fi 1575 1576## ------------------------ ## 1577## Autoconf initialization. ## 1578## ------------------------ ## 1579 1580# ac_fn_c_try_compile LINENO 1581# -------------------------- 1582# Try to compile conftest.$ac_ext, and return whether this succeeded. 1583ac_fn_c_try_compile () 1584{ 1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1586 rm -f conftest.$ac_objext 1587 if { { ac_try="$ac_compile" 1588case "(($ac_try" in 1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1590 *) ac_try_echo=$ac_try;; 1591esac 1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1593$as_echo "$ac_try_echo"; } >&5 1594 (eval "$ac_compile") 2>conftest.err 1595 ac_status=$? 1596 if test -s conftest.err; then 1597 grep -v '^ *+' conftest.err >conftest.er1 1598 cat conftest.er1 >&5 1599 mv -f conftest.er1 conftest.err 1600 fi 1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1602 test $ac_status = 0; } && { 1603 test -z "$ac_c_werror_flag" || 1604 test ! -s conftest.err 1605 } && test -s conftest.$ac_objext; then : 1606 ac_retval=0 1607else 1608 $as_echo "$as_me: failed program was:" >&5 1609sed 's/^/| /' conftest.$ac_ext >&5 1610 1611 ac_retval=1 1612fi 1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1614 as_fn_set_status $ac_retval 1615 1616} # ac_fn_c_try_compile 1617 1618# ac_fn_c_try_cpp LINENO 1619# ---------------------- 1620# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1621ac_fn_c_try_cpp () 1622{ 1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1624 if { { ac_try="$ac_cpp conftest.$ac_ext" 1625case "(($ac_try" in 1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1627 *) ac_try_echo=$ac_try;; 1628esac 1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1630$as_echo "$ac_try_echo"; } >&5 1631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1632 ac_status=$? 1633 if test -s conftest.err; then 1634 grep -v '^ *+' conftest.err >conftest.er1 1635 cat conftest.er1 >&5 1636 mv -f conftest.er1 conftest.err 1637 fi 1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1639 test $ac_status = 0; } > conftest.i && { 1640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1641 test ! -s conftest.err 1642 }; then : 1643 ac_retval=0 1644else 1645 $as_echo "$as_me: failed program was:" >&5 1646sed 's/^/| /' conftest.$ac_ext >&5 1647 1648 ac_retval=1 1649fi 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1651 as_fn_set_status $ac_retval 1652 1653} # ac_fn_c_try_cpp 1654 1655# ac_fn_cxx_try_compile LINENO 1656# ---------------------------- 1657# Try to compile conftest.$ac_ext, and return whether this succeeded. 1658ac_fn_cxx_try_compile () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 rm -f conftest.$ac_objext 1662 if { { ac_try="$ac_compile" 1663case "(($ac_try" in 1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1665 *) ac_try_echo=$ac_try;; 1666esac 1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1668$as_echo "$ac_try_echo"; } >&5 1669 (eval "$ac_compile") 2>conftest.err 1670 ac_status=$? 1671 if test -s conftest.err; then 1672 grep -v '^ *+' conftest.err >conftest.er1 1673 cat conftest.er1 >&5 1674 mv -f conftest.er1 conftest.err 1675 fi 1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1677 test $ac_status = 0; } && { 1678 test -z "$ac_cxx_werror_flag" || 1679 test ! -s conftest.err 1680 } && test -s conftest.$ac_objext; then : 1681 ac_retval=0 1682else 1683 $as_echo "$as_me: failed program was:" >&5 1684sed 's/^/| /' conftest.$ac_ext >&5 1685 1686 ac_retval=1 1687fi 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689 as_fn_set_status $ac_retval 1690 1691} # ac_fn_cxx_try_compile 1692 1693# ac_fn_cxx_try_cpp LINENO 1694# ------------------------ 1695# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1696ac_fn_cxx_try_cpp () 1697{ 1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1699 if { { ac_try="$ac_cpp conftest.$ac_ext" 1700case "(($ac_try" in 1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1702 *) ac_try_echo=$ac_try;; 1703esac 1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1705$as_echo "$ac_try_echo"; } >&5 1706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1707 ac_status=$? 1708 if test -s conftest.err; then 1709 grep -v '^ *+' conftest.err >conftest.er1 1710 cat conftest.er1 >&5 1711 mv -f conftest.er1 conftest.err 1712 fi 1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1714 test $ac_status = 0; } > conftest.i && { 1715 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1716 test ! -s conftest.err 1717 }; then : 1718 ac_retval=0 1719else 1720 $as_echo "$as_me: failed program was:" >&5 1721sed 's/^/| /' conftest.$ac_ext >&5 1722 1723 ac_retval=1 1724fi 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1726 as_fn_set_status $ac_retval 1727 1728} # ac_fn_cxx_try_cpp 1729 1730# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1731# ------------------------------------------------------- 1732# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1733# the include files in INCLUDES and setting the cache variable VAR 1734# accordingly. 1735ac_fn_c_check_header_mongrel () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 if eval \${$3+:} false; then : 1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1740$as_echo_n "checking for $2... " >&6; } 1741if eval \${$3+:} false; then : 1742 $as_echo_n "(cached) " >&6 1743fi 1744eval ac_res=\$$3 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1746$as_echo "$ac_res" >&6; } 1747else 1748 # Is the header compilable? 1749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1750$as_echo_n "checking $2 usability... " >&6; } 1751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1752/* end confdefs.h. */ 1753$4 1754#include <$2> 1755_ACEOF 1756if ac_fn_c_try_compile "$LINENO"; then : 1757 ac_header_compiler=yes 1758else 1759 ac_header_compiler=no 1760fi 1761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1763$as_echo "$ac_header_compiler" >&6; } 1764 1765# Is the header present? 1766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1767$as_echo_n "checking $2 presence... " >&6; } 1768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1769/* end confdefs.h. */ 1770#include <$2> 1771_ACEOF 1772if ac_fn_c_try_cpp "$LINENO"; then : 1773 ac_header_preproc=yes 1774else 1775 ac_header_preproc=no 1776fi 1777rm -f conftest.err conftest.i conftest.$ac_ext 1778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1779$as_echo "$ac_header_preproc" >&6; } 1780 1781# So? What about this header? 1782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1783 yes:no: ) 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1785$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1787$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1788 ;; 1789 no:yes:* ) 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1791$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1793$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1795$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1797$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1799$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1800( $as_echo "## ----------------------------- ## 1801## Report this to bugs@dcmtk.org ## 1802## ----------------------------- ##" 1803 ) | sed "s/^/$as_me: WARNING: /" >&2 1804 ;; 1805esac 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1807$as_echo_n "checking for $2... " >&6; } 1808if eval \${$3+:} false; then : 1809 $as_echo_n "(cached) " >&6 1810else 1811 eval "$3=\$ac_header_compiler" 1812fi 1813eval ac_res=\$$3 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1815$as_echo "$ac_res" >&6; } 1816fi 1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1818 1819} # ac_fn_c_check_header_mongrel 1820 1821# ac_fn_c_try_run LINENO 1822# ---------------------- 1823# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1824# that executables *can* be run. 1825ac_fn_c_try_run () 1826{ 1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1828 if { { ac_try="$ac_link" 1829case "(($ac_try" in 1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1831 *) ac_try_echo=$ac_try;; 1832esac 1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1834$as_echo "$ac_try_echo"; } >&5 1835 (eval "$ac_link") 2>&5 1836 ac_status=$? 1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1839 { { case "(($ac_try" in 1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1841 *) ac_try_echo=$ac_try;; 1842esac 1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1844$as_echo "$ac_try_echo"; } >&5 1845 (eval "$ac_try") 2>&5 1846 ac_status=$? 1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1848 test $ac_status = 0; }; }; then : 1849 ac_retval=0 1850else 1851 $as_echo "$as_me: program exited with status $ac_status" >&5 1852 $as_echo "$as_me: failed program was:" >&5 1853sed 's/^/| /' conftest.$ac_ext >&5 1854 1855 ac_retval=$ac_status 1856fi 1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1859 as_fn_set_status $ac_retval 1860 1861} # ac_fn_c_try_run 1862 1863# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1864# ------------------------------------------------------- 1865# Tests whether HEADER exists and can be compiled using the include files in 1866# INCLUDES, setting the cache variable VAR accordingly. 1867ac_fn_c_check_header_compile () 1868{ 1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1871$as_echo_n "checking for $2... " >&6; } 1872if eval \${$3+:} false; then : 1873 $as_echo_n "(cached) " >&6 1874else 1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1876/* end confdefs.h. */ 1877$4 1878#include <$2> 1879_ACEOF 1880if ac_fn_c_try_compile "$LINENO"; then : 1881 eval "$3=yes" 1882else 1883 eval "$3=no" 1884fi 1885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1886fi 1887eval ac_res=\$$3 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1889$as_echo "$ac_res" >&6; } 1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1891 1892} # ac_fn_c_check_header_compile 1893 1894# ac_fn_c_try_link LINENO 1895# ----------------------- 1896# Try to link conftest.$ac_ext, and return whether this succeeded. 1897ac_fn_c_try_link () 1898{ 1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1900 rm -f conftest.$ac_objext conftest$ac_exeext 1901 if { { ac_try="$ac_link" 1902case "(($ac_try" in 1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1904 *) ac_try_echo=$ac_try;; 1905esac 1906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1907$as_echo "$ac_try_echo"; } >&5 1908 (eval "$ac_link") 2>conftest.err 1909 ac_status=$? 1910 if test -s conftest.err; then 1911 grep -v '^ *+' conftest.err >conftest.er1 1912 cat conftest.er1 >&5 1913 mv -f conftest.er1 conftest.err 1914 fi 1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1916 test $ac_status = 0; } && { 1917 test -z "$ac_c_werror_flag" || 1918 test ! -s conftest.err 1919 } && test -s conftest$ac_exeext && { 1920 test "$cross_compiling" = yes || 1921 test -x conftest$ac_exeext 1922 }; then : 1923 ac_retval=0 1924else 1925 $as_echo "$as_me: failed program was:" >&5 1926sed 's/^/| /' conftest.$ac_ext >&5 1927 1928 ac_retval=1 1929fi 1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1932 # interfere with the next link command; also delete a directory that is 1933 # left behind by Apple's compiler. We do this before executing the actions. 1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1936 as_fn_set_status $ac_retval 1937 1938} # ac_fn_c_try_link 1939 1940# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1941# ------------------------------------------- 1942# Tests whether TYPE exists after having included INCLUDES, setting cache 1943# variable VAR accordingly. 1944ac_fn_c_check_type () 1945{ 1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1948$as_echo_n "checking for $2... " >&6; } 1949if eval \${$3+:} false; then : 1950 $as_echo_n "(cached) " >&6 1951else 1952 eval "$3=no" 1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1954/* end confdefs.h. */ 1955$4 1956int 1957main () 1958{ 1959if (sizeof ($2)) 1960 return 0; 1961 ; 1962 return 0; 1963} 1964_ACEOF 1965if ac_fn_c_try_compile "$LINENO"; then : 1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1967/* end confdefs.h. */ 1968$4 1969int 1970main () 1971{ 1972if (sizeof (($2))) 1973 return 0; 1974 ; 1975 return 0; 1976} 1977_ACEOF 1978if ac_fn_c_try_compile "$LINENO"; then : 1979 1980else 1981 eval "$3=yes" 1982fi 1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1984fi 1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1986fi 1987eval ac_res=\$$3 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1989$as_echo "$ac_res" >&6; } 1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1991 1992} # ac_fn_c_check_type 1993 1994# ac_fn_c_check_func LINENO FUNC VAR 1995# ---------------------------------- 1996# Tests whether FUNC exists, setting the cache variable VAR accordingly 1997ac_fn_c_check_func () 1998{ 1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2001$as_echo_n "checking for $2... " >&6; } 2002if eval \${$3+:} false; then : 2003 $as_echo_n "(cached) " >&6 2004else 2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2006/* end confdefs.h. */ 2007/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2008 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2009#define $2 innocuous_$2 2010 2011/* System header to define __stub macros and hopefully few prototypes, 2012 which can conflict with char $2 (); below. 2013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2014 <limits.h> exists even on freestanding compilers. */ 2015 2016#ifdef __STDC__ 2017# include <limits.h> 2018#else 2019# include <assert.h> 2020#endif 2021 2022#undef $2 2023 2024/* Override any GCC internal prototype to avoid an error. 2025 Use char because int might match the return type of a GCC 2026 builtin and then its argument prototype would still apply. */ 2027#ifdef __cplusplus 2028extern "C" 2029#endif 2030char $2 (); 2031/* The GNU C library defines this for functions which it implements 2032 to always fail with ENOSYS. Some functions are actually named 2033 something starting with __ and the normal name is an alias. */ 2034#if defined __stub_$2 || defined __stub___$2 2035choke me 2036#endif 2037 2038int 2039main () 2040{ 2041return $2 (); 2042 ; 2043 return 0; 2044} 2045_ACEOF 2046if ac_fn_c_try_link "$LINENO"; then : 2047 eval "$3=yes" 2048else 2049 eval "$3=no" 2050fi 2051rm -f core conftest.err conftest.$ac_objext \ 2052 conftest$ac_exeext conftest.$ac_ext 2053fi 2054eval ac_res=\$$3 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2056$as_echo "$ac_res" >&6; } 2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2058 2059} # ac_fn_c_check_func 2060 2061# ac_fn_cxx_try_link LINENO 2062# ------------------------- 2063# Try to link conftest.$ac_ext, and return whether this succeeded. 2064ac_fn_cxx_try_link () 2065{ 2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2067 rm -f conftest.$ac_objext conftest$ac_exeext 2068 if { { ac_try="$ac_link" 2069case "(($ac_try" in 2070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2071 *) ac_try_echo=$ac_try;; 2072esac 2073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2074$as_echo "$ac_try_echo"; } >&5 2075 (eval "$ac_link") 2>conftest.err 2076 ac_status=$? 2077 if test -s conftest.err; then 2078 grep -v '^ *+' conftest.err >conftest.er1 2079 cat conftest.er1 >&5 2080 mv -f conftest.er1 conftest.err 2081 fi 2082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2083 test $ac_status = 0; } && { 2084 test -z "$ac_cxx_werror_flag" || 2085 test ! -s conftest.err 2086 } && test -s conftest$ac_exeext && { 2087 test "$cross_compiling" = yes || 2088 test -x conftest$ac_exeext 2089 }; then : 2090 ac_retval=0 2091else 2092 $as_echo "$as_me: failed program was:" >&5 2093sed 's/^/| /' conftest.$ac_ext >&5 2094 2095 ac_retval=1 2096fi 2097 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2098 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2099 # interfere with the next link command; also delete a directory that is 2100 # left behind by Apple's compiler. We do this before executing the actions. 2101 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2103 as_fn_set_status $ac_retval 2104 2105} # ac_fn_cxx_try_link 2106 2107# ac_fn_cxx_try_run LINENO 2108# ------------------------ 2109# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2110# that executables *can* be run. 2111ac_fn_cxx_try_run () 2112{ 2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2114 if { { ac_try="$ac_link" 2115case "(($ac_try" in 2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2117 *) ac_try_echo=$ac_try;; 2118esac 2119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2120$as_echo "$ac_try_echo"; } >&5 2121 (eval "$ac_link") 2>&5 2122 ac_status=$? 2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2124 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2125 { { case "(($ac_try" in 2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2127 *) ac_try_echo=$ac_try;; 2128esac 2129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2130$as_echo "$ac_try_echo"; } >&5 2131 (eval "$ac_try") 2>&5 2132 ac_status=$? 2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2134 test $ac_status = 0; }; }; then : 2135 ac_retval=0 2136else 2137 $as_echo "$as_me: program exited with status $ac_status" >&5 2138 $as_echo "$as_me: failed program was:" >&5 2139sed 's/^/| /' conftest.$ac_ext >&5 2140 2141 ac_retval=$ac_status 2142fi 2143 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2145 as_fn_set_status $ac_retval 2146 2147} # ac_fn_cxx_try_run 2148 2149# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2150# --------------------------------------------------------- 2151# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2152# the include files in INCLUDES and setting the cache variable VAR 2153# accordingly. 2154ac_fn_cxx_check_header_mongrel () 2155{ 2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2157 if eval \${$3+:} false; then : 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2159$as_echo_n "checking for $2... " >&6; } 2160if eval \${$3+:} false; then : 2161 $as_echo_n "(cached) " >&6 2162fi 2163eval ac_res=\$$3 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2165$as_echo "$ac_res" >&6; } 2166else 2167 # Is the header compilable? 2168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2169$as_echo_n "checking $2 usability... " >&6; } 2170cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2171/* end confdefs.h. */ 2172$4 2173#include <$2> 2174_ACEOF 2175if ac_fn_cxx_try_compile "$LINENO"; then : 2176 ac_header_compiler=yes 2177else 2178 ac_header_compiler=no 2179fi 2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2182$as_echo "$ac_header_compiler" >&6; } 2183 2184# Is the header present? 2185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2186$as_echo_n "checking $2 presence... " >&6; } 2187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2188/* end confdefs.h. */ 2189#include <$2> 2190_ACEOF 2191if ac_fn_cxx_try_cpp "$LINENO"; then : 2192 ac_header_preproc=yes 2193else 2194 ac_header_preproc=no 2195fi 2196rm -f conftest.err conftest.i conftest.$ac_ext 2197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2198$as_echo "$ac_header_preproc" >&6; } 2199 2200# So? What about this header? 2201case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2202 yes:no: ) 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2204$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2206$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2207 ;; 2208 no:yes:* ) 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2210$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2212$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2214$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2216$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2218$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2219( $as_echo "## ----------------------------- ## 2220## Report this to bugs@dcmtk.org ## 2221## ----------------------------- ##" 2222 ) | sed "s/^/$as_me: WARNING: /" >&2 2223 ;; 2224esac 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2226$as_echo_n "checking for $2... " >&6; } 2227if eval \${$3+:} false; then : 2228 $as_echo_n "(cached) " >&6 2229else 2230 eval "$3=\$ac_header_compiler" 2231fi 2232eval ac_res=\$$3 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2234$as_echo "$ac_res" >&6; } 2235fi 2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2237 2238} # ac_fn_cxx_check_header_mongrel 2239 2240# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2241# ---------------------------------------------- 2242# Tries to find the compile-time value of EXPR in a program that includes 2243# INCLUDES, setting VAR accordingly. Returns whether the value could be 2244# computed 2245ac_fn_cxx_compute_int () 2246{ 2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2248 if test "$cross_compiling" = yes; then 2249 # Depending upon the size, compute the lo and hi bounds. 2250cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2251/* end confdefs.h. */ 2252$4 2253int 2254main () 2255{ 2256static int test_array [1 - 2 * !(($2) >= 0)]; 2257test_array [0] = 0; 2258return test_array [0]; 2259 2260 ; 2261 return 0; 2262} 2263_ACEOF 2264if ac_fn_cxx_try_compile "$LINENO"; then : 2265 ac_lo=0 ac_mid=0 2266 while :; do 2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2268/* end confdefs.h. */ 2269$4 2270int 2271main () 2272{ 2273static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2274test_array [0] = 0; 2275return test_array [0]; 2276 2277 ; 2278 return 0; 2279} 2280_ACEOF 2281if ac_fn_cxx_try_compile "$LINENO"; then : 2282 ac_hi=$ac_mid; break 2283else 2284 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2285 if test $ac_lo -le $ac_mid; then 2286 ac_lo= ac_hi= 2287 break 2288 fi 2289 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2290fi 2291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2292 done 2293else 2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2295/* end confdefs.h. */ 2296$4 2297int 2298main () 2299{ 2300static int test_array [1 - 2 * !(($2) < 0)]; 2301test_array [0] = 0; 2302return test_array [0]; 2303 2304 ; 2305 return 0; 2306} 2307_ACEOF 2308if ac_fn_cxx_try_compile "$LINENO"; then : 2309 ac_hi=-1 ac_mid=-1 2310 while :; do 2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2312/* end confdefs.h. */ 2313$4 2314int 2315main () 2316{ 2317static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2318test_array [0] = 0; 2319return test_array [0]; 2320 2321 ; 2322 return 0; 2323} 2324_ACEOF 2325if ac_fn_cxx_try_compile "$LINENO"; then : 2326 ac_lo=$ac_mid; break 2327else 2328 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2329 if test $ac_mid -le $ac_hi; then 2330 ac_lo= ac_hi= 2331 break 2332 fi 2333 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2334fi 2335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2336 done 2337else 2338 ac_lo= ac_hi= 2339fi 2340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2341fi 2342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2343# Binary search between lo and hi bounds. 2344while test "x$ac_lo" != "x$ac_hi"; do 2345 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2347/* end confdefs.h. */ 2348$4 2349int 2350main () 2351{ 2352static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2353test_array [0] = 0; 2354return test_array [0]; 2355 2356 ; 2357 return 0; 2358} 2359_ACEOF 2360if ac_fn_cxx_try_compile "$LINENO"; then : 2361 ac_hi=$ac_mid 2362else 2363 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2364fi 2365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2366done 2367case $ac_lo in #(( 2368?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2369'') ac_retval=1 ;; 2370esac 2371 else 2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2373/* end confdefs.h. */ 2374$4 2375static long int longval () { return $2; } 2376static unsigned long int ulongval () { return $2; } 2377#include <stdio.h> 2378#include <stdlib.h> 2379int 2380main () 2381{ 2382 2383 FILE *f = fopen ("conftest.val", "w"); 2384 if (! f) 2385 return 1; 2386 if (($2) < 0) 2387 { 2388 long int i = longval (); 2389 if (i != ($2)) 2390 return 1; 2391 fprintf (f, "%ld", i); 2392 } 2393 else 2394 { 2395 unsigned long int i = ulongval (); 2396 if (i != ($2)) 2397 return 1; 2398 fprintf (f, "%lu", i); 2399 } 2400 /* Do not output a trailing newline, as this causes \r\n confusion 2401 on some platforms. */ 2402 return ferror (f) || fclose (f) != 0; 2403 2404 ; 2405 return 0; 2406} 2407_ACEOF 2408if ac_fn_cxx_try_run "$LINENO"; then : 2409 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2410else 2411 ac_retval=1 2412fi 2413rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2414 conftest.$ac_objext conftest.beam conftest.$ac_ext 2415rm -f conftest.val 2416 2417 fi 2418 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2419 as_fn_set_status $ac_retval 2420 2421} # ac_fn_cxx_compute_int 2422cat >config.log <<_ACEOF 2423This file contains any messages produced by compilers while 2424running configure, to aid debugging if configure makes a mistake. 2425 2426It was created by dcmtk $as_me 3.6.6, which was 2427generated by GNU Autoconf 2.69. Invocation command line was 2428 2429 $ $0 $@ 2430 2431_ACEOF 2432exec 5>>config.log 2433{ 2434cat <<_ASUNAME 2435## --------- ## 2436## Platform. ## 2437## --------- ## 2438 2439hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2440uname -m = `(uname -m) 2>/dev/null || echo unknown` 2441uname -r = `(uname -r) 2>/dev/null || echo unknown` 2442uname -s = `(uname -s) 2>/dev/null || echo unknown` 2443uname -v = `(uname -v) 2>/dev/null || echo unknown` 2444 2445/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2446/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2447 2448/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2449/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2450/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2451/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2452/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2453/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2454/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2455 2456_ASUNAME 2457 2458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2459for as_dir in $PATH 2460do 2461 IFS=$as_save_IFS 2462 test -z "$as_dir" && as_dir=. 2463 $as_echo "PATH: $as_dir" 2464 done 2465IFS=$as_save_IFS 2466 2467} >&5 2468 2469cat >&5 <<_ACEOF 2470 2471 2472## ----------- ## 2473## Core tests. ## 2474## ----------- ## 2475 2476_ACEOF 2477 2478 2479# Keep a trace of the command line. 2480# Strip out --no-create and --no-recursion so they do not pile up. 2481# Strip out --silent because we don't want to record it for future runs. 2482# Also quote any args containing shell meta-characters. 2483# Make two passes to allow for proper duplicate-argument suppression. 2484ac_configure_args= 2485ac_configure_args0= 2486ac_configure_args1= 2487ac_must_keep_next=false 2488for ac_pass in 1 2 2489do 2490 for ac_arg 2491 do 2492 case $ac_arg in 2493 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2495 | -silent | --silent | --silen | --sile | --sil) 2496 continue ;; 2497 *\'*) 2498 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2499 esac 2500 case $ac_pass in 2501 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2502 2) 2503 as_fn_append ac_configure_args1 " '$ac_arg'" 2504 if test $ac_must_keep_next = true; then 2505 ac_must_keep_next=false # Got value, back to normal. 2506 else 2507 case $ac_arg in 2508 *=* | --config-cache | -C | -disable-* | --disable-* \ 2509 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2510 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2511 | -with-* | --with-* | -without-* | --without-* | --x) 2512 case "$ac_configure_args0 " in 2513 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2514 esac 2515 ;; 2516 -* ) ac_must_keep_next=true ;; 2517 esac 2518 fi 2519 as_fn_append ac_configure_args " '$ac_arg'" 2520 ;; 2521 esac 2522 done 2523done 2524{ ac_configure_args0=; unset ac_configure_args0;} 2525{ ac_configure_args1=; unset ac_configure_args1;} 2526 2527# When interrupted or exit'd, cleanup temporary files, and complete 2528# config.log. We remove comments because anyway the quotes in there 2529# would cause problems or look ugly. 2530# WARNING: Use '\'' to represent an apostrophe within the trap. 2531# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2532trap 'exit_status=$? 2533 # Save into config.log some information that might help in debugging. 2534 { 2535 echo 2536 2537 $as_echo "## ---------------- ## 2538## Cache variables. ## 2539## ---------------- ##" 2540 echo 2541 # The following way of writing the cache mishandles newlines in values, 2542( 2543 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2544 eval ac_val=\$$ac_var 2545 case $ac_val in #( 2546 *${as_nl}*) 2547 case $ac_var in #( 2548 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2549$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2550 esac 2551 case $ac_var in #( 2552 _ | IFS | as_nl) ;; #( 2553 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2554 *) { eval $ac_var=; unset $ac_var;} ;; 2555 esac ;; 2556 esac 2557 done 2558 (set) 2>&1 | 2559 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2560 *${as_nl}ac_space=\ *) 2561 sed -n \ 2562 "s/'\''/'\''\\\\'\'''\''/g; 2563 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2564 ;; #( 2565 *) 2566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2567 ;; 2568 esac | 2569 sort 2570) 2571 echo 2572 2573 $as_echo "## ----------------- ## 2574## Output variables. ## 2575## ----------------- ##" 2576 echo 2577 for ac_var in $ac_subst_vars 2578 do 2579 eval ac_val=\$$ac_var 2580 case $ac_val in 2581 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2582 esac 2583 $as_echo "$ac_var='\''$ac_val'\''" 2584 done | sort 2585 echo 2586 2587 if test -n "$ac_subst_files"; then 2588 $as_echo "## ------------------- ## 2589## File substitutions. ## 2590## ------------------- ##" 2591 echo 2592 for ac_var in $ac_subst_files 2593 do 2594 eval ac_val=\$$ac_var 2595 case $ac_val in 2596 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2597 esac 2598 $as_echo "$ac_var='\''$ac_val'\''" 2599 done | sort 2600 echo 2601 fi 2602 2603 if test -s confdefs.h; then 2604 $as_echo "## ----------- ## 2605## confdefs.h. ## 2606## ----------- ##" 2607 echo 2608 cat confdefs.h 2609 echo 2610 fi 2611 test "$ac_signal" != 0 && 2612 $as_echo "$as_me: caught signal $ac_signal" 2613 $as_echo "$as_me: exit $exit_status" 2614 } >&5 2615 rm -f core *.core core.conftest.* && 2616 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2617 exit $exit_status 2618' 0 2619for ac_signal in 1 2 13 15; do 2620 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2621done 2622ac_signal=0 2623 2624# confdefs.h avoids OS command line length limits that DEFS can exceed. 2625rm -f -r conftest* confdefs.h 2626 2627$as_echo "/* confdefs.h */" > confdefs.h 2628 2629# Predefined preprocessor variables. 2630 2631cat >>confdefs.h <<_ACEOF 2632#define PACKAGE_NAME "$PACKAGE_NAME" 2633_ACEOF 2634 2635cat >>confdefs.h <<_ACEOF 2636#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2637_ACEOF 2638 2639cat >>confdefs.h <<_ACEOF 2640#define PACKAGE_VERSION "$PACKAGE_VERSION" 2641_ACEOF 2642 2643cat >>confdefs.h <<_ACEOF 2644#define PACKAGE_STRING "$PACKAGE_STRING" 2645_ACEOF 2646 2647cat >>confdefs.h <<_ACEOF 2648#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2649_ACEOF 2650 2651cat >>confdefs.h <<_ACEOF 2652#define PACKAGE_URL "$PACKAGE_URL" 2653_ACEOF 2654 2655 2656# Let the site file select an alternate cache file if it wants to. 2657# Prefer an explicitly selected file to automatically selected ones. 2658ac_site_file1=NONE 2659ac_site_file2=NONE 2660if test -n "$CONFIG_SITE"; then 2661 # We do not want a PATH search for config.site. 2662 case $CONFIG_SITE in #(( 2663 -*) ac_site_file1=./$CONFIG_SITE;; 2664 */*) ac_site_file1=$CONFIG_SITE;; 2665 *) ac_site_file1=./$CONFIG_SITE;; 2666 esac 2667elif test "x$prefix" != xNONE; then 2668 ac_site_file1=$prefix/share/config.site 2669 ac_site_file2=$prefix/etc/config.site 2670else 2671 ac_site_file1=$ac_default_prefix/share/config.site 2672 ac_site_file2=$ac_default_prefix/etc/config.site 2673fi 2674for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2675do 2676 test "x$ac_site_file" = xNONE && continue 2677 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2679$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2680 sed 's/^/| /' "$ac_site_file" >&5 2681 . "$ac_site_file" \ 2682 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2684as_fn_error $? "failed to load site script $ac_site_file 2685See \`config.log' for more details" "$LINENO" 5; } 2686 fi 2687done 2688 2689if test -r "$cache_file"; then 2690 # Some versions of bash will fail to source /dev/null (special files 2691 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2692 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2694$as_echo "$as_me: loading cache $cache_file" >&6;} 2695 case $cache_file in 2696 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2697 *) . "./$cache_file";; 2698 esac 2699 fi 2700else 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2702$as_echo "$as_me: creating cache $cache_file" >&6;} 2703 >$cache_file 2704fi 2705 2706# Check that the precious variables saved in the cache have kept the same 2707# value. 2708ac_cache_corrupted=false 2709for ac_var in $ac_precious_vars; do 2710 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2711 eval ac_new_set=\$ac_env_${ac_var}_set 2712 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2713 eval ac_new_val=\$ac_env_${ac_var}_value 2714 case $ac_old_set,$ac_new_set in 2715 set,) 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2717$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2718 ac_cache_corrupted=: ;; 2719 ,set) 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2721$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2722 ac_cache_corrupted=: ;; 2723 ,);; 2724 *) 2725 if test "x$ac_old_val" != "x$ac_new_val"; then 2726 # differences in whitespace do not lead to failure. 2727 ac_old_val_w=`echo x $ac_old_val` 2728 ac_new_val_w=`echo x $ac_new_val` 2729 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2731$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2732 ac_cache_corrupted=: 2733 else 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2735$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2736 eval $ac_var=\$ac_old_val 2737 fi 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2739$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2741$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2742 fi;; 2743 esac 2744 # Pass precious variables to config.status. 2745 if test "$ac_new_set" = set; then 2746 case $ac_new_val in 2747 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2748 *) ac_arg=$ac_var=$ac_new_val ;; 2749 esac 2750 case " $ac_configure_args " in 2751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2752 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2753 esac 2754 fi 2755done 2756if $ac_cache_corrupted; then 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2759 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2760$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2761 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2762fi 2763## -------------------- ## 2764## Main body of script. ## 2765## -------------------- ## 2766 2767ac_ext=c 2768ac_cpp='$CPP $CPPFLAGS' 2769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2771ac_compiler_gnu=$ac_cv_c_compiler_gnu 2772 2773 2774 2775 2776ac_config_headers="$ac_config_headers include/dcmtk/config/osconfig.h" 2777 2778 2779# =========================================================================== 2780# https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html 2781# =========================================================================== 2782# 2783# SYNOPSIS 2784# 2785# AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional]) 2786# 2787# DESCRIPTION 2788# 2789# Check for baseline language coverage in the compiler for the specified 2790# version of the C++ standard. If necessary, add switches to CXX and 2791# CXXCPP to enable support. VERSION may be '11' (for the C++11 standard) 2792# or '14' (for the C++14 standard). 2793# 2794# The second argument, if specified, indicates whether you insist on an 2795# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. 2796# -std=c++11). If neither is specified, you get whatever works, with 2797# preference for an extended mode. 2798# 2799# The third argument, if specified 'mandatory' or if left unspecified, 2800# indicates that baseline support for the specified C++ standard is 2801# required and that the macro should error out if no mode with that 2802# support is found. If specified 'optional', then configuration proceeds 2803# regardless, after defining HAVE_CXX${VERSION} if and only if a 2804# supporting mode is found. 2805# 2806# LICENSE 2807# 2808# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com> 2809# Copyright (c) 2012 Zack Weinberg <zackw@panix.com> 2810# Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu> 2811# Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com> 2812# Copyright (c) 2015 Paul Norman <penorman@mac.com> 2813# Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu> 2814# Copyright (c) 2016 Krzesimir Nowak <qdlacz@gmail.com> 2815# 2816# Copying and distribution of this file, with or without modification, are 2817# permitted in any medium without royalty provided the copyright notice 2818# and this notice are preserved. This file is offered as-is, without any 2819# warranty. 2820 2821#serial 7 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848PACKAGE_VERSION_NUMBER=366 2849PACKAGE_VERSION_SUFFIX="" 2850PACKAGE_DATE="2021-01-14" 2851 2852 2853cat >>confdefs.h <<_ACEOF 2854#define PACKAGE_VERSION_NUMBER ${PACKAGE_VERSION_NUMBER} 2855_ACEOF 2856 2857 2858cat >>confdefs.h <<_ACEOF 2859#define PACKAGE_VERSION_SUFFIX "${PACKAGE_VERSION_SUFFIX}" 2860_ACEOF 2861 2862 2863cat >>confdefs.h <<_ACEOF 2864#define PACKAGE_DATE "${PACKAGE_DATE}" 2865_ACEOF 2866 2867 2868 2869 2870 2871 2872 2873ac_aux_dir= 2874for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2875 if test -f "$ac_dir/install-sh"; then 2876 ac_aux_dir=$ac_dir 2877 ac_install_sh="$ac_aux_dir/install-sh -c" 2878 break 2879 elif test -f "$ac_dir/install.sh"; then 2880 ac_aux_dir=$ac_dir 2881 ac_install_sh="$ac_aux_dir/install.sh -c" 2882 break 2883 elif test -f "$ac_dir/shtool"; then 2884 ac_aux_dir=$ac_dir 2885 ac_install_sh="$ac_aux_dir/shtool install -c" 2886 break 2887 fi 2888done 2889if test -z "$ac_aux_dir"; then 2890 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2891fi 2892 2893# These three variables are undocumented and unsupported, 2894# and are intended to be withdrawn in a future Autoconf release. 2895# They can cause serious problems if a builder's source tree is in a directory 2896# whose full name contains unusual characters. 2897ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2898ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2899ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2900 2901 2902# Make sure we can run config.sub. 2903$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2904 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2905 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2907$as_echo_n "checking build system type... " >&6; } 2908if ${ac_cv_build+:} false; then : 2909 $as_echo_n "(cached) " >&6 2910else 2911 ac_build_alias=$build_alias 2912test "x$ac_build_alias" = x && 2913 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2914test "x$ac_build_alias" = x && 2915 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2916ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2917 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2918 2919fi 2920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2921$as_echo "$ac_cv_build" >&6; } 2922case $ac_cv_build in 2923*-*-*) ;; 2924*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2925esac 2926build=$ac_cv_build 2927ac_save_IFS=$IFS; IFS='-' 2928set x $ac_cv_build 2929shift 2930build_cpu=$1 2931build_vendor=$2 2932shift; shift 2933# Remember, the first character of IFS is used to create $*, 2934# except with old shells: 2935build_os=$* 2936IFS=$ac_save_IFS 2937case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2938 2939 2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2941$as_echo_n "checking host system type... " >&6; } 2942if ${ac_cv_host+:} false; then : 2943 $as_echo_n "(cached) " >&6 2944else 2945 if test "x$host_alias" = x; then 2946 ac_cv_host=$ac_cv_build 2947else 2948 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2949 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2950fi 2951 2952fi 2953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2954$as_echo "$ac_cv_host" >&6; } 2955case $ac_cv_host in 2956*-*-*) ;; 2957*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2958esac 2959host=$ac_cv_host 2960ac_save_IFS=$IFS; IFS='-' 2961set x $ac_cv_host 2962shift 2963host_cpu=$1 2964host_vendor=$2 2965shift; shift 2966# Remember, the first character of IFS is used to create $*, 2967# except with old shells: 2968host_os=$* 2969IFS=$ac_save_IFS 2970case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2971 2972 2973 2974cat >>confdefs.h <<_ACEOF 2975#define CANONICAL_HOST_TYPE "${host}" 2976_ACEOF 2977 2978 2979case "${host}" in 2980 *-*-cygwin) 2981 BINEXT=".exe" 2982 ;; 2983 *-*-mingw32) 2984 BINEXT=".exe" 2985 ;; 2986 *) 2987 BINEXT="" 2988 ;; 2989esac 2990 2991 2992if test "x$prefix" = xNONE ; then 2993 2994cat >>confdefs.h <<_ACEOF 2995#define DCMTK_PREFIX "${ac_default_prefix}" 2996_ACEOF 2997 2998else 2999 3000cat >>confdefs.h <<_ACEOF 3001#define DCMTK_PREFIX "${prefix}" 3002_ACEOF 3003 3004fi 3005 3006DATA_DIR="${datadir}" 3007DATA_DIR=`( 3008 test "$prefix" = NONE && prefix=${ac_default_prefix} 3009 test "$exec_prefix" = NONE && exec_prefix=${prefix} 3010 eval eval echo "$DATA_DIR" 3011)` 3012 3013cat >>confdefs.h <<_ACEOF 3014#define DCM_DICT_DEFAULT_PATH "${DATA_DIR}/dicom.dic" 3015_ACEOF 3016 3017 3018cat >>confdefs.h <<_ACEOF 3019#define DEFAULT_SUPPORT_DATA_DIR "${DATA_DIR}/" 3020_ACEOF 3021 3022 3023CONF_DIR="${sysconfdir}" 3024CONF_DIR=`( 3025 test "$prefix" = NONE && prefix=${ac_default_prefix} 3026 test "$exec_prefix" = NONE && exec_prefix=${prefix} 3027 eval echo "$CONF_DIR" 3028)` 3029 3030cat >>confdefs.h <<_ACEOF 3031#define DEFAULT_CONFIGURATION_DIR "${CONF_DIR}/" 3032_ACEOF 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3048$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3049set x ${MAKE-make} 3050ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3051if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3052 $as_echo_n "(cached) " >&6 3053else 3054 cat >conftest.make <<\_ACEOF 3055SHELL = /bin/sh 3056all: 3057 @echo '@@@%%%=$(MAKE)=@@@%%%' 3058_ACEOF 3059# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3060case `${MAKE-make} -f conftest.make 2>/dev/null` in 3061 *@@@%%%=?*=@@@%%%*) 3062 eval ac_cv_prog_make_${ac_make}_set=yes;; 3063 *) 3064 eval ac_cv_prog_make_${ac_make}_set=no;; 3065esac 3066rm -f conftest.make 3067fi 3068if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3070$as_echo "yes" >&6; } 3071 SET_MAKE= 3072else 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3074$as_echo "no" >&6; } 3075 SET_MAKE="MAKE=${MAKE-make}" 3076fi 3077 3078 3079common_makefile=Makefile.def 3080 3081 3082ac_aux_dir= 3083for ac_dir in . "$srcdir"/.; do 3084 if test -f "$ac_dir/install-sh"; then 3085 ac_aux_dir=$ac_dir 3086 ac_install_sh="$ac_aux_dir/install-sh -c" 3087 break 3088 elif test -f "$ac_dir/install.sh"; then 3089 ac_aux_dir=$ac_dir 3090 ac_install_sh="$ac_aux_dir/install.sh -c" 3091 break 3092 elif test -f "$ac_dir/shtool"; then 3093 ac_aux_dir=$ac_dir 3094 ac_install_sh="$ac_aux_dir/shtool install -c" 3095 break 3096 fi 3097done 3098if test -z "$ac_aux_dir"; then 3099 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 3100fi 3101 3102# These three variables are undocumented and unsupported, 3103# and are intended to be withdrawn in a future Autoconf release. 3104# They can cause serious problems if a builder's source tree is in a directory 3105# whose full name contains unusual characters. 3106ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3107ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3108ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3109 3110 3111 3112 3113# Find a good install program. We prefer a C program (faster), 3114# so one script is as good as another. But avoid the broken or 3115# incompatible versions: 3116# SysV /etc/install, /usr/sbin/install 3117# SunOS /usr/etc/install 3118# IRIX /sbin/install 3119# AIX /bin/install 3120# AmigaOS /C/install, which installs bootblocks on floppy discs 3121# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3122# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3123# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3124# OS/2's system install, which has a completely different semantic 3125# ./install, which can be erroneously created by make from ./install.sh. 3126# Reject install programs that cannot install multiple files. 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3128$as_echo_n "checking for a BSD-compatible install... " >&6; } 3129if test -z "$INSTALL"; then 3130if ${ac_cv_path_install+:} false; then : 3131 $as_echo_n "(cached) " >&6 3132else 3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3134for as_dir in $PATH 3135do 3136 IFS=$as_save_IFS 3137 test -z "$as_dir" && as_dir=. 3138 # Account for people who put trailing slashes in PATH elements. 3139case $as_dir/ in #(( 3140 ./ | .// | /[cC]/* | \ 3141 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3142 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3143 /usr/ucb/* ) ;; 3144 *) 3145 # OSF1 and SCO ODT 3.0 have their own names for install. 3146 # Don't use installbsd from OSF since it installs stuff as root 3147 # by default. 3148 for ac_prog in ginstall scoinst install; do 3149 for ac_exec_ext in '' $ac_executable_extensions; do 3150 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3151 if test $ac_prog = install && 3152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3153 # AIX install. It has an incompatible calling convention. 3154 : 3155 elif test $ac_prog = install && 3156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3157 # program-specific install script used by HP pwplus--don't use. 3158 : 3159 else 3160 rm -rf conftest.one conftest.two conftest.dir 3161 echo one > conftest.one 3162 echo two > conftest.two 3163 mkdir conftest.dir 3164 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3165 test -s conftest.one && test -s conftest.two && 3166 test -s conftest.dir/conftest.one && 3167 test -s conftest.dir/conftest.two 3168 then 3169 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3170 break 3 3171 fi 3172 fi 3173 fi 3174 done 3175 done 3176 ;; 3177esac 3178 3179 done 3180IFS=$as_save_IFS 3181 3182rm -rf conftest.one conftest.two conftest.dir 3183 3184fi 3185 if test "${ac_cv_path_install+set}" = set; then 3186 INSTALL=$ac_cv_path_install 3187 else 3188 # As a last resort, use the slow shell script. Don't cache a 3189 # value for INSTALL within a source directory, because that will 3190 # break other packages using the cache if that directory is 3191 # removed, or if the value is a relative name. 3192 INSTALL=$ac_install_sh 3193 fi 3194fi 3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3196$as_echo "$INSTALL" >&6; } 3197 3198# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3199# It thinks the first close brace ends the variable substitution. 3200test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3201 3202test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3203 3204test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3205 3206ac_ext=c 3207ac_cpp='$CPP $CPPFLAGS' 3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3210ac_compiler_gnu=$ac_cv_c_compiler_gnu 3211if test -n "$ac_tool_prefix"; then 3212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3213set dummy ${ac_tool_prefix}gcc; ac_word=$2 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3215$as_echo_n "checking for $ac_word... " >&6; } 3216if ${ac_cv_prog_CC+:} false; then : 3217 $as_echo_n "(cached) " >&6 3218else 3219 if test -n "$CC"; then 3220 ac_cv_prog_CC="$CC" # Let the user override the test. 3221else 3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3223for as_dir in $PATH 3224do 3225 IFS=$as_save_IFS 3226 test -z "$as_dir" && as_dir=. 3227 for ac_exec_ext in '' $ac_executable_extensions; do 3228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3229 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3231 break 2 3232 fi 3233done 3234 done 3235IFS=$as_save_IFS 3236 3237fi 3238fi 3239CC=$ac_cv_prog_CC 3240if test -n "$CC"; then 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3242$as_echo "$CC" >&6; } 3243else 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3245$as_echo "no" >&6; } 3246fi 3247 3248 3249fi 3250if test -z "$ac_cv_prog_CC"; then 3251 ac_ct_CC=$CC 3252 # Extract the first word of "gcc", so it can be a program name with args. 3253set dummy gcc; ac_word=$2 3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3255$as_echo_n "checking for $ac_word... " >&6; } 3256if ${ac_cv_prog_ac_ct_CC+:} false; then : 3257 $as_echo_n "(cached) " >&6 3258else 3259 if test -n "$ac_ct_CC"; then 3260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3261else 3262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3263for as_dir in $PATH 3264do 3265 IFS=$as_save_IFS 3266 test -z "$as_dir" && as_dir=. 3267 for ac_exec_ext in '' $ac_executable_extensions; do 3268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3269 ac_cv_prog_ac_ct_CC="gcc" 3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3271 break 2 3272 fi 3273done 3274 done 3275IFS=$as_save_IFS 3276 3277fi 3278fi 3279ac_ct_CC=$ac_cv_prog_ac_ct_CC 3280if test -n "$ac_ct_CC"; then 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3282$as_echo "$ac_ct_CC" >&6; } 3283else 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3285$as_echo "no" >&6; } 3286fi 3287 3288 if test "x$ac_ct_CC" = x; then 3289 CC="" 3290 else 3291 case $cross_compiling:$ac_tool_warned in 3292yes:) 3293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3295ac_tool_warned=yes ;; 3296esac 3297 CC=$ac_ct_CC 3298 fi 3299else 3300 CC="$ac_cv_prog_CC" 3301fi 3302 3303if test -z "$CC"; then 3304 if test -n "$ac_tool_prefix"; then 3305 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3306set dummy ${ac_tool_prefix}cc; ac_word=$2 3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3308$as_echo_n "checking for $ac_word... " >&6; } 3309if ${ac_cv_prog_CC+:} false; then : 3310 $as_echo_n "(cached) " >&6 3311else 3312 if test -n "$CC"; then 3313 ac_cv_prog_CC="$CC" # Let the user override the test. 3314else 3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3316for as_dir in $PATH 3317do 3318 IFS=$as_save_IFS 3319 test -z "$as_dir" && as_dir=. 3320 for ac_exec_ext in '' $ac_executable_extensions; do 3321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3322 ac_cv_prog_CC="${ac_tool_prefix}cc" 3323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3324 break 2 3325 fi 3326done 3327 done 3328IFS=$as_save_IFS 3329 3330fi 3331fi 3332CC=$ac_cv_prog_CC 3333if test -n "$CC"; then 3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3335$as_echo "$CC" >&6; } 3336else 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3338$as_echo "no" >&6; } 3339fi 3340 3341 3342 fi 3343fi 3344if test -z "$CC"; then 3345 # Extract the first word of "cc", so it can be a program name with args. 3346set dummy cc; ac_word=$2 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3348$as_echo_n "checking for $ac_word... " >&6; } 3349if ${ac_cv_prog_CC+:} false; then : 3350 $as_echo_n "(cached) " >&6 3351else 3352 if test -n "$CC"; then 3353 ac_cv_prog_CC="$CC" # Let the user override the test. 3354else 3355 ac_prog_rejected=no 3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3357for as_dir in $PATH 3358do 3359 IFS=$as_save_IFS 3360 test -z "$as_dir" && as_dir=. 3361 for ac_exec_ext in '' $ac_executable_extensions; do 3362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3364 ac_prog_rejected=yes 3365 continue 3366 fi 3367 ac_cv_prog_CC="cc" 3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3369 break 2 3370 fi 3371done 3372 done 3373IFS=$as_save_IFS 3374 3375if test $ac_prog_rejected = yes; then 3376 # We found a bogon in the path, so make sure we never use it. 3377 set dummy $ac_cv_prog_CC 3378 shift 3379 if test $# != 0; then 3380 # We chose a different compiler from the bogus one. 3381 # However, it has the same basename, so the bogon will be chosen 3382 # first if we set CC to just the basename; use the full file name. 3383 shift 3384 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3385 fi 3386fi 3387fi 3388fi 3389CC=$ac_cv_prog_CC 3390if test -n "$CC"; then 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3392$as_echo "$CC" >&6; } 3393else 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3395$as_echo "no" >&6; } 3396fi 3397 3398 3399fi 3400if test -z "$CC"; then 3401 if test -n "$ac_tool_prefix"; then 3402 for ac_prog in cl.exe 3403 do 3404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3405set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3407$as_echo_n "checking for $ac_word... " >&6; } 3408if ${ac_cv_prog_CC+:} false; then : 3409 $as_echo_n "(cached) " >&6 3410else 3411 if test -n "$CC"; then 3412 ac_cv_prog_CC="$CC" # Let the user override the test. 3413else 3414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3415for as_dir in $PATH 3416do 3417 IFS=$as_save_IFS 3418 test -z "$as_dir" && as_dir=. 3419 for ac_exec_ext in '' $ac_executable_extensions; do 3420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3421 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3423 break 2 3424 fi 3425done 3426 done 3427IFS=$as_save_IFS 3428 3429fi 3430fi 3431CC=$ac_cv_prog_CC 3432if test -n "$CC"; then 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3434$as_echo "$CC" >&6; } 3435else 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3437$as_echo "no" >&6; } 3438fi 3439 3440 3441 test -n "$CC" && break 3442 done 3443fi 3444if test -z "$CC"; then 3445 ac_ct_CC=$CC 3446 for ac_prog in cl.exe 3447do 3448 # Extract the first word of "$ac_prog", so it can be a program name with args. 3449set dummy $ac_prog; ac_word=$2 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3451$as_echo_n "checking for $ac_word... " >&6; } 3452if ${ac_cv_prog_ac_ct_CC+:} false; then : 3453 $as_echo_n "(cached) " >&6 3454else 3455 if test -n "$ac_ct_CC"; then 3456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3457else 3458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3459for as_dir in $PATH 3460do 3461 IFS=$as_save_IFS 3462 test -z "$as_dir" && as_dir=. 3463 for ac_exec_ext in '' $ac_executable_extensions; do 3464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3465 ac_cv_prog_ac_ct_CC="$ac_prog" 3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3467 break 2 3468 fi 3469done 3470 done 3471IFS=$as_save_IFS 3472 3473fi 3474fi 3475ac_ct_CC=$ac_cv_prog_ac_ct_CC 3476if test -n "$ac_ct_CC"; then 3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3478$as_echo "$ac_ct_CC" >&6; } 3479else 3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3481$as_echo "no" >&6; } 3482fi 3483 3484 3485 test -n "$ac_ct_CC" && break 3486done 3487 3488 if test "x$ac_ct_CC" = x; then 3489 CC="" 3490 else 3491 case $cross_compiling:$ac_tool_warned in 3492yes:) 3493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3495ac_tool_warned=yes ;; 3496esac 3497 CC=$ac_ct_CC 3498 fi 3499fi 3500 3501fi 3502 3503 3504test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3506as_fn_error $? "no acceptable C compiler found in \$PATH 3507See \`config.log' for more details" "$LINENO" 5; } 3508 3509# Provide some information about the compiler. 3510$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3511set X $ac_compile 3512ac_compiler=$2 3513for ac_option in --version -v -V -qversion; do 3514 { { ac_try="$ac_compiler $ac_option >&5" 3515case "(($ac_try" in 3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3517 *) ac_try_echo=$ac_try;; 3518esac 3519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3520$as_echo "$ac_try_echo"; } >&5 3521 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3522 ac_status=$? 3523 if test -s conftest.err; then 3524 sed '10a\ 3525... rest of stderr output deleted ... 3526 10q' conftest.err >conftest.er1 3527 cat conftest.er1 >&5 3528 fi 3529 rm -f conftest.er1 conftest.err 3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3531 test $ac_status = 0; } 3532done 3533 3534cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3535/* end confdefs.h. */ 3536 3537int 3538main () 3539{ 3540 3541 ; 3542 return 0; 3543} 3544_ACEOF 3545ac_clean_files_save=$ac_clean_files 3546ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3547# Try to create an executable without -o first, disregard a.out. 3548# It will help us diagnose broken compilers, and finding out an intuition 3549# of exeext. 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3551$as_echo_n "checking whether the C compiler works... " >&6; } 3552ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3553 3554# The possible output files: 3555ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3556 3557ac_rmfiles= 3558for ac_file in $ac_files 3559do 3560 case $ac_file in 3561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3562 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3563 esac 3564done 3565rm -f $ac_rmfiles 3566 3567if { { ac_try="$ac_link_default" 3568case "(($ac_try" in 3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3570 *) ac_try_echo=$ac_try;; 3571esac 3572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3573$as_echo "$ac_try_echo"; } >&5 3574 (eval "$ac_link_default") 2>&5 3575 ac_status=$? 3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3577 test $ac_status = 0; }; then : 3578 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3579# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3580# in a Makefile. We should not override ac_cv_exeext if it was cached, 3581# so that the user can short-circuit this test for compilers unknown to 3582# Autoconf. 3583for ac_file in $ac_files '' 3584do 3585 test -f "$ac_file" || continue 3586 case $ac_file in 3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3588 ;; 3589 [ab].out ) 3590 # We found the default executable, but exeext='' is most 3591 # certainly right. 3592 break;; 3593 *.* ) 3594 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3595 then :; else 3596 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3597 fi 3598 # We set ac_cv_exeext here because the later test for it is not 3599 # safe: cross compilers may not add the suffix if given an `-o' 3600 # argument, so we may need to know it at that point already. 3601 # Even if this section looks crufty: it has the advantage of 3602 # actually working. 3603 break;; 3604 * ) 3605 break;; 3606 esac 3607done 3608test "$ac_cv_exeext" = no && ac_cv_exeext= 3609 3610else 3611 ac_file='' 3612fi 3613if test -z "$ac_file"; then : 3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3615$as_echo "no" >&6; } 3616$as_echo "$as_me: failed program was:" >&5 3617sed 's/^/| /' conftest.$ac_ext >&5 3618 3619{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3621as_fn_error 77 "C compiler cannot create executables 3622See \`config.log' for more details" "$LINENO" 5; } 3623else 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3625$as_echo "yes" >&6; } 3626fi 3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3628$as_echo_n "checking for C compiler default output file name... " >&6; } 3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3630$as_echo "$ac_file" >&6; } 3631ac_exeext=$ac_cv_exeext 3632 3633rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3634ac_clean_files=$ac_clean_files_save 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3636$as_echo_n "checking for suffix of executables... " >&6; } 3637if { { ac_try="$ac_link" 3638case "(($ac_try" in 3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3640 *) ac_try_echo=$ac_try;; 3641esac 3642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3643$as_echo "$ac_try_echo"; } >&5 3644 (eval "$ac_link") 2>&5 3645 ac_status=$? 3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3647 test $ac_status = 0; }; then : 3648 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3649# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3650# work properly (i.e., refer to `conftest.exe'), while it won't with 3651# `rm'. 3652for ac_file in conftest.exe conftest conftest.*; do 3653 test -f "$ac_file" || continue 3654 case $ac_file in 3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3656 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3657 break;; 3658 * ) break;; 3659 esac 3660done 3661else 3662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3664as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3665See \`config.log' for more details" "$LINENO" 5; } 3666fi 3667rm -f conftest conftest$ac_cv_exeext 3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3669$as_echo "$ac_cv_exeext" >&6; } 3670 3671rm -f conftest.$ac_ext 3672EXEEXT=$ac_cv_exeext 3673ac_exeext=$EXEEXT 3674cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3675/* end confdefs.h. */ 3676#include <stdio.h> 3677int 3678main () 3679{ 3680FILE *f = fopen ("conftest.out", "w"); 3681 return ferror (f) || fclose (f) != 0; 3682 3683 ; 3684 return 0; 3685} 3686_ACEOF 3687ac_clean_files="$ac_clean_files conftest.out" 3688# Check that the compiler produces executables we can run. If not, either 3689# the compiler is broken, or we cross compile. 3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3691$as_echo_n "checking whether we are cross compiling... " >&6; } 3692if test "$cross_compiling" != yes; then 3693 { { ac_try="$ac_link" 3694case "(($ac_try" in 3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3696 *) ac_try_echo=$ac_try;; 3697esac 3698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3699$as_echo "$ac_try_echo"; } >&5 3700 (eval "$ac_link") 2>&5 3701 ac_status=$? 3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3703 test $ac_status = 0; } 3704 if { ac_try='./conftest$ac_cv_exeext' 3705 { { case "(($ac_try" in 3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3707 *) ac_try_echo=$ac_try;; 3708esac 3709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3710$as_echo "$ac_try_echo"; } >&5 3711 (eval "$ac_try") 2>&5 3712 ac_status=$? 3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3714 test $ac_status = 0; }; }; then 3715 cross_compiling=no 3716 else 3717 if test "$cross_compiling" = maybe; then 3718 cross_compiling=yes 3719 else 3720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3722as_fn_error $? "cannot run C compiled programs. 3723If you meant to cross compile, use \`--host'. 3724See \`config.log' for more details" "$LINENO" 5; } 3725 fi 3726 fi 3727fi 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3729$as_echo "$cross_compiling" >&6; } 3730 3731rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3732ac_clean_files=$ac_clean_files_save 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3734$as_echo_n "checking for suffix of object files... " >&6; } 3735if ${ac_cv_objext+:} false; then : 3736 $as_echo_n "(cached) " >&6 3737else 3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3739/* end confdefs.h. */ 3740 3741int 3742main () 3743{ 3744 3745 ; 3746 return 0; 3747} 3748_ACEOF 3749rm -f conftest.o conftest.obj 3750if { { ac_try="$ac_compile" 3751case "(($ac_try" in 3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3753 *) ac_try_echo=$ac_try;; 3754esac 3755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3756$as_echo "$ac_try_echo"; } >&5 3757 (eval "$ac_compile") 2>&5 3758 ac_status=$? 3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3760 test $ac_status = 0; }; then : 3761 for ac_file in conftest.o conftest.obj conftest.*; do 3762 test -f "$ac_file" || continue; 3763 case $ac_file in 3764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3765 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3766 break;; 3767 esac 3768done 3769else 3770 $as_echo "$as_me: failed program was:" >&5 3771sed 's/^/| /' conftest.$ac_ext >&5 3772 3773{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3775as_fn_error $? "cannot compute suffix of object files: cannot compile 3776See \`config.log' for more details" "$LINENO" 5; } 3777fi 3778rm -f conftest.$ac_cv_objext conftest.$ac_ext 3779fi 3780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3781$as_echo "$ac_cv_objext" >&6; } 3782OBJEXT=$ac_cv_objext 3783ac_objext=$OBJEXT 3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3785$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3786if ${ac_cv_c_compiler_gnu+:} false; then : 3787 $as_echo_n "(cached) " >&6 3788else 3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3790/* end confdefs.h. */ 3791 3792int 3793main () 3794{ 3795#ifndef __GNUC__ 3796 choke me 3797#endif 3798 3799 ; 3800 return 0; 3801} 3802_ACEOF 3803if ac_fn_c_try_compile "$LINENO"; then : 3804 ac_compiler_gnu=yes 3805else 3806 ac_compiler_gnu=no 3807fi 3808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3809ac_cv_c_compiler_gnu=$ac_compiler_gnu 3810 3811fi 3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3813$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3814if test $ac_compiler_gnu = yes; then 3815 GCC=yes 3816else 3817 GCC= 3818fi 3819ac_test_CFLAGS=${CFLAGS+set} 3820ac_save_CFLAGS=$CFLAGS 3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3822$as_echo_n "checking whether $CC accepts -g... " >&6; } 3823if ${ac_cv_prog_cc_g+:} false; then : 3824 $as_echo_n "(cached) " >&6 3825else 3826 ac_save_c_werror_flag=$ac_c_werror_flag 3827 ac_c_werror_flag=yes 3828 ac_cv_prog_cc_g=no 3829 CFLAGS="-g" 3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3831/* end confdefs.h. */ 3832 3833int 3834main () 3835{ 3836 3837 ; 3838 return 0; 3839} 3840_ACEOF 3841if ac_fn_c_try_compile "$LINENO"; then : 3842 ac_cv_prog_cc_g=yes 3843else 3844 CFLAGS="" 3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3846/* end confdefs.h. */ 3847 3848int 3849main () 3850{ 3851 3852 ; 3853 return 0; 3854} 3855_ACEOF 3856if ac_fn_c_try_compile "$LINENO"; then : 3857 3858else 3859 ac_c_werror_flag=$ac_save_c_werror_flag 3860 CFLAGS="-g" 3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3862/* end confdefs.h. */ 3863 3864int 3865main () 3866{ 3867 3868 ; 3869 return 0; 3870} 3871_ACEOF 3872if ac_fn_c_try_compile "$LINENO"; then : 3873 ac_cv_prog_cc_g=yes 3874fi 3875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3876fi 3877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3878fi 3879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3880 ac_c_werror_flag=$ac_save_c_werror_flag 3881fi 3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3883$as_echo "$ac_cv_prog_cc_g" >&6; } 3884if test "$ac_test_CFLAGS" = set; then 3885 CFLAGS=$ac_save_CFLAGS 3886elif test $ac_cv_prog_cc_g = yes; then 3887 if test "$GCC" = yes; then 3888 CFLAGS="-g -O2" 3889 else 3890 CFLAGS="-g" 3891 fi 3892else 3893 if test "$GCC" = yes; then 3894 CFLAGS="-O2" 3895 else 3896 CFLAGS= 3897 fi 3898fi 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3900$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3901if ${ac_cv_prog_cc_c89+:} false; then : 3902 $as_echo_n "(cached) " >&6 3903else 3904 ac_cv_prog_cc_c89=no 3905ac_save_CC=$CC 3906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3907/* end confdefs.h. */ 3908#include <stdarg.h> 3909#include <stdio.h> 3910struct stat; 3911/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3912struct buf { int x; }; 3913FILE * (*rcsopen) (struct buf *, struct stat *, int); 3914static char *e (p, i) 3915 char **p; 3916 int i; 3917{ 3918 return p[i]; 3919} 3920static char *f (char * (*g) (char **, int), char **p, ...) 3921{ 3922 char *s; 3923 va_list v; 3924 va_start (v,p); 3925 s = g (p, va_arg (v,int)); 3926 va_end (v); 3927 return s; 3928} 3929 3930/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3931 function prototypes and stuff, but not '\xHH' hex character constants. 3932 These don't provoke an error unfortunately, instead are silently treated 3933 as 'x'. The following induces an error, until -std is added to get 3934 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3935 array size at least. It's necessary to write '\x00'==0 to get something 3936 that's true only with -std. */ 3937int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3938 3939/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3940 inside strings and character constants. */ 3941#define FOO(x) 'x' 3942int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3943 3944int test (int i, double x); 3945struct s1 {int (*f) (int a);}; 3946struct s2 {int (*f) (double a);}; 3947int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3948int argc; 3949char **argv; 3950int 3951main () 3952{ 3953return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3954 ; 3955 return 0; 3956} 3957_ACEOF 3958for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3959 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3960do 3961 CC="$ac_save_CC $ac_arg" 3962 if ac_fn_c_try_compile "$LINENO"; then : 3963 ac_cv_prog_cc_c89=$ac_arg 3964fi 3965rm -f core conftest.err conftest.$ac_objext 3966 test "x$ac_cv_prog_cc_c89" != "xno" && break 3967done 3968rm -f conftest.$ac_ext 3969CC=$ac_save_CC 3970 3971fi 3972# AC_CACHE_VAL 3973case "x$ac_cv_prog_cc_c89" in 3974 x) 3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3976$as_echo "none needed" >&6; } ;; 3977 xno) 3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3979$as_echo "unsupported" >&6; } ;; 3980 *) 3981 CC="$CC $ac_cv_prog_cc_c89" 3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3983$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3984esac 3985if test "x$ac_cv_prog_cc_c89" != xno; then : 3986 3987fi 3988 3989ac_ext=c 3990ac_cpp='$CPP $CPPFLAGS' 3991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3993ac_compiler_gnu=$ac_cv_c_compiler_gnu 3994 3995ac_ext=c 3996ac_cpp='$CPP $CPPFLAGS' 3997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3999ac_compiler_gnu=$ac_cv_c_compiler_gnu 4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4001$as_echo_n "checking how to run the C preprocessor... " >&6; } 4002# On Suns, sometimes $CPP names a directory. 4003if test -n "$CPP" && test -d "$CPP"; then 4004 CPP= 4005fi 4006if test -z "$CPP"; then 4007 if ${ac_cv_prog_CPP+:} false; then : 4008 $as_echo_n "(cached) " >&6 4009else 4010 # Double quotes because CPP needs to be expanded 4011 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4012 do 4013 ac_preproc_ok=false 4014for ac_c_preproc_warn_flag in '' yes 4015do 4016 # Use a header file that comes with gcc, so configuring glibc 4017 # with a fresh cross-compiler works. 4018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4019 # <limits.h> exists even on freestanding compilers. 4020 # On the NeXT, cc -E runs the code through the compiler's parser, 4021 # not just through cpp. "Syntax error" is here to catch this case. 4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4023/* end confdefs.h. */ 4024#ifdef __STDC__ 4025# include <limits.h> 4026#else 4027# include <assert.h> 4028#endif 4029 Syntax error 4030_ACEOF 4031if ac_fn_c_try_cpp "$LINENO"; then : 4032 4033else 4034 # Broken: fails on valid input. 4035continue 4036fi 4037rm -f conftest.err conftest.i conftest.$ac_ext 4038 4039 # OK, works on sane cases. Now check whether nonexistent headers 4040 # can be detected and how. 4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4042/* end confdefs.h. */ 4043#include <ac_nonexistent.h> 4044_ACEOF 4045if ac_fn_c_try_cpp "$LINENO"; then : 4046 # Broken: success on invalid input. 4047continue 4048else 4049 # Passes both tests. 4050ac_preproc_ok=: 4051break 4052fi 4053rm -f conftest.err conftest.i conftest.$ac_ext 4054 4055done 4056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4057rm -f conftest.i conftest.err conftest.$ac_ext 4058if $ac_preproc_ok; then : 4059 break 4060fi 4061 4062 done 4063 ac_cv_prog_CPP=$CPP 4064 4065fi 4066 CPP=$ac_cv_prog_CPP 4067else 4068 ac_cv_prog_CPP=$CPP 4069fi 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4071$as_echo "$CPP" >&6; } 4072ac_preproc_ok=false 4073for ac_c_preproc_warn_flag in '' yes 4074do 4075 # Use a header file that comes with gcc, so configuring glibc 4076 # with a fresh cross-compiler works. 4077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4078 # <limits.h> exists even on freestanding compilers. 4079 # On the NeXT, cc -E runs the code through the compiler's parser, 4080 # not just through cpp. "Syntax error" is here to catch this case. 4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4082/* end confdefs.h. */ 4083#ifdef __STDC__ 4084# include <limits.h> 4085#else 4086# include <assert.h> 4087#endif 4088 Syntax error 4089_ACEOF 4090if ac_fn_c_try_cpp "$LINENO"; then : 4091 4092else 4093 # Broken: fails on valid input. 4094continue 4095fi 4096rm -f conftest.err conftest.i conftest.$ac_ext 4097 4098 # OK, works on sane cases. Now check whether nonexistent headers 4099 # can be detected and how. 4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4101/* end confdefs.h. */ 4102#include <ac_nonexistent.h> 4103_ACEOF 4104if ac_fn_c_try_cpp "$LINENO"; then : 4105 # Broken: success on invalid input. 4106continue 4107else 4108 # Passes both tests. 4109ac_preproc_ok=: 4110break 4111fi 4112rm -f conftest.err conftest.i conftest.$ac_ext 4113 4114done 4115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4116rm -f conftest.i conftest.err conftest.$ac_ext 4117if $ac_preproc_ok; then : 4118 4119else 4120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4122as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4123See \`config.log' for more details" "$LINENO" 5; } 4124fi 4125 4126ac_ext=c 4127ac_cpp='$CPP $CPPFLAGS' 4128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4130ac_compiler_gnu=$ac_cv_c_compiler_gnu 4131 4132for ac_prog in $CCC c++ cc++ g++ gcc CC cxx 4133do 4134 # Extract the first word of "$ac_prog", so it can be a program name with args. 4135set dummy $ac_prog; ac_word=$2 4136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4137$as_echo_n "checking for $ac_word... " >&6; } 4138if ${ac_cv_prog_CXX+:} false; then : 4139 $as_echo_n "(cached) " >&6 4140else 4141 if test -n "$CXX"; then 4142 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4143else 4144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4145for as_dir in $PATH 4146do 4147 IFS=$as_save_IFS 4148 test -z "$as_dir" && as_dir=. 4149 for ac_exec_ext in '' $ac_executable_extensions; do 4150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4151 ac_cv_prog_CXX="$ac_prog" 4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4153 break 2 4154 fi 4155done 4156 done 4157IFS=$as_save_IFS 4158 4159fi 4160fi 4161CXX=$ac_cv_prog_CXX 4162if test -n "$CXX"; then 4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4164$as_echo "$CXX" >&6; } 4165else 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4167$as_echo "no" >&6; } 4168fi 4169 4170 4171 test -n "$CXX" && break 4172done 4173test -n "$CXX" || CXX="gcc" 4174 4175 4176pedantic="" 4177if test -f /bin/uname ; then 4178 os=`uname -s` 4179 rev=`uname -r` 4180 if test \( "$os" = SunOS \) ; then 4181 case "$rev" in 4182 # only use the -pedantic compiler option on 4183 # Solaris 2 machines. 4184 5.*) pedantic="-pedantic" ;; 4185 esac 4186 fi 4187fi 4188if test "${CXXFLAGS}set" = set ; then 4189 case "$CXX" in 4190 c++|g++|gcc) 4191 CXXFLAGS="-Wall $pedantic" 4192 CFLAGS="-Wall $pedantic" 4193 ;; 4194 cc++) 4195 CXXFLAGS="-Wall" 4196 CFLAGS="-Wall" 4197 ;; 4198 *) 4199 CXXFLAGS="" 4200 CFLAGS="" 4201 ;; 4202 esac 4203fi 4204 4205ac_ext=cpp 4206ac_cpp='$CXXCPP $CPPFLAGS' 4207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4210if test -z "$CXX"; then 4211 if test -n "$CCC"; then 4212 CXX=$CCC 4213 else 4214 if test -n "$ac_tool_prefix"; then 4215 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4216 do 4217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4218set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4220$as_echo_n "checking for $ac_word... " >&6; } 4221if ${ac_cv_prog_CXX+:} false; then : 4222 $as_echo_n "(cached) " >&6 4223else 4224 if test -n "$CXX"; then 4225 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4226else 4227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4228for as_dir in $PATH 4229do 4230 IFS=$as_save_IFS 4231 test -z "$as_dir" && as_dir=. 4232 for ac_exec_ext in '' $ac_executable_extensions; do 4233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4234 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4236 break 2 4237 fi 4238done 4239 done 4240IFS=$as_save_IFS 4241 4242fi 4243fi 4244CXX=$ac_cv_prog_CXX 4245if test -n "$CXX"; then 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4247$as_echo "$CXX" >&6; } 4248else 4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4250$as_echo "no" >&6; } 4251fi 4252 4253 4254 test -n "$CXX" && break 4255 done 4256fi 4257if test -z "$CXX"; then 4258 ac_ct_CXX=$CXX 4259 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4260do 4261 # Extract the first word of "$ac_prog", so it can be a program name with args. 4262set dummy $ac_prog; ac_word=$2 4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4264$as_echo_n "checking for $ac_word... " >&6; } 4265if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4266 $as_echo_n "(cached) " >&6 4267else 4268 if test -n "$ac_ct_CXX"; then 4269 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4270else 4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4272for as_dir in $PATH 4273do 4274 IFS=$as_save_IFS 4275 test -z "$as_dir" && as_dir=. 4276 for ac_exec_ext in '' $ac_executable_extensions; do 4277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4278 ac_cv_prog_ac_ct_CXX="$ac_prog" 4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4280 break 2 4281 fi 4282done 4283 done 4284IFS=$as_save_IFS 4285 4286fi 4287fi 4288ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4289if test -n "$ac_ct_CXX"; then 4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4291$as_echo "$ac_ct_CXX" >&6; } 4292else 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4294$as_echo "no" >&6; } 4295fi 4296 4297 4298 test -n "$ac_ct_CXX" && break 4299done 4300 4301 if test "x$ac_ct_CXX" = x; then 4302 CXX="g++" 4303 else 4304 case $cross_compiling:$ac_tool_warned in 4305yes:) 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4308ac_tool_warned=yes ;; 4309esac 4310 CXX=$ac_ct_CXX 4311 fi 4312fi 4313 4314 fi 4315fi 4316# Provide some information about the compiler. 4317$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4318set X $ac_compile 4319ac_compiler=$2 4320for ac_option in --version -v -V -qversion; do 4321 { { ac_try="$ac_compiler $ac_option >&5" 4322case "(($ac_try" in 4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4324 *) ac_try_echo=$ac_try;; 4325esac 4326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4327$as_echo "$ac_try_echo"; } >&5 4328 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4329 ac_status=$? 4330 if test -s conftest.err; then 4331 sed '10a\ 4332... rest of stderr output deleted ... 4333 10q' conftest.err >conftest.er1 4334 cat conftest.er1 >&5 4335 fi 4336 rm -f conftest.er1 conftest.err 4337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4338 test $ac_status = 0; } 4339done 4340 4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4342$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4343if ${ac_cv_cxx_compiler_gnu+:} false; then : 4344 $as_echo_n "(cached) " >&6 4345else 4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4347/* end confdefs.h. */ 4348 4349int 4350main () 4351{ 4352#ifndef __GNUC__ 4353 choke me 4354#endif 4355 4356 ; 4357 return 0; 4358} 4359_ACEOF 4360if ac_fn_cxx_try_compile "$LINENO"; then : 4361 ac_compiler_gnu=yes 4362else 4363 ac_compiler_gnu=no 4364fi 4365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4366ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4367 4368fi 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4370$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4371if test $ac_compiler_gnu = yes; then 4372 GXX=yes 4373else 4374 GXX= 4375fi 4376ac_test_CXXFLAGS=${CXXFLAGS+set} 4377ac_save_CXXFLAGS=$CXXFLAGS 4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4379$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4380if ${ac_cv_prog_cxx_g+:} false; then : 4381 $as_echo_n "(cached) " >&6 4382else 4383 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4384 ac_cxx_werror_flag=yes 4385 ac_cv_prog_cxx_g=no 4386 CXXFLAGS="-g" 4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4388/* end confdefs.h. */ 4389 4390int 4391main () 4392{ 4393 4394 ; 4395 return 0; 4396} 4397_ACEOF 4398if ac_fn_cxx_try_compile "$LINENO"; then : 4399 ac_cv_prog_cxx_g=yes 4400else 4401 CXXFLAGS="" 4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4403/* end confdefs.h. */ 4404 4405int 4406main () 4407{ 4408 4409 ; 4410 return 0; 4411} 4412_ACEOF 4413if ac_fn_cxx_try_compile "$LINENO"; then : 4414 4415else 4416 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4417 CXXFLAGS="-g" 4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4419/* end confdefs.h. */ 4420 4421int 4422main () 4423{ 4424 4425 ; 4426 return 0; 4427} 4428_ACEOF 4429if ac_fn_cxx_try_compile "$LINENO"; then : 4430 ac_cv_prog_cxx_g=yes 4431fi 4432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4433fi 4434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4435fi 4436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4437 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4438fi 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4440$as_echo "$ac_cv_prog_cxx_g" >&6; } 4441if test "$ac_test_CXXFLAGS" = set; then 4442 CXXFLAGS=$ac_save_CXXFLAGS 4443elif test $ac_cv_prog_cxx_g = yes; then 4444 if test "$GXX" = yes; then 4445 CXXFLAGS="-g -O2" 4446 else 4447 CXXFLAGS="-g" 4448 fi 4449else 4450 if test "$GXX" = yes; then 4451 CXXFLAGS="-O2" 4452 else 4453 CXXFLAGS= 4454 fi 4455fi 4456ac_ext=c 4457ac_cpp='$CPP $CPPFLAGS' 4458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4460ac_compiler_gnu=$ac_cv_c_compiler_gnu 4461 4462ac_ext=cpp 4463ac_cpp='$CXXCPP $CPPFLAGS' 4464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 4468$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 4469if test -z "$CXXCPP"; then 4470 if ${ac_cv_prog_CXXCPP+:} false; then : 4471 $as_echo_n "(cached) " >&6 4472else 4473 # Double quotes because CXXCPP needs to be expanded 4474 for CXXCPP in "$CXX -E" "/lib/cpp" 4475 do 4476 ac_preproc_ok=false 4477for ac_cxx_preproc_warn_flag in '' yes 4478do 4479 # Use a header file that comes with gcc, so configuring glibc 4480 # with a fresh cross-compiler works. 4481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4482 # <limits.h> exists even on freestanding compilers. 4483 # On the NeXT, cc -E runs the code through the compiler's parser, 4484 # not just through cpp. "Syntax error" is here to catch this case. 4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4486/* end confdefs.h. */ 4487#ifdef __STDC__ 4488# include <limits.h> 4489#else 4490# include <assert.h> 4491#endif 4492 Syntax error 4493_ACEOF 4494if ac_fn_cxx_try_cpp "$LINENO"; then : 4495 4496else 4497 # Broken: fails on valid input. 4498continue 4499fi 4500rm -f conftest.err conftest.i conftest.$ac_ext 4501 4502 # OK, works on sane cases. Now check whether nonexistent headers 4503 # can be detected and how. 4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4505/* end confdefs.h. */ 4506#include <ac_nonexistent.h> 4507_ACEOF 4508if ac_fn_cxx_try_cpp "$LINENO"; then : 4509 # Broken: success on invalid input. 4510continue 4511else 4512 # Passes both tests. 4513ac_preproc_ok=: 4514break 4515fi 4516rm -f conftest.err conftest.i conftest.$ac_ext 4517 4518done 4519# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4520rm -f conftest.i conftest.err conftest.$ac_ext 4521if $ac_preproc_ok; then : 4522 break 4523fi 4524 4525 done 4526 ac_cv_prog_CXXCPP=$CXXCPP 4527 4528fi 4529 CXXCPP=$ac_cv_prog_CXXCPP 4530else 4531 ac_cv_prog_CXXCPP=$CXXCPP 4532fi 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 4534$as_echo "$CXXCPP" >&6; } 4535ac_preproc_ok=false 4536for ac_cxx_preproc_warn_flag in '' yes 4537do 4538 # Use a header file that comes with gcc, so configuring glibc 4539 # with a fresh cross-compiler works. 4540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4541 # <limits.h> exists even on freestanding compilers. 4542 # On the NeXT, cc -E runs the code through the compiler's parser, 4543 # not just through cpp. "Syntax error" is here to catch this case. 4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4545/* end confdefs.h. */ 4546#ifdef __STDC__ 4547# include <limits.h> 4548#else 4549# include <assert.h> 4550#endif 4551 Syntax error 4552_ACEOF 4553if ac_fn_cxx_try_cpp "$LINENO"; then : 4554 4555else 4556 # Broken: fails on valid input. 4557continue 4558fi 4559rm -f conftest.err conftest.i conftest.$ac_ext 4560 4561 # OK, works on sane cases. Now check whether nonexistent headers 4562 # can be detected and how. 4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4564/* end confdefs.h. */ 4565#include <ac_nonexistent.h> 4566_ACEOF 4567if ac_fn_cxx_try_cpp "$LINENO"; then : 4568 # Broken: success on invalid input. 4569continue 4570else 4571 # Passes both tests. 4572ac_preproc_ok=: 4573break 4574fi 4575rm -f conftest.err conftest.i conftest.$ac_ext 4576 4577done 4578# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4579rm -f conftest.i conftest.err conftest.$ac_ext 4580if $ac_preproc_ok; then : 4581 4582else 4583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4585as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 4586See \`config.log' for more details" "$LINENO" 5; } 4587fi 4588 4589ac_ext=c 4590ac_cpp='$CPP $CPPFLAGS' 4591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4593ac_compiler_gnu=$ac_cv_c_compiler_gnu 4594 4595for ac_prog in ranlib 4596do 4597 # Extract the first word of "$ac_prog", so it can be a program name with args. 4598set dummy $ac_prog; ac_word=$2 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4600$as_echo_n "checking for $ac_word... " >&6; } 4601if ${ac_cv_prog_RANLIB+:} false; then : 4602 $as_echo_n "(cached) " >&6 4603else 4604 if test -n "$RANLIB"; then 4605 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4606else 4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4608for as_dir in $PATH 4609do 4610 IFS=$as_save_IFS 4611 test -z "$as_dir" && as_dir=. 4612 for ac_exec_ext in '' $ac_executable_extensions; do 4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4614 ac_cv_prog_RANLIB="$ac_prog" 4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4616 break 2 4617 fi 4618done 4619 done 4620IFS=$as_save_IFS 4621 4622fi 4623fi 4624RANLIB=$ac_cv_prog_RANLIB 4625if test -n "$RANLIB"; then 4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4627$as_echo "$RANLIB" >&6; } 4628else 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4630$as_echo "no" >&6; } 4631fi 4632 4633 4634 test -n "$RANLIB" && break 4635done 4636test -n "$RANLIB" || RANLIB=":" 4637 4638 4639for ac_prog in ar 4640do 4641 # Extract the first word of "$ac_prog", so it can be a program name with args. 4642set dummy $ac_prog; ac_word=$2 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4644$as_echo_n "checking for $ac_word... " >&6; } 4645if ${ac_cv_prog_AR+:} false; then : 4646 $as_echo_n "(cached) " >&6 4647else 4648 if test -n "$AR"; then 4649 ac_cv_prog_AR="$AR" # Let the user override the test. 4650else 4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4652for as_dir in $PATH 4653do 4654 IFS=$as_save_IFS 4655 test -z "$as_dir" && as_dir=. 4656 for ac_exec_ext in '' $ac_executable_extensions; do 4657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4658 ac_cv_prog_AR="$ac_prog" 4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4660 break 2 4661 fi 4662done 4663 done 4664IFS=$as_save_IFS 4665 4666fi 4667fi 4668AR=$ac_cv_prog_AR 4669if test -n "$AR"; then 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4671$as_echo "$AR" >&6; } 4672else 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4674$as_echo "no" >&6; } 4675fi 4676 4677 4678 test -n "$AR" && break 4679done 4680test -n "$AR" || AR=":" 4681 4682for ac_prog in libtool 4683do 4684 # Extract the first word of "$ac_prog", so it can be a program name with args. 4685set dummy $ac_prog; ac_word=$2 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4687$as_echo_n "checking for $ac_word... " >&6; } 4688if ${ac_cv_prog_LIBTOOL+:} false; then : 4689 $as_echo_n "(cached) " >&6 4690else 4691 if test -n "$LIBTOOL"; then 4692 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test. 4693else 4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4695for as_dir in $PATH 4696do 4697 IFS=$as_save_IFS 4698 test -z "$as_dir" && as_dir=. 4699 for ac_exec_ext in '' $ac_executable_extensions; do 4700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4701 ac_cv_prog_LIBTOOL="$ac_prog" 4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4703 break 2 4704 fi 4705done 4706 done 4707IFS=$as_save_IFS 4708 4709fi 4710fi 4711LIBTOOL=$ac_cv_prog_LIBTOOL 4712if test -n "$LIBTOOL"; then 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5 4714$as_echo "$LIBTOOL" >&6; } 4715else 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4717$as_echo "no" >&6; } 4718fi 4719 4720 4721 test -n "$LIBTOOL" && break 4722done 4723test -n "$LIBTOOL" || LIBTOOL=":" 4724 4725if test "${LIBTOOL}set" = libtoolset ; then 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool is GNU libtool" >&5 4727$as_echo_n "checking whether libtool is GNU libtool... " >&6; } 4728if ${ac_cv_check_gnu_libtool+:} false; then : 4729 $as_echo_n "(cached) " >&6 4730else 4731 ac_cv_check_gnu_libtool=`libtool --version 2>/dev/null | grep "GNU libtool" | sed -e "s/.*\(GNU libtool\).*/\1/" ` 4732 if test "${ac_cv_check_gnu_libtool}set" = "GNU libtoolset" ; then 4733 ac_cv_check_gnu_libtool=yes 4734 else 4735 ac_cv_check_gnu_libtool=no 4736 fi 4737 4738fi 4739 4740 if test $ac_cv_check_gnu_libtool = yes ; then 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4742$as_echo "yes" >&6; } 4743 else 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4745$as_echo "no" >&6; } 4746 fi 4747 4748 if test $ac_cv_check_gnu_libtool = yes ; then 4749 : 4750 else 4751 AR=$LIBTOOL 4752 fi 4753fi 4754 4755case "$AR" in 4756libtool) ARFLAGS=-o ;; 4757ar) ARFLAGS=cruv ;; 4758esac 4759 4760if test "${LIBEXT}set" = set ; then 4761 LIBEXT="a" 4762fi 4763 4764 4765 4766 4767 4768# Try to find a strip utility 4769for ac_prog in strip 4770do 4771 # Extract the first word of "$ac_prog", so it can be a program name with args. 4772set dummy $ac_prog; ac_word=$2 4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4774$as_echo_n "checking for $ac_word... " >&6; } 4775if ${ac_cv_prog_STRIP+:} false; then : 4776 $as_echo_n "(cached) " >&6 4777else 4778 if test -n "$STRIP"; then 4779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4780else 4781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4782for as_dir in $PATH 4783do 4784 IFS=$as_save_IFS 4785 test -z "$as_dir" && as_dir=. 4786 for ac_exec_ext in '' $ac_executable_extensions; do 4787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4788 ac_cv_prog_STRIP="$ac_prog" 4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4790 break 2 4791 fi 4792done 4793 done 4794IFS=$as_save_IFS 4795 4796fi 4797fi 4798STRIP=$ac_cv_prog_STRIP 4799if test -n "$STRIP"; then 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4801$as_echo "$STRIP" >&6; } 4802else 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4804$as_echo "no" >&6; } 4805fi 4806 4807 4808 test -n "$STRIP" && break 4809done 4810test -n "$STRIP" || STRIP=":" 4811 4812 4813 4814 4815 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4817$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4818if ${ac_cv_path_GREP+:} false; then : 4819 $as_echo_n "(cached) " >&6 4820else 4821 if test -z "$GREP"; then 4822 ac_path_GREP_found=false 4823 # Loop through the user's path and test for each of PROGNAME-LIST 4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4825for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4826do 4827 IFS=$as_save_IFS 4828 test -z "$as_dir" && as_dir=. 4829 for ac_prog in grep ggrep; do 4830 for ac_exec_ext in '' $ac_executable_extensions; do 4831 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4832 as_fn_executable_p "$ac_path_GREP" || continue 4833# Check for GNU ac_path_GREP and select it if it is found. 4834 # Check for GNU $ac_path_GREP 4835case `"$ac_path_GREP" --version 2>&1` in 4836*GNU*) 4837 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4838*) 4839 ac_count=0 4840 $as_echo_n 0123456789 >"conftest.in" 4841 while : 4842 do 4843 cat "conftest.in" "conftest.in" >"conftest.tmp" 4844 mv "conftest.tmp" "conftest.in" 4845 cp "conftest.in" "conftest.nl" 4846 $as_echo 'GREP' >> "conftest.nl" 4847 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4849 as_fn_arith $ac_count + 1 && ac_count=$as_val 4850 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4851 # Best one so far, save it but keep looking for a better one 4852 ac_cv_path_GREP="$ac_path_GREP" 4853 ac_path_GREP_max=$ac_count 4854 fi 4855 # 10*(2^10) chars as input seems more than enough 4856 test $ac_count -gt 10 && break 4857 done 4858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4859esac 4860 4861 $ac_path_GREP_found && break 3 4862 done 4863 done 4864 done 4865IFS=$as_save_IFS 4866 if test -z "$ac_cv_path_GREP"; then 4867 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4868 fi 4869else 4870 ac_cv_path_GREP=$GREP 4871fi 4872 4873fi 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4875$as_echo "$ac_cv_path_GREP" >&6; } 4876 GREP="$ac_cv_path_GREP" 4877 4878 4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4880$as_echo_n "checking for egrep... " >&6; } 4881if ${ac_cv_path_EGREP+:} false; then : 4882 $as_echo_n "(cached) " >&6 4883else 4884 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4885 then ac_cv_path_EGREP="$GREP -E" 4886 else 4887 if test -z "$EGREP"; then 4888 ac_path_EGREP_found=false 4889 # Loop through the user's path and test for each of PROGNAME-LIST 4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4891for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4892do 4893 IFS=$as_save_IFS 4894 test -z "$as_dir" && as_dir=. 4895 for ac_prog in egrep; do 4896 for ac_exec_ext in '' $ac_executable_extensions; do 4897 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4898 as_fn_executable_p "$ac_path_EGREP" || continue 4899# Check for GNU ac_path_EGREP and select it if it is found. 4900 # Check for GNU $ac_path_EGREP 4901case `"$ac_path_EGREP" --version 2>&1` in 4902*GNU*) 4903 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4904*) 4905 ac_count=0 4906 $as_echo_n 0123456789 >"conftest.in" 4907 while : 4908 do 4909 cat "conftest.in" "conftest.in" >"conftest.tmp" 4910 mv "conftest.tmp" "conftest.in" 4911 cp "conftest.in" "conftest.nl" 4912 $as_echo 'EGREP' >> "conftest.nl" 4913 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4915 as_fn_arith $ac_count + 1 && ac_count=$as_val 4916 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4917 # Best one so far, save it but keep looking for a better one 4918 ac_cv_path_EGREP="$ac_path_EGREP" 4919 ac_path_EGREP_max=$ac_count 4920 fi 4921 # 10*(2^10) chars as input seems more than enough 4922 test $ac_count -gt 10 && break 4923 done 4924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4925esac 4926 4927 $ac_path_EGREP_found && break 3 4928 done 4929 done 4930 done 4931IFS=$as_save_IFS 4932 if test -z "$ac_cv_path_EGREP"; then 4933 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4934 fi 4935else 4936 ac_cv_path_EGREP=$EGREP 4937fi 4938 4939 fi 4940fi 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4942$as_echo "$ac_cv_path_EGREP" >&6; } 4943 EGREP="$ac_cv_path_EGREP" 4944 4945 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4947$as_echo_n "checking for ANSI C header files... " >&6; } 4948if ${ac_cv_header_stdc+:} false; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4952/* end confdefs.h. */ 4953#include <stdlib.h> 4954#include <stdarg.h> 4955#include <string.h> 4956#include <float.h> 4957 4958int 4959main () 4960{ 4961 4962 ; 4963 return 0; 4964} 4965_ACEOF 4966if ac_fn_c_try_compile "$LINENO"; then : 4967 ac_cv_header_stdc=yes 4968else 4969 ac_cv_header_stdc=no 4970fi 4971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4972 4973if test $ac_cv_header_stdc = yes; then 4974 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4976/* end confdefs.h. */ 4977#include <string.h> 4978 4979_ACEOF 4980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4981 $EGREP "memchr" >/dev/null 2>&1; then : 4982 4983else 4984 ac_cv_header_stdc=no 4985fi 4986rm -f conftest* 4987 4988fi 4989 4990if test $ac_cv_header_stdc = yes; then 4991 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4993/* end confdefs.h. */ 4994#include <stdlib.h> 4995 4996_ACEOF 4997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4998 $EGREP "free" >/dev/null 2>&1; then : 4999 5000else 5001 ac_cv_header_stdc=no 5002fi 5003rm -f conftest* 5004 5005fi 5006 5007if test $ac_cv_header_stdc = yes; then 5008 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5009 if test "$cross_compiling" = yes; then : 5010 : 5011else 5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5013/* end confdefs.h. */ 5014#include <ctype.h> 5015#include <stdlib.h> 5016#if ((' ' & 0x0FF) == 0x020) 5017# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5018# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5019#else 5020# define ISLOWER(c) \ 5021 (('a' <= (c) && (c) <= 'i') \ 5022 || ('j' <= (c) && (c) <= 'r') \ 5023 || ('s' <= (c) && (c) <= 'z')) 5024# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5025#endif 5026 5027#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5028int 5029main () 5030{ 5031 int i; 5032 for (i = 0; i < 256; i++) 5033 if (XOR (islower (i), ISLOWER (i)) 5034 || toupper (i) != TOUPPER (i)) 5035 return 2; 5036 return 0; 5037} 5038_ACEOF 5039if ac_fn_c_try_run "$LINENO"; then : 5040 5041else 5042 ac_cv_header_stdc=no 5043fi 5044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5045 conftest.$ac_objext conftest.beam conftest.$ac_ext 5046fi 5047 5048fi 5049fi 5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5051$as_echo "$ac_cv_header_stdc" >&6; } 5052if test $ac_cv_header_stdc = yes; then 5053 5054$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5055 5056fi 5057 5058# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5059for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5060 inttypes.h stdint.h unistd.h 5061do : 5062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5063ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5064" 5065if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5066 cat >>confdefs.h <<_ACEOF 5067#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5068_ACEOF 5069 5070fi 5071 5072done 5073 5074 5075 5076 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5077if test "x$ac_cv_header_minix_config_h" = xyes; then : 5078 MINIX=yes 5079else 5080 MINIX= 5081fi 5082 5083 5084 if test "$MINIX" = yes; then 5085 5086$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5087 5088 5089$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5090 5091 5092$as_echo "#define _MINIX 1" >>confdefs.h 5093 5094 fi 5095 5096 5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5098$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5099if ${ac_cv_safe_to_define___extensions__+:} false; then : 5100 $as_echo_n "(cached) " >&6 5101else 5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5103/* end confdefs.h. */ 5104 5105# define __EXTENSIONS__ 1 5106 $ac_includes_default 5107int 5108main () 5109{ 5110 5111 ; 5112 return 0; 5113} 5114_ACEOF 5115if ac_fn_c_try_compile "$LINENO"; then : 5116 ac_cv_safe_to_define___extensions__=yes 5117else 5118 ac_cv_safe_to_define___extensions__=no 5119fi 5120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5121fi 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5123$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5124 test $ac_cv_safe_to_define___extensions__ = yes && 5125 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5126 5127 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5128 5129 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5130 5131 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5132 5133 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5134 5135 5136 5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 5138$as_echo_n "checking for library containing strerror... " >&6; } 5139if ${ac_cv_search_strerror+:} false; then : 5140 $as_echo_n "(cached) " >&6 5141else 5142 ac_func_search_save_LIBS=$LIBS 5143cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5144/* end confdefs.h. */ 5145 5146/* Override any GCC internal prototype to avoid an error. 5147 Use char because int might match the return type of a GCC 5148 builtin and then its argument prototype would still apply. */ 5149#ifdef __cplusplus 5150extern "C" 5151#endif 5152char strerror (); 5153int 5154main () 5155{ 5156return strerror (); 5157 ; 5158 return 0; 5159} 5160_ACEOF 5161for ac_lib in '' cposix; do 5162 if test -z "$ac_lib"; then 5163 ac_res="none required" 5164 else 5165 ac_res=-l$ac_lib 5166 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5167 fi 5168 if ac_fn_c_try_link "$LINENO"; then : 5169 ac_cv_search_strerror=$ac_res 5170fi 5171rm -f core conftest.err conftest.$ac_objext \ 5172 conftest$ac_exeext 5173 if ${ac_cv_search_strerror+:} false; then : 5174 break 5175fi 5176done 5177if ${ac_cv_search_strerror+:} false; then : 5178 5179else 5180 ac_cv_search_strerror=no 5181fi 5182rm conftest.$ac_ext 5183LIBS=$ac_func_search_save_LIBS 5184fi 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 5186$as_echo "$ac_cv_search_strerror" >&6; } 5187ac_res=$ac_cv_search_strerror 5188if test "$ac_res" != no; then : 5189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5190 5191fi 5192 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 5194$as_echo_n "checking for long file names... " >&6; } 5195if ${ac_cv_sys_long_file_names+:} false; then : 5196 $as_echo_n "(cached) " >&6 5197else 5198 ac_cv_sys_long_file_names=yes 5199# Test for long file names in all the places we know might matter: 5200# . the current directory, where building will happen 5201# $prefix/lib where we will be installing things 5202# $exec_prefix/lib likewise 5203# $TMPDIR if set, where it might want to write temporary files 5204# /tmp where it might want to write temporary files 5205# /var/tmp likewise 5206# /usr/tmp likewise 5207for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do 5208 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib 5209 # in the usual case where exec_prefix is '${prefix}'. 5210 case $ac_dir in #( 5211 . | /* | ?:[\\/]*) ;; #( 5212 *) continue;; 5213 esac 5214 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. 5215 ac_xdir=$ac_dir/cf$$ 5216 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue 5217 ac_tf1=$ac_xdir/conftest9012345 5218 ac_tf2=$ac_xdir/conftest9012346 5219 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || 5220 ac_cv_sys_long_file_names=no 5221 rm -f -r "$ac_xdir" 2>/dev/null 5222 test $ac_cv_sys_long_file_names = no && break 5223done 5224fi 5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 5226$as_echo "$ac_cv_sys_long_file_names" >&6; } 5227if test $ac_cv_sys_long_file_names = yes; then 5228 5229$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h 5230 5231fi 5232 5233 5234 5235 5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5237$as_echo_n "checking for inline... " >&6; } 5238if ${ac_cv_my_c_inline+:} false; then : 5239 $as_echo_n "(cached) " >&6 5240else 5241 ac_cv_my_c_inline=no 5242for ac_kw in inline __inline__ __inline; do 5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5244/* end confdefs.h. */ 5245 5246int 5247main () 5248{ 5249} $ac_kw foo() { 5250 ; 5251 return 0; 5252} 5253_ACEOF 5254if ac_fn_c_try_compile "$LINENO"; then : 5255 ac_cv_my_c_inline=$ac_kw; break 5256fi 5257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5258done 5259 5260fi 5261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_my_c_inline" >&5 5262$as_echo "$ac_cv_my_c_inline" >&6; } 5263case "$ac_cv_my_c_inline" in 5264 inline | yes) $as_echo "#define C_INLINE inline" >>confdefs.h 5265 ;; 5266 no) $as_echo "#define C_INLINE /**/" >>confdefs.h 5267 ;; 5268 *) cat >>confdefs.h <<_ACEOF 5269#define C_INLINE $ac_cv_my_c_inline 5270_ACEOF 5271 ;; 5272esac 5273 5274 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working const" >&5 5276$as_echo_n "checking for working const... " >&6; } 5277if ${ac_cv_my_c_const+:} false; then : 5278 $as_echo_n "(cached) " >&6 5279else 5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5281/* end confdefs.h. */ 5282 5283int 5284main () 5285{ 5286 5287/* Ultrix mips cc rejects this. */ 5288typedef int charset[2]; const charset x; 5289/* SunOS 4.1.1 cc rejects this. */ 5290char const *const *ccp; 5291char **p; 5292/* NEC SVR4.0.2 mips cc rejects this. */ 5293struct point {int x, y;}; 5294static struct point const zero = {0,0}; 5295/* AIX XL C 1.02.0.0 rejects this. 5296 It does not let you subtract one const X* pointer from another in an arm 5297 of an if-expression whose if-part is not a constant expression */ 5298const char *g = "string"; 5299ccp = &g + (g ? g-g : 0); 5300/* HPUX 7.0 cc rejects these. */ 5301++ccp; 5302p = (char**) ccp; 5303ccp = (char const *const *) p; 5304{ /* SCO 3.2v4 cc rejects this. */ 5305 char *t; 5306 char const *s = 0 ? (char *) 0 : (char const *) 0; 5307 5308 *t++ = 0; 5309} 5310{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5311 int x[] = {25, 17}; 5312 const int *foo = &x[0]; 5313 ++foo; 5314} 5315{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5316 typedef const int *iptr; 5317 iptr p = 0; 5318 ++p; 5319} 5320{ /* AIX XL C 1.02.0.0 rejects this saying 5321 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5322 struct s { int j; const int *ap[3]; }; 5323 struct s *b; b->j = 5; 5324} 5325{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5326 const int foo = 10; 5327} 5328 5329 ; 5330 return 0; 5331} 5332_ACEOF 5333if ac_fn_c_try_compile "$LINENO"; then : 5334 ac_cv_my_c_const=yes 5335else 5336 ac_cv_my_c_const=no 5337fi 5338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5339fi 5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_my_c_const" >&5 5341$as_echo "$ac_cv_my_c_const" >&6; } 5342if test $ac_cv_my_c_const = yes; then 5343 cat >>confdefs.h <<_ACEOF 5344#define HAVE_C_CONST 1 5345_ACEOF 5346 5347fi 5348 5349 5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 5351$as_echo_n "checking whether char is unsigned... " >&6; } 5352if ${ac_cv_my_c_char_unsigned+:} false; then : 5353 $as_echo_n "(cached) " >&6 5354else 5355 if test "$GCC" = yes; then 5356 # GCC predefines this symbol on systems where it applies. 5357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5358/* end confdefs.h. */ 5359#ifdef __CHAR_UNSIGNED__ 5360 yes 5361#endif 5362 5363_ACEOF 5364if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5365 $EGREP "yes" >/dev/null 2>&1; then : 5366 ac_cv_my_c_char_unsigned=yes 5367else 5368 ac_cv_my_c_char_unsigned=no 5369fi 5370rm -f conftest* 5371 5372else 5373if test "$cross_compiling" = yes; then : 5374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5376as_fn_error $? "cannot run test program while cross compiling 5377See \`config.log' for more details" "$LINENO" 5; } 5378else 5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5380/* end confdefs.h. */ 5381/* volatile prevents gcc2 from optimizing the test away on sparcs. */ 5382#if !defined(__STDC__) || __STDC__ != 1 5383#define volatile 5384#endif 5385main() { 5386 volatile char c = 255; exit(c < 0); 5387} 5388_ACEOF 5389if ac_fn_c_try_run "$LINENO"; then : 5390 ac_cv_my_c_char_unsigned=yes 5391else 5392 ac_cv_my_c_char_unsigned=no 5393fi 5394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5395 conftest.$ac_objext conftest.beam conftest.$ac_ext 5396fi 5397 5398fi 5399fi 5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_my_c_char_unsigned" >&5 5401$as_echo "$ac_cv_my_c_char_unsigned" >&6; } 5402if test $ac_cv_my_c_char_unsigned = yes ; then 5403 $as_echo "#define C_CHAR_UNSIGNED 1" >>confdefs.h 5404 5405fi 5406 5407 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift is unsigned" >&5 5409$as_echo_n "checking whether right shift is unsigned... " >&6; } 5410if ${ac_cv_my_c_rightshift_unsigned+:} false; then : 5411 $as_echo_n "(cached) " >&6 5412else 5413 5414if test "$cross_compiling" = yes; then : 5415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5417as_fn_error $? "cannot run test program while cross compiling 5418See \`config.log' for more details" "$LINENO" 5; } 5419else 5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5421/* end confdefs.h. */ 5422/* See whether right-shift on a long is signed or not. */ 5423int is_shifting_signed (long arg) 5424{ 5425 long res = arg >> 4; 5426 5427 if (res == -0x7F7E80CL) { /* expected result for signed shift */ 5428 return 1; /* right shift is signed */ 5429 } 5430 /* see if unsigned-shift hack will fix it. */ 5431 /* we can't just test exact value since it depends on width of long... */ 5432 res |= (~0L) << (32-4); 5433 if (res == -0x7F7E80CL) { /* expected result now? */ 5434 return 0; /* right shift is unsigned */ 5435 } 5436 /* Right shift isn't acting as I expect it to, try it with unsigned anyway */ 5437 return 0; 5438} 5439 5440int main() 5441{ 5442 exit(is_shifting_signed(-0x7F7E80B1L)); 5443} 5444 5445_ACEOF 5446if ac_fn_c_try_run "$LINENO"; then : 5447 ac_cv_my_c_rightshift_unsigned=yes 5448else 5449 ac_cv_my_c_rightshift_unsigned=no 5450fi 5451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5452 conftest.$ac_objext conftest.beam conftest.$ac_ext 5453fi 5454 5455 5456fi 5457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_my_c_rightshift_unsigned" >&5 5458$as_echo "$ac_cv_my_c_rightshift_unsigned" >&6; } 5459if test $ac_cv_my_c_rightshift_unsigned = yes ; then 5460 $as_echo "#define C_CHAR_UNSIGNED 1" >>confdefs.h 5461 5462fi 5463 5464 5465 5466 5467 5468 5469 5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5 5471$as_echo_n "checking for uchar... " >&6; } 5472if ${ac_cv_type_uchar+:} false; then : 5473 $as_echo_n "(cached) " >&6 5474else 5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5476/* end confdefs.h. */ 5477$ac_includes_default 5478int 5479main () 5480{ 5481if ((uchar *) 0) 5482 return 0; 5483if (sizeof (uchar)) 5484 return 0; 5485 ; 5486 return 0; 5487} 5488_ACEOF 5489if ac_fn_c_try_compile "$LINENO"; then : 5490 ac_cv_type_uchar=yes 5491else 5492 ac_cv_type_uchar=no 5493fi 5494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5495fi 5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uchar" >&5 5497$as_echo "$ac_cv_type_uchar" >&6; } 5498if test $ac_cv_type_uchar = yes; then : 5499 5500else 5501 5502cat >>confdefs.h <<_ACEOF 5503#define HAVE_NO_TYPEDEF_UCHAR 1 5504_ACEOF 5505 5506fi 5507 5508 5509 5510 5511 5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ushort" >&5 5513$as_echo_n "checking for ushort... " >&6; } 5514if ${ac_cv_type_ushort+:} false; then : 5515 $as_echo_n "(cached) " >&6 5516else 5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5518/* end confdefs.h. */ 5519$ac_includes_default 5520int 5521main () 5522{ 5523if ((ushort *) 0) 5524 return 0; 5525if (sizeof (ushort)) 5526 return 0; 5527 ; 5528 return 0; 5529} 5530_ACEOF 5531if ac_fn_c_try_compile "$LINENO"; then : 5532 ac_cv_type_ushort=yes 5533else 5534 ac_cv_type_ushort=no 5535fi 5536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5537fi 5538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_ushort" >&5 5539$as_echo "$ac_cv_type_ushort" >&6; } 5540if test $ac_cv_type_ushort = yes; then : 5541 5542else 5543 5544cat >>confdefs.h <<_ACEOF 5545#define HAVE_NO_TYPEDEF_USHORT 1 5546_ACEOF 5547 5548fi 5549 5550 5551 5552 5553 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint" >&5 5555$as_echo_n "checking for uint... " >&6; } 5556if ${ac_cv_type_uint+:} false; then : 5557 $as_echo_n "(cached) " >&6 5558else 5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5560/* end confdefs.h. */ 5561$ac_includes_default 5562int 5563main () 5564{ 5565if ((uint *) 0) 5566 return 0; 5567if (sizeof (uint)) 5568 return 0; 5569 ; 5570 return 0; 5571} 5572_ACEOF 5573if ac_fn_c_try_compile "$LINENO"; then : 5574 ac_cv_type_uint=yes 5575else 5576 ac_cv_type_uint=no 5577fi 5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5579fi 5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint" >&5 5581$as_echo "$ac_cv_type_uint" >&6; } 5582if test $ac_cv_type_uint = yes; then : 5583 5584else 5585 5586cat >>confdefs.h <<_ACEOF 5587#define HAVE_NO_TYPEDEF_UINT 1 5588_ACEOF 5589 5590fi 5591 5592 5593 5594 5595 5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong" >&5 5597$as_echo_n "checking for ulong... " >&6; } 5598if ${ac_cv_type_ulong+:} false; then : 5599 $as_echo_n "(cached) " >&6 5600else 5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5602/* end confdefs.h. */ 5603$ac_includes_default 5604int 5605main () 5606{ 5607if ((ulong *) 0) 5608 return 0; 5609if (sizeof (ulong)) 5610 return 0; 5611 ; 5612 return 0; 5613} 5614_ACEOF 5615if ac_fn_c_try_compile "$LINENO"; then : 5616 ac_cv_type_ulong=yes 5617else 5618 ac_cv_type_ulong=no 5619fi 5620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5621fi 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_ulong" >&5 5623$as_echo "$ac_cv_type_ulong" >&6; } 5624if test $ac_cv_type_ulong = yes; then : 5625 5626else 5627 5628cat >>confdefs.h <<_ACEOF 5629#define HAVE_NO_TYPEDEF_ULONG 1 5630_ACEOF 5631 5632fi 5633 5634ac_fn_c_check_type "$LINENO" "longlong" "ac_cv_type_longlong" "$ac_includes_default" 5635if test "x$ac_cv_type_longlong" = xyes; then : 5636 5637cat >>confdefs.h <<_ACEOF 5638#define HAVE_LONGLONG 1 5639_ACEOF 5640 5641 5642fi 5643 5644ac_fn_c_check_type "$LINENO" "ulonglong" "ac_cv_type_ulonglong" "$ac_includes_default" 5645if test "x$ac_cv_type_ulonglong" = xyes; then : 5646 5647cat >>confdefs.h <<_ACEOF 5648#define HAVE_ULONGLONG 1 5649_ACEOF 5650 5651 5652fi 5653 5654ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 5655if test "x$ac_cv_type_long_long" = xyes; then : 5656 5657cat >>confdefs.h <<_ACEOF 5658#define HAVE_LONG_LONG 1 5659_ACEOF 5660 5661 5662fi 5663 5664ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default" 5665if test "x$ac_cv_type_unsigned_long_long" = xyes; then : 5666 5667cat >>confdefs.h <<_ACEOF 5668#define HAVE_UNSIGNED_LONG_LONG 1 5669_ACEOF 5670 5671 5672fi 5673 5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether variable-length arrays are supported" >&5 5675$as_echo_n "checking whether variable-length arrays are supported... " >&6; } 5676 5677 5678ac_ext=c 5679ac_cpp='$CPP $CPPFLAGS' 5680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5682ac_compiler_gnu=$ac_cv_c_compiler_gnu 5683 5684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5685/* end confdefs.h. */ 5686 5687int 5688main () 5689{ 5690 5691 int n; int foo[n]; 5692 5693 ; 5694 return 0; 5695} 5696_ACEOF 5697if ac_fn_c_try_compile "$LINENO"; then : 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5699$as_echo "yes" >&6; }; $as_echo "#define HAVE_VLA 1" >>confdefs.h 5700 5701else 5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5703$as_echo "no" >&6; } 5704fi 5705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5706ac_ext=c 5707ac_cpp='$CPP $CPPFLAGS' 5708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5710ac_compiler_gnu=$ac_cv_c_compiler_gnu 5711 5712 5713 5714ac_fn_c_check_type "$LINENO" "fpos64_t" "ac_cv_type_fpos64_t" "$ac_includes_default" 5715if test "x$ac_cv_type_fpos64_t" = xyes; then : 5716 5717cat >>confdefs.h <<_ACEOF 5718#define HAVE_FPOS64_T 1 5719_ACEOF 5720 5721 5722fi 5723 5724ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default" 5725if test "x$ac_cv_type_off64_t" = xyes; then : 5726 5727cat >>confdefs.h <<_ACEOF 5728#define HAVE_OFF64_T 1 5729_ACEOF 5730 5731 5732fi 5733 5734 5735for ac_header in stdbool.h 5736do : 5737 ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default" 5738if test "x$ac_cv_header_stdbool_h" = xyes; then : 5739 cat >>confdefs.h <<_ACEOF 5740#define HAVE_STDBOOL_H 1 5741_ACEOF 5742 5743fi 5744 5745done 5746 5747for ac_header in stdint.h 5748do : 5749 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 5750if test "x$ac_cv_header_stdint_h" = xyes; then : 5751 cat >>confdefs.h <<_ACEOF 5752#define HAVE_STDINT_H 1 5753_ACEOF 5754 5755fi 5756 5757done 5758 5759for ac_header in cstdint 5760do : 5761 ac_fn_c_check_header_mongrel "$LINENO" "cstdint" "ac_cv_header_cstdint" "$ac_includes_default" 5762if test "x$ac_cv_header_cstdint" = xyes; then : 5763 cat >>confdefs.h <<_ACEOF 5764#define HAVE_CSTDINT 1 5765_ACEOF 5766 5767fi 5768 5769done 5770 5771 5772ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 5773if test "x$ac_cv_type_int64_t" = xyes; then : 5774 5775cat >>confdefs.h <<_ACEOF 5776#define HAVE_INT64_T 1 5777_ACEOF 5778 5779 5780fi 5781 5782ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 5783if test "x$ac_cv_type_uint64_t" = xyes; then : 5784 5785cat >>confdefs.h <<_ACEOF 5786#define HAVE_UINT64_T 1 5787_ACEOF 5788 5789 5790fi 5791 5792 5793ac_fn_c_check_type "$LINENO" "char16_t" "ac_cv_type_char16_t" "$ac_includes_default" 5794if test "x$ac_cv_type_char16_t" = xyes; then : 5795 5796cat >>confdefs.h <<_ACEOF 5797#define HAVE_CHAR16_T 1 5798_ACEOF 5799 5800 5801fi 5802 5803 5804ac_fn_c_check_type "$LINENO" "sigjmp_buf" "ac_cv_type_sigjmp_buf" "#include <setjmp.h> 5805" 5806if test "x$ac_cv_type_sigjmp_buf" = xyes; then : 5807 5808cat >>confdefs.h <<_ACEOF 5809#define HAVE_SIGJMP_BUF 1 5810_ACEOF 5811 5812 5813fi 5814 5815 5816 5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 5818$as_echo_n "checking for working memcmp... " >&6; } 5819if ${ac_cv_func_memcmp_working+:} false; then : 5820 $as_echo_n "(cached) " >&6 5821else 5822 if test "$cross_compiling" = yes; then : 5823 ac_cv_func_memcmp_working=no 5824else 5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5826/* end confdefs.h. */ 5827$ac_includes_default 5828int 5829main () 5830{ 5831 5832 /* Some versions of memcmp are not 8-bit clean. */ 5833 char c0 = '\100', c1 = '\200', c2 = '\201'; 5834 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 5835 return 1; 5836 5837 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 5838 or more and with at least one buffer not starting on a 4-byte boundary. 5839 William Lewis provided this test program. */ 5840 { 5841 char foo[21]; 5842 char bar[21]; 5843 int i; 5844 for (i = 0; i < 4; i++) 5845 { 5846 char *a = foo + i; 5847 char *b = bar + i; 5848 strcpy (a, "--------01111111"); 5849 strcpy (b, "--------10000000"); 5850 if (memcmp (a, b, 16) >= 0) 5851 return 1; 5852 } 5853 return 0; 5854 } 5855 5856 ; 5857 return 0; 5858} 5859_ACEOF 5860if ac_fn_c_try_run "$LINENO"; then : 5861 ac_cv_func_memcmp_working=yes 5862else 5863 ac_cv_func_memcmp_working=no 5864fi 5865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5866 conftest.$ac_objext conftest.beam conftest.$ac_ext 5867fi 5868 5869fi 5870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 5871$as_echo "$ac_cv_func_memcmp_working" >&6; } 5872test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 5873 *" memcmp.$ac_objext "* ) ;; 5874 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 5875 ;; 5876esac 5877 5878 5879for ac_func in vprintf 5880do : 5881 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 5882if test "x$ac_cv_func_vprintf" = xyes; then : 5883 cat >>confdefs.h <<_ACEOF 5884#define HAVE_VPRINTF 1 5885_ACEOF 5886 5887ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 5888if test "x$ac_cv_func__doprnt" = xyes; then : 5889 5890$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 5891 5892fi 5893 5894fi 5895done 5896 5897 5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 5899$as_echo_n "checking return type of signal handlers... " >&6; } 5900if ${ac_cv_type_signal+:} false; then : 5901 $as_echo_n "(cached) " >&6 5902else 5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5904/* end confdefs.h. */ 5905#include <sys/types.h> 5906#include <signal.h> 5907 5908int 5909main () 5910{ 5911return *(signal (0, 0)) (0) == 1; 5912 ; 5913 return 0; 5914} 5915_ACEOF 5916if ac_fn_c_try_compile "$LINENO"; then : 5917 ac_cv_type_signal=int 5918else 5919 ac_cv_type_signal=void 5920fi 5921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5922fi 5923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 5924$as_echo "$ac_cv_type_signal" >&6; } 5925 5926cat >>confdefs.h <<_ACEOF 5927#define RETSIGTYPE $ac_cv_type_signal 5928_ACEOF 5929 5930 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5 5932$as_echo_n "checking for wait3 that fills in rusage... " >&6; } 5933if ${ac_cv_func_wait3_rusage+:} false; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 if test "$cross_compiling" = yes; then : 5937 ac_cv_func_wait3_rusage=no 5938else 5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5940/* end confdefs.h. */ 5941$ac_includes_default 5942#include <sys/time.h> 5943#include <sys/resource.h> 5944#include <sys/wait.h> 5945/* HP-UX has wait3 but does not fill in rusage at all. */ 5946int 5947main () 5948{ 5949 struct rusage r; 5950 int i; 5951 /* Use a field that we can force nonzero -- 5952 voluntary context switches. 5953 For systems like NeXT and OSF/1 that don't set it, 5954 also use the system CPU time. And page faults (I/O) for Linux. */ 5955 r.ru_nvcsw = 0; 5956 r.ru_stime.tv_sec = 0; 5957 r.ru_stime.tv_usec = 0; 5958 r.ru_majflt = r.ru_minflt = 0; 5959 switch (fork ()) 5960 { 5961 case 0: /* Child. */ 5962 sleep(1); /* Give up the CPU. */ 5963 _exit(0); 5964 break; 5965 case -1: /* What can we do? */ 5966 _exit(0); 5967 break; 5968 default: /* Parent. */ 5969 wait3(&i, 0, &r); 5970 /* Avoid "text file busy" from rm on fast HP-UX machines. */ 5971 sleep(2); 5972 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0 5973 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0); 5974 } 5975} 5976_ACEOF 5977if ac_fn_c_try_run "$LINENO"; then : 5978 ac_cv_func_wait3_rusage=yes 5979else 5980 ac_cv_func_wait3_rusage=no 5981fi 5982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5983 conftest.$ac_objext conftest.beam conftest.$ac_ext 5984fi 5985 5986fi 5987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5 5988$as_echo "$ac_cv_func_wait3_rusage" >&6; } 5989if test $ac_cv_func_wait3_rusage = yes; then 5990 5991$as_echo "#define HAVE_WAIT3 1" >>confdefs.h 5992 5993fi 5994 5995for ac_func in gethostname gethostid socket sysinfo 5996do : 5997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5998ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5999if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6000 cat >>confdefs.h <<_ACEOF 6001#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6002_ACEOF 6003 6004fi 6005done 6006 6007for ac_func in strchr strstr strtoul itoa atoll 6008do : 6009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6010ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6011if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6012 cat >>confdefs.h <<_ACEOF 6013#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6014_ACEOF 6015 6016fi 6017done 6018 6019for ac_func in memcpy memset memmove memcmp bcopy bcmp 6020do : 6021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6022ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6023if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6024 cat >>confdefs.h <<_ACEOF 6025#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6026_ACEOF 6027 6028fi 6029done 6030 6031for ac_func in getpid mktemp tempnam tmpnam getenv mkstemp 6032do : 6033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6034ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6035if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6036 cat >>confdefs.h <<_ACEOF 6037#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6038_ACEOF 6039 6040fi 6041done 6042 6043for ac_func in stat 6044do : 6045 ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat" 6046if test "x$ac_cv_func_stat" = xyes; then : 6047 cat >>confdefs.h <<_ACEOF 6048#define HAVE_STAT 1 6049_ACEOF 6050 6051fi 6052done 6053 6054for ac_func in malloc_debug 6055do : 6056 ac_fn_c_check_func "$LINENO" "malloc_debug" "ac_cv_func_malloc_debug" 6057if test "x$ac_cv_func_malloc_debug" = xyes; then : 6058 cat >>confdefs.h <<_ACEOF 6059#define HAVE_MALLOC_DEBUG 1 6060_ACEOF 6061 6062fi 6063done 6064 6065for ac_func in strerror strdup bzero index rindex access 6066do : 6067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6068ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6069if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6070 cat >>confdefs.h <<_ACEOF 6071#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6072_ACEOF 6073 6074fi 6075done 6076 6077for ac_func in uname cuserid getlogin getlogin_r 6078do : 6079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6080ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6081if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6082 cat >>confdefs.h <<_ACEOF 6083#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6084_ACEOF 6085 6086fi 6087done 6088 6089for ac_func in usleep 6090do : 6091 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" 6092if test "x$ac_cv_func_usleep" = xyes; then : 6093 cat >>confdefs.h <<_ACEOF 6094#define HAVE_USLEEP 1 6095_ACEOF 6096 6097fi 6098done 6099 6100for ac_func in flock lockf 6101do : 6102 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6103ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6104if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6105 cat >>confdefs.h <<_ACEOF 6106#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6107_ACEOF 6108 6109fi 6110done 6111 6112for ac_func in listen connect setsockopt getsockopt select 6113do : 6114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6115ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6116if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6117 cat >>confdefs.h <<_ACEOF 6118#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6119_ACEOF 6120 6121fi 6122done 6123 6124for ac_func in gethostbyname gethostbyname_r 6125do : 6126 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6127ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6128if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6129 cat >>confdefs.h <<_ACEOF 6130#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6131_ACEOF 6132 6133fi 6134done 6135 6136for ac_func in gethostbyaddr_r getgrnam_r getpwnam_r 6137do : 6138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6139ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6140if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6141 cat >>confdefs.h <<_ACEOF 6142#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6143_ACEOF 6144 6145fi 6146done 6147 6148for ac_func in bind accept getsockname getaddrinfo 6149do : 6150 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6151ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6152if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6153 cat >>confdefs.h <<_ACEOF 6154#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6155_ACEOF 6156 6157fi 6158done 6159 6160for ac_func in getrusage 6161do : 6162 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" 6163if test "x$ac_cv_func_getrusage" = xyes; then : 6164 cat >>confdefs.h <<_ACEOF 6165#define HAVE_GETRUSAGE 1 6166_ACEOF 6167 6168fi 6169done 6170 6171for ac_func in gettimeofday 6172do : 6173 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 6174if test "x$ac_cv_func_gettimeofday" = xyes; then : 6175 cat >>confdefs.h <<_ACEOF 6176#define HAVE_GETTIMEOFDAY 1 6177_ACEOF 6178 6179fi 6180done 6181 6182for ac_func in waitpid 6183do : 6184 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" 6185if test "x$ac_cv_func_waitpid" = xyes; then : 6186 cat >>confdefs.h <<_ACEOF 6187#define HAVE_WAITPID 1 6188_ACEOF 6189 6190fi 6191done 6192 6193for ac_func in getuid geteuid setuid getpwnam getgrnam 6194do : 6195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6196ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6197if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6198 cat >>confdefs.h <<_ACEOF 6199#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6200_ACEOF 6201 6202fi 6203done 6204 6205for ac_func in sleep fork 6206do : 6207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6208ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6209if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6210 cat >>confdefs.h <<_ACEOF 6211#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6212_ACEOF 6213 6214fi 6215done 6216 6217for ac_func in _findfirst 6218do : 6219 ac_fn_c_check_func "$LINENO" "_findfirst" "ac_cv_func__findfirst" 6220if test "x$ac_cv_func__findfirst" = xyes; then : 6221 cat >>confdefs.h <<_ACEOF 6222#define HAVE__FINDFIRST 1 6223_ACEOF 6224 6225fi 6226done 6227 6228for ac_func in strlcpy strlcat 6229do : 6230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6231ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6232if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6233 cat >>confdefs.h <<_ACEOF 6234#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6235_ACEOF 6236 6237fi 6238done 6239 6240for ac_func in vsnprintf 6241do : 6242 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 6243if test "x$ac_cv_func_vsnprintf" = xyes; then : 6244 cat >>confdefs.h <<_ACEOF 6245#define HAVE_VSNPRINTF 1 6246_ACEOF 6247 6248fi 6249done 6250 6251for ac_func in mbstowcs wcstombs 6252do : 6253 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6254ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6255if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6256 cat >>confdefs.h <<_ACEOF 6257#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6258_ACEOF 6259 6260fi 6261done 6262 6263for ac_func in popen pclose 6264do : 6265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6266ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6267if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6268 cat >>confdefs.h <<_ACEOF 6269#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6270_ACEOF 6271 6272fi 6273done 6274 6275for ac_func in readdir_r 6276do : 6277 ac_fn_c_check_func "$LINENO" "readdir_r" "ac_cv_func_readdir_r" 6278if test "x$ac_cv_func_readdir_r" = xyes; then : 6279 cat >>confdefs.h <<_ACEOF 6280#define HAVE_READDIR_R 1 6281_ACEOF 6282 6283fi 6284done 6285 6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 6287$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 6288if ${ac_cv_sys_largefile_source+:} false; then : 6289 $as_echo_n "(cached) " >&6 6290else 6291 while :; do 6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6293/* end confdefs.h. */ 6294#include <sys/types.h> /* for off_t */ 6295 #include <stdio.h> 6296int 6297main () 6298{ 6299int (*fp) (FILE *, off_t, int) = fseeko; 6300 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 6301 ; 6302 return 0; 6303} 6304_ACEOF 6305if ac_fn_c_try_link "$LINENO"; then : 6306 ac_cv_sys_largefile_source=no; break 6307fi 6308rm -f core conftest.err conftest.$ac_objext \ 6309 conftest$ac_exeext conftest.$ac_ext 6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6311/* end confdefs.h. */ 6312#define _LARGEFILE_SOURCE 1 6313#include <sys/types.h> /* for off_t */ 6314 #include <stdio.h> 6315int 6316main () 6317{ 6318int (*fp) (FILE *, off_t, int) = fseeko; 6319 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 6320 ; 6321 return 0; 6322} 6323_ACEOF 6324if ac_fn_c_try_link "$LINENO"; then : 6325 ac_cv_sys_largefile_source=1; break 6326fi 6327rm -f core conftest.err conftest.$ac_objext \ 6328 conftest$ac_exeext conftest.$ac_ext 6329 ac_cv_sys_largefile_source=unknown 6330 break 6331done 6332fi 6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 6334$as_echo "$ac_cv_sys_largefile_source" >&6; } 6335case $ac_cv_sys_largefile_source in #( 6336 no | unknown) ;; 6337 *) 6338cat >>confdefs.h <<_ACEOF 6339#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 6340_ACEOF 6341;; 6342esac 6343rm -rf conftest* 6344 6345# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 6346# in glibc 2.1.3, but that breaks too many other things. 6347# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 6348if test $ac_cv_sys_largefile_source != unknown; then 6349 6350$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 6351 6352fi 6353 6354 6355 6356 6357 6358 6359for ac_func in ftime gmtime_r localtime_r lstat nanosleep fcntl 6360do : 6361 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6362ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6363if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6364 cat >>confdefs.h <<_ACEOF 6365#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6366_ACEOF 6367 6368fi 6369done 6370 6371for ac_func in htons htonl ntohs ntohl 6372do : 6373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6374ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6375if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6376 cat >>confdefs.h <<_ACEOF 6377#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6378_ACEOF 6379 6380fi 6381done 6382 6383for ac_header in netinet/in.h 6384do : 6385 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 6386if test "x$ac_cv_header_netinet_in_h" = xyes; then : 6387 cat >>confdefs.h <<_ACEOF 6388#define HAVE_NETINET_IN_H 1 6389_ACEOF 6390 6391fi 6392 6393done 6394 6395for ac_header in syslog.h 6396do : 6397 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" 6398if test "x$ac_cv_header_syslog_h" = xyes; then : 6399 cat >>confdefs.h <<_ACEOF 6400#define HAVE_SYSLOG_H 1 6401_ACEOF 6402 6403fi 6404 6405done 6406 6407 6408 6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 6410$as_echo_n "checking for socklen_t... " >&6; } 6411if ${ac_cv_type_socklen_t+:} false; then : 6412 $as_echo_n "(cached) " >&6 6413else 6414 6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6416/* end confdefs.h. */ 6417#include <sys/types.h> 6418 #include <sys/socket.h> 6419int 6420main () 6421{ 6422socklen_t len = 42; return 0; 6423 ; 6424 return 0; 6425} 6426_ACEOF 6427if ac_fn_c_try_compile "$LINENO"; then : 6428 ac_cv_type_socklen_t=yes 6429else 6430 ac_cv_type_socklen_t=no 6431fi 6432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6433 6434fi 6435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5 6436$as_echo "$ac_cv_type_socklen_t" >&6; } 6437 if test $ac_cv_type_socklen_t != yes; then 6438 $as_echo "#define socklen_t int" >>confdefs.h 6439 6440 fi 6441 6442 6443 6444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6445/* end confdefs.h. */ 6446#include <errno.h> 6447int 6448main () 6449{ 6450int value = ENAMETOOLONG; 6451 ; 6452 return 0; 6453} 6454_ACEOF 6455if ac_fn_c_try_compile "$LINENO"; then : 6456 6457$as_echo "#define HAVE_ENAMETOOLONG /**/" >>confdefs.h 6458 6459fi 6460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6461 6462 6463SAVELIBS="$LIBS" 6464LIBS="$LIBS -lm" 6465for ac_func in finite isinf isnan 6466do : 6467 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6468ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6469if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6470 cat >>confdefs.h <<_ACEOF 6471#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6472_ACEOF 6473 6474fi 6475done 6476 6477LIBS="$SAVELIBS" 6478 6479ac_ext=cpp 6480ac_cpp='$CXXCPP $CPPFLAGS' 6481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6484 6485 6486 6487 6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports const_cast<>" >&5 6489$as_echo_n "checking whether the compiler supports const_cast<>... " >&6; } 6490if ${ac_cv_cxx_const_cast+:} false; then : 6491 $as_echo_n "(cached) " >&6 6492else 6493 6494 ac_ext=cpp 6495ac_cpp='$CXXCPP $CPPFLAGS' 6496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6499 6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6501/* end confdefs.h. */ 6502 6503int 6504main () 6505{ 6506int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; 6507 ; 6508 return 0; 6509} 6510_ACEOF 6511if ac_fn_cxx_try_compile "$LINENO"; then : 6512 ac_cv_cxx_const_cast=yes 6513else 6514 ac_cv_cxx_const_cast=no 6515fi 6516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6517 ac_ext=cpp 6518ac_cpp='$CXXCPP $CPPFLAGS' 6519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6522 6523 6524fi 6525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_const_cast" >&5 6526$as_echo "$ac_cv_cxx_const_cast" >&6; } 6527if test "$ac_cv_cxx_const_cast" = yes; then 6528 6529$as_echo "#define HAVE_CONST_CAST /**/" >>confdefs.h 6530 6531fi 6532 6533 6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports dynamic_cast<>" >&5 6535$as_echo_n "checking whether the compiler supports dynamic_cast<>... " >&6; } 6536if ${ac_cv_cxx_dynamic_cast+:} false; then : 6537 $as_echo_n "(cached) " >&6 6538else 6539 6540 ac_ext=cpp 6541ac_cpp='$CXXCPP $CPPFLAGS' 6542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6545 6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6547/* end confdefs.h. */ 6548#include <typeinfo> 6549class Base { public : Base () {} virtual void f () = 0;}; 6550class Derived : public Base { public : Derived () {} virtual void f () {} }; 6551int 6552main () 6553{ 6554 6555Derived d; Base& b=d; return dynamic_cast<Derived*>(&b) ? 0 : 1; 6556 ; 6557 return 0; 6558} 6559_ACEOF 6560if ac_fn_cxx_try_compile "$LINENO"; then : 6561 ac_cv_cxx_dynamic_cast=yes 6562else 6563 ac_cv_cxx_dynamic_cast=no 6564fi 6565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6566 ac_ext=cpp 6567ac_cpp='$CXXCPP $CPPFLAGS' 6568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6571 6572 6573fi 6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_dynamic_cast" >&5 6575$as_echo "$ac_cv_cxx_dynamic_cast" >&6; } 6576if test "$ac_cv_cxx_dynamic_cast" = yes; then 6577 6578$as_echo "#define HAVE_DYNAMIC_CAST /**/" >>confdefs.h 6579 6580fi 6581 6582 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports reinterpret_cast<>" >&5 6584$as_echo_n "checking whether the compiler supports reinterpret_cast<>... " >&6; } 6585if ${ac_cv_cxx_reinterpret_cast+:} false; then : 6586 $as_echo_n "(cached) " >&6 6587else 6588 6589 ac_ext=cpp 6590ac_cpp='$CXXCPP $CPPFLAGS' 6591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6594 6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6596/* end confdefs.h. */ 6597#include <typeinfo> 6598class Base { public : Base () {} virtual void f () = 0;}; 6599class Derived : public Base { public : Derived () {} virtual void f () {} }; 6600class Unrelated { public : Unrelated () {} }; 6601int g (Unrelated&) { return 0; } 6602int 6603main () 6604{ 6605 6606Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); 6607 ; 6608 return 0; 6609} 6610_ACEOF 6611if ac_fn_cxx_try_compile "$LINENO"; then : 6612 ac_cv_cxx_reinterpret_cast=yes 6613else 6614 ac_cv_cxx_reinterpret_cast=no 6615fi 6616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6617 ac_ext=cpp 6618ac_cpp='$CXXCPP $CPPFLAGS' 6619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6622 6623 6624fi 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_reinterpret_cast" >&5 6626$as_echo "$ac_cv_cxx_reinterpret_cast" >&6; } 6627if test "$ac_cv_cxx_reinterpret_cast" = yes; then 6628 6629$as_echo "#define HAVE_REINTERPRET_CAST /**/" >>confdefs.h 6630 6631fi 6632 6633 6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports static_cast<>" >&5 6635$as_echo_n "checking whether the compiler supports static_cast<>... " >&6; } 6636if ${ac_cv_cxx_static_cast+:} false; then : 6637 $as_echo_n "(cached) " >&6 6638else 6639 6640 ac_ext=cpp 6641ac_cpp='$CXXCPP $CPPFLAGS' 6642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6645 6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6647/* end confdefs.h. */ 6648#include <typeinfo> 6649class Base { public : Base () {} virtual void f () = 0; }; 6650class Derived : public Base { public : Derived () {} virtual void f () {} }; 6651int g (Derived&) { return 0; } 6652int 6653main () 6654{ 6655 6656Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); 6657 ; 6658 return 0; 6659} 6660_ACEOF 6661if ac_fn_cxx_try_compile "$LINENO"; then : 6662 ac_cv_cxx_static_cast=yes 6663else 6664 ac_cv_cxx_static_cast=no 6665fi 6666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6667 ac_ext=cpp 6668ac_cpp='$CXXCPP $CPPFLAGS' 6669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6672 6673 6674fi 6675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_static_cast" >&5 6676$as_echo "$ac_cv_cxx_static_cast" >&6; } 6677if test "$ac_cv_cxx_static_cast" = yes; then 6678 6679$as_echo "#define HAVE_STATIC_CAST /**/" >>confdefs.h 6680 6681fi 6682 6683 6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports std::nothrow" >&5 6685$as_echo_n "checking whether the compiler supports std::nothrow... " >&6; } 6686if ${ac_cv_cxx_std_nothrow+:} false; then : 6687 $as_echo_n "(cached) " >&6 6688else 6689 6690 ac_ext=cpp 6691ac_cpp='$CXXCPP $CPPFLAGS' 6692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6695 6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6697/* end confdefs.h. */ 6698#include <new> 6699int 6700main () 6701{ 6702int *i = new (std::nothrow) int 6703 ; 6704 return 0; 6705} 6706_ACEOF 6707if ac_fn_cxx_try_compile "$LINENO"; then : 6708 ac_cv_cxx_std_nothrow=yes 6709else 6710 ac_cv_cxx_std_nothrow=no 6711fi 6712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6713 ac_ext=cpp 6714ac_cpp='$CXXCPP $CPPFLAGS' 6715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6718 6719 6720fi 6721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_std_nothrow" >&5 6722$as_echo "$ac_cv_cxx_std_nothrow" >&6; } 6723if test "$ac_cv_cxx_std_nothrow" = yes; then 6724 6725$as_echo "#define HAVE_STD__NOTHROW /**/" >>confdefs.h 6726 6727fi 6728 6729 6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports operator delete (std::nothrow)" >&5 6731$as_echo_n "checking whether the compiler supports operator delete (std::nothrow)... " >&6; } 6732if ${ac_cv_cxx_nothrow_delete+:} false; then : 6733 $as_echo_n "(cached) " >&6 6734else 6735 6736 ac_ext=cpp 6737ac_cpp='$CXXCPP $CPPFLAGS' 6738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6741 6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6743/* end confdefs.h. */ 6744#include <new> 6745int 6746main () 6747{ 6748int *i = new (std::nothrow) int; operator delete (i,std::nothrow) 6749 ; 6750 return 0; 6751} 6752_ACEOF 6753if ac_fn_cxx_try_compile "$LINENO"; then : 6754 ac_cv_cxx_nothrow_delete=yes 6755else 6756 ac_cv_cxx_nothrow_delete=no 6757fi 6758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6759 ac_ext=cpp 6760ac_cpp='$CXXCPP $CPPFLAGS' 6761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6764 6765 6766fi 6767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_nothrow_delete" >&5 6768$as_echo "$ac_cv_cxx_nothrow_delete" >&6; } 6769if test "$ac_cv_cxx_nothrow_delete" = yes; then 6770 6771$as_echo "#define HAVE_NOTHROW_DELETE /**/" >>confdefs.h 6772 6773fi 6774 6775 6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports static_assert" >&5 6777$as_echo_n "checking whether the compiler supports static_assert... " >&6; } 6778if ${ac_cv_cxx_static_assert+:} false; then : 6779 $as_echo_n "(cached) " >&6 6780else 6781 6782 ac_ext=cpp 6783ac_cpp='$CXXCPP $CPPFLAGS' 6784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6787 6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6789/* end confdefs.h. */ 6790#include <cassert> 6791int 6792main () 6793{ 6794static_assert(true, "good") 6795 ; 6796 return 0; 6797} 6798_ACEOF 6799if ac_fn_cxx_try_compile "$LINENO"; then : 6800 ac_cv_cxx_static_assert=yes 6801else 6802 ac_cv_cxx_static_assert=no 6803fi 6804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6805 ac_ext=cpp 6806ac_cpp='$CXXCPP $CPPFLAGS' 6807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6810 6811 6812fi 6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_static_assert" >&5 6814$as_echo "$ac_cv_cxx_static_assert" >&6; } 6815if test "$ac_cv_cxx_static_assert" = yes; then 6816 6817$as_echo "#define HAVE_STATIC_ASSERT /**/" >>confdefs.h 6818 6819fi 6820 6821 6822 6823DEBUG="-DNDEBUG" 6824DEBUGCXXFLAGS= 6825DEBUGCFLAGS= 6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debug mode" >&5 6827$as_echo_n "checking whether to compile in debug mode... " >&6; } 6828# Check whether --enable-debug was given. 6829if test "${enable_debug+set}" = set; then : 6830 enableval=$enable_debug; case "$enableval" in 6831 yes) 6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6833$as_echo "yes" >&6; } 6834 DEBUGCXXFLAGS="-g" 6835 DEBUGCFLAGS="-g" 6836 DEBUG="-DDEBUG" 6837 ;; 6838 *) 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6840$as_echo "no" >&6; } 6841 DEBUGCXXFLAGS="-O" 6842 DEBUGCFLAGS="-O" 6843 ;; 6844 esac 6845else 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6847$as_echo "no" >&6; } 6848 DEBUGCXXFLAGS="-O" 6849 DEBUGCFLAGS="-O" 6850 6851fi 6852 6853 6854 6855THREADSUPPORT="auto" 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable thread support" >&5 6857$as_echo_n "checking whether to enable thread support... " >&6; } 6858# Check whether --enable-threads was given. 6859if test "${enable_threads+set}" = set; then : 6860 enableval=$enable_threads; case "$enableval" in 6861 yes|auto) 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic detection" >&5 6863$as_echo "automatic detection" >&6; } 6864 ;; 6865 posix) 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=posix" >&5 6867$as_echo "yes, type=posix" >&6; } 6868 THREADSUPPORT="posix" 6869 ;; 6870 solaris) 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=solaris" >&5 6872$as_echo "yes, type=solaris" >&6; } 6873 THREADSUPPORT="solaris" 6874 ;; 6875 no) 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6877$as_echo "no" >&6; } 6878 THREADSUPPORT="no" 6879 ;; 6880 *) 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - type $enableval is unknown - using automatic detection" >&5 6882$as_echo "yes - type $enableval is unknown - using automatic detection" >&6; } 6883 ;; 6884 esac 6885else 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic detection" >&5 6887$as_echo "automatic detection" >&6; } 6888 6889fi 6890 6891 6892 6893LFSSUPPORT="auto" 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 6895$as_echo_n "checking whether to enable large file support... " >&6; } 6896# Check whether --enable-lfs was given. 6897if test "${enable_lfs+set}" = set; then : 6898 enableval=$enable_lfs; case "$enableval" in 6899 yes|auto) 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic detection" >&5 6901$as_echo "automatic detection" >&6; } 6902 ;; 6903 lfs) 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=LFS" >&5 6905$as_echo "yes, type=LFS" >&6; } 6906 LFSSUPPORT="lfs" 6907 ;; 6908 lfs64) 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=LFS64" >&5 6910$as_echo "yes, type=LFS64" >&6; } 6911 LFSSUPPORT="lfs64" 6912 ;; 6913 no) 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6915$as_echo "no" >&6; } 6916 LFSSUPPORT="no" 6917 ;; 6918 *) 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - type $enableval is unknown - using automatic detection" >&5 6920$as_echo "yes - type $enableval is unknown - using automatic detection" >&6; } 6921 ;; 6922 esac 6923else 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic detection" >&5 6925$as_echo "automatic detection" >&6; } 6926 6927fi 6928 6929 6930 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lg++" >&5 6932$as_echo_n "checking for -lg++... " >&6; } 6933if ${ac_cv_lib_gxx+:} false; then : 6934 $as_echo_n "(cached) " >&6 6935else 6936 ac_save_LIBS="$LIBS" 6937LIBS="-lg++ $LIBS" 6938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6939/* end confdefs.h. */ 6940 6941int 6942main () 6943{ 6944main() 6945 ; 6946 return 0; 6947} 6948_ACEOF 6949if ac_fn_cxx_try_link "$LINENO"; then : 6950 eval "ac_cv_lib_gxx=yes" 6951else 6952 eval "ac_cv_lib_gxx=no" 6953fi 6954rm -f core conftest.err conftest.$ac_objext \ 6955 conftest$ac_exeext conftest.$ac_ext 6956LIBS="$ac_save_LIBS" 6957 6958fi 6959if eval "test \"`echo '$ac_cv_lib_gxx'`\" = yes"; then 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6961$as_echo "yes" >&6; } 6962 ac_tr_lib=HAVE_LIBGXX 6963 cat >>confdefs.h <<_ACEOF 6964#define $ac_tr_lib 1 6965_ACEOF 6966 6967 LIBS="-lg++ $LIBS" 6968 6969else 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6971$as_echo "no" >&6; } 6972fi 6973 6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -liostream" >&5 6975$as_echo_n "checking for main in -liostream... " >&6; } 6976if ${ac_cv_lib_iostream_main+:} false; then : 6977 $as_echo_n "(cached) " >&6 6978else 6979 ac_check_lib_save_LIBS=$LIBS 6980LIBS="-liostream $LIBS" 6981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6982/* end confdefs.h. */ 6983 6984 6985int 6986main () 6987{ 6988return main (); 6989 ; 6990 return 0; 6991} 6992_ACEOF 6993if ac_fn_cxx_try_link "$LINENO"; then : 6994 ac_cv_lib_iostream_main=yes 6995else 6996 ac_cv_lib_iostream_main=no 6997fi 6998rm -f core conftest.err conftest.$ac_objext \ 6999 conftest$ac_exeext conftest.$ac_ext 7000LIBS=$ac_check_lib_save_LIBS 7001fi 7002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iostream_main" >&5 7003$as_echo "$ac_cv_lib_iostream_main" >&6; } 7004if test "x$ac_cv_lib_iostream_main" = xyes; then : 7005 cat >>confdefs.h <<_ACEOF 7006#define HAVE_LIBIOSTREAM 1 7007_ACEOF 7008 7009 LIBS="-liostream $LIBS" 7010 7011fi 7012 7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 7014$as_echo_n "checking for main in -lnsl... " >&6; } 7015if ${ac_cv_lib_nsl_main+:} false; then : 7016 $as_echo_n "(cached) " >&6 7017else 7018 ac_check_lib_save_LIBS=$LIBS 7019LIBS="-lnsl $LIBS" 7020cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7021/* end confdefs.h. */ 7022 7023 7024int 7025main () 7026{ 7027return main (); 7028 ; 7029 return 0; 7030} 7031_ACEOF 7032if ac_fn_cxx_try_link "$LINENO"; then : 7033 ac_cv_lib_nsl_main=yes 7034else 7035 ac_cv_lib_nsl_main=no 7036fi 7037rm -f core conftest.err conftest.$ac_objext \ 7038 conftest$ac_exeext conftest.$ac_ext 7039LIBS=$ac_check_lib_save_LIBS 7040fi 7041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 7042$as_echo "$ac_cv_lib_nsl_main" >&6; } 7043if test "x$ac_cv_lib_nsl_main" = xyes; then : 7044 cat >>confdefs.h <<_ACEOF 7045#define HAVE_LIBNSL 1 7046_ACEOF 7047 7048 LIBS="-lnsl $LIBS" 7049 7050fi 7051 7052if test $ac_cv_lib_nsl_main = no ; then 7053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7054$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7055if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7056 $as_echo_n "(cached) " >&6 7057else 7058 ac_check_lib_save_LIBS=$LIBS 7059LIBS="-lnsl $LIBS" 7060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7061/* end confdefs.h. */ 7062 7063/* Override any GCC internal prototype to avoid an error. 7064 Use char because int might match the return type of a GCC 7065 builtin and then its argument prototype would still apply. */ 7066#ifdef __cplusplus 7067extern "C" 7068#endif 7069char gethostbyname (); 7070int 7071main () 7072{ 7073return gethostbyname (); 7074 ; 7075 return 0; 7076} 7077_ACEOF 7078if ac_fn_cxx_try_link "$LINENO"; then : 7079 ac_cv_lib_nsl_gethostbyname=yes 7080else 7081 ac_cv_lib_nsl_gethostbyname=no 7082fi 7083rm -f core conftest.err conftest.$ac_objext \ 7084 conftest$ac_exeext conftest.$ac_ext 7085LIBS=$ac_check_lib_save_LIBS 7086fi 7087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7088$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7089if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7090 cat >>confdefs.h <<_ACEOF 7091#define HAVE_LIBNSL 1 7092_ACEOF 7093 7094 LIBS="-lnsl $LIBS" 7095 7096fi 7097 7098fi 7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 7100$as_echo_n "checking for main in -lsocket... " >&6; } 7101if ${ac_cv_lib_socket_main+:} false; then : 7102 $as_echo_n "(cached) " >&6 7103else 7104 ac_check_lib_save_LIBS=$LIBS 7105LIBS="-lsocket $LIBS" 7106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7107/* end confdefs.h. */ 7108 7109 7110int 7111main () 7112{ 7113return main (); 7114 ; 7115 return 0; 7116} 7117_ACEOF 7118if ac_fn_cxx_try_link "$LINENO"; then : 7119 ac_cv_lib_socket_main=yes 7120else 7121 ac_cv_lib_socket_main=no 7122fi 7123rm -f core conftest.err conftest.$ac_objext \ 7124 conftest$ac_exeext conftest.$ac_ext 7125LIBS=$ac_check_lib_save_LIBS 7126fi 7127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 7128$as_echo "$ac_cv_lib_socket_main" >&6; } 7129if test "x$ac_cv_lib_socket_main" = xyes; then : 7130 cat >>confdefs.h <<_ACEOF 7131#define HAVE_LIBSOCKET 1 7132_ACEOF 7133 7134 LIBS="-lsocket $LIBS" 7135 7136fi 7137 7138if test $ac_cv_lib_socket_main = no ; then 7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 7140$as_echo_n "checking for socket in -lsocket... " >&6; } 7141if ${ac_cv_lib_socket_socket+:} false; then : 7142 $as_echo_n "(cached) " >&6 7143else 7144 ac_check_lib_save_LIBS=$LIBS 7145LIBS="-lsocket $LIBS" 7146cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7147/* end confdefs.h. */ 7148 7149/* Override any GCC internal prototype to avoid an error. 7150 Use char because int might match the return type of a GCC 7151 builtin and then its argument prototype would still apply. */ 7152#ifdef __cplusplus 7153extern "C" 7154#endif 7155char socket (); 7156int 7157main () 7158{ 7159return socket (); 7160 ; 7161 return 0; 7162} 7163_ACEOF 7164if ac_fn_cxx_try_link "$LINENO"; then : 7165 ac_cv_lib_socket_socket=yes 7166else 7167 ac_cv_lib_socket_socket=no 7168fi 7169rm -f core conftest.err conftest.$ac_objext \ 7170 conftest$ac_exeext conftest.$ac_ext 7171LIBS=$ac_check_lib_save_LIBS 7172fi 7173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 7174$as_echo "$ac_cv_lib_socket_socket" >&6; } 7175if test "x$ac_cv_lib_socket_socket" = xyes; then : 7176 cat >>confdefs.h <<_ACEOF 7177#define HAVE_LIBSOCKET 1 7178_ACEOF 7179 7180 LIBS="-lsocket $LIBS" 7181 7182fi 7183 7184fi 7185 7186OPENSSLLIBS="" 7187OPENJPEGLIBS="" 7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5 7189$as_echo_n "checking for main in -ldl... " >&6; } 7190if ${ac_cv_lib_dl_main+:} false; then : 7191 $as_echo_n "(cached) " >&6 7192else 7193 ac_check_lib_save_LIBS=$LIBS 7194LIBS="-ldl $LIBS" 7195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7196/* end confdefs.h. */ 7197 7198 7199int 7200main () 7201{ 7202return main (); 7203 ; 7204 return 0; 7205} 7206_ACEOF 7207if ac_fn_cxx_try_link "$LINENO"; then : 7208 ac_cv_lib_dl_main=yes 7209else 7210 ac_cv_lib_dl_main=no 7211fi 7212rm -f core conftest.err conftest.$ac_objext \ 7213 conftest$ac_exeext conftest.$ac_ext 7214LIBS=$ac_check_lib_save_LIBS 7215fi 7216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5 7217$as_echo "$ac_cv_lib_dl_main" >&6; } 7218if test "x$ac_cv_lib_dl_main" = xyes; then : 7219 7220OPENSSLLIBS="-ldl" 7221OPENJPEGLIBS="-ldl" 7222 7223fi 7224 7225if test $ac_cv_lib_dl_main = no ; then 7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 7227$as_echo_n "checking for dlopen in -ldl... " >&6; } 7228if ${ac_cv_lib_dl_dlopen+:} false; then : 7229 $as_echo_n "(cached) " >&6 7230else 7231 ac_check_lib_save_LIBS=$LIBS 7232LIBS="-ldl $LIBS" 7233cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7234/* end confdefs.h. */ 7235 7236/* Override any GCC internal prototype to avoid an error. 7237 Use char because int might match the return type of a GCC 7238 builtin and then its argument prototype would still apply. */ 7239#ifdef __cplusplus 7240extern "C" 7241#endif 7242char dlopen (); 7243int 7244main () 7245{ 7246return dlopen (); 7247 ; 7248 return 0; 7249} 7250_ACEOF 7251if ac_fn_cxx_try_link "$LINENO"; then : 7252 ac_cv_lib_dl_dlopen=yes 7253else 7254 ac_cv_lib_dl_dlopen=no 7255fi 7256rm -f core conftest.err conftest.$ac_objext \ 7257 conftest$ac_exeext conftest.$ac_ext 7258LIBS=$ac_check_lib_save_LIBS 7259fi 7260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 7261$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 7262if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 7263 7264OPENSSLLIBS="-ldl" 7265OPENJPEGLIBS="-ldl" 7266 7267fi 7268 7269fi 7270 7271MATHLIBS="" 7272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 7273$as_echo_n "checking for main in -lm... " >&6; } 7274if ${ac_cv_lib_m_main+:} false; then : 7275 $as_echo_n "(cached) " >&6 7276else 7277 ac_check_lib_save_LIBS=$LIBS 7278LIBS="-lm $LIBS" 7279cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7280/* end confdefs.h. */ 7281 7282 7283int 7284main () 7285{ 7286return main (); 7287 ; 7288 return 0; 7289} 7290_ACEOF 7291if ac_fn_cxx_try_link "$LINENO"; then : 7292 ac_cv_lib_m_main=yes 7293else 7294 ac_cv_lib_m_main=no 7295fi 7296rm -f core conftest.err conftest.$ac_objext \ 7297 conftest$ac_exeext conftest.$ac_ext 7298LIBS=$ac_check_lib_save_LIBS 7299fi 7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 7301$as_echo "$ac_cv_lib_m_main" >&6; } 7302if test "x$ac_cv_lib_m_main" = xyes; then : 7303 7304MATHLIBS="-lm" 7305 7306fi 7307 7308if test $ac_cv_lib_m_main = no ; then 7309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 7310$as_echo_n "checking for sin in -lm... " >&6; } 7311if ${ac_cv_lib_m_sin+:} false; then : 7312 $as_echo_n "(cached) " >&6 7313else 7314 ac_check_lib_save_LIBS=$LIBS 7315LIBS="-lm $LIBS" 7316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7317/* end confdefs.h. */ 7318 7319/* Override any GCC internal prototype to avoid an error. 7320 Use char because int might match the return type of a GCC 7321 builtin and then its argument prototype would still apply. */ 7322#ifdef __cplusplus 7323extern "C" 7324#endif 7325char sin (); 7326int 7327main () 7328{ 7329return sin (); 7330 ; 7331 return 0; 7332} 7333_ACEOF 7334if ac_fn_cxx_try_link "$LINENO"; then : 7335 ac_cv_lib_m_sin=yes 7336else 7337 ac_cv_lib_m_sin=no 7338fi 7339rm -f core conftest.err conftest.$ac_objext \ 7340 conftest$ac_exeext conftest.$ac_ext 7341LIBS=$ac_check_lib_save_LIBS 7342fi 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 7344$as_echo "$ac_cv_lib_m_sin" >&6; } 7345if test "x$ac_cv_lib_m_sin" = xyes; then : 7346 7347MATHLIBS="-lm" 7348 7349fi 7350 7351fi 7352 7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwsock32" >&5 7354$as_echo_n "checking for main in -lwsock32... " >&6; } 7355if ${ac_cv_lib_wsock32_main+:} false; then : 7356 $as_echo_n "(cached) " >&6 7357else 7358 ac_check_lib_save_LIBS=$LIBS 7359LIBS="-lwsock32 $LIBS" 7360cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7361/* end confdefs.h. */ 7362 7363 7364int 7365main () 7366{ 7367return main (); 7368 ; 7369 return 0; 7370} 7371_ACEOF 7372if ac_fn_cxx_try_link "$LINENO"; then : 7373 ac_cv_lib_wsock32_main=yes 7374else 7375 ac_cv_lib_wsock32_main=no 7376fi 7377rm -f core conftest.err conftest.$ac_objext \ 7378 conftest$ac_exeext conftest.$ac_ext 7379LIBS=$ac_check_lib_save_LIBS 7380fi 7381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_main" >&5 7382$as_echo "$ac_cv_lib_wsock32_main" >&6; } 7383if test "x$ac_cv_lib_wsock32_main" = xyes; then : 7384 7385LIBS="$LIBS -lwsock32" 7386 7387fi 7388 7389 7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnetapi32" >&5 7391$as_echo_n "checking for main in -lnetapi32... " >&6; } 7392if ${ac_cv_lib_netapi32_main+:} false; then : 7393 $as_echo_n "(cached) " >&6 7394else 7395 ac_check_lib_save_LIBS=$LIBS 7396LIBS="-lnetapi32 $LIBS" 7397cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7398/* end confdefs.h. */ 7399 7400 7401int 7402main () 7403{ 7404return main (); 7405 ; 7406 return 0; 7407} 7408_ACEOF 7409if ac_fn_cxx_try_link "$LINENO"; then : 7410 ac_cv_lib_netapi32_main=yes 7411else 7412 ac_cv_lib_netapi32_main=no 7413fi 7414rm -f core conftest.err conftest.$ac_objext \ 7415 conftest$ac_exeext conftest.$ac_ext 7416LIBS=$ac_check_lib_save_LIBS 7417fi 7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netapi32_main" >&5 7419$as_echo "$ac_cv_lib_netapi32_main" >&6; } 7420if test "x$ac_cv_lib_netapi32_main" = xyes; then : 7421 7422LIBS="$LIBS -lnetapi32" 7423 7424fi 7425 7426 7427 7428 7429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7430$as_echo_n "checking for ANSI C header files... " >&6; } 7431if ${ac_cv_header_stdc+:} false; then : 7432 $as_echo_n "(cached) " >&6 7433else 7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7435/* end confdefs.h. */ 7436#include <stdlib.h> 7437#include <stdarg.h> 7438#include <string.h> 7439#include <float.h> 7440 7441int 7442main () 7443{ 7444 7445 ; 7446 return 0; 7447} 7448_ACEOF 7449if ac_fn_cxx_try_compile "$LINENO"; then : 7450 ac_cv_header_stdc=yes 7451else 7452 ac_cv_header_stdc=no 7453fi 7454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7455 7456if test $ac_cv_header_stdc = yes; then 7457 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460#include <string.h> 7461 7462_ACEOF 7463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7464 $EGREP "memchr" >/dev/null 2>&1; then : 7465 7466else 7467 ac_cv_header_stdc=no 7468fi 7469rm -f conftest* 7470 7471fi 7472 7473if test $ac_cv_header_stdc = yes; then 7474 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7476/* end confdefs.h. */ 7477#include <stdlib.h> 7478 7479_ACEOF 7480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7481 $EGREP "free" >/dev/null 2>&1; then : 7482 7483else 7484 ac_cv_header_stdc=no 7485fi 7486rm -f conftest* 7487 7488fi 7489 7490if test $ac_cv_header_stdc = yes; then 7491 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7492 if test "$cross_compiling" = yes; then : 7493 : 7494else 7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7496/* end confdefs.h. */ 7497#include <ctype.h> 7498#include <stdlib.h> 7499#if ((' ' & 0x0FF) == 0x020) 7500# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7501# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7502#else 7503# define ISLOWER(c) \ 7504 (('a' <= (c) && (c) <= 'i') \ 7505 || ('j' <= (c) && (c) <= 'r') \ 7506 || ('s' <= (c) && (c) <= 'z')) 7507# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7508#endif 7509 7510#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7511int 7512main () 7513{ 7514 int i; 7515 for (i = 0; i < 256; i++) 7516 if (XOR (islower (i), ISLOWER (i)) 7517 || toupper (i) != TOUPPER (i)) 7518 return 2; 7519 return 0; 7520} 7521_ACEOF 7522if ac_fn_cxx_try_run "$LINENO"; then : 7523 7524else 7525 ac_cv_header_stdc=no 7526fi 7527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7528 conftest.$ac_objext conftest.beam conftest.$ac_ext 7529fi 7530 7531fi 7532fi 7533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7534$as_echo "$ac_cv_header_stdc" >&6; } 7535if test $ac_cv_header_stdc = yes; then 7536 7537$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7538 7539fi 7540 7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 7542$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 7543if ${ac_cv_header_sys_wait_h+:} false; then : 7544 $as_echo_n "(cached) " >&6 7545else 7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7547/* end confdefs.h. */ 7548#include <sys/types.h> 7549#include <sys/wait.h> 7550#ifndef WEXITSTATUS 7551# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 7552#endif 7553#ifndef WIFEXITED 7554# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 7555#endif 7556 7557int 7558main () 7559{ 7560 int s; 7561 wait (&s); 7562 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 7563 ; 7564 return 0; 7565} 7566_ACEOF 7567if ac_fn_cxx_try_compile "$LINENO"; then : 7568 ac_cv_header_sys_wait_h=yes 7569else 7570 ac_cv_header_sys_wait_h=no 7571fi 7572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7573fi 7574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 7575$as_echo "$ac_cv_header_sys_wait_h" >&6; } 7576if test $ac_cv_header_sys_wait_h = yes; then 7577 7578$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 7579 7580fi 7581 7582ac_header_dirent=no 7583for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 7584 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 7586$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 7587if eval \${$as_ac_Header+:} false; then : 7588 $as_echo_n "(cached) " >&6 7589else 7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7591/* end confdefs.h. */ 7592#include <sys/types.h> 7593#include <$ac_hdr> 7594 7595int 7596main () 7597{ 7598if ((DIR *) 0) 7599return 0; 7600 ; 7601 return 0; 7602} 7603_ACEOF 7604if ac_fn_cxx_try_compile "$LINENO"; then : 7605 eval "$as_ac_Header=yes" 7606else 7607 eval "$as_ac_Header=no" 7608fi 7609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7610fi 7611eval ac_res=\$$as_ac_Header 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7613$as_echo "$ac_res" >&6; } 7614if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7615 cat >>confdefs.h <<_ACEOF 7616#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 7617_ACEOF 7618 7619ac_header_dirent=$ac_hdr; break 7620fi 7621 7622done 7623# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 7624if test $ac_header_dirent = dirent.h; then 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 7626$as_echo_n "checking for library containing opendir... " >&6; } 7627if ${ac_cv_search_opendir+:} false; then : 7628 $as_echo_n "(cached) " >&6 7629else 7630 ac_func_search_save_LIBS=$LIBS 7631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7632/* end confdefs.h. */ 7633 7634/* Override any GCC internal prototype to avoid an error. 7635 Use char because int might match the return type of a GCC 7636 builtin and then its argument prototype would still apply. */ 7637#ifdef __cplusplus 7638extern "C" 7639#endif 7640char opendir (); 7641int 7642main () 7643{ 7644return opendir (); 7645 ; 7646 return 0; 7647} 7648_ACEOF 7649for ac_lib in '' dir; do 7650 if test -z "$ac_lib"; then 7651 ac_res="none required" 7652 else 7653 ac_res=-l$ac_lib 7654 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7655 fi 7656 if ac_fn_cxx_try_link "$LINENO"; then : 7657 ac_cv_search_opendir=$ac_res 7658fi 7659rm -f core conftest.err conftest.$ac_objext \ 7660 conftest$ac_exeext 7661 if ${ac_cv_search_opendir+:} false; then : 7662 break 7663fi 7664done 7665if ${ac_cv_search_opendir+:} false; then : 7666 7667else 7668 ac_cv_search_opendir=no 7669fi 7670rm conftest.$ac_ext 7671LIBS=$ac_func_search_save_LIBS 7672fi 7673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 7674$as_echo "$ac_cv_search_opendir" >&6; } 7675ac_res=$ac_cv_search_opendir 7676if test "$ac_res" != no; then : 7677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7678 7679fi 7680 7681else 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 7683$as_echo_n "checking for library containing opendir... " >&6; } 7684if ${ac_cv_search_opendir+:} false; then : 7685 $as_echo_n "(cached) " >&6 7686else 7687 ac_func_search_save_LIBS=$LIBS 7688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7689/* end confdefs.h. */ 7690 7691/* Override any GCC internal prototype to avoid an error. 7692 Use char because int might match the return type of a GCC 7693 builtin and then its argument prototype would still apply. */ 7694#ifdef __cplusplus 7695extern "C" 7696#endif 7697char opendir (); 7698int 7699main () 7700{ 7701return opendir (); 7702 ; 7703 return 0; 7704} 7705_ACEOF 7706for ac_lib in '' x; do 7707 if test -z "$ac_lib"; then 7708 ac_res="none required" 7709 else 7710 ac_res=-l$ac_lib 7711 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7712 fi 7713 if ac_fn_cxx_try_link "$LINENO"; then : 7714 ac_cv_search_opendir=$ac_res 7715fi 7716rm -f core conftest.err conftest.$ac_objext \ 7717 conftest$ac_exeext 7718 if ${ac_cv_search_opendir+:} false; then : 7719 break 7720fi 7721done 7722if ${ac_cv_search_opendir+:} false; then : 7723 7724else 7725 ac_cv_search_opendir=no 7726fi 7727rm conftest.$ac_ext 7728LIBS=$ac_func_search_save_LIBS 7729fi 7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 7731$as_echo "$ac_cv_search_opendir" >&6; } 7732ac_res=$ac_cv_search_opendir 7733if test "$ac_res" != no; then : 7734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7735 7736fi 7737 7738fi 7739 7740for ac_header in netinet/in_systm.h 7741do : 7742 ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default" 7743if test "x$ac_cv_header_netinet_in_systm_h" = xyes; then : 7744 cat >>confdefs.h <<_ACEOF 7745#define HAVE_NETINET_IN_SYSTM_H 1 7746_ACEOF 7747 7748fi 7749 7750done 7751 7752 7753if eval "test \"`echo '$ac_cv_header_netinet_in_systm_h'`\" = yes"; then 7754 for ac_hdr in netinet/in.h 7755do 7756ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr" >&5 7758$as_echo_n "checking for $ac_hdr... " >&6; } 7759if eval \${ac_cv_header_$ac_safe+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761else 7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7763/* end confdefs.h. */ 7764#include <netinet/in_systm.h> 7765 7766#include <$ac_hdr> 7767_ACEOF 7768if ac_fn_cxx_try_cpp "$LINENO"; then : 7769 eval "ac_cv_header_$ac_safe=yes" 7770else 7771 eval "ac_cv_header_$ac_safe=no" 7772fi 7773rm -f conftest.err conftest.i conftest.$ac_ext 7774fi 7775if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7777$as_echo "yes" >&6; } 7778 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 7779 cat >>confdefs.h <<_ACEOF 7780#define $ac_tr_hdr 1 7781_ACEOF 7782 7783else 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7785$as_echo "no" >&6; } 7786fi 7787done 7788 7789 if eval "test \"`echo '$ac_cv_header_netinet_in_h'`\" = yes"; then 7790 for ac_hdr in netinet/tcp.h 7791do 7792ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr" >&5 7794$as_echo_n "checking for $ac_hdr... " >&6; } 7795if eval \${ac_cv_header_$ac_safe+:} false; then : 7796 $as_echo_n "(cached) " >&6 7797else 7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7799/* end confdefs.h. */ 7800#include <netinet/in_systm.h> 7801#include <netinet/in.h> 7802 7803#include <$ac_hdr> 7804_ACEOF 7805if ac_fn_cxx_try_cpp "$LINENO"; then : 7806 eval "ac_cv_header_$ac_safe=yes" 7807else 7808 eval "ac_cv_header_$ac_safe=no" 7809fi 7810rm -f conftest.err conftest.i conftest.$ac_ext 7811fi 7812if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7814$as_echo "yes" >&6; } 7815 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 7816 cat >>confdefs.h <<_ACEOF 7817#define $ac_tr_hdr 1 7818_ACEOF 7819 7820else 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7822$as_echo "no" >&6; } 7823fi 7824done 7825 7826 else 7827 for ac_hdr in netinet/tcp.h 7828do 7829ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr" >&5 7831$as_echo_n "checking for $ac_hdr... " >&6; } 7832if eval \${ac_cv_header_$ac_safe+:} false; then : 7833 $as_echo_n "(cached) " >&6 7834else 7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7836/* end confdefs.h. */ 7837#include <netinet/in_systm.h> 7838 7839#include <$ac_hdr> 7840_ACEOF 7841if ac_fn_cxx_try_cpp "$LINENO"; then : 7842 eval "ac_cv_header_$ac_safe=yes" 7843else 7844 eval "ac_cv_header_$ac_safe=no" 7845fi 7846rm -f conftest.err conftest.i conftest.$ac_ext 7847fi 7848if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7850$as_echo "yes" >&6; } 7851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 7852 cat >>confdefs.h <<_ACEOF 7853#define $ac_tr_hdr 1 7854_ACEOF 7855 7856else 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7858$as_echo "no" >&6; } 7859fi 7860done 7861 7862 fi 7863else 7864 for ac_header in netinet/in.h 7865do : 7866 ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 7867if test "x$ac_cv_header_netinet_in_h" = xyes; then : 7868 cat >>confdefs.h <<_ACEOF 7869#define HAVE_NETINET_IN_H 1 7870_ACEOF 7871 7872fi 7873 7874done 7875 7876 if eval "test \"`echo '$ac_cv_header_netinet_in_h'`\" = yes"; then 7877 for ac_hdr in netinet/tcp.h 7878do 7879ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr" >&5 7881$as_echo_n "checking for $ac_hdr... " >&6; } 7882if eval \${ac_cv_header_$ac_safe+:} false; then : 7883 $as_echo_n "(cached) " >&6 7884else 7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7886/* end confdefs.h. */ 7887#include <netinet/in.h> 7888 7889#include <$ac_hdr> 7890_ACEOF 7891if ac_fn_cxx_try_cpp "$LINENO"; then : 7892 eval "ac_cv_header_$ac_safe=yes" 7893else 7894 eval "ac_cv_header_$ac_safe=no" 7895fi 7896rm -f conftest.err conftest.i conftest.$ac_ext 7897fi 7898if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7900$as_echo "yes" >&6; } 7901 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 7902 cat >>confdefs.h <<_ACEOF 7903#define $ac_tr_hdr 1 7904_ACEOF 7905 7906else 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7908$as_echo "no" >&6; } 7909fi 7910done 7911 7912 else 7913 for ac_header in netinet/tcp.h 7914do : 7915 ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" 7916if test "x$ac_cv_header_netinet_tcp_h" = xyes; then : 7917 cat >>confdefs.h <<_ACEOF 7918#define HAVE_NETINET_TCP_H 1 7919_ACEOF 7920 7921fi 7922 7923done 7924 7925 fi 7926fi 7927 7928for ac_header in alloca.h 7929do : 7930 ac_fn_cxx_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" 7931if test "x$ac_cv_header_alloca_h" = xyes; then : 7932 cat >>confdefs.h <<_ACEOF 7933#define HAVE_ALLOCA_H 1 7934_ACEOF 7935 7936fi 7937 7938done 7939 7940for ac_header in arpa/inet.h 7941do : 7942 ac_fn_cxx_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 7943if test "x$ac_cv_header_arpa_inet_h" = xyes; then : 7944 cat >>confdefs.h <<_ACEOF 7945#define HAVE_ARPA_INET_H 1 7946_ACEOF 7947 7948fi 7949 7950done 7951 7952for ac_header in assert.h 7953do : 7954 ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" 7955if test "x$ac_cv_header_assert_h" = xyes; then : 7956 cat >>confdefs.h <<_ACEOF 7957#define HAVE_ASSERT_H 1 7958_ACEOF 7959 7960fi 7961 7962done 7963 7964for ac_header in ctype.h 7965do : 7966 ac_fn_cxx_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" 7967if test "x$ac_cv_header_ctype_h" = xyes; then : 7968 cat >>confdefs.h <<_ACEOF 7969#define HAVE_CTYPE_H 1 7970_ACEOF 7971 7972fi 7973 7974done 7975 7976for ac_header in errno.h 7977do : 7978 ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 7979if test "x$ac_cv_header_errno_h" = xyes; then : 7980 cat >>confdefs.h <<_ACEOF 7981#define HAVE_ERRNO_H 1 7982_ACEOF 7983 7984fi 7985 7986done 7987 7988for ac_header in fcntl.h 7989do : 7990 ac_fn_cxx_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 7991if test "x$ac_cv_header_fcntl_h" = xyes; then : 7992 cat >>confdefs.h <<_ACEOF 7993#define HAVE_FCNTL_H 1 7994_ACEOF 7995 7996fi 7997 7998done 7999 8000for ac_header in float.h 8001do : 8002 ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" 8003if test "x$ac_cv_header_float_h" = xyes; then : 8004 cat >>confdefs.h <<_ACEOF 8005#define HAVE_FLOAT_H 1 8006_ACEOF 8007 8008fi 8009 8010done 8011 8012for ac_header in fnmatch.h 8013do : 8014 ac_fn_cxx_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" 8015if test "x$ac_cv_header_fnmatch_h" = xyes; then : 8016 cat >>confdefs.h <<_ACEOF 8017#define HAVE_FNMATCH_H 1 8018_ACEOF 8019 8020fi 8021 8022done 8023 8024for ac_header in fstream 8025do : 8026 ac_fn_cxx_check_header_mongrel "$LINENO" "fstream" "ac_cv_header_fstream" "$ac_includes_default" 8027if test "x$ac_cv_header_fstream" = xyes; then : 8028 cat >>confdefs.h <<_ACEOF 8029#define HAVE_FSTREAM 1 8030_ACEOF 8031 8032fi 8033 8034done 8035 8036for ac_header in fstream.h 8037do : 8038 ac_fn_cxx_check_header_mongrel "$LINENO" "fstream.h" "ac_cv_header_fstream_h" "$ac_includes_default" 8039if test "x$ac_cv_header_fstream_h" = xyes; then : 8040 cat >>confdefs.h <<_ACEOF 8041#define HAVE_FSTREAM_H 1 8042_ACEOF 8043 8044fi 8045 8046done 8047 8048for ac_header in grp.h 8049do : 8050 ac_fn_cxx_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" 8051if test "x$ac_cv_header_grp_h" = xyes; then : 8052 cat >>confdefs.h <<_ACEOF 8053#define HAVE_GRP_H 1 8054_ACEOF 8055 8056fi 8057 8058done 8059 8060for ac_header in ieeefp.h 8061do : 8062 ac_fn_cxx_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default" 8063if test "x$ac_cv_header_ieeefp_h" = xyes; then : 8064 cat >>confdefs.h <<_ACEOF 8065#define HAVE_IEEEFP_H 1 8066_ACEOF 8067 8068fi 8069 8070done 8071 8072for ac_header in io.h 8073do : 8074 ac_fn_cxx_check_header_mongrel "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" 8075if test "x$ac_cv_header_io_h" = xyes; then : 8076 cat >>confdefs.h <<_ACEOF 8077#define HAVE_IO_H 1 8078_ACEOF 8079 8080fi 8081 8082done 8083 8084for ac_header in iomanip 8085do : 8086 ac_fn_cxx_check_header_mongrel "$LINENO" "iomanip" "ac_cv_header_iomanip" "$ac_includes_default" 8087if test "x$ac_cv_header_iomanip" = xyes; then : 8088 cat >>confdefs.h <<_ACEOF 8089#define HAVE_IOMANIP 1 8090_ACEOF 8091 8092fi 8093 8094done 8095 8096for ac_header in iomanip.h 8097do : 8098 ac_fn_cxx_check_header_mongrel "$LINENO" "iomanip.h" "ac_cv_header_iomanip_h" "$ac_includes_default" 8099if test "x$ac_cv_header_iomanip_h" = xyes; then : 8100 cat >>confdefs.h <<_ACEOF 8101#define HAVE_IOMANIP_H 1 8102_ACEOF 8103 8104fi 8105 8106done 8107 8108for ac_header in iostream 8109do : 8110 ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default" 8111if test "x$ac_cv_header_iostream" = xyes; then : 8112 cat >>confdefs.h <<_ACEOF 8113#define HAVE_IOSTREAM 1 8114_ACEOF 8115 8116fi 8117 8118done 8119 8120for ac_header in iostream.h 8121do : 8122 ac_fn_cxx_check_header_mongrel "$LINENO" "iostream.h" "ac_cv_header_iostream_h" "$ac_includes_default" 8123if test "x$ac_cv_header_iostream_h" = xyes; then : 8124 cat >>confdefs.h <<_ACEOF 8125#define HAVE_IOSTREAM_H 1 8126_ACEOF 8127 8128fi 8129 8130done 8131 8132for ac_header in iso646.h 8133do : 8134 ac_fn_cxx_check_header_mongrel "$LINENO" "iso646.h" "ac_cv_header_iso646_h" "$ac_includes_default" 8135if test "x$ac_cv_header_iso646_h" = xyes; then : 8136 cat >>confdefs.h <<_ACEOF 8137#define HAVE_ISO646_H 1 8138_ACEOF 8139 8140fi 8141 8142done 8143 8144for ac_header in libc.h 8145do : 8146 ac_fn_cxx_check_header_mongrel "$LINENO" "libc.h" "ac_cv_header_libc_h" "$ac_includes_default" 8147if test "x$ac_cv_header_libc_h" = xyes; then : 8148 cat >>confdefs.h <<_ACEOF 8149#define HAVE_LIBC_H 1 8150_ACEOF 8151 8152fi 8153 8154done 8155 8156for ac_header in limits.h 8157do : 8158 ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 8159if test "x$ac_cv_header_limits_h" = xyes; then : 8160 cat >>confdefs.h <<_ACEOF 8161#define HAVE_LIMITS_H 1 8162_ACEOF 8163 8164fi 8165 8166done 8167 8168for ac_header in climits 8169do : 8170 ac_fn_cxx_check_header_mongrel "$LINENO" "climits" "ac_cv_header_climits" "$ac_includes_default" 8171if test "x$ac_cv_header_climits" = xyes; then : 8172 cat >>confdefs.h <<_ACEOF 8173#define HAVE_CLIMITS 1 8174_ACEOF 8175 8176fi 8177 8178done 8179 8180for ac_header in locale.h 8181do : 8182 ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 8183if test "x$ac_cv_header_locale_h" = xyes; then : 8184 cat >>confdefs.h <<_ACEOF 8185#define HAVE_LOCALE_H 1 8186_ACEOF 8187 8188fi 8189 8190done 8191 8192for ac_header in malloc.h 8193do : 8194 ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 8195if test "x$ac_cv_header_malloc_h" = xyes; then : 8196 cat >>confdefs.h <<_ACEOF 8197#define HAVE_MALLOC_H 1 8198_ACEOF 8199 8200fi 8201 8202done 8203 8204for ac_header in math.h 8205do : 8206 ac_fn_cxx_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" 8207if test "x$ac_cv_header_math_h" = xyes; then : 8208 cat >>confdefs.h <<_ACEOF 8209#define HAVE_MATH_H 1 8210_ACEOF 8211 8212fi 8213 8214done 8215 8216for ac_header in cmath 8217do : 8218 ac_fn_cxx_check_header_mongrel "$LINENO" "cmath" "ac_cv_header_cmath" "$ac_includes_default" 8219if test "x$ac_cv_header_cmath" = xyes; then : 8220 cat >>confdefs.h <<_ACEOF 8221#define HAVE_CMATH 1 8222_ACEOF 8223 8224fi 8225 8226done 8227 8228for ac_header in new 8229do : 8230 ac_fn_cxx_check_header_mongrel "$LINENO" "new" "ac_cv_header_new" "$ac_includes_default" 8231if test "x$ac_cv_header_new" = xyes; then : 8232 cat >>confdefs.h <<_ACEOF 8233#define HAVE_NEW 1 8234_ACEOF 8235 8236fi 8237 8238done 8239 8240for ac_header in new.h 8241do : 8242 ac_fn_cxx_check_header_mongrel "$LINENO" "new.h" "ac_cv_header_new_h" "$ac_includes_default" 8243if test "x$ac_cv_header_new_h" = xyes; then : 8244 cat >>confdefs.h <<_ACEOF 8245#define HAVE_NEW_H 1 8246_ACEOF 8247 8248fi 8249 8250done 8251 8252for ac_header in netdb.h 8253do : 8254 ac_fn_cxx_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" 8255if test "x$ac_cv_header_netdb_h" = xyes; then : 8256 cat >>confdefs.h <<_ACEOF 8257#define HAVE_NETDB_H 1 8258_ACEOF 8259 8260fi 8261 8262done 8263 8264for ac_header in pthread.h 8265do : 8266 ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 8267if test "x$ac_cv_header_pthread_h" = xyes; then : 8268 cat >>confdefs.h <<_ACEOF 8269#define HAVE_PTHREAD_H 1 8270_ACEOF 8271 8272fi 8273 8274done 8275 8276for ac_header in pwd.h 8277do : 8278 ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" 8279if test "x$ac_cv_header_pwd_h" = xyes; then : 8280 cat >>confdefs.h <<_ACEOF 8281#define HAVE_PWD_H 1 8282_ACEOF 8283 8284fi 8285 8286done 8287 8288for ac_header in semaphore.h 8289do : 8290 ac_fn_cxx_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" 8291if test "x$ac_cv_header_semaphore_h" = xyes; then : 8292 cat >>confdefs.h <<_ACEOF 8293#define HAVE_SEMAPHORE_H 1 8294_ACEOF 8295 8296fi 8297 8298done 8299 8300for ac_header in setjmp.h 8301do : 8302 ac_fn_cxx_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 8303if test "x$ac_cv_header_setjmp_h" = xyes; then : 8304 cat >>confdefs.h <<_ACEOF 8305#define HAVE_SETJMP_H 1 8306_ACEOF 8307 8308fi 8309 8310done 8311 8312for ac_header in signal.h 8313do : 8314 ac_fn_cxx_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 8315if test "x$ac_cv_header_signal_h" = xyes; then : 8316 cat >>confdefs.h <<_ACEOF 8317#define HAVE_SIGNAL_H 1 8318_ACEOF 8319 8320fi 8321 8322done 8323 8324for ac_header in sstream 8325do : 8326 ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default" 8327if test "x$ac_cv_header_sstream" = xyes; then : 8328 cat >>confdefs.h <<_ACEOF 8329#define HAVE_SSTREAM 1 8330_ACEOF 8331 8332fi 8333 8334done 8335 8336for ac_header in sstream.h 8337do : 8338 ac_fn_cxx_check_header_mongrel "$LINENO" "sstream.h" "ac_cv_header_sstream_h" "$ac_includes_default" 8339if test "x$ac_cv_header_sstream_h" = xyes; then : 8340 cat >>confdefs.h <<_ACEOF 8341#define HAVE_SSTREAM_H 1 8342_ACEOF 8343 8344fi 8345 8346done 8347 8348for ac_header in stat.h 8349do : 8350 ac_fn_cxx_check_header_mongrel "$LINENO" "stat.h" "ac_cv_header_stat_h" "$ac_includes_default" 8351if test "x$ac_cv_header_stat_h" = xyes; then : 8352 cat >>confdefs.h <<_ACEOF 8353#define HAVE_STAT_H 1 8354_ACEOF 8355 8356fi 8357 8358done 8359 8360for ac_header in cstdarg 8361do : 8362 ac_fn_cxx_check_header_mongrel "$LINENO" "cstdarg" "ac_cv_header_cstdarg" "$ac_includes_default" 8363if test "x$ac_cv_header_cstdarg" = xyes; then : 8364 cat >>confdefs.h <<_ACEOF 8365#define HAVE_CSTDARG 1 8366_ACEOF 8367 8368fi 8369 8370done 8371 8372for ac_header in stdarg.h 8373do : 8374 ac_fn_cxx_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 8375if test "x$ac_cv_header_stdarg_h" = xyes; then : 8376 cat >>confdefs.h <<_ACEOF 8377#define HAVE_STDARG_H 1 8378_ACEOF 8379 8380fi 8381 8382done 8383 8384for ac_header in stddef.h 8385do : 8386 ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" 8387if test "x$ac_cv_header_stddef_h" = xyes; then : 8388 cat >>confdefs.h <<_ACEOF 8389#define HAVE_STDDEF_H 1 8390_ACEOF 8391 8392fi 8393 8394done 8395 8396for ac_header in cstddef 8397do : 8398 ac_fn_cxx_check_header_mongrel "$LINENO" "cstddef" "ac_cv_header_cstddef" "$ac_includes_default" 8399if test "x$ac_cv_header_cstddef" = xyes; then : 8400 cat >>confdefs.h <<_ACEOF 8401#define HAVE_CSTDDEF 1 8402_ACEOF 8403 8404fi 8405 8406done 8407 8408for ac_header in cstdio 8409do : 8410 ac_fn_cxx_check_header_mongrel "$LINENO" "cstdio" "ac_cv_header_cstdio" "$ac_includes_default" 8411if test "x$ac_cv_header_cstdio" = xyes; then : 8412 cat >>confdefs.h <<_ACEOF 8413#define HAVE_CSTDIO 1 8414_ACEOF 8415 8416fi 8417 8418done 8419 8420for ac_header in stdio.h 8421do : 8422 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 8423if test "x$ac_cv_header_stdio_h" = xyes; then : 8424 cat >>confdefs.h <<_ACEOF 8425#define HAVE_STDIO_H 1 8426_ACEOF 8427 8428fi 8429 8430done 8431 8432for ac_header in stdint.h 8433do : 8434 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 8435if test "x$ac_cv_header_stdint_h" = xyes; then : 8436 cat >>confdefs.h <<_ACEOF 8437#define HAVE_STDINT_H 1 8438_ACEOF 8439 8440fi 8441 8442done 8443 8444for ac_header in stdlib.h 8445do : 8446 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 8447if test "x$ac_cv_header_stdlib_h" = xyes; then : 8448 cat >>confdefs.h <<_ACEOF 8449#define HAVE_STDLIB_H 1 8450_ACEOF 8451 8452fi 8453 8454done 8455 8456for ac_header in streambuf.h 8457do : 8458 ac_fn_cxx_check_header_mongrel "$LINENO" "streambuf.h" "ac_cv_header_streambuf_h" "$ac_includes_default" 8459if test "x$ac_cv_header_streambuf_h" = xyes; then : 8460 cat >>confdefs.h <<_ACEOF 8461#define HAVE_STREAMBUF_H 1 8462_ACEOF 8463 8464fi 8465 8466done 8467 8468for ac_header in string.h 8469do : 8470 ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 8471if test "x$ac_cv_header_string_h" = xyes; then : 8472 cat >>confdefs.h <<_ACEOF 8473#define HAVE_STRING_H 1 8474_ACEOF 8475 8476fi 8477 8478done 8479 8480for ac_header in strings.h 8481do : 8482 ac_fn_cxx_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 8483if test "x$ac_cv_header_strings_h" = xyes; then : 8484 cat >>confdefs.h <<_ACEOF 8485#define HAVE_STRINGS_H 1 8486_ACEOF 8487 8488fi 8489 8490done 8491 8492for ac_header in strstrea.h 8493do : 8494 ac_fn_cxx_check_header_mongrel "$LINENO" "strstrea.h" "ac_cv_header_strstrea_h" "$ac_includes_default" 8495if test "x$ac_cv_header_strstrea_h" = xyes; then : 8496 cat >>confdefs.h <<_ACEOF 8497#define HAVE_STRSTREA_H 1 8498_ACEOF 8499 8500fi 8501 8502done 8503 8504for ac_header in strstream 8505do : 8506 ac_fn_cxx_check_header_mongrel "$LINENO" "strstream" "ac_cv_header_strstream" "$ac_includes_default" 8507if test "x$ac_cv_header_strstream" = xyes; then : 8508 cat >>confdefs.h <<_ACEOF 8509#define HAVE_STRSTREAM 1 8510_ACEOF 8511 8512fi 8513 8514done 8515 8516for ac_header in strstream.h 8517do : 8518 ac_fn_cxx_check_header_mongrel "$LINENO" "strstream.h" "ac_cv_header_strstream_h" "$ac_includes_default" 8519if test "x$ac_cv_header_strstream_h" = xyes; then : 8520 cat >>confdefs.h <<_ACEOF 8521#define HAVE_STRSTREAM_H 1 8522_ACEOF 8523 8524fi 8525 8526done 8527 8528for ac_header in synch.h 8529do : 8530 ac_fn_cxx_check_header_mongrel "$LINENO" "synch.h" "ac_cv_header_synch_h" "$ac_includes_default" 8531if test "x$ac_cv_header_synch_h" = xyes; then : 8532 cat >>confdefs.h <<_ACEOF 8533#define HAVE_SYNCH_H 1 8534_ACEOF 8535 8536fi 8537 8538done 8539 8540for ac_header in sys/errno.h 8541do : 8542 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/errno.h" "ac_cv_header_sys_errno_h" "$ac_includes_default" 8543if test "x$ac_cv_header_sys_errno_h" = xyes; then : 8544 cat >>confdefs.h <<_ACEOF 8545#define HAVE_SYS_ERRNO_H 1 8546_ACEOF 8547 8548fi 8549 8550done 8551 8552for ac_header in sys/file.h 8553do : 8554 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default" 8555if test "x$ac_cv_header_sys_file_h" = xyes; then : 8556 cat >>confdefs.h <<_ACEOF 8557#define HAVE_SYS_FILE_H 1 8558_ACEOF 8559 8560fi 8561 8562done 8563 8564for ac_header in sys/param.h 8565do : 8566 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 8567if test "x$ac_cv_header_sys_param_h" = xyes; then : 8568 cat >>confdefs.h <<_ACEOF 8569#define HAVE_SYS_PARAM_H 1 8570_ACEOF 8571 8572fi 8573 8574done 8575 8576for ac_header in sys/resource.h 8577do : 8578 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" 8579if test "x$ac_cv_header_sys_resource_h" = xyes; then : 8580 cat >>confdefs.h <<_ACEOF 8581#define HAVE_SYS_RESOURCE_H 1 8582_ACEOF 8583 8584fi 8585 8586done 8587 8588for ac_header in sys/select.h 8589do : 8590 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 8591if test "x$ac_cv_header_sys_select_h" = xyes; then : 8592 cat >>confdefs.h <<_ACEOF 8593#define HAVE_SYS_SELECT_H 1 8594_ACEOF 8595 8596fi 8597 8598done 8599 8600for ac_header in sys/socket.h 8601do : 8602 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 8603if test "x$ac_cv_header_sys_socket_h" = xyes; then : 8604 cat >>confdefs.h <<_ACEOF 8605#define HAVE_SYS_SOCKET_H 1 8606_ACEOF 8607 8608fi 8609 8610done 8611 8612for ac_header in sys/stat.h 8613do : 8614 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 8615if test "x$ac_cv_header_sys_stat_h" = xyes; then : 8616 cat >>confdefs.h <<_ACEOF 8617#define HAVE_SYS_STAT_H 1 8618_ACEOF 8619 8620fi 8621 8622done 8623 8624for ac_header in sys/syscall.h 8625do : 8626 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" 8627if test "x$ac_cv_header_sys_syscall_h" = xyes; then : 8628 cat >>confdefs.h <<_ACEOF 8629#define HAVE_SYS_SYSCALL_H 1 8630_ACEOF 8631 8632fi 8633 8634done 8635 8636for ac_header in sys/systeminfo.h 8637do : 8638 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/systeminfo.h" "ac_cv_header_sys_systeminfo_h" "$ac_includes_default" 8639if test "x$ac_cv_header_sys_systeminfo_h" = xyes; then : 8640 cat >>confdefs.h <<_ACEOF 8641#define HAVE_SYS_SYSTEMINFO_H 1 8642_ACEOF 8643 8644fi 8645 8646done 8647 8648for ac_header in sys/time.h 8649do : 8650 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 8651if test "x$ac_cv_header_sys_time_h" = xyes; then : 8652 cat >>confdefs.h <<_ACEOF 8653#define HAVE_SYS_TIME_H 1 8654_ACEOF 8655 8656fi 8657 8658done 8659 8660for ac_header in sys/timeb.h 8661do : 8662 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" 8663if test "x$ac_cv_header_sys_timeb_h" = xyes; then : 8664 cat >>confdefs.h <<_ACEOF 8665#define HAVE_SYS_TIMEB_H 1 8666_ACEOF 8667 8668fi 8669 8670done 8671 8672for ac_header in sys/types.h 8673do : 8674 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 8675if test "x$ac_cv_header_sys_types_h" = xyes; then : 8676 cat >>confdefs.h <<_ACEOF 8677#define HAVE_SYS_TYPES_H 1 8678_ACEOF 8679 8680fi 8681 8682done 8683 8684for ac_header in sys/utime.h 8685do : 8686 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default" 8687if test "x$ac_cv_header_sys_utime_h" = xyes; then : 8688 cat >>confdefs.h <<_ACEOF 8689#define HAVE_SYS_UTIME_H 1 8690_ACEOF 8691 8692fi 8693 8694done 8695 8696for ac_header in sys/utsname.h 8697do : 8698 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 8699if test "x$ac_cv_header_sys_utsname_h" = xyes; then : 8700 cat >>confdefs.h <<_ACEOF 8701#define HAVE_SYS_UTSNAME_H 1 8702_ACEOF 8703 8704fi 8705 8706done 8707 8708for ac_header in thread.h 8709do : 8710 ac_fn_cxx_check_header_mongrel "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default" 8711if test "x$ac_cv_header_thread_h" = xyes; then : 8712 cat >>confdefs.h <<_ACEOF 8713#define HAVE_THREAD_H 1 8714_ACEOF 8715 8716fi 8717 8718done 8719 8720for ac_header in time.h 8721do : 8722 ac_fn_cxx_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 8723if test "x$ac_cv_header_time_h" = xyes; then : 8724 cat >>confdefs.h <<_ACEOF 8725#define HAVE_TIME_H 1 8726_ACEOF 8727 8728fi 8729 8730done 8731 8732for ac_header in unistd.h 8733do : 8734 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 8735if test "x$ac_cv_header_unistd_h" = xyes; then : 8736 cat >>confdefs.h <<_ACEOF 8737#define HAVE_UNISTD_H 1 8738_ACEOF 8739 8740fi 8741 8742done 8743 8744for ac_header in unix.h 8745do : 8746 ac_fn_cxx_check_header_mongrel "$LINENO" "unix.h" "ac_cv_header_unix_h" "$ac_includes_default" 8747if test "x$ac_cv_header_unix_h" = xyes; then : 8748 cat >>confdefs.h <<_ACEOF 8749#define HAVE_UNIX_H 1 8750_ACEOF 8751 8752fi 8753 8754done 8755 8756for ac_header in utime.h 8757do : 8758 ac_fn_cxx_check_header_mongrel "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" 8759if test "x$ac_cv_header_utime_h" = xyes; then : 8760 cat >>confdefs.h <<_ACEOF 8761#define HAVE_UTIME_H 1 8762_ACEOF 8763 8764fi 8765 8766done 8767 8768for ac_header in wchar.h 8769do : 8770 ac_fn_cxx_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 8771if test "x$ac_cv_header_wchar_h" = xyes; then : 8772 cat >>confdefs.h <<_ACEOF 8773#define HAVE_WCHAR_H 1 8774_ACEOF 8775 8776fi 8777 8778done 8779 8780for ac_header in wctype.h 8781do : 8782 ac_fn_cxx_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" 8783if test "x$ac_cv_header_wctype_h" = xyes; then : 8784 cat >>confdefs.h <<_ACEOF 8785#define HAVE_WCTYPE_H 1 8786_ACEOF 8787 8788fi 8789 8790done 8791 8792for ac_header in fenv.h 8793do : 8794 ac_fn_cxx_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default" 8795if test "x$ac_cv_header_fenv_h" = xyes; then : 8796 cat >>confdefs.h <<_ACEOF 8797#define HAVE_FENV_H 1 8798_ACEOF 8799 8800fi 8801 8802done 8803 8804ac_fn_cxx_check_header_mongrel "$LINENO" "iterator" "ac_cv_header_iterator" "$ac_includes_default" 8805if test "x$ac_cv_header_iterator" = xyes; then : 8806 8807$as_echo "#define HAVE_ITERATOR_HEADER 1" >>confdefs.h 8808 8809 8810fi 8811 8812 8813 8814 8815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable poll.h" >&5 8816$as_echo_n "checking for usable poll.h... " >&6; } 8817 8818if ${ac_cv_header_poll_h+:} false; then : 8819 $as_echo_n "(cached) " >&6 8820else 8821 8822case "${host}" in 8823 *-*-darwin*) 8824 eval "ac_cv_header_poll_h=no" 8825 ;; 8826 *) 8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8828/* end confdefs.h. */ 8829#include <poll.h> 8830_ACEOF 8831if ac_fn_cxx_try_cpp "$LINENO"; then : 8832 eval "ac_cv_header_poll_h=yes" 8833else 8834 eval "ac_cv_header_poll_h=no" 8835fi 8836rm -f conftest.err conftest.i conftest.$ac_ext ;; 8837esac 8838 8839fi 8840 8841if eval "test \"`echo '$ac_cv_header_poll_h'`\" = yes"; then 8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8843$as_echo "yes" >&6; } 8844 cat >>confdefs.h <<_ACEOF 8845#define DCMTK_HAVE_POLL 1 8846_ACEOF 8847 8848 : 8849else 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8851$as_echo "no" >&6; } 8852 8853fi 8854 8855 8856if test $ac_cv_header_libc_h = yes ; then 8857 if test $ac_cv_header_math_h = yes ; then 8858 8859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libc.h should be treated as a C++ header" >&5 8860$as_echo_n "checking whether libc.h should be treated as a C++ header... " >&6; } 8861if ${ac_cv_cxx_libc_h_is_cxx+:} false; then : 8862 $as_echo_n "(cached) " >&6 8863else 8864 8865 ac_ext=cpp 8866ac_cpp='$CXXCPP $CPPFLAGS' 8867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8870 8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8872/* end confdefs.h. */ 8873extern "C" { 8874#include <libc.h> 8875} 8876#include <math.h> 8877int 8878main () 8879{ 8880int i = 0 8881 ; 8882 return 0; 8883} 8884_ACEOF 8885if ac_fn_cxx_try_compile "$LINENO"; then : 8886 ac_cv_cxx_libc_h_is_cxx=no 8887else 8888 ac_cv_cxx_libc_h_is_cxx=yes 8889fi 8890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8891 ac_ext=cpp 8892ac_cpp='$CXXCPP $CPPFLAGS' 8893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8896 8897 8898fi 8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_libc_h_is_cxx" >&5 8900$as_echo "$ac_cv_cxx_libc_h_is_cxx" >&6; } 8901if test "$ac_cv_cxx_libc_h_is_cxx" = yes; then 8902 8903$as_echo "#define INCLUDE_LIBC_H_AS_CXX /**/" >>confdefs.h 8904 8905fi 8906 8907 fi 8908fi 8909 8910 8911if test $ac_cv_header_pthread_h = yes ; then 8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_t is a pointer type (in pthread.h)" >&5 8913$as_echo_n "checking if pthread_t is a pointer type (in pthread.h)... " >&6; } 8914 8915ac_includes="" 8916cpp_code="" 8917if eval "test \"`echo '$ac_cv_cxx_static_cast'`\" = yes"; then 8918 cpp_code="unsigned long l = static_cast<unsigned long>(p)" 8919else 8920 cpp_code="unsigned long l = p" 8921fi 8922for ac_header in pthread.h 8923do 8924 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 8925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 8926 ac_includes="$ac_includes 8927#include<$ac_header>" 8928 fi 8929done 8930tmp_save_1=`echo pthread_t | tr ' :' '__'` 8931if eval \${ac_cv_pointer_type_$tmp_save_1+:} false; then : 8932 $as_echo_n "(cached) " >&6 8933else 8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8935/* end confdefs.h. */ 8936#ifdef __cplusplus 8937extern "C" { 8938#endif 8939$ac_includes 8940#ifdef __cplusplus 8941} 8942#endif 8943 8944int 8945main () 8946{ 8947#ifdef __cplusplus 8948pthread_t p; $cpp_code 8949#else 8950pthread_t p; unsigned long l = p 8951#endif 8952 8953 ; 8954 return 0; 8955} 8956_ACEOF 8957if ac_fn_cxx_try_compile "$LINENO"; then : 8958 eval "ac_cv_pointer_type_$tmp_save_1=no" 8959else 8960 eval "ac_cv_pointer_type_$tmp_save_1=yes" 8961fi 8962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8963fi 8964if eval "test \"`echo '$''{'ac_cv_pointer_type_$tmp_save_1'}'`\" = yes"; then 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8966$as_echo "yes" >&6; } 8967 ac_tr_prototype=HAVE_POINTER_TYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 8968 cat >>confdefs.h <<_ACEOF 8969#define $ac_tr_prototype 1 8970_ACEOF 8971 8972 : 8973else 8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8975$as_echo "no" >&6; } 8976fi 8977 8978fi 8979 8980 8981if test $THREADSUPPORT = auto ; then 8982 if test $ac_cv_header_synch_h = yes ; then 8983 THREADSUPPORT="solaris" 8984 fi 8985fi 8986if test $THREADSUPPORT = auto ; then 8987 if test $ac_cv_header_pthread_h = yes ; then 8988 THREADSUPPORT="posix" 8989 fi 8990fi 8991if test $THREADSUPPORT = auto ; then 8992 THREADSUPPORT="no" 8993fi 8994 8995 8996if test $THREADSUPPORT = solaris ; then 8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sema_init in -lthread" >&5 8998$as_echo_n "checking for sema_init in -lthread... " >&6; } 8999if ${ac_cv_lib_thread_sema_init+:} false; then : 9000 $as_echo_n "(cached) " >&6 9001else 9002 ac_check_lib_save_LIBS=$LIBS 9003LIBS="-lthread $LIBS" 9004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9005/* end confdefs.h. */ 9006 9007/* Override any GCC internal prototype to avoid an error. 9008 Use char because int might match the return type of a GCC 9009 builtin and then its argument prototype would still apply. */ 9010#ifdef __cplusplus 9011extern "C" 9012#endif 9013char sema_init (); 9014int 9015main () 9016{ 9017return sema_init (); 9018 ; 9019 return 0; 9020} 9021_ACEOF 9022if ac_fn_cxx_try_link "$LINENO"; then : 9023 ac_cv_lib_thread_sema_init=yes 9024else 9025 ac_cv_lib_thread_sema_init=no 9026fi 9027rm -f core conftest.err conftest.$ac_objext \ 9028 conftest$ac_exeext conftest.$ac_ext 9029LIBS=$ac_check_lib_save_LIBS 9030fi 9031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_sema_init" >&5 9032$as_echo "$ac_cv_lib_thread_sema_init" >&6; } 9033if test "x$ac_cv_lib_thread_sema_init" = xyes; then : 9034 9035 ac_tr_lib=HAVE_LIBTHREAD 9036 cat >>confdefs.h <<_ACEOF 9037#define $ac_tr_lib 1 9038_ACEOF 9039 9040 LIBS="-lthread $LIBS" 9041 9042fi 9043 9044fi 9045 9046if test $THREADSUPPORT = posix ; then 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_key_create in -lpthread" >&5 9048$as_echo_n "checking for pthread_key_create in -lpthread... " >&6; } 9049if ${ac_cv_lib_pthread_pthread_key_create+:} false; then : 9050 $as_echo_n "(cached) " >&6 9051else 9052 ac_check_lib_save_LIBS=$LIBS 9053LIBS="-lpthread $LIBS" 9054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9055/* end confdefs.h. */ 9056 9057/* Override any GCC internal prototype to avoid an error. 9058 Use char because int might match the return type of a GCC 9059 builtin and then its argument prototype would still apply. */ 9060#ifdef __cplusplus 9061extern "C" 9062#endif 9063char pthread_key_create (); 9064int 9065main () 9066{ 9067return pthread_key_create (); 9068 ; 9069 return 0; 9070} 9071_ACEOF 9072if ac_fn_cxx_try_link "$LINENO"; then : 9073 ac_cv_lib_pthread_pthread_key_create=yes 9074else 9075 ac_cv_lib_pthread_pthread_key_create=no 9076fi 9077rm -f core conftest.err conftest.$ac_objext \ 9078 conftest$ac_exeext conftest.$ac_ext 9079LIBS=$ac_check_lib_save_LIBS 9080fi 9081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_key_create" >&5 9082$as_echo "$ac_cv_lib_pthread_pthread_key_create" >&6; } 9083if test "x$ac_cv_lib_pthread_pthread_key_create" = xyes; then : 9084 9085 ac_tr_lib=HAVE_LIBPTHREAD 9086 cat >>confdefs.h <<_ACEOF 9087#define $ac_tr_lib 1 9088_ACEOF 9089 9090 LIBS="-lpthread $LIBS" 9091 9092fi 9093 9094 9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 9096$as_echo_n "checking for sem_init in -lrt... " >&6; } 9097if ${ac_cv_lib_rt_sem_init+:} false; then : 9098 $as_echo_n "(cached) " >&6 9099else 9100 ac_check_lib_save_LIBS=$LIBS 9101LIBS="-lrt $LIBS $LIBS" 9102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9103/* end confdefs.h. */ 9104 9105/* Override any GCC internal prototype to avoid an error. 9106 Use char because int might match the return type of a GCC 9107 builtin and then its argument prototype would still apply. */ 9108#ifdef __cplusplus 9109extern "C" 9110#endif 9111char sem_init (); 9112int 9113main () 9114{ 9115return sem_init (); 9116 ; 9117 return 0; 9118} 9119_ACEOF 9120if ac_fn_cxx_try_link "$LINENO"; then : 9121 ac_cv_lib_rt_sem_init=yes 9122else 9123 ac_cv_lib_rt_sem_init=no 9124fi 9125rm -f core conftest.err conftest.$ac_objext \ 9126 conftest$ac_exeext conftest.$ac_ext 9127LIBS=$ac_check_lib_save_LIBS 9128fi 9129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 9130$as_echo "$ac_cv_lib_rt_sem_init" >&6; } 9131if test "x$ac_cv_lib_rt_sem_init" = xyes; then : 9132 9133 ac_tr_lib=HAVE_LIBRT 9134 cat >>confdefs.h <<_ACEOF 9135#define $ac_tr_lib 1 9136_ACEOF 9137 9138 LIBS="-lrt $LIBS" 9139 9140fi 9141 9142 9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler requires -pthread option for posix threads" >&5 9144$as_echo_n "checking whether compiler requires -pthread option for posix threads... " >&6; } 9145REQUIRES_PTHREAD_OPTION="no" 9146cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9147/* end confdefs.h. */ 9148#ifdef __cplusplus 9149extern "C" { 9150#endif 9151 9152#include <pthread.h> 9153#ifdef __cplusplus 9154} 9155#endif 9156 9157 9158int 9159main () 9160{ 9161 9162 (void) pthread_create(NULL, NULL, NULL, NULL); 9163 9164 ; 9165 return 0; 9166} 9167_ACEOF 9168if ac_fn_cxx_try_link "$LINENO"; then : 9169 9170else 9171 SAVE_CXXFLAGS="$CXXFLAGS" 9172SAVE_CFLAGS="$CFLAGS" 9173CXXFLAGS="-pthread $CXXFLAGS" 9174CFLAGS="-pthread $CFLAGS" 9175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9176/* end confdefs.h. */ 9177#ifdef __cplusplus 9178extern "C" { 9179#endif 9180 9181#include <pthread.h> 9182#ifdef __cplusplus 9183} 9184#endif 9185 9186 9187int 9188main () 9189{ 9190 9191 (void) pthread_create(NULL, NULL, NULL, NULL); 9192 9193 ; 9194 return 0; 9195} 9196_ACEOF 9197if ac_fn_cxx_try_link "$LINENO"; then : 9198 REQUIRES_PTHREAD_OPTION="yes" 9199 9200fi 9201rm -f core conftest.err conftest.$ac_objext \ 9202 conftest$ac_exeext conftest.$ac_ext 9203CXXFLAGS="$SAVE_CXXFLAGS" 9204CFLAGS="$SAVE_CFLAGS" 9205 9206fi 9207rm -f core conftest.err conftest.$ac_objext \ 9208 conftest$ac_exeext conftest.$ac_ext 9209 9210if test $REQUIRES_PTHREAD_OPTION = yes ; then 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9212$as_echo "yes" >&6; } 9213 CXXFLAGS="-pthread $CXXFLAGS" 9214 CFLAGS="-pthread $CFLAGS" 9215else 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9217$as_echo "no" >&6; } 9218fi 9219 9220 9221 POSIXRWLOCKSAVAILABLE="no" 9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_init in -lpthread" >&5 9223$as_echo_n "checking for pthread_rwlock_init in -lpthread... " >&6; } 9224if ${ac_cv_lib_pthread_pthread_rwlock_init+:} false; then : 9225 $as_echo_n "(cached) " >&6 9226else 9227 ac_check_lib_save_LIBS=$LIBS 9228LIBS="-lpthread $LIBS" 9229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9230/* end confdefs.h. */ 9231 9232/* Override any GCC internal prototype to avoid an error. 9233 Use char because int might match the return type of a GCC 9234 builtin and then its argument prototype would still apply. */ 9235#ifdef __cplusplus 9236extern "C" 9237#endif 9238char pthread_rwlock_init (); 9239int 9240main () 9241{ 9242return pthread_rwlock_init (); 9243 ; 9244 return 0; 9245} 9246_ACEOF 9247if ac_fn_cxx_try_link "$LINENO"; then : 9248 ac_cv_lib_pthread_pthread_rwlock_init=yes 9249else 9250 ac_cv_lib_pthread_pthread_rwlock_init=no 9251fi 9252rm -f core conftest.err conftest.$ac_objext \ 9253 conftest$ac_exeext conftest.$ac_ext 9254LIBS=$ac_check_lib_save_LIBS 9255fi 9256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_rwlock_init" >&5 9257$as_echo "$ac_cv_lib_pthread_pthread_rwlock_init" >&6; } 9258if test "x$ac_cv_lib_pthread_pthread_rwlock_init" = xyes; then : 9259 9260 9261$as_echo "#define HAVE_PTHREAD_RWLOCK /**/" >>confdefs.h 9262 9263 POSIXRWLOCKSAVAILABLE="yes" 9264 case "${host}" in 9265 mips-sgi-irix6*) 9266 CXXFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT $CXXFLAGS" 9267 CFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT $CFLAGS" 9268 ;; 9269 *-*-openbsd3*) 9270 CXXFLAGS="-D_POSIX_C_SOURCE=199506L $CXXFLAGS" 9271 CFLAGS="-D_POSIX_C_SOURCE=199506L $CFLAGS" 9272 ;; 9273 *-*-openbsd4*) 9274 ;; 9275 *-*-openbsd5*) 9276 ;; 9277 *-*-freebsd*) 9278 ;; 9279 *-*-netbsdelf2*) 9280 ;; 9281 *-*-netbsd*) 9282 CXXFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_NETBSD_SOURCE -D_BSD_COMPAT $CXXFLAGS" 9283 CFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_NETBSD_SOURCE -D_BSD_COMPAT $CFLAGS" 9284 ;; 9285 *-*-darwin*) 9286 CXXFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_DARWIN_C_SOURCE $CXXFLAGS" 9287 CFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_DARWIN_C_SOURCE $CXXFLAGS" 9288 ;; 9289 *) 9290 CXXFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L $CXXFLAGS" 9291 CFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L $CFLAGS" 9292 ;; 9293 esac 9294 9295else 9296 9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_init in default libraries" >&5 9298$as_echo_n "checking for pthread_rwlock_init in default libraries... " >&6; } 9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9300/* end confdefs.h. */ 9301extern "C" int pthread_rwlock_init(void *rwlock, void *attr); 9302 9303int 9304main () 9305{ 9306(void) pthread_rwlock_init(NULL, NULL); 9307 ; 9308 return 0; 9309} 9310_ACEOF 9311if ac_fn_cxx_try_link "$LINENO"; then : 9312 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9314$as_echo "yes" >&6; } 9315 9316$as_echo "#define HAVE_PTHREAD_RWLOCK /**/" >>confdefs.h 9317 9318 POSIXRWLOCKSAVAILABLE="yes" 9319 case "${host}" in 9320 mips-sgi-irix6*) 9321 CXXFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT $CXXFLAGS" 9322 CFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT $CFLAGS" 9323 ;; 9324 *-*-openbsd3*) 9325 CXXFLAGS="-D_POSIX_C_SOURCE=199506L $CXXFLAGS" 9326 CFLAGS="-D_POSIX_C_SOURCE=199506L $CFLAGS" 9327 ;; 9328 *-*-openbsd4*) 9329 ;; 9330 *-*-openbsd5*) 9331 ;; 9332 *-*-freebsd*) 9333 ;; 9334 *-*-netbsdelf2*) 9335 ;; 9336 *-*-netbsd*) 9337 CXXFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_NETBSD_SOURCE -D_BSD_COMPAT $CXXFLAGS" 9338 CFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_NETBSD_SOURCE -D_BSD_COMPAT $CFLAGS" 9339 ;; 9340 *-*-darwin*) 9341 CXXFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_DARWIN_C_SOURCE $CXXFLAGS" 9342 CFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_DARWIN_C_SOURCE $CXXFLAGS" 9343 ;; 9344 *) 9345 CXXFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L $CXXFLAGS" 9346 CFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L $CFLAGS" 9347 ;; 9348 esac 9349 9350else 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9352$as_echo "no" >&6; } 9353fi 9354rm -f core conftest.err conftest.$ac_objext \ 9355 conftest$ac_exeext conftest.$ac_ext 9356 9357 9358fi 9359 9360fi 9361 9362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking multi-thread support" >&5 9363$as_echo_n "checking multi-thread support... " >&6; } 9364case "$THREADSUPPORT" in 9365 solaris) 9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, solaris threads" >&5 9367$as_echo "yes, solaris threads" >&6; } 9368 CXXFLAGS="-D_REENTRANT $CXXFLAGS" 9369 CFLAGS="-D_REENTRANT $CFLAGS" 9370 9371$as_echo "#define WITH_THREADS /**/" >>confdefs.h 9372 9373 ;; 9374 posix) 9375 if test $POSIXRWLOCKSAVAILABLE = yes ; then 9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, posix threads with rwlock" >&5 9377$as_echo "yes, posix threads with rwlock" >&6; } 9378 else 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, posix threads without rwlock" >&5 9380$as_echo "yes, posix threads without rwlock" >&6; } 9381 fi 9382 CXXFLAGS="-D_REENTRANT $CXXFLAGS" 9383 CFLAGS="-D_REENTRANT $CFLAGS" 9384 9385$as_echo "#define WITH_THREADS /**/" >>confdefs.h 9386 9387 ;; 9388 *) 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 9390$as_echo "none" >&6; } 9391 ;; 9392esac 9393 9394 9395if test $LFSSUPPORT = auto -o $LFSSUPPORT = lfs64; then 9396 9397 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit large file support" >&5 9399$as_echo_n "checking for explicit large file support... " >&6; } 9400 ac_cv_lfs64_support=no 9401 9402 ac_ext=c 9403ac_cpp='$CPP $CPPFLAGS' 9404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9406ac_compiler_gnu=$ac_cv_c_compiler_gnu 9407 9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9409/* end confdefs.h. */ 9410#define _LARGEFILE64_SOURCE 9411 #include <stdio.h> 9412int 9413main () 9414{ 9415FILE *f = fopen64("name", "r"); 9416 ; 9417 return 0; 9418} 9419_ACEOF 9420if ac_fn_c_try_link "$LINENO"; then : 9421 ac_cv_lfs64_support=yes 9422else 9423 ac_cv_lfs64_support=no 9424fi 9425rm -f core conftest.err conftest.$ac_objext \ 9426 conftest$ac_exeext conftest.$ac_ext 9427 ac_ext=cpp 9428ac_cpp='$CXXCPP $CPPFLAGS' 9429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9432 9433 9434 if test "$ac_cv_lfs64_support" = yes; then 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9436$as_echo "yes" >&6; } 9437 9438$as_echo "#define DCMTK_ENABLE_LFS DCMTK_LFS64" >>confdefs.h 9439 9440 9441$as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h 9442 9443 else 9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9445$as_echo "no" >&6; } 9446 fi 9447 9448 if test $ac_cv_lfs64_support = yes ; then 9449 LFSSUPPORT="lfs64" 9450 fi 9451fi 9452 9453if test $LFSSUPPORT = auto -o $LFSSUPPORT = lfs; then 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 9455$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 9456if ${ac_cv_sys_largefile_CC+:} false; then : 9457 $as_echo_n "(cached) " >&6 9458else 9459 ac_cv_sys_largefile_CC=no 9460 if test "$GCC" != yes; then 9461 9462 ac_ext=c 9463ac_cpp='$CPP $CPPFLAGS' 9464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9466ac_compiler_gnu=$ac_cv_c_compiler_gnu 9467 9468 ac_save_CC=$CC 9469 while :; do 9470 # IRIX 6.2 and later do not support large files by default, 9471 # so use the C compiler's -n32 option if that helps. 9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9473/* end confdefs.h. */ 9474#include <sys/types.h> 9475 /* Check that off_t can represent 2**63 - 1 correctly. 9476 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9477 since some C++ compilers masquerading as C compilers 9478 incorrectly reject 9223372036854775807. */ 9479#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9480 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9481 && LARGE_OFF_T % 2147483647 == 1) 9482 ? 1 : -1]; 9483int 9484main () 9485{ 9486 9487 ; 9488 return 0; 9489} 9490_ACEOF 9491 if ac_fn_c_try_compile "$LINENO"; then : 9492 break 9493fi 9494rm -f core conftest.err conftest.$ac_objext 9495 CC="$CC -n32" 9496 if ac_fn_c_try_compile "$LINENO"; then : 9497 ac_cv_sys_largefile_CC=' -n32'; break 9498fi 9499rm -f core conftest.err conftest.$ac_objext 9500 break 9501 done 9502 CC=$ac_save_CC 9503 rm -f conftest.$ac_ext 9504 ac_ext=cpp 9505ac_cpp='$CXXCPP $CPPFLAGS' 9506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9509 9510 fi 9511fi 9512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 9513$as_echo "$ac_cv_sys_largefile_CC" >&6; } 9514 if test "$ac_cv_sys_largefile_CC" != no; then 9515 CC=$CC$ac_cv_sys_largefile_CC 9516 CXX=$CXX$ac_cv_sys_largefile_CC 9517 fi 9518 9519 ac_cv_lfs64_support=no 9520 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 9522$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 9523if ${ac_cv_sys_file_offset_bits+:} false; then : 9524 $as_echo_n "(cached) " >&6 9525else 9526 while :; do 9527 ac_cv_sys_file_offset_bits=no 9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9529/* end confdefs.h. */ 9530#include <sys/types.h> 9531 /* Check that off_t can represent 2**63 - 1 correctly. 9532 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9533 since some C++ compilers masquerading as C compilers 9534 incorrectly reject 9223372036854775807. */ 9535#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9536 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9537 && LARGE_OFF_T % 2147483647 == 1) 9538 ? 1 : -1]; 9539int 9540main () 9541{ 9542 9543 ; 9544 return 0; 9545} 9546_ACEOF 9547if ac_fn_cxx_try_compile "$LINENO"; then : 9548 ac_cv_lfs_support=yes; break 9549fi 9550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9552/* end confdefs.h. */ 9553#define _FILE_OFFSET_BITS 64 9554#include <sys/types.h> 9555 /* Check that off_t can represent 2**63 - 1 correctly. 9556 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9557 since some C++ compilers masquerading as C compilers 9558 incorrectly reject 9223372036854775807. */ 9559#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9560 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9561 && LARGE_OFF_T % 2147483647 == 1) 9562 ? 1 : -1]; 9563int 9564main () 9565{ 9566 9567 ; 9568 return 0; 9569} 9570_ACEOF 9571if ac_fn_cxx_try_compile "$LINENO"; then : 9572 ac_cv_sys_file_offset_bits=64; ac_cv_lfs_support=yes; break 9573fi 9574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9575 break 9576done 9577fi 9578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 9579$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 9580if test "$ac_cv_sys_file_offset_bits" != no; then 9581 9582cat >>confdefs.h <<_ACEOF 9583#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 9584_ACEOF 9585 9586fi 9587rm -f conftest* 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 9589$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 9590if ${ac_cv_sys_large_files+:} false; then : 9591 $as_echo_n "(cached) " >&6 9592else 9593 while :; do 9594 ac_cv_sys_large_files=no 9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9596/* end confdefs.h. */ 9597#include <sys/types.h> 9598 /* Check that off_t can represent 2**63 - 1 correctly. 9599 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9600 since some C++ compilers masquerading as C compilers 9601 incorrectly reject 9223372036854775807. */ 9602#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9603 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9604 && LARGE_OFF_T % 2147483647 == 1) 9605 ? 1 : -1]; 9606int 9607main () 9608{ 9609 9610 ; 9611 return 0; 9612} 9613_ACEOF 9614if ac_fn_cxx_try_compile "$LINENO"; then : 9615 ac_cv_lfs_support=yes; break 9616fi 9617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9619/* end confdefs.h. */ 9620#define _LARGE_FILES 1 9621#include <sys/types.h> 9622 /* Check that off_t can represent 2**63 - 1 correctly. 9623 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9624 since some C++ compilers masquerading as C compilers 9625 incorrectly reject 9223372036854775807. */ 9626#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9628 && LARGE_OFF_T % 2147483647 == 1) 9629 ? 1 : -1]; 9630int 9631main () 9632{ 9633 9634 ; 9635 return 0; 9636} 9637_ACEOF 9638if ac_fn_cxx_try_compile "$LINENO"; then : 9639 ac_cv_sys_large_files=1; ac_cv_lfs_support=yes; break 9640fi 9641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9642 break 9643done 9644fi 9645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 9646$as_echo "$ac_cv_sys_large_files" >&6; } 9647if test "$ac_cv_sys_large_files" != no; then 9648 9649cat >>confdefs.h <<_ACEOF 9650#define _LARGE_FILES $ac_cv_sys_large_files 9651_ACEOF 9652 9653fi 9654rm -f conftest* 9655 9656 if test "$ac_cv_lfs_support" = yes; then 9657 9658$as_echo "#define DCMTK_ENABLE_LFS DCMTK_LFS" >>confdefs.h 9659 9660 fi 9661 9662 9663fi 9664 9665 9666 9667 9668 9669 9670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5 9671$as_echo_n "checking for size_t... " >&6; } 9672if ${ac_cv_type_size_t+:} false; then : 9673 $as_echo_n "(cached) " >&6 9674else 9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9676/* end confdefs.h. */ 9677$ac_includes_default 9678int 9679main () 9680{ 9681if ((size_t *) 0) 9682 return 0; 9683if (sizeof (size_t)) 9684 return 0; 9685 ; 9686 return 0; 9687} 9688_ACEOF 9689if ac_fn_cxx_try_compile "$LINENO"; then : 9690 ac_cv_type_size_t=yes 9691else 9692 ac_cv_type_size_t=no 9693fi 9694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9695fi 9696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_size_t" >&5 9697$as_echo "$ac_cv_type_size_t" >&6; } 9698if test $ac_cv_type_size_t = yes; then : 9699 9700else 9701 9702cat >>confdefs.h <<_ACEOF 9703#define HAVE_NO_TYPEDEF_SIZE_T 1 9704_ACEOF 9705 9706fi 9707 9708 9709 9710 9711 9712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 9713$as_echo_n "checking for ssize_t... " >&6; } 9714if ${ac_cv_type_ssize_t+:} false; then : 9715 $as_echo_n "(cached) " >&6 9716else 9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9718/* end confdefs.h. */ 9719$ac_includes_default 9720int 9721main () 9722{ 9723if ((ssize_t *) 0) 9724 return 0; 9725if (sizeof (ssize_t)) 9726 return 0; 9727 ; 9728 return 0; 9729} 9730_ACEOF 9731if ac_fn_cxx_try_compile "$LINENO"; then : 9732 ac_cv_type_ssize_t=yes 9733else 9734 ac_cv_type_ssize_t=no 9735fi 9736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9737fi 9738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_ssize_t" >&5 9739$as_echo "$ac_cv_type_ssize_t" >&6; } 9740if test $ac_cv_type_ssize_t = yes; then : 9741 9742else 9743 9744cat >>confdefs.h <<_ACEOF 9745#define HAVE_NO_TYPEDEF_SSIZE_T 1 9746_ACEOF 9747 9748fi 9749 9750 9751 9752 9753 9754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5 9755$as_echo_n "checking for pid_t... " >&6; } 9756if ${ac_cv_type_pid_t+:} false; then : 9757 $as_echo_n "(cached) " >&6 9758else 9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9760/* end confdefs.h. */ 9761$ac_includes_default 9762int 9763main () 9764{ 9765if ((pid_t *) 0) 9766 return 0; 9767if (sizeof (pid_t)) 9768 return 0; 9769 ; 9770 return 0; 9771} 9772_ACEOF 9773if ac_fn_cxx_try_compile "$LINENO"; then : 9774 ac_cv_type_pid_t=yes 9775else 9776 ac_cv_type_pid_t=no 9777fi 9778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9779fi 9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_pid_t" >&5 9781$as_echo "$ac_cv_type_pid_t" >&6; } 9782if test $ac_cv_type_pid_t = yes; then : 9783 9784else 9785 9786cat >>confdefs.h <<_ACEOF 9787#define HAVE_NO_TYPEDEF_PID_T 1 9788_ACEOF 9789 9790fi 9791 9792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 9793$as_echo_n "checking whether char is unsigned... " >&6; } 9794if ${ac_cv_c_char_unsigned+:} false; then : 9795 $as_echo_n "(cached) " >&6 9796else 9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9798/* end confdefs.h. */ 9799$ac_includes_default 9800int 9801main () 9802{ 9803static int test_array [1 - 2 * !(((char) -1) < 0)]; 9804test_array [0] = 0; 9805return test_array [0]; 9806 9807 ; 9808 return 0; 9809} 9810_ACEOF 9811if ac_fn_cxx_try_compile "$LINENO"; then : 9812 ac_cv_c_char_unsigned=no 9813else 9814 ac_cv_c_char_unsigned=yes 9815fi 9816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9817fi 9818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 9819$as_echo "$ac_cv_c_char_unsigned" >&6; } 9820if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 9821 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 9822 9823fi 9824 9825# The cast to long int works around a bug in the HP C Compiler 9826# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9827# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9828# This bug is HP SR number 8606223364. 9829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 9830$as_echo_n "checking size of char... " >&6; } 9831if ${ac_cv_sizeof_char+:} false; then : 9832 $as_echo_n "(cached) " >&6 9833else 9834 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 9835 9836else 9837 if test "$ac_cv_type_char" = yes; then 9838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9840as_fn_error 77 "cannot compute sizeof (char) 9841See \`config.log' for more details" "$LINENO" 5; } 9842 else 9843 ac_cv_sizeof_char=0 9844 fi 9845fi 9846 9847fi 9848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 9849$as_echo "$ac_cv_sizeof_char" >&6; } 9850 9851 9852 9853cat >>confdefs.h <<_ACEOF 9854#define SIZEOF_CHAR $ac_cv_sizeof_char 9855_ACEOF 9856 9857 9858# The cast to long int works around a bug in the HP C Compiler 9859# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9860# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9861# This bug is HP SR number 8606223364. 9862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 9863$as_echo_n "checking size of short... " >&6; } 9864if ${ac_cv_sizeof_short+:} false; then : 9865 $as_echo_n "(cached) " >&6 9866else 9867 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 9868 9869else 9870 if test "$ac_cv_type_short" = yes; then 9871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9873as_fn_error 77 "cannot compute sizeof (short) 9874See \`config.log' for more details" "$LINENO" 5; } 9875 else 9876 ac_cv_sizeof_short=0 9877 fi 9878fi 9879 9880fi 9881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 9882$as_echo "$ac_cv_sizeof_short" >&6; } 9883 9884 9885 9886cat >>confdefs.h <<_ACEOF 9887#define SIZEOF_SHORT $ac_cv_sizeof_short 9888_ACEOF 9889 9890 9891# The cast to long int works around a bug in the HP C Compiler 9892# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9893# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9894# This bug is HP SR number 8606223364. 9895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 9896$as_echo_n "checking size of int... " >&6; } 9897if ${ac_cv_sizeof_int+:} false; then : 9898 $as_echo_n "(cached) " >&6 9899else 9900 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 9901 9902else 9903 if test "$ac_cv_type_int" = yes; then 9904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9906as_fn_error 77 "cannot compute sizeof (int) 9907See \`config.log' for more details" "$LINENO" 5; } 9908 else 9909 ac_cv_sizeof_int=0 9910 fi 9911fi 9912 9913fi 9914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 9915$as_echo "$ac_cv_sizeof_int" >&6; } 9916 9917 9918 9919cat >>confdefs.h <<_ACEOF 9920#define SIZEOF_INT $ac_cv_sizeof_int 9921_ACEOF 9922 9923 9924# The cast to long int works around a bug in the HP C Compiler 9925# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9926# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9927# This bug is HP SR number 8606223364. 9928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 9929$as_echo_n "checking size of long... " >&6; } 9930if ${ac_cv_sizeof_long+:} false; then : 9931 $as_echo_n "(cached) " >&6 9932else 9933 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 9934 9935else 9936 if test "$ac_cv_type_long" = yes; then 9937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9939as_fn_error 77 "cannot compute sizeof (long) 9940See \`config.log' for more details" "$LINENO" 5; } 9941 else 9942 ac_cv_sizeof_long=0 9943 fi 9944fi 9945 9946fi 9947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 9948$as_echo "$ac_cv_sizeof_long" >&6; } 9949 9950 9951 9952cat >>confdefs.h <<_ACEOF 9953#define SIZEOF_LONG $ac_cv_sizeof_long 9954_ACEOF 9955 9956 9957# The cast to long int works around a bug in the HP C Compiler 9958# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9959# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9960# This bug is HP SR number 8606223364. 9961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 9962$as_echo_n "checking size of float... " >&6; } 9963if ${ac_cv_sizeof_float+:} false; then : 9964 $as_echo_n "(cached) " >&6 9965else 9966 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 9967 9968else 9969 if test "$ac_cv_type_float" = yes; then 9970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9972as_fn_error 77 "cannot compute sizeof (float) 9973See \`config.log' for more details" "$LINENO" 5; } 9974 else 9975 ac_cv_sizeof_float=0 9976 fi 9977fi 9978 9979fi 9980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 9981$as_echo "$ac_cv_sizeof_float" >&6; } 9982 9983 9984 9985cat >>confdefs.h <<_ACEOF 9986#define SIZEOF_FLOAT $ac_cv_sizeof_float 9987_ACEOF 9988 9989 9990# The cast to long int works around a bug in the HP C Compiler 9991# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9992# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9993# This bug is HP SR number 8606223364. 9994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 9995$as_echo_n "checking size of double... " >&6; } 9996if ${ac_cv_sizeof_double+:} false; then : 9997 $as_echo_n "(cached) " >&6 9998else 9999 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 10000 10001else 10002 if test "$ac_cv_type_double" = yes; then 10003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10005as_fn_error 77 "cannot compute sizeof (double) 10006See \`config.log' for more details" "$LINENO" 5; } 10007 else 10008 ac_cv_sizeof_double=0 10009 fi 10010fi 10011 10012fi 10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 10014$as_echo "$ac_cv_sizeof_double" >&6; } 10015 10016 10017 10018cat >>confdefs.h <<_ACEOF 10019#define SIZEOF_DOUBLE $ac_cv_sizeof_double 10020_ACEOF 10021 10022 10023# The cast to long int works around a bug in the HP C Compiler 10024# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10025# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10026# This bug is HP SR number 8606223364. 10027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 10028$as_echo_n "checking size of void *... " >&6; } 10029if ${ac_cv_sizeof_void_p+:} false; then : 10030 $as_echo_n "(cached) " >&6 10031else 10032 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 10033 10034else 10035 if test "$ac_cv_type_void_p" = yes; then 10036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10038as_fn_error 77 "cannot compute sizeof (void *) 10039See \`config.log' for more details" "$LINENO" 5; } 10040 else 10041 ac_cv_sizeof_void_p=0 10042 fi 10043fi 10044 10045fi 10046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 10047$as_echo "$ac_cv_sizeof_void_p" >&6; } 10048 10049 10050 10051cat >>confdefs.h <<_ACEOF 10052#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 10053_ACEOF 10054 10055 10056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 10057$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 10058if ${ac_cv_struct_tm+:} false; then : 10059 $as_echo_n "(cached) " >&6 10060else 10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10062/* end confdefs.h. */ 10063#include <sys/types.h> 10064#include <time.h> 10065 10066int 10067main () 10068{ 10069struct tm tm; 10070 int *p = &tm.tm_sec; 10071 return !p; 10072 ; 10073 return 0; 10074} 10075_ACEOF 10076if ac_fn_cxx_try_compile "$LINENO"; then : 10077 ac_cv_struct_tm=time.h 10078else 10079 ac_cv_struct_tm=sys/time.h 10080fi 10081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10082fi 10083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 10084$as_echo "$ac_cv_struct_tm" >&6; } 10085if test $ac_cv_struct_tm = sys/time.h; then 10086 10087$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 10088 10089fi 10090 10091 10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__ macro" >&5 10093$as_echo_n "checking for __FUNCTION__ macro... " >&6; } 10094if ${ac_cv_have___FUNCTION___macro+:} false; then : 10095 $as_echo_n "(cached) " >&6 10096else 10097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10098/* end confdefs.h. */ 10099 10100int 10101main () 10102{ 10103const char * func = __FUNCTION__; 10104 ; 10105 return 0; 10106} 10107_ACEOF 10108if ac_fn_cxx_try_compile "$LINENO"; then : 10109 ac_cv_have___FUNCTION___macro=yes 10110else 10111 ac_cv_have___FUNCTION___macro=no 10112fi 10113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10114fi 10115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___FUNCTION___macro" >&5 10116$as_echo "$ac_cv_have___FUNCTION___macro" >&6; } 10117 if test "x$ac_cv_have___FUNCTION___macro" = "xyes"; then 10118 $as_echo "#define HAVE___FUNCTION___MACRO 1" >>confdefs.h 10119 10120 fi 10121 10122 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __PRETTY_FUNCTION__ macro" >&5 10124$as_echo_n "checking for __PRETTY_FUNCTION__ macro... " >&6; } 10125if ${ac_cv_have___PRETTY_FUNCTION___macro+:} false; then : 10126 $as_echo_n "(cached) " >&6 10127else 10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10129/* end confdefs.h. */ 10130 10131int 10132main () 10133{ 10134const char * func = __PRETTY_FUNCTION__; 10135 ; 10136 return 0; 10137} 10138_ACEOF 10139if ac_fn_cxx_try_compile "$LINENO"; then : 10140 ac_cv_have___PRETTY_FUNCTION___macro=yes 10141else 10142 ac_cv_have___PRETTY_FUNCTION___macro=no 10143fi 10144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10145fi 10146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___PRETTY_FUNCTION___macro" >&5 10147$as_echo "$ac_cv_have___PRETTY_FUNCTION___macro" >&6; } 10148 if test "x$ac_cv_have___PRETTY_FUNCTION___macro" = "xyes"; then 10149 $as_echo "#define HAVE___PRETTY_FUNCTION___MACRO 1" >>confdefs.h 10150 10151 fi 10152 10153 10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__ macro" >&5 10155$as_echo_n "checking for __func__ macro... " >&6; } 10156if ${ac_cv_have___func___macro+:} false; then : 10157 $as_echo_n "(cached) " >&6 10158else 10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10160/* end confdefs.h. */ 10161 10162int 10163main () 10164{ 10165const char * func = __func__; 10166 ; 10167 return 0; 10168} 10169_ACEOF 10170if ac_fn_cxx_try_compile "$LINENO"; then : 10171 ac_cv_have___func___macro=yes 10172else 10173 ac_cv_have___func___macro=no 10174fi 10175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10176fi 10177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___func___macro" >&5 10178$as_echo "$ac_cv_have___func___macro" >&6; } 10179 if test "x$ac_cv_have___func___macro" = "xyes"; then 10180 $as_echo "#define HAVE___func___MACRO 1" >>confdefs.h 10181 10182 fi 10183 10184 10185 10186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for feenableexcept (in fenv.h)" >&5 10187$as_echo_n "checking prototype for feenableexcept (in fenv.h)... " >&6; } 10188 10189: 10190 10191ac_includes="" 10192for ac_header in fenv.h 10193do 10194 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 10195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 10196 ac_includes="$ac_includes 10197#include<$ac_header>" 10198 fi 10199done 10200tmp_save_1=`echo feenableexcept | tr ' :' '__'` 10201if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 10202 $as_echo_n "(cached) " >&6 10203else 10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10205/* end confdefs.h. */ 10206#ifdef __cplusplus 10207extern "C" { 10208#endif 10209$ac_includes 10210#ifdef __cplusplus 10211} 10212#endif 10213typedef union { int member; } dummyStruct; 10214#ifdef __cplusplus 10215extern "C" 10216#endif 10217dummyStruct feenableexcept(dummyStruct); 10218 10219 10220int 10221main () 10222{ 10223 10224 ; 10225 return 0; 10226} 10227_ACEOF 10228if ac_fn_cxx_try_compile "$LINENO"; then : 10229 eval "ac_cv_prototype_$tmp_save_1=no" 10230else 10231 eval "ac_cv_prototype_$tmp_save_1=yes" 10232fi 10233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10234fi 10235if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10237$as_echo "yes" >&6; } 10238 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 10239 cat >>confdefs.h <<_ACEOF 10240#define $ac_tr_prototype 1 10241_ACEOF 10242 10243 : 10244else 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10246$as_echo "no" >&6; } 10247fi 10248 10249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for _stricmp (in string.h)" >&5 10250$as_echo_n "checking prototype for _stricmp (in string.h)... " >&6; } 10251 10252: 10253 10254ac_includes="" 10255for ac_header in string.h 10256do 10257 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 10258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 10259 ac_includes="$ac_includes 10260#include<$ac_header>" 10261 fi 10262done 10263tmp_save_1=`echo _stricmp | tr ' :' '__'` 10264if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 10265 $as_echo_n "(cached) " >&6 10266else 10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10268/* end confdefs.h. */ 10269#ifdef __cplusplus 10270extern "C" { 10271#endif 10272$ac_includes 10273#ifdef __cplusplus 10274} 10275#endif 10276typedef union { int member; } dummyStruct; 10277#ifdef __cplusplus 10278extern "C" 10279#endif 10280dummyStruct _stricmp(dummyStruct); 10281 10282 10283int 10284main () 10285{ 10286 10287 ; 10288 return 0; 10289} 10290_ACEOF 10291if ac_fn_cxx_try_compile "$LINENO"; then : 10292 eval "ac_cv_prototype_$tmp_save_1=no" 10293else 10294 eval "ac_cv_prototype_$tmp_save_1=yes" 10295fi 10296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10297fi 10298if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10300$as_echo "yes" >&6; } 10301 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 10302 cat >>confdefs.h <<_ACEOF 10303#define $ac_tr_prototype 1 10304_ACEOF 10305 10306 : 10307else 10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10309$as_echo "no" >&6; } 10310fi 10311 10312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for accept (in sys/types.h sys/socket.h)" >&5 10313$as_echo_n "checking prototype for accept (in sys/types.h sys/socket.h)... " >&6; } 10314 10315: 10316 10317ac_includes="" 10318for ac_header in sys/types.h sys/socket.h 10319do 10320 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 10321 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 10322 ac_includes="$ac_includes 10323#include<$ac_header>" 10324 fi 10325done 10326tmp_save_1=`echo accept | tr ' :' '__'` 10327if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 10328 $as_echo_n "(cached) " >&6 10329else 10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10331/* end confdefs.h. */ 10332#ifdef __cplusplus 10333extern "C" { 10334#endif 10335$ac_includes 10336#ifdef __cplusplus 10337} 10338#endif 10339typedef union { int member; } dummyStruct; 10340#ifdef __cplusplus 10341extern "C" 10342#endif 10343dummyStruct accept(dummyStruct); 10344 10345 10346int 10347main () 10348{ 10349 10350 ; 10351 return 0; 10352} 10353_ACEOF 10354if ac_fn_cxx_try_compile "$LINENO"; then : 10355 eval "ac_cv_prototype_$tmp_save_1=no" 10356else 10357 eval "ac_cv_prototype_$tmp_save_1=yes" 10358fi 10359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10360fi 10361if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10363$as_echo "yes" >&6; } 10364 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 10365 cat >>confdefs.h <<_ACEOF 10366#define $ac_tr_prototype 1 10367_ACEOF 10368 10369 : 10370else 10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10372$as_echo "no" >&6; } 10373fi 10374 10375if test $ac_cv_prototype_accept = yes ; then 10376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if accept() needs int* parameters (in sys/types.h sys/socket.h)" >&5 10377$as_echo_n "checking if accept() needs int* parameters (in sys/types.h sys/socket.h)... " >&6; } 10378 10379ac_includes="" 10380for ac_header in sys/types.h sys/socket.h 10381do 10382 ac_includes="$ac_includes 10383#include<$ac_header>" 10384done 10385if ${ac_cv_prototype_intp_accept+:} false; then : 10386 $as_echo_n "(cached) " >&6 10387else 10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10389/* end confdefs.h. */ 10390#ifdef __cplusplus 10391extern "C" { 10392#endif 10393$ac_includes 10394#ifdef __cplusplus 10395} 10396#endif 10397 10398 10399int 10400main () 10401{ 10402 10403 int i; 10404 struct sockaddr *addr; 10405 size_t addrlen; 10406 10407 addr = 0; 10408 addrlen = 0; 10409 i = accept(1, addr, &addrlen); 10410 10411 ; 10412 return 0; 10413} 10414_ACEOF 10415if ac_fn_cxx_try_compile "$LINENO"; then : 10416 eval "ac_cv_prototype_intp_accept=no" 10417else 10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10419/* end confdefs.h. */ 10420#ifdef __cplusplus 10421extern "C" { 10422#endif 10423$ac_includes 10424#ifdef __cplusplus 10425} 10426#endif 10427 10428 10429int 10430main () 10431{ 10432 10433 int i; 10434 struct sockaddr *addr; 10435 int addrlen; 10436 10437 addr = 0; 10438 addrlen = 0; 10439 i = accept(1, addr, &addrlen); 10440 10441 ; 10442 return 0; 10443} 10444_ACEOF 10445if ac_fn_cxx_try_compile "$LINENO"; then : 10446 eval "ac_cv_prototype_intp_accept=yes" 10447else 10448 eval "ac_cv_prototype_intp_accept=no" 10449fi 10450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10451fi 10452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10453fi 10454 10455if eval "test \"`echo $ac_cv_prototype_intp_accept`\" = yes"; then 10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10457$as_echo "yes" >&6; } 10458 ac_tr_prototype=HAVE_INTP_ACCEPT 10459 cat >>confdefs.h <<_ACEOF 10460#define $ac_tr_prototype 1 10461_ACEOF 10462 10463 : 10464else 10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10466$as_echo "no" >&6; } 10467 10468fi 10469 10470fi 10471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for bind (in sys/types.h sys/socket.h)" >&5 10472$as_echo_n "checking prototype for bind (in sys/types.h sys/socket.h)... " >&6; } 10473 10474: 10475 10476ac_includes="" 10477for ac_header in sys/types.h sys/socket.h 10478do 10479 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 10480 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 10481 ac_includes="$ac_includes 10482#include<$ac_header>" 10483 fi 10484done 10485tmp_save_1=`echo bind | tr ' :' '__'` 10486if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 10487 $as_echo_n "(cached) " >&6 10488else 10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10490/* end confdefs.h. */ 10491#ifdef __cplusplus 10492extern "C" { 10493#endif 10494$ac_includes 10495#ifdef __cplusplus 10496} 10497#endif 10498typedef union { int member; } dummyStruct; 10499#ifdef __cplusplus 10500extern "C" 10501#endif 10502dummyStruct bind(dummyStruct); 10503 10504 10505int 10506main () 10507{ 10508 10509 ; 10510 return 0; 10511} 10512_ACEOF 10513if ac_fn_cxx_try_compile "$LINENO"; then : 10514 eval "ac_cv_prototype_$tmp_save_1=no" 10515else 10516 eval "ac_cv_prototype_$tmp_save_1=yes" 10517fi 10518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10519fi 10520if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10522$as_echo "yes" >&6; } 10523 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 10524 cat >>confdefs.h <<_ACEOF 10525#define $ac_tr_prototype 1 10526_ACEOF 10527 10528 : 10529else 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10531$as_echo "no" >&6; } 10532fi 10533 10534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for bzero (in string.h strings.h libc.h unistd.h stdlib.h)" >&5 10535$as_echo_n "checking prototype for bzero (in string.h strings.h libc.h unistd.h stdlib.h)... " >&6; } 10536 10537: 10538 10539ac_includes="" 10540for ac_header in string.h strings.h libc.h unistd.h stdlib.h 10541do 10542 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 10543 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 10544 ac_includes="$ac_includes 10545#include<$ac_header>" 10546 fi 10547done 10548tmp_save_1=`echo bzero | tr ' :' '__'` 10549if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 10550 $as_echo_n "(cached) " >&6 10551else 10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10553/* end confdefs.h. */ 10554#ifdef __cplusplus 10555extern "C" { 10556#endif 10557$ac_includes 10558#ifdef __cplusplus 10559} 10560#endif 10561typedef union { int member; } dummyStruct; 10562#ifdef __cplusplus 10563extern "C" 10564#endif 10565dummyStruct bzero(dummyStruct); 10566 10567 10568int 10569main () 10570{ 10571 10572 ; 10573 return 0; 10574} 10575_ACEOF 10576if ac_fn_cxx_try_compile "$LINENO"; then : 10577 eval "ac_cv_prototype_$tmp_save_1=no" 10578else 10579 eval "ac_cv_prototype_$tmp_save_1=yes" 10580fi 10581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10582fi 10583if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10585$as_echo "yes" >&6; } 10586 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 10587 cat >>confdefs.h <<_ACEOF 10588#define $ac_tr_prototype 1 10589_ACEOF 10590 10591 : 10592else 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10594$as_echo "no" >&6; } 10595fi 10596 10597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for connect (in sys/types.h sys/socket.h)" >&5 10598$as_echo_n "checking prototype for connect (in sys/types.h sys/socket.h)... " >&6; } 10599 10600: 10601 10602ac_includes="" 10603for ac_header in sys/types.h sys/socket.h 10604do 10605 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 10606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 10607 ac_includes="$ac_includes 10608#include<$ac_header>" 10609 fi 10610done 10611tmp_save_1=`echo connect | tr ' :' '__'` 10612if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 10613 $as_echo_n "(cached) " >&6 10614else 10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10616/* end confdefs.h. */ 10617#ifdef __cplusplus 10618extern "C" { 10619#endif 10620$ac_includes 10621#ifdef __cplusplus 10622} 10623#endif 10624typedef union { int member; } dummyStruct; 10625#ifdef __cplusplus 10626extern "C" 10627#endif 10628dummyStruct connect(dummyStruct); 10629 10630 10631int 10632main () 10633{ 10634 10635 ; 10636 return 0; 10637} 10638_ACEOF 10639if ac_fn_cxx_try_compile "$LINENO"; then : 10640 eval "ac_cv_prototype_$tmp_save_1=no" 10641else 10642 eval "ac_cv_prototype_$tmp_save_1=yes" 10643fi 10644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10645fi 10646if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10648$as_echo "yes" >&6; } 10649 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 10650 cat >>confdefs.h <<_ACEOF 10651#define $ac_tr_prototype 1 10652_ACEOF 10653 10654 : 10655else 10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10657$as_echo "no" >&6; } 10658fi 10659 10660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for finite (in math.h)" >&5 10661$as_echo_n "checking prototype for finite (in math.h)... " >&6; } 10662 10663: 10664 10665ac_includes="" 10666for ac_header in math.h 10667do 10668 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 10669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 10670 ac_includes="$ac_includes 10671#include<$ac_header>" 10672 fi 10673done 10674tmp_save_1=`echo finite | tr ' :' '__'` 10675if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 10676 $as_echo_n "(cached) " >&6 10677else 10678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10679/* end confdefs.h. */ 10680#ifdef __cplusplus 10681extern "C" { 10682#endif 10683$ac_includes 10684#ifdef __cplusplus 10685} 10686#endif 10687typedef union { int member; } dummyStruct; 10688#ifdef __cplusplus 10689extern "C" 10690#endif 10691dummyStruct finite(dummyStruct); 10692 10693 10694int 10695main () 10696{ 10697 10698 ; 10699 return 0; 10700} 10701_ACEOF 10702if ac_fn_cxx_try_compile "$LINENO"; then : 10703 eval "ac_cv_prototype_$tmp_save_1=no" 10704else 10705 eval "ac_cv_prototype_$tmp_save_1=yes" 10706fi 10707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10708fi 10709if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10711$as_echo "yes" >&6; } 10712 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 10713 cat >>confdefs.h <<_ACEOF 10714#define $ac_tr_prototype 1 10715_ACEOF 10716 10717 : 10718else 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10720$as_echo "no" >&6; } 10721fi 10722 10723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for isinf (in math.h)" >&5 10724$as_echo_n "checking prototype for isinf (in math.h)... " >&6; } 10725 10726: 10727 10728ac_includes="" 10729for ac_header in math.h 10730do 10731 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 10732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 10733 ac_includes="$ac_includes 10734#include<$ac_header>" 10735 fi 10736done 10737tmp_save_1=`echo isinf | tr ' :' '__'` 10738if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 10739 $as_echo_n "(cached) " >&6 10740else 10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10742/* end confdefs.h. */ 10743#ifdef __cplusplus 10744extern "C" { 10745#endif 10746$ac_includes 10747#ifdef __cplusplus 10748} 10749#endif 10750typedef union { int member; } dummyStruct; 10751#ifdef __cplusplus 10752extern "C" 10753#endif 10754dummyStruct isinf(dummyStruct); 10755 10756 10757int 10758main () 10759{ 10760 10761 ; 10762 return 0; 10763} 10764_ACEOF 10765if ac_fn_cxx_try_compile "$LINENO"; then : 10766 eval "ac_cv_prototype_$tmp_save_1=no" 10767else 10768 eval "ac_cv_prototype_$tmp_save_1=yes" 10769fi 10770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10771fi 10772if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10774$as_echo "yes" >&6; } 10775 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 10776 cat >>confdefs.h <<_ACEOF 10777#define $ac_tr_prototype 1 10778_ACEOF 10779 10780 : 10781else 10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10783$as_echo "no" >&6; } 10784fi 10785 10786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for isnan (in math.h)" >&5 10787$as_echo_n "checking prototype for isnan (in math.h)... " >&6; } 10788 10789: 10790 10791ac_includes="" 10792for ac_header in math.h 10793do 10794 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 10795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 10796 ac_includes="$ac_includes 10797#include<$ac_header>" 10798 fi 10799done 10800tmp_save_1=`echo isnan | tr ' :' '__'` 10801if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 10802 $as_echo_n "(cached) " >&6 10803else 10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10805/* end confdefs.h. */ 10806#ifdef __cplusplus 10807extern "C" { 10808#endif 10809$ac_includes 10810#ifdef __cplusplus 10811} 10812#endif 10813typedef union { int member; } dummyStruct; 10814#ifdef __cplusplus 10815extern "C" 10816#endif 10817dummyStruct isnan(dummyStruct); 10818 10819 10820int 10821main () 10822{ 10823 10824 ; 10825 return 0; 10826} 10827_ACEOF 10828if ac_fn_cxx_try_compile "$LINENO"; then : 10829 eval "ac_cv_prototype_$tmp_save_1=no" 10830else 10831 eval "ac_cv_prototype_$tmp_save_1=yes" 10832fi 10833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10834fi 10835if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10837$as_echo "yes" >&6; } 10838 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 10839 cat >>confdefs.h <<_ACEOF 10840#define $ac_tr_prototype 1 10841_ACEOF 10842 10843 : 10844else 10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10846$as_echo "no" >&6; } 10847fi 10848 10849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for std::finite (in cmath)" >&5 10850$as_echo_n "checking prototype for std::finite (in cmath)... " >&6; } 10851 10852: 10853 10854ac_includes="" 10855for ac_header in cmath 10856do 10857 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 10858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 10859 ac_includes="$ac_includes 10860#include<$ac_header>" 10861 fi 10862done 10863tmp_save_1=`echo std::finite | tr ' :' '__'` 10864if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 10865 $as_echo_n "(cached) " >&6 10866else 10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10868/* end confdefs.h. */ 10869#ifdef __cplusplus 10870extern "C" { 10871#endif 10872$ac_includes 10873#ifdef __cplusplus 10874} 10875#endif 10876typedef union { int member; } dummyStruct; 10877#ifdef __cplusplus 10878extern "C" 10879#endif 10880dummyStruct std::finite(dummyStruct); 10881 10882 10883int 10884main () 10885{ 10886 10887 ; 10888 return 0; 10889} 10890_ACEOF 10891if ac_fn_cxx_try_compile "$LINENO"; then : 10892 eval "ac_cv_prototype_$tmp_save_1=no" 10893else 10894 eval "ac_cv_prototype_$tmp_save_1=yes" 10895fi 10896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10897fi 10898if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10900$as_echo "yes" >&6; } 10901 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 10902 cat >>confdefs.h <<_ACEOF 10903#define $ac_tr_prototype 1 10904_ACEOF 10905 10906 : 10907else 10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10909$as_echo "no" >&6; } 10910fi 10911 10912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for std::isinf (in cmath)" >&5 10913$as_echo_n "checking prototype for std::isinf (in cmath)... " >&6; } 10914 10915: 10916 10917ac_includes="" 10918for ac_header in cmath 10919do 10920 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 10921 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 10922 ac_includes="$ac_includes 10923#include<$ac_header>" 10924 fi 10925done 10926tmp_save_1=`echo std::isinf | tr ' :' '__'` 10927if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 10928 $as_echo_n "(cached) " >&6 10929else 10930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10931/* end confdefs.h. */ 10932#ifdef __cplusplus 10933extern "C" { 10934#endif 10935$ac_includes 10936#ifdef __cplusplus 10937} 10938#endif 10939typedef union { int member; } dummyStruct; 10940#ifdef __cplusplus 10941extern "C" 10942#endif 10943dummyStruct std::isinf(dummyStruct); 10944 10945 10946int 10947main () 10948{ 10949 10950 ; 10951 return 0; 10952} 10953_ACEOF 10954if ac_fn_cxx_try_compile "$LINENO"; then : 10955 eval "ac_cv_prototype_$tmp_save_1=no" 10956else 10957 eval "ac_cv_prototype_$tmp_save_1=yes" 10958fi 10959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10960fi 10961if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10963$as_echo "yes" >&6; } 10964 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 10965 cat >>confdefs.h <<_ACEOF 10966#define $ac_tr_prototype 1 10967_ACEOF 10968 10969 : 10970else 10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10972$as_echo "no" >&6; } 10973fi 10974 10975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for std::isnan (in cmath)" >&5 10976$as_echo_n "checking prototype for std::isnan (in cmath)... " >&6; } 10977 10978: 10979 10980ac_includes="" 10981for ac_header in cmath 10982do 10983 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 10984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 10985 ac_includes="$ac_includes 10986#include<$ac_header>" 10987 fi 10988done 10989tmp_save_1=`echo std::isnan | tr ' :' '__'` 10990if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 10991 $as_echo_n "(cached) " >&6 10992else 10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10994/* end confdefs.h. */ 10995#ifdef __cplusplus 10996extern "C" { 10997#endif 10998$ac_includes 10999#ifdef __cplusplus 11000} 11001#endif 11002typedef union { int member; } dummyStruct; 11003#ifdef __cplusplus 11004extern "C" 11005#endif 11006dummyStruct std::isnan(dummyStruct); 11007 11008 11009int 11010main () 11011{ 11012 11013 ; 11014 return 0; 11015} 11016_ACEOF 11017if ac_fn_cxx_try_compile "$LINENO"; then : 11018 eval "ac_cv_prototype_$tmp_save_1=no" 11019else 11020 eval "ac_cv_prototype_$tmp_save_1=yes" 11021fi 11022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11023fi 11024if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11026$as_echo "yes" >&6; } 11027 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 11028 cat >>confdefs.h <<_ACEOF 11029#define $ac_tr_prototype 1 11030_ACEOF 11031 11032 : 11033else 11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11035$as_echo "no" >&6; } 11036fi 11037 11038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for flock (in sys/file.h)" >&5 11039$as_echo_n "checking prototype for flock (in sys/file.h)... " >&6; } 11040 11041: 11042 11043ac_includes="" 11044for ac_header in sys/file.h 11045do 11046 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 11047 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 11048 ac_includes="$ac_includes 11049#include<$ac_header>" 11050 fi 11051done 11052tmp_save_1=`echo flock | tr ' :' '__'` 11053if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 11054 $as_echo_n "(cached) " >&6 11055else 11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11057/* end confdefs.h. */ 11058#ifdef __cplusplus 11059extern "C" { 11060#endif 11061$ac_includes 11062#ifdef __cplusplus 11063} 11064#endif 11065typedef union { int member; } dummyStruct; 11066#ifdef __cplusplus 11067extern "C" 11068#endif 11069dummyStruct flock(dummyStruct); 11070 11071 11072int 11073main () 11074{ 11075 11076 ; 11077 return 0; 11078} 11079_ACEOF 11080if ac_fn_cxx_try_compile "$LINENO"; then : 11081 eval "ac_cv_prototype_$tmp_save_1=no" 11082else 11083 eval "ac_cv_prototype_$tmp_save_1=yes" 11084fi 11085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11086fi 11087if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11089$as_echo "yes" >&6; } 11090 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 11091 cat >>confdefs.h <<_ACEOF 11092#define $ac_tr_prototype 1 11093_ACEOF 11094 11095 : 11096else 11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11098$as_echo "no" >&6; } 11099fi 11100 11101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for gethostbyname (in libc.h unistd.h stdlib.h netdb.h)" >&5 11102$as_echo_n "checking prototype for gethostbyname (in libc.h unistd.h stdlib.h netdb.h)... " >&6; } 11103 11104: 11105 11106ac_includes="" 11107for ac_header in libc.h unistd.h stdlib.h netdb.h 11108do 11109 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 11110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 11111 ac_includes="$ac_includes 11112#include<$ac_header>" 11113 fi 11114done 11115tmp_save_1=`echo gethostbyname | tr ' :' '__'` 11116if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 11117 $as_echo_n "(cached) " >&6 11118else 11119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11120/* end confdefs.h. */ 11121#ifdef __cplusplus 11122extern "C" { 11123#endif 11124$ac_includes 11125#ifdef __cplusplus 11126} 11127#endif 11128typedef union { int member; } dummyStruct; 11129#ifdef __cplusplus 11130extern "C" 11131#endif 11132dummyStruct gethostbyname(dummyStruct); 11133 11134 11135int 11136main () 11137{ 11138 11139 ; 11140 return 0; 11141} 11142_ACEOF 11143if ac_fn_cxx_try_compile "$LINENO"; then : 11144 eval "ac_cv_prototype_$tmp_save_1=no" 11145else 11146 eval "ac_cv_prototype_$tmp_save_1=yes" 11147fi 11148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11149fi 11150if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11152$as_echo "yes" >&6; } 11153 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 11154 cat >>confdefs.h <<_ACEOF 11155#define $ac_tr_prototype 1 11156_ACEOF 11157 11158 : 11159else 11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11161$as_echo "no" >&6; } 11162fi 11163 11164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for gethostbyname_r (in libc.h unistd.h stdlib.h netdb.h)" >&5 11165$as_echo_n "checking prototype for gethostbyname_r (in libc.h unistd.h stdlib.h netdb.h)... " >&6; } 11166 11167: 11168 11169ac_includes="" 11170for ac_header in libc.h unistd.h stdlib.h netdb.h 11171do 11172 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 11173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 11174 ac_includes="$ac_includes 11175#include<$ac_header>" 11176 fi 11177done 11178tmp_save_1=`echo gethostbyname_r | tr ' :' '__'` 11179if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 11180 $as_echo_n "(cached) " >&6 11181else 11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11183/* end confdefs.h. */ 11184#ifdef __cplusplus 11185extern "C" { 11186#endif 11187$ac_includes 11188#ifdef __cplusplus 11189} 11190#endif 11191typedef union { int member; } dummyStruct; 11192#ifdef __cplusplus 11193extern "C" 11194#endif 11195dummyStruct gethostbyname_r(dummyStruct); 11196 11197 11198int 11199main () 11200{ 11201 11202 ; 11203 return 0; 11204} 11205_ACEOF 11206if ac_fn_cxx_try_compile "$LINENO"; then : 11207 eval "ac_cv_prototype_$tmp_save_1=no" 11208else 11209 eval "ac_cv_prototype_$tmp_save_1=yes" 11210fi 11211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11212fi 11213if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11215$as_echo "yes" >&6; } 11216 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 11217 cat >>confdefs.h <<_ACEOF 11218#define $ac_tr_prototype 1 11219_ACEOF 11220 11221 : 11222else 11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11224$as_echo "no" >&6; } 11225fi 11226 11227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for gethostbyaddr_r (in libc.h unistd.h stdlib.h netdb.h)" >&5 11228$as_echo_n "checking prototype for gethostbyaddr_r (in libc.h unistd.h stdlib.h netdb.h)... " >&6; } 11229 11230: 11231 11232ac_includes="" 11233for ac_header in libc.h unistd.h stdlib.h netdb.h 11234do 11235 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 11236 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 11237 ac_includes="$ac_includes 11238#include<$ac_header>" 11239 fi 11240done 11241tmp_save_1=`echo gethostbyaddr_r | tr ' :' '__'` 11242if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 11243 $as_echo_n "(cached) " >&6 11244else 11245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11246/* end confdefs.h. */ 11247#ifdef __cplusplus 11248extern "C" { 11249#endif 11250$ac_includes 11251#ifdef __cplusplus 11252} 11253#endif 11254typedef union { int member; } dummyStruct; 11255#ifdef __cplusplus 11256extern "C" 11257#endif 11258dummyStruct gethostbyaddr_r(dummyStruct); 11259 11260 11261int 11262main () 11263{ 11264 11265 ; 11266 return 0; 11267} 11268_ACEOF 11269if ac_fn_cxx_try_compile "$LINENO"; then : 11270 eval "ac_cv_prototype_$tmp_save_1=no" 11271else 11272 eval "ac_cv_prototype_$tmp_save_1=yes" 11273fi 11274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11275fi 11276if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11278$as_echo "yes" >&6; } 11279 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 11280 cat >>confdefs.h <<_ACEOF 11281#define $ac_tr_prototype 1 11282_ACEOF 11283 11284 : 11285else 11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11287$as_echo "no" >&6; } 11288fi 11289 11290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for gethostid (in libc.h unistd.h stdlib.h netdb.h)" >&5 11291$as_echo_n "checking prototype for gethostid (in libc.h unistd.h stdlib.h netdb.h)... " >&6; } 11292 11293: 11294 11295ac_includes="" 11296for ac_header in libc.h unistd.h stdlib.h netdb.h 11297do 11298 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 11299 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 11300 ac_includes="$ac_includes 11301#include<$ac_header>" 11302 fi 11303done 11304tmp_save_1=`echo gethostid | tr ' :' '__'` 11305if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 11306 $as_echo_n "(cached) " >&6 11307else 11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11309/* end confdefs.h. */ 11310#ifdef __cplusplus 11311extern "C" { 11312#endif 11313$ac_includes 11314#ifdef __cplusplus 11315} 11316#endif 11317typedef union { int member; } dummyStruct; 11318#ifdef __cplusplus 11319extern "C" 11320#endif 11321dummyStruct gethostid(dummyStruct); 11322 11323 11324int 11325main () 11326{ 11327 11328 ; 11329 return 0; 11330} 11331_ACEOF 11332if ac_fn_cxx_try_compile "$LINENO"; then : 11333 eval "ac_cv_prototype_$tmp_save_1=no" 11334else 11335 eval "ac_cv_prototype_$tmp_save_1=yes" 11336fi 11337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11338fi 11339if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11341$as_echo "yes" >&6; } 11342 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 11343 cat >>confdefs.h <<_ACEOF 11344#define $ac_tr_prototype 1 11345_ACEOF 11346 11347 : 11348else 11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11350$as_echo "no" >&6; } 11351fi 11352 11353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for gethostname (in unistd.h libc.h stdlib.h netdb.h)" >&5 11354$as_echo_n "checking prototype for gethostname (in unistd.h libc.h stdlib.h netdb.h)... " >&6; } 11355 11356: 11357 11358ac_includes="" 11359for ac_header in unistd.h libc.h stdlib.h netdb.h 11360do 11361 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 11362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 11363 ac_includes="$ac_includes 11364#include<$ac_header>" 11365 fi 11366done 11367tmp_save_1=`echo gethostname | tr ' :' '__'` 11368if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 11369 $as_echo_n "(cached) " >&6 11370else 11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11372/* end confdefs.h. */ 11373#ifdef __cplusplus 11374extern "C" { 11375#endif 11376$ac_includes 11377#ifdef __cplusplus 11378} 11379#endif 11380typedef union { int member; } dummyStruct; 11381#ifdef __cplusplus 11382extern "C" 11383#endif 11384dummyStruct gethostname(dummyStruct); 11385 11386 11387int 11388main () 11389{ 11390 11391 ; 11392 return 0; 11393} 11394_ACEOF 11395if ac_fn_cxx_try_compile "$LINENO"; then : 11396 eval "ac_cv_prototype_$tmp_save_1=no" 11397else 11398 eval "ac_cv_prototype_$tmp_save_1=yes" 11399fi 11400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11401fi 11402if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11404$as_echo "yes" >&6; } 11405 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 11406 cat >>confdefs.h <<_ACEOF 11407#define $ac_tr_prototype 1 11408_ACEOF 11409 11410 : 11411else 11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11413$as_echo "no" >&6; } 11414fi 11415 11416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for getsockname (in sys/types.h sys/socket.h)" >&5 11417$as_echo_n "checking prototype for getsockname (in sys/types.h sys/socket.h)... " >&6; } 11418 11419: 11420 11421ac_includes="" 11422for ac_header in sys/types.h sys/socket.h 11423do 11424 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 11425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 11426 ac_includes="$ac_includes 11427#include<$ac_header>" 11428 fi 11429done 11430tmp_save_1=`echo getsockname | tr ' :' '__'` 11431if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 11432 $as_echo_n "(cached) " >&6 11433else 11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11435/* end confdefs.h. */ 11436#ifdef __cplusplus 11437extern "C" { 11438#endif 11439$ac_includes 11440#ifdef __cplusplus 11441} 11442#endif 11443typedef union { int member; } dummyStruct; 11444#ifdef __cplusplus 11445extern "C" 11446#endif 11447dummyStruct getsockname(dummyStruct); 11448 11449 11450int 11451main () 11452{ 11453 11454 ; 11455 return 0; 11456} 11457_ACEOF 11458if ac_fn_cxx_try_compile "$LINENO"; then : 11459 eval "ac_cv_prototype_$tmp_save_1=no" 11460else 11461 eval "ac_cv_prototype_$tmp_save_1=yes" 11462fi 11463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11464fi 11465if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11467$as_echo "yes" >&6; } 11468 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 11469 cat >>confdefs.h <<_ACEOF 11470#define $ac_tr_prototype 1 11471_ACEOF 11472 11473 : 11474else 11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11476$as_echo "no" >&6; } 11477fi 11478 11479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for getsockopt (in sys/types.h sys/socket.h)" >&5 11480$as_echo_n "checking prototype for getsockopt (in sys/types.h sys/socket.h)... " >&6; } 11481 11482: 11483 11484ac_includes="" 11485for ac_header in sys/types.h sys/socket.h 11486do 11487 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 11488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 11489 ac_includes="$ac_includes 11490#include<$ac_header>" 11491 fi 11492done 11493tmp_save_1=`echo getsockopt | tr ' :' '__'` 11494if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 11495 $as_echo_n "(cached) " >&6 11496else 11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11498/* end confdefs.h. */ 11499#ifdef __cplusplus 11500extern "C" { 11501#endif 11502$ac_includes 11503#ifdef __cplusplus 11504} 11505#endif 11506typedef union { int member; } dummyStruct; 11507#ifdef __cplusplus 11508extern "C" 11509#endif 11510dummyStruct getsockopt(dummyStruct); 11511 11512 11513int 11514main () 11515{ 11516 11517 ; 11518 return 0; 11519} 11520_ACEOF 11521if ac_fn_cxx_try_compile "$LINENO"; then : 11522 eval "ac_cv_prototype_$tmp_save_1=no" 11523else 11524 eval "ac_cv_prototype_$tmp_save_1=yes" 11525fi 11526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11527fi 11528if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11530$as_echo "yes" >&6; } 11531 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 11532 cat >>confdefs.h <<_ACEOF 11533#define $ac_tr_prototype 1 11534_ACEOF 11535 11536 : 11537else 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11539$as_echo "no" >&6; } 11540fi 11541 11542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for strerror_r (in string.h)" >&5 11543$as_echo_n "checking prototype for strerror_r (in string.h)... " >&6; } 11544 11545: 11546 11547ac_includes="" 11548for ac_header in string.h 11549do 11550 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 11551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 11552 ac_includes="$ac_includes 11553#include<$ac_header>" 11554 fi 11555done 11556tmp_save_1=`echo strerror_r | tr ' :' '__'` 11557if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 11558 $as_echo_n "(cached) " >&6 11559else 11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11561/* end confdefs.h. */ 11562#ifdef __cplusplus 11563extern "C" { 11564#endif 11565$ac_includes 11566#ifdef __cplusplus 11567} 11568#endif 11569typedef union { int member; } dummyStruct; 11570#ifdef __cplusplus 11571extern "C" 11572#endif 11573dummyStruct strerror_r(dummyStruct); 11574 11575 11576int 11577main () 11578{ 11579 11580 ; 11581 return 0; 11582} 11583_ACEOF 11584if ac_fn_cxx_try_compile "$LINENO"; then : 11585 eval "ac_cv_prototype_$tmp_save_1=no" 11586else 11587 eval "ac_cv_prototype_$tmp_save_1=yes" 11588fi 11589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11590fi 11591if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11593$as_echo "yes" >&6; } 11594 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 11595 cat >>confdefs.h <<_ACEOF 11596#define $ac_tr_prototype 1 11597_ACEOF 11598 11599 : 11600else 11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11602$as_echo "no" >&6; } 11603fi 11604 11605if test $ac_cv_prototype_strerror_r = yes ; then 11606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r() returns a char * (in string.h)" >&5 11607$as_echo_n "checking if strerror_r() returns a char * (in string.h)... " >&6; } 11608 11609ac_includes="" 11610for ac_header in string.h 11611do 11612 ac_includes="$ac_includes 11613#include<$ac_header>" 11614done 11615if ${ac_cv_prototype_charp_strerror_r+:} false; then : 11616 $as_echo_n "(cached) " >&6 11617else 11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11619/* end confdefs.h. */ 11620#ifdef __cplusplus 11621extern "C" { 11622#endif 11623$ac_includes 11624#ifdef __cplusplus 11625} 11626#endif 11627 11628 11629int 11630main () 11631{ 11632 11633 char *buf = 0; 11634 int i = strerror_r(0, buf, 100) 11635 11636 ; 11637 return 0; 11638} 11639_ACEOF 11640if ac_fn_cxx_try_compile "$LINENO"; then : 11641 eval "ac_cv_prototype_charp_strerror_r=no" 11642else 11643 eval "ac_cv_prototype_charp_strerror_r=yes" 11644 11645fi 11646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11647fi 11648 11649if eval "test \"`echo $ac_cv_prototype_charp_strerror_r`\" = yes"; then 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11651$as_echo "yes" >&6; } 11652 ac_tr_prototype=HAVE_CHARP_STRERROR_R 11653 cat >>confdefs.h <<_ACEOF 11654#define $ac_tr_prototype 1 11655_ACEOF 11656 11657 : 11658else 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11660$as_echo "no" >&6; } 11661 11662fi 11663 11664fi 11665if test $ac_cv_prototype_getsockopt = yes ; then 11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockopt() needs int* parameters (in sys/types.h sys/socket.h)" >&5 11667$as_echo_n "checking if getsockopt() needs int* parameters (in sys/types.h sys/socket.h)... " >&6; } 11668 11669ac_includes="" 11670for ac_header in sys/types.h sys/socket.h 11671do 11672 ac_includes="$ac_includes 11673#include<$ac_header>" 11674done 11675if ${ac_cv_prototype_intp_getsockopt+:} false; then : 11676 $as_echo_n "(cached) " >&6 11677else 11678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11679/* end confdefs.h. */ 11680#ifdef __cplusplus 11681extern "C" { 11682#endif 11683$ac_includes 11684#ifdef __cplusplus 11685} 11686#endif 11687 11688 11689int 11690main () 11691{ 11692 11693 int i; 11694 size_t optlen; 11695 i = getsockopt(0, 0, 0, 0, &optlen); 11696 11697 ; 11698 return 0; 11699} 11700_ACEOF 11701if ac_fn_cxx_try_compile "$LINENO"; then : 11702 eval "ac_cv_prototype_intp_getsockopt=no" 11703else 11704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11705/* end confdefs.h. */ 11706#ifdef __cplusplus 11707extern "C" { 11708#endif 11709$ac_includes 11710#ifdef __cplusplus 11711} 11712#endif 11713 11714 11715int 11716main () 11717{ 11718 11719 int i; 11720 int optlen; 11721 i = getsockopt(0, 0, 0, 0, &optlen); 11722 11723 ; 11724 return 0; 11725} 11726_ACEOF 11727if ac_fn_cxx_try_compile "$LINENO"; then : 11728 eval "ac_cv_prototype_intp_getsockopt=yes" 11729else 11730 eval "ac_cv_prototype_intp_getsockopt=no" 11731fi 11732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11733fi 11734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11735fi 11736 11737if eval "test \"`echo $ac_cv_prototype_intp_getsockopt`\" = yes"; then 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11739$as_echo "yes" >&6; } 11740 ac_tr_prototype=HAVE_INTP_GETSOCKOPT 11741 cat >>confdefs.h <<_ACEOF 11742#define $ac_tr_prototype 1 11743_ACEOF 11744 11745 : 11746else 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11748$as_echo "no" >&6; } 11749 11750fi 11751 11752fi 11753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for gettimeofday (in sys/time.h unistd.h)" >&5 11754$as_echo_n "checking prototype for gettimeofday (in sys/time.h unistd.h)... " >&6; } 11755 11756: 11757 11758ac_includes="" 11759for ac_header in sys/time.h unistd.h 11760do 11761 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 11762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 11763 ac_includes="$ac_includes 11764#include<$ac_header>" 11765 fi 11766done 11767tmp_save_1=`echo gettimeofday | tr ' :' '__'` 11768if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 11769 $as_echo_n "(cached) " >&6 11770else 11771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11772/* end confdefs.h. */ 11773#ifdef __cplusplus 11774extern "C" { 11775#endif 11776$ac_includes 11777#ifdef __cplusplus 11778} 11779#endif 11780typedef union { int member; } dummyStruct; 11781#ifdef __cplusplus 11782extern "C" 11783#endif 11784dummyStruct gettimeofday(dummyStruct); 11785 11786 11787int 11788main () 11789{ 11790 11791 ; 11792 return 0; 11793} 11794_ACEOF 11795if ac_fn_cxx_try_compile "$LINENO"; then : 11796 eval "ac_cv_prototype_$tmp_save_1=no" 11797else 11798 eval "ac_cv_prototype_$tmp_save_1=yes" 11799fi 11800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11801fi 11802if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11804$as_echo "yes" >&6; } 11805 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 11806 cat >>confdefs.h <<_ACEOF 11807#define $ac_tr_prototype 1 11808_ACEOF 11809 11810 : 11811else 11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11813$as_echo "no" >&6; } 11814fi 11815 11816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for listen (in sys/types.h sys/socket.h)" >&5 11817$as_echo_n "checking prototype for listen (in sys/types.h sys/socket.h)... " >&6; } 11818 11819: 11820 11821ac_includes="" 11822for ac_header in sys/types.h sys/socket.h 11823do 11824 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 11825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 11826 ac_includes="$ac_includes 11827#include<$ac_header>" 11828 fi 11829done 11830tmp_save_1=`echo listen | tr ' :' '__'` 11831if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 11832 $as_echo_n "(cached) " >&6 11833else 11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11835/* end confdefs.h. */ 11836#ifdef __cplusplus 11837extern "C" { 11838#endif 11839$ac_includes 11840#ifdef __cplusplus 11841} 11842#endif 11843typedef union { int member; } dummyStruct; 11844#ifdef __cplusplus 11845extern "C" 11846#endif 11847dummyStruct listen(dummyStruct); 11848 11849 11850int 11851main () 11852{ 11853 11854 ; 11855 return 0; 11856} 11857_ACEOF 11858if ac_fn_cxx_try_compile "$LINENO"; then : 11859 eval "ac_cv_prototype_$tmp_save_1=no" 11860else 11861 eval "ac_cv_prototype_$tmp_save_1=yes" 11862fi 11863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11864fi 11865if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11867$as_echo "yes" >&6; } 11868 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 11869 cat >>confdefs.h <<_ACEOF 11870#define $ac_tr_prototype 1 11871_ACEOF 11872 11873 : 11874else 11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11876$as_echo "no" >&6; } 11877fi 11878 11879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for mktemp (in libc.h unistd.h stdlib.h)" >&5 11880$as_echo_n "checking prototype for mktemp (in libc.h unistd.h stdlib.h)... " >&6; } 11881 11882: 11883 11884ac_includes="" 11885for ac_header in libc.h unistd.h stdlib.h 11886do 11887 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 11888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 11889 ac_includes="$ac_includes 11890#include<$ac_header>" 11891 fi 11892done 11893tmp_save_1=`echo mktemp | tr ' :' '__'` 11894if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 11895 $as_echo_n "(cached) " >&6 11896else 11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11898/* end confdefs.h. */ 11899#ifdef __cplusplus 11900extern "C" { 11901#endif 11902$ac_includes 11903#ifdef __cplusplus 11904} 11905#endif 11906typedef union { int member; } dummyStruct; 11907#ifdef __cplusplus 11908extern "C" 11909#endif 11910dummyStruct mktemp(dummyStruct); 11911 11912 11913int 11914main () 11915{ 11916 11917 ; 11918 return 0; 11919} 11920_ACEOF 11921if ac_fn_cxx_try_compile "$LINENO"; then : 11922 eval "ac_cv_prototype_$tmp_save_1=no" 11923else 11924 eval "ac_cv_prototype_$tmp_save_1=yes" 11925fi 11926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11927fi 11928if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11930$as_echo "yes" >&6; } 11931 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 11932 cat >>confdefs.h <<_ACEOF 11933#define $ac_tr_prototype 1 11934_ACEOF 11935 11936 : 11937else 11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11939$as_echo "no" >&6; } 11940fi 11941 11942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for mkstemp (in libc.h unistd.h stdlib.h)" >&5 11943$as_echo_n "checking prototype for mkstemp (in libc.h unistd.h stdlib.h)... " >&6; } 11944 11945: 11946 11947ac_includes="" 11948for ac_header in libc.h unistd.h stdlib.h 11949do 11950 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 11951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 11952 ac_includes="$ac_includes 11953#include<$ac_header>" 11954 fi 11955done 11956tmp_save_1=`echo mkstemp | tr ' :' '__'` 11957if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 11958 $as_echo_n "(cached) " >&6 11959else 11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11961/* end confdefs.h. */ 11962#ifdef __cplusplus 11963extern "C" { 11964#endif 11965$ac_includes 11966#ifdef __cplusplus 11967} 11968#endif 11969typedef union { int member; } dummyStruct; 11970#ifdef __cplusplus 11971extern "C" 11972#endif 11973dummyStruct mkstemp(dummyStruct); 11974 11975 11976int 11977main () 11978{ 11979 11980 ; 11981 return 0; 11982} 11983_ACEOF 11984if ac_fn_cxx_try_compile "$LINENO"; then : 11985 eval "ac_cv_prototype_$tmp_save_1=no" 11986else 11987 eval "ac_cv_prototype_$tmp_save_1=yes" 11988fi 11989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11990fi 11991if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11993$as_echo "yes" >&6; } 11994 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 11995 cat >>confdefs.h <<_ACEOF 11996#define $ac_tr_prototype 1 11997_ACEOF 11998 11999 : 12000else 12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12002$as_echo "no" >&6; } 12003fi 12004 12005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for select (in sys/select.h sys/types.h sys/socket.h sys/time.h)" >&5 12006$as_echo_n "checking prototype for select (in sys/select.h sys/types.h sys/socket.h sys/time.h)... " >&6; } 12007 12008: 12009 12010ac_includes="" 12011for ac_header in sys/select.h sys/types.h sys/socket.h sys/time.h 12012do 12013 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 12014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 12015 ac_includes="$ac_includes 12016#include<$ac_header>" 12017 fi 12018done 12019tmp_save_1=`echo select | tr ' :' '__'` 12020if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 12021 $as_echo_n "(cached) " >&6 12022else 12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12024/* end confdefs.h. */ 12025#ifdef __cplusplus 12026extern "C" { 12027#endif 12028$ac_includes 12029#ifdef __cplusplus 12030} 12031#endif 12032typedef union { int member; } dummyStruct; 12033#ifdef __cplusplus 12034extern "C" 12035#endif 12036dummyStruct select(dummyStruct); 12037 12038 12039int 12040main () 12041{ 12042 12043 ; 12044 return 0; 12045} 12046_ACEOF 12047if ac_fn_cxx_try_compile "$LINENO"; then : 12048 eval "ac_cv_prototype_$tmp_save_1=no" 12049else 12050 eval "ac_cv_prototype_$tmp_save_1=yes" 12051fi 12052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12053fi 12054if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12056$as_echo "yes" >&6; } 12057 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 12058 cat >>confdefs.h <<_ACEOF 12059#define $ac_tr_prototype 1 12060_ACEOF 12061 12062 : 12063else 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12065$as_echo "no" >&6; } 12066fi 12067 12068if test $ac_cv_prototype_select = yes ; then 12069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs int* parameters (in sys/select.h sys/types.h sys/socket.h sys/time.h)" >&5 12070$as_echo_n "checking if select() needs int* parameters (in sys/select.h sys/types.h sys/socket.h sys/time.h)... " >&6; } 12071 12072ac_includes="" 12073for ac_header in sys/select.h sys/types.h sys/socket.h sys/time.h 12074do 12075 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 12076 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 12077 ac_includes="$ac_includes 12078#include<$ac_header>" 12079 fi 12080done 12081if ${ac_cv_prototype_intp_select+:} false; then : 12082 $as_echo_n "(cached) " >&6 12083else 12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12085/* end confdefs.h. */ 12086#ifdef __cplusplus 12087extern "C" { 12088#endif 12089$ac_includes 12090#ifdef __cplusplus 12091} 12092#endif 12093 12094 12095int 12096main () 12097{ 12098 12099 int i; 12100 fd_set fds; 12101 i = select(1, &fds, &fds, &fds, NULL); 12102 12103 ; 12104 return 0; 12105} 12106_ACEOF 12107if ac_fn_cxx_try_compile "$LINENO"; then : 12108 eval "ac_cv_prototype_intp_select=no" 12109else 12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12111/* end confdefs.h. */ 12112#ifdef __cplusplus 12113extern "C" { 12114#endif 12115$ac_includes 12116#ifdef __cplusplus 12117} 12118#endif 12119 12120 12121int 12122main () 12123{ 12124 12125 int i; 12126 int fds; 12127 i = select(1, &fds, &fds, &fds, NULL); 12128 12129 ; 12130 return 0; 12131} 12132_ACEOF 12133if ac_fn_cxx_try_compile "$LINENO"; then : 12134 eval "ac_cv_prototype_intp_select=yes" 12135else 12136 eval "ac_cv_prototype_intp_select=no" 12137fi 12138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12139fi 12140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12141fi 12142 12143if eval "test \"`echo $ac_cv_prototype_intp_select`\" = yes"; then 12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12145$as_echo "yes" >&6; } 12146 ac_tr_prototype=HAVE_INTP_SELECT 12147 cat >>confdefs.h <<_ACEOF 12148#define $ac_tr_prototype 1 12149_ACEOF 12150 12151 : 12152else 12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12154$as_echo "no" >&6; } 12155 12156fi 12157 12158fi 12159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for setsockopt (in sys/types.h sys/socket.h)" >&5 12160$as_echo_n "checking prototype for setsockopt (in sys/types.h sys/socket.h)... " >&6; } 12161 12162: 12163 12164ac_includes="" 12165for ac_header in sys/types.h sys/socket.h 12166do 12167 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 12168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 12169 ac_includes="$ac_includes 12170#include<$ac_header>" 12171 fi 12172done 12173tmp_save_1=`echo setsockopt | tr ' :' '__'` 12174if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 12175 $as_echo_n "(cached) " >&6 12176else 12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12178/* end confdefs.h. */ 12179#ifdef __cplusplus 12180extern "C" { 12181#endif 12182$ac_includes 12183#ifdef __cplusplus 12184} 12185#endif 12186typedef union { int member; } dummyStruct; 12187#ifdef __cplusplus 12188extern "C" 12189#endif 12190dummyStruct setsockopt(dummyStruct); 12191 12192 12193int 12194main () 12195{ 12196 12197 ; 12198 return 0; 12199} 12200_ACEOF 12201if ac_fn_cxx_try_compile "$LINENO"; then : 12202 eval "ac_cv_prototype_$tmp_save_1=no" 12203else 12204 eval "ac_cv_prototype_$tmp_save_1=yes" 12205fi 12206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12207fi 12208if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12210$as_echo "yes" >&6; } 12211 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 12212 cat >>confdefs.h <<_ACEOF 12213#define $ac_tr_prototype 1 12214_ACEOF 12215 12216 : 12217else 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12219$as_echo "no" >&6; } 12220fi 12221 12222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for socket (in sys/types.h sys/socket.h)" >&5 12223$as_echo_n "checking prototype for socket (in sys/types.h sys/socket.h)... " >&6; } 12224 12225: 12226 12227ac_includes="" 12228for ac_header in sys/types.h sys/socket.h 12229do 12230 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 12231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 12232 ac_includes="$ac_includes 12233#include<$ac_header>" 12234 fi 12235done 12236tmp_save_1=`echo socket | tr ' :' '__'` 12237if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 12238 $as_echo_n "(cached) " >&6 12239else 12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12241/* end confdefs.h. */ 12242#ifdef __cplusplus 12243extern "C" { 12244#endif 12245$ac_includes 12246#ifdef __cplusplus 12247} 12248#endif 12249typedef union { int member; } dummyStruct; 12250#ifdef __cplusplus 12251extern "C" 12252#endif 12253dummyStruct socket(dummyStruct); 12254 12255 12256int 12257main () 12258{ 12259 12260 ; 12261 return 0; 12262} 12263_ACEOF 12264if ac_fn_cxx_try_compile "$LINENO"; then : 12265 eval "ac_cv_prototype_$tmp_save_1=no" 12266else 12267 eval "ac_cv_prototype_$tmp_save_1=yes" 12268fi 12269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12270fi 12271if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12273$as_echo "yes" >&6; } 12274 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 12275 cat >>confdefs.h <<_ACEOF 12276#define $ac_tr_prototype 1 12277_ACEOF 12278 12279 : 12280else 12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12282$as_echo "no" >&6; } 12283fi 12284 12285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for strcasecmp (in string.h)" >&5 12286$as_echo_n "checking prototype for strcasecmp (in string.h)... " >&6; } 12287 12288: 12289 12290ac_includes="" 12291for ac_header in string.h 12292do 12293 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 12294 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 12295 ac_includes="$ac_includes 12296#include<$ac_header>" 12297 fi 12298done 12299tmp_save_1=`echo strcasecmp | tr ' :' '__'` 12300if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 12301 $as_echo_n "(cached) " >&6 12302else 12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12304/* end confdefs.h. */ 12305#ifdef __cplusplus 12306extern "C" { 12307#endif 12308$ac_includes 12309#ifdef __cplusplus 12310} 12311#endif 12312typedef union { int member; } dummyStruct; 12313#ifdef __cplusplus 12314extern "C" 12315#endif 12316dummyStruct strcasecmp(dummyStruct); 12317 12318 12319int 12320main () 12321{ 12322 12323 ; 12324 return 0; 12325} 12326_ACEOF 12327if ac_fn_cxx_try_compile "$LINENO"; then : 12328 eval "ac_cv_prototype_$tmp_save_1=no" 12329else 12330 eval "ac_cv_prototype_$tmp_save_1=yes" 12331fi 12332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12333fi 12334if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12336$as_echo "yes" >&6; } 12337 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 12338 cat >>confdefs.h <<_ACEOF 12339#define $ac_tr_prototype 1 12340_ACEOF 12341 12342 : 12343else 12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12345$as_echo "no" >&6; } 12346fi 12347 12348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for strncasecmp (in string.h)" >&5 12349$as_echo_n "checking prototype for strncasecmp (in string.h)... " >&6; } 12350 12351: 12352 12353ac_includes="" 12354for ac_header in string.h 12355do 12356 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 12357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 12358 ac_includes="$ac_includes 12359#include<$ac_header>" 12360 fi 12361done 12362tmp_save_1=`echo strncasecmp | tr ' :' '__'` 12363if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 12364 $as_echo_n "(cached) " >&6 12365else 12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12367/* end confdefs.h. */ 12368#ifdef __cplusplus 12369extern "C" { 12370#endif 12371$ac_includes 12372#ifdef __cplusplus 12373} 12374#endif 12375typedef union { int member; } dummyStruct; 12376#ifdef __cplusplus 12377extern "C" 12378#endif 12379dummyStruct strncasecmp(dummyStruct); 12380 12381 12382int 12383main () 12384{ 12385 12386 ; 12387 return 0; 12388} 12389_ACEOF 12390if ac_fn_cxx_try_compile "$LINENO"; then : 12391 eval "ac_cv_prototype_$tmp_save_1=no" 12392else 12393 eval "ac_cv_prototype_$tmp_save_1=yes" 12394fi 12395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12396fi 12397if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12399$as_echo "yes" >&6; } 12400 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 12401 cat >>confdefs.h <<_ACEOF 12402#define $ac_tr_prototype 1 12403_ACEOF 12404 12405 : 12406else 12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12408$as_echo "no" >&6; } 12409fi 12410 12411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for usleep (in libc.h unistd.h stdlib.h)" >&5 12412$as_echo_n "checking prototype for usleep (in libc.h unistd.h stdlib.h)... " >&6; } 12413 12414: 12415 12416ac_includes="" 12417for ac_header in libc.h unistd.h stdlib.h 12418do 12419 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 12420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 12421 ac_includes="$ac_includes 12422#include<$ac_header>" 12423 fi 12424done 12425tmp_save_1=`echo usleep | tr ' :' '__'` 12426if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 12427 $as_echo_n "(cached) " >&6 12428else 12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12430/* end confdefs.h. */ 12431#ifdef __cplusplus 12432extern "C" { 12433#endif 12434$ac_includes 12435#ifdef __cplusplus 12436} 12437#endif 12438typedef union { int member; } dummyStruct; 12439#ifdef __cplusplus 12440extern "C" 12441#endif 12442dummyStruct usleep(dummyStruct); 12443 12444 12445int 12446main () 12447{ 12448 12449 ; 12450 return 0; 12451} 12452_ACEOF 12453if ac_fn_cxx_try_compile "$LINENO"; then : 12454 eval "ac_cv_prototype_$tmp_save_1=no" 12455else 12456 eval "ac_cv_prototype_$tmp_save_1=yes" 12457fi 12458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12459fi 12460if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12462$as_echo "yes" >&6; } 12463 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 12464 cat >>confdefs.h <<_ACEOF 12465#define $ac_tr_prototype 1 12466_ACEOF 12467 12468 : 12469else 12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12471$as_echo "no" >&6; } 12472fi 12473 12474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for vsnprintf (in stdio.h stdarg.h)" >&5 12475$as_echo_n "checking prototype for vsnprintf (in stdio.h stdarg.h)... " >&6; } 12476 12477: 12478 12479ac_includes="" 12480for ac_header in stdio.h stdarg.h 12481do 12482 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 12483 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 12484 ac_includes="$ac_includes 12485#include<$ac_header>" 12486 fi 12487done 12488tmp_save_1=`echo vsnprintf | tr ' :' '__'` 12489if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 12490 $as_echo_n "(cached) " >&6 12491else 12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12493/* end confdefs.h. */ 12494#ifdef __cplusplus 12495extern "C" { 12496#endif 12497$ac_includes 12498#ifdef __cplusplus 12499} 12500#endif 12501typedef union { int member; } dummyStruct; 12502#ifdef __cplusplus 12503extern "C" 12504#endif 12505dummyStruct vsnprintf(dummyStruct); 12506 12507 12508int 12509main () 12510{ 12511 12512 ; 12513 return 0; 12514} 12515_ACEOF 12516if ac_fn_cxx_try_compile "$LINENO"; then : 12517 eval "ac_cv_prototype_$tmp_save_1=no" 12518else 12519 eval "ac_cv_prototype_$tmp_save_1=yes" 12520fi 12521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12522fi 12523if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12525$as_echo "yes" >&6; } 12526 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 12527 cat >>confdefs.h <<_ACEOF 12528#define $ac_tr_prototype 1 12529_ACEOF 12530 12531 : 12532else 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12534$as_echo "no" >&6; } 12535fi 12536 12537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for wait3 (in libc.h sys/wait.h sys/time.h sys/resource.h)" >&5 12538$as_echo_n "checking prototype for wait3 (in libc.h sys/wait.h sys/time.h sys/resource.h)... " >&6; } 12539 12540: 12541 12542ac_includes="" 12543for ac_header in libc.h sys/wait.h sys/time.h sys/resource.h 12544do 12545 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 12546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 12547 ac_includes="$ac_includes 12548#include<$ac_header>" 12549 fi 12550done 12551tmp_save_1=`echo wait3 | tr ' :' '__'` 12552if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 12553 $as_echo_n "(cached) " >&6 12554else 12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12556/* end confdefs.h. */ 12557#ifdef __cplusplus 12558extern "C" { 12559#endif 12560$ac_includes 12561#ifdef __cplusplus 12562} 12563#endif 12564typedef union { int member; } dummyStruct; 12565#ifdef __cplusplus 12566extern "C" 12567#endif 12568dummyStruct wait3(dummyStruct); 12569 12570 12571int 12572main () 12573{ 12574 12575 ; 12576 return 0; 12577} 12578_ACEOF 12579if ac_fn_cxx_try_compile "$LINENO"; then : 12580 eval "ac_cv_prototype_$tmp_save_1=no" 12581else 12582 eval "ac_cv_prototype_$tmp_save_1=yes" 12583fi 12584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12585fi 12586if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12588$as_echo "yes" >&6; } 12589 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 12590 cat >>confdefs.h <<_ACEOF 12591#define $ac_tr_prototype 1 12592_ACEOF 12593 12594 : 12595else 12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12597$as_echo "no" >&6; } 12598fi 12599 12600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for waitpid (in sys/wait.h sys/time.h sys/resource.h)" >&5 12601$as_echo_n "checking prototype for waitpid (in sys/wait.h sys/time.h sys/resource.h)... " >&6; } 12602 12603: 12604 12605ac_includes="" 12606for ac_header in sys/wait.h sys/time.h sys/resource.h 12607do 12608 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 12609 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 12610 ac_includes="$ac_includes 12611#include<$ac_header>" 12612 fi 12613done 12614tmp_save_1=`echo waitpid | tr ' :' '__'` 12615if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : 12616 $as_echo_n "(cached) " >&6 12617else 12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12619/* end confdefs.h. */ 12620#ifdef __cplusplus 12621extern "C" { 12622#endif 12623$ac_includes 12624#ifdef __cplusplus 12625} 12626#endif 12627typedef union { int member; } dummyStruct; 12628#ifdef __cplusplus 12629extern "C" 12630#endif 12631dummyStruct waitpid(dummyStruct); 12632 12633 12634int 12635main () 12636{ 12637 12638 ; 12639 return 0; 12640} 12641_ACEOF 12642if ac_fn_cxx_try_compile "$LINENO"; then : 12643 eval "ac_cv_prototype_$tmp_save_1=no" 12644else 12645 eval "ac_cv_prototype_$tmp_save_1=yes" 12646fi 12647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12648fi 12649if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then 12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12651$as_echo "yes" >&6; } 12652 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 12653 cat >>confdefs.h <<_ACEOF 12654#define $ac_tr_prototype 1 12655_ACEOF 12656 12657 : 12658else 12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12660$as_echo "no" >&6; } 12661fi 12662 12663 12664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration for struct utimbuf (in sys/types.h utime.h sys/utime.h)" >&5 12665$as_echo_n "checking declaration for struct utimbuf (in sys/types.h utime.h sys/utime.h)... " >&6; } 12666 12667ac_includes="" 12668for ac_header in sys/types.h utime.h sys/utime.h 12669do 12670 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 12671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 12672 ac_includes="$ac_includes 12673#include<$ac_header>" 12674 fi 12675done 12676 12677ac_cpp_includes="" 12678 12679ac_cv_declaration=`echo 'ac_cv_declaration_struct utimbuf' | tr ' :' '__'` 12680 12681if eval \${$ac_cv_declaration+:} false; then : 12682 $as_echo_n "(cached) " >&6 12683else 12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12685/* end confdefs.h. */ 12686#ifdef __cplusplus 12687extern "C" { 12688#endif 12689$ac_includes 12690#ifdef __cplusplus 12691} 12692#endif 12693$ac_cpp_includes 12694struct utimbuf dummy; 12695 12696 12697int 12698main () 12699{ 12700 12701 ; 12702 return 0; 12703} 12704_ACEOF 12705if ac_fn_cxx_try_compile "$LINENO"; then : 12706 eval "$ac_cv_declaration=yes" 12707else 12708 eval "$ac_cv_declaration=no" 12709fi 12710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12711fi 12712if eval "test \"\$$ac_cv_declaration\" = yes"; then 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12714$as_echo "yes" >&6; } 12715 ac_tr_declaration=HAVE_DECLARATION_`echo struct utimbuf | tr ' :[a-z]' '__[A-Z]'` 12716 cat >>confdefs.h <<_ACEOF 12717#define $ac_tr_declaration 1 12718_ACEOF 12719 12720 : 12721else 12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12723$as_echo "no" >&6; } 12724fi 12725unset ac_cv_declaration 12726 12727 12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration for socklen_t (in sys/types.h sys/socket.h)" >&5 12729$as_echo_n "checking declaration for socklen_t (in sys/types.h sys/socket.h)... " >&6; } 12730 12731ac_includes="" 12732for ac_header in sys/types.h sys/socket.h 12733do 12734 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 12735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 12736 ac_includes="$ac_includes 12737#include<$ac_header>" 12738 fi 12739done 12740 12741ac_cpp_includes="" 12742 12743ac_cv_declaration=`echo 'ac_cv_declaration_socklen_t' | tr ' :' '__'` 12744 12745if eval \${$ac_cv_declaration+:} false; then : 12746 $as_echo_n "(cached) " >&6 12747else 12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12749/* end confdefs.h. */ 12750#ifdef __cplusplus 12751extern "C" { 12752#endif 12753$ac_includes 12754#ifdef __cplusplus 12755} 12756#endif 12757$ac_cpp_includes 12758socklen_t dummy; 12759 12760 12761int 12762main () 12763{ 12764 12765 ; 12766 return 0; 12767} 12768_ACEOF 12769if ac_fn_cxx_try_compile "$LINENO"; then : 12770 eval "$ac_cv_declaration=yes" 12771else 12772 eval "$ac_cv_declaration=no" 12773fi 12774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12775fi 12776if eval "test \"\$$ac_cv_declaration\" = yes"; then 12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12778$as_echo "yes" >&6; } 12779 ac_tr_declaration=HAVE_DECLARATION_`echo socklen_t | tr ' :[a-z]' '__[A-Z]'` 12780 cat >>confdefs.h <<_ACEOF 12781#define $ac_tr_declaration 1 12782_ACEOF 12783 12784 : 12785else 12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12787$as_echo "no" >&6; } 12788fi 12789unset ac_cv_declaration 12790 12791 12792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaration of readdir_r conforms to Posix 1.c draft 6" >&5 12793$as_echo_n "checking if declaration of readdir_r conforms to Posix 1.c draft 6... " >&6; } 12794 12795ac_cv_result=ac_cv_old_readdir_r 12796if eval \${$ac_cv_result+:} false; then : 12797 $as_echo_n "(cached) " >&6 12798else 12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12800/* end confdefs.h. */ 12801 12802#ifdef __cplusplus 12803extern "C" { 12804#endif 12805#ifdef HAVE_DIRENT_H 12806#include <dirent.h> 12807#else 12808#define dirent direct 12809#ifdef HAVE_SYS_NDIR_H 12810#include <sys/ndir.h> 12811#endif 12812#ifdef HAVE_SYS_DIR_H 12813#include <sys/dir.h> 12814#endif 12815#ifdef HAVE_NDIR_H 12816#include <ndir.h> 12817#endif 12818#endif 12819#ifdef __cplusplus 12820} 12821#endif 12822 12823int 12824main () 12825{ 12826 12827 DIR *dirp; 12828 struct dirent *dp; 12829 dp = readdir_r(dirp, dp); 12830 12831 ; 12832 return 0; 12833} 12834_ACEOF 12835if ac_fn_cxx_try_compile "$LINENO"; then : 12836 eval "$ac_cv_result=yes" 12837else 12838 eval "$ac_cv_result=no" 12839fi 12840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12841fi 12842if eval "test \"\$$ac_cv_result\" = yes"; then 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12844$as_echo "yes" >&6; } 12845 ac_cv_result=HAVE_OLD_READDIR_R 12846 cat >>confdefs.h <<_ACEOF 12847#define $ac_cv_result 1 12848_ACEOF 12849 12850 else 12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12852$as_echo "no" >&6; } 12853 fi 12854unset ac_cv_result 12855 12856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal() callback needs ellipse (in signal.h)" >&5 12857$as_echo_n "checking if signal() callback needs ellipse (in signal.h)... " >&6; } 12858 12859ac_includes="" 12860for ac_header in signal.h 12861do 12862 ac_includes="$ac_includes 12863#include<$ac_header>" 12864done 12865if ${ac_cv_signal_handler_with_ellipse+:} false; then : 12866 $as_echo_n "(cached) " >&6 12867else 12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12869/* end confdefs.h. */ 12870#ifdef __cplusplus 12871extern "C" { 12872#endif 12873$ac_includes 12874 12875 void signal_handler(int) 12876 { 12877 } 12878#ifdef __cplusplus 12879} 12880#endif 12881 12882 12883int 12884main () 12885{ 12886 12887 (void) signal(0, signal_handler); 12888 12889 ; 12890 return 0; 12891} 12892_ACEOF 12893if ac_fn_cxx_try_compile "$LINENO"; then : 12894 eval "ac_cv_signal_handler_with_ellipse=no" 12895else 12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12897/* end confdefs.h. */ 12898#ifdef __cplusplus 12899extern "C" { 12900#endif 12901$ac_includes 12902 12903 void signal_handler(...) 12904 { 12905 } 12906#ifdef __cplusplus 12907} 12908#endif 12909 12910 12911int 12912main () 12913{ 12914 12915 (void) signal(0, signal_handler); 12916 12917 ; 12918 return 0; 12919} 12920_ACEOF 12921if ac_fn_cxx_try_compile "$LINENO"; then : 12922 eval "ac_cv_signal_handler_with_ellipse=yes" 12923else 12924 eval "ac_cv_signal_handler_with_ellipse=no" 12925fi 12926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12927fi 12928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12929fi 12930 12931if eval "test \"`echo $ac_cv_signal_handler_with_ellipse`\" = yes"; then 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12933$as_echo "yes" >&6; } 12934 ac_tr_prototype=SIGNAL_HANDLER_WITH_ELLIPSE 12935 cat >>confdefs.h <<_ACEOF 12936#define $ac_tr_prototype 1 12937_ACEOF 12938 12939 : 12940else 12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12942$as_echo "no" >&6; } 12943 12944fi 12945 12946if test $ac_cv_header_math_h = yes ; then 12947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if <math.h> fails if included extern \"C\"" >&5 12948$as_echo_n "checking if <math.h> fails if included extern \"C\"... " >&6; } 12949 12950if ${ac_cv_include_math_h_as_cxx+:} false; then : 12951 $as_echo_n "(cached) " >&6 12952else 12953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12954/* end confdefs.h. */ 12955 12956extern "C" 12957{ 12958#include<math.h> 12959} 12960 12961int 12962main () 12963{ 12964 12965 12966 ; 12967 return 0; 12968} 12969_ACEOF 12970if ac_fn_cxx_try_compile "$LINENO"; then : 12971 eval "ac_cv_include_math_h_as_cxx=no" 12972else 12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12974/* end confdefs.h. */ 12975 12976#include<math.h> 12977 12978int 12979main () 12980{ 12981 12982 12983 ; 12984 return 0; 12985} 12986_ACEOF 12987if ac_fn_cxx_try_compile "$LINENO"; then : 12988 eval "ac_cv_include_math_h_as_cxx=yes" 12989else 12990 eval "ac_cv_include_math_h_as_cxx=no" 12991fi 12992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12993fi 12994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12995fi 12996 12997if eval "test \"`echo $ac_cv_include_math_h_as_cxx`\" = yes"; then 12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12999$as_echo "yes" >&6; } 13000 ac_tr_prototype=INCLUDE_MATH_H_AS_CXX 13001 cat >>confdefs.h <<_ACEOF 13002#define $ac_tr_prototype 1 13003_ACEOF 13004 13005 : 13006else 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13008$as_echo "no" >&6; } 13009 13010fi 13011 13012fi 13013 13014 13015 13016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use C++ standard includes" >&5 13017$as_echo_n "checking whether to use C++ standard includes... " >&6; } 13018ac_use_std_includes="auto" 13019# Check whether --enable-std-includes was given. 13020if test "${enable_std_includes+set}" = set; then : 13021 enableval=$enable_std_includes; case "$enableval" in 13022 yes) 13023 ac_use_std_includes="yes" 13024 ;; 13025 13026 *) 13027 ac_use_std_includes="no" 13028 ;; 13029 esac 13030 13031fi 13032 13033 13034if test "$ac_cv_header_fstream" = "yes" -a "$ac_cv_header_iostream" = "yes" -a "$ac_cv_header_iomanip" = "yes"; then 13035 ac_have_std_includes="yes" 13036else 13037 ac_have_std_includes="no" 13038fi 13039 13040if test "$ac_cv_header_fstream_h" = "yes" -a "$ac_cv_header_iostream_h" = "yes" -a "$ac_cv_header_iomanip_h" = "yes"; then 13041 ac_have_old_includes="yes" 13042else 13043 ac_have_old_includes="no" 13044fi 13045 13046if test "$ac_use_std_includes" = "yes"; then 13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13048$as_echo "yes" >&6; } 13049 13050$as_echo "#define USE_STD_CXX_INCLUDES /**/" >>confdefs.h 13051 13052elif test "$ac_use_std_includes" = "no"; then 13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13054$as_echo "no" >&6; } 13055elif test "$ac_have_std_includes" = "yes"; then 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13057$as_echo "yes" >&6; } 13058 13059$as_echo "#define USE_STD_CXX_INCLUDES /**/" >>confdefs.h 13060 13061 ac_use_std_includes="yes" 13062else 13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13064$as_echo "no" >&6; } 13065 ac_use_std_includes="no" 13066fi 13067 13068if test "$ac_use_std_includes" = "yes"; then 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ standard namespace" >&5 13070$as_echo_n "checking for C++ standard namespace... " >&6; } 13071 13072if ${ac_cv_check_std_namespace+:} false; then : 13073 $as_echo_n "(cached) " >&6 13074else 13075 ac_link_o='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.o $LIBS 1>&5' 13076cat > conftest.$ac_ext <<EOF 13077#line 13076 "configure" 13078#include "confdefs.h" 13079 13080#include <iostream> 13081using namespace std; 13082 13083int main() { 13084 13085 cout << "Hello World" << endl; 13086 13087; return 0; } 13088EOF 13089if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13090 (eval $ac_compile) 2>&5 13091 ac_status=$? 13092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13093 test $ac_status = 0; }; then 13094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link_o\""; } >&5 13095 (eval $ac_link_o) 2>&5 13096 ac_status=$? 13097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13098 test $ac_status = 0; }; then 13099 rm -rf conftest* 13100 eval "ac_cv_check_std_namespace=yes" 13101 else 13102 echo "configure: failed link was:" >&5 13103 cat conftest.$ac_ext >&5 13104 rm -rf conftest* 13105 eval "ac_cv_check_std_namespace=no" 13106 fi 13107else 13108 echo "configure: failed compile was:" >&5 13109 cat conftest.$ac_ext >&5 13110 rm -rf conftest* 13111 eval "ac_cv_check_std_namespace=no" 13112fi 13113rm -f conftest* 13114fi 13115if eval "test \"`echo '$ac_cv_check_std_namespace'`\" = yes"; then 13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13117$as_echo "yes" >&6; } 13118 ac_tr_std_namespace=HAVE_STD_NAMESPACE 13119 cat >>confdefs.h <<_ACEOF 13120#define $ac_tr_std_namespace 1 13121_ACEOF 13122 13123else 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13125$as_echo "no" >&6; } 13126fi 13127 13128 13129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration for std::ios_base::openmode (in iostream)" >&5 13130$as_echo_n "checking declaration for std::ios_base::openmode (in iostream)... " >&6; } 13131 13132ac_includes="" 13133 13134ac_cpp_includes="" 13135for ac_header in iostream 13136do 13137 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 13138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 13139 ac_cpp_includes="$ac_cpp_includes 13140#include<$ac_header>" 13141 fi 13142done 13143 13144ac_cv_declaration=`echo 'ac_cv_declaration_std::ios_base::openmode' | tr ' :' '__'` 13145 13146if eval \${$ac_cv_declaration+:} false; then : 13147 $as_echo_n "(cached) " >&6 13148else 13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13150/* end confdefs.h. */ 13151#ifdef __cplusplus 13152extern "C" { 13153#endif 13154$ac_includes 13155#ifdef __cplusplus 13156} 13157#endif 13158$ac_cpp_includes 13159std::ios_base::openmode dummy; 13160 13161 13162int 13163main () 13164{ 13165 13166 ; 13167 return 0; 13168} 13169_ACEOF 13170if ac_fn_cxx_try_compile "$LINENO"; then : 13171 eval "$ac_cv_declaration=yes" 13172else 13173 eval "$ac_cv_declaration=no" 13174fi 13175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13176fi 13177if eval "test \"\$$ac_cv_declaration\" = yes"; then 13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13179$as_echo "yes" >&6; } 13180 ac_tr_declaration=HAVE_DECLARATION_`echo std::ios_base::openmode | tr ' :[a-z]' '__[A-Z]'` 13181 cat >>confdefs.h <<_ACEOF 13182#define $ac_tr_declaration 1 13183_ACEOF 13184 13185 : 13186else 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13188$as_echo "no" >&6; } 13189fi 13190unset ac_cv_declaration 13191 13192 13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of ios::nocreate (in fstream)" >&5 13194$as_echo_n "checking declaration of ios::nocreate (in fstream)... " >&6; } 13195 13196ac_cv_declaration=ac_cv_declaration_ios_nocreate 13197if eval \${$ac_cv_declaration+:} false; then : 13198 $as_echo_n "(cached) " >&6 13199else 13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13201/* end confdefs.h. */ 13202 13203#include <fstream> 13204 13205int 13206main () 13207{ 13208namespace std { } 13209using namespace std; 13210ifstream file("name", std::ios::nocreate) 13211 ; 13212 return 0; 13213} 13214_ACEOF 13215if ac_fn_cxx_try_compile "$LINENO"; then : 13216 eval "$ac_cv_declaration=yes" 13217else 13218 eval "$ac_cv_declaration=no" 13219fi 13220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13221fi 13222if eval "test \"\$$ac_cv_declaration\" = yes"; then 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13224$as_echo "yes" >&6; } 13225 ac_tr_declaration=HAVE_IOS_NOCREATE 13226 cat >>confdefs.h <<_ACEOF 13227#define $ac_tr_declaration 1 13228_ACEOF 13229 13230 : 13231else 13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13233$as_echo "no" >&6; } 13234fi 13235unset ac_cv_declaration 13236 13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::vfprintf (in cstdarg cstdio)" >&5 13238$as_echo_n "checking for std::vfprintf (in cstdarg cstdio)... " >&6; } 13239 13240ac_includes="" 13241for ac_header in cstdarg cstdio 13242do 13243 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 13244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 13245 ac_includes="$ac_includes 13246#include<$ac_header>" 13247 fi 13248done 13249tmp_save_1=`echo std::vfprintf | tr ' :' '__'` 13250if eval \${ac_cv_compiles_$tmp_save_1+:} false; then : 13251 $as_echo_n "(cached) " >&6 13252else 13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13254/* end confdefs.h. */ 13255$ac_includes 13256int 13257main () 13258{ 13259FILE *stream; va_list ap; std::vfprintf(stream, "", ap); 13260 ; 13261 return 0; 13262} 13263_ACEOF 13264if ac_fn_cxx_try_compile "$LINENO"; then : 13265 eval "ac_cv_compiles_$tmp_save_1=yes" 13266else 13267 eval "ac_cv_compiles_$tmp_save_1=no" 13268fi 13269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13270fi 13271if eval "test \"`echo '$''{'ac_cv_compiles_$tmp_save_1'}'`\" = yes"; then 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13273$as_echo "yes" >&6; } 13274 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 13275 cat >>confdefs.h <<_ACEOF 13276#define $ac_tr_prototype 1 13277_ACEOF 13278 13279 : 13280else 13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13282$as_echo "no" >&6; } 13283fi 13284 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::vsnprintf (in cstdarg cstdio)" >&5 13286$as_echo_n "checking for std::vsnprintf (in cstdarg cstdio)... " >&6; } 13287 13288ac_includes="" 13289for ac_header in cstdarg cstdio 13290do 13291 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 13292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 13293 ac_includes="$ac_includes 13294#include<$ac_header>" 13295 fi 13296done 13297tmp_save_1=`echo std::vsnprintf | tr ' :' '__'` 13298if eval \${ac_cv_compiles_$tmp_save_1+:} false; then : 13299 $as_echo_n "(cached) " >&6 13300else 13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13302/* end confdefs.h. */ 13303$ac_includes 13304int 13305main () 13306{ 13307char buf[256]; va_list ap; std::vsnprintf(buf, 0, "", ap); 13308 ; 13309 return 0; 13310} 13311_ACEOF 13312if ac_fn_cxx_try_compile "$LINENO"; then : 13313 eval "ac_cv_compiles_$tmp_save_1=yes" 13314else 13315 eval "ac_cv_compiles_$tmp_save_1=no" 13316fi 13317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13318fi 13319if eval "test \"`echo '$''{'ac_cv_compiles_$tmp_save_1'}'`\" = yes"; then 13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13321$as_echo "yes" >&6; } 13322 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 13323 cat >>confdefs.h <<_ACEOF 13324#define $ac_tr_prototype 1 13325_ACEOF 13326 13327 : 13328else 13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13330$as_echo "no" >&6; } 13331fi 13332 13333else 13334 13335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration for std::ios_base::openmode (in iostream.h)" >&5 13336$as_echo_n "checking declaration for std::ios_base::openmode (in iostream.h)... " >&6; } 13337 13338ac_includes="" 13339 13340ac_cpp_includes="" 13341for ac_header in iostream.h 13342do 13343 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 13344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 13345 ac_cpp_includes="$ac_cpp_includes 13346#include<$ac_header>" 13347 fi 13348done 13349 13350ac_cv_declaration=`echo 'ac_cv_declaration_std::ios_base::openmode' | tr ' :' '__'` 13351 13352if eval \${$ac_cv_declaration+:} false; then : 13353 $as_echo_n "(cached) " >&6 13354else 13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13356/* end confdefs.h. */ 13357#ifdef __cplusplus 13358extern "C" { 13359#endif 13360$ac_includes 13361#ifdef __cplusplus 13362} 13363#endif 13364$ac_cpp_includes 13365std::ios_base::openmode dummy; 13366 13367 13368int 13369main () 13370{ 13371 13372 ; 13373 return 0; 13374} 13375_ACEOF 13376if ac_fn_cxx_try_compile "$LINENO"; then : 13377 eval "$ac_cv_declaration=yes" 13378else 13379 eval "$ac_cv_declaration=no" 13380fi 13381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13382fi 13383if eval "test \"\$$ac_cv_declaration\" = yes"; then 13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13385$as_echo "yes" >&6; } 13386 ac_tr_declaration=HAVE_DECLARATION_`echo std::ios_base::openmode | tr ' :[a-z]' '__[A-Z]'` 13387 cat >>confdefs.h <<_ACEOF 13388#define $ac_tr_declaration 1 13389_ACEOF 13390 13391 : 13392else 13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13394$as_echo "no" >&6; } 13395fi 13396unset ac_cv_declaration 13397 13398 13399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of ios::nocreate (in fstream.h)" >&5 13400$as_echo_n "checking declaration of ios::nocreate (in fstream.h)... " >&6; } 13401 13402ac_cv_declaration=ac_cv_declaration_ios_nocreate 13403if eval \${$ac_cv_declaration+:} false; then : 13404 $as_echo_n "(cached) " >&6 13405else 13406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13407/* end confdefs.h. */ 13408 13409#include <fstream.h> 13410 13411int 13412main () 13413{ 13414namespace std { } 13415using namespace std; 13416ifstream file("name", ios::nocreate) 13417 ; 13418 return 0; 13419} 13420_ACEOF 13421if ac_fn_cxx_try_compile "$LINENO"; then : 13422 eval "$ac_cv_declaration=yes" 13423else 13424 eval "$ac_cv_declaration=no" 13425fi 13426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13427fi 13428if eval "test \"\$$ac_cv_declaration\" = yes"; then 13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13430$as_echo "yes" >&6; } 13431 ac_tr_declaration=HAVE_IOS_NOCREATE 13432 cat >>confdefs.h <<_ACEOF 13433#define $ac_tr_declaration 1 13434_ACEOF 13435 13436 : 13437else 13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13439$as_echo "no" >&6; } 13440fi 13441unset ac_cv_declaration 13442 13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::vfprintf (in stdarg.h stdio.h)" >&5 13444$as_echo_n "checking for std::vfprintf (in stdarg.h stdio.h)... " >&6; } 13445 13446ac_includes="" 13447for ac_header in stdarg.h stdio.h 13448do 13449 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 13450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 13451 ac_includes="$ac_includes 13452#include<$ac_header>" 13453 fi 13454done 13455tmp_save_1=`echo std::vfprintf | tr ' :' '__'` 13456if eval \${ac_cv_compiles_$tmp_save_1+:} false; then : 13457 $as_echo_n "(cached) " >&6 13458else 13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13460/* end confdefs.h. */ 13461$ac_includes 13462int 13463main () 13464{ 13465FILE *stream; va_list ap; std::vfprintf(stream, "", ap); 13466 ; 13467 return 0; 13468} 13469_ACEOF 13470if ac_fn_cxx_try_compile "$LINENO"; then : 13471 eval "ac_cv_compiles_$tmp_save_1=yes" 13472else 13473 eval "ac_cv_compiles_$tmp_save_1=no" 13474fi 13475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13476fi 13477if eval "test \"`echo '$''{'ac_cv_compiles_$tmp_save_1'}'`\" = yes"; then 13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13479$as_echo "yes" >&6; } 13480 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 13481 cat >>confdefs.h <<_ACEOF 13482#define $ac_tr_prototype 1 13483_ACEOF 13484 13485 : 13486else 13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13488$as_echo "no" >&6; } 13489fi 13490 13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::vsnprintf (in stdarg.h stdio.h)" >&5 13492$as_echo_n "checking for std::vsnprintf (in stdarg.h stdio.h)... " >&6; } 13493 13494ac_includes="" 13495for ac_header in stdarg.h stdio.h 13496do 13497 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` 13498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then 13499 ac_includes="$ac_includes 13500#include<$ac_header>" 13501 fi 13502done 13503tmp_save_1=`echo std::vsnprintf | tr ' :' '__'` 13504if eval \${ac_cv_compiles_$tmp_save_1+:} false; then : 13505 $as_echo_n "(cached) " >&6 13506else 13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13508/* end confdefs.h. */ 13509$ac_includes 13510int 13511main () 13512{ 13513char buf[256]; va_list ap; std::vsnprintf(buf, 0, "", ap); 13514 ; 13515 return 0; 13516} 13517_ACEOF 13518if ac_fn_cxx_try_compile "$LINENO"; then : 13519 eval "ac_cv_compiles_$tmp_save_1=yes" 13520else 13521 eval "ac_cv_compiles_$tmp_save_1=no" 13522fi 13523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13524fi 13525if eval "test \"`echo '$''{'ac_cv_compiles_$tmp_save_1'}'`\" = yes"; then 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13527$as_echo "yes" >&6; } 13528 ac_tr_prototype=HAVE_PROTOTYPE_`echo $tmp_save_1 | tr '[a-z]' '[A-Z]'` 13529 cat >>confdefs.h <<_ACEOF 13530#define $ac_tr_prototype 1 13531_ACEOF 13532 13533 : 13534else 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13536$as_echo "no" >&6; } 13537fi 13538 13539fi 13540 13541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ class template" >&5 13542$as_echo_n "checking for C++ class template... " >&6; } 13543 13544if ${ac_cv_check_class_template+:} false; then : 13545 $as_echo_n "(cached) " >&6 13546else 13547 ac_link_o='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.o $LIBS 1>&5' 13548cat > conftest.$ac_ext <<EOF 13549#line 13548 "configure" 13550#include "confdefs.h" 13551 13552template <class T> 13553class x 13554{ 13555private: 13556 T a; 13557public: 13558 void set(T i) { a = i; } 13559 x(T i) { set(i); } 13560 T get() { return a; } 13561}; 13562 13563int main() { 13564 13565 int i; 13566 x<int> a(4); 13567 i = a.get(); 13568 a.set(18); 13569 i = a.get(); 13570 a.set(i-1); 13571 13572; return 0; } 13573EOF 13574if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13575 (eval $ac_compile) 2>&5 13576 ac_status=$? 13577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13578 test $ac_status = 0; }; then 13579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link_o\""; } >&5 13580 (eval $ac_link_o) 2>&5 13581 ac_status=$? 13582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13583 test $ac_status = 0; }; then 13584 rm -rf conftest* 13585 eval "ac_cv_check_class_template=yes" 13586 else 13587 echo "configure: failed link was:" >&5 13588 cat conftest.$ac_ext >&5 13589 rm -rf conftest* 13590 eval "ac_cv_check_class_template=no" 13591 fi 13592else 13593 echo "configure: failed compile was:" >&5 13594 cat conftest.$ac_ext >&5 13595 rm -rf conftest* 13596 eval "ac_cv_check_class_template=no" 13597fi 13598rm -f conftest* 13599fi 13600if eval "test \"`echo '$ac_cv_check_class_template'`\" = yes"; then 13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13602$as_echo "yes" >&6; } 13603 ac_tr_class_template=HAVE_CLASS_TEMPLATE 13604 cat >>confdefs.h <<_ACEOF 13605#define $ac_tr_class_template 1 13606_ACEOF 13607 13608else 13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13610$as_echo "no" >&6; } 13611fi 13612 13613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ static methods in class templates" >&5 13614$as_echo_n "checking for C++ static methods in class templates... " >&6; } 13615 13616if ${ac_cv_check_static_template_method+:} false; then : 13617 $as_echo_n "(cached) " >&6 13618else 13619 ac_link_o='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.o $LIBS 1>&5' 13620cat > conftest.$ac_ext <<EOF 13621#line 13620 "configure" 13622#include "confdefs.h" 13623 13624void additive(int & i) 13625{ 13626 i++; 13627} 13628 13629template <class T, class Function> 13630class x 13631{ 13632public: 13633 x() { } 13634 static void do1(Function f, int & a) { f(a); } 13635 static void do2(T b) { T a = b; }; 13636}; 13637 13638int main() { 13639 13640 int a = 1; 13641 x<int, void (*)(int &)>::do1(additive, a); 13642 x<int, void (*)(int &)>::do2(a); 13643 13644; return 0; } 13645EOF 13646if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13647 (eval $ac_compile) 2>&5 13648 ac_status=$? 13649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13650 test $ac_status = 0; }; then 13651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link_o\""; } >&5 13652 (eval $ac_link_o) 2>&5 13653 ac_status=$? 13654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13655 test $ac_status = 0; }; then 13656 rm -rf conftest* 13657 eval "ac_cv_check_static_template_method=yes" 13658 else 13659 echo "configure: failed link was:" >&5 13660 cat conftest.$ac_ext >&5 13661 rm -rf conftest* 13662 eval "ac_cv_check_static_template_method=no" 13663 fi 13664else 13665 echo "configure: failed compile was:" >&5 13666 cat conftest.$ac_ext >&5 13667 rm -rf conftest* 13668 eval "ac_cv_check_static_template_method=no" 13669fi 13670rm -f conftest* 13671fi 13672if eval "test \"`echo '$ac_cv_check_static_template_method'`\" = yes"; then 13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13674$as_echo "yes" >&6; } 13675 ac_tr_static_template_method=HAVE_STATIC_TEMPLATE_METHOD 13676 cat >>confdefs.h <<_ACEOF 13677#define $ac_tr_static_template_method 1 13678_ACEOF 13679 13680else 13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13682$as_echo "no" >&6; } 13683fi 13684 13685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ function template" >&5 13686$as_echo_n "checking for C++ function template... " >&6; } 13687 13688if ${ac_cv_check_function_template+:} false; then : 13689 $as_echo_n "(cached) " >&6 13690else 13691 ac_link_o='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.o $LIBS 1>&5' 13692cat > conftest.$ac_ext <<EOF 13693#line 13692 "configure" 13694#include "confdefs.h" 13695 13696template <class T> 13697int f(T* a) 13698{ 13699 if (a) return 1; 13700 return 0; 13701} 13702 13703int main() { 13704 13705 int i, a; 13706 i = f(&a); 13707 13708; return 0; } 13709EOF 13710if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13711 (eval $ac_compile) 2>&5 13712 ac_status=$? 13713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13714 test $ac_status = 0; }; then 13715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link_o\""; } >&5 13716 (eval $ac_link_o) 2>&5 13717 ac_status=$? 13718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13719 test $ac_status = 0; }; then 13720 rm -rf conftest* 13721 eval "ac_cv_check_function_template=yes" 13722 else 13723 echo "configure: failed link was:" >&5 13724 cat conftest.$ac_ext >&5 13725 rm -rf conftest* 13726 eval "ac_cv_check_function_template=no" 13727 fi 13728else 13729 echo "configure: failed compile was:" >&5 13730 cat conftest.$ac_ext >&5 13731 rm -rf conftest* 13732 eval "ac_cv_check_function_template=no" 13733fi 13734rm -f conftest* 13735fi 13736if eval "test \"`echo '$ac_cv_check_function_template'`\" = yes"; then 13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13738$as_echo "yes" >&6; } 13739 ac_tr_function_template=HAVE_FUNCTION_TEMPLATE 13740 cat >>confdefs.h <<_ACEOF 13741#define $ac_tr_function_template 1 13742_ACEOF 13743 13744else 13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13746$as_echo "no" >&6; } 13747fi 13748 13749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ explicit template specialization syntax" >&5 13750$as_echo_n "checking for C++ explicit template specialization syntax... " >&6; } 13751 13752if ${ac_cv_check_explicit_template_specialization+:} false; then : 13753 $as_echo_n "(cached) " >&6 13754else 13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13756/* end confdefs.h. */ 13757 13758template<class T> 13759class X 13760{ 13761 public: 13762 int fn(); 13763}; 13764 13765template<> 13766int X<int>::fn() 13767{ 13768 return 0; 13769} 13770 13771int 13772main () 13773{ 13774X<int> x 13775 ; 13776 return 0; 13777} 13778_ACEOF 13779if ac_fn_cxx_try_compile "$LINENO"; then : 13780 eval "ac_cv_check_explicit_template_specialization=yes" 13781else 13782 eval "ac_cv_check_explicit_template_specialization=no" 13783fi 13784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13785fi 13786if eval "test \"`echo '$ac_cv_check_explicit_template_specialization'`\" = yes"; then 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13788$as_echo "yes" >&6; } 13789 ac_tr_explicit_template_specialization=HAVE_EXPLICIT_TEMPLATE_SPECIALIZATION 13790 cat >>confdefs.h <<_ACEOF 13791#define $ac_tr_explicit_template_specialization 1 13792_ACEOF 13793 13794else 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13796$as_echo "no" >&6; } 13797fi 13798 13799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if volatile is known keyword" >&5 13800$as_echo_n "checking if volatile is known keyword... " >&6; } 13801 13802if ${ac_cv_have_cxx_volatile+:} false; then : 13803 $as_echo_n "(cached) " >&6 13804else 13805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13806/* end confdefs.h. */ 13807 13808int 13809main () 13810{ 13811 13812volatile int i=0; 13813 13814 ; 13815 return 0; 13816} 13817_ACEOF 13818if ac_fn_cxx_try_compile "$LINENO"; then : 13819 eval "ac_cv_have_cxx_volatile=yes" 13820else 13821 eval "ac_cv_have_cxx_volatile=no" 13822fi 13823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13824fi 13825 13826if eval "test \"`echo $ac_cv_have_cxx_volatile`\" = yes"; then 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13828$as_echo "yes" >&6; } 13829 ac_tr_prototype=HAVE_CXX_VOLATILE 13830 13831cat >>confdefs.h <<_ACEOF 13832#define $ac_tr_prototype /**/ 13833_ACEOF 13834 13835 : 13836else 13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13838$as_echo "no" >&6; } 13839 13840fi 13841 13842 13843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes typename" >&5 13844$as_echo_n "checking whether the compiler recognizes typename... " >&6; } 13845if ${ac_cv_cxx_typename+:} false; then : 13846 $as_echo_n "(cached) " >&6 13847else 13848 13849 ac_ext=cpp 13850ac_cpp='$CXXCPP $CPPFLAGS' 13851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13854 13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13856/* end confdefs.h. */ 13857template<typename T>class X {public:X(){}}; 13858int 13859main () 13860{ 13861X<float> z; return 0; 13862 ; 13863 return 0; 13864} 13865_ACEOF 13866if ac_fn_cxx_try_compile "$LINENO"; then : 13867 ac_cv_cxx_typename=yes 13868else 13869 ac_cv_cxx_typename=no 13870fi 13871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13872 ac_ext=cpp 13873ac_cpp='$CXXCPP $CPPFLAGS' 13874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13877 13878 13879fi 13880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_typename" >&5 13881$as_echo "$ac_cv_cxx_typename" >&6; } 13882if test "$ac_cv_cxx_typename" = yes; then 13883 13884$as_echo "#define HAVE_TYPENAME /**/" >>confdefs.h 13885 13886fi 13887 13888 13889 ac_cv_stdio_namespace_is_std=no 13890 13891 ac_ext=cpp 13892ac_cpp='$CXXCPP $CPPFLAGS' 13893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13896 13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13898/* end confdefs.h. */ 13899 13900#ifdef USE_STD_CXX_INCLUDES 13901#include <cstdio> 13902#else 13903#include <stdio.h> 13904#endif 13905 13906int 13907main () 13908{ 13909FILE *f = ::fopen("name", "r"); 13910 ; 13911 return 0; 13912} 13913_ACEOF 13914if ac_fn_cxx_try_compile "$LINENO"; then : 13915 ac_cv_stdio_namespace_is_std=no 13916else 13917 ac_cv_stdio_namespace_is_std=yes 13918fi 13919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13920 ac_ext=cpp 13921ac_cpp='$CXXCPP $CPPFLAGS' 13922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13925 13926 13927 if test "$ac_cv_stdio_namespace_is_std" = yes; then 13928 $as_echo "#define STDIO_NAMESPACE std::" >>confdefs.h 13929 13930 else 13931 $as_echo "#define STDIO_NAMESPACE ::" >>confdefs.h 13932 13933 fi 13934 13935 13936 13937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable private tag dictionary" >&5 13938$as_echo_n "checking whether to enable private tag dictionary... " >&6; } 13939# Check whether --enable-private-tags was given. 13940if test "${enable_private_tags+set}" = set; then : 13941 enableval=$enable_private_tags; case "$enableval" in 13942 yes) 13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13944$as_echo "yes" >&6; } 13945 13946$as_echo "#define ENABLE_PRIVATE_TAGS /**/" >>confdefs.h 13947 13948 13949cat >>confdefs.h <<_ACEOF 13950#define DCM_DICT_DEFAULT_PATH "${DATA_DIR}/dicom.dic:${DATA_DIR}/private.dic" 13951_ACEOF 13952 13953 ;; 13954 *) 13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13956$as_echo "no" >&6; } 13957 ;; 13958 esac 13959else 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13961$as_echo "no" >&6; } 13962 13963fi 13964 13965 13966 13967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable loading external dictionary from default path" >&5 13968$as_echo_n "checking whether to enable loading external dictionary from default path... " >&6; } 13969# Check whether --enable-external-dict was given. 13970if test "${enable_external_dict+set}" = set; then : 13971 enableval=$enable_external_dict; case "$enableval" in 13972 yes) 13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13974$as_echo "yes" >&6; } 13975 13976$as_echo "#define ENABLE_EXTERNAL_DICTIONARY /**/" >>confdefs.h 13977 13978 ;; 13979 *) 13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13981$as_echo "no" >&6; } 13982 13983cat >>confdefs.h <<_ACEOF 13984#define DCM_DICT_DEFAULT_PATH "" 13985_ACEOF 13986 13987 ;; 13988 esac 13989else 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13991$as_echo "yes" >&6; } 13992 13993$as_echo "#define ENABLE_EXTERNAL_DICTIONARY /**/" >>confdefs.h 13994 13995 13996fi 13997 13998 13999 14000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable built-in dictionary loading" >&5 14001$as_echo_n "checking whether to enable built-in dictionary loading... " >&6; } 14002# Check whether --enable-builtin-dict was given. 14003if test "${enable_builtin_dict+set}" = set; then : 14004 enableval=$enable_builtin_dict; case "$enableval" in 14005 yes) 14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14007$as_echo "yes" >&6; } 14008 14009$as_echo "#define ENABLE_BUILTIN_DICTIONARY /**/" >>confdefs.h 14010 14011 ;; 14012 *) 14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14014$as_echo "no" >&6; } 14015 ;; 14016 esac 14017else 14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14019$as_echo "no" >&6; } 14020 14021fi 14022 14023 14024 14025 14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wl,-rpath is supported" >&5 14027$as_echo_n "checking whether -Wl,-rpath is supported... " >&6; } 14028if ${dcmtk_cv_rpath_works+:} false; then : 14029 $as_echo_n "(cached) " >&6 14030else 14031 # Check whether --enable-rpath was given. 14032if test "${enable_rpath+set}" = set; then : 14033 enableval=$enable_rpath; dcmtk_cv_rpath_works=$enableval 14034else 14035 old_LDFLAGS="$LDFLAGS" 14036 LDFLAGS="-Wl,-rpath,$srcdir $LDFLAGS" 14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14038/* end confdefs.h. */ 14039 14040int 14041main () 14042{ 14043 14044 ; 14045 return 0; 14046} 14047_ACEOF 14048if ac_fn_cxx_try_link "$LINENO"; then : 14049 dcmtk_cv_rpath_works=yes 14050else 14051 dcmtk_cv_rpath_works=no 14052fi 14053rm -f core conftest.err conftest.$ac_objext \ 14054 conftest$ac_exeext conftest.$ac_ext 14055 LDFLAGS="$old_LDFLAGS" 14056fi 14057 14058 14059fi 14060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dcmtk_cv_rpath_works" >&5 14061$as_echo "$dcmtk_cv_rpath_works" >&6; } 14062 14063 14064 14065# Check whether --with-opensslinc was given. 14066if test "${with_opensslinc+set}" = set; then : 14067 withval=$with_opensslinc; case $withval in #( 14068 yes|no) : 14069 14070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-opensslinc called without argument - will use default" >&5 14071$as_echo "$as_me: WARNING: --with-opensslinc called without argument - will use default" >&2;} 14072 ;; #( 14073 *) : 14074 14075 if test ! -d ${withval}; then 14076 as_fn_error $? "called with --with-opensslinc but OpenSSL base directory ${withval} does not exist or is not a directory." "$LINENO" 5 14077 fi 14078 14079 CPPFLAGS="-I${withval}/include $CPPFLAGS" 14080 LDFLAGS="-L${withval}/lib $LDFLAGS" 14081 if test "x$dcmtk_cv_rpath_works" = "xyes"; then 14082 LDFLAGS="-Wl,-rpath,${withval}/lib $LDFLAGS" 14083 fi 14084 ;; 14085esac 14086 14087fi 14088 14089 14090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include OpenSSL support" >&5 14091$as_echo_n "checking whether to include OpenSSL support... " >&6; } 14092 14093# Check whether --with-openssl was given. 14094if test "${with_openssl+set}" = set; then : 14095 withval=$with_openssl; case "$withval" in 14096 yes) 14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14098/* end confdefs.h. */ 14099#include <openssl/ssl.h> 14100int 14101main () 14102{ 14103 14104#if OPENSSL_VERSION_NUMBER < 0x10001000L 14105#error OpenSSL too old 14106#endif 14107 14108 ; 14109 return 0; 14110} 14111_ACEOF 14112if ac_fn_cxx_try_compile "$LINENO"; then : 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14114$as_echo "yes" >&6; } 14115 14116$as_echo "#define WITH_OPENSSL /**/" >>confdefs.h 14117 14118 OPENSSLLIBS="-lssl -lcrypto $OPENSSLLIBS" 14119else 14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - DCMTK requires OpenSSL version 1.0.1 or newer" >&5 14121$as_echo "no - DCMTK requires OpenSSL version 1.0.1 or newer" >&6; } 14122fi 14123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14124 ;; 14125 *) 14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14127$as_echo "no" >&6; } 14128 ;; 14129 esac 14130else 14131 SAVELIBS="$LIBS" 14132 LIBS="$LIBS $OPENSSLLIBS -lssl -lcrypto" 14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14134/* end confdefs.h. */ 14135#include <openssl/ssl.h> 14136int 14137main () 14138{ 14139(void) TLSv1_method() 14140 ; 14141 return 0; 14142} 14143_ACEOF 14144if ac_fn_cxx_try_link "$LINENO"; then : 14145 14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14147/* end confdefs.h. */ 14148#include <openssl/ssl.h> 14149int 14150main () 14151{ 14152 14153#if OPENSSL_VERSION_NUMBER < 0x10001000L 14154#error OpenSSL too old 14155#endif 14156 14157 ; 14158 return 0; 14159} 14160_ACEOF 14161if ac_fn_cxx_try_compile "$LINENO"; then : 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14163$as_echo "yes" >&6; } 14164 14165$as_echo "#define WITH_OPENSSL /**/" >>confdefs.h 14166 14167 OPENSSLLIBS="-lssl -lcrypto $OPENSSLLIBS" 14168else 14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - DCMTK requires OpenSSL version 1.0.1 or newer" >&5 14170$as_echo "no - DCMTK requires OpenSSL version 1.0.1 or newer" >&6; } 14171fi 14172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14173else 14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14175$as_echo "no" >&6; } 14176fi 14177rm -f core conftest.err conftest.$ac_objext \ 14178 conftest$ac_exeext conftest.$ac_ext 14179 LIBS="$SAVELIBS" 14180fi 14181 14182 14183 14184 SAVELIBS=$LIBS 14185 HAVE_SSL_CTX_GET0_PARAM=yes 14186 LIBS="$LIBS $OPENSSLLIBS" 14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides the SSL_CTX_get0_param function" >&5 14188$as_echo_n "checking whether OpenSSL provides the SSL_CTX_get0_param function... " >&6; } 14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14190/* end confdefs.h. */ 14191 14192 #include <openssl/ssl.h> 14193int 14194main () 14195{ 14196&SSL_CTX_get0_param; 14197 ; 14198 return 0; 14199} 14200 14201_ACEOF 14202if ac_fn_cxx_try_compile "$LINENO"; then : 14203 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14205$as_echo "yes" >&6; } 14206 $as_echo "#define HAVE_SSL_CTX_GET0_PARAM 1" >>confdefs.h 14207 14208 14209else 14210 14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14212$as_echo "no" >&6; } 14213 14214fi 14215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14216 LIBS=$SAVELIBS 14217 14218 14219 SAVELIBS=$LIBS 14220 HAVE_RAND_EGD=yes 14221 LIBS="$LIBS $OPENSSLLIBS" 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides the RAND_egd function" >&5 14223$as_echo_n "checking whether OpenSSL provides the RAND_egd function... " >&6; } 14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14225/* end confdefs.h. */ 14226 14227 #include <openssl/rand.h> 14228int 14229main () 14230{ 14231&RAND_egd; 14232 ; 14233 return 0; 14234} 14235 14236_ACEOF 14237if ac_fn_cxx_try_compile "$LINENO"; then : 14238 14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14240$as_echo "yes" >&6; } 14241 $as_echo "#define HAVE_RAND_EGD 1" >>confdefs.h 14242 14243 14244else 14245 14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14247$as_echo "no" >&6; } 14248 14249fi 14250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14251 LIBS=$SAVELIBS 14252 14253 14254 14255JPEGLIBS="" 14256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg" >&5 14257$as_echo_n "checking for jpeg_set_defaults in -ljpeg... " >&6; } 14258if ${ac_cv_lib_jpeg_jpeg_set_defaults+:} false; then : 14259 $as_echo_n "(cached) " >&6 14260else 14261 ac_check_lib_save_LIBS=$LIBS 14262LIBS="-ljpeg $LIBS" 14263cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14264/* end confdefs.h. */ 14265 14266/* Override any GCC internal prototype to avoid an error. 14267 Use char because int might match the return type of a GCC 14268 builtin and then its argument prototype would still apply. */ 14269#ifdef __cplusplus 14270extern "C" 14271#endif 14272char jpeg_set_defaults (); 14273int 14274main () 14275{ 14276return jpeg_set_defaults (); 14277 ; 14278 return 0; 14279} 14280_ACEOF 14281if ac_fn_cxx_try_link "$LINENO"; then : 14282 ac_cv_lib_jpeg_jpeg_set_defaults=yes 14283else 14284 ac_cv_lib_jpeg_jpeg_set_defaults=no 14285fi 14286rm -f core conftest.err conftest.$ac_objext \ 14287 conftest$ac_exeext conftest.$ac_ext 14288LIBS=$ac_check_lib_save_LIBS 14289fi 14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5 14291$as_echo "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; } 14292if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes; then : 14293 14294JPEGLIBS="-ljpeg" 14295 14296fi 14297 14298if test $ac_cv_lib_jpeg_jpeg_set_defaults = no ; then 14299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jSetDefaults in -ljpeg" >&5 14300$as_echo_n "checking for jSetDefaults in -ljpeg... " >&6; } 14301if ${ac_cv_lib_jpeg_jSetDefaults+:} false; then : 14302 $as_echo_n "(cached) " >&6 14303else 14304 ac_check_lib_save_LIBS=$LIBS 14305LIBS="-ljpeg $LIBS" 14306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14307/* end confdefs.h. */ 14308 14309/* Override any GCC internal prototype to avoid an error. 14310 Use char because int might match the return type of a GCC 14311 builtin and then its argument prototype would still apply. */ 14312#ifdef __cplusplus 14313extern "C" 14314#endif 14315char jSetDefaults (); 14316int 14317main () 14318{ 14319return jSetDefaults (); 14320 ; 14321 return 0; 14322} 14323_ACEOF 14324if ac_fn_cxx_try_link "$LINENO"; then : 14325 ac_cv_lib_jpeg_jSetDefaults=yes 14326else 14327 ac_cv_lib_jpeg_jSetDefaults=no 14328fi 14329rm -f core conftest.err conftest.$ac_objext \ 14330 conftest$ac_exeext conftest.$ac_ext 14331LIBS=$ac_check_lib_save_LIBS 14332fi 14333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jSetDefaults" >&5 14334$as_echo "$ac_cv_lib_jpeg_jSetDefaults" >&6; } 14335if test "x$ac_cv_lib_jpeg_jSetDefaults" = xyes; then : 14336 14337JPEGLIBS="-ljpeg" 14338 14339fi 14340 14341fi 14342 14343 14344 14345 14346# Check whether --with-zlibinc was given. 14347if test "${with_zlibinc+set}" = set; then : 14348 withval=$with_zlibinc; case $withval in #( 14349 yes|no) : 14350 14351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-zlibinc called without argument - will use default" >&5 14352$as_echo "$as_me: WARNING: --with-zlibinc called without argument - will use default" >&2;} 14353 ;; #( 14354 *) : 14355 14356 if test ! -d ${withval}; then 14357 as_fn_error $? "called with --with-zlibinc but zlib base directory ${withval} does not exist or is not a directory." "$LINENO" 5 14358 fi 14359 14360 CPPFLAGS="-I${withval}/include $CPPFLAGS" 14361 LDFLAGS="-L${withval}/lib $LDFLAGS" 14362 if test "x$dcmtk_cv_rpath_works" = "xyes"; then 14363 LDFLAGS="-Wl,-rpath,${withval}/lib $LDFLAGS" 14364 fi 14365 ;; 14366esac 14367 14368fi 14369 14370 14371ZLIBLIBS="" 14372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include zlib support" >&5 14373$as_echo_n "checking whether to include zlib support... " >&6; } 14374 14375# Check whether --with-zlib was given. 14376if test "${with_zlib+set}" = set; then : 14377 withval=$with_zlib; case "$withval" in 14378 yes) 14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14380$as_echo "yes" >&6; } 14381 14382$as_echo "#define WITH_ZLIB /**/" >>confdefs.h 14383 14384 ZLIBLIBS="-lz" 14385 ;; 14386 *) 14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14388$as_echo "no" >&6; } 14389 ;; 14390 esac 14391else 14392 SAVELIBS="$LIBS" 14393 LIBS="$LIBS -lz" 14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14395/* end confdefs.h. */ 14396#include <zlib.h> 14397int 14398main () 14399{ 14400(void) zlibVersion() 14401 ; 14402 return 0; 14403} 14404_ACEOF 14405if ac_fn_cxx_try_link "$LINENO"; then : 14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14407$as_echo "yes" >&6; } 14408 14409$as_echo "#define WITH_ZLIB /**/" >>confdefs.h 14410 14411 ZLIBLIBS="-lz" 14412else 14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14414$as_echo "no" >&6; } 14415fi 14416rm -f core conftest.err conftest.$ac_objext \ 14417 conftest$ac_exeext conftest.$ac_ext 14418 LIBS="$SAVELIBS" 14419fi 14420 14421 14422 14423 14424 14425# Check whether --with-libtiffinc was given. 14426if test "${with_libtiffinc+set}" = set; then : 14427 withval=$with_libtiffinc; case $withval in #( 14428 yes|no) : 14429 14430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libtiffinc called without argument - will use default" >&5 14431$as_echo "$as_me: WARNING: --with-libtiffinc called without argument - will use default" >&2;} 14432 ;; #( 14433 *) : 14434 14435 if test ! -d ${withval}; then 14436 as_fn_error $? "called with --with-libtiffinc but libtiff base directory ${withval} does not exist or is not a directory." "$LINENO" 5 14437 fi 14438 14439 CPPFLAGS="-I${withval}/include $CPPFLAGS" 14440 LDFLAGS="-L${withval}/lib $LDFLAGS" 14441 if test "x$dcmtk_cv_rpath_works" = "xyes"; then 14442 LDFLAGS="-Wl,-rpath,${withval}/lib $LDFLAGS" 14443 fi 14444 ;; 14445esac 14446 14447fi 14448 14449 14450TIFFLIBS="" 14451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include libtiff support" >&5 14452$as_echo_n "checking whether to include libtiff support... " >&6; } 14453 14454# Check whether --with-libtiff was given. 14455if test "${with_libtiff+set}" = set; then : 14456 withval=$with_libtiff; case "$withval" in 14457 yes) 14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14459$as_echo "yes" >&6; } 14460 14461$as_echo "#define WITH_LIBTIFF /**/" >>confdefs.h 14462 14463 TIFFLIBS="-ltiff $JPEGLIBS $ZLIBLIBS" 14464 ;; 14465 *) 14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14467$as_echo "no" >&6; } 14468 ;; 14469 esac 14470else 14471 SAVELIBS="$LIBS" 14472 LIBS="$LIBS -ltiff $JPEGLIBS $ZLIBLIBS" 14473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14474/* end confdefs.h. */ 14475#include <tiffio.h> 14476int 14477main () 14478{ 14479(void) TIFFGetVersion() 14480 ; 14481 return 0; 14482} 14483_ACEOF 14484if ac_fn_cxx_try_link "$LINENO"; then : 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14486$as_echo "yes" >&6; } 14487 14488$as_echo "#define WITH_LIBTIFF /**/" >>confdefs.h 14489 14490 TIFFLIBS="-ltiff $JPEGLIBS $ZLIBLIBS" 14491 14492else 14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14494$as_echo "no" >&6; } 14495fi 14496rm -f core conftest.err conftest.$ac_objext \ 14497 conftest$ac_exeext conftest.$ac_ext 14498 LIBS="$SAVELIBS" 14499fi 14500 14501 14502 14503 14504 14505 14506# Check whether --with-libpnginc was given. 14507if test "${with_libpnginc+set}" = set; then : 14508 withval=$with_libpnginc; case $withval in #( 14509 yes|no) : 14510 14511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libpnginc called without argument - will use default" >&5 14512$as_echo "$as_me: WARNING: --with-libpnginc called without argument - will use default" >&2;} 14513 ;; #( 14514 *) : 14515 14516 if test ! -d ${withval}; then 14517 as_fn_error $? "called with --with-libpnginc but libpng base directory ${withval} does not exist or is not a directory." "$LINENO" 5 14518 fi 14519 14520 CPPFLAGS="-I${withval}/include $CPPFLAGS" 14521 LDFLAGS="-L${withval}/lib $LDFLAGS" 14522 if test "x$dcmtk_cv_rpath_works" = "xyes"; then 14523 LDFLAGS="-Wl,-rpath,${withval}/lib $LDFLAGS" 14524 fi 14525 ;; 14526esac 14527 14528fi 14529 14530 14531for ac_header in libpng/png.h 14532do : 14533 ac_fn_cxx_check_header_mongrel "$LINENO" "libpng/png.h" "ac_cv_header_libpng_png_h" "$ac_includes_default" 14534if test "x$ac_cv_header_libpng_png_h" = xyes; then : 14535 cat >>confdefs.h <<_ACEOF 14536#define HAVE_LIBPNG_PNG_H 1 14537_ACEOF 14538 14539fi 14540 14541done 14542 14543 14544PNGLIBS="" 14545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include libpng support" >&5 14546$as_echo_n "checking whether to include libpng support... " >&6; } 14547 14548# Check whether --with-libpng was given. 14549if test "${with_libpng+set}" = set; then : 14550 withval=$with_libpng; case "$withval" in 14551 yes) 14552 if test "x$ZLIBLIBS" != x; then 14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14554$as_echo "yes" >&6; } 14555 14556$as_echo "#define WITH_LIBPNG /**/" >>confdefs.h 14557 14558 PNGLIBS="-lpng" 14559 else 14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no because libpng requires zlib" >&5 14561$as_echo "no because libpng requires zlib" >&6; } 14562 fi 14563 ;; 14564 *) 14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14566$as_echo "no" >&6; } 14567 ;; 14568 esac 14569else 14570 if test "x$ZLIBLIBS" != x; then 14571 SAVELIBS="$LIBS" 14572 LIBS="$LIBS -lpng $ZLIBLIBS" 14573 14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14575/* end confdefs.h. */ 14576#ifdef HAVE_LIBPNG_PNG_H 14577#include <libpng/png.h> 14578#else 14579#include <png.h> 14580#endif 14581int 14582main () 14583{ 14584(void) png_access_version_number() 14585 ; 14586 return 0; 14587} 14588_ACEOF 14589if ac_fn_cxx_try_link "$LINENO"; then : 14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14591$as_echo "yes" >&6; } 14592 14593$as_echo "#define WITH_LIBPNG /**/" >>confdefs.h 14594 14595 PNGLIBS="-lpng" 14596else 14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14598$as_echo "no" >&6; } 14599fi 14600rm -f core conftest.err conftest.$ac_objext \ 14601 conftest$ac_exeext conftest.$ac_ext 14602 14603 LIBS="$SAVELIBS" 14604 else 14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no because libpng requires zlib" >&5 14606$as_echo "no because libpng requires zlib" >&6; } 14607 fi 14608 14609fi 14610 14611 14612 14613 14614 14615# Check whether --with-libxmlinc was given. 14616if test "${with_libxmlinc+set}" = set; then : 14617 withval=$with_libxmlinc; case $withval in #( 14618 yes|no) : 14619 14620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libxmlinc called without argument - will use default" >&5 14621$as_echo "$as_me: WARNING: --with-libxmlinc called without argument - will use default" >&2;} 14622 ;; #( 14623 *) : 14624 14625 if test ! -d ${withval}; then 14626 as_fn_error $? "called with --with-libxmlinc but libxml base directory ${withval} does not exist or is not a directory." "$LINENO" 5 14627 fi 14628 14629 CPPFLAGS="-I${withval}/include $CPPFLAGS" 14630 LDFLAGS="-L${withval}/lib $LDFLAGS" 14631 if test "x$dcmtk_cv_rpath_works" = "xyes"; then 14632 LDFLAGS="-Wl,-rpath,${withval}/lib $LDFLAGS" 14633 fi 14634 ;; 14635esac 14636 14637fi 14638 14639 14640LIBXMLCFLAGS=`xml2-config --cflags 2>/dev/null` 14641if test "${LIBXMLCFLAGS+set}" = set; then 14642 CXXFLAGS="$LIBXMLCFLAGS $CXXFLAGS" 14643 CFLAGS="$LIBXMLCFLAGS $CFLAGS" 14644fi 14645LIBXMLLIBS=`xml2-config --libs 2>/dev/null` 14646 14647XMLLIBS="" 14648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include libxml support" >&5 14649$as_echo_n "checking whether to include libxml support... " >&6; } 14650 14651# Check whether --with-libxml was given. 14652if test "${with_libxml+set}" = set; then : 14653 withval=$with_libxml; case "$withval" in 14654 yes) 14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14656$as_echo "yes" >&6; } 14657 14658$as_echo "#define WITH_LIBXML /**/" >>confdefs.h 14659 14660 XMLLIBS=$LIBXMLLIBS 14661 ;; 14662 *) 14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14664$as_echo "no" >&6; } 14665 ;; 14666 esac 14667else 14668 SAVELIBS="$LIBS" 14669 LIBS="$LIBS $LIBXMLLIBS" 14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14671/* end confdefs.h. */ 14672#include <libxml/parser.h> 14673int 14674main () 14675{ 14676(void) xmlInitParser() 14677 ; 14678 return 0; 14679} 14680_ACEOF 14681if ac_fn_cxx_try_link "$LINENO"; then : 14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14683$as_echo "yes" >&6; } 14684 14685$as_echo "#define WITH_LIBXML /**/" >>confdefs.h 14686 14687 XMLLIBS=$LIBXMLLIBS 14688else 14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14690$as_echo "no" >&6; } 14691fi 14692rm -f core conftest.err conftest.$ac_objext \ 14693 conftest$ac_exeext conftest.$ac_ext 14694 LIBS="$SAVELIBS" 14695fi 14696 14697 14698 14699 14700 14701# Check whether --with-libwrapinc was given. 14702if test "${with_libwrapinc+set}" = set; then : 14703 withval=$with_libwrapinc; case $withval in #( 14704 yes|no) : 14705 14706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libwrapinc called without argument - will use default" >&5 14707$as_echo "$as_me: WARNING: --with-libwrapinc called without argument - will use default" >&2;} 14708 ;; #( 14709 *) : 14710 14711 if test ! -d ${withval}; then 14712 as_fn_error $? "called with --with-libwrapinc but libwrap base directory ${withval} does not exist or is not a directory." "$LINENO" 5 14713 fi 14714 14715 CPPFLAGS="-I${withval}/include $CPPFLAGS" 14716 LDFLAGS="-L${withval}/lib $LDFLAGS" 14717 if test "x$dcmtk_cv_rpath_works" = "xyes"; then 14718 LDFLAGS="-Wl,-rpath,${withval}/lib $LDFLAGS" 14719 fi 14720 ;; 14721esac 14722 14723fi 14724 14725 14726TCPWRAPPERLIBS="" 14727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include libwrap support" >&5 14728$as_echo_n "checking whether to include libwrap support... " >&6; } 14729 14730# Check whether --with-libwrap was given. 14731if test "${with_libwrap+set}" = set; then : 14732 withval=$with_libwrap; case "$withval" in 14733 yes) 14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14735$as_echo "yes" >&6; } 14736 14737$as_echo "#define WITH_TCPWRAPPER /**/" >>confdefs.h 14738 14739 TCPWRAPPERLIBS="-lwrap" 14740 ;; 14741 *) 14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14743$as_echo "no" >&6; } 14744 ;; 14745 esac 14746else 14747 SAVELIBS="$LIBS" 14748 LIBS="-lwrap $LIBS" 14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14750/* end confdefs.h. */ 14751#ifdef __cplusplus 14752 extern "C" { 14753 #endif 14754 #ifdef HAVE_STDIO_H 14755 /* on some platforms, tcpd.h needs stdio.h */ 14756 #include <stdio.h> 14757 #endif 14758 #ifdef HAVE_SYS_TYPES_H 14759 /* on some platforms, tcpd.h needs sys/types.h */ 14760 #include <sys/types.h> 14761 #endif 14762 #include <tcpd.h> 14763 #ifdef __cplusplus 14764 } 14765 #endif 14766 int deny_severity = 0; 14767 int allow_severity = 0; 14768int 14769main () 14770{ 14771struct request_info r; (void) hosts_access(&r) 14772 ; 14773 return 0; 14774} 14775_ACEOF 14776if ac_fn_cxx_try_link "$LINENO"; then : 14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14778$as_echo "yes" >&6; } 14779 14780$as_echo "#define WITH_TCPWRAPPER /**/" >>confdefs.h 14781 14782 TCPWRAPPERLIBS="-lwrap" 14783else 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14785$as_echo "no" >&6; } 14786fi 14787rm -f core conftest.err conftest.$ac_objext \ 14788 conftest$ac_exeext conftest.$ac_ext 14789 LIBS="$SAVELIBS" 14790fi 14791 14792 14793 14794 14795 14796 14797# Check whether --with-openjpeginc was given. 14798if test "${with_openjpeginc+set}" = set; then : 14799 withval=$with_openjpeginc; case $withval in #( 14800 yes|no) : 14801 14802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-openjpeginc called without argument - will use default" >&5 14803$as_echo "$as_me: WARNING: --with-openjpeginc called without argument - will use default" >&2;} 14804 ;; #( 14805 *) : 14806 14807 if test ! -d ${withval}; then 14808 as_fn_error $? "called with --with-openjpeginc but OpenJPEG base directory ${withval} does not exist or is not a directory." "$LINENO" 5 14809 fi 14810 14811 OPENJPEGINCLUDEPATH=`( 14812 eval echo "${withval}/include/openjpeg*" 14813 )` 14814 14815 if test ! -d "${OPENJPEGINCLUDEPATH}"; then 14816 OPENJPEGINCLUDEPATH="${withval}/include" 14817 fi 14818 14819 CPPFLAGS="-I${OPENJPEGINCLUDEPATH} $CPPFLAGS" 14820 LDFLAGS="-L${withval}/lib $LDFLAGS" 14821 if test "x$dcmtk_cv_rpath_works" = "xyes"; then 14822 LDFLAGS="-Wl,-rpath,${withval}/lib $LDFLAGS" 14823 fi 14824 ;; 14825esac 14826 14827fi 14828 14829 14830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include OpenJPEG support" >&5 14831$as_echo_n "checking whether to include OpenJPEG support... " >&6; } 14832 14833# Check whether --with-libwrap was given. 14834if test "${with_libwrap+set}" = set; then : 14835 withval=$with_libwrap; case "$withval" in 14836 yes) 14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14838$as_echo "yes" >&6; } 14839 14840$as_echo "#define WITH_OPENJPEG /**/" >>confdefs.h 14841 14842 OPENJPEGLIBS="-lopenjp2 $OPENJPEGLIBS" 14843 ;; 14844 *) 14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14846$as_echo "no" >&6; } 14847 ;; 14848 esac 14849else 14850 SAVELIBS="$LIBS" 14851 LIBS="-lopenjp2 $OPENJPEGLIBS $LIBS" 14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14853/* end confdefs.h. */ 14854#include <openjpeg.h> 14855int 14856main () 14857{ 14858(void) opj_version() 14859 ; 14860 return 0; 14861} 14862_ACEOF 14863if ac_fn_cxx_try_link "$LINENO"; then : 14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14865$as_echo "yes" >&6; } 14866 14867$as_echo "#define WITH_OPENJPEG /**/" >>confdefs.h 14868 14869 OPENJPEGLIBS="-lopenjp2 $OPENJPEGLIBS" 14870else 14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14872$as_echo "no" >&6; } 14873fi 14874rm -f core conftest.err conftest.$ac_objext \ 14875 conftest$ac_exeext conftest.$ac_ext 14876 LIBS="$SAVELIBS" 14877fi 14878 14879 14880 14881 14882 14883 14884# Check whether --with-libsndfileinc was given. 14885if test "${with_libsndfileinc+set}" = set; then : 14886 withval=$with_libsndfileinc; case $withval in #( 14887 yes|no) : 14888 14889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libsndfileinc called without argument - will use default" >&5 14890$as_echo "$as_me: WARNING: --with-libsndfileinc called without argument - will use default" >&2;} 14891 ;; #( 14892 *) : 14893 14894 if test ! -d ${withval}; then 14895 as_fn_error $? "called with --with-libsndfileinc but libsndfile base directory ${withval} does not exist or is not a directory." "$LINENO" 5 14896 fi 14897 14898 CPPFLAGS="-I${withval}/include $CPPFLAGS" 14899 LDFLAGS="-L${withval}/lib $LDFLAGS" 14900 if test "x$dcmtk_cv_rpath_works" = "xyes"; then 14901 LDFLAGS="-Wl,-rpath,${withval}/lib $LDFLAGS" 14902 fi 14903 ;; 14904esac 14905 14906fi 14907 14908 14909SNDFILELIBS="" 14910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include libsndfile support" >&5 14911$as_echo_n "checking whether to include libsndfile support... " >&6; } 14912 14913# Check whether --with-libsndfile was given. 14914if test "${with_libsndfile+set}" = set; then : 14915 withval=$with_libsndfile; case "$withval" in 14916 yes) 14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14918$as_echo "yes" >&6; } 14919 14920$as_echo "#define WITH_SNDFILE /**/" >>confdefs.h 14921 14922 SNDFILELIBS="-lsndfile" 14923 ;; 14924 *) 14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14926$as_echo "no" >&6; } 14927 ;; 14928 esac 14929else 14930 SAVELIBS="$LIBS" 14931 LIBS="$LIBS -lsndfile" 14932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14933/* end confdefs.h. */ 14934#include <sndfile.h> 14935int 14936main () 14937{ 14938char buffer [128]; sf_command (NULL, SFC_GET_LIB_VERSION, buffer, sizeof (buffer)); 14939 ; 14940 return 0; 14941} 14942_ACEOF 14943if ac_fn_cxx_try_link "$LINENO"; then : 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14945$as_echo "yes" >&6; } 14946 14947$as_echo "#define WITH_SNDFILE /**/" >>confdefs.h 14948 14949 SNDFILELIBS="-lsndfile" 14950else 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14952$as_echo "no" >&6; } 14953fi 14954rm -f core conftest.err conftest.$ac_objext \ 14955 conftest$ac_exeext conftest.$ac_ext 14956 LIBS="$SAVELIBS" 14957 14958fi 14959 14960 14961 14962 14963 14964# Check whether --with-libiconvinc was given. 14965if test "${with_libiconvinc+set}" = set; then : 14966 withval=$with_libiconvinc; case $withval in #( 14967 yes|no) : 14968 14969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libiconvinc called without argument - will use default" >&5 14970$as_echo "$as_me: WARNING: --with-libiconvinc called without argument - will use default" >&2;} 14971 ;; #( 14972 *) : 14973 14974 if test ! -d ${withval}; then 14975 as_fn_error $? "called with --with-libiconvinc but libiconv base directory ${withval} does not exist or is not a directory." "$LINENO" 5 14976 fi 14977 14978 CPPFLAGS="-I${withval}/include $CPPFLAGS" 14979 LDFLAGS="-L${withval}/lib $LDFLAGS" 14980 if test "x$dcmtk_cv_rpath_works" = "xyes"; then 14981 LDFLAGS="-Wl,-rpath,${withval}/lib $LDFLAGS" 14982 fi 14983 ;; 14984esac 14985 14986fi 14987 14988 14989WITH_LIBICONV=no 14990ICONVLIBS="" 14991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include libiconv support" >&5 14992$as_echo_n "checking whether to include libiconv support... " >&6; } 14993 14994# Check whether --with-libiconv was given. 14995if test "${with_libiconv+set}" = set; then : 14996 withval=$with_libiconv; case "$withval" in 14997 yes) 14998 WITH_LIBICONV=yes 14999 $as_echo "#define WITH_LIBICONV 1" >>confdefs.h 15000 15001 ICONVLIBS="-liconv -lcharset" 15002 ;; 15003 *) 15004 ;; 15005 esac 15006else 15007 SAVELIBS="$LIBS" 15008 LIBS="$LIBS -liconv -lcharset" 15009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15010/* end confdefs.h. */ 15011#include <iconv.h> 15012int 15013main () 15014{ 15015iconv_t cd = iconv_open("", ""); iconv(cd, 0, 0, 0, 0); iconv_close(cd); 15016 ; 15017 return 0; 15018} 15019_ACEOF 15020if ac_fn_cxx_try_link "$LINENO"; then : 15021 WITH_LIBICONV=yes 15022 $as_echo "#define WITH_LIBICONV 1" >>confdefs.h 15023 15024 ICONVLIBS="-liconv -lcharset" 15025fi 15026rm -f core conftest.err conftest.$ac_objext \ 15027 conftest$ac_exeext conftest.$ac_ext 15028 LIBS="$SAVELIBS" 15029fi 15030 15031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LIBICONV" >&5 15032$as_echo "$WITH_LIBICONV" >&6; } 15033 15034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the second argument to iconv() is const" >&5 15035$as_echo_n "checking whether the second argument to iconv() is const... " >&6; } 15036SAVELIBS="$LIBS" 15037LIBS="$LIBS $ICONVLIBS" 15038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15039/* end confdefs.h. */ 15040#include <iconv.h> 15041int 15042main () 15043{ 15044iconv_t cd = iconv_open("", ""); const char *in = 0; iconv(cd, &in, 0, 0, 0); iconv_close(cd); 15045 ; 15046 return 0; 15047} 15048_ACEOF 15049if ac_fn_cxx_try_compile "$LINENO"; then : 15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15051$as_echo "yes" >&6; } 15052 15053$as_echo "#define LIBICONV_SECOND_ARGUMENT_CONST /**/" >>confdefs.h 15054 15055else 15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15057$as_echo "no" >&6; } 15058fi 15059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15060LIBS="$SAVELIBS" 15061 15062 15063WITH_STDLIBC_ICONV=no 15064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C standard library provides iconv functionality" >&5 15065$as_echo_n "checking whether the C standard library provides iconv functionality... " >&6; } 15066SAVELIBS="$LIBS" 15067LIBS="" 15068cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15069/* end confdefs.h. */ 15070#include <iconv.h> 15071int 15072main () 15073{ 15074iconv_t cd=iconv_open("","");iconv(cd,0,0,0,0);iconv_close(cd); 15075 ; 15076 return 0; 15077} 15078_ACEOF 15079if ac_fn_cxx_try_link "$LINENO"; then : 15080 WITH_STDLIBC_ICONV=yes 15081 $as_echo "#define WITH_STDLIBC_ICONV 1" >>confdefs.h 15082 15083fi 15084rm -f core conftest.err conftest.$ac_objext \ 15085 conftest$ac_exeext conftest.$ac_ext 15086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_STDLIBC_ICONV" >&5 15087$as_echo "$WITH_STDLIBC_ICONV" >&6; } 15088LIBS="$SAVELIBS" 15089 15090 15091 15092 15093# Check whether --with-libicuinc was given. 15094if test "${with_libicuinc+set}" = set; then : 15095 withval=$with_libicuinc; case $withval in #( 15096 yes|no) : 15097 15098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libicuinc called without argument - will use default" >&5 15099$as_echo "$as_me: WARNING: --with-libicuinc called without argument - will use default" >&2;} 15100 ;; #( 15101 *) : 15102 15103 if test ! -d ${withval}; then 15104 as_fn_error $? "called with --with-libicuinc but libicu base directory ${withval} does not exist or is not a directory." "$LINENO" 5 15105 fi 15106 15107 CPPFLAGS="-I${withval}/include $CPPFLAGS" 15108 LDFLAGS="-L${withval}/lib $LDFLAGS" 15109 if test "x$dcmtk_cv_rpath_works" = "xyes"; then 15110 LDFLAGS="-Wl,-rpath,${withval}/lib $LDFLAGS" 15111 fi 15112 ;; 15113esac 15114 15115fi 15116 15117 15118WITH_LIBICU=no 15119 15120# Check whether --with-libicu was given. 15121if test "${with_libicu+set}" = set; then : 15122 withval=$with_libicu; { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include ICU support" >&5 15123$as_echo_n "checking whether to include ICU support... " >&6; } 15124 case "$withval" in 15125 yes) 15126 WITH_LIBICU=yes 15127 $as_echo "#define WITH_LIBICU 1" >>confdefs.h 15128 15129 ICULIBS="-licui18n -licuuc -licudata" 15130 ;; 15131 *) 15132 ;; 15133 esac 15134else 15135 15136 if test -z "$ICU_CONFIG"; then 15137 # Extract the first word of "icu-config", so it can be a program name with args. 15138set dummy icu-config; ac_word=$2 15139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15140$as_echo_n "checking for $ac_word... " >&6; } 15141if ${ac_cv_path_ICU_CONFIG+:} false; then : 15142 $as_echo_n "(cached) " >&6 15143else 15144 case $ICU_CONFIG in 15145 [\\/]* | ?:[\\/]*) 15146 ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path. 15147 ;; 15148 *) 15149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15150for as_dir in $PATH 15151do 15152 IFS=$as_save_IFS 15153 test -z "$as_dir" && as_dir=. 15154 for ac_exec_ext in '' $ac_executable_extensions; do 15155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15156 ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15158 break 2 15159 fi 15160done 15161 done 15162IFS=$as_save_IFS 15163 15164 test -z "$ac_cv_path_ICU_CONFIG" && ac_cv_path_ICU_CONFIG="no" 15165 ;; 15166esac 15167fi 15168ICU_CONFIG=$ac_cv_path_ICU_CONFIG 15169if test -n "$ICU_CONFIG"; then 15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5 15171$as_echo "$ICU_CONFIG" >&6; } 15172else 15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15174$as_echo "no" >&6; } 15175fi 15176 15177 15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include ICU support" >&5 15179$as_echo_n "checking whether to include ICU support... " >&6; } 15180 fi 15181 if [ ! "$ICU_CONFIG" = "no" ]; then 15182 ICU_VERSION=`$ICU_CONFIG --version` 15183 VERSION_CHECK=`expr $ICU_VERSION \>\= 3.4.1` 15184 if test VERSION_CHECK=1; then 15185 WITH_LIBICU=yes 15186 $as_echo "#define WITH_LIBICU 1" >>confdefs.h 15187 15188 ICUINCLUDES=`$ICU_CONFIG --cppflags` 15189 ICULIBS=`$ICU_CONFIG --ldflags` 15190 fi 15191 fi 15192 15193fi 15194 15195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LIBICU" >&5 15196$as_echo "$WITH_LIBICU" >&6; } 15197 15198 15199 15200 15201CHARCONVINCLUDES="" 15202CHARCONVLIBS="" 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fixed iconv conversion flags" >&5 15213$as_echo_n "checking fixed iconv conversion flags... " >&6; } 15214if test "$WITH_STDLIBC_ICONV" != "yes"; then 15215 SAVELIBS="$LIBS" 15216 LIBS="$LIBS $ICONVLIBS" 15217fi 15218if test "$cross_compiling" = yes; then : 15219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15221as_fn_error $? "cannot run test program while cross compiling 15222See \`config.log' for more details" "$LINENO" 5; } 15223else 15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15225/* end confdefs.h. */ 15226#include "tests/iconv.cc" 15227_ACEOF 15228if ac_fn_cxx_try_run "$LINENO"; then : 15229 15230 15231cat >>confdefs.h <<_ACEOF 15232#define DCMTK_FIXED_ICONV_CONVERSION_FLAGS `./conftest$EXEEXT` 15233_ACEOF 15234 15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 15236$as_echo "" >&6; } 15237 15238else 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 15240$as_echo "unknown" >&6; } 15241 15242fi 15243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15244 conftest.$ac_objext conftest.beam conftest.$ac_ext 15245fi 15246 15247if test "$WITH_STDLIBC_ICONV" != "yes"; then 15248 LIBS="$SAVELIBS" 15249fi 15250 15251if test "$WITH_STDLIBC_ICONV" == "yes"; then 15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv_open() accepts \"\" as an argument" >&5 15253$as_echo_n "checking whether iconv_open() accepts \"\" as an argument... " >&6; } 15254 if test "$cross_compiling" = yes; then : 15255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15257as_fn_error $? "cannot run test program while cross compiling 15258See \`config.log' for more details" "$LINENO" 5; } 15259else 15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15261/* end confdefs.h. */ 15262#include "tests/lciconv.cc" 15263_ACEOF 15264if ac_fn_cxx_try_run "$LINENO"; then : 15265 15266 15267$as_echo "#define DCMTK_STDLIBC_ICONV_HAS_DEFAULT_ENCODING 1" >>confdefs.h 15268 15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15270$as_echo "yes" >&6; } 15271 15272else 15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15274$as_echo "no" >&6; } 15275 15276fi 15277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15278 conftest.$ac_objext conftest.beam conftest.$ac_ext 15279fi 15280 15281fi 15282 15283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable character set conversion support" >&5 15284$as_echo_n "checking whether to enable character set conversion support... " >&6; } 15285# Check whether --enable-charconv was given. 15286if test "${enable_charconv+set}" = set; then : 15287 enableval=$enable_charconv; case "$enableval" in 15288 yes|auto) 15289 15290if test "$WITH_LIBICONV" = "yes"; then 15291 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=libiconv" >&5 15293$as_echo "yes, type=libiconv" >&6; } 15294 CHARCONVLIBS="$ICONVLIBS" 15295 DCMTK_ENABLE_CHARSET_CONVERSION="DCMTK_CHARSET_CONVERSION_ICONV" 15296 15297elif test "$WITH_LIBICU" = "yes"; then 15298 15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=libicu" >&5 15300$as_echo "yes, type=libicu" >&6; } 15301 CHARCONVINCLUDES="$ICUINCLUDES" 15302 CHARCONVLIBS="$ICULIBS" 15303 DCMTK_ENABLE_CHARSET_CONVERSION="DCMTK_CHARSET_CONVERSION_ICU" 15304 15305elif test "$WITH_STDLIBC_ICONV" = "yes"; then 15306 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=stdlibc" >&5 15308$as_echo "yes, type=stdlibc" >&6; } 15309 DCMTK_ENABLE_CHARSET_CONVERSION="DCMTK_CHARSET_CONVERSION_STDLIBC_ICONV" 15310 15311else 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15313$as_echo "no" >&6; } 15314fi 15315 15316 ;; 15317 libiconv) 15318 15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=libiconv" >&5 15320$as_echo "yes, type=libiconv" >&6; } 15321 CHARCONVLIBS="$ICONVLIBS" 15322 DCMTK_ENABLE_CHARSET_CONVERSION="DCMTK_CHARSET_CONVERSION_ICONV" 15323 15324 ;; 15325 libicu) 15326 15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=libicu" >&5 15328$as_echo "yes, type=libicu" >&6; } 15329 CHARCONVINCLUDES="$ICUINCLUDES" 15330 CHARCONVLIBS="$ICULIBS" 15331 DCMTK_ENABLE_CHARSET_CONVERSION="DCMTK_CHARSET_CONVERSION_ICU" 15332 15333 ;; 15334 stdlibc) 15335 15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=stdlibc" >&5 15337$as_echo "yes, type=stdlibc" >&6; } 15338 DCMTK_ENABLE_CHARSET_CONVERSION="DCMTK_CHARSET_CONVERSION_STDLIBC_ICONV" 15339 15340 ;; 15341 no) 15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15343$as_echo "no" >&6; } 15344 ;; 15345 *) 15346 15347if test "$WITH_LIBICONV" = "yes"; then 15348 15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=libiconv" >&5 15350$as_echo "yes, type=libiconv" >&6; } 15351 CHARCONVLIBS="$ICONVLIBS" 15352 DCMTK_ENABLE_CHARSET_CONVERSION="DCMTK_CHARSET_CONVERSION_ICONV" 15353 15354elif test "$WITH_LIBICU" = "yes"; then 15355 15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=libicu" >&5 15357$as_echo "yes, type=libicu" >&6; } 15358 CHARCONVINCLUDES="$ICUINCLUDES" 15359 CHARCONVLIBS="$ICULIBS" 15360 DCMTK_ENABLE_CHARSET_CONVERSION="DCMTK_CHARSET_CONVERSION_ICU" 15361 15362elif test "$WITH_STDLIBC_ICONV" = "yes"; then 15363 15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=stdlibc" >&5 15365$as_echo "yes, type=stdlibc" >&6; } 15366 DCMTK_ENABLE_CHARSET_CONVERSION="DCMTK_CHARSET_CONVERSION_STDLIBC_ICONV" 15367 15368else 15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15370$as_echo "no" >&6; } 15371fi 15372 15373 ;; 15374 esac 15375else 15376 15377if test "$WITH_LIBICONV" = "yes"; then 15378 15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=libiconv" >&5 15380$as_echo "yes, type=libiconv" >&6; } 15381 CHARCONVLIBS="$ICONVLIBS" 15382 DCMTK_ENABLE_CHARSET_CONVERSION="DCMTK_CHARSET_CONVERSION_ICONV" 15383 15384elif test "$WITH_LIBICU" = "yes"; then 15385 15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=libicu" >&5 15387$as_echo "yes, type=libicu" >&6; } 15388 CHARCONVINCLUDES="$ICUINCLUDES" 15389 CHARCONVLIBS="$ICULIBS" 15390 DCMTK_ENABLE_CHARSET_CONVERSION="DCMTK_CHARSET_CONVERSION_ICU" 15391 15392elif test "$WITH_STDLIBC_ICONV" = "yes"; then 15393 15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=stdlibc" >&5 15395$as_echo "yes, type=stdlibc" >&6; } 15396 DCMTK_ENABLE_CHARSET_CONVERSION="DCMTK_CHARSET_CONVERSION_STDLIBC_ICONV" 15397 15398else 15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15400$as_echo "no" >&6; } 15401fi 15402 15403 15404fi 15405 15406 15407 15408 15409 15410if [ ! -z "$DCMTK_ENABLE_CHARSET_CONVERSION" ]; then 15411 15412cat >>confdefs.h <<_ACEOF 15413#define DCMTK_ENABLE_CHARSET_CONVERSION $DCMTK_ENABLE_CHARSET_CONVERSION 15414_ACEOF 15415 15416fi 15417 15418 15419 15420ac_enable_cxx11="no" 15421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable C++11 support" >&5 15422$as_echo_n "checking whether to enable C++11 support... " >&6; } 15423# Check whether --enable-cxx11 was given. 15424if test "${enable_cxx11+set}" = set; then : 15425 enableval=$enable_cxx11; case "$enableval" in 15426 yes) 15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 15428$as_echo "" >&6; } 15429 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=false 15430 ac_ext=cpp 15431ac_cpp='$CXXCPP $CPPFLAGS' 15432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15435 ac_success=no 15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 15437$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } 15438if ${ax_cv_cxx_compile_cxx11+:} false; then : 15439 $as_echo_n "(cached) " >&6 15440else 15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15442/* end confdefs.h. */ 15443 15444 15445// If the compiler admits that it is not ready for C++11, why torture it? 15446// Hopefully, this will speed up the test. 15447 15448#ifndef __cplusplus 15449 15450#error "This is not a C++ compiler" 15451 15452#elif __cplusplus < 201103L 15453 15454#error "This is not a C++11 compiler" 15455 15456#else 15457 15458namespace cxx11 15459{ 15460 15461 namespace test_static_assert 15462 { 15463 15464 template <typename T> 15465 struct check 15466 { 15467 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 15468 }; 15469 15470 } 15471 15472 namespace test_final_override 15473 { 15474 15475 struct Base 15476 { 15477 virtual void f() {} 15478 }; 15479 15480 struct Derived : public Base 15481 { 15482 virtual void f() override {} 15483 }; 15484 15485 } 15486 15487 namespace test_double_right_angle_brackets 15488 { 15489 15490 template < typename T > 15491 struct check {}; 15492 15493 typedef check<void> single_type; 15494 typedef check<check<void>> double_type; 15495 typedef check<check<check<void>>> triple_type; 15496 typedef check<check<check<check<void>>>> quadruple_type; 15497 15498 } 15499 15500 namespace test_decltype 15501 { 15502 15503 int 15504 f() 15505 { 15506 int a = 1; 15507 decltype(a) b = 2; 15508 return a + b; 15509 } 15510 15511 } 15512 15513 namespace test_type_deduction 15514 { 15515 15516 template < typename T1, typename T2 > 15517 struct is_same 15518 { 15519 static const bool value = false; 15520 }; 15521 15522 template < typename T > 15523 struct is_same<T, T> 15524 { 15525 static const bool value = true; 15526 }; 15527 15528 template < typename T1, typename T2 > 15529 auto 15530 add(T1 a1, T2 a2) -> decltype(a1 + a2) 15531 { 15532 return a1 + a2; 15533 } 15534 15535 int 15536 test(const int c, volatile int v) 15537 { 15538 static_assert(is_same<int, decltype(0)>::value == true, ""); 15539 static_assert(is_same<int, decltype(c)>::value == false, ""); 15540 static_assert(is_same<int, decltype(v)>::value == false, ""); 15541 auto ac = c; 15542 auto av = v; 15543 auto sumi = ac + av + 'x'; 15544 auto sumf = ac + av + 1.0; 15545 static_assert(is_same<int, decltype(ac)>::value == true, ""); 15546 static_assert(is_same<int, decltype(av)>::value == true, ""); 15547 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 15548 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 15549 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 15550 return (sumf > 0.0) ? sumi : add(c, v); 15551 } 15552 15553 } 15554 15555 namespace test_noexcept 15556 { 15557 15558 int f() { return 0; } 15559 int g() noexcept { return 0; } 15560 15561 static_assert(noexcept(f()) == false, ""); 15562 static_assert(noexcept(g()) == true, ""); 15563 15564 } 15565 15566 namespace test_constexpr 15567 { 15568 15569 template < typename CharT > 15570 unsigned long constexpr 15571 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 15572 { 15573 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 15574 } 15575 15576 template < typename CharT > 15577 unsigned long constexpr 15578 strlen_c(const CharT *const s) noexcept 15579 { 15580 return strlen_c_r(s, 0UL); 15581 } 15582 15583 static_assert(strlen_c("") == 0UL, ""); 15584 static_assert(strlen_c("1") == 1UL, ""); 15585 static_assert(strlen_c("example") == 7UL, ""); 15586 static_assert(strlen_c("another\0example") == 7UL, ""); 15587 15588 } 15589 15590 namespace test_rvalue_references 15591 { 15592 15593 template < int N > 15594 struct answer 15595 { 15596 static constexpr int value = N; 15597 }; 15598 15599 answer<1> f(int&) { return answer<1>(); } 15600 answer<2> f(const int&) { return answer<2>(); } 15601 answer<3> f(int&&) { return answer<3>(); } 15602 15603 void 15604 test() 15605 { 15606 int i = 0; 15607 const int c = 0; 15608 static_assert(decltype(f(i))::value == 1, ""); 15609 static_assert(decltype(f(c))::value == 2, ""); 15610 static_assert(decltype(f(0))::value == 3, ""); 15611 } 15612 15613 } 15614 15615 namespace test_uniform_initialization 15616 { 15617 15618 struct test 15619 { 15620 static const int zero {}; 15621 static const int one {1}; 15622 }; 15623 15624 static_assert(test::zero == 0, ""); 15625 static_assert(test::one == 1, ""); 15626 15627 } 15628 15629 namespace test_lambdas 15630 { 15631 15632 void 15633 test1() 15634 { 15635 auto lambda1 = [](){}; 15636 auto lambda2 = lambda1; 15637 lambda1(); 15638 lambda2(); 15639 } 15640 15641 int 15642 test2() 15643 { 15644 auto a = [](int i, int j){ return i + j; }(1, 2); 15645 auto b = []() -> int { return '0'; }(); 15646 auto c = [=](){ return a + b; }(); 15647 auto d = [&](){ return c; }(); 15648 auto e = [a, &b](int x) mutable { 15649 const auto identity = [](int y){ return y; }; 15650 for (auto i = 0; i < a; ++i) 15651 a += b--; 15652 return x + identity(a + b); 15653 }(0); 15654 return a + b + c + d + e; 15655 } 15656 15657 int 15658 test3() 15659 { 15660 const auto nullary = [](){ return 0; }; 15661 const auto unary = [](int x){ return x; }; 15662 using nullary_t = decltype(nullary); 15663 using unary_t = decltype(unary); 15664 const auto higher1st = [](nullary_t f){ return f(); }; 15665 const auto higher2nd = [unary](nullary_t f1){ 15666 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 15667 }; 15668 return higher1st(nullary) + higher2nd(nullary)(unary); 15669 } 15670 15671 } 15672 15673 namespace test_variadic_templates 15674 { 15675 15676 template <int...> 15677 struct sum; 15678 15679 template <int N0, int... N1toN> 15680 struct sum<N0, N1toN...> 15681 { 15682 static constexpr auto value = N0 + sum<N1toN...>::value; 15683 }; 15684 15685 template <> 15686 struct sum<> 15687 { 15688 static constexpr auto value = 0; 15689 }; 15690 15691 static_assert(sum<>::value == 0, ""); 15692 static_assert(sum<1>::value == 1, ""); 15693 static_assert(sum<23>::value == 23, ""); 15694 static_assert(sum<1, 2>::value == 3, ""); 15695 static_assert(sum<5, 5, 11>::value == 21, ""); 15696 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 15697 15698 } 15699 15700 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 15701 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 15702 // because of this. 15703 namespace test_template_alias_sfinae 15704 { 15705 15706 struct foo {}; 15707 15708 template<typename T> 15709 using member = typename T::member_type; 15710 15711 template<typename T> 15712 void func(...) {} 15713 15714 template<typename T> 15715 void func(member<T>*) {} 15716 15717 void test(); 15718 15719 void test() { func<foo>(0); } 15720 15721 } 15722 15723} // namespace cxx11 15724 15725#endif // __cplusplus >= 201103L 15726 15727 15728 15729_ACEOF 15730if ac_fn_cxx_try_compile "$LINENO"; then : 15731 ax_cv_cxx_compile_cxx11=yes 15732else 15733 ax_cv_cxx_compile_cxx11=no 15734fi 15735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15736fi 15737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 15738$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } 15739 if test x$ax_cv_cxx_compile_cxx11 = xyes; then 15740 ac_success=yes 15741 fi 15742 15743 15744 15745 if test x$ac_success = xno; then 15746 for alternative in ${ax_cxx_compile_alternatives}; do 15747 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 15748 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 15750$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 15751if eval \${$cachevar+:} false; then : 15752 $as_echo_n "(cached) " >&6 15753else 15754 ac_save_CXX="$CXX" 15755 CXX="$CXX $switch" 15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15757/* end confdefs.h. */ 15758 15759 15760// If the compiler admits that it is not ready for C++11, why torture it? 15761// Hopefully, this will speed up the test. 15762 15763#ifndef __cplusplus 15764 15765#error "This is not a C++ compiler" 15766 15767#elif __cplusplus < 201103L 15768 15769#error "This is not a C++11 compiler" 15770 15771#else 15772 15773namespace cxx11 15774{ 15775 15776 namespace test_static_assert 15777 { 15778 15779 template <typename T> 15780 struct check 15781 { 15782 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 15783 }; 15784 15785 } 15786 15787 namespace test_final_override 15788 { 15789 15790 struct Base 15791 { 15792 virtual void f() {} 15793 }; 15794 15795 struct Derived : public Base 15796 { 15797 virtual void f() override {} 15798 }; 15799 15800 } 15801 15802 namespace test_double_right_angle_brackets 15803 { 15804 15805 template < typename T > 15806 struct check {}; 15807 15808 typedef check<void> single_type; 15809 typedef check<check<void>> double_type; 15810 typedef check<check<check<void>>> triple_type; 15811 typedef check<check<check<check<void>>>> quadruple_type; 15812 15813 } 15814 15815 namespace test_decltype 15816 { 15817 15818 int 15819 f() 15820 { 15821 int a = 1; 15822 decltype(a) b = 2; 15823 return a + b; 15824 } 15825 15826 } 15827 15828 namespace test_type_deduction 15829 { 15830 15831 template < typename T1, typename T2 > 15832 struct is_same 15833 { 15834 static const bool value = false; 15835 }; 15836 15837 template < typename T > 15838 struct is_same<T, T> 15839 { 15840 static const bool value = true; 15841 }; 15842 15843 template < typename T1, typename T2 > 15844 auto 15845 add(T1 a1, T2 a2) -> decltype(a1 + a2) 15846 { 15847 return a1 + a2; 15848 } 15849 15850 int 15851 test(const int c, volatile int v) 15852 { 15853 static_assert(is_same<int, decltype(0)>::value == true, ""); 15854 static_assert(is_same<int, decltype(c)>::value == false, ""); 15855 static_assert(is_same<int, decltype(v)>::value == false, ""); 15856 auto ac = c; 15857 auto av = v; 15858 auto sumi = ac + av + 'x'; 15859 auto sumf = ac + av + 1.0; 15860 static_assert(is_same<int, decltype(ac)>::value == true, ""); 15861 static_assert(is_same<int, decltype(av)>::value == true, ""); 15862 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 15863 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 15864 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 15865 return (sumf > 0.0) ? sumi : add(c, v); 15866 } 15867 15868 } 15869 15870 namespace test_noexcept 15871 { 15872 15873 int f() { return 0; } 15874 int g() noexcept { return 0; } 15875 15876 static_assert(noexcept(f()) == false, ""); 15877 static_assert(noexcept(g()) == true, ""); 15878 15879 } 15880 15881 namespace test_constexpr 15882 { 15883 15884 template < typename CharT > 15885 unsigned long constexpr 15886 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 15887 { 15888 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 15889 } 15890 15891 template < typename CharT > 15892 unsigned long constexpr 15893 strlen_c(const CharT *const s) noexcept 15894 { 15895 return strlen_c_r(s, 0UL); 15896 } 15897 15898 static_assert(strlen_c("") == 0UL, ""); 15899 static_assert(strlen_c("1") == 1UL, ""); 15900 static_assert(strlen_c("example") == 7UL, ""); 15901 static_assert(strlen_c("another\0example") == 7UL, ""); 15902 15903 } 15904 15905 namespace test_rvalue_references 15906 { 15907 15908 template < int N > 15909 struct answer 15910 { 15911 static constexpr int value = N; 15912 }; 15913 15914 answer<1> f(int&) { return answer<1>(); } 15915 answer<2> f(const int&) { return answer<2>(); } 15916 answer<3> f(int&&) { return answer<3>(); } 15917 15918 void 15919 test() 15920 { 15921 int i = 0; 15922 const int c = 0; 15923 static_assert(decltype(f(i))::value == 1, ""); 15924 static_assert(decltype(f(c))::value == 2, ""); 15925 static_assert(decltype(f(0))::value == 3, ""); 15926 } 15927 15928 } 15929 15930 namespace test_uniform_initialization 15931 { 15932 15933 struct test 15934 { 15935 static const int zero {}; 15936 static const int one {1}; 15937 }; 15938 15939 static_assert(test::zero == 0, ""); 15940 static_assert(test::one == 1, ""); 15941 15942 } 15943 15944 namespace test_lambdas 15945 { 15946 15947 void 15948 test1() 15949 { 15950 auto lambda1 = [](){}; 15951 auto lambda2 = lambda1; 15952 lambda1(); 15953 lambda2(); 15954 } 15955 15956 int 15957 test2() 15958 { 15959 auto a = [](int i, int j){ return i + j; }(1, 2); 15960 auto b = []() -> int { return '0'; }(); 15961 auto c = [=](){ return a + b; }(); 15962 auto d = [&](){ return c; }(); 15963 auto e = [a, &b](int x) mutable { 15964 const auto identity = [](int y){ return y; }; 15965 for (auto i = 0; i < a; ++i) 15966 a += b--; 15967 return x + identity(a + b); 15968 }(0); 15969 return a + b + c + d + e; 15970 } 15971 15972 int 15973 test3() 15974 { 15975 const auto nullary = [](){ return 0; }; 15976 const auto unary = [](int x){ return x; }; 15977 using nullary_t = decltype(nullary); 15978 using unary_t = decltype(unary); 15979 const auto higher1st = [](nullary_t f){ return f(); }; 15980 const auto higher2nd = [unary](nullary_t f1){ 15981 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 15982 }; 15983 return higher1st(nullary) + higher2nd(nullary)(unary); 15984 } 15985 15986 } 15987 15988 namespace test_variadic_templates 15989 { 15990 15991 template <int...> 15992 struct sum; 15993 15994 template <int N0, int... N1toN> 15995 struct sum<N0, N1toN...> 15996 { 15997 static constexpr auto value = N0 + sum<N1toN...>::value; 15998 }; 15999 16000 template <> 16001 struct sum<> 16002 { 16003 static constexpr auto value = 0; 16004 }; 16005 16006 static_assert(sum<>::value == 0, ""); 16007 static_assert(sum<1>::value == 1, ""); 16008 static_assert(sum<23>::value == 23, ""); 16009 static_assert(sum<1, 2>::value == 3, ""); 16010 static_assert(sum<5, 5, 11>::value == 21, ""); 16011 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 16012 16013 } 16014 16015 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 16016 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 16017 // because of this. 16018 namespace test_template_alias_sfinae 16019 { 16020 16021 struct foo {}; 16022 16023 template<typename T> 16024 using member = typename T::member_type; 16025 16026 template<typename T> 16027 void func(...) {} 16028 16029 template<typename T> 16030 void func(member<T>*) {} 16031 16032 void test(); 16033 16034 void test() { func<foo>(0); } 16035 16036 } 16037 16038} // namespace cxx11 16039 16040#endif // __cplusplus >= 201103L 16041 16042 16043 16044_ACEOF 16045if ac_fn_cxx_try_compile "$LINENO"; then : 16046 eval $cachevar=yes 16047else 16048 eval $cachevar=no 16049fi 16050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16051 CXX="$ac_save_CXX" 16052fi 16053eval ac_res=\$$cachevar 16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16055$as_echo "$ac_res" >&6; } 16056 if eval test x\$$cachevar = xyes; then 16057 CXX="$CXX $switch" 16058 if test -n "$CXXCPP" ; then 16059 CXXCPP="$CXXCPP $switch" 16060 fi 16061 ac_success=yes 16062 break 16063 fi 16064 done 16065 if test x$ac_success = xyes; then 16066 break 16067 fi 16068 done 16069 fi 16070 ac_ext=cpp 16071ac_cpp='$CXXCPP $CPPFLAGS' 16072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16075 16076 if test x$ax_cxx_compile_cxx11_required = xtrue; then 16077 if test x$ac_success = xno; then 16078 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 16079 fi 16080 fi 16081 if test x$ac_success = xno; then 16082 HAVE_CXX11=0 16083 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 16084$as_echo "$as_me: No compiler with C++11 support was found" >&6;} 16085 else 16086 HAVE_CXX11=1 16087 16088$as_echo "#define HAVE_CXX11 1" >>confdefs.h 16089 16090 fi 16091 16092 16093 if test "$HAVE_CXX11 == 1"; then 16094 ac_enable_cxx11="yes" 16095 fi 16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable C++11 support" >&5 16097$as_echo_n "checking whether to enable C++11 support... " >&6; } 16098 ;; 16099 16100 *) 16101 ac_enable_cxx11="no" 16102 ;; 16103 esac 16104 16105fi 16106 16107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_cxx11" >&5 16108$as_echo "$ac_enable_cxx11" >&6; } 16109 16110 16111 16112ac_enable_stl="no" 16113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable STL support" >&5 16114$as_echo_n "checking whether to enable STL support... " >&6; } 16115# Check whether --enable-stl was given. 16116if test "${enable_stl+set}" = set; then : 16117 enableval=$enable_stl; case "$enableval" in 16118 yes) 16119 ac_enable_stl="yes" 16120 ;; 16121 16122 *) 16123 ac_enable_stl="no" 16124 ;; 16125 esac 16126 16127fi 16128 16129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_stl" >&5 16130$as_echo "$ac_enable_stl" >&6; } 16131 16132 16133ac_enable_stl_vector="auto" 16134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable STL vector support" >&5 16135$as_echo_n "checking whether to enable STL vector support... " >&6; } 16136# Check whether --enable-stl-vector was given. 16137if test "${enable_stl_vector+set}" = set; then : 16138 enableval=$enable_stl_vector; case "$enableval" in 16139 yes) 16140 ac_enable_stl_vector="yes" 16141 ;; 16142 16143 *) 16144 ac_enable_stl_vector="no" 16145 ;; 16146 esac 16147 16148fi 16149 16150if test "$ac_enable_stl_vector" = "auto"; then 16151 ac_enable_stl_vector="$ac_enable_stl" 16152fi 16153if test "$ac_enable_stl_vector" = "yes"; then 16154 if test "$cross_compiling" = yes; then : 16155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16157as_fn_error $? "cannot run test program while cross compiling 16158See \`config.log' for more details" "$LINENO" 5; } 16159else 16160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16161/* end confdefs.h. */ 16162#include "tests/vector.cc" 16163_ACEOF 16164if ac_fn_cxx_try_run "$LINENO"; then : 16165 16166$as_echo "#define HAVE_STL_VECTOR /**/" >>confdefs.h 16167 16168else 16169 ac_enable_stl_vector="unsupported -> no" 16170fi 16171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16172 conftest.$ac_objext conftest.beam conftest.$ac_ext 16173fi 16174 16175fi 16176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_stl_vector" >&5 16177$as_echo "$ac_enable_stl_vector" >&6; } 16178 16179ac_enable_stl_algorithm="auto" 16180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable STL algorithm support" >&5 16181$as_echo_n "checking whether to enable STL algorithm support... " >&6; } 16182# Check whether --enable-stl-algorithm was given. 16183if test "${enable_stl_algorithm+set}" = set; then : 16184 enableval=$enable_stl_algorithm; case "$enableval" in 16185 yes) 16186 ac_enable_stl_algorithm="yes" 16187 ;; 16188 16189 *) 16190 ac_enable_stl_algorithm="no" 16191 ;; 16192 esac 16193 16194fi 16195 16196if test "$ac_enable_stl_algorithm" = "auto"; then 16197 ac_enable_stl_algorithm="$ac_enable_stl" 16198fi 16199if test "$ac_enable_stl_algorithm" = "yes"; then 16200 if test "$cross_compiling" = yes; then : 16201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16203as_fn_error $? "cannot run test program while cross compiling 16204See \`config.log' for more details" "$LINENO" 5; } 16205else 16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16207/* end confdefs.h. */ 16208#include "tests/algo.cc" 16209_ACEOF 16210if ac_fn_cxx_try_run "$LINENO"; then : 16211 16212$as_echo "#define HAVE_STL_ALGORITHM /**/" >>confdefs.h 16213 16214else 16215 ac_enable_stl_algorithm="unsupported -> no" 16216fi 16217rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16218 conftest.$ac_objext conftest.beam conftest.$ac_ext 16219fi 16220 16221fi 16222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_stl_algorithm" >&5 16223$as_echo "$ac_enable_stl_algorithm" >&6; } 16224 16225ac_enable_stl_limits="auto" 16226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable STL limits support" >&5 16227$as_echo_n "checking whether to enable STL limits support... " >&6; } 16228# Check whether --enable-stl-limits was given. 16229if test "${enable_stl_limits+set}" = set; then : 16230 enableval=$enable_stl_limits; case "$enableval" in 16231 yes) 16232 ac_enable_stl_limits="yes" 16233 ;; 16234 16235 *) 16236 ac_enable_stl_limits="no" 16237 ;; 16238 esac 16239 16240fi 16241 16242if test "$ac_enable_stl_limits" = "auto"; then 16243 ac_enable_stl_limits="$ac_enable_stl" 16244fi 16245if test "$ac_enable_stl_limits" = "yes"; then 16246 if test "$cross_compiling" = yes; then : 16247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16249as_fn_error $? "cannot run test program while cross compiling 16250See \`config.log' for more details" "$LINENO" 5; } 16251else 16252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16253/* end confdefs.h. */ 16254#include "tests/limits.cc" 16255_ACEOF 16256if ac_fn_cxx_try_run "$LINENO"; then : 16257 16258$as_echo "#define HAVE_STL_LIMITS /**/" >>confdefs.h 16259 16260else 16261 ac_enable_stl_limits="unsupported -> no" 16262fi 16263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16264 conftest.$ac_objext conftest.beam conftest.$ac_ext 16265fi 16266 16267fi 16268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_stl_limits" >&5 16269$as_echo "$ac_enable_stl_limits" >&6; } 16270 16271ac_enable_stl_list="auto" 16272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable STL list support" >&5 16273$as_echo_n "checking whether to enable STL list support... " >&6; } 16274# Check whether --enable-stl-list was given. 16275if test "${enable_stl_list+set}" = set; then : 16276 enableval=$enable_stl_list; case "$enableval" in 16277 yes) 16278 ac_enable_stl_list="yes" 16279 ;; 16280 16281 *) 16282 ac_enable_stl_list="no" 16283 ;; 16284 esac 16285 16286fi 16287 16288if test "$ac_enable_stl_list" = "auto"; then 16289 ac_enable_stl_list="$ac_enable_stl" 16290fi 16291if test "$ac_enable_stl_list" = "yes"; then 16292 if test "$cross_compiling" = yes; then : 16293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16295as_fn_error $? "cannot run test program while cross compiling 16296See \`config.log' for more details" "$LINENO" 5; } 16297else 16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16299/* end confdefs.h. */ 16300#include "tests/list.cc" 16301_ACEOF 16302if ac_fn_cxx_try_run "$LINENO"; then : 16303 16304$as_echo "#define HAVE_STL_LIST /**/" >>confdefs.h 16305 16306else 16307 ac_enable_stl_list="unsupported -> no" 16308fi 16309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16310 conftest.$ac_objext conftest.beam conftest.$ac_ext 16311fi 16312 16313fi 16314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_stl_list" >&5 16315$as_echo "$ac_enable_stl_list" >&6; } 16316 16317ac_enable_stl_map="auto" 16318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable STL map support" >&5 16319$as_echo_n "checking whether to enable STL map support... " >&6; } 16320# Check whether --enable-stl-map was given. 16321if test "${enable_stl_map+set}" = set; then : 16322 enableval=$enable_stl_map; case "$enableval" in 16323 yes) 16324 ac_enable_stl_map="yes" 16325 ;; 16326 16327 *) 16328 ac_enable_stl_map="no" 16329 ;; 16330 esac 16331 16332fi 16333 16334if test "$ac_enable_stl_map" = "auto"; then 16335 ac_enable_stl_map="$ac_enable_stl" 16336fi 16337if test "$ac_enable_stl_map" = "yes"; then 16338 if test "$cross_compiling" = yes; then : 16339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16341as_fn_error $? "cannot run test program while cross compiling 16342See \`config.log' for more details" "$LINENO" 5; } 16343else 16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16345/* end confdefs.h. */ 16346#include "tests/map.cc" 16347_ACEOF 16348if ac_fn_cxx_try_run "$LINENO"; then : 16349 16350$as_echo "#define HAVE_STL_MAP /**/" >>confdefs.h 16351 16352else 16353 ac_enable_stl_map="unsupported -> no" 16354fi 16355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16356 conftest.$ac_objext conftest.beam conftest.$ac_ext 16357fi 16358 16359fi 16360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_stl_map" >&5 16361$as_echo "$ac_enable_stl_map" >&6; } 16362 16363ac_enable_stl_memory="auto" 16364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable STL memory support" >&5 16365$as_echo_n "checking whether to enable STL memory support... " >&6; } 16366# Check whether --enable-stl-memory was given. 16367if test "${enable_stl_memory+set}" = set; then : 16368 enableval=$enable_stl_memory; case "$enableval" in 16369 yes) 16370 ac_enable_stl_memory="yes" 16371 ;; 16372 16373 *) 16374 ac_enable_stl_memory="no" 16375 ;; 16376 esac 16377 16378fi 16379 16380if test "$ac_enable_stl_memory" = "auto"; then 16381 ac_enable_stl_memory="$ac_enable_stl" 16382fi 16383if test "$ac_enable_stl_memory" = "yes"; then 16384 if test "$cross_compiling" = yes; then : 16385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16387as_fn_error $? "cannot run test program while cross compiling 16388See \`config.log' for more details" "$LINENO" 5; } 16389else 16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16391/* end confdefs.h. */ 16392#include "tests/memory.cc" 16393_ACEOF 16394if ac_fn_cxx_try_run "$LINENO"; then : 16395 16396$as_echo "#define HAVE_STL_MEMORY /**/" >>confdefs.h 16397 16398else 16399 ac_enable_stl_memory="unsupported -> no" 16400fi 16401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16402 conftest.$ac_objext conftest.beam conftest.$ac_ext 16403fi 16404 16405fi 16406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_stl_memory" >&5 16407$as_echo "$ac_enable_stl_memory" >&6; } 16408 16409ac_enable_stl_stack="auto" 16410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable STL stack support" >&5 16411$as_echo_n "checking whether to enable STL stack support... " >&6; } 16412# Check whether --enable-stl-stack was given. 16413if test "${enable_stl_stack+set}" = set; then : 16414 enableval=$enable_stl_stack; case "$enableval" in 16415 yes) 16416 ac_enable_stl_stack="yes" 16417 ;; 16418 16419 *) 16420 ac_enable_stl_stack="no" 16421 ;; 16422 esac 16423 16424fi 16425 16426if test "$ac_enable_stl_stack" = "auto"; then 16427 ac_enable_stl_stack="$ac_enable_stl" 16428fi 16429if test "$ac_enable_stl_stack" = "yes"; then 16430 if test "$cross_compiling" = yes; then : 16431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16433as_fn_error $? "cannot run test program while cross compiling 16434See \`config.log' for more details" "$LINENO" 5; } 16435else 16436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16437/* end confdefs.h. */ 16438#include "tests/stack.cc" 16439_ACEOF 16440if ac_fn_cxx_try_run "$LINENO"; then : 16441 16442$as_echo "#define HAVE_STL_STACK /**/" >>confdefs.h 16443 16444else 16445 ac_enable_stl_stack="unsupported -> no" 16446fi 16447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16448 conftest.$ac_objext conftest.beam conftest.$ac_ext 16449fi 16450 16451fi 16452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_stl_stack" >&5 16453$as_echo "$ac_enable_stl_stack" >&6; } 16454 16455ac_enable_stl_string="auto" 16456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable STL string support" >&5 16457$as_echo_n "checking whether to enable STL string support... " >&6; } 16458# Check whether --enable-stl-string was given. 16459if test "${enable_stl_string+set}" = set; then : 16460 enableval=$enable_stl_string; case "$enableval" in 16461 yes) 16462 ac_enable_stl_string="yes" 16463 ;; 16464 16465 *) 16466 ac_enable_stl_string="no" 16467 ;; 16468 esac 16469 16470fi 16471 16472if test "$ac_enable_stl_string" = "auto"; then 16473 ac_enable_stl_string="$ac_enable_stl" 16474fi 16475if test "$ac_enable_stl_string" = "yes"; then 16476 if test "$cross_compiling" = yes; then : 16477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16479as_fn_error $? "cannot run test program while cross compiling 16480See \`config.log' for more details" "$LINENO" 5; } 16481else 16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16483/* end confdefs.h. */ 16484#include "tests/string.cc" 16485_ACEOF 16486if ac_fn_cxx_try_run "$LINENO"; then : 16487 16488$as_echo "#define HAVE_STL_STRING /**/" >>confdefs.h 16489 16490else 16491 ac_enable_stl_string="unsupported -> no" 16492fi 16493rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16494 conftest.$ac_objext conftest.beam conftest.$ac_ext 16495fi 16496 16497fi 16498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_stl_string" >&5 16499$as_echo "$ac_enable_stl_string" >&6; } 16500 16501ac_enable_stl_type_traits="auto" 16502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable STL type-traits support" >&5 16503$as_echo_n "checking whether to enable STL type-traits support... " >&6; } 16504# Check whether --enable-stl-type-traits was given. 16505if test "${enable_stl_type_traits+set}" = set; then : 16506 enableval=$enable_stl_type_traits; case "$enableval" in 16507 yes) 16508 ac_enable_stl_type_traits="yes" 16509 ;; 16510 16511 *) 16512 ac_enable_stl_type_traits="no" 16513 ;; 16514 esac 16515 16516fi 16517 16518if test "$ac_enable_stl_type_traits" = "auto"; then 16519 ac_enable_stl_type_traits="$ac_enable_stl" 16520fi 16521if test "$ac_enable_stl_type_traits" = "yes"; then 16522 if test "$cross_compiling" = yes; then : 16523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16525as_fn_error $? "cannot run test program while cross compiling 16526See \`config.log' for more details" "$LINENO" 5; } 16527else 16528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16529/* end confdefs.h. */ 16530#include "tests/ttraits.cc" 16531_ACEOF 16532if ac_fn_cxx_try_run "$LINENO"; then : 16533 16534$as_echo "#define HAVE_STL_TYPE_TRAITS /**/" >>confdefs.h 16535 16536else 16537 ac_enable_stl_type_traits="unsupported -> no" 16538fi 16539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16540 conftest.$ac_objext conftest.beam conftest.$ac_ext 16541fi 16542 16543fi 16544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_stl_type_traits" >&5 16545$as_echo "$ac_enable_stl_type_traits" >&6; } 16546 16547ac_enable_stl_tuple="auto" 16548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable STL tuple support" >&5 16549$as_echo_n "checking whether to enable STL tuple support... " >&6; } 16550# Check whether --enable-stl-tuple was given. 16551if test "${enable_stl_tuple+set}" = set; then : 16552 enableval=$enable_stl_tuple; case "$enableval" in 16553 yes) 16554 ac_enable_stl_tuple="yes" 16555 ;; 16556 16557 *) 16558 ac_enable_stl_tuple="no" 16559 ;; 16560 esac 16561 16562fi 16563 16564if test "$ac_enable_stl_tuple" = "auto"; then 16565 ac_enable_stl_tuple="$ac_enable_stl" 16566fi 16567if test "$ac_enable_stl_tuple" = "yes"; then 16568 if test "$cross_compiling" = yes; then : 16569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16571as_fn_error $? "cannot run test program while cross compiling 16572See \`config.log' for more details" "$LINENO" 5; } 16573else 16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16575/* end confdefs.h. */ 16576#include "tests/tuple.cc" 16577_ACEOF 16578if ac_fn_cxx_try_run "$LINENO"; then : 16579 16580$as_echo "#define HAVE_STL_TUPLE /**/" >>confdefs.h 16581 16582else 16583 ac_enable_stl_tuple="unsupported -> no" 16584fi 16585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16586 conftest.$ac_objext conftest.beam conftest.$ac_ext 16587fi 16588 16589fi 16590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_stl_tuple" >&5 16591$as_echo "$ac_enable_stl_tuple" >&6; } 16592 16593ac_enable_stl_system_error="auto" 16594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable STL system_error support" >&5 16595$as_echo_n "checking whether to enable STL system_error support... " >&6; } 16596# Check whether --enable-stl-system-error was given. 16597if test "${enable_stl_system_error+set}" = set; then : 16598 enableval=$enable_stl_system_error; case "$enableval" in 16599 yes) 16600 ac_enable_stl_system_error="yes" 16601 ;; 16602 16603 *) 16604 ac_enable_stl_system_error="no" 16605 ;; 16606 esac 16607 16608fi 16609 16610if test "$ac_enable_stl_system_error" = "auto"; then 16611 ac_enable_stl_system_error="$ac_enable_stl" 16612fi 16613if test "$ac_enable_stl_system_error" = "yes"; then 16614 if test "$cross_compiling" = yes; then : 16615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16617as_fn_error $? "cannot run test program while cross compiling 16618See \`config.log' for more details" "$LINENO" 5; } 16619else 16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16621/* end confdefs.h. */ 16622#include "tests/syserr.cc" 16623_ACEOF 16624if ac_fn_cxx_try_run "$LINENO"; then : 16625 16626$as_echo "#define HAVE_STL_SYSTEM_ERROR /**/" >>confdefs.h 16627 16628else 16629 ac_enable_stl_system_error="unsupported -> no" 16630fi 16631rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16632 conftest.$ac_objext conftest.beam conftest.$ac_ext 16633fi 16634 16635fi 16636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_stl_system_error" >&5 16637$as_echo "$ac_enable_stl_system_error" >&6; } 16638 16639 16640 16641 16642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch" >&5 16643$as_echo_n "checking for __sync_add_and_fetch... " >&6; } 16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16645/* end confdefs.h. */ 16646 16647 16648 int main(){return __sync_add_and_fetch((int *)0, 0);} 16649 16650 16651_ACEOF 16652if ac_fn_cxx_try_link "$LINENO"; then : 16653 dcmtk_have_sync_fn=yes 16654else 16655 dcmtk_have_sync_fn=no 16656 16657fi 16658rm -f core conftest.err conftest.$ac_objext \ 16659 conftest$ac_exeext conftest.$ac_ext 16660 if test "$dcmtk_have_sync_fn" = yes; then 16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16662$as_echo "yes" >&6; } 16663 16664$as_echo "#define HAVE_SYNC_ADD_AND_FETCH 1" >>confdefs.h 16665 16666 else 16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16668$as_echo "no" >&6; } 16669 fi 16670 16671 16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_sub_and_fetch" >&5 16673$as_echo_n "checking for __sync_sub_and_fetch... " >&6; } 16674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16675/* end confdefs.h. */ 16676 16677 16678 int main(){return __sync_sub_and_fetch((int *)0, 0);} 16679 16680 16681_ACEOF 16682if ac_fn_cxx_try_link "$LINENO"; then : 16683 dcmtk_have_sync_fn=yes 16684else 16685 dcmtk_have_sync_fn=no 16686 16687fi 16688rm -f core conftest.err conftest.$ac_objext \ 16689 conftest$ac_exeext conftest.$ac_ext 16690 if test "$dcmtk_have_sync_fn" = yes; then 16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16692$as_echo "yes" >&6; } 16693 16694$as_echo "#define HAVE_SYNC_SUB_AND_FETCH 1" >>confdefs.h 16695 16696 else 16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16698$as_echo "no" >&6; } 16699 fi 16700 16701 16702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __alignof__" >&5 16703$as_echo_n "checking for __alignof__... " >&6; } 16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16705/* end confdefs.h. */ 16706 16707 16708 int main(){char c[__alignof__(int)];return 0;} 16709 16710 16711_ACEOF 16712if ac_fn_cxx_try_link "$LINENO"; then : 16713 dcmtk_have_alignof=yes 16714else 16715 dcmtk_have_alignof=no 16716 16717fi 16718rm -f core conftest.err conftest.$ac_objext \ 16719 conftest$ac_exeext conftest.$ac_ext 16720 if test "$dcmtk_have_alignof" = yes; then 16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16722$as_echo "yes" >&6; } 16723 16724$as_echo "#define HAVE_GNU_ALIGNOF 1" >>confdefs.h 16725 16726 else 16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16728$as_echo "no" >&6; } 16729 fi 16730 16731 16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((aligned))" >&5 16733$as_echo_n "checking for __attribute__((aligned))... " >&6; } 16734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16735/* end confdefs.h. */ 16736 16737 16738 int main(){__attribute__((aligned(4))) char c[16];return 0;} 16739 16740 16741_ACEOF 16742if ac_fn_cxx_try_link "$LINENO"; then : 16743 dcmtk_have_attribute_aligned=yes 16744else 16745 dcmtk_have_attribute_aligned=no 16746 16747fi 16748rm -f core conftest.err conftest.$ac_objext \ 16749 conftest$ac_exeext conftest.$ac_ext 16750 if test "$dcmtk_have_attribute_aligned" = yes; then 16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16752$as_echo "yes" >&6; } 16753 16754$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h 16755 16756 else 16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16758$as_echo "no" >&6; } 16759 fi 16760 16761 16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((aligned)) supports templates" >&5 16763$as_echo_n "checking whether __attribute__((aligned)) supports templates... " >&6; } 16764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16765/* end confdefs.h. */ 16766 16767 16768 template<typename T> 16769 struct test { typedef T type __attribute__((aligned(4))); }; 16770 int main() 16771 { 16772 test<char>::type i; 16773 return 0; 16774 } 16775 16776 16777_ACEOF 16778if ac_fn_cxx_try_link "$LINENO"; then : 16779 dcmtk_attribute_aligned_supports_templates=yes 16780else 16781 dcmtk_attribute_aligned_supports_templates=no 16782 16783fi 16784rm -f core conftest.err conftest.$ac_objext \ 16785 conftest$ac_exeext conftest.$ac_ext 16786 if test "$dcmtk_attribute_aligned_supports_templates" = yes; then 16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16788$as_echo "yes" >&6; } 16789 16790$as_echo "#define ATTRIBUTE_ALIGNED_SUPPORTS_TEMPLATES 1" >>confdefs.h 16791 16792 else 16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16794$as_echo "no" >&6; } 16795 fi 16796 16797 16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports default constructor detection via SFINAE" >&5 16799$as_echo_n "checking whether the compiler supports default constructor detection via SFINAE... " >&6; } 16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16801/* end confdefs.h. */ 16802 16803 16804 struct no_type {}; 16805 struct yes_type {double d;}; 16806 template<unsigned> 16807 struct consume{}; 16808 template<typename X> 16809 static yes_type sfinae(consume<sizeof *new X>*); 16810 template<typename X> 16811 static no_type sfinae(...); 16812 struct test { test( int ); }; 16813 int main() 16814 { 16815 return sizeof(sfinae<test>(0)) == sizeof(yes_type); 16816 } 16817 16818 16819_ACEOF 16820if ac_fn_cxx_try_link "$LINENO"; then : 16821 dcmtk_default_constructor_detection_via_sfinae=yes 16822else 16823 dcmtk_default_constructor_detection_via_sfinae=no 16824 16825fi 16826rm -f core conftest.err conftest.$ac_objext \ 16827 conftest$ac_exeext conftest.$ac_ext 16828 if test "$dcmtk_default_constructor_detection_via_sfinae" = yes; then 16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16830$as_echo "yes" >&6; } 16831 16832$as_echo "#define HAVE_DEFAULT_CONSTRUCTOR_DETECTION_VIA_SFINAE 1" >>confdefs.h 16833 16834 else 16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16836$as_echo "no" >&6; } 16837 fi 16838 16839 16840 16841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct pwd contains the field pw_gecos" >&5 16842$as_echo_n "checking whether struct pwd contains the field pw_gecos... " >&6; } 16843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16844/* end confdefs.h. */ 16845#include <pwd.h> 16846int 16847main () 16848{ 16849&passwd::pw_gecos; 16850 ; 16851 return 0; 16852} 16853_ACEOF 16854if ac_fn_cxx_try_compile "$LINENO"; then : 16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16856$as_echo "yes" >&6; } 16857 16858$as_echo "#define HAVE_PASSWD_GECOS /**/" >>confdefs.h 16859 16860else 16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16862$as_echo "no" >&6; } 16863fi 16864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16865 16866 16867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_gettid in sys/syscall.h" >&5 16868$as_echo_n "checking for SYS_gettid in sys/syscall.h... " >&6; } 16869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16870/* end confdefs.h. */ 16871#include <sys/syscall.h> 16872int 16873main () 16874{ 16875SYS_gettid; 16876 ; 16877 return 0; 16878} 16879_ACEOF 16880if ac_fn_cxx_try_compile "$LINENO"; then : 16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16882$as_echo "yes" >&6; } 16883 16884$as_echo "#define HAVE_SYS_GETTID /**/" >>confdefs.h 16885 16886else 16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16888$as_echo "no" >&6; } 16889fi 16890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16891 16892 16893 16894 16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iterator category input is declared" >&5 16896$as_echo_n "checking whether iterator category input is declared... " >&6; } 16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16898/* end confdefs.h. */ 16899 16900 16901 #include <iterator> 16902 int main(){typedef std::input_iterator_tag category;return 0;} 16903 16904 16905_ACEOF 16906if ac_fn_cxx_try_compile "$LINENO"; then : 16907 dcmtk_have_iter_cat=yes 16908else 16909 dcmtk_have_iter_cat=no 16910 16911fi 16912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16913 if test "$dcmtk_have_iter_cat" = yes; then 16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16915$as_echo "yes" >&6; } 16916 16917$as_echo "#define HAVE_INPUT_ITERATOR_CATEGORY 1" >>confdefs.h 16918 16919 else 16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16921$as_echo "no" >&6; } 16922 fi 16923 16924 16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iterator category output is declared" >&5 16926$as_echo_n "checking whether iterator category output is declared... " >&6; } 16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16928/* end confdefs.h. */ 16929 16930 16931 #include <iterator> 16932 int main(){typedef std::output_iterator_tag category;return 0;} 16933 16934 16935_ACEOF 16936if ac_fn_cxx_try_compile "$LINENO"; then : 16937 dcmtk_have_iter_cat=yes 16938else 16939 dcmtk_have_iter_cat=no 16940 16941fi 16942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16943 if test "$dcmtk_have_iter_cat" = yes; then 16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16945$as_echo "yes" >&6; } 16946 16947$as_echo "#define HAVE_OUTPUT_ITERATOR_CATEGORY 1" >>confdefs.h 16948 16949 else 16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16951$as_echo "no" >&6; } 16952 fi 16953 16954 16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iterator category forward is declared" >&5 16956$as_echo_n "checking whether iterator category forward is declared... " >&6; } 16957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16958/* end confdefs.h. */ 16959 16960 16961 #include <iterator> 16962 int main(){typedef std::forward_iterator_tag category;return 0;} 16963 16964 16965_ACEOF 16966if ac_fn_cxx_try_compile "$LINENO"; then : 16967 dcmtk_have_iter_cat=yes 16968else 16969 dcmtk_have_iter_cat=no 16970 16971fi 16972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16973 if test "$dcmtk_have_iter_cat" = yes; then 16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16975$as_echo "yes" >&6; } 16976 16977$as_echo "#define HAVE_FORWARD_ITERATOR_CATEGORY 1" >>confdefs.h 16978 16979 else 16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16981$as_echo "no" >&6; } 16982 fi 16983 16984 16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iterator category bidirectional is declared" >&5 16986$as_echo_n "checking whether iterator category bidirectional is declared... " >&6; } 16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16988/* end confdefs.h. */ 16989 16990 16991 #include <iterator> 16992 int main(){typedef std::bidirectional_iterator_tag category;return 0;} 16993 16994 16995_ACEOF 16996if ac_fn_cxx_try_compile "$LINENO"; then : 16997 dcmtk_have_iter_cat=yes 16998else 16999 dcmtk_have_iter_cat=no 17000 17001fi 17002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17003 if test "$dcmtk_have_iter_cat" = yes; then 17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17005$as_echo "yes" >&6; } 17006 17007$as_echo "#define HAVE_BIDIRECTIONAL_ITERATOR_CATEGORY 1" >>confdefs.h 17008 17009 else 17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17011$as_echo "no" >&6; } 17012 fi 17013 17014 17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iterator category random_access is declared" >&5 17016$as_echo_n "checking whether iterator category random_access is declared... " >&6; } 17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17018/* end confdefs.h. */ 17019 17020 17021 #include <iterator> 17022 int main(){typedef std::random_access_iterator_tag category;return 0;} 17023 17024 17025_ACEOF 17026if ac_fn_cxx_try_compile "$LINENO"; then : 17027 dcmtk_have_iter_cat=yes 17028else 17029 dcmtk_have_iter_cat=no 17030 17031fi 17032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17033 if test "$dcmtk_have_iter_cat" = yes; then 17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17035$as_echo "yes" >&6; } 17036 17037$as_echo "#define HAVE_RANDOM_ACCESS_ITERATOR_CATEGORY 1" >>confdefs.h 17038 17039 else 17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17041$as_echo "no" >&6; } 17042 fi 17043 17044 17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iterator category contiguous is declared" >&5 17046$as_echo_n "checking whether iterator category contiguous is declared... " >&6; } 17047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17048/* end confdefs.h. */ 17049 17050 17051 #include <iterator> 17052 int main(){typedef std::contiguous_iterator_tag category;return 0;} 17053 17054 17055_ACEOF 17056if ac_fn_cxx_try_compile "$LINENO"; then : 17057 dcmtk_have_iter_cat=yes 17058else 17059 dcmtk_have_iter_cat=no 17060 17061fi 17062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17063 if test "$dcmtk_have_iter_cat" = yes; then 17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17065$as_echo "yes" >&6; } 17066 17067$as_echo "#define HAVE_CONTIGUOUS_ITERATOR_CATEGORY 1" >>confdefs.h 17068 17069 else 17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17071$as_echo "no" >&6; } 17072 fi 17073 17074 17075 17076CFLAGS="$DEBUGCFLAGS $CFLAGS" 17077CXXFLAGS="$DEBUGCXXFLAGS $CXXFLAGS" 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092ac_config_files="$ac_config_files Makefile.def Makefile" 17093 17094cat >confcache <<\_ACEOF 17095# This file is a shell script that caches the results of configure 17096# tests run on this system so they can be shared between configure 17097# scripts and configure runs, see configure's option --config-cache. 17098# It is not useful on other systems. If it contains results you don't 17099# want to keep, you may remove or edit it. 17100# 17101# config.status only pays attention to the cache file if you give it 17102# the --recheck option to rerun configure. 17103# 17104# `ac_cv_env_foo' variables (set or unset) will be overridden when 17105# loading this file, other *unset* `ac_cv_foo' will be assigned the 17106# following values. 17107 17108_ACEOF 17109 17110# The following way of writing the cache mishandles newlines in values, 17111# but we know of no workaround that is simple, portable, and efficient. 17112# So, we kill variables containing newlines. 17113# Ultrix sh set writes to stderr and can't be redirected directly, 17114# and sets the high bit in the cache file unless we assign to the vars. 17115( 17116 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17117 eval ac_val=\$$ac_var 17118 case $ac_val in #( 17119 *${as_nl}*) 17120 case $ac_var in #( 17121 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17122$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17123 esac 17124 case $ac_var in #( 17125 _ | IFS | as_nl) ;; #( 17126 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17127 *) { eval $ac_var=; unset $ac_var;} ;; 17128 esac ;; 17129 esac 17130 done 17131 17132 (set) 2>&1 | 17133 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17134 *${as_nl}ac_space=\ *) 17135 # `set' does not quote correctly, so add quotes: double-quote 17136 # substitution turns \\\\ into \\, and sed turns \\ into \. 17137 sed -n \ 17138 "s/'/'\\\\''/g; 17139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17140 ;; #( 17141 *) 17142 # `set' quotes correctly as required by POSIX, so do not add quotes. 17143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17144 ;; 17145 esac | 17146 sort 17147) | 17148 sed ' 17149 /^ac_cv_env_/b end 17150 t clear 17151 :clear 17152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17153 t end 17154 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17155 :end' >>confcache 17156if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17157 if test -w "$cache_file"; then 17158 if test "x$cache_file" != "x/dev/null"; then 17159 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17160$as_echo "$as_me: updating cache $cache_file" >&6;} 17161 if test ! -f "$cache_file" || test -h "$cache_file"; then 17162 cat confcache >"$cache_file" 17163 else 17164 case $cache_file in #( 17165 */* | ?:*) 17166 mv -f confcache "$cache_file"$$ && 17167 mv -f "$cache_file"$$ "$cache_file" ;; #( 17168 *) 17169 mv -f confcache "$cache_file" ;; 17170 esac 17171 fi 17172 fi 17173 else 17174 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17175$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17176 fi 17177fi 17178rm -f confcache 17179 17180test "x$prefix" = xNONE && prefix=$ac_default_prefix 17181# Let make expand exec_prefix. 17182test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17183 17184DEFS=-DHAVE_CONFIG_H 17185 17186ac_libobjs= 17187ac_ltlibobjs= 17188U= 17189for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17190 # 1. Remove the extension, and $U if already installed. 17191 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17192 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17193 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17194 # will be set to the directory where LIBOBJS objects are built. 17195 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17196 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17197done 17198LIBOBJS=$ac_libobjs 17199 17200LTLIBOBJS=$ac_ltlibobjs 17201 17202 17203 17204: "${CONFIG_STATUS=./config.status}" 17205ac_write_fail=0 17206ac_clean_files_save=$ac_clean_files 17207ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17208{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17209$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17210as_write_fail=0 17211cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17212#! $SHELL 17213# Generated by $as_me. 17214# Run this file to recreate the current configuration. 17215# Compiler output produced by configure, useful for debugging 17216# configure, is in config.log if it exists. 17217 17218debug=false 17219ac_cs_recheck=false 17220ac_cs_silent=false 17221 17222SHELL=\${CONFIG_SHELL-$SHELL} 17223export SHELL 17224_ASEOF 17225cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17226## -------------------- ## 17227## M4sh Initialization. ## 17228## -------------------- ## 17229 17230# Be more Bourne compatible 17231DUALCASE=1; export DUALCASE # for MKS sh 17232if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17233 emulate sh 17234 NULLCMD=: 17235 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17236 # is contrary to our usage. Disable this feature. 17237 alias -g '${1+"$@"}'='"$@"' 17238 setopt NO_GLOB_SUBST 17239else 17240 case `(set -o) 2>/dev/null` in #( 17241 *posix*) : 17242 set -o posix ;; #( 17243 *) : 17244 ;; 17245esac 17246fi 17247 17248 17249as_nl=' 17250' 17251export as_nl 17252# Printing a long string crashes Solaris 7 /usr/bin/printf. 17253as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17254as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17255as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17256# Prefer a ksh shell builtin over an external printf program on Solaris, 17257# but without wasting forks for bash or zsh. 17258if test -z "$BASH_VERSION$ZSH_VERSION" \ 17259 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17260 as_echo='print -r --' 17261 as_echo_n='print -rn --' 17262elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17263 as_echo='printf %s\n' 17264 as_echo_n='printf %s' 17265else 17266 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17267 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17268 as_echo_n='/usr/ucb/echo -n' 17269 else 17270 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17271 as_echo_n_body='eval 17272 arg=$1; 17273 case $arg in #( 17274 *"$as_nl"*) 17275 expr "X$arg" : "X\\(.*\\)$as_nl"; 17276 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17277 esac; 17278 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17279 ' 17280 export as_echo_n_body 17281 as_echo_n='sh -c $as_echo_n_body as_echo' 17282 fi 17283 export as_echo_body 17284 as_echo='sh -c $as_echo_body as_echo' 17285fi 17286 17287# The user is always right. 17288if test "${PATH_SEPARATOR+set}" != set; then 17289 PATH_SEPARATOR=: 17290 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17291 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17292 PATH_SEPARATOR=';' 17293 } 17294fi 17295 17296 17297# IFS 17298# We need space, tab and new line, in precisely that order. Quoting is 17299# there to prevent editors from complaining about space-tab. 17300# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17301# splitting by setting IFS to empty value.) 17302IFS=" "" $as_nl" 17303 17304# Find who we are. Look in the path if we contain no directory separator. 17305as_myself= 17306case $0 in #(( 17307 *[\\/]* ) as_myself=$0 ;; 17308 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17309for as_dir in $PATH 17310do 17311 IFS=$as_save_IFS 17312 test -z "$as_dir" && as_dir=. 17313 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17314 done 17315IFS=$as_save_IFS 17316 17317 ;; 17318esac 17319# We did not find ourselves, most probably we were run as `sh COMMAND' 17320# in which case we are not to be found in the path. 17321if test "x$as_myself" = x; then 17322 as_myself=$0 17323fi 17324if test ! -f "$as_myself"; then 17325 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17326 exit 1 17327fi 17328 17329# Unset variables that we do not need and which cause bugs (e.g. in 17330# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17331# suppresses any "Segmentation fault" message there. '((' could 17332# trigger a bug in pdksh 5.2.14. 17333for as_var in BASH_ENV ENV MAIL MAILPATH 17334do eval test x\${$as_var+set} = xset \ 17335 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17336done 17337PS1='$ ' 17338PS2='> ' 17339PS4='+ ' 17340 17341# NLS nuisances. 17342LC_ALL=C 17343export LC_ALL 17344LANGUAGE=C 17345export LANGUAGE 17346 17347# CDPATH. 17348(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17349 17350 17351# as_fn_error STATUS ERROR [LINENO LOG_FD] 17352# ---------------------------------------- 17353# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17354# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17355# script with STATUS, using 1 if that was 0. 17356as_fn_error () 17357{ 17358 as_status=$1; test $as_status -eq 0 && as_status=1 17359 if test "$4"; then 17360 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17361 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17362 fi 17363 $as_echo "$as_me: error: $2" >&2 17364 as_fn_exit $as_status 17365} # as_fn_error 17366 17367 17368# as_fn_set_status STATUS 17369# ----------------------- 17370# Set $? to STATUS, without forking. 17371as_fn_set_status () 17372{ 17373 return $1 17374} # as_fn_set_status 17375 17376# as_fn_exit STATUS 17377# ----------------- 17378# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17379as_fn_exit () 17380{ 17381 set +e 17382 as_fn_set_status $1 17383 exit $1 17384} # as_fn_exit 17385 17386# as_fn_unset VAR 17387# --------------- 17388# Portably unset VAR. 17389as_fn_unset () 17390{ 17391 { eval $1=; unset $1;} 17392} 17393as_unset=as_fn_unset 17394# as_fn_append VAR VALUE 17395# ---------------------- 17396# Append the text in VALUE to the end of the definition contained in VAR. Take 17397# advantage of any shell optimizations that allow amortized linear growth over 17398# repeated appends, instead of the typical quadratic growth present in naive 17399# implementations. 17400if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17401 eval 'as_fn_append () 17402 { 17403 eval $1+=\$2 17404 }' 17405else 17406 as_fn_append () 17407 { 17408 eval $1=\$$1\$2 17409 } 17410fi # as_fn_append 17411 17412# as_fn_arith ARG... 17413# ------------------ 17414# Perform arithmetic evaluation on the ARGs, and store the result in the 17415# global $as_val. Take advantage of shells that can avoid forks. The arguments 17416# must be portable across $(()) and expr. 17417if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17418 eval 'as_fn_arith () 17419 { 17420 as_val=$(( $* )) 17421 }' 17422else 17423 as_fn_arith () 17424 { 17425 as_val=`expr "$@" || test $? -eq 1` 17426 } 17427fi # as_fn_arith 17428 17429 17430if expr a : '\(a\)' >/dev/null 2>&1 && 17431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17432 as_expr=expr 17433else 17434 as_expr=false 17435fi 17436 17437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17438 as_basename=basename 17439else 17440 as_basename=false 17441fi 17442 17443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17444 as_dirname=dirname 17445else 17446 as_dirname=false 17447fi 17448 17449as_me=`$as_basename -- "$0" || 17450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17451 X"$0" : 'X\(//\)$' \| \ 17452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17453$as_echo X/"$0" | 17454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17455 s//\1/ 17456 q 17457 } 17458 /^X\/\(\/\/\)$/{ 17459 s//\1/ 17460 q 17461 } 17462 /^X\/\(\/\).*/{ 17463 s//\1/ 17464 q 17465 } 17466 s/.*/./; q'` 17467 17468# Avoid depending upon Character Ranges. 17469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17472as_cr_digits='0123456789' 17473as_cr_alnum=$as_cr_Letters$as_cr_digits 17474 17475ECHO_C= ECHO_N= ECHO_T= 17476case `echo -n x` in #((((( 17477-n*) 17478 case `echo 'xy\c'` in 17479 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17480 xy) ECHO_C='\c';; 17481 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17482 ECHO_T=' ';; 17483 esac;; 17484*) 17485 ECHO_N='-n';; 17486esac 17487 17488rm -f conf$$ conf$$.exe conf$$.file 17489if test -d conf$$.dir; then 17490 rm -f conf$$.dir/conf$$.file 17491else 17492 rm -f conf$$.dir 17493 mkdir conf$$.dir 2>/dev/null 17494fi 17495if (echo >conf$$.file) 2>/dev/null; then 17496 if ln -s conf$$.file conf$$ 2>/dev/null; then 17497 as_ln_s='ln -s' 17498 # ... but there are two gotchas: 17499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17501 # In both cases, we have to default to `cp -pR'. 17502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17503 as_ln_s='cp -pR' 17504 elif ln conf$$.file conf$$ 2>/dev/null; then 17505 as_ln_s=ln 17506 else 17507 as_ln_s='cp -pR' 17508 fi 17509else 17510 as_ln_s='cp -pR' 17511fi 17512rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17513rmdir conf$$.dir 2>/dev/null 17514 17515 17516# as_fn_mkdir_p 17517# ------------- 17518# Create "$as_dir" as a directory, including parents if necessary. 17519as_fn_mkdir_p () 17520{ 17521 17522 case $as_dir in #( 17523 -*) as_dir=./$as_dir;; 17524 esac 17525 test -d "$as_dir" || eval $as_mkdir_p || { 17526 as_dirs= 17527 while :; do 17528 case $as_dir in #( 17529 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17530 *) as_qdir=$as_dir;; 17531 esac 17532 as_dirs="'$as_qdir' $as_dirs" 17533 as_dir=`$as_dirname -- "$as_dir" || 17534$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17535 X"$as_dir" : 'X\(//\)[^/]' \| \ 17536 X"$as_dir" : 'X\(//\)$' \| \ 17537 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17538$as_echo X"$as_dir" | 17539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17540 s//\1/ 17541 q 17542 } 17543 /^X\(\/\/\)[^/].*/{ 17544 s//\1/ 17545 q 17546 } 17547 /^X\(\/\/\)$/{ 17548 s//\1/ 17549 q 17550 } 17551 /^X\(\/\).*/{ 17552 s//\1/ 17553 q 17554 } 17555 s/.*/./; q'` 17556 test -d "$as_dir" && break 17557 done 17558 test -z "$as_dirs" || eval "mkdir $as_dirs" 17559 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17560 17561 17562} # as_fn_mkdir_p 17563if mkdir -p . 2>/dev/null; then 17564 as_mkdir_p='mkdir -p "$as_dir"' 17565else 17566 test -d ./-p && rmdir ./-p 17567 as_mkdir_p=false 17568fi 17569 17570 17571# as_fn_executable_p FILE 17572# ----------------------- 17573# Test if FILE is an executable regular file. 17574as_fn_executable_p () 17575{ 17576 test -f "$1" && test -x "$1" 17577} # as_fn_executable_p 17578as_test_x='test -x' 17579as_executable_p=as_fn_executable_p 17580 17581# Sed expression to map a string onto a valid CPP name. 17582as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17583 17584# Sed expression to map a string onto a valid variable name. 17585as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17586 17587 17588exec 6>&1 17589## ----------------------------------- ## 17590## Main body of $CONFIG_STATUS script. ## 17591## ----------------------------------- ## 17592_ASEOF 17593test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17594 17595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17596# Save the log message, to keep $0 and so on meaningful, and to 17597# report actual input values of CONFIG_FILES etc. instead of their 17598# values after options handling. 17599ac_log=" 17600This file was extended by dcmtk $as_me 3.6.6, which was 17601generated by GNU Autoconf 2.69. Invocation command line was 17602 17603 CONFIG_FILES = $CONFIG_FILES 17604 CONFIG_HEADERS = $CONFIG_HEADERS 17605 CONFIG_LINKS = $CONFIG_LINKS 17606 CONFIG_COMMANDS = $CONFIG_COMMANDS 17607 $ $0 $@ 17608 17609on `(hostname || uname -n) 2>/dev/null | sed 1q` 17610" 17611 17612_ACEOF 17613 17614case $ac_config_files in *" 17615"*) set x $ac_config_files; shift; ac_config_files=$*;; 17616esac 17617 17618case $ac_config_headers in *" 17619"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17620esac 17621 17622 17623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17624# Files that config.status was made for. 17625config_files="$ac_config_files" 17626config_headers="$ac_config_headers" 17627 17628_ACEOF 17629 17630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17631ac_cs_usage="\ 17632\`$as_me' instantiates files and other configuration actions 17633from templates according to the current configuration. Unless the files 17634and actions are specified as TAGs, all are instantiated by default. 17635 17636Usage: $0 [OPTION]... [TAG]... 17637 17638 -h, --help print this help, then exit 17639 -V, --version print version number and configuration settings, then exit 17640 --config print configuration, then exit 17641 -q, --quiet, --silent 17642 do not print progress messages 17643 -d, --debug don't remove temporary files 17644 --recheck update $as_me by reconfiguring in the same conditions 17645 --file=FILE[:TEMPLATE] 17646 instantiate the configuration file FILE 17647 --header=FILE[:TEMPLATE] 17648 instantiate the configuration header FILE 17649 17650Configuration files: 17651$config_files 17652 17653Configuration headers: 17654$config_headers 17655 17656Report bugs to <bugs@dcmtk.org>. 17657dcmtk home page: <http://www.dcmtk.org/>." 17658 17659_ACEOF 17660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17661ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17662ac_cs_version="\\ 17663dcmtk config.status 3.6.6 17664configured by $0, generated by GNU Autoconf 2.69, 17665 with options \\"\$ac_cs_config\\" 17666 17667Copyright (C) 2012 Free Software Foundation, Inc. 17668This config.status script is free software; the Free Software Foundation 17669gives unlimited permission to copy, distribute and modify it." 17670 17671ac_pwd='$ac_pwd' 17672srcdir='$srcdir' 17673INSTALL='$INSTALL' 17674test -n "\$AWK" || AWK=awk 17675_ACEOF 17676 17677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17678# The default lists apply if the user does not specify any file. 17679ac_need_defaults=: 17680while test $# != 0 17681do 17682 case $1 in 17683 --*=?*) 17684 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17685 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17686 ac_shift=: 17687 ;; 17688 --*=) 17689 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17690 ac_optarg= 17691 ac_shift=: 17692 ;; 17693 *) 17694 ac_option=$1 17695 ac_optarg=$2 17696 ac_shift=shift 17697 ;; 17698 esac 17699 17700 case $ac_option in 17701 # Handling of the options. 17702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17703 ac_cs_recheck=: ;; 17704 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17705 $as_echo "$ac_cs_version"; exit ;; 17706 --config | --confi | --conf | --con | --co | --c ) 17707 $as_echo "$ac_cs_config"; exit ;; 17708 --debug | --debu | --deb | --de | --d | -d ) 17709 debug=: ;; 17710 --file | --fil | --fi | --f ) 17711 $ac_shift 17712 case $ac_optarg in 17713 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17714 '') as_fn_error $? "missing file argument" ;; 17715 esac 17716 as_fn_append CONFIG_FILES " '$ac_optarg'" 17717 ac_need_defaults=false;; 17718 --header | --heade | --head | --hea ) 17719 $ac_shift 17720 case $ac_optarg in 17721 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17722 esac 17723 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17724 ac_need_defaults=false;; 17725 --he | --h) 17726 # Conflict between --help and --header 17727 as_fn_error $? "ambiguous option: \`$1' 17728Try \`$0 --help' for more information.";; 17729 --help | --hel | -h ) 17730 $as_echo "$ac_cs_usage"; exit ;; 17731 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17732 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17733 ac_cs_silent=: ;; 17734 17735 # This is an error. 17736 -*) as_fn_error $? "unrecognized option: \`$1' 17737Try \`$0 --help' for more information." ;; 17738 17739 *) as_fn_append ac_config_targets " $1" 17740 ac_need_defaults=false ;; 17741 17742 esac 17743 shift 17744done 17745 17746ac_configure_extra_args= 17747 17748if $ac_cs_silent; then 17749 exec 6>/dev/null 17750 ac_configure_extra_args="$ac_configure_extra_args --silent" 17751fi 17752 17753_ACEOF 17754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17755if \$ac_cs_recheck; then 17756 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17757 shift 17758 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17759 CONFIG_SHELL='$SHELL' 17760 export CONFIG_SHELL 17761 exec "\$@" 17762fi 17763 17764_ACEOF 17765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17766exec 5>>config.log 17767{ 17768 echo 17769 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17770## Running $as_me. ## 17771_ASBOX 17772 $as_echo "$ac_log" 17773} >&5 17774 17775_ACEOF 17776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17777_ACEOF 17778 17779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17780 17781# Handling of arguments. 17782for ac_config_target in $ac_config_targets 17783do 17784 case $ac_config_target in 17785 "include/dcmtk/config/osconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dcmtk/config/osconfig.h" ;; 17786 "Makefile.def") CONFIG_FILES="$CONFIG_FILES Makefile.def" ;; 17787 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17788 17789 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17790 esac 17791done 17792 17793 17794# If the user did not use the arguments to specify the items to instantiate, 17795# then the envvar interface is used. Set only those that are not. 17796# We use the long form for the default assignment because of an extremely 17797# bizarre bug on SunOS 4.1.3. 17798if $ac_need_defaults; then 17799 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17800 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17801fi 17802 17803# Have a temporary directory for convenience. Make it in the build tree 17804# simply because there is no reason against having it here, and in addition, 17805# creating and moving files from /tmp can sometimes cause problems. 17806# Hook for its removal unless debugging. 17807# Note that there is a small window in which the directory will not be cleaned: 17808# after its creation but before its name has been assigned to `$tmp'. 17809$debug || 17810{ 17811 tmp= ac_tmp= 17812 trap 'exit_status=$? 17813 : "${ac_tmp:=$tmp}" 17814 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17815' 0 17816 trap 'as_fn_exit 1' 1 2 13 15 17817} 17818# Create a (secure) tmp directory for tmp files. 17819 17820{ 17821 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17822 test -d "$tmp" 17823} || 17824{ 17825 tmp=./conf$$-$RANDOM 17826 (umask 077 && mkdir "$tmp") 17827} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17828ac_tmp=$tmp 17829 17830# Set up the scripts for CONFIG_FILES section. 17831# No need to generate them if there are no CONFIG_FILES. 17832# This happens for instance with `./config.status config.h'. 17833if test -n "$CONFIG_FILES"; then 17834 17835 17836ac_cr=`echo X | tr X '\015'` 17837# On cygwin, bash can eat \r inside `` if the user requested igncr. 17838# But we know of no other shell where ac_cr would be empty at this 17839# point, so we can use a bashism as a fallback. 17840if test "x$ac_cr" = x; then 17841 eval ac_cr=\$\'\\r\' 17842fi 17843ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17844if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17845 ac_cs_awk_cr='\\r' 17846else 17847 ac_cs_awk_cr=$ac_cr 17848fi 17849 17850echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17851_ACEOF 17852 17853 17854{ 17855 echo "cat >conf$$subs.awk <<_ACEOF" && 17856 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17857 echo "_ACEOF" 17858} >conf$$subs.sh || 17859 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17860ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17861ac_delim='%!_!# ' 17862for ac_last_try in false false false false false :; do 17863 . ./conf$$subs.sh || 17864 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17865 17866 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17867 if test $ac_delim_n = $ac_delim_num; then 17868 break 17869 elif $ac_last_try; then 17870 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17871 else 17872 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17873 fi 17874done 17875rm -f conf$$subs.sh 17876 17877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17878cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17879_ACEOF 17880sed -n ' 17881h 17882s/^/S["/; s/!.*/"]=/ 17883p 17884g 17885s/^[^!]*!// 17886:repl 17887t repl 17888s/'"$ac_delim"'$// 17889t delim 17890:nl 17891h 17892s/\(.\{148\}\)..*/\1/ 17893t more1 17894s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17895p 17896n 17897b repl 17898:more1 17899s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17900p 17901g 17902s/.\{148\}// 17903t nl 17904:delim 17905h 17906s/\(.\{148\}\)..*/\1/ 17907t more2 17908s/["\\]/\\&/g; s/^/"/; s/$/"/ 17909p 17910b 17911:more2 17912s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17913p 17914g 17915s/.\{148\}// 17916t delim 17917' <conf$$subs.awk | sed ' 17918/^[^""]/{ 17919 N 17920 s/\n// 17921} 17922' >>$CONFIG_STATUS || ac_write_fail=1 17923rm -f conf$$subs.awk 17924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17925_ACAWK 17926cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17927 for (key in S) S_is_set[key] = 1 17928 FS = "" 17929 17930} 17931{ 17932 line = $ 0 17933 nfields = split(line, field, "@") 17934 substed = 0 17935 len = length(field[1]) 17936 for (i = 2; i < nfields; i++) { 17937 key = field[i] 17938 keylen = length(key) 17939 if (S_is_set[key]) { 17940 value = S[key] 17941 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17942 len += length(value) + length(field[++i]) 17943 substed = 1 17944 } else 17945 len += 1 + keylen 17946 } 17947 17948 print line 17949} 17950 17951_ACAWK 17952_ACEOF 17953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17954if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17955 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17956else 17957 cat 17958fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17959 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17960_ACEOF 17961 17962# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17963# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17964# trailing colons and then remove the whole line if VPATH becomes empty 17965# (actually we leave an empty line to preserve line numbers). 17966if test "x$srcdir" = x.; then 17967 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17968h 17969s/// 17970s/^/:/ 17971s/[ ]*$/:/ 17972s/:\$(srcdir):/:/g 17973s/:\${srcdir}:/:/g 17974s/:@srcdir@:/:/g 17975s/^:*// 17976s/:*$// 17977x 17978s/\(=[ ]*\).*/\1/ 17979G 17980s/\n// 17981s/^[^=]*=[ ]*$// 17982}' 17983fi 17984 17985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17986fi # test -n "$CONFIG_FILES" 17987 17988# Set up the scripts for CONFIG_HEADERS section. 17989# No need to generate them if there are no CONFIG_HEADERS. 17990# This happens for instance with `./config.status Makefile'. 17991if test -n "$CONFIG_HEADERS"; then 17992cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17993BEGIN { 17994_ACEOF 17995 17996# Transform confdefs.h into an awk script `defines.awk', embedded as 17997# here-document in config.status, that substitutes the proper values into 17998# config.h.in to produce config.h. 17999 18000# Create a delimiter string that does not exist in confdefs.h, to ease 18001# handling of long lines. 18002ac_delim='%!_!# ' 18003for ac_last_try in false false :; do 18004 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18005 if test -z "$ac_tt"; then 18006 break 18007 elif $ac_last_try; then 18008 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18009 else 18010 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18011 fi 18012done 18013 18014# For the awk script, D is an array of macro values keyed by name, 18015# likewise P contains macro parameters if any. Preserve backslash 18016# newline sequences. 18017 18018ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18019sed -n ' 18020s/.\{148\}/&'"$ac_delim"'/g 18021t rset 18022:rset 18023s/^[ ]*#[ ]*define[ ][ ]*/ / 18024t def 18025d 18026:def 18027s/\\$// 18028t bsnl 18029s/["\\]/\\&/g 18030s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18031D["\1"]=" \3"/p 18032s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18033d 18034:bsnl 18035s/["\\]/\\&/g 18036s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18037D["\1"]=" \3\\\\\\n"\\/p 18038t cont 18039s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18040t cont 18041d 18042:cont 18043n 18044s/.\{148\}/&'"$ac_delim"'/g 18045t clear 18046:clear 18047s/\\$// 18048t bsnlc 18049s/["\\]/\\&/g; s/^/"/; s/$/"/p 18050d 18051:bsnlc 18052s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18053b cont 18054' <confdefs.h | sed ' 18055s/'"$ac_delim"'/"\\\ 18056"/g' >>$CONFIG_STATUS || ac_write_fail=1 18057 18058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18059 for (key in D) D_is_set[key] = 1 18060 FS = "" 18061} 18062/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18063 line = \$ 0 18064 split(line, arg, " ") 18065 if (arg[1] == "#") { 18066 defundef = arg[2] 18067 mac1 = arg[3] 18068 } else { 18069 defundef = substr(arg[1], 2) 18070 mac1 = arg[2] 18071 } 18072 split(mac1, mac2, "(") #) 18073 macro = mac2[1] 18074 prefix = substr(line, 1, index(line, defundef) - 1) 18075 if (D_is_set[macro]) { 18076 # Preserve the white space surrounding the "#". 18077 print prefix "define", macro P[macro] D[macro] 18078 next 18079 } else { 18080 # Replace #undef with comments. This is necessary, for example, 18081 # in the case of _POSIX_SOURCE, which is predefined and required 18082 # on some systems where configure will not decide to define it. 18083 if (defundef == "undef") { 18084 print "/*", prefix defundef, macro, "*/" 18085 next 18086 } 18087 } 18088} 18089{ print } 18090_ACAWK 18091_ACEOF 18092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18093 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18094fi # test -n "$CONFIG_HEADERS" 18095 18096 18097eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 18098shift 18099for ac_tag 18100do 18101 case $ac_tag in 18102 :[FHLC]) ac_mode=$ac_tag; continue;; 18103 esac 18104 case $ac_mode$ac_tag in 18105 :[FHL]*:*);; 18106 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18107 :[FH]-) ac_tag=-:-;; 18108 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18109 esac 18110 ac_save_IFS=$IFS 18111 IFS=: 18112 set x $ac_tag 18113 IFS=$ac_save_IFS 18114 shift 18115 ac_file=$1 18116 shift 18117 18118 case $ac_mode in 18119 :L) ac_source=$1;; 18120 :[FH]) 18121 ac_file_inputs= 18122 for ac_f 18123 do 18124 case $ac_f in 18125 -) ac_f="$ac_tmp/stdin";; 18126 *) # Look for the file first in the build tree, then in the source tree 18127 # (if the path is not absolute). The absolute path cannot be DOS-style, 18128 # because $ac_f cannot contain `:'. 18129 test -f "$ac_f" || 18130 case $ac_f in 18131 [\\/$]*) false;; 18132 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18133 esac || 18134 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18135 esac 18136 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18137 as_fn_append ac_file_inputs " '$ac_f'" 18138 done 18139 18140 # Let's still pretend it is `configure' which instantiates (i.e., don't 18141 # use $as_me), people would be surprised to read: 18142 # /* config.h. Generated by config.status. */ 18143 configure_input='Generated from '` 18144 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18145 `' by configure.' 18146 if test x"$ac_file" != x-; then 18147 configure_input="$ac_file. $configure_input" 18148 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18149$as_echo "$as_me: creating $ac_file" >&6;} 18150 fi 18151 # Neutralize special characters interpreted by sed in replacement strings. 18152 case $configure_input in #( 18153 *\&* | *\|* | *\\* ) 18154 ac_sed_conf_input=`$as_echo "$configure_input" | 18155 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18156 *) ac_sed_conf_input=$configure_input;; 18157 esac 18158 18159 case $ac_tag in 18160 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18161 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18162 esac 18163 ;; 18164 esac 18165 18166 ac_dir=`$as_dirname -- "$ac_file" || 18167$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18168 X"$ac_file" : 'X\(//\)[^/]' \| \ 18169 X"$ac_file" : 'X\(//\)$' \| \ 18170 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18171$as_echo X"$ac_file" | 18172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18173 s//\1/ 18174 q 18175 } 18176 /^X\(\/\/\)[^/].*/{ 18177 s//\1/ 18178 q 18179 } 18180 /^X\(\/\/\)$/{ 18181 s//\1/ 18182 q 18183 } 18184 /^X\(\/\).*/{ 18185 s//\1/ 18186 q 18187 } 18188 s/.*/./; q'` 18189 as_dir="$ac_dir"; as_fn_mkdir_p 18190 ac_builddir=. 18191 18192case "$ac_dir" in 18193.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18194*) 18195 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18196 # A ".." for each directory in $ac_dir_suffix. 18197 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18198 case $ac_top_builddir_sub in 18199 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18200 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18201 esac ;; 18202esac 18203ac_abs_top_builddir=$ac_pwd 18204ac_abs_builddir=$ac_pwd$ac_dir_suffix 18205# for backward compatibility: 18206ac_top_builddir=$ac_top_build_prefix 18207 18208case $srcdir in 18209 .) # We are building in place. 18210 ac_srcdir=. 18211 ac_top_srcdir=$ac_top_builddir_sub 18212 ac_abs_top_srcdir=$ac_pwd ;; 18213 [\\/]* | ?:[\\/]* ) # Absolute name. 18214 ac_srcdir=$srcdir$ac_dir_suffix; 18215 ac_top_srcdir=$srcdir 18216 ac_abs_top_srcdir=$srcdir ;; 18217 *) # Relative name. 18218 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18219 ac_top_srcdir=$ac_top_build_prefix$srcdir 18220 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18221esac 18222ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18223 18224 18225 case $ac_mode in 18226 :F) 18227 # 18228 # CONFIG_FILE 18229 # 18230 18231 case $INSTALL in 18232 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18233 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18234 esac 18235_ACEOF 18236 18237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18238# If the template does not know about datarootdir, expand it. 18239# FIXME: This hack should be removed a few years after 2.60. 18240ac_datarootdir_hack=; ac_datarootdir_seen= 18241ac_sed_dataroot=' 18242/datarootdir/ { 18243 p 18244 q 18245} 18246/@datadir@/p 18247/@docdir@/p 18248/@infodir@/p 18249/@localedir@/p 18250/@mandir@/p' 18251case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18252*datarootdir*) ac_datarootdir_seen=yes;; 18253*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18255$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18256_ACEOF 18257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18258 ac_datarootdir_hack=' 18259 s&@datadir@&$datadir&g 18260 s&@docdir@&$docdir&g 18261 s&@infodir@&$infodir&g 18262 s&@localedir@&$localedir&g 18263 s&@mandir@&$mandir&g 18264 s&\\\${datarootdir}&$datarootdir&g' ;; 18265esac 18266_ACEOF 18267 18268# Neutralize VPATH when `$srcdir' = `.'. 18269# Shell code in configure.ac might set extrasub. 18270# FIXME: do we really want to maintain this feature? 18271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18272ac_sed_extra="$ac_vpsub 18273$extrasub 18274_ACEOF 18275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18276:t 18277/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18278s|@configure_input@|$ac_sed_conf_input|;t t 18279s&@top_builddir@&$ac_top_builddir_sub&;t t 18280s&@top_build_prefix@&$ac_top_build_prefix&;t t 18281s&@srcdir@&$ac_srcdir&;t t 18282s&@abs_srcdir@&$ac_abs_srcdir&;t t 18283s&@top_srcdir@&$ac_top_srcdir&;t t 18284s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18285s&@builddir@&$ac_builddir&;t t 18286s&@abs_builddir@&$ac_abs_builddir&;t t 18287s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18288s&@INSTALL@&$ac_INSTALL&;t t 18289$ac_datarootdir_hack 18290" 18291eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18292 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18293 18294test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18295 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18296 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18297 "$ac_tmp/out"`; test -z "$ac_out"; } && 18298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18299which seems to be undefined. Please make sure it is defined" >&5 18300$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18301which seems to be undefined. Please make sure it is defined" >&2;} 18302 18303 rm -f "$ac_tmp/stdin" 18304 case $ac_file in 18305 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18306 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18307 esac \ 18308 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18309 ;; 18310 :H) 18311 # 18312 # CONFIG_HEADER 18313 # 18314 if test x"$ac_file" != x-; then 18315 { 18316 $as_echo "/* $configure_input */" \ 18317 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18318 } >"$ac_tmp/config.h" \ 18319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18320 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18321 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18322$as_echo "$as_me: $ac_file is unchanged" >&6;} 18323 else 18324 rm -f "$ac_file" 18325 mv "$ac_tmp/config.h" "$ac_file" \ 18326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18327 fi 18328 else 18329 $as_echo "/* $configure_input */" \ 18330 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18331 || as_fn_error $? "could not create -" "$LINENO" 5 18332 fi 18333 ;; 18334 18335 18336 esac 18337 18338done # for ac_tag 18339 18340 18341as_fn_exit 0 18342_ACEOF 18343ac_clean_files=$ac_clean_files_save 18344 18345test $ac_write_fail = 0 || 18346 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18347 18348 18349# configure is writing to config.log, and then calls config.status. 18350# config.status does its own redirection, appending to config.log. 18351# Unfortunately, on DOS this fails, as config.log is still kept open 18352# by configure, so config.status won't be able to write to it; its 18353# output is simply discarded. So we exec the FD to /dev/null, 18354# effectively closing config.log, so it can be properly (re)opened and 18355# appended to by config.status. When coming back to configure, we 18356# need to make the FD available again. 18357if test "$no_create" != yes; then 18358 ac_cs_success=: 18359 ac_config_status_args= 18360 test "$silent" = yes && 18361 ac_config_status_args="$ac_config_status_args --quiet" 18362 exec 5>/dev/null 18363 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18364 exec 5>>config.log 18365 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18366 # would make configure fail if this is the last instruction. 18367 $ac_cs_success || as_fn_exit 1 18368fi 18369if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18371$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18372fi 18373 18374 18375