1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for cpplib . 4# 5# Report bugs to <gcc-bugs@gcc.gnu.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: gcc-bugs@gcc.gnu.org about your system, including any 271$0: error possibly output before this message. Then install 272$0: a modern shell, or manually run the script under such a 273$0: shell if you do have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='cpplib' 582PACKAGE_TARNAME='cpplib' 583PACKAGE_VERSION=' ' 584PACKAGE_STRING='cpplib ' 585PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org' 586PACKAGE_URL='' 587 588ac_unique_file="ucnid.h" 589# Factoring default headers for most tests. 590ac_includes_default="\ 591#include <stdio.h> 592#ifdef HAVE_SYS_TYPES_H 593# include <sys/types.h> 594#endif 595#ifdef HAVE_SYS_STAT_H 596# include <sys/stat.h> 597#endif 598#ifdef STDC_HEADERS 599# include <stdlib.h> 600# include <stddef.h> 601#else 602# ifdef HAVE_STDLIB_H 603# include <stdlib.h> 604# endif 605#endif 606#ifdef HAVE_STRING_H 607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 608# include <memory.h> 609# endif 610# include <string.h> 611#endif 612#ifdef HAVE_STRINGS_H 613# include <strings.h> 614#endif 615#ifdef HAVE_INTTYPES_H 616# include <inttypes.h> 617#endif 618#ifdef HAVE_STDINT_H 619# include <stdint.h> 620#endif 621#ifdef HAVE_UNISTD_H 622# include <unistd.h> 623#endif" 624 625ac_subst_vars='LTLIBOBJS 626PICFLAG 627MAINT 628USED_CATALOGS 629PACKAGE 630LTLIBICONV 631LIBICONV 632CATOBJEXT 633GENCAT 634INSTOBJEXT 635DATADIRNAME 636CATALOGS 637POSUB 638GMSGFMT 639XGETTEXT 640INCINTL 641LIBINTL_DEP 642LIBINTL 643USE_NLS 644ALLOCA 645LIBOBJS 646CXXDEPMODE 647DEPDIR 648am__leading_dot 649WERROR 650noexception_flags 651WARN_PEDANTIC 652c_warn 653warn 654AUTOHEADER 655AUTOCONF 656ACLOCAL 657EGREP 658GREP 659CPP 660RANLIB 661ac_ct_CXX 662CXXFLAGS 663CXX 664OBJEXT 665EXEEXT 666ac_ct_CC 667CPPFLAGS 668LDFLAGS 669CFLAGS 670CC 671INSTALL_DATA 672INSTALL_SCRIPT 673INSTALL_PROGRAM 674SET_MAKE 675target_os 676target_vendor 677target_cpu 678target 679host_os 680host_vendor 681host_cpu 682host 683build_os 684build_vendor 685build_cpu 686build 687target_alias 688host_alias 689build_alias 690LIBS 691ECHO_T 692ECHO_N 693ECHO_C 694DEFS 695mandir 696localedir 697libdir 698psdir 699pdfdir 700dvidir 701htmldir 702infodir 703docdir 704oldincludedir 705includedir 706localstatedir 707sharedstatedir 708sysconfdir 709datadir 710datarootdir 711libexecdir 712sbindir 713bindir 714program_transform_name 715prefix 716exec_prefix 717PACKAGE_URL 718PACKAGE_BUGREPORT 719PACKAGE_STRING 720PACKAGE_VERSION 721PACKAGE_TARNAME 722PACKAGE_NAME 723PATH_SEPARATOR 724SHELL' 725ac_subst_files='' 726ac_user_opts=' 727enable_option_checking 728enable_largefile 729enable_werror_always 730with_gnu_ld 731enable_rpath 732with_libiconv_prefix 733enable_maintainer_mode 734enable_checking 735enable_canonical_system_headers 736enable_host_shared 737enable_valgrind_annotations 738' 739 ac_precious_vars='build_alias 740host_alias 741target_alias 742CC 743CFLAGS 744LDFLAGS 745LIBS 746CPPFLAGS 747CXX 748CXXFLAGS 749CCC 750CPP' 751 752 753# Initialize some variables set by options. 754ac_init_help= 755ac_init_version=false 756ac_unrecognized_opts= 757ac_unrecognized_sep= 758# The variables have the same names as the options, with 759# dashes changed to underlines. 760cache_file=/dev/null 761exec_prefix=NONE 762no_create= 763no_recursion= 764prefix=NONE 765program_prefix=NONE 766program_suffix=NONE 767program_transform_name=s,x,x, 768silent= 769site= 770srcdir= 771verbose= 772x_includes=NONE 773x_libraries=NONE 774 775# Installation directory options. 776# These are left unexpanded so users can "make install exec_prefix=/foo" 777# and all the variables that are supposed to be based on exec_prefix 778# by default will actually change. 779# Use braces instead of parens because sh, perl, etc. also accept them. 780# (The list follows the same order as the GNU Coding Standards.) 781bindir='${exec_prefix}/bin' 782sbindir='${exec_prefix}/sbin' 783libexecdir='${exec_prefix}/libexec' 784datarootdir='${prefix}/share' 785datadir='${datarootdir}' 786sysconfdir='${prefix}/etc' 787sharedstatedir='${prefix}/com' 788localstatedir='${prefix}/var' 789includedir='${prefix}/include' 790oldincludedir='/usr/include' 791docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 792infodir='${datarootdir}/info' 793htmldir='${docdir}' 794dvidir='${docdir}' 795pdfdir='${docdir}' 796psdir='${docdir}' 797libdir='${exec_prefix}/lib' 798localedir='${datarootdir}/locale' 799mandir='${datarootdir}/man' 800 801ac_prev= 802ac_dashdash= 803for ac_option 804do 805 # If the previous option needs an argument, assign it. 806 if test -n "$ac_prev"; then 807 eval $ac_prev=\$ac_option 808 ac_prev= 809 continue 810 fi 811 812 case $ac_option in 813 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 814 *=) ac_optarg= ;; 815 *) ac_optarg=yes ;; 816 esac 817 818 # Accept the important Cygnus configure options, so we can diagnose typos. 819 820 case $ac_dashdash$ac_option in 821 --) 822 ac_dashdash=yes ;; 823 824 -bindir | --bindir | --bindi | --bind | --bin | --bi) 825 ac_prev=bindir ;; 826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 827 bindir=$ac_optarg ;; 828 829 -build | --build | --buil | --bui | --bu) 830 ac_prev=build_alias ;; 831 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 832 build_alias=$ac_optarg ;; 833 834 -cache-file | --cache-file | --cache-fil | --cache-fi \ 835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 836 ac_prev=cache_file ;; 837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 839 cache_file=$ac_optarg ;; 840 841 --config-cache | -C) 842 cache_file=config.cache ;; 843 844 -datadir | --datadir | --datadi | --datad) 845 ac_prev=datadir ;; 846 -datadir=* | --datadir=* | --datadi=* | --datad=*) 847 datadir=$ac_optarg ;; 848 849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 850 | --dataroo | --dataro | --datar) 851 ac_prev=datarootdir ;; 852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 854 datarootdir=$ac_optarg ;; 855 856 -disable-* | --disable-*) 857 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 858 # Reject names that are not valid shell variable names. 859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 860 as_fn_error $? "invalid feature name: $ac_useropt" 861 ac_useropt_orig=$ac_useropt 862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 863 case $ac_user_opts in 864 *" 865"enable_$ac_useropt" 866"*) ;; 867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 868 ac_unrecognized_sep=', ';; 869 esac 870 eval enable_$ac_useropt=no ;; 871 872 -docdir | --docdir | --docdi | --doc | --do) 873 ac_prev=docdir ;; 874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 875 docdir=$ac_optarg ;; 876 877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 878 ac_prev=dvidir ;; 879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 880 dvidir=$ac_optarg ;; 881 882 -enable-* | --enable-*) 883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 884 # Reject names that are not valid shell variable names. 885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 886 as_fn_error $? "invalid feature name: $ac_useropt" 887 ac_useropt_orig=$ac_useropt 888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 889 case $ac_user_opts in 890 *" 891"enable_$ac_useropt" 892"*) ;; 893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 894 ac_unrecognized_sep=', ';; 895 esac 896 eval enable_$ac_useropt=\$ac_optarg ;; 897 898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 900 | --exec | --exe | --ex) 901 ac_prev=exec_prefix ;; 902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 904 | --exec=* | --exe=* | --ex=*) 905 exec_prefix=$ac_optarg ;; 906 907 -gas | --gas | --ga | --g) 908 # Obsolete; use --with-gas. 909 with_gas=yes ;; 910 911 -help | --help | --hel | --he | -h) 912 ac_init_help=long ;; 913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 914 ac_init_help=recursive ;; 915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 916 ac_init_help=short ;; 917 918 -host | --host | --hos | --ho) 919 ac_prev=host_alias ;; 920 -host=* | --host=* | --hos=* | --ho=*) 921 host_alias=$ac_optarg ;; 922 923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 924 ac_prev=htmldir ;; 925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 926 | --ht=*) 927 htmldir=$ac_optarg ;; 928 929 -includedir | --includedir | --includedi | --included | --include \ 930 | --includ | --inclu | --incl | --inc) 931 ac_prev=includedir ;; 932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 933 | --includ=* | --inclu=* | --incl=* | --inc=*) 934 includedir=$ac_optarg ;; 935 936 -infodir | --infodir | --infodi | --infod | --info | --inf) 937 ac_prev=infodir ;; 938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 939 infodir=$ac_optarg ;; 940 941 -libdir | --libdir | --libdi | --libd) 942 ac_prev=libdir ;; 943 -libdir=* | --libdir=* | --libdi=* | --libd=*) 944 libdir=$ac_optarg ;; 945 946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 947 | --libexe | --libex | --libe) 948 ac_prev=libexecdir ;; 949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 950 | --libexe=* | --libex=* | --libe=*) 951 libexecdir=$ac_optarg ;; 952 953 -localedir | --localedir | --localedi | --localed | --locale) 954 ac_prev=localedir ;; 955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 956 localedir=$ac_optarg ;; 957 958 -localstatedir | --localstatedir | --localstatedi | --localstated \ 959 | --localstate | --localstat | --localsta | --localst | --locals) 960 ac_prev=localstatedir ;; 961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 963 localstatedir=$ac_optarg ;; 964 965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 966 ac_prev=mandir ;; 967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 968 mandir=$ac_optarg ;; 969 970 -nfp | --nfp | --nf) 971 # Obsolete; use --without-fp. 972 with_fp=no ;; 973 974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 975 | --no-cr | --no-c | -n) 976 no_create=yes ;; 977 978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 980 no_recursion=yes ;; 981 982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 984 | --oldin | --oldi | --old | --ol | --o) 985 ac_prev=oldincludedir ;; 986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 989 oldincludedir=$ac_optarg ;; 990 991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 992 ac_prev=prefix ;; 993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 994 prefix=$ac_optarg ;; 995 996 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 997 | --program-pre | --program-pr | --program-p) 998 ac_prev=program_prefix ;; 999 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1001 program_prefix=$ac_optarg ;; 1002 1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1004 | --program-suf | --program-su | --program-s) 1005 ac_prev=program_suffix ;; 1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1008 program_suffix=$ac_optarg ;; 1009 1010 -program-transform-name | --program-transform-name \ 1011 | --program-transform-nam | --program-transform-na \ 1012 | --program-transform-n | --program-transform- \ 1013 | --program-transform | --program-transfor \ 1014 | --program-transfo | --program-transf \ 1015 | --program-trans | --program-tran \ 1016 | --progr-tra | --program-tr | --program-t) 1017 ac_prev=program_transform_name ;; 1018 -program-transform-name=* | --program-transform-name=* \ 1019 | --program-transform-nam=* | --program-transform-na=* \ 1020 | --program-transform-n=* | --program-transform-=* \ 1021 | --program-transform=* | --program-transfor=* \ 1022 | --program-transfo=* | --program-transf=* \ 1023 | --program-trans=* | --program-tran=* \ 1024 | --progr-tra=* | --program-tr=* | --program-t=*) 1025 program_transform_name=$ac_optarg ;; 1026 1027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1028 ac_prev=pdfdir ;; 1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1030 pdfdir=$ac_optarg ;; 1031 1032 -psdir | --psdir | --psdi | --psd | --ps) 1033 ac_prev=psdir ;; 1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1035 psdir=$ac_optarg ;; 1036 1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1038 | -silent | --silent | --silen | --sile | --sil) 1039 silent=yes ;; 1040 1041 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1042 ac_prev=sbindir ;; 1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1044 | --sbi=* | --sb=*) 1045 sbindir=$ac_optarg ;; 1046 1047 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1048 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1049 | --sharedst | --shareds | --shared | --share | --shar \ 1050 | --sha | --sh) 1051 ac_prev=sharedstatedir ;; 1052 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1053 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1054 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1055 | --sha=* | --sh=*) 1056 sharedstatedir=$ac_optarg ;; 1057 1058 -site | --site | --sit) 1059 ac_prev=site ;; 1060 -site=* | --site=* | --sit=*) 1061 site=$ac_optarg ;; 1062 1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1064 ac_prev=srcdir ;; 1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1066 srcdir=$ac_optarg ;; 1067 1068 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1069 | --syscon | --sysco | --sysc | --sys | --sy) 1070 ac_prev=sysconfdir ;; 1071 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1072 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1073 sysconfdir=$ac_optarg ;; 1074 1075 -target | --target | --targe | --targ | --tar | --ta | --t) 1076 ac_prev=target_alias ;; 1077 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1078 target_alias=$ac_optarg ;; 1079 1080 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1081 verbose=yes ;; 1082 1083 -version | --version | --versio | --versi | --vers | -V) 1084 ac_init_version=: ;; 1085 1086 -with-* | --with-*) 1087 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1088 # Reject names that are not valid shell variable names. 1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1090 as_fn_error $? "invalid package name: $ac_useropt" 1091 ac_useropt_orig=$ac_useropt 1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1093 case $ac_user_opts in 1094 *" 1095"with_$ac_useropt" 1096"*) ;; 1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1098 ac_unrecognized_sep=', ';; 1099 esac 1100 eval with_$ac_useropt=\$ac_optarg ;; 1101 1102 -without-* | --without-*) 1103 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1104 # Reject names that are not valid shell variable names. 1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1106 as_fn_error $? "invalid package name: $ac_useropt" 1107 ac_useropt_orig=$ac_useropt 1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1109 case $ac_user_opts in 1110 *" 1111"with_$ac_useropt" 1112"*) ;; 1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1114 ac_unrecognized_sep=', ';; 1115 esac 1116 eval with_$ac_useropt=no ;; 1117 1118 --x) 1119 # Obsolete; use --with-x. 1120 with_x=yes ;; 1121 1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1123 | --x-incl | --x-inc | --x-in | --x-i) 1124 ac_prev=x_includes ;; 1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1127 x_includes=$ac_optarg ;; 1128 1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1131 ac_prev=x_libraries ;; 1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1134 x_libraries=$ac_optarg ;; 1135 1136 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1137Try \`$0 --help' for more information" 1138 ;; 1139 1140 *=*) 1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1142 # Reject names that are not valid shell variable names. 1143 case $ac_envvar in #( 1144 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1145 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1146 esac 1147 eval $ac_envvar=\$ac_optarg 1148 export $ac_envvar ;; 1149 1150 *) 1151 # FIXME: should be removed in autoconf 3.0. 1152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1155 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1156 ;; 1157 1158 esac 1159done 1160 1161if test -n "$ac_prev"; then 1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1163 as_fn_error $? "missing argument to $ac_option" 1164fi 1165 1166if test -n "$ac_unrecognized_opts"; then 1167 case $enable_option_checking in 1168 no) ;; 1169 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1170 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1171 esac 1172fi 1173 1174# Check all directory arguments for consistency. 1175for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1176 datadir sysconfdir sharedstatedir localstatedir includedir \ 1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1178 libdir localedir mandir 1179do 1180 eval ac_val=\$$ac_var 1181 # Remove trailing slashes. 1182 case $ac_val in 1183 */ ) 1184 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1185 eval $ac_var=\$ac_val;; 1186 esac 1187 # Be sure to have absolute directory names. 1188 case $ac_val in 1189 [\\/$]* | ?:[\\/]* ) continue;; 1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1191 esac 1192 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1193done 1194 1195# There might be people who depend on the old broken behavior: `$host' 1196# used to hold the argument of --host etc. 1197# FIXME: To remove some day. 1198build=$build_alias 1199host=$host_alias 1200target=$target_alias 1201 1202# FIXME: To remove some day. 1203if test "x$host_alias" != x; then 1204 if test "x$build_alias" = x; then 1205 cross_compiling=maybe 1206 elif test "x$build_alias" != "x$host_alias"; then 1207 cross_compiling=yes 1208 fi 1209fi 1210 1211ac_tool_prefix= 1212test -n "$host_alias" && ac_tool_prefix=$host_alias- 1213 1214test "$silent" = yes && exec 6>/dev/null 1215 1216 1217ac_pwd=`pwd` && test -n "$ac_pwd" && 1218ac_ls_di=`ls -di .` && 1219ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1220 as_fn_error $? "working directory cannot be determined" 1221test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1222 as_fn_error $? "pwd does not report name of working directory" 1223 1224 1225# Find the source files, if location was not specified. 1226if test -z "$srcdir"; then 1227 ac_srcdir_defaulted=yes 1228 # Try the directory containing this script, then the parent directory. 1229 ac_confdir=`$as_dirname -- "$as_myself" || 1230$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1231 X"$as_myself" : 'X\(//\)[^/]' \| \ 1232 X"$as_myself" : 'X\(//\)$' \| \ 1233 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1234$as_echo X"$as_myself" | 1235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1236 s//\1/ 1237 q 1238 } 1239 /^X\(\/\/\)[^/].*/{ 1240 s//\1/ 1241 q 1242 } 1243 /^X\(\/\/\)$/{ 1244 s//\1/ 1245 q 1246 } 1247 /^X\(\/\).*/{ 1248 s//\1/ 1249 q 1250 } 1251 s/.*/./; q'` 1252 srcdir=$ac_confdir 1253 if test ! -r "$srcdir/$ac_unique_file"; then 1254 srcdir=.. 1255 fi 1256else 1257 ac_srcdir_defaulted=no 1258fi 1259if test ! -r "$srcdir/$ac_unique_file"; then 1260 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1261 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1262fi 1263ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1264ac_abs_confdir=`( 1265 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1266 pwd)` 1267# When building in place, set srcdir=. 1268if test "$ac_abs_confdir" = "$ac_pwd"; then 1269 srcdir=. 1270fi 1271# Remove unnecessary trailing slashes from srcdir. 1272# Double slashes in file names in object file debugging info 1273# mess up M-x gdb in Emacs. 1274case $srcdir in 1275*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1276esac 1277for ac_var in $ac_precious_vars; do 1278 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1279 eval ac_env_${ac_var}_value=\$${ac_var} 1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1281 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1282done 1283 1284# 1285# Report the --help message. 1286# 1287if test "$ac_init_help" = "long"; then 1288 # Omit some internal or obsolete options to make the list less imposing. 1289 # This message is too long to be a string in the A/UX 3.1 sh. 1290 cat <<_ACEOF 1291\`configure' configures cpplib to adapt to many kinds of systems. 1292 1293Usage: $0 [OPTION]... [VAR=VALUE]... 1294 1295To assign environment variables (e.g., CC, CFLAGS...), specify them as 1296VAR=VALUE. See below for descriptions of some of the useful variables. 1297 1298Defaults for the options are specified in brackets. 1299 1300Configuration: 1301 -h, --help display this help and exit 1302 --help=short display options specific to this package 1303 --help=recursive display the short help of all the included packages 1304 -V, --version display version information and exit 1305 -q, --quiet, --silent do not print \`checking ...' messages 1306 --cache-file=FILE cache test results in FILE [disabled] 1307 -C, --config-cache alias for \`--cache-file=config.cache' 1308 -n, --no-create do not create output files 1309 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1310 1311Installation directories: 1312 --prefix=PREFIX install architecture-independent files in PREFIX 1313 [$ac_default_prefix] 1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1315 [PREFIX] 1316 1317By default, \`make install' will install all the files in 1318\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1319an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1320for instance \`--prefix=\$HOME'. 1321 1322For better control, use the options below. 1323 1324Fine tuning of the installation directories: 1325 --bindir=DIR user executables [EPREFIX/bin] 1326 --sbindir=DIR system admin executables [EPREFIX/sbin] 1327 --libexecdir=DIR program executables [EPREFIX/libexec] 1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1331 --libdir=DIR object code libraries [EPREFIX/lib] 1332 --includedir=DIR C header files [PREFIX/include] 1333 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1336 --infodir=DIR info documentation [DATAROOTDIR/info] 1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1338 --mandir=DIR man documentation [DATAROOTDIR/man] 1339 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib] 1340 --htmldir=DIR html documentation [DOCDIR] 1341 --dvidir=DIR dvi documentation [DOCDIR] 1342 --pdfdir=DIR pdf documentation [DOCDIR] 1343 --psdir=DIR ps documentation [DOCDIR] 1344_ACEOF 1345 1346 cat <<\_ACEOF 1347 1348System types: 1349 --build=BUILD configure for building on BUILD [guessed] 1350 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1351 --target=TARGET configure for building compilers for TARGET [HOST] 1352_ACEOF 1353fi 1354 1355if test -n "$ac_init_help"; then 1356 case $ac_init_help in 1357 short | recursive ) echo "Configuration of cpplib :";; 1358 esac 1359 cat <<\_ACEOF 1360 1361Optional Features: 1362 --disable-option-checking ignore unrecognized --enable/--with options 1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1365 --disable-largefile omit support for large files 1366 --enable-werror-always enable -Werror despite compiler version 1367 --disable-rpath do not hardcode runtime library paths 1368 --enable-maintainer-mode enable rules only needed by maintainers 1369 --enable-checking[=LIST] 1370 enable expensive run-time checks. With LIST, enable 1371 only specific categories of checks. Categories are: 1372 yes,no,all,none,release. Flags are: misc,valgrind or 1373 other strings 1374 --enable-canonical-system-headers 1375 enable or disable system headers canonicalization 1376 --enable-host-shared build host code as shared libraries 1377 --enable-valgrind-annotations 1378 enable valgrind runtime interaction 1379 1380Optional Packages: 1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1383 --with-gnu-ld assume the C compiler uses GNU ld default=no 1384 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1385 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1386 1387Some influential environment variables: 1388 CC C compiler command 1389 CFLAGS C compiler flags 1390 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1391 nonstandard directory <lib dir> 1392 LIBS libraries to pass to the linker, e.g. -l<library> 1393 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1394 you have headers in a nonstandard directory <include dir> 1395 CXX C++ compiler command 1396 CXXFLAGS C++ compiler flags 1397 CPP C preprocessor 1398 1399Use these variables to override the choices made by `configure' or to help 1400it to find libraries and programs with nonstandard names/locations. 1401 1402Report bugs to <gcc-bugs@gcc.gnu.org>. 1403_ACEOF 1404ac_status=$? 1405fi 1406 1407if test "$ac_init_help" = "recursive"; then 1408 # If there are subdirs, report their specific --help. 1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1410 test -d "$ac_dir" || 1411 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1412 continue 1413 ac_builddir=. 1414 1415case "$ac_dir" in 1416.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1417*) 1418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1419 # A ".." for each directory in $ac_dir_suffix. 1420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1421 case $ac_top_builddir_sub in 1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1424 esac ;; 1425esac 1426ac_abs_top_builddir=$ac_pwd 1427ac_abs_builddir=$ac_pwd$ac_dir_suffix 1428# for backward compatibility: 1429ac_top_builddir=$ac_top_build_prefix 1430 1431case $srcdir in 1432 .) # We are building in place. 1433 ac_srcdir=. 1434 ac_top_srcdir=$ac_top_builddir_sub 1435 ac_abs_top_srcdir=$ac_pwd ;; 1436 [\\/]* | ?:[\\/]* ) # Absolute name. 1437 ac_srcdir=$srcdir$ac_dir_suffix; 1438 ac_top_srcdir=$srcdir 1439 ac_abs_top_srcdir=$srcdir ;; 1440 *) # Relative name. 1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1442 ac_top_srcdir=$ac_top_build_prefix$srcdir 1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1444esac 1445ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1446 1447 cd "$ac_dir" || { ac_status=$?; continue; } 1448 # Check for guested configure. 1449 if test -f "$ac_srcdir/configure.gnu"; then 1450 echo && 1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1452 elif test -f "$ac_srcdir/configure"; then 1453 echo && 1454 $SHELL "$ac_srcdir/configure" --help=recursive 1455 else 1456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1457 fi || ac_status=$? 1458 cd "$ac_pwd" || { ac_status=$?; break; } 1459 done 1460fi 1461 1462test -n "$ac_init_help" && exit $ac_status 1463if $ac_init_version; then 1464 cat <<\_ACEOF 1465cpplib configure 1466generated by GNU Autoconf 2.69 1467 1468Copyright (C) 2012 Free Software Foundation, Inc. 1469This configure script is free software; the Free Software Foundation 1470gives unlimited permission to copy, distribute and modify it. 1471_ACEOF 1472 exit 1473fi 1474 1475## ------------------------ ## 1476## Autoconf initialization. ## 1477## ------------------------ ## 1478 1479# ac_fn_c_try_compile LINENO 1480# -------------------------- 1481# Try to compile conftest.$ac_ext, and return whether this succeeded. 1482ac_fn_c_try_compile () 1483{ 1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1485 rm -f conftest.$ac_objext 1486 if { { ac_try="$ac_compile" 1487case "(($ac_try" in 1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1489 *) ac_try_echo=$ac_try;; 1490esac 1491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1492$as_echo "$ac_try_echo"; } >&5 1493 (eval "$ac_compile") 2>conftest.err 1494 ac_status=$? 1495 if test -s conftest.err; then 1496 grep -v '^ *+' conftest.err >conftest.er1 1497 cat conftest.er1 >&5 1498 mv -f conftest.er1 conftest.err 1499 fi 1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1501 test $ac_status = 0; } && { 1502 test -z "$ac_c_werror_flag" || 1503 test ! -s conftest.err 1504 } && test -s conftest.$ac_objext; then : 1505 ac_retval=0 1506else 1507 $as_echo "$as_me: failed program was:" >&5 1508sed 's/^/| /' conftest.$ac_ext >&5 1509 1510 ac_retval=1 1511fi 1512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1513 as_fn_set_status $ac_retval 1514 1515} # ac_fn_c_try_compile 1516 1517# ac_fn_cxx_try_compile LINENO 1518# ---------------------------- 1519# Try to compile conftest.$ac_ext, and return whether this succeeded. 1520ac_fn_cxx_try_compile () 1521{ 1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1523 rm -f conftest.$ac_objext 1524 if { { ac_try="$ac_compile" 1525case "(($ac_try" in 1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1527 *) ac_try_echo=$ac_try;; 1528esac 1529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1530$as_echo "$ac_try_echo"; } >&5 1531 (eval "$ac_compile") 2>conftest.err 1532 ac_status=$? 1533 if test -s conftest.err; then 1534 grep -v '^ *+' conftest.err >conftest.er1 1535 cat conftest.er1 >&5 1536 mv -f conftest.er1 conftest.err 1537 fi 1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1539 test $ac_status = 0; } && { 1540 test -z "$ac_cxx_werror_flag" || 1541 test ! -s conftest.err 1542 } && test -s conftest.$ac_objext; then : 1543 ac_retval=0 1544else 1545 $as_echo "$as_me: failed program was:" >&5 1546sed 's/^/| /' conftest.$ac_ext >&5 1547 1548 ac_retval=1 1549fi 1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1551 as_fn_set_status $ac_retval 1552 1553} # ac_fn_cxx_try_compile 1554 1555# ac_fn_c_try_cpp LINENO 1556# ---------------------- 1557# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1558ac_fn_c_try_cpp () 1559{ 1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1561 if { { ac_try="$ac_cpp conftest.$ac_ext" 1562case "(($ac_try" in 1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1564 *) ac_try_echo=$ac_try;; 1565esac 1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1567$as_echo "$ac_try_echo"; } >&5 1568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1569 ac_status=$? 1570 if test -s conftest.err; then 1571 grep -v '^ *+' conftest.err >conftest.er1 1572 cat conftest.er1 >&5 1573 mv -f conftest.er1 conftest.err 1574 fi 1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1576 test $ac_status = 0; } > conftest.i && { 1577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1578 test ! -s conftest.err 1579 }; then : 1580 ac_retval=0 1581else 1582 $as_echo "$as_me: failed program was:" >&5 1583sed 's/^/| /' conftest.$ac_ext >&5 1584 1585 ac_retval=1 1586fi 1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1588 as_fn_set_status $ac_retval 1589 1590} # ac_fn_c_try_cpp 1591 1592# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1593# ------------------------------------------------------- 1594# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1595# the include files in INCLUDES and setting the cache variable VAR 1596# accordingly. 1597ac_fn_c_check_header_mongrel () 1598{ 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 if eval \${$3+:} false; then : 1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1602$as_echo_n "checking for $2... " >&6; } 1603if eval \${$3+:} false; then : 1604 $as_echo_n "(cached) " >&6 1605fi 1606eval ac_res=\$$3 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1608$as_echo "$ac_res" >&6; } 1609else 1610 # Is the header compilable? 1611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1612$as_echo_n "checking $2 usability... " >&6; } 1613cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1614/* end confdefs.h. */ 1615$4 1616#include <$2> 1617_ACEOF 1618if ac_fn_c_try_compile "$LINENO"; then : 1619 ac_header_compiler=yes 1620else 1621 ac_header_compiler=no 1622fi 1623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1625$as_echo "$ac_header_compiler" >&6; } 1626 1627# Is the header present? 1628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1629$as_echo_n "checking $2 presence... " >&6; } 1630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1631/* end confdefs.h. */ 1632#include <$2> 1633_ACEOF 1634if ac_fn_c_try_cpp "$LINENO"; then : 1635 ac_header_preproc=yes 1636else 1637 ac_header_preproc=no 1638fi 1639rm -f conftest.err conftest.i conftest.$ac_ext 1640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1641$as_echo "$ac_header_preproc" >&6; } 1642 1643# So? What about this header? 1644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1645 yes:no: ) 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1647$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1649$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1650 ;; 1651 no:yes:* ) 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1653$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1655$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1657$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1659$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1661$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1662( $as_echo "## ----------------------------------- ## 1663## Report this to gcc-bugs@gcc.gnu.org ## 1664## ----------------------------------- ##" 1665 ) | sed "s/^/$as_me: WARNING: /" >&2 1666 ;; 1667esac 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1669$as_echo_n "checking for $2... " >&6; } 1670if eval \${$3+:} false; then : 1671 $as_echo_n "(cached) " >&6 1672else 1673 eval "$3=\$ac_header_compiler" 1674fi 1675eval ac_res=\$$3 1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1677$as_echo "$ac_res" >&6; } 1678fi 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 1681} # ac_fn_c_check_header_mongrel 1682 1683# ac_fn_c_try_run LINENO 1684# ---------------------- 1685# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1686# that executables *can* be run. 1687ac_fn_c_try_run () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 if { { ac_try="$ac_link" 1691case "(($ac_try" in 1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1693 *) ac_try_echo=$ac_try;; 1694esac 1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1696$as_echo "$ac_try_echo"; } >&5 1697 (eval "$ac_link") 2>&5 1698 ac_status=$? 1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1701 { { case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706$as_echo "$ac_try_echo"; } >&5 1707 (eval "$ac_try") 2>&5 1708 ac_status=$? 1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; }; }; then : 1711 ac_retval=0 1712else 1713 $as_echo "$as_me: program exited with status $ac_status" >&5 1714 $as_echo "$as_me: failed program was:" >&5 1715sed 's/^/| /' conftest.$ac_ext >&5 1716 1717 ac_retval=$ac_status 1718fi 1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 as_fn_set_status $ac_retval 1722 1723} # ac_fn_c_try_run 1724 1725# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1726# ------------------------------------------------------- 1727# Tests whether HEADER exists and can be compiled using the include files in 1728# INCLUDES, setting the cache variable VAR accordingly. 1729ac_fn_c_check_header_compile () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1733$as_echo_n "checking for $2... " >&6; } 1734if eval \${$3+:} false; then : 1735 $as_echo_n "(cached) " >&6 1736else 1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1738/* end confdefs.h. */ 1739$4 1740#include <$2> 1741_ACEOF 1742if ac_fn_c_try_compile "$LINENO"; then : 1743 eval "$3=yes" 1744else 1745 eval "$3=no" 1746fi 1747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1748fi 1749eval ac_res=\$$3 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1751$as_echo "$ac_res" >&6; } 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 1754} # ac_fn_c_check_header_compile 1755 1756# ac_fn_c_try_link LINENO 1757# ----------------------- 1758# Try to link conftest.$ac_ext, and return whether this succeeded. 1759ac_fn_c_try_link () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 rm -f conftest.$ac_objext conftest$ac_exeext 1763 if { { ac_try="$ac_link" 1764case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767esac 1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769$as_echo "$ac_try_echo"; } >&5 1770 (eval "$ac_link") 2>conftest.err 1771 ac_status=$? 1772 if test -s conftest.err; then 1773 grep -v '^ *+' conftest.err >conftest.er1 1774 cat conftest.er1 >&5 1775 mv -f conftest.er1 conftest.err 1776 fi 1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { 1779 test -z "$ac_c_werror_flag" || 1780 test ! -s conftest.err 1781 } && test -s conftest$ac_exeext && { 1782 test "$cross_compiling" = yes || 1783 test -x conftest$ac_exeext 1784 }; then : 1785 ac_retval=0 1786else 1787 $as_echo "$as_me: failed program was:" >&5 1788sed 's/^/| /' conftest.$ac_ext >&5 1789 1790 ac_retval=1 1791fi 1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1794 # interfere with the next link command; also delete a directory that is 1795 # left behind by Apple's compiler. We do this before executing the actions. 1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 as_fn_set_status $ac_retval 1799 1800} # ac_fn_c_try_link 1801 1802# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1803# ------------------------------------------- 1804# Tests whether TYPE exists after having included INCLUDES, setting cache 1805# variable VAR accordingly. 1806ac_fn_c_check_type () 1807{ 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1810$as_echo_n "checking for $2... " >&6; } 1811if eval \${$3+:} false; then : 1812 $as_echo_n "(cached) " >&6 1813else 1814 eval "$3=no" 1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1816/* end confdefs.h. */ 1817$4 1818int 1819main () 1820{ 1821if (sizeof ($2)) 1822 return 0; 1823 ; 1824 return 0; 1825} 1826_ACEOF 1827if ac_fn_c_try_compile "$LINENO"; then : 1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1829/* end confdefs.h. */ 1830$4 1831int 1832main () 1833{ 1834if (sizeof (($2))) 1835 return 0; 1836 ; 1837 return 0; 1838} 1839_ACEOF 1840if ac_fn_c_try_compile "$LINENO"; then : 1841 1842else 1843 eval "$3=yes" 1844fi 1845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1846fi 1847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1848fi 1849eval ac_res=\$$3 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1851$as_echo "$ac_res" >&6; } 1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1853 1854} # ac_fn_c_check_type 1855 1856# ac_fn_c_find_uintX_t LINENO BITS VAR 1857# ------------------------------------ 1858# Finds an unsigned integer type with width BITS, setting cache variable VAR 1859# accordingly. 1860ac_fn_c_find_uintX_t () 1861{ 1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1864$as_echo_n "checking for uint$2_t... " >&6; } 1865if eval \${$3+:} false; then : 1866 $as_echo_n "(cached) " >&6 1867else 1868 eval "$3=no" 1869 # Order is important - never check a type that is potentially smaller 1870 # than half of the expected target width. 1871 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1872 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1874/* end confdefs.h. */ 1875$ac_includes_default 1876int 1877main () 1878{ 1879static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1880test_array [0] = 0; 1881return test_array [0]; 1882 1883 ; 1884 return 0; 1885} 1886_ACEOF 1887if ac_fn_c_try_compile "$LINENO"; then : 1888 case $ac_type in #( 1889 uint$2_t) : 1890 eval "$3=yes" ;; #( 1891 *) : 1892 eval "$3=\$ac_type" ;; 1893esac 1894fi 1895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1896 if eval test \"x\$"$3"\" = x"no"; then : 1897 1898else 1899 break 1900fi 1901 done 1902fi 1903eval ac_res=\$$3 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1905$as_echo "$ac_res" >&6; } 1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1907 1908} # ac_fn_c_find_uintX_t 1909 1910# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1911# -------------------------------------------- 1912# Tries to find the compile-time value of EXPR in a program that includes 1913# INCLUDES, setting VAR accordingly. Returns whether the value could be 1914# computed 1915ac_fn_c_compute_int () 1916{ 1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1918 if test "$cross_compiling" = yes; then 1919 # Depending upon the size, compute the lo and hi bounds. 1920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1921/* end confdefs.h. */ 1922$4 1923int 1924main () 1925{ 1926static int test_array [1 - 2 * !(($2) >= 0)]; 1927test_array [0] = 0; 1928return test_array [0]; 1929 1930 ; 1931 return 0; 1932} 1933_ACEOF 1934if ac_fn_c_try_compile "$LINENO"; then : 1935 ac_lo=0 ac_mid=0 1936 while :; do 1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1938/* end confdefs.h. */ 1939$4 1940int 1941main () 1942{ 1943static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1944test_array [0] = 0; 1945return test_array [0]; 1946 1947 ; 1948 return 0; 1949} 1950_ACEOF 1951if ac_fn_c_try_compile "$LINENO"; then : 1952 ac_hi=$ac_mid; break 1953else 1954 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1955 if test $ac_lo -le $ac_mid; then 1956 ac_lo= ac_hi= 1957 break 1958 fi 1959 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1960fi 1961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1962 done 1963else 1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1965/* end confdefs.h. */ 1966$4 1967int 1968main () 1969{ 1970static int test_array [1 - 2 * !(($2) < 0)]; 1971test_array [0] = 0; 1972return test_array [0]; 1973 1974 ; 1975 return 0; 1976} 1977_ACEOF 1978if ac_fn_c_try_compile "$LINENO"; then : 1979 ac_hi=-1 ac_mid=-1 1980 while :; do 1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1982/* end confdefs.h. */ 1983$4 1984int 1985main () 1986{ 1987static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1988test_array [0] = 0; 1989return test_array [0]; 1990 1991 ; 1992 return 0; 1993} 1994_ACEOF 1995if ac_fn_c_try_compile "$LINENO"; then : 1996 ac_lo=$ac_mid; break 1997else 1998 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1999 if test $ac_mid -le $ac_hi; then 2000 ac_lo= ac_hi= 2001 break 2002 fi 2003 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2004fi 2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2006 done 2007else 2008 ac_lo= ac_hi= 2009fi 2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2011fi 2012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2013# Binary search between lo and hi bounds. 2014while test "x$ac_lo" != "x$ac_hi"; do 2015 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2017/* end confdefs.h. */ 2018$4 2019int 2020main () 2021{ 2022static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2023test_array [0] = 0; 2024return test_array [0]; 2025 2026 ; 2027 return 0; 2028} 2029_ACEOF 2030if ac_fn_c_try_compile "$LINENO"; then : 2031 ac_hi=$ac_mid 2032else 2033 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2034fi 2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2036done 2037case $ac_lo in #(( 2038?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2039'') ac_retval=1 ;; 2040esac 2041 else 2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2043/* end confdefs.h. */ 2044$4 2045static long int longval () { return $2; } 2046static unsigned long int ulongval () { return $2; } 2047#include <stdio.h> 2048#include <stdlib.h> 2049int 2050main () 2051{ 2052 2053 FILE *f = fopen ("conftest.val", "w"); 2054 if (! f) 2055 return 1; 2056 if (($2) < 0) 2057 { 2058 long int i = longval (); 2059 if (i != ($2)) 2060 return 1; 2061 fprintf (f, "%ld", i); 2062 } 2063 else 2064 { 2065 unsigned long int i = ulongval (); 2066 if (i != ($2)) 2067 return 1; 2068 fprintf (f, "%lu", i); 2069 } 2070 /* Do not output a trailing newline, as this causes \r\n confusion 2071 on some platforms. */ 2072 return ferror (f) || fclose (f) != 0; 2073 2074 ; 2075 return 0; 2076} 2077_ACEOF 2078if ac_fn_c_try_run "$LINENO"; then : 2079 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2080else 2081 ac_retval=1 2082fi 2083rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2084 conftest.$ac_objext conftest.beam conftest.$ac_ext 2085rm -f conftest.val 2086 2087 fi 2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2089 as_fn_set_status $ac_retval 2090 2091} # ac_fn_c_compute_int 2092 2093# ac_fn_c_check_func LINENO FUNC VAR 2094# ---------------------------------- 2095# Tests whether FUNC exists, setting the cache variable VAR accordingly 2096ac_fn_c_check_func () 2097{ 2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2100$as_echo_n "checking for $2... " >&6; } 2101if eval \${$3+:} false; then : 2102 $as_echo_n "(cached) " >&6 2103else 2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2105/* end confdefs.h. */ 2106/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2107 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2108#define $2 innocuous_$2 2109 2110/* System header to define __stub macros and hopefully few prototypes, 2111 which can conflict with char $2 (); below. 2112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2113 <limits.h> exists even on freestanding compilers. */ 2114 2115#ifdef __STDC__ 2116# include <limits.h> 2117#else 2118# include <assert.h> 2119#endif 2120 2121#undef $2 2122 2123/* Override any GCC internal prototype to avoid an error. 2124 Use char because int might match the return type of a GCC 2125 builtin and then its argument prototype would still apply. */ 2126#ifdef __cplusplus 2127extern "C" 2128#endif 2129char $2 (); 2130/* The GNU C library defines this for functions which it implements 2131 to always fail with ENOSYS. Some functions are actually named 2132 something starting with __ and the normal name is an alias. */ 2133#if defined __stub_$2 || defined __stub___$2 2134choke me 2135#endif 2136 2137int 2138main () 2139{ 2140return $2 (); 2141 ; 2142 return 0; 2143} 2144_ACEOF 2145if ac_fn_c_try_link "$LINENO"; then : 2146 eval "$3=yes" 2147else 2148 eval "$3=no" 2149fi 2150rm -f core conftest.err conftest.$ac_objext \ 2151 conftest$ac_exeext conftest.$ac_ext 2152fi 2153eval ac_res=\$$3 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2155$as_echo "$ac_res" >&6; } 2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2157 2158} # ac_fn_c_check_func 2159 2160# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2161# --------------------------------------------- 2162# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2163# accordingly. 2164ac_fn_c_check_decl () 2165{ 2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2167 as_decl_name=`echo $2|sed 's/ *(.*//'` 2168 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2170$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2171if eval \${$3+:} false; then : 2172 $as_echo_n "(cached) " >&6 2173else 2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2175/* end confdefs.h. */ 2176$4 2177int 2178main () 2179{ 2180#ifndef $as_decl_name 2181#ifdef __cplusplus 2182 (void) $as_decl_use; 2183#else 2184 (void) $as_decl_name; 2185#endif 2186#endif 2187 2188 ; 2189 return 0; 2190} 2191_ACEOF 2192if ac_fn_c_try_compile "$LINENO"; then : 2193 eval "$3=yes" 2194else 2195 eval "$3=no" 2196fi 2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2198fi 2199eval ac_res=\$$3 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2201$as_echo "$ac_res" >&6; } 2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2203 2204} # ac_fn_c_check_decl 2205 2206# ac_fn_cxx_try_link LINENO 2207# ------------------------- 2208# Try to link conftest.$ac_ext, and return whether this succeeded. 2209ac_fn_cxx_try_link () 2210{ 2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2212 rm -f conftest.$ac_objext conftest$ac_exeext 2213 if { { ac_try="$ac_link" 2214case "(($ac_try" in 2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2216 *) ac_try_echo=$ac_try;; 2217esac 2218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2219$as_echo "$ac_try_echo"; } >&5 2220 (eval "$ac_link") 2>conftest.err 2221 ac_status=$? 2222 if test -s conftest.err; then 2223 grep -v '^ *+' conftest.err >conftest.er1 2224 cat conftest.er1 >&5 2225 mv -f conftest.er1 conftest.err 2226 fi 2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2228 test $ac_status = 0; } && { 2229 test -z "$ac_cxx_werror_flag" || 2230 test ! -s conftest.err 2231 } && test -s conftest$ac_exeext && { 2232 test "$cross_compiling" = yes || 2233 test -x conftest$ac_exeext 2234 }; then : 2235 ac_retval=0 2236else 2237 $as_echo "$as_me: failed program was:" >&5 2238sed 's/^/| /' conftest.$ac_ext >&5 2239 2240 ac_retval=1 2241fi 2242 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2243 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2244 # interfere with the next link command; also delete a directory that is 2245 # left behind by Apple's compiler. We do this before executing the actions. 2246 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2248 as_fn_set_status $ac_retval 2249 2250} # ac_fn_cxx_try_link 2251cat >config.log <<_ACEOF 2252This file contains any messages produced by compilers while 2253running configure, to aid debugging if configure makes a mistake. 2254 2255It was created by cpplib $as_me , which was 2256generated by GNU Autoconf 2.69. Invocation command line was 2257 2258 $ $0 $@ 2259 2260_ACEOF 2261exec 5>>config.log 2262{ 2263cat <<_ASUNAME 2264## --------- ## 2265## Platform. ## 2266## --------- ## 2267 2268hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2269uname -m = `(uname -m) 2>/dev/null || echo unknown` 2270uname -r = `(uname -r) 2>/dev/null || echo unknown` 2271uname -s = `(uname -s) 2>/dev/null || echo unknown` 2272uname -v = `(uname -v) 2>/dev/null || echo unknown` 2273 2274/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2275/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2276 2277/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2278/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2279/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2280/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2281/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2282/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2283/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2284 2285_ASUNAME 2286 2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2288for as_dir in $PATH 2289do 2290 IFS=$as_save_IFS 2291 test -z "$as_dir" && as_dir=. 2292 $as_echo "PATH: $as_dir" 2293 done 2294IFS=$as_save_IFS 2295 2296} >&5 2297 2298cat >&5 <<_ACEOF 2299 2300 2301## ----------- ## 2302## Core tests. ## 2303## ----------- ## 2304 2305_ACEOF 2306 2307 2308# Keep a trace of the command line. 2309# Strip out --no-create and --no-recursion so they do not pile up. 2310# Strip out --silent because we don't want to record it for future runs. 2311# Also quote any args containing shell meta-characters. 2312# Make two passes to allow for proper duplicate-argument suppression. 2313ac_configure_args= 2314ac_configure_args0= 2315ac_configure_args1= 2316ac_must_keep_next=false 2317for ac_pass in 1 2 2318do 2319 for ac_arg 2320 do 2321 case $ac_arg in 2322 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2324 | -silent | --silent | --silen | --sile | --sil) 2325 continue ;; 2326 *\'*) 2327 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2328 esac 2329 case $ac_pass in 2330 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2331 2) 2332 as_fn_append ac_configure_args1 " '$ac_arg'" 2333 if test $ac_must_keep_next = true; then 2334 ac_must_keep_next=false # Got value, back to normal. 2335 else 2336 case $ac_arg in 2337 *=* | --config-cache | -C | -disable-* | --disable-* \ 2338 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2339 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2340 | -with-* | --with-* | -without-* | --without-* | --x) 2341 case "$ac_configure_args0 " in 2342 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2343 esac 2344 ;; 2345 -* ) ac_must_keep_next=true ;; 2346 esac 2347 fi 2348 as_fn_append ac_configure_args " '$ac_arg'" 2349 ;; 2350 esac 2351 done 2352done 2353{ ac_configure_args0=; unset ac_configure_args0;} 2354{ ac_configure_args1=; unset ac_configure_args1;} 2355 2356# When interrupted or exit'd, cleanup temporary files, and complete 2357# config.log. We remove comments because anyway the quotes in there 2358# would cause problems or look ugly. 2359# WARNING: Use '\'' to represent an apostrophe within the trap. 2360# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2361trap 'exit_status=$? 2362 # Save into config.log some information that might help in debugging. 2363 { 2364 echo 2365 2366 $as_echo "## ---------------- ## 2367## Cache variables. ## 2368## ---------------- ##" 2369 echo 2370 # The following way of writing the cache mishandles newlines in values, 2371( 2372 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2373 eval ac_val=\$$ac_var 2374 case $ac_val in #( 2375 *${as_nl}*) 2376 case $ac_var in #( 2377 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2378$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2379 esac 2380 case $ac_var in #( 2381 _ | IFS | as_nl) ;; #( 2382 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2383 *) { eval $ac_var=; unset $ac_var;} ;; 2384 esac ;; 2385 esac 2386 done 2387 (set) 2>&1 | 2388 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2389 *${as_nl}ac_space=\ *) 2390 sed -n \ 2391 "s/'\''/'\''\\\\'\'''\''/g; 2392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2393 ;; #( 2394 *) 2395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2396 ;; 2397 esac | 2398 sort 2399) 2400 echo 2401 2402 $as_echo "## ----------------- ## 2403## Output variables. ## 2404## ----------------- ##" 2405 echo 2406 for ac_var in $ac_subst_vars 2407 do 2408 eval ac_val=\$$ac_var 2409 case $ac_val in 2410 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2411 esac 2412 $as_echo "$ac_var='\''$ac_val'\''" 2413 done | sort 2414 echo 2415 2416 if test -n "$ac_subst_files"; then 2417 $as_echo "## ------------------- ## 2418## File substitutions. ## 2419## ------------------- ##" 2420 echo 2421 for ac_var in $ac_subst_files 2422 do 2423 eval ac_val=\$$ac_var 2424 case $ac_val in 2425 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2426 esac 2427 $as_echo "$ac_var='\''$ac_val'\''" 2428 done | sort 2429 echo 2430 fi 2431 2432 if test -s confdefs.h; then 2433 $as_echo "## ----------- ## 2434## confdefs.h. ## 2435## ----------- ##" 2436 echo 2437 cat confdefs.h 2438 echo 2439 fi 2440 test "$ac_signal" != 0 && 2441 $as_echo "$as_me: caught signal $ac_signal" 2442 $as_echo "$as_me: exit $exit_status" 2443 } >&5 2444 rm -f core *.core core.conftest.* && 2445 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2446 exit $exit_status 2447' 0 2448for ac_signal in 1 2 13 15; do 2449 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2450done 2451ac_signal=0 2452 2453# confdefs.h avoids OS command line length limits that DEFS can exceed. 2454rm -f -r conftest* confdefs.h 2455 2456$as_echo "/* confdefs.h */" > confdefs.h 2457 2458# Predefined preprocessor variables. 2459 2460cat >>confdefs.h <<_ACEOF 2461#define PACKAGE_NAME "$PACKAGE_NAME" 2462_ACEOF 2463 2464cat >>confdefs.h <<_ACEOF 2465#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2466_ACEOF 2467 2468cat >>confdefs.h <<_ACEOF 2469#define PACKAGE_VERSION "$PACKAGE_VERSION" 2470_ACEOF 2471 2472cat >>confdefs.h <<_ACEOF 2473#define PACKAGE_STRING "$PACKAGE_STRING" 2474_ACEOF 2475 2476cat >>confdefs.h <<_ACEOF 2477#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2478_ACEOF 2479 2480cat >>confdefs.h <<_ACEOF 2481#define PACKAGE_URL "$PACKAGE_URL" 2482_ACEOF 2483 2484 2485# Let the site file select an alternate cache file if it wants to. 2486# Prefer an explicitly selected file to automatically selected ones. 2487ac_site_file1=NONE 2488ac_site_file2=NONE 2489if test -n "$CONFIG_SITE"; then 2490 # We do not want a PATH search for config.site. 2491 case $CONFIG_SITE in #(( 2492 -*) ac_site_file1=./$CONFIG_SITE;; 2493 */*) ac_site_file1=$CONFIG_SITE;; 2494 *) ac_site_file1=./$CONFIG_SITE;; 2495 esac 2496elif test "x$prefix" != xNONE; then 2497 ac_site_file1=$prefix/share/config.site 2498 ac_site_file2=$prefix/etc/config.site 2499else 2500 ac_site_file1=$ac_default_prefix/share/config.site 2501 ac_site_file2=$ac_default_prefix/etc/config.site 2502fi 2503for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2504do 2505 test "x$ac_site_file" = xNONE && continue 2506 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2508$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2509 sed 's/^/| /' "$ac_site_file" >&5 2510 . "$ac_site_file" \ 2511 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2513as_fn_error $? "failed to load site script $ac_site_file 2514See \`config.log' for more details" "$LINENO" 5; } 2515 fi 2516done 2517 2518if test -r "$cache_file"; then 2519 # Some versions of bash will fail to source /dev/null (special files 2520 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2521 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2523$as_echo "$as_me: loading cache $cache_file" >&6;} 2524 case $cache_file in 2525 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2526 *) . "./$cache_file";; 2527 esac 2528 fi 2529else 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2531$as_echo "$as_me: creating cache $cache_file" >&6;} 2532 >$cache_file 2533fi 2534 2535# Check that the precious variables saved in the cache have kept the same 2536# value. 2537ac_cache_corrupted=false 2538for ac_var in $ac_precious_vars; do 2539 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2540 eval ac_new_set=\$ac_env_${ac_var}_set 2541 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2542 eval ac_new_val=\$ac_env_${ac_var}_value 2543 case $ac_old_set,$ac_new_set in 2544 set,) 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2546$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2547 ac_cache_corrupted=: ;; 2548 ,set) 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2550$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2551 ac_cache_corrupted=: ;; 2552 ,);; 2553 *) 2554 if test "x$ac_old_val" != "x$ac_new_val"; then 2555 # differences in whitespace do not lead to failure. 2556 ac_old_val_w=`echo x $ac_old_val` 2557 ac_new_val_w=`echo x $ac_new_val` 2558 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2560$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2561 ac_cache_corrupted=: 2562 else 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2564$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2565 eval $ac_var=\$ac_old_val 2566 fi 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2568$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2570$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2571 fi;; 2572 esac 2573 # Pass precious variables to config.status. 2574 if test "$ac_new_set" = set; then 2575 case $ac_new_val in 2576 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2577 *) ac_arg=$ac_var=$ac_new_val ;; 2578 esac 2579 case " $ac_configure_args " in 2580 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2581 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2582 esac 2583 fi 2584done 2585if $ac_cache_corrupted; then 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2589$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2590 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2591fi 2592## -------------------- ## 2593## Main body of script. ## 2594## -------------------- ## 2595 2596ac_ext=c 2597ac_cpp='$CPP $CPPFLAGS' 2598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2600ac_compiler_gnu=$ac_cv_c_compiler_gnu 2601 2602 2603 2604 2605ac_aux_dir= 2606for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2607 if test -f "$ac_dir/install-sh"; then 2608 ac_aux_dir=$ac_dir 2609 ac_install_sh="$ac_aux_dir/install-sh -c" 2610 break 2611 elif test -f "$ac_dir/install.sh"; then 2612 ac_aux_dir=$ac_dir 2613 ac_install_sh="$ac_aux_dir/install.sh -c" 2614 break 2615 elif test -f "$ac_dir/shtool"; then 2616 ac_aux_dir=$ac_dir 2617 ac_install_sh="$ac_aux_dir/shtool install -c" 2618 break 2619 fi 2620done 2621if test -z "$ac_aux_dir"; then 2622 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2623fi 2624 2625# These three variables are undocumented and unsupported, 2626# and are intended to be withdrawn in a future Autoconf release. 2627# They can cause serious problems if a builder's source tree is in a directory 2628# whose full name contains unusual characters. 2629ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2630ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2631ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2632 2633 2634# Make sure we can run config.sub. 2635$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2636 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2637 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2639$as_echo_n "checking build system type... " >&6; } 2640if ${ac_cv_build+:} false; then : 2641 $as_echo_n "(cached) " >&6 2642else 2643 ac_build_alias=$build_alias 2644test "x$ac_build_alias" = x && 2645 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2646test "x$ac_build_alias" = x && 2647 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2648ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2649 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2650 2651fi 2652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2653$as_echo "$ac_cv_build" >&6; } 2654case $ac_cv_build in 2655*-*-*) ;; 2656*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2657esac 2658build=$ac_cv_build 2659ac_save_IFS=$IFS; IFS='-' 2660set x $ac_cv_build 2661shift 2662build_cpu=$1 2663build_vendor=$2 2664shift; shift 2665# Remember, the first character of IFS is used to create $*, 2666# except with old shells: 2667build_os=$* 2668IFS=$ac_save_IFS 2669case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2670 2671 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2673$as_echo_n "checking host system type... " >&6; } 2674if ${ac_cv_host+:} false; then : 2675 $as_echo_n "(cached) " >&6 2676else 2677 if test "x$host_alias" = x; then 2678 ac_cv_host=$ac_cv_build 2679else 2680 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2681 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2682fi 2683 2684fi 2685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2686$as_echo "$ac_cv_host" >&6; } 2687case $ac_cv_host in 2688*-*-*) ;; 2689*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2690esac 2691host=$ac_cv_host 2692ac_save_IFS=$IFS; IFS='-' 2693set x $ac_cv_host 2694shift 2695host_cpu=$1 2696host_vendor=$2 2697shift; shift 2698# Remember, the first character of IFS is used to create $*, 2699# except with old shells: 2700host_os=$* 2701IFS=$ac_save_IFS 2702case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2703 2704 2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2706$as_echo_n "checking target system type... " >&6; } 2707if ${ac_cv_target+:} false; then : 2708 $as_echo_n "(cached) " >&6 2709else 2710 if test "x$target_alias" = x; then 2711 ac_cv_target=$ac_cv_host 2712else 2713 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2714 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2715fi 2716 2717fi 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2719$as_echo "$ac_cv_target" >&6; } 2720case $ac_cv_target in 2721*-*-*) ;; 2722*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2723esac 2724target=$ac_cv_target 2725ac_save_IFS=$IFS; IFS='-' 2726set x $ac_cv_target 2727shift 2728target_cpu=$1 2729target_vendor=$2 2730shift; shift 2731# Remember, the first character of IFS is used to create $*, 2732# except with old shells: 2733target_os=$* 2734IFS=$ac_save_IFS 2735case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2736 2737 2738# The aliases save the names the user supplied, while $host etc. 2739# will get canonicalized. 2740test -n "$target_alias" && 2741 test "$program_prefix$program_suffix$program_transform_name" = \ 2742 NONENONEs,x,x, && 2743 program_prefix=${target_alias}- 2744 2745 2746# Checks for programs. 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2748$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2749set x ${MAKE-make} 2750ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2751if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2752 $as_echo_n "(cached) " >&6 2753else 2754 cat >conftest.make <<\_ACEOF 2755SHELL = /bin/sh 2756all: 2757 @echo '@@@%%%=$(MAKE)=@@@%%%' 2758_ACEOF 2759# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2760case `${MAKE-make} -f conftest.make 2>/dev/null` in 2761 *@@@%%%=?*=@@@%%%*) 2762 eval ac_cv_prog_make_${ac_make}_set=yes;; 2763 *) 2764 eval ac_cv_prog_make_${ac_make}_set=no;; 2765esac 2766rm -f conftest.make 2767fi 2768if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2770$as_echo "yes" >&6; } 2771 SET_MAKE= 2772else 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2774$as_echo "no" >&6; } 2775 SET_MAKE="MAKE=${MAKE-make}" 2776fi 2777 2778# Find a good install program. We prefer a C program (faster), 2779# so one script is as good as another. But avoid the broken or 2780# incompatible versions: 2781# SysV /etc/install, /usr/sbin/install 2782# SunOS /usr/etc/install 2783# IRIX /sbin/install 2784# AIX /bin/install 2785# AmigaOS /C/install, which installs bootblocks on floppy discs 2786# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2787# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2788# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2789# OS/2's system install, which has a completely different semantic 2790# ./install, which can be erroneously created by make from ./install.sh. 2791# Reject install programs that cannot install multiple files. 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2793$as_echo_n "checking for a BSD-compatible install... " >&6; } 2794if test -z "$INSTALL"; then 2795if ${ac_cv_path_install+:} false; then : 2796 $as_echo_n "(cached) " >&6 2797else 2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2799for as_dir in $PATH 2800do 2801 IFS=$as_save_IFS 2802 test -z "$as_dir" && as_dir=. 2803 # Account for people who put trailing slashes in PATH elements. 2804case $as_dir/ in #(( 2805 ./ | .// | /[cC]/* | \ 2806 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2807 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2808 /usr/ucb/* ) ;; 2809 *) 2810 # OSF1 and SCO ODT 3.0 have their own names for install. 2811 # Don't use installbsd from OSF since it installs stuff as root 2812 # by default. 2813 for ac_prog in ginstall scoinst install; do 2814 for ac_exec_ext in '' $ac_executable_extensions; do 2815 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2816 if test $ac_prog = install && 2817 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2818 # AIX install. It has an incompatible calling convention. 2819 : 2820 elif test $ac_prog = install && 2821 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2822 # program-specific install script used by HP pwplus--don't use. 2823 : 2824 else 2825 rm -rf conftest.one conftest.two conftest.dir 2826 echo one > conftest.one 2827 echo two > conftest.two 2828 mkdir conftest.dir 2829 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2830 test -s conftest.one && test -s conftest.two && 2831 test -s conftest.dir/conftest.one && 2832 test -s conftest.dir/conftest.two 2833 then 2834 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2835 break 3 2836 fi 2837 fi 2838 fi 2839 done 2840 done 2841 ;; 2842esac 2843 2844 done 2845IFS=$as_save_IFS 2846 2847rm -rf conftest.one conftest.two conftest.dir 2848 2849fi 2850 if test "${ac_cv_path_install+set}" = set; then 2851 INSTALL=$ac_cv_path_install 2852 else 2853 # As a last resort, use the slow shell script. Don't cache a 2854 # value for INSTALL within a source directory, because that will 2855 # break other packages using the cache if that directory is 2856 # removed, or if the value is a relative name. 2857 INSTALL=$ac_install_sh 2858 fi 2859fi 2860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2861$as_echo "$INSTALL" >&6; } 2862 2863# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2864# It thinks the first close brace ends the variable substitution. 2865test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2866 2867test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2868 2869test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2870 2871ac_ext=c 2872ac_cpp='$CPP $CPPFLAGS' 2873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2875ac_compiler_gnu=$ac_cv_c_compiler_gnu 2876if test -n "$ac_tool_prefix"; then 2877 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2878set dummy ${ac_tool_prefix}gcc; ac_word=$2 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2880$as_echo_n "checking for $ac_word... " >&6; } 2881if ${ac_cv_prog_CC+:} false; then : 2882 $as_echo_n "(cached) " >&6 2883else 2884 if test -n "$CC"; then 2885 ac_cv_prog_CC="$CC" # Let the user override the test. 2886else 2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2888for as_dir in $PATH 2889do 2890 IFS=$as_save_IFS 2891 test -z "$as_dir" && as_dir=. 2892 for ac_exec_ext in '' $ac_executable_extensions; do 2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2894 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2896 break 2 2897 fi 2898done 2899 done 2900IFS=$as_save_IFS 2901 2902fi 2903fi 2904CC=$ac_cv_prog_CC 2905if test -n "$CC"; then 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2907$as_echo "$CC" >&6; } 2908else 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2910$as_echo "no" >&6; } 2911fi 2912 2913 2914fi 2915if test -z "$ac_cv_prog_CC"; then 2916 ac_ct_CC=$CC 2917 # Extract the first word of "gcc", so it can be a program name with args. 2918set dummy gcc; ac_word=$2 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2920$as_echo_n "checking for $ac_word... " >&6; } 2921if ${ac_cv_prog_ac_ct_CC+:} false; then : 2922 $as_echo_n "(cached) " >&6 2923else 2924 if test -n "$ac_ct_CC"; then 2925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2926else 2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2928for as_dir in $PATH 2929do 2930 IFS=$as_save_IFS 2931 test -z "$as_dir" && as_dir=. 2932 for ac_exec_ext in '' $ac_executable_extensions; do 2933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2934 ac_cv_prog_ac_ct_CC="gcc" 2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2936 break 2 2937 fi 2938done 2939 done 2940IFS=$as_save_IFS 2941 2942fi 2943fi 2944ac_ct_CC=$ac_cv_prog_ac_ct_CC 2945if test -n "$ac_ct_CC"; then 2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2947$as_echo "$ac_ct_CC" >&6; } 2948else 2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2950$as_echo "no" >&6; } 2951fi 2952 2953 if test "x$ac_ct_CC" = x; then 2954 CC="" 2955 else 2956 case $cross_compiling:$ac_tool_warned in 2957yes:) 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2960ac_tool_warned=yes ;; 2961esac 2962 CC=$ac_ct_CC 2963 fi 2964else 2965 CC="$ac_cv_prog_CC" 2966fi 2967 2968if test -z "$CC"; then 2969 if test -n "$ac_tool_prefix"; then 2970 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2971set dummy ${ac_tool_prefix}cc; ac_word=$2 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2973$as_echo_n "checking for $ac_word... " >&6; } 2974if ${ac_cv_prog_CC+:} false; then : 2975 $as_echo_n "(cached) " >&6 2976else 2977 if test -n "$CC"; then 2978 ac_cv_prog_CC="$CC" # Let the user override the test. 2979else 2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2981for as_dir in $PATH 2982do 2983 IFS=$as_save_IFS 2984 test -z "$as_dir" && as_dir=. 2985 for ac_exec_ext in '' $ac_executable_extensions; do 2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2987 ac_cv_prog_CC="${ac_tool_prefix}cc" 2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2989 break 2 2990 fi 2991done 2992 done 2993IFS=$as_save_IFS 2994 2995fi 2996fi 2997CC=$ac_cv_prog_CC 2998if test -n "$CC"; then 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3000$as_echo "$CC" >&6; } 3001else 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3003$as_echo "no" >&6; } 3004fi 3005 3006 3007 fi 3008fi 3009if test -z "$CC"; then 3010 # Extract the first word of "cc", so it can be a program name with args. 3011set dummy cc; ac_word=$2 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3013$as_echo_n "checking for $ac_word... " >&6; } 3014if ${ac_cv_prog_CC+:} false; then : 3015 $as_echo_n "(cached) " >&6 3016else 3017 if test -n "$CC"; then 3018 ac_cv_prog_CC="$CC" # Let the user override the test. 3019else 3020 ac_prog_rejected=no 3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3022for as_dir in $PATH 3023do 3024 IFS=$as_save_IFS 3025 test -z "$as_dir" && as_dir=. 3026 for ac_exec_ext in '' $ac_executable_extensions; do 3027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3028 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3029 ac_prog_rejected=yes 3030 continue 3031 fi 3032 ac_cv_prog_CC="cc" 3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3034 break 2 3035 fi 3036done 3037 done 3038IFS=$as_save_IFS 3039 3040if test $ac_prog_rejected = yes; then 3041 # We found a bogon in the path, so make sure we never use it. 3042 set dummy $ac_cv_prog_CC 3043 shift 3044 if test $# != 0; then 3045 # We chose a different compiler from the bogus one. 3046 # However, it has the same basename, so the bogon will be chosen 3047 # first if we set CC to just the basename; use the full file name. 3048 shift 3049 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3050 fi 3051fi 3052fi 3053fi 3054CC=$ac_cv_prog_CC 3055if test -n "$CC"; then 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3057$as_echo "$CC" >&6; } 3058else 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3060$as_echo "no" >&6; } 3061fi 3062 3063 3064fi 3065if test -z "$CC"; then 3066 if test -n "$ac_tool_prefix"; then 3067 for ac_prog in cl.exe 3068 do 3069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3070set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3072$as_echo_n "checking for $ac_word... " >&6; } 3073if ${ac_cv_prog_CC+:} false; then : 3074 $as_echo_n "(cached) " >&6 3075else 3076 if test -n "$CC"; then 3077 ac_cv_prog_CC="$CC" # Let the user override the test. 3078else 3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3080for as_dir in $PATH 3081do 3082 IFS=$as_save_IFS 3083 test -z "$as_dir" && as_dir=. 3084 for ac_exec_ext in '' $ac_executable_extensions; do 3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3086 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3088 break 2 3089 fi 3090done 3091 done 3092IFS=$as_save_IFS 3093 3094fi 3095fi 3096CC=$ac_cv_prog_CC 3097if test -n "$CC"; then 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3099$as_echo "$CC" >&6; } 3100else 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102$as_echo "no" >&6; } 3103fi 3104 3105 3106 test -n "$CC" && break 3107 done 3108fi 3109if test -z "$CC"; then 3110 ac_ct_CC=$CC 3111 for ac_prog in cl.exe 3112do 3113 # Extract the first word of "$ac_prog", so it can be a program name with args. 3114set dummy $ac_prog; ac_word=$2 3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3116$as_echo_n "checking for $ac_word... " >&6; } 3117if ${ac_cv_prog_ac_ct_CC+:} false; then : 3118 $as_echo_n "(cached) " >&6 3119else 3120 if test -n "$ac_ct_CC"; then 3121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3122else 3123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3124for as_dir in $PATH 3125do 3126 IFS=$as_save_IFS 3127 test -z "$as_dir" && as_dir=. 3128 for ac_exec_ext in '' $ac_executable_extensions; do 3129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3130 ac_cv_prog_ac_ct_CC="$ac_prog" 3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3132 break 2 3133 fi 3134done 3135 done 3136IFS=$as_save_IFS 3137 3138fi 3139fi 3140ac_ct_CC=$ac_cv_prog_ac_ct_CC 3141if test -n "$ac_ct_CC"; then 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3143$as_echo "$ac_ct_CC" >&6; } 3144else 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3146$as_echo "no" >&6; } 3147fi 3148 3149 3150 test -n "$ac_ct_CC" && break 3151done 3152 3153 if test "x$ac_ct_CC" = x; then 3154 CC="" 3155 else 3156 case $cross_compiling:$ac_tool_warned in 3157yes:) 3158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3160ac_tool_warned=yes ;; 3161esac 3162 CC=$ac_ct_CC 3163 fi 3164fi 3165 3166fi 3167 3168 3169test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3171as_fn_error $? "no acceptable C compiler found in \$PATH 3172See \`config.log' for more details" "$LINENO" 5; } 3173 3174# Provide some information about the compiler. 3175$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3176set X $ac_compile 3177ac_compiler=$2 3178for ac_option in --version -v -V -qversion; do 3179 { { ac_try="$ac_compiler $ac_option >&5" 3180case "(($ac_try" in 3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3182 *) ac_try_echo=$ac_try;; 3183esac 3184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3185$as_echo "$ac_try_echo"; } >&5 3186 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3187 ac_status=$? 3188 if test -s conftest.err; then 3189 sed '10a\ 3190... rest of stderr output deleted ... 3191 10q' conftest.err >conftest.er1 3192 cat conftest.er1 >&5 3193 fi 3194 rm -f conftest.er1 conftest.err 3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3196 test $ac_status = 0; } 3197done 3198 3199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3200/* end confdefs.h. */ 3201 3202int 3203main () 3204{ 3205 3206 ; 3207 return 0; 3208} 3209_ACEOF 3210ac_clean_files_save=$ac_clean_files 3211ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3212# Try to create an executable without -o first, disregard a.out. 3213# It will help us diagnose broken compilers, and finding out an intuition 3214# of exeext. 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3216$as_echo_n "checking whether the C compiler works... " >&6; } 3217ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3218 3219# The possible output files: 3220ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3221 3222ac_rmfiles= 3223for ac_file in $ac_files 3224do 3225 case $ac_file in 3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3227 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3228 esac 3229done 3230rm -f $ac_rmfiles 3231 3232if { { ac_try="$ac_link_default" 3233case "(($ac_try" in 3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3235 *) ac_try_echo=$ac_try;; 3236esac 3237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3238$as_echo "$ac_try_echo"; } >&5 3239 (eval "$ac_link_default") 2>&5 3240 ac_status=$? 3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3242 test $ac_status = 0; }; then : 3243 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3244# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3245# in a Makefile. We should not override ac_cv_exeext if it was cached, 3246# so that the user can short-circuit this test for compilers unknown to 3247# Autoconf. 3248for ac_file in $ac_files '' 3249do 3250 test -f "$ac_file" || continue 3251 case $ac_file in 3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3253 ;; 3254 [ab].out ) 3255 # We found the default executable, but exeext='' is most 3256 # certainly right. 3257 break;; 3258 *.* ) 3259 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3260 then :; else 3261 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3262 fi 3263 # We set ac_cv_exeext here because the later test for it is not 3264 # safe: cross compilers may not add the suffix if given an `-o' 3265 # argument, so we may need to know it at that point already. 3266 # Even if this section looks crufty: it has the advantage of 3267 # actually working. 3268 break;; 3269 * ) 3270 break;; 3271 esac 3272done 3273test "$ac_cv_exeext" = no && ac_cv_exeext= 3274 3275else 3276 ac_file='' 3277fi 3278if test -z "$ac_file"; then : 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3280$as_echo "no" >&6; } 3281$as_echo "$as_me: failed program was:" >&5 3282sed 's/^/| /' conftest.$ac_ext >&5 3283 3284{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3286as_fn_error 77 "C compiler cannot create executables 3287See \`config.log' for more details" "$LINENO" 5; } 3288else 3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3290$as_echo "yes" >&6; } 3291fi 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3293$as_echo_n "checking for C compiler default output file name... " >&6; } 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3295$as_echo "$ac_file" >&6; } 3296ac_exeext=$ac_cv_exeext 3297 3298rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3299ac_clean_files=$ac_clean_files_save 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3301$as_echo_n "checking for suffix of executables... " >&6; } 3302if { { ac_try="$ac_link" 3303case "(($ac_try" in 3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3305 *) ac_try_echo=$ac_try;; 3306esac 3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3308$as_echo "$ac_try_echo"; } >&5 3309 (eval "$ac_link") 2>&5 3310 ac_status=$? 3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3312 test $ac_status = 0; }; then : 3313 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3314# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3315# work properly (i.e., refer to `conftest.exe'), while it won't with 3316# `rm'. 3317for ac_file in conftest.exe conftest conftest.*; do 3318 test -f "$ac_file" || continue 3319 case $ac_file in 3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3322 break;; 3323 * ) break;; 3324 esac 3325done 3326else 3327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3329as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3330See \`config.log' for more details" "$LINENO" 5; } 3331fi 3332rm -f conftest conftest$ac_cv_exeext 3333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3334$as_echo "$ac_cv_exeext" >&6; } 3335 3336rm -f conftest.$ac_ext 3337EXEEXT=$ac_cv_exeext 3338ac_exeext=$EXEEXT 3339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3340/* end confdefs.h. */ 3341#include <stdio.h> 3342int 3343main () 3344{ 3345FILE *f = fopen ("conftest.out", "w"); 3346 return ferror (f) || fclose (f) != 0; 3347 3348 ; 3349 return 0; 3350} 3351_ACEOF 3352ac_clean_files="$ac_clean_files conftest.out" 3353# Check that the compiler produces executables we can run. If not, either 3354# the compiler is broken, or we cross compile. 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3356$as_echo_n "checking whether we are cross compiling... " >&6; } 3357if test "$cross_compiling" != yes; then 3358 { { ac_try="$ac_link" 3359case "(($ac_try" in 3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3361 *) ac_try_echo=$ac_try;; 3362esac 3363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3364$as_echo "$ac_try_echo"; } >&5 3365 (eval "$ac_link") 2>&5 3366 ac_status=$? 3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3368 test $ac_status = 0; } 3369 if { ac_try='./conftest$ac_cv_exeext' 3370 { { case "(($ac_try" in 3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3372 *) ac_try_echo=$ac_try;; 3373esac 3374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3375$as_echo "$ac_try_echo"; } >&5 3376 (eval "$ac_try") 2>&5 3377 ac_status=$? 3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3379 test $ac_status = 0; }; }; then 3380 cross_compiling=no 3381 else 3382 if test "$cross_compiling" = maybe; then 3383 cross_compiling=yes 3384 else 3385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3387as_fn_error $? "cannot run C compiled programs. 3388If you meant to cross compile, use \`--host'. 3389See \`config.log' for more details" "$LINENO" 5; } 3390 fi 3391 fi 3392fi 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3394$as_echo "$cross_compiling" >&6; } 3395 3396rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3397ac_clean_files=$ac_clean_files_save 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3399$as_echo_n "checking for suffix of object files... " >&6; } 3400if ${ac_cv_objext+:} false; then : 3401 $as_echo_n "(cached) " >&6 3402else 3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3404/* end confdefs.h. */ 3405 3406int 3407main () 3408{ 3409 3410 ; 3411 return 0; 3412} 3413_ACEOF 3414rm -f conftest.o conftest.obj 3415if { { ac_try="$ac_compile" 3416case "(($ac_try" in 3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3418 *) ac_try_echo=$ac_try;; 3419esac 3420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3421$as_echo "$ac_try_echo"; } >&5 3422 (eval "$ac_compile") 2>&5 3423 ac_status=$? 3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3425 test $ac_status = 0; }; then : 3426 for ac_file in conftest.o conftest.obj conftest.*; do 3427 test -f "$ac_file" || continue; 3428 case $ac_file in 3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3430 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3431 break;; 3432 esac 3433done 3434else 3435 $as_echo "$as_me: failed program was:" >&5 3436sed 's/^/| /' conftest.$ac_ext >&5 3437 3438{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3440as_fn_error $? "cannot compute suffix of object files: cannot compile 3441See \`config.log' for more details" "$LINENO" 5; } 3442fi 3443rm -f conftest.$ac_cv_objext conftest.$ac_ext 3444fi 3445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3446$as_echo "$ac_cv_objext" >&6; } 3447OBJEXT=$ac_cv_objext 3448ac_objext=$OBJEXT 3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3450$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3451if ${ac_cv_c_compiler_gnu+:} false; then : 3452 $as_echo_n "(cached) " >&6 3453else 3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3455/* end confdefs.h. */ 3456 3457int 3458main () 3459{ 3460#ifndef __GNUC__ 3461 choke me 3462#endif 3463 3464 ; 3465 return 0; 3466} 3467_ACEOF 3468if ac_fn_c_try_compile "$LINENO"; then : 3469 ac_compiler_gnu=yes 3470else 3471 ac_compiler_gnu=no 3472fi 3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3474ac_cv_c_compiler_gnu=$ac_compiler_gnu 3475 3476fi 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3478$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3479if test $ac_compiler_gnu = yes; then 3480 GCC=yes 3481else 3482 GCC= 3483fi 3484ac_test_CFLAGS=${CFLAGS+set} 3485ac_save_CFLAGS=$CFLAGS 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3487$as_echo_n "checking whether $CC accepts -g... " >&6; } 3488if ${ac_cv_prog_cc_g+:} false; then : 3489 $as_echo_n "(cached) " >&6 3490else 3491 ac_save_c_werror_flag=$ac_c_werror_flag 3492 ac_c_werror_flag=yes 3493 ac_cv_prog_cc_g=no 3494 CFLAGS="-g" 3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3496/* end confdefs.h. */ 3497 3498int 3499main () 3500{ 3501 3502 ; 3503 return 0; 3504} 3505_ACEOF 3506if ac_fn_c_try_compile "$LINENO"; then : 3507 ac_cv_prog_cc_g=yes 3508else 3509 CFLAGS="" 3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3511/* end confdefs.h. */ 3512 3513int 3514main () 3515{ 3516 3517 ; 3518 return 0; 3519} 3520_ACEOF 3521if ac_fn_c_try_compile "$LINENO"; then : 3522 3523else 3524 ac_c_werror_flag=$ac_save_c_werror_flag 3525 CFLAGS="-g" 3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3527/* end confdefs.h. */ 3528 3529int 3530main () 3531{ 3532 3533 ; 3534 return 0; 3535} 3536_ACEOF 3537if ac_fn_c_try_compile "$LINENO"; then : 3538 ac_cv_prog_cc_g=yes 3539fi 3540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3541fi 3542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3543fi 3544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3545 ac_c_werror_flag=$ac_save_c_werror_flag 3546fi 3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3548$as_echo "$ac_cv_prog_cc_g" >&6; } 3549if test "$ac_test_CFLAGS" = set; then 3550 CFLAGS=$ac_save_CFLAGS 3551elif test $ac_cv_prog_cc_g = yes; then 3552 if test "$GCC" = yes; then 3553 CFLAGS="-g -O2" 3554 else 3555 CFLAGS="-g" 3556 fi 3557else 3558 if test "$GCC" = yes; then 3559 CFLAGS="-O2" 3560 else 3561 CFLAGS= 3562 fi 3563fi 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3565$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3566if ${ac_cv_prog_cc_c89+:} false; then : 3567 $as_echo_n "(cached) " >&6 3568else 3569 ac_cv_prog_cc_c89=no 3570ac_save_CC=$CC 3571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3572/* end confdefs.h. */ 3573#include <stdarg.h> 3574#include <stdio.h> 3575struct stat; 3576/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3577struct buf { int x; }; 3578FILE * (*rcsopen) (struct buf *, struct stat *, int); 3579static char *e (p, i) 3580 char **p; 3581 int i; 3582{ 3583 return p[i]; 3584} 3585static char *f (char * (*g) (char **, int), char **p, ...) 3586{ 3587 char *s; 3588 va_list v; 3589 va_start (v,p); 3590 s = g (p, va_arg (v,int)); 3591 va_end (v); 3592 return s; 3593} 3594 3595/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3596 function prototypes and stuff, but not '\xHH' hex character constants. 3597 These don't provoke an error unfortunately, instead are silently treated 3598 as 'x'. The following induces an error, until -std is added to get 3599 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3600 array size at least. It's necessary to write '\x00'==0 to get something 3601 that's true only with -std. */ 3602int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3603 3604/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3605 inside strings and character constants. */ 3606#define FOO(x) 'x' 3607int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3608 3609int test (int i, double x); 3610struct s1 {int (*f) (int a);}; 3611struct s2 {int (*f) (double a);}; 3612int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3613int argc; 3614char **argv; 3615int 3616main () 3617{ 3618return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3619 ; 3620 return 0; 3621} 3622_ACEOF 3623for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3624 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3625do 3626 CC="$ac_save_CC $ac_arg" 3627 if ac_fn_c_try_compile "$LINENO"; then : 3628 ac_cv_prog_cc_c89=$ac_arg 3629fi 3630rm -f core conftest.err conftest.$ac_objext 3631 test "x$ac_cv_prog_cc_c89" != "xno" && break 3632done 3633rm -f conftest.$ac_ext 3634CC=$ac_save_CC 3635 3636fi 3637# AC_CACHE_VAL 3638case "x$ac_cv_prog_cc_c89" in 3639 x) 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3641$as_echo "none needed" >&6; } ;; 3642 xno) 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3644$as_echo "unsupported" >&6; } ;; 3645 *) 3646 CC="$CC $ac_cv_prog_cc_c89" 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3648$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3649esac 3650if test "x$ac_cv_prog_cc_c89" != xno; then : 3651 3652fi 3653 3654ac_ext=c 3655ac_cpp='$CPP $CPPFLAGS' 3656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3658ac_compiler_gnu=$ac_cv_c_compiler_gnu 3659 3660ac_ext=cpp 3661ac_cpp='$CXXCPP $CPPFLAGS' 3662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3665if test -z "$CXX"; then 3666 if test -n "$CCC"; then 3667 CXX=$CCC 3668 else 3669 if test -n "$ac_tool_prefix"; then 3670 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3671 do 3672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3673set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3675$as_echo_n "checking for $ac_word... " >&6; } 3676if ${ac_cv_prog_CXX+:} false; then : 3677 $as_echo_n "(cached) " >&6 3678else 3679 if test -n "$CXX"; then 3680 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3681else 3682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3683for as_dir in $PATH 3684do 3685 IFS=$as_save_IFS 3686 test -z "$as_dir" && as_dir=. 3687 for ac_exec_ext in '' $ac_executable_extensions; do 3688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3689 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3691 break 2 3692 fi 3693done 3694 done 3695IFS=$as_save_IFS 3696 3697fi 3698fi 3699CXX=$ac_cv_prog_CXX 3700if test -n "$CXX"; then 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3702$as_echo "$CXX" >&6; } 3703else 3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3705$as_echo "no" >&6; } 3706fi 3707 3708 3709 test -n "$CXX" && break 3710 done 3711fi 3712if test -z "$CXX"; then 3713 ac_ct_CXX=$CXX 3714 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3715do 3716 # Extract the first word of "$ac_prog", so it can be a program name with args. 3717set dummy $ac_prog; ac_word=$2 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3719$as_echo_n "checking for $ac_word... " >&6; } 3720if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3721 $as_echo_n "(cached) " >&6 3722else 3723 if test -n "$ac_ct_CXX"; then 3724 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3725else 3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3727for as_dir in $PATH 3728do 3729 IFS=$as_save_IFS 3730 test -z "$as_dir" && as_dir=. 3731 for ac_exec_ext in '' $ac_executable_extensions; do 3732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3733 ac_cv_prog_ac_ct_CXX="$ac_prog" 3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3735 break 2 3736 fi 3737done 3738 done 3739IFS=$as_save_IFS 3740 3741fi 3742fi 3743ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3744if test -n "$ac_ct_CXX"; then 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3746$as_echo "$ac_ct_CXX" >&6; } 3747else 3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3749$as_echo "no" >&6; } 3750fi 3751 3752 3753 test -n "$ac_ct_CXX" && break 3754done 3755 3756 if test "x$ac_ct_CXX" = x; then 3757 CXX="g++" 3758 else 3759 case $cross_compiling:$ac_tool_warned in 3760yes:) 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3763ac_tool_warned=yes ;; 3764esac 3765 CXX=$ac_ct_CXX 3766 fi 3767fi 3768 3769 fi 3770fi 3771# Provide some information about the compiler. 3772$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3773set X $ac_compile 3774ac_compiler=$2 3775for ac_option in --version -v -V -qversion; do 3776 { { ac_try="$ac_compiler $ac_option >&5" 3777case "(($ac_try" in 3778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3779 *) ac_try_echo=$ac_try;; 3780esac 3781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3782$as_echo "$ac_try_echo"; } >&5 3783 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3784 ac_status=$? 3785 if test -s conftest.err; then 3786 sed '10a\ 3787... rest of stderr output deleted ... 3788 10q' conftest.err >conftest.er1 3789 cat conftest.er1 >&5 3790 fi 3791 rm -f conftest.er1 conftest.err 3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3793 test $ac_status = 0; } 3794done 3795 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3797$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3798if ${ac_cv_cxx_compiler_gnu+:} false; then : 3799 $as_echo_n "(cached) " >&6 3800else 3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3802/* end confdefs.h. */ 3803 3804int 3805main () 3806{ 3807#ifndef __GNUC__ 3808 choke me 3809#endif 3810 3811 ; 3812 return 0; 3813} 3814_ACEOF 3815if ac_fn_cxx_try_compile "$LINENO"; then : 3816 ac_compiler_gnu=yes 3817else 3818 ac_compiler_gnu=no 3819fi 3820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3821ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3822 3823fi 3824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3825$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3826if test $ac_compiler_gnu = yes; then 3827 GXX=yes 3828else 3829 GXX= 3830fi 3831ac_test_CXXFLAGS=${CXXFLAGS+set} 3832ac_save_CXXFLAGS=$CXXFLAGS 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3834$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3835if ${ac_cv_prog_cxx_g+:} false; then : 3836 $as_echo_n "(cached) " >&6 3837else 3838 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3839 ac_cxx_werror_flag=yes 3840 ac_cv_prog_cxx_g=no 3841 CXXFLAGS="-g" 3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3843/* end confdefs.h. */ 3844 3845int 3846main () 3847{ 3848 3849 ; 3850 return 0; 3851} 3852_ACEOF 3853if ac_fn_cxx_try_compile "$LINENO"; then : 3854 ac_cv_prog_cxx_g=yes 3855else 3856 CXXFLAGS="" 3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3858/* end confdefs.h. */ 3859 3860int 3861main () 3862{ 3863 3864 ; 3865 return 0; 3866} 3867_ACEOF 3868if ac_fn_cxx_try_compile "$LINENO"; then : 3869 3870else 3871 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3872 CXXFLAGS="-g" 3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3874/* end confdefs.h. */ 3875 3876int 3877main () 3878{ 3879 3880 ; 3881 return 0; 3882} 3883_ACEOF 3884if ac_fn_cxx_try_compile "$LINENO"; then : 3885 ac_cv_prog_cxx_g=yes 3886fi 3887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3888fi 3889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3890fi 3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3892 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3893fi 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3895$as_echo "$ac_cv_prog_cxx_g" >&6; } 3896if test "$ac_test_CXXFLAGS" = set; then 3897 CXXFLAGS=$ac_save_CXXFLAGS 3898elif test $ac_cv_prog_cxx_g = yes; then 3899 if test "$GXX" = yes; then 3900 CXXFLAGS="-g -O2" 3901 else 3902 CXXFLAGS="-g" 3903 fi 3904else 3905 if test "$GXX" = yes; then 3906 CXXFLAGS="-O2" 3907 else 3908 CXXFLAGS= 3909 fi 3910fi 3911ac_ext=c 3912ac_cpp='$CPP $CPPFLAGS' 3913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3915ac_compiler_gnu=$ac_cv_c_compiler_gnu 3916 3917if test -n "$ac_tool_prefix"; then 3918 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3919set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3921$as_echo_n "checking for $ac_word... " >&6; } 3922if ${ac_cv_prog_RANLIB+:} false; then : 3923 $as_echo_n "(cached) " >&6 3924else 3925 if test -n "$RANLIB"; then 3926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3927else 3928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3929for as_dir in $PATH 3930do 3931 IFS=$as_save_IFS 3932 test -z "$as_dir" && as_dir=. 3933 for ac_exec_ext in '' $ac_executable_extensions; do 3934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3937 break 2 3938 fi 3939done 3940 done 3941IFS=$as_save_IFS 3942 3943fi 3944fi 3945RANLIB=$ac_cv_prog_RANLIB 3946if test -n "$RANLIB"; then 3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3948$as_echo "$RANLIB" >&6; } 3949else 3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3951$as_echo "no" >&6; } 3952fi 3953 3954 3955fi 3956if test -z "$ac_cv_prog_RANLIB"; then 3957 ac_ct_RANLIB=$RANLIB 3958 # Extract the first word of "ranlib", so it can be a program name with args. 3959set dummy ranlib; ac_word=$2 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3961$as_echo_n "checking for $ac_word... " >&6; } 3962if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3963 $as_echo_n "(cached) " >&6 3964else 3965 if test -n "$ac_ct_RANLIB"; then 3966 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3967else 3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3969for as_dir in $PATH 3970do 3971 IFS=$as_save_IFS 3972 test -z "$as_dir" && as_dir=. 3973 for ac_exec_ext in '' $ac_executable_extensions; do 3974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3975 ac_cv_prog_ac_ct_RANLIB="ranlib" 3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3977 break 2 3978 fi 3979done 3980 done 3981IFS=$as_save_IFS 3982 3983fi 3984fi 3985ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3986if test -n "$ac_ct_RANLIB"; then 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3988$as_echo "$ac_ct_RANLIB" >&6; } 3989else 3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3991$as_echo "no" >&6; } 3992fi 3993 3994 if test "x$ac_ct_RANLIB" = x; then 3995 RANLIB=":" 3996 else 3997 case $cross_compiling:$ac_tool_warned in 3998yes:) 3999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4001ac_tool_warned=yes ;; 4002esac 4003 RANLIB=$ac_ct_RANLIB 4004 fi 4005else 4006 RANLIB="$ac_cv_prog_RANLIB" 4007fi 4008 4009 4010 4011ac_ext=c 4012ac_cpp='$CPP $CPPFLAGS' 4013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4015ac_compiler_gnu=$ac_cv_c_compiler_gnu 4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4017$as_echo_n "checking how to run the C preprocessor... " >&6; } 4018# On Suns, sometimes $CPP names a directory. 4019if test -n "$CPP" && test -d "$CPP"; then 4020 CPP= 4021fi 4022if test -z "$CPP"; then 4023 if ${ac_cv_prog_CPP+:} false; then : 4024 $as_echo_n "(cached) " >&6 4025else 4026 # Double quotes because CPP needs to be expanded 4027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4028 do 4029 ac_preproc_ok=false 4030for ac_c_preproc_warn_flag in '' yes 4031do 4032 # Use a header file that comes with gcc, so configuring glibc 4033 # with a fresh cross-compiler works. 4034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4035 # <limits.h> exists even on freestanding compilers. 4036 # On the NeXT, cc -E runs the code through the compiler's parser, 4037 # not just through cpp. "Syntax error" is here to catch this case. 4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4039/* end confdefs.h. */ 4040#ifdef __STDC__ 4041# include <limits.h> 4042#else 4043# include <assert.h> 4044#endif 4045 Syntax error 4046_ACEOF 4047if ac_fn_c_try_cpp "$LINENO"; then : 4048 4049else 4050 # Broken: fails on valid input. 4051continue 4052fi 4053rm -f conftest.err conftest.i conftest.$ac_ext 4054 4055 # OK, works on sane cases. Now check whether nonexistent headers 4056 # can be detected and how. 4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4058/* end confdefs.h. */ 4059#include <ac_nonexistent.h> 4060_ACEOF 4061if ac_fn_c_try_cpp "$LINENO"; then : 4062 # Broken: success on invalid input. 4063continue 4064else 4065 # Passes both tests. 4066ac_preproc_ok=: 4067break 4068fi 4069rm -f conftest.err conftest.i conftest.$ac_ext 4070 4071done 4072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4073rm -f conftest.i conftest.err conftest.$ac_ext 4074if $ac_preproc_ok; then : 4075 break 4076fi 4077 4078 done 4079 ac_cv_prog_CPP=$CPP 4080 4081fi 4082 CPP=$ac_cv_prog_CPP 4083else 4084 ac_cv_prog_CPP=$CPP 4085fi 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4087$as_echo "$CPP" >&6; } 4088ac_preproc_ok=false 4089for ac_c_preproc_warn_flag in '' yes 4090do 4091 # Use a header file that comes with gcc, so configuring glibc 4092 # with a fresh cross-compiler works. 4093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4094 # <limits.h> exists even on freestanding compilers. 4095 # On the NeXT, cc -E runs the code through the compiler's parser, 4096 # not just through cpp. "Syntax error" is here to catch this case. 4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098/* end confdefs.h. */ 4099#ifdef __STDC__ 4100# include <limits.h> 4101#else 4102# include <assert.h> 4103#endif 4104 Syntax error 4105_ACEOF 4106if ac_fn_c_try_cpp "$LINENO"; then : 4107 4108else 4109 # Broken: fails on valid input. 4110continue 4111fi 4112rm -f conftest.err conftest.i conftest.$ac_ext 4113 4114 # OK, works on sane cases. Now check whether nonexistent headers 4115 # can be detected and how. 4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4117/* end confdefs.h. */ 4118#include <ac_nonexistent.h> 4119_ACEOF 4120if ac_fn_c_try_cpp "$LINENO"; then : 4121 # Broken: success on invalid input. 4122continue 4123else 4124 # Passes both tests. 4125ac_preproc_ok=: 4126break 4127fi 4128rm -f conftest.err conftest.i conftest.$ac_ext 4129 4130done 4131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4132rm -f conftest.i conftest.err conftest.$ac_ext 4133if $ac_preproc_ok; then : 4134 4135else 4136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4138as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4139See \`config.log' for more details" "$LINENO" 5; } 4140fi 4141 4142ac_ext=c 4143ac_cpp='$CPP $CPPFLAGS' 4144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4146ac_compiler_gnu=$ac_cv_c_compiler_gnu 4147 4148 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4150$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4151if ${ac_cv_path_GREP+:} false; then : 4152 $as_echo_n "(cached) " >&6 4153else 4154 if test -z "$GREP"; then 4155 ac_path_GREP_found=false 4156 # Loop through the user's path and test for each of PROGNAME-LIST 4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4158for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4159do 4160 IFS=$as_save_IFS 4161 test -z "$as_dir" && as_dir=. 4162 for ac_prog in grep ggrep; do 4163 for ac_exec_ext in '' $ac_executable_extensions; do 4164 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4165 as_fn_executable_p "$ac_path_GREP" || continue 4166# Check for GNU ac_path_GREP and select it if it is found. 4167 # Check for GNU $ac_path_GREP 4168case `"$ac_path_GREP" --version 2>&1` in 4169*GNU*) 4170 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4171*) 4172 ac_count=0 4173 $as_echo_n 0123456789 >"conftest.in" 4174 while : 4175 do 4176 cat "conftest.in" "conftest.in" >"conftest.tmp" 4177 mv "conftest.tmp" "conftest.in" 4178 cp "conftest.in" "conftest.nl" 4179 $as_echo 'GREP' >> "conftest.nl" 4180 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4182 as_fn_arith $ac_count + 1 && ac_count=$as_val 4183 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4184 # Best one so far, save it but keep looking for a better one 4185 ac_cv_path_GREP="$ac_path_GREP" 4186 ac_path_GREP_max=$ac_count 4187 fi 4188 # 10*(2^10) chars as input seems more than enough 4189 test $ac_count -gt 10 && break 4190 done 4191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4192esac 4193 4194 $ac_path_GREP_found && break 3 4195 done 4196 done 4197 done 4198IFS=$as_save_IFS 4199 if test -z "$ac_cv_path_GREP"; then 4200 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4201 fi 4202else 4203 ac_cv_path_GREP=$GREP 4204fi 4205 4206fi 4207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4208$as_echo "$ac_cv_path_GREP" >&6; } 4209 GREP="$ac_cv_path_GREP" 4210 4211 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4213$as_echo_n "checking for egrep... " >&6; } 4214if ${ac_cv_path_EGREP+:} false; then : 4215 $as_echo_n "(cached) " >&6 4216else 4217 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4218 then ac_cv_path_EGREP="$GREP -E" 4219 else 4220 if test -z "$EGREP"; then 4221 ac_path_EGREP_found=false 4222 # Loop through the user's path and test for each of PROGNAME-LIST 4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4224for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4225do 4226 IFS=$as_save_IFS 4227 test -z "$as_dir" && as_dir=. 4228 for ac_prog in egrep; do 4229 for ac_exec_ext in '' $ac_executable_extensions; do 4230 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4231 as_fn_executable_p "$ac_path_EGREP" || continue 4232# Check for GNU ac_path_EGREP and select it if it is found. 4233 # Check for GNU $ac_path_EGREP 4234case `"$ac_path_EGREP" --version 2>&1` in 4235*GNU*) 4236 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4237*) 4238 ac_count=0 4239 $as_echo_n 0123456789 >"conftest.in" 4240 while : 4241 do 4242 cat "conftest.in" "conftest.in" >"conftest.tmp" 4243 mv "conftest.tmp" "conftest.in" 4244 cp "conftest.in" "conftest.nl" 4245 $as_echo 'EGREP' >> "conftest.nl" 4246 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4248 as_fn_arith $ac_count + 1 && ac_count=$as_val 4249 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4250 # Best one so far, save it but keep looking for a better one 4251 ac_cv_path_EGREP="$ac_path_EGREP" 4252 ac_path_EGREP_max=$ac_count 4253 fi 4254 # 10*(2^10) chars as input seems more than enough 4255 test $ac_count -gt 10 && break 4256 done 4257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4258esac 4259 4260 $ac_path_EGREP_found && break 3 4261 done 4262 done 4263 done 4264IFS=$as_save_IFS 4265 if test -z "$ac_cv_path_EGREP"; then 4266 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4267 fi 4268else 4269 ac_cv_path_EGREP=$EGREP 4270fi 4271 4272 fi 4273fi 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4275$as_echo "$ac_cv_path_EGREP" >&6; } 4276 EGREP="$ac_cv_path_EGREP" 4277 4278 4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4280$as_echo_n "checking for ANSI C header files... " >&6; } 4281if ${ac_cv_header_stdc+:} false; then : 4282 $as_echo_n "(cached) " >&6 4283else 4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4285/* end confdefs.h. */ 4286#include <stdlib.h> 4287#include <stdarg.h> 4288#include <string.h> 4289#include <float.h> 4290 4291int 4292main () 4293{ 4294 4295 ; 4296 return 0; 4297} 4298_ACEOF 4299if ac_fn_c_try_compile "$LINENO"; then : 4300 ac_cv_header_stdc=yes 4301else 4302 ac_cv_header_stdc=no 4303fi 4304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4305 4306if test $ac_cv_header_stdc = yes; then 4307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4309/* end confdefs.h. */ 4310#include <string.h> 4311 4312_ACEOF 4313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4314 $EGREP "memchr" >/dev/null 2>&1; then : 4315 4316else 4317 ac_cv_header_stdc=no 4318fi 4319rm -f conftest* 4320 4321fi 4322 4323if test $ac_cv_header_stdc = yes; then 4324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4326/* end confdefs.h. */ 4327#include <stdlib.h> 4328 4329_ACEOF 4330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4331 $EGREP "free" >/dev/null 2>&1; then : 4332 4333else 4334 ac_cv_header_stdc=no 4335fi 4336rm -f conftest* 4337 4338fi 4339 4340if test $ac_cv_header_stdc = yes; then 4341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4342 if test "$cross_compiling" = yes; then : 4343 : 4344else 4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4346/* end confdefs.h. */ 4347#include <ctype.h> 4348#include <stdlib.h> 4349#if ((' ' & 0x0FF) == 0x020) 4350# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4351# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4352#else 4353# define ISLOWER(c) \ 4354 (('a' <= (c) && (c) <= 'i') \ 4355 || ('j' <= (c) && (c) <= 'r') \ 4356 || ('s' <= (c) && (c) <= 'z')) 4357# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4358#endif 4359 4360#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4361int 4362main () 4363{ 4364 int i; 4365 for (i = 0; i < 256; i++) 4366 if (XOR (islower (i), ISLOWER (i)) 4367 || toupper (i) != TOUPPER (i)) 4368 return 2; 4369 return 0; 4370} 4371_ACEOF 4372if ac_fn_c_try_run "$LINENO"; then : 4373 4374else 4375 ac_cv_header_stdc=no 4376fi 4377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4378 conftest.$ac_objext conftest.beam conftest.$ac_ext 4379fi 4380 4381fi 4382fi 4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4384$as_echo "$ac_cv_header_stdc" >&6; } 4385if test $ac_cv_header_stdc = yes; then 4386 4387$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4388 4389fi 4390 4391# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4392for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4393 inttypes.h stdint.h unistd.h 4394do : 4395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4396ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4397" 4398if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4399 cat >>confdefs.h <<_ACEOF 4400#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4401_ACEOF 4402 4403fi 4404 4405done 4406 4407 4408 4409 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4410if test "x$ac_cv_header_minix_config_h" = xyes; then : 4411 MINIX=yes 4412else 4413 MINIX= 4414fi 4415 4416 4417 if test "$MINIX" = yes; then 4418 4419$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4420 4421 4422$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4423 4424 4425$as_echo "#define _MINIX 1" >>confdefs.h 4426 4427 fi 4428 4429 4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4431$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4432if ${ac_cv_safe_to_define___extensions__+:} false; then : 4433 $as_echo_n "(cached) " >&6 4434else 4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4436/* end confdefs.h. */ 4437 4438# define __EXTENSIONS__ 1 4439 $ac_includes_default 4440int 4441main () 4442{ 4443 4444 ; 4445 return 0; 4446} 4447_ACEOF 4448if ac_fn_c_try_compile "$LINENO"; then : 4449 ac_cv_safe_to_define___extensions__=yes 4450else 4451 ac_cv_safe_to_define___extensions__=no 4452fi 4453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4454fi 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4456$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4457 test $ac_cv_safe_to_define___extensions__ = yes && 4458 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4459 4460 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4461 4462 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4463 4464 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4465 4466 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4467 4468 4469# Check whether --enable-largefile was given. 4470if test "${enable_largefile+set}" = set; then : 4471 enableval=$enable_largefile; 4472fi 4473 4474if test "$enable_largefile" != no; then 4475 4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4477$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4478if ${ac_cv_sys_largefile_CC+:} false; then : 4479 $as_echo_n "(cached) " >&6 4480else 4481 ac_cv_sys_largefile_CC=no 4482 if test "$GCC" != yes; then 4483 ac_save_CC=$CC 4484 while :; do 4485 # IRIX 6.2 and later do not support large files by default, 4486 # so use the C compiler's -n32 option if that helps. 4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4488/* end confdefs.h. */ 4489#include <sys/types.h> 4490 /* Check that off_t can represent 2**63 - 1 correctly. 4491 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4492 since some C++ compilers masquerading as C compilers 4493 incorrectly reject 9223372036854775807. */ 4494#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4495 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4496 && LARGE_OFF_T % 2147483647 == 1) 4497 ? 1 : -1]; 4498int 4499main () 4500{ 4501 4502 ; 4503 return 0; 4504} 4505_ACEOF 4506 if ac_fn_c_try_compile "$LINENO"; then : 4507 break 4508fi 4509rm -f core conftest.err conftest.$ac_objext 4510 CC="$CC -n32" 4511 if ac_fn_c_try_compile "$LINENO"; then : 4512 ac_cv_sys_largefile_CC=' -n32'; break 4513fi 4514rm -f core conftest.err conftest.$ac_objext 4515 break 4516 done 4517 CC=$ac_save_CC 4518 rm -f conftest.$ac_ext 4519 fi 4520fi 4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4522$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4523 if test "$ac_cv_sys_largefile_CC" != no; then 4524 CC=$CC$ac_cv_sys_largefile_CC 4525 fi 4526 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4528$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4529if ${ac_cv_sys_file_offset_bits+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531else 4532 while :; do 4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4534/* end confdefs.h. */ 4535#include <sys/types.h> 4536 /* Check that off_t can represent 2**63 - 1 correctly. 4537 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4538 since some C++ compilers masquerading as C compilers 4539 incorrectly reject 9223372036854775807. */ 4540#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4541 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4542 && LARGE_OFF_T % 2147483647 == 1) 4543 ? 1 : -1]; 4544int 4545main () 4546{ 4547 4548 ; 4549 return 0; 4550} 4551_ACEOF 4552if ac_fn_c_try_compile "$LINENO"; then : 4553 ac_cv_sys_file_offset_bits=no; break 4554fi 4555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4557/* end confdefs.h. */ 4558#define _FILE_OFFSET_BITS 64 4559#include <sys/types.h> 4560 /* Check that off_t can represent 2**63 - 1 correctly. 4561 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4562 since some C++ compilers masquerading as C compilers 4563 incorrectly reject 9223372036854775807. */ 4564#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4565 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4566 && LARGE_OFF_T % 2147483647 == 1) 4567 ? 1 : -1]; 4568int 4569main () 4570{ 4571 4572 ; 4573 return 0; 4574} 4575_ACEOF 4576if ac_fn_c_try_compile "$LINENO"; then : 4577 ac_cv_sys_file_offset_bits=64; break 4578fi 4579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4580 ac_cv_sys_file_offset_bits=unknown 4581 break 4582done 4583fi 4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4585$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4586case $ac_cv_sys_file_offset_bits in #( 4587 no | unknown) ;; 4588 *) 4589cat >>confdefs.h <<_ACEOF 4590#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4591_ACEOF 4592;; 4593esac 4594rm -rf conftest* 4595 if test $ac_cv_sys_file_offset_bits = unknown; then 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4597$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4598if ${ac_cv_sys_large_files+:} false; then : 4599 $as_echo_n "(cached) " >&6 4600else 4601 while :; do 4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4603/* end confdefs.h. */ 4604#include <sys/types.h> 4605 /* Check that off_t can represent 2**63 - 1 correctly. 4606 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4607 since some C++ compilers masquerading as C compilers 4608 incorrectly reject 9223372036854775807. */ 4609#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4611 && LARGE_OFF_T % 2147483647 == 1) 4612 ? 1 : -1]; 4613int 4614main () 4615{ 4616 4617 ; 4618 return 0; 4619} 4620_ACEOF 4621if ac_fn_c_try_compile "$LINENO"; then : 4622 ac_cv_sys_large_files=no; break 4623fi 4624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4626/* end confdefs.h. */ 4627#define _LARGE_FILES 1 4628#include <sys/types.h> 4629 /* Check that off_t can represent 2**63 - 1 correctly. 4630 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4631 since some C++ compilers masquerading as C compilers 4632 incorrectly reject 9223372036854775807. */ 4633#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4635 && LARGE_OFF_T % 2147483647 == 1) 4636 ? 1 : -1]; 4637int 4638main () 4639{ 4640 4641 ; 4642 return 0; 4643} 4644_ACEOF 4645if ac_fn_c_try_compile "$LINENO"; then : 4646 ac_cv_sys_large_files=1; break 4647fi 4648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4649 ac_cv_sys_large_files=unknown 4650 break 4651done 4652fi 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4654$as_echo "$ac_cv_sys_large_files" >&6; } 4655case $ac_cv_sys_large_files in #( 4656 no | unknown) ;; 4657 *) 4658cat >>confdefs.h <<_ACEOF 4659#define _LARGE_FILES $ac_cv_sys_large_files 4660_ACEOF 4661;; 4662esac 4663rm -rf conftest* 4664 fi 4665 4666 4667fi 4668 4669 4670MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing 4671for ac_prog in aclocal 4672do 4673 # Extract the first word of "$ac_prog", so it can be a program name with args. 4674set dummy $ac_prog; ac_word=$2 4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4676$as_echo_n "checking for $ac_word... " >&6; } 4677if ${ac_cv_prog_ACLOCAL+:} false; then : 4678 $as_echo_n "(cached) " >&6 4679else 4680 if test -n "$ACLOCAL"; then 4681 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test. 4682else 4683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4684for as_dir in $PATH 4685do 4686 IFS=$as_save_IFS 4687 test -z "$as_dir" && as_dir=. 4688 for ac_exec_ext in '' $ac_executable_extensions; do 4689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4690 ac_cv_prog_ACLOCAL="$ac_prog" 4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4692 break 2 4693 fi 4694done 4695 done 4696IFS=$as_save_IFS 4697 4698fi 4699fi 4700ACLOCAL=$ac_cv_prog_ACLOCAL 4701if test -n "$ACLOCAL"; then 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 4703$as_echo "$ACLOCAL" >&6; } 4704else 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4706$as_echo "no" >&6; } 4707fi 4708 4709 4710 test -n "$ACLOCAL" && break 4711done 4712test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal" 4713 4714for ac_prog in autoconf 4715do 4716 # Extract the first word of "$ac_prog", so it can be a program name with args. 4717set dummy $ac_prog; ac_word=$2 4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4719$as_echo_n "checking for $ac_word... " >&6; } 4720if ${ac_cv_prog_AUTOCONF+:} false; then : 4721 $as_echo_n "(cached) " >&6 4722else 4723 if test -n "$AUTOCONF"; then 4724 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. 4725else 4726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4727for as_dir in $PATH 4728do 4729 IFS=$as_save_IFS 4730 test -z "$as_dir" && as_dir=. 4731 for ac_exec_ext in '' $ac_executable_extensions; do 4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4733 ac_cv_prog_AUTOCONF="$ac_prog" 4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4735 break 2 4736 fi 4737done 4738 done 4739IFS=$as_save_IFS 4740 4741fi 4742fi 4743AUTOCONF=$ac_cv_prog_AUTOCONF 4744if test -n "$AUTOCONF"; then 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 4746$as_echo "$AUTOCONF" >&6; } 4747else 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4749$as_echo "no" >&6; } 4750fi 4751 4752 4753 test -n "$AUTOCONF" && break 4754done 4755test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf" 4756 4757for ac_prog in autoheader 4758do 4759 # Extract the first word of "$ac_prog", so it can be a program name with args. 4760set dummy $ac_prog; ac_word=$2 4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4762$as_echo_n "checking for $ac_word... " >&6; } 4763if ${ac_cv_prog_AUTOHEADER+:} false; then : 4764 $as_echo_n "(cached) " >&6 4765else 4766 if test -n "$AUTOHEADER"; then 4767 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test. 4768else 4769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4770for as_dir in $PATH 4771do 4772 IFS=$as_save_IFS 4773 test -z "$as_dir" && as_dir=. 4774 for ac_exec_ext in '' $ac_executable_extensions; do 4775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4776 ac_cv_prog_AUTOHEADER="$ac_prog" 4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4778 break 2 4779 fi 4780done 4781 done 4782IFS=$as_save_IFS 4783 4784fi 4785fi 4786AUTOHEADER=$ac_cv_prog_AUTOHEADER 4787if test -n "$AUTOHEADER"; then 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5 4789$as_echo "$AUTOHEADER" >&6; } 4790else 4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4792$as_echo "no" >&6; } 4793fi 4794 4795 4796 test -n "$AUTOHEADER" && break 4797done 4798test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader" 4799 4800 4801# Figure out what compiler warnings we can enable. 4802# See config/warnings.m4 for details. 4803 4804ac_ext=c 4805ac_cpp='$CPP $CPPFLAGS' 4806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4808ac_compiler_gnu=$ac_cv_c_compiler_gnu 4809 4810warn= 4811save_CFLAGS="$CFLAGS" 4812for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \ 4813 -Wmissing-format-attribute; do 4814 # Do the check with the no- prefix removed since gcc silently 4815 # accepts any -Wno-* option on purpose 4816 case $real_option in 4817 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 4818 *) option=$real_option ;; 4819 esac 4820 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 4821 4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 4823$as_echo_n "checking whether $CC supports $option... " >&6; } 4824if eval \${$as_acx_Woption+:} false; then : 4825 $as_echo_n "(cached) " >&6 4826else 4827 CFLAGS="$option" 4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4829/* end confdefs.h. */ 4830 4831int 4832main () 4833{ 4834 4835 ; 4836 return 0; 4837} 4838_ACEOF 4839if ac_fn_c_try_compile "$LINENO"; then : 4840 eval "$as_acx_Woption=yes" 4841else 4842 eval "$as_acx_Woption=no" 4843fi 4844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4845 4846fi 4847eval ac_res=\$$as_acx_Woption 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4849$as_echo "$ac_res" >&6; } 4850 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 4851 warn="$warn${warn:+ }$real_option" 4852fi 4853 done 4854CFLAGS="$save_CFLAGS" 4855ac_ext=c 4856ac_cpp='$CPP $CPPFLAGS' 4857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4859ac_compiler_gnu=$ac_cv_c_compiler_gnu 4860 4861 4862ac_ext=c 4863ac_cpp='$CPP $CPPFLAGS' 4864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4866ac_compiler_gnu=$ac_cv_c_compiler_gnu 4867 4868c_warn= 4869save_CFLAGS="$CFLAGS" 4870for real_option in -Wstrict-prototypes -Wmissing-prototypes \ 4871 -Wold-style-definition -Wc++-compat; do 4872 # Do the check with the no- prefix removed since gcc silently 4873 # accepts any -Wno-* option on purpose 4874 case $real_option in 4875 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 4876 *) option=$real_option ;; 4877 esac 4878 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 4879 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 4881$as_echo_n "checking whether $CC supports $option... " >&6; } 4882if eval \${$as_acx_Woption+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 CFLAGS="$option" 4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4887/* end confdefs.h. */ 4888 4889int 4890main () 4891{ 4892 4893 ; 4894 return 0; 4895} 4896_ACEOF 4897if ac_fn_c_try_compile "$LINENO"; then : 4898 eval "$as_acx_Woption=yes" 4899else 4900 eval "$as_acx_Woption=no" 4901fi 4902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4903 4904fi 4905eval ac_res=\$$as_acx_Woption 4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4907$as_echo "$ac_res" >&6; } 4908 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 4909 c_warn="$c_warn${c_warn:+ }$real_option" 4910fi 4911 done 4912CFLAGS="$save_CFLAGS" 4913ac_ext=c 4914ac_cpp='$CPP $CPPFLAGS' 4915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4917ac_compiler_gnu=$ac_cv_c_compiler_gnu 4918 4919 4920ac_ext=c 4921ac_cpp='$CPP $CPPFLAGS' 4922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4924ac_compiler_gnu=$ac_cv_c_compiler_gnu 4925 4926WARN_PEDANTIC= 4927# Do the check with the no- prefix removed from the warning options 4928# since gcc silently accepts any -Wno-* option on purpose 4929if test "$GCC" = yes; then : 4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5 4931$as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; } 4932if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then : 4933 $as_echo_n "(cached) " >&6 4934else 4935 save_CFLAGS="$CFLAGS" 4936CFLAGS="-pedantic -Wlong-long" 4937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4938/* end confdefs.h. */ 4939 4940int 4941main () 4942{ 4943 4944 ; 4945 return 0; 4946} 4947_ACEOF 4948if ac_fn_c_try_compile "$LINENO"; then : 4949 acx_cv_prog_cc_pedantic__Wlong_long=yes 4950else 4951 acx_cv_prog_cc_pedantic__Wlong_long=no 4952fi 4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4954CFLAGS="$save_CFLAGS" 4955fi 4956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5 4957$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; } 4958if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then : 4959 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long" 4960fi 4961 4962fi 4963ac_ext=c 4964ac_cpp='$CPP $CPPFLAGS' 4965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4967ac_compiler_gnu=$ac_cv_c_compiler_gnu 4968 4969 4970 4971# Disable exceptions and RTTI if building with g++ 4972ac_ext=c 4973ac_cpp='$CPP $CPPFLAGS' 4974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4976ac_compiler_gnu=$ac_cv_c_compiler_gnu 4977 4978noexception_flags= 4979save_CFLAGS="$CFLAGS" 4980for real_option in -fno-exceptions -fno-rtti; do 4981 # Do the check with the no- prefix removed since gcc silently 4982 # accepts any -Wno-* option on purpose 4983 case $real_option in 4984 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 4985 *) option=$real_option ;; 4986 esac 4987 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 4988 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 4990$as_echo_n "checking whether $CC supports $option... " >&6; } 4991if eval \${$as_acx_Woption+:} false; then : 4992 $as_echo_n "(cached) " >&6 4993else 4994 CFLAGS="$option" 4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4996/* end confdefs.h. */ 4997 4998int 4999main () 5000{ 5001 5002 ; 5003 return 0; 5004} 5005_ACEOF 5006if ac_fn_c_try_compile "$LINENO"; then : 5007 eval "$as_acx_Woption=yes" 5008else 5009 eval "$as_acx_Woption=no" 5010fi 5011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5012 5013fi 5014eval ac_res=\$$as_acx_Woption 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5016$as_echo "$ac_res" >&6; } 5017 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 5018 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option" 5019fi 5020 done 5021CFLAGS="$save_CFLAGS" 5022ac_ext=c 5023ac_cpp='$CPP $CPPFLAGS' 5024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5026ac_compiler_gnu=$ac_cv_c_compiler_gnu 5027 5028 5029 5030# Only enable with --enable-werror-always until existing warnings are 5031# corrected. 5032ac_ext=c 5033ac_cpp='$CPP $CPPFLAGS' 5034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5036ac_compiler_gnu=$ac_cv_c_compiler_gnu 5037 5038WERROR= 5039# Check whether --enable-werror-always was given. 5040if test "${enable_werror_always+set}" = set; then : 5041 enableval=$enable_werror_always; 5042else 5043 enable_werror_always=no 5044fi 5045 5046if test $enable_werror_always = yes; then : 5047 WERROR="$WERROR${WERROR:+ }-Werror" 5048fi 5049 5050ac_ext=c 5051ac_cpp='$CPP $CPPFLAGS' 5052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5054ac_compiler_gnu=$ac_cv_c_compiler_gnu 5055 5056 5057 5058# Dependency checking. 5059rm -rf .tst 2>/dev/null 5060mkdir .tst 2>/dev/null 5061if test -d .tst; then 5062 am__leading_dot=. 5063else 5064 am__leading_dot=_ 5065fi 5066rmdir .tst 2>/dev/null 5067 5068DEPDIR="${am__leading_dot}deps" 5069 5070ac_config_commands="$ac_config_commands depdir" 5071 5072 5073ac_ext=cpp 5074ac_cpp='$CXXCPP $CPPFLAGS' 5075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5078 5079 5080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5081/* end confdefs.h. */ 5082int i; 5083_ACEOF 5084if ac_fn_cxx_try_compile "$LINENO"; then : 5085 5086else 5087 as_fn_error $? "C++ compiler missing or inoperational" "$LINENO" 5 5088fi 5089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5090ac_ext=c 5091ac_cpp='$CPP $CPPFLAGS' 5092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5094ac_compiler_gnu=$ac_cv_c_compiler_gnu 5095 5096depcc="$CXX" am_compiler_list= 5097 5098am_depcomp=$ac_aux_dir/depcomp 5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5100$as_echo_n "checking dependency style of $depcc... " >&6; } 5101if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 5102 $as_echo_n "(cached) " >&6 5103else 5104 if test -f "$am_depcomp"; then 5105 # We make a subdir and do the tests there. Otherwise we can end up 5106 # making bogus files that we don't know about and never remove. For 5107 # instance it was reported that on HP-UX the gcc test will end up 5108 # making a dummy file named `D' -- because `-MD' means `put the output 5109 # in D'. 5110 mkdir conftest.dir 5111 # Copy depcomp to subdir because otherwise we won't find it if we're 5112 # using a relative directory. 5113 cp "$am_depcomp" conftest.dir 5114 cd conftest.dir 5115 # We will build objects and dependencies in a subdirectory because 5116 # it helps to detect inapplicable dependency modes. For instance 5117 # both Tru64's cc and ICC support -MD to output dependencies as a 5118 # side effect of compilation, but ICC will put the dependencies in 5119 # the current directory while Tru64 will put them in the object 5120 # directory. 5121 mkdir sub 5122 5123 am_cv_CXX_dependencies_compiler_type=none 5124 if test "$am_compiler_list" = ""; then 5125 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5126 fi 5127 for depmode in $am_compiler_list; do 5128 if test $depmode = none; then break; fi 5129 5130 $as_echo "$as_me:$LINENO: trying $depmode" >&5 5131 # Setup a source with many dependencies, because some compilers 5132 # like to wrap large dependency lists on column 80 (with \), and 5133 # we should not choose a depcomp mode which is confused by this. 5134 # 5135 # We need to recreate these files for each test, as the compiler may 5136 # overwrite some of them when testing with obscure command lines. 5137 # This happens at least with the AIX C compiler. 5138 : > sub/conftest.c 5139 for i in 1 2 3 4 5 6; do 5140 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5141 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5142 # Solaris 8's {/usr,}/bin/sh. 5143 touch sub/conftst$i.h 5144 done 5145 echo "include sub/conftest.Po" > confmf 5146 5147 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5148 # mode. It turns out that the SunPro C++ compiler does not properly 5149 # handle `-M -o', and we need to detect this. 5150 depcmd="depmode=$depmode \ 5151 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5153 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" 5154 echo "| $depcmd" | sed -e 's/ */ /g' >&5 5155 if env $depcmd > conftest.err 2>&1 && 5156 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && 5157 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && 5158 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then 5159 # icc doesn't choke on unknown options, it will just issue warnings 5160 # or remarks (even with -Werror). So we grep stderr for any message 5161 # that says an option was ignored or not supported. 5162 # When given -MP, icc 7.0 and 7.1 complain thusly: 5163 # icc: Command line warning: ignoring option '-M'; no argument required 5164 # The diagnosis changed in icc 8.0: 5165 # icc: Command line remark: option '-MP' not supported 5166 if (grep 'ignoring option' conftest.err || 5167 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5168 am_cv_CXX_dependencies_compiler_type=$depmode 5169 $as_echo "$as_me:$LINENO: success" >&5 5170 break 5171 fi 5172 fi 5173 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 5174 sed -e 's/^/| /' < conftest.err >&5 5175 done 5176 5177 cd .. 5178 rm -rf conftest.dir 5179else 5180 am_cv_CXX_dependencies_compiler_type=none 5181fi 5182 5183fi 5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5185$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5186if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone 5187then as_fn_error $? "no usable dependency style found" "$LINENO" 5 5188else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5189 5190fi 5191 5192 5193# Checks for header files. 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 5195$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 5196if ${ac_cv_header_time+:} false; then : 5197 $as_echo_n "(cached) " >&6 5198else 5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200/* end confdefs.h. */ 5201#include <sys/types.h> 5202#include <sys/time.h> 5203#include <time.h> 5204 5205int 5206main () 5207{ 5208if ((struct tm *) 0) 5209return 0; 5210 ; 5211 return 0; 5212} 5213_ACEOF 5214if ac_fn_c_try_compile "$LINENO"; then : 5215 ac_cv_header_time=yes 5216else 5217 ac_cv_header_time=no 5218fi 5219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5220fi 5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 5222$as_echo "$ac_cv_header_time" >&6; } 5223if test $ac_cv_header_time = yes; then 5224 5225$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 5226 5227fi 5228 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 5230$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } 5231if ${gcc_cv_header_string+:} false; then : 5232 $as_echo_n "(cached) " >&6 5233else 5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5235/* end confdefs.h. */ 5236#include <string.h> 5237#include <strings.h> 5238int 5239main () 5240{ 5241 5242 ; 5243 return 0; 5244} 5245_ACEOF 5246if ac_fn_c_try_compile "$LINENO"; then : 5247 gcc_cv_header_string=yes 5248else 5249 gcc_cv_header_string=no 5250fi 5251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5252fi 5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 5254$as_echo "$gcc_cv_header_string" >&6; } 5255if test $gcc_cv_header_string = yes; then 5256 5257$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h 5258 5259fi 5260 5261 5262for ac_header in locale.h fcntl.h limits.h stddef.h \ 5263 stdlib.h strings.h string.h sys/file.h unistd.h 5264do : 5265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5266ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5267if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5268 cat >>confdefs.h <<_ACEOF 5269#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5270_ACEOF 5271 5272fi 5273 5274done 5275 5276 5277# Checks for typedefs, structures, and compiler characteristics. 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5279$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 5280if ${ac_cv_c_bigendian+:} false; then : 5281 $as_echo_n "(cached) " >&6 5282else 5283 ac_cv_c_bigendian=unknown 5284 # See if we're dealing with a universal compiler. 5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5286/* end confdefs.h. */ 5287#ifndef __APPLE_CC__ 5288 not a universal capable compiler 5289 #endif 5290 typedef int dummy; 5291 5292_ACEOF 5293if ac_fn_c_try_compile "$LINENO"; then : 5294 5295 # Check for potential -arch flags. It is not universal unless 5296 # there are at least two -arch flags with different values. 5297 ac_arch= 5298 ac_prev= 5299 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5300 if test -n "$ac_prev"; then 5301 case $ac_word in 5302 i?86 | x86_64 | ppc | ppc64) 5303 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5304 ac_arch=$ac_word 5305 else 5306 ac_cv_c_bigendian=universal 5307 break 5308 fi 5309 ;; 5310 esac 5311 ac_prev= 5312 elif test "x$ac_word" = "x-arch"; then 5313 ac_prev=arch 5314 fi 5315 done 5316fi 5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5318 if test $ac_cv_c_bigendian = unknown; then 5319 # See if sys/param.h defines the BYTE_ORDER macro. 5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5321/* end confdefs.h. */ 5322#include <sys/types.h> 5323 #include <sys/param.h> 5324 5325int 5326main () 5327{ 5328#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5329 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5330 && LITTLE_ENDIAN) 5331 bogus endian macros 5332 #endif 5333 5334 ; 5335 return 0; 5336} 5337_ACEOF 5338if ac_fn_c_try_compile "$LINENO"; then : 5339 # It does; now see whether it defined to BIG_ENDIAN or not. 5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5341/* end confdefs.h. */ 5342#include <sys/types.h> 5343 #include <sys/param.h> 5344 5345int 5346main () 5347{ 5348#if BYTE_ORDER != BIG_ENDIAN 5349 not big endian 5350 #endif 5351 5352 ; 5353 return 0; 5354} 5355_ACEOF 5356if ac_fn_c_try_compile "$LINENO"; then : 5357 ac_cv_c_bigendian=yes 5358else 5359 ac_cv_c_bigendian=no 5360fi 5361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5362fi 5363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5364 fi 5365 if test $ac_cv_c_bigendian = unknown; then 5366 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5368/* end confdefs.h. */ 5369#include <limits.h> 5370 5371int 5372main () 5373{ 5374#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5375 bogus endian macros 5376 #endif 5377 5378 ; 5379 return 0; 5380} 5381_ACEOF 5382if ac_fn_c_try_compile "$LINENO"; then : 5383 # It does; now see whether it defined to _BIG_ENDIAN or not. 5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5385/* end confdefs.h. */ 5386#include <limits.h> 5387 5388int 5389main () 5390{ 5391#ifndef _BIG_ENDIAN 5392 not big endian 5393 #endif 5394 5395 ; 5396 return 0; 5397} 5398_ACEOF 5399if ac_fn_c_try_compile "$LINENO"; then : 5400 ac_cv_c_bigendian=yes 5401else 5402 ac_cv_c_bigendian=no 5403fi 5404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5405fi 5406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5407 fi 5408 if test $ac_cv_c_bigendian = unknown; then 5409 # Compile a test program. 5410 if test "$cross_compiling" = yes; then : 5411 # Try to guess by grepping values from an object file. 5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5413/* end confdefs.h. */ 5414short int ascii_mm[] = 5415 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5416 short int ascii_ii[] = 5417 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5418 int use_ascii (int i) { 5419 return ascii_mm[i] + ascii_ii[i]; 5420 } 5421 short int ebcdic_ii[] = 5422 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5423 short int ebcdic_mm[] = 5424 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5425 int use_ebcdic (int i) { 5426 return ebcdic_mm[i] + ebcdic_ii[i]; 5427 } 5428 extern int foo; 5429 5430int 5431main () 5432{ 5433return use_ascii (foo) == use_ebcdic (foo); 5434 ; 5435 return 0; 5436} 5437_ACEOF 5438if ac_fn_c_try_compile "$LINENO"; then : 5439 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 5440 ac_cv_c_bigendian=yes 5441 fi 5442 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5443 if test "$ac_cv_c_bigendian" = unknown; then 5444 ac_cv_c_bigendian=no 5445 else 5446 # finding both strings is unlikely to happen, but who knows? 5447 ac_cv_c_bigendian=unknown 5448 fi 5449 fi 5450fi 5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5452else 5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5454/* end confdefs.h. */ 5455$ac_includes_default 5456int 5457main () 5458{ 5459 5460 /* Are we little or big endian? From Harbison&Steele. */ 5461 union 5462 { 5463 long int l; 5464 char c[sizeof (long int)]; 5465 } u; 5466 u.l = 1; 5467 return u.c[sizeof (long int) - 1] == 1; 5468 5469 ; 5470 return 0; 5471} 5472_ACEOF 5473if ac_fn_c_try_run "$LINENO"; then : 5474 ac_cv_c_bigendian=no 5475else 5476 ac_cv_c_bigendian=yes 5477fi 5478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5479 conftest.$ac_objext conftest.beam conftest.$ac_ext 5480fi 5481 5482 fi 5483fi 5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5485$as_echo "$ac_cv_c_bigendian" >&6; } 5486 case $ac_cv_c_bigendian in #( 5487 yes) 5488 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 5489;; #( 5490 no) 5491 ;; #( 5492 universal) 5493 5494$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5495 5496 ;; #( 5497 *) 5498 as_fn_error $? "unknown endianness 5499 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5500 esac 5501 5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5503$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5504if ${ac_cv_c_const+:} false; then : 5505 $as_echo_n "(cached) " >&6 5506else 5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5508/* end confdefs.h. */ 5509 5510int 5511main () 5512{ 5513 5514#ifndef __cplusplus 5515 /* Ultrix mips cc rejects this sort of thing. */ 5516 typedef int charset[2]; 5517 const charset cs = { 0, 0 }; 5518 /* SunOS 4.1.1 cc rejects this. */ 5519 char const *const *pcpcc; 5520 char **ppc; 5521 /* NEC SVR4.0.2 mips cc rejects this. */ 5522 struct point {int x, y;}; 5523 static struct point const zero = {0,0}; 5524 /* AIX XL C 1.02.0.0 rejects this. 5525 It does not let you subtract one const X* pointer from another in 5526 an arm of an if-expression whose if-part is not a constant 5527 expression */ 5528 const char *g = "string"; 5529 pcpcc = &g + (g ? g-g : 0); 5530 /* HPUX 7.0 cc rejects these. */ 5531 ++pcpcc; 5532 ppc = (char**) pcpcc; 5533 pcpcc = (char const *const *) ppc; 5534 { /* SCO 3.2v4 cc rejects this sort of thing. */ 5535 char tx; 5536 char *t = &tx; 5537 char const *s = 0 ? (char *) 0 : (char const *) 0; 5538 5539 *t++ = 0; 5540 if (s) return 0; 5541 } 5542 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5543 int x[] = {25, 17}; 5544 const int *foo = &x[0]; 5545 ++foo; 5546 } 5547 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5548 typedef const int *iptr; 5549 iptr p = 0; 5550 ++p; 5551 } 5552 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 5553 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5554 struct s { int j; const int *ap[3]; } bx; 5555 struct s *b = &bx; b->j = 5; 5556 } 5557 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5558 const int foo = 10; 5559 if (!foo) return 0; 5560 } 5561 return !cs[0] && !zero.x; 5562#endif 5563 5564 ; 5565 return 0; 5566} 5567_ACEOF 5568if ac_fn_c_try_compile "$LINENO"; then : 5569 ac_cv_c_const=yes 5570else 5571 ac_cv_c_const=no 5572fi 5573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5574fi 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5576$as_echo "$ac_cv_c_const" >&6; } 5577if test $ac_cv_c_const = no; then 5578 5579$as_echo "#define const /**/" >>confdefs.h 5580 5581fi 5582 5583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5584$as_echo_n "checking for inline... " >&6; } 5585if ${ac_cv_c_inline+:} false; then : 5586 $as_echo_n "(cached) " >&6 5587else 5588 ac_cv_c_inline=no 5589for ac_kw in inline __inline__ __inline; do 5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5591/* end confdefs.h. */ 5592#ifndef __cplusplus 5593typedef int foo_t; 5594static $ac_kw foo_t static_foo () {return 0; } 5595$ac_kw foo_t foo () {return 0; } 5596#endif 5597 5598_ACEOF 5599if ac_fn_c_try_compile "$LINENO"; then : 5600 ac_cv_c_inline=$ac_kw 5601fi 5602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5603 test "$ac_cv_c_inline" != no && break 5604done 5605 5606fi 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5608$as_echo "$ac_cv_c_inline" >&6; } 5609 5610case $ac_cv_c_inline in 5611 inline | yes) ;; 5612 *) 5613 case $ac_cv_c_inline in 5614 no) ac_val=;; 5615 *) ac_val=$ac_cv_c_inline;; 5616 esac 5617 cat >>confdefs.h <<_ACEOF 5618#ifndef __cplusplus 5619#define inline $ac_val 5620#endif 5621_ACEOF 5622 ;; 5623esac 5624 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5 5626$as_echo_n "checking for obstacks... " >&6; } 5627if ${ac_cv_func_obstack+:} false; then : 5628 $as_echo_n "(cached) " >&6 5629else 5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5631/* end confdefs.h. */ 5632$ac_includes_default 5633 #include "obstack.h" 5634int 5635main () 5636{ 5637struct obstack mem; 5638 #define obstack_chunk_alloc malloc 5639 #define obstack_chunk_free free 5640 obstack_init (&mem); 5641 obstack_free (&mem, 0); 5642 ; 5643 return 0; 5644} 5645_ACEOF 5646if ac_fn_c_try_link "$LINENO"; then : 5647 ac_cv_func_obstack=yes 5648else 5649 ac_cv_func_obstack=no 5650fi 5651rm -f core conftest.err conftest.$ac_objext \ 5652 conftest$ac_exeext conftest.$ac_ext 5653fi 5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5 5655$as_echo "$ac_cv_func_obstack" >&6; } 5656if test $ac_cv_func_obstack = yes; then 5657 5658$as_echo "#define HAVE_OBSTACK 1" >>confdefs.h 5659 5660else 5661 case " $LIBOBJS " in 5662 *" obstack.$ac_objext "* ) ;; 5663 *) LIBOBJS="$LIBOBJS obstack.$ac_objext" 5664 ;; 5665esac 5666 5667fi 5668 5669ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 5670if test "x$ac_cv_type_off_t" = xyes; then : 5671 5672else 5673 5674cat >>confdefs.h <<_ACEOF 5675#define off_t long int 5676_ACEOF 5677 5678fi 5679 5680ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 5681if test "x$ac_cv_type_size_t" = xyes; then : 5682 5683else 5684 5685cat >>confdefs.h <<_ACEOF 5686#define size_t unsigned int 5687_ACEOF 5688 5689fi 5690 5691ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 5692if test "x$ac_cv_type_ssize_t" = xyes; then : 5693 5694else 5695 5696cat >>confdefs.h <<_ACEOF 5697#define ssize_t int 5698_ACEOF 5699 5700fi 5701 5702 5703 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 5704if test "x$ac_cv_type_uintptr_t" = xyes; then : 5705 5706$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 5707 5708else 5709 for ac_type in 'unsigned int' 'unsigned long int' \ 5710 'unsigned long long int'; do 5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5712/* end confdefs.h. */ 5713$ac_includes_default 5714int 5715main () 5716{ 5717static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 5718test_array [0] = 0; 5719return test_array [0]; 5720 5721 ; 5722 return 0; 5723} 5724_ACEOF 5725if ac_fn_c_try_compile "$LINENO"; then : 5726 5727cat >>confdefs.h <<_ACEOF 5728#define uintptr_t $ac_type 5729_ACEOF 5730 5731 ac_type= 5732fi 5733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5734 test -z "$ac_type" && break 5735 done 5736fi 5737 5738 5739ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 5740if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 5741 5742else 5743 5744cat >>confdefs.h <<_ACEOF 5745#define ptrdiff_t int 5746_ACEOF 5747 5748fi 5749 5750ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 5751case $ac_cv_c_uint64_t in #( 5752 no|yes) ;; #( 5753 *) 5754 5755$as_echo "#define _UINT64_T 1" >>confdefs.h 5756 5757 5758cat >>confdefs.h <<_ACEOF 5759#define uint64_t $ac_cv_c_uint64_t 5760_ACEOF 5761;; 5762 esac 5763 5764if test x"$ac_cv_c_uint64_t" = x"no"; then 5765 as_fn_error $? "uint64_t not found" "$LINENO" 5 5766fi 5767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 5768$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 5769if ${ac_cv_struct_tm+:} false; then : 5770 $as_echo_n "(cached) " >&6 5771else 5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5773/* end confdefs.h. */ 5774#include <sys/types.h> 5775#include <time.h> 5776 5777int 5778main () 5779{ 5780struct tm tm; 5781 int *p = &tm.tm_sec; 5782 return !p; 5783 ; 5784 return 0; 5785} 5786_ACEOF 5787if ac_fn_c_try_compile "$LINENO"; then : 5788 ac_cv_struct_tm=time.h 5789else 5790 ac_cv_struct_tm=sys/time.h 5791fi 5792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5793fi 5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 5795$as_echo "$ac_cv_struct_tm" >&6; } 5796if test $ac_cv_struct_tm = sys/time.h; then 5797 5798$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 5799 5800fi 5801 5802# The cast to long int works around a bug in the HP C Compiler 5803# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5804# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5805# This bug is HP SR number 8606223364. 5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 5807$as_echo_n "checking size of int... " >&6; } 5808if ${ac_cv_sizeof_int+:} false; then : 5809 $as_echo_n "(cached) " >&6 5810else 5811 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 5812 5813else 5814 if test "$ac_cv_type_int" = yes; then 5815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5817as_fn_error 77 "cannot compute sizeof (int) 5818See \`config.log' for more details" "$LINENO" 5; } 5819 else 5820 ac_cv_sizeof_int=0 5821 fi 5822fi 5823 5824fi 5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 5826$as_echo "$ac_cv_sizeof_int" >&6; } 5827 5828 5829 5830cat >>confdefs.h <<_ACEOF 5831#define SIZEOF_INT $ac_cv_sizeof_int 5832_ACEOF 5833 5834 5835# The cast to long int works around a bug in the HP C Compiler 5836# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5837# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5838# This bug is HP SR number 8606223364. 5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 5840$as_echo_n "checking size of long... " >&6; } 5841if ${ac_cv_sizeof_long+:} false; then : 5842 $as_echo_n "(cached) " >&6 5843else 5844 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 5845 5846else 5847 if test "$ac_cv_type_long" = yes; then 5848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5850as_fn_error 77 "cannot compute sizeof (long) 5851See \`config.log' for more details" "$LINENO" 5; } 5852 else 5853 ac_cv_sizeof_long=0 5854 fi 5855fi 5856 5857fi 5858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 5859$as_echo "$ac_cv_sizeof_long" >&6; } 5860 5861 5862 5863cat >>confdefs.h <<_ACEOF 5864#define SIZEOF_LONG $ac_cv_sizeof_long 5865_ACEOF 5866 5867 5868 5869for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked 5870do : 5871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5872ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5873if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5874 cat >>confdefs.h <<_ACEOF 5875#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5876_ACEOF 5877 5878fi 5879done 5880 5881ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default" 5882if test "x$ac_cv_have_decl_abort" = xyes; then : 5883 ac_have_decl=1 5884else 5885 ac_have_decl=0 5886fi 5887 5888cat >>confdefs.h <<_ACEOF 5889#define HAVE_DECL_ABORT $ac_have_decl 5890_ACEOF 5891ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 5892if test "x$ac_cv_have_decl_asprintf" = xyes; then : 5893 ac_have_decl=1 5894else 5895 ac_have_decl=0 5896fi 5897 5898cat >>confdefs.h <<_ACEOF 5899#define HAVE_DECL_ASPRINTF $ac_have_decl 5900_ACEOF 5901as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh` 5902ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default" 5903if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 5904 ac_have_decl=1 5905else 5906 ac_have_decl=0 5907fi 5908 5909cat >>confdefs.h <<_ACEOF 5910#define HAVE_DECL_BASENAME $ac_have_decl 5911_ACEOF 5912ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default" 5913if test "x$ac_cv_have_decl_errno" = xyes; then : 5914 ac_have_decl=1 5915else 5916 ac_have_decl=0 5917fi 5918 5919cat >>confdefs.h <<_ACEOF 5920#define HAVE_DECL_ERRNO $ac_have_decl 5921_ACEOF 5922ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default" 5923if test "x$ac_cv_have_decl_getopt" = xyes; then : 5924 ac_have_decl=1 5925else 5926 ac_have_decl=0 5927fi 5928 5929cat >>confdefs.h <<_ACEOF 5930#define HAVE_DECL_GETOPT $ac_have_decl 5931_ACEOF 5932ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" 5933if test "x$ac_cv_have_decl_vasprintf" = xyes; then : 5934 ac_have_decl=1 5935else 5936 ac_have_decl=0 5937fi 5938 5939cat >>confdefs.h <<_ACEOF 5940#define HAVE_DECL_VASPRINTF $ac_have_decl 5941_ACEOF 5942 5943ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default" 5944if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then : 5945 ac_have_decl=1 5946else 5947 ac_have_decl=0 5948fi 5949 5950cat >>confdefs.h <<_ACEOF 5951#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl 5952_ACEOF 5953ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default" 5954if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : 5955 ac_have_decl=1 5956else 5957 ac_have_decl=0 5958fi 5959 5960cat >>confdefs.h <<_ACEOF 5961#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl 5962_ACEOF 5963ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default" 5964if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then : 5965 ac_have_decl=1 5966else 5967 ac_have_decl=0 5968fi 5969 5970cat >>confdefs.h <<_ACEOF 5971#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl 5972_ACEOF 5973ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default" 5974if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then : 5975 ac_have_decl=1 5976else 5977 ac_have_decl=0 5978fi 5979 5980cat >>confdefs.h <<_ACEOF 5981#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl 5982_ACEOF 5983ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default" 5984if test "x$ac_cv_have_decl_fgetc_unlocked" = xyes; then : 5985 ac_have_decl=1 5986else 5987 ac_have_decl=0 5988fi 5989 5990cat >>confdefs.h <<_ACEOF 5991#define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl 5992_ACEOF 5993ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default" 5994if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : 5995 ac_have_decl=1 5996else 5997 ac_have_decl=0 5998fi 5999 6000cat >>confdefs.h <<_ACEOF 6001#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl 6002_ACEOF 6003ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default" 6004if test "x$ac_cv_have_decl_fileno_unlocked" = xyes; then : 6005 ac_have_decl=1 6006else 6007 ac_have_decl=0 6008fi 6009 6010cat >>confdefs.h <<_ACEOF 6011#define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl 6012_ACEOF 6013ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default" 6014if test "x$ac_cv_have_decl_fprintf_unlocked" = xyes; then : 6015 ac_have_decl=1 6016else 6017 ac_have_decl=0 6018fi 6019 6020cat >>confdefs.h <<_ACEOF 6021#define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl 6022_ACEOF 6023ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default" 6024if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then : 6025 ac_have_decl=1 6026else 6027 ac_have_decl=0 6028fi 6029 6030cat >>confdefs.h <<_ACEOF 6031#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl 6032_ACEOF 6033ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default" 6034if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then : 6035 ac_have_decl=1 6036else 6037 ac_have_decl=0 6038fi 6039 6040cat >>confdefs.h <<_ACEOF 6041#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl 6042_ACEOF 6043ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default" 6044if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then : 6045 ac_have_decl=1 6046else 6047 ac_have_decl=0 6048fi 6049 6050cat >>confdefs.h <<_ACEOF 6051#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl 6052_ACEOF 6053ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default" 6054if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then : 6055 ac_have_decl=1 6056else 6057 ac_have_decl=0 6058fi 6059 6060cat >>confdefs.h <<_ACEOF 6061#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl 6062_ACEOF 6063ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default" 6064if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then : 6065 ac_have_decl=1 6066else 6067 ac_have_decl=0 6068fi 6069 6070cat >>confdefs.h <<_ACEOF 6071#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl 6072_ACEOF 6073ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" 6074if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : 6075 ac_have_decl=1 6076else 6077 ac_have_decl=0 6078fi 6079 6080cat >>confdefs.h <<_ACEOF 6081#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl 6082_ACEOF 6083ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default" 6084if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then : 6085 ac_have_decl=1 6086else 6087 ac_have_decl=0 6088fi 6089 6090cat >>confdefs.h <<_ACEOF 6091#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl 6092_ACEOF 6093ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default" 6094if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then : 6095 ac_have_decl=1 6096else 6097 ac_have_decl=0 6098fi 6099 6100cat >>confdefs.h <<_ACEOF 6101#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl 6102_ACEOF 6103 6104 6105# Checks for library functions. 6106# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 6107# for constant arguments. Useless! 6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 6109$as_echo_n "checking for working alloca.h... " >&6; } 6110if ${ac_cv_working_alloca_h+:} false; then : 6111 $as_echo_n "(cached) " >&6 6112else 6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6114/* end confdefs.h. */ 6115#include <alloca.h> 6116int 6117main () 6118{ 6119char *p = (char *) alloca (2 * sizeof (int)); 6120 if (p) return 0; 6121 ; 6122 return 0; 6123} 6124_ACEOF 6125if ac_fn_c_try_link "$LINENO"; then : 6126 ac_cv_working_alloca_h=yes 6127else 6128 ac_cv_working_alloca_h=no 6129fi 6130rm -f core conftest.err conftest.$ac_objext \ 6131 conftest$ac_exeext conftest.$ac_ext 6132fi 6133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 6134$as_echo "$ac_cv_working_alloca_h" >&6; } 6135if test $ac_cv_working_alloca_h = yes; then 6136 6137$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 6138 6139fi 6140 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 6142$as_echo_n "checking for alloca... " >&6; } 6143if ${ac_cv_func_alloca_works+:} false; then : 6144 $as_echo_n "(cached) " >&6 6145else 6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6147/* end confdefs.h. */ 6148#ifdef __GNUC__ 6149# define alloca __builtin_alloca 6150#else 6151# ifdef _MSC_VER 6152# include <malloc.h> 6153# define alloca _alloca 6154# else 6155# ifdef HAVE_ALLOCA_H 6156# include <alloca.h> 6157# else 6158# ifdef _AIX 6159 #pragma alloca 6160# else 6161# ifndef alloca /* predefined by HP cc +Olibcalls */ 6162void *alloca (size_t); 6163# endif 6164# endif 6165# endif 6166# endif 6167#endif 6168 6169int 6170main () 6171{ 6172char *p = (char *) alloca (1); 6173 if (p) return 0; 6174 ; 6175 return 0; 6176} 6177_ACEOF 6178if ac_fn_c_try_link "$LINENO"; then : 6179 ac_cv_func_alloca_works=yes 6180else 6181 ac_cv_func_alloca_works=no 6182fi 6183rm -f core conftest.err conftest.$ac_objext \ 6184 conftest$ac_exeext conftest.$ac_ext 6185fi 6186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 6187$as_echo "$ac_cv_func_alloca_works" >&6; } 6188 6189if test $ac_cv_func_alloca_works = yes; then 6190 6191$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 6192 6193else 6194 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 6195# that cause trouble. Some versions do not even contain alloca or 6196# contain a buggy version. If you still want to use their alloca, 6197# use ar to extract alloca.o from them instead of compiling alloca.c. 6198 6199ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 6200 6201$as_echo "#define C_ALLOCA 1" >>confdefs.h 6202 6203 6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 6205$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 6206if ${ac_cv_os_cray+:} false; then : 6207 $as_echo_n "(cached) " >&6 6208else 6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6210/* end confdefs.h. */ 6211#if defined CRAY && ! defined CRAY2 6212webecray 6213#else 6214wenotbecray 6215#endif 6216 6217_ACEOF 6218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6219 $EGREP "webecray" >/dev/null 2>&1; then : 6220 ac_cv_os_cray=yes 6221else 6222 ac_cv_os_cray=no 6223fi 6224rm -f conftest* 6225 6226fi 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 6228$as_echo "$ac_cv_os_cray" >&6; } 6229if test $ac_cv_os_cray = yes; then 6230 for ac_func in _getb67 GETB67 getb67; do 6231 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6232ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6233if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6234 6235cat >>confdefs.h <<_ACEOF 6236#define CRAY_STACKSEG_END $ac_func 6237_ACEOF 6238 6239 break 6240fi 6241 6242 done 6243fi 6244 6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 6246$as_echo_n "checking stack direction for C alloca... " >&6; } 6247if ${ac_cv_c_stack_direction+:} false; then : 6248 $as_echo_n "(cached) " >&6 6249else 6250 if test "$cross_compiling" = yes; then : 6251 ac_cv_c_stack_direction=0 6252else 6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6254/* end confdefs.h. */ 6255$ac_includes_default 6256int 6257find_stack_direction (int *addr, int depth) 6258{ 6259 int dir, dummy = 0; 6260 if (! addr) 6261 addr = &dummy; 6262 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 6263 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 6264 return dir + dummy; 6265} 6266 6267int 6268main (int argc, char **argv) 6269{ 6270 return find_stack_direction (0, argc + !argv + 20) < 0; 6271} 6272_ACEOF 6273if ac_fn_c_try_run "$LINENO"; then : 6274 ac_cv_c_stack_direction=1 6275else 6276 ac_cv_c_stack_direction=-1 6277fi 6278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6279 conftest.$ac_objext conftest.beam conftest.$ac_ext 6280fi 6281 6282fi 6283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 6284$as_echo "$ac_cv_c_stack_direction" >&6; } 6285cat >>confdefs.h <<_ACEOF 6286#define STACK_DIRECTION $ac_cv_c_stack_direction 6287_ACEOF 6288 6289 6290fi 6291 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6293$as_echo_n "checking for ANSI C header files... " >&6; } 6294if ${ac_cv_header_stdc+:} false; then : 6295 $as_echo_n "(cached) " >&6 6296else 6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6298/* end confdefs.h. */ 6299#include <stdlib.h> 6300#include <stdarg.h> 6301#include <string.h> 6302#include <float.h> 6303 6304int 6305main () 6306{ 6307 6308 ; 6309 return 0; 6310} 6311_ACEOF 6312if ac_fn_c_try_compile "$LINENO"; then : 6313 ac_cv_header_stdc=yes 6314else 6315 ac_cv_header_stdc=no 6316fi 6317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6318 6319if test $ac_cv_header_stdc = yes; then 6320 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6322/* end confdefs.h. */ 6323#include <string.h> 6324 6325_ACEOF 6326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6327 $EGREP "memchr" >/dev/null 2>&1; then : 6328 6329else 6330 ac_cv_header_stdc=no 6331fi 6332rm -f conftest* 6333 6334fi 6335 6336if test $ac_cv_header_stdc = yes; then 6337 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6339/* end confdefs.h. */ 6340#include <stdlib.h> 6341 6342_ACEOF 6343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6344 $EGREP "free" >/dev/null 2>&1; then : 6345 6346else 6347 ac_cv_header_stdc=no 6348fi 6349rm -f conftest* 6350 6351fi 6352 6353if test $ac_cv_header_stdc = yes; then 6354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6355 if test "$cross_compiling" = yes; then : 6356 : 6357else 6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6359/* end confdefs.h. */ 6360#include <ctype.h> 6361#include <stdlib.h> 6362#if ((' ' & 0x0FF) == 0x020) 6363# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6364# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6365#else 6366# define ISLOWER(c) \ 6367 (('a' <= (c) && (c) <= 'i') \ 6368 || ('j' <= (c) && (c) <= 'r') \ 6369 || ('s' <= (c) && (c) <= 'z')) 6370# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6371#endif 6372 6373#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6374int 6375main () 6376{ 6377 int i; 6378 for (i = 0; i < 256; i++) 6379 if (XOR (islower (i), ISLOWER (i)) 6380 || toupper (i) != TOUPPER (i)) 6381 return 2; 6382 return 0; 6383} 6384_ACEOF 6385if ac_fn_c_try_run "$LINENO"; then : 6386 6387else 6388 ac_cv_header_stdc=no 6389fi 6390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6391 conftest.$ac_objext conftest.beam conftest.$ac_ext 6392fi 6393 6394fi 6395fi 6396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6397$as_echo "$ac_cv_header_stdc" >&6; } 6398if test $ac_cv_header_stdc = yes; then 6399 6400$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6401 6402fi 6403 6404 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 6406$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 6407if ${am_cv_langinfo_codeset+:} false; then : 6408 $as_echo_n "(cached) " >&6 6409else 6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6411/* end confdefs.h. */ 6412#include <langinfo.h> 6413int 6414main () 6415{ 6416char* cs = nl_langinfo(CODESET); 6417 ; 6418 return 0; 6419} 6420_ACEOF 6421if ac_fn_c_try_link "$LINENO"; then : 6422 am_cv_langinfo_codeset=yes 6423else 6424 am_cv_langinfo_codeset=no 6425fi 6426rm -f core conftest.err conftest.$ac_objext \ 6427 conftest$ac_exeext conftest.$ac_ext 6428 6429fi 6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 6431$as_echo "$am_cv_langinfo_codeset" >&6; } 6432 if test $am_cv_langinfo_codeset = yes; then 6433 6434$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 6435 6436 fi 6437 6438# If we haven't got the data from the intl directory, 6439# assume NLS is disabled. 6440USE_NLS=no 6441LIBINTL= 6442LIBINTL_DEP= 6443INCINTL= 6444XGETTEXT= 6445GMSGFMT= 6446POSUB= 6447 6448if test -f ../intl/config.intl; then 6449 . ../intl/config.intl 6450fi 6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 6452$as_echo_n "checking whether NLS is requested... " >&6; } 6453if test x"$USE_NLS" != xyes; then 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6455$as_echo "no" >&6; } 6456else 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6458$as_echo "yes" >&6; } 6459 6460$as_echo "#define ENABLE_NLS 1" >>confdefs.h 6461 6462 6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 6464$as_echo_n "checking for catalogs to be installed... " >&6; } 6465 # Look for .po and .gmo files in the source directory. 6466 CATALOGS= 6467 XLINGUAS= 6468 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 6469 # If there aren't any .gmo files the shell will give us the 6470 # literal string "../path/to/srcdir/po/*.gmo" which has to be 6471 # weeded out. 6472 case "$cat" in *\**) 6473 continue;; 6474 esac 6475 # The quadruple backslash is collapsed to a double backslash 6476 # by the backticks, then collapsed again by the double quotes, 6477 # leaving us with one backslash in the sed expression (right 6478 # before the dot that mustn't act as a wildcard). 6479 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 6480 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 6481 # The user is allowed to set LINGUAS to a list of languages to 6482 # install catalogs for. If it's empty that means "all of them." 6483 if test "x$LINGUAS" = x; then 6484 CATALOGS="$CATALOGS $cat" 6485 XLINGUAS="$XLINGUAS $lang" 6486 else 6487 case "$LINGUAS" in *$lang*) 6488 CATALOGS="$CATALOGS $cat" 6489 XLINGUAS="$XLINGUAS $lang" 6490 ;; 6491 esac 6492 fi 6493 done 6494 LINGUAS="$XLINGUAS" 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 6496$as_echo "$LINGUAS" >&6; } 6497 6498 6499 DATADIRNAME=share 6500 6501 INSTOBJEXT=.mo 6502 6503 GENCAT=gencat 6504 6505 CATOBJEXT=.gmo 6506 6507fi 6508 6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5 6510$as_echo_n "checking for uchar... " >&6; } 6511if ${gcc_cv_type_uchar+:} false; then : 6512 $as_echo_n "(cached) " >&6 6513else 6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6515/* end confdefs.h. */ 6516 6517#include <sys/types.h> 6518 6519int 6520main () 6521{ 6522if ((uchar *)0) return 0; 6523 if (sizeof(uchar)) return 0; 6524 ; 6525 return 0; 6526} 6527_ACEOF 6528if ac_fn_c_try_compile "$LINENO"; then : 6529 ac_cv_type_uchar=yes 6530else 6531 ac_cv_type_uchar=no 6532fi 6533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6534fi 6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5 6536$as_echo "$gcc_cv_type_uchar" >&6; } 6537if test $ac_cv_type_uchar = yes; then 6538 6539$as_echo "#define HAVE_UCHAR 1" >>confdefs.h 6540 6541fi 6542 6543# g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different 6544# iconv() prototype. 6545ac_ext=cpp 6546ac_cpp='$CXXCPP $CPPFLAGS' 6547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6550 6551 6552 if test "X$prefix" = "XNONE"; then 6553 acl_final_prefix="$ac_default_prefix" 6554 else 6555 acl_final_prefix="$prefix" 6556 fi 6557 if test "X$exec_prefix" = "XNONE"; then 6558 acl_final_exec_prefix='${prefix}' 6559 else 6560 acl_final_exec_prefix="$exec_prefix" 6561 fi 6562 acl_save_prefix="$prefix" 6563 prefix="$acl_final_prefix" 6564 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 6565 prefix="$acl_save_prefix" 6566 6567 6568# Check whether --with-gnu-ld was given. 6569if test "${with_gnu_ld+set}" = set; then : 6570 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6571else 6572 with_gnu_ld=no 6573fi 6574 6575# Prepare PATH_SEPARATOR. 6576# The user is always right. 6577if test "${PATH_SEPARATOR+set}" != set; then 6578 echo "#! /bin/sh" >conf$$.sh 6579 echo "exit 0" >>conf$$.sh 6580 chmod +x conf$$.sh 6581 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6582 PATH_SEPARATOR=';' 6583 else 6584 PATH_SEPARATOR=: 6585 fi 6586 rm -f conf$$.sh 6587fi 6588ac_prog=ld 6589if test "$GCC" = yes; then 6590 # Check if gcc -print-prog-name=ld gives a path. 6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 6592$as_echo_n "checking for ld used by GCC... " >&6; } 6593 case $host in 6594 *-*-mingw*) 6595 # gcc leaves a trailing carriage return which upsets mingw 6596 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6597 *) 6598 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6599 esac 6600 case $ac_prog in 6601 # Accept absolute paths. 6602 [\\/]* | [A-Za-z]:[\\/]*) 6603 re_direlt='/[^/][^/]*/\.\./' 6604 # Canonicalize the path of ld 6605 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 6606 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 6607 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 6608 done 6609 test -z "$LD" && LD="$ac_prog" 6610 ;; 6611 "") 6612 # If it fails, then pretend we aren't using GCC. 6613 ac_prog=ld 6614 ;; 6615 *) 6616 # If it is relative, then search for the first ld in PATH. 6617 with_gnu_ld=unknown 6618 ;; 6619 esac 6620elif test "$with_gnu_ld" = yes; then 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6622$as_echo_n "checking for GNU ld... " >&6; } 6623else 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6625$as_echo_n "checking for non-GNU ld... " >&6; } 6626fi 6627if ${acl_cv_path_LD+:} false; then : 6628 $as_echo_n "(cached) " >&6 6629else 6630 if test -z "$LD"; then 6631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 6632 for ac_dir in $PATH; do 6633 test -z "$ac_dir" && ac_dir=. 6634 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6635 acl_cv_path_LD="$ac_dir/$ac_prog" 6636 # Check to see if the program is GNU ld. I'd rather use --version, 6637 # but apparently some GNU ld's only accept -v. 6638 # Break only if it was the GNU/non-GNU ld that we prefer. 6639 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 6640 test "$with_gnu_ld" != no && break 6641 else 6642 test "$with_gnu_ld" != yes && break 6643 fi 6644 fi 6645 done 6646 IFS="$ac_save_ifs" 6647else 6648 acl_cv_path_LD="$LD" # Let the user override the test with a path. 6649fi 6650fi 6651 6652LD="$acl_cv_path_LD" 6653if test -n "$LD"; then 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6655$as_echo "$LD" >&6; } 6656else 6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6658$as_echo "no" >&6; } 6659fi 6660test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6662$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6663if ${acl_cv_prog_gnu_ld+:} false; then : 6664 $as_echo_n "(cached) " >&6 6665else 6666 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 6667if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 6668 acl_cv_prog_gnu_ld=yes 6669else 6670 acl_cv_prog_gnu_ld=no 6671fi 6672fi 6673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 6674$as_echo "$acl_cv_prog_gnu_ld" >&6; } 6675with_gnu_ld=$acl_cv_prog_gnu_ld 6676 6677 6678 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 6680$as_echo_n "checking for shared library run path origin... " >&6; } 6681if ${acl_cv_rpath+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683else 6684 6685 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 6686 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 6687 . ./conftest.sh 6688 rm -f ./conftest.sh 6689 acl_cv_rpath=done 6690 6691fi 6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 6693$as_echo "$acl_cv_rpath" >&6; } 6694 wl="$acl_cv_wl" 6695 libext="$acl_cv_libext" 6696 shlibext="$acl_cv_shlibext" 6697 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 6698 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 6699 hardcode_direct="$acl_cv_hardcode_direct" 6700 hardcode_minus_L="$acl_cv_hardcode_minus_L" 6701 # Check whether --enable-rpath was given. 6702if test "${enable_rpath+set}" = set; then : 6703 enableval=$enable_rpath; : 6704else 6705 enable_rpath=yes 6706fi 6707 6708 6709 6710 6711 6712 6713 6714 6715 use_additional=yes 6716 6717 acl_save_prefix="$prefix" 6718 prefix="$acl_final_prefix" 6719 acl_save_exec_prefix="$exec_prefix" 6720 exec_prefix="$acl_final_exec_prefix" 6721 6722 eval additional_includedir=\"$includedir\" 6723 eval additional_libdir=\"$libdir\" 6724 6725 exec_prefix="$acl_save_exec_prefix" 6726 prefix="$acl_save_prefix" 6727 6728 6729# Check whether --with-libiconv-prefix was given. 6730if test "${with_libiconv_prefix+set}" = set; then : 6731 withval=$with_libiconv_prefix; 6732 if test "X$withval" = "Xno"; then 6733 use_additional=no 6734 else 6735 if test "X$withval" = "X"; then 6736 6737 acl_save_prefix="$prefix" 6738 prefix="$acl_final_prefix" 6739 acl_save_exec_prefix="$exec_prefix" 6740 exec_prefix="$acl_final_exec_prefix" 6741 6742 eval additional_includedir=\"$includedir\" 6743 eval additional_libdir=\"$libdir\" 6744 6745 exec_prefix="$acl_save_exec_prefix" 6746 prefix="$acl_save_prefix" 6747 6748 else 6749 additional_includedir="$withval/include" 6750 additional_libdir="$withval/lib" 6751 fi 6752 fi 6753 6754fi 6755 6756 LIBICONV= 6757 LTLIBICONV= 6758 INCICONV= 6759 rpathdirs= 6760 ltrpathdirs= 6761 names_already_handled= 6762 names_next_round='iconv ' 6763 while test -n "$names_next_round"; do 6764 names_this_round="$names_next_round" 6765 names_next_round= 6766 for name in $names_this_round; do 6767 already_handled= 6768 for n in $names_already_handled; do 6769 if test "$n" = "$name"; then 6770 already_handled=yes 6771 break 6772 fi 6773 done 6774 if test -z "$already_handled"; then 6775 names_already_handled="$names_already_handled $name" 6776 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 6777 eval value=\"\$HAVE_LIB$uppername\" 6778 if test -n "$value"; then 6779 if test "$value" = yes; then 6780 eval value=\"\$LIB$uppername\" 6781 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 6782 eval value=\"\$LTLIB$uppername\" 6783 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 6784 else 6785 : 6786 fi 6787 else 6788 found_dir= 6789 found_la= 6790 found_so= 6791 found_a= 6792 if test $use_additional = yes; then 6793 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 6794 found_dir="$additional_libdir" 6795 found_so="$additional_libdir/lib$name.$shlibext" 6796 if test -f "$additional_libdir/lib$name.la"; then 6797 found_la="$additional_libdir/lib$name.la" 6798 fi 6799 else 6800 if test -f "$additional_libdir/lib$name.$libext"; then 6801 found_dir="$additional_libdir" 6802 found_a="$additional_libdir/lib$name.$libext" 6803 if test -f "$additional_libdir/lib$name.la"; then 6804 found_la="$additional_libdir/lib$name.la" 6805 fi 6806 fi 6807 fi 6808 fi 6809 if test "X$found_dir" = "X"; then 6810 for x in $LDFLAGS $LTLIBICONV; do 6811 6812 acl_save_prefix="$prefix" 6813 prefix="$acl_final_prefix" 6814 acl_save_exec_prefix="$exec_prefix" 6815 exec_prefix="$acl_final_exec_prefix" 6816 eval x=\"$x\" 6817 exec_prefix="$acl_save_exec_prefix" 6818 prefix="$acl_save_prefix" 6819 6820 case "$x" in 6821 -L*) 6822 dir=`echo "X$x" | sed -e 's/^X-L//'` 6823 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 6824 found_dir="$dir" 6825 found_so="$dir/lib$name.$shlibext" 6826 if test -f "$dir/lib$name.la"; then 6827 found_la="$dir/lib$name.la" 6828 fi 6829 else 6830 if test -f "$dir/lib$name.$libext"; then 6831 found_dir="$dir" 6832 found_a="$dir/lib$name.$libext" 6833 if test -f "$dir/lib$name.la"; then 6834 found_la="$dir/lib$name.la" 6835 fi 6836 fi 6837 fi 6838 ;; 6839 esac 6840 if test "X$found_dir" != "X"; then 6841 break 6842 fi 6843 done 6844 fi 6845 if test "X$found_dir" != "X"; then 6846 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 6847 if test "X$found_so" != "X"; then 6848 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 6849 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6850 else 6851 haveit= 6852 for x in $ltrpathdirs; do 6853 if test "X$x" = "X$found_dir"; then 6854 haveit=yes 6855 break 6856 fi 6857 done 6858 if test -z "$haveit"; then 6859 ltrpathdirs="$ltrpathdirs $found_dir" 6860 fi 6861 if test "$hardcode_direct" = yes; then 6862 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6863 else 6864 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 6865 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6866 haveit= 6867 for x in $rpathdirs; do 6868 if test "X$x" = "X$found_dir"; then 6869 haveit=yes 6870 break 6871 fi 6872 done 6873 if test -z "$haveit"; then 6874 rpathdirs="$rpathdirs $found_dir" 6875 fi 6876 else 6877 haveit= 6878 for x in $LDFLAGS $LIBICONV; do 6879 6880 acl_save_prefix="$prefix" 6881 prefix="$acl_final_prefix" 6882 acl_save_exec_prefix="$exec_prefix" 6883 exec_prefix="$acl_final_exec_prefix" 6884 eval x=\"$x\" 6885 exec_prefix="$acl_save_exec_prefix" 6886 prefix="$acl_save_prefix" 6887 6888 if test "X$x" = "X-L$found_dir"; then 6889 haveit=yes 6890 break 6891 fi 6892 done 6893 if test -z "$haveit"; then 6894 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 6895 fi 6896 if test "$hardcode_minus_L" != no; then 6897 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6898 else 6899 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 6900 fi 6901 fi 6902 fi 6903 fi 6904 else 6905 if test "X$found_a" != "X"; then 6906 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 6907 else 6908 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 6909 fi 6910 fi 6911 additional_includedir= 6912 case "$found_dir" in 6913 */lib | */lib/) 6914 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 6915 additional_includedir="$basedir/include" 6916 ;; 6917 esac 6918 if test "X$additional_includedir" != "X"; then 6919 if test "X$additional_includedir" != "X/usr/include"; then 6920 haveit= 6921 if test "X$additional_includedir" = "X/usr/local/include"; then 6922 if test -n "$GCC"; then 6923 case $host_os in 6924 linux*) haveit=yes;; 6925 esac 6926 fi 6927 fi 6928 if test -z "$haveit"; then 6929 for x in $CPPFLAGS $INCICONV; do 6930 6931 acl_save_prefix="$prefix" 6932 prefix="$acl_final_prefix" 6933 acl_save_exec_prefix="$exec_prefix" 6934 exec_prefix="$acl_final_exec_prefix" 6935 eval x=\"$x\" 6936 exec_prefix="$acl_save_exec_prefix" 6937 prefix="$acl_save_prefix" 6938 6939 if test "X$x" = "X-I$additional_includedir"; then 6940 haveit=yes 6941 break 6942 fi 6943 done 6944 if test -z "$haveit"; then 6945 if test -d "$additional_includedir"; then 6946 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 6947 fi 6948 fi 6949 fi 6950 fi 6951 fi 6952 if test -n "$found_la"; then 6953 save_libdir="$libdir" 6954 case "$found_la" in 6955 */* | *\\*) . "$found_la" ;; 6956 *) . "./$found_la" ;; 6957 esac 6958 libdir="$save_libdir" 6959 for dep in $dependency_libs; do 6960 case "$dep" in 6961 -L*) 6962 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 6963 if test "X$additional_libdir" != "X/usr/lib"; then 6964 haveit= 6965 if test "X$additional_libdir" = "X/usr/local/lib"; then 6966 if test -n "$GCC"; then 6967 case $host_os in 6968 linux*) haveit=yes;; 6969 esac 6970 fi 6971 fi 6972 if test -z "$haveit"; then 6973 haveit= 6974 for x in $LDFLAGS $LIBICONV; do 6975 6976 acl_save_prefix="$prefix" 6977 prefix="$acl_final_prefix" 6978 acl_save_exec_prefix="$exec_prefix" 6979 exec_prefix="$acl_final_exec_prefix" 6980 eval x=\"$x\" 6981 exec_prefix="$acl_save_exec_prefix" 6982 prefix="$acl_save_prefix" 6983 6984 if test "X$x" = "X-L$additional_libdir"; then 6985 haveit=yes 6986 break 6987 fi 6988 done 6989 if test -z "$haveit"; then 6990 if test -d "$additional_libdir"; then 6991 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 6992 fi 6993 fi 6994 haveit= 6995 for x in $LDFLAGS $LTLIBICONV; do 6996 6997 acl_save_prefix="$prefix" 6998 prefix="$acl_final_prefix" 6999 acl_save_exec_prefix="$exec_prefix" 7000 exec_prefix="$acl_final_exec_prefix" 7001 eval x=\"$x\" 7002 exec_prefix="$acl_save_exec_prefix" 7003 prefix="$acl_save_prefix" 7004 7005 if test "X$x" = "X-L$additional_libdir"; then 7006 haveit=yes 7007 break 7008 fi 7009 done 7010 if test -z "$haveit"; then 7011 if test -d "$additional_libdir"; then 7012 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 7013 fi 7014 fi 7015 fi 7016 fi 7017 ;; 7018 -R*) 7019 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7020 if test "$enable_rpath" != no; then 7021 haveit= 7022 for x in $rpathdirs; do 7023 if test "X$x" = "X$dir"; then 7024 haveit=yes 7025 break 7026 fi 7027 done 7028 if test -z "$haveit"; then 7029 rpathdirs="$rpathdirs $dir" 7030 fi 7031 haveit= 7032 for x in $ltrpathdirs; do 7033 if test "X$x" = "X$dir"; then 7034 haveit=yes 7035 break 7036 fi 7037 done 7038 if test -z "$haveit"; then 7039 ltrpathdirs="$ltrpathdirs $dir" 7040 fi 7041 fi 7042 ;; 7043 -l*) 7044 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7045 ;; 7046 *.la) 7047 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7048 ;; 7049 *) 7050 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 7051 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 7052 ;; 7053 esac 7054 done 7055 fi 7056 else 7057 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7058 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 7059 fi 7060 fi 7061 fi 7062 done 7063 done 7064 if test "X$rpathdirs" != "X"; then 7065 if test -n "$hardcode_libdir_separator"; then 7066 alldirs= 7067 for found_dir in $rpathdirs; do 7068 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 7069 done 7070 acl_save_libdir="$libdir" 7071 libdir="$alldirs" 7072 eval flag=\"$hardcode_libdir_flag_spec\" 7073 libdir="$acl_save_libdir" 7074 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7075 else 7076 for found_dir in $rpathdirs; do 7077 acl_save_libdir="$libdir" 7078 libdir="$found_dir" 7079 eval flag=\"$hardcode_libdir_flag_spec\" 7080 libdir="$acl_save_libdir" 7081 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7082 done 7083 fi 7084 fi 7085 if test "X$ltrpathdirs" != "X"; then 7086 for found_dir in $ltrpathdirs; do 7087 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 7088 done 7089 fi 7090 7091 7092 7093 7094 7095 7096 7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 7098$as_echo_n "checking for iconv... " >&6; } 7099if ${am_cv_func_iconv+:} false; then : 7100 $as_echo_n "(cached) " >&6 7101else 7102 7103 am_cv_func_iconv="no, consider installing GNU libiconv" 7104 am_cv_lib_iconv=no 7105 am_save_CPPFLAGS="$CPPFLAGS" 7106 CPPFLAGS="$CPPFLAGS $INCICONV" 7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7108/* end confdefs.h. */ 7109#include <stdlib.h> 7110#include <iconv.h> 7111int 7112main () 7113{ 7114iconv_t cd = iconv_open("",""); 7115 iconv(cd,NULL,NULL,NULL,NULL); 7116 iconv_close(cd); 7117 ; 7118 return 0; 7119} 7120_ACEOF 7121if ac_fn_cxx_try_link "$LINENO"; then : 7122 am_cv_func_iconv=yes 7123fi 7124rm -f core conftest.err conftest.$ac_objext \ 7125 conftest$ac_exeext conftest.$ac_ext 7126 CPPFLAGS="$am_save_CPPFLAGS" 7127 7128 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then 7129 for _libs in .libs _libs; do 7130 am_save_CPPFLAGS="$CPPFLAGS" 7131 am_save_LIBS="$LIBS" 7132 CPPFLAGS="$CPPFLAGS -I../libiconv/include" 7133 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a" 7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7135/* end confdefs.h. */ 7136#include <stdlib.h> 7137#include <iconv.h> 7138int 7139main () 7140{ 7141iconv_t cd = iconv_open("",""); 7142 iconv(cd,NULL,NULL,NULL,NULL); 7143 iconv_close(cd); 7144 ; 7145 return 0; 7146} 7147_ACEOF 7148if ac_fn_cxx_try_link "$LINENO"; then : 7149 INCICONV="-I../libiconv/include" 7150 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a 7151 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la 7152 am_cv_lib_iconv=yes 7153 am_cv_func_iconv=yes 7154fi 7155rm -f core conftest.err conftest.$ac_objext \ 7156 conftest$ac_exeext conftest.$ac_ext 7157 CPPFLAGS="$am_save_CPPFLAGS" 7158 LIBS="$am_save_LIBS" 7159 if test "$am_cv_func_iconv" = "yes"; then 7160 break 7161 fi 7162 done 7163 fi 7164 7165 if test "$am_cv_func_iconv" != yes; then 7166 am_save_CPPFLAGS="$CPPFLAGS" 7167 am_save_LIBS="$LIBS" 7168 CPPFLAGS="$CPPFLAGS $INCICONV" 7169 LIBS="$LIBS $LIBICONV" 7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7171/* end confdefs.h. */ 7172#include <stdlib.h> 7173#include <iconv.h> 7174int 7175main () 7176{ 7177iconv_t cd = iconv_open("",""); 7178 iconv(cd,NULL,NULL,NULL,NULL); 7179 iconv_close(cd); 7180 ; 7181 return 0; 7182} 7183_ACEOF 7184if ac_fn_cxx_try_link "$LINENO"; then : 7185 am_cv_lib_iconv=yes 7186 am_cv_func_iconv=yes 7187fi 7188rm -f core conftest.err conftest.$ac_objext \ 7189 conftest$ac_exeext conftest.$ac_ext 7190 CPPFLAGS="$am_save_CPPFLAGS" 7191 LIBS="$am_save_LIBS" 7192 fi 7193 7194fi 7195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 7196$as_echo "$am_cv_func_iconv" >&6; } 7197 if test "$am_cv_func_iconv" = yes; then 7198 7199$as_echo "#define HAVE_ICONV 1" >>confdefs.h 7200 7201 fi 7202 if test "$am_cv_lib_iconv" = yes; then 7203 7204 for element in $INCICONV; do 7205 haveit= 7206 for x in $CPPFLAGS; do 7207 7208 acl_save_prefix="$prefix" 7209 prefix="$acl_final_prefix" 7210 acl_save_exec_prefix="$exec_prefix" 7211 exec_prefix="$acl_final_exec_prefix" 7212 eval x=\"$x\" 7213 exec_prefix="$acl_save_exec_prefix" 7214 prefix="$acl_save_prefix" 7215 7216 if test "X$x" = "X$element"; then 7217 haveit=yes 7218 break 7219 fi 7220 done 7221 if test -z "$haveit"; then 7222 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7223 fi 7224 done 7225 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 7227$as_echo_n "checking how to link with libiconv... " >&6; } 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 7229$as_echo "$LIBICONV" >&6; } 7230 else 7231 LIBICONV= 7232 LTLIBICONV= 7233 fi 7234 7235 7236 7237 if test "$am_cv_func_iconv" = yes; then 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 7239$as_echo_n "checking for iconv declaration... " >&6; } 7240 if ${am_cv_proto_iconv+:} false; then : 7241 $as_echo_n "(cached) " >&6 7242else 7243 7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7245/* end confdefs.h. */ 7246 7247#include <stdlib.h> 7248#include <iconv.h> 7249extern 7250#ifdef __cplusplus 7251"C" 7252#endif 7253#if defined(__STDC__) || defined(__cplusplus) 7254size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 7255#else 7256size_t iconv(); 7257#endif 7258 7259int 7260main () 7261{ 7262 7263 ; 7264 return 0; 7265} 7266_ACEOF 7267if ac_fn_cxx_try_compile "$LINENO"; then : 7268 am_cv_proto_iconv_arg1="" 7269else 7270 am_cv_proto_iconv_arg1="const" 7271fi 7272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7273 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 7274fi 7275 7276 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 7278 }$am_cv_proto_iconv" >&5 7279$as_echo "${ac_t:- 7280 }$am_cv_proto_iconv" >&6; } 7281 7282cat >>confdefs.h <<_ACEOF 7283#define ICONV_CONST $am_cv_proto_iconv_arg1 7284_ACEOF 7285 7286 fi 7287 7288ac_ext=c 7289ac_cpp='$CPP $CPPFLAGS' 7290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7292ac_compiler_gnu=$ac_cv_c_compiler_gnu 7293 7294 7295# More defines and substitutions. 7296PACKAGE="$PACKAGE_TARNAME" 7297 7298cat >>confdefs.h <<_ACEOF 7299#define PACKAGE "$PACKAGE" 7300_ACEOF 7301 7302 7303 7304if test "x$enable_nls" != xno; then 7305 USED_CATALOGS='$(CATALOGS)' 7306else 7307 USED_CATALOGS= 7308fi 7309 7310 7311# Check whether --enable-maintainer-mode was given. 7312if test "${enable_maintainer_mode+set}" = set; then : 7313 enableval=$enable_maintainer_mode; 7314else 7315 enable_maintainer_mode=no 7316fi 7317 7318 7319if test "x$enable_maintainer_mode" = xno; then 7320 MAINT='#' 7321else 7322 MAINT= 7323fi 7324 7325 7326# Enable expensive internal checks 7327is_release= 7328if test -f $srcdir/../gcc/DEV-PHASE \ 7329 && test x"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental; then 7330 is_release=yes 7331fi 7332 7333# Check whether --enable-checking was given. 7334if test "${enable_checking+set}" = set; then : 7335 enableval=$enable_checking; ac_checking_flags="${enableval}" 7336else 7337 7338# Determine the default checks. 7339if test x$is_release = x ; then 7340 ac_checking_flags=yes 7341else 7342 ac_checking_flags=release 7343fi 7344fi 7345 7346IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," 7347for check in release $ac_checking_flags 7348do 7349 case $check in 7350 # these set all the flags to specific states 7351 yes|all) ac_checking=1 ; ac_assert_checking=1 ; ac_valgrind_checking= ;; 7352 no|none) ac_checking= ; ac_assert_checking= ; ac_valgrind_checking= ;; 7353 release) ac_checking= ; ac_assert_checking=1 ; ac_valgrind_checking= ;; 7354 # these enable particular checks 7355 assert) ac_assert_checking=1 ;; 7356 misc) ac_checking=1 ;; 7357 valgrind) ac_valgrind_checking=1 ;; 7358 # accept 7359 *) ;; 7360 esac 7361done 7362IFS="$ac_save_IFS" 7363 7364if test x$ac_checking != x ; then 7365 7366$as_echo "#define CHECKING_P 1" >>confdefs.h 7367 7368else 7369 $as_echo "#define CHECKING_P 0" >>confdefs.h 7370 7371fi 7372 7373if test x$ac_assert_checking != x ; then 7374 7375$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h 7376 7377fi 7378 7379if test x$ac_valgrind_checking != x ; then 7380 7381$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h 7382 7383fi 7384 7385# Check whether --enable-canonical-system-headers was given. 7386if test "${enable_canonical_system_headers+set}" = set; then : 7387 enableval=$enable_canonical_system_headers; 7388else 7389 enable_canonical_system_headers=yes 7390fi 7391 7392if test $enable_canonical_system_headers != no; then 7393 7394$as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h 7395 7396fi 7397 7398case $target in 7399 i?86-* | x86_64-*) 7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7401/* end confdefs.h. */ 7402 7403int 7404main () 7405{ 7406asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0)) 7407 ; 7408 return 0; 7409} 7410_ACEOF 7411if ac_fn_c_try_compile "$LINENO"; then : 7412 7413$as_echo "#define HAVE_SSE4 1" >>confdefs.h 7414 7415fi 7416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7417esac 7418 7419# Enable --enable-host-shared. 7420# Check whether --enable-host-shared was given. 7421if test "${enable_host_shared+set}" = set; then : 7422 enableval=$enable_host_shared; PICFLAG=-fPIC 7423else 7424 PICFLAG= 7425fi 7426 7427 7428 7429# Check whether --enable-valgrind-annotations was given. 7430if test "${enable_valgrind_annotations+set}" = set; then : 7431 enableval=$enable_valgrind_annotations; 7432else 7433 enable_valgrind_annotations=no 7434fi 7435 7436if test x$enable_valgrind_annotations != xno \ 7437 || test x$ac_valgrind_checking != x; then 7438 if (test $have_valgrind_h = no \ 7439 && test $gcc_cv_header_memcheck_h = no \ 7440 && test $gcc_cv_header_valgrind_memcheck_h = no); then 7441 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5 7442 fi 7443 7444$as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h 7445 7446fi 7447 7448# Output. 7449 7450ac_config_headers="$ac_config_headers config.h:config.in" 7451 7452ac_config_files="$ac_config_files Makefile" 7453 7454cat >confcache <<\_ACEOF 7455# This file is a shell script that caches the results of configure 7456# tests run on this system so they can be shared between configure 7457# scripts and configure runs, see configure's option --config-cache. 7458# It is not useful on other systems. If it contains results you don't 7459# want to keep, you may remove or edit it. 7460# 7461# config.status only pays attention to the cache file if you give it 7462# the --recheck option to rerun configure. 7463# 7464# `ac_cv_env_foo' variables (set or unset) will be overridden when 7465# loading this file, other *unset* `ac_cv_foo' will be assigned the 7466# following values. 7467 7468_ACEOF 7469 7470# The following way of writing the cache mishandles newlines in values, 7471# but we know of no workaround that is simple, portable, and efficient. 7472# So, we kill variables containing newlines. 7473# Ultrix sh set writes to stderr and can't be redirected directly, 7474# and sets the high bit in the cache file unless we assign to the vars. 7475( 7476 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7477 eval ac_val=\$$ac_var 7478 case $ac_val in #( 7479 *${as_nl}*) 7480 case $ac_var in #( 7481 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 7482$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 7483 esac 7484 case $ac_var in #( 7485 _ | IFS | as_nl) ;; #( 7486 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 7487 *) { eval $ac_var=; unset $ac_var;} ;; 7488 esac ;; 7489 esac 7490 done 7491 7492 (set) 2>&1 | 7493 case $as_nl`(ac_space=' '; set) 2>&1` in #( 7494 *${as_nl}ac_space=\ *) 7495 # `set' does not quote correctly, so add quotes: double-quote 7496 # substitution turns \\\\ into \\, and sed turns \\ into \. 7497 sed -n \ 7498 "s/'/'\\\\''/g; 7499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7500 ;; #( 7501 *) 7502 # `set' quotes correctly as required by POSIX, so do not add quotes. 7503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 7504 ;; 7505 esac | 7506 sort 7507) | 7508 sed ' 7509 /^ac_cv_env_/b end 7510 t clear 7511 :clear 7512 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7513 t end 7514 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7515 :end' >>confcache 7516if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7517 if test -w "$cache_file"; then 7518 if test "x$cache_file" != "x/dev/null"; then 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 7520$as_echo "$as_me: updating cache $cache_file" >&6;} 7521 if test ! -f "$cache_file" || test -h "$cache_file"; then 7522 cat confcache >"$cache_file" 7523 else 7524 case $cache_file in #( 7525 */* | ?:*) 7526 mv -f confcache "$cache_file"$$ && 7527 mv -f "$cache_file"$$ "$cache_file" ;; #( 7528 *) 7529 mv -f confcache "$cache_file" ;; 7530 esac 7531 fi 7532 fi 7533 else 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 7535$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 7536 fi 7537fi 7538rm -f confcache 7539 7540test "x$prefix" = xNONE && prefix=$ac_default_prefix 7541# Let make expand exec_prefix. 7542test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 7543 7544DEFS=-DHAVE_CONFIG_H 7545 7546ac_libobjs= 7547ac_ltlibobjs= 7548U= 7549for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 7550 # 1. Remove the extension, and $U if already installed. 7551 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 7552 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 7553 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 7554 # will be set to the directory where LIBOBJS objects are built. 7555 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 7556 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 7557done 7558LIBOBJS=$ac_libobjs 7559 7560LTLIBOBJS=$ac_ltlibobjs 7561 7562 7563 7564 7565: "${CONFIG_STATUS=./config.status}" 7566ac_write_fail=0 7567ac_clean_files_save=$ac_clean_files 7568ac_clean_files="$ac_clean_files $CONFIG_STATUS" 7569{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 7570$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 7571as_write_fail=0 7572cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 7573#! $SHELL 7574# Generated by $as_me. 7575# Run this file to recreate the current configuration. 7576# Compiler output produced by configure, useful for debugging 7577# configure, is in config.log if it exists. 7578 7579debug=false 7580ac_cs_recheck=false 7581ac_cs_silent=false 7582 7583SHELL=\${CONFIG_SHELL-$SHELL} 7584export SHELL 7585_ASEOF 7586cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 7587## -------------------- ## 7588## M4sh Initialization. ## 7589## -------------------- ## 7590 7591# Be more Bourne compatible 7592DUALCASE=1; export DUALCASE # for MKS sh 7593if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 7594 emulate sh 7595 NULLCMD=: 7596 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 7597 # is contrary to our usage. Disable this feature. 7598 alias -g '${1+"$@"}'='"$@"' 7599 setopt NO_GLOB_SUBST 7600else 7601 case `(set -o) 2>/dev/null` in #( 7602 *posix*) : 7603 set -o posix ;; #( 7604 *) : 7605 ;; 7606esac 7607fi 7608 7609 7610as_nl=' 7611' 7612export as_nl 7613# Printing a long string crashes Solaris 7 /usr/bin/printf. 7614as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7615as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 7616as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 7617# Prefer a ksh shell builtin over an external printf program on Solaris, 7618# but without wasting forks for bash or zsh. 7619if test -z "$BASH_VERSION$ZSH_VERSION" \ 7620 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 7621 as_echo='print -r --' 7622 as_echo_n='print -rn --' 7623elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 7624 as_echo='printf %s\n' 7625 as_echo_n='printf %s' 7626else 7627 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 7628 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 7629 as_echo_n='/usr/ucb/echo -n' 7630 else 7631 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 7632 as_echo_n_body='eval 7633 arg=$1; 7634 case $arg in #( 7635 *"$as_nl"*) 7636 expr "X$arg" : "X\\(.*\\)$as_nl"; 7637 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 7638 esac; 7639 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 7640 ' 7641 export as_echo_n_body 7642 as_echo_n='sh -c $as_echo_n_body as_echo' 7643 fi 7644 export as_echo_body 7645 as_echo='sh -c $as_echo_body as_echo' 7646fi 7647 7648# The user is always right. 7649if test "${PATH_SEPARATOR+set}" != set; then 7650 PATH_SEPARATOR=: 7651 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7652 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7653 PATH_SEPARATOR=';' 7654 } 7655fi 7656 7657 7658# IFS 7659# We need space, tab and new line, in precisely that order. Quoting is 7660# there to prevent editors from complaining about space-tab. 7661# (If _AS_PATH_WALK were called with IFS unset, it would disable word 7662# splitting by setting IFS to empty value.) 7663IFS=" "" $as_nl" 7664 7665# Find who we are. Look in the path if we contain no directory separator. 7666as_myself= 7667case $0 in #(( 7668 *[\\/]* ) as_myself=$0 ;; 7669 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7670for as_dir in $PATH 7671do 7672 IFS=$as_save_IFS 7673 test -z "$as_dir" && as_dir=. 7674 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7675 done 7676IFS=$as_save_IFS 7677 7678 ;; 7679esac 7680# We did not find ourselves, most probably we were run as `sh COMMAND' 7681# in which case we are not to be found in the path. 7682if test "x$as_myself" = x; then 7683 as_myself=$0 7684fi 7685if test ! -f "$as_myself"; then 7686 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 7687 exit 1 7688fi 7689 7690# Unset variables that we do not need and which cause bugs (e.g. in 7691# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 7692# suppresses any "Segmentation fault" message there. '((' could 7693# trigger a bug in pdksh 5.2.14. 7694for as_var in BASH_ENV ENV MAIL MAILPATH 7695do eval test x\${$as_var+set} = xset \ 7696 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 7697done 7698PS1='$ ' 7699PS2='> ' 7700PS4='+ ' 7701 7702# NLS nuisances. 7703LC_ALL=C 7704export LC_ALL 7705LANGUAGE=C 7706export LANGUAGE 7707 7708# CDPATH. 7709(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 7710 7711 7712# as_fn_error STATUS ERROR [LINENO LOG_FD] 7713# ---------------------------------------- 7714# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 7715# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 7716# script with STATUS, using 1 if that was 0. 7717as_fn_error () 7718{ 7719 as_status=$1; test $as_status -eq 0 && as_status=1 7720 if test "$4"; then 7721 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 7722 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 7723 fi 7724 $as_echo "$as_me: error: $2" >&2 7725 as_fn_exit $as_status 7726} # as_fn_error 7727 7728 7729# as_fn_set_status STATUS 7730# ----------------------- 7731# Set $? to STATUS, without forking. 7732as_fn_set_status () 7733{ 7734 return $1 7735} # as_fn_set_status 7736 7737# as_fn_exit STATUS 7738# ----------------- 7739# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 7740as_fn_exit () 7741{ 7742 set +e 7743 as_fn_set_status $1 7744 exit $1 7745} # as_fn_exit 7746 7747# as_fn_unset VAR 7748# --------------- 7749# Portably unset VAR. 7750as_fn_unset () 7751{ 7752 { eval $1=; unset $1;} 7753} 7754as_unset=as_fn_unset 7755# as_fn_append VAR VALUE 7756# ---------------------- 7757# Append the text in VALUE to the end of the definition contained in VAR. Take 7758# advantage of any shell optimizations that allow amortized linear growth over 7759# repeated appends, instead of the typical quadratic growth present in naive 7760# implementations. 7761if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 7762 eval 'as_fn_append () 7763 { 7764 eval $1+=\$2 7765 }' 7766else 7767 as_fn_append () 7768 { 7769 eval $1=\$$1\$2 7770 } 7771fi # as_fn_append 7772 7773# as_fn_arith ARG... 7774# ------------------ 7775# Perform arithmetic evaluation on the ARGs, and store the result in the 7776# global $as_val. Take advantage of shells that can avoid forks. The arguments 7777# must be portable across $(()) and expr. 7778if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 7779 eval 'as_fn_arith () 7780 { 7781 as_val=$(( $* )) 7782 }' 7783else 7784 as_fn_arith () 7785 { 7786 as_val=`expr "$@" || test $? -eq 1` 7787 } 7788fi # as_fn_arith 7789 7790 7791if expr a : '\(a\)' >/dev/null 2>&1 && 7792 test "X`expr 00001 : '.*\(...\)'`" = X001; then 7793 as_expr=expr 7794else 7795 as_expr=false 7796fi 7797 7798if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 7799 as_basename=basename 7800else 7801 as_basename=false 7802fi 7803 7804if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7805 as_dirname=dirname 7806else 7807 as_dirname=false 7808fi 7809 7810as_me=`$as_basename -- "$0" || 7811$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7812 X"$0" : 'X\(//\)$' \| \ 7813 X"$0" : 'X\(/\)' \| . 2>/dev/null || 7814$as_echo X/"$0" | 7815 sed '/^.*\/\([^/][^/]*\)\/*$/{ 7816 s//\1/ 7817 q 7818 } 7819 /^X\/\(\/\/\)$/{ 7820 s//\1/ 7821 q 7822 } 7823 /^X\/\(\/\).*/{ 7824 s//\1/ 7825 q 7826 } 7827 s/.*/./; q'` 7828 7829# Avoid depending upon Character Ranges. 7830as_cr_letters='abcdefghijklmnopqrstuvwxyz' 7831as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7832as_cr_Letters=$as_cr_letters$as_cr_LETTERS 7833as_cr_digits='0123456789' 7834as_cr_alnum=$as_cr_Letters$as_cr_digits 7835 7836ECHO_C= ECHO_N= ECHO_T= 7837case `echo -n x` in #((((( 7838-n*) 7839 case `echo 'xy\c'` in 7840 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7841 xy) ECHO_C='\c';; 7842 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 7843 ECHO_T=' ';; 7844 esac;; 7845*) 7846 ECHO_N='-n';; 7847esac 7848 7849rm -f conf$$ conf$$.exe conf$$.file 7850if test -d conf$$.dir; then 7851 rm -f conf$$.dir/conf$$.file 7852else 7853 rm -f conf$$.dir 7854 mkdir conf$$.dir 2>/dev/null 7855fi 7856if (echo >conf$$.file) 2>/dev/null; then 7857 if ln -s conf$$.file conf$$ 2>/dev/null; then 7858 as_ln_s='ln -s' 7859 # ... but there are two gotchas: 7860 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7861 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7862 # In both cases, we have to default to `cp -pR'. 7863 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7864 as_ln_s='cp -pR' 7865 elif ln conf$$.file conf$$ 2>/dev/null; then 7866 as_ln_s=ln 7867 else 7868 as_ln_s='cp -pR' 7869 fi 7870else 7871 as_ln_s='cp -pR' 7872fi 7873rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 7874rmdir conf$$.dir 2>/dev/null 7875 7876 7877# as_fn_mkdir_p 7878# ------------- 7879# Create "$as_dir" as a directory, including parents if necessary. 7880as_fn_mkdir_p () 7881{ 7882 7883 case $as_dir in #( 7884 -*) as_dir=./$as_dir;; 7885 esac 7886 test -d "$as_dir" || eval $as_mkdir_p || { 7887 as_dirs= 7888 while :; do 7889 case $as_dir in #( 7890 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7891 *) as_qdir=$as_dir;; 7892 esac 7893 as_dirs="'$as_qdir' $as_dirs" 7894 as_dir=`$as_dirname -- "$as_dir" || 7895$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7896 X"$as_dir" : 'X\(//\)[^/]' \| \ 7897 X"$as_dir" : 'X\(//\)$' \| \ 7898 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7899$as_echo X"$as_dir" | 7900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7901 s//\1/ 7902 q 7903 } 7904 /^X\(\/\/\)[^/].*/{ 7905 s//\1/ 7906 q 7907 } 7908 /^X\(\/\/\)$/{ 7909 s//\1/ 7910 q 7911 } 7912 /^X\(\/\).*/{ 7913 s//\1/ 7914 q 7915 } 7916 s/.*/./; q'` 7917 test -d "$as_dir" && break 7918 done 7919 test -z "$as_dirs" || eval "mkdir $as_dirs" 7920 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 7921 7922 7923} # as_fn_mkdir_p 7924if mkdir -p . 2>/dev/null; then 7925 as_mkdir_p='mkdir -p "$as_dir"' 7926else 7927 test -d ./-p && rmdir ./-p 7928 as_mkdir_p=false 7929fi 7930 7931 7932# as_fn_executable_p FILE 7933# ----------------------- 7934# Test if FILE is an executable regular file. 7935as_fn_executable_p () 7936{ 7937 test -f "$1" && test -x "$1" 7938} # as_fn_executable_p 7939as_test_x='test -x' 7940as_executable_p=as_fn_executable_p 7941 7942# Sed expression to map a string onto a valid CPP name. 7943as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7944 7945# Sed expression to map a string onto a valid variable name. 7946as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7947 7948 7949exec 6>&1 7950## ----------------------------------- ## 7951## Main body of $CONFIG_STATUS script. ## 7952## ----------------------------------- ## 7953_ASEOF 7954test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 7955 7956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7957# Save the log message, to keep $0 and so on meaningful, and to 7958# report actual input values of CONFIG_FILES etc. instead of their 7959# values after options handling. 7960ac_log=" 7961This file was extended by cpplib $as_me , which was 7962generated by GNU Autoconf 2.69. Invocation command line was 7963 7964 CONFIG_FILES = $CONFIG_FILES 7965 CONFIG_HEADERS = $CONFIG_HEADERS 7966 CONFIG_LINKS = $CONFIG_LINKS 7967 CONFIG_COMMANDS = $CONFIG_COMMANDS 7968 $ $0 $@ 7969 7970on `(hostname || uname -n) 2>/dev/null | sed 1q` 7971" 7972 7973_ACEOF 7974 7975case $ac_config_files in *" 7976"*) set x $ac_config_files; shift; ac_config_files=$*;; 7977esac 7978 7979case $ac_config_headers in *" 7980"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 7981esac 7982 7983 7984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7985# Files that config.status was made for. 7986config_files="$ac_config_files" 7987config_headers="$ac_config_headers" 7988config_commands="$ac_config_commands" 7989 7990_ACEOF 7991 7992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7993ac_cs_usage="\ 7994\`$as_me' instantiates files and other configuration actions 7995from templates according to the current configuration. Unless the files 7996and actions are specified as TAGs, all are instantiated by default. 7997 7998Usage: $0 [OPTION]... [TAG]... 7999 8000 -h, --help print this help, then exit 8001 -V, --version print version number and configuration settings, then exit 8002 --config print configuration, then exit 8003 -q, --quiet, --silent 8004 do not print progress messages 8005 -d, --debug don't remove temporary files 8006 --recheck update $as_me by reconfiguring in the same conditions 8007 --file=FILE[:TEMPLATE] 8008 instantiate the configuration file FILE 8009 --header=FILE[:TEMPLATE] 8010 instantiate the configuration header FILE 8011 8012Configuration files: 8013$config_files 8014 8015Configuration headers: 8016$config_headers 8017 8018Configuration commands: 8019$config_commands 8020 8021Report bugs to <gcc-bugs@gcc.gnu.org>." 8022 8023_ACEOF 8024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8025ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8026ac_cs_version="\\ 8027cpplib config.status 8028configured by $0, generated by GNU Autoconf 2.69, 8029 with options \\"\$ac_cs_config\\" 8030 8031Copyright (C) 2012 Free Software Foundation, Inc. 8032This config.status script is free software; the Free Software Foundation 8033gives unlimited permission to copy, distribute and modify it." 8034 8035ac_pwd='$ac_pwd' 8036srcdir='$srcdir' 8037INSTALL='$INSTALL' 8038test -n "\$AWK" || AWK=awk 8039_ACEOF 8040 8041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8042# The default lists apply if the user does not specify any file. 8043ac_need_defaults=: 8044while test $# != 0 8045do 8046 case $1 in 8047 --*=?*) 8048 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8049 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 8050 ac_shift=: 8051 ;; 8052 --*=) 8053 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8054 ac_optarg= 8055 ac_shift=: 8056 ;; 8057 *) 8058 ac_option=$1 8059 ac_optarg=$2 8060 ac_shift=shift 8061 ;; 8062 esac 8063 8064 case $ac_option in 8065 # Handling of the options. 8066 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8067 ac_cs_recheck=: ;; 8068 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8069 $as_echo "$ac_cs_version"; exit ;; 8070 --config | --confi | --conf | --con | --co | --c ) 8071 $as_echo "$ac_cs_config"; exit ;; 8072 --debug | --debu | --deb | --de | --d | -d ) 8073 debug=: ;; 8074 --file | --fil | --fi | --f ) 8075 $ac_shift 8076 case $ac_optarg in 8077 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8078 '') as_fn_error $? "missing file argument" ;; 8079 esac 8080 as_fn_append CONFIG_FILES " '$ac_optarg'" 8081 ac_need_defaults=false;; 8082 --header | --heade | --head | --hea ) 8083 $ac_shift 8084 case $ac_optarg in 8085 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8086 esac 8087 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 8088 ac_need_defaults=false;; 8089 --he | --h) 8090 # Conflict between --help and --header 8091 as_fn_error $? "ambiguous option: \`$1' 8092Try \`$0 --help' for more information.";; 8093 --help | --hel | -h ) 8094 $as_echo "$ac_cs_usage"; exit ;; 8095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8096 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8097 ac_cs_silent=: ;; 8098 8099 # This is an error. 8100 -*) as_fn_error $? "unrecognized option: \`$1' 8101Try \`$0 --help' for more information." ;; 8102 8103 *) as_fn_append ac_config_targets " $1" 8104 ac_need_defaults=false ;; 8105 8106 esac 8107 shift 8108done 8109 8110ac_configure_extra_args= 8111 8112if $ac_cs_silent; then 8113 exec 6>/dev/null 8114 ac_configure_extra_args="$ac_configure_extra_args --silent" 8115fi 8116 8117_ACEOF 8118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8119if \$ac_cs_recheck; then 8120 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8121 shift 8122 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8123 CONFIG_SHELL='$SHELL' 8124 export CONFIG_SHELL 8125 exec "\$@" 8126fi 8127 8128_ACEOF 8129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8130exec 5>>config.log 8131{ 8132 echo 8133 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8134## Running $as_me. ## 8135_ASBOX 8136 $as_echo "$ac_log" 8137} >&5 8138 8139_ACEOF 8140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8141# 8142# INIT-COMMANDS 8143# 8144ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR 8145 8146_ACEOF 8147 8148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8149 8150# Handling of arguments. 8151for ac_config_target in $ac_config_targets 8152do 8153 case $ac_config_target in 8154 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; 8155 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 8156 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8157 8158 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 8159 esac 8160done 8161 8162 8163# If the user did not use the arguments to specify the items to instantiate, 8164# then the envvar interface is used. Set only those that are not. 8165# We use the long form for the default assignment because of an extremely 8166# bizarre bug on SunOS 4.1.3. 8167if $ac_need_defaults; then 8168 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8169 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8170 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 8171fi 8172 8173# Have a temporary directory for convenience. Make it in the build tree 8174# simply because there is no reason against having it here, and in addition, 8175# creating and moving files from /tmp can sometimes cause problems. 8176# Hook for its removal unless debugging. 8177# Note that there is a small window in which the directory will not be cleaned: 8178# after its creation but before its name has been assigned to `$tmp'. 8179$debug || 8180{ 8181 tmp= ac_tmp= 8182 trap 'exit_status=$? 8183 : "${ac_tmp:=$tmp}" 8184 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 8185' 0 8186 trap 'as_fn_exit 1' 1 2 13 15 8187} 8188# Create a (secure) tmp directory for tmp files. 8189 8190{ 8191 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8192 test -d "$tmp" 8193} || 8194{ 8195 tmp=./conf$$-$RANDOM 8196 (umask 077 && mkdir "$tmp") 8197} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 8198ac_tmp=$tmp 8199 8200# Set up the scripts for CONFIG_FILES section. 8201# No need to generate them if there are no CONFIG_FILES. 8202# This happens for instance with `./config.status config.h'. 8203if test -n "$CONFIG_FILES"; then 8204 8205 8206ac_cr=`echo X | tr X '\015'` 8207# On cygwin, bash can eat \r inside `` if the user requested igncr. 8208# But we know of no other shell where ac_cr would be empty at this 8209# point, so we can use a bashism as a fallback. 8210if test "x$ac_cr" = x; then 8211 eval ac_cr=\$\'\\r\' 8212fi 8213ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 8214if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 8215 ac_cs_awk_cr='\\r' 8216else 8217 ac_cs_awk_cr=$ac_cr 8218fi 8219 8220echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 8221_ACEOF 8222 8223 8224{ 8225 echo "cat >conf$$subs.awk <<_ACEOF" && 8226 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 8227 echo "_ACEOF" 8228} >conf$$subs.sh || 8229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8230ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 8231ac_delim='%!_!# ' 8232for ac_last_try in false false false false false :; do 8233 . ./conf$$subs.sh || 8234 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8235 8236 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 8237 if test $ac_delim_n = $ac_delim_num; then 8238 break 8239 elif $ac_last_try; then 8240 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8241 else 8242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8243 fi 8244done 8245rm -f conf$$subs.sh 8246 8247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8248cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 8249_ACEOF 8250sed -n ' 8251h 8252s/^/S["/; s/!.*/"]=/ 8253p 8254g 8255s/^[^!]*!// 8256:repl 8257t repl 8258s/'"$ac_delim"'$// 8259t delim 8260:nl 8261h 8262s/\(.\{148\}\)..*/\1/ 8263t more1 8264s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 8265p 8266n 8267b repl 8268:more1 8269s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8270p 8271g 8272s/.\{148\}// 8273t nl 8274:delim 8275h 8276s/\(.\{148\}\)..*/\1/ 8277t more2 8278s/["\\]/\\&/g; s/^/"/; s/$/"/ 8279p 8280b 8281:more2 8282s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8283p 8284g 8285s/.\{148\}// 8286t delim 8287' <conf$$subs.awk | sed ' 8288/^[^""]/{ 8289 N 8290 s/\n// 8291} 8292' >>$CONFIG_STATUS || ac_write_fail=1 8293rm -f conf$$subs.awk 8294cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8295_ACAWK 8296cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 8297 for (key in S) S_is_set[key] = 1 8298 FS = "" 8299 8300} 8301{ 8302 line = $ 0 8303 nfields = split(line, field, "@") 8304 substed = 0 8305 len = length(field[1]) 8306 for (i = 2; i < nfields; i++) { 8307 key = field[i] 8308 keylen = length(key) 8309 if (S_is_set[key]) { 8310 value = S[key] 8311 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 8312 len += length(value) + length(field[++i]) 8313 substed = 1 8314 } else 8315 len += 1 + keylen 8316 } 8317 8318 print line 8319} 8320 8321_ACAWK 8322_ACEOF 8323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8324if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 8325 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 8326else 8327 cat 8328fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 8329 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 8330_ACEOF 8331 8332# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 8333# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 8334# trailing colons and then remove the whole line if VPATH becomes empty 8335# (actually we leave an empty line to preserve line numbers). 8336if test "x$srcdir" = x.; then 8337 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 8338h 8339s/// 8340s/^/:/ 8341s/[ ]*$/:/ 8342s/:\$(srcdir):/:/g 8343s/:\${srcdir}:/:/g 8344s/:@srcdir@:/:/g 8345s/^:*// 8346s/:*$// 8347x 8348s/\(=[ ]*\).*/\1/ 8349G 8350s/\n// 8351s/^[^=]*=[ ]*$// 8352}' 8353fi 8354 8355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8356fi # test -n "$CONFIG_FILES" 8357 8358# Set up the scripts for CONFIG_HEADERS section. 8359# No need to generate them if there are no CONFIG_HEADERS. 8360# This happens for instance with `./config.status Makefile'. 8361if test -n "$CONFIG_HEADERS"; then 8362cat >"$ac_tmp/defines.awk" <<\_ACAWK || 8363BEGIN { 8364_ACEOF 8365 8366# Transform confdefs.h into an awk script `defines.awk', embedded as 8367# here-document in config.status, that substitutes the proper values into 8368# config.h.in to produce config.h. 8369 8370# Create a delimiter string that does not exist in confdefs.h, to ease 8371# handling of long lines. 8372ac_delim='%!_!# ' 8373for ac_last_try in false false :; do 8374 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 8375 if test -z "$ac_tt"; then 8376 break 8377 elif $ac_last_try; then 8378 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 8379 else 8380 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8381 fi 8382done 8383 8384# For the awk script, D is an array of macro values keyed by name, 8385# likewise P contains macro parameters if any. Preserve backslash 8386# newline sequences. 8387 8388ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 8389sed -n ' 8390s/.\{148\}/&'"$ac_delim"'/g 8391t rset 8392:rset 8393s/^[ ]*#[ ]*define[ ][ ]*/ / 8394t def 8395d 8396:def 8397s/\\$// 8398t bsnl 8399s/["\\]/\\&/g 8400s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8401D["\1"]=" \3"/p 8402s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 8403d 8404:bsnl 8405s/["\\]/\\&/g 8406s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8407D["\1"]=" \3\\\\\\n"\\/p 8408t cont 8409s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 8410t cont 8411d 8412:cont 8413n 8414s/.\{148\}/&'"$ac_delim"'/g 8415t clear 8416:clear 8417s/\\$// 8418t bsnlc 8419s/["\\]/\\&/g; s/^/"/; s/$/"/p 8420d 8421:bsnlc 8422s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 8423b cont 8424' <confdefs.h | sed ' 8425s/'"$ac_delim"'/"\\\ 8426"/g' >>$CONFIG_STATUS || ac_write_fail=1 8427 8428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8429 for (key in D) D_is_set[key] = 1 8430 FS = "" 8431} 8432/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 8433 line = \$ 0 8434 split(line, arg, " ") 8435 if (arg[1] == "#") { 8436 defundef = arg[2] 8437 mac1 = arg[3] 8438 } else { 8439 defundef = substr(arg[1], 2) 8440 mac1 = arg[2] 8441 } 8442 split(mac1, mac2, "(") #) 8443 macro = mac2[1] 8444 prefix = substr(line, 1, index(line, defundef) - 1) 8445 if (D_is_set[macro]) { 8446 # Preserve the white space surrounding the "#". 8447 print prefix "define", macro P[macro] D[macro] 8448 next 8449 } else { 8450 # Replace #undef with comments. This is necessary, for example, 8451 # in the case of _POSIX_SOURCE, which is predefined and required 8452 # on some systems where configure will not decide to define it. 8453 if (defundef == "undef") { 8454 print "/*", prefix defundef, macro, "*/" 8455 next 8456 } 8457 } 8458} 8459{ print } 8460_ACAWK 8461_ACEOF 8462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8463 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 8464fi # test -n "$CONFIG_HEADERS" 8465 8466 8467eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 8468shift 8469for ac_tag 8470do 8471 case $ac_tag in 8472 :[FHLC]) ac_mode=$ac_tag; continue;; 8473 esac 8474 case $ac_mode$ac_tag in 8475 :[FHL]*:*);; 8476 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 8477 :[FH]-) ac_tag=-:-;; 8478 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 8479 esac 8480 ac_save_IFS=$IFS 8481 IFS=: 8482 set x $ac_tag 8483 IFS=$ac_save_IFS 8484 shift 8485 ac_file=$1 8486 shift 8487 8488 case $ac_mode in 8489 :L) ac_source=$1;; 8490 :[FH]) 8491 ac_file_inputs= 8492 for ac_f 8493 do 8494 case $ac_f in 8495 -) ac_f="$ac_tmp/stdin";; 8496 *) # Look for the file first in the build tree, then in the source tree 8497 # (if the path is not absolute). The absolute path cannot be DOS-style, 8498 # because $ac_f cannot contain `:'. 8499 test -f "$ac_f" || 8500 case $ac_f in 8501 [\\/$]*) false;; 8502 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 8503 esac || 8504 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 8505 esac 8506 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 8507 as_fn_append ac_file_inputs " '$ac_f'" 8508 done 8509 8510 # Let's still pretend it is `configure' which instantiates (i.e., don't 8511 # use $as_me), people would be surprised to read: 8512 # /* config.h. Generated by config.status. */ 8513 configure_input='Generated from '` 8514 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 8515 `' by configure.' 8516 if test x"$ac_file" != x-; then 8517 configure_input="$ac_file. $configure_input" 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 8519$as_echo "$as_me: creating $ac_file" >&6;} 8520 fi 8521 # Neutralize special characters interpreted by sed in replacement strings. 8522 case $configure_input in #( 8523 *\&* | *\|* | *\\* ) 8524 ac_sed_conf_input=`$as_echo "$configure_input" | 8525 sed 's/[\\\\&|]/\\\\&/g'`;; #( 8526 *) ac_sed_conf_input=$configure_input;; 8527 esac 8528 8529 case $ac_tag in 8530 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 8531 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 8532 esac 8533 ;; 8534 esac 8535 8536 ac_dir=`$as_dirname -- "$ac_file" || 8537$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8538 X"$ac_file" : 'X\(//\)[^/]' \| \ 8539 X"$ac_file" : 'X\(//\)$' \| \ 8540 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 8541$as_echo X"$ac_file" | 8542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8543 s//\1/ 8544 q 8545 } 8546 /^X\(\/\/\)[^/].*/{ 8547 s//\1/ 8548 q 8549 } 8550 /^X\(\/\/\)$/{ 8551 s//\1/ 8552 q 8553 } 8554 /^X\(\/\).*/{ 8555 s//\1/ 8556 q 8557 } 8558 s/.*/./; q'` 8559 as_dir="$ac_dir"; as_fn_mkdir_p 8560 ac_builddir=. 8561 8562case "$ac_dir" in 8563.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 8564*) 8565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 8566 # A ".." for each directory in $ac_dir_suffix. 8567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 8568 case $ac_top_builddir_sub in 8569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 8570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 8571 esac ;; 8572esac 8573ac_abs_top_builddir=$ac_pwd 8574ac_abs_builddir=$ac_pwd$ac_dir_suffix 8575# for backward compatibility: 8576ac_top_builddir=$ac_top_build_prefix 8577 8578case $srcdir in 8579 .) # We are building in place. 8580 ac_srcdir=. 8581 ac_top_srcdir=$ac_top_builddir_sub 8582 ac_abs_top_srcdir=$ac_pwd ;; 8583 [\\/]* | ?:[\\/]* ) # Absolute name. 8584 ac_srcdir=$srcdir$ac_dir_suffix; 8585 ac_top_srcdir=$srcdir 8586 ac_abs_top_srcdir=$srcdir ;; 8587 *) # Relative name. 8588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 8589 ac_top_srcdir=$ac_top_build_prefix$srcdir 8590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 8591esac 8592ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 8593 8594 8595 case $ac_mode in 8596 :F) 8597 # 8598 # CONFIG_FILE 8599 # 8600 8601 case $INSTALL in 8602 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8603 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 8604 esac 8605_ACEOF 8606 8607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8608# If the template does not know about datarootdir, expand it. 8609# FIXME: This hack should be removed a few years after 2.60. 8610ac_datarootdir_hack=; ac_datarootdir_seen= 8611ac_sed_dataroot=' 8612/datarootdir/ { 8613 p 8614 q 8615} 8616/@datadir@/p 8617/@docdir@/p 8618/@infodir@/p 8619/@localedir@/p 8620/@mandir@/p' 8621case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 8622*datarootdir*) ac_datarootdir_seen=yes;; 8623*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 8625$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 8626_ACEOF 8627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8628 ac_datarootdir_hack=' 8629 s&@datadir@&$datadir&g 8630 s&@docdir@&$docdir&g 8631 s&@infodir@&$infodir&g 8632 s&@localedir@&$localedir&g 8633 s&@mandir@&$mandir&g 8634 s&\\\${datarootdir}&$datarootdir&g' ;; 8635esac 8636_ACEOF 8637 8638# Neutralize VPATH when `$srcdir' = `.'. 8639# Shell code in configure.ac might set extrasub. 8640# FIXME: do we really want to maintain this feature? 8641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8642ac_sed_extra="$ac_vpsub 8643$extrasub 8644_ACEOF 8645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8646:t 8647/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8648s|@configure_input@|$ac_sed_conf_input|;t t 8649s&@top_builddir@&$ac_top_builddir_sub&;t t 8650s&@top_build_prefix@&$ac_top_build_prefix&;t t 8651s&@srcdir@&$ac_srcdir&;t t 8652s&@abs_srcdir@&$ac_abs_srcdir&;t t 8653s&@top_srcdir@&$ac_top_srcdir&;t t 8654s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 8655s&@builddir@&$ac_builddir&;t t 8656s&@abs_builddir@&$ac_abs_builddir&;t t 8657s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 8658s&@INSTALL@&$ac_INSTALL&;t t 8659$ac_datarootdir_hack 8660" 8661eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 8662 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8663 8664test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 8665 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 8666 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 8667 "$ac_tmp/out"`; test -z "$ac_out"; } && 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8669which seems to be undefined. Please make sure it is defined" >&5 8670$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8671which seems to be undefined. Please make sure it is defined" >&2;} 8672 8673 rm -f "$ac_tmp/stdin" 8674 case $ac_file in 8675 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 8676 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 8677 esac \ 8678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8679 ;; 8680 :H) 8681 # 8682 # CONFIG_HEADER 8683 # 8684 if test x"$ac_file" != x-; then 8685 { 8686 $as_echo "/* $configure_input */" \ 8687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 8688 } >"$ac_tmp/config.h" \ 8689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8690 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 8691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 8692$as_echo "$as_me: $ac_file is unchanged" >&6;} 8693 else 8694 rm -f "$ac_file" 8695 mv "$ac_tmp/config.h" "$ac_file" \ 8696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8697 fi 8698 else 8699 $as_echo "/* $configure_input */" \ 8700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 8701 || as_fn_error $? "could not create -" "$LINENO" 5 8702 fi 8703 ;; 8704 8705 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 8706$as_echo "$as_me: executing $ac_file commands" >&6;} 8707 ;; 8708 esac 8709 8710 8711 case $ac_file$ac_mode in 8712 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; 8713 "config.h":H) echo timestamp > stamp-h1 ;; 8714 8715 esac 8716done # for ac_tag 8717 8718 8719as_fn_exit 0 8720_ACEOF 8721ac_clean_files=$ac_clean_files_save 8722 8723test $ac_write_fail = 0 || 8724 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 8725 8726 8727# configure is writing to config.log, and then calls config.status. 8728# config.status does its own redirection, appending to config.log. 8729# Unfortunately, on DOS this fails, as config.log is still kept open 8730# by configure, so config.status won't be able to write to it; its 8731# output is simply discarded. So we exec the FD to /dev/null, 8732# effectively closing config.log, so it can be properly (re)opened and 8733# appended to by config.status. When coming back to configure, we 8734# need to make the FD available again. 8735if test "$no_create" != yes; then 8736 ac_cs_success=: 8737 ac_config_status_args= 8738 test "$silent" = yes && 8739 ac_config_status_args="$ac_config_status_args --quiet" 8740 exec 5>/dev/null 8741 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8742 exec 5>>config.log 8743 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8744 # would make configure fail if this is the last instruction. 8745 $ac_cs_success || as_fn_exit 1 8746fi 8747if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 8749$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 8750fi 8751 8752