1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="move-if-change" 586enable_option_checking=no 587ac_subst_vars='LTLIBOBJS 588LIBOBJS 589compare_exclusions 590stage2_werror_flag 591stage1_checking 592stage1_cflags 593MAINT 594MAINTAINER_MODE_FALSE 595MAINTAINER_MODE_TRUE 596COMPILER_NM_FOR_TARGET 597COMPILER_LD_FOR_TARGET 598COMPILER_AS_FOR_TARGET 599FLAGS_FOR_TARGET 600RAW_CXX_FOR_TARGET 601WINDMC_FOR_TARGET 602WINDRES_FOR_TARGET 603STRIP_FOR_TARGET 604READELF_FOR_TARGET 605RANLIB_FOR_TARGET 606OBJDUMP_FOR_TARGET 607OBJCOPY_FOR_TARGET 608NM_FOR_TARGET 609LIPO_FOR_TARGET 610LD_FOR_TARGET 611DLLTOOL_FOR_TARGET 612AS_FOR_TARGET 613AR_FOR_TARGET 614GOC_FOR_TARGET 615GFORTRAN_FOR_TARGET 616GCC_FOR_TARGET 617CXX_FOR_TARGET 618CC_FOR_TARGET 619READELF 620OBJDUMP 621OBJCOPY 622WINDMC 623WINDRES 624STRIP 625RANLIB 626NM 627LIPO 628LD 629DLLTOOL 630AS 631AR 632RUNTEST 633EXPECT 634MAKEINFO 635FLEX 636LEX 637M4 638BISON 639YACC 640WINDRES_FOR_BUILD 641WINDMC_FOR_BUILD 642RANLIB_FOR_BUILD 643NM_FOR_BUILD 644LD_FOR_BUILD 645LDFLAGS_FOR_BUILD 646GOC_FOR_BUILD 647GFORTRAN_FOR_BUILD 648DLLTOOL_FOR_BUILD 649CXX_FOR_BUILD 650CXXFLAGS_FOR_BUILD 651CFLAGS_FOR_BUILD 652CC_FOR_BUILD 653AS_FOR_BUILD 654AR_FOR_BUILD 655target_configdirs 656configdirs 657build_configdirs 658INSTALL_GDB_TK 659GDB_TK 660CONFIGURE_GDB_TK 661build_tooldir 662tooldir 663GCC_SHLIB_SUBDIR 664RPATH_ENVVAR 665target_configargs 666host_configargs 667build_configargs 668BUILD_CONFIG 669LDFLAGS_FOR_TARGET 670CXXFLAGS_FOR_TARGET 671CFLAGS_FOR_TARGET 672DEBUG_PREFIX_CFLAGS_FOR_TARGET 673SYSROOT_CFLAGS_FOR_TARGET 674get_gcc_base_ver 675extra_host_zlib_configure_flags 676extra_host_libiberty_configure_flags 677stage1_languages 678host_shared 679extra_linker_plugin_flags 680extra_linker_plugin_configure_flags 681islinc 682isllibs 683poststage1_ldflags 684poststage1_libs 685stage1_ldflags 686stage1_libs 687extra_isl_gmp_configure_flags 688extra_mpc_mpfr_configure_flags 689extra_mpc_gmp_configure_flags 690extra_mpfr_configure_flags 691gmpinc 692gmplibs 693LIBDEBUGINFOD 694do_compare 695GNATMAKE 696GNATBIND 697ac_ct_CXX 698CXXFLAGS 699CXX 700OBJEXT 701EXEEXT 702ac_ct_CC 703CPPFLAGS 704LDFLAGS 705CFLAGS 706CC 707extra_liboffloadmic_configure_flags 708target_subdir 709host_subdir 710build_subdir 711build_libsubdir 712AWK 713SED 714LN_S 715LN 716INSTALL_DATA 717INSTALL_SCRIPT 718INSTALL_PROGRAM 719target_os 720target_vendor 721target_cpu 722target 723host_os 724host_vendor 725host_cpu 726host 727target_noncanonical 728host_noncanonical 729build_noncanonical 730build_os 731build_vendor 732build_cpu 733build 734TOPLEVEL_CONFIGURE_ARGUMENTS 735target_alias 736host_alias 737build_alias 738LIBS 739ECHO_T 740ECHO_N 741ECHO_C 742DEFS 743mandir 744localedir 745libdir 746psdir 747pdfdir 748dvidir 749htmldir 750infodir 751docdir 752oldincludedir 753includedir 754localstatedir 755sharedstatedir 756sysconfdir 757datadir 758datarootdir 759libexecdir 760sbindir 761bindir 762program_transform_name 763prefix 764exec_prefix 765PACKAGE_URL 766PACKAGE_BUGREPORT 767PACKAGE_STRING 768PACKAGE_VERSION 769PACKAGE_TARNAME 770PACKAGE_NAME 771PATH_SEPARATOR 772SHELL' 773ac_subst_files='serialization_dependencies 774host_makefile_frag 775target_makefile_frag 776alphaieee_frag 777ospace_frag' 778ac_user_opts=' 779enable_option_checking 780with_build_libsubdir 781with_system_zlib 782enable_as_accelerator_for 783enable_offload_targets 784enable_gold 785enable_ld 786enable_compressed_debug_sections 787enable_libquadmath 788enable_libquadmath_support 789enable_libada 790enable_libssp 791enable_libstdcxx 792enable_liboffloadmic 793enable_bootstrap 794with_debuginfod 795with_mpc 796with_mpc_include 797with_mpc_lib 798with_mpfr_dir 799with_mpfr 800with_mpfr_include 801with_mpfr_lib 802with_gmp_dir 803with_gmp 804with_gmp_include 805with_gmp_lib 806with_stage1_libs 807with_static_standard_libraries 808with_stage1_ldflags 809with_boot_libs 810with_boot_ldflags 811with_isl 812with_isl_include 813with_isl_lib 814enable_isl_version_check 815enable_lto 816enable_linker_plugin_configure_flags 817enable_linker_plugin_flags 818enable_host_shared 819enable_stage1_languages 820enable_objc_gc 821with_target_bdw_gc 822with_target_bdw_gc_include 823with_target_bdw_gc_lib 824with_gcc_major_version_only 825with_build_sysroot 826with_debug_prefix_map 827with_build_config 828enable_vtable_verify 829enable_serial_configure 830with_build_time_tools 831enable_maintainer_mode 832enable_stage1_checking 833enable_werror 834' 835 ac_precious_vars='build_alias 836host_alias 837target_alias 838CC 839CFLAGS 840LDFLAGS 841LIBS 842CPPFLAGS 843CXX 844CXXFLAGS 845CCC 846build_configargs 847host_configargs 848target_configargs 849AR 850AS 851DLLTOOL 852LD 853LIPO 854NM 855RANLIB 856STRIP 857WINDRES 858WINDMC 859OBJCOPY 860OBJDUMP 861READELF 862CC_FOR_TARGET 863CXX_FOR_TARGET 864GCC_FOR_TARGET 865GFORTRAN_FOR_TARGET 866GOC_FOR_TARGET 867AR_FOR_TARGET 868AS_FOR_TARGET 869DLLTOOL_FOR_TARGET 870LD_FOR_TARGET 871LIPO_FOR_TARGET 872NM_FOR_TARGET 873OBJCOPY_FOR_TARGET 874OBJDUMP_FOR_TARGET 875RANLIB_FOR_TARGET 876READELF_FOR_TARGET 877STRIP_FOR_TARGET 878WINDRES_FOR_TARGET 879WINDMC_FOR_TARGET' 880 881 882# Initialize some variables set by options. 883ac_init_help= 884ac_init_version=false 885ac_unrecognized_opts= 886ac_unrecognized_sep= 887# The variables have the same names as the options, with 888# dashes changed to underlines. 889cache_file=/dev/null 890exec_prefix=NONE 891no_create= 892no_recursion= 893prefix=NONE 894program_prefix=NONE 895program_suffix=NONE 896program_transform_name=s,x,x, 897silent= 898site= 899srcdir= 900verbose= 901x_includes=NONE 902x_libraries=NONE 903 904# Installation directory options. 905# These are left unexpanded so users can "make install exec_prefix=/foo" 906# and all the variables that are supposed to be based on exec_prefix 907# by default will actually change. 908# Use braces instead of parens because sh, perl, etc. also accept them. 909# (The list follows the same order as the GNU Coding Standards.) 910bindir='${exec_prefix}/bin' 911sbindir='${exec_prefix}/sbin' 912libexecdir='${exec_prefix}/libexec' 913datarootdir='${prefix}/share' 914datadir='${datarootdir}' 915sysconfdir='${prefix}/etc' 916sharedstatedir='${prefix}/com' 917localstatedir='${prefix}/var' 918includedir='${prefix}/include' 919oldincludedir='/usr/include' 920docdir='${datarootdir}/doc/${PACKAGE}' 921infodir='${datarootdir}/info' 922htmldir='${docdir}' 923dvidir='${docdir}' 924pdfdir='${docdir}' 925psdir='${docdir}' 926libdir='${exec_prefix}/lib' 927localedir='${datarootdir}/locale' 928mandir='${datarootdir}/man' 929 930ac_prev= 931ac_dashdash= 932for ac_option 933do 934 # If the previous option needs an argument, assign it. 935 if test -n "$ac_prev"; then 936 eval $ac_prev=\$ac_option 937 ac_prev= 938 continue 939 fi 940 941 case $ac_option in 942 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 943 *=) ac_optarg= ;; 944 *) ac_optarg=yes ;; 945 esac 946 947 # Accept the important Cygnus configure options, so we can diagnose typos. 948 949 case $ac_dashdash$ac_option in 950 --) 951 ac_dashdash=yes ;; 952 953 -bindir | --bindir | --bindi | --bind | --bin | --bi) 954 ac_prev=bindir ;; 955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 956 bindir=$ac_optarg ;; 957 958 -build | --build | --buil | --bui | --bu) 959 ac_prev=build_alias ;; 960 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 961 build_alias=$ac_optarg ;; 962 963 -cache-file | --cache-file | --cache-fil | --cache-fi \ 964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 965 ac_prev=cache_file ;; 966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 968 cache_file=$ac_optarg ;; 969 970 --config-cache | -C) 971 cache_file=config.cache ;; 972 973 -datadir | --datadir | --datadi | --datad) 974 ac_prev=datadir ;; 975 -datadir=* | --datadir=* | --datadi=* | --datad=*) 976 datadir=$ac_optarg ;; 977 978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 979 | --dataroo | --dataro | --datar) 980 ac_prev=datarootdir ;; 981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 983 datarootdir=$ac_optarg ;; 984 985 -disable-* | --disable-*) 986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 987 # Reject names that are not valid shell variable names. 988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 989 as_fn_error $? "invalid feature name: $ac_useropt" 990 ac_useropt_orig=$ac_useropt 991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 992 case $ac_user_opts in 993 *" 994"enable_$ac_useropt" 995"*) ;; 996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 997 ac_unrecognized_sep=', ';; 998 esac 999 eval enable_$ac_useropt=no ;; 1000 1001 -docdir | --docdir | --docdi | --doc | --do) 1002 ac_prev=docdir ;; 1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1004 docdir=$ac_optarg ;; 1005 1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1007 ac_prev=dvidir ;; 1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1009 dvidir=$ac_optarg ;; 1010 1011 -enable-* | --enable-*) 1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1015 as_fn_error $? "invalid feature name: $ac_useropt" 1016 ac_useropt_orig=$ac_useropt 1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1018 case $ac_user_opts in 1019 *" 1020"enable_$ac_useropt" 1021"*) ;; 1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1023 ac_unrecognized_sep=', ';; 1024 esac 1025 eval enable_$ac_useropt=\$ac_optarg ;; 1026 1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1029 | --exec | --exe | --ex) 1030 ac_prev=exec_prefix ;; 1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1033 | --exec=* | --exe=* | --ex=*) 1034 exec_prefix=$ac_optarg ;; 1035 1036 -gas | --gas | --ga | --g) 1037 # Obsolete; use --with-gas. 1038 with_gas=yes ;; 1039 1040 -help | --help | --hel | --he | -h) 1041 ac_init_help=long ;; 1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1043 ac_init_help=recursive ;; 1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1045 ac_init_help=short ;; 1046 1047 -host | --host | --hos | --ho) 1048 ac_prev=host_alias ;; 1049 -host=* | --host=* | --hos=* | --ho=*) 1050 host_alias=$ac_optarg ;; 1051 1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1053 ac_prev=htmldir ;; 1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1055 | --ht=*) 1056 htmldir=$ac_optarg ;; 1057 1058 -includedir | --includedir | --includedi | --included | --include \ 1059 | --includ | --inclu | --incl | --inc) 1060 ac_prev=includedir ;; 1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1062 | --includ=* | --inclu=* | --incl=* | --inc=*) 1063 includedir=$ac_optarg ;; 1064 1065 -infodir | --infodir | --infodi | --infod | --info | --inf) 1066 ac_prev=infodir ;; 1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1068 infodir=$ac_optarg ;; 1069 1070 -libdir | --libdir | --libdi | --libd) 1071 ac_prev=libdir ;; 1072 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1073 libdir=$ac_optarg ;; 1074 1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1076 | --libexe | --libex | --libe) 1077 ac_prev=libexecdir ;; 1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1079 | --libexe=* | --libex=* | --libe=*) 1080 libexecdir=$ac_optarg ;; 1081 1082 -localedir | --localedir | --localedi | --localed | --locale) 1083 ac_prev=localedir ;; 1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1085 localedir=$ac_optarg ;; 1086 1087 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1088 | --localstate | --localstat | --localsta | --localst | --locals) 1089 ac_prev=localstatedir ;; 1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1092 localstatedir=$ac_optarg ;; 1093 1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1095 ac_prev=mandir ;; 1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1097 mandir=$ac_optarg ;; 1098 1099 -nfp | --nfp | --nf) 1100 # Obsolete; use --without-fp. 1101 with_fp=no ;; 1102 1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1104 | --no-cr | --no-c | -n) 1105 no_create=yes ;; 1106 1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1109 no_recursion=yes ;; 1110 1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1113 | --oldin | --oldi | --old | --ol | --o) 1114 ac_prev=oldincludedir ;; 1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1118 oldincludedir=$ac_optarg ;; 1119 1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1121 ac_prev=prefix ;; 1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1123 prefix=$ac_optarg ;; 1124 1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1126 | --program-pre | --program-pr | --program-p) 1127 ac_prev=program_prefix ;; 1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1130 program_prefix=$ac_optarg ;; 1131 1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1133 | --program-suf | --program-su | --program-s) 1134 ac_prev=program_suffix ;; 1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1137 program_suffix=$ac_optarg ;; 1138 1139 -program-transform-name | --program-transform-name \ 1140 | --program-transform-nam | --program-transform-na \ 1141 | --program-transform-n | --program-transform- \ 1142 | --program-transform | --program-transfor \ 1143 | --program-transfo | --program-transf \ 1144 | --program-trans | --program-tran \ 1145 | --progr-tra | --program-tr | --program-t) 1146 ac_prev=program_transform_name ;; 1147 -program-transform-name=* | --program-transform-name=* \ 1148 | --program-transform-nam=* | --program-transform-na=* \ 1149 | --program-transform-n=* | --program-transform-=* \ 1150 | --program-transform=* | --program-transfor=* \ 1151 | --program-transfo=* | --program-transf=* \ 1152 | --program-trans=* | --program-tran=* \ 1153 | --progr-tra=* | --program-tr=* | --program-t=*) 1154 program_transform_name=$ac_optarg ;; 1155 1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1157 ac_prev=pdfdir ;; 1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1159 pdfdir=$ac_optarg ;; 1160 1161 -psdir | --psdir | --psdi | --psd | --ps) 1162 ac_prev=psdir ;; 1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1164 psdir=$ac_optarg ;; 1165 1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1167 | -silent | --silent | --silen | --sile | --sil) 1168 silent=yes ;; 1169 1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1171 ac_prev=sbindir ;; 1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1173 | --sbi=* | --sb=*) 1174 sbindir=$ac_optarg ;; 1175 1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1178 | --sharedst | --shareds | --shared | --share | --shar \ 1179 | --sha | --sh) 1180 ac_prev=sharedstatedir ;; 1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1184 | --sha=* | --sh=*) 1185 sharedstatedir=$ac_optarg ;; 1186 1187 -site | --site | --sit) 1188 ac_prev=site ;; 1189 -site=* | --site=* | --sit=*) 1190 site=$ac_optarg ;; 1191 1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1193 ac_prev=srcdir ;; 1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1195 srcdir=$ac_optarg ;; 1196 1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1198 | --syscon | --sysco | --sysc | --sys | --sy) 1199 ac_prev=sysconfdir ;; 1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1202 sysconfdir=$ac_optarg ;; 1203 1204 -target | --target | --targe | --targ | --tar | --ta | --t) 1205 ac_prev=target_alias ;; 1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1207 target_alias=$ac_optarg ;; 1208 1209 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1210 verbose=yes ;; 1211 1212 -version | --version | --versio | --versi | --vers | -V) 1213 ac_init_version=: ;; 1214 1215 -with-* | --with-*) 1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1217 # Reject names that are not valid shell variable names. 1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1219 as_fn_error $? "invalid package name: $ac_useropt" 1220 ac_useropt_orig=$ac_useropt 1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1222 case $ac_user_opts in 1223 *" 1224"with_$ac_useropt" 1225"*) ;; 1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1227 ac_unrecognized_sep=', ';; 1228 esac 1229 eval with_$ac_useropt=\$ac_optarg ;; 1230 1231 -without-* | --without-*) 1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1233 # Reject names that are not valid shell variable names. 1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1235 as_fn_error $? "invalid package name: $ac_useropt" 1236 ac_useropt_orig=$ac_useropt 1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1238 case $ac_user_opts in 1239 *" 1240"with_$ac_useropt" 1241"*) ;; 1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1243 ac_unrecognized_sep=', ';; 1244 esac 1245 eval with_$ac_useropt=no ;; 1246 1247 --x) 1248 # Obsolete; use --with-x. 1249 with_x=yes ;; 1250 1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1252 | --x-incl | --x-inc | --x-in | --x-i) 1253 ac_prev=x_includes ;; 1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1256 x_includes=$ac_optarg ;; 1257 1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1260 ac_prev=x_libraries ;; 1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1263 x_libraries=$ac_optarg ;; 1264 1265 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1266Try \`$0 --help' for more information" 1267 ;; 1268 1269 *=*) 1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1271 # Reject names that are not valid shell variable names. 1272 case $ac_envvar in #( 1273 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1274 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1275 esac 1276 eval $ac_envvar=\$ac_optarg 1277 export $ac_envvar ;; 1278 1279 *) 1280 # FIXME: should be removed in autoconf 3.0. 1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1284 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1285 ;; 1286 1287 esac 1288done 1289 1290if test -n "$ac_prev"; then 1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1292 as_fn_error $? "missing argument to $ac_option" 1293fi 1294 1295if test -n "$ac_unrecognized_opts"; then 1296 case $enable_option_checking in 1297 no) ;; 1298 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1300 esac 1301fi 1302 1303# Check all directory arguments for consistency. 1304for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1305 datadir sysconfdir sharedstatedir localstatedir includedir \ 1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1307 libdir localedir mandir 1308do 1309 eval ac_val=\$$ac_var 1310 # Remove trailing slashes. 1311 case $ac_val in 1312 */ ) 1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1314 eval $ac_var=\$ac_val;; 1315 esac 1316 # Be sure to have absolute directory names. 1317 case $ac_val in 1318 [\\/$]* | ?:[\\/]* ) continue;; 1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1320 esac 1321 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1322done 1323 1324# There might be people who depend on the old broken behavior: `$host' 1325# used to hold the argument of --host etc. 1326# FIXME: To remove some day. 1327build=$build_alias 1328host=$host_alias 1329target=$target_alias 1330 1331# FIXME: To remove some day. 1332if test "x$host_alias" != x; then 1333 if test "x$build_alias" = x; then 1334 cross_compiling=maybe 1335 elif test "x$build_alias" != "x$host_alias"; then 1336 cross_compiling=yes 1337 fi 1338fi 1339 1340ac_tool_prefix= 1341test -n "$host_alias" && ac_tool_prefix=$host_alias- 1342 1343test "$silent" = yes && exec 6>/dev/null 1344 1345 1346ac_pwd=`pwd` && test -n "$ac_pwd" && 1347ac_ls_di=`ls -di .` && 1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1349 as_fn_error $? "working directory cannot be determined" 1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1351 as_fn_error $? "pwd does not report name of working directory" 1352 1353 1354# Find the source files, if location was not specified. 1355if test -z "$srcdir"; then 1356 ac_srcdir_defaulted=yes 1357 # Try the directory containing this script, then the parent directory. 1358 ac_confdir=`$as_dirname -- "$as_myself" || 1359$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1360 X"$as_myself" : 'X\(//\)[^/]' \| \ 1361 X"$as_myself" : 'X\(//\)$' \| \ 1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1363$as_echo X"$as_myself" | 1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1365 s//\1/ 1366 q 1367 } 1368 /^X\(\/\/\)[^/].*/{ 1369 s//\1/ 1370 q 1371 } 1372 /^X\(\/\/\)$/{ 1373 s//\1/ 1374 q 1375 } 1376 /^X\(\/\).*/{ 1377 s//\1/ 1378 q 1379 } 1380 s/.*/./; q'` 1381 srcdir=$ac_confdir 1382 if test ! -r "$srcdir/$ac_unique_file"; then 1383 srcdir=.. 1384 fi 1385else 1386 ac_srcdir_defaulted=no 1387fi 1388if test ! -r "$srcdir/$ac_unique_file"; then 1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1391fi 1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1393ac_abs_confdir=`( 1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1395 pwd)` 1396# When building in place, set srcdir=. 1397if test "$ac_abs_confdir" = "$ac_pwd"; then 1398 srcdir=. 1399fi 1400# Remove unnecessary trailing slashes from srcdir. 1401# Double slashes in file names in object file debugging info 1402# mess up M-x gdb in Emacs. 1403case $srcdir in 1404*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1405esac 1406case $srcdir in 1407 *" "*) 1408 as_fn_error $? "path to source, $srcdir, contains spaces" 1409 ;; 1410esac 1411ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` 1412 1413for ac_var in $ac_precious_vars; do 1414 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1415 eval ac_env_${ac_var}_value=\$${ac_var} 1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1417 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1418done 1419 1420# 1421# Report the --help message. 1422# 1423if test "$ac_init_help" = "long"; then 1424 # Omit some internal or obsolete options to make the list less imposing. 1425 # This message is too long to be a string in the A/UX 3.1 sh. 1426 cat <<_ACEOF 1427\`configure' configures this package to adapt to many kinds of systems. 1428 1429Usage: $0 [OPTION]... [VAR=VALUE]... 1430 1431To assign environment variables (e.g., CC, CFLAGS...), specify them as 1432VAR=VALUE. See below for descriptions of some of the useful variables. 1433 1434Defaults for the options are specified in brackets. 1435 1436Configuration: 1437 -h, --help display this help and exit 1438 --help=short display options specific to this package 1439 --help=recursive display the short help of all the included packages 1440 -V, --version display version information and exit 1441 -q, --quiet, --silent do not print \`checking ...' messages 1442 --cache-file=FILE cache test results in FILE [disabled] 1443 -C, --config-cache alias for \`--cache-file=config.cache' 1444 -n, --no-create do not create output files 1445 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1446 1447Installation directories: 1448 --prefix=PREFIX install architecture-independent files in PREFIX 1449 [$ac_default_prefix] 1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1451 [PREFIX] 1452 1453By default, \`make install' will install all the files in 1454\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1455an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1456for instance \`--prefix=\$HOME'. 1457 1458For better control, use the options below. 1459 1460Fine tuning of the installation directories: 1461 --bindir=DIR user executables [EPREFIX/bin] 1462 --sbindir=DIR system admin executables [EPREFIX/sbin] 1463 --libexecdir=DIR program executables [EPREFIX/libexec] 1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1467 --libdir=DIR object code libraries [EPREFIX/lib] 1468 --includedir=DIR C header files [PREFIX/include] 1469 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1472 --infodir=DIR info documentation [DATAROOTDIR/info] 1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1474 --mandir=DIR man documentation [DATAROOTDIR/man] 1475 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1476 --htmldir=DIR html documentation [DOCDIR] 1477 --dvidir=DIR dvi documentation [DOCDIR] 1478 --pdfdir=DIR pdf documentation [DOCDIR] 1479 --psdir=DIR ps documentation [DOCDIR] 1480_ACEOF 1481 1482 cat <<\_ACEOF 1483 1484Program names: 1485 --program-prefix=PREFIX prepend PREFIX to installed program names 1486 --program-suffix=SUFFIX append SUFFIX to installed program names 1487 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1488 1489System types: 1490 --build=BUILD configure for building on BUILD [guessed] 1491 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1492 --target=TARGET configure for building compilers for TARGET [HOST] 1493_ACEOF 1494fi 1495 1496if test -n "$ac_init_help"; then 1497 1498 cat <<\_ACEOF 1499 1500Optional Features: 1501 --disable-option-checking ignore unrecognized --enable/--with options 1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1504 --enable-as-accelerator-for=ARG 1505 build as offload target compiler. Specify offload 1506 host triple by ARG 1507 --enable-offload-targets=LIST 1508 enable offloading to devices from comma-separated 1509 LIST of TARGET[=DIR]. Use optional path to find 1510 offload target compiler during the build 1511 --enable-gold[=ARG] build gold [ARG={default,yes,no}] 1512 --enable-ld[=ARG] build ld [ARG={default,yes,no}] 1513 --enable-compressed-debug-sections={all,gas,gold,ld,none} 1514 Enable compressed debug sections for gas, gold or ld 1515 by default 1516 --disable-libquadmath do not build libquadmath directory 1517 --disable-libquadmath-support 1518 disable libquadmath support for Fortran 1519 --enable-libada build libada directory 1520 --enable-libssp build libssp directory 1521 --disable-libstdcxx do not build libstdc++-v3 directory 1522 --enable-liboffloadmic=ARG 1523 build liboffloadmic [ARG={no,host,target}] 1524 --enable-bootstrap enable bootstrapping [yes if native build] 1525 --disable-isl-version-check 1526 disable check for isl version 1527 --enable-lto enable link time optimization support 1528 --enable-linker-plugin-configure-flags=FLAGS 1529 additional flags for configuring linker plugins 1530 [none] 1531 --enable-linker-plugin-flags=FLAGS 1532 additional flags for configuring and building linker 1533 plugins [none] 1534 --enable-host-shared build host code as shared libraries 1535 --enable-stage1-languages[=all] 1536 choose additional languages to build during stage1. 1537 Mostly useful for compiler development 1538 --enable-objc-gc enable use of Boehm's garbage collector with the GNU 1539 Objective-C runtime 1540 --enable-vtable-verify Enable vtable verification feature 1541 --enable-serial-[{host,target,build}-]configure 1542 force sequential configuration of sub-packages for 1543 the host, target or build machine, or all 1544 sub-packages 1545 --enable-maintainer-mode 1546 enable make rules and dependencies not useful (and 1547 sometimes confusing) to the casual installer 1548 --enable-stage1-checking[=all] 1549 choose additional checking for stage1 of the 1550 compiler 1551 --enable-werror enable -Werror in bootstrap stage2 and later 1552 1553Optional Packages: 1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1556 --with-build-libsubdir=DIR Directory where to find libraries for build system 1557 --with-system-zlib use installed libz 1558 --with-debuginfod Enable debuginfo lookups with debuginfod 1559 (auto/yes/no) 1560 --with-mpc=PATH specify prefix directory for installed MPC package. 1561 Equivalent to --with-mpc-include=PATH/include plus 1562 --with-mpc-lib=PATH/lib 1563 --with-mpc-include=PATH specify directory for installed MPC include files 1564 --with-mpc-lib=PATH specify directory for the installed MPC library 1565 --with-mpfr-dir=PATH this option has been REMOVED 1566 --with-mpfr=PATH specify prefix directory for installed MPFR package. 1567 Equivalent to --with-mpfr-include=PATH/include plus 1568 --with-mpfr-lib=PATH/lib 1569 --with-mpfr-include=PATH 1570 specify directory for installed MPFR include files 1571 --with-mpfr-lib=PATH specify directory for the installed MPFR library 1572 --with-gmp-dir=PATH this option has been REMOVED 1573 --with-gmp=PATH specify prefix directory for the installed GMP 1574 package. Equivalent to 1575 --with-gmp-include=PATH/include plus 1576 --with-gmp-lib=PATH/lib 1577 --with-gmp-include=PATH specify directory for installed GMP include files 1578 --with-gmp-lib=PATH specify directory for the installed GMP library 1579 --with-stage1-libs=LIBS libraries for stage1 1580 --with-static-standard-libraries 1581 use -static-libstdc++ and -static-libgcc 1582 (default=auto) 1583 --with-stage1-ldflags=FLAGS 1584 linker flags for stage1 1585 --with-boot-libs=LIBS libraries for stage2 and later 1586 --with-boot-ldflags=FLAGS 1587 linker flags for stage2 and later 1588 --with-isl=PATH Specify prefix directory for the installed isl 1589 package. Equivalent to 1590 --with-isl-include=PATH/include plus 1591 --with-isl-lib=PATH/lib 1592 --with-isl-include=PATH Specify directory for installed isl include files 1593 --with-isl-lib=PATH Specify the directory for the installed isl library 1594 --with-target-bdw-gc=PATHLIST 1595 specify prefix directory for installed bdw-gc 1596 package. Equivalent to 1597 --with-target-bdw-gc-include=PATH/include plus 1598 --with-target-bdw-gc-lib=PATH/lib 1599 --with-target-bdw-gc-include=PATHLIST 1600 specify directories for installed bdw-gc include 1601 files 1602 --with-target-bdw-gc-lib=PATHLIST 1603 specify directories for installed bdw-gc library 1604 --with-gcc-major-version-only 1605 use only GCC major number in filesystem paths 1606 --with-build-sysroot=SYSROOT 1607 use sysroot as the system root during the build 1608 --with-debug-prefix-map='A=B C=D ...' 1609 map A to B, C to D ... in debug information 1610 --with-build-config='NAME NAME2...' 1611 use config/NAME.mk build configuration 1612 --with-build-time-tools=PATH 1613 use given path to find target tools during the build 1614 1615Some influential environment variables: 1616 CC C compiler command 1617 CFLAGS C compiler flags 1618 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1619 nonstandard directory <lib dir> 1620 LIBS libraries to pass to the linker, e.g. -l<library> 1621 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1622 you have headers in a nonstandard directory <include dir> 1623 CXX C++ compiler command 1624 CXXFLAGS C++ compiler flags 1625 build_configargs 1626 additional configure arguments for build directories 1627 host_configargs 1628 additional configure arguments for host directories 1629 target_configargs 1630 additional configure arguments for target directories 1631 AR AR for the host 1632 AS AS for the host 1633 DLLTOOL DLLTOOL for the host 1634 LD LD for the host 1635 LIPO LIPO for the host 1636 NM NM for the host 1637 RANLIB RANLIB for the host 1638 STRIP STRIP for the host 1639 WINDRES WINDRES for the host 1640 WINDMC WINDMC for the host 1641 OBJCOPY OBJCOPY for the host 1642 OBJDUMP OBJDUMP for the host 1643 READELF READELF for the host 1644 CC_FOR_TARGET 1645 CC for the target 1646 CXX_FOR_TARGET 1647 CXX for the target 1648 GCC_FOR_TARGET 1649 GCC for the target 1650 GFORTRAN_FOR_TARGET 1651 GFORTRAN for the target 1652 GOC_FOR_TARGET 1653 GOC for the target 1654 AR_FOR_TARGET 1655 AR for the target 1656 AS_FOR_TARGET 1657 AS for the target 1658 DLLTOOL_FOR_TARGET 1659 DLLTOOL for the target 1660 LD_FOR_TARGET 1661 LD for the target 1662 LIPO_FOR_TARGET 1663 LIPO for the target 1664 NM_FOR_TARGET 1665 NM for the target 1666 OBJCOPY_FOR_TARGET 1667 OBJCOPY for the target 1668 OBJDUMP_FOR_TARGET 1669 OBJDUMP for the target 1670 RANLIB_FOR_TARGET 1671 RANLIB for the target 1672 READELF_FOR_TARGET 1673 READELF for the target 1674 STRIP_FOR_TARGET 1675 STRIP for the target 1676 WINDRES_FOR_TARGET 1677 WINDRES for the target 1678 WINDMC_FOR_TARGET 1679 WINDMC for the target 1680 1681Use these variables to override the choices made by `configure' or to help 1682it to find libraries and programs with nonstandard names/locations. 1683 1684Report bugs to the package provider. 1685_ACEOF 1686ac_status=$? 1687fi 1688 1689if test "$ac_init_help" = "recursive"; then 1690 # If there are subdirs, report their specific --help. 1691 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1692 test -d "$ac_dir" || 1693 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1694 continue 1695 ac_builddir=. 1696 1697case "$ac_dir" in 1698.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1699*) 1700 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1701 # A ".." for each directory in $ac_dir_suffix. 1702 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1703 case $ac_top_builddir_sub in 1704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1706 esac ;; 1707esac 1708ac_abs_top_builddir=$ac_pwd 1709ac_abs_builddir=$ac_pwd$ac_dir_suffix 1710# for backward compatibility: 1711ac_top_builddir=$ac_top_build_prefix 1712 1713case $srcdir in 1714 .) # We are building in place. 1715 ac_srcdir=. 1716 ac_top_srcdir=$ac_top_builddir_sub 1717 ac_abs_top_srcdir=$ac_pwd ;; 1718 [\\/]* | ?:[\\/]* ) # Absolute name. 1719 ac_srcdir=$srcdir$ac_dir_suffix; 1720 ac_top_srcdir=$srcdir 1721 ac_abs_top_srcdir=$srcdir ;; 1722 *) # Relative name. 1723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1724 ac_top_srcdir=$ac_top_build_prefix$srcdir 1725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1726esac 1727ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1728 1729 cd "$ac_dir" || { ac_status=$?; continue; } 1730 # Check for guested configure. 1731 if test -f "$ac_srcdir/configure.gnu"; then 1732 echo && 1733 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1734 elif test -f "$ac_srcdir/configure"; then 1735 echo && 1736 $SHELL "$ac_srcdir/configure" --help=recursive 1737 else 1738 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1739 fi || ac_status=$? 1740 cd "$ac_pwd" || { ac_status=$?; break; } 1741 done 1742fi 1743 1744test -n "$ac_init_help" && exit $ac_status 1745if $ac_init_version; then 1746 cat <<\_ACEOF 1747configure 1748generated by GNU Autoconf 2.69 1749 1750Copyright (C) 2012 Free Software Foundation, Inc. 1751This configure script is free software; the Free Software Foundation 1752gives unlimited permission to copy, distribute and modify it. 1753_ACEOF 1754 exit 1755fi 1756 1757## ------------------------ ## 1758## Autoconf initialization. ## 1759## ------------------------ ## 1760 1761# ac_fn_c_try_compile LINENO 1762# -------------------------- 1763# Try to compile conftest.$ac_ext, and return whether this succeeded. 1764ac_fn_c_try_compile () 1765{ 1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1767 rm -f conftest.$ac_objext 1768 if { { ac_try="$ac_compile" 1769case "(($ac_try" in 1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1771 *) ac_try_echo=$ac_try;; 1772esac 1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1774$as_echo "$ac_try_echo"; } >&5 1775 (eval "$ac_compile") 2>conftest.err 1776 ac_status=$? 1777 if test -s conftest.err; then 1778 grep -v '^ *+' conftest.err >conftest.er1 1779 cat conftest.er1 >&5 1780 mv -f conftest.er1 conftest.err 1781 fi 1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1783 test $ac_status = 0; } && { 1784 test -z "$ac_c_werror_flag" || 1785 test ! -s conftest.err 1786 } && test -s conftest.$ac_objext; then : 1787 ac_retval=0 1788else 1789 $as_echo "$as_me: failed program was:" >&5 1790sed 's/^/| /' conftest.$ac_ext >&5 1791 1792 ac_retval=1 1793fi 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1795 as_fn_set_status $ac_retval 1796 1797} # ac_fn_c_try_compile 1798 1799# ac_fn_cxx_try_compile LINENO 1800# ---------------------------- 1801# Try to compile conftest.$ac_ext, and return whether this succeeded. 1802ac_fn_cxx_try_compile () 1803{ 1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1805 rm -f conftest.$ac_objext 1806 if { { ac_try="$ac_compile" 1807case "(($ac_try" in 1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1809 *) ac_try_echo=$ac_try;; 1810esac 1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1812$as_echo "$ac_try_echo"; } >&5 1813 (eval "$ac_compile") 2>conftest.err 1814 ac_status=$? 1815 if test -s conftest.err; then 1816 grep -v '^ *+' conftest.err >conftest.er1 1817 cat conftest.er1 >&5 1818 mv -f conftest.er1 conftest.err 1819 fi 1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1821 test $ac_status = 0; } && { 1822 test -z "$ac_cxx_werror_flag" || 1823 test ! -s conftest.err 1824 } && test -s conftest.$ac_objext; then : 1825 ac_retval=0 1826else 1827 $as_echo "$as_me: failed program was:" >&5 1828sed 's/^/| /' conftest.$ac_ext >&5 1829 1830 ac_retval=1 1831fi 1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1833 as_fn_set_status $ac_retval 1834 1835} # ac_fn_cxx_try_compile 1836 1837# ac_fn_cxx_try_link LINENO 1838# ------------------------- 1839# Try to link conftest.$ac_ext, and return whether this succeeded. 1840ac_fn_cxx_try_link () 1841{ 1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1843 rm -f conftest.$ac_objext conftest$ac_exeext 1844 if { { ac_try="$ac_link" 1845case "(($ac_try" in 1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1847 *) ac_try_echo=$ac_try;; 1848esac 1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1850$as_echo "$ac_try_echo"; } >&5 1851 (eval "$ac_link") 2>conftest.err 1852 ac_status=$? 1853 if test -s conftest.err; then 1854 grep -v '^ *+' conftest.err >conftest.er1 1855 cat conftest.er1 >&5 1856 mv -f conftest.er1 conftest.err 1857 fi 1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1859 test $ac_status = 0; } && { 1860 test -z "$ac_cxx_werror_flag" || 1861 test ! -s conftest.err 1862 } && test -s conftest$ac_exeext && { 1863 test "$cross_compiling" = yes || 1864 test -x conftest$ac_exeext 1865 }; then : 1866 ac_retval=0 1867else 1868 $as_echo "$as_me: failed program was:" >&5 1869sed 's/^/| /' conftest.$ac_ext >&5 1870 1871 ac_retval=1 1872fi 1873 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1874 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1875 # interfere with the next link command; also delete a directory that is 1876 # left behind by Apple's compiler. We do this before executing the actions. 1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1879 as_fn_set_status $ac_retval 1880 1881} # ac_fn_cxx_try_link 1882 1883# ac_fn_c_try_link LINENO 1884# ----------------------- 1885# Try to link conftest.$ac_ext, and return whether this succeeded. 1886ac_fn_c_try_link () 1887{ 1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1889 rm -f conftest.$ac_objext conftest$ac_exeext 1890 if { { ac_try="$ac_link" 1891case "(($ac_try" in 1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1893 *) ac_try_echo=$ac_try;; 1894esac 1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1896$as_echo "$ac_try_echo"; } >&5 1897 (eval "$ac_link") 2>conftest.err 1898 ac_status=$? 1899 if test -s conftest.err; then 1900 grep -v '^ *+' conftest.err >conftest.er1 1901 cat conftest.er1 >&5 1902 mv -f conftest.er1 conftest.err 1903 fi 1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1905 test $ac_status = 0; } && { 1906 test -z "$ac_c_werror_flag" || 1907 test ! -s conftest.err 1908 } && test -s conftest$ac_exeext && { 1909 test "$cross_compiling" = yes || 1910 test -x conftest$ac_exeext 1911 }; then : 1912 ac_retval=0 1913else 1914 $as_echo "$as_me: failed program was:" >&5 1915sed 's/^/| /' conftest.$ac_ext >&5 1916 1917 ac_retval=1 1918fi 1919 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1920 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1921 # interfere with the next link command; also delete a directory that is 1922 # left behind by Apple's compiler. We do this before executing the actions. 1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1925 as_fn_set_status $ac_retval 1926 1927} # ac_fn_c_try_link 1928 1929# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1930# --------------------------------------------- 1931# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1932# accordingly. 1933ac_fn_c_check_decl () 1934{ 1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1936 as_decl_name=`echo $2|sed 's/ *(.*//'` 1937 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1939$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1940if eval \${$3+:} false; then : 1941 $as_echo_n "(cached) " >&6 1942else 1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1944/* end confdefs.h. */ 1945$4 1946int 1947main () 1948{ 1949#ifndef $as_decl_name 1950#ifdef __cplusplus 1951 (void) $as_decl_use; 1952#else 1953 (void) $as_decl_name; 1954#endif 1955#endif 1956 1957 ; 1958 return 0; 1959} 1960_ACEOF 1961if ac_fn_c_try_compile "$LINENO"; then : 1962 eval "$3=yes" 1963else 1964 eval "$3=no" 1965fi 1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1967fi 1968eval ac_res=\$$3 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1970$as_echo "$ac_res" >&6; } 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1972 1973} # ac_fn_c_check_decl 1974cat >config.log <<_ACEOF 1975This file contains any messages produced by compilers while 1976running configure, to aid debugging if configure makes a mistake. 1977 1978It was created by $as_me, which was 1979generated by GNU Autoconf 2.69. Invocation command line was 1980 1981 $ $0 $@ 1982 1983_ACEOF 1984exec 5>>config.log 1985{ 1986cat <<_ASUNAME 1987## --------- ## 1988## Platform. ## 1989## --------- ## 1990 1991hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1992uname -m = `(uname -m) 2>/dev/null || echo unknown` 1993uname -r = `(uname -r) 2>/dev/null || echo unknown` 1994uname -s = `(uname -s) 2>/dev/null || echo unknown` 1995uname -v = `(uname -v) 2>/dev/null || echo unknown` 1996 1997/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1998/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1999 2000/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2001/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2002/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2003/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2004/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2005/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2006/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2007 2008_ASUNAME 2009 2010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2011for as_dir in $PATH 2012do 2013 IFS=$as_save_IFS 2014 test -z "$as_dir" && as_dir=. 2015 $as_echo "PATH: $as_dir" 2016 done 2017IFS=$as_save_IFS 2018 2019} >&5 2020 2021cat >&5 <<_ACEOF 2022 2023 2024## ----------- ## 2025## Core tests. ## 2026## ----------- ## 2027 2028_ACEOF 2029 2030 2031# Keep a trace of the command line. 2032# Strip out --no-create and --no-recursion so they do not pile up. 2033# Strip out --silent because we don't want to record it for future runs. 2034# Also quote any args containing shell meta-characters. 2035# Make two passes to allow for proper duplicate-argument suppression. 2036ac_configure_args= 2037ac_configure_args0= 2038ac_configure_args1= 2039ac_must_keep_next=false 2040for ac_pass in 1 2 2041do 2042 for ac_arg 2043 do 2044 case $ac_arg in 2045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2047 | -silent | --silent | --silen | --sile | --sil) 2048 continue ;; 2049 *\'*) 2050 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2051 esac 2052 case $ac_pass in 2053 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2054 2) 2055 as_fn_append ac_configure_args1 " '$ac_arg'" 2056 if test $ac_must_keep_next = true; then 2057 ac_must_keep_next=false # Got value, back to normal. 2058 else 2059 case $ac_arg in 2060 *=* | --config-cache | -C | -disable-* | --disable-* \ 2061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2063 | -with-* | --with-* | -without-* | --without-* | --x) 2064 case "$ac_configure_args0 " in 2065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2066 esac 2067 ;; 2068 -* ) ac_must_keep_next=true ;; 2069 esac 2070 fi 2071 as_fn_append ac_configure_args " '$ac_arg'" 2072 ;; 2073 esac 2074 done 2075done 2076{ ac_configure_args0=; unset ac_configure_args0;} 2077{ ac_configure_args1=; unset ac_configure_args1;} 2078 2079# When interrupted or exit'd, cleanup temporary files, and complete 2080# config.log. We remove comments because anyway the quotes in there 2081# would cause problems or look ugly. 2082# WARNING: Use '\'' to represent an apostrophe within the trap. 2083# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2084trap 'exit_status=$? 2085 # Save into config.log some information that might help in debugging. 2086 { 2087 echo 2088 2089 $as_echo "## ---------------- ## 2090## Cache variables. ## 2091## ---------------- ##" 2092 echo 2093 # The following way of writing the cache mishandles newlines in values, 2094( 2095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2096 eval ac_val=\$$ac_var 2097 case $ac_val in #( 2098 *${as_nl}*) 2099 case $ac_var in #( 2100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2101$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2102 esac 2103 case $ac_var in #( 2104 _ | IFS | as_nl) ;; #( 2105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2106 *) { eval $ac_var=; unset $ac_var;} ;; 2107 esac ;; 2108 esac 2109 done 2110 (set) 2>&1 | 2111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2112 *${as_nl}ac_space=\ *) 2113 sed -n \ 2114 "s/'\''/'\''\\\\'\'''\''/g; 2115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2116 ;; #( 2117 *) 2118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2119 ;; 2120 esac | 2121 sort 2122) 2123 echo 2124 2125 $as_echo "## ----------------- ## 2126## Output variables. ## 2127## ----------------- ##" 2128 echo 2129 for ac_var in $ac_subst_vars 2130 do 2131 eval ac_val=\$$ac_var 2132 case $ac_val in 2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2134 esac 2135 $as_echo "$ac_var='\''$ac_val'\''" 2136 done | sort 2137 echo 2138 2139 if test -n "$ac_subst_files"; then 2140 $as_echo "## ------------------- ## 2141## File substitutions. ## 2142## ------------------- ##" 2143 echo 2144 for ac_var in $ac_subst_files 2145 do 2146 eval ac_val=\$$ac_var 2147 case $ac_val in 2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2149 esac 2150 $as_echo "$ac_var='\''$ac_val'\''" 2151 done | sort 2152 echo 2153 fi 2154 2155 if test -s confdefs.h; then 2156 $as_echo "## ----------- ## 2157## confdefs.h. ## 2158## ----------- ##" 2159 echo 2160 cat confdefs.h 2161 echo 2162 fi 2163 test "$ac_signal" != 0 && 2164 $as_echo "$as_me: caught signal $ac_signal" 2165 $as_echo "$as_me: exit $exit_status" 2166 } >&5 2167 rm -f core *.core core.conftest.* && 2168 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2169 exit $exit_status 2170' 0 2171for ac_signal in 1 2 13 15; do 2172 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2173done 2174ac_signal=0 2175 2176# confdefs.h avoids OS command line length limits that DEFS can exceed. 2177rm -f -r conftest* confdefs.h 2178 2179$as_echo "/* confdefs.h */" > confdefs.h 2180 2181# Predefined preprocessor variables. 2182 2183cat >>confdefs.h <<_ACEOF 2184#define PACKAGE_NAME "$PACKAGE_NAME" 2185_ACEOF 2186 2187cat >>confdefs.h <<_ACEOF 2188#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2189_ACEOF 2190 2191cat >>confdefs.h <<_ACEOF 2192#define PACKAGE_VERSION "$PACKAGE_VERSION" 2193_ACEOF 2194 2195cat >>confdefs.h <<_ACEOF 2196#define PACKAGE_STRING "$PACKAGE_STRING" 2197_ACEOF 2198 2199cat >>confdefs.h <<_ACEOF 2200#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2201_ACEOF 2202 2203cat >>confdefs.h <<_ACEOF 2204#define PACKAGE_URL "$PACKAGE_URL" 2205_ACEOF 2206 2207 2208# Let the site file select an alternate cache file if it wants to. 2209# Prefer an explicitly selected file to automatically selected ones. 2210ac_site_file1=NONE 2211ac_site_file2=NONE 2212if test -n "$CONFIG_SITE"; then 2213 # We do not want a PATH search for config.site. 2214 case $CONFIG_SITE in #(( 2215 -*) ac_site_file1=./$CONFIG_SITE;; 2216 */*) ac_site_file1=$CONFIG_SITE;; 2217 *) ac_site_file1=./$CONFIG_SITE;; 2218 esac 2219elif test "x$prefix" != xNONE; then 2220 ac_site_file1=$prefix/share/config.site 2221 ac_site_file2=$prefix/etc/config.site 2222else 2223 ac_site_file1=$ac_default_prefix/share/config.site 2224 ac_site_file2=$ac_default_prefix/etc/config.site 2225fi 2226for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2227do 2228 test "x$ac_site_file" = xNONE && continue 2229 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2231$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2232 sed 's/^/| /' "$ac_site_file" >&5 2233 . "$ac_site_file" \ 2234 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2236as_fn_error $? "failed to load site script $ac_site_file 2237See \`config.log' for more details" "$LINENO" 5; } 2238 fi 2239done 2240 2241if test -r "$cache_file"; then 2242 # Some versions of bash will fail to source /dev/null (special files 2243 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2244 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2246$as_echo "$as_me: loading cache $cache_file" >&6;} 2247 case $cache_file in 2248 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2249 *) . "./$cache_file";; 2250 esac 2251 fi 2252else 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2254$as_echo "$as_me: creating cache $cache_file" >&6;} 2255 >$cache_file 2256fi 2257 2258# Check that the precious variables saved in the cache have kept the same 2259# value. 2260ac_cache_corrupted=false 2261for ac_var in $ac_precious_vars; do 2262 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2263 eval ac_new_set=\$ac_env_${ac_var}_set 2264 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2265 eval ac_new_val=\$ac_env_${ac_var}_value 2266 case $ac_old_set,$ac_new_set in 2267 set,) 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2269$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2270 ac_cache_corrupted=: ;; 2271 ,set) 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2273$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2274 ac_cache_corrupted=: ;; 2275 ,);; 2276 *) 2277 if test "x$ac_old_val" != "x$ac_new_val"; then 2278 # differences in whitespace do not lead to failure. 2279 ac_old_val_w=`echo x $ac_old_val` 2280 ac_new_val_w=`echo x $ac_new_val` 2281 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2283$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2284 ac_cache_corrupted=: 2285 else 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2287$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2288 eval $ac_var=\$ac_old_val 2289 fi 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2291$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2293$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2294 fi;; 2295 esac 2296 # Pass precious variables to config.status. 2297 if test "$ac_new_set" = set; then 2298 case $ac_new_val in 2299 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2300 *) ac_arg=$ac_var=$ac_new_val ;; 2301 esac 2302 case " $ac_configure_args " in 2303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2304 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2305 esac 2306 fi 2307done 2308if $ac_cache_corrupted; then 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2312$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2313 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2314fi 2315## -------------------- ## 2316## Main body of script. ## 2317## -------------------- ## 2318 2319ac_ext=c 2320ac_cpp='$CPP $CPPFLAGS' 2321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2323ac_compiler_gnu=$ac_cv_c_compiler_gnu 2324 2325 2326 2327 2328 2329 2330 2331 2332progname=$0 2333# if PWD already has a value, it is probably wrong. 2334if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi 2335 2336# Export original configure arguments for use by sub-configures. 2337# Quote arguments with shell meta charatcers. 2338TOPLEVEL_CONFIGURE_ARGUMENTS= 2339set -- "$progname" "$@" 2340for ac_arg 2341do 2342 case "$ac_arg" in 2343 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) 2344 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 2345 # if the argument is of the form -foo=baz, quote the baz part only 2346 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; 2347 *) ;; 2348 esac 2349 # Add the quoted argument to the list. 2350 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" 2351done 2352if test "$silent" = yes; then 2353 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" 2354fi 2355# Remove the initial space we just introduced and, as these will be 2356# expanded by make, quote '$'. 2357TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` 2358 2359 2360# Find the build, host, and target systems. 2361ac_aux_dir= 2362for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2363 if test -f "$ac_dir/install-sh"; then 2364 ac_aux_dir=$ac_dir 2365 ac_install_sh="$ac_aux_dir/install-sh -c" 2366 break 2367 elif test -f "$ac_dir/install.sh"; then 2368 ac_aux_dir=$ac_dir 2369 ac_install_sh="$ac_aux_dir/install.sh -c" 2370 break 2371 elif test -f "$ac_dir/shtool"; then 2372 ac_aux_dir=$ac_dir 2373 ac_install_sh="$ac_aux_dir/shtool install -c" 2374 break 2375 fi 2376done 2377if test -z "$ac_aux_dir"; then 2378 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2379fi 2380 2381# These three variables are undocumented and unsupported, 2382# and are intended to be withdrawn in a future Autoconf release. 2383# They can cause serious problems if a builder's source tree is in a directory 2384# whose full name contains unusual characters. 2385ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2386ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2387ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2388 2389 2390# Make sure we can run config.sub. 2391$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2392 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2393 2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2395$as_echo_n "checking build system type... " >&6; } 2396if ${ac_cv_build+:} false; then : 2397 $as_echo_n "(cached) " >&6 2398else 2399 ac_build_alias=$build_alias 2400test "x$ac_build_alias" = x && 2401 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2402test "x$ac_build_alias" = x && 2403 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2404ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2406 2407fi 2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2409$as_echo "$ac_cv_build" >&6; } 2410case $ac_cv_build in 2411*-*-*) ;; 2412*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2413esac 2414build=$ac_cv_build 2415ac_save_IFS=$IFS; IFS='-' 2416set x $ac_cv_build 2417shift 2418build_cpu=$1 2419build_vendor=$2 2420shift; shift 2421# Remember, the first character of IFS is used to create $*, 2422# except with old shells: 2423build_os=$* 2424IFS=$ac_save_IFS 2425case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2426 2427 2428 case ${build_alias} in 2429 "") build_noncanonical=${build} ;; 2430 *) build_noncanonical=${build_alias} ;; 2431esac 2432 2433 2434 2435 case ${host_alias} in 2436 "") host_noncanonical=${build_noncanonical} ;; 2437 *) host_noncanonical=${host_alias} ;; 2438esac 2439 2440 2441 2442 case ${target_alias} in 2443 "") target_noncanonical=${host_noncanonical} ;; 2444 *) target_noncanonical=${target_alias} ;; 2445esac 2446 2447 2448 2449 2450test "$host_noncanonical" = "$target_noncanonical" && 2451 test "$program_prefix$program_suffix$program_transform_name" = \ 2452 NONENONEs,x,x, && 2453 program_transform_name=s,y,y, 2454 2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2456$as_echo_n "checking host system type... " >&6; } 2457if ${ac_cv_host+:} false; then : 2458 $as_echo_n "(cached) " >&6 2459else 2460 if test "x$host_alias" = x; then 2461 ac_cv_host=$ac_cv_build 2462else 2463 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2464 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2465fi 2466 2467fi 2468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2469$as_echo "$ac_cv_host" >&6; } 2470case $ac_cv_host in 2471*-*-*) ;; 2472*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2473esac 2474host=$ac_cv_host 2475ac_save_IFS=$IFS; IFS='-' 2476set x $ac_cv_host 2477shift 2478host_cpu=$1 2479host_vendor=$2 2480shift; shift 2481# Remember, the first character of IFS is used to create $*, 2482# except with old shells: 2483host_os=$* 2484IFS=$ac_save_IFS 2485case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2486 2487 2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2489$as_echo_n "checking target system type... " >&6; } 2490if ${ac_cv_target+:} false; then : 2491 $as_echo_n "(cached) " >&6 2492else 2493 if test "x$target_alias" = x; then 2494 ac_cv_target=$ac_cv_host 2495else 2496 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2497 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2498fi 2499 2500fi 2501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2502$as_echo "$ac_cv_target" >&6; } 2503case $ac_cv_target in 2504*-*-*) ;; 2505*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2506esac 2507target=$ac_cv_target 2508ac_save_IFS=$IFS; IFS='-' 2509set x $ac_cv_target 2510shift 2511target_cpu=$1 2512target_vendor=$2 2513shift; shift 2514# Remember, the first character of IFS is used to create $*, 2515# except with old shells: 2516target_os=$* 2517IFS=$ac_save_IFS 2518case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2519 2520 2521# The aliases save the names the user supplied, while $host etc. 2522# will get canonicalized. 2523test -n "$target_alias" && 2524 test "$program_prefix$program_suffix$program_transform_name" = \ 2525 NONENONEs,x,x, && 2526 program_prefix=${target_alias}- 2527 2528test "$program_prefix" != NONE && 2529 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2530# Use a double $ so make ignores it. 2531test "$program_suffix" != NONE && 2532 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2533# Double any \ or $. 2534# By default was `s,x,x', remove it if useless. 2535ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2536program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2537 2538 2539 2540# Get 'install' or 'install-sh' and its variants. 2541# Find a good install program. We prefer a C program (faster), 2542# so one script is as good as another. But avoid the broken or 2543# incompatible versions: 2544# SysV /etc/install, /usr/sbin/install 2545# SunOS /usr/etc/install 2546# IRIX /sbin/install 2547# AIX /bin/install 2548# AmigaOS /C/install, which installs bootblocks on floppy discs 2549# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2550# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2551# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2552# OS/2's system install, which has a completely different semantic 2553# ./install, which can be erroneously created by make from ./install.sh. 2554# Reject install programs that cannot install multiple files. 2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2556$as_echo_n "checking for a BSD-compatible install... " >&6; } 2557if test -z "$INSTALL"; then 2558if ${ac_cv_path_install+:} false; then : 2559 $as_echo_n "(cached) " >&6 2560else 2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2562for as_dir in $PATH 2563do 2564 IFS=$as_save_IFS 2565 test -z "$as_dir" && as_dir=. 2566 # Account for people who put trailing slashes in PATH elements. 2567case $as_dir/ in #(( 2568 ./ | .// | /[cC]/* | \ 2569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2570 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2571 /usr/ucb/* ) ;; 2572 *) 2573 # OSF1 and SCO ODT 3.0 have their own names for install. 2574 # Don't use installbsd from OSF since it installs stuff as root 2575 # by default. 2576 for ac_prog in ginstall scoinst install; do 2577 for ac_exec_ext in '' $ac_executable_extensions; do 2578 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2579 if test $ac_prog = install && 2580 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2581 # AIX install. It has an incompatible calling convention. 2582 : 2583 elif test $ac_prog = install && 2584 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2585 # program-specific install script used by HP pwplus--don't use. 2586 : 2587 else 2588 rm -rf conftest.one conftest.two conftest.dir 2589 echo one > conftest.one 2590 echo two > conftest.two 2591 mkdir conftest.dir 2592 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2593 test -s conftest.one && test -s conftest.two && 2594 test -s conftest.dir/conftest.one && 2595 test -s conftest.dir/conftest.two 2596 then 2597 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2598 break 3 2599 fi 2600 fi 2601 fi 2602 done 2603 done 2604 ;; 2605esac 2606 2607 done 2608IFS=$as_save_IFS 2609 2610rm -rf conftest.one conftest.two conftest.dir 2611 2612fi 2613 if test "${ac_cv_path_install+set}" = set; then 2614 INSTALL=$ac_cv_path_install 2615 else 2616 # As a last resort, use the slow shell script. Don't cache a 2617 # value for INSTALL within a source directory, because that will 2618 # break other packages using the cache if that directory is 2619 # removed, or if the value is a relative name. 2620 INSTALL=$ac_install_sh 2621 fi 2622fi 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2624$as_echo "$INSTALL" >&6; } 2625 2626# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2627# It thinks the first close brace ends the variable substitution. 2628test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2629 2630test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2631 2632test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2633 2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 2635$as_echo_n "checking whether ln works... " >&6; } 2636if ${acx_cv_prog_LN+:} false; then : 2637 $as_echo_n "(cached) " >&6 2638else 2639 rm -f conftestdata_t 2640echo >conftestdata_f 2641if ln conftestdata_f conftestdata_t 2>/dev/null 2642then 2643 acx_cv_prog_LN=ln 2644else 2645 acx_cv_prog_LN=no 2646fi 2647rm -f conftestdata_f conftestdata_t 2648 2649fi 2650if test $acx_cv_prog_LN = no; then 2651 LN="cp" 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 2653$as_echo "no, using $LN" >&6; } 2654else 2655 LN="$acx_cv_prog_LN" 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2657$as_echo "yes" >&6; } 2658fi 2659 2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 2661$as_echo_n "checking whether ln -s works... " >&6; } 2662LN_S=$as_ln_s 2663if test "$LN_S" = "ln -s"; then 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2665$as_echo "yes" >&6; } 2666else 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 2668$as_echo "no, using $LN_S" >&6; } 2669fi 2670 2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 2672$as_echo_n "checking for a sed that does not truncate output... " >&6; } 2673if ${ac_cv_path_SED+:} false; then : 2674 $as_echo_n "(cached) " >&6 2675else 2676 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 2677 for ac_i in 1 2 3 4 5 6 7; do 2678 ac_script="$ac_script$as_nl$ac_script" 2679 done 2680 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 2681 { ac_script=; unset ac_script;} 2682 if test -z "$SED"; then 2683 ac_path_SED_found=false 2684 # Loop through the user's path and test for each of PROGNAME-LIST 2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2686for as_dir in $PATH 2687do 2688 IFS=$as_save_IFS 2689 test -z "$as_dir" && as_dir=. 2690 for ac_prog in sed gsed; do 2691 for ac_exec_ext in '' $ac_executable_extensions; do 2692 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 2693 as_fn_executable_p "$ac_path_SED" || continue 2694# Check for GNU ac_path_SED and select it if it is found. 2695 # Check for GNU $ac_path_SED 2696case `"$ac_path_SED" --version 2>&1` in 2697*GNU*) 2698 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 2699*) 2700 ac_count=0 2701 $as_echo_n 0123456789 >"conftest.in" 2702 while : 2703 do 2704 cat "conftest.in" "conftest.in" >"conftest.tmp" 2705 mv "conftest.tmp" "conftest.in" 2706 cp "conftest.in" "conftest.nl" 2707 $as_echo '' >> "conftest.nl" 2708 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 2709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 2710 as_fn_arith $ac_count + 1 && ac_count=$as_val 2711 if test $ac_count -gt ${ac_path_SED_max-0}; then 2712 # Best one so far, save it but keep looking for a better one 2713 ac_cv_path_SED="$ac_path_SED" 2714 ac_path_SED_max=$ac_count 2715 fi 2716 # 10*(2^10) chars as input seems more than enough 2717 test $ac_count -gt 10 && break 2718 done 2719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 2720esac 2721 2722 $ac_path_SED_found && break 3 2723 done 2724 done 2725 done 2726IFS=$as_save_IFS 2727 if test -z "$ac_cv_path_SED"; then 2728 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 2729 fi 2730else 2731 ac_cv_path_SED=$SED 2732fi 2733 2734fi 2735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 2736$as_echo "$ac_cv_path_SED" >&6; } 2737 SED="$ac_cv_path_SED" 2738 rm -f conftest.sed 2739 2740for ac_prog in gawk mawk nawk awk 2741do 2742 # Extract the first word of "$ac_prog", so it can be a program name with args. 2743set dummy $ac_prog; ac_word=$2 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2745$as_echo_n "checking for $ac_word... " >&6; } 2746if ${ac_cv_prog_AWK+:} false; then : 2747 $as_echo_n "(cached) " >&6 2748else 2749 if test -n "$AWK"; then 2750 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2751else 2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2753for as_dir in $PATH 2754do 2755 IFS=$as_save_IFS 2756 test -z "$as_dir" && as_dir=. 2757 for ac_exec_ext in '' $ac_executable_extensions; do 2758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2759 ac_cv_prog_AWK="$ac_prog" 2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2761 break 2 2762 fi 2763done 2764 done 2765IFS=$as_save_IFS 2766 2767fi 2768fi 2769AWK=$ac_cv_prog_AWK 2770if test -n "$AWK"; then 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2772$as_echo "$AWK" >&6; } 2773else 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2775$as_echo "no" >&6; } 2776fi 2777 2778 2779 test -n "$AWK" && break 2780done 2781 2782 2783srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` 2784 2785# We pass INSTALL explicitly to sub-makes. Make sure that it is not 2786# a relative path. 2787if test "$INSTALL" = "${srcdir}/install-sh -c"; then 2788 INSTALL="${srcpwd}/install-sh -c" 2789fi 2790 2791# Set srcdir to "." if that's what it is. 2792# This is important for multilib support. 2793pwd=`${PWDCMD-pwd}` 2794if test "${pwd}" = "${srcpwd}" ; then 2795 srcdir=. 2796fi 2797 2798topsrcdir=$srcpwd 2799 2800extra_host_args= 2801 2802### To add a new directory to the tree, first choose whether it is a target 2803### or a host dependent tool. Then put it into the appropriate list 2804### (library or tools, host or target), doing a dependency sort. 2805 2806# Subdirs will be configured in the order listed in build_configdirs, 2807# configdirs, or target_configdirs; see the serialization section below. 2808 2809# Dependency sorting is only needed when *configuration* must be done in 2810# a particular order. In all cases a dependency should be specified in 2811# the Makefile, whether or not it's implicitly specified here. 2812 2813# Double entries in build_configdirs, configdirs, or target_configdirs may 2814# cause circular dependencies and break everything horribly. 2815 2816# these library is used by various programs built for the build 2817# environment 2818# 2819build_libs="build-libiberty build-libcpp" 2820 2821# these tools are built for the build environment 2822build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" 2823 2824# these libraries are used by various programs built for the host environment 2825#f 2826host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf" 2827 2828# these tools are built for the host environment 2829# Note, the powerpc-eabi build depends on sim occurring before gdb in order to 2830# know that we are building the simulator. 2831# binutils, gas and ld appear in that order because it makes sense to run 2832# "make check" in that particular order. 2833# If --enable-gold is used, "gold" may replace "ld". 2834host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" 2835 2836# these libraries are built for the target environment, and are built after 2837# the host libraries and the host tools (which may be a cross compiler) 2838# Note that libiberty is not a target library. 2839target_libraries="target-libgcc \ 2840 target-libbacktrace \ 2841 target-libgloss \ 2842 target-newlib \ 2843 target-libgomp \ 2844 target-liboffloadmic \ 2845 target-libhsail-rt \ 2846 target-libatomic \ 2847 target-libitm \ 2848 target-libstdc++-v3 \ 2849 target-libsanitizer \ 2850 target-libvtv \ 2851 target-libssp \ 2852 target-libquadmath \ 2853 target-libgfortran \ 2854 target-libffi \ 2855 target-libobjc \ 2856 target-libada \ 2857 target-libgo" 2858 2859# these tools are built using the target libraries, and are intended to 2860# run only in the target environment 2861# 2862# note: any program that *uses* libraries that are in the "target_libraries" 2863# list belongs in this list. 2864# 2865target_tools="target-rda" 2866 2867################################################################################ 2868 2869## All tools belong in one of the four categories, and are assigned above 2870## We assign ${configdirs} this way to remove all embedded newlines. This 2871## is important because configure will choke if they ever get through. 2872## ${configdirs} is directories we build using the host tools. 2873## ${target_configdirs} is directories we build using the target tools. 2874configdirs=`echo ${host_libs} ${host_tools}` 2875target_configdirs=`echo ${target_libraries} ${target_tools}` 2876build_configdirs=`echo ${build_libs} ${build_tools}` 2877 2878 2879 2880################################################################################ 2881 2882srcname="gnu development package" 2883 2884# This gets set non-empty for some net releases of packages. 2885appdirs="" 2886 2887# Define is_cross_compiler to save on calls to 'test'. 2888is_cross_compiler= 2889if test x"${host}" = x"${target}" ; then 2890 is_cross_compiler=no 2891else 2892 is_cross_compiler=yes 2893fi 2894 2895# Find the build and target subdir names. 2896 2897# post-stage1 host modules use a different CC_FOR_BUILD so, in order to 2898# have matching libraries, they should use host libraries: Makefile.tpl 2899# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). 2900# However, they still use the build modules, because the corresponding 2901# host modules (e.g. bison) are only built for the host when bootstrap 2902# finishes. So: 2903# - build_subdir is where we find build modules, and never changes. 2904# - build_libsubdir is where we find build libraries, and can be overridden. 2905 2906# Prefix 'build-' so this never conflicts with target_subdir. 2907build_subdir="build-${build_noncanonical}" 2908 2909# Check whether --with-build-libsubdir was given. 2910if test "${with_build_libsubdir+set}" = set; then : 2911 withval=$with_build_libsubdir; build_libsubdir="$withval" 2912else 2913 build_libsubdir="$build_subdir" 2914fi 2915 2916# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 2917if ( test $srcdir = . && test -d gcc ) \ 2918 || test -d $srcdir/../host-${host_noncanonical}; then 2919 host_subdir="host-${host_noncanonical}" 2920else 2921 host_subdir=. 2922fi 2923# No prefix. 2924target_subdir=${target_noncanonical} 2925 2926# Be sure to cover against remnants of an in-tree build. 2927if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then 2928 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. 2929Use a pristine source tree when building in a separate tree" "$LINENO" 5 2930fi 2931 2932# Skipdirs are removed silently. 2933skipdirs= 2934# Noconfigdirs are removed loudly. 2935noconfigdirs="" 2936 2937use_gnu_ld= 2938# Make sure we don't let GNU ld be added if we didn't want it. 2939if test x$with_gnu_ld = xno ; then 2940 use_gnu_ld=no 2941 noconfigdirs="$noconfigdirs ld gold" 2942fi 2943 2944use_gnu_as= 2945# Make sure we don't let GNU as be added if we didn't want it. 2946if test x$with_gnu_as = xno ; then 2947 use_gnu_as=no 2948 noconfigdirs="$noconfigdirs gas" 2949fi 2950 2951use_included_zlib= 2952 2953# Check whether --with-system-zlib was given. 2954if test "${with_system_zlib+set}" = set; then : 2955 withval=$with_system_zlib; 2956fi 2957 2958# Make sure we don't let ZLIB be added if we didn't want it. 2959if test x$with_system_zlib = xyes ; then 2960 use_included_zlib=no 2961 noconfigdirs="$noconfigdirs zlib" 2962fi 2963 2964# Don't compile the bundled readline/libreadline.a if --with-system-readline 2965# is provided. 2966if test x$with_system_readline = xyes ; then 2967 noconfigdirs="$noconfigdirs readline" 2968fi 2969 2970# some tools are so dependent upon X11 that if we're not building with X, 2971# it's not even worth trying to configure, much less build, that tool. 2972 2973case ${with_x} in 2974 yes | "") ;; # the default value for this tree is that X11 is available 2975 no) 2976 skipdirs="${skipdirs} tk itcl libgui" 2977 # We won't be able to build gdbtk without X. 2978 enable_gdbtk=no 2979 ;; 2980 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; 2981esac 2982 2983# Some are only suitable for cross toolchains. 2984# Remove these if host=target. 2985cross_only="target-libgloss target-newlib target-opcodes" 2986 2987case $is_cross_compiler in 2988 no) skipdirs="${skipdirs} ${cross_only}" ;; 2989esac 2990 2991# If both --with-headers and --with-libs are specified, default to 2992# --without-newlib. 2993if test x"${with_headers}" != x && test x"${with_headers}" != xno \ 2994 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then 2995 if test x"${with_newlib}" = x ; then 2996 with_newlib=no 2997 fi 2998fi 2999 3000# Recognize --with-newlib/--without-newlib. 3001case ${with_newlib} in 3002 no) skipdirs="${skipdirs} target-newlib" ;; 3003 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; 3004esac 3005 3006# Check whether --enable-as-accelerator-for was given. 3007if test "${enable_as_accelerator_for+set}" = set; then : 3008 enableval=$enable_as_accelerator_for; 3009fi 3010 3011 3012# Check whether --enable-offload-targets was given. 3013if test "${enable_offload_targets+set}" = set; then : 3014 enableval=$enable_offload_targets; 3015 if test x"$enable_offload_targets" = x; then 3016 as_fn_error $? "no offload targets specified" "$LINENO" 5 3017 fi 3018 3019else 3020 enable_offload_targets= 3021fi 3022 3023 3024# Handle --enable-gold, --enable-ld. 3025# --disable-gold [--enable-ld] 3026# Build only ld. Default option. 3027# --enable-gold [--enable-ld] 3028# Build both gold and ld. Install gold as "ld.gold", install ld 3029# as "ld.bfd" and "ld". 3030# --enable-gold=default [--enable-ld] 3031# Build both gold and ld. Install gold as "ld.gold" and "ld", 3032# install ld as "ld.bfd". 3033# --enable-gold[=default] --disable-ld 3034# Build only gold, which is then installed as both "ld.gold" and "ld". 3035# --enable-gold --enable-ld=default 3036# Build both gold (installed as "ld.gold") and ld (installed as "ld" 3037# and ld.bfd). 3038# In other words, ld is default 3039# --enable-gold=default --enable-ld=default 3040# Error. 3041 3042default_ld= 3043# Check whether --enable-gold was given. 3044if test "${enable_gold+set}" = set; then : 3045 enableval=$enable_gold; ENABLE_GOLD=$enableval 3046else 3047 ENABLE_GOLD=no 3048fi 3049 3050case "${ENABLE_GOLD}" in 3051 yes|default) 3052 # Check for ELF target. 3053 is_elf=no 3054 case "${target}" in 3055 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ 3056 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ 3057 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ 3058 | *-*-solaris2* | *-*-nto* | *-*-nacl*) 3059 case "${target}" in 3060 *-*-linux*aout* | *-*-linux*oldld*) 3061 ;; 3062 *) 3063 is_elf=yes 3064 ;; 3065 esac 3066 esac 3067 3068 if test "$is_elf" = "yes"; then 3069 # Check for target supported by gold. 3070 case "${target}" in 3071 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ 3072 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) 3073 configdirs="$configdirs gold" 3074 if test x${ENABLE_GOLD} = xdefault; then 3075 default_ld=gold 3076 fi 3077 ENABLE_GOLD=yes 3078 ;; 3079 esac 3080 fi 3081 ;; 3082 no) 3083 ;; 3084 *) 3085 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 3086 ;; 3087esac 3088 3089# Check whether --enable-ld was given. 3090if test "${enable_ld+set}" = set; then : 3091 enableval=$enable_ld; ENABLE_LD=$enableval 3092else 3093 ENABLE_LD=yes 3094fi 3095 3096 3097case "${ENABLE_LD}" in 3098 default) 3099 if test x${default_ld} != x; then 3100 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 3101 fi 3102 ;; 3103 yes) 3104 ;; 3105 no) 3106 if test x${ENABLE_GOLD} != xyes; then 3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 3108$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} 3109 fi 3110 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` 3111 ;; 3112 *) 3113 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 3114 ;; 3115esac 3116 3117# PR gas/19109 3118# Decide the default method for compressing debug sections. 3119# Provide a configure time option to override our default. 3120# Check whether --enable-compressed_debug_sections was given. 3121if test "${enable_compressed_debug_sections+set}" = set; then : 3122 enableval=$enable_compressed_debug_sections; 3123 if test x"$enable_compressed_debug_sections" = xyes; then 3124 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 3125 fi 3126 3127else 3128 enable_compressed_debug_sections= 3129fi 3130 3131 3132# Configure extra directories which are host specific 3133 3134case "${host}" in 3135 *-cygwin*) 3136 configdirs="$configdirs libtermcap" ;; 3137esac 3138 3139# A target can indicate whether a language isn't supported for some reason. 3140# Only spaces may be used in this macro; not newlines or tabs. 3141unsupported_languages= 3142 3143# Remove more programs from consideration, based on the host or 3144# target this usually means that a port of the program doesn't 3145# exist yet. 3146 3147case "${host}" in 3148 i[3456789]86-*-msdosdjgpp*) 3149 noconfigdirs="$noconfigdirs tcl tk itcl" 3150 ;; 3151esac 3152 3153 3154# Check whether --enable-libquadmath was given. 3155if test "${enable_libquadmath+set}" = set; then : 3156 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval 3157else 3158 ENABLE_LIBQUADMATH=yes 3159fi 3160 3161if test "${ENABLE_LIBQUADMATH}" = "no" ; then 3162 noconfigdirs="$noconfigdirs target-libquadmath" 3163fi 3164 3165 3166# Check whether --enable-libquadmath-support was given. 3167if test "${enable_libquadmath_support+set}" = set; then : 3168 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval 3169else 3170 ENABLE_LIBQUADMATH_SUPPORT=yes 3171fi 3172 3173enable_libquadmath_support= 3174if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then 3175 enable_libquadmath_support=no 3176fi 3177 3178 3179# Check whether --enable-libada was given. 3180if test "${enable_libada+set}" = set; then : 3181 enableval=$enable_libada; ENABLE_LIBADA=$enableval 3182else 3183 ENABLE_LIBADA=yes 3184fi 3185 3186if test "${ENABLE_LIBADA}" != "yes" ; then 3187 noconfigdirs="$noconfigdirs gnattools" 3188fi 3189 3190# Check whether --enable-libssp was given. 3191if test "${enable_libssp+set}" = set; then : 3192 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval 3193else 3194 ENABLE_LIBSSP=yes 3195fi 3196 3197 3198# Check whether --enable-libstdcxx was given. 3199if test "${enable_libstdcxx+set}" = set; then : 3200 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval 3201else 3202 ENABLE_LIBSTDCXX=default 3203fi 3204 3205if test "${ENABLE_LIBSTDCXX}" = "no" ; then 3206 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3207fi 3208 3209# If this is accelerator compiler and its target is intelmic we enable 3210# target liboffloadmic by default. If this is compiler with offloading 3211# for intelmic we enable host liboffloadmic by default. Otherwise 3212# liboffloadmic is disabled by default. 3213# Check whether --enable-liboffloadmic was given. 3214if test "${enable_liboffloadmic+set}" = set; then : 3215 enableval=$enable_liboffloadmic; case "$enableval" in 3216 no | host | target) 3217 enable_liboffloadmic=$enableval ;; 3218 *) 3219 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; 3220esac 3221else 3222 if test x"$enable_as_accelerator_for" != x; then 3223 case "${target}" in 3224 *-intelmic-* | *-intelmicemul-*) 3225 enable_liboffloadmic=target 3226 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" 3227 ;; 3228 *) 3229 enable_liboffloadmic=no 3230 ;; 3231 esac 3232else 3233 case "${enable_offload_targets}" in 3234 *-intelmic-* | *-intelmicemul-*) 3235 enable_liboffloadmic=host 3236 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" 3237 ;; 3238 *) 3239 enable_liboffloadmic=no 3240 ;; 3241 esac 3242fi 3243fi 3244 3245 3246 3247# Enable libgomp by default on hosted POSIX systems, and a few others. 3248if test x$enable_libgomp = x ; then 3249 case "${target}" in 3250 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 3251 ;; 3252 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) 3253 ;; 3254 *-*-solaris2* | *-*-hpux11*) 3255 ;; 3256 *-*-darwin* | *-*-aix*) 3257 ;; 3258 nvptx*-*-*) 3259 ;; 3260 *) 3261 noconfigdirs="$noconfigdirs target-libgomp" 3262 ;; 3263 esac 3264fi 3265 3266# Disable libatomic on unsupported systems. 3267if test -d ${srcdir}/libatomic; then 3268 if test x$enable_libatomic = x; then 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 3270$as_echo_n "checking for libatomic support... " >&6; } 3271 if (srcdir=${srcdir}/libatomic; \ 3272 . ${srcdir}/configure.tgt; \ 3273 test -n "$UNSUPPORTED") 3274 then 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3276$as_echo "no" >&6; } 3277 noconfigdirs="$noconfigdirs target-libatomic" 3278 else 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3280$as_echo "yes" >&6; } 3281 fi 3282 fi 3283fi 3284 3285# Disable liboffloadmic on unsupported systems. 3286if test -d ${srcdir}/liboffloadmic; then 3287 if test x$enable_liboffloadmic != xno; then 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 3289$as_echo_n "checking for liboffloadmic support... " >&6; } 3290 if (srcdir=${srcdir}/liboffloadmic; \ 3291 . ${srcdir}/configure.tgt; \ 3292 test -n "$UNSUPPORTED") 3293 then 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3295$as_echo "no" >&6; } 3296 noconfigdirs="$noconfigdirs target-liboffloadmic" 3297 else 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3299$as_echo "yes" >&6; } 3300 fi 3301 fi 3302fi 3303 3304# Disable libitm on unsupported systems. 3305if test -d ${srcdir}/libitm; then 3306 if test x$enable_libitm = x; then 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 3308$as_echo_n "checking for libitm support... " >&6; } 3309 if (srcdir=${srcdir}/libitm; \ 3310 . ${srcdir}/configure.tgt; \ 3311 test -n "$UNSUPPORTED") 3312 then 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3314$as_echo "no" >&6; } 3315 noconfigdirs="$noconfigdirs target-libitm" 3316 else 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3318$as_echo "yes" >&6; } 3319 fi 3320 fi 3321fi 3322 3323# Disable libsanitizer on unsupported systems. 3324if test -d ${srcdir}/libsanitizer; then 3325 if test x$enable_libsanitizer = x; then 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 3327$as_echo_n "checking for libsanitizer support... " >&6; } 3328 if (srcdir=${srcdir}/libsanitizer; \ 3329 . ${srcdir}/configure.tgt; \ 3330 test -n "$UNSUPPORTED") 3331 then 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3333$as_echo "no" >&6; } 3334 noconfigdirs="$noconfigdirs target-libsanitizer" 3335 else 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3337$as_echo "yes" >&6; } 3338 fi 3339 fi 3340fi 3341 3342# Disable libvtv on unsupported systems. 3343if test -d ${srcdir}/libvtv; then 3344 if test x$enable_libvtv = x; then 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 3346$as_echo_n "checking for libvtv support... " >&6; } 3347 if (srcdir=${srcdir}/libvtv; \ 3348 . ${srcdir}/configure.tgt; \ 3349 test "$VTV_SUPPORTED" != "yes") 3350 then 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3352$as_echo "no" >&6; } 3353 noconfigdirs="$noconfigdirs target-libvtv" 3354 else 3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3356$as_echo "yes" >&6; } 3357 fi 3358 fi 3359fi 3360 3361 3362# Disable libhsail-rt on unsupported systems. 3363if test -d ${srcdir}/libhsail-rt; then 3364 if test x$enable_libhsail_rt = x; then 3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 3366$as_echo_n "checking for libhsail-rt support... " >&6; } 3367 if (srcdir=${srcdir}/libhsail-rt; \ 3368 . ${srcdir}/configure.tgt; \ 3369 test -n "$UNSUPPORTED") 3370 then 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3372$as_echo "no" >&6; } 3373 unsupported_languages="$unsupported_languages brig" 3374 # This implicitly disables also target-libhsail-rt as it won't 3375 # get added to the build without BRIG FE. 3376 else 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3378$as_echo "yes" >&6; } 3379 fi 3380 fi 3381fi 3382 3383 3384# Disable libquadmath for some systems. 3385case "${target}" in 3386 avr-*-*) 3387 noconfigdirs="$noconfigdirs target-libquadmath" 3388 ;; 3389 # libquadmath is unused on AIX and libquadmath build process use of 3390 # LD_LIBRARY_PATH can break AIX bootstrap. 3391 powerpc-*-aix* | rs6000-*-aix*) 3392 noconfigdirs="$noconfigdirs target-libquadmath" 3393 ;; 3394esac 3395 3396# Disable libssp for some systems. 3397case "${target}" in 3398 avr-*-*) 3399 # No hosted I/O support. 3400 noconfigdirs="$noconfigdirs target-libssp" 3401 ;; 3402 powerpc-*-aix* | rs6000-*-aix*) 3403 noconfigdirs="$noconfigdirs target-libssp" 3404 ;; 3405 rl78-*-*) 3406 # libssp uses a misaligned load to trigger a fault, but the RL78 3407 # doesn't fault for those - instead, it gives a build-time error 3408 # for explicit misaligned loads. 3409 noconfigdirs="$noconfigdirs target-libssp" 3410 ;; 3411 visium-*-*) 3412 # No hosted I/O support. 3413 noconfigdirs="$noconfigdirs target-libssp" 3414 ;; 3415esac 3416 3417# Disable libstdc++-v3 for some systems. 3418# Allow user to override this if they pass --enable-libstdc++-v3 3419if test "${ENABLE_LIBSTDCXX}" = "default" ; then 3420 case "${target}" in 3421 *-*-vxworks*) 3422 # VxWorks uses the Dinkumware C++ library. 3423 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3424 ;; 3425 arm*-wince-pe*) 3426 # the C++ libraries don't build on top of CE's C libraries 3427 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3428 ;; 3429 avr-*-*) 3430 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3431 ;; 3432 ft32-*-*) 3433 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3434 ;; 3435 esac 3436fi 3437 3438# Disable Fortran for some systems. 3439case "${target}" in 3440 mmix-*-*) 3441 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. 3442 unsupported_languages="$unsupported_languages fortran" 3443 ;; 3444esac 3445 3446# Disable libffi for some systems. 3447case "${target}" in 3448 powerpc-*-darwin*) 3449 ;; 3450 i[3456789]86-*-darwin*) 3451 ;; 3452 x86_64-*-darwin[912]*) 3453 ;; 3454 *-*-darwin*) 3455 noconfigdirs="$noconfigdirs target-libffi" 3456 ;; 3457 *-*-netware*) 3458 noconfigdirs="$noconfigdirs target-libffi" 3459 ;; 3460 *-*-phoenix*) 3461 noconfigdirs="$noconfigdirs target-libffi" 3462 ;; 3463 *-*-rtems*) 3464 noconfigdirs="$noconfigdirs target-libffi" 3465 ;; 3466 *-*-tpf*) 3467 noconfigdirs="$noconfigdirs target-libffi" 3468 ;; 3469 *-*-uclinux*) 3470 noconfigdirs="$noconfigdirs target-libffi" 3471 ;; 3472 *-*-vxworks*) 3473 noconfigdirs="$noconfigdirs target-libffi" 3474 ;; 3475 aarch64*-*-freebsd*) 3476 noconfigdirs="$noconfigdirs target-libffi" 3477 ;; 3478 alpha*-*-*vms*) 3479 noconfigdirs="$noconfigdirs target-libffi" 3480 ;; 3481 arm*-*-freebsd*) 3482 noconfigdirs="$noconfigdirs target-libffi" 3483 ;; 3484 arm-wince-pe) 3485 noconfigdirs="$noconfigdirs target-libffi" 3486 ;; 3487 arm*-*-symbianelf*) 3488 noconfigdirs="$noconfigdirs target-libffi" 3489 ;; 3490 cris-*-* | crisv32-*-*) 3491 case "${target}" in 3492 *-*-linux*) 3493 ;; 3494 *) # See PR46792 regarding target-libffi. 3495 noconfigdirs="$noconfigdirs target-libffi";; 3496 esac 3497 ;; 3498 hppa*64*-*-hpux*) 3499 noconfigdirs="$noconfigdirs target-libffi" 3500 ;; 3501 hppa*-hp-hpux11*) 3502 ;; 3503 hppa*-*-hpux*) 3504 noconfigdirs="$noconfigdirs target-libffi" 3505 ;; 3506 ia64*-*-*vms*) 3507 noconfigdirs="$noconfigdirs target-libffi" 3508 ;; 3509 i[3456789]86-w64-mingw*) 3510 noconfigdirs="$noconfigdirs target-libffi" 3511 ;; 3512 i[3456789]86-*-mingw*) 3513 noconfigdirs="$noconfigdirs target-libffi" 3514 ;; 3515 x86_64-*-mingw*) 3516 noconfigdirs="$noconfigdirs target-libffi" 3517 ;; 3518 mmix-*-*) 3519 noconfigdirs="$noconfigdirs target-libffi" 3520 ;; 3521 powerpc-*-aix*) 3522 ;; 3523 rs6000-*-aix*) 3524 ;; 3525 ft32-*-*) 3526 noconfigdirs="$noconfigdirs target-libffi" 3527 ;; 3528 *-*-lynxos*) 3529 noconfigdirs="$noconfigdirs target-libffi" 3530 ;; 3531esac 3532 3533# Disable the go frontend on systems where it is known to not work. Please keep 3534# this in sync with contrib/config-list.mk. 3535case "${target}" in 3536*-*-darwin* | *-*-cygwin* | *-*-mingw*) 3537 unsupported_languages="$unsupported_languages go" 3538 ;; 3539esac 3540 3541# Disable libgo for some systems where it is known to not work. 3542# For testing, you can easily override this with --enable-libgo. 3543if test x$enable_libgo = x; then 3544 case "${target}" in 3545 *-*-darwin*) 3546 # PR 46986 3547 noconfigdirs="$noconfigdirs target-libgo" 3548 ;; 3549 *-*-cygwin* | *-*-mingw*) 3550 noconfigdirs="$noconfigdirs target-libgo" 3551 ;; 3552 esac 3553fi 3554 3555# Default libgloss CPU subdirectory. 3556libgloss_dir="$target_cpu" 3557 3558case "${target}" in 3559 sh*-*-pe|mips*-*-pe|*arm-wince-pe) 3560 libgloss_dir=wince 3561 ;; 3562 aarch64*-*-* ) 3563 libgloss_dir=aarch64 3564 ;; 3565 arm*-*-*) 3566 libgloss_dir=arm 3567 ;; 3568 cris-*-* | crisv32-*-*) 3569 libgloss_dir=cris 3570 ;; 3571 hppa*-*-*) 3572 libgloss_dir=pa 3573 ;; 3574 i[3456789]86-*-*) 3575 libgloss_dir=i386 3576 ;; 3577 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) 3578 libgloss_dir=m68hc11 3579 ;; 3580 m68*-*-* | fido-*-*) 3581 libgloss_dir=m68k 3582 ;; 3583 mips*-*-*) 3584 libgloss_dir=mips 3585 ;; 3586 powerpc*-*-*) 3587 libgloss_dir=rs6000 3588 ;; 3589 sparc*-*-*) 3590 libgloss_dir=sparc 3591 ;; 3592esac 3593 3594# Disable newlib and libgloss for various target OSes. 3595case "${target}" in 3596 alpha*-dec-osf*) 3597 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3598 ;; 3599 i[3456789]86-*-linux*) 3600 # This section makes it possible to build newlib natively on linux. 3601 # If we are using a cross compiler then don't configure newlib. 3602 if test x${is_cross_compiler} != xno ; then 3603 noconfigdirs="$noconfigdirs target-newlib" 3604 fi 3605 noconfigdirs="$noconfigdirs target-libgloss" 3606 # If we are not using a cross compiler, do configure newlib. 3607 # Note however, that newlib will only be configured in this situation 3608 # if the --with-newlib option has been given, because otherwise 3609 # 'target-newlib' will appear in skipdirs. 3610 ;; 3611 i[3456789]86-*-rdos*) 3612 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3613 ;; 3614 sh*-*-pe|mips*-*-pe|arm-wince-pe) 3615 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3616 ;; 3617 sparc-*-sunos4*) 3618 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3619 ;; 3620 *-*-aix*) 3621 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3622 ;; 3623 *-*-beos*) 3624 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3625 ;; 3626 *-*-chorusos) 3627 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3628 ;; 3629 *-*-dragonfly*) 3630 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3631 ;; 3632 *-*-freebsd*) 3633 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3634 ;; 3635 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 3636 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3637 ;; 3638 *-*-lynxos*) 3639 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3640 ;; 3641 *-*-mingw*) 3642 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3643 ;; 3644 *-*-netbsd*) 3645 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3646 ;; 3647 *-*-netware*) 3648 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3649 ;; 3650 *-*-tpf*) 3651 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3652 ;; 3653 *-*-uclinux*) 3654 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3655 ;; 3656 *-*-vxworks*) 3657 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3658 ;; 3659esac 3660 3661case "${target}" in 3662 *-*-chorusos) 3663 ;; 3664 aarch64-*-darwin*) 3665 noconfigdirs="$noconfigdirs ld gas gdb gprof" 3666 noconfigdirs="$noconfigdirs sim target-rda" 3667 ;; 3668 arm-*-darwin*) 3669 noconfigdirs="$noconfigdirs ld gas gdb gprof" 3670 noconfigdirs="$noconfigdirs sim target-rda" 3671 ;; 3672 powerpc-*-darwin*) 3673 noconfigdirs="$noconfigdirs ld gas gdb gprof" 3674 noconfigdirs="$noconfigdirs sim target-rda" 3675 ;; 3676 i[3456789]86-*-darwin*) 3677 noconfigdirs="$noconfigdirs ld gprof" 3678 noconfigdirs="$noconfigdirs sim target-rda" 3679 ;; 3680 x86_64-*-darwin[912]*) 3681 noconfigdirs="$noconfigdirs ld gas gprof" 3682 noconfigdirs="$noconfigdirs sim target-rda" 3683 ;; 3684 *-*-darwin*) 3685 noconfigdirs="$noconfigdirs ld gas gdb gprof" 3686 noconfigdirs="$noconfigdirs sim target-rda" 3687 ;; 3688 *-*-dragonfly*) 3689 ;; 3690 *-*-freebsd*) 3691 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ 3692 && test -f /usr/local/include/gmp.h; then 3693 with_gmp=/usr/local 3694 fi 3695 ;; 3696 *-*-kaos*) 3697 # Remove unsupported stuff on all kaOS configurations. 3698 noconfigdirs="$noconfigdirs target-libgloss" 3699 ;; 3700 *-*-netbsd*) 3701 ;; 3702 *-*-netware*) 3703 ;; 3704 *-*-phoenix*) 3705 noconfigdirs="$noconfigdirs target-libgloss" 3706 ;; 3707 *-*-rtems*) 3708 noconfigdirs="$noconfigdirs target-libgloss" 3709 ;; 3710 # The tpf target doesn't support gdb yet. 3711 *-*-tpf*) 3712 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" 3713 ;; 3714 *-*-uclinux*) 3715 noconfigdirs="$noconfigdirs target-rda" 3716 ;; 3717 *-*-vxworks*) 3718 ;; 3719 alpha*-dec-osf*) 3720 # ld works, but does not support shared libraries. 3721 # gas doesn't generate exception information. 3722 noconfigdirs="$noconfigdirs gas ld" 3723 ;; 3724 alpha*-*-*vms*) 3725 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" 3726 ;; 3727 alpha*-*-*) 3728 # newlib is not 64 bit ready 3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3730 ;; 3731 sh*-*-pe|mips*-*-pe|*arm-wince-pe) 3732 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" 3733 ;; 3734 arc*-*-*) 3735 noconfigdirs="$noconfigdirs sim" 3736 ;; 3737 arm-*-pe*) 3738 noconfigdirs="$noconfigdirs target-libgloss" 3739 ;; 3740 arm-*-riscix*) 3741 noconfigdirs="$noconfigdirs ld target-libgloss" 3742 ;; 3743 avr-*-*) 3744 if test x${with_avrlibc} != xno; then 3745 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3746 fi 3747 ;; 3748 c4x-*-* | tic4x-*-*) 3749 noconfigdirs="$noconfigdirs target-libgloss" 3750 ;; 3751 tic54x-*-*) 3752 noconfigdirs="$noconfigdirs target-libgloss gdb" 3753 ;; 3754 d10v-*-*) 3755 noconfigdirs="$noconfigdirs target-libgloss" 3756 ;; 3757 d30v-*-*) 3758 noconfigdirs="$noconfigdirs gdb" 3759 ;; 3760 fr30-*-elf*) 3761 noconfigdirs="$noconfigdirs gdb" 3762 ;; 3763 ft32-*-*) 3764 noconfigdirs="$noconfigdirs target-rda gprof" 3765 ;; 3766 moxie-*-*) 3767 noconfigdirs="$noconfigdirs" 3768 ;; 3769 h8300*-*-*) 3770 noconfigdirs="$noconfigdirs target-libgloss" 3771 ;; 3772 h8500-*-*) 3773 noconfigdirs="$noconfigdirs target-libgloss" 3774 ;; 3775 hppa1.1-*-osf* | hppa1.1-*-bsd* ) 3776 ;; 3777 hppa*64*-*-hpux*) 3778 noconfigdirs="$noconfigdirs gdb" 3779 ;; 3780 hppa*-*-hpux11*) 3781 noconfigdirs="$noconfigdirs gdb ld" 3782 ;; 3783 hppa*64*-*-linux*) 3784 ;; 3785 hppa*-*-linux*) 3786 ;; 3787 hppa*-*-*elf* | \ 3788 hppa*-*-lites* | \ 3789 hppa*-*-openbsd* | \ 3790 hppa*64*-*-*) 3791 ;; 3792 hppa*-*-pro*) 3793 ;; 3794 hppa*-*-*) 3795 noconfigdirs="$noconfigdirs ld" 3796 ;; 3797 i960-*-*) 3798 noconfigdirs="$noconfigdirs gdb" 3799 ;; 3800 ia64*-*-elf*) 3801 # No gdb support yet. 3802 noconfigdirs="$noconfigdirs readline libgui itcl gdb" 3803 ;; 3804 ia64*-**-hpux*) 3805 # No ld support yet. 3806 noconfigdirs="$noconfigdirs gdb libgui itcl ld" 3807 ;; 3808 ia64*-*-*vms*) 3809 # No ld support yet. 3810 noconfigdirs="$noconfigdirs libgui itcl ld" 3811 ;; 3812 i[3456789]86-w64-mingw*) 3813 ;; 3814 i[3456789]86-*-mingw*) 3815 target_configdirs="$target_configdirs target-winsup" 3816 ;; 3817 *-*-cygwin*) 3818 target_configdirs="$target_configdirs target-libtermcap target-winsup" 3819 noconfigdirs="$noconfigdirs target-libgloss" 3820 # always build newlib if winsup directory is present. 3821 if test -d "$srcdir/winsup/cygwin"; then 3822 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` 3823 elif test -d "$srcdir/newlib"; then 3824 echo "Warning: winsup/cygwin is missing so newlib can't be built." 3825 fi 3826 ;; 3827 i[3456789]86-*-pe) 3828 noconfigdirs="$noconfigdirs target-libgloss" 3829 ;; 3830 i[3456789]86-*-sco3.2v5*) 3831 # The linker does not yet know about weak symbols in COFF, 3832 # and is not configured to handle mixed ELF and COFF. 3833 noconfigdirs="$noconfigdirs ld target-libgloss" 3834 ;; 3835 i[3456789]86-*-sco*) 3836 noconfigdirs="$noconfigdirs gprof target-libgloss" 3837 ;; 3838 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) 3839 noconfigdirs="$noconfigdirs target-libgloss" 3840 ;; 3841 i[3456789]86-*-sysv4*) 3842 noconfigdirs="$noconfigdirs target-libgloss" 3843 ;; 3844 i[3456789]86-*-beos*) 3845 noconfigdirs="$noconfigdirs gdb" 3846 ;; 3847 i[3456789]86-*-rdos*) 3848 noconfigdirs="$noconfigdirs gdb" 3849 ;; 3850 mmix-*-*) 3851 noconfigdirs="$noconfigdirs gdb" 3852 ;; 3853 mt-*-*) 3854 noconfigdirs="$noconfigdirs sim" 3855 ;; 3856 nfp-*-*) 3857 noconfigdirs="$noconfigdirs ld gas gdb gprof sim" 3858 noconfigdirs="$noconfigdirs $target_libraries" 3859 ;; 3860 powerpc-*-aix*) 3861 # copied from rs6000-*-* entry 3862 noconfigdirs="$noconfigdirs gprof" 3863 ;; 3864 powerpc*-*-winnt* | powerpc*-*-pe*) 3865 target_configdirs="$target_configdirs target-winsup" 3866 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" 3867 # always build newlib. 3868 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` 3869 ;; 3870 # This is temporary until we can link against shared libraries 3871 powerpcle-*-solaris*) 3872 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" 3873 ;; 3874 powerpc-*-beos*) 3875 noconfigdirs="$noconfigdirs gdb" 3876 ;; 3877 rs6000-*-lynxos*) 3878 noconfigdirs="$noconfigdirs gprof" 3879 ;; 3880 rs6000-*-aix*) 3881 noconfigdirs="$noconfigdirs gprof" 3882 ;; 3883 rs6000-*-*) 3884 noconfigdirs="$noconfigdirs gprof" 3885 ;; 3886 m68k-apollo-*) 3887 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" 3888 ;; 3889 microblaze*) 3890 noconfigdirs="$noconfigdirs gprof" 3891 ;; 3892 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) 3893 if test x$with_newlib = xyes; then 3894 noconfigdirs="$noconfigdirs gprof" 3895 fi 3896 ;; 3897 mips*-*-irix5*) 3898 noconfigdirs="$noconfigdirs gprof target-libgloss" 3899 ;; 3900 mips*-*-irix6*) 3901 noconfigdirs="$noconfigdirs gprof target-libgloss" 3902 ;; 3903 mips*-*-bsd*) 3904 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" 3905 ;; 3906 mips*-*-linux*) 3907 ;; 3908 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ 3909 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) 3910 noconfigdirs="$noconfigdirs ld gas gprof" 3911 ;; 3912 mips*-*-*) 3913 noconfigdirs="$noconfigdirs gprof" 3914 ;; 3915 nvptx*-*-*) 3916 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" 3917 ;; 3918 sh-*-*) 3919 case "${target}" in 3920 sh*-*-elf) 3921 ;; 3922 *) 3923 noconfigdirs="$noconfigdirs target-libgloss" ;; 3924 esac 3925 ;; 3926 sparc-*-sunos4*) 3927 if test x${is_cross_compiler} = xno ; then 3928 use_gnu_ld=no 3929 fi 3930 ;; 3931 tic6x-*-*) 3932 noconfigdirs="$noconfigdirs sim" 3933 ;; 3934 tilepro*-*-* | tilegx*-*-*) 3935 noconfigdirs="$noconfigdirs sim" 3936 ;; 3937 v810-*-*) 3938 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" 3939 ;; 3940 vax-*-*) 3941 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3942 ;; 3943 wasm32-*-*) 3944 noconfigdirs="$noconfigdirs ld" 3945 ;; 3946esac 3947 3948# If we aren't building newlib, then don't build libgloss, since libgloss 3949# depends upon some newlib header files. 3950case "${noconfigdirs}" in 3951 *target-libgloss*) ;; 3952 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; 3953esac 3954 3955# Work in distributions that contain no compiler tools, like Autoconf. 3956host_makefile_frag=/dev/null 3957if test -d ${srcdir}/config ; then 3958case "${host}" in 3959 i[3456789]86-*-msdosdjgpp*) 3960 host_makefile_frag="config/mh-djgpp" 3961 ;; 3962 *-cygwin*) 3963 3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 3965$as_echo_n "checking to see if cat works as expected... " >&6; } 3966echo a >cygwin-cat-check 3967if test `cat cygwin-cat-check` = a ; then 3968 rm cygwin-cat-check 3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3970$as_echo "yes" >&6; } 3971else 3972 rm cygwin-cat-check 3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3974$as_echo "no" >&6; } 3975 as_fn_error $? "The cat command does not ignore carriage return characters. 3976 Please either mount the build directory in binary mode or run the following 3977 commands before running any configure script: 3978set -o igncr 3979export SHELLOPTS 3980 " "$LINENO" 5 3981fi 3982 3983 host_makefile_frag="config/mh-cygwin" 3984 ;; 3985 *-mingw*) 3986 host_makefile_frag="config/mh-mingw" 3987 ;; 3988 alpha*-linux*) 3989 host_makefile_frag="config/mh-alpha-linux" 3990 ;; 3991 hppa*-hp-hpux10*) 3992 host_makefile_frag="config/mh-pa-hpux10" 3993 ;; 3994 hppa*-hp-hpux*) 3995 host_makefile_frag="config/mh-pa" 3996 ;; 3997 hppa*-*) 3998 host_makefile_frag="config/mh-pa" 3999 ;; 4000 *-*-darwin*) 4001 host_makefile_frag="config/mh-darwin" 4002 ;; 4003 powerpc-*-aix*) 4004 host_makefile_frag="config/mh-ppc-aix" 4005 ;; 4006 rs6000-*-aix*) 4007 host_makefile_frag="config/mh-ppc-aix" 4008 ;; 4009esac 4010fi 4011 4012if test "${build}" != "${host}" ; then 4013 AR_FOR_BUILD=${AR_FOR_BUILD-ar} 4014 AS_FOR_BUILD=${AS_FOR_BUILD-as} 4015 CC_FOR_BUILD=${CC_FOR_BUILD-gcc} 4016 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} 4017 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} 4018 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} 4019 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} 4020 LD_FOR_BUILD=${LD_FOR_BUILD-ld} 4021 NM_FOR_BUILD=${NM_FOR_BUILD-nm} 4022 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} 4023 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} 4024 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} 4025else 4026 AR_FOR_BUILD="\$(AR)" 4027 AS_FOR_BUILD="\$(AS)" 4028 CC_FOR_BUILD="\$(CC)" 4029 CXX_FOR_BUILD="\$(CXX)" 4030 GFORTRAN_FOR_BUILD="\$(GFORTRAN)" 4031 GOC_FOR_BUILD="\$(GOC)" 4032 DLLTOOL_FOR_BUILD="\$(DLLTOOL)" 4033 LD_FOR_BUILD="\$(LD)" 4034 NM_FOR_BUILD="\$(NM)" 4035 RANLIB_FOR_BUILD="\$(RANLIB)" 4036 WINDRES_FOR_BUILD="\$(WINDRES)" 4037 WINDMC_FOR_BUILD="\$(WINDMC)" 4038fi 4039 4040ac_ext=c 4041ac_cpp='$CPP $CPPFLAGS' 4042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4044ac_compiler_gnu=$ac_cv_c_compiler_gnu 4045if test -n "$ac_tool_prefix"; then 4046 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4047set dummy ${ac_tool_prefix}gcc; ac_word=$2 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4049$as_echo_n "checking for $ac_word... " >&6; } 4050if ${ac_cv_prog_CC+:} false; then : 4051 $as_echo_n "(cached) " >&6 4052else 4053 if test -n "$CC"; then 4054 ac_cv_prog_CC="$CC" # Let the user override the test. 4055else 4056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4057for as_dir in $PATH 4058do 4059 IFS=$as_save_IFS 4060 test -z "$as_dir" && as_dir=. 4061 for ac_exec_ext in '' $ac_executable_extensions; do 4062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4063 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4065 break 2 4066 fi 4067done 4068 done 4069IFS=$as_save_IFS 4070 4071fi 4072fi 4073CC=$ac_cv_prog_CC 4074if test -n "$CC"; then 4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4076$as_echo "$CC" >&6; } 4077else 4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4079$as_echo "no" >&6; } 4080fi 4081 4082 4083fi 4084if test -z "$ac_cv_prog_CC"; then 4085 ac_ct_CC=$CC 4086 # Extract the first word of "gcc", so it can be a program name with args. 4087set dummy gcc; ac_word=$2 4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4089$as_echo_n "checking for $ac_word... " >&6; } 4090if ${ac_cv_prog_ac_ct_CC+:} false; then : 4091 $as_echo_n "(cached) " >&6 4092else 4093 if test -n "$ac_ct_CC"; then 4094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4095else 4096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4097for as_dir in $PATH 4098do 4099 IFS=$as_save_IFS 4100 test -z "$as_dir" && as_dir=. 4101 for ac_exec_ext in '' $ac_executable_extensions; do 4102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4103 ac_cv_prog_ac_ct_CC="gcc" 4104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4105 break 2 4106 fi 4107done 4108 done 4109IFS=$as_save_IFS 4110 4111fi 4112fi 4113ac_ct_CC=$ac_cv_prog_ac_ct_CC 4114if test -n "$ac_ct_CC"; then 4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4116$as_echo "$ac_ct_CC" >&6; } 4117else 4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4119$as_echo "no" >&6; } 4120fi 4121 4122 if test "x$ac_ct_CC" = x; then 4123 CC="" 4124 else 4125 case $cross_compiling:$ac_tool_warned in 4126yes:) 4127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4129ac_tool_warned=yes ;; 4130esac 4131 CC=$ac_ct_CC 4132 fi 4133else 4134 CC="$ac_cv_prog_CC" 4135fi 4136 4137if test -z "$CC"; then 4138 if test -n "$ac_tool_prefix"; then 4139 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4140set dummy ${ac_tool_prefix}cc; ac_word=$2 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4142$as_echo_n "checking for $ac_word... " >&6; } 4143if ${ac_cv_prog_CC+:} false; then : 4144 $as_echo_n "(cached) " >&6 4145else 4146 if test -n "$CC"; then 4147 ac_cv_prog_CC="$CC" # Let the user override the test. 4148else 4149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4150for as_dir in $PATH 4151do 4152 IFS=$as_save_IFS 4153 test -z "$as_dir" && as_dir=. 4154 for ac_exec_ext in '' $ac_executable_extensions; do 4155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4156 ac_cv_prog_CC="${ac_tool_prefix}cc" 4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4158 break 2 4159 fi 4160done 4161 done 4162IFS=$as_save_IFS 4163 4164fi 4165fi 4166CC=$ac_cv_prog_CC 4167if test -n "$CC"; then 4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4169$as_echo "$CC" >&6; } 4170else 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4172$as_echo "no" >&6; } 4173fi 4174 4175 4176 fi 4177fi 4178if test -z "$CC"; then 4179 # Extract the first word of "cc", so it can be a program name with args. 4180set dummy cc; ac_word=$2 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4182$as_echo_n "checking for $ac_word... " >&6; } 4183if ${ac_cv_prog_CC+:} false; then : 4184 $as_echo_n "(cached) " >&6 4185else 4186 if test -n "$CC"; then 4187 ac_cv_prog_CC="$CC" # Let the user override the test. 4188else 4189 ac_prog_rejected=no 4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4191for as_dir in $PATH 4192do 4193 IFS=$as_save_IFS 4194 test -z "$as_dir" && as_dir=. 4195 for ac_exec_ext in '' $ac_executable_extensions; do 4196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4197 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4198 ac_prog_rejected=yes 4199 continue 4200 fi 4201 ac_cv_prog_CC="cc" 4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4203 break 2 4204 fi 4205done 4206 done 4207IFS=$as_save_IFS 4208 4209if test $ac_prog_rejected = yes; then 4210 # We found a bogon in the path, so make sure we never use it. 4211 set dummy $ac_cv_prog_CC 4212 shift 4213 if test $# != 0; then 4214 # We chose a different compiler from the bogus one. 4215 # However, it has the same basename, so the bogon will be chosen 4216 # first if we set CC to just the basename; use the full file name. 4217 shift 4218 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4219 fi 4220fi 4221fi 4222fi 4223CC=$ac_cv_prog_CC 4224if test -n "$CC"; then 4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4226$as_echo "$CC" >&6; } 4227else 4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4229$as_echo "no" >&6; } 4230fi 4231 4232 4233fi 4234if test -z "$CC"; then 4235 if test -n "$ac_tool_prefix"; then 4236 for ac_prog in cl.exe 4237 do 4238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4239set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4241$as_echo_n "checking for $ac_word... " >&6; } 4242if ${ac_cv_prog_CC+:} false; then : 4243 $as_echo_n "(cached) " >&6 4244else 4245 if test -n "$CC"; then 4246 ac_cv_prog_CC="$CC" # Let the user override the test. 4247else 4248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4249for as_dir in $PATH 4250do 4251 IFS=$as_save_IFS 4252 test -z "$as_dir" && as_dir=. 4253 for ac_exec_ext in '' $ac_executable_extensions; do 4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4257 break 2 4258 fi 4259done 4260 done 4261IFS=$as_save_IFS 4262 4263fi 4264fi 4265CC=$ac_cv_prog_CC 4266if test -n "$CC"; then 4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4268$as_echo "$CC" >&6; } 4269else 4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4271$as_echo "no" >&6; } 4272fi 4273 4274 4275 test -n "$CC" && break 4276 done 4277fi 4278if test -z "$CC"; then 4279 ac_ct_CC=$CC 4280 for ac_prog in cl.exe 4281do 4282 # Extract the first word of "$ac_prog", so it can be a program name with args. 4283set dummy $ac_prog; ac_word=$2 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4285$as_echo_n "checking for $ac_word... " >&6; } 4286if ${ac_cv_prog_ac_ct_CC+:} false; then : 4287 $as_echo_n "(cached) " >&6 4288else 4289 if test -n "$ac_ct_CC"; then 4290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4291else 4292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4293for as_dir in $PATH 4294do 4295 IFS=$as_save_IFS 4296 test -z "$as_dir" && as_dir=. 4297 for ac_exec_ext in '' $ac_executable_extensions; do 4298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4299 ac_cv_prog_ac_ct_CC="$ac_prog" 4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4301 break 2 4302 fi 4303done 4304 done 4305IFS=$as_save_IFS 4306 4307fi 4308fi 4309ac_ct_CC=$ac_cv_prog_ac_ct_CC 4310if test -n "$ac_ct_CC"; then 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4312$as_echo "$ac_ct_CC" >&6; } 4313else 4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4315$as_echo "no" >&6; } 4316fi 4317 4318 4319 test -n "$ac_ct_CC" && break 4320done 4321 4322 if test "x$ac_ct_CC" = x; then 4323 CC="" 4324 else 4325 case $cross_compiling:$ac_tool_warned in 4326yes:) 4327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4329ac_tool_warned=yes ;; 4330esac 4331 CC=$ac_ct_CC 4332 fi 4333fi 4334 4335fi 4336 4337 4338test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4340as_fn_error $? "no acceptable C compiler found in \$PATH 4341See \`config.log' for more details" "$LINENO" 5; } 4342 4343# Provide some information about the compiler. 4344$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4345set X $ac_compile 4346ac_compiler=$2 4347for ac_option in --version -v -V -qversion; do 4348 { { ac_try="$ac_compiler $ac_option >&5" 4349case "(($ac_try" in 4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4351 *) ac_try_echo=$ac_try;; 4352esac 4353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4354$as_echo "$ac_try_echo"; } >&5 4355 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4356 ac_status=$? 4357 if test -s conftest.err; then 4358 sed '10a\ 4359... rest of stderr output deleted ... 4360 10q' conftest.err >conftest.er1 4361 cat conftest.er1 >&5 4362 fi 4363 rm -f conftest.er1 conftest.err 4364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4365 test $ac_status = 0; } 4366done 4367 4368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4369/* end confdefs.h. */ 4370 4371int 4372main () 4373{ 4374 4375 ; 4376 return 0; 4377} 4378_ACEOF 4379ac_clean_files_save=$ac_clean_files 4380ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4381# Try to create an executable without -o first, disregard a.out. 4382# It will help us diagnose broken compilers, and finding out an intuition 4383# of exeext. 4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4385$as_echo_n "checking whether the C compiler works... " >&6; } 4386ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4387 4388# The possible output files: 4389ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4390 4391ac_rmfiles= 4392for ac_file in $ac_files 4393do 4394 case $ac_file in 4395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4396 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4397 esac 4398done 4399rm -f $ac_rmfiles 4400 4401if { { ac_try="$ac_link_default" 4402case "(($ac_try" in 4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4404 *) ac_try_echo=$ac_try;; 4405esac 4406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4407$as_echo "$ac_try_echo"; } >&5 4408 (eval "$ac_link_default") 2>&5 4409 ac_status=$? 4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4411 test $ac_status = 0; }; then : 4412 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4413# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4414# in a Makefile. We should not override ac_cv_exeext if it was cached, 4415# so that the user can short-circuit this test for compilers unknown to 4416# Autoconf. 4417for ac_file in $ac_files '' 4418do 4419 test -f "$ac_file" || continue 4420 case $ac_file in 4421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4422 ;; 4423 [ab].out ) 4424 # We found the default executable, but exeext='' is most 4425 # certainly right. 4426 break;; 4427 *.* ) 4428 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4429 then :; else 4430 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4431 fi 4432 # We set ac_cv_exeext here because the later test for it is not 4433 # safe: cross compilers may not add the suffix if given an `-o' 4434 # argument, so we may need to know it at that point already. 4435 # Even if this section looks crufty: it has the advantage of 4436 # actually working. 4437 break;; 4438 * ) 4439 break;; 4440 esac 4441done 4442test "$ac_cv_exeext" = no && ac_cv_exeext= 4443 4444else 4445 ac_file='' 4446fi 4447if test -z "$ac_file"; then : 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4449$as_echo "no" >&6; } 4450$as_echo "$as_me: failed program was:" >&5 4451sed 's/^/| /' conftest.$ac_ext >&5 4452 4453{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4455as_fn_error 77 "C compiler cannot create executables 4456See \`config.log' for more details" "$LINENO" 5; } 4457else 4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4459$as_echo "yes" >&6; } 4460fi 4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4462$as_echo_n "checking for C compiler default output file name... " >&6; } 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4464$as_echo "$ac_file" >&6; } 4465ac_exeext=$ac_cv_exeext 4466 4467rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4468ac_clean_files=$ac_clean_files_save 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4470$as_echo_n "checking for suffix of executables... " >&6; } 4471if { { ac_try="$ac_link" 4472case "(($ac_try" in 4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4474 *) ac_try_echo=$ac_try;; 4475esac 4476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4477$as_echo "$ac_try_echo"; } >&5 4478 (eval "$ac_link") 2>&5 4479 ac_status=$? 4480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4481 test $ac_status = 0; }; then : 4482 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4483# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4484# work properly (i.e., refer to `conftest.exe'), while it won't with 4485# `rm'. 4486for ac_file in conftest.exe conftest conftest.*; do 4487 test -f "$ac_file" || continue 4488 case $ac_file in 4489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4491 break;; 4492 * ) break;; 4493 esac 4494done 4495else 4496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4498as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4499See \`config.log' for more details" "$LINENO" 5; } 4500fi 4501rm -f conftest conftest$ac_cv_exeext 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4503$as_echo "$ac_cv_exeext" >&6; } 4504 4505rm -f conftest.$ac_ext 4506EXEEXT=$ac_cv_exeext 4507ac_exeext=$EXEEXT 4508cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4509/* end confdefs.h. */ 4510#include <stdio.h> 4511int 4512main () 4513{ 4514FILE *f = fopen ("conftest.out", "w"); 4515 return ferror (f) || fclose (f) != 0; 4516 4517 ; 4518 return 0; 4519} 4520_ACEOF 4521ac_clean_files="$ac_clean_files conftest.out" 4522# Check that the compiler produces executables we can run. If not, either 4523# the compiler is broken, or we cross compile. 4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4525$as_echo_n "checking whether we are cross compiling... " >&6; } 4526if test "$cross_compiling" != yes; then 4527 { { ac_try="$ac_link" 4528case "(($ac_try" in 4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4530 *) ac_try_echo=$ac_try;; 4531esac 4532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4533$as_echo "$ac_try_echo"; } >&5 4534 (eval "$ac_link") 2>&5 4535 ac_status=$? 4536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4537 test $ac_status = 0; } 4538 if { ac_try='./conftest$ac_cv_exeext' 4539 { { case "(($ac_try" in 4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4541 *) ac_try_echo=$ac_try;; 4542esac 4543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4544$as_echo "$ac_try_echo"; } >&5 4545 (eval "$ac_try") 2>&5 4546 ac_status=$? 4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4548 test $ac_status = 0; }; }; then 4549 cross_compiling=no 4550 else 4551 if test "$cross_compiling" = maybe; then 4552 cross_compiling=yes 4553 else 4554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4556as_fn_error $? "cannot run C compiled programs. 4557If you meant to cross compile, use \`--host'. 4558See \`config.log' for more details" "$LINENO" 5; } 4559 fi 4560 fi 4561fi 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4563$as_echo "$cross_compiling" >&6; } 4564 4565rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4566ac_clean_files=$ac_clean_files_save 4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4568$as_echo_n "checking for suffix of object files... " >&6; } 4569if ${ac_cv_objext+:} false; then : 4570 $as_echo_n "(cached) " >&6 4571else 4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4573/* end confdefs.h. */ 4574 4575int 4576main () 4577{ 4578 4579 ; 4580 return 0; 4581} 4582_ACEOF 4583rm -f conftest.o conftest.obj 4584if { { ac_try="$ac_compile" 4585case "(($ac_try" in 4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4587 *) ac_try_echo=$ac_try;; 4588esac 4589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4590$as_echo "$ac_try_echo"; } >&5 4591 (eval "$ac_compile") 2>&5 4592 ac_status=$? 4593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4594 test $ac_status = 0; }; then : 4595 for ac_file in conftest.o conftest.obj conftest.*; do 4596 test -f "$ac_file" || continue; 4597 case $ac_file in 4598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4600 break;; 4601 esac 4602done 4603else 4604 $as_echo "$as_me: failed program was:" >&5 4605sed 's/^/| /' conftest.$ac_ext >&5 4606 4607{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4609as_fn_error $? "cannot compute suffix of object files: cannot compile 4610See \`config.log' for more details" "$LINENO" 5; } 4611fi 4612rm -f conftest.$ac_cv_objext conftest.$ac_ext 4613fi 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4615$as_echo "$ac_cv_objext" >&6; } 4616OBJEXT=$ac_cv_objext 4617ac_objext=$OBJEXT 4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4619$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4620if ${ac_cv_c_compiler_gnu+:} false; then : 4621 $as_echo_n "(cached) " >&6 4622else 4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4624/* end confdefs.h. */ 4625 4626int 4627main () 4628{ 4629#ifndef __GNUC__ 4630 choke me 4631#endif 4632 4633 ; 4634 return 0; 4635} 4636_ACEOF 4637if ac_fn_c_try_compile "$LINENO"; then : 4638 ac_compiler_gnu=yes 4639else 4640 ac_compiler_gnu=no 4641fi 4642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4643ac_cv_c_compiler_gnu=$ac_compiler_gnu 4644 4645fi 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4647$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4648if test $ac_compiler_gnu = yes; then 4649 GCC=yes 4650else 4651 GCC= 4652fi 4653ac_test_CFLAGS=${CFLAGS+set} 4654ac_save_CFLAGS=$CFLAGS 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4656$as_echo_n "checking whether $CC accepts -g... " >&6; } 4657if ${ac_cv_prog_cc_g+:} false; then : 4658 $as_echo_n "(cached) " >&6 4659else 4660 ac_save_c_werror_flag=$ac_c_werror_flag 4661 ac_c_werror_flag=yes 4662 ac_cv_prog_cc_g=no 4663 CFLAGS="-g" 4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4665/* end confdefs.h. */ 4666 4667int 4668main () 4669{ 4670 4671 ; 4672 return 0; 4673} 4674_ACEOF 4675if ac_fn_c_try_compile "$LINENO"; then : 4676 ac_cv_prog_cc_g=yes 4677else 4678 CFLAGS="" 4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4680/* end confdefs.h. */ 4681 4682int 4683main () 4684{ 4685 4686 ; 4687 return 0; 4688} 4689_ACEOF 4690if ac_fn_c_try_compile "$LINENO"; then : 4691 4692else 4693 ac_c_werror_flag=$ac_save_c_werror_flag 4694 CFLAGS="-g" 4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4696/* end confdefs.h. */ 4697 4698int 4699main () 4700{ 4701 4702 ; 4703 return 0; 4704} 4705_ACEOF 4706if ac_fn_c_try_compile "$LINENO"; then : 4707 ac_cv_prog_cc_g=yes 4708fi 4709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4710fi 4711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4712fi 4713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4714 ac_c_werror_flag=$ac_save_c_werror_flag 4715fi 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4717$as_echo "$ac_cv_prog_cc_g" >&6; } 4718if test "$ac_test_CFLAGS" = set; then 4719 CFLAGS=$ac_save_CFLAGS 4720elif test $ac_cv_prog_cc_g = yes; then 4721 if test "$GCC" = yes; then 4722 CFLAGS="-g -O2" 4723 else 4724 CFLAGS="-g" 4725 fi 4726else 4727 if test "$GCC" = yes; then 4728 CFLAGS="-O2" 4729 else 4730 CFLAGS= 4731 fi 4732fi 4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4734$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4735if ${ac_cv_prog_cc_c89+:} false; then : 4736 $as_echo_n "(cached) " >&6 4737else 4738 ac_cv_prog_cc_c89=no 4739ac_save_CC=$CC 4740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4741/* end confdefs.h. */ 4742#include <stdarg.h> 4743#include <stdio.h> 4744struct stat; 4745/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4746struct buf { int x; }; 4747FILE * (*rcsopen) (struct buf *, struct stat *, int); 4748static char *e (p, i) 4749 char **p; 4750 int i; 4751{ 4752 return p[i]; 4753} 4754static char *f (char * (*g) (char **, int), char **p, ...) 4755{ 4756 char *s; 4757 va_list v; 4758 va_start (v,p); 4759 s = g (p, va_arg (v,int)); 4760 va_end (v); 4761 return s; 4762} 4763 4764/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4765 function prototypes and stuff, but not '\xHH' hex character constants. 4766 These don't provoke an error unfortunately, instead are silently treated 4767 as 'x'. The following induces an error, until -std is added to get 4768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4769 array size at least. It's necessary to write '\x00'==0 to get something 4770 that's true only with -std. */ 4771int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4772 4773/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4774 inside strings and character constants. */ 4775#define FOO(x) 'x' 4776int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4777 4778int test (int i, double x); 4779struct s1 {int (*f) (int a);}; 4780struct s2 {int (*f) (double a);}; 4781int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4782int argc; 4783char **argv; 4784int 4785main () 4786{ 4787return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4788 ; 4789 return 0; 4790} 4791_ACEOF 4792for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4794do 4795 CC="$ac_save_CC $ac_arg" 4796 if ac_fn_c_try_compile "$LINENO"; then : 4797 ac_cv_prog_cc_c89=$ac_arg 4798fi 4799rm -f core conftest.err conftest.$ac_objext 4800 test "x$ac_cv_prog_cc_c89" != "xno" && break 4801done 4802rm -f conftest.$ac_ext 4803CC=$ac_save_CC 4804 4805fi 4806# AC_CACHE_VAL 4807case "x$ac_cv_prog_cc_c89" in 4808 x) 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4810$as_echo "none needed" >&6; } ;; 4811 xno) 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4813$as_echo "unsupported" >&6; } ;; 4814 *) 4815 CC="$CC $ac_cv_prog_cc_c89" 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4817$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4818esac 4819if test "x$ac_cv_prog_cc_c89" != xno; then : 4820 4821fi 4822 4823ac_ext=c 4824ac_cpp='$CPP $CPPFLAGS' 4825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4827ac_compiler_gnu=$ac_cv_c_compiler_gnu 4828 4829ac_ext=cpp 4830ac_cpp='$CXXCPP $CPPFLAGS' 4831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4834if test -z "$CXX"; then 4835 if test -n "$CCC"; then 4836 CXX=$CCC 4837 else 4838 if test -n "$ac_tool_prefix"; then 4839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4840 do 4841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4842set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4844$as_echo_n "checking for $ac_word... " >&6; } 4845if ${ac_cv_prog_CXX+:} false; then : 4846 $as_echo_n "(cached) " >&6 4847else 4848 if test -n "$CXX"; then 4849 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4850else 4851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4852for as_dir in $PATH 4853do 4854 IFS=$as_save_IFS 4855 test -z "$as_dir" && as_dir=. 4856 for ac_exec_ext in '' $ac_executable_extensions; do 4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4858 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4860 break 2 4861 fi 4862done 4863 done 4864IFS=$as_save_IFS 4865 4866fi 4867fi 4868CXX=$ac_cv_prog_CXX 4869if test -n "$CXX"; then 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4871$as_echo "$CXX" >&6; } 4872else 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4874$as_echo "no" >&6; } 4875fi 4876 4877 4878 test -n "$CXX" && break 4879 done 4880fi 4881if test -z "$CXX"; then 4882 ac_ct_CXX=$CXX 4883 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4884do 4885 # Extract the first word of "$ac_prog", so it can be a program name with args. 4886set dummy $ac_prog; ac_word=$2 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4888$as_echo_n "checking for $ac_word... " >&6; } 4889if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4890 $as_echo_n "(cached) " >&6 4891else 4892 if test -n "$ac_ct_CXX"; then 4893 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4894else 4895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4896for as_dir in $PATH 4897do 4898 IFS=$as_save_IFS 4899 test -z "$as_dir" && as_dir=. 4900 for ac_exec_ext in '' $ac_executable_extensions; do 4901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4902 ac_cv_prog_ac_ct_CXX="$ac_prog" 4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4904 break 2 4905 fi 4906done 4907 done 4908IFS=$as_save_IFS 4909 4910fi 4911fi 4912ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4913if test -n "$ac_ct_CXX"; then 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4915$as_echo "$ac_ct_CXX" >&6; } 4916else 4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4918$as_echo "no" >&6; } 4919fi 4920 4921 4922 test -n "$ac_ct_CXX" && break 4923done 4924 4925 if test "x$ac_ct_CXX" = x; then 4926 CXX="g++" 4927 else 4928 case $cross_compiling:$ac_tool_warned in 4929yes:) 4930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4932ac_tool_warned=yes ;; 4933esac 4934 CXX=$ac_ct_CXX 4935 fi 4936fi 4937 4938 fi 4939fi 4940# Provide some information about the compiler. 4941$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4942set X $ac_compile 4943ac_compiler=$2 4944for ac_option in --version -v -V -qversion; do 4945 { { ac_try="$ac_compiler $ac_option >&5" 4946case "(($ac_try" in 4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4948 *) ac_try_echo=$ac_try;; 4949esac 4950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4951$as_echo "$ac_try_echo"; } >&5 4952 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4953 ac_status=$? 4954 if test -s conftest.err; then 4955 sed '10a\ 4956... rest of stderr output deleted ... 4957 10q' conftest.err >conftest.er1 4958 cat conftest.er1 >&5 4959 fi 4960 rm -f conftest.er1 conftest.err 4961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4962 test $ac_status = 0; } 4963done 4964 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4966$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4967if ${ac_cv_cxx_compiler_gnu+:} false; then : 4968 $as_echo_n "(cached) " >&6 4969else 4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4971/* end confdefs.h. */ 4972 4973int 4974main () 4975{ 4976#ifndef __GNUC__ 4977 choke me 4978#endif 4979 4980 ; 4981 return 0; 4982} 4983_ACEOF 4984if ac_fn_cxx_try_compile "$LINENO"; then : 4985 ac_compiler_gnu=yes 4986else 4987 ac_compiler_gnu=no 4988fi 4989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4990ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4991 4992fi 4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4994$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4995if test $ac_compiler_gnu = yes; then 4996 GXX=yes 4997else 4998 GXX= 4999fi 5000ac_test_CXXFLAGS=${CXXFLAGS+set} 5001ac_save_CXXFLAGS=$CXXFLAGS 5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5003$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5004if ${ac_cv_prog_cxx_g+:} false; then : 5005 $as_echo_n "(cached) " >&6 5006else 5007 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5008 ac_cxx_werror_flag=yes 5009 ac_cv_prog_cxx_g=no 5010 CXXFLAGS="-g" 5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5012/* end confdefs.h. */ 5013 5014int 5015main () 5016{ 5017 5018 ; 5019 return 0; 5020} 5021_ACEOF 5022if ac_fn_cxx_try_compile "$LINENO"; then : 5023 ac_cv_prog_cxx_g=yes 5024else 5025 CXXFLAGS="" 5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5027/* end confdefs.h. */ 5028 5029int 5030main () 5031{ 5032 5033 ; 5034 return 0; 5035} 5036_ACEOF 5037if ac_fn_cxx_try_compile "$LINENO"; then : 5038 5039else 5040 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5041 CXXFLAGS="-g" 5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5043/* end confdefs.h. */ 5044 5045int 5046main () 5047{ 5048 5049 ; 5050 return 0; 5051} 5052_ACEOF 5053if ac_fn_cxx_try_compile "$LINENO"; then : 5054 ac_cv_prog_cxx_g=yes 5055fi 5056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5057fi 5058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5059fi 5060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5061 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5062fi 5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5064$as_echo "$ac_cv_prog_cxx_g" >&6; } 5065if test "$ac_test_CXXFLAGS" = set; then 5066 CXXFLAGS=$ac_save_CXXFLAGS 5067elif test $ac_cv_prog_cxx_g = yes; then 5068 if test "$GXX" = yes; then 5069 CXXFLAGS="-g -O2" 5070 else 5071 CXXFLAGS="-g" 5072 fi 5073else 5074 if test "$GXX" = yes; then 5075 CXXFLAGS="-O2" 5076 else 5077 CXXFLAGS= 5078 fi 5079fi 5080ac_ext=c 5081ac_cpp='$CPP $CPPFLAGS' 5082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5084ac_compiler_gnu=$ac_cv_c_compiler_gnu 5085 5086 5087# We must set the default linker to the linker used by gcc for the correct 5088# operation of libtool. If LD is not defined and we are using gcc, try to 5089# set the LD default to the ld used by gcc. 5090if test -z "$LD"; then 5091 if test "$GCC" = yes; then 5092 case $build in 5093 *-*-mingw*) 5094 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; 5095 *) 5096 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; 5097 esac 5098 case $gcc_prog_ld in 5099 # Accept absolute paths. 5100 [\\/]* | [A-Za-z]:[\\/]*) 5101 LD="$gcc_prog_ld" ;; 5102 esac 5103 fi 5104fi 5105 5106# Check whether -static-libstdc++ -static-libgcc is supported. 5107have_static_libs=no 5108if test "$GCC" = yes; then 5109 saved_LDFLAGS="$LDFLAGS" 5110 5111 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 5113$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } 5114 ac_ext=cpp 5115ac_cpp='$CXXCPP $CPPFLAGS' 5116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5119 5120 5121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5122/* end confdefs.h. */ 5123 5124#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) 5125#error -static-libstdc++ not implemented 5126#endif 5127int main() {} 5128_ACEOF 5129if ac_fn_cxx_try_link "$LINENO"; then : 5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5131$as_echo "yes" >&6; }; have_static_libs=yes 5132else 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5134$as_echo "no" >&6; } 5135fi 5136rm -f core conftest.err conftest.$ac_objext \ 5137 conftest$ac_exeext conftest.$ac_ext 5138 ac_ext=c 5139ac_cpp='$CPP $CPPFLAGS' 5140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5142ac_compiler_gnu=$ac_cv_c_compiler_gnu 5143 5144 5145 LDFLAGS="$saved_LDFLAGS" 5146fi 5147 5148 5149 5150 5151if test -n "$ac_tool_prefix"; then 5152 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. 5153set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5155$as_echo_n "checking for $ac_word... " >&6; } 5156if ${ac_cv_prog_GNATBIND+:} false; then : 5157 $as_echo_n "(cached) " >&6 5158else 5159 if test -n "$GNATBIND"; then 5160 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. 5161else 5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5163for as_dir in $PATH 5164do 5165 IFS=$as_save_IFS 5166 test -z "$as_dir" && as_dir=. 5167 for ac_exec_ext in '' $ac_executable_extensions; do 5168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5169 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" 5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5171 break 2 5172 fi 5173done 5174 done 5175IFS=$as_save_IFS 5176 5177fi 5178fi 5179GNATBIND=$ac_cv_prog_GNATBIND 5180if test -n "$GNATBIND"; then 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 5182$as_echo "$GNATBIND" >&6; } 5183else 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5185$as_echo "no" >&6; } 5186fi 5187 5188 5189fi 5190if test -z "$ac_cv_prog_GNATBIND"; then 5191 ac_ct_GNATBIND=$GNATBIND 5192 # Extract the first word of "gnatbind", so it can be a program name with args. 5193set dummy gnatbind; ac_word=$2 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5195$as_echo_n "checking for $ac_word... " >&6; } 5196if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : 5197 $as_echo_n "(cached) " >&6 5198else 5199 if test -n "$ac_ct_GNATBIND"; then 5200 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. 5201else 5202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5203for as_dir in $PATH 5204do 5205 IFS=$as_save_IFS 5206 test -z "$as_dir" && as_dir=. 5207 for ac_exec_ext in '' $ac_executable_extensions; do 5208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5209 ac_cv_prog_ac_ct_GNATBIND="gnatbind" 5210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5211 break 2 5212 fi 5213done 5214 done 5215IFS=$as_save_IFS 5216 5217fi 5218fi 5219ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND 5220if test -n "$ac_ct_GNATBIND"; then 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 5222$as_echo "$ac_ct_GNATBIND" >&6; } 5223else 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5225$as_echo "no" >&6; } 5226fi 5227 5228 if test "x$ac_ct_GNATBIND" = x; then 5229 GNATBIND="no" 5230 else 5231 case $cross_compiling:$ac_tool_warned in 5232yes:) 5233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5235ac_tool_warned=yes ;; 5236esac 5237 GNATBIND=$ac_ct_GNATBIND 5238 fi 5239else 5240 GNATBIND="$ac_cv_prog_GNATBIND" 5241fi 5242 5243if test -n "$ac_tool_prefix"; then 5244 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. 5245set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5247$as_echo_n "checking for $ac_word... " >&6; } 5248if ${ac_cv_prog_GNATMAKE+:} false; then : 5249 $as_echo_n "(cached) " >&6 5250else 5251 if test -n "$GNATMAKE"; then 5252 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. 5253else 5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5255for as_dir in $PATH 5256do 5257 IFS=$as_save_IFS 5258 test -z "$as_dir" && as_dir=. 5259 for ac_exec_ext in '' $ac_executable_extensions; do 5260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5261 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" 5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5263 break 2 5264 fi 5265done 5266 done 5267IFS=$as_save_IFS 5268 5269fi 5270fi 5271GNATMAKE=$ac_cv_prog_GNATMAKE 5272if test -n "$GNATMAKE"; then 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 5274$as_echo "$GNATMAKE" >&6; } 5275else 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5277$as_echo "no" >&6; } 5278fi 5279 5280 5281fi 5282if test -z "$ac_cv_prog_GNATMAKE"; then 5283 ac_ct_GNATMAKE=$GNATMAKE 5284 # Extract the first word of "gnatmake", so it can be a program name with args. 5285set dummy gnatmake; ac_word=$2 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5287$as_echo_n "checking for $ac_word... " >&6; } 5288if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : 5289 $as_echo_n "(cached) " >&6 5290else 5291 if test -n "$ac_ct_GNATMAKE"; then 5292 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. 5293else 5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295for as_dir in $PATH 5296do 5297 IFS=$as_save_IFS 5298 test -z "$as_dir" && as_dir=. 5299 for ac_exec_ext in '' $ac_executable_extensions; do 5300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5301 ac_cv_prog_ac_ct_GNATMAKE="gnatmake" 5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5303 break 2 5304 fi 5305done 5306 done 5307IFS=$as_save_IFS 5308 5309fi 5310fi 5311ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE 5312if test -n "$ac_ct_GNATMAKE"; then 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 5314$as_echo "$ac_ct_GNATMAKE" >&6; } 5315else 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5317$as_echo "no" >&6; } 5318fi 5319 5320 if test "x$ac_ct_GNATMAKE" = x; then 5321 GNATMAKE="no" 5322 else 5323 case $cross_compiling:$ac_tool_warned in 5324yes:) 5325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5327ac_tool_warned=yes ;; 5328esac 5329 GNATMAKE=$ac_ct_GNATMAKE 5330 fi 5331else 5332 GNATMAKE="$ac_cv_prog_GNATMAKE" 5333fi 5334 5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 5336$as_echo_n "checking whether compiler driver understands Ada... " >&6; } 5337if ${acx_cv_cc_gcc_supports_ada+:} false; then : 5338 $as_echo_n "(cached) " >&6 5339else 5340 cat >conftest.adb <<EOF 5341procedure conftest is begin null; end conftest; 5342EOF 5343acx_cv_cc_gcc_supports_ada=no 5344# There is a bug in old released versions of GCC which causes the 5345# driver to exit successfully when the appropriate language module 5346# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. 5347# Therefore we must check for the error message as well as an 5348# unsuccessful exit. 5349# Other compilers, like HP Tru64 UNIX cc, exit successfully when 5350# given a .adb file, but produce no object file. So we must check 5351# if an object file was really produced to guard against this. 5352errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` 5353if test x"$errors" = x && test -f conftest.$ac_objext; then 5354 acx_cv_cc_gcc_supports_ada=yes 5355fi 5356rm -f conftest.* 5357fi 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 5359$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } 5360 5361if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then 5362 have_gnat=yes 5363else 5364 have_gnat=no 5365fi 5366 5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 5368$as_echo_n "checking how to compare bootstrapped objects... " >&6; } 5369if ${gcc_cv_prog_cmp_skip+:} false; then : 5370 $as_echo_n "(cached) " >&6 5371else 5372 echo abfoo >t1 5373 echo cdfoo >t2 5374 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' 5375 if cmp t1 t2 2 2 > /dev/null 2>&1; then 5376 if cmp t1 t2 1 1 > /dev/null 2>&1; then 5377 : 5378 else 5379 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' 5380 fi 5381 fi 5382 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then 5383 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then 5384 : 5385 else 5386 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' 5387 fi 5388 fi 5389 rm t1 t2 5390 5391fi 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 5393$as_echo "$gcc_cv_prog_cmp_skip" >&6; } 5394do_compare="$gcc_cv_prog_cmp_skip" 5395 5396 5397 5398# Check whether --enable-bootstrap was given. 5399if test "${enable_bootstrap+set}" = set; then : 5400 enableval=$enable_bootstrap; 5401else 5402 enable_bootstrap=default 5403fi 5404 5405 5406# Issue errors and warnings for invalid/strange bootstrap combinations. 5407if test -r $srcdir/gcc/configure; then 5408 have_compiler=yes 5409else 5410 have_compiler=no 5411fi 5412 5413case "$have_compiler:$host:$target:$enable_bootstrap" in 5414 *:*:*:no) ;; 5415 5416 # Default behavior. Enable bootstrap if we have a compiler 5417 # and we are in a native configuration. 5418 yes:$build:$build:default) 5419 enable_bootstrap=yes ;; 5420 5421 *:*:*:default) 5422 enable_bootstrap=no ;; 5423 5424 # We have a compiler and we are in a native configuration, bootstrap is ok 5425 yes:$build:$build:yes) 5426 ;; 5427 5428 # Other configurations, but we have a compiler. Assume the user knows 5429 # what he's doing. 5430 yes:*:*:yes) 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 5432$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} 5433 ;; 5434 5435 # No compiler: if they passed --enable-bootstrap explicitly, fail 5436 no:*:*:yes) 5437 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; 5438 5439 # Fail if wrong command line 5440 *) 5441 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 5442 ;; 5443esac 5444 5445# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a 5446# C++98 compiler can still start the bootstrap. 5447if test "$enable_bootstrap:$GXX" = "yes:yes"; then 5448 CXX="$CXX -std=gnu++98" 5449fi 5450 5451# Used for setting $lt_cv_objdir 5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 5453$as_echo_n "checking for objdir... " >&6; } 5454if ${lt_cv_objdir+:} false; then : 5455 $as_echo_n "(cached) " >&6 5456else 5457 rm -f .libs 2>/dev/null 5458mkdir .libs 2>/dev/null 5459if test -d .libs; then 5460 lt_cv_objdir=.libs 5461else 5462 # MS-DOS does not allow filenames that begin with a dot. 5463 lt_cv_objdir=_libs 5464fi 5465rmdir .libs 2>/dev/null 5466fi 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 5468$as_echo "$lt_cv_objdir" >&6; } 5469objdir=$lt_cv_objdir 5470 5471 5472 5473 5474 5475cat >>confdefs.h <<_ACEOF 5476#define LT_OBJDIR "$lt_cv_objdir/" 5477_ACEOF 5478 5479 5480 5481# Check for GMP, MPFR and MPC 5482gmplibs="-lmpc -lmpfr -lgmp" 5483gmpinc= 5484have_gmp=no 5485 5486# Check for debuginfod 5487 5488 5489# Enable debuginfod 5490 5491# Check whether --with-debuginfod was given. 5492if test "${with_debuginfod+set}" = set; then : 5493 withval=$with_debuginfod; 5494else 5495 with_debuginfod=auto 5496fi 5497 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5 5499$as_echo_n "checking whether to use debuginfod... " >&6; } 5500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5 5501$as_echo "$with_debuginfod" >&6; } 5502 5503if test "${with_debuginfod}" = no; then 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5 5505$as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;} 5506else 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debuginfod_begin in -ldebuginfod" >&5 5508$as_echo_n "checking for debuginfod_begin in -ldebuginfod... " >&6; } 5509if ${ac_cv_lib_debuginfod_debuginfod_begin+:} false; then : 5510 $as_echo_n "(cached) " >&6 5511else 5512 ac_check_lib_save_LIBS=$LIBS 5513LIBS="-ldebuginfod $LIBS" 5514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5515/* end confdefs.h. */ 5516 5517/* Override any GCC internal prototype to avoid an error. 5518 Use char because int might match the return type of a GCC 5519 builtin and then its argument prototype would still apply. */ 5520#ifdef __cplusplus 5521extern "C" 5522#endif 5523char debuginfod_begin (); 5524int 5525main () 5526{ 5527return debuginfod_begin (); 5528 ; 5529 return 0; 5530} 5531_ACEOF 5532if ac_fn_c_try_link "$LINENO"; then : 5533 ac_cv_lib_debuginfod_debuginfod_begin=yes 5534else 5535 ac_cv_lib_debuginfod_debuginfod_begin=no 5536fi 5537rm -f core conftest.err conftest.$ac_objext \ 5538 conftest$ac_exeext conftest.$ac_ext 5539LIBS=$ac_check_lib_save_LIBS 5540fi 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_debuginfod_debuginfod_begin" >&5 5542$as_echo "$ac_cv_lib_debuginfod_debuginfod_begin" >&6; } 5543if test "x$ac_cv_lib_debuginfod_debuginfod_begin" = xyes; then : 5544 have_debuginfod_lib=yes 5545fi 5546 5547 ac_fn_c_check_decl "$LINENO" "debuginfod_begin" "ac_cv_have_decl_debuginfod_begin" "#include <elfutils/debuginfod.h> 5548" 5549if test "x$ac_cv_have_decl_debuginfod_begin" = xyes; then : 5550 have_debuginfod_h=yes 5551fi 5552 5553 if test "x$have_debuginfod_lib" = "xyes" -a \ 5554 "x$have_debuginfod_h" = "xyes"; then 5555 5556$as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h 5557 5558 LIBDEBUGINFOD="-ldebuginfod" 5559 5560 else 5561 5562 if test "$with_debuginfod" = yes; then 5563 as_fn_error $? "debuginfod is missing or unusable" "$LINENO" 5 5564 else 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod is missing or unusable; some features may be unavailable." >&5 5566$as_echo "$as_me: WARNING: debuginfod is missing or unusable; some features may be unavailable." >&2;} 5567 fi 5568 fi 5569fi 5570 5571 5572# Specify a location for mpc 5573# check for this first so it ends up on the link line before mpfr. 5574 5575# Check whether --with-mpc was given. 5576if test "${with_mpc+set}" = set; then : 5577 withval=$with_mpc; 5578fi 5579 5580 5581# Check whether --with-mpc-include was given. 5582if test "${with_mpc_include+set}" = set; then : 5583 withval=$with_mpc_include; 5584fi 5585 5586 5587# Check whether --with-mpc-lib was given. 5588if test "${with_mpc_lib+set}" = set; then : 5589 withval=$with_mpc_lib; 5590fi 5591 5592 5593if test "x$with_mpc" != x; then 5594 gmplibs="-L$with_mpc/lib $gmplibs" 5595 gmpinc="-I$with_mpc/include $gmpinc" 5596fi 5597if test "x$with_mpc_include" != x; then 5598 gmpinc="-I$with_mpc_include $gmpinc" 5599fi 5600if test "x$with_mpc_lib" != x; then 5601 gmplibs="-L$with_mpc_lib $gmplibs" 5602fi 5603if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then 5604 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" 5605 gmpinc='-I$$s/mpc/src '"$gmpinc" 5606 # Do not test the mpc version. Assume that it is sufficient, since 5607 # it is in the source tree, and the library has not been built yet 5608 # but it would be included on the link line in the version check below 5609 # hence making the test fail. 5610 have_gmp=yes 5611fi 5612 5613# Specify a location for mpfr 5614# check for this first so it ends up on the link line before gmp. 5615 5616# Check whether --with-mpfr-dir was given. 5617if test "${with_mpfr_dir+set}" = set; then : 5618 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. 5619Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 5620fi 5621 5622 5623 5624# Check whether --with-mpfr was given. 5625if test "${with_mpfr+set}" = set; then : 5626 withval=$with_mpfr; 5627fi 5628 5629 5630# Check whether --with-mpfr-include was given. 5631if test "${with_mpfr_include+set}" = set; then : 5632 withval=$with_mpfr_include; 5633fi 5634 5635 5636# Check whether --with-mpfr-lib was given. 5637if test "${with_mpfr_lib+set}" = set; then : 5638 withval=$with_mpfr_lib; 5639fi 5640 5641 5642if test "x$with_mpfr" != x; then 5643 gmplibs="-L$with_mpfr/lib $gmplibs" 5644 gmpinc="-I$with_mpfr/include $gmpinc" 5645fi 5646if test "x$with_mpfr_include" != x; then 5647 gmpinc="-I$with_mpfr_include $gmpinc" 5648fi 5649if test "x$with_mpfr_lib" != x; then 5650 gmplibs="-L$with_mpfr_lib $gmplibs" 5651fi 5652if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then 5653 # MPFR v3.1.0 moved the sources into a src sub-directory. 5654 if ! test -d ${srcdir}/mpfr/src; then 5655 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 5656 fi 5657 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" 5658 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" 5659 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" 5660 # Do not test the mpfr version. Assume that it is sufficient, since 5661 # it is in the source tree, and the library has not been built yet 5662 # but it would be included on the link line in the version check below 5663 # hence making the test fail. 5664 have_gmp=yes 5665fi 5666 5667# Specify a location for gmp 5668 5669# Check whether --with-gmp-dir was given. 5670if test "${with_gmp_dir+set}" = set; then : 5671 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. 5672Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 5673fi 5674 5675 5676 5677# Check whether --with-gmp was given. 5678if test "${with_gmp+set}" = set; then : 5679 withval=$with_gmp; 5680fi 5681 5682 5683# Check whether --with-gmp-include was given. 5684if test "${with_gmp_include+set}" = set; then : 5685 withval=$with_gmp_include; 5686fi 5687 5688 5689# Check whether --with-gmp-lib was given. 5690if test "${with_gmp_lib+set}" = set; then : 5691 withval=$with_gmp_lib; 5692fi 5693 5694 5695 5696if test "x$with_gmp" != x; then 5697 gmplibs="-L$with_gmp/lib $gmplibs" 5698 gmpinc="-I$with_gmp/include $gmpinc" 5699fi 5700if test "x$with_gmp_include" != x; then 5701 gmpinc="-I$with_gmp_include $gmpinc" 5702fi 5703if test "x$with_gmp_lib" != x; then 5704 gmplibs="-L$with_gmp_lib $gmplibs" 5705fi 5706if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then 5707 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" 5708 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" 5709 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" 5710 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" 5711 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' 5712 # Do not test the gmp version. Assume that it is sufficient, since 5713 # it is in the source tree, and the library has not been built yet 5714 # but it would be included on the link line in the version check below 5715 # hence making the test fail. 5716 have_gmp=yes 5717fi 5718 5719if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then 5720 have_gmp=yes 5721 saved_CFLAGS="$CFLAGS" 5722 CFLAGS="$CFLAGS $gmpinc" 5723 # Check for the recommended and required versions of GMP. 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 5725$as_echo_n "checking for the correct version of gmp.h... " >&6; } 5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5727/* end confdefs.h. */ 5728#include "gmp.h" 5729int 5730main () 5731{ 5732 5733 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) 5734 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) 5735 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) 5736 choke me 5737 #endif 5738 5739 ; 5740 return 0; 5741} 5742_ACEOF 5743if ac_fn_c_try_compile "$LINENO"; then : 5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5745/* end confdefs.h. */ 5746#include <gmp.h> 5747int 5748main () 5749{ 5750 5751 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) 5752 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) 5753 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) 5754 choke me 5755 #endif 5756 5757 ; 5758 return 0; 5759} 5760_ACEOF 5761if ac_fn_c_try_compile "$LINENO"; then : 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5763$as_echo "yes" >&6; } 5764else 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 5766$as_echo "buggy but acceptable" >&6; } 5767fi 5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5769else 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5771$as_echo "no" >&6; }; have_gmp=no 5772fi 5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5774 5775 # If we have GMP, check the MPFR version. 5776 if test x"$have_gmp" = xyes; then 5777 # Check for the recommended and required versions of MPFR. 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 5779$as_echo_n "checking for the correct version of mpfr.h... " >&6; } 5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5781/* end confdefs.h. */ 5782#include <gmp.h> 5783 #include <mpfr.h> 5784int 5785main () 5786{ 5787 5788 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) 5789 choke me 5790 #endif 5791 5792 ; 5793 return 0; 5794} 5795_ACEOF 5796if ac_fn_c_try_compile "$LINENO"; then : 5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5798/* end confdefs.h. */ 5799#include <gmp.h> 5800 #include <mpfr.h> 5801int 5802main () 5803{ 5804 5805 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) 5806 choke me 5807 #endif 5808 5809 ; 5810 return 0; 5811} 5812_ACEOF 5813if ac_fn_c_try_compile "$LINENO"; then : 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5815$as_echo "yes" >&6; } 5816else 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 5818$as_echo "buggy but acceptable" >&6; } 5819fi 5820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5821else 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5823$as_echo "no" >&6; }; have_gmp=no 5824fi 5825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5826 fi 5827 5828 # Check for the MPC header version. 5829 if test x"$have_gmp" = xyes ; then 5830 # Check for the recommended and required versions of MPC. 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 5832$as_echo_n "checking for the correct version of mpc.h... " >&6; } 5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5834/* end confdefs.h. */ 5835#include <mpc.h> 5836int 5837main () 5838{ 5839 5840 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) 5841 choke me 5842 #endif 5843 5844 ; 5845 return 0; 5846} 5847_ACEOF 5848if ac_fn_c_try_compile "$LINENO"; then : 5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5850/* end confdefs.h. */ 5851#include <mpc.h> 5852int 5853main () 5854{ 5855 5856 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) 5857 choke me 5858 #endif 5859 5860 ; 5861 return 0; 5862} 5863_ACEOF 5864if ac_fn_c_try_compile "$LINENO"; then : 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5866$as_echo "yes" >&6; } 5867else 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 5869$as_echo "buggy but acceptable" >&6; } 5870fi 5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5872else 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5874$as_echo "no" >&6; }; have_gmp=no 5875fi 5876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5877 fi 5878 5879 # Now check the MPFR library. 5880 if test x"$have_gmp" = xyes; then 5881 saved_LIBS="$LIBS" 5882 LIBS="$LIBS $gmplibs" 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 5884$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } 5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5886/* end confdefs.h. */ 5887#include <mpc.h> 5888int 5889main () 5890{ 5891 5892 mpfr_t n; 5893 mpfr_t x; 5894 mpc_t c; 5895 int t; 5896 mpfr_init (n); 5897 mpfr_init (x); 5898 mpfr_atan2 (n, n, x, GMP_RNDN); 5899 mpfr_erfc (n, x, GMP_RNDN); 5900 mpfr_subnormalize (x, t, GMP_RNDN); 5901 mpfr_clear(n); 5902 mpfr_clear(x); 5903 mpc_init2 (c, 53); 5904 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); 5905 mpc_cosh (c, c, MPC_RNDNN); 5906 mpc_pow (c, c, c, MPC_RNDNN); 5907 mpc_acosh (c, c, MPC_RNDNN); 5908 mpc_clear (c); 5909 5910 ; 5911 return 0; 5912} 5913_ACEOF 5914if ac_fn_c_try_link "$LINENO"; then : 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5916$as_echo "yes" >&6; } 5917else 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5919$as_echo "no" >&6; }; have_gmp=no 5920fi 5921rm -f core conftest.err conftest.$ac_objext \ 5922 conftest$ac_exeext conftest.$ac_ext 5923 LIBS="$saved_LIBS" 5924 fi 5925 5926 CFLAGS="$saved_CFLAGS" 5927 5928# The library versions listed in the error message below should match 5929# the HARD-minimums enforced above. 5930 if test x$have_gmp != xyes; then 5931 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. 5932Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify 5933their locations. Source code for these libraries can be found at 5934their respective hosting sites as well as at 5935ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also 5936http://gcc.gnu.org/install/prerequisites.html for additional info. If 5937you obtained GMP, MPFR and/or MPC from a vendor distribution package, 5938make sure that you have installed both the libraries and the header 5939files. They may be located in separate packages." "$LINENO" 5 5940 fi 5941fi 5942 5943# Flags needed for both GMP, MPFR and/or MPC. 5944 5945 5946 5947 5948 5949 5950 5951# Libraries to use for stage1 or when not bootstrapping. 5952 5953# Check whether --with-stage1-libs was given. 5954if test "${with_stage1_libs+set}" = set; then : 5955 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then 5956 stage1_libs= 5957 else 5958 stage1_libs=$withval 5959 fi 5960else 5961 stage1_libs= 5962fi 5963 5964 5965 5966# Whether or not to use -static-libstdc++ and -static-libgcc. The 5967# default is yes if gcc is being built; no otherwise. The reason for 5968# this default is that gdb is sometimes linked against GNU Source 5969# Highlight, which is a shared library that uses C++ exceptions. In 5970# this case, -static-libstdc++ will cause crashes. 5971 5972# Check whether --with-static-standard-libraries was given. 5973if test "${with_static_standard_libraries+set}" = set; then : 5974 withval=$with_static_standard_libraries; 5975else 5976 with_static_standard_libraries=auto 5977fi 5978 5979if test "$with_static_standard_libraries" = auto; then 5980 with_static_standard_libraries=$have_compiler 5981fi 5982 5983# Linker flags to use for stage1 or when not bootstrapping. 5984 5985# Check whether --with-stage1-ldflags was given. 5986if test "${with_stage1_ldflags+set}" = set; then : 5987 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then 5988 stage1_ldflags= 5989 else 5990 stage1_ldflags=$withval 5991 fi 5992else 5993 stage1_ldflags= 5994 # In stage 1, default to linking libstdc++ and libgcc statically with GCC 5995 # if supported. But if the user explicitly specified the libraries to use, 5996 # trust that they are doing what they want. 5997 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ 5998 -a "$have_static_libs" = yes; then 5999 stage1_ldflags="-static-libstdc++ -static-libgcc" 6000 fi 6001fi 6002 6003 6004 6005# Libraries to use for stage2 and later builds. 6006 6007# Check whether --with-boot-libs was given. 6008if test "${with_boot_libs+set}" = set; then : 6009 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then 6010 poststage1_libs= 6011 else 6012 poststage1_libs=$withval 6013 fi 6014else 6015 poststage1_libs= 6016fi 6017 6018 6019 6020# Linker flags to use for stage2 and later builds. 6021 6022# Check whether --with-boot-ldflags was given. 6023if test "${with_boot_ldflags+set}" = set; then : 6024 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then 6025 poststage1_ldflags= 6026 else 6027 poststage1_ldflags=$withval 6028 fi 6029else 6030 poststage1_ldflags= 6031 # In stages 2 and 3, default to linking libstdc++ and libgcc 6032 # statically. But if the user explicitly specified the libraries to 6033 # use, trust that they are doing what they want. 6034 if test "$poststage1_libs" = ""; then 6035 poststage1_ldflags="-static-libstdc++ -static-libgcc" 6036 fi 6037fi 6038 6039 6040 6041# GCC GRAPHITE dependency isl. 6042# Basic setup is inlined here, actual checks are in config/isl.m4 6043 6044 6045# Check whether --with-isl was given. 6046if test "${with_isl+set}" = set; then : 6047 withval=$with_isl; 6048fi 6049 6050 6051# Treat --without-isl as a request to disable 6052# GRAPHITE support and skip all following checks. 6053if test "x$with_isl" != "xno"; then 6054 # Check for isl 6055 6056 6057# Check whether --with-isl-include was given. 6058if test "${with_isl_include+set}" = set; then : 6059 withval=$with_isl_include; 6060fi 6061 6062 6063# Check whether --with-isl-lib was given. 6064if test "${with_isl_lib+set}" = set; then : 6065 withval=$with_isl_lib; 6066fi 6067 6068 6069 # Check whether --enable-isl-version-check was given. 6070if test "${enable_isl_version_check+set}" = set; then : 6071 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval 6072else 6073 ENABLE_ISL_CHECK=yes 6074fi 6075 6076 6077 # Initialize isllibs and islinc. 6078 case $with_isl in 6079 no) 6080 isllibs= 6081 islinc= 6082 ;; 6083 "" | yes) 6084 ;; 6085 *) 6086 isllibs="-L$with_isl/lib" 6087 islinc="-I$with_isl/include" 6088 ;; 6089 esac 6090 if test "x${with_isl_include}" != x ; then 6091 islinc="-I$with_isl_include" 6092 fi 6093 if test "x${with_isl_lib}" != x; then 6094 isllibs="-L$with_isl_lib" 6095 fi 6096 if test "x${islinc}" = x && test "x${isllibs}" = x \ 6097 && test -d ${srcdir}/isl; then 6098 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' 6099 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' 6100 ENABLE_ISL_CHECK=no 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 6102$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} 6103 fi 6104 6105 isllibs="${isllibs} -lisl" 6106 6107 6108 6109 if test "${ENABLE_ISL_CHECK}" = yes ; then 6110 _isl_saved_CFLAGS=$CFLAGS 6111 _isl_saved_LDFLAGS=$LDFLAGS 6112 _isl_saved_LIBS=$LIBS 6113 6114 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" 6115 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" 6116 LIBS="${_isl_saved_LIBS} -lisl -lgmp" 6117 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 6119$as_echo_n "checking for isl 0.15 or later... " >&6; } 6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6121/* end confdefs.h. */ 6122#include <isl/schedule.h> 6123int 6124main () 6125{ 6126isl_options_set_schedule_serialize_sccs (NULL, 0); 6127 ; 6128 return 0; 6129} 6130_ACEOF 6131if ac_fn_c_try_link "$LINENO"; then : 6132 gcc_cv_isl=yes 6133else 6134 gcc_cv_isl=no 6135fi 6136rm -f core conftest.err conftest.$ac_objext \ 6137 conftest$ac_exeext conftest.$ac_ext 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 6139$as_echo "$gcc_cv_isl" >&6; } 6140 6141 if test "${gcc_cv_isl}" = no ; then 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 6143$as_echo "required isl version is 0.15 or later" >&6; } 6144 fi 6145 6146 CFLAGS=$_isl_saved_CFLAGS 6147 LDFLAGS=$_isl_saved_LDFLAGS 6148 LIBS=$_isl_saved_LIBS 6149 fi 6150 6151 6152 6153 6154 6155 6156 if test "x${with_isl}" = xno; then 6157 graphite_requested=no 6158 elif test "x${with_isl}" != x \ 6159 || test "x${with_isl_include}" != x \ 6160 || test "x${with_isl_lib}" != x ; then 6161 graphite_requested=yes 6162 else 6163 graphite_requested=no 6164 fi 6165 6166 6167 6168 if test "${gcc_cv_isl}" = no ; then 6169 isllibs= 6170 islinc= 6171 fi 6172 6173 if test "${graphite_requested}" = yes \ 6174 && test "x${isllibs}" = x \ 6175 && test "x${islinc}" = x ; then 6176 6177 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 6178 fi 6179 6180 6181fi 6182 6183# If the isl check failed, disable builds of in-tree variant of isl 6184if test "x$with_isl" = xno || 6185 test "x$gcc_cv_isl" = xno; then 6186 noconfigdirs="$noconfigdirs isl" 6187 islinc= 6188fi 6189 6190 6191 6192 6193# Check for LTO support. 6194# Check whether --enable-lto was given. 6195if test "${enable_lto+set}" = set; then : 6196 enableval=$enable_lto; enable_lto=$enableval 6197else 6198 enable_lto=yes; default_enable_lto=yes 6199fi 6200 6201 6202 6203 6204 6205target_elf=no 6206case $target in 6207 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ 6208 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ 6209 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ 6210 nvptx-*-none) 6211 target_elf=no 6212 ;; 6213 *) 6214 target_elf=yes 6215 ;; 6216esac 6217 6218if test $target_elf = yes; then : 6219 # ELF platforms build the lto-plugin always. 6220 build_lto_plugin=yes 6221 6222else 6223 if test x"$default_enable_lto" = x"yes" ; then 6224 case $target in 6225 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; 6226 # On other non-ELF platforms, LTO has yet to be validated. 6227 *) enable_lto=no ;; 6228 esac 6229 else 6230 # Apart from ELF platforms, only Windows and Darwin support LTO so far. 6231 # It would also be nice to check the binutils support, but we don't 6232 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just 6233 # warn during gcc/ subconfigure; unless you're bootstrapping with 6234 # -flto it won't be needed until after installation anyway. 6235 case $target in 6236 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; 6237 *) if test x"$enable_lto" = x"yes"; then 6238 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 6239 fi 6240 ;; 6241 esac 6242 fi 6243 # Among non-ELF, only Windows platforms support the lto-plugin so far. 6244 # Build it unless LTO was explicitly disabled. 6245 case $target in 6246 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; 6247 *) ;; 6248 esac 6249 6250fi 6251 6252 6253# Check whether --enable-linker-plugin-configure-flags was given. 6254if test "${enable_linker_plugin_configure_flags+set}" = set; then : 6255 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval 6256else 6257 extra_linker_plugin_configure_flags= 6258fi 6259 6260 6261# Check whether --enable-linker-plugin-flags was given. 6262if test "${enable_linker_plugin_flags+set}" = set; then : 6263 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval 6264else 6265 extra_linker_plugin_flags= 6266fi 6267 6268 6269 6270# Enable --enable-host-shared. 6271# Checked early to determine whether jit is an 'all' language 6272# Check whether --enable-host-shared was given. 6273if test "${enable_host_shared+set}" = set; then : 6274 enableval=$enable_host_shared; host_shared=$enableval 6275else 6276 host_shared=no 6277fi 6278 6279 6280 6281# By default, C and C++ are the only stage 1 languages. 6282stage1_languages=,c, 6283 6284# Target libraries that we bootstrap. 6285bootstrap_target_libs=,target-libgcc, 6286 6287# Figure out what language subdirectories are present. 6288# Look if the user specified --enable-languages="..."; if not, use 6289# the environment variable $LANGUAGES if defined. $LANGUAGES might 6290# go away some day. 6291# NB: embedded tabs in this IF block -- do not untabify 6292if test -d ${srcdir}/gcc; then 6293 if test x"${enable_languages+set}" != xset; then 6294 if test x"${LANGUAGES+set}" = xset; then 6295 enable_languages="${LANGUAGES}" 6296 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 6297 else 6298 enable_languages=default 6299 fi 6300 else 6301 if test x"${enable_languages}" = x || 6302 test x"${enable_languages}" = xyes; 6303 then 6304 echo configure.ac: --enable-languages needs at least one language argument 1>&2 6305 exit 1 6306 fi 6307 fi 6308 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` 6309 6310 # 'f95' is the old name for the 'fortran' language. We issue a warning 6311 # and make the substitution. 6312 case ,${enable_languages}, in 6313 *,f95,*) 6314 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 6315 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` 6316 ;; 6317 esac 6318 6319 # If bootstrapping, C++ must be enabled. 6320 case ",$enable_languages,:$enable_bootstrap" in 6321 *,c++,*:*) ;; 6322 *:yes) 6323 if test -f ${srcdir}/gcc/cp/config-lang.in; then 6324 enable_languages="${enable_languages},c++" 6325 else 6326 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 6327 fi 6328 ;; 6329 esac 6330 6331 # First scan to see if an enabled language requires some other language. 6332 # We assume that a given config-lang.in will list all the language 6333 # front ends it requires, even if some are required indirectly. 6334 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do 6335 case ${lang_frag} in 6336 ..) ;; 6337 # The odd quoting in the next line works around 6338 # an apparent bug in bash 1.12 on linux. 6339 ${srcdir}/gcc/[*]/config-lang.in) ;; 6340 *) 6341 # From the config-lang.in, get $language, $lang_requires, and 6342 # $lang_requires_boot_languages. 6343 language= 6344 lang_requires= 6345 lang_requires_boot_languages= 6346 # set srcdir during sourcing lang_frag to the gcc dir. 6347 # Sadly overriding srcdir on the . line doesn't work in plain sh as it 6348 # polutes this shell 6349 saved_srcdir=${srcdir} 6350 srcdir=${srcdir}/gcc . ${lang_frag} 6351 srcdir=${saved_srcdir} 6352 for other in ${lang_requires} ${lang_requires_boot_languages}; do 6353 case ,${enable_languages}, in 6354 *,$other,*) ;; 6355 *,default,*) ;; 6356 *,all,*) ;; 6357 *,$language,*) 6358 echo " \`$other' language required by \`$language'; enabling" 1>&2 6359 enable_languages="${enable_languages},${other}" 6360 ;; 6361 esac 6362 done 6363 for other in ${lang_requires_boot_languages} ; do 6364 if test "$other" != "c"; then 6365 case ,${enable_stage1_languages}, in 6366 *,$other,*) ;; 6367 *,default,*) ;; 6368 *,all,*) ;; 6369 *) 6370 case ,${enable_languages}, in 6371 *,$language,*) 6372 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 6373 enable_stage1_languages="$enable_stage1_languages,${other}" 6374 ;; 6375 esac 6376 ;; 6377 esac 6378 fi 6379 done 6380 ;; 6381 esac 6382 done 6383 6384 new_enable_languages=,c, 6385 6386 # If LTO is enabled, add the LTO front end. 6387 if test "$enable_lto" = "yes" ; then 6388 case ,${enable_languages}, in 6389 *,lto,*) ;; 6390 *) enable_languages="${enable_languages},lto" ;; 6391 esac 6392 if test "${build_lto_plugin}" = "yes" ; then 6393 configdirs="$configdirs lto-plugin" 6394 fi 6395 fi 6396 6397 # If we're building an offloading compiler, add the LTO front end. 6398 if test x"$enable_as_accelerator_for" != x ; then 6399 case ,${enable_languages}, in 6400 *,lto,*) ;; 6401 *) enable_languages="${enable_languages},lto" ;; 6402 esac 6403 fi 6404 6405 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` 6406 potential_languages=,c, 6407 6408 enabled_target_libs= 6409 disabled_target_libs= 6410 6411 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do 6412 case ${lang_frag} in 6413 ..) ;; 6414 # The odd quoting in the next line works around 6415 # an apparent bug in bash 1.12 on linux. 6416 ${srcdir}/gcc/[*]/config-lang.in) ;; 6417 *) 6418 # From the config-lang.in, get $language, $target_libs, 6419 # $lang_dirs, $boot_language, and $build_by_default 6420 language= 6421 target_libs= 6422 lang_dirs= 6423 subdir_requires= 6424 boot_language=no 6425 build_by_default=yes 6426 # set srcdir during sourcing. See above about save & restore 6427 saved_srcdir=${srcdir} 6428 srcdir=${srcdir}/gcc . ${lang_frag} 6429 srcdir=${saved_srcdir} 6430 if test x${language} = x; then 6431 echo "${lang_frag} doesn't set \$language." 1>&2 6432 exit 1 6433 fi 6434 6435 if test "$language" = "c++"; then 6436 boot_language=yes 6437 fi 6438 6439 add_this_lang=no 6440 # C is always enabled, so no need to add it again 6441 if test "$language" != "c"; then 6442 case ,${enable_languages}, in 6443 *,${language},*) 6444 # Language was explicitly selected; include it 6445 add_this_lang=yes 6446 ;; 6447 *,all,*) 6448 # All languages are enabled 6449 add_this_lang=all 6450 ;; 6451 *,default,*) 6452 # 'default' was selected, select it if it is a default language 6453 add_this_lang=${build_by_default} 6454 ;; 6455 esac 6456 fi 6457 6458 # Disable languages that need other directories if these aren't available. 6459 for i in $subdir_requires; do 6460 test -f "$srcdir/gcc/$i/config-lang.in" && continue 6461 case ${add_this_lang} in 6462 yes) 6463 # Specifically requested language; tell them. 6464 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 6465 ;; 6466 all) 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 6468$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} 6469 add_this_lang=unsupported 6470 ;; 6471 *) 6472 # Silently disable. 6473 add_this_lang=unsupported 6474 ;; 6475 esac 6476 done 6477 6478 # Disable Ada if no preexisting GNAT is available. 6479 case ${add_this_lang}:${language}:${have_gnat} in 6480 yes:ada:no) 6481 # Specifically requested language; tell them. 6482 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 6483 ;; 6484 all:ada:no) 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 6486$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} 6487 add_this_lang=unsupported 6488 ;; 6489 *:ada:no) 6490 # Silently disable. 6491 add_this_lang=unsupported 6492 ;; 6493 esac 6494 6495 # Disable jit if -enable-host-shared not specified 6496 case ${add_this_lang}:${language}:${host_shared} in 6497 yes:jit:no) 6498 # PR jit/64780: explicitly specify --enable-host-shared 6499 as_fn_error $? " 6500Enabling language \"jit\" requires --enable-host-shared. 6501 6502--enable-host-shared typically slows the rest of the compiler down by 6503a few %, so you must explicitly enable it. 6504 6505If you want to build both the jit and the regular compiler, it is often 6506best to do this via two separate configure/builds, in separate 6507directories, to avoid imposing the performance cost of 6508--enable-host-shared on the regular compiler." "$LINENO" 5 6509 ;; 6510 all:jit:no) 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 6512$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} 6513 add_this_lang=unsupported 6514 ;; 6515 *:jit:no) 6516 # Silently disable. 6517 add_this_lang=unsupported 6518 ;; 6519 esac 6520 6521 # Disable a language that is unsupported by the target. 6522 case "${add_this_lang}: $unsupported_languages " in 6523 no:*) ;; 6524 unsupported:*) ;; 6525 *:*" $language "*) 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 6527$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} 6528 add_this_lang=unsupported 6529 ;; 6530 esac 6531 6532 case $add_this_lang in 6533 unsupported) 6534 # Remove language-dependent dirs. 6535 disabled_target_libs="$disabled_target_libs $target_libs" 6536 noconfigdirs="$noconfigdirs $lang_dirs" 6537 ;; 6538 no) 6539 # Remove language-dependent dirs; still show language as supported. 6540 disabled_target_libs="$disabled_target_libs $target_libs" 6541 noconfigdirs="$noconfigdirs $lang_dirs" 6542 potential_languages="${potential_languages}${language}," 6543 ;; 6544 all|yes) 6545 new_enable_languages="${new_enable_languages}${language}," 6546 potential_languages="${potential_languages}${language}," 6547 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` 6548 enabled_target_libs="$enabled_target_libs $target_libs" 6549 case "${boot_language}:,$enable_stage1_languages," in 6550 yes:* | *:*,$language,* | *:*,yes, | *:*,all,) 6551 # Add to (comma-separated) list of stage 1 languages. 6552 case ",$stage1_languages," in 6553 *,$language,* | ,yes, | ,all,) ;; 6554 *) stage1_languages="${stage1_languages}${language}," ;; 6555 esac 6556 # We need to bootstrap any supporting libraries. 6557 bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," 6558 ;; 6559 esac 6560 ;; 6561 esac 6562 ;; 6563 esac 6564 done 6565 6566 # Add target libraries which are only needed for disabled languages 6567 # to noconfigdirs. 6568 if test -n "$disabled_target_libs"; then 6569 for dir in $disabled_target_libs; do 6570 case " $enabled_target_libs " in 6571 *" ${dir} "*) ;; 6572 *) noconfigdirs="$noconfigdirs $dir" ;; 6573 esac 6574 done 6575 fi 6576 6577 # Check whether --enable-stage1-languages was given. 6578if test "${enable_stage1_languages+set}" = set; then : 6579 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in 6580 ,no,|,,) 6581 # Set it to something that will have no effect in the loop below 6582 enable_stage1_languages=c ;; 6583 ,yes,) 6584 enable_stage1_languages=`echo $new_enable_languages | \ 6585 sed -e "s/^,//" -e "s/,$//" ` ;; 6586 *,all,*) 6587 enable_stage1_languages=`echo ,$enable_stage1_languages, | \ 6588 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; 6589 esac 6590 6591 # Add "good" languages from enable_stage1_languages to stage1_languages, 6592 # while "bad" languages go in missing_languages. Leave no duplicates. 6593 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do 6594 case $potential_languages in 6595 *,$i,*) 6596 case $stage1_languages in 6597 *,$i,*) ;; 6598 *) stage1_languages="$stage1_languages$i," ;; 6599 esac ;; 6600 *) 6601 case $missing_languages in 6602 *,$i,*) ;; 6603 *) missing_languages="$missing_languages$i," ;; 6604 esac ;; 6605 esac 6606 done 6607fi 6608 6609 6610 # Remove leading/trailing commas that were added for simplicity 6611 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` 6612 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` 6613 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` 6614 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` 6615 6616 if test "x$missing_languages" != x; then 6617 as_fn_error $? " 6618The following requested languages could not be built: ${missing_languages} 6619Supported languages are: ${potential_languages}" "$LINENO" 5 6620 fi 6621 if test "x$new_enable_languages" != "x$enable_languages"; then 6622 echo The following languages will be built: ${new_enable_languages} 6623 enable_languages="$new_enable_languages" 6624 fi 6625 6626 6627 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` 6628fi 6629 6630# Handle --disable-<component> generically. 6631for dir in $configdirs $build_configdirs $target_configdirs ; do 6632 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` 6633 varname=`echo $dirname | sed -e s/+/_/g` 6634 if eval test x\${enable_${varname}} "=" xno ; then 6635 noconfigdirs="$noconfigdirs $dir" 6636 fi 6637done 6638 6639# Check for Boehm's garbage collector 6640# Check whether --enable-objc-gc was given. 6641if test "${enable_objc_gc+set}" = set; then : 6642 enableval=$enable_objc_gc; 6643fi 6644 6645 6646# Check whether --with-target-bdw-gc was given. 6647if test "${with_target_bdw_gc+set}" = set; then : 6648 withval=$with_target_bdw_gc; 6649fi 6650 6651 6652# Check whether --with-target-bdw-gc-include was given. 6653if test "${with_target_bdw_gc_include+set}" = set; then : 6654 withval=$with_target_bdw_gc_include; 6655fi 6656 6657 6658# Check whether --with-target-bdw-gc-lib was given. 6659if test "${with_target_bdw_gc_lib+set}" = set; then : 6660 withval=$with_target_bdw_gc_lib; 6661fi 6662 6663 6664case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 6666$as_echo_n "checking for bdw garbage collector... " >&6; } 6667 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 6669$as_echo "using bdw-gc in default locations" >&6; } 6670 else 6671 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then 6672 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 6673 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then 6674 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 6675 else 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 6677$as_echo "using paths configured with --with-target-bdw-gc options" >&6; } 6678 fi 6679 fi 6680esac 6681 6682# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ 6683case ,${enable_languages}, in 6684 *,c++,*) 6685 # Disable libitm, libsanitizer if we're not building libstdc++ 6686 case "${noconfigdirs}" in 6687 *target-libstdc++-v3*) 6688 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" 6689 ;; 6690 *) ;; 6691 esac 6692 ;; 6693 *) 6694 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" 6695 ;; 6696esac 6697 6698# Remove the entries in $skipdirs and $noconfigdirs from $configdirs, 6699# $build_configdirs and $target_configdirs. 6700# If we have the source for $noconfigdirs entries, add them to $notsupp. 6701 6702notsupp="" 6703for dir in . $skipdirs $noconfigdirs ; do 6704 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` 6705 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6706 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` 6707 if test -r $srcdir/$dirname/configure ; then 6708 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6709 true 6710 else 6711 notsupp="$notsupp $dir" 6712 fi 6713 fi 6714 fi 6715 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6716 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` 6717 if test -r $srcdir/$dirname/configure ; then 6718 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6719 true 6720 else 6721 notsupp="$notsupp $dir" 6722 fi 6723 fi 6724 fi 6725 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6726 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` 6727 if test -r $srcdir/$dirname/configure ; then 6728 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6729 true 6730 else 6731 notsupp="$notsupp $dir" 6732 fi 6733 fi 6734 fi 6735done 6736 6737# Quietly strip out all directories which aren't configurable in this tree. 6738# This relies on all configurable subdirectories being autoconfiscated, which 6739# is now the case. 6740build_configdirs_all="$build_configdirs" 6741build_configdirs= 6742for i in ${build_configdirs_all} ; do 6743 j=`echo $i | sed -e s/build-//g` 6744 if test -f ${srcdir}/$j/configure ; then 6745 build_configdirs="${build_configdirs} $i" 6746 fi 6747done 6748 6749configdirs_all="$configdirs" 6750configdirs= 6751for i in ${configdirs_all} ; do 6752 if test -f ${srcdir}/$i/configure ; then 6753 configdirs="${configdirs} $i" 6754 fi 6755done 6756 6757target_configdirs_all="$target_configdirs" 6758target_configdirs= 6759for i in ${target_configdirs_all} ; do 6760 j=`echo $i | sed -e s/target-//g` 6761 if test -f ${srcdir}/$j/configure ; then 6762 target_configdirs="${target_configdirs} $i" 6763 fi 6764done 6765 6766# libiberty-linker-plugin is special: it doesn't have its own source directory, 6767# so we have to add it after the preceding checks. 6768if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x 6769then 6770 case " $configdirs " in 6771 *" libiberty "*) 6772 # If we can build libiberty, we can also build libiberty-linker-plugin. 6773 configdirs="$configdirs libiberty-linker-plugin" 6774 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ 6775 --with-libiberty=../libiberty-linker-plugin";; 6776 *) 6777 as_fn_error $? "libiberty missing" "$LINENO" 5;; 6778 esac 6779fi 6780 6781# Sometimes we have special requirements for the host libiberty. 6782extra_host_libiberty_configure_flags= 6783extra_host_zlib_configure_flags= 6784case " $configdirs " in 6785 *" lto-plugin "* | *" libcc1 "*) 6786 # When these are to be built as shared libraries, the same applies to 6787 # libiberty. 6788 extra_host_libiberty_configure_flags=--enable-shared 6789 ;; 6790 *" bfd "*) 6791 # When bfd is to be built as a shared library, the same applies to 6792 # zlib. 6793 if test "$enable_shared" = "yes"; then 6794 extra_host_zlib_configure_flags=--enable-host-shared 6795 fi 6796 ;; 6797esac 6798 6799 6800 6801# Produce a warning message for the subdirs we can't configure. 6802# This isn't especially interesting in the Cygnus tree, but in the individual 6803# FSF releases, it's important to let people know when their machine isn't 6804# supported by the one or two programs in a package. 6805 6806if test -n "${notsupp}" && test -z "${norecursion}" ; then 6807 # If $appdirs is non-empty, at least one of those directories must still 6808 # be configured, or we error out. (E.g., if the gas release supports a 6809 # specified target in some subdirs but not the gas subdir, we shouldn't 6810 # pretend that all is well.) 6811 if test -n "$appdirs" ; then 6812 for dir in $appdirs ; do 6813 if test -r $dir/Makefile.in ; then 6814 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6815 appdirs="" 6816 break 6817 fi 6818 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then 6819 appdirs="" 6820 break 6821 fi 6822 fi 6823 done 6824 if test -n "$appdirs" ; then 6825 echo "*** This configuration is not supported by this package." 1>&2 6826 exit 1 6827 fi 6828 fi 6829 # Okay, some application will build, or we don't care to check. Still 6830 # notify of subdirs not getting built. 6831 echo "*** This configuration is not supported in the following subdirectories:" 1>&2 6832 echo " ${notsupp}" 1>&2 6833 echo " (Any other directories should still work fine.)" 1>&2 6834fi 6835 6836case "$host" in 6837 *msdosdjgpp*) 6838 enable_gdbtk=no ;; 6839esac 6840 6841# To find our prefix, in gcc_cv_tool_prefix. 6842 6843# The user is always right. 6844if test "${PATH_SEPARATOR+set}" != set; then 6845 echo "#! /bin/sh" >conf$$.sh 6846 echo "exit 0" >>conf$$.sh 6847 chmod +x conf$$.sh 6848 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6849 PATH_SEPARATOR=';' 6850 else 6851 PATH_SEPARATOR=: 6852 fi 6853 rm -f conf$$.sh 6854fi 6855 6856 6857 get_gcc_base_ver="cat" 6858 6859# Check whether --with-gcc-major-version-only was given. 6860if test "${with_gcc_major_version_only+set}" = set; then : 6861 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 6862 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 6863 fi 6864 6865fi 6866 6867 6868 6869 6870 6871 6872if test "x$exec_prefix" = xNONE; then 6873 if test "x$prefix" = xNONE; then 6874 gcc_cv_tool_prefix=$ac_default_prefix 6875 else 6876 gcc_cv_tool_prefix=$prefix 6877 fi 6878else 6879 gcc_cv_tool_prefix=$exec_prefix 6880fi 6881 6882# If there is no compiler in the tree, use the PATH only. In any 6883# case, if there is no compiler in the tree nobody should use 6884# AS_FOR_TARGET and LD_FOR_TARGET. 6885if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then 6886 if test x$with_gcc_major_version_only = xyes ; then 6887 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` 6888 else 6889 gcc_version=`cat $srcdir/gcc/BASE-VER` 6890 fi 6891 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" 6892 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" 6893 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" 6894 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" 6895 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" 6896 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" 6897else 6898 gcc_cv_tool_dirs= 6899fi 6900 6901if test x$build = x$target && test -n "$md_exec_prefix"; then 6902 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" 6903fi 6904 6905 6906 6907copy_dirs= 6908 6909 6910# Check whether --with-build-sysroot was given. 6911if test "${with_build_sysroot+set}" = set; then : 6912 withval=$with_build_sysroot; if test x"$withval" != x ; then 6913 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" 6914 fi 6915else 6916 SYSROOT_CFLAGS_FOR_TARGET= 6917fi 6918 6919 6920 6921 6922# Check whether --with-debug-prefix-map was given. 6923if test "${with_debug_prefix_map+set}" = set; then : 6924 withval=$with_debug_prefix_map; if test x"$withval" != x; then 6925 DEBUG_PREFIX_CFLAGS_FOR_TARGET= 6926 for debug_map in $withval; do 6927 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" 6928 done 6929 fi 6930else 6931 DEBUG_PREFIX_CFLAGS_FOR_TARGET= 6932fi 6933 6934 6935 6936# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS 6937# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS 6938# might also be empty (or "-g", if a non-GCC C++ compiler is in the path). 6939# We want to ensure that TARGET libraries (which we know are built with 6940# gcc) are built with "-O2 -g", so include those options when setting 6941# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. 6942if test "x$CFLAGS_FOR_TARGET" = x; then 6943 if test "x${is_cross_compiler}" = xyes; then 6944 CFLAGS_FOR_TARGET="-g -O2" 6945 else 6946 CFLAGS_FOR_TARGET=$CFLAGS 6947 case " $CFLAGS " in 6948 *" -O2 "*) ;; 6949 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; 6950 esac 6951 case " $CFLAGS " in 6952 *" -g "* | *" -g3 "*) ;; 6953 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; 6954 esac 6955 fi 6956fi 6957 6958 6959if test "x$CXXFLAGS_FOR_TARGET" = x; then 6960 if test "x${is_cross_compiler}" = xyes; then 6961 CXXFLAGS_FOR_TARGET="-g -O2" 6962 else 6963 CXXFLAGS_FOR_TARGET=$CXXFLAGS 6964 case " $CXXFLAGS " in 6965 *" -O2 "*) ;; 6966 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; 6967 esac 6968 case " $CXXFLAGS " in 6969 *" -g "* | *" -g3 "*) ;; 6970 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; 6971 esac 6972 fi 6973fi 6974 6975 6976 6977 6978# Handle --with-headers=XXX. If the value is not "yes", the contents of 6979# the named directory are copied to $(tooldir)/sys-include. 6980if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then 6981 if test x${is_cross_compiler} = xno ; then 6982 echo 1>&2 '***' --with-headers is only supported when cross compiling 6983 exit 1 6984 fi 6985 if test x"${with_headers}" != xyes ; then 6986 x=${gcc_cv_tool_prefix} 6987 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" 6988 fi 6989fi 6990 6991# Handle --with-libs=XXX. If the value is not "yes", the contents of 6992# the name directories are copied to $(tooldir)/lib. Multiple directories 6993# are permitted. 6994if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then 6995 if test x${is_cross_compiler} = xno ; then 6996 echo 1>&2 '***' --with-libs is only supported when cross compiling 6997 exit 1 6998 fi 6999 if test x"${with_libs}" != xyes ; then 7000 # Copy the libraries in reverse order, so that files in the first named 7001 # library override files in subsequent libraries. 7002 x=${gcc_cv_tool_prefix} 7003 for l in ${with_libs}; do 7004 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" 7005 done 7006 fi 7007fi 7008 7009# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. 7010# 7011# This is done by determining whether or not the appropriate directory 7012# is available, and by checking whether or not specific configurations 7013# have requested that this magic not happen. 7014# 7015# The command line options always override the explicit settings in 7016# configure.ac, and the settings in configure.ac override this magic. 7017# 7018# If the default for a toolchain is to use GNU as and ld, and you don't 7019# want to do that, then you should use the --without-gnu-as and 7020# --without-gnu-ld options for the configure script. Similarly, if 7021# the default is to use the included zlib and you don't want to do that, 7022# you should use the --with-system-zlib option for the configure script. 7023 7024if test x${use_gnu_as} = x && 7025 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then 7026 with_gnu_as=yes 7027 extra_host_args="$extra_host_args --with-gnu-as" 7028fi 7029 7030if test x${use_gnu_ld} = x && 7031 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then 7032 with_gnu_ld=yes 7033 extra_host_args="$extra_host_args --with-gnu-ld" 7034fi 7035 7036if test x${use_included_zlib} = x && 7037 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then 7038 : 7039else 7040 with_system_zlib=yes 7041 extra_host_args="$extra_host_args --with-system-zlib" 7042fi 7043 7044# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure 7045# can detect this case. 7046 7047if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then 7048 with_newlib=yes 7049 extra_host_args="$extra_host_args --with-newlib" 7050fi 7051 7052# Handle ${copy_dirs} 7053set fnord ${copy_dirs} 7054shift 7055while test $# != 0 ; do 7056 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then 7057 : 7058 else 7059 echo Copying $1 to $2 7060 7061 # Use the install script to create the directory and all required 7062 # parent directories. 7063 if test -d $2 ; then 7064 : 7065 else 7066 echo >config.temp 7067 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED 7068 fi 7069 7070 # Copy the directory, assuming we have tar. 7071 # FIXME: Should we use B in the second tar? Not all systems support it. 7072 (cd $1; tar -cf - .) | (cd $2; tar -xpf -) 7073 7074 # It is the responsibility of the user to correctly adjust all 7075 # symlinks. If somebody can figure out how to handle them correctly 7076 # here, feel free to add the code. 7077 7078 echo $1 > $2/COPIED 7079 fi 7080 shift; shift 7081done 7082 7083# Determine a target-dependent exec_prefix that the installed 7084# gcc will search in. Keep this list sorted by triplet, with 7085# the *-*-osname triplets last. 7086md_exec_prefix= 7087case "${target}" in 7088 i[34567]86-pc-msdosdjgpp*) 7089 md_exec_prefix=/dev/env/DJDIR/bin 7090 ;; 7091 *-*-hpux* | \ 7092 *-*-nto-qnx* | \ 7093 *-*-solaris2*) 7094 md_exec_prefix=/usr/ccs/bin 7095 ;; 7096esac 7097 7098extra_arflags_for_target= 7099extra_nmflags_for_target= 7100extra_ranlibflags_for_target= 7101target_makefile_frag=/dev/null 7102case "${target}" in 7103 spu-*-*) 7104 target_makefile_frag="config/mt-spu" 7105 ;; 7106 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) 7107 target_makefile_frag="config/mt-sde" 7108 ;; 7109 mipsisa*-*-elfoabi*) 7110 target_makefile_frag="config/mt-mips-elfoabi" 7111 ;; 7112 mips*-*-*linux* | mips*-*-gnu*) 7113 target_makefile_frag="config/mt-mips-gnu" 7114 ;; 7115 nios2-*-elf*) 7116 target_makefile_frag="config/mt-nios2-elf" 7117 ;; 7118 *-*-linux-android*) 7119 target_makefile_frag="config/mt-android" 7120 ;; 7121 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 7122 target_makefile_frag="config/mt-gnu" 7123 ;; 7124 *-*-aix4.[3456789]* | *-*-aix[56789].*) 7125 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm 7126 # commands to handle both 32-bit and 64-bit objects. These flags are 7127 # harmless if we're using GNU nm or ar. 7128 extra_arflags_for_target=" -X32_64" 7129 extra_nmflags_for_target=" -B -X32_64" 7130 ;; 7131esac 7132 7133alphaieee_frag=/dev/null 7134case $target in 7135 alpha*-*-*) 7136 # This just makes sure to use the -mieee option to build target libs. 7137 # This should probably be set individually by each library. 7138 alphaieee_frag="config/mt-alphaieee" 7139 ;; 7140esac 7141 7142# If --enable-target-optspace always use -Os instead of -O2 to build 7143# the target libraries, similarly if it is not specified, use -Os 7144# on selected platforms. 7145ospace_frag=/dev/null 7146case "${enable_target_optspace}:${target}" in 7147 yes:*) 7148 ospace_frag="config/mt-ospace" 7149 ;; 7150 :d30v-*) 7151 ospace_frag="config/mt-d30v" 7152 ;; 7153 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) 7154 ospace_frag="config/mt-ospace" 7155 ;; 7156 no:* | :*) 7157 ;; 7158 *) 7159 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 7160 ;; 7161esac 7162 7163# Some systems (e.g., one of the i386-aix systems the gas testers are 7164# using) don't handle "\$" correctly, so don't use it here. 7165tooldir='${exec_prefix}'/${target_noncanonical} 7166build_tooldir=${tooldir} 7167 7168# Create a .gdbinit file which runs the one in srcdir 7169# and tells GDB to look there for source files. 7170 7171if test -r ${srcdir}/.gdbinit ; then 7172 case ${srcdir} in 7173 .) ;; 7174 *) cat > ./.gdbinit <<EOF 7175# ${NO_EDIT} 7176dir ${srcdir} 7177dir . 7178source ${srcdir}/.gdbinit 7179EOF 7180 ;; 7181 esac 7182fi 7183 7184# Make sure that the compiler is able to generate an executable. If it 7185# can't, we are probably in trouble. We don't care whether we can run the 7186# executable--we might be using a cross compiler--we only care whether it 7187# can be created. At this point the main configure script has set CC. 7188we_are_ok=no 7189echo "int main () { return 0; }" > conftest.c 7190${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c 7191if test $? = 0 ; then 7192 if test -s conftest || test -s conftest.exe ; then 7193 we_are_ok=yes 7194 fi 7195fi 7196case $we_are_ok in 7197 no) 7198 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." 7199 echo 1>&2 "*** You must set the environment variable CC to a working compiler." 7200 rm -f conftest* 7201 exit 1 7202 ;; 7203esac 7204rm -f conftest* 7205 7206# Decide which environment variable is used to find dynamic libraries. 7207case "${host}" in 7208 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; 7209 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; 7210 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; 7211 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; 7212esac 7213 7214# On systems where the dynamic library environment variable is PATH, 7215# gcc/ will put dynamic libraries into a subdirectory to avoid adding 7216# built executables to PATH. 7217if test "$RPATH_ENVVAR" = PATH; then 7218 GCC_SHLIB_SUBDIR=/shlib 7219else 7220 GCC_SHLIB_SUBDIR= 7221fi 7222 7223# Adjust the toplevel makefile according to whether bootstrap was selected. 7224case $enable_bootstrap in 7225 yes) 7226 bootstrap_suffix=bootstrap 7227 BUILD_CONFIG=bootstrap-debug 7228 ;; 7229 no) 7230 bootstrap_suffix=no-bootstrap 7231 BUILD_CONFIG= 7232 ;; 7233esac 7234 7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 7236$as_echo_n "checking for default BUILD_CONFIG... " >&6; } 7237 7238 7239# Check whether --with-build-config was given. 7240if test "${with_build_config+set}" = set; then : 7241 withval=$with_build_config; case $with_build_config in 7242 yes) with_build_config= ;; 7243 no) with_build_config= BUILD_CONFIG= ;; 7244 esac 7245fi 7246 7247 7248if test "x${with_build_config}" != x; then 7249 BUILD_CONFIG=$with_build_config 7250else 7251 case $BUILD_CONFIG in 7252 bootstrap-debug) 7253 if echo "int f (void) { return 0; }" > conftest.c && 7254 ${CC} -c conftest.c && 7255 mv conftest.o conftest.o.g0 && 7256 ${CC} -c -g conftest.c && 7257 mv conftest.o conftest.o.g && 7258 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then 7259 : 7260 else 7261 BUILD_CONFIG= 7262 fi 7263 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g 7264 ;; 7265 esac 7266fi 7267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 7268$as_echo "$BUILD_CONFIG" >&6; } 7269 7270 7271# Use same top-level configure hooks in libgcc/libstdc++/libvtv. 7272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 7273$as_echo_n "checking for --enable-vtable-verify... " >&6; } 7274# Check whether --enable-vtable-verify was given. 7275if test "${enable_vtable_verify+set}" = set; then : 7276 enableval=$enable_vtable_verify; case "$enableval" in 7277 yes) enable_vtable_verify=yes ;; 7278 no) enable_vtable_verify=no ;; 7279 *) enable_vtable_verify=no;; 7280 esac 7281else 7282 enable_vtable_verify=no 7283fi 7284 7285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 7286$as_echo "$enable_vtable_verify" >&6; } 7287 7288# Record target_configdirs and the configure arguments for target and 7289# build configuration in Makefile. 7290target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` 7291build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` 7292bootstrap_fixincludes=no 7293 7294# If we are building libgomp, bootstrap it. 7295if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then 7296 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, 7297fi 7298 7299# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan 7300# or bootstrap-ubsan, bootstrap it. 7301if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then 7302 case "$BUILD_CONFIG" in 7303 *bootstrap-asan* | *bootstrap-ubsan* ) 7304 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, 7305 bootstrap_fixincludes=yes 7306 ;; 7307 esac 7308fi 7309 7310# If we are building libvtv and --enable-vtable-verify, bootstrap it. 7311if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && 7312 test "$enable_vtable_verify" != no; then 7313 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, 7314fi 7315 7316# Determine whether gdb needs tk/tcl or not. 7317# Use 'maybe' since enable_gdbtk might be true even if tk isn't available 7318# and in that case we want gdb to be built without tk. Ugh! 7319# In fact I believe gdb is the *only* package directly dependent on tk, 7320# so we should be able to put the 'maybe's in unconditionally and 7321# leave out the maybe dependencies when enable_gdbtk is false. I'm not 7322# 100% sure that that's safe though. 7323 7324gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" 7325case "$enable_gdbtk" in 7326 no) 7327 GDB_TK="" ;; 7328 yes) 7329 GDB_TK="${gdb_tk}" ;; 7330 *) 7331 # Only add the dependency on gdbtk when GDBtk is part of the gdb 7332 # distro. Eventually someone will fix this and move Insight, nee 7333 # gdbtk to a separate directory. 7334 if test -d ${srcdir}/gdb/gdbtk ; then 7335 GDB_TK="${gdb_tk}" 7336 else 7337 GDB_TK="" 7338 fi 7339 ;; 7340esac 7341CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` 7342INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` 7343 7344# gdb depends on gnulib and gdbsupport, but as nothing else does, only 7345# include them if gdb is built. 7346if echo " ${configdirs} " | grep " gdb " > /dev/null 2>&1 ; then 7347 # The Makefile provides the ordering, so it's enough here to add to 7348 # the list. 7349 configdirs="${configdirs} gnulib gdbsupport" 7350fi 7351 7352# Strip out unwanted targets. 7353 7354# While at that, we remove Makefiles if we were started for recursive 7355# configuration, so that the top-level Makefile reconfigures them, 7356# like we used to do when configure itself was recursive. 7357 7358# Loop over modules. We used to use the "$extrasub" feature from Autoconf 7359# but now we're fixing up the Makefile ourselves with the additional 7360# commands passed to AC_CONFIG_FILES. Use separate variables 7361# extrasub-{build,host,target} not because there is any reason to split 7362# the substitutions up that way, but only to remain below the limit of 7363# 99 commands in a script, for HP-UX sed. 7364 7365# Do not nest @if/@endif or @unless/@endunless pairs, because 7366# configure will not warn you at all. 7367 7368case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in 7369 yes:yes:*\ gold\ *:*,c++,*) ;; 7370 yes:yes:*\ gold\ *:*) 7371 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 7372 ;; 7373esac 7374 7375extrasub_build= 7376for module in ${build_configdirs} ; do 7377 if test -z "${no_recursion}" \ 7378 && test -f ${build_subdir}/${module}/Makefile; then 7379 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" 7380 rm -f ${build_subdir}/${module}/Makefile 7381 fi 7382 extrasub_build="$extrasub_build 7383/^@if build-$module\$/d 7384/^@endif build-$module\$/d 7385/^@unless build-$module\$/,/^@endunless build-$module\$/d 7386/^@if build-$module-$bootstrap_suffix\$/d 7387/^@endif build-$module-$bootstrap_suffix\$/d 7388/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" 7389done 7390extrasub_host= 7391for module in ${configdirs} ; do 7392 if test -z "${no_recursion}"; then 7393 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do 7394 if test -f ${file}; then 7395 echo 1>&2 "*** removing ${file} to force reconfigure" 7396 rm -f ${file} 7397 fi 7398 done 7399 fi 7400 case ${module},${bootstrap_fixincludes} in 7401 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; 7402 *) host_bootstrap_suffix=$bootstrap_suffix ;; 7403 esac 7404 extrasub_host="$extrasub_host 7405/^@if $module\$/d 7406/^@endif $module\$/d 7407/^@unless $module\$/,/^@endunless $module\$/d 7408/^@if $module-$host_bootstrap_suffix\$/d 7409/^@endif $module-$host_bootstrap_suffix\$/d 7410/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" 7411done 7412extrasub_target= 7413for module in ${target_configdirs} ; do 7414 if test -z "${no_recursion}" \ 7415 && test -f ${target_subdir}/${module}/Makefile; then 7416 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" 7417 rm -f ${target_subdir}/${module}/Makefile 7418 fi 7419 7420 # We only bootstrap target libraries listed in bootstrap_target_libs. 7421 case $bootstrap_target_libs in 7422 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; 7423 *) target_bootstrap_suffix=no-bootstrap ;; 7424 esac 7425 7426 extrasub_target="$extrasub_target 7427/^@if target-$module\$/d 7428/^@endif target-$module\$/d 7429/^@unless target-$module\$/,/^@endunless target-$module\$/d 7430/^@if target-$module-$target_bootstrap_suffix\$/d 7431/^@endif target-$module-$target_bootstrap_suffix\$/d 7432/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" 7433done 7434 7435# Do the final fixup along with target modules. 7436extrasub_target="$extrasub_target 7437/^@if /,/^@endif /d 7438/^@unless /d 7439/^@endunless /d" 7440 7441# Create the serialization dependencies. This uses a temporary file. 7442 7443# Check whether --enable-serial-configure was given. 7444if test "${enable_serial_configure+set}" = set; then : 7445 enableval=$enable_serial_configure; 7446fi 7447 7448 7449case ${enable_serial_configure} in 7450 yes) 7451 enable_serial_build_configure=yes 7452 enable_serial_host_configure=yes 7453 enable_serial_target_configure=yes 7454 ;; 7455esac 7456 7457# These force 'configure's to be done one at a time, to avoid problems 7458# with contention over a shared config.cache. 7459rm -f serdep.tmp 7460echo '# serdep.tmp' > serdep.tmp 7461olditem= 7462test "x${enable_serial_build_configure}" = xyes && 7463for item in ${build_configdirs} ; do 7464 case ${olditem} in 7465 "") ;; 7466 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; 7467 esac 7468 olditem=${item} 7469done 7470olditem= 7471test "x${enable_serial_host_configure}" = xyes && 7472for item in ${configdirs} ; do 7473 case ${olditem} in 7474 "") ;; 7475 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; 7476 esac 7477 olditem=${item} 7478done 7479olditem= 7480test "x${enable_serial_target_configure}" = xyes && 7481for item in ${target_configdirs} ; do 7482 case ${olditem} in 7483 "") ;; 7484 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; 7485 esac 7486 olditem=${item} 7487done 7488serialization_dependencies=serdep.tmp 7489 7490 7491# Base args. Strip norecursion, cache-file, srcdir, host, build, 7492# target, nonopt, and variable assignments. These are the ones we 7493# might not want to pass down to subconfigures. The exception being 7494# --cache-file=/dev/null, which is used to turn off the use of cache 7495# files altogether, and which should be passed on to subconfigures. 7496# Also strip program-prefix, program-suffix, and program-transform-name, 7497# so that we can pass down a consistent program-transform-name. 7498baseargs= 7499tbaseargs= 7500keep_next=no 7501skip_next=no 7502eval "set -- $ac_configure_args" 7503for ac_arg 7504do 7505 if test X"$skip_next" = X"yes"; then 7506 skip_next=no 7507 continue 7508 fi 7509 if test X"$keep_next" = X"yes"; then 7510 case $ac_arg in 7511 *\'*) 7512 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 7513 esac 7514 baseargs="$baseargs '$ac_arg'" 7515 tbaseargs="$tbaseargs '$ac_arg'" 7516 keep_next=no 7517 continue 7518 fi 7519 7520 # Handle separated arguments. Based on the logic generated by 7521 # autoconf 2.59. 7522 case $ac_arg in 7523 *=* | --config-cache | -C | -disable-* | --disable-* \ 7524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 7525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 7526 | -with-* | --with-* | -without-* | --without-* | --x) 7527 separate_arg=no 7528 ;; 7529 -*) 7530 separate_arg=yes 7531 ;; 7532 *) 7533 separate_arg=no 7534 ;; 7535 esac 7536 7537 skip_targ=no 7538 case $ac_arg in 7539 7540 --with-* | --without-*) 7541 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` 7542 7543 case $libopt in 7544 *[-_]include) 7545 lib=`echo "$libopt" | sed 's,[-_]include$,,'` 7546 ;; 7547 *[-_]lib) 7548 lib=`echo "$libopt" | sed 's,[-_]lib$,,'` 7549 ;; 7550 *) 7551 lib=$libopt 7552 ;; 7553 esac 7554 7555 7556 case $lib in 7557 mpc | mpfr | gmp | isl) 7558 # If we're processing --with-$lib, --with-$lib-include or 7559 # --with-$lib-lib, for one of the libs above, and target is 7560 # different from host, don't pass the current argument to any 7561 # target library's configure. 7562 if test x$is_cross_compiler = xyes; then 7563 skip_targ=yes 7564 fi 7565 ;; 7566 esac 7567 ;; 7568 esac 7569 7570 case "$ac_arg" in 7571 --cache-file=/dev/null | \ 7572 -cache-file=/dev/null ) 7573 # Handled here to avoid the test to skip args below. 7574 baseargs="$baseargs '$ac_arg'" 7575 tbaseargs="$tbaseargs '$ac_arg'" 7576 # Assert: $separate_arg should always be no. 7577 keep_next=$separate_arg 7578 ;; 7579 --no*) 7580 continue 7581 ;; 7582 --c* | \ 7583 --sr* | \ 7584 --ho* | \ 7585 --bu* | \ 7586 --t* | \ 7587 --program-* | \ 7588 -cache_file* | \ 7589 -srcdir* | \ 7590 -host* | \ 7591 -build* | \ 7592 -target* | \ 7593 -program-prefix* | \ 7594 -program-suffix* | \ 7595 -program-transform-name* ) 7596 skip_next=$separate_arg 7597 continue 7598 ;; 7599 -*) 7600 # An option. Add it. 7601 case $ac_arg in 7602 *\'*) 7603 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 7604 esac 7605 baseargs="$baseargs '$ac_arg'" 7606 if test X"$skip_targ" = Xno; then 7607 tbaseargs="$tbaseargs '$ac_arg'" 7608 fi 7609 keep_next=$separate_arg 7610 ;; 7611 *) 7612 # Either a variable assignment, or a nonopt (triplet). Don't 7613 # pass it down; let the Makefile handle this. 7614 continue 7615 ;; 7616 esac 7617done 7618# Remove the initial space we just introduced and, as these will be 7619# expanded by make, quote '$'. 7620baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` 7621 7622# Add in --program-transform-name, after --program-prefix and 7623# --program-suffix have been applied to it. Autoconf has already 7624# doubled dollar signs and backslashes in program_transform_name; we want 7625# the backslashes un-doubled, and then the entire thing wrapped in single 7626# quotes, because this will be expanded first by make and then by the shell. 7627# Also, because we want to override the logic in subdir configure scripts to 7628# choose program_transform_name, replace any s,x,x, with s,y,y,. 7629sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out 7630${program_transform_name} 7631EOF_SED 7632gcc_transform_name=`cat conftestsed.out` 7633rm -f conftestsed.out 7634baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" 7635tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" 7636if test "$silent" = yes; then 7637 baseargs="$baseargs --silent" 7638 tbaseargs="$tbaseargs --silent" 7639fi 7640baseargs="$baseargs --disable-option-checking" 7641tbaseargs="$tbaseargs --disable-option-checking" 7642 7643# Record and document user additions to sub configure arguments. 7644 7645 7646 7647 7648# For the build-side libraries, we just need to pretend we're native, 7649# and not use the same cache file. Multilibs are neither needed nor 7650# desired. We can't even use the same cache file for all build-side 7651# libraries, as they're compiled differently; some with C, some with 7652# C++ or with different feature-enabling options. 7653build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" 7654 7655# For host modules, accept cache file option, or specification as blank. 7656case "${cache_file}" in 7657"") # empty 7658 cache_file_option="" ;; 7659/* | [A-Za-z]:[\\/]* ) # absolute path 7660 cache_file_option="--cache-file=${cache_file}" ;; 7661*) # relative path 7662 cache_file_option="--cache-file=../${cache_file}" ;; 7663esac 7664 7665# Host dirs don't like to share a cache file either, horribly enough. 7666# This seems to be due to autoconf 2.5x stupidity. 7667host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" 7668 7669target_configargs="$target_configargs ${tbaseargs}" 7670 7671# Passing a --with-cross-host argument lets the target libraries know 7672# whether they are being built with a cross-compiler or being built 7673# native. However, it would be better to use other mechanisms to make the 7674# sorts of decisions they want to make on this basis. Please consider 7675# this option to be deprecated. FIXME. 7676if test x${is_cross_compiler} = xyes ; then 7677 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" 7678fi 7679 7680# Special user-friendly check for native x86_64-linux build, if 7681# multilib is not explicitly enabled. 7682case "$target:$have_compiler:$host:$target:$enable_multilib" in 7683 x86_64-*linux*:yes:$build:$build:) 7684 # Make sure we have a development environment that handles 32-bit 7685 dev64=no 7686 echo "int main () { return 0; }" > conftest.c 7687 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c 7688 if test $? = 0 ; then 7689 if test -s conftest || test -s conftest.exe ; then 7690 dev64=yes 7691 fi 7692 fi 7693 rm -f conftest* 7694 if test x${dev64} != xyes ; then 7695 as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 7696 fi 7697 ;; 7698esac 7699 7700# Default to --enable-multilib. 7701if test x${enable_multilib} = x ; then 7702 target_configargs="--enable-multilib ${target_configargs}" 7703fi 7704 7705# Pass --with-newlib if appropriate. Note that target_configdirs has 7706# changed from the earlier setting of with_newlib. 7707if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then 7708 target_configargs="--with-newlib ${target_configargs}" 7709fi 7710 7711# Different target subdirs use different values of certain variables 7712# (notably CXX). Worse, multilibs use *lots* of different values. 7713# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that 7714# it doesn't automatically accept command-line overrides of them. 7715# This means it's not safe for target subdirs to share a cache file, 7716# which is disgusting, but there you have it. Hopefully this can be 7717# fixed in future. It's still worthwhile to use a cache file for each 7718# directory. I think. 7719 7720# Pass the appropriate --build, --host, --target and --cache-file arguments. 7721# We need to pass --target, as newer autoconf's requires consistency 7722# for target_alias and gcc doesn't manage it consistently. 7723target_configargs="--cache-file=./config.cache ${target_configargs}" 7724 7725FLAGS_FOR_TARGET= 7726case " $target_configdirs " in 7727 *" newlib "*) 7728 case " $target_configargs " in 7729 *" --with-newlib "*) 7730 case "$target" in 7731 *-cygwin*) 7732 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' 7733 ;; 7734 esac 7735 7736 # If we're not building GCC, don't discard standard headers. 7737 if test -d ${srcdir}/gcc; then 7738 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' 7739 7740 if test "${build}" != "${host}"; then 7741 # On Canadian crosses, CC_FOR_TARGET will have already been set 7742 # by `configure', so we won't have an opportunity to add -Bgcc/ 7743 # to it. This is right: we don't want to search that directory 7744 # for binaries, but we want the header files in there, so add 7745 # them explicitly. 7746 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' 7747 7748 # Someone might think of using the pre-installed headers on 7749 # Canadian crosses, in case the installed compiler is not fully 7750 # compatible with the compiler being built. In this case, it 7751 # would be better to flag an error than risking having 7752 # incompatible object files being constructed. We can't 7753 # guarantee that an error will be flagged, but let's hope the 7754 # compiler will do it, when presented with incompatible header 7755 # files. 7756 fi 7757 fi 7758 7759 case "${target}-${is_cross_compiler}" in 7760 i[3456789]86-*-linux*-no) 7761 # Here host == target, so we don't need to build gcc, 7762 # so we don't want to discard standard headers. 7763 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` 7764 ;; 7765 *) 7766 # If we're building newlib, use its generic headers last, but search 7767 # for any libc-related directories first (so make it the last -B 7768 # switch). 7769 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' 7770 7771 # If we're building libgloss, find the startup file, simulator library 7772 # and linker script. 7773 case " $target_configdirs " in 7774 *" libgloss "*) 7775 # Look for startup file, simulator library and maybe linker script. 7776 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" 7777 # Look for libnosys.a in case the target needs it. 7778 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' 7779 # Most targets have the linker script in the source directory. 7780 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" 7781 ;; 7782 esac 7783 ;; 7784 esac 7785 ;; 7786 esac 7787 ;; 7788esac 7789 7790case "$target" in 7791 x86_64-*mingw* | *-w64-mingw*) 7792 # MinGW-w64 does not use newlib, nor does it use winsup. It may, 7793 # however, use a symlink named 'mingw' in ${prefix} . 7794 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' 7795 ;; 7796 *-mingw*) 7797 # MinGW can't be handled as Cygwin above since it does not use newlib. 7798 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' 7799 ;; 7800esac 7801 7802# Allow the user to override the flags for 7803# our build compiler if desired. 7804if test x"${build}" = x"${host}" ; then 7805 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} 7806 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} 7807 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} 7808fi 7809 7810# On Canadian crosses, we'll be searching the right directories for 7811# the previously-installed cross compiler, so don't bother to add 7812# flags for directories within the install tree of the compiler 7813# being built; programs in there won't even run. 7814if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then 7815 # Search for pre-installed headers if nothing else fits. 7816 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' 7817fi 7818 7819if test "x${use_gnu_ld}" = x && 7820 echo " ${configdirs} " | grep " ld " > /dev/null ; then 7821 # Arrange for us to find uninstalled linker scripts. 7822 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' 7823fi 7824 7825# Search for other target-specific linker scripts and such. 7826case "${target}" in 7827 mep*) 7828 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" 7829 ;; 7830esac 7831 7832# Makefile fragments. 7833for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; 7834do 7835 eval fragval=\$$frag 7836 if test $fragval != /dev/null; then 7837 eval $frag=${srcdir}/$fragval 7838 fi 7839done 7840 7841 7842 7843 7844 7845# Miscellanea: directories, flags, etc. 7846 7847 7848 7849 7850 7851 7852 7853 7854# Build module lists & subconfigure args. 7855 7856 7857 7858# Host module lists & subconfigure args. 7859 7860 7861 7862 7863# Target module lists & subconfigure args. 7864 7865 7866 7867# Build tools. 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884# Generate default definitions for YACC, M4, LEX and other programs that run 7885# on the build machine. These are used if the Makefile can't locate these 7886# programs in objdir. 7887MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing 7888 7889for ac_prog in 'bison -y' byacc yacc 7890do 7891 # Extract the first word of "$ac_prog", so it can be a program name with args. 7892set dummy $ac_prog; ac_word=$2 7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7894$as_echo_n "checking for $ac_word... " >&6; } 7895if ${ac_cv_prog_YACC+:} false; then : 7896 $as_echo_n "(cached) " >&6 7897else 7898 if test -n "$YACC"; then 7899 ac_cv_prog_YACC="$YACC" # Let the user override the test. 7900else 7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7902for as_dir in $PATH 7903do 7904 IFS=$as_save_IFS 7905 test -z "$as_dir" && as_dir=. 7906 for ac_exec_ext in '' $ac_executable_extensions; do 7907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7908 ac_cv_prog_YACC="$ac_prog" 7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7910 break 2 7911 fi 7912done 7913 done 7914IFS=$as_save_IFS 7915 7916fi 7917fi 7918YACC=$ac_cv_prog_YACC 7919if test -n "$YACC"; then 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 7921$as_echo "$YACC" >&6; } 7922else 7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7924$as_echo "no" >&6; } 7925fi 7926 7927 7928 test -n "$YACC" && break 7929done 7930test -n "$YACC" || YACC="$MISSING bison -y" 7931 7932case " $build_configdirs " in 7933 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; 7934esac 7935 7936for ac_prog in bison 7937do 7938 # Extract the first word of "$ac_prog", so it can be a program name with args. 7939set dummy $ac_prog; ac_word=$2 7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7941$as_echo_n "checking for $ac_word... " >&6; } 7942if ${ac_cv_prog_BISON+:} false; then : 7943 $as_echo_n "(cached) " >&6 7944else 7945 if test -n "$BISON"; then 7946 ac_cv_prog_BISON="$BISON" # Let the user override the test. 7947else 7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7949for as_dir in $PATH 7950do 7951 IFS=$as_save_IFS 7952 test -z "$as_dir" && as_dir=. 7953 for ac_exec_ext in '' $ac_executable_extensions; do 7954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7955 ac_cv_prog_BISON="$ac_prog" 7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7957 break 2 7958 fi 7959done 7960 done 7961IFS=$as_save_IFS 7962 7963fi 7964fi 7965BISON=$ac_cv_prog_BISON 7966if test -n "$BISON"; then 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 7968$as_echo "$BISON" >&6; } 7969else 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7971$as_echo "no" >&6; } 7972fi 7973 7974 7975 test -n "$BISON" && break 7976done 7977test -n "$BISON" || BISON="$MISSING bison" 7978 7979case " $build_configdirs " in 7980 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; 7981esac 7982 7983for ac_prog in gm4 gnum4 m4 7984do 7985 # Extract the first word of "$ac_prog", so it can be a program name with args. 7986set dummy $ac_prog; ac_word=$2 7987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7988$as_echo_n "checking for $ac_word... " >&6; } 7989if ${ac_cv_prog_M4+:} false; then : 7990 $as_echo_n "(cached) " >&6 7991else 7992 if test -n "$M4"; then 7993 ac_cv_prog_M4="$M4" # Let the user override the test. 7994else 7995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7996for as_dir in $PATH 7997do 7998 IFS=$as_save_IFS 7999 test -z "$as_dir" && as_dir=. 8000 for ac_exec_ext in '' $ac_executable_extensions; do 8001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8002 ac_cv_prog_M4="$ac_prog" 8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8004 break 2 8005 fi 8006done 8007 done 8008IFS=$as_save_IFS 8009 8010fi 8011fi 8012M4=$ac_cv_prog_M4 8013if test -n "$M4"; then 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 8015$as_echo "$M4" >&6; } 8016else 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8018$as_echo "no" >&6; } 8019fi 8020 8021 8022 test -n "$M4" && break 8023done 8024test -n "$M4" || M4="$MISSING m4" 8025 8026case " $build_configdirs " in 8027 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; 8028esac 8029 8030for ac_prog in flex lex 8031do 8032 # Extract the first word of "$ac_prog", so it can be a program name with args. 8033set dummy $ac_prog; ac_word=$2 8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8035$as_echo_n "checking for $ac_word... " >&6; } 8036if ${ac_cv_prog_LEX+:} false; then : 8037 $as_echo_n "(cached) " >&6 8038else 8039 if test -n "$LEX"; then 8040 ac_cv_prog_LEX="$LEX" # Let the user override the test. 8041else 8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8043for as_dir in $PATH 8044do 8045 IFS=$as_save_IFS 8046 test -z "$as_dir" && as_dir=. 8047 for ac_exec_ext in '' $ac_executable_extensions; do 8048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8049 ac_cv_prog_LEX="$ac_prog" 8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8051 break 2 8052 fi 8053done 8054 done 8055IFS=$as_save_IFS 8056 8057fi 8058fi 8059LEX=$ac_cv_prog_LEX 8060if test -n "$LEX"; then 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 8062$as_echo "$LEX" >&6; } 8063else 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8065$as_echo "no" >&6; } 8066fi 8067 8068 8069 test -n "$LEX" && break 8070done 8071test -n "$LEX" || LEX="$MISSING flex" 8072 8073case " $build_configdirs " in 8074 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; 8075 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; 8076esac 8077 8078for ac_prog in flex 8079do 8080 # Extract the first word of "$ac_prog", so it can be a program name with args. 8081set dummy $ac_prog; ac_word=$2 8082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8083$as_echo_n "checking for $ac_word... " >&6; } 8084if ${ac_cv_prog_FLEX+:} false; then : 8085 $as_echo_n "(cached) " >&6 8086else 8087 if test -n "$FLEX"; then 8088 ac_cv_prog_FLEX="$FLEX" # Let the user override the test. 8089else 8090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8091for as_dir in $PATH 8092do 8093 IFS=$as_save_IFS 8094 test -z "$as_dir" && as_dir=. 8095 for ac_exec_ext in '' $ac_executable_extensions; do 8096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8097 ac_cv_prog_FLEX="$ac_prog" 8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8099 break 2 8100 fi 8101done 8102 done 8103IFS=$as_save_IFS 8104 8105fi 8106fi 8107FLEX=$ac_cv_prog_FLEX 8108if test -n "$FLEX"; then 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 8110$as_echo "$FLEX" >&6; } 8111else 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8113$as_echo "no" >&6; } 8114fi 8115 8116 8117 test -n "$FLEX" && break 8118done 8119test -n "$FLEX" || FLEX="$MISSING flex" 8120 8121case " $build_configdirs " in 8122 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; 8123esac 8124 8125for ac_prog in makeinfo 8126do 8127 # Extract the first word of "$ac_prog", so it can be a program name with args. 8128set dummy $ac_prog; ac_word=$2 8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8130$as_echo_n "checking for $ac_word... " >&6; } 8131if ${ac_cv_prog_MAKEINFO+:} false; then : 8132 $as_echo_n "(cached) " >&6 8133else 8134 if test -n "$MAKEINFO"; then 8135 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 8136else 8137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8138for as_dir in $PATH 8139do 8140 IFS=$as_save_IFS 8141 test -z "$as_dir" && as_dir=. 8142 for ac_exec_ext in '' $ac_executable_extensions; do 8143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8144 ac_cv_prog_MAKEINFO="$ac_prog" 8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8146 break 2 8147 fi 8148done 8149 done 8150IFS=$as_save_IFS 8151 8152fi 8153fi 8154MAKEINFO=$ac_cv_prog_MAKEINFO 8155if test -n "$MAKEINFO"; then 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 8157$as_echo "$MAKEINFO" >&6; } 8158else 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8160$as_echo "no" >&6; } 8161fi 8162 8163 8164 test -n "$MAKEINFO" && break 8165done 8166test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" 8167 8168case " $build_configdirs " in 8169 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; 8170 *) 8171 8172 # For an installed makeinfo, we require it to be from texinfo 4.7 or 8173 # higher, else we use the "missing" dummy. 8174 if ${MAKEINFO} --version \ 8175 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then 8176 : 8177 else 8178 MAKEINFO="$MISSING makeinfo" 8179 fi 8180 ;; 8181 8182esac 8183 8184# FIXME: expect and dejagnu may become build tools? 8185 8186for ac_prog in expect 8187do 8188 # Extract the first word of "$ac_prog", so it can be a program name with args. 8189set dummy $ac_prog; ac_word=$2 8190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8191$as_echo_n "checking for $ac_word... " >&6; } 8192if ${ac_cv_prog_EXPECT+:} false; then : 8193 $as_echo_n "(cached) " >&6 8194else 8195 if test -n "$EXPECT"; then 8196 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. 8197else 8198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8199for as_dir in $PATH 8200do 8201 IFS=$as_save_IFS 8202 test -z "$as_dir" && as_dir=. 8203 for ac_exec_ext in '' $ac_executable_extensions; do 8204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8205 ac_cv_prog_EXPECT="$ac_prog" 8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8207 break 2 8208 fi 8209done 8210 done 8211IFS=$as_save_IFS 8212 8213fi 8214fi 8215EXPECT=$ac_cv_prog_EXPECT 8216if test -n "$EXPECT"; then 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 8218$as_echo "$EXPECT" >&6; } 8219else 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8221$as_echo "no" >&6; } 8222fi 8223 8224 8225 test -n "$EXPECT" && break 8226done 8227test -n "$EXPECT" || EXPECT="expect" 8228 8229case " $configdirs " in 8230 *" expect "*) 8231 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' 8232 ;; 8233esac 8234 8235for ac_prog in runtest 8236do 8237 # Extract the first word of "$ac_prog", so it can be a program name with args. 8238set dummy $ac_prog; ac_word=$2 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8240$as_echo_n "checking for $ac_word... " >&6; } 8241if ${ac_cv_prog_RUNTEST+:} false; then : 8242 $as_echo_n "(cached) " >&6 8243else 8244 if test -n "$RUNTEST"; then 8245 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. 8246else 8247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8248for as_dir in $PATH 8249do 8250 IFS=$as_save_IFS 8251 test -z "$as_dir" && as_dir=. 8252 for ac_exec_ext in '' $ac_executable_extensions; do 8253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8254 ac_cv_prog_RUNTEST="$ac_prog" 8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8256 break 2 8257 fi 8258done 8259 done 8260IFS=$as_save_IFS 8261 8262fi 8263fi 8264RUNTEST=$ac_cv_prog_RUNTEST 8265if test -n "$RUNTEST"; then 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 8267$as_echo "$RUNTEST" >&6; } 8268else 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8270$as_echo "no" >&6; } 8271fi 8272 8273 8274 test -n "$RUNTEST" && break 8275done 8276test -n "$RUNTEST" || RUNTEST="runtest" 8277 8278case " $configdirs " in 8279 *" dejagnu "*) 8280 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' 8281 ;; 8282esac 8283 8284 8285# Host tools. 8286ncn_tool_prefix= 8287test -n "$host_alias" && ncn_tool_prefix=$host_alias- 8288ncn_target_tool_prefix= 8289test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- 8290 8291 8292 8293if test -n "$AR"; then 8294 ac_cv_prog_AR=$AR 8295elif test -n "$ac_cv_prog_AR"; then 8296 AR=$ac_cv_prog_AR 8297fi 8298 8299if test -n "$ac_cv_prog_AR"; then 8300 for ncn_progname in ar; do 8301 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8302set dummy ${ncn_progname}; ac_word=$2 8303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8304$as_echo_n "checking for $ac_word... " >&6; } 8305if ${ac_cv_prog_AR+:} false; then : 8306 $as_echo_n "(cached) " >&6 8307else 8308 if test -n "$AR"; then 8309 ac_cv_prog_AR="$AR" # Let the user override the test. 8310else 8311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8312for as_dir in $PATH 8313do 8314 IFS=$as_save_IFS 8315 test -z "$as_dir" && as_dir=. 8316 for ac_exec_ext in '' $ac_executable_extensions; do 8317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8318 ac_cv_prog_AR="${ncn_progname}" 8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8320 break 2 8321 fi 8322done 8323 done 8324IFS=$as_save_IFS 8325 8326fi 8327fi 8328AR=$ac_cv_prog_AR 8329if test -n "$AR"; then 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8331$as_echo "$AR" >&6; } 8332else 8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8334$as_echo "no" >&6; } 8335fi 8336 8337 8338 done 8339fi 8340 8341for ncn_progname in ar; do 8342 if test -n "$ncn_tool_prefix"; then 8343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8344set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8346$as_echo_n "checking for $ac_word... " >&6; } 8347if ${ac_cv_prog_AR+:} false; then : 8348 $as_echo_n "(cached) " >&6 8349else 8350 if test -n "$AR"; then 8351 ac_cv_prog_AR="$AR" # Let the user override the test. 8352else 8353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8354for as_dir in $PATH 8355do 8356 IFS=$as_save_IFS 8357 test -z "$as_dir" && as_dir=. 8358 for ac_exec_ext in '' $ac_executable_extensions; do 8359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8360 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" 8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8362 break 2 8363 fi 8364done 8365 done 8366IFS=$as_save_IFS 8367 8368fi 8369fi 8370AR=$ac_cv_prog_AR 8371if test -n "$AR"; then 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8373$as_echo "$AR" >&6; } 8374else 8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8376$as_echo "no" >&6; } 8377fi 8378 8379 8380 fi 8381 if test -z "$ac_cv_prog_AR" && test $build = $host ; then 8382 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8383set dummy ${ncn_progname}; ac_word=$2 8384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8385$as_echo_n "checking for $ac_word... " >&6; } 8386if ${ac_cv_prog_AR+:} false; then : 8387 $as_echo_n "(cached) " >&6 8388else 8389 if test -n "$AR"; then 8390 ac_cv_prog_AR="$AR" # Let the user override the test. 8391else 8392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8393for as_dir in $PATH 8394do 8395 IFS=$as_save_IFS 8396 test -z "$as_dir" && as_dir=. 8397 for ac_exec_ext in '' $ac_executable_extensions; do 8398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8399 ac_cv_prog_AR="${ncn_progname}" 8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8401 break 2 8402 fi 8403done 8404 done 8405IFS=$as_save_IFS 8406 8407fi 8408fi 8409AR=$ac_cv_prog_AR 8410if test -n "$AR"; then 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8412$as_echo "$AR" >&6; } 8413else 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8415$as_echo "no" >&6; } 8416fi 8417 8418 8419 fi 8420 test -n "$ac_cv_prog_AR" && break 8421done 8422 8423if test -z "$ac_cv_prog_AR" ; then 8424 set dummy ar 8425 if test $build = $host ; then 8426 AR="$2" 8427 else 8428 AR="${ncn_tool_prefix}$2" 8429 fi 8430fi 8431 8432 8433 8434if test -n "$AS"; then 8435 ac_cv_prog_AS=$AS 8436elif test -n "$ac_cv_prog_AS"; then 8437 AS=$ac_cv_prog_AS 8438fi 8439 8440if test -n "$ac_cv_prog_AS"; then 8441 for ncn_progname in as; do 8442 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8443set dummy ${ncn_progname}; ac_word=$2 8444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8445$as_echo_n "checking for $ac_word... " >&6; } 8446if ${ac_cv_prog_AS+:} false; then : 8447 $as_echo_n "(cached) " >&6 8448else 8449 if test -n "$AS"; then 8450 ac_cv_prog_AS="$AS" # Let the user override the test. 8451else 8452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8453for as_dir in $PATH 8454do 8455 IFS=$as_save_IFS 8456 test -z "$as_dir" && as_dir=. 8457 for ac_exec_ext in '' $ac_executable_extensions; do 8458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8459 ac_cv_prog_AS="${ncn_progname}" 8460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8461 break 2 8462 fi 8463done 8464 done 8465IFS=$as_save_IFS 8466 8467fi 8468fi 8469AS=$ac_cv_prog_AS 8470if test -n "$AS"; then 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8472$as_echo "$AS" >&6; } 8473else 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8475$as_echo "no" >&6; } 8476fi 8477 8478 8479 done 8480fi 8481 8482for ncn_progname in as; do 8483 if test -n "$ncn_tool_prefix"; then 8484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8485set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8487$as_echo_n "checking for $ac_word... " >&6; } 8488if ${ac_cv_prog_AS+:} false; then : 8489 $as_echo_n "(cached) " >&6 8490else 8491 if test -n "$AS"; then 8492 ac_cv_prog_AS="$AS" # Let the user override the test. 8493else 8494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8495for as_dir in $PATH 8496do 8497 IFS=$as_save_IFS 8498 test -z "$as_dir" && as_dir=. 8499 for ac_exec_ext in '' $ac_executable_extensions; do 8500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8501 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" 8502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8503 break 2 8504 fi 8505done 8506 done 8507IFS=$as_save_IFS 8508 8509fi 8510fi 8511AS=$ac_cv_prog_AS 8512if test -n "$AS"; then 8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8514$as_echo "$AS" >&6; } 8515else 8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8517$as_echo "no" >&6; } 8518fi 8519 8520 8521 fi 8522 if test -z "$ac_cv_prog_AS" && test $build = $host ; then 8523 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8524set dummy ${ncn_progname}; ac_word=$2 8525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8526$as_echo_n "checking for $ac_word... " >&6; } 8527if ${ac_cv_prog_AS+:} false; then : 8528 $as_echo_n "(cached) " >&6 8529else 8530 if test -n "$AS"; then 8531 ac_cv_prog_AS="$AS" # Let the user override the test. 8532else 8533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8534for as_dir in $PATH 8535do 8536 IFS=$as_save_IFS 8537 test -z "$as_dir" && as_dir=. 8538 for ac_exec_ext in '' $ac_executable_extensions; do 8539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8540 ac_cv_prog_AS="${ncn_progname}" 8541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8542 break 2 8543 fi 8544done 8545 done 8546IFS=$as_save_IFS 8547 8548fi 8549fi 8550AS=$ac_cv_prog_AS 8551if test -n "$AS"; then 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8553$as_echo "$AS" >&6; } 8554else 8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8556$as_echo "no" >&6; } 8557fi 8558 8559 8560 fi 8561 test -n "$ac_cv_prog_AS" && break 8562done 8563 8564if test -z "$ac_cv_prog_AS" ; then 8565 set dummy as 8566 if test $build = $host ; then 8567 AS="$2" 8568 else 8569 AS="${ncn_tool_prefix}$2" 8570 fi 8571fi 8572 8573 8574 8575if test -n "$DLLTOOL"; then 8576 ac_cv_prog_DLLTOOL=$DLLTOOL 8577elif test -n "$ac_cv_prog_DLLTOOL"; then 8578 DLLTOOL=$ac_cv_prog_DLLTOOL 8579fi 8580 8581if test -n "$ac_cv_prog_DLLTOOL"; then 8582 for ncn_progname in dlltool; do 8583 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8584set dummy ${ncn_progname}; ac_word=$2 8585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8586$as_echo_n "checking for $ac_word... " >&6; } 8587if ${ac_cv_prog_DLLTOOL+:} false; then : 8588 $as_echo_n "(cached) " >&6 8589else 8590 if test -n "$DLLTOOL"; then 8591 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8592else 8593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8594for as_dir in $PATH 8595do 8596 IFS=$as_save_IFS 8597 test -z "$as_dir" && as_dir=. 8598 for ac_exec_ext in '' $ac_executable_extensions; do 8599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8600 ac_cv_prog_DLLTOOL="${ncn_progname}" 8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8602 break 2 8603 fi 8604done 8605 done 8606IFS=$as_save_IFS 8607 8608fi 8609fi 8610DLLTOOL=$ac_cv_prog_DLLTOOL 8611if test -n "$DLLTOOL"; then 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8613$as_echo "$DLLTOOL" >&6; } 8614else 8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8616$as_echo "no" >&6; } 8617fi 8618 8619 8620 done 8621fi 8622 8623for ncn_progname in dlltool; do 8624 if test -n "$ncn_tool_prefix"; then 8625 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8626set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8628$as_echo_n "checking for $ac_word... " >&6; } 8629if ${ac_cv_prog_DLLTOOL+:} false; then : 8630 $as_echo_n "(cached) " >&6 8631else 8632 if test -n "$DLLTOOL"; then 8633 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8634else 8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8636for as_dir in $PATH 8637do 8638 IFS=$as_save_IFS 8639 test -z "$as_dir" && as_dir=. 8640 for ac_exec_ext in '' $ac_executable_extensions; do 8641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8642 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" 8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8644 break 2 8645 fi 8646done 8647 done 8648IFS=$as_save_IFS 8649 8650fi 8651fi 8652DLLTOOL=$ac_cv_prog_DLLTOOL 8653if test -n "$DLLTOOL"; then 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8655$as_echo "$DLLTOOL" >&6; } 8656else 8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8658$as_echo "no" >&6; } 8659fi 8660 8661 8662 fi 8663 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then 8664 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8665set dummy ${ncn_progname}; ac_word=$2 8666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8667$as_echo_n "checking for $ac_word... " >&6; } 8668if ${ac_cv_prog_DLLTOOL+:} false; then : 8669 $as_echo_n "(cached) " >&6 8670else 8671 if test -n "$DLLTOOL"; then 8672 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8673else 8674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8675for as_dir in $PATH 8676do 8677 IFS=$as_save_IFS 8678 test -z "$as_dir" && as_dir=. 8679 for ac_exec_ext in '' $ac_executable_extensions; do 8680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8681 ac_cv_prog_DLLTOOL="${ncn_progname}" 8682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8683 break 2 8684 fi 8685done 8686 done 8687IFS=$as_save_IFS 8688 8689fi 8690fi 8691DLLTOOL=$ac_cv_prog_DLLTOOL 8692if test -n "$DLLTOOL"; then 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8694$as_echo "$DLLTOOL" >&6; } 8695else 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8697$as_echo "no" >&6; } 8698fi 8699 8700 8701 fi 8702 test -n "$ac_cv_prog_DLLTOOL" && break 8703done 8704 8705if test -z "$ac_cv_prog_DLLTOOL" ; then 8706 set dummy dlltool 8707 if test $build = $host ; then 8708 DLLTOOL="$2" 8709 else 8710 DLLTOOL="${ncn_tool_prefix}$2" 8711 fi 8712fi 8713 8714 8715 8716if test -n "$LD"; then 8717 ac_cv_prog_LD=$LD 8718elif test -n "$ac_cv_prog_LD"; then 8719 LD=$ac_cv_prog_LD 8720fi 8721 8722if test -n "$ac_cv_prog_LD"; then 8723 for ncn_progname in ld; do 8724 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8725set dummy ${ncn_progname}; ac_word=$2 8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8727$as_echo_n "checking for $ac_word... " >&6; } 8728if ${ac_cv_prog_LD+:} false; then : 8729 $as_echo_n "(cached) " >&6 8730else 8731 if test -n "$LD"; then 8732 ac_cv_prog_LD="$LD" # Let the user override the test. 8733else 8734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8735for as_dir in $PATH 8736do 8737 IFS=$as_save_IFS 8738 test -z "$as_dir" && as_dir=. 8739 for ac_exec_ext in '' $ac_executable_extensions; do 8740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8741 ac_cv_prog_LD="${ncn_progname}" 8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8743 break 2 8744 fi 8745done 8746 done 8747IFS=$as_save_IFS 8748 8749fi 8750fi 8751LD=$ac_cv_prog_LD 8752if test -n "$LD"; then 8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8754$as_echo "$LD" >&6; } 8755else 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8757$as_echo "no" >&6; } 8758fi 8759 8760 8761 done 8762fi 8763 8764for ncn_progname in ld; do 8765 if test -n "$ncn_tool_prefix"; then 8766 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8767set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8769$as_echo_n "checking for $ac_word... " >&6; } 8770if ${ac_cv_prog_LD+:} false; then : 8771 $as_echo_n "(cached) " >&6 8772else 8773 if test -n "$LD"; then 8774 ac_cv_prog_LD="$LD" # Let the user override the test. 8775else 8776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8777for as_dir in $PATH 8778do 8779 IFS=$as_save_IFS 8780 test -z "$as_dir" && as_dir=. 8781 for ac_exec_ext in '' $ac_executable_extensions; do 8782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8783 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" 8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8785 break 2 8786 fi 8787done 8788 done 8789IFS=$as_save_IFS 8790 8791fi 8792fi 8793LD=$ac_cv_prog_LD 8794if test -n "$LD"; then 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8796$as_echo "$LD" >&6; } 8797else 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8799$as_echo "no" >&6; } 8800fi 8801 8802 8803 fi 8804 if test -z "$ac_cv_prog_LD" && test $build = $host ; then 8805 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8806set dummy ${ncn_progname}; ac_word=$2 8807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8808$as_echo_n "checking for $ac_word... " >&6; } 8809if ${ac_cv_prog_LD+:} false; then : 8810 $as_echo_n "(cached) " >&6 8811else 8812 if test -n "$LD"; then 8813 ac_cv_prog_LD="$LD" # Let the user override the test. 8814else 8815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8816for as_dir in $PATH 8817do 8818 IFS=$as_save_IFS 8819 test -z "$as_dir" && as_dir=. 8820 for ac_exec_ext in '' $ac_executable_extensions; do 8821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8822 ac_cv_prog_LD="${ncn_progname}" 8823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8824 break 2 8825 fi 8826done 8827 done 8828IFS=$as_save_IFS 8829 8830fi 8831fi 8832LD=$ac_cv_prog_LD 8833if test -n "$LD"; then 8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8835$as_echo "$LD" >&6; } 8836else 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8838$as_echo "no" >&6; } 8839fi 8840 8841 8842 fi 8843 test -n "$ac_cv_prog_LD" && break 8844done 8845 8846if test -z "$ac_cv_prog_LD" ; then 8847 set dummy ld 8848 if test $build = $host ; then 8849 LD="$2" 8850 else 8851 LD="${ncn_tool_prefix}$2" 8852 fi 8853fi 8854 8855 8856 8857if test -n "$LIPO"; then 8858 ac_cv_prog_LIPO=$LIPO 8859elif test -n "$ac_cv_prog_LIPO"; then 8860 LIPO=$ac_cv_prog_LIPO 8861fi 8862 8863if test -n "$ac_cv_prog_LIPO"; then 8864 for ncn_progname in lipo; do 8865 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8866set dummy ${ncn_progname}; ac_word=$2 8867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8868$as_echo_n "checking for $ac_word... " >&6; } 8869if ${ac_cv_prog_LIPO+:} false; then : 8870 $as_echo_n "(cached) " >&6 8871else 8872 if test -n "$LIPO"; then 8873 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8874else 8875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8876for as_dir in $PATH 8877do 8878 IFS=$as_save_IFS 8879 test -z "$as_dir" && as_dir=. 8880 for ac_exec_ext in '' $ac_executable_extensions; do 8881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8882 ac_cv_prog_LIPO="${ncn_progname}" 8883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8884 break 2 8885 fi 8886done 8887 done 8888IFS=$as_save_IFS 8889 8890fi 8891fi 8892LIPO=$ac_cv_prog_LIPO 8893if test -n "$LIPO"; then 8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8895$as_echo "$LIPO" >&6; } 8896else 8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8898$as_echo "no" >&6; } 8899fi 8900 8901 8902 done 8903fi 8904 8905for ncn_progname in lipo; do 8906 if test -n "$ncn_tool_prefix"; then 8907 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8908set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8910$as_echo_n "checking for $ac_word... " >&6; } 8911if ${ac_cv_prog_LIPO+:} false; then : 8912 $as_echo_n "(cached) " >&6 8913else 8914 if test -n "$LIPO"; then 8915 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8916else 8917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8918for as_dir in $PATH 8919do 8920 IFS=$as_save_IFS 8921 test -z "$as_dir" && as_dir=. 8922 for ac_exec_ext in '' $ac_executable_extensions; do 8923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8924 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" 8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8926 break 2 8927 fi 8928done 8929 done 8930IFS=$as_save_IFS 8931 8932fi 8933fi 8934LIPO=$ac_cv_prog_LIPO 8935if test -n "$LIPO"; then 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8937$as_echo "$LIPO" >&6; } 8938else 8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8940$as_echo "no" >&6; } 8941fi 8942 8943 8944 fi 8945 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then 8946 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8947set dummy ${ncn_progname}; ac_word=$2 8948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8949$as_echo_n "checking for $ac_word... " >&6; } 8950if ${ac_cv_prog_LIPO+:} false; then : 8951 $as_echo_n "(cached) " >&6 8952else 8953 if test -n "$LIPO"; then 8954 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8955else 8956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8957for as_dir in $PATH 8958do 8959 IFS=$as_save_IFS 8960 test -z "$as_dir" && as_dir=. 8961 for ac_exec_ext in '' $ac_executable_extensions; do 8962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8963 ac_cv_prog_LIPO="${ncn_progname}" 8964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8965 break 2 8966 fi 8967done 8968 done 8969IFS=$as_save_IFS 8970 8971fi 8972fi 8973LIPO=$ac_cv_prog_LIPO 8974if test -n "$LIPO"; then 8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8976$as_echo "$LIPO" >&6; } 8977else 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8979$as_echo "no" >&6; } 8980fi 8981 8982 8983 fi 8984 test -n "$ac_cv_prog_LIPO" && break 8985done 8986 8987if test -z "$ac_cv_prog_LIPO" ; then 8988 set dummy lipo 8989 if test $build = $host ; then 8990 LIPO="$2" 8991 else 8992 LIPO="${ncn_tool_prefix}$2" 8993 fi 8994fi 8995 8996 8997 8998if test -n "$NM"; then 8999 ac_cv_prog_NM=$NM 9000elif test -n "$ac_cv_prog_NM"; then 9001 NM=$ac_cv_prog_NM 9002fi 9003 9004if test -n "$ac_cv_prog_NM"; then 9005 for ncn_progname in nm; do 9006 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9007set dummy ${ncn_progname}; ac_word=$2 9008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9009$as_echo_n "checking for $ac_word... " >&6; } 9010if ${ac_cv_prog_NM+:} false; then : 9011 $as_echo_n "(cached) " >&6 9012else 9013 if test -n "$NM"; then 9014 ac_cv_prog_NM="$NM" # Let the user override the test. 9015else 9016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9017for as_dir in $PATH 9018do 9019 IFS=$as_save_IFS 9020 test -z "$as_dir" && as_dir=. 9021 for ac_exec_ext in '' $ac_executable_extensions; do 9022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9023 ac_cv_prog_NM="${ncn_progname}" 9024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9025 break 2 9026 fi 9027done 9028 done 9029IFS=$as_save_IFS 9030 9031fi 9032fi 9033NM=$ac_cv_prog_NM 9034if test -n "$NM"; then 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 9036$as_echo "$NM" >&6; } 9037else 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9039$as_echo "no" >&6; } 9040fi 9041 9042 9043 done 9044fi 9045 9046for ncn_progname in nm; do 9047 if test -n "$ncn_tool_prefix"; then 9048 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9049set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9051$as_echo_n "checking for $ac_word... " >&6; } 9052if ${ac_cv_prog_NM+:} false; then : 9053 $as_echo_n "(cached) " >&6 9054else 9055 if test -n "$NM"; then 9056 ac_cv_prog_NM="$NM" # Let the user override the test. 9057else 9058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9059for as_dir in $PATH 9060do 9061 IFS=$as_save_IFS 9062 test -z "$as_dir" && as_dir=. 9063 for ac_exec_ext in '' $ac_executable_extensions; do 9064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9065 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" 9066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9067 break 2 9068 fi 9069done 9070 done 9071IFS=$as_save_IFS 9072 9073fi 9074fi 9075NM=$ac_cv_prog_NM 9076if test -n "$NM"; then 9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 9078$as_echo "$NM" >&6; } 9079else 9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9081$as_echo "no" >&6; } 9082fi 9083 9084 9085 fi 9086 if test -z "$ac_cv_prog_NM" && test $build = $host ; then 9087 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9088set dummy ${ncn_progname}; ac_word=$2 9089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9090$as_echo_n "checking for $ac_word... " >&6; } 9091if ${ac_cv_prog_NM+:} false; then : 9092 $as_echo_n "(cached) " >&6 9093else 9094 if test -n "$NM"; then 9095 ac_cv_prog_NM="$NM" # Let the user override the test. 9096else 9097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9098for as_dir in $PATH 9099do 9100 IFS=$as_save_IFS 9101 test -z "$as_dir" && as_dir=. 9102 for ac_exec_ext in '' $ac_executable_extensions; do 9103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9104 ac_cv_prog_NM="${ncn_progname}" 9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9106 break 2 9107 fi 9108done 9109 done 9110IFS=$as_save_IFS 9111 9112fi 9113fi 9114NM=$ac_cv_prog_NM 9115if test -n "$NM"; then 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 9117$as_echo "$NM" >&6; } 9118else 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9120$as_echo "no" >&6; } 9121fi 9122 9123 9124 fi 9125 test -n "$ac_cv_prog_NM" && break 9126done 9127 9128if test -z "$ac_cv_prog_NM" ; then 9129 set dummy nm 9130 if test $build = $host ; then 9131 NM="$2" 9132 else 9133 NM="${ncn_tool_prefix}$2" 9134 fi 9135fi 9136 9137 9138 9139if test -n "$RANLIB"; then 9140 ac_cv_prog_RANLIB=$RANLIB 9141elif test -n "$ac_cv_prog_RANLIB"; then 9142 RANLIB=$ac_cv_prog_RANLIB 9143fi 9144 9145if test -n "$ac_cv_prog_RANLIB"; then 9146 for ncn_progname in ranlib; do 9147 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9148set dummy ${ncn_progname}; ac_word=$2 9149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9150$as_echo_n "checking for $ac_word... " >&6; } 9151if ${ac_cv_prog_RANLIB+:} false; then : 9152 $as_echo_n "(cached) " >&6 9153else 9154 if test -n "$RANLIB"; then 9155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9156else 9157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9158for as_dir in $PATH 9159do 9160 IFS=$as_save_IFS 9161 test -z "$as_dir" && as_dir=. 9162 for ac_exec_ext in '' $ac_executable_extensions; do 9163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9164 ac_cv_prog_RANLIB="${ncn_progname}" 9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9166 break 2 9167 fi 9168done 9169 done 9170IFS=$as_save_IFS 9171 9172fi 9173fi 9174RANLIB=$ac_cv_prog_RANLIB 9175if test -n "$RANLIB"; then 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9177$as_echo "$RANLIB" >&6; } 9178else 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9180$as_echo "no" >&6; } 9181fi 9182 9183 9184 done 9185fi 9186 9187for ncn_progname in ranlib; do 9188 if test -n "$ncn_tool_prefix"; then 9189 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9190set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9192$as_echo_n "checking for $ac_word... " >&6; } 9193if ${ac_cv_prog_RANLIB+:} false; then : 9194 $as_echo_n "(cached) " >&6 9195else 9196 if test -n "$RANLIB"; then 9197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9198else 9199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9200for as_dir in $PATH 9201do 9202 IFS=$as_save_IFS 9203 test -z "$as_dir" && as_dir=. 9204 for ac_exec_ext in '' $ac_executable_extensions; do 9205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9206 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" 9207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9208 break 2 9209 fi 9210done 9211 done 9212IFS=$as_save_IFS 9213 9214fi 9215fi 9216RANLIB=$ac_cv_prog_RANLIB 9217if test -n "$RANLIB"; then 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9219$as_echo "$RANLIB" >&6; } 9220else 9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9222$as_echo "no" >&6; } 9223fi 9224 9225 9226 fi 9227 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then 9228 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9229set dummy ${ncn_progname}; ac_word=$2 9230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9231$as_echo_n "checking for $ac_word... " >&6; } 9232if ${ac_cv_prog_RANLIB+:} false; then : 9233 $as_echo_n "(cached) " >&6 9234else 9235 if test -n "$RANLIB"; then 9236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9237else 9238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9239for as_dir in $PATH 9240do 9241 IFS=$as_save_IFS 9242 test -z "$as_dir" && as_dir=. 9243 for ac_exec_ext in '' $ac_executable_extensions; do 9244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9245 ac_cv_prog_RANLIB="${ncn_progname}" 9246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9247 break 2 9248 fi 9249done 9250 done 9251IFS=$as_save_IFS 9252 9253fi 9254fi 9255RANLIB=$ac_cv_prog_RANLIB 9256if test -n "$RANLIB"; then 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9258$as_echo "$RANLIB" >&6; } 9259else 9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9261$as_echo "no" >&6; } 9262fi 9263 9264 9265 fi 9266 test -n "$ac_cv_prog_RANLIB" && break 9267done 9268 9269if test -z "$ac_cv_prog_RANLIB" ; then 9270 RANLIB="true" 9271fi 9272 9273 9274 9275if test -n "$STRIP"; then 9276 ac_cv_prog_STRIP=$STRIP 9277elif test -n "$ac_cv_prog_STRIP"; then 9278 STRIP=$ac_cv_prog_STRIP 9279fi 9280 9281if test -n "$ac_cv_prog_STRIP"; then 9282 for ncn_progname in strip; do 9283 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9284set dummy ${ncn_progname}; ac_word=$2 9285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9286$as_echo_n "checking for $ac_word... " >&6; } 9287if ${ac_cv_prog_STRIP+:} false; then : 9288 $as_echo_n "(cached) " >&6 9289else 9290 if test -n "$STRIP"; then 9291 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9292else 9293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9294for as_dir in $PATH 9295do 9296 IFS=$as_save_IFS 9297 test -z "$as_dir" && as_dir=. 9298 for ac_exec_ext in '' $ac_executable_extensions; do 9299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9300 ac_cv_prog_STRIP="${ncn_progname}" 9301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9302 break 2 9303 fi 9304done 9305 done 9306IFS=$as_save_IFS 9307 9308fi 9309fi 9310STRIP=$ac_cv_prog_STRIP 9311if test -n "$STRIP"; then 9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9313$as_echo "$STRIP" >&6; } 9314else 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9316$as_echo "no" >&6; } 9317fi 9318 9319 9320 done 9321fi 9322 9323for ncn_progname in strip; do 9324 if test -n "$ncn_tool_prefix"; then 9325 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9326set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9328$as_echo_n "checking for $ac_word... " >&6; } 9329if ${ac_cv_prog_STRIP+:} false; then : 9330 $as_echo_n "(cached) " >&6 9331else 9332 if test -n "$STRIP"; then 9333 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9334else 9335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9336for as_dir in $PATH 9337do 9338 IFS=$as_save_IFS 9339 test -z "$as_dir" && as_dir=. 9340 for ac_exec_ext in '' $ac_executable_extensions; do 9341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9342 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" 9343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9344 break 2 9345 fi 9346done 9347 done 9348IFS=$as_save_IFS 9349 9350fi 9351fi 9352STRIP=$ac_cv_prog_STRIP 9353if test -n "$STRIP"; then 9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9355$as_echo "$STRIP" >&6; } 9356else 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9358$as_echo "no" >&6; } 9359fi 9360 9361 9362 fi 9363 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then 9364 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9365set dummy ${ncn_progname}; ac_word=$2 9366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9367$as_echo_n "checking for $ac_word... " >&6; } 9368if ${ac_cv_prog_STRIP+:} false; then : 9369 $as_echo_n "(cached) " >&6 9370else 9371 if test -n "$STRIP"; then 9372 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9373else 9374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9375for as_dir in $PATH 9376do 9377 IFS=$as_save_IFS 9378 test -z "$as_dir" && as_dir=. 9379 for ac_exec_ext in '' $ac_executable_extensions; do 9380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9381 ac_cv_prog_STRIP="${ncn_progname}" 9382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9383 break 2 9384 fi 9385done 9386 done 9387IFS=$as_save_IFS 9388 9389fi 9390fi 9391STRIP=$ac_cv_prog_STRIP 9392if test -n "$STRIP"; then 9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9394$as_echo "$STRIP" >&6; } 9395else 9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9397$as_echo "no" >&6; } 9398fi 9399 9400 9401 fi 9402 test -n "$ac_cv_prog_STRIP" && break 9403done 9404 9405if test -z "$ac_cv_prog_STRIP" ; then 9406 STRIP="true" 9407fi 9408 9409 9410 9411if test -n "$WINDRES"; then 9412 ac_cv_prog_WINDRES=$WINDRES 9413elif test -n "$ac_cv_prog_WINDRES"; then 9414 WINDRES=$ac_cv_prog_WINDRES 9415fi 9416 9417if test -n "$ac_cv_prog_WINDRES"; then 9418 for ncn_progname in windres; do 9419 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9420set dummy ${ncn_progname}; ac_word=$2 9421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9422$as_echo_n "checking for $ac_word... " >&6; } 9423if ${ac_cv_prog_WINDRES+:} false; then : 9424 $as_echo_n "(cached) " >&6 9425else 9426 if test -n "$WINDRES"; then 9427 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 9428else 9429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9430for as_dir in $PATH 9431do 9432 IFS=$as_save_IFS 9433 test -z "$as_dir" && as_dir=. 9434 for ac_exec_ext in '' $ac_executable_extensions; do 9435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9436 ac_cv_prog_WINDRES="${ncn_progname}" 9437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9438 break 2 9439 fi 9440done 9441 done 9442IFS=$as_save_IFS 9443 9444fi 9445fi 9446WINDRES=$ac_cv_prog_WINDRES 9447if test -n "$WINDRES"; then 9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 9449$as_echo "$WINDRES" >&6; } 9450else 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9452$as_echo "no" >&6; } 9453fi 9454 9455 9456 done 9457fi 9458 9459for ncn_progname in windres; do 9460 if test -n "$ncn_tool_prefix"; then 9461 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9462set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9464$as_echo_n "checking for $ac_word... " >&6; } 9465if ${ac_cv_prog_WINDRES+:} false; then : 9466 $as_echo_n "(cached) " >&6 9467else 9468 if test -n "$WINDRES"; then 9469 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 9470else 9471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9472for as_dir in $PATH 9473do 9474 IFS=$as_save_IFS 9475 test -z "$as_dir" && as_dir=. 9476 for ac_exec_ext in '' $ac_executable_extensions; do 9477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9478 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" 9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9480 break 2 9481 fi 9482done 9483 done 9484IFS=$as_save_IFS 9485 9486fi 9487fi 9488WINDRES=$ac_cv_prog_WINDRES 9489if test -n "$WINDRES"; then 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 9491$as_echo "$WINDRES" >&6; } 9492else 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9494$as_echo "no" >&6; } 9495fi 9496 9497 9498 fi 9499 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then 9500 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9501set dummy ${ncn_progname}; ac_word=$2 9502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9503$as_echo_n "checking for $ac_word... " >&6; } 9504if ${ac_cv_prog_WINDRES+:} false; then : 9505 $as_echo_n "(cached) " >&6 9506else 9507 if test -n "$WINDRES"; then 9508 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 9509else 9510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9511for as_dir in $PATH 9512do 9513 IFS=$as_save_IFS 9514 test -z "$as_dir" && as_dir=. 9515 for ac_exec_ext in '' $ac_executable_extensions; do 9516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9517 ac_cv_prog_WINDRES="${ncn_progname}" 9518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9519 break 2 9520 fi 9521done 9522 done 9523IFS=$as_save_IFS 9524 9525fi 9526fi 9527WINDRES=$ac_cv_prog_WINDRES 9528if test -n "$WINDRES"; then 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 9530$as_echo "$WINDRES" >&6; } 9531else 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9533$as_echo "no" >&6; } 9534fi 9535 9536 9537 fi 9538 test -n "$ac_cv_prog_WINDRES" && break 9539done 9540 9541if test -z "$ac_cv_prog_WINDRES" ; then 9542 set dummy windres 9543 if test $build = $host ; then 9544 WINDRES="$2" 9545 else 9546 WINDRES="${ncn_tool_prefix}$2" 9547 fi 9548fi 9549 9550 9551 9552if test -n "$WINDMC"; then 9553 ac_cv_prog_WINDMC=$WINDMC 9554elif test -n "$ac_cv_prog_WINDMC"; then 9555 WINDMC=$ac_cv_prog_WINDMC 9556fi 9557 9558if test -n "$ac_cv_prog_WINDMC"; then 9559 for ncn_progname in windmc; do 9560 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9561set dummy ${ncn_progname}; ac_word=$2 9562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9563$as_echo_n "checking for $ac_word... " >&6; } 9564if ${ac_cv_prog_WINDMC+:} false; then : 9565 $as_echo_n "(cached) " >&6 9566else 9567 if test -n "$WINDMC"; then 9568 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. 9569else 9570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9571for as_dir in $PATH 9572do 9573 IFS=$as_save_IFS 9574 test -z "$as_dir" && as_dir=. 9575 for ac_exec_ext in '' $ac_executable_extensions; do 9576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9577 ac_cv_prog_WINDMC="${ncn_progname}" 9578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9579 break 2 9580 fi 9581done 9582 done 9583IFS=$as_save_IFS 9584 9585fi 9586fi 9587WINDMC=$ac_cv_prog_WINDMC 9588if test -n "$WINDMC"; then 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 9590$as_echo "$WINDMC" >&6; } 9591else 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9593$as_echo "no" >&6; } 9594fi 9595 9596 9597 done 9598fi 9599 9600for ncn_progname in windmc; do 9601 if test -n "$ncn_tool_prefix"; then 9602 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9603set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9605$as_echo_n "checking for $ac_word... " >&6; } 9606if ${ac_cv_prog_WINDMC+:} false; then : 9607 $as_echo_n "(cached) " >&6 9608else 9609 if test -n "$WINDMC"; then 9610 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. 9611else 9612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9613for as_dir in $PATH 9614do 9615 IFS=$as_save_IFS 9616 test -z "$as_dir" && as_dir=. 9617 for ac_exec_ext in '' $ac_executable_extensions; do 9618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9619 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" 9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9621 break 2 9622 fi 9623done 9624 done 9625IFS=$as_save_IFS 9626 9627fi 9628fi 9629WINDMC=$ac_cv_prog_WINDMC 9630if test -n "$WINDMC"; then 9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 9632$as_echo "$WINDMC" >&6; } 9633else 9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9635$as_echo "no" >&6; } 9636fi 9637 9638 9639 fi 9640 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then 9641 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9642set dummy ${ncn_progname}; ac_word=$2 9643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9644$as_echo_n "checking for $ac_word... " >&6; } 9645if ${ac_cv_prog_WINDMC+:} false; then : 9646 $as_echo_n "(cached) " >&6 9647else 9648 if test -n "$WINDMC"; then 9649 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. 9650else 9651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9652for as_dir in $PATH 9653do 9654 IFS=$as_save_IFS 9655 test -z "$as_dir" && as_dir=. 9656 for ac_exec_ext in '' $ac_executable_extensions; do 9657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9658 ac_cv_prog_WINDMC="${ncn_progname}" 9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9660 break 2 9661 fi 9662done 9663 done 9664IFS=$as_save_IFS 9665 9666fi 9667fi 9668WINDMC=$ac_cv_prog_WINDMC 9669if test -n "$WINDMC"; then 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 9671$as_echo "$WINDMC" >&6; } 9672else 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9674$as_echo "no" >&6; } 9675fi 9676 9677 9678 fi 9679 test -n "$ac_cv_prog_WINDMC" && break 9680done 9681 9682if test -z "$ac_cv_prog_WINDMC" ; then 9683 set dummy windmc 9684 if test $build = $host ; then 9685 WINDMC="$2" 9686 else 9687 WINDMC="${ncn_tool_prefix}$2" 9688 fi 9689fi 9690 9691 9692 9693if test -n "$OBJCOPY"; then 9694 ac_cv_prog_OBJCOPY=$OBJCOPY 9695elif test -n "$ac_cv_prog_OBJCOPY"; then 9696 OBJCOPY=$ac_cv_prog_OBJCOPY 9697fi 9698 9699if test -n "$ac_cv_prog_OBJCOPY"; then 9700 for ncn_progname in objcopy; do 9701 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9702set dummy ${ncn_progname}; ac_word=$2 9703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9704$as_echo_n "checking for $ac_word... " >&6; } 9705if ${ac_cv_prog_OBJCOPY+:} false; then : 9706 $as_echo_n "(cached) " >&6 9707else 9708 if test -n "$OBJCOPY"; then 9709 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 9710else 9711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9712for as_dir in $PATH 9713do 9714 IFS=$as_save_IFS 9715 test -z "$as_dir" && as_dir=. 9716 for ac_exec_ext in '' $ac_executable_extensions; do 9717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9718 ac_cv_prog_OBJCOPY="${ncn_progname}" 9719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9720 break 2 9721 fi 9722done 9723 done 9724IFS=$as_save_IFS 9725 9726fi 9727fi 9728OBJCOPY=$ac_cv_prog_OBJCOPY 9729if test -n "$OBJCOPY"; then 9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 9731$as_echo "$OBJCOPY" >&6; } 9732else 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9734$as_echo "no" >&6; } 9735fi 9736 9737 9738 done 9739fi 9740 9741for ncn_progname in objcopy; do 9742 if test -n "$ncn_tool_prefix"; then 9743 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9744set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9746$as_echo_n "checking for $ac_word... " >&6; } 9747if ${ac_cv_prog_OBJCOPY+:} false; then : 9748 $as_echo_n "(cached) " >&6 9749else 9750 if test -n "$OBJCOPY"; then 9751 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 9752else 9753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9754for as_dir in $PATH 9755do 9756 IFS=$as_save_IFS 9757 test -z "$as_dir" && as_dir=. 9758 for ac_exec_ext in '' $ac_executable_extensions; do 9759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9760 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" 9761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9762 break 2 9763 fi 9764done 9765 done 9766IFS=$as_save_IFS 9767 9768fi 9769fi 9770OBJCOPY=$ac_cv_prog_OBJCOPY 9771if test -n "$OBJCOPY"; then 9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 9773$as_echo "$OBJCOPY" >&6; } 9774else 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9776$as_echo "no" >&6; } 9777fi 9778 9779 9780 fi 9781 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then 9782 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9783set dummy ${ncn_progname}; ac_word=$2 9784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9785$as_echo_n "checking for $ac_word... " >&6; } 9786if ${ac_cv_prog_OBJCOPY+:} false; then : 9787 $as_echo_n "(cached) " >&6 9788else 9789 if test -n "$OBJCOPY"; then 9790 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 9791else 9792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9793for as_dir in $PATH 9794do 9795 IFS=$as_save_IFS 9796 test -z "$as_dir" && as_dir=. 9797 for ac_exec_ext in '' $ac_executable_extensions; do 9798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9799 ac_cv_prog_OBJCOPY="${ncn_progname}" 9800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9801 break 2 9802 fi 9803done 9804 done 9805IFS=$as_save_IFS 9806 9807fi 9808fi 9809OBJCOPY=$ac_cv_prog_OBJCOPY 9810if test -n "$OBJCOPY"; then 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 9812$as_echo "$OBJCOPY" >&6; } 9813else 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9815$as_echo "no" >&6; } 9816fi 9817 9818 9819 fi 9820 test -n "$ac_cv_prog_OBJCOPY" && break 9821done 9822 9823if test -z "$ac_cv_prog_OBJCOPY" ; then 9824 set dummy objcopy 9825 if test $build = $host ; then 9826 OBJCOPY="$2" 9827 else 9828 OBJCOPY="${ncn_tool_prefix}$2" 9829 fi 9830fi 9831 9832 9833 9834if test -n "$OBJDUMP"; then 9835 ac_cv_prog_OBJDUMP=$OBJDUMP 9836elif test -n "$ac_cv_prog_OBJDUMP"; then 9837 OBJDUMP=$ac_cv_prog_OBJDUMP 9838fi 9839 9840if test -n "$ac_cv_prog_OBJDUMP"; then 9841 for ncn_progname in objdump; do 9842 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9843set dummy ${ncn_progname}; ac_word=$2 9844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9845$as_echo_n "checking for $ac_word... " >&6; } 9846if ${ac_cv_prog_OBJDUMP+:} false; then : 9847 $as_echo_n "(cached) " >&6 9848else 9849 if test -n "$OBJDUMP"; then 9850 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9851else 9852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9853for as_dir in $PATH 9854do 9855 IFS=$as_save_IFS 9856 test -z "$as_dir" && as_dir=. 9857 for ac_exec_ext in '' $ac_executable_extensions; do 9858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9859 ac_cv_prog_OBJDUMP="${ncn_progname}" 9860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9861 break 2 9862 fi 9863done 9864 done 9865IFS=$as_save_IFS 9866 9867fi 9868fi 9869OBJDUMP=$ac_cv_prog_OBJDUMP 9870if test -n "$OBJDUMP"; then 9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9872$as_echo "$OBJDUMP" >&6; } 9873else 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9875$as_echo "no" >&6; } 9876fi 9877 9878 9879 done 9880fi 9881 9882for ncn_progname in objdump; do 9883 if test -n "$ncn_tool_prefix"; then 9884 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9885set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9887$as_echo_n "checking for $ac_word... " >&6; } 9888if ${ac_cv_prog_OBJDUMP+:} false; then : 9889 $as_echo_n "(cached) " >&6 9890else 9891 if test -n "$OBJDUMP"; then 9892 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9893else 9894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9895for as_dir in $PATH 9896do 9897 IFS=$as_save_IFS 9898 test -z "$as_dir" && as_dir=. 9899 for ac_exec_ext in '' $ac_executable_extensions; do 9900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9901 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" 9902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9903 break 2 9904 fi 9905done 9906 done 9907IFS=$as_save_IFS 9908 9909fi 9910fi 9911OBJDUMP=$ac_cv_prog_OBJDUMP 9912if test -n "$OBJDUMP"; then 9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9914$as_echo "$OBJDUMP" >&6; } 9915else 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9917$as_echo "no" >&6; } 9918fi 9919 9920 9921 fi 9922 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then 9923 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9924set dummy ${ncn_progname}; ac_word=$2 9925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9926$as_echo_n "checking for $ac_word... " >&6; } 9927if ${ac_cv_prog_OBJDUMP+:} false; then : 9928 $as_echo_n "(cached) " >&6 9929else 9930 if test -n "$OBJDUMP"; then 9931 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9932else 9933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9934for as_dir in $PATH 9935do 9936 IFS=$as_save_IFS 9937 test -z "$as_dir" && as_dir=. 9938 for ac_exec_ext in '' $ac_executable_extensions; do 9939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9940 ac_cv_prog_OBJDUMP="${ncn_progname}" 9941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9942 break 2 9943 fi 9944done 9945 done 9946IFS=$as_save_IFS 9947 9948fi 9949fi 9950OBJDUMP=$ac_cv_prog_OBJDUMP 9951if test -n "$OBJDUMP"; then 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9953$as_echo "$OBJDUMP" >&6; } 9954else 9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9956$as_echo "no" >&6; } 9957fi 9958 9959 9960 fi 9961 test -n "$ac_cv_prog_OBJDUMP" && break 9962done 9963 9964if test -z "$ac_cv_prog_OBJDUMP" ; then 9965 set dummy objdump 9966 if test $build = $host ; then 9967 OBJDUMP="$2" 9968 else 9969 OBJDUMP="${ncn_tool_prefix}$2" 9970 fi 9971fi 9972 9973 9974 9975if test -n "$READELF"; then 9976 ac_cv_prog_READELF=$READELF 9977elif test -n "$ac_cv_prog_READELF"; then 9978 READELF=$ac_cv_prog_READELF 9979fi 9980 9981if test -n "$ac_cv_prog_READELF"; then 9982 for ncn_progname in readelf; do 9983 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9984set dummy ${ncn_progname}; ac_word=$2 9985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9986$as_echo_n "checking for $ac_word... " >&6; } 9987if ${ac_cv_prog_READELF+:} false; then : 9988 $as_echo_n "(cached) " >&6 9989else 9990 if test -n "$READELF"; then 9991 ac_cv_prog_READELF="$READELF" # Let the user override the test. 9992else 9993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9994for as_dir in $PATH 9995do 9996 IFS=$as_save_IFS 9997 test -z "$as_dir" && as_dir=. 9998 for ac_exec_ext in '' $ac_executable_extensions; do 9999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10000 ac_cv_prog_READELF="${ncn_progname}" 10001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10002 break 2 10003 fi 10004done 10005 done 10006IFS=$as_save_IFS 10007 10008fi 10009fi 10010READELF=$ac_cv_prog_READELF 10011if test -n "$READELF"; then 10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 10013$as_echo "$READELF" >&6; } 10014else 10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10016$as_echo "no" >&6; } 10017fi 10018 10019 10020 done 10021fi 10022 10023for ncn_progname in readelf; do 10024 if test -n "$ncn_tool_prefix"; then 10025 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 10026set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 10027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10028$as_echo_n "checking for $ac_word... " >&6; } 10029if ${ac_cv_prog_READELF+:} false; then : 10030 $as_echo_n "(cached) " >&6 10031else 10032 if test -n "$READELF"; then 10033 ac_cv_prog_READELF="$READELF" # Let the user override the test. 10034else 10035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10036for as_dir in $PATH 10037do 10038 IFS=$as_save_IFS 10039 test -z "$as_dir" && as_dir=. 10040 for ac_exec_ext in '' $ac_executable_extensions; do 10041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10042 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" 10043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10044 break 2 10045 fi 10046done 10047 done 10048IFS=$as_save_IFS 10049 10050fi 10051fi 10052READELF=$ac_cv_prog_READELF 10053if test -n "$READELF"; then 10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 10055$as_echo "$READELF" >&6; } 10056else 10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10058$as_echo "no" >&6; } 10059fi 10060 10061 10062 fi 10063 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then 10064 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10065set dummy ${ncn_progname}; ac_word=$2 10066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10067$as_echo_n "checking for $ac_word... " >&6; } 10068if ${ac_cv_prog_READELF+:} false; then : 10069 $as_echo_n "(cached) " >&6 10070else 10071 if test -n "$READELF"; then 10072 ac_cv_prog_READELF="$READELF" # Let the user override the test. 10073else 10074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10075for as_dir in $PATH 10076do 10077 IFS=$as_save_IFS 10078 test -z "$as_dir" && as_dir=. 10079 for ac_exec_ext in '' $ac_executable_extensions; do 10080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10081 ac_cv_prog_READELF="${ncn_progname}" 10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10083 break 2 10084 fi 10085done 10086 done 10087IFS=$as_save_IFS 10088 10089fi 10090fi 10091READELF=$ac_cv_prog_READELF 10092if test -n "$READELF"; then 10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 10094$as_echo "$READELF" >&6; } 10095else 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10097$as_echo "no" >&6; } 10098fi 10099 10100 10101 fi 10102 test -n "$ac_cv_prog_READELF" && break 10103done 10104 10105if test -z "$ac_cv_prog_READELF" ; then 10106 set dummy readelf 10107 if test $build = $host ; then 10108 READELF="$2" 10109 else 10110 READELF="${ncn_tool_prefix}$2" 10111 fi 10112fi 10113 10114 10115 10116 10117 10118 10119# Target tools. 10120 10121# Check whether --with-build-time-tools was given. 10122if test "${with_build_time_tools+set}" = set; then : 10123 withval=$with_build_time_tools; case x"$withval" in 10124 x/*) ;; 10125 *) 10126 with_build_time_tools= 10127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 10128$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} 10129 ;; 10130 esac 10131else 10132 with_build_time_tools= 10133fi 10134 10135 10136 10137 10138if test -n "$CC_FOR_TARGET"; then 10139 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET 10140elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then 10141 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 10142fi 10143 10144if test -n "$ac_cv_prog_CC_FOR_TARGET"; then 10145 for ncn_progname in cc gcc; do 10146 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10147set dummy ${ncn_progname}; ac_word=$2 10148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10149$as_echo_n "checking for $ac_word... " >&6; } 10150if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : 10151 $as_echo_n "(cached) " >&6 10152else 10153 if test -n "$CC_FOR_TARGET"; then 10154 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. 10155else 10156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10157for as_dir in $PATH 10158do 10159 IFS=$as_save_IFS 10160 test -z "$as_dir" && as_dir=. 10161 for ac_exec_ext in '' $ac_executable_extensions; do 10162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10163 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" 10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10165 break 2 10166 fi 10167done 10168 done 10169IFS=$as_save_IFS 10170 10171fi 10172fi 10173CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 10174if test -n "$CC_FOR_TARGET"; then 10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 10176$as_echo "$CC_FOR_TARGET" >&6; } 10177else 10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10179$as_echo "no" >&6; } 10180fi 10181 10182 10183 done 10184fi 10185 10186if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then 10187 for ncn_progname in cc gcc; do 10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10189$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10190 if test -x $with_build_time_tools/${ncn_progname}; then 10191 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10193$as_echo "yes" >&6; } 10194 break 10195 else 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10197$as_echo "no" >&6; } 10198 fi 10199 done 10200fi 10201 10202if test -z "$ac_cv_prog_CC_FOR_TARGET"; then 10203 for ncn_progname in cc gcc; do 10204 if test -n "$ncn_target_tool_prefix"; then 10205 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10206set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10208$as_echo_n "checking for $ac_word... " >&6; } 10209if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : 10210 $as_echo_n "(cached) " >&6 10211else 10212 if test -n "$CC_FOR_TARGET"; then 10213 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. 10214else 10215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10216for as_dir in $PATH 10217do 10218 IFS=$as_save_IFS 10219 test -z "$as_dir" && as_dir=. 10220 for ac_exec_ext in '' $ac_executable_extensions; do 10221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10222 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10224 break 2 10225 fi 10226done 10227 done 10228IFS=$as_save_IFS 10229 10230fi 10231fi 10232CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 10233if test -n "$CC_FOR_TARGET"; then 10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 10235$as_echo "$CC_FOR_TARGET" >&6; } 10236else 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10238$as_echo "no" >&6; } 10239fi 10240 10241 10242 fi 10243 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then 10244 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10245set dummy ${ncn_progname}; ac_word=$2 10246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10247$as_echo_n "checking for $ac_word... " >&6; } 10248if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : 10249 $as_echo_n "(cached) " >&6 10250else 10251 if test -n "$CC_FOR_TARGET"; then 10252 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. 10253else 10254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10255for as_dir in $PATH 10256do 10257 IFS=$as_save_IFS 10258 test -z "$as_dir" && as_dir=. 10259 for ac_exec_ext in '' $ac_executable_extensions; do 10260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10261 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" 10262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10263 break 2 10264 fi 10265done 10266 done 10267IFS=$as_save_IFS 10268 10269fi 10270fi 10271CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 10272if test -n "$CC_FOR_TARGET"; then 10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 10274$as_echo "$CC_FOR_TARGET" >&6; } 10275else 10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10277$as_echo "no" >&6; } 10278fi 10279 10280 10281 fi 10282 test -n "$ac_cv_prog_CC_FOR_TARGET" && break 10283 done 10284fi 10285 10286if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then 10287 set dummy cc gcc 10288 if test $build = $target ; then 10289 CC_FOR_TARGET="$2" 10290 else 10291 CC_FOR_TARGET="${ncn_target_tool_prefix}$2" 10292 fi 10293else 10294 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" 10295fi 10296 10297 10298 10299if test -n "$CXX_FOR_TARGET"; then 10300 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET 10301elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then 10302 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10303fi 10304 10305if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then 10306 for ncn_progname in c++ g++ cxx gxx; do 10307 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10308set dummy ${ncn_progname}; ac_word=$2 10309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10310$as_echo_n "checking for $ac_word... " >&6; } 10311if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : 10312 $as_echo_n "(cached) " >&6 10313else 10314 if test -n "$CXX_FOR_TARGET"; then 10315 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. 10316else 10317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10318for as_dir in $PATH 10319do 10320 IFS=$as_save_IFS 10321 test -z "$as_dir" && as_dir=. 10322 for ac_exec_ext in '' $ac_executable_extensions; do 10323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10324 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" 10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10326 break 2 10327 fi 10328done 10329 done 10330IFS=$as_save_IFS 10331 10332fi 10333fi 10334CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10335if test -n "$CXX_FOR_TARGET"; then 10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 10337$as_echo "$CXX_FOR_TARGET" >&6; } 10338else 10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10340$as_echo "no" >&6; } 10341fi 10342 10343 10344 done 10345fi 10346 10347if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then 10348 for ncn_progname in c++ g++ cxx gxx; do 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10350$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10351 if test -x $with_build_time_tools/${ncn_progname}; then 10352 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10354$as_echo "yes" >&6; } 10355 break 10356 else 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10358$as_echo "no" >&6; } 10359 fi 10360 done 10361fi 10362 10363if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then 10364 for ncn_progname in c++ g++ cxx gxx; do 10365 if test -n "$ncn_target_tool_prefix"; then 10366 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10367set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10369$as_echo_n "checking for $ac_word... " >&6; } 10370if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : 10371 $as_echo_n "(cached) " >&6 10372else 10373 if test -n "$CXX_FOR_TARGET"; then 10374 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. 10375else 10376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10377for as_dir in $PATH 10378do 10379 IFS=$as_save_IFS 10380 test -z "$as_dir" && as_dir=. 10381 for ac_exec_ext in '' $ac_executable_extensions; do 10382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10383 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10385 break 2 10386 fi 10387done 10388 done 10389IFS=$as_save_IFS 10390 10391fi 10392fi 10393CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10394if test -n "$CXX_FOR_TARGET"; then 10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 10396$as_echo "$CXX_FOR_TARGET" >&6; } 10397else 10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10399$as_echo "no" >&6; } 10400fi 10401 10402 10403 fi 10404 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then 10405 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10406set dummy ${ncn_progname}; ac_word=$2 10407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10408$as_echo_n "checking for $ac_word... " >&6; } 10409if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : 10410 $as_echo_n "(cached) " >&6 10411else 10412 if test -n "$CXX_FOR_TARGET"; then 10413 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. 10414else 10415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10416for as_dir in $PATH 10417do 10418 IFS=$as_save_IFS 10419 test -z "$as_dir" && as_dir=. 10420 for ac_exec_ext in '' $ac_executable_extensions; do 10421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10422 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" 10423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10424 break 2 10425 fi 10426done 10427 done 10428IFS=$as_save_IFS 10429 10430fi 10431fi 10432CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10433if test -n "$CXX_FOR_TARGET"; then 10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 10435$as_echo "$CXX_FOR_TARGET" >&6; } 10436else 10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10438$as_echo "no" >&6; } 10439fi 10440 10441 10442 fi 10443 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break 10444 done 10445fi 10446 10447if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then 10448 set dummy c++ g++ cxx gxx 10449 if test $build = $target ; then 10450 CXX_FOR_TARGET="$2" 10451 else 10452 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" 10453 fi 10454else 10455 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" 10456fi 10457 10458 10459 10460if test -n "$GCC_FOR_TARGET"; then 10461 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET 10462elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then 10463 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10464fi 10465 10466if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then 10467 for ncn_progname in gcc; do 10468 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10469set dummy ${ncn_progname}; ac_word=$2 10470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10471$as_echo_n "checking for $ac_word... " >&6; } 10472if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : 10473 $as_echo_n "(cached) " >&6 10474else 10475 if test -n "$GCC_FOR_TARGET"; then 10476 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. 10477else 10478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10479for as_dir in $PATH 10480do 10481 IFS=$as_save_IFS 10482 test -z "$as_dir" && as_dir=. 10483 for ac_exec_ext in '' $ac_executable_extensions; do 10484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10485 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" 10486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10487 break 2 10488 fi 10489done 10490 done 10491IFS=$as_save_IFS 10492 10493fi 10494fi 10495GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10496if test -n "$GCC_FOR_TARGET"; then 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 10498$as_echo "$GCC_FOR_TARGET" >&6; } 10499else 10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10501$as_echo "no" >&6; } 10502fi 10503 10504 10505 done 10506fi 10507 10508if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then 10509 for ncn_progname in gcc; do 10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10511$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10512 if test -x $with_build_time_tools/${ncn_progname}; then 10513 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10515$as_echo "yes" >&6; } 10516 break 10517 else 10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10519$as_echo "no" >&6; } 10520 fi 10521 done 10522fi 10523 10524if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then 10525 for ncn_progname in gcc; do 10526 if test -n "$ncn_target_tool_prefix"; then 10527 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10528set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10530$as_echo_n "checking for $ac_word... " >&6; } 10531if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : 10532 $as_echo_n "(cached) " >&6 10533else 10534 if test -n "$GCC_FOR_TARGET"; then 10535 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. 10536else 10537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10538for as_dir in $PATH 10539do 10540 IFS=$as_save_IFS 10541 test -z "$as_dir" && as_dir=. 10542 for ac_exec_ext in '' $ac_executable_extensions; do 10543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10544 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10546 break 2 10547 fi 10548done 10549 done 10550IFS=$as_save_IFS 10551 10552fi 10553fi 10554GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10555if test -n "$GCC_FOR_TARGET"; then 10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 10557$as_echo "$GCC_FOR_TARGET" >&6; } 10558else 10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10560$as_echo "no" >&6; } 10561fi 10562 10563 10564 fi 10565 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then 10566 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10567set dummy ${ncn_progname}; ac_word=$2 10568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10569$as_echo_n "checking for $ac_word... " >&6; } 10570if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : 10571 $as_echo_n "(cached) " >&6 10572else 10573 if test -n "$GCC_FOR_TARGET"; then 10574 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. 10575else 10576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10577for as_dir in $PATH 10578do 10579 IFS=$as_save_IFS 10580 test -z "$as_dir" && as_dir=. 10581 for ac_exec_ext in '' $ac_executable_extensions; do 10582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10583 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" 10584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10585 break 2 10586 fi 10587done 10588 done 10589IFS=$as_save_IFS 10590 10591fi 10592fi 10593GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10594if test -n "$GCC_FOR_TARGET"; then 10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 10596$as_echo "$GCC_FOR_TARGET" >&6; } 10597else 10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10599$as_echo "no" >&6; } 10600fi 10601 10602 10603 fi 10604 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break 10605 done 10606fi 10607 10608if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then 10609 GCC_FOR_TARGET="${CC_FOR_TARGET}" 10610else 10611 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" 10612fi 10613 10614 10615 10616if test -n "$GFORTRAN_FOR_TARGET"; then 10617 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET 10618elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then 10619 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 10620fi 10621 10622if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then 10623 for ncn_progname in gfortran; do 10624 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10625set dummy ${ncn_progname}; ac_word=$2 10626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10627$as_echo_n "checking for $ac_word... " >&6; } 10628if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : 10629 $as_echo_n "(cached) " >&6 10630else 10631 if test -n "$GFORTRAN_FOR_TARGET"; then 10632 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. 10633else 10634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10635for as_dir in $PATH 10636do 10637 IFS=$as_save_IFS 10638 test -z "$as_dir" && as_dir=. 10639 for ac_exec_ext in '' $ac_executable_extensions; do 10640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10641 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" 10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10643 break 2 10644 fi 10645done 10646 done 10647IFS=$as_save_IFS 10648 10649fi 10650fi 10651GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 10652if test -n "$GFORTRAN_FOR_TARGET"; then 10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 10654$as_echo "$GFORTRAN_FOR_TARGET" >&6; } 10655else 10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10657$as_echo "no" >&6; } 10658fi 10659 10660 10661 done 10662fi 10663 10664if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then 10665 for ncn_progname in gfortran; do 10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10667$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10668 if test -x $with_build_time_tools/${ncn_progname}; then 10669 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10671$as_echo "yes" >&6; } 10672 break 10673 else 10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10675$as_echo "no" >&6; } 10676 fi 10677 done 10678fi 10679 10680if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then 10681 for ncn_progname in gfortran; do 10682 if test -n "$ncn_target_tool_prefix"; then 10683 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10684set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10686$as_echo_n "checking for $ac_word... " >&6; } 10687if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : 10688 $as_echo_n "(cached) " >&6 10689else 10690 if test -n "$GFORTRAN_FOR_TARGET"; then 10691 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. 10692else 10693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10694for as_dir in $PATH 10695do 10696 IFS=$as_save_IFS 10697 test -z "$as_dir" && as_dir=. 10698 for ac_exec_ext in '' $ac_executable_extensions; do 10699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10700 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10702 break 2 10703 fi 10704done 10705 done 10706IFS=$as_save_IFS 10707 10708fi 10709fi 10710GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 10711if test -n "$GFORTRAN_FOR_TARGET"; then 10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 10713$as_echo "$GFORTRAN_FOR_TARGET" >&6; } 10714else 10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10716$as_echo "no" >&6; } 10717fi 10718 10719 10720 fi 10721 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then 10722 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10723set dummy ${ncn_progname}; ac_word=$2 10724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10725$as_echo_n "checking for $ac_word... " >&6; } 10726if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : 10727 $as_echo_n "(cached) " >&6 10728else 10729 if test -n "$GFORTRAN_FOR_TARGET"; then 10730 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. 10731else 10732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10733for as_dir in $PATH 10734do 10735 IFS=$as_save_IFS 10736 test -z "$as_dir" && as_dir=. 10737 for ac_exec_ext in '' $ac_executable_extensions; do 10738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10739 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" 10740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10741 break 2 10742 fi 10743done 10744 done 10745IFS=$as_save_IFS 10746 10747fi 10748fi 10749GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 10750if test -n "$GFORTRAN_FOR_TARGET"; then 10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 10752$as_echo "$GFORTRAN_FOR_TARGET" >&6; } 10753else 10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10755$as_echo "no" >&6; } 10756fi 10757 10758 10759 fi 10760 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break 10761 done 10762fi 10763 10764if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then 10765 set dummy gfortran 10766 if test $build = $target ; then 10767 GFORTRAN_FOR_TARGET="$2" 10768 else 10769 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" 10770 fi 10771else 10772 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" 10773fi 10774 10775 10776 10777if test -n "$GOC_FOR_TARGET"; then 10778 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET 10779elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then 10780 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 10781fi 10782 10783if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then 10784 for ncn_progname in gccgo; do 10785 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10786set dummy ${ncn_progname}; ac_word=$2 10787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10788$as_echo_n "checking for $ac_word... " >&6; } 10789if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : 10790 $as_echo_n "(cached) " >&6 10791else 10792 if test -n "$GOC_FOR_TARGET"; then 10793 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. 10794else 10795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10796for as_dir in $PATH 10797do 10798 IFS=$as_save_IFS 10799 test -z "$as_dir" && as_dir=. 10800 for ac_exec_ext in '' $ac_executable_extensions; do 10801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10802 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" 10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10804 break 2 10805 fi 10806done 10807 done 10808IFS=$as_save_IFS 10809 10810fi 10811fi 10812GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 10813if test -n "$GOC_FOR_TARGET"; then 10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 10815$as_echo "$GOC_FOR_TARGET" >&6; } 10816else 10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10818$as_echo "no" >&6; } 10819fi 10820 10821 10822 done 10823fi 10824 10825if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then 10826 for ncn_progname in gccgo; do 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10828$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10829 if test -x $with_build_time_tools/${ncn_progname}; then 10830 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10832$as_echo "yes" >&6; } 10833 break 10834 else 10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10836$as_echo "no" >&6; } 10837 fi 10838 done 10839fi 10840 10841if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then 10842 for ncn_progname in gccgo; do 10843 if test -n "$ncn_target_tool_prefix"; then 10844 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10845set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10847$as_echo_n "checking for $ac_word... " >&6; } 10848if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : 10849 $as_echo_n "(cached) " >&6 10850else 10851 if test -n "$GOC_FOR_TARGET"; then 10852 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. 10853else 10854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10855for as_dir in $PATH 10856do 10857 IFS=$as_save_IFS 10858 test -z "$as_dir" && as_dir=. 10859 for ac_exec_ext in '' $ac_executable_extensions; do 10860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10861 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10863 break 2 10864 fi 10865done 10866 done 10867IFS=$as_save_IFS 10868 10869fi 10870fi 10871GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 10872if test -n "$GOC_FOR_TARGET"; then 10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 10874$as_echo "$GOC_FOR_TARGET" >&6; } 10875else 10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10877$as_echo "no" >&6; } 10878fi 10879 10880 10881 fi 10882 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then 10883 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10884set dummy ${ncn_progname}; ac_word=$2 10885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10886$as_echo_n "checking for $ac_word... " >&6; } 10887if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : 10888 $as_echo_n "(cached) " >&6 10889else 10890 if test -n "$GOC_FOR_TARGET"; then 10891 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. 10892else 10893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10894for as_dir in $PATH 10895do 10896 IFS=$as_save_IFS 10897 test -z "$as_dir" && as_dir=. 10898 for ac_exec_ext in '' $ac_executable_extensions; do 10899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10900 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" 10901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10902 break 2 10903 fi 10904done 10905 done 10906IFS=$as_save_IFS 10907 10908fi 10909fi 10910GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 10911if test -n "$GOC_FOR_TARGET"; then 10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 10913$as_echo "$GOC_FOR_TARGET" >&6; } 10914else 10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10916$as_echo "no" >&6; } 10917fi 10918 10919 10920 fi 10921 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break 10922 done 10923fi 10924 10925if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then 10926 set dummy gccgo 10927 if test $build = $target ; then 10928 GOC_FOR_TARGET="$2" 10929 else 10930 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" 10931 fi 10932else 10933 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" 10934fi 10935 10936 10937 10938cat > conftest.c << \EOF 10939#ifdef __GNUC__ 10940 gcc_yay; 10941#endif 10942EOF 10943if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then 10944 have_gcc_for_target=yes 10945else 10946 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc 10947 have_gcc_for_target=no 10948fi 10949rm conftest.c 10950 10951 10952 10953 10954if test -z "$ac_cv_path_AR_FOR_TARGET" ; then 10955 if test -n "$with_build_time_tools"; then 10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 10957$as_echo_n "checking for ar in $with_build_time_tools... " >&6; } 10958 if test -x $with_build_time_tools/ar; then 10959 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar 10960 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET 10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 10962$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } 10963 else 10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10965$as_echo "no" >&6; } 10966 fi 10967 elif test $build != $host && test $have_gcc_for_target = yes; then 10968 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` 10969 test $AR_FOR_TARGET = ar && AR_FOR_TARGET= 10970 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET 10971 fi 10972fi 10973if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 10974 # Extract the first word of "ar", so it can be a program name with args. 10975set dummy ar; ac_word=$2 10976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10977$as_echo_n "checking for $ac_word... " >&6; } 10978if ${ac_cv_path_AR_FOR_TARGET+:} false; then : 10979 $as_echo_n "(cached) " >&6 10980else 10981 case $AR_FOR_TARGET in 10982 [\\/]* | ?:[\\/]*) 10983 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. 10984 ;; 10985 *) 10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10987for as_dir in $gcc_cv_tool_dirs 10988do 10989 IFS=$as_save_IFS 10990 test -z "$as_dir" && as_dir=. 10991 for ac_exec_ext in '' $ac_executable_extensions; do 10992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10993 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10995 break 2 10996 fi 10997done 10998 done 10999IFS=$as_save_IFS 11000 11001 ;; 11002esac 11003fi 11004AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET 11005if test -n "$AR_FOR_TARGET"; then 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 11007$as_echo "$AR_FOR_TARGET" >&6; } 11008else 11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11010$as_echo "no" >&6; } 11011fi 11012 11013 11014fi 11015if test -z "$ac_cv_path_AR_FOR_TARGET" ; then 11016 11017 11018if test -n "$AR_FOR_TARGET"; then 11019 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET 11020elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then 11021 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 11022fi 11023 11024if test -n "$ac_cv_prog_AR_FOR_TARGET"; then 11025 for ncn_progname in ar; do 11026 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11027set dummy ${ncn_progname}; ac_word=$2 11028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11029$as_echo_n "checking for $ac_word... " >&6; } 11030if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : 11031 $as_echo_n "(cached) " >&6 11032else 11033 if test -n "$AR_FOR_TARGET"; then 11034 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. 11035else 11036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11037for as_dir in $PATH 11038do 11039 IFS=$as_save_IFS 11040 test -z "$as_dir" && as_dir=. 11041 for ac_exec_ext in '' $ac_executable_extensions; do 11042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11043 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" 11044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11045 break 2 11046 fi 11047done 11048 done 11049IFS=$as_save_IFS 11050 11051fi 11052fi 11053AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 11054if test -n "$AR_FOR_TARGET"; then 11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 11056$as_echo "$AR_FOR_TARGET" >&6; } 11057else 11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11059$as_echo "no" >&6; } 11060fi 11061 11062 11063 done 11064fi 11065 11066if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then 11067 for ncn_progname in ar; do 11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11069$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11070 if test -x $with_build_time_tools/${ncn_progname}; then 11071 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11073$as_echo "yes" >&6; } 11074 break 11075 else 11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11077$as_echo "no" >&6; } 11078 fi 11079 done 11080fi 11081 11082if test -z "$ac_cv_prog_AR_FOR_TARGET"; then 11083 for ncn_progname in ar; do 11084 if test -n "$ncn_target_tool_prefix"; then 11085 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11086set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11088$as_echo_n "checking for $ac_word... " >&6; } 11089if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : 11090 $as_echo_n "(cached) " >&6 11091else 11092 if test -n "$AR_FOR_TARGET"; then 11093 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. 11094else 11095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11096for as_dir in $PATH 11097do 11098 IFS=$as_save_IFS 11099 test -z "$as_dir" && as_dir=. 11100 for ac_exec_ext in '' $ac_executable_extensions; do 11101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11102 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11104 break 2 11105 fi 11106done 11107 done 11108IFS=$as_save_IFS 11109 11110fi 11111fi 11112AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 11113if test -n "$AR_FOR_TARGET"; then 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 11115$as_echo "$AR_FOR_TARGET" >&6; } 11116else 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11118$as_echo "no" >&6; } 11119fi 11120 11121 11122 fi 11123 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then 11124 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11125set dummy ${ncn_progname}; ac_word=$2 11126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11127$as_echo_n "checking for $ac_word... " >&6; } 11128if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : 11129 $as_echo_n "(cached) " >&6 11130else 11131 if test -n "$AR_FOR_TARGET"; then 11132 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. 11133else 11134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11135for as_dir in $PATH 11136do 11137 IFS=$as_save_IFS 11138 test -z "$as_dir" && as_dir=. 11139 for ac_exec_ext in '' $ac_executable_extensions; do 11140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11141 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" 11142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11143 break 2 11144 fi 11145done 11146 done 11147IFS=$as_save_IFS 11148 11149fi 11150fi 11151AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 11152if test -n "$AR_FOR_TARGET"; then 11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 11154$as_echo "$AR_FOR_TARGET" >&6; } 11155else 11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11157$as_echo "no" >&6; } 11158fi 11159 11160 11161 fi 11162 test -n "$ac_cv_prog_AR_FOR_TARGET" && break 11163 done 11164fi 11165 11166if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then 11167 set dummy ar 11168 if test $build = $target ; then 11169 AR_FOR_TARGET="$2" 11170 else 11171 AR_FOR_TARGET="${ncn_target_tool_prefix}$2" 11172 fi 11173else 11174 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" 11175fi 11176 11177else 11178 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET 11179fi 11180 11181 11182 11183 11184if test -z "$ac_cv_path_AS_FOR_TARGET" ; then 11185 if test -n "$with_build_time_tools"; then 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 11187$as_echo_n "checking for as in $with_build_time_tools... " >&6; } 11188 if test -x $with_build_time_tools/as; then 11189 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as 11190 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET 11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 11192$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } 11193 else 11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11195$as_echo "no" >&6; } 11196 fi 11197 elif test $build != $host && test $have_gcc_for_target = yes; then 11198 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` 11199 test $AS_FOR_TARGET = as && AS_FOR_TARGET= 11200 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET 11201 fi 11202fi 11203if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 11204 # Extract the first word of "as", so it can be a program name with args. 11205set dummy as; ac_word=$2 11206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11207$as_echo_n "checking for $ac_word... " >&6; } 11208if ${ac_cv_path_AS_FOR_TARGET+:} false; then : 11209 $as_echo_n "(cached) " >&6 11210else 11211 case $AS_FOR_TARGET in 11212 [\\/]* | ?:[\\/]*) 11213 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. 11214 ;; 11215 *) 11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11217for as_dir in $gcc_cv_tool_dirs 11218do 11219 IFS=$as_save_IFS 11220 test -z "$as_dir" && as_dir=. 11221 for ac_exec_ext in '' $ac_executable_extensions; do 11222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11223 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 11224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11225 break 2 11226 fi 11227done 11228 done 11229IFS=$as_save_IFS 11230 11231 ;; 11232esac 11233fi 11234AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET 11235if test -n "$AS_FOR_TARGET"; then 11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11237$as_echo "$AS_FOR_TARGET" >&6; } 11238else 11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11240$as_echo "no" >&6; } 11241fi 11242 11243 11244fi 11245if test -z "$ac_cv_path_AS_FOR_TARGET" ; then 11246 11247 11248if test -n "$AS_FOR_TARGET"; then 11249 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET 11250elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then 11251 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11252fi 11253 11254if test -n "$ac_cv_prog_AS_FOR_TARGET"; then 11255 for ncn_progname in as; do 11256 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11257set dummy ${ncn_progname}; ac_word=$2 11258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11259$as_echo_n "checking for $ac_word... " >&6; } 11260if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : 11261 $as_echo_n "(cached) " >&6 11262else 11263 if test -n "$AS_FOR_TARGET"; then 11264 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. 11265else 11266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11267for as_dir in $PATH 11268do 11269 IFS=$as_save_IFS 11270 test -z "$as_dir" && as_dir=. 11271 for ac_exec_ext in '' $ac_executable_extensions; do 11272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11273 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" 11274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11275 break 2 11276 fi 11277done 11278 done 11279IFS=$as_save_IFS 11280 11281fi 11282fi 11283AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11284if test -n "$AS_FOR_TARGET"; then 11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11286$as_echo "$AS_FOR_TARGET" >&6; } 11287else 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11289$as_echo "no" >&6; } 11290fi 11291 11292 11293 done 11294fi 11295 11296if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then 11297 for ncn_progname in as; do 11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11299$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11300 if test -x $with_build_time_tools/${ncn_progname}; then 11301 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11303$as_echo "yes" >&6; } 11304 break 11305 else 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11307$as_echo "no" >&6; } 11308 fi 11309 done 11310fi 11311 11312if test -z "$ac_cv_prog_AS_FOR_TARGET"; then 11313 for ncn_progname in as; do 11314 if test -n "$ncn_target_tool_prefix"; then 11315 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11316set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11318$as_echo_n "checking for $ac_word... " >&6; } 11319if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : 11320 $as_echo_n "(cached) " >&6 11321else 11322 if test -n "$AS_FOR_TARGET"; then 11323 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. 11324else 11325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11326for as_dir in $PATH 11327do 11328 IFS=$as_save_IFS 11329 test -z "$as_dir" && as_dir=. 11330 for ac_exec_ext in '' $ac_executable_extensions; do 11331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11332 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11334 break 2 11335 fi 11336done 11337 done 11338IFS=$as_save_IFS 11339 11340fi 11341fi 11342AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11343if test -n "$AS_FOR_TARGET"; then 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11345$as_echo "$AS_FOR_TARGET" >&6; } 11346else 11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11348$as_echo "no" >&6; } 11349fi 11350 11351 11352 fi 11353 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then 11354 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11355set dummy ${ncn_progname}; ac_word=$2 11356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11357$as_echo_n "checking for $ac_word... " >&6; } 11358if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : 11359 $as_echo_n "(cached) " >&6 11360else 11361 if test -n "$AS_FOR_TARGET"; then 11362 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. 11363else 11364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11365for as_dir in $PATH 11366do 11367 IFS=$as_save_IFS 11368 test -z "$as_dir" && as_dir=. 11369 for ac_exec_ext in '' $ac_executable_extensions; do 11370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11371 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" 11372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11373 break 2 11374 fi 11375done 11376 done 11377IFS=$as_save_IFS 11378 11379fi 11380fi 11381AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11382if test -n "$AS_FOR_TARGET"; then 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11384$as_echo "$AS_FOR_TARGET" >&6; } 11385else 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11387$as_echo "no" >&6; } 11388fi 11389 11390 11391 fi 11392 test -n "$ac_cv_prog_AS_FOR_TARGET" && break 11393 done 11394fi 11395 11396if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then 11397 set dummy as 11398 if test $build = $target ; then 11399 AS_FOR_TARGET="$2" 11400 else 11401 AS_FOR_TARGET="${ncn_target_tool_prefix}$2" 11402 fi 11403else 11404 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" 11405fi 11406 11407else 11408 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET 11409fi 11410 11411 11412 11413 11414if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then 11415 if test -n "$with_build_time_tools"; then 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 11417$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } 11418 if test -x $with_build_time_tools/dlltool; then 11419 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool 11420 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET 11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 11422$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } 11423 else 11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11425$as_echo "no" >&6; } 11426 fi 11427 elif test $build != $host && test $have_gcc_for_target = yes; then 11428 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` 11429 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= 11430 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET 11431 fi 11432fi 11433if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 11434 # Extract the first word of "dlltool", so it can be a program name with args. 11435set dummy dlltool; ac_word=$2 11436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11437$as_echo_n "checking for $ac_word... " >&6; } 11438if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : 11439 $as_echo_n "(cached) " >&6 11440else 11441 case $DLLTOOL_FOR_TARGET in 11442 [\\/]* | ?:[\\/]*) 11443 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. 11444 ;; 11445 *) 11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11447for as_dir in $gcc_cv_tool_dirs 11448do 11449 IFS=$as_save_IFS 11450 test -z "$as_dir" && as_dir=. 11451 for ac_exec_ext in '' $ac_executable_extensions; do 11452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11453 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 11454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11455 break 2 11456 fi 11457done 11458 done 11459IFS=$as_save_IFS 11460 11461 ;; 11462esac 11463fi 11464DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET 11465if test -n "$DLLTOOL_FOR_TARGET"; then 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 11467$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 11468else 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11470$as_echo "no" >&6; } 11471fi 11472 11473 11474fi 11475if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then 11476 11477 11478if test -n "$DLLTOOL_FOR_TARGET"; then 11479 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET 11480elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then 11481 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 11482fi 11483 11484if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then 11485 for ncn_progname in dlltool; do 11486 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11487set dummy ${ncn_progname}; ac_word=$2 11488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11489$as_echo_n "checking for $ac_word... " >&6; } 11490if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : 11491 $as_echo_n "(cached) " >&6 11492else 11493 if test -n "$DLLTOOL_FOR_TARGET"; then 11494 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. 11495else 11496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11497for as_dir in $PATH 11498do 11499 IFS=$as_save_IFS 11500 test -z "$as_dir" && as_dir=. 11501 for ac_exec_ext in '' $ac_executable_extensions; do 11502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11503 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" 11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11505 break 2 11506 fi 11507done 11508 done 11509IFS=$as_save_IFS 11510 11511fi 11512fi 11513DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 11514if test -n "$DLLTOOL_FOR_TARGET"; then 11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 11516$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 11517else 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11519$as_echo "no" >&6; } 11520fi 11521 11522 11523 done 11524fi 11525 11526if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then 11527 for ncn_progname in dlltool; do 11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11529$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11530 if test -x $with_build_time_tools/${ncn_progname}; then 11531 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11533$as_echo "yes" >&6; } 11534 break 11535 else 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11537$as_echo "no" >&6; } 11538 fi 11539 done 11540fi 11541 11542if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then 11543 for ncn_progname in dlltool; do 11544 if test -n "$ncn_target_tool_prefix"; then 11545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11546set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11548$as_echo_n "checking for $ac_word... " >&6; } 11549if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : 11550 $as_echo_n "(cached) " >&6 11551else 11552 if test -n "$DLLTOOL_FOR_TARGET"; then 11553 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. 11554else 11555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11556for as_dir in $PATH 11557do 11558 IFS=$as_save_IFS 11559 test -z "$as_dir" && as_dir=. 11560 for ac_exec_ext in '' $ac_executable_extensions; do 11561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11562 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11564 break 2 11565 fi 11566done 11567 done 11568IFS=$as_save_IFS 11569 11570fi 11571fi 11572DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 11573if test -n "$DLLTOOL_FOR_TARGET"; then 11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 11575$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 11576else 11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11578$as_echo "no" >&6; } 11579fi 11580 11581 11582 fi 11583 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then 11584 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11585set dummy ${ncn_progname}; ac_word=$2 11586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11587$as_echo_n "checking for $ac_word... " >&6; } 11588if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : 11589 $as_echo_n "(cached) " >&6 11590else 11591 if test -n "$DLLTOOL_FOR_TARGET"; then 11592 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. 11593else 11594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11595for as_dir in $PATH 11596do 11597 IFS=$as_save_IFS 11598 test -z "$as_dir" && as_dir=. 11599 for ac_exec_ext in '' $ac_executable_extensions; do 11600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11601 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" 11602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11603 break 2 11604 fi 11605done 11606 done 11607IFS=$as_save_IFS 11608 11609fi 11610fi 11611DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 11612if test -n "$DLLTOOL_FOR_TARGET"; then 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 11614$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 11615else 11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11617$as_echo "no" >&6; } 11618fi 11619 11620 11621 fi 11622 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break 11623 done 11624fi 11625 11626if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then 11627 set dummy dlltool 11628 if test $build = $target ; then 11629 DLLTOOL_FOR_TARGET="$2" 11630 else 11631 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" 11632 fi 11633else 11634 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" 11635fi 11636 11637else 11638 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET 11639fi 11640 11641 11642 11643 11644if test -z "$ac_cv_path_LD_FOR_TARGET" ; then 11645 if test -n "$with_build_time_tools"; then 11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 11647$as_echo_n "checking for ld in $with_build_time_tools... " >&6; } 11648 if test -x $with_build_time_tools/ld; then 11649 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld 11650 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 11652$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } 11653 else 11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11655$as_echo "no" >&6; } 11656 fi 11657 elif test $build != $host && test $have_gcc_for_target = yes; then 11658 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` 11659 test $LD_FOR_TARGET = ld && LD_FOR_TARGET= 11660 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET 11661 fi 11662fi 11663if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 11664 # Extract the first word of "ld", so it can be a program name with args. 11665set dummy ld; ac_word=$2 11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11667$as_echo_n "checking for $ac_word... " >&6; } 11668if ${ac_cv_path_LD_FOR_TARGET+:} false; then : 11669 $as_echo_n "(cached) " >&6 11670else 11671 case $LD_FOR_TARGET in 11672 [\\/]* | ?:[\\/]*) 11673 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. 11674 ;; 11675 *) 11676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11677for as_dir in $gcc_cv_tool_dirs 11678do 11679 IFS=$as_save_IFS 11680 test -z "$as_dir" && as_dir=. 11681 for ac_exec_ext in '' $ac_executable_extensions; do 11682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11683 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 11684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11685 break 2 11686 fi 11687done 11688 done 11689IFS=$as_save_IFS 11690 11691 ;; 11692esac 11693fi 11694LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET 11695if test -n "$LD_FOR_TARGET"; then 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 11697$as_echo "$LD_FOR_TARGET" >&6; } 11698else 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11700$as_echo "no" >&6; } 11701fi 11702 11703 11704fi 11705if test -z "$ac_cv_path_LD_FOR_TARGET" ; then 11706 11707 11708if test -n "$LD_FOR_TARGET"; then 11709 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET 11710elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then 11711 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 11712fi 11713 11714if test -n "$ac_cv_prog_LD_FOR_TARGET"; then 11715 for ncn_progname in ld; do 11716 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11717set dummy ${ncn_progname}; ac_word=$2 11718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11719$as_echo_n "checking for $ac_word... " >&6; } 11720if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : 11721 $as_echo_n "(cached) " >&6 11722else 11723 if test -n "$LD_FOR_TARGET"; then 11724 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. 11725else 11726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11727for as_dir in $PATH 11728do 11729 IFS=$as_save_IFS 11730 test -z "$as_dir" && as_dir=. 11731 for ac_exec_ext in '' $ac_executable_extensions; do 11732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11733 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" 11734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11735 break 2 11736 fi 11737done 11738 done 11739IFS=$as_save_IFS 11740 11741fi 11742fi 11743LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 11744if test -n "$LD_FOR_TARGET"; then 11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 11746$as_echo "$LD_FOR_TARGET" >&6; } 11747else 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11749$as_echo "no" >&6; } 11750fi 11751 11752 11753 done 11754fi 11755 11756if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then 11757 for ncn_progname in ld; do 11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11759$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11760 if test -x $with_build_time_tools/${ncn_progname}; then 11761 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11763$as_echo "yes" >&6; } 11764 break 11765 else 11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11767$as_echo "no" >&6; } 11768 fi 11769 done 11770fi 11771 11772if test -z "$ac_cv_prog_LD_FOR_TARGET"; then 11773 for ncn_progname in ld; do 11774 if test -n "$ncn_target_tool_prefix"; then 11775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11776set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11778$as_echo_n "checking for $ac_word... " >&6; } 11779if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : 11780 $as_echo_n "(cached) " >&6 11781else 11782 if test -n "$LD_FOR_TARGET"; then 11783 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. 11784else 11785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11786for as_dir in $PATH 11787do 11788 IFS=$as_save_IFS 11789 test -z "$as_dir" && as_dir=. 11790 for ac_exec_ext in '' $ac_executable_extensions; do 11791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11792 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11794 break 2 11795 fi 11796done 11797 done 11798IFS=$as_save_IFS 11799 11800fi 11801fi 11802LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 11803if test -n "$LD_FOR_TARGET"; then 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 11805$as_echo "$LD_FOR_TARGET" >&6; } 11806else 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11808$as_echo "no" >&6; } 11809fi 11810 11811 11812 fi 11813 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then 11814 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11815set dummy ${ncn_progname}; ac_word=$2 11816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11817$as_echo_n "checking for $ac_word... " >&6; } 11818if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : 11819 $as_echo_n "(cached) " >&6 11820else 11821 if test -n "$LD_FOR_TARGET"; then 11822 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. 11823else 11824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11825for as_dir in $PATH 11826do 11827 IFS=$as_save_IFS 11828 test -z "$as_dir" && as_dir=. 11829 for ac_exec_ext in '' $ac_executable_extensions; do 11830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11831 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" 11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11833 break 2 11834 fi 11835done 11836 done 11837IFS=$as_save_IFS 11838 11839fi 11840fi 11841LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 11842if test -n "$LD_FOR_TARGET"; then 11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 11844$as_echo "$LD_FOR_TARGET" >&6; } 11845else 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11847$as_echo "no" >&6; } 11848fi 11849 11850 11851 fi 11852 test -n "$ac_cv_prog_LD_FOR_TARGET" && break 11853 done 11854fi 11855 11856if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then 11857 set dummy ld 11858 if test $build = $target ; then 11859 LD_FOR_TARGET="$2" 11860 else 11861 LD_FOR_TARGET="${ncn_target_tool_prefix}$2" 11862 fi 11863else 11864 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" 11865fi 11866 11867else 11868 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET 11869fi 11870 11871 11872 11873 11874if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then 11875 if test -n "$with_build_time_tools"; then 11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 11877$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } 11878 if test -x $with_build_time_tools/lipo; then 11879 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo 11880 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 11882$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } 11883 else 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11885$as_echo "no" >&6; } 11886 fi 11887 elif test $build != $host && test $have_gcc_for_target = yes; then 11888 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` 11889 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= 11890 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET 11891 fi 11892fi 11893if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 11894 # Extract the first word of "lipo", so it can be a program name with args. 11895set dummy lipo; ac_word=$2 11896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11897$as_echo_n "checking for $ac_word... " >&6; } 11898if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : 11899 $as_echo_n "(cached) " >&6 11900else 11901 case $LIPO_FOR_TARGET in 11902 [\\/]* | ?:[\\/]*) 11903 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. 11904 ;; 11905 *) 11906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11907for as_dir in $gcc_cv_tool_dirs 11908do 11909 IFS=$as_save_IFS 11910 test -z "$as_dir" && as_dir=. 11911 for ac_exec_ext in '' $ac_executable_extensions; do 11912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11913 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 11914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11915 break 2 11916 fi 11917done 11918 done 11919IFS=$as_save_IFS 11920 11921 ;; 11922esac 11923fi 11924LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET 11925if test -n "$LIPO_FOR_TARGET"; then 11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 11927$as_echo "$LIPO_FOR_TARGET" >&6; } 11928else 11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11930$as_echo "no" >&6; } 11931fi 11932 11933 11934fi 11935if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then 11936 11937 11938if test -n "$LIPO_FOR_TARGET"; then 11939 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET 11940elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then 11941 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 11942fi 11943 11944if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then 11945 for ncn_progname in lipo; do 11946 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11947set dummy ${ncn_progname}; ac_word=$2 11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11949$as_echo_n "checking for $ac_word... " >&6; } 11950if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : 11951 $as_echo_n "(cached) " >&6 11952else 11953 if test -n "$LIPO_FOR_TARGET"; then 11954 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. 11955else 11956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11957for as_dir in $PATH 11958do 11959 IFS=$as_save_IFS 11960 test -z "$as_dir" && as_dir=. 11961 for ac_exec_ext in '' $ac_executable_extensions; do 11962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11963 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" 11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11965 break 2 11966 fi 11967done 11968 done 11969IFS=$as_save_IFS 11970 11971fi 11972fi 11973LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 11974if test -n "$LIPO_FOR_TARGET"; then 11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 11976$as_echo "$LIPO_FOR_TARGET" >&6; } 11977else 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11979$as_echo "no" >&6; } 11980fi 11981 11982 11983 done 11984fi 11985 11986if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then 11987 for ncn_progname in lipo; do 11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11989$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11990 if test -x $with_build_time_tools/${ncn_progname}; then 11991 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11993$as_echo "yes" >&6; } 11994 break 11995 else 11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11997$as_echo "no" >&6; } 11998 fi 11999 done 12000fi 12001 12002if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then 12003 for ncn_progname in lipo; do 12004 if test -n "$ncn_target_tool_prefix"; then 12005 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12006set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12008$as_echo_n "checking for $ac_word... " >&6; } 12009if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : 12010 $as_echo_n "(cached) " >&6 12011else 12012 if test -n "$LIPO_FOR_TARGET"; then 12013 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. 12014else 12015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12016for as_dir in $PATH 12017do 12018 IFS=$as_save_IFS 12019 test -z "$as_dir" && as_dir=. 12020 for ac_exec_ext in '' $ac_executable_extensions; do 12021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12022 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12024 break 2 12025 fi 12026done 12027 done 12028IFS=$as_save_IFS 12029 12030fi 12031fi 12032LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 12033if test -n "$LIPO_FOR_TARGET"; then 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 12035$as_echo "$LIPO_FOR_TARGET" >&6; } 12036else 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12038$as_echo "no" >&6; } 12039fi 12040 12041 12042 fi 12043 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then 12044 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12045set dummy ${ncn_progname}; ac_word=$2 12046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12047$as_echo_n "checking for $ac_word... " >&6; } 12048if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : 12049 $as_echo_n "(cached) " >&6 12050else 12051 if test -n "$LIPO_FOR_TARGET"; then 12052 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. 12053else 12054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12055for as_dir in $PATH 12056do 12057 IFS=$as_save_IFS 12058 test -z "$as_dir" && as_dir=. 12059 for ac_exec_ext in '' $ac_executable_extensions; do 12060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12061 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" 12062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12063 break 2 12064 fi 12065done 12066 done 12067IFS=$as_save_IFS 12068 12069fi 12070fi 12071LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 12072if test -n "$LIPO_FOR_TARGET"; then 12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 12074$as_echo "$LIPO_FOR_TARGET" >&6; } 12075else 12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12077$as_echo "no" >&6; } 12078fi 12079 12080 12081 fi 12082 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break 12083 done 12084fi 12085 12086if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then 12087 set dummy lipo 12088 if test $build = $target ; then 12089 LIPO_FOR_TARGET="$2" 12090 else 12091 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" 12092 fi 12093else 12094 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" 12095fi 12096 12097else 12098 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET 12099fi 12100 12101 12102 12103 12104if test -z "$ac_cv_path_NM_FOR_TARGET" ; then 12105 if test -n "$with_build_time_tools"; then 12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 12107$as_echo_n "checking for nm in $with_build_time_tools... " >&6; } 12108 if test -x $with_build_time_tools/nm; then 12109 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm 12110 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET 12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 12112$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } 12113 else 12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12115$as_echo "no" >&6; } 12116 fi 12117 elif test $build != $host && test $have_gcc_for_target = yes; then 12118 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` 12119 test $NM_FOR_TARGET = nm && NM_FOR_TARGET= 12120 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET 12121 fi 12122fi 12123if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12124 # Extract the first word of "nm", so it can be a program name with args. 12125set dummy nm; ac_word=$2 12126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12127$as_echo_n "checking for $ac_word... " >&6; } 12128if ${ac_cv_path_NM_FOR_TARGET+:} false; then : 12129 $as_echo_n "(cached) " >&6 12130else 12131 case $NM_FOR_TARGET in 12132 [\\/]* | ?:[\\/]*) 12133 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. 12134 ;; 12135 *) 12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12137for as_dir in $gcc_cv_tool_dirs 12138do 12139 IFS=$as_save_IFS 12140 test -z "$as_dir" && as_dir=. 12141 for ac_exec_ext in '' $ac_executable_extensions; do 12142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12143 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12145 break 2 12146 fi 12147done 12148 done 12149IFS=$as_save_IFS 12150 12151 ;; 12152esac 12153fi 12154NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET 12155if test -n "$NM_FOR_TARGET"; then 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12157$as_echo "$NM_FOR_TARGET" >&6; } 12158else 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12160$as_echo "no" >&6; } 12161fi 12162 12163 12164fi 12165if test -z "$ac_cv_path_NM_FOR_TARGET" ; then 12166 12167 12168if test -n "$NM_FOR_TARGET"; then 12169 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET 12170elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then 12171 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12172fi 12173 12174if test -n "$ac_cv_prog_NM_FOR_TARGET"; then 12175 for ncn_progname in nm; do 12176 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12177set dummy ${ncn_progname}; ac_word=$2 12178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12179$as_echo_n "checking for $ac_word... " >&6; } 12180if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : 12181 $as_echo_n "(cached) " >&6 12182else 12183 if test -n "$NM_FOR_TARGET"; then 12184 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. 12185else 12186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12187for as_dir in $PATH 12188do 12189 IFS=$as_save_IFS 12190 test -z "$as_dir" && as_dir=. 12191 for ac_exec_ext in '' $ac_executable_extensions; do 12192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12193 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" 12194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12195 break 2 12196 fi 12197done 12198 done 12199IFS=$as_save_IFS 12200 12201fi 12202fi 12203NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12204if test -n "$NM_FOR_TARGET"; then 12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12206$as_echo "$NM_FOR_TARGET" >&6; } 12207else 12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12209$as_echo "no" >&6; } 12210fi 12211 12212 12213 done 12214fi 12215 12216if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then 12217 for ncn_progname in nm; do 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12219$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12220 if test -x $with_build_time_tools/${ncn_progname}; then 12221 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12223$as_echo "yes" >&6; } 12224 break 12225 else 12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12227$as_echo "no" >&6; } 12228 fi 12229 done 12230fi 12231 12232if test -z "$ac_cv_prog_NM_FOR_TARGET"; then 12233 for ncn_progname in nm; do 12234 if test -n "$ncn_target_tool_prefix"; then 12235 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12236set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12238$as_echo_n "checking for $ac_word... " >&6; } 12239if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : 12240 $as_echo_n "(cached) " >&6 12241else 12242 if test -n "$NM_FOR_TARGET"; then 12243 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. 12244else 12245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12246for as_dir in $PATH 12247do 12248 IFS=$as_save_IFS 12249 test -z "$as_dir" && as_dir=. 12250 for ac_exec_ext in '' $ac_executable_extensions; do 12251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12252 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12254 break 2 12255 fi 12256done 12257 done 12258IFS=$as_save_IFS 12259 12260fi 12261fi 12262NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12263if test -n "$NM_FOR_TARGET"; then 12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12265$as_echo "$NM_FOR_TARGET" >&6; } 12266else 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12268$as_echo "no" >&6; } 12269fi 12270 12271 12272 fi 12273 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then 12274 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12275set dummy ${ncn_progname}; ac_word=$2 12276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12277$as_echo_n "checking for $ac_word... " >&6; } 12278if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : 12279 $as_echo_n "(cached) " >&6 12280else 12281 if test -n "$NM_FOR_TARGET"; then 12282 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. 12283else 12284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12285for as_dir in $PATH 12286do 12287 IFS=$as_save_IFS 12288 test -z "$as_dir" && as_dir=. 12289 for ac_exec_ext in '' $ac_executable_extensions; do 12290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12291 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" 12292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12293 break 2 12294 fi 12295done 12296 done 12297IFS=$as_save_IFS 12298 12299fi 12300fi 12301NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12302if test -n "$NM_FOR_TARGET"; then 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12304$as_echo "$NM_FOR_TARGET" >&6; } 12305else 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12307$as_echo "no" >&6; } 12308fi 12309 12310 12311 fi 12312 test -n "$ac_cv_prog_NM_FOR_TARGET" && break 12313 done 12314fi 12315 12316if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then 12317 set dummy nm 12318 if test $build = $target ; then 12319 NM_FOR_TARGET="$2" 12320 else 12321 NM_FOR_TARGET="${ncn_target_tool_prefix}$2" 12322 fi 12323else 12324 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" 12325fi 12326 12327else 12328 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET 12329fi 12330 12331 12332 12333 12334if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then 12335 if test -n "$with_build_time_tools"; then 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 12337$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } 12338 if test -x $with_build_time_tools/objcopy; then 12339 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy 12340 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET 12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 12342$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } 12343 else 12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12345$as_echo "no" >&6; } 12346 fi 12347 elif test $build != $host && test $have_gcc_for_target = yes; then 12348 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` 12349 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= 12350 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET 12351 fi 12352fi 12353if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12354 # Extract the first word of "objcopy", so it can be a program name with args. 12355set dummy objcopy; ac_word=$2 12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12357$as_echo_n "checking for $ac_word... " >&6; } 12358if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : 12359 $as_echo_n "(cached) " >&6 12360else 12361 case $OBJCOPY_FOR_TARGET in 12362 [\\/]* | ?:[\\/]*) 12363 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. 12364 ;; 12365 *) 12366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12367for as_dir in $gcc_cv_tool_dirs 12368do 12369 IFS=$as_save_IFS 12370 test -z "$as_dir" && as_dir=. 12371 for ac_exec_ext in '' $ac_executable_extensions; do 12372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12373 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12375 break 2 12376 fi 12377done 12378 done 12379IFS=$as_save_IFS 12380 12381 ;; 12382esac 12383fi 12384OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET 12385if test -n "$OBJCOPY_FOR_TARGET"; then 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 12387$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 12388else 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12390$as_echo "no" >&6; } 12391fi 12392 12393 12394fi 12395if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then 12396 12397 12398if test -n "$OBJCOPY_FOR_TARGET"; then 12399 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET 12400elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then 12401 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 12402fi 12403 12404if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then 12405 for ncn_progname in objcopy; do 12406 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12407set dummy ${ncn_progname}; ac_word=$2 12408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12409$as_echo_n "checking for $ac_word... " >&6; } 12410if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : 12411 $as_echo_n "(cached) " >&6 12412else 12413 if test -n "$OBJCOPY_FOR_TARGET"; then 12414 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. 12415else 12416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12417for as_dir in $PATH 12418do 12419 IFS=$as_save_IFS 12420 test -z "$as_dir" && as_dir=. 12421 for ac_exec_ext in '' $ac_executable_extensions; do 12422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12423 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" 12424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12425 break 2 12426 fi 12427done 12428 done 12429IFS=$as_save_IFS 12430 12431fi 12432fi 12433OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 12434if test -n "$OBJCOPY_FOR_TARGET"; then 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 12436$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 12437else 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12439$as_echo "no" >&6; } 12440fi 12441 12442 12443 done 12444fi 12445 12446if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then 12447 for ncn_progname in objcopy; do 12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12449$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12450 if test -x $with_build_time_tools/${ncn_progname}; then 12451 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12453$as_echo "yes" >&6; } 12454 break 12455 else 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12457$as_echo "no" >&6; } 12458 fi 12459 done 12460fi 12461 12462if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then 12463 for ncn_progname in objcopy; do 12464 if test -n "$ncn_target_tool_prefix"; then 12465 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12466set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12468$as_echo_n "checking for $ac_word... " >&6; } 12469if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : 12470 $as_echo_n "(cached) " >&6 12471else 12472 if test -n "$OBJCOPY_FOR_TARGET"; then 12473 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. 12474else 12475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12476for as_dir in $PATH 12477do 12478 IFS=$as_save_IFS 12479 test -z "$as_dir" && as_dir=. 12480 for ac_exec_ext in '' $ac_executable_extensions; do 12481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12482 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12484 break 2 12485 fi 12486done 12487 done 12488IFS=$as_save_IFS 12489 12490fi 12491fi 12492OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 12493if test -n "$OBJCOPY_FOR_TARGET"; then 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 12495$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 12496else 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12498$as_echo "no" >&6; } 12499fi 12500 12501 12502 fi 12503 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then 12504 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12505set dummy ${ncn_progname}; ac_word=$2 12506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12507$as_echo_n "checking for $ac_word... " >&6; } 12508if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : 12509 $as_echo_n "(cached) " >&6 12510else 12511 if test -n "$OBJCOPY_FOR_TARGET"; then 12512 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. 12513else 12514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12515for as_dir in $PATH 12516do 12517 IFS=$as_save_IFS 12518 test -z "$as_dir" && as_dir=. 12519 for ac_exec_ext in '' $ac_executable_extensions; do 12520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12521 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" 12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12523 break 2 12524 fi 12525done 12526 done 12527IFS=$as_save_IFS 12528 12529fi 12530fi 12531OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 12532if test -n "$OBJCOPY_FOR_TARGET"; then 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 12534$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 12535else 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12537$as_echo "no" >&6; } 12538fi 12539 12540 12541 fi 12542 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break 12543 done 12544fi 12545 12546if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then 12547 set dummy objcopy 12548 if test $build = $target ; then 12549 OBJCOPY_FOR_TARGET="$2" 12550 else 12551 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" 12552 fi 12553else 12554 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" 12555fi 12556 12557else 12558 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET 12559fi 12560 12561 12562 12563 12564if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then 12565 if test -n "$with_build_time_tools"; then 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 12567$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } 12568 if test -x $with_build_time_tools/objdump; then 12569 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump 12570 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 12572$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } 12573 else 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12575$as_echo "no" >&6; } 12576 fi 12577 elif test $build != $host && test $have_gcc_for_target = yes; then 12578 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` 12579 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= 12580 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET 12581 fi 12582fi 12583if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12584 # Extract the first word of "objdump", so it can be a program name with args. 12585set dummy objdump; ac_word=$2 12586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12587$as_echo_n "checking for $ac_word... " >&6; } 12588if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : 12589 $as_echo_n "(cached) " >&6 12590else 12591 case $OBJDUMP_FOR_TARGET in 12592 [\\/]* | ?:[\\/]*) 12593 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. 12594 ;; 12595 *) 12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12597for as_dir in $gcc_cv_tool_dirs 12598do 12599 IFS=$as_save_IFS 12600 test -z "$as_dir" && as_dir=. 12601 for ac_exec_ext in '' $ac_executable_extensions; do 12602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12603 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12605 break 2 12606 fi 12607done 12608 done 12609IFS=$as_save_IFS 12610 12611 ;; 12612esac 12613fi 12614OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET 12615if test -n "$OBJDUMP_FOR_TARGET"; then 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 12617$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 12618else 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12620$as_echo "no" >&6; } 12621fi 12622 12623 12624fi 12625if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then 12626 12627 12628if test -n "$OBJDUMP_FOR_TARGET"; then 12629 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET 12630elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then 12631 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 12632fi 12633 12634if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then 12635 for ncn_progname in objdump; do 12636 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12637set dummy ${ncn_progname}; ac_word=$2 12638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12639$as_echo_n "checking for $ac_word... " >&6; } 12640if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : 12641 $as_echo_n "(cached) " >&6 12642else 12643 if test -n "$OBJDUMP_FOR_TARGET"; then 12644 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. 12645else 12646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12647for as_dir in $PATH 12648do 12649 IFS=$as_save_IFS 12650 test -z "$as_dir" && as_dir=. 12651 for ac_exec_ext in '' $ac_executable_extensions; do 12652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12653 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" 12654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12655 break 2 12656 fi 12657done 12658 done 12659IFS=$as_save_IFS 12660 12661fi 12662fi 12663OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 12664if test -n "$OBJDUMP_FOR_TARGET"; then 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 12666$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 12667else 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12669$as_echo "no" >&6; } 12670fi 12671 12672 12673 done 12674fi 12675 12676if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then 12677 for ncn_progname in objdump; do 12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12679$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12680 if test -x $with_build_time_tools/${ncn_progname}; then 12681 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12683$as_echo "yes" >&6; } 12684 break 12685 else 12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12687$as_echo "no" >&6; } 12688 fi 12689 done 12690fi 12691 12692if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then 12693 for ncn_progname in objdump; do 12694 if test -n "$ncn_target_tool_prefix"; then 12695 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12696set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12698$as_echo_n "checking for $ac_word... " >&6; } 12699if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : 12700 $as_echo_n "(cached) " >&6 12701else 12702 if test -n "$OBJDUMP_FOR_TARGET"; then 12703 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. 12704else 12705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12706for as_dir in $PATH 12707do 12708 IFS=$as_save_IFS 12709 test -z "$as_dir" && as_dir=. 12710 for ac_exec_ext in '' $ac_executable_extensions; do 12711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12712 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12714 break 2 12715 fi 12716done 12717 done 12718IFS=$as_save_IFS 12719 12720fi 12721fi 12722OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 12723if test -n "$OBJDUMP_FOR_TARGET"; then 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 12725$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 12726else 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12728$as_echo "no" >&6; } 12729fi 12730 12731 12732 fi 12733 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then 12734 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12735set dummy ${ncn_progname}; ac_word=$2 12736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12737$as_echo_n "checking for $ac_word... " >&6; } 12738if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : 12739 $as_echo_n "(cached) " >&6 12740else 12741 if test -n "$OBJDUMP_FOR_TARGET"; then 12742 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. 12743else 12744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12745for as_dir in $PATH 12746do 12747 IFS=$as_save_IFS 12748 test -z "$as_dir" && as_dir=. 12749 for ac_exec_ext in '' $ac_executable_extensions; do 12750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12751 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" 12752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12753 break 2 12754 fi 12755done 12756 done 12757IFS=$as_save_IFS 12758 12759fi 12760fi 12761OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 12762if test -n "$OBJDUMP_FOR_TARGET"; then 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 12764$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 12765else 12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12767$as_echo "no" >&6; } 12768fi 12769 12770 12771 fi 12772 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break 12773 done 12774fi 12775 12776if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then 12777 set dummy objdump 12778 if test $build = $target ; then 12779 OBJDUMP_FOR_TARGET="$2" 12780 else 12781 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" 12782 fi 12783else 12784 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" 12785fi 12786 12787else 12788 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET 12789fi 12790 12791 12792 12793 12794if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then 12795 if test -n "$with_build_time_tools"; then 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 12797$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } 12798 if test -x $with_build_time_tools/ranlib; then 12799 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib 12800 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET 12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 12802$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } 12803 else 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12805$as_echo "no" >&6; } 12806 fi 12807 elif test $build != $host && test $have_gcc_for_target = yes; then 12808 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` 12809 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= 12810 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET 12811 fi 12812fi 12813if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12814 # Extract the first word of "ranlib", so it can be a program name with args. 12815set dummy ranlib; ac_word=$2 12816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12817$as_echo_n "checking for $ac_word... " >&6; } 12818if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : 12819 $as_echo_n "(cached) " >&6 12820else 12821 case $RANLIB_FOR_TARGET in 12822 [\\/]* | ?:[\\/]*) 12823 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. 12824 ;; 12825 *) 12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12827for as_dir in $gcc_cv_tool_dirs 12828do 12829 IFS=$as_save_IFS 12830 test -z "$as_dir" && as_dir=. 12831 for ac_exec_ext in '' $ac_executable_extensions; do 12832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12833 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12835 break 2 12836 fi 12837done 12838 done 12839IFS=$as_save_IFS 12840 12841 ;; 12842esac 12843fi 12844RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET 12845if test -n "$RANLIB_FOR_TARGET"; then 12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 12847$as_echo "$RANLIB_FOR_TARGET" >&6; } 12848else 12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12850$as_echo "no" >&6; } 12851fi 12852 12853 12854fi 12855if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then 12856 12857 12858if test -n "$RANLIB_FOR_TARGET"; then 12859 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET 12860elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then 12861 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 12862fi 12863 12864if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then 12865 for ncn_progname in ranlib; do 12866 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12867set dummy ${ncn_progname}; ac_word=$2 12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12869$as_echo_n "checking for $ac_word... " >&6; } 12870if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : 12871 $as_echo_n "(cached) " >&6 12872else 12873 if test -n "$RANLIB_FOR_TARGET"; then 12874 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. 12875else 12876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12877for as_dir in $PATH 12878do 12879 IFS=$as_save_IFS 12880 test -z "$as_dir" && as_dir=. 12881 for ac_exec_ext in '' $ac_executable_extensions; do 12882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12883 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" 12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12885 break 2 12886 fi 12887done 12888 done 12889IFS=$as_save_IFS 12890 12891fi 12892fi 12893RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 12894if test -n "$RANLIB_FOR_TARGET"; then 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 12896$as_echo "$RANLIB_FOR_TARGET" >&6; } 12897else 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12899$as_echo "no" >&6; } 12900fi 12901 12902 12903 done 12904fi 12905 12906if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then 12907 for ncn_progname in ranlib; do 12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12909$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12910 if test -x $with_build_time_tools/${ncn_progname}; then 12911 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12913$as_echo "yes" >&6; } 12914 break 12915 else 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12917$as_echo "no" >&6; } 12918 fi 12919 done 12920fi 12921 12922if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then 12923 for ncn_progname in ranlib; do 12924 if test -n "$ncn_target_tool_prefix"; then 12925 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12926set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12928$as_echo_n "checking for $ac_word... " >&6; } 12929if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : 12930 $as_echo_n "(cached) " >&6 12931else 12932 if test -n "$RANLIB_FOR_TARGET"; then 12933 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. 12934else 12935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12936for as_dir in $PATH 12937do 12938 IFS=$as_save_IFS 12939 test -z "$as_dir" && as_dir=. 12940 for ac_exec_ext in '' $ac_executable_extensions; do 12941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12942 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12944 break 2 12945 fi 12946done 12947 done 12948IFS=$as_save_IFS 12949 12950fi 12951fi 12952RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 12953if test -n "$RANLIB_FOR_TARGET"; then 12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 12955$as_echo "$RANLIB_FOR_TARGET" >&6; } 12956else 12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12958$as_echo "no" >&6; } 12959fi 12960 12961 12962 fi 12963 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then 12964 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12965set dummy ${ncn_progname}; ac_word=$2 12966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12967$as_echo_n "checking for $ac_word... " >&6; } 12968if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : 12969 $as_echo_n "(cached) " >&6 12970else 12971 if test -n "$RANLIB_FOR_TARGET"; then 12972 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. 12973else 12974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12975for as_dir in $PATH 12976do 12977 IFS=$as_save_IFS 12978 test -z "$as_dir" && as_dir=. 12979 for ac_exec_ext in '' $ac_executable_extensions; do 12980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12981 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" 12982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12983 break 2 12984 fi 12985done 12986 done 12987IFS=$as_save_IFS 12988 12989fi 12990fi 12991RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 12992if test -n "$RANLIB_FOR_TARGET"; then 12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 12994$as_echo "$RANLIB_FOR_TARGET" >&6; } 12995else 12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12997$as_echo "no" >&6; } 12998fi 12999 13000 13001 fi 13002 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break 13003 done 13004fi 13005 13006if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then 13007 set dummy ranlib 13008 if test $build = $target ; then 13009 RANLIB_FOR_TARGET="$2" 13010 else 13011 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" 13012 fi 13013else 13014 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" 13015fi 13016 13017else 13018 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET 13019fi 13020 13021 13022 13023 13024if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then 13025 if test -n "$with_build_time_tools"; then 13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 13027$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } 13028 if test -x $with_build_time_tools/readelf; then 13029 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf 13030 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET 13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 13032$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } 13033 else 13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13035$as_echo "no" >&6; } 13036 fi 13037 elif test $build != $host && test $have_gcc_for_target = yes; then 13038 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` 13039 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= 13040 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET 13041 fi 13042fi 13043if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13044 # Extract the first word of "readelf", so it can be a program name with args. 13045set dummy readelf; ac_word=$2 13046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13047$as_echo_n "checking for $ac_word... " >&6; } 13048if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : 13049 $as_echo_n "(cached) " >&6 13050else 13051 case $READELF_FOR_TARGET in 13052 [\\/]* | ?:[\\/]*) 13053 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. 13054 ;; 13055 *) 13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13057for as_dir in $gcc_cv_tool_dirs 13058do 13059 IFS=$as_save_IFS 13060 test -z "$as_dir" && as_dir=. 13061 for ac_exec_ext in '' $ac_executable_extensions; do 13062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13063 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13065 break 2 13066 fi 13067done 13068 done 13069IFS=$as_save_IFS 13070 13071 ;; 13072esac 13073fi 13074READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET 13075if test -n "$READELF_FOR_TARGET"; then 13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 13077$as_echo "$READELF_FOR_TARGET" >&6; } 13078else 13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13080$as_echo "no" >&6; } 13081fi 13082 13083 13084fi 13085if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then 13086 13087 13088if test -n "$READELF_FOR_TARGET"; then 13089 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET 13090elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then 13091 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 13092fi 13093 13094if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then 13095 for ncn_progname in readelf; do 13096 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13097set dummy ${ncn_progname}; ac_word=$2 13098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13099$as_echo_n "checking for $ac_word... " >&6; } 13100if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : 13101 $as_echo_n "(cached) " >&6 13102else 13103 if test -n "$READELF_FOR_TARGET"; then 13104 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. 13105else 13106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13107for as_dir in $PATH 13108do 13109 IFS=$as_save_IFS 13110 test -z "$as_dir" && as_dir=. 13111 for ac_exec_ext in '' $ac_executable_extensions; do 13112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13113 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" 13114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13115 break 2 13116 fi 13117done 13118 done 13119IFS=$as_save_IFS 13120 13121fi 13122fi 13123READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 13124if test -n "$READELF_FOR_TARGET"; then 13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 13126$as_echo "$READELF_FOR_TARGET" >&6; } 13127else 13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13129$as_echo "no" >&6; } 13130fi 13131 13132 13133 done 13134fi 13135 13136if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then 13137 for ncn_progname in readelf; do 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13139$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13140 if test -x $with_build_time_tools/${ncn_progname}; then 13141 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13143$as_echo "yes" >&6; } 13144 break 13145 else 13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13147$as_echo "no" >&6; } 13148 fi 13149 done 13150fi 13151 13152if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then 13153 for ncn_progname in readelf; do 13154 if test -n "$ncn_target_tool_prefix"; then 13155 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13156set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13158$as_echo_n "checking for $ac_word... " >&6; } 13159if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : 13160 $as_echo_n "(cached) " >&6 13161else 13162 if test -n "$READELF_FOR_TARGET"; then 13163 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. 13164else 13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13166for as_dir in $PATH 13167do 13168 IFS=$as_save_IFS 13169 test -z "$as_dir" && as_dir=. 13170 for ac_exec_ext in '' $ac_executable_extensions; do 13171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13172 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13174 break 2 13175 fi 13176done 13177 done 13178IFS=$as_save_IFS 13179 13180fi 13181fi 13182READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 13183if test -n "$READELF_FOR_TARGET"; then 13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 13185$as_echo "$READELF_FOR_TARGET" >&6; } 13186else 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13188$as_echo "no" >&6; } 13189fi 13190 13191 13192 fi 13193 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then 13194 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13195set dummy ${ncn_progname}; ac_word=$2 13196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13197$as_echo_n "checking for $ac_word... " >&6; } 13198if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : 13199 $as_echo_n "(cached) " >&6 13200else 13201 if test -n "$READELF_FOR_TARGET"; then 13202 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. 13203else 13204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13205for as_dir in $PATH 13206do 13207 IFS=$as_save_IFS 13208 test -z "$as_dir" && as_dir=. 13209 for ac_exec_ext in '' $ac_executable_extensions; do 13210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13211 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" 13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13213 break 2 13214 fi 13215done 13216 done 13217IFS=$as_save_IFS 13218 13219fi 13220fi 13221READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 13222if test -n "$READELF_FOR_TARGET"; then 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 13224$as_echo "$READELF_FOR_TARGET" >&6; } 13225else 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13227$as_echo "no" >&6; } 13228fi 13229 13230 13231 fi 13232 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break 13233 done 13234fi 13235 13236if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then 13237 set dummy readelf 13238 if test $build = $target ; then 13239 READELF_FOR_TARGET="$2" 13240 else 13241 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" 13242 fi 13243else 13244 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" 13245fi 13246 13247else 13248 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET 13249fi 13250 13251 13252 13253 13254if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then 13255 if test -n "$with_build_time_tools"; then 13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 13257$as_echo_n "checking for strip in $with_build_time_tools... " >&6; } 13258 if test -x $with_build_time_tools/strip; then 13259 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip 13260 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET 13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 13262$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } 13263 else 13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13265$as_echo "no" >&6; } 13266 fi 13267 elif test $build != $host && test $have_gcc_for_target = yes; then 13268 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` 13269 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= 13270 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET 13271 fi 13272fi 13273if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13274 # Extract the first word of "strip", so it can be a program name with args. 13275set dummy strip; ac_word=$2 13276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13277$as_echo_n "checking for $ac_word... " >&6; } 13278if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : 13279 $as_echo_n "(cached) " >&6 13280else 13281 case $STRIP_FOR_TARGET in 13282 [\\/]* | ?:[\\/]*) 13283 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. 13284 ;; 13285 *) 13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13287for as_dir in $gcc_cv_tool_dirs 13288do 13289 IFS=$as_save_IFS 13290 test -z "$as_dir" && as_dir=. 13291 for ac_exec_ext in '' $ac_executable_extensions; do 13292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13293 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13295 break 2 13296 fi 13297done 13298 done 13299IFS=$as_save_IFS 13300 13301 ;; 13302esac 13303fi 13304STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET 13305if test -n "$STRIP_FOR_TARGET"; then 13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 13307$as_echo "$STRIP_FOR_TARGET" >&6; } 13308else 13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13310$as_echo "no" >&6; } 13311fi 13312 13313 13314fi 13315if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then 13316 13317 13318if test -n "$STRIP_FOR_TARGET"; then 13319 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET 13320elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then 13321 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 13322fi 13323 13324if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then 13325 for ncn_progname in strip; do 13326 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13327set dummy ${ncn_progname}; ac_word=$2 13328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13329$as_echo_n "checking for $ac_word... " >&6; } 13330if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : 13331 $as_echo_n "(cached) " >&6 13332else 13333 if test -n "$STRIP_FOR_TARGET"; then 13334 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. 13335else 13336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13337for as_dir in $PATH 13338do 13339 IFS=$as_save_IFS 13340 test -z "$as_dir" && as_dir=. 13341 for ac_exec_ext in '' $ac_executable_extensions; do 13342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13343 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" 13344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13345 break 2 13346 fi 13347done 13348 done 13349IFS=$as_save_IFS 13350 13351fi 13352fi 13353STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 13354if test -n "$STRIP_FOR_TARGET"; then 13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 13356$as_echo "$STRIP_FOR_TARGET" >&6; } 13357else 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13359$as_echo "no" >&6; } 13360fi 13361 13362 13363 done 13364fi 13365 13366if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then 13367 for ncn_progname in strip; do 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13369$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13370 if test -x $with_build_time_tools/${ncn_progname}; then 13371 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13373$as_echo "yes" >&6; } 13374 break 13375 else 13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13377$as_echo "no" >&6; } 13378 fi 13379 done 13380fi 13381 13382if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then 13383 for ncn_progname in strip; do 13384 if test -n "$ncn_target_tool_prefix"; then 13385 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13386set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13388$as_echo_n "checking for $ac_word... " >&6; } 13389if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : 13390 $as_echo_n "(cached) " >&6 13391else 13392 if test -n "$STRIP_FOR_TARGET"; then 13393 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. 13394else 13395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13396for as_dir in $PATH 13397do 13398 IFS=$as_save_IFS 13399 test -z "$as_dir" && as_dir=. 13400 for ac_exec_ext in '' $ac_executable_extensions; do 13401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13402 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13404 break 2 13405 fi 13406done 13407 done 13408IFS=$as_save_IFS 13409 13410fi 13411fi 13412STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 13413if test -n "$STRIP_FOR_TARGET"; then 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 13415$as_echo "$STRIP_FOR_TARGET" >&6; } 13416else 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13418$as_echo "no" >&6; } 13419fi 13420 13421 13422 fi 13423 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then 13424 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13425set dummy ${ncn_progname}; ac_word=$2 13426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13427$as_echo_n "checking for $ac_word... " >&6; } 13428if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : 13429 $as_echo_n "(cached) " >&6 13430else 13431 if test -n "$STRIP_FOR_TARGET"; then 13432 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. 13433else 13434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13435for as_dir in $PATH 13436do 13437 IFS=$as_save_IFS 13438 test -z "$as_dir" && as_dir=. 13439 for ac_exec_ext in '' $ac_executable_extensions; do 13440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13441 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" 13442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13443 break 2 13444 fi 13445done 13446 done 13447IFS=$as_save_IFS 13448 13449fi 13450fi 13451STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 13452if test -n "$STRIP_FOR_TARGET"; then 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 13454$as_echo "$STRIP_FOR_TARGET" >&6; } 13455else 13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13457$as_echo "no" >&6; } 13458fi 13459 13460 13461 fi 13462 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break 13463 done 13464fi 13465 13466if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then 13467 set dummy strip 13468 if test $build = $target ; then 13469 STRIP_FOR_TARGET="$2" 13470 else 13471 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" 13472 fi 13473else 13474 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" 13475fi 13476 13477else 13478 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET 13479fi 13480 13481 13482 13483 13484if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then 13485 if test -n "$with_build_time_tools"; then 13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 13487$as_echo_n "checking for windres in $with_build_time_tools... " >&6; } 13488 if test -x $with_build_time_tools/windres; then 13489 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres 13490 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET 13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 13492$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } 13493 else 13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13495$as_echo "no" >&6; } 13496 fi 13497 elif test $build != $host && test $have_gcc_for_target = yes; then 13498 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` 13499 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= 13500 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET 13501 fi 13502fi 13503if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13504 # Extract the first word of "windres", so it can be a program name with args. 13505set dummy windres; ac_word=$2 13506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13507$as_echo_n "checking for $ac_word... " >&6; } 13508if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : 13509 $as_echo_n "(cached) " >&6 13510else 13511 case $WINDRES_FOR_TARGET in 13512 [\\/]* | ?:[\\/]*) 13513 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. 13514 ;; 13515 *) 13516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13517for as_dir in $gcc_cv_tool_dirs 13518do 13519 IFS=$as_save_IFS 13520 test -z "$as_dir" && as_dir=. 13521 for ac_exec_ext in '' $ac_executable_extensions; do 13522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13523 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13525 break 2 13526 fi 13527done 13528 done 13529IFS=$as_save_IFS 13530 13531 ;; 13532esac 13533fi 13534WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET 13535if test -n "$WINDRES_FOR_TARGET"; then 13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 13537$as_echo "$WINDRES_FOR_TARGET" >&6; } 13538else 13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13540$as_echo "no" >&6; } 13541fi 13542 13543 13544fi 13545if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then 13546 13547 13548if test -n "$WINDRES_FOR_TARGET"; then 13549 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET 13550elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then 13551 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 13552fi 13553 13554if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then 13555 for ncn_progname in windres; do 13556 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13557set dummy ${ncn_progname}; ac_word=$2 13558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13559$as_echo_n "checking for $ac_word... " >&6; } 13560if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : 13561 $as_echo_n "(cached) " >&6 13562else 13563 if test -n "$WINDRES_FOR_TARGET"; then 13564 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. 13565else 13566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13567for as_dir in $PATH 13568do 13569 IFS=$as_save_IFS 13570 test -z "$as_dir" && as_dir=. 13571 for ac_exec_ext in '' $ac_executable_extensions; do 13572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13573 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" 13574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13575 break 2 13576 fi 13577done 13578 done 13579IFS=$as_save_IFS 13580 13581fi 13582fi 13583WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 13584if test -n "$WINDRES_FOR_TARGET"; then 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 13586$as_echo "$WINDRES_FOR_TARGET" >&6; } 13587else 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13589$as_echo "no" >&6; } 13590fi 13591 13592 13593 done 13594fi 13595 13596if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then 13597 for ncn_progname in windres; do 13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13599$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13600 if test -x $with_build_time_tools/${ncn_progname}; then 13601 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13603$as_echo "yes" >&6; } 13604 break 13605 else 13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13607$as_echo "no" >&6; } 13608 fi 13609 done 13610fi 13611 13612if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then 13613 for ncn_progname in windres; do 13614 if test -n "$ncn_target_tool_prefix"; then 13615 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13616set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13618$as_echo_n "checking for $ac_word... " >&6; } 13619if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : 13620 $as_echo_n "(cached) " >&6 13621else 13622 if test -n "$WINDRES_FOR_TARGET"; then 13623 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. 13624else 13625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13626for as_dir in $PATH 13627do 13628 IFS=$as_save_IFS 13629 test -z "$as_dir" && as_dir=. 13630 for ac_exec_ext in '' $ac_executable_extensions; do 13631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13632 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13634 break 2 13635 fi 13636done 13637 done 13638IFS=$as_save_IFS 13639 13640fi 13641fi 13642WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 13643if test -n "$WINDRES_FOR_TARGET"; then 13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 13645$as_echo "$WINDRES_FOR_TARGET" >&6; } 13646else 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13648$as_echo "no" >&6; } 13649fi 13650 13651 13652 fi 13653 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then 13654 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13655set dummy ${ncn_progname}; ac_word=$2 13656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13657$as_echo_n "checking for $ac_word... " >&6; } 13658if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : 13659 $as_echo_n "(cached) " >&6 13660else 13661 if test -n "$WINDRES_FOR_TARGET"; then 13662 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. 13663else 13664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13665for as_dir in $PATH 13666do 13667 IFS=$as_save_IFS 13668 test -z "$as_dir" && as_dir=. 13669 for ac_exec_ext in '' $ac_executable_extensions; do 13670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13671 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" 13672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13673 break 2 13674 fi 13675done 13676 done 13677IFS=$as_save_IFS 13678 13679fi 13680fi 13681WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 13682if test -n "$WINDRES_FOR_TARGET"; then 13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 13684$as_echo "$WINDRES_FOR_TARGET" >&6; } 13685else 13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13687$as_echo "no" >&6; } 13688fi 13689 13690 13691 fi 13692 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break 13693 done 13694fi 13695 13696if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then 13697 set dummy windres 13698 if test $build = $target ; then 13699 WINDRES_FOR_TARGET="$2" 13700 else 13701 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" 13702 fi 13703else 13704 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" 13705fi 13706 13707else 13708 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET 13709fi 13710 13711 13712 13713 13714if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then 13715 if test -n "$with_build_time_tools"; then 13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 13717$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } 13718 if test -x $with_build_time_tools/windmc; then 13719 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc 13720 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET 13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 13722$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } 13723 else 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13725$as_echo "no" >&6; } 13726 fi 13727 elif test $build != $host && test $have_gcc_for_target = yes; then 13728 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` 13729 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= 13730 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET 13731 fi 13732fi 13733if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13734 # Extract the first word of "windmc", so it can be a program name with args. 13735set dummy windmc; ac_word=$2 13736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13737$as_echo_n "checking for $ac_word... " >&6; } 13738if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : 13739 $as_echo_n "(cached) " >&6 13740else 13741 case $WINDMC_FOR_TARGET in 13742 [\\/]* | ?:[\\/]*) 13743 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. 13744 ;; 13745 *) 13746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13747for as_dir in $gcc_cv_tool_dirs 13748do 13749 IFS=$as_save_IFS 13750 test -z "$as_dir" && as_dir=. 13751 for ac_exec_ext in '' $ac_executable_extensions; do 13752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13753 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13755 break 2 13756 fi 13757done 13758 done 13759IFS=$as_save_IFS 13760 13761 ;; 13762esac 13763fi 13764WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET 13765if test -n "$WINDMC_FOR_TARGET"; then 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 13767$as_echo "$WINDMC_FOR_TARGET" >&6; } 13768else 13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13770$as_echo "no" >&6; } 13771fi 13772 13773 13774fi 13775if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then 13776 13777 13778if test -n "$WINDMC_FOR_TARGET"; then 13779 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET 13780elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then 13781 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 13782fi 13783 13784if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then 13785 for ncn_progname in windmc; do 13786 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13787set dummy ${ncn_progname}; ac_word=$2 13788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13789$as_echo_n "checking for $ac_word... " >&6; } 13790if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : 13791 $as_echo_n "(cached) " >&6 13792else 13793 if test -n "$WINDMC_FOR_TARGET"; then 13794 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. 13795else 13796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13797for as_dir in $PATH 13798do 13799 IFS=$as_save_IFS 13800 test -z "$as_dir" && as_dir=. 13801 for ac_exec_ext in '' $ac_executable_extensions; do 13802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13803 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" 13804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13805 break 2 13806 fi 13807done 13808 done 13809IFS=$as_save_IFS 13810 13811fi 13812fi 13813WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 13814if test -n "$WINDMC_FOR_TARGET"; then 13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 13816$as_echo "$WINDMC_FOR_TARGET" >&6; } 13817else 13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13819$as_echo "no" >&6; } 13820fi 13821 13822 13823 done 13824fi 13825 13826if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then 13827 for ncn_progname in windmc; do 13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13829$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13830 if test -x $with_build_time_tools/${ncn_progname}; then 13831 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13833$as_echo "yes" >&6; } 13834 break 13835 else 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13837$as_echo "no" >&6; } 13838 fi 13839 done 13840fi 13841 13842if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then 13843 for ncn_progname in windmc; do 13844 if test -n "$ncn_target_tool_prefix"; then 13845 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13846set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13848$as_echo_n "checking for $ac_word... " >&6; } 13849if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : 13850 $as_echo_n "(cached) " >&6 13851else 13852 if test -n "$WINDMC_FOR_TARGET"; then 13853 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. 13854else 13855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13856for as_dir in $PATH 13857do 13858 IFS=$as_save_IFS 13859 test -z "$as_dir" && as_dir=. 13860 for ac_exec_ext in '' $ac_executable_extensions; do 13861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13862 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13864 break 2 13865 fi 13866done 13867 done 13868IFS=$as_save_IFS 13869 13870fi 13871fi 13872WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 13873if test -n "$WINDMC_FOR_TARGET"; then 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 13875$as_echo "$WINDMC_FOR_TARGET" >&6; } 13876else 13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13878$as_echo "no" >&6; } 13879fi 13880 13881 13882 fi 13883 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then 13884 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13885set dummy ${ncn_progname}; ac_word=$2 13886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13887$as_echo_n "checking for $ac_word... " >&6; } 13888if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : 13889 $as_echo_n "(cached) " >&6 13890else 13891 if test -n "$WINDMC_FOR_TARGET"; then 13892 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. 13893else 13894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13895for as_dir in $PATH 13896do 13897 IFS=$as_save_IFS 13898 test -z "$as_dir" && as_dir=. 13899 for ac_exec_ext in '' $ac_executable_extensions; do 13900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13901 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" 13902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13903 break 2 13904 fi 13905done 13906 done 13907IFS=$as_save_IFS 13908 13909fi 13910fi 13911WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 13912if test -n "$WINDMC_FOR_TARGET"; then 13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 13914$as_echo "$WINDMC_FOR_TARGET" >&6; } 13915else 13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13917$as_echo "no" >&6; } 13918fi 13919 13920 13921 fi 13922 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break 13923 done 13924fi 13925 13926if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then 13927 set dummy windmc 13928 if test $build = $target ; then 13929 WINDMC_FOR_TARGET="$2" 13930 else 13931 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" 13932 fi 13933else 13934 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" 13935fi 13936 13937else 13938 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET 13939fi 13940 13941 13942RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" 13943 13944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 13945$as_echo_n "checking where to find the target ar... " >&6; } 13946if test "x${build}" != "x${host}" ; then 13947 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then 13948 # We already found the complete path 13949 ac_dir=`dirname $AR_FOR_TARGET` 13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 13951$as_echo "pre-installed in $ac_dir" >&6; } 13952 else 13953 # Canadian cross, just use what we found 13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 13955$as_echo "pre-installed" >&6; } 13956 fi 13957else 13958 ok=yes 13959 case " ${configdirs} " in 13960 *" binutils "*) ;; 13961 *) ok=no ;; 13962 esac 13963 13964 if test $ok = yes; then 13965 # An in-tree tool is available and we can use it 13966 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' 13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 13968$as_echo "just compiled" >&6; } 13969 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then 13970 # We already found the complete path 13971 ac_dir=`dirname $AR_FOR_TARGET` 13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 13973$as_echo "pre-installed in $ac_dir" >&6; } 13974 elif test "x$target" = "x$host"; then 13975 # We can use an host tool 13976 AR_FOR_TARGET='$(AR)' 13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 13978$as_echo "host tool" >&6; } 13979 else 13980 # We need a cross tool 13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 13982$as_echo "pre-installed" >&6; } 13983 fi 13984fi 13985 13986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 13987$as_echo_n "checking where to find the target as... " >&6; } 13988if test "x${build}" != "x${host}" ; then 13989 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then 13990 # We already found the complete path 13991 ac_dir=`dirname $AS_FOR_TARGET` 13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 13993$as_echo "pre-installed in $ac_dir" >&6; } 13994 else 13995 # Canadian cross, just use what we found 13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 13997$as_echo "pre-installed" >&6; } 13998 fi 13999else 14000 ok=yes 14001 case " ${configdirs} " in 14002 *" gas "*) ;; 14003 *) ok=no ;; 14004 esac 14005 14006 if test $ok = yes; then 14007 # An in-tree tool is available and we can use it 14008 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' 14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14010$as_echo "just compiled" >&6; } 14011 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then 14012 # We already found the complete path 14013 ac_dir=`dirname $AS_FOR_TARGET` 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14015$as_echo "pre-installed in $ac_dir" >&6; } 14016 elif test "x$target" = "x$host"; then 14017 # We can use an host tool 14018 AS_FOR_TARGET='$(AS)' 14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14020$as_echo "host tool" >&6; } 14021 else 14022 # We need a cross tool 14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14024$as_echo "pre-installed" >&6; } 14025 fi 14026fi 14027 14028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 14029$as_echo_n "checking where to find the target cc... " >&6; } 14030if test "x${build}" != "x${host}" ; then 14031 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then 14032 # We already found the complete path 14033 ac_dir=`dirname $CC_FOR_TARGET` 14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14035$as_echo "pre-installed in $ac_dir" >&6; } 14036 else 14037 # Canadian cross, just use what we found 14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14039$as_echo "pre-installed" >&6; } 14040 fi 14041else 14042 ok=yes 14043 case " ${configdirs} " in 14044 *" gcc "*) ;; 14045 *) ok=no ;; 14046 esac 14047 14048 if test $ok = yes; then 14049 # An in-tree tool is available and we can use it 14050 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14052$as_echo "just compiled" >&6; } 14053 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then 14054 # We already found the complete path 14055 ac_dir=`dirname $CC_FOR_TARGET` 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14057$as_echo "pre-installed in $ac_dir" >&6; } 14058 elif test "x$target" = "x$host"; then 14059 # We can use an host tool 14060 CC_FOR_TARGET='$(CC)' 14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14062$as_echo "host tool" >&6; } 14063 else 14064 # We need a cross tool 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14066$as_echo "pre-installed" >&6; } 14067 fi 14068fi 14069 14070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 14071$as_echo_n "checking where to find the target c++... " >&6; } 14072if test "x${build}" != "x${host}" ; then 14073 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then 14074 # We already found the complete path 14075 ac_dir=`dirname $CXX_FOR_TARGET` 14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14077$as_echo "pre-installed in $ac_dir" >&6; } 14078 else 14079 # Canadian cross, just use what we found 14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14081$as_echo "pre-installed" >&6; } 14082 fi 14083else 14084 ok=yes 14085 case " ${configdirs} " in 14086 *" gcc "*) ;; 14087 *) ok=no ;; 14088 esac 14089 case ,${enable_languages}, in 14090 *,c++,*) ;; 14091 *) ok=no ;; 14092 esac 14093 if test $ok = yes; then 14094 # An in-tree tool is available and we can use it 14095 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14097$as_echo "just compiled" >&6; } 14098 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then 14099 # We already found the complete path 14100 ac_dir=`dirname $CXX_FOR_TARGET` 14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14102$as_echo "pre-installed in $ac_dir" >&6; } 14103 elif test "x$target" = "x$host"; then 14104 # We can use an host tool 14105 CXX_FOR_TARGET='$(CXX)' 14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14107$as_echo "host tool" >&6; } 14108 else 14109 # We need a cross tool 14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14111$as_echo "pre-installed" >&6; } 14112 fi 14113fi 14114 14115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 14116$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } 14117if test "x${build}" != "x${host}" ; then 14118 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then 14119 # We already found the complete path 14120 ac_dir=`dirname $RAW_CXX_FOR_TARGET` 14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14122$as_echo "pre-installed in $ac_dir" >&6; } 14123 else 14124 # Canadian cross, just use what we found 14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14126$as_echo "pre-installed" >&6; } 14127 fi 14128else 14129 ok=yes 14130 case " ${configdirs} " in 14131 *" gcc "*) ;; 14132 *) ok=no ;; 14133 esac 14134 case ,${enable_languages}, in 14135 *,c++,*) ;; 14136 *) ok=no ;; 14137 esac 14138 if test $ok = yes; then 14139 # An in-tree tool is available and we can use it 14140 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' 14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14142$as_echo "just compiled" >&6; } 14143 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then 14144 # We already found the complete path 14145 ac_dir=`dirname $RAW_CXX_FOR_TARGET` 14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14147$as_echo "pre-installed in $ac_dir" >&6; } 14148 elif test "x$target" = "x$host"; then 14149 # We can use an host tool 14150 RAW_CXX_FOR_TARGET='$(CXX)' 14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14152$as_echo "host tool" >&6; } 14153 else 14154 # We need a cross tool 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14156$as_echo "pre-installed" >&6; } 14157 fi 14158fi 14159 14160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 14161$as_echo_n "checking where to find the target dlltool... " >&6; } 14162if test "x${build}" != "x${host}" ; then 14163 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then 14164 # We already found the complete path 14165 ac_dir=`dirname $DLLTOOL_FOR_TARGET` 14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14167$as_echo "pre-installed in $ac_dir" >&6; } 14168 else 14169 # Canadian cross, just use what we found 14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14171$as_echo "pre-installed" >&6; } 14172 fi 14173else 14174 ok=yes 14175 case " ${configdirs} " in 14176 *" binutils "*) ;; 14177 *) ok=no ;; 14178 esac 14179 14180 if test $ok = yes; then 14181 # An in-tree tool is available and we can use it 14182 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' 14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14184$as_echo "just compiled" >&6; } 14185 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then 14186 # We already found the complete path 14187 ac_dir=`dirname $DLLTOOL_FOR_TARGET` 14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14189$as_echo "pre-installed in $ac_dir" >&6; } 14190 elif test "x$target" = "x$host"; then 14191 # We can use an host tool 14192 DLLTOOL_FOR_TARGET='$(DLLTOOL)' 14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14194$as_echo "host tool" >&6; } 14195 else 14196 # We need a cross tool 14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14198$as_echo "pre-installed" >&6; } 14199 fi 14200fi 14201 14202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 14203$as_echo_n "checking where to find the target gcc... " >&6; } 14204if test "x${build}" != "x${host}" ; then 14205 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then 14206 # We already found the complete path 14207 ac_dir=`dirname $GCC_FOR_TARGET` 14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14209$as_echo "pre-installed in $ac_dir" >&6; } 14210 else 14211 # Canadian cross, just use what we found 14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14213$as_echo "pre-installed" >&6; } 14214 fi 14215else 14216 ok=yes 14217 case " ${configdirs} " in 14218 *" gcc "*) ;; 14219 *) ok=no ;; 14220 esac 14221 14222 if test $ok = yes; then 14223 # An in-tree tool is available and we can use it 14224 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14226$as_echo "just compiled" >&6; } 14227 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then 14228 # We already found the complete path 14229 ac_dir=`dirname $GCC_FOR_TARGET` 14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14231$as_echo "pre-installed in $ac_dir" >&6; } 14232 elif test "x$target" = "x$host"; then 14233 # We can use an host tool 14234 GCC_FOR_TARGET='$()' 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14236$as_echo "host tool" >&6; } 14237 else 14238 # We need a cross tool 14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14240$as_echo "pre-installed" >&6; } 14241 fi 14242fi 14243 14244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 14245$as_echo_n "checking where to find the target gfortran... " >&6; } 14246if test "x${build}" != "x${host}" ; then 14247 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then 14248 # We already found the complete path 14249 ac_dir=`dirname $GFORTRAN_FOR_TARGET` 14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14251$as_echo "pre-installed in $ac_dir" >&6; } 14252 else 14253 # Canadian cross, just use what we found 14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14255$as_echo "pre-installed" >&6; } 14256 fi 14257else 14258 ok=yes 14259 case " ${configdirs} " in 14260 *" gcc "*) ;; 14261 *) ok=no ;; 14262 esac 14263 case ,${enable_languages}, in 14264 *,fortran,*) ;; 14265 *) ok=no ;; 14266 esac 14267 if test $ok = yes; then 14268 # An in-tree tool is available and we can use it 14269 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' 14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14271$as_echo "just compiled" >&6; } 14272 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then 14273 # We already found the complete path 14274 ac_dir=`dirname $GFORTRAN_FOR_TARGET` 14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14276$as_echo "pre-installed in $ac_dir" >&6; } 14277 elif test "x$target" = "x$host"; then 14278 # We can use an host tool 14279 GFORTRAN_FOR_TARGET='$(GFORTRAN)' 14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14281$as_echo "host tool" >&6; } 14282 else 14283 # We need a cross tool 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14285$as_echo "pre-installed" >&6; } 14286 fi 14287fi 14288 14289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 14290$as_echo_n "checking where to find the target gccgo... " >&6; } 14291if test "x${build}" != "x${host}" ; then 14292 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then 14293 # We already found the complete path 14294 ac_dir=`dirname $GOC_FOR_TARGET` 14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14296$as_echo "pre-installed in $ac_dir" >&6; } 14297 else 14298 # Canadian cross, just use what we found 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14300$as_echo "pre-installed" >&6; } 14301 fi 14302else 14303 ok=yes 14304 case " ${configdirs} " in 14305 *" gcc "*) ;; 14306 *) ok=no ;; 14307 esac 14308 case ,${enable_languages}, in 14309 *,go,*) ;; 14310 *) ok=no ;; 14311 esac 14312 if test $ok = yes; then 14313 # An in-tree tool is available and we can use it 14314 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' 14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14316$as_echo "just compiled" >&6; } 14317 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then 14318 # We already found the complete path 14319 ac_dir=`dirname $GOC_FOR_TARGET` 14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14321$as_echo "pre-installed in $ac_dir" >&6; } 14322 elif test "x$target" = "x$host"; then 14323 # We can use an host tool 14324 GOC_FOR_TARGET='$(GOC)' 14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14326$as_echo "host tool" >&6; } 14327 else 14328 # We need a cross tool 14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14330$as_echo "pre-installed" >&6; } 14331 fi 14332fi 14333 14334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 14335$as_echo_n "checking where to find the target ld... " >&6; } 14336if test "x${build}" != "x${host}" ; then 14337 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then 14338 # We already found the complete path 14339 ac_dir=`dirname $LD_FOR_TARGET` 14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14341$as_echo "pre-installed in $ac_dir" >&6; } 14342 else 14343 # Canadian cross, just use what we found 14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14345$as_echo "pre-installed" >&6; } 14346 fi 14347else 14348 ok=yes 14349 case " ${configdirs} " in 14350 *" ld "*) ;; 14351 *) ok=no ;; 14352 esac 14353 14354 if test $ok = yes; then 14355 # An in-tree tool is available and we can use it 14356 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14358$as_echo "just compiled" >&6; } 14359 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then 14360 # We already found the complete path 14361 ac_dir=`dirname $LD_FOR_TARGET` 14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14363$as_echo "pre-installed in $ac_dir" >&6; } 14364 elif test "x$target" = "x$host"; then 14365 # We can use an host tool 14366 LD_FOR_TARGET='$(LD)' 14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14368$as_echo "host tool" >&6; } 14369 else 14370 # We need a cross tool 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14372$as_echo "pre-installed" >&6; } 14373 fi 14374fi 14375 14376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 14377$as_echo_n "checking where to find the target lipo... " >&6; } 14378if test "x${build}" != "x${host}" ; then 14379 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then 14380 # We already found the complete path 14381 ac_dir=`dirname $LIPO_FOR_TARGET` 14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14383$as_echo "pre-installed in $ac_dir" >&6; } 14384 else 14385 # Canadian cross, just use what we found 14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14387$as_echo "pre-installed" >&6; } 14388 fi 14389else 14390 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then 14391 # We already found the complete path 14392 ac_dir=`dirname $LIPO_FOR_TARGET` 14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14394$as_echo "pre-installed in $ac_dir" >&6; } 14395 elif test "x$target" = "x$host"; then 14396 # We can use an host tool 14397 LIPO_FOR_TARGET='$(LIPO)' 14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14399$as_echo "host tool" >&6; } 14400 else 14401 # We need a cross tool 14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14403$as_echo "pre-installed" >&6; } 14404 fi 14405fi 14406 14407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 14408$as_echo_n "checking where to find the target nm... " >&6; } 14409if test "x${build}" != "x${host}" ; then 14410 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then 14411 # We already found the complete path 14412 ac_dir=`dirname $NM_FOR_TARGET` 14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14414$as_echo "pre-installed in $ac_dir" >&6; } 14415 else 14416 # Canadian cross, just use what we found 14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14418$as_echo "pre-installed" >&6; } 14419 fi 14420else 14421 ok=yes 14422 case " ${configdirs} " in 14423 *" binutils "*) ;; 14424 *) ok=no ;; 14425 esac 14426 14427 if test $ok = yes; then 14428 # An in-tree tool is available and we can use it 14429 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' 14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14431$as_echo "just compiled" >&6; } 14432 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then 14433 # We already found the complete path 14434 ac_dir=`dirname $NM_FOR_TARGET` 14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14436$as_echo "pre-installed in $ac_dir" >&6; } 14437 elif test "x$target" = "x$host"; then 14438 # We can use an host tool 14439 NM_FOR_TARGET='$(NM)' 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14441$as_echo "host tool" >&6; } 14442 else 14443 # We need a cross tool 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14445$as_echo "pre-installed" >&6; } 14446 fi 14447fi 14448 14449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 14450$as_echo_n "checking where to find the target objcopy... " >&6; } 14451if test "x${build}" != "x${host}" ; then 14452 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then 14453 # We already found the complete path 14454 ac_dir=`dirname $OBJCOPY_FOR_TARGET` 14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14456$as_echo "pre-installed in $ac_dir" >&6; } 14457 else 14458 # Canadian cross, just use what we found 14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14460$as_echo "pre-installed" >&6; } 14461 fi 14462else 14463 ok=yes 14464 case " ${configdirs} " in 14465 *" binutils "*) ;; 14466 *) ok=no ;; 14467 esac 14468 14469 if test $ok = yes; then 14470 # An in-tree tool is available and we can use it 14471 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' 14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14473$as_echo "just compiled" >&6; } 14474 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then 14475 # We already found the complete path 14476 ac_dir=`dirname $OBJCOPY_FOR_TARGET` 14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14478$as_echo "pre-installed in $ac_dir" >&6; } 14479 elif test "x$target" = "x$host"; then 14480 # We can use an host tool 14481 OBJCOPY_FOR_TARGET='$(OBJCOPY)' 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14483$as_echo "host tool" >&6; } 14484 else 14485 # We need a cross tool 14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14487$as_echo "pre-installed" >&6; } 14488 fi 14489fi 14490 14491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 14492$as_echo_n "checking where to find the target objdump... " >&6; } 14493if test "x${build}" != "x${host}" ; then 14494 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then 14495 # We already found the complete path 14496 ac_dir=`dirname $OBJDUMP_FOR_TARGET` 14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14498$as_echo "pre-installed in $ac_dir" >&6; } 14499 else 14500 # Canadian cross, just use what we found 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14502$as_echo "pre-installed" >&6; } 14503 fi 14504else 14505 ok=yes 14506 case " ${configdirs} " in 14507 *" binutils "*) ;; 14508 *) ok=no ;; 14509 esac 14510 14511 if test $ok = yes; then 14512 # An in-tree tool is available and we can use it 14513 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' 14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14515$as_echo "just compiled" >&6; } 14516 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then 14517 # We already found the complete path 14518 ac_dir=`dirname $OBJDUMP_FOR_TARGET` 14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14520$as_echo "pre-installed in $ac_dir" >&6; } 14521 elif test "x$target" = "x$host"; then 14522 # We can use an host tool 14523 OBJDUMP_FOR_TARGET='$(OBJDUMP)' 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14525$as_echo "host tool" >&6; } 14526 else 14527 # We need a cross tool 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14529$as_echo "pre-installed" >&6; } 14530 fi 14531fi 14532 14533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 14534$as_echo_n "checking where to find the target ranlib... " >&6; } 14535if test "x${build}" != "x${host}" ; then 14536 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then 14537 # We already found the complete path 14538 ac_dir=`dirname $RANLIB_FOR_TARGET` 14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14540$as_echo "pre-installed in $ac_dir" >&6; } 14541 else 14542 # Canadian cross, just use what we found 14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14544$as_echo "pre-installed" >&6; } 14545 fi 14546else 14547 ok=yes 14548 case " ${configdirs} " in 14549 *" binutils "*) ;; 14550 *) ok=no ;; 14551 esac 14552 14553 if test $ok = yes; then 14554 # An in-tree tool is available and we can use it 14555 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' 14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14557$as_echo "just compiled" >&6; } 14558 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then 14559 # We already found the complete path 14560 ac_dir=`dirname $RANLIB_FOR_TARGET` 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14562$as_echo "pre-installed in $ac_dir" >&6; } 14563 elif test "x$target" = "x$host"; then 14564 # We can use an host tool 14565 RANLIB_FOR_TARGET='$(RANLIB)' 14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14567$as_echo "host tool" >&6; } 14568 else 14569 # We need a cross tool 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14571$as_echo "pre-installed" >&6; } 14572 fi 14573fi 14574 14575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 14576$as_echo_n "checking where to find the target readelf... " >&6; } 14577if test "x${build}" != "x${host}" ; then 14578 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then 14579 # We already found the complete path 14580 ac_dir=`dirname $READELF_FOR_TARGET` 14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14582$as_echo "pre-installed in $ac_dir" >&6; } 14583 else 14584 # Canadian cross, just use what we found 14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14586$as_echo "pre-installed" >&6; } 14587 fi 14588else 14589 ok=yes 14590 case " ${configdirs} " in 14591 *" binutils "*) ;; 14592 *) ok=no ;; 14593 esac 14594 14595 if test $ok = yes; then 14596 # An in-tree tool is available and we can use it 14597 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' 14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14599$as_echo "just compiled" >&6; } 14600 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then 14601 # We already found the complete path 14602 ac_dir=`dirname $READELF_FOR_TARGET` 14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14604$as_echo "pre-installed in $ac_dir" >&6; } 14605 elif test "x$target" = "x$host"; then 14606 # We can use an host tool 14607 READELF_FOR_TARGET='$(READELF)' 14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14609$as_echo "host tool" >&6; } 14610 else 14611 # We need a cross tool 14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14613$as_echo "pre-installed" >&6; } 14614 fi 14615fi 14616 14617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 14618$as_echo_n "checking where to find the target strip... " >&6; } 14619if test "x${build}" != "x${host}" ; then 14620 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then 14621 # We already found the complete path 14622 ac_dir=`dirname $STRIP_FOR_TARGET` 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14624$as_echo "pre-installed in $ac_dir" >&6; } 14625 else 14626 # Canadian cross, just use what we found 14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14628$as_echo "pre-installed" >&6; } 14629 fi 14630else 14631 ok=yes 14632 case " ${configdirs} " in 14633 *" binutils "*) ;; 14634 *) ok=no ;; 14635 esac 14636 14637 if test $ok = yes; then 14638 # An in-tree tool is available and we can use it 14639 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' 14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14641$as_echo "just compiled" >&6; } 14642 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then 14643 # We already found the complete path 14644 ac_dir=`dirname $STRIP_FOR_TARGET` 14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14646$as_echo "pre-installed in $ac_dir" >&6; } 14647 elif test "x$target" = "x$host"; then 14648 # We can use an host tool 14649 STRIP_FOR_TARGET='$(STRIP)' 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14651$as_echo "host tool" >&6; } 14652 else 14653 # We need a cross tool 14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14655$as_echo "pre-installed" >&6; } 14656 fi 14657fi 14658 14659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 14660$as_echo_n "checking where to find the target windres... " >&6; } 14661if test "x${build}" != "x${host}" ; then 14662 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then 14663 # We already found the complete path 14664 ac_dir=`dirname $WINDRES_FOR_TARGET` 14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14666$as_echo "pre-installed in $ac_dir" >&6; } 14667 else 14668 # Canadian cross, just use what we found 14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14670$as_echo "pre-installed" >&6; } 14671 fi 14672else 14673 ok=yes 14674 case " ${configdirs} " in 14675 *" binutils "*) ;; 14676 *) ok=no ;; 14677 esac 14678 14679 if test $ok = yes; then 14680 # An in-tree tool is available and we can use it 14681 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' 14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14683$as_echo "just compiled" >&6; } 14684 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then 14685 # We already found the complete path 14686 ac_dir=`dirname $WINDRES_FOR_TARGET` 14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14688$as_echo "pre-installed in $ac_dir" >&6; } 14689 elif test "x$target" = "x$host"; then 14690 # We can use an host tool 14691 WINDRES_FOR_TARGET='$(WINDRES)' 14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14693$as_echo "host tool" >&6; } 14694 else 14695 # We need a cross tool 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14697$as_echo "pre-installed" >&6; } 14698 fi 14699fi 14700 14701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 14702$as_echo_n "checking where to find the target windmc... " >&6; } 14703if test "x${build}" != "x${host}" ; then 14704 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then 14705 # We already found the complete path 14706 ac_dir=`dirname $WINDMC_FOR_TARGET` 14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14708$as_echo "pre-installed in $ac_dir" >&6; } 14709 else 14710 # Canadian cross, just use what we found 14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14712$as_echo "pre-installed" >&6; } 14713 fi 14714else 14715 ok=yes 14716 case " ${configdirs} " in 14717 *" binutils "*) ;; 14718 *) ok=no ;; 14719 esac 14720 14721 if test $ok = yes; then 14722 # An in-tree tool is available and we can use it 14723 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' 14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14725$as_echo "just compiled" >&6; } 14726 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then 14727 # We already found the complete path 14728 ac_dir=`dirname $WINDMC_FOR_TARGET` 14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14730$as_echo "pre-installed in $ac_dir" >&6; } 14731 elif test "x$target" = "x$host"; then 14732 # We can use an host tool 14733 WINDMC_FOR_TARGET='$(WINDMC)' 14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14735$as_echo "host tool" >&6; } 14736 else 14737 # We need a cross tool 14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14739$as_echo "pre-installed" >&6; } 14740 fi 14741fi 14742 14743 14744 14745 14746 14747# Certain tools may need extra flags. 14748AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} 14749RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} 14750NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} 14751 14752# When building target libraries, except in a Canadian cross, we use 14753# the same toolchain as the compiler we just built. 14754COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' 14755COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' 14756COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' 14757if test $host = $build; then 14758 case " $configdirs " in 14759 *" gcc "*) 14760 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' 14761 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' 14762 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} 14763 ;; 14764 esac 14765fi 14766 14767 14768 14769 14770 14771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 14772$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 14773# Check whether --enable-maintainer-mode was given. 14774if test "${enable_maintainer_mode+set}" = set; then : 14775 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 14776else 14777 USE_MAINTAINER_MODE=no 14778fi 14779 14780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 14781$as_echo "$USE_MAINTAINER_MODE" >&6; } 14782 14783 14784if test "$USE_MAINTAINER_MODE" = yes; then 14785 MAINTAINER_MODE_TRUE= 14786 MAINTAINER_MODE_FALSE='#' 14787else 14788 MAINTAINER_MODE_TRUE='#' 14789 MAINTAINER_MODE_FALSE= 14790fi 14791MAINT=$MAINTAINER_MODE_TRUE 14792 14793# --------------------- 14794# GCC bootstrap support 14795# --------------------- 14796 14797# Stage specific cflags for build. 14798stage1_cflags="-g" 14799case $build in 14800 vax-*-*) 14801 case ${GCC} in 14802 yes) stage1_cflags="-g -Wa,-J" ;; 14803 *) stage1_cflags="-g -J" ;; 14804 esac ;; 14805esac 14806 14807 14808 14809# Enable --enable-checking in stage1 of the compiler. 14810# Check whether --enable-stage1-checking was given. 14811if test "${enable_stage1_checking+set}" = set; then : 14812 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} 14813else 14814 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then 14815 # For --disable-checking or implicit --enable-checking=release, avoid 14816 # setting --enable-checking=gc in the default stage1 checking for LTO 14817 # bootstraps. See PR62077. 14818 case $BUILD_CONFIG in 14819 *lto*) 14820 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; 14821 *) 14822 stage1_checking=--enable-checking=yes,types;; 14823 esac 14824 if test "x$enable_checking" = x && \ 14825 test -d ${srcdir}/gcc && \ 14826 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then 14827 stage1_checking=--enable-checking=yes,types,extra 14828 fi 14829else 14830 stage1_checking=--enable-checking=$enable_checking,types 14831fi 14832fi 14833 14834 14835 14836# Enable -Werror in bootstrap stage2 and later. 14837# Check whether --enable-werror was given. 14838if test "${enable_werror+set}" = set; then : 14839 enableval=$enable_werror; 14840case ${enable_werror} in 14841 yes) stage2_werror_flag="--enable-werror-always" ;; 14842 *) stage2_werror_flag="" ;; 14843esac 14844 14845else 14846 14847if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then 14848 case $BUILD_CONFIG in 14849 bootstrap-debug) 14850 stage2_werror_flag="--enable-werror-always" ;; 14851 "") 14852 stage2_werror_flag="--enable-werror-always" ;; 14853 esac 14854fi 14855 14856fi 14857 14858 14859 14860 14861# Specify what files to not compare during bootstrap. 14862 14863compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" 14864case "$target" in 14865 hppa*64*-*-hpux*) ;; 14866 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;; 14867 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; 14868esac 14869 14870 14871ac_config_files="$ac_config_files Makefile" 14872 14873cat >confcache <<\_ACEOF 14874# This file is a shell script that caches the results of configure 14875# tests run on this system so they can be shared between configure 14876# scripts and configure runs, see configure's option --config-cache. 14877# It is not useful on other systems. If it contains results you don't 14878# want to keep, you may remove or edit it. 14879# 14880# config.status only pays attention to the cache file if you give it 14881# the --recheck option to rerun configure. 14882# 14883# `ac_cv_env_foo' variables (set or unset) will be overridden when 14884# loading this file, other *unset* `ac_cv_foo' will be assigned the 14885# following values. 14886 14887_ACEOF 14888 14889# The following way of writing the cache mishandles newlines in values, 14890# but we know of no workaround that is simple, portable, and efficient. 14891# So, we kill variables containing newlines. 14892# Ultrix sh set writes to stderr and can't be redirected directly, 14893# and sets the high bit in the cache file unless we assign to the vars. 14894( 14895 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14896 eval ac_val=\$$ac_var 14897 case $ac_val in #( 14898 *${as_nl}*) 14899 case $ac_var in #( 14900 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14901$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14902 esac 14903 case $ac_var in #( 14904 _ | IFS | as_nl) ;; #( 14905 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14906 *) { eval $ac_var=; unset $ac_var;} ;; 14907 esac ;; 14908 esac 14909 done 14910 14911 (set) 2>&1 | 14912 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14913 *${as_nl}ac_space=\ *) 14914 # `set' does not quote correctly, so add quotes: double-quote 14915 # substitution turns \\\\ into \\, and sed turns \\ into \. 14916 sed -n \ 14917 "s/'/'\\\\''/g; 14918 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14919 ;; #( 14920 *) 14921 # `set' quotes correctly as required by POSIX, so do not add quotes. 14922 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14923 ;; 14924 esac | 14925 sort 14926) | 14927 sed ' 14928 /^ac_cv_env_/b end 14929 t clear 14930 :clear 14931 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14932 t end 14933 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14934 :end' >>confcache 14935if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14936 if test -w "$cache_file"; then 14937 if test "x$cache_file" != "x/dev/null"; then 14938 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14939$as_echo "$as_me: updating cache $cache_file" >&6;} 14940 if test ! -f "$cache_file" || test -h "$cache_file"; then 14941 cat confcache >"$cache_file" 14942 else 14943 case $cache_file in #( 14944 */* | ?:*) 14945 mv -f confcache "$cache_file"$$ && 14946 mv -f "$cache_file"$$ "$cache_file" ;; #( 14947 *) 14948 mv -f confcache "$cache_file" ;; 14949 esac 14950 fi 14951 fi 14952 else 14953 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14954$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14955 fi 14956fi 14957rm -f confcache 14958 14959test "x$prefix" = xNONE && prefix=$ac_default_prefix 14960# Let make expand exec_prefix. 14961test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14962 14963# Transform confdefs.h into DEFS. 14964# Protect against shell expansion while executing Makefile rules. 14965# Protect against Makefile macro expansion. 14966# 14967# If the first sed substitution is executed (which looks for macros that 14968# take arguments), then branch to the quote section. Otherwise, 14969# look for a macro that doesn't take arguments. 14970ac_script=' 14971:mline 14972/\\$/{ 14973 N 14974 s,\\\n,, 14975 b mline 14976} 14977t clear 14978:clear 14979s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 14980t quote 14981s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 14982t quote 14983b any 14984:quote 14985s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 14986s/\[/\\&/g 14987s/\]/\\&/g 14988s/\$/$$/g 14989H 14990:any 14991${ 14992 g 14993 s/^\n// 14994 s/\n/ /g 14995 p 14996} 14997' 14998DEFS=`sed -n "$ac_script" confdefs.h` 14999 15000 15001ac_libobjs= 15002ac_ltlibobjs= 15003U= 15004for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15005 # 1. Remove the extension, and $U if already installed. 15006 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15007 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15008 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15009 # will be set to the directory where LIBOBJS objects are built. 15010 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15011 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15012done 15013LIBOBJS=$ac_libobjs 15014 15015LTLIBOBJS=$ac_ltlibobjs 15016 15017 15018 15019: "${CONFIG_STATUS=./config.status}" 15020ac_write_fail=0 15021ac_clean_files_save=$ac_clean_files 15022ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15023{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15024$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15025as_write_fail=0 15026cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15027#! $SHELL 15028# Generated by $as_me. 15029# Run this file to recreate the current configuration. 15030# Compiler output produced by configure, useful for debugging 15031# configure, is in config.log if it exists. 15032 15033debug=false 15034ac_cs_recheck=false 15035ac_cs_silent=false 15036 15037SHELL=\${CONFIG_SHELL-$SHELL} 15038export SHELL 15039_ASEOF 15040cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15041## -------------------- ## 15042## M4sh Initialization. ## 15043## -------------------- ## 15044 15045# Be more Bourne compatible 15046DUALCASE=1; export DUALCASE # for MKS sh 15047if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15048 emulate sh 15049 NULLCMD=: 15050 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15051 # is contrary to our usage. Disable this feature. 15052 alias -g '${1+"$@"}'='"$@"' 15053 setopt NO_GLOB_SUBST 15054else 15055 case `(set -o) 2>/dev/null` in #( 15056 *posix*) : 15057 set -o posix ;; #( 15058 *) : 15059 ;; 15060esac 15061fi 15062 15063 15064as_nl=' 15065' 15066export as_nl 15067# Printing a long string crashes Solaris 7 /usr/bin/printf. 15068as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15069as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15070as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15071# Prefer a ksh shell builtin over an external printf program on Solaris, 15072# but without wasting forks for bash or zsh. 15073if test -z "$BASH_VERSION$ZSH_VERSION" \ 15074 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15075 as_echo='print -r --' 15076 as_echo_n='print -rn --' 15077elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15078 as_echo='printf %s\n' 15079 as_echo_n='printf %s' 15080else 15081 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15082 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15083 as_echo_n='/usr/ucb/echo -n' 15084 else 15085 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15086 as_echo_n_body='eval 15087 arg=$1; 15088 case $arg in #( 15089 *"$as_nl"*) 15090 expr "X$arg" : "X\\(.*\\)$as_nl"; 15091 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15092 esac; 15093 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15094 ' 15095 export as_echo_n_body 15096 as_echo_n='sh -c $as_echo_n_body as_echo' 15097 fi 15098 export as_echo_body 15099 as_echo='sh -c $as_echo_body as_echo' 15100fi 15101 15102# The user is always right. 15103if test "${PATH_SEPARATOR+set}" != set; then 15104 PATH_SEPARATOR=: 15105 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15106 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15107 PATH_SEPARATOR=';' 15108 } 15109fi 15110 15111 15112# IFS 15113# We need space, tab and new line, in precisely that order. Quoting is 15114# there to prevent editors from complaining about space-tab. 15115# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15116# splitting by setting IFS to empty value.) 15117IFS=" "" $as_nl" 15118 15119# Find who we are. Look in the path if we contain no directory separator. 15120as_myself= 15121case $0 in #(( 15122 *[\\/]* ) as_myself=$0 ;; 15123 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15124for as_dir in $PATH 15125do 15126 IFS=$as_save_IFS 15127 test -z "$as_dir" && as_dir=. 15128 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15129 done 15130IFS=$as_save_IFS 15131 15132 ;; 15133esac 15134# We did not find ourselves, most probably we were run as `sh COMMAND' 15135# in which case we are not to be found in the path. 15136if test "x$as_myself" = x; then 15137 as_myself=$0 15138fi 15139if test ! -f "$as_myself"; then 15140 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15141 exit 1 15142fi 15143 15144# Unset variables that we do not need and which cause bugs (e.g. in 15145# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15146# suppresses any "Segmentation fault" message there. '((' could 15147# trigger a bug in pdksh 5.2.14. 15148for as_var in BASH_ENV ENV MAIL MAILPATH 15149do eval test x\${$as_var+set} = xset \ 15150 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15151done 15152PS1='$ ' 15153PS2='> ' 15154PS4='+ ' 15155 15156# NLS nuisances. 15157LC_ALL=C 15158export LC_ALL 15159LANGUAGE=C 15160export LANGUAGE 15161 15162# CDPATH. 15163(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15164 15165 15166# as_fn_error STATUS ERROR [LINENO LOG_FD] 15167# ---------------------------------------- 15168# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15169# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15170# script with STATUS, using 1 if that was 0. 15171as_fn_error () 15172{ 15173 as_status=$1; test $as_status -eq 0 && as_status=1 15174 if test "$4"; then 15175 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15176 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15177 fi 15178 $as_echo "$as_me: error: $2" >&2 15179 as_fn_exit $as_status 15180} # as_fn_error 15181 15182 15183# as_fn_set_status STATUS 15184# ----------------------- 15185# Set $? to STATUS, without forking. 15186as_fn_set_status () 15187{ 15188 return $1 15189} # as_fn_set_status 15190 15191# as_fn_exit STATUS 15192# ----------------- 15193# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15194as_fn_exit () 15195{ 15196 set +e 15197 as_fn_set_status $1 15198 exit $1 15199} # as_fn_exit 15200 15201# as_fn_unset VAR 15202# --------------- 15203# Portably unset VAR. 15204as_fn_unset () 15205{ 15206 { eval $1=; unset $1;} 15207} 15208as_unset=as_fn_unset 15209# as_fn_append VAR VALUE 15210# ---------------------- 15211# Append the text in VALUE to the end of the definition contained in VAR. Take 15212# advantage of any shell optimizations that allow amortized linear growth over 15213# repeated appends, instead of the typical quadratic growth present in naive 15214# implementations. 15215if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15216 eval 'as_fn_append () 15217 { 15218 eval $1+=\$2 15219 }' 15220else 15221 as_fn_append () 15222 { 15223 eval $1=\$$1\$2 15224 } 15225fi # as_fn_append 15226 15227# as_fn_arith ARG... 15228# ------------------ 15229# Perform arithmetic evaluation on the ARGs, and store the result in the 15230# global $as_val. Take advantage of shells that can avoid forks. The arguments 15231# must be portable across $(()) and expr. 15232if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15233 eval 'as_fn_arith () 15234 { 15235 as_val=$(( $* )) 15236 }' 15237else 15238 as_fn_arith () 15239 { 15240 as_val=`expr "$@" || test $? -eq 1` 15241 } 15242fi # as_fn_arith 15243 15244 15245if expr a : '\(a\)' >/dev/null 2>&1 && 15246 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15247 as_expr=expr 15248else 15249 as_expr=false 15250fi 15251 15252if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15253 as_basename=basename 15254else 15255 as_basename=false 15256fi 15257 15258if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15259 as_dirname=dirname 15260else 15261 as_dirname=false 15262fi 15263 15264as_me=`$as_basename -- "$0" || 15265$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15266 X"$0" : 'X\(//\)$' \| \ 15267 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15268$as_echo X/"$0" | 15269 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15270 s//\1/ 15271 q 15272 } 15273 /^X\/\(\/\/\)$/{ 15274 s//\1/ 15275 q 15276 } 15277 /^X\/\(\/\).*/{ 15278 s//\1/ 15279 q 15280 } 15281 s/.*/./; q'` 15282 15283# Avoid depending upon Character Ranges. 15284as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15285as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15286as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15287as_cr_digits='0123456789' 15288as_cr_alnum=$as_cr_Letters$as_cr_digits 15289 15290ECHO_C= ECHO_N= ECHO_T= 15291case `echo -n x` in #((((( 15292-n*) 15293 case `echo 'xy\c'` in 15294 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15295 xy) ECHO_C='\c';; 15296 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15297 ECHO_T=' ';; 15298 esac;; 15299*) 15300 ECHO_N='-n';; 15301esac 15302 15303rm -f conf$$ conf$$.exe conf$$.file 15304if test -d conf$$.dir; then 15305 rm -f conf$$.dir/conf$$.file 15306else 15307 rm -f conf$$.dir 15308 mkdir conf$$.dir 2>/dev/null 15309fi 15310if (echo >conf$$.file) 2>/dev/null; then 15311 if ln -s conf$$.file conf$$ 2>/dev/null; then 15312 as_ln_s='ln -s' 15313 # ... but there are two gotchas: 15314 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15315 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15316 # In both cases, we have to default to `cp -pR'. 15317 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15318 as_ln_s='cp -pR' 15319 elif ln conf$$.file conf$$ 2>/dev/null; then 15320 as_ln_s=ln 15321 else 15322 as_ln_s='cp -pR' 15323 fi 15324else 15325 as_ln_s='cp -pR' 15326fi 15327rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15328rmdir conf$$.dir 2>/dev/null 15329 15330 15331# as_fn_mkdir_p 15332# ------------- 15333# Create "$as_dir" as a directory, including parents if necessary. 15334as_fn_mkdir_p () 15335{ 15336 15337 case $as_dir in #( 15338 -*) as_dir=./$as_dir;; 15339 esac 15340 test -d "$as_dir" || eval $as_mkdir_p || { 15341 as_dirs= 15342 while :; do 15343 case $as_dir in #( 15344 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15345 *) as_qdir=$as_dir;; 15346 esac 15347 as_dirs="'$as_qdir' $as_dirs" 15348 as_dir=`$as_dirname -- "$as_dir" || 15349$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15350 X"$as_dir" : 'X\(//\)[^/]' \| \ 15351 X"$as_dir" : 'X\(//\)$' \| \ 15352 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15353$as_echo X"$as_dir" | 15354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15355 s//\1/ 15356 q 15357 } 15358 /^X\(\/\/\)[^/].*/{ 15359 s//\1/ 15360 q 15361 } 15362 /^X\(\/\/\)$/{ 15363 s//\1/ 15364 q 15365 } 15366 /^X\(\/\).*/{ 15367 s//\1/ 15368 q 15369 } 15370 s/.*/./; q'` 15371 test -d "$as_dir" && break 15372 done 15373 test -z "$as_dirs" || eval "mkdir $as_dirs" 15374 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15375 15376 15377} # as_fn_mkdir_p 15378if mkdir -p . 2>/dev/null; then 15379 as_mkdir_p='mkdir -p "$as_dir"' 15380else 15381 test -d ./-p && rmdir ./-p 15382 as_mkdir_p=false 15383fi 15384 15385 15386# as_fn_executable_p FILE 15387# ----------------------- 15388# Test if FILE is an executable regular file. 15389as_fn_executable_p () 15390{ 15391 test -f "$1" && test -x "$1" 15392} # as_fn_executable_p 15393as_test_x='test -x' 15394as_executable_p=as_fn_executable_p 15395 15396# Sed expression to map a string onto a valid CPP name. 15397as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15398 15399# Sed expression to map a string onto a valid variable name. 15400as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15401 15402 15403exec 6>&1 15404## ----------------------------------- ## 15405## Main body of $CONFIG_STATUS script. ## 15406## ----------------------------------- ## 15407_ASEOF 15408test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15409 15410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15411# Save the log message, to keep $0 and so on meaningful, and to 15412# report actual input values of CONFIG_FILES etc. instead of their 15413# values after options handling. 15414ac_log=" 15415This file was extended by $as_me, which was 15416generated by GNU Autoconf 2.69. Invocation command line was 15417 15418 CONFIG_FILES = $CONFIG_FILES 15419 CONFIG_HEADERS = $CONFIG_HEADERS 15420 CONFIG_LINKS = $CONFIG_LINKS 15421 CONFIG_COMMANDS = $CONFIG_COMMANDS 15422 $ $0 $@ 15423 15424on `(hostname || uname -n) 2>/dev/null | sed 1q` 15425" 15426 15427_ACEOF 15428 15429case $ac_config_files in *" 15430"*) set x $ac_config_files; shift; ac_config_files=$*;; 15431esac 15432 15433 15434 15435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15436# Files that config.status was made for. 15437config_files="$ac_config_files" 15438 15439_ACEOF 15440 15441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15442ac_cs_usage="\ 15443\`$as_me' instantiates files and other configuration actions 15444from templates according to the current configuration. Unless the files 15445and actions are specified as TAGs, all are instantiated by default. 15446 15447Usage: $0 [OPTION]... [TAG]... 15448 15449 -h, --help print this help, then exit 15450 -V, --version print version number and configuration settings, then exit 15451 --config print configuration, then exit 15452 -q, --quiet, --silent 15453 do not print progress messages 15454 -d, --debug don't remove temporary files 15455 --recheck update $as_me by reconfiguring in the same conditions 15456 --file=FILE[:TEMPLATE] 15457 instantiate the configuration file FILE 15458 15459Configuration files: 15460$config_files 15461 15462Report bugs to the package provider." 15463 15464_ACEOF 15465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15466ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15467ac_cs_version="\\ 15468config.status 15469configured by $0, generated by GNU Autoconf 2.69, 15470 with options \\"\$ac_cs_config\\" 15471 15472Copyright (C) 2012 Free Software Foundation, Inc. 15473This config.status script is free software; the Free Software Foundation 15474gives unlimited permission to copy, distribute and modify it." 15475 15476ac_pwd='$ac_pwd' 15477srcdir='$srcdir' 15478INSTALL='$INSTALL' 15479AWK='$AWK' 15480test -n "\$AWK" || AWK=awk 15481_ACEOF 15482 15483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15484# The default lists apply if the user does not specify any file. 15485ac_need_defaults=: 15486while test $# != 0 15487do 15488 case $1 in 15489 --*=?*) 15490 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15492 ac_shift=: 15493 ;; 15494 --*=) 15495 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15496 ac_optarg= 15497 ac_shift=: 15498 ;; 15499 *) 15500 ac_option=$1 15501 ac_optarg=$2 15502 ac_shift=shift 15503 ;; 15504 esac 15505 15506 case $ac_option in 15507 # Handling of the options. 15508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15509 ac_cs_recheck=: ;; 15510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15511 $as_echo "$ac_cs_version"; exit ;; 15512 --config | --confi | --conf | --con | --co | --c ) 15513 $as_echo "$ac_cs_config"; exit ;; 15514 --debug | --debu | --deb | --de | --d | -d ) 15515 debug=: ;; 15516 --file | --fil | --fi | --f ) 15517 $ac_shift 15518 case $ac_optarg in 15519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15520 '') as_fn_error $? "missing file argument" ;; 15521 esac 15522 as_fn_append CONFIG_FILES " '$ac_optarg'" 15523 ac_need_defaults=false;; 15524 --he | --h | --help | --hel | -h ) 15525 $as_echo "$ac_cs_usage"; exit ;; 15526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15527 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15528 ac_cs_silent=: ;; 15529 15530 # This is an error. 15531 -*) as_fn_error $? "unrecognized option: \`$1' 15532Try \`$0 --help' for more information." ;; 15533 15534 *) as_fn_append ac_config_targets " $1" 15535 ac_need_defaults=false ;; 15536 15537 esac 15538 shift 15539done 15540 15541ac_configure_extra_args= 15542 15543if $ac_cs_silent; then 15544 exec 6>/dev/null 15545 ac_configure_extra_args="$ac_configure_extra_args --silent" 15546fi 15547 15548_ACEOF 15549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15550if \$ac_cs_recheck; then 15551 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15552 shift 15553 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15554 CONFIG_SHELL='$SHELL' 15555 export CONFIG_SHELL 15556 exec "\$@" 15557fi 15558 15559_ACEOF 15560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15561exec 5>>config.log 15562{ 15563 echo 15564 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15565## Running $as_me. ## 15566_ASBOX 15567 $as_echo "$ac_log" 15568} >&5 15569 15570_ACEOF 15571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15572# 15573# INIT-COMMANDS 15574# 15575extrasub_build="$extrasub_build" 15576 extrasub_host="$extrasub_host" 15577 extrasub_target="$extrasub_target" 15578 15579_ACEOF 15580 15581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15582 15583# Handling of arguments. 15584for ac_config_target in $ac_config_targets 15585do 15586 case $ac_config_target in 15587 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15588 15589 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15590 esac 15591done 15592 15593 15594# If the user did not use the arguments to specify the items to instantiate, 15595# then the envvar interface is used. Set only those that are not. 15596# We use the long form for the default assignment because of an extremely 15597# bizarre bug on SunOS 4.1.3. 15598if $ac_need_defaults; then 15599 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15600fi 15601 15602# Have a temporary directory for convenience. Make it in the build tree 15603# simply because there is no reason against having it here, and in addition, 15604# creating and moving files from /tmp can sometimes cause problems. 15605# Hook for its removal unless debugging. 15606# Note that there is a small window in which the directory will not be cleaned: 15607# after its creation but before its name has been assigned to `$tmp'. 15608$debug || 15609{ 15610 tmp= ac_tmp= 15611 trap 'exit_status=$? 15612 : "${ac_tmp:=$tmp}" 15613 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15614' 0 15615 trap 'as_fn_exit 1' 1 2 13 15 15616} 15617# Create a (secure) tmp directory for tmp files. 15618 15619{ 15620 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15621 test -d "$tmp" 15622} || 15623{ 15624 tmp=./conf$$-$RANDOM 15625 (umask 077 && mkdir "$tmp") 15626} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15627ac_tmp=$tmp 15628 15629# Set up the scripts for CONFIG_FILES section. 15630# No need to generate them if there are no CONFIG_FILES. 15631# This happens for instance with `./config.status config.h'. 15632if test -n "$CONFIG_FILES"; then 15633 15634if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 15635 ac_cs_awk_getline=: 15636 ac_cs_awk_pipe_init= 15637 ac_cs_awk_read_file=' 15638 while ((getline aline < (F[key])) > 0) 15639 print(aline) 15640 close(F[key])' 15641 ac_cs_awk_pipe_fini= 15642else 15643 ac_cs_awk_getline=false 15644 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 15645 ac_cs_awk_read_file=' 15646 print "|#_!!_#|" 15647 print "cat " F[key] " &&" 15648 '$ac_cs_awk_pipe_init 15649 # The final `:' finishes the AND list. 15650 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 15651fi 15652ac_cr=`echo X | tr X '\015'` 15653# On cygwin, bash can eat \r inside `` if the user requested igncr. 15654# But we know of no other shell where ac_cr would be empty at this 15655# point, so we can use a bashism as a fallback. 15656if test "x$ac_cr" = x; then 15657 eval ac_cr=\$\'\\r\' 15658fi 15659ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15660if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15661 ac_cs_awk_cr='\\r' 15662else 15663 ac_cs_awk_cr=$ac_cr 15664fi 15665 15666echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15667_ACEOF 15668 15669# Create commands to substitute file output variables. 15670{ 15671 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 15672 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 15673 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 15674 echo "_ACAWK" && 15675 echo "_ACEOF" 15676} >conf$$files.sh && 15677. ./conf$$files.sh || 15678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15679rm -f conf$$files.sh 15680 15681{ 15682 echo "cat >conf$$subs.awk <<_ACEOF" && 15683 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15684 echo "_ACEOF" 15685} >conf$$subs.sh || 15686 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15687ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15688ac_delim='%!_!# ' 15689for ac_last_try in false false false false false :; do 15690 . ./conf$$subs.sh || 15691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15692 15693 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15694 if test $ac_delim_n = $ac_delim_num; then 15695 break 15696 elif $ac_last_try; then 15697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15698 else 15699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15700 fi 15701done 15702rm -f conf$$subs.sh 15703 15704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15705cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15706_ACEOF 15707sed -n ' 15708h 15709s/^/S["/; s/!.*/"]=/ 15710p 15711g 15712s/^[^!]*!// 15713:repl 15714t repl 15715s/'"$ac_delim"'$// 15716t delim 15717:nl 15718h 15719s/\(.\{148\}\)..*/\1/ 15720t more1 15721s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15722p 15723n 15724b repl 15725:more1 15726s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15727p 15728g 15729s/.\{148\}// 15730t nl 15731:delim 15732h 15733s/\(.\{148\}\)..*/\1/ 15734t more2 15735s/["\\]/\\&/g; s/^/"/; s/$/"/ 15736p 15737b 15738:more2 15739s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15740p 15741g 15742s/.\{148\}// 15743t delim 15744' <conf$$subs.awk | sed ' 15745/^[^""]/{ 15746 N 15747 s/\n// 15748} 15749' >>$CONFIG_STATUS || ac_write_fail=1 15750rm -f conf$$subs.awk 15751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15752_ACAWK 15753cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15754 for (key in S) S_is_set[key] = 1 15755 FS = "" 15756 \$ac_cs_awk_pipe_init 15757} 15758{ 15759 line = $ 0 15760 nfields = split(line, field, "@") 15761 substed = 0 15762 len = length(field[1]) 15763 for (i = 2; i < nfields; i++) { 15764 key = field[i] 15765 keylen = length(key) 15766 if (S_is_set[key]) { 15767 value = S[key] 15768 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15769 len += length(value) + length(field[++i]) 15770 substed = 1 15771 } else 15772 len += 1 + keylen 15773 } 15774 if (nfields == 3 && !substed) { 15775 key = field[2] 15776 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 15777 \$ac_cs_awk_read_file 15778 next 15779 } 15780 } 15781 print line 15782} 15783\$ac_cs_awk_pipe_fini 15784_ACAWK 15785_ACEOF 15786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15787if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15788 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15789else 15790 cat 15791fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15792 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15793_ACEOF 15794 15795# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15796# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15797# trailing colons and then remove the whole line if VPATH becomes empty 15798# (actually we leave an empty line to preserve line numbers). 15799if test "x$srcdir" = x.; then 15800 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15801h 15802s/// 15803s/^/:/ 15804s/[ ]*$/:/ 15805s/:\$(srcdir):/:/g 15806s/:\${srcdir}:/:/g 15807s/:@srcdir@:/:/g 15808s/^:*// 15809s/:*$// 15810x 15811s/\(=[ ]*\).*/\1/ 15812G 15813s/\n// 15814s/^[^=]*=[ ]*$// 15815}' 15816fi 15817 15818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15819fi # test -n "$CONFIG_FILES" 15820 15821 15822eval set X " :F $CONFIG_FILES " 15823shift 15824for ac_tag 15825do 15826 case $ac_tag in 15827 :[FHLC]) ac_mode=$ac_tag; continue;; 15828 esac 15829 case $ac_mode$ac_tag in 15830 :[FHL]*:*);; 15831 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15832 :[FH]-) ac_tag=-:-;; 15833 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15834 esac 15835 ac_save_IFS=$IFS 15836 IFS=: 15837 set x $ac_tag 15838 IFS=$ac_save_IFS 15839 shift 15840 ac_file=$1 15841 shift 15842 15843 case $ac_mode in 15844 :L) ac_source=$1;; 15845 :[FH]) 15846 ac_file_inputs= 15847 for ac_f 15848 do 15849 case $ac_f in 15850 -) ac_f="$ac_tmp/stdin";; 15851 *) # Look for the file first in the build tree, then in the source tree 15852 # (if the path is not absolute). The absolute path cannot be DOS-style, 15853 # because $ac_f cannot contain `:'. 15854 test -f "$ac_f" || 15855 case $ac_f in 15856 [\\/$]*) false;; 15857 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15858 esac || 15859 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15860 esac 15861 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15862 as_fn_append ac_file_inputs " '$ac_f'" 15863 done 15864 15865 # Let's still pretend it is `configure' which instantiates (i.e., don't 15866 # use $as_me), people would be surprised to read: 15867 # /* config.h. Generated by config.status. */ 15868 configure_input='Generated from '` 15869 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15870 `' by configure.' 15871 if test x"$ac_file" != x-; then 15872 configure_input="$ac_file. $configure_input" 15873 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15874$as_echo "$as_me: creating $ac_file" >&6;} 15875 fi 15876 # Neutralize special characters interpreted by sed in replacement strings. 15877 case $configure_input in #( 15878 *\&* | *\|* | *\\* ) 15879 ac_sed_conf_input=`$as_echo "$configure_input" | 15880 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15881 *) ac_sed_conf_input=$configure_input;; 15882 esac 15883 15884 case $ac_tag in 15885 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15887 esac 15888 ;; 15889 esac 15890 15891 ac_dir=`$as_dirname -- "$ac_file" || 15892$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15893 X"$ac_file" : 'X\(//\)[^/]' \| \ 15894 X"$ac_file" : 'X\(//\)$' \| \ 15895 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15896$as_echo X"$ac_file" | 15897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15898 s//\1/ 15899 q 15900 } 15901 /^X\(\/\/\)[^/].*/{ 15902 s//\1/ 15903 q 15904 } 15905 /^X\(\/\/\)$/{ 15906 s//\1/ 15907 q 15908 } 15909 /^X\(\/\).*/{ 15910 s//\1/ 15911 q 15912 } 15913 s/.*/./; q'` 15914 as_dir="$ac_dir"; as_fn_mkdir_p 15915 ac_builddir=. 15916 15917case "$ac_dir" in 15918.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15919*) 15920 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15921 # A ".." for each directory in $ac_dir_suffix. 15922 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15923 case $ac_top_builddir_sub in 15924 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15925 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15926 esac ;; 15927esac 15928ac_abs_top_builddir=$ac_pwd 15929ac_abs_builddir=$ac_pwd$ac_dir_suffix 15930# for backward compatibility: 15931ac_top_builddir=$ac_top_build_prefix 15932 15933case $srcdir in 15934 .) # We are building in place. 15935 ac_srcdir=. 15936 ac_top_srcdir=$ac_top_builddir_sub 15937 ac_abs_top_srcdir=$ac_pwd ;; 15938 [\\/]* | ?:[\\/]* ) # Absolute name. 15939 ac_srcdir=$srcdir$ac_dir_suffix; 15940 ac_top_srcdir=$srcdir 15941 ac_abs_top_srcdir=$srcdir ;; 15942 *) # Relative name. 15943 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15944 ac_top_srcdir=$ac_top_build_prefix$srcdir 15945 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15946esac 15947ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15948 15949 15950 case $ac_mode in 15951 :F) 15952 # 15953 # CONFIG_FILE 15954 # 15955 15956 case $INSTALL in 15957 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15958 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15959 esac 15960_ACEOF 15961 15962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15963# If the template does not know about datarootdir, expand it. 15964# FIXME: This hack should be removed a few years after 2.60. 15965ac_datarootdir_hack=; ac_datarootdir_seen= 15966ac_sed_dataroot=' 15967/datarootdir/ { 15968 p 15969 q 15970} 15971/@datadir@/p 15972/@docdir@/p 15973/@infodir@/p 15974/@localedir@/p 15975/@mandir@/p' 15976case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15977*datarootdir*) ac_datarootdir_seen=yes;; 15978*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15980$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15981_ACEOF 15982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15983 ac_datarootdir_hack=' 15984 s&@datadir@&$datadir&g 15985 s&@docdir@&$docdir&g 15986 s&@infodir@&$infodir&g 15987 s&@localedir@&$localedir&g 15988 s&@mandir@&$mandir&g 15989 s&\\\${datarootdir}&$datarootdir&g' ;; 15990esac 15991_ACEOF 15992 15993# Neutralize VPATH when `$srcdir' = `.'. 15994# Shell code in configure.ac might set extrasub. 15995# FIXME: do we really want to maintain this feature? 15996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15997ac_sed_extra="$ac_vpsub 15998$extrasub 15999_ACEOF 16000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16001:t 16002/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16003s|@configure_input@|$ac_sed_conf_input|;t t 16004s&@top_builddir@&$ac_top_builddir_sub&;t t 16005s&@top_build_prefix@&$ac_top_build_prefix&;t t 16006s&@srcdir@&$ac_srcdir&;t t 16007s&@abs_srcdir@&$ac_abs_srcdir&;t t 16008s&@top_srcdir@&$ac_top_srcdir&;t t 16009s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16010s&@builddir@&$ac_builddir&;t t 16011s&@abs_builddir@&$ac_abs_builddir&;t t 16012s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16013s&@INSTALL@&$ac_INSTALL&;t t 16014$ac_datarootdir_hack 16015" 16016eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 16017if $ac_cs_awk_getline; then 16018 $AWK -f "$ac_tmp/subs.awk" 16019else 16020 $AWK -f "$ac_tmp/subs.awk" | $SHELL 16021fi \ 16022 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16023 16024test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16025 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16026 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16027 "$ac_tmp/out"`; test -z "$ac_out"; } && 16028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16029which seems to be undefined. Please make sure it is defined" >&5 16030$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16031which seems to be undefined. Please make sure it is defined" >&2;} 16032 16033 rm -f "$ac_tmp/stdin" 16034 case $ac_file in 16035 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16036 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16037 esac \ 16038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16039 ;; 16040 16041 16042 16043 esac 16044 16045 16046 case $ac_file$ac_mode in 16047 "Makefile":F) sed "$extrasub_build" Makefile | 16048 sed "$extrasub_host" | 16049 sed "$extrasub_target" > mf$$ 16050 mv -f mf$$ Makefile ;; 16051 16052 esac 16053done # for ac_tag 16054 16055 16056as_fn_exit 0 16057_ACEOF 16058ac_clean_files=$ac_clean_files_save 16059 16060test $ac_write_fail = 0 || 16061 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16062 16063 16064# configure is writing to config.log, and then calls config.status. 16065# config.status does its own redirection, appending to config.log. 16066# Unfortunately, on DOS this fails, as config.log is still kept open 16067# by configure, so config.status won't be able to write to it; its 16068# output is simply discarded. So we exec the FD to /dev/null, 16069# effectively closing config.log, so it can be properly (re)opened and 16070# appended to by config.status. When coming back to configure, we 16071# need to make the FD available again. 16072if test "$no_create" != yes; then 16073 ac_cs_success=: 16074 ac_config_status_args= 16075 test "$silent" = yes && 16076 ac_config_status_args="$ac_config_status_args --quiet" 16077 exec 5>/dev/null 16078 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16079 exec 5>>config.log 16080 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16081 # would make configure fail if this is the last instruction. 16082 $ac_cs_success || as_fn_exit 1 16083fi 16084if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16086$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16087fi 16088 16089