1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for wcalc 2.5. 4# 5# Report bugs to <kyle-wcalc@memoryhole.net>. 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: kyle-wcalc@memoryhole.net about your system, including 271$0: any error possibly output before this message. Then 272$0: install a modern shell, or manually run the script 273$0: under such a 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='wcalc' 582PACKAGE_TARNAME='wcalc' 583PACKAGE_VERSION='2.5' 584PACKAGE_STRING='wcalc 2.5' 585PACKAGE_BUGREPORT='kyle-wcalc@memoryhole.net' 586PACKAGE_URL='' 587 588ac_unique_file="src/cli/main.c" 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='am__EXEEXT_FALSE 626am__EXEEXT_TRUE 627LTLIBOBJS 628LIBOBJS 629MPFR_LDFLAGS 630MPFR_CPPFLAGS 631GMP_LDFLAGS 632GMP_CPPFLAGS 633EGREP 634GREP 635CPP 636LEXLIB 637LEX_OUTPUT_ROOT 638LEX 639YFLAGS 640YACC 641RANLIB 642am__fastdepCC_FALSE 643am__fastdepCC_TRUE 644CCDEPMODE 645am__nodep 646AMDEPBACKSLASH 647AMDEP_FALSE 648AMDEP_TRUE 649am__quote 650am__include 651DEPDIR 652OBJEXT 653EXEEXT 654ac_ct_CC 655CPPFLAGS 656LDFLAGS 657CFLAGS 658CC 659AM_BACKSLASH 660AM_DEFAULT_VERBOSITY 661AM_DEFAULT_V 662AM_V 663am__untar 664am__tar 665AMTAR 666am__leading_dot 667SET_MAKE 668AWK 669mkdir_p 670MKDIR_P 671INSTALL_STRIP_PROGRAM 672STRIP 673install_sh 674MAKEINFO 675AUTOHEADER 676AUTOMAKE 677AUTOCONF 678ACLOCAL 679VERSION 680PACKAGE 681CYGPATH_W 682am__isrc 683INSTALL_DATA 684INSTALL_SCRIPT 685INSTALL_PROGRAM 686target_alias 687host_alias 688build_alias 689LIBS 690ECHO_T 691ECHO_N 692ECHO_C 693DEFS 694mandir 695localedir 696libdir 697psdir 698pdfdir 699dvidir 700htmldir 701infodir 702docdir 703oldincludedir 704includedir 705localstatedir 706sharedstatedir 707sysconfdir 708datadir 709datarootdir 710libexecdir 711sbindir 712bindir 713program_transform_name 714prefix 715exec_prefix 716PACKAGE_URL 717PACKAGE_BUGREPORT 718PACKAGE_STRING 719PACKAGE_VERSION 720PACKAGE_TARNAME 721PACKAGE_NAME 722PATH_SEPARATOR 723SHELL' 724ac_subst_files='' 725ac_user_opts=' 726enable_option_checking 727enable_silent_rules 728enable_rpath 729enable_picky 730enable_dependency_tracking 731with_readline 732with_gmp 733with_mpfr 734' 735 ac_precious_vars='build_alias 736host_alias 737target_alias 738CC 739CFLAGS 740LDFLAGS 741LIBS 742CPPFLAGS 743YACC 744YFLAGS 745CPP' 746 747 748# Initialize some variables set by options. 749ac_init_help= 750ac_init_version=false 751ac_unrecognized_opts= 752ac_unrecognized_sep= 753# The variables have the same names as the options, with 754# dashes changed to underlines. 755cache_file=/dev/null 756exec_prefix=NONE 757no_create= 758no_recursion= 759prefix=NONE 760program_prefix=NONE 761program_suffix=NONE 762program_transform_name=s,x,x, 763silent= 764site= 765srcdir= 766verbose= 767x_includes=NONE 768x_libraries=NONE 769 770# Installation directory options. 771# These are left unexpanded so users can "make install exec_prefix=/foo" 772# and all the variables that are supposed to be based on exec_prefix 773# by default will actually change. 774# Use braces instead of parens because sh, perl, etc. also accept them. 775# (The list follows the same order as the GNU Coding Standards.) 776bindir='${exec_prefix}/bin' 777sbindir='${exec_prefix}/sbin' 778libexecdir='${exec_prefix}/libexec' 779datarootdir='${prefix}/share' 780datadir='${datarootdir}' 781sysconfdir='${prefix}/etc' 782sharedstatedir='${prefix}/com' 783localstatedir='${prefix}/var' 784includedir='${prefix}/include' 785oldincludedir='/usr/include' 786docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 787infodir='${datarootdir}/info' 788htmldir='${docdir}' 789dvidir='${docdir}' 790pdfdir='${docdir}' 791psdir='${docdir}' 792libdir='${exec_prefix}/lib' 793localedir='${datarootdir}/locale' 794mandir='${datarootdir}/man' 795 796ac_prev= 797ac_dashdash= 798for ac_option 799do 800 # If the previous option needs an argument, assign it. 801 if test -n "$ac_prev"; then 802 eval $ac_prev=\$ac_option 803 ac_prev= 804 continue 805 fi 806 807 case $ac_option in 808 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 809 *=) ac_optarg= ;; 810 *) ac_optarg=yes ;; 811 esac 812 813 # Accept the important Cygnus configure options, so we can diagnose typos. 814 815 case $ac_dashdash$ac_option in 816 --) 817 ac_dashdash=yes ;; 818 819 -bindir | --bindir | --bindi | --bind | --bin | --bi) 820 ac_prev=bindir ;; 821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 822 bindir=$ac_optarg ;; 823 824 -build | --build | --buil | --bui | --bu) 825 ac_prev=build_alias ;; 826 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 827 build_alias=$ac_optarg ;; 828 829 -cache-file | --cache-file | --cache-fil | --cache-fi \ 830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 831 ac_prev=cache_file ;; 832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 834 cache_file=$ac_optarg ;; 835 836 --config-cache | -C) 837 cache_file=config.cache ;; 838 839 -datadir | --datadir | --datadi | --datad) 840 ac_prev=datadir ;; 841 -datadir=* | --datadir=* | --datadi=* | --datad=*) 842 datadir=$ac_optarg ;; 843 844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 845 | --dataroo | --dataro | --datar) 846 ac_prev=datarootdir ;; 847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 849 datarootdir=$ac_optarg ;; 850 851 -disable-* | --disable-*) 852 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 853 # Reject names that are not valid shell variable names. 854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 855 as_fn_error $? "invalid feature name: $ac_useropt" 856 ac_useropt_orig=$ac_useropt 857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 858 case $ac_user_opts in 859 *" 860"enable_$ac_useropt" 861"*) ;; 862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 863 ac_unrecognized_sep=', ';; 864 esac 865 eval enable_$ac_useropt=no ;; 866 867 -docdir | --docdir | --docdi | --doc | --do) 868 ac_prev=docdir ;; 869 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 870 docdir=$ac_optarg ;; 871 872 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 873 ac_prev=dvidir ;; 874 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 875 dvidir=$ac_optarg ;; 876 877 -enable-* | --enable-*) 878 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 879 # Reject names that are not valid shell variable names. 880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 881 as_fn_error $? "invalid feature name: $ac_useropt" 882 ac_useropt_orig=$ac_useropt 883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 884 case $ac_user_opts in 885 *" 886"enable_$ac_useropt" 887"*) ;; 888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 889 ac_unrecognized_sep=', ';; 890 esac 891 eval enable_$ac_useropt=\$ac_optarg ;; 892 893 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 894 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 895 | --exec | --exe | --ex) 896 ac_prev=exec_prefix ;; 897 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 898 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 899 | --exec=* | --exe=* | --ex=*) 900 exec_prefix=$ac_optarg ;; 901 902 -gas | --gas | --ga | --g) 903 # Obsolete; use --with-gas. 904 with_gas=yes ;; 905 906 -help | --help | --hel | --he | -h) 907 ac_init_help=long ;; 908 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 909 ac_init_help=recursive ;; 910 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 911 ac_init_help=short ;; 912 913 -host | --host | --hos | --ho) 914 ac_prev=host_alias ;; 915 -host=* | --host=* | --hos=* | --ho=*) 916 host_alias=$ac_optarg ;; 917 918 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 919 ac_prev=htmldir ;; 920 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 921 | --ht=*) 922 htmldir=$ac_optarg ;; 923 924 -includedir | --includedir | --includedi | --included | --include \ 925 | --includ | --inclu | --incl | --inc) 926 ac_prev=includedir ;; 927 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 928 | --includ=* | --inclu=* | --incl=* | --inc=*) 929 includedir=$ac_optarg ;; 930 931 -infodir | --infodir | --infodi | --infod | --info | --inf) 932 ac_prev=infodir ;; 933 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 934 infodir=$ac_optarg ;; 935 936 -libdir | --libdir | --libdi | --libd) 937 ac_prev=libdir ;; 938 -libdir=* | --libdir=* | --libdi=* | --libd=*) 939 libdir=$ac_optarg ;; 940 941 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 942 | --libexe | --libex | --libe) 943 ac_prev=libexecdir ;; 944 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 945 | --libexe=* | --libex=* | --libe=*) 946 libexecdir=$ac_optarg ;; 947 948 -localedir | --localedir | --localedi | --localed | --locale) 949 ac_prev=localedir ;; 950 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 951 localedir=$ac_optarg ;; 952 953 -localstatedir | --localstatedir | --localstatedi | --localstated \ 954 | --localstate | --localstat | --localsta | --localst | --locals) 955 ac_prev=localstatedir ;; 956 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 957 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 958 localstatedir=$ac_optarg ;; 959 960 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 961 ac_prev=mandir ;; 962 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 963 mandir=$ac_optarg ;; 964 965 -nfp | --nfp | --nf) 966 # Obsolete; use --without-fp. 967 with_fp=no ;; 968 969 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 970 | --no-cr | --no-c | -n) 971 no_create=yes ;; 972 973 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 974 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 975 no_recursion=yes ;; 976 977 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 978 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 979 | --oldin | --oldi | --old | --ol | --o) 980 ac_prev=oldincludedir ;; 981 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 982 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 983 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 984 oldincludedir=$ac_optarg ;; 985 986 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 987 ac_prev=prefix ;; 988 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 989 prefix=$ac_optarg ;; 990 991 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 992 | --program-pre | --program-pr | --program-p) 993 ac_prev=program_prefix ;; 994 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 995 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 996 program_prefix=$ac_optarg ;; 997 998 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 999 | --program-suf | --program-su | --program-s) 1000 ac_prev=program_suffix ;; 1001 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1002 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1003 program_suffix=$ac_optarg ;; 1004 1005 -program-transform-name | --program-transform-name \ 1006 | --program-transform-nam | --program-transform-na \ 1007 | --program-transform-n | --program-transform- \ 1008 | --program-transform | --program-transfor \ 1009 | --program-transfo | --program-transf \ 1010 | --program-trans | --program-tran \ 1011 | --progr-tra | --program-tr | --program-t) 1012 ac_prev=program_transform_name ;; 1013 -program-transform-name=* | --program-transform-name=* \ 1014 | --program-transform-nam=* | --program-transform-na=* \ 1015 | --program-transform-n=* | --program-transform-=* \ 1016 | --program-transform=* | --program-transfor=* \ 1017 | --program-transfo=* | --program-transf=* \ 1018 | --program-trans=* | --program-tran=* \ 1019 | --progr-tra=* | --program-tr=* | --program-t=*) 1020 program_transform_name=$ac_optarg ;; 1021 1022 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1023 ac_prev=pdfdir ;; 1024 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1025 pdfdir=$ac_optarg ;; 1026 1027 -psdir | --psdir | --psdi | --psd | --ps) 1028 ac_prev=psdir ;; 1029 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1030 psdir=$ac_optarg ;; 1031 1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1033 | -silent | --silent | --silen | --sile | --sil) 1034 silent=yes ;; 1035 1036 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1037 ac_prev=sbindir ;; 1038 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1039 | --sbi=* | --sb=*) 1040 sbindir=$ac_optarg ;; 1041 1042 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1043 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1044 | --sharedst | --shareds | --shared | --share | --shar \ 1045 | --sha | --sh) 1046 ac_prev=sharedstatedir ;; 1047 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1048 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1049 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1050 | --sha=* | --sh=*) 1051 sharedstatedir=$ac_optarg ;; 1052 1053 -site | --site | --sit) 1054 ac_prev=site ;; 1055 -site=* | --site=* | --sit=*) 1056 site=$ac_optarg ;; 1057 1058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1059 ac_prev=srcdir ;; 1060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1061 srcdir=$ac_optarg ;; 1062 1063 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1064 | --syscon | --sysco | --sysc | --sys | --sy) 1065 ac_prev=sysconfdir ;; 1066 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1067 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1068 sysconfdir=$ac_optarg ;; 1069 1070 -target | --target | --targe | --targ | --tar | --ta | --t) 1071 ac_prev=target_alias ;; 1072 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1073 target_alias=$ac_optarg ;; 1074 1075 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1076 verbose=yes ;; 1077 1078 -version | --version | --versio | --versi | --vers | -V) 1079 ac_init_version=: ;; 1080 1081 -with-* | --with-*) 1082 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1083 # Reject names that are not valid shell variable names. 1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1085 as_fn_error $? "invalid package name: $ac_useropt" 1086 ac_useropt_orig=$ac_useropt 1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1088 case $ac_user_opts in 1089 *" 1090"with_$ac_useropt" 1091"*) ;; 1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1093 ac_unrecognized_sep=', ';; 1094 esac 1095 eval with_$ac_useropt=\$ac_optarg ;; 1096 1097 -without-* | --without-*) 1098 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1099 # Reject names that are not valid shell variable names. 1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1101 as_fn_error $? "invalid package name: $ac_useropt" 1102 ac_useropt_orig=$ac_useropt 1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1104 case $ac_user_opts in 1105 *" 1106"with_$ac_useropt" 1107"*) ;; 1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1109 ac_unrecognized_sep=', ';; 1110 esac 1111 eval with_$ac_useropt=no ;; 1112 1113 --x) 1114 # Obsolete; use --with-x. 1115 with_x=yes ;; 1116 1117 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1118 | --x-incl | --x-inc | --x-in | --x-i) 1119 ac_prev=x_includes ;; 1120 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1121 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1122 x_includes=$ac_optarg ;; 1123 1124 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1125 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1126 ac_prev=x_libraries ;; 1127 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1128 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1129 x_libraries=$ac_optarg ;; 1130 1131 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1132Try \`$0 --help' for more information" 1133 ;; 1134 1135 *=*) 1136 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1137 # Reject names that are not valid shell variable names. 1138 case $ac_envvar in #( 1139 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1140 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1141 esac 1142 eval $ac_envvar=\$ac_optarg 1143 export $ac_envvar ;; 1144 1145 *) 1146 # FIXME: should be removed in autoconf 3.0. 1147 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1148 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1149 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1150 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1151 ;; 1152 1153 esac 1154done 1155 1156if test -n "$ac_prev"; then 1157 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1158 as_fn_error $? "missing argument to $ac_option" 1159fi 1160 1161if test -n "$ac_unrecognized_opts"; then 1162 case $enable_option_checking in 1163 no) ;; 1164 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1165 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1166 esac 1167fi 1168 1169# Check all directory arguments for consistency. 1170for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1171 datadir sysconfdir sharedstatedir localstatedir includedir \ 1172 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1173 libdir localedir mandir 1174do 1175 eval ac_val=\$$ac_var 1176 # Remove trailing slashes. 1177 case $ac_val in 1178 */ ) 1179 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1180 eval $ac_var=\$ac_val;; 1181 esac 1182 # Be sure to have absolute directory names. 1183 case $ac_val in 1184 [\\/$]* | ?:[\\/]* ) continue;; 1185 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1186 esac 1187 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1188done 1189 1190# There might be people who depend on the old broken behavior: `$host' 1191# used to hold the argument of --host etc. 1192# FIXME: To remove some day. 1193build=$build_alias 1194host=$host_alias 1195target=$target_alias 1196 1197# FIXME: To remove some day. 1198if test "x$host_alias" != x; then 1199 if test "x$build_alias" = x; then 1200 cross_compiling=maybe 1201 elif test "x$build_alias" != "x$host_alias"; then 1202 cross_compiling=yes 1203 fi 1204fi 1205 1206ac_tool_prefix= 1207test -n "$host_alias" && ac_tool_prefix=$host_alias- 1208 1209test "$silent" = yes && exec 6>/dev/null 1210 1211 1212ac_pwd=`pwd` && test -n "$ac_pwd" && 1213ac_ls_di=`ls -di .` && 1214ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1215 as_fn_error $? "working directory cannot be determined" 1216test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1217 as_fn_error $? "pwd does not report name of working directory" 1218 1219 1220# Find the source files, if location was not specified. 1221if test -z "$srcdir"; then 1222 ac_srcdir_defaulted=yes 1223 # Try the directory containing this script, then the parent directory. 1224 ac_confdir=`$as_dirname -- "$as_myself" || 1225$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1226 X"$as_myself" : 'X\(//\)[^/]' \| \ 1227 X"$as_myself" : 'X\(//\)$' \| \ 1228 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1229$as_echo X"$as_myself" | 1230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1231 s//\1/ 1232 q 1233 } 1234 /^X\(\/\/\)[^/].*/{ 1235 s//\1/ 1236 q 1237 } 1238 /^X\(\/\/\)$/{ 1239 s//\1/ 1240 q 1241 } 1242 /^X\(\/\).*/{ 1243 s//\1/ 1244 q 1245 } 1246 s/.*/./; q'` 1247 srcdir=$ac_confdir 1248 if test ! -r "$srcdir/$ac_unique_file"; then 1249 srcdir=.. 1250 fi 1251else 1252 ac_srcdir_defaulted=no 1253fi 1254if test ! -r "$srcdir/$ac_unique_file"; then 1255 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1256 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1257fi 1258ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1259ac_abs_confdir=`( 1260 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1261 pwd)` 1262# When building in place, set srcdir=. 1263if test "$ac_abs_confdir" = "$ac_pwd"; then 1264 srcdir=. 1265fi 1266# Remove unnecessary trailing slashes from srcdir. 1267# Double slashes in file names in object file debugging info 1268# mess up M-x gdb in Emacs. 1269case $srcdir in 1270*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1271esac 1272for ac_var in $ac_precious_vars; do 1273 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1274 eval ac_env_${ac_var}_value=\$${ac_var} 1275 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1276 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1277done 1278 1279# 1280# Report the --help message. 1281# 1282if test "$ac_init_help" = "long"; then 1283 # Omit some internal or obsolete options to make the list less imposing. 1284 # This message is too long to be a string in the A/UX 3.1 sh. 1285 cat <<_ACEOF 1286\`configure' configures wcalc 2.5 to adapt to many kinds of systems. 1287 1288Usage: $0 [OPTION]... [VAR=VALUE]... 1289 1290To assign environment variables (e.g., CC, CFLAGS...), specify them as 1291VAR=VALUE. See below for descriptions of some of the useful variables. 1292 1293Defaults for the options are specified in brackets. 1294 1295Configuration: 1296 -h, --help display this help and exit 1297 --help=short display options specific to this package 1298 --help=recursive display the short help of all the included packages 1299 -V, --version display version information and exit 1300 -q, --quiet, --silent do not print \`checking ...' messages 1301 --cache-file=FILE cache test results in FILE [disabled] 1302 -C, --config-cache alias for \`--cache-file=config.cache' 1303 -n, --no-create do not create output files 1304 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1305 1306Installation directories: 1307 --prefix=PREFIX install architecture-independent files in PREFIX 1308 [$ac_default_prefix] 1309 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1310 [PREFIX] 1311 1312By default, \`make install' will install all the files in 1313\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1314an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1315for instance \`--prefix=\$HOME'. 1316 1317For better control, use the options below. 1318 1319Fine tuning of the installation directories: 1320 --bindir=DIR user executables [EPREFIX/bin] 1321 --sbindir=DIR system admin executables [EPREFIX/sbin] 1322 --libexecdir=DIR program executables [EPREFIX/libexec] 1323 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1324 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1325 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1326 --libdir=DIR object code libraries [EPREFIX/lib] 1327 --includedir=DIR C header files [PREFIX/include] 1328 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1329 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1330 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1331 --infodir=DIR info documentation [DATAROOTDIR/info] 1332 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1333 --mandir=DIR man documentation [DATAROOTDIR/man] 1334 --docdir=DIR documentation root [DATAROOTDIR/doc/wcalc] 1335 --htmldir=DIR html documentation [DOCDIR] 1336 --dvidir=DIR dvi documentation [DOCDIR] 1337 --pdfdir=DIR pdf documentation [DOCDIR] 1338 --psdir=DIR ps documentation [DOCDIR] 1339_ACEOF 1340 1341 cat <<\_ACEOF 1342 1343Program names: 1344 --program-prefix=PREFIX prepend PREFIX to installed program names 1345 --program-suffix=SUFFIX append SUFFIX to installed program names 1346 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1347_ACEOF 1348fi 1349 1350if test -n "$ac_init_help"; then 1351 case $ac_init_help in 1352 short | recursive ) echo "Configuration of wcalc 2.5:";; 1353 esac 1354 cat <<\_ACEOF 1355 1356Optional Features: 1357 --disable-option-checking ignore unrecognized --enable/--with options 1358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1360 --enable-silent-rules less verbose build output (undo: "make V=1") 1361 --disable-silent-rules verbose build output (undo: "make V=0") 1362 --enable-rpath Add -rpath arguments to LDFLAGS 1363 --enable-picky turns on extra compiler warnings (for developers) 1364 --enable-dependency-tracking 1365 do not reject slow dependency extractors 1366 --disable-dependency-tracking 1367 speeds up one-time build 1368 1369Optional Packages: 1370 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1371 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1372 --without-readline do not try to find and use the readline library 1373 --with-gmp=[PATH] specify the path to the gmp library 1374 --with-mpfr=[PATH] specify the path to the mpfr library 1375 1376Some influential environment variables: 1377 CC C compiler command 1378 CFLAGS C compiler flags 1379 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1380 nonstandard directory <lib dir> 1381 LIBS libraries to pass to the linker, e.g. -l<library> 1382 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1383 you have headers in a nonstandard directory <include dir> 1384 YACC The `Yet Another Compiler Compiler' implementation to use. 1385 Defaults to the first program found out of: `bison -y', `byacc', 1386 `yacc'. 1387 YFLAGS The list of arguments that will be passed by default to $YACC. 1388 This script will default YFLAGS to the empty string to avoid a 1389 default value of `-d' given by some make applications. 1390 CPP C preprocessor 1391 1392Use these variables to override the choices made by `configure' or to help 1393it to find libraries and programs with nonstandard names/locations. 1394 1395Report bugs to <kyle-wcalc@memoryhole.net>. 1396_ACEOF 1397ac_status=$? 1398fi 1399 1400if test "$ac_init_help" = "recursive"; then 1401 # If there are subdirs, report their specific --help. 1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1403 test -d "$ac_dir" || 1404 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1405 continue 1406 ac_builddir=. 1407 1408case "$ac_dir" in 1409.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1410*) 1411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1412 # A ".." for each directory in $ac_dir_suffix. 1413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1414 case $ac_top_builddir_sub in 1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1417 esac ;; 1418esac 1419ac_abs_top_builddir=$ac_pwd 1420ac_abs_builddir=$ac_pwd$ac_dir_suffix 1421# for backward compatibility: 1422ac_top_builddir=$ac_top_build_prefix 1423 1424case $srcdir in 1425 .) # We are building in place. 1426 ac_srcdir=. 1427 ac_top_srcdir=$ac_top_builddir_sub 1428 ac_abs_top_srcdir=$ac_pwd ;; 1429 [\\/]* | ?:[\\/]* ) # Absolute name. 1430 ac_srcdir=$srcdir$ac_dir_suffix; 1431 ac_top_srcdir=$srcdir 1432 ac_abs_top_srcdir=$srcdir ;; 1433 *) # Relative name. 1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1435 ac_top_srcdir=$ac_top_build_prefix$srcdir 1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1437esac 1438ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1439 1440 cd "$ac_dir" || { ac_status=$?; continue; } 1441 # Check for guested configure. 1442 if test -f "$ac_srcdir/configure.gnu"; then 1443 echo && 1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1445 elif test -f "$ac_srcdir/configure"; then 1446 echo && 1447 $SHELL "$ac_srcdir/configure" --help=recursive 1448 else 1449 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1450 fi || ac_status=$? 1451 cd "$ac_pwd" || { ac_status=$?; break; } 1452 done 1453fi 1454 1455test -n "$ac_init_help" && exit $ac_status 1456if $ac_init_version; then 1457 cat <<\_ACEOF 1458wcalc configure 2.5 1459generated by GNU Autoconf 2.69 1460 1461Copyright (C) 2012 Free Software Foundation, Inc. 1462This configure script is free software; the Free Software Foundation 1463gives unlimited permission to copy, distribute and modify it. 1464_ACEOF 1465 exit 1466fi 1467 1468## ------------------------ ## 1469## Autoconf initialization. ## 1470## ------------------------ ## 1471 1472# ac_fn_c_try_compile LINENO 1473# -------------------------- 1474# Try to compile conftest.$ac_ext, and return whether this succeeded. 1475ac_fn_c_try_compile () 1476{ 1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1478 rm -f conftest.$ac_objext 1479 if { { ac_try="$ac_compile" 1480case "(($ac_try" in 1481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1482 *) ac_try_echo=$ac_try;; 1483esac 1484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1485$as_echo "$ac_try_echo"; } >&5 1486 (eval "$ac_compile") 2>conftest.err 1487 ac_status=$? 1488 if test -s conftest.err; then 1489 grep -v '^ *+' conftest.err >conftest.er1 1490 cat conftest.er1 >&5 1491 mv -f conftest.er1 conftest.err 1492 fi 1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1494 test $ac_status = 0; } && { 1495 test -z "$ac_c_werror_flag" || 1496 test ! -s conftest.err 1497 } && test -s conftest.$ac_objext; then : 1498 ac_retval=0 1499else 1500 $as_echo "$as_me: failed program was:" >&5 1501sed 's/^/| /' conftest.$ac_ext >&5 1502 1503 ac_retval=1 1504fi 1505 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1506 as_fn_set_status $ac_retval 1507 1508} # ac_fn_c_try_compile 1509 1510# ac_fn_c_try_link LINENO 1511# ----------------------- 1512# Try to link conftest.$ac_ext, and return whether this succeeded. 1513ac_fn_c_try_link () 1514{ 1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1516 rm -f conftest.$ac_objext conftest$ac_exeext 1517 if { { ac_try="$ac_link" 1518case "(($ac_try" in 1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1520 *) ac_try_echo=$ac_try;; 1521esac 1522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1523$as_echo "$ac_try_echo"; } >&5 1524 (eval "$ac_link") 2>conftest.err 1525 ac_status=$? 1526 if test -s conftest.err; then 1527 grep -v '^ *+' conftest.err >conftest.er1 1528 cat conftest.er1 >&5 1529 mv -f conftest.er1 conftest.err 1530 fi 1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1532 test $ac_status = 0; } && { 1533 test -z "$ac_c_werror_flag" || 1534 test ! -s conftest.err 1535 } && test -s conftest$ac_exeext && { 1536 test "$cross_compiling" = yes || 1537 test -x conftest$ac_exeext 1538 }; then : 1539 ac_retval=0 1540else 1541 $as_echo "$as_me: failed program was:" >&5 1542sed 's/^/| /' conftest.$ac_ext >&5 1543 1544 ac_retval=1 1545fi 1546 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1547 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1548 # interfere with the next link command; also delete a directory that is 1549 # left behind by Apple's compiler. We do this before executing the actions. 1550 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1552 as_fn_set_status $ac_retval 1553 1554} # ac_fn_c_try_link 1555 1556# ac_fn_c_try_cpp LINENO 1557# ---------------------- 1558# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1559ac_fn_c_try_cpp () 1560{ 1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1562 if { { ac_try="$ac_cpp conftest.$ac_ext" 1563case "(($ac_try" in 1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1565 *) ac_try_echo=$ac_try;; 1566esac 1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1568$as_echo "$ac_try_echo"; } >&5 1569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1570 ac_status=$? 1571 if test -s conftest.err; then 1572 grep -v '^ *+' conftest.err >conftest.er1 1573 cat conftest.er1 >&5 1574 mv -f conftest.er1 conftest.err 1575 fi 1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1577 test $ac_status = 0; } > conftest.i && { 1578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1579 test ! -s conftest.err 1580 }; then : 1581 ac_retval=0 1582else 1583 $as_echo "$as_me: failed program was:" >&5 1584sed 's/^/| /' conftest.$ac_ext >&5 1585 1586 ac_retval=1 1587fi 1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1589 as_fn_set_status $ac_retval 1590 1591} # ac_fn_c_try_cpp 1592 1593# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1594# ------------------------------------------------------- 1595# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1596# the include files in INCLUDES and setting the cache variable VAR 1597# accordingly. 1598ac_fn_c_check_header_mongrel () 1599{ 1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1601 if eval \${$3+:} false; then : 1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1603$as_echo_n "checking for $2... " >&6; } 1604if eval \${$3+:} false; then : 1605 $as_echo_n "(cached) " >&6 1606fi 1607eval ac_res=\$$3 1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1609$as_echo "$ac_res" >&6; } 1610else 1611 # Is the header compilable? 1612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1613$as_echo_n "checking $2 usability... " >&6; } 1614cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1615/* end confdefs.h. */ 1616$4 1617#include <$2> 1618_ACEOF 1619if ac_fn_c_try_compile "$LINENO"; then : 1620 ac_header_compiler=yes 1621else 1622 ac_header_compiler=no 1623fi 1624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1626$as_echo "$ac_header_compiler" >&6; } 1627 1628# Is the header present? 1629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1630$as_echo_n "checking $2 presence... " >&6; } 1631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1632/* end confdefs.h. */ 1633#include <$2> 1634_ACEOF 1635if ac_fn_c_try_cpp "$LINENO"; then : 1636 ac_header_preproc=yes 1637else 1638 ac_header_preproc=no 1639fi 1640rm -f conftest.err conftest.i conftest.$ac_ext 1641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1642$as_echo "$ac_header_preproc" >&6; } 1643 1644# So? What about this header? 1645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1646 yes:no: ) 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1648$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1650$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1651 ;; 1652 no:yes:* ) 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1654$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1656$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1658$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1660$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1662$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1663( $as_echo "## ---------------------------------------- ## 1664## Report this to kyle-wcalc@memoryhole.net ## 1665## ---------------------------------------- ##" 1666 ) | sed "s/^/$as_me: WARNING: /" >&2 1667 ;; 1668esac 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1670$as_echo_n "checking for $2... " >&6; } 1671if eval \${$3+:} false; then : 1672 $as_echo_n "(cached) " >&6 1673else 1674 eval "$3=\$ac_header_compiler" 1675fi 1676eval ac_res=\$$3 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1678$as_echo "$ac_res" >&6; } 1679fi 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 1682} # ac_fn_c_check_header_mongrel 1683 1684# ac_fn_c_try_run LINENO 1685# ---------------------- 1686# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1687# that executables *can* be run. 1688ac_fn_c_try_run () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 if { { ac_try="$ac_link" 1692case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697$as_echo "$ac_try_echo"; } >&5 1698 (eval "$ac_link") 2>&5 1699 ac_status=$? 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1702 { { case "(($ac_try" in 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1704 *) ac_try_echo=$ac_try;; 1705esac 1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707$as_echo "$ac_try_echo"; } >&5 1708 (eval "$ac_try") 2>&5 1709 ac_status=$? 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; }; }; then : 1712 ac_retval=0 1713else 1714 $as_echo "$as_me: program exited with status $ac_status" >&5 1715 $as_echo "$as_me: failed program was:" >&5 1716sed 's/^/| /' conftest.$ac_ext >&5 1717 1718 ac_retval=$ac_status 1719fi 1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1722 as_fn_set_status $ac_retval 1723 1724} # ac_fn_c_try_run 1725 1726# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1727# ------------------------------------------------------- 1728# Tests whether HEADER exists and can be compiled using the include files in 1729# INCLUDES, setting the cache variable VAR accordingly. 1730ac_fn_c_check_header_compile () 1731{ 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1734$as_echo_n "checking for $2... " >&6; } 1735if eval \${$3+:} false; then : 1736 $as_echo_n "(cached) " >&6 1737else 1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1739/* end confdefs.h. */ 1740$4 1741#include <$2> 1742_ACEOF 1743if ac_fn_c_try_compile "$LINENO"; then : 1744 eval "$3=yes" 1745else 1746 eval "$3=no" 1747fi 1748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1749fi 1750eval ac_res=\$$3 1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1752$as_echo "$ac_res" >&6; } 1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1754 1755} # ac_fn_c_check_header_compile 1756 1757# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1758# --------------------------------------------- 1759# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1760# accordingly. 1761ac_fn_c_check_decl () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 as_decl_name=`echo $2|sed 's/ *(.*//'` 1765 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1767$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1768if eval \${$3+:} false; then : 1769 $as_echo_n "(cached) " >&6 1770else 1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1772/* end confdefs.h. */ 1773$4 1774int 1775main () 1776{ 1777#ifndef $as_decl_name 1778#ifdef __cplusplus 1779 (void) $as_decl_use; 1780#else 1781 (void) $as_decl_name; 1782#endif 1783#endif 1784 1785 ; 1786 return 0; 1787} 1788_ACEOF 1789if ac_fn_c_try_compile "$LINENO"; then : 1790 eval "$3=yes" 1791else 1792 eval "$3=no" 1793fi 1794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1795fi 1796eval ac_res=\$$3 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1798$as_echo "$ac_res" >&6; } 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1800 1801} # ac_fn_c_check_decl 1802 1803# ac_fn_c_check_func LINENO FUNC VAR 1804# ---------------------------------- 1805# Tests whether FUNC exists, setting the cache variable VAR accordingly 1806ac_fn_c_check_func () 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1815/* end confdefs.h. */ 1816/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1817 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1818#define $2 innocuous_$2 1819 1820/* System header to define __stub macros and hopefully few prototypes, 1821 which can conflict with char $2 (); below. 1822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1823 <limits.h> exists even on freestanding compilers. */ 1824 1825#ifdef __STDC__ 1826# include <limits.h> 1827#else 1828# include <assert.h> 1829#endif 1830 1831#undef $2 1832 1833/* Override any GCC internal prototype to avoid an error. 1834 Use char because int might match the return type of a GCC 1835 builtin and then its argument prototype would still apply. */ 1836#ifdef __cplusplus 1837extern "C" 1838#endif 1839char $2 (); 1840/* The GNU C library defines this for functions which it implements 1841 to always fail with ENOSYS. Some functions are actually named 1842 something starting with __ and the normal name is an alias. */ 1843#if defined __stub_$2 || defined __stub___$2 1844choke me 1845#endif 1846 1847int 1848main () 1849{ 1850return $2 (); 1851 ; 1852 return 0; 1853} 1854_ACEOF 1855if ac_fn_c_try_link "$LINENO"; then : 1856 eval "$3=yes" 1857else 1858 eval "$3=no" 1859fi 1860rm -f core conftest.err conftest.$ac_objext \ 1861 conftest$ac_exeext conftest.$ac_ext 1862fi 1863eval ac_res=\$$3 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1865$as_echo "$ac_res" >&6; } 1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1867 1868} # ac_fn_c_check_func 1869 1870# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1871# ------------------------------------------- 1872# Tests whether TYPE exists after having included INCLUDES, setting cache 1873# variable VAR accordingly. 1874ac_fn_c_check_type () 1875{ 1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1878$as_echo_n "checking for $2... " >&6; } 1879if eval \${$3+:} false; then : 1880 $as_echo_n "(cached) " >&6 1881else 1882 eval "$3=no" 1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1884/* end confdefs.h. */ 1885$4 1886int 1887main () 1888{ 1889if (sizeof ($2)) 1890 return 0; 1891 ; 1892 return 0; 1893} 1894_ACEOF 1895if ac_fn_c_try_compile "$LINENO"; then : 1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1897/* end confdefs.h. */ 1898$4 1899int 1900main () 1901{ 1902if (sizeof (($2))) 1903 return 0; 1904 ; 1905 return 0; 1906} 1907_ACEOF 1908if ac_fn_c_try_compile "$LINENO"; then : 1909 1910else 1911 eval "$3=yes" 1912fi 1913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1914fi 1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1916fi 1917eval ac_res=\$$3 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1919$as_echo "$ac_res" >&6; } 1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1921 1922} # ac_fn_c_check_type 1923cat >config.log <<_ACEOF 1924This file contains any messages produced by compilers while 1925running configure, to aid debugging if configure makes a mistake. 1926 1927It was created by wcalc $as_me 2.5, which was 1928generated by GNU Autoconf 2.69. Invocation command line was 1929 1930 $ $0 $@ 1931 1932_ACEOF 1933exec 5>>config.log 1934{ 1935cat <<_ASUNAME 1936## --------- ## 1937## Platform. ## 1938## --------- ## 1939 1940hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1941uname -m = `(uname -m) 2>/dev/null || echo unknown` 1942uname -r = `(uname -r) 2>/dev/null || echo unknown` 1943uname -s = `(uname -s) 2>/dev/null || echo unknown` 1944uname -v = `(uname -v) 2>/dev/null || echo unknown` 1945 1946/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1947/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1948 1949/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1950/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1951/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1952/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1953/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1954/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1955/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1956 1957_ASUNAME 1958 1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1960for as_dir in $PATH 1961do 1962 IFS=$as_save_IFS 1963 test -z "$as_dir" && as_dir=. 1964 $as_echo "PATH: $as_dir" 1965 done 1966IFS=$as_save_IFS 1967 1968} >&5 1969 1970cat >&5 <<_ACEOF 1971 1972 1973## ----------- ## 1974## Core tests. ## 1975## ----------- ## 1976 1977_ACEOF 1978 1979 1980# Keep a trace of the command line. 1981# Strip out --no-create and --no-recursion so they do not pile up. 1982# Strip out --silent because we don't want to record it for future runs. 1983# Also quote any args containing shell meta-characters. 1984# Make two passes to allow for proper duplicate-argument suppression. 1985ac_configure_args= 1986ac_configure_args0= 1987ac_configure_args1= 1988ac_must_keep_next=false 1989for ac_pass in 1 2 1990do 1991 for ac_arg 1992 do 1993 case $ac_arg in 1994 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1996 | -silent | --silent | --silen | --sile | --sil) 1997 continue ;; 1998 *\'*) 1999 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2000 esac 2001 case $ac_pass in 2002 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2003 2) 2004 as_fn_append ac_configure_args1 " '$ac_arg'" 2005 if test $ac_must_keep_next = true; then 2006 ac_must_keep_next=false # Got value, back to normal. 2007 else 2008 case $ac_arg in 2009 *=* | --config-cache | -C | -disable-* | --disable-* \ 2010 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2011 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2012 | -with-* | --with-* | -without-* | --without-* | --x) 2013 case "$ac_configure_args0 " in 2014 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2015 esac 2016 ;; 2017 -* ) ac_must_keep_next=true ;; 2018 esac 2019 fi 2020 as_fn_append ac_configure_args " '$ac_arg'" 2021 ;; 2022 esac 2023 done 2024done 2025{ ac_configure_args0=; unset ac_configure_args0;} 2026{ ac_configure_args1=; unset ac_configure_args1;} 2027 2028# When interrupted or exit'd, cleanup temporary files, and complete 2029# config.log. We remove comments because anyway the quotes in there 2030# would cause problems or look ugly. 2031# WARNING: Use '\'' to represent an apostrophe within the trap. 2032# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2033trap 'exit_status=$? 2034 # Save into config.log some information that might help in debugging. 2035 { 2036 echo 2037 2038 $as_echo "## ---------------- ## 2039## Cache variables. ## 2040## ---------------- ##" 2041 echo 2042 # The following way of writing the cache mishandles newlines in values, 2043( 2044 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2045 eval ac_val=\$$ac_var 2046 case $ac_val in #( 2047 *${as_nl}*) 2048 case $ac_var in #( 2049 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2050$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2051 esac 2052 case $ac_var in #( 2053 _ | IFS | as_nl) ;; #( 2054 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2055 *) { eval $ac_var=; unset $ac_var;} ;; 2056 esac ;; 2057 esac 2058 done 2059 (set) 2>&1 | 2060 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2061 *${as_nl}ac_space=\ *) 2062 sed -n \ 2063 "s/'\''/'\''\\\\'\'''\''/g; 2064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2065 ;; #( 2066 *) 2067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2068 ;; 2069 esac | 2070 sort 2071) 2072 echo 2073 2074 $as_echo "## ----------------- ## 2075## Output variables. ## 2076## ----------------- ##" 2077 echo 2078 for ac_var in $ac_subst_vars 2079 do 2080 eval ac_val=\$$ac_var 2081 case $ac_val in 2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2083 esac 2084 $as_echo "$ac_var='\''$ac_val'\''" 2085 done | sort 2086 echo 2087 2088 if test -n "$ac_subst_files"; then 2089 $as_echo "## ------------------- ## 2090## File substitutions. ## 2091## ------------------- ##" 2092 echo 2093 for ac_var in $ac_subst_files 2094 do 2095 eval ac_val=\$$ac_var 2096 case $ac_val in 2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2098 esac 2099 $as_echo "$ac_var='\''$ac_val'\''" 2100 done | sort 2101 echo 2102 fi 2103 2104 if test -s confdefs.h; then 2105 $as_echo "## ----------- ## 2106## confdefs.h. ## 2107## ----------- ##" 2108 echo 2109 cat confdefs.h 2110 echo 2111 fi 2112 test "$ac_signal" != 0 && 2113 $as_echo "$as_me: caught signal $ac_signal" 2114 $as_echo "$as_me: exit $exit_status" 2115 } >&5 2116 rm -f core *.core core.conftest.* && 2117 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2118 exit $exit_status 2119' 0 2120for ac_signal in 1 2 13 15; do 2121 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2122done 2123ac_signal=0 2124 2125# confdefs.h avoids OS command line length limits that DEFS can exceed. 2126rm -f -r conftest* confdefs.h 2127 2128$as_echo "/* confdefs.h */" > confdefs.h 2129 2130# Predefined preprocessor variables. 2131 2132cat >>confdefs.h <<_ACEOF 2133#define PACKAGE_NAME "$PACKAGE_NAME" 2134_ACEOF 2135 2136cat >>confdefs.h <<_ACEOF 2137#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2138_ACEOF 2139 2140cat >>confdefs.h <<_ACEOF 2141#define PACKAGE_VERSION "$PACKAGE_VERSION" 2142_ACEOF 2143 2144cat >>confdefs.h <<_ACEOF 2145#define PACKAGE_STRING "$PACKAGE_STRING" 2146_ACEOF 2147 2148cat >>confdefs.h <<_ACEOF 2149#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2150_ACEOF 2151 2152cat >>confdefs.h <<_ACEOF 2153#define PACKAGE_URL "$PACKAGE_URL" 2154_ACEOF 2155 2156 2157# Let the site file select an alternate cache file if it wants to. 2158# Prefer an explicitly selected file to automatically selected ones. 2159ac_site_file1=NONE 2160ac_site_file2=NONE 2161if test -n "$CONFIG_SITE"; then 2162 # We do not want a PATH search for config.site. 2163 case $CONFIG_SITE in #(( 2164 -*) ac_site_file1=./$CONFIG_SITE;; 2165 */*) ac_site_file1=$CONFIG_SITE;; 2166 *) ac_site_file1=./$CONFIG_SITE;; 2167 esac 2168elif test "x$prefix" != xNONE; then 2169 ac_site_file1=$prefix/share/config.site 2170 ac_site_file2=$prefix/etc/config.site 2171else 2172 ac_site_file1=$ac_default_prefix/share/config.site 2173 ac_site_file2=$ac_default_prefix/etc/config.site 2174fi 2175for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2176do 2177 test "x$ac_site_file" = xNONE && continue 2178 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2180$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2181 sed 's/^/| /' "$ac_site_file" >&5 2182 . "$ac_site_file" \ 2183 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2185as_fn_error $? "failed to load site script $ac_site_file 2186See \`config.log' for more details" "$LINENO" 5; } 2187 fi 2188done 2189 2190if test -r "$cache_file"; then 2191 # Some versions of bash will fail to source /dev/null (special files 2192 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2193 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2195$as_echo "$as_me: loading cache $cache_file" >&6;} 2196 case $cache_file in 2197 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2198 *) . "./$cache_file";; 2199 esac 2200 fi 2201else 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2203$as_echo "$as_me: creating cache $cache_file" >&6;} 2204 >$cache_file 2205fi 2206 2207# Check that the precious variables saved in the cache have kept the same 2208# value. 2209ac_cache_corrupted=false 2210for ac_var in $ac_precious_vars; do 2211 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2212 eval ac_new_set=\$ac_env_${ac_var}_set 2213 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2214 eval ac_new_val=\$ac_env_${ac_var}_value 2215 case $ac_old_set,$ac_new_set in 2216 set,) 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2218$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2219 ac_cache_corrupted=: ;; 2220 ,set) 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2222$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2223 ac_cache_corrupted=: ;; 2224 ,);; 2225 *) 2226 if test "x$ac_old_val" != "x$ac_new_val"; then 2227 # differences in whitespace do not lead to failure. 2228 ac_old_val_w=`echo x $ac_old_val` 2229 ac_new_val_w=`echo x $ac_new_val` 2230 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2232$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2233 ac_cache_corrupted=: 2234 else 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2236$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2237 eval $ac_var=\$ac_old_val 2238 fi 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2240$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2242$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2243 fi;; 2244 esac 2245 # Pass precious variables to config.status. 2246 if test "$ac_new_set" = set; then 2247 case $ac_new_val in 2248 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2249 *) ac_arg=$ac_var=$ac_new_val ;; 2250 esac 2251 case " $ac_configure_args " in 2252 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2253 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2254 esac 2255 fi 2256done 2257if $ac_cache_corrupted; then 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2261$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2262 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2263fi 2264## -------------------- ## 2265## Main body of script. ## 2266## -------------------- ## 2267 2268ac_ext=c 2269ac_cpp='$CPP $CPPFLAGS' 2270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2272ac_compiler_gnu=$ac_cv_c_compiler_gnu 2273 2274 2275ac_aux_dir= 2276for ac_dir in config "$srcdir"/config; do 2277 if test -f "$ac_dir/install-sh"; then 2278 ac_aux_dir=$ac_dir 2279 ac_install_sh="$ac_aux_dir/install-sh -c" 2280 break 2281 elif test -f "$ac_dir/install.sh"; then 2282 ac_aux_dir=$ac_dir 2283 ac_install_sh="$ac_aux_dir/install.sh -c" 2284 break 2285 elif test -f "$ac_dir/shtool"; then 2286 ac_aux_dir=$ac_dir 2287 ac_install_sh="$ac_aux_dir/shtool install -c" 2288 break 2289 fi 2290done 2291if test -z "$ac_aux_dir"; then 2292 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2293fi 2294 2295# These three variables are undocumented and unsupported, 2296# and are intended to be withdrawn in a future Autoconf release. 2297# They can cause serious problems if a builder's source tree is in a directory 2298# whose full name contains unusual characters. 2299ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2300ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2301ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2302 2303 2304 2305 2306 2307# Automake's silent rules were implemented in the same version that 2308# color-tests was implemented, so we can use one to detect the other. 2309# This nasty, dirty, unreliable trick is strongly discouraged by its author: 2310# http://blog.flameeyes.eu/trackbacks?article_id=5155 2311 2312am__api_version='1.14' 2313 2314# Find a good install program. We prefer a C program (faster), 2315# so one script is as good as another. But avoid the broken or 2316# incompatible versions: 2317# SysV /etc/install, /usr/sbin/install 2318# SunOS /usr/etc/install 2319# IRIX /sbin/install 2320# AIX /bin/install 2321# AmigaOS /C/install, which installs bootblocks on floppy discs 2322# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2323# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2324# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2325# OS/2's system install, which has a completely different semantic 2326# ./install, which can be erroneously created by make from ./install.sh. 2327# Reject install programs that cannot install multiple files. 2328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2329$as_echo_n "checking for a BSD-compatible install... " >&6; } 2330if test -z "$INSTALL"; then 2331if ${ac_cv_path_install+:} false; then : 2332 $as_echo_n "(cached) " >&6 2333else 2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2335for as_dir in $PATH 2336do 2337 IFS=$as_save_IFS 2338 test -z "$as_dir" && as_dir=. 2339 # Account for people who put trailing slashes in PATH elements. 2340case $as_dir/ in #(( 2341 ./ | .// | /[cC]/* | \ 2342 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2343 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2344 /usr/ucb/* ) ;; 2345 *) 2346 # OSF1 and SCO ODT 3.0 have their own names for install. 2347 # Don't use installbsd from OSF since it installs stuff as root 2348 # by default. 2349 for ac_prog in ginstall scoinst install; do 2350 for ac_exec_ext in '' $ac_executable_extensions; do 2351 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2352 if test $ac_prog = install && 2353 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2354 # AIX install. It has an incompatible calling convention. 2355 : 2356 elif test $ac_prog = install && 2357 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2358 # program-specific install script used by HP pwplus--don't use. 2359 : 2360 else 2361 rm -rf conftest.one conftest.two conftest.dir 2362 echo one > conftest.one 2363 echo two > conftest.two 2364 mkdir conftest.dir 2365 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2366 test -s conftest.one && test -s conftest.two && 2367 test -s conftest.dir/conftest.one && 2368 test -s conftest.dir/conftest.two 2369 then 2370 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2371 break 3 2372 fi 2373 fi 2374 fi 2375 done 2376 done 2377 ;; 2378esac 2379 2380 done 2381IFS=$as_save_IFS 2382 2383rm -rf conftest.one conftest.two conftest.dir 2384 2385fi 2386 if test "${ac_cv_path_install+set}" = set; then 2387 INSTALL=$ac_cv_path_install 2388 else 2389 # As a last resort, use the slow shell script. Don't cache a 2390 # value for INSTALL within a source directory, because that will 2391 # break other packages using the cache if that directory is 2392 # removed, or if the value is a relative name. 2393 INSTALL=$ac_install_sh 2394 fi 2395fi 2396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2397$as_echo "$INSTALL" >&6; } 2398 2399# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2400# It thinks the first close brace ends the variable substitution. 2401test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2402 2403test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2404 2405test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2406 2407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2408$as_echo_n "checking whether build environment is sane... " >&6; } 2409# Reject unsafe characters in $srcdir or the absolute working directory 2410# name. Accept space and tab only in the latter. 2411am_lf=' 2412' 2413case `pwd` in 2414 *[\\\"\#\$\&\'\`$am_lf]*) 2415 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2416esac 2417case $srcdir in 2418 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2419 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2420esac 2421 2422# Do 'set' in a subshell so we don't clobber the current shell's 2423# arguments. Must try -L first in case configure is actually a 2424# symlink; some systems play weird games with the mod time of symlinks 2425# (eg FreeBSD returns the mod time of the symlink's containing 2426# directory). 2427if ( 2428 am_has_slept=no 2429 for am_try in 1 2; do 2430 echo "timestamp, slept: $am_has_slept" > conftest.file 2431 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2432 if test "$*" = "X"; then 2433 # -L didn't work. 2434 set X `ls -t "$srcdir/configure" conftest.file` 2435 fi 2436 if test "$*" != "X $srcdir/configure conftest.file" \ 2437 && test "$*" != "X conftest.file $srcdir/configure"; then 2438 2439 # If neither matched, then we have a broken ls. This can happen 2440 # if, for instance, CONFIG_SHELL is bash and it inherits a 2441 # broken ls alias from the environment. This has actually 2442 # happened. Such a system could not be considered "sane". 2443 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2444 alias in your environment" "$LINENO" 5 2445 fi 2446 if test "$2" = conftest.file || test $am_try -eq 2; then 2447 break 2448 fi 2449 # Just in case. 2450 sleep 1 2451 am_has_slept=yes 2452 done 2453 test "$2" = conftest.file 2454 ) 2455then 2456 # Ok. 2457 : 2458else 2459 as_fn_error $? "newly created file is older than distributed files! 2460Check your system clock" "$LINENO" 5 2461fi 2462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2463$as_echo "yes" >&6; } 2464# If we didn't sleep, we still need to ensure time stamps of config.status and 2465# generated files are strictly newer. 2466am_sleep_pid= 2467if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2468 ( sleep 1 ) & 2469 am_sleep_pid=$! 2470fi 2471 2472rm -f conftest.file 2473 2474test "$program_prefix" != NONE && 2475 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2476# Use a double $ so make ignores it. 2477test "$program_suffix" != NONE && 2478 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2479# Double any \ or $. 2480# By default was `s,x,x', remove it if useless. 2481ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2482program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2483 2484# expand $ac_aux_dir to an absolute path 2485am_aux_dir=`cd $ac_aux_dir && pwd` 2486 2487if test x"${MISSING+set}" != xset; then 2488 case $am_aux_dir in 2489 *\ * | *\ *) 2490 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2491 *) 2492 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2493 esac 2494fi 2495# Use eval to expand $SHELL 2496if eval "$MISSING --is-lightweight"; then 2497 am_missing_run="$MISSING " 2498else 2499 am_missing_run= 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2501$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2502fi 2503 2504if test x"${install_sh}" != xset; then 2505 case $am_aux_dir in 2506 *\ * | *\ *) 2507 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2508 *) 2509 install_sh="\${SHELL} $am_aux_dir/install-sh" 2510 esac 2511fi 2512 2513# Installed binaries are usually stripped using 'strip' when the user 2514# run "make install-strip". However 'strip' might not be the right 2515# tool to use in cross-compilation environments, therefore Automake 2516# will honor the 'STRIP' environment variable to overrule this program. 2517if test "$cross_compiling" != no; then 2518 if test -n "$ac_tool_prefix"; then 2519 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2520set dummy ${ac_tool_prefix}strip; ac_word=$2 2521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2522$as_echo_n "checking for $ac_word... " >&6; } 2523if ${ac_cv_prog_STRIP+:} false; then : 2524 $as_echo_n "(cached) " >&6 2525else 2526 if test -n "$STRIP"; then 2527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2528else 2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2530for as_dir in $PATH 2531do 2532 IFS=$as_save_IFS 2533 test -z "$as_dir" && as_dir=. 2534 for ac_exec_ext in '' $ac_executable_extensions; do 2535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2536 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2538 break 2 2539 fi 2540done 2541 done 2542IFS=$as_save_IFS 2543 2544fi 2545fi 2546STRIP=$ac_cv_prog_STRIP 2547if test -n "$STRIP"; then 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2549$as_echo "$STRIP" >&6; } 2550else 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2552$as_echo "no" >&6; } 2553fi 2554 2555 2556fi 2557if test -z "$ac_cv_prog_STRIP"; then 2558 ac_ct_STRIP=$STRIP 2559 # Extract the first word of "strip", so it can be a program name with args. 2560set dummy strip; ac_word=$2 2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2562$as_echo_n "checking for $ac_word... " >&6; } 2563if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2564 $as_echo_n "(cached) " >&6 2565else 2566 if test -n "$ac_ct_STRIP"; then 2567 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2568else 2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2570for as_dir in $PATH 2571do 2572 IFS=$as_save_IFS 2573 test -z "$as_dir" && as_dir=. 2574 for ac_exec_ext in '' $ac_executable_extensions; do 2575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2576 ac_cv_prog_ac_ct_STRIP="strip" 2577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2578 break 2 2579 fi 2580done 2581 done 2582IFS=$as_save_IFS 2583 2584fi 2585fi 2586ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2587if test -n "$ac_ct_STRIP"; then 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2589$as_echo "$ac_ct_STRIP" >&6; } 2590else 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2592$as_echo "no" >&6; } 2593fi 2594 2595 if test "x$ac_ct_STRIP" = x; then 2596 STRIP=":" 2597 else 2598 case $cross_compiling:$ac_tool_warned in 2599yes:) 2600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2602ac_tool_warned=yes ;; 2603esac 2604 STRIP=$ac_ct_STRIP 2605 fi 2606else 2607 STRIP="$ac_cv_prog_STRIP" 2608fi 2609 2610fi 2611INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2612 2613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2614$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2615if test -z "$MKDIR_P"; then 2616 if ${ac_cv_path_mkdir+:} false; then : 2617 $as_echo_n "(cached) " >&6 2618else 2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2620for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2621do 2622 IFS=$as_save_IFS 2623 test -z "$as_dir" && as_dir=. 2624 for ac_prog in mkdir gmkdir; do 2625 for ac_exec_ext in '' $ac_executable_extensions; do 2626 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2627 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2628 'mkdir (GNU coreutils) '* | \ 2629 'mkdir (coreutils) '* | \ 2630 'mkdir (fileutils) '4.1*) 2631 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2632 break 3;; 2633 esac 2634 done 2635 done 2636 done 2637IFS=$as_save_IFS 2638 2639fi 2640 2641 test -d ./--version && rmdir ./--version 2642 if test "${ac_cv_path_mkdir+set}" = set; then 2643 MKDIR_P="$ac_cv_path_mkdir -p" 2644 else 2645 # As a last resort, use the slow shell script. Don't cache a 2646 # value for MKDIR_P within a source directory, because that will 2647 # break other packages using the cache if that directory is 2648 # removed, or if the value is a relative name. 2649 MKDIR_P="$ac_install_sh -d" 2650 fi 2651fi 2652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2653$as_echo "$MKDIR_P" >&6; } 2654 2655for ac_prog in gawk mawk nawk awk 2656do 2657 # Extract the first word of "$ac_prog", so it can be a program name with args. 2658set dummy $ac_prog; ac_word=$2 2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2660$as_echo_n "checking for $ac_word... " >&6; } 2661if ${ac_cv_prog_AWK+:} false; then : 2662 $as_echo_n "(cached) " >&6 2663else 2664 if test -n "$AWK"; then 2665 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2666else 2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2668for as_dir in $PATH 2669do 2670 IFS=$as_save_IFS 2671 test -z "$as_dir" && as_dir=. 2672 for ac_exec_ext in '' $ac_executable_extensions; do 2673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2674 ac_cv_prog_AWK="$ac_prog" 2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2676 break 2 2677 fi 2678done 2679 done 2680IFS=$as_save_IFS 2681 2682fi 2683fi 2684AWK=$ac_cv_prog_AWK 2685if test -n "$AWK"; then 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2687$as_echo "$AWK" >&6; } 2688else 2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2690$as_echo "no" >&6; } 2691fi 2692 2693 2694 test -n "$AWK" && break 2695done 2696 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2698$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2699set x ${MAKE-make} 2700ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2701if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2702 $as_echo_n "(cached) " >&6 2703else 2704 cat >conftest.make <<\_ACEOF 2705SHELL = /bin/sh 2706all: 2707 @echo '@@@%%%=$(MAKE)=@@@%%%' 2708_ACEOF 2709# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2710case `${MAKE-make} -f conftest.make 2>/dev/null` in 2711 *@@@%%%=?*=@@@%%%*) 2712 eval ac_cv_prog_make_${ac_make}_set=yes;; 2713 *) 2714 eval ac_cv_prog_make_${ac_make}_set=no;; 2715esac 2716rm -f conftest.make 2717fi 2718if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2720$as_echo "yes" >&6; } 2721 SET_MAKE= 2722else 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2724$as_echo "no" >&6; } 2725 SET_MAKE="MAKE=${MAKE-make}" 2726fi 2727 2728rm -rf .tst 2>/dev/null 2729mkdir .tst 2>/dev/null 2730if test -d .tst; then 2731 am__leading_dot=. 2732else 2733 am__leading_dot=_ 2734fi 2735rmdir .tst 2>/dev/null 2736 2737# Check whether --enable-silent-rules was given. 2738if test "${enable_silent_rules+set}" = set; then : 2739 enableval=$enable_silent_rules; 2740fi 2741 2742case $enable_silent_rules in # ((( 2743 yes) AM_DEFAULT_VERBOSITY=0;; 2744 no) AM_DEFAULT_VERBOSITY=1;; 2745 *) AM_DEFAULT_VERBOSITY=1;; 2746esac 2747am_make=${MAKE-make} 2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2749$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2750if ${am_cv_make_support_nested_variables+:} false; then : 2751 $as_echo_n "(cached) " >&6 2752else 2753 if $as_echo 'TRUE=$(BAR$(V)) 2754BAR0=false 2755BAR1=true 2756V=1 2757am__doit: 2758 @$(TRUE) 2759.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2760 am_cv_make_support_nested_variables=yes 2761else 2762 am_cv_make_support_nested_variables=no 2763fi 2764fi 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2766$as_echo "$am_cv_make_support_nested_variables" >&6; } 2767if test $am_cv_make_support_nested_variables = yes; then 2768 AM_V='$(V)' 2769 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2770else 2771 AM_V=$AM_DEFAULT_VERBOSITY 2772 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2773fi 2774AM_BACKSLASH='\' 2775 2776if test "`cd $srcdir && pwd`" != "`pwd`"; then 2777 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2778 # is not polluted with repeated "-I." 2779 am__isrc=' -I$(srcdir)' 2780 # test to see if srcdir already configured 2781 if test -f $srcdir/config.status; then 2782 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2783 fi 2784fi 2785 2786# test whether we have cygpath 2787if test -z "$CYGPATH_W"; then 2788 if (cygpath --version) >/dev/null 2>/dev/null; then 2789 CYGPATH_W='cygpath -w' 2790 else 2791 CYGPATH_W=echo 2792 fi 2793fi 2794 2795 2796# Define the identity of the package. 2797 PACKAGE='wcalc' 2798 VERSION='2.5' 2799 2800 2801# Some tools Automake needs. 2802 2803ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2804 2805 2806AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2807 2808 2809AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2810 2811 2812AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2813 2814 2815MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2816 2817# For better backward compatibility. To be removed once Automake 1.9.x 2818# dies out for good. For more background, see: 2819# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2820# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2821mkdir_p='$(MKDIR_P)' 2822 2823# We need awk for the "check" target. The system "awk" is bad on 2824# some platforms. 2825# Always define AMTAR for backward compatibility. Yes, it's still used 2826# in the wild :-( We should find a proper way to deprecate it ... 2827AMTAR='$${TAR-tar}' 2828 2829 2830# We'll loop over all known methods to create a tar archive until one works. 2831_am_tools='gnutar pax cpio none' 2832 2833am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2834 2835 2836 2837 2838 2839 2840# POSIX will say in a future version that running "rm -f" with no argument 2841# is OK; and we want to be able to make that assumption in our Makefile 2842# recipes. So use an aggressive probe to check that the usage we want is 2843# actually supported "in the wild" to an acceptable degree. 2844# See automake bug#10828. 2845# To make any issue more visible, cause the running configure to be aborted 2846# by default if the 'rm' program in use doesn't match our expectations; the 2847# user can still override this though. 2848if rm -f && rm -fr && rm -rf; then : OK; else 2849 cat >&2 <<'END' 2850Oops! 2851 2852Your 'rm' program seems unable to run without file operands specified 2853on the command line, even when the '-f' option is present. This is contrary 2854to the behaviour of most rm programs out there, and not conforming with 2855the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2856 2857Please tell bug-automake@gnu.org about your system, including the value 2858of your $PATH and any error possibly output before this message. This 2859can help us improve future automake versions. 2860 2861END 2862 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2863 echo 'Configuration will proceed anyway, since you have set the' >&2 2864 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2865 echo >&2 2866 else 2867 cat >&2 <<'END' 2868Aborting the configuration process, to ensure you take notice of the issue. 2869 2870You can download and install GNU coreutils to get an 'rm' implementation 2871that behaves properly: <http://www.gnu.org/software/coreutils/>. 2872 2873If you want to complete the configuration process using your problematic 2874'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2875to "yes", and re-run configure. 2876 2877END 2878 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2879 fi 2880fi 2881# If Automake supports silent rules, enable them 2882# Check whether --enable-silent-rules was given. 2883if test "${enable_silent_rules+set}" = set; then : 2884 enableval=$enable_silent_rules; 2885fi 2886 2887case $enable_silent_rules in # ((( 2888 yes) AM_DEFAULT_VERBOSITY=0;; 2889 no) AM_DEFAULT_VERBOSITY=1;; 2890 *) AM_DEFAULT_VERBOSITY=0;; 2891esac 2892am_make=${MAKE-make} 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2894$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2895if ${am_cv_make_support_nested_variables+:} false; then : 2896 $as_echo_n "(cached) " >&6 2897else 2898 if $as_echo 'TRUE=$(BAR$(V)) 2899BAR0=false 2900BAR1=true 2901V=1 2902am__doit: 2903 @$(TRUE) 2904.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2905 am_cv_make_support_nested_variables=yes 2906else 2907 am_cv_make_support_nested_variables=no 2908fi 2909fi 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2911$as_echo "$am_cv_make_support_nested_variables" >&6; } 2912if test $am_cv_make_support_nested_variables = yes; then 2913 AM_V='$(V)' 2914 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2915else 2916 AM_V=$AM_DEFAULT_VERBOSITY 2917 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2918fi 2919AM_BACKSLASH='\' 2920 2921 2922 2923# Check whether --enable-rpath was given. 2924if test "${enable_rpath+set}" = set; then : 2925 enableval=$enable_rpath; 2926fi 2927 2928# Check whether --enable-picky was given. 2929if test "${enable_picky+set}" = set; then : 2930 enableval=$enable_picky; 2931fi 2932 2933if test "x$enable_picky" = x; then : 2934 if test -d "${srcdir}/.svn"; then : 2935 { $as_echo "$as_me:${as_lineno-$LINENO}: --> developer override: enable picky compiler by default <--" >&5 2936$as_echo "$as_me: --> developer override: enable picky compiler by default <--" >&6;} 2937 enable_picky=yes 2938fi 2939fi 2940 2941# Checks for programs. 2942ac_ext=c 2943ac_cpp='$CPP $CPPFLAGS' 2944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2946ac_compiler_gnu=$ac_cv_c_compiler_gnu 2947if test -n "$ac_tool_prefix"; then 2948 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2949set dummy ${ac_tool_prefix}gcc; ac_word=$2 2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2951$as_echo_n "checking for $ac_word... " >&6; } 2952if ${ac_cv_prog_CC+:} false; then : 2953 $as_echo_n "(cached) " >&6 2954else 2955 if test -n "$CC"; then 2956 ac_cv_prog_CC="$CC" # Let the user override the test. 2957else 2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2959for as_dir in $PATH 2960do 2961 IFS=$as_save_IFS 2962 test -z "$as_dir" && as_dir=. 2963 for ac_exec_ext in '' $ac_executable_extensions; do 2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2965 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2967 break 2 2968 fi 2969done 2970 done 2971IFS=$as_save_IFS 2972 2973fi 2974fi 2975CC=$ac_cv_prog_CC 2976if test -n "$CC"; then 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2978$as_echo "$CC" >&6; } 2979else 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2981$as_echo "no" >&6; } 2982fi 2983 2984 2985fi 2986if test -z "$ac_cv_prog_CC"; then 2987 ac_ct_CC=$CC 2988 # Extract the first word of "gcc", so it can be a program name with args. 2989set dummy gcc; ac_word=$2 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2991$as_echo_n "checking for $ac_word... " >&6; } 2992if ${ac_cv_prog_ac_ct_CC+:} false; then : 2993 $as_echo_n "(cached) " >&6 2994else 2995 if test -n "$ac_ct_CC"; then 2996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2997else 2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2999for as_dir in $PATH 3000do 3001 IFS=$as_save_IFS 3002 test -z "$as_dir" && as_dir=. 3003 for ac_exec_ext in '' $ac_executable_extensions; do 3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3005 ac_cv_prog_ac_ct_CC="gcc" 3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3007 break 2 3008 fi 3009done 3010 done 3011IFS=$as_save_IFS 3012 3013fi 3014fi 3015ac_ct_CC=$ac_cv_prog_ac_ct_CC 3016if test -n "$ac_ct_CC"; then 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3018$as_echo "$ac_ct_CC" >&6; } 3019else 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3021$as_echo "no" >&6; } 3022fi 3023 3024 if test "x$ac_ct_CC" = x; then 3025 CC="" 3026 else 3027 case $cross_compiling:$ac_tool_warned in 3028yes:) 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3031ac_tool_warned=yes ;; 3032esac 3033 CC=$ac_ct_CC 3034 fi 3035else 3036 CC="$ac_cv_prog_CC" 3037fi 3038 3039if test -z "$CC"; then 3040 if test -n "$ac_tool_prefix"; then 3041 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3042set dummy ${ac_tool_prefix}cc; ac_word=$2 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3044$as_echo_n "checking for $ac_word... " >&6; } 3045if ${ac_cv_prog_CC+:} false; then : 3046 $as_echo_n "(cached) " >&6 3047else 3048 if test -n "$CC"; then 3049 ac_cv_prog_CC="$CC" # Let the user override the test. 3050else 3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3052for as_dir in $PATH 3053do 3054 IFS=$as_save_IFS 3055 test -z "$as_dir" && as_dir=. 3056 for ac_exec_ext in '' $ac_executable_extensions; do 3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3058 ac_cv_prog_CC="${ac_tool_prefix}cc" 3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3060 break 2 3061 fi 3062done 3063 done 3064IFS=$as_save_IFS 3065 3066fi 3067fi 3068CC=$ac_cv_prog_CC 3069if test -n "$CC"; then 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3071$as_echo "$CC" >&6; } 3072else 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3074$as_echo "no" >&6; } 3075fi 3076 3077 3078 fi 3079fi 3080if test -z "$CC"; then 3081 # Extract the first word of "cc", so it can be a program name with args. 3082set dummy cc; ac_word=$2 3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3084$as_echo_n "checking for $ac_word... " >&6; } 3085if ${ac_cv_prog_CC+:} false; then : 3086 $as_echo_n "(cached) " >&6 3087else 3088 if test -n "$CC"; then 3089 ac_cv_prog_CC="$CC" # Let the user override the test. 3090else 3091 ac_prog_rejected=no 3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3093for as_dir in $PATH 3094do 3095 IFS=$as_save_IFS 3096 test -z "$as_dir" && as_dir=. 3097 for ac_exec_ext in '' $ac_executable_extensions; do 3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3099 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3100 ac_prog_rejected=yes 3101 continue 3102 fi 3103 ac_cv_prog_CC="cc" 3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3105 break 2 3106 fi 3107done 3108 done 3109IFS=$as_save_IFS 3110 3111if test $ac_prog_rejected = yes; then 3112 # We found a bogon in the path, so make sure we never use it. 3113 set dummy $ac_cv_prog_CC 3114 shift 3115 if test $# != 0; then 3116 # We chose a different compiler from the bogus one. 3117 # However, it has the same basename, so the bogon will be chosen 3118 # first if we set CC to just the basename; use the full file name. 3119 shift 3120 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3121 fi 3122fi 3123fi 3124fi 3125CC=$ac_cv_prog_CC 3126if test -n "$CC"; then 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3128$as_echo "$CC" >&6; } 3129else 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3131$as_echo "no" >&6; } 3132fi 3133 3134 3135fi 3136if test -z "$CC"; then 3137 if test -n "$ac_tool_prefix"; then 3138 for ac_prog in cl.exe 3139 do 3140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3141set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3143$as_echo_n "checking for $ac_word... " >&6; } 3144if ${ac_cv_prog_CC+:} false; then : 3145 $as_echo_n "(cached) " >&6 3146else 3147 if test -n "$CC"; then 3148 ac_cv_prog_CC="$CC" # Let the user override the test. 3149else 3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3151for as_dir in $PATH 3152do 3153 IFS=$as_save_IFS 3154 test -z "$as_dir" && as_dir=. 3155 for ac_exec_ext in '' $ac_executable_extensions; do 3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3157 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3159 break 2 3160 fi 3161done 3162 done 3163IFS=$as_save_IFS 3164 3165fi 3166fi 3167CC=$ac_cv_prog_CC 3168if test -n "$CC"; then 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3170$as_echo "$CC" >&6; } 3171else 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3173$as_echo "no" >&6; } 3174fi 3175 3176 3177 test -n "$CC" && break 3178 done 3179fi 3180if test -z "$CC"; then 3181 ac_ct_CC=$CC 3182 for ac_prog in cl.exe 3183do 3184 # Extract the first word of "$ac_prog", so it can be a program name with args. 3185set dummy $ac_prog; ac_word=$2 3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3187$as_echo_n "checking for $ac_word... " >&6; } 3188if ${ac_cv_prog_ac_ct_CC+:} false; then : 3189 $as_echo_n "(cached) " >&6 3190else 3191 if test -n "$ac_ct_CC"; then 3192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3193else 3194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3195for as_dir in $PATH 3196do 3197 IFS=$as_save_IFS 3198 test -z "$as_dir" && as_dir=. 3199 for ac_exec_ext in '' $ac_executable_extensions; do 3200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3201 ac_cv_prog_ac_ct_CC="$ac_prog" 3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3203 break 2 3204 fi 3205done 3206 done 3207IFS=$as_save_IFS 3208 3209fi 3210fi 3211ac_ct_CC=$ac_cv_prog_ac_ct_CC 3212if test -n "$ac_ct_CC"; then 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3214$as_echo "$ac_ct_CC" >&6; } 3215else 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3217$as_echo "no" >&6; } 3218fi 3219 3220 3221 test -n "$ac_ct_CC" && break 3222done 3223 3224 if test "x$ac_ct_CC" = x; then 3225 CC="" 3226 else 3227 case $cross_compiling:$ac_tool_warned in 3228yes:) 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3231ac_tool_warned=yes ;; 3232esac 3233 CC=$ac_ct_CC 3234 fi 3235fi 3236 3237fi 3238 3239 3240test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3242as_fn_error $? "no acceptable C compiler found in \$PATH 3243See \`config.log' for more details" "$LINENO" 5; } 3244 3245# Provide some information about the compiler. 3246$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3247set X $ac_compile 3248ac_compiler=$2 3249for ac_option in --version -v -V -qversion; do 3250 { { ac_try="$ac_compiler $ac_option >&5" 3251case "(($ac_try" in 3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3253 *) ac_try_echo=$ac_try;; 3254esac 3255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3256$as_echo "$ac_try_echo"; } >&5 3257 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3258 ac_status=$? 3259 if test -s conftest.err; then 3260 sed '10a\ 3261... rest of stderr output deleted ... 3262 10q' conftest.err >conftest.er1 3263 cat conftest.er1 >&5 3264 fi 3265 rm -f conftest.er1 conftest.err 3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3267 test $ac_status = 0; } 3268done 3269 3270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3271/* end confdefs.h. */ 3272 3273int 3274main () 3275{ 3276 3277 ; 3278 return 0; 3279} 3280_ACEOF 3281ac_clean_files_save=$ac_clean_files 3282ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3283# Try to create an executable without -o first, disregard a.out. 3284# It will help us diagnose broken compilers, and finding out an intuition 3285# of exeext. 3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3287$as_echo_n "checking whether the C compiler works... " >&6; } 3288ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3289 3290# The possible output files: 3291ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3292 3293ac_rmfiles= 3294for ac_file in $ac_files 3295do 3296 case $ac_file in 3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3298 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3299 esac 3300done 3301rm -f $ac_rmfiles 3302 3303if { { ac_try="$ac_link_default" 3304case "(($ac_try" in 3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3306 *) ac_try_echo=$ac_try;; 3307esac 3308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3309$as_echo "$ac_try_echo"; } >&5 3310 (eval "$ac_link_default") 2>&5 3311 ac_status=$? 3312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3313 test $ac_status = 0; }; then : 3314 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3315# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3316# in a Makefile. We should not override ac_cv_exeext if it was cached, 3317# so that the user can short-circuit this test for compilers unknown to 3318# Autoconf. 3319for ac_file in $ac_files '' 3320do 3321 test -f "$ac_file" || continue 3322 case $ac_file in 3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3324 ;; 3325 [ab].out ) 3326 # We found the default executable, but exeext='' is most 3327 # certainly right. 3328 break;; 3329 *.* ) 3330 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3331 then :; else 3332 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3333 fi 3334 # We set ac_cv_exeext here because the later test for it is not 3335 # safe: cross compilers may not add the suffix if given an `-o' 3336 # argument, so we may need to know it at that point already. 3337 # Even if this section looks crufty: it has the advantage of 3338 # actually working. 3339 break;; 3340 * ) 3341 break;; 3342 esac 3343done 3344test "$ac_cv_exeext" = no && ac_cv_exeext= 3345 3346else 3347 ac_file='' 3348fi 3349if test -z "$ac_file"; then : 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3351$as_echo "no" >&6; } 3352$as_echo "$as_me: failed program was:" >&5 3353sed 's/^/| /' conftest.$ac_ext >&5 3354 3355{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3357as_fn_error 77 "C compiler cannot create executables 3358See \`config.log' for more details" "$LINENO" 5; } 3359else 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3361$as_echo "yes" >&6; } 3362fi 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3364$as_echo_n "checking for C compiler default output file name... " >&6; } 3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3366$as_echo "$ac_file" >&6; } 3367ac_exeext=$ac_cv_exeext 3368 3369rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3370ac_clean_files=$ac_clean_files_save 3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3372$as_echo_n "checking for suffix of executables... " >&6; } 3373if { { ac_try="$ac_link" 3374case "(($ac_try" in 3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3376 *) ac_try_echo=$ac_try;; 3377esac 3378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3379$as_echo "$ac_try_echo"; } >&5 3380 (eval "$ac_link") 2>&5 3381 ac_status=$? 3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3383 test $ac_status = 0; }; then : 3384 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3385# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3386# work properly (i.e., refer to `conftest.exe'), while it won't with 3387# `rm'. 3388for ac_file in conftest.exe conftest conftest.*; do 3389 test -f "$ac_file" || continue 3390 case $ac_file in 3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3392 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3393 break;; 3394 * ) break;; 3395 esac 3396done 3397else 3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3400as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3401See \`config.log' for more details" "$LINENO" 5; } 3402fi 3403rm -f conftest conftest$ac_cv_exeext 3404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3405$as_echo "$ac_cv_exeext" >&6; } 3406 3407rm -f conftest.$ac_ext 3408EXEEXT=$ac_cv_exeext 3409ac_exeext=$EXEEXT 3410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3411/* end confdefs.h. */ 3412#include <stdio.h> 3413int 3414main () 3415{ 3416FILE *f = fopen ("conftest.out", "w"); 3417 return ferror (f) || fclose (f) != 0; 3418 3419 ; 3420 return 0; 3421} 3422_ACEOF 3423ac_clean_files="$ac_clean_files conftest.out" 3424# Check that the compiler produces executables we can run. If not, either 3425# the compiler is broken, or we cross compile. 3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3427$as_echo_n "checking whether we are cross compiling... " >&6; } 3428if test "$cross_compiling" != yes; then 3429 { { ac_try="$ac_link" 3430case "(($ac_try" in 3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3432 *) ac_try_echo=$ac_try;; 3433esac 3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3435$as_echo "$ac_try_echo"; } >&5 3436 (eval "$ac_link") 2>&5 3437 ac_status=$? 3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3439 test $ac_status = 0; } 3440 if { ac_try='./conftest$ac_cv_exeext' 3441 { { case "(($ac_try" in 3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3443 *) ac_try_echo=$ac_try;; 3444esac 3445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3446$as_echo "$ac_try_echo"; } >&5 3447 (eval "$ac_try") 2>&5 3448 ac_status=$? 3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3450 test $ac_status = 0; }; }; then 3451 cross_compiling=no 3452 else 3453 if test "$cross_compiling" = maybe; then 3454 cross_compiling=yes 3455 else 3456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3458as_fn_error $? "cannot run C compiled programs. 3459If you meant to cross compile, use \`--host'. 3460See \`config.log' for more details" "$LINENO" 5; } 3461 fi 3462 fi 3463fi 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3465$as_echo "$cross_compiling" >&6; } 3466 3467rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3468ac_clean_files=$ac_clean_files_save 3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3470$as_echo_n "checking for suffix of object files... " >&6; } 3471if ${ac_cv_objext+:} false; then : 3472 $as_echo_n "(cached) " >&6 3473else 3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3475/* end confdefs.h. */ 3476 3477int 3478main () 3479{ 3480 3481 ; 3482 return 0; 3483} 3484_ACEOF 3485rm -f conftest.o conftest.obj 3486if { { ac_try="$ac_compile" 3487case "(($ac_try" in 3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3489 *) ac_try_echo=$ac_try;; 3490esac 3491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3492$as_echo "$ac_try_echo"; } >&5 3493 (eval "$ac_compile") 2>&5 3494 ac_status=$? 3495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3496 test $ac_status = 0; }; then : 3497 for ac_file in conftest.o conftest.obj conftest.*; do 3498 test -f "$ac_file" || continue; 3499 case $ac_file in 3500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3501 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3502 break;; 3503 esac 3504done 3505else 3506 $as_echo "$as_me: failed program was:" >&5 3507sed 's/^/| /' conftest.$ac_ext >&5 3508 3509{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3511as_fn_error $? "cannot compute suffix of object files: cannot compile 3512See \`config.log' for more details" "$LINENO" 5; } 3513fi 3514rm -f conftest.$ac_cv_objext conftest.$ac_ext 3515fi 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3517$as_echo "$ac_cv_objext" >&6; } 3518OBJEXT=$ac_cv_objext 3519ac_objext=$OBJEXT 3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3521$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3522if ${ac_cv_c_compiler_gnu+:} false; then : 3523 $as_echo_n "(cached) " >&6 3524else 3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3526/* end confdefs.h. */ 3527 3528int 3529main () 3530{ 3531#ifndef __GNUC__ 3532 choke me 3533#endif 3534 3535 ; 3536 return 0; 3537} 3538_ACEOF 3539if ac_fn_c_try_compile "$LINENO"; then : 3540 ac_compiler_gnu=yes 3541else 3542 ac_compiler_gnu=no 3543fi 3544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3545ac_cv_c_compiler_gnu=$ac_compiler_gnu 3546 3547fi 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3549$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3550if test $ac_compiler_gnu = yes; then 3551 GCC=yes 3552else 3553 GCC= 3554fi 3555ac_test_CFLAGS=${CFLAGS+set} 3556ac_save_CFLAGS=$CFLAGS 3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3558$as_echo_n "checking whether $CC accepts -g... " >&6; } 3559if ${ac_cv_prog_cc_g+:} false; then : 3560 $as_echo_n "(cached) " >&6 3561else 3562 ac_save_c_werror_flag=$ac_c_werror_flag 3563 ac_c_werror_flag=yes 3564 ac_cv_prog_cc_g=no 3565 CFLAGS="-g" 3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3567/* end confdefs.h. */ 3568 3569int 3570main () 3571{ 3572 3573 ; 3574 return 0; 3575} 3576_ACEOF 3577if ac_fn_c_try_compile "$LINENO"; then : 3578 ac_cv_prog_cc_g=yes 3579else 3580 CFLAGS="" 3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3582/* end confdefs.h. */ 3583 3584int 3585main () 3586{ 3587 3588 ; 3589 return 0; 3590} 3591_ACEOF 3592if ac_fn_c_try_compile "$LINENO"; then : 3593 3594else 3595 ac_c_werror_flag=$ac_save_c_werror_flag 3596 CFLAGS="-g" 3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3598/* end confdefs.h. */ 3599 3600int 3601main () 3602{ 3603 3604 ; 3605 return 0; 3606} 3607_ACEOF 3608if ac_fn_c_try_compile "$LINENO"; then : 3609 ac_cv_prog_cc_g=yes 3610fi 3611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3612fi 3613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3614fi 3615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3616 ac_c_werror_flag=$ac_save_c_werror_flag 3617fi 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3619$as_echo "$ac_cv_prog_cc_g" >&6; } 3620if test "$ac_test_CFLAGS" = set; then 3621 CFLAGS=$ac_save_CFLAGS 3622elif test $ac_cv_prog_cc_g = yes; then 3623 if test "$GCC" = yes; then 3624 CFLAGS="-g -O2" 3625 else 3626 CFLAGS="-g" 3627 fi 3628else 3629 if test "$GCC" = yes; then 3630 CFLAGS="-O2" 3631 else 3632 CFLAGS= 3633 fi 3634fi 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3636$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3637if ${ac_cv_prog_cc_c89+:} false; then : 3638 $as_echo_n "(cached) " >&6 3639else 3640 ac_cv_prog_cc_c89=no 3641ac_save_CC=$CC 3642cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3643/* end confdefs.h. */ 3644#include <stdarg.h> 3645#include <stdio.h> 3646struct stat; 3647/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3648struct buf { int x; }; 3649FILE * (*rcsopen) (struct buf *, struct stat *, int); 3650static char *e (p, i) 3651 char **p; 3652 int i; 3653{ 3654 return p[i]; 3655} 3656static char *f (char * (*g) (char **, int), char **p, ...) 3657{ 3658 char *s; 3659 va_list v; 3660 va_start (v,p); 3661 s = g (p, va_arg (v,int)); 3662 va_end (v); 3663 return s; 3664} 3665 3666/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3667 function prototypes and stuff, but not '\xHH' hex character constants. 3668 These don't provoke an error unfortunately, instead are silently treated 3669 as 'x'. The following induces an error, until -std is added to get 3670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3671 array size at least. It's necessary to write '\x00'==0 to get something 3672 that's true only with -std. */ 3673int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3674 3675/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3676 inside strings and character constants. */ 3677#define FOO(x) 'x' 3678int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3679 3680int test (int i, double x); 3681struct s1 {int (*f) (int a);}; 3682struct s2 {int (*f) (double a);}; 3683int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3684int argc; 3685char **argv; 3686int 3687main () 3688{ 3689return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3690 ; 3691 return 0; 3692} 3693_ACEOF 3694for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3696do 3697 CC="$ac_save_CC $ac_arg" 3698 if ac_fn_c_try_compile "$LINENO"; then : 3699 ac_cv_prog_cc_c89=$ac_arg 3700fi 3701rm -f core conftest.err conftest.$ac_objext 3702 test "x$ac_cv_prog_cc_c89" != "xno" && break 3703done 3704rm -f conftest.$ac_ext 3705CC=$ac_save_CC 3706 3707fi 3708# AC_CACHE_VAL 3709case "x$ac_cv_prog_cc_c89" in 3710 x) 3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3712$as_echo "none needed" >&6; } ;; 3713 xno) 3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3715$as_echo "unsupported" >&6; } ;; 3716 *) 3717 CC="$CC $ac_cv_prog_cc_c89" 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3719$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3720esac 3721if test "x$ac_cv_prog_cc_c89" != xno; then : 3722 3723fi 3724 3725ac_ext=c 3726ac_cpp='$CPP $CPPFLAGS' 3727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3729ac_compiler_gnu=$ac_cv_c_compiler_gnu 3730 3731ac_ext=c 3732ac_cpp='$CPP $CPPFLAGS' 3733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3735ac_compiler_gnu=$ac_cv_c_compiler_gnu 3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3737$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3738if ${am_cv_prog_cc_c_o+:} false; then : 3739 $as_echo_n "(cached) " >&6 3740else 3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3742/* end confdefs.h. */ 3743 3744int 3745main () 3746{ 3747 3748 ; 3749 return 0; 3750} 3751_ACEOF 3752 # Make sure it works both with $CC and with simple cc. 3753 # Following AC_PROG_CC_C_O, we do the test twice because some 3754 # compilers refuse to overwrite an existing .o file with -o, 3755 # though they will create one. 3756 am_cv_prog_cc_c_o=yes 3757 for am_i in 1 2; do 3758 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3759 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3760 ac_status=$? 3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3762 (exit $ac_status); } \ 3763 && test -f conftest2.$ac_objext; then 3764 : OK 3765 else 3766 am_cv_prog_cc_c_o=no 3767 break 3768 fi 3769 done 3770 rm -f core conftest* 3771 unset am_i 3772fi 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3774$as_echo "$am_cv_prog_cc_c_o" >&6; } 3775if test "$am_cv_prog_cc_c_o" != yes; then 3776 # Losing compiler, so override with the script. 3777 # FIXME: It is wrong to rewrite CC. 3778 # But if we don't then we get into trouble of one sort or another. 3779 # A longer-term fix would be to have automake use am__CC in this case, 3780 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3781 CC="$am_aux_dir/compile $CC" 3782fi 3783ac_ext=c 3784ac_cpp='$CPP $CPPFLAGS' 3785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3787ac_compiler_gnu=$ac_cv_c_compiler_gnu 3788 3789DEPDIR="${am__leading_dot}deps" 3790 3791ac_config_commands="$ac_config_commands depfiles" 3792 3793 3794am_make=${MAKE-make} 3795cat > confinc << 'END' 3796am__doit: 3797 @echo this is the am__doit target 3798.PHONY: am__doit 3799END 3800# If we don't find an include directive, just comment out the code. 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3802$as_echo_n "checking for style of include used by $am_make... " >&6; } 3803am__include="#" 3804am__quote= 3805_am_result=none 3806# First try GNU make style include. 3807echo "include confinc" > confmf 3808# Ignore all kinds of additional output from 'make'. 3809case `$am_make -s -f confmf 2> /dev/null` in #( 3810*the\ am__doit\ target*) 3811 am__include=include 3812 am__quote= 3813 _am_result=GNU 3814 ;; 3815esac 3816# Now try BSD make style include. 3817if test "$am__include" = "#"; then 3818 echo '.include "confinc"' > confmf 3819 case `$am_make -s -f confmf 2> /dev/null` in #( 3820 *the\ am__doit\ target*) 3821 am__include=.include 3822 am__quote="\"" 3823 _am_result=BSD 3824 ;; 3825 esac 3826fi 3827 3828 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3830$as_echo "$_am_result" >&6; } 3831rm -f confinc confmf 3832 3833# Check whether --enable-dependency-tracking was given. 3834if test "${enable_dependency_tracking+set}" = set; then : 3835 enableval=$enable_dependency_tracking; 3836fi 3837 3838if test "x$enable_dependency_tracking" != xno; then 3839 am_depcomp="$ac_aux_dir/depcomp" 3840 AMDEPBACKSLASH='\' 3841 am__nodep='_no' 3842fi 3843 if test "x$enable_dependency_tracking" != xno; then 3844 AMDEP_TRUE= 3845 AMDEP_FALSE='#' 3846else 3847 AMDEP_TRUE='#' 3848 AMDEP_FALSE= 3849fi 3850 3851 3852 3853depcc="$CC" am_compiler_list= 3854 3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3856$as_echo_n "checking dependency style of $depcc... " >&6; } 3857if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3858 $as_echo_n "(cached) " >&6 3859else 3860 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3861 # We make a subdir and do the tests there. Otherwise we can end up 3862 # making bogus files that we don't know about and never remove. For 3863 # instance it was reported that on HP-UX the gcc test will end up 3864 # making a dummy file named 'D' -- because '-MD' means "put the output 3865 # in D". 3866 rm -rf conftest.dir 3867 mkdir conftest.dir 3868 # Copy depcomp to subdir because otherwise we won't find it if we're 3869 # using a relative directory. 3870 cp "$am_depcomp" conftest.dir 3871 cd conftest.dir 3872 # We will build objects and dependencies in a subdirectory because 3873 # it helps to detect inapplicable dependency modes. For instance 3874 # both Tru64's cc and ICC support -MD to output dependencies as a 3875 # side effect of compilation, but ICC will put the dependencies in 3876 # the current directory while Tru64 will put them in the object 3877 # directory. 3878 mkdir sub 3879 3880 am_cv_CC_dependencies_compiler_type=none 3881 if test "$am_compiler_list" = ""; then 3882 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3883 fi 3884 am__universal=false 3885 case " $depcc " in #( 3886 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3887 esac 3888 3889 for depmode in $am_compiler_list; do 3890 # Setup a source with many dependencies, because some compilers 3891 # like to wrap large dependency lists on column 80 (with \), and 3892 # we should not choose a depcomp mode which is confused by this. 3893 # 3894 # We need to recreate these files for each test, as the compiler may 3895 # overwrite some of them when testing with obscure command lines. 3896 # This happens at least with the AIX C compiler. 3897 : > sub/conftest.c 3898 for i in 1 2 3 4 5 6; do 3899 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3900 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3901 # Solaris 10 /bin/sh. 3902 echo '/* dummy */' > sub/conftst$i.h 3903 done 3904 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3905 3906 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3907 # mode. It turns out that the SunPro C++ compiler does not properly 3908 # handle '-M -o', and we need to detect this. Also, some Intel 3909 # versions had trouble with output in subdirs. 3910 am__obj=sub/conftest.${OBJEXT-o} 3911 am__minus_obj="-o $am__obj" 3912 case $depmode in 3913 gcc) 3914 # This depmode causes a compiler race in universal mode. 3915 test "$am__universal" = false || continue 3916 ;; 3917 nosideeffect) 3918 # After this tag, mechanisms are not by side-effect, so they'll 3919 # only be used when explicitly requested. 3920 if test "x$enable_dependency_tracking" = xyes; then 3921 continue 3922 else 3923 break 3924 fi 3925 ;; 3926 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3927 # This compiler won't grok '-c -o', but also, the minuso test has 3928 # not run yet. These depmodes are late enough in the game, and 3929 # so weak that their functioning should not be impacted. 3930 am__obj=conftest.${OBJEXT-o} 3931 am__minus_obj= 3932 ;; 3933 none) break ;; 3934 esac 3935 if depmode=$depmode \ 3936 source=sub/conftest.c object=$am__obj \ 3937 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3938 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3939 >/dev/null 2>conftest.err && 3940 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3941 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3942 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3943 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3944 # icc doesn't choke on unknown options, it will just issue warnings 3945 # or remarks (even with -Werror). So we grep stderr for any message 3946 # that says an option was ignored or not supported. 3947 # When given -MP, icc 7.0 and 7.1 complain thusly: 3948 # icc: Command line warning: ignoring option '-M'; no argument required 3949 # The diagnosis changed in icc 8.0: 3950 # icc: Command line remark: option '-MP' not supported 3951 if (grep 'ignoring option' conftest.err || 3952 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3953 am_cv_CC_dependencies_compiler_type=$depmode 3954 break 3955 fi 3956 fi 3957 done 3958 3959 cd .. 3960 rm -rf conftest.dir 3961else 3962 am_cv_CC_dependencies_compiler_type=none 3963fi 3964 3965fi 3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3967$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3968CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3969 3970 if 3971 test "x$enable_dependency_tracking" != xno \ 3972 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3973 am__fastdepCC_TRUE= 3974 am__fastdepCC_FALSE='#' 3975else 3976 am__fastdepCC_TRUE='#' 3977 am__fastdepCC_FALSE= 3978fi 3979 3980 3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3982$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3983if ${ac_cv_prog_cc_c99+:} false; then : 3984 $as_echo_n "(cached) " >&6 3985else 3986 ac_cv_prog_cc_c99=no 3987ac_save_CC=$CC 3988cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3989/* end confdefs.h. */ 3990#include <stdarg.h> 3991#include <stdbool.h> 3992#include <stdlib.h> 3993#include <wchar.h> 3994#include <stdio.h> 3995 3996// Check varargs macros. These examples are taken from C99 6.10.3.5. 3997#define debug(...) fprintf (stderr, __VA_ARGS__) 3998#define showlist(...) puts (#__VA_ARGS__) 3999#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4000static void 4001test_varargs_macros (void) 4002{ 4003 int x = 1234; 4004 int y = 5678; 4005 debug ("Flag"); 4006 debug ("X = %d\n", x); 4007 showlist (The first, second, and third items.); 4008 report (x>y, "x is %d but y is %d", x, y); 4009} 4010 4011// Check long long types. 4012#define BIG64 18446744073709551615ull 4013#define BIG32 4294967295ul 4014#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4015#if !BIG_OK 4016 your preprocessor is broken; 4017#endif 4018#if BIG_OK 4019#else 4020 your preprocessor is broken; 4021#endif 4022static long long int bignum = -9223372036854775807LL; 4023static unsigned long long int ubignum = BIG64; 4024 4025struct incomplete_array 4026{ 4027 int datasize; 4028 double data[]; 4029}; 4030 4031struct named_init { 4032 int number; 4033 const wchar_t *name; 4034 double average; 4035}; 4036 4037typedef const char *ccp; 4038 4039static inline int 4040test_restrict (ccp restrict text) 4041{ 4042 // See if C++-style comments work. 4043 // Iterate through items via the restricted pointer. 4044 // Also check for declarations in for loops. 4045 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4046 continue; 4047 return 0; 4048} 4049 4050// Check varargs and va_copy. 4051static void 4052test_varargs (const char *format, ...) 4053{ 4054 va_list args; 4055 va_start (args, format); 4056 va_list args_copy; 4057 va_copy (args_copy, args); 4058 4059 const char *str; 4060 int number; 4061 float fnumber; 4062 4063 while (*format) 4064 { 4065 switch (*format++) 4066 { 4067 case 's': // string 4068 str = va_arg (args_copy, const char *); 4069 break; 4070 case 'd': // int 4071 number = va_arg (args_copy, int); 4072 break; 4073 case 'f': // float 4074 fnumber = va_arg (args_copy, double); 4075 break; 4076 default: 4077 break; 4078 } 4079 } 4080 va_end (args_copy); 4081 va_end (args); 4082} 4083 4084int 4085main () 4086{ 4087 4088 // Check bool. 4089 _Bool success = false; 4090 4091 // Check restrict. 4092 if (test_restrict ("String literal") == 0) 4093 success = true; 4094 char *restrict newvar = "Another string"; 4095 4096 // Check varargs. 4097 test_varargs ("s, d' f .", "string", 65, 34.234); 4098 test_varargs_macros (); 4099 4100 // Check flexible array members. 4101 struct incomplete_array *ia = 4102 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4103 ia->datasize = 10; 4104 for (int i = 0; i < ia->datasize; ++i) 4105 ia->data[i] = i * 1.234; 4106 4107 // Check named initializers. 4108 struct named_init ni = { 4109 .number = 34, 4110 .name = L"Test wide string", 4111 .average = 543.34343, 4112 }; 4113 4114 ni.number = 58; 4115 4116 int dynamic_array[ni.number]; 4117 dynamic_array[ni.number - 1] = 543; 4118 4119 // work around unused variable warnings 4120 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4121 || dynamic_array[ni.number - 1] != 543); 4122 4123 ; 4124 return 0; 4125} 4126_ACEOF 4127for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4128do 4129 CC="$ac_save_CC $ac_arg" 4130 if ac_fn_c_try_compile "$LINENO"; then : 4131 ac_cv_prog_cc_c99=$ac_arg 4132fi 4133rm -f core conftest.err conftest.$ac_objext 4134 test "x$ac_cv_prog_cc_c99" != "xno" && break 4135done 4136rm -f conftest.$ac_ext 4137CC=$ac_save_CC 4138 4139fi 4140# AC_CACHE_VAL 4141case "x$ac_cv_prog_cc_c99" in 4142 x) 4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4144$as_echo "none needed" >&6; } ;; 4145 xno) 4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4147$as_echo "unsupported" >&6; } ;; 4148 *) 4149 CC="$CC $ac_cv_prog_cc_c99" 4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4151$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4152esac 4153if test "x$ac_cv_prog_cc_c99" != xno; then : 4154 4155fi 4156 4157 4158if test -n "$ac_tool_prefix"; then 4159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4160set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4162$as_echo_n "checking for $ac_word... " >&6; } 4163if ${ac_cv_prog_RANLIB+:} false; then : 4164 $as_echo_n "(cached) " >&6 4165else 4166 if test -n "$RANLIB"; then 4167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4168else 4169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4170for as_dir in $PATH 4171do 4172 IFS=$as_save_IFS 4173 test -z "$as_dir" && as_dir=. 4174 for ac_exec_ext in '' $ac_executable_extensions; do 4175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4178 break 2 4179 fi 4180done 4181 done 4182IFS=$as_save_IFS 4183 4184fi 4185fi 4186RANLIB=$ac_cv_prog_RANLIB 4187if test -n "$RANLIB"; then 4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4189$as_echo "$RANLIB" >&6; } 4190else 4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4192$as_echo "no" >&6; } 4193fi 4194 4195 4196fi 4197if test -z "$ac_cv_prog_RANLIB"; then 4198 ac_ct_RANLIB=$RANLIB 4199 # Extract the first word of "ranlib", so it can be a program name with args. 4200set dummy ranlib; ac_word=$2 4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4202$as_echo_n "checking for $ac_word... " >&6; } 4203if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4204 $as_echo_n "(cached) " >&6 4205else 4206 if test -n "$ac_ct_RANLIB"; then 4207 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4208else 4209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4210for as_dir in $PATH 4211do 4212 IFS=$as_save_IFS 4213 test -z "$as_dir" && as_dir=. 4214 for ac_exec_ext in '' $ac_executable_extensions; do 4215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4216 ac_cv_prog_ac_ct_RANLIB="ranlib" 4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4218 break 2 4219 fi 4220done 4221 done 4222IFS=$as_save_IFS 4223 4224fi 4225fi 4226ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4227if test -n "$ac_ct_RANLIB"; then 4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4229$as_echo "$ac_ct_RANLIB" >&6; } 4230else 4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4232$as_echo "no" >&6; } 4233fi 4234 4235 if test "x$ac_ct_RANLIB" = x; then 4236 RANLIB=":" 4237 else 4238 case $cross_compiling:$ac_tool_warned in 4239yes:) 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4242ac_tool_warned=yes ;; 4243esac 4244 RANLIB=$ac_ct_RANLIB 4245 fi 4246else 4247 RANLIB="$ac_cv_prog_RANLIB" 4248fi 4249 4250for ac_prog in 'bison -y' byacc 4251do 4252 # Extract the first word of "$ac_prog", so it can be a program name with args. 4253set dummy $ac_prog; ac_word=$2 4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4255$as_echo_n "checking for $ac_word... " >&6; } 4256if ${ac_cv_prog_YACC+:} false; then : 4257 $as_echo_n "(cached) " >&6 4258else 4259 if test -n "$YACC"; then 4260 ac_cv_prog_YACC="$YACC" # Let the user override the test. 4261else 4262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4263for as_dir in $PATH 4264do 4265 IFS=$as_save_IFS 4266 test -z "$as_dir" && as_dir=. 4267 for ac_exec_ext in '' $ac_executable_extensions; do 4268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4269 ac_cv_prog_YACC="$ac_prog" 4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4271 break 2 4272 fi 4273done 4274 done 4275IFS=$as_save_IFS 4276 4277fi 4278fi 4279YACC=$ac_cv_prog_YACC 4280if test -n "$YACC"; then 4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 4282$as_echo "$YACC" >&6; } 4283else 4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4285$as_echo "no" >&6; } 4286fi 4287 4288 4289 test -n "$YACC" && break 4290done 4291test -n "$YACC" || YACC="yacc" 4292 4293 4294for ac_prog in flex lex 4295do 4296 # Extract the first word of "$ac_prog", so it can be a program name with args. 4297set dummy $ac_prog; ac_word=$2 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4299$as_echo_n "checking for $ac_word... " >&6; } 4300if ${ac_cv_prog_LEX+:} false; then : 4301 $as_echo_n "(cached) " >&6 4302else 4303 if test -n "$LEX"; then 4304 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4305else 4306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4307for as_dir in $PATH 4308do 4309 IFS=$as_save_IFS 4310 test -z "$as_dir" && as_dir=. 4311 for ac_exec_ext in '' $ac_executable_extensions; do 4312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4313 ac_cv_prog_LEX="$ac_prog" 4314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4315 break 2 4316 fi 4317done 4318 done 4319IFS=$as_save_IFS 4320 4321fi 4322fi 4323LEX=$ac_cv_prog_LEX 4324if test -n "$LEX"; then 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 4326$as_echo "$LEX" >&6; } 4327else 4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4329$as_echo "no" >&6; } 4330fi 4331 4332 4333 test -n "$LEX" && break 4334done 4335test -n "$LEX" || LEX=":" 4336 4337if test "x$LEX" != "x:"; then 4338 cat >conftest.l <<_ACEOF 4339%% 4340a { ECHO; } 4341b { REJECT; } 4342c { yymore (); } 4343d { yyless (1); } 4344e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 4345 yyless ((input () != 0)); } 4346f { unput (yytext[0]); } 4347. { BEGIN INITIAL; } 4348%% 4349#ifdef YYTEXT_POINTER 4350extern char *yytext; 4351#endif 4352int 4353main (void) 4354{ 4355 return ! yylex () + ! yywrap (); 4356} 4357_ACEOF 4358{ { ac_try="$LEX conftest.l" 4359case "(($ac_try" in 4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4361 *) ac_try_echo=$ac_try;; 4362esac 4363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4364$as_echo "$ac_try_echo"; } >&5 4365 (eval "$LEX conftest.l") 2>&5 4366 ac_status=$? 4367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4368 test $ac_status = 0; } 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 4370$as_echo_n "checking lex output file root... " >&6; } 4371if ${ac_cv_prog_lex_root+:} false; then : 4372 $as_echo_n "(cached) " >&6 4373else 4374 4375if test -f lex.yy.c; then 4376 ac_cv_prog_lex_root=lex.yy 4377elif test -f lexyy.c; then 4378 ac_cv_prog_lex_root=lexyy 4379else 4380 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 4381fi 4382fi 4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 4384$as_echo "$ac_cv_prog_lex_root" >&6; } 4385LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 4386 4387if test -z "${LEXLIB+set}"; then 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 4389$as_echo_n "checking lex library... " >&6; } 4390if ${ac_cv_lib_lex+:} false; then : 4391 $as_echo_n "(cached) " >&6 4392else 4393 4394 ac_save_LIBS=$LIBS 4395 ac_cv_lib_lex='none needed' 4396 for ac_lib in '' -lfl -ll; do 4397 LIBS="$ac_lib $ac_save_LIBS" 4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4399/* end confdefs.h. */ 4400`cat $LEX_OUTPUT_ROOT.c` 4401_ACEOF 4402if ac_fn_c_try_link "$LINENO"; then : 4403 ac_cv_lib_lex=$ac_lib 4404fi 4405rm -f core conftest.err conftest.$ac_objext \ 4406 conftest$ac_exeext conftest.$ac_ext 4407 test "$ac_cv_lib_lex" != 'none needed' && break 4408 done 4409 LIBS=$ac_save_LIBS 4410 4411fi 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 4413$as_echo "$ac_cv_lib_lex" >&6; } 4414 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 4415fi 4416 4417 4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 4419$as_echo_n "checking whether yytext is a pointer... " >&6; } 4420if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 4421 $as_echo_n "(cached) " >&6 4422else 4423 # POSIX says lex can declare yytext either as a pointer or an array; the 4424# default is implementation-dependent. Figure out which it is, since 4425# not all implementations provide the %pointer and %array declarations. 4426ac_cv_prog_lex_yytext_pointer=no 4427ac_save_LIBS=$LIBS 4428LIBS="$LEXLIB $ac_save_LIBS" 4429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4430/* end confdefs.h. */ 4431 4432 #define YYTEXT_POINTER 1 4433`cat $LEX_OUTPUT_ROOT.c` 4434_ACEOF 4435if ac_fn_c_try_link "$LINENO"; then : 4436 ac_cv_prog_lex_yytext_pointer=yes 4437fi 4438rm -f core conftest.err conftest.$ac_objext \ 4439 conftest$ac_exeext conftest.$ac_ext 4440LIBS=$ac_save_LIBS 4441 4442fi 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 4444$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 4445if test $ac_cv_prog_lex_yytext_pointer = yes; then 4446 4447$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 4448 4449fi 4450rm -f conftest.l $LEX_OUTPUT_ROOT.c 4451 4452fi 4453if test "$LEX" = :; then 4454 LEX=${am_missing_run}flex 4455fi 4456if test "x$LEX" == x; then : 4457 as_fn_error $? "A Lex/Flex program is required in order to compile wcalc." "$LINENO" 5 4458else 4459 if test "x$LEX" != xflex; then : 4460 LEX="$SHELL $missing_dir/missing flex" 4461 LEX_OUTPUT_ROOT=lex.yy 4462 4463 LEXLIB='' 4464 4465 4466fi 4467 4468fi 4469ac_ext=c 4470ac_cpp='$CPP $CPPFLAGS' 4471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4473ac_compiler_gnu=$ac_cv_c_compiler_gnu 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4475$as_echo_n "checking how to run the C preprocessor... " >&6; } 4476# On Suns, sometimes $CPP names a directory. 4477if test -n "$CPP" && test -d "$CPP"; then 4478 CPP= 4479fi 4480if test -z "$CPP"; then 4481 if ${ac_cv_prog_CPP+:} false; then : 4482 $as_echo_n "(cached) " >&6 4483else 4484 # Double quotes because CPP needs to be expanded 4485 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4486 do 4487 ac_preproc_ok=false 4488for ac_c_preproc_warn_flag in '' yes 4489do 4490 # Use a header file that comes with gcc, so configuring glibc 4491 # with a fresh cross-compiler works. 4492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4493 # <limits.h> exists even on freestanding compilers. 4494 # On the NeXT, cc -E runs the code through the compiler's parser, 4495 # not just through cpp. "Syntax error" is here to catch this case. 4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4497/* end confdefs.h. */ 4498#ifdef __STDC__ 4499# include <limits.h> 4500#else 4501# include <assert.h> 4502#endif 4503 Syntax error 4504_ACEOF 4505if ac_fn_c_try_cpp "$LINENO"; then : 4506 4507else 4508 # Broken: fails on valid input. 4509continue 4510fi 4511rm -f conftest.err conftest.i conftest.$ac_ext 4512 4513 # OK, works on sane cases. Now check whether nonexistent headers 4514 # can be detected and how. 4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4516/* end confdefs.h. */ 4517#include <ac_nonexistent.h> 4518_ACEOF 4519if ac_fn_c_try_cpp "$LINENO"; then : 4520 # Broken: success on invalid input. 4521continue 4522else 4523 # Passes both tests. 4524ac_preproc_ok=: 4525break 4526fi 4527rm -f conftest.err conftest.i conftest.$ac_ext 4528 4529done 4530# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4531rm -f conftest.i conftest.err conftest.$ac_ext 4532if $ac_preproc_ok; then : 4533 break 4534fi 4535 4536 done 4537 ac_cv_prog_CPP=$CPP 4538 4539fi 4540 CPP=$ac_cv_prog_CPP 4541else 4542 ac_cv_prog_CPP=$CPP 4543fi 4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4545$as_echo "$CPP" >&6; } 4546ac_preproc_ok=false 4547for ac_c_preproc_warn_flag in '' yes 4548do 4549 # Use a header file that comes with gcc, so configuring glibc 4550 # with a fresh cross-compiler works. 4551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4552 # <limits.h> exists even on freestanding compilers. 4553 # On the NeXT, cc -E runs the code through the compiler's parser, 4554 # not just through cpp. "Syntax error" is here to catch this case. 4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4556/* end confdefs.h. */ 4557#ifdef __STDC__ 4558# include <limits.h> 4559#else 4560# include <assert.h> 4561#endif 4562 Syntax error 4563_ACEOF 4564if ac_fn_c_try_cpp "$LINENO"; then : 4565 4566else 4567 # Broken: fails on valid input. 4568continue 4569fi 4570rm -f conftest.err conftest.i conftest.$ac_ext 4571 4572 # OK, works on sane cases. Now check whether nonexistent headers 4573 # can be detected and how. 4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4575/* end confdefs.h. */ 4576#include <ac_nonexistent.h> 4577_ACEOF 4578if ac_fn_c_try_cpp "$LINENO"; then : 4579 # Broken: success on invalid input. 4580continue 4581else 4582 # Passes both tests. 4583ac_preproc_ok=: 4584break 4585fi 4586rm -f conftest.err conftest.i conftest.$ac_ext 4587 4588done 4589# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4590rm -f conftest.i conftest.err conftest.$ac_ext 4591if $ac_preproc_ok; then : 4592 4593else 4594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4596as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4597See \`config.log' for more details" "$LINENO" 5; } 4598fi 4599 4600ac_ext=c 4601ac_cpp='$CPP $CPPFLAGS' 4602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4604ac_compiler_gnu=$ac_cv_c_compiler_gnu 4605 4606 4607 4608if test "x$enable_picky" = xyes; then : 4609 CFLAGS="$CFLAGS -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wmissing-prototypes -Wstrict-prototypes" 4610fi 4611 4612CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200112L" 4613 4614 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4616$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4617if ${ac_cv_path_GREP+:} false; then : 4618 $as_echo_n "(cached) " >&6 4619else 4620 if test -z "$GREP"; then 4621 ac_path_GREP_found=false 4622 # Loop through the user's path and test for each of PROGNAME-LIST 4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4624for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4625do 4626 IFS=$as_save_IFS 4627 test -z "$as_dir" && as_dir=. 4628 for ac_prog in grep ggrep; do 4629 for ac_exec_ext in '' $ac_executable_extensions; do 4630 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4631 as_fn_executable_p "$ac_path_GREP" || continue 4632# Check for GNU ac_path_GREP and select it if it is found. 4633 # Check for GNU $ac_path_GREP 4634case `"$ac_path_GREP" --version 2>&1` in 4635*GNU*) 4636 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4637*) 4638 ac_count=0 4639 $as_echo_n 0123456789 >"conftest.in" 4640 while : 4641 do 4642 cat "conftest.in" "conftest.in" >"conftest.tmp" 4643 mv "conftest.tmp" "conftest.in" 4644 cp "conftest.in" "conftest.nl" 4645 $as_echo 'GREP' >> "conftest.nl" 4646 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4648 as_fn_arith $ac_count + 1 && ac_count=$as_val 4649 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4650 # Best one so far, save it but keep looking for a better one 4651 ac_cv_path_GREP="$ac_path_GREP" 4652 ac_path_GREP_max=$ac_count 4653 fi 4654 # 10*(2^10) chars as input seems more than enough 4655 test $ac_count -gt 10 && break 4656 done 4657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4658esac 4659 4660 $ac_path_GREP_found && break 3 4661 done 4662 done 4663 done 4664IFS=$as_save_IFS 4665 if test -z "$ac_cv_path_GREP"; then 4666 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4667 fi 4668else 4669 ac_cv_path_GREP=$GREP 4670fi 4671 4672fi 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4674$as_echo "$ac_cv_path_GREP" >&6; } 4675 GREP="$ac_cv_path_GREP" 4676 4677 4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4679$as_echo_n "checking for egrep... " >&6; } 4680if ${ac_cv_path_EGREP+:} false; then : 4681 $as_echo_n "(cached) " >&6 4682else 4683 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4684 then ac_cv_path_EGREP="$GREP -E" 4685 else 4686 if test -z "$EGREP"; then 4687 ac_path_EGREP_found=false 4688 # Loop through the user's path and test for each of PROGNAME-LIST 4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4690for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4691do 4692 IFS=$as_save_IFS 4693 test -z "$as_dir" && as_dir=. 4694 for ac_prog in egrep; do 4695 for ac_exec_ext in '' $ac_executable_extensions; do 4696 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4697 as_fn_executable_p "$ac_path_EGREP" || continue 4698# Check for GNU ac_path_EGREP and select it if it is found. 4699 # Check for GNU $ac_path_EGREP 4700case `"$ac_path_EGREP" --version 2>&1` in 4701*GNU*) 4702 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4703*) 4704 ac_count=0 4705 $as_echo_n 0123456789 >"conftest.in" 4706 while : 4707 do 4708 cat "conftest.in" "conftest.in" >"conftest.tmp" 4709 mv "conftest.tmp" "conftest.in" 4710 cp "conftest.in" "conftest.nl" 4711 $as_echo 'EGREP' >> "conftest.nl" 4712 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4714 as_fn_arith $ac_count + 1 && ac_count=$as_val 4715 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4716 # Best one so far, save it but keep looking for a better one 4717 ac_cv_path_EGREP="$ac_path_EGREP" 4718 ac_path_EGREP_max=$ac_count 4719 fi 4720 # 10*(2^10) chars as input seems more than enough 4721 test $ac_count -gt 10 && break 4722 done 4723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4724esac 4725 4726 $ac_path_EGREP_found && break 3 4727 done 4728 done 4729 done 4730IFS=$as_save_IFS 4731 if test -z "$ac_cv_path_EGREP"; then 4732 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4733 fi 4734else 4735 ac_cv_path_EGREP=$EGREP 4736fi 4737 4738 fi 4739fi 4740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4741$as_echo "$ac_cv_path_EGREP" >&6; } 4742 EGREP="$ac_cv_path_EGREP" 4743 4744 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4746$as_echo_n "checking for ANSI C header files... " >&6; } 4747if ${ac_cv_header_stdc+:} false; then : 4748 $as_echo_n "(cached) " >&6 4749else 4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4751/* end confdefs.h. */ 4752#include <stdlib.h> 4753#include <stdarg.h> 4754#include <string.h> 4755#include <float.h> 4756 4757int 4758main () 4759{ 4760 4761 ; 4762 return 0; 4763} 4764_ACEOF 4765if ac_fn_c_try_compile "$LINENO"; then : 4766 ac_cv_header_stdc=yes 4767else 4768 ac_cv_header_stdc=no 4769fi 4770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4771 4772if test $ac_cv_header_stdc = yes; then 4773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4775/* end confdefs.h. */ 4776#include <string.h> 4777 4778_ACEOF 4779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4780 $EGREP "memchr" >/dev/null 2>&1; then : 4781 4782else 4783 ac_cv_header_stdc=no 4784fi 4785rm -f conftest* 4786 4787fi 4788 4789if test $ac_cv_header_stdc = yes; then 4790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4792/* end confdefs.h. */ 4793#include <stdlib.h> 4794 4795_ACEOF 4796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4797 $EGREP "free" >/dev/null 2>&1; then : 4798 4799else 4800 ac_cv_header_stdc=no 4801fi 4802rm -f conftest* 4803 4804fi 4805 4806if test $ac_cv_header_stdc = yes; then 4807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4808 if test "$cross_compiling" = yes; then : 4809 : 4810else 4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4812/* end confdefs.h. */ 4813#include <ctype.h> 4814#include <stdlib.h> 4815#if ((' ' & 0x0FF) == 0x020) 4816# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4817# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4818#else 4819# define ISLOWER(c) \ 4820 (('a' <= (c) && (c) <= 'i') \ 4821 || ('j' <= (c) && (c) <= 'r') \ 4822 || ('s' <= (c) && (c) <= 'z')) 4823# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4824#endif 4825 4826#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4827int 4828main () 4829{ 4830 int i; 4831 for (i = 0; i < 256; i++) 4832 if (XOR (islower (i), ISLOWER (i)) 4833 || toupper (i) != TOUPPER (i)) 4834 return 2; 4835 return 0; 4836} 4837_ACEOF 4838if ac_fn_c_try_run "$LINENO"; then : 4839 4840else 4841 ac_cv_header_stdc=no 4842fi 4843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4844 conftest.$ac_objext conftest.beam conftest.$ac_ext 4845fi 4846 4847fi 4848fi 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4850$as_echo "$ac_cv_header_stdc" >&6; } 4851if test $ac_cv_header_stdc = yes; then 4852 4853$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4854 4855fi 4856 4857# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4858for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4859 inttypes.h stdint.h unistd.h 4860do : 4861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4862ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4863" 4864if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4865 cat >>confdefs.h <<_ACEOF 4866#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4867_ACEOF 4868 4869fi 4870 4871done 4872 4873 4874for ac_header in limits.h 4875do : 4876 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 4877if test "x$ac_cv_header_limits_h" = xyes; then : 4878 cat >>confdefs.h <<_ACEOF 4879#define HAVE_LIMITS_H 1 4880_ACEOF 4881 4882fi 4883 4884done 4885 4886ac_fn_c_check_decl "$LINENO" "PATH_MAX" "ac_cv_have_decl_PATH_MAX" "#ifdef HAVE_LIMITS_H 4887 #include <limits.h> 4888 #endif 4889 4890" 4891if test "x$ac_cv_have_decl_PATH_MAX" = xyes; then : 4892 4893$as_echo "#define HAVE_PATH_MAX 1" >>confdefs.h 4894 4895fi 4896 4897 4898# Checks for libraries. 4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos in -lm" >&5 4900$as_echo_n "checking for acos in -lm... " >&6; } 4901if ${ac_cv_lib_m_acos+:} false; then : 4902 $as_echo_n "(cached) " >&6 4903else 4904 ac_check_lib_save_LIBS=$LIBS 4905LIBS="-lm $LIBS" 4906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4907/* end confdefs.h. */ 4908 4909/* Override any GCC internal prototype to avoid an error. 4910 Use char because int might match the return type of a GCC 4911 builtin and then its argument prototype would still apply. */ 4912#ifdef __cplusplus 4913extern "C" 4914#endif 4915char acos (); 4916int 4917main () 4918{ 4919return acos (); 4920 ; 4921 return 0; 4922} 4923_ACEOF 4924if ac_fn_c_try_link "$LINENO"; then : 4925 ac_cv_lib_m_acos=yes 4926else 4927 ac_cv_lib_m_acos=no 4928fi 4929rm -f core conftest.err conftest.$ac_objext \ 4930 conftest$ac_exeext conftest.$ac_ext 4931LIBS=$ac_check_lib_save_LIBS 4932fi 4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acos" >&5 4934$as_echo "$ac_cv_lib_m_acos" >&6; } 4935if test "x$ac_cv_lib_m_acos" = xyes; then : 4936 cat >>confdefs.h <<_ACEOF 4937#define HAVE_LIBM 1 4938_ACEOF 4939 4940 LIBS="-lm $LIBS" 4941 4942fi 4943 4944 4945# Check whether --with-readline was given. 4946if test "${with_readline+set}" = set; then : 4947 withval=$with_readline; nc_cv_readline=$withval 4948else 4949 nc_cv_readline=yes 4950fi 4951 4952if test "x$nc_cv_readline" = xyes; then : 4953 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 4955$as_echo_n "checking for a readline compatible library... " >&6; } 4956if ${vl_cv_lib_readline+:} false; then : 4957 $as_echo_n "(cached) " >&6 4958else 4959 4960 ORIG_LIBS="$LIBS" 4961 for readline_lib in readline edit editline; do 4962 for termcap_lib in "" termcap curses ncurses; do 4963 if test -z "$termcap_lib"; then 4964 TRY_LIB="-l$readline_lib" 4965 else 4966 TRY_LIB="-l$readline_lib -l$termcap_lib" 4967 fi 4968 LIBS="$ORIG_LIBS $TRY_LIB" 4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4970/* end confdefs.h. */ 4971 4972/* Override any GCC internal prototype to avoid an error. 4973 Use char because int might match the return type of a GCC 4974 builtin and then its argument prototype would still apply. */ 4975#ifdef __cplusplus 4976extern "C" 4977#endif 4978char rl_filename_completion_function (); 4979int 4980main () 4981{ 4982return rl_filename_completion_function (); 4983 ; 4984 return 0; 4985} 4986_ACEOF 4987if ac_fn_c_try_link "$LINENO"; then : 4988 vl_cv_lib_readline="$TRY_LIB" 4989fi 4990rm -f core conftest.err conftest.$ac_objext \ 4991 conftest$ac_exeext conftest.$ac_ext 4992 if test -n "$vl_cv_lib_readline"; then 4993 break 4994 fi 4995 done 4996 if test -n "$vl_cv_lib_readline"; then 4997 break 4998 fi 4999 done 5000 if test -z "$vl_cv_lib_readline"; then 5001 vl_cv_lib_readline="no" 5002 LIBS="$ORIG_LIBS" 5003 fi 5004 5005fi 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5 5007$as_echo "$vl_cv_lib_readline" >&6; } 5008 5009 if test "$vl_cv_lib_readline" != "no"; then 5010 5011$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 5012 5013 for ac_header in readline.h readline/readline.h 5014do : 5015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5016ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5017if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5018 cat >>confdefs.h <<_ACEOF 5019#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5020_ACEOF 5021 5022fi 5023 5024done 5025 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 5027$as_echo_n "checking whether readline supports history... " >&6; } 5028if ${vl_cv_lib_readline_history+:} false; then : 5029 $as_echo_n "(cached) " >&6 5030else 5031 5032 vl_cv_lib_readline_history="no" 5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5034/* end confdefs.h. */ 5035 5036/* Override any GCC internal prototype to avoid an error. 5037 Use char because int might match the return type of a GCC 5038 builtin and then its argument prototype would still apply. */ 5039#ifdef __cplusplus 5040extern "C" 5041#endif 5042char add_history (); 5043int 5044main () 5045{ 5046return add_history (); 5047 ; 5048 return 0; 5049} 5050_ACEOF 5051if ac_fn_c_try_link "$LINENO"; then : 5052 vl_cv_lib_readline_history="yes" 5053fi 5054rm -f core conftest.err conftest.$ac_objext \ 5055 conftest$ac_exeext conftest.$ac_ext 5056 5057fi 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5 5059$as_echo "$vl_cv_lib_readline_history" >&6; } 5060 if test "$vl_cv_lib_readline_history" = "yes"; then 5061 5062$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h 5063 5064 for ac_header in history.h readline/history.h 5065do : 5066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5067ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5068if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5069 cat >>confdefs.h <<_ACEOF 5070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5071_ACEOF 5072 5073fi 5074 5075done 5076 5077 fi 5078 fi 5079 5080fi 5081 5082#========================================================================================== 5083# GMP 5084#========================================================================================== 5085 5086# Check whether --with-gmp was given. 5087if test "${with_gmp+set}" = set; then : 5088 withval=$with_gmp; if test "x$enable_rpath" = xyes; then : 5089 GMP_CPPFLAGS="-I$with_gmp/include" 5090 GMP_LDFLAGS="-L$with_gmp/lib -Wl,-rpath,$with_gmp/lib" 5091else 5092 GMP_CPPFLAGS="-I$with_gmp/include" 5093 GMP_LDFLAGS="-L$with_gmp/lib" 5094fi 5095fi 5096 5097saved_CPPFLAGS="$CPPFLAGS" 5098saved_LDFLAGS="$LDFLAGS" 5099CPPFLAGS="$GMP_CPPFLAGS $CPPFLAGS" 5100LDFLAGS="$GMP_LDFLAGS $LDFLAGS" 5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5 5102$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; } 5103if ${ac_cv_lib_gmp___gmpz_init+:} false; then : 5104 $as_echo_n "(cached) " >&6 5105else 5106 ac_check_lib_save_LIBS=$LIBS 5107LIBS="-lgmp $LIBS" 5108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5109/* end confdefs.h. */ 5110 5111/* Override any GCC internal prototype to avoid an error. 5112 Use char because int might match the return type of a GCC 5113 builtin and then its argument prototype would still apply. */ 5114#ifdef __cplusplus 5115extern "C" 5116#endif 5117char __gmpz_init (); 5118int 5119main () 5120{ 5121return __gmpz_init (); 5122 ; 5123 return 0; 5124} 5125_ACEOF 5126if ac_fn_c_try_link "$LINENO"; then : 5127 ac_cv_lib_gmp___gmpz_init=yes 5128else 5129 ac_cv_lib_gmp___gmpz_init=no 5130fi 5131rm -f core conftest.err conftest.$ac_objext \ 5132 conftest$ac_exeext conftest.$ac_ext 5133LIBS=$ac_check_lib_save_LIBS 5134fi 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5 5136$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; } 5137if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then : 5138 cat >>confdefs.h <<_ACEOF 5139#define HAVE_LIBGMP 1 5140_ACEOF 5141 5142 LIBS="-lgmp $LIBS" 5143 5144else 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpz_init in -lgmp" >&5 5146$as_echo_n "checking for mpz_init in -lgmp... " >&6; } 5147if ${ac_cv_lib_gmp_mpz_init+:} false; then : 5148 $as_echo_n "(cached) " >&6 5149else 5150 ac_check_lib_save_LIBS=$LIBS 5151LIBS="-lgmp $LIBS" 5152cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5153/* end confdefs.h. */ 5154 5155/* Override any GCC internal prototype to avoid an error. 5156 Use char because int might match the return type of a GCC 5157 builtin and then its argument prototype would still apply. */ 5158#ifdef __cplusplus 5159extern "C" 5160#endif 5161char mpz_init (); 5162int 5163main () 5164{ 5165return mpz_init (); 5166 ; 5167 return 0; 5168} 5169_ACEOF 5170if ac_fn_c_try_link "$LINENO"; then : 5171 ac_cv_lib_gmp_mpz_init=yes 5172else 5173 ac_cv_lib_gmp_mpz_init=no 5174fi 5175rm -f core conftest.err conftest.$ac_objext \ 5176 conftest$ac_exeext conftest.$ac_ext 5177LIBS=$ac_check_lib_save_LIBS 5178fi 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_mpz_init" >&5 5180$as_echo "$ac_cv_lib_gmp_mpz_init" >&6; } 5181if test "x$ac_cv_lib_gmp_mpz_init" = xyes; then : 5182 cat >>confdefs.h <<_ACEOF 5183#define HAVE_LIBGMP 1 5184_ACEOF 5185 5186 LIBS="-lgmp $LIBS" 5187 5188else 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpz_init in -lgmp2" >&5 5190$as_echo_n "checking for mpz_init in -lgmp2... " >&6; } 5191if ${ac_cv_lib_gmp2_mpz_init+:} false; then : 5192 $as_echo_n "(cached) " >&6 5193else 5194 ac_check_lib_save_LIBS=$LIBS 5195LIBS="-lgmp2 $LIBS" 5196cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5197/* end confdefs.h. */ 5198 5199/* Override any GCC internal prototype to avoid an error. 5200 Use char because int might match the return type of a GCC 5201 builtin and then its argument prototype would still apply. */ 5202#ifdef __cplusplus 5203extern "C" 5204#endif 5205char mpz_init (); 5206int 5207main () 5208{ 5209return mpz_init (); 5210 ; 5211 return 0; 5212} 5213_ACEOF 5214if ac_fn_c_try_link "$LINENO"; then : 5215 ac_cv_lib_gmp2_mpz_init=yes 5216else 5217 ac_cv_lib_gmp2_mpz_init=no 5218fi 5219rm -f core conftest.err conftest.$ac_objext \ 5220 conftest$ac_exeext conftest.$ac_ext 5221LIBS=$ac_check_lib_save_LIBS 5222fi 5223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp2_mpz_init" >&5 5224$as_echo "$ac_cv_lib_gmp2_mpz_init" >&6; } 5225if test "x$ac_cv_lib_gmp2_mpz_init" = xyes; then : 5226 cat >>confdefs.h <<_ACEOF 5227#define HAVE_LIBGMP2 1 5228_ACEOF 5229 5230 LIBS="-lgmp2 $LIBS" 5231 5232fi 5233 5234fi 5235 5236fi 5237 5238CPPFLAGS="$saved_CPPFLAGS" 5239LDFFLAGS="$saved_LDFLAGS" 5240 5241 5242 5243#========================================================================================== 5244# MPFR 5245#========================================================================================== 5246 5247# Check whether --with-mpfr was given. 5248if test "${with_mpfr+set}" = set; then : 5249 withval=$with_mpfr; if test "x$enable_rpath" = xyes; then : 5250 MPFR_CPPFLAGS="-I$with_mpfr/include" 5251 MPFR_LDFLAGS="-L$with_mpfr/lib -Wl,-rpath,$with_mpfr/lib" 5252else 5253 MPFR_CPPFLAGS="-I$with_mpfr/include" 5254 MPFR_LDFLAGS="-L$with_mpfr/lib" 5255fi 5256fi 5257 5258saved_CPPFLAGS="$CPPFLAGS" 5259saved_LDFLAGS="$LDFLAGS" 5260CPPFLAGS="$MPFR_CPPFLAGS $GMP_CPPFLAGS $CPPFLAGS" 5261LDFLAGS="$MPFR_LDFLAGS $GMP_LDFLAGS $LDFLAGS" 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mpfr_free_str" >&5 5263$as_echo_n "checking for library containing mpfr_free_str... " >&6; } 5264if ${ac_cv_search_mpfr_free_str+:} false; then : 5265 $as_echo_n "(cached) " >&6 5266else 5267 ac_func_search_save_LIBS=$LIBS 5268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5269/* end confdefs.h. */ 5270 5271/* Override any GCC internal prototype to avoid an error. 5272 Use char because int might match the return type of a GCC 5273 builtin and then its argument prototype would still apply. */ 5274#ifdef __cplusplus 5275extern "C" 5276#endif 5277char mpfr_free_str (); 5278int 5279main () 5280{ 5281return mpfr_free_str (); 5282 ; 5283 return 0; 5284} 5285_ACEOF 5286for ac_lib in '' mpfr; do 5287 if test -z "$ac_lib"; then 5288 ac_res="none required" 5289 else 5290 ac_res=-l$ac_lib 5291 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5292 fi 5293 if ac_fn_c_try_link "$LINENO"; then : 5294 ac_cv_search_mpfr_free_str=$ac_res 5295fi 5296rm -f core conftest.err conftest.$ac_objext \ 5297 conftest$ac_exeext 5298 if ${ac_cv_search_mpfr_free_str+:} false; then : 5299 break 5300fi 5301done 5302if ${ac_cv_search_mpfr_free_str+:} false; then : 5303 5304else 5305 ac_cv_search_mpfr_free_str=no 5306fi 5307rm conftest.$ac_ext 5308LIBS=$ac_func_search_save_LIBS 5309fi 5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mpfr_free_str" >&5 5311$as_echo "$ac_cv_search_mpfr_free_str" >&6; } 5312ac_res=$ac_cv_search_mpfr_free_str 5313if test "$ac_res" != no; then : 5314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5315 5316$as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h 5317 5318else 5319 as_fn_error $? "Need MPFR 2.1.x or better. see http://www.mpfr.org" "$LINENO" 5 5320fi 5321 5322ac_fn_c_check_func "$LINENO" "mpfr_sec" "ac_cv_func_mpfr_sec" 5323if test "x$ac_cv_func_mpfr_sec" = xyes; then : 5324 5325$as_echo "#define HAVE_MPFR_22 1" >>confdefs.h 5326 5327fi 5328 5329 5330 5331CPPFLAGS="$saved_CPPFLAGS" 5332LDFFLAGS="$saved_LDFLAGS" 5333# what version of mpfr 5334#========================================================================================== 5335 5336# Checks for header files. 5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5338$as_echo_n "checking for ANSI C header files... " >&6; } 5339if ${ac_cv_header_stdc+:} false; then : 5340 $as_echo_n "(cached) " >&6 5341else 5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5343/* end confdefs.h. */ 5344#include <stdlib.h> 5345#include <stdarg.h> 5346#include <string.h> 5347#include <float.h> 5348 5349int 5350main () 5351{ 5352 5353 ; 5354 return 0; 5355} 5356_ACEOF 5357if ac_fn_c_try_compile "$LINENO"; then : 5358 ac_cv_header_stdc=yes 5359else 5360 ac_cv_header_stdc=no 5361fi 5362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5363 5364if test $ac_cv_header_stdc = yes; then 5365 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5367/* end confdefs.h. */ 5368#include <string.h> 5369 5370_ACEOF 5371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5372 $EGREP "memchr" >/dev/null 2>&1; then : 5373 5374else 5375 ac_cv_header_stdc=no 5376fi 5377rm -f conftest* 5378 5379fi 5380 5381if test $ac_cv_header_stdc = yes; then 5382 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5384/* end confdefs.h. */ 5385#include <stdlib.h> 5386 5387_ACEOF 5388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5389 $EGREP "free" >/dev/null 2>&1; then : 5390 5391else 5392 ac_cv_header_stdc=no 5393fi 5394rm -f conftest* 5395 5396fi 5397 5398if test $ac_cv_header_stdc = yes; then 5399 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5400 if test "$cross_compiling" = yes; then : 5401 : 5402else 5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5404/* end confdefs.h. */ 5405#include <ctype.h> 5406#include <stdlib.h> 5407#if ((' ' & 0x0FF) == 0x020) 5408# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5409# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5410#else 5411# define ISLOWER(c) \ 5412 (('a' <= (c) && (c) <= 'i') \ 5413 || ('j' <= (c) && (c) <= 'r') \ 5414 || ('s' <= (c) && (c) <= 'z')) 5415# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5416#endif 5417 5418#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5419int 5420main () 5421{ 5422 int i; 5423 for (i = 0; i < 256; i++) 5424 if (XOR (islower (i), ISLOWER (i)) 5425 || toupper (i) != TOUPPER (i)) 5426 return 2; 5427 return 0; 5428} 5429_ACEOF 5430if ac_fn_c_try_run "$LINENO"; then : 5431 5432else 5433 ac_cv_header_stdc=no 5434fi 5435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5436 conftest.$ac_objext conftest.beam conftest.$ac_ext 5437fi 5438 5439fi 5440fi 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5442$as_echo "$ac_cv_header_stdc" >&6; } 5443if test $ac_cv_header_stdc = yes; then 5444 5445$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5446 5447fi 5448 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 5450$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 5451if ${ac_cv_header_sys_wait_h+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5455/* end confdefs.h. */ 5456#include <sys/types.h> 5457#include <sys/wait.h> 5458#ifndef WEXITSTATUS 5459# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 5460#endif 5461#ifndef WIFEXITED 5462# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 5463#endif 5464 5465int 5466main () 5467{ 5468 int s; 5469 wait (&s); 5470 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 5471 ; 5472 return 0; 5473} 5474_ACEOF 5475if ac_fn_c_try_compile "$LINENO"; then : 5476 ac_cv_header_sys_wait_h=yes 5477else 5478 ac_cv_header_sys_wait_h=no 5479fi 5480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5481fi 5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 5483$as_echo "$ac_cv_header_sys_wait_h" >&6; } 5484if test $ac_cv_header_sys_wait_h = yes; then 5485 5486$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 5487 5488fi 5489 5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 5491$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 5492if ${ac_cv_header_time+:} false; then : 5493 $as_echo_n "(cached) " >&6 5494else 5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5496/* end confdefs.h. */ 5497#include <sys/types.h> 5498#include <sys/time.h> 5499#include <time.h> 5500 5501int 5502main () 5503{ 5504if ((struct tm *) 0) 5505return 0; 5506 ; 5507 return 0; 5508} 5509_ACEOF 5510if ac_fn_c_try_compile "$LINENO"; then : 5511 ac_cv_header_time=yes 5512else 5513 ac_cv_header_time=no 5514fi 5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5516fi 5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 5518$as_echo "$ac_cv_header_time" >&6; } 5519if test $ac_cv_header_time = yes; then 5520 5521$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 5522 5523fi 5524 5525for ac_header in fcntl.h float.h inttypes.h limits.h stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h stdio.h 5526do : 5527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5528ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5529if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5530 cat >>confdefs.h <<_ACEOF 5531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5532_ACEOF 5533 5534fi 5535 5536done 5537 5538 5539# Checks for typedefs, structures, and compiler characteristics. 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5541$as_echo_n "checking for inline... " >&6; } 5542if ${ac_cv_c_inline+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 ac_cv_c_inline=no 5546for ac_kw in inline __inline__ __inline; do 5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5548/* end confdefs.h. */ 5549#ifndef __cplusplus 5550typedef int foo_t; 5551static $ac_kw foo_t static_foo () {return 0; } 5552$ac_kw foo_t foo () {return 0; } 5553#endif 5554 5555_ACEOF 5556if ac_fn_c_try_compile "$LINENO"; then : 5557 ac_cv_c_inline=$ac_kw 5558fi 5559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5560 test "$ac_cv_c_inline" != no && break 5561done 5562 5563fi 5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5565$as_echo "$ac_cv_c_inline" >&6; } 5566 5567case $ac_cv_c_inline in 5568 inline | yes) ;; 5569 *) 5570 case $ac_cv_c_inline in 5571 no) ac_val=;; 5572 *) ac_val=$ac_cv_c_inline;; 5573 esac 5574 cat >>confdefs.h <<_ACEOF 5575#ifndef __cplusplus 5576#define inline $ac_val 5577#endif 5578_ACEOF 5579 ;; 5580esac 5581 5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5583$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5584if ${ac_cv_c_const+:} false; then : 5585 $as_echo_n "(cached) " >&6 5586else 5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5588/* end confdefs.h. */ 5589 5590int 5591main () 5592{ 5593 5594#ifndef __cplusplus 5595 /* Ultrix mips cc rejects this sort of thing. */ 5596 typedef int charset[2]; 5597 const charset cs = { 0, 0 }; 5598 /* SunOS 4.1.1 cc rejects this. */ 5599 char const *const *pcpcc; 5600 char **ppc; 5601 /* NEC SVR4.0.2 mips cc rejects this. */ 5602 struct point {int x, y;}; 5603 static struct point const zero = {0,0}; 5604 /* AIX XL C 1.02.0.0 rejects this. 5605 It does not let you subtract one const X* pointer from another in 5606 an arm of an if-expression whose if-part is not a constant 5607 expression */ 5608 const char *g = "string"; 5609 pcpcc = &g + (g ? g-g : 0); 5610 /* HPUX 7.0 cc rejects these. */ 5611 ++pcpcc; 5612 ppc = (char**) pcpcc; 5613 pcpcc = (char const *const *) ppc; 5614 { /* SCO 3.2v4 cc rejects this sort of thing. */ 5615 char tx; 5616 char *t = &tx; 5617 char const *s = 0 ? (char *) 0 : (char const *) 0; 5618 5619 *t++ = 0; 5620 if (s) return 0; 5621 } 5622 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5623 int x[] = {25, 17}; 5624 const int *foo = &x[0]; 5625 ++foo; 5626 } 5627 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5628 typedef const int *iptr; 5629 iptr p = 0; 5630 ++p; 5631 } 5632 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 5633 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5634 struct s { int j; const int *ap[3]; } bx; 5635 struct s *b = &bx; b->j = 5; 5636 } 5637 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5638 const int foo = 10; 5639 if (!foo) return 0; 5640 } 5641 return !cs[0] && !zero.x; 5642#endif 5643 5644 ; 5645 return 0; 5646} 5647_ACEOF 5648if ac_fn_c_try_compile "$LINENO"; then : 5649 ac_cv_c_const=yes 5650else 5651 ac_cv_c_const=no 5652fi 5653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5654fi 5655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5656$as_echo "$ac_cv_c_const" >&6; } 5657if test $ac_cv_c_const = no; then 5658 5659$as_echo "#define const /**/" >>confdefs.h 5660 5661fi 5662 5663ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 5664if test "x$ac_cv_type_size_t" = xyes; then : 5665 5666else 5667 5668cat >>confdefs.h <<_ACEOF 5669#define size_t unsigned int 5670_ACEOF 5671 5672fi 5673 5674 5675# Checks for library functions. 5676for ac_header in stdlib.h 5677do : 5678 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 5679if test "x$ac_cv_header_stdlib_h" = xyes; then : 5680 cat >>confdefs.h <<_ACEOF 5681#define HAVE_STDLIB_H 1 5682_ACEOF 5683 5684fi 5685 5686done 5687 5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 5689$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 5690if ${ac_cv_func_malloc_0_nonnull+:} false; then : 5691 $as_echo_n "(cached) " >&6 5692else 5693 if test "$cross_compiling" = yes; then : 5694 ac_cv_func_malloc_0_nonnull=no 5695else 5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5697/* end confdefs.h. */ 5698#if defined STDC_HEADERS || defined HAVE_STDLIB_H 5699# include <stdlib.h> 5700#else 5701char *malloc (); 5702#endif 5703 5704int 5705main () 5706{ 5707return ! malloc (0); 5708 ; 5709 return 0; 5710} 5711_ACEOF 5712if ac_fn_c_try_run "$LINENO"; then : 5713 ac_cv_func_malloc_0_nonnull=yes 5714else 5715 ac_cv_func_malloc_0_nonnull=no 5716fi 5717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5718 conftest.$ac_objext conftest.beam conftest.$ac_ext 5719fi 5720 5721fi 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 5723$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 5724if test $ac_cv_func_malloc_0_nonnull = yes; then : 5725 5726$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 5727 5728else 5729 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 5730 5731 case " $LIBOBJS " in 5732 *" malloc.$ac_objext "* ) ;; 5733 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 5734 ;; 5735esac 5736 5737 5738$as_echo "#define malloc rpl_malloc" >>confdefs.h 5739 5740fi 5741 5742 5743for ac_header in stdlib.h 5744do : 5745 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 5746if test "x$ac_cv_header_stdlib_h" = xyes; then : 5747 cat >>confdefs.h <<_ACEOF 5748#define HAVE_STDLIB_H 1 5749_ACEOF 5750 5751fi 5752 5753done 5754 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 5756$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 5757if ${ac_cv_func_realloc_0_nonnull+:} false; then : 5758 $as_echo_n "(cached) " >&6 5759else 5760 if test "$cross_compiling" = yes; then : 5761 ac_cv_func_realloc_0_nonnull=no 5762else 5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5764/* end confdefs.h. */ 5765#if defined STDC_HEADERS || defined HAVE_STDLIB_H 5766# include <stdlib.h> 5767#else 5768char *realloc (); 5769#endif 5770 5771int 5772main () 5773{ 5774return ! realloc (0, 0); 5775 ; 5776 return 0; 5777} 5778_ACEOF 5779if ac_fn_c_try_run "$LINENO"; then : 5780 ac_cv_func_realloc_0_nonnull=yes 5781else 5782 ac_cv_func_realloc_0_nonnull=no 5783fi 5784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5785 conftest.$ac_objext conftest.beam conftest.$ac_ext 5786fi 5787 5788fi 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 5790$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 5791if test $ac_cv_func_realloc_0_nonnull = yes; then : 5792 5793$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 5794 5795else 5796 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 5797 5798 case " $LIBOBJS " in 5799 *" realloc.$ac_objext "* ) ;; 5800 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 5801 ;; 5802esac 5803 5804 5805$as_echo "#define realloc rpl_realloc" >>confdefs.h 5806 5807fi 5808 5809 5810for ac_func in vprintf 5811do : 5812 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 5813if test "x$ac_cv_func_vprintf" = xyes; then : 5814 cat >>confdefs.h <<_ACEOF 5815#define HAVE_VPRINTF 1 5816_ACEOF 5817 5818ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 5819if test "x$ac_cv_func__doprnt" = xyes; then : 5820 5821$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 5822 5823fi 5824 5825fi 5826done 5827 5828 5829for ac_func in gettimeofday memset modf pow stpcpy strchr strdup strerror strrchr strtoul 5830do : 5831 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5832ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5833if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5834 cat >>confdefs.h <<_ACEOF 5835#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5836_ACEOF 5837 5838fi 5839done 5840 5841 5842ac_config_headers="$ac_config_headers src/common/includes/config.h" 5843 5844ac_config_files="$ac_config_files Makefile src/Makefile src/common/Makefile src/common/includes/Makefile src/gui/Makefile test/Makefile English.lproj/Makefile" 5845 5846cat >confcache <<\_ACEOF 5847# This file is a shell script that caches the results of configure 5848# tests run on this system so they can be shared between configure 5849# scripts and configure runs, see configure's option --config-cache. 5850# It is not useful on other systems. If it contains results you don't 5851# want to keep, you may remove or edit it. 5852# 5853# config.status only pays attention to the cache file if you give it 5854# the --recheck option to rerun configure. 5855# 5856# `ac_cv_env_foo' variables (set or unset) will be overridden when 5857# loading this file, other *unset* `ac_cv_foo' will be assigned the 5858# following values. 5859 5860_ACEOF 5861 5862# The following way of writing the cache mishandles newlines in values, 5863# but we know of no workaround that is simple, portable, and efficient. 5864# So, we kill variables containing newlines. 5865# Ultrix sh set writes to stderr and can't be redirected directly, 5866# and sets the high bit in the cache file unless we assign to the vars. 5867( 5868 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5869 eval ac_val=\$$ac_var 5870 case $ac_val in #( 5871 *${as_nl}*) 5872 case $ac_var in #( 5873 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 5874$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5875 esac 5876 case $ac_var in #( 5877 _ | IFS | as_nl) ;; #( 5878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5879 *) { eval $ac_var=; unset $ac_var;} ;; 5880 esac ;; 5881 esac 5882 done 5883 5884 (set) 2>&1 | 5885 case $as_nl`(ac_space=' '; set) 2>&1` in #( 5886 *${as_nl}ac_space=\ *) 5887 # `set' does not quote correctly, so add quotes: double-quote 5888 # substitution turns \\\\ into \\, and sed turns \\ into \. 5889 sed -n \ 5890 "s/'/'\\\\''/g; 5891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5892 ;; #( 5893 *) 5894 # `set' quotes correctly as required by POSIX, so do not add quotes. 5895 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5896 ;; 5897 esac | 5898 sort 5899) | 5900 sed ' 5901 /^ac_cv_env_/b end 5902 t clear 5903 :clear 5904 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5905 t end 5906 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5907 :end' >>confcache 5908if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5909 if test -w "$cache_file"; then 5910 if test "x$cache_file" != "x/dev/null"; then 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5912$as_echo "$as_me: updating cache $cache_file" >&6;} 5913 if test ! -f "$cache_file" || test -h "$cache_file"; then 5914 cat confcache >"$cache_file" 5915 else 5916 case $cache_file in #( 5917 */* | ?:*) 5918 mv -f confcache "$cache_file"$$ && 5919 mv -f "$cache_file"$$ "$cache_file" ;; #( 5920 *) 5921 mv -f confcache "$cache_file" ;; 5922 esac 5923 fi 5924 fi 5925 else 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5927$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5928 fi 5929fi 5930rm -f confcache 5931 5932test "x$prefix" = xNONE && prefix=$ac_default_prefix 5933# Let make expand exec_prefix. 5934test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5935 5936DEFS=-DHAVE_CONFIG_H 5937 5938ac_libobjs= 5939ac_ltlibobjs= 5940U= 5941for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5942 # 1. Remove the extension, and $U if already installed. 5943 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5944 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5945 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5946 # will be set to the directory where LIBOBJS objects are built. 5947 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5948 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 5949done 5950LIBOBJS=$ac_libobjs 5951 5952LTLIBOBJS=$ac_ltlibobjs 5953 5954 5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 5956$as_echo_n "checking that generated files are newer than configure... " >&6; } 5957 if test -n "$am_sleep_pid"; then 5958 # Hide warnings about reused PIDs. 5959 wait $am_sleep_pid 2>/dev/null 5960 fi 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 5962$as_echo "done" >&6; } 5963 if test -n "$EXEEXT"; then 5964 am__EXEEXT_TRUE= 5965 am__EXEEXT_FALSE='#' 5966else 5967 am__EXEEXT_TRUE='#' 5968 am__EXEEXT_FALSE= 5969fi 5970 5971if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 5972 as_fn_error $? "conditional \"AMDEP\" was never defined. 5973Usually this means the macro was only invoked conditionally." "$LINENO" 5 5974fi 5975if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5976 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 5977Usually this means the macro was only invoked conditionally." "$LINENO" 5 5978fi 5979 5980: "${CONFIG_STATUS=./config.status}" 5981ac_write_fail=0 5982ac_clean_files_save=$ac_clean_files 5983ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5984{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5985$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5986as_write_fail=0 5987cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 5988#! $SHELL 5989# Generated by $as_me. 5990# Run this file to recreate the current configuration. 5991# Compiler output produced by configure, useful for debugging 5992# configure, is in config.log if it exists. 5993 5994debug=false 5995ac_cs_recheck=false 5996ac_cs_silent=false 5997 5998SHELL=\${CONFIG_SHELL-$SHELL} 5999export SHELL 6000_ASEOF 6001cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 6002## -------------------- ## 6003## M4sh Initialization. ## 6004## -------------------- ## 6005 6006# Be more Bourne compatible 6007DUALCASE=1; export DUALCASE # for MKS sh 6008if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 6009 emulate sh 6010 NULLCMD=: 6011 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 6012 # is contrary to our usage. Disable this feature. 6013 alias -g '${1+"$@"}'='"$@"' 6014 setopt NO_GLOB_SUBST 6015else 6016 case `(set -o) 2>/dev/null` in #( 6017 *posix*) : 6018 set -o posix ;; #( 6019 *) : 6020 ;; 6021esac 6022fi 6023 6024 6025as_nl=' 6026' 6027export as_nl 6028# Printing a long string crashes Solaris 7 /usr/bin/printf. 6029as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6030as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 6031as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 6032# Prefer a ksh shell builtin over an external printf program on Solaris, 6033# but without wasting forks for bash or zsh. 6034if test -z "$BASH_VERSION$ZSH_VERSION" \ 6035 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 6036 as_echo='print -r --' 6037 as_echo_n='print -rn --' 6038elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 6039 as_echo='printf %s\n' 6040 as_echo_n='printf %s' 6041else 6042 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 6043 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 6044 as_echo_n='/usr/ucb/echo -n' 6045 else 6046 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6047 as_echo_n_body='eval 6048 arg=$1; 6049 case $arg in #( 6050 *"$as_nl"*) 6051 expr "X$arg" : "X\\(.*\\)$as_nl"; 6052 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6053 esac; 6054 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6055 ' 6056 export as_echo_n_body 6057 as_echo_n='sh -c $as_echo_n_body as_echo' 6058 fi 6059 export as_echo_body 6060 as_echo='sh -c $as_echo_body as_echo' 6061fi 6062 6063# The user is always right. 6064if test "${PATH_SEPARATOR+set}" != set; then 6065 PATH_SEPARATOR=: 6066 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 6067 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 6068 PATH_SEPARATOR=';' 6069 } 6070fi 6071 6072 6073# IFS 6074# We need space, tab and new line, in precisely that order. Quoting is 6075# there to prevent editors from complaining about space-tab. 6076# (If _AS_PATH_WALK were called with IFS unset, it would disable word 6077# splitting by setting IFS to empty value.) 6078IFS=" "" $as_nl" 6079 6080# Find who we are. Look in the path if we contain no directory separator. 6081as_myself= 6082case $0 in #(( 6083 *[\\/]* ) as_myself=$0 ;; 6084 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6085for as_dir in $PATH 6086do 6087 IFS=$as_save_IFS 6088 test -z "$as_dir" && as_dir=. 6089 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6090 done 6091IFS=$as_save_IFS 6092 6093 ;; 6094esac 6095# We did not find ourselves, most probably we were run as `sh COMMAND' 6096# in which case we are not to be found in the path. 6097if test "x$as_myself" = x; then 6098 as_myself=$0 6099fi 6100if test ! -f "$as_myself"; then 6101 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 6102 exit 1 6103fi 6104 6105# Unset variables that we do not need and which cause bugs (e.g. in 6106# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 6107# suppresses any "Segmentation fault" message there. '((' could 6108# trigger a bug in pdksh 5.2.14. 6109for as_var in BASH_ENV ENV MAIL MAILPATH 6110do eval test x\${$as_var+set} = xset \ 6111 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 6112done 6113PS1='$ ' 6114PS2='> ' 6115PS4='+ ' 6116 6117# NLS nuisances. 6118LC_ALL=C 6119export LC_ALL 6120LANGUAGE=C 6121export LANGUAGE 6122 6123# CDPATH. 6124(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 6125 6126 6127# as_fn_error STATUS ERROR [LINENO LOG_FD] 6128# ---------------------------------------- 6129# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 6130# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 6131# script with STATUS, using 1 if that was 0. 6132as_fn_error () 6133{ 6134 as_status=$1; test $as_status -eq 0 && as_status=1 6135 if test "$4"; then 6136 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 6137 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 6138 fi 6139 $as_echo "$as_me: error: $2" >&2 6140 as_fn_exit $as_status 6141} # as_fn_error 6142 6143 6144# as_fn_set_status STATUS 6145# ----------------------- 6146# Set $? to STATUS, without forking. 6147as_fn_set_status () 6148{ 6149 return $1 6150} # as_fn_set_status 6151 6152# as_fn_exit STATUS 6153# ----------------- 6154# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 6155as_fn_exit () 6156{ 6157 set +e 6158 as_fn_set_status $1 6159 exit $1 6160} # as_fn_exit 6161 6162# as_fn_unset VAR 6163# --------------- 6164# Portably unset VAR. 6165as_fn_unset () 6166{ 6167 { eval $1=; unset $1;} 6168} 6169as_unset=as_fn_unset 6170# as_fn_append VAR VALUE 6171# ---------------------- 6172# Append the text in VALUE to the end of the definition contained in VAR. Take 6173# advantage of any shell optimizations that allow amortized linear growth over 6174# repeated appends, instead of the typical quadratic growth present in naive 6175# implementations. 6176if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 6177 eval 'as_fn_append () 6178 { 6179 eval $1+=\$2 6180 }' 6181else 6182 as_fn_append () 6183 { 6184 eval $1=\$$1\$2 6185 } 6186fi # as_fn_append 6187 6188# as_fn_arith ARG... 6189# ------------------ 6190# Perform arithmetic evaluation on the ARGs, and store the result in the 6191# global $as_val. Take advantage of shells that can avoid forks. The arguments 6192# must be portable across $(()) and expr. 6193if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 6194 eval 'as_fn_arith () 6195 { 6196 as_val=$(( $* )) 6197 }' 6198else 6199 as_fn_arith () 6200 { 6201 as_val=`expr "$@" || test $? -eq 1` 6202 } 6203fi # as_fn_arith 6204 6205 6206if expr a : '\(a\)' >/dev/null 2>&1 && 6207 test "X`expr 00001 : '.*\(...\)'`" = X001; then 6208 as_expr=expr 6209else 6210 as_expr=false 6211fi 6212 6213if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 6214 as_basename=basename 6215else 6216 as_basename=false 6217fi 6218 6219if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 6220 as_dirname=dirname 6221else 6222 as_dirname=false 6223fi 6224 6225as_me=`$as_basename -- "$0" || 6226$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6227 X"$0" : 'X\(//\)$' \| \ 6228 X"$0" : 'X\(/\)' \| . 2>/dev/null || 6229$as_echo X/"$0" | 6230 sed '/^.*\/\([^/][^/]*\)\/*$/{ 6231 s//\1/ 6232 q 6233 } 6234 /^X\/\(\/\/\)$/{ 6235 s//\1/ 6236 q 6237 } 6238 /^X\/\(\/\).*/{ 6239 s//\1/ 6240 q 6241 } 6242 s/.*/./; q'` 6243 6244# Avoid depending upon Character Ranges. 6245as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6246as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6247as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6248as_cr_digits='0123456789' 6249as_cr_alnum=$as_cr_Letters$as_cr_digits 6250 6251ECHO_C= ECHO_N= ECHO_T= 6252case `echo -n x` in #((((( 6253-n*) 6254 case `echo 'xy\c'` in 6255 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 6256 xy) ECHO_C='\c';; 6257 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 6258 ECHO_T=' ';; 6259 esac;; 6260*) 6261 ECHO_N='-n';; 6262esac 6263 6264rm -f conf$$ conf$$.exe conf$$.file 6265if test -d conf$$.dir; then 6266 rm -f conf$$.dir/conf$$.file 6267else 6268 rm -f conf$$.dir 6269 mkdir conf$$.dir 2>/dev/null 6270fi 6271if (echo >conf$$.file) 2>/dev/null; then 6272 if ln -s conf$$.file conf$$ 2>/dev/null; then 6273 as_ln_s='ln -s' 6274 # ... but there are two gotchas: 6275 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 6276 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 6277 # In both cases, we have to default to `cp -pR'. 6278 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 6279 as_ln_s='cp -pR' 6280 elif ln conf$$.file conf$$ 2>/dev/null; then 6281 as_ln_s=ln 6282 else 6283 as_ln_s='cp -pR' 6284 fi 6285else 6286 as_ln_s='cp -pR' 6287fi 6288rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 6289rmdir conf$$.dir 2>/dev/null 6290 6291 6292# as_fn_mkdir_p 6293# ------------- 6294# Create "$as_dir" as a directory, including parents if necessary. 6295as_fn_mkdir_p () 6296{ 6297 6298 case $as_dir in #( 6299 -*) as_dir=./$as_dir;; 6300 esac 6301 test -d "$as_dir" || eval $as_mkdir_p || { 6302 as_dirs= 6303 while :; do 6304 case $as_dir in #( 6305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 6306 *) as_qdir=$as_dir;; 6307 esac 6308 as_dirs="'$as_qdir' $as_dirs" 6309 as_dir=`$as_dirname -- "$as_dir" || 6310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6311 X"$as_dir" : 'X\(//\)[^/]' \| \ 6312 X"$as_dir" : 'X\(//\)$' \| \ 6313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6314$as_echo X"$as_dir" | 6315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6316 s//\1/ 6317 q 6318 } 6319 /^X\(\/\/\)[^/].*/{ 6320 s//\1/ 6321 q 6322 } 6323 /^X\(\/\/\)$/{ 6324 s//\1/ 6325 q 6326 } 6327 /^X\(\/\).*/{ 6328 s//\1/ 6329 q 6330 } 6331 s/.*/./; q'` 6332 test -d "$as_dir" && break 6333 done 6334 test -z "$as_dirs" || eval "mkdir $as_dirs" 6335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 6336 6337 6338} # as_fn_mkdir_p 6339if mkdir -p . 2>/dev/null; then 6340 as_mkdir_p='mkdir -p "$as_dir"' 6341else 6342 test -d ./-p && rmdir ./-p 6343 as_mkdir_p=false 6344fi 6345 6346 6347# as_fn_executable_p FILE 6348# ----------------------- 6349# Test if FILE is an executable regular file. 6350as_fn_executable_p () 6351{ 6352 test -f "$1" && test -x "$1" 6353} # as_fn_executable_p 6354as_test_x='test -x' 6355as_executable_p=as_fn_executable_p 6356 6357# Sed expression to map a string onto a valid CPP name. 6358as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6359 6360# Sed expression to map a string onto a valid variable name. 6361as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6362 6363 6364exec 6>&1 6365## ----------------------------------- ## 6366## Main body of $CONFIG_STATUS script. ## 6367## ----------------------------------- ## 6368_ASEOF 6369test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 6370 6371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6372# Save the log message, to keep $0 and so on meaningful, and to 6373# report actual input values of CONFIG_FILES etc. instead of their 6374# values after options handling. 6375ac_log=" 6376This file was extended by wcalc $as_me 2.5, which was 6377generated by GNU Autoconf 2.69. Invocation command line was 6378 6379 CONFIG_FILES = $CONFIG_FILES 6380 CONFIG_HEADERS = $CONFIG_HEADERS 6381 CONFIG_LINKS = $CONFIG_LINKS 6382 CONFIG_COMMANDS = $CONFIG_COMMANDS 6383 $ $0 $@ 6384 6385on `(hostname || uname -n) 2>/dev/null | sed 1q` 6386" 6387 6388_ACEOF 6389 6390case $ac_config_files in *" 6391"*) set x $ac_config_files; shift; ac_config_files=$*;; 6392esac 6393 6394case $ac_config_headers in *" 6395"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 6396esac 6397 6398 6399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6400# Files that config.status was made for. 6401config_files="$ac_config_files" 6402config_headers="$ac_config_headers" 6403config_commands="$ac_config_commands" 6404 6405_ACEOF 6406 6407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6408ac_cs_usage="\ 6409\`$as_me' instantiates files and other configuration actions 6410from templates according to the current configuration. Unless the files 6411and actions are specified as TAGs, all are instantiated by default. 6412 6413Usage: $0 [OPTION]... [TAG]... 6414 6415 -h, --help print this help, then exit 6416 -V, --version print version number and configuration settings, then exit 6417 --config print configuration, then exit 6418 -q, --quiet, --silent 6419 do not print progress messages 6420 -d, --debug don't remove temporary files 6421 --recheck update $as_me by reconfiguring in the same conditions 6422 --file=FILE[:TEMPLATE] 6423 instantiate the configuration file FILE 6424 --header=FILE[:TEMPLATE] 6425 instantiate the configuration header FILE 6426 6427Configuration files: 6428$config_files 6429 6430Configuration headers: 6431$config_headers 6432 6433Configuration commands: 6434$config_commands 6435 6436Report bugs to <kyle-wcalc@memoryhole.net>." 6437 6438_ACEOF 6439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6440ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 6441ac_cs_version="\\ 6442wcalc config.status 2.5 6443configured by $0, generated by GNU Autoconf 2.69, 6444 with options \\"\$ac_cs_config\\" 6445 6446Copyright (C) 2012 Free Software Foundation, Inc. 6447This config.status script is free software; the Free Software Foundation 6448gives unlimited permission to copy, distribute and modify it." 6449 6450ac_pwd='$ac_pwd' 6451srcdir='$srcdir' 6452INSTALL='$INSTALL' 6453MKDIR_P='$MKDIR_P' 6454AWK='$AWK' 6455test -n "\$AWK" || AWK=awk 6456_ACEOF 6457 6458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6459# The default lists apply if the user does not specify any file. 6460ac_need_defaults=: 6461while test $# != 0 6462do 6463 case $1 in 6464 --*=?*) 6465 ac_option=`expr "X$1" : 'X\([^=]*\)='` 6466 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 6467 ac_shift=: 6468 ;; 6469 --*=) 6470 ac_option=`expr "X$1" : 'X\([^=]*\)='` 6471 ac_optarg= 6472 ac_shift=: 6473 ;; 6474 *) 6475 ac_option=$1 6476 ac_optarg=$2 6477 ac_shift=shift 6478 ;; 6479 esac 6480 6481 case $ac_option in 6482 # Handling of the options. 6483 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6484 ac_cs_recheck=: ;; 6485 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6486 $as_echo "$ac_cs_version"; exit ;; 6487 --config | --confi | --conf | --con | --co | --c ) 6488 $as_echo "$ac_cs_config"; exit ;; 6489 --debug | --debu | --deb | --de | --d | -d ) 6490 debug=: ;; 6491 --file | --fil | --fi | --f ) 6492 $ac_shift 6493 case $ac_optarg in 6494 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6495 '') as_fn_error $? "missing file argument" ;; 6496 esac 6497 as_fn_append CONFIG_FILES " '$ac_optarg'" 6498 ac_need_defaults=false;; 6499 --header | --heade | --head | --hea ) 6500 $ac_shift 6501 case $ac_optarg in 6502 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6503 esac 6504 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 6505 ac_need_defaults=false;; 6506 --he | --h) 6507 # Conflict between --help and --header 6508 as_fn_error $? "ambiguous option: \`$1' 6509Try \`$0 --help' for more information.";; 6510 --help | --hel | -h ) 6511 $as_echo "$ac_cs_usage"; exit ;; 6512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6513 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6514 ac_cs_silent=: ;; 6515 6516 # This is an error. 6517 -*) as_fn_error $? "unrecognized option: \`$1' 6518Try \`$0 --help' for more information." ;; 6519 6520 *) as_fn_append ac_config_targets " $1" 6521 ac_need_defaults=false ;; 6522 6523 esac 6524 shift 6525done 6526 6527ac_configure_extra_args= 6528 6529if $ac_cs_silent; then 6530 exec 6>/dev/null 6531 ac_configure_extra_args="$ac_configure_extra_args --silent" 6532fi 6533 6534_ACEOF 6535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6536if \$ac_cs_recheck; then 6537 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6538 shift 6539 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 6540 CONFIG_SHELL='$SHELL' 6541 export CONFIG_SHELL 6542 exec "\$@" 6543fi 6544 6545_ACEOF 6546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6547exec 5>>config.log 6548{ 6549 echo 6550 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6551## Running $as_me. ## 6552_ASBOX 6553 $as_echo "$ac_log" 6554} >&5 6555 6556_ACEOF 6557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6558# 6559# INIT-COMMANDS 6560# 6561AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 6562 6563_ACEOF 6564 6565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6566 6567# Handling of arguments. 6568for ac_config_target in $ac_config_targets 6569do 6570 case $ac_config_target in 6571 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 6572 "src/common/includes/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/common/includes/config.h" ;; 6573 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6574 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 6575 "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;; 6576 "src/common/includes/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/includes/Makefile" ;; 6577 "src/gui/Makefile") CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;; 6578 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 6579 "English.lproj/Makefile") CONFIG_FILES="$CONFIG_FILES English.lproj/Makefile" ;; 6580 6581 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 6582 esac 6583done 6584 6585 6586# If the user did not use the arguments to specify the items to instantiate, 6587# then the envvar interface is used. Set only those that are not. 6588# We use the long form for the default assignment because of an extremely 6589# bizarre bug on SunOS 4.1.3. 6590if $ac_need_defaults; then 6591 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6592 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6593 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 6594fi 6595 6596# Have a temporary directory for convenience. Make it in the build tree 6597# simply because there is no reason against having it here, and in addition, 6598# creating and moving files from /tmp can sometimes cause problems. 6599# Hook for its removal unless debugging. 6600# Note that there is a small window in which the directory will not be cleaned: 6601# after its creation but before its name has been assigned to `$tmp'. 6602$debug || 6603{ 6604 tmp= ac_tmp= 6605 trap 'exit_status=$? 6606 : "${ac_tmp:=$tmp}" 6607 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 6608' 0 6609 trap 'as_fn_exit 1' 1 2 13 15 6610} 6611# Create a (secure) tmp directory for tmp files. 6612 6613{ 6614 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6615 test -d "$tmp" 6616} || 6617{ 6618 tmp=./conf$$-$RANDOM 6619 (umask 077 && mkdir "$tmp") 6620} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 6621ac_tmp=$tmp 6622 6623# Set up the scripts for CONFIG_FILES section. 6624# No need to generate them if there are no CONFIG_FILES. 6625# This happens for instance with `./config.status config.h'. 6626if test -n "$CONFIG_FILES"; then 6627 6628 6629ac_cr=`echo X | tr X '\015'` 6630# On cygwin, bash can eat \r inside `` if the user requested igncr. 6631# But we know of no other shell where ac_cr would be empty at this 6632# point, so we can use a bashism as a fallback. 6633if test "x$ac_cr" = x; then 6634 eval ac_cr=\$\'\\r\' 6635fi 6636ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6637if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6638 ac_cs_awk_cr='\\r' 6639else 6640 ac_cs_awk_cr=$ac_cr 6641fi 6642 6643echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 6644_ACEOF 6645 6646 6647{ 6648 echo "cat >conf$$subs.awk <<_ACEOF" && 6649 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6650 echo "_ACEOF" 6651} >conf$$subs.sh || 6652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6653ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 6654ac_delim='%!_!# ' 6655for ac_last_try in false false false false false :; do 6656 . ./conf$$subs.sh || 6657 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6658 6659 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 6660 if test $ac_delim_n = $ac_delim_num; then 6661 break 6662 elif $ac_last_try; then 6663 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6664 else 6665 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6666 fi 6667done 6668rm -f conf$$subs.sh 6669 6670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6671cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 6672_ACEOF 6673sed -n ' 6674h 6675s/^/S["/; s/!.*/"]=/ 6676p 6677g 6678s/^[^!]*!// 6679:repl 6680t repl 6681s/'"$ac_delim"'$// 6682t delim 6683:nl 6684h 6685s/\(.\{148\}\)..*/\1/ 6686t more1 6687s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6688p 6689n 6690b repl 6691:more1 6692s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6693p 6694g 6695s/.\{148\}// 6696t nl 6697:delim 6698h 6699s/\(.\{148\}\)..*/\1/ 6700t more2 6701s/["\\]/\\&/g; s/^/"/; s/$/"/ 6702p 6703b 6704:more2 6705s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6706p 6707g 6708s/.\{148\}// 6709t delim 6710' <conf$$subs.awk | sed ' 6711/^[^""]/{ 6712 N 6713 s/\n// 6714} 6715' >>$CONFIG_STATUS || ac_write_fail=1 6716rm -f conf$$subs.awk 6717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6718_ACAWK 6719cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 6720 for (key in S) S_is_set[key] = 1 6721 FS = "" 6722 6723} 6724{ 6725 line = $ 0 6726 nfields = split(line, field, "@") 6727 substed = 0 6728 len = length(field[1]) 6729 for (i = 2; i < nfields; i++) { 6730 key = field[i] 6731 keylen = length(key) 6732 if (S_is_set[key]) { 6733 value = S[key] 6734 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6735 len += length(value) + length(field[++i]) 6736 substed = 1 6737 } else 6738 len += 1 + keylen 6739 } 6740 6741 print line 6742} 6743 6744_ACAWK 6745_ACEOF 6746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6747if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6748 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6749else 6750 cat 6751fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 6752 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 6753_ACEOF 6754 6755# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 6756# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 6757# trailing colons and then remove the whole line if VPATH becomes empty 6758# (actually we leave an empty line to preserve line numbers). 6759if test "x$srcdir" = x.; then 6760 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 6761h 6762s/// 6763s/^/:/ 6764s/[ ]*$/:/ 6765s/:\$(srcdir):/:/g 6766s/:\${srcdir}:/:/g 6767s/:@srcdir@:/:/g 6768s/^:*// 6769s/:*$// 6770x 6771s/\(=[ ]*\).*/\1/ 6772G 6773s/\n// 6774s/^[^=]*=[ ]*$// 6775}' 6776fi 6777 6778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6779fi # test -n "$CONFIG_FILES" 6780 6781# Set up the scripts for CONFIG_HEADERS section. 6782# No need to generate them if there are no CONFIG_HEADERS. 6783# This happens for instance with `./config.status Makefile'. 6784if test -n "$CONFIG_HEADERS"; then 6785cat >"$ac_tmp/defines.awk" <<\_ACAWK || 6786BEGIN { 6787_ACEOF 6788 6789# Transform confdefs.h into an awk script `defines.awk', embedded as 6790# here-document in config.status, that substitutes the proper values into 6791# config.h.in to produce config.h. 6792 6793# Create a delimiter string that does not exist in confdefs.h, to ease 6794# handling of long lines. 6795ac_delim='%!_!# ' 6796for ac_last_try in false false :; do 6797 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 6798 if test -z "$ac_tt"; then 6799 break 6800 elif $ac_last_try; then 6801 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 6802 else 6803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6804 fi 6805done 6806 6807# For the awk script, D is an array of macro values keyed by name, 6808# likewise P contains macro parameters if any. Preserve backslash 6809# newline sequences. 6810 6811ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6812sed -n ' 6813s/.\{148\}/&'"$ac_delim"'/g 6814t rset 6815:rset 6816s/^[ ]*#[ ]*define[ ][ ]*/ / 6817t def 6818d 6819:def 6820s/\\$// 6821t bsnl 6822s/["\\]/\\&/g 6823s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6824D["\1"]=" \3"/p 6825s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6826d 6827:bsnl 6828s/["\\]/\\&/g 6829s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6830D["\1"]=" \3\\\\\\n"\\/p 6831t cont 6832s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6833t cont 6834d 6835:cont 6836n 6837s/.\{148\}/&'"$ac_delim"'/g 6838t clear 6839:clear 6840s/\\$// 6841t bsnlc 6842s/["\\]/\\&/g; s/^/"/; s/$/"/p 6843d 6844:bsnlc 6845s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 6846b cont 6847' <confdefs.h | sed ' 6848s/'"$ac_delim"'/"\\\ 6849"/g' >>$CONFIG_STATUS || ac_write_fail=1 6850 6851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6852 for (key in D) D_is_set[key] = 1 6853 FS = "" 6854} 6855/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 6856 line = \$ 0 6857 split(line, arg, " ") 6858 if (arg[1] == "#") { 6859 defundef = arg[2] 6860 mac1 = arg[3] 6861 } else { 6862 defundef = substr(arg[1], 2) 6863 mac1 = arg[2] 6864 } 6865 split(mac1, mac2, "(") #) 6866 macro = mac2[1] 6867 prefix = substr(line, 1, index(line, defundef) - 1) 6868 if (D_is_set[macro]) { 6869 # Preserve the white space surrounding the "#". 6870 print prefix "define", macro P[macro] D[macro] 6871 next 6872 } else { 6873 # Replace #undef with comments. This is necessary, for example, 6874 # in the case of _POSIX_SOURCE, which is predefined and required 6875 # on some systems where configure will not decide to define it. 6876 if (defundef == "undef") { 6877 print "/*", prefix defundef, macro, "*/" 6878 next 6879 } 6880 } 6881} 6882{ print } 6883_ACAWK 6884_ACEOF 6885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6886 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 6887fi # test -n "$CONFIG_HEADERS" 6888 6889 6890eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 6891shift 6892for ac_tag 6893do 6894 case $ac_tag in 6895 :[FHLC]) ac_mode=$ac_tag; continue;; 6896 esac 6897 case $ac_mode$ac_tag in 6898 :[FHL]*:*);; 6899 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 6900 :[FH]-) ac_tag=-:-;; 6901 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6902 esac 6903 ac_save_IFS=$IFS 6904 IFS=: 6905 set x $ac_tag 6906 IFS=$ac_save_IFS 6907 shift 6908 ac_file=$1 6909 shift 6910 6911 case $ac_mode in 6912 :L) ac_source=$1;; 6913 :[FH]) 6914 ac_file_inputs= 6915 for ac_f 6916 do 6917 case $ac_f in 6918 -) ac_f="$ac_tmp/stdin";; 6919 *) # Look for the file first in the build tree, then in the source tree 6920 # (if the path is not absolute). The absolute path cannot be DOS-style, 6921 # because $ac_f cannot contain `:'. 6922 test -f "$ac_f" || 6923 case $ac_f in 6924 [\\/$]*) false;; 6925 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6926 esac || 6927 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 6928 esac 6929 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6930 as_fn_append ac_file_inputs " '$ac_f'" 6931 done 6932 6933 # Let's still pretend it is `configure' which instantiates (i.e., don't 6934 # use $as_me), people would be surprised to read: 6935 # /* config.h. Generated by config.status. */ 6936 configure_input='Generated from '` 6937 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6938 `' by configure.' 6939 if test x"$ac_file" != x-; then 6940 configure_input="$ac_file. $configure_input" 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6942$as_echo "$as_me: creating $ac_file" >&6;} 6943 fi 6944 # Neutralize special characters interpreted by sed in replacement strings. 6945 case $configure_input in #( 6946 *\&* | *\|* | *\\* ) 6947 ac_sed_conf_input=`$as_echo "$configure_input" | 6948 sed 's/[\\\\&|]/\\\\&/g'`;; #( 6949 *) ac_sed_conf_input=$configure_input;; 6950 esac 6951 6952 case $ac_tag in 6953 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 6954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 6955 esac 6956 ;; 6957 esac 6958 6959 ac_dir=`$as_dirname -- "$ac_file" || 6960$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6961 X"$ac_file" : 'X\(//\)[^/]' \| \ 6962 X"$ac_file" : 'X\(//\)$' \| \ 6963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6964$as_echo X"$ac_file" | 6965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6966 s//\1/ 6967 q 6968 } 6969 /^X\(\/\/\)[^/].*/{ 6970 s//\1/ 6971 q 6972 } 6973 /^X\(\/\/\)$/{ 6974 s//\1/ 6975 q 6976 } 6977 /^X\(\/\).*/{ 6978 s//\1/ 6979 q 6980 } 6981 s/.*/./; q'` 6982 as_dir="$ac_dir"; as_fn_mkdir_p 6983 ac_builddir=. 6984 6985case "$ac_dir" in 6986.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6987*) 6988 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6989 # A ".." for each directory in $ac_dir_suffix. 6990 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6991 case $ac_top_builddir_sub in 6992 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6993 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6994 esac ;; 6995esac 6996ac_abs_top_builddir=$ac_pwd 6997ac_abs_builddir=$ac_pwd$ac_dir_suffix 6998# for backward compatibility: 6999ac_top_builddir=$ac_top_build_prefix 7000 7001case $srcdir in 7002 .) # We are building in place. 7003 ac_srcdir=. 7004 ac_top_srcdir=$ac_top_builddir_sub 7005 ac_abs_top_srcdir=$ac_pwd ;; 7006 [\\/]* | ?:[\\/]* ) # Absolute name. 7007 ac_srcdir=$srcdir$ac_dir_suffix; 7008 ac_top_srcdir=$srcdir 7009 ac_abs_top_srcdir=$srcdir ;; 7010 *) # Relative name. 7011 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 7012 ac_top_srcdir=$ac_top_build_prefix$srcdir 7013 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 7014esac 7015ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 7016 7017 7018 case $ac_mode in 7019 :F) 7020 # 7021 # CONFIG_FILE 7022 # 7023 7024 case $INSTALL in 7025 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7026 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 7027 esac 7028 ac_MKDIR_P=$MKDIR_P 7029 case $MKDIR_P in 7030 [\\/$]* | ?:[\\/]* ) ;; 7031 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 7032 esac 7033_ACEOF 7034 7035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7036# If the template does not know about datarootdir, expand it. 7037# FIXME: This hack should be removed a few years after 2.60. 7038ac_datarootdir_hack=; ac_datarootdir_seen= 7039ac_sed_dataroot=' 7040/datarootdir/ { 7041 p 7042 q 7043} 7044/@datadir@/p 7045/@docdir@/p 7046/@infodir@/p 7047/@localedir@/p 7048/@mandir@/p' 7049case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 7050*datarootdir*) ac_datarootdir_seen=yes;; 7051*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 7053$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 7054_ACEOF 7055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7056 ac_datarootdir_hack=' 7057 s&@datadir@&$datadir&g 7058 s&@docdir@&$docdir&g 7059 s&@infodir@&$infodir&g 7060 s&@localedir@&$localedir&g 7061 s&@mandir@&$mandir&g 7062 s&\\\${datarootdir}&$datarootdir&g' ;; 7063esac 7064_ACEOF 7065 7066# Neutralize VPATH when `$srcdir' = `.'. 7067# Shell code in configure.ac might set extrasub. 7068# FIXME: do we really want to maintain this feature? 7069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7070ac_sed_extra="$ac_vpsub 7071$extrasub 7072_ACEOF 7073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7074:t 7075/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7076s|@configure_input@|$ac_sed_conf_input|;t t 7077s&@top_builddir@&$ac_top_builddir_sub&;t t 7078s&@top_build_prefix@&$ac_top_build_prefix&;t t 7079s&@srcdir@&$ac_srcdir&;t t 7080s&@abs_srcdir@&$ac_abs_srcdir&;t t 7081s&@top_srcdir@&$ac_top_srcdir&;t t 7082s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 7083s&@builddir@&$ac_builddir&;t t 7084s&@abs_builddir@&$ac_abs_builddir&;t t 7085s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 7086s&@INSTALL@&$ac_INSTALL&;t t 7087s&@MKDIR_P@&$ac_MKDIR_P&;t t 7088$ac_datarootdir_hack 7089" 7090eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 7091 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7092 7093test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 7094 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 7095 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 7096 "$ac_tmp/out"`; test -z "$ac_out"; } && 7097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7098which seems to be undefined. Please make sure it is defined" >&5 7099$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7100which seems to be undefined. Please make sure it is defined" >&2;} 7101 7102 rm -f "$ac_tmp/stdin" 7103 case $ac_file in 7104 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 7105 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 7106 esac \ 7107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7108 ;; 7109 :H) 7110 # 7111 # CONFIG_HEADER 7112 # 7113 if test x"$ac_file" != x-; then 7114 { 7115 $as_echo "/* $configure_input */" \ 7116 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 7117 } >"$ac_tmp/config.h" \ 7118 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7119 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 7121$as_echo "$as_me: $ac_file is unchanged" >&6;} 7122 else 7123 rm -f "$ac_file" 7124 mv "$ac_tmp/config.h" "$ac_file" \ 7125 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7126 fi 7127 else 7128 $as_echo "/* $configure_input */" \ 7129 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 7130 || as_fn_error $? "could not create -" "$LINENO" 5 7131 fi 7132# Compute "$ac_file"'s index in $config_headers. 7133_am_arg="$ac_file" 7134_am_stamp_count=1 7135for _am_header in $config_headers :; do 7136 case $_am_header in 7137 $_am_arg | $_am_arg:* ) 7138 break ;; 7139 * ) 7140 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 7141 esac 7142done 7143echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 7144$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7145 X"$_am_arg" : 'X\(//\)[^/]' \| \ 7146 X"$_am_arg" : 'X\(//\)$' \| \ 7147 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 7148$as_echo X"$_am_arg" | 7149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7150 s//\1/ 7151 q 7152 } 7153 /^X\(\/\/\)[^/].*/{ 7154 s//\1/ 7155 q 7156 } 7157 /^X\(\/\/\)$/{ 7158 s//\1/ 7159 q 7160 } 7161 /^X\(\/\).*/{ 7162 s//\1/ 7163 q 7164 } 7165 s/.*/./; q'`/stamp-h$_am_stamp_count 7166 ;; 7167 7168 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 7169$as_echo "$as_me: executing $ac_file commands" >&6;} 7170 ;; 7171 esac 7172 7173 7174 case $ac_file$ac_mode in 7175 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 7176 # Older Autoconf quotes --file arguments for eval, but not when files 7177 # are listed without --file. Let's play safe and only enable the eval 7178 # if we detect the quoting. 7179 case $CONFIG_FILES in 7180 *\'*) eval set x "$CONFIG_FILES" ;; 7181 *) set x $CONFIG_FILES ;; 7182 esac 7183 shift 7184 for mf 7185 do 7186 # Strip MF so we end up with the name of the file. 7187 mf=`echo "$mf" | sed -e 's/:.*$//'` 7188 # Check whether this is an Automake generated Makefile or not. 7189 # We used to match only the files named 'Makefile.in', but 7190 # some people rename them; so instead we look at the file content. 7191 # Grep'ing the first line is not enough: some people post-process 7192 # each Makefile.in and add a new line on top of each file to say so. 7193 # Grep'ing the whole file is not good either: AIX grep has a line 7194 # limit of 2048, but all sed's we know have understand at least 4000. 7195 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 7196 dirpart=`$as_dirname -- "$mf" || 7197$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7198 X"$mf" : 'X\(//\)[^/]' \| \ 7199 X"$mf" : 'X\(//\)$' \| \ 7200 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 7201$as_echo X"$mf" | 7202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7203 s//\1/ 7204 q 7205 } 7206 /^X\(\/\/\)[^/].*/{ 7207 s//\1/ 7208 q 7209 } 7210 /^X\(\/\/\)$/{ 7211 s//\1/ 7212 q 7213 } 7214 /^X\(\/\).*/{ 7215 s//\1/ 7216 q 7217 } 7218 s/.*/./; q'` 7219 else 7220 continue 7221 fi 7222 # Extract the definition of DEPDIR, am__include, and am__quote 7223 # from the Makefile without running 'make'. 7224 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 7225 test -z "$DEPDIR" && continue 7226 am__include=`sed -n 's/^am__include = //p' < "$mf"` 7227 test -z "$am__include" && continue 7228 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 7229 # Find all dependency output files, they are included files with 7230 # $(DEPDIR) in their names. We invoke sed twice because it is the 7231 # simplest approach to changing $(DEPDIR) to its actual value in the 7232 # expansion. 7233 for file in `sed -n " 7234 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 7235 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 7236 # Make sure the directory exists. 7237 test -f "$dirpart/$file" && continue 7238 fdir=`$as_dirname -- "$file" || 7239$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7240 X"$file" : 'X\(//\)[^/]' \| \ 7241 X"$file" : 'X\(//\)$' \| \ 7242 X"$file" : 'X\(/\)' \| . 2>/dev/null || 7243$as_echo X"$file" | 7244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7245 s//\1/ 7246 q 7247 } 7248 /^X\(\/\/\)[^/].*/{ 7249 s//\1/ 7250 q 7251 } 7252 /^X\(\/\/\)$/{ 7253 s//\1/ 7254 q 7255 } 7256 /^X\(\/\).*/{ 7257 s//\1/ 7258 q 7259 } 7260 s/.*/./; q'` 7261 as_dir=$dirpart/$fdir; as_fn_mkdir_p 7262 # echo "creating $dirpart/$file" 7263 echo '# dummy' > "$dirpart/$file" 7264 done 7265 done 7266} 7267 ;; 7268 7269 esac 7270done # for ac_tag 7271 7272 7273as_fn_exit 0 7274_ACEOF 7275ac_clean_files=$ac_clean_files_save 7276 7277test $ac_write_fail = 0 || 7278 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 7279 7280 7281# configure is writing to config.log, and then calls config.status. 7282# config.status does its own redirection, appending to config.log. 7283# Unfortunately, on DOS this fails, as config.log is still kept open 7284# by configure, so config.status won't be able to write to it; its 7285# output is simply discarded. So we exec the FD to /dev/null, 7286# effectively closing config.log, so it can be properly (re)opened and 7287# appended to by config.status. When coming back to configure, we 7288# need to make the FD available again. 7289if test "$no_create" != yes; then 7290 ac_cs_success=: 7291 ac_config_status_args= 7292 test "$silent" = yes && 7293 ac_config_status_args="$ac_config_status_args --quiet" 7294 exec 5>/dev/null 7295 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7296 exec 5>>config.log 7297 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7298 # would make configure fail if this is the last instruction. 7299 $ac_cs_success || as_fn_exit 1 7300fi 7301if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 7303$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 7304fi 7305 7306 7307