1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for libdecnumber . 4# 5# Report bugs to <gcc-bugs@gcc.gnu.org>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 9# Foundation, Inc. 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. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org and 232$0: gcc-bugs@gcc.gnu.org about your system, including any 233$0: error possibly output before this message. Then install 234$0: a modern shell, or manually run the script under such a 235$0: shell if you do have one." 236 fi 237 exit 1 238fi 239fi 240fi 241SHELL=${CONFIG_SHELL-/bin/sh} 242export SHELL 243# Unset more variables known to interfere with behavior of common tools. 244CLICOLOR_FORCE= GREP_OPTIONS= 245unset CLICOLOR_FORCE GREP_OPTIONS 246 247## --------------------- ## 248## M4sh Shell Functions. ## 249## --------------------- ## 250# as_fn_unset VAR 251# --------------- 252# Portably unset VAR. 253as_fn_unset () 254{ 255 { eval $1=; unset $1;} 256} 257as_unset=as_fn_unset 258 259# as_fn_set_status STATUS 260# ----------------------- 261# Set $? to STATUS, without forking. 262as_fn_set_status () 263{ 264 return $1 265} # as_fn_set_status 266 267# as_fn_exit STATUS 268# ----------------- 269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 270as_fn_exit () 271{ 272 set +e 273 as_fn_set_status $1 274 exit $1 275} # as_fn_exit 276 277# as_fn_mkdir_p 278# ------------- 279# Create "$as_dir" as a directory, including parents if necessary. 280as_fn_mkdir_p () 281{ 282 283 case $as_dir in #( 284 -*) as_dir=./$as_dir;; 285 esac 286 test -d "$as_dir" || eval $as_mkdir_p || { 287 as_dirs= 288 while :; do 289 case $as_dir in #( 290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 291 *) as_qdir=$as_dir;; 292 esac 293 as_dirs="'$as_qdir' $as_dirs" 294 as_dir=`$as_dirname -- "$as_dir" || 295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 296 X"$as_dir" : 'X\(//\)[^/]' \| \ 297 X"$as_dir" : 'X\(//\)$' \| \ 298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 299$as_echo X"$as_dir" | 300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 301 s//\1/ 302 q 303 } 304 /^X\(\/\/\)[^/].*/{ 305 s//\1/ 306 q 307 } 308 /^X\(\/\/\)$/{ 309 s//\1/ 310 q 311 } 312 /^X\(\/\).*/{ 313 s//\1/ 314 q 315 } 316 s/.*/./; q'` 317 test -d "$as_dir" && break 318 done 319 test -z "$as_dirs" || eval "mkdir $as_dirs" 320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 321 322 323} # as_fn_mkdir_p 324# as_fn_append VAR VALUE 325# ---------------------- 326# Append the text in VALUE to the end of the definition contained in VAR. Take 327# advantage of any shell optimizations that allow amortized linear growth over 328# repeated appends, instead of the typical quadratic growth present in naive 329# implementations. 330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 331 eval 'as_fn_append () 332 { 333 eval $1+=\$2 334 }' 335else 336 as_fn_append () 337 { 338 eval $1=\$$1\$2 339 } 340fi # as_fn_append 341 342# as_fn_arith ARG... 343# ------------------ 344# Perform arithmetic evaluation on the ARGs, and store the result in the 345# global $as_val. Take advantage of shells that can avoid forks. The arguments 346# must be portable across $(()) and expr. 347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 348 eval 'as_fn_arith () 349 { 350 as_val=$(( $* )) 351 }' 352else 353 as_fn_arith () 354 { 355 as_val=`expr "$@" || test $? -eq 1` 356 } 357fi # as_fn_arith 358 359 360# as_fn_error ERROR [LINENO LOG_FD] 361# --------------------------------- 362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 364# script with status $?, using 1 if that was 0. 365as_fn_error () 366{ 367 as_status=$?; test $as_status -eq 0 && as_status=1 368 if test "$3"; then 369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 371 fi 372 $as_echo "$as_me: error: $1" >&2 373 as_fn_exit $as_status 374} # as_fn_error 375 376if expr a : '\(a\)' >/dev/null 2>&1 && 377 test "X`expr 00001 : '.*\(...\)'`" = X001; then 378 as_expr=expr 379else 380 as_expr=false 381fi 382 383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 384 as_basename=basename 385else 386 as_basename=false 387fi 388 389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 390 as_dirname=dirname 391else 392 as_dirname=false 393fi 394 395as_me=`$as_basename -- "$0" || 396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 397 X"$0" : 'X\(//\)$' \| \ 398 X"$0" : 'X\(/\)' \| . 2>/dev/null || 399$as_echo X/"$0" | 400 sed '/^.*\/\([^/][^/]*\)\/*$/{ 401 s//\1/ 402 q 403 } 404 /^X\/\(\/\/\)$/{ 405 s//\1/ 406 q 407 } 408 /^X\/\(\/\).*/{ 409 s//\1/ 410 q 411 } 412 s/.*/./; q'` 413 414# Avoid depending upon Character Ranges. 415as_cr_letters='abcdefghijklmnopqrstuvwxyz' 416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 417as_cr_Letters=$as_cr_letters$as_cr_LETTERS 418as_cr_digits='0123456789' 419as_cr_alnum=$as_cr_Letters$as_cr_digits 420 421 422 as_lineno_1=$LINENO as_lineno_1a=$LINENO 423 as_lineno_2=$LINENO as_lineno_2a=$LINENO 424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 427 sed -n ' 428 p 429 /[$]LINENO/= 430 ' <$as_myself | 431 sed ' 432 s/[$]LINENO.*/&-/ 433 t lineno 434 b 435 :lineno 436 N 437 :loop 438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 439 t loop 440 s/-\n.*// 441 ' >$as_me.lineno && 442 chmod +x "$as_me.lineno" || 443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 444 445 # Don't try to exec as it changes $[0], causing all sort of problems 446 # (the dirname of $[0] is not the place where we might find the 447 # original and so on. Autoconf is especially sensitive to this). 448 . "./$as_me.lineno" 449 # Exit status is that of the last command. 450 exit 451} 452 453ECHO_C= ECHO_N= ECHO_T= 454case `echo -n x` in #((((( 455-n*) 456 case `echo 'xy\c'` in 457 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 458 xy) ECHO_C='\c';; 459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 460 ECHO_T=' ';; 461 esac;; 462*) 463 ECHO_N='-n';; 464esac 465 466rm -f conf$$ conf$$.exe conf$$.file 467if test -d conf$$.dir; then 468 rm -f conf$$.dir/conf$$.file 469else 470 rm -f conf$$.dir 471 mkdir conf$$.dir 2>/dev/null 472fi 473if (echo >conf$$.file) 2>/dev/null; then 474 if ln -s conf$$.file conf$$ 2>/dev/null; then 475 as_ln_s='ln -s' 476 # ... but there are two gotchas: 477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 479 # In both cases, we have to default to `cp -p'. 480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 481 as_ln_s='cp -p' 482 elif ln conf$$.file conf$$ 2>/dev/null; then 483 as_ln_s=ln 484 else 485 as_ln_s='cp -p' 486 fi 487else 488 as_ln_s='cp -p' 489fi 490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 491rmdir conf$$.dir 2>/dev/null 492 493if mkdir -p . 2>/dev/null; then 494 as_mkdir_p='mkdir -p "$as_dir"' 495else 496 test -d ./-p && rmdir ./-p 497 as_mkdir_p=false 498fi 499 500if test -x / >/dev/null 2>&1; then 501 as_test_x='test -x' 502else 503 if ls -dL / >/dev/null 2>&1; then 504 as_ls_L_option=L 505 else 506 as_ls_L_option= 507 fi 508 as_test_x=' 509 eval sh -c '\'' 510 if test -d "$1"; then 511 test -d "$1/."; 512 else 513 case $1 in #( 514 -*)set "./$1";; 515 esac; 516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 517 ???[sx]*):;;*)false;;esac;fi 518 '\'' sh 519 ' 520fi 521as_executable_p=$as_test_x 522 523# Sed expression to map a string onto a valid CPP name. 524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 525 526# Sed expression to map a string onto a valid variable name. 527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 528 529 530exec 7<&0 </dev/null 6>&1 531 532# Name of the host. 533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 534# so uname gets run too. 535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 536 537# 538# Initializations. 539# 540ac_default_prefix=/usr/local 541ac_clean_files= 542ac_config_libobj_dir=. 543LIBOBJS= 544cross_compiling=no 545subdirs= 546MFLAGS= 547MAKEFLAGS= 548 549# Identity of this package. 550PACKAGE_NAME='libdecnumber' 551PACKAGE_TARNAME='libdecnumber' 552PACKAGE_VERSION=' ' 553PACKAGE_STRING='libdecnumber ' 554PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org' 555PACKAGE_URL='' 556 557ac_unique_file="decNumber.h" 558# Factoring default headers for most tests. 559ac_includes_default="\ 560#include <stdio.h> 561#ifdef HAVE_SYS_TYPES_H 562# include <sys/types.h> 563#endif 564#ifdef HAVE_SYS_STAT_H 565# include <sys/stat.h> 566#endif 567#ifdef STDC_HEADERS 568# include <stdlib.h> 569# include <stddef.h> 570#else 571# ifdef HAVE_STDLIB_H 572# include <stdlib.h> 573# endif 574#endif 575#ifdef HAVE_STRING_H 576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 577# include <memory.h> 578# endif 579# include <string.h> 580#endif 581#ifdef HAVE_STRINGS_H 582# include <strings.h> 583#endif 584#ifdef HAVE_INTTYPES_H 585# include <inttypes.h> 586#endif 587#ifdef HAVE_STDINT_H 588# include <stdint.h> 589#endif 590#ifdef HAVE_UNISTD_H 591# include <unistd.h> 592#endif" 593 594ac_subst_vars='LTLIBOBJS 595LIBOBJS 596PICFLAG 597ADDITIONAL_OBJS 598enable_decimal_float 599target_os 600target_vendor 601target_cpu 602target 603host_os 604host_vendor 605host_cpu 606host 607build_os 608build_vendor 609build_cpu 610build 611MAINT 612EGREP 613GREP 614CPP 615WERROR 616nolto_flags 617WARN_PEDANTIC 618WARN_CFLAGS 619AUTOHEADER 620AUTOCONF 621ACLOCAL 622RANLIB 623OBJEXT 624EXEEXT 625ac_ct_CC 626CPPFLAGS 627LDFLAGS 628CFLAGS 629CC 630SET_MAKE 631target_alias 632host_alias 633build_alias 634LIBS 635ECHO_T 636ECHO_N 637ECHO_C 638DEFS 639mandir 640localedir 641libdir 642psdir 643pdfdir 644dvidir 645htmldir 646infodir 647docdir 648oldincludedir 649includedir 650localstatedir 651sharedstatedir 652sysconfdir 653datadir 654datarootdir 655libexecdir 656sbindir 657bindir 658program_transform_name 659prefix 660exec_prefix 661PACKAGE_URL 662PACKAGE_BUGREPORT 663PACKAGE_STRING 664PACKAGE_VERSION 665PACKAGE_TARNAME 666PACKAGE_NAME 667PATH_SEPARATOR 668SHELL' 669ac_subst_files='' 670ac_user_opts=' 671enable_option_checking 672enable_werror_always 673enable_maintainer_mode 674enable_decimal_float 675enable_host_shared 676' 677 ac_precious_vars='build_alias 678host_alias 679target_alias 680CC 681CFLAGS 682LDFLAGS 683LIBS 684CPPFLAGS 685CPP' 686 687 688# Initialize some variables set by options. 689ac_init_help= 690ac_init_version=false 691ac_unrecognized_opts= 692ac_unrecognized_sep= 693# The variables have the same names as the options, with 694# dashes changed to underlines. 695cache_file=/dev/null 696exec_prefix=NONE 697no_create= 698no_recursion= 699prefix=NONE 700program_prefix=NONE 701program_suffix=NONE 702program_transform_name=s,x,x, 703silent= 704site= 705srcdir= 706verbose= 707x_includes=NONE 708x_libraries=NONE 709 710# Installation directory options. 711# These are left unexpanded so users can "make install exec_prefix=/foo" 712# and all the variables that are supposed to be based on exec_prefix 713# by default will actually change. 714# Use braces instead of parens because sh, perl, etc. also accept them. 715# (The list follows the same order as the GNU Coding Standards.) 716bindir='${exec_prefix}/bin' 717sbindir='${exec_prefix}/sbin' 718libexecdir='${exec_prefix}/libexec' 719datarootdir='${prefix}/share' 720datadir='${datarootdir}' 721sysconfdir='${prefix}/etc' 722sharedstatedir='${prefix}/com' 723localstatedir='${prefix}/var' 724includedir='${prefix}/include' 725oldincludedir='/usr/include' 726docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 727infodir='${datarootdir}/info' 728htmldir='${docdir}' 729dvidir='${docdir}' 730pdfdir='${docdir}' 731psdir='${docdir}' 732libdir='${exec_prefix}/lib' 733localedir='${datarootdir}/locale' 734mandir='${datarootdir}/man' 735 736ac_prev= 737ac_dashdash= 738for ac_option 739do 740 # If the previous option needs an argument, assign it. 741 if test -n "$ac_prev"; then 742 eval $ac_prev=\$ac_option 743 ac_prev= 744 continue 745 fi 746 747 case $ac_option in 748 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 749 *) ac_optarg=yes ;; 750 esac 751 752 # Accept the important Cygnus configure options, so we can diagnose typos. 753 754 case $ac_dashdash$ac_option in 755 --) 756 ac_dashdash=yes ;; 757 758 -bindir | --bindir | --bindi | --bind | --bin | --bi) 759 ac_prev=bindir ;; 760 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 761 bindir=$ac_optarg ;; 762 763 -build | --build | --buil | --bui | --bu) 764 ac_prev=build_alias ;; 765 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 766 build_alias=$ac_optarg ;; 767 768 -cache-file | --cache-file | --cache-fil | --cache-fi \ 769 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 770 ac_prev=cache_file ;; 771 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 772 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 773 cache_file=$ac_optarg ;; 774 775 --config-cache | -C) 776 cache_file=config.cache ;; 777 778 -datadir | --datadir | --datadi | --datad) 779 ac_prev=datadir ;; 780 -datadir=* | --datadir=* | --datadi=* | --datad=*) 781 datadir=$ac_optarg ;; 782 783 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 784 | --dataroo | --dataro | --datar) 785 ac_prev=datarootdir ;; 786 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 787 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 788 datarootdir=$ac_optarg ;; 789 790 -disable-* | --disable-*) 791 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 792 # Reject names that are not valid shell variable names. 793 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 794 as_fn_error "invalid feature name: $ac_useropt" 795 ac_useropt_orig=$ac_useropt 796 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 797 case $ac_user_opts in 798 *" 799"enable_$ac_useropt" 800"*) ;; 801 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 802 ac_unrecognized_sep=', ';; 803 esac 804 eval enable_$ac_useropt=no ;; 805 806 -docdir | --docdir | --docdi | --doc | --do) 807 ac_prev=docdir ;; 808 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 809 docdir=$ac_optarg ;; 810 811 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 812 ac_prev=dvidir ;; 813 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 814 dvidir=$ac_optarg ;; 815 816 -enable-* | --enable-*) 817 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 818 # Reject names that are not valid shell variable names. 819 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 820 as_fn_error "invalid feature name: $ac_useropt" 821 ac_useropt_orig=$ac_useropt 822 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 823 case $ac_user_opts in 824 *" 825"enable_$ac_useropt" 826"*) ;; 827 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 828 ac_unrecognized_sep=', ';; 829 esac 830 eval enable_$ac_useropt=\$ac_optarg ;; 831 832 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 833 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 834 | --exec | --exe | --ex) 835 ac_prev=exec_prefix ;; 836 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 837 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 838 | --exec=* | --exe=* | --ex=*) 839 exec_prefix=$ac_optarg ;; 840 841 -gas | --gas | --ga | --g) 842 # Obsolete; use --with-gas. 843 with_gas=yes ;; 844 845 -help | --help | --hel | --he | -h) 846 ac_init_help=long ;; 847 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 848 ac_init_help=recursive ;; 849 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 850 ac_init_help=short ;; 851 852 -host | --host | --hos | --ho) 853 ac_prev=host_alias ;; 854 -host=* | --host=* | --hos=* | --ho=*) 855 host_alias=$ac_optarg ;; 856 857 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 858 ac_prev=htmldir ;; 859 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 860 | --ht=*) 861 htmldir=$ac_optarg ;; 862 863 -includedir | --includedir | --includedi | --included | --include \ 864 | --includ | --inclu | --incl | --inc) 865 ac_prev=includedir ;; 866 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 867 | --includ=* | --inclu=* | --incl=* | --inc=*) 868 includedir=$ac_optarg ;; 869 870 -infodir | --infodir | --infodi | --infod | --info | --inf) 871 ac_prev=infodir ;; 872 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 873 infodir=$ac_optarg ;; 874 875 -libdir | --libdir | --libdi | --libd) 876 ac_prev=libdir ;; 877 -libdir=* | --libdir=* | --libdi=* | --libd=*) 878 libdir=$ac_optarg ;; 879 880 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 881 | --libexe | --libex | --libe) 882 ac_prev=libexecdir ;; 883 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 884 | --libexe=* | --libex=* | --libe=*) 885 libexecdir=$ac_optarg ;; 886 887 -localedir | --localedir | --localedi | --localed | --locale) 888 ac_prev=localedir ;; 889 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 890 localedir=$ac_optarg ;; 891 892 -localstatedir | --localstatedir | --localstatedi | --localstated \ 893 | --localstate | --localstat | --localsta | --localst | --locals) 894 ac_prev=localstatedir ;; 895 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 896 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 897 localstatedir=$ac_optarg ;; 898 899 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 900 ac_prev=mandir ;; 901 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 902 mandir=$ac_optarg ;; 903 904 -nfp | --nfp | --nf) 905 # Obsolete; use --without-fp. 906 with_fp=no ;; 907 908 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 909 | --no-cr | --no-c | -n) 910 no_create=yes ;; 911 912 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 913 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 914 no_recursion=yes ;; 915 916 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 917 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 918 | --oldin | --oldi | --old | --ol | --o) 919 ac_prev=oldincludedir ;; 920 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 921 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 922 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 923 oldincludedir=$ac_optarg ;; 924 925 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 926 ac_prev=prefix ;; 927 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 928 prefix=$ac_optarg ;; 929 930 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 931 | --program-pre | --program-pr | --program-p) 932 ac_prev=program_prefix ;; 933 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 934 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 935 program_prefix=$ac_optarg ;; 936 937 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 938 | --program-suf | --program-su | --program-s) 939 ac_prev=program_suffix ;; 940 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 941 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 942 program_suffix=$ac_optarg ;; 943 944 -program-transform-name | --program-transform-name \ 945 | --program-transform-nam | --program-transform-na \ 946 | --program-transform-n | --program-transform- \ 947 | --program-transform | --program-transfor \ 948 | --program-transfo | --program-transf \ 949 | --program-trans | --program-tran \ 950 | --progr-tra | --program-tr | --program-t) 951 ac_prev=program_transform_name ;; 952 -program-transform-name=* | --program-transform-name=* \ 953 | --program-transform-nam=* | --program-transform-na=* \ 954 | --program-transform-n=* | --program-transform-=* \ 955 | --program-transform=* | --program-transfor=* \ 956 | --program-transfo=* | --program-transf=* \ 957 | --program-trans=* | --program-tran=* \ 958 | --progr-tra=* | --program-tr=* | --program-t=*) 959 program_transform_name=$ac_optarg ;; 960 961 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 962 ac_prev=pdfdir ;; 963 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 964 pdfdir=$ac_optarg ;; 965 966 -psdir | --psdir | --psdi | --psd | --ps) 967 ac_prev=psdir ;; 968 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 969 psdir=$ac_optarg ;; 970 971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 972 | -silent | --silent | --silen | --sile | --sil) 973 silent=yes ;; 974 975 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 976 ac_prev=sbindir ;; 977 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 978 | --sbi=* | --sb=*) 979 sbindir=$ac_optarg ;; 980 981 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 982 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 983 | --sharedst | --shareds | --shared | --share | --shar \ 984 | --sha | --sh) 985 ac_prev=sharedstatedir ;; 986 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 987 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 988 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 989 | --sha=* | --sh=*) 990 sharedstatedir=$ac_optarg ;; 991 992 -site | --site | --sit) 993 ac_prev=site ;; 994 -site=* | --site=* | --sit=*) 995 site=$ac_optarg ;; 996 997 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 998 ac_prev=srcdir ;; 999 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1000 srcdir=$ac_optarg ;; 1001 1002 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1003 | --syscon | --sysco | --sysc | --sys | --sy) 1004 ac_prev=sysconfdir ;; 1005 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1006 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1007 sysconfdir=$ac_optarg ;; 1008 1009 -target | --target | --targe | --targ | --tar | --ta | --t) 1010 ac_prev=target_alias ;; 1011 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1012 target_alias=$ac_optarg ;; 1013 1014 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1015 verbose=yes ;; 1016 1017 -version | --version | --versio | --versi | --vers | -V) 1018 ac_init_version=: ;; 1019 1020 -with-* | --with-*) 1021 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1022 # Reject names that are not valid shell variable names. 1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1024 as_fn_error "invalid package name: $ac_useropt" 1025 ac_useropt_orig=$ac_useropt 1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1027 case $ac_user_opts in 1028 *" 1029"with_$ac_useropt" 1030"*) ;; 1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1032 ac_unrecognized_sep=', ';; 1033 esac 1034 eval with_$ac_useropt=\$ac_optarg ;; 1035 1036 -without-* | --without-*) 1037 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1038 # Reject names that are not valid shell variable names. 1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1040 as_fn_error "invalid package name: $ac_useropt" 1041 ac_useropt_orig=$ac_useropt 1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1043 case $ac_user_opts in 1044 *" 1045"with_$ac_useropt" 1046"*) ;; 1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1048 ac_unrecognized_sep=', ';; 1049 esac 1050 eval with_$ac_useropt=no ;; 1051 1052 --x) 1053 # Obsolete; use --with-x. 1054 with_x=yes ;; 1055 1056 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1057 | --x-incl | --x-inc | --x-in | --x-i) 1058 ac_prev=x_includes ;; 1059 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1060 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1061 x_includes=$ac_optarg ;; 1062 1063 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1064 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1065 ac_prev=x_libraries ;; 1066 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1067 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1068 x_libraries=$ac_optarg ;; 1069 1070 -*) as_fn_error "unrecognized option: \`$ac_option' 1071Try \`$0 --help' for more information." 1072 ;; 1073 1074 *=*) 1075 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1076 # Reject names that are not valid shell variable names. 1077 case $ac_envvar in #( 1078 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1079 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1080 esac 1081 eval $ac_envvar=\$ac_optarg 1082 export $ac_envvar ;; 1083 1084 *) 1085 # FIXME: should be removed in autoconf 3.0. 1086 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1087 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1088 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1089 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1090 ;; 1091 1092 esac 1093done 1094 1095if test -n "$ac_prev"; then 1096 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1097 as_fn_error "missing argument to $ac_option" 1098fi 1099 1100if test -n "$ac_unrecognized_opts"; then 1101 case $enable_option_checking in 1102 no) ;; 1103 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1104 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1105 esac 1106fi 1107 1108# Check all directory arguments for consistency. 1109for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1110 datadir sysconfdir sharedstatedir localstatedir includedir \ 1111 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1112 libdir localedir mandir 1113do 1114 eval ac_val=\$$ac_var 1115 # Remove trailing slashes. 1116 case $ac_val in 1117 */ ) 1118 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1119 eval $ac_var=\$ac_val;; 1120 esac 1121 # Be sure to have absolute directory names. 1122 case $ac_val in 1123 [\\/$]* | ?:[\\/]* ) continue;; 1124 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1125 esac 1126 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1127done 1128 1129# There might be people who depend on the old broken behavior: `$host' 1130# used to hold the argument of --host etc. 1131# FIXME: To remove some day. 1132build=$build_alias 1133host=$host_alias 1134target=$target_alias 1135 1136# FIXME: To remove some day. 1137if test "x$host_alias" != x; then 1138 if test "x$build_alias" = x; then 1139 cross_compiling=maybe 1140 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1141 If a cross compiler is detected then cross compile mode will be used." >&2 1142 elif test "x$build_alias" != "x$host_alias"; then 1143 cross_compiling=yes 1144 fi 1145fi 1146 1147ac_tool_prefix= 1148test -n "$host_alias" && ac_tool_prefix=$host_alias- 1149 1150test "$silent" = yes && exec 6>/dev/null 1151 1152 1153ac_pwd=`pwd` && test -n "$ac_pwd" && 1154ac_ls_di=`ls -di .` && 1155ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1156 as_fn_error "working directory cannot be determined" 1157test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1158 as_fn_error "pwd does not report name of working directory" 1159 1160 1161# Find the source files, if location was not specified. 1162if test -z "$srcdir"; then 1163 ac_srcdir_defaulted=yes 1164 # Try the directory containing this script, then the parent directory. 1165 ac_confdir=`$as_dirname -- "$as_myself" || 1166$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1167 X"$as_myself" : 'X\(//\)[^/]' \| \ 1168 X"$as_myself" : 'X\(//\)$' \| \ 1169 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1170$as_echo X"$as_myself" | 1171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1172 s//\1/ 1173 q 1174 } 1175 /^X\(\/\/\)[^/].*/{ 1176 s//\1/ 1177 q 1178 } 1179 /^X\(\/\/\)$/{ 1180 s//\1/ 1181 q 1182 } 1183 /^X\(\/\).*/{ 1184 s//\1/ 1185 q 1186 } 1187 s/.*/./; q'` 1188 srcdir=$ac_confdir 1189 if test ! -r "$srcdir/$ac_unique_file"; then 1190 srcdir=.. 1191 fi 1192else 1193 ac_srcdir_defaulted=no 1194fi 1195if test ! -r "$srcdir/$ac_unique_file"; then 1196 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1197 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1198fi 1199ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1200ac_abs_confdir=`( 1201 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1202 pwd)` 1203# When building in place, set srcdir=. 1204if test "$ac_abs_confdir" = "$ac_pwd"; then 1205 srcdir=. 1206fi 1207# Remove unnecessary trailing slashes from srcdir. 1208# Double slashes in file names in object file debugging info 1209# mess up M-x gdb in Emacs. 1210case $srcdir in 1211*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1212esac 1213for ac_var in $ac_precious_vars; do 1214 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1215 eval ac_env_${ac_var}_value=\$${ac_var} 1216 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1217 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1218done 1219 1220# 1221# Report the --help message. 1222# 1223if test "$ac_init_help" = "long"; then 1224 # Omit some internal or obsolete options to make the list less imposing. 1225 # This message is too long to be a string in the A/UX 3.1 sh. 1226 cat <<_ACEOF 1227\`configure' configures libdecnumber to adapt to many kinds of systems. 1228 1229Usage: $0 [OPTION]... [VAR=VALUE]... 1230 1231To assign environment variables (e.g., CC, CFLAGS...), specify them as 1232VAR=VALUE. See below for descriptions of some of the useful variables. 1233 1234Defaults for the options are specified in brackets. 1235 1236Configuration: 1237 -h, --help display this help and exit 1238 --help=short display options specific to this package 1239 --help=recursive display the short help of all the included packages 1240 -V, --version display version information and exit 1241 -q, --quiet, --silent do not print \`checking...' messages 1242 --cache-file=FILE cache test results in FILE [disabled] 1243 -C, --config-cache alias for \`--cache-file=config.cache' 1244 -n, --no-create do not create output files 1245 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1246 1247Installation directories: 1248 --prefix=PREFIX install architecture-independent files in PREFIX 1249 [$ac_default_prefix] 1250 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1251 [PREFIX] 1252 1253By default, \`make install' will install all the files in 1254\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1255an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1256for instance \`--prefix=\$HOME'. 1257 1258For better control, use the options below. 1259 1260Fine tuning of the installation directories: 1261 --bindir=DIR user executables [EPREFIX/bin] 1262 --sbindir=DIR system admin executables [EPREFIX/sbin] 1263 --libexecdir=DIR program executables [EPREFIX/libexec] 1264 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1265 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1266 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1267 --libdir=DIR object code libraries [EPREFIX/lib] 1268 --includedir=DIR C header files [PREFIX/include] 1269 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1270 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1271 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1272 --infodir=DIR info documentation [DATAROOTDIR/info] 1273 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1274 --mandir=DIR man documentation [DATAROOTDIR/man] 1275 --docdir=DIR documentation root [DATAROOTDIR/doc/libdecnumber] 1276 --htmldir=DIR html documentation [DOCDIR] 1277 --dvidir=DIR dvi documentation [DOCDIR] 1278 --pdfdir=DIR pdf documentation [DOCDIR] 1279 --psdir=DIR ps documentation [DOCDIR] 1280_ACEOF 1281 1282 cat <<\_ACEOF 1283 1284System types: 1285 --build=BUILD configure for building on BUILD [guessed] 1286 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1287 --target=TARGET configure for building compilers for TARGET [HOST] 1288_ACEOF 1289fi 1290 1291if test -n "$ac_init_help"; then 1292 case $ac_init_help in 1293 short | recursive ) echo "Configuration of libdecnumber :";; 1294 esac 1295 cat <<\_ACEOF 1296 1297Optional Features: 1298 --disable-option-checking ignore unrecognized --enable/--with options 1299 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1300 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1301 --enable-werror-always enable -Werror despite compiler version 1302 --enable-maintainer-mode enable rules only needed by maintainers 1303 --enable-decimal-float={no,yes,bid,dpd} 1304 enable decimal float extension to C. Selecting 'bid' 1305 or 'dpd' choses which decimal floating point format 1306 to use 1307 --enable-host-shared build host code as shared libraries 1308 1309Some influential environment variables: 1310 CC C compiler command 1311 CFLAGS C compiler flags 1312 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1313 nonstandard directory <lib dir> 1314 LIBS libraries to pass to the linker, e.g. -l<library> 1315 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1316 you have headers in a nonstandard directory <include dir> 1317 CPP C preprocessor 1318 1319Use these variables to override the choices made by `configure' or to help 1320it to find libraries and programs with nonstandard names/locations. 1321 1322Report bugs to <gcc-bugs@gcc.gnu.org>. 1323_ACEOF 1324ac_status=$? 1325fi 1326 1327if test "$ac_init_help" = "recursive"; then 1328 # If there are subdirs, report their specific --help. 1329 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1330 test -d "$ac_dir" || 1331 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1332 continue 1333 ac_builddir=. 1334 1335case "$ac_dir" in 1336.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1337*) 1338 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1339 # A ".." for each directory in $ac_dir_suffix. 1340 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1341 case $ac_top_builddir_sub in 1342 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1343 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1344 esac ;; 1345esac 1346ac_abs_top_builddir=$ac_pwd 1347ac_abs_builddir=$ac_pwd$ac_dir_suffix 1348# for backward compatibility: 1349ac_top_builddir=$ac_top_build_prefix 1350 1351case $srcdir in 1352 .) # We are building in place. 1353 ac_srcdir=. 1354 ac_top_srcdir=$ac_top_builddir_sub 1355 ac_abs_top_srcdir=$ac_pwd ;; 1356 [\\/]* | ?:[\\/]* ) # Absolute name. 1357 ac_srcdir=$srcdir$ac_dir_suffix; 1358 ac_top_srcdir=$srcdir 1359 ac_abs_top_srcdir=$srcdir ;; 1360 *) # Relative name. 1361 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1362 ac_top_srcdir=$ac_top_build_prefix$srcdir 1363 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1364esac 1365ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1366 1367 cd "$ac_dir" || { ac_status=$?; continue; } 1368 # Check for guested configure. 1369 if test -f "$ac_srcdir/configure.gnu"; then 1370 echo && 1371 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1372 elif test -f "$ac_srcdir/configure"; then 1373 echo && 1374 $SHELL "$ac_srcdir/configure" --help=recursive 1375 else 1376 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1377 fi || ac_status=$? 1378 cd "$ac_pwd" || { ac_status=$?; break; } 1379 done 1380fi 1381 1382test -n "$ac_init_help" && exit $ac_status 1383if $ac_init_version; then 1384 cat <<\_ACEOF 1385libdecnumber configure 1386generated by GNU Autoconf 2.64 1387 1388Copyright (C) 2009 Free Software Foundation, Inc. 1389This configure script is free software; the Free Software Foundation 1390gives unlimited permission to copy, distribute and modify it. 1391_ACEOF 1392 exit 1393fi 1394 1395## ------------------------ ## 1396## Autoconf initialization. ## 1397## ------------------------ ## 1398 1399# ac_fn_c_try_compile LINENO 1400# -------------------------- 1401# Try to compile conftest.$ac_ext, and return whether this succeeded. 1402ac_fn_c_try_compile () 1403{ 1404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1405 rm -f conftest.$ac_objext 1406 if { { ac_try="$ac_compile" 1407case "(($ac_try" in 1408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1409 *) ac_try_echo=$ac_try;; 1410esac 1411eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1412$as_echo "$ac_try_echo"; } >&5 1413 (eval "$ac_compile") 2>conftest.err 1414 ac_status=$? 1415 if test -s conftest.err; then 1416 grep -v '^ *+' conftest.err >conftest.er1 1417 cat conftest.er1 >&5 1418 mv -f conftest.er1 conftest.err 1419 fi 1420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1421 test $ac_status = 0; } && { 1422 test -z "$ac_c_werror_flag" || 1423 test ! -s conftest.err 1424 } && test -s conftest.$ac_objext; then : 1425 ac_retval=0 1426else 1427 $as_echo "$as_me: failed program was:" >&5 1428sed 's/^/| /' conftest.$ac_ext >&5 1429 1430 ac_retval=1 1431fi 1432 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1433 return $ac_retval 1434 1435} # ac_fn_c_try_compile 1436 1437# ac_fn_c_try_cpp LINENO 1438# ---------------------- 1439# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1440ac_fn_c_try_cpp () 1441{ 1442 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1443 if { { ac_try="$ac_cpp conftest.$ac_ext" 1444case "(($ac_try" in 1445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1446 *) ac_try_echo=$ac_try;; 1447esac 1448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1449$as_echo "$ac_try_echo"; } >&5 1450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1451 ac_status=$? 1452 if test -s conftest.err; then 1453 grep -v '^ *+' conftest.err >conftest.er1 1454 cat conftest.er1 >&5 1455 mv -f conftest.er1 conftest.err 1456 fi 1457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1458 test $ac_status = 0; } >/dev/null && { 1459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1460 test ! -s conftest.err 1461 }; then : 1462 ac_retval=0 1463else 1464 $as_echo "$as_me: failed program was:" >&5 1465sed 's/^/| /' conftest.$ac_ext >&5 1466 1467 ac_retval=1 1468fi 1469 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1470 return $ac_retval 1471 1472} # ac_fn_c_try_cpp 1473 1474# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1475# ------------------------------------------------------- 1476# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1477# the include files in INCLUDES and setting the cache variable VAR 1478# accordingly. 1479ac_fn_c_check_header_mongrel () 1480{ 1481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1482 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1484$as_echo_n "checking for $2... " >&6; } 1485if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1486 $as_echo_n "(cached) " >&6 1487fi 1488eval ac_res=\$$3 1489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1490$as_echo "$ac_res" >&6; } 1491else 1492 # Is the header compilable? 1493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1494$as_echo_n "checking $2 usability... " >&6; } 1495cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1496/* end confdefs.h. */ 1497$4 1498#include <$2> 1499_ACEOF 1500if ac_fn_c_try_compile "$LINENO"; then : 1501 ac_header_compiler=yes 1502else 1503 ac_header_compiler=no 1504fi 1505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1507$as_echo "$ac_header_compiler" >&6; } 1508 1509# Is the header present? 1510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1511$as_echo_n "checking $2 presence... " >&6; } 1512cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1513/* end confdefs.h. */ 1514#include <$2> 1515_ACEOF 1516if ac_fn_c_try_cpp "$LINENO"; then : 1517 ac_header_preproc=yes 1518else 1519 ac_header_preproc=no 1520fi 1521rm -f conftest.err conftest.$ac_ext 1522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1523$as_echo "$ac_header_preproc" >&6; } 1524 1525# So? What about this header? 1526case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1527 yes:no: ) 1528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1529$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1531$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1532 ;; 1533 no:yes:* ) 1534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1535$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1537$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1539$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1541$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1543$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1544( cat <<\_ASBOX 1545## ----------------------------------- ## 1546## Report this to gcc-bugs@gcc.gnu.org ## 1547## ----------------------------------- ## 1548_ASBOX 1549 ) | sed "s/^/$as_me: WARNING: /" >&2 1550 ;; 1551esac 1552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1553$as_echo_n "checking for $2... " >&6; } 1554if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1555 $as_echo_n "(cached) " >&6 1556else 1557 eval "$3=\$ac_header_compiler" 1558fi 1559eval ac_res=\$$3 1560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1561$as_echo "$ac_res" >&6; } 1562fi 1563 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1564 1565} # ac_fn_c_check_header_mongrel 1566 1567# ac_fn_c_try_run LINENO 1568# ---------------------- 1569# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1570# that executables *can* be run. 1571ac_fn_c_try_run () 1572{ 1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1574 if { { ac_try="$ac_link" 1575case "(($ac_try" in 1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1577 *) ac_try_echo=$ac_try;; 1578esac 1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1580$as_echo "$ac_try_echo"; } >&5 1581 (eval "$ac_link") 2>&5 1582 ac_status=$? 1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1584 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1585 { { case "(($ac_try" in 1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1587 *) ac_try_echo=$ac_try;; 1588esac 1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1590$as_echo "$ac_try_echo"; } >&5 1591 (eval "$ac_try") 2>&5 1592 ac_status=$? 1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1594 test $ac_status = 0; }; }; then : 1595 ac_retval=0 1596else 1597 $as_echo "$as_me: program exited with status $ac_status" >&5 1598 $as_echo "$as_me: failed program was:" >&5 1599sed 's/^/| /' conftest.$ac_ext >&5 1600 1601 ac_retval=$ac_status 1602fi 1603 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1604 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1605 return $ac_retval 1606 1607} # ac_fn_c_try_run 1608 1609# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1610# ------------------------------------------------------- 1611# Tests whether HEADER exists and can be compiled using the include files in 1612# INCLUDES, setting the cache variable VAR accordingly. 1613ac_fn_c_check_header_compile () 1614{ 1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1617$as_echo_n "checking for $2... " >&6; } 1618if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1619 $as_echo_n "(cached) " >&6 1620else 1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1622/* end confdefs.h. */ 1623$4 1624#include <$2> 1625_ACEOF 1626if ac_fn_c_try_compile "$LINENO"; then : 1627 eval "$3=yes" 1628else 1629 eval "$3=no" 1630fi 1631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1632fi 1633eval ac_res=\$$3 1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1635$as_echo "$ac_res" >&6; } 1636 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1637 1638} # ac_fn_c_check_header_compile 1639 1640# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1641# ------------------------------------------- 1642# Tests whether TYPE exists after having included INCLUDES, setting cache 1643# variable VAR accordingly. 1644ac_fn_c_check_type () 1645{ 1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1648$as_echo_n "checking for $2... " >&6; } 1649if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1650 $as_echo_n "(cached) " >&6 1651else 1652 eval "$3=no" 1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1654/* end confdefs.h. */ 1655$4 1656int 1657main () 1658{ 1659if (sizeof ($2)) 1660 return 0; 1661 ; 1662 return 0; 1663} 1664_ACEOF 1665if ac_fn_c_try_compile "$LINENO"; then : 1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1667/* end confdefs.h. */ 1668$4 1669int 1670main () 1671{ 1672if (sizeof (($2))) 1673 return 0; 1674 ; 1675 return 0; 1676} 1677_ACEOF 1678if ac_fn_c_try_compile "$LINENO"; then : 1679 1680else 1681 eval "$3=yes" 1682fi 1683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1684fi 1685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1686fi 1687eval ac_res=\$$3 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1689$as_echo "$ac_res" >&6; } 1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1691 1692} # ac_fn_c_check_type 1693 1694# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1695# -------------------------------------------- 1696# Tries to find the compile-time value of EXPR in a program that includes 1697# INCLUDES, setting VAR accordingly. Returns whether the value could be 1698# computed 1699ac_fn_c_compute_int () 1700{ 1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1702 if test "$cross_compiling" = yes; then 1703 # Depending upon the size, compute the lo and hi bounds. 1704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1705/* end confdefs.h. */ 1706$4 1707int 1708main () 1709{ 1710static int test_array [1 - 2 * !(($2) >= 0)]; 1711test_array [0] = 0 1712 1713 ; 1714 return 0; 1715} 1716_ACEOF 1717if ac_fn_c_try_compile "$LINENO"; then : 1718 ac_lo=0 ac_mid=0 1719 while :; do 1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1721/* end confdefs.h. */ 1722$4 1723int 1724main () 1725{ 1726static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1727test_array [0] = 0 1728 1729 ; 1730 return 0; 1731} 1732_ACEOF 1733if ac_fn_c_try_compile "$LINENO"; then : 1734 ac_hi=$ac_mid; break 1735else 1736 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1737 if test $ac_lo -le $ac_mid; then 1738 ac_lo= ac_hi= 1739 break 1740 fi 1741 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1742fi 1743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1744 done 1745else 1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1747/* end confdefs.h. */ 1748$4 1749int 1750main () 1751{ 1752static int test_array [1 - 2 * !(($2) < 0)]; 1753test_array [0] = 0 1754 1755 ; 1756 return 0; 1757} 1758_ACEOF 1759if ac_fn_c_try_compile "$LINENO"; then : 1760 ac_hi=-1 ac_mid=-1 1761 while :; do 1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1763/* end confdefs.h. */ 1764$4 1765int 1766main () 1767{ 1768static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1769test_array [0] = 0 1770 1771 ; 1772 return 0; 1773} 1774_ACEOF 1775if ac_fn_c_try_compile "$LINENO"; then : 1776 ac_lo=$ac_mid; break 1777else 1778 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1779 if test $ac_mid -le $ac_hi; then 1780 ac_lo= ac_hi= 1781 break 1782 fi 1783 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1784fi 1785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1786 done 1787else 1788 ac_lo= ac_hi= 1789fi 1790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1791fi 1792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1793# Binary search between lo and hi bounds. 1794while test "x$ac_lo" != "x$ac_hi"; do 1795 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1797/* end confdefs.h. */ 1798$4 1799int 1800main () 1801{ 1802static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1803test_array [0] = 0 1804 1805 ; 1806 return 0; 1807} 1808_ACEOF 1809if ac_fn_c_try_compile "$LINENO"; then : 1810 ac_hi=$ac_mid 1811else 1812 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1813fi 1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1815done 1816case $ac_lo in #(( 1817?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1818'') ac_retval=1 ;; 1819esac 1820 else 1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1822/* end confdefs.h. */ 1823$4 1824static long int longval () { return $2; } 1825static unsigned long int ulongval () { return $2; } 1826#include <stdio.h> 1827#include <stdlib.h> 1828int 1829main () 1830{ 1831 1832 FILE *f = fopen ("conftest.val", "w"); 1833 if (! f) 1834 return 1; 1835 if (($2) < 0) 1836 { 1837 long int i = longval (); 1838 if (i != ($2)) 1839 return 1; 1840 fprintf (f, "%ld", i); 1841 } 1842 else 1843 { 1844 unsigned long int i = ulongval (); 1845 if (i != ($2)) 1846 return 1; 1847 fprintf (f, "%lu", i); 1848 } 1849 /* Do not output a trailing newline, as this causes \r\n confusion 1850 on some platforms. */ 1851 return ferror (f) || fclose (f) != 0; 1852 1853 ; 1854 return 0; 1855} 1856_ACEOF 1857if ac_fn_c_try_run "$LINENO"; then : 1858 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1859else 1860 ac_retval=1 1861fi 1862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1863 conftest.$ac_objext conftest.beam conftest.$ac_ext 1864rm -f conftest.val 1865 1866 fi 1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1868 return $ac_retval 1869 1870} # ac_fn_c_compute_int 1871cat >config.log <<_ACEOF 1872This file contains any messages produced by compilers while 1873running configure, to aid debugging if configure makes a mistake. 1874 1875It was created by libdecnumber $as_me , which was 1876generated by GNU Autoconf 2.64. Invocation command line was 1877 1878 $ $0 $@ 1879 1880_ACEOF 1881exec 5>>config.log 1882{ 1883cat <<_ASUNAME 1884## --------- ## 1885## Platform. ## 1886## --------- ## 1887 1888hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1889uname -m = `(uname -m) 2>/dev/null || echo unknown` 1890uname -r = `(uname -r) 2>/dev/null || echo unknown` 1891uname -s = `(uname -s) 2>/dev/null || echo unknown` 1892uname -v = `(uname -v) 2>/dev/null || echo unknown` 1893 1894/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1895/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1896 1897/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1898/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1899/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1900/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1901/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1902/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1903/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1904 1905_ASUNAME 1906 1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1908for as_dir in $PATH 1909do 1910 IFS=$as_save_IFS 1911 test -z "$as_dir" && as_dir=. 1912 $as_echo "PATH: $as_dir" 1913 done 1914IFS=$as_save_IFS 1915 1916} >&5 1917 1918cat >&5 <<_ACEOF 1919 1920 1921## ----------- ## 1922## Core tests. ## 1923## ----------- ## 1924 1925_ACEOF 1926 1927 1928# Keep a trace of the command line. 1929# Strip out --no-create and --no-recursion so they do not pile up. 1930# Strip out --silent because we don't want to record it for future runs. 1931# Also quote any args containing shell meta-characters. 1932# Make two passes to allow for proper duplicate-argument suppression. 1933ac_configure_args= 1934ac_configure_args0= 1935ac_configure_args1= 1936ac_must_keep_next=false 1937for ac_pass in 1 2 1938do 1939 for ac_arg 1940 do 1941 case $ac_arg in 1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1944 | -silent | --silent | --silen | --sile | --sil) 1945 continue ;; 1946 *\'*) 1947 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1948 esac 1949 case $ac_pass in 1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1951 2) 1952 as_fn_append ac_configure_args1 " '$ac_arg'" 1953 if test $ac_must_keep_next = true; then 1954 ac_must_keep_next=false # Got value, back to normal. 1955 else 1956 case $ac_arg in 1957 *=* | --config-cache | -C | -disable-* | --disable-* \ 1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1960 | -with-* | --with-* | -without-* | --without-* | --x) 1961 case "$ac_configure_args0 " in 1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1963 esac 1964 ;; 1965 -* ) ac_must_keep_next=true ;; 1966 esac 1967 fi 1968 as_fn_append ac_configure_args " '$ac_arg'" 1969 ;; 1970 esac 1971 done 1972done 1973{ ac_configure_args0=; unset ac_configure_args0;} 1974{ ac_configure_args1=; unset ac_configure_args1;} 1975 1976# When interrupted or exit'd, cleanup temporary files, and complete 1977# config.log. We remove comments because anyway the quotes in there 1978# would cause problems or look ugly. 1979# WARNING: Use '\'' to represent an apostrophe within the trap. 1980# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1981trap 'exit_status=$? 1982 # Save into config.log some information that might help in debugging. 1983 { 1984 echo 1985 1986 cat <<\_ASBOX 1987## ---------------- ## 1988## Cache variables. ## 1989## ---------------- ## 1990_ASBOX 1991 echo 1992 # The following way of writing the cache mishandles newlines in values, 1993( 1994 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1995 eval ac_val=\$$ac_var 1996 case $ac_val in #( 1997 *${as_nl}*) 1998 case $ac_var in #( 1999 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2000$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2001 esac 2002 case $ac_var in #( 2003 _ | IFS | as_nl) ;; #( 2004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2005 *) { eval $ac_var=; unset $ac_var;} ;; 2006 esac ;; 2007 esac 2008 done 2009 (set) 2>&1 | 2010 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2011 *${as_nl}ac_space=\ *) 2012 sed -n \ 2013 "s/'\''/'\''\\\\'\'''\''/g; 2014 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2015 ;; #( 2016 *) 2017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2018 ;; 2019 esac | 2020 sort 2021) 2022 echo 2023 2024 cat <<\_ASBOX 2025## ----------------- ## 2026## Output variables. ## 2027## ----------------- ## 2028_ASBOX 2029 echo 2030 for ac_var in $ac_subst_vars 2031 do 2032 eval ac_val=\$$ac_var 2033 case $ac_val in 2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2035 esac 2036 $as_echo "$ac_var='\''$ac_val'\''" 2037 done | sort 2038 echo 2039 2040 if test -n "$ac_subst_files"; then 2041 cat <<\_ASBOX 2042## ------------------- ## 2043## File substitutions. ## 2044## ------------------- ## 2045_ASBOX 2046 echo 2047 for ac_var in $ac_subst_files 2048 do 2049 eval ac_val=\$$ac_var 2050 case $ac_val in 2051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2052 esac 2053 $as_echo "$ac_var='\''$ac_val'\''" 2054 done | sort 2055 echo 2056 fi 2057 2058 if test -s confdefs.h; then 2059 cat <<\_ASBOX 2060## ----------- ## 2061## confdefs.h. ## 2062## ----------- ## 2063_ASBOX 2064 echo 2065 cat confdefs.h 2066 echo 2067 fi 2068 test "$ac_signal" != 0 && 2069 $as_echo "$as_me: caught signal $ac_signal" 2070 $as_echo "$as_me: exit $exit_status" 2071 } >&5 2072 rm -f core *.core core.conftest.* && 2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2074 exit $exit_status 2075' 0 2076for ac_signal in 1 2 13 15; do 2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2078done 2079ac_signal=0 2080 2081# confdefs.h avoids OS command line length limits that DEFS can exceed. 2082rm -f -r conftest* confdefs.h 2083 2084$as_echo "/* confdefs.h */" > confdefs.h 2085 2086# Predefined preprocessor variables. 2087 2088cat >>confdefs.h <<_ACEOF 2089#define PACKAGE_NAME "$PACKAGE_NAME" 2090_ACEOF 2091 2092cat >>confdefs.h <<_ACEOF 2093#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2094_ACEOF 2095 2096cat >>confdefs.h <<_ACEOF 2097#define PACKAGE_VERSION "$PACKAGE_VERSION" 2098_ACEOF 2099 2100cat >>confdefs.h <<_ACEOF 2101#define PACKAGE_STRING "$PACKAGE_STRING" 2102_ACEOF 2103 2104cat >>confdefs.h <<_ACEOF 2105#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2106_ACEOF 2107 2108cat >>confdefs.h <<_ACEOF 2109#define PACKAGE_URL "$PACKAGE_URL" 2110_ACEOF 2111 2112 2113# Let the site file select an alternate cache file if it wants to. 2114# Prefer an explicitly selected file to automatically selected ones. 2115ac_site_file1=NONE 2116ac_site_file2=NONE 2117if test -n "$CONFIG_SITE"; then 2118 ac_site_file1=$CONFIG_SITE 2119elif test "x$prefix" != xNONE; then 2120 ac_site_file1=$prefix/share/config.site 2121 ac_site_file2=$prefix/etc/config.site 2122else 2123 ac_site_file1=$ac_default_prefix/share/config.site 2124 ac_site_file2=$ac_default_prefix/etc/config.site 2125fi 2126for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2127do 2128 test "x$ac_site_file" = xNONE && continue 2129 if test -r "$ac_site_file"; then 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2131$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2132 sed 's/^/| /' "$ac_site_file" >&5 2133 . "$ac_site_file" 2134 fi 2135done 2136 2137if test -r "$cache_file"; then 2138 # Some versions of bash will fail to source /dev/null (special 2139 # files actually), so we avoid doing that. 2140 if test -f "$cache_file"; then 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2142$as_echo "$as_me: loading cache $cache_file" >&6;} 2143 case $cache_file in 2144 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2145 *) . "./$cache_file";; 2146 esac 2147 fi 2148else 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2150$as_echo "$as_me: creating cache $cache_file" >&6;} 2151 >$cache_file 2152fi 2153 2154# Check that the precious variables saved in the cache have kept the same 2155# value. 2156ac_cache_corrupted=false 2157for ac_var in $ac_precious_vars; do 2158 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2159 eval ac_new_set=\$ac_env_${ac_var}_set 2160 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2161 eval ac_new_val=\$ac_env_${ac_var}_value 2162 case $ac_old_set,$ac_new_set in 2163 set,) 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2165$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2166 ac_cache_corrupted=: ;; 2167 ,set) 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2169$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2170 ac_cache_corrupted=: ;; 2171 ,);; 2172 *) 2173 if test "x$ac_old_val" != "x$ac_new_val"; then 2174 # differences in whitespace do not lead to failure. 2175 ac_old_val_w=`echo x $ac_old_val` 2176 ac_new_val_w=`echo x $ac_new_val` 2177 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2179$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2180 ac_cache_corrupted=: 2181 else 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2183$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2184 eval $ac_var=\$ac_old_val 2185 fi 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2187$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2189$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2190 fi;; 2191 esac 2192 # Pass precious variables to config.status. 2193 if test "$ac_new_set" = set; then 2194 case $ac_new_val in 2195 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2196 *) ac_arg=$ac_var=$ac_new_val ;; 2197 esac 2198 case " $ac_configure_args " in 2199 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2200 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2201 esac 2202 fi 2203done 2204if $ac_cache_corrupted; then 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2208$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2209 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2210fi 2211## -------------------- ## 2212## Main body of script. ## 2213## -------------------- ## 2214 2215ac_ext=c 2216ac_cpp='$CPP $CPPFLAGS' 2217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2219ac_compiler_gnu=$ac_cv_c_compiler_gnu 2220 2221 2222 2223 2224 2225 2226 2227ac_aux_dir= 2228for ac_dir in .. "$srcdir"/..; do 2229 for ac_t in install-sh install.sh shtool; do 2230 if test -f "$ac_dir/$ac_t"; then 2231 ac_aux_dir=$ac_dir 2232 ac_install_sh="$ac_aux_dir/$ac_t -c" 2233 break 2 2234 fi 2235 done 2236done 2237if test -z "$ac_aux_dir"; then 2238 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5 2239fi 2240 2241# These three variables are undocumented and unsupported, 2242# and are intended to be withdrawn in a future Autoconf release. 2243# They can cause serious problems if a builder's source tree is in a directory 2244# whose full name contains unusual characters. 2245ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2246ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2247ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2248 2249 2250 2251# Checks for programs. 2252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2253$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2254set x ${MAKE-make} 2255ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2256if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2257 $as_echo_n "(cached) " >&6 2258else 2259 cat >conftest.make <<\_ACEOF 2260SHELL = /bin/sh 2261all: 2262 @echo '@@@%%%=$(MAKE)=@@@%%%' 2263_ACEOF 2264# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2265case `${MAKE-make} -f conftest.make 2>/dev/null` in 2266 *@@@%%%=?*=@@@%%%*) 2267 eval ac_cv_prog_make_${ac_make}_set=yes;; 2268 *) 2269 eval ac_cv_prog_make_${ac_make}_set=no;; 2270esac 2271rm -f conftest.make 2272fi 2273if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2275$as_echo "yes" >&6; } 2276 SET_MAKE= 2277else 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2279$as_echo "no" >&6; } 2280 SET_MAKE="MAKE=${MAKE-make}" 2281fi 2282 2283ac_ext=c 2284ac_cpp='$CPP $CPPFLAGS' 2285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2287ac_compiler_gnu=$ac_cv_c_compiler_gnu 2288if test -n "$ac_tool_prefix"; then 2289 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2290set dummy ${ac_tool_prefix}gcc; ac_word=$2 2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2292$as_echo_n "checking for $ac_word... " >&6; } 2293if test "${ac_cv_prog_CC+set}" = set; then : 2294 $as_echo_n "(cached) " >&6 2295else 2296 if test -n "$CC"; then 2297 ac_cv_prog_CC="$CC" # Let the user override the test. 2298else 2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2300for as_dir in $PATH 2301do 2302 IFS=$as_save_IFS 2303 test -z "$as_dir" && as_dir=. 2304 for ac_exec_ext in '' $ac_executable_extensions; do 2305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2306 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2308 break 2 2309 fi 2310done 2311 done 2312IFS=$as_save_IFS 2313 2314fi 2315fi 2316CC=$ac_cv_prog_CC 2317if test -n "$CC"; then 2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2319$as_echo "$CC" >&6; } 2320else 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2322$as_echo "no" >&6; } 2323fi 2324 2325 2326fi 2327if test -z "$ac_cv_prog_CC"; then 2328 ac_ct_CC=$CC 2329 # Extract the first word of "gcc", so it can be a program name with args. 2330set dummy gcc; ac_word=$2 2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2332$as_echo_n "checking for $ac_word... " >&6; } 2333if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2334 $as_echo_n "(cached) " >&6 2335else 2336 if test -n "$ac_ct_CC"; then 2337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2338else 2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2340for as_dir in $PATH 2341do 2342 IFS=$as_save_IFS 2343 test -z "$as_dir" && as_dir=. 2344 for ac_exec_ext in '' $ac_executable_extensions; do 2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2346 ac_cv_prog_ac_ct_CC="gcc" 2347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2348 break 2 2349 fi 2350done 2351 done 2352IFS=$as_save_IFS 2353 2354fi 2355fi 2356ac_ct_CC=$ac_cv_prog_ac_ct_CC 2357if test -n "$ac_ct_CC"; then 2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2359$as_echo "$ac_ct_CC" >&6; } 2360else 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2362$as_echo "no" >&6; } 2363fi 2364 2365 if test "x$ac_ct_CC" = x; then 2366 CC="" 2367 else 2368 case $cross_compiling:$ac_tool_warned in 2369yes:) 2370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2372ac_tool_warned=yes ;; 2373esac 2374 CC=$ac_ct_CC 2375 fi 2376else 2377 CC="$ac_cv_prog_CC" 2378fi 2379 2380if test -z "$CC"; then 2381 if test -n "$ac_tool_prefix"; then 2382 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2383set dummy ${ac_tool_prefix}cc; ac_word=$2 2384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2385$as_echo_n "checking for $ac_word... " >&6; } 2386if test "${ac_cv_prog_CC+set}" = set; then : 2387 $as_echo_n "(cached) " >&6 2388else 2389 if test -n "$CC"; then 2390 ac_cv_prog_CC="$CC" # Let the user override the test. 2391else 2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2393for as_dir in $PATH 2394do 2395 IFS=$as_save_IFS 2396 test -z "$as_dir" && as_dir=. 2397 for ac_exec_ext in '' $ac_executable_extensions; do 2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2399 ac_cv_prog_CC="${ac_tool_prefix}cc" 2400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2401 break 2 2402 fi 2403done 2404 done 2405IFS=$as_save_IFS 2406 2407fi 2408fi 2409CC=$ac_cv_prog_CC 2410if test -n "$CC"; then 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2412$as_echo "$CC" >&6; } 2413else 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2415$as_echo "no" >&6; } 2416fi 2417 2418 2419 fi 2420fi 2421if test -z "$CC"; then 2422 # Extract the first word of "cc", so it can be a program name with args. 2423set dummy cc; ac_word=$2 2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2425$as_echo_n "checking for $ac_word... " >&6; } 2426if test "${ac_cv_prog_CC+set}" = set; then : 2427 $as_echo_n "(cached) " >&6 2428else 2429 if test -n "$CC"; then 2430 ac_cv_prog_CC="$CC" # Let the user override the test. 2431else 2432 ac_prog_rejected=no 2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2434for as_dir in $PATH 2435do 2436 IFS=$as_save_IFS 2437 test -z "$as_dir" && as_dir=. 2438 for ac_exec_ext in '' $ac_executable_extensions; do 2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2440 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2441 ac_prog_rejected=yes 2442 continue 2443 fi 2444 ac_cv_prog_CC="cc" 2445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2446 break 2 2447 fi 2448done 2449 done 2450IFS=$as_save_IFS 2451 2452if test $ac_prog_rejected = yes; then 2453 # We found a bogon in the path, so make sure we never use it. 2454 set dummy $ac_cv_prog_CC 2455 shift 2456 if test $# != 0; then 2457 # We chose a different compiler from the bogus one. 2458 # However, it has the same basename, so the bogon will be chosen 2459 # first if we set CC to just the basename; use the full file name. 2460 shift 2461 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2462 fi 2463fi 2464fi 2465fi 2466CC=$ac_cv_prog_CC 2467if test -n "$CC"; then 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2469$as_echo "$CC" >&6; } 2470else 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2472$as_echo "no" >&6; } 2473fi 2474 2475 2476fi 2477if test -z "$CC"; then 2478 if test -n "$ac_tool_prefix"; then 2479 for ac_prog in cl.exe 2480 do 2481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2482set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2484$as_echo_n "checking for $ac_word... " >&6; } 2485if test "${ac_cv_prog_CC+set}" = set; then : 2486 $as_echo_n "(cached) " >&6 2487else 2488 if test -n "$CC"; then 2489 ac_cv_prog_CC="$CC" # Let the user override the test. 2490else 2491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2492for as_dir in $PATH 2493do 2494 IFS=$as_save_IFS 2495 test -z "$as_dir" && as_dir=. 2496 for ac_exec_ext in '' $ac_executable_extensions; do 2497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2498 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2500 break 2 2501 fi 2502done 2503 done 2504IFS=$as_save_IFS 2505 2506fi 2507fi 2508CC=$ac_cv_prog_CC 2509if test -n "$CC"; then 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2511$as_echo "$CC" >&6; } 2512else 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2514$as_echo "no" >&6; } 2515fi 2516 2517 2518 test -n "$CC" && break 2519 done 2520fi 2521if test -z "$CC"; then 2522 ac_ct_CC=$CC 2523 for ac_prog in cl.exe 2524do 2525 # Extract the first word of "$ac_prog", so it can be a program name with args. 2526set dummy $ac_prog; ac_word=$2 2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2528$as_echo_n "checking for $ac_word... " >&6; } 2529if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2530 $as_echo_n "(cached) " >&6 2531else 2532 if test -n "$ac_ct_CC"; then 2533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2534else 2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2536for as_dir in $PATH 2537do 2538 IFS=$as_save_IFS 2539 test -z "$as_dir" && as_dir=. 2540 for ac_exec_ext in '' $ac_executable_extensions; do 2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2542 ac_cv_prog_ac_ct_CC="$ac_prog" 2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2544 break 2 2545 fi 2546done 2547 done 2548IFS=$as_save_IFS 2549 2550fi 2551fi 2552ac_ct_CC=$ac_cv_prog_ac_ct_CC 2553if test -n "$ac_ct_CC"; then 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2555$as_echo "$ac_ct_CC" >&6; } 2556else 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2558$as_echo "no" >&6; } 2559fi 2560 2561 2562 test -n "$ac_ct_CC" && break 2563done 2564 2565 if test "x$ac_ct_CC" = x; then 2566 CC="" 2567 else 2568 case $cross_compiling:$ac_tool_warned in 2569yes:) 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2572ac_tool_warned=yes ;; 2573esac 2574 CC=$ac_ct_CC 2575 fi 2576fi 2577 2578fi 2579 2580 2581test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2583as_fn_error "no acceptable C compiler found in \$PATH 2584See \`config.log' for more details." "$LINENO" 5; } 2585 2586# Provide some information about the compiler. 2587$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2588set X $ac_compile 2589ac_compiler=$2 2590for ac_option in --version -v -V -qversion; do 2591 { { ac_try="$ac_compiler $ac_option >&5" 2592case "(($ac_try" in 2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2594 *) ac_try_echo=$ac_try;; 2595esac 2596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2597$as_echo "$ac_try_echo"; } >&5 2598 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2599 ac_status=$? 2600 if test -s conftest.err; then 2601 sed '10a\ 2602... rest of stderr output deleted ... 2603 10q' conftest.err >conftest.er1 2604 cat conftest.er1 >&5 2605 rm -f conftest.er1 conftest.err 2606 fi 2607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2608 test $ac_status = 0; } 2609done 2610 2611cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2612/* end confdefs.h. */ 2613 2614int 2615main () 2616{ 2617 2618 ; 2619 return 0; 2620} 2621_ACEOF 2622ac_clean_files_save=$ac_clean_files 2623ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 2624# Try to create an executable without -o first, disregard a.out. 2625# It will help us diagnose broken compilers, and finding out an intuition 2626# of exeext. 2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2628$as_echo_n "checking for C compiler default output file name... " >&6; } 2629ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2630 2631# The possible output files: 2632ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2633 2634ac_rmfiles= 2635for ac_file in $ac_files 2636do 2637 case $ac_file in 2638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2639 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2640 esac 2641done 2642rm -f $ac_rmfiles 2643 2644if { { ac_try="$ac_link_default" 2645case "(($ac_try" in 2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2647 *) ac_try_echo=$ac_try;; 2648esac 2649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2650$as_echo "$ac_try_echo"; } >&5 2651 (eval "$ac_link_default") 2>&5 2652 ac_status=$? 2653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2654 test $ac_status = 0; }; then : 2655 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2656# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2657# in a Makefile. We should not override ac_cv_exeext if it was cached, 2658# so that the user can short-circuit this test for compilers unknown to 2659# Autoconf. 2660for ac_file in $ac_files '' 2661do 2662 test -f "$ac_file" || continue 2663 case $ac_file in 2664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2665 ;; 2666 [ab].out ) 2667 # We found the default executable, but exeext='' is most 2668 # certainly right. 2669 break;; 2670 *.* ) 2671 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2672 then :; else 2673 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2674 fi 2675 # We set ac_cv_exeext here because the later test for it is not 2676 # safe: cross compilers may not add the suffix if given an `-o' 2677 # argument, so we may need to know it at that point already. 2678 # Even if this section looks crufty: it has the advantage of 2679 # actually working. 2680 break;; 2681 * ) 2682 break;; 2683 esac 2684done 2685test "$ac_cv_exeext" = no && ac_cv_exeext= 2686 2687else 2688 ac_file='' 2689fi 2690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2691$as_echo "$ac_file" >&6; } 2692if test -z "$ac_file"; then : 2693 $as_echo "$as_me: failed program was:" >&5 2694sed 's/^/| /' conftest.$ac_ext >&5 2695 2696{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2698{ as_fn_set_status 77 2699as_fn_error "C compiler cannot create executables 2700See \`config.log' for more details." "$LINENO" 5; }; } 2701fi 2702ac_exeext=$ac_cv_exeext 2703 2704# Check that the compiler produces executables we can run. If not, either 2705# the compiler is broken, or we cross compile. 2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2707$as_echo_n "checking whether the C compiler works... " >&6; } 2708# If not cross compiling, check that we can run a simple program. 2709if test "$cross_compiling" != yes; then 2710 if { ac_try='./$ac_file' 2711 { { case "(($ac_try" in 2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2713 *) ac_try_echo=$ac_try;; 2714esac 2715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2716$as_echo "$ac_try_echo"; } >&5 2717 (eval "$ac_try") 2>&5 2718 ac_status=$? 2719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2720 test $ac_status = 0; }; }; then 2721 cross_compiling=no 2722 else 2723 if test "$cross_compiling" = maybe; then 2724 cross_compiling=yes 2725 else 2726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2728as_fn_error "cannot run C compiled programs. 2729If you meant to cross compile, use \`--host'. 2730See \`config.log' for more details." "$LINENO" 5; } 2731 fi 2732 fi 2733fi 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2735$as_echo "yes" >&6; } 2736 2737rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 2738ac_clean_files=$ac_clean_files_save 2739# Check that the compiler produces executables we can run. If not, either 2740# the compiler is broken, or we cross compile. 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2742$as_echo_n "checking whether we are cross compiling... " >&6; } 2743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2744$as_echo "$cross_compiling" >&6; } 2745 2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2747$as_echo_n "checking for suffix of executables... " >&6; } 2748if { { ac_try="$ac_link" 2749case "(($ac_try" in 2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2751 *) ac_try_echo=$ac_try;; 2752esac 2753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2754$as_echo "$ac_try_echo"; } >&5 2755 (eval "$ac_link") 2>&5 2756 ac_status=$? 2757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2758 test $ac_status = 0; }; then : 2759 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2760# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2761# work properly (i.e., refer to `conftest.exe'), while it won't with 2762# `rm'. 2763for ac_file in conftest.exe conftest conftest.*; do 2764 test -f "$ac_file" || continue 2765 case $ac_file in 2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2767 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2768 break;; 2769 * ) break;; 2770 esac 2771done 2772else 2773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2775as_fn_error "cannot compute suffix of executables: cannot compile and link 2776See \`config.log' for more details." "$LINENO" 5; } 2777fi 2778rm -f conftest$ac_cv_exeext 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2780$as_echo "$ac_cv_exeext" >&6; } 2781 2782rm -f conftest.$ac_ext 2783EXEEXT=$ac_cv_exeext 2784ac_exeext=$EXEEXT 2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2786$as_echo_n "checking for suffix of object files... " >&6; } 2787if test "${ac_cv_objext+set}" = set; then : 2788 $as_echo_n "(cached) " >&6 2789else 2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2791/* end confdefs.h. */ 2792 2793int 2794main () 2795{ 2796 2797 ; 2798 return 0; 2799} 2800_ACEOF 2801rm -f conftest.o conftest.obj 2802if { { ac_try="$ac_compile" 2803case "(($ac_try" in 2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2805 *) ac_try_echo=$ac_try;; 2806esac 2807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2808$as_echo "$ac_try_echo"; } >&5 2809 (eval "$ac_compile") 2>&5 2810 ac_status=$? 2811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2812 test $ac_status = 0; }; then : 2813 for ac_file in conftest.o conftest.obj conftest.*; do 2814 test -f "$ac_file" || continue; 2815 case $ac_file in 2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2817 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2818 break;; 2819 esac 2820done 2821else 2822 $as_echo "$as_me: failed program was:" >&5 2823sed 's/^/| /' conftest.$ac_ext >&5 2824 2825{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2827as_fn_error "cannot compute suffix of object files: cannot compile 2828See \`config.log' for more details." "$LINENO" 5; } 2829fi 2830rm -f conftest.$ac_cv_objext conftest.$ac_ext 2831fi 2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2833$as_echo "$ac_cv_objext" >&6; } 2834OBJEXT=$ac_cv_objext 2835ac_objext=$OBJEXT 2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2837$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2838if test "${ac_cv_c_compiler_gnu+set}" = set; then : 2839 $as_echo_n "(cached) " >&6 2840else 2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2842/* end confdefs.h. */ 2843 2844int 2845main () 2846{ 2847#ifndef __GNUC__ 2848 choke me 2849#endif 2850 2851 ; 2852 return 0; 2853} 2854_ACEOF 2855if ac_fn_c_try_compile "$LINENO"; then : 2856 ac_compiler_gnu=yes 2857else 2858 ac_compiler_gnu=no 2859fi 2860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2861ac_cv_c_compiler_gnu=$ac_compiler_gnu 2862 2863fi 2864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2865$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2866if test $ac_compiler_gnu = yes; then 2867 GCC=yes 2868else 2869 GCC= 2870fi 2871ac_test_CFLAGS=${CFLAGS+set} 2872ac_save_CFLAGS=$CFLAGS 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2874$as_echo_n "checking whether $CC accepts -g... " >&6; } 2875if test "${ac_cv_prog_cc_g+set}" = set; then : 2876 $as_echo_n "(cached) " >&6 2877else 2878 ac_save_c_werror_flag=$ac_c_werror_flag 2879 ac_c_werror_flag=yes 2880 ac_cv_prog_cc_g=no 2881 CFLAGS="-g" 2882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2883/* end confdefs.h. */ 2884 2885int 2886main () 2887{ 2888 2889 ; 2890 return 0; 2891} 2892_ACEOF 2893if ac_fn_c_try_compile "$LINENO"; then : 2894 ac_cv_prog_cc_g=yes 2895else 2896 CFLAGS="" 2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2898/* end confdefs.h. */ 2899 2900int 2901main () 2902{ 2903 2904 ; 2905 return 0; 2906} 2907_ACEOF 2908if ac_fn_c_try_compile "$LINENO"; then : 2909 2910else 2911 ac_c_werror_flag=$ac_save_c_werror_flag 2912 CFLAGS="-g" 2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2914/* end confdefs.h. */ 2915 2916int 2917main () 2918{ 2919 2920 ; 2921 return 0; 2922} 2923_ACEOF 2924if ac_fn_c_try_compile "$LINENO"; then : 2925 ac_cv_prog_cc_g=yes 2926fi 2927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2928fi 2929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2930fi 2931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2932 ac_c_werror_flag=$ac_save_c_werror_flag 2933fi 2934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2935$as_echo "$ac_cv_prog_cc_g" >&6; } 2936if test "$ac_test_CFLAGS" = set; then 2937 CFLAGS=$ac_save_CFLAGS 2938elif test $ac_cv_prog_cc_g = yes; then 2939 if test "$GCC" = yes; then 2940 CFLAGS="-g -O2" 2941 else 2942 CFLAGS="-g" 2943 fi 2944else 2945 if test "$GCC" = yes; then 2946 CFLAGS="-O2" 2947 else 2948 CFLAGS= 2949 fi 2950fi 2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2952$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2953if test "${ac_cv_prog_cc_c89+set}" = set; then : 2954 $as_echo_n "(cached) " >&6 2955else 2956 ac_cv_prog_cc_c89=no 2957ac_save_CC=$CC 2958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2959/* end confdefs.h. */ 2960#include <stdarg.h> 2961#include <stdio.h> 2962#include <sys/types.h> 2963#include <sys/stat.h> 2964/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2965struct buf { int x; }; 2966FILE * (*rcsopen) (struct buf *, struct stat *, int); 2967static char *e (p, i) 2968 char **p; 2969 int i; 2970{ 2971 return p[i]; 2972} 2973static char *f (char * (*g) (char **, int), char **p, ...) 2974{ 2975 char *s; 2976 va_list v; 2977 va_start (v,p); 2978 s = g (p, va_arg (v,int)); 2979 va_end (v); 2980 return s; 2981} 2982 2983/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2984 function prototypes and stuff, but not '\xHH' hex character constants. 2985 These don't provoke an error unfortunately, instead are silently treated 2986 as 'x'. The following induces an error, until -std is added to get 2987 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2988 array size at least. It's necessary to write '\x00'==0 to get something 2989 that's true only with -std. */ 2990int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2991 2992/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2993 inside strings and character constants. */ 2994#define FOO(x) 'x' 2995int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2996 2997int test (int i, double x); 2998struct s1 {int (*f) (int a);}; 2999struct s2 {int (*f) (double a);}; 3000int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3001int argc; 3002char **argv; 3003int 3004main () 3005{ 3006return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3007 ; 3008 return 0; 3009} 3010_ACEOF 3011for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3012 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3013do 3014 CC="$ac_save_CC $ac_arg" 3015 if ac_fn_c_try_compile "$LINENO"; then : 3016 ac_cv_prog_cc_c89=$ac_arg 3017fi 3018rm -f core conftest.err conftest.$ac_objext 3019 test "x$ac_cv_prog_cc_c89" != "xno" && break 3020done 3021rm -f conftest.$ac_ext 3022CC=$ac_save_CC 3023 3024fi 3025# AC_CACHE_VAL 3026case "x$ac_cv_prog_cc_c89" in 3027 x) 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3029$as_echo "none needed" >&6; } ;; 3030 xno) 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3032$as_echo "unsupported" >&6; } ;; 3033 *) 3034 CC="$CC $ac_cv_prog_cc_c89" 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3036$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3037esac 3038if test "x$ac_cv_prog_cc_c89" != xno; then : 3039 3040fi 3041 3042ac_ext=c 3043ac_cpp='$CPP $CPPFLAGS' 3044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3046ac_compiler_gnu=$ac_cv_c_compiler_gnu 3047 3048if test -n "$ac_tool_prefix"; then 3049 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3050set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3052$as_echo_n "checking for $ac_word... " >&6; } 3053if test "${ac_cv_prog_RANLIB+set}" = set; then : 3054 $as_echo_n "(cached) " >&6 3055else 3056 if test -n "$RANLIB"; then 3057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3058else 3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3060for as_dir in $PATH 3061do 3062 IFS=$as_save_IFS 3063 test -z "$as_dir" && as_dir=. 3064 for ac_exec_ext in '' $ac_executable_extensions; do 3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3066 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3068 break 2 3069 fi 3070done 3071 done 3072IFS=$as_save_IFS 3073 3074fi 3075fi 3076RANLIB=$ac_cv_prog_RANLIB 3077if test -n "$RANLIB"; then 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3079$as_echo "$RANLIB" >&6; } 3080else 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3082$as_echo "no" >&6; } 3083fi 3084 3085 3086fi 3087if test -z "$ac_cv_prog_RANLIB"; then 3088 ac_ct_RANLIB=$RANLIB 3089 # Extract the first word of "ranlib", so it can be a program name with args. 3090set dummy ranlib; ac_word=$2 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3092$as_echo_n "checking for $ac_word... " >&6; } 3093if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 3094 $as_echo_n "(cached) " >&6 3095else 3096 if test -n "$ac_ct_RANLIB"; then 3097 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3098else 3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3100for as_dir in $PATH 3101do 3102 IFS=$as_save_IFS 3103 test -z "$as_dir" && as_dir=. 3104 for ac_exec_ext in '' $ac_executable_extensions; do 3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3106 ac_cv_prog_ac_ct_RANLIB="ranlib" 3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3108 break 2 3109 fi 3110done 3111 done 3112IFS=$as_save_IFS 3113 3114fi 3115fi 3116ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3117if test -n "$ac_ct_RANLIB"; then 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3119$as_echo "$ac_ct_RANLIB" >&6; } 3120else 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3122$as_echo "no" >&6; } 3123fi 3124 3125 if test "x$ac_ct_RANLIB" = x; then 3126 RANLIB=":" 3127 else 3128 case $cross_compiling:$ac_tool_warned in 3129yes:) 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3132ac_tool_warned=yes ;; 3133esac 3134 RANLIB=$ac_ct_RANLIB 3135 fi 3136else 3137 RANLIB="$ac_cv_prog_RANLIB" 3138fi 3139 3140 3141MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing 3142for ac_prog in aclocal 3143do 3144 # Extract the first word of "$ac_prog", so it can be a program name with args. 3145set dummy $ac_prog; ac_word=$2 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3147$as_echo_n "checking for $ac_word... " >&6; } 3148if test "${ac_cv_prog_ACLOCAL+set}" = set; then : 3149 $as_echo_n "(cached) " >&6 3150else 3151 if test -n "$ACLOCAL"; then 3152 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test. 3153else 3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3155for as_dir in $PATH 3156do 3157 IFS=$as_save_IFS 3158 test -z "$as_dir" && as_dir=. 3159 for ac_exec_ext in '' $ac_executable_extensions; do 3160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3161 ac_cv_prog_ACLOCAL="$ac_prog" 3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3163 break 2 3164 fi 3165done 3166 done 3167IFS=$as_save_IFS 3168 3169fi 3170fi 3171ACLOCAL=$ac_cv_prog_ACLOCAL 3172if test -n "$ACLOCAL"; then 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 3174$as_echo "$ACLOCAL" >&6; } 3175else 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3177$as_echo "no" >&6; } 3178fi 3179 3180 3181 test -n "$ACLOCAL" && break 3182done 3183test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal" 3184 3185for ac_prog in autoconf 3186do 3187 # Extract the first word of "$ac_prog", so it can be a program name with args. 3188set dummy $ac_prog; ac_word=$2 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3190$as_echo_n "checking for $ac_word... " >&6; } 3191if test "${ac_cv_prog_AUTOCONF+set}" = set; then : 3192 $as_echo_n "(cached) " >&6 3193else 3194 if test -n "$AUTOCONF"; then 3195 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. 3196else 3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3198for as_dir in $PATH 3199do 3200 IFS=$as_save_IFS 3201 test -z "$as_dir" && as_dir=. 3202 for ac_exec_ext in '' $ac_executable_extensions; do 3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3204 ac_cv_prog_AUTOCONF="$ac_prog" 3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3206 break 2 3207 fi 3208done 3209 done 3210IFS=$as_save_IFS 3211 3212fi 3213fi 3214AUTOCONF=$ac_cv_prog_AUTOCONF 3215if test -n "$AUTOCONF"; then 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 3217$as_echo "$AUTOCONF" >&6; } 3218else 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3220$as_echo "no" >&6; } 3221fi 3222 3223 3224 test -n "$AUTOCONF" && break 3225done 3226test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf" 3227 3228for ac_prog in autoheader 3229do 3230 # Extract the first word of "$ac_prog", so it can be a program name with args. 3231set dummy $ac_prog; ac_word=$2 3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3233$as_echo_n "checking for $ac_word... " >&6; } 3234if test "${ac_cv_prog_AUTOHEADER+set}" = set; then : 3235 $as_echo_n "(cached) " >&6 3236else 3237 if test -n "$AUTOHEADER"; then 3238 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test. 3239else 3240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3241for as_dir in $PATH 3242do 3243 IFS=$as_save_IFS 3244 test -z "$as_dir" && as_dir=. 3245 for ac_exec_ext in '' $ac_executable_extensions; do 3246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3247 ac_cv_prog_AUTOHEADER="$ac_prog" 3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3249 break 2 3250 fi 3251done 3252 done 3253IFS=$as_save_IFS 3254 3255fi 3256fi 3257AUTOHEADER=$ac_cv_prog_AUTOHEADER 3258if test -n "$AUTOHEADER"; then 3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5 3260$as_echo "$AUTOHEADER" >&6; } 3261else 3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3263$as_echo "no" >&6; } 3264fi 3265 3266 3267 test -n "$AUTOHEADER" && break 3268done 3269test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader" 3270 3271 3272# Figure out what compiler warnings we can enable. 3273# See config/warnings.m4 for details. 3274 3275 3276ac_ext=c 3277ac_cpp='$CPP $CPPFLAGS' 3278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3280ac_compiler_gnu=$ac_cv_c_compiler_gnu 3281 3282WARN_CFLAGS= 3283save_CFLAGS="$CFLAGS" 3284for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \ 3285 -Wmissing-prototypes -Wold-style-definition \ 3286 -Wmissing-format-attribute -Wcast-qual; do 3287 # Do the check with the no- prefix removed since gcc silently 3288 # accepts any -Wno-* option on purpose 3289 case $real_option in 3290 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 3291 *) option=$real_option ;; 3292 esac 3293 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 3294 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 3296$as_echo_n "checking whether $CC supports $option... " >&6; } 3297if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then : 3298 $as_echo_n "(cached) " >&6 3299else 3300 CFLAGS="$option" 3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3302/* end confdefs.h. */ 3303 3304int 3305main () 3306{ 3307 3308 ; 3309 return 0; 3310} 3311_ACEOF 3312if ac_fn_c_try_compile "$LINENO"; then : 3313 eval "$as_acx_Woption=yes" 3314else 3315 eval "$as_acx_Woption=no" 3316fi 3317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3318 3319fi 3320eval ac_res=\$$as_acx_Woption 3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3322$as_echo "$ac_res" >&6; } 3323 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 3324 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$real_option" 3325fi 3326 done 3327CFLAGS="$save_CFLAGS" 3328ac_ext=c 3329ac_cpp='$CPP $CPPFLAGS' 3330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3332ac_compiler_gnu=$ac_cv_c_compiler_gnu 3333 3334 3335ac_ext=c 3336ac_cpp='$CPP $CPPFLAGS' 3337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3339ac_compiler_gnu=$ac_cv_c_compiler_gnu 3340 3341WARN_PEDANTIC= 3342# Do the check with the no- prefix removed from the warning options 3343# since gcc silently accepts any -Wno-* option on purpose 3344if test "$GCC" = yes; then : 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5 3346$as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; } 3347if test "${acx_cv_prog_cc_pedantic__Wlong_long+set}" = set; then : 3348 $as_echo_n "(cached) " >&6 3349else 3350 save_CFLAGS="$CFLAGS" 3351CFLAGS="-pedantic -Wlong-long" 3352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3353/* end confdefs.h. */ 3354 3355int 3356main () 3357{ 3358 3359 ; 3360 return 0; 3361} 3362_ACEOF 3363if ac_fn_c_try_compile "$LINENO"; then : 3364 acx_cv_prog_cc_pedantic__Wlong_long=yes 3365else 3366 acx_cv_prog_cc_pedantic__Wlong_long=no 3367fi 3368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3369CFLAGS="$save_CFLAGS" 3370fi 3371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5 3372$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; } 3373if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then : 3374 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long" 3375fi 3376 3377fi 3378ac_ext=c 3379ac_cpp='$CPP $CPPFLAGS' 3380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3382ac_compiler_gnu=$ac_cv_c_compiler_gnu 3383 3384 3385 3386ac_ext=c 3387ac_cpp='$CPP $CPPFLAGS' 3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3390ac_compiler_gnu=$ac_cv_c_compiler_gnu 3391 3392nolto_flags= 3393save_CFLAGS="$CFLAGS" 3394for real_option in -fno-lto; do 3395 # Do the check with the no- prefix removed since gcc silently 3396 # accepts any -Wno-* option on purpose 3397 case $real_option in 3398 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 3399 *) option=$real_option ;; 3400 esac 3401 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 3402 3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 3404$as_echo_n "checking whether $CC supports $option... " >&6; } 3405if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then : 3406 $as_echo_n "(cached) " >&6 3407else 3408 CFLAGS="$option" 3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3410/* end confdefs.h. */ 3411 3412int 3413main () 3414{ 3415 3416 ; 3417 return 0; 3418} 3419_ACEOF 3420if ac_fn_c_try_compile "$LINENO"; then : 3421 eval "$as_acx_Woption=yes" 3422else 3423 eval "$as_acx_Woption=no" 3424fi 3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3426 3427fi 3428eval ac_res=\$$as_acx_Woption 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3430$as_echo "$ac_res" >&6; } 3431 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 3432 nolto_flags="$nolto_flags${nolto_flags:+ }$real_option" 3433fi 3434 done 3435CFLAGS="$save_CFLAGS" 3436ac_ext=c 3437ac_cpp='$CPP $CPPFLAGS' 3438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3440ac_compiler_gnu=$ac_cv_c_compiler_gnu 3441 3442 3443 3444# Only enable with --enable-werror-always until existing warnings are 3445# corrected. 3446ac_ext=c 3447ac_cpp='$CPP $CPPFLAGS' 3448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3450ac_compiler_gnu=$ac_cv_c_compiler_gnu 3451 3452WERROR= 3453# Check whether --enable-werror-always was given. 3454if test "${enable_werror_always+set}" = set; then : 3455 enableval=$enable_werror_always; 3456else 3457 enable_werror_always=no 3458fi 3459 3460if test $enable_werror_always = yes; then : 3461 WERROR="$WERROR${WERROR:+ }-Werror" 3462fi 3463 3464ac_ext=c 3465ac_cpp='$CPP $CPPFLAGS' 3466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3468ac_compiler_gnu=$ac_cv_c_compiler_gnu 3469 3470 3471 3472# Checks for header files. 3473ac_ext=c 3474ac_cpp='$CPP $CPPFLAGS' 3475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3477ac_compiler_gnu=$ac_cv_c_compiler_gnu 3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3479$as_echo_n "checking how to run the C preprocessor... " >&6; } 3480# On Suns, sometimes $CPP names a directory. 3481if test -n "$CPP" && test -d "$CPP"; then 3482 CPP= 3483fi 3484if test -z "$CPP"; then 3485 if test "${ac_cv_prog_CPP+set}" = set; then : 3486 $as_echo_n "(cached) " >&6 3487else 3488 # Double quotes because CPP needs to be expanded 3489 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3490 do 3491 ac_preproc_ok=false 3492for ac_c_preproc_warn_flag in '' yes 3493do 3494 # Use a header file that comes with gcc, so configuring glibc 3495 # with a fresh cross-compiler works. 3496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3497 # <limits.h> exists even on freestanding compilers. 3498 # On the NeXT, cc -E runs the code through the compiler's parser, 3499 # not just through cpp. "Syntax error" is here to catch this case. 3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3501/* end confdefs.h. */ 3502#ifdef __STDC__ 3503# include <limits.h> 3504#else 3505# include <assert.h> 3506#endif 3507 Syntax error 3508_ACEOF 3509if ac_fn_c_try_cpp "$LINENO"; then : 3510 3511else 3512 # Broken: fails on valid input. 3513continue 3514fi 3515rm -f conftest.err conftest.$ac_ext 3516 3517 # OK, works on sane cases. Now check whether nonexistent headers 3518 # can be detected and how. 3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3520/* end confdefs.h. */ 3521#include <ac_nonexistent.h> 3522_ACEOF 3523if ac_fn_c_try_cpp "$LINENO"; then : 3524 # Broken: success on invalid input. 3525continue 3526else 3527 # Passes both tests. 3528ac_preproc_ok=: 3529break 3530fi 3531rm -f conftest.err conftest.$ac_ext 3532 3533done 3534# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3535rm -f conftest.err conftest.$ac_ext 3536if $ac_preproc_ok; then : 3537 break 3538fi 3539 3540 done 3541 ac_cv_prog_CPP=$CPP 3542 3543fi 3544 CPP=$ac_cv_prog_CPP 3545else 3546 ac_cv_prog_CPP=$CPP 3547fi 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3549$as_echo "$CPP" >&6; } 3550ac_preproc_ok=false 3551for ac_c_preproc_warn_flag in '' yes 3552do 3553 # Use a header file that comes with gcc, so configuring glibc 3554 # with a fresh cross-compiler works. 3555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3556 # <limits.h> exists even on freestanding compilers. 3557 # On the NeXT, cc -E runs the code through the compiler's parser, 3558 # not just through cpp. "Syntax error" is here to catch this case. 3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3560/* end confdefs.h. */ 3561#ifdef __STDC__ 3562# include <limits.h> 3563#else 3564# include <assert.h> 3565#endif 3566 Syntax error 3567_ACEOF 3568if ac_fn_c_try_cpp "$LINENO"; then : 3569 3570else 3571 # Broken: fails on valid input. 3572continue 3573fi 3574rm -f conftest.err conftest.$ac_ext 3575 3576 # OK, works on sane cases. Now check whether nonexistent headers 3577 # can be detected and how. 3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580#include <ac_nonexistent.h> 3581_ACEOF 3582if ac_fn_c_try_cpp "$LINENO"; then : 3583 # Broken: success on invalid input. 3584continue 3585else 3586 # Passes both tests. 3587ac_preproc_ok=: 3588break 3589fi 3590rm -f conftest.err conftest.$ac_ext 3591 3592done 3593# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3594rm -f conftest.err conftest.$ac_ext 3595if $ac_preproc_ok; then : 3596 3597else 3598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3599$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3600as_fn_error "C preprocessor \"$CPP\" fails sanity check 3601See \`config.log' for more details." "$LINENO" 5; } 3602fi 3603 3604ac_ext=c 3605ac_cpp='$CPP $CPPFLAGS' 3606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3608ac_compiler_gnu=$ac_cv_c_compiler_gnu 3609 3610 3611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3612$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3613if test "${ac_cv_path_GREP+set}" = set; then : 3614 $as_echo_n "(cached) " >&6 3615else 3616 if test -z "$GREP"; then 3617 ac_path_GREP_found=false 3618 # Loop through the user's path and test for each of PROGNAME-LIST 3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3620for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3621do 3622 IFS=$as_save_IFS 3623 test -z "$as_dir" && as_dir=. 3624 for ac_prog in grep ggrep; do 3625 for ac_exec_ext in '' $ac_executable_extensions; do 3626 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3627 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3628# Check for GNU ac_path_GREP and select it if it is found. 3629 # Check for GNU $ac_path_GREP 3630case `"$ac_path_GREP" --version 2>&1` in 3631*GNU*) 3632 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3633*) 3634 ac_count=0 3635 $as_echo_n 0123456789 >"conftest.in" 3636 while : 3637 do 3638 cat "conftest.in" "conftest.in" >"conftest.tmp" 3639 mv "conftest.tmp" "conftest.in" 3640 cp "conftest.in" "conftest.nl" 3641 $as_echo 'GREP' >> "conftest.nl" 3642 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3644 as_fn_arith $ac_count + 1 && ac_count=$as_val 3645 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3646 # Best one so far, save it but keep looking for a better one 3647 ac_cv_path_GREP="$ac_path_GREP" 3648 ac_path_GREP_max=$ac_count 3649 fi 3650 # 10*(2^10) chars as input seems more than enough 3651 test $ac_count -gt 10 && break 3652 done 3653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3654esac 3655 3656 $ac_path_GREP_found && break 3 3657 done 3658 done 3659 done 3660IFS=$as_save_IFS 3661 if test -z "$ac_cv_path_GREP"; then 3662 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3663 fi 3664else 3665 ac_cv_path_GREP=$GREP 3666fi 3667 3668fi 3669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3670$as_echo "$ac_cv_path_GREP" >&6; } 3671 GREP="$ac_cv_path_GREP" 3672 3673 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3675$as_echo_n "checking for egrep... " >&6; } 3676if test "${ac_cv_path_EGREP+set}" = set; then : 3677 $as_echo_n "(cached) " >&6 3678else 3679 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3680 then ac_cv_path_EGREP="$GREP -E" 3681 else 3682 if test -z "$EGREP"; then 3683 ac_path_EGREP_found=false 3684 # Loop through the user's path and test for each of PROGNAME-LIST 3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3686for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3687do 3688 IFS=$as_save_IFS 3689 test -z "$as_dir" && as_dir=. 3690 for ac_prog in egrep; do 3691 for ac_exec_ext in '' $ac_executable_extensions; do 3692 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3693 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3694# Check for GNU ac_path_EGREP and select it if it is found. 3695 # Check for GNU $ac_path_EGREP 3696case `"$ac_path_EGREP" --version 2>&1` in 3697*GNU*) 3698 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3699*) 3700 ac_count=0 3701 $as_echo_n 0123456789 >"conftest.in" 3702 while : 3703 do 3704 cat "conftest.in" "conftest.in" >"conftest.tmp" 3705 mv "conftest.tmp" "conftest.in" 3706 cp "conftest.in" "conftest.nl" 3707 $as_echo 'EGREP' >> "conftest.nl" 3708 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3710 as_fn_arith $ac_count + 1 && ac_count=$as_val 3711 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3712 # Best one so far, save it but keep looking for a better one 3713 ac_cv_path_EGREP="$ac_path_EGREP" 3714 ac_path_EGREP_max=$ac_count 3715 fi 3716 # 10*(2^10) chars as input seems more than enough 3717 test $ac_count -gt 10 && break 3718 done 3719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3720esac 3721 3722 $ac_path_EGREP_found && break 3 3723 done 3724 done 3725 done 3726IFS=$as_save_IFS 3727 if test -z "$ac_cv_path_EGREP"; then 3728 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3729 fi 3730else 3731 ac_cv_path_EGREP=$EGREP 3732fi 3733 3734 fi 3735fi 3736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3737$as_echo "$ac_cv_path_EGREP" >&6; } 3738 EGREP="$ac_cv_path_EGREP" 3739 3740 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3742$as_echo_n "checking for ANSI C header files... " >&6; } 3743if test "${ac_cv_header_stdc+set}" = set; then : 3744 $as_echo_n "(cached) " >&6 3745else 3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3747/* end confdefs.h. */ 3748#include <stdlib.h> 3749#include <stdarg.h> 3750#include <string.h> 3751#include <float.h> 3752 3753int 3754main () 3755{ 3756 3757 ; 3758 return 0; 3759} 3760_ACEOF 3761if ac_fn_c_try_compile "$LINENO"; then : 3762 ac_cv_header_stdc=yes 3763else 3764 ac_cv_header_stdc=no 3765fi 3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3767 3768if test $ac_cv_header_stdc = yes; then 3769 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3771/* end confdefs.h. */ 3772#include <string.h> 3773 3774_ACEOF 3775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3776 $EGREP "memchr" >/dev/null 2>&1; then : 3777 3778else 3779 ac_cv_header_stdc=no 3780fi 3781rm -f conftest* 3782 3783fi 3784 3785if test $ac_cv_header_stdc = yes; then 3786 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3788/* end confdefs.h. */ 3789#include <stdlib.h> 3790 3791_ACEOF 3792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3793 $EGREP "free" >/dev/null 2>&1; then : 3794 3795else 3796 ac_cv_header_stdc=no 3797fi 3798rm -f conftest* 3799 3800fi 3801 3802if test $ac_cv_header_stdc = yes; then 3803 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3804 if test "$cross_compiling" = yes; then : 3805 : 3806else 3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3808/* end confdefs.h. */ 3809#include <ctype.h> 3810#include <stdlib.h> 3811#if ((' ' & 0x0FF) == 0x020) 3812# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3813# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3814#else 3815# define ISLOWER(c) \ 3816 (('a' <= (c) && (c) <= 'i') \ 3817 || ('j' <= (c) && (c) <= 'r') \ 3818 || ('s' <= (c) && (c) <= 'z')) 3819# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3820#endif 3821 3822#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3823int 3824main () 3825{ 3826 int i; 3827 for (i = 0; i < 256; i++) 3828 if (XOR (islower (i), ISLOWER (i)) 3829 || toupper (i) != TOUPPER (i)) 3830 return 2; 3831 return 0; 3832} 3833_ACEOF 3834if ac_fn_c_try_run "$LINENO"; then : 3835 3836else 3837 ac_cv_header_stdc=no 3838fi 3839rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3840 conftest.$ac_objext conftest.beam conftest.$ac_ext 3841fi 3842 3843fi 3844fi 3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3846$as_echo "$ac_cv_header_stdc" >&6; } 3847if test $ac_cv_header_stdc = yes; then 3848 3849$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3850 3851fi 3852 3853# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3854for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3855 inttypes.h stdint.h unistd.h 3856do : 3857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3858ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3859" 3860eval as_val=\$$as_ac_Header 3861 if test "x$as_val" = x""yes; then : 3862 cat >>confdefs.h <<_ACEOF 3863#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3864_ACEOF 3865 3866fi 3867 3868done 3869 3870 3871for ac_header in ctype.h stddef.h string.h stdio.h 3872do : 3873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3874ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 3875eval as_val=\$$as_ac_Header 3876 if test "x$as_val" = x""yes; then : 3877 cat >>confdefs.h <<_ACEOF 3878#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3879_ACEOF 3880 3881fi 3882 3883done 3884 3885 3886 3887inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` 3888 3889acx_cv_header_stdint=stddef.h 3890acx_cv_header_stdint_kind="(already complete)" 3891for i in stdint.h $inttype_headers; do 3892 unset ac_cv_type_uintptr_t 3893 unset ac_cv_type_uintmax_t 3894 unset ac_cv_type_int_least32_t 3895 unset ac_cv_type_int_fast32_t 3896 unset ac_cv_type_uint64_t 3897 $as_echo_n "looking for a compliant stdint.h in $i, " >&6 3898 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> 3899#include <$i> 3900" 3901if test "x$ac_cv_type_uintmax_t" = x""yes; then : 3902 acx_cv_header_stdint=$i 3903else 3904 continue 3905fi 3906 3907 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 3908#include <$i> 3909" 3910if test "x$ac_cv_type_uintptr_t" = x""yes; then : 3911 3912else 3913 acx_cv_header_stdint_kind="(mostly complete)" 3914fi 3915 3916 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> 3917#include <$i> 3918" 3919if test "x$ac_cv_type_int_least32_t" = x""yes; then : 3920 3921else 3922 acx_cv_header_stdint_kind="(mostly complete)" 3923fi 3924 3925 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> 3926#include <$i> 3927" 3928if test "x$ac_cv_type_int_fast32_t" = x""yes; then : 3929 3930else 3931 acx_cv_header_stdint_kind="(mostly complete)" 3932fi 3933 3934 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 3935#include <$i> 3936" 3937if test "x$ac_cv_type_uint64_t" = x""yes; then : 3938 3939else 3940 acx_cv_header_stdint_kind="(lacks uint64_t)" 3941fi 3942 3943 break 3944done 3945if test "$acx_cv_header_stdint" = stddef.h; then 3946 acx_cv_header_stdint_kind="(lacks uintmax_t)" 3947 for i in stdint.h $inttype_headers; do 3948 unset ac_cv_type_uintptr_t 3949 unset ac_cv_type_uint32_t 3950 unset ac_cv_type_uint64_t 3951 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 3952 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> 3953#include <$i> 3954" 3955if test "x$ac_cv_type_uint32_t" = x""yes; then : 3956 acx_cv_header_stdint=$i 3957else 3958 continue 3959fi 3960 3961 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 3962#include <$i> 3963" 3964if test "x$ac_cv_type_uint64_t" = x""yes; then : 3965 3966fi 3967 3968 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 3969#include <$i> 3970" 3971if test "x$ac_cv_type_uintptr_t" = x""yes; then : 3972 3973fi 3974 3975 break 3976 done 3977fi 3978if test "$acx_cv_header_stdint" = stddef.h; then 3979 acx_cv_header_stdint_kind="(u_intXX_t style)" 3980 for i in sys/types.h $inttype_headers; do 3981 unset ac_cv_type_u_int32_t 3982 unset ac_cv_type_u_int64_t 3983 $as_echo_n "looking for u_intXX_t types in $i, " >&6 3984 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> 3985#include <$i> 3986" 3987if test "x$ac_cv_type_u_int32_t" = x""yes; then : 3988 acx_cv_header_stdint=$i 3989else 3990 continue 3991fi 3992 3993 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> 3994#include <$i> 3995" 3996if test "x$ac_cv_type_u_int64_t" = x""yes; then : 3997 3998fi 3999 4000 break 4001 done 4002fi 4003if test "$acx_cv_header_stdint" = stddef.h; then 4004 acx_cv_header_stdint_kind="(using manual detection)" 4005fi 4006 4007test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no 4008test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no 4009test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no 4010test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no 4011test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no 4012 4013# ----------------- Summarize what we found so far 4014 4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 4016$as_echo_n "checking what to include in gstdint.h... " >&6; } 4017 4018case `$as_basename -- gstdint.h || 4019$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ 4020 Xgstdint.h : 'X\(//\)$' \| \ 4021 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || 4022$as_echo X/gstdint.h | 4023 sed '/^.*\/\([^/][^/]*\)\/*$/{ 4024 s//\1/ 4025 q 4026 } 4027 /^X\/\(\/\/\)$/{ 4028 s//\1/ 4029 q 4030 } 4031 /^X\/\(\/\).*/{ 4032 s//\1/ 4033 q 4034 } 4035 s/.*/./; q'` in 4036 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 4037$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 4038 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 4039$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 4040 *) ;; 4041esac 4042 4043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 4044$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } 4045 4046# ----------------- done included file, check C basic types -------- 4047 4048# Lacking an uintptr_t? Test size of void * 4049case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in 4050 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler 4051# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4052# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4053# This bug is HP SR number 8606223364. 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 4055$as_echo_n "checking size of void *... " >&6; } 4056if test "${ac_cv_sizeof_void_p+set}" = set; then : 4057 $as_echo_n "(cached) " >&6 4058else 4059 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 4060 4061else 4062 if test "$ac_cv_type_void_p" = yes; then 4063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4065{ as_fn_set_status 77 4066as_fn_error "cannot compute sizeof (void *) 4067See \`config.log' for more details." "$LINENO" 5; }; } 4068 else 4069 ac_cv_sizeof_void_p=0 4070 fi 4071fi 4072 4073fi 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 4075$as_echo "$ac_cv_sizeof_void_p" >&6; } 4076 4077 4078 4079cat >>confdefs.h <<_ACEOF 4080#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 4081_ACEOF 4082 4083 ;; 4084esac 4085 4086# Lacking an uint64_t? Test size of long 4087case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in 4088 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler 4089# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4090# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4091# This bug is HP SR number 8606223364. 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 4093$as_echo_n "checking size of long... " >&6; } 4094if test "${ac_cv_sizeof_long+set}" = set; then : 4095 $as_echo_n "(cached) " >&6 4096else 4097 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 4098 4099else 4100 if test "$ac_cv_type_long" = yes; then 4101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4103{ as_fn_set_status 77 4104as_fn_error "cannot compute sizeof (long) 4105See \`config.log' for more details." "$LINENO" 5; }; } 4106 else 4107 ac_cv_sizeof_long=0 4108 fi 4109fi 4110 4111fi 4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 4113$as_echo "$ac_cv_sizeof_long" >&6; } 4114 4115 4116 4117cat >>confdefs.h <<_ACEOF 4118#define SIZEOF_LONG $ac_cv_sizeof_long 4119_ACEOF 4120 4121 ;; 4122esac 4123 4124if test $acx_cv_header_stdint = stddef.h; then 4125 # Lacking a good header? Test size of everything and deduce all types. 4126 # The cast to long int works around a bug in the HP C Compiler 4127# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4128# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4129# This bug is HP SR number 8606223364. 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 4131$as_echo_n "checking size of int... " >&6; } 4132if test "${ac_cv_sizeof_int+set}" = set; then : 4133 $as_echo_n "(cached) " >&6 4134else 4135 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 4136 4137else 4138 if test "$ac_cv_type_int" = yes; then 4139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4141{ as_fn_set_status 77 4142as_fn_error "cannot compute sizeof (int) 4143See \`config.log' for more details." "$LINENO" 5; }; } 4144 else 4145 ac_cv_sizeof_int=0 4146 fi 4147fi 4148 4149fi 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 4151$as_echo "$ac_cv_sizeof_int" >&6; } 4152 4153 4154 4155cat >>confdefs.h <<_ACEOF 4156#define SIZEOF_INT $ac_cv_sizeof_int 4157_ACEOF 4158 4159 4160 # The cast to long int works around a bug in the HP C Compiler 4161# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4162# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4163# This bug is HP SR number 8606223364. 4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 4165$as_echo_n "checking size of short... " >&6; } 4166if test "${ac_cv_sizeof_short+set}" = set; then : 4167 $as_echo_n "(cached) " >&6 4168else 4169 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 4170 4171else 4172 if test "$ac_cv_type_short" = yes; then 4173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4175{ as_fn_set_status 77 4176as_fn_error "cannot compute sizeof (short) 4177See \`config.log' for more details." "$LINENO" 5; }; } 4178 else 4179 ac_cv_sizeof_short=0 4180 fi 4181fi 4182 4183fi 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 4185$as_echo "$ac_cv_sizeof_short" >&6; } 4186 4187 4188 4189cat >>confdefs.h <<_ACEOF 4190#define SIZEOF_SHORT $ac_cv_sizeof_short 4191_ACEOF 4192 4193 4194 # The cast to long int works around a bug in the HP C Compiler 4195# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4196# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4197# This bug is HP SR number 8606223364. 4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 4199$as_echo_n "checking size of char... " >&6; } 4200if test "${ac_cv_sizeof_char+set}" = set; then : 4201 $as_echo_n "(cached) " >&6 4202else 4203 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 4204 4205else 4206 if test "$ac_cv_type_char" = yes; then 4207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4209{ as_fn_set_status 77 4210as_fn_error "cannot compute sizeof (char) 4211See \`config.log' for more details." "$LINENO" 5; }; } 4212 else 4213 ac_cv_sizeof_char=0 4214 fi 4215fi 4216 4217fi 4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 4219$as_echo "$ac_cv_sizeof_char" >&6; } 4220 4221 4222 4223cat >>confdefs.h <<_ACEOF 4224#define SIZEOF_CHAR $ac_cv_sizeof_char 4225_ACEOF 4226 4227 4228 4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 4230$as_echo_n "checking for type equivalent to int8_t... " >&6; } 4231 case "$ac_cv_sizeof_char" in 4232 1) acx_cv_type_int8_t=char ;; 4233 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5 4234 esac 4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 4236$as_echo "$acx_cv_type_int8_t" >&6; } 4237 4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 4239$as_echo_n "checking for type equivalent to int16_t... " >&6; } 4240 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in 4241 2:*) acx_cv_type_int16_t=int ;; 4242 *:2) acx_cv_type_int16_t=short ;; 4243 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5 4244 esac 4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 4246$as_echo "$acx_cv_type_int16_t" >&6; } 4247 4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 4249$as_echo_n "checking for type equivalent to int32_t... " >&6; } 4250 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in 4251 4:*) acx_cv_type_int32_t=int ;; 4252 *:4) acx_cv_type_int32_t=long ;; 4253 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5 4254 esac 4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 4256$as_echo "$acx_cv_type_int32_t" >&6; } 4257fi 4258 4259# These tests are here to make the output prettier 4260 4261if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then 4262 case "$ac_cv_sizeof_long" in 4263 8) acx_cv_type_int64_t=long ;; 4264 esac 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 4266$as_echo_n "checking for type equivalent to int64_t... " >&6; } 4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 4268$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } 4269fi 4270 4271# Now we can use the above types 4272 4273if test "$ac_cv_type_uintptr_t" != yes; then 4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 4275$as_echo_n "checking for type equivalent to intptr_t... " >&6; } 4276 case $ac_cv_sizeof_void_p in 4277 2) acx_cv_type_intptr_t=int16_t ;; 4278 4) acx_cv_type_intptr_t=int32_t ;; 4279 8) acx_cv_type_intptr_t=int64_t ;; 4280 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5 4281 esac 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 4283$as_echo "$acx_cv_type_intptr_t" >&6; } 4284fi 4285 4286# ----------------- done all checks, emit header ------------- 4287ac_config_commands="$ac_config_commands gstdint.h" 4288 4289 4290 4291 4292# Checks for typedefs, structures, and compiler characteristics. 4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4294$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4295if test "${ac_cv_c_const+set}" = set; then : 4296 $as_echo_n "(cached) " >&6 4297else 4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4299/* end confdefs.h. */ 4300 4301int 4302main () 4303{ 4304/* FIXME: Include the comments suggested by Paul. */ 4305#ifndef __cplusplus 4306 /* Ultrix mips cc rejects this. */ 4307 typedef int charset[2]; 4308 const charset cs; 4309 /* SunOS 4.1.1 cc rejects this. */ 4310 char const *const *pcpcc; 4311 char **ppc; 4312 /* NEC SVR4.0.2 mips cc rejects this. */ 4313 struct point {int x, y;}; 4314 static struct point const zero = {0,0}; 4315 /* AIX XL C 1.02.0.0 rejects this. 4316 It does not let you subtract one const X* pointer from another in 4317 an arm of an if-expression whose if-part is not a constant 4318 expression */ 4319 const char *g = "string"; 4320 pcpcc = &g + (g ? g-g : 0); 4321 /* HPUX 7.0 cc rejects these. */ 4322 ++pcpcc; 4323 ppc = (char**) pcpcc; 4324 pcpcc = (char const *const *) ppc; 4325 { /* SCO 3.2v4 cc rejects this. */ 4326 char *t; 4327 char const *s = 0 ? (char *) 0 : (char const *) 0; 4328 4329 *t++ = 0; 4330 if (s) return 0; 4331 } 4332 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4333 int x[] = {25, 17}; 4334 const int *foo = &x[0]; 4335 ++foo; 4336 } 4337 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4338 typedef const int *iptr; 4339 iptr p = 0; 4340 ++p; 4341 } 4342 { /* AIX XL C 1.02.0.0 rejects this saying 4343 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4344 struct s { int j; const int *ap[3]; }; 4345 struct s *b; b->j = 5; 4346 } 4347 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4348 const int foo = 10; 4349 if (!foo) return 0; 4350 } 4351 return !cs[0] && !zero.x; 4352#endif 4353 4354 ; 4355 return 0; 4356} 4357_ACEOF 4358if ac_fn_c_try_compile "$LINENO"; then : 4359 ac_cv_c_const=yes 4360else 4361 ac_cv_c_const=no 4362fi 4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4364fi 4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4366$as_echo "$ac_cv_c_const" >&6; } 4367if test $ac_cv_c_const = no; then 4368 4369$as_echo "#define const /**/" >>confdefs.h 4370 4371fi 4372 4373ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 4374if test "x$ac_cv_type_off_t" = x""yes; then : 4375 4376else 4377 4378cat >>confdefs.h <<_ACEOF 4379#define off_t long int 4380_ACEOF 4381 4382fi 4383 4384# The cast to long int works around a bug in the HP C Compiler 4385# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4386# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4387# This bug is HP SR number 8606223364. 4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 4389$as_echo_n "checking size of int... " >&6; } 4390if test "${ac_cv_sizeof_int+set}" = set; then : 4391 $as_echo_n "(cached) " >&6 4392else 4393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 4394 4395else 4396 if test "$ac_cv_type_int" = yes; then 4397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4399{ as_fn_set_status 77 4400as_fn_error "cannot compute sizeof (int) 4401See \`config.log' for more details." "$LINENO" 5; }; } 4402 else 4403 ac_cv_sizeof_int=0 4404 fi 4405fi 4406 4407fi 4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 4409$as_echo "$ac_cv_sizeof_int" >&6; } 4410 4411 4412 4413cat >>confdefs.h <<_ACEOF 4414#define SIZEOF_INT $ac_cv_sizeof_int 4415_ACEOF 4416 4417 4418# The cast to long int works around a bug in the HP C Compiler 4419# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4420# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4421# This bug is HP SR number 8606223364. 4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 4423$as_echo_n "checking size of long... " >&6; } 4424if test "${ac_cv_sizeof_long+set}" = set; then : 4425 $as_echo_n "(cached) " >&6 4426else 4427 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 4428 4429else 4430 if test "$ac_cv_type_long" = yes; then 4431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4433{ as_fn_set_status 77 4434as_fn_error "cannot compute sizeof (long) 4435See \`config.log' for more details." "$LINENO" 5; }; } 4436 else 4437 ac_cv_sizeof_long=0 4438 fi 4439fi 4440 4441fi 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 4443$as_echo "$ac_cv_sizeof_long" >&6; } 4444 4445 4446 4447cat >>confdefs.h <<_ACEOF 4448#define SIZEOF_LONG $ac_cv_sizeof_long 4449_ACEOF 4450 4451 4452 4453# Checks for library functions. 4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4455$as_echo_n "checking for ANSI C header files... " >&6; } 4456if test "${ac_cv_header_stdc+set}" = set; then : 4457 $as_echo_n "(cached) " >&6 4458else 4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4460/* end confdefs.h. */ 4461#include <stdlib.h> 4462#include <stdarg.h> 4463#include <string.h> 4464#include <float.h> 4465 4466int 4467main () 4468{ 4469 4470 ; 4471 return 0; 4472} 4473_ACEOF 4474if ac_fn_c_try_compile "$LINENO"; then : 4475 ac_cv_header_stdc=yes 4476else 4477 ac_cv_header_stdc=no 4478fi 4479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4480 4481if test $ac_cv_header_stdc = yes; then 4482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4484/* end confdefs.h. */ 4485#include <string.h> 4486 4487_ACEOF 4488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4489 $EGREP "memchr" >/dev/null 2>&1; then : 4490 4491else 4492 ac_cv_header_stdc=no 4493fi 4494rm -f conftest* 4495 4496fi 4497 4498if test $ac_cv_header_stdc = yes; then 4499 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4501/* end confdefs.h. */ 4502#include <stdlib.h> 4503 4504_ACEOF 4505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4506 $EGREP "free" >/dev/null 2>&1; then : 4507 4508else 4509 ac_cv_header_stdc=no 4510fi 4511rm -f conftest* 4512 4513fi 4514 4515if test $ac_cv_header_stdc = yes; then 4516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4517 if test "$cross_compiling" = yes; then : 4518 : 4519else 4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4521/* end confdefs.h. */ 4522#include <ctype.h> 4523#include <stdlib.h> 4524#if ((' ' & 0x0FF) == 0x020) 4525# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4526# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4527#else 4528# define ISLOWER(c) \ 4529 (('a' <= (c) && (c) <= 'i') \ 4530 || ('j' <= (c) && (c) <= 'r') \ 4531 || ('s' <= (c) && (c) <= 'z')) 4532# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4533#endif 4534 4535#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4536int 4537main () 4538{ 4539 int i; 4540 for (i = 0; i < 256; i++) 4541 if (XOR (islower (i), ISLOWER (i)) 4542 || toupper (i) != TOUPPER (i)) 4543 return 2; 4544 return 0; 4545} 4546_ACEOF 4547if ac_fn_c_try_run "$LINENO"; then : 4548 4549else 4550 ac_cv_header_stdc=no 4551fi 4552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4553 conftest.$ac_objext conftest.beam conftest.$ac_ext 4554fi 4555 4556fi 4557fi 4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4559$as_echo "$ac_cv_header_stdc" >&6; } 4560if test $ac_cv_header_stdc = yes; then 4561 4562$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4563 4564fi 4565 4566 4567# Check whether --enable-maintainer-mode was given. 4568if test "${enable_maintainer_mode+set}" = set; then : 4569 enableval=$enable_maintainer_mode; 4570else 4571 enable_maintainer_mode=no 4572fi 4573 4574 4575if test "x$enable_maintainer_mode" = xno; then 4576 MAINT='#' 4577else 4578 MAINT= 4579fi 4580 4581 4582# Make sure we can run config.sub. 4583$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4584 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4585 4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4587$as_echo_n "checking build system type... " >&6; } 4588if test "${ac_cv_build+set}" = set; then : 4589 $as_echo_n "(cached) " >&6 4590else 4591 ac_build_alias=$build_alias 4592test "x$ac_build_alias" = x && 4593 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4594test "x$ac_build_alias" = x && 4595 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 4596ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4597 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4598 4599fi 4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4601$as_echo "$ac_cv_build" >&6; } 4602case $ac_cv_build in 4603*-*-*) ;; 4604*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 4605esac 4606build=$ac_cv_build 4607ac_save_IFS=$IFS; IFS='-' 4608set x $ac_cv_build 4609shift 4610build_cpu=$1 4611build_vendor=$2 4612shift; shift 4613# Remember, the first character of IFS is used to create $*, 4614# except with old shells: 4615build_os=$* 4616IFS=$ac_save_IFS 4617case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4618 4619 4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4621$as_echo_n "checking host system type... " >&6; } 4622if test "${ac_cv_host+set}" = set; then : 4623 $as_echo_n "(cached) " >&6 4624else 4625 if test "x$host_alias" = x; then 4626 ac_cv_host=$ac_cv_build 4627else 4628 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4629 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4630fi 4631 4632fi 4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4634$as_echo "$ac_cv_host" >&6; } 4635case $ac_cv_host in 4636*-*-*) ;; 4637*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 4638esac 4639host=$ac_cv_host 4640ac_save_IFS=$IFS; IFS='-' 4641set x $ac_cv_host 4642shift 4643host_cpu=$1 4644host_vendor=$2 4645shift; shift 4646# Remember, the first character of IFS is used to create $*, 4647# except with old shells: 4648host_os=$* 4649IFS=$ac_save_IFS 4650case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4651 4652 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 4654$as_echo_n "checking target system type... " >&6; } 4655if test "${ac_cv_target+set}" = set; then : 4656 $as_echo_n "(cached) " >&6 4657else 4658 if test "x$target_alias" = x; then 4659 ac_cv_target=$ac_cv_host 4660else 4661 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 4662 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 4663fi 4664 4665fi 4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 4667$as_echo "$ac_cv_target" >&6; } 4668case $ac_cv_target in 4669*-*-*) ;; 4670*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 4671esac 4672target=$ac_cv_target 4673ac_save_IFS=$IFS; IFS='-' 4674set x $ac_cv_target 4675shift 4676target_cpu=$1 4677target_vendor=$2 4678shift; shift 4679# Remember, the first character of IFS is used to create $*, 4680# except with old shells: 4681target_os=$* 4682IFS=$ac_save_IFS 4683case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 4684 4685 4686# The aliases save the names the user supplied, while $host etc. 4687# will get canonicalized. 4688test -n "$target_alias" && 4689 test "$program_prefix$program_suffix$program_transform_name" = \ 4690 NONENONEs,x,x, && 4691 program_prefix=${target_alias}- 4692 4693# Default decimal format 4694# If you change the defaults here, be sure to change them in the GCC directory also 4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for decimal floating point" >&5 4696$as_echo_n "checking for decimal floating point... " >&6; } 4697 4698 4699# Check whether --enable-decimal-float was given. 4700if test "${enable_decimal_float+set}" = set; then : 4701 enableval=$enable_decimal_float; 4702 case $enable_decimal_float in 4703 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;; 4704 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float. 4705Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;; 4706 esac 4707 4708else 4709 4710 case $target in 4711 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ 4712 i?86*-*-elfiamcu | i?86*-*-gnu* | \ 4713 i?86*-*-mingw* | x86_64*-*-mingw* | \ 4714 i?86*-*-cygwin* | x86_64*-*-cygwin*) 4715 enable_decimal_float=yes 4716 ;; 4717 *) 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5 4719$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;} 4720 enable_decimal_float=no 4721 ;; 4722 esac 4723 4724fi 4725 4726 4727# x86's use BID format instead of DPD 4728case x$enable_decimal_float in 4729 xyes) 4730 case $target in 4731 i?86*-*-* | x86_64*-*-*) 4732 enable_decimal_float=bid 4733 ;; 4734 *) 4735 enable_decimal_float=dpd 4736 ;; 4737 esac 4738 default_decimal_float=$enable_decimal_float 4739 ;; 4740 xno) 4741 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper 4742 # dependency on libdecnumber. 4743 default_decimal_float=dpd 4744 ;; 4745esac 4746 4747 4748 4749 4750# Use default_decimal_float for dependency. 4751enable_decimal_float=$default_decimal_float 4752 4753# If BID is being used, additional objects should be linked in. 4754if test x$enable_decimal_float = xbid; then 4755 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)" 4756else 4757 ADDITIONAL_OBJS= 4758fi 4759 4760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_decimal_float" >&5 4761$as_echo "$enable_decimal_float" >&6; } 4762 4763 4764 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4766$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4767if test "${ac_cv_c_bigendian+set}" = set; then : 4768 $as_echo_n "(cached) " >&6 4769else 4770 ac_cv_c_bigendian=unknown 4771 # See if we're dealing with a universal compiler. 4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4773/* end confdefs.h. */ 4774#ifndef __APPLE_CC__ 4775 not a universal capable compiler 4776 #endif 4777 typedef int dummy; 4778 4779_ACEOF 4780if ac_fn_c_try_compile "$LINENO"; then : 4781 4782 # Check for potential -arch flags. It is not universal unless 4783 # there are at least two -arch flags with different values. 4784 ac_arch= 4785 ac_prev= 4786 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4787 if test -n "$ac_prev"; then 4788 case $ac_word in 4789 i?86 | x86_64 | ppc | ppc64) 4790 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4791 ac_arch=$ac_word 4792 else 4793 ac_cv_c_bigendian=universal 4794 break 4795 fi 4796 ;; 4797 esac 4798 ac_prev= 4799 elif test "x$ac_word" = "x-arch"; then 4800 ac_prev=arch 4801 fi 4802 done 4803fi 4804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4805 if test $ac_cv_c_bigendian = unknown; then 4806 # See if sys/param.h defines the BYTE_ORDER macro. 4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4808/* end confdefs.h. */ 4809#include <sys/types.h> 4810 #include <sys/param.h> 4811 4812int 4813main () 4814{ 4815#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4816 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4817 && LITTLE_ENDIAN) 4818 bogus endian macros 4819 #endif 4820 4821 ; 4822 return 0; 4823} 4824_ACEOF 4825if ac_fn_c_try_compile "$LINENO"; then : 4826 # It does; now see whether it defined to BIG_ENDIAN or not. 4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4828/* end confdefs.h. */ 4829#include <sys/types.h> 4830 #include <sys/param.h> 4831 4832int 4833main () 4834{ 4835#if BYTE_ORDER != BIG_ENDIAN 4836 not big endian 4837 #endif 4838 4839 ; 4840 return 0; 4841} 4842_ACEOF 4843if ac_fn_c_try_compile "$LINENO"; then : 4844 ac_cv_c_bigendian=yes 4845else 4846 ac_cv_c_bigendian=no 4847fi 4848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4849fi 4850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4851 fi 4852 if test $ac_cv_c_bigendian = unknown; then 4853 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4855/* end confdefs.h. */ 4856#include <limits.h> 4857 4858int 4859main () 4860{ 4861#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4862 bogus endian macros 4863 #endif 4864 4865 ; 4866 return 0; 4867} 4868_ACEOF 4869if ac_fn_c_try_compile "$LINENO"; then : 4870 # It does; now see whether it defined to _BIG_ENDIAN or not. 4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4872/* end confdefs.h. */ 4873#include <limits.h> 4874 4875int 4876main () 4877{ 4878#ifndef _BIG_ENDIAN 4879 not big endian 4880 #endif 4881 4882 ; 4883 return 0; 4884} 4885_ACEOF 4886if ac_fn_c_try_compile "$LINENO"; then : 4887 ac_cv_c_bigendian=yes 4888else 4889 ac_cv_c_bigendian=no 4890fi 4891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4892fi 4893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4894 fi 4895 if test $ac_cv_c_bigendian = unknown; then 4896 # Compile a test program. 4897 if test "$cross_compiling" = yes; then : 4898 # Try to guess by grepping values from an object file. 4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4900/* end confdefs.h. */ 4901short int ascii_mm[] = 4902 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4903 short int ascii_ii[] = 4904 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4905 int use_ascii (int i) { 4906 return ascii_mm[i] + ascii_ii[i]; 4907 } 4908 short int ebcdic_ii[] = 4909 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4910 short int ebcdic_mm[] = 4911 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4912 int use_ebcdic (int i) { 4913 return ebcdic_mm[i] + ebcdic_ii[i]; 4914 } 4915 extern int foo; 4916 4917int 4918main () 4919{ 4920return use_ascii (foo) == use_ebcdic (foo); 4921 ; 4922 return 0; 4923} 4924_ACEOF 4925if ac_fn_c_try_compile "$LINENO"; then : 4926 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4927 ac_cv_c_bigendian=yes 4928 fi 4929 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4930 if test "$ac_cv_c_bigendian" = unknown; then 4931 ac_cv_c_bigendian=no 4932 else 4933 # finding both strings is unlikely to happen, but who knows? 4934 ac_cv_c_bigendian=unknown 4935 fi 4936 fi 4937fi 4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4939else 4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4941/* end confdefs.h. */ 4942$ac_includes_default 4943int 4944main () 4945{ 4946 4947 /* Are we little or big endian? From Harbison&Steele. */ 4948 union 4949 { 4950 long int l; 4951 char c[sizeof (long int)]; 4952 } u; 4953 u.l = 1; 4954 return u.c[sizeof (long int) - 1] == 1; 4955 4956 ; 4957 return 0; 4958} 4959_ACEOF 4960if ac_fn_c_try_run "$LINENO"; then : 4961 ac_cv_c_bigendian=no 4962else 4963 ac_cv_c_bigendian=yes 4964fi 4965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4966 conftest.$ac_objext conftest.beam conftest.$ac_ext 4967fi 4968 4969 fi 4970fi 4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4972$as_echo "$ac_cv_c_bigendian" >&6; } 4973 case $ac_cv_c_bigendian in #( 4974 yes) 4975 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4976;; #( 4977 no) 4978 ;; #( 4979 universal) 4980 4981$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4982 4983 ;; #( 4984 *) 4985 as_fn_error "unknown endianness 4986 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4987 esac 4988 4989 4990# Enable --enable-host-shared. 4991# Check whether --enable-host-shared was given. 4992if test "${enable_host_shared+set}" = set; then : 4993 enableval=$enable_host_shared; PICFLAG=-fPIC 4994else 4995 PICFLAG= 4996fi 4997 4998 4999 5000# Output. 5001 5002ac_config_headers="$ac_config_headers config.h:config.in" 5003 5004ac_config_files="$ac_config_files Makefile" 5005 5006cat >confcache <<\_ACEOF 5007# This file is a shell script that caches the results of configure 5008# tests run on this system so they can be shared between configure 5009# scripts and configure runs, see configure's option --config-cache. 5010# It is not useful on other systems. If it contains results you don't 5011# want to keep, you may remove or edit it. 5012# 5013# config.status only pays attention to the cache file if you give it 5014# the --recheck option to rerun configure. 5015# 5016# `ac_cv_env_foo' variables (set or unset) will be overridden when 5017# loading this file, other *unset* `ac_cv_foo' will be assigned the 5018# following values. 5019 5020_ACEOF 5021 5022# The following way of writing the cache mishandles newlines in values, 5023# but we know of no workaround that is simple, portable, and efficient. 5024# So, we kill variables containing newlines. 5025# Ultrix sh set writes to stderr and can't be redirected directly, 5026# and sets the high bit in the cache file unless we assign to the vars. 5027( 5028 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5029 eval ac_val=\$$ac_var 5030 case $ac_val in #( 5031 *${as_nl}*) 5032 case $ac_var in #( 5033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 5034$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5035 esac 5036 case $ac_var in #( 5037 _ | IFS | as_nl) ;; #( 5038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5039 *) { eval $ac_var=; unset $ac_var;} ;; 5040 esac ;; 5041 esac 5042 done 5043 5044 (set) 2>&1 | 5045 case $as_nl`(ac_space=' '; set) 2>&1` in #( 5046 *${as_nl}ac_space=\ *) 5047 # `set' does not quote correctly, so add quotes: double-quote 5048 # substitution turns \\\\ into \\, and sed turns \\ into \. 5049 sed -n \ 5050 "s/'/'\\\\''/g; 5051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5052 ;; #( 5053 *) 5054 # `set' quotes correctly as required by POSIX, so do not add quotes. 5055 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5056 ;; 5057 esac | 5058 sort 5059) | 5060 sed ' 5061 /^ac_cv_env_/b end 5062 t clear 5063 :clear 5064 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5065 t end 5066 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5067 :end' >>confcache 5068if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5069 if test -w "$cache_file"; then 5070 test "x$cache_file" != "x/dev/null" && 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5072$as_echo "$as_me: updating cache $cache_file" >&6;} 5073 cat confcache >$cache_file 5074 else 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5076$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5077 fi 5078fi 5079rm -f confcache 5080 5081test "x$prefix" = xNONE && prefix=$ac_default_prefix 5082# Let make expand exec_prefix. 5083test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5084 5085DEFS=-DHAVE_CONFIG_H 5086 5087ac_libobjs= 5088ac_ltlibobjs= 5089for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5090 # 1. Remove the extension, and $U if already installed. 5091 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5092 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5093 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5094 # will be set to the directory where LIBOBJS objects are built. 5095 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5096 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 5097done 5098LIBOBJS=$ac_libobjs 5099 5100LTLIBOBJS=$ac_ltlibobjs 5101 5102 5103 5104 5105: ${CONFIG_STATUS=./config.status} 5106ac_write_fail=0 5107ac_clean_files_save=$ac_clean_files 5108ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5109{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5110$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5111as_write_fail=0 5112cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 5113#! $SHELL 5114# Generated by $as_me. 5115# Run this file to recreate the current configuration. 5116# Compiler output produced by configure, useful for debugging 5117# configure, is in config.log if it exists. 5118 5119debug=false 5120ac_cs_recheck=false 5121ac_cs_silent=false 5122 5123SHELL=\${CONFIG_SHELL-$SHELL} 5124export SHELL 5125_ASEOF 5126cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 5127## -------------------- ## 5128## M4sh Initialization. ## 5129## -------------------- ## 5130 5131# Be more Bourne compatible 5132DUALCASE=1; export DUALCASE # for MKS sh 5133if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 5134 emulate sh 5135 NULLCMD=: 5136 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5137 # is contrary to our usage. Disable this feature. 5138 alias -g '${1+"$@"}'='"$@"' 5139 setopt NO_GLOB_SUBST 5140else 5141 case `(set -o) 2>/dev/null` in #( 5142 *posix*) : 5143 set -o posix ;; #( 5144 *) : 5145 ;; 5146esac 5147fi 5148 5149 5150as_nl=' 5151' 5152export as_nl 5153# Printing a long string crashes Solaris 7 /usr/bin/printf. 5154as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5155as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5156as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5157# Prefer a ksh shell builtin over an external printf program on Solaris, 5158# but without wasting forks for bash or zsh. 5159if test -z "$BASH_VERSION$ZSH_VERSION" \ 5160 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5161 as_echo='print -r --' 5162 as_echo_n='print -rn --' 5163elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5164 as_echo='printf %s\n' 5165 as_echo_n='printf %s' 5166else 5167 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5168 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5169 as_echo_n='/usr/ucb/echo -n' 5170 else 5171 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5172 as_echo_n_body='eval 5173 arg=$1; 5174 case $arg in #( 5175 *"$as_nl"*) 5176 expr "X$arg" : "X\\(.*\\)$as_nl"; 5177 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5178 esac; 5179 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5180 ' 5181 export as_echo_n_body 5182 as_echo_n='sh -c $as_echo_n_body as_echo' 5183 fi 5184 export as_echo_body 5185 as_echo='sh -c $as_echo_body as_echo' 5186fi 5187 5188# The user is always right. 5189if test "${PATH_SEPARATOR+set}" != set; then 5190 PATH_SEPARATOR=: 5191 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5192 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5193 PATH_SEPARATOR=';' 5194 } 5195fi 5196 5197 5198# IFS 5199# We need space, tab and new line, in precisely that order. Quoting is 5200# there to prevent editors from complaining about space-tab. 5201# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5202# splitting by setting IFS to empty value.) 5203IFS=" "" $as_nl" 5204 5205# Find who we are. Look in the path if we contain no directory separator. 5206case $0 in #(( 5207 *[\\/]* ) as_myself=$0 ;; 5208 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5209for as_dir in $PATH 5210do 5211 IFS=$as_save_IFS 5212 test -z "$as_dir" && as_dir=. 5213 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5214 done 5215IFS=$as_save_IFS 5216 5217 ;; 5218esac 5219# We did not find ourselves, most probably we were run as `sh COMMAND' 5220# in which case we are not to be found in the path. 5221if test "x$as_myself" = x; then 5222 as_myself=$0 5223fi 5224if test ! -f "$as_myself"; then 5225 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5226 exit 1 5227fi 5228 5229# Unset variables that we do not need and which cause bugs (e.g. in 5230# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 5231# suppresses any "Segmentation fault" message there. '((' could 5232# trigger a bug in pdksh 5.2.14. 5233for as_var in BASH_ENV ENV MAIL MAILPATH 5234do eval test x\${$as_var+set} = xset \ 5235 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 5236done 5237PS1='$ ' 5238PS2='> ' 5239PS4='+ ' 5240 5241# NLS nuisances. 5242LC_ALL=C 5243export LC_ALL 5244LANGUAGE=C 5245export LANGUAGE 5246 5247# CDPATH. 5248(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5249 5250 5251# as_fn_error ERROR [LINENO LOG_FD] 5252# --------------------------------- 5253# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5254# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 5255# script with status $?, using 1 if that was 0. 5256as_fn_error () 5257{ 5258 as_status=$?; test $as_status -eq 0 && as_status=1 5259 if test "$3"; then 5260 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 5261 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 5262 fi 5263 $as_echo "$as_me: error: $1" >&2 5264 as_fn_exit $as_status 5265} # as_fn_error 5266 5267 5268# as_fn_set_status STATUS 5269# ----------------------- 5270# Set $? to STATUS, without forking. 5271as_fn_set_status () 5272{ 5273 return $1 5274} # as_fn_set_status 5275 5276# as_fn_exit STATUS 5277# ----------------- 5278# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 5279as_fn_exit () 5280{ 5281 set +e 5282 as_fn_set_status $1 5283 exit $1 5284} # as_fn_exit 5285 5286# as_fn_unset VAR 5287# --------------- 5288# Portably unset VAR. 5289as_fn_unset () 5290{ 5291 { eval $1=; unset $1;} 5292} 5293as_unset=as_fn_unset 5294# as_fn_append VAR VALUE 5295# ---------------------- 5296# Append the text in VALUE to the end of the definition contained in VAR. Take 5297# advantage of any shell optimizations that allow amortized linear growth over 5298# repeated appends, instead of the typical quadratic growth present in naive 5299# implementations. 5300if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 5301 eval 'as_fn_append () 5302 { 5303 eval $1+=\$2 5304 }' 5305else 5306 as_fn_append () 5307 { 5308 eval $1=\$$1\$2 5309 } 5310fi # as_fn_append 5311 5312# as_fn_arith ARG... 5313# ------------------ 5314# Perform arithmetic evaluation on the ARGs, and store the result in the 5315# global $as_val. Take advantage of shells that can avoid forks. The arguments 5316# must be portable across $(()) and expr. 5317if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5318 eval 'as_fn_arith () 5319 { 5320 as_val=$(( $* )) 5321 }' 5322else 5323 as_fn_arith () 5324 { 5325 as_val=`expr "$@" || test $? -eq 1` 5326 } 5327fi # as_fn_arith 5328 5329 5330if expr a : '\(a\)' >/dev/null 2>&1 && 5331 test "X`expr 00001 : '.*\(...\)'`" = X001; then 5332 as_expr=expr 5333else 5334 as_expr=false 5335fi 5336 5337if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5338 as_basename=basename 5339else 5340 as_basename=false 5341fi 5342 5343if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5344 as_dirname=dirname 5345else 5346 as_dirname=false 5347fi 5348 5349as_me=`$as_basename -- "$0" || 5350$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5351 X"$0" : 'X\(//\)$' \| \ 5352 X"$0" : 'X\(/\)' \| . 2>/dev/null || 5353$as_echo X/"$0" | 5354 sed '/^.*\/\([^/][^/]*\)\/*$/{ 5355 s//\1/ 5356 q 5357 } 5358 /^X\/\(\/\/\)$/{ 5359 s//\1/ 5360 q 5361 } 5362 /^X\/\(\/\).*/{ 5363 s//\1/ 5364 q 5365 } 5366 s/.*/./; q'` 5367 5368# Avoid depending upon Character Ranges. 5369as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5370as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5371as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5372as_cr_digits='0123456789' 5373as_cr_alnum=$as_cr_Letters$as_cr_digits 5374 5375ECHO_C= ECHO_N= ECHO_T= 5376case `echo -n x` in #((((( 5377-n*) 5378 case `echo 'xy\c'` in 5379 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5380 xy) ECHO_C='\c';; 5381 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5382 ECHO_T=' ';; 5383 esac;; 5384*) 5385 ECHO_N='-n';; 5386esac 5387 5388rm -f conf$$ conf$$.exe conf$$.file 5389if test -d conf$$.dir; then 5390 rm -f conf$$.dir/conf$$.file 5391else 5392 rm -f conf$$.dir 5393 mkdir conf$$.dir 2>/dev/null 5394fi 5395if (echo >conf$$.file) 2>/dev/null; then 5396 if ln -s conf$$.file conf$$ 2>/dev/null; then 5397 as_ln_s='ln -s' 5398 # ... but there are two gotchas: 5399 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5400 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5401 # In both cases, we have to default to `cp -p'. 5402 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5403 as_ln_s='cp -p' 5404 elif ln conf$$.file conf$$ 2>/dev/null; then 5405 as_ln_s=ln 5406 else 5407 as_ln_s='cp -p' 5408 fi 5409else 5410 as_ln_s='cp -p' 5411fi 5412rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5413rmdir conf$$.dir 2>/dev/null 5414 5415 5416# as_fn_mkdir_p 5417# ------------- 5418# Create "$as_dir" as a directory, including parents if necessary. 5419as_fn_mkdir_p () 5420{ 5421 5422 case $as_dir in #( 5423 -*) as_dir=./$as_dir;; 5424 esac 5425 test -d "$as_dir" || eval $as_mkdir_p || { 5426 as_dirs= 5427 while :; do 5428 case $as_dir in #( 5429 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5430 *) as_qdir=$as_dir;; 5431 esac 5432 as_dirs="'$as_qdir' $as_dirs" 5433 as_dir=`$as_dirname -- "$as_dir" || 5434$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5435 X"$as_dir" : 'X\(//\)[^/]' \| \ 5436 X"$as_dir" : 'X\(//\)$' \| \ 5437 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5438$as_echo X"$as_dir" | 5439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5440 s//\1/ 5441 q 5442 } 5443 /^X\(\/\/\)[^/].*/{ 5444 s//\1/ 5445 q 5446 } 5447 /^X\(\/\/\)$/{ 5448 s//\1/ 5449 q 5450 } 5451 /^X\(\/\).*/{ 5452 s//\1/ 5453 q 5454 } 5455 s/.*/./; q'` 5456 test -d "$as_dir" && break 5457 done 5458 test -z "$as_dirs" || eval "mkdir $as_dirs" 5459 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 5460 5461 5462} # as_fn_mkdir_p 5463if mkdir -p . 2>/dev/null; then 5464 as_mkdir_p='mkdir -p "$as_dir"' 5465else 5466 test -d ./-p && rmdir ./-p 5467 as_mkdir_p=false 5468fi 5469 5470if test -x / >/dev/null 2>&1; then 5471 as_test_x='test -x' 5472else 5473 if ls -dL / >/dev/null 2>&1; then 5474 as_ls_L_option=L 5475 else 5476 as_ls_L_option= 5477 fi 5478 as_test_x=' 5479 eval sh -c '\'' 5480 if test -d "$1"; then 5481 test -d "$1/."; 5482 else 5483 case $1 in #( 5484 -*)set "./$1";; 5485 esac; 5486 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5487 ???[sx]*):;;*)false;;esac;fi 5488 '\'' sh 5489 ' 5490fi 5491as_executable_p=$as_test_x 5492 5493# Sed expression to map a string onto a valid CPP name. 5494as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5495 5496# Sed expression to map a string onto a valid variable name. 5497as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5498 5499 5500exec 6>&1 5501## ----------------------------------- ## 5502## Main body of $CONFIG_STATUS script. ## 5503## ----------------------------------- ## 5504_ASEOF 5505test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 5506 5507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5508# Save the log message, to keep $0 and so on meaningful, and to 5509# report actual input values of CONFIG_FILES etc. instead of their 5510# values after options handling. 5511ac_log=" 5512This file was extended by libdecnumber $as_me , which was 5513generated by GNU Autoconf 2.64. Invocation command line was 5514 5515 CONFIG_FILES = $CONFIG_FILES 5516 CONFIG_HEADERS = $CONFIG_HEADERS 5517 CONFIG_LINKS = $CONFIG_LINKS 5518 CONFIG_COMMANDS = $CONFIG_COMMANDS 5519 $ $0 $@ 5520 5521on `(hostname || uname -n) 2>/dev/null | sed 1q` 5522" 5523 5524_ACEOF 5525 5526case $ac_config_files in *" 5527"*) set x $ac_config_files; shift; ac_config_files=$*;; 5528esac 5529 5530case $ac_config_headers in *" 5531"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 5532esac 5533 5534 5535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5536# Files that config.status was made for. 5537config_files="$ac_config_files" 5538config_headers="$ac_config_headers" 5539config_commands="$ac_config_commands" 5540 5541_ACEOF 5542 5543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5544ac_cs_usage="\ 5545\`$as_me' instantiates files and other configuration actions 5546from templates according to the current configuration. Unless the files 5547and actions are specified as TAGs, all are instantiated by default. 5548 5549Usage: $0 [OPTION]... [TAG]... 5550 5551 -h, --help print this help, then exit 5552 -V, --version print version number and configuration settings, then exit 5553 -q, --quiet, --silent 5554 do not print progress messages 5555 -d, --debug don't remove temporary files 5556 --recheck update $as_me by reconfiguring in the same conditions 5557 --file=FILE[:TEMPLATE] 5558 instantiate the configuration file FILE 5559 --header=FILE[:TEMPLATE] 5560 instantiate the configuration header FILE 5561 5562Configuration files: 5563$config_files 5564 5565Configuration headers: 5566$config_headers 5567 5568Configuration commands: 5569$config_commands 5570 5571Report bugs to <gcc-bugs@gcc.gnu.org>." 5572 5573_ACEOF 5574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5575ac_cs_version="\\ 5576libdecnumber config.status 5577configured by $0, generated by GNU Autoconf 2.64, 5578 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 5579 5580Copyright (C) 2009 Free Software Foundation, Inc. 5581This config.status script is free software; the Free Software Foundation 5582gives unlimited permission to copy, distribute and modify it." 5583 5584ac_pwd='$ac_pwd' 5585srcdir='$srcdir' 5586test -n "\$AWK" || AWK=awk 5587_ACEOF 5588 5589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5590# The default lists apply if the user does not specify any file. 5591ac_need_defaults=: 5592while test $# != 0 5593do 5594 case $1 in 5595 --*=*) 5596 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5597 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5598 ac_shift=: 5599 ;; 5600 *) 5601 ac_option=$1 5602 ac_optarg=$2 5603 ac_shift=shift 5604 ;; 5605 esac 5606 5607 case $ac_option in 5608 # Handling of the options. 5609 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5610 ac_cs_recheck=: ;; 5611 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5612 $as_echo "$ac_cs_version"; exit ;; 5613 --debug | --debu | --deb | --de | --d | -d ) 5614 debug=: ;; 5615 --file | --fil | --fi | --f ) 5616 $ac_shift 5617 case $ac_optarg in 5618 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5619 esac 5620 as_fn_append CONFIG_FILES " '$ac_optarg'" 5621 ac_need_defaults=false;; 5622 --header | --heade | --head | --hea ) 5623 $ac_shift 5624 case $ac_optarg in 5625 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5626 esac 5627 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 5628 ac_need_defaults=false;; 5629 --he | --h) 5630 # Conflict between --help and --header 5631 as_fn_error "ambiguous option: \`$1' 5632Try \`$0 --help' for more information.";; 5633 --help | --hel | -h ) 5634 $as_echo "$ac_cs_usage"; exit ;; 5635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5636 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5637 ac_cs_silent=: ;; 5638 5639 # This is an error. 5640 -*) as_fn_error "unrecognized option: \`$1' 5641Try \`$0 --help' for more information." ;; 5642 5643 *) as_fn_append ac_config_targets " $1" 5644 ac_need_defaults=false ;; 5645 5646 esac 5647 shift 5648done 5649 5650ac_configure_extra_args= 5651 5652if $ac_cs_silent; then 5653 exec 6>/dev/null 5654 ac_configure_extra_args="$ac_configure_extra_args --silent" 5655fi 5656 5657_ACEOF 5658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5659if \$ac_cs_recheck; then 5660 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5661 shift 5662 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 5663 CONFIG_SHELL='$SHELL' 5664 export CONFIG_SHELL 5665 exec "\$@" 5666fi 5667 5668_ACEOF 5669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5670exec 5>>config.log 5671{ 5672 echo 5673 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5674## Running $as_me. ## 5675_ASBOX 5676 $as_echo "$ac_log" 5677} >&5 5678 5679_ACEOF 5680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5681# 5682# INIT-COMMANDS 5683# 5684 5685GCC="$GCC" 5686CC="$CC" 5687acx_cv_header_stdint="$acx_cv_header_stdint" 5688acx_cv_type_int8_t="$acx_cv_type_int8_t" 5689acx_cv_type_int16_t="$acx_cv_type_int16_t" 5690acx_cv_type_int32_t="$acx_cv_type_int32_t" 5691acx_cv_type_int64_t="$acx_cv_type_int64_t" 5692acx_cv_type_intptr_t="$acx_cv_type_intptr_t" 5693ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" 5694ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" 5695ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 5696ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 5697ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" 5698ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 5699ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 5700ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" 5701 5702 5703_ACEOF 5704 5705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5706 5707# Handling of arguments. 5708for ac_config_target in $ac_config_targets 5709do 5710 case $ac_config_target in 5711 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; 5712 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 5713 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5714 5715 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 5716 esac 5717done 5718 5719 5720# If the user did not use the arguments to specify the items to instantiate, 5721# then the envvar interface is used. Set only those that are not. 5722# We use the long form for the default assignment because of an extremely 5723# bizarre bug on SunOS 4.1.3. 5724if $ac_need_defaults; then 5725 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5726 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5727 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 5728fi 5729 5730# Have a temporary directory for convenience. Make it in the build tree 5731# simply because there is no reason against having it here, and in addition, 5732# creating and moving files from /tmp can sometimes cause problems. 5733# Hook for its removal unless debugging. 5734# Note that there is a small window in which the directory will not be cleaned: 5735# after its creation but before its name has been assigned to `$tmp'. 5736$debug || 5737{ 5738 tmp= 5739 trap 'exit_status=$? 5740 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 5741' 0 5742 trap 'as_fn_exit 1' 1 2 13 15 5743} 5744# Create a (secure) tmp directory for tmp files. 5745 5746{ 5747 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5748 test -n "$tmp" && test -d "$tmp" 5749} || 5750{ 5751 tmp=./conf$$-$RANDOM 5752 (umask 077 && mkdir "$tmp") 5753} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 5754 5755# Set up the scripts for CONFIG_FILES section. 5756# No need to generate them if there are no CONFIG_FILES. 5757# This happens for instance with `./config.status config.h'. 5758if test -n "$CONFIG_FILES"; then 5759 5760 5761ac_cr=`echo X | tr X '\015'` 5762# On cygwin, bash can eat \r inside `` if the user requested igncr. 5763# But we know of no other shell where ac_cr would be empty at this 5764# point, so we can use a bashism as a fallback. 5765if test "x$ac_cr" = x; then 5766 eval ac_cr=\$\'\\r\' 5767fi 5768ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 5769if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 5770 ac_cs_awk_cr='\r' 5771else 5772 ac_cs_awk_cr=$ac_cr 5773fi 5774 5775echo 'BEGIN {' >"$tmp/subs1.awk" && 5776_ACEOF 5777 5778 5779{ 5780 echo "cat >conf$$subs.awk <<_ACEOF" && 5781 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 5782 echo "_ACEOF" 5783} >conf$$subs.sh || 5784 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 5785ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 5786ac_delim='%!_!# ' 5787for ac_last_try in false false false false false :; do 5788 . ./conf$$subs.sh || 5789 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 5790 5791 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 5792 if test $ac_delim_n = $ac_delim_num; then 5793 break 5794 elif $ac_last_try; then 5795 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 5796 else 5797 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5798 fi 5799done 5800rm -f conf$$subs.sh 5801 5802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5803cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 5804_ACEOF 5805sed -n ' 5806h 5807s/^/S["/; s/!.*/"]=/ 5808p 5809g 5810s/^[^!]*!// 5811:repl 5812t repl 5813s/'"$ac_delim"'$// 5814t delim 5815:nl 5816h 5817s/\(.\{148\}\).*/\1/ 5818t more1 5819s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 5820p 5821n 5822b repl 5823:more1 5824s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5825p 5826g 5827s/.\{148\}// 5828t nl 5829:delim 5830h 5831s/\(.\{148\}\).*/\1/ 5832t more2 5833s/["\\]/\\&/g; s/^/"/; s/$/"/ 5834p 5835b 5836:more2 5837s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5838p 5839g 5840s/.\{148\}// 5841t delim 5842' <conf$$subs.awk | sed ' 5843/^[^""]/{ 5844 N 5845 s/\n// 5846} 5847' >>$CONFIG_STATUS || ac_write_fail=1 5848rm -f conf$$subs.awk 5849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5850_ACAWK 5851cat >>"\$tmp/subs1.awk" <<_ACAWK && 5852 for (key in S) S_is_set[key] = 1 5853 FS = "" 5854 5855} 5856{ 5857 line = $ 0 5858 nfields = split(line, field, "@") 5859 substed = 0 5860 len = length(field[1]) 5861 for (i = 2; i < nfields; i++) { 5862 key = field[i] 5863 keylen = length(key) 5864 if (S_is_set[key]) { 5865 value = S[key] 5866 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 5867 len += length(value) + length(field[++i]) 5868 substed = 1 5869 } else 5870 len += 1 + keylen 5871 } 5872 5873 print line 5874} 5875 5876_ACAWK 5877_ACEOF 5878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5879if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 5880 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 5881else 5882 cat 5883fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 5884 || as_fn_error "could not setup config files machinery" "$LINENO" 5 5885_ACEOF 5886 5887# VPATH may cause trouble with some makes, so we remove $(srcdir), 5888# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5889# trailing colons and then remove the whole line if VPATH becomes empty 5890# (actually we leave an empty line to preserve line numbers). 5891if test "x$srcdir" = x.; then 5892 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5893s/:*\$(srcdir):*/:/ 5894s/:*\${srcdir}:*/:/ 5895s/:*@srcdir@:*/:/ 5896s/^\([^=]*=[ ]*\):*/\1/ 5897s/:*$// 5898s/^[^=]*=[ ]*$// 5899}' 5900fi 5901 5902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5903fi # test -n "$CONFIG_FILES" 5904 5905# Set up the scripts for CONFIG_HEADERS section. 5906# No need to generate them if there are no CONFIG_HEADERS. 5907# This happens for instance with `./config.status Makefile'. 5908if test -n "$CONFIG_HEADERS"; then 5909cat >"$tmp/defines.awk" <<\_ACAWK || 5910BEGIN { 5911_ACEOF 5912 5913# Transform confdefs.h into an awk script `defines.awk', embedded as 5914# here-document in config.status, that substitutes the proper values into 5915# config.h.in to produce config.h. 5916 5917# Create a delimiter string that does not exist in confdefs.h, to ease 5918# handling of long lines. 5919ac_delim='%!_!# ' 5920for ac_last_try in false false :; do 5921 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 5922 if test -z "$ac_t"; then 5923 break 5924 elif $ac_last_try; then 5925 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 5926 else 5927 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5928 fi 5929done 5930 5931# For the awk script, D is an array of macro values keyed by name, 5932# likewise P contains macro parameters if any. Preserve backslash 5933# newline sequences. 5934 5935ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 5936sed -n ' 5937s/.\{148\}/&'"$ac_delim"'/g 5938t rset 5939:rset 5940s/^[ ]*#[ ]*define[ ][ ]*/ / 5941t def 5942d 5943:def 5944s/\\$// 5945t bsnl 5946s/["\\]/\\&/g 5947s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5948D["\1"]=" \3"/p 5949s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 5950d 5951:bsnl 5952s/["\\]/\\&/g 5953s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5954D["\1"]=" \3\\\\\\n"\\/p 5955t cont 5956s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 5957t cont 5958d 5959:cont 5960n 5961s/.\{148\}/&'"$ac_delim"'/g 5962t clear 5963:clear 5964s/\\$// 5965t bsnlc 5966s/["\\]/\\&/g; s/^/"/; s/$/"/p 5967d 5968:bsnlc 5969s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 5970b cont 5971' <confdefs.h | sed ' 5972s/'"$ac_delim"'/"\\\ 5973"/g' >>$CONFIG_STATUS || ac_write_fail=1 5974 5975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5976 for (key in D) D_is_set[key] = 1 5977 FS = "" 5978} 5979/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 5980 line = \$ 0 5981 split(line, arg, " ") 5982 if (arg[1] == "#") { 5983 defundef = arg[2] 5984 mac1 = arg[3] 5985 } else { 5986 defundef = substr(arg[1], 2) 5987 mac1 = arg[2] 5988 } 5989 split(mac1, mac2, "(") #) 5990 macro = mac2[1] 5991 prefix = substr(line, 1, index(line, defundef) - 1) 5992 if (D_is_set[macro]) { 5993 # Preserve the white space surrounding the "#". 5994 print prefix "define", macro P[macro] D[macro] 5995 next 5996 } else { 5997 # Replace #undef with comments. This is necessary, for example, 5998 # in the case of _POSIX_SOURCE, which is predefined and required 5999 # on some systems where configure will not decide to define it. 6000 if (defundef == "undef") { 6001 print "/*", prefix defundef, macro, "*/" 6002 next 6003 } 6004 } 6005} 6006{ print } 6007_ACAWK 6008_ACEOF 6009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6010 as_fn_error "could not setup config headers machinery" "$LINENO" 5 6011fi # test -n "$CONFIG_HEADERS" 6012 6013 6014eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 6015shift 6016for ac_tag 6017do 6018 case $ac_tag in 6019 :[FHLC]) ac_mode=$ac_tag; continue;; 6020 esac 6021 case $ac_mode$ac_tag in 6022 :[FHL]*:*);; 6023 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 6024 :[FH]-) ac_tag=-:-;; 6025 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6026 esac 6027 ac_save_IFS=$IFS 6028 IFS=: 6029 set x $ac_tag 6030 IFS=$ac_save_IFS 6031 shift 6032 ac_file=$1 6033 shift 6034 6035 case $ac_mode in 6036 :L) ac_source=$1;; 6037 :[FH]) 6038 ac_file_inputs= 6039 for ac_f 6040 do 6041 case $ac_f in 6042 -) ac_f="$tmp/stdin";; 6043 *) # Look for the file first in the build tree, then in the source tree 6044 # (if the path is not absolute). The absolute path cannot be DOS-style, 6045 # because $ac_f cannot contain `:'. 6046 test -f "$ac_f" || 6047 case $ac_f in 6048 [\\/$]*) false;; 6049 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6050 esac || 6051 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 6052 esac 6053 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6054 as_fn_append ac_file_inputs " '$ac_f'" 6055 done 6056 6057 # Let's still pretend it is `configure' which instantiates (i.e., don't 6058 # use $as_me), people would be surprised to read: 6059 # /* config.h. Generated by config.status. */ 6060 configure_input='Generated from '` 6061 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6062 `' by configure.' 6063 if test x"$ac_file" != x-; then 6064 configure_input="$ac_file. $configure_input" 6065 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6066$as_echo "$as_me: creating $ac_file" >&6;} 6067 fi 6068 # Neutralize special characters interpreted by sed in replacement strings. 6069 case $configure_input in #( 6070 *\&* | *\|* | *\\* ) 6071 ac_sed_conf_input=`$as_echo "$configure_input" | 6072 sed 's/[\\\\&|]/\\\\&/g'`;; #( 6073 *) ac_sed_conf_input=$configure_input;; 6074 esac 6075 6076 case $ac_tag in 6077 *:-:* | *:-) cat >"$tmp/stdin" \ 6078 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 6079 esac 6080 ;; 6081 esac 6082 6083 ac_dir=`$as_dirname -- "$ac_file" || 6084$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6085 X"$ac_file" : 'X\(//\)[^/]' \| \ 6086 X"$ac_file" : 'X\(//\)$' \| \ 6087 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6088$as_echo X"$ac_file" | 6089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6090 s//\1/ 6091 q 6092 } 6093 /^X\(\/\/\)[^/].*/{ 6094 s//\1/ 6095 q 6096 } 6097 /^X\(\/\/\)$/{ 6098 s//\1/ 6099 q 6100 } 6101 /^X\(\/\).*/{ 6102 s//\1/ 6103 q 6104 } 6105 s/.*/./; q'` 6106 as_dir="$ac_dir"; as_fn_mkdir_p 6107 ac_builddir=. 6108 6109case "$ac_dir" in 6110.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6111*) 6112 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6113 # A ".." for each directory in $ac_dir_suffix. 6114 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6115 case $ac_top_builddir_sub in 6116 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6117 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6118 esac ;; 6119esac 6120ac_abs_top_builddir=$ac_pwd 6121ac_abs_builddir=$ac_pwd$ac_dir_suffix 6122# for backward compatibility: 6123ac_top_builddir=$ac_top_build_prefix 6124 6125case $srcdir in 6126 .) # We are building in place. 6127 ac_srcdir=. 6128 ac_top_srcdir=$ac_top_builddir_sub 6129 ac_abs_top_srcdir=$ac_pwd ;; 6130 [\\/]* | ?:[\\/]* ) # Absolute name. 6131 ac_srcdir=$srcdir$ac_dir_suffix; 6132 ac_top_srcdir=$srcdir 6133 ac_abs_top_srcdir=$srcdir ;; 6134 *) # Relative name. 6135 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6136 ac_top_srcdir=$ac_top_build_prefix$srcdir 6137 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6138esac 6139ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6140 6141 6142 case $ac_mode in 6143 :F) 6144 # 6145 # CONFIG_FILE 6146 # 6147 6148_ACEOF 6149 6150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6151# If the template does not know about datarootdir, expand it. 6152# FIXME: This hack should be removed a few years after 2.60. 6153ac_datarootdir_hack=; ac_datarootdir_seen= 6154ac_sed_dataroot=' 6155/datarootdir/ { 6156 p 6157 q 6158} 6159/@datadir@/p 6160/@docdir@/p 6161/@infodir@/p 6162/@localedir@/p 6163/@mandir@/p' 6164case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6165*datarootdir*) ac_datarootdir_seen=yes;; 6166*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6168$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6169_ACEOF 6170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6171 ac_datarootdir_hack=' 6172 s&@datadir@&$datadir&g 6173 s&@docdir@&$docdir&g 6174 s&@infodir@&$infodir&g 6175 s&@localedir@&$localedir&g 6176 s&@mandir@&$mandir&g 6177 s&\\\${datarootdir}&$datarootdir&g' ;; 6178esac 6179_ACEOF 6180 6181# Neutralize VPATH when `$srcdir' = `.'. 6182# Shell code in configure.ac might set extrasub. 6183# FIXME: do we really want to maintain this feature? 6184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6185ac_sed_extra="$ac_vpsub 6186$extrasub 6187_ACEOF 6188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6189:t 6190/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6191s|@configure_input@|$ac_sed_conf_input|;t t 6192s&@top_builddir@&$ac_top_builddir_sub&;t t 6193s&@top_build_prefix@&$ac_top_build_prefix&;t t 6194s&@srcdir@&$ac_srcdir&;t t 6195s&@abs_srcdir@&$ac_abs_srcdir&;t t 6196s&@top_srcdir@&$ac_top_srcdir&;t t 6197s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6198s&@builddir@&$ac_builddir&;t t 6199s&@abs_builddir@&$ac_abs_builddir&;t t 6200s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6201$ac_datarootdir_hack 6202" 6203eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 6204 || as_fn_error "could not create $ac_file" "$LINENO" 5 6205 6206test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6207 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 6208 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6210which seems to be undefined. Please make sure it is defined." >&5 6211$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6212which seems to be undefined. Please make sure it is defined." >&2;} 6213 6214 rm -f "$tmp/stdin" 6215 case $ac_file in 6216 -) cat "$tmp/out" && rm -f "$tmp/out";; 6217 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 6218 esac \ 6219 || as_fn_error "could not create $ac_file" "$LINENO" 5 6220 ;; 6221 :H) 6222 # 6223 # CONFIG_HEADER 6224 # 6225 if test x"$ac_file" != x-; then 6226 { 6227 $as_echo "/* $configure_input */" \ 6228 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 6229 } >"$tmp/config.h" \ 6230 || as_fn_error "could not create $ac_file" "$LINENO" 5 6231 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 6233$as_echo "$as_me: $ac_file is unchanged" >&6;} 6234 else 6235 rm -f "$ac_file" 6236 mv "$tmp/config.h" "$ac_file" \ 6237 || as_fn_error "could not create $ac_file" "$LINENO" 5 6238 fi 6239 else 6240 $as_echo "/* $configure_input */" \ 6241 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 6242 || as_fn_error "could not create -" "$LINENO" 5 6243 fi 6244 ;; 6245 6246 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 6247$as_echo "$as_me: executing $ac_file commands" >&6;} 6248 ;; 6249 esac 6250 6251 6252 case $ac_file$ac_mode in 6253 "gstdint.h":C) 6254if test "$GCC" = yes; then 6255 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h 6256else 6257 echo "/* generated for $CC */" > tmp-stdint.h 6258fi 6259 6260sed 's/^ *//' >> tmp-stdint.h <<EOF 6261 6262 #ifndef GCC_GENERATED_STDINT_H 6263 #define GCC_GENERATED_STDINT_H 1 6264 6265 #include <sys/types.h> 6266EOF 6267 6268if test "$acx_cv_header_stdint" != stdint.h; then 6269 echo "#include <stddef.h>" >> tmp-stdint.h 6270fi 6271if test "$acx_cv_header_stdint" != stddef.h; then 6272 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h 6273fi 6274 6275sed 's/^ *//' >> tmp-stdint.h <<EOF 6276 /* glibc uses these symbols as guards to prevent redefinitions. */ 6277 #ifdef __int8_t_defined 6278 #define _INT8_T 6279 #define _INT16_T 6280 #define _INT32_T 6281 #endif 6282 #ifdef __uint32_t_defined 6283 #define _UINT32_T 6284 #endif 6285 6286EOF 6287 6288# ----------------- done header, emit basic int types ------------- 6289if test "$acx_cv_header_stdint" = stddef.h; then 6290 sed 's/^ *//' >> tmp-stdint.h <<EOF 6291 6292 #ifndef _UINT8_T 6293 #define _UINT8_T 6294 #ifndef __uint8_t_defined 6295 #define __uint8_t_defined 6296 #ifndef uint8_t 6297 typedef unsigned $acx_cv_type_int8_t uint8_t; 6298 #endif 6299 #endif 6300 #endif 6301 6302 #ifndef _UINT16_T 6303 #define _UINT16_T 6304 #ifndef __uint16_t_defined 6305 #define __uint16_t_defined 6306 #ifndef uint16_t 6307 typedef unsigned $acx_cv_type_int16_t uint16_t; 6308 #endif 6309 #endif 6310 #endif 6311 6312 #ifndef _UINT32_T 6313 #define _UINT32_T 6314 #ifndef __uint32_t_defined 6315 #define __uint32_t_defined 6316 #ifndef uint32_t 6317 typedef unsigned $acx_cv_type_int32_t uint32_t; 6318 #endif 6319 #endif 6320 #endif 6321 6322 #ifndef _INT8_T 6323 #define _INT8_T 6324 #ifndef __int8_t_defined 6325 #define __int8_t_defined 6326 #ifndef int8_t 6327 typedef $acx_cv_type_int8_t int8_t; 6328 #endif 6329 #endif 6330 #endif 6331 6332 #ifndef _INT16_T 6333 #define _INT16_T 6334 #ifndef __int16_t_defined 6335 #define __int16_t_defined 6336 #ifndef int16_t 6337 typedef $acx_cv_type_int16_t int16_t; 6338 #endif 6339 #endif 6340 #endif 6341 6342 #ifndef _INT32_T 6343 #define _INT32_T 6344 #ifndef __int32_t_defined 6345 #define __int32_t_defined 6346 #ifndef int32_t 6347 typedef $acx_cv_type_int32_t int32_t; 6348 #endif 6349 #endif 6350 #endif 6351EOF 6352elif test "$ac_cv_type_u_int32_t" = yes; then 6353 sed 's/^ *//' >> tmp-stdint.h <<EOF 6354 6355 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ 6356 #ifndef _INT8_T 6357 #define _INT8_T 6358 #endif 6359 #ifndef _INT16_T 6360 #define _INT16_T 6361 #endif 6362 #ifndef _INT32_T 6363 #define _INT32_T 6364 #endif 6365 6366 #ifndef _UINT8_T 6367 #define _UINT8_T 6368 #ifndef __uint8_t_defined 6369 #define __uint8_t_defined 6370 #ifndef uint8_t 6371 typedef u_int8_t uint8_t; 6372 #endif 6373 #endif 6374 #endif 6375 6376 #ifndef _UINT16_T 6377 #define _UINT16_T 6378 #ifndef __uint16_t_defined 6379 #define __uint16_t_defined 6380 #ifndef uint16_t 6381 typedef u_int16_t uint16_t; 6382 #endif 6383 #endif 6384 #endif 6385 6386 #ifndef _UINT32_T 6387 #define _UINT32_T 6388 #ifndef __uint32_t_defined 6389 #define __uint32_t_defined 6390 #ifndef uint32_t 6391 typedef u_int32_t uint32_t; 6392 #endif 6393 #endif 6394 #endif 6395EOF 6396else 6397 sed 's/^ *//' >> tmp-stdint.h <<EOF 6398 6399 /* Some systems have guard macros to prevent redefinitions, define them. */ 6400 #ifndef _INT8_T 6401 #define _INT8_T 6402 #endif 6403 #ifndef _INT16_T 6404 #define _INT16_T 6405 #endif 6406 #ifndef _INT32_T 6407 #define _INT32_T 6408 #endif 6409 #ifndef _UINT8_T 6410 #define _UINT8_T 6411 #endif 6412 #ifndef _UINT16_T 6413 #define _UINT16_T 6414 #endif 6415 #ifndef _UINT32_T 6416 #define _UINT32_T 6417 #endif 6418EOF 6419fi 6420 6421# ------------- done basic int types, emit int64_t types ------------ 6422if test "$ac_cv_type_uint64_t" = yes; then 6423 sed 's/^ *//' >> tmp-stdint.h <<EOF 6424 6425 /* system headers have good uint64_t and int64_t */ 6426 #ifndef _INT64_T 6427 #define _INT64_T 6428 #endif 6429 #ifndef _UINT64_T 6430 #define _UINT64_T 6431 #endif 6432EOF 6433elif test "$ac_cv_type_u_int64_t" = yes; then 6434 sed 's/^ *//' >> tmp-stdint.h <<EOF 6435 6436 /* system headers have an u_int64_t (and int64_t) */ 6437 #ifndef _INT64_T 6438 #define _INT64_T 6439 #endif 6440 #ifndef _UINT64_T 6441 #define _UINT64_T 6442 #ifndef __uint64_t_defined 6443 #define __uint64_t_defined 6444 #ifndef uint64_t 6445 typedef u_int64_t uint64_t; 6446 #endif 6447 #endif 6448 #endif 6449EOF 6450elif test -n "$acx_cv_type_int64_t"; then 6451 sed 's/^ *//' >> tmp-stdint.h <<EOF 6452 6453 /* architecture has a 64-bit type, $acx_cv_type_int64_t */ 6454 #ifndef _INT64_T 6455 #define _INT64_T 6456 #ifndef int64_t 6457 typedef $acx_cv_type_int64_t int64_t; 6458 #endif 6459 #endif 6460 #ifndef _UINT64_T 6461 #define _UINT64_T 6462 #ifndef __uint64_t_defined 6463 #define __uint64_t_defined 6464 #ifndef uint64_t 6465 typedef unsigned $acx_cv_type_int64_t uint64_t; 6466 #endif 6467 #endif 6468 #endif 6469EOF 6470else 6471 sed 's/^ *//' >> tmp-stdint.h <<EOF 6472 6473 /* some common heuristics for int64_t, using compiler-specific tests */ 6474 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L 6475 #ifndef _INT64_T 6476 #define _INT64_T 6477 #ifndef __int64_t_defined 6478 #ifndef int64_t 6479 typedef long long int64_t; 6480 #endif 6481 #endif 6482 #endif 6483 #ifndef _UINT64_T 6484 #define _UINT64_T 6485 #ifndef uint64_t 6486 typedef unsigned long long uint64_t; 6487 #endif 6488 #endif 6489 6490 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 6491 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and 6492 does not implement __extension__. But that compiler doesn't define 6493 __GNUC_MINOR__. */ 6494 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) 6495 # define __extension__ 6496 # endif 6497 6498 # ifndef _INT64_T 6499 # define _INT64_T 6500 # ifndef int64_t 6501 __extension__ typedef long long int64_t; 6502 # endif 6503 # endif 6504 # ifndef _UINT64_T 6505 # define _UINT64_T 6506 # ifndef uint64_t 6507 __extension__ typedef unsigned long long uint64_t; 6508 # endif 6509 # endif 6510 6511 #elif !defined __STRICT_ANSI__ 6512 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 6513 6514 # ifndef _INT64_T 6515 # define _INT64_T 6516 # ifndef int64_t 6517 typedef __int64 int64_t; 6518 # endif 6519 # endif 6520 # ifndef _UINT64_T 6521 # define _UINT64_T 6522 # ifndef uint64_t 6523 typedef unsigned __int64 uint64_t; 6524 # endif 6525 # endif 6526 # endif /* compiler */ 6527 6528 #endif /* ANSI version */ 6529EOF 6530fi 6531 6532# ------------- done int64_t types, emit intptr types ------------ 6533if test "$ac_cv_type_uintptr_t" != yes; then 6534 sed 's/^ *//' >> tmp-stdint.h <<EOF 6535 6536 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ 6537 #ifndef __uintptr_t_defined 6538 #ifndef uintptr_t 6539 typedef u$acx_cv_type_intptr_t uintptr_t; 6540 #endif 6541 #endif 6542 #ifndef __intptr_t_defined 6543 #ifndef intptr_t 6544 typedef $acx_cv_type_intptr_t intptr_t; 6545 #endif 6546 #endif 6547EOF 6548fi 6549 6550# ------------- done intptr types, emit int_least types ------------ 6551if test "$ac_cv_type_int_least32_t" != yes; then 6552 sed 's/^ *//' >> tmp-stdint.h <<EOF 6553 6554 /* Define int_least types */ 6555 typedef int8_t int_least8_t; 6556 typedef int16_t int_least16_t; 6557 typedef int32_t int_least32_t; 6558 #ifdef _INT64_T 6559 typedef int64_t int_least64_t; 6560 #endif 6561 6562 typedef uint8_t uint_least8_t; 6563 typedef uint16_t uint_least16_t; 6564 typedef uint32_t uint_least32_t; 6565 #ifdef _UINT64_T 6566 typedef uint64_t uint_least64_t; 6567 #endif 6568EOF 6569fi 6570 6571# ------------- done intptr types, emit int_fast types ------------ 6572if test "$ac_cv_type_int_fast32_t" != yes; then 6573 sed 's/^ *//' >> tmp-stdint.h <<EOF 6574 6575 /* Define int_fast types. short is often slow */ 6576 typedef int8_t int_fast8_t; 6577 typedef int int_fast16_t; 6578 typedef int32_t int_fast32_t; 6579 #ifdef _INT64_T 6580 typedef int64_t int_fast64_t; 6581 #endif 6582 6583 typedef uint8_t uint_fast8_t; 6584 typedef unsigned int uint_fast16_t; 6585 typedef uint32_t uint_fast32_t; 6586 #ifdef _UINT64_T 6587 typedef uint64_t uint_fast64_t; 6588 #endif 6589EOF 6590fi 6591 6592if test "$ac_cv_type_uintmax_t" != yes; then 6593 sed 's/^ *//' >> tmp-stdint.h <<EOF 6594 6595 /* Define intmax based on what we found */ 6596 #ifndef intmax_t 6597 #ifdef _INT64_T 6598 typedef int64_t intmax_t; 6599 #else 6600 typedef long intmax_t; 6601 #endif 6602 #endif 6603 #ifndef uintmax_t 6604 #ifdef _UINT64_T 6605 typedef uint64_t uintmax_t; 6606 #else 6607 typedef unsigned long uintmax_t; 6608 #endif 6609 #endif 6610EOF 6611fi 6612 6613sed 's/^ *//' >> tmp-stdint.h <<EOF 6614 6615 #endif /* GCC_GENERATED_STDINT_H */ 6616EOF 6617 6618if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then 6619 rm -f tmp-stdint.h 6620else 6621 mv -f tmp-stdint.h gstdint.h 6622fi 6623 6624 ;; 6625 "config.h":H) echo timestamp > stamp-h1 ;; 6626 6627 esac 6628done # for ac_tag 6629 6630 6631as_fn_exit 0 6632_ACEOF 6633ac_clean_files=$ac_clean_files_save 6634 6635test $ac_write_fail = 0 || 6636 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 6637 6638 6639# configure is writing to config.log, and then calls config.status. 6640# config.status does its own redirection, appending to config.log. 6641# Unfortunately, on DOS this fails, as config.log is still kept open 6642# by configure, so config.status won't be able to write to it; its 6643# output is simply discarded. So we exec the FD to /dev/null, 6644# effectively closing config.log, so it can be properly (re)opened and 6645# appended to by config.status. When coming back to configure, we 6646# need to make the FD available again. 6647if test "$no_create" != yes; then 6648 ac_cs_success=: 6649 ac_config_status_args= 6650 test "$silent" = yes && 6651 ac_config_status_args="$ac_config_status_args --quiet" 6652 exec 5>/dev/null 6653 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6654 exec 5>>config.log 6655 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6656 # would make configure fail if this is the last instruction. 6657 $ac_cs_success || as_fn_exit $? 6658fi 6659if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6661$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6662fi 6663 6664