PageRenderTime 529ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 2ms

/binutils/configure

https://review.tizen.org/git/
Shell | 15192 lines | 13344 code | 1070 blank | 778 comment | 2113 complexity | 931458f22b628436859055bdd52311ed MD5 | raw file
Possible License(s): GPL-3.0, AGPL-3.0, GPL-2.0, MPL-2.0, JSON, WTFPL, CC-BY-SA-4.0, CC-BY-3.0, BSD-3-Clause, LGPL-2.0, MPL-2.0-no-copyleft-exception, AGPL-1.0, 0BSD, Zlib, Unlicense, BSD-2-Clause, Apache-2.0, LGPL-3.0, ISC, MIT, CC-BY-SA-3.0, CC0-1.0, LGPL-2.1
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  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. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1"
  159. if (eval "$as_required") 2>/dev/null; then :
  160. as_have_required=yes
  161. else
  162. as_have_required=no
  163. fi
  164. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  165. else
  166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  167. as_found=false
  168. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  169. do
  170. IFS=$as_save_IFS
  171. test -z "$as_dir" && as_dir=.
  172. as_found=:
  173. case $as_dir in #(
  174. /*)
  175. for as_base in sh bash ksh sh5; do
  176. # Try only shells that exist, to save several forks.
  177. as_shell=$as_dir/$as_base
  178. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  179. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  180. CONFIG_SHELL=$as_shell as_have_required=yes
  181. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. break 2
  183. fi
  184. fi
  185. done;;
  186. esac
  187. as_found=false
  188. done
  189. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  190. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  191. CONFIG_SHELL=$SHELL as_have_required=yes
  192. fi; }
  193. IFS=$as_save_IFS
  194. if test "x$CONFIG_SHELL" != x; then :
  195. # We cannot yet assume a decent shell, so we have to provide a
  196. # neutralization value for shells without unset; and this also
  197. # works around shells that cannot unset nonexistent variables.
  198. BASH_ENV=/dev/null
  199. ENV=/dev/null
  200. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  201. export CONFIG_SHELL
  202. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  203. fi
  204. if test x$as_have_required = xno; then :
  205. $as_echo "$0: This script requires a shell more modern than all"
  206. $as_echo "$0: the shells that I found on your system."
  207. if test x${ZSH_VERSION+set} = xset ; then
  208. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  209. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  210. else
  211. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  212. $0: including any error possibly output before this
  213. $0: message. Then install a modern shell, or manually run
  214. $0: the script under such a shell if you do have one."
  215. fi
  216. exit 1
  217. fi
  218. fi
  219. fi
  220. SHELL=${CONFIG_SHELL-/bin/sh}
  221. export SHELL
  222. # Unset more variables known to interfere with behavior of common tools.
  223. CLICOLOR_FORCE= GREP_OPTIONS=
  224. unset CLICOLOR_FORCE GREP_OPTIONS
  225. ## --------------------- ##
  226. ## M4sh Shell Functions. ##
  227. ## --------------------- ##
  228. # as_fn_unset VAR
  229. # ---------------
  230. # Portably unset VAR.
  231. as_fn_unset ()
  232. {
  233. { eval $1=; unset $1;}
  234. }
  235. as_unset=as_fn_unset
  236. # as_fn_set_status STATUS
  237. # -----------------------
  238. # Set $? to STATUS, without forking.
  239. as_fn_set_status ()
  240. {
  241. return $1
  242. } # as_fn_set_status
  243. # as_fn_exit STATUS
  244. # -----------------
  245. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  246. as_fn_exit ()
  247. {
  248. set +e
  249. as_fn_set_status $1
  250. exit $1
  251. } # as_fn_exit
  252. # as_fn_mkdir_p
  253. # -------------
  254. # Create "$as_dir" as a directory, including parents if necessary.
  255. as_fn_mkdir_p ()
  256. {
  257. case $as_dir in #(
  258. -*) as_dir=./$as_dir;;
  259. esac
  260. test -d "$as_dir" || eval $as_mkdir_p || {
  261. as_dirs=
  262. while :; do
  263. case $as_dir in #(
  264. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  265. *) as_qdir=$as_dir;;
  266. esac
  267. as_dirs="'$as_qdir' $as_dirs"
  268. as_dir=`$as_dirname -- "$as_dir" ||
  269. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  270. X"$as_dir" : 'X\(//\)[^/]' \| \
  271. X"$as_dir" : 'X\(//\)$' \| \
  272. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  273. $as_echo X"$as_dir" |
  274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  275. s//\1/
  276. q
  277. }
  278. /^X\(\/\/\)[^/].*/{
  279. s//\1/
  280. q
  281. }
  282. /^X\(\/\/\)$/{
  283. s//\1/
  284. q
  285. }
  286. /^X\(\/\).*/{
  287. s//\1/
  288. q
  289. }
  290. s/.*/./; q'`
  291. test -d "$as_dir" && break
  292. done
  293. test -z "$as_dirs" || eval "mkdir $as_dirs"
  294. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  295. } # as_fn_mkdir_p
  296. # as_fn_append VAR VALUE
  297. # ----------------------
  298. # Append the text in VALUE to the end of the definition contained in VAR. Take
  299. # advantage of any shell optimizations that allow amortized linear growth over
  300. # repeated appends, instead of the typical quadratic growth present in naive
  301. # implementations.
  302. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  303. eval 'as_fn_append ()
  304. {
  305. eval $1+=\$2
  306. }'
  307. else
  308. as_fn_append ()
  309. {
  310. eval $1=\$$1\$2
  311. }
  312. fi # as_fn_append
  313. # as_fn_arith ARG...
  314. # ------------------
  315. # Perform arithmetic evaluation on the ARGs, and store the result in the
  316. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  317. # must be portable across $(()) and expr.
  318. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  319. eval 'as_fn_arith ()
  320. {
  321. as_val=$(( $* ))
  322. }'
  323. else
  324. as_fn_arith ()
  325. {
  326. as_val=`expr "$@" || test $? -eq 1`
  327. }
  328. fi # as_fn_arith
  329. # as_fn_error ERROR [LINENO LOG_FD]
  330. # ---------------------------------
  331. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  332. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  333. # script with status $?, using 1 if that was 0.
  334. as_fn_error ()
  335. {
  336. as_status=$?; test $as_status -eq 0 && as_status=1
  337. if test "$3"; then
  338. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  339. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  340. fi
  341. $as_echo "$as_me: error: $1" >&2
  342. as_fn_exit $as_status
  343. } # as_fn_error
  344. if expr a : '\(a\)' >/dev/null 2>&1 &&
  345. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  346. as_expr=expr
  347. else
  348. as_expr=false
  349. fi
  350. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  351. as_basename=basename
  352. else
  353. as_basename=false
  354. fi
  355. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  356. as_dirname=dirname
  357. else
  358. as_dirname=false
  359. fi
  360. as_me=`$as_basename -- "$0" ||
  361. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  362. X"$0" : 'X\(//\)$' \| \
  363. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  364. $as_echo X/"$0" |
  365. sed '/^.*\/\([^/][^/]*\)\/*$/{
  366. s//\1/
  367. q
  368. }
  369. /^X\/\(\/\/\)$/{
  370. s//\1/
  371. q
  372. }
  373. /^X\/\(\/\).*/{
  374. s//\1/
  375. q
  376. }
  377. s/.*/./; q'`
  378. # Avoid depending upon Character Ranges.
  379. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  380. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  381. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  382. as_cr_digits='0123456789'
  383. as_cr_alnum=$as_cr_Letters$as_cr_digits
  384. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  385. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  386. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  387. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  388. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  389. sed -n '
  390. p
  391. /[$]LINENO/=
  392. ' <$as_myself |
  393. sed '
  394. s/[$]LINENO.*/&-/
  395. t lineno
  396. b
  397. :lineno
  398. N
  399. :loop
  400. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  401. t loop
  402. s/-\n.*//
  403. ' >$as_me.lineno &&
  404. chmod +x "$as_me.lineno" ||
  405. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  406. # Don't try to exec as it changes $[0], causing all sort of problems
  407. # (the dirname of $[0] is not the place where we might find the
  408. # original and so on. Autoconf is especially sensitive to this).
  409. . "./$as_me.lineno"
  410. # Exit status is that of the last command.
  411. exit
  412. }
  413. ECHO_C= ECHO_N= ECHO_T=
  414. case `echo -n x` in #(((((
  415. -n*)
  416. case `echo 'xy\c'` in
  417. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  418. xy) ECHO_C='\c';;
  419. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  420. ECHO_T=' ';;
  421. esac;;
  422. *)
  423. ECHO_N='-n';;
  424. esac
  425. rm -f conf$$ conf$$.exe conf$$.file
  426. if test -d conf$$.dir; then
  427. rm -f conf$$.dir/conf$$.file
  428. else
  429. rm -f conf$$.dir
  430. mkdir conf$$.dir 2>/dev/null
  431. fi
  432. if (echo >conf$$.file) 2>/dev/null; then
  433. if ln -s conf$$.file conf$$ 2>/dev/null; then
  434. as_ln_s='ln -s'
  435. # ... but there are two gotchas:
  436. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  437. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  438. # In both cases, we have to default to `cp -p'.
  439. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  440. as_ln_s='cp -p'
  441. elif ln conf$$.file conf$$ 2>/dev/null; then
  442. as_ln_s=ln
  443. else
  444. as_ln_s='cp -p'
  445. fi
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  450. rmdir conf$$.dir 2>/dev/null
  451. if mkdir -p . 2>/dev/null; then
  452. as_mkdir_p='mkdir -p "$as_dir"'
  453. else
  454. test -d ./-p && rmdir ./-p
  455. as_mkdir_p=false
  456. fi
  457. if test -x / >/dev/null 2>&1; then
  458. as_test_x='test -x'
  459. else
  460. if ls -dL / >/dev/null 2>&1; then
  461. as_ls_L_option=L
  462. else
  463. as_ls_L_option=
  464. fi
  465. as_test_x='
  466. eval sh -c '\''
  467. if test -d "$1"; then
  468. test -d "$1/.";
  469. else
  470. case $1 in #(
  471. -*)set "./$1";;
  472. esac;
  473. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  474. ???[sx]*):;;*)false;;esac;fi
  475. '\'' sh
  476. '
  477. fi
  478. as_executable_p=$as_test_x
  479. # Sed expression to map a string onto a valid CPP name.
  480. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  481. # Sed expression to map a string onto a valid variable name.
  482. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  483. exec 7<&0 </dev/null 6>&1
  484. # Name of the host.
  485. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  486. # so uname gets run too.
  487. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  488. #
  489. # Initializations.
  490. #
  491. ac_default_prefix=/usr/local
  492. ac_clean_files=
  493. ac_config_libobj_dir=.
  494. LIBOBJS=
  495. cross_compiling=no
  496. subdirs=
  497. MFLAGS=
  498. MAKEFLAGS=
  499. # Identity of this package.
  500. PACKAGE_NAME=
  501. PACKAGE_TARNAME=
  502. PACKAGE_VERSION=
  503. PACKAGE_STRING=
  504. PACKAGE_BUGREPORT=
  505. PACKAGE_URL=
  506. ac_unique_file="move-if-change"
  507. enable_option_checking=no
  508. ac_subst_vars='LTLIBOBJS
  509. LIBOBJS
  510. compare_exclusions
  511. stage2_werror_flag
  512. stage1_checking
  513. stage1_cflags
  514. MAINT
  515. MAINTAINER_MODE_FALSE
  516. MAINTAINER_MODE_TRUE
  517. COMPILER_NM_FOR_TARGET
  518. COMPILER_LD_FOR_TARGET
  519. COMPILER_AS_FOR_TARGET
  520. FLAGS_FOR_TARGET
  521. RAW_CXX_FOR_TARGET
  522. WINDMC_FOR_TARGET
  523. WINDRES_FOR_TARGET
  524. STRIP_FOR_TARGET
  525. RANLIB_FOR_TARGET
  526. OBJDUMP_FOR_TARGET
  527. NM_FOR_TARGET
  528. LIPO_FOR_TARGET
  529. LD_FOR_TARGET
  530. DLLTOOL_FOR_TARGET
  531. AS_FOR_TARGET
  532. AR_FOR_TARGET
  533. GOC_FOR_TARGET
  534. GFORTRAN_FOR_TARGET
  535. GCJ_FOR_TARGET
  536. GCC_FOR_TARGET
  537. CXX_FOR_TARGET
  538. CC_FOR_TARGET
  539. OBJDUMP
  540. OBJCOPY
  541. WINDMC
  542. WINDRES
  543. STRIP
  544. RANLIB
  545. NM
  546. LIPO
  547. LD
  548. DLLTOOL
  549. AS
  550. AR
  551. RUNTEST
  552. EXPECT
  553. MAKEINFO
  554. FLEX
  555. LEX
  556. M4
  557. BISON
  558. YACC
  559. WINDRES_FOR_BUILD
  560. WINDMC_FOR_BUILD
  561. RANLIB_FOR_BUILD
  562. NM_FOR_BUILD
  563. LD_FOR_BUILD
  564. LDFLAGS_FOR_BUILD
  565. GOC_FOR_BUILD
  566. GFORTRAN_FOR_BUILD
  567. GCJ_FOR_BUILD
  568. DLLTOOL_FOR_BUILD
  569. CXX_FOR_BUILD
  570. CXXFLAGS_FOR_BUILD
  571. CFLAGS_FOR_BUILD
  572. CC_FOR_BUILD
  573. AS_FOR_BUILD
  574. AR_FOR_BUILD
  575. target_configdirs
  576. configdirs
  577. build_configdirs
  578. INSTALL_GDB_TK
  579. GDB_TK
  580. CONFIGURE_GDB_TK
  581. build_tooldir
  582. tooldir
  583. GCC_SHLIB_SUBDIR
  584. RPATH_ENVVAR
  585. target_configargs
  586. host_configargs
  587. build_configargs
  588. BUILD_CONFIG
  589. CXXFLAGS_FOR_TARGET
  590. CFLAGS_FOR_TARGET
  591. DEBUG_PREFIX_CFLAGS_FOR_TARGET
  592. SYSROOT_CFLAGS_FOR_TARGET
  593. stage1_languages
  594. extra_host_libiberty_configure_flags
  595. clooginc
  596. clooglibs
  597. pplinc
  598. ppllibs
  599. poststage1_ldflags
  600. poststage1_libs
  601. stage1_libs
  602. stage1_ldflags
  603. extra_mpc_mpfr_configure_flags
  604. extra_mpc_gmp_configure_flags
  605. extra_mpfr_configure_flags
  606. gmpinc
  607. gmplibs
  608. do_compare
  609. GNATMAKE
  610. GNATBIND
  611. ac_ct_CXX
  612. CXXFLAGS
  613. CXX
  614. OBJEXT
  615. EXEEXT
  616. ac_ct_CC
  617. CPPFLAGS
  618. LDFLAGS
  619. CFLAGS
  620. CC
  621. target_subdir
  622. host_subdir
  623. build_subdir
  624. build_libsubdir
  625. AWK
  626. SED
  627. LN_S
  628. LN
  629. INSTALL_DATA
  630. INSTALL_SCRIPT
  631. INSTALL_PROGRAM
  632. target_os
  633. target_vendor
  634. target_cpu
  635. target
  636. host_os
  637. host_vendor
  638. host_cpu
  639. host
  640. target_noncanonical
  641. host_noncanonical
  642. build_noncanonical
  643. build_os
  644. build_vendor
  645. build_cpu
  646. build
  647. TOPLEVEL_CONFIGURE_ARGUMENTS
  648. target_alias
  649. host_alias
  650. build_alias
  651. LIBS
  652. ECHO_T
  653. ECHO_N
  654. ECHO_C
  655. DEFS
  656. mandir
  657. localedir
  658. libdir
  659. psdir
  660. pdfdir
  661. dvidir
  662. htmldir
  663. infodir
  664. docdir
  665. oldincludedir
  666. includedir
  667. localstatedir
  668. sharedstatedir
  669. sysconfdir
  670. datadir
  671. datarootdir
  672. libexecdir
  673. sbindir
  674. bindir
  675. program_transform_name
  676. prefix
  677. exec_prefix
  678. PACKAGE_URL
  679. PACKAGE_BUGREPORT
  680. PACKAGE_STRING
  681. PACKAGE_VERSION
  682. PACKAGE_TARNAME
  683. PACKAGE_NAME
  684. PATH_SEPARATOR
  685. SHELL'
  686. ac_subst_files='serialization_dependencies
  687. host_makefile_frag
  688. target_makefile_frag
  689. alphaieee_frag
  690. ospace_frag'
  691. ac_user_opts='
  692. enable_option_checking
  693. with_build_libsubdir
  694. enable_gold
  695. enable_ld
  696. enable_libquadmath
  697. enable_libquadmath_support
  698. enable_libada
  699. enable_libssp
  700. enable_build_with_cxx
  701. with_mpc
  702. with_mpc_include
  703. with_mpc_lib
  704. with_mpfr_dir
  705. with_mpfr
  706. with_mpfr_include
  707. with_mpfr_lib
  708. with_gmp_dir
  709. with_gmp
  710. with_gmp_include
  711. with_gmp_lib
  712. with_host_libstdcxx
  713. with_stage1_ldflags
  714. with_stage1_libs
  715. with_boot_libs
  716. with_boot_ldflags
  717. with_ppl
  718. with_ppl_include
  719. with_ppl_lib
  720. enable_ppl_version_check
  721. with_cloog
  722. with_cloog_include
  723. with_cloog_lib
  724. enable_cloog_backend
  725. enable_cloog_version_check
  726. enable_lto
  727. enable_stage1_languages
  728. enable_objc_gc
  729. with_build_sysroot
  730. with_debug_prefix_map
  731. enable_bootstrap
  732. with_build_config
  733. enable_serial_configure
  734. with_build_time_tools
  735. enable_maintainer_mode
  736. enable_stage1_checking
  737. enable_werror
  738. '
  739. ac_precious_vars='build_alias
  740. host_alias
  741. target_alias
  742. CC
  743. CFLAGS
  744. LDFLAGS
  745. LIBS
  746. CPPFLAGS
  747. CXX
  748. CXXFLAGS
  749. CCC
  750. build_configargs
  751. host_configargs
  752. target_configargs
  753. AR
  754. AS
  755. DLLTOOL
  756. LD
  757. LIPO
  758. NM
  759. RANLIB
  760. STRIP
  761. WINDRES
  762. WINDMC
  763. OBJCOPY
  764. OBJDUMP
  765. CC_FOR_TARGET
  766. CXX_FOR_TARGET
  767. GCC_FOR_TARGET
  768. GCJ_FOR_TARGET
  769. GFORTRAN_FOR_TARGET
  770. GOC_FOR_TARGET
  771. AR_FOR_TARGET
  772. AS_FOR_TARGET
  773. DLLTOOL_FOR_TARGET
  774. LD_FOR_TARGET
  775. LIPO_FOR_TARGET
  776. NM_FOR_TARGET
  777. OBJDUMP_FOR_TARGET
  778. RANLIB_FOR_TARGET
  779. STRIP_FOR_TARGET
  780. WINDRES_FOR_TARGET
  781. WINDMC_FOR_TARGET'
  782. # Initialize some variables set by options.
  783. ac_init_help=
  784. ac_init_version=false
  785. ac_unrecognized_opts=
  786. ac_unrecognized_sep=
  787. # The variables have the same names as the options, with
  788. # dashes changed to underlines.
  789. cache_file=/dev/null
  790. exec_prefix=NONE
  791. no_create=
  792. no_recursion=
  793. prefix=NONE
  794. program_prefix=NONE
  795. program_suffix=NONE
  796. program_transform_name=s,x,x,
  797. silent=
  798. site=
  799. srcdir=
  800. verbose=
  801. x_includes=NONE
  802. x_libraries=NONE
  803. # Installation directory options.
  804. # These are left unexpanded so users can "make install exec_prefix=/foo"
  805. # and all the variables that are supposed to be based on exec_prefix
  806. # by default will actually change.
  807. # Use braces instead of parens because sh, perl, etc. also accept them.
  808. # (The list follows the same order as the GNU Coding Standards.)
  809. bindir='${exec_prefix}/bin'
  810. sbindir='${exec_prefix}/sbin'
  811. libexecdir='${exec_prefix}/libexec'
  812. datarootdir='${prefix}/share'
  813. datadir='${datarootdir}'
  814. sysconfdir='${prefix}/etc'
  815. sharedstatedir='${prefix}/com'
  816. localstatedir='${prefix}/var'
  817. includedir='${prefix}/include'
  818. oldincludedir='/usr/include'
  819. docdir='${datarootdir}/doc/${PACKAGE}'
  820. infodir='${datarootdir}/info'
  821. htmldir='${docdir}'
  822. dvidir='${docdir}'
  823. pdfdir='${docdir}'
  824. psdir='${docdir}'
  825. libdir='${exec_prefix}/lib'
  826. localedir='${datarootdir}/locale'
  827. mandir='${datarootdir}/man'
  828. ac_prev=
  829. ac_dashdash=
  830. for ac_option
  831. do
  832. # If the previous option needs an argument, assign it.
  833. if test -n "$ac_prev"; then
  834. eval $ac_prev=\$ac_option
  835. ac_prev=
  836. continue
  837. fi
  838. case $ac_option in
  839. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  840. *) ac_optarg=yes ;;
  841. esac
  842. # Accept the important Cygnus configure options, so we can diagnose typos.
  843. case $ac_dashdash$ac_option in
  844. --)
  845. ac_dashdash=yes ;;
  846. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  847. ac_prev=bindir ;;
  848. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  849. bindir=$ac_optarg ;;
  850. -build | --build | --buil | --bui | --bu)
  851. ac_prev=build_alias ;;
  852. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  853. build_alias=$ac_optarg ;;
  854. -cache-file | --cache-file | --cache-fil | --cache-fi \
  855. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  856. ac_prev=cache_file ;;
  857. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  858. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  859. cache_file=$ac_optarg ;;
  860. --config-cache | -C)
  861. cache_file=config.cache ;;
  862. -datadir | --datadir | --datadi | --datad)
  863. ac_prev=datadir ;;
  864. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  865. datadir=$ac_optarg ;;
  866. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  867. | --dataroo | --dataro | --datar)
  868. ac_prev=datarootdir ;;
  869. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  870. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  871. datarootdir=$ac_optarg ;;
  872. -disable-* | --disable-*)
  873. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  874. # Reject names that are not valid shell variable names.
  875. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  876. as_fn_error "invalid feature name: $ac_useropt"
  877. ac_useropt_orig=$ac_useropt
  878. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  879. case $ac_user_opts in
  880. *"
  881. "enable_$ac_useropt"
  882. "*) ;;
  883. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  884. ac_unrecognized_sep=', ';;
  885. esac
  886. eval enable_$ac_useropt=no ;;
  887. -docdir | --docdir | --docdi | --doc | --do)
  888. ac_prev=docdir ;;
  889. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  890. docdir=$ac_optarg ;;
  891. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  892. ac_prev=dvidir ;;
  893. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  894. dvidir=$ac_optarg ;;
  895. -enable-* | --enable-*)
  896. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  897. # Reject names that are not valid shell variable names.
  898. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  899. as_fn_error "invalid feature name: $ac_useropt"
  900. ac_useropt_orig=$ac_useropt
  901. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  902. case $ac_user_opts in
  903. *"
  904. "enable_$ac_useropt"
  905. "*) ;;
  906. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  907. ac_unrecognized_sep=', ';;
  908. esac
  909. eval enable_$ac_useropt=\$ac_optarg ;;
  910. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  911. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  912. | --exec | --exe | --ex)
  913. ac_prev=exec_prefix ;;
  914. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  915. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  916. | --exec=* | --exe=* | --ex=*)
  917. exec_prefix=$ac_optarg ;;
  918. -gas | --gas | --ga | --g)
  919. # Obsolete; use --with-gas.
  920. with_gas=yes ;;
  921. -help | --help | --hel | --he | -h)
  922. ac_init_help=long ;;
  923. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  924. ac_init_help=recursive ;;
  925. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  926. ac_init_help=short ;;
  927. -host | --host | --hos | --ho)
  928. ac_prev=host_alias ;;
  929. -host=* | --host=* | --hos=* | --ho=*)
  930. host_alias=$ac_optarg ;;
  931. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  932. ac_prev=htmldir ;;
  933. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  934. | --ht=*)
  935. htmldir=$ac_optarg ;;
  936. -includedir | --includedir | --includedi | --included | --include \
  937. | --includ | --inclu | --incl | --inc)
  938. ac_prev=includedir ;;
  939. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  940. | --includ=* | --inclu=* | --incl=* | --inc=*)
  941. includedir=$ac_optarg ;;
  942. -infodir | --infodir | --infodi | --infod | --info | --inf)
  943. ac_prev=infodir ;;
  944. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  945. infodir=$ac_optarg ;;
  946. -libdir | --libdir | --libdi | --libd)
  947. ac_prev=libdir ;;
  948. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  949. libdir=$ac_optarg ;;
  950. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  951. | --libexe | --libex | --libe)
  952. ac_prev=libexecdir ;;
  953. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  954. | --libexe=* | --libex=* | --libe=*)
  955. libexecdir=$ac_optarg ;;
  956. -localedir | --localedir | --localedi | --localed | --locale)
  957. ac_prev=localedir ;;
  958. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  959. localedir=$ac_optarg ;;
  960. -localstatedir | --localstatedir | --localstatedi | --localstated \
  961. | --localstate | --localstat | --localsta | --localst | --locals)
  962. ac_prev=localstatedir ;;
  963. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  964. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  965. localstatedir=$ac_optarg ;;
  966. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  967. ac_prev=mandir ;;
  968. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  969. mandir=$ac_optarg ;;
  970. -nfp | --nfp | --nf)
  971. # Obsolete; use --without-fp.
  972. with_fp=no ;;
  973. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  974. | --no-cr | --no-c | -n)
  975. no_create=yes ;;
  976. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  977. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  978. no_recursion=yes ;;
  979. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  980. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  981. | --oldin | --oldi | --old | --ol | --o)
  982. ac_prev=oldincludedir ;;
  983. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  984. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  985. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  986. oldincludedir=$ac_optarg ;;
  987. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  988. ac_prev=prefix ;;
  989. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  990. prefix=$ac_optarg ;;
  991. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  992. | --program-pre | --program-pr | --program-p)
  993. ac_prev=program_prefix ;;
  994. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  995. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  996. program_prefix=$ac_optarg ;;
  997. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  998. | --program-suf | --program-su | --program-s)
  999. ac_prev=program_suffix ;;
  1000. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1001. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1002. program_suffix=$ac_optarg ;;
  1003. -program-transform-name | --program-transform-name \
  1004. | --program-transform-nam | --program-transform-na \
  1005. | --program-transform-n | --program-transform- \
  1006. | --program-transform | --program-transfor \
  1007. | --program-transfo | --program-transf \
  1008. | --program-trans | --program-tran \
  1009. | --progr-tra | --program-tr | --program-t)
  1010. ac_prev=program_transform_name ;;
  1011. -program-transform-name=* | --program-transform-name=* \
  1012. | --program-transform-nam=* | --program-transform-na=* \
  1013. | --program-transform-n=* | --program-transform-=* \
  1014. | --program-transform=* | --program-transfor=* \
  1015. | --program-transfo=* | --program-transf=* \
  1016. | --program-trans=* | --program-tran=* \
  1017. | --progr-tra=* | --program-tr=* | --program-t=*)
  1018. program_transform_name=$ac_optarg ;;
  1019. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1020. ac_prev=pdfdir ;;
  1021. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1022. pdfdir=$ac_optarg ;;
  1023. -psdir | --psdir | --psdi | --psd | --ps)
  1024. ac_prev=psdir ;;
  1025. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1026. psdir=$ac_optarg ;;
  1027. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1028. | -silent | --silent | --silen | --sile | --sil)
  1029. silent=yes ;;
  1030. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1031. ac_prev=sbindir ;;
  1032. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1033. | --sbi=* | --sb=*)
  1034. sbindir=$ac_optarg ;;
  1035. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1036. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1037. | --sharedst | --shareds | --shared | --share | --shar \
  1038. | --sha | --sh)
  1039. ac_prev=sharedstatedir ;;
  1040. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1041. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1042. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1043. | --sha=* | --sh=*)
  1044. sharedstatedir=$ac_optarg ;;
  1045. -site | --site | --sit)
  1046. ac_prev=site ;;
  1047. -site=* | --site=* | --sit=*)
  1048. site=$ac_optarg ;;
  1049. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1050. ac_prev=srcdir ;;
  1051. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1052. srcdir=$ac_optarg ;;
  1053. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1054. | --syscon | --sysco | --sysc | --sys | --sy)
  1055. ac_prev=sysconfdir ;;
  1056. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1057. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1058. sysconfdir=$ac_optarg ;;
  1059. -target | --target | --targe | --targ | --tar | --ta | --t)
  1060. ac_prev=target_alias ;;
  1061. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1062. target_alias=$ac_optarg ;;
  1063. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1064. verbose=yes ;;
  1065. -version | --version | --versio | --versi | --vers | -V)
  1066. ac_init_version=: ;;
  1067. -with-* | --with-*)
  1068. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1069. # Reject names that are not valid shell variable names.
  1070. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1071. as_fn_error "invalid package name: $ac_useropt"
  1072. ac_useropt_orig=$ac_useropt
  1073. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1074. case $ac_user_opts in
  1075. *"
  1076. "with_$ac_useropt"
  1077. "*) ;;
  1078. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1079. ac_unrecognized_sep=', ';;
  1080. esac
  1081. eval with_$ac_useropt=\$ac_optarg ;;
  1082. -without-* | --without-*)
  1083. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1084. # Reject names that are not valid shell variable names.
  1085. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1086. as_fn_error "invalid package name: $ac_useropt"
  1087. ac_useropt_orig=$ac_useropt
  1088. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1089. case $ac_user_opts in
  1090. *"
  1091. "with_$ac_useropt"
  1092. "*) ;;
  1093. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1094. ac_unrecognized_sep=', ';;
  1095. esac
  1096. eval with_$ac_useropt=no ;;
  1097. --x)
  1098. # Obsolete; use --with-x.
  1099. with_x=yes ;;
  1100. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1101. | --x-incl | --x-inc | --x-in | --x-i)
  1102. ac_prev=x_includes ;;
  1103. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1104. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1105. x_includes=$ac_optarg ;;
  1106. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1107. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1108. ac_prev=x_libraries ;;
  1109. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1110. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1111. x_libraries=$ac_optarg ;;
  1112. -*) as_fn_error "unrecognized option: \`$ac_option'
  1113. Try \`$0 --help' for more information."
  1114. ;;
  1115. *=*)
  1116. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1117. # Reject names that are not valid shell variable names.
  1118. case $ac_envvar in #(
  1119. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1120. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1121. esac
  1122. eval $ac_envvar=\$ac_optarg
  1123. export $ac_envvar ;;
  1124. *)
  1125. # FIXME: should be removed in autoconf 3.0.
  1126. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1127. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1128. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1129. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1130. ;;
  1131. esac
  1132. done
  1133. if test -n "$ac_prev"; then
  1134. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1135. as_fn_error "missing argument to $ac_option"
  1136. fi
  1137. if test -n "$ac_unrecognized_opts"; then
  1138. case $enable_option_checking in
  1139. no) ;;
  1140. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1141. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1142. esac
  1143. fi
  1144. # Check all directory arguments for consistency.
  1145. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1146. datadir sysconfdir sharedstatedir localstatedir includedir \
  1147. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1148. libdir localedir mandir
  1149. do
  1150. eval ac_val=\$$ac_var
  1151. # Remove trailing slashes.
  1152. case $ac_val in
  1153. */ )
  1154. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1155. eval $ac_var=\$ac_val;;
  1156. esac
  1157. # Be sure to have absolute directory names.
  1158. case $ac_val in
  1159. [\\/$]* | ?:[\\/]* ) continue;;
  1160. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1161. esac
  1162. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1163. done
  1164. # There might be people who depend on the old broken behavior: `$host'
  1165. # used to hold the argument of --host etc.
  1166. # FIXME: To remove some day.
  1167. build=$build_alias
  1168. host=$host_alias
  1169. target=$target_alias
  1170. # FIXME: To remove some day.
  1171. if test "x$host_alias" != x; then
  1172. if test "x$build_alias" = x; then
  1173. cross_compiling=maybe
  1174. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1175. If a cross compiler is detected then cross compile mode will be used." >&2
  1176. elif test "x$build_alias" != "x$host_alias"; then
  1177. cross_compiling=yes
  1178. fi
  1179. fi
  1180. ac_tool_prefix=
  1181. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1182. test "$silent" = yes && exec 6>/dev/null
  1183. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1184. ac_ls_di=`ls -di .` &&
  1185. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1186. as_fn_error "working directory cannot be determined"
  1187. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1188. as_fn_error "pwd does not report name of working directory"
  1189. # Find the source files, if location was not specified.
  1190. if test -z "$srcdir"; then
  1191. ac_srcdir_defaulted=yes
  1192. # Try the directory containing this script, then the parent directory.
  1193. ac_confdir=`$as_dirname -- "$as_myself" ||
  1194. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1195. X"$as_myself" : 'X\(//\)[^/]' \| \
  1196. X"$as_myself" : 'X\(//\)$' \| \
  1197. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1198. $as_echo X"$as_myself" |
  1199. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1200. s//\1/
  1201. q
  1202. }
  1203. /^X\(\/\/\)[^/].*/{
  1204. s//\1/
  1205. q
  1206. }
  1207. /^X\(\/\/\)$/{
  1208. s//\1/
  1209. q
  1210. }
  1211. /^X\(\/\).*/{
  1212. s//\1/
  1213. q
  1214. }
  1215. s/.*/./; q'`
  1216. srcdir=$ac_confdir
  1217. if test ! -r "$srcdir/$ac_unique_file"; then
  1218. srcdir=..
  1219. fi
  1220. else
  1221. ac_srcdir_defaulted=no
  1222. fi
  1223. if test ! -r "$srcdir/$ac_unique_file"; then
  1224. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1225. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1226. fi
  1227. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1228. ac_abs_confdir=`(
  1229. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1230. pwd)`
  1231. # When building in place, set srcdir=.
  1232. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1233. srcdir=.
  1234. fi
  1235. # Remove unnecessary trailing slashes from srcdir.
  1236. # Double slashes in file names in object file debugging info
  1237. # mess up M-x gdb in Emacs.
  1238. case $srcdir in
  1239. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1240. esac
  1241. case $srcdir in
  1242. *" "*)
  1243. as_fn_error "path to source, $srcdir, contains spaces"
  1244. ;;
  1245. esac
  1246. ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
  1247. for ac_var in $ac_precious_vars; do
  1248. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1249. eval ac_env_${ac_var}_value=\$${ac_var}
  1250. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1251. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1252. done
  1253. #
  1254. # Report the --help message.
  1255. #
  1256. if test "$ac_init_help" = "long"; then
  1257. # Omit some internal or obsolete options to make the list less imposing.
  1258. # This message is too long to be a string in the A/UX 3.1 sh.
  1259. cat <<_ACEOF
  1260. \`configure' configures this package to adapt to many kinds of systems.
  1261. Usage: $0 [OPTION]... [VAR=VALUE]...
  1262. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1263. VAR=VALUE. See below for descriptions of some of the useful variables.
  1264. Defaults for the options are specified in brackets.
  1265. Configuration:
  1266. -h, --help display this help and exit
  1267. --help=short display options specific to this package
  1268. --help=recursive display the short help of all the included packages
  1269. -V, --version display version information and exit
  1270. -q, --quiet, --silent do not print \`checking...' messages
  1271. --cache-file=FILE cache test results in FILE [disabled]
  1272. -C, --config-cache alias for \`--cache-file=config.cache'
  1273. -n, --no-create do not create output files
  1274. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1275. Installation directories:
  1276. --prefix=PREFIX install architecture-independent files in PREFIX
  1277. [$ac_default_prefix]
  1278. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1279. [PREFIX]
  1280. By default, \`make install' will install all the files in
  1281. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1282. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1283. for instance \`--prefix=\$HOME'.
  1284. For better control, use the options below.
  1285. Fine tuning of the installation directories:
  1286. --bindir=DIR user executables [EPREFIX/bin]
  1287. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1288. --libexecdir=DIR program executables [EPREFIX/libexec]
  1289. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1290. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1291. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1292. --libdir=DIR object code libraries [EPREFIX/lib]
  1293. --includedir=DIR C header files [PREFIX/include]
  1294. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1295. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1296. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1297. --infodir=DIR info documentation [DATAROOTDIR/info]
  1298. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1299. --mandir=DIR man documentation [DATAROOTDIR/man]
  1300. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1301. --htmldir=DIR html documentation [DOCDIR]
  1302. --dvidir=DIR dvi documentation [DOCDIR]
  1303. --pdfdir=DIR pdf documentation [DOCDIR]
  1304. --psdir=DIR ps documentation [DOCDIR]
  1305. _ACEOF
  1306. cat <<\_ACEOF
  1307. Program names:
  1308. --program-prefix=PREFIX prepend PREFIX to installed program names
  1309. --program-suffix=SUFFIX append SUFFIX to installed program names
  1310. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1311. System types:
  1312. --build=BUILD configure for building on BUILD [guessed]
  1313. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1314. --target=TARGET configure for building compilers for TARGET [HOST]
  1315. _ACEOF
  1316. fi
  1317. if test -n "$ac_init_help"; then
  1318. cat <<\_ACEOF
  1319. Optional Features:
  1320. --disable-option-checking ignore unrecognized --enable/--with options
  1321. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1322. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1323. --enable-gold[=ARG] build gold [ARG={default,yes,no}]
  1324. --enable-ld[=ARG] build ld [ARG={default,yes,no}]
  1325. --disable-libquadmath do not build libquadmath directory
  1326. --disable-libquadmath-support
  1327. disable libquadmath support for Fortran
  1328. --enable-libada build libada directory
  1329. --enable-libssp build libssp directory
  1330. --enable-build-with-cxx build with C++ compiler instead of C compiler
  1331. --disable-ppl-version-check
  1332. disable check for PPL version
  1333. --enable-cloog-backend[=BACKEND]
  1334. set the CLooG BACKEND used to either isl, ppl or
  1335. ppl-legacy (default)
  1336. --disable-cloog-version-check
  1337. disable check for CLooG version
  1338. --enable-lto enable link time optimization support
  1339. --enable-stage1-languages[=all]
  1340. choose additional languages to build during stage1.
  1341. Mostly useful for compiler development
  1342. --enable-objc-gc enable use of Boehm's garbage collector with the GNU
  1343. Objective-C runtime
  1344. --enable-bootstrap enable bootstrapping [yes if native build]
  1345. --enable-serial-[{host,target,build}-]configure
  1346. force sequential configuration of sub-packages for
  1347. the host, target or build machine, or all
  1348. sub-packages
  1349. --enable-maintainer-mode
  1350. enable make rules and dependencies not useful (and
  1351. sometimes confusing) to the casual installer
  1352. --enable-stage1-checking[=all]
  1353. choose additional checking for stage1 of the
  1354. compiler
  1355. --enable-werror enable -Werror in bootstrap stage2 and later
  1356. Optional Packages:
  1357. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1358. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1359. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1360. --with-mpc=PATH specify prefix directory for installed MPC package.
  1361. Equivalent to --with-mpc-include=PATH/include plus
  1362. --with-mpc-lib=PATH/lib
  1363. --with-mpc-include=PATH specify directory for installed MPC include files
  1364. --with-mpc-lib=PATH specify directory for the installed MPC library
  1365. --with-mpfr-dir=PATH this option has been REMOVED
  1366. --with-mpfr=PATH specify prefix directory for installed MPFR package.
  1367. Equivalent to --with-mpfr-include=PATH/include plus
  1368. --with-mpfr-lib=PATH/lib
  1369. --with-mpfr-include=PATH
  1370. specify directory for installed MPFR include files
  1371. --with-mpfr-lib=PATH specify directory for the installed MPFR library
  1372. --with-gmp-dir=PATH this option has been REMOVED
  1373. --with-gmp=PATH specify prefix directory for the installed GMP
  1374. package. Equivalent to
  1375. --with-gmp-include=PATH/include plus
  1376. --with-gmp-lib=PATH/lib
  1377. --with-gmp-include=PATH specify directory for installed GMP include files
  1378. --with-gmp-lib=PATH specify directory for the installed GMP library
  1379. --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
  1380. linking with PPL
  1381. --with-stage1-ldflags=FLAGS
  1382. linker flags for stage1
  1383. --with-stage1-libs=LIBS libraries for stage1
  1384. --with-boot-libs=LIBS libraries for stage2 and later
  1385. --with-boot-ldflags=FLAGS
  1386. linker flags for stage2 and later
  1387. --with-ppl=PATH specify prefix directory for the installed PPL
  1388. package. Equivalent to
  1389. --with-ppl-include=PATH/include plus
  1390. --with-ppl-lib=PATH/lib
  1391. --with-ppl-include=PATH specify directory for installed PPL include files
  1392. --with-ppl-lib=PATH specify directory for the installed PPL library
  1393. --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
  1394. package. Equivalent to
  1395. --with-cloog-include=PATH/include plus
  1396. --with-cloog-lib=PATH/lib
  1397. --with-cloog-include=PATH
  1398. Specify directory for installed CLooG include files
  1399. --with-cloog-lib=PATH Specify the directory for the installed CLooG
  1400. library
  1401. --with-build-sysroot=SYSROOT
  1402. use sysroot as the system root during the build
  1403. --with-debug-prefix-map='A=B C=D ...'
  1404. map A to B, C to D ... in debug information
  1405. --with-build-config='NAME NAME2...'
  1406. use config/NAME.mk build configuration
  1407. --with-build-time-tools=PATH
  1408. use given path to find target tools during the build
  1409. Some influential environment variables:
  1410. CC C compiler command
  1411. CFLAGS C compiler flags
  1412. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1413. nonstandard directory <lib dir>
  1414. LIBS libraries to pass to the linker, e.g. -l<library>
  1415. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1416. you have headers in a nonstandard directory <include dir>
  1417. CXX C++ compiler command
  1418. CXXFLAGS C++ compiler flags
  1419. build_configargs
  1420. additional configure arguments for build directories
  1421. host_configargs
  1422. additional configure arguments for host directories
  1423. target_configargs
  1424. additional configure arguments for target directories
  1425. AR AR for the host
  1426. AS AS for the host
  1427. DLLTOOL DLLTOOL for the host
  1428. LD LD for the host
  1429. LIPO LIPO for the host
  1430. NM NM for the host
  1431. RANLIB RANLIB for the host
  1432. STRIP STRIP for the host
  1433. WINDRES WINDRES for the host
  1434. WINDMC WINDMC for the host
  1435. OBJCOPY OBJCOPY for the host
  1436. OBJDUMP OBJDUMP for the host
  1437. CC_FOR_TARGET
  1438. CC for the target
  1439. CXX_FOR_TARGET
  1440. CXX for the target
  1441. GCC_FOR_TARGET
  1442. GCC for the target
  1443. GCJ_FOR_TARGET
  1444. GCJ for the target
  1445. GFORTRAN_FOR_TARGET
  1446. GFORTRAN for the target
  1447. GOC_FOR_TARGET
  1448. GOC for the target
  1449. AR_FOR_TARGET
  1450. AR for the target
  1451. AS_FOR_TARGET
  1452. AS for the target
  1453. DLLTOOL_FOR_TARGET
  1454. DLLTOOL for the target
  1455. LD_FOR_TARGET
  1456. LD for the target
  1457. LIPO_FOR_TARGET
  1458. LIPO for the target
  1459. NM_FOR_TARGET
  1460. NM for the target
  1461. OBJDUMP_FOR_TARGET
  1462. OBJDUMP for the target
  1463. RANLIB_FOR_TARGET
  1464. RANLIB for the target
  1465. STRIP_FOR_TARGET
  1466. STRIP for the target
  1467. WINDRES_FOR_TARGET
  1468. WINDRES for the target
  1469. WINDMC_FOR_TARGET
  1470. WINDMC for the target
  1471. Use these variables to override the choices made by `configure' or to help
  1472. it to find libraries and programs with nonstandard names/locations.
  1473. Report bugs to the package provider.
  1474. _ACEOF
  1475. ac_status=$?
  1476. fi
  1477. if test "$ac_init_help" = "recursive"; then
  1478. # If there are subdirs, report their specific --help.
  1479. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1480. test -d "$ac_dir" ||
  1481. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1482. continue
  1483. ac_builddir=.
  1484. case "$ac_dir" in
  1485. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1486. *)
  1487. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1488. # A ".." for each directory in $ac_dir_suffix.
  1489. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1490. case $ac_top_builddir_sub in
  1491. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1492. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1493. esac ;;
  1494. esac
  1495. ac_abs_top_builddir=$ac_pwd
  1496. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1497. # for backward compatibility:
  1498. ac_top_builddir=$ac_top_build_prefix
  1499. case $srcdir in
  1500. .) # We are building in place.
  1501. ac_srcdir=.
  1502. ac_top_srcdir=$ac_top_builddir_sub
  1503. ac_abs_top_srcdir=$ac_pwd ;;
  1504. [\\/]* | ?:[\\/]* ) # Absolute name.
  1505. ac_srcdir=$srcdir$ac_dir_suffix;
  1506. ac_top_srcdir=$srcdir
  1507. ac_abs_top_srcdir=$srcdir ;;
  1508. *) # Relative name.
  1509. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1510. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1511. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1512. esac
  1513. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1514. cd "$ac_dir" || { ac_status=$?; continue; }
  1515. # Check for guested configure.
  1516. if test -f "$ac_srcdir/configure.gnu"; then
  1517. echo &&
  1518. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1519. elif test -f "$ac_srcdir/configure"; then
  1520. echo &&
  1521. $SHELL "$ac_srcdir/configure" --help=recursive
  1522. else
  1523. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1524. fi || ac_status=$?
  1525. cd "$ac_pwd" || { ac_status=$?; break; }
  1526. done
  1527. fi
  1528. test -n "$ac_init_help" && exit $ac_status
  1529. if $ac_init_version; then
  1530. cat <<\_ACEOF
  1531. configure
  1532. generated by GNU Autoconf 2.64
  1533. Copyright (C) 2009 Free Software Foundation, Inc.
  1534. This configure script is free software; the Free Software Foundation
  1535. gives unlimited permission to copy, distribute and modify it.
  1536. _ACEOF
  1537. exit
  1538. fi
  1539. ## ------------------------ ##
  1540. ## Autoconf initialization. ##
  1541. ## ------------------------ ##
  1542. # ac_fn_c_try_compile LINENO
  1543. # --------------------------
  1544. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1545. ac_fn_c_try_compile ()
  1546. {
  1547. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1548. rm -f conftest.$ac_objext
  1549. if { { ac_try="$ac_compile"
  1550. case "(($ac_try" in
  1551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1552. *) ac_try_echo=$ac_try;;
  1553. esac
  1554. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1555. $as_echo "$ac_try_echo"; } >&5
  1556. (eval "$ac_compile") 2>conftest.err
  1557. ac_status=$?
  1558. if test -s conftest.err; then
  1559. grep -v '^ *+' conftest.err >conftest.er1
  1560. cat conftest.er1 >&5
  1561. mv -f conftest.er1 conftest.err
  1562. fi
  1563. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1564. test $ac_status = 0; } && {
  1565. test -z "$ac_c_werror_flag" ||
  1566. test ! -s conftest.err
  1567. } && test -s conftest.$ac_objext; then :
  1568. ac_retval=0
  1569. else
  1570. $as_echo "$as_me: failed program was:" >&5
  1571. sed 's/^/| /' conftest.$ac_ext >&5
  1572. ac_retval=1
  1573. fi
  1574. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1575. return $ac_retval
  1576. } # ac_fn_c_try_compile
  1577. # ac_fn_cxx_try_compile LINENO
  1578. # ----------------------------
  1579. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1580. ac_fn_cxx_try_compile ()
  1581. {
  1582. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1583. rm -f conftest.$ac_objext
  1584. if { { ac_try="$ac_compile"
  1585. case "(($ac_try" in
  1586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1587. *) ac_try_echo=$ac_try;;
  1588. esac
  1589. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1590. $as_echo "$ac_try_echo"; } >&5
  1591. (eval "$ac_compile") 2>conftest.err
  1592. ac_status=$?
  1593. if test -s conftest.err; then
  1594. grep -v '^ *+' conftest.err >conftest.er1
  1595. cat conftest.er1 >&5
  1596. mv -f conftest.er1 conftest.err
  1597. fi
  1598. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1599. test $ac_status = 0; } && {
  1600. test -z "$ac_cxx_werror_flag" ||
  1601. test ! -s conftest.err
  1602. } && test -s conftest.$ac_objext; then :
  1603. ac_retval=0
  1604. else
  1605. $as_echo "$as_me: failed program was:" >&5
  1606. sed 's/^/| /' conftest.$ac_ext >&5
  1607. ac_retval=1
  1608. fi
  1609. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1610. return $ac_retval
  1611. } # ac_fn_cxx_try_compile
  1612. # ac_fn_c_try_link LINENO
  1613. # -----------------------
  1614. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1615. ac_fn_c_try_link ()
  1616. {
  1617. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1618. rm -f conftest.$ac_objext conftest$ac_exeext
  1619. if { { ac_try="$ac_link"
  1620. case "(($ac_try" in
  1621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1622. *) ac_try_echo=$ac_try;;
  1623. esac
  1624. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1625. $as_echo "$ac_try_echo"; } >&5
  1626. (eval "$ac_link") 2>conftest.err
  1627. ac_status=$?
  1628. if test -s conftest.err; then
  1629. grep -v '^ *+' conftest.err >conftest.er1
  1630. cat conftest.er1 >&5
  1631. mv -f conftest.er1 conftest.err
  1632. fi
  1633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1634. test $ac_status = 0; } && {
  1635. test -z "$ac_c_werror_flag" ||
  1636. test ! -s conftest.err
  1637. } && test -s conftest$ac_exeext && {
  1638. test "$cross_compiling" = yes ||
  1639. $as_test_x conftest$ac_exeext
  1640. }; then :
  1641. ac_retval=0
  1642. else
  1643. $as_echo "$as_me: failed program was:" >&5
  1644. sed 's/^/| /' conftest.$ac_ext >&5
  1645. ac_retval=1
  1646. fi
  1647. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1648. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1649. # interfere with the next link command; also delete a directory that is
  1650. # left behind by Apple's compiler. We do this before executing the actions.
  1651. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1652. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1653. return $ac_retval
  1654. } # ac_fn_c_try_link
  1655. cat >config.log <<_ACEOF
  1656. This file contains any messages produced by compilers while
  1657. running configure, to aid debugging if configure makes a mistake.
  1658. It was created by $as_me, which was
  1659. generated by GNU Autoconf 2.64. Invocation command line was
  1660. $ $0 $@
  1661. _ACEOF
  1662. exec 5>>config.log
  1663. {
  1664. cat <<_ASUNAME
  1665. ## --------- ##
  1666. ## Platform. ##
  1667. ## --------- ##
  1668. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1669. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1670. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1671. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1672. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1673. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1674. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1675. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1676. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1677. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1678. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1679. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1680. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1681. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1682. _ASUNAME
  1683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1684. for as_dir in $PATH
  1685. do
  1686. IFS=$as_save_IFS
  1687. test -z "$as_dir" && as_dir=.
  1688. $as_echo "PATH: $as_dir"
  1689. done
  1690. IFS=$as_save_IFS
  1691. } >&5
  1692. cat >&5 <<_ACEOF
  1693. ## ----------- ##
  1694. ## Core tests. ##
  1695. ## ----------- ##
  1696. _ACEOF
  1697. # Keep a trace of the command line.
  1698. # Strip out --no-create and --no-recursion so they do not pile up.
  1699. # Strip out --silent because we don't want to record it for future runs.
  1700. # Also quote any args containing shell meta-characters.
  1701. # Make two passes to allow for proper duplicate-argument suppression.
  1702. ac_configure_args=
  1703. ac_configure_args0=
  1704. ac_configure_args1=
  1705. ac_must_keep_next=false
  1706. for ac_pass in 1 2
  1707. do
  1708. for ac_arg
  1709. do
  1710. case $ac_arg in
  1711. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1712. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1713. | -silent | --silent | --silen | --sile | --sil)
  1714. continue ;;
  1715. *\'*)
  1716. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1717. esac
  1718. case $ac_pass in
  1719. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1720. 2)
  1721. as_fn_append ac_configure_args1 " '$ac_arg'"
  1722. if test $ac_must_keep_next = true; then
  1723. ac_must_keep_next=false # Got value, back to normal.
  1724. else
  1725. case $ac_arg in
  1726. *=* | --config-cache | -C | -disable-* | --disable-* \
  1727. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1728. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1729. | -with-* | --with-* | -without-* | --without-* | --x)
  1730. case "$ac_configure_args0 " in
  1731. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1732. esac
  1733. ;;
  1734. -* ) ac_must_keep_next=true ;;
  1735. esac
  1736. fi
  1737. as_fn_append ac_configure_args " '$ac_arg'"
  1738. ;;
  1739. esac
  1740. done
  1741. done
  1742. { ac_configure_args0=; unset ac_configure_args0;}
  1743. { ac_configure_args1=; unset ac_configure_args1;}
  1744. # When interrupted or exit'd, cleanup temporary files, and complete
  1745. # config.log. We remove comments because anyway the quotes in there
  1746. # would cause problems or look ugly.
  1747. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1748. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1749. trap 'exit_status=$?
  1750. # Save into config.log some information that might help in debugging.
  1751. {
  1752. echo
  1753. cat <<\_ASBOX
  1754. ## ---------------- ##
  1755. ## Cache variables. ##
  1756. ## ---------------- ##
  1757. _ASBOX
  1758. echo
  1759. # The following way of writing the cache mishandles newlines in values,
  1760. (
  1761. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1762. eval ac_val=\$$ac_var
  1763. case $ac_val in #(
  1764. *${as_nl}*)
  1765. case $ac_var in #(
  1766. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1767. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1768. esac
  1769. case $ac_var in #(
  1770. _ | IFS | as_nl) ;; #(
  1771. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1772. *) { eval $ac_var=; unset $ac_var;} ;;
  1773. esac ;;
  1774. esac
  1775. done
  1776. (set) 2>&1 |
  1777. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1778. *${as_nl}ac_space=\ *)
  1779. sed -n \
  1780. "s/'\''/'\''\\\\'\'''\''/g;
  1781. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1782. ;; #(
  1783. *)
  1784. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1785. ;;
  1786. esac |
  1787. sort
  1788. )
  1789. echo
  1790. cat <<\_ASBOX
  1791. ## ----------------- ##
  1792. ## Output variables. ##
  1793. ## ----------------- ##
  1794. _ASBOX
  1795. echo
  1796. for ac_var in $ac_subst_vars
  1797. do
  1798. eval ac_val=\$$ac_var
  1799. case $ac_val in
  1800. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1801. esac
  1802. $as_echo "$ac_var='\''$ac_val'\''"
  1803. done | sort
  1804. echo
  1805. if test -n "$ac_subst_files"; then
  1806. cat <<\_ASBOX
  1807. ## ------------------- ##
  1808. ## File substitutions. ##
  1809. ## ------------------- ##
  1810. _ASBOX
  1811. echo
  1812. for ac_var in $ac_subst_files
  1813. do
  1814. eval ac_val=\$$ac_var
  1815. case $ac_val in
  1816. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1817. esac
  1818. $as_echo "$ac_var='\''$ac_val'\''"
  1819. done | sort
  1820. echo
  1821. fi
  1822. if test -s confdefs.h; then
  1823. cat <<\_ASBOX
  1824. ## ----------- ##
  1825. ## confdefs.h. ##
  1826. ## ----------- ##
  1827. _ASBOX
  1828. echo
  1829. cat confdefs.h
  1830. echo
  1831. fi
  1832. test "$ac_signal" != 0 &&
  1833. $as_echo "$as_me: caught signal $ac_signal"
  1834. $as_echo "$as_me: exit $exit_status"
  1835. } >&5
  1836. rm -f core *.core core.conftest.* &&
  1837. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1838. exit $exit_status
  1839. ' 0
  1840. for ac_signal in 1 2 13 15; do
  1841. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1842. done
  1843. ac_signal=0
  1844. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1845. rm -f -r conftest* confdefs.h
  1846. $as_echo "/* confdefs.h */" > confdefs.h
  1847. # Predefined preprocessor variables.
  1848. cat >>confdefs.h <<_ACEOF
  1849. #define PACKAGE_NAME "$PACKAGE_NAME"
  1850. _ACEOF
  1851. cat >>confdefs.h <<_ACEOF
  1852. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1853. _ACEOF
  1854. cat >>confdefs.h <<_ACEOF
  1855. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1856. _ACEOF
  1857. cat >>confdefs.h <<_ACEOF
  1858. #define PACKAGE_STRING "$PACKAGE_STRING"
  1859. _ACEOF
  1860. cat >>confdefs.h <<_ACEOF
  1861. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1862. _ACEOF
  1863. cat >>confdefs.h <<_ACEOF
  1864. #define PACKAGE_URL "$PACKAGE_URL"
  1865. _ACEOF
  1866. # Let the site file select an alternate cache file if it wants to.
  1867. # Prefer an explicitly selected file to automatically selected ones.
  1868. ac_site_file1=NONE
  1869. ac_site_file2=NONE
  1870. if test -n "$CONFIG_SITE"; then
  1871. ac_site_file1=$CONFIG_SITE
  1872. elif test "x$prefix" != xNONE; then
  1873. ac_site_file1=$prefix/share/config.site
  1874. ac_site_file2=$prefix/etc/config.site
  1875. else
  1876. ac_site_file1=$ac_default_prefix/share/config.site
  1877. ac_site_file2=$ac_default_prefix/etc/config.site
  1878. fi
  1879. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1880. do
  1881. test "x$ac_site_file" = xNONE && continue
  1882. if test -r "$ac_site_file"; then
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1884. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1885. sed 's/^/| /' "$ac_site_file" >&5
  1886. . "$ac_site_file"
  1887. fi
  1888. done
  1889. if test -r "$cache_file"; then
  1890. # Some versions of bash will fail to source /dev/null (special
  1891. # files actually), so we avoid doing that.
  1892. if test -f "$cache_file"; then
  1893. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1894. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1895. case $cache_file in
  1896. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1897. *) . "./$cache_file";;
  1898. esac
  1899. fi
  1900. else
  1901. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1902. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1903. >$cache_file
  1904. fi
  1905. # Check that the precious variables saved in the cache have kept the same
  1906. # value.
  1907. ac_cache_corrupted=false
  1908. for ac_var in $ac_precious_vars; do
  1909. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1910. eval ac_new_set=\$ac_env_${ac_var}_set
  1911. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1912. eval ac_new_val=\$ac_env_${ac_var}_value
  1913. case $ac_old_set,$ac_new_set in
  1914. set,)
  1915. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1916. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1917. ac_cache_corrupted=: ;;
  1918. ,set)
  1919. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1920. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1921. ac_cache_corrupted=: ;;
  1922. ,);;
  1923. *)
  1924. if test "x$ac_old_val" != "x$ac_new_val"; then
  1925. # differences in whitespace do not lead to failure.
  1926. ac_old_val_w=`echo x $ac_old_val`
  1927. ac_new_val_w=`echo x $ac_new_val`
  1928. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1929. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1930. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1931. ac_cache_corrupted=:
  1932. else
  1933. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1934. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1935. eval $ac_var=\$ac_old_val
  1936. fi
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1938. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1940. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1941. fi;;
  1942. esac
  1943. # Pass precious variables to config.status.
  1944. if test "$ac_new_set" = set; then
  1945. case $ac_new_val in
  1946. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1947. *) ac_arg=$ac_var=$ac_new_val ;;
  1948. esac
  1949. case " $ac_configure_args " in
  1950. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1951. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1952. esac
  1953. fi
  1954. done
  1955. if $ac_cache_corrupted; then
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1957. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1959. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1960. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1961. fi
  1962. ## -------------------- ##
  1963. ## Main body of script. ##
  1964. ## -------------------- ##
  1965. ac_ext=c
  1966. ac_cpp='$CPP $CPPFLAGS'
  1967. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1968. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1969. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1970. progname=$0
  1971. # if PWD already has a value, it is probably wrong.
  1972. if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
  1973. # Export original configure arguments for use by sub-configures.
  1974. # Quote arguments with shell meta charatcers.
  1975. TOPLEVEL_CONFIGURE_ARGUMENTS=
  1976. set -- "$progname" "$@"
  1977. for ac_arg
  1978. do
  1979. case "$ac_arg" in
  1980. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
  1981. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  1982. # if the argument is of the form -foo=baz, quote the baz part only
  1983. ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
  1984. *) ;;
  1985. esac
  1986. # Add the quoted argument to the list.
  1987. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
  1988. done
  1989. if test "$silent" = yes; then
  1990. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
  1991. fi
  1992. # Remove the initial space we just introduced and, as these will be
  1993. # expanded by make, quote '$'.
  1994. TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  1995. # Find the build, host, and target systems.
  1996. ac_aux_dir=
  1997. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1998. for ac_t in install-sh install.sh shtool; do
  1999. if test -f "$ac_dir/$ac_t"; then
  2000. ac_aux_dir=$ac_dir
  2001. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2002. break 2
  2003. fi
  2004. done
  2005. done
  2006. if test -z "$ac_aux_dir"; then
  2007. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2008. fi
  2009. # These three variables are undocumented and unsupported,
  2010. # and are intended to be withdrawn in a future Autoconf release.
  2011. # They can cause serious problems if a builder's source tree is in a directory
  2012. # whose full name contains unusual characters.
  2013. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2014. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2015. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2016. # Make sure we can run config.sub.
  2017. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2018. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2020. $as_echo_n "checking build system type... " >&6; }
  2021. if test "${ac_cv_build+set}" = set; then :
  2022. $as_echo_n "(cached) " >&6
  2023. else
  2024. ac_build_alias=$build_alias
  2025. test "x$ac_build_alias" = x &&
  2026. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2027. test "x$ac_build_alias" = x &&
  2028. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2029. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2030. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2031. fi
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2033. $as_echo "$ac_cv_build" >&6; }
  2034. case $ac_cv_build in
  2035. *-*-*) ;;
  2036. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2037. esac
  2038. build=$ac_cv_build
  2039. ac_save_IFS=$IFS; IFS='-'
  2040. set x $ac_cv_build
  2041. shift
  2042. build_cpu=$1
  2043. build_vendor=$2
  2044. shift; shift
  2045. # Remember, the first character of IFS is used to create $*,
  2046. # except with old shells:
  2047. build_os=$*
  2048. IFS=$ac_save_IFS
  2049. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2050. case ${build_alias} in
  2051. "") build_noncanonical=${build} ;;
  2052. *) build_noncanonical=${build_alias} ;;
  2053. esac
  2054. case ${host_alias} in
  2055. "") host_noncanonical=${build_noncanonical} ;;
  2056. *) host_noncanonical=${host_alias} ;;
  2057. esac
  2058. case ${target_alias} in
  2059. "") target_noncanonical=${host_noncanonical} ;;
  2060. *) target_noncanonical=${target_alias} ;;
  2061. esac
  2062. test "$host_noncanonical" = "$target_noncanonical" &&
  2063. test "$program_prefix$program_suffix$program_transform_name" = \
  2064. NONENONEs,x,x, &&
  2065. program_transform_name=s,y,y,
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2067. $as_echo_n "checking host system type... " >&6; }
  2068. if test "${ac_cv_host+set}" = set; then :
  2069. $as_echo_n "(cached) " >&6
  2070. else
  2071. if test "x$host_alias" = x; then
  2072. ac_cv_host=$ac_cv_build
  2073. else
  2074. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2075. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2076. fi
  2077. fi
  2078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2079. $as_echo "$ac_cv_host" >&6; }
  2080. case $ac_cv_host in
  2081. *-*-*) ;;
  2082. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2083. esac
  2084. host=$ac_cv_host
  2085. ac_save_IFS=$IFS; IFS='-'
  2086. set x $ac_cv_host
  2087. shift
  2088. host_cpu=$1
  2089. host_vendor=$2
  2090. shift; shift
  2091. # Remember, the first character of IFS is used to create $*,
  2092. # except with old shells:
  2093. host_os=$*
  2094. IFS=$ac_save_IFS
  2095. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2097. $as_echo_n "checking target system type... " >&6; }
  2098. if test "${ac_cv_target+set}" = set; then :
  2099. $as_echo_n "(cached) " >&6
  2100. else
  2101. if test "x$target_alias" = x; then
  2102. ac_cv_target=$ac_cv_host
  2103. else
  2104. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2105. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2106. fi
  2107. fi
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2109. $as_echo "$ac_cv_target" >&6; }
  2110. case $ac_cv_target in
  2111. *-*-*) ;;
  2112. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2113. esac
  2114. target=$ac_cv_target
  2115. ac_save_IFS=$IFS; IFS='-'
  2116. set x $ac_cv_target
  2117. shift
  2118. target_cpu=$1
  2119. target_vendor=$2
  2120. shift; shift
  2121. # Remember, the first character of IFS is used to create $*,
  2122. # except with old shells:
  2123. target_os=$*
  2124. IFS=$ac_save_IFS
  2125. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2126. # The aliases save the names the user supplied, while $host etc.
  2127. # will get canonicalized.
  2128. test -n "$target_alias" &&
  2129. test "$program_prefix$program_suffix$program_transform_name" = \
  2130. NONENONEs,x,x, &&
  2131. program_prefix=${target_alias}-
  2132. test "$program_prefix" != NONE &&
  2133. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2134. # Use a double $ so make ignores it.
  2135. test "$program_suffix" != NONE &&
  2136. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2137. # Double any \ or $.
  2138. # By default was `s,x,x', remove it if useless.
  2139. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2140. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2141. # Get 'install' or 'install-sh' and its variants.
  2142. # Find a good install program. We prefer a C program (faster),
  2143. # so one script is as good as another. But avoid the broken or
  2144. # incompatible versions:
  2145. # SysV /etc/install, /usr/sbin/install
  2146. # SunOS /usr/etc/install
  2147. # IRIX /sbin/install
  2148. # AIX /bin/install
  2149. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2150. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2151. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2152. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2153. # OS/2's system install, which has a completely different semantic
  2154. # ./install, which can be erroneously created by make from ./install.sh.
  2155. # Reject install programs that cannot install multiple files.
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2157. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2158. if test -z "$INSTALL"; then
  2159. if test "${ac_cv_path_install+set}" = set; then :
  2160. $as_echo_n "(cached) " >&6
  2161. else
  2162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2163. for as_dir in $PATH
  2164. do
  2165. IFS=$as_save_IFS
  2166. test -z "$as_dir" && as_dir=.
  2167. # Account for people who put trailing slashes in PATH elements.
  2168. case $as_dir/ in #((
  2169. ./ | .// | /[cC]/* | \
  2170. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2171. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2172. /usr/ucb/* ) ;;
  2173. *)
  2174. # OSF1 and SCO ODT 3.0 have their own names for install.
  2175. # Don't use installbsd from OSF since it installs stuff as root
  2176. # by default.
  2177. for ac_prog in ginstall scoinst install; do
  2178. for ac_exec_ext in '' $ac_executable_extensions; do
  2179. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2180. if test $ac_prog = install &&
  2181. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2182. # AIX install. It has an incompatible calling convention.
  2183. :
  2184. elif test $ac_prog = install &&
  2185. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2186. # program-specific install script used by HP pwplus--don't use.
  2187. :
  2188. else
  2189. rm -rf conftest.one conftest.two conftest.dir
  2190. echo one > conftest.one
  2191. echo two > conftest.two
  2192. mkdir conftest.dir
  2193. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2194. test -s conftest.one && test -s conftest.two &&
  2195. test -s conftest.dir/conftest.one &&
  2196. test -s conftest.dir/conftest.two
  2197. then
  2198. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2199. break 3
  2200. fi
  2201. fi
  2202. fi
  2203. done
  2204. done
  2205. ;;
  2206. esac
  2207. done
  2208. IFS=$as_save_IFS
  2209. rm -rf conftest.one conftest.two conftest.dir
  2210. fi
  2211. if test "${ac_cv_path_install+set}" = set; then
  2212. INSTALL=$ac_cv_path_install
  2213. else
  2214. # As a last resort, use the slow shell script. Don't cache a
  2215. # value for INSTALL within a source directory, because that will
  2216. # break other packages using the cache if that directory is
  2217. # removed, or if the value is a relative name.
  2218. INSTALL=$ac_install_sh
  2219. fi
  2220. fi
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2222. $as_echo "$INSTALL" >&6; }
  2223. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2224. # It thinks the first close brace ends the variable substitution.
  2225. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2226. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2227. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
  2229. $as_echo_n "checking whether ln works... " >&6; }
  2230. if test "${acx_cv_prog_LN+set}" = set; then :
  2231. $as_echo_n "(cached) " >&6
  2232. else
  2233. rm -f conftestdata_t
  2234. echo >conftestdata_f
  2235. if ln conftestdata_f conftestdata_t 2>/dev/null
  2236. then
  2237. acx_cv_prog_LN=ln
  2238. else
  2239. acx_cv_prog_LN=no
  2240. fi
  2241. rm -f conftestdata_f conftestdata_t
  2242. fi
  2243. if test $acx_cv_prog_LN = no; then
  2244. LN="cp"
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
  2246. $as_echo "no, using $LN" >&6; }
  2247. else
  2248. LN="$acx_cv_prog_LN"
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2250. $as_echo "yes" >&6; }
  2251. fi
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  2253. $as_echo_n "checking whether ln -s works... " >&6; }
  2254. LN_S=$as_ln_s
  2255. if test "$LN_S" = "ln -s"; then
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2257. $as_echo "yes" >&6; }
  2258. else
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  2260. $as_echo "no, using $LN_S" >&6; }
  2261. fi
  2262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  2263. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  2264. if test "${ac_cv_path_SED+set}" = set; then :
  2265. $as_echo_n "(cached) " >&6
  2266. else
  2267. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  2268. for ac_i in 1 2 3 4 5 6 7; do
  2269. ac_script="$ac_script$as_nl$ac_script"
  2270. done
  2271. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  2272. { ac_script=; unset ac_script;}
  2273. if test -z "$SED"; then
  2274. ac_path_SED_found=false
  2275. # Loop through the user's path and test for each of PROGNAME-LIST
  2276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2277. for as_dir in $PATH
  2278. do
  2279. IFS=$as_save_IFS
  2280. test -z "$as_dir" && as_dir=.
  2281. for ac_prog in sed gsed; do
  2282. for ac_exec_ext in '' $ac_executable_extensions; do
  2283. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  2284. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  2285. # Check for GNU ac_path_SED and select it if it is found.
  2286. # Check for GNU $ac_path_SED
  2287. case `"$ac_path_SED" --version 2>&1` in
  2288. *GNU*)
  2289. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  2290. *)
  2291. ac_count=0
  2292. $as_echo_n 0123456789 >"conftest.in"
  2293. while :
  2294. do
  2295. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2296. mv "conftest.tmp" "conftest.in"
  2297. cp "conftest.in" "conftest.nl"
  2298. $as_echo '' >> "conftest.nl"
  2299. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2300. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2301. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2302. if test $ac_count -gt ${ac_path_SED_max-0}; then
  2303. # Best one so far, save it but keep looking for a better one
  2304. ac_cv_path_SED="$ac_path_SED"
  2305. ac_path_SED_max=$ac_count
  2306. fi
  2307. # 10*(2^10) chars as input seems more than enough
  2308. test $ac_count -gt 10 && break
  2309. done
  2310. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2311. esac
  2312. $ac_path_SED_found && break 3
  2313. done
  2314. done
  2315. done
  2316. IFS=$as_save_IFS
  2317. if test -z "$ac_cv_path_SED"; then
  2318. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  2319. fi
  2320. else
  2321. ac_cv_path_SED=$SED
  2322. fi
  2323. fi
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  2325. $as_echo "$ac_cv_path_SED" >&6; }
  2326. SED="$ac_cv_path_SED"
  2327. rm -f conftest.sed
  2328. for ac_prog in gawk mawk nawk awk
  2329. do
  2330. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2331. set dummy $ac_prog; ac_word=$2
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2333. $as_echo_n "checking for $ac_word... " >&6; }
  2334. if test "${ac_cv_prog_AWK+set}" = set; then :
  2335. $as_echo_n "(cached) " >&6
  2336. else
  2337. if test -n "$AWK"; then
  2338. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2339. else
  2340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2341. for as_dir in $PATH
  2342. do
  2343. IFS=$as_save_IFS
  2344. test -z "$as_dir" && as_dir=.
  2345. for ac_exec_ext in '' $ac_executable_extensions; do
  2346. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2347. ac_cv_prog_AWK="$ac_prog"
  2348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2349. break 2
  2350. fi
  2351. done
  2352. done
  2353. IFS=$as_save_IFS
  2354. fi
  2355. fi
  2356. AWK=$ac_cv_prog_AWK
  2357. if test -n "$AWK"; then
  2358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2359. $as_echo "$AWK" >&6; }
  2360. else
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2362. $as_echo "no" >&6; }
  2363. fi
  2364. test -n "$AWK" && break
  2365. done
  2366. srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
  2367. # We pass INSTALL explicitly to sub-makes. Make sure that it is not
  2368. # a relative path.
  2369. if test "$INSTALL" = "${srcdir}/install-sh -c"; then
  2370. INSTALL="${srcpwd}/install-sh -c"
  2371. fi
  2372. # Set srcdir to "." if that's what it is.
  2373. # This is important for multilib support.
  2374. pwd=`${PWDCMD-pwd}`
  2375. if test "${pwd}" = "${srcpwd}" ; then
  2376. srcdir=.
  2377. fi
  2378. topsrcdir=$srcpwd
  2379. extra_host_args=
  2380. ### To add a new directory to the tree, first choose whether it is a target
  2381. ### or a host dependent tool. Then put it into the appropriate list
  2382. ### (library or tools, host or target), doing a dependency sort.
  2383. # Subdirs will be configured in the order listed in build_configdirs,
  2384. # configdirs, or target_configdirs; see the serialization section below.
  2385. # Dependency sorting is only needed when *configuration* must be done in
  2386. # a particular order. In all cases a dependency should be specified in
  2387. # the Makefile, whether or not it's implicitly specified here.
  2388. # Double entries in build_configdirs, configdirs, or target_configdirs may
  2389. # cause circular dependencies and break everything horribly.
  2390. # these library is used by various programs built for the build
  2391. # environment
  2392. #
  2393. build_libs="build-libiberty"
  2394. # these tools are built for the build environment
  2395. build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
  2396. # these libraries are used by various programs built for the host environment
  2397. #
  2398. host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
  2399. # these tools are built for the host environment
  2400. # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
  2401. # know that we are building the simulator.
  2402. # binutils, gas and ld appear in that order because it makes sense to run
  2403. # "make check" in that particular order.
  2404. # If --enable-gold is used, "gold" may replace "ld".
  2405. host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
  2406. # libgcj represents the runtime libraries only used by gcj.
  2407. libgcj="target-libffi \
  2408. target-zlib \
  2409. target-libjava"
  2410. # these libraries are built for the target environment, and are built after
  2411. # the host libraries and the host tools (which may be a cross compiler)
  2412. #
  2413. target_libraries="target-libgcc \
  2414. target-libiberty \
  2415. target-libgloss \
  2416. target-newlib \
  2417. target-libgomp \
  2418. target-libstdc++-v3 \
  2419. target-libmudflap \
  2420. target-libssp \
  2421. target-libquadmath \
  2422. target-libgfortran \
  2423. target-boehm-gc \
  2424. ${libgcj} \
  2425. target-libobjc \
  2426. target-libada \
  2427. target-libgo"
  2428. # these tools are built using the target libraries, and are intended to
  2429. # run only in the target environment
  2430. #
  2431. # note: any program that *uses* libraries that are in the "target_libraries"
  2432. # list belongs in this list.
  2433. #
  2434. target_tools="target-rda"
  2435. ################################################################################
  2436. ## All tools belong in one of the four categories, and are assigned above
  2437. ## We assign ${configdirs} this way to remove all embedded newlines. This
  2438. ## is important because configure will choke if they ever get through.
  2439. ## ${configdirs} is directories we build using the host tools.
  2440. ## ${target_configdirs} is directories we build using the target tools.
  2441. configdirs=`echo ${host_libs} ${host_tools}`
  2442. target_configdirs=`echo ${target_libraries} ${target_tools}`
  2443. build_configdirs=`echo ${build_libs} ${build_tools}`
  2444. ################################################################################
  2445. srcname="gnu development package"
  2446. # This gets set non-empty for some net releases of packages.
  2447. appdirs=""
  2448. # Define is_cross_compiler to save on calls to 'test'.
  2449. is_cross_compiler=
  2450. if test x"${host}" = x"${target}" ; then
  2451. is_cross_compiler=no
  2452. else
  2453. is_cross_compiler=yes
  2454. fi
  2455. # Find the build and target subdir names.
  2456. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2457. # have matching libraries, they should use host libraries: Makefile.tpl
  2458. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2459. # However, they still use the build modules, because the corresponding
  2460. # host modules (e.g. bison) are only built for the host when bootstrap
  2461. # finishes. So:
  2462. # - build_subdir is where we find build modules, and never changes.
  2463. # - build_libsubdir is where we find build libraries, and can be overridden.
  2464. # Prefix 'build-' so this never conflicts with target_subdir.
  2465. build_subdir="build-${build_noncanonical}"
  2466. # Check whether --with-build-libsubdir was given.
  2467. if test "${with_build_libsubdir+set}" = set; then :
  2468. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2469. else
  2470. build_libsubdir="$build_subdir"
  2471. fi
  2472. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2473. if ( test $srcdir = . && test -d gcc ) \
  2474. || test -d $srcdir/../host-${host_noncanonical}; then
  2475. host_subdir="host-${host_noncanonical}"
  2476. else
  2477. host_subdir=.
  2478. fi
  2479. # No prefix.
  2480. target_subdir=${target_noncanonical}
  2481. # Be sure to cover against remnants of an in-tree build.
  2482. if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
  2483. as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
  2484. Use a pristine source tree when building in a separate tree" "$LINENO" 5
  2485. fi
  2486. # Skipdirs are removed silently.
  2487. skipdirs=
  2488. # Noconfigdirs are removed loudly.
  2489. noconfigdirs=""
  2490. use_gnu_ld=
  2491. # Make sure we don't let GNU ld be added if we didn't want it.
  2492. if test x$with_gnu_ld = xno ; then
  2493. use_gnu_ld=no
  2494. noconfigdirs="$noconfigdirs ld gold"
  2495. fi
  2496. use_gnu_as=
  2497. # Make sure we don't let GNU as be added if we didn't want it.
  2498. if test x$with_gnu_as = xno ; then
  2499. use_gnu_as=no
  2500. noconfigdirs="$noconfigdirs gas"
  2501. fi
  2502. use_included_zlib=
  2503. # Make sure we don't let ZLIB be added if we didn't want it.
  2504. if test x$with_system_zlib = xyes ; then
  2505. use_included_zlib=no
  2506. noconfigdirs="$noconfigdirs zlib"
  2507. fi
  2508. # some tools are so dependent upon X11 that if we're not building with X,
  2509. # it's not even worth trying to configure, much less build, that tool.
  2510. case ${with_x} in
  2511. yes | "") ;; # the default value for this tree is that X11 is available
  2512. no)
  2513. skipdirs="${skipdirs} tk itcl libgui"
  2514. # We won't be able to build gdbtk without X.
  2515. enable_gdbtk=no
  2516. ;;
  2517. *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
  2518. esac
  2519. # Some are only suitable for cross toolchains.
  2520. # Remove these if host=target.
  2521. cross_only="target-libgloss target-newlib target-opcodes"
  2522. case $is_cross_compiler in
  2523. no) skipdirs="${skipdirs} ${cross_only}" ;;
  2524. esac
  2525. # If both --with-headers and --with-libs are specified, default to
  2526. # --without-newlib.
  2527. if test x"${with_headers}" != x && test x"${with_headers}" != xno \
  2528. && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  2529. if test x"${with_newlib}" = x ; then
  2530. with_newlib=no
  2531. fi
  2532. fi
  2533. # Recognize --with-newlib/--without-newlib.
  2534. case ${with_newlib} in
  2535. no) skipdirs="${skipdirs} target-newlib" ;;
  2536. yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
  2537. esac
  2538. # Handle --enable-gold, --enable-ld.
  2539. # --disable-gold [--enable-ld]
  2540. # Build only ld. Default option.
  2541. # --enable-gold [--enable-ld]
  2542. # Build both gold and ld. Install gold as "ld.gold", install ld
  2543. # as "ld.bfd" and "ld".
  2544. # --enable-gold=default [--enable-ld]
  2545. # Build both gold and ld. Install gold as "ld.gold" and "ld",
  2546. # install ld as "ld.bfd".
  2547. # --enable-gold[=default] --disable-ld
  2548. # Build only gold, which is then installed as both "ld.gold" and "ld".
  2549. # --enable-gold --enable-ld=default
  2550. # Build both gold (installed as "ld.gold") and ld (installed as "ld"
  2551. # and ld.bfd).
  2552. # In other words, ld is default
  2553. # --enable-gold=default --enable-ld=default
  2554. # Error.
  2555. default_ld=
  2556. # Check whether --enable-gold was given.
  2557. if test "${enable_gold+set}" = set; then :
  2558. enableval=$enable_gold; ENABLE_GOLD=$enableval
  2559. else
  2560. ENABLE_GOLD=no
  2561. fi
  2562. case "${ENABLE_GOLD}" in
  2563. yes|default)
  2564. # Check for ELF target.
  2565. is_elf=no
  2566. case "${target}" in
  2567. *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
  2568. | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
  2569. | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
  2570. | *-*-solaris2* | *-*-nto*)
  2571. case "${target}" in
  2572. *-*-linux*aout* | *-*-linux*oldld*)
  2573. ;;
  2574. *)
  2575. is_elf=yes
  2576. ;;
  2577. esac
  2578. esac
  2579. if test "$is_elf" = "yes"; then
  2580. # Check for target supported by gold.
  2581. case "${target}" in
  2582. i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
  2583. configdirs="$configdirs gold"
  2584. if test x${ENABLE_GOLD} = xdefault; then
  2585. default_ld=gold
  2586. fi
  2587. ENABLE_GOLD=yes
  2588. ;;
  2589. esac
  2590. fi
  2591. ;;
  2592. no)
  2593. ;;
  2594. *)
  2595. as_fn_error "invalid --enable-gold argument" "$LINENO" 5
  2596. ;;
  2597. esac
  2598. # Check whether --enable-ld was given.
  2599. if test "${enable_ld+set}" = set; then :
  2600. enableval=$enable_ld; ENABLE_LD=$enableval
  2601. else
  2602. ENABLE_LD=yes
  2603. fi
  2604. case "${ENABLE_LD}" in
  2605. default)
  2606. if test x${default_ld} != x; then
  2607. as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
  2608. fi
  2609. ;;
  2610. yes)
  2611. ;;
  2612. no)
  2613. if test x${ENABLE_GOLD} != xyes; then
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
  2615. $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
  2616. fi
  2617. configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
  2618. ;;
  2619. *)
  2620. as_fn_error "invalid --enable-ld argument" "$LINENO" 5
  2621. ;;
  2622. esac
  2623. # Configure extra directories which are host specific
  2624. case "${host}" in
  2625. *-cygwin*)
  2626. configdirs="$configdirs libtermcap" ;;
  2627. esac
  2628. # A target can indicate whether a language isn't supported for some reason.
  2629. # Only spaces may be used in this macro; not newlines or tabs.
  2630. unsupported_languages=
  2631. # Remove more programs from consideration, based on the host or
  2632. # target this usually means that a port of the program doesn't
  2633. # exist yet.
  2634. case "${host}" in
  2635. i[3456789]86-*-msdosdjgpp*)
  2636. noconfigdirs="$noconfigdirs tcl tk itcl"
  2637. ;;
  2638. esac
  2639. # Check whether --enable-libquadmath was given.
  2640. if test "${enable_libquadmath+set}" = set; then :
  2641. enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
  2642. else
  2643. ENABLE_LIBQUADMATH=yes
  2644. fi
  2645. if test "${ENABLE_LIBQUADMATH}" = "no" ; then
  2646. noconfigdirs="$noconfigdirs target-libquadmath"
  2647. fi
  2648. # Check whether --enable-libquadmath-support was given.
  2649. if test "${enable_libquadmath_support+set}" = set; then :
  2650. enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
  2651. else
  2652. ENABLE_LIBQUADMATH_SUPPORT=yes
  2653. fi
  2654. enable_libquadmath_support=
  2655. if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
  2656. enable_libquadmath_support=no
  2657. fi
  2658. # Check whether --enable-libada was given.
  2659. if test "${enable_libada+set}" = set; then :
  2660. enableval=$enable_libada; ENABLE_LIBADA=$enableval
  2661. else
  2662. ENABLE_LIBADA=yes
  2663. fi
  2664. if test "${ENABLE_LIBADA}" != "yes" ; then
  2665. noconfigdirs="$noconfigdirs gnattools"
  2666. fi
  2667. # Check whether --enable-libssp was given.
  2668. if test "${enable_libssp+set}" = set; then :
  2669. enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
  2670. else
  2671. ENABLE_LIBSSP=yes
  2672. fi
  2673. # Save it here so that, even in case of --enable-libgcj, if the Java
  2674. # front-end isn't enabled, we still get libgcj disabled.
  2675. libgcj_saved=$libgcj
  2676. case $enable_libgcj in
  2677. yes)
  2678. # If we reset it here, it won't get added to noconfigdirs in the
  2679. # target-specific build rules, so it will be forcibly enabled
  2680. # (unless the Java language itself isn't enabled).
  2681. libgcj=
  2682. ;;
  2683. no)
  2684. # Make sure we get it printed in the list of not supported target libs.
  2685. # Don't disable libffi, though, other languages use it.
  2686. noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
  2687. # Clear libgcj_saved so that even if java is enabled libffi won't be
  2688. # built.
  2689. libgcj_saved=
  2690. ;;
  2691. esac
  2692. # Disable libmudflap on some systems.
  2693. if test x$enable_libmudflap = x ; then
  2694. case "${target}" in
  2695. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
  2696. # Enable libmudflap by default in GNU and friends.
  2697. ;;
  2698. *-*-freebsd*)
  2699. # Enable libmudflap by default in FreeBSD.
  2700. ;;
  2701. *)
  2702. # Disable it by default everywhere else.
  2703. noconfigdirs="$noconfigdirs target-libmudflap"
  2704. ;;
  2705. esac
  2706. fi
  2707. # Disable libgomp on non POSIX hosted systems.
  2708. if test x$enable_libgomp = x ; then
  2709. # Enable libgomp by default on hosted POSIX systems.
  2710. case "${target}" in
  2711. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  2712. ;;
  2713. *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
  2714. ;;
  2715. *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
  2716. ;;
  2717. *-*-darwin* | *-*-aix*)
  2718. ;;
  2719. *)
  2720. noconfigdirs="$noconfigdirs target-libgomp"
  2721. ;;
  2722. esac
  2723. fi
  2724. # Disable libssp for some systems.
  2725. case "${target}" in
  2726. avr-*-*)
  2727. # No hosted I/O support.
  2728. noconfigdirs="$noconfigdirs target-libssp"
  2729. ;;
  2730. powerpc-*-aix* | rs6000-*-aix*)
  2731. noconfigdirs="$noconfigdirs target-libssp"
  2732. ;;
  2733. esac
  2734. # Disable target libiberty for some systems.
  2735. case "${target}" in
  2736. *-*-kaos*)
  2737. # Remove unsupported stuff on all kaOS configurations.
  2738. skipdirs="target-libiberty"
  2739. ;;
  2740. *-*-netbsd*)
  2741. # Skip some stuff on all NetBSD configurations.
  2742. noconfigdirs="$noconfigdirs target-libiberty"
  2743. ;;
  2744. *-*-netware*)
  2745. noconfigdirs="$noconfigdirs target-libiberty"
  2746. ;;
  2747. *-*-rtems*)
  2748. skipdirs="${skipdirs} target-libiberty"
  2749. ;;
  2750. *-*-tpf*)
  2751. noconfigdirs="$noconfigdirs target-libiberty"
  2752. ;;
  2753. *-*-vxworks*)
  2754. noconfigdirs="$noconfigdirs target-libiberty"
  2755. ;;
  2756. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  2757. noconfigdirs="$noconfigdirs target-libiberty"
  2758. ;;
  2759. arm*-*-symbianelf*)
  2760. noconfigdirs="$noconfigdirs target-libiberty"
  2761. ;;
  2762. avr-*-*)
  2763. noconfigdirs="$noconfigdirs target-libiberty"
  2764. ;;
  2765. m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
  2766. noconfigdirs="$noconfigdirs target-libiberty"
  2767. ;;
  2768. picochip-*-*)
  2769. noconfigdirs="$noconfigdirs target-libiberty"
  2770. ;;
  2771. mips*-sde-elf*)
  2772. skipdirs="$skipdirs target-libiberty"
  2773. ;;
  2774. ip2k-*-*)
  2775. noconfigdirs="$noconfigdirs target-libiberty"
  2776. ;;
  2777. esac
  2778. # Disable libstdc++-v3 for some systems.
  2779. case "${target}" in
  2780. *-*-vxworks*)
  2781. # VxWorks uses the Dinkumware C++ library.
  2782. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  2783. ;;
  2784. arm*-wince-pe*)
  2785. # the C++ libraries don't build on top of CE's C libraries
  2786. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  2787. ;;
  2788. avr-*-*)
  2789. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  2790. ;;
  2791. esac
  2792. # Disable Fortran for some systems.
  2793. case "${target}" in
  2794. mmix-*-*)
  2795. # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
  2796. unsupported_languages="$unsupported_languages fortran"
  2797. ;;
  2798. esac
  2799. # Default libgloss CPU subdirectory.
  2800. libgloss_dir="$target_cpu"
  2801. case "${target}" in
  2802. *-*-chorusos)
  2803. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  2804. ;;
  2805. powerpc-*-darwin*)
  2806. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  2807. noconfigdirs="$noconfigdirs sim target-rda"
  2808. ;;
  2809. i[3456789]86-*-darwin*)
  2810. noconfigdirs="$noconfigdirs ld gprof"
  2811. noconfigdirs="$noconfigdirs sim target-rda"
  2812. ;;
  2813. x86_64-*-darwin[912]*)
  2814. noconfigdirs="$noconfigdirs ld gas gprof"
  2815. noconfigdirs="$noconfigdirs sim target-rda"
  2816. ;;
  2817. *-*-darwin*)
  2818. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  2819. noconfigdirs="$noconfigdirs sim target-rda"
  2820. noconfigdirs="$noconfigdirs ${libgcj}"
  2821. ;;
  2822. *-*-dragonfly*)
  2823. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  2824. ;;
  2825. *-*-freebsd*)
  2826. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  2827. if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
  2828. && test -f /usr/local/include/gmp.h; then
  2829. with_gmp=/usr/local
  2830. fi
  2831. # Skip some stuff that's unsupported on some FreeBSD configurations.
  2832. case "${target}" in
  2833. i*86-*-*) ;;
  2834. alpha*-*-*) ;;
  2835. x86_64-*-*) ;;
  2836. *)
  2837. noconfigdirs="$noconfigdirs ${libgcj}"
  2838. ;;
  2839. esac
  2840. ;;
  2841. *-*-kaos*)
  2842. # Remove unsupported stuff on all kaOS configurations.
  2843. noconfigdirs="$noconfigdirs target-libgloss"
  2844. ;;
  2845. *-*-netbsd*)
  2846. # Skip some stuff on all NetBSD configurations.
  2847. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  2848. # Skip some stuff that's unsupported on some NetBSD configurations.
  2849. case "${target}" in
  2850. i*86-*-netbsdelf*) ;;
  2851. arm*-*-netbsdelf*) ;;
  2852. *)
  2853. noconfigdirs="$noconfigdirs ${libgcj}"
  2854. ;;
  2855. esac
  2856. ;;
  2857. *-*-netware*)
  2858. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  2859. ;;
  2860. *-*-rtems*)
  2861. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  2862. ;;
  2863. # The tpf target doesn't support gdb yet.
  2864. *-*-tpf*)
  2865. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj} gdb tcl tk libgui itcl"
  2866. ;;
  2867. *-*-uclinux*)
  2868. noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
  2869. ;;
  2870. *-*-vxworks*)
  2871. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  2872. ;;
  2873. alpha*-dec-osf*)
  2874. # ld works, but does not support shared libraries.
  2875. # newlib is not 64 bit ready.
  2876. # gas doesn't generate exception information.
  2877. noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
  2878. ;;
  2879. alpha*-*-*vms*)
  2880. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
  2881. ;;
  2882. alpha*-*-linux*)
  2883. # newlib is not 64 bit ready
  2884. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  2885. ;;
  2886. alpha*-*-*)
  2887. # newlib is not 64 bit ready
  2888. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  2889. ;;
  2890. am33_2.0-*-linux*)
  2891. noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
  2892. ;;
  2893. sh-*-linux*)
  2894. noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
  2895. ;;
  2896. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  2897. noconfigdirs="$noconfigdirs ${libgcj}"
  2898. noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
  2899. noconfigdirs="$noconfigdirs target-newlib"
  2900. libgloss_dir=wince
  2901. ;;
  2902. arc-*-*)
  2903. noconfigdirs="$noconfigdirs target-libgloss"
  2904. ;;
  2905. arm-*-coff)
  2906. libgloss_dir=arm
  2907. ;;
  2908. arm-*-elf* | arm*-*-eabi* )
  2909. noconfigdirs="$noconfigdirs target-libffi"
  2910. libgloss_dir=arm
  2911. ;;
  2912. arm*-*-linux-gnueabi)
  2913. case ${with_newlib} in
  2914. no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  2915. esac
  2916. libgloss_dir=arm
  2917. ;;
  2918. arm*-*-symbianelf*)
  2919. noconfigdirs="$noconfigdirs ${libgcj}"
  2920. libgloss_dir=arm
  2921. ;;
  2922. arm-*-pe*)
  2923. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  2924. ;;
  2925. arm-*-riscix*)
  2926. noconfigdirs="$noconfigdirs ld target-libgloss"
  2927. ;;
  2928. avr-*-*)
  2929. noconfigdirs="$noconfigdirs ${libgcj}"
  2930. ;;
  2931. bfin-*-*)
  2932. unsupported_languages="$unsupported_languages java"
  2933. noconfigdirs="$noconfigdirs target-boehm-gc"
  2934. ;;
  2935. c4x-*-* | tic4x-*-*)
  2936. noconfigdirs="$noconfigdirs target-libgloss"
  2937. ;;
  2938. tic54x-*-*)
  2939. noconfigdirs="$noconfigdirs target-libgloss gdb"
  2940. ;;
  2941. cr16-*-*)
  2942. noconfigdirs="$noconfigdirs ${libgcj} gdb"
  2943. ;;
  2944. cris-*-* | crisv32-*-*)
  2945. unsupported_languages="$unsupported_languages java"
  2946. case "${target}" in
  2947. *-*-linux*)
  2948. noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
  2949. *) # See PR46792 regarding target-libffi.
  2950. noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
  2951. esac
  2952. libgloss_dir=cris
  2953. ;;
  2954. d10v-*-*)
  2955. noconfigdirs="$noconfigdirs target-libgloss"
  2956. ;;
  2957. d30v-*-*)
  2958. noconfigdirs="$noconfigdirs gdb"
  2959. ;;
  2960. fr30-*-elf*)
  2961. noconfigdirs="$noconfigdirs ${libgcj} gdb"
  2962. ;;
  2963. frv-*-*)
  2964. noconfigdirs="$noconfigdirs ${libgcj}"
  2965. ;;
  2966. moxie-*-*)
  2967. noconfigdirs="$noconfigdirs ${libgcj}"
  2968. noconfigdirs="$noconfigdirs gprof"
  2969. ;;
  2970. h8300*-*-*)
  2971. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  2972. ;;
  2973. h8500-*-*)
  2974. noconfigdirs="$noconfigdirs target-libgloss"
  2975. ;;
  2976. hppa1.1-*-osf* | hppa1.1-*-bsd* )
  2977. ;;
  2978. hppa*64*-*-linux*)
  2979. # In this case, it's because the hppa64-linux target is for
  2980. # the kernel only at this point and has no libc, and thus no
  2981. # headers, crt*.o, etc., all of which are needed by these.
  2982. noconfigdirs="$noconfigdirs target-zlib"
  2983. ;;
  2984. hppa*-*-linux*)
  2985. ;;
  2986. hppa*-*-*elf* | \
  2987. hppa*-*-lites* | \
  2988. hppa*-*-openbsd* | \
  2989. hppa*64*-*-*)
  2990. noconfigdirs="$noconfigdirs ${libgcj}"
  2991. ;;
  2992. hppa*-hp-hpux11*)
  2993. noconfigdirs="$noconfigdirs ld"
  2994. ;;
  2995. hppa*-*-pro*)
  2996. libgloss_dir=pa
  2997. ;;
  2998. hppa*-*-*)
  2999. # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
  3000. # build on HP-UX 10.20.
  3001. noconfigdirs="$noconfigdirs ld ${libgcj}"
  3002. ;;
  3003. i960-*-*)
  3004. noconfigdirs="$noconfigdirs gdb"
  3005. ;;
  3006. ia64*-*-elf*)
  3007. # No gdb support yet.
  3008. noconfigdirs="$noconfigdirs readline libgui itcl gdb"
  3009. ;;
  3010. ia64*-**-hpux*)
  3011. # No ld support yet.
  3012. noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
  3013. ;;
  3014. ia64*-*-*vms*)
  3015. # No gdb or ld support yet.
  3016. noconfigdirs="$noconfigdirs ${libgcj} readline libgui itcl gdb ld"
  3017. ;;
  3018. i[3456789]86-*-coff | i[3456789]86-*-elf)
  3019. noconfigdirs="$noconfigdirs ${libgcj}"
  3020. libgloss_dir=i386
  3021. ;;
  3022. i[3456789]86-*-linux*)
  3023. # This section makes it possible to build newlib natively on linux.
  3024. # If we are using a cross compiler then don't configure newlib.
  3025. if test x${is_cross_compiler} != xno ; then
  3026. noconfigdirs="$noconfigdirs target-newlib"
  3027. fi
  3028. noconfigdirs="$noconfigdirs target-libgloss"
  3029. # If we are not using a cross compiler, do configure newlib.
  3030. # Note however, that newlib will only be configured in this situation
  3031. # if the --with-newlib option has been given, because otherwise
  3032. # 'target-newlib' will appear in skipdirs.
  3033. ;;
  3034. i[3456789]86-w64-mingw*)
  3035. noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
  3036. ;;
  3037. i[3456789]86-*-mingw*)
  3038. target_configdirs="$target_configdirs target-winsup"
  3039. noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
  3040. ;;
  3041. x86_64-*-mingw*)
  3042. noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
  3043. ;;
  3044. *-*-cygwin*)
  3045. target_configdirs="$target_configdirs target-libtermcap target-winsup"
  3046. noconfigdirs="$noconfigdirs target-libgloss"
  3047. # always build newlib if winsup directory is present.
  3048. if test -d "$srcdir/winsup/cygwin"; then
  3049. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3050. elif test -d "$srcdir/newlib"; then
  3051. echo "Warning: winsup/cygwin is missing so newlib can't be built."
  3052. fi
  3053. ;;
  3054. i[3456789]86-*-interix* )
  3055. ;;
  3056. i[3456789]86-*-pe)
  3057. noconfigdirs="$noconfigdirs target-libgloss"
  3058. ;;
  3059. i[3456789]86-*-sco3.2v5*)
  3060. # The linker does not yet know about weak symbols in COFF,
  3061. # and is not configured to handle mixed ELF and COFF.
  3062. noconfigdirs="$noconfigdirs ld target-libgloss"
  3063. ;;
  3064. i[3456789]86-*-sco*)
  3065. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3066. ;;
  3067. i[3456789]86-*-solaris2*)
  3068. noconfigdirs="$noconfigdirs target-libgloss"
  3069. ;;
  3070. i[3456789]86-*-sysv4*)
  3071. noconfigdirs="$noconfigdirs target-libgloss"
  3072. ;;
  3073. i[3456789]86-*-beos*)
  3074. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
  3075. ;;
  3076. i[3456789]86-*-rdos*)
  3077. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
  3078. ;;
  3079. m32r-*-*)
  3080. noconfigdirs="$noconfigdirs ${libgcj}"
  3081. ;;
  3082. m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
  3083. libgloss_dir=m68hc11
  3084. ;;
  3085. m68k-*-elf*)
  3086. noconfigdirs="$noconfigdirs ${libgcj}"
  3087. ;;
  3088. m68*-*-* | fido-*-*)
  3089. libgloss_dir=m68k
  3090. ;;
  3091. mmix-*-*)
  3092. noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb"
  3093. unsupported_languages="$unsupported_languages java"
  3094. ;;
  3095. mt-*-*)
  3096. noconfigdirs="$noconfigdirs sim"
  3097. ;;
  3098. powerpc-*-aix*)
  3099. # copied from rs6000-*-* entry
  3100. noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib ${libgcj}"
  3101. ;;
  3102. powerpc*-*-winnt* | powerpc*-*-pe*)
  3103. target_configdirs="$target_configdirs target-winsup"
  3104. noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
  3105. # always build newlib.
  3106. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3107. ;;
  3108. # This is temporary until we can link against shared libraries
  3109. powerpcle-*-solaris*)
  3110. noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
  3111. libgloss_dir=rs6000
  3112. ;;
  3113. powerpc-*-beos*)
  3114. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
  3115. ;;
  3116. powerpc-*-eabi)
  3117. noconfigdirs="$noconfigdirs ${libgcj}"
  3118. libgloss_dir=rs6000
  3119. ;;
  3120. powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
  3121. libgloss_dir=rs6000
  3122. ;;
  3123. rs6000-*-lynxos*)
  3124. noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
  3125. ;;
  3126. rs6000-*-aix*)
  3127. noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib ${libgcj}"
  3128. ;;
  3129. rs6000-*-*)
  3130. noconfigdirs="$noconfigdirs gprof ${libgcj}"
  3131. ;;
  3132. m68k-apollo-*)
  3133. noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
  3134. ;;
  3135. microblaze*)
  3136. noconfigdirs="$noconfigdirs gprof ${libgcj}"
  3137. ;;
  3138. mips*-sde-elf*)
  3139. noconfigdirs="$noconfigdirs ${libgcj}"
  3140. if test x$with_newlib = xyes; then
  3141. noconfigdirs="$noconfigdirs gprof"
  3142. fi
  3143. libgloss_dir=mips
  3144. ;;
  3145. mips*-*-irix5*)
  3146. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3147. ;;
  3148. mips*-*-irix6*)
  3149. # Linking libjava exceeds command-line length limits on at least
  3150. # IRIX 6.2, but not on IRIX 6.5.
  3151. # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
  3152. # <oldham@codesourcery.com>
  3153. noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
  3154. ;;
  3155. mips*-*-bsd*)
  3156. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3157. ;;
  3158. mips*-*-linux*)
  3159. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3160. ;;
  3161. mips*-*-*)
  3162. noconfigdirs="$noconfigdirs gprof ${libgcj}"
  3163. libgloss_dir=mips
  3164. ;;
  3165. sh-*-* | sh64-*-*)
  3166. case "${target}" in
  3167. sh*-*-elf)
  3168. noconfigdirs="$noconfigdirs ${libgcj}" ;;
  3169. *)
  3170. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
  3171. esac
  3172. ;;
  3173. sparclet-*-aout* | sparc86x-*-*)
  3174. libgloss_dir=sparc
  3175. ;;
  3176. sparc-*-elf*)
  3177. noconfigdirs="$noconfigdirs ${libgcj}"
  3178. ;;
  3179. sparc64-*-elf*)
  3180. noconfigdirs="$noconfigdirs ${libgcj}"
  3181. libgloss_dir=sparc
  3182. ;;
  3183. sparclite-*-*)
  3184. libgloss_dir=sparc
  3185. ;;
  3186. sparc-*-sunos4*)
  3187. if test x${is_cross_compiler} != xno ; then
  3188. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
  3189. else
  3190. use_gnu_ld=no
  3191. fi
  3192. ;;
  3193. sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
  3194. ;;
  3195. tic6x-*-*)
  3196. noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
  3197. ;;
  3198. v810-*-*)
  3199. noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
  3200. ;;
  3201. vax-*-*)
  3202. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  3203. ;;
  3204. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  3205. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3206. ;;
  3207. *-*-lynxos*)
  3208. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  3209. ;;
  3210. *-*-*)
  3211. noconfigdirs="$noconfigdirs ${libgcj}"
  3212. ;;
  3213. esac
  3214. # If we aren't building newlib, then don't build libgloss, since libgloss
  3215. # depends upon some newlib header files.
  3216. case "${noconfigdirs}" in
  3217. *target-libgloss*) ;;
  3218. *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
  3219. esac
  3220. # Work in distributions that contain no compiler tools, like Autoconf.
  3221. host_makefile_frag=/dev/null
  3222. if test -d ${srcdir}/config ; then
  3223. case "${host}" in
  3224. i[3456789]86-*-msdosdjgpp*)
  3225. host_makefile_frag="config/mh-djgpp"
  3226. ;;
  3227. *-cygwin*)
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
  3229. $as_echo_n "checking to see if cat works as expected... " >&6; }
  3230. echo a >cygwin-cat-check
  3231. if test `cat cygwin-cat-check` = a ; then
  3232. rm cygwin-cat-check
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3234. $as_echo "yes" >&6; }
  3235. else
  3236. rm cygwin-cat-check
  3237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3238. $as_echo "no" >&6; }
  3239. as_fn_error "The cat command does not ignore carriage return characters.
  3240. Please either mount the build directory in binary mode or run the following
  3241. commands before running any configure script:
  3242. set -o igncr
  3243. export SHELLOPTS
  3244. " "$LINENO" 5
  3245. fi
  3246. host_makefile_frag="config/mh-cygwin"
  3247. ;;
  3248. *-mingw*)
  3249. host_makefile_frag="config/mh-mingw"
  3250. ;;
  3251. *-interix*)
  3252. host_makefile_frag="config/mh-interix"
  3253. ;;
  3254. hppa*-hp-hpux10*)
  3255. host_makefile_frag="config/mh-pa-hpux10"
  3256. ;;
  3257. hppa*-hp-hpux*)
  3258. host_makefile_frag="config/mh-pa"
  3259. ;;
  3260. hppa*-*)
  3261. host_makefile_frag="config/mh-pa"
  3262. ;;
  3263. *-*-darwin*)
  3264. host_makefile_frag="config/mh-darwin"
  3265. ;;
  3266. powerpc-*-aix*)
  3267. host_makefile_frag="config/mh-ppc-aix"
  3268. ;;
  3269. rs6000-*-aix*)
  3270. host_makefile_frag="config/mh-ppc-aix"
  3271. ;;
  3272. esac
  3273. fi
  3274. if test "${build}" != "${host}" ; then
  3275. AR_FOR_BUILD=${AR_FOR_BUILD-ar}
  3276. AS_FOR_BUILD=${AS_FOR_BUILD-as}
  3277. CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
  3278. CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
  3279. GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
  3280. GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
  3281. GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
  3282. DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
  3283. LD_FOR_BUILD=${LD_FOR_BUILD-ld}
  3284. NM_FOR_BUILD=${NM_FOR_BUILD-nm}
  3285. RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
  3286. WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
  3287. WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
  3288. else
  3289. AR_FOR_BUILD="\$(AR)"
  3290. AS_FOR_BUILD="\$(AS)"
  3291. CC_FOR_BUILD="\$(CC)"
  3292. CXX_FOR_BUILD="\$(CXX)"
  3293. GCJ_FOR_BUILD="\$(GCJ)"
  3294. GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
  3295. GOC_FOR_BUILD="\$(GOC)"
  3296. DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
  3297. LD_FOR_BUILD="\$(LD)"
  3298. NM_FOR_BUILD="\$(NM)"
  3299. RANLIB_FOR_BUILD="\$(RANLIB)"
  3300. WINDRES_FOR_BUILD="\$(WINDRES)"
  3301. WINDMC_FOR_BUILD="\$(WINDMC)"
  3302. fi
  3303. ac_ext=c
  3304. ac_cpp='$CPP $CPPFLAGS'
  3305. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3306. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3307. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3308. if test -n "$ac_tool_prefix"; then
  3309. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3310. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3312. $as_echo_n "checking for $ac_word... " >&6; }
  3313. if test "${ac_cv_prog_CC+set}" = set; then :
  3314. $as_echo_n "(cached) " >&6
  3315. else
  3316. if test -n "$CC"; then
  3317. ac_cv_prog_CC="$CC" # Let the user override the test.
  3318. else
  3319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3320. for as_dir in $PATH
  3321. do
  3322. IFS=$as_save_IFS
  3323. test -z "$as_dir" && as_dir=.
  3324. for ac_exec_ext in '' $ac_executable_extensions; do
  3325. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3326. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3328. break 2
  3329. fi
  3330. done
  3331. done
  3332. IFS=$as_save_IFS
  3333. fi
  3334. fi
  3335. CC=$ac_cv_prog_CC
  3336. if test -n "$CC"; then
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3338. $as_echo "$CC" >&6; }
  3339. else
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3341. $as_echo "no" >&6; }
  3342. fi
  3343. fi
  3344. if test -z "$ac_cv_prog_CC"; then
  3345. ac_ct_CC=$CC
  3346. # Extract the first word of "gcc", so it can be a program name with args.
  3347. set dummy gcc; ac_word=$2
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3349. $as_echo_n "checking for $ac_word... " >&6; }
  3350. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3351. $as_echo_n "(cached) " >&6
  3352. else
  3353. if test -n "$ac_ct_CC"; then
  3354. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3355. else
  3356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3357. for as_dir in $PATH
  3358. do
  3359. IFS=$as_save_IFS
  3360. test -z "$as_dir" && as_dir=.
  3361. for ac_exec_ext in '' $ac_executable_extensions; do
  3362. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3363. ac_cv_prog_ac_ct_CC="gcc"
  3364. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3365. break 2
  3366. fi
  3367. done
  3368. done
  3369. IFS=$as_save_IFS
  3370. fi
  3371. fi
  3372. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3373. if test -n "$ac_ct_CC"; then
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3375. $as_echo "$ac_ct_CC" >&6; }
  3376. else
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3378. $as_echo "no" >&6; }
  3379. fi
  3380. if test "x$ac_ct_CC" = x; then
  3381. CC=""
  3382. else
  3383. case $cross_compiling:$ac_tool_warned in
  3384. yes:)
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3386. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3387. ac_tool_warned=yes ;;
  3388. esac
  3389. CC=$ac_ct_CC
  3390. fi
  3391. else
  3392. CC="$ac_cv_prog_CC"
  3393. fi
  3394. if test -z "$CC"; then
  3395. if test -n "$ac_tool_prefix"; then
  3396. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3397. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3399. $as_echo_n "checking for $ac_word... " >&6; }
  3400. if test "${ac_cv_prog_CC+set}" = set; then :
  3401. $as_echo_n "(cached) " >&6
  3402. else
  3403. if test -n "$CC"; then
  3404. ac_cv_prog_CC="$CC" # Let the user override the test.
  3405. else
  3406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3407. for as_dir in $PATH
  3408. do
  3409. IFS=$as_save_IFS
  3410. test -z "$as_dir" && as_dir=.
  3411. for ac_exec_ext in '' $ac_executable_extensions; do
  3412. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3413. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3414. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3415. break 2
  3416. fi
  3417. done
  3418. done
  3419. IFS=$as_save_IFS
  3420. fi
  3421. fi
  3422. CC=$ac_cv_prog_CC
  3423. if test -n "$CC"; then
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3425. $as_echo "$CC" >&6; }
  3426. else
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3428. $as_echo "no" >&6; }
  3429. fi
  3430. fi
  3431. fi
  3432. if test -z "$CC"; then
  3433. # Extract the first word of "cc", so it can be a program name with args.
  3434. set dummy cc; ac_word=$2
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3436. $as_echo_n "checking for $ac_word... " >&6; }
  3437. if test "${ac_cv_prog_CC+set}" = set; then :
  3438. $as_echo_n "(cached) " >&6
  3439. else
  3440. if test -n "$CC"; then
  3441. ac_cv_prog_CC="$CC" # Let the user override the test.
  3442. else
  3443. ac_prog_rejected=no
  3444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3445. for as_dir in $PATH
  3446. do
  3447. IFS=$as_save_IFS
  3448. test -z "$as_dir" && as_dir=.
  3449. for ac_exec_ext in '' $ac_executable_extensions; do
  3450. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3451. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3452. ac_prog_rejected=yes
  3453. continue
  3454. fi
  3455. ac_cv_prog_CC="cc"
  3456. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3457. break 2
  3458. fi
  3459. done
  3460. done
  3461. IFS=$as_save_IFS
  3462. if test $ac_prog_rejected = yes; then
  3463. # We found a bogon in the path, so make sure we never use it.
  3464. set dummy $ac_cv_prog_CC
  3465. shift
  3466. if test $# != 0; then
  3467. # We chose a different compiler from the bogus one.
  3468. # However, it has the same basename, so the bogon will be chosen
  3469. # first if we set CC to just the basename; use the full file name.
  3470. shift
  3471. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3472. fi
  3473. fi
  3474. fi
  3475. fi
  3476. CC=$ac_cv_prog_CC
  3477. if test -n "$CC"; then
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3479. $as_echo "$CC" >&6; }
  3480. else
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3482. $as_echo "no" >&6; }
  3483. fi
  3484. fi
  3485. if test -z "$CC"; then
  3486. if test -n "$ac_tool_prefix"; then
  3487. for ac_prog in cl.exe
  3488. do
  3489. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3490. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3492. $as_echo_n "checking for $ac_word... " >&6; }
  3493. if test "${ac_cv_prog_CC+set}" = set; then :
  3494. $as_echo_n "(cached) " >&6
  3495. else
  3496. if test -n "$CC"; then
  3497. ac_cv_prog_CC="$CC" # Let the user override the test.
  3498. else
  3499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3500. for as_dir in $PATH
  3501. do
  3502. IFS=$as_save_IFS
  3503. test -z "$as_dir" && as_dir=.
  3504. for ac_exec_ext in '' $ac_executable_extensions; do
  3505. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3506. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3508. break 2
  3509. fi
  3510. done
  3511. done
  3512. IFS=$as_save_IFS
  3513. fi
  3514. fi
  3515. CC=$ac_cv_prog_CC
  3516. if test -n "$CC"; then
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3518. $as_echo "$CC" >&6; }
  3519. else
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3521. $as_echo "no" >&6; }
  3522. fi
  3523. test -n "$CC" && break
  3524. done
  3525. fi
  3526. if test -z "$CC"; then
  3527. ac_ct_CC=$CC
  3528. for ac_prog in cl.exe
  3529. do
  3530. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3531. set dummy $ac_prog; ac_word=$2
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3533. $as_echo_n "checking for $ac_word... " >&6; }
  3534. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3535. $as_echo_n "(cached) " >&6
  3536. else
  3537. if test -n "$ac_ct_CC"; then
  3538. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3539. else
  3540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3541. for as_dir in $PATH
  3542. do
  3543. IFS=$as_save_IFS
  3544. test -z "$as_dir" && as_dir=.
  3545. for ac_exec_ext in '' $ac_executable_extensions; do
  3546. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3547. ac_cv_prog_ac_ct_CC="$ac_prog"
  3548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3549. break 2
  3550. fi
  3551. done
  3552. done
  3553. IFS=$as_save_IFS
  3554. fi
  3555. fi
  3556. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3557. if test -n "$ac_ct_CC"; then
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3559. $as_echo "$ac_ct_CC" >&6; }
  3560. else
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3562. $as_echo "no" >&6; }
  3563. fi
  3564. test -n "$ac_ct_CC" && break
  3565. done
  3566. if test "x$ac_ct_CC" = x; then
  3567. CC=""
  3568. else
  3569. case $cross_compiling:$ac_tool_warned in
  3570. yes:)
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3572. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3573. ac_tool_warned=yes ;;
  3574. esac
  3575. CC=$ac_ct_CC
  3576. fi
  3577. fi
  3578. fi
  3579. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3580. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3581. as_fn_error "no acceptable C compiler found in \$PATH
  3582. See \`config.log' for more details." "$LINENO" 5; }
  3583. # Provide some information about the compiler.
  3584. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3585. set X $ac_compile
  3586. ac_compiler=$2
  3587. for ac_option in --version -v -V -qversion; do
  3588. { { ac_try="$ac_compiler $ac_option >&5"
  3589. case "(($ac_try" in
  3590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3591. *) ac_try_echo=$ac_try;;
  3592. esac
  3593. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3594. $as_echo "$ac_try_echo"; } >&5
  3595. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3596. ac_status=$?
  3597. if test -s conftest.err; then
  3598. sed '10a\
  3599. ... rest of stderr output deleted ...
  3600. 10q' conftest.err >conftest.er1
  3601. cat conftest.er1 >&5
  3602. rm -f conftest.er1 conftest.err
  3603. fi
  3604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3605. test $ac_status = 0; }
  3606. done
  3607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3608. /* end confdefs.h. */
  3609. int
  3610. main ()
  3611. {
  3612. ;
  3613. return 0;
  3614. }
  3615. _ACEOF
  3616. ac_clean_files_save=$ac_clean_files
  3617. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3618. # Try to create an executable without -o first, disregard a.out.
  3619. # It will help us diagnose broken compilers, and finding out an intuition
  3620. # of exeext.
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3622. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3623. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3624. # The possible output files:
  3625. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3626. ac_rmfiles=
  3627. for ac_file in $ac_files
  3628. do
  3629. case $ac_file in
  3630. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3631. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3632. esac
  3633. done
  3634. rm -f $ac_rmfiles
  3635. if { { ac_try="$ac_link_default"
  3636. case "(($ac_try" in
  3637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3638. *) ac_try_echo=$ac_try;;
  3639. esac
  3640. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3641. $as_echo "$ac_try_echo"; } >&5
  3642. (eval "$ac_link_default") 2>&5
  3643. ac_status=$?
  3644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3645. test $ac_status = 0; }; then :
  3646. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3647. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3648. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3649. # so that the user can short-circuit this test for compilers unknown to
  3650. # Autoconf.
  3651. for ac_file in $ac_files ''
  3652. do
  3653. test -f "$ac_file" || continue
  3654. case $ac_file in
  3655. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3656. ;;
  3657. [ab].out )
  3658. # We found the default executable, but exeext='' is most
  3659. # certainly right.
  3660. break;;
  3661. *.* )
  3662. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3663. then :; else
  3664. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3665. fi
  3666. # We set ac_cv_exeext here because the later test for it is not
  3667. # safe: cross compilers may not add the suffix if given an `-o'
  3668. # argument, so we may need to know it at that point already.
  3669. # Even if this section looks crufty: it has the advantage of
  3670. # actually working.
  3671. break;;
  3672. * )
  3673. break;;
  3674. esac
  3675. done
  3676. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3677. else
  3678. ac_file=''
  3679. fi
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3681. $as_echo "$ac_file" >&6; }
  3682. if test -z "$ac_file"; then :
  3683. $as_echo "$as_me: failed program was:" >&5
  3684. sed 's/^/| /' conftest.$ac_ext >&5
  3685. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3686. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3687. { as_fn_set_status 77
  3688. as_fn_error "C compiler cannot create executables
  3689. See \`config.log' for more details." "$LINENO" 5; }; }
  3690. fi
  3691. ac_exeext=$ac_cv_exeext
  3692. # Check that the compiler produces executables we can run. If not, either
  3693. # the compiler is broken, or we cross compile.
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3695. $as_echo_n "checking whether the C compiler works... " >&6; }
  3696. # If not cross compiling, check that we can run a simple program.
  3697. if test "$cross_compiling" != yes; then
  3698. if { ac_try='./$ac_file'
  3699. { { case "(($ac_try" in
  3700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3701. *) ac_try_echo=$ac_try;;
  3702. esac
  3703. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3704. $as_echo "$ac_try_echo"; } >&5
  3705. (eval "$ac_try") 2>&5
  3706. ac_status=$?
  3707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3708. test $ac_status = 0; }; }; then
  3709. cross_compiling=no
  3710. else
  3711. if test "$cross_compiling" = maybe; then
  3712. cross_compiling=yes
  3713. else
  3714. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3715. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3716. as_fn_error "cannot run C compiled programs.
  3717. If you meant to cross compile, use \`--host'.
  3718. See \`config.log' for more details." "$LINENO" 5; }
  3719. fi
  3720. fi
  3721. fi
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3723. $as_echo "yes" >&6; }
  3724. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3725. ac_clean_files=$ac_clean_files_save
  3726. # Check that the compiler produces executables we can run. If not, either
  3727. # the compiler is broken, or we cross compile.
  3728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3729. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3731. $as_echo "$cross_compiling" >&6; }
  3732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3733. $as_echo_n "checking for suffix of executables... " >&6; }
  3734. if { { ac_try="$ac_link"
  3735. case "(($ac_try" in
  3736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3737. *) ac_try_echo=$ac_try;;
  3738. esac
  3739. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3740. $as_echo "$ac_try_echo"; } >&5
  3741. (eval "$ac_link") 2>&5
  3742. ac_status=$?
  3743. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3744. test $ac_status = 0; }; then :
  3745. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3746. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3747. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3748. # `rm'.
  3749. for ac_file in conftest.exe conftest conftest.*; do
  3750. test -f "$ac_file" || continue
  3751. case $ac_file in
  3752. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3753. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3754. break;;
  3755. * ) break;;
  3756. esac
  3757. done
  3758. else
  3759. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3760. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3761. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3762. See \`config.log' for more details." "$LINENO" 5; }
  3763. fi
  3764. rm -f conftest$ac_cv_exeext
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3766. $as_echo "$ac_cv_exeext" >&6; }
  3767. rm -f conftest.$ac_ext
  3768. EXEEXT=$ac_cv_exeext
  3769. ac_exeext=$EXEEXT
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3771. $as_echo_n "checking for suffix of object files... " >&6; }
  3772. if test "${ac_cv_objext+set}" = set; then :
  3773. $as_echo_n "(cached) " >&6
  3774. else
  3775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3776. /* end confdefs.h. */
  3777. int
  3778. main ()
  3779. {
  3780. ;
  3781. return 0;
  3782. }
  3783. _ACEOF
  3784. rm -f conftest.o conftest.obj
  3785. if { { ac_try="$ac_compile"
  3786. case "(($ac_try" in
  3787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3788. *) ac_try_echo=$ac_try;;
  3789. esac
  3790. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3791. $as_echo "$ac_try_echo"; } >&5
  3792. (eval "$ac_compile") 2>&5
  3793. ac_status=$?
  3794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3795. test $ac_status = 0; }; then :
  3796. for ac_file in conftest.o conftest.obj conftest.*; do
  3797. test -f "$ac_file" || continue;
  3798. case $ac_file in
  3799. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3800. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3801. break;;
  3802. esac
  3803. done
  3804. else
  3805. $as_echo "$as_me: failed program was:" >&5
  3806. sed 's/^/| /' conftest.$ac_ext >&5
  3807. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3808. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3809. as_fn_error "cannot compute suffix of object files: cannot compile
  3810. See \`config.log' for more details." "$LINENO" 5; }
  3811. fi
  3812. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3813. fi
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3815. $as_echo "$ac_cv_objext" >&6; }
  3816. OBJEXT=$ac_cv_objext
  3817. ac_objext=$OBJEXT
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3819. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3820. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3821. $as_echo_n "(cached) " >&6
  3822. else
  3823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3824. /* end confdefs.h. */
  3825. int
  3826. main ()
  3827. {
  3828. #ifndef __GNUC__
  3829. choke me
  3830. #endif
  3831. ;
  3832. return 0;
  3833. }
  3834. _ACEOF
  3835. if ac_fn_c_try_compile "$LINENO"; then :
  3836. ac_compiler_gnu=yes
  3837. else
  3838. ac_compiler_gnu=no
  3839. fi
  3840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3841. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3842. fi
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3844. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3845. if test $ac_compiler_gnu = yes; then
  3846. GCC=yes
  3847. else
  3848. GCC=
  3849. fi
  3850. ac_test_CFLAGS=${CFLAGS+set}
  3851. ac_save_CFLAGS=$CFLAGS
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3853. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3854. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3855. $as_echo_n "(cached) " >&6
  3856. else
  3857. ac_save_c_werror_flag=$ac_c_werror_flag
  3858. ac_c_werror_flag=yes
  3859. ac_cv_prog_cc_g=no
  3860. CFLAGS="-g"
  3861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3862. /* end confdefs.h. */
  3863. int
  3864. main ()
  3865. {
  3866. ;
  3867. return 0;
  3868. }
  3869. _ACEOF
  3870. if ac_fn_c_try_compile "$LINENO"; then :
  3871. ac_cv_prog_cc_g=yes
  3872. else
  3873. CFLAGS=""
  3874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3875. /* end confdefs.h. */
  3876. int
  3877. main ()
  3878. {
  3879. ;
  3880. return 0;
  3881. }
  3882. _ACEOF
  3883. if ac_fn_c_try_compile "$LINENO"; then :
  3884. else
  3885. ac_c_werror_flag=$ac_save_c_werror_flag
  3886. CFLAGS="-g"
  3887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3888. /* end confdefs.h. */
  3889. int
  3890. main ()
  3891. {
  3892. ;
  3893. return 0;
  3894. }
  3895. _ACEOF
  3896. if ac_fn_c_try_compile "$LINENO"; then :
  3897. ac_cv_prog_cc_g=yes
  3898. fi
  3899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3900. fi
  3901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3902. fi
  3903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3904. ac_c_werror_flag=$ac_save_c_werror_flag
  3905. fi
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3907. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3908. if test "$ac_test_CFLAGS" = set; then
  3909. CFLAGS=$ac_save_CFLAGS
  3910. elif test $ac_cv_prog_cc_g = yes; then
  3911. if test "$GCC" = yes; then
  3912. CFLAGS="-g -O2"
  3913. else
  3914. CFLAGS="-g"
  3915. fi
  3916. else
  3917. if test "$GCC" = yes; then
  3918. CFLAGS="-O2"
  3919. else
  3920. CFLAGS=
  3921. fi
  3922. fi
  3923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3924. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3925. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3926. $as_echo_n "(cached) " >&6
  3927. else
  3928. ac_cv_prog_cc_c89=no
  3929. ac_save_CC=$CC
  3930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3931. /* end confdefs.h. */
  3932. #include <stdarg.h>
  3933. #include <stdio.h>
  3934. #include <sys/types.h>
  3935. #include <sys/stat.h>
  3936. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3937. struct buf { int x; };
  3938. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3939. static char *e (p, i)
  3940. char **p;
  3941. int i;
  3942. {
  3943. return p[i];
  3944. }
  3945. static char *f (char * (*g) (char **, int), char **p, ...)
  3946. {
  3947. char *s;
  3948. va_list v;
  3949. va_start (v,p);
  3950. s = g (p, va_arg (v,int));
  3951. va_end (v);
  3952. return s;
  3953. }
  3954. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3955. function prototypes and stuff, but not '\xHH' hex character constants.
  3956. These don't provoke an error unfortunately, instead are silently treated
  3957. as 'x'. The following induces an error, until -std is added to get
  3958. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3959. array size at least. It's necessary to write '\x00'==0 to get something
  3960. that's true only with -std. */
  3961. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3962. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3963. inside strings and character constants. */
  3964. #define FOO(x) 'x'
  3965. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3966. int test (int i, double x);
  3967. struct s1 {int (*f) (int a);};
  3968. struct s2 {int (*f) (double a);};
  3969. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3970. int argc;
  3971. char **argv;
  3972. int
  3973. main ()
  3974. {
  3975. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3976. ;
  3977. return 0;
  3978. }
  3979. _ACEOF
  3980. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3981. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3982. do
  3983. CC="$ac_save_CC $ac_arg"
  3984. if ac_fn_c_try_compile "$LINENO"; then :
  3985. ac_cv_prog_cc_c89=$ac_arg
  3986. fi
  3987. rm -f core conftest.err conftest.$ac_objext
  3988. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3989. done
  3990. rm -f conftest.$ac_ext
  3991. CC=$ac_save_CC
  3992. fi
  3993. # AC_CACHE_VAL
  3994. case "x$ac_cv_prog_cc_c89" in
  3995. x)
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3997. $as_echo "none needed" >&6; } ;;
  3998. xno)
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4000. $as_echo "unsupported" >&6; } ;;
  4001. *)
  4002. CC="$CC $ac_cv_prog_cc_c89"
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4004. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4005. esac
  4006. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4007. fi
  4008. ac_ext=c
  4009. ac_cpp='$CPP $CPPFLAGS'
  4010. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4011. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4012. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4013. ac_ext=cpp
  4014. ac_cpp='$CXXCPP $CPPFLAGS'
  4015. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4016. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4017. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4018. if test -z "$CXX"; then
  4019. if test -n "$CCC"; then
  4020. CXX=$CCC
  4021. else
  4022. if test -n "$ac_tool_prefix"; then
  4023. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4024. do
  4025. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4026. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4028. $as_echo_n "checking for $ac_word... " >&6; }
  4029. if test "${ac_cv_prog_CXX+set}" = set; then :
  4030. $as_echo_n "(cached) " >&6
  4031. else
  4032. if test -n "$CXX"; then
  4033. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4034. else
  4035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4036. for as_dir in $PATH
  4037. do
  4038. IFS=$as_save_IFS
  4039. test -z "$as_dir" && as_dir=.
  4040. for ac_exec_ext in '' $ac_executable_extensions; do
  4041. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4042. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4043. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4044. break 2
  4045. fi
  4046. done
  4047. done
  4048. IFS=$as_save_IFS
  4049. fi
  4050. fi
  4051. CXX=$ac_cv_prog_CXX
  4052. if test -n "$CXX"; then
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4054. $as_echo "$CXX" >&6; }
  4055. else
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4057. $as_echo "no" >&6; }
  4058. fi
  4059. test -n "$CXX" && break
  4060. done
  4061. fi
  4062. if test -z "$CXX"; then
  4063. ac_ct_CXX=$CXX
  4064. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4065. do
  4066. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4067. set dummy $ac_prog; ac_word=$2
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4069. $as_echo_n "checking for $ac_word... " >&6; }
  4070. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  4071. $as_echo_n "(cached) " >&6
  4072. else
  4073. if test -n "$ac_ct_CXX"; then
  4074. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4075. else
  4076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4077. for as_dir in $PATH
  4078. do
  4079. IFS=$as_save_IFS
  4080. test -z "$as_dir" && as_dir=.
  4081. for ac_exec_ext in '' $ac_executable_extensions; do
  4082. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4083. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4085. break 2
  4086. fi
  4087. done
  4088. done
  4089. IFS=$as_save_IFS
  4090. fi
  4091. fi
  4092. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4093. if test -n "$ac_ct_CXX"; then
  4094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4095. $as_echo "$ac_ct_CXX" >&6; }
  4096. else
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4098. $as_echo "no" >&6; }
  4099. fi
  4100. test -n "$ac_ct_CXX" && break
  4101. done
  4102. if test "x$ac_ct_CXX" = x; then
  4103. CXX="g++"
  4104. else
  4105. case $cross_compiling:$ac_tool_warned in
  4106. yes:)
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4108. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4109. ac_tool_warned=yes ;;
  4110. esac
  4111. CXX=$ac_ct_CXX
  4112. fi
  4113. fi
  4114. fi
  4115. fi
  4116. # Provide some information about the compiler.
  4117. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4118. set X $ac_compile
  4119. ac_compiler=$2
  4120. for ac_option in --version -v -V -qversion; do
  4121. { { ac_try="$ac_compiler $ac_option >&5"
  4122. case "(($ac_try" in
  4123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4124. *) ac_try_echo=$ac_try;;
  4125. esac
  4126. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4127. $as_echo "$ac_try_echo"; } >&5
  4128. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4129. ac_status=$?
  4130. if test -s conftest.err; then
  4131. sed '10a\
  4132. ... rest of stderr output deleted ...
  4133. 10q' conftest.err >conftest.er1
  4134. cat conftest.er1 >&5
  4135. rm -f conftest.er1 conftest.err
  4136. fi
  4137. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4138. test $ac_status = 0; }
  4139. done
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4141. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4142. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  4143. $as_echo_n "(cached) " >&6
  4144. else
  4145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4146. /* end confdefs.h. */
  4147. int
  4148. main ()
  4149. {
  4150. #ifndef __GNUC__
  4151. choke me
  4152. #endif
  4153. ;
  4154. return 0;
  4155. }
  4156. _ACEOF
  4157. if ac_fn_cxx_try_compile "$LINENO"; then :
  4158. ac_compiler_gnu=yes
  4159. else
  4160. ac_compiler_gnu=no
  4161. fi
  4162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4163. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4164. fi
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4166. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4167. if test $ac_compiler_gnu = yes; then
  4168. GXX=yes
  4169. else
  4170. GXX=
  4171. fi
  4172. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4173. ac_save_CXXFLAGS=$CXXFLAGS
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4175. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4176. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  4177. $as_echo_n "(cached) " >&6
  4178. else
  4179. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4180. ac_cxx_werror_flag=yes
  4181. ac_cv_prog_cxx_g=no
  4182. CXXFLAGS="-g"
  4183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4184. /* end confdefs.h. */
  4185. int
  4186. main ()
  4187. {
  4188. ;
  4189. return 0;
  4190. }
  4191. _ACEOF
  4192. if ac_fn_cxx_try_compile "$LINENO"; then :
  4193. ac_cv_prog_cxx_g=yes
  4194. else
  4195. CXXFLAGS=""
  4196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4197. /* end confdefs.h. */
  4198. int
  4199. main ()
  4200. {
  4201. ;
  4202. return 0;
  4203. }
  4204. _ACEOF
  4205. if ac_fn_cxx_try_compile "$LINENO"; then :
  4206. else
  4207. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4208. CXXFLAGS="-g"
  4209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4210. /* end confdefs.h. */
  4211. int
  4212. main ()
  4213. {
  4214. ;
  4215. return 0;
  4216. }
  4217. _ACEOF
  4218. if ac_fn_cxx_try_compile "$LINENO"; then :
  4219. ac_cv_prog_cxx_g=yes
  4220. fi
  4221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4222. fi
  4223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4224. fi
  4225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4226. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4227. fi
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4229. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4230. if test "$ac_test_CXXFLAGS" = set; then
  4231. CXXFLAGS=$ac_save_CXXFLAGS
  4232. elif test $ac_cv_prog_cxx_g = yes; then
  4233. if test "$GXX" = yes; then
  4234. CXXFLAGS="-g -O2"
  4235. else
  4236. CXXFLAGS="-g"
  4237. fi
  4238. else
  4239. if test "$GXX" = yes; then
  4240. CXXFLAGS="-O2"
  4241. else
  4242. CXXFLAGS=
  4243. fi
  4244. fi
  4245. ac_ext=c
  4246. ac_cpp='$CPP $CPPFLAGS'
  4247. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4248. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4249. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4250. # We must set the default linker to the linker used by gcc for the correct
  4251. # operation of libtool. If LD is not defined and we are using gcc, try to
  4252. # set the LD default to the ld used by gcc.
  4253. if test -z "$LD"; then
  4254. if test "$GCC" = yes; then
  4255. case $build in
  4256. *-*-mingw*)
  4257. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
  4258. *)
  4259. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
  4260. esac
  4261. case $gcc_prog_ld in
  4262. # Accept absolute paths.
  4263. [\\/]* | [A-Za-z]:[\\/]*)
  4264. LD="$gcc_prog_ld" ;;
  4265. esac
  4266. fi
  4267. fi
  4268. if test -n "$ac_tool_prefix"; then
  4269. # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
  4270. set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
  4271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4272. $as_echo_n "checking for $ac_word... " >&6; }
  4273. if test "${ac_cv_prog_GNATBIND+set}" = set; then :
  4274. $as_echo_n "(cached) " >&6
  4275. else
  4276. if test -n "$GNATBIND"; then
  4277. ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
  4278. else
  4279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4280. for as_dir in $PATH
  4281. do
  4282. IFS=$as_save_IFS
  4283. test -z "$as_dir" && as_dir=.
  4284. for ac_exec_ext in '' $ac_executable_extensions; do
  4285. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4286. ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
  4287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4288. break 2
  4289. fi
  4290. done
  4291. done
  4292. IFS=$as_save_IFS
  4293. fi
  4294. fi
  4295. GNATBIND=$ac_cv_prog_GNATBIND
  4296. if test -n "$GNATBIND"; then
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
  4298. $as_echo "$GNATBIND" >&6; }
  4299. else
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4301. $as_echo "no" >&6; }
  4302. fi
  4303. fi
  4304. if test -z "$ac_cv_prog_GNATBIND"; then
  4305. ac_ct_GNATBIND=$GNATBIND
  4306. # Extract the first word of "gnatbind", so it can be a program name with args.
  4307. set dummy gnatbind; ac_word=$2
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4309. $as_echo_n "checking for $ac_word... " >&6; }
  4310. if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
  4311. $as_echo_n "(cached) " >&6
  4312. else
  4313. if test -n "$ac_ct_GNATBIND"; then
  4314. ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
  4315. else
  4316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4317. for as_dir in $PATH
  4318. do
  4319. IFS=$as_save_IFS
  4320. test -z "$as_dir" && as_dir=.
  4321. for ac_exec_ext in '' $ac_executable_extensions; do
  4322. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4323. ac_cv_prog_ac_ct_GNATBIND="gnatbind"
  4324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4325. break 2
  4326. fi
  4327. done
  4328. done
  4329. IFS=$as_save_IFS
  4330. fi
  4331. fi
  4332. ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
  4333. if test -n "$ac_ct_GNATBIND"; then
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
  4335. $as_echo "$ac_ct_GNATBIND" >&6; }
  4336. else
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4338. $as_echo "no" >&6; }
  4339. fi
  4340. if test "x$ac_ct_GNATBIND" = x; then
  4341. GNATBIND="no"
  4342. else
  4343. case $cross_compiling:$ac_tool_warned in
  4344. yes:)
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4346. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4347. ac_tool_warned=yes ;;
  4348. esac
  4349. GNATBIND=$ac_ct_GNATBIND
  4350. fi
  4351. else
  4352. GNATBIND="$ac_cv_prog_GNATBIND"
  4353. fi
  4354. if test -n "$ac_tool_prefix"; then
  4355. # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
  4356. set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4358. $as_echo_n "checking for $ac_word... " >&6; }
  4359. if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
  4360. $as_echo_n "(cached) " >&6
  4361. else
  4362. if test -n "$GNATMAKE"; then
  4363. ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
  4364. else
  4365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4366. for as_dir in $PATH
  4367. do
  4368. IFS=$as_save_IFS
  4369. test -z "$as_dir" && as_dir=.
  4370. for ac_exec_ext in '' $ac_executable_extensions; do
  4371. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4372. ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
  4373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4374. break 2
  4375. fi
  4376. done
  4377. done
  4378. IFS=$as_save_IFS
  4379. fi
  4380. fi
  4381. GNATMAKE=$ac_cv_prog_GNATMAKE
  4382. if test -n "$GNATMAKE"; then
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
  4384. $as_echo "$GNATMAKE" >&6; }
  4385. else
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4387. $as_echo "no" >&6; }
  4388. fi
  4389. fi
  4390. if test -z "$ac_cv_prog_GNATMAKE"; then
  4391. ac_ct_GNATMAKE=$GNATMAKE
  4392. # Extract the first word of "gnatmake", so it can be a program name with args.
  4393. set dummy gnatmake; ac_word=$2
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4395. $as_echo_n "checking for $ac_word... " >&6; }
  4396. if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
  4397. $as_echo_n "(cached) " >&6
  4398. else
  4399. if test -n "$ac_ct_GNATMAKE"; then
  4400. ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
  4401. else
  4402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4403. for as_dir in $PATH
  4404. do
  4405. IFS=$as_save_IFS
  4406. test -z "$as_dir" && as_dir=.
  4407. for ac_exec_ext in '' $ac_executable_extensions; do
  4408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4409. ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
  4410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4411. break 2
  4412. fi
  4413. done
  4414. done
  4415. IFS=$as_save_IFS
  4416. fi
  4417. fi
  4418. ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
  4419. if test -n "$ac_ct_GNATMAKE"; then
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
  4421. $as_echo "$ac_ct_GNATMAKE" >&6; }
  4422. else
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4424. $as_echo "no" >&6; }
  4425. fi
  4426. if test "x$ac_ct_GNATMAKE" = x; then
  4427. GNATMAKE="no"
  4428. else
  4429. case $cross_compiling:$ac_tool_warned in
  4430. yes:)
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4432. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4433. ac_tool_warned=yes ;;
  4434. esac
  4435. GNATMAKE=$ac_ct_GNATMAKE
  4436. fi
  4437. else
  4438. GNATMAKE="$ac_cv_prog_GNATMAKE"
  4439. fi
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
  4441. $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
  4442. if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
  4443. $as_echo_n "(cached) " >&6
  4444. else
  4445. cat >conftest.adb <<EOF
  4446. procedure conftest is begin null; end conftest;
  4447. EOF
  4448. acx_cv_cc_gcc_supports_ada=no
  4449. # There is a bug in old released versions of GCC which causes the
  4450. # driver to exit successfully when the appropriate language module
  4451. # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
  4452. # Therefore we must check for the error message as well as an
  4453. # unsuccessful exit.
  4454. # Other compilers, like HP Tru64 UNIX cc, exit successfully when
  4455. # given a .adb file, but produce no object file. So we must check
  4456. # if an object file was really produced to guard against this.
  4457. errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
  4458. if test x"$errors" = x && test -f conftest.$ac_objext; then
  4459. acx_cv_cc_gcc_supports_ada=yes
  4460. fi
  4461. rm -f conftest.*
  4462. fi
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
  4464. $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
  4465. if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
  4466. have_gnat=yes
  4467. else
  4468. have_gnat=no
  4469. fi
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
  4471. $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
  4472. if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
  4473. $as_echo_n "(cached) " >&6
  4474. else
  4475. echo abfoo >t1
  4476. echo cdfoo >t2
  4477. gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
  4478. if cmp t1 t2 2 2 > /dev/null 2>&1; then
  4479. if cmp t1 t2 1 1 > /dev/null 2>&1; then
  4480. :
  4481. else
  4482. gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
  4483. fi
  4484. fi
  4485. if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
  4486. if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
  4487. :
  4488. else
  4489. gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
  4490. fi
  4491. fi
  4492. rm t1 t2
  4493. fi
  4494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
  4495. $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
  4496. do_compare="$gcc_cv_prog_cmp_skip"
  4497. # See if we are building gcc with C++.
  4498. # Check whether --enable-build-with-cxx was given.
  4499. if test "${enable_build_with_cxx+set}" = set; then :
  4500. enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
  4501. else
  4502. ENABLE_BUILD_WITH_CXX=no
  4503. fi
  4504. # Used for setting $lt_cv_objdir
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  4506. $as_echo_n "checking for objdir... " >&6; }
  4507. if test "${lt_cv_objdir+set}" = set; then :
  4508. $as_echo_n "(cached) " >&6
  4509. else
  4510. rm -f .libs 2>/dev/null
  4511. mkdir .libs 2>/dev/null
  4512. if test -d .libs; then
  4513. lt_cv_objdir=.libs
  4514. else
  4515. # MS-DOS does not allow filenames that begin with a dot.
  4516. lt_cv_objdir=_libs
  4517. fi
  4518. rmdir .libs 2>/dev/null
  4519. fi
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  4521. $as_echo "$lt_cv_objdir" >&6; }
  4522. objdir=$lt_cv_objdir
  4523. cat >>confdefs.h <<_ACEOF
  4524. #define LT_OBJDIR "$lt_cv_objdir/"
  4525. _ACEOF
  4526. # Check for GMP, MPFR and MPC
  4527. gmplibs="-lmpc -lmpfr -lgmp"
  4528. gmpinc=
  4529. have_gmp=no
  4530. # Specify a location for mpc
  4531. # check for this first so it ends up on the link line before mpfr.
  4532. # Check whether --with-mpc was given.
  4533. if test "${with_mpc+set}" = set; then :
  4534. withval=$with_mpc;
  4535. fi
  4536. # Check whether --with-mpc-include was given.
  4537. if test "${with_mpc_include+set}" = set; then :
  4538. withval=$with_mpc_include;
  4539. fi
  4540. # Check whether --with-mpc-lib was given.
  4541. if test "${with_mpc_lib+set}" = set; then :
  4542. withval=$with_mpc_lib;
  4543. fi
  4544. if test "x$with_mpc" != x; then
  4545. gmplibs="-L$with_mpc/lib $gmplibs"
  4546. gmpinc="-I$with_mpc/include $gmpinc"
  4547. fi
  4548. if test "x$with_mpc_include" != x; then
  4549. gmpinc="-I$with_mpc_include $gmpinc"
  4550. fi
  4551. if test "x$with_mpc_lib" != x; then
  4552. gmplibs="-L$with_mpc_lib $gmplibs"
  4553. fi
  4554. if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
  4555. gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
  4556. gmpinc='-I$$s/mpc/src '"$gmpinc"
  4557. # Do not test the mpc version. Assume that it is sufficient, since
  4558. # it is in the source tree, and the library has not been built yet
  4559. # but it would be included on the link line in the version check below
  4560. # hence making the test fail.
  4561. have_gmp=yes
  4562. fi
  4563. # Specify a location for mpfr
  4564. # check for this first so it ends up on the link line before gmp.
  4565. # Check whether --with-mpfr-dir was given.
  4566. if test "${with_mpfr_dir+set}" = set; then :
  4567. withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
  4568. Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
  4569. fi
  4570. # Check whether --with-mpfr was given.
  4571. if test "${with_mpfr+set}" = set; then :
  4572. withval=$with_mpfr;
  4573. fi
  4574. # Check whether --with-mpfr-include was given.
  4575. if test "${with_mpfr_include+set}" = set; then :
  4576. withval=$with_mpfr_include;
  4577. fi
  4578. # Check whether --with-mpfr-lib was given.
  4579. if test "${with_mpfr_lib+set}" = set; then :
  4580. withval=$with_mpfr_lib;
  4581. fi
  4582. if test "x$with_mpfr" != x; then
  4583. gmplibs="-L$with_mpfr/lib $gmplibs"
  4584. gmpinc="-I$with_mpfr/include $gmpinc"
  4585. fi
  4586. if test "x$with_mpfr_include" != x; then
  4587. gmpinc="-I$with_mpfr_include $gmpinc"
  4588. fi
  4589. if test "x$with_mpfr_lib" != x; then
  4590. gmplibs="-L$with_mpfr_lib $gmplibs"
  4591. fi
  4592. if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
  4593. gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
  4594. gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
  4595. extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
  4596. # Do not test the mpfr version. Assume that it is sufficient, since
  4597. # it is in the source tree, and the library has not been built yet
  4598. # but it would be included on the link line in the version check below
  4599. # hence making the test fail.
  4600. have_gmp=yes
  4601. fi
  4602. # Specify a location for gmp
  4603. # Check whether --with-gmp-dir was given.
  4604. if test "${with_gmp_dir+set}" = set; then :
  4605. withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
  4606. Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
  4607. fi
  4608. # Check whether --with-gmp was given.
  4609. if test "${with_gmp+set}" = set; then :
  4610. withval=$with_gmp;
  4611. fi
  4612. # Check whether --with-gmp-include was given.
  4613. if test "${with_gmp_include+set}" = set; then :
  4614. withval=$with_gmp_include;
  4615. fi
  4616. # Check whether --with-gmp-lib was given.
  4617. if test "${with_gmp_lib+set}" = set; then :
  4618. withval=$with_gmp_lib;
  4619. fi
  4620. if test "x$with_gmp" != x; then
  4621. gmplibs="-L$with_gmp/lib $gmplibs"
  4622. gmpinc="-I$with_gmp/include $gmpinc"
  4623. fi
  4624. if test "x$with_gmp_include" != x; then
  4625. gmpinc="-I$with_gmp_include $gmpinc"
  4626. fi
  4627. if test "x$with_gmp_lib" != x; then
  4628. gmplibs="-L$with_gmp_lib $gmplibs"
  4629. fi
  4630. if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
  4631. gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
  4632. gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
  4633. extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  4634. extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  4635. # Do not test the gmp version. Assume that it is sufficient, since
  4636. # it is in the source tree, and the library has not been built yet
  4637. # but it would be included on the link line in the version check below
  4638. # hence making the test fail.
  4639. have_gmp=yes
  4640. fi
  4641. if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
  4642. have_gmp=yes
  4643. saved_CFLAGS="$CFLAGS"
  4644. CFLAGS="$CFLAGS $gmpinc"
  4645. # Check for the recommended and required versions of GMP.
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
  4647. $as_echo_n "checking for the correct version of gmp.h... " >&6; }
  4648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4649. /* end confdefs.h. */
  4650. #include "gmp.h"
  4651. int
  4652. main ()
  4653. {
  4654. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  4655. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  4656. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
  4657. choke me
  4658. #endif
  4659. ;
  4660. return 0;
  4661. }
  4662. _ACEOF
  4663. if ac_fn_c_try_compile "$LINENO"; then :
  4664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4665. /* end confdefs.h. */
  4666. #include <gmp.h>
  4667. int
  4668. main ()
  4669. {
  4670. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  4671. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  4672. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
  4673. choke me
  4674. #endif
  4675. ;
  4676. return 0;
  4677. }
  4678. _ACEOF
  4679. if ac_fn_c_try_compile "$LINENO"; then :
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4681. $as_echo "yes" >&6; }
  4682. else
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  4684. $as_echo "buggy but acceptable" >&6; }
  4685. fi
  4686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4687. else
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4689. $as_echo "no" >&6; }; have_gmp=no
  4690. fi
  4691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4692. # If we have GMP, check the MPFR version.
  4693. if test x"$have_gmp" = xyes; then
  4694. # Check for the recommended and required versions of MPFR.
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
  4696. $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
  4697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4698. /* end confdefs.h. */
  4699. #include <gmp.h>
  4700. #include <mpfr.h>
  4701. int
  4702. main ()
  4703. {
  4704. #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
  4705. choke me
  4706. #endif
  4707. ;
  4708. return 0;
  4709. }
  4710. _ACEOF
  4711. if ac_fn_c_try_compile "$LINENO"; then :
  4712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4713. /* end confdefs.h. */
  4714. #include <gmp.h>
  4715. #include <mpfr.h>
  4716. int
  4717. main ()
  4718. {
  4719. #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
  4720. choke me
  4721. #endif
  4722. ;
  4723. return 0;
  4724. }
  4725. _ACEOF
  4726. if ac_fn_c_try_compile "$LINENO"; then :
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4728. $as_echo "yes" >&6; }
  4729. else
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  4731. $as_echo "buggy but acceptable" >&6; }
  4732. fi
  4733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4734. else
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4736. $as_echo "no" >&6; }; have_gmp=no
  4737. fi
  4738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4739. fi
  4740. # Check for the MPC header version.
  4741. if test x"$have_gmp" = xyes ; then
  4742. # Check for the recommended and required versions of MPC.
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
  4744. $as_echo_n "checking for the correct version of mpc.h... " >&6; }
  4745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4746. /* end confdefs.h. */
  4747. #include <mpc.h>
  4748. int
  4749. main ()
  4750. {
  4751. #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
  4752. choke me
  4753. #endif
  4754. ;
  4755. return 0;
  4756. }
  4757. _ACEOF
  4758. if ac_fn_c_try_compile "$LINENO"; then :
  4759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4760. /* end confdefs.h. */
  4761. #include <mpc.h>
  4762. int
  4763. main ()
  4764. {
  4765. #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
  4766. choke me
  4767. #endif
  4768. ;
  4769. return 0;
  4770. }
  4771. _ACEOF
  4772. if ac_fn_c_try_compile "$LINENO"; then :
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4774. $as_echo "yes" >&6; }
  4775. else
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  4777. $as_echo "buggy but acceptable" >&6; }
  4778. fi
  4779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4780. else
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4782. $as_echo "no" >&6; }; have_gmp=no
  4783. fi
  4784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4785. fi
  4786. # Now check the MPFR library.
  4787. if test x"$have_gmp" = xyes; then
  4788. saved_LIBS="$LIBS"
  4789. LIBS="$LIBS $gmplibs"
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
  4791. $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
  4792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4793. /* end confdefs.h. */
  4794. #include <mpc.h>
  4795. int
  4796. main ()
  4797. {
  4798. mpfr_t n;
  4799. mpfr_t x;
  4800. mpc_t c;
  4801. int t;
  4802. mpfr_init (n);
  4803. mpfr_init (x);
  4804. mpfr_atan2 (n, n, x, GMP_RNDN);
  4805. mpfr_erfc (n, x, GMP_RNDN);
  4806. mpfr_subnormalize (x, t, GMP_RNDN);
  4807. mpfr_clear(n);
  4808. mpfr_clear(x);
  4809. mpc_init2 (c, 53);
  4810. mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
  4811. mpc_cosh (c, c, MPC_RNDNN);
  4812. mpc_pow (c, c, c, MPC_RNDNN);
  4813. mpc_acosh (c, c, MPC_RNDNN);
  4814. mpc_clear (c);
  4815. ;
  4816. return 0;
  4817. }
  4818. _ACEOF
  4819. if ac_fn_c_try_link "$LINENO"; then :
  4820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4821. $as_echo "yes" >&6; }
  4822. else
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4824. $as_echo "no" >&6; }; have_gmp=no
  4825. fi
  4826. rm -f core conftest.err conftest.$ac_objext \
  4827. conftest$ac_exeext conftest.$ac_ext
  4828. LIBS="$saved_LIBS"
  4829. fi
  4830. CFLAGS="$saved_CFLAGS"
  4831. # The library versions listed in the error message below should match
  4832. # the HARD-minimums enforced above.
  4833. if test x$have_gmp != xyes; then
  4834. as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
  4835. Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
  4836. their locations. Source code for these libraries can be found at
  4837. their respective hosting sites as well as at
  4838. ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
  4839. http://gcc.gnu.org/install/prerequisites.html for additional info. If
  4840. you obtained GMP, MPFR and/or MPC from a vendor distribution package,
  4841. make sure that you have installed both the libraries and the header
  4842. files. They may be located in separate packages." "$LINENO" 5
  4843. fi
  4844. fi
  4845. # Flags needed for both GMP, MPFR and/or MPC.
  4846. # Allow host libstdc++ to be specified for static linking with PPL.
  4847. # Check whether --with-host-libstdcxx was given.
  4848. if test "${with_host_libstdcxx+set}" = set; then :
  4849. withval=$with_host_libstdcxx;
  4850. fi
  4851. case $with_host_libstdcxx in
  4852. no|yes)
  4853. as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
  4854. ;;
  4855. esac
  4856. # Linker flags to use for stage1 or when not boostrapping.
  4857. # Check whether --with-stage1-ldflags was given.
  4858. if test "${with_stage1_ldflags+set}" = set; then :
  4859. withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  4860. stage1_ldflags=
  4861. else
  4862. stage1_ldflags=$withval
  4863. fi
  4864. else
  4865. stage1_ldflags=
  4866. fi
  4867. # Libraries to use for stage1 or when not bootstrapping.
  4868. # Check whether --with-stage1-libs was given.
  4869. if test "${with_stage1_libs+set}" = set; then :
  4870. withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  4871. stage1_libs=
  4872. else
  4873. stage1_libs=$withval
  4874. fi
  4875. else
  4876. stage1_libs=$with_host_libstdcxx
  4877. fi
  4878. # Libraries to use for stage2 and later builds. This defaults to the
  4879. # argument passed to --with-host-libstdcxx.
  4880. # Check whether --with-boot-libs was given.
  4881. if test "${with_boot_libs+set}" = set; then :
  4882. withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  4883. poststage1_libs=
  4884. else
  4885. poststage1_libs=$withval
  4886. fi
  4887. else
  4888. poststage1_libs=$with_host_libstdcxx
  4889. fi
  4890. # Linker flags to use for stage2 and later builds.
  4891. # Check whether --with-boot-ldflags was given.
  4892. if test "${with_boot_ldflags+set}" = set; then :
  4893. withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  4894. poststage1_ldflags=
  4895. else
  4896. poststage1_ldflags=$withval
  4897. fi
  4898. else
  4899. poststage1_ldflags=
  4900. # In stages 2 and 3, default to linking libstdc++ and libgcc
  4901. # statically. But if the user explicitly specified the libraries to
  4902. # use, trust that they are doing what they want.
  4903. if test "$poststage1_libs" = ""; then
  4904. poststage1_ldflags="-static-libstdc++ -static-libgcc"
  4905. fi
  4906. fi
  4907. # Check for PPL
  4908. ppllibs=
  4909. pplinc=
  4910. pwllib=
  4911. # Check whether --with-ppl was given.
  4912. if test "${with_ppl+set}" = set; then :
  4913. withval=$with_ppl;
  4914. fi
  4915. # Check whether --with-ppl-include was given.
  4916. if test "${with_ppl_include+set}" = set; then :
  4917. withval=$with_ppl_include;
  4918. fi
  4919. # Check whether --with-ppl-lib was given.
  4920. if test "${with_ppl_lib+set}" = set; then :
  4921. withval=$with_ppl_lib;
  4922. fi
  4923. # Check whether --enable-ppl-version-check was given.
  4924. if test "${enable_ppl_version_check+set}" = set; then :
  4925. enableval=$enable_ppl_version_check;
  4926. fi
  4927. case $with_ppl in
  4928. yes | no | "")
  4929. ;;
  4930. *)
  4931. ppllibs="-L$with_ppl/lib"
  4932. pplinc="-I$with_ppl/include $pplinc"
  4933. if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
  4934. with_ppl=yes
  4935. else
  4936. as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
  4937. fi
  4938. ;;
  4939. esac
  4940. if test x"$with_ppl_include" != x; then
  4941. pplinc="-I$with_ppl_include $pplinc"
  4942. with_ppl=yes
  4943. fi
  4944. if test "x$with_ppl_lib" != x; then
  4945. ppllibs="-L$with_ppl_lib"
  4946. with_ppl=yes
  4947. fi
  4948. if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
  4949. if test x"$enable_watchdog" = xyes; then
  4950. pwllib="-lpwl"
  4951. fi
  4952. ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
  4953. pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
  4954. enable_ppl_version_check=no
  4955. with_ppl=yes
  4956. fi
  4957. if test "x$with_ppl" != xno; then
  4958. if test "x$pwllib" = x; then
  4959. saved_LIBS="$LIBS"
  4960. LIBS="$LIBS $ppllibs -lstdc++ -lm"
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
  4962. $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
  4963. if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
  4964. $as_echo_n "(cached) " >&6
  4965. else
  4966. ac_check_lib_save_LIBS=$LIBS
  4967. LIBS="-lpwl $LIBS"
  4968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4969. /* end confdefs.h. */
  4970. /* Override any GCC internal prototype to avoid an error.
  4971. Use char because int might match the return type of a GCC
  4972. builtin and then its argument prototype would still apply. */
  4973. #ifdef __cplusplus
  4974. extern "C"
  4975. #endif
  4976. char PWL_handle_timeout ();
  4977. int
  4978. main ()
  4979. {
  4980. return PWL_handle_timeout ();
  4981. ;
  4982. return 0;
  4983. }
  4984. _ACEOF
  4985. if ac_fn_c_try_link "$LINENO"; then :
  4986. ac_cv_lib_pwl_PWL_handle_timeout=yes
  4987. else
  4988. ac_cv_lib_pwl_PWL_handle_timeout=no
  4989. fi
  4990. rm -f core conftest.err conftest.$ac_objext \
  4991. conftest$ac_exeext conftest.$ac_ext
  4992. LIBS=$ac_check_lib_save_LIBS
  4993. fi
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
  4995. $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
  4996. if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
  4997. pwllib="-lpwl"
  4998. fi
  4999. LIBS="$saved_LIBS"
  5000. fi
  5001. ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
  5002. if test "$enable_ppl_version_check" != no; then
  5003. saved_CFLAGS="$CFLAGS"
  5004. CFLAGS="$CFLAGS $pplinc $gmpinc"
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
  5006. $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
  5007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5008. /* end confdefs.h. */
  5009. #include "ppl_c.h"
  5010. int
  5011. main ()
  5012. {
  5013. #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
  5014. choke me
  5015. #endif
  5016. ;
  5017. return 0;
  5018. }
  5019. _ACEOF
  5020. if ac_fn_c_try_compile "$LINENO"; then :
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5022. $as_echo "yes" >&6; }
  5023. else
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5025. $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
  5026. fi
  5027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5028. CFLAGS="$saved_CFLAGS"
  5029. fi
  5030. fi
  5031. # Flags needed for PPL
  5032. # Check for CLOOG
  5033. # Check whether --with-cloog was given.
  5034. if test "${with_cloog+set}" = set; then :
  5035. withval=$with_cloog;
  5036. fi
  5037. # Check whether --with-cloog-include was given.
  5038. if test "${with_cloog_include+set}" = set; then :
  5039. withval=$with_cloog_include;
  5040. fi
  5041. # Check whether --with-cloog-lib was given.
  5042. if test "${with_cloog_lib+set}" = set; then :
  5043. withval=$with_cloog_lib;
  5044. fi
  5045. # Check whether --enable-cloog-backend was given.
  5046. if test "${enable_cloog_backend+set}" = set; then :
  5047. enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
  5048. cloog_backend=isl
  5049. elif test "x${enableval}" = "xppl"; then
  5050. cloog_backend=ppl
  5051. else
  5052. cloog_backend=ppl-legacy
  5053. fi
  5054. else
  5055. cloog_backend=ppl-legacy
  5056. fi
  5057. # Check whether --enable-cloog-version-check was given.
  5058. if test "${enable_cloog_version_check+set}" = set; then :
  5059. enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
  5060. else
  5061. ENABLE_CLOOG_CHECK=yes
  5062. fi
  5063. # Initialize clooglibs and clooginc.
  5064. case $with_cloog in
  5065. no)
  5066. clooglibs=
  5067. clooginc=
  5068. ;;
  5069. "" | yes)
  5070. ;;
  5071. *)
  5072. clooglibs="-L$with_cloog/lib"
  5073. clooginc="-I$with_cloog/include"
  5074. ;;
  5075. esac
  5076. if test "x${with_cloog_include}" != x ; then
  5077. clooginc="-I$with_cloog_include"
  5078. fi
  5079. if test "x${with_cloog_lib}" != x; then
  5080. clooglibs="-L$with_cloog_lib"
  5081. fi
  5082. if test "x$with_ppl" = "xno"; then
  5083. if test "x${with_cloog}" = xno; then
  5084. graphite_requested=no
  5085. elif test "x${with_cloog}" != x \
  5086. || test "x${with_cloog_include}" != x \
  5087. || test "x${with_cloog_lib}" != x ; then
  5088. graphite_requested=yes
  5089. else
  5090. graphite_requested=no
  5091. fi
  5092. if test "${graphite_requested}" = yes; then
  5093. as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
  5094. fi
  5095. with_cloog=no
  5096. fi
  5097. if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
  5098. && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
  5099. clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
  5100. clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
  5101. fi
  5102. if test "x$with_cloog" != "xno"; then
  5103. _cloog_saved_CFLAGS=$CFLAGS
  5104. _cloog_saved_CPPFLAGS=$CPPFLAGS
  5105. _cloog_saved_LDFLAGS=$LDFLAGS
  5106. _cloog_saved_LIBS=$LIBS
  5107. _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
  5108. CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
  5109. CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
  5110. LDFLAGS="${LDFLAGS} ${clooglibs}"
  5111. case $cloog_backend in
  5112. "ppl-legacy")
  5113. CFLAGS="${CFLAGS} ${pplinc}"
  5114. LDFLAGS="${LDFLAGS} ${ppllibs}"
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
  5116. $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
  5117. if test "${gcc_cv_cloog_type+set}" = set; then :
  5118. $as_echo_n "(cached) " >&6
  5119. else
  5120. LIBS="-lcloog ${_cloog_saved_LIBS}"
  5121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5122. /* end confdefs.h. */
  5123. #include "cloog/cloog.h"
  5124. int
  5125. main ()
  5126. {
  5127. #ifndef CLOOG_PPL_BACKEND
  5128. choke me
  5129. #endif
  5130. ;
  5131. return 0;
  5132. }
  5133. _ACEOF
  5134. if ac_fn_c_try_link "$LINENO"; then :
  5135. gcc_cv_cloog_type="PPL Legacy"
  5136. else
  5137. gcc_cv_cloog_type=no
  5138. fi
  5139. rm -f core conftest.err conftest.$ac_objext \
  5140. conftest$ac_exeext conftest.$ac_ext
  5141. fi
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
  5143. $as_echo "$gcc_cv_cloog_type" >&6; }
  5144. ;;
  5145. "isl")
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
  5147. $as_echo_n "checking for installed CLooG ISL... " >&6; }
  5148. if test "${gcc_cv_cloog_type+set}" = set; then :
  5149. $as_echo_n "(cached) " >&6
  5150. else
  5151. LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
  5152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5153. /* end confdefs.h. */
  5154. #include "cloog/cloog.h"
  5155. int
  5156. main ()
  5157. {
  5158. cloog_version ()
  5159. ;
  5160. return 0;
  5161. }
  5162. _ACEOF
  5163. if ac_fn_c_try_link "$LINENO"; then :
  5164. gcc_cv_cloog_type="ISL"
  5165. else
  5166. gcc_cv_cloog_type=no
  5167. fi
  5168. rm -f core conftest.err conftest.$ac_objext \
  5169. conftest$ac_exeext conftest.$ac_ext
  5170. fi
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
  5172. $as_echo "$gcc_cv_cloog_type" >&6; }
  5173. ;;
  5174. "ppl")
  5175. CFLAGS="${CFLAGS} ${pplinc}"
  5176. LDFLAGS="${LDFLAGS} ${ppllibs}"
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
  5178. $as_echo_n "checking for installed CLooG PPL... " >&6; }
  5179. if test "${gcc_cv_cloog_type+set}" = set; then :
  5180. $as_echo_n "(cached) " >&6
  5181. else
  5182. LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
  5183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5184. /* end confdefs.h. */
  5185. #include "cloog/cloog.h"
  5186. #include "cloog/ppl/cloog.h"
  5187. int
  5188. main ()
  5189. {
  5190. cloog_version ()
  5191. ;
  5192. return 0;
  5193. }
  5194. _ACEOF
  5195. if ac_fn_c_try_link "$LINENO"; then :
  5196. gcc_cv_cloog_type="PPL"
  5197. else
  5198. gcc_cv_cloog_type=no
  5199. fi
  5200. rm -f core conftest.err conftest.$ac_objext \
  5201. conftest$ac_exeext conftest.$ac_ext
  5202. fi
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
  5204. $as_echo "$gcc_cv_cloog_type" >&6; }
  5205. ;;
  5206. *)
  5207. gcc_cv_cloog_type=""
  5208. esac
  5209. case $gcc_cv_cloog_type in
  5210. "PPL Legacy")
  5211. clooginc="${clooginc}"
  5212. clooglibs="${clooglibs} -lcloog"
  5213. cloog_org=no
  5214. ;;
  5215. "ISL")
  5216. clooginc="${clooginc} ${_cloogorginc}"
  5217. clooglibs="${clooglibs} -lcloog-isl -lisl"
  5218. cloog_org=yes
  5219. ;;
  5220. "PPL")
  5221. clooginc="${clooginc} ${_cloogorginc}"
  5222. clooglibs="${clooglibs} -lcloog-ppl"
  5223. cloog_org=yes
  5224. ;;
  5225. *)
  5226. clooglibs=
  5227. clooginc=
  5228. cloog_org=
  5229. ;;
  5230. esac
  5231. LIBS=$_cloog_saved_LIBS
  5232. CFLAGS=$_cloog_saved_CFLAGS
  5233. CPPFLAGS=$_cloog_saved_CPPFLAGS
  5234. LDFLAGS=$_cloog_saved_LDFLAGS
  5235. if test "${ENABLE_CLOOG_CHECK}" = yes ; then
  5236. _cloog_saved_CFLAGS=$CFLAGS
  5237. _cloog_saved_LDFLAGS=$LDFLAGS
  5238. CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
  5239. LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
  5240. if test "${cloog_org}" = yes ; then
  5241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
  5242. $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
  5243. if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
  5244. $as_echo_n "(cached) " >&6
  5245. else
  5246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5247. /* end confdefs.h. */
  5248. #include "cloog/cloog.h"
  5249. int
  5250. main ()
  5251. {
  5252. #if CLOOG_VERSION_MAJOR != 0 \
  5253. || CLOOG_VERSION_MINOR != 16 \
  5254. || CLOOG_VERSION_REVISION < 1
  5255. choke me
  5256. #endif
  5257. ;
  5258. return 0;
  5259. }
  5260. _ACEOF
  5261. if ac_fn_c_try_compile "$LINENO"; then :
  5262. gcc_cv_cloog_ct_0_14_0=yes
  5263. else
  5264. gcc_cv_cloog_ct_0_14_0=no
  5265. fi
  5266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5267. fi
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
  5269. $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
  5270. elif test "${cloog_org}" = no ; then
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
  5272. $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
  5273. if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
  5274. $as_echo_n "(cached) " >&6
  5275. else
  5276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5277. /* end confdefs.h. */
  5278. #include "cloog/cloog.h"
  5279. int
  5280. main ()
  5281. {
  5282. #if CLOOG_VERSION_MAJOR != 0 \
  5283. || CLOOG_VERSION_MINOR != 15 \
  5284. || CLOOG_VERSION_REVISION < 5
  5285. choke me
  5286. #endif
  5287. ;
  5288. return 0;
  5289. }
  5290. _ACEOF
  5291. if ac_fn_c_try_compile "$LINENO"; then :
  5292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5293. /* end confdefs.h. */
  5294. #include "cloog/cloog.h"
  5295. int
  5296. main ()
  5297. {
  5298. #if CLOOG_VERSION_MAJOR != 0 \
  5299. || CLOOG_VERSION_MINOR != 15 \
  5300. || CLOOG_VERSION_REVISION < 9
  5301. choke me
  5302. #endif
  5303. ;
  5304. return 0;
  5305. }
  5306. _ACEOF
  5307. if ac_fn_c_try_compile "$LINENO"; then :
  5308. gcc_cv_cloog_ct_0_15_5=yes
  5309. else
  5310. gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
  5311. fi
  5312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5313. else
  5314. gcc_cv_cloog_ct_0_15_5=no
  5315. fi
  5316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5317. fi
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
  5319. $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
  5320. fi
  5321. CFLAGS=$_cloog_saved_CFLAGS
  5322. LDFLAGS=$_cloog_saved_LDFLAGS
  5323. fi
  5324. if test "x${with_cloog}" = xno; then
  5325. graphite_requested=no
  5326. elif test "x${with_cloog}" != x \
  5327. || test "x${with_cloog_include}" != x \
  5328. || test "x${with_cloog_lib}" != x ; then
  5329. graphite_requested=yes
  5330. else
  5331. graphite_requested=no
  5332. fi
  5333. if test "${gcc_cv_cloog_ct_0_14_0}" = no \
  5334. || test "${gcc_cv_cloog_rt_0_14_0}" = no \
  5335. || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
  5336. clooglibs=
  5337. clooginc=
  5338. fi
  5339. if test "${graphite_requested}" = yes \
  5340. && test "x${clooglibs}" = x \
  5341. && test "x${clooginc}" = x ; then
  5342. as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
  5343. fi
  5344. fi
  5345. # Check for LTO support.
  5346. # Check whether --enable-lto was given.
  5347. if test "${enable_lto+set}" = set; then :
  5348. enableval=$enable_lto; enable_lto=$enableval
  5349. else
  5350. enable_lto=yes; default_enable_lto=yes
  5351. fi
  5352. target_elf=no
  5353. case $target in
  5354. *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
  5355. *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
  5356. alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
  5357. target_elf=no
  5358. ;;
  5359. *)
  5360. target_elf=yes
  5361. ;;
  5362. esac
  5363. if test $target_elf = yes; then :
  5364. # ELF platforms build the lto-plugin always.
  5365. build_lto_plugin=yes
  5366. else
  5367. if test x"$default_enable_lto" = x"yes" ; then
  5368. case $target in
  5369. *-apple-darwin9 | *-cygwin* | *-mingw*) ;;
  5370. # On other non-ELF platforms, LTO has yet to be validated.
  5371. *) enable_lto=no ;;
  5372. esac
  5373. else
  5374. # Apart from ELF platforms, only Windows and Darwin support LTO so far.
  5375. # It would also be nice to check the binutils support, but we don't
  5376. # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
  5377. # warn during gcc/ subconfigure; unless you're bootstrapping with
  5378. # -flto it won't be needed until after installation anyway.
  5379. case $target in
  5380. *-cygwin* | *-mingw* | *-apple-darwin*) ;;
  5381. *) if test x"$enable_lto" = x"yes"; then
  5382. as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
  5383. fi
  5384. ;;
  5385. esac
  5386. fi
  5387. # Among non-ELF, only Windows platforms support the lto-plugin so far.
  5388. # Build it unless LTO was explicitly disabled.
  5389. case $target in
  5390. *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
  5391. *) ;;
  5392. esac
  5393. fi
  5394. # By default, C is the only stage 1 language.
  5395. stage1_languages=,c,
  5396. # Target libraries that we bootstrap.
  5397. bootstrap_target_libs=,target-libgcc,
  5398. # Figure out what language subdirectories are present.
  5399. # Look if the user specified --enable-languages="..."; if not, use
  5400. # the environment variable $LANGUAGES if defined. $LANGUAGES might
  5401. # go away some day.
  5402. # NB: embedded tabs in this IF block -- do not untabify
  5403. if test -d ${srcdir}/gcc; then
  5404. if test x"${enable_languages+set}" != xset; then
  5405. if test x"${LANGUAGES+set}" = xset; then
  5406. enable_languages="${LANGUAGES}"
  5407. echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
  5408. else
  5409. enable_languages=all
  5410. fi
  5411. else
  5412. if test x"${enable_languages}" = x ||
  5413. test x"${enable_languages}" = xyes;
  5414. then
  5415. echo configure.in: --enable-languages needs at least one language argument 1>&2
  5416. exit 1
  5417. fi
  5418. fi
  5419. enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
  5420. # 'f95' is the old name for the 'fortran' language. We issue a warning
  5421. # and make the substitution.
  5422. case ,${enable_languages}, in
  5423. *,f95,*)
  5424. echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
  5425. enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
  5426. ;;
  5427. esac
  5428. # First scan to see if an enabled language requires some other language.
  5429. # We assume that a given config-lang.in will list all the language
  5430. # front ends it requires, even if some are required indirectly.
  5431. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  5432. case ${lang_frag} in
  5433. ..) ;;
  5434. # The odd quoting in the next line works around
  5435. # an apparent bug in bash 1.12 on linux.
  5436. ${srcdir}/gcc/[*]/config-lang.in) ;;
  5437. *)
  5438. # From the config-lang.in, get $language, $lang_requires, and
  5439. # $lang_requires_boot_languages.
  5440. language=
  5441. lang_requires=
  5442. lang_requires_boot_languages=
  5443. . ${lang_frag}
  5444. for other in ${lang_requires} ${lang_requires_boot_languages}; do
  5445. case ,${enable_languages}, in
  5446. *,$other,*) ;;
  5447. *,all,*) ;;
  5448. *,$language,*)
  5449. echo " \`$other' language required by \`$language'; enabling" 1>&2
  5450. enable_languages="${enable_languages},${other}"
  5451. ;;
  5452. esac
  5453. done
  5454. for other in ${lang_requires_boot_languages} ; do
  5455. if test "$other" != "c"; then
  5456. case ,${enable_stage1_languages}, in
  5457. *,$other,*) ;;
  5458. *,all,*) ;;
  5459. *)
  5460. case ,${enable_languages}, in
  5461. *,$language,*)
  5462. echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
  5463. enable_stage1_languages="$enable_stage1_languages,${other}"
  5464. ;;
  5465. esac
  5466. ;;
  5467. esac
  5468. fi
  5469. done
  5470. ;;
  5471. esac
  5472. done
  5473. new_enable_languages=,c,
  5474. # If LTO is enabled, add the LTO front end.
  5475. extra_host_libiberty_configure_flags=
  5476. if test "$enable_lto" = "yes" ; then
  5477. case ,${enable_languages}, in
  5478. *,lto,*) ;;
  5479. *) enable_languages="${enable_languages},lto" ;;
  5480. esac
  5481. if test "${build_lto_plugin}" = "yes" ; then
  5482. configdirs="$configdirs lto-plugin"
  5483. extra_host_libiberty_configure_flags=--enable-shared
  5484. fi
  5485. fi
  5486. missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
  5487. potential_languages=,c,
  5488. enabled_target_libs=
  5489. disabled_target_libs=
  5490. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  5491. case ${lang_frag} in
  5492. ..) ;;
  5493. # The odd quoting in the next line works around
  5494. # an apparent bug in bash 1.12 on linux.
  5495. ${srcdir}/gcc/[*]/config-lang.in) ;;
  5496. *)
  5497. # From the config-lang.in, get $language, $target_libs,
  5498. # $lang_dirs, $boot_language, and $build_by_default
  5499. language=
  5500. target_libs=
  5501. lang_dirs=
  5502. subdir_requires=
  5503. boot_language=no
  5504. build_by_default=yes
  5505. . ${lang_frag}
  5506. if test x${language} = x; then
  5507. echo "${lang_frag} doesn't set \$language." 1>&2
  5508. exit 1
  5509. fi
  5510. if test "$language" = "c++" \
  5511. && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
  5512. boot_language=yes
  5513. fi
  5514. case ,${enable_languages}, in
  5515. *,${language},*)
  5516. # Language was explicitly selected; include it.
  5517. add_this_lang=yes
  5518. ;;
  5519. *,all,*)
  5520. # 'all' was selected, select it if it is a default language
  5521. add_this_lang=${build_by_default}
  5522. ;;
  5523. *)
  5524. add_this_lang=no
  5525. ;;
  5526. esac
  5527. # Disable languages that need other directories if these aren't available.
  5528. for i in $subdir_requires; do
  5529. test -f "$srcdir/gcc/$i/config-lang.in" && continue
  5530. case ,${enable_languages}, in
  5531. *,${language},*)
  5532. # Specifically requested language; tell them.
  5533. as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
  5534. ;;
  5535. *)
  5536. # Silently disable.
  5537. add_this_lang=unsupported
  5538. ;;
  5539. esac
  5540. done
  5541. # Disable Ada if no preexisting GNAT is available.
  5542. case ,${enable_languages},:${language}:${have_gnat} in
  5543. *,${language},*:ada:no)
  5544. # Specifically requested language; tell them.
  5545. as_fn_error "GNAT is required to build $language" "$LINENO" 5
  5546. ;;
  5547. *:ada:no)
  5548. # Silently disable.
  5549. add_this_lang=unsupported
  5550. ;;
  5551. esac
  5552. # Disable a language that is unsupported by the target.
  5553. case " $unsupported_languages " in
  5554. *" $language "*)
  5555. add_this_lang=unsupported
  5556. ;;
  5557. esac
  5558. case $add_this_lang in
  5559. unsupported)
  5560. # Remove language-dependent dirs.
  5561. disabled_target_libs="$disabled_target_libs $target_libs"
  5562. noconfigdirs="$noconfigdirs $lang_dirs"
  5563. ;;
  5564. no)
  5565. # Remove language-dependent dirs; still show language as supported.
  5566. disabled_target_libs="$disabled_target_libs $target_libs"
  5567. noconfigdirs="$noconfigdirs $lang_dirs"
  5568. potential_languages="${potential_languages}${language},"
  5569. ;;
  5570. yes)
  5571. new_enable_languages="${new_enable_languages}${language},"
  5572. potential_languages="${potential_languages}${language},"
  5573. missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
  5574. enabled_target_libs="$enabled_target_libs $target_libs"
  5575. case "${boot_language}:,$enable_stage1_languages," in
  5576. yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
  5577. # Add to (comma-separated) list of stage 1 languages.
  5578. case ",$stage1_languages," in
  5579. *,$language,* | ,yes, | ,all,) ;;
  5580. *) stage1_languages="${stage1_languages}${language}," ;;
  5581. esac
  5582. # We need to bootstrap any supporting libraries.
  5583. bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
  5584. ;;
  5585. esac
  5586. ;;
  5587. esac
  5588. ;;
  5589. esac
  5590. done
  5591. # Add target libraries which are only needed for disabled languages
  5592. # to noconfigdirs.
  5593. if test -n "$disabled_target_libs"; then
  5594. for dir in $disabled_target_libs; do
  5595. case " $enabled_target_libs " in
  5596. *" ${dir} "*) ;;
  5597. *) noconfigdirs="$noconfigdirs $dir" ;;
  5598. esac
  5599. done
  5600. fi
  5601. # Check whether --enable-stage1-languages was given.
  5602. if test "${enable_stage1_languages+set}" = set; then :
  5603. enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
  5604. ,no,|,,)
  5605. # Set it to something that will have no effect in the loop below
  5606. enable_stage1_languages=c ;;
  5607. ,yes,)
  5608. enable_stage1_languages=`echo $new_enable_languages | \
  5609. sed -e "s/^,//" -e "s/,$//" ` ;;
  5610. *,all,*)
  5611. enable_stage1_languages=`echo ,$enable_stage1_languages, | \
  5612. sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
  5613. esac
  5614. # Add "good" languages from enable_stage1_languages to stage1_languages,
  5615. # while "bad" languages go in missing_languages. Leave no duplicates.
  5616. for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
  5617. case $potential_languages in
  5618. *,$i,*)
  5619. case $stage1_languages in
  5620. *,$i,*) ;;
  5621. *) stage1_languages="$stage1_languages$i," ;;
  5622. esac ;;
  5623. *)
  5624. case $missing_languages in
  5625. *,$i,*) ;;
  5626. *) missing_languages="$missing_languages$i," ;;
  5627. esac ;;
  5628. esac
  5629. done
  5630. fi
  5631. # Remove leading/trailing commas that were added for simplicity
  5632. potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
  5633. missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
  5634. stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
  5635. new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
  5636. if test "x$missing_languages" != x; then
  5637. as_fn_error "
  5638. The following requested languages could not be built: ${missing_languages}
  5639. Supported languages are: ${potential_languages}" "$LINENO" 5
  5640. fi
  5641. if test "x$new_enable_languages" != "x$enable_languages"; then
  5642. echo The following languages will be built: ${new_enable_languages}
  5643. enable_languages="$new_enable_languages"
  5644. fi
  5645. ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
  5646. fi
  5647. # Handle --disable-<component> generically.
  5648. for dir in $configdirs $build_configdirs $target_configdirs ; do
  5649. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
  5650. varname=`echo $dirname | sed -e s/+/_/g`
  5651. if eval test x\${enable_${varname}} "=" xno ; then
  5652. noconfigdirs="$noconfigdirs $dir"
  5653. fi
  5654. done
  5655. # Check for Boehm's garbage collector
  5656. # Check whether --enable-objc-gc was given.
  5657. if test "${enable_objc_gc+set}" = set; then :
  5658. enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
  5659. *,objc,*:*:yes:*target-boehm-gc*)
  5660. as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
  5661. ;;
  5662. esac
  5663. fi
  5664. # Make sure we only build Boehm's garbage collector if required.
  5665. case ,${enable_languages},:${enable_objc_gc} in
  5666. *,objc,*:yes)
  5667. # Keep target-boehm-gc if requested for Objective-C.
  5668. ;;
  5669. *)
  5670. # Otherwise remove target-boehm-gc depending on target-libjava.
  5671. if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
  5672. noconfigdirs="$noconfigdirs target-boehm-gc"
  5673. fi
  5674. ;;
  5675. esac
  5676. # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
  5677. # $build_configdirs and $target_configdirs.
  5678. # If we have the source for $noconfigdirs entries, add them to $notsupp.
  5679. notsupp=""
  5680. for dir in . $skipdirs $noconfigdirs ; do
  5681. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
  5682. if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5683. configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
  5684. if test -r $srcdir/$dirname/configure ; then
  5685. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5686. true
  5687. else
  5688. notsupp="$notsupp $dir"
  5689. fi
  5690. fi
  5691. fi
  5692. if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5693. build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
  5694. if test -r $srcdir/$dirname/configure ; then
  5695. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5696. true
  5697. else
  5698. notsupp="$notsupp $dir"
  5699. fi
  5700. fi
  5701. fi
  5702. if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5703. target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
  5704. if test -r $srcdir/$dirname/configure ; then
  5705. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5706. true
  5707. else
  5708. notsupp="$notsupp $dir"
  5709. fi
  5710. fi
  5711. fi
  5712. done
  5713. # Sometimes the tools are distributed with libiberty but with no other
  5714. # libraries. In that case, we don't want to build target-libiberty.
  5715. # Don't let libgcc imply libiberty either.
  5716. if test -n "${target_configdirs}" ; then
  5717. libgcc=
  5718. others=
  5719. for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
  5720. if test "$i" = "libgcc"; then
  5721. libgcc=target-libgcc
  5722. elif test "$i" != "libiberty" ; then
  5723. if test -r $srcdir/$i/configure ; then
  5724. others=yes;
  5725. break;
  5726. fi
  5727. fi
  5728. done
  5729. if test -z "${others}" ; then
  5730. target_configdirs=$libgcc
  5731. fi
  5732. fi
  5733. # Quietly strip out all directories which aren't configurable in this tree.
  5734. # This relies on all configurable subdirectories being autoconfiscated, which
  5735. # is now the case.
  5736. build_configdirs_all="$build_configdirs"
  5737. build_configdirs=
  5738. for i in ${build_configdirs_all} ; do
  5739. j=`echo $i | sed -e s/build-//g`
  5740. if test -f ${srcdir}/$j/configure ; then
  5741. build_configdirs="${build_configdirs} $i"
  5742. fi
  5743. done
  5744. configdirs_all="$configdirs"
  5745. configdirs=
  5746. for i in ${configdirs_all} ; do
  5747. if test -f ${srcdir}/$i/configure ; then
  5748. configdirs="${configdirs} $i"
  5749. fi
  5750. done
  5751. target_configdirs_all="$target_configdirs"
  5752. target_configdirs=
  5753. for i in ${target_configdirs_all} ; do
  5754. j=`echo $i | sed -e s/target-//g`
  5755. if test -f ${srcdir}/$j/configure ; then
  5756. target_configdirs="${target_configdirs} $i"
  5757. fi
  5758. done
  5759. # Produce a warning message for the subdirs we can't configure.
  5760. # This isn't especially interesting in the Cygnus tree, but in the individual
  5761. # FSF releases, it's important to let people know when their machine isn't
  5762. # supported by the one or two programs in a package.
  5763. if test -n "${notsupp}" && test -z "${norecursion}" ; then
  5764. # If $appdirs is non-empty, at least one of those directories must still
  5765. # be configured, or we error out. (E.g., if the gas release supports a
  5766. # specified target in some subdirs but not the gas subdir, we shouldn't
  5767. # pretend that all is well.)
  5768. if test -n "$appdirs" ; then
  5769. for dir in $appdirs ; do
  5770. if test -r $dir/Makefile.in ; then
  5771. if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5772. appdirs=""
  5773. break
  5774. fi
  5775. if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
  5776. appdirs=""
  5777. break
  5778. fi
  5779. fi
  5780. done
  5781. if test -n "$appdirs" ; then
  5782. echo "*** This configuration is not supported by this package." 1>&2
  5783. exit 1
  5784. fi
  5785. fi
  5786. # Okay, some application will build, or we don't care to check. Still
  5787. # notify of subdirs not getting built.
  5788. echo "*** This configuration is not supported in the following subdirectories:" 1>&2
  5789. echo " ${notsupp}" 1>&2
  5790. echo " (Any other directories should still work fine.)" 1>&2
  5791. fi
  5792. case "$host" in
  5793. *msdosdjgpp*)
  5794. enable_gdbtk=no ;;
  5795. esac
  5796. # To find our prefix, in gcc_cv_tool_prefix.
  5797. # The user is always right.
  5798. if test "${PATH_SEPARATOR+set}" != set; then
  5799. echo "#! /bin/sh" >conf$$.sh
  5800. echo "exit 0" >>conf$$.sh
  5801. chmod +x conf$$.sh
  5802. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5803. PATH_SEPARATOR=';'
  5804. else
  5805. PATH_SEPARATOR=:
  5806. fi
  5807. rm -f conf$$.sh
  5808. fi
  5809. if test "x$exec_prefix" = xNONE; then
  5810. if test "x$prefix" = xNONE; then
  5811. gcc_cv_tool_prefix=$ac_default_prefix
  5812. else
  5813. gcc_cv_tool_prefix=$prefix
  5814. fi
  5815. else
  5816. gcc_cv_tool_prefix=$exec_prefix
  5817. fi
  5818. # If there is no compiler in the tree, use the PATH only. In any
  5819. # case, if there is no compiler in the tree nobody should use
  5820. # AS_FOR_TARGET and LD_FOR_TARGET.
  5821. if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
  5822. gcc_version=`cat $srcdir/gcc/BASE-VER`
  5823. gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  5824. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
  5825. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  5826. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
  5827. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  5828. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
  5829. else
  5830. gcc_cv_tool_dirs=
  5831. fi
  5832. if test x$build = x$target && test -n "$md_exec_prefix"; then
  5833. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
  5834. fi
  5835. copy_dirs=
  5836. # Check whether --with-build-sysroot was given.
  5837. if test "${with_build_sysroot+set}" = set; then :
  5838. withval=$with_build_sysroot; if test x"$withval" != x ; then
  5839. SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
  5840. fi
  5841. else
  5842. SYSROOT_CFLAGS_FOR_TARGET=
  5843. fi
  5844. # Check whether --with-debug-prefix-map was given.
  5845. if test "${with_debug_prefix_map+set}" = set; then :
  5846. withval=$with_debug_prefix_map; if test x"$withval" != x; then
  5847. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  5848. for debug_map in $withval; do
  5849. DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
  5850. done
  5851. fi
  5852. else
  5853. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  5854. fi
  5855. # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
  5856. # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
  5857. # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
  5858. # We want to ensure that TARGET libraries (which we know are built with
  5859. # gcc) are built with "-O2 -g", so include those options when setting
  5860. # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
  5861. if test "x$CFLAGS_FOR_TARGET" = x; then
  5862. CFLAGS_FOR_TARGET=$CFLAGS
  5863. case " $CFLAGS " in
  5864. *" -O2 "*) ;;
  5865. *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
  5866. esac
  5867. case " $CFLAGS " in
  5868. *" -g "* | *" -g3 "*) ;;
  5869. *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
  5870. esac
  5871. fi
  5872. if test "x$CXXFLAGS_FOR_TARGET" = x; then
  5873. CXXFLAGS_FOR_TARGET=$CXXFLAGS
  5874. case " $CXXFLAGS " in
  5875. *" -O2 "*) ;;
  5876. *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
  5877. esac
  5878. case " $CXXFLAGS " in
  5879. *" -g "* | *" -g3 "*) ;;
  5880. *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
  5881. esac
  5882. fi
  5883. # Handle --with-headers=XXX. If the value is not "yes", the contents of
  5884. # the named directory are copied to $(tooldir)/sys-include.
  5885. if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
  5886. if test x${is_cross_compiler} = xno ; then
  5887. echo 1>&2 '***' --with-headers is only supported when cross compiling
  5888. exit 1
  5889. fi
  5890. if test x"${with_headers}" != xyes ; then
  5891. x=${gcc_cv_tool_prefix}
  5892. copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
  5893. fi
  5894. fi
  5895. # Handle --with-libs=XXX. If the value is not "yes", the contents of
  5896. # the name directories are copied to $(tooldir)/lib. Multiple directories
  5897. # are permitted.
  5898. if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  5899. if test x${is_cross_compiler} = xno ; then
  5900. echo 1>&2 '***' --with-libs is only supported when cross compiling
  5901. exit 1
  5902. fi
  5903. if test x"${with_libs}" != xyes ; then
  5904. # Copy the libraries in reverse order, so that files in the first named
  5905. # library override files in subsequent libraries.
  5906. x=${gcc_cv_tool_prefix}
  5907. for l in ${with_libs}; do
  5908. copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
  5909. done
  5910. fi
  5911. fi
  5912. # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
  5913. #
  5914. # This is done by determining whether or not the appropriate directory
  5915. # is available, and by checking whether or not specific configurations
  5916. # have requested that this magic not happen.
  5917. #
  5918. # The command line options always override the explicit settings in
  5919. # configure.in, and the settings in configure.in override this magic.
  5920. #
  5921. # If the default for a toolchain is to use GNU as and ld, and you don't
  5922. # want to do that, then you should use the --without-gnu-as and
  5923. # --without-gnu-ld options for the configure script. Similarly, if
  5924. # the default is to use the included zlib and you don't want to do that,
  5925. # you should use the --with-system-zlib option for the configure script.
  5926. if test x${use_gnu_as} = x &&
  5927. echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
  5928. with_gnu_as=yes
  5929. extra_host_args="$extra_host_args --with-gnu-as"
  5930. fi
  5931. if test x${use_gnu_ld} = x &&
  5932. echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
  5933. with_gnu_ld=yes
  5934. extra_host_args="$extra_host_args --with-gnu-ld"
  5935. fi
  5936. if test x${use_included_zlib} = x &&
  5937. echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
  5938. :
  5939. else
  5940. with_system_zlib=yes
  5941. extra_host_args="$extra_host_args --with-system-zlib"
  5942. fi
  5943. # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
  5944. # can detect this case.
  5945. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
  5946. with_newlib=yes
  5947. extra_host_args="$extra_host_args --with-newlib"
  5948. fi
  5949. # Handle ${copy_dirs}
  5950. set fnord ${copy_dirs}
  5951. shift
  5952. while test $# != 0 ; do
  5953. if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
  5954. :
  5955. else
  5956. echo Copying $1 to $2
  5957. # Use the install script to create the directory and all required
  5958. # parent directories.
  5959. if test -d $2 ; then
  5960. :
  5961. else
  5962. echo >config.temp
  5963. ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
  5964. fi
  5965. # Copy the directory, assuming we have tar.
  5966. # FIXME: Should we use B in the second tar? Not all systems support it.
  5967. (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
  5968. # It is the responsibility of the user to correctly adjust all
  5969. # symlinks. If somebody can figure out how to handle them correctly
  5970. # here, feel free to add the code.
  5971. echo $1 > $2/COPIED
  5972. fi
  5973. shift; shift
  5974. done
  5975. # Determine a target-dependent exec_prefix that the installed
  5976. # gcc will search in. Keep this list sorted by triplet, with
  5977. # the *-*-osname triplets last.
  5978. md_exec_prefix=
  5979. case "${target}" in
  5980. i[34567]86-pc-msdosdjgpp*)
  5981. md_exec_prefix=/dev/env/DJDIR/bin
  5982. ;;
  5983. *-*-hpux* | \
  5984. *-*-nto-qnx* | \
  5985. *-*-solaris2*)
  5986. md_exec_prefix=/usr/ccs/bin
  5987. ;;
  5988. esac
  5989. extra_arflags_for_target=
  5990. extra_nmflags_for_target=
  5991. extra_ranlibflags_for_target=
  5992. target_makefile_frag=/dev/null
  5993. case "${target}" in
  5994. spu-*-*)
  5995. target_makefile_frag="config/mt-spu"
  5996. ;;
  5997. mips*-sde-elf*)
  5998. target_makefile_frag="config/mt-sde"
  5999. ;;
  6000. mipsisa*-*-elfoabi*)
  6001. target_makefile_frag="config/mt-mips-elfoabi"
  6002. ;;
  6003. mips*-*-*linux* | mips*-*-gnu*)
  6004. target_makefile_frag="config/mt-mips-gnu"
  6005. ;;
  6006. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  6007. target_makefile_frag="config/mt-gnu"
  6008. ;;
  6009. *-*-aix4.[3456789]* | *-*-aix[56789].*)
  6010. # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
  6011. # commands to handle both 32-bit and 64-bit objects. These flags are
  6012. # harmless if we're using GNU nm or ar.
  6013. extra_arflags_for_target=" -X32_64"
  6014. extra_nmflags_for_target=" -B -X32_64"
  6015. ;;
  6016. *-*-darwin[3-9]*)
  6017. # ranlib before Darwin10 requires the -c flag to look at common symbols.
  6018. extra_ranlibflags_for_target=" -c"
  6019. ;;
  6020. esac
  6021. alphaieee_frag=/dev/null
  6022. case $target in
  6023. alpha*-*-*)
  6024. # This just makes sure to use the -mieee option to build target libs.
  6025. # This should probably be set individually by each library.
  6026. alphaieee_frag="config/mt-alphaieee"
  6027. ;;
  6028. esac
  6029. # If --enable-target-optspace always use -Os instead of -O2 to build
  6030. # the target libraries, similarly if it is not specified, use -Os
  6031. # on selected platforms.
  6032. ospace_frag=/dev/null
  6033. case "${enable_target_optspace}:${target}" in
  6034. yes:*)
  6035. ospace_frag="config/mt-ospace"
  6036. ;;
  6037. :d30v-*)
  6038. ospace_frag="config/mt-d30v"
  6039. ;;
  6040. :m32r-* | :d10v-* | :fr30-*)
  6041. ospace_frag="config/mt-ospace"
  6042. ;;
  6043. no:* | :*)
  6044. ;;
  6045. *)
  6046. echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
  6047. ;;
  6048. esac
  6049. # Default to using --with-stabs for certain targets.
  6050. if test x${with_stabs} = x ; then
  6051. case "${target}" in
  6052. mips*-*-irix[56]*)
  6053. ;;
  6054. mips*-*-* | alpha*-*-osf*)
  6055. with_stabs=yes;
  6056. extra_host_args="${extra_host_args} --with-stabs"
  6057. ;;
  6058. esac
  6059. fi
  6060. # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
  6061. # them automatically.
  6062. case "${host}" in
  6063. hppa*64*-*-hpux11*)
  6064. extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
  6065. ;;
  6066. esac
  6067. # Some systems (e.g., one of the i386-aix systems the gas testers are
  6068. # using) don't handle "\$" correctly, so don't use it here.
  6069. tooldir='${exec_prefix}'/${target_noncanonical}
  6070. build_tooldir=${tooldir}
  6071. # Create a .gdbinit file which runs the one in srcdir
  6072. # and tells GDB to look there for source files.
  6073. if test -r ${srcdir}/.gdbinit ; then
  6074. case ${srcdir} in
  6075. .) ;;
  6076. *) cat > ./.gdbinit <<EOF
  6077. # ${NO_EDIT}
  6078. dir ${srcdir}
  6079. dir .
  6080. source ${srcdir}/.gdbinit
  6081. EOF
  6082. ;;
  6083. esac
  6084. fi
  6085. # Make sure that the compiler is able to generate an executable. If it
  6086. # can't, we are probably in trouble. We don't care whether we can run the
  6087. # executable--we might be using a cross compiler--we only care whether it
  6088. # can be created. At this point the main configure script has set CC.
  6089. we_are_ok=no
  6090. echo "int main () { return 0; }" > conftest.c
  6091. ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
  6092. if test $? = 0 ; then
  6093. if test -s conftest || test -s conftest.exe ; then
  6094. we_are_ok=yes
  6095. fi
  6096. fi
  6097. case $we_are_ok in
  6098. no)
  6099. echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
  6100. echo 1>&2 "*** You must set the environment variable CC to a working compiler."
  6101. rm -f conftest*
  6102. exit 1
  6103. ;;
  6104. esac
  6105. rm -f conftest*
  6106. # The Solaris /usr/ucb/cc compiler does not appear to work.
  6107. case "${host}" in
  6108. sparc-sun-solaris2*)
  6109. CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
  6110. if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
  6111. could_use=
  6112. test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
  6113. if test -d /opt/cygnus/bin ; then
  6114. if test "$could_use" = "" ; then
  6115. could_use="/opt/cygnus/bin"
  6116. else
  6117. could_use="$could_use or /opt/cygnus/bin"
  6118. fi
  6119. fi
  6120. if test "$could_use" = "" ; then
  6121. echo "Warning: compilation may fail because you're using"
  6122. echo "/usr/ucb/cc. You should change your PATH or CC "
  6123. echo "variable and rerun configure."
  6124. else
  6125. echo "Warning: compilation may fail because you're using"
  6126. echo "/usr/ucb/cc, when you should use the C compiler from"
  6127. echo "$could_use. You should change your"
  6128. echo "PATH or CC variable and rerun configure."
  6129. fi
  6130. fi
  6131. ;;
  6132. esac
  6133. # Decide which environment variable is used to find dynamic libraries.
  6134. case "${host}" in
  6135. *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
  6136. *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
  6137. *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
  6138. *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
  6139. esac
  6140. # On systems where the dynamic library environment variable is PATH,
  6141. # gcc/ will put dynamic libraries into a subdirectory to avoid adding
  6142. # built executables to PATH.
  6143. if test "$RPATH_ENVVAR" = PATH; then
  6144. GCC_SHLIB_SUBDIR=/shlib
  6145. else
  6146. GCC_SHLIB_SUBDIR=
  6147. fi
  6148. # Record target_configdirs and the configure arguments for target and
  6149. # build configuration in Makefile.
  6150. target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
  6151. build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
  6152. # If we are building libgomp, bootstrap it.
  6153. if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
  6154. bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
  6155. fi
  6156. # Determine whether gdb needs tk/tcl or not.
  6157. # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
  6158. # and in that case we want gdb to be built without tk. Ugh!
  6159. # In fact I believe gdb is the *only* package directly dependent on tk,
  6160. # so we should be able to put the 'maybe's in unconditionally and
  6161. # leave out the maybe dependencies when enable_gdbtk is false. I'm not
  6162. # 100% sure that that's safe though.
  6163. gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
  6164. case "$enable_gdbtk" in
  6165. no)
  6166. GDB_TK="" ;;
  6167. yes)
  6168. GDB_TK="${gdb_tk}" ;;
  6169. *)
  6170. # Only add the dependency on gdbtk when GDBtk is part of the gdb
  6171. # distro. Eventually someone will fix this and move Insight, nee
  6172. # gdbtk to a separate directory.
  6173. if test -d ${srcdir}/gdb/gdbtk ; then
  6174. GDB_TK="${gdb_tk}"
  6175. else
  6176. GDB_TK=""
  6177. fi
  6178. ;;
  6179. esac
  6180. CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
  6181. INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
  6182. # Strip out unwanted targets.
  6183. # While at that, we remove Makefiles if we were started for recursive
  6184. # configuration, so that the top-level Makefile reconfigures them,
  6185. # like we used to do when configure itself was recursive.
  6186. # Loop over modules. We used to use the "$extrasub" feature from Autoconf
  6187. # but now we're fixing up the Makefile ourselves with the additional
  6188. # commands passed to AC_CONFIG_FILES. Use separate variables
  6189. # extrasub-{build,host,target} not because there is any reason to split
  6190. # the substitutions up that way, but only to remain below the limit of
  6191. # 99 commands in a script, for HP-UX sed.
  6192. # Do not nest @if/@endif pairs, because configure will not warn you at all.
  6193. # Check whether --enable-bootstrap was given.
  6194. if test "${enable_bootstrap+set}" = set; then :
  6195. enableval=$enable_bootstrap;
  6196. else
  6197. enable_bootstrap=default
  6198. fi
  6199. # Issue errors and warnings for invalid/strange bootstrap combinations.
  6200. case "$configdirs" in
  6201. *gcc*) have_compiler=yes ;;
  6202. *) have_compiler=no ;;
  6203. esac
  6204. case "$have_compiler:$host:$target:$enable_bootstrap" in
  6205. *:*:*:no) ;;
  6206. # Default behavior. Enable bootstrap if we have a compiler
  6207. # and we are in a native configuration.
  6208. yes:$build:$build:default)
  6209. enable_bootstrap=yes ;;
  6210. *:*:*:default)
  6211. enable_bootstrap=no ;;
  6212. # We have a compiler and we are in a native configuration, bootstrap is ok
  6213. yes:$build:$build:yes)
  6214. ;;
  6215. # Other configurations, but we have a compiler. Assume the user knows
  6216. # what he's doing.
  6217. yes:*:*:yes)
  6218. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
  6219. $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
  6220. ;;
  6221. # No compiler: if they passed --enable-bootstrap explicitly, fail
  6222. no:*:*:yes)
  6223. as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
  6224. # Fail if wrong command line
  6225. *)
  6226. as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
  6227. ;;
  6228. esac
  6229. case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
  6230. *,c++,*:yes:yes) ;;
  6231. *:yes:yes)
  6232. as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
  6233. ;;
  6234. esac
  6235. case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
  6236. yes:yes:*\ gold\ *:*,c++,*) ;;
  6237. yes:yes:*\ gold\ *:*)
  6238. as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
  6239. ;;
  6240. esac
  6241. # Adjust the toplevel makefile according to whether bootstrap was selected.
  6242. case $enable_bootstrap in
  6243. yes)
  6244. bootstrap_suffix=bootstrap
  6245. BUILD_CONFIG=bootstrap-debug
  6246. ;;
  6247. no)
  6248. bootstrap_suffix=no-bootstrap
  6249. BUILD_CONFIG=
  6250. ;;
  6251. esac
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
  6253. $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
  6254. # Check whether --with-build-config was given.
  6255. if test "${with_build_config+set}" = set; then :
  6256. withval=$with_build_config; case $with_build_config in
  6257. yes) with_build_config= ;;
  6258. no) with_build_config= BUILD_CONFIG= ;;
  6259. esac
  6260. fi
  6261. if test "x${with_build_config}" != x; then
  6262. BUILD_CONFIG=$with_build_config
  6263. else
  6264. case $BUILD_CONFIG in
  6265. bootstrap-debug)
  6266. if echo "int f (void) { return 0; }" > conftest.c &&
  6267. ${CC} -c conftest.c &&
  6268. mv conftest.o conftest.o.g0 &&
  6269. ${CC} -c -g conftest.c &&
  6270. mv conftest.o conftest.o.g &&
  6271. ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
  6272. :
  6273. else
  6274. BUILD_CONFIG=
  6275. fi
  6276. rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
  6277. ;;
  6278. esac
  6279. fi
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
  6281. $as_echo "$BUILD_CONFIG" >&6; }
  6282. extrasub_build=
  6283. for module in ${build_configdirs} ; do
  6284. if test -z "${no_recursion}" \
  6285. && test -f ${build_subdir}/${module}/Makefile; then
  6286. echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
  6287. rm -f ${build_subdir}/${module}/Makefile
  6288. fi
  6289. extrasub_build="$extrasub_build
  6290. /^@if build-$module\$/d
  6291. /^@endif build-$module\$/d
  6292. /^@if build-$module-$bootstrap_suffix\$/d
  6293. /^@endif build-$module-$bootstrap_suffix\$/d"
  6294. done
  6295. extrasub_host=
  6296. for module in ${configdirs} ; do
  6297. if test -z "${no_recursion}"; then
  6298. for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
  6299. if test -f ${file}; then
  6300. echo 1>&2 "*** removing ${file} to force reconfigure"
  6301. rm -f ${file}
  6302. fi
  6303. done
  6304. fi
  6305. extrasub_host="$extrasub_host
  6306. /^@if $module\$/d
  6307. /^@endif $module\$/d
  6308. /^@if $module-$bootstrap_suffix\$/d
  6309. /^@endif $module-$bootstrap_suffix\$/d"
  6310. done
  6311. extrasub_target=
  6312. for module in ${target_configdirs} ; do
  6313. if test -z "${no_recursion}" \
  6314. && test -f ${target_subdir}/${module}/Makefile; then
  6315. echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
  6316. rm -f ${target_subdir}/${module}/Makefile
  6317. fi
  6318. # We only bootstrap target libraries listed in bootstrap_target_libs.
  6319. case $bootstrap_target_libs in
  6320. *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
  6321. *) target_bootstrap_suffix=no-bootstrap ;;
  6322. esac
  6323. extrasub_target="$extrasub_target
  6324. /^@if target-$module\$/d
  6325. /^@endif target-$module\$/d
  6326. /^@if target-$module-$target_bootstrap_suffix\$/d
  6327. /^@endif target-$module-$target_bootstrap_suffix\$/d"
  6328. done
  6329. # Do the final fixup along with target modules.
  6330. extrasub_target="$extrasub_target
  6331. /^@if /,/^@endif /d"
  6332. # Create the serialization dependencies. This uses a temporary file.
  6333. # Check whether --enable-serial-configure was given.
  6334. if test "${enable_serial_configure+set}" = set; then :
  6335. enableval=$enable_serial_configure;
  6336. fi
  6337. case ${enable_serial_configure} in
  6338. yes)
  6339. enable_serial_build_configure=yes
  6340. enable_serial_host_configure=yes
  6341. enable_serial_target_configure=yes
  6342. ;;
  6343. esac
  6344. # These force 'configure's to be done one at a time, to avoid problems
  6345. # with contention over a shared config.cache.
  6346. rm -f serdep.tmp
  6347. echo '# serdep.tmp' > serdep.tmp
  6348. olditem=
  6349. test "x${enable_serial_build_configure}" = xyes &&
  6350. for item in ${build_configdirs} ; do
  6351. case ${olditem} in
  6352. "") ;;
  6353. *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
  6354. esac
  6355. olditem=${item}
  6356. done
  6357. olditem=
  6358. test "x${enable_serial_host_configure}" = xyes &&
  6359. for item in ${configdirs} ; do
  6360. case ${olditem} in
  6361. "") ;;
  6362. *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
  6363. esac
  6364. olditem=${item}
  6365. done
  6366. olditem=
  6367. test "x${enable_serial_target_configure}" = xyes &&
  6368. for item in ${target_configdirs} ; do
  6369. case ${olditem} in
  6370. "") ;;
  6371. *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
  6372. esac
  6373. olditem=${item}
  6374. done
  6375. serialization_dependencies=serdep.tmp
  6376. # Base args. Strip norecursion, cache-file, srcdir, host, build,
  6377. # target, nonopt, and variable assignments. These are the ones we
  6378. # might not want to pass down to subconfigures. The exception being
  6379. # --cache-file=/dev/null, which is used to turn off the use of cache
  6380. # files altogether, and which should be passed on to subconfigures.
  6381. # Also strip program-prefix, program-suffix, and program-transform-name,
  6382. # so that we can pass down a consistent program-transform-name.
  6383. baseargs=
  6384. tbaseargs=
  6385. keep_next=no
  6386. skip_next=no
  6387. eval "set -- $ac_configure_args"
  6388. for ac_arg
  6389. do
  6390. if test X"$skip_next" = X"yes"; then
  6391. skip_next=no
  6392. continue
  6393. fi
  6394. if test X"$keep_next" = X"yes"; then
  6395. case $ac_arg in
  6396. *\'*)
  6397. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6398. esac
  6399. baseargs="$baseargs '$ac_arg'"
  6400. tbaseargs="$tbaseargs '$ac_arg'"
  6401. keep_next=no
  6402. continue
  6403. fi
  6404. # Handle separated arguments. Based on the logic generated by
  6405. # autoconf 2.59.
  6406. case $ac_arg in
  6407. *=* | --config-cache | -C | -disable-* | --disable-* \
  6408. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  6409. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  6410. | -with-* | --with-* | -without-* | --without-* | --x)
  6411. separate_arg=no
  6412. ;;
  6413. -*)
  6414. separate_arg=yes
  6415. ;;
  6416. *)
  6417. separate_arg=no
  6418. ;;
  6419. esac
  6420. skip_targ=no
  6421. case $ac_arg in
  6422. --with-* | --without-*)
  6423. libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
  6424. case $libopt in
  6425. *[-_]include)
  6426. lib=`echo "$libopt" | sed 's,[-_]include$,,'`
  6427. ;;
  6428. *[-_]lib)
  6429. lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
  6430. ;;
  6431. *)
  6432. lib=$libopt
  6433. ;;
  6434. esac
  6435. case $lib in
  6436. mpc | mpfr | gmp | ppl | cloog)
  6437. # If we're processing --with-$lib, --with-$lib-include or
  6438. # --with-$lib-lib, for one of the libs above, and target is
  6439. # different from host, don't pass the current argument to any
  6440. # target library's configure.
  6441. if test x$is_cross_compiler = xyes; then
  6442. skip_targ=yes
  6443. fi
  6444. ;;
  6445. esac
  6446. ;;
  6447. esac
  6448. case "$ac_arg" in
  6449. --cache-file=/dev/null | \
  6450. -cache-file=/dev/null )
  6451. # Handled here to avoid the test to skip args below.
  6452. baseargs="$baseargs '$ac_arg'"
  6453. tbaseargs="$tbaseargs '$ac_arg'"
  6454. # Assert: $separate_arg should always be no.
  6455. keep_next=$separate_arg
  6456. ;;
  6457. --no*)
  6458. continue
  6459. ;;
  6460. --c* | \
  6461. --sr* | \
  6462. --ho* | \
  6463. --bu* | \
  6464. --t* | \
  6465. --program-* | \
  6466. -cache_file* | \
  6467. -srcdir* | \
  6468. -host* | \
  6469. -build* | \
  6470. -target* | \
  6471. -program-prefix* | \
  6472. -program-suffix* | \
  6473. -program-transform-name* )
  6474. skip_next=$separate_arg
  6475. continue
  6476. ;;
  6477. -*)
  6478. # An option. Add it.
  6479. case $ac_arg in
  6480. *\'*)
  6481. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6482. esac
  6483. baseargs="$baseargs '$ac_arg'"
  6484. if test X"$skip_targ" = Xno; then
  6485. tbaseargs="$tbaseargs '$ac_arg'"
  6486. fi
  6487. keep_next=$separate_arg
  6488. ;;
  6489. *)
  6490. # Either a variable assignment, or a nonopt (triplet). Don't
  6491. # pass it down; let the Makefile handle this.
  6492. continue
  6493. ;;
  6494. esac
  6495. done
  6496. # Remove the initial space we just introduced and, as these will be
  6497. # expanded by make, quote '$'.
  6498. baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  6499. # Add in --program-transform-name, after --program-prefix and
  6500. # --program-suffix have been applied to it. Autoconf has already
  6501. # doubled dollar signs and backslashes in program_transform_name; we want
  6502. # the backslashes un-doubled, and then the entire thing wrapped in single
  6503. # quotes, because this will be expanded first by make and then by the shell.
  6504. # Also, because we want to override the logic in subdir configure scripts to
  6505. # choose program_transform_name, replace any s,x,x, with s,y,y,.
  6506. sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
  6507. ${program_transform_name}
  6508. EOF_SED
  6509. gcc_transform_name=`cat conftestsed.out`
  6510. rm -f conftestsed.out
  6511. baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
  6512. tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
  6513. if test "$silent" = yes; then
  6514. baseargs="$baseargs --silent"
  6515. tbaseargs="$tbaseargs --silent"
  6516. fi
  6517. baseargs="$baseargs --disable-option-checking"
  6518. tbaseargs="$tbaseargs --disable-option-checking"
  6519. # Record and document user additions to sub configure arguments.
  6520. # For the build-side libraries, we just need to pretend we're native,
  6521. # and not use the same cache file. Multilibs are neither needed nor
  6522. # desired.
  6523. build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
  6524. # For host modules, accept cache file option, or specification as blank.
  6525. case "${cache_file}" in
  6526. "") # empty
  6527. cache_file_option="" ;;
  6528. /* | [A-Za-z]:[\\/]* ) # absolute path
  6529. cache_file_option="--cache-file=${cache_file}" ;;
  6530. *) # relative path
  6531. cache_file_option="--cache-file=../${cache_file}" ;;
  6532. esac
  6533. # Host dirs don't like to share a cache file either, horribly enough.
  6534. # This seems to be due to autoconf 2.5x stupidity.
  6535. host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
  6536. target_configargs="$target_configargs ${tbaseargs}"
  6537. # Passing a --with-cross-host argument lets the target libraries know
  6538. # whether they are being built with a cross-compiler or being built
  6539. # native. However, it would be better to use other mechanisms to make the
  6540. # sorts of decisions they want to make on this basis. Please consider
  6541. # this option to be deprecated. FIXME.
  6542. if test x${is_cross_compiler} = xyes ; then
  6543. target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
  6544. fi
  6545. # Default to --enable-multilib.
  6546. if test x${enable_multilib} = x ; then
  6547. target_configargs="--enable-multilib ${target_configargs}"
  6548. fi
  6549. # Pass --with-newlib if appropriate. Note that target_configdirs has
  6550. # changed from the earlier setting of with_newlib.
  6551. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
  6552. target_configargs="--with-newlib ${target_configargs}"
  6553. fi
  6554. # Different target subdirs use different values of certain variables
  6555. # (notably CXX). Worse, multilibs use *lots* of different values.
  6556. # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
  6557. # it doesn't automatically accept command-line overrides of them.
  6558. # This means it's not safe for target subdirs to share a cache file,
  6559. # which is disgusting, but there you have it. Hopefully this can be
  6560. # fixed in future. It's still worthwhile to use a cache file for each
  6561. # directory. I think.
  6562. # Pass the appropriate --build, --host, --target and --cache-file arguments.
  6563. # We need to pass --target, as newer autoconf's requires consistency
  6564. # for target_alias and gcc doesn't manage it consistently.
  6565. target_configargs="--cache-file=./config.cache ${target_configargs}"
  6566. FLAGS_FOR_TARGET=
  6567. case " $target_configdirs " in
  6568. *" newlib "*)
  6569. case " $target_configargs " in
  6570. *" --with-newlib "*)
  6571. case "$target" in
  6572. *-cygwin*)
  6573. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
  6574. ;;
  6575. esac
  6576. # If we're not building GCC, don't discard standard headers.
  6577. if test -d ${srcdir}/gcc; then
  6578. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
  6579. if test "${build}" != "${host}"; then
  6580. # On Canadian crosses, CC_FOR_TARGET will have already been set
  6581. # by `configure', so we won't have an opportunity to add -Bgcc/
  6582. # to it. This is right: we don't want to search that directory
  6583. # for binaries, but we want the header files in there, so add
  6584. # them explicitly.
  6585. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
  6586. # Someone might think of using the pre-installed headers on
  6587. # Canadian crosses, in case the installed compiler is not fully
  6588. # compatible with the compiler being built. In this case, it
  6589. # would be better to flag an error than risking having
  6590. # incompatible object files being constructed. We can't
  6591. # guarantee that an error will be flagged, but let's hope the
  6592. # compiler will do it, when presented with incompatible header
  6593. # files.
  6594. fi
  6595. fi
  6596. case "${target}-${is_cross_compiler}" in
  6597. i[3456789]86-*-linux*-no)
  6598. # Here host == target, so we don't need to build gcc,
  6599. # so we don't want to discard standard headers.
  6600. FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
  6601. ;;
  6602. *)
  6603. # If we're building newlib, use its generic headers last, but search
  6604. # for any libc-related directories first (so make it the last -B
  6605. # switch).
  6606. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
  6607. # If we're building libgloss, find the startup file, simulator library
  6608. # and linker script.
  6609. case " $target_configdirs " in
  6610. *" libgloss "*)
  6611. # Look for startup file, simulator library and maybe linker script.
  6612. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
  6613. # Look for libnosys.a in case the target needs it.
  6614. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
  6615. # Most targets have the linker script in the source directory.
  6616. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
  6617. ;;
  6618. esac
  6619. ;;
  6620. esac
  6621. ;;
  6622. esac
  6623. ;;
  6624. esac
  6625. case "$target" in
  6626. x86_64-*mingw* | *-w64-mingw*)
  6627. # MinGW-w64 does not use newlib, nor does it use winsup. It may,
  6628. # however, use a symlink named 'mingw' in ${prefix} .
  6629. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
  6630. ;;
  6631. *-mingw*)
  6632. # MinGW can't be handled as Cygwin above since it does not use newlib.
  6633. 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'
  6634. ;;
  6635. esac
  6636. # Allow the user to override the flags for
  6637. # our build compiler if desired.
  6638. if test x"${build}" = x"${host}" ; then
  6639. CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
  6640. CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
  6641. LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
  6642. fi
  6643. # On Canadian crosses, we'll be searching the right directories for
  6644. # the previously-installed cross compiler, so don't bother to add
  6645. # flags for directories within the install tree of the compiler
  6646. # being built; programs in there won't even run.
  6647. if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
  6648. # Search for pre-installed headers if nothing else fits.
  6649. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
  6650. fi
  6651. if test "x${use_gnu_ld}" = x &&
  6652. echo " ${configdirs} " | grep " ld " > /dev/null ; then
  6653. # Arrange for us to find uninstalled linker scripts.
  6654. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
  6655. fi
  6656. # Search for other target-specific linker scripts and such.
  6657. case "${target}" in
  6658. mep*)
  6659. FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
  6660. ;;
  6661. esac
  6662. # Makefile fragments.
  6663. for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
  6664. do
  6665. eval fragval=\$$frag
  6666. if test $fragval != /dev/null; then
  6667. eval $frag=${srcdir}/$fragval
  6668. fi
  6669. done
  6670. # Miscellanea: directories, flags, etc.
  6671. # Build module lists & subconfigure args.
  6672. # Host module lists & subconfigure args.
  6673. # Target module lists & subconfigure args.
  6674. # Build tools.
  6675. # Generate default definitions for YACC, M4, LEX and other programs that run
  6676. # on the build machine. These are used if the Makefile can't locate these
  6677. # programs in objdir.
  6678. MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
  6679. for ac_prog in 'bison -y' byacc yacc
  6680. do
  6681. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6682. set dummy $ac_prog; ac_word=$2
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6684. $as_echo_n "checking for $ac_word... " >&6; }
  6685. if test "${ac_cv_prog_YACC+set}" = set; then :
  6686. $as_echo_n "(cached) " >&6
  6687. else
  6688. if test -n "$YACC"; then
  6689. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  6690. else
  6691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6692. for as_dir in $PATH
  6693. do
  6694. IFS=$as_save_IFS
  6695. test -z "$as_dir" && as_dir=.
  6696. for ac_exec_ext in '' $ac_executable_extensions; do
  6697. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6698. ac_cv_prog_YACC="$ac_prog"
  6699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6700. break 2
  6701. fi
  6702. done
  6703. done
  6704. IFS=$as_save_IFS
  6705. fi
  6706. fi
  6707. YACC=$ac_cv_prog_YACC
  6708. if test -n "$YACC"; then
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  6710. $as_echo "$YACC" >&6; }
  6711. else
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6713. $as_echo "no" >&6; }
  6714. fi
  6715. test -n "$YACC" && break
  6716. done
  6717. test -n "$YACC" || YACC="$MISSING bison -y"
  6718. case " $build_configdirs " in
  6719. *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
  6720. esac
  6721. for ac_prog in bison
  6722. do
  6723. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6724. set dummy $ac_prog; ac_word=$2
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6726. $as_echo_n "checking for $ac_word... " >&6; }
  6727. if test "${ac_cv_prog_BISON+set}" = set; then :
  6728. $as_echo_n "(cached) " >&6
  6729. else
  6730. if test -n "$BISON"; then
  6731. ac_cv_prog_BISON="$BISON" # Let the user override the test.
  6732. else
  6733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6734. for as_dir in $PATH
  6735. do
  6736. IFS=$as_save_IFS
  6737. test -z "$as_dir" && as_dir=.
  6738. for ac_exec_ext in '' $ac_executable_extensions; do
  6739. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6740. ac_cv_prog_BISON="$ac_prog"
  6741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6742. break 2
  6743. fi
  6744. done
  6745. done
  6746. IFS=$as_save_IFS
  6747. fi
  6748. fi
  6749. BISON=$ac_cv_prog_BISON
  6750. if test -n "$BISON"; then
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  6752. $as_echo "$BISON" >&6; }
  6753. else
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6755. $as_echo "no" >&6; }
  6756. fi
  6757. test -n "$BISON" && break
  6758. done
  6759. test -n "$BISON" || BISON="$MISSING bison"
  6760. case " $build_configdirs " in
  6761. *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
  6762. esac
  6763. for ac_prog in gm4 gnum4 m4
  6764. do
  6765. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6766. set dummy $ac_prog; ac_word=$2
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6768. $as_echo_n "checking for $ac_word... " >&6; }
  6769. if test "${ac_cv_prog_M4+set}" = set; then :
  6770. $as_echo_n "(cached) " >&6
  6771. else
  6772. if test -n "$M4"; then
  6773. ac_cv_prog_M4="$M4" # Let the user override the test.
  6774. else
  6775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6776. for as_dir in $PATH
  6777. do
  6778. IFS=$as_save_IFS
  6779. test -z "$as_dir" && as_dir=.
  6780. for ac_exec_ext in '' $ac_executable_extensions; do
  6781. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6782. ac_cv_prog_M4="$ac_prog"
  6783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6784. break 2
  6785. fi
  6786. done
  6787. done
  6788. IFS=$as_save_IFS
  6789. fi
  6790. fi
  6791. M4=$ac_cv_prog_M4
  6792. if test -n "$M4"; then
  6793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
  6794. $as_echo "$M4" >&6; }
  6795. else
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6797. $as_echo "no" >&6; }
  6798. fi
  6799. test -n "$M4" && break
  6800. done
  6801. test -n "$M4" || M4="$MISSING m4"
  6802. case " $build_configdirs " in
  6803. *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
  6804. esac
  6805. for ac_prog in flex lex
  6806. do
  6807. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6808. set dummy $ac_prog; ac_word=$2
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6810. $as_echo_n "checking for $ac_word... " >&6; }
  6811. if test "${ac_cv_prog_LEX+set}" = set; then :
  6812. $as_echo_n "(cached) " >&6
  6813. else
  6814. if test -n "$LEX"; then
  6815. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  6816. else
  6817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6818. for as_dir in $PATH
  6819. do
  6820. IFS=$as_save_IFS
  6821. test -z "$as_dir" && as_dir=.
  6822. for ac_exec_ext in '' $ac_executable_extensions; do
  6823. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6824. ac_cv_prog_LEX="$ac_prog"
  6825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6826. break 2
  6827. fi
  6828. done
  6829. done
  6830. IFS=$as_save_IFS
  6831. fi
  6832. fi
  6833. LEX=$ac_cv_prog_LEX
  6834. if test -n "$LEX"; then
  6835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  6836. $as_echo "$LEX" >&6; }
  6837. else
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6839. $as_echo "no" >&6; }
  6840. fi
  6841. test -n "$LEX" && break
  6842. done
  6843. test -n "$LEX" || LEX="$MISSING flex"
  6844. case " $build_configdirs " in
  6845. *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  6846. *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
  6847. esac
  6848. for ac_prog in flex
  6849. do
  6850. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6851. set dummy $ac_prog; ac_word=$2
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6853. $as_echo_n "checking for $ac_word... " >&6; }
  6854. if test "${ac_cv_prog_FLEX+set}" = set; then :
  6855. $as_echo_n "(cached) " >&6
  6856. else
  6857. if test -n "$FLEX"; then
  6858. ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
  6859. else
  6860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6861. for as_dir in $PATH
  6862. do
  6863. IFS=$as_save_IFS
  6864. test -z "$as_dir" && as_dir=.
  6865. for ac_exec_ext in '' $ac_executable_extensions; do
  6866. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6867. ac_cv_prog_FLEX="$ac_prog"
  6868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6869. break 2
  6870. fi
  6871. done
  6872. done
  6873. IFS=$as_save_IFS
  6874. fi
  6875. fi
  6876. FLEX=$ac_cv_prog_FLEX
  6877. if test -n "$FLEX"; then
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  6879. $as_echo "$FLEX" >&6; }
  6880. else
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6882. $as_echo "no" >&6; }
  6883. fi
  6884. test -n "$FLEX" && break
  6885. done
  6886. test -n "$FLEX" || FLEX="$MISSING flex"
  6887. case " $build_configdirs " in
  6888. *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  6889. esac
  6890. for ac_prog in makeinfo
  6891. do
  6892. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6893. set dummy $ac_prog; ac_word=$2
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6895. $as_echo_n "checking for $ac_word... " >&6; }
  6896. if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
  6897. $as_echo_n "(cached) " >&6
  6898. else
  6899. if test -n "$MAKEINFO"; then
  6900. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  6901. else
  6902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6903. for as_dir in $PATH
  6904. do
  6905. IFS=$as_save_IFS
  6906. test -z "$as_dir" && as_dir=.
  6907. for ac_exec_ext in '' $ac_executable_extensions; do
  6908. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6909. ac_cv_prog_MAKEINFO="$ac_prog"
  6910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6911. break 2
  6912. fi
  6913. done
  6914. done
  6915. IFS=$as_save_IFS
  6916. fi
  6917. fi
  6918. MAKEINFO=$ac_cv_prog_MAKEINFO
  6919. if test -n "$MAKEINFO"; then
  6920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  6921. $as_echo "$MAKEINFO" >&6; }
  6922. else
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6924. $as_echo "no" >&6; }
  6925. fi
  6926. test -n "$MAKEINFO" && break
  6927. done
  6928. test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
  6929. case " $build_configdirs " in
  6930. *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
  6931. *)
  6932. # For an installed makeinfo, we require it to be from texinfo 4.7 or
  6933. # higher, else we use the "missing" dummy.
  6934. if ${MAKEINFO} --version \
  6935. | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
  6936. :
  6937. else
  6938. MAKEINFO="$MISSING makeinfo"
  6939. fi
  6940. ;;
  6941. esac
  6942. # FIXME: expect and dejagnu may become build tools?
  6943. for ac_prog in expect
  6944. do
  6945. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6946. set dummy $ac_prog; ac_word=$2
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6948. $as_echo_n "checking for $ac_word... " >&6; }
  6949. if test "${ac_cv_prog_EXPECT+set}" = set; then :
  6950. $as_echo_n "(cached) " >&6
  6951. else
  6952. if test -n "$EXPECT"; then
  6953. ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
  6954. else
  6955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6956. for as_dir in $PATH
  6957. do
  6958. IFS=$as_save_IFS
  6959. test -z "$as_dir" && as_dir=.
  6960. for ac_exec_ext in '' $ac_executable_extensions; do
  6961. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6962. ac_cv_prog_EXPECT="$ac_prog"
  6963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6964. break 2
  6965. fi
  6966. done
  6967. done
  6968. IFS=$as_save_IFS
  6969. fi
  6970. fi
  6971. EXPECT=$ac_cv_prog_EXPECT
  6972. if test -n "$EXPECT"; then
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
  6974. $as_echo "$EXPECT" >&6; }
  6975. else
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6977. $as_echo "no" >&6; }
  6978. fi
  6979. test -n "$EXPECT" && break
  6980. done
  6981. test -n "$EXPECT" || EXPECT="expect"
  6982. case " $configdirs " in
  6983. *" expect "*)
  6984. test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
  6985. ;;
  6986. esac
  6987. for ac_prog in runtest
  6988. do
  6989. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6990. set dummy $ac_prog; ac_word=$2
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6992. $as_echo_n "checking for $ac_word... " >&6; }
  6993. if test "${ac_cv_prog_RUNTEST+set}" = set; then :
  6994. $as_echo_n "(cached) " >&6
  6995. else
  6996. if test -n "$RUNTEST"; then
  6997. ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
  6998. else
  6999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7000. for as_dir in $PATH
  7001. do
  7002. IFS=$as_save_IFS
  7003. test -z "$as_dir" && as_dir=.
  7004. for ac_exec_ext in '' $ac_executable_extensions; do
  7005. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7006. ac_cv_prog_RUNTEST="$ac_prog"
  7007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7008. break 2
  7009. fi
  7010. done
  7011. done
  7012. IFS=$as_save_IFS
  7013. fi
  7014. fi
  7015. RUNTEST=$ac_cv_prog_RUNTEST
  7016. if test -n "$RUNTEST"; then
  7017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
  7018. $as_echo "$RUNTEST" >&6; }
  7019. else
  7020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7021. $as_echo "no" >&6; }
  7022. fi
  7023. test -n "$RUNTEST" && break
  7024. done
  7025. test -n "$RUNTEST" || RUNTEST="runtest"
  7026. case " $configdirs " in
  7027. *" dejagnu "*)
  7028. test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
  7029. ;;
  7030. esac
  7031. # Host tools.
  7032. ncn_tool_prefix=
  7033. test -n "$host_alias" && ncn_tool_prefix=$host_alias-
  7034. ncn_target_tool_prefix=
  7035. test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
  7036. if test -n "$AR"; then
  7037. ac_cv_prog_AR=$AR
  7038. elif test -n "$ac_cv_prog_AR"; then
  7039. AR=$ac_cv_prog_AR
  7040. fi
  7041. if test -n "$ac_cv_prog_AR"; then
  7042. for ncn_progname in ar; do
  7043. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7044. set dummy ${ncn_progname}; ac_word=$2
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7046. $as_echo_n "checking for $ac_word... " >&6; }
  7047. if test "${ac_cv_prog_AR+set}" = set; then :
  7048. $as_echo_n "(cached) " >&6
  7049. else
  7050. if test -n "$AR"; then
  7051. ac_cv_prog_AR="$AR" # Let the user override the test.
  7052. else
  7053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7054. for as_dir in $PATH
  7055. do
  7056. IFS=$as_save_IFS
  7057. test -z "$as_dir" && as_dir=.
  7058. for ac_exec_ext in '' $ac_executable_extensions; do
  7059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7060. ac_cv_prog_AR="${ncn_progname}"
  7061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7062. break 2
  7063. fi
  7064. done
  7065. done
  7066. IFS=$as_save_IFS
  7067. fi
  7068. fi
  7069. AR=$ac_cv_prog_AR
  7070. if test -n "$AR"; then
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7072. $as_echo "$AR" >&6; }
  7073. else
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7075. $as_echo "no" >&6; }
  7076. fi
  7077. done
  7078. fi
  7079. for ncn_progname in ar; do
  7080. if test -n "$ncn_tool_prefix"; then
  7081. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7082. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7084. $as_echo_n "checking for $ac_word... " >&6; }
  7085. if test "${ac_cv_prog_AR+set}" = set; then :
  7086. $as_echo_n "(cached) " >&6
  7087. else
  7088. if test -n "$AR"; then
  7089. ac_cv_prog_AR="$AR" # Let the user override the test.
  7090. else
  7091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7092. for as_dir in $PATH
  7093. do
  7094. IFS=$as_save_IFS
  7095. test -z "$as_dir" && as_dir=.
  7096. for ac_exec_ext in '' $ac_executable_extensions; do
  7097. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7098. ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
  7099. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7100. break 2
  7101. fi
  7102. done
  7103. done
  7104. IFS=$as_save_IFS
  7105. fi
  7106. fi
  7107. AR=$ac_cv_prog_AR
  7108. if test -n "$AR"; then
  7109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7110. $as_echo "$AR" >&6; }
  7111. else
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7113. $as_echo "no" >&6; }
  7114. fi
  7115. fi
  7116. if test -z "$ac_cv_prog_AR" && test $build = $host ; then
  7117. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7118. set dummy ${ncn_progname}; ac_word=$2
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7120. $as_echo_n "checking for $ac_word... " >&6; }
  7121. if test "${ac_cv_prog_AR+set}" = set; then :
  7122. $as_echo_n "(cached) " >&6
  7123. else
  7124. if test -n "$AR"; then
  7125. ac_cv_prog_AR="$AR" # Let the user override the test.
  7126. else
  7127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7128. for as_dir in $PATH
  7129. do
  7130. IFS=$as_save_IFS
  7131. test -z "$as_dir" && as_dir=.
  7132. for ac_exec_ext in '' $ac_executable_extensions; do
  7133. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7134. ac_cv_prog_AR="${ncn_progname}"
  7135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7136. break 2
  7137. fi
  7138. done
  7139. done
  7140. IFS=$as_save_IFS
  7141. fi
  7142. fi
  7143. AR=$ac_cv_prog_AR
  7144. if test -n "$AR"; then
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7146. $as_echo "$AR" >&6; }
  7147. else
  7148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7149. $as_echo "no" >&6; }
  7150. fi
  7151. fi
  7152. test -n "$ac_cv_prog_AR" && break
  7153. done
  7154. if test -z "$ac_cv_prog_AR" ; then
  7155. set dummy ar
  7156. if test $build = $host ; then
  7157. AR="$2"
  7158. else
  7159. AR="${ncn_tool_prefix}$2"
  7160. fi
  7161. fi
  7162. if test -n "$AS"; then
  7163. ac_cv_prog_AS=$AS
  7164. elif test -n "$ac_cv_prog_AS"; then
  7165. AS=$ac_cv_prog_AS
  7166. fi
  7167. if test -n "$ac_cv_prog_AS"; then
  7168. for ncn_progname in as; do
  7169. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7170. set dummy ${ncn_progname}; ac_word=$2
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7172. $as_echo_n "checking for $ac_word... " >&6; }
  7173. if test "${ac_cv_prog_AS+set}" = set; then :
  7174. $as_echo_n "(cached) " >&6
  7175. else
  7176. if test -n "$AS"; then
  7177. ac_cv_prog_AS="$AS" # Let the user override the test.
  7178. else
  7179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7180. for as_dir in $PATH
  7181. do
  7182. IFS=$as_save_IFS
  7183. test -z "$as_dir" && as_dir=.
  7184. for ac_exec_ext in '' $ac_executable_extensions; do
  7185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7186. ac_cv_prog_AS="${ncn_progname}"
  7187. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7188. break 2
  7189. fi
  7190. done
  7191. done
  7192. IFS=$as_save_IFS
  7193. fi
  7194. fi
  7195. AS=$ac_cv_prog_AS
  7196. if test -n "$AS"; then
  7197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7198. $as_echo "$AS" >&6; }
  7199. else
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7201. $as_echo "no" >&6; }
  7202. fi
  7203. done
  7204. fi
  7205. for ncn_progname in as; do
  7206. if test -n "$ncn_tool_prefix"; then
  7207. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7208. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7210. $as_echo_n "checking for $ac_word... " >&6; }
  7211. if test "${ac_cv_prog_AS+set}" = set; then :
  7212. $as_echo_n "(cached) " >&6
  7213. else
  7214. if test -n "$AS"; then
  7215. ac_cv_prog_AS="$AS" # Let the user override the test.
  7216. else
  7217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7218. for as_dir in $PATH
  7219. do
  7220. IFS=$as_save_IFS
  7221. test -z "$as_dir" && as_dir=.
  7222. for ac_exec_ext in '' $ac_executable_extensions; do
  7223. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7224. ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
  7225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7226. break 2
  7227. fi
  7228. done
  7229. done
  7230. IFS=$as_save_IFS
  7231. fi
  7232. fi
  7233. AS=$ac_cv_prog_AS
  7234. if test -n "$AS"; then
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7236. $as_echo "$AS" >&6; }
  7237. else
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7239. $as_echo "no" >&6; }
  7240. fi
  7241. fi
  7242. if test -z "$ac_cv_prog_AS" && test $build = $host ; then
  7243. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7244. set dummy ${ncn_progname}; ac_word=$2
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7246. $as_echo_n "checking for $ac_word... " >&6; }
  7247. if test "${ac_cv_prog_AS+set}" = set; then :
  7248. $as_echo_n "(cached) " >&6
  7249. else
  7250. if test -n "$AS"; then
  7251. ac_cv_prog_AS="$AS" # Let the user override the test.
  7252. else
  7253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7254. for as_dir in $PATH
  7255. do
  7256. IFS=$as_save_IFS
  7257. test -z "$as_dir" && as_dir=.
  7258. for ac_exec_ext in '' $ac_executable_extensions; do
  7259. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7260. ac_cv_prog_AS="${ncn_progname}"
  7261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7262. break 2
  7263. fi
  7264. done
  7265. done
  7266. IFS=$as_save_IFS
  7267. fi
  7268. fi
  7269. AS=$ac_cv_prog_AS
  7270. if test -n "$AS"; then
  7271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7272. $as_echo "$AS" >&6; }
  7273. else
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7275. $as_echo "no" >&6; }
  7276. fi
  7277. fi
  7278. test -n "$ac_cv_prog_AS" && break
  7279. done
  7280. if test -z "$ac_cv_prog_AS" ; then
  7281. set dummy as
  7282. if test $build = $host ; then
  7283. AS="$2"
  7284. else
  7285. AS="${ncn_tool_prefix}$2"
  7286. fi
  7287. fi
  7288. if test -n "$DLLTOOL"; then
  7289. ac_cv_prog_DLLTOOL=$DLLTOOL
  7290. elif test -n "$ac_cv_prog_DLLTOOL"; then
  7291. DLLTOOL=$ac_cv_prog_DLLTOOL
  7292. fi
  7293. if test -n "$ac_cv_prog_DLLTOOL"; then
  7294. for ncn_progname in dlltool; do
  7295. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7296. set dummy ${ncn_progname}; ac_word=$2
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7298. $as_echo_n "checking for $ac_word... " >&6; }
  7299. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7300. $as_echo_n "(cached) " >&6
  7301. else
  7302. if test -n "$DLLTOOL"; then
  7303. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7304. else
  7305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7306. for as_dir in $PATH
  7307. do
  7308. IFS=$as_save_IFS
  7309. test -z "$as_dir" && as_dir=.
  7310. for ac_exec_ext in '' $ac_executable_extensions; do
  7311. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7312. ac_cv_prog_DLLTOOL="${ncn_progname}"
  7313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7314. break 2
  7315. fi
  7316. done
  7317. done
  7318. IFS=$as_save_IFS
  7319. fi
  7320. fi
  7321. DLLTOOL=$ac_cv_prog_DLLTOOL
  7322. if test -n "$DLLTOOL"; then
  7323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7324. $as_echo "$DLLTOOL" >&6; }
  7325. else
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7327. $as_echo "no" >&6; }
  7328. fi
  7329. done
  7330. fi
  7331. for ncn_progname in dlltool; do
  7332. if test -n "$ncn_tool_prefix"; then
  7333. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7334. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7336. $as_echo_n "checking for $ac_word... " >&6; }
  7337. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7338. $as_echo_n "(cached) " >&6
  7339. else
  7340. if test -n "$DLLTOOL"; then
  7341. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7342. else
  7343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7344. for as_dir in $PATH
  7345. do
  7346. IFS=$as_save_IFS
  7347. test -z "$as_dir" && as_dir=.
  7348. for ac_exec_ext in '' $ac_executable_extensions; do
  7349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7350. ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
  7351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7352. break 2
  7353. fi
  7354. done
  7355. done
  7356. IFS=$as_save_IFS
  7357. fi
  7358. fi
  7359. DLLTOOL=$ac_cv_prog_DLLTOOL
  7360. if test -n "$DLLTOOL"; then
  7361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7362. $as_echo "$DLLTOOL" >&6; }
  7363. else
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7365. $as_echo "no" >&6; }
  7366. fi
  7367. fi
  7368. if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
  7369. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7370. set dummy ${ncn_progname}; ac_word=$2
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7372. $as_echo_n "checking for $ac_word... " >&6; }
  7373. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7374. $as_echo_n "(cached) " >&6
  7375. else
  7376. if test -n "$DLLTOOL"; then
  7377. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7378. else
  7379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7380. for as_dir in $PATH
  7381. do
  7382. IFS=$as_save_IFS
  7383. test -z "$as_dir" && as_dir=.
  7384. for ac_exec_ext in '' $ac_executable_extensions; do
  7385. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7386. ac_cv_prog_DLLTOOL="${ncn_progname}"
  7387. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7388. break 2
  7389. fi
  7390. done
  7391. done
  7392. IFS=$as_save_IFS
  7393. fi
  7394. fi
  7395. DLLTOOL=$ac_cv_prog_DLLTOOL
  7396. if test -n "$DLLTOOL"; then
  7397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7398. $as_echo "$DLLTOOL" >&6; }
  7399. else
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7401. $as_echo "no" >&6; }
  7402. fi
  7403. fi
  7404. test -n "$ac_cv_prog_DLLTOOL" && break
  7405. done
  7406. if test -z "$ac_cv_prog_DLLTOOL" ; then
  7407. set dummy dlltool
  7408. if test $build = $host ; then
  7409. DLLTOOL="$2"
  7410. else
  7411. DLLTOOL="${ncn_tool_prefix}$2"
  7412. fi
  7413. fi
  7414. if test -n "$LD"; then
  7415. ac_cv_prog_LD=$LD
  7416. elif test -n "$ac_cv_prog_LD"; then
  7417. LD=$ac_cv_prog_LD
  7418. fi
  7419. if test -n "$ac_cv_prog_LD"; then
  7420. for ncn_progname in ld; do
  7421. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7422. set dummy ${ncn_progname}; ac_word=$2
  7423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7424. $as_echo_n "checking for $ac_word... " >&6; }
  7425. if test "${ac_cv_prog_LD+set}" = set; then :
  7426. $as_echo_n "(cached) " >&6
  7427. else
  7428. if test -n "$LD"; then
  7429. ac_cv_prog_LD="$LD" # Let the user override the test.
  7430. else
  7431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7432. for as_dir in $PATH
  7433. do
  7434. IFS=$as_save_IFS
  7435. test -z "$as_dir" && as_dir=.
  7436. for ac_exec_ext in '' $ac_executable_extensions; do
  7437. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7438. ac_cv_prog_LD="${ncn_progname}"
  7439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7440. break 2
  7441. fi
  7442. done
  7443. done
  7444. IFS=$as_save_IFS
  7445. fi
  7446. fi
  7447. LD=$ac_cv_prog_LD
  7448. if test -n "$LD"; then
  7449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7450. $as_echo "$LD" >&6; }
  7451. else
  7452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7453. $as_echo "no" >&6; }
  7454. fi
  7455. done
  7456. fi
  7457. for ncn_progname in ld; do
  7458. if test -n "$ncn_tool_prefix"; then
  7459. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7460. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7462. $as_echo_n "checking for $ac_word... " >&6; }
  7463. if test "${ac_cv_prog_LD+set}" = set; then :
  7464. $as_echo_n "(cached) " >&6
  7465. else
  7466. if test -n "$LD"; then
  7467. ac_cv_prog_LD="$LD" # Let the user override the test.
  7468. else
  7469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7470. for as_dir in $PATH
  7471. do
  7472. IFS=$as_save_IFS
  7473. test -z "$as_dir" && as_dir=.
  7474. for ac_exec_ext in '' $ac_executable_extensions; do
  7475. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7476. ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
  7477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7478. break 2
  7479. fi
  7480. done
  7481. done
  7482. IFS=$as_save_IFS
  7483. fi
  7484. fi
  7485. LD=$ac_cv_prog_LD
  7486. if test -n "$LD"; then
  7487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7488. $as_echo "$LD" >&6; }
  7489. else
  7490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7491. $as_echo "no" >&6; }
  7492. fi
  7493. fi
  7494. if test -z "$ac_cv_prog_LD" && test $build = $host ; then
  7495. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7496. set dummy ${ncn_progname}; ac_word=$2
  7497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7498. $as_echo_n "checking for $ac_word... " >&6; }
  7499. if test "${ac_cv_prog_LD+set}" = set; then :
  7500. $as_echo_n "(cached) " >&6
  7501. else
  7502. if test -n "$LD"; then
  7503. ac_cv_prog_LD="$LD" # Let the user override the test.
  7504. else
  7505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7506. for as_dir in $PATH
  7507. do
  7508. IFS=$as_save_IFS
  7509. test -z "$as_dir" && as_dir=.
  7510. for ac_exec_ext in '' $ac_executable_extensions; do
  7511. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7512. ac_cv_prog_LD="${ncn_progname}"
  7513. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7514. break 2
  7515. fi
  7516. done
  7517. done
  7518. IFS=$as_save_IFS
  7519. fi
  7520. fi
  7521. LD=$ac_cv_prog_LD
  7522. if test -n "$LD"; then
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7524. $as_echo "$LD" >&6; }
  7525. else
  7526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7527. $as_echo "no" >&6; }
  7528. fi
  7529. fi
  7530. test -n "$ac_cv_prog_LD" && break
  7531. done
  7532. if test -z "$ac_cv_prog_LD" ; then
  7533. set dummy ld
  7534. if test $build = $host ; then
  7535. LD="$2"
  7536. else
  7537. LD="${ncn_tool_prefix}$2"
  7538. fi
  7539. fi
  7540. if test -n "$LIPO"; then
  7541. ac_cv_prog_LIPO=$LIPO
  7542. elif test -n "$ac_cv_prog_LIPO"; then
  7543. LIPO=$ac_cv_prog_LIPO
  7544. fi
  7545. if test -n "$ac_cv_prog_LIPO"; then
  7546. for ncn_progname in lipo; do
  7547. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7548. set dummy ${ncn_progname}; ac_word=$2
  7549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7550. $as_echo_n "checking for $ac_word... " >&6; }
  7551. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7552. $as_echo_n "(cached) " >&6
  7553. else
  7554. if test -n "$LIPO"; then
  7555. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7556. else
  7557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7558. for as_dir in $PATH
  7559. do
  7560. IFS=$as_save_IFS
  7561. test -z "$as_dir" && as_dir=.
  7562. for ac_exec_ext in '' $ac_executable_extensions; do
  7563. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7564. ac_cv_prog_LIPO="${ncn_progname}"
  7565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7566. break 2
  7567. fi
  7568. done
  7569. done
  7570. IFS=$as_save_IFS
  7571. fi
  7572. fi
  7573. LIPO=$ac_cv_prog_LIPO
  7574. if test -n "$LIPO"; then
  7575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7576. $as_echo "$LIPO" >&6; }
  7577. else
  7578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7579. $as_echo "no" >&6; }
  7580. fi
  7581. done
  7582. fi
  7583. for ncn_progname in lipo; do
  7584. if test -n "$ncn_tool_prefix"; then
  7585. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7586. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7588. $as_echo_n "checking for $ac_word... " >&6; }
  7589. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7590. $as_echo_n "(cached) " >&6
  7591. else
  7592. if test -n "$LIPO"; then
  7593. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7594. else
  7595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7596. for as_dir in $PATH
  7597. do
  7598. IFS=$as_save_IFS
  7599. test -z "$as_dir" && as_dir=.
  7600. for ac_exec_ext in '' $ac_executable_extensions; do
  7601. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7602. ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
  7603. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7604. break 2
  7605. fi
  7606. done
  7607. done
  7608. IFS=$as_save_IFS
  7609. fi
  7610. fi
  7611. LIPO=$ac_cv_prog_LIPO
  7612. if test -n "$LIPO"; then
  7613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7614. $as_echo "$LIPO" >&6; }
  7615. else
  7616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7617. $as_echo "no" >&6; }
  7618. fi
  7619. fi
  7620. if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
  7621. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7622. set dummy ${ncn_progname}; ac_word=$2
  7623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7624. $as_echo_n "checking for $ac_word... " >&6; }
  7625. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7626. $as_echo_n "(cached) " >&6
  7627. else
  7628. if test -n "$LIPO"; then
  7629. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7630. else
  7631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7632. for as_dir in $PATH
  7633. do
  7634. IFS=$as_save_IFS
  7635. test -z "$as_dir" && as_dir=.
  7636. for ac_exec_ext in '' $ac_executable_extensions; do
  7637. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7638. ac_cv_prog_LIPO="${ncn_progname}"
  7639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7640. break 2
  7641. fi
  7642. done
  7643. done
  7644. IFS=$as_save_IFS
  7645. fi
  7646. fi
  7647. LIPO=$ac_cv_prog_LIPO
  7648. if test -n "$LIPO"; then
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7650. $as_echo "$LIPO" >&6; }
  7651. else
  7652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7653. $as_echo "no" >&6; }
  7654. fi
  7655. fi
  7656. test -n "$ac_cv_prog_LIPO" && break
  7657. done
  7658. if test -z "$ac_cv_prog_LIPO" ; then
  7659. set dummy lipo
  7660. if test $build = $host ; then
  7661. LIPO="$2"
  7662. else
  7663. LIPO="${ncn_tool_prefix}$2"
  7664. fi
  7665. fi
  7666. if test -n "$NM"; then
  7667. ac_cv_prog_NM=$NM
  7668. elif test -n "$ac_cv_prog_NM"; then
  7669. NM=$ac_cv_prog_NM
  7670. fi
  7671. if test -n "$ac_cv_prog_NM"; then
  7672. for ncn_progname in nm; do
  7673. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7674. set dummy ${ncn_progname}; ac_word=$2
  7675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7676. $as_echo_n "checking for $ac_word... " >&6; }
  7677. if test "${ac_cv_prog_NM+set}" = set; then :
  7678. $as_echo_n "(cached) " >&6
  7679. else
  7680. if test -n "$NM"; then
  7681. ac_cv_prog_NM="$NM" # Let the user override the test.
  7682. else
  7683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7684. for as_dir in $PATH
  7685. do
  7686. IFS=$as_save_IFS
  7687. test -z "$as_dir" && as_dir=.
  7688. for ac_exec_ext in '' $ac_executable_extensions; do
  7689. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7690. ac_cv_prog_NM="${ncn_progname}"
  7691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7692. break 2
  7693. fi
  7694. done
  7695. done
  7696. IFS=$as_save_IFS
  7697. fi
  7698. fi
  7699. NM=$ac_cv_prog_NM
  7700. if test -n "$NM"; then
  7701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7702. $as_echo "$NM" >&6; }
  7703. else
  7704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7705. $as_echo "no" >&6; }
  7706. fi
  7707. done
  7708. fi
  7709. for ncn_progname in nm; do
  7710. if test -n "$ncn_tool_prefix"; then
  7711. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7712. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7714. $as_echo_n "checking for $ac_word... " >&6; }
  7715. if test "${ac_cv_prog_NM+set}" = set; then :
  7716. $as_echo_n "(cached) " >&6
  7717. else
  7718. if test -n "$NM"; then
  7719. ac_cv_prog_NM="$NM" # Let the user override the test.
  7720. else
  7721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7722. for as_dir in $PATH
  7723. do
  7724. IFS=$as_save_IFS
  7725. test -z "$as_dir" && as_dir=.
  7726. for ac_exec_ext in '' $ac_executable_extensions; do
  7727. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7728. ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
  7729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7730. break 2
  7731. fi
  7732. done
  7733. done
  7734. IFS=$as_save_IFS
  7735. fi
  7736. fi
  7737. NM=$ac_cv_prog_NM
  7738. if test -n "$NM"; then
  7739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7740. $as_echo "$NM" >&6; }
  7741. else
  7742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7743. $as_echo "no" >&6; }
  7744. fi
  7745. fi
  7746. if test -z "$ac_cv_prog_NM" && test $build = $host ; then
  7747. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7748. set dummy ${ncn_progname}; ac_word=$2
  7749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7750. $as_echo_n "checking for $ac_word... " >&6; }
  7751. if test "${ac_cv_prog_NM+set}" = set; then :
  7752. $as_echo_n "(cached) " >&6
  7753. else
  7754. if test -n "$NM"; then
  7755. ac_cv_prog_NM="$NM" # Let the user override the test.
  7756. else
  7757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7758. for as_dir in $PATH
  7759. do
  7760. IFS=$as_save_IFS
  7761. test -z "$as_dir" && as_dir=.
  7762. for ac_exec_ext in '' $ac_executable_extensions; do
  7763. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7764. ac_cv_prog_NM="${ncn_progname}"
  7765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7766. break 2
  7767. fi
  7768. done
  7769. done
  7770. IFS=$as_save_IFS
  7771. fi
  7772. fi
  7773. NM=$ac_cv_prog_NM
  7774. if test -n "$NM"; then
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7776. $as_echo "$NM" >&6; }
  7777. else
  7778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7779. $as_echo "no" >&6; }
  7780. fi
  7781. fi
  7782. test -n "$ac_cv_prog_NM" && break
  7783. done
  7784. if test -z "$ac_cv_prog_NM" ; then
  7785. set dummy nm
  7786. if test $build = $host ; then
  7787. NM="$2"
  7788. else
  7789. NM="${ncn_tool_prefix}$2"
  7790. fi
  7791. fi
  7792. if test -n "$RANLIB"; then
  7793. ac_cv_prog_RANLIB=$RANLIB
  7794. elif test -n "$ac_cv_prog_RANLIB"; then
  7795. RANLIB=$ac_cv_prog_RANLIB
  7796. fi
  7797. if test -n "$ac_cv_prog_RANLIB"; then
  7798. for ncn_progname in ranlib; do
  7799. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7800. set dummy ${ncn_progname}; ac_word=$2
  7801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7802. $as_echo_n "checking for $ac_word... " >&6; }
  7803. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  7804. $as_echo_n "(cached) " >&6
  7805. else
  7806. if test -n "$RANLIB"; then
  7807. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7808. else
  7809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7810. for as_dir in $PATH
  7811. do
  7812. IFS=$as_save_IFS
  7813. test -z "$as_dir" && as_dir=.
  7814. for ac_exec_ext in '' $ac_executable_extensions; do
  7815. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7816. ac_cv_prog_RANLIB="${ncn_progname}"
  7817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7818. break 2
  7819. fi
  7820. done
  7821. done
  7822. IFS=$as_save_IFS
  7823. fi
  7824. fi
  7825. RANLIB=$ac_cv_prog_RANLIB
  7826. if test -n "$RANLIB"; then
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7828. $as_echo "$RANLIB" >&6; }
  7829. else
  7830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7831. $as_echo "no" >&6; }
  7832. fi
  7833. done
  7834. fi
  7835. for ncn_progname in ranlib; do
  7836. if test -n "$ncn_tool_prefix"; then
  7837. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7838. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7840. $as_echo_n "checking for $ac_word... " >&6; }
  7841. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  7842. $as_echo_n "(cached) " >&6
  7843. else
  7844. if test -n "$RANLIB"; then
  7845. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7846. else
  7847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7848. for as_dir in $PATH
  7849. do
  7850. IFS=$as_save_IFS
  7851. test -z "$as_dir" && as_dir=.
  7852. for ac_exec_ext in '' $ac_executable_extensions; do
  7853. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7854. ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
  7855. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7856. break 2
  7857. fi
  7858. done
  7859. done
  7860. IFS=$as_save_IFS
  7861. fi
  7862. fi
  7863. RANLIB=$ac_cv_prog_RANLIB
  7864. if test -n "$RANLIB"; then
  7865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7866. $as_echo "$RANLIB" >&6; }
  7867. else
  7868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7869. $as_echo "no" >&6; }
  7870. fi
  7871. fi
  7872. if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
  7873. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7874. set dummy ${ncn_progname}; ac_word=$2
  7875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7876. $as_echo_n "checking for $ac_word... " >&6; }
  7877. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  7878. $as_echo_n "(cached) " >&6
  7879. else
  7880. if test -n "$RANLIB"; then
  7881. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7882. else
  7883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7884. for as_dir in $PATH
  7885. do
  7886. IFS=$as_save_IFS
  7887. test -z "$as_dir" && as_dir=.
  7888. for ac_exec_ext in '' $ac_executable_extensions; do
  7889. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7890. ac_cv_prog_RANLIB="${ncn_progname}"
  7891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7892. break 2
  7893. fi
  7894. done
  7895. done
  7896. IFS=$as_save_IFS
  7897. fi
  7898. fi
  7899. RANLIB=$ac_cv_prog_RANLIB
  7900. if test -n "$RANLIB"; then
  7901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7902. $as_echo "$RANLIB" >&6; }
  7903. else
  7904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7905. $as_echo "no" >&6; }
  7906. fi
  7907. fi
  7908. test -n "$ac_cv_prog_RANLIB" && break
  7909. done
  7910. if test -z "$ac_cv_prog_RANLIB" ; then
  7911. RANLIB="true"
  7912. fi
  7913. if test -n "$STRIP"; then
  7914. ac_cv_prog_STRIP=$STRIP
  7915. elif test -n "$ac_cv_prog_STRIP"; then
  7916. STRIP=$ac_cv_prog_STRIP
  7917. fi
  7918. if test -n "$ac_cv_prog_STRIP"; then
  7919. for ncn_progname in strip; do
  7920. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7921. set dummy ${ncn_progname}; ac_word=$2
  7922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7923. $as_echo_n "checking for $ac_word... " >&6; }
  7924. if test "${ac_cv_prog_STRIP+set}" = set; then :
  7925. $as_echo_n "(cached) " >&6
  7926. else
  7927. if test -n "$STRIP"; then
  7928. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7929. else
  7930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7931. for as_dir in $PATH
  7932. do
  7933. IFS=$as_save_IFS
  7934. test -z "$as_dir" && as_dir=.
  7935. for ac_exec_ext in '' $ac_executable_extensions; do
  7936. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7937. ac_cv_prog_STRIP="${ncn_progname}"
  7938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7939. break 2
  7940. fi
  7941. done
  7942. done
  7943. IFS=$as_save_IFS
  7944. fi
  7945. fi
  7946. STRIP=$ac_cv_prog_STRIP
  7947. if test -n "$STRIP"; then
  7948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7949. $as_echo "$STRIP" >&6; }
  7950. else
  7951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7952. $as_echo "no" >&6; }
  7953. fi
  7954. done
  7955. fi
  7956. for ncn_progname in strip; do
  7957. if test -n "$ncn_tool_prefix"; then
  7958. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7959. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7961. $as_echo_n "checking for $ac_word... " >&6; }
  7962. if test "${ac_cv_prog_STRIP+set}" = set; then :
  7963. $as_echo_n "(cached) " >&6
  7964. else
  7965. if test -n "$STRIP"; then
  7966. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7967. else
  7968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7969. for as_dir in $PATH
  7970. do
  7971. IFS=$as_save_IFS
  7972. test -z "$as_dir" && as_dir=.
  7973. for ac_exec_ext in '' $ac_executable_extensions; do
  7974. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7975. ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
  7976. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7977. break 2
  7978. fi
  7979. done
  7980. done
  7981. IFS=$as_save_IFS
  7982. fi
  7983. fi
  7984. STRIP=$ac_cv_prog_STRIP
  7985. if test -n "$STRIP"; then
  7986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7987. $as_echo "$STRIP" >&6; }
  7988. else
  7989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7990. $as_echo "no" >&6; }
  7991. fi
  7992. fi
  7993. if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
  7994. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7995. set dummy ${ncn_progname}; ac_word=$2
  7996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7997. $as_echo_n "checking for $ac_word... " >&6; }
  7998. if test "${ac_cv_prog_STRIP+set}" = set; then :
  7999. $as_echo_n "(cached) " >&6
  8000. else
  8001. if test -n "$STRIP"; then
  8002. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8003. else
  8004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8005. for as_dir in $PATH
  8006. do
  8007. IFS=$as_save_IFS
  8008. test -z "$as_dir" && as_dir=.
  8009. for ac_exec_ext in '' $ac_executable_extensions; do
  8010. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8011. ac_cv_prog_STRIP="${ncn_progname}"
  8012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8013. break 2
  8014. fi
  8015. done
  8016. done
  8017. IFS=$as_save_IFS
  8018. fi
  8019. fi
  8020. STRIP=$ac_cv_prog_STRIP
  8021. if test -n "$STRIP"; then
  8022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8023. $as_echo "$STRIP" >&6; }
  8024. else
  8025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8026. $as_echo "no" >&6; }
  8027. fi
  8028. fi
  8029. test -n "$ac_cv_prog_STRIP" && break
  8030. done
  8031. if test -z "$ac_cv_prog_STRIP" ; then
  8032. STRIP="true"
  8033. fi
  8034. if test -n "$WINDRES"; then
  8035. ac_cv_prog_WINDRES=$WINDRES
  8036. elif test -n "$ac_cv_prog_WINDRES"; then
  8037. WINDRES=$ac_cv_prog_WINDRES
  8038. fi
  8039. if test -n "$ac_cv_prog_WINDRES"; then
  8040. for ncn_progname in windres; do
  8041. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8042. set dummy ${ncn_progname}; ac_word=$2
  8043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8044. $as_echo_n "checking for $ac_word... " >&6; }
  8045. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  8046. $as_echo_n "(cached) " >&6
  8047. else
  8048. if test -n "$WINDRES"; then
  8049. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8050. else
  8051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8052. for as_dir in $PATH
  8053. do
  8054. IFS=$as_save_IFS
  8055. test -z "$as_dir" && as_dir=.
  8056. for ac_exec_ext in '' $ac_executable_extensions; do
  8057. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8058. ac_cv_prog_WINDRES="${ncn_progname}"
  8059. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8060. break 2
  8061. fi
  8062. done
  8063. done
  8064. IFS=$as_save_IFS
  8065. fi
  8066. fi
  8067. WINDRES=$ac_cv_prog_WINDRES
  8068. if test -n "$WINDRES"; then
  8069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8070. $as_echo "$WINDRES" >&6; }
  8071. else
  8072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8073. $as_echo "no" >&6; }
  8074. fi
  8075. done
  8076. fi
  8077. for ncn_progname in windres; do
  8078. if test -n "$ncn_tool_prefix"; then
  8079. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8080. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8082. $as_echo_n "checking for $ac_word... " >&6; }
  8083. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  8084. $as_echo_n "(cached) " >&6
  8085. else
  8086. if test -n "$WINDRES"; then
  8087. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8088. else
  8089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8090. for as_dir in $PATH
  8091. do
  8092. IFS=$as_save_IFS
  8093. test -z "$as_dir" && as_dir=.
  8094. for ac_exec_ext in '' $ac_executable_extensions; do
  8095. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8096. ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
  8097. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8098. break 2
  8099. fi
  8100. done
  8101. done
  8102. IFS=$as_save_IFS
  8103. fi
  8104. fi
  8105. WINDRES=$ac_cv_prog_WINDRES
  8106. if test -n "$WINDRES"; then
  8107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8108. $as_echo "$WINDRES" >&6; }
  8109. else
  8110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8111. $as_echo "no" >&6; }
  8112. fi
  8113. fi
  8114. if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
  8115. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8116. set dummy ${ncn_progname}; ac_word=$2
  8117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8118. $as_echo_n "checking for $ac_word... " >&6; }
  8119. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  8120. $as_echo_n "(cached) " >&6
  8121. else
  8122. if test -n "$WINDRES"; then
  8123. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8124. else
  8125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8126. for as_dir in $PATH
  8127. do
  8128. IFS=$as_save_IFS
  8129. test -z "$as_dir" && as_dir=.
  8130. for ac_exec_ext in '' $ac_executable_extensions; do
  8131. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8132. ac_cv_prog_WINDRES="${ncn_progname}"
  8133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8134. break 2
  8135. fi
  8136. done
  8137. done
  8138. IFS=$as_save_IFS
  8139. fi
  8140. fi
  8141. WINDRES=$ac_cv_prog_WINDRES
  8142. if test -n "$WINDRES"; then
  8143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8144. $as_echo "$WINDRES" >&6; }
  8145. else
  8146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8147. $as_echo "no" >&6; }
  8148. fi
  8149. fi
  8150. test -n "$ac_cv_prog_WINDRES" && break
  8151. done
  8152. if test -z "$ac_cv_prog_WINDRES" ; then
  8153. set dummy windres
  8154. if test $build = $host ; then
  8155. WINDRES="$2"
  8156. else
  8157. WINDRES="${ncn_tool_prefix}$2"
  8158. fi
  8159. fi
  8160. if test -n "$WINDMC"; then
  8161. ac_cv_prog_WINDMC=$WINDMC
  8162. elif test -n "$ac_cv_prog_WINDMC"; then
  8163. WINDMC=$ac_cv_prog_WINDMC
  8164. fi
  8165. if test -n "$ac_cv_prog_WINDMC"; then
  8166. for ncn_progname in windmc; do
  8167. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8168. set dummy ${ncn_progname}; ac_word=$2
  8169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8170. $as_echo_n "checking for $ac_word... " >&6; }
  8171. if test "${ac_cv_prog_WINDMC+set}" = set; then :
  8172. $as_echo_n "(cached) " >&6
  8173. else
  8174. if test -n "$WINDMC"; then
  8175. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8176. else
  8177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8178. for as_dir in $PATH
  8179. do
  8180. IFS=$as_save_IFS
  8181. test -z "$as_dir" && as_dir=.
  8182. for ac_exec_ext in '' $ac_executable_extensions; do
  8183. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8184. ac_cv_prog_WINDMC="${ncn_progname}"
  8185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8186. break 2
  8187. fi
  8188. done
  8189. done
  8190. IFS=$as_save_IFS
  8191. fi
  8192. fi
  8193. WINDMC=$ac_cv_prog_WINDMC
  8194. if test -n "$WINDMC"; then
  8195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8196. $as_echo "$WINDMC" >&6; }
  8197. else
  8198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8199. $as_echo "no" >&6; }
  8200. fi
  8201. done
  8202. fi
  8203. for ncn_progname in windmc; do
  8204. if test -n "$ncn_tool_prefix"; then
  8205. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8206. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8208. $as_echo_n "checking for $ac_word... " >&6; }
  8209. if test "${ac_cv_prog_WINDMC+set}" = set; then :
  8210. $as_echo_n "(cached) " >&6
  8211. else
  8212. if test -n "$WINDMC"; then
  8213. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8214. else
  8215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8216. for as_dir in $PATH
  8217. do
  8218. IFS=$as_save_IFS
  8219. test -z "$as_dir" && as_dir=.
  8220. for ac_exec_ext in '' $ac_executable_extensions; do
  8221. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8222. ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
  8223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8224. break 2
  8225. fi
  8226. done
  8227. done
  8228. IFS=$as_save_IFS
  8229. fi
  8230. fi
  8231. WINDMC=$ac_cv_prog_WINDMC
  8232. if test -n "$WINDMC"; then
  8233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8234. $as_echo "$WINDMC" >&6; }
  8235. else
  8236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8237. $as_echo "no" >&6; }
  8238. fi
  8239. fi
  8240. if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
  8241. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8242. set dummy ${ncn_progname}; ac_word=$2
  8243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8244. $as_echo_n "checking for $ac_word... " >&6; }
  8245. if test "${ac_cv_prog_WINDMC+set}" = set; then :
  8246. $as_echo_n "(cached) " >&6
  8247. else
  8248. if test -n "$WINDMC"; then
  8249. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8250. else
  8251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8252. for as_dir in $PATH
  8253. do
  8254. IFS=$as_save_IFS
  8255. test -z "$as_dir" && as_dir=.
  8256. for ac_exec_ext in '' $ac_executable_extensions; do
  8257. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8258. ac_cv_prog_WINDMC="${ncn_progname}"
  8259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8260. break 2
  8261. fi
  8262. done
  8263. done
  8264. IFS=$as_save_IFS
  8265. fi
  8266. fi
  8267. WINDMC=$ac_cv_prog_WINDMC
  8268. if test -n "$WINDMC"; then
  8269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8270. $as_echo "$WINDMC" >&6; }
  8271. else
  8272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8273. $as_echo "no" >&6; }
  8274. fi
  8275. fi
  8276. test -n "$ac_cv_prog_WINDMC" && break
  8277. done
  8278. if test -z "$ac_cv_prog_WINDMC" ; then
  8279. set dummy windmc
  8280. if test $build = $host ; then
  8281. WINDMC="$2"
  8282. else
  8283. WINDMC="${ncn_tool_prefix}$2"
  8284. fi
  8285. fi
  8286. if test -n "$OBJCOPY"; then
  8287. ac_cv_prog_OBJCOPY=$OBJCOPY
  8288. elif test -n "$ac_cv_prog_OBJCOPY"; then
  8289. OBJCOPY=$ac_cv_prog_OBJCOPY
  8290. fi
  8291. if test -n "$ac_cv_prog_OBJCOPY"; then
  8292. for ncn_progname in objcopy; do
  8293. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8294. set dummy ${ncn_progname}; ac_word=$2
  8295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8296. $as_echo_n "checking for $ac_word... " >&6; }
  8297. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  8298. $as_echo_n "(cached) " >&6
  8299. else
  8300. if test -n "$OBJCOPY"; then
  8301. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8302. else
  8303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8304. for as_dir in $PATH
  8305. do
  8306. IFS=$as_save_IFS
  8307. test -z "$as_dir" && as_dir=.
  8308. for ac_exec_ext in '' $ac_executable_extensions; do
  8309. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8310. ac_cv_prog_OBJCOPY="${ncn_progname}"
  8311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8312. break 2
  8313. fi
  8314. done
  8315. done
  8316. IFS=$as_save_IFS
  8317. fi
  8318. fi
  8319. OBJCOPY=$ac_cv_prog_OBJCOPY
  8320. if test -n "$OBJCOPY"; then
  8321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8322. $as_echo "$OBJCOPY" >&6; }
  8323. else
  8324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8325. $as_echo "no" >&6; }
  8326. fi
  8327. done
  8328. fi
  8329. for ncn_progname in objcopy; do
  8330. if test -n "$ncn_tool_prefix"; then
  8331. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8332. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8334. $as_echo_n "checking for $ac_word... " >&6; }
  8335. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  8336. $as_echo_n "(cached) " >&6
  8337. else
  8338. if test -n "$OBJCOPY"; then
  8339. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8340. else
  8341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8342. for as_dir in $PATH
  8343. do
  8344. IFS=$as_save_IFS
  8345. test -z "$as_dir" && as_dir=.
  8346. for ac_exec_ext in '' $ac_executable_extensions; do
  8347. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8348. ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
  8349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8350. break 2
  8351. fi
  8352. done
  8353. done
  8354. IFS=$as_save_IFS
  8355. fi
  8356. fi
  8357. OBJCOPY=$ac_cv_prog_OBJCOPY
  8358. if test -n "$OBJCOPY"; then
  8359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8360. $as_echo "$OBJCOPY" >&6; }
  8361. else
  8362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8363. $as_echo "no" >&6; }
  8364. fi
  8365. fi
  8366. if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
  8367. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8368. set dummy ${ncn_progname}; ac_word=$2
  8369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8370. $as_echo_n "checking for $ac_word... " >&6; }
  8371. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  8372. $as_echo_n "(cached) " >&6
  8373. else
  8374. if test -n "$OBJCOPY"; then
  8375. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8376. else
  8377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8378. for as_dir in $PATH
  8379. do
  8380. IFS=$as_save_IFS
  8381. test -z "$as_dir" && as_dir=.
  8382. for ac_exec_ext in '' $ac_executable_extensions; do
  8383. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8384. ac_cv_prog_OBJCOPY="${ncn_progname}"
  8385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8386. break 2
  8387. fi
  8388. done
  8389. done
  8390. IFS=$as_save_IFS
  8391. fi
  8392. fi
  8393. OBJCOPY=$ac_cv_prog_OBJCOPY
  8394. if test -n "$OBJCOPY"; then
  8395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8396. $as_echo "$OBJCOPY" >&6; }
  8397. else
  8398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8399. $as_echo "no" >&6; }
  8400. fi
  8401. fi
  8402. test -n "$ac_cv_prog_OBJCOPY" && break
  8403. done
  8404. if test -z "$ac_cv_prog_OBJCOPY" ; then
  8405. set dummy objcopy
  8406. if test $build = $host ; then
  8407. OBJCOPY="$2"
  8408. else
  8409. OBJCOPY="${ncn_tool_prefix}$2"
  8410. fi
  8411. fi
  8412. if test -n "$OBJDUMP"; then
  8413. ac_cv_prog_OBJDUMP=$OBJDUMP
  8414. elif test -n "$ac_cv_prog_OBJDUMP"; then
  8415. OBJDUMP=$ac_cv_prog_OBJDUMP
  8416. fi
  8417. if test -n "$ac_cv_prog_OBJDUMP"; then
  8418. for ncn_progname in objdump; do
  8419. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8420. set dummy ${ncn_progname}; ac_word=$2
  8421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8422. $as_echo_n "checking for $ac_word... " >&6; }
  8423. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  8424. $as_echo_n "(cached) " >&6
  8425. else
  8426. if test -n "$OBJDUMP"; then
  8427. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8428. else
  8429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8430. for as_dir in $PATH
  8431. do
  8432. IFS=$as_save_IFS
  8433. test -z "$as_dir" && as_dir=.
  8434. for ac_exec_ext in '' $ac_executable_extensions; do
  8435. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8436. ac_cv_prog_OBJDUMP="${ncn_progname}"
  8437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8438. break 2
  8439. fi
  8440. done
  8441. done
  8442. IFS=$as_save_IFS
  8443. fi
  8444. fi
  8445. OBJDUMP=$ac_cv_prog_OBJDUMP
  8446. if test -n "$OBJDUMP"; then
  8447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8448. $as_echo "$OBJDUMP" >&6; }
  8449. else
  8450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8451. $as_echo "no" >&6; }
  8452. fi
  8453. done
  8454. fi
  8455. for ncn_progname in objdump; do
  8456. if test -n "$ncn_tool_prefix"; then
  8457. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8458. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8460. $as_echo_n "checking for $ac_word... " >&6; }
  8461. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  8462. $as_echo_n "(cached) " >&6
  8463. else
  8464. if test -n "$OBJDUMP"; then
  8465. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8466. else
  8467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8468. for as_dir in $PATH
  8469. do
  8470. IFS=$as_save_IFS
  8471. test -z "$as_dir" && as_dir=.
  8472. for ac_exec_ext in '' $ac_executable_extensions; do
  8473. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8474. ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
  8475. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8476. break 2
  8477. fi
  8478. done
  8479. done
  8480. IFS=$as_save_IFS
  8481. fi
  8482. fi
  8483. OBJDUMP=$ac_cv_prog_OBJDUMP
  8484. if test -n "$OBJDUMP"; then
  8485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8486. $as_echo "$OBJDUMP" >&6; }
  8487. else
  8488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8489. $as_echo "no" >&6; }
  8490. fi
  8491. fi
  8492. if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
  8493. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8494. set dummy ${ncn_progname}; ac_word=$2
  8495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8496. $as_echo_n "checking for $ac_word... " >&6; }
  8497. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  8498. $as_echo_n "(cached) " >&6
  8499. else
  8500. if test -n "$OBJDUMP"; then
  8501. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8502. else
  8503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8504. for as_dir in $PATH
  8505. do
  8506. IFS=$as_save_IFS
  8507. test -z "$as_dir" && as_dir=.
  8508. for ac_exec_ext in '' $ac_executable_extensions; do
  8509. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8510. ac_cv_prog_OBJDUMP="${ncn_progname}"
  8511. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8512. break 2
  8513. fi
  8514. done
  8515. done
  8516. IFS=$as_save_IFS
  8517. fi
  8518. fi
  8519. OBJDUMP=$ac_cv_prog_OBJDUMP
  8520. if test -n "$OBJDUMP"; then
  8521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8522. $as_echo "$OBJDUMP" >&6; }
  8523. else
  8524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8525. $as_echo "no" >&6; }
  8526. fi
  8527. fi
  8528. test -n "$ac_cv_prog_OBJDUMP" && break
  8529. done
  8530. if test -z "$ac_cv_prog_OBJDUMP" ; then
  8531. set dummy objdump
  8532. if test $build = $host ; then
  8533. OBJDUMP="$2"
  8534. else
  8535. OBJDUMP="${ncn_tool_prefix}$2"
  8536. fi
  8537. fi
  8538. # Target tools.
  8539. # Check whether --with-build-time-tools was given.
  8540. if test "${with_build_time_tools+set}" = set; then :
  8541. withval=$with_build_time_tools; case x"$withval" in
  8542. x/*) ;;
  8543. *)
  8544. with_build_time_tools=
  8545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
  8546. $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
  8547. ;;
  8548. esac
  8549. else
  8550. with_build_time_tools=
  8551. fi
  8552. if test -n "$CC_FOR_TARGET"; then
  8553. ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
  8554. elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
  8555. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8556. fi
  8557. if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
  8558. for ncn_progname in cc gcc; do
  8559. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8560. set dummy ${ncn_progname}; ac_word=$2
  8561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8562. $as_echo_n "checking for $ac_word... " >&6; }
  8563. if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
  8564. $as_echo_n "(cached) " >&6
  8565. else
  8566. if test -n "$CC_FOR_TARGET"; then
  8567. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  8568. else
  8569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8570. for as_dir in $PATH
  8571. do
  8572. IFS=$as_save_IFS
  8573. test -z "$as_dir" && as_dir=.
  8574. for ac_exec_ext in '' $ac_executable_extensions; do
  8575. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8576. ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
  8577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8578. break 2
  8579. fi
  8580. done
  8581. done
  8582. IFS=$as_save_IFS
  8583. fi
  8584. fi
  8585. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8586. if test -n "$CC_FOR_TARGET"; then
  8587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  8588. $as_echo "$CC_FOR_TARGET" >&6; }
  8589. else
  8590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8591. $as_echo "no" >&6; }
  8592. fi
  8593. done
  8594. fi
  8595. if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  8596. for ncn_progname in cc gcc; do
  8597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  8598. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  8599. if test -x $with_build_time_tools/${ncn_progname}; then
  8600. ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  8601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8602. $as_echo "yes" >&6; }
  8603. break
  8604. else
  8605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8606. $as_echo "no" >&6; }
  8607. fi
  8608. done
  8609. fi
  8610. if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
  8611. for ncn_progname in cc gcc; do
  8612. if test -n "$ncn_target_tool_prefix"; then
  8613. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8614. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8616. $as_echo_n "checking for $ac_word... " >&6; }
  8617. if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
  8618. $as_echo_n "(cached) " >&6
  8619. else
  8620. if test -n "$CC_FOR_TARGET"; then
  8621. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  8622. else
  8623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8624. for as_dir in $PATH
  8625. do
  8626. IFS=$as_save_IFS
  8627. test -z "$as_dir" && as_dir=.
  8628. for ac_exec_ext in '' $ac_executable_extensions; do
  8629. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8630. ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  8631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8632. break 2
  8633. fi
  8634. done
  8635. done
  8636. IFS=$as_save_IFS
  8637. fi
  8638. fi
  8639. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8640. if test -n "$CC_FOR_TARGET"; then
  8641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  8642. $as_echo "$CC_FOR_TARGET" >&6; }
  8643. else
  8644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8645. $as_echo "no" >&6; }
  8646. fi
  8647. fi
  8648. if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
  8649. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8650. set dummy ${ncn_progname}; ac_word=$2
  8651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8652. $as_echo_n "checking for $ac_word... " >&6; }
  8653. if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
  8654. $as_echo_n "(cached) " >&6
  8655. else
  8656. if test -n "$CC_FOR_TARGET"; then
  8657. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  8658. else
  8659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8660. for as_dir in $PATH
  8661. do
  8662. IFS=$as_save_IFS
  8663. test -z "$as_dir" && as_dir=.
  8664. for ac_exec_ext in '' $ac_executable_extensions; do
  8665. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8666. ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
  8667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8668. break 2
  8669. fi
  8670. done
  8671. done
  8672. IFS=$as_save_IFS
  8673. fi
  8674. fi
  8675. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8676. if test -n "$CC_FOR_TARGET"; then
  8677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  8678. $as_echo "$CC_FOR_TARGET" >&6; }
  8679. else
  8680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8681. $as_echo "no" >&6; }
  8682. fi
  8683. fi
  8684. test -n "$ac_cv_prog_CC_FOR_TARGET" && break
  8685. done
  8686. fi
  8687. if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
  8688. set dummy cc gcc
  8689. if test $build = $target ; then
  8690. CC_FOR_TARGET="$2"
  8691. else
  8692. CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  8693. fi
  8694. else
  8695. CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
  8696. fi
  8697. if test -n "$CXX_FOR_TARGET"; then
  8698. ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
  8699. elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
  8700. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  8701. fi
  8702. if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
  8703. for ncn_progname in c++ g++ cxx gxx; do
  8704. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8705. set dummy ${ncn_progname}; ac_word=$2
  8706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8707. $as_echo_n "checking for $ac_word... " >&6; }
  8708. if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
  8709. $as_echo_n "(cached) " >&6
  8710. else
  8711. if test -n "$CXX_FOR_TARGET"; then
  8712. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  8713. else
  8714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8715. for as_dir in $PATH
  8716. do
  8717. IFS=$as_save_IFS
  8718. test -z "$as_dir" && as_dir=.
  8719. for ac_exec_ext in '' $ac_executable_extensions; do
  8720. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8721. ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
  8722. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8723. break 2
  8724. fi
  8725. done
  8726. done
  8727. IFS=$as_save_IFS
  8728. fi
  8729. fi
  8730. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  8731. if test -n "$CXX_FOR_TARGET"; then
  8732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  8733. $as_echo "$CXX_FOR_TARGET" >&6; }
  8734. else
  8735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8736. $as_echo "no" >&6; }
  8737. fi
  8738. done
  8739. fi
  8740. if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
  8741. for ncn_progname in c++ g++ cxx gxx; do
  8742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  8743. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  8744. if test -x $with_build_time_tools/${ncn_progname}; then
  8745. ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  8746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8747. $as_echo "yes" >&6; }
  8748. break
  8749. else
  8750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8751. $as_echo "no" >&6; }
  8752. fi
  8753. done
  8754. fi
  8755. if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
  8756. for ncn_progname in c++ g++ cxx gxx; do
  8757. if test -n "$ncn_target_tool_prefix"; then
  8758. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8759. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  8760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8761. $as_echo_n "checking for $ac_word... " >&6; }
  8762. if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
  8763. $as_echo_n "(cached) " >&6
  8764. else
  8765. if test -n "$CXX_FOR_TARGET"; then
  8766. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  8767. else
  8768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8769. for as_dir in $PATH
  8770. do
  8771. IFS=$as_save_IFS
  8772. test -z "$as_dir" && as_dir=.
  8773. for ac_exec_ext in '' $ac_executable_extensions; do
  8774. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8775. ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  8776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8777. break 2
  8778. fi
  8779. done
  8780. done
  8781. IFS=$as_save_IFS
  8782. fi
  8783. fi
  8784. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  8785. if test -n "$CXX_FOR_TARGET"; then
  8786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  8787. $as_echo "$CXX_FOR_TARGET" >&6; }
  8788. else
  8789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8790. $as_echo "no" >&6; }
  8791. fi
  8792. fi
  8793. if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
  8794. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8795. set dummy ${ncn_progname}; ac_word=$2
  8796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8797. $as_echo_n "checking for $ac_word... " >&6; }
  8798. if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
  8799. $as_echo_n "(cached) " >&6
  8800. else
  8801. if test -n "$CXX_FOR_TARGET"; then
  8802. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  8803. else
  8804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8805. for as_dir in $PATH
  8806. do
  8807. IFS=$as_save_IFS
  8808. test -z "$as_dir" && as_dir=.
  8809. for ac_exec_ext in '' $ac_executable_extensions; do
  8810. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8811. ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
  8812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8813. break 2
  8814. fi
  8815. done
  8816. done
  8817. IFS=$as_save_IFS
  8818. fi
  8819. fi
  8820. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  8821. if test -n "$CXX_FOR_TARGET"; then
  8822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  8823. $as_echo "$CXX_FOR_TARGET" >&6; }
  8824. else
  8825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8826. $as_echo "no" >&6; }
  8827. fi
  8828. fi
  8829. test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
  8830. done
  8831. fi
  8832. if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
  8833. set dummy c++ g++ cxx gxx
  8834. if test $build = $target ; then
  8835. CXX_FOR_TARGET="$2"
  8836. else
  8837. CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
  8838. fi
  8839. else
  8840. CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
  8841. fi
  8842. if test -n "$GCC_FOR_TARGET"; then
  8843. ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
  8844. elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
  8845. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  8846. fi
  8847. if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
  8848. for ncn_progname in gcc; do
  8849. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8850. set dummy ${ncn_progname}; ac_word=$2
  8851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8852. $as_echo_n "checking for $ac_word... " >&6; }
  8853. if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
  8854. $as_echo_n "(cached) " >&6
  8855. else
  8856. if test -n "$GCC_FOR_TARGET"; then
  8857. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  8858. else
  8859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8860. for as_dir in $PATH
  8861. do
  8862. IFS=$as_save_IFS
  8863. test -z "$as_dir" && as_dir=.
  8864. for ac_exec_ext in '' $ac_executable_extensions; do
  8865. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8866. ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
  8867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8868. break 2
  8869. fi
  8870. done
  8871. done
  8872. IFS=$as_save_IFS
  8873. fi
  8874. fi
  8875. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  8876. if test -n "$GCC_FOR_TARGET"; then
  8877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  8878. $as_echo "$GCC_FOR_TARGET" >&6; }
  8879. else
  8880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8881. $as_echo "no" >&6; }
  8882. fi
  8883. done
  8884. fi
  8885. if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  8886. for ncn_progname in gcc; do
  8887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  8888. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  8889. if test -x $with_build_time_tools/${ncn_progname}; then
  8890. ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  8891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8892. $as_echo "yes" >&6; }
  8893. break
  8894. else
  8895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8896. $as_echo "no" >&6; }
  8897. fi
  8898. done
  8899. fi
  8900. if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
  8901. for ncn_progname in gcc; do
  8902. if test -n "$ncn_target_tool_prefix"; then
  8903. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8904. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  8905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8906. $as_echo_n "checking for $ac_word... " >&6; }
  8907. if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
  8908. $as_echo_n "(cached) " >&6
  8909. else
  8910. if test -n "$GCC_FOR_TARGET"; then
  8911. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  8912. else
  8913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8914. for as_dir in $PATH
  8915. do
  8916. IFS=$as_save_IFS
  8917. test -z "$as_dir" && as_dir=.
  8918. for ac_exec_ext in '' $ac_executable_extensions; do
  8919. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8920. ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  8921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8922. break 2
  8923. fi
  8924. done
  8925. done
  8926. IFS=$as_save_IFS
  8927. fi
  8928. fi
  8929. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  8930. if test -n "$GCC_FOR_TARGET"; then
  8931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  8932. $as_echo "$GCC_FOR_TARGET" >&6; }
  8933. else
  8934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8935. $as_echo "no" >&6; }
  8936. fi
  8937. fi
  8938. if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
  8939. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8940. set dummy ${ncn_progname}; ac_word=$2
  8941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8942. $as_echo_n "checking for $ac_word... " >&6; }
  8943. if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
  8944. $as_echo_n "(cached) " >&6
  8945. else
  8946. if test -n "$GCC_FOR_TARGET"; then
  8947. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  8948. else
  8949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8950. for as_dir in $PATH
  8951. do
  8952. IFS=$as_save_IFS
  8953. test -z "$as_dir" && as_dir=.
  8954. for ac_exec_ext in '' $ac_executable_extensions; do
  8955. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8956. ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
  8957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8958. break 2
  8959. fi
  8960. done
  8961. done
  8962. IFS=$as_save_IFS
  8963. fi
  8964. fi
  8965. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  8966. if test -n "$GCC_FOR_TARGET"; then
  8967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  8968. $as_echo "$GCC_FOR_TARGET" >&6; }
  8969. else
  8970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8971. $as_echo "no" >&6; }
  8972. fi
  8973. fi
  8974. test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
  8975. done
  8976. fi
  8977. if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
  8978. GCC_FOR_TARGET="${CC_FOR_TARGET}"
  8979. else
  8980. GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
  8981. fi
  8982. if test -n "$GCJ_FOR_TARGET"; then
  8983. ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
  8984. elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
  8985. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  8986. fi
  8987. if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
  8988. for ncn_progname in gcj; do
  8989. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8990. set dummy ${ncn_progname}; ac_word=$2
  8991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8992. $as_echo_n "checking for $ac_word... " >&6; }
  8993. if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
  8994. $as_echo_n "(cached) " >&6
  8995. else
  8996. if test -n "$GCJ_FOR_TARGET"; then
  8997. ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
  8998. else
  8999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9000. for as_dir in $PATH
  9001. do
  9002. IFS=$as_save_IFS
  9003. test -z "$as_dir" && as_dir=.
  9004. for ac_exec_ext in '' $ac_executable_extensions; do
  9005. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9006. ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
  9007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9008. break 2
  9009. fi
  9010. done
  9011. done
  9012. IFS=$as_save_IFS
  9013. fi
  9014. fi
  9015. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  9016. if test -n "$GCJ_FOR_TARGET"; then
  9017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
  9018. $as_echo "$GCJ_FOR_TARGET" >&6; }
  9019. else
  9020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9021. $as_echo "no" >&6; }
  9022. fi
  9023. done
  9024. fi
  9025. if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9026. for ncn_progname in gcj; do
  9027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9028. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9029. if test -x $with_build_time_tools/${ncn_progname}; then
  9030. ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9032. $as_echo "yes" >&6; }
  9033. break
  9034. else
  9035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9036. $as_echo "no" >&6; }
  9037. fi
  9038. done
  9039. fi
  9040. if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
  9041. for ncn_progname in gcj; do
  9042. if test -n "$ncn_target_tool_prefix"; then
  9043. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9044. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9046. $as_echo_n "checking for $ac_word... " >&6; }
  9047. if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
  9048. $as_echo_n "(cached) " >&6
  9049. else
  9050. if test -n "$GCJ_FOR_TARGET"; then
  9051. ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
  9052. else
  9053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9054. for as_dir in $PATH
  9055. do
  9056. IFS=$as_save_IFS
  9057. test -z "$as_dir" && as_dir=.
  9058. for ac_exec_ext in '' $ac_executable_extensions; do
  9059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9060. ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9062. break 2
  9063. fi
  9064. done
  9065. done
  9066. IFS=$as_save_IFS
  9067. fi
  9068. fi
  9069. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  9070. if test -n "$GCJ_FOR_TARGET"; then
  9071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
  9072. $as_echo "$GCJ_FOR_TARGET" >&6; }
  9073. else
  9074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9075. $as_echo "no" >&6; }
  9076. fi
  9077. fi
  9078. if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
  9079. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9080. set dummy ${ncn_progname}; ac_word=$2
  9081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9082. $as_echo_n "checking for $ac_word... " >&6; }
  9083. if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
  9084. $as_echo_n "(cached) " >&6
  9085. else
  9086. if test -n "$GCJ_FOR_TARGET"; then
  9087. ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
  9088. else
  9089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9090. for as_dir in $PATH
  9091. do
  9092. IFS=$as_save_IFS
  9093. test -z "$as_dir" && as_dir=.
  9094. for ac_exec_ext in '' $ac_executable_extensions; do
  9095. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9096. ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
  9097. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9098. break 2
  9099. fi
  9100. done
  9101. done
  9102. IFS=$as_save_IFS
  9103. fi
  9104. fi
  9105. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  9106. if test -n "$GCJ_FOR_TARGET"; then
  9107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
  9108. $as_echo "$GCJ_FOR_TARGET" >&6; }
  9109. else
  9110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9111. $as_echo "no" >&6; }
  9112. fi
  9113. fi
  9114. test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
  9115. done
  9116. fi
  9117. if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
  9118. set dummy gcj
  9119. if test $build = $target ; then
  9120. GCJ_FOR_TARGET="$2"
  9121. else
  9122. GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9123. fi
  9124. else
  9125. GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
  9126. fi
  9127. if test -n "$GFORTRAN_FOR_TARGET"; then
  9128. ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
  9129. elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9130. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9131. fi
  9132. if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9133. for ncn_progname in gfortran; do
  9134. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9135. set dummy ${ncn_progname}; ac_word=$2
  9136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9137. $as_echo_n "checking for $ac_word... " >&6; }
  9138. if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
  9139. $as_echo_n "(cached) " >&6
  9140. else
  9141. if test -n "$GFORTRAN_FOR_TARGET"; then
  9142. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9143. else
  9144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9145. for as_dir in $PATH
  9146. do
  9147. IFS=$as_save_IFS
  9148. test -z "$as_dir" && as_dir=.
  9149. for ac_exec_ext in '' $ac_executable_extensions; do
  9150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9151. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
  9152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9153. break 2
  9154. fi
  9155. done
  9156. done
  9157. IFS=$as_save_IFS
  9158. fi
  9159. fi
  9160. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9161. if test -n "$GFORTRAN_FOR_TARGET"; then
  9162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9163. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9164. else
  9165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9166. $as_echo "no" >&6; }
  9167. fi
  9168. done
  9169. fi
  9170. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9171. for ncn_progname in gfortran; do
  9172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9173. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9174. if test -x $with_build_time_tools/${ncn_progname}; then
  9175. ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9177. $as_echo "yes" >&6; }
  9178. break
  9179. else
  9180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9181. $as_echo "no" >&6; }
  9182. fi
  9183. done
  9184. fi
  9185. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9186. for ncn_progname in gfortran; do
  9187. if test -n "$ncn_target_tool_prefix"; then
  9188. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9189. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9191. $as_echo_n "checking for $ac_word... " >&6; }
  9192. if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
  9193. $as_echo_n "(cached) " >&6
  9194. else
  9195. if test -n "$GFORTRAN_FOR_TARGET"; then
  9196. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9197. else
  9198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9199. for as_dir in $PATH
  9200. do
  9201. IFS=$as_save_IFS
  9202. test -z "$as_dir" && as_dir=.
  9203. for ac_exec_ext in '' $ac_executable_extensions; do
  9204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9205. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9207. break 2
  9208. fi
  9209. done
  9210. done
  9211. IFS=$as_save_IFS
  9212. fi
  9213. fi
  9214. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9215. if test -n "$GFORTRAN_FOR_TARGET"; then
  9216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9217. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9218. else
  9219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9220. $as_echo "no" >&6; }
  9221. fi
  9222. fi
  9223. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
  9224. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9225. set dummy ${ncn_progname}; ac_word=$2
  9226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9227. $as_echo_n "checking for $ac_word... " >&6; }
  9228. if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
  9229. $as_echo_n "(cached) " >&6
  9230. else
  9231. if test -n "$GFORTRAN_FOR_TARGET"; then
  9232. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9233. else
  9234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9235. for as_dir in $PATH
  9236. do
  9237. IFS=$as_save_IFS
  9238. test -z "$as_dir" && as_dir=.
  9239. for ac_exec_ext in '' $ac_executable_extensions; do
  9240. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9241. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
  9242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9243. break 2
  9244. fi
  9245. done
  9246. done
  9247. IFS=$as_save_IFS
  9248. fi
  9249. fi
  9250. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9251. if test -n "$GFORTRAN_FOR_TARGET"; then
  9252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9253. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9254. else
  9255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9256. $as_echo "no" >&6; }
  9257. fi
  9258. fi
  9259. test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
  9260. done
  9261. fi
  9262. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
  9263. set dummy gfortran
  9264. if test $build = $target ; then
  9265. GFORTRAN_FOR_TARGET="$2"
  9266. else
  9267. GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9268. fi
  9269. else
  9270. GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
  9271. fi
  9272. if test -n "$GOC_FOR_TARGET"; then
  9273. ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
  9274. elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
  9275. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9276. fi
  9277. if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
  9278. for ncn_progname in gccgo; do
  9279. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9280. set dummy ${ncn_progname}; ac_word=$2
  9281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9282. $as_echo_n "checking for $ac_word... " >&6; }
  9283. if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
  9284. $as_echo_n "(cached) " >&6
  9285. else
  9286. if test -n "$GOC_FOR_TARGET"; then
  9287. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9288. else
  9289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9290. for as_dir in $PATH
  9291. do
  9292. IFS=$as_save_IFS
  9293. test -z "$as_dir" && as_dir=.
  9294. for ac_exec_ext in '' $ac_executable_extensions; do
  9295. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9296. ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
  9297. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9298. break 2
  9299. fi
  9300. done
  9301. done
  9302. IFS=$as_save_IFS
  9303. fi
  9304. fi
  9305. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9306. if test -n "$GOC_FOR_TARGET"; then
  9307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9308. $as_echo "$GOC_FOR_TARGET" >&6; }
  9309. else
  9310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9311. $as_echo "no" >&6; }
  9312. fi
  9313. done
  9314. fi
  9315. if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9316. for ncn_progname in gccgo; do
  9317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9318. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9319. if test -x $with_build_time_tools/${ncn_progname}; then
  9320. ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9322. $as_echo "yes" >&6; }
  9323. break
  9324. else
  9325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9326. $as_echo "no" >&6; }
  9327. fi
  9328. done
  9329. fi
  9330. if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
  9331. for ncn_progname in gccgo; do
  9332. if test -n "$ncn_target_tool_prefix"; then
  9333. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9334. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9336. $as_echo_n "checking for $ac_word... " >&6; }
  9337. if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
  9338. $as_echo_n "(cached) " >&6
  9339. else
  9340. if test -n "$GOC_FOR_TARGET"; then
  9341. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9342. else
  9343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9344. for as_dir in $PATH
  9345. do
  9346. IFS=$as_save_IFS
  9347. test -z "$as_dir" && as_dir=.
  9348. for ac_exec_ext in '' $ac_executable_extensions; do
  9349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9350. ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9352. break 2
  9353. fi
  9354. done
  9355. done
  9356. IFS=$as_save_IFS
  9357. fi
  9358. fi
  9359. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9360. if test -n "$GOC_FOR_TARGET"; then
  9361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9362. $as_echo "$GOC_FOR_TARGET" >&6; }
  9363. else
  9364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9365. $as_echo "no" >&6; }
  9366. fi
  9367. fi
  9368. if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
  9369. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9370. set dummy ${ncn_progname}; ac_word=$2
  9371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9372. $as_echo_n "checking for $ac_word... " >&6; }
  9373. if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
  9374. $as_echo_n "(cached) " >&6
  9375. else
  9376. if test -n "$GOC_FOR_TARGET"; then
  9377. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9378. else
  9379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9380. for as_dir in $PATH
  9381. do
  9382. IFS=$as_save_IFS
  9383. test -z "$as_dir" && as_dir=.
  9384. for ac_exec_ext in '' $ac_executable_extensions; do
  9385. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9386. ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
  9387. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9388. break 2
  9389. fi
  9390. done
  9391. done
  9392. IFS=$as_save_IFS
  9393. fi
  9394. fi
  9395. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9396. if test -n "$GOC_FOR_TARGET"; then
  9397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9398. $as_echo "$GOC_FOR_TARGET" >&6; }
  9399. else
  9400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9401. $as_echo "no" >&6; }
  9402. fi
  9403. fi
  9404. test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
  9405. done
  9406. fi
  9407. if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
  9408. set dummy gccgo
  9409. if test $build = $target ; then
  9410. GOC_FOR_TARGET="$2"
  9411. else
  9412. GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9413. fi
  9414. else
  9415. GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
  9416. fi
  9417. cat > conftest.c << \EOF
  9418. #ifdef __GNUC__
  9419. gcc_yay;
  9420. #endif
  9421. EOF
  9422. if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
  9423. have_gcc_for_target=yes
  9424. else
  9425. GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
  9426. have_gcc_for_target=no
  9427. fi
  9428. rm conftest.c
  9429. if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
  9430. if test -n "$with_build_time_tools"; then
  9431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
  9432. $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
  9433. if test -x $with_build_time_tools/ar; then
  9434. AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
  9435. ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
  9436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
  9437. $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
  9438. else
  9439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9440. $as_echo "no" >&6; }
  9441. fi
  9442. elif test $build != $host && test $have_gcc_for_target = yes; then
  9443. AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
  9444. test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
  9445. test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
  9446. fi
  9447. fi
  9448. if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  9449. # Extract the first word of "ar", so it can be a program name with args.
  9450. set dummy ar; ac_word=$2
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9452. $as_echo_n "checking for $ac_word... " >&6; }
  9453. if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
  9454. $as_echo_n "(cached) " >&6
  9455. else
  9456. case $AR_FOR_TARGET in
  9457. [\\/]* | ?:[\\/]*)
  9458. ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
  9459. ;;
  9460. *)
  9461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9462. for as_dir in $gcc_cv_tool_dirs
  9463. do
  9464. IFS=$as_save_IFS
  9465. test -z "$as_dir" && as_dir=.
  9466. for ac_exec_ext in '' $ac_executable_extensions; do
  9467. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9468. ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  9469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9470. break 2
  9471. fi
  9472. done
  9473. done
  9474. IFS=$as_save_IFS
  9475. ;;
  9476. esac
  9477. fi
  9478. AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
  9479. if test -n "$AR_FOR_TARGET"; then
  9480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9481. $as_echo "$AR_FOR_TARGET" >&6; }
  9482. else
  9483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9484. $as_echo "no" >&6; }
  9485. fi
  9486. fi
  9487. if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
  9488. if test -n "$AR_FOR_TARGET"; then
  9489. ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
  9490. elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
  9491. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9492. fi
  9493. if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
  9494. for ncn_progname in ar; do
  9495. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9496. set dummy ${ncn_progname}; ac_word=$2
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9498. $as_echo_n "checking for $ac_word... " >&6; }
  9499. if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
  9500. $as_echo_n "(cached) " >&6
  9501. else
  9502. if test -n "$AR_FOR_TARGET"; then
  9503. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  9504. else
  9505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9506. for as_dir in $PATH
  9507. do
  9508. IFS=$as_save_IFS
  9509. test -z "$as_dir" && as_dir=.
  9510. for ac_exec_ext in '' $ac_executable_extensions; do
  9511. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9512. ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
  9513. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9514. break 2
  9515. fi
  9516. done
  9517. done
  9518. IFS=$as_save_IFS
  9519. fi
  9520. fi
  9521. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9522. if test -n "$AR_FOR_TARGET"; then
  9523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9524. $as_echo "$AR_FOR_TARGET" >&6; }
  9525. else
  9526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9527. $as_echo "no" >&6; }
  9528. fi
  9529. done
  9530. fi
  9531. if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9532. for ncn_progname in ar; do
  9533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9534. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9535. if test -x $with_build_time_tools/${ncn_progname}; then
  9536. ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9538. $as_echo "yes" >&6; }
  9539. break
  9540. else
  9541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9542. $as_echo "no" >&6; }
  9543. fi
  9544. done
  9545. fi
  9546. if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
  9547. for ncn_progname in ar; do
  9548. if test -n "$ncn_target_tool_prefix"; then
  9549. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9550. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9552. $as_echo_n "checking for $ac_word... " >&6; }
  9553. if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
  9554. $as_echo_n "(cached) " >&6
  9555. else
  9556. if test -n "$AR_FOR_TARGET"; then
  9557. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  9558. else
  9559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9560. for as_dir in $PATH
  9561. do
  9562. IFS=$as_save_IFS
  9563. test -z "$as_dir" && as_dir=.
  9564. for ac_exec_ext in '' $ac_executable_extensions; do
  9565. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9566. ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9568. break 2
  9569. fi
  9570. done
  9571. done
  9572. IFS=$as_save_IFS
  9573. fi
  9574. fi
  9575. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9576. if test -n "$AR_FOR_TARGET"; then
  9577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9578. $as_echo "$AR_FOR_TARGET" >&6; }
  9579. else
  9580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9581. $as_echo "no" >&6; }
  9582. fi
  9583. fi
  9584. if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
  9585. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9586. set dummy ${ncn_progname}; ac_word=$2
  9587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9588. $as_echo_n "checking for $ac_word... " >&6; }
  9589. if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
  9590. $as_echo_n "(cached) " >&6
  9591. else
  9592. if test -n "$AR_FOR_TARGET"; then
  9593. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  9594. else
  9595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9596. for as_dir in $PATH
  9597. do
  9598. IFS=$as_save_IFS
  9599. test -z "$as_dir" && as_dir=.
  9600. for ac_exec_ext in '' $ac_executable_extensions; do
  9601. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9602. ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
  9603. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9604. break 2
  9605. fi
  9606. done
  9607. done
  9608. IFS=$as_save_IFS
  9609. fi
  9610. fi
  9611. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9612. if test -n "$AR_FOR_TARGET"; then
  9613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9614. $as_echo "$AR_FOR_TARGET" >&6; }
  9615. else
  9616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9617. $as_echo "no" >&6; }
  9618. fi
  9619. fi
  9620. test -n "$ac_cv_prog_AR_FOR_TARGET" && break
  9621. done
  9622. fi
  9623. if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
  9624. set dummy ar
  9625. if test $build = $target ; then
  9626. AR_FOR_TARGET="$2"
  9627. else
  9628. AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9629. fi
  9630. else
  9631. AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
  9632. fi
  9633. else
  9634. AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
  9635. fi
  9636. if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
  9637. if test -n "$with_build_time_tools"; then
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
  9639. $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
  9640. if test -x $with_build_time_tools/as; then
  9641. AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
  9642. ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
  9643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
  9644. $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
  9645. else
  9646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9647. $as_echo "no" >&6; }
  9648. fi
  9649. elif test $build != $host && test $have_gcc_for_target = yes; then
  9650. AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
  9651. test $AS_FOR_TARGET = as && AS_FOR_TARGET=
  9652. test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
  9653. fi
  9654. fi
  9655. if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  9656. # Extract the first word of "as", so it can be a program name with args.
  9657. set dummy as; ac_word=$2
  9658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9659. $as_echo_n "checking for $ac_word... " >&6; }
  9660. if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
  9661. $as_echo_n "(cached) " >&6
  9662. else
  9663. case $AS_FOR_TARGET in
  9664. [\\/]* | ?:[\\/]*)
  9665. ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
  9666. ;;
  9667. *)
  9668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9669. for as_dir in $gcc_cv_tool_dirs
  9670. do
  9671. IFS=$as_save_IFS
  9672. test -z "$as_dir" && as_dir=.
  9673. for ac_exec_ext in '' $ac_executable_extensions; do
  9674. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9675. ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  9676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9677. break 2
  9678. fi
  9679. done
  9680. done
  9681. IFS=$as_save_IFS
  9682. ;;
  9683. esac
  9684. fi
  9685. AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
  9686. if test -n "$AS_FOR_TARGET"; then
  9687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  9688. $as_echo "$AS_FOR_TARGET" >&6; }
  9689. else
  9690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9691. $as_echo "no" >&6; }
  9692. fi
  9693. fi
  9694. if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
  9695. if test -n "$AS_FOR_TARGET"; then
  9696. ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
  9697. elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
  9698. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  9699. fi
  9700. if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
  9701. for ncn_progname in as; do
  9702. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9703. set dummy ${ncn_progname}; ac_word=$2
  9704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9705. $as_echo_n "checking for $ac_word... " >&6; }
  9706. if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
  9707. $as_echo_n "(cached) " >&6
  9708. else
  9709. if test -n "$AS_FOR_TARGET"; then
  9710. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  9711. else
  9712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9713. for as_dir in $PATH
  9714. do
  9715. IFS=$as_save_IFS
  9716. test -z "$as_dir" && as_dir=.
  9717. for ac_exec_ext in '' $ac_executable_extensions; do
  9718. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9719. ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
  9720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9721. break 2
  9722. fi
  9723. done
  9724. done
  9725. IFS=$as_save_IFS
  9726. fi
  9727. fi
  9728. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  9729. if test -n "$AS_FOR_TARGET"; then
  9730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  9731. $as_echo "$AS_FOR_TARGET" >&6; }
  9732. else
  9733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9734. $as_echo "no" >&6; }
  9735. fi
  9736. done
  9737. fi
  9738. if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9739. for ncn_progname in as; do
  9740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9741. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9742. if test -x $with_build_time_tools/${ncn_progname}; then
  9743. ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9745. $as_echo "yes" >&6; }
  9746. break
  9747. else
  9748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9749. $as_echo "no" >&6; }
  9750. fi
  9751. done
  9752. fi
  9753. if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
  9754. for ncn_progname in as; do
  9755. if test -n "$ncn_target_tool_prefix"; then
  9756. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9757. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9759. $as_echo_n "checking for $ac_word... " >&6; }
  9760. if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
  9761. $as_echo_n "(cached) " >&6
  9762. else
  9763. if test -n "$AS_FOR_TARGET"; then
  9764. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  9765. else
  9766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9767. for as_dir in $PATH
  9768. do
  9769. IFS=$as_save_IFS
  9770. test -z "$as_dir" && as_dir=.
  9771. for ac_exec_ext in '' $ac_executable_extensions; do
  9772. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9773. ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9775. break 2
  9776. fi
  9777. done
  9778. done
  9779. IFS=$as_save_IFS
  9780. fi
  9781. fi
  9782. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  9783. if test -n "$AS_FOR_TARGET"; then
  9784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  9785. $as_echo "$AS_FOR_TARGET" >&6; }
  9786. else
  9787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9788. $as_echo "no" >&6; }
  9789. fi
  9790. fi
  9791. if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
  9792. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9793. set dummy ${ncn_progname}; ac_word=$2
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9795. $as_echo_n "checking for $ac_word... " >&6; }
  9796. if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
  9797. $as_echo_n "(cached) " >&6
  9798. else
  9799. if test -n "$AS_FOR_TARGET"; then
  9800. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  9801. else
  9802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9803. for as_dir in $PATH
  9804. do
  9805. IFS=$as_save_IFS
  9806. test -z "$as_dir" && as_dir=.
  9807. for ac_exec_ext in '' $ac_executable_extensions; do
  9808. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9809. ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
  9810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9811. break 2
  9812. fi
  9813. done
  9814. done
  9815. IFS=$as_save_IFS
  9816. fi
  9817. fi
  9818. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  9819. if test -n "$AS_FOR_TARGET"; then
  9820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  9821. $as_echo "$AS_FOR_TARGET" >&6; }
  9822. else
  9823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9824. $as_echo "no" >&6; }
  9825. fi
  9826. fi
  9827. test -n "$ac_cv_prog_AS_FOR_TARGET" && break
  9828. done
  9829. fi
  9830. if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
  9831. set dummy as
  9832. if test $build = $target ; then
  9833. AS_FOR_TARGET="$2"
  9834. else
  9835. AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9836. fi
  9837. else
  9838. AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
  9839. fi
  9840. else
  9841. AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
  9842. fi
  9843. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
  9844. if test -n "$with_build_time_tools"; then
  9845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
  9846. $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
  9847. if test -x $with_build_time_tools/dlltool; then
  9848. DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
  9849. ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  9850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
  9851. $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
  9852. else
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9854. $as_echo "no" >&6; }
  9855. fi
  9856. elif test $build != $host && test $have_gcc_for_target = yes; then
  9857. DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
  9858. test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
  9859. test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  9860. fi
  9861. fi
  9862. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  9863. # Extract the first word of "dlltool", so it can be a program name with args.
  9864. set dummy dlltool; ac_word=$2
  9865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9866. $as_echo_n "checking for $ac_word... " >&6; }
  9867. if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
  9868. $as_echo_n "(cached) " >&6
  9869. else
  9870. case $DLLTOOL_FOR_TARGET in
  9871. [\\/]* | ?:[\\/]*)
  9872. ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
  9873. ;;
  9874. *)
  9875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9876. for as_dir in $gcc_cv_tool_dirs
  9877. do
  9878. IFS=$as_save_IFS
  9879. test -z "$as_dir" && as_dir=.
  9880. for ac_exec_ext in '' $ac_executable_extensions; do
  9881. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9882. ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  9883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9884. break 2
  9885. fi
  9886. done
  9887. done
  9888. IFS=$as_save_IFS
  9889. ;;
  9890. esac
  9891. fi
  9892. DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
  9893. if test -n "$DLLTOOL_FOR_TARGET"; then
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  9895. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  9896. else
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9898. $as_echo "no" >&6; }
  9899. fi
  9900. fi
  9901. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
  9902. if test -n "$DLLTOOL_FOR_TARGET"; then
  9903. ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  9904. elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  9905. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  9906. fi
  9907. if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  9908. for ncn_progname in dlltool; do
  9909. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9910. set dummy ${ncn_progname}; ac_word=$2
  9911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9912. $as_echo_n "checking for $ac_word... " >&6; }
  9913. if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
  9914. $as_echo_n "(cached) " >&6
  9915. else
  9916. if test -n "$DLLTOOL_FOR_TARGET"; then
  9917. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  9918. else
  9919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9920. for as_dir in $PATH
  9921. do
  9922. IFS=$as_save_IFS
  9923. test -z "$as_dir" && as_dir=.
  9924. for ac_exec_ext in '' $ac_executable_extensions; do
  9925. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9926. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
  9927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9928. break 2
  9929. fi
  9930. done
  9931. done
  9932. IFS=$as_save_IFS
  9933. fi
  9934. fi
  9935. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  9936. if test -n "$DLLTOOL_FOR_TARGET"; then
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  9938. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  9939. else
  9940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9941. $as_echo "no" >&6; }
  9942. fi
  9943. done
  9944. fi
  9945. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9946. for ncn_progname in dlltool; do
  9947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9948. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9949. if test -x $with_build_time_tools/${ncn_progname}; then
  9950. ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9952. $as_echo "yes" >&6; }
  9953. break
  9954. else
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9956. $as_echo "no" >&6; }
  9957. fi
  9958. done
  9959. fi
  9960. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  9961. for ncn_progname in dlltool; do
  9962. if test -n "$ncn_target_tool_prefix"; then
  9963. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9964. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9966. $as_echo_n "checking for $ac_word... " >&6; }
  9967. if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
  9968. $as_echo_n "(cached) " >&6
  9969. else
  9970. if test -n "$DLLTOOL_FOR_TARGET"; then
  9971. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  9972. else
  9973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9974. for as_dir in $PATH
  9975. do
  9976. IFS=$as_save_IFS
  9977. test -z "$as_dir" && as_dir=.
  9978. for ac_exec_ext in '' $ac_executable_extensions; do
  9979. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9980. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9982. break 2
  9983. fi
  9984. done
  9985. done
  9986. IFS=$as_save_IFS
  9987. fi
  9988. fi
  9989. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  9990. if test -n "$DLLTOOL_FOR_TARGET"; then
  9991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  9992. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  9993. else
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9995. $as_echo "no" >&6; }
  9996. fi
  9997. fi
  9998. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
  9999. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10000. set dummy ${ncn_progname}; ac_word=$2
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10002. $as_echo_n "checking for $ac_word... " >&6; }
  10003. if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
  10004. $as_echo_n "(cached) " >&6
  10005. else
  10006. if test -n "$DLLTOOL_FOR_TARGET"; then
  10007. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  10008. else
  10009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10010. for as_dir in $PATH
  10011. do
  10012. IFS=$as_save_IFS
  10013. test -z "$as_dir" && as_dir=.
  10014. for ac_exec_ext in '' $ac_executable_extensions; do
  10015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10016. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
  10017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10018. break 2
  10019. fi
  10020. done
  10021. done
  10022. IFS=$as_save_IFS
  10023. fi
  10024. fi
  10025. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10026. if test -n "$DLLTOOL_FOR_TARGET"; then
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10028. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10029. else
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10031. $as_echo "no" >&6; }
  10032. fi
  10033. fi
  10034. test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
  10035. done
  10036. fi
  10037. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
  10038. set dummy dlltool
  10039. if test $build = $target ; then
  10040. DLLTOOL_FOR_TARGET="$2"
  10041. else
  10042. DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10043. fi
  10044. else
  10045. DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
  10046. fi
  10047. else
  10048. DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
  10049. fi
  10050. if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
  10051. if test -n "$with_build_time_tools"; then
  10052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
  10053. $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
  10054. if test -x $with_build_time_tools/ld; then
  10055. LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
  10056. ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
  10057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
  10058. $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
  10059. else
  10060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10061. $as_echo "no" >&6; }
  10062. fi
  10063. elif test $build != $host && test $have_gcc_for_target = yes; then
  10064. LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
  10065. test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
  10066. test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
  10067. fi
  10068. fi
  10069. if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10070. # Extract the first word of "ld", so it can be a program name with args.
  10071. set dummy ld; ac_word=$2
  10072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10073. $as_echo_n "checking for $ac_word... " >&6; }
  10074. if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
  10075. $as_echo_n "(cached) " >&6
  10076. else
  10077. case $LD_FOR_TARGET in
  10078. [\\/]* | ?:[\\/]*)
  10079. ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
  10080. ;;
  10081. *)
  10082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10083. for as_dir in $gcc_cv_tool_dirs
  10084. do
  10085. IFS=$as_save_IFS
  10086. test -z "$as_dir" && as_dir=.
  10087. for ac_exec_ext in '' $ac_executable_extensions; do
  10088. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10089. ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10091. break 2
  10092. fi
  10093. done
  10094. done
  10095. IFS=$as_save_IFS
  10096. ;;
  10097. esac
  10098. fi
  10099. LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
  10100. if test -n "$LD_FOR_TARGET"; then
  10101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10102. $as_echo "$LD_FOR_TARGET" >&6; }
  10103. else
  10104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10105. $as_echo "no" >&6; }
  10106. fi
  10107. fi
  10108. if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
  10109. if test -n "$LD_FOR_TARGET"; then
  10110. ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
  10111. elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
  10112. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10113. fi
  10114. if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
  10115. for ncn_progname in ld; do
  10116. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10117. set dummy ${ncn_progname}; ac_word=$2
  10118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10119. $as_echo_n "checking for $ac_word... " >&6; }
  10120. if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
  10121. $as_echo_n "(cached) " >&6
  10122. else
  10123. if test -n "$LD_FOR_TARGET"; then
  10124. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10125. else
  10126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10127. for as_dir in $PATH
  10128. do
  10129. IFS=$as_save_IFS
  10130. test -z "$as_dir" && as_dir=.
  10131. for ac_exec_ext in '' $ac_executable_extensions; do
  10132. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10133. ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
  10134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10135. break 2
  10136. fi
  10137. done
  10138. done
  10139. IFS=$as_save_IFS
  10140. fi
  10141. fi
  10142. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10143. if test -n "$LD_FOR_TARGET"; then
  10144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10145. $as_echo "$LD_FOR_TARGET" >&6; }
  10146. else
  10147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10148. $as_echo "no" >&6; }
  10149. fi
  10150. done
  10151. fi
  10152. if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10153. for ncn_progname in ld; do
  10154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10155. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10156. if test -x $with_build_time_tools/${ncn_progname}; then
  10157. ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10159. $as_echo "yes" >&6; }
  10160. break
  10161. else
  10162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10163. $as_echo "no" >&6; }
  10164. fi
  10165. done
  10166. fi
  10167. if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
  10168. for ncn_progname in ld; do
  10169. if test -n "$ncn_target_tool_prefix"; then
  10170. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10171. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10173. $as_echo_n "checking for $ac_word... " >&6; }
  10174. if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
  10175. $as_echo_n "(cached) " >&6
  10176. else
  10177. if test -n "$LD_FOR_TARGET"; then
  10178. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10179. else
  10180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10181. for as_dir in $PATH
  10182. do
  10183. IFS=$as_save_IFS
  10184. test -z "$as_dir" && as_dir=.
  10185. for ac_exec_ext in '' $ac_executable_extensions; do
  10186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10187. ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10189. break 2
  10190. fi
  10191. done
  10192. done
  10193. IFS=$as_save_IFS
  10194. fi
  10195. fi
  10196. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10197. if test -n "$LD_FOR_TARGET"; then
  10198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10199. $as_echo "$LD_FOR_TARGET" >&6; }
  10200. else
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10202. $as_echo "no" >&6; }
  10203. fi
  10204. fi
  10205. if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
  10206. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10207. set dummy ${ncn_progname}; ac_word=$2
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10209. $as_echo_n "checking for $ac_word... " >&6; }
  10210. if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
  10211. $as_echo_n "(cached) " >&6
  10212. else
  10213. if test -n "$LD_FOR_TARGET"; then
  10214. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10215. else
  10216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10217. for as_dir in $PATH
  10218. do
  10219. IFS=$as_save_IFS
  10220. test -z "$as_dir" && as_dir=.
  10221. for ac_exec_ext in '' $ac_executable_extensions; do
  10222. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10223. ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
  10224. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10225. break 2
  10226. fi
  10227. done
  10228. done
  10229. IFS=$as_save_IFS
  10230. fi
  10231. fi
  10232. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10233. if test -n "$LD_FOR_TARGET"; then
  10234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10235. $as_echo "$LD_FOR_TARGET" >&6; }
  10236. else
  10237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10238. $as_echo "no" >&6; }
  10239. fi
  10240. fi
  10241. test -n "$ac_cv_prog_LD_FOR_TARGET" && break
  10242. done
  10243. fi
  10244. if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
  10245. set dummy ld
  10246. if test $build = $target ; then
  10247. LD_FOR_TARGET="$2"
  10248. else
  10249. LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10250. fi
  10251. else
  10252. LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
  10253. fi
  10254. else
  10255. LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
  10256. fi
  10257. if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
  10258. if test -n "$with_build_time_tools"; then
  10259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
  10260. $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
  10261. if test -x $with_build_time_tools/lipo; then
  10262. LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
  10263. ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
  10265. $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
  10266. else
  10267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10268. $as_echo "no" >&6; }
  10269. fi
  10270. elif test $build != $host && test $have_gcc_for_target = yes; then
  10271. LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
  10272. test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
  10273. test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10274. fi
  10275. fi
  10276. if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10277. # Extract the first word of "lipo", so it can be a program name with args.
  10278. set dummy lipo; ac_word=$2
  10279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10280. $as_echo_n "checking for $ac_word... " >&6; }
  10281. if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
  10282. $as_echo_n "(cached) " >&6
  10283. else
  10284. case $LIPO_FOR_TARGET in
  10285. [\\/]* | ?:[\\/]*)
  10286. ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
  10287. ;;
  10288. *)
  10289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10290. for as_dir in $gcc_cv_tool_dirs
  10291. do
  10292. IFS=$as_save_IFS
  10293. test -z "$as_dir" && as_dir=.
  10294. for ac_exec_ext in '' $ac_executable_extensions; do
  10295. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10296. ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10297. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10298. break 2
  10299. fi
  10300. done
  10301. done
  10302. IFS=$as_save_IFS
  10303. ;;
  10304. esac
  10305. fi
  10306. LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
  10307. if test -n "$LIPO_FOR_TARGET"; then
  10308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10309. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10310. else
  10311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10312. $as_echo "no" >&6; }
  10313. fi
  10314. fi
  10315. if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
  10316. if test -n "$LIPO_FOR_TARGET"; then
  10317. ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10318. elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10319. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10320. fi
  10321. if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10322. for ncn_progname in lipo; do
  10323. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10324. set dummy ${ncn_progname}; ac_word=$2
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10326. $as_echo_n "checking for $ac_word... " >&6; }
  10327. if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
  10328. $as_echo_n "(cached) " >&6
  10329. else
  10330. if test -n "$LIPO_FOR_TARGET"; then
  10331. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10332. else
  10333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10334. for as_dir in $PATH
  10335. do
  10336. IFS=$as_save_IFS
  10337. test -z "$as_dir" && as_dir=.
  10338. for ac_exec_ext in '' $ac_executable_extensions; do
  10339. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10340. ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
  10341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10342. break 2
  10343. fi
  10344. done
  10345. done
  10346. IFS=$as_save_IFS
  10347. fi
  10348. fi
  10349. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10350. if test -n "$LIPO_FOR_TARGET"; then
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10352. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10353. else
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10355. $as_echo "no" >&6; }
  10356. fi
  10357. done
  10358. fi
  10359. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10360. for ncn_progname in lipo; do
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10362. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10363. if test -x $with_build_time_tools/${ncn_progname}; then
  10364. ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10366. $as_echo "yes" >&6; }
  10367. break
  10368. else
  10369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10370. $as_echo "no" >&6; }
  10371. fi
  10372. done
  10373. fi
  10374. if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10375. for ncn_progname in lipo; do
  10376. if test -n "$ncn_target_tool_prefix"; then
  10377. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10378. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10380. $as_echo_n "checking for $ac_word... " >&6; }
  10381. if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
  10382. $as_echo_n "(cached) " >&6
  10383. else
  10384. if test -n "$LIPO_FOR_TARGET"; then
  10385. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10386. else
  10387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10388. for as_dir in $PATH
  10389. do
  10390. IFS=$as_save_IFS
  10391. test -z "$as_dir" && as_dir=.
  10392. for ac_exec_ext in '' $ac_executable_extensions; do
  10393. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10394. ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10396. break 2
  10397. fi
  10398. done
  10399. done
  10400. IFS=$as_save_IFS
  10401. fi
  10402. fi
  10403. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10404. if test -n "$LIPO_FOR_TARGET"; then
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10406. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10407. else
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10409. $as_echo "no" >&6; }
  10410. fi
  10411. fi
  10412. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
  10413. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10414. set dummy ${ncn_progname}; ac_word=$2
  10415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10416. $as_echo_n "checking for $ac_word... " >&6; }
  10417. if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
  10418. $as_echo_n "(cached) " >&6
  10419. else
  10420. if test -n "$LIPO_FOR_TARGET"; then
  10421. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10422. else
  10423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10424. for as_dir in $PATH
  10425. do
  10426. IFS=$as_save_IFS
  10427. test -z "$as_dir" && as_dir=.
  10428. for ac_exec_ext in '' $ac_executable_extensions; do
  10429. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10430. ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
  10431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10432. break 2
  10433. fi
  10434. done
  10435. done
  10436. IFS=$as_save_IFS
  10437. fi
  10438. fi
  10439. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10440. if test -n "$LIPO_FOR_TARGET"; then
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10442. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10443. else
  10444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10445. $as_echo "no" >&6; }
  10446. fi
  10447. fi
  10448. test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
  10449. done
  10450. fi
  10451. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
  10452. set dummy lipo
  10453. if test $build = $target ; then
  10454. LIPO_FOR_TARGET="$2"
  10455. else
  10456. LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10457. fi
  10458. else
  10459. LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
  10460. fi
  10461. else
  10462. LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
  10463. fi
  10464. if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
  10465. if test -n "$with_build_time_tools"; then
  10466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
  10467. $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
  10468. if test -x $with_build_time_tools/nm; then
  10469. NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
  10470. ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
  10471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
  10472. $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
  10473. else
  10474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10475. $as_echo "no" >&6; }
  10476. fi
  10477. elif test $build != $host && test $have_gcc_for_target = yes; then
  10478. NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
  10479. test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
  10480. test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
  10481. fi
  10482. fi
  10483. if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10484. # Extract the first word of "nm", so it can be a program name with args.
  10485. set dummy nm; ac_word=$2
  10486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10487. $as_echo_n "checking for $ac_word... " >&6; }
  10488. if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
  10489. $as_echo_n "(cached) " >&6
  10490. else
  10491. case $NM_FOR_TARGET in
  10492. [\\/]* | ?:[\\/]*)
  10493. ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
  10494. ;;
  10495. *)
  10496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10497. for as_dir in $gcc_cv_tool_dirs
  10498. do
  10499. IFS=$as_save_IFS
  10500. test -z "$as_dir" && as_dir=.
  10501. for ac_exec_ext in '' $ac_executable_extensions; do
  10502. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10503. ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10505. break 2
  10506. fi
  10507. done
  10508. done
  10509. IFS=$as_save_IFS
  10510. ;;
  10511. esac
  10512. fi
  10513. NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
  10514. if test -n "$NM_FOR_TARGET"; then
  10515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10516. $as_echo "$NM_FOR_TARGET" >&6; }
  10517. else
  10518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10519. $as_echo "no" >&6; }
  10520. fi
  10521. fi
  10522. if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
  10523. if test -n "$NM_FOR_TARGET"; then
  10524. ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
  10525. elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
  10526. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10527. fi
  10528. if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
  10529. for ncn_progname in nm; do
  10530. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10531. set dummy ${ncn_progname}; ac_word=$2
  10532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10533. $as_echo_n "checking for $ac_word... " >&6; }
  10534. if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
  10535. $as_echo_n "(cached) " >&6
  10536. else
  10537. if test -n "$NM_FOR_TARGET"; then
  10538. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  10539. else
  10540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10541. for as_dir in $PATH
  10542. do
  10543. IFS=$as_save_IFS
  10544. test -z "$as_dir" && as_dir=.
  10545. for ac_exec_ext in '' $ac_executable_extensions; do
  10546. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10547. ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
  10548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10549. break 2
  10550. fi
  10551. done
  10552. done
  10553. IFS=$as_save_IFS
  10554. fi
  10555. fi
  10556. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10557. if test -n "$NM_FOR_TARGET"; then
  10558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10559. $as_echo "$NM_FOR_TARGET" >&6; }
  10560. else
  10561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10562. $as_echo "no" >&6; }
  10563. fi
  10564. done
  10565. fi
  10566. if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10567. for ncn_progname in nm; do
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10569. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10570. if test -x $with_build_time_tools/${ncn_progname}; then
  10571. ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10573. $as_echo "yes" >&6; }
  10574. break
  10575. else
  10576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10577. $as_echo "no" >&6; }
  10578. fi
  10579. done
  10580. fi
  10581. if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
  10582. for ncn_progname in nm; do
  10583. if test -n "$ncn_target_tool_prefix"; then
  10584. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10585. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10587. $as_echo_n "checking for $ac_word... " >&6; }
  10588. if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
  10589. $as_echo_n "(cached) " >&6
  10590. else
  10591. if test -n "$NM_FOR_TARGET"; then
  10592. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  10593. else
  10594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10595. for as_dir in $PATH
  10596. do
  10597. IFS=$as_save_IFS
  10598. test -z "$as_dir" && as_dir=.
  10599. for ac_exec_ext in '' $ac_executable_extensions; do
  10600. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10601. ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10603. break 2
  10604. fi
  10605. done
  10606. done
  10607. IFS=$as_save_IFS
  10608. fi
  10609. fi
  10610. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10611. if test -n "$NM_FOR_TARGET"; then
  10612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10613. $as_echo "$NM_FOR_TARGET" >&6; }
  10614. else
  10615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10616. $as_echo "no" >&6; }
  10617. fi
  10618. fi
  10619. if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
  10620. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10621. set dummy ${ncn_progname}; ac_word=$2
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10623. $as_echo_n "checking for $ac_word... " >&6; }
  10624. if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
  10625. $as_echo_n "(cached) " >&6
  10626. else
  10627. if test -n "$NM_FOR_TARGET"; then
  10628. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  10629. else
  10630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10631. for as_dir in $PATH
  10632. do
  10633. IFS=$as_save_IFS
  10634. test -z "$as_dir" && as_dir=.
  10635. for ac_exec_ext in '' $ac_executable_extensions; do
  10636. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10637. ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
  10638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10639. break 2
  10640. fi
  10641. done
  10642. done
  10643. IFS=$as_save_IFS
  10644. fi
  10645. fi
  10646. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10647. if test -n "$NM_FOR_TARGET"; then
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10649. $as_echo "$NM_FOR_TARGET" >&6; }
  10650. else
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10652. $as_echo "no" >&6; }
  10653. fi
  10654. fi
  10655. test -n "$ac_cv_prog_NM_FOR_TARGET" && break
  10656. done
  10657. fi
  10658. if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
  10659. set dummy nm
  10660. if test $build = $target ; then
  10661. NM_FOR_TARGET="$2"
  10662. else
  10663. NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10664. fi
  10665. else
  10666. NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
  10667. fi
  10668. else
  10669. NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
  10670. fi
  10671. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
  10672. if test -n "$with_build_time_tools"; then
  10673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
  10674. $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
  10675. if test -x $with_build_time_tools/objdump; then
  10676. OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
  10677. ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
  10679. $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
  10680. else
  10681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10682. $as_echo "no" >&6; }
  10683. fi
  10684. elif test $build != $host && test $have_gcc_for_target = yes; then
  10685. OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
  10686. test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
  10687. test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  10688. fi
  10689. fi
  10690. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10691. # Extract the first word of "objdump", so it can be a program name with args.
  10692. set dummy objdump; ac_word=$2
  10693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10694. $as_echo_n "checking for $ac_word... " >&6; }
  10695. if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
  10696. $as_echo_n "(cached) " >&6
  10697. else
  10698. case $OBJDUMP_FOR_TARGET in
  10699. [\\/]* | ?:[\\/]*)
  10700. ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
  10701. ;;
  10702. *)
  10703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10704. for as_dir in $gcc_cv_tool_dirs
  10705. do
  10706. IFS=$as_save_IFS
  10707. test -z "$as_dir" && as_dir=.
  10708. for ac_exec_ext in '' $ac_executable_extensions; do
  10709. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10710. ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10712. break 2
  10713. fi
  10714. done
  10715. done
  10716. IFS=$as_save_IFS
  10717. ;;
  10718. esac
  10719. fi
  10720. OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
  10721. if test -n "$OBJDUMP_FOR_TARGET"; then
  10722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  10723. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  10724. else
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10726. $as_echo "no" >&6; }
  10727. fi
  10728. fi
  10729. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
  10730. if test -n "$OBJDUMP_FOR_TARGET"; then
  10731. ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  10732. elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  10733. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  10734. fi
  10735. if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  10736. for ncn_progname in objdump; do
  10737. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10738. set dummy ${ncn_progname}; ac_word=$2
  10739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10740. $as_echo_n "checking for $ac_word... " >&6; }
  10741. if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
  10742. $as_echo_n "(cached) " >&6
  10743. else
  10744. if test -n "$OBJDUMP_FOR_TARGET"; then
  10745. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  10746. else
  10747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10748. for as_dir in $PATH
  10749. do
  10750. IFS=$as_save_IFS
  10751. test -z "$as_dir" && as_dir=.
  10752. for ac_exec_ext in '' $ac_executable_extensions; do
  10753. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10754. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
  10755. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10756. break 2
  10757. fi
  10758. done
  10759. done
  10760. IFS=$as_save_IFS
  10761. fi
  10762. fi
  10763. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  10764. if test -n "$OBJDUMP_FOR_TARGET"; then
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  10766. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  10767. else
  10768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10769. $as_echo "no" >&6; }
  10770. fi
  10771. done
  10772. fi
  10773. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10774. for ncn_progname in objdump; do
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10776. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10777. if test -x $with_build_time_tools/${ncn_progname}; then
  10778. ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10780. $as_echo "yes" >&6; }
  10781. break
  10782. else
  10783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10784. $as_echo "no" >&6; }
  10785. fi
  10786. done
  10787. fi
  10788. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  10789. for ncn_progname in objdump; do
  10790. if test -n "$ncn_target_tool_prefix"; then
  10791. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10792. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10794. $as_echo_n "checking for $ac_word... " >&6; }
  10795. if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
  10796. $as_echo_n "(cached) " >&6
  10797. else
  10798. if test -n "$OBJDUMP_FOR_TARGET"; then
  10799. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  10800. else
  10801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10802. for as_dir in $PATH
  10803. do
  10804. IFS=$as_save_IFS
  10805. test -z "$as_dir" && as_dir=.
  10806. for ac_exec_ext in '' $ac_executable_extensions; do
  10807. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10808. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10810. break 2
  10811. fi
  10812. done
  10813. done
  10814. IFS=$as_save_IFS
  10815. fi
  10816. fi
  10817. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  10818. if test -n "$OBJDUMP_FOR_TARGET"; then
  10819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  10820. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  10821. else
  10822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10823. $as_echo "no" >&6; }
  10824. fi
  10825. fi
  10826. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
  10827. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10828. set dummy ${ncn_progname}; ac_word=$2
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10830. $as_echo_n "checking for $ac_word... " >&6; }
  10831. if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
  10832. $as_echo_n "(cached) " >&6
  10833. else
  10834. if test -n "$OBJDUMP_FOR_TARGET"; then
  10835. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  10836. else
  10837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10838. for as_dir in $PATH
  10839. do
  10840. IFS=$as_save_IFS
  10841. test -z "$as_dir" && as_dir=.
  10842. for ac_exec_ext in '' $ac_executable_extensions; do
  10843. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10844. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
  10845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10846. break 2
  10847. fi
  10848. done
  10849. done
  10850. IFS=$as_save_IFS
  10851. fi
  10852. fi
  10853. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  10854. if test -n "$OBJDUMP_FOR_TARGET"; then
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  10856. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  10857. else
  10858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10859. $as_echo "no" >&6; }
  10860. fi
  10861. fi
  10862. test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
  10863. done
  10864. fi
  10865. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
  10866. set dummy objdump
  10867. if test $build = $target ; then
  10868. OBJDUMP_FOR_TARGET="$2"
  10869. else
  10870. OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10871. fi
  10872. else
  10873. OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
  10874. fi
  10875. else
  10876. OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
  10877. fi
  10878. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
  10879. if test -n "$with_build_time_tools"; then
  10880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
  10881. $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
  10882. if test -x $with_build_time_tools/ranlib; then
  10883. RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
  10884. ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  10885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
  10886. $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
  10887. else
  10888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10889. $as_echo "no" >&6; }
  10890. fi
  10891. elif test $build != $host && test $have_gcc_for_target = yes; then
  10892. RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
  10893. test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
  10894. test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  10895. fi
  10896. fi
  10897. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10898. # Extract the first word of "ranlib", so it can be a program name with args.
  10899. set dummy ranlib; ac_word=$2
  10900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10901. $as_echo_n "checking for $ac_word... " >&6; }
  10902. if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
  10903. $as_echo_n "(cached) " >&6
  10904. else
  10905. case $RANLIB_FOR_TARGET in
  10906. [\\/]* | ?:[\\/]*)
  10907. ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
  10908. ;;
  10909. *)
  10910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10911. for as_dir in $gcc_cv_tool_dirs
  10912. do
  10913. IFS=$as_save_IFS
  10914. test -z "$as_dir" && as_dir=.
  10915. for ac_exec_ext in '' $ac_executable_extensions; do
  10916. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10917. ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10919. break 2
  10920. fi
  10921. done
  10922. done
  10923. IFS=$as_save_IFS
  10924. ;;
  10925. esac
  10926. fi
  10927. RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
  10928. if test -n "$RANLIB_FOR_TARGET"; then
  10929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  10930. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  10931. else
  10932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10933. $as_echo "no" >&6; }
  10934. fi
  10935. fi
  10936. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
  10937. if test -n "$RANLIB_FOR_TARGET"; then
  10938. ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  10939. elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  10940. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  10941. fi
  10942. if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  10943. for ncn_progname in ranlib; do
  10944. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10945. set dummy ${ncn_progname}; ac_word=$2
  10946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10947. $as_echo_n "checking for $ac_word... " >&6; }
  10948. if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
  10949. $as_echo_n "(cached) " >&6
  10950. else
  10951. if test -n "$RANLIB_FOR_TARGET"; then
  10952. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  10953. else
  10954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10955. for as_dir in $PATH
  10956. do
  10957. IFS=$as_save_IFS
  10958. test -z "$as_dir" && as_dir=.
  10959. for ac_exec_ext in '' $ac_executable_extensions; do
  10960. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10961. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
  10962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10963. break 2
  10964. fi
  10965. done
  10966. done
  10967. IFS=$as_save_IFS
  10968. fi
  10969. fi
  10970. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  10971. if test -n "$RANLIB_FOR_TARGET"; then
  10972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  10973. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  10974. else
  10975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10976. $as_echo "no" >&6; }
  10977. fi
  10978. done
  10979. fi
  10980. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10981. for ncn_progname in ranlib; do
  10982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10983. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10984. if test -x $with_build_time_tools/${ncn_progname}; then
  10985. ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10987. $as_echo "yes" >&6; }
  10988. break
  10989. else
  10990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10991. $as_echo "no" >&6; }
  10992. fi
  10993. done
  10994. fi
  10995. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  10996. for ncn_progname in ranlib; do
  10997. if test -n "$ncn_target_tool_prefix"; then
  10998. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10999. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11001. $as_echo_n "checking for $ac_word... " >&6; }
  11002. if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
  11003. $as_echo_n "(cached) " >&6
  11004. else
  11005. if test -n "$RANLIB_FOR_TARGET"; then
  11006. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11007. else
  11008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11009. for as_dir in $PATH
  11010. do
  11011. IFS=$as_save_IFS
  11012. test -z "$as_dir" && as_dir=.
  11013. for ac_exec_ext in '' $ac_executable_extensions; do
  11014. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11015. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11017. break 2
  11018. fi
  11019. done
  11020. done
  11021. IFS=$as_save_IFS
  11022. fi
  11023. fi
  11024. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11025. if test -n "$RANLIB_FOR_TARGET"; then
  11026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11027. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11028. else
  11029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11030. $as_echo "no" >&6; }
  11031. fi
  11032. fi
  11033. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
  11034. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11035. set dummy ${ncn_progname}; ac_word=$2
  11036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11037. $as_echo_n "checking for $ac_word... " >&6; }
  11038. if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
  11039. $as_echo_n "(cached) " >&6
  11040. else
  11041. if test -n "$RANLIB_FOR_TARGET"; then
  11042. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11043. else
  11044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11045. for as_dir in $PATH
  11046. do
  11047. IFS=$as_save_IFS
  11048. test -z "$as_dir" && as_dir=.
  11049. for ac_exec_ext in '' $ac_executable_extensions; do
  11050. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11051. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
  11052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11053. break 2
  11054. fi
  11055. done
  11056. done
  11057. IFS=$as_save_IFS
  11058. fi
  11059. fi
  11060. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11061. if test -n "$RANLIB_FOR_TARGET"; then
  11062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11063. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11064. else
  11065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11066. $as_echo "no" >&6; }
  11067. fi
  11068. fi
  11069. test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
  11070. done
  11071. fi
  11072. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
  11073. set dummy ranlib
  11074. if test $build = $target ; then
  11075. RANLIB_FOR_TARGET="$2"
  11076. else
  11077. RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11078. fi
  11079. else
  11080. RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
  11081. fi
  11082. else
  11083. RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
  11084. fi
  11085. if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
  11086. if test -n "$with_build_time_tools"; then
  11087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
  11088. $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
  11089. if test -x $with_build_time_tools/strip; then
  11090. STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
  11091. ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
  11093. $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
  11094. else
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11096. $as_echo "no" >&6; }
  11097. fi
  11098. elif test $build != $host && test $have_gcc_for_target = yes; then
  11099. STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
  11100. test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
  11101. test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  11102. fi
  11103. fi
  11104. if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11105. # Extract the first word of "strip", so it can be a program name with args.
  11106. set dummy strip; ac_word=$2
  11107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11108. $as_echo_n "checking for $ac_word... " >&6; }
  11109. if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
  11110. $as_echo_n "(cached) " >&6
  11111. else
  11112. case $STRIP_FOR_TARGET in
  11113. [\\/]* | ?:[\\/]*)
  11114. ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
  11115. ;;
  11116. *)
  11117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11118. for as_dir in $gcc_cv_tool_dirs
  11119. do
  11120. IFS=$as_save_IFS
  11121. test -z "$as_dir" && as_dir=.
  11122. for ac_exec_ext in '' $ac_executable_extensions; do
  11123. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11124. ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11125. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11126. break 2
  11127. fi
  11128. done
  11129. done
  11130. IFS=$as_save_IFS
  11131. ;;
  11132. esac
  11133. fi
  11134. STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
  11135. if test -n "$STRIP_FOR_TARGET"; then
  11136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11137. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11138. else
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11140. $as_echo "no" >&6; }
  11141. fi
  11142. fi
  11143. if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
  11144. if test -n "$STRIP_FOR_TARGET"; then
  11145. ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  11146. elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
  11147. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11148. fi
  11149. if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
  11150. for ncn_progname in strip; do
  11151. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11152. set dummy ${ncn_progname}; ac_word=$2
  11153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11154. $as_echo_n "checking for $ac_word... " >&6; }
  11155. if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
  11156. $as_echo_n "(cached) " >&6
  11157. else
  11158. if test -n "$STRIP_FOR_TARGET"; then
  11159. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  11160. else
  11161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11162. for as_dir in $PATH
  11163. do
  11164. IFS=$as_save_IFS
  11165. test -z "$as_dir" && as_dir=.
  11166. for ac_exec_ext in '' $ac_executable_extensions; do
  11167. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11168. ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
  11169. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11170. break 2
  11171. fi
  11172. done
  11173. done
  11174. IFS=$as_save_IFS
  11175. fi
  11176. fi
  11177. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11178. if test -n "$STRIP_FOR_TARGET"; then
  11179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11180. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11181. else
  11182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11183. $as_echo "no" >&6; }
  11184. fi
  11185. done
  11186. fi
  11187. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11188. for ncn_progname in strip; do
  11189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11190. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11191. if test -x $with_build_time_tools/${ncn_progname}; then
  11192. ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11194. $as_echo "yes" >&6; }
  11195. break
  11196. else
  11197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11198. $as_echo "no" >&6; }
  11199. fi
  11200. done
  11201. fi
  11202. if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
  11203. for ncn_progname in strip; do
  11204. if test -n "$ncn_target_tool_prefix"; then
  11205. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11206. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11208. $as_echo_n "checking for $ac_word... " >&6; }
  11209. if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
  11210. $as_echo_n "(cached) " >&6
  11211. else
  11212. if test -n "$STRIP_FOR_TARGET"; then
  11213. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  11214. else
  11215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11216. for as_dir in $PATH
  11217. do
  11218. IFS=$as_save_IFS
  11219. test -z "$as_dir" && as_dir=.
  11220. for ac_exec_ext in '' $ac_executable_extensions; do
  11221. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11222. ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11224. break 2
  11225. fi
  11226. done
  11227. done
  11228. IFS=$as_save_IFS
  11229. fi
  11230. fi
  11231. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11232. if test -n "$STRIP_FOR_TARGET"; then
  11233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11234. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11235. else
  11236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11237. $as_echo "no" >&6; }
  11238. fi
  11239. fi
  11240. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
  11241. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11242. set dummy ${ncn_progname}; ac_word=$2
  11243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11244. $as_echo_n "checking for $ac_word... " >&6; }
  11245. if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
  11246. $as_echo_n "(cached) " >&6
  11247. else
  11248. if test -n "$STRIP_FOR_TARGET"; then
  11249. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  11250. else
  11251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11252. for as_dir in $PATH
  11253. do
  11254. IFS=$as_save_IFS
  11255. test -z "$as_dir" && as_dir=.
  11256. for ac_exec_ext in '' $ac_executable_extensions; do
  11257. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11258. ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
  11259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11260. break 2
  11261. fi
  11262. done
  11263. done
  11264. IFS=$as_save_IFS
  11265. fi
  11266. fi
  11267. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11268. if test -n "$STRIP_FOR_TARGET"; then
  11269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11270. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11271. else
  11272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11273. $as_echo "no" >&6; }
  11274. fi
  11275. fi
  11276. test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
  11277. done
  11278. fi
  11279. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
  11280. set dummy strip
  11281. if test $build = $target ; then
  11282. STRIP_FOR_TARGET="$2"
  11283. else
  11284. STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11285. fi
  11286. else
  11287. STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
  11288. fi
  11289. else
  11290. STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
  11291. fi
  11292. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
  11293. if test -n "$with_build_time_tools"; then
  11294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
  11295. $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
  11296. if test -x $with_build_time_tools/windres; then
  11297. WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
  11298. ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  11299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
  11300. $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
  11301. else
  11302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11303. $as_echo "no" >&6; }
  11304. fi
  11305. elif test $build != $host && test $have_gcc_for_target = yes; then
  11306. WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
  11307. test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
  11308. test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  11309. fi
  11310. fi
  11311. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11312. # Extract the first word of "windres", so it can be a program name with args.
  11313. set dummy windres; ac_word=$2
  11314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11315. $as_echo_n "checking for $ac_word... " >&6; }
  11316. if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
  11317. $as_echo_n "(cached) " >&6
  11318. else
  11319. case $WINDRES_FOR_TARGET in
  11320. [\\/]* | ?:[\\/]*)
  11321. ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
  11322. ;;
  11323. *)
  11324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11325. for as_dir in $gcc_cv_tool_dirs
  11326. do
  11327. IFS=$as_save_IFS
  11328. test -z "$as_dir" && as_dir=.
  11329. for ac_exec_ext in '' $ac_executable_extensions; do
  11330. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11331. ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11332. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11333. break 2
  11334. fi
  11335. done
  11336. done
  11337. IFS=$as_save_IFS
  11338. ;;
  11339. esac
  11340. fi
  11341. WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
  11342. if test -n "$WINDRES_FOR_TARGET"; then
  11343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  11344. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  11345. else
  11346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11347. $as_echo "no" >&6; }
  11348. fi
  11349. fi
  11350. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
  11351. if test -n "$WINDRES_FOR_TARGET"; then
  11352. ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  11353. elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  11354. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  11355. fi
  11356. if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  11357. for ncn_progname in windres; do
  11358. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11359. set dummy ${ncn_progname}; ac_word=$2
  11360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11361. $as_echo_n "checking for $ac_word... " >&6; }
  11362. if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
  11363. $as_echo_n "(cached) " >&6
  11364. else
  11365. if test -n "$WINDRES_FOR_TARGET"; then
  11366. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  11367. else
  11368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11369. for as_dir in $PATH
  11370. do
  11371. IFS=$as_save_IFS
  11372. test -z "$as_dir" && as_dir=.
  11373. for ac_exec_ext in '' $ac_executable_extensions; do
  11374. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11375. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
  11376. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11377. break 2
  11378. fi
  11379. done
  11380. done
  11381. IFS=$as_save_IFS
  11382. fi
  11383. fi
  11384. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  11385. if test -n "$WINDRES_FOR_TARGET"; then
  11386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  11387. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  11388. else
  11389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11390. $as_echo "no" >&6; }
  11391. fi
  11392. done
  11393. fi
  11394. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11395. for ncn_progname in windres; do
  11396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11397. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11398. if test -x $with_build_time_tools/${ncn_progname}; then
  11399. ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11401. $as_echo "yes" >&6; }
  11402. break
  11403. else
  11404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11405. $as_echo "no" >&6; }
  11406. fi
  11407. done
  11408. fi
  11409. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  11410. for ncn_progname in windres; do
  11411. if test -n "$ncn_target_tool_prefix"; then
  11412. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11413. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11415. $as_echo_n "checking for $ac_word... " >&6; }
  11416. if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
  11417. $as_echo_n "(cached) " >&6
  11418. else
  11419. if test -n "$WINDRES_FOR_TARGET"; then
  11420. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  11421. else
  11422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11423. for as_dir in $PATH
  11424. do
  11425. IFS=$as_save_IFS
  11426. test -z "$as_dir" && as_dir=.
  11427. for ac_exec_ext in '' $ac_executable_extensions; do
  11428. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11429. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11431. break 2
  11432. fi
  11433. done
  11434. done
  11435. IFS=$as_save_IFS
  11436. fi
  11437. fi
  11438. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  11439. if test -n "$WINDRES_FOR_TARGET"; then
  11440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  11441. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  11442. else
  11443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11444. $as_echo "no" >&6; }
  11445. fi
  11446. fi
  11447. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
  11448. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11449. set dummy ${ncn_progname}; ac_word=$2
  11450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11451. $as_echo_n "checking for $ac_word... " >&6; }
  11452. if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
  11453. $as_echo_n "(cached) " >&6
  11454. else
  11455. if test -n "$WINDRES_FOR_TARGET"; then
  11456. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  11457. else
  11458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11459. for as_dir in $PATH
  11460. do
  11461. IFS=$as_save_IFS
  11462. test -z "$as_dir" && as_dir=.
  11463. for ac_exec_ext in '' $ac_executable_extensions; do
  11464. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11465. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
  11466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11467. break 2
  11468. fi
  11469. done
  11470. done
  11471. IFS=$as_save_IFS
  11472. fi
  11473. fi
  11474. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  11475. if test -n "$WINDRES_FOR_TARGET"; then
  11476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  11477. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  11478. else
  11479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11480. $as_echo "no" >&6; }
  11481. fi
  11482. fi
  11483. test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
  11484. done
  11485. fi
  11486. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
  11487. set dummy windres
  11488. if test $build = $target ; then
  11489. WINDRES_FOR_TARGET="$2"
  11490. else
  11491. WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11492. fi
  11493. else
  11494. WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
  11495. fi
  11496. else
  11497. WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
  11498. fi
  11499. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
  11500. if test -n "$with_build_time_tools"; then
  11501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
  11502. $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
  11503. if test -x $with_build_time_tools/windmc; then
  11504. WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
  11505. ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  11506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
  11507. $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
  11508. else
  11509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11510. $as_echo "no" >&6; }
  11511. fi
  11512. elif test $build != $host && test $have_gcc_for_target = yes; then
  11513. WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
  11514. test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
  11515. test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  11516. fi
  11517. fi
  11518. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11519. # Extract the first word of "windmc", so it can be a program name with args.
  11520. set dummy windmc; ac_word=$2
  11521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11522. $as_echo_n "checking for $ac_word... " >&6; }
  11523. if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
  11524. $as_echo_n "(cached) " >&6
  11525. else
  11526. case $WINDMC_FOR_TARGET in
  11527. [\\/]* | ?:[\\/]*)
  11528. ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
  11529. ;;
  11530. *)
  11531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11532. for as_dir in $gcc_cv_tool_dirs
  11533. do
  11534. IFS=$as_save_IFS
  11535. test -z "$as_dir" && as_dir=.
  11536. for ac_exec_ext in '' $ac_executable_extensions; do
  11537. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11538. ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11540. break 2
  11541. fi
  11542. done
  11543. done
  11544. IFS=$as_save_IFS
  11545. ;;
  11546. esac
  11547. fi
  11548. WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
  11549. if test -n "$WINDMC_FOR_TARGET"; then
  11550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  11551. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  11552. else
  11553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11554. $as_echo "no" >&6; }
  11555. fi
  11556. fi
  11557. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
  11558. if test -n "$WINDMC_FOR_TARGET"; then
  11559. ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  11560. elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  11561. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  11562. fi
  11563. if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  11564. for ncn_progname in windmc; do
  11565. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11566. set dummy ${ncn_progname}; ac_word=$2
  11567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11568. $as_echo_n "checking for $ac_word... " >&6; }
  11569. if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
  11570. $as_echo_n "(cached) " >&6
  11571. else
  11572. if test -n "$WINDMC_FOR_TARGET"; then
  11573. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  11574. else
  11575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11576. for as_dir in $PATH
  11577. do
  11578. IFS=$as_save_IFS
  11579. test -z "$as_dir" && as_dir=.
  11580. for ac_exec_ext in '' $ac_executable_extensions; do
  11581. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11582. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
  11583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11584. break 2
  11585. fi
  11586. done
  11587. done
  11588. IFS=$as_save_IFS
  11589. fi
  11590. fi
  11591. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  11592. if test -n "$WINDMC_FOR_TARGET"; then
  11593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  11594. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  11595. else
  11596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11597. $as_echo "no" >&6; }
  11598. fi
  11599. done
  11600. fi
  11601. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11602. for ncn_progname in windmc; do
  11603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11604. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11605. if test -x $with_build_time_tools/${ncn_progname}; then
  11606. ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11608. $as_echo "yes" >&6; }
  11609. break
  11610. else
  11611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11612. $as_echo "no" >&6; }
  11613. fi
  11614. done
  11615. fi
  11616. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  11617. for ncn_progname in windmc; do
  11618. if test -n "$ncn_target_tool_prefix"; then
  11619. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11620. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11622. $as_echo_n "checking for $ac_word... " >&6; }
  11623. if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
  11624. $as_echo_n "(cached) " >&6
  11625. else
  11626. if test -n "$WINDMC_FOR_TARGET"; then
  11627. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  11628. else
  11629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11630. for as_dir in $PATH
  11631. do
  11632. IFS=$as_save_IFS
  11633. test -z "$as_dir" && as_dir=.
  11634. for ac_exec_ext in '' $ac_executable_extensions; do
  11635. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11636. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11638. break 2
  11639. fi
  11640. done
  11641. done
  11642. IFS=$as_save_IFS
  11643. fi
  11644. fi
  11645. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  11646. if test -n "$WINDMC_FOR_TARGET"; then
  11647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  11648. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  11649. else
  11650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11651. $as_echo "no" >&6; }
  11652. fi
  11653. fi
  11654. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
  11655. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11656. set dummy ${ncn_progname}; ac_word=$2
  11657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11658. $as_echo_n "checking for $ac_word... " >&6; }
  11659. if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
  11660. $as_echo_n "(cached) " >&6
  11661. else
  11662. if test -n "$WINDMC_FOR_TARGET"; then
  11663. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  11664. else
  11665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11666. for as_dir in $PATH
  11667. do
  11668. IFS=$as_save_IFS
  11669. test -z "$as_dir" && as_dir=.
  11670. for ac_exec_ext in '' $ac_executable_extensions; do
  11671. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11672. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
  11673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11674. break 2
  11675. fi
  11676. done
  11677. done
  11678. IFS=$as_save_IFS
  11679. fi
  11680. fi
  11681. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  11682. if test -n "$WINDMC_FOR_TARGET"; then
  11683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  11684. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  11685. else
  11686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11687. $as_echo "no" >&6; }
  11688. fi
  11689. fi
  11690. test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
  11691. done
  11692. fi
  11693. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
  11694. set dummy windmc
  11695. if test $build = $target ; then
  11696. WINDMC_FOR_TARGET="$2"
  11697. else
  11698. WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11699. fi
  11700. else
  11701. WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
  11702. fi
  11703. else
  11704. WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
  11705. fi
  11706. RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
  11707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
  11708. $as_echo_n "checking where to find the target ar... " >&6; }
  11709. if test "x${build}" != "x${host}" ; then
  11710. if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
  11711. # We already found the complete path
  11712. ac_dir=`dirname $AR_FOR_TARGET`
  11713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11714. $as_echo "pre-installed in $ac_dir" >&6; }
  11715. else
  11716. # Canadian cross, just use what we found
  11717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11718. $as_echo "pre-installed" >&6; }
  11719. fi
  11720. else
  11721. ok=yes
  11722. case " ${configdirs} " in
  11723. *" binutils "*) ;;
  11724. *) ok=no ;;
  11725. esac
  11726. if test $ok = yes; then
  11727. # An in-tree tool is available and we can use it
  11728. AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
  11729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  11730. $as_echo "just compiled" >&6; }
  11731. elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
  11732. # We already found the complete path
  11733. ac_dir=`dirname $AR_FOR_TARGET`
  11734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11735. $as_echo "pre-installed in $ac_dir" >&6; }
  11736. elif test "x$target" = "x$host"; then
  11737. # We can use an host tool
  11738. AR_FOR_TARGET='$(AR)'
  11739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  11740. $as_echo "host tool" >&6; }
  11741. else
  11742. # We need a cross tool
  11743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11744. $as_echo "pre-installed" >&6; }
  11745. fi
  11746. fi
  11747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
  11748. $as_echo_n "checking where to find the target as... " >&6; }
  11749. if test "x${build}" != "x${host}" ; then
  11750. if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  11751. # We already found the complete path
  11752. ac_dir=`dirname $AS_FOR_TARGET`
  11753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11754. $as_echo "pre-installed in $ac_dir" >&6; }
  11755. else
  11756. # Canadian cross, just use what we found
  11757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11758. $as_echo "pre-installed" >&6; }
  11759. fi
  11760. else
  11761. ok=yes
  11762. case " ${configdirs} " in
  11763. *" gas "*) ;;
  11764. *) ok=no ;;
  11765. esac
  11766. if test $ok = yes; then
  11767. # An in-tree tool is available and we can use it
  11768. AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
  11769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  11770. $as_echo "just compiled" >&6; }
  11771. elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  11772. # We already found the complete path
  11773. ac_dir=`dirname $AS_FOR_TARGET`
  11774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11775. $as_echo "pre-installed in $ac_dir" >&6; }
  11776. elif test "x$target" = "x$host"; then
  11777. # We can use an host tool
  11778. AS_FOR_TARGET='$(AS)'
  11779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  11780. $as_echo "host tool" >&6; }
  11781. else
  11782. # We need a cross tool
  11783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11784. $as_echo "pre-installed" >&6; }
  11785. fi
  11786. fi
  11787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
  11788. $as_echo_n "checking where to find the target cc... " >&6; }
  11789. if test "x${build}" != "x${host}" ; then
  11790. if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  11791. # We already found the complete path
  11792. ac_dir=`dirname $CC_FOR_TARGET`
  11793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11794. $as_echo "pre-installed in $ac_dir" >&6; }
  11795. else
  11796. # Canadian cross, just use what we found
  11797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11798. $as_echo "pre-installed" >&6; }
  11799. fi
  11800. else
  11801. ok=yes
  11802. case " ${configdirs} " in
  11803. *" gcc "*) ;;
  11804. *) ok=no ;;
  11805. esac
  11806. if test $ok = yes; then
  11807. # An in-tree tool is available and we can use it
  11808. CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
  11809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  11810. $as_echo "just compiled" >&6; }
  11811. elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  11812. # We already found the complete path
  11813. ac_dir=`dirname $CC_FOR_TARGET`
  11814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11815. $as_echo "pre-installed in $ac_dir" >&6; }
  11816. elif test "x$target" = "x$host"; then
  11817. # We can use an host tool
  11818. CC_FOR_TARGET='$(CC)'
  11819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  11820. $as_echo "host tool" >&6; }
  11821. else
  11822. # We need a cross tool
  11823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11824. $as_echo "pre-installed" >&6; }
  11825. fi
  11826. fi
  11827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
  11828. $as_echo_n "checking where to find the target c++... " >&6; }
  11829. if test "x${build}" != "x${host}" ; then
  11830. if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
  11831. # We already found the complete path
  11832. ac_dir=`dirname $CXX_FOR_TARGET`
  11833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11834. $as_echo "pre-installed in $ac_dir" >&6; }
  11835. else
  11836. # Canadian cross, just use what we found
  11837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11838. $as_echo "pre-installed" >&6; }
  11839. fi
  11840. else
  11841. ok=yes
  11842. case " ${configdirs} " in
  11843. *" gcc "*) ;;
  11844. *) ok=no ;;
  11845. esac
  11846. case ,${enable_languages}, in
  11847. *,c++,*) ;;
  11848. *) ok=no ;;
  11849. esac
  11850. if test $ok = yes; then
  11851. # An in-tree tool is available and we can use it
  11852. CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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'
  11853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  11854. $as_echo "just compiled" >&6; }
  11855. elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
  11856. # We already found the complete path
  11857. ac_dir=`dirname $CXX_FOR_TARGET`
  11858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11859. $as_echo "pre-installed in $ac_dir" >&6; }
  11860. elif test "x$target" = "x$host"; then
  11861. # We can use an host tool
  11862. CXX_FOR_TARGET='$(CXX)'
  11863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  11864. $as_echo "host tool" >&6; }
  11865. else
  11866. # We need a cross tool
  11867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11868. $as_echo "pre-installed" >&6; }
  11869. fi
  11870. fi
  11871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
  11872. $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
  11873. if test "x${build}" != "x${host}" ; then
  11874. if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
  11875. # We already found the complete path
  11876. ac_dir=`dirname $RAW_CXX_FOR_TARGET`
  11877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11878. $as_echo "pre-installed in $ac_dir" >&6; }
  11879. else
  11880. # Canadian cross, just use what we found
  11881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11882. $as_echo "pre-installed" >&6; }
  11883. fi
  11884. else
  11885. ok=yes
  11886. case " ${configdirs} " in
  11887. *" gcc "*) ;;
  11888. *) ok=no ;;
  11889. esac
  11890. case ,${enable_languages}, in
  11891. *,c++,*) ;;
  11892. *) ok=no ;;
  11893. esac
  11894. if test $ok = yes; then
  11895. # An in-tree tool is available and we can use it
  11896. 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'
  11897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  11898. $as_echo "just compiled" >&6; }
  11899. elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
  11900. # We already found the complete path
  11901. ac_dir=`dirname $RAW_CXX_FOR_TARGET`
  11902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11903. $as_echo "pre-installed in $ac_dir" >&6; }
  11904. elif test "x$target" = "x$host"; then
  11905. # We can use an host tool
  11906. RAW_CXX_FOR_TARGET='$(CXX)'
  11907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  11908. $as_echo "host tool" >&6; }
  11909. else
  11910. # We need a cross tool
  11911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11912. $as_echo "pre-installed" >&6; }
  11913. fi
  11914. fi
  11915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
  11916. $as_echo_n "checking where to find the target dlltool... " >&6; }
  11917. if test "x${build}" != "x${host}" ; then
  11918. if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
  11919. # We already found the complete path
  11920. ac_dir=`dirname $DLLTOOL_FOR_TARGET`
  11921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11922. $as_echo "pre-installed in $ac_dir" >&6; }
  11923. else
  11924. # Canadian cross, just use what we found
  11925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11926. $as_echo "pre-installed" >&6; }
  11927. fi
  11928. else
  11929. ok=yes
  11930. case " ${configdirs} " in
  11931. *" binutils "*) ;;
  11932. *) ok=no ;;
  11933. esac
  11934. if test $ok = yes; then
  11935. # An in-tree tool is available and we can use it
  11936. DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
  11937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  11938. $as_echo "just compiled" >&6; }
  11939. elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
  11940. # We already found the complete path
  11941. ac_dir=`dirname $DLLTOOL_FOR_TARGET`
  11942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11943. $as_echo "pre-installed in $ac_dir" >&6; }
  11944. elif test "x$target" = "x$host"; then
  11945. # We can use an host tool
  11946. DLLTOOL_FOR_TARGET='$(DLLTOOL)'
  11947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  11948. $as_echo "host tool" >&6; }
  11949. else
  11950. # We need a cross tool
  11951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11952. $as_echo "pre-installed" >&6; }
  11953. fi
  11954. fi
  11955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
  11956. $as_echo_n "checking where to find the target gcc... " >&6; }
  11957. if test "x${build}" != "x${host}" ; then
  11958. if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
  11959. # We already found the complete path
  11960. ac_dir=`dirname $GCC_FOR_TARGET`
  11961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11962. $as_echo "pre-installed in $ac_dir" >&6; }
  11963. else
  11964. # Canadian cross, just use what we found
  11965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11966. $as_echo "pre-installed" >&6; }
  11967. fi
  11968. else
  11969. ok=yes
  11970. case " ${configdirs} " in
  11971. *" gcc "*) ;;
  11972. *) ok=no ;;
  11973. esac
  11974. if test $ok = yes; then
  11975. # An in-tree tool is available and we can use it
  11976. GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
  11977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  11978. $as_echo "just compiled" >&6; }
  11979. elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
  11980. # We already found the complete path
  11981. ac_dir=`dirname $GCC_FOR_TARGET`
  11982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11983. $as_echo "pre-installed in $ac_dir" >&6; }
  11984. elif test "x$target" = "x$host"; then
  11985. # We can use an host tool
  11986. GCC_FOR_TARGET='$()'
  11987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  11988. $as_echo "host tool" >&6; }
  11989. else
  11990. # We need a cross tool
  11991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11992. $as_echo "pre-installed" >&6; }
  11993. fi
  11994. fi
  11995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
  11996. $as_echo_n "checking where to find the target gcj... " >&6; }
  11997. if test "x${build}" != "x${host}" ; then
  11998. if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
  11999. # We already found the complete path
  12000. ac_dir=`dirname $GCJ_FOR_TARGET`
  12001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12002. $as_echo "pre-installed in $ac_dir" >&6; }
  12003. else
  12004. # Canadian cross, just use what we found
  12005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12006. $as_echo "pre-installed" >&6; }
  12007. fi
  12008. else
  12009. ok=yes
  12010. case " ${configdirs} " in
  12011. *" gcc "*) ;;
  12012. *) ok=no ;;
  12013. esac
  12014. case ,${enable_languages}, in
  12015. *,java,*) ;;
  12016. *) ok=no ;;
  12017. esac
  12018. if test $ok = yes; then
  12019. # An in-tree tool is available and we can use it
  12020. GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
  12021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12022. $as_echo "just compiled" >&6; }
  12023. elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
  12024. # We already found the complete path
  12025. ac_dir=`dirname $GCJ_FOR_TARGET`
  12026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12027. $as_echo "pre-installed in $ac_dir" >&6; }
  12028. elif test "x$target" = "x$host"; then
  12029. # We can use an host tool
  12030. GCJ_FOR_TARGET='$(GCJ)'
  12031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12032. $as_echo "host tool" >&6; }
  12033. else
  12034. # We need a cross tool
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12036. $as_echo "pre-installed" >&6; }
  12037. fi
  12038. fi
  12039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
  12040. $as_echo_n "checking where to find the target gfortran... " >&6; }
  12041. if test "x${build}" != "x${host}" ; then
  12042. if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
  12043. # We already found the complete path
  12044. ac_dir=`dirname $GFORTRAN_FOR_TARGET`
  12045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12046. $as_echo "pre-installed in $ac_dir" >&6; }
  12047. else
  12048. # Canadian cross, just use what we found
  12049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12050. $as_echo "pre-installed" >&6; }
  12051. fi
  12052. else
  12053. ok=yes
  12054. case " ${configdirs} " in
  12055. *" gcc "*) ;;
  12056. *) ok=no ;;
  12057. esac
  12058. case ,${enable_languages}, in
  12059. *,fortran,*) ;;
  12060. *) ok=no ;;
  12061. esac
  12062. if test $ok = yes; then
  12063. # An in-tree tool is available and we can use it
  12064. GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
  12065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12066. $as_echo "just compiled" >&6; }
  12067. elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
  12068. # We already found the complete path
  12069. ac_dir=`dirname $GFORTRAN_FOR_TARGET`
  12070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12071. $as_echo "pre-installed in $ac_dir" >&6; }
  12072. elif test "x$target" = "x$host"; then
  12073. # We can use an host tool
  12074. GFORTRAN_FOR_TARGET='$(GFORTRAN)'
  12075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12076. $as_echo "host tool" >&6; }
  12077. else
  12078. # We need a cross tool
  12079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12080. $as_echo "pre-installed" >&6; }
  12081. fi
  12082. fi
  12083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
  12084. $as_echo_n "checking where to find the target gccgo... " >&6; }
  12085. if test "x${build}" != "x${host}" ; then
  12086. if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
  12087. # We already found the complete path
  12088. ac_dir=`dirname $GOC_FOR_TARGET`
  12089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12090. $as_echo "pre-installed in $ac_dir" >&6; }
  12091. else
  12092. # Canadian cross, just use what we found
  12093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12094. $as_echo "pre-installed" >&6; }
  12095. fi
  12096. else
  12097. ok=yes
  12098. case " ${configdirs} " in
  12099. *" gcc "*) ;;
  12100. *) ok=no ;;
  12101. esac
  12102. case ,${enable_languages}, in
  12103. *,go,*) ;;
  12104. *) ok=no ;;
  12105. esac
  12106. if test $ok = yes; then
  12107. # An in-tree tool is available and we can use it
  12108. GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
  12109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12110. $as_echo "just compiled" >&6; }
  12111. elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
  12112. # We already found the complete path
  12113. ac_dir=`dirname $GOC_FOR_TARGET`
  12114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12115. $as_echo "pre-installed in $ac_dir" >&6; }
  12116. elif test "x$target" = "x$host"; then
  12117. # We can use an host tool
  12118. GOC_FOR_TARGET='$(GOC)'
  12119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12120. $as_echo "host tool" >&6; }
  12121. else
  12122. # We need a cross tool
  12123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12124. $as_echo "pre-installed" >&6; }
  12125. fi
  12126. fi
  12127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
  12128. $as_echo_n "checking where to find the target ld... " >&6; }
  12129. if test "x${build}" != "x${host}" ; then
  12130. if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  12131. # We already found the complete path
  12132. ac_dir=`dirname $LD_FOR_TARGET`
  12133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12134. $as_echo "pre-installed in $ac_dir" >&6; }
  12135. else
  12136. # Canadian cross, just use what we found
  12137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12138. $as_echo "pre-installed" >&6; }
  12139. fi
  12140. else
  12141. ok=yes
  12142. case " ${configdirs} " in
  12143. *" ld "*) ;;
  12144. *) ok=no ;;
  12145. esac
  12146. if test $ok = yes; then
  12147. # An in-tree tool is available and we can use it
  12148. LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
  12149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12150. $as_echo "just compiled" >&6; }
  12151. elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  12152. # We already found the complete path
  12153. ac_dir=`dirname $LD_FOR_TARGET`
  12154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12155. $as_echo "pre-installed in $ac_dir" >&6; }
  12156. elif test "x$target" = "x$host"; then
  12157. # We can use an host tool
  12158. LD_FOR_TARGET='$(LD)'
  12159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12160. $as_echo "host tool" >&6; }
  12161. else
  12162. # We need a cross tool
  12163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12164. $as_echo "pre-installed" >&6; }
  12165. fi
  12166. fi
  12167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
  12168. $as_echo_n "checking where to find the target lipo... " >&6; }
  12169. if test "x${build}" != "x${host}" ; then
  12170. if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
  12171. # We already found the complete path
  12172. ac_dir=`dirname $LIPO_FOR_TARGET`
  12173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12174. $as_echo "pre-installed in $ac_dir" >&6; }
  12175. else
  12176. # Canadian cross, just use what we found
  12177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12178. $as_echo "pre-installed" >&6; }
  12179. fi
  12180. else
  12181. if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
  12182. # We already found the complete path
  12183. ac_dir=`dirname $LIPO_FOR_TARGET`
  12184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12185. $as_echo "pre-installed in $ac_dir" >&6; }
  12186. elif test "x$target" = "x$host"; then
  12187. # We can use an host tool
  12188. LIPO_FOR_TARGET='$(LIPO)'
  12189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12190. $as_echo "host tool" >&6; }
  12191. else
  12192. # We need a cross tool
  12193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12194. $as_echo "pre-installed" >&6; }
  12195. fi
  12196. fi
  12197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
  12198. $as_echo_n "checking where to find the target nm... " >&6; }
  12199. if test "x${build}" != "x${host}" ; then
  12200. if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
  12201. # We already found the complete path
  12202. ac_dir=`dirname $NM_FOR_TARGET`
  12203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12204. $as_echo "pre-installed in $ac_dir" >&6; }
  12205. else
  12206. # Canadian cross, just use what we found
  12207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12208. $as_echo "pre-installed" >&6; }
  12209. fi
  12210. else
  12211. ok=yes
  12212. case " ${configdirs} " in
  12213. *" binutils "*) ;;
  12214. *) ok=no ;;
  12215. esac
  12216. if test $ok = yes; then
  12217. # An in-tree tool is available and we can use it
  12218. NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
  12219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12220. $as_echo "just compiled" >&6; }
  12221. elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
  12222. # We already found the complete path
  12223. ac_dir=`dirname $NM_FOR_TARGET`
  12224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12225. $as_echo "pre-installed in $ac_dir" >&6; }
  12226. elif test "x$target" = "x$host"; then
  12227. # We can use an host tool
  12228. NM_FOR_TARGET='$(NM)'
  12229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12230. $as_echo "host tool" >&6; }
  12231. else
  12232. # We need a cross tool
  12233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12234. $as_echo "pre-installed" >&6; }
  12235. fi
  12236. fi
  12237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
  12238. $as_echo_n "checking where to find the target objdump... " >&6; }
  12239. if test "x${build}" != "x${host}" ; then
  12240. if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
  12241. # We already found the complete path
  12242. ac_dir=`dirname $OBJDUMP_FOR_TARGET`
  12243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12244. $as_echo "pre-installed in $ac_dir" >&6; }
  12245. else
  12246. # Canadian cross, just use what we found
  12247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12248. $as_echo "pre-installed" >&6; }
  12249. fi
  12250. else
  12251. ok=yes
  12252. case " ${configdirs} " in
  12253. *" binutils "*) ;;
  12254. *) ok=no ;;
  12255. esac
  12256. if test $ok = yes; then
  12257. # An in-tree tool is available and we can use it
  12258. OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
  12259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12260. $as_echo "just compiled" >&6; }
  12261. elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
  12262. # We already found the complete path
  12263. ac_dir=`dirname $OBJDUMP_FOR_TARGET`
  12264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12265. $as_echo "pre-installed in $ac_dir" >&6; }
  12266. elif test "x$target" = "x$host"; then
  12267. # We can use an host tool
  12268. OBJDUMP_FOR_TARGET='$(OBJDUMP)'
  12269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12270. $as_echo "host tool" >&6; }
  12271. else
  12272. # We need a cross tool
  12273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12274. $as_echo "pre-installed" >&6; }
  12275. fi
  12276. fi
  12277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
  12278. $as_echo_n "checking where to find the target ranlib... " >&6; }
  12279. if test "x${build}" != "x${host}" ; then
  12280. if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
  12281. # We already found the complete path
  12282. ac_dir=`dirname $RANLIB_FOR_TARGET`
  12283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12284. $as_echo "pre-installed in $ac_dir" >&6; }
  12285. else
  12286. # Canadian cross, just use what we found
  12287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12288. $as_echo "pre-installed" >&6; }
  12289. fi
  12290. else
  12291. ok=yes
  12292. case " ${configdirs} " in
  12293. *" binutils "*) ;;
  12294. *) ok=no ;;
  12295. esac
  12296. if test $ok = yes; then
  12297. # An in-tree tool is available and we can use it
  12298. RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
  12299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12300. $as_echo "just compiled" >&6; }
  12301. elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
  12302. # We already found the complete path
  12303. ac_dir=`dirname $RANLIB_FOR_TARGET`
  12304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12305. $as_echo "pre-installed in $ac_dir" >&6; }
  12306. elif test "x$target" = "x$host"; then
  12307. # We can use an host tool
  12308. RANLIB_FOR_TARGET='$(RANLIB)'
  12309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12310. $as_echo "host tool" >&6; }
  12311. else
  12312. # We need a cross tool
  12313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12314. $as_echo "pre-installed" >&6; }
  12315. fi
  12316. fi
  12317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
  12318. $as_echo_n "checking where to find the target strip... " >&6; }
  12319. if test "x${build}" != "x${host}" ; then
  12320. if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
  12321. # We already found the complete path
  12322. ac_dir=`dirname $STRIP_FOR_TARGET`
  12323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12324. $as_echo "pre-installed in $ac_dir" >&6; }
  12325. else
  12326. # Canadian cross, just use what we found
  12327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12328. $as_echo "pre-installed" >&6; }
  12329. fi
  12330. else
  12331. ok=yes
  12332. case " ${configdirs} " in
  12333. *" binutils "*) ;;
  12334. *) ok=no ;;
  12335. esac
  12336. if test $ok = yes; then
  12337. # An in-tree tool is available and we can use it
  12338. STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
  12339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12340. $as_echo "just compiled" >&6; }
  12341. elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
  12342. # We already found the complete path
  12343. ac_dir=`dirname $STRIP_FOR_TARGET`
  12344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12345. $as_echo "pre-installed in $ac_dir" >&6; }
  12346. elif test "x$target" = "x$host"; then
  12347. # We can use an host tool
  12348. STRIP_FOR_TARGET='$(STRIP)'
  12349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12350. $as_echo "host tool" >&6; }
  12351. else
  12352. # We need a cross tool
  12353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12354. $as_echo "pre-installed" >&6; }
  12355. fi
  12356. fi
  12357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
  12358. $as_echo_n "checking where to find the target windres... " >&6; }
  12359. if test "x${build}" != "x${host}" ; then
  12360. if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
  12361. # We already found the complete path
  12362. ac_dir=`dirname $WINDRES_FOR_TARGET`
  12363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12364. $as_echo "pre-installed in $ac_dir" >&6; }
  12365. else
  12366. # Canadian cross, just use what we found
  12367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12368. $as_echo "pre-installed" >&6; }
  12369. fi
  12370. else
  12371. ok=yes
  12372. case " ${configdirs} " in
  12373. *" binutils "*) ;;
  12374. *) ok=no ;;
  12375. esac
  12376. if test $ok = yes; then
  12377. # An in-tree tool is available and we can use it
  12378. WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
  12379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12380. $as_echo "just compiled" >&6; }
  12381. elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
  12382. # We already found the complete path
  12383. ac_dir=`dirname $WINDRES_FOR_TARGET`
  12384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12385. $as_echo "pre-installed in $ac_dir" >&6; }
  12386. elif test "x$target" = "x$host"; then
  12387. # We can use an host tool
  12388. WINDRES_FOR_TARGET='$(WINDRES)'
  12389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12390. $as_echo "host tool" >&6; }
  12391. else
  12392. # We need a cross tool
  12393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12394. $as_echo "pre-installed" >&6; }
  12395. fi
  12396. fi
  12397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
  12398. $as_echo_n "checking where to find the target windmc... " >&6; }
  12399. if test "x${build}" != "x${host}" ; then
  12400. if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
  12401. # We already found the complete path
  12402. ac_dir=`dirname $WINDMC_FOR_TARGET`
  12403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12404. $as_echo "pre-installed in $ac_dir" >&6; }
  12405. else
  12406. # Canadian cross, just use what we found
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12408. $as_echo "pre-installed" >&6; }
  12409. fi
  12410. else
  12411. ok=yes
  12412. case " ${configdirs} " in
  12413. *" binutils "*) ;;
  12414. *) ok=no ;;
  12415. esac
  12416. if test $ok = yes; then
  12417. # An in-tree tool is available and we can use it
  12418. WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
  12419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12420. $as_echo "just compiled" >&6; }
  12421. elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
  12422. # We already found the complete path
  12423. ac_dir=`dirname $WINDMC_FOR_TARGET`
  12424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12425. $as_echo "pre-installed in $ac_dir" >&6; }
  12426. elif test "x$target" = "x$host"; then
  12427. # We can use an host tool
  12428. WINDMC_FOR_TARGET='$(WINDMC)'
  12429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12430. $as_echo "host tool" >&6; }
  12431. else
  12432. # We need a cross tool
  12433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12434. $as_echo "pre-installed" >&6; }
  12435. fi
  12436. fi
  12437. # Certain tools may need extra flags.
  12438. AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
  12439. RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
  12440. NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
  12441. # When building target libraries, except in a Canadian cross, we use
  12442. # the same toolchain as the compiler we just built.
  12443. COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
  12444. COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
  12445. COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
  12446. if test $host = $build; then
  12447. case " $configdirs " in
  12448. *" gcc "*)
  12449. COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
  12450. COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
  12451. COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
  12452. ;;
  12453. esac
  12454. fi
  12455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  12456. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  12457. # Check whether --enable-maintainer-mode was given.
  12458. if test "${enable_maintainer_mode+set}" = set; then :
  12459. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  12460. else
  12461. USE_MAINTAINER_MODE=no
  12462. fi
  12463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  12464. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  12465. if test "$USE_MAINTAINER_MODE" = yes; then
  12466. MAINTAINER_MODE_TRUE=
  12467. MAINTAINER_MODE_FALSE='#'
  12468. else
  12469. MAINTAINER_MODE_TRUE='#'
  12470. MAINTAINER_MODE_FALSE=
  12471. fi
  12472. MAINT=$MAINTAINER_MODE_TRUE
  12473. # ---------------------
  12474. # GCC bootstrap support
  12475. # ---------------------
  12476. # Stage specific cflags for build.
  12477. stage1_cflags="-g"
  12478. case $build in
  12479. vax-*-*)
  12480. case ${GCC} in
  12481. yes) stage1_cflags="-g -Wa,-J" ;;
  12482. *) stage1_cflags="-g -J" ;;
  12483. esac ;;
  12484. esac
  12485. # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
  12486. if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
  12487. saved_CFLAGS="$CFLAGS"
  12488. # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
  12489. CFLAGS="$CFLAGS -fkeep-inline-functions"
  12490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
  12491. $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
  12492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12493. /* end confdefs.h. */
  12494. #if (__GNUC__ < 3) \
  12495. || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
  12496. || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
  12497. #error http://gcc.gnu.org/PR29382
  12498. #endif
  12499. int
  12500. main ()
  12501. {
  12502. ;
  12503. return 0;
  12504. }
  12505. _ACEOF
  12506. if ac_fn_c_try_compile "$LINENO"; then :
  12507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12508. $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
  12509. else
  12510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12511. $as_echo "no" >&6; }
  12512. fi
  12513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12514. CFLAGS="$saved_CFLAGS"
  12515. fi
  12516. # Enable --enable-checking in stage1 of the compiler.
  12517. # Check whether --enable-stage1-checking was given.
  12518. if test "${enable_stage1_checking+set}" = set; then :
  12519. enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
  12520. else
  12521. if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
  12522. stage1_checking=--enable-checking=yes,types
  12523. else
  12524. stage1_checking=--enable-checking=$enable_checking,types
  12525. fi
  12526. fi
  12527. # Enable -Werror in bootstrap stage2 and later.
  12528. # Check whether --enable-werror was given.
  12529. if test "${enable_werror+set}" = set; then :
  12530. enableval=$enable_werror;
  12531. else
  12532. if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
  12533. enable_werror=yes
  12534. else
  12535. enable_werror=no
  12536. fi
  12537. fi
  12538. case ${enable_werror} in
  12539. yes) stage2_werror_flag="--enable-werror-always" ;;
  12540. *) stage2_werror_flag="" ;;
  12541. esac
  12542. # Specify what files to not compare during bootstrap.
  12543. compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
  12544. case "$target" in
  12545. hppa*64*-*-hpux*) ;;
  12546. hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
  12547. esac
  12548. case " $configdirs " in
  12549. *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
  12550. esac
  12551. ac_config_files="$ac_config_files Makefile"
  12552. cat >confcache <<\_ACEOF
  12553. # This file is a shell script that caches the results of configure
  12554. # tests run on this system so they can be shared between configure
  12555. # scripts and configure runs, see configure's option --config-cache.
  12556. # It is not useful on other systems. If it contains results you don't
  12557. # want to keep, you may remove or edit it.
  12558. #
  12559. # config.status only pays attention to the cache file if you give it
  12560. # the --recheck option to rerun configure.
  12561. #
  12562. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12563. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12564. # following values.
  12565. _ACEOF
  12566. # The following way of writing the cache mishandles newlines in values,
  12567. # but we know of no workaround that is simple, portable, and efficient.
  12568. # So, we kill variables containing newlines.
  12569. # Ultrix sh set writes to stderr and can't be redirected directly,
  12570. # and sets the high bit in the cache file unless we assign to the vars.
  12571. (
  12572. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12573. eval ac_val=\$$ac_var
  12574. case $ac_val in #(
  12575. *${as_nl}*)
  12576. case $ac_var in #(
  12577. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12578. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12579. esac
  12580. case $ac_var in #(
  12581. _ | IFS | as_nl) ;; #(
  12582. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12583. *) { eval $ac_var=; unset $ac_var;} ;;
  12584. esac ;;
  12585. esac
  12586. done
  12587. (set) 2>&1 |
  12588. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12589. *${as_nl}ac_space=\ *)
  12590. # `set' does not quote correctly, so add quotes: double-quote
  12591. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12592. sed -n \
  12593. "s/'/'\\\\''/g;
  12594. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12595. ;; #(
  12596. *)
  12597. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12598. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12599. ;;
  12600. esac |
  12601. sort
  12602. ) |
  12603. sed '
  12604. /^ac_cv_env_/b end
  12605. t clear
  12606. :clear
  12607. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12608. t end
  12609. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12610. :end' >>confcache
  12611. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12612. if test -w "$cache_file"; then
  12613. test "x$cache_file" != "x/dev/null" &&
  12614. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12615. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12616. cat confcache >$cache_file
  12617. else
  12618. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12619. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12620. fi
  12621. fi
  12622. rm -f confcache
  12623. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12624. # Let make expand exec_prefix.
  12625. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12626. # Transform confdefs.h into DEFS.
  12627. # Protect against shell expansion while executing Makefile rules.
  12628. # Protect against Makefile macro expansion.
  12629. #
  12630. # If the first sed substitution is executed (which looks for macros that
  12631. # take arguments), then branch to the quote section. Otherwise,
  12632. # look for a macro that doesn't take arguments.
  12633. ac_script='
  12634. :mline
  12635. /\\$/{
  12636. N
  12637. s,\\\n,,
  12638. b mline
  12639. }
  12640. t clear
  12641. :clear
  12642. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  12643. t quote
  12644. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  12645. t quote
  12646. b any
  12647. :quote
  12648. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  12649. s/\[/\\&/g
  12650. s/\]/\\&/g
  12651. s/\$/$$/g
  12652. H
  12653. :any
  12654. ${
  12655. g
  12656. s/^\n//
  12657. s/\n/ /g
  12658. p
  12659. }
  12660. '
  12661. DEFS=`sed -n "$ac_script" confdefs.h`
  12662. ac_libobjs=
  12663. ac_ltlibobjs=
  12664. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12665. # 1. Remove the extension, and $U if already installed.
  12666. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12667. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12668. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12669. # will be set to the directory where LIBOBJS objects are built.
  12670. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12671. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12672. done
  12673. LIBOBJS=$ac_libobjs
  12674. LTLIBOBJS=$ac_ltlibobjs
  12675. : ${CONFIG_STATUS=./config.status}
  12676. ac_write_fail=0
  12677. ac_clean_files_save=$ac_clean_files
  12678. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12679. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12680. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12681. as_write_fail=0
  12682. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12683. #! $SHELL
  12684. # Generated by $as_me.
  12685. # Run this file to recreate the current configuration.
  12686. # Compiler output produced by configure, useful for debugging
  12687. # configure, is in config.log if it exists.
  12688. debug=false
  12689. ac_cs_recheck=false
  12690. ac_cs_silent=false
  12691. SHELL=\${CONFIG_SHELL-$SHELL}
  12692. export SHELL
  12693. _ASEOF
  12694. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12695. ## -------------------- ##
  12696. ## M4sh Initialization. ##
  12697. ## -------------------- ##
  12698. # Be more Bourne compatible
  12699. DUALCASE=1; export DUALCASE # for MKS sh
  12700. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12701. emulate sh
  12702. NULLCMD=:
  12703. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12704. # is contrary to our usage. Disable this feature.
  12705. alias -g '${1+"$@"}'='"$@"'
  12706. setopt NO_GLOB_SUBST
  12707. else
  12708. case `(set -o) 2>/dev/null` in #(
  12709. *posix*) :
  12710. set -o posix ;; #(
  12711. *) :
  12712. ;;
  12713. esac
  12714. fi
  12715. as_nl='
  12716. '
  12717. export as_nl
  12718. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12719. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12720. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12721. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12722. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12723. # but without wasting forks for bash or zsh.
  12724. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12725. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12726. as_echo='print -r --'
  12727. as_echo_n='print -rn --'
  12728. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12729. as_echo='printf %s\n'
  12730. as_echo_n='printf %s'
  12731. else
  12732. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12733. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12734. as_echo_n='/usr/ucb/echo -n'
  12735. else
  12736. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12737. as_echo_n_body='eval
  12738. arg=$1;
  12739. case $arg in #(
  12740. *"$as_nl"*)
  12741. expr "X$arg" : "X\\(.*\\)$as_nl";
  12742. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12743. esac;
  12744. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12745. '
  12746. export as_echo_n_body
  12747. as_echo_n='sh -c $as_echo_n_body as_echo'
  12748. fi
  12749. export as_echo_body
  12750. as_echo='sh -c $as_echo_body as_echo'
  12751. fi
  12752. # The user is always right.
  12753. if test "${PATH_SEPARATOR+set}" != set; then
  12754. PATH_SEPARATOR=:
  12755. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12756. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12757. PATH_SEPARATOR=';'
  12758. }
  12759. fi
  12760. # IFS
  12761. # We need space, tab and new line, in precisely that order. Quoting is
  12762. # there to prevent editors from complaining about space-tab.
  12763. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12764. # splitting by setting IFS to empty value.)
  12765. IFS=" "" $as_nl"
  12766. # Find who we are. Look in the path if we contain no directory separator.
  12767. case $0 in #((
  12768. *[\\/]* ) as_myself=$0 ;;
  12769. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12770. for as_dir in $PATH
  12771. do
  12772. IFS=$as_save_IFS
  12773. test -z "$as_dir" && as_dir=.
  12774. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12775. done
  12776. IFS=$as_save_IFS
  12777. ;;
  12778. esac
  12779. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12780. # in which case we are not to be found in the path.
  12781. if test "x$as_myself" = x; then
  12782. as_myself=$0
  12783. fi
  12784. if test ! -f "$as_myself"; then
  12785. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12786. exit 1
  12787. fi
  12788. # Unset variables that we do not need and which cause bugs (e.g. in
  12789. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12790. # suppresses any "Segmentation fault" message there. '((' could
  12791. # trigger a bug in pdksh 5.2.14.
  12792. for as_var in BASH_ENV ENV MAIL MAILPATH
  12793. do eval test x\${$as_var+set} = xset \
  12794. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12795. done
  12796. PS1='$ '
  12797. PS2='> '
  12798. PS4='+ '
  12799. # NLS nuisances.
  12800. LC_ALL=C
  12801. export LC_ALL
  12802. LANGUAGE=C
  12803. export LANGUAGE
  12804. # CDPATH.
  12805. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12806. # as_fn_error ERROR [LINENO LOG_FD]
  12807. # ---------------------------------
  12808. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12809. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12810. # script with status $?, using 1 if that was 0.
  12811. as_fn_error ()
  12812. {
  12813. as_status=$?; test $as_status -eq 0 && as_status=1
  12814. if test "$3"; then
  12815. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12816. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12817. fi
  12818. $as_echo "$as_me: error: $1" >&2
  12819. as_fn_exit $as_status
  12820. } # as_fn_error
  12821. # as_fn_set_status STATUS
  12822. # -----------------------
  12823. # Set $? to STATUS, without forking.
  12824. as_fn_set_status ()
  12825. {
  12826. return $1
  12827. } # as_fn_set_status
  12828. # as_fn_exit STATUS
  12829. # -----------------
  12830. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12831. as_fn_exit ()
  12832. {
  12833. set +e
  12834. as_fn_set_status $1
  12835. exit $1
  12836. } # as_fn_exit
  12837. # as_fn_unset VAR
  12838. # ---------------
  12839. # Portably unset VAR.
  12840. as_fn_unset ()
  12841. {
  12842. { eval $1=; unset $1;}
  12843. }
  12844. as_unset=as_fn_unset
  12845. # as_fn_append VAR VALUE
  12846. # ----------------------
  12847. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12848. # advantage of any shell optimizations that allow amortized linear growth over
  12849. # repeated appends, instead of the typical quadratic growth present in naive
  12850. # implementations.
  12851. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12852. eval 'as_fn_append ()
  12853. {
  12854. eval $1+=\$2
  12855. }'
  12856. else
  12857. as_fn_append ()
  12858. {
  12859. eval $1=\$$1\$2
  12860. }
  12861. fi # as_fn_append
  12862. # as_fn_arith ARG...
  12863. # ------------------
  12864. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12865. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12866. # must be portable across $(()) and expr.
  12867. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12868. eval 'as_fn_arith ()
  12869. {
  12870. as_val=$(( $* ))
  12871. }'
  12872. else
  12873. as_fn_arith ()
  12874. {
  12875. as_val=`expr "$@" || test $? -eq 1`
  12876. }
  12877. fi # as_fn_arith
  12878. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12879. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12880. as_expr=expr
  12881. else
  12882. as_expr=false
  12883. fi
  12884. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12885. as_basename=basename
  12886. else
  12887. as_basename=false
  12888. fi
  12889. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12890. as_dirname=dirname
  12891. else
  12892. as_dirname=false
  12893. fi
  12894. as_me=`$as_basename -- "$0" ||
  12895. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12896. X"$0" : 'X\(//\)$' \| \
  12897. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12898. $as_echo X/"$0" |
  12899. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12900. s//\1/
  12901. q
  12902. }
  12903. /^X\/\(\/\/\)$/{
  12904. s//\1/
  12905. q
  12906. }
  12907. /^X\/\(\/\).*/{
  12908. s//\1/
  12909. q
  12910. }
  12911. s/.*/./; q'`
  12912. # Avoid depending upon Character Ranges.
  12913. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12914. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12915. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12916. as_cr_digits='0123456789'
  12917. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12918. ECHO_C= ECHO_N= ECHO_T=
  12919. case `echo -n x` in #(((((
  12920. -n*)
  12921. case `echo 'xy\c'` in
  12922. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12923. xy) ECHO_C='\c';;
  12924. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12925. ECHO_T=' ';;
  12926. esac;;
  12927. *)
  12928. ECHO_N='-n';;
  12929. esac
  12930. rm -f conf$$ conf$$.exe conf$$.file
  12931. if test -d conf$$.dir; then
  12932. rm -f conf$$.dir/conf$$.file
  12933. else
  12934. rm -f conf$$.dir
  12935. mkdir conf$$.dir 2>/dev/null
  12936. fi
  12937. if (echo >conf$$.file) 2>/dev/null; then
  12938. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12939. as_ln_s='ln -s'
  12940. # ... but there are two gotchas:
  12941. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12942. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12943. # In both cases, we have to default to `cp -p'.
  12944. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12945. as_ln_s='cp -p'
  12946. elif ln conf$$.file conf$$ 2>/dev/null; then
  12947. as_ln_s=ln
  12948. else
  12949. as_ln_s='cp -p'
  12950. fi
  12951. else
  12952. as_ln_s='cp -p'
  12953. fi
  12954. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12955. rmdir conf$$.dir 2>/dev/null
  12956. # as_fn_mkdir_p
  12957. # -------------
  12958. # Create "$as_dir" as a directory, including parents if necessary.
  12959. as_fn_mkdir_p ()
  12960. {
  12961. case $as_dir in #(
  12962. -*) as_dir=./$as_dir;;
  12963. esac
  12964. test -d "$as_dir" || eval $as_mkdir_p || {
  12965. as_dirs=
  12966. while :; do
  12967. case $as_dir in #(
  12968. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12969. *) as_qdir=$as_dir;;
  12970. esac
  12971. as_dirs="'$as_qdir' $as_dirs"
  12972. as_dir=`$as_dirname -- "$as_dir" ||
  12973. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12974. X"$as_dir" : 'X\(//\)[^/]' \| \
  12975. X"$as_dir" : 'X\(//\)$' \| \
  12976. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12977. $as_echo X"$as_dir" |
  12978. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12979. s//\1/
  12980. q
  12981. }
  12982. /^X\(\/\/\)[^/].*/{
  12983. s//\1/
  12984. q
  12985. }
  12986. /^X\(\/\/\)$/{
  12987. s//\1/
  12988. q
  12989. }
  12990. /^X\(\/\).*/{
  12991. s//\1/
  12992. q
  12993. }
  12994. s/.*/./; q'`
  12995. test -d "$as_dir" && break
  12996. done
  12997. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12998. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  12999. } # as_fn_mkdir_p
  13000. if mkdir -p . 2>/dev/null; then
  13001. as_mkdir_p='mkdir -p "$as_dir"'
  13002. else
  13003. test -d ./-p && rmdir ./-p
  13004. as_mkdir_p=false
  13005. fi
  13006. if test -x / >/dev/null 2>&1; then
  13007. as_test_x='test -x'
  13008. else
  13009. if ls -dL / >/dev/null 2>&1; then
  13010. as_ls_L_option=L
  13011. else
  13012. as_ls_L_option=
  13013. fi
  13014. as_test_x='
  13015. eval sh -c '\''
  13016. if test -d "$1"; then
  13017. test -d "$1/.";
  13018. else
  13019. case $1 in #(
  13020. -*)set "./$1";;
  13021. esac;
  13022. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13023. ???[sx]*):;;*)false;;esac;fi
  13024. '\'' sh
  13025. '
  13026. fi
  13027. as_executable_p=$as_test_x
  13028. # Sed expression to map a string onto a valid CPP name.
  13029. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13030. # Sed expression to map a string onto a valid variable name.
  13031. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13032. exec 6>&1
  13033. ## ----------------------------------- ##
  13034. ## Main body of $CONFIG_STATUS script. ##
  13035. ## ----------------------------------- ##
  13036. _ASEOF
  13037. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13038. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13039. # Save the log message, to keep $0 and so on meaningful, and to
  13040. # report actual input values of CONFIG_FILES etc. instead of their
  13041. # values after options handling.
  13042. ac_log="
  13043. This file was extended by $as_me, which was
  13044. generated by GNU Autoconf 2.64. Invocation command line was
  13045. CONFIG_FILES = $CONFIG_FILES
  13046. CONFIG_HEADERS = $CONFIG_HEADERS
  13047. CONFIG_LINKS = $CONFIG_LINKS
  13048. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13049. $ $0 $@
  13050. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13051. "
  13052. _ACEOF
  13053. case $ac_config_files in *"
  13054. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13055. esac
  13056. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13057. # Files that config.status was made for.
  13058. config_files="$ac_config_files"
  13059. _ACEOF
  13060. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13061. ac_cs_usage="\
  13062. \`$as_me' instantiates files and other configuration actions
  13063. from templates according to the current configuration. Unless the files
  13064. and actions are specified as TAGs, all are instantiated by default.
  13065. Usage: $0 [OPTION]... [TAG]...
  13066. -h, --help print this help, then exit
  13067. -V, --version print version number and configuration settings, then exit
  13068. -q, --quiet, --silent
  13069. do not print progress messages
  13070. -d, --debug don't remove temporary files
  13071. --recheck update $as_me by reconfiguring in the same conditions
  13072. --file=FILE[:TEMPLATE]
  13073. instantiate the configuration file FILE
  13074. Configuration files:
  13075. $config_files
  13076. Report bugs to the package provider."
  13077. _ACEOF
  13078. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13079. ac_cs_version="\\
  13080. config.status
  13081. configured by $0, generated by GNU Autoconf 2.64,
  13082. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13083. Copyright (C) 2009 Free Software Foundation, Inc.
  13084. This config.status script is free software; the Free Software Foundation
  13085. gives unlimited permission to copy, distribute and modify it."
  13086. ac_pwd='$ac_pwd'
  13087. srcdir='$srcdir'
  13088. INSTALL='$INSTALL'
  13089. AWK='$AWK'
  13090. test -n "\$AWK" || AWK=awk
  13091. _ACEOF
  13092. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13093. # The default lists apply if the user does not specify any file.
  13094. ac_need_defaults=:
  13095. while test $# != 0
  13096. do
  13097. case $1 in
  13098. --*=*)
  13099. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13100. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13101. ac_shift=:
  13102. ;;
  13103. *)
  13104. ac_option=$1
  13105. ac_optarg=$2
  13106. ac_shift=shift
  13107. ;;
  13108. esac
  13109. case $ac_option in
  13110. # Handling of the options.
  13111. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13112. ac_cs_recheck=: ;;
  13113. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13114. $as_echo "$ac_cs_version"; exit ;;
  13115. --debug | --debu | --deb | --de | --d | -d )
  13116. debug=: ;;
  13117. --file | --fil | --fi | --f )
  13118. $ac_shift
  13119. case $ac_optarg in
  13120. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13121. esac
  13122. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13123. ac_need_defaults=false;;
  13124. --he | --h | --help | --hel | -h )
  13125. $as_echo "$ac_cs_usage"; exit ;;
  13126. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13127. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13128. ac_cs_silent=: ;;
  13129. # This is an error.
  13130. -*) as_fn_error "unrecognized option: \`$1'
  13131. Try \`$0 --help' for more information." ;;
  13132. *) as_fn_append ac_config_targets " $1"
  13133. ac_need_defaults=false ;;
  13134. esac
  13135. shift
  13136. done
  13137. ac_configure_extra_args=
  13138. if $ac_cs_silent; then
  13139. exec 6>/dev/null
  13140. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13141. fi
  13142. _ACEOF
  13143. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13144. if \$ac_cs_recheck; then
  13145. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13146. shift
  13147. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13148. CONFIG_SHELL='$SHELL'
  13149. export CONFIG_SHELL
  13150. exec "\$@"
  13151. fi
  13152. _ACEOF
  13153. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13154. exec 5>>config.log
  13155. {
  13156. echo
  13157. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13158. ## Running $as_me. ##
  13159. _ASBOX
  13160. $as_echo "$ac_log"
  13161. } >&5
  13162. _ACEOF
  13163. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13164. #
  13165. # INIT-COMMANDS
  13166. #
  13167. extrasub_build="$extrasub_build"
  13168. extrasub_host="$extrasub_host"
  13169. extrasub_target="$extrasub_target"
  13170. _ACEOF
  13171. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13172. # Handling of arguments.
  13173. for ac_config_target in $ac_config_targets
  13174. do
  13175. case $ac_config_target in
  13176. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13177. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13178. esac
  13179. done
  13180. # If the user did not use the arguments to specify the items to instantiate,
  13181. # then the envvar interface is used. Set only those that are not.
  13182. # We use the long form for the default assignment because of an extremely
  13183. # bizarre bug on SunOS 4.1.3.
  13184. if $ac_need_defaults; then
  13185. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13186. fi
  13187. # Have a temporary directory for convenience. Make it in the build tree
  13188. # simply because there is no reason against having it here, and in addition,
  13189. # creating and moving files from /tmp can sometimes cause problems.
  13190. # Hook for its removal unless debugging.
  13191. # Note that there is a small window in which the directory will not be cleaned:
  13192. # after its creation but before its name has been assigned to `$tmp'.
  13193. $debug ||
  13194. {
  13195. tmp=
  13196. trap 'exit_status=$?
  13197. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13198. ' 0
  13199. trap 'as_fn_exit 1' 1 2 13 15
  13200. }
  13201. # Create a (secure) tmp directory for tmp files.
  13202. {
  13203. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13204. test -n "$tmp" && test -d "$tmp"
  13205. } ||
  13206. {
  13207. tmp=./conf$$-$RANDOM
  13208. (umask 077 && mkdir "$tmp")
  13209. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13210. # Set up the scripts for CONFIG_FILES section.
  13211. # No need to generate them if there are no CONFIG_FILES.
  13212. # This happens for instance with `./config.status config.h'.
  13213. if test -n "$CONFIG_FILES"; then
  13214. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  13215. ac_cs_awk_getline=:
  13216. ac_cs_awk_pipe_init=
  13217. ac_cs_awk_read_file='
  13218. while ((getline aline < (F[key])) > 0)
  13219. print(aline)
  13220. close(F[key])'
  13221. ac_cs_awk_pipe_fini=
  13222. else
  13223. ac_cs_awk_getline=false
  13224. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  13225. ac_cs_awk_read_file='
  13226. print "|#_!!_#|"
  13227. print "cat " F[key] " &&"
  13228. '$ac_cs_awk_pipe_init
  13229. # The final `:' finishes the AND list.
  13230. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  13231. fi
  13232. ac_cr=`echo X | tr X '\015'`
  13233. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13234. # But we know of no other shell where ac_cr would be empty at this
  13235. # point, so we can use a bashism as a fallback.
  13236. if test "x$ac_cr" = x; then
  13237. eval ac_cr=\$\'\\r\'
  13238. fi
  13239. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13240. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13241. ac_cs_awk_cr='\r'
  13242. else
  13243. ac_cs_awk_cr=$ac_cr
  13244. fi
  13245. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13246. _ACEOF
  13247. # Create commands to substitute file output variables.
  13248. {
  13249. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  13250. echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
  13251. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  13252. echo "_ACAWK" &&
  13253. echo "_ACEOF"
  13254. } >conf$$files.sh &&
  13255. . ./conf$$files.sh ||
  13256. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13257. rm -f conf$$files.sh
  13258. {
  13259. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13260. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13261. echo "_ACEOF"
  13262. } >conf$$subs.sh ||
  13263. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13264. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13265. ac_delim='%!_!# '
  13266. for ac_last_try in false false false false false :; do
  13267. . ./conf$$subs.sh ||
  13268. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13269. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13270. if test $ac_delim_n = $ac_delim_num; then
  13271. break
  13272. elif $ac_last_try; then
  13273. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13274. else
  13275. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13276. fi
  13277. done
  13278. rm -f conf$$subs.sh
  13279. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13280. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13281. _ACEOF
  13282. sed -n '
  13283. h
  13284. s/^/S["/; s/!.*/"]=/
  13285. p
  13286. g
  13287. s/^[^!]*!//
  13288. :repl
  13289. t repl
  13290. s/'"$ac_delim"'$//
  13291. t delim
  13292. :nl
  13293. h
  13294. s/\(.\{148\}\).*/\1/
  13295. t more1
  13296. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13297. p
  13298. n
  13299. b repl
  13300. :more1
  13301. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13302. p
  13303. g
  13304. s/.\{148\}//
  13305. t nl
  13306. :delim
  13307. h
  13308. s/\(.\{148\}\).*/\1/
  13309. t more2
  13310. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13311. p
  13312. b
  13313. :more2
  13314. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13315. p
  13316. g
  13317. s/.\{148\}//
  13318. t delim
  13319. ' <conf$$subs.awk | sed '
  13320. /^[^""]/{
  13321. N
  13322. s/\n//
  13323. }
  13324. ' >>$CONFIG_STATUS || ac_write_fail=1
  13325. rm -f conf$$subs.awk
  13326. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13327. _ACAWK
  13328. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13329. for (key in S) S_is_set[key] = 1
  13330. FS = ""
  13331. \$ac_cs_awk_pipe_init
  13332. }
  13333. {
  13334. line = $ 0
  13335. nfields = split(line, field, "@")
  13336. substed = 0
  13337. len = length(field[1])
  13338. for (i = 2; i < nfields; i++) {
  13339. key = field[i]
  13340. keylen = length(key)
  13341. if (S_is_set[key]) {
  13342. value = S[key]
  13343. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13344. len += length(value) + length(field[++i])
  13345. substed = 1
  13346. } else
  13347. len += 1 + keylen
  13348. }
  13349. if (nfields == 3 && !substed) {
  13350. key = field[2]
  13351. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  13352. \$ac_cs_awk_read_file
  13353. next
  13354. }
  13355. }
  13356. print line
  13357. }
  13358. \$ac_cs_awk_pipe_fini
  13359. _ACAWK
  13360. _ACEOF
  13361. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13362. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13363. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13364. else
  13365. cat
  13366. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13367. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13368. _ACEOF
  13369. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13370. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13371. # trailing colons and then remove the whole line if VPATH becomes empty
  13372. # (actually we leave an empty line to preserve line numbers).
  13373. if test "x$srcdir" = x.; then
  13374. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13375. s/:*\$(srcdir):*/:/
  13376. s/:*\${srcdir}:*/:/
  13377. s/:*@srcdir@:*/:/
  13378. s/^\([^=]*=[ ]*\):*/\1/
  13379. s/:*$//
  13380. s/^[^=]*=[ ]*$//
  13381. }'
  13382. fi
  13383. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13384. fi # test -n "$CONFIG_FILES"
  13385. eval set X " :F $CONFIG_FILES "
  13386. shift
  13387. for ac_tag
  13388. do
  13389. case $ac_tag in
  13390. :[FHLC]) ac_mode=$ac_tag; continue;;
  13391. esac
  13392. case $ac_mode$ac_tag in
  13393. :[FHL]*:*);;
  13394. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13395. :[FH]-) ac_tag=-:-;;
  13396. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13397. esac
  13398. ac_save_IFS=$IFS
  13399. IFS=:
  13400. set x $ac_tag
  13401. IFS=$ac_save_IFS
  13402. shift
  13403. ac_file=$1
  13404. shift
  13405. case $ac_mode in
  13406. :L) ac_source=$1;;
  13407. :[FH])
  13408. ac_file_inputs=
  13409. for ac_f
  13410. do
  13411. case $ac_f in
  13412. -) ac_f="$tmp/stdin";;
  13413. *) # Look for the file first in the build tree, then in the source tree
  13414. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13415. # because $ac_f cannot contain `:'.
  13416. test -f "$ac_f" ||
  13417. case $ac_f in
  13418. [\\/$]*) false;;
  13419. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13420. esac ||
  13421. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13422. esac
  13423. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13424. as_fn_append ac_file_inputs " '$ac_f'"
  13425. done
  13426. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13427. # use $as_me), people would be surprised to read:
  13428. # /* config.h. Generated by config.status. */
  13429. configure_input='Generated from '`
  13430. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13431. `' by configure.'
  13432. if test x"$ac_file" != x-; then
  13433. configure_input="$ac_file. $configure_input"
  13434. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13435. $as_echo "$as_me: creating $ac_file" >&6;}
  13436. fi
  13437. # Neutralize special characters interpreted by sed in replacement strings.
  13438. case $configure_input in #(
  13439. *\&* | *\|* | *\\* )
  13440. ac_sed_conf_input=`$as_echo "$configure_input" |
  13441. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13442. *) ac_sed_conf_input=$configure_input;;
  13443. esac
  13444. case $ac_tag in
  13445. *:-:* | *:-) cat >"$tmp/stdin" \
  13446. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13447. esac
  13448. ;;
  13449. esac
  13450. ac_dir=`$as_dirname -- "$ac_file" ||
  13451. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13452. X"$ac_file" : 'X\(//\)[^/]' \| \
  13453. X"$ac_file" : 'X\(//\)$' \| \
  13454. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13455. $as_echo X"$ac_file" |
  13456. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13457. s//\1/
  13458. q
  13459. }
  13460. /^X\(\/\/\)[^/].*/{
  13461. s//\1/
  13462. q
  13463. }
  13464. /^X\(\/\/\)$/{
  13465. s//\1/
  13466. q
  13467. }
  13468. /^X\(\/\).*/{
  13469. s//\1/
  13470. q
  13471. }
  13472. s/.*/./; q'`
  13473. as_dir="$ac_dir"; as_fn_mkdir_p
  13474. ac_builddir=.
  13475. case "$ac_dir" in
  13476. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13477. *)
  13478. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13479. # A ".." for each directory in $ac_dir_suffix.
  13480. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13481. case $ac_top_builddir_sub in
  13482. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13483. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13484. esac ;;
  13485. esac
  13486. ac_abs_top_builddir=$ac_pwd
  13487. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13488. # for backward compatibility:
  13489. ac_top_builddir=$ac_top_build_prefix
  13490. case $srcdir in
  13491. .) # We are building in place.
  13492. ac_srcdir=.
  13493. ac_top_srcdir=$ac_top_builddir_sub
  13494. ac_abs_top_srcdir=$ac_pwd ;;
  13495. [\\/]* | ?:[\\/]* ) # Absolute name.
  13496. ac_srcdir=$srcdir$ac_dir_suffix;
  13497. ac_top_srcdir=$srcdir
  13498. ac_abs_top_srcdir=$srcdir ;;
  13499. *) # Relative name.
  13500. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13501. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13502. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13503. esac
  13504. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13505. case $ac_mode in
  13506. :F)
  13507. #
  13508. # CONFIG_FILE
  13509. #
  13510. case $INSTALL in
  13511. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13512. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13513. esac
  13514. _ACEOF
  13515. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13516. # If the template does not know about datarootdir, expand it.
  13517. # FIXME: This hack should be removed a few years after 2.60.
  13518. ac_datarootdir_hack=; ac_datarootdir_seen=
  13519. ac_sed_dataroot='
  13520. /datarootdir/ {
  13521. p
  13522. q
  13523. }
  13524. /@datadir@/p
  13525. /@docdir@/p
  13526. /@infodir@/p
  13527. /@localedir@/p
  13528. /@mandir@/p'
  13529. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13530. *datarootdir*) ac_datarootdir_seen=yes;;
  13531. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13532. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13533. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13534. _ACEOF
  13535. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13536. ac_datarootdir_hack='
  13537. s&@datadir@&$datadir&g
  13538. s&@docdir@&$docdir&g
  13539. s&@infodir@&$infodir&g
  13540. s&@localedir@&$localedir&g
  13541. s&@mandir@&$mandir&g
  13542. s&\\\${datarootdir}&$datarootdir&g' ;;
  13543. esac
  13544. _ACEOF
  13545. # Neutralize VPATH when `$srcdir' = `.'.
  13546. # Shell code in configure.ac might set extrasub.
  13547. # FIXME: do we really want to maintain this feature?
  13548. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13549. ac_sed_extra="$ac_vpsub
  13550. $extrasub
  13551. _ACEOF
  13552. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13553. :t
  13554. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13555. s|@configure_input@|$ac_sed_conf_input|;t t
  13556. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13557. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13558. s&@srcdir@&$ac_srcdir&;t t
  13559. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13560. s&@top_srcdir@&$ac_top_srcdir&;t t
  13561. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13562. s&@builddir@&$ac_builddir&;t t
  13563. s&@abs_builddir@&$ac_abs_builddir&;t t
  13564. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13565. s&@INSTALL@&$ac_INSTALL&;t t
  13566. $ac_datarootdir_hack
  13567. "
  13568. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  13569. if $ac_cs_awk_getline; then
  13570. $AWK -f "$tmp/subs.awk"
  13571. else
  13572. $AWK -f "$tmp/subs.awk" | $SHELL
  13573. fi >$tmp/out \
  13574. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13575. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13576. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13577. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13579. which seems to be undefined. Please make sure it is defined." >&5
  13580. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13581. which seems to be undefined. Please make sure it is defined." >&2;}
  13582. rm -f "$tmp/stdin"
  13583. case $ac_file in
  13584. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13585. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13586. esac \
  13587. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13588. ;;
  13589. esac
  13590. case $ac_file$ac_mode in
  13591. "Makefile":F) sed "$extrasub_build" Makefile |
  13592. sed "$extrasub_host" |
  13593. sed "$extrasub_target" > mf$$
  13594. mv -f mf$$ Makefile ;;
  13595. esac
  13596. done # for ac_tag
  13597. as_fn_exit 0
  13598. _ACEOF
  13599. ac_clean_files=$ac_clean_files_save
  13600. test $ac_write_fail = 0 ||
  13601. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13602. # configure is writing to config.log, and then calls config.status.
  13603. # config.status does its own redirection, appending to config.log.
  13604. # Unfortunately, on DOS this fails, as config.log is still kept open
  13605. # by configure, so config.status won't be able to write to it; its
  13606. # output is simply discarded. So we exec the FD to /dev/null,
  13607. # effectively closing config.log, so it can be properly (re)opened and
  13608. # appended to by config.status. When coming back to configure, we
  13609. # need to make the FD available again.
  13610. if test "$no_create" != yes; then
  13611. ac_cs_success=:
  13612. ac_config_status_args=
  13613. test "$silent" = yes &&
  13614. ac_config_status_args="$ac_config_status_args --quiet"
  13615. exec 5>/dev/null
  13616. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13617. exec 5>>config.log
  13618. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13619. # would make configure fail if this is the last instruction.
  13620. $ac_cs_success || as_fn_exit $?
  13621. fi
  13622. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13624. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13625. fi