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